@cambly/syntax-core 10.36.0 → 10.38.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 +4 -4
- package/dist/Avatar/Avatar.css +8 -0
- package/dist/Avatar/Avatar.css.map +1 -1
- package/dist/Avatar/Avatar.d.ts +1 -1
- package/dist/Avatar/Avatar.js +3 -3
- package/dist/AvatarGroup/AvatarGroup.cjs +3 -3
- package/dist/AvatarGroup/AvatarGroup.css +8 -0
- package/dist/AvatarGroup/AvatarGroup.css.map +1 -1
- package/dist/AvatarGroup/AvatarGroup.js +2 -2
- package/dist/Badge/Badge.cjs +3 -3
- package/dist/Badge/Badge.css +8 -0
- package/dist/Badge/Badge.css.map +1 -1
- package/dist/Badge/Badge.js +2 -2
- package/dist/Box/Box.cjs +2 -2
- package/dist/Box/Box.css +8 -0
- package/dist/Box/Box.css.map +1 -1
- package/dist/Box/Box.d.ts +9 -0
- package/dist/Box/Box.js +1 -1
- package/dist/Button/Button.cjs +5 -5
- package/dist/Button/Button.css +27 -19
- package/dist/Button/Button.css.map +1 -1
- package/dist/Button/Button.js +4 -4
- package/dist/Button/constants/iconSize.cjs +2 -2
- package/dist/Button/constants/iconSize.css +19 -19
- package/dist/Button/constants/iconSize.css.map +1 -1
- package/dist/Button/constants/iconSize.js +1 -1
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/Card/Card.cjs +3 -3
- package/dist/Card/Card.css +8 -0
- package/dist/Card/Card.css.map +1 -1
- package/dist/Card/Card.js +2 -2
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Chip/Chip.cjs +3 -3
- package/dist/Chip/Chip.css +8 -0
- package/dist/Chip/Chip.css.map +1 -1
- package/dist/Chip/Chip.js +2 -2
- package/dist/Dialog/ModalDialog.cjs +3 -3
- package/dist/Dialog/ModalDialog.css +8 -0
- package/dist/Dialog/ModalDialog.css.map +1 -1
- package/dist/Dialog/ModalDialog.js +2 -2
- package/dist/Heading/Heading.d.ts +1 -1
- package/dist/LinkButton/LinkButton.cjs +4 -3
- package/dist/LinkButton/LinkButton.css +19 -19
- package/dist/LinkButton/LinkButton.css.map +1 -1
- package/dist/LinkButton/LinkButton.d.ts +6 -0
- package/dist/LinkButton/LinkButton.js +3 -2
- package/dist/Modal/Layer.cjs +3 -3
- package/dist/Modal/Layer.css +8 -0
- package/dist/Modal/Layer.css.map +1 -1
- package/dist/Modal/Layer.js +2 -2
- package/dist/Modal/Modal.cjs +4 -4
- package/dist/Modal/Modal.css +8 -0
- package/dist/Modal/Modal.css.map +1 -1
- package/dist/Modal/Modal.js +3 -3
- package/dist/Popover/Popover.cjs +4 -4
- package/dist/Popover/Popover.css +8 -0
- package/dist/Popover/Popover.css.map +1 -1
- package/dist/Popover/Popover.js +3 -3
- package/dist/RadioButton/RadioButton.cjs +3 -3
- package/dist/RadioButton/RadioButton.css +8 -0
- package/dist/RadioButton/RadioButton.css.map +1 -1
- package/dist/RadioButton/RadioButton.d.ts +1 -1
- package/dist/RadioButton/RadioButton.js +2 -2
- package/dist/RichSelect/RichSelectBox.cjs +10 -10
- package/dist/RichSelect/RichSelectBox.css +27 -19
- package/dist/RichSelect/RichSelectBox.css.map +1 -1
- package/dist/RichSelect/RichSelectBox.d.ts +1 -1
- package/dist/RichSelect/RichSelectBox.js +9 -9
- package/dist/RichSelect/RichSelectChip.cjs +4 -4
- package/dist/RichSelect/RichSelectChip.css +8 -0
- package/dist/RichSelect/RichSelectChip.css.map +1 -1
- package/dist/RichSelect/RichSelectChip.js +3 -3
- package/dist/RichSelect/RichSelectList.cjs +14 -14
- package/dist/RichSelect/RichSelectList.css +27 -19
- package/dist/RichSelect/RichSelectList.css.map +1 -1
- package/dist/RichSelect/RichSelectList.d.ts +1 -1
- package/dist/RichSelect/RichSelectList.js +13 -13
- package/dist/RichSelect/RichSelectRadioButton.cjs +4 -4
- package/dist/RichSelect/RichSelectRadioButton.css +8 -0
- package/dist/RichSelect/RichSelectRadioButton.css.map +1 -1
- package/dist/RichSelect/RichSelectRadioButton.d.ts +1 -1
- package/dist/RichSelect/RichSelectRadioButton.js +3 -3
- package/dist/SelectList/SelectList.cjs +4 -4
- package/dist/SelectList/SelectList.css +8 -0
- package/dist/SelectList/SelectList.css.map +1 -1
- package/dist/SelectList/SelectList.js +3 -3
- package/dist/TapArea/TapArea.d.ts +1 -1
- package/dist/TextArea/TextArea.cjs +3 -3
- package/dist/TextArea/TextArea.css +8 -0
- package/dist/TextArea/TextArea.css.map +1 -1
- package/dist/TextArea/TextArea.js +2 -2
- package/dist/TextField/TextField.cjs +3 -3
- package/dist/TextField/TextField.css +8 -0
- package/dist/TextField/TextField.css.map +1 -1
- package/dist/TextField/TextField.js +2 -2
- package/dist/Typography/Typography.d.ts +1 -1
- package/dist/__chunks/{C2F5LYEQ.cjs → 3OMIAWRN.cjs} +34 -9
- package/dist/__chunks/3OMIAWRN.cjs.map +1 -0
- package/dist/__chunks/{UGIRVBGY.cjs → 45TK5V2G.cjs} +18 -18
- package/dist/__chunks/{Y3D5XFML.js → 4EIK6LQR.js} +2 -2
- package/dist/__chunks/{AWZCK6T3.js → 535SBVS5.js} +2 -2
- package/dist/__chunks/{N5N4HUQB.js → 6PRG6ZYW.js} +2 -2
- package/dist/__chunks/{BBDZRW7U.js → A5FQZ2CW.js} +1 -1
- package/dist/__chunks/{BBDZRW7U.js.map → A5FQZ2CW.js.map} +1 -1
- package/dist/__chunks/{EDYJVVT6.js → A6EQN4YQ.js} +5 -5
- package/dist/__chunks/{JYW7KNV7.js → ASY5BZ34.js} +11 -9
- package/dist/__chunks/ASY5BZ34.js.map +1 -0
- package/dist/__chunks/BHN2OODF.cjs +17 -0
- package/dist/__chunks/BHN2OODF.cjs.map +1 -0
- package/dist/__chunks/{TY6VF7DF.cjs → BOU7KSFV.cjs} +11 -11
- package/dist/__chunks/C7PW7CPK.js +17 -0
- package/dist/__chunks/C7PW7CPK.js.map +1 -0
- package/dist/__chunks/{ALD77RKF.cjs → CHOHIFJN.cjs} +3 -3
- package/dist/__chunks/{FPDQA475.cjs → COLPERJT.cjs} +5 -5
- package/dist/__chunks/{WHQ73FAY.js → CTNDDLBZ.js} +2 -2
- package/dist/__chunks/{2Y7Y6KGW.cjs → D5AQ3PGB.cjs} +3 -3
- package/dist/__chunks/{CA6LTZL7.cjs → D62L3CWM.cjs} +3 -3
- package/dist/__chunks/{MARZTIPV.cjs → EZUXET6V.cjs} +3 -3
- package/dist/__chunks/{DB7KX3J2.cjs → FESAFV44.cjs} +7 -1
- package/dist/__chunks/FESAFV44.cjs.map +1 -0
- package/dist/__chunks/{2LV4KJ5U.js → FVGIQTM2.js} +2 -2
- package/dist/__chunks/{B4BYSLWK.js → H3IUTBTY.js} +2 -2
- package/dist/__chunks/{5A5IBIPC.cjs → JRTUP3VP.cjs} +8 -8
- package/dist/__chunks/{4A6OSK3V.js → JUQWWD2D.js} +3 -3
- package/dist/__chunks/{44BDRP6O.js → K65WDLIC.js} +2 -2
- package/dist/__chunks/{UU3JE4UT.js → LDHALTXE.js} +2 -2
- package/dist/__chunks/{J6DAGNNN.js → M36V23WR.js} +7 -1
- package/dist/__chunks/M36V23WR.js.map +1 -0
- package/dist/__chunks/{EMUPGJ7I.cjs → MOJ335LT.cjs} +5 -5
- package/dist/__chunks/{SLDP6ZJE.js → NMX5UDLV.js} +2 -2
- package/dist/__chunks/{F2PXZG4G.js → OSEMTZVK.js} +7 -7
- package/dist/__chunks/{YICZLNHI.cjs → OUH7XWQR.cjs} +4 -4
- package/dist/__chunks/{DLZDG6HM.js → QVOCSKIN.js} +32 -7
- package/dist/__chunks/QVOCSKIN.js.map +1 -0
- package/dist/__chunks/{7JPWJT4Z.js → RQ5XRLL6.js} +2 -2
- package/dist/__chunks/{FWLRUQPX.js → SNF42PSE.js} +3 -3
- package/dist/__chunks/{H6VD4C7I.js → SSVDOCMD.js} +2 -2
- package/dist/__chunks/{DOQ5YEJ4.cjs → T2G4KRBE.cjs} +3 -3
- package/dist/__chunks/{52L4VM3G.cjs → T2WJJCS3.cjs} +3 -3
- package/dist/__chunks/{BKBUTHI5.js → T32LVZ6S.js} +2 -2
- package/dist/__chunks/{BW5Q7OJQ.js → T43E4BS4.js} +3 -3
- package/dist/__chunks/{WBKZQ5CY.cjs → UK6ERDNB.cjs} +6 -6
- package/dist/__chunks/{L2CARKP7.cjs → UT353VLR.cjs} +3 -3
- package/dist/__chunks/{S77S5MVX.cjs → W52D7D34.cjs} +3 -3
- package/dist/__chunks/{6PNFY6W6.cjs → X67IWLZJ.cjs} +13 -13
- package/dist/__chunks/{S5CYISJE.cjs → Y2AMPQUU.cjs} +13 -11
- package/dist/__chunks/Y2AMPQUU.cjs.map +1 -0
- package/dist/__chunks/{VBSPIS4Y.cjs → YUMINZNX.cjs} +1 -1
- package/dist/__chunks/{VBSPIS4Y.cjs.map → YUMINZNX.cjs.map} +1 -1
- package/dist/__chunks/{QVR3OSXW.cjs → ZGI5YNKG.cjs} +3 -3
- package/dist/index.cjs +24 -24
- package/dist/index.css +27 -19
- package/dist/index.css.map +1 -1
- package/dist/index.js +23 -23
- package/package.json +1 -1
- package/dist/__chunks/C2F5LYEQ.cjs.map +0 -1
- package/dist/__chunks/DB7KX3J2.cjs.map +0 -1
- package/dist/__chunks/DLZDG6HM.js.map +0 -1
- package/dist/__chunks/J6DAGNNN.js.map +0 -1
- package/dist/__chunks/JWJK72BH.js +0 -17
- package/dist/__chunks/JWJK72BH.js.map +0 -1
- package/dist/__chunks/JYW7KNV7.js.map +0 -1
- package/dist/__chunks/S5CYISJE.cjs.map +0 -1
- package/dist/__chunks/UAXX2ZEQ.cjs +0 -17
- package/dist/__chunks/UAXX2ZEQ.cjs.map +0 -1
- /package/dist/__chunks/{UGIRVBGY.cjs.map → 45TK5V2G.cjs.map} +0 -0
- /package/dist/__chunks/{Y3D5XFML.js.map → 4EIK6LQR.js.map} +0 -0
- /package/dist/__chunks/{AWZCK6T3.js.map → 535SBVS5.js.map} +0 -0
- /package/dist/__chunks/{N5N4HUQB.js.map → 6PRG6ZYW.js.map} +0 -0
- /package/dist/__chunks/{EDYJVVT6.js.map → A6EQN4YQ.js.map} +0 -0
- /package/dist/__chunks/{TY6VF7DF.cjs.map → BOU7KSFV.cjs.map} +0 -0
- /package/dist/__chunks/{ALD77RKF.cjs.map → CHOHIFJN.cjs.map} +0 -0
- /package/dist/__chunks/{FPDQA475.cjs.map → COLPERJT.cjs.map} +0 -0
- /package/dist/__chunks/{WHQ73FAY.js.map → CTNDDLBZ.js.map} +0 -0
- /package/dist/__chunks/{2Y7Y6KGW.cjs.map → D5AQ3PGB.cjs.map} +0 -0
- /package/dist/__chunks/{CA6LTZL7.cjs.map → D62L3CWM.cjs.map} +0 -0
- /package/dist/__chunks/{MARZTIPV.cjs.map → EZUXET6V.cjs.map} +0 -0
- /package/dist/__chunks/{2LV4KJ5U.js.map → FVGIQTM2.js.map} +0 -0
- /package/dist/__chunks/{B4BYSLWK.js.map → H3IUTBTY.js.map} +0 -0
- /package/dist/__chunks/{5A5IBIPC.cjs.map → JRTUP3VP.cjs.map} +0 -0
- /package/dist/__chunks/{4A6OSK3V.js.map → JUQWWD2D.js.map} +0 -0
- /package/dist/__chunks/{44BDRP6O.js.map → K65WDLIC.js.map} +0 -0
- /package/dist/__chunks/{UU3JE4UT.js.map → LDHALTXE.js.map} +0 -0
- /package/dist/__chunks/{EMUPGJ7I.cjs.map → MOJ335LT.cjs.map} +0 -0
- /package/dist/__chunks/{SLDP6ZJE.js.map → NMX5UDLV.js.map} +0 -0
- /package/dist/__chunks/{F2PXZG4G.js.map → OSEMTZVK.js.map} +0 -0
- /package/dist/__chunks/{YICZLNHI.cjs.map → OUH7XWQR.cjs.map} +0 -0
- /package/dist/__chunks/{7JPWJT4Z.js.map → RQ5XRLL6.js.map} +0 -0
- /package/dist/__chunks/{FWLRUQPX.js.map → SNF42PSE.js.map} +0 -0
- /package/dist/__chunks/{H6VD4C7I.js.map → SSVDOCMD.js.map} +0 -0
- /package/dist/__chunks/{DOQ5YEJ4.cjs.map → T2G4KRBE.cjs.map} +0 -0
- /package/dist/__chunks/{52L4VM3G.cjs.map → T2WJJCS3.cjs.map} +0 -0
- /package/dist/__chunks/{BKBUTHI5.js.map → T32LVZ6S.js.map} +0 -0
- /package/dist/__chunks/{BW5Q7OJQ.js.map → T43E4BS4.js.map} +0 -0
- /package/dist/__chunks/{WBKZQ5CY.cjs.map → UK6ERDNB.cjs.map} +0 -0
- /package/dist/__chunks/{L2CARKP7.cjs.map → UT353VLR.cjs.map} +0 -0
- /package/dist/__chunks/{S77S5MVX.cjs.map → W52D7D34.cjs.map} +0 -0
- /package/dist/__chunks/{6PNFY6W6.cjs.map → X67IWLZJ.cjs.map} +0 -0
- /package/dist/__chunks/{QVR3OSXW.cjs.map → ZGI5YNKG.cjs.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
Chip_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./CTNDDLBZ.js";
|
|
5
5
|
import {
|
|
6
6
|
RichSelectItem_default
|
|
7
7
|
} from "./ODMJANSX.js";
|
|
@@ -31,4 +31,4 @@ var RichSelectChip_default = forwardRef(
|
|
|
31
31
|
export {
|
|
32
32
|
RichSelectChip_default
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=
|
|
34
|
+
//# sourceMappingURL=6PRG6ZYW.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"sourcesContent":["/**\n * Do not edit directly\n * Generated on Mon,
|
|
1
|
+
{"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"sourcesContent":["/**\n * Do not edit directly\n * Generated on Mon, 15 Apr 2024 21:54:12 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\";\nexport const SyntaxFontSansSerif = \"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif\";\n"],"mappings":";;;AASO,IAAM,0BAA0B;AAWhC,IAAM,mBAAmB;","names":[]}
|
|
@@ -4,26 +4,26 @@ import {
|
|
|
4
4
|
} from "./BOX3VY3Q.js";
|
|
5
5
|
import {
|
|
6
6
|
Button_default
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./ASY5BZ34.js";
|
|
8
8
|
import {
|
|
9
9
|
Divider
|
|
10
10
|
} from "./TK2EQ6QG.js";
|
|
11
11
|
import {
|
|
12
12
|
RichSelectChip_default
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./6PRG6ZYW.js";
|
|
14
14
|
import {
|
|
15
15
|
RichSelectSection_default
|
|
16
16
|
} from "./HXTCI7A3.js";
|
|
17
17
|
import {
|
|
18
18
|
RichSelectRadioButton_default
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./RQ5XRLL6.js";
|
|
20
20
|
import {
|
|
21
21
|
RichSelectItemContext,
|
|
22
22
|
RichSelect_module_default
|
|
23
23
|
} from "./ODMJANSX.js";
|
|
24
24
|
import {
|
|
25
25
|
Box_default
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./M36V23WR.js";
|
|
27
27
|
|
|
28
28
|
// src/RichSelect/RichSelectBox.tsx
|
|
29
29
|
import {
|
|
@@ -208,4 +208,4 @@ export {
|
|
|
208
208
|
RichSelectBoxContext,
|
|
209
209
|
RichSelectBox_default
|
|
210
210
|
};
|
|
211
|
-
//# sourceMappingURL=
|
|
211
|
+
//# sourceMappingURL=A6EQN4YQ.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import {
|
|
3
|
-
loadingIconSize_default
|
|
4
|
-
} from "./QSC7CAQA.js";
|
|
5
2
|
import {
|
|
6
3
|
textVariant_default
|
|
7
4
|
} from "./Z5ZUAP2B.js";
|
|
5
|
+
import {
|
|
6
|
+
loadingIconSize_default
|
|
7
|
+
} from "./QSC7CAQA.js";
|
|
8
8
|
import {
|
|
9
9
|
iconSize_default
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./C7PW7CPK.js";
|
|
11
11
|
import {
|
|
12
12
|
foregroundColor
|
|
13
13
|
} from "./UVQS6LU3.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./T6PXFSRX.js";
|
|
20
20
|
import {
|
|
21
21
|
Box_default
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./M36V23WR.js";
|
|
23
23
|
import {
|
|
24
24
|
Typography_default
|
|
25
25
|
} from "./2IXPTAJD.js";
|
|
@@ -32,7 +32,7 @@ import { forwardRef } from "react";
|
|
|
32
32
|
import classNames from "classnames";
|
|
33
33
|
|
|
34
34
|
// css-module:./Button.module.css#css-module
|
|
35
|
-
var Button_module_default = { "button": "
|
|
35
|
+
var Button_module_default = { "button": "_button_hjka3_1", "buttonGap": "_buttonGap_hjka3_8", "disabled": "_disabled_hjka3_42", "disabledPrimary": "_disabledPrimary_hjka3_49", "fullWidth": "_fullWidth_hjka3_53", "sm": "_sm_hjka3_57", "md": "_md_hjka3_64", "lg": "_lg_hjka3_71", "icon": "_icon_hjka3_78", "smIcon": "_smIcon_hjka3_82", "mdIcon": "_mdIcon_hjka3_89", "lgIcon": "_lgIcon_hjka3_96", "loading": "_loading_hjka3_113", "syntaxButtonLoadingRotate": "_syntaxButtonLoadingRotate_hjka3_1", "loadingCircle": "_loadingCircle_hjka3_117" };
|
|
36
36
|
|
|
37
37
|
// src/Button/Button.tsx
|
|
38
38
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -58,6 +58,7 @@ var Button = forwardRef(
|
|
|
58
58
|
const foregroundColorClass = foregroundColor(color, on);
|
|
59
59
|
const backgroundColorClass = backgroundColor(color, on);
|
|
60
60
|
const disabledPrimary = color === "primary" && disabled;
|
|
61
|
+
const isDisabled = !isHydrated || disabled || loading;
|
|
61
62
|
return /* @__PURE__ */ jsxs(
|
|
62
63
|
"button",
|
|
63
64
|
{
|
|
@@ -66,7 +67,7 @@ var Button = forwardRef(
|
|
|
66
67
|
"aria-label": accessibilityLabel,
|
|
67
68
|
type,
|
|
68
69
|
title: tooltip,
|
|
69
|
-
disabled:
|
|
70
|
+
disabled: isDisabled,
|
|
70
71
|
onClick,
|
|
71
72
|
className: classNames(
|
|
72
73
|
Button_module_default.button,
|
|
@@ -76,7 +77,8 @@ var Button = forwardRef(
|
|
|
76
77
|
Button_module_default[size],
|
|
77
78
|
{
|
|
78
79
|
[Button_module_default.fullWidth]: fullWidth,
|
|
79
|
-
[Button_module_default.buttonGap]: size === "lg" || size === "md"
|
|
80
|
+
[Button_module_default.buttonGap]: size === "lg" || size === "md",
|
|
81
|
+
[Button_module_default.disabled]: isDisabled
|
|
80
82
|
}
|
|
81
83
|
),
|
|
82
84
|
children: [
|
|
@@ -141,4 +143,4 @@ var Button_default = Button;
|
|
|
141
143
|
export {
|
|
142
144
|
Button_default
|
|
143
145
|
};
|
|
144
|
-
//# sourceMappingURL=
|
|
146
|
+
//# sourceMappingURL=ASY5BZ34.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Button/Button.tsx","css-module:./Button.module.css#css-module"],"sourcesContent":["import React, { forwardRef } from \"react\";\nimport classNames from \"classnames\";\nimport { type Size } from \"../constants\";\nimport Typography from \"../Typography/Typography\";\nimport Box from \"../Box/Box\";\nimport iconSize from \"./constants/iconSize\";\nimport textVariant from \"./constants/textVariant\";\nimport loadingIconSize from \"./constants/loadingIconSize\";\nimport styles from \"./Button.module.css\";\nimport useIsHydrated from \"../useIsHydrated\";\nimport { backgroundColor } from \"../colors/backgroundColor\";\nimport { foregroundColor } from \"../colors/foregroundColor\";\nimport { border } from \"../colors/border\";\n\ntype ButtonProps = {\n /**\n * Test id for the button\n */\n \"data-testid\"?: string;\n /**\n * The text to be displayed inside the button\n */\n text: string;\n /**\n * The text to be displayed inside the button when it is in a loading state\n */\n loadingText?: string;\n /**\n * The color of the button\n *\n * @defaultValue \"primary\"\n */\n color?:\n | \"primary\"\n | \"secondary\"\n | \"tertiary\"\n | \"destructive-primary\"\n | \"destructive-secondary\"\n | \"destructive-tertiary\"\n | \"branded\"\n | \"success-primary\"\n | \"success-secondary\"\n | \"success-tertiary\";\n /**\n * The size of the button\n *\n * * `sm`: 32px\n * * `md`: 48px\n * * `lg`: 64px\n *\n * @defaultValue \"md\"\n */\n size?: (typeof Size)[number];\n /**\n * The label to be used for accessibility\n */\n accessibilityLabel?: string;\n /**\n * If `true`, the button will be disabled\n *\n * @defaultValue false\n */\n disabled?: boolean;\n /**\n * If `true`, the button will be in a loading state\n *\n * @defaultValue false\n */\n loading?: boolean;\n /**\n * If `true`, the button will take up the full width of its container\n *\n * @defaultValue false\n */\n fullWidth?: boolean;\n /**\n * The icon to be displayed at the start of the button. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)\n */\n startIcon?: React.ComponentType<{ className?: string }>;\n /**\n * The icon to be displayed at the end of the button. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)\n */\n endIcon?: React.ComponentType<{ className?: string }>;\n /**\n * Indicate whether the button renders on a light or dark background. Changes the color of the button\n *\n * @defaulValue `lightBackground`\n */\n on?: \"lightBackground\" | \"darkBackground\";\n /**\n * The callback to be called when the button is clicked\n */\n onClick?: React.MouseEventHandler<HTMLButtonElement>;\n /**\n * The tooltip to be displayed when the user hovers over the button\n */\n tooltip?: string;\n /**\n * The type you want to set for the primitive `<button/>`\n */\n type?: \"button\" | \"submit\" | \"reset\";\n};\n\n/**\n * [Button](https://cambly-syntax.vercel.app/?path=/docs/components-button--docs) is used to trigger an action or event, such as submitting a form, opening a dialog, canceling an action, or performing a delete operation.\n */\nconst Button = forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n \"data-testid\": dataTestId,\n text,\n loadingText,\n color = \"primary\",\n size = \"md\",\n accessibilityLabel,\n disabled = false,\n loading = false,\n fullWidth = false,\n startIcon: StartIcon,\n endIcon: EndIcon,\n on = \"lightBackground\",\n onClick,\n tooltip,\n type = \"button\",\n }: ButtonProps,\n ref,\n ) => {\n const isHydrated = useIsHydrated();\n\n const foregroundColorClass = foregroundColor(color, on);\n const backgroundColorClass = backgroundColor(color, on);\n const disabledPrimary = color === \"primary\" && disabled;\n const isDisabled = !isHydrated || disabled || loading;\n\n return (\n <button\n data-testid={dataTestId}\n ref={ref}\n aria-label={accessibilityLabel}\n type={type}\n title={tooltip}\n disabled={isDisabled}\n onClick={onClick}\n className={classNames(\n styles.button,\n foregroundColorClass,\n backgroundColorClass,\n border(color, on),\n styles[size],\n {\n [styles.fullWidth]: fullWidth,\n [styles.buttonGap]: size === \"lg\" || size === \"md\",\n [styles.disabled]: isDisabled,\n },\n )}\n >\n {!loading && StartIcon && (\n <StartIcon\n className={classNames(\n styles.icon,\n iconSize[size],\n disabledPrimary && styles.disabledPrimary,\n )}\n />\n )}\n {((loading && loadingText) || (!loading && text)) && (\n <Box paddingX={1}>\n <Typography size={textVariant[size]} weight=\"medium\">\n <span\n className={classNames(\n foregroundColorClass,\n disabledPrimary && styles.disabledPrimary,\n )}\n >\n {loading ? loadingText : text}\n </span>\n </Typography>\n </Box>\n )}\n {!loading && EndIcon && (\n <EndIcon\n className={classNames(\n styles.icon,\n iconSize[size],\n disabledPrimary && styles.disabledPrimary,\n )}\n />\n )}\n {loading && (\n <svg\n className={classNames(styles.loading, foregroundColorClass)}\n viewBox=\"22 22 44 44\"\n width={loadingIconSize[size]}\n height={loadingIconSize[size]}\n >\n <circle\n className={styles.loadingCircle}\n cx=\"44\"\n cy=\"44\"\n r=\"20.2\"\n fill=\"none\"\n strokeWidth=\"3.6\"\n />\n </svg>\n )}\n </button>\n );\n },\n);\n\nButton.displayName = \"Button\";\n\nexport default Button;\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Button/Button.module.css\"; export default {\"button\":\"_button_hjka3_1\",\"buttonGap\":\"_buttonGap_hjka3_8\",\"disabled\":\"_disabled_hjka3_42\",\"disabledPrimary\":\"_disabledPrimary_hjka3_49\",\"fullWidth\":\"_fullWidth_hjka3_53\",\"sm\":\"_sm_hjka3_57\",\"md\":\"_md_hjka3_64\",\"lg\":\"_lg_hjka3_71\",\"icon\":\"_icon_hjka3_78\",\"smIcon\":\"_smIcon_hjka3_82\",\"mdIcon\":\"_mdIcon_hjka3_89\",\"lgIcon\":\"_lgIcon_hjka3_96\",\"loading\":\"_loading_hjka3_113\",\"syntaxButtonLoadingRotate\":\"_syntaxButtonLoadingRotate_hjka3_1\",\"loadingCircle\":\"_loadingCircle_hjka3_117\"}"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,kBAAkB;AAClC,OAAO,gBAAgB;;;ACDqE,IAAO,wBAAQ,EAAC,UAAS,mBAAkB,aAAY,sBAAqB,YAAW,sBAAqB,mBAAkB,6BAA4B,aAAY,uBAAsB,MAAK,gBAAe,MAAK,gBAAe,MAAK,gBAAe,QAAO,kBAAiB,UAAS,oBAAmB,UAAS,oBAAmB,UAAS,oBAAmB,WAAU,sBAAqB,6BAA4B,sCAAqC,iBAAgB,2BAA0B;;;ADuIpkB,SAsBI,KAtBJ;AA7BN,IAAM,SAAS;AAAA,EACb,CACE;AAAA,IACE,eAAe;AAAA,IACf;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,IACR,OAAO;AAAA,IACP;AAAA,IACA,WAAW;AAAA,IACX,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,SAAS;AAAA,IACT,KAAK;AAAA,IACL;AAAA,IACA;AAAA,IACA,OAAO;AAAA,EACT,GACA,QACG;AACH,UAAM,aAAa,cAAc;AAEjC,UAAM,uBAAuB,gBAAgB,OAAO,EAAE;AACtD,UAAM,uBAAuB,gBAAgB,OAAO,EAAE;AACtD,UAAM,kBAAkB,UAAU,aAAa;AAC/C,UAAM,aAAa,CAAC,cAAc,YAAY;AAE9C,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAa;AAAA,QACb;AAAA,QACA,cAAY;AAAA,QACZ;AAAA,QACA,OAAO;AAAA,QACP,UAAU;AAAA,QACV;AAAA,QACA,WAAW;AAAA,UACT,sBAAO;AAAA,UACP;AAAA,UACA;AAAA,UACA,OAAO,OAAO,EAAE;AAAA,UAChB,sBAAO,IAAI;AAAA,UACX;AAAA,YACE,CAAC,sBAAO,SAAS,GAAG;AAAA,YACpB,CAAC,sBAAO,SAAS,GAAG,SAAS,QAAQ,SAAS;AAAA,YAC9C,CAAC,sBAAO,QAAQ,GAAG;AAAA,UACrB;AAAA,QACF;AAAA,QAEC;AAAA,WAAC,WAAW,aACX;AAAA,YAAC;AAAA;AAAA,cACC,WAAW;AAAA,gBACT,sBAAO;AAAA,gBACP,iBAAS,IAAI;AAAA,gBACb,mBAAmB,sBAAO;AAAA,cAC5B;AAAA;AAAA,UACF;AAAA,WAEC,WAAW,eAAiB,CAAC,WAAW,SACzC,oBAAC,eAAI,UAAU,GACb,8BAAC,sBAAW,MAAM,oBAAY,IAAI,GAAG,QAAO,UAC1C;AAAA,YAAC;AAAA;AAAA,cACC,WAAW;AAAA,gBACT;AAAA,gBACA,mBAAmB,sBAAO;AAAA,cAC5B;AAAA,cAEC,oBAAU,cAAc;AAAA;AAAA,UAC3B,GACF,GACF;AAAA,UAED,CAAC,WAAW,WACX;AAAA,YAAC;AAAA;AAAA,cACC,WAAW;AAAA,gBACT,sBAAO;AAAA,gBACP,iBAAS,IAAI;AAAA,gBACb,mBAAmB,sBAAO;AAAA,cAC5B;AAAA;AAAA,UACF;AAAA,UAED,WACC;AAAA,YAAC;AAAA;AAAA,cACC,WAAW,WAAW,sBAAO,SAAS,oBAAoB;AAAA,cAC1D,SAAQ;AAAA,cACR,OAAO,wBAAgB,IAAI;AAAA,cAC3B,QAAQ,wBAAgB,IAAI;AAAA,cAE5B;AAAA,gBAAC;AAAA;AAAA,kBACC,WAAW,sBAAO;AAAA,kBAClB,IAAG;AAAA,kBACH,IAAG;AAAA,kBACH,GAAE;AAAA,kBACF,MAAK;AAAA,kBACL,aAAY;AAAA;AAAA,cACd;AAAA;AAAA,UACF;AAAA;AAAA;AAAA,IAEJ;AAAA,EAEJ;AACF;AAEA,OAAO,cAAc;AAErB,IAAO,iBAAQ;","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
|
+
|
|
3
|
+
// css-module:../Button.module.css#css-module
|
|
4
|
+
var Button_module_default = { "button": "_button_hjka3_1", "buttonGap": "_buttonGap_hjka3_8", "disabled": "_disabled_hjka3_42", "disabledPrimary": "_disabledPrimary_hjka3_49", "fullWidth": "_fullWidth_hjka3_53", "sm": "_sm_hjka3_57", "md": "_md_hjka3_64", "lg": "_lg_hjka3_71", "icon": "_icon_hjka3_78", "smIcon": "_smIcon_hjka3_82", "mdIcon": "_mdIcon_hjka3_89", "lgIcon": "_lgIcon_hjka3_96", "loading": "_loading_hjka3_113", "syntaxButtonLoadingRotate": "_syntaxButtonLoadingRotate_hjka3_1", "loadingCircle": "_loadingCircle_hjka3_117" };
|
|
5
|
+
|
|
6
|
+
// src/Button/constants/iconSize.ts
|
|
7
|
+
var iconSize = {
|
|
8
|
+
sm: Button_module_default.smIcon,
|
|
9
|
+
md: Button_module_default.mdIcon,
|
|
10
|
+
lg: Button_module_default.lgIcon
|
|
11
|
+
};
|
|
12
|
+
var iconSize_default = iconSize;
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
exports.iconSize_default = iconSize_default;
|
|
17
|
+
//# sourceMappingURL=BHN2OODF.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["css-module:../Button.module.css#css-module","../../src/Button/constants/iconSize.ts"],"names":[],"mappings":";;;AAA4F,IAAO,wBAAQ,EAAC,UAAS,mBAAkB,aAAY,sBAAqB,YAAW,sBAAqB,mBAAkB,6BAA4B,aAAY,uBAAsB,MAAK,gBAAe,MAAK,gBAAe,MAAK,gBAAe,QAAO,kBAAiB,UAAS,oBAAmB,UAAS,oBAAmB,UAAS,oBAAmB,WAAU,sBAAqB,6BAA4B,sCAAqC,iBAAgB,2BAA0B;;;ACE1kB,IAAM,WAAW;AAAA,EACf,IAAI,sBAAO;AAAA,EACX,IAAI,sBAAO;AAAA,EACX,IAAI,sBAAO;AACb;AAEA,IAAO,mBAAQ","sourcesContent":["import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Button/Button.module.css\"; export default {\"button\":\"_button_hjka3_1\",\"buttonGap\":\"_buttonGap_hjka3_8\",\"disabled\":\"_disabled_hjka3_42\",\"disabledPrimary\":\"_disabledPrimary_hjka3_49\",\"fullWidth\":\"_fullWidth_hjka3_53\",\"sm\":\"_sm_hjka3_57\",\"md\":\"_md_hjka3_64\",\"lg\":\"_lg_hjka3_71\",\"icon\":\"_icon_hjka3_78\",\"smIcon\":\"_smIcon_hjka3_82\",\"mdIcon\":\"_mdIcon_hjka3_89\",\"lgIcon\":\"_lgIcon_hjka3_96\",\"loading\":\"_loading_hjka3_113\",\"syntaxButtonLoadingRotate\":\"_syntaxButtonLoadingRotate_hjka3_1\",\"loadingCircle\":\"_loadingCircle_hjka3_117\"}","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"]}
|
|
@@ -7,7 +7,7 @@ var _CGBH73TMcjs = require('./CGBH73TM.cjs');
|
|
|
7
7
|
var _HUIHS6RNcjs = require('./HUIHS6RN.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _EZUXET6Vcjs = require('./EZUXET6V.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _THM3NAFOcjs = require('./THM3NAFO.cjs');
|
|
@@ -16,7 +16,7 @@ var _THM3NAFOcjs = require('./THM3NAFO.cjs');
|
|
|
16
16
|
var _PROA22UKcjs = require('./PROA22UK.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _FESAFV44cjs = require('./FESAFV44.cjs');
|
|
20
20
|
|
|
21
21
|
// css-module:./Modal.module.css#css-module
|
|
22
22
|
var Modal_module_default = { "backdrop": "_backdrop_17lbk_1", "closeButton": "_closeButton_17lbk_10" };
|
|
@@ -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, _EZUXET6Vcjs.Layer, { zIndex, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _HUIHS6RNcjs.StopScroll, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _THM3NAFOcjs.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
|
+
_FESAFV44cjs.Box_default,
|
|
58
58
|
{
|
|
59
59
|
"data-testid": dataTestId,
|
|
60
60
|
backgroundColor: "white",
|
|
@@ -72,7 +72,7 @@ function Modal({
|
|
|
72
72
|
width: "100%",
|
|
73
73
|
children: [
|
|
74
74
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
75
|
-
|
|
75
|
+
_FESAFV44cjs.Box_default,
|
|
76
76
|
{
|
|
77
77
|
position: "absolute",
|
|
78
78
|
dangerouslySetInlineStyle: {
|
|
@@ -91,11 +91,11 @@ function Modal({
|
|
|
91
91
|
)
|
|
92
92
|
}
|
|
93
93
|
),
|
|
94
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
95
|
-
image && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
96
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
94
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _FESAFV44cjs.Box_default, { display: "flex", direction: "column", width: "100%", children: [
|
|
95
|
+
image && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { children: image }),
|
|
96
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { padding: 6, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _CGBH73TMcjs.Heading_default, { as: "h1", size: 600, fontStyle: "serif", children: header }) }),
|
|
97
97
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
98
|
-
|
|
98
|
+
_FESAFV44cjs.Box_default,
|
|
99
99
|
{
|
|
100
100
|
height: "100%",
|
|
101
101
|
overflowY: "auto",
|
|
@@ -105,7 +105,7 @@ function Modal({
|
|
|
105
105
|
}
|
|
106
106
|
),
|
|
107
107
|
footer && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
108
|
-
|
|
108
|
+
_FESAFV44cjs.Box_default,
|
|
109
109
|
{
|
|
110
110
|
display: "flex",
|
|
111
111
|
direction: "column",
|
|
@@ -130,4 +130,4 @@ Modal.displayName = "Modal";
|
|
|
130
130
|
|
|
131
131
|
|
|
132
132
|
exports.Modal = Modal;
|
|
133
|
-
//# sourceMappingURL=
|
|
133
|
+
//# sourceMappingURL=BOU7KSFV.cjs.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
// css-module:../Button.module.css#css-module
|
|
4
|
+
var Button_module_default = { "button": "_button_hjka3_1", "buttonGap": "_buttonGap_hjka3_8", "disabled": "_disabled_hjka3_42", "disabledPrimary": "_disabledPrimary_hjka3_49", "fullWidth": "_fullWidth_hjka3_53", "sm": "_sm_hjka3_57", "md": "_md_hjka3_64", "lg": "_lg_hjka3_71", "icon": "_icon_hjka3_78", "smIcon": "_smIcon_hjka3_82", "mdIcon": "_mdIcon_hjka3_89", "lgIcon": "_lgIcon_hjka3_96", "loading": "_loading_hjka3_113", "syntaxButtonLoadingRotate": "_syntaxButtonLoadingRotate_hjka3_1", "loadingCircle": "_loadingCircle_hjka3_117" };
|
|
5
|
+
|
|
6
|
+
// src/Button/constants/iconSize.ts
|
|
7
|
+
var iconSize = {
|
|
8
|
+
sm: Button_module_default.smIcon,
|
|
9
|
+
md: Button_module_default.mdIcon,
|
|
10
|
+
lg: Button_module_default.lgIcon
|
|
11
|
+
};
|
|
12
|
+
var iconSize_default = iconSize;
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
iconSize_default
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=C7PW7CPK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["css-module:../Button.module.css#css-module","../../src/Button/constants/iconSize.ts"],"sourcesContent":["import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Button/Button.module.css\"; export default {\"button\":\"_button_hjka3_1\",\"buttonGap\":\"_buttonGap_hjka3_8\",\"disabled\":\"_disabled_hjka3_42\",\"disabledPrimary\":\"_disabledPrimary_hjka3_49\",\"fullWidth\":\"_fullWidth_hjka3_53\",\"sm\":\"_sm_hjka3_57\",\"md\":\"_md_hjka3_64\",\"lg\":\"_lg_hjka3_71\",\"icon\":\"_icon_hjka3_78\",\"smIcon\":\"_smIcon_hjka3_82\",\"mdIcon\":\"_mdIcon_hjka3_89\",\"lgIcon\":\"_lgIcon_hjka3_96\",\"loading\":\"_loading_hjka3_113\",\"syntaxButtonLoadingRotate\":\"_syntaxButtonLoadingRotate_hjka3_1\",\"loadingCircle\":\"_loadingCircle_hjka3_117\"}","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"],"mappings":";;;AAA4F,IAAO,wBAAQ,EAAC,UAAS,mBAAkB,aAAY,sBAAqB,YAAW,sBAAqB,mBAAkB,6BAA4B,aAAY,uBAAsB,MAAK,gBAAe,MAAK,gBAAe,MAAK,gBAAe,QAAO,kBAAiB,UAAS,oBAAmB,UAAS,oBAAmB,UAAS,oBAAmB,WAAU,sBAAqB,6BAA4B,sCAAqC,iBAAgB,2BAA0B;;;ACE1kB,IAAM,WAAW;AAAA,EACf,IAAI,sBAAO;AAAA,EACX,IAAI,sBAAO;AAAA,EACX,IAAI,sBAAO;AACb;AAEA,IAAO,mBAAQ;","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 _FESAFV44cjs = require('./FESAFV44.cjs');
|
|
5
5
|
|
|
6
6
|
// src/AvatarGroup/AvatarGroup.tsx
|
|
7
7
|
|
|
@@ -20,7 +20,7 @@ function AvatarGroup({
|
|
|
20
20
|
children
|
|
21
21
|
}) {
|
|
22
22
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarGroupContext.Provider, { value: { size, orientation }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23
|
-
|
|
23
|
+
_FESAFV44cjs.Box_default,
|
|
24
24
|
{
|
|
25
25
|
display: "flex",
|
|
26
26
|
justifyContent: orientation === "standard" ? "start" : "end",
|
|
@@ -39,4 +39,4 @@ AvatarGroup.displayName = "AvatarGroup";
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
exports.useAvatarGroup = useAvatarGroup; exports.AvatarGroup = AvatarGroup;
|
|
42
|
-
//# sourceMappingURL=
|
|
42
|
+
//# sourceMappingURL=CHOHIFJN.cjs.map
|
|
@@ -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 _FESAFV44cjs = require('./FESAFV44.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _XCGRNBQHcjs = require('./XCGRNBQH.cjs');
|
|
@@ -38,7 +38,7 @@ function TextField({
|
|
|
38
38
|
const reactId = _react.useId.call(void 0, );
|
|
39
39
|
const inputId = id != null ? id : reactId;
|
|
40
40
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
41
|
-
|
|
41
|
+
_FESAFV44cjs.Box_default,
|
|
42
42
|
{
|
|
43
43
|
display: "flex",
|
|
44
44
|
direction: "column",
|
|
@@ -50,7 +50,7 @@ function TextField({
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
children: [
|
|
53
|
-
label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: TextField_module_default.label, htmlFor: inputId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53
|
+
label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: TextField_module_default.label, htmlFor: inputId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _XCGRNBQHcjs.Typography_default, { size: 100, color: "gray700", children: label }) }) }),
|
|
54
54
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
55
55
|
"input",
|
|
56
56
|
{
|
|
@@ -67,7 +67,7 @@ function TextField({
|
|
|
67
67
|
value
|
|
68
68
|
}
|
|
69
69
|
),
|
|
70
|
-
(helperText || errorText) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
70
|
+
(helperText || errorText) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
71
71
|
_XCGRNBQHcjs.Typography_default,
|
|
72
72
|
{
|
|
73
73
|
size: 100,
|
|
@@ -83,4 +83,4 @@ function TextField({
|
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
exports.TextField = TextField;
|
|
86
|
-
//# sourceMappingURL=
|
|
86
|
+
//# sourceMappingURL=COLPERJT.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
Box_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./M36V23WR.js";
|
|
5
5
|
import {
|
|
6
6
|
Typography_default
|
|
7
7
|
} from "./2IXPTAJD.js";
|
|
@@ -88,4 +88,4 @@ var Chip_default = Chip;
|
|
|
88
88
|
export {
|
|
89
89
|
Chip_default
|
|
90
90
|
};
|
|
91
|
-
//# sourceMappingURL=
|
|
91
|
+
//# sourceMappingURL=CTNDDLBZ.js.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 _FESAFV44cjs = require('./FESAFV44.cjs');
|
|
5
5
|
|
|
6
6
|
// src/Card/Card.tsx
|
|
7
7
|
var _jsxruntime = require('react/jsx-runtime');
|
|
@@ -12,7 +12,7 @@ function Card({
|
|
|
12
12
|
"data-testid": dataTestId
|
|
13
13
|
}) {
|
|
14
14
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15
|
-
|
|
15
|
+
_FESAFV44cjs.Box_default,
|
|
16
16
|
{
|
|
17
17
|
rounding: "md",
|
|
18
18
|
padding: size === "compact" ? 2 : 4,
|
|
@@ -27,4 +27,4 @@ function Card({
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
exports.Card = Card;
|
|
30
|
-
//# sourceMappingURL=
|
|
30
|
+
//# sourceMappingURL=D5AQ3PGB.cjs.map
|
|
@@ -13,7 +13,7 @@ var _PLUVW6AMcjs = require('./PLUVW6AM.cjs');
|
|
|
13
13
|
var _IL22HCBFcjs = require('./IL22HCBF.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _FESAFV44cjs = require('./FESAFV44.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _E5P6WRJDcjs = require('./E5P6WRJD.cjs');
|
|
@@ -119,7 +119,7 @@ var ModalDialog = _react.forwardRef.call(void 0,
|
|
|
119
119
|
"data-testid": dataTestId,
|
|
120
120
|
children: [
|
|
121
121
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
122
|
-
|
|
122
|
+
_FESAFV44cjs.Box_default,
|
|
123
123
|
{
|
|
124
124
|
position: "absolute",
|
|
125
125
|
padding: 2,
|
|
@@ -157,4 +157,4 @@ var ModalDialog_default = ModalDialog;
|
|
|
157
157
|
|
|
158
158
|
|
|
159
159
|
exports.AriaModalOverlay = AriaModalOverlay; exports.AriaModal = AriaModal; exports.ModalDialog_default = ModalDialog_default;
|
|
160
|
-
//# sourceMappingURL=
|
|
160
|
+
//# sourceMappingURL=D62L3CWM.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 _FESAFV44cjs = require('./FESAFV44.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
|
+
_FESAFV44cjs.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=EZUXET6V.cjs.map
|
|
@@ -23,6 +23,9 @@ var margin_module_default = { "marginBottom-12": "_marginBottom-12_1whn1_2", "ma
|
|
|
23
23
|
// css-module:./padding.module.css#css-module
|
|
24
24
|
var padding_module_default = { "paddingX0": "_paddingX0_1aqye_2", "paddingX1": "_paddingX1_1aqye_7", "paddingX2": "_paddingX2_1aqye_12", "paddingX3": "_paddingX3_1aqye_17", "paddingX4": "_paddingX4_1aqye_22", "paddingX5": "_paddingX5_1aqye_27", "paddingX6": "_paddingX6_1aqye_32", "paddingX7": "_paddingX7_1aqye_37", "paddingX8": "_paddingX8_1aqye_42", "paddingX9": "_paddingX9_1aqye_47", "paddingX10": "_paddingX10_1aqye_52", "paddingX11": "_paddingX11_1aqye_57", "paddingX12": "_paddingX12_1aqye_62", "paddingY0": "_paddingY0_1aqye_67", "paddingY1": "_paddingY1_1aqye_72", "paddingY2": "_paddingY2_1aqye_77", "paddingY3": "_paddingY3_1aqye_82", "paddingY4": "_paddingY4_1aqye_87", "paddingY5": "_paddingY5_1aqye_92", "paddingY6": "_paddingY6_1aqye_97", "paddingY7": "_paddingY7_1aqye_102", "paddingY8": "_paddingY8_1aqye_107", "paddingY9": "_paddingY9_1aqye_112", "paddingY10": "_paddingY10_1aqye_117", "paddingY11": "_paddingY11_1aqye_122", "paddingY12": "_paddingY12_1aqye_127", "paddingX0Small": "_paddingX0Small_1aqye_134", "paddingX1Small": "_paddingX1Small_1aqye_139", "paddingX2Small": "_paddingX2Small_1aqye_144", "paddingX3Small": "_paddingX3Small_1aqye_149", "paddingX4Small": "_paddingX4Small_1aqye_154", "paddingX5Small": "_paddingX5Small_1aqye_159", "paddingX6Small": "_paddingX6Small_1aqye_164", "paddingX7Small": "_paddingX7Small_1aqye_169", "paddingX8Small": "_paddingX8Small_1aqye_174", "paddingX9Small": "_paddingX9Small_1aqye_179", "paddingX10Small": "_paddingX10Small_1aqye_184", "paddingX11Small": "_paddingX11Small_1aqye_189", "paddingX12Small": "_paddingX12Small_1aqye_194", "paddingY0Small": "_paddingY0Small_1aqye_199", "paddingY1Small": "_paddingY1Small_1aqye_204", "paddingY2Small": "_paddingY2Small_1aqye_209", "paddingY3Small": "_paddingY3Small_1aqye_214", "paddingY4Small": "_paddingY4Small_1aqye_219", "paddingY5Small": "_paddingY5Small_1aqye_224", "paddingY6Small": "_paddingY6Small_1aqye_229", "paddingY7Small": "_paddingY7Small_1aqye_234", "paddingY8Small": "_paddingY8Small_1aqye_239", "paddingY9Small": "_paddingY9Small_1aqye_244", "paddingY10Small": "_paddingY10Small_1aqye_249", "paddingY11Small": "_paddingY11Small_1aqye_254", "paddingY12Small": "_paddingY12Small_1aqye_259", "paddingX0Large": "_paddingX0Large_1aqye_267", "paddingX1Large": "_paddingX1Large_1aqye_272", "paddingX2Large": "_paddingX2Large_1aqye_277", "paddingX3Large": "_paddingX3Large_1aqye_282", "paddingX4Large": "_paddingX4Large_1aqye_287", "paddingX5Large": "_paddingX5Large_1aqye_292", "paddingX6Large": "_paddingX6Large_1aqye_297", "paddingX7Large": "_paddingX7Large_1aqye_302", "paddingX8Large": "_paddingX8Large_1aqye_307", "paddingX9Large": "_paddingX9Large_1aqye_312", "paddingX10Large": "_paddingX10Large_1aqye_317", "paddingX11Large": "_paddingX11Large_1aqye_322", "paddingX12Large": "_paddingX12Large_1aqye_327", "paddingY0Large": "_paddingY0Large_1aqye_332", "paddingY1Large": "_paddingY1Large_1aqye_337", "paddingY2Large": "_paddingY2Large_1aqye_342", "paddingY3Large": "_paddingY3Large_1aqye_347", "paddingY4Large": "_paddingY4Large_1aqye_352", "paddingY5Large": "_paddingY5Large_1aqye_357", "paddingY6Large": "_paddingY6Large_1aqye_362", "paddingY7Large": "_paddingY7Large_1aqye_367", "paddingY8Large": "_paddingY8Large_1aqye_372", "paddingY9Large": "_paddingY9Large_1aqye_377", "paddingY10Large": "_paddingY10Large_1aqye_382", "paddingY11Large": "_paddingY11Large_1aqye_387", "paddingY12Large": "_paddingY12Large_1aqye_392" };
|
|
25
25
|
|
|
26
|
+
// css-module:../border.module.css#css-module
|
|
27
|
+
var border_module_default = { "borderprimary": "_borderprimary_9mhuu_1", "bordernone": "_bordernone_9mhuu_5" };
|
|
28
|
+
|
|
26
29
|
// src/Box/Box.tsx
|
|
27
30
|
var _react = require('react');
|
|
28
31
|
var _jsxruntime = require('react/jsx-runtime');
|
|
@@ -35,6 +38,7 @@ var Box = _react.forwardRef.call(void 0, function Box2(props, ref) {
|
|
|
35
38
|
lgAlignItems,
|
|
36
39
|
alignSelf,
|
|
37
40
|
backgroundColor,
|
|
41
|
+
border,
|
|
38
42
|
direction,
|
|
39
43
|
smDirection,
|
|
40
44
|
lgDirection,
|
|
@@ -90,6 +94,7 @@ var Box = _react.forwardRef.call(void 0, function Box2(props, ref) {
|
|
|
90
94
|
"lgAlignItems",
|
|
91
95
|
"alignSelf",
|
|
92
96
|
"backgroundColor",
|
|
97
|
+
"border",
|
|
93
98
|
"direction",
|
|
94
99
|
"smDirection",
|
|
95
100
|
"lgDirection",
|
|
@@ -201,6 +206,7 @@ var Box = _react.forwardRef.call(void 0, function Box2(props, ref) {
|
|
|
201
206
|
lgJustifyContent && Box_module_default[`justifyContent${lgJustifyContent}Large`],
|
|
202
207
|
position && position !== "static" && Box_module_default[position],
|
|
203
208
|
rounding && rounding !== "none" && _CHDS4D44cjs.rounding_module_default[`rounding${rounding}`],
|
|
209
|
+
border && border_module_default[`border${border}`],
|
|
204
210
|
overflow && Box_module_default[`overflow${overflow}`],
|
|
205
211
|
overflowX && Box_module_default[`overflowX${overflowX}`],
|
|
206
212
|
overflowY && Box_module_default[`overflowY${overflowY}`]
|
|
@@ -227,4 +233,4 @@ var Box_default = Box;
|
|
|
227
233
|
|
|
228
234
|
|
|
229
235
|
exports.Box_default = Box_default;
|
|
230
|
-
//# sourceMappingURL=
|
|
236
|
+
//# sourceMappingURL=FESAFV44.cjs.map
|