@cambly/syntax-core 9.7.0 → 9.8.0-beta.2
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.css +1784 -1
- package/dist/Avatar/Avatar.css.map +1 -1
- package/dist/Avatar/Avatar.d.ts +12 -6
- package/dist/Avatar/Avatar.js +6 -2
- package/dist/Avatar/Avatar.mjs +5 -1
- package/dist/AvatarGroup/AvatarGroup.css +1811 -0
- package/dist/AvatarGroup/AvatarGroup.css.map +1 -0
- package/dist/AvatarGroup/AvatarGroup.d.ts +24 -0
- package/dist/AvatarGroup/AvatarGroup.js +14 -0
- package/dist/AvatarGroup/AvatarGroup.js.map +1 -0
- package/dist/AvatarGroup/AvatarGroup.mjs +14 -0
- package/dist/AvatarGroup/AvatarGroup.mjs.map +1 -0
- package/dist/AvatarGroup/AvatarGroupAvatar.css +1811 -0
- package/dist/AvatarGroup/AvatarGroupAvatar.css.map +1 -0
- package/dist/AvatarGroup/AvatarGroupAvatar.d.ts +38 -0
- package/dist/AvatarGroup/AvatarGroupAvatar.js +13 -0
- package/dist/AvatarGroup/AvatarGroupAvatar.js.map +1 -0
- package/dist/AvatarGroup/AvatarGroupAvatar.mjs +13 -0
- package/dist/AvatarGroup/AvatarGroupAvatar.mjs.map +1 -0
- package/dist/Badge/Badge.css +7 -7
- package/dist/Badge/Badge.css.map +1 -1
- package/dist/Badge/Badge.js +6 -6
- package/dist/Badge/Badge.mjs +5 -5
- package/dist/Box/Box.css +5 -5
- package/dist/Box/Box.css.map +1 -1
- package/dist/Box/Box.js +4 -4
- package/dist/Box/Box.mjs +3 -3
- package/dist/Button/Button.css +28 -30
- package/dist/Button/Button.css.map +1 -1
- package/dist/Button/Button.js +11 -11
- package/dist/Button/Button.mjs +10 -10
- package/dist/Button/constants/iconSize.css +22 -24
- package/dist/Button/constants/iconSize.css.map +1 -1
- package/dist/Button/constants/iconSize.js +2 -2
- package/dist/Button/constants/iconSize.mjs +1 -1
- 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 +2 -2
- package/dist/ButtonGroup/ButtonGroup.mjs +1 -1
- package/dist/Card/Card.css +5 -5
- package/dist/Card/Card.css.map +1 -1
- package/dist/Card/Card.js +5 -5
- package/dist/Card/Card.mjs +4 -4
- package/dist/Checkbox/Checkbox.css +4 -4
- package/dist/Checkbox/Checkbox.css.map +1 -1
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Checkbox/Checkbox.js +5 -5
- package/dist/Checkbox/Checkbox.mjs +4 -4
- package/dist/Chip/Chip.css +7 -7
- package/dist/Chip/Chip.css.map +1 -1
- package/dist/Chip/Chip.js +6 -6
- package/dist/Chip/Chip.mjs +5 -5
- package/dist/Divider/Divider.css +1 -1
- package/dist/Divider/Divider.css.map +1 -1
- package/dist/Divider/Divider.js +2 -2
- package/dist/Divider/Divider.mjs +1 -1
- package/dist/Heading/Heading.css +2 -2
- package/dist/Heading/Heading.css.map +1 -1
- package/dist/Heading/Heading.d.ts +1 -1
- package/dist/Heading/Heading.js +4 -4
- package/dist/Heading/Heading.mjs +3 -3
- package/dist/IconButton/IconButton.css +2 -2
- package/dist/IconButton/IconButton.css.map +1 -1
- package/dist/IconButton/IconButton.js +5 -5
- package/dist/IconButton/IconButton.mjs +4 -4
- package/dist/LinkButton/LinkButton.css +25 -27
- package/dist/LinkButton/LinkButton.css.map +1 -1
- package/dist/LinkButton/LinkButton.js +9 -9
- package/dist/LinkButton/LinkButton.mjs +8 -8
- package/dist/MiniActionCard/MiniActionCard.css +19 -0
- package/dist/MiniActionCard/MiniActionCard.css.map +1 -0
- package/dist/MiniActionCard/MiniActionCard.d.ts +11 -0
- package/dist/MiniActionCard/MiniActionCard.js +8 -0
- package/dist/MiniActionCard/MiniActionCard.js.map +1 -0
- package/dist/MiniActionCard/MiniActionCard.mjs +8 -0
- package/dist/MiniActionCard/MiniActionCard.mjs.map +1 -0
- package/dist/Modal/Layer.css +5 -5
- package/dist/Modal/Layer.css.map +1 -1
- package/dist/Modal/Layer.js +5 -5
- package/dist/Modal/Layer.mjs +4 -4
- package/dist/Modal/Modal.css +7 -7
- package/dist/Modal/Modal.css.map +1 -1
- package/dist/Modal/Modal.js +8 -8
- package/dist/Modal/Modal.mjs +7 -7
- package/dist/RadioButton/RadioButton.css +4 -4
- package/dist/RadioButton/RadioButton.css.map +1 -1
- package/dist/RadioButton/RadioButton.d.ts +1 -1
- package/dist/RadioButton/RadioButton.js +5 -5
- package/dist/RadioButton/RadioButton.mjs +4 -4
- package/dist/SelectList/SelectList.css +4 -4
- package/dist/SelectList/SelectList.css.map +1 -1
- package/dist/SelectList/SelectList.js +5 -5
- package/dist/SelectList/SelectList.mjs +4 -4
- package/dist/TapArea/TapArea.css +2 -2
- package/dist/TapArea/TapArea.css.map +1 -1
- package/dist/TapArea/TapArea.js +3 -3
- package/dist/TapArea/TapArea.mjs +2 -2
- package/dist/TextField/TextField.css +7 -7
- package/dist/TextField/TextField.css.map +1 -1
- package/dist/TextField/TextField.js +6 -6
- package/dist/TextField/TextField.mjs +5 -5
- package/dist/Typography/Typography.css +2 -2
- package/dist/Typography/Typography.css.map +1 -1
- package/dist/Typography/Typography.d.ts +1 -1
- package/dist/Typography/Typography.js +3 -3
- package/dist/Typography/Typography.mjs +2 -2
- package/dist/__chunks/{FUBK3VZO.js → 25AVG5RK.js} +1 -1
- package/dist/__chunks/{FUBK3VZO.js.map → 25AVG5RK.js.map} +1 -1
- package/dist/__chunks/2AXWRBLG.mjs +34 -0
- package/dist/__chunks/2AXWRBLG.mjs.map +1 -0
- package/dist/__chunks/{4PWSK5GI.js → 37REMIOM.js} +1 -1
- package/dist/__chunks/37REMIOM.js.map +1 -0
- package/dist/__chunks/{BCWLWS7W.mjs → 3HUELEGR.mjs} +2 -2
- package/dist/__chunks/{BCWLWS7W.mjs.map → 3HUELEGR.mjs.map} +1 -1
- package/dist/__chunks/{HAZN2FCY.mjs → 3LM54GWV.mjs} +1 -1
- package/dist/__chunks/3LM54GWV.mjs.map +1 -0
- package/dist/__chunks/3MG27OMA.js +64 -0
- package/dist/__chunks/3MG27OMA.js.map +1 -0
- package/dist/__chunks/3N6HHI46.js +32 -0
- package/dist/__chunks/3N6HHI46.js.map +1 -0
- package/dist/__chunks/{PYNS67IV.js → 3OXEYQS2.js} +5 -5
- package/dist/__chunks/{PYNS67IV.js.map → 3OXEYQS2.js.map} +1 -1
- package/dist/__chunks/4EEVXYO7.js +216 -0
- package/dist/__chunks/4EEVXYO7.js.map +1 -0
- package/dist/__chunks/{UNIBFDXV.js → 4ONM4N5U.js} +5 -5
- package/dist/__chunks/{UNIBFDXV.js.map → 4ONM4N5U.js.map} +1 -1
- package/dist/__chunks/{CPBWDVD4.mjs → 4U36457H.mjs} +4 -4
- package/dist/__chunks/{CPBWDVD4.mjs.map → 4U36457H.mjs.map} +1 -1
- package/dist/__chunks/4VIJNV7V.mjs +216 -0
- package/dist/__chunks/4VIJNV7V.mjs.map +1 -0
- package/dist/__chunks/5C5EHJ47.js +34 -0
- package/dist/__chunks/5C5EHJ47.js.map +1 -0
- package/dist/__chunks/{R6CDK4GP.mjs → 5QXUIARJ.mjs} +3 -2
- package/dist/__chunks/5QXUIARJ.mjs.map +1 -0
- package/dist/__chunks/5VIJTDOF.mjs +120 -0
- package/dist/__chunks/5VIJTDOF.mjs.map +1 -0
- package/dist/__chunks/{3VUMTAUX.js → 5VV77UJJ.js} +5 -5
- package/dist/__chunks/{3VUMTAUX.js.map → 5VV77UJJ.js.map} +1 -1
- package/dist/__chunks/{SXTRSFG5.mjs → 6KRS5AXC.mjs} +1 -1
- package/dist/__chunks/6KRS5AXC.mjs.map +1 -0
- package/dist/__chunks/6LPXMM72.js +29 -0
- package/dist/__chunks/6LPXMM72.js.map +1 -0
- package/dist/__chunks/{MX7C572C.mjs → A2VHEPTR.mjs} +2 -2
- package/dist/__chunks/A4I7G22A.js +7 -0
- package/dist/__chunks/A4I7G22A.js.map +1 -0
- package/dist/__chunks/AR6OTJE4.mjs +120 -0
- package/dist/__chunks/AR6OTJE4.mjs.map +1 -0
- package/dist/__chunks/AXK2UBWP.js +120 -0
- package/dist/__chunks/AXK2UBWP.js.map +1 -0
- package/dist/__chunks/{CGGEM6XS.mjs → AYC7TUMS.mjs} +8 -8
- package/dist/__chunks/{CGGEM6XS.mjs.map → AYC7TUMS.mjs.map} +1 -1
- package/dist/__chunks/{LJHH6KUW.js → BBNBUAJV.js} +1 -1
- package/dist/__chunks/BBNBUAJV.js.map +1 -0
- package/dist/__chunks/{TKYRBLSM.js → BFZW2SIU.js} +14 -14
- package/dist/__chunks/{TKYRBLSM.js.map → BFZW2SIU.js.map} +1 -1
- package/dist/__chunks/BNRC45PX.js +15 -0
- package/dist/__chunks/BNRC45PX.js.map +1 -0
- package/dist/__chunks/{6VWFOSQZ.js → BXCLZFW3.js} +1 -1
- package/dist/__chunks/BXCLZFW3.js.map +1 -0
- package/dist/__chunks/C33AWSV6.js +61 -0
- package/dist/__chunks/C33AWSV6.js.map +1 -0
- package/dist/__chunks/CUVXZOBA.mjs +7 -0
- package/dist/__chunks/CUVXZOBA.mjs.map +1 -0
- package/dist/__chunks/CWODDNFV.mjs +66 -0
- package/dist/__chunks/CWODDNFV.mjs.map +1 -0
- package/dist/__chunks/{LZSDWT4M.mjs → D4JUFTND.mjs} +3 -3
- package/dist/__chunks/{LZSDWT4M.mjs.map → D4JUFTND.mjs.map} +1 -1
- package/dist/__chunks/{D24RSGYP.js → DOUZDU3A.js} +1 -1
- package/dist/__chunks/DOUZDU3A.js.map +1 -0
- package/dist/__chunks/{AGAHNSZM.js → DPOT7MLO.js} +6 -6
- package/dist/__chunks/{AGAHNSZM.js.map → DPOT7MLO.js.map} +1 -1
- package/dist/__chunks/EDT4HTWE.js +24 -0
- package/dist/__chunks/EDT4HTWE.js.map +1 -0
- package/dist/__chunks/{ERXGNP37.js → ESGV3EEU.js} +1 -1
- package/dist/__chunks/ESGV3EEU.js.map +1 -0
- package/dist/__chunks/F4HTASEF.mjs +24 -0
- package/dist/__chunks/{Q2TIB7ZC.mjs.map → F4HTASEF.mjs.map} +1 -1
- package/dist/__chunks/{JSEHOGL7.mjs → FLKYHNRX.mjs} +1 -1
- package/dist/__chunks/FLKYHNRX.mjs.map +1 -0
- package/dist/__chunks/FOSMT7QJ.js +34 -0
- package/dist/__chunks/FOSMT7QJ.js.map +1 -0
- package/dist/__chunks/FVU4BA3R.mjs +15 -0
- package/dist/__chunks/FVU4BA3R.mjs.map +1 -0
- package/dist/__chunks/FZO6U2EP.mjs +61 -0
- package/dist/__chunks/FZO6U2EP.mjs.map +1 -0
- package/dist/__chunks/GD77DL2Y.mjs +106 -0
- package/dist/__chunks/GD77DL2Y.mjs.map +1 -0
- package/dist/__chunks/{LKQ7PJ4S.mjs → HJYCSDLB.mjs} +3 -3
- package/dist/__chunks/HJYCSDLB.mjs.map +1 -0
- package/dist/__chunks/HPQ27RVD.js +7 -0
- package/dist/__chunks/HPQ27RVD.js.map +1 -0
- package/dist/__chunks/{GPS2XNQI.js → IAF6S5CX.js} +16 -20
- package/dist/__chunks/IAF6S5CX.js.map +1 -0
- package/dist/__chunks/IFTFN6UJ.mjs +96 -0
- package/dist/__chunks/IFTFN6UJ.mjs.map +1 -0
- package/dist/__chunks/IMA6TVID.js +14 -0
- package/dist/__chunks/IMA6TVID.js.map +1 -0
- package/dist/__chunks/{RRE7PRE5.mjs → JJQRVIE2.mjs} +3 -3
- package/dist/__chunks/{RRE7PRE5.mjs.map → JJQRVIE2.mjs.map} +1 -1
- package/dist/__chunks/{BJXYKZMK.mjs → JMKHYRFL.mjs} +3 -3
- package/dist/__chunks/JMKHYRFL.mjs.map +1 -0
- package/dist/__chunks/JQHT6NET.mjs +110 -0
- package/dist/__chunks/JQHT6NET.mjs.map +1 -0
- package/dist/__chunks/{DVVFHZBW.mjs → K3JR7BCX.mjs} +10 -14
- package/dist/__chunks/K3JR7BCX.mjs.map +1 -0
- package/dist/__chunks/K6XUX6LJ.mjs +34 -0
- package/dist/__chunks/K6XUX6LJ.mjs.map +1 -0
- package/dist/__chunks/{BSWWGQAS.js → KCIQ73YD.js} +6 -6
- package/dist/__chunks/{BSWWGQAS.js.map → KCIQ73YD.js.map} +1 -1
- package/dist/__chunks/{RSU3GDHB.mjs → KDEHEUYG.mjs} +3 -3
- package/dist/__chunks/{RSU3GDHB.mjs.map → KDEHEUYG.mjs.map} +1 -1
- package/dist/__chunks/KEVWT27Z.mjs +81 -0
- package/dist/__chunks/KEVWT27Z.mjs.map +1 -0
- package/dist/__chunks/KNBS7I65.mjs +34 -0
- package/dist/__chunks/KNBS7I65.mjs.map +1 -0
- package/dist/__chunks/KNDHXB3A.js +66 -0
- package/dist/__chunks/KNDHXB3A.js.map +1 -0
- package/dist/__chunks/KNTQWIRZ.mjs +64 -0
- package/dist/__chunks/KNTQWIRZ.mjs.map +1 -0
- package/dist/__chunks/LCM6DHNZ.mjs +120 -0
- package/dist/__chunks/{DVVFHZBW.mjs.map → LCM6DHNZ.mjs.map} +1 -1
- package/dist/__chunks/{FWVHWU47.mjs → LICJ6EW4.mjs} +1 -1
- package/dist/__chunks/LICJ6EW4.mjs.map +1 -0
- package/dist/__chunks/LJA4ANIH.js +120 -0
- package/dist/__chunks/LJA4ANIH.js.map +1 -0
- package/dist/__chunks/{37CQV3RS.js → LKIXWY5D.js} +3 -3
- package/dist/__chunks/{37CQV3RS.js.map → LKIXWY5D.js.map} +1 -1
- package/dist/__chunks/LTYTYJEN.mjs +20 -0
- package/dist/__chunks/{XN5AALLC.mjs.map → LTYTYJEN.mjs.map} +1 -1
- package/dist/__chunks/{RVT6EXR3.mjs → MF2FZIOI.mjs} +2 -2
- package/dist/__chunks/{WJDAVT5R.mjs → MQPPALTP.mjs} +1 -1
- package/dist/__chunks/MQPPALTP.mjs.map +1 -0
- package/dist/__chunks/MQYAYRG7.js +106 -0
- package/dist/__chunks/MQYAYRG7.js.map +1 -0
- package/dist/__chunks/MUJ5ZM2P.mjs +14 -0
- package/dist/__chunks/MUJ5ZM2P.mjs.map +1 -0
- package/dist/__chunks/NCGV4CPL.mjs +7 -0
- package/dist/__chunks/NCGV4CPL.mjs.map +1 -0
- package/dist/__chunks/NS7JP3FM.mjs +105 -0
- package/dist/__chunks/NS7JP3FM.mjs.map +1 -0
- package/dist/__chunks/{CQ2HIJ62.js → O24347EQ.js} +3 -3
- package/dist/__chunks/O7DAECUN.js +110 -0
- package/dist/__chunks/O7DAECUN.js.map +1 -0
- package/dist/__chunks/{BSFWQWVJ.js → OLOF45YI.js} +3 -3
- package/dist/__chunks/{2JWMSFS7.js → P4CNOF3E.js} +3 -3
- package/dist/__chunks/PLJUFTJY.js +120 -0
- package/dist/__chunks/PLJUFTJY.js.map +1 -0
- package/dist/__chunks/{OQ26OWU4.mjs → PN7GAGSA.mjs} +2 -2
- package/dist/__chunks/{OQ26OWU4.mjs.map → PN7GAGSA.mjs.map} +1 -1
- package/dist/__chunks/PR3BB3FG.js +96 -0
- package/dist/__chunks/PR3BB3FG.js.map +1 -0
- package/dist/__chunks/PRHHEVW3.mjs +14 -0
- package/dist/__chunks/PRHHEVW3.mjs.map +1 -0
- package/dist/__chunks/{F3ZST4RL.js → PTAZUBW6.js} +9 -9
- package/dist/__chunks/{F3ZST4RL.js.map → PTAZUBW6.js.map} +1 -1
- package/dist/__chunks/{3PCHHAIY.mjs → QQUTU6E5.mjs} +1 -1
- package/dist/__chunks/QQUTU6E5.mjs.map +1 -0
- package/dist/__chunks/QTRAGVT2.js +81 -0
- package/dist/__chunks/QTRAGVT2.js.map +1 -0
- package/dist/__chunks/QX4SPXNO.js +27 -0
- package/dist/__chunks/QX4SPXNO.js.map +1 -0
- package/dist/__chunks/R3JL4P3Q.js +72 -0
- package/dist/__chunks/R3JL4P3Q.js.map +1 -0
- package/dist/__chunks/{WCEOAOUO.mjs → RBVOI6NO.mjs} +3 -3
- package/dist/__chunks/{WCEOAOUO.mjs.map → RBVOI6NO.mjs.map} +1 -1
- package/dist/__chunks/{A7UVLRKG.mjs → RCT3DP22.mjs} +1 -1
- package/dist/__chunks/RCT3DP22.mjs.map +1 -0
- package/dist/__chunks/{MZEIZAZH.mjs → S2O3PM7G.mjs} +2 -2
- package/dist/__chunks/{TPMQI44L.js → S2OLRDIA.js} +1 -1
- package/dist/__chunks/S2OLRDIA.js.map +1 -0
- package/dist/__chunks/{XN5AALLC.mjs → SFLBYQCV.mjs} +2 -1
- package/dist/__chunks/SFLBYQCV.mjs.map +1 -0
- package/dist/__chunks/{Q2TIB7ZC.mjs → SSU3B5AR.mjs} +3 -2
- package/dist/__chunks/SSU3B5AR.mjs.map +1 -0
- package/dist/__chunks/{M6YFAP6P.mjs → SWA6IQLD.mjs} +1 -1
- package/dist/__chunks/{M6YFAP6P.mjs.map → SWA6IQLD.mjs.map} +1 -1
- package/dist/__chunks/TC3MWLLE.js +20 -0
- package/dist/__chunks/TC3MWLLE.js.map +1 -0
- package/dist/__chunks/{ERJ5XXDH.js → TCDLLMZO.js} +12 -12
- package/dist/__chunks/{ERJ5XXDH.js.map → TCDLLMZO.js.map} +1 -1
- package/dist/__chunks/TCXV6BXC.js +34 -0
- package/dist/__chunks/TCXV6BXC.js.map +1 -0
- package/dist/__chunks/{FOTKCGZZ.js → TQ4QQTSW.js} +6 -6
- package/dist/__chunks/TQ4QQTSW.js.map +1 -0
- package/dist/__chunks/USJPERI4.js +58 -0
- package/dist/__chunks/USJPERI4.js.map +1 -0
- package/dist/__chunks/{5R6HCJP6.mjs → V4YM6NMQ.mjs} +3 -3
- package/dist/__chunks/{5R6HCJP6.mjs.map → V4YM6NMQ.mjs.map} +1 -1
- package/dist/__chunks/VDPH7IK3.js +105 -0
- package/dist/__chunks/VDPH7IK3.js.map +1 -0
- package/dist/__chunks/{2O6FDRTF.js → VPGRPGP7.js} +1 -1
- package/dist/__chunks/VPGRPGP7.js.map +1 -0
- package/dist/__chunks/WIDP7NHD.mjs +72 -0
- package/dist/__chunks/WIDP7NHD.mjs.map +1 -0
- package/dist/__chunks/{X74O4HUS.js → WLELQDTJ.js} +5 -5
- package/dist/__chunks/{X74O4HUS.js.map → WLELQDTJ.js.map} +1 -1
- package/dist/__chunks/{2PHVTRWC.js → WO3NKGKN.js} +7 -7
- package/dist/__chunks/{2PHVTRWC.js.map → WO3NKGKN.js.map} +1 -1
- package/dist/__chunks/WOYU2W3H.js +53 -0
- package/dist/__chunks/WOYU2W3H.js.map +1 -0
- package/dist/__chunks/WPIBNMAN.mjs +53 -0
- package/dist/__chunks/WPIBNMAN.mjs.map +1 -0
- package/dist/__chunks/WSCARST6.mjs +58 -0
- package/dist/__chunks/WSCARST6.mjs.map +1 -0
- package/dist/__chunks/{HQVZUEWO.js → YKIJQZYO.js} +2 -1
- package/dist/__chunks/YKIJQZYO.js.map +1 -0
- package/dist/__chunks/YOICG7YI.mjs +31 -0
- package/dist/__chunks/YOICG7YI.mjs.map +1 -0
- package/dist/__chunks/{BWTLHCW3.mjs → YUPTQIXD.mjs} +3 -3
- package/dist/__chunks/{BWTLHCW3.mjs.map → YUPTQIXD.mjs.map} +1 -1
- package/dist/__chunks/Z6VJIDKQ.js +31 -0
- package/dist/__chunks/Z6VJIDKQ.js.map +1 -0
- package/dist/__chunks/ZCN7X7TS.js +14 -0
- package/dist/__chunks/ZCN7X7TS.js.map +1 -0
- package/dist/__chunks/ZHZ6U63Z.mjs +29 -0
- package/dist/__chunks/{R6CDK4GP.mjs.map → ZHZ6U63Z.mjs.map} +1 -1
- package/dist/colors/backgroundColor.css +1 -1
- package/dist/colors/backgroundColor.css.map +1 -1
- package/dist/colors/backgroundColor.js +3 -3
- package/dist/colors/backgroundColor.mjs +2 -2
- package/dist/colors/foregroundColor.css +1 -1
- package/dist/colors/foregroundColor.css.map +1 -1
- package/dist/colors/foregroundColor.js +3 -3
- package/dist/colors/foregroundColor.mjs +2 -2
- package/dist/colors/foregroundTypographyColor.js +2 -2
- package/dist/colors/foregroundTypographyColor.mjs +1 -1
- package/dist/index.css +288 -290
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +33 -28
- package/dist/index.mjs +32 -27
- package/package.json +16 -16
- package/LICENSE +0 -201
- package/dist/__chunks/2O6FDRTF.js.map +0 -1
- package/dist/__chunks/3PCHHAIY.mjs.map +0 -1
- package/dist/__chunks/4PWSK5GI.js.map +0 -1
- package/dist/__chunks/6VWFOSQZ.js.map +0 -1
- package/dist/__chunks/A7UVLRKG.mjs.map +0 -1
- package/dist/__chunks/BJXYKZMK.mjs.map +0 -1
- package/dist/__chunks/CATJI2RJ.js +0 -26
- package/dist/__chunks/CATJI2RJ.js.map +0 -1
- package/dist/__chunks/D24RSGYP.js.map +0 -1
- package/dist/__chunks/ERXGNP37.js.map +0 -1
- package/dist/__chunks/FOTKCGZZ.js.map +0 -1
- package/dist/__chunks/FWVHWU47.mjs.map +0 -1
- package/dist/__chunks/G4DDTGDI.js +0 -31
- package/dist/__chunks/G4DDTGDI.js.map +0 -1
- package/dist/__chunks/GPS2XNQI.js.map +0 -1
- package/dist/__chunks/HAZN2FCY.mjs.map +0 -1
- package/dist/__chunks/HQVZUEWO.js.map +0 -1
- package/dist/__chunks/JSEHOGL7.mjs.map +0 -1
- package/dist/__chunks/LJHH6KUW.js.map +0 -1
- package/dist/__chunks/LKQ7PJ4S.mjs.map +0 -1
- package/dist/__chunks/SXTRSFG5.mjs.map +0 -1
- package/dist/__chunks/TPMQI44L.js.map +0 -1
- package/dist/__chunks/WJDAVT5R.mjs.map +0 -1
- /package/dist/__chunks/{MX7C572C.mjs.map → A2VHEPTR.mjs.map} +0 -0
- /package/dist/__chunks/{RVT6EXR3.mjs.map → MF2FZIOI.mjs.map} +0 -0
- /package/dist/__chunks/{CQ2HIJ62.js.map → O24347EQ.js.map} +0 -0
- /package/dist/__chunks/{BSFWQWVJ.js.map → OLOF45YI.js.map} +0 -0
- /package/dist/__chunks/{2JWMSFS7.js.map → P4CNOF3E.js.map} +0 -0
- /package/dist/__chunks/{MZEIZAZH.mjs.map → S2O3PM7G.mjs.map} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _TCXV6BXCjs = require('./TCXV6BXC.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _AFINOME7js = require('./AFINOME7.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _Z6VJIDKQjs = require('./Z6VJIDKQ.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _4EEVXYO7js = require('./4EEVXYO7.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _42YPEAFSjs = require('./42YPEAFS.js');
|
|
16
16
|
|
|
17
17
|
// src/Modal/Modal.tsx
|
|
18
18
|
var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames);
|
|
@@ -46,7 +46,7 @@ function Modal({
|
|
|
46
46
|
zIndex = 1,
|
|
47
47
|
"data-testid": dataTestId
|
|
48
48
|
}) {
|
|
49
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
49
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Z6VJIDKQjs.Layer, { zIndex, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _AFINOME7js.StopScroll, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _42YPEAFSjs.FocusTrap, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
50
50
|
"div",
|
|
51
51
|
{
|
|
52
52
|
className: Modal_module_default.backdrop,
|
|
@@ -54,7 +54,7 @@ function Modal({
|
|
|
54
54
|
onClick: (e) => e.target === e.currentTarget && onDismiss(),
|
|
55
55
|
onKeyDown: (e) => e.key === "Escape" && onDismiss(),
|
|
56
56
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
57
|
-
|
|
57
|
+
_4EEVXYO7js.Box_default,
|
|
58
58
|
{
|
|
59
59
|
"data-testid": dataTestId,
|
|
60
60
|
backgroundColor: "white",
|
|
@@ -66,7 +66,7 @@ function Modal({
|
|
|
66
66
|
width: "100%",
|
|
67
67
|
dangerouslySetInlineStyle: { __style: { overflow: "hidden" } },
|
|
68
68
|
children: [
|
|
69
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
69
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _4EEVXYO7js.Box_default, { position: "relative", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
70
70
|
"button",
|
|
71
71
|
{
|
|
72
72
|
"aria-label": accessibilityCloseLabel,
|
|
@@ -78,12 +78,12 @@ function Modal({
|
|
|
78
78
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, XIcon, { color: image ? "#fff" : "#000" })
|
|
79
79
|
}
|
|
80
80
|
) }),
|
|
81
|
-
image && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
82
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
83
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
84
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
81
|
+
image && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _4EEVXYO7js.Box_default, { maxHeight: 200, children: image }),
|
|
82
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _4EEVXYO7js.Box_default, { display: "flex", gap: 3, direction: "column", padding: 9, children: [
|
|
83
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _TCXV6BXCjs.Heading_default, { as: "h1", size: 500, children: header }),
|
|
84
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _4EEVXYO7js.Box_default, { marginBottom: 4, children }),
|
|
85
85
|
footer && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
86
|
-
|
|
86
|
+
_4EEVXYO7js.Box_default,
|
|
87
87
|
{
|
|
88
88
|
display: "flex",
|
|
89
89
|
direction: "column",
|
|
@@ -107,4 +107,4 @@ Modal.displayName = "Modal";
|
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
exports.Modal = Modal;
|
|
110
|
-
//# sourceMappingURL=
|
|
110
|
+
//# sourceMappingURL=BFZW2SIU.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Modal/Modal.tsx","css-module:./Modal.module.css#css-module"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,OAAO,gBAAgB;;;
|
|
1
|
+
{"version":3,"sources":["../../src/Modal/Modal.tsx","css-module:./Modal.module.css#css-module"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,OAAO,gBAAgB;;;ACDkE,IAAO,uBAAQ,EAAC,YAAW,qBAAoB,eAAc,yBAAwB,wBAAuB,iCAAgC;;;ADc/N,cAiKQ,YAjKR;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,SACE,oBAAC,SAAM,QACL,8BAAC,cACC,8BAAC,aACC;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,qBAA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"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\";\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 return (\n <Layer zIndex={zIndex}>\n <StopScroll>\n <FocusTrap>\n <div\n className={styles.backdrop}\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(styles.closeButton, {\n [styles.closeButtonWithImage]: !!image,\n })}\n onClick={onDismiss}\n >\n <XIcon color={image ? \"#fff\" : \"#000\"} />\n </button>\n </Box>\n {image && <Box maxHeight={200}>{image}</Box>}\n <Box display=\"flex\" gap={3} direction=\"column\" padding={9}>\n <Heading as=\"h1\" size={500}>\n {header}\n </Heading>\n <Box marginBottom={4}>{children}</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 \"/Users/christian/cambly/syntax/packages/syntax-core/src/Modal/Modal.module.css\"; export default {\"backdrop\":\"_backdrop_30t3h_1\",\"closeButton\":\"_closeButton_30t3h_12\",\"closeButtonWithImage\":\"_closeButtonWithImage_30t3h_32\"}"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// css-module:../Button.module.css#css-module
|
|
2
|
+
var Button_module_default = { "button": "_button_raa9c_1", "buttonGap": "_buttonGap_raa9c_10", "fullWidth": "_fullWidth_raa9c_51", "sm": "_sm_raa9c_55", "md": "_md_raa9c_61", "lg": "_lg_raa9c_67", "icon": "_icon_raa9c_73", "smIcon": "_smIcon_raa9c_77", "mdIcon": "_mdIcon_raa9c_84", "lgIcon": "_lgIcon_raa9c_91", "secondaryBorder": "_secondaryBorder_raa9c_98", "secondaryDestructiveBorder": "_secondaryDestructiveBorder_raa9c_102", "loading": "_loading_raa9c_116", "syntaxButtonLoadingRotate": "_syntaxButtonLoadingRotate_raa9c_1", "loadingCircle": "_loadingCircle_raa9c_120" };
|
|
3
|
+
|
|
4
|
+
// src/Button/constants/iconSize.ts
|
|
5
|
+
var iconSize = {
|
|
6
|
+
["sm"]: Button_module_default.smIcon,
|
|
7
|
+
["md"]: Button_module_default.mdIcon,
|
|
8
|
+
["lg"]: Button_module_default.lgIcon
|
|
9
|
+
};
|
|
10
|
+
var iconSize_default = iconSize;
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.iconSize_default = iconSize_default;
|
|
15
|
+
//# sourceMappingURL=BNRC45PX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["css-module:../Button.module.css#css-module","../../src/Button/constants/iconSize.ts"],"names":[],"mappings":";AAA2F,IAAO,wBAAQ,EAAC,UAAS,mBAAkB,aAAY,uBAAsB,aAAY,uBAAsB,MAAK,gBAAe,MAAK,gBAAe,MAAK,gBAAe,QAAO,kBAAiB,UAAS,oBAAmB,UAAS,oBAAmB,UAAS,oBAAmB,mBAAkB,6BAA4B,8BAA6B,yCAAwC,WAAU,sBAAqB,6BAA4B,sCAAqC,iBAAgB,2BAA0B;;;ACE/mB,IAAM,WAAW;AAAA,EACf,CAAC,IAAI,GAAG,sBAAO;AAAA,EACf,CAAC,IAAI,GAAG,sBAAO;AAAA,EACf,CAAC,IAAI,GAAG,sBAAO;AACjB;AAEA,IAAO,mBAAQ","sourcesContent":["import \"/Users/christian/cambly/syntax/packages/syntax-core/src/Button/Button.module.css\"; export default {\"button\":\"_button_raa9c_1\",\"buttonGap\":\"_buttonGap_raa9c_10\",\"fullWidth\":\"_fullWidth_raa9c_51\",\"sm\":\"_sm_raa9c_55\",\"md\":\"_md_raa9c_61\",\"lg\":\"_lg_raa9c_67\",\"icon\":\"_icon_raa9c_73\",\"smIcon\":\"_smIcon_raa9c_77\",\"mdIcon\":\"_mdIcon_raa9c_84\",\"lgIcon\":\"_lgIcon_raa9c_91\",\"secondaryBorder\":\"_secondaryBorder_raa9c_98\",\"secondaryDestructiveBorder\":\"_secondaryDestructiveBorder_raa9c_102\",\"loading\":\"_loading_raa9c_116\",\"syntaxButtonLoadingRotate\":\"_syntaxButtonLoadingRotate_raa9c_1\",\"loadingCircle\":\"_loadingCircle_raa9c_120\"}","import styles from \"../Button.module.css\";\n\nconst iconSize = {\n [\"sm\"]: styles.smIcon,\n [\"md\"]: styles.mdIcon,\n [\"lg\"]: styles.lgIcon,\n};\n\nexport default iconSize;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
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"]}
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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":[]}
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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\":\"_sel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
2
2
|
Focus_module_default
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./MQPPALTP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Typography_default
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./3HUELEGR.mjs";
|
|
7
7
|
import {
|
|
8
8
|
useIsHydrated
|
|
9
9
|
} from "./XFKGXL73.mjs";
|
|
@@ -107,4 +107,4 @@ var RadioButton_default = RadioButton;
|
|
|
107
107
|
export {
|
|
108
108
|
RadioButton_default
|
|
109
109
|
};
|
|
110
|
-
//# sourceMappingURL=
|
|
110
|
+
//# sourceMappingURL=D4JUFTND.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/RadioButton/RadioButton.tsx","css-module:./RadioButton.module.css#css-module"],"sourcesContent":["import React, { type ReactElement, useState } from \"react\";\nimport classnames from \"classnames\";\n\nimport styles from \"./RadioButton.module.css\";\nimport focusStyles from \"../Focus.module.css\";\nimport Typography from \"../Typography/Typography\";\nimport useFocusVisible from \"../useFocusVisible\";\nimport useIsHydrated from \"../useIsHydrated\";\n\n/**\n * [RadioButton](https://cambly-syntax.vercel.app/?path=/docs/components-radiobutton--docs) is a radio button with accompanying text\n */\nconst RadioButton = ({\n checked = false,\n \"data-testid\": dataTestId,\n disabled: disabledProp = false,\n error = false,\n id,\n label,\n name,\n onChange,\n size = \"md\",\n value,\n}: {\n /**\n * Whether or not the radio button is checked\n *\n * @defaultValue false\n */\n checked?: boolean;\n /**\n * Test id for the radio button\n */\n \"data-testid\"?: string;\n /**\n * Whether or not the radio button is disabled\n *\n * @defaultValue false\n */\n disabled?: boolean;\n /**\n * Whether to show error color schema\n *\n * @defaultValue false\n */\n error?: boolean;\n /**\n * Id for the the radio button\n */\n id?: string;\n /**\n * Value to show end user\n */\n label: string;\n /**\n * The name of the grouping the radio buttons are in\n */\n name: string;\n /**\n * The callback to be called when the radio button is clicked\n */\n onChange: React.ChangeEventHandler<HTMLInputElement>;\n /**\n * Size of the components\n *\n * * `sm`: 16px\n * * `md`: 24px\n *\n * @defaultValue \"md\"\n */\n size?: \"sm\" | \"md\";\n /**\n * Value of the selected radio option\n */\n value: string | number;\n}): ReactElement => {\n const isHydrated = useIsHydrated();\n const disabled = !isHydrated || disabledProp;\n const [isFocused, setIsFocused] = useState(false);\n const { isFocusVisible } = useFocusVisible();\n\n const sharedStyles = classnames(styles.background, styles[size], {\n [styles.errorBorderColor]: error,\n [styles.borderColor]: !error,\n [focusStyles.accessibilityOutlineFocus]: isFocused && isFocusVisible,\n });\n\n return (\n <label\n className={classnames(\n styles.radioBaseContainer,\n styles[`cursor${disabled ? \"Disabled\" : \"Enabled\"}`],\n {\n [styles.disabled]: disabled,\n [styles.smBase]: size === \"sm\",\n [styles.mdBase]: size === \"md\",\n },\n )}\n >\n {checked ? (\n <div\n className={classnames(sharedStyles, {\n [styles.mdCheckedBorder]: size === \"md\",\n [styles.smCheckedBorder]: size === \"sm\",\n })}\n />\n ) : (\n <div className={classnames(sharedStyles, styles.neutralBorder)} />\n )}\n <input\n data-testid={dataTestId}\n type=\"radio\"\n id={id}\n name={name}\n className={classnames(\n styles.radioStyleOverride,\n styles[`cursor${disabled ? \"Disabled\" : \"Enabled\"}`],\n {\n [styles.smOverride]: size === \"sm\",\n [styles.mdOverride]: size === \"md\",\n },\n )}\n checked={checked}\n onChange={onChange}\n disabled={disabled}\n value={value}\n onFocus={() => {\n setIsFocused(true);\n }}\n onBlur={() => {\n setIsFocused(false);\n }}\n />\n {label && (\n <Typography\n size={size === \"md\" ? 200 : 100}\n color={error ? \"destructive-primary\" : \"gray800\"}\n >\n {label}\n </Typography>\n )}\n </label>\n );\n};\n\nexport default RadioButton;\n","import \"/
|
|
1
|
+
{"version":3,"sources":["../../src/RadioButton/RadioButton.tsx","css-module:./RadioButton.module.css#css-module"],"sourcesContent":["import React, { type ReactElement, useState } from \"react\";\nimport classnames from \"classnames\";\n\nimport styles from \"./RadioButton.module.css\";\nimport focusStyles from \"../Focus.module.css\";\nimport Typography from \"../Typography/Typography\";\nimport useFocusVisible from \"../useFocusVisible\";\nimport useIsHydrated from \"../useIsHydrated\";\n\n/**\n * [RadioButton](https://cambly-syntax.vercel.app/?path=/docs/components-radiobutton--docs) is a radio button with accompanying text\n */\nconst RadioButton = ({\n checked = false,\n \"data-testid\": dataTestId,\n disabled: disabledProp = false,\n error = false,\n id,\n label,\n name,\n onChange,\n size = \"md\",\n value,\n}: {\n /**\n * Whether or not the radio button is checked\n *\n * @defaultValue false\n */\n checked?: boolean;\n /**\n * Test id for the radio button\n */\n \"data-testid\"?: string;\n /**\n * Whether or not the radio button is disabled\n *\n * @defaultValue false\n */\n disabled?: boolean;\n /**\n * Whether to show error color schema\n *\n * @defaultValue false\n */\n error?: boolean;\n /**\n * Id for the the radio button\n */\n id?: string;\n /**\n * Value to show end user\n */\n label: string;\n /**\n * The name of the grouping the radio buttons are in\n */\n name: string;\n /**\n * The callback to be called when the radio button is clicked\n */\n onChange: React.ChangeEventHandler<HTMLInputElement>;\n /**\n * Size of the components\n *\n * * `sm`: 16px\n * * `md`: 24px\n *\n * @defaultValue \"md\"\n */\n size?: \"sm\" | \"md\";\n /**\n * Value of the selected radio option\n */\n value: string | number;\n}): ReactElement => {\n const isHydrated = useIsHydrated();\n const disabled = !isHydrated || disabledProp;\n const [isFocused, setIsFocused] = useState(false);\n const { isFocusVisible } = useFocusVisible();\n\n const sharedStyles = classnames(styles.background, styles[size], {\n [styles.errorBorderColor]: error,\n [styles.borderColor]: !error,\n [focusStyles.accessibilityOutlineFocus]: isFocused && isFocusVisible,\n });\n\n return (\n <label\n className={classnames(\n styles.radioBaseContainer,\n styles[`cursor${disabled ? \"Disabled\" : \"Enabled\"}`],\n {\n [styles.disabled]: disabled,\n [styles.smBase]: size === \"sm\",\n [styles.mdBase]: size === \"md\",\n },\n )}\n >\n {checked ? (\n <div\n className={classnames(sharedStyles, {\n [styles.mdCheckedBorder]: size === \"md\",\n [styles.smCheckedBorder]: size === \"sm\",\n })}\n />\n ) : (\n <div className={classnames(sharedStyles, styles.neutralBorder)} />\n )}\n <input\n data-testid={dataTestId}\n type=\"radio\"\n id={id}\n name={name}\n className={classnames(\n styles.radioStyleOverride,\n styles[`cursor${disabled ? \"Disabled\" : \"Enabled\"}`],\n {\n [styles.smOverride]: size === \"sm\",\n [styles.mdOverride]: size === \"md\",\n },\n )}\n checked={checked}\n onChange={onChange}\n disabled={disabled}\n value={value}\n onFocus={() => {\n setIsFocused(true);\n }}\n onBlur={() => {\n setIsFocused(false);\n }}\n />\n {label && (\n <Typography\n size={size === \"md\" ? 200 : 100}\n color={error ? \"destructive-primary\" : \"gray800\"}\n >\n {label}\n </Typography>\n )}\n </label>\n );\n};\n\nexport default RadioButton;\n","import \"/Users/christian/cambly/syntax/packages/syntax-core/src/RadioButton/RadioButton.module.css\"; export default {\"radioBaseContainer\":\"_radioBaseContainer_6h2zg_1\",\"disabled\":\"_disabled_6h2zg_9\",\"cursorDisabled\":\"_cursorDisabled_6h2zg_13\",\"cursorEnabled\":\"_cursorEnabled_6h2zg_17\",\"smBase\":\"_smBase_6h2zg_21\",\"mdBase\":\"_mdBase_6h2zg_25\",\"radioStyleOverride\":\"_radioStyleOverride_6h2zg_29\",\"smOverride\":\"_smOverride_6h2zg_34\",\"mdOverride\":\"_mdOverride_6h2zg_39\",\"background\":\"_background_6h2zg_44\",\"sm\":\"_sm_6h2zg_21\",\"md\":\"_md_6h2zg_25\",\"neutralBorder\":\"_neutralBorder_6h2zg_61\",\"smCheckedBorder\":\"_smCheckedBorder_6h2zg_65\",\"mdCheckedBorder\":\"_mdCheckedBorder_6h2zg_69\",\"errorBorderColor\":\"_errorBorderColor_6h2zg_73\",\"borderColor\":\"_borderColor_6h2zg_77\"}"],"mappings":";;;;;;;;;;;;;;AAAA,SAAmC,gBAAgB;AACnD,OAAO,gBAAgB;;;ACD8E,IAAO,6BAAQ,EAAC,sBAAqB,+BAA8B,YAAW,qBAAoB,kBAAiB,4BAA2B,iBAAgB,2BA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AAsC,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\"}"]}
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var _HOUO3WV6js = require('./HOUO3WV6.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _VPGRPGP7js = require('./VPGRPGP7.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _PTAZUBW6js = require('./PTAZUBW6.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _YJ7YDIGBjs = require('./YJ7YDIGB.js');
|
|
@@ -62,7 +62,7 @@ function SelectList({
|
|
|
62
62
|
[SelectList_module_default.opacityOverlay]: disabled
|
|
63
63
|
}),
|
|
64
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,
|
|
65
|
+
label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: selectId, className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _PTAZUBW6js.Typography_default, { size: 100, color: "gray700", children: label }) }),
|
|
66
66
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SelectList_module_default.selectWrapper, children: [
|
|
67
67
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
68
68
|
"select",
|
|
@@ -74,7 +74,7 @@ function SelectList({
|
|
|
74
74
|
[SelectList_module_default.unselected]: !selectedValue && !errorText,
|
|
75
75
|
[SelectList_module_default.selected]: selectedValue && !errorText,
|
|
76
76
|
[SelectList_module_default.selectError]: errorText,
|
|
77
|
-
[
|
|
77
|
+
[_VPGRPGP7js.Focus_module_default.accessibilityOutlineFocus]: isFocused && isFocusVisible,
|
|
78
78
|
// for focus keyboard
|
|
79
79
|
[SelectList_module_default.selectMouseFocusStyling]: isFocused && !isFocusVisible
|
|
80
80
|
// for focus mouse
|
|
@@ -108,7 +108,7 @@ function SelectList({
|
|
|
108
108
|
) })
|
|
109
109
|
] }),
|
|
110
110
|
(helperText || errorText) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
111
|
-
|
|
111
|
+
_PTAZUBW6js.Typography_default,
|
|
112
112
|
{
|
|
113
113
|
size: 100,
|
|
114
114
|
color: errorText ? "destructive-primary" : "gray700",
|
|
@@ -124,4 +124,4 @@ SelectList.Option = _HOUO3WV6js.SelectOption_default;
|
|
|
124
124
|
|
|
125
125
|
|
|
126
126
|
exports.SelectList = SelectList;
|
|
127
|
-
//# sourceMappingURL=
|
|
127
|
+
//# sourceMappingURL=DPOT7MLO.js.map
|
|
@@ -1 +1 @@
|
|
|
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;;;ACpBoE,IAAO,4BAAQ,EAAC,mBAAkB,4BAA2B,kBAAiB,2BAA0B,sBAAqB,gCAA+B,iBAAgB,2BAA0B,aAA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AA;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, 12 Dec 2023 23:54:26 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 Elevation400 = \"0px 16px 32px 0px #00000040\";\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/SelectList/SelectList.module.css\"; export default {\"selectContainer\":\"_selectContainer_3ifov_1\",\"opacityOverlay\":\"_opacityOverlay_3ifov_7\",\"outerTextContainer\":\"_outerTextContainer_3ifov_11\",\"selectWrapper\":\"_selectWrapper_3ifov_16\",\"selectBox\":\"_selectBox_3ifov_21\",\"selectMouseFocusStyling\":\"_selectMouseFocusStyling_3ifov_37\",\"unselected\":\"_unselected_3ifov_42\",\"selected\":\"_selected_3ifov_46\",\"arrowIcon\":\"_arrowIcon_3ifov_50\",\"sm\":\"_sm_3ifov_64\",\"md\":\"_md_3ifov_70\",\"lg\":\"_lg_3ifov_76\",\"selectError\":\"_selectError_3ifov_82\"}"]}
|
|
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,EA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AAU;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, 09 Jan 2024 10:59:42 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 = \"#ffe14c\";\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_3ifov_1\",\"opacityOverlay\":\"_opacityOverlay_3ifov_7\",\"outerTextContainer\":\"_outerTextContainer_3ifov_11\",\"selectWrapper\":\"_selectWrapper_3ifov_16\",\"selectBox\":\"_selectBox_3ifov_21\",\"selectMouseFocusStyling\":\"_selectMouseFocusStyling_3ifov_37\",\"unselected\":\"_unselected_3ifov_42\",\"selected\":\"_selected_3ifov_46\",\"arrowIcon\":\"_arrowIcon_3ifov_50\",\"sm\":\"_sm_3ifov_64\",\"md\":\"_md_3ifov_70\",\"lg\":\"_lg_3ifov_76\",\"selectError\":\"_selectError_3ifov_82\"}"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"]}
|
|
@@ -0,0 +1 @@
|
|
|
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\"}"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/colors/foregroundColor.ts"],"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
|
|
1
|
+
{"version":3,"sources":["../../src/colors/foregroundColor.ts"],"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"],"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;","names":[]}
|