@cambly/syntax-core 10.2.0-beta.1 → 10.2.1
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/LICENSE +201 -0
- package/dist/Avatar/Avatar.cjs +13 -0
- package/dist/Avatar/Avatar.css +62 -65
- package/dist/Avatar/Avatar.css.map +1 -1
- package/dist/Avatar/Avatar.d.ts +1 -1
- package/dist/Avatar/Avatar.js +12 -12
- package/dist/Avatar/Avatar.js.map +1 -1
- package/dist/AvatarGroup/AvatarGroup.cjs +14 -0
- package/dist/AvatarGroup/AvatarGroup.css +61 -64
- package/dist/AvatarGroup/AvatarGroup.css.map +1 -1
- package/dist/AvatarGroup/AvatarGroup.js +13 -13
- package/dist/AvatarGroup/AvatarGroup.js.map +1 -1
- package/dist/Badge/Badge.cjs +13 -0
- package/dist/Badge/Badge.cjs.map +1 -0
- package/dist/Badge/Badge.css +63 -66
- package/dist/Badge/Badge.css.map +1 -1
- package/dist/Badge/Badge.d.ts +1 -1
- package/dist/Badge/Badge.js +12 -12
- package/dist/Badge/Badge.js.map +1 -1
- package/dist/Box/Box.cjs +11 -0
- package/dist/Box/Box.cjs.map +1 -0
- package/dist/Box/Box.css +61 -64
- package/dist/Box/Box.css.map +1 -1
- package/dist/Box/Box.js +10 -10
- package/dist/Box/Box.js.map +1 -1
- package/dist/Button/Button.cjs +21 -0
- package/dist/Button/Button.cjs.map +1 -0
- package/dist/Button/Button.css +92 -99
- package/dist/Button/Button.css.map +1 -1
- package/dist/Button/Button.js +20 -20
- package/dist/Button/Button.js.map +1 -1
- package/dist/Button/constants/iconSize.cjs +8 -0
- package/dist/Button/constants/iconSize.cjs.map +1 -0
- package/dist/Button/constants/iconSize.css +30 -34
- package/dist/Button/constants/iconSize.css.map +1 -1
- package/dist/Button/constants/iconSize.js +7 -7
- package/dist/Button/constants/iconSize.js.map +1 -1
- package/dist/Button/constants/loadingIconSize.cjs +8 -0
- package/dist/Button/constants/loadingIconSize.cjs.map +1 -0
- package/dist/Button/constants/loadingIconSize.js +7 -7
- package/dist/Button/constants/loadingIconSize.js.map +1 -1
- package/dist/Button/constants/textVariant.cjs +8 -0
- package/dist/Button/constants/textVariant.cjs.map +1 -0
- package/dist/Button/constants/textVariant.js +7 -7
- package/dist/Button/constants/textVariant.js.map +1 -1
- package/dist/ButtonGroup/ButtonGroup.cjs +8 -0
- package/dist/ButtonGroup/ButtonGroup.cjs.map +1 -0
- package/dist/ButtonGroup/ButtonGroup.css +1 -1
- package/dist/ButtonGroup/ButtonGroup.css.map +1 -1
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/ButtonGroup/ButtonGroup.js +7 -7
- package/dist/ButtonGroup/ButtonGroup.js.map +1 -1
- package/dist/Card/Card.cjs +12 -0
- package/dist/Card/Card.cjs.map +1 -0
- package/dist/Card/Card.css +61 -64
- package/dist/Card/Card.css.map +1 -1
- package/dist/Card/Card.js +11 -11
- package/dist/Card/Card.js.map +1 -1
- package/dist/Checkbox/Checkbox.cjs +14 -0
- package/dist/Checkbox/Checkbox.cjs.map +1 -0
- package/dist/Checkbox/Checkbox.css +60 -63
- package/dist/Checkbox/Checkbox.css.map +1 -1
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Checkbox/Checkbox.js +13 -13
- package/dist/Checkbox/Checkbox.js.map +1 -1
- package/dist/Chip/Chip.cjs +14 -0
- package/dist/Chip/Chip.cjs.map +1 -0
- package/dist/Chip/Chip.css +63 -66
- package/dist/Chip/Chip.css.map +1 -1
- package/dist/Chip/Chip.js +13 -13
- package/dist/Chip/Chip.js.map +1 -1
- package/dist/Divider/Divider.cjs +8 -0
- package/dist/Divider/Divider.cjs.map +1 -0
- package/dist/Divider/Divider.css +1 -1
- package/dist/Divider/Divider.css.map +1 -1
- package/dist/Divider/Divider.js +7 -7
- package/dist/Divider/Divider.js.map +1 -1
- package/dist/Heading/Heading.cjs +11 -0
- package/dist/Heading/Heading.cjs.map +1 -0
- package/dist/Heading/Heading.css +58 -61
- package/dist/Heading/Heading.css.map +1 -1
- package/dist/Heading/Heading.d.ts +1 -1
- package/dist/Heading/Heading.js +10 -10
- package/dist/Heading/Heading.js.map +1 -1
- package/dist/IconButton/IconButton.cjs +13 -0
- package/dist/IconButton/IconButton.cjs.map +1 -0
- package/dist/IconButton/IconButton.css +73 -82
- package/dist/IconButton/IconButton.css.map +1 -1
- package/dist/IconButton/IconButton.js +12 -12
- package/dist/IconButton/IconButton.js.map +1 -1
- package/dist/LinkButton/LinkButton.cjs +17 -0
- package/dist/LinkButton/LinkButton.cjs.map +1 -0
- package/dist/LinkButton/LinkButton.css +89 -96
- package/dist/LinkButton/LinkButton.css.map +1 -1
- package/dist/LinkButton/LinkButton.js +16 -16
- package/dist/LinkButton/LinkButton.js.map +1 -1
- package/dist/Modal/FocusTrap.cjs +8 -0
- package/dist/Modal/FocusTrap.cjs.map +1 -0
- package/dist/Modal/FocusTrap.js +7 -7
- package/dist/Modal/FocusTrap.js.map +1 -1
- package/dist/Modal/Layer.cjs +12 -0
- package/dist/Modal/Layer.cjs.map +1 -0
- package/dist/Modal/Layer.css +61 -64
- package/dist/Modal/Layer.css.map +1 -1
- package/dist/Modal/Layer.js +11 -11
- package/dist/Modal/Layer.js.map +1 -1
- package/dist/Modal/Modal.cjs +17 -0
- package/dist/Modal/Modal.cjs.map +1 -0
- package/dist/Modal/Modal.css +63 -66
- package/dist/Modal/Modal.css.map +1 -1
- package/dist/Modal/Modal.js +16 -16
- package/dist/Modal/Modal.js.map +1 -1
- package/dist/Modal/StopScroll.cjs +8 -0
- package/dist/Modal/StopScroll.cjs.map +1 -0
- package/dist/Modal/StopScroll.js +7 -7
- package/dist/Modal/StopScroll.js.map +1 -1
- package/dist/RadioButton/RadioButton.cjs +14 -0
- package/dist/RadioButton/RadioButton.cjs.map +1 -0
- package/dist/RadioButton/RadioButton.css +60 -63
- package/dist/RadioButton/RadioButton.css.map +1 -1
- package/dist/RadioButton/RadioButton.d.ts +1 -1
- package/dist/RadioButton/RadioButton.js +13 -13
- package/dist/RadioButton/RadioButton.js.map +1 -1
- package/dist/SelectList/SelectList.cjs +15 -0
- package/dist/SelectList/SelectList.cjs.map +1 -0
- package/dist/SelectList/SelectList.css +83 -83
- package/dist/SelectList/SelectList.css.map +1 -1
- package/dist/SelectList/SelectList.js +14 -14
- package/dist/SelectList/SelectList.js.map +1 -1
- package/dist/SelectList/SelectOption.cjs +8 -0
- package/dist/SelectList/SelectOption.cjs.map +1 -0
- package/dist/SelectList/SelectOption.js +7 -7
- package/dist/SelectList/SelectOption.js.map +1 -1
- package/dist/TapArea/TapArea.cjs +10 -0
- package/dist/TapArea/TapArea.cjs.map +1 -0
- package/dist/TapArea/TapArea.css +2 -2
- package/dist/TapArea/TapArea.css.map +1 -1
- package/dist/TapArea/TapArea.js +9 -9
- package/dist/TapArea/TapArea.js.map +1 -1
- package/dist/TextArea/TextArea.cjs +15 -0
- package/dist/TextArea/TextArea.cjs.map +1 -0
- package/dist/TextArea/TextArea.css +85 -90
- package/dist/TextArea/TextArea.css.map +1 -1
- package/dist/TextArea/TextArea.js +14 -14
- package/dist/TextArea/TextArea.js.map +1 -1
- package/dist/TextField/TextField.cjs +15 -0
- package/dist/TextField/TextField.cjs.map +1 -0
- package/dist/TextField/TextField.css +79 -84
- package/dist/TextField/TextField.css.map +1 -1
- package/dist/TextField/TextField.js +14 -14
- package/dist/TextField/TextField.js.map +1 -1
- package/dist/Typography/Typography.cjs +10 -0
- package/dist/Typography/Typography.cjs.map +1 -0
- package/dist/Typography/Typography.css +58 -61
- package/dist/Typography/Typography.css.map +1 -1
- package/dist/Typography/Typography.d.ts +1 -1
- package/dist/Typography/Typography.js +9 -9
- package/dist/Typography/Typography.js.map +1 -1
- package/dist/__chunks/{VW7YADUL.mjs → 2JWMSFS7.js} +2 -2
- package/dist/__chunks/{MQPPALTP.mjs → 2O6FDRTF.js} +1 -1
- package/dist/__chunks/2O6FDRTF.js.map +1 -0
- package/dist/__chunks/36B62A3Z.cjs +12 -0
- package/dist/__chunks/36B62A3Z.cjs.map +1 -0
- package/dist/__chunks/{PN7GAGSA.mjs → 37CQV3RS.js} +4 -4
- package/dist/__chunks/{PN7GAGSA.mjs.map → 37CQV3RS.js.map} +1 -1
- package/dist/__chunks/{P4CNOF3E.js → 3F5U7W73.cjs} +3 -3
- package/dist/__chunks/{37REMIOM.js → 3HVG5AGO.cjs} +1 -1
- package/dist/__chunks/3HVG5AGO.cjs.map +1 -0
- package/dist/__chunks/{BXCLZFW3.js → 3TXXNWWA.cjs} +1 -1
- package/dist/__chunks/3TXXNWWA.cjs.map +1 -0
- package/dist/__chunks/{V4YM6NMQ.mjs → 3VUMTAUX.js} +4 -4
- package/dist/__chunks/{V4YM6NMQ.mjs.map → 3VUMTAUX.js.map} +1 -1
- package/dist/__chunks/42YPEAFS.js +10 -10
- package/dist/__chunks/42YPEAFS.js.map +1 -1
- package/dist/__chunks/4ICD552D.cjs +31 -0
- package/dist/__chunks/4ICD552D.cjs.map +1 -0
- package/dist/__chunks/{RCT3DP22.mjs → 4PWSK5GI.js} +1 -1
- package/dist/__chunks/4PWSK5GI.js.map +1 -0
- package/dist/__chunks/5AR53MHD.js +1 -1
- package/dist/__chunks/5AR53MHD.js.map +1 -1
- package/dist/__chunks/5DBWL6IK.js +4 -4
- package/dist/__chunks/5DBWL6IK.js.map +1 -1
- package/dist/__chunks/{6KRS5AXC.mjs → 6VWFOSQZ.js} +1 -1
- package/dist/__chunks/6VWFOSQZ.js.map +1 -0
- package/dist/__chunks/{S2OLRDIA.js → 7GJ2SD7O.cjs} +1 -1
- package/dist/__chunks/7GJ2SD7O.cjs.map +1 -0
- package/dist/__chunks/AFINOME7.js +6 -6
- package/dist/__chunks/AFINOME7.js.map +1 -1
- package/dist/__chunks/{PHVABKOK.js → ARYAYAXH.cjs} +9 -9
- package/dist/__chunks/{PHVABKOK.js.map → ARYAYAXH.cjs.map} +1 -1
- package/dist/__chunks/{UDNFWDDK.mjs → BSFWQWVJ.js} +2 -2
- package/dist/__chunks/{YUPTQIXD.mjs → BSWWGQAS.js} +5 -5
- package/dist/__chunks/{2LIL7UH4.mjs.map → BSWWGQAS.js.map} +1 -1
- package/dist/__chunks/{3ZLWNPWB.js → C5IESDXE.cjs} +12 -12
- package/dist/__chunks/C5IESDXE.cjs.map +1 -0
- package/dist/__chunks/{SSU3B5AR.mjs → CATJI2RJ.js} +2 -3
- package/dist/__chunks/{F4HTASEF.mjs.map → CATJI2RJ.js.map} +1 -1
- package/dist/__chunks/{OLOF45YI.js → CEWOAFV2.cjs} +3 -3
- package/dist/__chunks/{LKIXWY5D.js → CGUZFFJ2.cjs} +10 -10
- package/dist/__chunks/{LKIXWY5D.js.map → CGUZFFJ2.cjs.map} +1 -1
- package/dist/__chunks/{Z4IY6SNT.mjs → CQ2HIJ62.js} +2 -2
- package/dist/__chunks/{4ONM4N5U.js → CWNH5WDG.cjs} +7 -7
- package/dist/__chunks/{GAMU7S2F.js.map → CWNH5WDG.cjs.map} +1 -1
- package/dist/__chunks/{E2XTXKKB.js → CY6YL5T4.cjs} +10 -10
- package/dist/__chunks/{E2XTXKKB.js.map → CY6YL5T4.cjs.map} +1 -1
- package/dist/__chunks/{FLKYHNRX.mjs → D24RSGYP.js} +1 -1
- package/dist/__chunks/D24RSGYP.js.map +1 -0
- package/dist/__chunks/{AYC7TUMS.mjs → ERJ5XXDH.js} +9 -9
- package/dist/__chunks/{AYC7TUMS.mjs.map → ERJ5XXDH.js.map} +1 -1
- package/dist/__chunks/{LICJ6EW4.mjs → ERXGNP37.js} +1 -1
- package/dist/__chunks/ERXGNP37.js.map +1 -0
- package/dist/__chunks/{F6FB6X7B.js → EXYF6BLV.cjs} +9 -9
- package/dist/__chunks/{WLELQDTJ.js.map → EXYF6BLV.cjs.map} +1 -1
- package/dist/__chunks/{BQUP6OTG.mjs → F3ZST4RL.js} +2 -2
- package/dist/__chunks/{3HUELEGR.mjs.map → F3ZST4RL.js.map} +1 -1
- package/dist/__chunks/{JMKHYRFL.mjs → FOTKCGZZ.js} +3 -3
- package/dist/__chunks/FOTKCGZZ.js.map +1 -0
- package/dist/__chunks/FZRIE7EX.cjs +14 -0
- package/dist/__chunks/FZRIE7EX.cjs.map +1 -0
- package/dist/__chunks/{5QXUIARJ.mjs → G4DDTGDI.js} +2 -3
- package/dist/__chunks/{ZHZ6U63Z.mjs.map → G4DDTGDI.js.map} +1 -1
- package/dist/__chunks/{TYC3IUHY.mjs → G6TO2NCY.js} +2 -2
- package/dist/__chunks/{FMAN3GYO.js → GBJX7OPK.cjs} +6 -6
- package/dist/__chunks/GBJX7OPK.cjs.map +1 -0
- package/dist/__chunks/GKECCWR3.cjs +14 -0
- package/dist/__chunks/GKECCWR3.cjs.map +1 -0
- package/dist/__chunks/{K3JR7BCX.mjs → GPS2XNQI.js} +16 -12
- package/dist/__chunks/{LCM6DHNZ.mjs.map → GPS2XNQI.js.map} +1 -1
- package/dist/__chunks/{NM45EZZR.mjs → GPWBSPBL.js} +6 -6
- package/dist/__chunks/{NM45EZZR.mjs.map → GPWBSPBL.js.map} +1 -1
- package/dist/__chunks/{FCX7QDZS.mjs → GVEA7SLQ.cjs} +8 -8
- package/dist/__chunks/GVEA7SLQ.cjs.map +1 -0
- package/dist/__chunks/HOUO3WV6.js +6 -6
- package/dist/__chunks/HOUO3WV6.js.map +1 -1
- package/dist/__chunks/{SFLBYQCV.mjs → HQVZUEWO.js} +1 -2
- package/dist/__chunks/{LTYTYJEN.mjs.map → HQVZUEWO.js.map} +1 -1
- package/dist/__chunks/{CUDAH5IW.mjs → I64JGYX7.cjs} +7 -7
- package/dist/__chunks/I64JGYX7.cjs.map +1 -0
- package/dist/__chunks/{O24347EQ.js → IFJ2YOEG.cjs} +3 -3
- package/dist/__chunks/{DPOT7MLO.js → IVRMVGR2.cjs} +12 -12
- package/dist/__chunks/{DPOT7MLO.js.map → IVRMVGR2.cjs.map} +1 -1
- package/dist/__chunks/{56HU44ZD.js → JMKXHLVZ.cjs} +3 -3
- package/dist/__chunks/{3LM54GWV.mjs → LJHH6KUW.js} +1 -1
- package/dist/__chunks/LJHH6KUW.js.map +1 -0
- package/dist/__chunks/{VPGRPGP7.js → LTM57QMY.cjs} +1 -1
- package/dist/__chunks/LTM57QMY.cjs.map +1 -0
- package/dist/__chunks/LULBCTQR.js +6 -6
- package/dist/__chunks/LULBCTQR.js.map +1 -1
- package/dist/__chunks/{XTX7ZISS.js → MUHQ73PC.cjs} +10 -10
- package/dist/__chunks/{XTX7ZISS.js.map → MUHQ73PC.cjs.map} +1 -1
- package/dist/__chunks/{5VV77UJJ.js → N3EZP6VG.cjs} +7 -7
- package/dist/__chunks/{5VV77UJJ.js.map → N3EZP6VG.cjs.map} +1 -1
- package/dist/__chunks/{ESGV3EEU.js → NGUJFGAC.cjs} +1 -1
- package/dist/__chunks/NGUJFGAC.cjs.map +1 -0
- package/dist/__chunks/{AUTMIAL2.js → NHSTGALH.cjs} +14 -14
- package/dist/__chunks/{O7DAECUN.js.map → NHSTGALH.cjs.map} +1 -1
- package/dist/__chunks/OGJDUOWP.js +7 -7
- package/dist/__chunks/OGJDUOWP.js.map +1 -1
- package/dist/__chunks/{BBNBUAJV.js → PBOQIXCB.cjs} +1 -1
- package/dist/__chunks/PBOQIXCB.cjs.map +1 -0
- package/dist/__chunks/{UCMB6MFN.mjs → PBWG2BB5.cjs} +7 -7
- package/dist/__chunks/PBWG2BB5.cjs.map +1 -0
- package/dist/__chunks/PQIPUPQ2.cjs +26 -0
- package/dist/__chunks/PQIPUPQ2.cjs.map +1 -0
- package/dist/__chunks/{HJYCSDLB.mjs → PYNS67IV.js} +4 -4
- package/dist/__chunks/PYNS67IV.js.map +1 -0
- package/dist/__chunks/{63WGDOPN.mjs → REM5SMMZ.js} +5 -6
- package/dist/__chunks/{JJQRVIE2.mjs.map → REM5SMMZ.js.map} +1 -1
- package/dist/__chunks/{DOUZDU3A.js → RLYKYCEU.cjs} +1 -1
- package/dist/__chunks/RLYKYCEU.cjs.map +1 -0
- package/dist/__chunks/SAEVPDUP.js +4 -4
- package/dist/__chunks/SAEVPDUP.js.map +1 -1
- package/dist/__chunks/{PGVLU6C3.mjs → SJFWRAOP.cjs} +11 -11
- package/dist/__chunks/SJFWRAOP.cjs.map +1 -0
- package/dist/__chunks/TBAJ7VLZ.cjs +12 -0
- package/dist/__chunks/TBAJ7VLZ.cjs.map +1 -0
- package/dist/__chunks/{YKIJQZYO.js → TEJLBWXV.cjs} +1 -2
- package/dist/__chunks/TEJLBWXV.cjs.map +1 -0
- package/dist/__chunks/{IAF6S5CX.js → THEUR2KP.cjs} +25 -21
- package/dist/__chunks/THEUR2KP.cjs.map +1 -0
- package/dist/__chunks/{4U36457H.mjs → TKYRBLSM.js} +6 -6
- package/dist/__chunks/{4U36457H.mjs.map → TKYRBLSM.js.map} +1 -1
- package/dist/__chunks/{QQUTU6E5.mjs → TPMQI44L.js} +1 -1
- package/dist/__chunks/TPMQI44L.js.map +1 -0
- package/dist/__chunks/{KDEHEUYG.mjs → UNIBFDXV.js} +4 -4
- package/dist/__chunks/{KDEHEUYG.mjs.map → UNIBFDXV.js.map} +1 -1
- package/dist/__chunks/VUANIQYP.cjs +1 -0
- package/dist/__chunks/VUANIQYP.cjs.map +1 -0
- package/dist/__chunks/{RBVOI6NO.mjs → WHMEF44N.js} +6 -6
- package/dist/__chunks/{RBVOI6NO.mjs.map → WHMEF44N.js.map} +1 -1
- package/dist/__chunks/{D4JUFTND.mjs → X74O4HUS.js} +5 -5
- package/dist/__chunks/{D4JUFTND.mjs.map → X74O4HUS.js.map} +1 -1
- package/dist/__chunks/{VSTDJIYK.mjs → X7UNBJA5.js} +4 -4
- package/dist/__chunks/{VSTDJIYK.mjs.map → X7UNBJA5.js.map} +1 -1
- package/dist/__chunks/{TCDLLMZO.js → XBWCYGQ2.cjs} +14 -14
- package/dist/__chunks/{TCDLLMZO.js.map → XBWCYGQ2.cjs.map} +1 -1
- package/dist/__chunks/{KCIQ73YD.js → XLVKNLN7.cjs} +10 -10
- package/dist/__chunks/{UDYZYOUW.js.map → XLVKNLN7.cjs.map} +1 -1
- package/dist/__chunks/{GVK5UYLE.js → YGVUSAB6.cjs} +10 -11
- package/dist/__chunks/YGVUSAB6.cjs.map +1 -0
- package/dist/__chunks/YJ7YDIGB.js +7 -7
- package/dist/__chunks/YJ7YDIGB.js.map +1 -1
- package/dist/colors/{allColors.mjs → allColors.cjs} +5 -5
- package/dist/colors/allColors.cjs.map +1 -0
- package/dist/colors/allColors.js +4 -4
- package/dist/colors/allColors.js.map +1 -1
- package/dist/colors/backgroundColor.cjs +10 -0
- package/dist/colors/backgroundColor.cjs.map +1 -0
- package/dist/colors/backgroundColor.css +57 -60
- package/dist/colors/backgroundColor.css.map +1 -1
- package/dist/colors/backgroundColor.js +9 -9
- package/dist/colors/backgroundColor.js.map +1 -1
- package/dist/colors/foregroundColor.cjs +10 -0
- package/dist/colors/foregroundColor.cjs.map +1 -0
- package/dist/colors/foregroundColor.css +57 -60
- package/dist/colors/foregroundColor.css.map +1 -1
- package/dist/colors/foregroundColor.js +9 -9
- package/dist/colors/foregroundColor.js.map +1 -1
- package/dist/colors/foregroundTypographyColor.cjs +8 -0
- package/dist/colors/foregroundTypographyColor.cjs.map +1 -0
- package/dist/colors/foregroundTypographyColor.js +7 -7
- package/dist/colors/foregroundTypographyColor.js.map +1 -1
- package/dist/{constants.mjs → constants.cjs} +6 -6
- package/dist/constants.cjs.map +1 -0
- package/dist/constants.js +5 -5
- package/dist/constants.js.map +1 -1
- package/dist/index.cjs +102 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.css +166 -178
- package/dist/index.css.map +1 -1
- package/dist/index.js +101 -101
- package/dist/index.js.map +1 -1
- package/dist/useFocusVisible.cjs +8 -0
- package/dist/useFocusVisible.cjs.map +1 -0
- package/dist/useFocusVisible.js +7 -7
- package/dist/useFocusVisible.js.map +1 -1
- package/dist/useIsHydrated.cjs +8 -0
- package/dist/useIsHydrated.cjs.map +1 -0
- package/dist/useIsHydrated.js +7 -7
- package/dist/useIsHydrated.js.map +1 -1
- package/package.json +17 -16
- package/dist/Avatar/Avatar.mjs +0 -13
- package/dist/Avatar/Avatar.mjs.map +0 -1
- package/dist/AvatarGroup/AvatarGroup.mjs +0 -14
- package/dist/AvatarGroup/AvatarGroup.mjs.map +0 -1
- package/dist/AvatarGroup/AvatarGroupAvatar.css +0 -1811
- package/dist/AvatarGroup/AvatarGroupAvatar.css.map +0 -1
- package/dist/AvatarGroup/AvatarGroupAvatar.d.ts +0 -38
- package/dist/AvatarGroup/AvatarGroupAvatar.js +0 -13
- package/dist/AvatarGroup/AvatarGroupAvatar.mjs +0 -13
- package/dist/AvatarGroup/AvatarGroupAvatar.mjs.map +0 -1
- package/dist/Badge/Badge.mjs +0 -13
- package/dist/Badge/Badge.mjs.map +0 -1
- package/dist/Box/Box.mjs +0 -11
- package/dist/Box/Box.mjs.map +0 -1
- package/dist/Button/Button.mjs +0 -21
- package/dist/Button/Button.mjs.map +0 -1
- package/dist/Button/constants/iconSize.mjs +0 -8
- package/dist/Button/constants/iconSize.mjs.map +0 -1
- package/dist/Button/constants/loadingIconSize.mjs +0 -8
- package/dist/Button/constants/loadingIconSize.mjs.map +0 -1
- package/dist/Button/constants/textVariant.mjs +0 -8
- package/dist/Button/constants/textVariant.mjs.map +0 -1
- package/dist/ButtonGroup/ButtonGroup.mjs +0 -8
- package/dist/ButtonGroup/ButtonGroup.mjs.map +0 -1
- package/dist/Card/Card.mjs +0 -12
- package/dist/Card/Card.mjs.map +0 -1
- package/dist/Checkbox/Checkbox.mjs +0 -14
- package/dist/Checkbox/Checkbox.mjs.map +0 -1
- package/dist/Chip/Chip.mjs +0 -14
- package/dist/Chip/Chip.mjs.map +0 -1
- package/dist/Divider/Divider.mjs +0 -8
- package/dist/Divider/Divider.mjs.map +0 -1
- package/dist/Heading/Heading.mjs +0 -11
- package/dist/Heading/Heading.mjs.map +0 -1
- package/dist/IconButton/IconButton.mjs +0 -13
- package/dist/IconButton/IconButton.mjs.map +0 -1
- package/dist/LinkButton/LinkButton.mjs +0 -17
- package/dist/LinkButton/LinkButton.mjs.map +0 -1
- package/dist/MiniActionCard/MiniActionCard.css +0 -19
- package/dist/MiniActionCard/MiniActionCard.css.map +0 -1
- package/dist/MiniActionCard/MiniActionCard.d.ts +0 -11
- package/dist/MiniActionCard/MiniActionCard.js +0 -8
- package/dist/MiniActionCard/MiniActionCard.mjs +0 -8
- package/dist/MiniActionCard/MiniActionCard.mjs.map +0 -1
- package/dist/Modal/FocusTrap.mjs +0 -8
- package/dist/Modal/FocusTrap.mjs.map +0 -1
- package/dist/Modal/Layer.mjs +0 -12
- package/dist/Modal/Layer.mjs.map +0 -1
- package/dist/Modal/Modal.mjs +0 -17
- package/dist/Modal/Modal.mjs.map +0 -1
- package/dist/Modal/StopScroll.mjs +0 -8
- package/dist/Modal/StopScroll.mjs.map +0 -1
- package/dist/RadioButton/RadioButton.mjs +0 -14
- package/dist/RadioButton/RadioButton.mjs.map +0 -1
- package/dist/SelectList/SelectList.mjs +0 -15
- package/dist/SelectList/SelectList.mjs.map +0 -1
- package/dist/SelectList/SelectOption.mjs +0 -8
- package/dist/SelectList/SelectOption.mjs.map +0 -1
- package/dist/TapArea/TapArea.mjs +0 -10
- package/dist/TapArea/TapArea.mjs.map +0 -1
- package/dist/TextArea/TextArea.mjs +0 -15
- package/dist/TextArea/TextArea.mjs.map +0 -1
- package/dist/TextField/TextField.mjs +0 -15
- package/dist/TextField/TextField.mjs.map +0 -1
- package/dist/Typography/Typography.mjs +0 -10
- package/dist/Typography/Typography.mjs.map +0 -1
- package/dist/__chunks/25AVG5RK.js +0 -28
- package/dist/__chunks/25AVG5RK.js.map +0 -1
- package/dist/__chunks/2AXWRBLG.mjs +0 -34
- package/dist/__chunks/2AXWRBLG.mjs.map +0 -1
- package/dist/__chunks/2GVCDQZ4.js +0 -96
- package/dist/__chunks/2GVCDQZ4.js.map +0 -1
- package/dist/__chunks/2LIL7UH4.mjs +0 -111
- package/dist/__chunks/2PBGWM5I.mjs +0 -70
- package/dist/__chunks/2PBGWM5I.mjs.map +0 -1
- package/dist/__chunks/37REMIOM.js.map +0 -1
- package/dist/__chunks/3HUELEGR.mjs +0 -74
- package/dist/__chunks/3L7VHFFX.mjs +0 -7
- package/dist/__chunks/3L7VHFFX.mjs.map +0 -1
- package/dist/__chunks/3LM54GWV.mjs.map +0 -1
- package/dist/__chunks/3MG27OMA.js +0 -64
- package/dist/__chunks/3MG27OMA.js.map +0 -1
- package/dist/__chunks/3N6HHI46.js +0 -32
- package/dist/__chunks/3N6HHI46.js.map +0 -1
- package/dist/__chunks/3OXEYQS2.js +0 -229
- package/dist/__chunks/3OXEYQS2.js.map +0 -1
- package/dist/__chunks/3QSNE4LU.mjs +0 -53
- package/dist/__chunks/3QSNE4LU.mjs.map +0 -1
- package/dist/__chunks/3ZLWNPWB.js.map +0 -1
- package/dist/__chunks/4EEVXYO7.js +0 -216
- package/dist/__chunks/4EEVXYO7.js.map +0 -1
- package/dist/__chunks/4ONM4N5U.js.map +0 -1
- package/dist/__chunks/4VIJNV7V.mjs +0 -216
- package/dist/__chunks/4VIJNV7V.mjs.map +0 -1
- package/dist/__chunks/5C5EHJ47.js +0 -34
- package/dist/__chunks/5C5EHJ47.js.map +0 -1
- package/dist/__chunks/5QXUIARJ.mjs.map +0 -1
- package/dist/__chunks/5VIJTDOF.mjs +0 -120
- package/dist/__chunks/5VIJTDOF.mjs.map +0 -1
- package/dist/__chunks/63WGDOPN.mjs.map +0 -1
- package/dist/__chunks/6KRS5AXC.mjs.map +0 -1
- package/dist/__chunks/6LPXMM72.js +0 -29
- package/dist/__chunks/6LPXMM72.js.map +0 -1
- package/dist/__chunks/A2VHEPTR.mjs +0 -36
- package/dist/__chunks/A4I7G22A.js +0 -7
- package/dist/__chunks/A4I7G22A.js.map +0 -1
- package/dist/__chunks/AMBZXKUQ.mjs +0 -12
- package/dist/__chunks/AMBZXKUQ.mjs.map +0 -1
- package/dist/__chunks/AR6OTJE4.mjs +0 -120
- package/dist/__chunks/AR6OTJE4.mjs.map +0 -1
- package/dist/__chunks/AUTMIAL2.js.map +0 -1
- package/dist/__chunks/AXK2UBWP.js +0 -120
- package/dist/__chunks/AXK2UBWP.js.map +0 -1
- package/dist/__chunks/BBNBUAJV.js.map +0 -1
- package/dist/__chunks/BFZW2SIU.js +0 -110
- package/dist/__chunks/BFZW2SIU.js.map +0 -1
- package/dist/__chunks/BNRC45PX.js +0 -15
- package/dist/__chunks/BNRC45PX.js.map +0 -1
- package/dist/__chunks/BQUP6OTG.mjs.map +0 -1
- package/dist/__chunks/BUE3GFYP.mjs +0 -73
- package/dist/__chunks/BUE3GFYP.mjs.map +0 -1
- package/dist/__chunks/BXCLZFW3.js.map +0 -1
- package/dist/__chunks/C33AWSV6.js +0 -61
- package/dist/__chunks/C33AWSV6.js.map +0 -1
- package/dist/__chunks/CBT226O7.js +0 -22
- package/dist/__chunks/CBT226O7.js.map +0 -1
- package/dist/__chunks/CUDAH5IW.mjs.map +0 -1
- package/dist/__chunks/CUVXZOBA.mjs +0 -7
- package/dist/__chunks/CUVXZOBA.mjs.map +0 -1
- package/dist/__chunks/CWMDGR2A.js +0 -127
- package/dist/__chunks/CWMDGR2A.js.map +0 -1
- package/dist/__chunks/CWODDNFV.mjs +0 -66
- package/dist/__chunks/CWODDNFV.mjs.map +0 -1
- package/dist/__chunks/DOUZDU3A.js.map +0 -1
- package/dist/__chunks/EDT4HTWE.js +0 -24
- package/dist/__chunks/EDT4HTWE.js.map +0 -1
- package/dist/__chunks/EKJ4XOIM.mjs +0 -12
- package/dist/__chunks/EKJ4XOIM.mjs.map +0 -1
- package/dist/__chunks/EOHF5NBT.js +0 -7
- package/dist/__chunks/EOHF5NBT.js.map +0 -1
- package/dist/__chunks/ESGV3EEU.js.map +0 -1
- package/dist/__chunks/F4HTASEF.mjs +0 -24
- package/dist/__chunks/F6FB6X7B.js.map +0 -1
- package/dist/__chunks/FCX7QDZS.mjs.map +0 -1
- package/dist/__chunks/FLKYHNRX.mjs.map +0 -1
- package/dist/__chunks/FMAN3GYO.js.map +0 -1
- package/dist/__chunks/FOSMT7QJ.js +0 -34
- package/dist/__chunks/FOSMT7QJ.js.map +0 -1
- package/dist/__chunks/FVU4BA3R.mjs +0 -15
- package/dist/__chunks/FVU4BA3R.mjs.map +0 -1
- package/dist/__chunks/FZO6U2EP.mjs +0 -61
- package/dist/__chunks/FZO6U2EP.mjs.map +0 -1
- package/dist/__chunks/GAMU7S2F.js +0 -73
- package/dist/__chunks/GD77DL2Y.mjs +0 -106
- package/dist/__chunks/GD77DL2Y.mjs.map +0 -1
- package/dist/__chunks/GRDMEBOQ.mjs +0 -110
- package/dist/__chunks/GRDMEBOQ.mjs.map +0 -1
- package/dist/__chunks/GVK5UYLE.js.map +0 -1
- package/dist/__chunks/GVNDZZAU.mjs +0 -14
- package/dist/__chunks/GVNDZZAU.mjs.map +0 -1
- package/dist/__chunks/HJYCSDLB.mjs.map +0 -1
- package/dist/__chunks/HPQ27RVD.js +0 -7
- package/dist/__chunks/HPQ27RVD.js.map +0 -1
- package/dist/__chunks/HT3RE37C.mjs +0 -22
- package/dist/__chunks/HT3RE37C.mjs.map +0 -1
- package/dist/__chunks/IAF6S5CX.js.map +0 -1
- package/dist/__chunks/IFTFN6UJ.mjs +0 -96
- package/dist/__chunks/IFTFN6UJ.mjs.map +0 -1
- package/dist/__chunks/IMA6TVID.js +0 -14
- package/dist/__chunks/IMA6TVID.js.map +0 -1
- package/dist/__chunks/IOTY5NK2.js +0 -70
- package/dist/__chunks/IOTY5NK2.js.map +0 -1
- package/dist/__chunks/IXDA4ZXP.mjs +0 -1
- package/dist/__chunks/IXDA4ZXP.mjs.map +0 -1
- package/dist/__chunks/J3TYZIJY.js +0 -35
- package/dist/__chunks/JJQRVIE2.mjs +0 -86
- package/dist/__chunks/JMKHYRFL.mjs.map +0 -1
- package/dist/__chunks/JQHT6NET.mjs +0 -110
- package/dist/__chunks/JQHT6NET.mjs.map +0 -1
- package/dist/__chunks/JZMZ537X.mjs +0 -229
- package/dist/__chunks/JZMZ537X.mjs.map +0 -1
- package/dist/__chunks/K3JR7BCX.mjs.map +0 -1
- package/dist/__chunks/K6XUX6LJ.mjs +0 -34
- package/dist/__chunks/K6XUX6LJ.mjs.map +0 -1
- package/dist/__chunks/KCIQ73YD.js.map +0 -1
- package/dist/__chunks/KEVWT27Z.mjs +0 -81
- package/dist/__chunks/KEVWT27Z.mjs.map +0 -1
- package/dist/__chunks/KNBS7I65.mjs +0 -34
- package/dist/__chunks/KNBS7I65.mjs.map +0 -1
- package/dist/__chunks/KNDHXB3A.js +0 -66
- package/dist/__chunks/KNDHXB3A.js.map +0 -1
- package/dist/__chunks/KNTQWIRZ.mjs +0 -64
- package/dist/__chunks/KNTQWIRZ.mjs.map +0 -1
- package/dist/__chunks/LCM6DHNZ.mjs +0 -120
- package/dist/__chunks/LICJ6EW4.mjs.map +0 -1
- package/dist/__chunks/LJA4ANIH.js +0 -120
- package/dist/__chunks/LJA4ANIH.js.map +0 -1
- package/dist/__chunks/LTYTYJEN.mjs +0 -20
- package/dist/__chunks/MCDSO2BG.mjs +0 -127
- package/dist/__chunks/MCDSO2BG.mjs.map +0 -1
- package/dist/__chunks/MF2FZIOI.mjs +0 -31
- package/dist/__chunks/MQPPALTP.mjs.map +0 -1
- package/dist/__chunks/MQYAYRG7.js +0 -106
- package/dist/__chunks/MQYAYRG7.js.map +0 -1
- package/dist/__chunks/MUJ5ZM2P.mjs +0 -14
- package/dist/__chunks/MUJ5ZM2P.mjs.map +0 -1
- package/dist/__chunks/NCGV4CPL.mjs +0 -7
- package/dist/__chunks/NCGV4CPL.mjs.map +0 -1
- package/dist/__chunks/NS7JP3FM.mjs +0 -105
- package/dist/__chunks/NS7JP3FM.mjs.map +0 -1
- package/dist/__chunks/O24347EQ.js.map +0 -1
- package/dist/__chunks/O7DAECUN.js +0 -110
- package/dist/__chunks/OKF4ABP7.mjs +0 -32
- package/dist/__chunks/OKF4ABP7.mjs.map +0 -1
- package/dist/__chunks/PGVLU6C3.mjs.map +0 -1
- package/dist/__chunks/PLJUFTJY.js +0 -120
- package/dist/__chunks/PLJUFTJY.js.map +0 -1
- package/dist/__chunks/PR3BB3FG.js +0 -96
- package/dist/__chunks/PR3BB3FG.js.map +0 -1
- package/dist/__chunks/PRHHEVW3.mjs +0 -14
- package/dist/__chunks/PRHHEVW3.mjs.map +0 -1
- package/dist/__chunks/PTAZUBW6.js +0 -74
- package/dist/__chunks/PTAZUBW6.js.map +0 -1
- package/dist/__chunks/QQUTU6E5.mjs.map +0 -1
- package/dist/__chunks/QTRAGVT2.js +0 -81
- package/dist/__chunks/QTRAGVT2.js.map +0 -1
- package/dist/__chunks/QX4SPXNO.js +0 -27
- package/dist/__chunks/QX4SPXNO.js.map +0 -1
- package/dist/__chunks/R3JL4P3Q.js +0 -72
- package/dist/__chunks/R3JL4P3Q.js.map +0 -1
- package/dist/__chunks/RCT3DP22.mjs.map +0 -1
- package/dist/__chunks/RREFGTI7.js +0 -122
- package/dist/__chunks/RREFGTI7.js.map +0 -1
- package/dist/__chunks/RSMQXWKL.mjs +0 -122
- package/dist/__chunks/RSMQXWKL.mjs.map +0 -1
- package/dist/__chunks/S2O3PM7G.mjs +0 -35
- package/dist/__chunks/S2OLRDIA.js.map +0 -1
- package/dist/__chunks/SFLBYQCV.mjs.map +0 -1
- package/dist/__chunks/SKLNVBJL.js +0 -26
- package/dist/__chunks/SKLNVBJL.js.map +0 -1
- package/dist/__chunks/SSU3B5AR.mjs.map +0 -1
- package/dist/__chunks/SWA6IQLD.mjs +0 -28
- package/dist/__chunks/SWA6IQLD.mjs.map +0 -1
- package/dist/__chunks/TC3MWLLE.js +0 -20
- package/dist/__chunks/TC3MWLLE.js.map +0 -1
- package/dist/__chunks/TCXV6BXC.js +0 -34
- package/dist/__chunks/TCXV6BXC.js.map +0 -1
- package/dist/__chunks/TQ4QQTSW.js +0 -53
- package/dist/__chunks/TQ4QQTSW.js.map +0 -1
- package/dist/__chunks/UCMB6MFN.mjs.map +0 -1
- package/dist/__chunks/UDNFWDDK.mjs.map +0 -1
- package/dist/__chunks/UDYZYOUW.js +0 -111
- package/dist/__chunks/USJPERI4.js +0 -58
- package/dist/__chunks/USJPERI4.js.map +0 -1
- package/dist/__chunks/UY5Z5APW.js +0 -32
- package/dist/__chunks/UY5Z5APW.js.map +0 -1
- package/dist/__chunks/VDPH7IK3.js +0 -105
- package/dist/__chunks/VDPH7IK3.js.map +0 -1
- package/dist/__chunks/VDX2LTE5.js +0 -36
- package/dist/__chunks/VDX2LTE5.js.map +0 -1
- package/dist/__chunks/VKO4TG7F.mjs +0 -15
- package/dist/__chunks/VKO4TG7F.mjs.map +0 -1
- package/dist/__chunks/VPGRPGP7.js.map +0 -1
- package/dist/__chunks/VSTQZSBF.mjs +0 -26
- package/dist/__chunks/VSTQZSBF.mjs.map +0 -1
- package/dist/__chunks/VW7YADUL.mjs.map +0 -1
- package/dist/__chunks/W5YGMJE6.js +0 -15
- package/dist/__chunks/W5YGMJE6.js.map +0 -1
- package/dist/__chunks/WIDP7NHD.mjs +0 -72
- package/dist/__chunks/WIDP7NHD.mjs.map +0 -1
- package/dist/__chunks/WLELQDTJ.js +0 -110
- package/dist/__chunks/WO3NKGKN.js +0 -86
- package/dist/__chunks/WO3NKGKN.js.map +0 -1
- package/dist/__chunks/WOYU2W3H.js +0 -53
- package/dist/__chunks/WOYU2W3H.js.map +0 -1
- package/dist/__chunks/WPIBNMAN.mjs +0 -53
- package/dist/__chunks/WPIBNMAN.mjs.map +0 -1
- package/dist/__chunks/WSCARST6.mjs +0 -58
- package/dist/__chunks/WSCARST6.mjs.map +0 -1
- package/dist/__chunks/XFKGXL73.mjs +0 -14
- package/dist/__chunks/XFKGXL73.mjs.map +0 -1
- package/dist/__chunks/XUVMK7DJ.mjs +0 -96
- package/dist/__chunks/XUVMK7DJ.mjs.map +0 -1
- package/dist/__chunks/Y6LEUOQR.js +0 -7
- package/dist/__chunks/Y6LEUOQR.js.map +0 -1
- package/dist/__chunks/YEQPYC3N.mjs +0 -7
- package/dist/__chunks/YEQPYC3N.mjs.map +0 -1
- package/dist/__chunks/YKIJQZYO.js.map +0 -1
- package/dist/__chunks/YOICG7YI.mjs +0 -31
- package/dist/__chunks/YOICG7YI.mjs.map +0 -1
- package/dist/__chunks/YUND6TQE.js +0 -31
- package/dist/__chunks/YUND6TQE.js.map +0 -1
- package/dist/__chunks/YUPTQIXD.mjs.map +0 -1
- package/dist/__chunks/Z4IY6SNT.mjs.map +0 -1
- package/dist/__chunks/Z6VJIDKQ.js +0 -31
- package/dist/__chunks/Z6VJIDKQ.js.map +0 -1
- package/dist/__chunks/ZCN7X7TS.js +0 -14
- package/dist/__chunks/ZCN7X7TS.js.map +0 -1
- package/dist/__chunks/ZHZ6U63Z.mjs +0 -29
- package/dist/__chunks/ZJKI73IC.mjs +0 -110
- package/dist/__chunks/ZJKI73IC.mjs.map +0 -1
- package/dist/colors/allColors.mjs.map +0 -1
- package/dist/colors/backgroundColor.mjs +0 -10
- package/dist/colors/backgroundColor.mjs.map +0 -1
- package/dist/colors/foregroundColor.mjs +0 -10
- package/dist/colors/foregroundColor.mjs.map +0 -1
- package/dist/colors/foregroundTypographyColor.mjs +0 -8
- package/dist/colors/foregroundTypographyColor.mjs.map +0 -1
- package/dist/constants.mjs.map +0 -1
- package/dist/index.mjs +0 -102
- package/dist/index.mjs.map +0 -1
- package/dist/useFocusVisible.mjs +0 -8
- package/dist/useFocusVisible.mjs.map +0 -1
- package/dist/useIsHydrated.mjs +0 -8
- package/dist/useIsHydrated.mjs.map +0 -1
- /package/dist/{AvatarGroup/AvatarGroupAvatar.js.map → Avatar/Avatar.cjs.map} +0 -0
- /package/dist/{MiniActionCard/MiniActionCard.js.map → AvatarGroup/AvatarGroup.cjs.map} +0 -0
- /package/dist/__chunks/{MF2FZIOI.mjs.map → 2JWMSFS7.js.map} +0 -0
- /package/dist/__chunks/{P4CNOF3E.js.map → 3F5U7W73.cjs.map} +0 -0
- /package/dist/__chunks/{A2VHEPTR.mjs.map → BSFWQWVJ.js.map} +0 -0
- /package/dist/__chunks/{OLOF45YI.js.map → CEWOAFV2.cjs.map} +0 -0
- /package/dist/__chunks/{S2O3PM7G.mjs.map → CQ2HIJ62.js.map} +0 -0
- /package/dist/__chunks/{TYC3IUHY.mjs.map → G6TO2NCY.js.map} +0 -0
- /package/dist/__chunks/{J3TYZIJY.js.map → IFJ2YOEG.cjs.map} +0 -0
- /package/dist/__chunks/{56HU44ZD.js.map → JMKXHLVZ.cjs.map} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Typography/Typography.tsx","css-module:./Typography.module.css#css-module"],"sourcesContent":["import classNames from \"classnames\";\nimport { type ReactElement, type ReactNode } from \"react\";\nimport { type Color } from \"../constants\";\nimport styles from \"./Typography.module.css\";\nimport colorStyles from \"../colors/colors.module.css\";\n\nfunction textColor(color: (typeof Color)[number]): 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 return colorStyles.destructive700Color;\n case \"success\":\n return colorStyles.success700Color;\n default:\n return colorStyles.gray900Color;\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 = ({\n align = \"start\",\n as = \"div\",\n children,\n color = \"gray900\",\n \"data-testid\": dataTestId,\n inline = false,\n lineClamp = undefined,\n size = 200,\n tooltip,\n transform = \"none\",\n underline = false,\n weight = \"regular\",\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 * @defaultValue \"gray900\"\n */\n color?: (typeof Color)[number];\n /**\n * Test id for the text\n */\n \"data-testid\"?: 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 * * `100`: 12px\n * * `200`: 14px\n * * `300`: 16px\n * * `500`: 20px\n * * `600`: 28px\n * * `700`: 40px\n * * `800`: 64px\n *\n * @defaultValue 200\n */\n size?: 100 | 200 | 300 | 500 | 600 | 700 | 800;\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 * @defaultValue \"regular\"\n */\n weight?: \"regular\" | \"interactive\" | \"semiBold\" | \"bold\" | \"heavy\";\n}): ReactElement => {\n const Tag = as;\n\n return (\n <Tag\n className={classNames(\n styles.typography,\n styles[align],\n styles[weight],\n textColor(color),\n inline && styles.inline,\n styles[`size${size}`],\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 >\n {children}\n </Tag>\n );\n};\n\nexport default Typography;\n","import \"/Users/christian/cambly/syntax/packages/syntax-core/src/Typography/Typography.module.css\"; export default {\"typography\":\"_typography_1vnry_1\",\"size100\":\"_size100_1vnry_8\",\"size200\":\"_size200_1vnry_12\",\"size300\":\"_size300_1vnry_16\",\"size500\":\"_size500_1vnry_20\",\"size600\":\"_size600_1vnry_24\",\"size700\":\"_size700_1vnry_28\",\"size800\":\"_size800_1vnry_32\",\"center\":\"_center_1vnry_37\",\"forceLeft\":\"_forceLeft_1vnry_41\",\"forceRight\":\"_forceRight_1vnry_45\",\"start\":\"_start_1vnry_49\",\"end\":\"_end_1vnry_53\",\"bold\":\"_bold_1vnry_58\",\"regular\":\"_regular_1vnry_62\",\"interactive\":\"_interactive_1vnry_66\",\"semiBold\":\"_semiBold_1vnry_70\",\"heavy\":\"_heavy_1vnry_74\",\"underline\":\"_underline_1vnry_78\",\"inline\":\"_inline_1vnry_82\",\"uppercase\":\"_uppercase_1vnry_86\",\"lineClamp\":\"_lineClamp_1vnry_90\"}"],"mappings":";;;;;AAAA,OAAO,gBAAgB;;;ACA4E,IAAO,4BAAQ,EAAC,cAAa,uBAAsB,WAAU,oBAAmB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,UAAS,oBAAmB,aAAY,uBAAsB,cAAa,wBAAuB,SAAQ,mBAAkB,OAAM,iBAAgB,QAAO,kBAAiB,WAAU,qBAAoB,eAAc,yBAAwB,YAAW,sBAAqB,SAAQ,mBAAkB,aAAY,uBAAsB,UAAS,oBAAmB,aAAY,uBAAsB,aAAY,sBAAqB;;;ADwH5wB;AAlHJ,SAAS,UAAU,OAAuC;AACxD,UAAQ,OAAO;AAAA,IACb,KAAK;AACH,aAAO,sBAAY;AAAA,IACrB,KAAK;AACH,aAAO,sBAAY;AAAA,IACrB,KAAK;AACH,aAAO,sBAAY;AAAA,IACrB,KAAK;AACH,aAAO,sBAAY;AAAA,IACrB,KAAK;AACH,aAAO,sBAAY;AAAA,IACrB,KAAK;AACH,aAAO,sBAAY;AAAA,IACrB;AACE,aAAO,sBAAY;AAAA,EACvB;AACF;AAKA,IAAM,aAAa,CAAC;AAAA,EAClB,QAAQ;AAAA,EACR,KAAK;AAAA,EACL;AAAA,EACA,QAAQ;AAAA,EACR,eAAe;AAAA,EACf,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,OAAO;AAAA,EACP;AAAA,EACA,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,SAAS;AACX,MA2EoB;AAClB,QAAM,MAAM;AAEZ,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT,0BAAO;AAAA,QACP,0BAAO,KAAK;AAAA,QACZ,0BAAO,MAAM;AAAA,QACb,UAAU,KAAK;AAAA,QACf,UAAU,0BAAO;AAAA,QACjB,0BAAO,OAAO,MAAM;AAAA,QACpB,cAAc,eAAe,0BAAO;AAAA,QACpC,aAAa,0BAAO;AAAA,QACpB,aAAa,QAAQ,0BAAO;AAAA,MAC9B;AAAA,MACA,eAAa;AAAA,MACb,OAAO;AAAA,QACL,iBAAiB;AAAA,MACnB;AAAA,MACA,OAAO;AAAA,MAEN;AAAA;AAAA,EACH;AAEJ;AAEA,IAAO,qBAAQ;","names":[]}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Box_default
|
|
3
|
-
} from "./JZMZ537X.mjs";
|
|
4
|
-
import {
|
|
5
|
-
Typography_default
|
|
6
|
-
} from "./BQUP6OTG.mjs";
|
|
7
|
-
import {
|
|
8
|
-
useIsHydrated
|
|
9
|
-
} from "./XFKGXL73.mjs";
|
|
10
|
-
|
|
11
|
-
// src/Chip/Chip.tsx
|
|
12
|
-
import { forwardRef } from "react";
|
|
13
|
-
import classnames from "classnames";
|
|
14
|
-
|
|
15
|
-
// css-module:./Chip.module.css#css-module
|
|
16
|
-
var Chip_module_default = { "chip": "_chip_nvvgx_1", "disabled": "_disabled_nvvgx_12", "selectedChip": "_selectedChip_nvvgx_17", "icon": "_icon_nvvgx_22", "selectedIcon": "_selectedIcon_nvvgx_30", "sm": "_sm_nvvgx_34", "lg": "_lg_nvvgx_40" };
|
|
17
|
-
|
|
18
|
-
// src/Chip/Chip.tsx
|
|
19
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
20
|
-
var Chip = forwardRef(
|
|
21
|
-
({
|
|
22
|
-
selected = false,
|
|
23
|
-
"data-testid": dataTestId,
|
|
24
|
-
size = "sm",
|
|
25
|
-
text,
|
|
26
|
-
onChange,
|
|
27
|
-
icon: Icon
|
|
28
|
-
}, ref) => {
|
|
29
|
-
const isHydrated = useIsHydrated();
|
|
30
|
-
const disabled = !isHydrated;
|
|
31
|
-
const chipStyles = classnames(Chip_module_default.chip, Chip_module_default[size], {
|
|
32
|
-
[Chip_module_default.selectedChip]: selected,
|
|
33
|
-
[Chip_module_default.disabled]: disabled
|
|
34
|
-
});
|
|
35
|
-
const iconStyles = classnames(Chip_module_default.icon, {
|
|
36
|
-
[Chip_module_default.selectedIcon]: selected
|
|
37
|
-
});
|
|
38
|
-
const typographySize = {
|
|
39
|
-
["sm"]: 200,
|
|
40
|
-
["lg"]: 300
|
|
41
|
-
};
|
|
42
|
-
return /* @__PURE__ */ jsxs(
|
|
43
|
-
"button",
|
|
44
|
-
{
|
|
45
|
-
className: chipStyles,
|
|
46
|
-
disabled,
|
|
47
|
-
"data-testid": dataTestId,
|
|
48
|
-
ref,
|
|
49
|
-
type: "button",
|
|
50
|
-
"aria-pressed": selected,
|
|
51
|
-
onClick: onChange,
|
|
52
|
-
children: [
|
|
53
|
-
Icon && /* @__PURE__ */ jsx(Icon, { className: iconStyles }),
|
|
54
|
-
/* @__PURE__ */ jsx(Box_default, { paddingX: Icon ? 1 : 0, children: /* @__PURE__ */ jsx(
|
|
55
|
-
Typography_default,
|
|
56
|
-
{
|
|
57
|
-
size: typographySize[size],
|
|
58
|
-
color: selected ? "white" : "gray900",
|
|
59
|
-
children: text
|
|
60
|
-
}
|
|
61
|
-
) })
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
);
|
|
67
|
-
Chip.displayName = "Chip";
|
|
68
|
-
var Chip_default = Chip;
|
|
69
|
-
|
|
70
|
-
export {
|
|
71
|
-
Chip_default
|
|
72
|
-
};
|
|
73
|
-
//# sourceMappingURL=BUE3GFYP.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Chip/Chip.tsx","css-module:./Chip.module.css#css-module"],"sourcesContent":["import React, { forwardRef } from \"react\";\nimport classnames from \"classnames\";\nimport Typography from \"../Typography/Typography\";\nimport Box from \"../Box/Box\";\nimport styles from \"./Chip.module.css\";\nimport useIsHydrated from \"../useIsHydrated\";\n\ntype ChipProps = {\n /**\n * Sets the initial status of this chip component.\n * * `true` will display a grey chip.\n * * `false` will display a premium800 color chip.\n *\n * @defaultValue \"false\"\n */\n selected?: boolean;\n /**\n * Test id for the button\n */\n \"data-testid\"?: string;\n /**\n * Size of the chip.\n *\n * * `sm`: 32px\n * * `lg`: 48px\n *\n * @defaultValue sm\n */\n size?: \"sm\" | \"lg\";\n /**\n * The text to be displayed on the chip\n */\n text: string;\n /**\n * The callback to be called when the chip is clicked\n */\n onChange: React.MouseEventHandler<HTMLButtonElement>;\n /**\n * The icon to be displayed.\n */\n icon?: React.ComponentType<{ className?: string }>;\n};\n/**\n * [Chip](https://cambly-syntax.vercel.app/?path=/docs/components-chip--docs) is used to show status (selected/not selected) like a toggle button.\n */\nconst Chip = forwardRef<HTMLButtonElement, ChipProps>(\n (\n {\n selected = false,\n \"data-testid\": dataTestId,\n size = \"sm\",\n text,\n onChange,\n icon: Icon,\n }: ChipProps,\n ref,\n ) => {\n const isHydrated = useIsHydrated();\n const disabled = !isHydrated;\n\n const chipStyles = classnames(styles.chip, styles[size], {\n [styles.selectedChip]: selected,\n [styles.disabled]: disabled,\n });\n const iconStyles = classnames(styles.icon, {\n [styles.selectedIcon]: selected,\n });\n const typographySize = {\n [\"sm\"]: 200,\n [\"lg\"]: 300,\n } as const;\n return (\n <button\n className={chipStyles}\n disabled={disabled}\n data-testid={dataTestId}\n ref={ref}\n type=\"button\"\n aria-pressed={selected}\n onClick={onChange}\n >\n {Icon && <Icon className={iconStyles} />}\n <Box paddingX={Icon ? 1 : 0}>\n <Typography\n size={typographySize[size]}\n color={selected ? \"white\" : \"gray900\"}\n >\n {text}\n </Typography>\n </Box>\n </button>\n );\n },\n);\n\nChip.displayName = \"Chip\";\n\nexport default Chip;\n","import \"/Users/christian/cambly/syntax/packages/syntax-core/src/Chip/Chip.module.css\"; export default {\"chip\":\"_chip_nvvgx_1\",\"disabled\":\"_disabled_nvvgx_12\",\"selectedChip\":\"_selectedChip_nvvgx_17\",\"icon\":\"_icon_nvvgx_22\",\"selectedIcon\":\"_selectedIcon_nvvgx_30\",\"sm\":\"_sm_nvvgx_34\",\"lg\":\"_lg_nvvgx_40\"}"],"mappings":";;;;;;;;;;;AAAA,SAAgB,kBAAkB;AAClC,OAAO,gBAAgB;;;ACDgE,IAAO,sBAAQ,EAAC,QAAO,iBAAgB,YAAW,sBAAqB,gBAAe,0BAAyB,QAAO,kBAAiB,gBAAe,0BAAyB,MAAK,gBAAe,MAAK,eAAc;;;ADwEvS,SASW,KATX;AA3BN,IAAM,OAAO;AAAA,EACX,CACE;AAAA,IACE,WAAW;AAAA,IACX,eAAe;AAAA,IACf,OAAO;AAAA,IACP;AAAA,IACA;AAAA,IACA,MAAM;AAAA,EACR,GACA,QACG;AACH,UAAM,aAAa,cAAc;AACjC,UAAM,WAAW,CAAC;AAElB,UAAM,aAAa,WAAW,oBAAO,MAAM,oBAAO,IAAI,GAAG;AAAA,MACvD,CAAC,oBAAO,YAAY,GAAG;AAAA,MACvB,CAAC,oBAAO,QAAQ,GAAG;AAAA,IACrB,CAAC;AACD,UAAM,aAAa,WAAW,oBAAO,MAAM;AAAA,MACzC,CAAC,oBAAO,YAAY,GAAG;AAAA,IACzB,CAAC;AACD,UAAM,iBAAiB;AAAA,MACrB,CAAC,IAAI,GAAG;AAAA,MACR,CAAC,IAAI,GAAG;AAAA,IACV;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW;AAAA,QACX;AAAA,QACA,eAAa;AAAA,QACb;AAAA,QACA,MAAK;AAAA,QACL,gBAAc;AAAA,QACd,SAAS;AAAA,QAER;AAAA,kBAAQ,oBAAC,QAAK,WAAW,YAAY;AAAA,UACtC,oBAAC,eAAI,UAAU,OAAO,IAAI,GACxB;AAAA,YAAC;AAAA;AAAA,cACC,MAAM,eAAe,IAAI;AAAA,cACzB,OAAO,WAAW,UAAU;AAAA,cAE3B;AAAA;AAAA,UACH,GACF;AAAA;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,KAAK,cAAc;AAEnB,IAAO,eAAQ;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["css-module:./Divider.module.css#css-module","../../src/Divider/Divider.tsx"],"names":[],"mappings":";AAA6F,IAAO,yBAAQ,EAAC,WAAU,mBAAkB;;;ACMhI;AADM,SAAR,UAA+C;AACpD,SAAO,oBAAC,QAAG,WAAW,uBAAO,SAAS;AACxC;AAEA,QAAQ,cAAc","sourcesContent":["import \"/Users/christian/cambly/syntax/packages/syntax-core/src/Divider/Divider.module.css\"; export default {\"divider\":\"_divider_ra8vz_1\"}","import styles from \"./Divider.module.css\";\n\n/**\n * [Divider](https://cambly-syntax.vercel.app/?path=/docs/components-divider--docs) is a thin horizontal line to group content in lists and layouts.\n */\nexport default function Divider(): React.ReactElement {\n return <hr className={styles.divider} />;\n}\n\nDivider.displayName = \"Divider\";\n"]}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _USJPERI4js = require('./USJPERI4.js');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _3OXEYQS2js = require('./3OXEYQS2.js');
|
|
7
|
-
|
|
8
|
-
// src/AvatarGroup/AvatarGroupAvatar.tsx
|
|
9
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
10
|
-
var sizeToMargin = {
|
|
11
|
-
sm: -16,
|
|
12
|
-
md: -28,
|
|
13
|
-
lg: -48,
|
|
14
|
-
xl: -96
|
|
15
|
-
};
|
|
16
|
-
function AvatarGroupAvatar({
|
|
17
|
-
accessibilityLabel,
|
|
18
|
-
icon,
|
|
19
|
-
orientation = "standard",
|
|
20
|
-
size = "md",
|
|
21
|
-
src,
|
|
22
|
-
zIndex
|
|
23
|
-
}) {
|
|
24
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25
|
-
_3OXEYQS2js.Box_default,
|
|
26
|
-
{
|
|
27
|
-
position: "relative",
|
|
28
|
-
dangerouslySetInlineStyle: {
|
|
29
|
-
__style: {
|
|
30
|
-
zIndex,
|
|
31
|
-
marginInlineEnd: orientation === "standard" ? sizeToMargin[size] : 0,
|
|
32
|
-
marginInlineStart: orientation === "reverse" ? sizeToMargin[size] : 0
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
36
|
-
_3OXEYQS2js.Box_default,
|
|
37
|
-
{
|
|
38
|
-
display: "flex",
|
|
39
|
-
alignItems: "center",
|
|
40
|
-
justifyContent: "center",
|
|
41
|
-
backgroundColor: "white",
|
|
42
|
-
rounding: "full",
|
|
43
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44
|
-
_USJPERI4js.Avatar_default,
|
|
45
|
-
{
|
|
46
|
-
src,
|
|
47
|
-
accessibilityLabel,
|
|
48
|
-
size,
|
|
49
|
-
icon
|
|
50
|
-
}
|
|
51
|
-
)
|
|
52
|
-
}
|
|
53
|
-
)
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
exports.AvatarGroupAvatar = AvatarGroupAvatar;
|
|
61
|
-
//# sourceMappingURL=C33AWSV6.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/AvatarGroup/AvatarGroupAvatar.tsx"],"names":[],"mappings":";;;;;;;;AAsEQ;AAlER,IAAM,eAAe;AAAA,EACnB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEe,SAAR,kBAAmC;AAAA,EACxC;AAAA,EACA;AAAA,EACA,cAAc;AAAA,EACd,OAAO;AAAA,EACP;AAAA,EACA;AACF,GAiCiB;AACf,SACE;AAAA,IAAC;AAAA;AAAA,MACC,UAAS;AAAA,MACT,2BAA2B;AAAA,QACzB,SAAS;AAAA,UACP;AAAA,UACA,iBAAiB,gBAAgB,aAAa,aAAa,IAAI,IAAI;AAAA,UACnE,mBAAmB,gBAAgB,YAAY,aAAa,IAAI,IAAI;AAAA,QACtE;AAAA,MACF;AAAA,MAEA;AAAA,QAAC;AAAA;AAAA,UACC,SAAQ;AAAA,UACR,YAAW;AAAA,UACX,gBAAe;AAAA,UACf,iBAAgB;AAAA,UAChB,UAAS;AAAA,UAET;AAAA,YAAC;AAAA;AAAA,cACC;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA;AAAA,UACF;AAAA;AAAA,MACF;AAAA;AAAA,EACF;AAEJ","sourcesContent":["import { type ReactElement } from \"react\";\nimport Box from \"../Box/Box\";\nimport Avatar from \"../Avatar/Avatar\";\n\nconst sizeToMargin = {\n sm: -16,\n md: -28,\n lg: -48,\n xl: -96,\n} as const;\n\nexport default function AvatarGroupAvatar({\n accessibilityLabel,\n icon,\n orientation = \"standard\",\n size = \"md\",\n src,\n zIndex,\n}: {\n /**\n * Alt text to use for the image.\n * This should describe the image to people using screen readers.\n */\n accessibilityLabel: string;\n /**\n * optional icon that appears on the bottom corner of the avatar\n */\n icon?: React.ReactElement;\n /**\n * URL of the image to display as the avatar.\n */\n src: string;\n /**\n * Influences which direction we apply the negative margin between avatars\n */\n orientation?: \"standard\" | \"reverse\";\n /**\n * Position of the avatar in the stack\n */\n zIndex: number;\n /**\n * Size of the avatar.\n *\n * * `sm`: 24px\n * * `md`: 40px\n * * `lg`: 72px\n * * `xl`: 128px\n *\n * @defaultValue `md`\n */\n size?: \"sm\" | \"md\" | \"lg\" | \"xl\";\n}): ReactElement {\n return (\n <Box\n position=\"relative\"\n dangerouslySetInlineStyle={{\n __style: {\n zIndex,\n marginInlineEnd: orientation === \"standard\" ? sizeToMargin[size] : 0,\n marginInlineStart: orientation === \"reverse\" ? sizeToMargin[size] : 0,\n },\n }}\n >\n <Box\n display=\"flex\"\n alignItems=\"center\"\n justifyContent=\"center\"\n backgroundColor=\"white\"\n rounding=\"full\"\n >\n <Avatar\n src={src}\n accessibilityLabel={accessibilityLabel}\n size={size}\n icon={icon}\n />\n </Box>\n </Box>\n );\n}\n"]}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/colors/foregroundTypographyColor.ts
|
|
2
|
-
function foregroundTypographyColor(color) {
|
|
3
|
-
switch (color) {
|
|
4
|
-
case "destructive-secondary":
|
|
5
|
-
case "destructive-tertiary":
|
|
6
|
-
return "destructive-primary";
|
|
7
|
-
case "primary":
|
|
8
|
-
case "secondary":
|
|
9
|
-
case "tertiary":
|
|
10
|
-
case "branded":
|
|
11
|
-
return "gray900";
|
|
12
|
-
case "inverse":
|
|
13
|
-
return "white";
|
|
14
|
-
default:
|
|
15
|
-
return "white";
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
exports.foregroundTypographyColor = foregroundTypographyColor;
|
|
22
|
-
//# sourceMappingURL=CBT226O7.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/colors/foregroundTypographyColor.ts"],"names":[],"mappings":";AAEe,SAAR,0BACL,OACwB;AACxB,UAAQ,OAAO;AAAA,IACb,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT;AACE,aAAO;AAAA,EACX;AACF","sourcesContent":["import { type Color } from \"../constants\";\n\nexport default function foregroundTypographyColor(\n color: (typeof Color)[number],\n): (typeof Color)[number] {\n switch (color) {\n case \"destructive-secondary\":\n case \"destructive-tertiary\":\n return \"destructive-primary\";\n case \"primary\":\n case \"secondary\":\n case \"tertiary\":\n case \"branded\":\n return \"gray900\";\n case \"inverse\":\n return \"white\";\n default:\n return \"white\";\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
// css-module:./colors.module.css#css-module
|
|
2
|
-
var colors_module_default = { "inheritColor": "_inheritColor_11wj3_2", "destructive700Color": "_destructive700Color_11wj3_6", "gray700Color": "_gray700Color_11wj3_10", "gray900Color": "_gray900Color_11wj3_14", "primary700Color": "_primary700Color_11wj3_18", "whiteColor": "_whiteColor_11wj3_22", "blackBackgroundColor": "_blackBackgroundColor_11wj3_27", "destructive100BackgroundColor": "_destructive100BackgroundColor_11wj3_31", "destructive200BackgroundColor": "_destructive200BackgroundColor_11wj3_35", "destructive300BackgroundColor": "_destructive300BackgroundColor_11wj3_39", "destructive700BackgroundColor": "_destructive700BackgroundColor_11wj3_43", "destructive800BackgroundColor": "_destructive800BackgroundColor_11wj3_47", "destructive900BackgroundColor": "_destructive900BackgroundColor_11wj3_51", "gray10BackgroundColor": "_gray10BackgroundColor_11wj3_55", "gray30BackgroundColor": "_gray30BackgroundColor_11wj3_59", "gray60BackgroundColor": "_gray60BackgroundColor_11wj3_63", "gray80BackgroundColor": "_gray80BackgroundColor_11wj3_67", "gray100BackgroundColor": "_gray100BackgroundColor_11wj3_71", "gray200BackgroundColor": "_gray200BackgroundColor_11wj3_75", "gray300BackgroundColor": "_gray300BackgroundColor_11wj3_79", "gray700BackgroundColor": "_gray700BackgroundColor_11wj3_83", "gray800BackgroundColor": "_gray800BackgroundColor_11wj3_87", "gray900BackgroundColor": "_gray900BackgroundColor_11wj3_91", "orange100BackgroundColor": "_orange100BackgroundColor_11wj3_95", "orange200BackgroundColor": "_orange200BackgroundColor_11wj3_99", "orange300BackgroundColor": "_orange300BackgroundColor_11wj3_103", "orange700BackgroundColor": "_orange700BackgroundColor_11wj3_107", "orange800BackgroundColor": "_orange800BackgroundColor_11wj3_111", "orange900BackgroundColor": "_orange900BackgroundColor_11wj3_115", "primary100BackgroundColor": "_primary100BackgroundColor_11wj3_119", "primary200BackgroundColor": "_primary200BackgroundColor_11wj3_123", "primary300BackgroundColor": "_primary300BackgroundColor_11wj3_127", "primary700BackgroundColor": "_primary700BackgroundColor_11wj3_131", "primary800BackgroundColor": "_primary800BackgroundColor_11wj3_135", "primary900BackgroundColor": "_primary900BackgroundColor_11wj3_139", "success100BackgroundColor": "_success100BackgroundColor_11wj3_143", "success200BackgroundColor": "_success200BackgroundColor_11wj3_147", "success300BackgroundColor": "_success300BackgroundColor_11wj3_151", "success700BackgroundColor": "_success700BackgroundColor_11wj3_155", "success800BackgroundColor": "_success800BackgroundColor_11wj3_159", "success900BackgroundColor": "_success900BackgroundColor_11wj3_163", "purple100BackgroundColor": "_purple100BackgroundColor_11wj3_167", "purple200BackgroundColor": "_purple200BackgroundColor_11wj3_171", "purple300BackgroundColor": "_purple300BackgroundColor_11wj3_175", "purple700BackgroundColor": "_purple700BackgroundColor_11wj3_179", "purple800BackgroundColor": "_purple800BackgroundColor_11wj3_183", "purple900BackgroundColor": "_purple900BackgroundColor_11wj3_187", "whiteBackgroundColor": "_whiteBackgroundColor_11wj3_191", "yellow100BackgroundColor": "_yellow100BackgroundColor_11wj3_195", "yellow200BackgroundColor": "_yellow200BackgroundColor_11wj3_199", "yellow300BackgroundColor": "_yellow300BackgroundColor_11wj3_203", "yellow700BackgroundColor": "_yellow700BackgroundColor_11wj3_207", "yellow800BackgroundColor": "_yellow800BackgroundColor_11wj3_211", "yellow900BackgroundColor": "_yellow900BackgroundColor_11wj3_215" };
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
colors_module_default
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=CUVXZOBA.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["css-module:./colors.module.css#css-module"],"sourcesContent":["import \"/Users/christian/cambly/syntax/packages/syntax-core/src/colors/colors.module.css\"; export default {\"inheritColor\":\"_inheritColor_11wj3_2\",\"destructive700Color\":\"_destructive700Color_11wj3_6\",\"gray700Color\":\"_gray700Color_11wj3_10\",\"gray900Color\":\"_gray900Color_11wj3_14\",\"primary700Color\":\"_primary700Color_11wj3_18\",\"whiteColor\":\"_whiteColor_11wj3_22\",\"blackBackgroundColor\":\"_blackBackgroundColor_11wj3_27\",\"destructive100BackgroundColor\":\"_destructive100BackgroundColor_11wj3_31\",\"destructive200BackgroundColor\":\"_destructive200BackgroundColor_11wj3_35\",\"destructive300BackgroundColor\":\"_destructive300BackgroundColor_11wj3_39\",\"destructive700BackgroundColor\":\"_destructive700BackgroundColor_11wj3_43\",\"destructive800BackgroundColor\":\"_destructive800BackgroundColor_11wj3_47\",\"destructive900BackgroundColor\":\"_destructive900BackgroundColor_11wj3_51\",\"gray10BackgroundColor\":\"_gray10BackgroundColor_11wj3_55\",\"gray30BackgroundColor\":\"_gray30BackgroundColor_11wj3_59\",\"gray60BackgroundColor\":\"_gray60BackgroundColor_11wj3_63\",\"gray80BackgroundColor\":\"_gray80BackgroundColor_11wj3_67\",\"gray100BackgroundColor\":\"_gray100BackgroundColor_11wj3_71\",\"gray200BackgroundColor\":\"_gray200BackgroundColor_11wj3_75\",\"gray300BackgroundColor\":\"_gray300BackgroundColor_11wj3_79\",\"gray700BackgroundColor\":\"_gray700BackgroundColor_11wj3_83\",\"gray800BackgroundColor\":\"_gray800BackgroundColor_11wj3_87\",\"gray900BackgroundColor\":\"_gray900BackgroundColor_11wj3_91\",\"orange100BackgroundColor\":\"_orange100BackgroundColor_11wj3_95\",\"orange200BackgroundColor\":\"_orange200BackgroundColor_11wj3_99\",\"orange300BackgroundColor\":\"_orange300BackgroundColor_11wj3_103\",\"orange700BackgroundColor\":\"_orange700BackgroundColor_11wj3_107\",\"orange800BackgroundColor\":\"_orange800BackgroundColor_11wj3_111\",\"orange900BackgroundColor\":\"_orange900BackgroundColor_11wj3_115\",\"primary100BackgroundColor\":\"_primary100BackgroundColor_11wj3_119\",\"primary200BackgroundColor\":\"_primary200BackgroundColor_11wj3_123\",\"primary300BackgroundColor\":\"_primary300BackgroundColor_11wj3_127\",\"primary700BackgroundColor\":\"_primary700BackgroundColor_11wj3_131\",\"primary800BackgroundColor\":\"_primary800BackgroundColor_11wj3_135\",\"primary900BackgroundColor\":\"_primary900BackgroundColor_11wj3_139\",\"success100BackgroundColor\":\"_success100BackgroundColor_11wj3_143\",\"success200BackgroundColor\":\"_success200BackgroundColor_11wj3_147\",\"success300BackgroundColor\":\"_success300BackgroundColor_11wj3_151\",\"success700BackgroundColor\":\"_success700BackgroundColor_11wj3_155\",\"success800BackgroundColor\":\"_success800BackgroundColor_11wj3_159\",\"success900BackgroundColor\":\"_success900BackgroundColor_11wj3_163\",\"purple100BackgroundColor\":\"_purple100BackgroundColor_11wj3_167\",\"purple200BackgroundColor\":\"_purple200BackgroundColor_11wj3_171\",\"purple300BackgroundColor\":\"_purple300BackgroundColor_11wj3_175\",\"purple700BackgroundColor\":\"_purple700BackgroundColor_11wj3_179\",\"purple800BackgroundColor\":\"_purple800BackgroundColor_11wj3_183\",\"purple900BackgroundColor\":\"_purple900BackgroundColor_11wj3_187\",\"whiteBackgroundColor\":\"_whiteBackgroundColor_11wj3_191\",\"yellow100BackgroundColor\":\"_yellow100BackgroundColor_11wj3_195\",\"yellow200BackgroundColor\":\"_yellow200BackgroundColor_11wj3_199\",\"yellow300BackgroundColor\":\"_yellow300BackgroundColor_11wj3_203\",\"yellow700BackgroundColor\":\"_yellow700BackgroundColor_11wj3_207\",\"yellow800BackgroundColor\":\"_yellow800BackgroundColor_11wj3_211\",\"yellow900BackgroundColor\":\"_yellow900BackgroundColor_11wj3_215\"}"],"mappings":";AAA2F,IAAO,wBAAQ,EAAC,gBAAe,yBAAwB,uBAAsB,gCAA+B,gBAAe,0BAAyB,gBAAe,0BAAyB,mBAAkB,6BAA4B,cAAa,wBAAuB,wBAAuB,kCAAiC,iCAAgC,2CAA0C,iCAAgC,2CAA0C,iCAAgC,2CAA0C,iCAAgC,2CAA0C,iCAAgC,2CAA0C,iCAAgC,2CAA0C,yBAAwB,mCAAkC,yBAAwB,mCAAkC,yBAAwB,mCAAkC,yBAAwB,mCAAkC,0BAAyB,oCAAmC,0BAAyB,oCAAmC,0BAAyB,oCAAmC,0BAAyB,oCAAmC,0BAAyB,oCAAmC,0BAAyB,oCAAmC,4BAA2B,sCAAqC,4BAA2B,sCAAqC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,wBAAuB,mCAAkC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,sCAAqC;","names":[]}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
|
-
|
|
3
|
-
var _HOUO3WV6js = require('./HOUO3WV6.js');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _VPGRPGP7js = require('./VPGRPGP7.js');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _PHVABKOKjs = require('./PHVABKOK.js');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _YJ7YDIGBjs = require('./YJ7YDIGB.js');
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var _OGJDUOWPjs = require('./OGJDUOWP.js');
|
|
16
|
-
|
|
17
|
-
// src/SelectList/SelectList.tsx
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var _react = require('react');
|
|
22
|
-
var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames);
|
|
23
|
-
|
|
24
|
-
// ../syntax-design-tokens/dist/js/index.js
|
|
25
|
-
var ColorBaseDestructive700 = "#bd2a13";
|
|
26
|
-
var ColorBaseGray800 = "#353535";
|
|
27
|
-
|
|
28
|
-
// css-module:./SelectList.module.css#css-module
|
|
29
|
-
var SelectList_module_default = { "selectContainer": "_selectContainer_efdzx_1", "opacityOverlay": "_opacityOverlay_efdzx_7", "outerTextContainer": "_outerTextContainer_efdzx_11", "selectWrapper": "_selectWrapper_efdzx_16", "selectBox": "_selectBox_efdzx_21", "selectMouseFocusStyling": "_selectMouseFocusStyling_efdzx_38", "unselected": "_unselected_efdzx_42", "selected": "_selected_efdzx_46", "arrowIcon": "_arrowIcon_efdzx_50", "sm": "_sm_efdzx_64", "md": "_md_efdzx_69", "lg": "_lg_efdzx_74", "selectError": "_selectError_efdzx_79" };
|
|
30
|
-
|
|
31
|
-
// src/SelectList/SelectList.tsx
|
|
32
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
33
|
-
var iconSize = {
|
|
34
|
-
sm: 20,
|
|
35
|
-
md: 24,
|
|
36
|
-
lg: 24
|
|
37
|
-
};
|
|
38
|
-
function SelectList({
|
|
39
|
-
children,
|
|
40
|
-
"data-testid": dataTestId,
|
|
41
|
-
disabled: disabledProp = false,
|
|
42
|
-
errorText,
|
|
43
|
-
helperText,
|
|
44
|
-
id,
|
|
45
|
-
label,
|
|
46
|
-
onChange,
|
|
47
|
-
onClick,
|
|
48
|
-
placeholderText,
|
|
49
|
-
selectedValue = "",
|
|
50
|
-
size = "md"
|
|
51
|
-
}) {
|
|
52
|
-
const reactId = _react.useId.call(void 0, );
|
|
53
|
-
const isHydrated = _YJ7YDIGBjs.useIsHydrated.call(void 0, );
|
|
54
|
-
const disabled = !isHydrated || disabledProp;
|
|
55
|
-
const selectId = id != null ? id : reactId;
|
|
56
|
-
const { isFocusVisible } = _OGJDUOWPjs.useFocusVisible.call(void 0, );
|
|
57
|
-
const [isFocused, setIsFocused] = _react.useState.call(void 0, false);
|
|
58
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
59
|
-
"div",
|
|
60
|
-
{
|
|
61
|
-
className: _classnames2.default.call(void 0, SelectList_module_default.selectContainer, {
|
|
62
|
-
[SelectList_module_default.opacityOverlay]: disabled
|
|
63
|
-
}),
|
|
64
|
-
children: [
|
|
65
|
-
label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: selectId, className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _PHVABKOKjs.Typography_default, { size: 100, color: "gray700", children: label }) }),
|
|
66
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SelectList_module_default.selectWrapper, children: [
|
|
67
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
68
|
-
"select",
|
|
69
|
-
{
|
|
70
|
-
id: selectId,
|
|
71
|
-
"data-testid": dataTestId,
|
|
72
|
-
disabled,
|
|
73
|
-
className: _classnames2.default.call(void 0, SelectList_module_default.selectBox, SelectList_module_default[size], {
|
|
74
|
-
[SelectList_module_default.unselected]: !selectedValue && !errorText,
|
|
75
|
-
[SelectList_module_default.selected]: selectedValue && !errorText,
|
|
76
|
-
[SelectList_module_default.selectError]: errorText,
|
|
77
|
-
[_VPGRPGP7js.Focus_module_default.accessibilityOutlineFocus]: isFocused && isFocusVisible,
|
|
78
|
-
// for focus keyboard
|
|
79
|
-
[SelectList_module_default.selectMouseFocusStyling]: isFocused && !isFocusVisible
|
|
80
|
-
// for focus mouse
|
|
81
|
-
}),
|
|
82
|
-
onChange,
|
|
83
|
-
onClick,
|
|
84
|
-
value: placeholderText && !selectedValue ? placeholderText : selectedValue,
|
|
85
|
-
onFocus: () => setIsFocused(true),
|
|
86
|
-
onBlur: () => setIsFocused(false),
|
|
87
|
-
children: [
|
|
88
|
-
placeholderText && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "option", { disabled: true, value: placeholderText, children: placeholderText }),
|
|
89
|
-
children
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
),
|
|
93
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: SelectList_module_default.arrowIcon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
94
|
-
"svg",
|
|
95
|
-
{
|
|
96
|
-
focusable: "false",
|
|
97
|
-
"aria-hidden": "true",
|
|
98
|
-
viewBox: "0 0 24 24",
|
|
99
|
-
width: iconSize[size],
|
|
100
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
101
|
-
"path",
|
|
102
|
-
{
|
|
103
|
-
fill: errorText ? ColorBaseDestructive700 : ColorBaseGray800,
|
|
104
|
-
d: "M15.88 9.29 12 13.17 8.12 9.29a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41-.39-.38-1.03-.39-1.42 0z"
|
|
105
|
-
}
|
|
106
|
-
)
|
|
107
|
-
}
|
|
108
|
-
) })
|
|
109
|
-
] }),
|
|
110
|
-
(helperText || errorText) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
111
|
-
_PHVABKOKjs.Typography_default,
|
|
112
|
-
{
|
|
113
|
-
size: 100,
|
|
114
|
-
color: errorText ? "destructive-primary" : "gray700",
|
|
115
|
-
children: errorText ? errorText : helperText
|
|
116
|
-
}
|
|
117
|
-
) })
|
|
118
|
-
]
|
|
119
|
-
}
|
|
120
|
-
);
|
|
121
|
-
}
|
|
122
|
-
SelectList.Option = _HOUO3WV6js.SelectOption_default;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
exports.SelectList = SelectList;
|
|
127
|
-
//# sourceMappingURL=CWMDGR2A.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/SelectList/SelectList.tsx","../../../syntax-design-tokens/dist/js/index.js","css-module:./SelectList.module.css#css-module"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA,EAGE;AAAA,EACA;AAAA,OACK;AACP,OAAO,gBAAgB;;;ACGhB,IAAM,0BAA0B;AAWhC,IAAM,mBAAmB;;;ACpBmE,IAAO,4BAAQ,EAAC,mBAAkB,4BAA2B,kBAAiB,2BAA0B,sBAAqB,gCAA+B,iBAAgB,2BAA0B,aAAY,uBAAsB,2BAA0B,qCAAoC,cAAa,wBAAuB,YAAW,sBAAqB,aAAY,uBAAsB,MAAK,gBAAe,MAAK,gBAAe,MAAK,gBAAe,eAAc,wBAAuB;;;AFgHtkB,cAMF,YANE;AA9FV,IAAM,WAAW;AAAA,EACf,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAKe,SAAR,WAA4B;AAAA,EACjC;AAAA,EACA,eAAe;AAAA,EACf,UAAU,eAAe;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,gBAAgB;AAAA,EAChB,OAAO;AACT,GAwDiB;AACf,QAAM,UAAU,MAAM;AACtB,QAAM,aAAa,cAAc;AACjC,QAAM,WAAW,CAAC,cAAc;AAChC,QAAM,WAAW,kBAAM;AACvB,QAAM,EAAE,eAAe,IAAI,gBAAgB;AAC3C,QAAM,CAAC,WAAW,YAAY,IAAI,SAAS,KAAK;AAEhD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,WAAW,0BAAO,iBAAiB;AAAA,QAC5C,CAAC,0BAAO,cAAc,GAAG;AAAA,MAC3B,CAAC;AAAA,MAEA;AAAA,iBACC,oBAAC,WAAM,SAAS,UAAU,WAAW,0BAAO,oBAC1C,8BAAC,sBAAW,MAAM,KAAK,OAAM,WAC1B,iBACH,GACF;AAAA,QAEF,qBAAC,SAAI,WAAW,0BAAO,eACrB;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,IAAI;AAAA,cACJ,eAAa;AAAA,cACb;AAAA,cACA,WAAW,WAAW,0BAAO,WAAW,0BAAO,IAAI,GAAG;AAAA,gBACpD,CAAC,0BAAO,UAAU,GAAG,CAAC,iBAAiB,CAAC;AAAA,gBACxC,CAAC,0BAAO,QAAQ,GAAG,iBAAiB,CAAC;AAAA,gBACrC,CAAC,0BAAO,WAAW,GAAG;AAAA,gBACtB,CAAC,qBAAY,yBAAyB,GACpC,aAAa;AAAA;AAAA,gBACf,CAAC,0BAAO,uBAAuB,GAAG,aAAa,CAAC;AAAA;AAAA,cAClD,CAAC;AAAA,cACD;AAAA,cACA;AAAA,cACA,OACE,mBAAmB,CAAC,gBAAgB,kBAAkB;AAAA,cAExD,SAAS,MAAM,aAAa,IAAI;AAAA,cAChC,QAAQ,MAAM,aAAa,KAAK;AAAA,cAE/B;AAAA,mCACC,oBAAC,YAAO,UAAQ,MAAC,OAAO,iBACrB,2BACH;AAAA,gBAED;AAAA;AAAA;AAAA,UACH;AAAA,UACA,oBAAC,SAAI,WAAW,0BAAO,WACrB;AAAA,YAAC;AAAA;AAAA,cACC,WAAU;AAAA,cACV,eAAY;AAAA,cACZ,SAAQ;AAAA,cACR,OAAO,SAAS,IAAI;AAAA,cAEpB;AAAA,gBAAC;AAAA;AAAA,kBACC,MAAM,YAAY,0BAA0B;AAAA,kBAC5C,GAAE;AAAA;AAAA,cACJ;AAAA;AAAA,UACF,GACF;AAAA,WACF;AAAA,SACE,cAAc,cACd,oBAAC,SAAI,WAAW,0BAAO,oBACrB;AAAA,UAAC;AAAA;AAAA,YACC,MAAM;AAAA,YACN,OAAO,YAAY,wBAAwB;AAAA,YAE1C,sBAAY,YAAY;AAAA;AAAA,QAC3B,GACF;AAAA;AAAA;AAAA,EAEJ;AAEJ;AAEA,WAAW,SAAS","sourcesContent":["import React, {\n type ReactElement,\n type ReactNode,\n useId,\n useState,\n} from \"react\";\nimport classNames from \"classnames\";\nimport {\n ColorBaseDestructive700,\n ColorBaseGray800,\n} from \"@cambly/syntax-design-tokens\";\nimport Typography from \"../Typography/Typography\";\nimport styles from \"./SelectList.module.css\";\nimport focusStyles from \"../Focus.module.css\";\nimport SelectOption from \"./SelectOption\";\nimport useFocusVisible from \"../useFocusVisible\";\nimport useIsHydrated from \"../useIsHydrated\";\n\nconst iconSize = {\n sm: 20,\n md: 24,\n lg: 24,\n} as const;\n\n/**\n * [SelectList](https://cambly-syntax.vercel.app/?path=/docs/components-selectlist--docs) is a dropdown menu that allows users to select one option from a list.\n */\nexport default function SelectList({\n children,\n \"data-testid\": dataTestId,\n disabled: disabledProp = false,\n errorText,\n helperText,\n id,\n label,\n onChange,\n onClick,\n placeholderText,\n selectedValue = \"\",\n size = \"md\",\n}: {\n /**\n * One or more SelectList.Option components.\n */\n children: ReactNode;\n /**\n * Test id for the select element\n */\n \"data-testid\"?: string;\n /**\n * true if the select dropdown is disabled\n * @defaultValue false\n */\n disabled?: boolean;\n /**\n * Callback to be called when select is clicked\n */\n onClick?: React.MouseEventHandler<HTMLSelectElement>;\n /**\n * Text shown below select box if there is an input error.\n */\n errorText?: string;\n /**\n * Text shown below select box\n */\n helperText?: string;\n /**\n * Id of the select element\n */\n id?: string;\n /**\n * Text shown above select box\n */\n label: string;\n /**\n * The callback to be called when an option is selected\n */\n onChange: React.ChangeEventHandler<HTMLSelectElement>;\n /**\n * Text showing in select box if no option has been chosen.\n * We should always have a placeholder unless there is a default option selected\n */\n placeholderText?: string;\n /**\n * Value of the currently selected option\n */\n selectedValue?: string;\n /**\n * Size of the select box\n * * `sm`: 32px\n * * `md`: 40px\n * * `lg`: 48px\n *\n * @defaultValue \"md\"\n */\n size?: \"sm\" | \"md\" | \"lg\";\n}): ReactElement {\n const reactId = useId();\n const isHydrated = useIsHydrated();\n const disabled = !isHydrated || disabledProp;\n const selectId = id ?? reactId;\n const { isFocusVisible } = useFocusVisible();\n const [isFocused, setIsFocused] = useState(false);\n\n return (\n <div\n className={classNames(styles.selectContainer, {\n [styles.opacityOverlay]: disabled,\n })}\n >\n {label && (\n <label htmlFor={selectId} className={styles.outerTextContainer}>\n <Typography size={100} color=\"gray700\">\n {label}\n </Typography>\n </label>\n )}\n <div className={styles.selectWrapper}>\n <select\n id={selectId}\n data-testid={dataTestId}\n disabled={disabled}\n className={classNames(styles.selectBox, styles[size], {\n [styles.unselected]: !selectedValue && !errorText,\n [styles.selected]: selectedValue && !errorText,\n [styles.selectError]: errorText,\n [focusStyles.accessibilityOutlineFocus]:\n isFocused && isFocusVisible, // for focus keyboard\n [styles.selectMouseFocusStyling]: isFocused && !isFocusVisible, // for focus mouse\n })}\n onChange={onChange}\n onClick={onClick}\n value={\n placeholderText && !selectedValue ? placeholderText : selectedValue\n }\n onFocus={() => setIsFocused(true)}\n onBlur={() => setIsFocused(false)}\n >\n {placeholderText && (\n <option disabled value={placeholderText}>\n {placeholderText}\n </option>\n )}\n {children}\n </select>\n <div className={styles.arrowIcon}>\n <svg\n focusable=\"false\"\n aria-hidden=\"true\"\n viewBox=\"0 0 24 24\"\n width={iconSize[size]}\n >\n <path\n fill={errorText ? ColorBaseDestructive700 : ColorBaseGray800}\n d=\"M15.88 9.29 12 13.17 8.12 9.29a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41-.39-.38-1.03-.39-1.42 0z\"\n />\n </svg>\n </div>\n </div>\n {(helperText || errorText) && (\n <div className={styles.outerTextContainer}>\n <Typography\n size={100}\n color={errorText ? \"destructive-primary\" : \"gray700\"}\n >\n {errorText ? errorText : helperText}\n </Typography>\n </div>\n )}\n </div>\n );\n}\n\nSelectList.Option = SelectOption;\n","/**\n * Do not edit directly\n * Generated on Tue, 16 Jan 2024 18:44:55 GMT\n */\n\nexport const ColorBaseBlack = \"#000000\";\nexport const ColorBaseDestructive100 = \"#ffdcd6\";\nexport const ColorBaseDestructive200 = \"#fad6de\";\nexport const ColorBaseDestructive300 = \"#f2a2b2\";\nexport const ColorBaseDestructive700 = \"#bd2a13\";\nexport const ColorBaseDestructive800 = \"#81162c\";\nexport const ColorBaseDestructive900 = \"#55101d\";\nexport const ColorBaseGray10 = \"#cbcbcb\"; // Used as the default color for dividers and inner strokes\nexport const ColorBaseGray30 = \"#000000\"; // For IconButton background when on top of an image\nexport const ColorBaseGray60 = \"#000000\"; // Used for icon background in classroom video grid\nexport const ColorBaseGray80 = \"#000000\"; // Used as the background for modals\nexport const ColorBaseGray100 = \"#f7f7f7\";\nexport const ColorBaseGray200 = \"#f0f0f0\"; // Used for light mode backgrounds when showing card content on top\nexport const ColorBaseGray300 = \"#d0d0d0\"; // Used for component outlines, eg: select and textfield\nexport const ColorBaseGray700 = \"#767676\"; // For secondary text in light mode\nexport const ColorBaseGray800 = \"#353535\";\nexport const ColorBaseGray900 = \"#191919\"; // Default text color, Classroom background\nexport const ColorBaseOrange100 = \"#fdf2f0\";\nexport const ColorBaseOrange200 = \"#f6cdc4\";\nexport const ColorBaseOrange300 = \"#ec9987\";\nexport const ColorBaseOrange700 = \"#c34124\";\nexport const ColorBaseOrange800 = \"#732818\";\nexport const ColorBaseOrange900 = \"#4d1a10\";\nexport const ColorBasePrimary100 = \"#eff6fa\";\nexport const ColorBasePrimary200 = \"#c1dbe7\";\nexport const ColorBasePrimary300 = \"#84b7d0\";\nexport const ColorBasePrimary700 = \"#236482\";\nexport const ColorBasePrimary800 = \"#274858\";\nexport const ColorBasePrimary900 = \"#1b303b\";\nexport const ColorBaseSuccess100 = \"#eff7f1\";\nexport const ColorBaseSuccess200 = \"#bddcc6\";\nexport const ColorBaseSuccess300 = \"#81ba92\";\nexport const ColorBaseSuccess700 = \"#397b4d\";\nexport const ColorBaseSuccess800 = \"#2d4936\";\nexport const ColorBaseSuccess900 = \"#1e3124\";\nexport const ColorBasePurple100 = \"#f9f5fa\";\nexport const ColorBasePurple200 = \"#e8dceb\";\nexport const ColorBasePurple300 = \"#cdb4d3\";\nexport const ColorBasePurple700 = \"#8b5f95\";\nexport const ColorBasePurple800 = \"#523b58\";\nexport const ColorBasePurple900 = \"#37273b\";\nexport const ColorBaseYellow100 = \"#fdf5d9\";\nexport const ColorBaseYellow200 = \"#fbe8a3\";\nexport const ColorBaseYellow300 = \"#f8d663\";\nexport const ColorBaseYellow700 = \"#ffe733\";\nexport const ColorBaseYellow800 = \"#765f1c\";\nexport const ColorBaseYellow900 = \"#3b3009\";\nexport const ColorBaseWhite = \"#ffffff\";\nexport const Elevation400 = \"0px 16px 32px 0px #00000040\";\n","import \"/Users/christian/cambly/syntax/packages/syntax-core/src/SelectList/SelectList.module.css\"; export default {\"selectContainer\":\"_selectContainer_efdzx_1\",\"opacityOverlay\":\"_opacityOverlay_efdzx_7\",\"outerTextContainer\":\"_outerTextContainer_efdzx_11\",\"selectWrapper\":\"_selectWrapper_efdzx_16\",\"selectBox\":\"_selectBox_efdzx_21\",\"selectMouseFocusStyling\":\"_selectMouseFocusStyling_efdzx_38\",\"unselected\":\"_unselected_efdzx_42\",\"selected\":\"_selected_efdzx_46\",\"arrowIcon\":\"_arrowIcon_efdzx_50\",\"sm\":\"_sm_efdzx_64\",\"md\":\"_md_efdzx_69\",\"lg\":\"_lg_efdzx_74\",\"selectError\":\"_selectError_efdzx_79\"}"]}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Box_default
|
|
3
|
-
} from "./4VIJNV7V.mjs";
|
|
4
|
-
import {
|
|
5
|
-
Typography_default
|
|
6
|
-
} from "./WIDP7NHD.mjs";
|
|
7
|
-
|
|
8
|
-
// src/Chip/Chip.tsx
|
|
9
|
-
import { forwardRef } from "react";
|
|
10
|
-
import classnames from "classnames";
|
|
11
|
-
|
|
12
|
-
// css-module:./Chip.module.css#css-module
|
|
13
|
-
var Chip_module_default = { "chip": "_chip_1rwvt_1", "selectedChip": "_selectedChip_1rwvt_12", "icon": "_icon_1rwvt_17", "selectedIcon": "_selectedIcon_1rwvt_25", "sm": "_sm_1rwvt_29", "lg": "_lg_1rwvt_35" };
|
|
14
|
-
|
|
15
|
-
// src/Chip/Chip.tsx
|
|
16
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
-
var Chip = forwardRef(
|
|
18
|
-
({
|
|
19
|
-
selected = false,
|
|
20
|
-
"data-testid": dataTestId,
|
|
21
|
-
size = "sm",
|
|
22
|
-
text,
|
|
23
|
-
onChange,
|
|
24
|
-
icon: Icon
|
|
25
|
-
}, ref) => {
|
|
26
|
-
const chipStyles = classnames(Chip_module_default.chip, Chip_module_default[size], {
|
|
27
|
-
[Chip_module_default.selectedChip]: selected
|
|
28
|
-
});
|
|
29
|
-
const iconStyles = classnames(Chip_module_default.icon, {
|
|
30
|
-
[Chip_module_default.selectedIcon]: selected
|
|
31
|
-
});
|
|
32
|
-
const typographySize = {
|
|
33
|
-
["sm"]: 200,
|
|
34
|
-
["lg"]: 300
|
|
35
|
-
};
|
|
36
|
-
return /* @__PURE__ */ jsxs(
|
|
37
|
-
"button",
|
|
38
|
-
{
|
|
39
|
-
className: chipStyles,
|
|
40
|
-
"data-testid": dataTestId,
|
|
41
|
-
ref,
|
|
42
|
-
type: "button",
|
|
43
|
-
"aria-pressed": selected,
|
|
44
|
-
onClick: onChange,
|
|
45
|
-
children: [
|
|
46
|
-
Icon && /* @__PURE__ */ jsx(Icon, { className: iconStyles }),
|
|
47
|
-
/* @__PURE__ */ jsx(Box_default, { paddingX: Icon ? 1 : 0, children: /* @__PURE__ */ jsx(
|
|
48
|
-
Typography_default,
|
|
49
|
-
{
|
|
50
|
-
size: typographySize[size],
|
|
51
|
-
color: selected ? "white" : "gray900",
|
|
52
|
-
children: text
|
|
53
|
-
}
|
|
54
|
-
) })
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
Chip.displayName = "Chip";
|
|
61
|
-
var Chip_default = Chip;
|
|
62
|
-
|
|
63
|
-
export {
|
|
64
|
-
Chip_default
|
|
65
|
-
};
|
|
66
|
-
//# sourceMappingURL=CWODDNFV.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Chip/Chip.tsx","css-module:./Chip.module.css#css-module"],"sourcesContent":["import React, { forwardRef } from \"react\";\nimport classnames from \"classnames\";\nimport Typography from \"../Typography/Typography\";\nimport Box from \"../Box/Box\";\nimport styles from \"./Chip.module.css\";\n\ntype ChipProps = {\n /**\n * Sets the initial status of this chip component.\n * * `true` will display a grey chip.\n * * `false` will display a premium800 color chip.\n *\n * @defaultValue \"false\"\n */\n selected?: boolean;\n /**\n * Test id for the button\n */\n \"data-testid\"?: string;\n /**\n * Size of the chip.\n *\n * * `sm`: 32px\n * * `lg`: 48px\n *\n * @defaultValue sm\n */\n size?: \"sm\" | \"lg\";\n /**\n * The text to be displayed on the chip\n */\n text: string;\n /**\n * The callback to be called when the chip is clicked\n */\n onChange: React.MouseEventHandler<HTMLButtonElement>;\n /**\n * The icon to be displayed.\n */\n icon?: React.ComponentType<{ className?: string }>;\n};\n/**\n * [Chip](https://cambly-syntax.vercel.app/?path=/docs/components-chip--docs) is used to show status (selected/not selected) like a toggle button.\n */\nconst Chip = forwardRef<HTMLButtonElement, ChipProps>(\n (\n {\n selected = false,\n \"data-testid\": dataTestId,\n size = \"sm\",\n text,\n onChange,\n icon: Icon,\n }: ChipProps,\n ref,\n ) => {\n const chipStyles = classnames(styles.chip, styles[size], {\n [styles.selectedChip]: selected,\n });\n const iconStyles = classnames(styles.icon, {\n [styles.selectedIcon]: selected,\n });\n const typographySize = {\n [\"sm\"]: 200,\n [\"lg\"]: 300,\n } as const;\n return (\n <button\n className={chipStyles}\n data-testid={dataTestId}\n ref={ref}\n type=\"button\"\n aria-pressed={selected}\n onClick={onChange}\n >\n {Icon && <Icon className={iconStyles} />}\n <Box paddingX={Icon ? 1 : 0}>\n <Typography\n size={typographySize[size]}\n color={selected ? \"white\" : \"gray900\"}\n >\n {text}\n </Typography>\n </Box>\n </button>\n );\n },\n);\n\nChip.displayName = \"Chip\";\n\nexport default Chip;\n","import \"/Users/christian/cambly/syntax/packages/syntax-core/src/Chip/Chip.module.css\"; export default {\"chip\":\"_chip_1rwvt_1\",\"selectedChip\":\"_selectedChip_1rwvt_12\",\"icon\":\"_icon_1rwvt_17\",\"selectedIcon\":\"_selectedIcon_1rwvt_25\",\"sm\":\"_sm_1rwvt_29\",\"lg\":\"_lg_1rwvt_35\"}"],"mappings":";;;;;;;;AAAA,SAAgB,kBAAkB;AAClC,OAAO,gBAAgB;;;ACDgE,IAAO,sBAAQ,EAAC,QAAO,iBAAgB,gBAAe,0BAAyB,QAAO,kBAAiB,gBAAe,0BAAyB,MAAK,gBAAe,MAAK,eAAc;;;ADmEvQ,SAQW,KARX;AAvBN,IAAM,OAAO;AAAA,EACX,CACE;AAAA,IACE,WAAW;AAAA,IACX,eAAe;AAAA,IACf,OAAO;AAAA,IACP;AAAA,IACA;AAAA,IACA,MAAM;AAAA,EACR,GACA,QACG;AACH,UAAM,aAAa,WAAW,oBAAO,MAAM,oBAAO,IAAI,GAAG;AAAA,MACvD,CAAC,oBAAO,YAAY,GAAG;AAAA,IACzB,CAAC;AACD,UAAM,aAAa,WAAW,oBAAO,MAAM;AAAA,MACzC,CAAC,oBAAO,YAAY,GAAG;AAAA,IACzB,CAAC;AACD,UAAM,iBAAiB;AAAA,MACrB,CAAC,IAAI,GAAG;AAAA,MACR,CAAC,IAAI,GAAG;AAAA,IACV;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW;AAAA,QACX,eAAa;AAAA,QACb;AAAA,QACA,MAAK;AAAA,QACL,gBAAc;AAAA,QACd,SAAS;AAAA,QAER;AAAA,kBAAQ,oBAAC,QAAK,WAAW,YAAY;AAAA,UACtC,oBAAC,eAAI,UAAU,OAAO,IAAI,GACxB;AAAA,YAAC;AAAA;AAAA,cACC,MAAM,eAAe,IAAI;AAAA,cACzB,OAAO,WAAW,UAAU;AAAA,cAE3B;AAAA;AAAA,UACH,GACF;AAAA;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,KAAK,cAAc;AAEnB,IAAO,eAAQ;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["css-module:./colors.module.css#css-module"],"names":[],"mappings":";AAA2F,IAAO,wBAAQ,EAAC,gBAAe,yBAAwB,uBAAsB,gCAA+B,gBAAe,0BAAyB,gBAAe,0BAAyB,mBAAkB,6BAA4B,mBAAkB,6BAA4B,cAAa,wBAAuB,wBAAuB,kCAAiC,iCAAgC,2CAA0C,iCAAgC,2CAA0C,iCAAgC,2CAA0C,iCAAgC,2CAA0C,iCAAgC,2CAA0C,iCAAgC,2CAA0C,yBAAwB,mCAAkC,yBAAwB,mCAAkC,yBAAwB,mCAAkC,yBAAwB,mCAAkC,0BAAyB,oCAAmC,0BAAyB,oCAAmC,0BAAyB,oCAAmC,0BAAyB,oCAAmC,0BAAyB,oCAAmC,0BAAyB,oCAAmC,4BAA2B,sCAAqC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,wBAAuB,mCAAkC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,sCAAqC","sourcesContent":["import \"/Users/christian/cambly/syntax/packages/syntax-core/src/colors/colors.module.css\"; export default {\"inheritColor\":\"_inheritColor_11l4y_2\",\"destructive700Color\":\"_destructive700Color_11l4y_6\",\"gray700Color\":\"_gray700Color_11l4y_10\",\"gray900Color\":\"_gray900Color_11l4y_14\",\"primary700Color\":\"_primary700Color_11l4y_18\",\"success700Color\":\"_success700Color_11l4y_22\",\"whiteColor\":\"_whiteColor_11l4y_26\",\"blackBackgroundColor\":\"_blackBackgroundColor_11l4y_31\",\"destructive100BackgroundColor\":\"_destructive100BackgroundColor_11l4y_35\",\"destructive200BackgroundColor\":\"_destructive200BackgroundColor_11l4y_39\",\"destructive300BackgroundColor\":\"_destructive300BackgroundColor_11l4y_43\",\"destructive700BackgroundColor\":\"_destructive700BackgroundColor_11l4y_47\",\"destructive800BackgroundColor\":\"_destructive800BackgroundColor_11l4y_51\",\"destructive900BackgroundColor\":\"_destructive900BackgroundColor_11l4y_55\",\"gray10BackgroundColor\":\"_gray10BackgroundColor_11l4y_59\",\"gray30BackgroundColor\":\"_gray30BackgroundColor_11l4y_63\",\"gray60BackgroundColor\":\"_gray60BackgroundColor_11l4y_67\",\"gray80BackgroundColor\":\"_gray80BackgroundColor_11l4y_71\",\"gray100BackgroundColor\":\"_gray100BackgroundColor_11l4y_75\",\"gray200BackgroundColor\":\"_gray200BackgroundColor_11l4y_79\",\"gray300BackgroundColor\":\"_gray300BackgroundColor_11l4y_83\",\"gray700BackgroundColor\":\"_gray700BackgroundColor_11l4y_87\",\"gray800BackgroundColor\":\"_gray800BackgroundColor_11l4y_91\",\"gray900BackgroundColor\":\"_gray900BackgroundColor_11l4y_95\",\"orange100BackgroundColor\":\"_orange100BackgroundColor_11l4y_99\",\"orange200BackgroundColor\":\"_orange200BackgroundColor_11l4y_103\",\"orange300BackgroundColor\":\"_orange300BackgroundColor_11l4y_107\",\"orange700BackgroundColor\":\"_orange700BackgroundColor_11l4y_111\",\"orange800BackgroundColor\":\"_orange800BackgroundColor_11l4y_115\",\"orange900BackgroundColor\":\"_orange900BackgroundColor_11l4y_119\",\"primary100BackgroundColor\":\"_primary100BackgroundColor_11l4y_123\",\"primary200BackgroundColor\":\"_primary200BackgroundColor_11l4y_127\",\"primary300BackgroundColor\":\"_primary300BackgroundColor_11l4y_131\",\"primary700BackgroundColor\":\"_primary700BackgroundColor_11l4y_135\",\"primary800BackgroundColor\":\"_primary800BackgroundColor_11l4y_139\",\"primary900BackgroundColor\":\"_primary900BackgroundColor_11l4y_143\",\"success100BackgroundColor\":\"_success100BackgroundColor_11l4y_147\",\"success200BackgroundColor\":\"_success200BackgroundColor_11l4y_151\",\"success300BackgroundColor\":\"_success300BackgroundColor_11l4y_155\",\"success700BackgroundColor\":\"_success700BackgroundColor_11l4y_159\",\"success800BackgroundColor\":\"_success800BackgroundColor_11l4y_163\",\"success900BackgroundColor\":\"_success900BackgroundColor_11l4y_167\",\"purple100BackgroundColor\":\"_purple100BackgroundColor_11l4y_171\",\"purple200BackgroundColor\":\"_purple200BackgroundColor_11l4y_175\",\"purple300BackgroundColor\":\"_purple300BackgroundColor_11l4y_179\",\"purple700BackgroundColor\":\"_purple700BackgroundColor_11l4y_183\",\"purple800BackgroundColor\":\"_purple800BackgroundColor_11l4y_187\",\"purple900BackgroundColor\":\"_purple900BackgroundColor_11l4y_191\",\"whiteBackgroundColor\":\"_whiteBackgroundColor_11l4y_195\",\"yellow100BackgroundColor\":\"_yellow100BackgroundColor_11l4y_199\",\"yellow200BackgroundColor\":\"_yellow200BackgroundColor_11l4y_203\",\"yellow300BackgroundColor\":\"_yellow300BackgroundColor_11l4y_207\",\"yellow700BackgroundColor\":\"_yellow700BackgroundColor_11l4y_211\",\"yellow800BackgroundColor\":\"_yellow800BackgroundColor_11l4y_215\",\"yellow900BackgroundColor\":\"_yellow900BackgroundColor_11l4y_219\"}"]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _A4I7G22Ajs = require('./A4I7G22A.js');
|
|
4
|
-
|
|
5
|
-
// src/colors/foregroundColor.ts
|
|
6
|
-
function foregroundColor(color) {
|
|
7
|
-
switch (color) {
|
|
8
|
-
case "secondary":
|
|
9
|
-
case "tertiary":
|
|
10
|
-
return _A4I7G22Ajs.colors_module_default.primary700Color;
|
|
11
|
-
case "destructive-secondary":
|
|
12
|
-
case "destructive-tertiary":
|
|
13
|
-
return _A4I7G22Ajs.colors_module_default.destructive700Color;
|
|
14
|
-
case "branded":
|
|
15
|
-
return _A4I7G22Ajs.colors_module_default.gray900Color;
|
|
16
|
-
default:
|
|
17
|
-
return _A4I7G22Ajs.colors_module_default.whiteColor;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
exports.foregroundColor = foregroundColor;
|
|
24
|
-
//# sourceMappingURL=EDT4HTWE.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/colors/foregroundColor.ts"],"names":[],"mappings":";;;;;AAGe,SAAR,gBAAiC,OAAuC;AAC7E,UAAQ,OAAO;AAAA,IACb,KAAK;AAAA,IACL,KAAK;AACH,aAAO,sBAAO;AAAA,IAChB,KAAK;AAAA,IACL,KAAK;AACH,aAAO,sBAAO;AAAA,IAChB,KAAK;AACH,aAAO,sBAAO;AAAA,IAChB;AACE,aAAO,sBAAO;AAAA,EAClB;AACF","sourcesContent":["import { type Color } from \"../constants\";\nimport styles from \"./colors.module.css\";\n\nexport default function foregroundColor(color: (typeof Color)[number]): string {\n switch (color) {\n case \"secondary\":\n case \"tertiary\":\n return styles.primary700Color;\n case \"destructive-secondary\":\n case \"destructive-tertiary\":\n return styles.destructive700Color;\n case \"branded\":\n return styles.gray900Color;\n default:\n return styles.whiteColor;\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Button/constants/loadingIconSize.ts"],"sourcesContent":["const loadingIconSize = {\n [\"sm\"]: 16,\n [\"md\"]: 20,\n [\"lg\"]: 24,\n};\n\nexport default loadingIconSize;\n"],"mappings":";AAAA,IAAM,kBAAkB;AAAA,EACtB,CAAC,IAAI,GAAG;AAAA,EACR,CAAC,IAAI,GAAG;AAAA,EACR,CAAC,IAAI,GAAG;AACV;AAEA,IAAO,0BAAQ;","names":[]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// css-module:./colors.module.css#css-module
|
|
2
|
-
var colors_module_default = { "inheritColor": "_inheritColor_2qqen_2", "yellowSecondaryBackgroundColor": "_yellowSecondaryBackgroundColor_2qqen_6", "destructive700Color": "_destructive700Color_2qqen_10", "gray700Color": "_gray700Color_2qqen_14", "gray900Color": "_gray900Color_2qqen_18", "primary700Color": "_primary700Color_2qqen_22", "success700Color": "_success700Color_2qqen_26", "whiteColor": "_whiteColor_2qqen_30", "blackBackgroundColor": "_blackBackgroundColor_2qqen_35", "destructive100BackgroundColor": "_destructive100BackgroundColor_2qqen_39", "destructive200BackgroundColor": "_destructive200BackgroundColor_2qqen_43", "destructive300BackgroundColor": "_destructive300BackgroundColor_2qqen_47", "destructive700BackgroundColor": "_destructive700BackgroundColor_2qqen_51", "destructive800BackgroundColor": "_destructive800BackgroundColor_2qqen_55", "destructive900BackgroundColor": "_destructive900BackgroundColor_2qqen_59", "gray10BackgroundColor": "_gray10BackgroundColor_2qqen_63", "gray30BackgroundColor": "_gray30BackgroundColor_2qqen_67", "gray60BackgroundColor": "_gray60BackgroundColor_2qqen_71", "gray80BackgroundColor": "_gray80BackgroundColor_2qqen_75", "gray100BackgroundColor": "_gray100BackgroundColor_2qqen_79", "gray200BackgroundColor": "_gray200BackgroundColor_2qqen_83", "gray300BackgroundColor": "_gray300BackgroundColor_2qqen_87", "gray700BackgroundColor": "_gray700BackgroundColor_2qqen_91", "gray800BackgroundColor": "_gray800BackgroundColor_2qqen_95", "gray900BackgroundColor": "_gray900BackgroundColor_2qqen_99", "orange100BackgroundColor": "_orange100BackgroundColor_2qqen_103", "orange200BackgroundColor": "_orange200BackgroundColor_2qqen_107", "orange300BackgroundColor": "_orange300BackgroundColor_2qqen_111", "orange700BackgroundColor": "_orange700BackgroundColor_2qqen_115", "orange800BackgroundColor": "_orange800BackgroundColor_2qqen_119", "orange900BackgroundColor": "_orange900BackgroundColor_2qqen_123", "primary100BackgroundColor": "_primary100BackgroundColor_2qqen_127", "primary200BackgroundColor": "_primary200BackgroundColor_2qqen_131", "primary300BackgroundColor": "_primary300BackgroundColor_2qqen_135", "primary700BackgroundColor": "_primary700BackgroundColor_2qqen_139", "primary800BackgroundColor": "_primary800BackgroundColor_2qqen_143", "primary900BackgroundColor": "_primary900BackgroundColor_2qqen_147", "success100BackgroundColor": "_success100BackgroundColor_2qqen_151", "success200BackgroundColor": "_success200BackgroundColor_2qqen_155", "success300BackgroundColor": "_success300BackgroundColor_2qqen_159", "success700BackgroundColor": "_success700BackgroundColor_2qqen_163", "success800BackgroundColor": "_success800BackgroundColor_2qqen_167", "success900BackgroundColor": "_success900BackgroundColor_2qqen_171", "purple100BackgroundColor": "_purple100BackgroundColor_2qqen_175", "purple200BackgroundColor": "_purple200BackgroundColor_2qqen_179", "purple300BackgroundColor": "_purple300BackgroundColor_2qqen_183", "purple700BackgroundColor": "_purple700BackgroundColor_2qqen_187", "purple800BackgroundColor": "_purple800BackgroundColor_2qqen_191", "purple900BackgroundColor": "_purple900BackgroundColor_2qqen_195", "whiteBackgroundColor": "_whiteBackgroundColor_2qqen_199", "yellow100BackgroundColor": "_yellow100BackgroundColor_2qqen_203", "yellow200BackgroundColor": "_yellow200BackgroundColor_2qqen_207", "yellow300BackgroundColor": "_yellow300BackgroundColor_2qqen_211", "yellow700BackgroundColor": "_yellow700BackgroundColor_2qqen_215", "yellow800BackgroundColor": "_yellow800BackgroundColor_2qqen_219", "yellow900BackgroundColor": "_yellow900BackgroundColor_2qqen_223" };
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
exports.colors_module_default = colors_module_default;
|
|
7
|
-
//# sourceMappingURL=EOHF5NBT.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["css-module:./colors.module.css#css-module"],"names":[],"mappings":";AAA2F,IAAO,wBAAQ,EAAC,gBAAe,yBAAwB,kCAAiC,2CAA0C,uBAAsB,iCAAgC,gBAAe,0BAAyB,gBAAe,0BAAyB,mBAAkB,6BAA4B,mBAAkB,6BAA4B,cAAa,wBAAuB,wBAAuB,kCAAiC,iCAAgC,2CAA0C,iCAAgC,2CAA0C,iCAAgC,2CAA0C,iCAAgC,2CAA0C,iCAAgC,2CAA0C,iCAAgC,2CAA0C,yBAAwB,mCAAkC,yBAAwB,mCAAkC,yBAAwB,mCAAkC,yBAAwB,mCAAkC,0BAAyB,oCAAmC,0BAAyB,oCAAmC,0BAAyB,oCAAmC,0BAAyB,oCAAmC,0BAAyB,oCAAmC,0BAAyB,oCAAmC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,wBAAuB,mCAAkC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,sCAAqC","sourcesContent":["import \"/Users/christian/cambly/syntax/packages/syntax-core/src/colors/colors.module.css\"; export default {\"inheritColor\":\"_inheritColor_2qqen_2\",\"yellowSecondaryBackgroundColor\":\"_yellowSecondaryBackgroundColor_2qqen_6\",\"destructive700Color\":\"_destructive700Color_2qqen_10\",\"gray700Color\":\"_gray700Color_2qqen_14\",\"gray900Color\":\"_gray900Color_2qqen_18\",\"primary700Color\":\"_primary700Color_2qqen_22\",\"success700Color\":\"_success700Color_2qqen_26\",\"whiteColor\":\"_whiteColor_2qqen_30\",\"blackBackgroundColor\":\"_blackBackgroundColor_2qqen_35\",\"destructive100BackgroundColor\":\"_destructive100BackgroundColor_2qqen_39\",\"destructive200BackgroundColor\":\"_destructive200BackgroundColor_2qqen_43\",\"destructive300BackgroundColor\":\"_destructive300BackgroundColor_2qqen_47\",\"destructive700BackgroundColor\":\"_destructive700BackgroundColor_2qqen_51\",\"destructive800BackgroundColor\":\"_destructive800BackgroundColor_2qqen_55\",\"destructive900BackgroundColor\":\"_destructive900BackgroundColor_2qqen_59\",\"gray10BackgroundColor\":\"_gray10BackgroundColor_2qqen_63\",\"gray30BackgroundColor\":\"_gray30BackgroundColor_2qqen_67\",\"gray60BackgroundColor\":\"_gray60BackgroundColor_2qqen_71\",\"gray80BackgroundColor\":\"_gray80BackgroundColor_2qqen_75\",\"gray100BackgroundColor\":\"_gray100BackgroundColor_2qqen_79\",\"gray200BackgroundColor\":\"_gray200BackgroundColor_2qqen_83\",\"gray300BackgroundColor\":\"_gray300BackgroundColor_2qqen_87\",\"gray700BackgroundColor\":\"_gray700BackgroundColor_2qqen_91\",\"gray800BackgroundColor\":\"_gray800BackgroundColor_2qqen_95\",\"gray900BackgroundColor\":\"_gray900BackgroundColor_2qqen_99\",\"orange100BackgroundColor\":\"_orange100BackgroundColor_2qqen_103\",\"orange200BackgroundColor\":\"_orange200BackgroundColor_2qqen_107\",\"orange300BackgroundColor\":\"_orange300BackgroundColor_2qqen_111\",\"orange700BackgroundColor\":\"_orange700BackgroundColor_2qqen_115\",\"orange800BackgroundColor\":\"_orange800BackgroundColor_2qqen_119\",\"orange900BackgroundColor\":\"_orange900BackgroundColor_2qqen_123\",\"primary100BackgroundColor\":\"_primary100BackgroundColor_2qqen_127\",\"primary200BackgroundColor\":\"_primary200BackgroundColor_2qqen_131\",\"primary300BackgroundColor\":\"_primary300BackgroundColor_2qqen_135\",\"primary700BackgroundColor\":\"_primary700BackgroundColor_2qqen_139\",\"primary800BackgroundColor\":\"_primary800BackgroundColor_2qqen_143\",\"primary900BackgroundColor\":\"_primary900BackgroundColor_2qqen_147\",\"success100BackgroundColor\":\"_success100BackgroundColor_2qqen_151\",\"success200BackgroundColor\":\"_success200BackgroundColor_2qqen_155\",\"success300BackgroundColor\":\"_success300BackgroundColor_2qqen_159\",\"success700BackgroundColor\":\"_success700BackgroundColor_2qqen_163\",\"success800BackgroundColor\":\"_success800BackgroundColor_2qqen_167\",\"success900BackgroundColor\":\"_success900BackgroundColor_2qqen_171\",\"purple100BackgroundColor\":\"_purple100BackgroundColor_2qqen_175\",\"purple200BackgroundColor\":\"_purple200BackgroundColor_2qqen_179\",\"purple300BackgroundColor\":\"_purple300BackgroundColor_2qqen_183\",\"purple700BackgroundColor\":\"_purple700BackgroundColor_2qqen_187\",\"purple800BackgroundColor\":\"_purple800BackgroundColor_2qqen_191\",\"purple900BackgroundColor\":\"_purple900BackgroundColor_2qqen_195\",\"whiteBackgroundColor\":\"_whiteBackgroundColor_2qqen_199\",\"yellow100BackgroundColor\":\"_yellow100BackgroundColor_2qqen_203\",\"yellow200BackgroundColor\":\"_yellow200BackgroundColor_2qqen_207\",\"yellow300BackgroundColor\":\"_yellow300BackgroundColor_2qqen_211\",\"yellow700BackgroundColor\":\"_yellow700BackgroundColor_2qqen_215\",\"yellow800BackgroundColor\":\"_yellow800BackgroundColor_2qqen_219\",\"yellow900BackgroundColor\":\"_yellow900BackgroundColor_2qqen_223\"}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["css-module:../colors/colors.module.css#css-module"],"names":[],"mappings":";AAA2F,IAAO,wBAAQ,EAAC,gBAAe,yBAAwB,uBAAsB,gCAA+B,gBAAe,0BAAyB,gBAAe,0BAAyB,mBAAkB,6BAA4B,mBAAkB,6BAA4B,cAAa,wBAAuB,wBAAuB,kCAAiC,iCAAgC,2CAA0C,iCAAgC,2CAA0C,iCAAgC,2CAA0C,iCAAgC,2CAA0C,iCAAgC,2CAA0C,iCAAgC,2CAA0C,yBAAwB,mCAAkC,yBAAwB,mCAAkC,yBAAwB,mCAAkC,yBAAwB,mCAAkC,0BAAyB,oCAAmC,0BAAyB,oCAAmC,0BAAyB,oCAAmC,0BAAyB,oCAAmC,0BAAyB,oCAAmC,0BAAyB,oCAAmC,4BAA2B,sCAAqC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,wBAAuB,mCAAkC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,sCAAqC","sourcesContent":["import \"/Users/christian/cambly/syntax/packages/syntax-core/src/colors/colors.module.css\"; export default {\"inheritColor\":\"_inheritColor_11l4y_2\",\"destructive700Color\":\"_destructive700Color_11l4y_6\",\"gray700Color\":\"_gray700Color_11l4y_10\",\"gray900Color\":\"_gray900Color_11l4y_14\",\"primary700Color\":\"_primary700Color_11l4y_18\",\"success700Color\":\"_success700Color_11l4y_22\",\"whiteColor\":\"_whiteColor_11l4y_26\",\"blackBackgroundColor\":\"_blackBackgroundColor_11l4y_31\",\"destructive100BackgroundColor\":\"_destructive100BackgroundColor_11l4y_35\",\"destructive200BackgroundColor\":\"_destructive200BackgroundColor_11l4y_39\",\"destructive300BackgroundColor\":\"_destructive300BackgroundColor_11l4y_43\",\"destructive700BackgroundColor\":\"_destructive700BackgroundColor_11l4y_47\",\"destructive800BackgroundColor\":\"_destructive800BackgroundColor_11l4y_51\",\"destructive900BackgroundColor\":\"_destructive900BackgroundColor_11l4y_55\",\"gray10BackgroundColor\":\"_gray10BackgroundColor_11l4y_59\",\"gray30BackgroundColor\":\"_gray30BackgroundColor_11l4y_63\",\"gray60BackgroundColor\":\"_gray60BackgroundColor_11l4y_67\",\"gray80BackgroundColor\":\"_gray80BackgroundColor_11l4y_71\",\"gray100BackgroundColor\":\"_gray100BackgroundColor_11l4y_75\",\"gray200BackgroundColor\":\"_gray200BackgroundColor_11l4y_79\",\"gray300BackgroundColor\":\"_gray300BackgroundColor_11l4y_83\",\"gray700BackgroundColor\":\"_gray700BackgroundColor_11l4y_87\",\"gray800BackgroundColor\":\"_gray800BackgroundColor_11l4y_91\",\"gray900BackgroundColor\":\"_gray900BackgroundColor_11l4y_95\",\"orange100BackgroundColor\":\"_orange100BackgroundColor_11l4y_99\",\"orange200BackgroundColor\":\"_orange200BackgroundColor_11l4y_103\",\"orange300BackgroundColor\":\"_orange300BackgroundColor_11l4y_107\",\"orange700BackgroundColor\":\"_orange700BackgroundColor_11l4y_111\",\"orange800BackgroundColor\":\"_orange800BackgroundColor_11l4y_115\",\"orange900BackgroundColor\":\"_orange900BackgroundColor_11l4y_119\",\"primary100BackgroundColor\":\"_primary100BackgroundColor_11l4y_123\",\"primary200BackgroundColor\":\"_primary200BackgroundColor_11l4y_127\",\"primary300BackgroundColor\":\"_primary300BackgroundColor_11l4y_131\",\"primary700BackgroundColor\":\"_primary700BackgroundColor_11l4y_135\",\"primary800BackgroundColor\":\"_primary800BackgroundColor_11l4y_139\",\"primary900BackgroundColor\":\"_primary900BackgroundColor_11l4y_143\",\"success100BackgroundColor\":\"_success100BackgroundColor_11l4y_147\",\"success200BackgroundColor\":\"_success200BackgroundColor_11l4y_151\",\"success300BackgroundColor\":\"_success300BackgroundColor_11l4y_155\",\"success700BackgroundColor\":\"_success700BackgroundColor_11l4y_159\",\"success800BackgroundColor\":\"_success800BackgroundColor_11l4y_163\",\"success900BackgroundColor\":\"_success900BackgroundColor_11l4y_167\",\"purple100BackgroundColor\":\"_purple100BackgroundColor_11l4y_171\",\"purple200BackgroundColor\":\"_purple200BackgroundColor_11l4y_175\",\"purple300BackgroundColor\":\"_purple300BackgroundColor_11l4y_179\",\"purple700BackgroundColor\":\"_purple700BackgroundColor_11l4y_183\",\"purple800BackgroundColor\":\"_purple800BackgroundColor_11l4y_187\",\"purple900BackgroundColor\":\"_purple900BackgroundColor_11l4y_191\",\"whiteBackgroundColor\":\"_whiteBackgroundColor_11l4y_195\",\"yellow100BackgroundColor\":\"_yellow100BackgroundColor_11l4y_199\",\"yellow200BackgroundColor\":\"_yellow200BackgroundColor_11l4y_203\",\"yellow300BackgroundColor\":\"_yellow300BackgroundColor_11l4y_207\",\"yellow700BackgroundColor\":\"_yellow700BackgroundColor_11l4y_211\",\"yellow800BackgroundColor\":\"_yellow800BackgroundColor_11l4y_215\",\"yellow900BackgroundColor\":\"_yellow900BackgroundColor_11l4y_219\"}"]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
colors_module_default
|
|
3
|
-
} from "./CUVXZOBA.mjs";
|
|
4
|
-
|
|
5
|
-
// src/colors/foregroundColor.ts
|
|
6
|
-
function foregroundColor(color) {
|
|
7
|
-
switch (color) {
|
|
8
|
-
case "secondary":
|
|
9
|
-
case "tertiary":
|
|
10
|
-
return colors_module_default.primary700Color;
|
|
11
|
-
case "destructive-secondary":
|
|
12
|
-
case "destructive-tertiary":
|
|
13
|
-
return colors_module_default.destructive700Color;
|
|
14
|
-
case "branded":
|
|
15
|
-
return colors_module_default.gray900Color;
|
|
16
|
-
default:
|
|
17
|
-
return colors_module_default.whiteColor;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export {
|
|
22
|
-
foregroundColor
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=F4HTASEF.mjs.map
|