braid-design-system 32.5.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 +80 -0
- package/codemod/dist/wrapper.js +82628 -42142
- package/dist/ToastContext.chunk.cjs +10 -0
- package/dist/ToastContext.chunk.mjs +10 -0
- package/dist/{Toggle.chunk.cjs → index.chunk.cjs} +122 -52
- package/dist/{Toggle.chunk.mjs → index.chunk.mjs} +121 -51
- package/dist/index.cjs +137 -135
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +3 -1
- package/dist/playroom/components.cjs +159 -150
- package/dist/playroom/components.d.ts +1 -1
- package/dist/playroom/components.mjs +16 -7
- package/dist/playroom/snippets.cjs +60 -52
- package/dist/playroom/snippets.mjs +60 -52
- 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 +19 -5
- 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 +4 -2
|
@@ -8,12 +8,13 @@ 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");
|
|
15
15
|
const ToastContext = require("../ToastContext.chunk.cjs");
|
|
16
16
|
const styles_lib_css_atoms_atoms_cjs = require("../styles/lib/css/atoms/atoms.cjs");
|
|
17
|
+
const styles_lib_css_breakpoints_cjs = require("../styles/lib/css/breakpoints.cjs");
|
|
17
18
|
const styles_lib_css_atoms_atomicProperties_cjs = require("../styles/lib/css/atoms/atomicProperties.cjs");
|
|
18
19
|
const styles_lib_components_private_Placeholder_Placeholder_css_cjs = require("../styles/lib/components/private/Placeholder/Placeholder.css.cjs");
|
|
19
20
|
const sideEffects_lib_components_BraidProvider_BraidProvider_cjs = require("../side-effects/lib/components/BraidProvider/BraidProvider.cjs");
|
|
@@ -22,12 +23,12 @@ const dedent__default = /* @__PURE__ */ _interopDefaultCompat(dedent);
|
|
|
22
23
|
const spaceScale = ["none", ...Object.keys(styles_lib_themes_wireframe_wireframeTheme_css_cjs.wireframe.space.space)];
|
|
23
24
|
const filterSpace = (space) => {
|
|
24
25
|
const filteredSpace = styles_lib_css_atoms_sprinkles_css_cjs.mapResponsiveValue(space, (value) => {
|
|
25
|
-
if (spaceScale.includes(value) && !
|
|
26
|
+
if (spaceScale.includes(value) && !index.validSpaceValues.includes(value)) {
|
|
26
27
|
throw new Error(
|
|
27
|
-
`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(", ")}`
|
|
28
29
|
);
|
|
29
30
|
}
|
|
30
|
-
return
|
|
31
|
+
return index.validSpaceValues.includes(value) ? value : "medium";
|
|
31
32
|
});
|
|
32
33
|
return filteredSpace;
|
|
33
34
|
};
|
|
@@ -38,7 +39,7 @@ const Accordion = ({
|
|
|
38
39
|
weight,
|
|
39
40
|
...restProps
|
|
40
41
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
41
|
-
|
|
42
|
+
index.Accordion,
|
|
42
43
|
{
|
|
43
44
|
size: typeof size === "boolean" ? void 0 : size,
|
|
44
45
|
tone: typeof tone === "boolean" ? void 0 : tone,
|
|
@@ -69,7 +70,7 @@ const AccordionItem = ({
|
|
|
69
70
|
false
|
|
70
71
|
);
|
|
71
72
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
72
|
-
|
|
73
|
+
index.AccordionItem,
|
|
73
74
|
{
|
|
74
75
|
id: id ?? fallbackId,
|
|
75
76
|
expanded: state,
|
|
@@ -85,7 +86,7 @@ const AccordionItem = ({
|
|
|
85
86
|
);
|
|
86
87
|
};
|
|
87
88
|
const Alert = ({ tone, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
88
|
-
|
|
89
|
+
index.Alert,
|
|
89
90
|
{
|
|
90
91
|
tone: typeof tone !== "boolean" ? tone : void 0,
|
|
91
92
|
...restProps
|
|
@@ -108,7 +109,7 @@ function Autosuggest({
|
|
|
108
109
|
blankValue
|
|
109
110
|
);
|
|
110
111
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
111
|
-
|
|
112
|
+
index.Autosuggest,
|
|
112
113
|
{
|
|
113
114
|
id: id ?? fallbackId,
|
|
114
115
|
value: state,
|
|
@@ -122,7 +123,7 @@ function Autosuggest({
|
|
|
122
123
|
);
|
|
123
124
|
}
|
|
124
125
|
const Badge = ({ tone, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
125
|
-
|
|
126
|
+
index.Badge,
|
|
126
127
|
{
|
|
127
128
|
tone: typeof tone !== "boolean" ? tone : void 0,
|
|
128
129
|
...restProps
|
|
@@ -193,7 +194,7 @@ const ButtonLink = React.forwardRef(
|
|
|
193
194
|
({ variant, ...restProps }, ref) => {
|
|
194
195
|
const isValidVariant = variant && ToastContext.buttonVariants.indexOf(variant) > -1;
|
|
195
196
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
196
|
-
|
|
197
|
+
index.ButtonLink,
|
|
197
198
|
{
|
|
198
199
|
ref,
|
|
199
200
|
variant: isValidVariant ? variant : void 0,
|
|
@@ -204,9 +205,9 @@ const ButtonLink = React.forwardRef(
|
|
|
204
205
|
);
|
|
205
206
|
ButtonLink.displayName = "ButtonLink";
|
|
206
207
|
const Card = ({ component, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
207
|
-
|
|
208
|
+
index.Card,
|
|
208
209
|
{
|
|
209
|
-
component: component &&
|
|
210
|
+
component: component && index.validCardComponents.indexOf(component) > -1 ? component : void 0,
|
|
210
211
|
...restProps
|
|
211
212
|
}
|
|
212
213
|
);
|
|
@@ -225,7 +226,7 @@ const Checkbox = ({
|
|
|
225
226
|
false
|
|
226
227
|
);
|
|
227
228
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
228
|
-
|
|
229
|
+
index.Checkbox,
|
|
229
230
|
{
|
|
230
231
|
id: id ?? fallbackId,
|
|
231
232
|
checked: state,
|
|
@@ -250,7 +251,7 @@ const CheckboxStandalone = ({
|
|
|
250
251
|
false
|
|
251
252
|
);
|
|
252
253
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
253
|
-
|
|
254
|
+
index.CheckboxStandalone,
|
|
254
255
|
{
|
|
255
256
|
id: id ?? fallbackId,
|
|
256
257
|
checked: state,
|
|
@@ -261,7 +262,13 @@ const CheckboxStandalone = ({
|
|
|
261
262
|
);
|
|
262
263
|
};
|
|
263
264
|
const validSpaceValues = Object.keys(styles_lib_css_atoms_atomicProperties_cjs.space);
|
|
264
|
-
const cleanSpaceValue = (space) =>
|
|
265
|
+
const cleanSpaceValue = (space) => {
|
|
266
|
+
const validResponsiveObject = typeof space === "object" && Object.keys(space).some(
|
|
267
|
+
(bp) => styles_lib_css_breakpoints_cjs.breakpointNames.includes(bp) && validSpaceValues.includes(space[bp])
|
|
268
|
+
);
|
|
269
|
+
const validSpace = typeof space === "string" && validSpaceValues.includes(space);
|
|
270
|
+
return validSpace || validResponsiveObject ? space : void 0;
|
|
271
|
+
};
|
|
265
272
|
const Columns = ({
|
|
266
273
|
space,
|
|
267
274
|
align,
|
|
@@ -271,7 +278,7 @@ const Columns = ({
|
|
|
271
278
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
272
279
|
ToastContext.Columns,
|
|
273
280
|
{
|
|
274
|
-
space: cleanSpaceValue(space),
|
|
281
|
+
space: cleanSpaceValue(space) || "none",
|
|
275
282
|
align: typeof align !== "boolean" ? align : void 0,
|
|
276
283
|
alignY: typeof alignY !== "boolean" ? alignY : void 0,
|
|
277
284
|
component: component && ToastContext.validColumnsComponents.indexOf(component) > -1 ? component : void 0,
|
|
@@ -293,11 +300,11 @@ const Dialog = ({
|
|
|
293
300
|
false
|
|
294
301
|
);
|
|
295
302
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
296
|
-
|
|
303
|
+
index.AllowCloseContext.Provider,
|
|
297
304
|
{
|
|
298
305
|
value: onClose !== void 0 || stateName !== void 0,
|
|
299
306
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
300
|
-
|
|
307
|
+
index.Dialog,
|
|
301
308
|
{
|
|
302
309
|
id: id ?? fallbackId,
|
|
303
310
|
open: state,
|
|
@@ -325,7 +332,7 @@ const Disclosure = ({
|
|
|
325
332
|
false
|
|
326
333
|
);
|
|
327
334
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
328
|
-
|
|
335
|
+
index.Disclosure,
|
|
329
336
|
{
|
|
330
337
|
id: id ?? fallbackId,
|
|
331
338
|
expanded: state,
|
|
@@ -351,11 +358,11 @@ const Drawer = ({
|
|
|
351
358
|
false
|
|
352
359
|
);
|
|
353
360
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
354
|
-
|
|
361
|
+
index.AllowCloseContext.Provider,
|
|
355
362
|
{
|
|
356
363
|
value: onClose !== void 0 || stateName !== void 0,
|
|
357
364
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
358
|
-
|
|
365
|
+
index.Drawer,
|
|
359
366
|
{
|
|
360
367
|
id: id ?? fallbackId,
|
|
361
368
|
...restProps,
|
|
@@ -381,7 +388,7 @@ const Dropdown = ({
|
|
|
381
388
|
""
|
|
382
389
|
);
|
|
383
390
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
384
|
-
|
|
391
|
+
index.Dropdown,
|
|
385
392
|
{
|
|
386
393
|
id: id ?? fallbackId,
|
|
387
394
|
value: state,
|
|
@@ -398,7 +405,7 @@ const FieldLabel = ({
|
|
|
398
405
|
const fallbackId = useFallbackId();
|
|
399
406
|
const fallbackFor = useFallbackId();
|
|
400
407
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
401
|
-
|
|
408
|
+
index.FieldLabel,
|
|
402
409
|
{
|
|
403
410
|
id: id ?? fallbackId,
|
|
404
411
|
htmlFor: htmlFor ?? fallbackFor,
|
|
@@ -413,15 +420,15 @@ const FieldMessage = ({
|
|
|
413
420
|
}) => {
|
|
414
421
|
const fallbackId = useFallbackId();
|
|
415
422
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
416
|
-
|
|
423
|
+
index.FieldMessage,
|
|
417
424
|
{
|
|
418
425
|
id: id ?? fallbackId,
|
|
419
|
-
tone: tone &&
|
|
426
|
+
tone: tone && index.tones.indexOf(tone) > -1 ? tone : void 0,
|
|
420
427
|
...restProps
|
|
421
428
|
}
|
|
422
429
|
);
|
|
423
430
|
};
|
|
424
|
-
const Heading = ({ level, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
431
|
+
const Heading = ({ level, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(index.Heading, { level: level || "3", ...restProps });
|
|
425
432
|
const Inline = ({
|
|
426
433
|
space,
|
|
427
434
|
align,
|
|
@@ -431,7 +438,7 @@ const Inline = ({
|
|
|
431
438
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
432
439
|
ToastContext.Inline,
|
|
433
440
|
{
|
|
434
|
-
space: cleanSpaceValue(space),
|
|
441
|
+
space: cleanSpaceValue(space) || "none",
|
|
435
442
|
align: typeof align !== "boolean" ? align : void 0,
|
|
436
443
|
alignY: typeof alignY !== "boolean" ? alignY : void 0,
|
|
437
444
|
component: component && ToastContext.validInlineComponents.indexOf(component) > -1 ? component : void 0,
|
|
@@ -440,7 +447,7 @@ const Inline = ({
|
|
|
440
447
|
);
|
|
441
448
|
const Link = React.forwardRef(
|
|
442
449
|
({ href, onClick, ...restProps }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
443
|
-
|
|
450
|
+
index.Link,
|
|
444
451
|
{
|
|
445
452
|
ref,
|
|
446
453
|
href: href ?? "",
|
|
@@ -452,9 +459,9 @@ const Link = React.forwardRef(
|
|
|
452
459
|
const List = ({ space, ...props }) => {
|
|
453
460
|
const cleanSpace = cleanSpaceValue(space);
|
|
454
461
|
if (props.type === "icon" && (!("icon" in props) || !props.icon)) {
|
|
455
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
462
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index.List, { ...props, space: cleanSpace, icon: /* @__PURE__ */ jsxRuntime.jsx(ToastContext.IconClear, {}) });
|
|
456
463
|
}
|
|
457
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
464
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index.List, { space: cleanSpace, ...props });
|
|
458
465
|
};
|
|
459
466
|
const MonthPicker = ({
|
|
460
467
|
id,
|
|
@@ -471,7 +478,7 @@ const MonthPicker = ({
|
|
|
471
478
|
{}
|
|
472
479
|
);
|
|
473
480
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
474
|
-
|
|
481
|
+
index.MonthPicker,
|
|
475
482
|
{
|
|
476
483
|
id: id ?? fallbackId,
|
|
477
484
|
value: state,
|
|
@@ -481,7 +488,7 @@ const MonthPicker = ({
|
|
|
481
488
|
);
|
|
482
489
|
};
|
|
483
490
|
const MenuItem = ({ badge, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
484
|
-
|
|
491
|
+
index.MenuItem,
|
|
485
492
|
{
|
|
486
493
|
badge: typeof badge === "boolean" ? void 0 : badge,
|
|
487
494
|
...restProps
|
|
@@ -489,7 +496,7 @@ const MenuItem = ({ badge, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
|
489
496
|
);
|
|
490
497
|
MenuItem.__isMenuItem__ = true;
|
|
491
498
|
const MenuItemLink = ({ badge, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
492
|
-
|
|
499
|
+
index.MenuItemLink,
|
|
493
500
|
{
|
|
494
501
|
badge: typeof badge === "boolean" ? void 0 : badge,
|
|
495
502
|
...restProps
|
|
@@ -500,7 +507,7 @@ const MenuItemCheckbox = ({
|
|
|
500
507
|
badge,
|
|
501
508
|
...restProps
|
|
502
509
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
503
|
-
|
|
510
|
+
index.MenuItemCheckbox,
|
|
504
511
|
{
|
|
505
512
|
badge: typeof badge === "boolean" ? void 0 : badge,
|
|
506
513
|
...restProps
|
|
@@ -508,7 +515,7 @@ const MenuItemCheckbox = ({
|
|
|
508
515
|
);
|
|
509
516
|
MenuItemCheckbox.__isMenuItem__ = true;
|
|
510
517
|
const Notice = ({ tone, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
511
|
-
|
|
518
|
+
index.Notice,
|
|
512
519
|
{
|
|
513
520
|
tone: typeof tone !== "boolean" ? tone : void 0,
|
|
514
521
|
...restProps
|
|
@@ -516,7 +523,7 @@ const Notice = ({ tone, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
|
516
523
|
);
|
|
517
524
|
const OverflowMenu = ({ id, ...restProps }) => {
|
|
518
525
|
const fallbackId = useFallbackId();
|
|
519
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
526
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index.OverflowMenu, { id: id ?? fallbackId, ...restProps });
|
|
520
527
|
};
|
|
521
528
|
const defaultPage = 1;
|
|
522
529
|
const defaultTotal = 10;
|
|
@@ -533,7 +540,7 @@ const resolveFallbackTotal = (total, resolvedPage) => {
|
|
|
533
540
|
if (typeof total === "number" && total > 0) {
|
|
534
541
|
return total;
|
|
535
542
|
}
|
|
536
|
-
return resolvedPage >
|
|
543
|
+
return resolvedPage > index.defaultPageLimit ? resolvedPage * 2 : defaultTotal;
|
|
537
544
|
};
|
|
538
545
|
const Pagination = ({
|
|
539
546
|
page,
|
|
@@ -558,7 +565,7 @@ const Pagination = ({
|
|
|
558
565
|
setCurrentPage(resolveFallbackPage(page, total));
|
|
559
566
|
}, [page, total]);
|
|
560
567
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
561
|
-
|
|
568
|
+
index.Pagination,
|
|
562
569
|
{
|
|
563
570
|
page: currentPage,
|
|
564
571
|
total: total || fallbackTotal,
|
|
@@ -583,7 +590,7 @@ const PasswordField = ({
|
|
|
583
590
|
""
|
|
584
591
|
);
|
|
585
592
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
586
|
-
|
|
593
|
+
index.PasswordField,
|
|
587
594
|
{
|
|
588
595
|
id: id ?? fallbackId,
|
|
589
596
|
value: state,
|
|
@@ -602,7 +609,7 @@ const Radio = ({
|
|
|
602
609
|
const fallbackId = useFallbackId();
|
|
603
610
|
const [fallbackChecked, setFallbackChecked] = React.useState(false);
|
|
604
611
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
605
|
-
|
|
612
|
+
index.Radio,
|
|
606
613
|
{
|
|
607
614
|
id: id ?? fallbackId,
|
|
608
615
|
checked: checked ?? fallbackChecked,
|
|
@@ -622,7 +629,7 @@ const RadioGroup = ({
|
|
|
622
629
|
const fallbackId = useFallbackId();
|
|
623
630
|
const [state, handleChange] = playroomState.useFallbackState(stateName, value, onChange);
|
|
624
631
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
625
|
-
|
|
632
|
+
index.RadioGroup,
|
|
626
633
|
{
|
|
627
634
|
...restProps,
|
|
628
635
|
id: id ?? fallbackId,
|
|
@@ -633,7 +640,7 @@ const RadioGroup = ({
|
|
|
633
640
|
);
|
|
634
641
|
};
|
|
635
642
|
const Rating = ({ rating, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
636
|
-
|
|
643
|
+
index.Rating,
|
|
637
644
|
{
|
|
638
645
|
rating: typeof rating === "number" ? rating : 0,
|
|
639
646
|
...restProps
|
|
@@ -647,7 +654,7 @@ const Stack = ({
|
|
|
647
654
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
648
655
|
ToastContext.Stack,
|
|
649
656
|
{
|
|
650
|
-
space: cleanSpaceValue(space),
|
|
657
|
+
space: cleanSpaceValue(space) || "none",
|
|
651
658
|
align: typeof align !== "boolean" ? align : void 0,
|
|
652
659
|
component: component && ToastContext.validStackComponents.indexOf(component) > -1 ? component : void 0,
|
|
653
660
|
...restProps
|
|
@@ -658,11 +665,11 @@ const TabsProvider = ({
|
|
|
658
665
|
...restProps
|
|
659
666
|
}) => {
|
|
660
667
|
const fallbackId = useFallbackId();
|
|
661
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
668
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index.TabsProvider, { id: id ?? fallbackId, ...restProps });
|
|
662
669
|
};
|
|
663
|
-
const Tabs = ({ label, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
670
|
+
const Tabs = ({ label, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(index.Tabs, { label: "", ...restProps });
|
|
664
671
|
const Tab = ({ icon, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
665
|
-
|
|
672
|
+
index.Tab,
|
|
666
673
|
{
|
|
667
674
|
icon: typeof icon === "boolean" ? void 0 : icon,
|
|
668
675
|
...restProps
|
|
@@ -672,7 +679,7 @@ Tab.__isTab__ = true;
|
|
|
672
679
|
const Tag = ({ icon, id, ...restProps }) => {
|
|
673
680
|
const fallbackId = useFallbackId();
|
|
674
681
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
675
|
-
|
|
682
|
+
index.Tag,
|
|
676
683
|
{
|
|
677
684
|
id: id ?? fallbackId,
|
|
678
685
|
icon: typeof icon !== "boolean" ? icon : void 0,
|
|
@@ -695,7 +702,7 @@ const Textarea = ({
|
|
|
695
702
|
""
|
|
696
703
|
);
|
|
697
704
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
698
|
-
|
|
705
|
+
index.Textarea,
|
|
699
706
|
{
|
|
700
707
|
id: id ?? fallbackId,
|
|
701
708
|
value: state,
|
|
@@ -709,7 +716,7 @@ const fallbackOptions = ["TextDropdown"];
|
|
|
709
716
|
function resolveValue(value, options) {
|
|
710
717
|
if (typeof value === "undefined") {
|
|
711
718
|
if (Array.isArray(options) && options.length > 0) {
|
|
712
|
-
return
|
|
719
|
+
return index.parseSimpleToComplexOption(options[0]).value;
|
|
713
720
|
}
|
|
714
721
|
return fallbackOptions[0];
|
|
715
722
|
}
|
|
@@ -740,7 +747,7 @@ function TextDropdown({
|
|
|
740
747
|
}
|
|
741
748
|
}, [internalOptions, value, options]);
|
|
742
749
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
743
|
-
|
|
750
|
+
index.TextDropdown,
|
|
744
751
|
{
|
|
745
752
|
id: id ?? fallbackId,
|
|
746
753
|
label: label ?? "No label provided",
|
|
@@ -767,7 +774,7 @@ const TextField = ({
|
|
|
767
774
|
""
|
|
768
775
|
);
|
|
769
776
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
770
|
-
|
|
777
|
+
index.TextField,
|
|
771
778
|
{
|
|
772
779
|
id: id ?? fallbackId,
|
|
773
780
|
value: state,
|
|
@@ -782,9 +789,9 @@ const TextField = ({
|
|
|
782
789
|
);
|
|
783
790
|
};
|
|
784
791
|
const Tiles = ({ space, columns, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
785
|
-
|
|
792
|
+
index.Tiles,
|
|
786
793
|
{
|
|
787
|
-
space: cleanSpaceValue(space),
|
|
794
|
+
space: cleanSpaceValue(space) || "none",
|
|
788
795
|
columns: typeof columns === "boolean" || !columns ? 1 : columns,
|
|
789
796
|
...restProps
|
|
790
797
|
}
|
|
@@ -804,7 +811,7 @@ const Toggle = ({
|
|
|
804
811
|
false
|
|
805
812
|
);
|
|
806
813
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
807
|
-
|
|
814
|
+
index.Toggle,
|
|
808
815
|
{
|
|
809
816
|
id: id ?? fallbackId,
|
|
810
817
|
on: state,
|
|
@@ -893,102 +900,104 @@ if (global.__IS_PLAYROOM_ENVIRONMENT__ !== "clearly") {
|
|
|
893
900
|
+import { Component } from 'braid-design-system';
|
|
894
901
|
`);
|
|
895
902
|
}
|
|
896
|
-
exports.Actions =
|
|
897
|
-
exports.BoxRenderer =
|
|
898
|
-
exports.HiddenVisually =
|
|
899
|
-
exports.IconAdd =
|
|
900
|
-
exports.IconArrow =
|
|
901
|
-
exports.IconBookmark =
|
|
902
|
-
exports.IconCaution =
|
|
903
|
-
exports.IconChevron =
|
|
904
|
-
exports.IconCompany =
|
|
905
|
-
exports.IconCompose =
|
|
906
|
-
exports.IconCopy =
|
|
907
|
-
exports.IconCreditCard =
|
|
908
|
-
exports.IconDate =
|
|
909
|
-
exports.IconDelete =
|
|
910
|
-
exports.IconDesktop =
|
|
911
|
-
exports.IconDocument =
|
|
912
|
-
exports.IconDocumentBroken =
|
|
913
|
-
exports.IconDownload =
|
|
914
|
-
exports.IconEdit =
|
|
915
|
-
exports.IconEducation =
|
|
916
|
-
exports.IconFilter =
|
|
917
|
-
exports.IconFlag =
|
|
918
|
-
exports.IconGrid =
|
|
919
|
-
exports.IconHeart =
|
|
920
|
-
exports.IconHelp =
|
|
921
|
-
exports.IconHistory =
|
|
922
|
-
exports.IconHome =
|
|
923
|
-
exports.IconImage =
|
|
924
|
-
exports.IconInfo =
|
|
925
|
-
exports.IconInvoice =
|
|
926
|
-
exports.IconLanguage =
|
|
927
|
-
exports.IconLink =
|
|
928
|
-
exports.IconLinkBroken =
|
|
929
|
-
exports.IconList =
|
|
930
|
-
exports.IconLocation =
|
|
931
|
-
exports.IconMail =
|
|
932
|
-
exports.
|
|
933
|
-
exports.
|
|
934
|
-
exports.
|
|
935
|
-
exports.
|
|
936
|
-
exports.
|
|
937
|
-
exports.
|
|
938
|
-
exports.
|
|
939
|
-
exports.
|
|
940
|
-
exports.
|
|
941
|
-
exports.
|
|
942
|
-
exports.
|
|
943
|
-
exports.
|
|
944
|
-
exports.
|
|
945
|
-
exports.
|
|
946
|
-
exports.
|
|
947
|
-
exports.
|
|
948
|
-
exports.
|
|
949
|
-
exports.
|
|
950
|
-
exports.
|
|
951
|
-
exports.
|
|
952
|
-
exports.
|
|
953
|
-
exports.
|
|
954
|
-
exports.
|
|
955
|
-
exports.
|
|
956
|
-
exports.
|
|
957
|
-
exports.
|
|
958
|
-
exports.
|
|
959
|
-
exports.
|
|
960
|
-
exports.
|
|
961
|
-
exports.
|
|
962
|
-
exports.
|
|
963
|
-
exports.
|
|
964
|
-
exports.
|
|
965
|
-
exports.
|
|
966
|
-
exports.
|
|
967
|
-
exports.
|
|
968
|
-
exports.
|
|
969
|
-
exports.
|
|
970
|
-
exports.
|
|
971
|
-
exports.
|
|
972
|
-
exports.
|
|
973
|
-
exports.
|
|
974
|
-
exports.
|
|
975
|
-
exports.
|
|
976
|
-
exports.
|
|
977
|
-
exports.
|
|
978
|
-
exports.
|
|
979
|
-
exports.
|
|
980
|
-
exports.
|
|
981
|
-
exports.
|
|
982
|
-
exports.
|
|
983
|
-
exports.
|
|
984
|
-
exports.
|
|
985
|
-
exports.
|
|
986
|
-
exports.
|
|
987
|
-
exports.
|
|
988
|
-
exports.
|
|
989
|
-
exports.
|
|
990
|
-
exports.
|
|
991
|
-
exports.
|
|
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;
|
|
992
1001
|
exports.BraidPortal = ToastContext.BraidPortal;
|
|
993
1002
|
exports.Column = ToastContext.Column;
|
|
994
1003
|
exports.ContentBlock = ToastContext.ContentBlock;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Accordion$1 as Accordion, AccordionItem$1 as AccordionItem, Actions, Alert$1 as Alert, Autosuggest$1 as Autosuggest, Badge$1 as Badge, Bleed$1 as Bleed, Box, BoxRenderer, BraidPortal, BraidProvider, Button$1 as Button, ButtonIcon$1 as ButtonIcon, ButtonLink$1 as ButtonLink, Card$1 as Card, Checkbox$1 as Checkbox, CheckboxStandalone$1 as CheckboxStandalone, Column, Columns$1 as Columns, ContentBlock, Dialog$1 as Dialog, Disclosure$1 as Disclosure, Divider, Drawer$1 as Drawer, Dropdown$1 as Dropdown, FieldLabel$1 as FieldLabel, FieldMessage$1 as FieldMessage, Heading$1 as Heading, Hidden, HiddenVisually, IconAdd, IconArrow, IconBookmark, IconCaution, IconChevron, IconClear, IconCompany, IconCompose, IconCopy, IconCreditCard, IconCritical, IconDate, IconDelete, IconDesktop, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconFilter, IconFlag, IconGrid, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconInfo, IconInvoice, IconLanguage, IconLink, IconLinkBroken, IconList, IconLocation, IconMail, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPlatformAndroid, IconPlatformApple, IconPositive, IconPrint, IconProfile, IconPromote, IconRecommended, IconRefresh, IconRenderer, 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, Inline$1 as Inline, Link$1 as Link, LinkComponent, List$1 as List, Loader, MenuItem$1 as MenuItem, MenuItemCheckbox$1 as MenuItemCheckbox, MenuItemDivider, MenuItemLink$1 as MenuItemLink, MenuRenderer, MonthPicker$1 as MonthPicker, Notice$1 as Notice, OverflowMenu$1 as OverflowMenu, Pagination$1 as Pagination, PasswordField$1 as PasswordField, Placeholder, Radio$1 as Radio, RadioGroup$1 as RadioGroup, RadioItem, Rating$1 as Rating, Secondary, Stack$1 as Stack, Step, Stepper, Strong, Tab$1 as Tab, TabPanel, TabPanels, Tabs$1 as Tabs, TabsProvider$1 as TabsProvider, Tag$1 as Tag, Text, TextDropdown$1 as TextDropdown, TextField$1 as TextField, TextLink, TextLinkButton, Textarea$1 as Textarea, ThemeNameConsumer, Tiles$1 as Tiles, ToastProvider, Toggle$1 as Toggle, TooltipRenderer$1 as TooltipRenderer, filterSuggestions, makeLinkComponent, useBreakpoint, useColor, useResponsiveValue, useSpace, useThemeName, useToast } from '../reset.js';
|
|
1
|
+
export { Accordion$1 as Accordion, AccordionItem$1 as AccordionItem, Actions, Alert$1 as Alert, Autosuggest$1 as Autosuggest, Badge$1 as Badge, Bleed$1 as Bleed, Box, BoxRenderer, BraidPortal, BraidProvider, Button$1 as Button, ButtonIcon$1 as ButtonIcon, ButtonLink$1 as ButtonLink, Card$1 as Card, Checkbox$1 as Checkbox, CheckboxStandalone$1 as CheckboxStandalone, Column, Columns$1 as Columns, ContentBlock, Dialog$1 as Dialog, Disclosure$1 as Disclosure, Divider, Drawer$1 as Drawer, Dropdown$1 as Dropdown, FieldLabel$1 as FieldLabel, FieldMessage$1 as FieldMessage, Heading$1 as Heading, Hidden, HiddenVisually, IconAdd, IconArrow, IconBookmark, IconCaution, IconChevron, IconClear, IconCompany, IconCompose, IconCopy, IconCreditCard, IconCritical, 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, IconPositive, IconPrint, IconProfile, IconPromote, IconRecommended, IconRefresh, IconRenderer, 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, Inline$1 as Inline, Link$1 as Link, LinkComponent, List$1 as List, Loader, MenuItem$1 as MenuItem, MenuItemCheckbox$1 as MenuItemCheckbox, MenuItemDivider, MenuItemLink$1 as MenuItemLink, MenuRenderer, MonthPicker$1 as MonthPicker, Notice$1 as Notice, OverflowMenu$1 as OverflowMenu, PageBlock, Pagination$1 as Pagination, PasswordField$1 as PasswordField, Placeholder, Radio$1 as Radio, RadioGroup$1 as RadioGroup, RadioItem, Rating$1 as Rating, Secondary, Stack$1 as Stack, Step, Stepper, Strong, Tab$1 as Tab, TabPanel, TabPanels, Tabs$1 as Tabs, TabsProvider$1 as TabsProvider, Tag$1 as Tag, Text, TextDropdown$1 as TextDropdown, TextField$1 as TextField, TextLink, TextLinkButton, Textarea$1 as Textarea, ThemeNameConsumer, Tiles$1 as Tiles, ToastProvider, Toggle$1 as Toggle, TooltipRenderer$1 as TooltipRenderer, filterSuggestions, makeLinkComponent, useBreakpoint, useColor, useResponsiveValue, useSpace, useThemeName, useToast } from '../reset.js';
|