@legion-ui-kit/react-core
Version:
To install the package into your project:
1 lines • 2.69 kB
Source Map (JSON)
{"version":3,"file":"Text.constant.cjs","sources":["../../../../src/components/Text/Text.constant.ts"],"sourcesContent":["// Types\r\nimport type { TTextAs, TTextColor, TTextFontType, TTextProps, TTextSize, TTextVariant } from './Text.type';\r\n\r\nexport const TEXT_AS_LIST: TTextAs[] = ['p', 'span', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'];\r\nexport const TEXT_AS: { [key in TTextAs]: TTextAs } = {\r\n p: 'p',\r\n span: 'span',\r\n h1: 'h1',\r\n h2: 'h2',\r\n h3: 'h3',\r\n h4: 'h4',\r\n h5: 'h5',\r\n h6: 'h6'\r\n};\r\n\r\nexport const TEXT_COLORS: TTextColor[] = [\r\n 'primary',\r\n 'secondary',\r\n 'tertiary',\r\n 'success',\r\n 'warning',\r\n 'error',\r\n 'information'\r\n];\r\nexport const TEXT_COLOR: { [key in TTextColor]: TTextColor } = {\r\n primary: 'primary',\r\n secondary: 'secondary',\r\n tertiary: 'tertiary',\r\n success: 'success',\r\n warning: 'warning',\r\n error: 'error',\r\n information: 'information'\r\n};\r\n\r\nexport const TEXT_FONT_TYPES: TTextFontType[] = ['heading', 'body'];\r\nexport const TEXT_FONT_TYPE: { [key in TTextFontType]: TTextFontType } = {\r\n heading: 'heading',\r\n body: 'body'\r\n};\r\n\r\nexport const TEXT_SIZES: TTextSize[] = [\r\n 'bodyLarge',\r\n 'bodySmall',\r\n 'captionLarge',\r\n 'captionSmall',\r\n 'h1',\r\n 'h2',\r\n 'h3',\r\n 'h4',\r\n 'h5',\r\n 'h6'\r\n];\r\nexport const TEXT_SIZE: { [key in TTextSize]: TTextSize } = {\r\n bodyLarge: 'bodyLarge',\r\n bodySmall: 'bodySmall',\r\n captionLarge: 'captionLarge',\r\n captionSmall: 'captionSmall',\r\n h1: 'h1',\r\n h2: 'h2',\r\n h3: 'h3',\r\n h4: 'h4',\r\n h5: 'h5',\r\n h6: 'h6'\r\n};\r\n\r\nexport const TEXT_VARIANTS: TTextVariant[] = ['lowEmphasis', 'medEmphasis', 'highEmphasis'];\r\nexport const TEXT_VARIANT: { [key in TTextVariant]: TTextVariant } = {\r\n lowEmphasis: 'lowEmphasis',\r\n medEmphasis: 'medEmphasis',\r\n highEmphasis: 'highEmphasis'\r\n};\r\n\r\nexport const TEXT_DEFAULT_PROPS: TTextProps = {\r\n as: TEXT_AS.p,\r\n fontType: TEXT_FONT_TYPE.body,\r\n color: TEXT_COLOR.tertiary,\r\n size: TEXT_SIZE.bodyLarge\r\n /* Will be used in the future once the the UI is ready */\r\n // variant: TEXT_VARIANT.medEmphasis,\r\n};\r\n"],"names":["TEXT_AS","p","TEXT_COLOR","tertiary","TEXT_FONT_TYPE","body","TEXT_SIZE","bodyLarge","TEXT_DEFAULT_PROPS","as","fontType","color","size","medEmphasis"],"mappings":"mBAIaA,EAAyC,CACpDC,EAAG,KAmBQC,EAAkD,CAG7DC,SAAU,YAQCC,EAA4D,CAEvEC,KAAM,QAeKC,EAA+C,CAC1DC,UAAW,aAmBAC,EAAiC,CAC5CC,GAAIT,EAAQC,EACZS,SAAUN,EAAeC,KACzBM,MAAOT,EAAWC,SAClBS,KAAMN,EAAUC,kDAzEqB,CAAC,IAAK,OAAQ,KAAM,KAAM,KAAM,KAAM,KAAM,+CAY1C,CACvC,UACA,YACA,WACA,UACA,UACA,QACA,8GA4CmE,CAEnEM,YAAa"}