braid-design-system 32.6.0 → 32.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/CHANGELOG.md +46 -0
- package/codemod/dist/wrapper.js +82628 -42142
- package/dist/ToastContext.chunk.cjs +6 -0
- package/dist/ToastContext.chunk.mjs +6 -0
- package/dist/{Toggle.chunk.cjs → index.chunk.cjs} +89 -79
- package/dist/{Toggle.chunk.mjs → index.chunk.mjs} +88 -78
- package/dist/index.cjs +137 -137
- package/dist/index.mjs +1 -1
- package/dist/playroom/components.cjs +147 -147
- package/dist/playroom/components.mjs +2 -2
- package/dist/playroomState.chunk.cjs +1 -1
- package/dist/playroomState.chunk.mjs +1 -1
- package/dist/reset.cjs +5 -0
- package/dist/reset.d.ts +1 -1
- package/dist/reset.mjs +5 -0
- package/dist/styles/lib/components/private/Modal/Modal.css.cjs +15 -7
- package/dist/styles/lib/components/private/Modal/Modal.css.mjs +15 -7
- package/package.json +2 -2
|
@@ -8,7 +8,7 @@ require("../styles/lib/themes/seekJobs/seekJobs.css.cjs");
|
|
|
8
8
|
require("../styles/lib/themes/seekBusiness/seekBusinessTheme.css.cjs");
|
|
9
9
|
const styles_lib_themes_wireframe_wireframeTheme_css_cjs = require("../styles/lib/themes/wireframe/wireframeTheme.css.cjs");
|
|
10
10
|
require("../styles/lib/themes/docs/docsTheme.css.cjs");
|
|
11
|
-
const
|
|
11
|
+
const index = require("../index.chunk.cjs");
|
|
12
12
|
const playroomState = require("../playroomState.chunk.cjs");
|
|
13
13
|
const React = require("react");
|
|
14
14
|
const uuid = require("uuid");
|
|
@@ -23,12 +23,12 @@ const dedent__default = /* @__PURE__ */ _interopDefaultCompat(dedent);
|
|
|
23
23
|
const spaceScale = ["none", ...Object.keys(styles_lib_themes_wireframe_wireframeTheme_css_cjs.wireframe.space.space)];
|
|
24
24
|
const filterSpace = (space) => {
|
|
25
25
|
const filteredSpace = styles_lib_css_atoms_sprinkles_css_cjs.mapResponsiveValue(space, (value) => {
|
|
26
|
-
if (spaceScale.includes(value) && !
|
|
26
|
+
if (spaceScale.includes(value) && !index.validSpaceValues.includes(value)) {
|
|
27
27
|
throw new Error(
|
|
28
|
-
`To ensure adequate space for touch targets, 'space' prop values must be one of the following: ${
|
|
28
|
+
`To ensure adequate space for touch targets, 'space' prop values must be one of the following: ${index.validSpaceValues.map((x) => `"${x}"`).join(", ")}`
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
|
-
return
|
|
31
|
+
return index.validSpaceValues.includes(value) ? value : "medium";
|
|
32
32
|
});
|
|
33
33
|
return filteredSpace;
|
|
34
34
|
};
|
|
@@ -39,7 +39,7 @@ const Accordion = ({
|
|
|
39
39
|
weight,
|
|
40
40
|
...restProps
|
|
41
41
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
42
|
-
|
|
42
|
+
index.Accordion,
|
|
43
43
|
{
|
|
44
44
|
size: typeof size === "boolean" ? void 0 : size,
|
|
45
45
|
tone: typeof tone === "boolean" ? void 0 : tone,
|
|
@@ -70,7 +70,7 @@ const AccordionItem = ({
|
|
|
70
70
|
false
|
|
71
71
|
);
|
|
72
72
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
73
|
-
|
|
73
|
+
index.AccordionItem,
|
|
74
74
|
{
|
|
75
75
|
id: id ?? fallbackId,
|
|
76
76
|
expanded: state,
|
|
@@ -86,7 +86,7 @@ const AccordionItem = ({
|
|
|
86
86
|
);
|
|
87
87
|
};
|
|
88
88
|
const Alert = ({ tone, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
89
|
-
|
|
89
|
+
index.Alert,
|
|
90
90
|
{
|
|
91
91
|
tone: typeof tone !== "boolean" ? tone : void 0,
|
|
92
92
|
...restProps
|
|
@@ -109,7 +109,7 @@ function Autosuggest({
|
|
|
109
109
|
blankValue
|
|
110
110
|
);
|
|
111
111
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
112
|
-
|
|
112
|
+
index.Autosuggest,
|
|
113
113
|
{
|
|
114
114
|
id: id ?? fallbackId,
|
|
115
115
|
value: state,
|
|
@@ -123,7 +123,7 @@ function Autosuggest({
|
|
|
123
123
|
);
|
|
124
124
|
}
|
|
125
125
|
const Badge = ({ tone, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
126
|
-
|
|
126
|
+
index.Badge,
|
|
127
127
|
{
|
|
128
128
|
tone: typeof tone !== "boolean" ? tone : void 0,
|
|
129
129
|
...restProps
|
|
@@ -194,7 +194,7 @@ const ButtonLink = React.forwardRef(
|
|
|
194
194
|
({ variant, ...restProps }, ref) => {
|
|
195
195
|
const isValidVariant = variant && ToastContext.buttonVariants.indexOf(variant) > -1;
|
|
196
196
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
197
|
-
|
|
197
|
+
index.ButtonLink,
|
|
198
198
|
{
|
|
199
199
|
ref,
|
|
200
200
|
variant: isValidVariant ? variant : void 0,
|
|
@@ -205,9 +205,9 @@ const ButtonLink = React.forwardRef(
|
|
|
205
205
|
);
|
|
206
206
|
ButtonLink.displayName = "ButtonLink";
|
|
207
207
|
const Card = ({ component, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
208
|
-
|
|
208
|
+
index.Card,
|
|
209
209
|
{
|
|
210
|
-
component: component &&
|
|
210
|
+
component: component && index.validCardComponents.indexOf(component) > -1 ? component : void 0,
|
|
211
211
|
...restProps
|
|
212
212
|
}
|
|
213
213
|
);
|
|
@@ -226,7 +226,7 @@ const Checkbox = ({
|
|
|
226
226
|
false
|
|
227
227
|
);
|
|
228
228
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
229
|
-
|
|
229
|
+
index.Checkbox,
|
|
230
230
|
{
|
|
231
231
|
id: id ?? fallbackId,
|
|
232
232
|
checked: state,
|
|
@@ -251,7 +251,7 @@ const CheckboxStandalone = ({
|
|
|
251
251
|
false
|
|
252
252
|
);
|
|
253
253
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
254
|
-
|
|
254
|
+
index.CheckboxStandalone,
|
|
255
255
|
{
|
|
256
256
|
id: id ?? fallbackId,
|
|
257
257
|
checked: state,
|
|
@@ -300,11 +300,11 @@ const Dialog = ({
|
|
|
300
300
|
false
|
|
301
301
|
);
|
|
302
302
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
303
|
-
|
|
303
|
+
index.AllowCloseContext.Provider,
|
|
304
304
|
{
|
|
305
305
|
value: onClose !== void 0 || stateName !== void 0,
|
|
306
306
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
307
|
-
|
|
307
|
+
index.Dialog,
|
|
308
308
|
{
|
|
309
309
|
id: id ?? fallbackId,
|
|
310
310
|
open: state,
|
|
@@ -332,7 +332,7 @@ const Disclosure = ({
|
|
|
332
332
|
false
|
|
333
333
|
);
|
|
334
334
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
335
|
-
|
|
335
|
+
index.Disclosure,
|
|
336
336
|
{
|
|
337
337
|
id: id ?? fallbackId,
|
|
338
338
|
expanded: state,
|
|
@@ -358,11 +358,11 @@ const Drawer = ({
|
|
|
358
358
|
false
|
|
359
359
|
);
|
|
360
360
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
361
|
-
|
|
361
|
+
index.AllowCloseContext.Provider,
|
|
362
362
|
{
|
|
363
363
|
value: onClose !== void 0 || stateName !== void 0,
|
|
364
364
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
365
|
-
|
|
365
|
+
index.Drawer,
|
|
366
366
|
{
|
|
367
367
|
id: id ?? fallbackId,
|
|
368
368
|
...restProps,
|
|
@@ -388,7 +388,7 @@ const Dropdown = ({
|
|
|
388
388
|
""
|
|
389
389
|
);
|
|
390
390
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
391
|
-
|
|
391
|
+
index.Dropdown,
|
|
392
392
|
{
|
|
393
393
|
id: id ?? fallbackId,
|
|
394
394
|
value: state,
|
|
@@ -405,7 +405,7 @@ const FieldLabel = ({
|
|
|
405
405
|
const fallbackId = useFallbackId();
|
|
406
406
|
const fallbackFor = useFallbackId();
|
|
407
407
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
408
|
-
|
|
408
|
+
index.FieldLabel,
|
|
409
409
|
{
|
|
410
410
|
id: id ?? fallbackId,
|
|
411
411
|
htmlFor: htmlFor ?? fallbackFor,
|
|
@@ -420,15 +420,15 @@ const FieldMessage = ({
|
|
|
420
420
|
}) => {
|
|
421
421
|
const fallbackId = useFallbackId();
|
|
422
422
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
423
|
-
|
|
423
|
+
index.FieldMessage,
|
|
424
424
|
{
|
|
425
425
|
id: id ?? fallbackId,
|
|
426
|
-
tone: tone &&
|
|
426
|
+
tone: tone && index.tones.indexOf(tone) > -1 ? tone : void 0,
|
|
427
427
|
...restProps
|
|
428
428
|
}
|
|
429
429
|
);
|
|
430
430
|
};
|
|
431
|
-
const Heading = ({ level, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
431
|
+
const Heading = ({ level, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(index.Heading, { level: level || "3", ...restProps });
|
|
432
432
|
const Inline = ({
|
|
433
433
|
space,
|
|
434
434
|
align,
|
|
@@ -447,7 +447,7 @@ const Inline = ({
|
|
|
447
447
|
);
|
|
448
448
|
const Link = React.forwardRef(
|
|
449
449
|
({ href, onClick, ...restProps }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
450
|
-
|
|
450
|
+
index.Link,
|
|
451
451
|
{
|
|
452
452
|
ref,
|
|
453
453
|
href: href ?? "",
|
|
@@ -459,9 +459,9 @@ const Link = React.forwardRef(
|
|
|
459
459
|
const List = ({ space, ...props }) => {
|
|
460
460
|
const cleanSpace = cleanSpaceValue(space);
|
|
461
461
|
if (props.type === "icon" && (!("icon" in props) || !props.icon)) {
|
|
462
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
462
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index.List, { ...props, space: cleanSpace, icon: /* @__PURE__ */ jsxRuntime.jsx(ToastContext.IconClear, {}) });
|
|
463
463
|
}
|
|
464
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
464
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index.List, { space: cleanSpace, ...props });
|
|
465
465
|
};
|
|
466
466
|
const MonthPicker = ({
|
|
467
467
|
id,
|
|
@@ -478,7 +478,7 @@ const MonthPicker = ({
|
|
|
478
478
|
{}
|
|
479
479
|
);
|
|
480
480
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
481
|
-
|
|
481
|
+
index.MonthPicker,
|
|
482
482
|
{
|
|
483
483
|
id: id ?? fallbackId,
|
|
484
484
|
value: state,
|
|
@@ -488,7 +488,7 @@ const MonthPicker = ({
|
|
|
488
488
|
);
|
|
489
489
|
};
|
|
490
490
|
const MenuItem = ({ badge, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
491
|
-
|
|
491
|
+
index.MenuItem,
|
|
492
492
|
{
|
|
493
493
|
badge: typeof badge === "boolean" ? void 0 : badge,
|
|
494
494
|
...restProps
|
|
@@ -496,7 +496,7 @@ const MenuItem = ({ badge, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
|
496
496
|
);
|
|
497
497
|
MenuItem.__isMenuItem__ = true;
|
|
498
498
|
const MenuItemLink = ({ badge, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
499
|
-
|
|
499
|
+
index.MenuItemLink,
|
|
500
500
|
{
|
|
501
501
|
badge: typeof badge === "boolean" ? void 0 : badge,
|
|
502
502
|
...restProps
|
|
@@ -507,7 +507,7 @@ const MenuItemCheckbox = ({
|
|
|
507
507
|
badge,
|
|
508
508
|
...restProps
|
|
509
509
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
510
|
-
|
|
510
|
+
index.MenuItemCheckbox,
|
|
511
511
|
{
|
|
512
512
|
badge: typeof badge === "boolean" ? void 0 : badge,
|
|
513
513
|
...restProps
|
|
@@ -515,7 +515,7 @@ const MenuItemCheckbox = ({
|
|
|
515
515
|
);
|
|
516
516
|
MenuItemCheckbox.__isMenuItem__ = true;
|
|
517
517
|
const Notice = ({ tone, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
518
|
-
|
|
518
|
+
index.Notice,
|
|
519
519
|
{
|
|
520
520
|
tone: typeof tone !== "boolean" ? tone : void 0,
|
|
521
521
|
...restProps
|
|
@@ -523,7 +523,7 @@ const Notice = ({ tone, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
|
523
523
|
);
|
|
524
524
|
const OverflowMenu = ({ id, ...restProps }) => {
|
|
525
525
|
const fallbackId = useFallbackId();
|
|
526
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
526
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index.OverflowMenu, { id: id ?? fallbackId, ...restProps });
|
|
527
527
|
};
|
|
528
528
|
const defaultPage = 1;
|
|
529
529
|
const defaultTotal = 10;
|
|
@@ -540,7 +540,7 @@ const resolveFallbackTotal = (total, resolvedPage) => {
|
|
|
540
540
|
if (typeof total === "number" && total > 0) {
|
|
541
541
|
return total;
|
|
542
542
|
}
|
|
543
|
-
return resolvedPage >
|
|
543
|
+
return resolvedPage > index.defaultPageLimit ? resolvedPage * 2 : defaultTotal;
|
|
544
544
|
};
|
|
545
545
|
const Pagination = ({
|
|
546
546
|
page,
|
|
@@ -565,7 +565,7 @@ const Pagination = ({
|
|
|
565
565
|
setCurrentPage(resolveFallbackPage(page, total));
|
|
566
566
|
}, [page, total]);
|
|
567
567
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
568
|
-
|
|
568
|
+
index.Pagination,
|
|
569
569
|
{
|
|
570
570
|
page: currentPage,
|
|
571
571
|
total: total || fallbackTotal,
|
|
@@ -590,7 +590,7 @@ const PasswordField = ({
|
|
|
590
590
|
""
|
|
591
591
|
);
|
|
592
592
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
593
|
-
|
|
593
|
+
index.PasswordField,
|
|
594
594
|
{
|
|
595
595
|
id: id ?? fallbackId,
|
|
596
596
|
value: state,
|
|
@@ -609,7 +609,7 @@ const Radio = ({
|
|
|
609
609
|
const fallbackId = useFallbackId();
|
|
610
610
|
const [fallbackChecked, setFallbackChecked] = React.useState(false);
|
|
611
611
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
612
|
-
|
|
612
|
+
index.Radio,
|
|
613
613
|
{
|
|
614
614
|
id: id ?? fallbackId,
|
|
615
615
|
checked: checked ?? fallbackChecked,
|
|
@@ -629,7 +629,7 @@ const RadioGroup = ({
|
|
|
629
629
|
const fallbackId = useFallbackId();
|
|
630
630
|
const [state, handleChange] = playroomState.useFallbackState(stateName, value, onChange);
|
|
631
631
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
632
|
-
|
|
632
|
+
index.RadioGroup,
|
|
633
633
|
{
|
|
634
634
|
...restProps,
|
|
635
635
|
id: id ?? fallbackId,
|
|
@@ -640,7 +640,7 @@ const RadioGroup = ({
|
|
|
640
640
|
);
|
|
641
641
|
};
|
|
642
642
|
const Rating = ({ rating, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
643
|
-
|
|
643
|
+
index.Rating,
|
|
644
644
|
{
|
|
645
645
|
rating: typeof rating === "number" ? rating : 0,
|
|
646
646
|
...restProps
|
|
@@ -665,11 +665,11 @@ const TabsProvider = ({
|
|
|
665
665
|
...restProps
|
|
666
666
|
}) => {
|
|
667
667
|
const fallbackId = useFallbackId();
|
|
668
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
668
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index.TabsProvider, { id: id ?? fallbackId, ...restProps });
|
|
669
669
|
};
|
|
670
|
-
const Tabs = ({ label, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
670
|
+
const Tabs = ({ label, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(index.Tabs, { label: "", ...restProps });
|
|
671
671
|
const Tab = ({ icon, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
672
|
-
|
|
672
|
+
index.Tab,
|
|
673
673
|
{
|
|
674
674
|
icon: typeof icon === "boolean" ? void 0 : icon,
|
|
675
675
|
...restProps
|
|
@@ -679,7 +679,7 @@ Tab.__isTab__ = true;
|
|
|
679
679
|
const Tag = ({ icon, id, ...restProps }) => {
|
|
680
680
|
const fallbackId = useFallbackId();
|
|
681
681
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
682
|
-
|
|
682
|
+
index.Tag,
|
|
683
683
|
{
|
|
684
684
|
id: id ?? fallbackId,
|
|
685
685
|
icon: typeof icon !== "boolean" ? icon : void 0,
|
|
@@ -702,7 +702,7 @@ const Textarea = ({
|
|
|
702
702
|
""
|
|
703
703
|
);
|
|
704
704
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
705
|
-
|
|
705
|
+
index.Textarea,
|
|
706
706
|
{
|
|
707
707
|
id: id ?? fallbackId,
|
|
708
708
|
value: state,
|
|
@@ -716,7 +716,7 @@ const fallbackOptions = ["TextDropdown"];
|
|
|
716
716
|
function resolveValue(value, options) {
|
|
717
717
|
if (typeof value === "undefined") {
|
|
718
718
|
if (Array.isArray(options) && options.length > 0) {
|
|
719
|
-
return
|
|
719
|
+
return index.parseSimpleToComplexOption(options[0]).value;
|
|
720
720
|
}
|
|
721
721
|
return fallbackOptions[0];
|
|
722
722
|
}
|
|
@@ -747,7 +747,7 @@ function TextDropdown({
|
|
|
747
747
|
}
|
|
748
748
|
}, [internalOptions, value, options]);
|
|
749
749
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
750
|
-
|
|
750
|
+
index.TextDropdown,
|
|
751
751
|
{
|
|
752
752
|
id: id ?? fallbackId,
|
|
753
753
|
label: label ?? "No label provided",
|
|
@@ -774,7 +774,7 @@ const TextField = ({
|
|
|
774
774
|
""
|
|
775
775
|
);
|
|
776
776
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
777
|
-
|
|
777
|
+
index.TextField,
|
|
778
778
|
{
|
|
779
779
|
id: id ?? fallbackId,
|
|
780
780
|
value: state,
|
|
@@ -789,7 +789,7 @@ const TextField = ({
|
|
|
789
789
|
);
|
|
790
790
|
};
|
|
791
791
|
const Tiles = ({ space, columns, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
792
|
-
|
|
792
|
+
index.Tiles,
|
|
793
793
|
{
|
|
794
794
|
space: cleanSpaceValue(space) || "none",
|
|
795
795
|
columns: typeof columns === "boolean" || !columns ? 1 : columns,
|
|
@@ -811,7 +811,7 @@ const Toggle = ({
|
|
|
811
811
|
false
|
|
812
812
|
);
|
|
813
813
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
814
|
-
|
|
814
|
+
index.Toggle,
|
|
815
815
|
{
|
|
816
816
|
id: id ?? fallbackId,
|
|
817
817
|
on: state,
|
|
@@ -900,104 +900,104 @@ if (global.__IS_PLAYROOM_ENVIRONMENT__ !== "clearly") {
|
|
|
900
900
|
+import { Component } from 'braid-design-system';
|
|
901
901
|
`);
|
|
902
902
|
}
|
|
903
|
-
exports.Actions =
|
|
904
|
-
exports.BoxRenderer =
|
|
905
|
-
exports.HiddenVisually =
|
|
906
|
-
exports.IconAdd =
|
|
907
|
-
exports.IconArrow =
|
|
908
|
-
exports.IconBookmark =
|
|
909
|
-
exports.IconCaution =
|
|
910
|
-
exports.IconChevron =
|
|
911
|
-
exports.IconCompany =
|
|
912
|
-
exports.IconCompose =
|
|
913
|
-
exports.IconCopy =
|
|
914
|
-
exports.IconCreditCard =
|
|
915
|
-
exports.IconDate =
|
|
916
|
-
exports.IconDelete =
|
|
917
|
-
exports.IconDesktop =
|
|
918
|
-
exports.IconDocument =
|
|
919
|
-
exports.IconDocumentBroken =
|
|
920
|
-
exports.IconDownload =
|
|
921
|
-
exports.IconEdit =
|
|
922
|
-
exports.IconEducation =
|
|
923
|
-
exports.IconFilter =
|
|
924
|
-
exports.IconFlag =
|
|
925
|
-
exports.IconGrid =
|
|
926
|
-
exports.IconHeart =
|
|
927
|
-
exports.IconHelp =
|
|
928
|
-
exports.IconHistory =
|
|
929
|
-
exports.IconHome =
|
|
930
|
-
exports.IconImage =
|
|
931
|
-
exports.IconInfo =
|
|
932
|
-
exports.IconInvoice =
|
|
933
|
-
exports.IconLanguage =
|
|
934
|
-
exports.IconLink =
|
|
935
|
-
exports.IconLinkBroken =
|
|
936
|
-
exports.IconList =
|
|
937
|
-
exports.IconLocation =
|
|
938
|
-
exports.IconMail =
|
|
939
|
-
exports.IconMessage =
|
|
940
|
-
exports.IconMinus =
|
|
941
|
-
exports.IconMobile =
|
|
942
|
-
exports.IconMoney =
|
|
943
|
-
exports.IconNewWindow =
|
|
944
|
-
exports.IconNote =
|
|
945
|
-
exports.IconNotification =
|
|
946
|
-
exports.IconOverflow =
|
|
947
|
-
exports.IconPeople =
|
|
948
|
-
exports.IconPersonAdd =
|
|
949
|
-
exports.IconPersonVerified =
|
|
950
|
-
exports.IconPhone =
|
|
951
|
-
exports.IconPlatformAndroid =
|
|
952
|
-
exports.IconPlatformApple =
|
|
953
|
-
exports.IconPrint =
|
|
954
|
-
exports.IconProfile =
|
|
955
|
-
exports.IconPromote =
|
|
956
|
-
exports.IconRecommended =
|
|
957
|
-
exports.IconRefresh =
|
|
958
|
-
exports.IconResume =
|
|
959
|
-
exports.IconSearch =
|
|
960
|
-
exports.IconSecurity =
|
|
961
|
-
exports.IconSend =
|
|
962
|
-
exports.IconSent =
|
|
963
|
-
exports.IconSettings =
|
|
964
|
-
exports.IconShare =
|
|
965
|
-
exports.IconSocialFacebook =
|
|
966
|
-
exports.IconSocialGitHub =
|
|
967
|
-
exports.IconSocialInstagram =
|
|
968
|
-
exports.IconSocialLinkedIn =
|
|
969
|
-
exports.IconSocialMedium =
|
|
970
|
-
exports.IconSocialTwitter =
|
|
971
|
-
exports.IconSocialYouTube =
|
|
972
|
-
exports.IconStar =
|
|
973
|
-
exports.IconStatistics =
|
|
974
|
-
exports.IconSubCategory =
|
|
975
|
-
exports.IconTag =
|
|
976
|
-
exports.IconThumb =
|
|
977
|
-
exports.IconTick =
|
|
978
|
-
exports.IconTime =
|
|
979
|
-
exports.IconTip =
|
|
980
|
-
exports.IconUpload =
|
|
981
|
-
exports.IconVideo =
|
|
982
|
-
exports.IconVisibility =
|
|
983
|
-
exports.IconWorkExperience =
|
|
984
|
-
exports.IconZoomIn =
|
|
985
|
-
exports.IconZoomOut =
|
|
986
|
-
exports.Loader =
|
|
987
|
-
exports.MenuItemDivider =
|
|
988
|
-
exports.MenuRenderer =
|
|
989
|
-
exports.PageBlock =
|
|
990
|
-
exports.RadioItem =
|
|
991
|
-
exports.Secondary =
|
|
992
|
-
exports.Step =
|
|
993
|
-
exports.Stepper =
|
|
994
|
-
exports.Strong =
|
|
995
|
-
exports.TabPanel =
|
|
996
|
-
exports.TabPanels =
|
|
997
|
-
exports.ThemeNameConsumer =
|
|
998
|
-
exports.filterSuggestions =
|
|
999
|
-
exports.useBreakpoint =
|
|
1000
|
-
exports.useColor =
|
|
903
|
+
exports.Actions = index.Actions;
|
|
904
|
+
exports.BoxRenderer = index.BoxRenderer;
|
|
905
|
+
exports.HiddenVisually = index.HiddenVisually;
|
|
906
|
+
exports.IconAdd = index.IconAdd;
|
|
907
|
+
exports.IconArrow = index.IconArrow;
|
|
908
|
+
exports.IconBookmark = index.IconBookmark;
|
|
909
|
+
exports.IconCaution = index.IconCaution;
|
|
910
|
+
exports.IconChevron = index.IconChevron;
|
|
911
|
+
exports.IconCompany = index.IconCompany;
|
|
912
|
+
exports.IconCompose = index.IconCompose;
|
|
913
|
+
exports.IconCopy = index.IconCopy;
|
|
914
|
+
exports.IconCreditCard = index.IconCreditCard;
|
|
915
|
+
exports.IconDate = index.IconDate;
|
|
916
|
+
exports.IconDelete = index.IconDelete;
|
|
917
|
+
exports.IconDesktop = index.IconDesktop;
|
|
918
|
+
exports.IconDocument = index.IconDocument;
|
|
919
|
+
exports.IconDocumentBroken = index.IconDocumentBroken;
|
|
920
|
+
exports.IconDownload = index.IconDownload;
|
|
921
|
+
exports.IconEdit = index.IconEdit;
|
|
922
|
+
exports.IconEducation = index.IconEducation;
|
|
923
|
+
exports.IconFilter = index.IconFilter;
|
|
924
|
+
exports.IconFlag = index.IconFlag;
|
|
925
|
+
exports.IconGrid = index.IconGrid;
|
|
926
|
+
exports.IconHeart = index.IconHeart;
|
|
927
|
+
exports.IconHelp = index.IconHelp;
|
|
928
|
+
exports.IconHistory = index.IconHistory;
|
|
929
|
+
exports.IconHome = index.IconHome;
|
|
930
|
+
exports.IconImage = index.IconImage;
|
|
931
|
+
exports.IconInfo = index.IconInfo;
|
|
932
|
+
exports.IconInvoice = index.IconInvoice;
|
|
933
|
+
exports.IconLanguage = index.IconLanguage;
|
|
934
|
+
exports.IconLink = index.IconLink;
|
|
935
|
+
exports.IconLinkBroken = index.IconLinkBroken;
|
|
936
|
+
exports.IconList = index.IconList;
|
|
937
|
+
exports.IconLocation = index.IconLocation;
|
|
938
|
+
exports.IconMail = index.IconMail;
|
|
939
|
+
exports.IconMessage = index.IconMessage;
|
|
940
|
+
exports.IconMinus = index.IconMinus;
|
|
941
|
+
exports.IconMobile = index.IconMobile;
|
|
942
|
+
exports.IconMoney = index.IconMoney;
|
|
943
|
+
exports.IconNewWindow = index.IconNewWindow;
|
|
944
|
+
exports.IconNote = index.IconNote;
|
|
945
|
+
exports.IconNotification = index.IconNotification;
|
|
946
|
+
exports.IconOverflow = index.IconOverflow;
|
|
947
|
+
exports.IconPeople = index.IconPeople;
|
|
948
|
+
exports.IconPersonAdd = index.IconPersonAdd;
|
|
949
|
+
exports.IconPersonVerified = index.IconPersonVerified;
|
|
950
|
+
exports.IconPhone = index.IconPhone;
|
|
951
|
+
exports.IconPlatformAndroid = index.IconPlatformAndroid;
|
|
952
|
+
exports.IconPlatformApple = index.IconPlatformApple;
|
|
953
|
+
exports.IconPrint = index.IconPrint;
|
|
954
|
+
exports.IconProfile = index.IconProfile;
|
|
955
|
+
exports.IconPromote = index.IconPromote;
|
|
956
|
+
exports.IconRecommended = index.IconRecommended;
|
|
957
|
+
exports.IconRefresh = index.IconRefresh;
|
|
958
|
+
exports.IconResume = index.IconResume;
|
|
959
|
+
exports.IconSearch = index.IconSearch;
|
|
960
|
+
exports.IconSecurity = index.IconSecurity;
|
|
961
|
+
exports.IconSend = index.IconSend;
|
|
962
|
+
exports.IconSent = index.IconSent;
|
|
963
|
+
exports.IconSettings = index.IconSettings;
|
|
964
|
+
exports.IconShare = index.IconShare;
|
|
965
|
+
exports.IconSocialFacebook = index.IconSocialFacebook;
|
|
966
|
+
exports.IconSocialGitHub = index.IconSocialGitHub;
|
|
967
|
+
exports.IconSocialInstagram = index.IconSocialInstagram;
|
|
968
|
+
exports.IconSocialLinkedIn = index.IconSocialLinkedIn;
|
|
969
|
+
exports.IconSocialMedium = index.IconSocialMedium;
|
|
970
|
+
exports.IconSocialTwitter = index.IconSocialTwitter;
|
|
971
|
+
exports.IconSocialYouTube = index.IconSocialYouTube;
|
|
972
|
+
exports.IconStar = index.IconStar;
|
|
973
|
+
exports.IconStatistics = index.IconStatistics;
|
|
974
|
+
exports.IconSubCategory = index.IconSubCategory;
|
|
975
|
+
exports.IconTag = index.IconTag;
|
|
976
|
+
exports.IconThumb = index.IconThumb;
|
|
977
|
+
exports.IconTick = index.IconTick;
|
|
978
|
+
exports.IconTime = index.IconTime;
|
|
979
|
+
exports.IconTip = index.IconTip;
|
|
980
|
+
exports.IconUpload = index.IconUpload;
|
|
981
|
+
exports.IconVideo = index.IconVideo;
|
|
982
|
+
exports.IconVisibility = index.IconVisibility;
|
|
983
|
+
exports.IconWorkExperience = index.IconWorkExperience;
|
|
984
|
+
exports.IconZoomIn = index.IconZoomIn;
|
|
985
|
+
exports.IconZoomOut = index.IconZoomOut;
|
|
986
|
+
exports.Loader = index.Loader;
|
|
987
|
+
exports.MenuItemDivider = index.MenuItemDivider;
|
|
988
|
+
exports.MenuRenderer = index.MenuRenderer;
|
|
989
|
+
exports.PageBlock = index.PageBlock;
|
|
990
|
+
exports.RadioItem = index.RadioItem;
|
|
991
|
+
exports.Secondary = index.Secondary;
|
|
992
|
+
exports.Step = index.Step;
|
|
993
|
+
exports.Stepper = index.Stepper;
|
|
994
|
+
exports.Strong = index.Strong;
|
|
995
|
+
exports.TabPanel = index.TabPanel;
|
|
996
|
+
exports.TabPanels = index.TabPanels;
|
|
997
|
+
exports.ThemeNameConsumer = index.ThemeNameConsumer;
|
|
998
|
+
exports.filterSuggestions = index.filterSuggestions;
|
|
999
|
+
exports.useBreakpoint = index.useBreakpoint;
|
|
1000
|
+
exports.useColor = index.useColor;
|
|
1001
1001
|
exports.BraidPortal = ToastContext.BraidPortal;
|
|
1002
1002
|
exports.Column = ToastContext.Column;
|
|
1003
1003
|
exports.ContentBlock = ToastContext.ContentBlock;
|
|
@@ -6,8 +6,8 @@ import "../styles/lib/themes/seekJobs/seekJobs.css.mjs";
|
|
|
6
6
|
import "../styles/lib/themes/seekBusiness/seekBusinessTheme.css.mjs";
|
|
7
7
|
import { wireframe } from "../styles/lib/themes/wireframe/wireframeTheme.css.mjs";
|
|
8
8
|
import "../styles/lib/themes/docs/docsTheme.css.mjs";
|
|
9
|
-
import { Accordion as Accordion$1, validSpaceValues as validSpaceValues$1, AccordionItem as AccordionItem$1, Alert as Alert$1, Autosuggest as Autosuggest$1, Badge as Badge$1, ButtonLink as ButtonLink$1, Card as Card$1, validCardComponents, Checkbox as Checkbox$1, CheckboxStandalone as CheckboxStandalone$1, AllowCloseContext, Dialog as Dialog$1, Disclosure as Disclosure$1, Drawer as Drawer$1, Dropdown as Dropdown$1, FieldLabel as FieldLabel$1, FieldMessage as FieldMessage$1, tones, Heading as Heading$1, Link as Link$1, List as List$1, MonthPicker as MonthPicker$1, MenuItem as MenuItem$1, MenuItemLink as MenuItemLink$1, MenuItemCheckbox as MenuItemCheckbox$1, Notice as Notice$1, OverflowMenu as OverflowMenu$1, Pagination as Pagination$1, defaultPageLimit, PasswordField as PasswordField$1, Radio as Radio$1, RadioGroup as RadioGroup$1, Rating as Rating$1, TabsProvider as TabsProvider$1, Tabs as Tabs$1, Tab as Tab$1, Tag as Tag$1, Textarea as Textarea$1, TextDropdown as TextDropdown$1, parseSimpleToComplexOption, TextField as TextField$1, Tiles as Tiles$1, Toggle as Toggle$1 } from "../
|
|
10
|
-
import { Actions, BoxRenderer, HiddenVisually, IconAdd, IconArrow, IconBookmark, IconCaution, IconChevron, IconCompany, IconCompose, IconCopy, IconCreditCard, IconDate, IconDelete, IconDesktop, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconFilter, IconFlag, IconGrid, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconInfo, IconInvoice, IconLanguage, IconLink, IconLinkBroken, IconList, IconLocation, IconMail, IconMessage, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPlatformAndroid, IconPlatformApple, IconPrint, IconProfile, IconPromote, IconRecommended, IconRefresh, IconResume, IconSearch, IconSecurity, IconSend, IconSent, IconSettings, IconShare, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTwitter, IconSocialYouTube, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Loader, MenuItemDivider, MenuRenderer, PageBlock, RadioItem, Secondary, Step, Stepper, Strong, TabPanel, TabPanels, ThemeNameConsumer, filterSuggestions, useBreakpoint, useColor } from "../
|
|
9
|
+
import { Accordion as Accordion$1, validSpaceValues as validSpaceValues$1, AccordionItem as AccordionItem$1, Alert as Alert$1, Autosuggest as Autosuggest$1, Badge as Badge$1, ButtonLink as ButtonLink$1, Card as Card$1, validCardComponents, Checkbox as Checkbox$1, CheckboxStandalone as CheckboxStandalone$1, AllowCloseContext, Dialog as Dialog$1, Disclosure as Disclosure$1, Drawer as Drawer$1, Dropdown as Dropdown$1, FieldLabel as FieldLabel$1, FieldMessage as FieldMessage$1, tones, Heading as Heading$1, Link as Link$1, List as List$1, MonthPicker as MonthPicker$1, MenuItem as MenuItem$1, MenuItemLink as MenuItemLink$1, MenuItemCheckbox as MenuItemCheckbox$1, Notice as Notice$1, OverflowMenu as OverflowMenu$1, Pagination as Pagination$1, defaultPageLimit, PasswordField as PasswordField$1, Radio as Radio$1, RadioGroup as RadioGroup$1, Rating as Rating$1, TabsProvider as TabsProvider$1, Tabs as Tabs$1, Tab as Tab$1, Tag as Tag$1, Textarea as Textarea$1, TextDropdown as TextDropdown$1, parseSimpleToComplexOption, TextField as TextField$1, Tiles as Tiles$1, Toggle as Toggle$1 } from "../index.chunk.mjs";
|
|
10
|
+
import { Actions, BoxRenderer, HiddenVisually, IconAdd, IconArrow, IconBookmark, IconCaution, IconChevron, IconCompany, IconCompose, IconCopy, IconCreditCard, IconDate, IconDelete, IconDesktop, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconFilter, IconFlag, IconGrid, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconInfo, IconInvoice, IconLanguage, IconLink, IconLinkBroken, IconList, IconLocation, IconMail, IconMessage, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPlatformAndroid, IconPlatformApple, IconPrint, IconProfile, IconPromote, IconRecommended, IconRefresh, IconResume, IconSearch, IconSecurity, IconSend, IconSent, IconSettings, IconShare, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTwitter, IconSocialYouTube, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Loader, MenuItemDivider, MenuRenderer, PageBlock, RadioItem, Secondary, Step, Stepper, Strong, TabPanel, TabPanels, ThemeNameConsumer, filterSuggestions, useBreakpoint, useColor } from "../index.chunk.mjs";
|
|
11
11
|
import { useFallbackState } from "../playroomState.chunk.mjs";
|
|
12
12
|
import { useRef, forwardRef, useState, useEffect } from "react";
|
|
13
13
|
import { v4 } from "uuid";
|
|
@@ -71,7 +71,7 @@ function useFallbackState(stateKey, value, onChange, defaultValue) {
|
|
|
71
71
|
unwrapValue(args[0])
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
|
-
(handler || noop)(...args);
|
|
74
|
+
return (handler || noop)(...args);
|
|
75
75
|
};
|
|
76
76
|
const handleChange = wrapChangeHandler(onChange || noop);
|
|
77
77
|
const resolvedValue = value ?? (stateKey ? playroomState.getState(stateKey) ?? defaultValue : internalStateValue);
|
|
@@ -68,7 +68,7 @@ function useFallbackState(stateKey, value, onChange, defaultValue) {
|
|
|
68
68
|
unwrapValue(args[0])
|
|
69
69
|
);
|
|
70
70
|
}
|
|
71
|
-
(handler || noop)(...args);
|
|
71
|
+
return (handler || noop)(...args);
|
|
72
72
|
};
|
|
73
73
|
const handleChange = wrapChangeHandler(onChange || noop);
|
|
74
74
|
const resolvedValue = value ?? (stateKey ? playroomState.getState(stateKey) ?? defaultValue : internalStateValue);
|
package/dist/reset.cjs
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
require("./side-effects/lib/css/reset/index.cjs");
|
|
3
|
+
require("./styles/lib/themes/apac/apacTheme.css.cjs");
|
|
4
|
+
require("./styles/lib/themes/docs/docsTheme.css.cjs");
|
|
5
|
+
require("./styles/lib/themes/seekBusiness/seekBusinessTheme.css.cjs");
|
|
6
|
+
require("./styles/lib/themes/seekJobs/seekJobs.css.cjs");
|
|
7
|
+
require("./styles/lib/themes/wireframe/wireframeTheme.css.cjs");
|
package/dist/reset.d.ts
CHANGED
|
@@ -3173,7 +3173,7 @@ interface ModalContentProps {
|
|
|
3173
3173
|
|
|
3174
3174
|
interface ModalProps extends Omit<ModalContentProps, 'onClose' | 'scrollLock' | 'headingRef' | 'modalRef'> {
|
|
3175
3175
|
open: boolean;
|
|
3176
|
-
onClose: (openState: false) => void;
|
|
3176
|
+
onClose: (openState: false) => void | false;
|
|
3177
3177
|
}
|
|
3178
3178
|
|
|
3179
3179
|
declare const modalStyle$1: {
|
package/dist/reset.mjs
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
1
|
import "./side-effects/lib/css/reset/index.mjs";
|
|
2
|
+
import "./styles/lib/themes/apac/apacTheme.css.mjs";
|
|
3
|
+
import "./styles/lib/themes/docs/docsTheme.css.mjs";
|
|
4
|
+
import "./styles/lib/themes/seekBusiness/seekBusinessTheme.css.mjs";
|
|
5
|
+
import "./styles/lib/themes/seekJobs/seekJobs.css.mjs";
|
|
6
|
+
import "./styles/lib/themes/wireframe/wireframeTheme.css.mjs";
|