@cambly/syntax-core 19.2.1 → 19.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Avatar/Avatar.d.ts +1 -1
- package/dist/Badge/Badge.cjs +3 -3
- package/dist/Badge/Badge.css +49 -43
- package/dist/Badge/Badge.css.map +1 -1
- package/dist/Badge/Badge.d.ts +1 -1
- package/dist/Badge/Badge.js +2 -2
- package/dist/Button/Button.cjs +3 -3
- package/dist/Button/Button.css +49 -43
- package/dist/Button/Button.css.map +1 -1
- package/dist/Button/Button.js +2 -2
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/Checkbox/Checkbox.cjs +3 -3
- package/dist/Checkbox/Checkbox.css +49 -43
- package/dist/Checkbox/Checkbox.css.map +1 -1
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Checkbox/Checkbox.js +2 -2
- package/dist/Chip/Chip.cjs +3 -3
- package/dist/Chip/Chip.css +49 -43
- package/dist/Chip/Chip.css.map +1 -1
- package/dist/Chip/Chip.js +2 -2
- package/dist/Heading/Heading.cjs +3 -3
- package/dist/Heading/Heading.css +49 -43
- package/dist/Heading/Heading.css.map +1 -1
- package/dist/Heading/Heading.d.ts +4 -2
- package/dist/Heading/Heading.js +2 -2
- package/dist/LinkButton/LinkButton.cjs +3 -3
- package/dist/LinkButton/LinkButton.css +49 -43
- package/dist/LinkButton/LinkButton.css.map +1 -1
- package/dist/LinkButton/LinkButton.js +2 -2
- package/dist/Modal/Modal.cjs +4 -4
- package/dist/Modal/Modal.css +49 -43
- package/dist/Modal/Modal.css.map +1 -1
- package/dist/Modal/Modal.js +3 -3
- package/dist/RadioButton/RadioButton.cjs +3 -3
- package/dist/RadioButton/RadioButton.css +49 -43
- package/dist/RadioButton/RadioButton.css.map +1 -1
- package/dist/RadioButton/RadioButton.d.ts +1 -1
- package/dist/RadioButton/RadioButton.js +2 -2
- package/dist/RichSelect/RichSelectBox.cjs +9 -9
- package/dist/RichSelect/RichSelectBox.css +49 -43
- package/dist/RichSelect/RichSelectBox.css.map +1 -1
- package/dist/RichSelect/RichSelectBox.d.ts +1 -1
- package/dist/RichSelect/RichSelectBox.js +8 -8
- package/dist/RichSelect/RichSelectChip.cjs +4 -4
- package/dist/RichSelect/RichSelectChip.css +49 -43
- package/dist/RichSelect/RichSelectChip.css.map +1 -1
- package/dist/RichSelect/RichSelectChip.js +3 -3
- package/dist/RichSelect/RichSelectList.cjs +11 -11
- package/dist/RichSelect/RichSelectList.css +49 -43
- package/dist/RichSelect/RichSelectList.css.map +1 -1
- package/dist/RichSelect/RichSelectList.d.ts +1 -1
- package/dist/RichSelect/RichSelectList.js +10 -10
- package/dist/RichSelect/RichSelectRadioButton.cjs +4 -4
- package/dist/RichSelect/RichSelectRadioButton.css +49 -43
- package/dist/RichSelect/RichSelectRadioButton.css.map +1 -1
- package/dist/RichSelect/RichSelectRadioButton.d.ts +1 -1
- package/dist/RichSelect/RichSelectRadioButton.js +3 -3
- package/dist/RichSelect/RichSelectSection.cjs +3 -3
- package/dist/RichSelect/RichSelectSection.css +49 -43
- package/dist/RichSelect/RichSelectSection.css.map +1 -1
- package/dist/RichSelect/RichSelectSection.js +2 -2
- package/dist/SelectList/SelectList.cjs +4 -4
- package/dist/SelectList/SelectList.css +49 -43
- package/dist/SelectList/SelectList.css.map +1 -1
- package/dist/SelectList/SelectList.js +3 -3
- package/dist/TabButton/TabButton.cjs +4 -4
- package/dist/TabButton/TabButton.css +49 -43
- package/dist/TabButton/TabButton.css.map +1 -1
- package/dist/TabButton/TabButton.js +3 -3
- package/dist/TabLink/TabLink.cjs +4 -4
- package/dist/TabLink/TabLink.css +49 -43
- package/dist/TabLink/TabLink.css.map +1 -1
- package/dist/TabLink/TabLink.js +3 -3
- package/dist/Tabs/TabInternal.cjs +3 -3
- package/dist/Tabs/TabInternal.css +49 -43
- package/dist/Tabs/TabInternal.css.map +1 -1
- package/dist/Tabs/TabInternal.js +2 -2
- package/dist/TapArea/TapArea.d.ts +1 -1
- package/dist/TextArea/TextArea.cjs +3 -3
- package/dist/TextArea/TextArea.css +49 -43
- package/dist/TextArea/TextArea.css.map +1 -1
- package/dist/TextArea/TextArea.js +2 -2
- package/dist/TextField/TextField.cjs +3 -3
- package/dist/TextField/TextField.css +49 -43
- package/dist/TextField/TextField.css.map +1 -1
- package/dist/TextField/TextField.js +2 -2
- package/dist/Tooltip/Tooltip.cjs +3 -3
- package/dist/Tooltip/Tooltip.css +49 -43
- package/dist/Tooltip/Tooltip.css.map +1 -1
- package/dist/Tooltip/Tooltip.js +2 -2
- package/dist/Typography/Typography.cjs +2 -2
- package/dist/Typography/Typography.css +49 -43
- package/dist/Typography/Typography.css.map +1 -1
- package/dist/Typography/Typography.d.ts +4 -2
- package/dist/Typography/Typography.js +1 -1
- package/dist/WordConfetti/WordConfetti.cjs +3 -3
- package/dist/WordConfetti/WordConfetti.css +49 -43
- package/dist/WordConfetti/WordConfetti.css.map +1 -1
- package/dist/WordConfetti/WordConfetti.js +2 -2
- package/dist/__chunks/{MTR3ESEZ.js → 45DUMC5J.js} +2 -2
- package/dist/__chunks/{VAVIKPVS.js → 4FGMH6ZT.js} +2 -2
- package/dist/__chunks/{GK3YX7CI.cjs → 5I7B5SAF.cjs} +10 -10
- package/dist/__chunks/{BYNWTNUV.js → 6KET3XO2.js} +2 -2
- package/dist/__chunks/{7VNHS3DA.cjs → 7COSMEXW.cjs} +3 -3
- package/dist/__chunks/{M57BB52X.js → 7YH3K65I.js} +5 -5
- package/dist/__chunks/{WHTMS6T3.cjs → AAZIVDWS.cjs} +3 -3
- package/dist/__chunks/{WT62D7UB.cjs → AI52ORKA.cjs} +3 -3
- package/dist/__chunks/{MZ3D63DQ.js → BUVOUV7Z.js} +2 -2
- package/dist/__chunks/{TGUOITLK.js → CKRK4CN4.js} +2 -2
- package/dist/__chunks/{CVRG3CQ3.js → CS32ABQA.js} +2 -2
- package/dist/__chunks/{X4H65FEF.cjs → D4FWWDPJ.cjs} +1 -1
- package/dist/__chunks/{X4H65FEF.cjs.map → D4FWWDPJ.cjs.map} +1 -1
- package/dist/__chunks/{HILWIYOJ.js → DAIZZROA.js} +2 -2
- package/dist/__chunks/{HG43LCAW.js → DDD7XI7R.js} +2 -2
- package/dist/__chunks/{HG43LCAW.js.map → DDD7XI7R.js.map} +1 -1
- package/dist/__chunks/{VJNSSF3W.js → DWV2IH7T.js} +2 -2
- package/dist/__chunks/{CMUPFOVX.cjs → E3KSILLW.cjs} +3 -3
- package/dist/__chunks/{IEBCEU7G.js → ED4O4LSA.js} +7 -7
- package/dist/__chunks/{PGDIO77V.cjs → FHQ7KPFE.cjs} +3 -3
- package/dist/__chunks/{FSSHUBX3.js → FM74LR6A.js} +2 -2
- package/dist/__chunks/{ACYC4E6D.js → IFOYULRK.js} +1 -1
- package/dist/__chunks/{ACYC4E6D.js.map → IFOYULRK.js.map} +1 -1
- package/dist/__chunks/{XRYFXCR2.js → J4VE4V7R.js} +3 -3
- package/dist/__chunks/{PCEOK3GO.cjs → JACR34JO.cjs} +3 -3
- package/dist/__chunks/{W4YEJQZH.cjs → JJN6542U.cjs} +8 -8
- package/dist/__chunks/{44XT4MCS.js → MZK5G2SD.js} +2 -2
- package/dist/__chunks/{2PSHSFAV.js → P5BVB22B.js} +2 -2
- package/dist/__chunks/{WSKCMPTD.cjs → PBHDA7GV.cjs} +3 -3
- package/dist/__chunks/{PGMFMTEU.cjs → PBOAPP74.cjs} +3 -3
- package/dist/__chunks/{C5V4NLVS.cjs → Q65LBFK3.cjs} +3 -3
- package/dist/__chunks/{Z3S2ZWTJ.cjs → Q7CC3YA4.cjs} +3 -3
- package/dist/__chunks/{Z3S2ZWTJ.cjs.map → Q7CC3YA4.cjs.map} +1 -1
- package/dist/__chunks/{AJC6QV6M.cjs → R3XTMI64.cjs} +4 -4
- package/dist/__chunks/{KIEWPPIM.js → RJQ2LSPP.js} +2 -2
- package/dist/__chunks/RJQ2LSPP.js.map +1 -0
- package/dist/__chunks/{WS6CZJQ6.cjs → RVU3UEZI.cjs} +2 -2
- package/dist/__chunks/RVU3UEZI.cjs.map +1 -0
- package/dist/__chunks/{SG3FRX2U.js → RX3JA6WI.js} +2 -2
- package/dist/__chunks/{BFZFNLM5.cjs → S7BCIAUQ.cjs} +3 -3
- package/dist/__chunks/{2RPK7IB4.cjs → SAPSO6DD.cjs} +3 -3
- package/dist/__chunks/{23LD2DDB.cjs → SJSSW5MP.cjs} +4 -4
- package/dist/__chunks/{JN5UK7KH.cjs → SW6S6ZCI.cjs} +4 -4
- package/dist/__chunks/{DTQMK5RP.js → UNQGP24J.js} +2 -2
- package/dist/__chunks/{SVNXSJ7Z.js → W6JOWMNG.js} +2 -2
- package/dist/__chunks/{RVF6GMID.js → WCQCYWL5.js} +2 -2
- package/dist/__chunks/{STMMCDX5.js → WGRDMB2P.js} +2 -2
- package/dist/__chunks/{G2RAXJEA.cjs → WNNJJJGM.cjs} +19 -19
- package/dist/__chunks/{D45HCKL3.js → XEHZJBLD.js} +2 -2
- package/dist/__chunks/{OOAQZC7E.cjs → XSU6O5C3.cjs} +3 -3
- package/dist/__chunks/{TTR4ZAGC.cjs → YNGB4N62.cjs} +3 -3
- package/dist/__chunks/{QJGERVMN.cjs → Z6EWS3QI.cjs} +5 -5
- package/dist/index.cjs +24 -24
- package/dist/index.css +49 -43
- package/dist/index.css.map +1 -1
- package/dist/index.js +23 -23
- package/package.json +1 -1
- package/dist/__chunks/KIEWPPIM.js.map +0 -1
- package/dist/__chunks/WS6CZJQ6.cjs.map +0 -1
- /package/dist/__chunks/{MTR3ESEZ.js.map → 45DUMC5J.js.map} +0 -0
- /package/dist/__chunks/{VAVIKPVS.js.map → 4FGMH6ZT.js.map} +0 -0
- /package/dist/__chunks/{GK3YX7CI.cjs.map → 5I7B5SAF.cjs.map} +0 -0
- /package/dist/__chunks/{BYNWTNUV.js.map → 6KET3XO2.js.map} +0 -0
- /package/dist/__chunks/{7VNHS3DA.cjs.map → 7COSMEXW.cjs.map} +0 -0
- /package/dist/__chunks/{M57BB52X.js.map → 7YH3K65I.js.map} +0 -0
- /package/dist/__chunks/{WHTMS6T3.cjs.map → AAZIVDWS.cjs.map} +0 -0
- /package/dist/__chunks/{WT62D7UB.cjs.map → AI52ORKA.cjs.map} +0 -0
- /package/dist/__chunks/{MZ3D63DQ.js.map → BUVOUV7Z.js.map} +0 -0
- /package/dist/__chunks/{TGUOITLK.js.map → CKRK4CN4.js.map} +0 -0
- /package/dist/__chunks/{CVRG3CQ3.js.map → CS32ABQA.js.map} +0 -0
- /package/dist/__chunks/{HILWIYOJ.js.map → DAIZZROA.js.map} +0 -0
- /package/dist/__chunks/{VJNSSF3W.js.map → DWV2IH7T.js.map} +0 -0
- /package/dist/__chunks/{CMUPFOVX.cjs.map → E3KSILLW.cjs.map} +0 -0
- /package/dist/__chunks/{IEBCEU7G.js.map → ED4O4LSA.js.map} +0 -0
- /package/dist/__chunks/{PGDIO77V.cjs.map → FHQ7KPFE.cjs.map} +0 -0
- /package/dist/__chunks/{FSSHUBX3.js.map → FM74LR6A.js.map} +0 -0
- /package/dist/__chunks/{XRYFXCR2.js.map → J4VE4V7R.js.map} +0 -0
- /package/dist/__chunks/{PCEOK3GO.cjs.map → JACR34JO.cjs.map} +0 -0
- /package/dist/__chunks/{W4YEJQZH.cjs.map → JJN6542U.cjs.map} +0 -0
- /package/dist/__chunks/{44XT4MCS.js.map → MZK5G2SD.js.map} +0 -0
- /package/dist/__chunks/{2PSHSFAV.js.map → P5BVB22B.js.map} +0 -0
- /package/dist/__chunks/{WSKCMPTD.cjs.map → PBHDA7GV.cjs.map} +0 -0
- /package/dist/__chunks/{PGMFMTEU.cjs.map → PBOAPP74.cjs.map} +0 -0
- /package/dist/__chunks/{C5V4NLVS.cjs.map → Q65LBFK3.cjs.map} +0 -0
- /package/dist/__chunks/{AJC6QV6M.cjs.map → R3XTMI64.cjs.map} +0 -0
- /package/dist/__chunks/{SG3FRX2U.js.map → RX3JA6WI.js.map} +0 -0
- /package/dist/__chunks/{BFZFNLM5.cjs.map → S7BCIAUQ.cjs.map} +0 -0
- /package/dist/__chunks/{2RPK7IB4.cjs.map → SAPSO6DD.cjs.map} +0 -0
- /package/dist/__chunks/{23LD2DDB.cjs.map → SJSSW5MP.cjs.map} +0 -0
- /package/dist/__chunks/{JN5UK7KH.cjs.map → SW6S6ZCI.cjs.map} +0 -0
- /package/dist/__chunks/{DTQMK5RP.js.map → UNQGP24J.js.map} +0 -0
- /package/dist/__chunks/{SVNXSJ7Z.js.map → W6JOWMNG.js.map} +0 -0
- /package/dist/__chunks/{RVF6GMID.js.map → WCQCYWL5.js.map} +0 -0
- /package/dist/__chunks/{STMMCDX5.js.map → WGRDMB2P.js.map} +0 -0
- /package/dist/__chunks/{G2RAXJEA.cjs.map → WNNJJJGM.cjs.map} +0 -0
- /package/dist/__chunks/{D45HCKL3.js.map → XEHZJBLD.js.map} +0 -0
- /package/dist/__chunks/{OOAQZC7E.cjs.map → XSU6O5C3.cjs.map} +0 -0
- /package/dist/__chunks/{TTR4ZAGC.cjs.map → YNGB4N62.cjs.map} +0 -0
- /package/dist/__chunks/{QJGERVMN.cjs.map → Z6EWS3QI.cjs.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Heading/Heading.tsx"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"sources":["../../src/Heading/Heading.tsx"],"names":[],"mappings":";;;;;;AAuGI;AApGJ,SAAS,OAAO;AAAA,EACd;AAAA,EACA;AACF,GAGkC;AAChC,MAAI,cAAc,WAAW,SAAS,KAAK;AACzC,WAAO;AAAA,EACT,WAAW,cAAc,SAAS;AAChC,WAAO;AAAA,EACT,OAAO;AACL,WAAO;AAAA,EACT;AACF;AAKA,IAAM,UAAU,CAAC;AAAA,EACf,QAAQ;AAAA,EACR,KAAK;AAAA,EACL;AAAA,EACA,QAAQ;AAAA,EACR,eAAe;AAAA,EACf,YAAY;AAAA,EACZ;AAAA,EACA,OAAO;AACT,MAsEoB;AAClB,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,eAAa;AAAA,MACb;AAAA,MACA;AAAA,MACA,QAAQ,OAAO,EAAE,WAAW,KAAK,CAAC;AAAA,MAEjC;AAAA;AAAA,EACH;AAEJ;AAEA,IAAO,kBAAQ","sourcesContent":["import { type ComponentProps, type ReactElement, type ReactNode } from \"react\";\nimport Typography from \"../Typography/Typography\";\n\nfunction weight({\n fontStyle,\n size,\n}: {\n fontStyle: ComponentProps<typeof Heading>[\"fontStyle\"];\n size: ComponentProps<typeof Heading>[\"size\"];\n}): \"bold\" | \"medium\" | \"regular\" {\n if (fontStyle === \"serif\" && size === 400) {\n return \"bold\";\n } else if (fontStyle === \"serif\") {\n return \"medium\";\n } else {\n return \"regular\";\n }\n}\n\n/**\n * [Heading](https://cambly-syntax.vercel.app/?path=/docs/components-heading--docs) enforces a consistent style & accessibility best practices for headings.\n */\nconst Heading = ({\n align = \"start\",\n as = \"h1\",\n children,\n color = \"gray900\",\n \"data-testid\": dataTestId,\n fontStyle = \"sans-serif\",\n lineClamp,\n size = 400,\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 \"h1\"\n */\n as?: \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\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 | \"success\"\n | \"white\"\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 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 * * `400`: 25px\n * * `500`: 32px\n * * `700`: 38px\n * * `800`: 46px\n * * `900`: 55px\n * * `1100`: 83px\n *\n * Desktop (viewport width >= 480px):\n * * `400`: 25px\n * * `500`: 32px\n * * `700`: 49px\n * * `800`: 63px\n * * `900`: 76px\n * * `1100`: 119px\n *\n * @defaultValue 400\n */\n size?: 400 | 500 | 700 | 800 | 900 | 1100;\n}): ReactElement => {\n return (\n <Typography\n align={align}\n as={as}\n color={color}\n fontStyle={fontStyle}\n data-testid={dataTestId}\n lineClamp={lineClamp}\n size={size}\n weight={weight({ fontStyle, size })}\n >\n {children}\n </Typography>\n );\n};\n\nexport default Heading;\n"]}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _QODNNCT2cjs = require('./QODNNCT2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _RVU3UEZIcjs = require('./RVU3UEZI.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _K4AUV2VKcjs = require('./K4AUV2VK.cjs');
|
|
@@ -55,7 +55,7 @@ function TextField({
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
children: [
|
|
58
|
-
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
|
+
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, _RVU3UEZIcjs.Typography_default, { size: 100, color: textColor, children: label }) }) }),
|
|
59
59
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
60
60
|
"input",
|
|
61
61
|
{
|
|
@@ -80,7 +80,7 @@ function TextField({
|
|
|
80
80
|
step
|
|
81
81
|
}
|
|
82
82
|
),
|
|
83
|
-
(helperText || errorText) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _QODNNCT2cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
83
|
+
(helperText || errorText) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _QODNNCT2cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _RVU3UEZIcjs.Typography_default, { size: 100, color: errorText ? errorTextColor : textColor, children: errorText || helperText }) })
|
|
84
84
|
]
|
|
85
85
|
}
|
|
86
86
|
);
|
|
@@ -89,4 +89,4 @@ function TextField({
|
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
exports.TextField = TextField;
|
|
92
|
-
//# sourceMappingURL=
|
|
92
|
+
//# sourceMappingURL=R3XTMI64.cjs.map
|
|
@@ -8,7 +8,7 @@ import classNames from "classnames";
|
|
|
8
8
|
import { forwardRef } from "react";
|
|
9
9
|
|
|
10
10
|
// css-module:./Typography.module.css#css-module
|
|
11
|
-
var Typography_module_default = { "typography": "
|
|
11
|
+
var Typography_module_default = { "typography": "_typography_15w34_1", "sansSerif": "_sansSerif_15w34_22", "serif": "_serif_15w34_27", "size0": "_size0_15w34_73", "size100": "_size100_15w34_77", "size200": "_size200_15w34_81", "size300": "_size300_15w34_85", "size400": "_size400_15w34_89", "size500": "_size500_15w34_93", "size700": "_size700_15w34_97", "size800": "_size800_15w34_101", "size900": "_size900_15w34_105", "size1100": "_size1100_15w34_109", "center": "_center_15w34_137", "forceLeft": "_forceLeft_15w34_141", "forceRight": "_forceRight_15w34_145", "start": "_start_15w34_149", "end": "_end_15w34_153", "regular": "_regular_15w34_159", "medium": "_medium_15w34_163", "semiBold": "_semiBold_15w34_167", "bold": "_bold_15w34_171", "underline": "_underline_15w34_175", "inline": "_inline_15w34_179", "uppercase": "_uppercase_15w34_183", "lineClamp": "_lineClamp_15w34_187", "p100": "_p100_15w34_196", "p200": "_p200_15w34_200", "p300": "_p300_15w34_204", "p400": "_p400_15w34_208", "p500": "_p500_15w34_212" };
|
|
12
12
|
|
|
13
13
|
// src/Typography/Typography.tsx
|
|
14
14
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -61,4 +61,4 @@ var Typography_default = Typography;
|
|
|
61
61
|
export {
|
|
62
62
|
Typography_default
|
|
63
63
|
};
|
|
64
|
-
//# sourceMappingURL=
|
|
64
|
+
//# sourceMappingURL=RJQ2LSPP.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 * * `500`: 32px\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 * * `500`: 32px\n * * `700`: 49px\n * * `800`: 63px\n * * `900`: 76px\n * * `1100`: 119px\n *\n * @defaultValue 200\n */\n size?: 0 | 100 | 200 | 300 | 400 | 500 | 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_15w34_1\",\"sansSerif\":\"_sansSerif_15w34_22\",\"serif\":\"_serif_15w34_27\",\"size0\":\"_size0_15w34_73\",\"size100\":\"_size100_15w34_77\",\"size200\":\"_size200_15w34_81\",\"size300\":\"_size300_15w34_85\",\"size400\":\"_size400_15w34_89\",\"size500\":\"_size500_15w34_93\",\"size700\":\"_size700_15w34_97\",\"size800\":\"_size800_15w34_101\",\"size900\":\"_size900_15w34_105\",\"size1100\":\"_size1100_15w34_109\",\"center\":\"_center_15w34_137\",\"forceLeft\":\"_forceLeft_15w34_141\",\"forceRight\":\"_forceRight_15w34_145\",\"start\":\"_start_15w34_149\",\"end\":\"_end_15w34_153\",\"regular\":\"_regular_15w34_159\",\"medium\":\"_medium_15w34_163\",\"semiBold\":\"_semiBold_15w34_167\",\"bold\":\"_bold_15w34_171\",\"underline\":\"_underline_15w34_175\",\"inline\":\"_inline_15w34_179\",\"uppercase\":\"_uppercase_15w34_183\",\"lineClamp\":\"_lineClamp_15w34_187\",\"p100\":\"_p100_15w34_196\",\"p200\":\"_p200_15w34_200\",\"p300\":\"_p300_15w34_204\",\"p400\":\"_p400_15w34_208\",\"p500\":\"_p500_15w34_212\"}"],"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,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,mBAAkB,QAAO,kBAAiB;;;ADwJ3gC;AAhJJ,IAAM,aAAa,WA0HjB,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"]}
|
|
@@ -8,7 +8,7 @@ var _classnames = require('classnames'); var _classnames2 = _interopRequireDefau
|
|
|
8
8
|
var _react = require('react');
|
|
9
9
|
|
|
10
10
|
// css-module:./Typography.module.css#css-module
|
|
11
|
-
var Typography_module_default = { "typography": "
|
|
11
|
+
var Typography_module_default = { "typography": "_typography_15w34_1", "sansSerif": "_sansSerif_15w34_22", "serif": "_serif_15w34_27", "size0": "_size0_15w34_73", "size100": "_size100_15w34_77", "size200": "_size200_15w34_81", "size300": "_size300_15w34_85", "size400": "_size400_15w34_89", "size500": "_size500_15w34_93", "size700": "_size700_15w34_97", "size800": "_size800_15w34_101", "size900": "_size900_15w34_105", "size1100": "_size1100_15w34_109", "center": "_center_15w34_137", "forceLeft": "_forceLeft_15w34_141", "forceRight": "_forceRight_15w34_145", "start": "_start_15w34_149", "end": "_end_15w34_153", "regular": "_regular_15w34_159", "medium": "_medium_15w34_163", "semiBold": "_semiBold_15w34_167", "bold": "_bold_15w34_171", "underline": "_underline_15w34_175", "inline": "_inline_15w34_179", "uppercase": "_uppercase_15w34_183", "lineClamp": "_lineClamp_15w34_187", "p100": "_p100_15w34_196", "p200": "_p200_15w34_200", "p300": "_p300_15w34_204", "p400": "_p400_15w34_208", "p500": "_p500_15w34_212" };
|
|
12
12
|
|
|
13
13
|
// src/Typography/Typography.tsx
|
|
14
14
|
var _jsxruntime = require('react/jsx-runtime');
|
|
@@ -61,4 +61,4 @@ var Typography_default = Typography;
|
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
exports.Typography_default = Typography_default;
|
|
64
|
-
//# sourceMappingURL=
|
|
64
|
+
//# sourceMappingURL=RVU3UEZI.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Typography/Typography.tsx","css-module:./Typography.module.css#css-module"],"names":["Typography"],"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,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,mBAAkB,QAAO,kBAAiB;;;ADwJ3gC;AAhJJ,IAAM,aAAa,WA0HjB,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","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 * * `500`: 32px\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 * * `500`: 32px\n * * `700`: 49px\n * * `800`: 63px\n * * `900`: 76px\n * * `1100`: 119px\n *\n * @defaultValue 200\n */\n size?: 0 | 100 | 200 | 300 | 400 | 500 | 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_15w34_1\",\"sansSerif\":\"_sansSerif_15w34_22\",\"serif\":\"_serif_15w34_27\",\"size0\":\"_size0_15w34_73\",\"size100\":\"_size100_15w34_77\",\"size200\":\"_size200_15w34_81\",\"size300\":\"_size300_15w34_85\",\"size400\":\"_size400_15w34_89\",\"size500\":\"_size500_15w34_93\",\"size700\":\"_size700_15w34_97\",\"size800\":\"_size800_15w34_101\",\"size900\":\"_size900_15w34_105\",\"size1100\":\"_size1100_15w34_109\",\"center\":\"_center_15w34_137\",\"forceLeft\":\"_forceLeft_15w34_141\",\"forceRight\":\"_forceRight_15w34_145\",\"start\":\"_start_15w34_149\",\"end\":\"_end_15w34_153\",\"regular\":\"_regular_15w34_159\",\"medium\":\"_medium_15w34_163\",\"semiBold\":\"_semiBold_15w34_167\",\"bold\":\"_bold_15w34_171\",\"underline\":\"_underline_15w34_175\",\"inline\":\"_inline_15w34_179\",\"uppercase\":\"_uppercase_15w34_183\",\"lineClamp\":\"_lineClamp_15w34_187\",\"p100\":\"_p100_15w34_196\",\"p200\":\"_p200_15w34_200\",\"p300\":\"_p300_15w34_204\",\"p400\":\"_p400_15w34_208\",\"p500\":\"_p500_15w34_212\"}"]}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./VV2NJABK.js";
|
|
8
8
|
import {
|
|
9
9
|
TabInternal
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./45DUMC5J.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=RX3JA6WI.js.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _XLUVINJWcjs = require('./XLUVINJW.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _RVU3UEZIcjs = require('./RVU3UEZI.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _K4AUV2VKcjs = require('./K4AUV2VK.cjs');
|
|
@@ -98,7 +98,7 @@ var Checkbox = ({
|
|
|
98
98
|
}
|
|
99
99
|
),
|
|
100
100
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
101
|
-
|
|
101
|
+
_RVU3UEZIcjs.Typography_default,
|
|
102
102
|
{
|
|
103
103
|
size: typographySize[size],
|
|
104
104
|
color: error ? "destructive-darkBackground" : "primary",
|
|
@@ -114,4 +114,4 @@ var Checkbox_default = Checkbox;
|
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
exports.Checkbox_default = Checkbox_default;
|
|
117
|
-
//# sourceMappingURL=
|
|
117
|
+
//# sourceMappingURL=S7BCIAUQ.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 _Q7CC3YA4cjs = require('./Q7CC3YA4.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _HUIHS6RNcjs = require('./HUIHS6RN.cjs');
|
|
@@ -93,7 +93,7 @@ function Modal({
|
|
|
93
93
|
),
|
|
94
94
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _QODNNCT2cjs.Box_default, { display: "flex", direction: "column", width: "100%", children: [
|
|
95
95
|
image && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _QODNNCT2cjs.Box_default, { children: image }),
|
|
96
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _QODNNCT2cjs.Box_default, { padding: 6, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
96
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _QODNNCT2cjs.Box_default, { padding: 6, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Q7CC3YA4cjs.Heading_default, { as: "h1", size: 700, fontStyle: "serif", children: header }) }),
|
|
97
97
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
98
98
|
_QODNNCT2cjs.Box_default,
|
|
99
99
|
{
|
|
@@ -130,4 +130,4 @@ Modal.displayName = "Modal";
|
|
|
130
130
|
|
|
131
131
|
|
|
132
132
|
exports.Modal = Modal;
|
|
133
|
-
//# sourceMappingURL=
|
|
133
|
+
//# sourceMappingURL=SAPSO6DD.cjs.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _QODNNCT2cjs = require('./QODNNCT2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _RVU3UEZIcjs = require('./RVU3UEZI.cjs');
|
|
8
8
|
|
|
9
9
|
// css-module:./Badge.module.css#css-module
|
|
10
10
|
var Badge_module_default = { "icon": "_icon_1g9xb_1" };
|
|
@@ -45,7 +45,7 @@ var Badge = ({
|
|
|
45
45
|
justifyContent: "center",
|
|
46
46
|
minHeight: 24,
|
|
47
47
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48
|
-
|
|
48
|
+
_RVU3UEZIcjs.Typography_default,
|
|
49
49
|
{
|
|
50
50
|
size: 100,
|
|
51
51
|
weight: "medium",
|
|
@@ -53,7 +53,7 @@ var Badge = ({
|
|
|
53
53
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _QODNNCT2cjs.Box_default, { display: "flex", gap: 1, alignItems: "center", justifyContent: "start", children: [
|
|
54
54
|
Icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: Badge_module_default.icon, size: 100 }),
|
|
55
55
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
56
|
-
|
|
56
|
+
_RVU3UEZIcjs.Typography_default,
|
|
57
57
|
{
|
|
58
58
|
color: textColorForBackgroundColor(color),
|
|
59
59
|
size: 100,
|
|
@@ -72,4 +72,4 @@ var Badge_default = Badge;
|
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
exports.Badge_default = Badge_default;
|
|
75
|
-
//# sourceMappingURL=
|
|
75
|
+
//# sourceMappingURL=SJSSW5MP.cjs.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _QODNNCT2cjs = require('./QODNNCT2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _RVU3UEZIcjs = require('./RVU3UEZI.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
|
+
_RVU3UEZIcjs.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
|
+
_RVU3UEZIcjs.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=SW6S6ZCI.cjs.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./KBIW5XV4.js";
|
|
11
11
|
import {
|
|
12
12
|
Typography_default
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./RJQ2LSPP.js";
|
|
14
14
|
import {
|
|
15
15
|
colors_module_default
|
|
16
16
|
} from "./XSYKMCV5.js";
|
|
@@ -166,4 +166,4 @@ export {
|
|
|
166
166
|
AriaTooltip,
|
|
167
167
|
Tooltip_default
|
|
168
168
|
};
|
|
169
|
-
//# sourceMappingURL=
|
|
169
|
+
//# sourceMappingURL=UNQGP24J.js.map
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./IB6JZQF3.js";
|
|
24
24
|
import {
|
|
25
25
|
Typography_default
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./RJQ2LSPP.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=W6JOWMNG.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
Chip_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./XEHZJBLD.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=WCQCYWL5.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
Heading_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./DDD7XI7R.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=WGRDMB2P.js.map
|
|
@@ -9,21 +9,21 @@ var _3RX4RMGCcjs = require('./3RX4RMGC.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _D4FWWDPJcjs = require('./D4FWWDPJ.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _5I7B5SAFcjs = require('./5I7B5SAF.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _AAZIVDWScjs = require('./AAZIVDWS.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _PBOAPP74cjs = require('./PBOAPP74.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _XSU6O5C3cjs = require('./XSU6O5C3.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
var _3UEOKPM2cjs = require('./3UEOKPM2.cjs');
|
|
@@ -32,7 +32,7 @@ var _3UEOKPM2cjs = require('./3UEOKPM2.cjs');
|
|
|
32
32
|
var _QODNNCT2cjs = require('./QODNNCT2.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _RVU3UEZIcjs = require('./RVU3UEZI.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
var _K4AUV2VKcjs = require('./K4AUV2VK.cjs');
|
|
@@ -103,11 +103,11 @@ function RichSelectList(props) {
|
|
|
103
103
|
const disabled = !isHydrated || disabledProp;
|
|
104
104
|
const overlayHandlerRef = _react.useRef.call(void 0, {});
|
|
105
105
|
const selectedKeysProp = _react.useMemo.call(void 0,
|
|
106
|
-
() =>
|
|
106
|
+
() => _5I7B5SAFcjs.convertSelection.call(void 0, selectedValuesProp),
|
|
107
107
|
[selectedValuesProp]
|
|
108
108
|
);
|
|
109
109
|
const defaultSelectedKeys = _react.useMemo.call(void 0,
|
|
110
|
-
() =>
|
|
110
|
+
() => _5I7B5SAFcjs.convertSelection.call(void 0, defaultSelectedValuesProp, /* @__PURE__ */ new Set()),
|
|
111
111
|
[defaultSelectedValuesProp]
|
|
112
112
|
);
|
|
113
113
|
const [selectedKeys, setSelectedKeys] = _utils.useControlledState.call(void 0,
|
|
@@ -147,12 +147,12 @@ function RichSelectList(props) {
|
|
|
147
147
|
};
|
|
148
148
|
const getArrowIconColor = () => {
|
|
149
149
|
if (errorText) {
|
|
150
|
-
return
|
|
150
|
+
return _D4FWWDPJcjs.ColorBaseDestructive700;
|
|
151
151
|
} else {
|
|
152
152
|
if (color === "clear") {
|
|
153
|
-
return
|
|
153
|
+
return _D4FWWDPJcjs.ColorCambioWhite100;
|
|
154
154
|
} else {
|
|
155
|
-
return
|
|
155
|
+
return _D4FWWDPJcjs.ColorBaseGray700;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
};
|
|
@@ -160,7 +160,7 @@ function RichSelectList(props) {
|
|
|
160
160
|
_reactariacomponents.Provider,
|
|
161
161
|
{
|
|
162
162
|
values: [
|
|
163
|
-
[
|
|
163
|
+
[_5I7B5SAFcjs.RichSelectBoxContext, { autoFocus: true }],
|
|
164
164
|
[_3RX4RMGCcjs.DialogContext, { padding: autosave ? void 0 : 0 }]
|
|
165
165
|
// this is altering Popover's internal dialog padding to show the sticky save/close buttons. Ideally this could be avoided
|
|
166
166
|
],
|
|
@@ -184,7 +184,7 @@ function RichSelectList(props) {
|
|
|
184
184
|
(_a2 = fieldRef.current) == null ? void 0 : _a2.focus();
|
|
185
185
|
_interactions.setInteractionModality.call(void 0, "keyboard");
|
|
186
186
|
},
|
|
187
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _QODNNCT2cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
187
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _QODNNCT2cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _RVU3UEZIcjs.Typography_default, { size: 100, color: textColor[color], children: label }) })
|
|
188
188
|
})
|
|
189
189
|
) }),
|
|
190
190
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -201,7 +201,7 @@ function RichSelectList(props) {
|
|
|
201
201
|
dangerouslySetInlineStyle: autosave ? void 0 : { __style: { paddingBottom: 0 } },
|
|
202
202
|
role: "menu",
|
|
203
203
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
204
|
-
|
|
204
|
+
_5I7B5SAFcjs.RichSelectBox_default,
|
|
205
205
|
_X2SDR4SDcjs.__spreadProps.call(void 0, _X2SDR4SDcjs.__spreadValues.call(void 0, {
|
|
206
206
|
autosave,
|
|
207
207
|
selectedValues: selectedKeys,
|
|
@@ -263,7 +263,7 @@ function RichSelectList(props) {
|
|
|
263
263
|
}
|
|
264
264
|
),
|
|
265
265
|
(helperText || errorText) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _QODNNCT2cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
266
|
-
|
|
266
|
+
_RVU3UEZIcjs.Typography_default,
|
|
267
267
|
_X2SDR4SDcjs.__spreadProps.call(void 0, _X2SDR4SDcjs.__spreadValues.call(void 0, {
|
|
268
268
|
size: 100,
|
|
269
269
|
color: errorText ? "destructive-primary" : textColor[color]
|
|
@@ -278,12 +278,12 @@ function RichSelectList(props) {
|
|
|
278
278
|
);
|
|
279
279
|
}
|
|
280
280
|
var RichSelectList_default = Object.assign(RichSelectList, {
|
|
281
|
-
Section:
|
|
282
|
-
Chip:
|
|
283
|
-
RadioButton:
|
|
281
|
+
Section: _AAZIVDWScjs.RichSelectSection_default,
|
|
282
|
+
Chip: _XSU6O5C3cjs.RichSelectChip_default,
|
|
283
|
+
RadioButton: _PBOAPP74cjs.RichSelectRadioButton_default
|
|
284
284
|
});
|
|
285
285
|
|
|
286
286
|
|
|
287
287
|
|
|
288
288
|
exports.RichSelectList_default = RichSelectList_default;
|
|
289
|
-
//# sourceMappingURL=
|
|
289
|
+
//# sourceMappingURL=WNNJJJGM.cjs.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./IB6JZQF3.js";
|
|
5
5
|
import {
|
|
6
6
|
Typography_default
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./RJQ2LSPP.js";
|
|
8
8
|
import {
|
|
9
9
|
useIsHydrated
|
|
10
10
|
} from "./JB65NEXK.js";
|
|
@@ -88,4 +88,4 @@ var Chip_default = Chip;
|
|
|
88
88
|
export {
|
|
89
89
|
Chip_default
|
|
90
90
|
};
|
|
91
|
-
//# sourceMappingURL=
|
|
91
|
+
//# sourceMappingURL=XEHZJBLD.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 _PBHDA7GVcjs = require('./PBHDA7GV.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
|
+
_PBHDA7GVcjs.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=XSU6O5C3.cjs.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 _RVU3UEZIcjs = require('./RVU3UEZI.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, _RVU3UEZIcjs.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=YNGB4N62.cjs.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _QODNNCT2cjs = require('./QODNNCT2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _RVU3UEZIcjs = require('./RVU3UEZI.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _K4AUV2VKcjs = require('./K4AUV2VK.cjs');
|
|
@@ -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, _RVU3UEZIcjs.Typography_default, { size: 100, color: "gray700", children: label }) }) }),
|
|
58
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _RVU3UEZIcjs.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
|
+
_RVU3UEZIcjs.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=Z6EWS3QI.cjs.map
|