@cambly/syntax-core 20.7.0 → 21.1.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/RichSelect/RichSelectList.css +11 -8
- package/dist/RichSelect/RichSelectList.css.map +1 -1
- package/dist/RichSelect/RichSelectList.js +3 -3
- package/dist/SelectList/SelectList.js +2 -2
- package/dist/TabButton/TabButton.css +11 -8
- package/dist/TabButton/TabButton.css.map +1 -1
- package/dist/TabButton/TabButton.js +2 -2
- package/dist/TapArea/TapArea.css +11 -8
- package/dist/TapArea/TapArea.css.map +1 -1
- package/dist/TapArea/TapArea.d.ts +4 -0
- package/dist/TapArea/TapArea.js +1 -1
- package/dist/__chunks/{WCHW3AYL.js → EOWYHIIV.js} +2 -2
- package/dist/__chunks/{XMSJWQLW.js → L6DEFAVZ.js} +2 -2
- package/dist/__chunks/{WIKMZ7QF.js → RAYMYVIO.js} +3 -3
- package/dist/__chunks/{77FFPQY6.js → S3C44SBB.js} +5 -2
- package/dist/__chunks/S3C44SBB.js.map +1 -0
- package/dist/__chunks/{JGDLN47H.js → SGGPK2H4.js} +1 -1
- package/dist/__chunks/{JGDLN47H.js.map → SGGPK2H4.js.map} +1 -1
- package/dist/index.css +11 -8
- package/dist/index.css.map +1 -1
- package/dist/index.js +5 -5
- package/package.json +5 -5
- package/dist/Avatar/Avatar.cjs +0 -16
- package/dist/Avatar/Avatar.cjs.map +0 -1
- package/dist/AvatarGroup/AvatarGroup.cjs +0 -17
- package/dist/AvatarGroup/AvatarGroup.cjs.map +0 -1
- package/dist/Badge/Badge.cjs +0 -17
- package/dist/Badge/Badge.cjs.map +0 -1
- package/dist/Box/Box.cjs +0 -14
- package/dist/Box/Box.cjs.map +0 -1
- package/dist/Button/Button.cjs +0 -25
- package/dist/Button/Button.cjs.map +0 -1
- package/dist/Button/constants/iconSize.cjs +0 -11
- package/dist/Button/constants/iconSize.cjs.map +0 -1
- package/dist/Button/constants/loadingIconSize.cjs +0 -9
- package/dist/Button/constants/loadingIconSize.cjs.map +0 -1
- package/dist/Button/constants/textVariant.cjs +0 -9
- package/dist/Button/constants/textVariant.cjs.map +0 -1
- package/dist/ButtonGroup/ButtonGroup.cjs +0 -9
- package/dist/ButtonGroup/ButtonGroup.cjs.map +0 -1
- package/dist/Card/Card.cjs +0 -15
- package/dist/Card/Card.cjs.map +0 -1
- package/dist/Checkbox/Checkbox.cjs +0 -16
- package/dist/Checkbox/Checkbox.cjs.map +0 -1
- package/dist/Chip/Chip.cjs +0 -18
- package/dist/Chip/Chip.cjs.map +0 -1
- package/dist/Dialog/Dialog.cjs +0 -19
- package/dist/Dialog/Dialog.cjs.map +0 -1
- package/dist/Dialog/ModalDialog.cjs +0 -32
- package/dist/Dialog/ModalDialog.cjs.map +0 -1
- package/dist/Divider/Divider.cjs +0 -11
- package/dist/Divider/Divider.cjs.map +0 -1
- package/dist/Heading/Heading.cjs +0 -13
- package/dist/Heading/Heading.cjs.map +0 -1
- package/dist/Icon/Icon.cjs +0 -11
- package/dist/Icon/Icon.cjs.map +0 -1
- package/dist/IconButton/IconButton.cjs +0 -22
- package/dist/IconButton/IconButton.cjs.map +0 -1
- package/dist/IconLinkButton/IconLinkButton.cjs +0 -17
- package/dist/IconLinkButton/IconLinkButton.cjs.map +0 -1
- package/dist/LinkButton/LinkButton.cjs +0 -21
- package/dist/LinkButton/LinkButton.cjs.map +0 -1
- package/dist/Modal/FocusTrap.cjs +0 -10
- package/dist/Modal/FocusTrap.cjs.map +0 -1
- package/dist/Modal/Layer.cjs +0 -15
- package/dist/Modal/Layer.cjs.map +0 -1
- package/dist/Modal/Modal.cjs +0 -29
- package/dist/Modal/Modal.cjs.map +0 -1
- package/dist/Modal/StopScroll.cjs +0 -9
- package/dist/Modal/StopScroll.cjs.map +0 -1
- package/dist/Popover/Popover.cjs +0 -34
- package/dist/Popover/Popover.cjs.map +0 -1
- package/dist/RadioButton/RadioButton.cjs +0 -20
- package/dist/RadioButton/RadioButton.cjs.map +0 -1
- package/dist/RichSelect/RichSelectBox.cjs +0 -42
- package/dist/RichSelect/RichSelectBox.cjs.map +0 -1
- package/dist/RichSelect/RichSelectChip.cjs +0 -20
- package/dist/RichSelect/RichSelectChip.cjs.map +0 -1
- package/dist/RichSelect/RichSelectItem.cjs +0 -12
- package/dist/RichSelect/RichSelectItem.cjs.map +0 -1
- package/dist/RichSelect/RichSelectList.cjs +0 -51
- package/dist/RichSelect/RichSelectList.cjs.map +0 -1
- package/dist/RichSelect/RichSelectRadioButton.cjs +0 -22
- package/dist/RichSelect/RichSelectRadioButton.cjs.map +0 -1
- package/dist/RichSelect/RichSelectSection.cjs +0 -16
- package/dist/RichSelect/RichSelectSection.cjs.map +0 -1
- package/dist/SelectList/SelectList.cjs +0 -22
- package/dist/SelectList/SelectList.cjs.map +0 -1
- package/dist/SelectList/SelectOption.cjs +0 -9
- package/dist/SelectList/SelectOption.cjs.map +0 -1
- package/dist/TabButton/TabButton.cjs +0 -22
- package/dist/TabButton/TabButton.cjs.map +0 -1
- package/dist/TabLink/TabLink.cjs +0 -20
- package/dist/TabLink/TabLink.cjs.map +0 -1
- package/dist/Tabs/TabInternal.cjs +0 -17
- package/dist/Tabs/TabInternal.cjs.map +0 -1
- package/dist/Tabs/Tabs.cjs +0 -16
- package/dist/Tabs/Tabs.cjs.map +0 -1
- package/dist/TapArea/TapArea.cjs +0 -11
- package/dist/TapArea/TapArea.cjs.map +0 -1
- package/dist/TextArea/TextArea.cjs +0 -19
- package/dist/TextArea/TextArea.cjs.map +0 -1
- package/dist/TextField/TextField.cjs +0 -20
- package/dist/TextField/TextField.cjs.map +0 -1
- package/dist/ThemeProvider/ThemeProvider.cjs +0 -9
- package/dist/ThemeProvider/ThemeProvider.cjs.map +0 -1
- package/dist/Tooltip/Tooltip.cjs +0 -24
- package/dist/Tooltip/Tooltip.cjs.map +0 -1
- package/dist/Typography/Typography.cjs +0 -12
- package/dist/Typography/Typography.cjs.map +0 -1
- package/dist/WordConfetti/WordConfetti.cjs +0 -17
- package/dist/WordConfetti/WordConfetti.cjs.map +0 -1
- package/dist/__chunks/2D3DOVVZ.cjs +0 -37
- package/dist/__chunks/2D3DOVVZ.cjs.map +0 -1
- package/dist/__chunks/2XIVACBM.cjs +0 -9
- package/dist/__chunks/2XIVACBM.cjs.map +0 -1
- package/dist/__chunks/36JMUQOL.cjs +0 -205
- package/dist/__chunks/36JMUQOL.cjs.map +0 -1
- package/dist/__chunks/3P2PWHOU.cjs +0 -14
- package/dist/__chunks/3P2PWHOU.cjs.map +0 -1
- package/dist/__chunks/3UEOKPM2.cjs +0 -136
- package/dist/__chunks/3UEOKPM2.cjs.map +0 -1
- package/dist/__chunks/3ULBWSHT.cjs +0 -169
- package/dist/__chunks/3ULBWSHT.cjs.map +0 -1
- package/dist/__chunks/4QUXUGJP.cjs +0 -47
- package/dist/__chunks/4QUXUGJP.cjs.map +0 -1
- package/dist/__chunks/4TYOP5XM.cjs +0 -64
- package/dist/__chunks/4TYOP5XM.cjs.map +0 -1
- package/dist/__chunks/4UT6BROB.cjs +0 -141
- package/dist/__chunks/4UT6BROB.cjs.map +0 -1
- package/dist/__chunks/5ITNEIMC.cjs +0 -109
- package/dist/__chunks/5ITNEIMC.cjs.map +0 -1
- package/dist/__chunks/5JUNB754.cjs +0 -15
- package/dist/__chunks/5JUNB754.cjs.map +0 -1
- package/dist/__chunks/6KSVCCCB.cjs +0 -38
- package/dist/__chunks/6KSVCCCB.cjs.map +0 -1
- package/dist/__chunks/77FFPQY6.js.map +0 -1
- package/dist/__chunks/7DGFMDT7.cjs +0 -9
- package/dist/__chunks/7DGFMDT7.cjs.map +0 -1
- package/dist/__chunks/7KH536I2.cjs +0 -32
- package/dist/__chunks/7KH536I2.cjs.map +0 -1
- package/dist/__chunks/7VI7DO7P.cjs +0 -13
- package/dist/__chunks/7VI7DO7P.cjs.map +0 -1
- package/dist/__chunks/A3B4YKGN.cjs +0 -28
- package/dist/__chunks/A3B4YKGN.cjs.map +0 -1
- package/dist/__chunks/AFOQ6JVB.cjs +0 -211
- package/dist/__chunks/AFOQ6JVB.cjs.map +0 -1
- package/dist/__chunks/AHM6QK6U.cjs +0 -133
- package/dist/__chunks/AHM6QK6U.cjs.map +0 -1
- package/dist/__chunks/AVJQ2E2G.cjs +0 -37
- package/dist/__chunks/AVJQ2E2G.cjs.map +0 -1
- package/dist/__chunks/B3JRSVBD.cjs +0 -35
- package/dist/__chunks/B3JRSVBD.cjs.map +0 -1
- package/dist/__chunks/BVNFNAUO.cjs +0 -149
- package/dist/__chunks/BVNFNAUO.cjs.map +0 -1
- package/dist/__chunks/CHDS4D44.cjs +0 -9
- package/dist/__chunks/CHDS4D44.cjs.map +0 -1
- package/dist/__chunks/DDWGNNLC.cjs +0 -101
- package/dist/__chunks/DDWGNNLC.cjs.map +0 -1
- package/dist/__chunks/DHXH7ZSG.cjs +0 -130
- package/dist/__chunks/DHXH7ZSG.cjs.map +0 -1
- package/dist/__chunks/E5P6WRJD.cjs +0 -32
- package/dist/__chunks/E5P6WRJD.cjs.map +0 -1
- package/dist/__chunks/F3SUJGZL.cjs +0 -56
- package/dist/__chunks/F3SUJGZL.cjs.map +0 -1
- package/dist/__chunks/FXLAQKAB.cjs +0 -67
- package/dist/__chunks/FXLAQKAB.cjs.map +0 -1
- package/dist/__chunks/FZLDJPVT.cjs +0 -65
- package/dist/__chunks/FZLDJPVT.cjs.map +0 -1
- package/dist/__chunks/GEXK47GR.cjs +0 -42
- package/dist/__chunks/GEXK47GR.cjs.map +0 -1
- package/dist/__chunks/GQUBAKFO.cjs +0 -139
- package/dist/__chunks/GQUBAKFO.cjs.map +0 -1
- package/dist/__chunks/HRTHCEIF.cjs +0 -37
- package/dist/__chunks/HRTHCEIF.cjs.map +0 -1
- package/dist/__chunks/HUIHS6RN.cjs +0 -19
- package/dist/__chunks/HUIHS6RN.cjs.map +0 -1
- package/dist/__chunks/IFPLOCSV.cjs +0 -143
- package/dist/__chunks/IFPLOCSV.cjs.map +0 -1
- package/dist/__chunks/IJHKE2Y3.cjs +0 -144
- package/dist/__chunks/IJHKE2Y3.cjs.map +0 -1
- package/dist/__chunks/IL22HCBF.cjs +0 -9
- package/dist/__chunks/IL22HCBF.cjs.map +0 -1
- package/dist/__chunks/J2QDHB6I.cjs +0 -34
- package/dist/__chunks/J2QDHB6I.cjs.map +0 -1
- package/dist/__chunks/J5XNUGR3.cjs +0 -76
- package/dist/__chunks/J5XNUGR3.cjs.map +0 -1
- package/dist/__chunks/JVGX637E.cjs +0 -26
- package/dist/__chunks/JVGX637E.cjs.map +0 -1
- package/dist/__chunks/K4AUV2VK.cjs +0 -16
- package/dist/__chunks/K4AUV2VK.cjs.map +0 -1
- package/dist/__chunks/KFNK5PLG.cjs +0 -122
- package/dist/__chunks/KFNK5PLG.cjs.map +0 -1
- package/dist/__chunks/LLFHCGRA.cjs +0 -19
- package/dist/__chunks/LLFHCGRA.cjs.map +0 -1
- package/dist/__chunks/MENEINOO.cjs +0 -91
- package/dist/__chunks/MENEINOO.cjs.map +0 -1
- package/dist/__chunks/MF7LLV7V.cjs +0 -9
- package/dist/__chunks/MF7LLV7V.cjs.map +0 -1
- package/dist/__chunks/NOELZTQX.cjs +0 -96
- package/dist/__chunks/NOELZTQX.cjs.map +0 -1
- package/dist/__chunks/O7M2NMNZ.cjs +0 -50
- package/dist/__chunks/O7M2NMNZ.cjs.map +0 -1
- package/dist/__chunks/OKT24L6D.cjs +0 -80
- package/dist/__chunks/OKT24L6D.cjs.map +0 -1
- package/dist/__chunks/PLUVW6AM.cjs +0 -9
- package/dist/__chunks/PLUVW6AM.cjs.map +0 -1
- package/dist/__chunks/PMNFDB6C.cjs +0 -121
- package/dist/__chunks/PMNFDB6C.cjs.map +0 -1
- package/dist/__chunks/QODNNCT2.cjs +0 -236
- package/dist/__chunks/QODNNCT2.cjs.map +0 -1
- package/dist/__chunks/QR3HKPXF.cjs +0 -84
- package/dist/__chunks/QR3HKPXF.cjs.map +0 -1
- package/dist/__chunks/R7BL4JYZ.cjs +0 -83
- package/dist/__chunks/R7BL4JYZ.cjs.map +0 -1
- package/dist/__chunks/RHJARLXB.cjs +0 -160
- package/dist/__chunks/RHJARLXB.cjs.map +0 -1
- package/dist/__chunks/RXQBNEFR.cjs +0 -47
- package/dist/__chunks/RXQBNEFR.cjs.map +0 -1
- package/dist/__chunks/RYUXG4AS.cjs +0 -53
- package/dist/__chunks/RYUXG4AS.cjs.map +0 -1
- package/dist/__chunks/RZSHTFXZ.cjs +0 -289
- package/dist/__chunks/RZSHTFXZ.cjs.map +0 -1
- package/dist/__chunks/TH4TA3JN.cjs +0 -9
- package/dist/__chunks/TH4TA3JN.cjs.map +0 -1
- package/dist/__chunks/THM3NAFO.cjs +0 -76
- package/dist/__chunks/THM3NAFO.cjs.map +0 -1
- package/dist/__chunks/TOAI3Z5M.cjs +0 -75
- package/dist/__chunks/TOAI3Z5M.cjs.map +0 -1
- package/dist/__chunks/UEY7FXLX.cjs +0 -22
- package/dist/__chunks/UEY7FXLX.cjs.map +0 -1
- package/dist/__chunks/UKQIAZA5.cjs +0 -9
- package/dist/__chunks/UKQIAZA5.cjs.map +0 -1
- package/dist/__chunks/VDLYCYDQ.cjs +0 -53
- package/dist/__chunks/VDLYCYDQ.cjs.map +0 -1
- package/dist/__chunks/VVRMCACE.cjs +0 -102
- package/dist/__chunks/VVRMCACE.cjs.map +0 -1
- package/dist/__chunks/WFVGNGEP.cjs +0 -2
- package/dist/__chunks/WFVGNGEP.cjs.map +0 -1
- package/dist/__chunks/WKADTHRK.cjs +0 -40
- package/dist/__chunks/WKADTHRK.cjs.map +0 -1
- package/dist/__chunks/X2SDR4SD.cjs +0 -39
- package/dist/__chunks/X2SDR4SD.cjs.map +0 -1
- package/dist/__chunks/XLUVINJW.cjs +0 -9
- package/dist/__chunks/XLUVINJW.cjs.map +0 -1
- package/dist/__chunks/XUDOYOWH.cjs +0 -117
- package/dist/__chunks/XUDOYOWH.cjs.map +0 -1
- package/dist/colors/allColors.cjs +0 -80
- package/dist/colors/allColors.cjs.map +0 -1
- package/dist/colors/backgroundColor.cjs +0 -11
- package/dist/colors/backgroundColor.cjs.map +0 -1
- package/dist/colors/border.cjs +0 -11
- package/dist/colors/border.cjs.map +0 -1
- package/dist/colors/foregroundColor.cjs +0 -11
- package/dist/colors/foregroundColor.cjs.map +0 -1
- package/dist/colors/textColors.cjs +0 -11
- package/dist/colors/textColors.cjs.map +0 -1
- package/dist/constants.cjs +0 -22
- package/dist/constants.cjs.map +0 -1
- package/dist/index.cjs +0 -166
- package/dist/index.cjs.map +0 -1
- package/dist/react-aria-utils/OverlayVisibility.cjs +0 -9
- package/dist/react-aria-utils/OverlayVisibility.cjs.map +0 -1
- package/dist/react-aria-utils/Triggerable.cjs +0 -10
- package/dist/react-aria-utils/Triggerable.cjs.map +0 -1
- package/dist/react-aria-utils/placement.cjs +0 -9
- package/dist/react-aria-utils/placement.cjs.map +0 -1
- package/dist/react-aria-utils/useDomRefSyntheticEventBridge.cjs +0 -9
- package/dist/react-aria-utils/useDomRefSyntheticEventBridge.cjs.map +0 -1
- package/dist/useFocusVisible.cjs +0 -9
- package/dist/useFocusVisible.cjs.map +0 -1
- package/dist/useIsHydrated.cjs +0 -9
- package/dist/useIsHydrated.cjs.map +0 -1
- /package/dist/__chunks/{WCHW3AYL.js.map → EOWYHIIV.js.map} +0 -0
- /package/dist/__chunks/{XMSJWQLW.js.map → L6DEFAVZ.js.map} +0 -0
- /package/dist/__chunks/{WIKMZ7QF.js.map → RAYMYVIO.js.map} +0 -0
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _K4AUV2VKcjs = require('./K4AUV2VK.cjs');
|
|
5
|
-
|
|
6
|
-
// src/Modal/FocusTrap.tsx
|
|
7
|
-
var _react = require('react');
|
|
8
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
9
|
-
function queryFocusableAll(el) {
|
|
10
|
-
const selector = [
|
|
11
|
-
"a[href]",
|
|
12
|
-
"area[href]",
|
|
13
|
-
"input:not([disabled])",
|
|
14
|
-
"select:not([disabled])",
|
|
15
|
-
"textarea:not([disabled])",
|
|
16
|
-
"button:not([disabled])",
|
|
17
|
-
"iframe",
|
|
18
|
-
"object",
|
|
19
|
-
"embed",
|
|
20
|
-
'[tabindex="-1"]',
|
|
21
|
-
'[tabindex="0"]',
|
|
22
|
-
"[contenteditable]",
|
|
23
|
-
"audio[controls]",
|
|
24
|
-
"video[controls]",
|
|
25
|
-
"summary"
|
|
26
|
-
].join(",");
|
|
27
|
-
return el.querySelectorAll(selector);
|
|
28
|
-
}
|
|
29
|
-
var focusElement = (el) => {
|
|
30
|
-
if (el && typeof el.focus === "function") {
|
|
31
|
-
el.focus();
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
function FocusTrap({
|
|
35
|
-
children
|
|
36
|
-
}) {
|
|
37
|
-
const elRef = _react.useRef.call(void 0, null);
|
|
38
|
-
const previouslyFocusedElRef = _react.useRef.call(void 0, null);
|
|
39
|
-
const isHydrated = _K4AUV2VKcjs.useIsHydrated.call(void 0, );
|
|
40
|
-
_react.useEffect.call(void 0, () => {
|
|
41
|
-
const { current: element } = elRef;
|
|
42
|
-
const focusFirstChild = () => {
|
|
43
|
-
const withinIframe = window !== window.parent;
|
|
44
|
-
if (element && !withinIframe) {
|
|
45
|
-
focusElement(queryFocusableAll(element)[0]);
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
const handleFocus = (event) => {
|
|
49
|
-
if (!element || event.target instanceof Node && element.contains(event.target)) {
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
if (event.target instanceof Element && event.target.closest('[data-testid="syntax-focus-trap"]') !== null) {
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
event.stopPropagation();
|
|
56
|
-
event.preventDefault();
|
|
57
|
-
isHydrated && focusFirstChild();
|
|
58
|
-
};
|
|
59
|
-
previouslyFocusedElRef.current = document.activeElement;
|
|
60
|
-
focusFirstChild();
|
|
61
|
-
document.addEventListener("focus", handleFocus, true);
|
|
62
|
-
return function cleanup() {
|
|
63
|
-
const { current: previouslyFocusedEl } = previouslyFocusedElRef;
|
|
64
|
-
document.removeEventListener("focus", handleFocus, true);
|
|
65
|
-
if (previouslyFocusedEl) {
|
|
66
|
-
focusElement(previouslyFocusedEl);
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
}, [isHydrated, elRef, previouslyFocusedElRef]);
|
|
70
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-testid": "syntax-focus-trap", ref: elRef, children });
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
exports.FocusTrap = FocusTrap;
|
|
76
|
-
//# sourceMappingURL=THM3NAFO.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Modal/FocusTrap.tsx"],"names":[],"mappings":";;;;;;AAAA,SAAgB,WAAW,cAAiC;AA2FxD;AAxFJ,SAAS,kBAAkB,IAA6C;AAEtE,QAAM,WAAW;AAAA,IACf;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,EAAE,KAAK,GAAG;AACV,SAAO,GAAG,iBAAiB,QAAQ;AACrC;AAEA,IAAM,eAAe,CAAC,OAAqB;AACzC,MAAI,MAAM,OAAO,GAAG,UAAU,YAAY;AACxC,OAAG,MAAM;AAAA,EACX;AACF;AAKe,SAAR,UAA2B;AAAA,EAChC;AACF,GAEiB;AACf,QAAM,QAAQ,OAA8B,IAAI;AAChD,QAAM,yBAAyB,OAA2B,IAAI;AAC9D,QAAM,aAAa,cAAc;AAEjC,YAAU,MAAM;AACd,UAAM,EAAE,SAAS,QAAQ,IAAI;AAG7B,UAAM,kBAAkB,MAAM;AAC5B,YAAM,eAAe,WAAW,OAAO;AACvC,UAAI,WAAW,CAAC,cAAc;AAC5B,qBAAa,kBAAkB,OAAO,EAAE,CAAC,CAAC;AAAA,MAC5C;AAAA,IACF;AAEA,UAAM,cAA2C,CAAC,UAAsB;AACtE,UACE,CAAC,WACA,MAAM,kBAAkB,QAAQ,QAAQ,SAAS,MAAM,MAAM,GAC9D;AACA;AAAA,MACF;AAGA,UACE,MAAM,kBAAkB,WACxB,MAAM,OAAO,QAAQ,mCAAmC,MAAM,MAC9D;AACA;AAAA,MACF;AAEA,YAAM,gBAAgB;AACtB,YAAM,eAAe;AACrB,oBAAc,gBAAgB;AAAA,IAChC;AAGA,2BAAuB,UAAU,SAAS;AAC1C,oBAAgB;AAChB,aAAS,iBAAiB,SAAS,aAAa,IAAI;AAEpD,WAAO,SAAS,UAAU;AACxB,YAAM,EAAE,SAAS,oBAAoB,IAAI;AACzC,eAAS,oBAAoB,SAAS,aAAa,IAAI;AAEvD,UAAI,qBAAqB;AACvB,qBAAa,mBAAmB;AAAA,MAClC;AAAA,IACF;AAAA,EACF,GAAG,CAAC,YAAY,OAAO,sBAAsB,CAAC;AAE9C,SACE,oBAAC,SAAI,eAAY,qBAAoB,KAAK,OACvC,UACH;AAEJ","sourcesContent":["import React, { useEffect, useRef, type ReactElement } from \"react\";\nimport useIsHydrated from \"../useIsHydrated\";\n\nfunction queryFocusableAll(el: HTMLDivElement): NodeListOf<HTMLElement> {\n // Focusable, interactive elements that could possibly be in children\n const selector = [\n \"a[href]\",\n \"area[href]\",\n \"input:not([disabled])\",\n \"select:not([disabled])\",\n \"textarea:not([disabled])\",\n \"button:not([disabled])\",\n \"iframe\",\n \"object\",\n \"embed\",\n '[tabindex=\"-1\"]',\n '[tabindex=\"0\"]',\n \"[contenteditable]\",\n \"audio[controls]\",\n \"video[controls]\",\n \"summary\",\n ].join(\",\");\n return el.querySelectorAll(selector);\n}\n\nconst focusElement = (el?: HTMLElement) => {\n if (el && typeof el.focus === \"function\") {\n el.focus();\n }\n};\n\n/**\n * FocusTrap is used by components like Modal to ensure that only elements within children components can be focused.\n */\nexport default function FocusTrap({\n children,\n}: {\n children?: ReactElement | null;\n}): ReactElement {\n const elRef = useRef<HTMLDivElement | null>(null);\n const previouslyFocusedElRef = useRef<HTMLElement | null>(null);\n const isHydrated = useIsHydrated();\n\n useEffect(() => {\n const { current: element } = elRef;\n\n // Focus the first child element among all the focusable, interactive elements within `children`\n const focusFirstChild = () => {\n const withinIframe = window !== window.parent;\n if (element && !withinIframe) {\n focusElement(queryFocusableAll(element)[0]);\n }\n };\n\n const handleFocus: (event: FocusEvent) => void = (event: FocusEvent) => {\n if (\n !element ||\n (event.target instanceof Node && element.contains(event.target))\n ) {\n return;\n }\n\n // This prevents stack overflow when multiple FocusTraps are rendered\n if (\n event.target instanceof Element &&\n event.target.closest('[data-testid=\"syntax-focus-trap\"]') !== null\n ) {\n return;\n }\n\n event.stopPropagation();\n event.preventDefault();\n isHydrated && focusFirstChild();\n };\n\n // If an element has focus currently, keep a reference to that element\n previouslyFocusedElRef.current = document.activeElement as HTMLElement;\n focusFirstChild();\n document.addEventListener(\"focus\", handleFocus, true);\n\n return function cleanup() {\n const { current: previouslyFocusedEl } = previouslyFocusedElRef;\n document.removeEventListener(\"focus\", handleFocus, true);\n // If we previously stored a reference to a focused element, return focus to that element\n if (previouslyFocusedEl) {\n focusElement(previouslyFocusedEl);\n }\n };\n }, [isHydrated, elRef, previouslyFocusedElRef]);\n\n return (\n <div data-testid=\"syntax-focus-trap\" ref={elRef}>\n {children}\n </div>\n );\n}\n"]}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }"use client"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _7DGFMDT7cjs = require('./7DGFMDT7.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _DDWGNNLCcjs = require('./DDWGNNLC.cjs');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _QODNNCT2cjs = require('./QODNNCT2.cjs');
|
|
11
|
-
|
|
12
|
-
// src/TabLink/TabLink.tsx
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var _react = require('react');
|
|
16
|
-
var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames);
|
|
17
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
18
|
-
var TabLink = _react.forwardRef.call(void 0,
|
|
19
|
-
({
|
|
20
|
-
text,
|
|
21
|
-
href,
|
|
22
|
-
target,
|
|
23
|
-
rel,
|
|
24
|
-
"data-testid": dataTestId,
|
|
25
|
-
on = "lightBackground",
|
|
26
|
-
onClick,
|
|
27
|
-
selected,
|
|
28
|
-
endContent,
|
|
29
|
-
itemCount
|
|
30
|
-
}, ref) => {
|
|
31
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32
|
-
"div",
|
|
33
|
-
{
|
|
34
|
-
role: "tab",
|
|
35
|
-
className: _classnames2.default.call(void 0, _7DGFMDT7cjs.Tabs_module_default.tab, {
|
|
36
|
-
[_7DGFMDT7cjs.Tabs_module_default.unselectedTab]: !selected,
|
|
37
|
-
[_7DGFMDT7cjs.Tabs_module_default.selectedTabOnLightBackground]: selected && on === "lightBackground",
|
|
38
|
-
[_7DGFMDT7cjs.Tabs_module_default.selectedTabOnDarkBackground]: selected && on === "darkBackground"
|
|
39
|
-
}),
|
|
40
|
-
style: {
|
|
41
|
-
height: "100%"
|
|
42
|
-
},
|
|
43
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _QODNNCT2cjs.Box_default, { display: "flex", alignItems: "center", height: "100%", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44
|
-
"a",
|
|
45
|
-
{
|
|
46
|
-
href,
|
|
47
|
-
"data-testid": dataTestId,
|
|
48
|
-
target,
|
|
49
|
-
ref,
|
|
50
|
-
rel,
|
|
51
|
-
onClick,
|
|
52
|
-
className: _7DGFMDT7cjs.Tabs_module_default.link,
|
|
53
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
54
|
-
_DDWGNNLCcjs.TabInternal,
|
|
55
|
-
{
|
|
56
|
-
text,
|
|
57
|
-
selected,
|
|
58
|
-
endContent,
|
|
59
|
-
itemCount,
|
|
60
|
-
on
|
|
61
|
-
}
|
|
62
|
-
)
|
|
63
|
-
}
|
|
64
|
-
) })
|
|
65
|
-
}
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
);
|
|
69
|
-
TabLink.displayName = "TabLink";
|
|
70
|
-
var TabLink_default = TabLink;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
exports.TabLink_default = TabLink_default;
|
|
75
|
-
//# sourceMappingURL=TOAI3Z5M.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/TabLink/TabLink.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;AAAA,EACE;AAAA,OAGK;AAEP,OAAO,gBAAgB;AAsEX;AAxCZ,IAAM,UAAU;AAAA,EACd,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,eAAe;AAAA,IACf,KAAK;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,GACA,QACG;AACH,WACE;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,WAAW,WAAW,oBAAO,KAAK;AAAA,UAChC,CAAC,oBAAO,aAAa,GAAG,CAAC;AAAA,UACzB,CAAC,oBAAO,4BAA4B,GAClC,YAAY,OAAO;AAAA,UACrB,CAAC,oBAAO,2BAA2B,GACjC,YAAY,OAAO;AAAA,QACvB,CAAC;AAAA,QACD,OAAO;AAAA,UACL,QAAQ;AAAA,QACV;AAAA,QAEA,8BAAC,eAAI,SAAQ,QAAO,YAAW,UAAS,QAAO,QAC7C;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA,eAAa;AAAA,YACb;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA,WAAW,oBAAO;AAAA,YAElB;AAAA,cAAC;AAAA;AAAA,gBACC;AAAA,gBACA;AAAA,gBACA;AAAA,gBACA;AAAA,gBACA;AAAA;AAAA,YACF;AAAA;AAAA,QACF,GACF;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,QAAQ,cAAc;AAEtB,IAAO,kBAAQ","sourcesContent":["import {\n forwardRef,\n type HtmlHTMLAttributes,\n type ComponentProps,\n} from \"react\";\nimport TabInternal from \"../Tabs/TabInternal\";\nimport classnames from \"classnames\";\nimport styles from \"../Tabs/Tabs.module.css\";\nimport Box from \"../Box/Box\";\n\ntype TabLinkProps = ComponentProps<typeof TabInternal> & {\n /**\n * Test id for the button\n */\n \"data-testid\"?: string;\n /**\n * The link that the Tab should route to.\n *\n */\n href?: string;\n /**\n * The target attribute specifies where to open the linked document.\n *\n */\n target?: \"_blank\" | \"_self\" | \"_parent\" | \"_top\";\n /**\n * The rel attribute specifies the relationship between the document and the link.\n *\n */\n rel?: HtmlHTMLAttributes<HTMLAnchorElement>[\"rel\"];\n /**\n * An optional onClick event. This is used for certain wrapper's support (such as react-router-dom).\n */\n onClick?: React.MouseEventHandler<HTMLAnchorElement>;\n};\n\nconst TabLink = forwardRef<HTMLAnchorElement, TabLinkProps>(\n (\n {\n text,\n href,\n target,\n rel,\n \"data-testid\": dataTestId,\n on = \"lightBackground\",\n onClick,\n selected,\n endContent,\n itemCount,\n }: TabLinkProps,\n ref,\n ) => {\n return (\n <div\n role=\"tab\"\n className={classnames(styles.tab, {\n [styles.unselectedTab]: !selected,\n [styles.selectedTabOnLightBackground]:\n selected && on === \"lightBackground\",\n [styles.selectedTabOnDarkBackground]:\n selected && on === \"darkBackground\",\n })}\n style={{\n height: \"100%\",\n }}\n >\n <Box display=\"flex\" alignItems=\"center\" height=\"100%\">\n <a\n href={href}\n data-testid={dataTestId}\n target={target}\n ref={ref}\n rel={rel}\n onClick={onClick}\n className={styles.link}\n >\n <TabInternal\n text={text}\n selected={selected}\n endContent={endContent}\n itemCount={itemCount}\n on={on}\n />\n </a>\n </Box>\n </div>\n );\n },\n);\n\nTabLink.displayName = \"TabLink\";\n\nexport default TabLink;\n"]}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
|
-
|
|
3
|
-
// css-module:../Button.module.css#css-module
|
|
4
|
-
var Button_module_default = { "button": "_button_v2jgj_1", "buttonGap": "_buttonGap_v2jgj_8", "disabled": "_disabled_v2jgj_42", "disabledPrimary": "_disabledPrimary_v2jgj_57", "fullWidth": "_fullWidth_v2jgj_61", "sm": "_sm_v2jgj_65", "md": "_md_v2jgj_72", "lg": "_lg_v2jgj_79", "icon": "_icon_v2jgj_86", "smIcon": "_smIcon_v2jgj_90", "mdIcon": "_mdIcon_v2jgj_97", "lgIcon": "_lgIcon_v2jgj_104", "loading": "_loading_v2jgj_121", "syntaxButtonLoadingRotate": "_syntaxButtonLoadingRotate_v2jgj_1", "loadingCircle": "_loadingCircle_v2jgj_125" };
|
|
5
|
-
|
|
6
|
-
// src/Button/constants/iconSize.ts
|
|
7
|
-
var materialIconSize = {
|
|
8
|
-
sm: Button_module_default.smIcon,
|
|
9
|
-
md: Button_module_default.mdIcon,
|
|
10
|
-
lg: Button_module_default.lgIcon
|
|
11
|
-
};
|
|
12
|
-
var internalIconSize = {
|
|
13
|
-
sm: 100,
|
|
14
|
-
md: 300,
|
|
15
|
-
lg: 400
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
exports.materialIconSize = materialIconSize; exports.internalIconSize = internalIconSize;
|
|
22
|
-
//# sourceMappingURL=UEY7FXLX.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["css-module:../Button.module.css#css-module","../../src/Button/constants/iconSize.ts"],"names":[],"mappings":";;;AAA4F,IAAO,wBAAQ,EAAC,UAAS,mBAAkB,aAAY,sBAAqB,YAAW,sBAAqB,mBAAkB,6BAA4B,aAAY,uBAAsB,MAAK,gBAAe,MAAK,gBAAe,MAAK,gBAAe,QAAO,kBAAiB,UAAS,oBAAmB,UAAS,oBAAmB,UAAS,qBAAoB,WAAU,sBAAqB,6BAA4B,sCAAqC,iBAAgB,2BAA0B;;;ACEpkB,IAAM,mBAAmB;AAAA,EAC9B,IAAI,sBAAO;AAAA,EACX,IAAI,sBAAO;AAAA,EACX,IAAI,sBAAO;AACb;AAEO,IAAM,mBAAmB;AAAA,EAC9B,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN","sourcesContent":["import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Button/Button.module.css\"; export default {\"button\":\"_button_v2jgj_1\",\"buttonGap\":\"_buttonGap_v2jgj_8\",\"disabled\":\"_disabled_v2jgj_42\",\"disabledPrimary\":\"_disabledPrimary_v2jgj_57\",\"fullWidth\":\"_fullWidth_v2jgj_61\",\"sm\":\"_sm_v2jgj_65\",\"md\":\"_md_v2jgj_72\",\"lg\":\"_lg_v2jgj_79\",\"icon\":\"_icon_v2jgj_86\",\"smIcon\":\"_smIcon_v2jgj_90\",\"mdIcon\":\"_mdIcon_v2jgj_97\",\"lgIcon\":\"_lgIcon_v2jgj_104\",\"loading\":\"_loading_v2jgj_121\",\"syntaxButtonLoadingRotate\":\"_syntaxButtonLoadingRotate_v2jgj_1\",\"loadingCircle\":\"_loadingCircle_v2jgj_125\"}","import styles from \"../Button.module.css\";\n\nexport const materialIconSize = {\n sm: styles.smIcon,\n md: styles.mdIcon,\n lg: styles.lgIcon,\n};\n\nexport const internalIconSize = {\n sm: 100,\n md: 300,\n lg: 400,\n} as const;\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
|
-
|
|
3
|
-
// css-module:./colors.module.css#css-module
|
|
4
|
-
var colors_module_default = { "inheritColor": "_inheritColor_15hp2_2", "destructive700Color": "_destructive700Color_15hp2_6", "gray700Color": "_gray700Color_15hp2_10", "gray900Color": "_gray900Color_15hp2_14", "primary700Color": "_primary700Color_15hp2_18", "success700Color": "_success700Color_15hp2_22", "whiteColor": "_whiteColor_15hp2_26", "blackColor": "_blackColor_15hp2_30", "destructive100Color": "_destructive100Color_15hp2_34", "destructive200Color": "_destructive200Color_15hp2_38", "destructive300Color": "_destructive300Color_15hp2_42", "destructive800Color": "_destructive800Color_15hp2_46", "destructive900Color": "_destructive900Color_15hp2_50", "gray10Color": "_gray10Color_15hp2_54", "gray30Color": "_gray30Color_15hp2_58", "gray60Color": "_gray60Color_15hp2_62", "gray80Color": "_gray80Color_15hp2_66", "gray100Color": "_gray100Color_15hp2_70", "gray200Color": "_gray200Color_15hp2_74", "gray300Color": "_gray300Color_15hp2_78", "gray800Color": "_gray800Color_15hp2_82", "orange100Color": "_orange100Color_15hp2_86", "orange200Color": "_orange200Color_15hp2_90", "orange300Color": "_orange300Color_15hp2_94", "orange700Color": "_orange700Color_15hp2_98", "orange800Color": "_orange800Color_15hp2_102", "orange900Color": "_orange900Color_15hp2_106", "primary100Color": "_primary100Color_15hp2_110", "primary200Color": "_primary200Color_15hp2_114", "primary300Color": "_primary300Color_15hp2_118", "primary800Color": "_primary800Color_15hp2_122", "primary900Color": "_primary900Color_15hp2_126", "success100Color": "_success100Color_15hp2_130", "success200Color": "_success200Color_15hp2_134", "success300Color": "_success300Color_15hp2_138", "success800Color": "_success800Color_15hp2_142", "success900Color": "_success900Color_15hp2_146", "purple100Color": "_purple100Color_15hp2_150", "purple200Color": "_purple200Color_15hp2_154", "purple300Color": "_purple300Color_15hp2_158", "purple700Color": "_purple700Color_15hp2_162", "purple800Color": "_purple800Color_15hp2_166", "purple900Color": "_purple900Color_15hp2_170", "yellow100Color": "_yellow100Color_15hp2_174", "yellow200Color": "_yellow200Color_15hp2_178", "yellow300Color": "_yellow300Color_15hp2_182", "yellow700Color": "_yellow700Color_15hp2_186", "yellow800Color": "_yellow800Color_15hp2_190", "yellow900Color": "_yellow900Color_15hp2_194", "noBorder": "_noBorder_15hp2_199", "blackBorderColor": "_blackBorderColor_15hp2_203", "whiteBorderColor": "_whiteBorderColor_15hp2_207", "success770BorderColor": "_success770BorderColor_15hp2_211", "destructive770BorderColor": "_destructive770BorderColor_15hp2_215", "gray370BorderColor": "_gray370BorderColor_15hp2_219", "success370BorderColor": "_success370BorderColor_15hp2_223", "destructive370BorderColor": "_destructive370BorderColor_15hp2_227", "cambioGray870BorderColor": "_cambioGray870BorderColor_15hp2_231", "blackBackgroundColor": "_blackBackgroundColor_15hp2_237", "destructive100BackgroundColor": "_destructive100BackgroundColor_15hp2_241", "destructive200BackgroundColor": "_destructive200BackgroundColor_15hp2_245", "destructive300BackgroundColor": "_destructive300BackgroundColor_15hp2_249", "destructive700BackgroundColor": "_destructive700BackgroundColor_15hp2_253", "destructive800BackgroundColor": "_destructive800BackgroundColor_15hp2_257", "destructive900BackgroundColor": "_destructive900BackgroundColor_15hp2_261", "gray10BackgroundColor": "_gray10BackgroundColor_15hp2_265", "gray30BackgroundColor": "_gray30BackgroundColor_15hp2_269", "gray60BackgroundColor": "_gray60BackgroundColor_15hp2_273", "gray80BackgroundColor": "_gray80BackgroundColor_15hp2_277", "gray100BackgroundColor": "_gray100BackgroundColor_15hp2_281", "gray200BackgroundColor": "_gray200BackgroundColor_15hp2_285", "gray300BackgroundColor": "_gray300BackgroundColor_15hp2_289", "gray700BackgroundColor": "_gray700BackgroundColor_15hp2_293", "gray800BackgroundColor": "_gray800BackgroundColor_15hp2_297", "gray900BackgroundColor": "_gray900BackgroundColor_15hp2_301", "orange100BackgroundColor": "_orange100BackgroundColor_15hp2_305", "orange200BackgroundColor": "_orange200BackgroundColor_15hp2_309", "orange300BackgroundColor": "_orange300BackgroundColor_15hp2_313", "orange700BackgroundColor": "_orange700BackgroundColor_15hp2_317", "orange800BackgroundColor": "_orange800BackgroundColor_15hp2_321", "orange900BackgroundColor": "_orange900BackgroundColor_15hp2_325", "primary100BackgroundColor": "_primary100BackgroundColor_15hp2_329", "primary200BackgroundColor": "_primary200BackgroundColor_15hp2_333", "primary300BackgroundColor": "_primary300BackgroundColor_15hp2_337", "primary700BackgroundColor": "_primary700BackgroundColor_15hp2_341", "primary800BackgroundColor": "_primary800BackgroundColor_15hp2_345", "primary900BackgroundColor": "_primary900BackgroundColor_15hp2_349", "success100BackgroundColor": "_success100BackgroundColor_15hp2_353", "success200BackgroundColor": "_success200BackgroundColor_15hp2_357", "success300BackgroundColor": "_success300BackgroundColor_15hp2_361", "success700BackgroundColor": "_success700BackgroundColor_15hp2_365", "success800BackgroundColor": "_success800BackgroundColor_15hp2_369", "success900BackgroundColor": "_success900BackgroundColor_15hp2_373", "purple100BackgroundColor": "_purple100BackgroundColor_15hp2_377", "purple200BackgroundColor": "_purple200BackgroundColor_15hp2_381", "purple300BackgroundColor": "_purple300BackgroundColor_15hp2_385", "purple700BackgroundColor": "_purple700BackgroundColor_15hp2_389", "purple800BackgroundColor": "_purple800BackgroundColor_15hp2_393", "purple900BackgroundColor": "_purple900BackgroundColor_15hp2_397", "whiteBackgroundColor": "_whiteBackgroundColor_15hp2_401", "yellow100BackgroundColor": "_yellow100BackgroundColor_15hp2_405", "yellow200BackgroundColor": "_yellow200BackgroundColor_15hp2_409", "yellow300BackgroundColor": "_yellow300BackgroundColor_15hp2_413", "yellow700BackgroundColor": "_yellow700BackgroundColor_15hp2_417", "yellow800BackgroundColor": "_yellow800BackgroundColor_15hp2_421", "yellow900BackgroundColor": "_yellow900BackgroundColor_15hp2_425", "cambioBlackColor": "_cambioBlackColor_15hp2_430", "cambioWhiteColor": "_cambioWhiteColor_15hp2_434", "cambioWhite40Color": "_cambioWhite40Color_15hp2_438", "cambioWhite70Color": "_cambioWhite70Color_15hp2_442", "cambioGray100Color": "_cambioGray100Color_15hp2_446", "cambioGray200Color": "_cambioGray200Color_15hp2_450", "cambioGray300Color": "_cambioGray300Color_15hp2_454", "cambioGray370Color": "_cambioGray370Color_15hp2_458", "cambioGray700Color": "_cambioGray700Color_15hp2_462", "cambioGray800Color": "_cambioGray800Color_15hp2_466", "cambioGray870Color": "_cambioGray870Color_15hp2_470", "cambioGray900Color": "_cambioGray900Color_15hp2_474", "cambioDestructive100Color": "_cambioDestructive100Color_15hp2_478", "cambioDestructive300Color": "_cambioDestructive300Color_15hp2_482", "cambioDestructive370Color": "_cambioDestructive370Color_15hp2_486", "cambioDestructive700Color": "_cambioDestructive700Color_15hp2_490", "cambioDestructive770Color": "_cambioDestructive770Color_15hp2_494", "cambioDestructive900Color": "_cambioDestructive900Color_15hp2_498", "cambioSuccess100Color": "_cambioSuccess100Color_15hp2_502", "cambioSuccess300Color": "_cambioSuccess300Color_15hp2_506", "cambioSuccess370Color": "_cambioSuccess370Color_15hp2_510", "cambioSuccess700Color": "_cambioSuccess700Color_15hp2_514", "cambioSuccess770Color": "_cambioSuccess770Color_15hp2_518", "cambioSuccess900Color": "_cambioSuccess900Color_15hp2_522", "cambioRedColor": "_cambioRedColor_15hp2_526", "cambioOrangeColor": "_cambioOrangeColor_15hp2_530", "cambioTanColor": "_cambioTanColor_15hp2_534", "cambioCreamColor": "_cambioCreamColor_15hp2_538", "cambioPurpleColor": "_cambioPurpleColor_15hp2_542", "cambioLilacColor": "_cambioLilacColor_15hp2_546", "cambioThistleColor": "_cambioThistleColor_15hp2_550", "cambioPinkColor": "_cambioPinkColor_15hp2_554", "cambioNavyColor": "_cambioNavyColor_15hp2_558", "cambioTealColor": "_cambioTealColor_15hp2_562", "cambioSlateColor": "_cambioSlateColor_15hp2_566", "cambioSkyColor": "_cambioSkyColor_15hp2_570", "cambioYellow700Color": "_cambioYellow700Color_15hp2_574", "gray370Color": "_gray370Color_15hp2_578", "gray870Color": "_gray870Color_15hp2_582", "redColor": "_redColor_15hp2_586", "orangeColor": "_orangeColor_15hp2_590", "tanColor": "_tanColor_15hp2_594", "creamColor": "_creamColor_15hp2_598", "purpleColor": "_purpleColor_15hp2_602", "lilacColor": "_lilacColor_15hp2_606", "thistleColor": "_thistleColor_15hp2_610", "pinkColor": "_pinkColor_15hp2_614", "navyColor": "_navyColor_15hp2_618", "tealColor": "_tealColor_15hp2_622", "slateColor": "_slateColor_15hp2_626", "skyColor": "_skyColor_15hp2_630", "cambioTransparentFullBackgroundColor": "_cambioTransparentFullBackgroundColor_15hp2_634", "cambioBlackBackgroundColor": "_cambioBlackBackgroundColor_15hp2_638", "cambioWhiteBackgroundColor": "_cambioWhiteBackgroundColor_15hp2_642", "cambioWhite40BackgroundColor": "_cambioWhite40BackgroundColor_15hp2_646", "cambioWhite70BackgroundColor": "_cambioWhite70BackgroundColor_15hp2_650", "cambioGray100BackgroundColor": "_cambioGray100BackgroundColor_15hp2_654", "cambioGray200BackgroundColor": "_cambioGray200BackgroundColor_15hp2_658", "cambioGray300BackgroundColor": "_cambioGray300BackgroundColor_15hp2_662", "gray370BackgroundColor": "_gray370BackgroundColor_15hp2_666", "cambioGray370BackgroundColor": "_cambioGray370BackgroundColor_15hp2_670", "cambioGray700BackgroundColor": "_cambioGray700BackgroundColor_15hp2_674", "cambioGray800BackgroundColor": "_cambioGray800BackgroundColor_15hp2_678", "gray870BackgroundColor": "_gray870BackgroundColor_15hp2_682", "cambioGray870BackgroundColor": "_cambioGray870BackgroundColor_15hp2_686", "cambioGray900BackgroundColor": "_cambioGray900BackgroundColor_15hp2_690", "cambioDestructive100BackgroundColor": "_cambioDestructive100BackgroundColor_15hp2_694", "cambioDestructive300BackgroundColor": "_cambioDestructive300BackgroundColor_15hp2_698", "cambioDestructive370BackgroundColor": "_cambioDestructive370BackgroundColor_15hp2_702", "cambioDestructive700BackgroundColor": "_cambioDestructive700BackgroundColor_15hp2_706", "cambioDestructive770BackgroundColor": "_cambioDestructive770BackgroundColor_15hp2_710", "cambioDestructive900BackgroundColor": "_cambioDestructive900BackgroundColor_15hp2_714", "cambioSuccess100BackgroundColor": "_cambioSuccess100BackgroundColor_15hp2_718", "cambioSuccess300BackgroundColor": "_cambioSuccess300BackgroundColor_15hp2_722", "cambioSuccess370BackgroundColor": "_cambioSuccess370BackgroundColor_15hp2_726", "cambioSuccess700BackgroundColor": "_cambioSuccess700BackgroundColor_15hp2_730", "cambioSuccess770BackgroundColor": "_cambioSuccess770BackgroundColor_15hp2_734", "cambioSuccess900BackgroundColor": "_cambioSuccess900BackgroundColor_15hp2_738", "redBackgroundColor": "_redBackgroundColor_15hp2_742", "cambioRedBackgroundColor": "_cambioRedBackgroundColor_15hp2_746", "orangeBackgroundColor": "_orangeBackgroundColor_15hp2_750", "cambioOrangeBackgroundColor": "_cambioOrangeBackgroundColor_15hp2_754", "tanBackgroundColor": "_tanBackgroundColor_15hp2_758", "cambioTanBackgroundColor": "_cambioTanBackgroundColor_15hp2_762", "creamBackgroundColor": "_creamBackgroundColor_15hp2_766", "cambioCreamBackgroundColor": "_cambioCreamBackgroundColor_15hp2_770", "purpleBackgroundColor": "_purpleBackgroundColor_15hp2_774", "cambioPurpleBackgroundColor": "_cambioPurpleBackgroundColor_15hp2_778", "lilacBackgroundColor": "_lilacBackgroundColor_15hp2_782", "cambioLilacBackgroundColor": "_cambioLilacBackgroundColor_15hp2_786", "thistleBackgroundColor": "_thistleBackgroundColor_15hp2_790", "cambioThistleBackgroundColor": "_cambioThistleBackgroundColor_15hp2_794", "pinkBackgroundColor": "_pinkBackgroundColor_15hp2_798", "cambioPinkBackgroundColor": "_cambioPinkBackgroundColor_15hp2_802", "navyBackgroundColor": "_navyBackgroundColor_15hp2_806", "cambioNavyBackgroundColor": "_cambioNavyBackgroundColor_15hp2_810", "tealBackgroundColor": "_tealBackgroundColor_15hp2_814", "cambioTealBackgroundColor": "_cambioTealBackgroundColor_15hp2_818", "slateBackgroundColor": "_slateBackgroundColor_15hp2_822", "cambioSlateBackgroundColor": "_cambioSlateBackgroundColor_15hp2_826", "skyBackgroundColor": "_skyBackgroundColor_15hp2_830", "cambioSkyBackgroundColor": "_cambioSkyBackgroundColor_15hp2_834", "cambioYellow700BackgroundColor": "_cambioYellow700BackgroundColor_15hp2_838" };
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
exports.colors_module_default = colors_module_default;
|
|
9
|
-
//# sourceMappingURL=UKQIAZA5.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["css-module:./colors.module.css#css-module"],"names":[],"mappings":";;;AAA4F,IAAO,wBAAQ,EAAC,gBAAe,yBAAwB,uBAAsB,gCAA+B,gBAAe,0BAAyB,gBAAe,0BAAyB,mBAAkB,6BAA4B,mBAAkB,6BAA4B,cAAa,wBAAuB,cAAa,wBAAuB,uBAAsB,iCAAgC,uBAAsB,iCAAgC,uBAAsB,iCAAgC,uBAAsB,iCAAgC,uBAAsB,iCAAgC,eAAc,yBAAwB,eAAc,yBAAwB,eAAc,yBAAwB,eAAc,yBAAwB,gBAAe,0BAAyB,gBAAe,0BAAyB,gBAAe,0BAAyB,gBAAe,0BAAyB,kBAAiB,4BAA2B,kBAAiB,4BAA2B,kBAAiB,4BAA2B,kBAAiB,4BAA2B,kBAAiB,6BAA4B,kBAAiB,6BAA4B,mBAAkB,8BAA6B,mBAAkB,8BAA6B,mBAAkB,8BAA6B,mBAAkB,8BAA6B,mBAAkB,8BAA6B,mBAAkB,8BAA6B,mBAAkB,8BAA6B,mBAAkB,8BAA6B,mBAAkB,8BAA6B,mBAAkB,8BAA6B,kBAAiB,6BAA4B,kBAAiB,6BAA4B,kBAAiB,6BAA4B,kBAAiB,6BAA4B,kBAAiB,6BAA4B,kBAAiB,6BAA4B,kBAAiB,6BAA4B,kBAAiB,6BAA4B,kBAAiB,6BAA4B,kBAAiB,6BAA4B,kBAAiB,6BAA4B,kBAAiB,6BAA4B,YAAW,uBAAsB,oBAAmB,+BAA8B,oBAAmB,+BAA8B,yBAAwB,oCAAmC,6BAA4B,wCAAuC,sBAAqB,iCAAgC,yBAAwB,oCAAmC,6BAA4B,wCAAuC,4BAA2B,uCAAsC,wBAAuB,mCAAkC,iCAAgC,4CAA2C,iCAAgC,4CAA2C,iCAAgC,4CAA2C,iCAAgC,4CAA2C,iCAAgC,4CAA2C,iCAAgC,4CAA2C,yBAAwB,oCAAmC,yBAAwB,oCAAmC,yBAAwB,oCAAmC,yBAAwB,oCAAmC,0BAAyB,qCAAoC,0BAAyB,qCAAoC,0BAAyB,qCAAoC,0BAAyB,qCAAoC,0BAAyB,qCAAoC,0BAAyB,qCAAoC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,wBAAuB,mCAAkC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,4BAA2B,uCAAsC,oBAAmB,+BAA8B,oBAAmB,+BAA8B,sBAAqB,iCAAgC,sBAAqB,iCAAgC,sBAAqB,iCAAgC,sBAAqB,iCAAgC,sBAAqB,iCAAgC,sBAAqB,iCAAgC,sBAAqB,iCAAgC,sBAAqB,iCAAgC,sBAAqB,iCAAgC,sBAAqB,iCAAgC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,6BAA4B,wCAAuC,yBAAwB,oCAAmC,yBAAwB,oCAAmC,yBAAwB,oCAAmC,yBAAwB,oCAAmC,yBAAwB,oCAAmC,yBAAwB,oCAAmC,kBAAiB,6BAA4B,qBAAoB,gCAA+B,kBAAiB,6BAA4B,oBAAmB,+BAA8B,qBAAoB,gCAA+B,oBAAmB,+BAA8B,sBAAqB,iCAAgC,mBAAkB,8BAA6B,mBAAkB,8BAA6B,mBAAkB,8BAA6B,oBAAmB,+BAA8B,kBAAiB,6BAA4B,wBAAuB,mCAAkC,gBAAe,2BAA0B,gBAAe,2BAA0B,YAAW,uBAAsB,eAAc,0BAAyB,YAAW,uBAAsB,cAAa,yBAAwB,eAAc,0BAAyB,cAAa,yBAAwB,gBAAe,2BAA0B,aAAY,wBAAuB,aAAY,wBAAuB,aAAY,wBAAuB,cAAa,yBAAwB,YAAW,uBAAsB,wCAAuC,mDAAkD,8BAA6B,yCAAwC,8BAA6B,yCAAwC,gCAA+B,2CAA0C,gCAA+B,2CAA0C,gCAA+B,2CAA0C,gCAA+B,2CAA0C,gCAA+B,2CAA0C,0BAAyB,qCAAoC,gCAA+B,2CAA0C,gCAA+B,2CAA0C,gCAA+B,2CAA0C,0BAAyB,qCAAoC,gCAA+B,2CAA0C,gCAA+B,2CAA0C,uCAAsC,kDAAiD,uCAAsC,kDAAiD,uCAAsC,kDAAiD,uCAAsC,kDAAiD,uCAAsC,kDAAiD,uCAAsC,kDAAiD,mCAAkC,8CAA6C,mCAAkC,8CAA6C,mCAAkC,8CAA6C,mCAAkC,8CAA6C,mCAAkC,8CAA6C,mCAAkC,8CAA6C,sBAAqB,iCAAgC,4BAA2B,uCAAsC,yBAAwB,oCAAmC,+BAA8B,0CAAyC,sBAAqB,iCAAgC,4BAA2B,uCAAsC,wBAAuB,mCAAkC,8BAA6B,yCAAwC,yBAAwB,oCAAmC,+BAA8B,0CAAyC,wBAAuB,mCAAkC,8BAA6B,yCAAwC,0BAAyB,qCAAoC,gCAA+B,2CAA0C,uBAAsB,kCAAiC,6BAA4B,wCAAuC,uBAAsB,kCAAiC,6BAA4B,wCAAuC,uBAAsB,kCAAiC,6BAA4B,wCAAuC,wBAAuB,mCAAkC,8BAA6B,yCAAwC,sBAAqB,iCAAgC,4BAA2B,uCAAsC,kCAAiC,4CAA2C","sourcesContent":["import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/colors/colors.module.css\"; export default {\"inheritColor\":\"_inheritColor_15hp2_2\",\"destructive700Color\":\"_destructive700Color_15hp2_6\",\"gray700Color\":\"_gray700Color_15hp2_10\",\"gray900Color\":\"_gray900Color_15hp2_14\",\"primary700Color\":\"_primary700Color_15hp2_18\",\"success700Color\":\"_success700Color_15hp2_22\",\"whiteColor\":\"_whiteColor_15hp2_26\",\"blackColor\":\"_blackColor_15hp2_30\",\"destructive100Color\":\"_destructive100Color_15hp2_34\",\"destructive200Color\":\"_destructive200Color_15hp2_38\",\"destructive300Color\":\"_destructive300Color_15hp2_42\",\"destructive800Color\":\"_destructive800Color_15hp2_46\",\"destructive900Color\":\"_destructive900Color_15hp2_50\",\"gray10Color\":\"_gray10Color_15hp2_54\",\"gray30Color\":\"_gray30Color_15hp2_58\",\"gray60Color\":\"_gray60Color_15hp2_62\",\"gray80Color\":\"_gray80Color_15hp2_66\",\"gray100Color\":\"_gray100Color_15hp2_70\",\"gray200Color\":\"_gray200Color_15hp2_74\",\"gray300Color\":\"_gray300Color_15hp2_78\",\"gray800Color\":\"_gray800Color_15hp2_82\",\"orange100Color\":\"_orange100Color_15hp2_86\",\"orange200Color\":\"_orange200Color_15hp2_90\",\"orange300Color\":\"_orange300Color_15hp2_94\",\"orange700Color\":\"_orange700Color_15hp2_98\",\"orange800Color\":\"_orange800Color_15hp2_102\",\"orange900Color\":\"_orange900Color_15hp2_106\",\"primary100Color\":\"_primary100Color_15hp2_110\",\"primary200Color\":\"_primary200Color_15hp2_114\",\"primary300Color\":\"_primary300Color_15hp2_118\",\"primary800Color\":\"_primary800Color_15hp2_122\",\"primary900Color\":\"_primary900Color_15hp2_126\",\"success100Color\":\"_success100Color_15hp2_130\",\"success200Color\":\"_success200Color_15hp2_134\",\"success300Color\":\"_success300Color_15hp2_138\",\"success800Color\":\"_success800Color_15hp2_142\",\"success900Color\":\"_success900Color_15hp2_146\",\"purple100Color\":\"_purple100Color_15hp2_150\",\"purple200Color\":\"_purple200Color_15hp2_154\",\"purple300Color\":\"_purple300Color_15hp2_158\",\"purple700Color\":\"_purple700Color_15hp2_162\",\"purple800Color\":\"_purple800Color_15hp2_166\",\"purple900Color\":\"_purple900Color_15hp2_170\",\"yellow100Color\":\"_yellow100Color_15hp2_174\",\"yellow200Color\":\"_yellow200Color_15hp2_178\",\"yellow300Color\":\"_yellow300Color_15hp2_182\",\"yellow700Color\":\"_yellow700Color_15hp2_186\",\"yellow800Color\":\"_yellow800Color_15hp2_190\",\"yellow900Color\":\"_yellow900Color_15hp2_194\",\"noBorder\":\"_noBorder_15hp2_199\",\"blackBorderColor\":\"_blackBorderColor_15hp2_203\",\"whiteBorderColor\":\"_whiteBorderColor_15hp2_207\",\"success770BorderColor\":\"_success770BorderColor_15hp2_211\",\"destructive770BorderColor\":\"_destructive770BorderColor_15hp2_215\",\"gray370BorderColor\":\"_gray370BorderColor_15hp2_219\",\"success370BorderColor\":\"_success370BorderColor_15hp2_223\",\"destructive370BorderColor\":\"_destructive370BorderColor_15hp2_227\",\"cambioGray870BorderColor\":\"_cambioGray870BorderColor_15hp2_231\",\"blackBackgroundColor\":\"_blackBackgroundColor_15hp2_237\",\"destructive100BackgroundColor\":\"_destructive100BackgroundColor_15hp2_241\",\"destructive200BackgroundColor\":\"_destructive200BackgroundColor_15hp2_245\",\"destructive300BackgroundColor\":\"_destructive300BackgroundColor_15hp2_249\",\"destructive700BackgroundColor\":\"_destructive700BackgroundColor_15hp2_253\",\"destructive800BackgroundColor\":\"_destructive800BackgroundColor_15hp2_257\",\"destructive900BackgroundColor\":\"_destructive900BackgroundColor_15hp2_261\",\"gray10BackgroundColor\":\"_gray10BackgroundColor_15hp2_265\",\"gray30BackgroundColor\":\"_gray30BackgroundColor_15hp2_269\",\"gray60BackgroundColor\":\"_gray60BackgroundColor_15hp2_273\",\"gray80BackgroundColor\":\"_gray80BackgroundColor_15hp2_277\",\"gray100BackgroundColor\":\"_gray100BackgroundColor_15hp2_281\",\"gray200BackgroundColor\":\"_gray200BackgroundColor_15hp2_285\",\"gray300BackgroundColor\":\"_gray300BackgroundColor_15hp2_289\",\"gray700BackgroundColor\":\"_gray700BackgroundColor_15hp2_293\",\"gray800BackgroundColor\":\"_gray800BackgroundColor_15hp2_297\",\"gray900BackgroundColor\":\"_gray900BackgroundColor_15hp2_301\",\"orange100BackgroundColor\":\"_orange100BackgroundColor_15hp2_305\",\"orange200BackgroundColor\":\"_orange200BackgroundColor_15hp2_309\",\"orange300BackgroundColor\":\"_orange300BackgroundColor_15hp2_313\",\"orange700BackgroundColor\":\"_orange700BackgroundColor_15hp2_317\",\"orange800BackgroundColor\":\"_orange800BackgroundColor_15hp2_321\",\"orange900BackgroundColor\":\"_orange900BackgroundColor_15hp2_325\",\"primary100BackgroundColor\":\"_primary100BackgroundColor_15hp2_329\",\"primary200BackgroundColor\":\"_primary200BackgroundColor_15hp2_333\",\"primary300BackgroundColor\":\"_primary300BackgroundColor_15hp2_337\",\"primary700BackgroundColor\":\"_primary700BackgroundColor_15hp2_341\",\"primary800BackgroundColor\":\"_primary800BackgroundColor_15hp2_345\",\"primary900BackgroundColor\":\"_primary900BackgroundColor_15hp2_349\",\"success100BackgroundColor\":\"_success100BackgroundColor_15hp2_353\",\"success200BackgroundColor\":\"_success200BackgroundColor_15hp2_357\",\"success300BackgroundColor\":\"_success300BackgroundColor_15hp2_361\",\"success700BackgroundColor\":\"_success700BackgroundColor_15hp2_365\",\"success800BackgroundColor\":\"_success800BackgroundColor_15hp2_369\",\"success900BackgroundColor\":\"_success900BackgroundColor_15hp2_373\",\"purple100BackgroundColor\":\"_purple100BackgroundColor_15hp2_377\",\"purple200BackgroundColor\":\"_purple200BackgroundColor_15hp2_381\",\"purple300BackgroundColor\":\"_purple300BackgroundColor_15hp2_385\",\"purple700BackgroundColor\":\"_purple700BackgroundColor_15hp2_389\",\"purple800BackgroundColor\":\"_purple800BackgroundColor_15hp2_393\",\"purple900BackgroundColor\":\"_purple900BackgroundColor_15hp2_397\",\"whiteBackgroundColor\":\"_whiteBackgroundColor_15hp2_401\",\"yellow100BackgroundColor\":\"_yellow100BackgroundColor_15hp2_405\",\"yellow200BackgroundColor\":\"_yellow200BackgroundColor_15hp2_409\",\"yellow300BackgroundColor\":\"_yellow300BackgroundColor_15hp2_413\",\"yellow700BackgroundColor\":\"_yellow700BackgroundColor_15hp2_417\",\"yellow800BackgroundColor\":\"_yellow800BackgroundColor_15hp2_421\",\"yellow900BackgroundColor\":\"_yellow900BackgroundColor_15hp2_425\",\"cambioBlackColor\":\"_cambioBlackColor_15hp2_430\",\"cambioWhiteColor\":\"_cambioWhiteColor_15hp2_434\",\"cambioWhite40Color\":\"_cambioWhite40Color_15hp2_438\",\"cambioWhite70Color\":\"_cambioWhite70Color_15hp2_442\",\"cambioGray100Color\":\"_cambioGray100Color_15hp2_446\",\"cambioGray200Color\":\"_cambioGray200Color_15hp2_450\",\"cambioGray300Color\":\"_cambioGray300Color_15hp2_454\",\"cambioGray370Color\":\"_cambioGray370Color_15hp2_458\",\"cambioGray700Color\":\"_cambioGray700Color_15hp2_462\",\"cambioGray800Color\":\"_cambioGray800Color_15hp2_466\",\"cambioGray870Color\":\"_cambioGray870Color_15hp2_470\",\"cambioGray900Color\":\"_cambioGray900Color_15hp2_474\",\"cambioDestructive100Color\":\"_cambioDestructive100Color_15hp2_478\",\"cambioDestructive300Color\":\"_cambioDestructive300Color_15hp2_482\",\"cambioDestructive370Color\":\"_cambioDestructive370Color_15hp2_486\",\"cambioDestructive700Color\":\"_cambioDestructive700Color_15hp2_490\",\"cambioDestructive770Color\":\"_cambioDestructive770Color_15hp2_494\",\"cambioDestructive900Color\":\"_cambioDestructive900Color_15hp2_498\",\"cambioSuccess100Color\":\"_cambioSuccess100Color_15hp2_502\",\"cambioSuccess300Color\":\"_cambioSuccess300Color_15hp2_506\",\"cambioSuccess370Color\":\"_cambioSuccess370Color_15hp2_510\",\"cambioSuccess700Color\":\"_cambioSuccess700Color_15hp2_514\",\"cambioSuccess770Color\":\"_cambioSuccess770Color_15hp2_518\",\"cambioSuccess900Color\":\"_cambioSuccess900Color_15hp2_522\",\"cambioRedColor\":\"_cambioRedColor_15hp2_526\",\"cambioOrangeColor\":\"_cambioOrangeColor_15hp2_530\",\"cambioTanColor\":\"_cambioTanColor_15hp2_534\",\"cambioCreamColor\":\"_cambioCreamColor_15hp2_538\",\"cambioPurpleColor\":\"_cambioPurpleColor_15hp2_542\",\"cambioLilacColor\":\"_cambioLilacColor_15hp2_546\",\"cambioThistleColor\":\"_cambioThistleColor_15hp2_550\",\"cambioPinkColor\":\"_cambioPinkColor_15hp2_554\",\"cambioNavyColor\":\"_cambioNavyColor_15hp2_558\",\"cambioTealColor\":\"_cambioTealColor_15hp2_562\",\"cambioSlateColor\":\"_cambioSlateColor_15hp2_566\",\"cambioSkyColor\":\"_cambioSkyColor_15hp2_570\",\"cambioYellow700Color\":\"_cambioYellow700Color_15hp2_574\",\"gray370Color\":\"_gray370Color_15hp2_578\",\"gray870Color\":\"_gray870Color_15hp2_582\",\"redColor\":\"_redColor_15hp2_586\",\"orangeColor\":\"_orangeColor_15hp2_590\",\"tanColor\":\"_tanColor_15hp2_594\",\"creamColor\":\"_creamColor_15hp2_598\",\"purpleColor\":\"_purpleColor_15hp2_602\",\"lilacColor\":\"_lilacColor_15hp2_606\",\"thistleColor\":\"_thistleColor_15hp2_610\",\"pinkColor\":\"_pinkColor_15hp2_614\",\"navyColor\":\"_navyColor_15hp2_618\",\"tealColor\":\"_tealColor_15hp2_622\",\"slateColor\":\"_slateColor_15hp2_626\",\"skyColor\":\"_skyColor_15hp2_630\",\"cambioTransparentFullBackgroundColor\":\"_cambioTransparentFullBackgroundColor_15hp2_634\",\"cambioBlackBackgroundColor\":\"_cambioBlackBackgroundColor_15hp2_638\",\"cambioWhiteBackgroundColor\":\"_cambioWhiteBackgroundColor_15hp2_642\",\"cambioWhite40BackgroundColor\":\"_cambioWhite40BackgroundColor_15hp2_646\",\"cambioWhite70BackgroundColor\":\"_cambioWhite70BackgroundColor_15hp2_650\",\"cambioGray100BackgroundColor\":\"_cambioGray100BackgroundColor_15hp2_654\",\"cambioGray200BackgroundColor\":\"_cambioGray200BackgroundColor_15hp2_658\",\"cambioGray300BackgroundColor\":\"_cambioGray300BackgroundColor_15hp2_662\",\"gray370BackgroundColor\":\"_gray370BackgroundColor_15hp2_666\",\"cambioGray370BackgroundColor\":\"_cambioGray370BackgroundColor_15hp2_670\",\"cambioGray700BackgroundColor\":\"_cambioGray700BackgroundColor_15hp2_674\",\"cambioGray800BackgroundColor\":\"_cambioGray800BackgroundColor_15hp2_678\",\"gray870BackgroundColor\":\"_gray870BackgroundColor_15hp2_682\",\"cambioGray870BackgroundColor\":\"_cambioGray870BackgroundColor_15hp2_686\",\"cambioGray900BackgroundColor\":\"_cambioGray900BackgroundColor_15hp2_690\",\"cambioDestructive100BackgroundColor\":\"_cambioDestructive100BackgroundColor_15hp2_694\",\"cambioDestructive300BackgroundColor\":\"_cambioDestructive300BackgroundColor_15hp2_698\",\"cambioDestructive370BackgroundColor\":\"_cambioDestructive370BackgroundColor_15hp2_702\",\"cambioDestructive700BackgroundColor\":\"_cambioDestructive700BackgroundColor_15hp2_706\",\"cambioDestructive770BackgroundColor\":\"_cambioDestructive770BackgroundColor_15hp2_710\",\"cambioDestructive900BackgroundColor\":\"_cambioDestructive900BackgroundColor_15hp2_714\",\"cambioSuccess100BackgroundColor\":\"_cambioSuccess100BackgroundColor_15hp2_718\",\"cambioSuccess300BackgroundColor\":\"_cambioSuccess300BackgroundColor_15hp2_722\",\"cambioSuccess370BackgroundColor\":\"_cambioSuccess370BackgroundColor_15hp2_726\",\"cambioSuccess700BackgroundColor\":\"_cambioSuccess700BackgroundColor_15hp2_730\",\"cambioSuccess770BackgroundColor\":\"_cambioSuccess770BackgroundColor_15hp2_734\",\"cambioSuccess900BackgroundColor\":\"_cambioSuccess900BackgroundColor_15hp2_738\",\"redBackgroundColor\":\"_redBackgroundColor_15hp2_742\",\"cambioRedBackgroundColor\":\"_cambioRedBackgroundColor_15hp2_746\",\"orangeBackgroundColor\":\"_orangeBackgroundColor_15hp2_750\",\"cambioOrangeBackgroundColor\":\"_cambioOrangeBackgroundColor_15hp2_754\",\"tanBackgroundColor\":\"_tanBackgroundColor_15hp2_758\",\"cambioTanBackgroundColor\":\"_cambioTanBackgroundColor_15hp2_762\",\"creamBackgroundColor\":\"_creamBackgroundColor_15hp2_766\",\"cambioCreamBackgroundColor\":\"_cambioCreamBackgroundColor_15hp2_770\",\"purpleBackgroundColor\":\"_purpleBackgroundColor_15hp2_774\",\"cambioPurpleBackgroundColor\":\"_cambioPurpleBackgroundColor_15hp2_778\",\"lilacBackgroundColor\":\"_lilacBackgroundColor_15hp2_782\",\"cambioLilacBackgroundColor\":\"_cambioLilacBackgroundColor_15hp2_786\",\"thistleBackgroundColor\":\"_thistleBackgroundColor_15hp2_790\",\"cambioThistleBackgroundColor\":\"_cambioThistleBackgroundColor_15hp2_794\",\"pinkBackgroundColor\":\"_pinkBackgroundColor_15hp2_798\",\"cambioPinkBackgroundColor\":\"_cambioPinkBackgroundColor_15hp2_802\",\"navyBackgroundColor\":\"_navyBackgroundColor_15hp2_806\",\"cambioNavyBackgroundColor\":\"_cambioNavyBackgroundColor_15hp2_810\",\"tealBackgroundColor\":\"_tealBackgroundColor_15hp2_814\",\"cambioTealBackgroundColor\":\"_cambioTealBackgroundColor_15hp2_818\",\"slateBackgroundColor\":\"_slateBackgroundColor_15hp2_822\",\"cambioSlateBackgroundColor\":\"_cambioSlateBackgroundColor_15hp2_826\",\"skyBackgroundColor\":\"_skyBackgroundColor_15hp2_830\",\"cambioSkyBackgroundColor\":\"_cambioSkyBackgroundColor_15hp2_834\",\"cambioYellow700BackgroundColor\":\"_cambioYellow700BackgroundColor_15hp2_838\"}"]}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }"use client"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _MF7LLV7Vcjs = require('./MF7LLV7V.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _IL22HCBFcjs = require('./IL22HCBF.cjs');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _4TYOP5XMcjs = require('./4TYOP5XM.cjs');
|
|
11
|
-
|
|
12
|
-
// src/RichSelect/RichSelectSection.tsx
|
|
13
|
-
var _react = require('react');
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var _reactariacomponents = require('react-aria-components');
|
|
19
|
-
var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames);
|
|
20
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
21
|
-
var RichSelectSection_default = _react.forwardRef.call(void 0,
|
|
22
|
-
function RichSelectSection(props, ref) {
|
|
23
|
-
const {
|
|
24
|
-
"data-testid": dataTestId,
|
|
25
|
-
label,
|
|
26
|
-
children,
|
|
27
|
-
orientation = "horizontal"
|
|
28
|
-
} = props;
|
|
29
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30
|
-
_reactariacomponents.Section,
|
|
31
|
-
{
|
|
32
|
-
ref,
|
|
33
|
-
"data-testid": dataTestId,
|
|
34
|
-
className: _classnames2.default.call(void 0,
|
|
35
|
-
[_IL22HCBFcjs.Box_module_default.box, _IL22HCBFcjs.Box_module_default.flex, _IL22HCBFcjs.Box_module_default.flexWrap, _IL22HCBFcjs.Box_module_default.gap3],
|
|
36
|
-
{
|
|
37
|
-
[_IL22HCBFcjs.Box_module_default.row]: orientation === "horizontal",
|
|
38
|
-
[_IL22HCBFcjs.Box_module_default.column]: orientation === "vertical"
|
|
39
|
-
}
|
|
40
|
-
),
|
|
41
|
-
children: [
|
|
42
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactariacomponents.Header, { className: _classnames2.default.call(void 0, _MF7LLV7Vcjs.layout_module_default.fullWidth), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _4TYOP5XMcjs.Typography_default, { children: label }) }),
|
|
43
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactariacomponents.Collection, { children })
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
);
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
exports.RichSelectSection_default = RichSelectSection_default;
|
|
53
|
-
//# sourceMappingURL=VDLYCYDQ.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/RichSelect/RichSelectSection.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,SAAgB,kBAAqC;AACrD;AAAA,EACE,WAAW;AAAA,EACX,UAAU;AAAA,EACV,cAAc;AAAA,OACT;AACP,OAAO,gBAAgB;AAsBjB,SAYI,KAZJ;AAVN,IAAO,4BAAQ;AAAA,EACb,SAAS,kBAAkB,OAAO,KAAmB;AACnD,UAAM;AAAA,MACJ,eAAe;AAAA,MACf;AAAA,MACA;AAAA,MACA,cAAc;AAAA,IAChB,IAAI;AAEJ,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,eAAa;AAAA,QACb,WAAW;AAAA,UACT,CAAC,mBAAU,KAAK,mBAAU,MAAM,mBAAU,UAAU,mBAAU,IAAI;AAAA,UAClE;AAAA,YACE,CAAC,mBAAU,GAAG,GAAG,gBAAgB;AAAA,YACjC,CAAC,mBAAU,MAAM,GAAG,gBAAgB;AAAA,UACtC;AAAA,QACF;AAAA,QAEA;AAAA,8BAAC,mBAAgB,WAAW,WAAW,sBAAa,SAAS,GAC3D,8BAAC,sBAAY,iBAAM,GACrB;AAAA,UACA,oBAAC,uBAAqB,UAAS;AAAA;AAAA;AAAA,IACjC;AAAA,EAEJ;AACF","sourcesContent":["import React, { forwardRef, type ReactElement } from \"react\";\nimport {\n Section as ReactAriaSection,\n Header as ReactAriaHeader,\n Collection as ReactAriaCollection,\n} from \"react-aria-components\";\nimport classNames from \"classnames\";\nimport boxStyles from \"../Box/Box.module.css\";\nimport layoutStyles from \"../layout.module.css\";\nimport Typography from \"../Typography/Typography\";\n\ntype RichSelectSectionProps = {\n \"data-testid\"?: string;\n label: string;\n children: ReactElement | ReactElement[];\n orientation?: \"horizontal\" | \"vertical\";\n};\n\nexport default forwardRef<HTMLDivElement, RichSelectSectionProps>(\n function RichSelectSection(props, ref): ReactElement {\n const {\n \"data-testid\": dataTestId,\n label,\n children,\n orientation = \"horizontal\",\n } = props;\n\n return (\n <ReactAriaSection\n ref={ref}\n data-testid={dataTestId}\n className={classNames(\n [boxStyles.box, boxStyles.flex, boxStyles.flexWrap, boxStyles.gap3],\n {\n [boxStyles.row]: orientation === \"horizontal\",\n [boxStyles.column]: orientation === \"vertical\",\n },\n )}\n >\n <ReactAriaHeader className={classNames(layoutStyles.fullWidth)}>\n <Typography>{label}</Typography>\n </ReactAriaHeader>\n <ReactAriaCollection>{children}</ReactAriaCollection>\n </ReactAriaSection>\n );\n },\n);\n"]}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }"use client"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _QODNNCT2cjs = require('./QODNNCT2.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _4TYOP5XMcjs = require('./4TYOP5XM.cjs');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _K4AUV2VKcjs = require('./K4AUV2VK.cjs');
|
|
11
|
-
|
|
12
|
-
// src/TextArea/TextArea.tsx
|
|
13
|
-
var _react = require('react');
|
|
14
|
-
|
|
15
|
-
// css-module:./TextArea.module.css#css-module
|
|
16
|
-
var TextArea_module_default = { "textarea": "_textarea_1sb0v_1", "resizenone": "_resizenone_1sb0v_6", "resizehorizontal": "_resizehorizontal_1sb0v_10", "resizevertical": "_resizevertical_1sb0v_14", "resizeboth": "_resizeboth_1sb0v_18" };
|
|
17
|
-
|
|
18
|
-
// css-module:../TextField/TextField.module.css#css-module
|
|
19
|
-
var TextField_module_default = { "textfield": "_textfield_17wxq_1", "transparent": "_transparent_17wxq_20", "label": "_label_17wxq_36", "md": "_md_17wxq_40", "height": "_height_17wxq_44", "inputError": "_inputError_17wxq_48", "transparentInputError": "_transparentInputError_17wxq_57", "transparenInputError": "_transparenInputError_17wxq_62" };
|
|
20
|
-
|
|
21
|
-
// src/TextArea/TextArea.tsx
|
|
22
|
-
var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames);
|
|
23
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
24
|
-
var TextArea = _react.forwardRef.call(void 0,
|
|
25
|
-
function TextArea2({
|
|
26
|
-
"data-testid": dataTestId,
|
|
27
|
-
disabled: disabledProp = false,
|
|
28
|
-
errorText = "",
|
|
29
|
-
helperText = "",
|
|
30
|
-
id,
|
|
31
|
-
label,
|
|
32
|
-
maxLength = 1024,
|
|
33
|
-
placeholder = "",
|
|
34
|
-
rows = 3,
|
|
35
|
-
value = "",
|
|
36
|
-
on,
|
|
37
|
-
onChange,
|
|
38
|
-
resize = "none"
|
|
39
|
-
}, forwardedRef) {
|
|
40
|
-
const isHydrated = _K4AUV2VKcjs.useIsHydrated.call(void 0, );
|
|
41
|
-
const disabled = !isHydrated || disabledProp;
|
|
42
|
-
const reactId = _react.useId.call(void 0, );
|
|
43
|
-
const inputId = id != null ? id : reactId;
|
|
44
|
-
const textColor = on === "darkBackground" ? "white" : "gray900";
|
|
45
|
-
const errorTextColor = on !== "darkBackground" ? "destructive-lightBackground" : "destructive-darkBackground";
|
|
46
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
47
|
-
_QODNNCT2cjs.Box_default,
|
|
48
|
-
{
|
|
49
|
-
display: "flex",
|
|
50
|
-
direction: "column",
|
|
51
|
-
gap: 2,
|
|
52
|
-
width: "100%",
|
|
53
|
-
dangerouslySetInlineStyle: {
|
|
54
|
-
__style: {
|
|
55
|
-
opacity: disabled ? 0.5 : 1
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
position: "relative",
|
|
59
|
-
children: [
|
|
60
|
-
label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: TextField_module_default.label, htmlFor: inputId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _QODNNCT2cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _4TYOP5XMcjs.Typography_default, { size: 100, color: textColor, children: label }) }) }),
|
|
61
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _4TYOP5XMcjs.Typography_default, { size: 100, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
62
|
-
"textarea",
|
|
63
|
-
{
|
|
64
|
-
"data-testid": dataTestId,
|
|
65
|
-
ref: forwardedRef,
|
|
66
|
-
className: _classnames2.default.call(void 0,
|
|
67
|
-
TextField_module_default.textfield,
|
|
68
|
-
TextArea_module_default.textarea,
|
|
69
|
-
TextArea_module_default[`resize${resize}`],
|
|
70
|
-
errorText && (on === "darkBackground" ? TextField_module_default.transparentInputError : TextField_module_default.inputError),
|
|
71
|
-
{
|
|
72
|
-
[TextField_module_default.transparent]: on === "darkBackground"
|
|
73
|
-
}
|
|
74
|
-
),
|
|
75
|
-
id: inputId,
|
|
76
|
-
placeholder,
|
|
77
|
-
maxLength,
|
|
78
|
-
onChange,
|
|
79
|
-
rows,
|
|
80
|
-
value,
|
|
81
|
-
disabled
|
|
82
|
-
}
|
|
83
|
-
) }),
|
|
84
|
-
(helperText || errorText) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _QODNNCT2cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
85
|
-
_4TYOP5XMcjs.Typography_default,
|
|
86
|
-
{
|
|
87
|
-
size: 100,
|
|
88
|
-
color: errorText ? errorTextColor : textColor,
|
|
89
|
-
children: errorText || helperText
|
|
90
|
-
}
|
|
91
|
-
) })
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
);
|
|
97
|
-
var TextArea_default = TextArea;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
exports.TextArea_default = TextArea_default;
|
|
102
|
-
//# sourceMappingURL=VVRMCACE.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/TextArea/TextArea.tsx","css-module:./TextArea.module.css#css-module","css-module:../TextField/TextField.module.css#css-module"],"names":["TextArea"],"mappings":";;;;;;;;;;;;AAEA,SAAmC,OAAO,kBAAkB;;;ACFoC,IAAO,0BAAQ,EAAC,YAAW,qBAAoB,cAAa,uBAAsB,oBAAmB,8BAA6B,kBAAiB,4BAA2B,cAAa,uBAAsB;;;ACA/M,IAAO,2BAAQ,EAAC,aAAY,sBAAqB,eAAc,yBAAwB,SAAQ,mBAAkB,MAAK,gBAAe,UAAS,oBAAmB,cAAa,wBAAuB,yBAAwB,mCAAkC,wBAAuB,iCAAgC;;;AFKxZ,OAAO,gBAAgB;AAmGjB,SAeQ,KAfR;AA9BN,IAAM,WAAW;AAAA,EACf,SAASA,UACP;AAAA,IACE,eAAe;AAAA,IACf,UAAU,eAAe;AAAA,IACzB,YAAY;AAAA,IACZ,aAAa;AAAA,IACb;AAAA,IACA;AAAA,IACA,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,OAAO;AAAA,IACP,QAAQ;AAAA,IACR;AAAA,IACA;AAAA,IACA,SAAS;AAAA,EACX,GACA,cACc;AACd,UAAM,aAAa,cAAc;AACjC,UAAM,WAAW,CAAC,cAAc;AAChC,UAAM,UAAU,MAAM;AACtB,UAAM,UAAU,kBAAM;AACtB,UAAM,YAAY,OAAO,mBAAmB,UAAU;AACtD,UAAM,iBACJ,OAAO,mBACH,gCACA;AAEN,WACE;AAAA,MAAC;AAAA;AAAA,QACC,SAAQ;AAAA,QACR,WAAU;AAAA,QACV,KAAK;AAAA,QACL,OAAM;AAAA,QACN,2BAA2B;AAAA,UACzB,SAAS;AAAA,YACP,SAAS,WAAW,MAAM;AAAA,UAC5B;AAAA,QACF;AAAA,QACA,UAAS;AAAA,QAER;AAAA,mBACC,oBAAC,WAAM,WAAW,yBAAgB,OAAO,SAAS,SAChD,8BAAC,eAAI,UAAU,GACb,8BAAC,sBAAW,MAAM,KAAK,OAAO,WAC3B,iBACH,GACF,GACF;AAAA,UAEF,oBAAC,sBAAW,MAAM,KAChB;AAAA,YAAC;AAAA;AAAA,cACC,eAAa;AAAA,cACb,KAAK;AAAA,cACL,WAAW;AAAA,gBACT,yBAAgB;AAAA,gBAChB,wBAAO;AAAA,gBACP,wBAAO,SAAS,QAAQ;AAAA,gBACxB,cACG,OAAO,mBACJ,yBAAgB,wBAChB,yBAAgB;AAAA,gBACtB;AAAA,kBACE,CAAC,yBAAgB,WAAW,GAAG,OAAO;AAAA,gBACxC;AAAA,cACF;AAAA,cACA,IAAI;AAAA,cACJ;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA;AAAA,UACF,GACF;AAAA,WACE,cAAc,cACd,oBAAC,eAAI,UAAU,GACb;AAAA,YAAC;AAAA;AAAA,cACC,MAAM;AAAA,cACN,OAAO,YAAY,iBAAiB;AAAA,cAEnC,uBAAa;AAAA;AAAA,UAChB,GACF;AAAA;AAAA;AAAA,IAEJ;AAAA,EAEJ;AACF;AAEA,IAAO,mBAAQ","sourcesContent":["import Box from \"../Box/Box\";\nimport Typography from \"../Typography/Typography\";\nimport React, { type ReactElement, useId, forwardRef } from \"react\";\nimport styles from \"./TextArea.module.css\";\nimport textFieldStyles from \"../TextField/TextField.module.css\";\nimport classNames from \"classnames\";\nimport useIsHydrated from \"../useIsHydrated\";\n\ntype TextAreaProps = {\n /**\n * A data-testid to make querying for the TextArea easier.\n */\n \"data-testid\"?: string;\n /**\n * If true, the TextArea will be disabled.\n */\n disabled?: boolean;\n /**\n * Text shown below TextArea if there is an input error.\n */\n errorText?: string;\n /**\n * Informative helper text shown below TextArea\n */\n helperText?: string;\n /**\n * TextField id, if not provided, a unique id will be generated\n */\n id?: string;\n /**\n * TextArea visible label\n */\n label: string;\n /**\n * Maximum number of characters allowed in the TextArea\n */\n maxLength?: number;\n /**\n * Indicate whether the component renders on a light or dark background. Changes the color of the input field and text\n *\n * @defaulValue `lightBackground`\n */\n on?: \"lightBackground\" | \"darkBackground\";\n /**\n * Callback fired when the value is changed.\n */\n onChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n /**\n * Placeholder text to display when TextArea is empty\n */\n placeholder?: string;\n /**\n * Sets which part resizes when the user drags the resize handle.\n * * `none`: TextArea can not be resized\n * * `horizontal`: TextArea can only be resized horizontally\n * * `vertical`: TextArea can only be resized vertically\n * * `both`: TextArea can be resized horizontally and vertically\n *\n * @defaultvalue `none`\n */\n resize?: \"none\" | \"horizontal\" | \"vertical\" | \"both\";\n /**\n * Number of rows to display\n */\n rows?: number;\n /**\n * Value of the TextArea\n */\n value: string;\n};\n\n/**\n * [TextArea](https://cambly-syntax.vercel.app/?path=/docs/components-textarea--docs) allows users to enter multiple lines of text.\n */\nconst TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(\n function TextArea(\n {\n \"data-testid\": dataTestId,\n disabled: disabledProp = false,\n errorText = \"\",\n helperText = \"\",\n id,\n label,\n maxLength = 1024,\n placeholder = \"\",\n rows = 3,\n value = \"\",\n on,\n onChange,\n resize = \"none\",\n }: TextAreaProps,\n forwardedRef,\n ): ReactElement {\n const isHydrated = useIsHydrated();\n const disabled = !isHydrated || disabledProp;\n const reactId = useId();\n const inputId = id ?? reactId;\n const textColor = on === \"darkBackground\" ? \"white\" : \"gray900\";\n const errorTextColor =\n on !== \"darkBackground\"\n ? \"destructive-lightBackground\"\n : \"destructive-darkBackground\";\n\n return (\n <Box\n display=\"flex\"\n direction=\"column\"\n gap={2}\n width=\"100%\"\n dangerouslySetInlineStyle={{\n __style: {\n opacity: disabled ? 0.5 : 1,\n },\n }}\n position=\"relative\"\n >\n {label && (\n <label className={textFieldStyles.label} htmlFor={inputId}>\n <Box paddingX={1}>\n <Typography size={100} color={textColor}>\n {label}\n </Typography>\n </Box>\n </label>\n )}\n <Typography size={100}>\n <textarea\n data-testid={dataTestId}\n ref={forwardedRef}\n className={classNames(\n textFieldStyles.textfield,\n styles.textarea,\n styles[`resize${resize}`],\n errorText &&\n (on === \"darkBackground\"\n ? textFieldStyles.transparentInputError\n : textFieldStyles.inputError),\n {\n [textFieldStyles.transparent]: on === \"darkBackground\",\n },\n )}\n id={inputId}\n placeholder={placeholder}\n maxLength={maxLength}\n onChange={onChange}\n rows={rows}\n value={value}\n disabled={disabled}\n />\n </Typography>\n {(helperText || errorText) && (\n <Box paddingX={1}>\n <Typography\n size={100}\n color={errorText ? errorTextColor : textColor}\n >\n {errorText || helperText}\n </Typography>\n </Box>\n )}\n </Box>\n );\n },\n);\n\nexport default TextArea;\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/TextArea/TextArea.module.css\"; export default {\"textarea\":\"_textarea_1sb0v_1\",\"resizenone\":\"_resizenone_1sb0v_6\",\"resizehorizontal\":\"_resizehorizontal_1sb0v_10\",\"resizevertical\":\"_resizevertical_1sb0v_14\",\"resizeboth\":\"_resizeboth_1sb0v_18\"}","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/TextField/TextField.module.css\"; export default {\"textfield\":\"_textfield_17wxq_1\",\"transparent\":\"_transparent_17wxq_20\",\"label\":\"_label_17wxq_36\",\"md\":\"_md_17wxq_40\",\"height\":\"_height_17wxq_44\",\"inputError\":\"_inputError_17wxq_48\",\"transparentInputError\":\"_transparentInputError_17wxq_57\",\"transparenInputError\":\"_transparenInputError_17wxq_62\"}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _DHXH7ZSGcjs = require('./DHXH7ZSG.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _RYUXG4AScjs = require('./RYUXG4AS.cjs');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _X2SDR4SDcjs = require('./X2SDR4SD.cjs');
|
|
13
|
-
|
|
14
|
-
// src/RichSelect/RichSelectRadioButton.tsx
|
|
15
|
-
var _react = require('react');
|
|
16
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
17
|
-
var NOOP = () => void 0;
|
|
18
|
-
var RichSelectRadioButton_default = _react.forwardRef.call(void 0,
|
|
19
|
-
function RichSelectRadioButton(props, ref) {
|
|
20
|
-
const _a = props, { size, name } = _a, otherProps = _X2SDR4SDcjs.__objRest.call(void 0, _a, ["size", "name"]);
|
|
21
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _RYUXG4AScjs.RichSelectItem_default, _X2SDR4SDcjs.__spreadProps.call(void 0, _X2SDR4SDcjs.__spreadValues.call(void 0, {}, otherProps), { ref, children: ({ isSelected, isFocusVisible, isDisabled }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22
|
-
_DHXH7ZSGcjs.RadioButton_default,
|
|
23
|
-
{
|
|
24
|
-
checked: isSelected,
|
|
25
|
-
disabled: isDisabled,
|
|
26
|
-
name,
|
|
27
|
-
label: otherProps.label,
|
|
28
|
-
value: otherProps.value,
|
|
29
|
-
dangerouslyForceFocusStyles: isFocusVisible,
|
|
30
|
-
size,
|
|
31
|
-
onChange: NOOP
|
|
32
|
-
}
|
|
33
|
-
) }));
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
exports.RichSelectRadioButton_default = RichSelectRadioButton_default;
|
|
40
|
-
//# sourceMappingURL=WKADTHRK.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/RichSelect/RichSelectRadioButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,SAAgB,kBAAqC;AAiB3C;AAbV,IAAM,OAAO,MAAM;AAOnB,IAAO,gCAAQ;AAAA,EACb,SAAS,sBAAsB,OAAO,KAAmB;AACvD,UAAsC,YAA9B,QAAM,KAblB,IAa0C,IAAf,uBAAe,IAAf,CAAf,QAAM;AACd,WACE,oBAAC,yDAAmB,aAAnB,EAA+B,KAC7B,WAAC,EAAE,YAAY,gBAAgB,WAAW,MACzC;AAAA,MAAC;AAAA;AAAA,QACC,SAAS;AAAA,QACT,UAAU;AAAA,QACV;AAAA,QACA,OAAO,WAAW;AAAA,QAClB,OAAO,WAAW;AAAA,QAClB,6BAA6B;AAAA,QAC7B;AAAA,QACA,UAAU;AAAA;AAAA,IACZ,IAEJ;AAAA,EAEJ;AACF","sourcesContent":["import React, { forwardRef, type ReactElement } from \"react\";\nimport RichSelectItem, { type RichSelectItemProps } from \"./RichSelectItem\";\nimport RadioButton from \"../RadioButton/RadioButton\";\n\nconst NOOP = () => undefined;\n\ntype RichSelectRadioButtonProps = RichSelectItemProps & {\n name: string;\n size?: \"sm\" | \"md\";\n};\n\nexport default forwardRef<HTMLDivElement, RichSelectRadioButtonProps>(\n function RichSelectRadioButton(props, ref): ReactElement {\n const { size, name, ...otherProps } = props;\n return (\n <RichSelectItem {...otherProps} ref={ref}>\n {({ isSelected, isFocusVisible, isDisabled }) => (\n <RadioButton\n checked={isSelected}\n disabled={isDisabled}\n name={name}\n label={otherProps.label}\n value={otherProps.value}\n dangerouslyForceFocusStyles={isFocusVisible}\n size={size}\n onChange={NOOP}\n />\n )}\n </RichSelectItem>\n );\n },\n);\n"]}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __defProps = Object.defineProperties;
|
|
4
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
-
var __spreadValues = (a, b) => {
|
|
10
|
-
for (var prop in b || (b = {}))
|
|
11
|
-
if (__hasOwnProp.call(b, prop))
|
|
12
|
-
__defNormalProp(a, prop, b[prop]);
|
|
13
|
-
if (__getOwnPropSymbols)
|
|
14
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
-
if (__propIsEnum.call(b, prop))
|
|
16
|
-
__defNormalProp(a, prop, b[prop]);
|
|
17
|
-
}
|
|
18
|
-
return a;
|
|
19
|
-
};
|
|
20
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
-
var __objRest = (source, exclude) => {
|
|
22
|
-
var target = {};
|
|
23
|
-
for (var prop in source)
|
|
24
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
25
|
-
target[prop] = source[prop];
|
|
26
|
-
if (source != null && __getOwnPropSymbols)
|
|
27
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
28
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
29
|
-
target[prop] = source[prop];
|
|
30
|
-
}
|
|
31
|
-
return target;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
exports.__spreadValues = __spreadValues; exports.__spreadProps = __spreadProps; exports.__objRest = __objRest;
|
|
39
|
-
//# sourceMappingURL=X2SDR4SD.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
|
-
|
|
3
|
-
// css-module:../Focus.module.css#css-module
|
|
4
|
-
var Focus_module_default = { "accessibilityOutlineFocus": "_accessibilityOutlineFocus_1h8bq_1" };
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
exports.Focus_module_default = Focus_module_default;
|
|
9
|
-
//# sourceMappingURL=XLUVINJW.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["css-module:../Focus.module.css#css-module"],"names":[],"mappings":";;;AAAoF,IAAO,uBAAQ,EAAC,6BAA4B,qCAAoC","sourcesContent":["import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Focus.module.css\"; export default {\"accessibilityOutlineFocus\":\"_accessibilityOutlineFocus_1h8bq_1\"}"]}
|