@cambly/syntax-core 10.26.0 → 10.28.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 +5 -5
- package/dist/Avatar/Avatar.d.ts +1 -1
- package/dist/Avatar/Avatar.js +4 -4
- package/dist/AvatarGroup/AvatarGroup.cjs +4 -4
- package/dist/AvatarGroup/AvatarGroup.js +3 -3
- package/dist/Badge/Badge.cjs +5 -5
- package/dist/Badge/Badge.css +64 -72
- package/dist/Badge/Badge.css.map +1 -1
- package/dist/Badge/Badge.d.ts +1 -1
- package/dist/Badge/Badge.js +4 -4
- package/dist/Box/Box.cjs +3 -3
- package/dist/Box/Box.js +2 -2
- package/dist/Button/Button.cjs +5 -5
- package/dist/Button/Button.css +64 -72
- package/dist/Button/Button.css.map +1 -1
- package/dist/Button/Button.js +4 -4
- package/dist/ButtonGroup/ButtonGroup.cjs +3 -3
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/ButtonGroup/ButtonGroup.js +2 -2
- package/dist/Card/Card.cjs +4 -4
- package/dist/Card/Card.js +3 -3
- package/dist/Checkbox/Checkbox.cjs +4 -4
- package/dist/Checkbox/Checkbox.css +64 -72
- package/dist/Checkbox/Checkbox.css.map +1 -1
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Checkbox/Checkbox.js +3 -3
- package/dist/Chip/Chip.cjs +5 -5
- package/dist/Chip/Chip.css +64 -72
- package/dist/Chip/Chip.css.map +1 -1
- package/dist/Chip/Chip.js +4 -4
- package/dist/Dialog/Dialog.cjs +3 -3
- package/dist/Dialog/Dialog.js +2 -2
- package/dist/Dialog/ModalDialog.cjs +6 -6
- package/dist/Dialog/ModalDialog.js +5 -5
- package/dist/Divider/Divider.cjs +3 -3
- package/dist/Divider/Divider.js +2 -2
- package/dist/Heading/Heading.cjs +4 -4
- package/dist/Heading/Heading.css +64 -72
- package/dist/Heading/Heading.css.map +1 -1
- package/dist/Heading/Heading.d.ts +2 -2
- package/dist/Heading/Heading.js +3 -3
- package/dist/IconButton/IconButton.cjs +3 -3
- package/dist/IconButton/IconButton.js +2 -2
- package/dist/LinkButton/LinkButton.cjs +4 -4
- package/dist/LinkButton/LinkButton.css +64 -72
- package/dist/LinkButton/LinkButton.css.map +1 -1
- package/dist/LinkButton/LinkButton.js +3 -3
- package/dist/Modal/Layer.cjs +4 -4
- package/dist/Modal/Layer.js +3 -3
- package/dist/Modal/Modal.cjs +8 -8
- package/dist/Modal/Modal.css +64 -72
- package/dist/Modal/Modal.css.map +1 -1
- package/dist/Modal/Modal.js +7 -7
- package/dist/Popover/Popover.cjs +7 -7
- package/dist/Popover/Popover.js +6 -6
- package/dist/RadioButton/RadioButton.cjs +5 -5
- package/dist/RadioButton/RadioButton.css +64 -72
- package/dist/RadioButton/RadioButton.css.map +1 -1
- package/dist/RadioButton/RadioButton.d.ts +1 -1
- package/dist/RadioButton/RadioButton.js +4 -4
- package/dist/RichSelect/RichSelectBox.cjs +13 -13
- package/dist/RichSelect/RichSelectBox.css +64 -72
- package/dist/RichSelect/RichSelectBox.css.map +1 -1
- package/dist/RichSelect/RichSelectBox.d.ts +1 -1
- package/dist/RichSelect/RichSelectBox.js +12 -12
- package/dist/RichSelect/RichSelectChip.cjs +6 -6
- package/dist/RichSelect/RichSelectChip.css +64 -72
- package/dist/RichSelect/RichSelectChip.css.map +1 -1
- package/dist/RichSelect/RichSelectChip.js +5 -5
- package/dist/RichSelect/RichSelectList.cjs +19 -19
- package/dist/RichSelect/RichSelectList.css +63 -71
- package/dist/RichSelect/RichSelectList.css.map +1 -1
- package/dist/RichSelect/RichSelectList.d.ts +1 -1
- package/dist/RichSelect/RichSelectList.js +18 -18
- package/dist/RichSelect/RichSelectRadioButton.cjs +6 -6
- package/dist/RichSelect/RichSelectRadioButton.css +64 -72
- package/dist/RichSelect/RichSelectRadioButton.css.map +1 -1
- package/dist/RichSelect/RichSelectRadioButton.d.ts +1 -1
- package/dist/RichSelect/RichSelectRadioButton.js +5 -5
- package/dist/RichSelect/RichSelectSection.cjs +4 -4
- package/dist/RichSelect/RichSelectSection.css +64 -72
- package/dist/RichSelect/RichSelectSection.css.map +1 -1
- package/dist/RichSelect/RichSelectSection.js +3 -3
- package/dist/SelectList/SelectList.cjs +6 -6
- package/dist/SelectList/SelectList.css +63 -71
- package/dist/SelectList/SelectList.css.map +1 -1
- package/dist/SelectList/SelectList.js +5 -5
- package/dist/TapArea/TapArea.d.ts +1 -1
- package/dist/TextArea/TextArea.cjs +5 -5
- package/dist/TextArea/TextArea.css +63 -71
- package/dist/TextArea/TextArea.css.map +1 -1
- package/dist/TextArea/TextArea.js +4 -4
- package/dist/TextField/TextField.cjs +5 -5
- package/dist/TextField/TextField.css +63 -71
- package/dist/TextField/TextField.css.map +1 -1
- package/dist/TextField/TextField.js +4 -4
- package/dist/ThemeProvider/ThemeProvider.cjs +2 -2
- package/dist/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/Tooltip/Tooltip.cjs +4 -4
- package/dist/Tooltip/Tooltip.css +64 -72
- package/dist/Tooltip/Tooltip.css.map +1 -1
- package/dist/Tooltip/Tooltip.js +3 -3
- package/dist/Typography/Typography.cjs +3 -3
- package/dist/Typography/Typography.css +64 -72
- package/dist/Typography/Typography.css.map +1 -1
- package/dist/Typography/Typography.d.ts +5 -5
- package/dist/Typography/Typography.js +2 -2
- package/dist/__chunks/{P2BCEYCC.js → 2HNKN7IN.js} +3 -3
- package/dist/__chunks/{HNR3FTMR.cjs → 432LXWXX.cjs} +18 -17
- package/dist/__chunks/432LXWXX.cjs.map +1 -0
- package/dist/__chunks/{ZSHAHV4F.js → 4GTNQPPD.js} +3 -2
- package/dist/__chunks/{ZSHAHV4F.js.map → 4GTNQPPD.js.map} +1 -1
- package/dist/__chunks/{ZYCAP5AY.cjs → 4HPBU76L.cjs} +7 -7
- package/dist/__chunks/{KZD6BFDA.js → 4IJQ4BTF.js} +3 -3
- package/dist/__chunks/{I75WZ7AV.cjs → 4S6APU2V.cjs} +7 -7
- package/dist/__chunks/{KITXUOU4.js → 4VJHC5OM.js} +4 -4
- package/dist/__chunks/{FJ7CVAIA.js → 5JUAIXVN.js} +11 -11
- package/dist/__chunks/{COW4SDSF.js → 5OLT2HH5.js} +2 -2
- package/dist/__chunks/{JUPRT4OU.js → 63GEZVJ4.js} +2 -2
- package/dist/__chunks/{TCZBK2P5.cjs → 6IRH354B.cjs} +5 -5
- package/dist/__chunks/{XJL3R42D.cjs → 6NYPDPF4.cjs} +5 -5
- package/dist/__chunks/{4TY5KFRY.cjs → 6P6ARVEA.cjs} +3 -3
- package/dist/__chunks/{F7MTPNJ5.js → 7BAMJSUF.js} +3 -3
- package/dist/__chunks/{OV5U4YJN.cjs → A323TCSA.cjs} +5 -5
- package/dist/__chunks/{AM27BYFE.js → AAJM5GTF.js} +2 -2
- package/dist/__chunks/{OVXHL32N.cjs → AGJ2QSEP.cjs} +3 -3
- package/dist/__chunks/{3LO2QLOH.js → AW4Z42KI.js} +4 -4
- package/dist/__chunks/{VT6H7TYG.js → AWT6KV7A.js} +3 -3
- package/dist/__chunks/{6EKM3QTW.js → CVYKJOHP.js} +8 -8
- package/dist/__chunks/{7XCKMUYZ.js → FTKHKS6W.js} +3 -3
- package/dist/__chunks/{KWRU2RKT.js → G7N4BOR7.js} +2 -2
- package/dist/__chunks/{E4LISCR7.cjs → GANR5JVV.cjs} +3 -3
- package/dist/__chunks/{MOU24MJO.js → GJBW4BG7.js} +2 -2
- package/dist/__chunks/{6XZHBBJP.cjs → GMKJSXXQ.cjs} +5 -5
- package/dist/__chunks/{RKIU3AMB.js → GWJGZYZO.js} +4 -4
- package/dist/__chunks/{XQM7YZ26.js → HCHFPFNX.js} +2 -2
- package/dist/__chunks/{W35D2UIC.cjs → HVYLG5OC.cjs} +10 -10
- package/dist/__chunks/{MG2NM3WU.cjs → HYRATHVK.cjs} +3 -3
- package/dist/__chunks/{MQ7FU53W.cjs → ICLT5QY2.cjs} +9 -9
- package/dist/__chunks/{UAN64LE7.cjs → J25IK5J2.cjs} +5 -5
- package/dist/__chunks/{2JHU2ASK.cjs → JDOSJDOR.cjs} +10 -10
- package/dist/__chunks/{U6PVR4JE.js → JUB3D7BZ.js} +4 -4
- package/dist/__chunks/{TBQR2FPS.cjs → JXOKXBDZ.cjs} +3 -2
- package/dist/__chunks/JXOKXBDZ.cjs.map +1 -0
- package/dist/__chunks/{C2O2DNFT.js → KG6XG47I.js} +3 -3
- package/dist/__chunks/{5QPFD35S.js → KR53ODQQ.js} +4 -4
- package/dist/__chunks/{L5FISA2U.cjs → LECUYS4O.cjs} +5 -5
- package/dist/__chunks/{2TLKWIYC.cjs → M2CJONYS.cjs} +3 -3
- package/dist/__chunks/{4NSYLHIG.js → MBTIELOD.js} +2 -2
- package/dist/__chunks/{HINMIM2W.js → MDAWMKBY.js} +3 -3
- package/dist/__chunks/{HINMIM2W.js.map → MDAWMKBY.js.map} +1 -1
- package/dist/__chunks/{CX2IJ7UB.js → NKYN63G7.js} +7 -6
- package/dist/__chunks/{CX2IJ7UB.js.map → NKYN63G7.js.map} +1 -1
- package/dist/__chunks/{CCDZUAUU.cjs → O2J3F7UE.cjs} +1 -1
- package/dist/__chunks/{CCDZUAUU.cjs.map → O2J3F7UE.cjs.map} +1 -1
- package/dist/__chunks/{KWT6ABYP.cjs → OAZD7W2W.cjs} +3 -3
- package/dist/__chunks/{WZZQUJZF.cjs → PDKMXSDQ.cjs} +18 -18
- package/dist/__chunks/{4MLT3AHK.cjs → PKBQW5T6.cjs} +5 -5
- package/dist/__chunks/{G4L4P5KD.js → Q4HTXMNF.js} +3 -3
- package/dist/__chunks/{IXDYGNLN.cjs → QZZW6BPP.cjs} +7 -7
- package/dist/__chunks/{MKGPWRAB.cjs → RJX7ZVAG.cjs} +8 -8
- package/dist/__chunks/{VBQTLO2P.cjs → RVFY33X2.cjs} +3 -3
- package/dist/__chunks/{Z6B4SAEZ.cjs → SRAYR7UN.cjs} +26 -26
- package/dist/__chunks/{LUGWXC6Z.js → UENUF2KR.js} +4 -4
- package/dist/__chunks/{WG6366VB.js → UF7SXHS4.js} +2 -2
- package/dist/__chunks/{UEQKS2FD.cjs → VLK5CARI.cjs} +7 -7
- package/dist/__chunks/{ZEMGWSJQ.js → VR4ZFZ4Z.js} +2 -2
- package/dist/__chunks/{RINTHGJZ.cjs → W5MIJIZA.cjs} +3 -3
- package/dist/__chunks/{PLUOUSZL.js → WEBZYCKQ.js} +1 -1
- package/dist/__chunks/{PLUOUSZL.js.map → WEBZYCKQ.js.map} +1 -1
- package/dist/__chunks/{XISRQSXZ.js → WPKU2FTA.js} +5 -5
- package/dist/__chunks/{H2VCDVLG.js → XYPM2PWU.js} +4 -4
- package/dist/__chunks/{53T425YL.js → Y2HREK3T.js} +4 -4
- package/dist/__chunks/{J3ES6ZT6.cjs → Y2TA6QLY.cjs} +3 -3
- package/dist/__chunks/{TJN7NBWU.cjs → YJWKUNYU.cjs} +4 -4
- package/dist/__chunks/{TJN7NBWU.cjs.map → YJWKUNYU.cjs.map} +1 -1
- package/dist/__chunks/{VRVOFKLI.cjs → ZRO3RCYX.cjs} +11 -11
- package/dist/index.cjs +32 -32
- package/dist/index.css +63 -71
- package/dist/index.css.map +1 -1
- package/dist/index.js +31 -31
- package/package.json +2 -2
- package/dist/__chunks/HNR3FTMR.cjs.map +0 -1
- package/dist/__chunks/TBQR2FPS.cjs.map +0 -1
- /package/dist/__chunks/{P2BCEYCC.js.map → 2HNKN7IN.js.map} +0 -0
- /package/dist/__chunks/{ZYCAP5AY.cjs.map → 4HPBU76L.cjs.map} +0 -0
- /package/dist/__chunks/{KZD6BFDA.js.map → 4IJQ4BTF.js.map} +0 -0
- /package/dist/__chunks/{I75WZ7AV.cjs.map → 4S6APU2V.cjs.map} +0 -0
- /package/dist/__chunks/{KITXUOU4.js.map → 4VJHC5OM.js.map} +0 -0
- /package/dist/__chunks/{FJ7CVAIA.js.map → 5JUAIXVN.js.map} +0 -0
- /package/dist/__chunks/{COW4SDSF.js.map → 5OLT2HH5.js.map} +0 -0
- /package/dist/__chunks/{JUPRT4OU.js.map → 63GEZVJ4.js.map} +0 -0
- /package/dist/__chunks/{TCZBK2P5.cjs.map → 6IRH354B.cjs.map} +0 -0
- /package/dist/__chunks/{XJL3R42D.cjs.map → 6NYPDPF4.cjs.map} +0 -0
- /package/dist/__chunks/{4TY5KFRY.cjs.map → 6P6ARVEA.cjs.map} +0 -0
- /package/dist/__chunks/{F7MTPNJ5.js.map → 7BAMJSUF.js.map} +0 -0
- /package/dist/__chunks/{OV5U4YJN.cjs.map → A323TCSA.cjs.map} +0 -0
- /package/dist/__chunks/{AM27BYFE.js.map → AAJM5GTF.js.map} +0 -0
- /package/dist/__chunks/{OVXHL32N.cjs.map → AGJ2QSEP.cjs.map} +0 -0
- /package/dist/__chunks/{3LO2QLOH.js.map → AW4Z42KI.js.map} +0 -0
- /package/dist/__chunks/{VT6H7TYG.js.map → AWT6KV7A.js.map} +0 -0
- /package/dist/__chunks/{6EKM3QTW.js.map → CVYKJOHP.js.map} +0 -0
- /package/dist/__chunks/{7XCKMUYZ.js.map → FTKHKS6W.js.map} +0 -0
- /package/dist/__chunks/{KWRU2RKT.js.map → G7N4BOR7.js.map} +0 -0
- /package/dist/__chunks/{E4LISCR7.cjs.map → GANR5JVV.cjs.map} +0 -0
- /package/dist/__chunks/{MOU24MJO.js.map → GJBW4BG7.js.map} +0 -0
- /package/dist/__chunks/{6XZHBBJP.cjs.map → GMKJSXXQ.cjs.map} +0 -0
- /package/dist/__chunks/{RKIU3AMB.js.map → GWJGZYZO.js.map} +0 -0
- /package/dist/__chunks/{XQM7YZ26.js.map → HCHFPFNX.js.map} +0 -0
- /package/dist/__chunks/{W35D2UIC.cjs.map → HVYLG5OC.cjs.map} +0 -0
- /package/dist/__chunks/{MG2NM3WU.cjs.map → HYRATHVK.cjs.map} +0 -0
- /package/dist/__chunks/{MQ7FU53W.cjs.map → ICLT5QY2.cjs.map} +0 -0
- /package/dist/__chunks/{UAN64LE7.cjs.map → J25IK5J2.cjs.map} +0 -0
- /package/dist/__chunks/{2JHU2ASK.cjs.map → JDOSJDOR.cjs.map} +0 -0
- /package/dist/__chunks/{U6PVR4JE.js.map → JUB3D7BZ.js.map} +0 -0
- /package/dist/__chunks/{C2O2DNFT.js.map → KG6XG47I.js.map} +0 -0
- /package/dist/__chunks/{5QPFD35S.js.map → KR53ODQQ.js.map} +0 -0
- /package/dist/__chunks/{L5FISA2U.cjs.map → LECUYS4O.cjs.map} +0 -0
- /package/dist/__chunks/{2TLKWIYC.cjs.map → M2CJONYS.cjs.map} +0 -0
- /package/dist/__chunks/{4NSYLHIG.js.map → MBTIELOD.js.map} +0 -0
- /package/dist/__chunks/{KWT6ABYP.cjs.map → OAZD7W2W.cjs.map} +0 -0
- /package/dist/__chunks/{WZZQUJZF.cjs.map → PDKMXSDQ.cjs.map} +0 -0
- /package/dist/__chunks/{4MLT3AHK.cjs.map → PKBQW5T6.cjs.map} +0 -0
- /package/dist/__chunks/{G4L4P5KD.js.map → Q4HTXMNF.js.map} +0 -0
- /package/dist/__chunks/{IXDYGNLN.cjs.map → QZZW6BPP.cjs.map} +0 -0
- /package/dist/__chunks/{MKGPWRAB.cjs.map → RJX7ZVAG.cjs.map} +0 -0
- /package/dist/__chunks/{VBQTLO2P.cjs.map → RVFY33X2.cjs.map} +0 -0
- /package/dist/__chunks/{Z6B4SAEZ.cjs.map → SRAYR7UN.cjs.map} +0 -0
- /package/dist/__chunks/{LUGWXC6Z.js.map → UENUF2KR.js.map} +0 -0
- /package/dist/__chunks/{WG6366VB.js.map → UF7SXHS4.js.map} +0 -0
- /package/dist/__chunks/{UEQKS2FD.cjs.map → VLK5CARI.cjs.map} +0 -0
- /package/dist/__chunks/{ZEMGWSJQ.js.map → VR4ZFZ4Z.js.map} +0 -0
- /package/dist/__chunks/{RINTHGJZ.cjs.map → W5MIJIZA.cjs.map} +0 -0
- /package/dist/__chunks/{XISRQSXZ.js.map → WPKU2FTA.js.map} +0 -0
- /package/dist/__chunks/{H2VCDVLG.js.map → XYPM2PWU.js.map} +0 -0
- /package/dist/__chunks/{53T425YL.js.map → Y2HREK3T.js.map} +0 -0
- /package/dist/__chunks/{J3ES6ZT6.cjs.map → Y2TA6QLY.cjs.map} +0 -0
- /package/dist/__chunks/{VRVOFKLI.cjs.map → ZRO3RCYX.cjs.map} +0 -0
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
Heading_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./4IJQ4BTF.js";
|
|
5
5
|
import {
|
|
6
6
|
StopScroll
|
|
7
7
|
} from "./QQT35OLE.js";
|
|
8
8
|
import {
|
|
9
9
|
Layer
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./GJBW4BG7.js";
|
|
11
11
|
import {
|
|
12
12
|
FocusTrap
|
|
13
13
|
} from "./J7FCX3U6.js";
|
|
14
14
|
import {
|
|
15
15
|
IconButton_default
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./VR4ZFZ4Z.js";
|
|
17
17
|
import {
|
|
18
18
|
Box_default
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./HCHFPFNX.js";
|
|
20
20
|
import {
|
|
21
21
|
useTheme
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./4GTNQPPD.js";
|
|
23
23
|
|
|
24
24
|
// src/Modal/Modal.tsx
|
|
25
25
|
import classnames from "classnames";
|
|
@@ -120,6 +120,7 @@ function Modal({
|
|
|
120
120
|
accessibilityLabel: accessibilityCloseLabel,
|
|
121
121
|
color: image ? "primary" : "tertiary",
|
|
122
122
|
on: image ? "darkBackground" : "lightBackground",
|
|
123
|
+
onClick: onDismiss,
|
|
123
124
|
size: "sm",
|
|
124
125
|
icon: XIconCambio
|
|
125
126
|
}
|
|
@@ -173,4 +174,4 @@ Modal.displayName = "Modal";
|
|
|
173
174
|
export {
|
|
174
175
|
Modal
|
|
175
176
|
};
|
|
176
|
-
//# sourceMappingURL=
|
|
177
|
+
//# sourceMappingURL=NKYN63G7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Modal/Modal.tsx","css-module:./Modal.module.css#css-module"],"sourcesContent":["import { type ReactElement } from \"react\";\nimport classnames from \"classnames\";\n\nimport Heading from \"../Heading/Heading\";\nimport Box from \"../Box/Box\";\n\nimport FocusTrap from \"./FocusTrap\";\nimport StopScroll from \"./StopScroll\";\nimport Layer from \"./Layer\";\nimport styles from \"./Modal.module.css\";\nimport { useTheme } from \"../ThemeProvider/ThemeProvider\";\nimport IconButton from \"../IconButton/IconButton\";\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\nfunction XIconCambio({ className }: { className?: string }) {\n return (\n <svg\n className={className}\n fill=\"currentColor\"\n focusable=\"false\"\n aria-hidden=\"true\"\n viewBox=\"0 0 24 24\"\n >\n <path d=\"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"></path>\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 * Classic:\n * * `sm`: 400px (Classic only)\n * * `lg`: 600px\n *\n * Cambio:\n * * `lg`: 600px\n *\n *\n * @defaultValue sm\n */\n size?: keyof typeof sizeWidth;\n /**\n * The z-index for the modal.\n * Typically used if there are other things on the page with higher z-index and you need this overlayed on top.\n *\n * @defaultValue 0\n */\n zIndex?: number;\n /**\n * Test id for the modal\n */\n \"data-testid\"?: string;\n}): ReactElement {\n const { themeName } = useTheme();\n return (\n <Layer zIndex={zIndex}>\n <StopScroll>\n <FocusTrap>\n <div\n className={classnames(\n styles.backdrop,\n themeName === \"classic\"\n ? styles.backdropClassic\n : styles.backdropCambio,\n )}\n role=\"presentation\"\n onClick={(e) => e.target === e.currentTarget && onDismiss()}\n onKeyDown={(e) => e.key === \"Escape\" && onDismiss()}\n >\n <Box\n data-testid={dataTestId}\n backgroundColor=\"white\"\n rounding={themeName === \"classic\" ? \"xl\" : \"md\"}\n display=\"flex\"\n direction=\"column\"\n marginStart={4}\n marginEnd={4}\n minWidth={240}\n maxWidth={sizeWidth[themeName === \"classic\" ? size : \"lg\"]}\n width=\"100%\"\n dangerouslySetInlineStyle={{ __style: { overflow: \"hidden\" } }}\n >\n <Box position=\"relative\">\n {themeName === \"classic\" ? (\n <button\n aria-label={accessibilityCloseLabel}\n type=\"button\"\n className={classnames(\n styles.closeButton,\n styles.closeButtonClassic,\n {\n [styles.closeButtonWithImage]: !!image,\n },\n )}\n onClick={onDismiss}\n >\n <XIcon color={image ? \"#fff\" : \"#000\"} />\n </button>\n ) : (\n <Box\n position=\"absolute\"\n dangerouslySetInlineStyle={{\n __style: { top: 4, right: 4 },\n }}\n >\n <IconButton\n accessibilityLabel={accessibilityCloseLabel}\n color={image ? \"primary\" : \"tertiary\"}\n on={image ? \"darkBackground\" : \"lightBackground\"}\n size=\"sm\"\n icon={XIconCambio}\n />\n </Box>\n )}\n </Box>\n {image && <Box maxHeight={200}>{image}</Box>}\n <Box\n display=\"flex\"\n gap={themeName === \"classic\" ? 3 : 4}\n direction=\"column\"\n padding={themeName === \"classic\" ? 9 : 6}\n >\n <Heading\n as=\"h1\"\n size={themeName === \"classic\" ? 500 : 600}\n fontStyle={themeName === \"classic\" ? \"sans-serif\" : \"serif\"}\n >\n {header}\n </Heading>\n <Box marginBottom={themeName === \"classic\" ? 4 : 0}>\n {children}\n </Box>\n {footer && (\n <Box\n display=\"flex\"\n direction=\"column\"\n gap={3}\n marginTop={themeName === \"classic\" ? 0 : 2}\n smDirection=\"row\"\n smJustifyContent=\"end\"\n lgDirection=\"row\"\n lgJustifyContent=\"end\"\n >\n {footer}\n </Box>\n )}\n </Box>\n </Box>\n </div>\n </FocusTrap>\n </StopScroll>\n </Layer>\n );\n}\n\nModal.displayName = \"Modal\";\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Modal/Modal.module.css\"; export default {\"backdrop\":\"_backdrop_1w5vm_1\",\"backdropClassic\":\"_backdropClassic_1w5vm_11\",\"backdropCambio\":\"_backdropCambio_1w5vm_15\",\"closeButton\":\"_closeButton_1w5vm_19\",\"closeButtonClassic\":\"_closeButtonClassic_1w5vm_34\",\"closeButtonWithImage\":\"_closeButtonWithImage_1w5vm_46\",\"closeButtonWithImageCambio\":\"_closeButtonWithImageCambio_1w5vm_50\"}"],"mappings":"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","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/Modal/Modal.tsx","css-module:./Modal.module.css#css-module"],"sourcesContent":["import { type ReactElement } from \"react\";\nimport classnames from \"classnames\";\n\nimport Heading from \"../Heading/Heading\";\nimport Box from \"../Box/Box\";\n\nimport FocusTrap from \"./FocusTrap\";\nimport StopScroll from \"./StopScroll\";\nimport Layer from \"./Layer\";\nimport styles from \"./Modal.module.css\";\nimport { useTheme } from \"../ThemeProvider/ThemeProvider\";\nimport IconButton from \"../IconButton/IconButton\";\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\nfunction XIconCambio({ className }: { className?: string }) {\n return (\n <svg\n className={className}\n fill=\"currentColor\"\n focusable=\"false\"\n aria-hidden=\"true\"\n viewBox=\"0 0 24 24\"\n >\n <path d=\"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"></path>\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 * Classic:\n * * `sm`: 400px (Classic only)\n * * `lg`: 600px\n *\n * Cambio:\n * * `lg`: 600px\n *\n *\n * @defaultValue sm\n */\n size?: keyof typeof sizeWidth;\n /**\n * The z-index for the modal.\n * Typically used if there are other things on the page with higher z-index and you need this overlayed on top.\n *\n * @defaultValue 0\n */\n zIndex?: number;\n /**\n * Test id for the modal\n */\n \"data-testid\"?: string;\n}): ReactElement {\n const { themeName } = useTheme();\n return (\n <Layer zIndex={zIndex}>\n <StopScroll>\n <FocusTrap>\n <div\n className={classnames(\n styles.backdrop,\n themeName === \"classic\"\n ? styles.backdropClassic\n : styles.backdropCambio,\n )}\n role=\"presentation\"\n onClick={(e) => e.target === e.currentTarget && onDismiss()}\n onKeyDown={(e) => e.key === \"Escape\" && onDismiss()}\n >\n <Box\n data-testid={dataTestId}\n backgroundColor=\"white\"\n rounding={themeName === \"classic\" ? \"xl\" : \"md\"}\n display=\"flex\"\n direction=\"column\"\n marginStart={4}\n marginEnd={4}\n minWidth={240}\n maxWidth={sizeWidth[themeName === \"classic\" ? size : \"lg\"]}\n width=\"100%\"\n dangerouslySetInlineStyle={{ __style: { overflow: \"hidden\" } }}\n >\n <Box position=\"relative\">\n {themeName === \"classic\" ? (\n <button\n aria-label={accessibilityCloseLabel}\n type=\"button\"\n className={classnames(\n styles.closeButton,\n styles.closeButtonClassic,\n {\n [styles.closeButtonWithImage]: !!image,\n },\n )}\n onClick={onDismiss}\n >\n <XIcon color={image ? \"#fff\" : \"#000\"} />\n </button>\n ) : (\n <Box\n position=\"absolute\"\n dangerouslySetInlineStyle={{\n __style: { top: 4, right: 4 },\n }}\n >\n <IconButton\n accessibilityLabel={accessibilityCloseLabel}\n color={image ? \"primary\" : \"tertiary\"}\n on={image ? \"darkBackground\" : \"lightBackground\"}\n onClick={onDismiss}\n size=\"sm\"\n icon={XIconCambio}\n />\n </Box>\n )}\n </Box>\n {image && <Box maxHeight={200}>{image}</Box>}\n <Box\n display=\"flex\"\n gap={themeName === \"classic\" ? 3 : 4}\n direction=\"column\"\n padding={themeName === \"classic\" ? 9 : 6}\n >\n <Heading\n as=\"h1\"\n size={themeName === \"classic\" ? 500 : 600}\n fontStyle={themeName === \"classic\" ? \"sans-serif\" : \"serif\"}\n >\n {header}\n </Heading>\n <Box marginBottom={themeName === \"classic\" ? 4 : 0}>\n {children}\n </Box>\n {footer && (\n <Box\n display=\"flex\"\n direction=\"column\"\n gap={3}\n marginTop={themeName === \"classic\" ? 0 : 2}\n smDirection=\"row\"\n smJustifyContent=\"end\"\n lgDirection=\"row\"\n lgJustifyContent=\"end\"\n >\n {footer}\n </Box>\n )}\n </Box>\n </Box>\n </div>\n </FocusTrap>\n </StopScroll>\n </Layer>\n );\n}\n\nModal.displayName = \"Modal\";\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Modal/Modal.module.css\"; export default {\"backdrop\":\"_backdrop_1w5vm_1\",\"backdropClassic\":\"_backdropClassic_1w5vm_11\",\"backdropCambio\":\"_backdropCambio_1w5vm_15\",\"closeButton\":\"_closeButton_1w5vm_19\",\"closeButtonClassic\":\"_closeButtonClassic_1w5vm_34\",\"closeButtonWithImage\":\"_closeButtonWithImage_1w5vm_46\",\"closeButtonWithImageCambio\":\"_closeButtonWithImageCambio_1w5vm_50\"}"],"mappings":"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","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"names":[],"mappings":";;;AASO,IAAM,0BAA0B;AAWhC,IAAM,mBAAmB","sourcesContent":["/**\n * Do not edit directly\n * Generated on
|
|
1
|
+
{"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"names":[],"mappings":";;;AASO,IAAM,0BAA0B;AAWhC,IAAM,mBAAmB","sourcesContent":["/**\n * Do not edit directly\n * Generated on Wed, 27 Mar 2024 18:59:22 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"]}
|
|
@@ -16,7 +16,7 @@ var _UQY2ELTZcjs = require('./UQY2ELTZ.cjs');
|
|
|
16
16
|
var _J43HGNHNcjs = require('./J43HGNHN.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _JXOKXBDZcjs = require('./JXOKXBDZ.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
var _K4AUV2VKcjs = require('./K4AUV2VK.cjs');
|
|
@@ -53,7 +53,7 @@ var IconButton = _react.forwardRef.call(void 0,
|
|
|
53
53
|
onClick
|
|
54
54
|
}, ref) => {
|
|
55
55
|
const isHydrated = _K4AUV2VKcjs.useIsHydrated.call(void 0, );
|
|
56
|
-
const { themeName } =
|
|
56
|
+
const { themeName } = _JXOKXBDZcjs.useTheme.call(void 0, );
|
|
57
57
|
const foregroundColorClass = themeName === "classic" ? _UQY2ELTZcjs.classicForegroundColor.call(void 0, _HWQUS53Mcjs.classicColor.call(void 0, color)) : _UQY2ELTZcjs.cambioForegroundColor.call(void 0, _HWQUS53Mcjs.cambioColor.call(void 0, color), on);
|
|
58
58
|
const backgroundColorClass = themeName === "classic" ? _J43HGNHNcjs.classicBackgroundColor.call(void 0, _HWQUS53Mcjs.classicColor.call(void 0, color)) : _J43HGNHNcjs.cambioBackgroundColor.call(void 0, _HWQUS53Mcjs.cambioColor.call(void 0, color), on);
|
|
59
59
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -93,4 +93,4 @@ var IconButton_default = IconButton;
|
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
exports.IconButton_default = IconButton_default;
|
|
96
|
-
//# sourceMappingURL=
|
|
96
|
+
//# sourceMappingURL=OAZD7W2W.cjs.map
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _RVFY33X2cjs = require('./RVFY33X2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _QZZW6BPPcjs = require('./QZZW6BPP.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _HYRATHVKcjs = require('./HYRATHVK.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _M2CJONYScjs = require('./M2CJONYS.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _Y2TA6QLYcjs = require('./Y2TA6QLY.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _AGJ2QSEPcjs = require('./AGJ2QSEP.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _RYUXG4AScjs = require('./RYUXG4AS.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _GANR5JVVcjs = require('./GANR5JVV.cjs');
|
|
27
27
|
|
|
28
28
|
// src/RichSelect/RichSelectBox.tsx
|
|
29
29
|
|
|
@@ -125,7 +125,7 @@ var RichSelectBox = _react.forwardRef.call(void 0,
|
|
|
125
125
|
});
|
|
126
126
|
}, []);
|
|
127
127
|
const { autoFocus } = _react.useContext.call(void 0, RichSelectBoxContext);
|
|
128
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _RYUXG4AScjs.RichSelectItemContext.Provider, { value: { disableKey }, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
128
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _RYUXG4AScjs.RichSelectItemContext.Provider, { value: { disableKey }, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _GANR5JVVcjs.Box_default, { children: [
|
|
129
129
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
130
130
|
_reactariacomponents.ListBox,
|
|
131
131
|
{
|
|
@@ -144,7 +144,7 @@ var RichSelectBox = _react.forwardRef.call(void 0,
|
|
|
144
144
|
}
|
|
145
145
|
),
|
|
146
146
|
!autosave && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
147
|
-
|
|
147
|
+
_GANR5JVVcjs.Box_default,
|
|
148
148
|
{
|
|
149
149
|
backgroundColor: "white",
|
|
150
150
|
display: "flex",
|
|
@@ -159,17 +159,17 @@ var RichSelectBox = _react.forwardRef.call(void 0,
|
|
|
159
159
|
}
|
|
160
160
|
},
|
|
161
161
|
children: [
|
|
162
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
162
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GANR5JVVcjs.Box_default, { flex: "grow", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _HYRATHVKcjs.Divider, {}) }),
|
|
163
163
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
164
|
-
|
|
164
|
+
_GANR5JVVcjs.Box_default,
|
|
165
165
|
{
|
|
166
166
|
paddingY: 5,
|
|
167
167
|
marginTop: -5,
|
|
168
168
|
display: "flex",
|
|
169
169
|
justifyContent: "end",
|
|
170
|
-
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
170
|
+
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _RVFY33X2cjs.ButtonGroup_default, { orientation: "horizontal", children: [
|
|
171
171
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
172
|
-
|
|
172
|
+
_QZZW6BPPcjs.Button_default,
|
|
173
173
|
{
|
|
174
174
|
onClick: clearChanges,
|
|
175
175
|
color: "secondary",
|
|
@@ -179,7 +179,7 @@ var RichSelectBox = _react.forwardRef.call(void 0,
|
|
|
179
179
|
}
|
|
180
180
|
),
|
|
181
181
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
182
|
-
|
|
182
|
+
_QZZW6BPPcjs.Button_default,
|
|
183
183
|
{
|
|
184
184
|
onClick: saveChanges,
|
|
185
185
|
text: primaryButtonText,
|
|
@@ -198,9 +198,9 @@ var RichSelectBox = _react.forwardRef.call(void 0,
|
|
|
198
198
|
}
|
|
199
199
|
);
|
|
200
200
|
var RichSelectBox_default = Object.assign(RichSelectBox, {
|
|
201
|
-
Section:
|
|
202
|
-
Chip:
|
|
203
|
-
RadioButton:
|
|
201
|
+
Section: _Y2TA6QLYcjs.RichSelectSection_default,
|
|
202
|
+
Chip: _M2CJONYScjs.RichSelectChip_default,
|
|
203
|
+
RadioButton: _AGJ2QSEPcjs.RichSelectRadioButton_default
|
|
204
204
|
});
|
|
205
205
|
|
|
206
206
|
|
|
@@ -208,4 +208,4 @@ var RichSelectBox_default = Object.assign(RichSelectBox, {
|
|
|
208
208
|
|
|
209
209
|
|
|
210
210
|
exports.convertSelection = convertSelection; exports.RichSelectBoxContext = RichSelectBoxContext; exports.RichSelectBox_default = RichSelectBox_default;
|
|
211
|
-
//# sourceMappingURL=
|
|
211
|
+
//# sourceMappingURL=PDKMXSDQ.cjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _GANR5JVVcjs = require('./GANR5JVV.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _JXOKXBDZcjs = require('./JXOKXBDZ.cjs');
|
|
8
8
|
|
|
9
9
|
// src/AvatarGroup/AvatarGroup.tsx
|
|
10
10
|
|
|
@@ -22,10 +22,10 @@ function AvatarGroup({
|
|
|
22
22
|
orientation = "standard",
|
|
23
23
|
children
|
|
24
24
|
}) {
|
|
25
|
-
const { themeName } =
|
|
25
|
+
const { themeName } = _JXOKXBDZcjs.useTheme.call(void 0, );
|
|
26
26
|
const parsedSize = themeName === "cambio" && size === "xl" ? "lg" : size;
|
|
27
27
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarGroupContext.Provider, { value: { size: parsedSize, orientation }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28
|
-
|
|
28
|
+
_GANR5JVVcjs.Box_default,
|
|
29
29
|
{
|
|
30
30
|
display: "flex",
|
|
31
31
|
justifyContent: orientation === "standard" ? "start" : "end",
|
|
@@ -44,4 +44,4 @@ AvatarGroup.displayName = "AvatarGroup";
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
exports.useAvatarGroup = useAvatarGroup; exports.AvatarGroup = AvatarGroup;
|
|
47
|
-
//# sourceMappingURL=
|
|
47
|
+
//# sourceMappingURL=PKBQW5T6.cjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
Box_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./HCHFPFNX.js";
|
|
5
5
|
import {
|
|
6
6
|
useTheme
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./4GTNQPPD.js";
|
|
8
8
|
|
|
9
9
|
// src/AvatarGroup/AvatarGroup.tsx
|
|
10
10
|
import {
|
|
@@ -44,4 +44,4 @@ export {
|
|
|
44
44
|
useAvatarGroup,
|
|
45
45
|
AvatarGroup
|
|
46
46
|
};
|
|
47
|
-
//# sourceMappingURL=
|
|
47
|
+
//# sourceMappingURL=Q4HTXMNF.js.map
|
|
@@ -22,13 +22,13 @@ var _UQY2ELTZcjs = require('./UQY2ELTZ.cjs');
|
|
|
22
22
|
var _J43HGNHNcjs = require('./J43HGNHN.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _GANR5JVVcjs = require('./GANR5JVV.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _YJWKUNYUcjs = require('./YJWKUNYU.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _JXOKXBDZcjs = require('./JXOKXBDZ.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _K4AUV2VKcjs = require('./K4AUV2VK.cjs');
|
|
@@ -61,7 +61,7 @@ var Button = _react.forwardRef.call(void 0,
|
|
|
61
61
|
type = "button"
|
|
62
62
|
}, ref) => {
|
|
63
63
|
const isHydrated = _K4AUV2VKcjs.useIsHydrated.call(void 0, );
|
|
64
|
-
const { themeName } =
|
|
64
|
+
const { themeName } = _JXOKXBDZcjs.useTheme.call(void 0, );
|
|
65
65
|
const foregroundColorClass = themeName === "classic" ? _UQY2ELTZcjs.classicForegroundColor.call(void 0, _HWQUS53Mcjs.classicColor.call(void 0, color)) : _UQY2ELTZcjs.cambioForegroundColor.call(void 0, _HWQUS53Mcjs.cambioColor.call(void 0, color), on);
|
|
66
66
|
const backgroundColorClass = themeName === "classic" ? _J43HGNHNcjs.classicBackgroundColor.call(void 0, _HWQUS53Mcjs.classicColor.call(void 0, color)) : _J43HGNHNcjs.cambioBackgroundColor.call(void 0, _HWQUS53Mcjs.cambioColor.call(void 0, color), on);
|
|
67
67
|
const disabledCambioPrimary = themeName === "cambio" && color === "primary" && disabled;
|
|
@@ -98,8 +98,8 @@ var Button = _react.forwardRef.call(void 0,
|
|
|
98
98
|
)
|
|
99
99
|
}
|
|
100
100
|
),
|
|
101
|
-
(loading && loadingText || !loading && text) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
102
|
-
|
|
101
|
+
(loading && loadingText || !loading && text) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GANR5JVVcjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
102
|
+
_YJWKUNYUcjs.Typography_default,
|
|
103
103
|
{
|
|
104
104
|
size: themeName === "classic" ? _5JUNB754cjs.textVariant_default[size] : _5JUNB754cjs.textVariant_default[size],
|
|
105
105
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -157,4 +157,4 @@ var Button_default = Button;
|
|
|
157
157
|
|
|
158
158
|
|
|
159
159
|
exports.Button_default = Button_default;
|
|
160
|
-
//# sourceMappingURL=
|
|
160
|
+
//# sourceMappingURL=QZZW6BPP.cjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _GANR5JVVcjs = require('./GANR5JVV.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _YJWKUNYUcjs = require('./YJWKUNYU.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _JXOKXBDZcjs = require('./JXOKXBDZ.cjs');
|
|
11
11
|
|
|
12
12
|
// css-module:./Badge.module.css#css-module
|
|
13
13
|
var Badge_module_default = { "icon": "_icon_1g9xb_1" };
|
|
@@ -78,10 +78,10 @@ var Badge = ({
|
|
|
78
78
|
text,
|
|
79
79
|
color = "primary700"
|
|
80
80
|
}) => {
|
|
81
|
-
const { themeName } =
|
|
81
|
+
const { themeName } = _JXOKXBDZcjs.useTheme.call(void 0, );
|
|
82
82
|
const mappedColor = themeName === "cambio" ? badgeColorClassicToCambio[color] : badgeColorCambioToClassic[color];
|
|
83
83
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
84
|
-
|
|
84
|
+
_GANR5JVVcjs.Box_default,
|
|
85
85
|
{
|
|
86
86
|
display: themeName === "classic" ? "inlineBlock" : "inlineFlex",
|
|
87
87
|
paddingX: themeName === "classic" ? 2 : 3,
|
|
@@ -91,10 +91,10 @@ var Badge = ({
|
|
|
91
91
|
alignItems: "center",
|
|
92
92
|
justifyContent: "center",
|
|
93
93
|
height: themeName === "cambio" ? 32 : void 0,
|
|
94
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
94
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _YJWKUNYUcjs.Typography_default, { color: textColorForBackgroundColor(mappedColor), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _GANR5JVVcjs.Box_default, { display: "flex", gap: 1, alignItems: "center", justifyContent: "start", children: [
|
|
95
95
|
Icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: Badge_module_default.icon }),
|
|
96
96
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
97
|
-
|
|
97
|
+
_YJWKUNYUcjs.Typography_default,
|
|
98
98
|
{
|
|
99
99
|
color: textColorForBackgroundColor(mappedColor),
|
|
100
100
|
size: 100,
|
|
@@ -111,4 +111,4 @@ var Badge_default = Badge;
|
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
exports.Badge_default = Badge_default;
|
|
114
|
-
//# sourceMappingURL=
|
|
114
|
+
//# sourceMappingURL=RJX7ZVAG.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 _JXOKXBDZcjs = require('./JXOKXBDZ.cjs');
|
|
5
5
|
|
|
6
6
|
// css-module:./ButtonGroup.module.css#css-module
|
|
7
7
|
var ButtonGroup_module_default = { "buttonGroup": "_buttonGroup_e77bq_1", "horizontal": "_horizontal_e77bq_5", "vertical": "_vertical_e77bq_9", "smallGap": "_smallGap_e77bq_13", "mediumGap": "_mediumGap_e77bq_17", "largeGap": "_largeGap_e77bq_21", "smallGapCambio": "_smallGapCambio_e77bq_25", "mediumGapCambio": "_mediumGapCambio_e77bq_29", "largeGapCambio": "_largeGapCambio_e77bq_33" };
|
|
@@ -24,7 +24,7 @@ var ButtonGroup = ({
|
|
|
24
24
|
size = "md",
|
|
25
25
|
children
|
|
26
26
|
}) => {
|
|
27
|
-
const { themeName } =
|
|
27
|
+
const { themeName } = _JXOKXBDZcjs.useTheme.call(void 0, );
|
|
28
28
|
const classnames = _classnames2.default.call(void 0,
|
|
29
29
|
ButtonGroup_module_default.buttonGroup,
|
|
30
30
|
themeName === "classic" ? gapClassic[size] : gapCambio[size],
|
|
@@ -40,4 +40,4 @@ var ButtonGroup_default = ButtonGroup;
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
exports.ButtonGroup_default = ButtonGroup_default;
|
|
43
|
-
//# sourceMappingURL=
|
|
43
|
+
//# sourceMappingURL=RVFY33X2.cjs.map
|
|
@@ -3,38 +3,38 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _PDKMXSDQcjs = require('./PDKMXSDQ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _M2CJONYScjs = require('./M2CJONYS.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _LECUYS4Ocjs = require('./LECUYS4O.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _W5MIJIZAcjs = require('./W5MIJIZA.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _UKLQ64N7cjs = require('./UKLQ64N7.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _O2J3F7UEcjs = require('./O2J3F7UE.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _Y2TA6QLYcjs = require('./Y2TA6QLY.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _AGJ2QSEPcjs = require('./AGJ2QSEP.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _GANR5JVVcjs = require('./GANR5JVV.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _YJWKUNYUcjs = require('./YJWKUNYU.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _JXOKXBDZcjs = require('./JXOKXBDZ.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
var _K4AUV2VKcjs = require('./K4AUV2VK.cjs');
|
|
@@ -108,14 +108,14 @@ function RichSelectList(props) {
|
|
|
108
108
|
const inputId = id != null ? id : reactId;
|
|
109
109
|
const isHydrated = _K4AUV2VKcjs.useIsHydrated.call(void 0, );
|
|
110
110
|
const disabled = !isHydrated || disabledProp;
|
|
111
|
-
const { themeName } =
|
|
111
|
+
const { themeName } = _JXOKXBDZcjs.useTheme.call(void 0, );
|
|
112
112
|
const overlayHandlerRef = _react.useRef.call(void 0, {});
|
|
113
113
|
const selectedKeysProp = _react.useMemo.call(void 0,
|
|
114
|
-
() =>
|
|
114
|
+
() => _PDKMXSDQcjs.convertSelection.call(void 0, selectedValuesProp),
|
|
115
115
|
[selectedValuesProp]
|
|
116
116
|
);
|
|
117
117
|
const defaultSelectedKeys = _react.useMemo.call(void 0,
|
|
118
|
-
() =>
|
|
118
|
+
() => _PDKMXSDQcjs.convertSelection.call(void 0, defaultSelectedValuesProp, /* @__PURE__ */ new Set()),
|
|
119
119
|
[defaultSelectedValuesProp]
|
|
120
120
|
);
|
|
121
121
|
const [selectedKeys, setSelectedKeys] = _utils.useControlledState.call(void 0,
|
|
@@ -153,8 +153,8 @@ function RichSelectList(props) {
|
|
|
153
153
|
_reactariacomponents.Provider,
|
|
154
154
|
{
|
|
155
155
|
values: [
|
|
156
|
-
[
|
|
157
|
-
[
|
|
156
|
+
[_PDKMXSDQcjs.RichSelectBoxContext, { autoFocus: true }],
|
|
157
|
+
[_W5MIJIZAcjs.DialogContext, { padding: autosave ? void 0 : 0 }]
|
|
158
158
|
// this is altering Popover's internal dialog padding to show the sticky save/close buttons. Ideally this could be avoided
|
|
159
159
|
],
|
|
160
160
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -177,23 +177,23 @@ function RichSelectList(props) {
|
|
|
177
177
|
(_a2 = fieldRef.current) == null ? void 0 : _a2.focus();
|
|
178
178
|
_interactions.setInteractionModality.call(void 0, "keyboard");
|
|
179
179
|
},
|
|
180
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
180
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GANR5JVVcjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _YJWKUNYUcjs.Typography_default, { size: 100, color: "gray700", children: label }) })
|
|
181
181
|
})
|
|
182
182
|
) }),
|
|
183
183
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
184
|
-
|
|
184
|
+
_LECUYS4Ocjs.Popover_default,
|
|
185
185
|
{
|
|
186
186
|
ref: overlayHandlerRef,
|
|
187
187
|
disabled,
|
|
188
188
|
content: (
|
|
189
189
|
// this Box wrapper is to reapply the padding that was stripped from popover's dialog to show the sticky save/close buttons. Ideally this could be avoided
|
|
190
190
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
191
|
-
|
|
191
|
+
_GANR5JVVcjs.Box_default,
|
|
192
192
|
{
|
|
193
193
|
padding: autosave ? void 0 : 5,
|
|
194
194
|
dangerouslySetInlineStyle: autosave ? void 0 : { __style: { paddingBottom: 0 } },
|
|
195
195
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
196
|
-
|
|
196
|
+
_PDKMXSDQcjs.RichSelectBox_default,
|
|
197
197
|
_X2SDR4SDcjs.__spreadProps.call(void 0, _X2SDR4SDcjs.__spreadValues.call(void 0, {
|
|
198
198
|
autosave,
|
|
199
199
|
selectedValues: selectedKeys,
|
|
@@ -243,7 +243,7 @@ function RichSelectList(props) {
|
|
|
243
243
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
244
244
|
"path",
|
|
245
245
|
{
|
|
246
|
-
fill: errorText ?
|
|
246
|
+
fill: errorText ? _O2J3F7UEcjs.ColorBaseDestructive700 : _O2J3F7UEcjs.ColorBaseGray800,
|
|
247
247
|
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"
|
|
248
248
|
}
|
|
249
249
|
)
|
|
@@ -254,8 +254,8 @@ function RichSelectList(props) {
|
|
|
254
254
|
)
|
|
255
255
|
}
|
|
256
256
|
),
|
|
257
|
-
(helperText || errorText) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
258
|
-
|
|
257
|
+
(helperText || errorText) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GANR5JVVcjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
258
|
+
_YJWKUNYUcjs.Typography_default,
|
|
259
259
|
_X2SDR4SDcjs.__spreadProps.call(void 0, _X2SDR4SDcjs.__spreadValues.call(void 0, {
|
|
260
260
|
size: 100,
|
|
261
261
|
color: errorText ? "destructive-primary" : "gray700"
|
|
@@ -270,12 +270,12 @@ function RichSelectList(props) {
|
|
|
270
270
|
);
|
|
271
271
|
}
|
|
272
272
|
var RichSelectList_default = Object.assign(RichSelectList, {
|
|
273
|
-
Section:
|
|
274
|
-
Chip:
|
|
275
|
-
RadioButton:
|
|
273
|
+
Section: _Y2TA6QLYcjs.RichSelectSection_default,
|
|
274
|
+
Chip: _M2CJONYScjs.RichSelectChip_default,
|
|
275
|
+
RadioButton: _AGJ2QSEPcjs.RichSelectRadioButton_default
|
|
276
276
|
});
|
|
277
277
|
|
|
278
278
|
|
|
279
279
|
|
|
280
280
|
exports.RichSelectList_default = RichSelectList_default;
|
|
281
|
-
//# sourceMappingURL=
|
|
281
|
+
//# sourceMappingURL=SRAYR7UN.cjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
Box_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./HCHFPFNX.js";
|
|
5
5
|
import {
|
|
6
6
|
Typography_default
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./MDAWMKBY.js";
|
|
8
8
|
import {
|
|
9
9
|
useTheme
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./4GTNQPPD.js";
|
|
11
11
|
import {
|
|
12
12
|
useIsHydrated
|
|
13
13
|
} from "./JB65NEXK.js";
|
|
@@ -95,4 +95,4 @@ function TextField({
|
|
|
95
95
|
export {
|
|
96
96
|
TextField
|
|
97
97
|
};
|
|
98
|
-
//# sourceMappingURL=
|
|
98
|
+
//# sourceMappingURL=UENUF2KR.js.map
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./B7PDT66P.js";
|
|
17
17
|
import {
|
|
18
18
|
useTheme
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./4GTNQPPD.js";
|
|
20
20
|
|
|
21
21
|
// src/Dialog/Dialog.tsx
|
|
22
22
|
import React, {
|
|
@@ -86,4 +86,4 @@ export {
|
|
|
86
86
|
DialogContext,
|
|
87
87
|
Dialog_default
|
|
88
88
|
};
|
|
89
|
-
//# sourceMappingURL=
|
|
89
|
+
//# sourceMappingURL=UF7SXHS4.js.map
|