@cambly/syntax-core 12.5.0 → 12.7.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.cjs +2 -2
- package/dist/Checkbox/Checkbox.d.ts +8 -2
- package/dist/Checkbox/Checkbox.js +1 -1
- package/dist/Heading/Heading.d.ts +2 -2
- package/dist/RadioButton/RadioButton.cjs +2 -2
- package/dist/RadioButton/RadioButton.d.ts +8 -2
- package/dist/RadioButton/RadioButton.js +1 -1
- package/dist/RichSelect/RichSelectBox.cjs +4 -4
- package/dist/RichSelect/RichSelectBox.d.ts +1 -1
- package/dist/RichSelect/RichSelectBox.js +3 -3
- package/dist/RichSelect/RichSelectList.cjs +6 -6
- package/dist/RichSelect/RichSelectList.d.ts +1 -1
- package/dist/RichSelect/RichSelectList.js +5 -5
- package/dist/RichSelect/RichSelectRadioButton.cjs +3 -3
- package/dist/RichSelect/RichSelectRadioButton.d.ts +1 -1
- package/dist/RichSelect/RichSelectRadioButton.js +2 -2
- 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/{X747TBQO.js → 3CCYFL3K.js} +1 -1
- package/dist/__chunks/{X747TBQO.js.map → 3CCYFL3K.js.map} +1 -1
- package/dist/__chunks/{TLJEXAPK.cjs → 6P4IEVBL.cjs} +10 -10
- package/dist/__chunks/{6ER23PG5.cjs → 7FBJ7XRE.cjs} +3 -3
- package/dist/__chunks/{Q7N54CYS.js → BU3EYSKD.js} +2 -2
- package/dist/__chunks/{4SYTZR75.js → DR35U5KW.js} +4 -2
- package/dist/__chunks/DR35U5KW.js.map +1 -0
- package/dist/__chunks/{K6VWXB7M.cjs → HFWEVQNS.cjs} +4 -2
- package/dist/__chunks/HFWEVQNS.cjs.map +1 -0
- package/dist/__chunks/{RKDIXZZU.cjs → HN4N2HE2.cjs} +3 -3
- package/dist/__chunks/{4UJE5GMH.cjs → JVGX637E.cjs} +13 -3
- package/dist/__chunks/JVGX637E.cjs.map +1 -0
- package/dist/__chunks/{YIDLOSTD.cjs → JW7TVUPB.cjs} +4 -2
- package/dist/__chunks/JW7TVUPB.cjs.map +1 -0
- package/dist/__chunks/{ZOLQZLRM.js → KKIY6JSO.js} +4 -4
- package/dist/__chunks/{DJL67KQ3.js → OQKBWMZ4.js} +2 -2
- package/dist/__chunks/{JDGT2NSB.cjs → PKQXVJ75.cjs} +1 -1
- package/dist/__chunks/{JDGT2NSB.cjs.map → PKQXVJ75.cjs.map} +1 -1
- package/dist/__chunks/{JEGPGWID.js → QSHXZ5FW.js} +3 -3
- package/dist/__chunks/SPQ7DQHG.js +26 -0
- package/dist/__chunks/SPQ7DQHG.js.map +1 -0
- package/dist/__chunks/{62PHRDGW.js → TVR4TJKV.js} +4 -2
- package/dist/__chunks/TVR4TJKV.js.map +1 -0
- package/dist/__chunks/{3Z5JQV7Q.cjs → XTVQVBUR.cjs} +5 -5
- package/dist/index.cjs +9 -9
- package/dist/index.js +8 -8
- package/package.json +1 -1
- package/dist/__chunks/4SYTZR75.js.map +0 -1
- package/dist/__chunks/4UJE5GMH.cjs.map +0 -1
- package/dist/__chunks/62PHRDGW.js.map +0 -1
- package/dist/__chunks/K6VWXB7M.cjs.map +0 -1
- package/dist/__chunks/Y47XTR6M.js +0 -16
- package/dist/__chunks/Y47XTR6M.js.map +0 -1
- package/dist/__chunks/YIDLOSTD.cjs.map +0 -1
- /package/dist/__chunks/{TLJEXAPK.cjs.map → 6P4IEVBL.cjs.map} +0 -0
- /package/dist/__chunks/{6ER23PG5.cjs.map → 7FBJ7XRE.cjs.map} +0 -0
- /package/dist/__chunks/{Q7N54CYS.js.map → BU3EYSKD.js.map} +0 -0
- /package/dist/__chunks/{RKDIXZZU.cjs.map → HN4N2HE2.cjs.map} +0 -0
- /package/dist/__chunks/{ZOLQZLRM.js.map → KKIY6JSO.js.map} +0 -0
- /package/dist/__chunks/{DJL67KQ3.js.map → OQKBWMZ4.js.map} +0 -0
- /package/dist/__chunks/{JEGPGWID.js.map → QSHXZ5FW.js.map} +0 -0
- /package/dist/__chunks/{3Z5JQV7Q.cjs.map → XTVQVBUR.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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _HFWEVQNScjs = require('../__chunks/HFWEVQNS.cjs');
|
|
5
5
|
require('../__chunks/XLUVINJW.cjs');
|
|
6
6
|
require('../__chunks/GUACYIXB.cjs');
|
|
7
7
|
require('../__chunks/72UQX6IX.cjs');
|
|
@@ -12,5 +12,5 @@ require('../__chunks/NOELZTQX.cjs');
|
|
|
12
12
|
require('../__chunks/X2SDR4SD.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
exports.default =
|
|
15
|
+
exports.default = _HFWEVQNScjs.Checkbox_default;
|
|
16
16
|
//# sourceMappingURL=Checkbox.cjs.map
|
|
@@ -3,7 +3,7 @@ import React__default, { ReactElement } from 'react';
|
|
|
3
3
|
/**
|
|
4
4
|
* [Checkbox](https://cambly-syntax.vercel.app/?path=/docs/components-checkbox--docs) is a clickable element that will show if an option has been selected or not.
|
|
5
5
|
*/
|
|
6
|
-
declare const Checkbox: ({ checked, "data-testid": dataTestId, disabled: disabledProp, size, label, error, onChange, }: {
|
|
6
|
+
declare const Checkbox: ({ checked, "data-testid": dataTestId, disabled: disabledProp, size, label, error, onChange, "aria-describedby": ariaDescribedby, }: {
|
|
7
7
|
/**
|
|
8
8
|
* Whether or not the box has been clicked
|
|
9
9
|
*
|
|
@@ -32,7 +32,7 @@ declare const Checkbox: ({ checked, "data-testid": dataTestId, disabled: disable
|
|
|
32
32
|
*
|
|
33
33
|
* @defaultValue "md"
|
|
34
34
|
*/
|
|
35
|
-
size?: "
|
|
35
|
+
size?: "md" | "sm" | undefined;
|
|
36
36
|
/**
|
|
37
37
|
* The text accompanying the checkbox
|
|
38
38
|
*/
|
|
@@ -43,6 +43,12 @@ declare const Checkbox: ({ checked, "data-testid": dataTestId, disabled: disable
|
|
|
43
43
|
* @defaultValue false
|
|
44
44
|
*/
|
|
45
45
|
error?: boolean | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* The aria-describedby attribute for the checkbox. This aria- prop identifies the element that describes the element on which the attribute is set.
|
|
48
|
+
*
|
|
49
|
+
* @defaultValue undefined
|
|
50
|
+
*/
|
|
51
|
+
"aria-describedby"?: string | undefined;
|
|
46
52
|
}) => ReactElement;
|
|
47
53
|
|
|
48
54
|
export { Checkbox 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
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _JW7TVUPBcjs = require('../__chunks/JW7TVUPB.cjs');
|
|
5
5
|
require('../__chunks/XLUVINJW.cjs');
|
|
6
6
|
require('../__chunks/FESAFV44.cjs');
|
|
7
7
|
require('../__chunks/WFVGNGEP.cjs');
|
|
@@ -16,5 +16,5 @@ require('../__chunks/NOELZTQX.cjs');
|
|
|
16
16
|
require('../__chunks/X2SDR4SD.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
exports.default =
|
|
19
|
+
exports.default = _JW7TVUPBcjs.RadioButton_default;
|
|
20
20
|
//# sourceMappingURL=RadioButton.cjs.map
|
|
@@ -3,7 +3,7 @@ import React__default, { ReactElement } from 'react';
|
|
|
3
3
|
/**
|
|
4
4
|
* [RadioButton](https://cambly-syntax.vercel.app/?path=/docs/components-radiobutton--docs) is a radio button with accompanying text
|
|
5
5
|
*/
|
|
6
|
-
declare const RadioButton: ({ checked, "data-testid": dataTestId, dangerouslyForceFocusStyles, disabled: disabledProp, error, id, label, name, onChange, size, value, }: {
|
|
6
|
+
declare const RadioButton: ({ checked, "data-testid": dataTestId, dangerouslyForceFocusStyles, disabled: disabledProp, error, id, label, name, onChange, size, value, "aria-describedby": ariaDescribedby, }: {
|
|
7
7
|
/**
|
|
8
8
|
* Whether or not the radio button is checked
|
|
9
9
|
*
|
|
@@ -50,13 +50,19 @@ declare const RadioButton: ({ checked, "data-testid": dataTestId, dangerouslyFor
|
|
|
50
50
|
*
|
|
51
51
|
* @defaultValue "md"
|
|
52
52
|
*/
|
|
53
|
-
size?: "
|
|
53
|
+
size?: "md" | "sm" | undefined;
|
|
54
54
|
/**
|
|
55
55
|
* Value of the selected radio option
|
|
56
56
|
*/
|
|
57
57
|
value: string | number;
|
|
58
58
|
/** forces focus ring styling */
|
|
59
59
|
dangerouslyForceFocusStyles?: boolean | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* The aria-describedby attribute for the RadioButton. This aria- prop identifies the element that describes the element on which the attribute is set.
|
|
62
|
+
*
|
|
63
|
+
* @defaultValue undefined
|
|
64
|
+
*/
|
|
65
|
+
"aria-describedby"?: string | undefined;
|
|
60
66
|
}) => ReactElement;
|
|
61
67
|
|
|
62
68
|
export { RadioButton as default };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _HN4N2HE2cjs = require('../__chunks/HN4N2HE2.cjs');
|
|
7
7
|
require('../__chunks/C5XPZTFO.cjs');
|
|
8
8
|
require('../__chunks/S2VK4XNL.cjs');
|
|
9
9
|
require('../__chunks/5JUNB754.cjs');
|
|
@@ -14,9 +14,9 @@ require('../__chunks/ID2WKUNH.cjs');
|
|
|
14
14
|
require('../__chunks/SFZ2MHPA.cjs');
|
|
15
15
|
require('../__chunks/ZTK7E42P.cjs');
|
|
16
16
|
require('../__chunks/MF7LLV7V.cjs');
|
|
17
|
-
require('../__chunks/
|
|
17
|
+
require('../__chunks/7FBJ7XRE.cjs');
|
|
18
18
|
require('../__chunks/RYUXG4AS.cjs');
|
|
19
|
-
require('../__chunks/
|
|
19
|
+
require('../__chunks/JW7TVUPB.cjs');
|
|
20
20
|
require('../__chunks/XLUVINJW.cjs');
|
|
21
21
|
require('../__chunks/FESAFV44.cjs');
|
|
22
22
|
require('../__chunks/MKZONAGT.cjs');
|
|
@@ -38,5 +38,5 @@ require('../__chunks/X2SDR4SD.cjs');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
exports.RichSelectBoxContext =
|
|
41
|
+
exports.RichSelectBoxContext = _HN4N2HE2cjs.RichSelectBoxContext; exports.convertSelection = _HN4N2HE2cjs.convertSelection; exports.default = _HN4N2HE2cjs.RichSelectBox_default;
|
|
42
42
|
//# sourceMappingURL=RichSelectBox.cjs.map
|
|
@@ -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
|
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
RichSelectBoxContext,
|
|
4
4
|
RichSelectBox_default,
|
|
5
5
|
convertSelection
|
|
6
|
-
} from "../__chunks/
|
|
6
|
+
} from "../__chunks/OQKBWMZ4.js";
|
|
7
7
|
import "../__chunks/BOX3VY3Q.js";
|
|
8
8
|
import "../__chunks/7EM2GOIC.js";
|
|
9
9
|
import "../__chunks/Z5ZUAP2B.js";
|
|
@@ -14,9 +14,9 @@ import "../__chunks/TQ7D5O7L.js";
|
|
|
14
14
|
import "../__chunks/Q6657TAT.js";
|
|
15
15
|
import "../__chunks/HN2MMSUI.js";
|
|
16
16
|
import "../__chunks/DDUJFFG7.js";
|
|
17
|
-
import "../__chunks/
|
|
17
|
+
import "../__chunks/BU3EYSKD.js";
|
|
18
18
|
import "../__chunks/ODMJANSX.js";
|
|
19
|
-
import "../__chunks/
|
|
19
|
+
import "../__chunks/DR35U5KW.js";
|
|
20
20
|
import "../__chunks/KKADUD65.js";
|
|
21
21
|
import "../__chunks/M36V23WR.js";
|
|
22
22
|
import "../__chunks/UVQS6LU3.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../__chunks/
|
|
4
|
+
var _6P4IEVBLcjs = require('../__chunks/6P4IEVBL.cjs');
|
|
5
|
+
require('../__chunks/HN4N2HE2.cjs');
|
|
6
6
|
require('../__chunks/C5XPZTFO.cjs');
|
|
7
7
|
require('../__chunks/S2VK4XNL.cjs');
|
|
8
8
|
require('../__chunks/5JUNB754.cjs');
|
|
@@ -16,12 +16,12 @@ 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/PKQXVJ75.cjs');
|
|
20
20
|
require('../__chunks/ZTK7E42P.cjs');
|
|
21
21
|
require('../__chunks/MF7LLV7V.cjs');
|
|
22
|
-
require('../__chunks/
|
|
22
|
+
require('../__chunks/7FBJ7XRE.cjs');
|
|
23
23
|
require('../__chunks/RYUXG4AS.cjs');
|
|
24
|
-
require('../__chunks/
|
|
24
|
+
require('../__chunks/JW7TVUPB.cjs');
|
|
25
25
|
require('../__chunks/XLUVINJW.cjs');
|
|
26
26
|
require('../__chunks/FESAFV44.cjs');
|
|
27
27
|
require('../__chunks/MKZONAGT.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 = _6P4IEVBLcjs.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,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
RichSelectList_default
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/KKIY6JSO.js";
|
|
5
|
+
import "../__chunks/OQKBWMZ4.js";
|
|
6
6
|
import "../__chunks/BOX3VY3Q.js";
|
|
7
7
|
import "../__chunks/7EM2GOIC.js";
|
|
8
8
|
import "../__chunks/Z5ZUAP2B.js";
|
|
@@ -16,12 +16,12 @@ 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/3CCYFL3K.js";
|
|
20
20
|
import "../__chunks/HN2MMSUI.js";
|
|
21
21
|
import "../__chunks/DDUJFFG7.js";
|
|
22
|
-
import "../__chunks/
|
|
22
|
+
import "../__chunks/BU3EYSKD.js";
|
|
23
23
|
import "../__chunks/ODMJANSX.js";
|
|
24
|
-
import "../__chunks/
|
|
24
|
+
import "../__chunks/DR35U5KW.js";
|
|
25
25
|
import "../__chunks/KKADUD65.js";
|
|
26
26
|
import "../__chunks/M36V23WR.js";
|
|
27
27
|
import "../__chunks/UVQS6LU3.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 _7FBJ7XREcjs = require('../__chunks/7FBJ7XRE.cjs');
|
|
5
5
|
require('../__chunks/RYUXG4AS.cjs');
|
|
6
|
-
require('../__chunks/
|
|
6
|
+
require('../__chunks/JW7TVUPB.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 = _7FBJ7XREcjs.RichSelectRadioButton_default;
|
|
22
22
|
//# sourceMappingURL=RichSelectRadioButton.cjs.map
|
|
@@ -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 client"
|
|
2
2
|
import {
|
|
3
3
|
RichSelectRadioButton_default
|
|
4
|
-
} from "../__chunks/
|
|
4
|
+
} from "../__chunks/BU3EYSKD.js";
|
|
5
5
|
import "../__chunks/ODMJANSX.js";
|
|
6
|
-
import "../__chunks/
|
|
6
|
+
import "../__chunks/DR35U5KW.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
|
|
5
|
-
require('../__chunks/
|
|
6
|
-
require('../__chunks/
|
|
4
|
+
var _XTVQVBURcjs = require('../__chunks/XTVQVBUR.cjs');
|
|
5
|
+
require('../__chunks/JVGX637E.cjs');
|
|
6
|
+
require('../__chunks/PKQXVJ75.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 = _XTVQVBURcjs.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/QSHXZ5FW.js";
|
|
5
|
+
import "../__chunks/SPQ7DQHG.js";
|
|
6
|
+
import "../__chunks/3CCYFL3K.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 };
|
|
@@ -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, 13 May 2024 22:51:32 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":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _HN4N2HE2cjs = require('./HN4N2HE2.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _ID2WKUNHcjs = require('./ID2WKUNH.cjs');
|
|
@@ -19,13 +19,13 @@ var _3UEOKPM2cjs = require('./3UEOKPM2.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _PKQXVJ75cjs = require('./PKQXVJ75.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _ZTK7E42Pcjs = require('./ZTK7E42P.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _7FBJ7XREcjs = require('./7FBJ7XRE.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
var _FESAFV44cjs = require('./FESAFV44.cjs');
|
|
@@ -100,11 +100,11 @@ function RichSelectList(props) {
|
|
|
100
100
|
const disabled = !isHydrated || disabledProp;
|
|
101
101
|
const overlayHandlerRef = _react.useRef.call(void 0, {});
|
|
102
102
|
const selectedKeysProp = _react.useMemo.call(void 0,
|
|
103
|
-
() =>
|
|
103
|
+
() => _HN4N2HE2cjs.convertSelection.call(void 0, selectedValuesProp),
|
|
104
104
|
[selectedValuesProp]
|
|
105
105
|
);
|
|
106
106
|
const defaultSelectedKeys = _react.useMemo.call(void 0,
|
|
107
|
-
() =>
|
|
107
|
+
() => _HN4N2HE2cjs.convertSelection.call(void 0, defaultSelectedValuesProp, /* @__PURE__ */ new Set()),
|
|
108
108
|
[defaultSelectedValuesProp]
|
|
109
109
|
);
|
|
110
110
|
const [selectedKeys, setSelectedKeys] = _utils.useControlledState.call(void 0,
|
|
@@ -142,7 +142,7 @@ function RichSelectList(props) {
|
|
|
142
142
|
_reactariacomponents.Provider,
|
|
143
143
|
{
|
|
144
144
|
values: [
|
|
145
|
-
[
|
|
145
|
+
[_HN4N2HE2cjs.RichSelectBoxContext, { autoFocus: true }],
|
|
146
146
|
[_76LTWV2Qcjs.DialogContext, { padding: autosave ? void 0 : 0 }]
|
|
147
147
|
// this is altering Popover's internal dialog padding to show the sticky save/close buttons. Ideally this could be avoided
|
|
148
148
|
],
|
|
@@ -182,7 +182,7 @@ function RichSelectList(props) {
|
|
|
182
182
|
padding: autosave ? void 0 : 5,
|
|
183
183
|
dangerouslySetInlineStyle: autosave ? void 0 : { __style: { paddingBottom: 0 } },
|
|
184
184
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
185
|
-
|
|
185
|
+
_HN4N2HE2cjs.RichSelectBox_default,
|
|
186
186
|
_X2SDR4SDcjs.__spreadProps.call(void 0, _X2SDR4SDcjs.__spreadValues.call(void 0, {
|
|
187
187
|
autosave,
|
|
188
188
|
selectedValues: selectedKeys,
|
|
@@ -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 ? _PKQXVJ75cjs.ColorBaseDestructive700 : _PKQXVJ75cjs.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
|
)
|
|
@@ -260,10 +260,10 @@ function RichSelectList(props) {
|
|
|
260
260
|
var RichSelectList_default = Object.assign(RichSelectList, {
|
|
261
261
|
Section: _ZTK7E42Pcjs.RichSelectSection_default,
|
|
262
262
|
Chip: _ID2WKUNHcjs.RichSelectChip_default,
|
|
263
|
-
RadioButton:
|
|
263
|
+
RadioButton: _7FBJ7XREcjs.RichSelectRadioButton_default
|
|
264
264
|
});
|
|
265
265
|
|
|
266
266
|
|
|
267
267
|
|
|
268
268
|
exports.RichSelectList_default = RichSelectList_default;
|
|
269
|
-
//# sourceMappingURL=
|
|
269
|
+
//# sourceMappingURL=6P4IEVBL.cjs.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _RYUXG4AScjs = require('./RYUXG4AS.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _JW7TVUPBcjs = require('./JW7TVUPB.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -19,7 +19,7 @@ var RichSelectRadioButton_default = _react.forwardRef.call(void 0,
|
|
|
19
19
|
function RichSelectRadioButton(props, ref) {
|
|
20
20
|
const _a = props, { size, name } = _a, otherProps = _X2SDR4SDcjs.__objRest.call(void 0, _a, ["size", "name"]);
|
|
21
21
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _RYUXG4AScjs.RichSelectItem_default, _X2SDR4SDcjs.__spreadProps.call(void 0, _X2SDR4SDcjs.__spreadValues.call(void 0, {}, otherProps), { ref, children: ({ isSelected, isFocusVisible, isDisabled }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22
|
-
|
|
22
|
+
_JW7TVUPBcjs.RadioButton_default,
|
|
23
23
|
{
|
|
24
24
|
checked: isSelected,
|
|
25
25
|
disabled: isDisabled,
|
|
@@ -37,4 +37,4 @@ var RichSelectRadioButton_default = _react.forwardRef.call(void 0,
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
exports.RichSelectRadioButton_default = RichSelectRadioButton_default;
|
|
40
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=7FBJ7XRE.cjs.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./ODMJANSX.js";
|
|
5
5
|
import {
|
|
6
6
|
RadioButton_default
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./DR35U5KW.js";
|
|
8
8
|
import {
|
|
9
9
|
__objRest,
|
|
10
10
|
__spreadProps,
|
|
@@ -37,4 +37,4 @@ var RichSelectRadioButton_default = forwardRef(
|
|
|
37
37
|
export {
|
|
38
38
|
RichSelectRadioButton_default
|
|
39
39
|
};
|
|
40
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=BU3EYSKD.js.map
|