@cambly/syntax-core 12.5.0 → 12.6.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.d.ts +3 -3
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Heading/Heading.d.ts +2 -2
- package/dist/RadioButton/RadioButton.d.ts +1 -1
- package/dist/RichSelect/RichSelectBox.d.ts +1 -1
- package/dist/RichSelect/RichSelectList.cjs +3 -3
- package/dist/RichSelect/RichSelectList.d.ts +1 -1
- package/dist/RichSelect/RichSelectList.js +2 -2
- package/dist/RichSelect/RichSelectRadioButton.d.ts +1 -1
- package/dist/SelectList/SelectList.cjs +4 -4
- package/dist/SelectList/SelectList.d.ts +2 -1
- package/dist/SelectList/SelectList.js +3 -3
- package/dist/SelectList/SelectOption.cjs +2 -2
- package/dist/SelectList/SelectOption.d.ts +2 -1
- package/dist/SelectList/SelectOption.js +1 -1
- package/dist/TapArea/TapArea.d.ts +1 -1
- package/dist/Typography/Typography.d.ts +3 -3
- package/dist/__chunks/{TLJEXAPK.cjs → 2CI32K5M.cjs} +3 -3
- package/dist/__chunks/{X747TBQO.js → 4YLZ3ZKM.js} +1 -1
- package/dist/__chunks/{X747TBQO.js.map → 4YLZ3ZKM.js.map} +1 -1
- package/dist/__chunks/{ZOLQZLRM.js → AANQ5GIN.js} +2 -2
- package/dist/__chunks/{JEGPGWID.js → D5RNAJCX.js} +3 -3
- package/dist/__chunks/{4UJE5GMH.cjs → JVGX637E.cjs} +13 -3
- package/dist/__chunks/JVGX637E.cjs.map +1 -0
- package/dist/__chunks/SPQ7DQHG.js +26 -0
- package/dist/__chunks/SPQ7DQHG.js.map +1 -0
- package/dist/__chunks/{3Z5JQV7Q.cjs → XD6YC7HP.cjs} +5 -5
- package/dist/__chunks/{JDGT2NSB.cjs → Y2IIT6PV.cjs} +1 -1
- package/dist/__chunks/{JDGT2NSB.cjs.map → Y2IIT6PV.cjs.map} +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/dist/__chunks/4UJE5GMH.cjs.map +0 -1
- package/dist/__chunks/Y47XTR6M.js +0 -16
- package/dist/__chunks/Y47XTR6M.js.map +0 -1
- /package/dist/__chunks/{TLJEXAPK.cjs.map → 2CI32K5M.cjs.map} +0 -0
- /package/dist/__chunks/{ZOLQZLRM.js.map → AANQ5GIN.js.map} +0 -0
- /package/dist/__chunks/{JEGPGWID.js.map → D5RNAJCX.js.map} +0 -0
- /package/dist/__chunks/{3Z5JQV7Q.cjs.map → XD6YC7HP.cjs.map} +0 -0
package/dist/Avatar/Avatar.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ declare const Avatar: ({ accessibilityLabel, icon, size, src, }: {
|
|
|
24
24
|
*
|
|
25
25
|
* @defaultValue `md`
|
|
26
26
|
*/
|
|
27
|
-
size?: "
|
|
27
|
+
size?: "md" | "sm" | "xs" | "lg" | undefined;
|
|
28
28
|
/**
|
|
29
29
|
* URL of the image to display as the avatar.
|
|
30
30
|
*/
|
package/dist/Badge/Badge.d.ts
CHANGED
|
@@ -10,8 +10,8 @@ declare const Badge: ({ icon: Icon, text, color, }: {
|
|
|
10
10
|
icon?: React.ComponentType<{
|
|
11
11
|
className?: string | undefined;
|
|
12
12
|
}> | React.ComponentType<{
|
|
13
|
-
color?: "gray900" | "
|
|
14
|
-
size?: "
|
|
13
|
+
color?: "gray700" | "gray900" | "white" | "inherit" | "primary" | "destructive-primary" | "destructive-darkBackground" | "success" | "success-darkBackground" | undefined;
|
|
14
|
+
size?: "md" | "sm" | "xs" | "lg" | undefined;
|
|
15
15
|
path?: string | undefined;
|
|
16
16
|
} & React.RefAttributes<SVGSVGElement>> | undefined;
|
|
17
17
|
/**
|
|
@@ -23,7 +23,7 @@ declare const Badge: ({ icon: Icon, text, color, }: {
|
|
|
23
23
|
*
|
|
24
24
|
* @defaultValue "sky"
|
|
25
25
|
*/
|
|
26
|
-
color?: "
|
|
26
|
+
color?: "destructive300" | "success300" | "gray370" | "gray870" | "lilac" | "orange" | "pink" | "sky" | "tan" | "thistle" | undefined;
|
|
27
27
|
}) => JSX.Element;
|
|
28
28
|
|
|
29
29
|
export { Badge as default };
|
|
@@ -11,7 +11,7 @@ declare const Heading: ({ align, as, children, color, "data-testid": dataTestId,
|
|
|
11
11
|
*
|
|
12
12
|
* @defaultValue "start"
|
|
13
13
|
*/
|
|
14
|
-
align?: "
|
|
14
|
+
align?: "center" | "end" | "start" | "forceLeft" | "forceRight" | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* DOM element to render as.
|
|
17
17
|
*
|
|
@@ -27,7 +27,7 @@ declare const Heading: ({ align, as, children, color, "data-testid": dataTestId,
|
|
|
27
27
|
*
|
|
28
28
|
* @defaultValue "gray900"
|
|
29
29
|
*/
|
|
30
|
-
color?: "
|
|
30
|
+
color?: "gray700" | "gray900" | "white" | "inherit" | "primary" | "destructive-primary" | "success" | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* Test id for the text.
|
|
33
33
|
*/
|
|
@@ -49,7 +49,7 @@ declare const _default: React__default.ForwardRefExoticComponent<RichSelectBoxPr
|
|
|
49
49
|
Chip: React__default.ForwardRefExoticComponent<RichSelectItemProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
50
50
|
RadioButton: React__default.ForwardRefExoticComponent<RichSelectItemProps & {
|
|
51
51
|
name: string;
|
|
52
|
-
size?: "
|
|
52
|
+
size?: "md" | "sm" | undefined;
|
|
53
53
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
54
54
|
};
|
|
55
55
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _2CI32K5Mcjs = require('../__chunks/2CI32K5M.cjs');
|
|
5
5
|
require('../__chunks/RKDIXZZU.cjs');
|
|
6
6
|
require('../__chunks/C5XPZTFO.cjs');
|
|
7
7
|
require('../__chunks/S2VK4XNL.cjs');
|
|
@@ -16,7 +16,7 @@ require('../__chunks/TYPTB7HD.cjs');
|
|
|
16
16
|
require('../__chunks/76LTWV2Q.cjs');
|
|
17
17
|
require('../__chunks/63XQSPT7.cjs');
|
|
18
18
|
require('../__chunks/3UEOKPM2.cjs');
|
|
19
|
-
require('../__chunks/
|
|
19
|
+
require('../__chunks/Y2IIT6PV.cjs');
|
|
20
20
|
require('../__chunks/ZTK7E42P.cjs');
|
|
21
21
|
require('../__chunks/MF7LLV7V.cjs');
|
|
22
22
|
require('../__chunks/6ER23PG5.cjs');
|
|
@@ -46,5 +46,5 @@ require('../__chunks/E5P6WRJD.cjs');
|
|
|
46
46
|
require('../__chunks/X2SDR4SD.cjs');
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
exports.default =
|
|
49
|
+
exports.default = _2CI32K5Mcjs.RichSelectList_default;
|
|
50
50
|
//# sourceMappingURL=RichSelectList.cjs.map
|
|
@@ -69,7 +69,7 @@ declare const _default: typeof RichSelectList & {
|
|
|
69
69
|
Chip: React__default.ForwardRefExoticComponent<RichSelectItemProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
70
70
|
RadioButton: React__default.ForwardRefExoticComponent<RichSelectItemProps & {
|
|
71
71
|
name: string;
|
|
72
|
-
size?: "
|
|
72
|
+
size?: "md" | "sm" | undefined;
|
|
73
73
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
74
74
|
};
|
|
75
75
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
RichSelectList_default
|
|
4
|
-
} from "../__chunks/
|
|
4
|
+
} from "../__chunks/AANQ5GIN.js";
|
|
5
5
|
import "../__chunks/DJL67KQ3.js";
|
|
6
6
|
import "../__chunks/BOX3VY3Q.js";
|
|
7
7
|
import "../__chunks/7EM2GOIC.js";
|
|
@@ -16,7 +16,7 @@ import "../__chunks/NPZBG5AK.js";
|
|
|
16
16
|
import "../__chunks/TZGJS522.js";
|
|
17
17
|
import "../__chunks/4JFE4NWI.js";
|
|
18
18
|
import "../__chunks/77FFPQY6.js";
|
|
19
|
-
import "../__chunks/
|
|
19
|
+
import "../__chunks/4YLZ3ZKM.js";
|
|
20
20
|
import "../__chunks/HN2MMSUI.js";
|
|
21
21
|
import "../__chunks/DDUJFFG7.js";
|
|
22
22
|
import "../__chunks/Q7N54CYS.js";
|
|
@@ -5,7 +5,7 @@ import 'react-aria';
|
|
|
5
5
|
|
|
6
6
|
declare const _default: React__default.ForwardRefExoticComponent<RichSelectItemProps & {
|
|
7
7
|
name: string;
|
|
8
|
-
size?: "
|
|
8
|
+
size?: "md" | "sm" | undefined;
|
|
9
9
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
10
10
|
|
|
11
11
|
export { _default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../__chunks/
|
|
6
|
-
require('../__chunks/
|
|
4
|
+
var _XD6YC7HPcjs = require('../__chunks/XD6YC7HP.cjs');
|
|
5
|
+
require('../__chunks/JVGX637E.cjs');
|
|
6
|
+
require('../__chunks/Y2IIT6PV.cjs');
|
|
7
7
|
require('../__chunks/XLUVINJW.cjs');
|
|
8
8
|
require('../__chunks/FESAFV44.cjs');
|
|
9
9
|
require('../__chunks/WFVGNGEP.cjs');
|
|
@@ -18,5 +18,5 @@ require('../__chunks/NOELZTQX.cjs');
|
|
|
18
18
|
require('../__chunks/X2SDR4SD.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
exports.default =
|
|
21
|
+
exports.default = _XD6YC7HPcjs.SelectList;
|
|
22
22
|
//# sourceMappingURL=SelectList.cjs.map
|
|
@@ -52,7 +52,8 @@ declare function SelectList({ children, "data-testid": dataTestId, disabled: dis
|
|
|
52
52
|
selectedValue?: string;
|
|
53
53
|
}): ReactElement;
|
|
54
54
|
declare namespace SelectList {
|
|
55
|
-
var Option: ({ "data-testid": dataTestId, value, label, disabled, }: {
|
|
55
|
+
var Option: ({ "data-testid": dataTestId, value, label, disabled, accessibilityLabel, }: {
|
|
56
|
+
accessibilityLabel?: string | undefined;
|
|
56
57
|
"data-testid"?: string | undefined;
|
|
57
58
|
value: string;
|
|
58
59
|
label: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
SelectList
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/D5RNAJCX.js";
|
|
5
|
+
import "../__chunks/SPQ7DQHG.js";
|
|
6
|
+
import "../__chunks/4YLZ3ZKM.js";
|
|
7
7
|
import "../__chunks/KKADUD65.js";
|
|
8
8
|
import "../__chunks/M36V23WR.js";
|
|
9
9
|
import "../__chunks/4U4UW4AK.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _JVGX637Ecjs = require('../__chunks/JVGX637E.cjs');
|
|
5
5
|
require('../__chunks/X2SDR4SD.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.default =
|
|
8
|
+
exports.default = _JVGX637Ecjs.SelectOption_default;
|
|
9
9
|
//# sourceMappingURL=SelectOption.cjs.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
|
|
3
|
-
declare const SelectOption: ({ "data-testid": dataTestId, value, label, disabled, }: {
|
|
3
|
+
declare const SelectOption: ({ "data-testid": dataTestId, value, label, disabled, accessibilityLabel, }: {
|
|
4
|
+
accessibilityLabel?: string | undefined;
|
|
4
5
|
"data-testid"?: string | undefined;
|
|
5
6
|
value: string;
|
|
6
7
|
label: string;
|
|
@@ -48,7 +48,7 @@ declare const TapArea: React__default.ForwardRefExoticComponent<React__default.A
|
|
|
48
48
|
*
|
|
49
49
|
* @defaultValue "none"
|
|
50
50
|
*/
|
|
51
|
-
rounding?: "
|
|
51
|
+
rounding?: "none" | "md" | "sm" | "full" | undefined;
|
|
52
52
|
/**
|
|
53
53
|
* The tab index of the tap area
|
|
54
54
|
*/
|
|
@@ -12,7 +12,7 @@ declare const Typography: React.ForwardRefExoticComponent<{
|
|
|
12
12
|
*
|
|
13
13
|
* @defaultValue "start"
|
|
14
14
|
*/
|
|
15
|
-
align?: "
|
|
15
|
+
align?: "center" | "end" | "start" | "forceLeft" | "forceRight" | undefined;
|
|
16
16
|
/**
|
|
17
17
|
* DOM element to render as.
|
|
18
18
|
*
|
|
@@ -28,7 +28,7 @@ declare const Typography: React.ForwardRefExoticComponent<{
|
|
|
28
28
|
*
|
|
29
29
|
* @defaultValue "gray900"
|
|
30
30
|
*/
|
|
31
|
-
color?: "gray900" | "
|
|
31
|
+
color?: "gray700" | "gray900" | "white" | "inherit" | "primary" | "destructive-primary" | "destructive-darkBackground" | "success" | "success-darkBackground" | undefined;
|
|
32
32
|
/**
|
|
33
33
|
* Test id for the text
|
|
34
34
|
*/
|
|
@@ -113,7 +113,7 @@ declare const Typography: React.ForwardRefExoticComponent<{
|
|
|
113
113
|
*
|
|
114
114
|
* @defaultValue "regular"
|
|
115
115
|
*/
|
|
116
|
-
weight?: "
|
|
116
|
+
weight?: "bold" | "regular" | "medium" | "semiBold" | undefined;
|
|
117
117
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
118
118
|
|
|
119
119
|
export { Typography as default };
|
|
@@ -19,7 +19,7 @@ var _3UEOKPM2cjs = require('./3UEOKPM2.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _Y2IIT6PVcjs = require('./Y2IIT6PV.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _ZTK7E42Pcjs = require('./ZTK7E42P.cjs');
|
|
@@ -231,7 +231,7 @@ function RichSelectList(props) {
|
|
|
231
231
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
232
232
|
"path",
|
|
233
233
|
{
|
|
234
|
-
fill: errorText ?
|
|
234
|
+
fill: errorText ? _Y2IIT6PVcjs.ColorBaseDestructive700 : _Y2IIT6PVcjs.ColorBaseGray800,
|
|
235
235
|
d: "M15.88 9.29 12 13.17 8.12 9.29a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41-.39-.38-1.03-.39-1.42 0z"
|
|
236
236
|
}
|
|
237
237
|
)
|
|
@@ -266,4 +266,4 @@ var RichSelectList_default = Object.assign(RichSelectList, {
|
|
|
266
266
|
|
|
267
267
|
|
|
268
268
|
exports.RichSelectList_default = RichSelectList_default;
|
|
269
|
-
//# sourceMappingURL=
|
|
269
|
+
//# sourceMappingURL=2CI32K5M.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"sourcesContent":["/**\n * Do not edit directly\n * Generated on Fri, 10 May 2024
|
|
1
|
+
{"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"sourcesContent":["/**\n * Do not edit directly\n * Generated on Fri, 10 May 2024 22:55:16 GMT\n */\n\nexport const ColorBaseBlack = \"#000000\";\nexport const ColorBaseDestructive100 = \"#fef3f5\";\nexport const ColorBaseDestructive200 = \"#fad6de\";\nexport const ColorBaseDestructive300 = \"#f2a2b2\";\nexport const ColorBaseDestructive700 = \"#d32a4b\";\nexport const ColorBaseDestructive800 = \"#81162c\";\nexport const ColorBaseDestructive900 = \"#55101d\";\nexport const ColorBaseGray10 = \"#cbcbcb\"; // Used as the default color for dividers and inner strokes\nexport const ColorBaseGray30 = \"#000000\"; // For IconButton background when on top of an image\nexport const ColorBaseGray60 = \"#000000\"; // Used for icon background in classroom video grid\nexport const ColorBaseGray80 = \"#000000\"; // Used as the background for modals\nexport const ColorBaseGray100 = \"#f7f7f7\";\nexport const ColorBaseGray200 = \"#f0f0f0\"; // Used for light mode backgrounds when showing card content on top\nexport const ColorBaseGray300 = \"#d0d0d0\"; // Used for component outlines, eg: select and textfield\nexport const ColorBaseGray700 = \"#767676\"; // For secondary text in light mode\nexport const ColorBaseGray800 = \"#353535\";\nexport const ColorBaseGray900 = \"#191919\"; // Default text color, Classroom background\nexport const ColorBaseOrange100 = \"#fdf2f0\";\nexport const ColorBaseOrange200 = \"#f6cdc4\";\nexport const ColorBaseOrange300 = \"#ec9987\";\nexport const ColorBaseOrange700 = \"#c34124\";\nexport const ColorBaseOrange800 = \"#732818\";\nexport const ColorBaseOrange900 = \"#4d1a10\";\nexport const ColorBasePrimary100 = \"#eff6fa\";\nexport const ColorBasePrimary200 = \"#c1dbe7\";\nexport const ColorBasePrimary300 = \"#84b7d0\";\nexport const ColorBasePrimary700 = \"#236482\";\nexport const ColorBasePrimary800 = \"#274858\";\nexport const ColorBasePrimary900 = \"#1b303b\";\nexport const ColorBaseSuccess100 = \"#eff7f1\";\nexport const ColorBaseSuccess200 = \"#bddcc6\";\nexport const ColorBaseSuccess300 = \"#81ba92\";\nexport const ColorBaseSuccess700 = \"#397b4d\";\nexport const ColorBaseSuccess800 = \"#2d4936\";\nexport const ColorBaseSuccess900 = \"#1e3124\";\nexport const ColorBasePurple100 = \"#f9f5fa\";\nexport const ColorBasePurple200 = \"#e8dceb\";\nexport const ColorBasePurple300 = \"#cdb4d3\";\nexport const ColorBasePurple700 = \"#8b5f95\";\nexport const ColorBasePurple800 = \"#523b58\";\nexport const ColorBasePurple900 = \"#37273b\";\nexport const ColorBaseYellow100 = \"#fdf5d9\";\nexport const ColorBaseYellow200 = \"#fbe8a3\";\nexport const ColorBaseYellow300 = \"#f8d663\";\nexport const ColorBaseYellow700 = \"#ffc929\";\nexport const ColorBaseYellow800 = \"#765f1c\";\nexport const ColorBaseYellow900 = \"#3b3009\";\nexport const ColorBaseWhite = \"#ffffff\";\nexport const ColorCambioBlack = \"#050500\";\nexport const ColorCambioWhite = \"#ffffff\";\nexport const ColorCambioGray100 = \"#faf4eb\";\nexport const ColorCambioGray200 = \"#e4dbd3\";\nexport const ColorCambioGray300 = \"#beb4ab\";\nexport const ColorCambioGray370 = \"#beb4ab\";\nexport const ColorCambioGray700 = \"#888077\";\nexport const ColorCambioGray800 = \"#5c554d\";\nexport const ColorCambioGray870 = \"#5c554d\";\nexport const ColorCambioGray900 = \"#312b23\";\nexport const ColorCambioDestructive100 = \"#ffdeda\";\nexport const ColorCambioDestructive300 = \"#ff8071\";\nexport const ColorCambioDestructive370 = \"#ff8071\";\nexport const ColorCambioDestructive700 = \"#c93f32\";\nexport const ColorCambioDestructive770 = \"#c93f32\";\nexport const ColorCambioDestructive900 = \"#6d0002\";\nexport const ColorCambioSuccess100 = \"#daf2c8\";\nexport const ColorCambioSuccess300 = \"#84ce64\";\nexport const ColorCambioSuccess370 = \"#84ce64\";\nexport const ColorCambioSuccess700 = \"#3c7f20\";\nexport const ColorCambioSuccess770 = \"#3c7f20\";\nexport const ColorCambioSuccess900 = \"#103e00\";\nexport const ColorCambioRed = \"#f56e56\";\nexport const ColorCambioOrange = \"#ff8f57\";\nexport const ColorCambioTan = \"#ffb47d\";\nexport const ColorCambioCream = \"#fffad1\";\nexport const ColorCambioPurple = \"#6840a8\";\nexport const ColorCambioLilac = \"#b59ef0\";\nexport const ColorCambioThistle = \"#d69ca4\";\nexport const ColorCambioPink = \"#ffccea\";\nexport const ColorCambioNavy = \"#191142\";\nexport const ColorCambioTeal = \"#44a6cf\";\nexport const ColorCambioSlate = \"#7c9fc6\";\nexport const ColorCambioSky = \"#b1e8fc\";\nexport const ColorCambioYellow700 = \"#ffe733\";\nexport const ColorCambioTransparentFull = \"#000000\";\nexport const Elevation400 = \"0px 16px 32px 0px #00000040\";\nexport const SyntaxFontSansSerif = \"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif\";\n"],"mappings":";;;AASO,IAAM,0BAA0B;AAWhC,IAAM,mBAAmB;","names":[]}
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
ColorBaseDestructive700,
|
|
21
21
|
ColorBaseGray800
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./4YLZ3ZKM.js";
|
|
23
23
|
import {
|
|
24
24
|
RichSelectSection_default
|
|
25
25
|
} from "./HN2MMSUI.js";
|
|
@@ -266,4 +266,4 @@ var RichSelectList_default = Object.assign(RichSelectList, {
|
|
|
266
266
|
export {
|
|
267
267
|
RichSelectList_default
|
|
268
268
|
};
|
|
269
|
-
//# sourceMappingURL=
|
|
269
|
+
//# sourceMappingURL=AANQ5GIN.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
SelectOption_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./SPQ7DQHG.js";
|
|
5
5
|
import {
|
|
6
6
|
ColorBaseDestructive700,
|
|
7
7
|
ColorBaseGray800
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./4YLZ3ZKM.js";
|
|
9
9
|
import {
|
|
10
10
|
Focus_module_default
|
|
11
11
|
} from "./KKADUD65.js";
|
|
@@ -122,4 +122,4 @@ SelectList.Option = SelectOption_default;
|
|
|
122
122
|
export {
|
|
123
123
|
SelectList
|
|
124
124
|
};
|
|
125
|
-
//# sourceMappingURL=
|
|
125
|
+
//# sourceMappingURL=D5RNAJCX.js.map
|
|
@@ -6,11 +6,21 @@ var SelectOption = ({
|
|
|
6
6
|
"data-testid": dataTestId,
|
|
7
7
|
value,
|
|
8
8
|
label,
|
|
9
|
-
disabled = false
|
|
10
|
-
|
|
9
|
+
disabled = false,
|
|
10
|
+
accessibilityLabel
|
|
11
|
+
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12
|
+
"option",
|
|
13
|
+
{
|
|
14
|
+
"aria-label": accessibilityLabel,
|
|
15
|
+
"data-testid": dataTestId,
|
|
16
|
+
value,
|
|
17
|
+
disabled,
|
|
18
|
+
children: label
|
|
19
|
+
}
|
|
20
|
+
);
|
|
11
21
|
var SelectOption_default = SelectOption;
|
|
12
22
|
|
|
13
23
|
|
|
14
24
|
|
|
15
25
|
exports.SelectOption_default = SelectOption_default;
|
|
16
|
-
//# sourceMappingURL=
|
|
26
|
+
//# sourceMappingURL=JVGX637E.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/SelectList/SelectOption.tsx"],"names":[],"mappings":";;;AAeE;AAbF,IAAM,eAAe,CAAC;AAAA,EACpB,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA,WAAW;AAAA,EACX;AACF,MAOE;AAAA,EAAC;AAAA;AAAA,IACC,cAAY;AAAA,IACZ,eAAa;AAAA,IACb;AAAA,IACA;AAAA,IAEC;AAAA;AACH;AAGF,IAAO,uBAAQ","sourcesContent":["import React, { type ReactElement } from \"react\";\n\nconst SelectOption = ({\n \"data-testid\": dataTestId,\n value,\n label,\n disabled = false,\n accessibilityLabel,\n}: {\n accessibilityLabel?: string;\n \"data-testid\"?: string;\n value: string;\n label: string;\n disabled?: boolean;\n}): ReactElement => (\n <option\n aria-label={accessibilityLabel}\n data-testid={dataTestId}\n value={value}\n disabled={disabled}\n >\n {label}\n </option>\n);\n\nexport default SelectOption;\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
// src/SelectList/SelectOption.tsx
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
var SelectOption = ({
|
|
6
|
+
"data-testid": dataTestId,
|
|
7
|
+
value,
|
|
8
|
+
label,
|
|
9
|
+
disabled = false,
|
|
10
|
+
accessibilityLabel
|
|
11
|
+
}) => /* @__PURE__ */ jsx(
|
|
12
|
+
"option",
|
|
13
|
+
{
|
|
14
|
+
"aria-label": accessibilityLabel,
|
|
15
|
+
"data-testid": dataTestId,
|
|
16
|
+
value,
|
|
17
|
+
disabled,
|
|
18
|
+
children: label
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
var SelectOption_default = SelectOption;
|
|
22
|
+
|
|
23
|
+
export {
|
|
24
|
+
SelectOption_default
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=SPQ7DQHG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/SelectList/SelectOption.tsx"],"sourcesContent":["import React, { type ReactElement } from \"react\";\n\nconst SelectOption = ({\n \"data-testid\": dataTestId,\n value,\n label,\n disabled = false,\n accessibilityLabel,\n}: {\n accessibilityLabel?: string;\n \"data-testid\"?: string;\n value: string;\n label: string;\n disabled?: boolean;\n}): ReactElement => (\n <option\n aria-label={accessibilityLabel}\n data-testid={dataTestId}\n value={value}\n disabled={disabled}\n >\n {label}\n </option>\n);\n\nexport default SelectOption;\n"],"mappings":";;;AAeE;AAbF,IAAM,eAAe,CAAC;AAAA,EACpB,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA,WAAW;AAAA,EACX;AACF,MAOE;AAAA,EAAC;AAAA;AAAA,IACC,cAAY;AAAA,IACZ,eAAa;AAAA,IACb;AAAA,IACA;AAAA,IAEC;AAAA;AACH;AAGF,IAAO,uBAAQ;","names":[]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _JVGX637Ecjs = require('./JVGX637E.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _Y2IIT6PVcjs = require('./Y2IIT6PV.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _XLUVINJWcjs = require('./XLUVINJW.cjs');
|
|
@@ -98,7 +98,7 @@ function SelectList({
|
|
|
98
98
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
99
99
|
"path",
|
|
100
100
|
{
|
|
101
|
-
fill: errorText ?
|
|
101
|
+
fill: errorText ? _Y2IIT6PVcjs.ColorBaseDestructive700 : _Y2IIT6PVcjs.ColorBaseGray800,
|
|
102
102
|
d: "M15.88 9.29 12 13.17 8.12 9.29a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41-.39-.38-1.03-.39-1.42 0z"
|
|
103
103
|
}
|
|
104
104
|
)
|
|
@@ -117,9 +117,9 @@ function SelectList({
|
|
|
117
117
|
}
|
|
118
118
|
);
|
|
119
119
|
}
|
|
120
|
-
SelectList.Option =
|
|
120
|
+
SelectList.Option = _JVGX637Ecjs.SelectOption_default;
|
|
121
121
|
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
exports.SelectList = SelectList;
|
|
125
|
-
//# sourceMappingURL=
|
|
125
|
+
//# sourceMappingURL=XD6YC7HP.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"names":[],"mappings":";;;AASO,IAAM,0BAA0B;AAWhC,IAAM,mBAAmB","sourcesContent":["/**\n * Do not edit directly\n * Generated on Fri, 10 May 2024
|
|
1
|
+
{"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"names":[],"mappings":";;;AASO,IAAM,0BAA0B;AAWhC,IAAM,mBAAmB","sourcesContent":["/**\n * Do not edit directly\n * Generated on Fri, 10 May 2024 22:55:16 GMT\n */\n\nexport const ColorBaseBlack = \"#000000\";\nexport const ColorBaseDestructive100 = \"#fef3f5\";\nexport const ColorBaseDestructive200 = \"#fad6de\";\nexport const ColorBaseDestructive300 = \"#f2a2b2\";\nexport const ColorBaseDestructive700 = \"#d32a4b\";\nexport const ColorBaseDestructive800 = \"#81162c\";\nexport const ColorBaseDestructive900 = \"#55101d\";\nexport const ColorBaseGray10 = \"#cbcbcb\"; // Used as the default color for dividers and inner strokes\nexport const ColorBaseGray30 = \"#000000\"; // For IconButton background when on top of an image\nexport const ColorBaseGray60 = \"#000000\"; // Used for icon background in classroom video grid\nexport const ColorBaseGray80 = \"#000000\"; // Used as the background for modals\nexport const ColorBaseGray100 = \"#f7f7f7\";\nexport const ColorBaseGray200 = \"#f0f0f0\"; // Used for light mode backgrounds when showing card content on top\nexport const ColorBaseGray300 = \"#d0d0d0\"; // Used for component outlines, eg: select and textfield\nexport const ColorBaseGray700 = \"#767676\"; // For secondary text in light mode\nexport const ColorBaseGray800 = \"#353535\";\nexport const ColorBaseGray900 = \"#191919\"; // Default text color, Classroom background\nexport const ColorBaseOrange100 = \"#fdf2f0\";\nexport const ColorBaseOrange200 = \"#f6cdc4\";\nexport const ColorBaseOrange300 = \"#ec9987\";\nexport const ColorBaseOrange700 = \"#c34124\";\nexport const ColorBaseOrange800 = \"#732818\";\nexport const ColorBaseOrange900 = \"#4d1a10\";\nexport const ColorBasePrimary100 = \"#eff6fa\";\nexport const ColorBasePrimary200 = \"#c1dbe7\";\nexport const ColorBasePrimary300 = \"#84b7d0\";\nexport const ColorBasePrimary700 = \"#236482\";\nexport const ColorBasePrimary800 = \"#274858\";\nexport const ColorBasePrimary900 = \"#1b303b\";\nexport const ColorBaseSuccess100 = \"#eff7f1\";\nexport const ColorBaseSuccess200 = \"#bddcc6\";\nexport const ColorBaseSuccess300 = \"#81ba92\";\nexport const ColorBaseSuccess700 = \"#397b4d\";\nexport const ColorBaseSuccess800 = \"#2d4936\";\nexport const ColorBaseSuccess900 = \"#1e3124\";\nexport const ColorBasePurple100 = \"#f9f5fa\";\nexport const ColorBasePurple200 = \"#e8dceb\";\nexport const ColorBasePurple300 = \"#cdb4d3\";\nexport const ColorBasePurple700 = \"#8b5f95\";\nexport const ColorBasePurple800 = \"#523b58\";\nexport const ColorBasePurple900 = \"#37273b\";\nexport const ColorBaseYellow100 = \"#fdf5d9\";\nexport const ColorBaseYellow200 = \"#fbe8a3\";\nexport const ColorBaseYellow300 = \"#f8d663\";\nexport const ColorBaseYellow700 = \"#ffc929\";\nexport const ColorBaseYellow800 = \"#765f1c\";\nexport const ColorBaseYellow900 = \"#3b3009\";\nexport const ColorBaseWhite = \"#ffffff\";\nexport const ColorCambioBlack = \"#050500\";\nexport const ColorCambioWhite = \"#ffffff\";\nexport const ColorCambioGray100 = \"#faf4eb\";\nexport const ColorCambioGray200 = \"#e4dbd3\";\nexport const ColorCambioGray300 = \"#beb4ab\";\nexport const ColorCambioGray370 = \"#beb4ab\";\nexport const ColorCambioGray700 = \"#888077\";\nexport const ColorCambioGray800 = \"#5c554d\";\nexport const ColorCambioGray870 = \"#5c554d\";\nexport const ColorCambioGray900 = \"#312b23\";\nexport const ColorCambioDestructive100 = \"#ffdeda\";\nexport const ColorCambioDestructive300 = \"#ff8071\";\nexport const ColorCambioDestructive370 = \"#ff8071\";\nexport const ColorCambioDestructive700 = \"#c93f32\";\nexport const ColorCambioDestructive770 = \"#c93f32\";\nexport const ColorCambioDestructive900 = \"#6d0002\";\nexport const ColorCambioSuccess100 = \"#daf2c8\";\nexport const ColorCambioSuccess300 = \"#84ce64\";\nexport const ColorCambioSuccess370 = \"#84ce64\";\nexport const ColorCambioSuccess700 = \"#3c7f20\";\nexport const ColorCambioSuccess770 = \"#3c7f20\";\nexport const ColorCambioSuccess900 = \"#103e00\";\nexport const ColorCambioRed = \"#f56e56\";\nexport const ColorCambioOrange = \"#ff8f57\";\nexport const ColorCambioTan = \"#ffb47d\";\nexport const ColorCambioCream = \"#fffad1\";\nexport const ColorCambioPurple = \"#6840a8\";\nexport const ColorCambioLilac = \"#b59ef0\";\nexport const ColorCambioThistle = \"#d69ca4\";\nexport const ColorCambioPink = \"#ffccea\";\nexport const ColorCambioNavy = \"#191142\";\nexport const ColorCambioTeal = \"#44a6cf\";\nexport const ColorCambioSlate = \"#7c9fc6\";\nexport const ColorCambioSky = \"#b1e8fc\";\nexport const ColorCambioYellow700 = \"#ffe733\";\nexport const ColorCambioTransparentFull = \"#000000\";\nexport const Elevation400 = \"0px 16px 32px 0px #00000040\";\nexport const SyntaxFontSansSerif = \"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif\";\n"]}
|
package/dist/index.cjs
CHANGED
|
@@ -38,11 +38,11 @@ var _T5NFBPT6cjs = require('./__chunks/T5NFBPT6.cjs');
|
|
|
38
38
|
require('./__chunks/WFVGNGEP.cjs');
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
42
|
-
require('./__chunks/
|
|
41
|
+
var _XD6YC7HPcjs = require('./__chunks/XD6YC7HP.cjs');
|
|
42
|
+
require('./__chunks/JVGX637E.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
var
|
|
45
|
+
var _2CI32K5Mcjs = require('./__chunks/2CI32K5M.cjs');
|
|
46
46
|
require('./__chunks/RKDIXZZU.cjs');
|
|
47
47
|
|
|
48
48
|
|
|
@@ -71,7 +71,7 @@ var _63XQSPT7cjs = require('./__chunks/63XQSPT7.cjs');
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
var _3UEOKPM2cjs = require('./__chunks/3UEOKPM2.cjs');
|
|
74
|
-
require('./__chunks/
|
|
74
|
+
require('./__chunks/Y2IIT6PV.cjs');
|
|
75
75
|
require('./__chunks/ZTK7E42P.cjs');
|
|
76
76
|
require('./__chunks/MF7LLV7V.cjs');
|
|
77
77
|
require('./__chunks/6ER23PG5.cjs');
|
|
@@ -137,5 +137,5 @@ require('./__chunks/X2SDR4SD.cjs');
|
|
|
137
137
|
|
|
138
138
|
|
|
139
139
|
|
|
140
|
-
exports.Avatar = _JRTUP3VPcjs.Avatar_default; exports.AvatarGroup = _CHOHIFJNcjs.AvatarGroup; exports.Badge = _CQQJROZEcjs.Badge_default; exports.Box = _FESAFV44cjs.Box_default; exports.Button = _S2VK4XNLcjs.Button_default; exports.ButtonGroup = _C5XPZTFOcjs.ButtonGroup_default; exports.Card = _D5AQ3PGBcjs.Card; exports.Checkbox = _K6VWXB7Mcjs.Checkbox_default; exports.Chip = _SFZ2MHPAcjs.Chip_default; exports.Divider = _DMA6PPUZcjs.Divider; exports.Heading = _2OJKC2AXcjs.Heading_default; exports.Icon = _XMKQJFU6cjs.Icon_default; exports.IconButton = _63XQSPT7cjs.IconButton_default; exports.LinkButton = _W45CFJI7cjs.LinkButton_default; exports.Modal = _HK7T4244cjs.Modal; exports.Popover = _ELEREGBWcjs.Popover_default; exports.RadioButton = _YIDLOSTDcjs.RadioButton_default; exports.RichSelectList =
|
|
140
|
+
exports.Avatar = _JRTUP3VPcjs.Avatar_default; exports.AvatarGroup = _CHOHIFJNcjs.AvatarGroup; exports.Badge = _CQQJROZEcjs.Badge_default; exports.Box = _FESAFV44cjs.Box_default; exports.Button = _S2VK4XNLcjs.Button_default; exports.ButtonGroup = _C5XPZTFOcjs.ButtonGroup_default; exports.Card = _D5AQ3PGBcjs.Card; exports.Checkbox = _K6VWXB7Mcjs.Checkbox_default; exports.Chip = _SFZ2MHPAcjs.Chip_default; exports.Divider = _DMA6PPUZcjs.Divider; exports.Heading = _2OJKC2AXcjs.Heading_default; exports.Icon = _XMKQJFU6cjs.Icon_default; exports.IconButton = _63XQSPT7cjs.IconButton_default; exports.LinkButton = _W45CFJI7cjs.LinkButton_default; exports.Modal = _HK7T4244cjs.Modal; exports.Popover = _ELEREGBWcjs.Popover_default; exports.RadioButton = _YIDLOSTDcjs.RadioButton_default; exports.RichSelectList = _2CI32K5Mcjs.RichSelectList_default; exports.SelectList = _XD6YC7HPcjs.SelectList; exports.TapArea = _3UEOKPM2cjs.TapArea_default; exports.TextArea = _T5NFBPT6cjs.TextArea_default; exports.TextField = _7X4KKISPcjs.TextField; exports.ThemeProvider = _ASFZDRJJcjs.ThemeProvider; exports.Tooltip = _7FYS3TSRcjs.Tooltip_default; exports.Typography = _GUACYIXBcjs.Typography_default;
|
|
141
141
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -38,11 +38,11 @@ import {
|
|
|
38
38
|
import "./__chunks/4U4UW4AK.js";
|
|
39
39
|
import {
|
|
40
40
|
SelectList
|
|
41
|
-
} from "./__chunks/
|
|
42
|
-
import "./__chunks/
|
|
41
|
+
} from "./__chunks/D5RNAJCX.js";
|
|
42
|
+
import "./__chunks/SPQ7DQHG.js";
|
|
43
43
|
import {
|
|
44
44
|
RichSelectList_default
|
|
45
|
-
} from "./__chunks/
|
|
45
|
+
} from "./__chunks/AANQ5GIN.js";
|
|
46
46
|
import "./__chunks/DJL67KQ3.js";
|
|
47
47
|
import {
|
|
48
48
|
ButtonGroup_default
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
import {
|
|
72
72
|
TapArea_default
|
|
73
73
|
} from "./__chunks/77FFPQY6.js";
|
|
74
|
-
import "./__chunks/
|
|
74
|
+
import "./__chunks/4YLZ3ZKM.js";
|
|
75
75
|
import "./__chunks/HN2MMSUI.js";
|
|
76
76
|
import "./__chunks/DDUJFFG7.js";
|
|
77
77
|
import "./__chunks/Q7N54CYS.js";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/SelectList/SelectOption.tsx"],"names":[],"mappings":";;;AAaE;AAXF,IAAM,eAAe,CAAC;AAAA,EACpB,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA,WAAW;AACb,MAME,oBAAC,YAAO,eAAa,YAAY,OAAc,UAC5C,iBACH;AAGF,IAAO,uBAAQ","sourcesContent":["import React, { type ReactElement } from \"react\";\n\nconst SelectOption = ({\n \"data-testid\": dataTestId,\n value,\n label,\n disabled = false,\n}: {\n \"data-testid\"?: string;\n value: string;\n label: string;\n disabled?: boolean;\n}): ReactElement => (\n <option data-testid={dataTestId} value={value} disabled={disabled}>\n {label}\n </option>\n);\n\nexport default SelectOption;\n"]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
// src/SelectList/SelectOption.tsx
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
var SelectOption = ({
|
|
6
|
-
"data-testid": dataTestId,
|
|
7
|
-
value,
|
|
8
|
-
label,
|
|
9
|
-
disabled = false
|
|
10
|
-
}) => /* @__PURE__ */ jsx("option", { "data-testid": dataTestId, value, disabled, children: label });
|
|
11
|
-
var SelectOption_default = SelectOption;
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
SelectOption_default
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=Y47XTR6M.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/SelectList/SelectOption.tsx"],"sourcesContent":["import React, { type ReactElement } from \"react\";\n\nconst SelectOption = ({\n \"data-testid\": dataTestId,\n value,\n label,\n disabled = false,\n}: {\n \"data-testid\"?: string;\n value: string;\n label: string;\n disabled?: boolean;\n}): ReactElement => (\n <option data-testid={dataTestId} value={value} disabled={disabled}>\n {label}\n </option>\n);\n\nexport default SelectOption;\n"],"mappings":";;;AAaE;AAXF,IAAM,eAAe,CAAC;AAAA,EACpB,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA,WAAW;AACb,MAME,oBAAC,YAAO,eAAa,YAAY,OAAc,UAC5C,iBACH;AAGF,IAAO,uBAAQ;","names":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|