@cambly/syntax-core 23.2.0 → 23.4.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.css +83 -50
- package/dist/Badge/Badge.css.map +1 -1
- package/dist/Badge/Badge.d.ts +3 -3
- package/dist/Badge/Badge.js +2 -2
- package/dist/Button/Button.css +83 -50
- 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.css +83 -50
- 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.css +83 -50
- package/dist/Chip/Chip.css.map +1 -1
- package/dist/Chip/Chip.js +2 -2
- package/dist/Divider/Divider.d.ts +10 -1
- package/dist/Divider/Divider.js +1 -1
- package/dist/Heading/Heading.css +83 -50
- package/dist/Heading/Heading.css.map +1 -1
- package/dist/Heading/Heading.d.ts +3 -3
- package/dist/Heading/Heading.js +2 -2
- package/dist/LinkButton/LinkButton.css +83 -50
- package/dist/LinkButton/LinkButton.css.map +1 -1
- package/dist/LinkButton/LinkButton.js +2 -2
- package/dist/LinkTapArea/LinkTapArea.d.ts +1 -1
- package/dist/Modal/Modal.css +83 -50
- package/dist/Modal/Modal.css.map +1 -1
- package/dist/Modal/Modal.js +4 -4
- package/dist/RadioButton/RadioButton.css +83 -50
- 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.css +83 -50
- package/dist/RichSelect/RichSelectBox.css.map +1 -1
- package/dist/RichSelect/RichSelectBox.d.ts +1 -1
- package/dist/RichSelect/RichSelectBox.js +9 -9
- package/dist/RichSelect/RichSelectChip.css +83 -50
- package/dist/RichSelect/RichSelectChip.css.map +1 -1
- package/dist/RichSelect/RichSelectChip.js +3 -3
- package/dist/RichSelect/RichSelectList.css +83 -50
- package/dist/RichSelect/RichSelectList.css.map +1 -1
- package/dist/RichSelect/RichSelectList.d.ts +1 -1
- package/dist/RichSelect/RichSelectList.js +11 -11
- package/dist/RichSelect/RichSelectRadioButton.css +83 -50
- 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.css +83 -50
- package/dist/RichSelect/RichSelectSection.css.map +1 -1
- package/dist/RichSelect/RichSelectSection.js +2 -2
- package/dist/SelectList/SelectList.css +83 -50
- package/dist/SelectList/SelectList.css.map +1 -1
- package/dist/SelectList/SelectList.js +3 -3
- package/dist/TabButton/TabButton.css +83 -50
- package/dist/TabButton/TabButton.css.map +1 -1
- package/dist/TabButton/TabButton.js +3 -3
- package/dist/TabLink/TabLink.css +83 -50
- package/dist/TabLink/TabLink.css.map +1 -1
- package/dist/TabLink/TabLink.js +3 -3
- package/dist/Tabs/TabInternal.css +83 -50
- 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.css +83 -50
- package/dist/TextArea/TextArea.css.map +1 -1
- package/dist/TextArea/TextArea.js +2 -2
- package/dist/TextField/TextField.css +83 -50
- package/dist/TextField/TextField.css.map +1 -1
- package/dist/TextField/TextField.js +3 -3
- package/dist/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/Toast/Toast.css +83 -50
- package/dist/Toast/Toast.css.map +1 -1
- package/dist/Toast/Toast.js +2 -2
- package/dist/Tooltip/Tooltip.css +83 -50
- package/dist/Tooltip/Tooltip.css.map +1 -1
- package/dist/Tooltip/Tooltip.js +2 -2
- package/dist/Typography/Typography.css +83 -50
- package/dist/Typography/Typography.css.map +1 -1
- package/dist/Typography/Typography.d.ts +4 -4
- package/dist/Typography/Typography.js +1 -1
- package/dist/WordConfetti/WordConfetti.css +83 -50
- package/dist/WordConfetti/WordConfetti.css.map +1 -1
- package/dist/WordConfetti/WordConfetti.js +2 -2
- package/dist/__chunks/{AZ5EYAWP.js → 2GIPHG2O.js} +3 -3
- package/dist/__chunks/{RQVUNK7V.js → 372EY6DW.js} +2 -2
- package/dist/__chunks/{N7G37EKF.js → 3YAHDPYE.js} +2 -2
- package/dist/__chunks/{FEJUKON5.js → 44TZM22I.js} +2 -2
- package/dist/__chunks/{UCZXBZIM.js → 4EBQUEZA.js} +2 -2
- package/dist/__chunks/{B5PWI2NT.js → 52BERSBJ.js} +2 -2
- package/dist/__chunks/{GBIA6TDE.js → 7NRE6FN5.js} +2 -2
- package/dist/__chunks/{FTC7VVZ2.js → AIZIRJN2.js} +2 -2
- package/dist/__chunks/{WJ4QY73I.js → BUUZ3DEG.js} +2 -2
- package/dist/__chunks/{LUK43ZOB.js → C2FOO36D.js} +2 -2
- package/dist/__chunks/{VULONMWO.js → EBH2OCYN.js} +4 -2
- package/dist/__chunks/EBH2OCYN.js.map +1 -0
- package/dist/__chunks/{3WKVZ2UU.js → ECZD66R2.js} +5 -3
- package/dist/__chunks/ECZD66R2.js.map +1 -0
- package/dist/__chunks/{3WCEI35J.js → ECZR66NC.js} +2 -2
- package/dist/__chunks/{5ZLA3LWK.js → KVVBC7X2.js} +7 -7
- package/dist/__chunks/{XLJZY2KR.js → M6VIDWDD.js} +3 -3
- package/dist/__chunks/{H3ONAELZ.js → M74YUYUW.js} +3 -3
- package/dist/__chunks/{STLN5GZL.js → N2LGHBXL.js} +2 -2
- package/dist/__chunks/{X6FOFRMZ.js → NK6NDD54.js} +3 -3
- package/dist/__chunks/NK6NDD54.js.map +1 -0
- package/dist/__chunks/{TH3OGGTK.js → PFODFZVK.js} +2 -2
- package/dist/__chunks/{KTX4P4Q2.js → PGQI46L2.js} +2 -1
- package/dist/__chunks/{KTX4P4Q2.js.map → PGQI46L2.js.map} +1 -1
- package/dist/__chunks/{R6OBV53M.js → POQNEYOY.js} +6 -6
- package/dist/__chunks/{66CPOSY2.js → RRDIBQ3V.js} +2 -2
- package/dist/__chunks/{C2XZYAYA.js → URIZD2JX.js} +2 -2
- package/dist/__chunks/{UAHVOHJL.js → VDBU4CHS.js} +1 -1
- package/dist/__chunks/{UAHVOHJL.js.map → VDBU4CHS.js.map} +1 -1
- package/dist/__chunks/{Y53Z25OG.js → XFZULXN6.js} +2 -2
- package/dist/__chunks/{7U6IF7U6.js → Y5C6VHET.js} +2 -2
- package/dist/index.css +83 -50
- package/dist/index.css.map +1 -1
- package/dist/index.js +26 -26
- package/package.json +2 -2
- package/dist/__chunks/3WKVZ2UU.js.map +0 -1
- package/dist/__chunks/VULONMWO.js.map +0 -1
- package/dist/__chunks/X6FOFRMZ.js.map +0 -1
- /package/dist/__chunks/{AZ5EYAWP.js.map → 2GIPHG2O.js.map} +0 -0
- /package/dist/__chunks/{RQVUNK7V.js.map → 372EY6DW.js.map} +0 -0
- /package/dist/__chunks/{N7G37EKF.js.map → 3YAHDPYE.js.map} +0 -0
- /package/dist/__chunks/{FEJUKON5.js.map → 44TZM22I.js.map} +0 -0
- /package/dist/__chunks/{UCZXBZIM.js.map → 4EBQUEZA.js.map} +0 -0
- /package/dist/__chunks/{B5PWI2NT.js.map → 52BERSBJ.js.map} +0 -0
- /package/dist/__chunks/{GBIA6TDE.js.map → 7NRE6FN5.js.map} +0 -0
- /package/dist/__chunks/{FTC7VVZ2.js.map → AIZIRJN2.js.map} +0 -0
- /package/dist/__chunks/{WJ4QY73I.js.map → BUUZ3DEG.js.map} +0 -0
- /package/dist/__chunks/{LUK43ZOB.js.map → C2FOO36D.js.map} +0 -0
- /package/dist/__chunks/{3WCEI35J.js.map → ECZR66NC.js.map} +0 -0
- /package/dist/__chunks/{5ZLA3LWK.js.map → KVVBC7X2.js.map} +0 -0
- /package/dist/__chunks/{XLJZY2KR.js.map → M6VIDWDD.js.map} +0 -0
- /package/dist/__chunks/{H3ONAELZ.js.map → M74YUYUW.js.map} +0 -0
- /package/dist/__chunks/{STLN5GZL.js.map → N2LGHBXL.js.map} +0 -0
- /package/dist/__chunks/{TH3OGGTK.js.map → PFODFZVK.js.map} +0 -0
- /package/dist/__chunks/{R6OBV53M.js.map → POQNEYOY.js.map} +0 -0
- /package/dist/__chunks/{66CPOSY2.js.map → RRDIBQ3V.js.map} +0 -0
- /package/dist/__chunks/{C2XZYAYA.js.map → URIZD2JX.js.map} +0 -0
- /package/dist/__chunks/{Y53Z25OG.js.map → XFZULXN6.js.map} +0 -0
- /package/dist/__chunks/{7U6IF7U6.js.map → Y5C6VHET.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
Heading_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./EBH2OCYN.js";
|
|
5
5
|
import {
|
|
6
6
|
StopScroll
|
|
7
7
|
} from "./QQT35OLE.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./HVA7R2EL.js";
|
|
14
14
|
import {
|
|
15
15
|
Divider
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./ECZD66R2.js";
|
|
17
17
|
import {
|
|
18
18
|
IconButton_default
|
|
19
19
|
} from "./KEJPRZJ5.js";
|
|
@@ -168,4 +168,4 @@ Modal.displayName = "Modal";
|
|
|
168
168
|
export {
|
|
169
169
|
Modal
|
|
170
170
|
};
|
|
171
|
-
//# sourceMappingURL=
|
|
171
|
+
//# sourceMappingURL=2GIPHG2O.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./X552U42S.js";
|
|
5
5
|
import {
|
|
6
6
|
Typography_default
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./NK6NDD54.js";
|
|
8
8
|
|
|
9
9
|
// src/Toast/Toast.tsx
|
|
10
10
|
import { useEffect, useState } from "react";
|
|
@@ -75,4 +75,4 @@ function Toast({
|
|
|
75
75
|
export {
|
|
76
76
|
Toast
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=
|
|
78
|
+
//# sourceMappingURL=372EY6DW.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
RadioButton_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./7NRE6FN5.js";
|
|
5
5
|
import {
|
|
6
6
|
RichSelectItem_default
|
|
7
7
|
} from "./ODMJANSX.js";
|
|
@@ -37,4 +37,4 @@ var RichSelectRadioButton_default = forwardRef(
|
|
|
37
37
|
export {
|
|
38
38
|
RichSelectRadioButton_default
|
|
39
39
|
};
|
|
40
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=3YAHDPYE.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./KBIW5XV4.js";
|
|
11
11
|
import {
|
|
12
12
|
Typography_default
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./NK6NDD54.js";
|
|
14
14
|
import {
|
|
15
15
|
colors_module_default
|
|
16
16
|
} from "./QIMMO3OB.js";
|
|
@@ -166,4 +166,4 @@ export {
|
|
|
166
166
|
AriaTooltip,
|
|
167
167
|
Tooltip_default
|
|
168
168
|
};
|
|
169
|
-
//# sourceMappingURL=
|
|
169
|
+
//# sourceMappingURL=44TZM22I.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./X552U42S.js";
|
|
5
5
|
import {
|
|
6
6
|
Typography_default
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./NK6NDD54.js";
|
|
8
8
|
|
|
9
9
|
// css-module:./Badge.module.css#css-module
|
|
10
10
|
var Badge_module_default = { "icon": "_icon_1g9xb_1" };
|
|
@@ -121,4 +121,4 @@ var Badge_default = Badge;
|
|
|
121
121
|
export {
|
|
122
122
|
Badge_default
|
|
123
123
|
};
|
|
124
|
-
//# sourceMappingURL=
|
|
124
|
+
//# sourceMappingURL=4EBQUEZA.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./6TM2ES2T.js";
|
|
9
9
|
import {
|
|
10
10
|
Typography_default
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./NK6NDD54.js";
|
|
12
12
|
import {
|
|
13
13
|
useIsHydrated
|
|
14
14
|
} from "./JB65NEXK.js";
|
|
@@ -109,4 +109,4 @@ var Chip_default = Chip;
|
|
|
109
109
|
export {
|
|
110
110
|
Chip_default
|
|
111
111
|
};
|
|
112
|
-
//# sourceMappingURL=
|
|
112
|
+
//# sourceMappingURL=52BERSBJ.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./X552U42S.js";
|
|
8
8
|
import {
|
|
9
9
|
Typography_default
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./NK6NDD54.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=7NRE6FN5.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./X552U42S.js";
|
|
5
5
|
import {
|
|
6
6
|
Typography_default
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./NK6NDD54.js";
|
|
8
8
|
import {
|
|
9
9
|
useIsHydrated
|
|
10
10
|
} from "./JB65NEXK.js";
|
|
@@ -100,4 +100,4 @@ var TextArea_default = TextArea;
|
|
|
100
100
|
export {
|
|
101
101
|
TextArea_default
|
|
102
102
|
};
|
|
103
|
-
//# sourceMappingURL=
|
|
103
|
+
//# sourceMappingURL=AIZIRJN2.js.map
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./X552U42S.js";
|
|
24
24
|
import {
|
|
25
25
|
Typography_default
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./NK6NDD54.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=BUUZ3DEG.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
Chip_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./52BERSBJ.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=C2FOO36D.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
Typography_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./NK6NDD54.js";
|
|
5
5
|
|
|
6
6
|
// src/Heading/Heading.tsx
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -13,6 +13,8 @@ function weight({
|
|
|
13
13
|
return "bold";
|
|
14
14
|
} else if (fontStyle === "serif") {
|
|
15
15
|
return "medium";
|
|
16
|
+
} else if (fontStyle === "sans-serif-brand") {
|
|
17
|
+
return "semiBold";
|
|
16
18
|
} else {
|
|
17
19
|
return "regular";
|
|
18
20
|
}
|
|
@@ -47,4 +49,4 @@ var Heading_default = Heading;
|
|
|
47
49
|
export {
|
|
48
50
|
Heading_default
|
|
49
51
|
};
|
|
50
|
-
//# sourceMappingURL=
|
|
52
|
+
//# sourceMappingURL=EBH2OCYN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Heading/Heading.tsx"],"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\" | \"semiBold\" | \"medium\" | \"regular\" {\n if (fontStyle === \"serif\" && size === 400) {\n return \"bold\";\n } else if (fontStyle === \"serif\") {\n return \"medium\";\n } else if (fontStyle === \"sans-serif-brand\") {\n return \"semiBold\";\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\" | \"sans-serif-brand\";\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"],"mappings":";;;;;;AAyGI;AAtGJ,SAAS,OAAO;AAAA,EACd;AAAA,EACA;AACF,GAG+C;AAC7C,MAAI,cAAc,WAAW,SAAS,KAAK;AACzC,WAAO;AAAA,EACT,WAAW,cAAc,SAAS;AAChC,WAAO;AAAA,EACT,WAAW,cAAc,oBAAoB;AAC3C,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;","names":[]}
|
|
@@ -9,13 +9,15 @@ var Divider_module_default = { "divider": "_divider_1uaon_1", "dividerClassic":
|
|
|
9
9
|
// src/Divider/Divider.tsx
|
|
10
10
|
import classNames from "classnames";
|
|
11
11
|
import { jsx } from "react/jsx-runtime";
|
|
12
|
-
function Divider(
|
|
12
|
+
function Divider({
|
|
13
|
+
color = "gray370"
|
|
14
|
+
}) {
|
|
13
15
|
return /* @__PURE__ */ jsx(
|
|
14
16
|
"hr",
|
|
15
17
|
{
|
|
16
18
|
className: classNames(
|
|
17
19
|
Divider_module_default.divider,
|
|
18
|
-
colors_module_default
|
|
20
|
+
colors_module_default[`${color}BackgroundColor`]
|
|
19
21
|
)
|
|
20
22
|
}
|
|
21
23
|
);
|
|
@@ -25,4 +27,4 @@ Divider.displayName = "Divider";
|
|
|
25
27
|
export {
|
|
26
28
|
Divider
|
|
27
29
|
};
|
|
28
|
-
//# sourceMappingURL=
|
|
30
|
+
//# sourceMappingURL=ECZD66R2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["css-module:./Divider.module.css#css-module","../../src/Divider/Divider.tsx"],"sourcesContent":["import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Divider/Divider.module.css\"; export default {\"divider\":\"_divider_1uaon_1\",\"dividerClassic\":\"_dividerClassic_1uaon_9\"}","import styles from \"./Divider.module.css\";\nimport classNames from \"classnames\";\nimport colorStyles from \"../colors/colors.module.css\";\n\nconst dividerColors = [\n \"white40\",\n \"white70\",\n \"gray270\",\n \"gray370\",\n \"gray870\",\n \"cream\",\n \"lilac\",\n \"navy\",\n \"orange\",\n \"pink\",\n \"purple\",\n \"red\",\n \"sky\",\n \"slate\",\n \"tan\",\n \"teal\",\n \"thistle\",\n] as const;\n\ntype DividerColors = (typeof dividerColors)[number];\n\n/**\n * [Divider](https://cambly-syntax.vercel.app/?path=/docs/components-divider--docs) is a thin horizontal line to group content in lists and layouts.\n */\nexport default function Divider({\n color = \"gray370\",\n}: {\n /**\n * The color of the divider.\n *\n * @defaultValue \"gray370\"\n */\n color?: DividerColors;\n}): React.ReactElement {\n return (\n <hr\n className={classNames(\n styles.divider,\n colorStyles[`${color}BackgroundColor`],\n )}\n />\n );\n}\n\nDivider.displayName = \"Divider\";\n"],"mappings":";;;;;;AAA8F,IAAO,yBAAQ,EAAC,WAAU,oBAAmB,kBAAiB,0BAAyB;;;ACCrL,OAAO,gBAAgB;AAuCnB;AAXW,SAAR,QAAyB;AAAA,EAC9B,QAAQ;AACV,GAOuB;AACrB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT,uBAAO;AAAA,QACP,sBAAY,GAAG,sBAAsB;AAAA,MACvC;AAAA;AAAA,EACF;AAEJ;AAEA,QAAQ,cAAc;","names":[]}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./X552U42S.js";
|
|
5
5
|
import {
|
|
6
6
|
Typography_default
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./NK6NDD54.js";
|
|
8
8
|
import {
|
|
9
9
|
colors_module_default
|
|
10
10
|
} from "./QIMMO3OB.js";
|
|
@@ -98,4 +98,4 @@ function TabInternal({
|
|
|
98
98
|
export {
|
|
99
99
|
TabInternal
|
|
100
100
|
};
|
|
101
|
-
//# sourceMappingURL=
|
|
101
|
+
//# sourceMappingURL=ECZR66NC.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
RichSelectBoxContext,
|
|
4
4
|
RichSelectBox_default,
|
|
5
5
|
convertSelection
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./POQNEYOY.js";
|
|
7
7
|
import {
|
|
8
8
|
Popover_default
|
|
9
9
|
} from "./STXMQR3I.js";
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
ColorBaseDestructive700,
|
|
15
15
|
ColorBaseGray700,
|
|
16
16
|
ColorCambioWhite100
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./VDBU4CHS.js";
|
|
18
18
|
import {
|
|
19
19
|
RichSelectSection_default
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./XFZULXN6.js";
|
|
21
21
|
import {
|
|
22
22
|
RichSelectRadioButton_default
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./3YAHDPYE.js";
|
|
24
24
|
import {
|
|
25
25
|
RichSelectChip_default
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./C2FOO36D.js";
|
|
27
27
|
import {
|
|
28
28
|
RichSelectItem_default
|
|
29
29
|
} from "./ODMJANSX.js";
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
} from "./X552U42S.js";
|
|
36
36
|
import {
|
|
37
37
|
Typography_default
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./NK6NDD54.js";
|
|
39
39
|
import {
|
|
40
40
|
useIsHydrated
|
|
41
41
|
} from "./JB65NEXK.js";
|
|
@@ -293,4 +293,4 @@ var RichSelectList_default = Object.assign(RichSelectList, {
|
|
|
293
293
|
export {
|
|
294
294
|
RichSelectList_default
|
|
295
295
|
};
|
|
296
|
-
//# sourceMappingURL=
|
|
296
|
+
//# sourceMappingURL=KVVBC7X2.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
Badge_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./4EBQUEZA.js";
|
|
5
5
|
import {
|
|
6
6
|
Box_default
|
|
7
7
|
} from "./X552U42S.js";
|
|
8
8
|
import {
|
|
9
9
|
Typography_default
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./NK6NDD54.js";
|
|
11
11
|
import {
|
|
12
12
|
useIsHydrated
|
|
13
13
|
} from "./JB65NEXK.js";
|
|
@@ -119,4 +119,4 @@ function TextField({
|
|
|
119
119
|
export {
|
|
120
120
|
TextField
|
|
121
121
|
};
|
|
122
|
-
//# sourceMappingURL=
|
|
122
|
+
//# sourceMappingURL=M6VIDWDD.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
ColorBaseDestructive700,
|
|
7
7
|
ColorBaseGray700,
|
|
8
8
|
ColorCambioWhite100
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./VDBU4CHS.js";
|
|
10
10
|
import {
|
|
11
11
|
Focus_module_default
|
|
12
12
|
} from "./KKADUD65.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./X552U42S.js";
|
|
16
16
|
import {
|
|
17
17
|
Typography_default
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./NK6NDD54.js";
|
|
19
19
|
import {
|
|
20
20
|
useIsHydrated
|
|
21
21
|
} from "./JB65NEXK.js";
|
|
@@ -141,4 +141,4 @@ SelectList.Option = SelectOption_default;
|
|
|
141
141
|
export {
|
|
142
142
|
SelectList
|
|
143
143
|
};
|
|
144
|
-
//# sourceMappingURL=
|
|
144
|
+
//# sourceMappingURL=M74YUYUW.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./VV2NJABK.js";
|
|
8
8
|
import {
|
|
9
9
|
TabInternal
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./ECZR66NC.js";
|
|
11
11
|
import {
|
|
12
12
|
Box_default
|
|
13
13
|
} from "./X552U42S.js";
|
|
@@ -64,4 +64,4 @@ function TabButton({
|
|
|
64
64
|
export {
|
|
65
65
|
TabButton
|
|
66
66
|
};
|
|
67
|
-
//# sourceMappingURL=
|
|
67
|
+
//# sourceMappingURL=N2LGHBXL.js.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_17ldg_1", "underline": "_underline_17ldg_6", "inline": "_inline_17ldg_10", "uppercase": "_uppercase_17ldg_14", "lineClamp": "_lineClamp_17ldg_18", "sansSerif": "_sansSerif_17ldg_66", "serif": "_serif_17ldg_71", "sansSerifBrand": "_sansSerifBrand_17ldg_77", "size0": "_size0_17ldg_144", "size100": "_size100_17ldg_148", "size200": "_size200_17ldg_152", "size300": "_size300_17ldg_156", "size400": "_size400_17ldg_160", "size500": "_size500_17ldg_164", "size700": "_size700_17ldg_168", "size800": "_size800_17ldg_172", "size900": "_size900_17ldg_176", "size1100": "_size1100_17ldg_180", "center": "_center_17ldg_208", "forceLeft": "_forceLeft_17ldg_212", "forceRight": "_forceRight_17ldg_216", "start": "_start_17ldg_220", "end": "_end_17ldg_224", "regular": "_regular_17ldg_230", "medium": "_medium_17ldg_234", "semiBold": "_semiBold_17ldg_238", "bold": "_bold_17ldg_242", "p100": "_p100_17ldg_247", "p200": "_p200_17ldg_251", "p300": "_p300_17ldg_255", "p400": "_p400_17ldg_259", "p500": "_p500_17ldg_263", "inherit": "_inherit_17ldg_268", "normal": "_normal_17ldg_272", "nowrap": "_nowrap_17ldg_276", "preLine": "_preLine_17ldg_280" };
|
|
12
12
|
|
|
13
13
|
// src/Typography/Typography.tsx
|
|
14
14
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -39,7 +39,7 @@ var Typography = forwardRef(function Typography2({
|
|
|
39
39
|
Typography_module_default[align],
|
|
40
40
|
Typography_module_default[weight],
|
|
41
41
|
Typography_module_default[whiteSpace],
|
|
42
|
-
fontStyle === "serif" ? Typography_module_default.serif : Typography_module_default.sansSerif,
|
|
42
|
+
fontStyle === "serif" ? Typography_module_default.serif : fontStyle === "sans-serif-brand" ? Typography_module_default.sansSerifBrand : Typography_module_default.sansSerif,
|
|
43
43
|
textColor(color),
|
|
44
44
|
inline && Typography_module_default.inline,
|
|
45
45
|
Typography_module_default[`size${size}`],
|
|
@@ -63,4 +63,4 @@ var Typography_default = Typography;
|
|
|
63
63
|
export {
|
|
64
64
|
Typography_default
|
|
65
65
|
};
|
|
66
|
-
//# sourceMappingURL=
|
|
66
|
+
//# sourceMappingURL=NK6NDD54.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\" | \"sans-serif-brand\";\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`: 44px\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 * Controls how whitespace within the element is handled.\n *\n * See: https://developer.mozilla.org/en-US/docs/Web/CSS/white-space\n *\n * @defaultValue \"inherit\"\n */\n whiteSpace?: \"inherit\" | \"normal\" | \"nowrap\" | \"preLine\";\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 whiteSpace = \"inherit\",\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 styles[whiteSpace],\n fontStyle === \"serif\"\n ? styles.serif\n : fontStyle === \"sans-serif-brand\"\n ? styles.sansSerifBrand\n : 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_17ldg_1\",\"underline\":\"_underline_17ldg_6\",\"inline\":\"_inline_17ldg_10\",\"uppercase\":\"_uppercase_17ldg_14\",\"lineClamp\":\"_lineClamp_17ldg_18\",\"sansSerif\":\"_sansSerif_17ldg_66\",\"serif\":\"_serif_17ldg_71\",\"sansSerifBrand\":\"_sansSerifBrand_17ldg_77\",\"size0\":\"_size0_17ldg_144\",\"size100\":\"_size100_17ldg_148\",\"size200\":\"_size200_17ldg_152\",\"size300\":\"_size300_17ldg_156\",\"size400\":\"_size400_17ldg_160\",\"size500\":\"_size500_17ldg_164\",\"size700\":\"_size700_17ldg_168\",\"size800\":\"_size800_17ldg_172\",\"size900\":\"_size900_17ldg_176\",\"size1100\":\"_size1100_17ldg_180\",\"center\":\"_center_17ldg_208\",\"forceLeft\":\"_forceLeft_17ldg_212\",\"forceRight\":\"_forceRight_17ldg_216\",\"start\":\"_start_17ldg_220\",\"end\":\"_end_17ldg_224\",\"regular\":\"_regular_17ldg_230\",\"medium\":\"_medium_17ldg_234\",\"semiBold\":\"_semiBold_17ldg_238\",\"bold\":\"_bold_17ldg_242\",\"p100\":\"_p100_17ldg_247\",\"p200\":\"_p200_17ldg_251\",\"p300\":\"_p300_17ldg_255\",\"p400\":\"_p400_17ldg_259\",\"p500\":\"_p500_17ldg_263\",\"inherit\":\"_inherit_17ldg_268\",\"normal\":\"_normal_17ldg_272\",\"nowrap\":\"_nowrap_17ldg_276\",\"preLine\":\"_preLine_17ldg_280\"}"],"mappings":";;;;;;AAAA,OAAO,gBAAgB;AACvB,SAAS,kBAAqD;;;ACDsC,IAAO,4BAAQ,EAAC,cAAa,uBAAsB,aAAY,sBAAqB,UAAS,oBAAmB,aAAY,uBAAsB,aAAY,uBAAsB,aAAY,uBAAsB,SAAQ,mBAAkB,kBAAiB,4BAA2B,SAAQ,oBAAmB,WAAU,sBAAq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MACP;AAAA,MAEC;AAAA;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,qBAAQ;","names":["Typography"]}
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./RSS2H4EE.js";
|
|
24
24
|
import {
|
|
25
25
|
Typography_default
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./NK6NDD54.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=PFODFZVK.js.map
|
|
@@ -94,6 +94,7 @@ var variables_default = {
|
|
|
94
94
|
"color-cambio-transparent-full": "rgba(0, 0, 0, 0)",
|
|
95
95
|
"elevation-400": "0px 16px 32px 0px #00000040",
|
|
96
96
|
"syntax-font-sans-serif": "-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
|
|
97
|
+
"syntax-font-sans-serif-brand": "'Garnett', -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
|
|
97
98
|
"shadow-interactive": "0px 3px 16px 0px rgba(144, 134, 130, 0.05), 0px 2px 30px 0px rgba(144, 134, 130, 0.02)"
|
|
98
99
|
};
|
|
99
100
|
|
|
@@ -202,4 +203,4 @@ function ThemeProvider({
|
|
|
202
203
|
export {
|
|
203
204
|
ThemeProvider
|
|
204
205
|
};
|
|
205
|
-
//# sourceMappingURL=
|
|
206
|
+
//# sourceMappingURL=PGQI46L2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/ThemeProvider/ThemeProvider.tsx","../../../syntax-design-tokens/dist/json/variables.json"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport variables from \"@cambly/syntax-design-tokens/dist/json/variables.json\";\n\nconst classicToCambioKeyLookup = {\n \"color-base-black\": \"color-cambio-black\",\n \"color-base-destructive-100\": \"color-cambio-destructive-100\",\n \"color-base-destructive-200\": \"color-cambio-destructive-300\",\n \"color-base-destructive-300\": \"color-cambio-destructive-300\",\n \"color-base-destructive-700\": \"color-cambio-destructive-700\",\n \"color-base-destructive-800\": \"color-cambio-destructive-900\",\n \"color-base-destructive-900\": \"color-cambio-destructive-900\",\n \"color-base-gray-10\": \"color-cambio-gray-370\",\n \"color-base-gray-30\": \"color-cambio-gray-370\",\n \"color-base-gray-60\": \"color-cambio-gray-870\",\n \"color-base-gray-80\": \"color-cambio-gray-870\",\n \"color-base-gray-100\": \"color-cambio-gray-100\",\n \"color-base-gray-200\": \"color-cambio-gray-200\",\n \"color-base-gray-300\": \"color-cambio-gray-300\",\n \"color-base-gray-700\": \"color-cambio-gray-700\",\n \"color-base-gray-800\": \"color-cambio-gray-800\",\n \"color-base-gray-900\": \"color-cambio-gray-900\",\n \"color-base-orange-100\": undefined, // Deprecated - to be deleted\n \"color-base-orange-200\": undefined, // Deprecated - to be deleted\n \"color-base-orange-300\": undefined, // Deprecated - to be deleted\n \"color-base-orange-700\": \"color-cambio-orange\",\n \"color-base-orange-800\": undefined, // Deprecated - to be deleted\n \"color-base-orange-900\": undefined, // Deprecated - to be deleted\n \"color-base-primary-100\": \"color-cambio-gray-100\",\n \"color-base-primary-200\": \"color-cambio-gray-200\",\n \"color-base-primary-300\": \"color-cambio-gray-300\",\n \"color-base-primary-700\": \"color-cambio-gray-700\",\n \"color-base-primary-800\": \"color-cambio-gray-800\",\n \"color-base-primary-900\": \"color-cambio-gray-900\",\n \"color-base-success-100\": \"color-cambio-success-100\",\n \"color-base-success-200\": \"color-cambio-success-300\",\n \"color-base-success-300\": \"color-cambio-success-300\",\n \"color-base-success-700\": \"color-cambio-success-700\",\n \"color-base-success-800\": \"color-cambio-success-900\",\n \"color-base-success-900\": \"color-cambio-success-900\",\n \"color-base-purple-100\": undefined, // Deprecated - to be deleted\n \"color-base-purple-200\": undefined, // Deprecated - to be deleted\n \"color-base-purple-300\": undefined, // Deprecated - to be deleted\n \"color-base-purple-700\": \"color-cambio-purple\",\n \"color-base-purple-800\": undefined, // Deprecated - to be deleted\n \"color-base-purple-900\": undefined, // Deprecated - to be deleted\n \"color-base-yellow-100\": undefined, // Deprecated - to be deleted\n \"color-base-yellow-200\": undefined, // Deprecated - to be deleted\n \"color-base-yellow-300\": undefined, // Deprecated - to be deleted\n \"color-base-yellow-700\": \"color-cambio-yellow-700\",\n \"color-base-yellow-800\": undefined, // Deprecated - to be deleted\n \"color-base-yellow-900\": undefined, // Deprecated - to be deleted\n \"color-base-white\": \"color-cambio-white-100\",\n};\n\nfunction stylesForTheme() {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const tokenVariables: Record<string, string> = variables;\n return `\n :root {\n ${Object.entries(tokenVariables)\n .map(([key, value]) => {\n // Replace classic values with cambio ones if they exist\n if (\n classicToCambioKeyLookup[\n key as keyof typeof classicToCambioKeyLookup\n ]\n ) {\n return [\n key,\n tokenVariables[\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n classicToCambioKeyLookup[\n key as keyof typeof classicToCambioKeyLookup\n ]!\n ],\n ];\n }\n return [key, value];\n })\n .map(([key, value]) => (key && value ? `--${key}: ${value};` : null))\n .filter(Boolean)\n .join(\"\\n\")}\n }\n `;\n}\n\nexport default function ThemeProvider({\n children,\n}: {\n children?: React.ReactNode;\n}): React.ReactElement {\n const innerStyles = useMemo(() => stylesForTheme(), []);\n\n return (\n <>\n <style\n dangerouslySetInnerHTML={{ __html: innerStyles }}\n data-testid=\"themeprovider-style\"\n ></style>\n {children}\n </>\n );\n}\n","{\n \"color-base-black\": \"#000000\",\n \"color-base-destructive-100\": \"#fef3f5\",\n \"color-base-destructive-200\": \"#fad6de\",\n \"color-base-destructive-300\": \"#f2a2b2\",\n \"color-base-destructive-700\": \"#d32a4b\",\n \"color-base-destructive-800\": \"#81162c\",\n \"color-base-destructive-900\": \"#55101d\",\n \"color-base-gray-10\": \"rgba(203, 203, 203, 0.5)\",\n \"color-base-gray-30\": \"rgba(0, 0, 0, 0.3)\",\n \"color-base-gray-60\": \"rgba(0, 0, 0, 0.6)\",\n \"color-base-gray-80\": \"rgba(0, 0, 0, 0.8)\",\n \"color-base-gray-100\": \"#f7f7f7\",\n \"color-base-gray-200\": \"#f0f0f0\",\n \"color-base-gray-300\": \"#d0d0d0\",\n \"color-base-gray-700\": \"#767676\",\n \"color-base-gray-800\": \"#353535\",\n \"color-base-gray-900\": \"#191919\",\n \"color-base-orange-100\": \"#fdf2f0\",\n \"color-base-orange-200\": \"#f6cdc4\",\n \"color-base-orange-300\": \"#ec9987\",\n \"color-base-orange-700\": \"#c34124\",\n \"color-base-orange-800\": \"#732818\",\n \"color-base-orange-900\": \"#4d1a10\",\n \"color-base-primary-100\": \"#eff6fa\",\n \"color-base-primary-200\": \"#c1dbe7\",\n \"color-base-primary-300\": \"#84b7d0\",\n \"color-base-primary-700\": \"#236482\",\n \"color-base-primary-800\": \"#274858\",\n \"color-base-primary-900\": \"#1b303b\",\n \"color-base-success-100\": \"#eff7f1\",\n \"color-base-success-200\": \"#bddcc6\",\n \"color-base-success-300\": \"#81ba92\",\n \"color-base-success-700\": \"#397b4d\",\n \"color-base-success-800\": \"#2d4936\",\n \"color-base-success-900\": \"#1e3124\",\n \"color-base-purple-100\": \"#f9f5fa\",\n \"color-base-purple-200\": \"#e8dceb\",\n \"color-base-purple-300\": \"#cdb4d3\",\n \"color-base-purple-700\": \"#8b5f95\",\n \"color-base-purple-800\": \"#523b58\",\n \"color-base-purple-900\": \"#37273b\",\n \"color-base-yellow-100\": \"#fdf5d9\",\n \"color-base-yellow-200\": \"#fbe8a3\",\n \"color-base-yellow-300\": \"#f8d663\",\n \"color-base-yellow-700\": \"#ffc929\",\n \"color-base-yellow-800\": \"#765f1c\",\n \"color-base-yellow-900\": \"#3b3009\",\n \"color-base-white\": \"#ffffff\",\n \"color-cambio-black\": \"#050500\",\n \"color-cambio-white-40\": \"rgba(255, 255, 255, 0.4)\",\n \"color-cambio-white-70\": \"rgba(255, 255, 255, 0.7)\",\n \"color-cambio-white-100\": \"#ffffff\",\n \"color-cambio-gray-100\": \"#faf4eb\",\n \"color-cambio-gray-200\": \"#e4dbd3\",\n \"color-cambio-gray-270\": \"rgba(228, 219, 211, 0.7)\",\n \"color-cambio-gray-300\": \"#beb4ab\",\n \"color-cambio-gray-370\": \"rgba(190, 180, 171, 0.7)\",\n \"color-cambio-gray-700\": \"#5e5952\",\n \"color-cambio-gray-800\": \"#363432\",\n \"color-cambio-gray-870\": \"rgba(94, 89, 82, 0.7)\",\n \"color-cambio-gray-900\": \"#262625\",\n \"color-cambio-destructive-100\": \"#ffdeda\",\n \"color-cambio-destructive-300\": \"#ff8071\",\n \"color-cambio-destructive-370\": \"rgba(255, 128, 113, 0.7)\",\n \"color-cambio-destructive-700\": \"#c93f32\",\n \"color-cambio-destructive-770\": \"rgba(201, 63, 50, 0.7)\",\n \"color-cambio-destructive-900\": \"#6d0002\",\n \"color-cambio-success-100\": \"#daf2c8\",\n \"color-cambio-success-300\": \"#84ce64\",\n \"color-cambio-success-370\": \"rgba(132, 206, 100, 0.7)\",\n \"color-cambio-success-700\": \"#3c7f20\",\n \"color-cambio-success-770\": \"rgba(60, 127, 32, 0.7)\",\n \"color-cambio-success-900\": \"#103e00\",\n \"color-cambio-red\": \"#f56e56\",\n \"color-cambio-orange\": \"#ff8f57\",\n \"color-cambio-tan\": \"#ffb47d\",\n \"color-cambio-cream\": \"#fffad1\",\n \"color-cambio-purple\": \"#6840a8\",\n \"color-cambio-lilac\": \"#b59ef0\",\n \"color-cambio-thistle\": \"#d69ca4\",\n \"color-cambio-pink\": \"#ffccea\",\n \"color-cambio-navy\": \"#191142\",\n \"color-cambio-teal\": \"#44a6cf\",\n \"color-cambio-slate\": \"#7c9fc6\",\n \"color-cambio-sky\": \"#b1e8fc\",\n \"color-cambio-yellow-700\": \"#ffe733\",\n \"color-cambio-transparent-full\": \"rgba(0, 0, 0, 0)\",\n \"elevation-400\": \"0px 16px 32px 0px #00000040\",\n \"syntax-font-sans-serif\": \"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif\",\n \"shadow-interactive\": \"0px 3px 16px 0px rgba(144, 134, 130, 0.05), 0px 2px 30px 0px rgba(144, 134, 130, 0.02)\"\n}\n"],"mappings":";;;AAAA,SAAgB,eAAe;;;ACA/B;AAAA,EACE,oBAAoB;AAAA,EACpB,8BAA8B;AAAA,EAC9B,8BAA8B;AAAA,EAC9B,8BAA8B;AAAA,EAC9B,8BAA8B;AAAA,EAC9B,8BAA8B;AAAA,EAC9B,8BAA8B;AAAA,EAC9B,sBAAsB;AAAA,EACtB,sBAAsB;AAAA,EACtB,sBAAsB;AAAA,EACtB,sBAAsB;AAAA,EACtB,uBAAuB;AAAA,EACvB,uBAAuB;AAAA,EACvB,uBAAuB;AAAA,EACvB,uBAAuB;AAAA,EACvB,uBAAuB;AAAA,EACvB,uBAAuB;AAAA,EACvB,yBAAyB;AAAA,EACzB,yBAAyB;AAAA,EACzB,yBAAyB;AAAA,EACzB,yBAAyB;AAAA,EACzB,yBAAyB;AAAA,EACzB,yBAAyB;AAAA,EACzB,0BAA0B;AAAA,EAC1B,0BAA0B;AAAA,EAC1B,0BAA0B;AAAA,EAC1B,0BAA0B;AAAA,EAC1B,0BAA0B;AAAA,EAC1B,0BAA0B;AAAA,EAC1B,0BAA0B;AAAA,EAC1B,0BAA0B;AAAA,EAC1B,0BAA0B;AAAA,EAC1B,0BAA0B;AAAA,EAC1B,0BAA0B;AAAA,EAC1B,0BAA0B;AAAA,EAC1B,yBAAyB;AAAA,EACzB,yBAAyB;AAAA,EACzB,yBAAyB;AAAA,EACzB,yBAAyB;AAAA,EACzB,yBAAyB;AAAA,EACzB,yBAAyB;AAAA,EACzB,yBAAyB;AAAA,EACzB,yBAAyB;AAAA,EACzB,yBAA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,QAAQ,WAAW,IAAK,EACnE,OAAO,OAAO,EACd,KAAK,IAAI;AAAA;AAAA;AAGlB;AAEe,SAAR,cAA+B;AAAA,EACpC;AACF,GAEuB;AACrB,QAAM,cAAc,QAAQ,MAAM,eAAe,GAAG,CAAC,CAAC;AAEtD,SACE,iCACE;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,yBAAyB,EAAE,QAAQ,YAAY;AAAA,QAC/C,eAAY;AAAA;AAAA,IACb;AAAA,IACA;AAAA,KACH;AAEJ;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/ThemeProvider/ThemeProvider.tsx","../../../syntax-design-tokens/dist/json/variables.json"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport variables from \"@cambly/syntax-design-tokens/dist/json/variables.json\";\n\nconst classicToCambioKeyLookup = {\n \"color-base-black\": \"color-cambio-black\",\n \"color-base-destructive-100\": \"color-cambio-destructive-100\",\n \"color-base-destructive-200\": \"color-cambio-destructive-300\",\n \"color-base-destructive-300\": \"color-cambio-destructive-300\",\n \"color-base-destructive-700\": \"color-cambio-destructive-700\",\n \"color-base-destructive-800\": \"color-cambio-destructive-900\",\n \"color-base-destructive-900\": \"color-cambio-destructive-900\",\n \"color-base-gray-10\": \"color-cambio-gray-370\",\n \"color-base-gray-30\": \"color-cambio-gray-370\",\n \"color-base-gray-60\": \"color-cambio-gray-870\",\n \"color-base-gray-80\": \"color-cambio-gray-870\",\n \"color-base-gray-100\": \"color-cambio-gray-100\",\n \"color-base-gray-200\": \"color-cambio-gray-200\",\n \"color-base-gray-300\": \"color-cambio-gray-300\",\n \"color-base-gray-700\": \"color-cambio-gray-700\",\n \"color-base-gray-800\": \"color-cambio-gray-800\",\n \"color-base-gray-900\": \"color-cambio-gray-900\",\n \"color-base-orange-100\": undefined, // Deprecated - to be deleted\n \"color-base-orange-200\": undefined, // Deprecated - to be deleted\n \"color-base-orange-300\": undefined, // Deprecated - to be deleted\n \"color-base-orange-700\": \"color-cambio-orange\",\n \"color-base-orange-800\": undefined, // Deprecated - to be deleted\n \"color-base-orange-900\": undefined, // Deprecated - to be deleted\n \"color-base-primary-100\": \"color-cambio-gray-100\",\n \"color-base-primary-200\": \"color-cambio-gray-200\",\n \"color-base-primary-300\": \"color-cambio-gray-300\",\n \"color-base-primary-700\": \"color-cambio-gray-700\",\n \"color-base-primary-800\": \"color-cambio-gray-800\",\n \"color-base-primary-900\": \"color-cambio-gray-900\",\n \"color-base-success-100\": \"color-cambio-success-100\",\n \"color-base-success-200\": \"color-cambio-success-300\",\n \"color-base-success-300\": \"color-cambio-success-300\",\n \"color-base-success-700\": \"color-cambio-success-700\",\n \"color-base-success-800\": \"color-cambio-success-900\",\n \"color-base-success-900\": \"color-cambio-success-900\",\n \"color-base-purple-100\": undefined, // Deprecated - to be deleted\n \"color-base-purple-200\": undefined, // Deprecated - to be deleted\n \"color-base-purple-300\": undefined, // Deprecated - to be deleted\n \"color-base-purple-700\": \"color-cambio-purple\",\n \"color-base-purple-800\": undefined, // Deprecated - to be deleted\n \"color-base-purple-900\": undefined, // Deprecated - to be deleted\n \"color-base-yellow-100\": undefined, // Deprecated - to be deleted\n \"color-base-yellow-200\": undefined, // Deprecated - to be deleted\n \"color-base-yellow-300\": undefined, // Deprecated - to be deleted\n \"color-base-yellow-700\": \"color-cambio-yellow-700\",\n \"color-base-yellow-800\": undefined, // Deprecated - to be deleted\n \"color-base-yellow-900\": undefined, // Deprecated - to be deleted\n \"color-base-white\": \"color-cambio-white-100\",\n};\n\nfunction stylesForTheme() {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const tokenVariables: Record<string, string> = variables;\n return `\n :root {\n ${Object.entries(tokenVariables)\n .map(([key, value]) => {\n // Replace classic values with cambio ones if they exist\n if (\n classicToCambioKeyLookup[\n key as keyof typeof classicToCambioKeyLookup\n ]\n ) {\n return [\n key,\n tokenVariables[\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n classicToCambioKeyLookup[\n key as keyof typeof classicToCambioKeyLookup\n ]!\n ],\n ];\n }\n return [key, value];\n })\n .map(([key, value]) => (key && value ? `--${key}: ${value};` : null))\n .filter(Boolean)\n .join(\"\\n\")}\n }\n `;\n}\n\nexport default function ThemeProvider({\n children,\n}: {\n children?: React.ReactNode;\n}): React.ReactElement {\n const innerStyles = useMemo(() => stylesForTheme(), []);\n\n return (\n <>\n <style\n dangerouslySetInnerHTML={{ __html: innerStyles }}\n data-testid=\"themeprovider-style\"\n ></style>\n {children}\n </>\n );\n}\n","{\n \"color-base-black\": \"#000000\",\n \"color-base-destructive-100\": \"#fef3f5\",\n \"color-base-destructive-200\": \"#fad6de\",\n \"color-base-destructive-300\": \"#f2a2b2\",\n \"color-base-destructive-700\": \"#d32a4b\",\n \"color-base-destructive-800\": \"#81162c\",\n \"color-base-destructive-900\": \"#55101d\",\n \"color-base-gray-10\": \"rgba(203, 203, 203, 0.5)\",\n \"color-base-gray-30\": \"rgba(0, 0, 0, 0.3)\",\n \"color-base-gray-60\": \"rgba(0, 0, 0, 0.6)\",\n \"color-base-gray-80\": \"rgba(0, 0, 0, 0.8)\",\n \"color-base-gray-100\": \"#f7f7f7\",\n \"color-base-gray-200\": \"#f0f0f0\",\n \"color-base-gray-300\": \"#d0d0d0\",\n \"color-base-gray-700\": \"#767676\",\n \"color-base-gray-800\": \"#353535\",\n \"color-base-gray-900\": \"#191919\",\n \"color-base-orange-100\": \"#fdf2f0\",\n \"color-base-orange-200\": \"#f6cdc4\",\n \"color-base-orange-300\": \"#ec9987\",\n \"color-base-orange-700\": \"#c34124\",\n \"color-base-orange-800\": \"#732818\",\n \"color-base-orange-900\": \"#4d1a10\",\n \"color-base-primary-100\": \"#eff6fa\",\n \"color-base-primary-200\": \"#c1dbe7\",\n \"color-base-primary-300\": \"#84b7d0\",\n \"color-base-primary-700\": \"#236482\",\n \"color-base-primary-800\": \"#274858\",\n \"color-base-primary-900\": \"#1b303b\",\n \"color-base-success-100\": \"#eff7f1\",\n \"color-base-success-200\": \"#bddcc6\",\n \"color-base-success-300\": \"#81ba92\",\n \"color-base-success-700\": \"#397b4d\",\n \"color-base-success-800\": \"#2d4936\",\n \"color-base-success-900\": \"#1e3124\",\n \"color-base-purple-100\": \"#f9f5fa\",\n \"color-base-purple-200\": \"#e8dceb\",\n \"color-base-purple-300\": \"#cdb4d3\",\n \"color-base-purple-700\": \"#8b5f95\",\n \"color-base-purple-800\": \"#523b58\",\n \"color-base-purple-900\": \"#37273b\",\n \"color-base-yellow-100\": \"#fdf5d9\",\n \"color-base-yellow-200\": \"#fbe8a3\",\n \"color-base-yellow-300\": \"#f8d663\",\n \"color-base-yellow-700\": \"#ffc929\",\n \"color-base-yellow-800\": \"#765f1c\",\n \"color-base-yellow-900\": \"#3b3009\",\n \"color-base-white\": \"#ffffff\",\n \"color-cambio-black\": \"#050500\",\n \"color-cambio-white-40\": \"rgba(255, 255, 255, 0.4)\",\n \"color-cambio-white-70\": \"rgba(255, 255, 255, 0.7)\",\n \"color-cambio-white-100\": \"#ffffff\",\n \"color-cambio-gray-100\": \"#faf4eb\",\n \"color-cambio-gray-200\": \"#e4dbd3\",\n \"color-cambio-gray-270\": \"rgba(228, 219, 211, 0.7)\",\n \"color-cambio-gray-300\": \"#beb4ab\",\n \"color-cambio-gray-370\": \"rgba(190, 180, 171, 0.7)\",\n \"color-cambio-gray-700\": \"#5e5952\",\n \"color-cambio-gray-800\": \"#363432\",\n \"color-cambio-gray-870\": \"rgba(94, 89, 82, 0.7)\",\n \"color-cambio-gray-900\": \"#262625\",\n \"color-cambio-destructive-100\": \"#ffdeda\",\n \"color-cambio-destructive-300\": \"#ff8071\",\n \"color-cambio-destructive-370\": \"rgba(255, 128, 113, 0.7)\",\n \"color-cambio-destructive-700\": \"#c93f32\",\n \"color-cambio-destructive-770\": \"rgba(201, 63, 50, 0.7)\",\n \"color-cambio-destructive-900\": \"#6d0002\",\n \"color-cambio-success-100\": \"#daf2c8\",\n \"color-cambio-success-300\": \"#84ce64\",\n \"color-cambio-success-370\": \"rgba(132, 206, 100, 0.7)\",\n \"color-cambio-success-700\": \"#3c7f20\",\n \"color-cambio-success-770\": \"rgba(60, 127, 32, 0.7)\",\n \"color-cambio-success-900\": \"#103e00\",\n \"color-cambio-red\": \"#f56e56\",\n \"color-cambio-orange\": \"#ff8f57\",\n \"color-cambio-tan\": \"#ffb47d\",\n \"color-cambio-cream\": \"#fffad1\",\n \"color-cambio-purple\": \"#6840a8\",\n \"color-cambio-lilac\": \"#b59ef0\",\n \"color-cambio-thistle\": \"#d69ca4\",\n \"color-cambio-pink\": \"#ffccea\",\n \"color-cambio-navy\": \"#191142\",\n \"color-cambio-teal\": \"#44a6cf\",\n \"color-cambio-slate\": \"#7c9fc6\",\n \"color-cambio-sky\": \"#b1e8fc\",\n \"color-cambio-yellow-700\": \"#ffe733\",\n \"color-cambio-transparent-full\": \"rgba(0, 0, 0, 0)\",\n \"elevation-400\": \"0px 16px 32px 0px #00000040\",\n \"syntax-font-sans-serif\": \"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif\",\n \"syntax-font-sans-serif-brand\": \"'Garnett', -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif\",\n \"shadow-interactive\": \"0px 3px 16px 0px rgba(144, 134, 130, 0.05), 0px 2px 30px 0px rgba(144, 134, 130, 0.02)\"\n}\n"],"mappings":";;;AAAA,SAAgB,eAAe;;;ACA/B;AAAA,EACE,oBAAoB;AAAA,EACpB,8BAA8B;AAAA,EAC9B,8BAA8B;AAAA,EAC9B,8BAA8B;AAAA,EAC9B,8BAA8B;AAAA,EAC9B,8BAA8B;AAAA,EAC9B,8BAA8B;AAAA,EAC9B,sBAAsB;AAAA,EACtB,sBAAsB;AAAA,EACtB,sBAAsB;AAAA,EACtB,sBAAsB;AAAA,EACtB,uBAAuB;AAAA,EACvB,uBAAuB;AAAA,EACvB,uBAAuB;AAAA,EACvB,uBAAuB;AAAA,EACvB,uBAAuB;A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B,yBAAyB;AAAA,EACzB,yBAAyB;AAAA;AAAA,EACzB,yBAAyB;AAAA;AAAA,EACzB,yBAAyB;AAAA;AAAA,EACzB,yBAAyB;AAAA;AAAA,EACzB,yBAAyB;AAAA;AAAA,EACzB,yBAAyB;AAAA,EACzB,yBAAyB;AAAA;AAAA,EACzB,yBAAyB;AAAA;AAAA,EACzB,oBAAoB;AACtB;AAEA,SAAS,iBAAiB;AAExB,QAAM,iBAAyC;AAC/C,SAAO;AAAA;AAAA,QAED,OAAO,QAAQ,cAAc,EAC5B,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM;AAErB,QACE,yBACE,GACF,GACA;AACA,aAAO;AAAA,QACL;AAAA,QACA;AAAA;AAAA,UAEE,yBACE,GACF;AAAA,QACF;AAAA,MACF;AAAA,IACF;AACA,WAAO,CAAC,KAAK,KAAK;AAAA,EACpB,CAAC,EACA,IAAI,CAAC,CAAC,KAAK,KAAK,MAAO,OAAO,QAAQ,KAAK,QAAQ,WAAW,IAAK,EACnE,OAAO,OAAO,EACd,KAAK,IAAI;AAAA;AAAA;AAGlB;AAEe,SAAR,cAA+B;AAAA,EACpC;AACF,GAEuB;AACrB,QAAM,cAAc,QAAQ,MAAM,eAAe,GAAG,CAAC,CAAC;AAEtD,SACE,iCACE;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,yBAAyB,EAAE,QAAQ,YAAY;AAAA,QAC/C,eAAY;AAAA;AAAA,IACb;AAAA,IACA;AAAA,KACH;AAEJ;","names":[]}
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
} from "./36DG472B.js";
|
|
5
5
|
import {
|
|
6
6
|
Button_default
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./BUUZ3DEG.js";
|
|
8
8
|
import {
|
|
9
9
|
Divider
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./ECZD66R2.js";
|
|
11
11
|
import {
|
|
12
12
|
RichSelectSection_default
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./XFZULXN6.js";
|
|
14
14
|
import {
|
|
15
15
|
RichSelectRadioButton_default
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./3YAHDPYE.js";
|
|
17
17
|
import {
|
|
18
18
|
RichSelectChip_default
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./C2FOO36D.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=POQNEYOY.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./KKADUD65.js";
|
|
5
5
|
import {
|
|
6
6
|
Typography_default
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./NK6NDD54.js";
|
|
8
8
|
import {
|
|
9
9
|
useIsHydrated
|
|
10
10
|
} from "./JB65NEXK.js";
|
|
@@ -114,4 +114,4 @@ var Checkbox_default = Checkbox;
|
|
|
114
114
|
export {
|
|
115
115
|
Checkbox_default
|
|
116
116
|
};
|
|
117
|
-
//# sourceMappingURL=
|
|
117
|
+
//# sourceMappingURL=RRDIBQ3V.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./VV2NJABK.js";
|
|
5
5
|
import {
|
|
6
6
|
TabInternal
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./ECZR66NC.js";
|
|
8
8
|
import {
|
|
9
9
|
Box_default
|
|
10
10
|
} from "./X552U42S.js";
|
|
@@ -72,4 +72,4 @@ var TabLink_default = TabLink;
|
|
|
72
72
|
export {
|
|
73
73
|
TabLink_default
|
|
74
74
|
};
|
|
75
|
-
//# sourceMappingURL=
|
|
75
|
+
//# sourceMappingURL=URIZD2JX.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"sourcesContent":["/**\n * Do not edit directly\n * Generated on
|
|
1
|
+
{"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"sourcesContent":["/**\n * Do not edit directly\n * Generated on Mon, 23 Feb 2026 23:13:15 GMT\n */\n\nexport const ColorBaseBlack = \"#000000\";\nexport const ColorBaseDestructive100 = \"#fef3f5\";\nexport const ColorBaseDestructive200 = \"#fad6de\";\nexport const ColorBaseDestructive300 = \"#f2a2b2\";\nexport const ColorBaseDestructive700 = \"#d32a4b\";\nexport const ColorBaseDestructive800 = \"#81162c\";\nexport const ColorBaseDestructive900 = \"#55101d\";\nexport const ColorBaseGray10 = \"#cbcbcb\"; // Used as the default color for dividers and inner strokes\nexport const ColorBaseGray30 = \"#000000\"; // For IconButton background when on top of an image\nexport const ColorBaseGray60 = \"#000000\"; // Used for icon background in classroom video grid\nexport const ColorBaseGray80 = \"#000000\"; // Used as the background for modals\nexport const ColorBaseGray100 = \"#f7f7f7\";\nexport const ColorBaseGray200 = \"#f0f0f0\"; // Used for light mode backgrounds when showing card content on top\nexport const ColorBaseGray300 = \"#d0d0d0\"; // Used for component outlines, eg: select and textfield\nexport const ColorBaseGray700 = \"#767676\"; // For secondary text in light mode\nexport const ColorBaseGray800 = \"#353535\";\nexport const ColorBaseGray900 = \"#191919\"; // Default text color, Classroom background\nexport const ColorBaseOrange100 = \"#fdf2f0\";\nexport const ColorBaseOrange200 = \"#f6cdc4\";\nexport const ColorBaseOrange300 = \"#ec9987\";\nexport const ColorBaseOrange700 = \"#c34124\";\nexport const ColorBaseOrange800 = \"#732818\";\nexport const ColorBaseOrange900 = \"#4d1a10\";\nexport const ColorBasePrimary100 = \"#eff6fa\";\nexport const ColorBasePrimary200 = \"#c1dbe7\";\nexport const ColorBasePrimary300 = \"#84b7d0\";\nexport const ColorBasePrimary700 = \"#236482\";\nexport const ColorBasePrimary800 = \"#274858\";\nexport const ColorBasePrimary900 = \"#1b303b\";\nexport const ColorBaseSuccess100 = \"#eff7f1\";\nexport const ColorBaseSuccess200 = \"#bddcc6\";\nexport const ColorBaseSuccess300 = \"#81ba92\";\nexport const ColorBaseSuccess700 = \"#397b4d\";\nexport const ColorBaseSuccess800 = \"#2d4936\";\nexport const ColorBaseSuccess900 = \"#1e3124\";\nexport const ColorBasePurple100 = \"#f9f5fa\";\nexport const ColorBasePurple200 = \"#e8dceb\";\nexport const ColorBasePurple300 = \"#cdb4d3\";\nexport const ColorBasePurple700 = \"#8b5f95\";\nexport const ColorBasePurple800 = \"#523b58\";\nexport const ColorBasePurple900 = \"#37273b\";\nexport const ColorBaseYellow100 = \"#fdf5d9\";\nexport const ColorBaseYellow200 = \"#fbe8a3\";\nexport const ColorBaseYellow300 = \"#f8d663\";\nexport const ColorBaseYellow700 = \"#ffc929\";\nexport const ColorBaseYellow800 = \"#765f1c\";\nexport const ColorBaseYellow900 = \"#3b3009\";\nexport const ColorBaseWhite = \"#ffffff\";\nexport const ColorCambioBlack = \"#050500\";\nexport const ColorCambioWhite40 = \"#ffffff\";\nexport const ColorCambioWhite70 = \"#ffffff\";\nexport const ColorCambioWhite100 = \"#ffffff\";\nexport const ColorCambioGray100 = \"#faf4eb\";\nexport const ColorCambioGray200 = \"#e4dbd3\";\nexport const ColorCambioGray270 = \"#e4dbd3\";\nexport const ColorCambioGray300 = \"#beb4ab\";\nexport const ColorCambioGray370 = \"#beb4ab\";\nexport const ColorCambioGray700 = \"#5e5952\";\nexport const ColorCambioGray800 = \"#363432\";\nexport const ColorCambioGray870 = \"#5e5952\";\nexport const ColorCambioGray900 = \"#262625\";\nexport const ColorCambioDestructive100 = \"#ffdeda\";\nexport const ColorCambioDestructive300 = \"#ff8071\";\nexport const ColorCambioDestructive370 = \"#ff8071\";\nexport const ColorCambioDestructive700 = \"#c93f32\";\nexport const ColorCambioDestructive770 = \"#c93f32\";\nexport const ColorCambioDestructive900 = \"#6d0002\";\nexport const ColorCambioSuccess100 = \"#daf2c8\";\nexport const ColorCambioSuccess300 = \"#84ce64\";\nexport const ColorCambioSuccess370 = \"#84ce64\";\nexport const ColorCambioSuccess700 = \"#3c7f20\";\nexport const ColorCambioSuccess770 = \"#3c7f20\";\nexport const ColorCambioSuccess900 = \"#103e00\";\nexport const ColorCambioRed = \"#f56e56\";\nexport const ColorCambioOrange = \"#ff8f57\";\nexport const ColorCambioTan = \"#ffb47d\";\nexport const ColorCambioCream = \"#fffad1\";\nexport const ColorCambioPurple = \"#6840a8\";\nexport const ColorCambioLilac = \"#b59ef0\";\nexport const ColorCambioThistle = \"#d69ca4\";\nexport const ColorCambioPink = \"#ffccea\";\nexport const ColorCambioNavy = \"#191142\";\nexport const ColorCambioTeal = \"#44a6cf\";\nexport const ColorCambioSlate = \"#7c9fc6\";\nexport const ColorCambioSky = \"#b1e8fc\";\nexport const ColorCambioYellow700 = \"#ffe733\";\nexport const ColorCambioTransparentFull = \"#000000\";\nexport const Elevation400 = \"0px 16px 32px 0px #00000040\";\nexport const SyntaxFontSansSerif = \"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif\";\nexport const SyntaxFontSansSerifBrand = \"'Garnett', -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif\";\nexport const ShadowInteractive = \"0px 3px 16px 0px rgba(144, 134, 130, 0.05), 0px 2px 30px 0px rgba(144, 134, 130, 0.02)\";\n"],"mappings":";;;AASO,IAAM,0BAA0B;AAUhC,IAAM,mBAAmB;AAqCzB,IAAM,sBAAsB;","names":[]}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./AVREYFSM.js";
|
|
8
8
|
import {
|
|
9
9
|
Typography_default
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./NK6NDD54.js";
|
|
11
11
|
|
|
12
12
|
// src/RichSelect/RichSelectSection.tsx
|
|
13
13
|
import { forwardRef } from "react";
|
|
@@ -50,4 +50,4 @@ var RichSelectSection_default = forwardRef(
|
|
|
50
50
|
export {
|
|
51
51
|
RichSelectSection_default
|
|
52
52
|
};
|
|
53
|
-
//# sourceMappingURL=
|
|
53
|
+
//# sourceMappingURL=XFZULXN6.js.map
|