@dialpad/dialtone
Version:
Dialpad's Dialtone design system monorepo
1 lines • 1.27 kB
Source Map (JSON)
{"version":3,"file":"skeleton-constants.cjs","names":[],"sources":["../../../components/skeleton/skeleton_constants.js"],"sourcesContent":["// NOTE: RippleDuration controls how long the delay is for the animation\n// of a skeleton 1000 pixels from the top of the page. Each skeleton\n// from the top down will have a delay duration from 0 to this offset.\n// The delay of each skeleton animation is based on how far down the page\n// the skeleton is rendered. This is a linear relationship. The unit\n// is miliseconds.\nexport const SKELETON_RIPPLE_DURATION = 3000000;\n\nexport const SKELETON_SHAPES = {\n circle: 'd-bar-circle',\n square: 'd-bar2',\n};\n\nexport const SKELETON_TEXT_TYPES = [\n 'body',\n 'heading',\n];\n\nexport const SKELETON_SHAPE_SIZES = {\n sm: '24px',\n md: '32px',\n lg: '48px',\n};\n\nexport const SKELETON_HEADING_HEIGHTS = {\n sm: 'd-h16',\n md: 'd-h24',\n lg: 'd-h32',\n};\n\nexport default {\n SKELETON_RIPPLE_DURATION,\n SKELETON_SHAPES,\n SKELETON_TEXT_TYPES,\n SKELETON_HEADING_HEIGHTS,\n};\n"],"mappings":"+FAMA,IAAa,EAA2B,IAE3B,EAAkB,CAC7B,OAAQ,eACR,OAAQ,SACT,CAEY,EAAsB,CACjC,OACA,UACD,CAEY,EAAuB,CAClC,GAAI,OACJ,GAAI,OACJ,GAAI,OACL,CAEY,EAA2B,CACtC,GAAI,QACJ,GAAI,QACJ,GAAI,QACL,CAED,EAAe,CACb,2BACA,kBACA,sBACA,2BACD"}