@cambly/syntax-core 9.6.0 → 9.7.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.css +28 -0
- package/dist/Avatar/Avatar.css.map +1 -0
- package/dist/Avatar/Avatar.d.ts +27 -0
- package/dist/Avatar/Avatar.js +8 -0
- package/dist/Avatar/Avatar.js.map +1 -0
- package/dist/Avatar/Avatar.mjs +8 -0
- package/dist/Avatar/Avatar.mjs.map +1 -0
- package/dist/Badge/Badge.css +1870 -0
- package/dist/Badge/Badge.css.map +1 -0
- package/dist/Badge/Badge.d.ts +25 -0
- package/dist/Badge/Badge.js +13 -0
- package/dist/Badge/Badge.js.map +1 -0
- package/dist/Badge/Badge.mjs +13 -0
- package/dist/Badge/Badge.mjs.map +1 -0
- package/dist/Box/Box.css +1783 -0
- package/dist/Box/Box.css.map +1 -0
- package/dist/Box/Box.d.ts +371 -0
- package/dist/Box/Box.js +11 -0
- package/dist/Box/Box.js.map +1 -0
- package/dist/Box/Box.mjs +11 -0
- package/dist/Box/Box.mjs.map +1 -0
- package/dist/Button/Button.css +1956 -0
- package/dist/Button/Button.css.map +1 -0
- package/dist/Button/Button.d.ts +85 -0
- package/dist/Button/Button.js +21 -0
- package/dist/Button/Button.js.map +1 -0
- package/dist/Button/Button.mjs +21 -0
- package/dist/Button/Button.mjs.map +1 -0
- package/dist/Button/constants/iconSize.css +92 -0
- package/dist/Button/constants/iconSize.css.map +1 -0
- package/dist/Button/constants/iconSize.d.ts +7 -0
- package/dist/Button/constants/iconSize.js +8 -0
- package/dist/Button/constants/iconSize.js.map +1 -0
- package/dist/Button/constants/iconSize.mjs +8 -0
- package/dist/Button/constants/iconSize.mjs.map +1 -0
- package/dist/Button/constants/loadingIconSize.d.ts +7 -0
- package/dist/Button/constants/loadingIconSize.js +8 -0
- package/dist/Button/constants/loadingIconSize.js.map +1 -0
- package/dist/Button/constants/loadingIconSize.mjs +8 -0
- package/dist/Button/constants/loadingIconSize.mjs.map +1 -0
- package/dist/Button/constants/textVariant.d.ts +7 -0
- package/dist/Button/constants/textVariant.js +8 -0
- package/dist/Button/constants/textVariant.js.map +1 -0
- package/dist/Button/constants/textVariant.mjs +8 -0
- package/dist/Button/constants/textVariant.mjs.map +1 -0
- package/dist/ButtonGroup/ButtonGroup.css +20 -0
- package/dist/ButtonGroup/ButtonGroup.css.map +1 -0
- package/dist/ButtonGroup/ButtonGroup.d.ts +29 -0
- package/dist/ButtonGroup/ButtonGroup.js +8 -0
- package/dist/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/ButtonGroup/ButtonGroup.mjs +8 -0
- package/dist/ButtonGroup/ButtonGroup.mjs.map +1 -0
- package/dist/Card/Card.css +1783 -0
- package/dist/Card/Card.css.map +1 -0
- package/dist/Card/Card.d.ts +27 -0
- package/dist/Card/Card.js +12 -0
- package/dist/Card/Card.js.map +1 -0
- package/dist/Card/Card.mjs +12 -0
- package/dist/Card/Card.mjs.map +1 -0
- package/dist/Checkbox/Checkbox.css +313 -0
- package/dist/Checkbox/Checkbox.css.map +1 -0
- package/dist/Checkbox/Checkbox.d.ts +48 -0
- package/dist/Checkbox/Checkbox.js +14 -0
- package/dist/Checkbox/Checkbox.js.map +1 -0
- package/dist/Checkbox/Checkbox.mjs +14 -0
- package/dist/Checkbox/Checkbox.mjs.map +1 -0
- package/dist/Chip/Chip.css +1902 -0
- package/dist/Chip/Chip.css.map +1 -0
- package/dist/Chip/Chip.d.ts +45 -0
- package/dist/Chip/Chip.js +14 -0
- package/dist/Chip/Chip.js.map +1 -0
- package/dist/Chip/Chip.mjs +14 -0
- package/dist/Chip/Chip.mjs.map +1 -0
- package/dist/Divider/Divider.css +10 -0
- package/dist/Divider/Divider.css.map +1 -0
- package/dist/Divider/Divider.d.ts +9 -0
- package/dist/Divider/Divider.js +8 -0
- package/dist/Divider/Divider.js.map +1 -0
- package/dist/Divider/Divider.mjs +8 -0
- package/dist/Divider/Divider.mjs.map +1 -0
- package/dist/Heading/Heading.css +248 -0
- package/dist/Heading/Heading.css.map +1 -0
- package/dist/Heading/Heading.d.ts +52 -0
- package/dist/Heading/Heading.js +11 -0
- package/dist/Heading/Heading.js.map +1 -0
- package/dist/Heading/Heading.mjs +11 -0
- package/dist/Heading/Heading.mjs.map +1 -0
- package/dist/IconButton/IconButton.css +227 -0
- package/dist/IconButton/IconButton.css.map +1 -0
- package/dist/IconButton/IconButton.d.ts +55 -0
- package/dist/IconButton/IconButton.js +13 -0
- package/dist/IconButton/IconButton.js.map +1 -0
- package/dist/IconButton/IconButton.mjs +13 -0
- package/dist/IconButton/IconButton.mjs.map +1 -0
- package/dist/LinkButton/LinkButton.css +353 -0
- package/dist/LinkButton/LinkButton.css.map +1 -0
- package/dist/LinkButton/LinkButton.d.ts +72 -0
- package/dist/LinkButton/LinkButton.js +17 -0
- package/dist/LinkButton/LinkButton.js.map +1 -0
- package/dist/LinkButton/LinkButton.mjs +17 -0
- package/dist/LinkButton/LinkButton.mjs.map +1 -0
- package/dist/Modal/FocusTrap.d.ts +10 -0
- package/dist/Modal/FocusTrap.js +8 -0
- package/dist/Modal/FocusTrap.js.map +1 -0
- package/dist/Modal/FocusTrap.mjs +8 -0
- package/dist/Modal/FocusTrap.mjs.map +1 -0
- package/dist/Modal/Layer.css +1783 -0
- package/dist/Modal/Layer.css.map +1 -0
- package/dist/Modal/Layer.d.ts +8 -0
- package/dist/Modal/Layer.js +12 -0
- package/dist/Modal/Layer.js.map +1 -0
- package/dist/Modal/Layer.mjs +12 -0
- package/dist/Modal/Layer.mjs.map +1 -0
- package/dist/Modal/Modal.css +1898 -0
- package/dist/Modal/Modal.css.map +1 -0
- package/dist/Modal/Modal.d.ts +113 -0
- package/dist/Modal/Modal.js +17 -0
- package/dist/Modal/Modal.js.map +1 -0
- package/dist/Modal/Modal.mjs +17 -0
- package/dist/Modal/Modal.mjs.map +1 -0
- package/dist/Modal/StopScroll.d.ts +7 -0
- package/dist/Modal/StopScroll.js +8 -0
- package/dist/Modal/StopScroll.js.map +1 -0
- package/dist/Modal/StopScroll.mjs +8 -0
- package/dist/Modal/StopScroll.mjs.map +1 -0
- package/dist/RadioButton/RadioButton.css +318 -0
- package/dist/RadioButton/RadioButton.css.map +1 -0
- package/dist/RadioButton/RadioButton.d.ts +60 -0
- package/dist/RadioButton/RadioButton.js +14 -0
- package/dist/RadioButton/RadioButton.js.map +1 -0
- package/dist/RadioButton/RadioButton.mjs +14 -0
- package/dist/RadioButton/RadioButton.mjs.map +1 -0
- package/dist/SelectList/SelectList.css +335 -0
- package/dist/SelectList/SelectList.css.map +1 -0
- package/dist/SelectList/SelectList.d.ts +72 -0
- package/dist/SelectList/SelectList.js +15 -0
- package/dist/SelectList/SelectList.js.map +1 -0
- package/dist/SelectList/SelectList.mjs +15 -0
- package/dist/SelectList/SelectList.mjs.map +1 -0
- package/dist/SelectList/SelectOption.d.ts +10 -0
- package/dist/SelectList/SelectOption.js +8 -0
- package/dist/SelectList/SelectOption.js.map +1 -0
- package/dist/SelectList/SelectOption.mjs +8 -0
- package/dist/SelectList/SelectOption.mjs.map +1 -0
- package/dist/TapArea/TapArea.css +53 -0
- package/dist/TapArea/TapArea.css.map +1 -0
- package/dist/TapArea/TapArea.d.ts +53 -0
- package/dist/TapArea/TapArea.js +10 -0
- package/dist/TapArea/TapArea.js.map +1 -0
- package/dist/TapArea/TapArea.mjs +10 -0
- package/dist/TapArea/TapArea.mjs.map +1 -0
- package/dist/TextField/TextField.css +1913 -0
- package/dist/TextField/TextField.css.map +1 -0
- package/dist/TextField/TextField.d.ts +68 -0
- package/dist/TextField/TextField.js +14 -0
- package/dist/TextField/TextField.js.map +1 -0
- package/dist/TextField/TextField.mjs +14 -0
- package/dist/TextField/TextField.mjs.map +1 -0
- package/dist/Typography/Typography.css +248 -0
- package/dist/Typography/Typography.css.map +1 -0
- package/dist/Typography/Typography.d.ts +83 -0
- package/dist/Typography/Typography.js +10 -0
- package/dist/Typography/Typography.js.map +1 -0
- package/dist/Typography/Typography.mjs +10 -0
- package/dist/Typography/Typography.mjs.map +1 -0
- package/dist/__chunks/2JWMSFS7.js +31 -0
- package/dist/__chunks/2JWMSFS7.js.map +1 -0
- package/dist/__chunks/2O6FDRTF.js +7 -0
- package/dist/__chunks/2O6FDRTF.js.map +1 -0
- package/dist/__chunks/2PHVTRWC.js +86 -0
- package/dist/__chunks/2PHVTRWC.js.map +1 -0
- package/dist/__chunks/37CQV3RS.js +111 -0
- package/dist/__chunks/37CQV3RS.js.map +1 -0
- package/dist/__chunks/3PCHHAIY.mjs +7 -0
- package/dist/__chunks/3PCHHAIY.mjs.map +1 -0
- package/dist/__chunks/3VUMTAUX.js +68 -0
- package/dist/__chunks/3VUMTAUX.js.map +1 -0
- package/dist/__chunks/42YPEAFS.js +70 -0
- package/dist/__chunks/42YPEAFS.js.map +1 -0
- package/dist/__chunks/4PWSK5GI.js +15 -0
- package/dist/__chunks/4PWSK5GI.js.map +1 -0
- package/dist/__chunks/5AR53MHD.js +1 -0
- package/dist/__chunks/5AR53MHD.js.map +1 -0
- package/dist/__chunks/5DBWL6IK.js +12 -0
- package/dist/__chunks/5DBWL6IK.js.map +1 -0
- package/dist/__chunks/5R6HCJP6.mjs +68 -0
- package/dist/__chunks/5R6HCJP6.mjs.map +1 -0
- package/dist/__chunks/6VWFOSQZ.js +14 -0
- package/dist/__chunks/6VWFOSQZ.js.map +1 -0
- package/dist/__chunks/A7UVLRKG.mjs +15 -0
- package/dist/__chunks/A7UVLRKG.mjs.map +1 -0
- package/dist/__chunks/AFINOME7.js +17 -0
- package/dist/__chunks/AFINOME7.js.map +1 -0
- package/dist/__chunks/AGAHNSZM.js +127 -0
- package/dist/__chunks/AGAHNSZM.js.map +1 -0
- package/dist/__chunks/AMBZXKUQ.mjs +12 -0
- package/dist/__chunks/AMBZXKUQ.mjs.map +1 -0
- package/dist/__chunks/BCWLWS7W.mjs +74 -0
- package/dist/__chunks/BCWLWS7W.mjs.map +1 -0
- package/dist/__chunks/BJXYKZMK.mjs +53 -0
- package/dist/__chunks/BJXYKZMK.mjs.map +1 -0
- package/dist/__chunks/BSFWQWVJ.js +36 -0
- package/dist/__chunks/BSFWQWVJ.js.map +1 -0
- package/dist/__chunks/BSWWGQAS.js +111 -0
- package/dist/__chunks/BSWWGQAS.js.map +1 -0
- package/dist/__chunks/BWTLHCW3.mjs +111 -0
- package/dist/__chunks/BWTLHCW3.mjs.map +1 -0
- package/dist/__chunks/CATJI2RJ.js +26 -0
- package/dist/__chunks/CATJI2RJ.js.map +1 -0
- package/dist/__chunks/CGGEM6XS.mjs +96 -0
- package/dist/__chunks/CGGEM6XS.mjs.map +1 -0
- package/dist/__chunks/CPBWDVD4.mjs +110 -0
- package/dist/__chunks/CPBWDVD4.mjs.map +1 -0
- package/dist/__chunks/CQ2HIJ62.js +35 -0
- package/dist/__chunks/CQ2HIJ62.js.map +1 -0
- package/dist/__chunks/CUDAH5IW.mjs +38 -0
- package/dist/__chunks/CUDAH5IW.mjs.map +1 -0
- package/dist/__chunks/D24RSGYP.js +7 -0
- package/dist/__chunks/D24RSGYP.js.map +1 -0
- package/dist/__chunks/DVVFHZBW.mjs +120 -0
- package/dist/__chunks/DVVFHZBW.mjs.map +1 -0
- package/dist/__chunks/EKJ4XOIM.mjs +12 -0
- package/dist/__chunks/EKJ4XOIM.mjs.map +1 -0
- package/dist/__chunks/ERJ5XXDH.js +96 -0
- package/dist/__chunks/ERJ5XXDH.js.map +1 -0
- package/dist/__chunks/ERXGNP37.js +7 -0
- package/dist/__chunks/ERXGNP37.js.map +1 -0
- package/dist/__chunks/F3ZST4RL.js +74 -0
- package/dist/__chunks/F3ZST4RL.js.map +1 -0
- package/dist/__chunks/FCX7QDZS.mjs +94 -0
- package/dist/__chunks/FCX7QDZS.mjs.map +1 -0
- package/dist/__chunks/FOTKCGZZ.js +53 -0
- package/dist/__chunks/FOTKCGZZ.js.map +1 -0
- package/dist/__chunks/FUBK3VZO.js +28 -0
- package/dist/__chunks/FUBK3VZO.js.map +1 -0
- package/dist/__chunks/FWVHWU47.mjs +7 -0
- package/dist/__chunks/FWVHWU47.mjs.map +1 -0
- package/dist/__chunks/G4DDTGDI.js +31 -0
- package/dist/__chunks/G4DDTGDI.js.map +1 -0
- package/dist/__chunks/GPS2XNQI.js +120 -0
- package/dist/__chunks/GPS2XNQI.js.map +1 -0
- package/dist/__chunks/GVNDZZAU.mjs +14 -0
- package/dist/__chunks/GVNDZZAU.mjs.map +1 -0
- package/dist/__chunks/HAZN2FCY.mjs +28 -0
- package/dist/__chunks/HAZN2FCY.mjs.map +1 -0
- package/dist/__chunks/HOUO3WV6.js +14 -0
- package/dist/__chunks/HOUO3WV6.js.map +1 -0
- package/dist/__chunks/HQVZUEWO.js +22 -0
- package/dist/__chunks/HQVZUEWO.js.map +1 -0
- package/dist/__chunks/IXDA4ZXP.mjs +1 -0
- package/dist/__chunks/IXDA4ZXP.mjs.map +1 -0
- package/dist/__chunks/JSEHOGL7.mjs +7 -0
- package/dist/__chunks/JSEHOGL7.mjs.map +1 -0
- package/dist/__chunks/LJHH6KUW.js +28 -0
- package/dist/__chunks/LJHH6KUW.js.map +1 -0
- package/dist/__chunks/LKQ7PJ4S.mjs +229 -0
- package/dist/__chunks/LKQ7PJ4S.mjs.map +1 -0
- package/dist/__chunks/LULBCTQR.js +38 -0
- package/dist/__chunks/LULBCTQR.js.map +1 -0
- package/dist/__chunks/LZSDWT4M.mjs +110 -0
- package/dist/__chunks/LZSDWT4M.mjs.map +1 -0
- package/dist/__chunks/M6YFAP6P.mjs +28 -0
- package/dist/__chunks/M6YFAP6P.mjs.map +1 -0
- package/dist/__chunks/MX7C572C.mjs +36 -0
- package/dist/__chunks/MX7C572C.mjs.map +1 -0
- package/dist/__chunks/MZEIZAZH.mjs +35 -0
- package/dist/__chunks/MZEIZAZH.mjs.map +1 -0
- package/dist/__chunks/OGJDUOWP.js +94 -0
- package/dist/__chunks/OGJDUOWP.js.map +1 -0
- package/dist/__chunks/OQ26OWU4.mjs +111 -0
- package/dist/__chunks/OQ26OWU4.mjs.map +1 -0
- package/dist/__chunks/PGVLU6C3.mjs +70 -0
- package/dist/__chunks/PGVLU6C3.mjs.map +1 -0
- package/dist/__chunks/PYNS67IV.js +229 -0
- package/dist/__chunks/PYNS67IV.js.map +1 -0
- package/dist/__chunks/Q2TIB7ZC.mjs +26 -0
- package/dist/__chunks/Q2TIB7ZC.mjs.map +1 -0
- package/dist/__chunks/R6CDK4GP.mjs +31 -0
- package/dist/__chunks/R6CDK4GP.mjs.map +1 -0
- package/dist/__chunks/RRE7PRE5.mjs +86 -0
- package/dist/__chunks/RRE7PRE5.mjs.map +1 -0
- package/dist/__chunks/RSU3GDHB.mjs +73 -0
- package/dist/__chunks/RSU3GDHB.mjs.map +1 -0
- package/dist/__chunks/RVT6EXR3.mjs +31 -0
- package/dist/__chunks/RVT6EXR3.mjs.map +1 -0
- package/dist/__chunks/SAEVPDUP.js +12 -0
- package/dist/__chunks/SAEVPDUP.js.map +1 -0
- package/dist/__chunks/SXTRSFG5.mjs +14 -0
- package/dist/__chunks/SXTRSFG5.mjs.map +1 -0
- package/dist/__chunks/TKYRBLSM.js +110 -0
- package/dist/__chunks/TKYRBLSM.js.map +1 -0
- package/dist/__chunks/TPMQI44L.js +7 -0
- package/dist/__chunks/TPMQI44L.js.map +1 -0
- package/dist/__chunks/UCMB6MFN.mjs +17 -0
- package/dist/__chunks/UCMB6MFN.mjs.map +1 -0
- package/dist/__chunks/UNIBFDXV.js +73 -0
- package/dist/__chunks/UNIBFDXV.js.map +1 -0
- package/dist/__chunks/WCEOAOUO.mjs +127 -0
- package/dist/__chunks/WCEOAOUO.mjs.map +1 -0
- package/dist/__chunks/WJDAVT5R.mjs +7 -0
- package/dist/__chunks/WJDAVT5R.mjs.map +1 -0
- package/dist/__chunks/X74O4HUS.js +110 -0
- package/dist/__chunks/X74O4HUS.js.map +1 -0
- package/dist/__chunks/XFKGXL73.mjs +14 -0
- package/dist/__chunks/XFKGXL73.mjs.map +1 -0
- package/dist/__chunks/XN5AALLC.mjs +22 -0
- package/dist/__chunks/XN5AALLC.mjs.map +1 -0
- package/dist/__chunks/YJ7YDIGB.js +14 -0
- package/dist/__chunks/YJ7YDIGB.js.map +1 -0
- package/dist/colors/allColors.d.ts +3 -0
- package/dist/colors/allColors.js +58 -0
- package/dist/colors/allColors.js.map +1 -0
- package/dist/colors/allColors.mjs +58 -0
- package/dist/colors/allColors.mjs.map +1 -0
- package/dist/colors/backgroundColor.css +167 -0
- package/dist/colors/backgroundColor.css.map +1 -0
- package/dist/colors/backgroundColor.d.ts +5 -0
- package/dist/colors/backgroundColor.js +10 -0
- package/dist/colors/backgroundColor.js.map +1 -0
- package/dist/colors/backgroundColor.mjs +10 -0
- package/dist/colors/backgroundColor.mjs.map +1 -0
- package/dist/colors/foregroundColor.css +167 -0
- package/dist/colors/foregroundColor.css.map +1 -0
- package/dist/colors/foregroundColor.d.ts +5 -0
- package/dist/colors/foregroundColor.js +10 -0
- package/dist/colors/foregroundColor.js.map +1 -0
- package/dist/colors/foregroundColor.mjs +10 -0
- package/dist/colors/foregroundColor.mjs.map +1 -0
- package/dist/colors/foregroundTypographyColor.d.ts +5 -0
- package/dist/colors/foregroundTypographyColor.js +8 -0
- package/dist/colors/foregroundTypographyColor.js.map +1 -0
- package/dist/colors/foregroundTypographyColor.mjs +8 -0
- package/dist/colors/foregroundTypographyColor.mjs.map +1 -0
- package/dist/constants.d.ts +4 -0
- package/dist/constants.js +26 -0
- package/dist/constants.js.map +1 -0
- package/dist/constants.mjs +26 -0
- package/dist/constants.mjs.map +1 -0
- package/dist/index.d.ts +21 -1250
- package/dist/index.js +38 -1676
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +70 -1682
- package/dist/index.mjs.map +1 -1
- package/dist/useFocusVisible.d.ts +5 -0
- package/dist/useFocusVisible.js +8 -0
- package/dist/useFocusVisible.js.map +1 -0
- package/dist/useFocusVisible.mjs +8 -0
- package/dist/useFocusVisible.mjs.map +1 -0
- package/dist/useIsHydrated.d.ts +3 -0
- package/dist/useIsHydrated.js +8 -0
- package/dist/useIsHydrated.js.map +1 -0
- package/dist/useIsHydrated.mjs +8 -0
- package/dist/useIsHydrated.mjs.map +1 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,1731 +1,93 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __defProps = Object.defineProperties;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
-
var __spreadValues = (a, b) => {
|
|
14
|
-
for (var prop in b || (b = {}))
|
|
15
|
-
if (__hasOwnProp.call(b, prop))
|
|
16
|
-
__defNormalProp(a, prop, b[prop]);
|
|
17
|
-
if (__getOwnPropSymbols)
|
|
18
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
-
if (__propIsEnum.call(b, prop))
|
|
20
|
-
__defNormalProp(a, prop, b[prop]);
|
|
21
|
-
}
|
|
22
|
-
return a;
|
|
23
|
-
};
|
|
24
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
-
var __objRest = (source, exclude) => {
|
|
26
|
-
var target = {};
|
|
27
|
-
for (var prop in source)
|
|
28
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
-
target[prop] = source[prop];
|
|
30
|
-
if (source != null && __getOwnPropSymbols)
|
|
31
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
-
target[prop] = source[prop];
|
|
34
|
-
}
|
|
35
|
-
return target;
|
|
36
|
-
};
|
|
37
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
38
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
39
|
-
};
|
|
40
|
-
var __export = (target, all) => {
|
|
41
|
-
for (var name in all)
|
|
42
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
43
|
-
};
|
|
44
|
-
var __copyProps = (to, from, except, desc) => {
|
|
45
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
46
|
-
for (let key of __getOwnPropNames(from))
|
|
47
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
48
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
49
|
-
}
|
|
50
|
-
return to;
|
|
51
|
-
};
|
|
52
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
53
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
54
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
55
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
56
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
57
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
58
|
-
mod
|
|
59
|
-
));
|
|
60
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
61
2
|
|
|
62
|
-
|
|
63
|
-
var require_classnames = __commonJS({
|
|
64
|
-
"../../node_modules/classnames/index.js"(exports, module2) {
|
|
65
|
-
(function() {
|
|
66
|
-
"use strict";
|
|
67
|
-
var hasOwn = {}.hasOwnProperty;
|
|
68
|
-
var nativeCodeString = "[native code]";
|
|
69
|
-
function classNames12() {
|
|
70
|
-
var classes = [];
|
|
71
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
72
|
-
var arg = arguments[i];
|
|
73
|
-
if (!arg)
|
|
74
|
-
continue;
|
|
75
|
-
var argType = typeof arg;
|
|
76
|
-
if (argType === "string" || argType === "number") {
|
|
77
|
-
classes.push(arg);
|
|
78
|
-
} else if (Array.isArray(arg)) {
|
|
79
|
-
if (arg.length) {
|
|
80
|
-
var inner = classNames12.apply(null, arg);
|
|
81
|
-
if (inner) {
|
|
82
|
-
classes.push(inner);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
} else if (argType === "object") {
|
|
86
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
87
|
-
classes.push(arg.toString());
|
|
88
|
-
continue;
|
|
89
|
-
}
|
|
90
|
-
for (var key in arg) {
|
|
91
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
92
|
-
classes.push(key);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
return classes.join(" ");
|
|
98
|
-
}
|
|
99
|
-
if (typeof module2 !== "undefined" && module2.exports) {
|
|
100
|
-
classNames12.default = classNames12;
|
|
101
|
-
module2.exports = classNames12;
|
|
102
|
-
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
103
|
-
define("classnames", [], function() {
|
|
104
|
-
return classNames12;
|
|
105
|
-
});
|
|
106
|
-
} else {
|
|
107
|
-
window.classNames = classNames12;
|
|
108
|
-
}
|
|
109
|
-
})();
|
|
110
|
-
}
|
|
111
|
-
});
|
|
3
|
+
var _FUBK3VZOjs = require('./__chunks/FUBK3VZO.js');
|
|
112
4
|
|
|
113
|
-
// src/index.tsx
|
|
114
|
-
var src_exports = {};
|
|
115
|
-
__export(src_exports, {
|
|
116
|
-
Avatar: () => Avatar_default,
|
|
117
|
-
Badge: () => Badge_default,
|
|
118
|
-
Box: () => Box_default,
|
|
119
|
-
Button: () => Button_default,
|
|
120
|
-
ButtonGroup: () => ButtonGroup_default,
|
|
121
|
-
Card: () => Card,
|
|
122
|
-
Checkbox: () => Checkbox_default,
|
|
123
|
-
Chip: () => Chip_default,
|
|
124
|
-
Divider: () => Divider,
|
|
125
|
-
Heading: () => Heading_default,
|
|
126
|
-
IconButton: () => IconButton_default,
|
|
127
|
-
LinkButton: () => LinkButton_default,
|
|
128
|
-
Modal: () => Modal,
|
|
129
|
-
RadioButton: () => RadioButton_default,
|
|
130
|
-
SelectList: () => SelectList,
|
|
131
|
-
TapArea: () => TapArea_default,
|
|
132
|
-
TextField: () => TextField,
|
|
133
|
-
Typography: () => Typography_default
|
|
134
|
-
});
|
|
135
|
-
module.exports = __toCommonJS(src_exports);
|
|
136
5
|
|
|
137
|
-
|
|
138
|
-
var import_classnames = __toESM(require_classnames());
|
|
6
|
+
var _CQ2HIJ62js = require('./__chunks/CQ2HIJ62.js');
|
|
139
7
|
|
|
140
|
-
// css-module:./Avatar.module.css#css-module
|
|
141
|
-
var Avatar_module_default = { "avatar": "_avatar_1anoj_5", "sm": "_sm_1anoj_13", "md": "_md_1anoj_18", "lg": "_lg_1anoj_23", "xl": "_xl_1anoj_28" };
|
|
142
8
|
|
|
143
|
-
|
|
144
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
145
|
-
var Avatar = ({
|
|
146
|
-
src,
|
|
147
|
-
accessibilityLabel,
|
|
148
|
-
size = "md"
|
|
149
|
-
}) => {
|
|
150
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
151
|
-
"img",
|
|
152
|
-
{
|
|
153
|
-
alt: accessibilityLabel,
|
|
154
|
-
src,
|
|
155
|
-
className: (0, import_classnames.default)(Avatar_module_default.avatar, Avatar_module_default[size])
|
|
156
|
-
}
|
|
157
|
-
);
|
|
158
|
-
};
|
|
159
|
-
var Avatar_default = Avatar;
|
|
9
|
+
var _LJHH6KUWjs = require('./__chunks/LJHH6KUW.js');
|
|
160
10
|
|
|
161
|
-
// src/Typography/Typography.tsx
|
|
162
|
-
var import_classnames2 = __toESM(require_classnames());
|
|
163
11
|
|
|
164
|
-
|
|
165
|
-
|
|
12
|
+
var _GPS2XNQIjs = require('./__chunks/GPS2XNQI.js');
|
|
13
|
+
require('./__chunks/SAEVPDUP.js');
|
|
166
14
|
|
|
167
|
-
// css-module:../colors/colors.module.css#css-module
|
|
168
|
-
var colors_module_default = { "inheritColor": "_inheritColor_11l4y_2", "destructive700Color": "_destructive700Color_11l4y_6", "gray700Color": "_gray700Color_11l4y_10", "gray900Color": "_gray900Color_11l4y_14", "primary700Color": "_primary700Color_11l4y_18", "success700Color": "_success700Color_11l4y_22", "whiteColor": "_whiteColor_11l4y_26", "blackBackgroundColor": "_blackBackgroundColor_11l4y_31", "destructive100BackgroundColor": "_destructive100BackgroundColor_11l4y_35", "destructive200BackgroundColor": "_destructive200BackgroundColor_11l4y_39", "destructive300BackgroundColor": "_destructive300BackgroundColor_11l4y_43", "destructive700BackgroundColor": "_destructive700BackgroundColor_11l4y_47", "destructive800BackgroundColor": "_destructive800BackgroundColor_11l4y_51", "destructive900BackgroundColor": "_destructive900BackgroundColor_11l4y_55", "gray10BackgroundColor": "_gray10BackgroundColor_11l4y_59", "gray30BackgroundColor": "_gray30BackgroundColor_11l4y_63", "gray60BackgroundColor": "_gray60BackgroundColor_11l4y_67", "gray80BackgroundColor": "_gray80BackgroundColor_11l4y_71", "gray100BackgroundColor": "_gray100BackgroundColor_11l4y_75", "gray200BackgroundColor": "_gray200BackgroundColor_11l4y_79", "gray300BackgroundColor": "_gray300BackgroundColor_11l4y_83", "gray700BackgroundColor": "_gray700BackgroundColor_11l4y_87", "gray800BackgroundColor": "_gray800BackgroundColor_11l4y_91", "gray900BackgroundColor": "_gray900BackgroundColor_11l4y_95", "orange100BackgroundColor": "_orange100BackgroundColor_11l4y_99", "orange200BackgroundColor": "_orange200BackgroundColor_11l4y_103", "orange300BackgroundColor": "_orange300BackgroundColor_11l4y_107", "orange700BackgroundColor": "_orange700BackgroundColor_11l4y_111", "orange800BackgroundColor": "_orange800BackgroundColor_11l4y_115", "orange900BackgroundColor": "_orange900BackgroundColor_11l4y_119", "primary100BackgroundColor": "_primary100BackgroundColor_11l4y_123", "primary200BackgroundColor": "_primary200BackgroundColor_11l4y_127", "primary300BackgroundColor": "_primary300BackgroundColor_11l4y_131", "primary700BackgroundColor": "_primary700BackgroundColor_11l4y_135", "primary800BackgroundColor": "_primary800BackgroundColor_11l4y_139", "primary900BackgroundColor": "_primary900BackgroundColor_11l4y_143", "success100BackgroundColor": "_success100BackgroundColor_11l4y_147", "success200BackgroundColor": "_success200BackgroundColor_11l4y_151", "success300BackgroundColor": "_success300BackgroundColor_11l4y_155", "success700BackgroundColor": "_success700BackgroundColor_11l4y_159", "success800BackgroundColor": "_success800BackgroundColor_11l4y_163", "success900BackgroundColor": "_success900BackgroundColor_11l4y_167", "purple100BackgroundColor": "_purple100BackgroundColor_11l4y_171", "purple200BackgroundColor": "_purple200BackgroundColor_11l4y_175", "purple300BackgroundColor": "_purple300BackgroundColor_11l4y_179", "purple700BackgroundColor": "_purple700BackgroundColor_11l4y_183", "purple800BackgroundColor": "_purple800BackgroundColor_11l4y_187", "purple900BackgroundColor": "_purple900BackgroundColor_11l4y_191", "whiteBackgroundColor": "_whiteBackgroundColor_11l4y_195", "yellow100BackgroundColor": "_yellow100BackgroundColor_11l4y_199", "yellow200BackgroundColor": "_yellow200BackgroundColor_11l4y_203", "yellow300BackgroundColor": "_yellow300BackgroundColor_11l4y_207", "yellow700BackgroundColor": "_yellow700BackgroundColor_11l4y_211", "yellow800BackgroundColor": "_yellow800BackgroundColor_11l4y_215", "yellow900BackgroundColor": "_yellow900BackgroundColor_11l4y_219" };
|
|
169
15
|
|
|
170
|
-
|
|
171
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
172
|
-
function textColor(color) {
|
|
173
|
-
switch (color) {
|
|
174
|
-
case "gray700":
|
|
175
|
-
return colors_module_default.gray700Color;
|
|
176
|
-
case "white":
|
|
177
|
-
return colors_module_default.whiteColor;
|
|
178
|
-
case "inherit":
|
|
179
|
-
return colors_module_default.inheritColor;
|
|
180
|
-
case "primary":
|
|
181
|
-
return colors_module_default.primary700Color;
|
|
182
|
-
case "destructive-primary":
|
|
183
|
-
return colors_module_default.destructive700Color;
|
|
184
|
-
case "success":
|
|
185
|
-
return colors_module_default.success700Color;
|
|
186
|
-
default:
|
|
187
|
-
return colors_module_default.gray900Color;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
var Typography = ({
|
|
191
|
-
align = "start",
|
|
192
|
-
as = "div",
|
|
193
|
-
children,
|
|
194
|
-
color = "gray900",
|
|
195
|
-
"data-testid": dataTestId,
|
|
196
|
-
inline = false,
|
|
197
|
-
lineClamp = void 0,
|
|
198
|
-
size = 200,
|
|
199
|
-
tooltip,
|
|
200
|
-
transform = "none",
|
|
201
|
-
underline = false,
|
|
202
|
-
weight = "regular"
|
|
203
|
-
}) => {
|
|
204
|
-
const Tag = as;
|
|
205
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
206
|
-
Tag,
|
|
207
|
-
{
|
|
208
|
-
className: (0, import_classnames2.default)(
|
|
209
|
-
Typography_module_default.typography,
|
|
210
|
-
Typography_module_default[align],
|
|
211
|
-
Typography_module_default[weight],
|
|
212
|
-
textColor(color),
|
|
213
|
-
inline && Typography_module_default.inline,
|
|
214
|
-
Typography_module_default[`size${size}`],
|
|
215
|
-
transform === "uppercase" && Typography_module_default.uppercase,
|
|
216
|
-
underline && Typography_module_default.underline,
|
|
217
|
-
lineClamp != null && Typography_module_default.lineClamp
|
|
218
|
-
),
|
|
219
|
-
"data-testid": dataTestId,
|
|
220
|
-
style: {
|
|
221
|
-
WebkitLineClamp: lineClamp
|
|
222
|
-
},
|
|
223
|
-
title: tooltip,
|
|
224
|
-
children
|
|
225
|
-
}
|
|
226
|
-
);
|
|
227
|
-
};
|
|
228
|
-
var Typography_default = Typography;
|
|
16
|
+
var _FOTKCGZZjs = require('./__chunks/FOTKCGZZ.js');
|
|
229
17
|
|
|
230
|
-
// src/Box/Box.tsx
|
|
231
|
-
var import_classnames3 = __toESM(require_classnames());
|
|
232
18
|
|
|
233
|
-
|
|
234
|
-
|
|
19
|
+
var _ERJ5XXDHjs = require('./__chunks/ERJ5XXDH.js');
|
|
20
|
+
require('./__chunks/5DBWL6IK.js');
|
|
21
|
+
require('./__chunks/4PWSK5GI.js');
|
|
235
22
|
|
|
236
|
-
// css-module:./margin.module.css#css-module
|
|
237
|
-
var margin_module_default = { "marginBottom-12": "_marginBottom-12_1whn1_2", "marginBottom-11": "_marginBottom-11_1whn1_6", "marginBottom-10": "_marginBottom-10_1whn1_10", "marginBottom-9": "_marginBottom-9_1whn1_14", "marginBottom-8": "_marginBottom-8_1whn1_18", "marginBottom-7": "_marginBottom-7_1whn1_22", "marginBottom-6": "_marginBottom-6_1whn1_26", "marginBottom-5": "_marginBottom-5_1whn1_30", "marginBottom-4": "_marginBottom-4_1whn1_34", "marginBottom-3": "_marginBottom-3_1whn1_38", "marginBottom-2": "_marginBottom-2_1whn1_42", "marginBottom-1": "_marginBottom-1_1whn1_2", "marginBottom0": "_marginBottom0_1whn1_50", "marginBottom1": "_marginBottom1_1whn1_54", "marginBottom2": "_marginBottom2_1whn1_58", "marginBottom3": "_marginBottom3_1whn1_62", "marginBottom4": "_marginBottom4_1whn1_66", "marginBottom5": "_marginBottom5_1whn1_70", "marginBottom6": "_marginBottom6_1whn1_74", "marginBottom7": "_marginBottom7_1whn1_78", "marginBottom8": "_marginBottom8_1whn1_82", "marginBottom9": "_marginBottom9_1whn1_86", "marginBottom10": "_marginBottom10_1whn1_90", "marginBottom11": "_marginBottom11_1whn1_94", "marginBottom12": "_marginBottom12_1whn1_98", "marginBottomauto": "_marginBottomauto_1whn1_102", "marginEnd-12": "_marginEnd-12_1whn1_107", "marginEnd-11": "_marginEnd-11_1whn1_111", "marginEnd-10": "_marginEnd-10_1whn1_115", "marginEnd-9": "_marginEnd-9_1whn1_119", "marginEnd-8": "_marginEnd-8_1whn1_123", "marginEnd-7": "_marginEnd-7_1whn1_127", "marginEnd-6": "_marginEnd-6_1whn1_131", "marginEnd-5": "_marginEnd-5_1whn1_135", "marginEnd-4": "_marginEnd-4_1whn1_139", "marginEnd-3": "_marginEnd-3_1whn1_143", "marginEnd-2": "_marginEnd-2_1whn1_147", "marginEnd-1": "_marginEnd-1_1whn1_107", "marginEnd0": "_marginEnd0_1whn1_155", "marginEnd1": "_marginEnd1_1whn1_159", "marginEnd2": "_marginEnd2_1whn1_163", "marginEnd3": "_marginEnd3_1whn1_167", "marginEnd4": "_marginEnd4_1whn1_171", "marginEnd5": "_marginEnd5_1whn1_175", "marginEnd6": "_marginEnd6_1whn1_179", "marginEnd7": "_marginEnd7_1whn1_183", "marginEnd8": "_marginEnd8_1whn1_187", "marginEnd9": "_marginEnd9_1whn1_191", "marginEnd10": "_marginEnd10_1whn1_195", "marginEnd11": "_marginEnd11_1whn1_199", "marginEnd12": "_marginEnd12_1whn1_203", "marginEndauto": "_marginEndauto_1whn1_207", "marginStart-12": "_marginStart-12_1whn1_212", "marginStart-11": "_marginStart-11_1whn1_216", "marginStart-10": "_marginStart-10_1whn1_220", "marginStart-9": "_marginStart-9_1whn1_224", "marginStart-8": "_marginStart-8_1whn1_228", "marginStart-7": "_marginStart-7_1whn1_232", "marginStart-6": "_marginStart-6_1whn1_236", "marginStart-5": "_marginStart-5_1whn1_240", "marginStart-4": "_marginStart-4_1whn1_244", "marginStart-3": "_marginStart-3_1whn1_248", "marginStart-2": "_marginStart-2_1whn1_252", "marginStart-1": "_marginStart-1_1whn1_212", "marginStart0": "_marginStart0_1whn1_260", "marginStart1": "_marginStart1_1whn1_264", "marginStart2": "_marginStart2_1whn1_268", "marginStart3": "_marginStart3_1whn1_272", "marginStart4": "_marginStart4_1whn1_276", "marginStart5": "_marginStart5_1whn1_280", "marginStart6": "_marginStart6_1whn1_284", "marginStart7": "_marginStart7_1whn1_288", "marginStart8": "_marginStart8_1whn1_292", "marginStart9": "_marginStart9_1whn1_296", "marginStart10": "_marginStart10_1whn1_300", "marginStart11": "_marginStart11_1whn1_304", "marginStart12": "_marginStart12_1whn1_308", "marginStartauto": "_marginStartauto_1whn1_312", "marginTop-12": "_marginTop-12_1whn1_317", "marginTop-11": "_marginTop-11_1whn1_321", "marginTop-10": "_marginTop-10_1whn1_325", "marginTop-9": "_marginTop-9_1whn1_329", "marginTop-8": "_marginTop-8_1whn1_333", "marginTop-7": "_marginTop-7_1whn1_337", "marginTop-6": "_marginTop-6_1whn1_341", "marginTop-5": "_marginTop-5_1whn1_345", "marginTop-4": "_marginTop-4_1whn1_349", "marginTop-3": "_marginTop-3_1whn1_353", "marginTop-2": "_marginTop-2_1whn1_357", "marginTop-1": "_marginTop-1_1whn1_317", "marginTop0": "_marginTop0_1whn1_365", "marginTop1": "_marginTop1_1whn1_369", "marginTop2": "_marginTop2_1whn1_373", "marginTop3": "_marginTop3_1whn1_377", "marginTop4": "_marginTop4_1whn1_381", "marginTop5": "_marginTop5_1whn1_385", "marginTop6": "_marginTop6_1whn1_389", "marginTop7": "_marginTop7_1whn1_393", "marginTop8": "_marginTop8_1whn1_397", "marginTop9": "_marginTop9_1whn1_401", "marginTop10": "_marginTop10_1whn1_405", "marginTop11": "_marginTop11_1whn1_409", "marginTop12": "_marginTop12_1whn1_413", "marginTopauto": "_marginTopauto_1whn1_417", "marginBottom-12Small": "_marginBottom-12Small_1whn1_423", "marginBottom-11Small": "_marginBottom-11Small_1whn1_427", "marginBottom-10Small": "_marginBottom-10Small_1whn1_431", "marginBottom-9Small": "_marginBottom-9Small_1whn1_435", "marginBottom-8Small": "_marginBottom-8Small_1whn1_439", "marginBottom-7Small": "_marginBottom-7Small_1whn1_443", "marginBottom-6Small": "_marginBottom-6Small_1whn1_447", "marginBottom-5Small": "_marginBottom-5Small_1whn1_451", "marginBottom-4Small": "_marginBottom-4Small_1whn1_455", "marginBottom-3Small": "_marginBottom-3Small_1whn1_459", "marginBottom-2Small": "_marginBottom-2Small_1whn1_463", "marginBottom-1Small": "_marginBottom-1Small_1whn1_467", "marginBottom0Small": "_marginBottom0Small_1whn1_471", "marginBottom1Small": "_marginBottom1Small_1whn1_475", "marginBottom2Small": "_marginBottom2Small_1whn1_479", "marginBottom3Small": "_marginBottom3Small_1whn1_483", "marginBottom4Small": "_marginBottom4Small_1whn1_487", "marginBottom5Small": "_marginBottom5Small_1whn1_491", "marginBottom6Small": "_marginBottom6Small_1whn1_495", "marginBottom7Small": "_marginBottom7Small_1whn1_499", "marginBottom8Small": "_marginBottom8Small_1whn1_503", "marginBottom9Small": "_marginBottom9Small_1whn1_507", "marginBottom10Small": "_marginBottom10Small_1whn1_511", "marginBottom11Small": "_marginBottom11Small_1whn1_515", "marginBottom12Small": "_marginBottom12Small_1whn1_519", "marginBottomautoSmall": "_marginBottomautoSmall_1whn1_523", "marginEnd-12Small": "_marginEnd-12Small_1whn1_527", "marginEnd-11Small": "_marginEnd-11Small_1whn1_531", "marginEnd-10Small": "_marginEnd-10Small_1whn1_535", "marginEnd-9Small": "_marginEnd-9Small_1whn1_539", "marginEnd-8Small": "_marginEnd-8Small_1whn1_543", "marginEnd-7Small": "_marginEnd-7Small_1whn1_547", "marginEnd-6Small": "_marginEnd-6Small_1whn1_551", "marginEnd-5Small": "_marginEnd-5Small_1whn1_555", "marginEnd-4Small": "_marginEnd-4Small_1whn1_559", "marginEnd-3Small": "_marginEnd-3Small_1whn1_563", "marginEnd-2Small": "_marginEnd-2Small_1whn1_567", "marginEnd-1Small": "_marginEnd-1Small_1whn1_571", "marginEnd0Small": "_marginEnd0Small_1whn1_575", "marginEnd1Small": "_marginEnd1Small_1whn1_579", "marginEnd2Small": "_marginEnd2Small_1whn1_583", "marginEnd3Small": "_marginEnd3Small_1whn1_587", "marginEnd4Small": "_marginEnd4Small_1whn1_591", "marginEnd5Small": "_marginEnd5Small_1whn1_595", "marginEnd6Small": "_marginEnd6Small_1whn1_599", "marginEnd7Small": "_marginEnd7Small_1whn1_603", "marginEnd8Small": "_marginEnd8Small_1whn1_607", "marginEnd9Small": "_marginEnd9Small_1whn1_611", "marginEnd10Small": "_marginEnd10Small_1whn1_615", "marginEnd11Small": "_marginEnd11Small_1whn1_619", "marginEnd12Small": "_marginEnd12Small_1whn1_623", "marginEndautoSmall": "_marginEndautoSmall_1whn1_627", "marginStart-12Small": "_marginStart-12Small_1whn1_631", "marginStart-11Small": "_marginStart-11Small_1whn1_635", "marginStart-10Small": "_marginStart-10Small_1whn1_639", "marginStart-9Small": "_marginStart-9Small_1whn1_643", "marginStart-8Small": "_marginStart-8Small_1whn1_647", "marginStart-7Small": "_marginStart-7Small_1whn1_651", "marginStart-6Small": "_marginStart-6Small_1whn1_655", "marginStart-5Small": "_marginStart-5Small_1whn1_659", "marginStart-4Small": "_marginStart-4Small_1whn1_663", "marginStart-3Small": "_marginStart-3Small_1whn1_667", "marginStart-2Small": "_marginStart-2Small_1whn1_671", "marginStart-1Small": "_marginStart-1Small_1whn1_675", "marginStart0Small": "_marginStart0Small_1whn1_679", "marginStart1Small": "_marginStart1Small_1whn1_683", "marginStart2Small": "_marginStart2Small_1whn1_687", "marginStart3Small": "_marginStart3Small_1whn1_691", "marginStart4Small": "_marginStart4Small_1whn1_695", "marginStart5Small": "_marginStart5Small_1whn1_699", "marginStart6Small": "_marginStart6Small_1whn1_703", "marginStart7Small": "_marginStart7Small_1whn1_707", "marginStart8Small": "_marginStart8Small_1whn1_711", "marginStart9Small": "_marginStart9Small_1whn1_715", "marginStart10Small": "_marginStart10Small_1whn1_719", "marginStart11Small": "_marginStart11Small_1whn1_723", "marginStart12Small": "_marginStart12Small_1whn1_727", "marginStartautoSmall": "_marginStartautoSmall_1whn1_731", "marginTop-12Small": "_marginTop-12Small_1whn1_735", "marginTop-11Small": "_marginTop-11Small_1whn1_739", "marginTop-10Small": "_marginTop-10Small_1whn1_743", "marginTop-9Small": "_marginTop-9Small_1whn1_747", "marginTop-8Small": "_marginTop-8Small_1whn1_751", "marginTop-7Small": "_marginTop-7Small_1whn1_755", "marginTop-6Small": "_marginTop-6Small_1whn1_759", "marginTop-5Small": "_marginTop-5Small_1whn1_763", "marginTop-4Small": "_marginTop-4Small_1whn1_767", "marginTop-3Small": "_marginTop-3Small_1whn1_771", "marginTop-2Small": "_marginTop-2Small_1whn1_775", "marginTop-1Small": "_marginTop-1Small_1whn1_779", "marginTop0Small": "_marginTop0Small_1whn1_783", "marginTop1Small": "_marginTop1Small_1whn1_787", "marginTop2Small": "_marginTop2Small_1whn1_791", "marginTop3Small": "_marginTop3Small_1whn1_795", "marginTop4Small": "_marginTop4Small_1whn1_799", "marginTop5Small": "_marginTop5Small_1whn1_803", "marginTop6Small": "_marginTop6Small_1whn1_807", "marginTop7Small": "_marginTop7Small_1whn1_811", "marginTop8Small": "_marginTop8Small_1whn1_815", "marginTop9Small": "_marginTop9Small_1whn1_819", "marginTop10Small": "_marginTop10Small_1whn1_823", "marginTop11Small": "_marginTop11Small_1whn1_827", "marginTop12Small": "_marginTop12Small_1whn1_831", "marginTopautoSmall": "_marginTopautoSmall_1whn1_835", "marginBottom-12Large": "_marginBottom-12Large_1whn1_842", "marginBottom-11Large": "_marginBottom-11Large_1whn1_846", "marginBottom-10Large": "_marginBottom-10Large_1whn1_850", "marginBottom-9Large": "_marginBottom-9Large_1whn1_854", "marginBottom-8Large": "_marginBottom-8Large_1whn1_858", "marginBottom-7Large": "_marginBottom-7Large_1whn1_862", "marginBottom-6Large": "_marginBottom-6Large_1whn1_866", "marginBottom-5Large": "_marginBottom-5Large_1whn1_870", "marginBottom-4Large": "_marginBottom-4Large_1whn1_874", "marginBottom-3Large": "_marginBottom-3Large_1whn1_878", "marginBottom-2Large": "_marginBottom-2Large_1whn1_882", "marginBottom-1Large": "_marginBottom-1Large_1whn1_886", "marginBottom0Large": "_marginBottom0Large_1whn1_890", "marginBottom1Large": "_marginBottom1Large_1whn1_894", "marginBottom2Large": "_marginBottom2Large_1whn1_898", "marginBottom3Large": "_marginBottom3Large_1whn1_902", "marginBottom4Large": "_marginBottom4Large_1whn1_906", "marginBottom5Large": "_marginBottom5Large_1whn1_910", "marginBottom6Large": "_marginBottom6Large_1whn1_914", "marginBottom7Large": "_marginBottom7Large_1whn1_918", "marginBottom8Large": "_marginBottom8Large_1whn1_922", "marginBottom9Large": "_marginBottom9Large_1whn1_926", "marginBottom10Large": "_marginBottom10Large_1whn1_930", "marginBottom11Large": "_marginBottom11Large_1whn1_934", "marginBottom12Large": "_marginBottom12Large_1whn1_938", "marginBottomautoLarge": "_marginBottomautoLarge_1whn1_942", "marginEnd-12Large": "_marginEnd-12Large_1whn1_946", "marginEnd-11Large": "_marginEnd-11Large_1whn1_950", "marginEnd-10Large": "_marginEnd-10Large_1whn1_954", "marginEnd-9Large": "_marginEnd-9Large_1whn1_958", "marginEnd-8Large": "_marginEnd-8Large_1whn1_962", "marginEnd-7Large": "_marginEnd-7Large_1whn1_966", "marginEnd-6Large": "_marginEnd-6Large_1whn1_970", "marginEnd-5Large": "_marginEnd-5Large_1whn1_974", "marginEnd-4Large": "_marginEnd-4Large_1whn1_978", "marginEnd-3Large": "_marginEnd-3Large_1whn1_982", "marginEnd-2Large": "_marginEnd-2Large_1whn1_986", "marginEnd-1Large": "_marginEnd-1Large_1whn1_990", "marginEnd0Large": "_marginEnd0Large_1whn1_994", "marginEnd1Large": "_marginEnd1Large_1whn1_998", "marginEnd2Large": "_marginEnd2Large_1whn1_1002", "marginEnd3Large": "_marginEnd3Large_1whn1_1006", "marginEnd4Large": "_marginEnd4Large_1whn1_1010", "marginEnd5Large": "_marginEnd5Large_1whn1_1014", "marginEnd6Large": "_marginEnd6Large_1whn1_1018", "marginEnd7Large": "_marginEnd7Large_1whn1_1022", "marginEnd8Large": "_marginEnd8Large_1whn1_1026", "marginEnd9Large": "_marginEnd9Large_1whn1_1030", "marginEnd10Large": "_marginEnd10Large_1whn1_1034", "marginEnd11Large": "_marginEnd11Large_1whn1_1038", "marginEnd12Large": "_marginEnd12Large_1whn1_1042", "marginEndautoLarge": "_marginEndautoLarge_1whn1_1046", "marginStart-12Large": "_marginStart-12Large_1whn1_1050", "marginStart-11Large": "_marginStart-11Large_1whn1_1054", "marginStart-10Large": "_marginStart-10Large_1whn1_1058", "marginStart-9Large": "_marginStart-9Large_1whn1_1062", "marginStart-8Large": "_marginStart-8Large_1whn1_1066", "marginStart-7Large": "_marginStart-7Large_1whn1_1070", "marginStart-6Large": "_marginStart-6Large_1whn1_1074", "marginStart-5Large": "_marginStart-5Large_1whn1_1078", "marginStart-4Large": "_marginStart-4Large_1whn1_1082", "marginStart-3Large": "_marginStart-3Large_1whn1_1086", "marginStart-2Large": "_marginStart-2Large_1whn1_1090", "marginStart-1Large": "_marginStart-1Large_1whn1_1094", "marginStart0Large": "_marginStart0Large_1whn1_1098", "marginStart1Large": "_marginStart1Large_1whn1_1102", "marginStart2Large": "_marginStart2Large_1whn1_1106", "marginStart3Large": "_marginStart3Large_1whn1_1110", "marginStart4Large": "_marginStart4Large_1whn1_1114", "marginStart5Large": "_marginStart5Large_1whn1_1118", "marginStart6Large": "_marginStart6Large_1whn1_1122", "marginStart7Large": "_marginStart7Large_1whn1_1126", "marginStart8Large": "_marginStart8Large_1whn1_1130", "marginStart9Large": "_marginStart9Large_1whn1_1134", "marginStart10Large": "_marginStart10Large_1whn1_1138", "marginStart11Large": "_marginStart11Large_1whn1_1142", "marginStart12Large": "_marginStart12Large_1whn1_1146", "marginStartautoLarge": "_marginStartautoLarge_1whn1_1150", "marginTop-12Large": "_marginTop-12Large_1whn1_1154", "marginTop-11Large": "_marginTop-11Large_1whn1_1158", "marginTop-10Large": "_marginTop-10Large_1whn1_1162", "marginTop-9Large": "_marginTop-9Large_1whn1_1166", "marginTop-8Large": "_marginTop-8Large_1whn1_1170", "marginTop-7Large": "_marginTop-7Large_1whn1_1174", "marginTop-6Large": "_marginTop-6Large_1whn1_1178", "marginTop-5Large": "_marginTop-5Large_1whn1_1182", "marginTop-4Large": "_marginTop-4Large_1whn1_1186", "marginTop-3Large": "_marginTop-3Large_1whn1_1190", "marginTop-2Large": "_marginTop-2Large_1whn1_1194", "marginTop-1Large": "_marginTop-1Large_1whn1_1198", "marginTop0Large": "_marginTop0Large_1whn1_1202", "marginTop1Large": "_marginTop1Large_1whn1_1206", "marginTop2Large": "_marginTop2Large_1whn1_1210", "marginTop3Large": "_marginTop3Large_1whn1_1214", "marginTop4Large": "_marginTop4Large_1whn1_1218", "marginTop5Large": "_marginTop5Large_1whn1_1222", "marginTop6Large": "_marginTop6Large_1whn1_1226", "marginTop7Large": "_marginTop7Large_1whn1_1230", "marginTop8Large": "_marginTop8Large_1whn1_1234", "marginTop9Large": "_marginTop9Large_1whn1_1238", "marginTop10Large": "_marginTop10Large_1whn1_1242", "marginTop11Large": "_marginTop11Large_1whn1_1246", "marginTop12Large": "_marginTop12Large_1whn1_1250", "marginTopautoLarge": "_marginTopautoLarge_1whn1_1254" };
|
|
238
23
|
|
|
239
|
-
|
|
240
|
-
var padding_module_default = { "paddingX0": "_paddingX0_1aqye_2", "paddingX1": "_paddingX1_1aqye_7", "paddingX2": "_paddingX2_1aqye_12", "paddingX3": "_paddingX3_1aqye_17", "paddingX4": "_paddingX4_1aqye_22", "paddingX5": "_paddingX5_1aqye_27", "paddingX6": "_paddingX6_1aqye_32", "paddingX7": "_paddingX7_1aqye_37", "paddingX8": "_paddingX8_1aqye_42", "paddingX9": "_paddingX9_1aqye_47", "paddingX10": "_paddingX10_1aqye_52", "paddingX11": "_paddingX11_1aqye_57", "paddingX12": "_paddingX12_1aqye_62", "paddingY0": "_paddingY0_1aqye_67", "paddingY1": "_paddingY1_1aqye_72", "paddingY2": "_paddingY2_1aqye_77", "paddingY3": "_paddingY3_1aqye_82", "paddingY4": "_paddingY4_1aqye_87", "paddingY5": "_paddingY5_1aqye_92", "paddingY6": "_paddingY6_1aqye_97", "paddingY7": "_paddingY7_1aqye_102", "paddingY8": "_paddingY8_1aqye_107", "paddingY9": "_paddingY9_1aqye_112", "paddingY10": "_paddingY10_1aqye_117", "paddingY11": "_paddingY11_1aqye_122", "paddingY12": "_paddingY12_1aqye_127", "paddingX0Small": "_paddingX0Small_1aqye_134", "paddingX1Small": "_paddingX1Small_1aqye_139", "paddingX2Small": "_paddingX2Small_1aqye_144", "paddingX3Small": "_paddingX3Small_1aqye_149", "paddingX4Small": "_paddingX4Small_1aqye_154", "paddingX5Small": "_paddingX5Small_1aqye_159", "paddingX6Small": "_paddingX6Small_1aqye_164", "paddingX7Small": "_paddingX7Small_1aqye_169", "paddingX8Small": "_paddingX8Small_1aqye_174", "paddingX9Small": "_paddingX9Small_1aqye_179", "paddingX10Small": "_paddingX10Small_1aqye_184", "paddingX11Small": "_paddingX11Small_1aqye_189", "paddingX12Small": "_paddingX12Small_1aqye_194", "paddingY0Small": "_paddingY0Small_1aqye_199", "paddingY1Small": "_paddingY1Small_1aqye_204", "paddingY2Small": "_paddingY2Small_1aqye_209", "paddingY3Small": "_paddingY3Small_1aqye_214", "paddingY4Small": "_paddingY4Small_1aqye_219", "paddingY5Small": "_paddingY5Small_1aqye_224", "paddingY6Small": "_paddingY6Small_1aqye_229", "paddingY7Small": "_paddingY7Small_1aqye_234", "paddingY8Small": "_paddingY8Small_1aqye_239", "paddingY9Small": "_paddingY9Small_1aqye_244", "paddingY10Small": "_paddingY10Small_1aqye_249", "paddingY11Small": "_paddingY11Small_1aqye_254", "paddingY12Small": "_paddingY12Small_1aqye_259", "paddingX0Large": "_paddingX0Large_1aqye_267", "paddingX1Large": "_paddingX1Large_1aqye_272", "paddingX2Large": "_paddingX2Large_1aqye_277", "paddingX3Large": "_paddingX3Large_1aqye_282", "paddingX4Large": "_paddingX4Large_1aqye_287", "paddingX5Large": "_paddingX5Large_1aqye_292", "paddingX6Large": "_paddingX6Large_1aqye_297", "paddingX7Large": "_paddingX7Large_1aqye_302", "paddingX8Large": "_paddingX8Large_1aqye_307", "paddingX9Large": "_paddingX9Large_1aqye_312", "paddingX10Large": "_paddingX10Large_1aqye_317", "paddingX11Large": "_paddingX11Large_1aqye_322", "paddingX12Large": "_paddingX12Large_1aqye_327", "paddingY0Large": "_paddingY0Large_1aqye_332", "paddingY1Large": "_paddingY1Large_1aqye_337", "paddingY2Large": "_paddingY2Large_1aqye_342", "paddingY3Large": "_paddingY3Large_1aqye_347", "paddingY4Large": "_paddingY4Large_1aqye_352", "paddingY5Large": "_paddingY5Large_1aqye_357", "paddingY6Large": "_paddingY6Large_1aqye_362", "paddingY7Large": "_paddingY7Large_1aqye_367", "paddingY8Large": "_paddingY8Large_1aqye_372", "paddingY9Large": "_paddingY9Large_1aqye_377", "paddingY10Large": "_paddingY10Large_1aqye_382", "paddingY11Large": "_paddingY11Large_1aqye_387", "paddingY12Large": "_paddingY12Large_1aqye_392" };
|
|
24
|
+
var _3VUMTAUXjs = require('./__chunks/3VUMTAUX.js');
|
|
241
25
|
|
|
242
|
-
// css-module:../rounding.module.css#css-module
|
|
243
|
-
var rounding_module_default = { "roundingsm": "_roundingsm_1bo6p_2", "roundingmd": "_roundingmd_1bo6p_6", "roundinglg": "_roundinglg_1bo6p_10", "roundingxl": "_roundingxl_1bo6p_14", "roundingfull": "_roundingfull_1bo6p_18" };
|
|
244
26
|
|
|
245
|
-
|
|
246
|
-
var import_react = require("react");
|
|
247
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
248
|
-
var Box = (0, import_react.forwardRef)(function Box2(props, ref) {
|
|
249
|
-
var _c;
|
|
250
|
-
const _a = props, { as: BoxElement = "div", children } = _a, boxProps = __objRest(_a, ["as", "children"]);
|
|
251
|
-
const _b = boxProps, {
|
|
252
|
-
alignItems: alignItems,
|
|
253
|
-
smAlignItems,
|
|
254
|
-
lgAlignItems,
|
|
255
|
-
alignSelf,
|
|
256
|
-
backgroundColor: backgroundColor2,
|
|
257
|
-
direction,
|
|
258
|
-
smDirection,
|
|
259
|
-
lgDirection,
|
|
260
|
-
display,
|
|
261
|
-
smDisplay,
|
|
262
|
-
lgDisplay,
|
|
263
|
-
flex,
|
|
264
|
-
flexWrap,
|
|
265
|
-
gap: gap2,
|
|
266
|
-
justifyContent,
|
|
267
|
-
smJustifyContent,
|
|
268
|
-
lgJustifyContent,
|
|
269
|
-
margin: margin,
|
|
270
|
-
marginBottom,
|
|
271
|
-
marginEnd,
|
|
272
|
-
marginStart,
|
|
273
|
-
marginTop,
|
|
274
|
-
smMargin,
|
|
275
|
-
smMarginBottom,
|
|
276
|
-
smMarginEnd,
|
|
277
|
-
smMarginStart,
|
|
278
|
-
smMarginTop,
|
|
279
|
-
lgMargin,
|
|
280
|
-
lgMarginBottom,
|
|
281
|
-
lgMarginEnd,
|
|
282
|
-
lgMarginStart,
|
|
283
|
-
lgMarginTop,
|
|
284
|
-
overflow: overflow,
|
|
285
|
-
overflowX,
|
|
286
|
-
overflowY,
|
|
287
|
-
padding: padding,
|
|
288
|
-
paddingX,
|
|
289
|
-
paddingY,
|
|
290
|
-
smPadding,
|
|
291
|
-
smPaddingX,
|
|
292
|
-
smPaddingY,
|
|
293
|
-
lgPadding,
|
|
294
|
-
lgPaddingX,
|
|
295
|
-
lgPaddingY,
|
|
296
|
-
position,
|
|
297
|
-
rounding,
|
|
298
|
-
dangerouslySetInlineStyle: dangerouslySetInlineStyle,
|
|
299
|
-
height,
|
|
300
|
-
maxHeight,
|
|
301
|
-
maxWidth,
|
|
302
|
-
minHeight,
|
|
303
|
-
minWidth,
|
|
304
|
-
width
|
|
305
|
-
} = _b, maybePassThroughProps = __objRest(_b, [
|
|
306
|
-
// Classname
|
|
307
|
-
"alignItems",
|
|
308
|
-
"smAlignItems",
|
|
309
|
-
"lgAlignItems",
|
|
310
|
-
"alignSelf",
|
|
311
|
-
"backgroundColor",
|
|
312
|
-
"direction",
|
|
313
|
-
"smDirection",
|
|
314
|
-
"lgDirection",
|
|
315
|
-
"display",
|
|
316
|
-
"smDisplay",
|
|
317
|
-
"lgDisplay",
|
|
318
|
-
"flex",
|
|
319
|
-
"flexWrap",
|
|
320
|
-
"gap",
|
|
321
|
-
"justifyContent",
|
|
322
|
-
"smJustifyContent",
|
|
323
|
-
"lgJustifyContent",
|
|
324
|
-
// Margin
|
|
325
|
-
"margin",
|
|
326
|
-
"marginBottom",
|
|
327
|
-
"marginEnd",
|
|
328
|
-
"marginStart",
|
|
329
|
-
"marginTop",
|
|
330
|
-
"smMargin",
|
|
331
|
-
"smMarginBottom",
|
|
332
|
-
"smMarginEnd",
|
|
333
|
-
"smMarginStart",
|
|
334
|
-
"smMarginTop",
|
|
335
|
-
"lgMargin",
|
|
336
|
-
"lgMarginBottom",
|
|
337
|
-
"lgMarginEnd",
|
|
338
|
-
"lgMarginStart",
|
|
339
|
-
"lgMarginTop",
|
|
340
|
-
// Overflow
|
|
341
|
-
"overflow",
|
|
342
|
-
"overflowX",
|
|
343
|
-
"overflowY",
|
|
344
|
-
// Padding
|
|
345
|
-
"padding",
|
|
346
|
-
"paddingX",
|
|
347
|
-
"paddingY",
|
|
348
|
-
"smPadding",
|
|
349
|
-
"smPaddingX",
|
|
350
|
-
"smPaddingY",
|
|
351
|
-
"lgPadding",
|
|
352
|
-
"lgPaddingX",
|
|
353
|
-
"lgPaddingY",
|
|
354
|
-
"position",
|
|
355
|
-
"rounding",
|
|
356
|
-
// Style
|
|
357
|
-
"dangerouslySetInlineStyle",
|
|
358
|
-
"height",
|
|
359
|
-
"maxHeight",
|
|
360
|
-
"maxWidth",
|
|
361
|
-
"minHeight",
|
|
362
|
-
"minWidth",
|
|
363
|
-
"width"
|
|
364
|
-
]);
|
|
365
|
-
const parsedProps = {
|
|
366
|
-
className: (0, import_classnames3.default)(
|
|
367
|
-
Box_module_default.box,
|
|
368
|
-
alignItems && Box_module_default[`alignItems${alignItems}`],
|
|
369
|
-
smAlignItems && Box_module_default[`alignItems${smAlignItems}Small`],
|
|
370
|
-
lgAlignItems && Box_module_default[`alignItems${lgAlignItems}Large`],
|
|
371
|
-
alignSelf && Box_module_default[`alignSelf${alignSelf}`],
|
|
372
|
-
backgroundColor2 && colors_module_default[`${backgroundColor2}BackgroundColor`],
|
|
373
|
-
direction && Box_module_default[direction],
|
|
374
|
-
smDirection && Box_module_default[`${smDirection}Small`],
|
|
375
|
-
lgDirection && Box_module_default[`${lgDirection}Large`],
|
|
376
|
-
display && Box_module_default[display],
|
|
377
|
-
smDisplay && Box_module_default[`${smDisplay}Small`],
|
|
378
|
-
lgDisplay && Box_module_default[`${lgDisplay}Large`],
|
|
379
|
-
flex && (flex === "none" || flex === "grow") && Box_module_default[`flex${flex}`],
|
|
380
|
-
flexWrap && Box_module_default.flexWrap,
|
|
381
|
-
gap2 != null && Box_module_default[`gap${gap2}`],
|
|
382
|
-
margin != null && !marginBottom && margin_module_default[`marginBottom${margin}`],
|
|
383
|
-
margin != null && !marginEnd && margin_module_default[`marginEnd${margin}`],
|
|
384
|
-
margin != null && !marginStart && margin_module_default[`marginStart${margin}`],
|
|
385
|
-
margin != null && !marginTop && margin_module_default[`marginTop${margin}`],
|
|
386
|
-
marginBottom != null && margin_module_default[`marginBottom${marginBottom}`],
|
|
387
|
-
marginEnd != null && margin_module_default[`marginEnd${marginEnd}`],
|
|
388
|
-
marginStart != null && margin_module_default[`marginStart${marginStart}`],
|
|
389
|
-
marginTop != null && margin_module_default[`marginTop${marginTop}`],
|
|
390
|
-
smMargin != null && !smMarginBottom && margin_module_default[`marginBottom${smMargin}Small`],
|
|
391
|
-
smMargin != null && !smMarginEnd && margin_module_default[`marginEnd${smMargin}Small`],
|
|
392
|
-
smMargin != null && !smMarginStart && margin_module_default[`marginStart${smMargin}Small`],
|
|
393
|
-
smMargin != null && !smMarginTop && margin_module_default[`marginTop${smMargin}Small`],
|
|
394
|
-
smMarginBottom != null && margin_module_default[`marginBottom${smMarginBottom}Small`],
|
|
395
|
-
smMarginEnd != null && margin_module_default[`marginEnd${smMarginEnd}Small`],
|
|
396
|
-
smMarginStart != null && margin_module_default[`marginStart${smMarginStart}Small`],
|
|
397
|
-
smMarginTop != null && margin_module_default[`marginTop${smMarginTop}Small`],
|
|
398
|
-
lgMargin != null && !lgMarginBottom && margin_module_default[`marginBottom${lgMargin}Large`],
|
|
399
|
-
lgMargin != null && !lgMarginEnd && margin_module_default[`marginEnd${lgMargin}Large`],
|
|
400
|
-
lgMargin != null && !lgMarginStart && margin_module_default[`marginStart${lgMargin}Large`],
|
|
401
|
-
lgMargin != null && !lgMarginTop && margin_module_default[`marginTop${lgMargin}Large`],
|
|
402
|
-
lgMarginBottom != null && margin_module_default[`marginBottom${lgMarginBottom}Large`],
|
|
403
|
-
lgMarginEnd != null && margin_module_default[`marginEnd${lgMarginEnd}Large`],
|
|
404
|
-
lgMarginStart != null && margin_module_default[`marginStart${lgMarginStart}Large`],
|
|
405
|
-
lgMarginTop != null && margin_module_default[`marginTop${lgMarginTop}Large`],
|
|
406
|
-
padding != null && !paddingX && padding_module_default[`paddingX${padding}`],
|
|
407
|
-
padding != null && !paddingY && padding_module_default[`paddingY${padding}`],
|
|
408
|
-
paddingX != null && padding_module_default[`paddingX${paddingX}`],
|
|
409
|
-
paddingY != null && padding_module_default[`paddingY${paddingY}`],
|
|
410
|
-
smPadding != null && !smPaddingX && padding_module_default[`paddingX${smPadding}Small`],
|
|
411
|
-
smPadding != null && !smPaddingY && padding_module_default[`paddingY${smPadding}Small`],
|
|
412
|
-
smPaddingX != null && padding_module_default[`paddingX${smPaddingX}Small`],
|
|
413
|
-
smPaddingY != null && padding_module_default[`paddingY${smPaddingY}Small`],
|
|
414
|
-
lgPadding != null && !lgPaddingX && padding_module_default[`paddingX${lgPadding}Large`],
|
|
415
|
-
lgPadding != null && !lgPaddingX && padding_module_default[`paddingY${lgPadding}Large`],
|
|
416
|
-
lgPaddingX != null && padding_module_default[`paddingX${lgPaddingX}Large`],
|
|
417
|
-
lgPaddingY != null && padding_module_default[`paddingY${lgPaddingY}Large`],
|
|
418
|
-
justifyContent && Box_module_default[`justifyContent${justifyContent}`],
|
|
419
|
-
smJustifyContent && Box_module_default[`justifyContent${smJustifyContent}Small`],
|
|
420
|
-
lgJustifyContent && Box_module_default[`justifyContent${lgJustifyContent}Large`],
|
|
421
|
-
position && position !== "static" && Box_module_default[position],
|
|
422
|
-
rounding && rounding !== "none" && rounding_module_default[`rounding${rounding}`],
|
|
423
|
-
overflow && Box_module_default[`overflow${overflow}`],
|
|
424
|
-
overflowX && Box_module_default[`overflowX${overflowX}`],
|
|
425
|
-
overflowY && Box_module_default[`overflowY${overflowY}`]
|
|
426
|
-
),
|
|
427
|
-
style: __spreadValues({
|
|
428
|
-
height,
|
|
429
|
-
maxHeight,
|
|
430
|
-
maxWidth,
|
|
431
|
-
minHeight,
|
|
432
|
-
minWidth,
|
|
433
|
-
width
|
|
434
|
-
}, (_c = dangerouslySetInlineStyle == null ? void 0 : dangerouslySetInlineStyle.__style) != null ? _c : {})
|
|
435
|
-
};
|
|
436
|
-
const passthroughProps = Object.entries(maybePassThroughProps).reduce((acc, [key]) => {
|
|
437
|
-
if (key === "id" || key === "role" || key.startsWith("aria-") || key.startsWith("data-testid")) {
|
|
438
|
-
acc[key] = maybePassThroughProps[key];
|
|
439
|
-
}
|
|
440
|
-
return acc;
|
|
441
|
-
}, {});
|
|
442
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(BoxElement, __spreadProps(__spreadValues(__spreadValues({}, parsedProps), passthroughProps), { ref, children }));
|
|
443
|
-
});
|
|
444
|
-
var Box_default = Box;
|
|
27
|
+
var _6VWFOSQZjs = require('./__chunks/6VWFOSQZ.js');
|
|
445
28
|
|
|
446
|
-
// css-module:./Badge.module.css#css-module
|
|
447
|
-
var Badge_module_default = { "icon": "_icon_1g9xb_1" };
|
|
448
29
|
|
|
449
|
-
|
|
450
|
-
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
451
|
-
var textColorForBackgroundColor = (color) => {
|
|
452
|
-
switch (color) {
|
|
453
|
-
case "gray200":
|
|
454
|
-
case "yellow700":
|
|
455
|
-
return "gray900";
|
|
456
|
-
default:
|
|
457
|
-
return "white";
|
|
458
|
-
}
|
|
459
|
-
};
|
|
460
|
-
var Badge = ({
|
|
461
|
-
icon: Icon,
|
|
462
|
-
text,
|
|
463
|
-
color = "primary700"
|
|
464
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
465
|
-
Box_default,
|
|
466
|
-
{
|
|
467
|
-
display: "inlineBlock",
|
|
468
|
-
paddingX: 2,
|
|
469
|
-
paddingY: 1,
|
|
470
|
-
rounding: "full",
|
|
471
|
-
backgroundColor: color,
|
|
472
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Typography_default, { color: textColorForBackgroundColor(color), size: 100, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(Box_default, { display: "flex", gap: 1, alignItems: "center", justifyContent: "start", children: [
|
|
473
|
-
Icon && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { className: Badge_module_default.icon }),
|
|
474
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
475
|
-
Typography_default,
|
|
476
|
-
{
|
|
477
|
-
color: textColorForBackgroundColor(color),
|
|
478
|
-
size: 100,
|
|
479
|
-
weight: "bold",
|
|
480
|
-
children: text
|
|
481
|
-
}
|
|
482
|
-
)
|
|
483
|
-
] }) })
|
|
484
|
-
}
|
|
485
|
-
);
|
|
486
|
-
var Badge_default = Badge;
|
|
30
|
+
var _UNIBFDXVjs = require('./__chunks/UNIBFDXV.js');
|
|
487
31
|
|
|
488
|
-
// src/Button/Button.tsx
|
|
489
|
-
var import_react3 = require("react");
|
|
490
|
-
var import_classnames4 = __toESM(require_classnames());
|
|
491
32
|
|
|
492
|
-
|
|
493
|
-
var colors_module_default2 = { "inheritColor": "_inheritColor_11l4y_2", "destructive700Color": "_destructive700Color_11l4y_6", "gray700Color": "_gray700Color_11l4y_10", "gray900Color": "_gray900Color_11l4y_14", "primary700Color": "_primary700Color_11l4y_18", "success700Color": "_success700Color_11l4y_22", "whiteColor": "_whiteColor_11l4y_26", "blackBackgroundColor": "_blackBackgroundColor_11l4y_31", "destructive100BackgroundColor": "_destructive100BackgroundColor_11l4y_35", "destructive200BackgroundColor": "_destructive200BackgroundColor_11l4y_39", "destructive300BackgroundColor": "_destructive300BackgroundColor_11l4y_43", "destructive700BackgroundColor": "_destructive700BackgroundColor_11l4y_47", "destructive800BackgroundColor": "_destructive800BackgroundColor_11l4y_51", "destructive900BackgroundColor": "_destructive900BackgroundColor_11l4y_55", "gray10BackgroundColor": "_gray10BackgroundColor_11l4y_59", "gray30BackgroundColor": "_gray30BackgroundColor_11l4y_63", "gray60BackgroundColor": "_gray60BackgroundColor_11l4y_67", "gray80BackgroundColor": "_gray80BackgroundColor_11l4y_71", "gray100BackgroundColor": "_gray100BackgroundColor_11l4y_75", "gray200BackgroundColor": "_gray200BackgroundColor_11l4y_79", "gray300BackgroundColor": "_gray300BackgroundColor_11l4y_83", "gray700BackgroundColor": "_gray700BackgroundColor_11l4y_87", "gray800BackgroundColor": "_gray800BackgroundColor_11l4y_91", "gray900BackgroundColor": "_gray900BackgroundColor_11l4y_95", "orange100BackgroundColor": "_orange100BackgroundColor_11l4y_99", "orange200BackgroundColor": "_orange200BackgroundColor_11l4y_103", "orange300BackgroundColor": "_orange300BackgroundColor_11l4y_107", "orange700BackgroundColor": "_orange700BackgroundColor_11l4y_111", "orange800BackgroundColor": "_orange800BackgroundColor_11l4y_115", "orange900BackgroundColor": "_orange900BackgroundColor_11l4y_119", "primary100BackgroundColor": "_primary100BackgroundColor_11l4y_123", "primary200BackgroundColor": "_primary200BackgroundColor_11l4y_127", "primary300BackgroundColor": "_primary300BackgroundColor_11l4y_131", "primary700BackgroundColor": "_primary700BackgroundColor_11l4y_135", "primary800BackgroundColor": "_primary800BackgroundColor_11l4y_139", "primary900BackgroundColor": "_primary900BackgroundColor_11l4y_143", "success100BackgroundColor": "_success100BackgroundColor_11l4y_147", "success200BackgroundColor": "_success200BackgroundColor_11l4y_151", "success300BackgroundColor": "_success300BackgroundColor_11l4y_155", "success700BackgroundColor": "_success700BackgroundColor_11l4y_159", "success800BackgroundColor": "_success800BackgroundColor_11l4y_163", "success900BackgroundColor": "_success900BackgroundColor_11l4y_167", "purple100BackgroundColor": "_purple100BackgroundColor_11l4y_171", "purple200BackgroundColor": "_purple200BackgroundColor_11l4y_175", "purple300BackgroundColor": "_purple300BackgroundColor_11l4y_179", "purple700BackgroundColor": "_purple700BackgroundColor_11l4y_183", "purple800BackgroundColor": "_purple800BackgroundColor_11l4y_187", "purple900BackgroundColor": "_purple900BackgroundColor_11l4y_191", "whiteBackgroundColor": "_whiteBackgroundColor_11l4y_195", "yellow100BackgroundColor": "_yellow100BackgroundColor_11l4y_199", "yellow200BackgroundColor": "_yellow200BackgroundColor_11l4y_203", "yellow300BackgroundColor": "_yellow300BackgroundColor_11l4y_207", "yellow700BackgroundColor": "_yellow700BackgroundColor_11l4y_211", "yellow800BackgroundColor": "_yellow800BackgroundColor_11l4y_215", "yellow900BackgroundColor": "_yellow900BackgroundColor_11l4y_219" };
|
|
33
|
+
var _BSWWGQASjs = require('./__chunks/BSWWGQAS.js');
|
|
494
34
|
|
|
495
|
-
// src/colors/backgroundColor.ts
|
|
496
|
-
function backgroundColor(color) {
|
|
497
|
-
switch (color) {
|
|
498
|
-
case "secondary":
|
|
499
|
-
return colors_module_default2.primary100BackgroundColor;
|
|
500
|
-
case "destructive-primary":
|
|
501
|
-
return colors_module_default2.destructive700BackgroundColor;
|
|
502
|
-
case "destructive-secondary":
|
|
503
|
-
return colors_module_default2.destructive100BackgroundColor;
|
|
504
|
-
case "success":
|
|
505
|
-
return colors_module_default2.success700BackgroundColor;
|
|
506
|
-
case "tertiary":
|
|
507
|
-
case "destructive-tertiary":
|
|
508
|
-
return colors_module_default2.whiteBackgroundColor;
|
|
509
|
-
case "branded":
|
|
510
|
-
return colors_module_default2.yellow700BackgroundColor;
|
|
511
|
-
case "inverse":
|
|
512
|
-
return colors_module_default2.gray60BackgroundColor;
|
|
513
|
-
default:
|
|
514
|
-
return colors_module_default2.primary700BackgroundColor;
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
35
|
|
|
518
|
-
|
|
519
|
-
function foregroundColor(color) {
|
|
520
|
-
switch (color) {
|
|
521
|
-
case "secondary":
|
|
522
|
-
case "tertiary":
|
|
523
|
-
return colors_module_default2.primary700Color;
|
|
524
|
-
case "destructive-secondary":
|
|
525
|
-
case "destructive-tertiary":
|
|
526
|
-
return colors_module_default2.destructive700Color;
|
|
527
|
-
case "branded":
|
|
528
|
-
return colors_module_default2.gray900Color;
|
|
529
|
-
case "inverse":
|
|
530
|
-
return colors_module_default2.whiteColor;
|
|
531
|
-
default:
|
|
532
|
-
return colors_module_default2.whiteColor;
|
|
533
|
-
}
|
|
534
|
-
}
|
|
36
|
+
var _2PHVTRWCjs = require('./__chunks/2PHVTRWC.js');
|
|
535
37
|
|
|
536
|
-
// src/colors/foregroundTypographyColor.ts
|
|
537
|
-
function foregroundTypographyColor(color) {
|
|
538
|
-
switch (color) {
|
|
539
|
-
case "secondary":
|
|
540
|
-
case "tertiary":
|
|
541
|
-
return "primary";
|
|
542
|
-
case "destructive-secondary":
|
|
543
|
-
case "destructive-tertiary":
|
|
544
|
-
return "destructive-primary";
|
|
545
|
-
case "branded":
|
|
546
|
-
return "gray900";
|
|
547
|
-
case "inverse":
|
|
548
|
-
return "white";
|
|
549
|
-
default:
|
|
550
|
-
return "white";
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
38
|
|
|
554
|
-
|
|
555
|
-
var Button_module_default = { "button": "_button_1iunh_1", "buttonGap": "_buttonGap_1iunh_9", "fullWidth": "_fullWidth_1iunh_50", "sm": "_sm_1iunh_54", "md": "_md_1iunh_61", "lg": "_lg_1iunh_68", "icon": "_icon_1iunh_75", "smIcon": "_smIcon_1iunh_79", "mdIcon": "_mdIcon_1iunh_86", "lgIcon": "_lgIcon_1iunh_93", "secondaryBorder": "_secondaryBorder_1iunh_100", "secondaryDestructiveBorder": "_secondaryDestructiveBorder_1iunh_104", "loading": "_loading_1iunh_118", "syntaxButtonLoadingRotate": "_syntaxButtonLoadingRotate_1iunh_1", "loadingCircle": "_loadingCircle_1iunh_122" };
|
|
39
|
+
var _37CQV3RSjs = require('./__chunks/37CQV3RS.js');
|
|
556
40
|
|
|
557
|
-
// src/Button/constants/iconSize.ts
|
|
558
|
-
var iconSize = {
|
|
559
|
-
["sm"]: Button_module_default.smIcon,
|
|
560
|
-
["md"]: Button_module_default.mdIcon,
|
|
561
|
-
["lg"]: Button_module_default.lgIcon
|
|
562
|
-
};
|
|
563
|
-
var iconSize_default = iconSize;
|
|
564
41
|
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
["sm"]: 100,
|
|
568
|
-
["md"]: 200,
|
|
569
|
-
["lg"]: 300
|
|
570
|
-
};
|
|
571
|
-
var textVariant_default = textVariant;
|
|
42
|
+
var _AGAHNSZMjs = require('./__chunks/AGAHNSZM.js');
|
|
43
|
+
require('./__chunks/HOUO3WV6.js');
|
|
572
44
|
|
|
573
|
-
// src/Button/constants/loadingIconSize.ts
|
|
574
|
-
var loadingIconSize = {
|
|
575
|
-
["sm"]: 16,
|
|
576
|
-
["md"]: 20,
|
|
577
|
-
["lg"]: 24
|
|
578
|
-
};
|
|
579
|
-
var loadingIconSize_default = loadingIconSize;
|
|
580
45
|
|
|
581
|
-
|
|
582
|
-
|
|
46
|
+
var _X74O4HUSjs = require('./__chunks/X74O4HUS.js');
|
|
47
|
+
require('./__chunks/2O6FDRTF.js');
|
|
583
48
|
|
|
584
|
-
// src/useIsHydrated.tsx
|
|
585
|
-
var import_react2 = require("react");
|
|
586
|
-
function useIsHydrated() {
|
|
587
|
-
const [isHydrated, setIsHydrated] = (0, import_react2.useState)(false);
|
|
588
|
-
(0, import_react2.useEffect)(() => {
|
|
589
|
-
setIsHydrated(true);
|
|
590
|
-
}, []);
|
|
591
|
-
return isHydrated;
|
|
592
|
-
}
|
|
593
49
|
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
({
|
|
598
|
-
"data-testid": dataTestId,
|
|
599
|
-
text,
|
|
600
|
-
loadingText,
|
|
601
|
-
color = "primary",
|
|
602
|
-
size = "md",
|
|
603
|
-
accessibilityLabel,
|
|
604
|
-
disabled = false,
|
|
605
|
-
loading = false,
|
|
606
|
-
fullWidth = false,
|
|
607
|
-
startIcon: StartIcon,
|
|
608
|
-
endIcon: EndIcon,
|
|
609
|
-
onClick,
|
|
610
|
-
tooltip,
|
|
611
|
-
type = "button"
|
|
612
|
-
}, ref) => {
|
|
613
|
-
const isHydrated = useIsHydrated();
|
|
614
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
615
|
-
"button",
|
|
616
|
-
{
|
|
617
|
-
"data-testid": dataTestId,
|
|
618
|
-
ref,
|
|
619
|
-
"aria-label": accessibilityLabel,
|
|
620
|
-
type,
|
|
621
|
-
title: tooltip,
|
|
622
|
-
disabled: !isHydrated || disabled || loading,
|
|
623
|
-
onClick,
|
|
624
|
-
className: (0, import_classnames4.default)(
|
|
625
|
-
Button_module_default2.button,
|
|
626
|
-
foregroundColor(color),
|
|
627
|
-
backgroundColor(color),
|
|
628
|
-
Button_module_default2[size],
|
|
629
|
-
{
|
|
630
|
-
[Button_module_default2.fullWidth]: fullWidth,
|
|
631
|
-
[Button_module_default2.buttonGap]: size === "lg" || size === "md",
|
|
632
|
-
[Button_module_default2.secondaryBorder]: color === "secondary",
|
|
633
|
-
[Button_module_default2.secondaryDestructiveBorder]: color === "destructive-secondary"
|
|
634
|
-
}
|
|
635
|
-
),
|
|
636
|
-
children: [
|
|
637
|
-
!loading && StartIcon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(StartIcon, { className: (0, import_classnames4.default)(Button_module_default2.icon, iconSize_default[size]) }),
|
|
638
|
-
(loading && loadingText || !loading && text) && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Box_default, { paddingX: 1, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
639
|
-
Typography_default,
|
|
640
|
-
{
|
|
641
|
-
size: textVariant_default[size],
|
|
642
|
-
color: foregroundTypographyColor(color),
|
|
643
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { style: { fontWeight: 500 }, children: loading ? loadingText : text })
|
|
644
|
-
}
|
|
645
|
-
) }),
|
|
646
|
-
!loading && EndIcon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(EndIcon, { className: (0, import_classnames4.default)(Button_module_default2.icon, iconSize_default[size]) }),
|
|
647
|
-
loading && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
648
|
-
"svg",
|
|
649
|
-
{
|
|
650
|
-
className: (0, import_classnames4.default)(Button_module_default2.loading, foregroundColor(color)),
|
|
651
|
-
viewBox: "22 22 44 44",
|
|
652
|
-
width: loadingIconSize_default[size],
|
|
653
|
-
height: loadingIconSize_default[size],
|
|
654
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
655
|
-
"circle",
|
|
656
|
-
{
|
|
657
|
-
className: Button_module_default2.loadingCircle,
|
|
658
|
-
cx: "44",
|
|
659
|
-
cy: "44",
|
|
660
|
-
r: "20.2",
|
|
661
|
-
fill: "none",
|
|
662
|
-
strokeWidth: "3.6"
|
|
663
|
-
}
|
|
664
|
-
)
|
|
665
|
-
}
|
|
666
|
-
)
|
|
667
|
-
]
|
|
668
|
-
}
|
|
669
|
-
);
|
|
670
|
-
}
|
|
671
|
-
);
|
|
672
|
-
Button.displayName = "Button";
|
|
673
|
-
var Button_default = Button;
|
|
50
|
+
var _TKYRBLSMjs = require('./__chunks/TKYRBLSM.js');
|
|
51
|
+
require('./__chunks/2JWMSFS7.js');
|
|
52
|
+
require('./__chunks/42YPEAFS.js');
|
|
674
53
|
|
|
675
|
-
// css-module:./ButtonGroup.module.css#css-module
|
|
676
|
-
var ButtonGroup_module_default = { "buttonGroup": "_buttonGroup_1f9x9_1", "horizontal": "_horizontal_1f9x9_5", "vertical": "_vertical_1f9x9_9", "smallGap": "_smallGap_1f9x9_13", "mediumGap": "_mediumGap_1f9x9_17", "largeGap": "_largeGap_1f9x9_21" };
|
|
677
54
|
|
|
678
|
-
|
|
679
|
-
var import_classnames5 = __toESM(require_classnames());
|
|
680
|
-
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
681
|
-
var gap = {
|
|
682
|
-
["sm"]: ButtonGroup_module_default.smallGap,
|
|
683
|
-
["md"]: ButtonGroup_module_default.mediumGap,
|
|
684
|
-
["lg"]: ButtonGroup_module_default.largeGap
|
|
685
|
-
};
|
|
686
|
-
var ButtonGroup = ({
|
|
687
|
-
orientation = "horizontal",
|
|
688
|
-
size = "md",
|
|
689
|
-
children
|
|
690
|
-
}) => {
|
|
691
|
-
const classnames4 = (0, import_classnames5.default)(ButtonGroup_module_default.buttonGroup, gap[size], {
|
|
692
|
-
[ButtonGroup_module_default.horizontal]: orientation === "horizontal",
|
|
693
|
-
[ButtonGroup_module_default.vertical]: orientation === "vertical"
|
|
694
|
-
});
|
|
695
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: classnames4, children });
|
|
696
|
-
};
|
|
697
|
-
var ButtonGroup_default = ButtonGroup;
|
|
55
|
+
var _BSFWQWVJjs = require('./__chunks/BSFWQWVJ.js');
|
|
698
56
|
|
|
699
|
-
// src/Card/Card.tsx
|
|
700
|
-
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
701
|
-
function Card({
|
|
702
|
-
children,
|
|
703
|
-
size,
|
|
704
|
-
"data-testid": dataTestId
|
|
705
|
-
}) {
|
|
706
|
-
const sizeWidth2 = {
|
|
707
|
-
sm: 352,
|
|
708
|
-
lg: 744
|
|
709
|
-
};
|
|
710
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
711
|
-
Box_default,
|
|
712
|
-
{
|
|
713
|
-
rounding: "lg",
|
|
714
|
-
padding: 5,
|
|
715
|
-
smPadding: 7,
|
|
716
|
-
lgPadding: 7,
|
|
717
|
-
maxWidth: size && sizeWidth2[size],
|
|
718
|
-
width: "100%",
|
|
719
|
-
backgroundColor: "white",
|
|
720
|
-
"data-testid": dataTestId,
|
|
721
|
-
children
|
|
722
|
-
}
|
|
723
|
-
);
|
|
724
|
-
}
|
|
725
57
|
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
var import_classnames6 = __toESM(require_classnames());
|
|
58
|
+
var _PYNS67IVjs = require('./__chunks/PYNS67IV.js');
|
|
59
|
+
require('./__chunks/TPMQI44L.js');
|
|
729
60
|
|
|
730
|
-
// src/useFocusVisible.tsx
|
|
731
|
-
var import_react4 = require("react");
|
|
732
|
-
var hasSetupGlobalListeners = false;
|
|
733
|
-
var currentModality = null;
|
|
734
|
-
var changeHandlers = /* @__PURE__ */ new Set();
|
|
735
|
-
var hasEventBeforeFocus = false;
|
|
736
|
-
var isMac = (
|
|
737
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
738
|
-
typeof window !== "undefined" && window.navigator != null ? (
|
|
739
|
-
// eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
|
|
740
|
-
/^Mac/.test(window.navigator.platform)
|
|
741
|
-
) : false
|
|
742
|
-
);
|
|
743
|
-
function isValidKey(e) {
|
|
744
|
-
return !(e.metaKey || !isMac && e.altKey || e.ctrlKey);
|
|
745
|
-
}
|
|
746
|
-
function triggerChangeHandlers(modality, e) {
|
|
747
|
-
changeHandlers.forEach((handler) => {
|
|
748
|
-
handler(modality, e);
|
|
749
|
-
});
|
|
750
|
-
}
|
|
751
|
-
function handleKeyboardEvent(e) {
|
|
752
|
-
hasEventBeforeFocus = true;
|
|
753
|
-
if (isValidKey(e)) {
|
|
754
|
-
currentModality = "keyboard";
|
|
755
|
-
triggerChangeHandlers("keyboard", e);
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
function handlePointerEvent(e) {
|
|
759
|
-
currentModality = "pointer";
|
|
760
|
-
if (e.type === "mousedown" || e.type === "pointerdown") {
|
|
761
|
-
hasEventBeforeFocus = true;
|
|
762
|
-
triggerChangeHandlers("pointer", e);
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
function handleFocusEvent(e) {
|
|
766
|
-
if (e.target === window || e.target === document) {
|
|
767
|
-
return;
|
|
768
|
-
}
|
|
769
|
-
if (!hasEventBeforeFocus) {
|
|
770
|
-
currentModality = "keyboard";
|
|
771
|
-
triggerChangeHandlers("keyboard", e);
|
|
772
|
-
}
|
|
773
|
-
hasEventBeforeFocus = false;
|
|
774
|
-
}
|
|
775
|
-
function handleWindowBlur() {
|
|
776
|
-
hasEventBeforeFocus = false;
|
|
777
|
-
}
|
|
778
|
-
function isFocusVisible() {
|
|
779
|
-
return currentModality !== "pointer";
|
|
780
|
-
}
|
|
781
|
-
function setupGlobalFocusEvents() {
|
|
782
|
-
if (typeof window === "undefined" || hasSetupGlobalListeners) {
|
|
783
|
-
return;
|
|
784
|
-
}
|
|
785
|
-
const { focus } = HTMLElement.prototype;
|
|
786
|
-
HTMLElement.prototype.focus = function focusElement2(...args) {
|
|
787
|
-
hasEventBeforeFocus = true;
|
|
788
|
-
focus.apply(this, args);
|
|
789
|
-
};
|
|
790
|
-
document.addEventListener("keydown", handleKeyboardEvent, true);
|
|
791
|
-
document.addEventListener("keyup", handleKeyboardEvent, true);
|
|
792
|
-
window.addEventListener("focus", handleFocusEvent, true);
|
|
793
|
-
window.addEventListener("blur", handleWindowBlur, false);
|
|
794
|
-
if (typeof PointerEvent !== "undefined") {
|
|
795
|
-
document.addEventListener("pointerdown", handlePointerEvent, true);
|
|
796
|
-
document.addEventListener("pointermove", handlePointerEvent, true);
|
|
797
|
-
document.addEventListener("pointerup", handlePointerEvent, true);
|
|
798
|
-
} else {
|
|
799
|
-
document.addEventListener("mousedown", handlePointerEvent, true);
|
|
800
|
-
document.addEventListener("mousemove", handlePointerEvent, true);
|
|
801
|
-
document.addEventListener("mouseup", handlePointerEvent, true);
|
|
802
|
-
}
|
|
803
|
-
hasSetupGlobalListeners = true;
|
|
804
|
-
}
|
|
805
|
-
function useFocusVisible() {
|
|
806
|
-
setupGlobalFocusEvents();
|
|
807
|
-
const [isFocusVisibleState, setFocusVisible] = (0, import_react4.useState)(isFocusVisible());
|
|
808
|
-
(0, import_react4.useEffect)(() => {
|
|
809
|
-
const handler = () => {
|
|
810
|
-
setFocusVisible(isFocusVisible());
|
|
811
|
-
};
|
|
812
|
-
changeHandlers.add(handler);
|
|
813
|
-
return () => {
|
|
814
|
-
changeHandlers.delete(handler);
|
|
815
|
-
};
|
|
816
|
-
}, []);
|
|
817
|
-
return { isFocusVisible: isFocusVisibleState };
|
|
818
|
-
}
|
|
819
61
|
|
|
820
|
-
|
|
821
|
-
|
|
62
|
+
var _F3ZST4RLjs = require('./__chunks/F3ZST4RL.js');
|
|
63
|
+
require('./__chunks/ERXGNP37.js');
|
|
64
|
+
require('./__chunks/AFINOME7.js');
|
|
65
|
+
require('./__chunks/YJ7YDIGB.js');
|
|
66
|
+
require('./__chunks/OGJDUOWP.js');
|
|
67
|
+
require('./__chunks/HQVZUEWO.js');
|
|
68
|
+
require('./__chunks/CATJI2RJ.js');
|
|
69
|
+
require('./__chunks/G4DDTGDI.js');
|
|
70
|
+
require('./__chunks/D24RSGYP.js');
|
|
71
|
+
require('./__chunks/5AR53MHD.js');
|
|
72
|
+
require('./__chunks/LULBCTQR.js');
|
|
822
73
|
|
|
823
|
-
// css-module:../Focus.module.css#css-module
|
|
824
|
-
var Focus_module_default = { "accessibilityOutlineFocus": "_accessibilityOutlineFocus_1h8bq_1" };
|
|
825
74
|
|
|
826
|
-
// src/Checkbox/Checkbox.tsx
|
|
827
|
-
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
828
|
-
var typographySize = {
|
|
829
|
-
sm: 100,
|
|
830
|
-
md: 200
|
|
831
|
-
};
|
|
832
|
-
var iconWidth = {
|
|
833
|
-
sm: 12,
|
|
834
|
-
md: 20
|
|
835
|
-
};
|
|
836
|
-
var Checkbox = ({
|
|
837
|
-
checked = false,
|
|
838
|
-
"data-testid": dataTestId,
|
|
839
|
-
disabled: disabledProp = false,
|
|
840
|
-
size = "md",
|
|
841
|
-
label,
|
|
842
|
-
error = false,
|
|
843
|
-
onChange
|
|
844
|
-
}) => {
|
|
845
|
-
const isHydrated = useIsHydrated();
|
|
846
|
-
const disabled = !isHydrated || disabledProp;
|
|
847
|
-
const [isFocused, setIsFocused] = (0, import_react5.useState)(false);
|
|
848
|
-
const { isFocusVisible: isFocusVisible2 } = useFocusVisible();
|
|
849
|
-
const checkboxStyling = (0, import_classnames6.default)(Checkbox_module_default.checkbox, Checkbox_module_default[size]);
|
|
850
|
-
const uncheckedStyling = (0, import_classnames6.default)(checkboxStyling, Checkbox_module_default.uncheckedBox, {
|
|
851
|
-
[Checkbox_module_default.uncheckedBorder]: !error,
|
|
852
|
-
[Checkbox_module_default.uncheckedErrorBorder]: error,
|
|
853
|
-
[Focus_module_default.accessibilityOutlineFocus]: isFocused && isFocusVisible2
|
|
854
|
-
});
|
|
855
|
-
const checkedStyling = (0, import_classnames6.default)(checkboxStyling, Checkbox_module_default.checkedBox, {
|
|
856
|
-
[Checkbox_module_default.checkedNonError]: !error,
|
|
857
|
-
[Checkbox_module_default.checkedError]: error,
|
|
858
|
-
[Focus_module_default.accessibilityOutlineFocus]: isFocused && isFocusVisible2
|
|
859
|
-
});
|
|
860
|
-
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
861
|
-
"label",
|
|
862
|
-
{
|
|
863
|
-
className: (0, import_classnames6.default)(
|
|
864
|
-
Checkbox_module_default.mainContainer,
|
|
865
|
-
Checkbox_module_default[`cursor${disabled ? "Disabled" : "Enabled"}`],
|
|
866
|
-
{
|
|
867
|
-
[Checkbox_module_default.disabled]: disabled
|
|
868
|
-
}
|
|
869
|
-
),
|
|
870
|
-
children: [
|
|
871
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: checked ? checkedStyling : uncheckedStyling, children: checked && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", width: iconWidth[size], children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
872
|
-
"path",
|
|
873
|
-
{
|
|
874
|
-
fill: "#fff",
|
|
875
|
-
d: "m9 16.2-3.5-3.5a.9839.9839 0 0 0-1.4 0c-.39.39-.39 1.01 0 1.4l4.19 4.19c.39.39 1.02.39 1.41 0L20.3 7.7c.39-.39.39-1.01 0-1.4a.9839.9839 0 0 0-1.4 0L9 16.2z"
|
|
876
|
-
}
|
|
877
|
-
) }) }),
|
|
878
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
879
|
-
"input",
|
|
880
|
-
{
|
|
881
|
-
"data-testid": dataTestId,
|
|
882
|
-
type: "checkbox",
|
|
883
|
-
className: (0, import_classnames6.default)(
|
|
884
|
-
Checkbox_module_default.inputOverlay,
|
|
885
|
-
Checkbox_module_default[size],
|
|
886
|
-
Checkbox_module_default[`cursor${disabled ? "Disabled" : "Enabled"}`]
|
|
887
|
-
),
|
|
888
|
-
checked,
|
|
889
|
-
onChange,
|
|
890
|
-
disabled,
|
|
891
|
-
onFocus: () => {
|
|
892
|
-
setIsFocused(true);
|
|
893
|
-
},
|
|
894
|
-
onBlur: () => {
|
|
895
|
-
setIsFocused(false);
|
|
896
|
-
}
|
|
897
|
-
}
|
|
898
|
-
),
|
|
899
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
900
|
-
Typography_default,
|
|
901
|
-
{
|
|
902
|
-
size: typographySize[size],
|
|
903
|
-
color: error ? "destructive-primary" : "gray800",
|
|
904
|
-
children: label
|
|
905
|
-
}
|
|
906
|
-
)
|
|
907
|
-
]
|
|
908
|
-
}
|
|
909
|
-
);
|
|
910
|
-
};
|
|
911
|
-
var Checkbox_default = Checkbox;
|
|
912
75
|
|
|
913
|
-
// src/Chip/Chip.tsx
|
|
914
|
-
var import_react6 = require("react");
|
|
915
|
-
var import_classnames7 = __toESM(require_classnames());
|
|
916
76
|
|
|
917
|
-
// css-module:./Chip.module.css#css-module
|
|
918
|
-
var Chip_module_default = { "chip": "_chip_nvvgx_1", "disabled": "_disabled_nvvgx_12", "selectedChip": "_selectedChip_nvvgx_17", "icon": "_icon_nvvgx_22", "selectedIcon": "_selectedIcon_nvvgx_30", "sm": "_sm_nvvgx_34", "lg": "_lg_nvvgx_40" };
|
|
919
77
|
|
|
920
|
-
// src/Chip/Chip.tsx
|
|
921
|
-
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
922
|
-
var Chip = (0, import_react6.forwardRef)(
|
|
923
|
-
({
|
|
924
|
-
selected = false,
|
|
925
|
-
"data-testid": dataTestId,
|
|
926
|
-
size = "sm",
|
|
927
|
-
text,
|
|
928
|
-
onChange,
|
|
929
|
-
icon: Icon
|
|
930
|
-
}, ref) => {
|
|
931
|
-
const isHydrated = useIsHydrated();
|
|
932
|
-
const disabled = !isHydrated;
|
|
933
|
-
const chipStyles = (0, import_classnames7.default)(Chip_module_default.chip, Chip_module_default[size], {
|
|
934
|
-
[Chip_module_default.selectedChip]: selected,
|
|
935
|
-
[Chip_module_default.disabled]: disabled
|
|
936
|
-
});
|
|
937
|
-
const iconStyles = (0, import_classnames7.default)(Chip_module_default.icon, {
|
|
938
|
-
[Chip_module_default.selectedIcon]: selected
|
|
939
|
-
});
|
|
940
|
-
const typographySize2 = {
|
|
941
|
-
["sm"]: 200,
|
|
942
|
-
["lg"]: 300
|
|
943
|
-
};
|
|
944
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
945
|
-
"button",
|
|
946
|
-
{
|
|
947
|
-
className: chipStyles,
|
|
948
|
-
disabled,
|
|
949
|
-
"data-testid": dataTestId,
|
|
950
|
-
ref,
|
|
951
|
-
type: "button",
|
|
952
|
-
"aria-pressed": selected,
|
|
953
|
-
onClick: onChange,
|
|
954
|
-
children: [
|
|
955
|
-
Icon && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { className: iconStyles }),
|
|
956
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Box_default, { paddingX: Icon ? 1 : 0, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
957
|
-
Typography_default,
|
|
958
|
-
{
|
|
959
|
-
size: typographySize2[size],
|
|
960
|
-
color: selected ? "white" : "gray900",
|
|
961
|
-
children: text
|
|
962
|
-
}
|
|
963
|
-
) })
|
|
964
|
-
]
|
|
965
|
-
}
|
|
966
|
-
);
|
|
967
|
-
}
|
|
968
|
-
);
|
|
969
|
-
Chip.displayName = "Chip";
|
|
970
|
-
var Chip_default = Chip;
|
|
971
78
|
|
|
972
|
-
// css-module:./Divider.module.css#css-module
|
|
973
|
-
var Divider_module_default = { "divider": "_divider_ra8vz_1" };
|
|
974
79
|
|
|
975
|
-
// src/Divider/Divider.tsx
|
|
976
|
-
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
977
|
-
function Divider() {
|
|
978
|
-
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("hr", { className: Divider_module_default.divider });
|
|
979
|
-
}
|
|
980
|
-
Divider.displayName = "Divider";
|
|
981
80
|
|
|
982
|
-
// src/Heading/Heading.tsx
|
|
983
|
-
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
984
|
-
var Heading = ({
|
|
985
|
-
align = "start",
|
|
986
|
-
as = "h1",
|
|
987
|
-
children,
|
|
988
|
-
color = "gray900",
|
|
989
|
-
"data-testid": dataTestId,
|
|
990
|
-
lineClamp,
|
|
991
|
-
size = 500
|
|
992
|
-
}) => {
|
|
993
|
-
const weight = [700, 800].includes(size) ? "heavy" : "bold";
|
|
994
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
995
|
-
Typography_default,
|
|
996
|
-
{
|
|
997
|
-
align,
|
|
998
|
-
as,
|
|
999
|
-
color,
|
|
1000
|
-
"data-testid": dataTestId,
|
|
1001
|
-
lineClamp,
|
|
1002
|
-
size,
|
|
1003
|
-
weight,
|
|
1004
|
-
children
|
|
1005
|
-
}
|
|
1006
|
-
);
|
|
1007
|
-
};
|
|
1008
|
-
var Heading_default = Heading;
|
|
1009
81
|
|
|
1010
|
-
// src/IconButton/IconButton.tsx
|
|
1011
|
-
var import_classnames8 = __toESM(require_classnames());
|
|
1012
|
-
var import_react7 = require("react");
|
|
1013
82
|
|
|
1014
|
-
// css-module:./IconButton.module.css#css-module
|
|
1015
|
-
var IconButton_module_default = { "iconButton": "_iconButton_4e8qe_1", "sm": "_sm_4e8qe_46", "md": "_md_4e8qe_51", "lg": "_lg_4e8qe_56", "smIcon": "_smIcon_4e8qe_61", "mdIcon": "_mdIcon_4e8qe_68", "lgIcon": "_lgIcon_4e8qe_75", "secondaryBorder": "_secondaryBorder_4e8qe_82", "secondaryDestructiveBorder": "_secondaryDestructiveBorder_4e8qe_86" };
|
|
1016
83
|
|
|
1017
|
-
// src/IconButton/IconButton.tsx
|
|
1018
|
-
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1019
|
-
var iconSize2 = {
|
|
1020
|
-
["sm"]: IconButton_module_default.smIcon,
|
|
1021
|
-
["md"]: IconButton_module_default.mdIcon,
|
|
1022
|
-
["lg"]: IconButton_module_default.lgIcon
|
|
1023
|
-
};
|
|
1024
|
-
var IconButton = (0, import_react7.forwardRef)(
|
|
1025
|
-
({
|
|
1026
|
-
accessibilityLabel,
|
|
1027
|
-
color = "primary",
|
|
1028
|
-
"data-testid": dataTestId,
|
|
1029
|
-
disabled = false,
|
|
1030
|
-
icon: Icon,
|
|
1031
|
-
size = "md",
|
|
1032
|
-
tooltip,
|
|
1033
|
-
onClick
|
|
1034
|
-
}, ref) => {
|
|
1035
|
-
const isHydrated = useIsHydrated();
|
|
1036
|
-
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1037
|
-
"button",
|
|
1038
|
-
{
|
|
1039
|
-
"aria-label": accessibilityLabel,
|
|
1040
|
-
"data-testid": dataTestId,
|
|
1041
|
-
type: "button",
|
|
1042
|
-
title: tooltip,
|
|
1043
|
-
disabled: !isHydrated || disabled,
|
|
1044
|
-
onClick,
|
|
1045
|
-
className: (0, import_classnames8.default)(
|
|
1046
|
-
IconButton_module_default.iconButton,
|
|
1047
|
-
foregroundColor(color),
|
|
1048
|
-
backgroundColor(color),
|
|
1049
|
-
IconButton_module_default[size],
|
|
1050
|
-
{
|
|
1051
|
-
[IconButton_module_default.secondaryBorder]: color === "secondary",
|
|
1052
|
-
[IconButton_module_default.secondaryDestructiveBorder]: color === "destructive-secondary"
|
|
1053
|
-
}
|
|
1054
|
-
),
|
|
1055
|
-
ref,
|
|
1056
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, { className: iconSize2[size] })
|
|
1057
|
-
}
|
|
1058
|
-
);
|
|
1059
|
-
}
|
|
1060
|
-
);
|
|
1061
|
-
IconButton.displayName = "IconButton";
|
|
1062
|
-
var IconButton_default = IconButton;
|
|
1063
84
|
|
|
1064
|
-
// src/LinkButton/LinkButton.tsx
|
|
1065
|
-
var import_react8 = require("react");
|
|
1066
|
-
var import_classnames9 = __toESM(require_classnames());
|
|
1067
85
|
|
|
1068
|
-
// css-module:../Button/Button.module.css#css-module
|
|
1069
|
-
var Button_module_default3 = { "button": "_button_1iunh_1", "buttonGap": "_buttonGap_1iunh_9", "fullWidth": "_fullWidth_1iunh_50", "sm": "_sm_1iunh_54", "md": "_md_1iunh_61", "lg": "_lg_1iunh_68", "icon": "_icon_1iunh_75", "smIcon": "_smIcon_1iunh_79", "mdIcon": "_mdIcon_1iunh_86", "lgIcon": "_lgIcon_1iunh_93", "secondaryBorder": "_secondaryBorder_1iunh_100", "secondaryDestructiveBorder": "_secondaryDestructiveBorder_1iunh_104", "loading": "_loading_1iunh_118", "syntaxButtonLoadingRotate": "_syntaxButtonLoadingRotate_1iunh_1", "loadingCircle": "_loadingCircle_1iunh_122" };
|
|
1070
86
|
|
|
1071
|
-
// css-module:./LinkButton.module.css#css-module
|
|
1072
|
-
var LinkButton_module_default = { "linkButton": "_linkButton_1qjrb_1", "fitContent": "_fitContent_1qjrb_11" };
|
|
1073
87
|
|
|
1074
|
-
// src/LinkButton/LinkButton.tsx
|
|
1075
|
-
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1076
|
-
var LinkButton = (0, import_react8.forwardRef)(
|
|
1077
|
-
({
|
|
1078
|
-
text,
|
|
1079
|
-
href,
|
|
1080
|
-
target,
|
|
1081
|
-
rel,
|
|
1082
|
-
"data-testid": dataTestId,
|
|
1083
|
-
color = "primary",
|
|
1084
|
-
size = "md",
|
|
1085
|
-
fullWidth = false,
|
|
1086
|
-
startIcon: StartIcon,
|
|
1087
|
-
endIcon: EndIcon,
|
|
1088
|
-
onClick
|
|
1089
|
-
}, ref) => {
|
|
1090
|
-
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
1091
|
-
"a",
|
|
1092
|
-
{
|
|
1093
|
-
href,
|
|
1094
|
-
"data-testid": dataTestId,
|
|
1095
|
-
target,
|
|
1096
|
-
ref,
|
|
1097
|
-
rel,
|
|
1098
|
-
className: (0, import_classnames9.default)(
|
|
1099
|
-
LinkButton_module_default.linkButton,
|
|
1100
|
-
Button_module_default3.button,
|
|
1101
|
-
foregroundColor(color),
|
|
1102
|
-
backgroundColor(color),
|
|
1103
|
-
Button_module_default3[size],
|
|
1104
|
-
{
|
|
1105
|
-
[Button_module_default3.fullWidth]: fullWidth,
|
|
1106
|
-
[LinkButton_module_default.fitContent]: !fullWidth,
|
|
1107
|
-
[Button_module_default3.buttonGap]: size === "lg" || size === "md",
|
|
1108
|
-
[Button_module_default3.secondaryBorder]: color === "secondary",
|
|
1109
|
-
[Button_module_default3.secondaryDestructiveBorder]: color === "destructive-secondary"
|
|
1110
|
-
}
|
|
1111
|
-
),
|
|
1112
|
-
onClick,
|
|
1113
|
-
children: [
|
|
1114
|
-
StartIcon && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1115
|
-
StartIcon,
|
|
1116
|
-
{
|
|
1117
|
-
className: (0, import_classnames9.default)(Button_module_default3.icon, iconSize_default[size])
|
|
1118
|
-
}
|
|
1119
|
-
),
|
|
1120
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1121
|
-
Typography_default,
|
|
1122
|
-
{
|
|
1123
|
-
color: foregroundTypographyColor(color),
|
|
1124
|
-
size: textVariant_default[size],
|
|
1125
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { style: { fontWeight: 500 }, children: text })
|
|
1126
|
-
}
|
|
1127
|
-
),
|
|
1128
|
-
EndIcon && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(EndIcon, { className: (0, import_classnames9.default)(Button_module_default3.icon, iconSize_default[size]) })
|
|
1129
|
-
]
|
|
1130
|
-
}
|
|
1131
|
-
);
|
|
1132
|
-
}
|
|
1133
|
-
);
|
|
1134
|
-
LinkButton.displayName = "LinkButton";
|
|
1135
|
-
var LinkButton_default = LinkButton;
|
|
1136
88
|
|
|
1137
|
-
// src/Modal/Modal.tsx
|
|
1138
|
-
var import_classnames10 = __toESM(require_classnames());
|
|
1139
89
|
|
|
1140
|
-
// src/Modal/FocusTrap.tsx
|
|
1141
|
-
var import_react9 = require("react");
|
|
1142
|
-
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1143
|
-
function queryFocusableAll(el) {
|
|
1144
|
-
const selector = [
|
|
1145
|
-
"a[href]",
|
|
1146
|
-
"area[href]",
|
|
1147
|
-
"input:not([disabled])",
|
|
1148
|
-
"select:not([disabled])",
|
|
1149
|
-
"textarea:not([disabled])",
|
|
1150
|
-
"button:not([disabled])",
|
|
1151
|
-
"iframe",
|
|
1152
|
-
"object",
|
|
1153
|
-
"embed",
|
|
1154
|
-
'[tabindex="-1"]',
|
|
1155
|
-
'[tabindex="0"]',
|
|
1156
|
-
"[contenteditable]",
|
|
1157
|
-
"audio[controls]",
|
|
1158
|
-
"video[controls]",
|
|
1159
|
-
"summary"
|
|
1160
|
-
].join(",");
|
|
1161
|
-
return el.querySelectorAll(selector);
|
|
1162
|
-
}
|
|
1163
|
-
var focusElement = (el) => {
|
|
1164
|
-
if (typeof el.focus === "function") {
|
|
1165
|
-
el.focus();
|
|
1166
|
-
}
|
|
1167
|
-
};
|
|
1168
|
-
function FocusTrap({
|
|
1169
|
-
children
|
|
1170
|
-
}) {
|
|
1171
|
-
const elRef = (0, import_react9.useRef)(null);
|
|
1172
|
-
const previouslyFocusedElRef = (0, import_react9.useRef)(null);
|
|
1173
|
-
(0, import_react9.useEffect)(() => {
|
|
1174
|
-
const { current: element } = elRef;
|
|
1175
|
-
const focusFirstChild = () => {
|
|
1176
|
-
const withinIframe = window !== window.parent;
|
|
1177
|
-
if (element && !withinIframe) {
|
|
1178
|
-
focusElement(queryFocusableAll(element)[0]);
|
|
1179
|
-
}
|
|
1180
|
-
};
|
|
1181
|
-
const handleFocus = (event) => {
|
|
1182
|
-
if (!element || event.target instanceof Node && element.contains(event.target)) {
|
|
1183
|
-
return;
|
|
1184
|
-
}
|
|
1185
|
-
if (event.target instanceof Element && event.target.closest('[data-testid="syntax-focus-trap"]') !== null) {
|
|
1186
|
-
return;
|
|
1187
|
-
}
|
|
1188
|
-
event.stopPropagation();
|
|
1189
|
-
event.preventDefault();
|
|
1190
|
-
focusFirstChild();
|
|
1191
|
-
};
|
|
1192
|
-
previouslyFocusedElRef.current = document.activeElement;
|
|
1193
|
-
focusFirstChild();
|
|
1194
|
-
document.addEventListener("focus", handleFocus, true);
|
|
1195
|
-
return function cleanup() {
|
|
1196
|
-
const { current: previouslyFocusedEl } = previouslyFocusedElRef;
|
|
1197
|
-
document.removeEventListener("focus", handleFocus, true);
|
|
1198
|
-
if (previouslyFocusedEl) {
|
|
1199
|
-
focusElement(previouslyFocusedEl);
|
|
1200
|
-
}
|
|
1201
|
-
};
|
|
1202
|
-
}, [elRef, previouslyFocusedElRef]);
|
|
1203
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { "data-testid": "syntax-focus-trap", ref: elRef, children });
|
|
1204
|
-
}
|
|
1205
90
|
|
|
1206
|
-
// src/Modal/StopScroll.tsx
|
|
1207
|
-
var import_react10 = require("react");
|
|
1208
|
-
function StopScroll(props) {
|
|
1209
|
-
(0, import_react10.useEffect)(() => {
|
|
1210
|
-
const originalStyle = window.getComputedStyle(document.body).overflow;
|
|
1211
|
-
document.body.style.overflow = "hidden";
|
|
1212
|
-
return () => {
|
|
1213
|
-
document.body.style.overflow = originalStyle;
|
|
1214
|
-
};
|
|
1215
|
-
}, []);
|
|
1216
|
-
return props.children;
|
|
1217
|
-
}
|
|
1218
91
|
|
|
1219
|
-
|
|
1220
|
-
var import_react_dom = require("react-dom");
|
|
1221
|
-
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1222
|
-
function Layer({
|
|
1223
|
-
children,
|
|
1224
|
-
zIndex = 1
|
|
1225
|
-
}) {
|
|
1226
|
-
return typeof document !== "undefined" ? (0, import_react_dom.createPortal)(
|
|
1227
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1228
|
-
Box_default,
|
|
1229
|
-
{
|
|
1230
|
-
"data-testid": "syntax-layer",
|
|
1231
|
-
position: "fixed",
|
|
1232
|
-
dangerouslySetInlineStyle: {
|
|
1233
|
-
__style: { zIndex, inset: 0 }
|
|
1234
|
-
},
|
|
1235
|
-
children
|
|
1236
|
-
}
|
|
1237
|
-
),
|
|
1238
|
-
document.body
|
|
1239
|
-
) : null;
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
// css-module:./Modal.module.css#css-module
|
|
1243
|
-
var Modal_module_default = { "backdrop": "_backdrop_30t3h_1", "closeButton": "_closeButton_30t3h_12", "closeButtonWithImage": "_closeButtonWithImage_30t3h_32" };
|
|
1244
|
-
|
|
1245
|
-
// src/Modal/Modal.tsx
|
|
1246
|
-
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1247
|
-
function XIcon({ color = "#000" }) {
|
|
1248
|
-
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", fill: color, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1249
|
-
"path",
|
|
1250
|
-
{
|
|
1251
|
-
fill: "inherit",
|
|
1252
|
-
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"
|
|
1253
|
-
}
|
|
1254
|
-
) });
|
|
1255
|
-
}
|
|
1256
|
-
var sizeWidth = {
|
|
1257
|
-
sm: 400,
|
|
1258
|
-
lg: 600
|
|
1259
|
-
};
|
|
1260
|
-
function Modal({
|
|
1261
|
-
header,
|
|
1262
|
-
children,
|
|
1263
|
-
image,
|
|
1264
|
-
onDismiss,
|
|
1265
|
-
footer,
|
|
1266
|
-
accessibilityCloseLabel = "close modal",
|
|
1267
|
-
size = "sm",
|
|
1268
|
-
zIndex = 1,
|
|
1269
|
-
"data-testid": dataTestId
|
|
1270
|
-
}) {
|
|
1271
|
-
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Layer, { zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(StopScroll, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(FocusTrap, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1272
|
-
"div",
|
|
1273
|
-
{
|
|
1274
|
-
className: Modal_module_default.backdrop,
|
|
1275
|
-
role: "presentation",
|
|
1276
|
-
onClick: (e) => e.target === e.currentTarget && onDismiss(),
|
|
1277
|
-
onKeyDown: (e) => e.key === "Escape" && onDismiss(),
|
|
1278
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
1279
|
-
Box_default,
|
|
1280
|
-
{
|
|
1281
|
-
"data-testid": dataTestId,
|
|
1282
|
-
backgroundColor: "white",
|
|
1283
|
-
rounding: "xl",
|
|
1284
|
-
display: "flex",
|
|
1285
|
-
direction: "column",
|
|
1286
|
-
minWidth: 240,
|
|
1287
|
-
maxWidth: sizeWidth[size],
|
|
1288
|
-
width: "100%",
|
|
1289
|
-
dangerouslySetInlineStyle: { __style: { overflow: "hidden" } },
|
|
1290
|
-
children: [
|
|
1291
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Box_default, { position: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1292
|
-
"button",
|
|
1293
|
-
{
|
|
1294
|
-
"aria-label": accessibilityCloseLabel,
|
|
1295
|
-
type: "button",
|
|
1296
|
-
className: (0, import_classnames10.default)(Modal_module_default.closeButton, {
|
|
1297
|
-
[Modal_module_default.closeButtonWithImage]: !!image
|
|
1298
|
-
}),
|
|
1299
|
-
onClick: onDismiss,
|
|
1300
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(XIcon, { color: image ? "#fff" : "#000" })
|
|
1301
|
-
}
|
|
1302
|
-
) }),
|
|
1303
|
-
image && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Box_default, { maxHeight: 200, children: image }),
|
|
1304
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Box_default, { display: "flex", gap: 3, direction: "column", padding: 9, children: [
|
|
1305
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Heading_default, { as: "h1", size: 500, children: header }),
|
|
1306
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Box_default, { marginBottom: 4, children }),
|
|
1307
|
-
footer && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1308
|
-
Box_default,
|
|
1309
|
-
{
|
|
1310
|
-
display: "flex",
|
|
1311
|
-
direction: "column",
|
|
1312
|
-
gap: 3,
|
|
1313
|
-
smDirection: "row",
|
|
1314
|
-
smJustifyContent: "end",
|
|
1315
|
-
lgDirection: "row",
|
|
1316
|
-
lgJustifyContent: "end",
|
|
1317
|
-
children: footer
|
|
1318
|
-
}
|
|
1319
|
-
)
|
|
1320
|
-
] })
|
|
1321
|
-
]
|
|
1322
|
-
}
|
|
1323
|
-
)
|
|
1324
|
-
}
|
|
1325
|
-
) }) }) });
|
|
1326
|
-
}
|
|
1327
|
-
Modal.displayName = "Modal";
|
|
1328
|
-
|
|
1329
|
-
// src/RadioButton/RadioButton.tsx
|
|
1330
|
-
var import_react11 = require("react");
|
|
1331
|
-
var import_classnames11 = __toESM(require_classnames());
|
|
1332
|
-
|
|
1333
|
-
// css-module:./RadioButton.module.css#css-module
|
|
1334
|
-
var RadioButton_module_default = { "radioBaseContainer": "_radioBaseContainer_6h2zg_1", "disabled": "_disabled_6h2zg_9", "cursorDisabled": "_cursorDisabled_6h2zg_13", "cursorEnabled": "_cursorEnabled_6h2zg_17", "smBase": "_smBase_6h2zg_21", "mdBase": "_mdBase_6h2zg_25", "radioStyleOverride": "_radioStyleOverride_6h2zg_29", "smOverride": "_smOverride_6h2zg_34", "mdOverride": "_mdOverride_6h2zg_39", "background": "_background_6h2zg_44", "sm": "_sm_6h2zg_21", "md": "_md_6h2zg_25", "neutralBorder": "_neutralBorder_6h2zg_61", "smCheckedBorder": "_smCheckedBorder_6h2zg_65", "mdCheckedBorder": "_mdCheckedBorder_6h2zg_69", "errorBorderColor": "_errorBorderColor_6h2zg_73", "borderColor": "_borderColor_6h2zg_77" };
|
|
1335
|
-
|
|
1336
|
-
// src/RadioButton/RadioButton.tsx
|
|
1337
|
-
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1338
|
-
var RadioButton = ({
|
|
1339
|
-
checked = false,
|
|
1340
|
-
"data-testid": dataTestId,
|
|
1341
|
-
disabled: disabledProp = false,
|
|
1342
|
-
error = false,
|
|
1343
|
-
id,
|
|
1344
|
-
label,
|
|
1345
|
-
name,
|
|
1346
|
-
onChange,
|
|
1347
|
-
size = "md",
|
|
1348
|
-
value
|
|
1349
|
-
}) => {
|
|
1350
|
-
const isHydrated = useIsHydrated();
|
|
1351
|
-
const disabled = !isHydrated || disabledProp;
|
|
1352
|
-
const [isFocused, setIsFocused] = (0, import_react11.useState)(false);
|
|
1353
|
-
const { isFocusVisible: isFocusVisible2 } = useFocusVisible();
|
|
1354
|
-
const sharedStyles = (0, import_classnames11.default)(RadioButton_module_default.background, RadioButton_module_default[size], {
|
|
1355
|
-
[RadioButton_module_default.errorBorderColor]: error,
|
|
1356
|
-
[RadioButton_module_default.borderColor]: !error,
|
|
1357
|
-
[Focus_module_default.accessibilityOutlineFocus]: isFocused && isFocusVisible2
|
|
1358
|
-
});
|
|
1359
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
1360
|
-
"label",
|
|
1361
|
-
{
|
|
1362
|
-
className: (0, import_classnames11.default)(
|
|
1363
|
-
RadioButton_module_default.radioBaseContainer,
|
|
1364
|
-
RadioButton_module_default[`cursor${disabled ? "Disabled" : "Enabled"}`],
|
|
1365
|
-
{
|
|
1366
|
-
[RadioButton_module_default.disabled]: disabled,
|
|
1367
|
-
[RadioButton_module_default.smBase]: size === "sm",
|
|
1368
|
-
[RadioButton_module_default.mdBase]: size === "md"
|
|
1369
|
-
}
|
|
1370
|
-
),
|
|
1371
|
-
children: [
|
|
1372
|
-
checked ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1373
|
-
"div",
|
|
1374
|
-
{
|
|
1375
|
-
className: (0, import_classnames11.default)(sharedStyles, {
|
|
1376
|
-
[RadioButton_module_default.mdCheckedBorder]: size === "md",
|
|
1377
|
-
[RadioButton_module_default.smCheckedBorder]: size === "sm"
|
|
1378
|
-
})
|
|
1379
|
-
}
|
|
1380
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: (0, import_classnames11.default)(sharedStyles, RadioButton_module_default.neutralBorder) }),
|
|
1381
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1382
|
-
"input",
|
|
1383
|
-
{
|
|
1384
|
-
"data-testid": dataTestId,
|
|
1385
|
-
type: "radio",
|
|
1386
|
-
id,
|
|
1387
|
-
name,
|
|
1388
|
-
className: (0, import_classnames11.default)(
|
|
1389
|
-
RadioButton_module_default.radioStyleOverride,
|
|
1390
|
-
RadioButton_module_default[`cursor${disabled ? "Disabled" : "Enabled"}`],
|
|
1391
|
-
{
|
|
1392
|
-
[RadioButton_module_default.smOverride]: size === "sm",
|
|
1393
|
-
[RadioButton_module_default.mdOverride]: size === "md"
|
|
1394
|
-
}
|
|
1395
|
-
),
|
|
1396
|
-
checked,
|
|
1397
|
-
onChange,
|
|
1398
|
-
disabled,
|
|
1399
|
-
value,
|
|
1400
|
-
onFocus: () => {
|
|
1401
|
-
setIsFocused(true);
|
|
1402
|
-
},
|
|
1403
|
-
onBlur: () => {
|
|
1404
|
-
setIsFocused(false);
|
|
1405
|
-
}
|
|
1406
|
-
}
|
|
1407
|
-
),
|
|
1408
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1409
|
-
Typography_default,
|
|
1410
|
-
{
|
|
1411
|
-
size: size === "md" ? 200 : 100,
|
|
1412
|
-
color: error ? "destructive-primary" : "gray800",
|
|
1413
|
-
children: label
|
|
1414
|
-
}
|
|
1415
|
-
)
|
|
1416
|
-
]
|
|
1417
|
-
}
|
|
1418
|
-
);
|
|
1419
|
-
};
|
|
1420
|
-
var RadioButton_default = RadioButton;
|
|
1421
|
-
|
|
1422
|
-
// src/SelectList/SelectList.tsx
|
|
1423
|
-
var import_react12 = require("react");
|
|
1424
|
-
var import_classnames12 = __toESM(require_classnames());
|
|
1425
|
-
|
|
1426
|
-
// ../syntax-design-tokens/dist/js/index.js
|
|
1427
|
-
var ColorBaseDestructive700 = "#d32a4b";
|
|
1428
|
-
var ColorBaseGray800 = "#353535";
|
|
1429
|
-
|
|
1430
|
-
// css-module:./SelectList.module.css#css-module
|
|
1431
|
-
var SelectList_module_default = { "selectContainer": "_selectContainer_3ifov_1", "opacityOverlay": "_opacityOverlay_3ifov_7", "outerTextContainer": "_outerTextContainer_3ifov_11", "selectWrapper": "_selectWrapper_3ifov_16", "selectBox": "_selectBox_3ifov_21", "selectMouseFocusStyling": "_selectMouseFocusStyling_3ifov_37", "unselected": "_unselected_3ifov_42", "selected": "_selected_3ifov_46", "arrowIcon": "_arrowIcon_3ifov_50", "sm": "_sm_3ifov_64", "md": "_md_3ifov_70", "lg": "_lg_3ifov_76", "selectError": "_selectError_3ifov_82" };
|
|
1432
|
-
|
|
1433
|
-
// src/SelectList/SelectOption.tsx
|
|
1434
|
-
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1435
|
-
var SelectOption = ({
|
|
1436
|
-
"data-testid": dataTestId,
|
|
1437
|
-
value,
|
|
1438
|
-
label,
|
|
1439
|
-
disabled = false
|
|
1440
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("option", { "data-testid": dataTestId, value, disabled, children: label });
|
|
1441
|
-
var SelectOption_default = SelectOption;
|
|
1442
|
-
|
|
1443
|
-
// src/SelectList/SelectList.tsx
|
|
1444
|
-
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1445
|
-
var iconSize3 = {
|
|
1446
|
-
sm: 20,
|
|
1447
|
-
md: 24,
|
|
1448
|
-
lg: 24
|
|
1449
|
-
};
|
|
1450
|
-
function SelectList({
|
|
1451
|
-
children,
|
|
1452
|
-
"data-testid": dataTestId,
|
|
1453
|
-
disabled: disabledProp = false,
|
|
1454
|
-
errorText,
|
|
1455
|
-
helperText,
|
|
1456
|
-
id,
|
|
1457
|
-
label,
|
|
1458
|
-
onChange,
|
|
1459
|
-
onClick,
|
|
1460
|
-
placeholderText,
|
|
1461
|
-
selectedValue = "",
|
|
1462
|
-
size = "md"
|
|
1463
|
-
}) {
|
|
1464
|
-
const reactId = (0, import_react12.useId)();
|
|
1465
|
-
const isHydrated = useIsHydrated();
|
|
1466
|
-
const disabled = !isHydrated || disabledProp;
|
|
1467
|
-
const selectId = id != null ? id : reactId;
|
|
1468
|
-
const { isFocusVisible: isFocusVisible2 } = useFocusVisible();
|
|
1469
|
-
const [isFocused, setIsFocused] = (0, import_react12.useState)(false);
|
|
1470
|
-
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
1471
|
-
"div",
|
|
1472
|
-
{
|
|
1473
|
-
className: (0, import_classnames12.default)(SelectList_module_default.selectContainer, {
|
|
1474
|
-
[SelectList_module_default.opacityOverlay]: disabled
|
|
1475
|
-
}),
|
|
1476
|
-
children: [
|
|
1477
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("label", { htmlFor: selectId, className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Typography_default, { size: 100, color: "gray700", children: label }) }),
|
|
1478
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: SelectList_module_default.selectWrapper, children: [
|
|
1479
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
1480
|
-
"select",
|
|
1481
|
-
{
|
|
1482
|
-
id: selectId,
|
|
1483
|
-
"data-testid": dataTestId,
|
|
1484
|
-
disabled,
|
|
1485
|
-
className: (0, import_classnames12.default)(SelectList_module_default.selectBox, SelectList_module_default[size], {
|
|
1486
|
-
[SelectList_module_default.unselected]: !selectedValue && !errorText,
|
|
1487
|
-
[SelectList_module_default.selected]: selectedValue && !errorText,
|
|
1488
|
-
[SelectList_module_default.selectError]: errorText,
|
|
1489
|
-
[Focus_module_default.accessibilityOutlineFocus]: isFocused && isFocusVisible2,
|
|
1490
|
-
// for focus keyboard
|
|
1491
|
-
[SelectList_module_default.selectMouseFocusStyling]: isFocused && !isFocusVisible2
|
|
1492
|
-
// for focus mouse
|
|
1493
|
-
}),
|
|
1494
|
-
onChange,
|
|
1495
|
-
onClick,
|
|
1496
|
-
value: placeholderText && !selectedValue ? placeholderText : selectedValue,
|
|
1497
|
-
onFocus: () => setIsFocused(true),
|
|
1498
|
-
onBlur: () => setIsFocused(false),
|
|
1499
|
-
children: [
|
|
1500
|
-
placeholderText && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("option", { disabled: true, value: placeholderText, children: placeholderText }),
|
|
1501
|
-
children
|
|
1502
|
-
]
|
|
1503
|
-
}
|
|
1504
|
-
),
|
|
1505
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: SelectList_module_default.arrowIcon, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1506
|
-
"svg",
|
|
1507
|
-
{
|
|
1508
|
-
focusable: "false",
|
|
1509
|
-
"aria-hidden": "true",
|
|
1510
|
-
viewBox: "0 0 24 24",
|
|
1511
|
-
width: iconSize3[size],
|
|
1512
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1513
|
-
"path",
|
|
1514
|
-
{
|
|
1515
|
-
fill: errorText ? ColorBaseDestructive700 : ColorBaseGray800,
|
|
1516
|
-
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"
|
|
1517
|
-
}
|
|
1518
|
-
)
|
|
1519
|
-
}
|
|
1520
|
-
) })
|
|
1521
|
-
] }),
|
|
1522
|
-
(helperText || errorText) && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1523
|
-
Typography_default,
|
|
1524
|
-
{
|
|
1525
|
-
size: 100,
|
|
1526
|
-
color: errorText ? "destructive-primary" : "gray700",
|
|
1527
|
-
children: errorText ? errorText : helperText
|
|
1528
|
-
}
|
|
1529
|
-
) })
|
|
1530
|
-
]
|
|
1531
|
-
}
|
|
1532
|
-
);
|
|
1533
|
-
}
|
|
1534
|
-
SelectList.Option = SelectOption_default;
|
|
1535
|
-
|
|
1536
|
-
// src/TapArea/TapArea.tsx
|
|
1537
|
-
var import_react13 = require("react");
|
|
1538
|
-
var import_classnames13 = __toESM(require_classnames());
|
|
1539
|
-
|
|
1540
|
-
// css-module:./TapArea.module.css#css-module
|
|
1541
|
-
var TapArea_module_default = { "tapArea": "_tapArea_g6gkz_1", "fullWidth": "_fullWidth_g6gkz_5", "disabled": "_disabled_g6gkz_9", "enabled": "_enabled_g6gkz_16", "overlay": "_overlay_g6gkz_29", "hoveredOrFocussed": "_hoveredOrFocussed_g6gkz_39" };
|
|
1542
|
-
|
|
1543
|
-
// src/TapArea/TapArea.tsx
|
|
1544
|
-
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1545
|
-
function reducer(state, action) {
|
|
1546
|
-
switch (action.type) {
|
|
1547
|
-
case "BLUR":
|
|
1548
|
-
return __spreadProps(__spreadValues({}, state), { focussed: false });
|
|
1549
|
-
case "FOCUS":
|
|
1550
|
-
return __spreadProps(__spreadValues({}, state), { focussed: true });
|
|
1551
|
-
case "MOUSE_ENTER":
|
|
1552
|
-
return __spreadProps(__spreadValues({}, state), { hovered: true });
|
|
1553
|
-
case "MOUSE_LEAVE":
|
|
1554
|
-
return __spreadProps(__spreadValues({}, state), { hovered: false });
|
|
1555
|
-
default:
|
|
1556
|
-
return state;
|
|
1557
|
-
}
|
|
1558
|
-
}
|
|
1559
|
-
var TapArea = (0, import_react13.forwardRef)(
|
|
1560
|
-
({
|
|
1561
|
-
children,
|
|
1562
|
-
accessibilityLabel,
|
|
1563
|
-
"data-testid": dataTestId,
|
|
1564
|
-
disabled: disabledProp = false,
|
|
1565
|
-
fullWidth = true,
|
|
1566
|
-
onClick,
|
|
1567
|
-
rounding = "none",
|
|
1568
|
-
tabIndex = 0
|
|
1569
|
-
}, ref) => {
|
|
1570
|
-
const isHydrated = useIsHydrated();
|
|
1571
|
-
const disabled = !isHydrated || disabledProp;
|
|
1572
|
-
const [{ hovered, focussed }, dispatch] = (0, import_react13.useReducer)(reducer, {
|
|
1573
|
-
hovered: false,
|
|
1574
|
-
focussed: false
|
|
1575
|
-
});
|
|
1576
|
-
const handleClick = (event) => {
|
|
1577
|
-
if (disabled) {
|
|
1578
|
-
} else {
|
|
1579
|
-
event.currentTarget.blur();
|
|
1580
|
-
onClick(event);
|
|
1581
|
-
}
|
|
1582
|
-
};
|
|
1583
|
-
const handleKeyDown = (event) => {
|
|
1584
|
-
if (disabled)
|
|
1585
|
-
return;
|
|
1586
|
-
if (event.key === "Enter" || event.key === " " || event.key === "Space") {
|
|
1587
|
-
event.preventDefault();
|
|
1588
|
-
onClick(event);
|
|
1589
|
-
}
|
|
1590
|
-
};
|
|
1591
|
-
const isHoveredOrFocussed = !disabled && (hovered || focussed);
|
|
1592
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
1593
|
-
"div",
|
|
1594
|
-
{
|
|
1595
|
-
"aria-disabled": disabled,
|
|
1596
|
-
"aria-label": accessibilityLabel,
|
|
1597
|
-
className: (0, import_classnames13.default)(
|
|
1598
|
-
TapArea_module_default.tapArea,
|
|
1599
|
-
TapArea_module_default[`${disabled ? "disabled" : "enabled"}`],
|
|
1600
|
-
fullWidth && TapArea_module_default.fullWidth,
|
|
1601
|
-
isHoveredOrFocussed && TapArea_module_default.hoveredOrFocussed
|
|
1602
|
-
),
|
|
1603
|
-
"data-testid": dataTestId,
|
|
1604
|
-
onClick: handleClick,
|
|
1605
|
-
onKeyDown: handleKeyDown,
|
|
1606
|
-
onMouseEnter: () => dispatch({ type: "MOUSE_ENTER" }),
|
|
1607
|
-
onMouseLeave: () => dispatch({ type: "MOUSE_LEAVE" }),
|
|
1608
|
-
onFocus: () => dispatch({ type: "FOCUS" }),
|
|
1609
|
-
onBlur: () => dispatch({ type: "BLUR" }),
|
|
1610
|
-
ref,
|
|
1611
|
-
role: "button",
|
|
1612
|
-
tabIndex: disabled ? void 0 : tabIndex,
|
|
1613
|
-
children: [
|
|
1614
|
-
!disabled && (hovered || focussed) && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1615
|
-
"div",
|
|
1616
|
-
{
|
|
1617
|
-
className: (0, import_classnames13.default)(
|
|
1618
|
-
TapArea_module_default.overlay,
|
|
1619
|
-
rounding !== "none" && rounding_module_default[`rounding${rounding}`]
|
|
1620
|
-
)
|
|
1621
|
-
}
|
|
1622
|
-
),
|
|
1623
|
-
children
|
|
1624
|
-
]
|
|
1625
|
-
}
|
|
1626
|
-
);
|
|
1627
|
-
}
|
|
1628
|
-
);
|
|
1629
|
-
TapArea.displayName = "TapArea";
|
|
1630
|
-
var TapArea_default = TapArea;
|
|
1631
|
-
|
|
1632
|
-
// src/TextField/TextField.tsx
|
|
1633
|
-
var import_react14 = require("react");
|
|
1634
|
-
var import_classnames14 = __toESM(require_classnames());
|
|
1635
|
-
|
|
1636
|
-
// css-module:./TextField.module.css#css-module
|
|
1637
|
-
var TextField_module_default = { "textfield": "_textfield_cltsv_1", "label": "_label_cltsv_21", "sm": "_sm_cltsv_25", "md": "_md_cltsv_30", "lg": "_lg_cltsv_35", "inputError": "_inputError_cltsv_40" };
|
|
1638
|
-
|
|
1639
|
-
// src/TextField/TextField.tsx
|
|
1640
|
-
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1641
|
-
function TextField({
|
|
1642
|
-
autoComplete,
|
|
1643
|
-
"data-testid": dataTestId,
|
|
1644
|
-
disabled: disabledProp = false,
|
|
1645
|
-
errorText = "",
|
|
1646
|
-
helperText = "",
|
|
1647
|
-
id,
|
|
1648
|
-
label,
|
|
1649
|
-
onChange,
|
|
1650
|
-
placeholder = "",
|
|
1651
|
-
size = "md",
|
|
1652
|
-
type = "text",
|
|
1653
|
-
value = ""
|
|
1654
|
-
}) {
|
|
1655
|
-
const isHydrated = useIsHydrated();
|
|
1656
|
-
const disabled = !isHydrated || disabledProp;
|
|
1657
|
-
const reactId = (0, import_react14.useId)();
|
|
1658
|
-
const inputId = id != null ? id : reactId;
|
|
1659
|
-
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
1660
|
-
Box_default,
|
|
1661
|
-
{
|
|
1662
|
-
display: "flex",
|
|
1663
|
-
direction: "column",
|
|
1664
|
-
gap: 2,
|
|
1665
|
-
width: "100%",
|
|
1666
|
-
dangerouslySetInlineStyle: {
|
|
1667
|
-
__style: {
|
|
1668
|
-
opacity: disabled ? 0.5 : 1
|
|
1669
|
-
}
|
|
1670
|
-
},
|
|
1671
|
-
children: [
|
|
1672
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("label", { className: TextField_module_default.label, htmlFor: inputId, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Box_default, { paddingX: 1, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Typography_default, { size: 100, color: "gray700", children: label }) }) }),
|
|
1673
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1674
|
-
"input",
|
|
1675
|
-
{
|
|
1676
|
-
autoComplete,
|
|
1677
|
-
className: (0, import_classnames14.default)(TextField_module_default.textfield, TextField_module_default[size], {
|
|
1678
|
-
[TextField_module_default.inputError]: errorText
|
|
1679
|
-
}),
|
|
1680
|
-
"data-testid": dataTestId,
|
|
1681
|
-
disabled,
|
|
1682
|
-
id: inputId,
|
|
1683
|
-
type,
|
|
1684
|
-
onChange,
|
|
1685
|
-
placeholder,
|
|
1686
|
-
value
|
|
1687
|
-
}
|
|
1688
|
-
),
|
|
1689
|
-
(helperText || errorText) && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Box_default, { paddingX: 1, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1690
|
-
Typography_default,
|
|
1691
|
-
{
|
|
1692
|
-
size: 100,
|
|
1693
|
-
color: errorText ? "destructive-primary" : "gray700",
|
|
1694
|
-
children: errorText || helperText
|
|
1695
|
-
}
|
|
1696
|
-
) })
|
|
1697
|
-
]
|
|
1698
|
-
}
|
|
1699
|
-
);
|
|
1700
|
-
}
|
|
1701
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1702
|
-
0 && (module.exports = {
|
|
1703
|
-
Avatar,
|
|
1704
|
-
Badge,
|
|
1705
|
-
Box,
|
|
1706
|
-
Button,
|
|
1707
|
-
ButtonGroup,
|
|
1708
|
-
Card,
|
|
1709
|
-
Checkbox,
|
|
1710
|
-
Chip,
|
|
1711
|
-
Divider,
|
|
1712
|
-
Heading,
|
|
1713
|
-
IconButton,
|
|
1714
|
-
LinkButton,
|
|
1715
|
-
Modal,
|
|
1716
|
-
RadioButton,
|
|
1717
|
-
SelectList,
|
|
1718
|
-
TapArea,
|
|
1719
|
-
TextField,
|
|
1720
|
-
Typography
|
|
1721
|
-
});
|
|
1722
|
-
/*! Bundled license information:
|
|
1723
|
-
|
|
1724
|
-
classnames/index.js:
|
|
1725
|
-
(*!
|
|
1726
|
-
Copyright (c) 2018 Jed Watson.
|
|
1727
|
-
Licensed under the MIT License (MIT), see
|
|
1728
|
-
http://jedwatson.github.io/classnames
|
|
1729
|
-
*)
|
|
1730
|
-
*/
|
|
92
|
+
exports.Avatar = _FUBK3VZOjs.Avatar_default; exports.Badge = _FOTKCGZZjs.Badge_default; exports.Box = _PYNS67IVjs.Box_default; exports.Button = _GPS2XNQIjs.Button_default; exports.ButtonGroup = _LJHH6KUWjs.ButtonGroup_default; exports.Card = _CQ2HIJ62js.Card; exports.Checkbox = _BSWWGQASjs.Checkbox_default; exports.Chip = _UNIBFDXVjs.Chip_default; exports.Divider = _6VWFOSQZjs.Divider; exports.Heading = _BSFWQWVJjs.Heading_default; exports.IconButton = _3VUMTAUXjs.IconButton_default; exports.LinkButton = _ERJ5XXDHjs.LinkButton_default; exports.Modal = _TKYRBLSMjs.Modal; exports.RadioButton = _X74O4HUSjs.RadioButton_default; exports.SelectList = _AGAHNSZMjs.SelectList; exports.TapArea = _37CQV3RSjs.TapArea_default; exports.TextField = _2PHVTRWCjs.TextField; exports.Typography = _F3ZST4RLjs.Typography_default;
|
|
1731
93
|
//# sourceMappingURL=index.js.map
|