Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | 1x 1x 1x 1x 1x 1x 1x 3x 3x 3x 3x 3x | import cx from 'classnames' export const SIZES = { SMALL: 'small', MEDIUM: 'medium' } export const TYPES = { FULL: 'full', SECTION: 'section' } export const OVERLAY_TYPES = { ACCENT: 'accent', DARK: 'dark', LIGHT: 'light', PRIMARY: 'primary', TRANSPARENT: 'transparent' } export const DELAY = 500 // ms export const BASE_CLASS = 'sui-AtomSpinner' export const CLASS_FULL = `${BASE_CLASS}--fullPage` export const getParentClassName = ({overlayType, size, type}) => cx(`${BASE_CLASS}--${overlayType}`, `${BASE_CLASS}--${overlayType}-${size}`, `${BASE_CLASS}--${size}`, { [BASE_CLASS]: type === TYPES.SECTION, [CLASS_FULL]: type === TYPES.FULL }) export const addParentClass = parentNodeClassList => parentClassName => parentNodeClassList.add(...parentClassName.split(' ')) export const removeParentClass = parentNodeClassList => parentClassName => parentNodeClassList.remove(...parentClassName.split(' ')) |