@cambly/syntax-core 10.28.0 → 10.30.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.d.ts +1 -1
- package/dist/Badge/Badge.cjs +3 -3
- package/dist/Badge/Badge.css +59 -59
- package/dist/Badge/Badge.css.map +1 -1
- package/dist/Badge/Badge.d.ts +1 -1
- package/dist/Badge/Badge.js +2 -2
- package/dist/Button/Button.cjs +3 -3
- package/dist/Button/Button.css +59 -59
- package/dist/Button/Button.css.map +1 -1
- package/dist/Button/Button.js +2 -2
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/Checkbox/Checkbox.cjs +3 -3
- package/dist/Checkbox/Checkbox.css +59 -59
- package/dist/Checkbox/Checkbox.css.map +1 -1
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Checkbox/Checkbox.js +2 -2
- package/dist/Chip/Chip.cjs +3 -3
- package/dist/Chip/Chip.css +59 -59
- package/dist/Chip/Chip.css.map +1 -1
- package/dist/Chip/Chip.js +2 -2
- package/dist/Heading/Heading.cjs +3 -3
- package/dist/Heading/Heading.css +59 -59
- package/dist/Heading/Heading.css.map +1 -1
- package/dist/Heading/Heading.d.ts +2 -2
- package/dist/Heading/Heading.js +2 -2
- package/dist/LinkButton/LinkButton.cjs +3 -3
- package/dist/LinkButton/LinkButton.css +59 -59
- package/dist/LinkButton/LinkButton.css.map +1 -1
- package/dist/LinkButton/LinkButton.js +2 -2
- package/dist/Modal/FocusTrap.cjs +3 -2
- package/dist/Modal/FocusTrap.js +2 -1
- package/dist/Modal/Modal.cjs +5 -5
- package/dist/Modal/Modal.css +70 -72
- package/dist/Modal/Modal.css.map +1 -1
- package/dist/Modal/Modal.d.ts +6 -8
- package/dist/Modal/Modal.js +4 -4
- package/dist/RadioButton/RadioButton.cjs +3 -3
- package/dist/RadioButton/RadioButton.css +59 -59
- 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 +9 -9
- package/dist/RichSelect/RichSelectBox.css +59 -59
- package/dist/RichSelect/RichSelectBox.css.map +1 -1
- package/dist/RichSelect/RichSelectBox.d.ts +1 -1
- package/dist/RichSelect/RichSelectBox.js +8 -8
- package/dist/RichSelect/RichSelectChip.cjs +4 -4
- package/dist/RichSelect/RichSelectChip.css +59 -59
- package/dist/RichSelect/RichSelectChip.css.map +1 -1
- package/dist/RichSelect/RichSelectChip.js +3 -3
- package/dist/RichSelect/RichSelectList.cjs +11 -11
- package/dist/RichSelect/RichSelectList.css +59 -59
- package/dist/RichSelect/RichSelectList.css.map +1 -1
- package/dist/RichSelect/RichSelectList.d.ts +1 -1
- package/dist/RichSelect/RichSelectList.js +10 -10
- package/dist/RichSelect/RichSelectRadioButton.cjs +4 -4
- package/dist/RichSelect/RichSelectRadioButton.css +59 -59
- 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/RichSelect/RichSelectSection.cjs +3 -3
- package/dist/RichSelect/RichSelectSection.css +59 -59
- package/dist/RichSelect/RichSelectSection.css.map +1 -1
- package/dist/RichSelect/RichSelectSection.js +2 -2
- package/dist/SelectList/SelectList.cjs +4 -4
- package/dist/SelectList/SelectList.css +59 -59
- 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 +59 -59
- 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 +59 -59
- package/dist/TextField/TextField.css.map +1 -1
- package/dist/TextField/TextField.js +2 -2
- package/dist/Tooltip/Tooltip.cjs +3 -3
- package/dist/Tooltip/Tooltip.css +59 -59
- package/dist/Tooltip/Tooltip.css.map +1 -1
- package/dist/Tooltip/Tooltip.js +2 -2
- package/dist/Typography/Typography.cjs +2 -2
- package/dist/Typography/Typography.css +59 -59
- package/dist/Typography/Typography.css.map +1 -1
- package/dist/Typography/Typography.d.ts +5 -5
- package/dist/Typography/Typography.js +1 -1
- package/dist/__chunks/{SRAYR7UN.cjs → 2HNPYS3S.cjs} +17 -17
- package/dist/__chunks/{RJX7ZVAG.cjs → 2RWNBVOK.cjs} +4 -4
- package/dist/__chunks/{CVYKJOHP.js → 3CNALXRL.js} +5 -5
- package/dist/__chunks/{ICLT5QY2.cjs → 3FMGCZP2.cjs} +4 -4
- package/dist/__chunks/{UENUF2KR.js → 3HBVE6VG.js} +2 -2
- package/dist/__chunks/{5JUAIXVN.js → 3OWAOKRW.js} +7 -7
- package/dist/__chunks/{4HPBU76L.cjs → 5MKCDCHQ.cjs} +3 -3
- package/dist/__chunks/{JUB3D7BZ.js → 5PWYNWVE.js} +2 -2
- package/dist/__chunks/{JDOSJDOR.cjs → 6OCOGTM5.cjs} +6 -6
- package/dist/__chunks/{O2J3F7UE.cjs → 7SCBZPIF.cjs} +1 -1
- package/dist/__chunks/{O2J3F7UE.cjs.map → 7SCBZPIF.cjs.map} +1 -1
- package/dist/__chunks/AKKJTW7U.js +148 -0
- package/dist/__chunks/AKKJTW7U.js.map +1 -0
- package/dist/__chunks/{4IJQ4BTF.js → AYTJYJHI.js} +2 -2
- package/dist/__chunks/{4VJHC5OM.js → BQOD4WU7.js} +2 -2
- package/dist/__chunks/{6NYPDPF4.cjs → BVYHALMT.cjs} +3 -3
- package/dist/__chunks/CPIFXRXD.cjs +148 -0
- package/dist/__chunks/CPIFXRXD.cjs.map +1 -0
- package/dist/__chunks/{QZZW6BPP.cjs → CS66HKUB.cjs} +3 -3
- package/dist/__chunks/{HVYLG5OC.cjs → EKHHYK7U.cjs} +5 -5
- package/dist/__chunks/{6IRH354B.cjs → FH2W3CI2.cjs} +3 -3
- package/dist/__chunks/{KG6XG47I.js → FLFJRP4T.js} +2 -2
- package/dist/__chunks/{PDKMXSDQ.cjs → GEGGHBSM.cjs} +10 -10
- package/dist/__chunks/{J7FCX3U6.js → HVA7R2EL.js} +7 -3
- package/dist/__chunks/HVA7R2EL.js.map +1 -0
- package/dist/__chunks/{AWT6KV7A.js → I6CGA2ER.js} +2 -2
- package/dist/__chunks/{WEBZYCKQ.js → ICDRMDXD.js} +1 -1
- package/dist/__chunks/{WEBZYCKQ.js.map → ICDRMDXD.js.map} +1 -1
- package/dist/__chunks/{2HNKN7IN.js → JNYNLJGY.js} +2 -2
- package/dist/__chunks/{MBTIELOD.js → K27Z66LH.js} +2 -2
- package/dist/__chunks/{AAJM5GTF.js → KTTIFVGY.js} +2 -2
- package/dist/__chunks/{J25IK5J2.cjs → KYIRM6PZ.cjs} +3 -3
- package/dist/__chunks/{G7N4BOR7.js → MONMI3LS.js} +2 -2
- package/dist/__chunks/{XYPM2PWU.js → N5B6KNJR.js} +2 -2
- package/dist/__chunks/{4S6APU2V.cjs → NCUQOLOV.cjs} +3 -3
- package/dist/__chunks/{KR53ODQQ.js → OU5C2MBA.js} +2 -2
- package/dist/__chunks/{Y2TA6QLY.cjs → SFOAZYZG.cjs} +3 -3
- package/dist/__chunks/{WPKU2FTA.js → TDR3JRXZ.js} +3 -3
- package/dist/__chunks/{ZDQ6WQM3.cjs → THM3NAFO.cjs} +7 -3
- package/dist/__chunks/THM3NAFO.cjs.map +1 -0
- package/dist/__chunks/{GMKJSXXQ.cjs → THYSYYWS.cjs} +3 -3
- package/dist/__chunks/{MDAWMKBY.js → UVROGDYB.js} +2 -2
- package/dist/__chunks/{MDAWMKBY.js.map → UVROGDYB.js.map} +1 -1
- package/dist/__chunks/{AGJ2QSEP.cjs → WOIJRASP.cjs} +3 -3
- package/dist/__chunks/{AW4Z42KI.js → X5KCRFFF.js} +2 -2
- package/dist/__chunks/{YJWKUNYU.cjs → XU3CLITI.cjs} +2 -2
- package/dist/__chunks/{YJWKUNYU.cjs.map → XU3CLITI.cjs.map} +1 -1
- package/dist/__chunks/{M2CJONYS.cjs → ZUQC37VB.cjs} +3 -3
- package/dist/index.cjs +21 -21
- package/dist/index.css +70 -72
- package/dist/index.css.map +1 -1
- package/dist/index.js +20 -20
- package/package.json +1 -1
- package/dist/__chunks/432LXWXX.cjs +0 -177
- package/dist/__chunks/432LXWXX.cjs.map +0 -1
- package/dist/__chunks/J7FCX3U6.js.map +0 -1
- package/dist/__chunks/NKYN63G7.js +0 -177
- package/dist/__chunks/NKYN63G7.js.map +0 -1
- package/dist/__chunks/ZDQ6WQM3.cjs.map +0 -1
- /package/dist/__chunks/{SRAYR7UN.cjs.map → 2HNPYS3S.cjs.map} +0 -0
- /package/dist/__chunks/{RJX7ZVAG.cjs.map → 2RWNBVOK.cjs.map} +0 -0
- /package/dist/__chunks/{CVYKJOHP.js.map → 3CNALXRL.js.map} +0 -0
- /package/dist/__chunks/{ICLT5QY2.cjs.map → 3FMGCZP2.cjs.map} +0 -0
- /package/dist/__chunks/{UENUF2KR.js.map → 3HBVE6VG.js.map} +0 -0
- /package/dist/__chunks/{5JUAIXVN.js.map → 3OWAOKRW.js.map} +0 -0
- /package/dist/__chunks/{4HPBU76L.cjs.map → 5MKCDCHQ.cjs.map} +0 -0
- /package/dist/__chunks/{JUB3D7BZ.js.map → 5PWYNWVE.js.map} +0 -0
- /package/dist/__chunks/{JDOSJDOR.cjs.map → 6OCOGTM5.cjs.map} +0 -0
- /package/dist/__chunks/{4IJQ4BTF.js.map → AYTJYJHI.js.map} +0 -0
- /package/dist/__chunks/{4VJHC5OM.js.map → BQOD4WU7.js.map} +0 -0
- /package/dist/__chunks/{6NYPDPF4.cjs.map → BVYHALMT.cjs.map} +0 -0
- /package/dist/__chunks/{QZZW6BPP.cjs.map → CS66HKUB.cjs.map} +0 -0
- /package/dist/__chunks/{HVYLG5OC.cjs.map → EKHHYK7U.cjs.map} +0 -0
- /package/dist/__chunks/{6IRH354B.cjs.map → FH2W3CI2.cjs.map} +0 -0
- /package/dist/__chunks/{KG6XG47I.js.map → FLFJRP4T.js.map} +0 -0
- /package/dist/__chunks/{PDKMXSDQ.cjs.map → GEGGHBSM.cjs.map} +0 -0
- /package/dist/__chunks/{AWT6KV7A.js.map → I6CGA2ER.js.map} +0 -0
- /package/dist/__chunks/{2HNKN7IN.js.map → JNYNLJGY.js.map} +0 -0
- /package/dist/__chunks/{MBTIELOD.js.map → K27Z66LH.js.map} +0 -0
- /package/dist/__chunks/{AAJM5GTF.js.map → KTTIFVGY.js.map} +0 -0
- /package/dist/__chunks/{J25IK5J2.cjs.map → KYIRM6PZ.cjs.map} +0 -0
- /package/dist/__chunks/{G7N4BOR7.js.map → MONMI3LS.js.map} +0 -0
- /package/dist/__chunks/{XYPM2PWU.js.map → N5B6KNJR.js.map} +0 -0
- /package/dist/__chunks/{4S6APU2V.cjs.map → NCUQOLOV.cjs.map} +0 -0
- /package/dist/__chunks/{KR53ODQQ.js.map → OU5C2MBA.js.map} +0 -0
- /package/dist/__chunks/{Y2TA6QLY.cjs.map → SFOAZYZG.cjs.map} +0 -0
- /package/dist/__chunks/{WPKU2FTA.js.map → TDR3JRXZ.js.map} +0 -0
- /package/dist/__chunks/{GMKJSXXQ.cjs.map → THYSYYWS.cjs.map} +0 -0
- /package/dist/__chunks/{AGJ2QSEP.cjs.map → WOIJRASP.cjs.map} +0 -0
- /package/dist/__chunks/{AW4Z42KI.js.map → X5KCRFFF.js.map} +0 -0
- /package/dist/__chunks/{M2CJONYS.cjs.map → ZUQC37VB.cjs.map} +0 -0
|
@@ -7,7 +7,7 @@ var _XLUVINJWcjs = require('./XLUVINJW.cjs');
|
|
|
7
7
|
var _GANR5JVVcjs = require('./GANR5JVV.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _XU3CLITIcjs = require('./XU3CLITI.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _QAS3KERZcjs = require('./QAS3KERZ.cjs');
|
|
@@ -121,7 +121,7 @@ var RadioButton = ({
|
|
|
121
121
|
}
|
|
122
122
|
),
|
|
123
123
|
label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
124
|
-
|
|
124
|
+
_XU3CLITIcjs.Typography_default,
|
|
125
125
|
{
|
|
126
126
|
size: size === "md" ? 200 : 100,
|
|
127
127
|
color: error ? "destructive-primary" : "gray900",
|
|
@@ -137,4 +137,4 @@ var RadioButton_default = RadioButton;
|
|
|
137
137
|
|
|
138
138
|
|
|
139
139
|
exports.RadioButton_default = RadioButton_default;
|
|
140
|
-
//# sourceMappingURL=
|
|
140
|
+
//# sourceMappingURL=5MKCDCHQ.cjs.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./HCHFPFNX.js";
|
|
5
5
|
import {
|
|
6
6
|
Typography_default
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./UVROGDYB.js";
|
|
8
8
|
import {
|
|
9
9
|
useTheme
|
|
10
10
|
} from "./4GTNQPPD.js";
|
|
@@ -112,4 +112,4 @@ var Chip_default = Chip;
|
|
|
112
112
|
export {
|
|
113
113
|
Chip_default
|
|
114
114
|
};
|
|
115
|
-
//# sourceMappingURL=
|
|
115
|
+
//# sourceMappingURL=5PWYNWVE.js.map
|
|
@@ -5,7 +5,7 @@ var _4UJE5GMHcjs = require('./4UJE5GMH.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _7SCBZPIFcjs = require('./7SCBZPIF.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _XLUVINJWcjs = require('./XLUVINJW.cjs');
|
|
@@ -14,7 +14,7 @@ var _XLUVINJWcjs = require('./XLUVINJW.cjs');
|
|
|
14
14
|
var _GANR5JVVcjs = require('./GANR5JVV.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _XU3CLITIcjs = require('./XU3CLITI.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _JXOKXBDZcjs = require('./JXOKXBDZ.cjs');
|
|
@@ -70,7 +70,7 @@ function SelectList({
|
|
|
70
70
|
[SelectList_module_default.opacityOverlay]: disabled
|
|
71
71
|
}),
|
|
72
72
|
children: [
|
|
73
|
-
label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: selectId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GANR5JVVcjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
73
|
+
label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: selectId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GANR5JVVcjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _XU3CLITIcjs.Typography_default, { size: 100, color: "gray700", children: label }) }) }),
|
|
74
74
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SelectList_module_default.selectWrapper, children: [
|
|
75
75
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
76
76
|
"select",
|
|
@@ -113,7 +113,7 @@ function SelectList({
|
|
|
113
113
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
114
114
|
"path",
|
|
115
115
|
{
|
|
116
|
-
fill: errorText ?
|
|
116
|
+
fill: errorText ? _7SCBZPIFcjs.ColorBaseDestructive700 : _7SCBZPIFcjs.ColorBaseGray800,
|
|
117
117
|
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"
|
|
118
118
|
}
|
|
119
119
|
)
|
|
@@ -121,7 +121,7 @@ function SelectList({
|
|
|
121
121
|
) })
|
|
122
122
|
] }),
|
|
123
123
|
(helperText || errorText) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GANR5JVVcjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
124
|
-
|
|
124
|
+
_XU3CLITIcjs.Typography_default,
|
|
125
125
|
{
|
|
126
126
|
size: 100,
|
|
127
127
|
color: errorText ? "destructive-primary" : "gray700",
|
|
@@ -137,4 +137,4 @@ SelectList.Option = _4UJE5GMHcjs.SelectOption_default;
|
|
|
137
137
|
|
|
138
138
|
|
|
139
139
|
exports.SelectList = SelectList;
|
|
140
|
-
//# sourceMappingURL=
|
|
140
|
+
//# sourceMappingURL=6OCOGTM5.cjs.map
|
|
@@ -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 Thu, 28 Mar 2024 21:04:09 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"]}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import {
|
|
3
|
+
Heading_default
|
|
4
|
+
} from "./AYTJYJHI.js";
|
|
5
|
+
import {
|
|
6
|
+
StopScroll
|
|
7
|
+
} from "./QQT35OLE.js";
|
|
8
|
+
import {
|
|
9
|
+
Layer
|
|
10
|
+
} from "./GJBW4BG7.js";
|
|
11
|
+
import {
|
|
12
|
+
FocusTrap
|
|
13
|
+
} from "./HVA7R2EL.js";
|
|
14
|
+
import {
|
|
15
|
+
IconButton_default
|
|
16
|
+
} from "./VR4ZFZ4Z.js";
|
|
17
|
+
import {
|
|
18
|
+
Box_default
|
|
19
|
+
} from "./HCHFPFNX.js";
|
|
20
|
+
import {
|
|
21
|
+
useTheme
|
|
22
|
+
} from "./4GTNQPPD.js";
|
|
23
|
+
|
|
24
|
+
// src/Modal/Modal.tsx
|
|
25
|
+
import classnames from "classnames";
|
|
26
|
+
|
|
27
|
+
// css-module:./Modal.module.css#css-module
|
|
28
|
+
var Modal_module_default = { "backdrop": "_backdrop_9g2f1_1", "backdropClassic": "_backdropClassic_9g2f1_9", "backdropCambio": "_backdropCambio_9g2f1_13", "closeButton": "_closeButton_9g2f1_17", "closeButtonClassic": "_closeButtonClassic_9g2f1_32", "closeButtonWithImage": "_closeButtonWithImage_9g2f1_44", "closeButtonWithImageCambio": "_closeButtonWithImageCambio_9g2f1_48" };
|
|
29
|
+
|
|
30
|
+
// src/Modal/Modal.tsx
|
|
31
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
32
|
+
var sizeWidth = {
|
|
33
|
+
sm: 600,
|
|
34
|
+
lg: 600
|
|
35
|
+
};
|
|
36
|
+
function XIconCambio({ className }) {
|
|
37
|
+
return /* @__PURE__ */ jsx(
|
|
38
|
+
"svg",
|
|
39
|
+
{
|
|
40
|
+
className,
|
|
41
|
+
fill: "currentColor",
|
|
42
|
+
focusable: "false",
|
|
43
|
+
"aria-hidden": "true",
|
|
44
|
+
viewBox: "0 0 24 24",
|
|
45
|
+
children: /* @__PURE__ */ jsx("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" })
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
function Modal({
|
|
50
|
+
header,
|
|
51
|
+
children,
|
|
52
|
+
image,
|
|
53
|
+
onDismiss,
|
|
54
|
+
footer,
|
|
55
|
+
accessibilityCloseLabel = "close modal",
|
|
56
|
+
size = "sm",
|
|
57
|
+
zIndex = 1,
|
|
58
|
+
"data-testid": dataTestId
|
|
59
|
+
}) {
|
|
60
|
+
const { themeName } = useTheme();
|
|
61
|
+
return /* @__PURE__ */ jsx(Layer, { zIndex, children: /* @__PURE__ */ jsx(StopScroll, { children: /* @__PURE__ */ jsx(FocusTrap, { children: /* @__PURE__ */ jsx(
|
|
62
|
+
"div",
|
|
63
|
+
{
|
|
64
|
+
className: classnames(
|
|
65
|
+
Modal_module_default.backdrop,
|
|
66
|
+
themeName === "classic" ? Modal_module_default.backdropClassic : Modal_module_default.backdropCambio
|
|
67
|
+
),
|
|
68
|
+
role: "presentation",
|
|
69
|
+
onClick: (e) => e.target === e.currentTarget && onDismiss(),
|
|
70
|
+
onKeyDown: (e) => e.key === "Escape" && onDismiss(),
|
|
71
|
+
children: /* @__PURE__ */ jsxs(
|
|
72
|
+
Box_default,
|
|
73
|
+
{
|
|
74
|
+
"data-testid": dataTestId,
|
|
75
|
+
backgroundColor: "white",
|
|
76
|
+
rounding: "md",
|
|
77
|
+
display: "flex",
|
|
78
|
+
marginStart: 4,
|
|
79
|
+
marginEnd: 4,
|
|
80
|
+
marginTop: 8,
|
|
81
|
+
marginBottom: 8,
|
|
82
|
+
minWidth: 240,
|
|
83
|
+
maxHeight: "calc(100vh - 64px)",
|
|
84
|
+
maxWidth: sizeWidth[size],
|
|
85
|
+
overflow: "hidden",
|
|
86
|
+
position: "relative",
|
|
87
|
+
width: "100%",
|
|
88
|
+
children: [
|
|
89
|
+
/* @__PURE__ */ jsx(
|
|
90
|
+
Box_default,
|
|
91
|
+
{
|
|
92
|
+
position: "absolute",
|
|
93
|
+
dangerouslySetInlineStyle: {
|
|
94
|
+
__style: { top: 4, right: 4 }
|
|
95
|
+
},
|
|
96
|
+
children: /* @__PURE__ */ jsx(
|
|
97
|
+
IconButton_default,
|
|
98
|
+
{
|
|
99
|
+
accessibilityLabel: accessibilityCloseLabel,
|
|
100
|
+
color: image ? "primary" : "tertiary",
|
|
101
|
+
on: image ? "darkBackground" : "lightBackground",
|
|
102
|
+
onClick: onDismiss,
|
|
103
|
+
size: "sm",
|
|
104
|
+
icon: XIconCambio
|
|
105
|
+
}
|
|
106
|
+
)
|
|
107
|
+
}
|
|
108
|
+
),
|
|
109
|
+
/* @__PURE__ */ jsxs(Box_default, { display: "flex", direction: "column", width: "100%", children: [
|
|
110
|
+
image && /* @__PURE__ */ jsx(Box_default, { children: image }),
|
|
111
|
+
/* @__PURE__ */ jsx(Box_default, { padding: 6, children: /* @__PURE__ */ jsx(Heading_default, { as: "h1", size: 600, fontStyle: "serif", children: header }) }),
|
|
112
|
+
/* @__PURE__ */ jsx(
|
|
113
|
+
Box_default,
|
|
114
|
+
{
|
|
115
|
+
height: "100%",
|
|
116
|
+
overflowY: "auto",
|
|
117
|
+
paddingX: 6,
|
|
118
|
+
marginBottom: footer ? 0 : 6,
|
|
119
|
+
children
|
|
120
|
+
}
|
|
121
|
+
),
|
|
122
|
+
footer && /* @__PURE__ */ jsx(
|
|
123
|
+
Box_default,
|
|
124
|
+
{
|
|
125
|
+
display: "flex",
|
|
126
|
+
direction: "column",
|
|
127
|
+
gap: 3,
|
|
128
|
+
smDirection: "row",
|
|
129
|
+
smJustifyContent: "end",
|
|
130
|
+
lgDirection: "row",
|
|
131
|
+
lgJustifyContent: "end",
|
|
132
|
+
padding: 6,
|
|
133
|
+
children: footer
|
|
134
|
+
}
|
|
135
|
+
)
|
|
136
|
+
] })
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
)
|
|
140
|
+
}
|
|
141
|
+
) }) }) });
|
|
142
|
+
}
|
|
143
|
+
Modal.displayName = "Modal";
|
|
144
|
+
|
|
145
|
+
export {
|
|
146
|
+
Modal
|
|
147
|
+
};
|
|
148
|
+
//# sourceMappingURL=AKKJTW7U.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Modal/Modal.tsx","css-module:./Modal.module.css#css-module"],"sourcesContent":["import { type ReactElement } from \"react\";\nimport classnames from \"classnames\";\n\nimport Heading from \"../Heading/Heading\";\nimport Box from \"../Box/Box\";\n\nimport FocusTrap from \"./FocusTrap\";\nimport StopScroll from \"./StopScroll\";\nimport Layer from \"./Layer\";\nimport styles from \"./Modal.module.css\";\nimport { useTheme } from \"../ThemeProvider/ThemeProvider\";\nimport IconButton from \"../IconButton/IconButton\";\n\nconst sizeWidth = {\n sm: 600,\n lg: 600,\n} as const;\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/**\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\n * * Size should be 600w x 200h\n * * Be sure to set width=\"100%\" on the image\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 * * `sm`: 600px (deprecated)\n * * `lg`: 600px\n *\n *\n * @defaultValue sm\n * @deprecated\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=\"md\"\n display=\"flex\"\n marginStart={4}\n marginEnd={4}\n marginTop={8}\n marginBottom={8}\n minWidth={240}\n maxHeight=\"calc(100vh - 64px)\"\n maxWidth={sizeWidth[size]}\n overflow=\"hidden\"\n position=\"relative\"\n width=\"100%\"\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 display=\"flex\" direction=\"column\" width=\"100%\">\n {image && <Box>{image}</Box>}\n <Box padding={6}>\n <Heading as=\"h1\" size={600} fontStyle=\"serif\">\n {header}\n </Heading>\n </Box>\n <Box\n height=\"100%\"\n overflowY=\"auto\"\n paddingX={6}\n marginBottom={footer ? 0 : 6}\n >\n {children}\n </Box>\n {footer && (\n <Box\n display=\"flex\"\n direction=\"column\"\n gap={3}\n smDirection=\"row\"\n smJustifyContent=\"end\"\n lgDirection=\"row\"\n lgJustifyContent=\"end\"\n padding={6}\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_9g2f1_1\",\"backdropClassic\":\"_backdropClassic_9g2f1_9\",\"backdropCambio\":\"_backdropCambio_9g2f1_13\",\"closeButton\":\"_closeButton_9g2f1_17\",\"closeButtonClassic\":\"_closeButtonClassic_9g2f1_32\",\"closeButtonWithImage\":\"_closeButtonWithImage_9g2f1_44\",\"closeButtonWithImageCambio\":\"_closeButtonWithImageCambio_9g2f1_48\"}"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,gBAAgB;;;ACDmE,IAAO,uBAAQ,EAAC,YAAW,qBAAoB,mBAAkB,4BAA2B,kBAAiB,4BAA2B,eAAc,yBAAwB,sBAAqB,gCAA+B,wBAAuB,kCAAiC,8BAA6B,uCAAsC;;;AD2Bjb,cAuKQ,YAvKR;AAdN,IAAM,YAAY;AAAA,EAChB,IAAI;AAAA,EACJ,IAAI;AACN;AAEA,SAAS,YAAY,EAAE,UAAU,GAA2B;AAC1D,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,MAAK;AAAA,MACL,WAAU;AAAA,MACV,eAAY;AAAA,MACZ,SAAQ;AAAA,MAER,8BAAC,UAAK,GAAE,yGAAwG;AAAA;AAAA,EAClH;AAEJ;AAmCe,SAAR,MAAuB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,0BAA0B;AAAA,EAC1B,OAAO;AAAA,EACP,SAAS;AAAA,EACT,eAAe;AACjB,GAsEiB;AACf,QAAM,EAAE,UAAU,IAAI,SAAS;AAC/B,SACE,oBAAC,SAAM,QACL,8BAAC,cACC,8BAAC,aACC;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT,qBAAO;AAAA,QACP,cAAc,YACV,qBAAO,kBACP,qBAAO;AAAA,MACb;AAAA,MACA,MAAK;AAAA,MACL,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,iBAAiB,UAAU;AAAA,MAC1D,WAAW,CAAC,MAAM,EAAE,QAAQ,YAAY,UAAU;AAAA,MAElD;AAAA,QAAC;AAAA;AAAA,UACC,eAAa;AAAA,UACb,iBAAgB;AAAA,UAChB,UAAS;AAAA,UACT,SAAQ;AAAA,UACR,aAAa;AAAA,UACb,WAAW;AAAA,UACX,WAAW;AAAA,UACX,cAAc;AAAA,UACd,UAAU;AAAA,UACV,WAAU;AAAA,UACV,UAAU,UAAU,IAAI;AAAA,UACxB,UAAS;AAAA,UACT,UAAS;AAAA,UACT,OAAM;AAAA,UAEN;AAAA;AAAA,cAAC;AAAA;AAAA,gBACC,UAAS;AAAA,gBACT,2BAA2B;AAAA,kBACzB,SAAS,EAAE,KAAK,GAAG,OAAO,EAAE;AAAA,gBAC9B;AAAA,gBAEA;AAAA,kBAAC;AAAA;AAAA,oBACC,oBAAoB;AAAA,oBACpB,OAAO,QAAQ,YAAY;AAAA,oBAC3B,IAAI,QAAQ,mBAAmB;AAAA,oBAC/B,SAAS;AAAA,oBACT,MAAK;AAAA,oBACL,MAAM;AAAA;AAAA,gBACR;AAAA;AAAA,YACF;AAAA,YAEA,qBAAC,eAAI,SAAQ,QAAO,WAAU,UAAS,OAAM,QAC1C;AAAA,uBAAS,oBAAC,eAAK,iBAAM;AAAA,cACtB,oBAAC,eAAI,SAAS,GACZ,8BAAC,mBAAQ,IAAG,MAAK,MAAM,KAAK,WAAU,SACnC,kBACH,GACF;AAAA,cACA;AAAA,gBAAC;AAAA;AAAA,kBACC,QAAO;AAAA,kBACP,WAAU;AAAA,kBACV,UAAU;AAAA,kBACV,cAAc,SAAS,IAAI;AAAA,kBAE1B;AAAA;AAAA,cACH;AAAA,cACC,UACC;AAAA,gBAAC;AAAA;AAAA,kBACC,SAAQ;AAAA,kBACR,WAAU;AAAA,kBACV,KAAK;AAAA,kBACL,aAAY;AAAA,kBACZ,kBAAiB;AAAA,kBACjB,aAAY;AAAA,kBACZ,kBAAiB;AAAA,kBACjB,SAAS;AAAA,kBAER;AAAA;AAAA,cACH;AAAA,eAEJ;AAAA;AAAA;AAAA,MACF;AAAA;AAAA,EACF,GACF,GACF,GACF;AAEJ;AAEA,MAAM,cAAc;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
Typography_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./UVROGDYB.js";
|
|
5
5
|
import {
|
|
6
6
|
useTheme
|
|
7
7
|
} from "./4GTNQPPD.js";
|
|
@@ -52,4 +52,4 @@ var Heading_default = Heading;
|
|
|
52
52
|
export {
|
|
53
53
|
Heading_default
|
|
54
54
|
};
|
|
55
|
-
//# sourceMappingURL=
|
|
55
|
+
//# sourceMappingURL=AYTJYJHI.js.map
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./HCHFPFNX.js";
|
|
26
26
|
import {
|
|
27
27
|
Typography_default
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./UVROGDYB.js";
|
|
29
29
|
import {
|
|
30
30
|
useTheme
|
|
31
31
|
} from "./4GTNQPPD.js";
|
|
@@ -157,4 +157,4 @@ var Button_default = Button;
|
|
|
157
157
|
export {
|
|
158
158
|
Button_default
|
|
159
159
|
};
|
|
160
|
-
//# sourceMappingURL=
|
|
160
|
+
//# sourceMappingURL=BQOD4WU7.js.map
|
|
@@ -10,7 +10,7 @@ var _IL22HCBFcjs = require('./IL22HCBF.cjs');
|
|
|
10
10
|
var _S5QHTHSTcjs = require('./S5QHTHST.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _XU3CLITIcjs = require('./XU3CLITI.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
var _QAS3KERZcjs = require('./QAS3KERZ.cjs');
|
|
@@ -106,7 +106,7 @@ var AriaTooltip = _react.forwardRef.call(void 0, function AriaTooltip2(_a, ref)
|
|
|
106
106
|
childrenProp,
|
|
107
107
|
(children, { isEntering, isExiting }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
108
108
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipArrow, {}),
|
|
109
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
109
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _XU3CLITIcjs.Typography_default, { size: 100, color: "white", children }),
|
|
110
110
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
111
111
|
_E5P6WRJDcjs.OverlayVisibility,
|
|
112
112
|
{
|
|
@@ -166,4 +166,4 @@ var Tooltip_default = Tooltip;
|
|
|
166
166
|
|
|
167
167
|
|
|
168
168
|
exports.AriaTooltip = AriaTooltip; exports.Tooltip_default = Tooltip_default;
|
|
169
|
-
//# sourceMappingURL=
|
|
169
|
+
//# sourceMappingURL=BVYHALMT.cjs.map
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }"use client"
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _THYSYYWScjs = require('./THYSYYWS.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _HUIHS6RNcjs = require('./HUIHS6RN.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _6P6ARVEAcjs = require('./6P6ARVEA.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
var _THM3NAFOcjs = require('./THM3NAFO.cjs');
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
var _OAZD7W2Wcjs = require('./OAZD7W2W.cjs');
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
var _GANR5JVVcjs = require('./GANR5JVV.cjs');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
var _JXOKXBDZcjs = require('./JXOKXBDZ.cjs');
|
|
23
|
+
|
|
24
|
+
// src/Modal/Modal.tsx
|
|
25
|
+
var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames);
|
|
26
|
+
|
|
27
|
+
// css-module:./Modal.module.css#css-module
|
|
28
|
+
var Modal_module_default = { "backdrop": "_backdrop_9g2f1_1", "backdropClassic": "_backdropClassic_9g2f1_9", "backdropCambio": "_backdropCambio_9g2f1_13", "closeButton": "_closeButton_9g2f1_17", "closeButtonClassic": "_closeButtonClassic_9g2f1_32", "closeButtonWithImage": "_closeButtonWithImage_9g2f1_44", "closeButtonWithImageCambio": "_closeButtonWithImageCambio_9g2f1_48" };
|
|
29
|
+
|
|
30
|
+
// src/Modal/Modal.tsx
|
|
31
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
32
|
+
var sizeWidth = {
|
|
33
|
+
sm: 600,
|
|
34
|
+
lg: 600
|
|
35
|
+
};
|
|
36
|
+
function XIconCambio({ className }) {
|
|
37
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38
|
+
"svg",
|
|
39
|
+
{
|
|
40
|
+
className,
|
|
41
|
+
fill: "currentColor",
|
|
42
|
+
focusable: "false",
|
|
43
|
+
"aria-hidden": "true",
|
|
44
|
+
viewBox: "0 0 24 24",
|
|
45
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "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" })
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
function Modal({
|
|
50
|
+
header,
|
|
51
|
+
children,
|
|
52
|
+
image,
|
|
53
|
+
onDismiss,
|
|
54
|
+
footer,
|
|
55
|
+
accessibilityCloseLabel = "close modal",
|
|
56
|
+
size = "sm",
|
|
57
|
+
zIndex = 1,
|
|
58
|
+
"data-testid": dataTestId
|
|
59
|
+
}) {
|
|
60
|
+
const { themeName } = _JXOKXBDZcjs.useTheme.call(void 0, );
|
|
61
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _6P6ARVEAcjs.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,
|
|
62
|
+
"div",
|
|
63
|
+
{
|
|
64
|
+
className: _classnames2.default.call(void 0,
|
|
65
|
+
Modal_module_default.backdrop,
|
|
66
|
+
themeName === "classic" ? Modal_module_default.backdropClassic : Modal_module_default.backdropCambio
|
|
67
|
+
),
|
|
68
|
+
role: "presentation",
|
|
69
|
+
onClick: (e) => e.target === e.currentTarget && onDismiss(),
|
|
70
|
+
onKeyDown: (e) => e.key === "Escape" && onDismiss(),
|
|
71
|
+
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
72
|
+
_GANR5JVVcjs.Box_default,
|
|
73
|
+
{
|
|
74
|
+
"data-testid": dataTestId,
|
|
75
|
+
backgroundColor: "white",
|
|
76
|
+
rounding: "md",
|
|
77
|
+
display: "flex",
|
|
78
|
+
marginStart: 4,
|
|
79
|
+
marginEnd: 4,
|
|
80
|
+
marginTop: 8,
|
|
81
|
+
marginBottom: 8,
|
|
82
|
+
minWidth: 240,
|
|
83
|
+
maxHeight: "calc(100vh - 64px)",
|
|
84
|
+
maxWidth: sizeWidth[size],
|
|
85
|
+
overflow: "hidden",
|
|
86
|
+
position: "relative",
|
|
87
|
+
width: "100%",
|
|
88
|
+
children: [
|
|
89
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
90
|
+
_GANR5JVVcjs.Box_default,
|
|
91
|
+
{
|
|
92
|
+
position: "absolute",
|
|
93
|
+
dangerouslySetInlineStyle: {
|
|
94
|
+
__style: { top: 4, right: 4 }
|
|
95
|
+
},
|
|
96
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
97
|
+
_OAZD7W2Wcjs.IconButton_default,
|
|
98
|
+
{
|
|
99
|
+
accessibilityLabel: accessibilityCloseLabel,
|
|
100
|
+
color: image ? "primary" : "tertiary",
|
|
101
|
+
on: image ? "darkBackground" : "lightBackground",
|
|
102
|
+
onClick: onDismiss,
|
|
103
|
+
size: "sm",
|
|
104
|
+
icon: XIconCambio
|
|
105
|
+
}
|
|
106
|
+
)
|
|
107
|
+
}
|
|
108
|
+
),
|
|
109
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _GANR5JVVcjs.Box_default, { display: "flex", direction: "column", width: "100%", children: [
|
|
110
|
+
image && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GANR5JVVcjs.Box_default, { children: image }),
|
|
111
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GANR5JVVcjs.Box_default, { padding: 6, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _THYSYYWScjs.Heading_default, { as: "h1", size: 600, fontStyle: "serif", children: header }) }),
|
|
112
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
113
|
+
_GANR5JVVcjs.Box_default,
|
|
114
|
+
{
|
|
115
|
+
height: "100%",
|
|
116
|
+
overflowY: "auto",
|
|
117
|
+
paddingX: 6,
|
|
118
|
+
marginBottom: footer ? 0 : 6,
|
|
119
|
+
children
|
|
120
|
+
}
|
|
121
|
+
),
|
|
122
|
+
footer && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
123
|
+
_GANR5JVVcjs.Box_default,
|
|
124
|
+
{
|
|
125
|
+
display: "flex",
|
|
126
|
+
direction: "column",
|
|
127
|
+
gap: 3,
|
|
128
|
+
smDirection: "row",
|
|
129
|
+
smJustifyContent: "end",
|
|
130
|
+
lgDirection: "row",
|
|
131
|
+
lgJustifyContent: "end",
|
|
132
|
+
padding: 6,
|
|
133
|
+
children: footer
|
|
134
|
+
}
|
|
135
|
+
)
|
|
136
|
+
] })
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
)
|
|
140
|
+
}
|
|
141
|
+
) }) }) });
|
|
142
|
+
}
|
|
143
|
+
Modal.displayName = "Modal";
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
exports.Modal = Modal;
|
|
148
|
+
//# sourceMappingURL=CPIFXRXD.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Modal/Modal.tsx","css-module:./Modal.module.css#css-module"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,gBAAgB;;;ACDmE,IAAO,uBAAQ,EAAC,YAAW,qBAAoB,mBAAkB,4BAA2B,kBAAiB,4BAA2B,eAAc,yBAAwB,sBAAqB,gCAA+B,wBAAuB,kCAAiC,8BAA6B,uCAAsC;;;AD2Bjb,cAuKQ,YAvKR;AAdN,IAAM,YAAY;AAAA,EAChB,IAAI;AAAA,EACJ,IAAI;AACN;AAEA,SAAS,YAAY,EAAE,UAAU,GAA2B;AAC1D,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,MAAK;AAAA,MACL,WAAU;AAAA,MACV,eAAY;AAAA,MACZ,SAAQ;AAAA,MAER,8BAAC,UAAK,GAAE,yGAAwG;AAAA;AAAA,EAClH;AAEJ;AAmCe,SAAR,MAAuB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,0BAA0B;AAAA,EAC1B,OAAO;AAAA,EACP,SAAS;AAAA,EACT,eAAe;AACjB,GAsEiB;AACf,QAAM,EAAE,UAAU,IAAI,SAAS;AAC/B,SACE,oBAAC,SAAM,QACL,8BAAC,cACC,8BAAC,aACC;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT,qBAAO;AAAA,QACP,cAAc,YACV,qBAAO,kBACP,qBAAO;AAAA,MACb;AAAA,MACA,MAAK;AAAA,MACL,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,iBAAiB,UAAU;AAAA,MAC1D,WAAW,CAAC,MAAM,EAAE,QAAQ,YAAY,UAAU;AAAA,MAElD;AAAA,QAAC;AAAA;AAAA,UACC,eAAa;AAAA,UACb,iBAAgB;AAAA,UAChB,UAAS;AAAA,UACT,SAAQ;AAAA,UACR,aAAa;AAAA,UACb,WAAW;AAAA,UACX,WAAW;AAAA,UACX,cAAc;AAAA,UACd,UAAU;AAAA,UACV,WAAU;AAAA,UACV,UAAU,UAAU,IAAI;AAAA,UACxB,UAAS;AAAA,UACT,UAAS;AAAA,UACT,OAAM;AAAA,UAEN;AAAA;AAAA,cAAC;AAAA;AAAA,gBACC,UAAS;AAAA,gBACT,2BAA2B;AAAA,kBACzB,SAAS,EAAE,KAAK,GAAG,OAAO,EAAE;AAAA,gBAC9B;AAAA,gBAEA;AAAA,kBAAC;AAAA;AAAA,oBACC,oBAAoB;AAAA,oBACpB,OAAO,QAAQ,YAAY;AAAA,oBAC3B,IAAI,QAAQ,mBAAmB;AAAA,oBAC/B,SAAS;AAAA,oBACT,MAAK;AAAA,oBACL,MAAM;AAAA;AAAA,gBACR;AAAA;AAAA,YACF;AAAA,YAEA,qBAAC,eAAI,SAAQ,QAAO,WAAU,UAAS,OAAM,QAC1C;AAAA,uBAAS,oBAAC,eAAK,iBAAM;AAAA,cACtB,oBAAC,eAAI,SAAS,GACZ,8BAAC,mBAAQ,IAAG,MAAK,MAAM,KAAK,WAAU,SACnC,kBACH,GACF;AAAA,cACA;AAAA,gBAAC;AAAA;AAAA,kBACC,QAAO;AAAA,kBACP,WAAU;AAAA,kBACV,UAAU;AAAA,kBACV,cAAc,SAAS,IAAI;AAAA,kBAE1B;AAAA;AAAA,cACH;AAAA,cACC,UACC;AAAA,gBAAC;AAAA;AAAA,kBACC,SAAQ;AAAA,kBACR,WAAU;AAAA,kBACV,KAAK;AAAA,kBACL,aAAY;AAAA,kBACZ,kBAAiB;AAAA,kBACjB,aAAY;AAAA,kBACZ,kBAAiB;AAAA,kBACjB,SAAS;AAAA,kBAER;AAAA;AAAA,cACH;AAAA,eAEJ;AAAA;AAAA;AAAA,MACF;AAAA;AAAA,EACF,GACF,GACF,GACF;AAEJ;AAEA,MAAM,cAAc","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\nconst sizeWidth = {\n sm: 600,\n lg: 600,\n} as const;\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/**\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\n * * Size should be 600w x 200h\n * * Be sure to set width=\"100%\" on the image\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 * * `sm`: 600px (deprecated)\n * * `lg`: 600px\n *\n *\n * @defaultValue sm\n * @deprecated\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=\"md\"\n display=\"flex\"\n marginStart={4}\n marginEnd={4}\n marginTop={8}\n marginBottom={8}\n minWidth={240}\n maxHeight=\"calc(100vh - 64px)\"\n maxWidth={sizeWidth[size]}\n overflow=\"hidden\"\n position=\"relative\"\n width=\"100%\"\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 display=\"flex\" direction=\"column\" width=\"100%\">\n {image && <Box>{image}</Box>}\n <Box padding={6}>\n <Heading as=\"h1\" size={600} fontStyle=\"serif\">\n {header}\n </Heading>\n </Box>\n <Box\n height=\"100%\"\n overflowY=\"auto\"\n paddingX={6}\n marginBottom={footer ? 0 : 6}\n >\n {children}\n </Box>\n {footer && (\n <Box\n display=\"flex\"\n direction=\"column\"\n gap={3}\n smDirection=\"row\"\n smJustifyContent=\"end\"\n lgDirection=\"row\"\n lgJustifyContent=\"end\"\n padding={6}\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_9g2f1_1\",\"backdropClassic\":\"_backdropClassic_9g2f1_9\",\"backdropCambio\":\"_backdropCambio_9g2f1_13\",\"closeButton\":\"_closeButton_9g2f1_17\",\"closeButtonClassic\":\"_closeButtonClassic_9g2f1_32\",\"closeButtonWithImage\":\"_closeButtonWithImage_9g2f1_44\",\"closeButtonWithImageCambio\":\"_closeButtonWithImageCambio_9g2f1_48\"}"]}
|
|
@@ -25,7 +25,7 @@ var _J43HGNHNcjs = require('./J43HGNHN.cjs');
|
|
|
25
25
|
var _GANR5JVVcjs = require('./GANR5JVV.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _XU3CLITIcjs = require('./XU3CLITI.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
var _JXOKXBDZcjs = require('./JXOKXBDZ.cjs');
|
|
@@ -99,7 +99,7 @@ var Button = _react.forwardRef.call(void 0,
|
|
|
99
99
|
}
|
|
100
100
|
),
|
|
101
101
|
(loading && loadingText || !loading && text) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GANR5JVVcjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
102
|
-
|
|
102
|
+
_XU3CLITIcjs.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=CS66HKUB.cjs.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _GANR5JVVcjs = require('./GANR5JVV.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _XU3CLITIcjs = require('./XU3CLITI.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _JXOKXBDZcjs = require('./JXOKXBDZ.cjs');
|
|
@@ -58,8 +58,8 @@ var TextArea = _react.forwardRef.call(void 0,
|
|
|
58
58
|
},
|
|
59
59
|
position: themeName === "cambio" ? "relative" : void 0,
|
|
60
60
|
children: [
|
|
61
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: TextField_module_default.label, htmlFor: inputId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GANR5JVVcjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
62
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
61
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: TextField_module_default.label, htmlFor: inputId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GANR5JVVcjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _XU3CLITIcjs.Typography_default, { size: 100, color: "gray700", children: label }) }) }),
|
|
62
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _XU3CLITIcjs.Typography_default, { size: themeName === "cambio" ? 100 : 200, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
63
63
|
"textarea",
|
|
64
64
|
{
|
|
65
65
|
"data-testid": dataTestId,
|
|
@@ -84,7 +84,7 @@ var TextArea = _react.forwardRef.call(void 0,
|
|
|
84
84
|
}
|
|
85
85
|
) }),
|
|
86
86
|
(helperText || errorText) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GANR5JVVcjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
87
|
-
|
|
87
|
+
_XU3CLITIcjs.Typography_default,
|
|
88
88
|
{
|
|
89
89
|
size: 100,
|
|
90
90
|
color: errorText ? "destructive-primary" : "gray700",
|
|
@@ -101,4 +101,4 @@ var TextArea_default = TextArea;
|
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
exports.TextArea_default = TextArea_default;
|
|
104
|
-
//# sourceMappingURL=
|
|
104
|
+
//# sourceMappingURL=EKHHYK7U.cjs.map
|
|
@@ -22,7 +22,7 @@ var _UQY2ELTZcjs = require('./UQY2ELTZ.cjs');
|
|
|
22
22
|
var _J43HGNHNcjs = require('./J43HGNHN.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _XU3CLITIcjs = require('./XU3CLITI.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
var _JXOKXBDZcjs = require('./JXOKXBDZ.cjs');
|
|
@@ -89,7 +89,7 @@ var LinkButton = _react.forwardRef.call(void 0,
|
|
|
89
89
|
}
|
|
90
90
|
),
|
|
91
91
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
92
|
-
|
|
92
|
+
_XU3CLITIcjs.Typography_default,
|
|
93
93
|
{
|
|
94
94
|
size: themeName === "classic" ? _5JUNB754cjs.textVariant_default[size] : _5JUNB754cjs.textVariant_default[size],
|
|
95
95
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -123,4 +123,4 @@ var LinkButton_default = LinkButton;
|
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
exports.LinkButton_default = LinkButton_default;
|
|
126
|
-
//# sourceMappingURL=
|
|
126
|
+
//# sourceMappingURL=FH2W3CI2.cjs.map
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./IB3FQANU.js";
|
|
23
23
|
import {
|
|
24
24
|
Typography_default
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./UVROGDYB.js";
|
|
26
26
|
import {
|
|
27
27
|
useTheme
|
|
28
28
|
} from "./4GTNQPPD.js";
|
|
@@ -123,4 +123,4 @@ var LinkButton_default = LinkButton;
|
|
|
123
123
|
export {
|
|
124
124
|
LinkButton_default
|
|
125
125
|
};
|
|
126
|
-
//# sourceMappingURL=
|
|
126
|
+
//# sourceMappingURL=FLFJRP4T.js.map
|