@cambly/syntax-core 10.28.0 → 10.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Avatar/Avatar.d.ts +1 -1
- package/dist/Badge/Badge.cjs +3 -3
- package/dist/Badge/Badge.css +59 -59
- package/dist/Badge/Badge.css.map +1 -1
- package/dist/Badge/Badge.d.ts +1 -1
- package/dist/Badge/Badge.js +2 -2
- package/dist/Button/Button.cjs +3 -3
- package/dist/Button/Button.css +59 -59
- package/dist/Button/Button.css.map +1 -1
- package/dist/Button/Button.js +2 -2
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/Checkbox/Checkbox.cjs +3 -3
- package/dist/Checkbox/Checkbox.css +59 -59
- package/dist/Checkbox/Checkbox.css.map +1 -1
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Checkbox/Checkbox.js +2 -2
- package/dist/Chip/Chip.cjs +3 -3
- package/dist/Chip/Chip.css +59 -59
- package/dist/Chip/Chip.css.map +1 -1
- package/dist/Chip/Chip.js +2 -2
- package/dist/Heading/Heading.cjs +3 -3
- package/dist/Heading/Heading.css +59 -59
- package/dist/Heading/Heading.css.map +1 -1
- package/dist/Heading/Heading.d.ts +2 -2
- package/dist/Heading/Heading.js +2 -2
- package/dist/LinkButton/LinkButton.cjs +3 -3
- package/dist/LinkButton/LinkButton.css +59 -59
- package/dist/LinkButton/LinkButton.css.map +1 -1
- package/dist/LinkButton/LinkButton.js +2 -2
- package/dist/Modal/Modal.cjs +4 -4
- package/dist/Modal/Modal.css +59 -59
- package/dist/Modal/Modal.css.map +1 -1
- package/dist/Modal/Modal.d.ts +3 -1
- package/dist/Modal/Modal.js +3 -3
- package/dist/RadioButton/RadioButton.cjs +3 -3
- package/dist/RadioButton/RadioButton.css +59 -59
- package/dist/RadioButton/RadioButton.css.map +1 -1
- package/dist/RadioButton/RadioButton.d.ts +1 -1
- package/dist/RadioButton/RadioButton.js +2 -2
- package/dist/RichSelect/RichSelectBox.cjs +9 -9
- package/dist/RichSelect/RichSelectBox.css +59 -59
- package/dist/RichSelect/RichSelectBox.css.map +1 -1
- package/dist/RichSelect/RichSelectBox.d.ts +1 -1
- package/dist/RichSelect/RichSelectBox.js +8 -8
- package/dist/RichSelect/RichSelectChip.cjs +4 -4
- package/dist/RichSelect/RichSelectChip.css +59 -59
- package/dist/RichSelect/RichSelectChip.css.map +1 -1
- package/dist/RichSelect/RichSelectChip.js +3 -3
- package/dist/RichSelect/RichSelectList.cjs +11 -11
- package/dist/RichSelect/RichSelectList.css +59 -59
- package/dist/RichSelect/RichSelectList.css.map +1 -1
- package/dist/RichSelect/RichSelectList.d.ts +1 -1
- package/dist/RichSelect/RichSelectList.js +10 -10
- package/dist/RichSelect/RichSelectRadioButton.cjs +4 -4
- package/dist/RichSelect/RichSelectRadioButton.css +59 -59
- package/dist/RichSelect/RichSelectRadioButton.css.map +1 -1
- package/dist/RichSelect/RichSelectRadioButton.d.ts +1 -1
- package/dist/RichSelect/RichSelectRadioButton.js +3 -3
- package/dist/RichSelect/RichSelectSection.cjs +3 -3
- package/dist/RichSelect/RichSelectSection.css +59 -59
- package/dist/RichSelect/RichSelectSection.css.map +1 -1
- package/dist/RichSelect/RichSelectSection.js +2 -2
- package/dist/SelectList/SelectList.cjs +4 -4
- package/dist/SelectList/SelectList.css +59 -59
- package/dist/SelectList/SelectList.css.map +1 -1
- package/dist/SelectList/SelectList.js +3 -3
- package/dist/TapArea/TapArea.d.ts +1 -1
- package/dist/TextArea/TextArea.cjs +3 -3
- package/dist/TextArea/TextArea.css +59 -59
- package/dist/TextArea/TextArea.css.map +1 -1
- package/dist/TextArea/TextArea.js +2 -2
- package/dist/TextField/TextField.cjs +3 -3
- package/dist/TextField/TextField.css +59 -59
- package/dist/TextField/TextField.css.map +1 -1
- package/dist/TextField/TextField.js +2 -2
- package/dist/Tooltip/Tooltip.cjs +3 -3
- package/dist/Tooltip/Tooltip.css +59 -59
- package/dist/Tooltip/Tooltip.css.map +1 -1
- package/dist/Tooltip/Tooltip.js +2 -2
- package/dist/Typography/Typography.cjs +2 -2
- package/dist/Typography/Typography.css +59 -59
- package/dist/Typography/Typography.css.map +1 -1
- package/dist/Typography/Typography.d.ts +5 -5
- package/dist/Typography/Typography.js +1 -1
- package/dist/__chunks/{JDOSJDOR.cjs → 2BEN3VH2.cjs} +6 -6
- package/dist/__chunks/{RJX7ZVAG.cjs → 2RWNBVOK.cjs} +4 -4
- package/dist/__chunks/{CVYKJOHP.js → 3CNALXRL.js} +5 -5
- package/dist/__chunks/{ICLT5QY2.cjs → 3FMGCZP2.cjs} +4 -4
- package/dist/__chunks/{UENUF2KR.js → 3HBVE6VG.js} +2 -2
- package/dist/__chunks/{5JUAIXVN.js → 3Q5UNXKC.js} +7 -7
- package/dist/__chunks/{4HPBU76L.cjs → 5MKCDCHQ.cjs} +3 -3
- package/dist/__chunks/{JUB3D7BZ.js → 5PWYNWVE.js} +2 -2
- package/dist/__chunks/{WPKU2FTA.js → AXHY5J3K.js} +3 -3
- package/dist/__chunks/{4IJQ4BTF.js → AYTJYJHI.js} +2 -2
- package/dist/__chunks/{4VJHC5OM.js → BQOD4WU7.js} +2 -2
- package/dist/__chunks/{6NYPDPF4.cjs → BVYHALMT.cjs} +3 -3
- package/dist/__chunks/{QZZW6BPP.cjs → CS66HKUB.cjs} +3 -3
- package/dist/__chunks/{432LXWXX.cjs → DDUKESGS.cjs} +4 -4
- package/dist/__chunks/DDUKESGS.cjs.map +1 -0
- package/dist/__chunks/{HVYLG5OC.cjs → EKHHYK7U.cjs} +5 -5
- package/dist/__chunks/{6IRH354B.cjs → FH2W3CI2.cjs} +3 -3
- package/dist/__chunks/{KG6XG47I.js → FLFJRP4T.js} +2 -2
- package/dist/__chunks/{PDKMXSDQ.cjs → GEGGHBSM.cjs} +10 -10
- package/dist/__chunks/{AWT6KV7A.js → I6CGA2ER.js} +2 -2
- package/dist/__chunks/{SRAYR7UN.cjs → JHLUJYBX.cjs} +17 -17
- package/dist/__chunks/{2HNKN7IN.js → JNYNLJGY.js} +2 -2
- package/dist/__chunks/{MBTIELOD.js → K27Z66LH.js} +2 -2
- package/dist/__chunks/{AAJM5GTF.js → KTTIFVGY.js} +2 -2
- package/dist/__chunks/{J25IK5J2.cjs → KYIRM6PZ.cjs} +3 -3
- package/dist/__chunks/{G7N4BOR7.js → MONMI3LS.js} +2 -2
- package/dist/__chunks/{XYPM2PWU.js → N5B6KNJR.js} +2 -2
- package/dist/__chunks/{4S6APU2V.cjs → NCUQOLOV.cjs} +3 -3
- package/dist/__chunks/{O2J3F7UE.cjs → OFALBLGM.cjs} +1 -1
- package/dist/__chunks/{O2J3F7UE.cjs.map → OFALBLGM.cjs.map} +1 -1
- package/dist/__chunks/{KR53ODQQ.js → OU5C2MBA.js} +2 -2
- package/dist/__chunks/{Y2TA6QLY.cjs → SFOAZYZG.cjs} +3 -3
- package/dist/__chunks/{GMKJSXXQ.cjs → THYSYYWS.cjs} +3 -3
- package/dist/__chunks/{NKYN63G7.js → TNHXXDCA.js} +3 -3
- package/dist/__chunks/TNHXXDCA.js.map +1 -0
- package/dist/__chunks/{MDAWMKBY.js → UVROGDYB.js} +2 -2
- package/dist/__chunks/{MDAWMKBY.js.map → UVROGDYB.js.map} +1 -1
- package/dist/__chunks/{WEBZYCKQ.js → VQF4J5CC.js} +1 -1
- package/dist/__chunks/{WEBZYCKQ.js.map → VQF4J5CC.js.map} +1 -1
- package/dist/__chunks/{AGJ2QSEP.cjs → WOIJRASP.cjs} +3 -3
- package/dist/__chunks/{AW4Z42KI.js → X5KCRFFF.js} +2 -2
- package/dist/__chunks/{YJWKUNYU.cjs → XU3CLITI.cjs} +2 -2
- package/dist/__chunks/{YJWKUNYU.cjs.map → XU3CLITI.cjs.map} +1 -1
- package/dist/__chunks/{M2CJONYS.cjs → ZUQC37VB.cjs} +3 -3
- package/dist/index.cjs +20 -20
- package/dist/index.css +59 -59
- package/dist/index.css.map +1 -1
- package/dist/index.js +19 -19
- package/package.json +1 -1
- package/dist/__chunks/432LXWXX.cjs.map +0 -1
- package/dist/__chunks/NKYN63G7.js.map +0 -1
- /package/dist/__chunks/{JDOSJDOR.cjs.map → 2BEN3VH2.cjs.map} +0 -0
- /package/dist/__chunks/{RJX7ZVAG.cjs.map → 2RWNBVOK.cjs.map} +0 -0
- /package/dist/__chunks/{CVYKJOHP.js.map → 3CNALXRL.js.map} +0 -0
- /package/dist/__chunks/{ICLT5QY2.cjs.map → 3FMGCZP2.cjs.map} +0 -0
- /package/dist/__chunks/{UENUF2KR.js.map → 3HBVE6VG.js.map} +0 -0
- /package/dist/__chunks/{5JUAIXVN.js.map → 3Q5UNXKC.js.map} +0 -0
- /package/dist/__chunks/{4HPBU76L.cjs.map → 5MKCDCHQ.cjs.map} +0 -0
- /package/dist/__chunks/{JUB3D7BZ.js.map → 5PWYNWVE.js.map} +0 -0
- /package/dist/__chunks/{WPKU2FTA.js.map → AXHY5J3K.js.map} +0 -0
- /package/dist/__chunks/{4IJQ4BTF.js.map → AYTJYJHI.js.map} +0 -0
- /package/dist/__chunks/{4VJHC5OM.js.map → BQOD4WU7.js.map} +0 -0
- /package/dist/__chunks/{6NYPDPF4.cjs.map → BVYHALMT.cjs.map} +0 -0
- /package/dist/__chunks/{QZZW6BPP.cjs.map → CS66HKUB.cjs.map} +0 -0
- /package/dist/__chunks/{HVYLG5OC.cjs.map → EKHHYK7U.cjs.map} +0 -0
- /package/dist/__chunks/{6IRH354B.cjs.map → FH2W3CI2.cjs.map} +0 -0
- /package/dist/__chunks/{KG6XG47I.js.map → FLFJRP4T.js.map} +0 -0
- /package/dist/__chunks/{PDKMXSDQ.cjs.map → GEGGHBSM.cjs.map} +0 -0
- /package/dist/__chunks/{AWT6KV7A.js.map → I6CGA2ER.js.map} +0 -0
- /package/dist/__chunks/{SRAYR7UN.cjs.map → JHLUJYBX.cjs.map} +0 -0
- /package/dist/__chunks/{2HNKN7IN.js.map → JNYNLJGY.js.map} +0 -0
- /package/dist/__chunks/{MBTIELOD.js.map → K27Z66LH.js.map} +0 -0
- /package/dist/__chunks/{AAJM5GTF.js.map → KTTIFVGY.js.map} +0 -0
- /package/dist/__chunks/{J25IK5J2.cjs.map → KYIRM6PZ.cjs.map} +0 -0
- /package/dist/__chunks/{G7N4BOR7.js.map → MONMI3LS.js.map} +0 -0
- /package/dist/__chunks/{XYPM2PWU.js.map → N5B6KNJR.js.map} +0 -0
- /package/dist/__chunks/{4S6APU2V.cjs.map → NCUQOLOV.cjs.map} +0 -0
- /package/dist/__chunks/{KR53ODQQ.js.map → OU5C2MBA.js.map} +0 -0
- /package/dist/__chunks/{Y2TA6QLY.cjs.map → SFOAZYZG.cjs.map} +0 -0
- /package/dist/__chunks/{GMKJSXXQ.cjs.map → THYSYYWS.cjs.map} +0 -0
- /package/dist/__chunks/{AGJ2QSEP.cjs.map → WOIJRASP.cjs.map} +0 -0
- /package/dist/__chunks/{AW4Z42KI.js.map → X5KCRFFF.js.map} +0 -0
- /package/dist/__chunks/{M2CJONYS.cjs.map → ZUQC37VB.cjs.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Typography/Typography.tsx","css-module:./Typography.module.css#css-module"],"names":["Typography"],"mappings":"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","sourcesContent":["import classNames from \"classnames\";\nimport { forwardRef, type ReactElement, type ReactNode } from \"react\";\nimport styles from \"./Typography.module.css\";\nimport colorStyles from \"../colors/colors.module.css\";\nimport { useTheme } from \"../ThemeProvider/ThemeProvider\";\n\nfunction classicTextColor(\n color:\n | \"gray900\"\n | \"gray700\"\n | \"primary\"\n | \"destructive-primary\"\n | \"destructive-darkBackground\"\n | \"success\"\n | \"success-darkBackground\"\n | \"white\"\n | \"inherit\",\n): string {\n switch (color) {\n case \"gray700\":\n return colorStyles.gray700Color;\n case \"white\":\n return colorStyles.whiteColor;\n case \"inherit\":\n return colorStyles.inheritColor;\n case \"primary\":\n return colorStyles.primary700Color;\n case \"destructive-primary\":\n case \"destructive-darkBackground\":\n return colorStyles.destructive700Color;\n case \"success\":\n return colorStyles.success700Color;\n default:\n return colorStyles.gray900Color;\n }\n}\n\nfunction cambioTextColor(\n color:\n | \"gray900\"\n | \"gray700\"\n | \"primary\"\n | \"destructive-primary\"\n | \"destructive-darkBackground\"\n | \"success\"\n | \"success-darkBackground\"\n | \"white\"\n | \"inherit\",\n): string {\n switch (color) {\n case \"gray700\":\n return colorStyles.cambioGray800Color;\n case \"white\":\n return colorStyles.cambioWhiteColor;\n case \"inherit\":\n return colorStyles.inheritColor;\n case \"destructive-primary\":\n return colorStyles.cambioDestructive900Color;\n case \"destructive-darkBackground\":\n return colorStyles.cambioDestructive100Color;\n case \"success\":\n return colorStyles.cambioSuccess900Color;\n case \"success-darkBackground\":\n return colorStyles.cambioSuccess100Color;\n // primary / gray900\n default:\n return colorStyles.cambioBlackColor;\n }\n}\n\nfunction classicWeight(\n weight: \"regular\" | \"interactive\" | \"medium\" | \"semiBold\" | \"bold\" | \"heavy\",\n): \"regular\" | \"interactive\" | \"semiBold\" | \"bold\" | \"heavy\" {\n switch (weight) {\n case \"medium\":\n return \"regular\";\n default:\n return weight;\n }\n}\n\nfunction cambioWeight(\n weight: \"regular\" | \"interactive\" | \"medium\" | \"semiBold\" | \"bold\" | \"heavy\",\n): \"regular\" | \"medium\" | \"semiBold\" | \"bold\" {\n switch (weight) {\n case \"interactive\":\n return \"medium\";\n case \"heavy\":\n return \"regular\";\n default:\n return weight;\n }\n}\n\n/**\n * [Typography](https://cambly-syntax.vercel.app/?path=/docs/components-typography--docs) is a component that renders text.\n */\nconst Typography = forwardRef<\n HTMLDivElement,\n {\n /**\n * Aligns the text to the left, right, or center of the container.\n * * `start` and `end` will align the text to the left or right of the container depending on the locale.\n * * `forceLeft` and `forceRight` will align the text to the left or right of the container regardless of the locale (should be used sparingly).\n *\n * @defaultValue \"start\"\n */\n align?: \"start\" | \"end\" | \"forceLeft\" | \"center\" | \"forceRight\";\n /**\n * DOM element to render as.\n *\n * @defaultValue \"div\"\n */\n as?: \"div\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\n /**\n * The text to be rendered\n */\n children?: ReactNode;\n /**\n * The color of the text.\n *\n * Cambio only: `success-darkBackground` / `destructive-darkBackground`\n *\n * @defaultValue \"gray900\"\n */\n color?:\n | \"gray900\"\n | \"gray700\"\n | \"primary\"\n | \"destructive-primary\"\n | \"destructive-darkBackground\"\n | \"success\"\n | \"success-darkBackground\"\n | \"white\"\n | \"inherit\";\n /**\n * Test id for the text\n */\n \"data-testid\"?: string;\n /**\n * Style of the font\n *\n * Classic only supports `sans-serif`\n *\n * @defaultValue \"sans-serif\"\n */\n fontStyle?: \"serif\" | \"sans-serif\";\n /**\n * The id for the element\n */\n id?: string;\n /**\n * Whether the text should flow inline with other elements.\n *\n * @defaultValue false\n */\n inline?: boolean;\n /**\n * The number of lines we should truncate the text at\n */\n lineClamp?: number | undefined;\n /**\n * Size of the text.\n *\n * Classic:\n * * `100`: 12px\n * * `200`: 14px\n * * `300`: 16px\n * * `500`: 20px\n * * `600`: 28px\n * * `700`: 40px\n * * `800`: 64px\n *\n * Cambio Mobile:\n * * `100`: 14px\n * * `200`: 16px\n * * `300`: 18px\n * * `400`: 20px\n * * `500`: 23px\n * * `600`: 26px\n * * `700`: 29px\n * * `800`: 33px\n * * `900`: 37px\n * * `1000`: 41px\n * * `1100`: 46px\n *\n * Cambio Desktop (viewport width > 480px):\n * * `100`: 13px\n * * `200`: 16px\n * * `300`: 20px\n * * `400`: 25px\n * * `500`: 31px\n * * `600`: 39px\n * * `700`: 49px\n * * `800`: 61px\n * * `900`: 76px\n * * `1000`: 95px\n * * `1100`: 119px\n *\n * @defaultValue 200\n */\n size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000 | 1100;\n /**\n * The tooltip to be displayed when the user hovers the text\n */\n tooltip?: string;\n /**\n * Whether the text should be transformed to uppercase.\n *\n * @defaultValue \"none\"\n */\n transform?: \"none\" | \"uppercase\";\n /**\n * Whether the text has an underline.\n *\n * @defaultValue false\n */\n underline?: boolean;\n /**\n * Indicates the boldness of the text.\n *\n * Classic:\n * * `regular`: 400\n * * `interactive`: 500 (Classic only)\n * * `semiBold`: 600\n * * `bold`: 700\n * * `heavy`: 860 (Classic only)\n *\n * Cambio:\n * * `regular`: 400\n * * `medium`: 510\n * * `semiBold`: 590\n * * `bold`: 710\n *\n *\n * @defaultValue \"regular\"\n */\n weight?:\n | \"regular\"\n | \"interactive\"\n | \"medium\"\n | \"semiBold\"\n | \"bold\"\n | \"heavy\";\n }\n>(function Typography(\n {\n align = \"start\",\n as = \"div\",\n children,\n color = \"gray900\",\n \"data-testid\": dataTestId,\n fontStyle = \"sans-serif\",\n id,\n inline = false,\n lineClamp = undefined,\n size = 200,\n tooltip,\n transform = \"none\",\n underline = false,\n weight = \"regular\",\n },\n ref,\n): ReactElement {\n const Tag = as;\n\n const { themeName } = useTheme();\n\n const weightStyles =\n themeName === \"classic\"\n ? styles[classicWeight(weight)]\n : styles[`${cambioWeight(weight)}Cambio`];\n\n return (\n <Tag\n id={id}\n className={classNames(\n styles.typography,\n styles[align],\n weightStyles,\n themeName === \"cambio\" && fontStyle === \"serif\"\n ? styles.serif\n : styles.sansSerif,\n themeName === \"cambio\"\n ? cambioTextColor(color)\n : classicTextColor(color),\n inline && styles.inline,\n themeName === \"classic\"\n ? styles[\n `size${\n // TypeScript doesn't narrow the type of size with `.includes` so we have to do it manually\n // https://github.com/microsoft/TypeScript/issues/36275#issuecomment-643376433\n // One we ship Cambio, we can remove these checks\n size === 100 ||\n size === 200 ||\n size === 300 ||\n size === 500 ||\n size === 600 ||\n size === 700 ||\n size === 800\n ? size\n : 200\n }`\n ]\n : styles[`size${size}Cambio`],\n transform === \"uppercase\" && styles.uppercase,\n underline && styles.underline,\n lineClamp != null && styles.lineClamp,\n )}\n data-testid={dataTestId}\n style={{\n WebkitLineClamp: lineClamp,\n }}\n title={tooltip}\n ref={ref}\n >\n {children}\n </Tag>\n );\n});\n\nexport default Typography;\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Typography/Typography.module.css\"; export default {\"typography\":\"_typography_crxq1_1\",\"sansSerif\":\"_sansSerif_crxq1_22\",\"serif\":\"_serif_crxq1_27\",\"size100\":\"_size100_crxq1_71\",\"size200\":\"_size200_crxq1_75\",\"size300\":\"_size300_crxq1_79\",\"size500\":\"_size500_crxq1_83\",\"size600\":\"_size600_crxq1_87\",\"size700\":\"_size700_crxq1_91\",\"size800\":\"_size800_crxq1_95\",\"size100Cambio\":\"_size100Cambio_crxq1_100\",\"size200Cambio\":\"_size200Cambio_crxq1_104\",\"size300Cambio\":\"_size300Cambio_crxq1_108\",\"size400Cambio\":\"_size400Cambio_crxq1_112\",\"size500Cambio\":\"_size500Cambio_crxq1_116\",\"size600Cambio\":\"_size600Cambio_crxq1_120\",\"size700Cambio\":\"_size700Cambio_crxq1_124\",\"size800Cambio\":\"_size800Cambio_crxq1_128\",\"size900Cambio\":\"_size900Cambio_crxq1_132\",\"size1000Cambio\":\"_size1000Cambio_crxq1_173\",\"size1100Cambio\":\"_size1100Cambio_crxq1_177\",\"center\":\"_center_crxq1_183\",\"forceLeft\":\"_forceLeft_crxq1_187\",\"forceRight\":\"_forceRight_crxq1_191\",\"start\":\"_start_crxq1_195\",\"end\":\"_end_crxq1_199\",\"bold\":\"_bold_crxq1_204\",\"regular\":\"_regular_crxq1_208\",\"interactive\":\"_interactive_crxq1_212\",\"semiBold\":\"_semiBold_crxq1_216\",\"heavy\":\"_heavy_crxq1_220\",\"regularCambio\":\"_regularCambio_crxq1_224\",\"mediumCambio\":\"_mediumCambio_crxq1_228\",\"semiBoldCambio\":\"_semiBoldCambio_crxq1_232\",\"boldCambio\":\"_boldCambio_crxq1_236\",\"underline\":\"_underline_crxq1_240\",\"inline\":\"_inline_crxq1_244\",\"uppercase\":\"_uppercase_crxq1_248\",\"lineClamp\":\"_lineClamp_crxq1_252\"}"]}
|
|
1
|
+
{"version":3,"sources":["../../src/Typography/Typography.tsx","css-module:./Typography.module.css#css-module"],"names":["Typography"],"mappings":"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","sourcesContent":["import classNames from \"classnames\";\nimport { forwardRef, type ReactElement, type ReactNode } from \"react\";\nimport styles from \"./Typography.module.css\";\nimport colorStyles from \"../colors/colors.module.css\";\nimport { useTheme } from \"../ThemeProvider/ThemeProvider\";\n\nfunction classicTextColor(\n color:\n | \"gray900\"\n | \"gray700\"\n | \"primary\"\n | \"destructive-primary\"\n | \"destructive-darkBackground\"\n | \"success\"\n | \"success-darkBackground\"\n | \"white\"\n | \"inherit\",\n): string {\n switch (color) {\n case \"gray700\":\n return colorStyles.gray700Color;\n case \"white\":\n return colorStyles.whiteColor;\n case \"inherit\":\n return colorStyles.inheritColor;\n case \"primary\":\n return colorStyles.primary700Color;\n case \"destructive-primary\":\n case \"destructive-darkBackground\":\n return colorStyles.destructive700Color;\n case \"success\":\n return colorStyles.success700Color;\n default:\n return colorStyles.gray900Color;\n }\n}\n\nfunction cambioTextColor(\n color:\n | \"gray900\"\n | \"gray700\"\n | \"primary\"\n | \"destructive-primary\"\n | \"destructive-darkBackground\"\n | \"success\"\n | \"success-darkBackground\"\n | \"white\"\n | \"inherit\",\n): string {\n switch (color) {\n case \"gray700\":\n return colorStyles.cambioGray800Color;\n case \"white\":\n return colorStyles.cambioWhiteColor;\n case \"inherit\":\n return colorStyles.inheritColor;\n case \"destructive-primary\":\n return colorStyles.cambioDestructive900Color;\n case \"destructive-darkBackground\":\n return colorStyles.cambioDestructive100Color;\n case \"success\":\n return colorStyles.cambioSuccess900Color;\n case \"success-darkBackground\":\n return colorStyles.cambioSuccess100Color;\n // primary / gray900\n default:\n return colorStyles.cambioBlackColor;\n }\n}\n\nfunction classicWeight(\n weight: \"regular\" | \"interactive\" | \"medium\" | \"semiBold\" | \"bold\" | \"heavy\",\n): \"regular\" | \"interactive\" | \"semiBold\" | \"bold\" | \"heavy\" {\n switch (weight) {\n case \"medium\":\n return \"regular\";\n default:\n return weight;\n }\n}\n\nfunction cambioWeight(\n weight: \"regular\" | \"interactive\" | \"medium\" | \"semiBold\" | \"bold\" | \"heavy\",\n): \"regular\" | \"medium\" | \"semiBold\" | \"bold\" {\n switch (weight) {\n case \"interactive\":\n return \"medium\";\n case \"heavy\":\n return \"regular\";\n default:\n return weight;\n }\n}\n\n/**\n * [Typography](https://cambly-syntax.vercel.app/?path=/docs/components-typography--docs) is a component that renders text.\n */\nconst Typography = forwardRef<\n HTMLDivElement,\n {\n /**\n * Aligns the text to the left, right, or center of the container.\n * * `start` and `end` will align the text to the left or right of the container depending on the locale.\n * * `forceLeft` and `forceRight` will align the text to the left or right of the container regardless of the locale (should be used sparingly).\n *\n * @defaultValue \"start\"\n */\n align?: \"start\" | \"end\" | \"forceLeft\" | \"center\" | \"forceRight\";\n /**\n * DOM element to render as.\n *\n * @defaultValue \"div\"\n */\n as?: \"div\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\n /**\n * The text to be rendered\n */\n children?: ReactNode;\n /**\n * The color of the text.\n *\n * Cambio only: `success-darkBackground` / `destructive-darkBackground`\n *\n * @defaultValue \"gray900\"\n */\n color?:\n | \"gray900\"\n | \"gray700\"\n | \"primary\"\n | \"destructive-primary\"\n | \"destructive-darkBackground\"\n | \"success\"\n | \"success-darkBackground\"\n | \"white\"\n | \"inherit\";\n /**\n * Test id for the text\n */\n \"data-testid\"?: string;\n /**\n * Style of the font\n *\n * Classic only supports `sans-serif`\n *\n * @defaultValue \"sans-serif\"\n */\n fontStyle?: \"serif\" | \"sans-serif\";\n /**\n * The id for the element\n */\n id?: string;\n /**\n * Whether the text should flow inline with other elements.\n *\n * @defaultValue false\n */\n inline?: boolean;\n /**\n * The number of lines we should truncate the text at\n */\n lineClamp?: number | undefined;\n /**\n * Size of the text.\n *\n * Classic:\n * * `100`: 12px\n * * `200`: 14px\n * * `300`: 16px\n * * `500`: 20px\n * * `600`: 28px\n * * `700`: 40px\n * * `800`: 64px\n *\n * Cambio Mobile:\n * * `100`: 14px\n * * `200`: 16px\n * * `300`: 18px\n * * `400`: 20px\n * * `500`: 23px\n * * `600`: 26px\n * * `700`: 29px\n * * `800`: 33px\n * * `900`: 37px\n * * `1000`: 41px\n * * `1100`: 46px\n *\n * Cambio Desktop (viewport width > 480px):\n * * `100`: 13px\n * * `200`: 16px\n * * `300`: 20px\n * * `400`: 25px\n * * `500`: 31px\n * * `600`: 39px\n * * `700`: 49px\n * * `800`: 61px\n * * `900`: 76px\n * * `1000`: 95px\n * * `1100`: 119px\n *\n * @defaultValue 200\n */\n size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000 | 1100;\n /**\n * The tooltip to be displayed when the user hovers the text\n */\n tooltip?: string;\n /**\n * Whether the text should be transformed to uppercase.\n *\n * @defaultValue \"none\"\n */\n transform?: \"none\" | \"uppercase\";\n /**\n * Whether the text has an underline.\n *\n * @defaultValue false\n */\n underline?: boolean;\n /**\n * Indicates the boldness of the text.\n *\n * Classic:\n * * `regular`: 400\n * * `interactive`: 500 (Classic only)\n * * `semiBold`: 600\n * * `bold`: 700\n * * `heavy`: 860 (Classic only)\n *\n * Cambio:\n * * `regular`: 400\n * * `medium`: 510\n * * `semiBold`: 590\n * * `bold`: 710\n *\n *\n * @defaultValue \"regular\"\n */\n weight?:\n | \"regular\"\n | \"interactive\"\n | \"medium\"\n | \"semiBold\"\n | \"bold\"\n | \"heavy\";\n }\n>(function Typography(\n {\n align = \"start\",\n as = \"div\",\n children,\n color = \"gray900\",\n \"data-testid\": dataTestId,\n fontStyle = \"sans-serif\",\n id,\n inline = false,\n lineClamp = undefined,\n size = 200,\n tooltip,\n transform = \"none\",\n underline = false,\n weight = \"regular\",\n },\n ref,\n): ReactElement {\n const Tag = as;\n\n const { themeName } = useTheme();\n\n const weightStyles =\n themeName === \"classic\"\n ? styles[classicWeight(weight)]\n : styles[`${cambioWeight(weight)}Cambio`];\n\n return (\n <Tag\n id={id}\n className={classNames(\n styles.typography,\n styles[align],\n weightStyles,\n themeName === \"cambio\" && fontStyle === \"serif\"\n ? styles.serif\n : styles.sansSerif,\n themeName === \"cambio\"\n ? cambioTextColor(color)\n : classicTextColor(color),\n inline && styles.inline,\n themeName === \"classic\"\n ? styles[\n `size${\n // TypeScript doesn't narrow the type of size with `.includes` so we have to do it manually\n // https://github.com/microsoft/TypeScript/issues/36275#issuecomment-643376433\n // One we ship Cambio, we can remove these checks\n size === 100 ||\n size === 200 ||\n size === 300 ||\n size === 500 ||\n size === 600 ||\n size === 700 ||\n size === 800\n ? size\n : 200\n }`\n ]\n : styles[`size${size}Cambio`],\n transform === \"uppercase\" && styles.uppercase,\n underline && styles.underline,\n lineClamp != null && styles.lineClamp,\n )}\n data-testid={dataTestId}\n style={{\n WebkitLineClamp: lineClamp,\n }}\n title={tooltip}\n ref={ref}\n >\n {children}\n </Tag>\n );\n});\n\nexport default Typography;\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Typography/Typography.module.css\"; export default {\"typography\":\"_typography_emvev_1\",\"sansSerif\":\"_sansSerif_emvev_22\",\"serif\":\"_serif_emvev_27\",\"size100\":\"_size100_emvev_71\",\"size200\":\"_size200_emvev_75\",\"size300\":\"_size300_emvev_79\",\"size500\":\"_size500_emvev_83\",\"size600\":\"_size600_emvev_87\",\"size700\":\"_size700_emvev_91\",\"size800\":\"_size800_emvev_95\",\"size100Cambio\":\"_size100Cambio_emvev_100\",\"size200Cambio\":\"_size200Cambio_emvev_104\",\"size300Cambio\":\"_size300Cambio_emvev_108\",\"size400Cambio\":\"_size400Cambio_emvev_112\",\"size500Cambio\":\"_size500Cambio_emvev_116\",\"size600Cambio\":\"_size600Cambio_emvev_120\",\"size700Cambio\":\"_size700Cambio_emvev_124\",\"size800Cambio\":\"_size800Cambio_emvev_128\",\"size900Cambio\":\"_size900Cambio_emvev_132\",\"size1000Cambio\":\"_size1000Cambio_emvev_173\",\"size1100Cambio\":\"_size1100Cambio_emvev_177\",\"center\":\"_center_emvev_183\",\"forceLeft\":\"_forceLeft_emvev_187\",\"forceRight\":\"_forceRight_emvev_191\",\"start\":\"_start_emvev_195\",\"end\":\"_end_emvev_199\",\"bold\":\"_bold_emvev_204\",\"regular\":\"_regular_emvev_208\",\"interactive\":\"_interactive_emvev_212\",\"semiBold\":\"_semiBold_emvev_216\",\"heavy\":\"_heavy_emvev_220\",\"regularCambio\":\"_regularCambio_emvev_224\",\"mediumCambio\":\"_mediumCambio_emvev_228\",\"semiBoldCambio\":\"_semiBoldCambio_emvev_232\",\"boldCambio\":\"_boldCambio_emvev_236\",\"underline\":\"_underline_emvev_240\",\"inline\":\"_inline_emvev_244\",\"uppercase\":\"_uppercase_emvev_248\",\"lineClamp\":\"_lineClamp_emvev_252\"}"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _NCUQOLOVcjs = require('./NCUQOLOV.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _RYUXG4AScjs = require('./RYUXG4AS.cjs');
|
|
@@ -16,7 +16,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
16
16
|
var RichSelectChip_default = _react.forwardRef.call(void 0,
|
|
17
17
|
function RichSelectChip(props, ref) {
|
|
18
18
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _RYUXG4AScjs.RichSelectItem_default, _X2SDR4SDcjs.__spreadProps.call(void 0, _X2SDR4SDcjs.__spreadValues.call(void 0, {}, props), { ref, children: ({ isSelected, isFocusVisible, isDisabled }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19
|
-
|
|
19
|
+
_NCUQOLOVcjs.Chip_default,
|
|
20
20
|
{
|
|
21
21
|
text: props.label,
|
|
22
22
|
selected: isSelected,
|
|
@@ -31,4 +31,4 @@ var RichSelectChip_default = _react.forwardRef.call(void 0,
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
exports.RichSelectChip_default = RichSelectChip_default;
|
|
34
|
-
//# sourceMappingURL=
|
|
34
|
+
//# sourceMappingURL=ZUQC37VB.cjs.map
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _2RWNBVOKcjs = require('./__chunks/2RWNBVOK.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _ZRO3RCYXcjs = require('./__chunks/ZRO3RCYX.cjs');
|
|
@@ -13,46 +13,46 @@ var _PKBQW5T6cjs = require('./__chunks/PKBQW5T6.cjs');
|
|
|
13
13
|
var _A323TCSAcjs = require('./__chunks/A323TCSA.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _FH2W3CI2cjs = require('./__chunks/FH2W3CI2.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _KYIRM6PZcjs = require('./__chunks/KYIRM6PZ.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _DDUKESGScjs = require('./__chunks/DDUKESGS.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _THYSYYWScjs = require('./__chunks/THYSYYWS.cjs');
|
|
26
26
|
require('./__chunks/HUIHS6RN.cjs');
|
|
27
27
|
require('./__chunks/6P6ARVEA.cjs');
|
|
28
28
|
require('./__chunks/ZDQ6WQM3.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _EKHHYK7Ucjs = require('./__chunks/EKHHYK7U.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _2BEN3VH2cjs = require('./__chunks/2BEN3VH2.cjs');
|
|
35
35
|
require('./__chunks/4UJE5GMH.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
39
|
-
require('./__chunks/
|
|
38
|
+
var _JHLUJYBXcjs = require('./__chunks/JHLUJYBX.cjs');
|
|
39
|
+
require('./__chunks/GEGGHBSM.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
var _RVFY33X2cjs = require('./__chunks/RVFY33X2.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
var
|
|
45
|
+
var _CS66HKUBcjs = require('./__chunks/CS66HKUB.cjs');
|
|
46
46
|
require('./__chunks/3P2PWHOU.cjs');
|
|
47
47
|
require('./__chunks/5JUNB754.cjs');
|
|
48
48
|
require('./__chunks/ZCSR6NFB.cjs');
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
var _HYRATHVKcjs = require('./__chunks/HYRATHVK.cjs');
|
|
52
|
-
require('./__chunks/
|
|
52
|
+
require('./__chunks/ZUQC37VB.cjs');
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
var
|
|
55
|
+
var _NCUQOLOVcjs = require('./__chunks/NCUQOLOV.cjs');
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
var _LECUYS4Ocjs = require('./__chunks/LECUYS4O.cjs');
|
|
@@ -67,13 +67,13 @@ require('./__chunks/HWQUS53M.cjs');
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
var _UKLQ64N7cjs = require('./__chunks/UKLQ64N7.cjs');
|
|
70
|
-
require('./__chunks/
|
|
71
|
-
require('./__chunks/
|
|
70
|
+
require('./__chunks/OFALBLGM.cjs');
|
|
71
|
+
require('./__chunks/SFOAZYZG.cjs');
|
|
72
72
|
require('./__chunks/MF7LLV7V.cjs');
|
|
73
|
-
require('./__chunks/
|
|
73
|
+
require('./__chunks/WOIJRASP.cjs');
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
var
|
|
76
|
+
var _5MKCDCHQcjs = require('./__chunks/5MKCDCHQ.cjs');
|
|
77
77
|
require('./__chunks/XLUVINJW.cjs');
|
|
78
78
|
require('./__chunks/RYUXG4AS.cjs');
|
|
79
79
|
require('./__chunks/UQY2ELTZ.cjs');
|
|
@@ -81,12 +81,12 @@ require('./__chunks/J43HGNHN.cjs');
|
|
|
81
81
|
require('./__chunks/DTKTTGU5.cjs');
|
|
82
82
|
|
|
83
83
|
|
|
84
|
-
var
|
|
84
|
+
var _BVYHALMTcjs = require('./__chunks/BVYHALMT.cjs');
|
|
85
85
|
require('./__chunks/PLUVW6AM.cjs');
|
|
86
86
|
require('./__chunks/IL22HCBF.cjs');
|
|
87
87
|
|
|
88
88
|
|
|
89
|
-
var
|
|
89
|
+
var _3FMGCZP2cjs = require('./__chunks/3FMGCZP2.cjs');
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
|
|
@@ -96,7 +96,7 @@ require('./__chunks/S5QHTHST.cjs');
|
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
|
|
99
|
-
var
|
|
99
|
+
var _XU3CLITIcjs = require('./__chunks/XU3CLITI.cjs');
|
|
100
100
|
require('./__chunks/QAS3KERZ.cjs');
|
|
101
101
|
|
|
102
102
|
|
|
@@ -136,5 +136,5 @@ require('./__chunks/X2SDR4SD.cjs');
|
|
|
136
136
|
|
|
137
137
|
|
|
138
138
|
|
|
139
|
-
exports.Avatar = _ZRO3RCYXcjs.Avatar_default; exports.AvatarGroup = _PKBQW5T6cjs.AvatarGroup; exports.Badge =
|
|
139
|
+
exports.Avatar = _ZRO3RCYXcjs.Avatar_default; exports.AvatarGroup = _PKBQW5T6cjs.AvatarGroup; exports.Badge = _2RWNBVOKcjs.Badge_default; exports.Box = _GANR5JVVcjs.Box_default; exports.Button = _CS66HKUBcjs.Button_default; exports.ButtonGroup = _RVFY33X2cjs.ButtonGroup_default; exports.Card = _A323TCSAcjs.Card; exports.Checkbox = _KYIRM6PZcjs.Checkbox_default; exports.Chip = _NCUQOLOVcjs.Chip_default; exports.Divider = _HYRATHVKcjs.Divider; exports.Heading = _THYSYYWScjs.Heading_default; exports.IconButton = _OAZD7W2Wcjs.IconButton_default; exports.LinkButton = _FH2W3CI2cjs.LinkButton_default; exports.Modal = _DDUKESGScjs.Modal; exports.Popover = _LECUYS4Ocjs.Popover_default; exports.RadioButton = _5MKCDCHQcjs.RadioButton_default; exports.RichSelectList = _JHLUJYBXcjs.RichSelectList_default; exports.SelectList = _2BEN3VH2cjs.SelectList; exports.TapArea = _UKLQ64N7cjs.TapArea_default; exports.TextArea = _EKHHYK7Ucjs.TextArea_default; exports.TextField = _3FMGCZP2cjs.TextField; exports.ThemeProvider = _JXOKXBDZcjs.ThemeProvider; exports.Tooltip = _BVYHALMTcjs.Tooltip_default; exports.Typography = _XU3CLITIcjs.Typography_default; exports.useTheme = _JXOKXBDZcjs.useTheme;
|
|
140
140
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.css
CHANGED
|
@@ -2113,7 +2113,7 @@
|
|
|
2113
2113
|
}
|
|
2114
2114
|
|
|
2115
2115
|
/* css-module:/home/runner/work/syntax/syntax/packages/syntax-core/src/Typography/Typography.module.css/#css-module-data */
|
|
2116
|
-
.
|
|
2116
|
+
._typography_emvev_1 {
|
|
2117
2117
|
line-height: initial;
|
|
2118
2118
|
margin: 0;
|
|
2119
2119
|
}
|
|
@@ -2121,168 +2121,168 @@
|
|
|
2121
2121
|
font-family: "GT Super";
|
|
2122
2122
|
font-style: normal;
|
|
2123
2123
|
font-weight: 510;
|
|
2124
|
-
src: local("GT-Super-Text-Medium"), url(https://static.cambly.com/fonts/gt-super-text-medium-
|
|
2124
|
+
src: local("GT-Super-Text-Medium"), url(https://static.cambly.com/fonts/gt-super-text-medium-final.woff2);
|
|
2125
2125
|
}
|
|
2126
2126
|
@font-face {
|
|
2127
2127
|
font-family: "GT Super";
|
|
2128
2128
|
font-style: normal;
|
|
2129
2129
|
font-weight: 700;
|
|
2130
|
-
src: local("GT-Super-Text-Bold"), url(https://static.cambly.com/fonts/gt-super-text-bold-
|
|
2130
|
+
src: local("GT-Super-Text-Bold"), url(https://static.cambly.com/fonts/gt-super-text-bold-final.woff2);
|
|
2131
2131
|
}
|
|
2132
|
-
.
|
|
2132
|
+
._sansSerif_emvev_22 {
|
|
2133
2133
|
font-family: var(--syntax-font-sans-serif);
|
|
2134
2134
|
margin: 0;
|
|
2135
2135
|
}
|
|
2136
|
-
.
|
|
2136
|
+
._serif_emvev_27 {
|
|
2137
2137
|
font-family: var( --syntax-font-sans-serif );
|
|
2138
2138
|
}
|
|
2139
|
-
:lang(en) .
|
|
2140
|
-
:lang(az) .
|
|
2141
|
-
:lang(fr) .
|
|
2142
|
-
:lang(de) .
|
|
2143
|
-
:lang(es) .
|
|
2144
|
-
:lang(it) .
|
|
2145
|
-
:lang(pl) .
|
|
2146
|
-
:lang(pt) .
|
|
2147
|
-
:lang(tr) .
|
|
2139
|
+
:lang(en) ._serif_emvev_27,
|
|
2140
|
+
:lang(az) ._serif_emvev_27,
|
|
2141
|
+
:lang(fr) ._serif_emvev_27,
|
|
2142
|
+
:lang(de) ._serif_emvev_27,
|
|
2143
|
+
:lang(es) ._serif_emvev_27,
|
|
2144
|
+
:lang(it) ._serif_emvev_27,
|
|
2145
|
+
:lang(pl) ._serif_emvev_27,
|
|
2146
|
+
:lang(pt) ._serif_emvev_27,
|
|
2147
|
+
:lang(tr) ._serif_emvev_27 {
|
|
2148
2148
|
font-family: "GT Super", var(--syntax-font-sans-serif);
|
|
2149
2149
|
-webkit-font-smoothing: antialiased;
|
|
2150
2150
|
}
|
|
2151
|
-
.
|
|
2151
|
+
._size100_emvev_71 {
|
|
2152
2152
|
font-size: 12px;
|
|
2153
2153
|
}
|
|
2154
|
-
.
|
|
2154
|
+
._size200_emvev_75 {
|
|
2155
2155
|
font-size: 14px;
|
|
2156
2156
|
}
|
|
2157
|
-
.
|
|
2157
|
+
._size300_emvev_79 {
|
|
2158
2158
|
font-size: 16px;
|
|
2159
2159
|
}
|
|
2160
|
-
.
|
|
2160
|
+
._size500_emvev_83 {
|
|
2161
2161
|
font-size: 20px;
|
|
2162
2162
|
}
|
|
2163
|
-
.
|
|
2163
|
+
._size600_emvev_87 {
|
|
2164
2164
|
font-size: 28px;
|
|
2165
2165
|
}
|
|
2166
|
-
.
|
|
2166
|
+
._size700_emvev_91 {
|
|
2167
2167
|
font-size: 40px;
|
|
2168
2168
|
}
|
|
2169
|
-
.
|
|
2169
|
+
._size800_emvev_95 {
|
|
2170
2170
|
font-size: 64px;
|
|
2171
2171
|
}
|
|
2172
|
-
.
|
|
2172
|
+
._size100Cambio_emvev_100 {
|
|
2173
2173
|
font-size: 14px;
|
|
2174
2174
|
}
|
|
2175
|
-
.
|
|
2175
|
+
._size200Cambio_emvev_104 {
|
|
2176
2176
|
font-size: 16px;
|
|
2177
2177
|
}
|
|
2178
|
-
.
|
|
2178
|
+
._size300Cambio_emvev_108 {
|
|
2179
2179
|
font-size: 18px;
|
|
2180
2180
|
}
|
|
2181
|
-
.
|
|
2181
|
+
._size400Cambio_emvev_112 {
|
|
2182
2182
|
font-size: 20px;
|
|
2183
2183
|
}
|
|
2184
|
-
.
|
|
2184
|
+
._size500Cambio_emvev_116 {
|
|
2185
2185
|
font-size: 23px;
|
|
2186
2186
|
}
|
|
2187
|
-
.
|
|
2187
|
+
._size600Cambio_emvev_120 {
|
|
2188
2188
|
font-size: 26px;
|
|
2189
2189
|
}
|
|
2190
|
-
.
|
|
2190
|
+
._size700Cambio_emvev_124 {
|
|
2191
2191
|
font-size: 33px;
|
|
2192
2192
|
}
|
|
2193
|
-
.
|
|
2193
|
+
._size800Cambio_emvev_128 {
|
|
2194
2194
|
font-size: 41px;
|
|
2195
2195
|
}
|
|
2196
|
-
.
|
|
2196
|
+
._size900Cambio_emvev_132 {
|
|
2197
2197
|
font-size: 46px;
|
|
2198
2198
|
}
|
|
2199
2199
|
@media (min-width: 480px) {
|
|
2200
|
-
.
|
|
2200
|
+
._size100Cambio_emvev_100 {
|
|
2201
2201
|
font-size: 14px;
|
|
2202
2202
|
}
|
|
2203
|
-
.
|
|
2203
|
+
._size200Cambio_emvev_104 {
|
|
2204
2204
|
font-size: 16px;
|
|
2205
2205
|
}
|
|
2206
|
-
.
|
|
2206
|
+
._size300Cambio_emvev_108 {
|
|
2207
2207
|
font-size: 20px;
|
|
2208
2208
|
}
|
|
2209
|
-
.
|
|
2209
|
+
._size400Cambio_emvev_112 {
|
|
2210
2210
|
font-size: 25px;
|
|
2211
2211
|
}
|
|
2212
|
-
.
|
|
2212
|
+
._size500Cambio_emvev_116 {
|
|
2213
2213
|
font-size: 31px;
|
|
2214
2214
|
}
|
|
2215
|
-
.
|
|
2215
|
+
._size600Cambio_emvev_120 {
|
|
2216
2216
|
font-size: 39px;
|
|
2217
2217
|
}
|
|
2218
|
-
.
|
|
2218
|
+
._size700Cambio_emvev_124 {
|
|
2219
2219
|
font-size: 49px;
|
|
2220
2220
|
}
|
|
2221
|
-
.
|
|
2221
|
+
._size800Cambio_emvev_128 {
|
|
2222
2222
|
font-size: 61px;
|
|
2223
2223
|
}
|
|
2224
|
-
.
|
|
2224
|
+
._size900Cambio_emvev_132 {
|
|
2225
2225
|
font-size: 76px;
|
|
2226
2226
|
}
|
|
2227
|
-
.
|
|
2227
|
+
._size1000Cambio_emvev_173 {
|
|
2228
2228
|
font-size: 95px;
|
|
2229
2229
|
}
|
|
2230
|
-
.
|
|
2230
|
+
._size1100Cambio_emvev_177 {
|
|
2231
2231
|
font-size: 119px;
|
|
2232
2232
|
}
|
|
2233
2233
|
}
|
|
2234
|
-
.
|
|
2234
|
+
._center_emvev_183 {
|
|
2235
2235
|
text-align: center;
|
|
2236
2236
|
}
|
|
2237
|
-
.
|
|
2237
|
+
._forceLeft_emvev_187 {
|
|
2238
2238
|
text-align: left;
|
|
2239
2239
|
}
|
|
2240
|
-
.
|
|
2240
|
+
._forceRight_emvev_191 {
|
|
2241
2241
|
text-align: right;
|
|
2242
2242
|
}
|
|
2243
|
-
.
|
|
2243
|
+
._start_emvev_195 {
|
|
2244
2244
|
text-align: start;
|
|
2245
2245
|
}
|
|
2246
|
-
.
|
|
2246
|
+
._end_emvev_199 {
|
|
2247
2247
|
text-align: end;
|
|
2248
2248
|
}
|
|
2249
|
-
.
|
|
2249
|
+
._bold_emvev_204 {
|
|
2250
2250
|
font-weight: 700;
|
|
2251
2251
|
}
|
|
2252
|
-
.
|
|
2252
|
+
._regular_emvev_208 {
|
|
2253
2253
|
font-weight: 400;
|
|
2254
2254
|
}
|
|
2255
|
-
.
|
|
2255
|
+
._interactive_emvev_212 {
|
|
2256
2256
|
font-weight: 500;
|
|
2257
2257
|
}
|
|
2258
|
-
.
|
|
2258
|
+
._semiBold_emvev_216 {
|
|
2259
2259
|
font-weight: 600;
|
|
2260
2260
|
}
|
|
2261
|
-
.
|
|
2261
|
+
._heavy_emvev_220 {
|
|
2262
2262
|
font-weight: 860;
|
|
2263
2263
|
}
|
|
2264
|
-
.
|
|
2264
|
+
._regularCambio_emvev_224 {
|
|
2265
2265
|
font-weight: 400;
|
|
2266
2266
|
}
|
|
2267
|
-
.
|
|
2267
|
+
._mediumCambio_emvev_228 {
|
|
2268
2268
|
font-weight: 510;
|
|
2269
2269
|
}
|
|
2270
|
-
.
|
|
2270
|
+
._semiBoldCambio_emvev_232 {
|
|
2271
2271
|
font-weight: 590;
|
|
2272
2272
|
}
|
|
2273
|
-
.
|
|
2273
|
+
._boldCambio_emvev_236 {
|
|
2274
2274
|
font-weight: 700;
|
|
2275
2275
|
}
|
|
2276
|
-
.
|
|
2276
|
+
._underline_emvev_240 {
|
|
2277
2277
|
text-decoration: underline;
|
|
2278
2278
|
}
|
|
2279
|
-
.
|
|
2279
|
+
._inline_emvev_244 {
|
|
2280
2280
|
display: inline;
|
|
2281
2281
|
}
|
|
2282
|
-
.
|
|
2282
|
+
._uppercase_emvev_248 {
|
|
2283
2283
|
text-transform: uppercase;
|
|
2284
2284
|
}
|
|
2285
|
-
.
|
|
2285
|
+
._lineClamp_emvev_252 {
|
|
2286
2286
|
-webkit-box-orient: vertical;
|
|
2287
2287
|
display: -webkit-box;
|
|
2288
2288
|
max-width: 100%;
|