@cambly/syntax-core 15.6.0 → 16.0.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/Badge/Badge.cjs +4 -4
- package/dist/Badge/Badge.d.ts +1 -1
- package/dist/Badge/Badge.js +3 -3
- package/dist/Button/Button.cjs +5 -5
- package/dist/Button/Button.js +4 -4
- package/dist/Button/constants/iconSize.cjs +4 -2
- package/dist/Button/constants/iconSize.d.ts +7 -2
- package/dist/Button/constants/iconSize.js +5 -3
- package/dist/Card/Card.cjs +2 -2
- package/dist/Card/Card.d.ts +3 -2
- package/dist/Card/Card.js +3 -3
- package/dist/Checkbox/Checkbox.cjs +4 -4
- package/dist/Checkbox/Checkbox.js +3 -3
- package/dist/Chip/Chip.cjs +4 -4
- package/dist/Chip/Chip.js +3 -3
- package/dist/Dialog/ModalDialog.cjs +4 -3
- package/dist/Dialog/ModalDialog.css +100 -11
- package/dist/Dialog/ModalDialog.css.map +1 -1
- package/dist/Dialog/ModalDialog.js +3 -2
- package/dist/Heading/Heading.cjs +4 -4
- package/dist/Heading/Heading.js +3 -3
- package/dist/Icon/Icon.cjs +3 -3
- package/dist/Icon/Icon.css +29 -5
- package/dist/Icon/Icon.css.map +1 -1
- package/dist/Icon/Icon.d.ts +12 -6
- package/dist/Icon/Icon.js +2 -2
- package/dist/IconButton/IconButton.cjs +3 -2
- package/dist/IconButton/IconButton.css +100 -11
- package/dist/IconButton/IconButton.css.map +1 -1
- package/dist/IconButton/IconButton.js +2 -1
- package/dist/LinkButton/LinkButton.cjs +5 -5
- package/dist/LinkButton/LinkButton.js +4 -4
- package/dist/Modal/Modal.cjs +7 -6
- package/dist/Modal/Modal.css +100 -11
- package/dist/Modal/Modal.css.map +1 -1
- package/dist/Modal/Modal.js +6 -5
- package/dist/Popover/Popover.cjs +5 -4
- package/dist/Popover/Popover.css +100 -11
- package/dist/Popover/Popover.css.map +1 -1
- package/dist/Popover/Popover.js +4 -3
- package/dist/RadioButton/RadioButton.cjs +4 -4
- package/dist/RadioButton/RadioButton.js +3 -3
- package/dist/RichSelect/RichSelectBox.cjs +11 -11
- package/dist/RichSelect/RichSelectBox.js +10 -10
- package/dist/RichSelect/RichSelectChip.cjs +5 -5
- package/dist/RichSelect/RichSelectChip.js +4 -4
- package/dist/RichSelect/RichSelectList.cjs +16 -16
- package/dist/RichSelect/RichSelectList.css +100 -99
- package/dist/RichSelect/RichSelectList.css.map +1 -1
- package/dist/RichSelect/RichSelectList.js +15 -15
- package/dist/RichSelect/RichSelectRadioButton.cjs +5 -5
- package/dist/RichSelect/RichSelectRadioButton.js +4 -4
- package/dist/RichSelect/RichSelectSection.cjs +4 -4
- package/dist/RichSelect/RichSelectSection.js +3 -3
- package/dist/SelectList/SelectList.cjs +5 -5
- package/dist/SelectList/SelectList.js +4 -4
- package/dist/Tabs/TabButton.cjs +5 -5
- package/dist/Tabs/TabButton.js +4 -4
- package/dist/Tabs/TabInternal.cjs +4 -4
- package/dist/Tabs/TabInternal.js +3 -3
- package/dist/Tabs/TabLink.cjs +5 -5
- package/dist/Tabs/TabLink.js +4 -4
- package/dist/Tabs/Tabs.cjs +7 -7
- package/dist/Tabs/Tabs.js +6 -6
- package/dist/TextArea/TextArea.cjs +4 -4
- package/dist/TextArea/TextArea.css +9 -9
- package/dist/TextArea/TextArea.css.map +1 -1
- package/dist/TextArea/TextArea.js +3 -3
- package/dist/TextField/TextField.cjs +4 -4
- package/dist/TextField/TextField.css +9 -9
- package/dist/TextField/TextField.css.map +1 -1
- package/dist/TextField/TextField.js +3 -3
- package/dist/Tooltip/Tooltip.cjs +4 -4
- package/dist/Tooltip/Tooltip.js +3 -3
- package/dist/Typography/Typography.cjs +3 -3
- package/dist/Typography/Typography.js +2 -2
- package/dist/__chunks/{4X7ZC3WT.js → 2GCKYKF3.js} +9 -8
- package/dist/__chunks/2GCKYKF3.js.map +1 -0
- package/dist/__chunks/{JEP2SN7W.cjs → 2PWZPH3R.cjs} +3 -3
- package/dist/__chunks/{LNLOBEMH.cjs → 32CNLC3O.cjs} +3 -3
- package/dist/__chunks/{ZJS5MEKE.cjs → 3TF4GQNL.cjs} +3 -3
- package/dist/__chunks/{M7KSUTKJ.cjs → 3Z5DP4X3.cjs} +5 -5
- package/dist/__chunks/{M7KSUTKJ.cjs.map → 3Z5DP4X3.cjs.map} +1 -1
- package/dist/__chunks/{3BGIBVCR.cjs → 42SXZKBG.cjs} +3 -3
- package/dist/__chunks/{RU5JUMYC.cjs → 43ZVOHDU.cjs} +1 -1
- package/dist/__chunks/{RU5JUMYC.cjs.map → 43ZVOHDU.cjs.map} +1 -1
- package/dist/__chunks/{5RXHG6S5.js → 4C7SU3EM.js} +5 -5
- package/dist/__chunks/{NJ7VV2CH.cjs → 4ENILLBC.cjs} +4 -4
- package/dist/__chunks/{NJ7VV2CH.cjs.map → 4ENILLBC.cjs.map} +1 -1
- package/dist/__chunks/{JL2NIWMQ.js → 4JPHMF5K.js} +4 -4
- package/dist/__chunks/{JL2NIWMQ.js.map → 4JPHMF5K.js.map} +1 -1
- package/dist/__chunks/{BHN2OODF.cjs → 4Y7TNMFL.cjs} +9 -4
- package/dist/__chunks/4Y7TNMFL.cjs.map +1 -0
- package/dist/__chunks/{5CSS7BNE.cjs → 5IOCCDL6.cjs} +10 -10
- package/dist/__chunks/{HUN4OGO5.js → 5KCDVRT6.js} +2 -2
- package/dist/__chunks/{I7BXC2FH.cjs → 6VB3H32I.cjs} +6 -6
- package/dist/__chunks/{P3W4SW6R.cjs → 6ZBLF7S2.cjs} +3 -3
- package/dist/__chunks/{J5NZ55OT.cjs → 7AVZDFCS.cjs} +3 -3
- package/dist/__chunks/{NFSZQICF.cjs → B3O42V6X.cjs} +4 -4
- package/dist/__chunks/{NVHCU2CO.cjs → B3ZOLJLG.cjs} +6 -6
- package/dist/__chunks/{NVHCU2CO.cjs.map → B3ZOLJLG.cjs.map} +1 -1
- package/dist/__chunks/{BS5FRXYG.js → B64Z54QN.js} +2 -2
- package/dist/__chunks/{4DZD4SDJ.js → BB3LT6KA.js} +3 -3
- package/dist/__chunks/{CDU5TH7Y.cjs → BFODXGGO.cjs} +3 -3
- package/dist/__chunks/{VMY3X6VX.js → BG3VB5JF.js} +2 -2
- package/dist/__chunks/{CB66GOW7.js → BXKO34RQ.js} +2 -2
- package/dist/__chunks/{ZYWRMB4F.js → C22XFS4G.js} +2 -2
- package/dist/__chunks/{RE6LUYXB.js → CHMPCLBE.js} +2 -2
- package/dist/__chunks/DCGTTQAX.js +37 -0
- package/dist/__chunks/DCGTTQAX.js.map +1 -0
- package/dist/__chunks/{YPL2E6XO.js → DISIWYT4.js} +3 -3
- package/dist/__chunks/{T6T5FJWJ.js → DJ6I4764.js} +13 -8
- package/dist/__chunks/DJ6I4764.js.map +1 -0
- package/dist/__chunks/{NKGOCFTT.js → E3N5573J.js} +3 -3
- package/dist/__chunks/{NKGOCFTT.js.map → E3N5573J.js.map} +1 -1
- package/dist/__chunks/{C7PW7CPK.js → EH75XYWO.js} +9 -4
- package/dist/__chunks/{C7PW7CPK.js.map → EH75XYWO.js.map} +1 -1
- package/dist/__chunks/{JBFY4F7V.js → EJ2RDUTA.js} +2 -2
- package/dist/__chunks/{MDQYGGZO.cjs → F7FFR34L.cjs} +4 -4
- package/dist/__chunks/{MDQYGGZO.cjs.map → F7FFR34L.cjs.map} +1 -1
- package/dist/__chunks/{OY5QYJVA.cjs → FIPWIWEO.cjs} +9 -8
- package/dist/__chunks/FIPWIWEO.cjs.map +1 -0
- package/dist/__chunks/{RD4EXZDZ.cjs → G4CKRMFW.cjs} +19 -19
- package/dist/__chunks/{262KRHP5.js → GQBD6AND.js} +4 -4
- package/dist/__chunks/{262KRHP5.js.map → GQBD6AND.js.map} +1 -1
- package/dist/__chunks/{CUUBDICM.js → HAXNGRII.js} +1 -1
- package/dist/__chunks/{CUUBDICM.js.map → HAXNGRII.js.map} +1 -1
- package/dist/__chunks/{6AOPOPJT.cjs → J2D7XRV7.cjs} +7 -7
- package/dist/__chunks/{6AOPOPJT.cjs.map → J2D7XRV7.cjs.map} +1 -1
- package/dist/__chunks/{ZPV4YBFX.cjs → KA6GROBD.cjs} +3 -3
- package/dist/__chunks/{ONTB6T6K.cjs → KFQOJ7RG.cjs} +5 -5
- package/dist/__chunks/{TLTSRB3H.js → KGGNBWMV.js} +3 -3
- package/dist/__chunks/{TLTSRB3H.js.map → KGGNBWMV.js.map} +1 -1
- package/dist/__chunks/L32D5WEG.cjs +37 -0
- package/dist/__chunks/L32D5WEG.cjs.map +1 -0
- package/dist/__chunks/{DRQYQTCA.js → NPUDOII6.js} +2 -2
- package/dist/__chunks/{JWGD2JGX.js → NVTSF5NY.js} +2 -2
- package/dist/__chunks/{JWGD2JGX.js.map → NVTSF5NY.js.map} +1 -1
- package/dist/__chunks/{X34FPOWI.cjs → O54TUH3V.cjs} +9 -8
- package/dist/__chunks/O54TUH3V.cjs.map +1 -0
- package/dist/__chunks/{J7224OUT.cjs → OJKBVPRV.cjs} +3 -3
- package/dist/__chunks/{ZAB5SOZP.js → P7YFSOS7.js} +3 -3
- package/dist/__chunks/P7YFSOS7.js.map +1 -0
- package/dist/__chunks/{SW2JQXU6.cjs → POMJQZKJ.cjs} +2 -2
- package/dist/__chunks/{SW2JQXU6.cjs.map → POMJQZKJ.cjs.map} +1 -1
- package/dist/__chunks/{7PXG7CRK.js → Q2KBODSW.js} +8 -8
- package/dist/__chunks/{UXDF6ZIG.js → RCVW5CTF.js} +2 -2
- package/dist/__chunks/{V4M5XFJN.cjs → SEJ4BIQG.cjs} +5 -5
- package/dist/__chunks/SEJ4BIQG.cjs.map +1 -0
- package/dist/__chunks/{K2RGVD55.js → SKVMG4AF.js} +4 -4
- package/dist/__chunks/SKVMG4AF.js.map +1 -0
- package/dist/__chunks/{OMWNK5SA.js → SOR5SSPX.js} +2 -2
- package/dist/__chunks/{3CEGKGV5.js → THO3K5V7.js} +4 -4
- package/dist/__chunks/{3CEGKGV5.js.map → THO3K5V7.js.map} +1 -1
- package/dist/__chunks/{FAOJSMYY.js → UCJSVVK6.js} +2 -2
- package/dist/__chunks/{HM6JHSTR.cjs → UHOT5ZOH.cjs} +6 -6
- package/dist/__chunks/{HM6JHSTR.cjs.map → UHOT5ZOH.cjs.map} +1 -1
- package/dist/__chunks/{SSGQWZJG.cjs → WEOENL5J.cjs} +3 -3
- package/dist/__chunks/{QAH73IJZ.js → WJMQX7BT.js} +2 -2
- package/dist/__chunks/{JAW252M7.cjs → Z66NM3NK.cjs} +3 -3
- package/dist/__chunks/{PIQO2LH2.cjs → ZGOHDWOB.cjs} +13 -8
- package/dist/__chunks/ZGOHDWOB.cjs.map +1 -0
- package/dist/__chunks/{VZWUWOLJ.js → ZH4QTULO.js} +9 -8
- package/dist/__chunks/ZH4QTULO.js.map +1 -0
- package/dist/colors/textColors.cjs +2 -2
- package/dist/colors/textColors.js +1 -1
- package/dist/index.cjs +31 -31
- package/dist/index.css +50 -25
- package/dist/index.css.map +1 -1
- package/dist/index.js +32 -32
- package/package.json +1 -1
- package/dist/__chunks/4X7ZC3WT.js.map +0 -1
- package/dist/__chunks/BHN2OODF.cjs.map +0 -1
- package/dist/__chunks/FGXU5UXA.js +0 -30
- package/dist/__chunks/FGXU5UXA.js.map +0 -1
- package/dist/__chunks/G63LXNMK.cjs +0 -30
- package/dist/__chunks/G63LXNMK.cjs.map +0 -1
- package/dist/__chunks/K2RGVD55.js.map +0 -1
- package/dist/__chunks/OY5QYJVA.cjs.map +0 -1
- package/dist/__chunks/PIQO2LH2.cjs.map +0 -1
- package/dist/__chunks/T6T5FJWJ.js.map +0 -1
- package/dist/__chunks/V4M5XFJN.cjs.map +0 -1
- package/dist/__chunks/VZWUWOLJ.js.map +0 -1
- package/dist/__chunks/X34FPOWI.cjs.map +0 -1
- package/dist/__chunks/ZAB5SOZP.js.map +0 -1
- /package/dist/__chunks/{JEP2SN7W.cjs.map → 2PWZPH3R.cjs.map} +0 -0
- /package/dist/__chunks/{LNLOBEMH.cjs.map → 32CNLC3O.cjs.map} +0 -0
- /package/dist/__chunks/{ZJS5MEKE.cjs.map → 3TF4GQNL.cjs.map} +0 -0
- /package/dist/__chunks/{3BGIBVCR.cjs.map → 42SXZKBG.cjs.map} +0 -0
- /package/dist/__chunks/{5RXHG6S5.js.map → 4C7SU3EM.js.map} +0 -0
- /package/dist/__chunks/{5CSS7BNE.cjs.map → 5IOCCDL6.cjs.map} +0 -0
- /package/dist/__chunks/{HUN4OGO5.js.map → 5KCDVRT6.js.map} +0 -0
- /package/dist/__chunks/{I7BXC2FH.cjs.map → 6VB3H32I.cjs.map} +0 -0
- /package/dist/__chunks/{P3W4SW6R.cjs.map → 6ZBLF7S2.cjs.map} +0 -0
- /package/dist/__chunks/{J5NZ55OT.cjs.map → 7AVZDFCS.cjs.map} +0 -0
- /package/dist/__chunks/{NFSZQICF.cjs.map → B3O42V6X.cjs.map} +0 -0
- /package/dist/__chunks/{BS5FRXYG.js.map → B64Z54QN.js.map} +0 -0
- /package/dist/__chunks/{4DZD4SDJ.js.map → BB3LT6KA.js.map} +0 -0
- /package/dist/__chunks/{CDU5TH7Y.cjs.map → BFODXGGO.cjs.map} +0 -0
- /package/dist/__chunks/{VMY3X6VX.js.map → BG3VB5JF.js.map} +0 -0
- /package/dist/__chunks/{CB66GOW7.js.map → BXKO34RQ.js.map} +0 -0
- /package/dist/__chunks/{ZYWRMB4F.js.map → C22XFS4G.js.map} +0 -0
- /package/dist/__chunks/{RE6LUYXB.js.map → CHMPCLBE.js.map} +0 -0
- /package/dist/__chunks/{YPL2E6XO.js.map → DISIWYT4.js.map} +0 -0
- /package/dist/__chunks/{JBFY4F7V.js.map → EJ2RDUTA.js.map} +0 -0
- /package/dist/__chunks/{RD4EXZDZ.cjs.map → G4CKRMFW.cjs.map} +0 -0
- /package/dist/__chunks/{ZPV4YBFX.cjs.map → KA6GROBD.cjs.map} +0 -0
- /package/dist/__chunks/{ONTB6T6K.cjs.map → KFQOJ7RG.cjs.map} +0 -0
- /package/dist/__chunks/{DRQYQTCA.js.map → NPUDOII6.js.map} +0 -0
- /package/dist/__chunks/{J7224OUT.cjs.map → OJKBVPRV.cjs.map} +0 -0
- /package/dist/__chunks/{7PXG7CRK.js.map → Q2KBODSW.js.map} +0 -0
- /package/dist/__chunks/{UXDF6ZIG.js.map → RCVW5CTF.js.map} +0 -0
- /package/dist/__chunks/{OMWNK5SA.js.map → SOR5SSPX.js.map} +0 -0
- /package/dist/__chunks/{FAOJSMYY.js.map → UCJSVVK6.js.map} +0 -0
- /package/dist/__chunks/{SSGQWZJG.cjs.map → WEOENL5J.cjs.map} +0 -0
- /package/dist/__chunks/{QAH73IJZ.js.map → WJMQX7BT.js.map} +0 -0
- /package/dist/__chunks/{JAW252M7.cjs.map → Z66NM3NK.cjs.map} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./5JQ6C2XV.js";
|
|
8
8
|
import {
|
|
9
9
|
TabInternal
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./BXKO34RQ.js";
|
|
11
11
|
import {
|
|
12
12
|
Box_default
|
|
13
13
|
} from "./65PMWIHY.js";
|
|
@@ -64,4 +64,4 @@ function TabButton({
|
|
|
64
64
|
export {
|
|
65
65
|
TabButton
|
|
66
66
|
};
|
|
67
|
-
//# sourceMappingURL=
|
|
67
|
+
//# sourceMappingURL=SOR5SSPX.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./65PMWIHY.js";
|
|
5
5
|
import {
|
|
6
6
|
Typography_default
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./RCVW5CTF.js";
|
|
8
8
|
import {
|
|
9
9
|
useIsHydrated
|
|
10
10
|
} from "./JB65NEXK.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import classNames from "classnames";
|
|
17
17
|
|
|
18
18
|
// css-module:./TextField.module.css#css-module
|
|
19
|
-
var TextField_module_default = { "textfield": "
|
|
19
|
+
var TextField_module_default = { "textfield": "_textfield_1of18_1", "label": "_label_1of18_22", "md": "_md_1of18_26", "height": "_height_1of18_30", "inputError": "_inputError_1of18_34" };
|
|
20
20
|
|
|
21
21
|
// src/TextField/TextField.tsx
|
|
22
22
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -75,7 +75,7 @@ function TextField({
|
|
|
75
75
|
Typography_default,
|
|
76
76
|
{
|
|
77
77
|
size: 100,
|
|
78
|
-
color: errorText ? "destructive-
|
|
78
|
+
color: errorText ? "destructive-darkBackground" : "gray700",
|
|
79
79
|
children: errorText || helperText
|
|
80
80
|
}
|
|
81
81
|
) })
|
|
@@ -87,4 +87,4 @@ function TextField({
|
|
|
87
87
|
export {
|
|
88
88
|
TextField
|
|
89
89
|
};
|
|
90
|
-
//# sourceMappingURL=
|
|
90
|
+
//# sourceMappingURL=THO3K5V7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/TextField/TextField.tsx","css-module:./TextField.module.css#css-module"],"sourcesContent":["import React, {\n type ReactElement,\n type HTMLInputTypeAttribute,\n useId,\n} from \"react\";\nimport classNames from \"classnames\";\nimport styles from \"./TextField.module.css\";\nimport Box from \"../Box/Box\";\nimport Typography from \"../Typography/Typography\";\nimport useIsHydrated from \"../useIsHydrated\";\n\n/**\n * [TextField](https://cambly-syntax.vercel.app/?path=/docs/components-textfield--docs) is a component that allows users to enter text.\n */\nexport default function TextField({\n autoComplete,\n \"data-testid\": dataTestId,\n disabled: disabledProp = false,\n errorText = \"\",\n helperText = \"\",\n id,\n label,\n maxLength,\n onChange,\n placeholder = \"\",\n type = \"text\",\n value = \"\",\n step,\n}: {\n /**\n * The autocomplete attribute specifies whether or not an input field should have autocomplete enabled.\n *\n * Feel free to add new values from the [MDN docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) as needed\n */\n autoComplete?: \"current-password\" | \"new-password\" | \"off\" | \"on\" | \"email\";\n /**\n * A data-testid to make querying for the TextField easier.\n */\n \"data-testid\"?: string;\n /**\n * If true, the TextField will be disabled.\n *\n * @defaultValue false\n */\n disabled?: boolean;\n /**\n * Text shown below TextField if there is an input error.\n */\n errorText?: string;\n /**\n * Informative helper text shown below TextField\n */\n helperText?: string;\n /**\n * TextField id, if not provided, a unique id will be generated\n */\n id?: string;\n /**\n * TextField visible label\n */\n label: string;\n /**\n * Maximum length of the TextField\n */\n maxLength?: number;\n /**\n * The callback to be called the input changes\n */\n onChange: React.ChangeEventHandler<HTMLInputElement>;\n /**\n * Optional TextField placeholder text\n */\n placeholder?: string;\n /**\n * Input type of the TextField\n *\n * See [full list of input types](https://developer.mozilla.org/en-US/docs/Learn/Forms/HTML5_input_types)\n */\n type?: HTMLInputTypeAttribute;\n /**\n * Value of the TextField\n */\n value: string;\n /**\n * Specified legal number intervals for an input field. Specifically for time or number. If for time, specify in milliseconds. Must be a positive value.\n */\n step?: number;\n}): ReactElement {\n const isHydrated = useIsHydrated();\n const disabled = !isHydrated || disabledProp;\n const reactId = useId();\n const inputId = id ?? reactId;\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 >\n {label && (\n <label className={styles.label} htmlFor={inputId}>\n <Box paddingX={1}>\n <Typography size={100} color=\"gray700\">\n {label}\n </Typography>\n </Box>\n </label>\n )}\n <input\n autoComplete={autoComplete}\n className={classNames(styles.textfield, styles.md, styles.height, {\n [styles.inputError]: errorText,\n })}\n data-testid={dataTestId}\n disabled={disabled}\n id={inputId}\n maxLength={maxLength}\n type={type}\n onChange={onChange}\n placeholder={placeholder}\n value={value}\n step={step}\n />\n {(helperText || errorText) && (\n <Box paddingX={1}>\n <Typography\n size={100}\n color={errorText ? \"destructive-
|
|
1
|
+
{"version":3,"sources":["../../src/TextField/TextField.tsx","css-module:./TextField.module.css#css-module"],"sourcesContent":["import React, {\n type ReactElement,\n type HTMLInputTypeAttribute,\n useId,\n} from \"react\";\nimport classNames from \"classnames\";\nimport styles from \"./TextField.module.css\";\nimport Box from \"../Box/Box\";\nimport Typography from \"../Typography/Typography\";\nimport useIsHydrated from \"../useIsHydrated\";\n\n/**\n * [TextField](https://cambly-syntax.vercel.app/?path=/docs/components-textfield--docs) is a component that allows users to enter text.\n */\nexport default function TextField({\n autoComplete,\n \"data-testid\": dataTestId,\n disabled: disabledProp = false,\n errorText = \"\",\n helperText = \"\",\n id,\n label,\n maxLength,\n onChange,\n placeholder = \"\",\n type = \"text\",\n value = \"\",\n step,\n}: {\n /**\n * The autocomplete attribute specifies whether or not an input field should have autocomplete enabled.\n *\n * Feel free to add new values from the [MDN docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) as needed\n */\n autoComplete?: \"current-password\" | \"new-password\" | \"off\" | \"on\" | \"email\";\n /**\n * A data-testid to make querying for the TextField easier.\n */\n \"data-testid\"?: string;\n /**\n * If true, the TextField will be disabled.\n *\n * @defaultValue false\n */\n disabled?: boolean;\n /**\n * Text shown below TextField if there is an input error.\n */\n errorText?: string;\n /**\n * Informative helper text shown below TextField\n */\n helperText?: string;\n /**\n * TextField id, if not provided, a unique id will be generated\n */\n id?: string;\n /**\n * TextField visible label\n */\n label: string;\n /**\n * Maximum length of the TextField\n */\n maxLength?: number;\n /**\n * The callback to be called the input changes\n */\n onChange: React.ChangeEventHandler<HTMLInputElement>;\n /**\n * Optional TextField placeholder text\n */\n placeholder?: string;\n /**\n * Input type of the TextField\n *\n * See [full list of input types](https://developer.mozilla.org/en-US/docs/Learn/Forms/HTML5_input_types)\n */\n type?: HTMLInputTypeAttribute;\n /**\n * Value of the TextField\n */\n value: string;\n /**\n * Specified legal number intervals for an input field. Specifically for time or number. If for time, specify in milliseconds. Must be a positive value.\n */\n step?: number;\n}): ReactElement {\n const isHydrated = useIsHydrated();\n const disabled = !isHydrated || disabledProp;\n const reactId = useId();\n const inputId = id ?? reactId;\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 >\n {label && (\n <label className={styles.label} htmlFor={inputId}>\n <Box paddingX={1}>\n <Typography size={100} color=\"gray700\">\n {label}\n </Typography>\n </Box>\n </label>\n )}\n <input\n autoComplete={autoComplete}\n className={classNames(styles.textfield, styles.md, styles.height, {\n [styles.inputError]: errorText,\n })}\n data-testid={dataTestId}\n disabled={disabled}\n id={inputId}\n maxLength={maxLength}\n type={type}\n onChange={onChange}\n placeholder={placeholder}\n value={value}\n step={step}\n />\n {(helperText || errorText) && (\n <Box paddingX={1}>\n <Typography\n size={100}\n color={errorText ? \"destructive-darkBackground\" : \"gray700\"}\n >\n {errorText || helperText}\n </Typography>\n </Box>\n )}\n </Box>\n );\n}\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/TextField/TextField.module.css\"; export default {\"textfield\":\"_textfield_1of18_1\",\"label\":\"_label_1of18_22\",\"md\":\"_md_1of18_26\",\"height\":\"_height_1of18_30\",\"inputError\":\"_inputError_1of18_34\"}"],"mappings":";;;;;;;;;;;;AAAA;AAAA,EAGE;AAAA,OACK;AACP,OAAO,gBAAgB;;;ACL2E,IAAO,2BAAQ,EAAC,aAAY,sBAAqB,SAAQ,mBAAkB,MAAK,gBAAe,UAAS,oBAAmB,cAAa,uBAAsB;;;AD8F5P,SAcQ,KAdR;AAhFW,SAAR,UAA2B;AAAA,EAChC;AAAA,EACA,eAAe;AAAA,EACf,UAAU,eAAe;AAAA,EACzB,YAAY;AAAA,EACZ,aAAa;AAAA,EACb;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,cAAc;AAAA,EACd,OAAO;AAAA,EACP,QAAQ;AAAA,EACR;AACF,GA2DiB;AACf,QAAM,aAAa,cAAc;AACjC,QAAM,WAAW,CAAC,cAAc;AAChC,QAAM,UAAU,MAAM;AACtB,QAAM,UAAU,kBAAM;AAEtB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,SAAQ;AAAA,MACR,WAAU;AAAA,MACV,KAAK;AAAA,MACL,OAAM;AAAA,MACN,2BAA2B;AAAA,QACzB,SAAS;AAAA,UACP,SAAS,WAAW,MAAM;AAAA,QAC5B;AAAA,MACF;AAAA,MAEC;AAAA,iBACC,oBAAC,WAAM,WAAW,yBAAO,OAAO,SAAS,SACvC,8BAAC,eAAI,UAAU,GACb,8BAAC,sBAAW,MAAM,KAAK,OAAM,WAC1B,iBACH,GACF,GACF;AAAA,QAEF;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA,WAAW,WAAW,yBAAO,WAAW,yBAAO,IAAI,yBAAO,QAAQ;AAAA,cAChE,CAAC,yBAAO,UAAU,GAAG;AAAA,YACvB,CAAC;AAAA,YACD,eAAa;AAAA,YACb;AAAA,YACA,IAAI;AAAA,YACJ;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA;AAAA,QACF;AAAA,SACE,cAAc,cACd,oBAAC,eAAI,UAAU,GACb;AAAA,UAAC;AAAA;AAAA,YACC,MAAM;AAAA,YACN,OAAO,YAAY,+BAA+B;AAAA,YAEjD,uBAAa;AAAA;AAAA,QAChB,GACF;AAAA;AAAA;AAAA,EAEJ;AAEJ;","names":[]}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./65PMWIHY.js";
|
|
8
8
|
import {
|
|
9
9
|
Typography_default
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./RCVW5CTF.js";
|
|
11
11
|
import {
|
|
12
12
|
colors_module_default
|
|
13
13
|
} from "./XVUEUKXA.js";
|
|
@@ -129,4 +129,4 @@ var RadioButton_default = RadioButton;
|
|
|
129
129
|
export {
|
|
130
130
|
RadioButton_default
|
|
131
131
|
};
|
|
132
|
-
//# sourceMappingURL=
|
|
132
|
+
//# sourceMappingURL=UCJSVVK6.js.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 _3TF4GQNLcjs = require('./3TF4GQNL.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _HUIHS6RNcjs = require('./HUIHS6RN.cjs');
|
|
@@ -13,7 +13,7 @@ var _G3SXARBLcjs = require('./G3SXARBL.cjs');
|
|
|
13
13
|
var _THM3NAFOcjs = require('./THM3NAFO.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _ZGOHDWOBcjs = require('./ZGOHDWOB.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _KJLBDAZHcjs = require('./KJLBDAZH.cjs');
|
|
@@ -57,7 +57,7 @@ function Modal({
|
|
|
57
57
|
_KJLBDAZHcjs.Box_default,
|
|
58
58
|
{
|
|
59
59
|
"data-testid": dataTestId,
|
|
60
|
-
backgroundColor: "
|
|
60
|
+
backgroundColor: "gray100",
|
|
61
61
|
rounding: "md",
|
|
62
62
|
display: "flex",
|
|
63
63
|
marginStart: 4,
|
|
@@ -79,7 +79,7 @@ function Modal({
|
|
|
79
79
|
__style: { top: 4, right: 4 }
|
|
80
80
|
},
|
|
81
81
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
82
|
-
|
|
82
|
+
_ZGOHDWOBcjs.IconButton_default,
|
|
83
83
|
{
|
|
84
84
|
accessibilityLabel: accessibilityCloseLabel,
|
|
85
85
|
color: image ? "primary" : "tertiary",
|
|
@@ -93,7 +93,7 @@ function Modal({
|
|
|
93
93
|
),
|
|
94
94
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _KJLBDAZHcjs.Box_default, { display: "flex", direction: "column", width: "100%", children: [
|
|
95
95
|
image && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _KJLBDAZHcjs.Box_default, { children: image }),
|
|
96
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _KJLBDAZHcjs.Box_default, { padding: 6, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
96
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _KJLBDAZHcjs.Box_default, { padding: 6, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _3TF4GQNLcjs.Heading_default, { as: "h1", size: 700, fontStyle: "serif", children: header }) }),
|
|
97
97
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
98
98
|
_KJLBDAZHcjs.Box_default,
|
|
99
99
|
{
|
|
@@ -130,4 +130,4 @@ Modal.displayName = "Modal";
|
|
|
130
130
|
|
|
131
131
|
|
|
132
132
|
exports.Modal = Modal;
|
|
133
|
-
//# sourceMappingURL=
|
|
133
|
+
//# sourceMappingURL=UHOT5ZOH.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["css-module:./Modal.module.css#css-module","../../src/Modal/Modal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAA0F,IAAO,uBAAQ,EAAC,YAAW,qBAAoB,eAAc,wBAAuB;;;ACoBxK,cAsJQ,YAtJR;AATN,SAAS,MAAM,EAAE,UAAU,GAA2B;AACpD,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,MAAK;AAAA,MACL,WAAU;AAAA,MACV,eAAY;AAAA,MACZ,SAAQ;AAAA,MAER,8BAAC,UAAK,GAAE,yGAAwG;AAAA;AAAA,EAClH;AAEJ;AAmCe,SAAR,MAAuB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,0BAA0B;AAAA,EAC1B,SAAS;AAAA,EACT,eAAe;AACjB,GA4DiB;AACf,SACE,oBAAC,SAAM,QACL,8BAAC,cACC,8BAAC,aACC;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,qBAAO;AAAA,MAClB,MAAK;AAAA,MACL,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,iBAAiB,UAAU;AAAA,MAC1D,WAAW,CAAC,MAAM,EAAE,QAAQ,YAAY,UAAU;AAAA,MAElD;AAAA,QAAC;AAAA;AAAA,UACC,eAAa;AAAA,UACb,iBAAgB;AAAA,UAChB,UAAS;AAAA,UACT,SAAQ;AAAA,UACR,aAAa;AAAA,UACb,WAAW;AAAA,UACX,WAAW;AAAA,UACX,cAAc;AAAA,UACd,UAAU;AAAA,UACV,WAAU;AAAA,UACV,UAAU;AAAA,UACV,UAAS;AAAA,UACT,UAAS;AAAA,UACT,OAAM;AAAA,UAEN;AAAA;AAAA,cAAC;AAAA;AAAA,gBACC,UAAS;AAAA,gBACT,2BAA2B;AAAA,kBACzB,SAAS,EAAE,KAAK,GAAG,OAAO,EAAE;AAAA,gBAC9B;AAAA,gBAEA;AAAA,kBAAC;AAAA;AAAA,oBACC,oBAAoB;AAAA,oBACpB,OAAO,QAAQ,YAAY;AAAA,oBAC3B,IAAI,QAAQ,mBAAmB;AAAA,oBAC/B,SAAS;AAAA,oBACT,MAAK;AAAA,oBACL,MAAM;AAAA;AAAA,gBACR;AAAA;AAAA,YACF;AAAA,YAEA,qBAAC,eAAI,SAAQ,QAAO,WAAU,UAAS,OAAM,QAC1C;AAAA,uBAAS,oBAAC,eAAK,iBAAM;AAAA,cACtB,oBAAC,eAAI,SAAS,GACZ,8BAAC,mBAAQ,IAAG,MAAK,MAAM,KAAK,WAAU,SACnC,kBACH,GACF;AAAA,cACA;AAAA,gBAAC;AAAA;AAAA,kBACC,QAAO;AAAA,kBACP,WAAU;AAAA,kBACV,UAAU;AAAA,kBACV,cAAc,SAAS,IAAI;AAAA,kBAE1B;AAAA;AAAA,cACH;AAAA,cACC,UACC;AAAA,gBAAC;AAAA;AAAA,kBACC,SAAQ;AAAA,kBACR,WAAU;AAAA,kBACV,KAAK;AAAA,kBACL,aAAY;AAAA,kBACZ,kBAAiB;AAAA,kBACjB,aAAY;AAAA,kBACZ,kBAAiB;AAAA,kBACjB,SAAS;AAAA,kBAER;AAAA;AAAA,cACH;AAAA,eAEJ;AAAA;AAAA;AAAA,MACF;AAAA;AAAA,EACF,GACF,GACF,GACF;AAEJ;AAEA,MAAM,cAAc","sourcesContent":["import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Modal/Modal.module.css\"; export default {\"backdrop\":\"_backdrop_17lbk_1\",\"closeButton\":\"_closeButton_17lbk_10\"}","import { type ReactElement } from \"react\";\n\nimport Heading from \"../Heading/Heading\";\nimport Box from \"../Box/Box\";\n\nimport FocusTrap from \"./FocusTrap\";\nimport StopScroll from \"./StopScroll\";\nimport Layer from \"./Layer\";\nimport styles from \"./Modal.module.css\";\nimport IconButton from \"../IconButton/IconButton\";\n\nfunction XIcon({ className }: { className?: string }) {\n return (\n <svg\n className={className}\n fill=\"currentColor\"\n focusable=\"false\"\n aria-hidden=\"true\"\n viewBox=\"0 0 24 24\"\n >\n <path d=\"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"></path>\n </svg>\n );\n}\n\n/**\n * [Modal](https://cambly-syntax.vercel.app/?path=/docs/components-modal--docs) is a dialog that appears on top of the main content and locks user interaction within the modal.\n *\n ```\n const [showModal, setShowModal] = useState(false)\n\n return (\n <>\n {showModal && <Modal\n header=\"header text\"\n onDismiss={() => setShowModal(false)}\n footer={\n <>\n <Button\n text=\"Cancel\"\n color=\"secondary\"\n onClick={() => {}}\n />\n <Button\n text=\"Confirm\"\n onClick={() => {}}\n />\n </>\n }\n >\n <Typography>\n Body text goes here!\n </Typography>\n </Modal> }\n </>\n )\n ```\n */\nexport default function Modal({\n header,\n children,\n image,\n onDismiss,\n footer,\n accessibilityCloseLabel = \"close modal\",\n zIndex = 1,\n \"data-testid\": dataTestId,\n}: {\n /**\n * The modal's main content. Should typically take in `Typography`'d text.\n */\n children: JSX.Element;\n /**\n * The header inside a modal as a string.\n */\n header: string;\n /**\n * What the X button (or clicking out of the modal area) does.\n * Typically used for closing the Modal\n */\n onDismiss: () => void;\n /**\n * The optional image rendered above the Modal.\n * Image\n * * Size should be 600w x 200h\n * * Be sure to set width=\"100%\" on the image\n * If images aren't that sized, should ask design to give another image.\n */\n image?: JSX.Element;\n /**\n * The footer for the bottom area of the Modal. Typically used for rendering buttons.\n * * Use Syntax `Button` and pass it into footer.\n * * If one button, just pass it in. If two, wrap in a React fragment (`<> </>`)\n * * If two(2) buttons, put primary button _second_.\n *\n <>\n <Button\n text=\"Cancel\"\n color=\"secondary\"\n onClick={() => {}}\n />\n <Button\n text=\"Confirm\"\n onClick={() => {}}\n />\n </>\n */\n footer?: JSX.Element;\n /**\n * The accessibilty text on the close button.\n * (Sets the aria-label of the button)\n *\n *\n * @defaultValue close modal\n */\n accessibilityCloseLabel?: string;\n /**\n * The z-index for the modal.\n * Typically used if there are other things on the page with higher z-index and you need this overlayed on top.\n *\n * @defaultValue 0\n */\n zIndex?: number;\n /**\n * Test id for the modal\n */\n \"data-testid\"?: string;\n}): ReactElement {\n return (\n <Layer zIndex={zIndex}>\n <StopScroll>\n <FocusTrap>\n <div\n className={styles.backdrop}\n role=\"presentation\"\n onClick={(e) => e.target === e.currentTarget && onDismiss()}\n onKeyDown={(e) => e.key === \"Escape\" && onDismiss()}\n >\n <Box\n data-testid={dataTestId}\n backgroundColor=\"
|
|
1
|
+
{"version":3,"sources":["css-module:./Modal.module.css#css-module","../../src/Modal/Modal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAA0F,IAAO,uBAAQ,EAAC,YAAW,qBAAoB,eAAc,wBAAuB;;;ACoBxK,cAsJQ,YAtJR;AATN,SAAS,MAAM,EAAE,UAAU,GAA2B;AACpD,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,MAAK;AAAA,MACL,WAAU;AAAA,MACV,eAAY;AAAA,MACZ,SAAQ;AAAA,MAER,8BAAC,UAAK,GAAE,yGAAwG;AAAA;AAAA,EAClH;AAEJ;AAmCe,SAAR,MAAuB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,0BAA0B;AAAA,EAC1B,SAAS;AAAA,EACT,eAAe;AACjB,GA4DiB;AACf,SACE,oBAAC,SAAM,QACL,8BAAC,cACC,8BAAC,aACC;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,qBAAO;AAAA,MAClB,MAAK;AAAA,MACL,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,iBAAiB,UAAU;AAAA,MAC1D,WAAW,CAAC,MAAM,EAAE,QAAQ,YAAY,UAAU;AAAA,MAElD;AAAA,QAAC;AAAA;AAAA,UACC,eAAa;AAAA,UACb,iBAAgB;AAAA,UAChB,UAAS;AAAA,UACT,SAAQ;AAAA,UACR,aAAa;AAAA,UACb,WAAW;AAAA,UACX,WAAW;AAAA,UACX,cAAc;AAAA,UACd,UAAU;AAAA,UACV,WAAU;AAAA,UACV,UAAU;AAAA,UACV,UAAS;AAAA,UACT,UAAS;AAAA,UACT,OAAM;AAAA,UAEN;AAAA;AAAA,cAAC;AAAA;AAAA,gBACC,UAAS;AAAA,gBACT,2BAA2B;AAAA,kBACzB,SAAS,EAAE,KAAK,GAAG,OAAO,EAAE;AAAA,gBAC9B;AAAA,gBAEA;AAAA,kBAAC;AAAA;AAAA,oBACC,oBAAoB;AAAA,oBACpB,OAAO,QAAQ,YAAY;AAAA,oBAC3B,IAAI,QAAQ,mBAAmB;AAAA,oBAC/B,SAAS;AAAA,oBACT,MAAK;AAAA,oBACL,MAAM;AAAA;AAAA,gBACR;AAAA;AAAA,YACF;AAAA,YAEA,qBAAC,eAAI,SAAQ,QAAO,WAAU,UAAS,OAAM,QAC1C;AAAA,uBAAS,oBAAC,eAAK,iBAAM;AAAA,cACtB,oBAAC,eAAI,SAAS,GACZ,8BAAC,mBAAQ,IAAG,MAAK,MAAM,KAAK,WAAU,SACnC,kBACH,GACF;AAAA,cACA;AAAA,gBAAC;AAAA;AAAA,kBACC,QAAO;AAAA,kBACP,WAAU;AAAA,kBACV,UAAU;AAAA,kBACV,cAAc,SAAS,IAAI;AAAA,kBAE1B;AAAA;AAAA,cACH;AAAA,cACC,UACC;AAAA,gBAAC;AAAA;AAAA,kBACC,SAAQ;AAAA,kBACR,WAAU;AAAA,kBACV,KAAK;AAAA,kBACL,aAAY;AAAA,kBACZ,kBAAiB;AAAA,kBACjB,aAAY;AAAA,kBACZ,kBAAiB;AAAA,kBACjB,SAAS;AAAA,kBAER;AAAA;AAAA,cACH;AAAA,eAEJ;AAAA;AAAA;AAAA,MACF;AAAA;AAAA,EACF,GACF,GACF,GACF;AAEJ;AAEA,MAAM,cAAc","sourcesContent":["import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Modal/Modal.module.css\"; export default {\"backdrop\":\"_backdrop_17lbk_1\",\"closeButton\":\"_closeButton_17lbk_10\"}","import { type ReactElement } from \"react\";\n\nimport Heading from \"../Heading/Heading\";\nimport Box from \"../Box/Box\";\n\nimport FocusTrap from \"./FocusTrap\";\nimport StopScroll from \"./StopScroll\";\nimport Layer from \"./Layer\";\nimport styles from \"./Modal.module.css\";\nimport IconButton from \"../IconButton/IconButton\";\n\nfunction XIcon({ className }: { className?: string }) {\n return (\n <svg\n className={className}\n fill=\"currentColor\"\n focusable=\"false\"\n aria-hidden=\"true\"\n viewBox=\"0 0 24 24\"\n >\n <path d=\"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"></path>\n </svg>\n );\n}\n\n/**\n * [Modal](https://cambly-syntax.vercel.app/?path=/docs/components-modal--docs) is a dialog that appears on top of the main content and locks user interaction within the modal.\n *\n ```\n const [showModal, setShowModal] = useState(false)\n\n return (\n <>\n {showModal && <Modal\n header=\"header text\"\n onDismiss={() => setShowModal(false)}\n footer={\n <>\n <Button\n text=\"Cancel\"\n color=\"secondary\"\n onClick={() => {}}\n />\n <Button\n text=\"Confirm\"\n onClick={() => {}}\n />\n </>\n }\n >\n <Typography>\n Body text goes here!\n </Typography>\n </Modal> }\n </>\n )\n ```\n */\nexport default function Modal({\n header,\n children,\n image,\n onDismiss,\n footer,\n accessibilityCloseLabel = \"close modal\",\n zIndex = 1,\n \"data-testid\": dataTestId,\n}: {\n /**\n * The modal's main content. Should typically take in `Typography`'d text.\n */\n children: JSX.Element;\n /**\n * The header inside a modal as a string.\n */\n header: string;\n /**\n * What the X button (or clicking out of the modal area) does.\n * Typically used for closing the Modal\n */\n onDismiss: () => void;\n /**\n * The optional image rendered above the Modal.\n * Image\n * * Size should be 600w x 200h\n * * Be sure to set width=\"100%\" on the image\n * If images aren't that sized, should ask design to give another image.\n */\n image?: JSX.Element;\n /**\n * The footer for the bottom area of the Modal. Typically used for rendering buttons.\n * * Use Syntax `Button` and pass it into footer.\n * * If one button, just pass it in. If two, wrap in a React fragment (`<> </>`)\n * * If two(2) buttons, put primary button _second_.\n *\n <>\n <Button\n text=\"Cancel\"\n color=\"secondary\"\n onClick={() => {}}\n />\n <Button\n text=\"Confirm\"\n onClick={() => {}}\n />\n </>\n */\n footer?: JSX.Element;\n /**\n * The accessibilty text on the close button.\n * (Sets the aria-label of the button)\n *\n *\n * @defaultValue close modal\n */\n accessibilityCloseLabel?: string;\n /**\n * The z-index for the modal.\n * Typically used if there are other things on the page with higher z-index and you need this overlayed on top.\n *\n * @defaultValue 0\n */\n zIndex?: number;\n /**\n * Test id for the modal\n */\n \"data-testid\"?: string;\n}): ReactElement {\n return (\n <Layer zIndex={zIndex}>\n <StopScroll>\n <FocusTrap>\n <div\n className={styles.backdrop}\n role=\"presentation\"\n onClick={(e) => e.target === e.currentTarget && onDismiss()}\n onKeyDown={(e) => e.key === \"Escape\" && onDismiss()}\n >\n <Box\n data-testid={dataTestId}\n backgroundColor=\"gray100\"\n rounding=\"md\"\n display=\"flex\"\n marginStart={4}\n marginEnd={4}\n marginTop={8}\n marginBottom={8}\n minWidth={240}\n maxHeight=\"calc(100vh - 64px)\"\n maxWidth={600}\n overflow=\"hidden\"\n position=\"relative\"\n width=\"100%\"\n >\n <Box\n position=\"absolute\"\n dangerouslySetInlineStyle={{\n __style: { top: 4, right: 4 },\n }}\n >\n <IconButton\n accessibilityLabel={accessibilityCloseLabel}\n color={image ? \"primary\" : \"tertiary\"}\n on={image ? \"darkBackground\" : \"lightBackground\"}\n onClick={onDismiss}\n size=\"md\"\n icon={XIcon}\n />\n </Box>\n\n <Box display=\"flex\" direction=\"column\" width=\"100%\">\n {image && <Box>{image}</Box>}\n <Box padding={6}>\n <Heading as=\"h1\" size={700} fontStyle=\"serif\">\n {header}\n </Heading>\n </Box>\n <Box\n height=\"100%\"\n overflowY=\"auto\"\n paddingX={6}\n marginBottom={footer ? 0 : 6}\n >\n {children}\n </Box>\n {footer && (\n <Box\n display=\"flex\"\n direction=\"column\"\n gap={3}\n smDirection=\"row\"\n smJustifyContent=\"end\"\n lgDirection=\"row\"\n lgJustifyContent=\"end\"\n padding={6}\n >\n {footer}\n </Box>\n )}\n </Box>\n </Box>\n </div>\n </FocusTrap>\n </StopScroll>\n </Layer>\n );\n}\n\nModal.displayName = \"Modal\";\n"]}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _J27AGJQBcjs = require('./J27AGJQB.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _ZGOHDWOBcjs = require('./ZGOHDWOB.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _KJLBDAZHcjs = require('./KJLBDAZH.cjs');
|
|
@@ -130,7 +130,7 @@ var ModalDialog = _react.forwardRef.call(void 0,
|
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
132
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
133
|
-
|
|
133
|
+
_ZGOHDWOBcjs.IconButton_default,
|
|
134
134
|
{
|
|
135
135
|
onClick: () => state.close(),
|
|
136
136
|
color: "tertiary",
|
|
@@ -157,4 +157,4 @@ var ModalDialog_default = ModalDialog;
|
|
|
157
157
|
|
|
158
158
|
|
|
159
159
|
exports.AriaModalOverlay = AriaModalOverlay; exports.AriaModal = AriaModal; exports.ModalDialog_default = ModalDialog_default;
|
|
160
|
-
//# sourceMappingURL=
|
|
160
|
+
//# sourceMappingURL=WEOENL5J.cjs.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./5HEC7ASW.js";
|
|
5
5
|
import {
|
|
6
6
|
IconButton_default
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./DJ6I4764.js";
|
|
8
8
|
import {
|
|
9
9
|
Box_default
|
|
10
10
|
} from "./65PMWIHY.js";
|
|
@@ -157,4 +157,4 @@ export {
|
|
|
157
157
|
AriaModal,
|
|
158
158
|
ModalDialog_default
|
|
159
159
|
};
|
|
160
|
-
//# sourceMappingURL=
|
|
160
|
+
//# sourceMappingURL=WJMQX7BT.js.map
|
|
@@ -7,7 +7,7 @@ var _XLUVINJWcjs = require('./XLUVINJW.cjs');
|
|
|
7
7
|
var _KJLBDAZHcjs = require('./KJLBDAZH.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _42SXZKBGcjs = require('./42SXZKBG.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _SVA2ABQQcjs = require('./SVA2ABQQ.cjs');
|
|
@@ -113,7 +113,7 @@ var RadioButton = ({
|
|
|
113
113
|
}
|
|
114
114
|
),
|
|
115
115
|
label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
116
|
-
|
|
116
|
+
_42SXZKBGcjs.Typography_default,
|
|
117
117
|
{
|
|
118
118
|
size: size === "md" ? 200 : 100,
|
|
119
119
|
color: error ? "destructive-primary" : "gray900",
|
|
@@ -129,4 +129,4 @@ var RadioButton_default = RadioButton;
|
|
|
129
129
|
|
|
130
130
|
|
|
131
131
|
exports.RadioButton_default = RadioButton_default;
|
|
132
|
-
//# sourceMappingURL=
|
|
132
|
+
//# sourceMappingURL=Z66NM3NK.cjs.map
|
|
@@ -1,6 +1,10 @@
|
|
|
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
|
+
|
|
5
|
+
var _4Y7TNMFLcjs = require('./4Y7TNMFL.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
4
8
|
var _LZYX5BWDcjs = require('./LZYX5BWD.cjs');
|
|
5
9
|
|
|
6
10
|
|
|
@@ -17,15 +21,10 @@ var _classnames = require('classnames'); var _classnames2 = _interopRequireDefau
|
|
|
17
21
|
var _react = require('react');
|
|
18
22
|
|
|
19
23
|
// css-module:./IconButton.module.css#css-module
|
|
20
|
-
var IconButton_module_default = { "iconButton": "
|
|
24
|
+
var IconButton_module_default = { "iconButton": "_iconButton_txjkh_1", "sm": "_sm_txjkh_46", "md": "_md_txjkh_51", "lg": "_lg_txjkh_56", "smIcon": "_smIcon_txjkh_61", "mdIcon": "_mdIcon_txjkh_68", "lgIcon": "_lgIcon_txjkh_75" };
|
|
21
25
|
|
|
22
26
|
// src/IconButton/IconButton.tsx
|
|
23
27
|
var _jsxruntime = require('react/jsx-runtime');
|
|
24
|
-
var iconSize = {
|
|
25
|
-
sm: IconButton_module_default.smIcon,
|
|
26
|
-
md: IconButton_module_default.mdIcon,
|
|
27
|
-
lg: IconButton_module_default.lgIcon
|
|
28
|
-
};
|
|
29
28
|
var IconButton = _react.forwardRef.call(void 0,
|
|
30
29
|
({
|
|
31
30
|
accessibilityLabel,
|
|
@@ -58,7 +57,13 @@ var IconButton = _react.forwardRef.call(void 0,
|
|
|
58
57
|
IconButton_module_default[size]
|
|
59
58
|
),
|
|
60
59
|
ref,
|
|
61
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
60
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
61
|
+
Icon,
|
|
62
|
+
{
|
|
63
|
+
className: _4Y7TNMFLcjs.materialIconSize[size],
|
|
64
|
+
size: _4Y7TNMFLcjs.internalIconSize[size]
|
|
65
|
+
}
|
|
66
|
+
)
|
|
62
67
|
}
|
|
63
68
|
);
|
|
64
69
|
}
|
|
@@ -69,4 +74,4 @@ var IconButton_default = IconButton;
|
|
|
69
74
|
|
|
70
75
|
|
|
71
76
|
exports.IconButton_default = IconButton_default;
|
|
72
|
-
//# sourceMappingURL=
|
|
77
|
+
//# sourceMappingURL=ZGOHDWOB.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/IconButton/IconButton.tsx","css-module:./IconButton.module.css#css-module"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,OAAO,gBAAgB;AAEvB,SAAqC,kBAAkB;;;ACF6C,IAAO,4BAAQ,EAAC,cAAa,uBAAsB,MAAK,gBAAe,MAAK,gBAAe,MAAK,gBAAe,UAAS,oBAAmB,UAAS,oBAAmB,UAAS,mBAAkB;;;ADuH9R;AApCR,IAAM,aAAa;AAAA,EACjB,CACE;AAAA,IACE;AAAA,IACA,QAAQ;AAAA,IACR,eAAe;AAAA,IACf,WAAW;AAAA,IACX,MAAM;AAAA,IACN,OAAO;AAAA,IACP;AAAA,IACA,KAAK;AAAA,IACL;AAAA,EACF,GACA,QACG;AACH,UAAM,aAAa,cAAc;AACjC,UAAM,uBAAuB,gBAAgB,OAAO,EAAE;AACtD,UAAM,uBAAuB,gBAAgB,OAAO,EAAE;AAEtD,WACE;AAAA,MAAC;AAAA;AAAA,QACC,cAAY;AAAA,QACZ,eAAa;AAAA,QACb,MAAK;AAAA,QACL,OAAO;AAAA,QACP,UAAU,CAAC,cAAc;AAAA,QACzB;AAAA,QACA,WAAW;AAAA,UACT,0BAAO;AAAA,UACP;AAAA,UACA;AAAA,UACA,OAAO,OAAO,EAAE;AAAA,UAChB,0BAAO,IAAI;AAAA,QACb;AAAA,QACA;AAAA,QAEA;AAAA,UAAC;AAAA;AAAA,YACC,WAAW,iBAAiB,IAAI;AAAA,YAChC,MAAM,iBAAiB,IAAI;AAAA;AAAA,QAC7B;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,WAAW,cAAc;AAEzB,IAAO,qBAAQ","sourcesContent":["import classNames from \"classnames\";\nimport { foregroundColor } from \"../colors/foregroundColor\";\nimport React, { type ComponentProps, forwardRef } from \"react\";\nimport { type Size } from \"../constants\";\nimport styles from \"./IconButton.module.css\";\nimport useIsHydrated from \"../useIsHydrated\";\nimport { backgroundColor } from \"../colors/backgroundColor\";\nimport { border } from \"../colors/border\";\nimport type InternalIcon from \"../Icon/Icon\";\nimport {\n materialIconSize,\n internalIconSize,\n} from \"../Button/constants/iconSize\";\n\ntype IconButtonProps = {\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 * Test id for the button\n */\n \"data-testid\"?: string;\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 * The icon to be displayed.\n *\n * Deprecated: [Rounded Material Icon](https://material.io/resources/icons/?style=round)\n * Preferred: Syntax icon\n */\n icon:\n | React.ComponentType<{ className?: string }>\n | React.ComponentType<ComponentProps<typeof InternalIcon>>;\n /**\n * If `true`, the button will be disabled\n *\n * @defaultValue false\n */\n disabled?: boolean;\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\n/**\n * [IconButton](https://cambly-syntax.vercel.app/?path=/docs/components-iconbutton--docs) is a clickable element that is used to perform an action.\n */\nconst IconButton = forwardRef<HTMLButtonElement, IconButtonProps>(\n (\n {\n accessibilityLabel,\n color = \"primary\",\n \"data-testid\": dataTestId,\n disabled = false,\n icon: Icon,\n size = \"md\",\n tooltip,\n on = \"lightBackground\",\n onClick,\n }: IconButtonProps,\n ref,\n ) => {\n const isHydrated = useIsHydrated();\n const foregroundColorClass = foregroundColor(color, on);\n const backgroundColorClass = backgroundColor(color, on);\n\n return (\n <button\n aria-label={accessibilityLabel}\n data-testid={dataTestId}\n type=\"button\"\n title={tooltip}\n disabled={!isHydrated || disabled}\n onClick={onClick}\n className={classNames(\n styles.iconButton,\n foregroundColorClass,\n backgroundColorClass,\n border(color, on),\n styles[size],\n )}\n ref={ref}\n >\n <Icon\n className={materialIconSize[size]}\n size={internalIconSize[size]}\n />\n </button>\n );\n },\n);\n\nIconButton.displayName = \"IconButton\";\n\nexport default IconButton;\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/IconButton/IconButton.module.css\"; export default {\"iconButton\":\"_iconButton_txjkh_1\",\"sm\":\"_sm_txjkh_46\",\"md\":\"_md_txjkh_51\",\"lg\":\"_lg_txjkh_56\",\"smIcon\":\"_smIcon_txjkh_61\",\"mdIcon\":\"_mdIcon_txjkh_68\",\"lgIcon\":\"_lgIcon_txjkh_75\"}"]}
|
|
@@ -6,8 +6,9 @@ import {
|
|
|
6
6
|
loadingIconSize_default
|
|
7
7
|
} from "./QSC7CAQA.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
internalIconSize,
|
|
10
|
+
materialIconSize
|
|
11
|
+
} from "./EH75XYWO.js";
|
|
11
12
|
import {
|
|
12
13
|
foregroundColor
|
|
13
14
|
} from "./VRJAMHSI.js";
|
|
@@ -19,7 +20,7 @@ import {
|
|
|
19
20
|
} from "./3CYMW6HT.js";
|
|
20
21
|
import {
|
|
21
22
|
Typography_default
|
|
22
|
-
} from "./
|
|
23
|
+
} from "./RCVW5CTF.js";
|
|
23
24
|
|
|
24
25
|
// src/LinkButton/LinkButton.tsx
|
|
25
26
|
import {
|
|
@@ -82,10 +83,10 @@ var LinkButton = forwardRef(
|
|
|
82
83
|
{
|
|
83
84
|
className: classNames(
|
|
84
85
|
Button_module_default.icon,
|
|
85
|
-
|
|
86
|
+
materialIconSize[size],
|
|
86
87
|
foregroundColorClass
|
|
87
88
|
),
|
|
88
|
-
size
|
|
89
|
+
size: internalIconSize[size]
|
|
89
90
|
}
|
|
90
91
|
),
|
|
91
92
|
!loading && text && /* @__PURE__ */ jsx(Typography_default, { size: textVariant_default[size], weight: "medium", children: /* @__PURE__ */ jsx(
|
|
@@ -100,10 +101,10 @@ var LinkButton = forwardRef(
|
|
|
100
101
|
{
|
|
101
102
|
className: classNames(
|
|
102
103
|
Button_module_default.icon,
|
|
103
|
-
|
|
104
|
+
materialIconSize[size],
|
|
104
105
|
foregroundColorClass
|
|
105
106
|
),
|
|
106
|
-
size
|
|
107
|
+
size: internalIconSize[size]
|
|
107
108
|
}
|
|
108
109
|
),
|
|
109
110
|
loading && /* @__PURE__ */ jsx(
|
|
@@ -137,4 +138,4 @@ var LinkButton_default = LinkButton;
|
|
|
137
138
|
export {
|
|
138
139
|
LinkButton_default
|
|
139
140
|
};
|
|
140
|
-
//# sourceMappingURL=
|
|
141
|
+
//# sourceMappingURL=ZH4QTULO.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 {\n forwardRef,\n type HtmlHTMLAttributes,\n type ComponentProps,\n} 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 {\n materialIconSize,\n internalIconSize,\n} 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\";\nimport type InternalIcon from \"../Icon/Icon\";\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?:\n | React.ComponentType<{ className?: string }>\n | React.ComponentType<ComponentProps<typeof InternalIcon>>;\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?:\n | React.ComponentType<{ className?: string }>\n | React.ComponentType<ComponentProps<typeof InternalIcon>>;\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 materialIconSize[size],\n foregroundColorClass,\n )}\n size={internalIconSize[size]}\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 materialIconSize[size],\n foregroundColorClass,\n )}\n size={internalIconSize[size]}\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;AAAA,EACE;AAAA,OAGK;AACP,OAAO,gBAAgB;;;ACLqE,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;;;AFqIpL,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,iBAAiB,IAAI;AAAA,gBACrB;AAAA,cACF;AAAA,cACA,MAAM,iBAAiB,IAAI;AAAA;AAAA,UAC7B;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,iBAAiB,IAAI;AAAA,gBACrB;AAAA,cACF;AAAA,cACA,MAAM,iBAAiB,IAAI;AAAA;AAAA,UAC7B;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,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _POMJQZKJcjs = require('../__chunks/POMJQZKJ.cjs');
|
|
5
5
|
require('../__chunks/SVA2ABQQ.cjs');
|
|
6
6
|
require('../__chunks/WFVGNGEP.cjs');
|
|
7
7
|
require('../__chunks/X2SDR4SD.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.default =
|
|
10
|
+
exports.default = _POMJQZKJcjs.textColor;
|
|
11
11
|
//# sourceMappingURL=textColors.cjs.map
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _3Z5DP4X3cjs = require('./__chunks/3Z5DP4X3.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _RC7EMZ6Ncjs = require('./__chunks/RC7EMZ6N.cjs');
|
|
@@ -10,44 +10,44 @@ var _RC7EMZ6Ncjs = require('./__chunks/RC7EMZ6N.cjs');
|
|
|
10
10
|
var _5COVOOB3cjs = require('./__chunks/5COVOOB3.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _BFODXGGOcjs = require('./__chunks/BFODXGGO.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _L32D5WEGcjs = require('./__chunks/L32D5WEG.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _UHOT5ZOHcjs = require('./__chunks/UHOT5ZOH.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _3TF4GQNLcjs = require('./__chunks/3TF4GQNL.cjs');
|
|
23
23
|
require('./__chunks/HUIHS6RN.cjs');
|
|
24
24
|
require('./__chunks/G3SXARBL.cjs');
|
|
25
25
|
require('./__chunks/THM3NAFO.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _O54TUH3Vcjs = require('./__chunks/O54TUH3V.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _SEJ4BIQGcjs = require('./__chunks/SEJ4BIQG.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _6VB3H32Icjs = require('./__chunks/6VB3H32I.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _G4CKRMFWcjs = require('./__chunks/G4CKRMFW.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
41
|
-
require('./__chunks/
|
|
40
|
+
var _32CNLC3Ocjs = require('./__chunks/32CNLC3O.cjs');
|
|
41
|
+
require('./__chunks/WEOENL5J.cjs');
|
|
42
42
|
require('./__chunks/J27AGJQB.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
var
|
|
46
|
-
require('./__chunks/
|
|
47
|
-
require('./__chunks/
|
|
45
|
+
var _ZGOHDWOBcjs = require('./__chunks/ZGOHDWOB.cjs');
|
|
46
|
+
require('./__chunks/43ZVOHDU.cjs');
|
|
47
|
+
require('./__chunks/5IOCCDL6.cjs');
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var _FIPWIWEOcjs = require('./__chunks/FIPWIWEO.cjs');
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
var _42SRFCQLcjs = require('./__chunks/42SRFCQL.cjs');
|
|
@@ -56,36 +56,36 @@ var _42SRFCQLcjs = require('./__chunks/42SRFCQL.cjs');
|
|
|
56
56
|
var _C5XPZTFOcjs = require('./__chunks/C5XPZTFO.cjs');
|
|
57
57
|
require('./__chunks/5JUNB754.cjs');
|
|
58
58
|
require('./__chunks/3P2PWHOU.cjs');
|
|
59
|
-
require('./__chunks/
|
|
60
|
-
require('./__chunks/
|
|
59
|
+
require('./__chunks/4Y7TNMFL.cjs');
|
|
60
|
+
require('./__chunks/7AVZDFCS.cjs');
|
|
61
61
|
require('./__chunks/MF7LLV7V.cjs');
|
|
62
|
-
require('./__chunks/
|
|
63
|
-
require('./__chunks/
|
|
62
|
+
require('./__chunks/6ZBLF7S2.cjs');
|
|
63
|
+
require('./__chunks/KA6GROBD.cjs');
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
var
|
|
66
|
+
var _4ENILLBCcjs = require('./__chunks/4ENILLBC.cjs');
|
|
67
67
|
require('./__chunks/RYUXG4AS.cjs');
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _Z66NM3NKcjs = require('./__chunks/Z66NM3NK.cjs');
|
|
71
71
|
require('./__chunks/XLUVINJW.cjs');
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
var
|
|
74
|
+
var _B3ZOLJLGcjs = require('./__chunks/B3ZOLJLG.cjs');
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
var
|
|
77
|
+
var _J2D7XRV7cjs = require('./__chunks/J2D7XRV7.cjs');
|
|
78
78
|
require('./__chunks/WFVGNGEP.cjs');
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
var
|
|
82
|
-
require('./__chunks/
|
|
83
|
-
require('./__chunks/
|
|
81
|
+
var _KFQOJ7RGcjs = require('./__chunks/KFQOJ7RG.cjs');
|
|
82
|
+
require('./__chunks/F7FFR34L.cjs');
|
|
83
|
+
require('./__chunks/OJKBVPRV.cjs');
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
var _3UEOKPM2cjs = require('./__chunks/3UEOKPM2.cjs');
|
|
87
87
|
require('./__chunks/JVGBP6LO.cjs');
|
|
88
|
-
require('./__chunks/
|
|
88
|
+
require('./__chunks/B3O42V6X.cjs');
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
var _KJLBDAZHcjs = require('./__chunks/KJLBDAZH.cjs');
|
|
@@ -96,7 +96,7 @@ require('./__chunks/65LHF5WD.cjs');
|
|
|
96
96
|
require('./__chunks/JTTZCAPP.cjs');
|
|
97
97
|
|
|
98
98
|
|
|
99
|
-
var
|
|
99
|
+
var _2PWZPH3Rcjs = require('./__chunks/2PWZPH3R.cjs');
|
|
100
100
|
require('./__chunks/PLUVW6AM.cjs');
|
|
101
101
|
require('./__chunks/IL22HCBF.cjs');
|
|
102
102
|
|
|
@@ -104,8 +104,8 @@ require('./__chunks/IL22HCBF.cjs');
|
|
|
104
104
|
require('./__chunks/CHDS4D44.cjs');
|
|
105
105
|
|
|
106
106
|
|
|
107
|
-
var
|
|
108
|
-
require('./__chunks/
|
|
107
|
+
var _42SXZKBGcjs = require('./__chunks/42SXZKBG.cjs');
|
|
108
|
+
require('./__chunks/POMJQZKJ.cjs');
|
|
109
109
|
require('./__chunks/SVA2ABQQ.cjs');
|
|
110
110
|
|
|
111
111
|
|
|
@@ -145,5 +145,5 @@ require('./__chunks/X2SDR4SD.cjs');
|
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
|
|
148
|
-
exports.Avatar = _RC7EMZ6Ncjs.Avatar_default; exports.AvatarGroup = _5COVOOB3cjs.AvatarGroup; exports.Badge =
|
|
148
|
+
exports.Avatar = _RC7EMZ6Ncjs.Avatar_default; exports.AvatarGroup = _5COVOOB3cjs.AvatarGroup; exports.Badge = _3Z5DP4X3cjs.Badge_default; exports.Box = _KJLBDAZHcjs.Box_default; exports.Button = _FIPWIWEOcjs.Button_default; exports.ButtonGroup = _C5XPZTFOcjs.ButtonGroup_default; exports.Card = _L32D5WEGcjs.Card_default; exports.Checkbox = _BFODXGGOcjs.Checkbox_default; exports.Chip = _4ENILLBCcjs.Chip_default; exports.Divider = _42SRFCQLcjs.Divider; exports.Heading = _3TF4GQNLcjs.Heading_default; exports.Icon = _SEJ4BIQGcjs.Icon_default; exports.IconButton = _ZGOHDWOBcjs.IconButton_default; exports.LinkButton = _O54TUH3Vcjs.LinkButton_default; exports.Modal = _UHOT5ZOHcjs.Modal; exports.Popover = _32CNLC3Ocjs.Popover_default; exports.RadioButton = _Z66NM3NKcjs.RadioButton_default; exports.RichSelectList = _G4CKRMFWcjs.RichSelectList_default; exports.SelectList = _6VB3H32Icjs.SelectList; exports.Tabs = _KFQOJ7RGcjs.Tabs; exports.TapArea = _3UEOKPM2cjs.TapArea_default; exports.TextArea = _J2D7XRV7cjs.TextArea_default; exports.TextField = _B3ZOLJLGcjs.TextField; exports.ThemeProvider = _7JET5NNKcjs.ThemeProvider; exports.Tooltip = _2PWZPH3Rcjs.Tooltip_default; exports.Typography = _42SXZKBGcjs.Typography_default;
|
|
149
149
|
//# sourceMappingURL=index.cjs.map
|