@cambly/syntax-core 10.36.0 → 10.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Avatar/Avatar.cjs +4 -4
- package/dist/Avatar/Avatar.css +8 -0
- package/dist/Avatar/Avatar.css.map +1 -1
- package/dist/Avatar/Avatar.d.ts +1 -1
- package/dist/Avatar/Avatar.js +3 -3
- package/dist/AvatarGroup/AvatarGroup.cjs +3 -3
- package/dist/AvatarGroup/AvatarGroup.css +8 -0
- package/dist/AvatarGroup/AvatarGroup.css.map +1 -1
- package/dist/AvatarGroup/AvatarGroup.js +2 -2
- package/dist/Badge/Badge.cjs +3 -3
- package/dist/Badge/Badge.css +8 -0
- package/dist/Badge/Badge.css.map +1 -1
- package/dist/Badge/Badge.js +2 -2
- package/dist/Box/Box.cjs +2 -2
- package/dist/Box/Box.css +8 -0
- package/dist/Box/Box.css.map +1 -1
- package/dist/Box/Box.d.ts +9 -0
- package/dist/Box/Box.js +1 -1
- package/dist/Button/Button.cjs +5 -5
- package/dist/Button/Button.css +27 -19
- package/dist/Button/Button.css.map +1 -1
- package/dist/Button/Button.js +4 -4
- package/dist/Button/constants/iconSize.cjs +2 -2
- package/dist/Button/constants/iconSize.css +19 -19
- package/dist/Button/constants/iconSize.css.map +1 -1
- package/dist/Button/constants/iconSize.js +1 -1
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/Card/Card.cjs +3 -3
- package/dist/Card/Card.css +8 -0
- package/dist/Card/Card.css.map +1 -1
- package/dist/Card/Card.js +2 -2
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Chip/Chip.cjs +3 -3
- package/dist/Chip/Chip.css +8 -0
- package/dist/Chip/Chip.css.map +1 -1
- package/dist/Chip/Chip.js +2 -2
- package/dist/Dialog/ModalDialog.cjs +3 -3
- package/dist/Dialog/ModalDialog.css +8 -0
- package/dist/Dialog/ModalDialog.css.map +1 -1
- package/dist/Dialog/ModalDialog.js +2 -2
- package/dist/Heading/Heading.d.ts +1 -1
- package/dist/LinkButton/LinkButton.cjs +4 -3
- package/dist/LinkButton/LinkButton.css +19 -19
- package/dist/LinkButton/LinkButton.css.map +1 -1
- package/dist/LinkButton/LinkButton.d.ts +6 -0
- package/dist/LinkButton/LinkButton.js +3 -2
- package/dist/Modal/Layer.cjs +3 -3
- package/dist/Modal/Layer.css +8 -0
- package/dist/Modal/Layer.css.map +1 -1
- package/dist/Modal/Layer.js +2 -2
- package/dist/Modal/Modal.cjs +4 -4
- package/dist/Modal/Modal.css +8 -0
- package/dist/Modal/Modal.css.map +1 -1
- package/dist/Modal/Modal.js +3 -3
- package/dist/Popover/Popover.cjs +4 -4
- package/dist/Popover/Popover.css +8 -0
- package/dist/Popover/Popover.css.map +1 -1
- package/dist/Popover/Popover.js +3 -3
- package/dist/RadioButton/RadioButton.cjs +3 -3
- package/dist/RadioButton/RadioButton.css +8 -0
- package/dist/RadioButton/RadioButton.css.map +1 -1
- package/dist/RadioButton/RadioButton.d.ts +1 -1
- package/dist/RadioButton/RadioButton.js +2 -2
- package/dist/RichSelect/RichSelectBox.cjs +10 -10
- package/dist/RichSelect/RichSelectBox.css +27 -19
- package/dist/RichSelect/RichSelectBox.css.map +1 -1
- package/dist/RichSelect/RichSelectBox.d.ts +1 -1
- package/dist/RichSelect/RichSelectBox.js +9 -9
- package/dist/RichSelect/RichSelectChip.cjs +4 -4
- package/dist/RichSelect/RichSelectChip.css +8 -0
- package/dist/RichSelect/RichSelectChip.css.map +1 -1
- package/dist/RichSelect/RichSelectChip.js +3 -3
- package/dist/RichSelect/RichSelectList.cjs +14 -14
- package/dist/RichSelect/RichSelectList.css +27 -19
- package/dist/RichSelect/RichSelectList.css.map +1 -1
- package/dist/RichSelect/RichSelectList.d.ts +1 -1
- package/dist/RichSelect/RichSelectList.js +13 -13
- package/dist/RichSelect/RichSelectRadioButton.cjs +4 -4
- package/dist/RichSelect/RichSelectRadioButton.css +8 -0
- package/dist/RichSelect/RichSelectRadioButton.css.map +1 -1
- package/dist/RichSelect/RichSelectRadioButton.d.ts +1 -1
- package/dist/RichSelect/RichSelectRadioButton.js +3 -3
- package/dist/SelectList/SelectList.cjs +4 -4
- package/dist/SelectList/SelectList.css +8 -0
- package/dist/SelectList/SelectList.css.map +1 -1
- package/dist/SelectList/SelectList.js +3 -3
- package/dist/TapArea/TapArea.d.ts +1 -1
- package/dist/TextArea/TextArea.cjs +3 -3
- package/dist/TextArea/TextArea.css +8 -0
- package/dist/TextArea/TextArea.css.map +1 -1
- package/dist/TextArea/TextArea.js +2 -2
- package/dist/TextField/TextField.cjs +3 -3
- package/dist/TextField/TextField.css +8 -0
- package/dist/TextField/TextField.css.map +1 -1
- package/dist/TextField/TextField.js +2 -2
- package/dist/Typography/Typography.d.ts +1 -1
- package/dist/__chunks/{C2F5LYEQ.cjs → 3OMIAWRN.cjs} +34 -9
- package/dist/__chunks/3OMIAWRN.cjs.map +1 -0
- package/dist/__chunks/{UGIRVBGY.cjs → 45TK5V2G.cjs} +18 -18
- package/dist/__chunks/{Y3D5XFML.js → 4EIK6LQR.js} +2 -2
- package/dist/__chunks/{AWZCK6T3.js → 535SBVS5.js} +2 -2
- package/dist/__chunks/{N5N4HUQB.js → 6PRG6ZYW.js} +2 -2
- package/dist/__chunks/{BBDZRW7U.js → A5FQZ2CW.js} +1 -1
- package/dist/__chunks/{BBDZRW7U.js.map → A5FQZ2CW.js.map} +1 -1
- package/dist/__chunks/{EDYJVVT6.js → A6EQN4YQ.js} +5 -5
- package/dist/__chunks/{JYW7KNV7.js → ASY5BZ34.js} +11 -9
- package/dist/__chunks/ASY5BZ34.js.map +1 -0
- package/dist/__chunks/BHN2OODF.cjs +17 -0
- package/dist/__chunks/BHN2OODF.cjs.map +1 -0
- package/dist/__chunks/{TY6VF7DF.cjs → BOU7KSFV.cjs} +11 -11
- package/dist/__chunks/C7PW7CPK.js +17 -0
- package/dist/__chunks/C7PW7CPK.js.map +1 -0
- package/dist/__chunks/{ALD77RKF.cjs → CHOHIFJN.cjs} +3 -3
- package/dist/__chunks/{FPDQA475.cjs → COLPERJT.cjs} +5 -5
- package/dist/__chunks/{WHQ73FAY.js → CTNDDLBZ.js} +2 -2
- package/dist/__chunks/{2Y7Y6KGW.cjs → D5AQ3PGB.cjs} +3 -3
- package/dist/__chunks/{CA6LTZL7.cjs → D62L3CWM.cjs} +3 -3
- package/dist/__chunks/{MARZTIPV.cjs → EZUXET6V.cjs} +3 -3
- package/dist/__chunks/{DB7KX3J2.cjs → FESAFV44.cjs} +7 -1
- package/dist/__chunks/FESAFV44.cjs.map +1 -0
- package/dist/__chunks/{2LV4KJ5U.js → FVGIQTM2.js} +2 -2
- package/dist/__chunks/{B4BYSLWK.js → H3IUTBTY.js} +2 -2
- package/dist/__chunks/{5A5IBIPC.cjs → JRTUP3VP.cjs} +8 -8
- package/dist/__chunks/{4A6OSK3V.js → JUQWWD2D.js} +3 -3
- package/dist/__chunks/{44BDRP6O.js → K65WDLIC.js} +2 -2
- package/dist/__chunks/{UU3JE4UT.js → LDHALTXE.js} +2 -2
- package/dist/__chunks/{J6DAGNNN.js → M36V23WR.js} +7 -1
- package/dist/__chunks/M36V23WR.js.map +1 -0
- package/dist/__chunks/{EMUPGJ7I.cjs → MOJ335LT.cjs} +5 -5
- package/dist/__chunks/{SLDP6ZJE.js → NMX5UDLV.js} +2 -2
- package/dist/__chunks/{F2PXZG4G.js → OSEMTZVK.js} +7 -7
- package/dist/__chunks/{YICZLNHI.cjs → OUH7XWQR.cjs} +4 -4
- package/dist/__chunks/{DLZDG6HM.js → QVOCSKIN.js} +32 -7
- package/dist/__chunks/QVOCSKIN.js.map +1 -0
- package/dist/__chunks/{7JPWJT4Z.js → RQ5XRLL6.js} +2 -2
- package/dist/__chunks/{FWLRUQPX.js → SNF42PSE.js} +3 -3
- package/dist/__chunks/{H6VD4C7I.js → SSVDOCMD.js} +2 -2
- package/dist/__chunks/{DOQ5YEJ4.cjs → T2G4KRBE.cjs} +3 -3
- package/dist/__chunks/{52L4VM3G.cjs → T2WJJCS3.cjs} +3 -3
- package/dist/__chunks/{BKBUTHI5.js → T32LVZ6S.js} +2 -2
- package/dist/__chunks/{BW5Q7OJQ.js → T43E4BS4.js} +3 -3
- package/dist/__chunks/{WBKZQ5CY.cjs → UK6ERDNB.cjs} +6 -6
- package/dist/__chunks/{L2CARKP7.cjs → UT353VLR.cjs} +3 -3
- package/dist/__chunks/{S77S5MVX.cjs → W52D7D34.cjs} +3 -3
- package/dist/__chunks/{6PNFY6W6.cjs → X67IWLZJ.cjs} +13 -13
- package/dist/__chunks/{S5CYISJE.cjs → Y2AMPQUU.cjs} +13 -11
- package/dist/__chunks/Y2AMPQUU.cjs.map +1 -0
- package/dist/__chunks/{VBSPIS4Y.cjs → YUMINZNX.cjs} +1 -1
- package/dist/__chunks/{VBSPIS4Y.cjs.map → YUMINZNX.cjs.map} +1 -1
- package/dist/__chunks/{QVR3OSXW.cjs → ZGI5YNKG.cjs} +3 -3
- package/dist/index.cjs +24 -24
- package/dist/index.css +27 -19
- package/dist/index.css.map +1 -1
- package/dist/index.js +23 -23
- package/package.json +1 -1
- package/dist/__chunks/C2F5LYEQ.cjs.map +0 -1
- package/dist/__chunks/DB7KX3J2.cjs.map +0 -1
- package/dist/__chunks/DLZDG6HM.js.map +0 -1
- package/dist/__chunks/J6DAGNNN.js.map +0 -1
- package/dist/__chunks/JWJK72BH.js +0 -17
- package/dist/__chunks/JWJK72BH.js.map +0 -1
- package/dist/__chunks/JYW7KNV7.js.map +0 -1
- package/dist/__chunks/S5CYISJE.cjs.map +0 -1
- package/dist/__chunks/UAXX2ZEQ.cjs +0 -17
- package/dist/__chunks/UAXX2ZEQ.cjs.map +0 -1
- /package/dist/__chunks/{UGIRVBGY.cjs.map → 45TK5V2G.cjs.map} +0 -0
- /package/dist/__chunks/{Y3D5XFML.js.map → 4EIK6LQR.js.map} +0 -0
- /package/dist/__chunks/{AWZCK6T3.js.map → 535SBVS5.js.map} +0 -0
- /package/dist/__chunks/{N5N4HUQB.js.map → 6PRG6ZYW.js.map} +0 -0
- /package/dist/__chunks/{EDYJVVT6.js.map → A6EQN4YQ.js.map} +0 -0
- /package/dist/__chunks/{TY6VF7DF.cjs.map → BOU7KSFV.cjs.map} +0 -0
- /package/dist/__chunks/{ALD77RKF.cjs.map → CHOHIFJN.cjs.map} +0 -0
- /package/dist/__chunks/{FPDQA475.cjs.map → COLPERJT.cjs.map} +0 -0
- /package/dist/__chunks/{WHQ73FAY.js.map → CTNDDLBZ.js.map} +0 -0
- /package/dist/__chunks/{2Y7Y6KGW.cjs.map → D5AQ3PGB.cjs.map} +0 -0
- /package/dist/__chunks/{CA6LTZL7.cjs.map → D62L3CWM.cjs.map} +0 -0
- /package/dist/__chunks/{MARZTIPV.cjs.map → EZUXET6V.cjs.map} +0 -0
- /package/dist/__chunks/{2LV4KJ5U.js.map → FVGIQTM2.js.map} +0 -0
- /package/dist/__chunks/{B4BYSLWK.js.map → H3IUTBTY.js.map} +0 -0
- /package/dist/__chunks/{5A5IBIPC.cjs.map → JRTUP3VP.cjs.map} +0 -0
- /package/dist/__chunks/{4A6OSK3V.js.map → JUQWWD2D.js.map} +0 -0
- /package/dist/__chunks/{44BDRP6O.js.map → K65WDLIC.js.map} +0 -0
- /package/dist/__chunks/{UU3JE4UT.js.map → LDHALTXE.js.map} +0 -0
- /package/dist/__chunks/{EMUPGJ7I.cjs.map → MOJ335LT.cjs.map} +0 -0
- /package/dist/__chunks/{SLDP6ZJE.js.map → NMX5UDLV.js.map} +0 -0
- /package/dist/__chunks/{F2PXZG4G.js.map → OSEMTZVK.js.map} +0 -0
- /package/dist/__chunks/{YICZLNHI.cjs.map → OUH7XWQR.cjs.map} +0 -0
- /package/dist/__chunks/{7JPWJT4Z.js.map → RQ5XRLL6.js.map} +0 -0
- /package/dist/__chunks/{FWLRUQPX.js.map → SNF42PSE.js.map} +0 -0
- /package/dist/__chunks/{H6VD4C7I.js.map → SSVDOCMD.js.map} +0 -0
- /package/dist/__chunks/{DOQ5YEJ4.cjs.map → T2G4KRBE.cjs.map} +0 -0
- /package/dist/__chunks/{52L4VM3G.cjs.map → T2WJJCS3.cjs.map} +0 -0
- /package/dist/__chunks/{BKBUTHI5.js.map → T32LVZ6S.js.map} +0 -0
- /package/dist/__chunks/{BW5Q7OJQ.js.map → T43E4BS4.js.map} +0 -0
- /package/dist/__chunks/{WBKZQ5CY.cjs.map → UK6ERDNB.cjs.map} +0 -0
- /package/dist/__chunks/{L2CARKP7.cjs.map → UT353VLR.cjs.map} +0 -0
- /package/dist/__chunks/{S77S5MVX.cjs.map → W52D7D34.cjs.map} +0 -0
- /package/dist/__chunks/{6PNFY6W6.cjs.map → X67IWLZJ.cjs.map} +0 -0
- /package/dist/__chunks/{QVR3OSXW.cjs.map → ZGI5YNKG.cjs.map} +0 -0
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
textVariant_default
|
|
4
4
|
} from "./Z5ZUAP2B.js";
|
|
5
|
+
import {
|
|
6
|
+
loadingIconSize_default
|
|
7
|
+
} from "./QSC7CAQA.js";
|
|
5
8
|
import {
|
|
6
9
|
iconSize_default
|
|
7
|
-
} from "./
|
|
10
|
+
} from "./C7PW7CPK.js";
|
|
8
11
|
import {
|
|
9
12
|
foregroundColor
|
|
10
13
|
} from "./UVQS6LU3.js";
|
|
@@ -23,7 +26,7 @@ import { forwardRef } from "react";
|
|
|
23
26
|
import classNames from "classnames";
|
|
24
27
|
|
|
25
28
|
// css-module:../Button/Button.module.css#css-module
|
|
26
|
-
var Button_module_default = { "button": "
|
|
29
|
+
var Button_module_default = { "button": "_button_hjka3_1", "buttonGap": "_buttonGap_hjka3_8", "disabled": "_disabled_hjka3_42", "disabledPrimary": "_disabledPrimary_hjka3_49", "fullWidth": "_fullWidth_hjka3_53", "sm": "_sm_hjka3_57", "md": "_md_hjka3_64", "lg": "_lg_hjka3_71", "icon": "_icon_hjka3_78", "smIcon": "_smIcon_hjka3_82", "mdIcon": "_mdIcon_hjka3_89", "lgIcon": "_lgIcon_hjka3_96", "loading": "_loading_hjka3_113", "syntaxButtonLoadingRotate": "_syntaxButtonLoadingRotate_hjka3_1", "loadingCircle": "_loadingCircle_hjka3_117" };
|
|
27
30
|
|
|
28
31
|
// css-module:./LinkButton.module.css#css-module
|
|
29
32
|
var LinkButton_module_default = { "linkButton": "_linkButton_1qjrb_1", "fitContent": "_fitContent_1qjrb_11" };
|
|
@@ -39,6 +42,7 @@ var LinkButton = forwardRef(
|
|
|
39
42
|
"data-testid": dataTestId,
|
|
40
43
|
color = "primary",
|
|
41
44
|
size = "md",
|
|
45
|
+
loading = false,
|
|
42
46
|
fullWidth = false,
|
|
43
47
|
startIcon: StartIcon,
|
|
44
48
|
endIcon: EndIcon,
|
|
@@ -65,12 +69,13 @@ var LinkButton = forwardRef(
|
|
|
65
69
|
{
|
|
66
70
|
[Button_module_default.fullWidth]: fullWidth,
|
|
67
71
|
[LinkButton_module_default.fitContent]: !fullWidth,
|
|
68
|
-
[Button_module_default.buttonGap]: size === "lg" || size === "md"
|
|
72
|
+
[Button_module_default.buttonGap]: size === "lg" || size === "md",
|
|
73
|
+
[Button_module_default.disabled]: loading
|
|
69
74
|
}
|
|
70
75
|
),
|
|
71
76
|
onClick,
|
|
72
77
|
children: [
|
|
73
|
-
StartIcon && /* @__PURE__ */ jsx(
|
|
78
|
+
!loading && StartIcon && /* @__PURE__ */ jsx(
|
|
74
79
|
StartIcon,
|
|
75
80
|
{
|
|
76
81
|
className: classNames(
|
|
@@ -80,14 +85,14 @@ var LinkButton = forwardRef(
|
|
|
80
85
|
)
|
|
81
86
|
}
|
|
82
87
|
),
|
|
83
|
-
/* @__PURE__ */ jsx(Typography_default, { size: textVariant_default[size], weight: "medium", children: /* @__PURE__ */ jsx(
|
|
88
|
+
!loading && text && /* @__PURE__ */ jsx(Typography_default, { size: textVariant_default[size], weight: "medium", children: /* @__PURE__ */ jsx(
|
|
84
89
|
"span",
|
|
85
90
|
{
|
|
86
91
|
className: foregroundColorClass,
|
|
87
92
|
children: text
|
|
88
93
|
}
|
|
89
94
|
) }),
|
|
90
|
-
EndIcon && /* @__PURE__ */ jsx(
|
|
95
|
+
!loading && EndIcon && /* @__PURE__ */ jsx(
|
|
91
96
|
EndIcon,
|
|
92
97
|
{
|
|
93
98
|
className: classNames(
|
|
@@ -96,6 +101,26 @@ var LinkButton = forwardRef(
|
|
|
96
101
|
foregroundColorClass
|
|
97
102
|
)
|
|
98
103
|
}
|
|
104
|
+
),
|
|
105
|
+
loading && /* @__PURE__ */ jsx(
|
|
106
|
+
"svg",
|
|
107
|
+
{
|
|
108
|
+
className: classNames(Button_module_default.loading, foregroundColorClass),
|
|
109
|
+
viewBox: "22 22 44 44",
|
|
110
|
+
width: loadingIconSize_default[size],
|
|
111
|
+
height: loadingIconSize_default[size],
|
|
112
|
+
children: /* @__PURE__ */ jsx(
|
|
113
|
+
"circle",
|
|
114
|
+
{
|
|
115
|
+
className: Button_module_default.loadingCircle,
|
|
116
|
+
cx: "44",
|
|
117
|
+
cy: "44",
|
|
118
|
+
r: "20.2",
|
|
119
|
+
fill: "none",
|
|
120
|
+
strokeWidth: "3.6"
|
|
121
|
+
}
|
|
122
|
+
)
|
|
123
|
+
}
|
|
99
124
|
)
|
|
100
125
|
]
|
|
101
126
|
}
|
|
@@ -108,4 +133,4 @@ var LinkButton_default = LinkButton;
|
|
|
108
133
|
export {
|
|
109
134
|
LinkButton_default
|
|
110
135
|
};
|
|
111
|
-
//# sourceMappingURL=
|
|
136
|
+
//# sourceMappingURL=QVOCSKIN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/LinkButton/LinkButton.tsx","css-module:../Button/Button.module.css#css-module","css-module:./LinkButton.module.css#css-module"],"sourcesContent":["import { forwardRef, type HtmlHTMLAttributes } from \"react\";\nimport classNames from \"classnames\";\nimport React from \"react\";\nimport { type Size } from \"../constants\";\nimport Typography from \"../Typography/Typography\";\nimport buttonStyles from \"../Button/Button.module.css\";\nimport iconSize from \"../Button/constants/iconSize\";\nimport textVariant from \"../Button/constants/textVariant\";\nimport loadingIconSize from \"../Button/constants/loadingIconSize\";\nimport styles from \"./LinkButton.module.css\";\nimport { backgroundColor } from \"../colors//backgroundColor\";\nimport { foregroundColor } from \"../colors/foregroundColor\";\nimport { border } from \"../colors/border\";\n\ntype LinkButtonProps = {\n /**\n * Test id for the button\n */\n \"data-testid\"?: string;\n /**\n * The text to be displayed inside the button\n */\n text: string;\n /**\n * The link that the LinkButton 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 * The color of the button\n *\n * @defaultValue \"primary\"\n */\n color?:\n | \"primary\"\n | \"secondary\"\n | \"tertiary\"\n | \"destructive-primary\"\n | \"destructive-secondary\"\n | \"destructive-tertiary\"\n | \"branded\"\n | \"success-primary\"\n | \"success-secondary\"\n | \"success-tertiary\";\n /**\n * The size of the button\n * * `sm`: 32px\n * * `md`: 48px\n * * `lg`: 64px\n *\n * @defaultValue \"md\"\n */\n size?: (typeof Size)[number];\n /**\n * If `true`, the button will be in a loading state\n *\n * @defaultValue false\n */\n loading?: boolean;\n /**\n * If `true`, the button will take up the full width of its container\n *\n * @defaultValue false\n */\n fullWidth?: boolean;\n /**\n * The icon to be displayed at the start of the button. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)\n */\n startIcon?: React.ComponentType<{ className?: string }>;\n /**\n * The icon to be displayed at the end of the button. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)\n */\n endIcon?: React.ComponentType<{ className?: string }>;\n /**\n * Indicate whether the button renders on a light or dark background. Changes the color of the button\n *\n * @defaulValue `lightBackground`\n */\n on?: \"lightBackground\" | \"darkBackground\";\n /**\n * 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\n/**\n * [LinkButton](https://cambly-syntax.vercel.app/?path=/docs/components-linkbutton--docs) is a \"variation\" of Button that should look identical to Button, but should be used to render links instead.\n */\nconst LinkButton = forwardRef<HTMLAnchorElement, LinkButtonProps>(\n (\n {\n text,\n href,\n target,\n rel,\n \"data-testid\": dataTestId,\n color = \"primary\",\n size = \"md\",\n loading = false,\n fullWidth = false,\n startIcon: StartIcon,\n endIcon: EndIcon,\n on = \"lightBackground\",\n onClick,\n }: LinkButtonProps,\n ref,\n ) => {\n const foregroundColorClass = foregroundColor(color, on);\n const backgroundColorClass = backgroundColor(color, on);\n\n return (\n <a\n href={href}\n data-testid={dataTestId}\n target={target}\n ref={ref}\n rel={rel}\n className={classNames(\n styles.linkButton,\n buttonStyles.button,\n foregroundColorClass,\n backgroundColorClass,\n border(color, on),\n buttonStyles[size],\n {\n [buttonStyles.fullWidth]: fullWidth,\n [styles.fitContent]: !fullWidth,\n [buttonStyles.buttonGap]: size === \"lg\" || size === \"md\",\n [buttonStyles.disabled]: loading,\n },\n )}\n onClick={onClick}\n >\n {!loading && StartIcon && (\n <StartIcon\n className={classNames(\n buttonStyles.icon,\n iconSize[size],\n foregroundColorClass,\n )}\n />\n )}\n {!loading && text && (\n <Typography size={textVariant[size]} weight=\"medium\">\n <span\n // Temporary - until we have cambio colors on Typogrphay\n className={foregroundColorClass}\n >\n {text}\n </span>\n </Typography>\n )}\n {!loading && EndIcon && (\n <EndIcon\n className={classNames(\n buttonStyles.icon,\n iconSize[size],\n foregroundColorClass,\n )}\n />\n )}\n {loading && (\n <svg\n className={classNames(buttonStyles.loading, foregroundColorClass)}\n viewBox=\"22 22 44 44\"\n width={loadingIconSize[size]}\n height={loadingIconSize[size]}\n >\n <circle\n className={buttonStyles.loadingCircle}\n cx=\"44\"\n cy=\"44\"\n r=\"20.2\"\n fill=\"none\"\n strokeWidth=\"3.6\"\n />\n </svg>\n )}\n </a>\n );\n },\n);\n\nLinkButton.displayName = \"LinkButton\";\n\nexport default LinkButton;\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Button/Button.module.css\"; export default {\"button\":\"_button_hjka3_1\",\"buttonGap\":\"_buttonGap_hjka3_8\",\"disabled\":\"_disabled_hjka3_42\",\"disabledPrimary\":\"_disabledPrimary_hjka3_49\",\"fullWidth\":\"_fullWidth_hjka3_53\",\"sm\":\"_sm_hjka3_57\",\"md\":\"_md_hjka3_64\",\"lg\":\"_lg_hjka3_71\",\"icon\":\"_icon_hjka3_78\",\"smIcon\":\"_smIcon_hjka3_82\",\"mdIcon\":\"_mdIcon_hjka3_89\",\"lgIcon\":\"_lgIcon_hjka3_96\",\"loading\":\"_loading_hjka3_113\",\"syntaxButtonLoadingRotate\":\"_syntaxButtonLoadingRotate_hjka3_1\",\"loadingCircle\":\"_loadingCircle_hjka3_117\"}","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/LinkButton/LinkButton.module.css\"; export default {\"linkButton\":\"_linkButton_1qjrb_1\",\"fitContent\":\"_fitContent_1qjrb_11\"}"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,kBAA2C;AACpD,OAAO,gBAAgB;;;ACDqE,IAAO,wBAAQ,EAAC,UAAS,mBAAkB,aAAY,sBAAqB,YAAW,sBAAqB,mBAAkB,6BAA4B,aAAY,uBAAsB,MAAK,gBAAe,MAAK,gBAAe,MAAK,gBAAe,QAAO,kBAAiB,UAAS,oBAAmB,UAAS,oBAAmB,UAAS,oBAAmB,WAAU,sBAAqB,6BAA4B,sCAAqC,iBAAgB,2BAA0B;;;ACAte,IAAO,4BAAQ,EAAC,cAAa,uBAAsB,cAAa,uBAAsB;;;AFyHpL,SAuBI,KAvBJ;AAvBN,IAAM,aAAa;AAAA,EACjB,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,eAAe;AAAA,IACf,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,SAAS;AAAA,IACT,KAAK;AAAA,IACL;AAAA,EACF,GACA,QACG;AACH,UAAM,uBAAuB,gBAAgB,OAAO,EAAE;AACtD,UAAM,uBAAuB,gBAAgB,OAAO,EAAE;AAEtD,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,eAAa;AAAA,QACb;AAAA,QACA;AAAA,QACA;AAAA,QACA,WAAW;AAAA,UACT,0BAAO;AAAA,UACP,sBAAa;AAAA,UACb;AAAA,UACA;AAAA,UACA,OAAO,OAAO,EAAE;AAAA,UAChB,sBAAa,IAAI;AAAA,UACjB;AAAA,YACE,CAAC,sBAAa,SAAS,GAAG;AAAA,YAC1B,CAAC,0BAAO,UAAU,GAAG,CAAC;AAAA,YACtB,CAAC,sBAAa,SAAS,GAAG,SAAS,QAAQ,SAAS;AAAA,YACpD,CAAC,sBAAa,QAAQ,GAAG;AAAA,UAC3B;AAAA,QACF;AAAA,QACA;AAAA,QAEC;AAAA,WAAC,WAAW,aACX;AAAA,YAAC;AAAA;AAAA,cACC,WAAW;AAAA,gBACT,sBAAa;AAAA,gBACb,iBAAS,IAAI;AAAA,gBACb;AAAA,cACF;AAAA;AAAA,UACF;AAAA,UAED,CAAC,WAAW,QACX,oBAAC,sBAAW,MAAM,oBAAY,IAAI,GAAG,QAAO,UAC1C;AAAA,YAAC;AAAA;AAAA,cAEC,WAAW;AAAA,cAEV;AAAA;AAAA,UACH,GACF;AAAA,UAED,CAAC,WAAW,WACX;AAAA,YAAC;AAAA;AAAA,cACC,WAAW;AAAA,gBACT,sBAAa;AAAA,gBACb,iBAAS,IAAI;AAAA,gBACb;AAAA,cACF;AAAA;AAAA,UACF;AAAA,UAED,WACC;AAAA,YAAC;AAAA;AAAA,cACC,WAAW,WAAW,sBAAa,SAAS,oBAAoB;AAAA,cAChE,SAAQ;AAAA,cACR,OAAO,wBAAgB,IAAI;AAAA,cAC3B,QAAQ,wBAAgB,IAAI;AAAA,cAE5B;AAAA,gBAAC;AAAA;AAAA,kBACC,WAAW,sBAAa;AAAA,kBACxB,IAAG;AAAA,kBACH,IAAG;AAAA,kBACH,GAAE;AAAA,kBACF,MAAK;AAAA,kBACL,aAAY;AAAA;AAAA,cACd;AAAA;AAAA,UACF;AAAA;AAAA;AAAA,IAEJ;AAAA,EAEJ;AACF;AAEA,WAAW,cAAc;AAEzB,IAAO,qBAAQ;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
RadioButton_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./K65WDLIC.js";
|
|
5
5
|
import {
|
|
6
6
|
RichSelectItem_default
|
|
7
7
|
} from "./ODMJANSX.js";
|
|
@@ -37,4 +37,4 @@ var RichSelectRadioButton_default = forwardRef(
|
|
|
37
37
|
export {
|
|
38
38
|
RichSelectRadioButton_default
|
|
39
39
|
};
|
|
40
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=RQ5XRLL6.js.map
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
ColorBaseDestructive700,
|
|
7
7
|
ColorBaseGray800
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./A5FQZ2CW.js";
|
|
9
9
|
import {
|
|
10
10
|
Focus_module_default
|
|
11
11
|
} from "./KKADUD65.js";
|
|
12
12
|
import {
|
|
13
13
|
Box_default
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./M36V23WR.js";
|
|
15
15
|
import {
|
|
16
16
|
Typography_default
|
|
17
17
|
} from "./2IXPTAJD.js";
|
|
@@ -122,4 +122,4 @@ SelectList.Option = SelectOption_default;
|
|
|
122
122
|
export {
|
|
123
123
|
SelectList
|
|
124
124
|
};
|
|
125
|
-
//# sourceMappingURL=
|
|
125
|
+
//# sourceMappingURL=SNF42PSE.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
ModalDialog_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./FVGIQTM2.js";
|
|
5
5
|
import {
|
|
6
6
|
Dialog_default
|
|
7
7
|
} from "./TZGJS522.js";
|
|
@@ -141,4 +141,4 @@ export {
|
|
|
141
141
|
AriaPopover,
|
|
142
142
|
Popover_default
|
|
143
143
|
};
|
|
144
|
-
//# sourceMappingURL=
|
|
144
|
+
//# sourceMappingURL=SSVDOCMD.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _FESAFV44cjs = require('./FESAFV44.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _XCGRNBQHcjs = require('./XCGRNBQH.cjs');
|
|
@@ -76,7 +76,7 @@ var Chip = _react.forwardRef.call(void 0,
|
|
|
76
76
|
onClick: onChange,
|
|
77
77
|
children: [
|
|
78
78
|
Icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: iconStyles }),
|
|
79
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
79
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { paddingX: Icon ? 1 : 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _XCGRNBQHcjs.Typography_default, { size: 100, color, weight: "medium", children: text }) })
|
|
80
80
|
]
|
|
81
81
|
}
|
|
82
82
|
);
|
|
@@ -88,4 +88,4 @@ var Chip_default = Chip;
|
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
exports.Chip_default = Chip_default;
|
|
91
|
-
//# sourceMappingURL=
|
|
91
|
+
//# sourceMappingURL=T2G4KRBE.cjs.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _XLUVINJWcjs = require('./XLUVINJW.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _FESAFV44cjs = require('./FESAFV44.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _XCGRNBQHcjs = require('./XCGRNBQH.cjs');
|
|
@@ -71,7 +71,7 @@ var RadioButton = ({
|
|
|
71
71
|
}
|
|
72
72
|
),
|
|
73
73
|
checked && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
74
|
-
|
|
74
|
+
_FESAFV44cjs.Box_default,
|
|
75
75
|
{
|
|
76
76
|
backgroundColor: error ? "destructive900" : "gray900",
|
|
77
77
|
width: size === "md" ? 12 : 8,
|
|
@@ -129,4 +129,4 @@ var RadioButton_default = RadioButton;
|
|
|
129
129
|
|
|
130
130
|
|
|
131
131
|
exports.RadioButton_default = RadioButton_default;
|
|
132
|
-
//# sourceMappingURL=
|
|
132
|
+
//# sourceMappingURL=T2WJJCS3.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
Box_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./M36V23WR.js";
|
|
5
5
|
|
|
6
6
|
// src/AvatarGroup/AvatarGroup.tsx
|
|
7
7
|
import {
|
|
@@ -39,4 +39,4 @@ export {
|
|
|
39
39
|
useAvatarGroup,
|
|
40
40
|
AvatarGroup
|
|
41
41
|
};
|
|
42
|
-
//# sourceMappingURL=
|
|
42
|
+
//# sourceMappingURL=T32LVZ6S.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./QQT35OLE.js";
|
|
8
8
|
import {
|
|
9
9
|
Layer
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./NMX5UDLV.js";
|
|
11
11
|
import {
|
|
12
12
|
FocusTrap
|
|
13
13
|
} from "./HVA7R2EL.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./MEOMWLNG.js";
|
|
17
17
|
import {
|
|
18
18
|
Box_default
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./M36V23WR.js";
|
|
20
20
|
|
|
21
21
|
// css-module:./Modal.module.css#css-module
|
|
22
22
|
var Modal_module_default = { "backdrop": "_backdrop_17lbk_1", "closeButton": "_closeButton_17lbk_10" };
|
|
@@ -130,4 +130,4 @@ Modal.displayName = "Modal";
|
|
|
130
130
|
export {
|
|
131
131
|
Modal
|
|
132
132
|
};
|
|
133
|
-
//# sourceMappingURL=
|
|
133
|
+
//# sourceMappingURL=T43E4BS4.js.map
|
|
@@ -5,13 +5,13 @@ var _4UJE5GMHcjs = require('./4UJE5GMH.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _YUMINZNXcjs = require('./YUMINZNX.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _XLUVINJWcjs = require('./XLUVINJW.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _FESAFV44cjs = require('./FESAFV44.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _XCGRNBQHcjs = require('./XCGRNBQH.cjs');
|
|
@@ -60,7 +60,7 @@ function SelectList({
|
|
|
60
60
|
[SelectList_module_default.opacityOverlay]: disabled
|
|
61
61
|
}),
|
|
62
62
|
children: [
|
|
63
|
-
label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: selectId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
63
|
+
label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: selectId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _XCGRNBQHcjs.Typography_default, { size: 100, color: "gray700", children: label }) }) }),
|
|
64
64
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SelectList_module_default.selectWrapper, children: [
|
|
65
65
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
66
66
|
"select",
|
|
@@ -98,14 +98,14 @@ function SelectList({
|
|
|
98
98
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
99
99
|
"path",
|
|
100
100
|
{
|
|
101
|
-
fill: errorText ?
|
|
101
|
+
fill: errorText ? _YUMINZNXcjs.ColorBaseDestructive700 : _YUMINZNXcjs.ColorBaseGray800,
|
|
102
102
|
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"
|
|
103
103
|
}
|
|
104
104
|
)
|
|
105
105
|
}
|
|
106
106
|
) })
|
|
107
107
|
] }),
|
|
108
|
-
(helperText || errorText) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
108
|
+
(helperText || errorText) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
109
109
|
_XCGRNBQHcjs.Typography_default,
|
|
110
110
|
{
|
|
111
111
|
size: 100,
|
|
@@ -122,4 +122,4 @@ SelectList.Option = _4UJE5GMHcjs.SelectOption_default;
|
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
exports.SelectList = SelectList;
|
|
125
|
-
//# sourceMappingURL=
|
|
125
|
+
//# sourceMappingURL=UK6ERDNB.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _T2G4KRBEcjs = require('./T2G4KRBE.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _RYUXG4AScjs = require('./RYUXG4AS.cjs');
|
|
@@ -16,7 +16,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
16
16
|
var RichSelectChip_default = _react.forwardRef.call(void 0,
|
|
17
17
|
function RichSelectChip(props, ref) {
|
|
18
18
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _RYUXG4AScjs.RichSelectItem_default, _X2SDR4SDcjs.__spreadProps.call(void 0, _X2SDR4SDcjs.__spreadValues.call(void 0, {}, props), { ref, children: ({ isSelected, isFocusVisible, isDisabled }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19
|
-
|
|
19
|
+
_T2G4KRBEcjs.Chip_default,
|
|
20
20
|
{
|
|
21
21
|
text: props.label,
|
|
22
22
|
selected: isSelected,
|
|
@@ -31,4 +31,4 @@ var RichSelectChip_default = _react.forwardRef.call(void 0,
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
exports.RichSelectChip_default = RichSelectChip_default;
|
|
34
|
-
//# sourceMappingURL=
|
|
34
|
+
//# sourceMappingURL=UT353VLR.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _D62L3CWMcjs = require('./D62L3CWM.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _76LTWV2Qcjs = require('./76LTWV2Q.cjs');
|
|
@@ -100,7 +100,7 @@ var Popover = _react.forwardRef.call(void 0, function Popover2(props, ref) {
|
|
|
100
100
|
} = props;
|
|
101
101
|
const modal = !children || modalProp;
|
|
102
102
|
const modalNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
103
|
-
|
|
103
|
+
_D62L3CWMcjs.ModalDialog_default,
|
|
104
104
|
{
|
|
105
105
|
accessibilityLabel,
|
|
106
106
|
accessibilityCloseLabel,
|
|
@@ -141,4 +141,4 @@ var Popover_default = Popover;
|
|
|
141
141
|
|
|
142
142
|
|
|
143
143
|
exports.AriaPopover = AriaPopover; exports.Popover_default = Popover_default;
|
|
144
|
-
//# sourceMappingURL=
|
|
144
|
+
//# sourceMappingURL=W52D7D34.cjs.map
|
|
@@ -4,26 +4,26 @@
|
|
|
4
4
|
var _C5XPZTFOcjs = require('./C5XPZTFO.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _Y2AMPQUUcjs = require('./Y2AMPQUU.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _DMA6PPUZcjs = require('./DMA6PPUZ.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _UT353VLRcjs = require('./UT353VLR.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
var _JHUEQO5Qcjs = require('./JHUEQO5Q.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _ZGI5YNKGcjs = require('./ZGI5YNKG.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _RYUXG4AScjs = require('./RYUXG4AS.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _FESAFV44cjs = require('./FESAFV44.cjs');
|
|
27
27
|
|
|
28
28
|
// src/RichSelect/RichSelectBox.tsx
|
|
29
29
|
|
|
@@ -125,7 +125,7 @@ var RichSelectBox = _react.forwardRef.call(void 0,
|
|
|
125
125
|
});
|
|
126
126
|
}, []);
|
|
127
127
|
const { autoFocus } = _react.useContext.call(void 0, RichSelectBoxContext);
|
|
128
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _RYUXG4AScjs.RichSelectItemContext.Provider, { value: { disableKey }, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
128
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _RYUXG4AScjs.RichSelectItemContext.Provider, { value: { disableKey }, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _FESAFV44cjs.Box_default, { children: [
|
|
129
129
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
130
130
|
_reactariacomponents.ListBox,
|
|
131
131
|
{
|
|
@@ -144,7 +144,7 @@ var RichSelectBox = _react.forwardRef.call(void 0,
|
|
|
144
144
|
}
|
|
145
145
|
),
|
|
146
146
|
!autosave && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
147
|
-
|
|
147
|
+
_FESAFV44cjs.Box_default,
|
|
148
148
|
{
|
|
149
149
|
backgroundColor: "white",
|
|
150
150
|
display: "flex",
|
|
@@ -159,9 +159,9 @@ var RichSelectBox = _react.forwardRef.call(void 0,
|
|
|
159
159
|
}
|
|
160
160
|
},
|
|
161
161
|
children: [
|
|
162
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
162
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { flex: "grow", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _DMA6PPUZcjs.Divider, {}) }),
|
|
163
163
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
164
|
-
|
|
164
|
+
_FESAFV44cjs.Box_default,
|
|
165
165
|
{
|
|
166
166
|
paddingY: 5,
|
|
167
167
|
marginTop: -5,
|
|
@@ -169,7 +169,7 @@ var RichSelectBox = _react.forwardRef.call(void 0,
|
|
|
169
169
|
justifyContent: "end",
|
|
170
170
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _C5XPZTFOcjs.ButtonGroup_default, { orientation: "horizontal", children: [
|
|
171
171
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
172
|
-
|
|
172
|
+
_Y2AMPQUUcjs.Button_default,
|
|
173
173
|
{
|
|
174
174
|
onClick: clearChanges,
|
|
175
175
|
color: "secondary",
|
|
@@ -179,7 +179,7 @@ var RichSelectBox = _react.forwardRef.call(void 0,
|
|
|
179
179
|
}
|
|
180
180
|
),
|
|
181
181
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
182
|
-
|
|
182
|
+
_Y2AMPQUUcjs.Button_default,
|
|
183
183
|
{
|
|
184
184
|
onClick: saveChanges,
|
|
185
185
|
text: primaryButtonText,
|
|
@@ -199,8 +199,8 @@ var RichSelectBox = _react.forwardRef.call(void 0,
|
|
|
199
199
|
);
|
|
200
200
|
var RichSelectBox_default = Object.assign(RichSelectBox, {
|
|
201
201
|
Section: _JHUEQO5Qcjs.RichSelectSection_default,
|
|
202
|
-
Chip:
|
|
203
|
-
RadioButton:
|
|
202
|
+
Chip: _UT353VLRcjs.RichSelectChip_default,
|
|
203
|
+
RadioButton: _ZGI5YNKGcjs.RichSelectRadioButton_default
|
|
204
204
|
});
|
|
205
205
|
|
|
206
206
|
|
|
@@ -208,4 +208,4 @@ var RichSelectBox_default = Object.assign(RichSelectBox, {
|
|
|
208
208
|
|
|
209
209
|
|
|
210
210
|
exports.convertSelection = convertSelection; exports.RichSelectBoxContext = RichSelectBoxContext; exports.RichSelectBox_default = RichSelectBox_default;
|
|
211
|
-
//# sourceMappingURL=
|
|
211
|
+
//# sourceMappingURL=X67IWLZJ.cjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _5JUNB754cjs = require('./5JUNB754.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _3P2PWHOUcjs = require('./3P2PWHOU.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _BHN2OODFcjs = require('./BHN2OODF.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _MKZONAGTcjs = require('./MKZONAGT.cjs');
|
|
@@ -19,7 +19,7 @@ var _C3KZXHTVcjs = require('./C3KZXHTV.cjs');
|
|
|
19
19
|
var _RAL6R27Scjs = require('./RAL6R27S.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _FESAFV44cjs = require('./FESAFV44.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _XCGRNBQHcjs = require('./XCGRNBQH.cjs');
|
|
@@ -32,7 +32,7 @@ var _react = require('react');
|
|
|
32
32
|
var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames);
|
|
33
33
|
|
|
34
34
|
// css-module:./Button.module.css#css-module
|
|
35
|
-
var Button_module_default = { "button": "
|
|
35
|
+
var Button_module_default = { "button": "_button_hjka3_1", "buttonGap": "_buttonGap_hjka3_8", "disabled": "_disabled_hjka3_42", "disabledPrimary": "_disabledPrimary_hjka3_49", "fullWidth": "_fullWidth_hjka3_53", "sm": "_sm_hjka3_57", "md": "_md_hjka3_64", "lg": "_lg_hjka3_71", "icon": "_icon_hjka3_78", "smIcon": "_smIcon_hjka3_82", "mdIcon": "_mdIcon_hjka3_89", "lgIcon": "_lgIcon_hjka3_96", "loading": "_loading_hjka3_113", "syntaxButtonLoadingRotate": "_syntaxButtonLoadingRotate_hjka3_1", "loadingCircle": "_loadingCircle_hjka3_117" };
|
|
36
36
|
|
|
37
37
|
// src/Button/Button.tsx
|
|
38
38
|
var _jsxruntime = require('react/jsx-runtime');
|
|
@@ -58,6 +58,7 @@ var Button = _react.forwardRef.call(void 0,
|
|
|
58
58
|
const foregroundColorClass = _MKZONAGTcjs.foregroundColor.call(void 0, color, on);
|
|
59
59
|
const backgroundColorClass = _RAL6R27Scjs.backgroundColor.call(void 0, color, on);
|
|
60
60
|
const disabledPrimary = color === "primary" && disabled;
|
|
61
|
+
const isDisabled = !isHydrated || disabled || loading;
|
|
61
62
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
62
63
|
"button",
|
|
63
64
|
{
|
|
@@ -66,7 +67,7 @@ var Button = _react.forwardRef.call(void 0,
|
|
|
66
67
|
"aria-label": accessibilityLabel,
|
|
67
68
|
type,
|
|
68
69
|
title: tooltip,
|
|
69
|
-
disabled:
|
|
70
|
+
disabled: isDisabled,
|
|
70
71
|
onClick,
|
|
71
72
|
className: _classnames2.default.call(void 0,
|
|
72
73
|
Button_module_default.button,
|
|
@@ -76,7 +77,8 @@ var Button = _react.forwardRef.call(void 0,
|
|
|
76
77
|
Button_module_default[size],
|
|
77
78
|
{
|
|
78
79
|
[Button_module_default.fullWidth]: fullWidth,
|
|
79
|
-
[Button_module_default.buttonGap]: size === "lg" || size === "md"
|
|
80
|
+
[Button_module_default.buttonGap]: size === "lg" || size === "md",
|
|
81
|
+
[Button_module_default.disabled]: isDisabled
|
|
80
82
|
}
|
|
81
83
|
),
|
|
82
84
|
children: [
|
|
@@ -85,12 +87,12 @@ var Button = _react.forwardRef.call(void 0,
|
|
|
85
87
|
{
|
|
86
88
|
className: _classnames2.default.call(void 0,
|
|
87
89
|
Button_module_default.icon,
|
|
88
|
-
|
|
90
|
+
_BHN2OODFcjs.iconSize_default[size],
|
|
89
91
|
disabledPrimary && Button_module_default.disabledPrimary
|
|
90
92
|
)
|
|
91
93
|
}
|
|
92
94
|
),
|
|
93
|
-
(loading && loadingText || !loading && text) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
95
|
+
(loading && loadingText || !loading && text) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _XCGRNBQHcjs.Typography_default, { size: _5JUNB754cjs.textVariant_default[size], weight: "medium", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
94
96
|
"span",
|
|
95
97
|
{
|
|
96
98
|
className: _classnames2.default.call(void 0,
|
|
@@ -105,7 +107,7 @@ var Button = _react.forwardRef.call(void 0,
|
|
|
105
107
|
{
|
|
106
108
|
className: _classnames2.default.call(void 0,
|
|
107
109
|
Button_module_default.icon,
|
|
108
|
-
|
|
110
|
+
_BHN2OODFcjs.iconSize_default[size],
|
|
109
111
|
disabledPrimary && Button_module_default.disabledPrimary
|
|
110
112
|
)
|
|
111
113
|
}
|
|
@@ -141,4 +143,4 @@ var Button_default = Button;
|
|
|
141
143
|
|
|
142
144
|
|
|
143
145
|
exports.Button_default = Button_default;
|
|
144
|
-
//# sourceMappingURL=
|
|
146
|
+
//# sourceMappingURL=Y2AMPQUU.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Button/Button.tsx","css-module:./Button.module.css#css-module"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,kBAAkB;AAClC,OAAO,gBAAgB;;;ACDqE,IAAO,wBAAQ,EAAC,UAAS,mBAAkB,aAAY,sBAAqB,YAAW,sBAAqB,mBAAkB,6BAA4B,aAAY,uBAAsB,MAAK,gBAAe,MAAK,gBAAe,MAAK,gBAAe,QAAO,kBAAiB,UAAS,oBAAmB,UAAS,oBAAmB,UAAS,oBAAmB,WAAU,sBAAqB,6BAA4B,sCAAqC,iBAAgB,2BAA0B;;;ADuIpkB,SAsBI,KAtBJ;AA7BN,IAAM,SAAS;AAAA,EACb,CACE;AAAA,IACE,eAAe;AAAA,IACf;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,IACR,OAAO;AAAA,IACP;AAAA,IACA,WAAW;AAAA,IACX,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,SAAS;AAAA,IACT,KAAK;AAAA,IACL;AAAA,IACA;AAAA,IACA,OAAO;AAAA,EACT,GACA,QACG;AACH,UAAM,aAAa,cAAc;AAEjC,UAAM,uBAAuB,gBAAgB,OAAO,EAAE;AACtD,UAAM,uBAAuB,gBAAgB,OAAO,EAAE;AACtD,UAAM,kBAAkB,UAAU,aAAa;AAC/C,UAAM,aAAa,CAAC,cAAc,YAAY;AAE9C,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAa;AAAA,QACb;AAAA,QACA,cAAY;AAAA,QACZ;AAAA,QACA,OAAO;AAAA,QACP,UAAU;AAAA,QACV;AAAA,QACA,WAAW;AAAA,UACT,sBAAO;AAAA,UACP;AAAA,UACA;AAAA,UACA,OAAO,OAAO,EAAE;AAAA,UAChB,sBAAO,IAAI;AAAA,UACX;AAAA,YACE,CAAC,sBAAO,SAAS,GAAG;AAAA,YACpB,CAAC,sBAAO,SAAS,GAAG,SAAS,QAAQ,SAAS;AAAA,YAC9C,CAAC,sBAAO,QAAQ,GAAG;AAAA,UACrB;AAAA,QACF;AAAA,QAEC;AAAA,WAAC,WAAW,aACX;AAAA,YAAC;AAAA;AAAA,cACC,WAAW;AAAA,gBACT,sBAAO;AAAA,gBACP,iBAAS,IAAI;AAAA,gBACb,mBAAmB,sBAAO;AAAA,cAC5B;AAAA;AAAA,UACF;AAAA,WAEC,WAAW,eAAiB,CAAC,WAAW,SACzC,oBAAC,eAAI,UAAU,GACb,8BAAC,sBAAW,MAAM,oBAAY,IAAI,GAAG,QAAO,UAC1C;AAAA,YAAC;AAAA;AAAA,cACC,WAAW;AAAA,gBACT;AAAA,gBACA,mBAAmB,sBAAO;AAAA,cAC5B;AAAA,cAEC,oBAAU,cAAc;AAAA;AAAA,UAC3B,GACF,GACF;AAAA,UAED,CAAC,WAAW,WACX;AAAA,YAAC;AAAA;AAAA,cACC,WAAW;AAAA,gBACT,sBAAO;AAAA,gBACP,iBAAS,IAAI;AAAA,gBACb,mBAAmB,sBAAO;AAAA,cAC5B;AAAA;AAAA,UACF;AAAA,UAED,WACC;AAAA,YAAC;AAAA;AAAA,cACC,WAAW,WAAW,sBAAO,SAAS,oBAAoB;AAAA,cAC1D,SAAQ;AAAA,cACR,OAAO,wBAAgB,IAAI;AAAA,cAC3B,QAAQ,wBAAgB,IAAI;AAAA,cAE5B;AAAA,gBAAC;AAAA;AAAA,kBACC,WAAW,sBAAO;AAAA,kBAClB,IAAG;AAAA,kBACH,IAAG;AAAA,kBACH,GAAE;AAAA,kBACF,MAAK;AAAA,kBACL,aAAY;AAAA;AAAA,cACd;AAAA;AAAA,UACF;AAAA;AAAA;AAAA,IAEJ;AAAA,EAEJ;AACF;AAEA,OAAO,cAAc;AAErB,IAAO,iBAAQ","sourcesContent":["import React, { forwardRef } from \"react\";\nimport classNames from \"classnames\";\nimport { type Size } from \"../constants\";\nimport Typography from \"../Typography/Typography\";\nimport Box from \"../Box/Box\";\nimport iconSize from \"./constants/iconSize\";\nimport textVariant from \"./constants/textVariant\";\nimport loadingIconSize from \"./constants/loadingIconSize\";\nimport styles from \"./Button.module.css\";\nimport useIsHydrated from \"../useIsHydrated\";\nimport { backgroundColor } from \"../colors/backgroundColor\";\nimport { foregroundColor } from \"../colors/foregroundColor\";\nimport { border } from \"../colors/border\";\n\ntype ButtonProps = {\n /**\n * Test id for the button\n */\n \"data-testid\"?: string;\n /**\n * The text to be displayed inside the button\n */\n text: string;\n /**\n * The text to be displayed inside the button when it is in a loading state\n */\n loadingText?: string;\n /**\n * The color of the button\n *\n * @defaultValue \"primary\"\n */\n color?:\n | \"primary\"\n | \"secondary\"\n | \"tertiary\"\n | \"destructive-primary\"\n | \"destructive-secondary\"\n | \"destructive-tertiary\"\n | \"branded\"\n | \"success-primary\"\n | \"success-secondary\"\n | \"success-tertiary\";\n /**\n * The size of the button\n *\n * * `sm`: 32px\n * * `md`: 48px\n * * `lg`: 64px\n *\n * @defaultValue \"md\"\n */\n size?: (typeof Size)[number];\n /**\n * The label to be used for accessibility\n */\n accessibilityLabel?: string;\n /**\n * If `true`, the button will be disabled\n *\n * @defaultValue false\n */\n disabled?: boolean;\n /**\n * If `true`, the button will be in a loading state\n *\n * @defaultValue false\n */\n loading?: boolean;\n /**\n * If `true`, the button will take up the full width of its container\n *\n * @defaultValue false\n */\n fullWidth?: boolean;\n /**\n * The icon to be displayed at the start of the button. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)\n */\n startIcon?: React.ComponentType<{ className?: string }>;\n /**\n * The icon to be displayed at the end of the button. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)\n */\n endIcon?: React.ComponentType<{ className?: string }>;\n /**\n * Indicate whether the button renders on a light or dark background. Changes the color of the button\n *\n * @defaulValue `lightBackground`\n */\n on?: \"lightBackground\" | \"darkBackground\";\n /**\n * The callback to be called when the button is clicked\n */\n onClick?: React.MouseEventHandler<HTMLButtonElement>;\n /**\n * The tooltip to be displayed when the user hovers over the button\n */\n tooltip?: string;\n /**\n * The type you want to set for the primitive `<button/>`\n */\n type?: \"button\" | \"submit\" | \"reset\";\n};\n\n/**\n * [Button](https://cambly-syntax.vercel.app/?path=/docs/components-button--docs) is used to trigger an action or event, such as submitting a form, opening a dialog, canceling an action, or performing a delete operation.\n */\nconst Button = forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n \"data-testid\": dataTestId,\n text,\n loadingText,\n color = \"primary\",\n size = \"md\",\n accessibilityLabel,\n disabled = false,\n loading = false,\n fullWidth = false,\n startIcon: StartIcon,\n endIcon: EndIcon,\n on = \"lightBackground\",\n onClick,\n tooltip,\n type = \"button\",\n }: ButtonProps,\n ref,\n ) => {\n const isHydrated = useIsHydrated();\n\n const foregroundColorClass = foregroundColor(color, on);\n const backgroundColorClass = backgroundColor(color, on);\n const disabledPrimary = color === \"primary\" && disabled;\n const isDisabled = !isHydrated || disabled || loading;\n\n return (\n <button\n data-testid={dataTestId}\n ref={ref}\n aria-label={accessibilityLabel}\n type={type}\n title={tooltip}\n disabled={isDisabled}\n onClick={onClick}\n className={classNames(\n styles.button,\n foregroundColorClass,\n backgroundColorClass,\n border(color, on),\n styles[size],\n {\n [styles.fullWidth]: fullWidth,\n [styles.buttonGap]: size === \"lg\" || size === \"md\",\n [styles.disabled]: isDisabled,\n },\n )}\n >\n {!loading && StartIcon && (\n <StartIcon\n className={classNames(\n styles.icon,\n iconSize[size],\n disabledPrimary && styles.disabledPrimary,\n )}\n />\n )}\n {((loading && loadingText) || (!loading && text)) && (\n <Box paddingX={1}>\n <Typography size={textVariant[size]} weight=\"medium\">\n <span\n className={classNames(\n foregroundColorClass,\n disabledPrimary && styles.disabledPrimary,\n )}\n >\n {loading ? loadingText : text}\n </span>\n </Typography>\n </Box>\n )}\n {!loading && EndIcon && (\n <EndIcon\n className={classNames(\n styles.icon,\n iconSize[size],\n disabledPrimary && styles.disabledPrimary,\n )}\n />\n )}\n {loading && (\n <svg\n className={classNames(styles.loading, foregroundColorClass)}\n viewBox=\"22 22 44 44\"\n width={loadingIconSize[size]}\n height={loadingIconSize[size]}\n >\n <circle\n className={styles.loadingCircle}\n cx=\"44\"\n cy=\"44\"\n r=\"20.2\"\n fill=\"none\"\n strokeWidth=\"3.6\"\n />\n </svg>\n )}\n </button>\n );\n },\n);\n\nButton.displayName = \"Button\";\n\nexport default Button;\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Button/Button.module.css\"; export default {\"button\":\"_button_hjka3_1\",\"buttonGap\":\"_buttonGap_hjka3_8\",\"disabled\":\"_disabled_hjka3_42\",\"disabledPrimary\":\"_disabledPrimary_hjka3_49\",\"fullWidth\":\"_fullWidth_hjka3_53\",\"sm\":\"_sm_hjka3_57\",\"md\":\"_md_hjka3_64\",\"lg\":\"_lg_hjka3_71\",\"icon\":\"_icon_hjka3_78\",\"smIcon\":\"_smIcon_hjka3_82\",\"mdIcon\":\"_mdIcon_hjka3_89\",\"lgIcon\":\"_lgIcon_hjka3_96\",\"loading\":\"_loading_hjka3_113\",\"syntaxButtonLoadingRotate\":\"_syntaxButtonLoadingRotate_hjka3_1\",\"loadingCircle\":\"_loadingCircle_hjka3_117\"}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"names":[],"mappings":";;;AASO,IAAM,0BAA0B;AAWhC,IAAM,mBAAmB","sourcesContent":["/**\n * Do not edit directly\n * Generated on Mon,
|
|
1
|
+
{"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"names":[],"mappings":";;;AASO,IAAM,0BAA0B;AAWhC,IAAM,mBAAmB","sourcesContent":["/**\n * Do not edit directly\n * Generated on Mon, 15 Apr 2024 21:54:12 GMT\n */\n\nexport const ColorBaseBlack = \"#000000\";\nexport const ColorBaseDestructive100 = \"#fef3f5\";\nexport const ColorBaseDestructive200 = \"#fad6de\";\nexport const ColorBaseDestructive300 = \"#f2a2b2\";\nexport const ColorBaseDestructive700 = \"#d32a4b\";\nexport const ColorBaseDestructive800 = \"#81162c\";\nexport const ColorBaseDestructive900 = \"#55101d\";\nexport const ColorBaseGray10 = \"#cbcbcb\"; // Used as the default color for dividers and inner strokes\nexport const ColorBaseGray30 = \"#000000\"; // For IconButton background when on top of an image\nexport const ColorBaseGray60 = \"#000000\"; // Used for icon background in classroom video grid\nexport const ColorBaseGray80 = \"#000000\"; // Used as the background for modals\nexport const ColorBaseGray100 = \"#f7f7f7\";\nexport const ColorBaseGray200 = \"#f0f0f0\"; // Used for light mode backgrounds when showing card content on top\nexport const ColorBaseGray300 = \"#d0d0d0\"; // Used for component outlines, eg: select and textfield\nexport const ColorBaseGray700 = \"#767676\"; // For secondary text in light mode\nexport const ColorBaseGray800 = \"#353535\";\nexport const ColorBaseGray900 = \"#191919\"; // Default text color, Classroom background\nexport const ColorBaseOrange100 = \"#fdf2f0\";\nexport const ColorBaseOrange200 = \"#f6cdc4\";\nexport const ColorBaseOrange300 = \"#ec9987\";\nexport const ColorBaseOrange700 = \"#c34124\";\nexport const ColorBaseOrange800 = \"#732818\";\nexport const ColorBaseOrange900 = \"#4d1a10\";\nexport const ColorBasePrimary100 = \"#eff6fa\";\nexport const ColorBasePrimary200 = \"#c1dbe7\";\nexport const ColorBasePrimary300 = \"#84b7d0\";\nexport const ColorBasePrimary700 = \"#236482\";\nexport const ColorBasePrimary800 = \"#274858\";\nexport const ColorBasePrimary900 = \"#1b303b\";\nexport const ColorBaseSuccess100 = \"#eff7f1\";\nexport const ColorBaseSuccess200 = \"#bddcc6\";\nexport const ColorBaseSuccess300 = \"#81ba92\";\nexport const ColorBaseSuccess700 = \"#397b4d\";\nexport const ColorBaseSuccess800 = \"#2d4936\";\nexport const ColorBaseSuccess900 = \"#1e3124\";\nexport const ColorBasePurple100 = \"#f9f5fa\";\nexport const ColorBasePurple200 = \"#e8dceb\";\nexport const ColorBasePurple300 = \"#cdb4d3\";\nexport const ColorBasePurple700 = \"#8b5f95\";\nexport const ColorBasePurple800 = \"#523b58\";\nexport const ColorBasePurple900 = \"#37273b\";\nexport const ColorBaseYellow100 = \"#fdf5d9\";\nexport const ColorBaseYellow200 = \"#fbe8a3\";\nexport const ColorBaseYellow300 = \"#f8d663\";\nexport const ColorBaseYellow700 = \"#ffc929\";\nexport const ColorBaseYellow800 = \"#765f1c\";\nexport const ColorBaseYellow900 = \"#3b3009\";\nexport const ColorBaseWhite = \"#ffffff\";\nexport const ColorCambioBlack = \"#050500\";\nexport const ColorCambioWhite = \"#ffffff\";\nexport const ColorCambioGray100 = \"#faf4eb\";\nexport const ColorCambioGray200 = \"#e4dbd3\";\nexport const ColorCambioGray300 = \"#beb4ab\";\nexport const ColorCambioGray370 = \"#beb4ab\";\nexport const ColorCambioGray700 = \"#888077\";\nexport const ColorCambioGray800 = \"#5c554d\";\nexport const ColorCambioGray870 = \"#5c554d\";\nexport const ColorCambioGray900 = \"#312b23\";\nexport const ColorCambioDestructive100 = \"#ffdeda\";\nexport const ColorCambioDestructive300 = \"#ff8071\";\nexport const ColorCambioDestructive370 = \"#ff8071\";\nexport const ColorCambioDestructive700 = \"#c93f32\";\nexport const ColorCambioDestructive770 = \"#c93f32\";\nexport const ColorCambioDestructive900 = \"#6d0002\";\nexport const ColorCambioSuccess100 = \"#daf2c8\";\nexport const ColorCambioSuccess300 = \"#84ce64\";\nexport const ColorCambioSuccess370 = \"#84ce64\";\nexport const ColorCambioSuccess700 = \"#3c7f20\";\nexport const ColorCambioSuccess770 = \"#3c7f20\";\nexport const ColorCambioSuccess900 = \"#103e00\";\nexport const ColorCambioRed = \"#f56e56\";\nexport const ColorCambioOrange = \"#ff8f57\";\nexport const ColorCambioTan = \"#ffb47d\";\nexport const ColorCambioCream = \"#fffad1\";\nexport const ColorCambioPurple = \"#6840a8\";\nexport const ColorCambioLilac = \"#b59ef0\";\nexport const ColorCambioThistle = \"#d69ca4\";\nexport const ColorCambioPink = \"#ffccea\";\nexport const ColorCambioNavy = \"#191142\";\nexport const ColorCambioTeal = \"#44a6cf\";\nexport const ColorCambioSlate = \"#7c9fc6\";\nexport const ColorCambioSky = \"#b1e8fc\";\nexport const ColorCambioYellow700 = \"#ffe733\";\nexport const ColorCambioTransparentFull = \"#000000\";\nexport const Elevation400 = \"0px 16px 32px 0px #00000040\";\nexport const SyntaxFontSansSerif = \"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif\";\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _T2WJJCS3cjs = require('./T2WJJCS3.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _RYUXG4AScjs = require('./RYUXG4AS.cjs');
|
|
@@ -19,7 +19,7 @@ var RichSelectRadioButton_default = _react.forwardRef.call(void 0,
|
|
|
19
19
|
function RichSelectRadioButton(props, ref) {
|
|
20
20
|
const _a = props, { size, name } = _a, otherProps = _X2SDR4SDcjs.__objRest.call(void 0, _a, ["size", "name"]);
|
|
21
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
|
-
|
|
22
|
+
_T2WJJCS3cjs.RadioButton_default,
|
|
23
23
|
{
|
|
24
24
|
checked: isSelected,
|
|
25
25
|
disabled: isDisabled,
|
|
@@ -37,4 +37,4 @@ var RichSelectRadioButton_default = _react.forwardRef.call(void 0,
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
exports.RichSelectRadioButton_default = RichSelectRadioButton_default;
|
|
40
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=ZGI5YNKG.cjs.map
|