@cambly/syntax-core 10.10.0 → 10.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Avatar/Avatar.cjs +6 -5
- package/dist/Avatar/Avatar.css +149 -110
- package/dist/Avatar/Avatar.css.map +1 -1
- package/dist/Avatar/Avatar.d.ts +7 -0
- package/dist/Avatar/Avatar.js +5 -4
- package/dist/AvatarGroup/AvatarGroup.cjs +5 -4
- package/dist/AvatarGroup/AvatarGroup.css +122 -104
- package/dist/AvatarGroup/AvatarGroup.css.map +1 -1
- package/dist/AvatarGroup/AvatarGroup.d.ts +7 -0
- package/dist/AvatarGroup/AvatarGroup.js +4 -3
- package/dist/Badge/Badge.cjs +6 -6
- package/dist/Badge/Badge.css +186 -156
- package/dist/Badge/Badge.css.map +1 -1
- package/dist/Badge/Badge.js +5 -5
- package/dist/Box/Box.cjs +4 -3
- package/dist/Box/Box.css +122 -104
- package/dist/Box/Box.css.map +1 -1
- package/dist/Box/Box.d.ts +10 -1
- package/dist/Box/Box.js +3 -2
- package/dist/Button/Button.cjs +6 -6
- package/dist/Button/Button.css +186 -156
- package/dist/Button/Button.css.map +1 -1
- package/dist/Button/Button.js +5 -5
- package/dist/ButtonGroup/ButtonGroup.cjs +3 -2
- package/dist/ButtonGroup/ButtonGroup.css +15 -6
- package/dist/ButtonGroup/ButtonGroup.css.map +1 -1
- package/dist/ButtonGroup/ButtonGroup.d.ts +6 -0
- package/dist/ButtonGroup/ButtonGroup.js +2 -1
- package/dist/Card/Card.cjs +5 -4
- package/dist/Card/Card.css +122 -104
- package/dist/Card/Card.css.map +1 -1
- package/dist/Card/Card.d.ts +5 -7
- package/dist/Card/Card.js +4 -3
- package/dist/Checkbox/Checkbox.cjs +4 -4
- package/dist/Checkbox/Checkbox.css +86 -67
- package/dist/Checkbox/Checkbox.css.map +1 -1
- package/dist/Checkbox/Checkbox.js +3 -3
- package/dist/Chip/Chip.cjs +6 -6
- package/dist/Chip/Chip.css +212 -168
- package/dist/Chip/Chip.css.map +1 -1
- package/dist/Chip/Chip.d.ts +4 -0
- package/dist/Chip/Chip.js +5 -5
- package/dist/Dialog/Dialog.cjs +4 -4
- package/dist/Dialog/Dialog.css +122 -104
- package/dist/Dialog/Dialog.css.map +1 -1
- package/dist/Dialog/Dialog.js +3 -3
- package/dist/Dialog/ModalDialog.cjs +8 -8
- package/dist/Dialog/ModalDialog.css +122 -104
- package/dist/Dialog/ModalDialog.css.map +1 -1
- package/dist/Dialog/ModalDialog.js +7 -7
- package/dist/Divider/Divider.cjs +5 -2
- package/dist/Divider/Divider.css +384 -2
- package/dist/Divider/Divider.css.map +1 -1
- package/dist/Divider/Divider.js +4 -1
- package/dist/Heading/Heading.cjs +4 -4
- package/dist/Heading/Heading.css +64 -52
- package/dist/Heading/Heading.css.map +1 -1
- package/dist/Heading/Heading.js +3 -3
- package/dist/IconButton/IconButton.cjs +3 -3
- package/dist/IconButton/IconButton.js +2 -2
- package/dist/LinkButton/LinkButton.cjs +4 -4
- package/dist/LinkButton/LinkButton.css +64 -52
- package/dist/LinkButton/LinkButton.css.map +1 -1
- package/dist/LinkButton/LinkButton.js +3 -3
- package/dist/Modal/Layer.cjs +5 -4
- package/dist/Modal/Layer.css +122 -104
- package/dist/Modal/Layer.css.map +1 -1
- package/dist/Modal/Layer.js +4 -3
- package/dist/Modal/Modal.cjs +8 -8
- package/dist/Modal/Modal.css +208 -162
- package/dist/Modal/Modal.css.map +1 -1
- package/dist/Modal/Modal.js +7 -7
- package/dist/Popover/Popover.cjs +9 -9
- package/dist/Popover/Popover.css +122 -104
- package/dist/Popover/Popover.css.map +1 -1
- package/dist/Popover/Popover.js +8 -8
- package/dist/RadioButton/RadioButton.cjs +9 -5
- package/dist/RadioButton/RadioButton.css +1698 -52
- package/dist/RadioButton/RadioButton.css.map +1 -1
- package/dist/RadioButton/RadioButton.js +7 -3
- package/dist/RichSelect/RichSelectBox.cjs +15 -15
- package/dist/RichSelect/RichSelectBox.css +231 -176
- package/dist/RichSelect/RichSelectBox.css.map +1 -1
- package/dist/RichSelect/RichSelectBox.js +14 -14
- package/dist/RichSelect/RichSelectChip.cjs +7 -7
- package/dist/RichSelect/RichSelectChip.css +212 -168
- package/dist/RichSelect/RichSelectChip.css.map +1 -1
- package/dist/RichSelect/RichSelectChip.js +6 -6
- package/dist/RichSelect/RichSelectList.cjs +22 -22
- package/dist/RichSelect/RichSelectList.css +271 -194
- package/dist/RichSelect/RichSelectList.css.map +1 -1
- package/dist/RichSelect/RichSelectList.js +21 -21
- package/dist/RichSelect/RichSelectRadioButton.cjs +10 -6
- package/dist/RichSelect/RichSelectRadioButton.css +1698 -52
- package/dist/RichSelect/RichSelectRadioButton.css.map +1 -1
- package/dist/RichSelect/RichSelectRadioButton.js +8 -4
- package/dist/RichSelect/RichSelectSection.cjs +5 -5
- package/dist/RichSelect/RichSelectSection.css +172 -151
- package/dist/RichSelect/RichSelectSection.css.map +1 -1
- package/dist/RichSelect/RichSelectSection.js +4 -4
- package/dist/SelectList/SelectList.cjs +10 -6
- package/dist/SelectList/SelectList.css +1808 -140
- package/dist/SelectList/SelectList.css.map +1 -1
- package/dist/SelectList/SelectList.js +8 -4
- package/dist/TapArea/TapArea.cjs +3 -3
- package/dist/TapArea/TapArea.css +14 -5
- package/dist/TapArea/TapArea.css.map +1 -1
- package/dist/TapArea/TapArea.js +2 -2
- package/dist/TextArea/TextArea.cjs +6 -6
- package/dist/TextArea/TextArea.css +249 -173
- package/dist/TextArea/TextArea.css.map +1 -1
- package/dist/TextArea/TextArea.d.ts +2 -0
- package/dist/TextArea/TextArea.js +5 -5
- package/dist/TextField/TextField.cjs +6 -6
- package/dist/TextField/TextField.css +236 -169
- package/dist/TextField/TextField.css.map +1 -1
- package/dist/TextField/TextField.d.ts +5 -0
- package/dist/TextField/TextField.js +5 -5
- package/dist/ThemeProvider/ThemeProvider.cjs +2 -2
- package/dist/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/Tooltip/Tooltip.cjs +6 -6
- package/dist/Tooltip/Tooltip.css +186 -156
- package/dist/Tooltip/Tooltip.css.map +1 -1
- package/dist/Tooltip/Tooltip.js +5 -5
- package/dist/Typography/Typography.cjs +3 -3
- package/dist/Typography/Typography.css +64 -52
- package/dist/Typography/Typography.css.map +1 -1
- package/dist/Typography/Typography.d.ts +3 -1
- package/dist/Typography/Typography.js +2 -2
- package/dist/__chunks/{WJRIAS4W.cjs → 27K33DEM.cjs} +17 -4
- package/dist/__chunks/27K33DEM.cjs.map +1 -0
- package/dist/__chunks/{L7PPCZM5.js → 2A52YKFW.js} +3 -4
- package/dist/__chunks/2A52YKFW.js.map +1 -0
- package/dist/__chunks/{IYVE2HA6.js → 2ZUWZKPV.js} +21 -10
- package/dist/__chunks/2ZUWZKPV.js.map +1 -0
- package/dist/__chunks/{TXXXNKKO.js → 3Y55NZKO.js} +39 -11
- package/dist/__chunks/3Y55NZKO.js.map +1 -0
- package/dist/__chunks/{P67XTYNK.cjs → 4JXNDR7B.cjs} +7 -7
- package/dist/__chunks/4SUKTRWG.cjs +109 -0
- package/dist/__chunks/4SUKTRWG.cjs.map +1 -0
- package/dist/__chunks/{A4QZYP2J.js → 53I23AHM.js} +3 -3
- package/dist/__chunks/{QBGKDCTG.js → 5MJ6NOUC.js} +2 -2
- package/dist/__chunks/{COV3XKSJ.cjs → 6W5WRS53.cjs} +5 -9
- package/dist/__chunks/6W5WRS53.cjs.map +1 -0
- package/dist/__chunks/{ABAYJGAF.js → 7CXOSI4M.js} +28 -12
- package/dist/__chunks/7CXOSI4M.js.map +1 -0
- package/dist/__chunks/{H44LFJ2L.cjs → 7P7YX4X2.cjs} +3 -3
- package/dist/__chunks/{FO34OHGH.cjs → 7TGECM7W.cjs} +10 -10
- package/dist/__chunks/{FO34OHGH.cjs.map → 7TGECM7W.cjs.map} +1 -1
- package/dist/__chunks/{KCVBUNSJ.js → A6FGCIZM.js} +37 -17
- package/dist/__chunks/A6FGCIZM.js.map +1 -0
- package/dist/__chunks/{OULAADL7.js → A7AAGKC2.js} +3 -3
- package/dist/__chunks/ARCUBQR4.js +122 -0
- package/dist/__chunks/ARCUBQR4.js.map +1 -0
- package/dist/__chunks/AVREYFSM.js +9 -0
- package/dist/__chunks/AVREYFSM.js.map +1 -0
- package/dist/__chunks/{NYOKOJQB.cjs → BXUTWPRU.cjs} +9 -9
- package/dist/__chunks/{OFOTR7RY.js → CTBXXNZP.js} +2 -2
- package/dist/__chunks/CXD34CNP.cjs +147 -0
- package/dist/__chunks/CXD34CNP.cjs.map +1 -0
- package/dist/__chunks/D63KNAL7.js +63 -0
- package/dist/__chunks/D63KNAL7.js.map +1 -0
- package/dist/__chunks/{ZX7LO5H4.cjs → DSMWIJEY.cjs} +16 -16
- package/dist/__chunks/{6QHOCICX.cjs → EMWRSUWK.cjs} +39 -19
- package/dist/__chunks/EMWRSUWK.cjs.map +1 -0
- package/dist/__chunks/{D7NNCQKN.cjs → FBF2R2FE.cjs} +26 -26
- package/dist/__chunks/FBF2R2FE.cjs.map +1 -0
- package/dist/__chunks/FWQWL53Q.js +29 -0
- package/dist/__chunks/FWQWL53Q.js.map +1 -0
- package/dist/__chunks/{RN3PLPAG.js → FY4WHNNR.js} +5 -9
- package/dist/__chunks/FY4WHNNR.js.map +1 -0
- package/dist/__chunks/{JQGCEUQE.cjs → GBZPZQPJ.cjs} +29 -13
- package/dist/__chunks/GBZPZQPJ.cjs.map +1 -0
- package/dist/__chunks/{6DRTKEXK.cjs → GPW7ICYP.cjs} +40 -12
- package/dist/__chunks/GPW7ICYP.cjs.map +1 -0
- package/dist/__chunks/{WYWNQJ3B.cjs → GRYQKIWR.cjs} +23 -12
- package/dist/__chunks/GRYQKIWR.cjs.map +1 -0
- package/dist/__chunks/HMV2F4PF.js +147 -0
- package/dist/__chunks/HMV2F4PF.js.map +1 -0
- package/dist/__chunks/IL22HCBF.cjs +9 -0
- package/dist/__chunks/IL22HCBF.cjs.map +1 -0
- package/dist/__chunks/{6WW5YWOS.js → JGXQJLCD.js} +3 -3
- package/dist/__chunks/JZ2Q7R2R.js +43 -0
- package/dist/__chunks/JZ2Q7R2R.js.map +1 -0
- package/dist/__chunks/KY6FT2UM.js +109 -0
- package/dist/__chunks/KY6FT2UM.js.map +1 -0
- package/dist/__chunks/{GHQXAXV3.js → L3CUWPPD.js} +2 -2
- package/dist/__chunks/{AGHYI7QR.cjs → LISQ2P5F.cjs} +1 -1
- package/dist/__chunks/{AGHYI7QR.cjs.map → LISQ2P5F.cjs.map} +1 -1
- package/dist/__chunks/{44AWCXIE.cjs → LLI3KZAR.cjs} +9 -4
- package/dist/__chunks/LLI3KZAR.cjs.map +1 -0
- package/dist/__chunks/{4DDBT2NH.js → N3BJ3EYD.js} +2 -2
- package/dist/__chunks/{IYA2TMMR.cjs → NFDOY7GE.cjs} +7 -7
- package/dist/__chunks/{UPLN7GFR.js → OFK6S6W2.js} +12 -12
- package/dist/__chunks/{UPLN7GFR.js.map → OFK6S6W2.js.map} +1 -1
- package/dist/__chunks/P3JJQI6N.cjs +43 -0
- package/dist/__chunks/P3JJQI6N.cjs.map +1 -0
- package/dist/__chunks/POGPHQGU.cjs +63 -0
- package/dist/__chunks/POGPHQGU.cjs.map +1 -0
- package/dist/__chunks/{J6IV47MV.js → PRE7WZF5.js} +5 -5
- package/dist/__chunks/{HNDUANRX.js → QQSNF45I.js} +2 -2
- package/dist/__chunks/{UZODIMNK.js → REUQRJFK.js} +5 -5
- package/dist/__chunks/{UZODIMNK.js.map → REUQRJFK.js.map} +1 -1
- package/dist/__chunks/S5QHTHST.cjs +9 -0
- package/dist/__chunks/S5QHTHST.cjs.map +1 -0
- package/dist/__chunks/{T6GJCK6W.cjs → SFJT2TM2.cjs} +5 -5
- package/dist/__chunks/SHHN3SRR.js +9 -0
- package/dist/__chunks/SHHN3SRR.js.map +1 -0
- package/dist/__chunks/TN6NRPAZ.js +144 -0
- package/dist/__chunks/TN6NRPAZ.js.map +1 -0
- package/dist/__chunks/{6SALMOFU.cjs → TYEKVH5D.cjs} +18 -18
- package/dist/__chunks/{Z7EXVTCJ.js → UEX6TGYL.js} +17 -6
- package/dist/__chunks/UEX6TGYL.js.map +1 -0
- package/dist/__chunks/{DKBI6MRY.cjs → UKLQ64N7.cjs} +3 -3
- package/dist/__chunks/{DUQSTRXU.js → UTSVZIEK.js} +8 -3
- package/dist/__chunks/UTSVZIEK.js.map +1 -0
- package/dist/__chunks/{XE3INH2F.cjs → UYZYKU2W.cjs} +3 -3
- package/dist/__chunks/VDAYXRSA.cjs +29 -0
- package/dist/__chunks/VDAYXRSA.cjs.map +1 -0
- package/dist/__chunks/{T5ET7RIA.js → VE7WIAJC.js} +1 -1
- package/dist/__chunks/{T5ET7RIA.js.map → VE7WIAJC.js.map} +1 -1
- package/dist/__chunks/{YT3NEG6Z.cjs → VJ2AFMKO.cjs} +3 -3
- package/dist/__chunks/{WEIWUACW.cjs → VJKUE3B4.cjs} +3 -3
- package/dist/__chunks/{ULMCQ7EA.cjs → VL5ONCQD.cjs} +10 -10
- package/dist/__chunks/{D3JSJW4Q.cjs → W7GPAEHP.cjs} +11 -12
- package/dist/__chunks/W7GPAEHP.cjs.map +1 -0
- package/dist/__chunks/{X6HZ6DM2.cjs → WGRHH5TF.cjs} +4 -5
- package/dist/__chunks/WGRHH5TF.cjs.map +1 -0
- package/dist/__chunks/{7P2G663D.js → XF2RTSNO.js} +8 -8
- package/dist/__chunks/{FFPBVVGU.cjs → XYAY2TL4.cjs} +19 -8
- package/dist/__chunks/XYAY2TL4.cjs.map +1 -0
- package/dist/__chunks/{MAPDSZR4.js → YGKZCJF5.js} +17 -4
- package/dist/__chunks/YGKZCJF5.js.map +1 -0
- package/dist/__chunks/{VBRCBEDC.js → YGM4Z46I.js} +4 -4
- package/dist/__chunks/YLJDLIHH.cjs +144 -0
- package/dist/__chunks/YLJDLIHH.cjs.map +1 -0
- package/dist/__chunks/{HK7MBW32.js → Z2MLFONW.js} +10 -11
- package/dist/__chunks/Z2MLFONW.js.map +1 -0
- package/dist/__chunks/ZFX4HW2P.cjs +122 -0
- package/dist/__chunks/ZFX4HW2P.cjs.map +1 -0
- package/dist/__chunks/{2HKT4ZZ3.js → ZLBPIQ2I.js} +4 -4
- package/dist/index.cjs +35 -35
- package/dist/index.css +405 -238
- package/dist/index.css.map +1 -1
- package/dist/index.js +34 -34
- package/package.json +4 -4
- package/dist/__chunks/23RTNWVN.js +0 -111
- package/dist/__chunks/23RTNWVN.js.map +0 -1
- package/dist/__chunks/44AWCXIE.cjs.map +0 -1
- package/dist/__chunks/6B2PWEM7.cjs +0 -54
- package/dist/__chunks/6B2PWEM7.cjs.map +0 -1
- package/dist/__chunks/6DRTKEXK.cjs.map +0 -1
- package/dist/__chunks/6IS4356O.cjs +0 -92
- package/dist/__chunks/6IS4356O.cjs.map +0 -1
- package/dist/__chunks/6QHOCICX.cjs.map +0 -1
- package/dist/__chunks/ABAYJGAF.js.map +0 -1
- package/dist/__chunks/COV3XKSJ.cjs.map +0 -1
- package/dist/__chunks/D3JSJW4Q.cjs.map +0 -1
- package/dist/__chunks/D7NNCQKN.cjs.map +0 -1
- package/dist/__chunks/DJHFPKBX.cjs +0 -16
- package/dist/__chunks/DJHFPKBX.cjs.map +0 -1
- package/dist/__chunks/DUQSTRXU.js.map +0 -1
- package/dist/__chunks/EQIP4BAD.cjs +0 -98
- package/dist/__chunks/EQIP4BAD.cjs.map +0 -1
- package/dist/__chunks/FFPBVVGU.cjs.map +0 -1
- package/dist/__chunks/HK7MBW32.js.map +0 -1
- package/dist/__chunks/IDI4ITMK.js +0 -92
- package/dist/__chunks/IDI4ITMK.js.map +0 -1
- package/dist/__chunks/IYVE2HA6.js.map +0 -1
- package/dist/__chunks/JDLL6DAC.cjs +0 -111
- package/dist/__chunks/JDLL6DAC.cjs.map +0 -1
- package/dist/__chunks/JQGCEUQE.cjs.map +0 -1
- package/dist/__chunks/KCVBUNSJ.js.map +0 -1
- package/dist/__chunks/KUXGXAAN.js +0 -120
- package/dist/__chunks/KUXGXAAN.js.map +0 -1
- package/dist/__chunks/L7PPCZM5.js.map +0 -1
- package/dist/__chunks/MAPDSZR4.js.map +0 -1
- package/dist/__chunks/MTLPG2DC.js +0 -54
- package/dist/__chunks/MTLPG2DC.js.map +0 -1
- package/dist/__chunks/O3CEUWCC.js +0 -9
- package/dist/__chunks/O3CEUWCC.js.map +0 -1
- package/dist/__chunks/OF66QEJL.js +0 -30
- package/dist/__chunks/OF66QEJL.js.map +0 -1
- package/dist/__chunks/PTQQBZPQ.cjs +0 -120
- package/dist/__chunks/PTQQBZPQ.cjs.map +0 -1
- package/dist/__chunks/RN3PLPAG.js.map +0 -1
- package/dist/__chunks/SBCGYV6N.cjs +0 -9
- package/dist/__chunks/SBCGYV6N.cjs.map +0 -1
- package/dist/__chunks/TXXXNKKO.js.map +0 -1
- package/dist/__chunks/V6DB6ZQU.js +0 -98
- package/dist/__chunks/V6DB6ZQU.js.map +0 -1
- package/dist/__chunks/VF7PQHZP.cjs +0 -9
- package/dist/__chunks/VF7PQHZP.cjs.map +0 -1
- package/dist/__chunks/WJRIAS4W.cjs.map +0 -1
- package/dist/__chunks/WYWNQJ3B.cjs.map +0 -1
- package/dist/__chunks/X5UGK633.js +0 -9
- package/dist/__chunks/X5UGK633.js.map +0 -1
- package/dist/__chunks/X6HZ6DM2.cjs.map +0 -1
- package/dist/__chunks/XEN6XJKU.cjs +0 -30
- package/dist/__chunks/XEN6XJKU.cjs.map +0 -1
- package/dist/__chunks/Z4ZJZXZV.js +0 -16
- package/dist/__chunks/Z4ZJZXZV.js.map +0 -1
- package/dist/__chunks/Z7EXVTCJ.js.map +0 -1
- /package/dist/__chunks/{P67XTYNK.cjs.map → 4JXNDR7B.cjs.map} +0 -0
- /package/dist/__chunks/{A4QZYP2J.js.map → 53I23AHM.js.map} +0 -0
- /package/dist/__chunks/{QBGKDCTG.js.map → 5MJ6NOUC.js.map} +0 -0
- /package/dist/__chunks/{H44LFJ2L.cjs.map → 7P7YX4X2.cjs.map} +0 -0
- /package/dist/__chunks/{OULAADL7.js.map → A7AAGKC2.js.map} +0 -0
- /package/dist/__chunks/{NYOKOJQB.cjs.map → BXUTWPRU.cjs.map} +0 -0
- /package/dist/__chunks/{OFOTR7RY.js.map → CTBXXNZP.js.map} +0 -0
- /package/dist/__chunks/{ZX7LO5H4.cjs.map → DSMWIJEY.cjs.map} +0 -0
- /package/dist/__chunks/{6WW5YWOS.js.map → JGXQJLCD.js.map} +0 -0
- /package/dist/__chunks/{GHQXAXV3.js.map → L3CUWPPD.js.map} +0 -0
- /package/dist/__chunks/{4DDBT2NH.js.map → N3BJ3EYD.js.map} +0 -0
- /package/dist/__chunks/{IYA2TMMR.cjs.map → NFDOY7GE.cjs.map} +0 -0
- /package/dist/__chunks/{J6IV47MV.js.map → PRE7WZF5.js.map} +0 -0
- /package/dist/__chunks/{HNDUANRX.js.map → QQSNF45I.js.map} +0 -0
- /package/dist/__chunks/{T6GJCK6W.cjs.map → SFJT2TM2.cjs.map} +0 -0
- /package/dist/__chunks/{6SALMOFU.cjs.map → TYEKVH5D.cjs.map} +0 -0
- /package/dist/__chunks/{DKBI6MRY.cjs.map → UKLQ64N7.cjs.map} +0 -0
- /package/dist/__chunks/{XE3INH2F.cjs.map → UYZYKU2W.cjs.map} +0 -0
- /package/dist/__chunks/{YT3NEG6Z.cjs.map → VJ2AFMKO.cjs.map} +0 -0
- /package/dist/__chunks/{WEIWUACW.cjs.map → VJKUE3B4.cjs.map} +0 -0
- /package/dist/__chunks/{ULMCQ7EA.cjs.map → VL5ONCQD.cjs.map} +0 -0
- /package/dist/__chunks/{7P2G663D.js.map → XF2RTSNO.js.map} +0 -0
- /package/dist/__chunks/{VBRCBEDC.js.map → YGM4Z46I.js.map} +0 -0
- /package/dist/__chunks/{2HKT4ZZ3.js.map → ZLBPIQ2I.js.map} +0 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import {
|
|
3
|
+
Heading_default
|
|
4
|
+
} from "./UEX6TGYL.js";
|
|
5
|
+
import {
|
|
6
|
+
StopScroll
|
|
7
|
+
} from "./QQT35OLE.js";
|
|
8
|
+
import {
|
|
9
|
+
Layer
|
|
10
|
+
} from "./N3BJ3EYD.js";
|
|
11
|
+
import {
|
|
12
|
+
FocusTrap
|
|
13
|
+
} from "./KODEDJGB.js";
|
|
14
|
+
import {
|
|
15
|
+
Box_default
|
|
16
|
+
} from "./YGKZCJF5.js";
|
|
17
|
+
import {
|
|
18
|
+
useTheme
|
|
19
|
+
} from "./FY4WHNNR.js";
|
|
20
|
+
|
|
21
|
+
// src/Modal/Modal.tsx
|
|
22
|
+
import classnames from "classnames";
|
|
23
|
+
|
|
24
|
+
// css-module:./Modal.module.css#css-module
|
|
25
|
+
var Modal_module_default = { "backdrop": "_backdrop_tqzb0_1", "backdropClassic": "_backdropClassic_tqzb0_11", "backdropCambio": "_backdropCambio_tqzb0_15", "closeButton": "_closeButton_tqzb0_19", "closeButtonClassic": "_closeButtonClassic_tqzb0_34", "closeButtonCambio": "_closeButtonCambio_tqzb0_41", "closeButtonWithImage": "_closeButtonWithImage_tqzb0_53" };
|
|
26
|
+
|
|
27
|
+
// src/Modal/Modal.tsx
|
|
28
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
29
|
+
function XIcon({ color = "#000" }) {
|
|
30
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", fill: color, children: /* @__PURE__ */ jsx(
|
|
31
|
+
"path",
|
|
32
|
+
{
|
|
33
|
+
fill: "inherit",
|
|
34
|
+
d: "M11.25.758a.83.83 0 0 0-1.175 0L6 4.825 1.925.75A.83.83 0 1 0 .75 1.925L4.825 6 .75 10.075a.83.83 0 1 0 1.175 1.175L6 7.175l4.075 4.075a.83.83 0 1 0 1.175-1.175L7.175 6l4.075-4.075a.835.835 0 0 0 0-1.167Z"
|
|
35
|
+
}
|
|
36
|
+
) });
|
|
37
|
+
}
|
|
38
|
+
var sizeWidth = {
|
|
39
|
+
sm: 400,
|
|
40
|
+
lg: 600
|
|
41
|
+
};
|
|
42
|
+
function Modal({
|
|
43
|
+
header,
|
|
44
|
+
children,
|
|
45
|
+
image,
|
|
46
|
+
onDismiss,
|
|
47
|
+
footer,
|
|
48
|
+
accessibilityCloseLabel = "close modal",
|
|
49
|
+
size = "sm",
|
|
50
|
+
zIndex = 1,
|
|
51
|
+
"data-testid": dataTestId
|
|
52
|
+
}) {
|
|
53
|
+
const { themeName } = useTheme();
|
|
54
|
+
return /* @__PURE__ */ jsx(Layer, { zIndex, children: /* @__PURE__ */ jsx(StopScroll, { children: /* @__PURE__ */ jsx(FocusTrap, { children: /* @__PURE__ */ jsx(
|
|
55
|
+
"div",
|
|
56
|
+
{
|
|
57
|
+
className: classnames(
|
|
58
|
+
Modal_module_default.backdrop,
|
|
59
|
+
themeName === "classic" ? Modal_module_default.backdropClassic : Modal_module_default.backdropCambio
|
|
60
|
+
),
|
|
61
|
+
role: "presentation",
|
|
62
|
+
onClick: (e) => e.target === e.currentTarget && onDismiss(),
|
|
63
|
+
onKeyDown: (e) => e.key === "Escape" && onDismiss(),
|
|
64
|
+
children: /* @__PURE__ */ jsxs(
|
|
65
|
+
Box_default,
|
|
66
|
+
{
|
|
67
|
+
"data-testid": dataTestId,
|
|
68
|
+
backgroundColor: "white",
|
|
69
|
+
rounding: "xl",
|
|
70
|
+
display: "flex",
|
|
71
|
+
direction: "column",
|
|
72
|
+
minWidth: 240,
|
|
73
|
+
maxWidth: sizeWidth[size],
|
|
74
|
+
width: "100%",
|
|
75
|
+
dangerouslySetInlineStyle: { __style: { overflow: "hidden" } },
|
|
76
|
+
children: [
|
|
77
|
+
/* @__PURE__ */ jsx(Box_default, { position: "relative", children: /* @__PURE__ */ jsx(
|
|
78
|
+
"button",
|
|
79
|
+
{
|
|
80
|
+
"aria-label": accessibilityCloseLabel,
|
|
81
|
+
type: "button",
|
|
82
|
+
className: classnames(
|
|
83
|
+
Modal_module_default.closeButton,
|
|
84
|
+
themeName === "classic" ? Modal_module_default.closeButtonClassic : Modal_module_default.closeButtonCambio,
|
|
85
|
+
{
|
|
86
|
+
[Modal_module_default.closeButtonWithImage]: !!image && themeName === "classic"
|
|
87
|
+
}
|
|
88
|
+
),
|
|
89
|
+
onClick: onDismiss,
|
|
90
|
+
children: /* @__PURE__ */ jsx(
|
|
91
|
+
XIcon,
|
|
92
|
+
{
|
|
93
|
+
color: image && themeName === "classic" ? "#fff" : "#000"
|
|
94
|
+
}
|
|
95
|
+
)
|
|
96
|
+
}
|
|
97
|
+
) }),
|
|
98
|
+
image && /* @__PURE__ */ jsx(Box_default, { maxHeight: 200, children: image }),
|
|
99
|
+
/* @__PURE__ */ jsxs(
|
|
100
|
+
Box_default,
|
|
101
|
+
{
|
|
102
|
+
display: "flex",
|
|
103
|
+
gap: 3,
|
|
104
|
+
direction: "column",
|
|
105
|
+
padding: themeName === "classic" ? 9 : 3,
|
|
106
|
+
children: [
|
|
107
|
+
/* @__PURE__ */ jsx(
|
|
108
|
+
Heading_default,
|
|
109
|
+
{
|
|
110
|
+
as: "h1",
|
|
111
|
+
size: themeName === "classic" ? 500 : 400,
|
|
112
|
+
fontStyle: themeName === "classic" ? "sans-serif" : "serif",
|
|
113
|
+
children: header
|
|
114
|
+
}
|
|
115
|
+
),
|
|
116
|
+
/* @__PURE__ */ jsx(Box_default, { marginBottom: themeName === "classic" ? 4 : 0, children }),
|
|
117
|
+
footer && /* @__PURE__ */ jsx(
|
|
118
|
+
Box_default,
|
|
119
|
+
{
|
|
120
|
+
display: "flex",
|
|
121
|
+
direction: "column",
|
|
122
|
+
gap: 3,
|
|
123
|
+
smDirection: "row",
|
|
124
|
+
smJustifyContent: "end",
|
|
125
|
+
lgDirection: "row",
|
|
126
|
+
lgJustifyContent: "end",
|
|
127
|
+
children: footer
|
|
128
|
+
}
|
|
129
|
+
)
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
)
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
)
|
|
136
|
+
}
|
|
137
|
+
) }) }) });
|
|
138
|
+
}
|
|
139
|
+
Modal.displayName = "Modal";
|
|
140
|
+
|
|
141
|
+
export {
|
|
142
|
+
Modal
|
|
143
|
+
};
|
|
144
|
+
//# sourceMappingURL=TN6NRPAZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Modal/Modal.tsx","css-module:./Modal.module.css#css-module"],"sourcesContent":["import { type ReactElement } from \"react\";\nimport classnames from \"classnames\";\n\nimport Heading from \"../Heading/Heading\";\nimport Box from \"../Box/Box\";\n\nimport FocusTrap from \"./FocusTrap\";\nimport StopScroll from \"./StopScroll\";\nimport Layer from \"./Layer\";\nimport styles from \"./Modal.module.css\";\nimport { useTheme } from \"../ThemeProvider/ThemeProvider\";\n\nfunction XIcon({ color = \"#000\" }: { color?: string }) {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" fill={color}>\n <path\n fill=\"inherit\"\n d=\"M11.25.758a.83.83 0 0 0-1.175 0L6 4.825 1.925.75A.83.83 0 1 0 .75 1.925L4.825 6 .75 10.075a.83.83 0 1 0 1.175 1.175L6 7.175l4.075 4.075a.83.83 0 1 0 1.175-1.175L7.175 6l4.075-4.075a.835.835 0 0 0 0-1.167Z\"\n />\n </svg>\n );\n}\n\n// Note: Only sm + lg size currently. design thinks there should only be two sizes.\n// If there IS a md size at some point, we should use the \"size\" const.\nconst sizeWidth = {\n sm: 400,\n lg: 600,\n} as const;\n\n/**\n * [Modal](https://cambly-syntax.vercel.app/?path=/docs/components-modal--docs) is a dialog that appears on top of the main content and locks user interaction within the modal.\n *\n ```\n const [showModal, setShowModal] = useState(false)\n\n return (\n <>\n {showModal && <Modal\n header=\"header text\"\n onDismiss={() => setShowModal(false)}\n footer={\n <>\n <Button\n text=\"Cancel\"\n color=\"secondary\"\n onClick={() => {}}\n />\n <Button\n text=\"Confirm\"\n onClick={() => {}}\n />\n </>\n }\n >\n <Typography>\n Body text goes here!\n </Typography>\n </Modal> }\n </>\n )\n ```\n */\nexport default function Modal({\n header,\n children,\n image,\n onDismiss,\n footer,\n accessibilityCloseLabel = \"close modal\",\n size = \"sm\",\n zIndex = 1,\n \"data-testid\": dataTestId,\n}: {\n /**\n * The modal's main content. Should typically take in `Typography`'d text.\n */\n children: JSX.Element;\n /**\n * The header inside a modal as a string.\n */\n header: string;\n /**\n * What the X button (or clicking out of the modal area) does.\n * Typically used for closing the Modal\n */\n onDismiss: () => void;\n /**\n * The optional image rendered above the Modal.\n * Image size should be 400w x 200h.\n * If images aren't that sized, should ask design to give another image.\n */\n image?: JSX.Element;\n /**\n * The footer for the bottom area of the Modal. Typically used for rendering buttons.\n * * Use Syntax `Button` and pass it into footer.\n * * If one button, just pass it in. If two, wrap in a React fragment (`<> </>`)\n * * If two(2) buttons, put primary button _second_.\n *\n <>\n <Button\n text=\"Cancel\"\n color=\"secondary\"\n onClick={() => {}}\n />\n <Button\n text=\"Confirm\"\n onClick={() => {}}\n />\n </>\n */\n footer?: JSX.Element;\n /**\n * The accessibilty text on the close button.\n * (Sets the aria-label of the button)\n *\n *\n * @defaultValue close modal\n */\n accessibilityCloseLabel?: string;\n /**\n * The size of the card\n *\n * * `sm`: 400px\n * * `lg`: 600px\n *\n *\n * @defaultValue sm\n */\n size?: keyof typeof sizeWidth;\n /**\n * The z-index for the modal.\n * Typically used if there are other things on the page with higher z-index and you need this overlayed on top.\n *\n * @defaultValue 0\n */\n zIndex?: number;\n /**\n * Test id for the modal\n */\n \"data-testid\"?: string;\n}): ReactElement {\n const { themeName } = useTheme();\n return (\n <Layer zIndex={zIndex}>\n <StopScroll>\n <FocusTrap>\n <div\n className={classnames(\n styles.backdrop,\n themeName === \"classic\"\n ? styles.backdropClassic\n : styles.backdropCambio,\n )}\n role=\"presentation\"\n onClick={(e) => e.target === e.currentTarget && onDismiss()}\n onKeyDown={(e) => e.key === \"Escape\" && onDismiss()}\n >\n <Box\n data-testid={dataTestId}\n backgroundColor=\"white\"\n rounding=\"xl\"\n display=\"flex\"\n direction=\"column\"\n minWidth={240}\n maxWidth={sizeWidth[size]}\n width=\"100%\"\n dangerouslySetInlineStyle={{ __style: { overflow: \"hidden\" } }}\n >\n <Box position=\"relative\">\n <button\n aria-label={accessibilityCloseLabel}\n type=\"button\"\n className={classnames(\n styles.closeButton,\n themeName === \"classic\"\n ? styles.closeButtonClassic\n : styles.closeButtonCambio,\n {\n [styles.closeButtonWithImage]:\n !!image && themeName === \"classic\",\n },\n )}\n onClick={onDismiss}\n >\n <XIcon\n color={image && themeName === \"classic\" ? \"#fff\" : \"#000\"}\n />\n </button>\n </Box>\n {image && <Box maxHeight={200}>{image}</Box>}\n <Box\n display=\"flex\"\n gap={3}\n direction=\"column\"\n padding={themeName === \"classic\" ? 9 : 3}\n >\n <Heading\n as=\"h1\"\n size={themeName === \"classic\" ? 500 : 400}\n fontStyle={themeName === \"classic\" ? \"sans-serif\" : \"serif\"}\n >\n {header}\n </Heading>\n <Box marginBottom={themeName === \"classic\" ? 4 : 0}>\n {children}\n </Box>\n {footer && (\n <Box\n display=\"flex\"\n direction=\"column\"\n gap={3}\n smDirection=\"row\"\n smJustifyContent=\"end\"\n lgDirection=\"row\"\n lgJustifyContent=\"end\"\n >\n {footer}\n </Box>\n )}\n </Box>\n </Box>\n </div>\n </FocusTrap>\n </StopScroll>\n </Layer>\n );\n}\n\nModal.displayName = \"Modal\";\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Modal/Modal.module.css\"; export default {\"backdrop\":\"_backdrop_tqzb0_1\",\"backdropClassic\":\"_backdropClassic_tqzb0_11\",\"backdropCambio\":\"_backdropCambio_tqzb0_15\",\"closeButton\":\"_closeButton_tqzb0_19\",\"closeButtonClassic\":\"_closeButtonClassic_tqzb0_34\",\"closeButtonCambio\":\"_closeButtonCambio_tqzb0_41\",\"closeButtonWithImage\":\"_closeButtonWithImage_tqzb0_53\"}"],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,OAAO,gBAAgB;;;ACDmE,IAAO,uBAAQ,EAAC,YAAW,qBAAoB,mBAAkB,6BAA4B,kBAAiB,4BAA2B,eAAc,yBAAwB,sBAAqB,gCAA+B,qBAAoB,+BAA8B,wBAAuB,iCAAgC;;;ADeha,cAgLQ,YAhLR;AAHN,SAAS,MAAM,EAAE,QAAQ,OAAO,GAAuB;AACrD,SACE,oBAAC,SAAI,OAAM,8BAA6B,OAAM,MAAK,QAAO,MAAK,MAAM,OACnE;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,GAAE;AAAA;AAAA,EACJ,GACF;AAEJ;AAIA,IAAM,YAAY;AAAA,EAChB,IAAI;AAAA,EACJ,IAAI;AACN;AAmCe,SAAR,MAAuB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,0BAA0B;AAAA,EAC1B,OAAO;AAAA,EACP,SAAS;AAAA,EACT,eAAe;AACjB,GAoEiB;AACf,QAAM,EAAE,UAAU,IAAI,SAAS;AAC/B,SACE,oBAAC,SAAM,QACL,8BAAC,cACC,8BAAC,aACC;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT,qBAAO;AAAA,QACP,cAAc,YACV,qBAAO,kBACP,qBAAO;AAAA,MACb;AAAA,MACA,MAAK;AAAA,MACL,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,iBAAiB,UAAU;AAAA,MAC1D,WAAW,CAAC,MAAM,EAAE,QAAQ,YAAY,UAAU;AAAA,MAElD;AAAA,QAAC;AAAA;AAAA,UACC,eAAa;AAAA,UACb,iBAAgB;AAAA,UAChB,UAAS;AAAA,UACT,SAAQ;AAAA,UACR,WAAU;AAAA,UACV,UAAU;AAAA,UACV,UAAU,UAAU,IAAI;AAAA,UACxB,OAAM;AAAA,UACN,2BAA2B,EAAE,SAAS,EAAE,UAAU,SAAS,EAAE;AAAA,UAE7D;AAAA,gCAAC,eAAI,UAAS,YACZ;AAAA,cAAC;AAAA;AAAA,gBACC,cAAY;AAAA,gBACZ,MAAK;AAAA,gBACL,WAAW;AAAA,kBACT,qBAAO;AAAA,kBACP,cAAc,YACV,qBAAO,qBACP,qBAAO;AAAA,kBACX;AAAA,oBACE,CAAC,qBAAO,oBAAoB,GAC1B,CAAC,CAAC,SAAS,cAAc;AAAA,kBAC7B;AAAA,gBACF;AAAA,gBACA,SAAS;AAAA,gBAET;AAAA,kBAAC;AAAA;AAAA,oBACC,OAAO,SAAS,cAAc,YAAY,SAAS;AAAA;AAAA,gBACrD;AAAA;AAAA,YACF,GACF;AAAA,YACC,SAAS,oBAAC,eAAI,WAAW,KAAM,iBAAM;AAAA,YACtC;AAAA,cAAC;AAAA;AAAA,gBACC,SAAQ;AAAA,gBACR,KAAK;AAAA,gBACL,WAAU;AAAA,gBACV,SAAS,cAAc,YAAY,IAAI;AAAA,gBAEvC;AAAA;AAAA,oBAAC;AAAA;AAAA,sBACC,IAAG;AAAA,sBACH,MAAM,cAAc,YAAY,MAAM;AAAA,sBACtC,WAAW,cAAc,YAAY,eAAe;AAAA,sBAEnD;AAAA;AAAA,kBACH;AAAA,kBACA,oBAAC,eAAI,cAAc,cAAc,YAAY,IAAI,GAC9C,UACH;AAAA,kBACC,UACC;AAAA,oBAAC;AAAA;AAAA,sBACC,SAAQ;AAAA,sBACR,WAAU;AAAA,sBACV,KAAK;AAAA,sBACL,aAAY;AAAA,sBACZ,kBAAiB;AAAA,sBACjB,aAAY;AAAA,sBACZ,kBAAiB;AAAA,sBAEhB;AAAA;AAAA,kBACH;AAAA;AAAA;AAAA,YAEJ;AAAA;AAAA;AAAA,MACF;AAAA;AAAA,EACF,GACF,GACF,GACF;AAEJ;AAEA,MAAM,cAAc;","names":[]}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _P3JJQI6Ncjs = require('./P3JJQI6N.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _4JXNDR7Bcjs = require('./4JXNDR7B.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _VDAYXRSAcjs = require('./VDAYXRSA.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _VJKUE3B4cjs = require('./VJKUE3B4.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _NFDOY7GEcjs = require('./NFDOY7GE.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _VJ2AFMKOcjs = require('./VJ2AFMKO.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _3K37FYOTcjs = require('./3K37FYOT.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _27K33DEMcjs = require('./27K33DEM.cjs');
|
|
27
27
|
|
|
28
28
|
// src/RichSelect/RichSelectBox.tsx
|
|
29
29
|
|
|
@@ -125,7 +125,7 @@ var RichSelectBox = _react.forwardRef.call(void 0,
|
|
|
125
125
|
});
|
|
126
126
|
}, []);
|
|
127
127
|
const { autoFocus } = _react.useContext.call(void 0, RichSelectBoxContext);
|
|
128
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _3K37FYOTcjs.RichSelectItemContext.Provider, { value: { disableKey }, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
128
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _3K37FYOTcjs.RichSelectItemContext.Provider, { value: { disableKey }, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _27K33DEMcjs.Box_default, { children: [
|
|
129
129
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
130
130
|
_reactariacomponents.ListBox,
|
|
131
131
|
{
|
|
@@ -144,7 +144,7 @@ var RichSelectBox = _react.forwardRef.call(void 0,
|
|
|
144
144
|
}
|
|
145
145
|
),
|
|
146
146
|
!autosave && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
147
|
-
|
|
147
|
+
_27K33DEMcjs.Box_default,
|
|
148
148
|
{
|
|
149
149
|
backgroundColor: "white",
|
|
150
150
|
display: "flex",
|
|
@@ -159,17 +159,17 @@ var RichSelectBox = _react.forwardRef.call(void 0,
|
|
|
159
159
|
}
|
|
160
160
|
},
|
|
161
161
|
children: [
|
|
162
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
162
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _27K33DEMcjs.Box_default, { flex: "grow", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _VDAYXRSAcjs.Divider, {}) }),
|
|
163
163
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
164
|
-
|
|
164
|
+
_27K33DEMcjs.Box_default,
|
|
165
165
|
{
|
|
166
166
|
paddingY: 5,
|
|
167
167
|
marginTop: -5,
|
|
168
168
|
display: "flex",
|
|
169
169
|
justifyContent: "end",
|
|
170
|
-
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
170
|
+
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _P3JJQI6Ncjs.ButtonGroup_default, { orientation: "horizontal", children: [
|
|
171
171
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
172
|
-
|
|
172
|
+
_4JXNDR7Bcjs.Button_default,
|
|
173
173
|
{
|
|
174
174
|
onClick: clearChanges,
|
|
175
175
|
color: "secondary",
|
|
@@ -179,7 +179,7 @@ var RichSelectBox = _react.forwardRef.call(void 0,
|
|
|
179
179
|
}
|
|
180
180
|
),
|
|
181
181
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
182
|
-
|
|
182
|
+
_4JXNDR7Bcjs.Button_default,
|
|
183
183
|
{
|
|
184
184
|
onClick: saveChanges,
|
|
185
185
|
text: primaryButtonText,
|
|
@@ -198,9 +198,9 @@ var RichSelectBox = _react.forwardRef.call(void 0,
|
|
|
198
198
|
}
|
|
199
199
|
);
|
|
200
200
|
var RichSelectBox_default = Object.assign(RichSelectBox, {
|
|
201
|
-
Section:
|
|
202
|
-
Chip:
|
|
203
|
-
RadioButton:
|
|
201
|
+
Section: _NFDOY7GEcjs.RichSelectSection_default,
|
|
202
|
+
Chip: _VJKUE3B4cjs.RichSelectChip_default,
|
|
203
|
+
RadioButton: _VJ2AFMKOcjs.RichSelectRadioButton_default
|
|
204
204
|
});
|
|
205
205
|
|
|
206
206
|
|
|
@@ -208,4 +208,4 @@ var RichSelectBox_default = Object.assign(RichSelectBox, {
|
|
|
208
208
|
|
|
209
209
|
|
|
210
210
|
exports.convertSelection = convertSelection; exports.RichSelectBoxContext = RichSelectBoxContext; exports.RichSelectBox_default = RichSelectBox_default;
|
|
211
|
-
//# sourceMappingURL=
|
|
211
|
+
//# sourceMappingURL=TYEKVH5D.cjs.map
|
|
@@ -1,26 +1,37 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
Typography_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./2A52YKFW.js";
|
|
5
5
|
import {
|
|
6
6
|
useTheme
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./FY4WHNNR.js";
|
|
8
8
|
|
|
9
9
|
// src/Heading/Heading.tsx
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
|
+
function cambioWeight({
|
|
12
|
+
fontStyle,
|
|
13
|
+
size
|
|
14
|
+
}) {
|
|
15
|
+
if (fontStyle === "serif" && [400, 500].includes(size)) {
|
|
16
|
+
return "bold";
|
|
17
|
+
} else if (fontStyle === "serif") {
|
|
18
|
+
return "medium";
|
|
19
|
+
} else {
|
|
20
|
+
return "regular";
|
|
21
|
+
}
|
|
22
|
+
}
|
|
11
23
|
var Heading = ({
|
|
12
24
|
align = "start",
|
|
13
25
|
as = "h1",
|
|
14
26
|
children,
|
|
15
27
|
color = "gray900",
|
|
16
28
|
"data-testid": dataTestId,
|
|
17
|
-
fontStyle,
|
|
29
|
+
fontStyle = "sans-serif",
|
|
18
30
|
lineClamp,
|
|
19
31
|
size = 500
|
|
20
32
|
}) => {
|
|
21
33
|
const { themeName } = useTheme();
|
|
22
34
|
const classicWeight = [700, 800].includes(size) ? "heavy" : "bold";
|
|
23
|
-
const cambioWeight = fontStyle === "serif" ? "medium" : "regular";
|
|
24
35
|
return /* @__PURE__ */ jsx(
|
|
25
36
|
Typography_default,
|
|
26
37
|
{
|
|
@@ -31,7 +42,7 @@ var Heading = ({
|
|
|
31
42
|
"data-testid": dataTestId,
|
|
32
43
|
lineClamp,
|
|
33
44
|
size,
|
|
34
|
-
weight: themeName === "classic" ? classicWeight : cambioWeight,
|
|
45
|
+
weight: themeName === "classic" ? classicWeight : cambioWeight({ fontStyle, size }),
|
|
35
46
|
children
|
|
36
47
|
}
|
|
37
48
|
);
|
|
@@ -41,4 +52,4 @@ var Heading_default = Heading;
|
|
|
41
52
|
export {
|
|
42
53
|
Heading_default
|
|
43
54
|
};
|
|
44
|
-
//# sourceMappingURL=
|
|
55
|
+
//# sourceMappingURL=UEX6TGYL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Heading/Heading.tsx"],"sourcesContent":["import { type ReactElement, type ReactNode } from \"react\";\nimport Typography from \"../Typography/Typography\";\nimport { useTheme } from \"../ThemeProvider/ThemeProvider\";\n\nfunction cambioWeight({\n fontStyle,\n size,\n}: {\n fontStyle: \"serif\" | \"sans-serif\";\n size: 400 | 500 | 600 | 700 | 800 | 900 | 1000 | 1100;\n}): \"bold\" | \"medium\" | \"regular\" {\n if (fontStyle === \"serif\" && [400, 500].includes(size)) {\n return \"bold\";\n } else if (fontStyle === \"serif\") {\n return \"medium\";\n } else {\n return \"regular\";\n }\n}\n\n/**\n * [Heading](https://cambly-syntax.vercel.app/?path=/docs/components-heading--docs) enforces a consistent style & accessibility best practices for headings.\n */\nconst Heading = ({\n align = \"start\",\n as = \"h1\",\n children,\n color = \"gray900\",\n \"data-testid\": dataTestId,\n fontStyle = \"sans-serif\",\n lineClamp,\n size = 500,\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 \"h1\"\n */\n as?: \"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?:\n | \"gray900\"\n | \"gray700\"\n | \"primary\"\n | \"destructive-primary\"\n | \"success\"\n | \"white\"\n | \"inherit\";\n /**\n * Test id for the text.\n */\n \"data-testid\"?: string;\n /**\n * Style of the font\n *\n * Classic only supports `sans-serif`\n *\n * @defaultValue \"sans-serif\"\n */\n fontStyle?: \"serif\" | \"sans-serif\";\n /**\n * The number of lines we should truncate the text at\n */\n lineClamp?: number | undefined;\n /**\n * Size of the text.\n *\n * Classic:\n * * `500`: 20px\n * * `600`: 28px\n * * `700`: 40px\n * * `800`: 64px\n *\n * Cambio Mobile:\n * * `400`: 20px\n * * `500`: 23px\n * * `600`: 26px\n * * `700`: 29px\n * * `800`: 33px\n * * `900`: 37px\n * * `1000`: 41px\n * * `1100`: 46px\n *\n * Cambio Desktop (viewport width > 480px):\n * * `400`: 25px\n * * `500`: 31px\n * * `600`: 39px\n * * `700`: 49px\n * * `800`: 61px\n * * `900`: 76px\n * * `1000`: 95px\n * * `1100`: 119px\n *\n * @defaultValue 500\n */\n size?: 400 | 500 | 600 | 700 | 800 | 900 | 1000 | 1100;\n}): ReactElement => {\n const { themeName } = useTheme();\n const classicWeight = [700, 800].includes(size) ? \"heavy\" : \"bold\";\n\n return (\n <Typography\n align={align}\n as={as}\n color={color}\n fontStyle={fontStyle}\n data-testid={dataTestId}\n lineClamp={lineClamp}\n size={size}\n weight={\n themeName === \"classic\"\n ? classicWeight\n : cambioWeight({ fontStyle, size })\n }\n >\n {children}\n </Typography>\n );\n};\n\nexport default Heading;\n"],"mappings":";;;;;;;;;AAqHI;AAjHJ,SAAS,aAAa;AAAA,EACpB;AAAA,EACA;AACF,GAGkC;AAChC,MAAI,cAAc,WAAW,CAAC,KAAK,GAAG,EAAE,SAAS,IAAI,GAAG;AACtD,WAAO;AAAA,EACT,WAAW,cAAc,SAAS;AAChC,WAAO;AAAA,EACT,OAAO;AACL,WAAO;AAAA,EACT;AACF;AAKA,IAAM,UAAU,CAAC;AAAA,EACf,QAAQ;AAAA,EACR,KAAK;AAAA,EACL;AAAA,EACA,QAAQ;AAAA,EACR,eAAe;AAAA,EACf,YAAY;AAAA,EACZ;AAAA,EACA,OAAO;AACT,MAgFoB;AAClB,QAAM,EAAE,UAAU,IAAI,SAAS;AAC/B,QAAM,gBAAgB,CAAC,KAAK,GAAG,EAAE,SAAS,IAAI,IAAI,UAAU;AAE5D,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,eAAa;AAAA,MACb;AAAA,MACA;AAAA,MACA,QACE,cAAc,YACV,gBACA,aAAa,EAAE,WAAW,KAAK,CAAC;AAAA,MAGrC;AAAA;AAAA,EACH;AAEJ;AAEA,IAAO,kBAAQ;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _S5QHTHSTcjs = require('./S5QHTHST.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _K4AUV2VKcjs = require('./K4AUV2VK.cjs');
|
|
@@ -96,7 +96,7 @@ var TapArea = _react.forwardRef.call(void 0,
|
|
|
96
96
|
onMouseLeave == null ? void 0 : onMouseLeave(event);
|
|
97
97
|
};
|
|
98
98
|
const isHoveredOrFocussed = !disabled && (hovered || focussed);
|
|
99
|
-
const roundingClasses = rounding !== "none" &&
|
|
99
|
+
const roundingClasses = rounding !== "none" && _S5QHTHSTcjs.rounding_module_default[`rounding${rounding}`];
|
|
100
100
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
101
101
|
"div",
|
|
102
102
|
_X2SDR4SDcjs.__spreadProps.call(void 0, _X2SDR4SDcjs.__spreadValues.call(void 0, {}, accessibilityProps), {
|
|
@@ -133,4 +133,4 @@ var TapArea_default = TapArea;
|
|
|
133
133
|
|
|
134
134
|
|
|
135
135
|
exports.TapArea_default = TapArea_default;
|
|
136
|
-
//# sourceMappingURL=
|
|
136
|
+
//# sourceMappingURL=UKLQ64N7.cjs.map
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
Box_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./YGKZCJF5.js";
|
|
5
|
+
import {
|
|
6
|
+
useTheme
|
|
7
|
+
} from "./FY4WHNNR.js";
|
|
5
8
|
|
|
6
9
|
// src/AvatarGroup/AvatarGroup.tsx
|
|
7
10
|
import {
|
|
@@ -19,7 +22,9 @@ function AvatarGroup({
|
|
|
19
22
|
orientation = "standard",
|
|
20
23
|
children
|
|
21
24
|
}) {
|
|
22
|
-
|
|
25
|
+
const { themeName } = useTheme();
|
|
26
|
+
const parsedSize = themeName === "cambio" && size === "xl" ? "lg" : size;
|
|
27
|
+
return /* @__PURE__ */ jsx(AvatarGroupContext.Provider, { value: { size: parsedSize, orientation }, children: /* @__PURE__ */ jsx(
|
|
23
28
|
Box_default,
|
|
24
29
|
{
|
|
25
30
|
display: "flex",
|
|
@@ -39,4 +44,4 @@ export {
|
|
|
39
44
|
useAvatarGroup,
|
|
40
45
|
AvatarGroup
|
|
41
46
|
};
|
|
42
|
-
//# sourceMappingURL=
|
|
47
|
+
//# sourceMappingURL=UTSVZIEK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/AvatarGroup/AvatarGroup.tsx"],"sourcesContent":["import {\n type ReactNode,\n createContext,\n useContext,\n type ReactElement,\n} from \"react\";\nimport Box from \"../Box/Box\";\nimport { useTheme } from \"../ThemeProvider/ThemeProvider\";\n\ntype Size =\n | \"sm\"\n | \"md\"\n | \"lg\"\n /* `xl` is deprecated and mapped to `lg` in Cambio */\n | \"xl\";\ntype Orientation = \"standard\" | \"reverse\";\n\ntype AvatarGroupContextType = {\n size: Size;\n orientation: Orientation;\n};\n\nconst AvatarGroupContext = createContext<AvatarGroupContextType | null>(null);\n\nexport function useAvatarGroup(): AvatarGroupContextType | null {\n const context = useContext(AvatarGroupContext);\n return !context ? null : context;\n}\n\n/**\n * [AvatarGroup](https://cambly-syntax.vercel.app/?path=/docs/components-avatargroup--docs) is a stack of avatars to represent a group of people\n *\n * Pass in Avatar components as children to the AvatarGroup component. The size prop that is passed into the AvatarGroup component will override Avatar's size prop..\n *\n * Usage:\n *\n * <AvatarGroup size=\"xl\" orientation=\"standard\">\n * <Avatar accessibilityLabel=\"Joseph Liotta\" src=\"image.png\" />\n * <Avatar accessibilityLabel=\"Joseph Liotta\" src=\"image.png\" />\n * <Avatar accessibilityLabel=\"Joseph Liotta\" src=\"image.png\" />\n * </AvatarGroup>\n *\n */\nexport default function AvatarGroup({\n size = \"md\",\n orientation = \"standard\",\n children,\n}: {\n /**\n * Size of the avatars in the AvatarGroup.\n *\n * Classic:\n * * `sm`: 24px\n * * `md`: 40px\n * * `lg`: 72px\n * * `xl`: 128px\n *\n * Cambio:\n * * `sm`: 32px\n * * `md`: 48px\n * * `lg`: 64px\n * * `xl`: 64px (deprecated, maps to `lg` in Cambio)\n *\n * @defaultValue `md`\n */\n size?: Size;\n /**\n * Orientation of the AvatarGroup.\n * This describes the order of rendering of the Avatar components.\n * Standard renders the Avatar components with the right component on top.\n * Reverse renders the Avatar components with the left component on top.\n *\n * @defaultValue `standard`\n */\n orientation?: Orientation;\n /**\n * Avatars to be rendered within the AvatarGroup.\n */\n children: ReactNode;\n}): ReactElement {\n const { themeName } = useTheme();\n const parsedSize = themeName === \"cambio\" && size === \"xl\" ? \"lg\" : size;\n\n return (\n <AvatarGroupContext.Provider value={{ size: parsedSize, orientation }}>\n <Box\n display=\"flex\"\n justifyContent={orientation === \"standard\" ? \"start\" : \"end\"}\n dangerouslySetInlineStyle={{\n __style: {\n flexDirection: orientation === \"standard\" ? \"row\" : \"row-reverse\",\n },\n }}\n >\n {children}\n </Box>\n </AvatarGroupContext.Provider>\n );\n}\n\nAvatarGroup.displayName = \"AvatarGroup\";\n"],"mappings":";;;;;;;;;AAAA;AAAA,EAEE;AAAA,EACA;AAAA,OAEK;AAgFD;AA/DN,IAAM,qBAAqB,cAA6C,IAAI;AAErE,SAAS,iBAAgD;AAC9D,QAAM,UAAU,WAAW,kBAAkB;AAC7C,SAAO,CAAC,UAAU,OAAO;AAC3B;AAgBe,SAAR,YAA6B;AAAA,EAClC,OAAO;AAAA,EACP,cAAc;AAAA,EACd;AACF,GAgCiB;AACf,QAAM,EAAE,UAAU,IAAI,SAAS;AAC/B,QAAM,aAAa,cAAc,YAAY,SAAS,OAAO,OAAO;AAEpE,SACE,oBAAC,mBAAmB,UAAnB,EAA4B,OAAO,EAAE,MAAM,YAAY,YAAY,GAClE;AAAA,IAAC;AAAA;AAAA,MACC,SAAQ;AAAA,MACR,gBAAgB,gBAAgB,aAAa,UAAU;AAAA,MACvD,2BAA2B;AAAA,QACzB,SAAS;AAAA,UACP,eAAe,gBAAgB,aAAa,QAAQ;AAAA,QACtD;AAAA,MACF;AAAA,MAEC;AAAA;AAAA,EACH,GACF;AAEJ;AAEA,YAAY,cAAc;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _27K33DEMcjs = require('./27K33DEM.cjs');
|
|
5
5
|
|
|
6
6
|
// src/Modal/Layer.tsx
|
|
7
7
|
var _reactdom = require('react-dom');
|
|
@@ -12,7 +12,7 @@ function Layer({
|
|
|
12
12
|
}) {
|
|
13
13
|
return typeof document !== "undefined" ? _reactdom.createPortal.call(void 0,
|
|
14
14
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15
|
-
|
|
15
|
+
_27K33DEMcjs.Box_default,
|
|
16
16
|
{
|
|
17
17
|
"data-testid": "syntax-layer",
|
|
18
18
|
position: "fixed",
|
|
@@ -29,4 +29,4 @@ function Layer({
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
exports.Layer = Layer;
|
|
32
|
-
//# sourceMappingURL=
|
|
32
|
+
//# sourceMappingURL=UYZYKU2W.cjs.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }"use client"
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _X2LNODY7cjs = require('./X2LNODY7.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _6W5WRS53cjs = require('./6W5WRS53.cjs');
|
|
8
|
+
|
|
9
|
+
// css-module:./Divider.module.css#css-module
|
|
10
|
+
var Divider_module_default = { "divider": "_divider_1uaon_1", "dividerClassic": "_dividerClassic_1uaon_9" };
|
|
11
|
+
|
|
12
|
+
// src/Divider/Divider.tsx
|
|
13
|
+
var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames);
|
|
14
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
15
|
+
function Divider() {
|
|
16
|
+
const { themeName } = _6W5WRS53cjs.useTheme.call(void 0, );
|
|
17
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18
|
+
"hr",
|
|
19
|
+
{
|
|
20
|
+
className: themeName === "classic" ? _classnames2.default.call(void 0, Divider_module_default.divider, Divider_module_default.dividerClassic) : _classnames2.default.call(void 0, Divider_module_default.divider, _X2LNODY7cjs.colors_module_default.cambioGray370BackgroundColor)
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
Divider.displayName = "Divider";
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
exports.Divider = Divider;
|
|
29
|
+
//# sourceMappingURL=VDAYXRSA.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["css-module:./Divider.module.css#css-module","../../src/Divider/Divider.tsx"],"names":[],"mappings":";;;;;;;;;AAA8F,IAAO,yBAAQ,EAAC,WAAU,oBAAmB,kBAAiB,0BAAyB;;;ACErL,OAAO,gBAAgB;AASnB;AAHW,SAAR,UAA+C;AACpD,QAAM,EAAE,UAAU,IAAI,SAAS;AAC/B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WACE,cAAc,YACV,WAAW,uBAAO,SAAS,uBAAO,cAAc,IAChD,WAAW,uBAAO,SAAS,sBAAY,4BAA4B;AAAA;AAAA,EAE3E;AAEJ;AAEA,QAAQ,cAAc","sourcesContent":["import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Divider/Divider.module.css\"; export default {\"divider\":\"_divider_1uaon_1\",\"dividerClassic\":\"_dividerClassic_1uaon_9\"}","import { useTheme } from \"../ThemeProvider/ThemeProvider\";\nimport styles from \"./Divider.module.css\";\nimport classNames from \"classnames\";\nimport colorStyles from \"../colors/colors.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 const { themeName } = useTheme();\n return (\n <hr\n className={\n themeName === \"classic\"\n ? classNames(styles.divider, styles.dividerClassic)\n : classNames(styles.divider, colorStyles.cambioGray370BackgroundColor)\n }\n />\n );\n}\n\nDivider.displayName = \"Divider\";\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"sourcesContent":["/**\n * Do not edit directly\n * Generated on
|
|
1
|
+
{"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"sourcesContent":["/**\n * Do not edit directly\n * Generated on Fri, 15 Mar 2024 22:25:21 GMT\n */\n\nexport const ColorBaseBlack = \"#000000\";\nexport const ColorBaseDestructive100 = \"#fef3f5\";\nexport const ColorBaseDestructive200 = \"#fad6de\";\nexport const ColorBaseDestructive300 = \"#f2a2b2\";\nexport const ColorBaseDestructive700 = \"#d32a4b\";\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 = \"#ffc929\";\nexport const ColorBaseYellow800 = \"#765f1c\";\nexport const ColorBaseYellow900 = \"#3b3009\";\nexport const ColorBaseWhite = \"#ffffff\";\nexport const ColorCambioBlack = \"#050500\";\nexport const ColorCambioWhite = \"#ffffff\";\nexport const ColorCambioGray100 = \"#faf4eb\";\nexport const ColorCambioGray200 = \"#e4dbd3\";\nexport const ColorCambioGray300 = \"#beb4ab\";\nexport const ColorCambioGray370 = \"#beb4ab\";\nexport const ColorCambioGray700 = \"#888077\";\nexport const ColorCambioGray800 = \"#5c554d\";\nexport const ColorCambioGray870 = \"#5c554d\";\nexport const ColorCambioGray900 = \"#312b23\";\nexport const ColorCambioDestructive100 = \"#ffdeda\";\nexport const ColorCambioDestructive300 = \"#ff8071\";\nexport const ColorCambioDestructive370 = \"#ff8071\";\nexport const ColorCambioDestructive700 = \"#c93f32\";\nexport const ColorCambioDestructive770 = \"#c93f32\";\nexport const ColorCambioDestructive900 = \"#6d0002\";\nexport const ColorCambioSuccess100 = \"#daf2c8\";\nexport const ColorCambioSuccess300 = \"#84ce64\";\nexport const ColorCambioSuccess370 = \"#84ce64\";\nexport const ColorCambioSuccess700 = \"#3c7f20\";\nexport const ColorCambioSuccess770 = \"#3c7f20\";\nexport const ColorCambioSuccess900 = \"#103e00\";\nexport const ColorCambioRed = \"#f56e56\";\nexport const ColorCambioOrange = \"#ff8f57\";\nexport const ColorCambioTan = \"#ffb47d\";\nexport const ColorCambioCream = \"#fffad1\";\nexport const ColorCambioPurple = \"#6840a8\";\nexport const ColorCambioLilac = \"#b59ef0\";\nexport const ColorCambioThistle = \"#d69ca4\";\nexport const ColorCambioPink = \"#ffccea\";\nexport const ColorCambioNavy = \"#191142\";\nexport const ColorCambioTeal = \"#44a6cf\";\nexport const ColorCambioSlate = \"#7c9fc6\";\nexport const ColorCambioSky = \"#b1e8fc\";\nexport const ColorCambioYellow700 = \"#ffe733\";\nexport const ColorCambioTransparentFull = \"#000000\";\nexport const Elevation400 = \"0px 16px 32px 0px #00000040\";\n"],"mappings":";;;AASO,IAAM,0BAA0B;AAWhC,IAAM,mBAAmB;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _GPW7ICYPcjs = require('./GPW7ICYP.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _3K37FYOTcjs = require('./3K37FYOT.cjs');
|
|
@@ -19,7 +19,7 @@ var RichSelectRadioButton_default = _react.forwardRef.call(void 0,
|
|
|
19
19
|
function RichSelectRadioButton(props, ref) {
|
|
20
20
|
const _a = props, { size, name } = _a, otherProps = _X2SDR4SDcjs.__objRest.call(void 0, _a, ["size", "name"]);
|
|
21
21
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _3K37FYOTcjs.RichSelectItem_default, _X2SDR4SDcjs.__spreadProps.call(void 0, _X2SDR4SDcjs.__spreadValues.call(void 0, {}, otherProps), { ref, children: ({ isSelected, isFocusVisible, isDisabled }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22
|
-
|
|
22
|
+
_GPW7ICYPcjs.RadioButton_default,
|
|
23
23
|
{
|
|
24
24
|
checked: isSelected,
|
|
25
25
|
disabled: isDisabled,
|
|
@@ -37,4 +37,4 @@ var RichSelectRadioButton_default = _react.forwardRef.call(void 0,
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
exports.RichSelectRadioButton_default = RichSelectRadioButton_default;
|
|
40
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=VJ2AFMKO.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _GRYQKIWRcjs = require('./GRYQKIWR.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _3K37FYOTcjs = require('./3K37FYOT.cjs');
|
|
@@ -16,7 +16,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
16
16
|
var RichSelectChip_default = _react.forwardRef.call(void 0,
|
|
17
17
|
function RichSelectChip(props, ref) {
|
|
18
18
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _3K37FYOTcjs.RichSelectItem_default, _X2SDR4SDcjs.__spreadProps.call(void 0, _X2SDR4SDcjs.__spreadValues.call(void 0, {}, props), { ref, children: ({ isSelected, isFocusVisible, isDisabled }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19
|
-
|
|
19
|
+
_GRYQKIWRcjs.Chip_default,
|
|
20
20
|
{
|
|
21
21
|
text: props.label,
|
|
22
22
|
selected: isSelected,
|
|
@@ -31,4 +31,4 @@ var RichSelectChip_default = _react.forwardRef.call(void 0,
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
exports.RichSelectChip_default = RichSelectChip_default;
|
|
34
|
-
//# sourceMappingURL=
|
|
34
|
+
//# sourceMappingURL=VJKUE3B4.cjs.map
|
|
@@ -7,10 +7,10 @@ var _MF7LLV7Vcjs = require('./MF7LLV7V.cjs');
|
|
|
7
7
|
var _PLUVW6AMcjs = require('./PLUVW6AM.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _IL22HCBFcjs = require('./IL22HCBF.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _S5QHTHSTcjs = require('./S5QHTHST.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
var _X2LNODY7cjs = require('./X2LNODY7.cjs');
|
|
@@ -57,16 +57,16 @@ var Dialog = _react.forwardRef.call(void 0, function Dialog2(props, ref) {
|
|
|
57
57
|
"data-testid": dataTestId,
|
|
58
58
|
"aria-label": accessibilityLabel,
|
|
59
59
|
className: _classnames2.default.call(void 0, [
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
60
|
+
_IL22HCBFcjs.Box_module_default.box,
|
|
61
|
+
_IL22HCBFcjs.Box_module_default.flex,
|
|
62
|
+
_IL22HCBFcjs.Box_module_default.column,
|
|
63
|
+
_IL22HCBFcjs.Box_module_default.gap4,
|
|
64
|
+
_IL22HCBFcjs.Box_module_default.relative,
|
|
65
|
+
_IL22HCBFcjs.Box_module_default.overflowauto,
|
|
66
66
|
_X2LNODY7cjs.colors_module_default.whiteBackgroundColor,
|
|
67
67
|
_PLUVW6AMcjs.padding_module_default[`paddingX${padding != null ? padding : sizeToPadding[size]}`],
|
|
68
68
|
_PLUVW6AMcjs.padding_module_default[`paddingY${padding != null ? padding : sizeToPadding[size]}`],
|
|
69
|
-
|
|
69
|
+
_S5QHTHSTcjs.rounding_module_default[`rounding${sizeToRounding[size]}`],
|
|
70
70
|
elevation_module_default.elevation400BoxShadow,
|
|
71
71
|
_MF7LLV7Vcjs.layout_module_default.fullMaxHeight,
|
|
72
72
|
_MF7LLV7Vcjs.layout_module_default.visibilityVisible,
|
|
@@ -82,4 +82,4 @@ var Dialog_default = Dialog;
|
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
exports.DialogContext = DialogContext; exports.Dialog_default = Dialog_default;
|
|
85
|
-
//# sourceMappingURL=
|
|
85
|
+
//# sourceMappingURL=VL5ONCQD.cjs.map
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _27K33DEMcjs = require('./27K33DEM.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _6W5WRS53cjs = require('./6W5WRS53.cjs');
|
|
5
8
|
|
|
6
9
|
// src/Card/Card.tsx
|
|
7
10
|
var _jsxruntime = require('react/jsx-runtime');
|
|
@@ -11,18 +14,14 @@ function Card({
|
|
|
11
14
|
size,
|
|
12
15
|
"data-testid": dataTestId
|
|
13
16
|
}) {
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
lg: 744
|
|
17
|
-
};
|
|
17
|
+
const { themeName } = _6W5WRS53cjs.useTheme.call(void 0, );
|
|
18
|
+
const cambioPadding = size === "compact" ? 2 : 4;
|
|
18
19
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19
|
-
|
|
20
|
+
_27K33DEMcjs.Box_default,
|
|
20
21
|
{
|
|
21
|
-
rounding: "lg",
|
|
22
|
-
padding: 5,
|
|
23
|
-
smPadding: 7,
|
|
24
|
-
lgPadding: 7,
|
|
25
|
-
maxWidth: size && sizeWidth[size],
|
|
22
|
+
rounding: themeName === "classic" ? "lg" : "md",
|
|
23
|
+
padding: themeName === "classic" ? 5 : cambioPadding,
|
|
24
|
+
smPadding: themeName === "classic" ? 7 : void 0,
|
|
26
25
|
width: "100%",
|
|
27
26
|
backgroundColor,
|
|
28
27
|
"data-testid": dataTestId,
|
|
@@ -34,4 +33,4 @@ function Card({
|
|
|
34
33
|
|
|
35
34
|
|
|
36
35
|
exports.Card = Card;
|
|
37
|
-
//# sourceMappingURL=
|
|
36
|
+
//# sourceMappingURL=W7GPAEHP.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Card/Card.tsx"],"names":[],"mappings":";;;;;;;;;AA2CI;AAXW,SAAR,KAAsB;AAAA,EAC3B,kBAAkB;AAAA,EAClB;AAAA,EACA;AAAA,EACA,eAAe;AACjB,GAA0B;AACxB,QAAM,EAAE,UAAU,IAAI,SAAS;AAE/B,QAAM,gBAAgB,SAAS,YAAY,IAAI;AAE/C,SACE;AAAA,IAAC;AAAA;AAAA,MACC,UAAU,cAAc,YAAY,OAAO;AAAA,MAC3C,SAAS,cAAc,YAAY,IAAI;AAAA,MACvC,WAAW,cAAc,YAAY,IAAI;AAAA,MACzC,OAAM;AAAA,MACN;AAAA,MACA,eAAa;AAAA,MAEZ;AAAA;AAAA,EACH;AAEJ","sourcesContent":["import Box from \"../Box/Box\";\nimport { useTheme } from \"../ThemeProvider/ThemeProvider\";\nimport type allColors from \"../colors/allColors\";\n\ntype CardType = {\n /**\n * Test id for the button\n */\n \"data-testid\"?: string;\n /**\n * The background color of the box.\n * @defaultValue `white`\n */\n backgroundColor?: (typeof allColors)[number];\n /**\n * The child components to render within Card.\n */\n children: JSX.Element;\n /**\n * The size of the card (Cambio only) which specifies the padding and spacing of the card.\n *\n * `compact`: 8px padding\n * `roomy`: 16px padding\n *\n * @defaultValue `roomy`\n */\n size?: \"compact\" | \"roomy\";\n};\n\n/**\n * [Card](https://cambly-syntax.vercel.app/?path=/docs/components-card--docs) is a basic container component to apply consistent styling and render child components.\n */\nexport default function Card({\n backgroundColor = \"white\",\n children,\n size,\n \"data-testid\": dataTestId,\n}: CardType): JSX.Element {\n const { themeName } = useTheme();\n\n const cambioPadding = size === \"compact\" ? 2 : 4;\n\n return (\n <Box\n rounding={themeName === \"classic\" ? \"lg\" : \"md\"}\n padding={themeName === \"classic\" ? 5 : cambioPadding}\n smPadding={themeName === \"classic\" ? 7 : undefined}\n width=\"100%\"\n backgroundColor={backgroundColor}\n data-testid={dataTestId}\n >\n {children}\n </Box>\n );\n}\n"]}
|