@cambly/syntax-core 19.2.0 → 19.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Avatar/Avatar.d.ts +1 -1
- package/dist/Badge/Badge.cjs +4 -4
- package/dist/Badge/Badge.d.ts +1 -1
- package/dist/Badge/Badge.js +3 -3
- package/dist/Button/Button.cjs +4 -4
- package/dist/Button/Button.js +3 -3
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/Checkbox/Checkbox.cjs +4 -4
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Checkbox/Checkbox.js +3 -3
- package/dist/Chip/Chip.cjs +4 -4
- package/dist/Chip/Chip.js +3 -3
- package/dist/Heading/Heading.cjs +4 -4
- package/dist/Heading/Heading.d.ts +1 -1
- package/dist/Heading/Heading.js +3 -3
- package/dist/LinkButton/LinkButton.cjs +4 -4
- package/dist/LinkButton/LinkButton.js +3 -3
- package/dist/Modal/Modal.cjs +5 -5
- package/dist/Modal/Modal.js +4 -4
- package/dist/RadioButton/RadioButton.cjs +4 -4
- package/dist/RadioButton/RadioButton.d.ts +1 -1
- package/dist/RadioButton/RadioButton.js +3 -3
- package/dist/RichSelect/RichSelectBox.cjs +10 -10
- package/dist/RichSelect/RichSelectBox.d.ts +1 -1
- package/dist/RichSelect/RichSelectBox.js +9 -9
- package/dist/RichSelect/RichSelectChip.cjs +5 -5
- package/dist/RichSelect/RichSelectChip.js +4 -4
- package/dist/RichSelect/RichSelectList.cjs +12 -12
- package/dist/RichSelect/RichSelectList.d.ts +1 -1
- package/dist/RichSelect/RichSelectList.js +11 -11
- package/dist/RichSelect/RichSelectRadioButton.cjs +5 -5
- package/dist/RichSelect/RichSelectRadioButton.d.ts +1 -1
- 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/TabButton/TabButton.cjs +5 -5
- package/dist/TabButton/TabButton.js +4 -4
- package/dist/TabLink/TabLink.cjs +5 -5
- package/dist/TabLink/TabLink.js +4 -4
- package/dist/Tabs/TabInternal.cjs +4 -4
- package/dist/Tabs/TabInternal.js +3 -3
- package/dist/TapArea/TapArea.d.ts +1 -1
- package/dist/TextArea/TextArea.cjs +4 -4
- package/dist/TextArea/TextArea.css +21 -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 +21 -9
- package/dist/TextField/TextField.css.map +1 -1
- package/dist/TextField/TextField.d.ts +7 -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.d.ts +3 -3
- package/dist/Typography/Typography.js +2 -2
- package/dist/WordConfetti/WordConfetti.cjs +4 -4
- package/dist/WordConfetti/WordConfetti.js +3 -3
- package/dist/__chunks/{E3A6VFMB.cjs → 23LD2DDB.cjs} +4 -4
- package/dist/__chunks/{YMIQ7WYX.js → 2PSHSFAV.js} +2 -2
- package/dist/__chunks/{OQSEZXJ6.cjs → 2RPK7IB4.cjs} +3 -3
- package/dist/__chunks/{TWWEORFR.js → 44XT4MCS.js} +3 -3
- package/dist/__chunks/{TWWEORFR.js.map → 44XT4MCS.js.map} +1 -1
- package/dist/__chunks/{BFEZ3PUT.cjs → 7VNHS3DA.cjs} +3 -3
- package/dist/__chunks/{HO7QM7X2.js → ACYC4E6D.js} +1 -1
- package/dist/__chunks/{HO7QM7X2.js.map → ACYC4E6D.js.map} +1 -1
- package/dist/__chunks/{5NI7VPKS.cjs → AJC6QV6M.cjs} +17 -15
- package/dist/__chunks/AJC6QV6M.cjs.map +1 -0
- package/dist/__chunks/{OVHMMIVE.cjs → BFZFNLM5.cjs} +3 -3
- package/dist/__chunks/{AHICHJTL.js → BYNWTNUV.js} +2 -2
- package/dist/__chunks/{ML36DCKL.cjs → C5V4NLVS.cjs} +3 -3
- package/dist/__chunks/{OBQBJKAY.cjs → CMUPFOVX.cjs} +3 -3
- package/dist/__chunks/{DWVTJZC6.js → CVRG3CQ3.js} +2 -2
- package/dist/__chunks/{5S7HZU4Z.js → D45HCKL3.js} +2 -2
- package/dist/__chunks/{ZYPHFC2R.js → DTQMK5RP.js} +2 -2
- package/dist/__chunks/{KR6JQ2DS.js → FSSHUBX3.js} +2 -2
- package/dist/__chunks/{5SG2TWV3.cjs → G2RAXJEA.cjs} +19 -19
- package/dist/__chunks/{OMXDPTE4.cjs → GK3YX7CI.cjs} +10 -10
- package/dist/__chunks/{E27BHPP7.js → HG43LCAW.js} +2 -2
- package/dist/__chunks/{OYIKKE7V.js → HILWIYOJ.js} +2 -2
- package/dist/__chunks/{4SO4HHVL.js → IEBCEU7G.js} +7 -7
- package/dist/__chunks/{S4JNYLMA.cjs → JN5UK7KH.cjs} +4 -4
- package/dist/__chunks/{DAK5IGJK.js → KIEWPPIM.js} +2 -2
- package/dist/__chunks/KIEWPPIM.js.map +1 -0
- package/dist/__chunks/{ZHU5A7BH.js → M57BB52X.js} +5 -5
- package/dist/__chunks/{PBHAJ42K.js → MTR3ESEZ.js} +2 -2
- package/dist/__chunks/{4EVPNC6V.js → MZ3D63DQ.js} +17 -15
- package/dist/__chunks/MZ3D63DQ.js.map +1 -0
- package/dist/__chunks/{URBKDUMU.cjs → OOAQZC7E.cjs} +3 -3
- package/dist/__chunks/{UXSGTOGU.cjs → PCEOK3GO.cjs} +3 -3
- package/dist/__chunks/{VWM2UOZ3.cjs → PGDIO77V.cjs} +3 -3
- package/dist/__chunks/{66VTCVJA.cjs → PGMFMTEU.cjs} +3 -3
- package/dist/__chunks/{AUO7CEJI.cjs → QJGERVMN.cjs} +6 -6
- package/dist/__chunks/QJGERVMN.cjs.map +1 -0
- package/dist/__chunks/{56LMASNQ.js → RVF6GMID.js} +2 -2
- package/dist/__chunks/{TG2RCNZT.js → SG3FRX2U.js} +2 -2
- package/dist/__chunks/{GMIOWJBD.js → STMMCDX5.js} +2 -2
- package/dist/__chunks/{KY2TFXG3.js → SVNXSJ7Z.js} +2 -2
- package/dist/__chunks/{BDCZ5GX7.cjs → TA4EX7DL.cjs} +4 -2
- package/dist/__chunks/TA4EX7DL.cjs.map +1 -0
- package/dist/__chunks/{F2ZYHRNY.js → TGUOITLK.js} +2 -2
- package/dist/__chunks/{JOTFTEBX.cjs → TTR4ZAGC.cjs} +3 -3
- package/dist/__chunks/{4MHKTQMD.js → VAVIKPVS.js} +2 -2
- package/dist/__chunks/{OLWRIS56.js → VJNSSF3W.js} +2 -2
- package/dist/__chunks/{CWVVOO2G.cjs → W4YEJQZH.cjs} +8 -8
- package/dist/__chunks/{EHZAOGLQ.cjs → WHTMS6T3.cjs} +3 -3
- package/dist/__chunks/{5NQO6SP3.cjs → WS6CZJQ6.cjs} +3 -3
- package/dist/__chunks/WS6CZJQ6.cjs.map +1 -0
- package/dist/__chunks/{IHGDCH62.cjs → WSKCMPTD.cjs} +3 -3
- package/dist/__chunks/{4AI6GQ5U.cjs → WT62D7UB.cjs} +3 -3
- package/dist/__chunks/{ULC7XW64.cjs → X4H65FEF.cjs} +1 -1
- package/dist/__chunks/{ULC7XW64.cjs.map → X4H65FEF.cjs.map} +1 -1
- package/dist/__chunks/{KZIOUAWM.js → XRYFXCR2.js} +3 -3
- package/dist/__chunks/{VU4LGL2W.js → YSI244J6.js} +4 -2
- package/dist/__chunks/YSI244J6.js.map +1 -0
- package/dist/__chunks/{CCKTB7L5.cjs → Z3S2ZWTJ.cjs} +3 -3
- package/dist/colors/textColors.cjs +2 -2
- package/dist/colors/textColors.d.ts +1 -1
- package/dist/colors/textColors.js +1 -1
- package/dist/index.cjs +25 -25
- package/dist/index.css +21 -9
- package/dist/index.css.map +1 -1
- package/dist/index.js +24 -24
- package/package.json +1 -1
- package/dist/__chunks/4EVPNC6V.js.map +0 -1
- package/dist/__chunks/5NI7VPKS.cjs.map +0 -1
- package/dist/__chunks/5NQO6SP3.cjs.map +0 -1
- package/dist/__chunks/AUO7CEJI.cjs.map +0 -1
- package/dist/__chunks/BDCZ5GX7.cjs.map +0 -1
- package/dist/__chunks/DAK5IGJK.js.map +0 -1
- package/dist/__chunks/VU4LGL2W.js.map +0 -1
- /package/dist/__chunks/{E3A6VFMB.cjs.map → 23LD2DDB.cjs.map} +0 -0
- /package/dist/__chunks/{YMIQ7WYX.js.map → 2PSHSFAV.js.map} +0 -0
- /package/dist/__chunks/{OQSEZXJ6.cjs.map → 2RPK7IB4.cjs.map} +0 -0
- /package/dist/__chunks/{BFEZ3PUT.cjs.map → 7VNHS3DA.cjs.map} +0 -0
- /package/dist/__chunks/{OVHMMIVE.cjs.map → BFZFNLM5.cjs.map} +0 -0
- /package/dist/__chunks/{AHICHJTL.js.map → BYNWTNUV.js.map} +0 -0
- /package/dist/__chunks/{ML36DCKL.cjs.map → C5V4NLVS.cjs.map} +0 -0
- /package/dist/__chunks/{OBQBJKAY.cjs.map → CMUPFOVX.cjs.map} +0 -0
- /package/dist/__chunks/{DWVTJZC6.js.map → CVRG3CQ3.js.map} +0 -0
- /package/dist/__chunks/{5S7HZU4Z.js.map → D45HCKL3.js.map} +0 -0
- /package/dist/__chunks/{ZYPHFC2R.js.map → DTQMK5RP.js.map} +0 -0
- /package/dist/__chunks/{KR6JQ2DS.js.map → FSSHUBX3.js.map} +0 -0
- /package/dist/__chunks/{5SG2TWV3.cjs.map → G2RAXJEA.cjs.map} +0 -0
- /package/dist/__chunks/{OMXDPTE4.cjs.map → GK3YX7CI.cjs.map} +0 -0
- /package/dist/__chunks/{E27BHPP7.js.map → HG43LCAW.js.map} +0 -0
- /package/dist/__chunks/{OYIKKE7V.js.map → HILWIYOJ.js.map} +0 -0
- /package/dist/__chunks/{4SO4HHVL.js.map → IEBCEU7G.js.map} +0 -0
- /package/dist/__chunks/{S4JNYLMA.cjs.map → JN5UK7KH.cjs.map} +0 -0
- /package/dist/__chunks/{ZHU5A7BH.js.map → M57BB52X.js.map} +0 -0
- /package/dist/__chunks/{PBHAJ42K.js.map → MTR3ESEZ.js.map} +0 -0
- /package/dist/__chunks/{URBKDUMU.cjs.map → OOAQZC7E.cjs.map} +0 -0
- /package/dist/__chunks/{UXSGTOGU.cjs.map → PCEOK3GO.cjs.map} +0 -0
- /package/dist/__chunks/{VWM2UOZ3.cjs.map → PGDIO77V.cjs.map} +0 -0
- /package/dist/__chunks/{66VTCVJA.cjs.map → PGMFMTEU.cjs.map} +0 -0
- /package/dist/__chunks/{56LMASNQ.js.map → RVF6GMID.js.map} +0 -0
- /package/dist/__chunks/{TG2RCNZT.js.map → SG3FRX2U.js.map} +0 -0
- /package/dist/__chunks/{GMIOWJBD.js.map → STMMCDX5.js.map} +0 -0
- /package/dist/__chunks/{KY2TFXG3.js.map → SVNXSJ7Z.js.map} +0 -0
- /package/dist/__chunks/{F2ZYHRNY.js.map → TGUOITLK.js.map} +0 -0
- /package/dist/__chunks/{JOTFTEBX.cjs.map → TTR4ZAGC.cjs.map} +0 -0
- /package/dist/__chunks/{4MHKTQMD.js.map → VAVIKPVS.js.map} +0 -0
- /package/dist/__chunks/{OLWRIS56.js.map → VJNSSF3W.js.map} +0 -0
- /package/dist/__chunks/{CWVVOO2G.cjs.map → W4YEJQZH.cjs.map} +0 -0
- /package/dist/__chunks/{EHZAOGLQ.cjs.map → WHTMS6T3.cjs.map} +0 -0
- /package/dist/__chunks/{IHGDCH62.cjs.map → WSKCMPTD.cjs.map} +0 -0
- /package/dist/__chunks/{4AI6GQ5U.cjs.map → WT62D7UB.cjs.map} +0 -0
- /package/dist/__chunks/{KZIOUAWM.js.map → XRYFXCR2.js.map} +0 -0
- /package/dist/__chunks/{CCKTB7L5.cjs.map → Z3S2ZWTJ.cjs.map} +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _QODNNCT2cjs = require('./QODNNCT2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _WS6CZJQ6cjs = require('./WS6CZJQ6.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _2XIVACBMcjs = require('./2XIVACBM.cjs');
|
|
@@ -40,7 +40,7 @@ var ItemCountIcon = ({
|
|
|
40
40
|
rounding: "full",
|
|
41
41
|
padding: 1,
|
|
42
42
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43
|
-
|
|
43
|
+
_WS6CZJQ6cjs.Typography_default,
|
|
44
44
|
{
|
|
45
45
|
color: on === "lightBackground" ? "white" : "primary",
|
|
46
46
|
weight: "semiBold",
|
|
@@ -79,7 +79,7 @@ function TabInternal({
|
|
|
79
79
|
paddingY: 2,
|
|
80
80
|
children: [
|
|
81
81
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
82
|
-
|
|
82
|
+
_WS6CZJQ6cjs.Typography_default,
|
|
83
83
|
{
|
|
84
84
|
size: 0,
|
|
85
85
|
transform: "uppercase",
|
|
@@ -98,4 +98,4 @@ function TabInternal({
|
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
exports.TabInternal = TabInternal;
|
|
101
|
-
//# sourceMappingURL=
|
|
101
|
+
//# sourceMappingURL=JN5UK7KH.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
textColor
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./YSI244J6.js";
|
|
5
5
|
|
|
6
6
|
// src/Typography/Typography.tsx
|
|
7
7
|
import classNames from "classnames";
|
|
@@ -61,4 +61,4 @@ var Typography_default = Typography;
|
|
|
61
61
|
export {
|
|
62
62
|
Typography_default
|
|
63
63
|
};
|
|
64
|
-
//# sourceMappingURL=
|
|
64
|
+
//# sourceMappingURL=KIEWPPIM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Typography/Typography.tsx","css-module:./Typography.module.css#css-module"],"sourcesContent":["import classNames from \"classnames\";\nimport { forwardRef, type ReactElement, type ReactNode } from \"react\";\nimport styles from \"./Typography.module.css\";\nimport textColor from \"../colors/textColors\";\n\n/**\n * [Typography](https://cambly-syntax.vercel.app/?path=/docs/components-typography--docs) is a component that renders text.\n */\nconst Typography = forwardRef<\n HTMLDivElement,\n {\n /**\n * Aligns the text to the left, right, or center of the container.\n * * `start` and `end` will align the text to the left or right of the container depending on the locale.\n * * `forceLeft` and `forceRight` will align the text to the left or right of the container regardless of the locale (should be used sparingly).\n *\n * @defaultValue \"start\"\n */\n align?: \"start\" | \"end\" | \"forceLeft\" | \"center\" | \"forceRight\";\n /**\n * DOM element to render as.\n *\n * @defaultValue \"div\"\n */\n as?: \"div\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | \"p\";\n /**\n * The text to be rendered\n */\n children?: ReactNode;\n /**\n * The color of the text.\n *\n * @defaultValue \"gray900\"\n */\n color?:\n | \"gray900\"\n | \"gray700\"\n | \"primary\"\n | \"destructive-primary\"\n | \"destructive-darkBackground\"\n | \"destructive-lightBackground\"\n | \"success\"\n | \"success-darkBackground\"\n | \"white\"\n | \"white-secondary\"\n | \"inherit\";\n /**\n * Test id for the text\n */\n \"data-testid\"?: string;\n /**\n * Style of the font\n *\n * Classic only supports `sans-serif`\n *\n * @defaultValue \"sans-serif\"\n */\n fontStyle?: \"serif\" | \"sans-serif\";\n /**\n * The id for the element\n */\n id?: string;\n /**\n * Whether the text should flow inline with other elements.\n *\n * @defaultValue false\n */\n inline?: boolean;\n /**\n * The number of lines we should truncate the text at\n */\n lineClamp?: number | undefined;\n /**\n * Size of the text.\n *\n * Mobile (viewport width <= 480px)::\n * * `0`: 12px\n * * `100`: 13px\n * * `200`: 16px\n * * `300`: 19px\n * * `400`: 25px\n * * `700`: 38px\n * * `800`: 46px\n * * `900`: 55px\n * * `1100`: 83px\n *\n * Desktop (viewport width > 480px):\n * * `0`: 12px\n * * `100`: 13px\n * * `200`: 16px\n * * `300`: 20px\n * * `400`: 25px\n * * `700`: 49px\n * * `800`: 63px\n * * `900`: 76px\n * * `1100`: 119px\n *\n * @defaultValue 200\n */\n size?: 0 | 100 | 200 | 300 | 400 | 700 | 800 | 900 | 1100;\n /**\n * The tooltip to be displayed when the user hovers the text\n */\n tooltip?: string;\n /**\n * Whether the text should be transformed to uppercase.\n *\n * @defaultValue \"none\"\n */\n transform?: \"none\" | \"uppercase\";\n /**\n * Whether the text has an underline.\n *\n * @defaultValue false\n */\n underline?: boolean;\n /**\n * Indicates the boldness of the text.\n *\n * * `regular`: 400\n * * `medium`: 510\n * * `semiBold`: 590\n * * `bold`: 710\n *\n * @defaultValue \"regular\"\n */\n weight?: \"regular\" | \"medium\" | \"semiBold\" | \"bold\";\n }\n>(function Typography(\n {\n align = \"start\",\n as = \"div\",\n children,\n color = \"gray900\",\n \"data-testid\": dataTestId,\n fontStyle = \"sans-serif\",\n id,\n inline = false,\n lineClamp = undefined,\n size = 200,\n tooltip,\n transform = \"none\",\n underline = false,\n weight = \"regular\",\n },\n ref,\n): ReactElement {\n const Tag = as;\n\n return (\n <Tag\n id={id}\n className={classNames(\n styles.typography,\n styles[align],\n styles[weight],\n fontStyle === \"serif\" ? styles.serif : styles.sansSerif,\n textColor(color),\n inline && styles.inline,\n styles[`size${size}`],\n transform === \"uppercase\" && styles.uppercase,\n underline && styles.underline,\n lineClamp != null && styles.lineClamp,\n as === \"p\" && styles[`p${size}`],\n )}\n data-testid={dataTestId}\n style={{\n WebkitLineClamp: lineClamp,\n }}\n title={tooltip}\n ref={ref}\n >\n {children}\n </Tag>\n );\n});\n\nexport default Typography;\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Typography/Typography.module.css\"; export default {\"typography\":\"_typography_1fz2y_1\",\"sansSerif\":\"_sansSerif_1fz2y_22\",\"serif\":\"_serif_1fz2y_27\",\"size0\":\"_size0_1fz2y_73\",\"size100\":\"_size100_1fz2y_77\",\"size200\":\"_size200_1fz2y_81\",\"size300\":\"_size300_1fz2y_85\",\"size400\":\"_size400_1fz2y_89\",\"size700\":\"_size700_1fz2y_93\",\"size800\":\"_size800_1fz2y_97\",\"size900\":\"_size900_1fz2y_101\",\"size1100\":\"_size1100_1fz2y_105\",\"center\":\"_center_1fz2y_133\",\"forceLeft\":\"_forceLeft_1fz2y_137\",\"forceRight\":\"_forceRight_1fz2y_141\",\"start\":\"_start_1fz2y_145\",\"end\":\"_end_1fz2y_149\",\"regular\":\"_regular_1fz2y_155\",\"medium\":\"_medium_1fz2y_159\",\"semiBold\":\"_semiBold_1fz2y_163\",\"bold\":\"_bold_1fz2y_167\",\"underline\":\"_underline_1fz2y_171\",\"inline\":\"_inline_1fz2y_175\",\"uppercase\":\"_uppercase_1fz2y_179\",\"lineClamp\":\"_lineClamp_1fz2y_183\",\"p100\":\"_p100_1fz2y_192\",\"p200\":\"_p200_1fz2y_196\",\"p300\":\"_p300_1fz2y_200\",\"p400\":\"_p400_1fz2y_204\"}"],"mappings":";;;;;;AAAA,OAAO,gBAAgB;AACvB,SAAS,kBAAqD;;;ACDsC,IAAO,4BAAQ,EAAC,cAAa,uBAAsB,aAAY,uBAAsB,SAAQ,mBAAkB,SAAQ,mBAAkB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,sBAAqB,YAAW,uBAAsB,UAAS,qBAAoB,aAAY,wBAAuB,cAAa,yBAAwB,SAAQ,oBAAmB,OAAM,kBAAiB,WAAU,sBAAqB,UAAS,qBAAoB,YAAW,uBAAsB,QAAO,mBAAkB,aAAY,wBAAuB,UAAS,qBAAoB,aAAY,wBAAuB,aAAY,wBAAuB,QAAO,mBAAkB,QAAO,mBAAkB,QAAO,mBAAkB,QAAO,kBAAiB;;;ADsJn9B;AA9IJ,IAAM,aAAa,WAwHjB,SAASA,YACT;AAAA,EACE,QAAQ;AAAA,EACR,KAAK;AAAA,EACL;AAAA,EACA,QAAQ;AAAA,EACR,eAAe;AAAA,EACf,YAAY;AAAA,EACZ;AAAA,EACA,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,OAAO;AAAA,EACP;AAAA,EACA,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,SAAS;AACX,GACA,KACc;AACd,QAAM,MAAM;AAEZ,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,WAAW;AAAA,QACT,0BAAO;AAAA,QACP,0BAAO,KAAK;AAAA,QACZ,0BAAO,MAAM;AAAA,QACb,cAAc,UAAU,0BAAO,QAAQ,0BAAO;AAAA,QAC9C,UAAU,KAAK;AAAA,QACf,UAAU,0BAAO;AAAA,QACjB,0BAAO,OAAO,MAAM;AAAA,QACpB,cAAc,eAAe,0BAAO;AAAA,QACpC,aAAa,0BAAO;AAAA,QACpB,aAAa,QAAQ,0BAAO;AAAA,QAC5B,OAAO,OAAO,0BAAO,IAAI,MAAM;AAAA,MACjC;AAAA,MACA,eAAa;AAAA,MACb,OAAO;AAAA,QACL,iBAAiB;AAAA,MACnB;AAAA,MACA,OAAO;AAAA,MACP;AAAA,MAEC;AAAA;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,qBAAQ;","names":["Typography"]}
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
} from "./36DG472B.js";
|
|
5
5
|
import {
|
|
6
6
|
Button_default
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./SVNXSJ7Z.js";
|
|
8
8
|
import {
|
|
9
9
|
Divider
|
|
10
10
|
} from "./M4W3IFMV.js";
|
|
11
11
|
import {
|
|
12
12
|
RichSelectSection_default
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./BYNWTNUV.js";
|
|
14
14
|
import {
|
|
15
15
|
RichSelectRadioButton_default
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./CVRG3CQ3.js";
|
|
17
17
|
import {
|
|
18
18
|
RichSelectChip_default
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./RVF6GMID.js";
|
|
20
20
|
import {
|
|
21
21
|
RichSelectItemContext,
|
|
22
22
|
RichSelect_module_default
|
|
@@ -208,4 +208,4 @@ export {
|
|
|
208
208
|
RichSelectBoxContext,
|
|
209
209
|
RichSelectBox_default
|
|
210
210
|
};
|
|
211
|
-
//# sourceMappingURL=
|
|
211
|
+
//# sourceMappingURL=M57BB52X.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./IB6JZQF3.js";
|
|
5
5
|
import {
|
|
6
6
|
Typography_default
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./KIEWPPIM.js";
|
|
8
8
|
import {
|
|
9
9
|
colors_module_default
|
|
10
10
|
} from "./XSYKMCV5.js";
|
|
@@ -98,4 +98,4 @@ function TabInternal({
|
|
|
98
98
|
export {
|
|
99
99
|
TabInternal
|
|
100
100
|
};
|
|
101
|
-
//# sourceMappingURL=
|
|
101
|
+
//# sourceMappingURL=MTR3ESEZ.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./IB6JZQF3.js";
|
|
5
5
|
import {
|
|
6
6
|
Typography_default
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./KIEWPPIM.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_f2wi6_1", "transparent": "_transparent_f2wi6_13", "label": "_label_f2wi6_28", "md": "_md_f2wi6_32", "height": "_height_f2wi6_36", "inputError": "_inputError_f2wi6_40", "transparentInputError": "_transparentInputError_f2wi6_49", "transparenInputError": "_transparenInputError_f2wi6_54" };
|
|
20
20
|
|
|
21
21
|
// src/TextField/TextField.tsx
|
|
22
22
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -24,6 +24,7 @@ function TextField({
|
|
|
24
24
|
autoComplete,
|
|
25
25
|
"data-testid": dataTestId,
|
|
26
26
|
disabled: disabledProp = false,
|
|
27
|
+
on = "lightBackground",
|
|
27
28
|
errorText = "",
|
|
28
29
|
helperText = "",
|
|
29
30
|
id,
|
|
@@ -39,6 +40,8 @@ function TextField({
|
|
|
39
40
|
const disabled = !isHydrated || disabledProp;
|
|
40
41
|
const reactId = useId();
|
|
41
42
|
const inputId = id != null ? id : reactId;
|
|
43
|
+
const textColor = on === "darkBackground" ? "white" : "gray900";
|
|
44
|
+
const errorTextColor = on !== "darkBackground" ? "destructive-lightBackground" : "destructive-darkBackground";
|
|
42
45
|
return /* @__PURE__ */ jsxs(
|
|
43
46
|
Box_default,
|
|
44
47
|
{
|
|
@@ -52,14 +55,20 @@ function TextField({
|
|
|
52
55
|
}
|
|
53
56
|
},
|
|
54
57
|
children: [
|
|
55
|
-
label && /* @__PURE__ */ jsx("label", { className: TextField_module_default.label, htmlFor: inputId, children: /* @__PURE__ */ jsx(Box_default, { paddingX: 1, children: /* @__PURE__ */ jsx(Typography_default, { size: 100, color:
|
|
58
|
+
label && /* @__PURE__ */ jsx("label", { className: TextField_module_default.label, htmlFor: inputId, children: /* @__PURE__ */ jsx(Box_default, { paddingX: 1, children: /* @__PURE__ */ jsx(Typography_default, { size: 100, color: textColor, children: label }) }) }),
|
|
56
59
|
/* @__PURE__ */ jsx(
|
|
57
60
|
"input",
|
|
58
61
|
{
|
|
59
62
|
autoComplete,
|
|
60
|
-
className: classNames(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
+
className: classNames(
|
|
64
|
+
TextField_module_default.textfield,
|
|
65
|
+
TextField_module_default.md,
|
|
66
|
+
TextField_module_default.height,
|
|
67
|
+
errorText && (on === "darkBackground" ? TextField_module_default.transparentInputError : TextField_module_default.inputError),
|
|
68
|
+
{
|
|
69
|
+
[TextField_module_default.transparent]: on === "darkBackground"
|
|
70
|
+
}
|
|
71
|
+
),
|
|
63
72
|
"data-testid": dataTestId,
|
|
64
73
|
disabled,
|
|
65
74
|
id: inputId,
|
|
@@ -71,14 +80,7 @@ function TextField({
|
|
|
71
80
|
step
|
|
72
81
|
}
|
|
73
82
|
),
|
|
74
|
-
(helperText || errorText) && /* @__PURE__ */ jsx(Box_default, { paddingX: 1, children: /* @__PURE__ */ jsx(
|
|
75
|
-
Typography_default,
|
|
76
|
-
{
|
|
77
|
-
size: 100,
|
|
78
|
-
color: errorText ? "destructive-darkBackground" : "gray700",
|
|
79
|
-
children: errorText || helperText
|
|
80
|
-
}
|
|
81
|
-
) })
|
|
83
|
+
(helperText || errorText) && /* @__PURE__ */ jsx(Box_default, { paddingX: 1, children: /* @__PURE__ */ jsx(Typography_default, { size: 100, color: errorText ? errorTextColor : textColor, children: errorText || helperText }) })
|
|
82
84
|
]
|
|
83
85
|
}
|
|
84
86
|
);
|
|
@@ -87,4 +89,4 @@ function TextField({
|
|
|
87
89
|
export {
|
|
88
90
|
TextField
|
|
89
91
|
};
|
|
90
|
-
//# sourceMappingURL=
|
|
92
|
+
//# sourceMappingURL=MZ3D63DQ.js.map
|
|
@@ -0,0 +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 on = \"lightBackground\",\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 * 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 * 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 const textColor = on === \"darkBackground\" ? \"white\" : \"gray900\";\n const errorTextColor =\n on !== \"darkBackground\"\n ? \"destructive-lightBackground\"\n : \"destructive-darkBackground\";\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={textColor}>\n {label}\n </Typography>\n </Box>\n </label>\n )}\n <input\n autoComplete={autoComplete}\n className={classNames(\n styles.textfield,\n styles.md,\n styles.height,\n errorText &&\n (on === \"darkBackground\"\n ? styles.transparentInputError\n : styles.inputError),\n {\n [styles.transparent]: on === \"darkBackground\",\n },\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 size={100} color={errorText ? errorTextColor : textColor}>\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_f2wi6_1\",\"transparent\":\"_transparent_f2wi6_13\",\"label\":\"_label_f2wi6_28\",\"md\":\"_md_f2wi6_32\",\"height\":\"_height_f2wi6_36\",\"inputError\":\"_inputError_f2wi6_40\",\"transparentInputError\":\"_transparentInputError_f2wi6_49\",\"transparenInputError\":\"_transparenInputError_f2wi6_54\"}"],"mappings":";;;;;;;;;;;;AAAA;AAAA,EAGE;AAAA,OACK;AACP,OAAO,gBAAgB;;;ACL2E,IAAO,2BAAQ,EAAC,aAAY,sBAAqB,eAAc,yBAAwB,SAAQ,mBAAkB,MAAK,gBAAe,UAAS,oBAAmB,cAAa,wBAAuB,yBAAwB,mCAAkC,wBAAuB,iCAAgC;;;ADyGpZ,SAcQ,KAdR;AA3FW,SAAR,UAA2B;AAAA,EAChC;AAAA,EACA,eAAe;AAAA,EACf,UAAU,eAAe;AAAA,EACzB,KAAK;AAAA,EACL,YAAY;AAAA,EACZ,aAAa;AAAA,EACb;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,cAAc;AAAA,EACd,OAAO;AAAA,EACP,QAAQ;AAAA,EACR;AACF,GAiEiB;AACf,QAAM,aAAa,cAAc;AACjC,QAAM,WAAW,CAAC,cAAc;AAChC,QAAM,UAAU,MAAM;AACtB,QAAM,UAAU,kBAAM;AACtB,QAAM,YAAY,OAAO,mBAAmB,UAAU;AACtD,QAAM,iBACJ,OAAO,mBACH,gCACA;AACN,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,OAAO,WAC3B,iBACH,GACF,GACF;AAAA,QAEF;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA,WAAW;AAAA,cACT,yBAAO;AAAA,cACP,yBAAO;AAAA,cACP,yBAAO;AAAA,cACP,cACG,OAAO,mBACJ,yBAAO,wBACP,yBAAO;AAAA,cACb;AAAA,gBACE,CAAC,yBAAO,WAAW,GAAG,OAAO;AAAA,cAC/B;AAAA,YACF;AAAA,YACA,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,8BAAC,sBAAW,MAAM,KAAK,OAAO,YAAY,iBAAiB,WACxD,uBAAa,YAChB,GACF;AAAA;AAAA;AAAA,EAEJ;AAEJ;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _WSKCMPTDcjs = require('./WSKCMPTD.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
|
+
_WSKCMPTDcjs.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=OOAQZC7E.cjs.map
|
|
@@ -10,7 +10,7 @@ var _IL22HCBFcjs = require('./IL22HCBF.cjs');
|
|
|
10
10
|
var _CHDS4D44cjs = require('./CHDS4D44.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _WS6CZJQ6cjs = require('./WS6CZJQ6.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
var _2XIVACBMcjs = require('./2XIVACBM.cjs');
|
|
@@ -104,7 +104,7 @@ var AriaTooltip = _react.forwardRef.call(void 0, function AriaTooltip2(_a, ref)
|
|
|
104
104
|
childrenProp,
|
|
105
105
|
(children, { isEntering, isExiting }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
106
106
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipArrow, { on }),
|
|
107
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
107
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _WS6CZJQ6cjs.Typography_default, { size: 100, color: "white", children }),
|
|
108
108
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
109
109
|
_E5P6WRJDcjs.OverlayVisibility,
|
|
110
110
|
{
|
|
@@ -166,4 +166,4 @@ var Tooltip_default = Tooltip;
|
|
|
166
166
|
|
|
167
167
|
|
|
168
168
|
exports.AriaTooltip = AriaTooltip; exports.Tooltip_default = Tooltip_default;
|
|
169
|
-
//# sourceMappingURL=
|
|
169
|
+
//# sourceMappingURL=PCEOK3GO.cjs.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _QODNNCT2cjs = require('./QODNNCT2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _WS6CZJQ6cjs = require('./WS6CZJQ6.cjs');
|
|
8
8
|
|
|
9
9
|
// src/WordConfetti/WordConfetti.tsx
|
|
10
10
|
var _react = require('react');
|
|
@@ -48,7 +48,7 @@ var WordConfetto = ({
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
width: "fit-content",
|
|
51
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
51
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _WS6CZJQ6cjs.Typography_default, { size, weight: "bold", fontStyle: "serif", children: text })
|
|
52
52
|
}
|
|
53
53
|
);
|
|
54
54
|
};
|
|
@@ -101,4 +101,4 @@ var WordConfetti_default = WordConfetti;
|
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
exports.WordConfetti_default = WordConfetti_default;
|
|
104
|
-
//# sourceMappingURL=
|
|
104
|
+
//# sourceMappingURL=PGDIO77V.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 _WT62D7UBcjs = require('./WT62D7UB.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
|
+
_WT62D7UBcjs.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=PGMFMTEU.cjs.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _QODNNCT2cjs = require('./QODNNCT2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _WS6CZJQ6cjs = require('./WS6CZJQ6.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _K4AUV2VKcjs = require('./K4AUV2VK.cjs');
|
|
@@ -16,7 +16,7 @@ var _react = require('react');
|
|
|
16
16
|
var TextArea_module_default = { "textarea": "_textarea_1sb0v_1", "resizenone": "_resizenone_1sb0v_6", "resizehorizontal": "_resizehorizontal_1sb0v_10", "resizevertical": "_resizevertical_1sb0v_14", "resizeboth": "_resizeboth_1sb0v_18" };
|
|
17
17
|
|
|
18
18
|
// css-module:../TextField/TextField.module.css#css-module
|
|
19
|
-
var TextField_module_default = { "textfield": "
|
|
19
|
+
var TextField_module_default = { "textfield": "_textfield_f2wi6_1", "transparent": "_transparent_f2wi6_13", "label": "_label_f2wi6_28", "md": "_md_f2wi6_32", "height": "_height_f2wi6_36", "inputError": "_inputError_f2wi6_40", "transparentInputError": "_transparentInputError_f2wi6_49", "transparenInputError": "_transparenInputError_f2wi6_54" };
|
|
20
20
|
|
|
21
21
|
// src/TextArea/TextArea.tsx
|
|
22
22
|
var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames);
|
|
@@ -54,8 +54,8 @@ var TextArea = _react.forwardRef.call(void 0,
|
|
|
54
54
|
},
|
|
55
55
|
position: "relative",
|
|
56
56
|
children: [
|
|
57
|
-
label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: TextField_module_default.label, htmlFor: inputId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _QODNNCT2cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
58
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
57
|
+
label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: TextField_module_default.label, htmlFor: inputId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _QODNNCT2cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _WS6CZJQ6cjs.Typography_default, { size: 100, color: "gray700", children: label }) }) }),
|
|
58
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _WS6CZJQ6cjs.Typography_default, { size: 100, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
59
59
|
"textarea",
|
|
60
60
|
{
|
|
61
61
|
"data-testid": dataTestId,
|
|
@@ -78,7 +78,7 @@ var TextArea = _react.forwardRef.call(void 0,
|
|
|
78
78
|
}
|
|
79
79
|
) }),
|
|
80
80
|
(helperText || errorText) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _QODNNCT2cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
81
|
-
|
|
81
|
+
_WS6CZJQ6cjs.Typography_default,
|
|
82
82
|
{
|
|
83
83
|
size: 100,
|
|
84
84
|
color: errorText ? "destructive-darkBackground" : "gray700",
|
|
@@ -95,4 +95,4 @@ var TextArea_default = TextArea;
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
exports.TextArea_default = TextArea_default;
|
|
98
|
-
//# sourceMappingURL=
|
|
98
|
+
//# sourceMappingURL=QJGERVMN.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/TextArea/TextArea.tsx","css-module:./TextArea.module.css#css-module","css-module:../TextField/TextField.module.css#css-module"],"names":["TextArea"],"mappings":";;;;;;;;;;;;AAEA,SAAmC,OAAO,kBAAkB;;;ACFoC,IAAO,0BAAQ,EAAC,YAAW,qBAAoB,cAAa,uBAAsB,oBAAmB,8BAA6B,kBAAiB,4BAA2B,cAAa,uBAAsB;;;ACA/M,IAAO,2BAAQ,EAAC,aAAY,sBAAqB,eAAc,yBAAwB,SAAQ,mBAAkB,MAAK,gBAAe,UAAS,oBAAmB,cAAa,wBAAuB,yBAAwB,mCAAkC,wBAAuB,iCAAgC;;;AFKxZ,OAAO,gBAAgB;AAuFjB,SAeQ,KAfR;AAxBN,IAAM,WAAW;AAAA,EACf,SAASA,UACP;AAAA,IACE,eAAe;AAAA,IACf,UAAU,eAAe;AAAA,IACzB,YAAY;AAAA,IACZ,aAAa;AAAA,IACb;AAAA,IACA;AAAA,IACA,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,OAAO;AAAA,IACP,QAAQ;AAAA,IACR;AAAA,IACA,SAAS;AAAA,EACX,GACA,cACc;AACd,UAAM,aAAa,cAAc;AACjC,UAAM,WAAW,CAAC,cAAc;AAChC,UAAM,UAAU,MAAM;AACtB,UAAM,UAAU,kBAAM;AAEtB,WACE;AAAA,MAAC;AAAA;AAAA,QACC,SAAQ;AAAA,QACR,WAAU;AAAA,QACV,KAAK;AAAA,QACL,OAAM;AAAA,QACN,2BAA2B;AAAA,UACzB,SAAS;AAAA,YACP,SAAS,WAAW,MAAM;AAAA,UAC5B;AAAA,QACF;AAAA,QACA,UAAS;AAAA,QAER;AAAA,mBACC,oBAAC,WAAM,WAAW,yBAAgB,OAAO,SAAS,SAChD,8BAAC,eAAI,UAAU,GACb,8BAAC,sBAAW,MAAM,KAAK,OAAM,WAC1B,iBACH,GACF,GACF;AAAA,UAEF,oBAAC,sBAAW,MAAM,KAChB;AAAA,YAAC;AAAA;AAAA,cACC,eAAa;AAAA,cACb,KAAK;AAAA,cACL,WAAW;AAAA,gBACT,yBAAgB;AAAA,gBAChB,wBAAO;AAAA,gBACP,wBAAO,SAAS,QAAQ;AAAA,gBACxB;AAAA,kBACE,CAAC,yBAAgB,UAAU,GAAG;AAAA,gBAChC;AAAA,cACF;AAAA,cACA,IAAI;AAAA,cACJ;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA;AAAA,UACF,GACF;AAAA,WACE,cAAc,cACd,oBAAC,eAAI,UAAU,GACb;AAAA,YAAC;AAAA;AAAA,cACC,MAAM;AAAA,cACN,OAAO,YAAY,+BAA+B;AAAA,cAEjD,uBAAa;AAAA;AAAA,UAChB,GACF;AAAA;AAAA;AAAA,IAEJ;AAAA,EAEJ;AACF;AAEA,IAAO,mBAAQ","sourcesContent":["import Box from \"../Box/Box\";\nimport Typography from \"../Typography/Typography\";\nimport React, { type ReactElement, useId, forwardRef } from \"react\";\nimport styles from \"./TextArea.module.css\";\nimport textFieldStyles from \"../TextField/TextField.module.css\";\nimport classNames from \"classnames\";\nimport useIsHydrated from \"../useIsHydrated\";\n\ntype TextAreaProps = {\n /**\n * A data-testid to make querying for the TextArea easier.\n */\n \"data-testid\"?: string;\n /**\n * If true, the TextArea will be disabled.\n */\n disabled?: boolean;\n /**\n * Text shown below TextArea if there is an input error.\n */\n errorText?: string;\n /**\n * Informative helper text shown below TextArea\n */\n helperText?: string;\n /**\n * TextField id, if not provided, a unique id will be generated\n */\n id?: string;\n /**\n * TextArea visible label\n */\n label: string;\n /**\n * Maximum number of characters allowed in the TextArea\n */\n maxLength?: number;\n /**\n * Callback fired when the value is changed.\n */\n onChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n /**\n * Placeholder text to display when TextArea is empty\n */\n placeholder?: string;\n /**\n * Sets which part resizes when the user drags the resize handle.\n * * `none`: TextArea can not be resized\n * * `horizontal`: TextArea can only be resized horizontally\n * * `vertical`: TextArea can only be resized vertically\n * * `both`: TextArea can be resized horizontally and vertically\n *\n * @defaultvalue `none`\n */\n resize?: \"none\" | \"horizontal\" | \"vertical\" | \"both\";\n /**\n * Number of rows to display\n */\n rows?: number;\n /**\n * Value of the TextArea\n */\n value: string;\n};\n\n/**\n * [TextArea](https://cambly-syntax.vercel.app/?path=/docs/components-textarea--docs) allows users to enter multiple lines of text.\n */\nconst TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(\n function TextArea(\n {\n \"data-testid\": dataTestId,\n disabled: disabledProp = false,\n errorText = \"\",\n helperText = \"\",\n id,\n label,\n maxLength = 1024,\n placeholder = \"\",\n rows = 3,\n value = \"\",\n onChange,\n resize = \"none\",\n }: TextAreaProps,\n forwardedRef,\n ): ReactElement {\n const isHydrated = useIsHydrated();\n const disabled = !isHydrated || disabledProp;\n const reactId = useId();\n const inputId = id ?? reactId;\n\n return (\n <Box\n display=\"flex\"\n direction=\"column\"\n gap={2}\n width=\"100%\"\n dangerouslySetInlineStyle={{\n __style: {\n opacity: disabled ? 0.5 : 1,\n },\n }}\n position=\"relative\"\n >\n {label && (\n <label className={textFieldStyles.label} htmlFor={inputId}>\n <Box paddingX={1}>\n <Typography size={100} color=\"gray700\">\n {label}\n </Typography>\n </Box>\n </label>\n )}\n <Typography size={100}>\n <textarea\n data-testid={dataTestId}\n ref={forwardedRef}\n className={classNames(\n textFieldStyles.textfield,\n styles.textarea,\n styles[`resize${resize}`],\n {\n [textFieldStyles.inputError]: errorText,\n },\n )}\n id={inputId}\n placeholder={placeholder}\n maxLength={maxLength}\n onChange={onChange}\n rows={rows}\n value={value}\n disabled={disabled}\n />\n </Typography>\n {(helperText || errorText) && (\n <Box paddingX={1}>\n <Typography\n size={100}\n color={errorText ? \"destructive-darkBackground\" : \"gray700\"}\n >\n {errorText || helperText}\n </Typography>\n </Box>\n )}\n </Box>\n );\n },\n);\n\nexport default TextArea;\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/TextArea/TextArea.module.css\"; export default {\"textarea\":\"_textarea_1sb0v_1\",\"resizenone\":\"_resizenone_1sb0v_6\",\"resizehorizontal\":\"_resizehorizontal_1sb0v_10\",\"resizevertical\":\"_resizevertical_1sb0v_14\",\"resizeboth\":\"_resizeboth_1sb0v_18\"}","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/TextField/TextField.module.css\"; export default {\"textfield\":\"_textfield_f2wi6_1\",\"transparent\":\"_transparent_f2wi6_13\",\"label\":\"_label_f2wi6_28\",\"md\":\"_md_f2wi6_32\",\"height\":\"_height_f2wi6_36\",\"inputError\":\"_inputError_f2wi6_40\",\"transparentInputError\":\"_transparentInputError_f2wi6_49\",\"transparenInputError\":\"_transparenInputError_f2wi6_54\"}"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
Chip_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./D45HCKL3.js";
|
|
5
5
|
import {
|
|
6
6
|
RichSelectItem_default
|
|
7
7
|
} from "./ODMJANSX.js";
|
|
@@ -31,4 +31,4 @@ var RichSelectChip_default = forwardRef(
|
|
|
31
31
|
export {
|
|
32
32
|
RichSelectChip_default
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=
|
|
34
|
+
//# sourceMappingURL=RVF6GMID.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./VV2NJABK.js";
|
|
8
8
|
import {
|
|
9
9
|
TabInternal
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./MTR3ESEZ.js";
|
|
11
11
|
import {
|
|
12
12
|
Box_default
|
|
13
13
|
} from "./IB6JZQF3.js";
|
|
@@ -64,4 +64,4 @@ function TabButton({
|
|
|
64
64
|
export {
|
|
65
65
|
TabButton
|
|
66
66
|
};
|
|
67
|
-
//# sourceMappingURL=
|
|
67
|
+
//# sourceMappingURL=SG3FRX2U.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
Heading_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./HG43LCAW.js";
|
|
5
5
|
import {
|
|
6
6
|
StopScroll
|
|
7
7
|
} from "./QQT35OLE.js";
|
|
@@ -130,4 +130,4 @@ Modal.displayName = "Modal";
|
|
|
130
130
|
export {
|
|
131
131
|
Modal
|
|
132
132
|
};
|
|
133
|
-
//# sourceMappingURL=
|
|
133
|
+
//# sourceMappingURL=STMMCDX5.js.map
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./IB6JZQF3.js";
|
|
24
24
|
import {
|
|
25
25
|
Typography_default
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./KIEWPPIM.js";
|
|
27
27
|
import {
|
|
28
28
|
useIsHydrated
|
|
29
29
|
} from "./JB65NEXK.js";
|
|
@@ -146,4 +146,4 @@ var Button_default = Button;
|
|
|
146
146
|
export {
|
|
147
147
|
Button_default
|
|
148
148
|
};
|
|
149
|
-
//# sourceMappingURL=
|
|
149
|
+
//# sourceMappingURL=SVNXSJ7Z.js.map
|
|
@@ -16,8 +16,10 @@ function textColor(color) {
|
|
|
16
16
|
return _2XIVACBMcjs.colors_module_default.inheritColor;
|
|
17
17
|
case "destructive-primary":
|
|
18
18
|
return _2XIVACBMcjs.colors_module_default.cambioDestructive900Color;
|
|
19
|
+
case "destructive-lightBackground":
|
|
20
|
+
return _2XIVACBMcjs.colors_module_default.cambioDestructive900Color;
|
|
19
21
|
case "destructive-darkBackground":
|
|
20
|
-
return _2XIVACBMcjs.colors_module_default.
|
|
22
|
+
return _2XIVACBMcjs.colors_module_default.cambioDestructive300Color;
|
|
21
23
|
case "success":
|
|
22
24
|
return _2XIVACBMcjs.colors_module_default.cambioSuccess700Color;
|
|
23
25
|
case "success-darkBackground":
|
|
@@ -30,4 +32,4 @@ function textColor(color) {
|
|
|
30
32
|
|
|
31
33
|
|
|
32
34
|
exports.textColor = textColor;
|
|
33
|
-
//# sourceMappingURL=
|
|
35
|
+
//# sourceMappingURL=TA4EX7DL.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/colors/textColors.ts"],"names":[],"mappings":";;;;;;AAEe,SAAR,UACL,OAYQ;AACR,UAAQ,OAAO;AAAA,IACb,KAAK;AACH,aAAO,sBAAY;AAAA,IACrB,KAAK;AACH,aAAO,sBAAY;AAAA,IACrB,KAAK;AACH,aAAO,sBAAY;AAAA,IACrB,KAAK;AACH,aAAO,sBAAY;AAAA,IACrB,KAAK;AACH,aAAO,sBAAY;AAAA,IACrB,KAAK;AACH,aAAO,sBAAY;AAAA,IACrB,KAAK;AACH,aAAO,sBAAY;AAAA,IACrB,KAAK;AACH,aAAO,sBAAY;AAAA,IACrB,KAAK;AACH,aAAO,sBAAY;AAAA,IAErB;AACE,aAAO,sBAAY;AAAA,EACvB;AACF","sourcesContent":["import colorStyles from \"../colors/colors.module.css\";\n\nexport default function textColor(\n color:\n | \"gray900\"\n | \"gray700\"\n | \"primary\"\n | \"destructive-primary\"\n | \"destructive-lightBackground\"\n | \"destructive-darkBackground\"\n | \"success\"\n | \"success-darkBackground\"\n | \"white\"\n | \"white-secondary\"\n | \"inherit\",\n): string {\n switch (color) {\n case \"gray700\":\n return colorStyles.cambioGray800Color;\n case \"white\":\n return colorStyles.cambioWhiteColor;\n case \"white-secondary\":\n return colorStyles.cambioWhite70Color;\n case \"inherit\":\n return colorStyles.inheritColor;\n case \"destructive-primary\":\n return colorStyles.cambioDestructive900Color;\n case \"destructive-lightBackground\":\n return colorStyles.cambioDestructive900Color;\n case \"destructive-darkBackground\":\n return colorStyles.cambioDestructive300Color;\n case \"success\":\n return colorStyles.cambioSuccess700Color;\n case \"success-darkBackground\":\n return colorStyles.cambioSuccess100Color;\n // primary / gray900\n default:\n return colorStyles.cambioBlackColor;\n }\n}\n"]}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./VV2NJABK.js";
|
|
5
5
|
import {
|
|
6
6
|
TabInternal
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./MTR3ESEZ.js";
|
|
8
8
|
import {
|
|
9
9
|
Box_default
|
|
10
10
|
} from "./IB6JZQF3.js";
|
|
@@ -72,4 +72,4 @@ var TabLink_default = TabLink;
|
|
|
72
72
|
export {
|
|
73
73
|
TabLink_default
|
|
74
74
|
};
|
|
75
|
-
//# sourceMappingURL=
|
|
75
|
+
//# sourceMappingURL=TGUOITLK.js.map
|
|
@@ -23,7 +23,7 @@ var _2D3DOVVZcjs = require('./2D3DOVVZ.cjs');
|
|
|
23
23
|
var _F3SUJGZLcjs = require('./F3SUJGZL.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _WS6CZJQ6cjs = require('./WS6CZJQ6.cjs');
|
|
27
27
|
|
|
28
28
|
// src/LinkButton/LinkButton.tsx
|
|
29
29
|
|
|
@@ -89,7 +89,7 @@ var LinkButton = _react.forwardRef.call(void 0,
|
|
|
89
89
|
size: _65BTPZZTcjs.internalIconSize[size]
|
|
90
90
|
}
|
|
91
91
|
),
|
|
92
|
-
!loading && text && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
92
|
+
!loading && text && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _WS6CZJQ6cjs.Typography_default, { size: _5JUNB754cjs.textVariant_default[size], weight: "medium", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
93
93
|
"span",
|
|
94
94
|
{
|
|
95
95
|
className: foregroundColorClass,
|
|
@@ -138,4 +138,4 @@ var LinkButton_default = LinkButton;
|
|
|
138
138
|
|
|
139
139
|
|
|
140
140
|
exports.LinkButton_default = LinkButton_default;
|
|
141
|
-
//# sourceMappingURL=
|
|
141
|
+
//# sourceMappingURL=TTR4ZAGC.cjs.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./IB6JZQF3.js";
|
|
8
8
|
import {
|
|
9
9
|
Typography_default
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./KIEWPPIM.js";
|
|
11
11
|
import {
|
|
12
12
|
useIsHydrated
|
|
13
13
|
} from "./JB65NEXK.js";
|
|
@@ -127,4 +127,4 @@ var RadioButton_default = RadioButton;
|
|
|
127
127
|
export {
|
|
128
128
|
RadioButton_default
|
|
129
129
|
};
|
|
130
|
-
//# sourceMappingURL=
|
|
130
|
+
//# sourceMappingURL=VAVIKPVS.js.map
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./YGON3SJ5.js";
|
|
24
24
|
import {
|
|
25
25
|
Typography_default
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./KIEWPPIM.js";
|
|
27
27
|
|
|
28
28
|
// src/LinkButton/LinkButton.tsx
|
|
29
29
|
import {
|
|
@@ -138,4 +138,4 @@ var LinkButton_default = LinkButton;
|
|
|
138
138
|
export {
|
|
139
139
|
LinkButton_default
|
|
140
140
|
};
|
|
141
|
-
//# sourceMappingURL=
|
|
141
|
+
//# sourceMappingURL=VJNSSF3W.js.map
|
|
@@ -6,7 +6,7 @@ var _JVGX637Ecjs = require('./JVGX637E.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _X4H65FEFcjs = require('./X4H65FEF.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _XLUVINJWcjs = require('./XLUVINJW.cjs');
|
|
@@ -15,7 +15,7 @@ var _XLUVINJWcjs = require('./XLUVINJW.cjs');
|
|
|
15
15
|
var _QODNNCT2cjs = require('./QODNNCT2.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _WS6CZJQ6cjs = require('./WS6CZJQ6.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _K4AUV2VKcjs = require('./K4AUV2VK.cjs');
|
|
@@ -68,12 +68,12 @@ function SelectList({
|
|
|
68
68
|
};
|
|
69
69
|
const getArrowIconColor = () => {
|
|
70
70
|
if (errorText) {
|
|
71
|
-
return
|
|
71
|
+
return _X4H65FEFcjs.ColorBaseDestructive700;
|
|
72
72
|
} else {
|
|
73
73
|
if (color === "clear") {
|
|
74
|
-
return
|
|
74
|
+
return _X4H65FEFcjs.ColorCambioWhite100;
|
|
75
75
|
} else {
|
|
76
|
-
return
|
|
76
|
+
return _X4H65FEFcjs.ColorBaseGray700;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
};
|
|
@@ -84,7 +84,7 @@ function SelectList({
|
|
|
84
84
|
[SelectList_module_default.opacityOverlay]: disabled
|
|
85
85
|
}),
|
|
86
86
|
children: [
|
|
87
|
-
label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: selectId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _QODNNCT2cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
87
|
+
label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: selectId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _QODNNCT2cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _WS6CZJQ6cjs.Typography_default, { size: 100, color: textColor[color], children: label }) }) }),
|
|
88
88
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SelectList_module_default.selectWrapper, children: [
|
|
89
89
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
90
90
|
"select",
|
|
@@ -132,7 +132,7 @@ function SelectList({
|
|
|
132
132
|
) })
|
|
133
133
|
] }),
|
|
134
134
|
(helperText || errorText) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _QODNNCT2cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
135
|
-
|
|
135
|
+
_WS6CZJQ6cjs.Typography_default,
|
|
136
136
|
{
|
|
137
137
|
size: 100,
|
|
138
138
|
color: errorText ? "destructive-primary" : textColor[color],
|
|
@@ -148,4 +148,4 @@ SelectList.Option = _JVGX637Ecjs.SelectOption_default;
|
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
exports.SelectList = SelectList;
|
|
151
|
-
//# sourceMappingURL=
|
|
151
|
+
//# sourceMappingURL=W4YEJQZH.cjs.map
|
|
@@ -7,7 +7,7 @@ var _MF7LLV7Vcjs = require('./MF7LLV7V.cjs');
|
|
|
7
7
|
var _IL22HCBFcjs = require('./IL22HCBF.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _WS6CZJQ6cjs = require('./WS6CZJQ6.cjs');
|
|
11
11
|
|
|
12
12
|
// src/RichSelect/RichSelectSection.tsx
|
|
13
13
|
var _react = require('react');
|
|
@@ -39,7 +39,7 @@ var RichSelectSection_default = _react.forwardRef.call(void 0,
|
|
|
39
39
|
}
|
|
40
40
|
),
|
|
41
41
|
children: [
|
|
42
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactariacomponents.Header, { className: _classnames2.default.call(void 0, _MF7LLV7Vcjs.layout_module_default.fullWidth), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactariacomponents.Header, { className: _classnames2.default.call(void 0, _MF7LLV7Vcjs.layout_module_default.fullWidth), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _WS6CZJQ6cjs.Typography_default, { children: label }) }),
|
|
43
43
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactariacomponents.Collection, { children })
|
|
44
44
|
]
|
|
45
45
|
}
|
|
@@ -50,4 +50,4 @@ var RichSelectSection_default = _react.forwardRef.call(void 0,
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
exports.RichSelectSection_default = RichSelectSection_default;
|
|
53
|
-
//# sourceMappingURL=
|
|
53
|
+
//# sourceMappingURL=WHTMS6T3.cjs.map
|