@abgov/react-components 6.10.0-dev.1 → 6.10.0-dev.10

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.
Files changed (71) hide show
  1. package/experimental/index.d.ts +2 -0
  2. package/experimental/work-side-menu/work-side-menu.d.ts +34 -0
  3. package/experimental/work-side-menu-item/work-side-menu-item.d.ts +32 -0
  4. package/experimental.js +61 -1
  5. package/experimental.js.map +1 -1
  6. package/experimental.mjs +62 -2
  7. package/experimental.mjs.map +1 -1
  8. package/{icon-CK55b563.js → icon-B3p90m2x.js} +21 -26
  9. package/icon-B3p90m2x.js.map +1 -0
  10. package/{icon-CoYGOp1V.mjs → icon-CCNDGfBO.mjs} +22 -27
  11. package/icon-CCNDGfBO.mjs.map +1 -0
  12. package/index.d.ts +2 -0
  13. package/index.js +382 -718
  14. package/index.js.map +1 -1
  15. package/index.mjs +381 -716
  16. package/index.mjs.map +1 -1
  17. package/lib/accordion/accordion.d.ts +6 -5
  18. package/lib/app-header/app-header.d.ts +6 -4
  19. package/lib/app-header-menu/app-header-menu.d.ts +3 -3
  20. package/lib/badge/badge.d.ts +3 -3
  21. package/lib/block/block.d.ts +9 -3
  22. package/lib/button/button.d.ts +6 -5
  23. package/lib/button-group/button-group.d.ts +3 -3
  24. package/lib/calendar/calendar.d.ts +6 -5
  25. package/lib/callout/callout.d.ts +3 -3
  26. package/lib/card/card-actions.d.ts +3 -2
  27. package/lib/card/card-content.d.ts +3 -2
  28. package/lib/card/card-group.d.ts +3 -2
  29. package/lib/card/card-image.d.ts +3 -2
  30. package/lib/card/card.d.ts +3 -3
  31. package/lib/checkbox/checkbox.d.ts +6 -5
  32. package/lib/chip/chip.d.ts +6 -5
  33. package/lib/common/extract-props.d.ts +32 -0
  34. package/lib/container/container.d.ts +7 -3
  35. package/lib/data-grid/data-grid.d.ts +21 -0
  36. package/lib/date-picker/date-picker.d.ts +6 -5
  37. package/lib/details/details.d.ts +3 -3
  38. package/lib/dropdown/dropdown.d.ts +6 -5
  39. package/lib/file-upload-card/file-upload-card.d.ts +6 -5
  40. package/lib/file-upload-input/file-upload-input.d.ts +6 -5
  41. package/lib/filter-chip/filter-chip.d.ts +6 -5
  42. package/lib/footer/footer.d.ts +3 -2
  43. package/lib/footer-meta-section/footer-meta-section.d.ts +3 -2
  44. package/lib/footer-nav-section/footer-nav-section.d.ts +3 -2
  45. package/lib/form/fieldset.d.ts +7 -6
  46. package/lib/form/public-form-page.d.ts +6 -5
  47. package/lib/form/public-form-summary.d.ts +3 -3
  48. package/lib/form/public-form.d.ts +6 -5
  49. package/lib/form/public-subform-index.d.ts +3 -4
  50. package/lib/form/public-subform.d.ts +6 -5
  51. package/lib/form/task-list.d.ts +3 -3
  52. package/lib/form/task.d.ts +4 -4
  53. package/lib/form-item/form-item.d.ts +3 -3
  54. package/lib/icon/icon.d.ts +3 -4
  55. package/lib/icon-button/icon-button.d.ts +6 -5
  56. package/lib/input/input.d.ts +6 -5
  57. package/lib/linear-progress/linear-progress.d.ts +23 -0
  58. package/lib/link/link.d.ts +3 -3
  59. package/lib/link-button/link-button.d.ts +3 -3
  60. package/lib/menu-button/menu-action.d.ts +3 -3
  61. package/lib/menu-button/menu-button.d.ts +9 -3
  62. package/lib/popover/popover.d.ts +3 -3
  63. package/lib/radio-group/radio-group.d.ts +6 -5
  64. package/lib/table/table-sort-header.d.ts +3 -3
  65. package/lib/temporary-notification-ctrl/temporary-notification-ctrl.d.ts +6 -5
  66. package/lib/text/text.d.ts +5 -3
  67. package/lib/textarea/textarea.d.ts +6 -5
  68. package/lib/tooltip/tooltip.d.ts +3 -3
  69. package/package.json +1 -1
  70. package/icon-CK55b563.js.map +0 -1
  71. package/icon-CoYGOp1V.mjs.map +0 -1
package/index.js CHANGED
@@ -12,30 +12,22 @@ var _PublicFormController_instances, updateObjectListState_fn, dispatchError_fn;
12
12
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
13
13
  const jsxRuntime = require("react/jsx-runtime");
14
14
  const react = require("react");
15
- const icon = require("./icon-CK55b563.js");
15
+ const icon = require("./icon-B3p90m2x.js");
16
16
  function GoabAccordion({
17
17
  open,
18
- heading,
19
- headingSize,
20
- secondaryText,
21
- headingContent,
22
- iconPosition,
23
- maxWidth,
24
- testId,
25
18
  onChange,
19
+ headingContent,
26
20
  children,
27
- mt,
28
- mr,
29
- mb,
30
- ml
21
+ ...rest
31
22
  }) {
32
23
  const ref = react.useRef(null);
24
+ const _props = icon.transformProps(rest, icon.lowercase);
33
25
  react.useEffect(() => {
34
26
  const element = ref.current;
35
27
  if (element && onChange) {
36
28
  const handler = (event) => {
37
29
  const customEvent = event;
38
- onChange(customEvent.detail.open);
30
+ onChange == null ? void 0 : onChange(customEvent.detail.open);
39
31
  };
40
32
  element.addEventListener("_change", handler);
41
33
  return () => {
@@ -48,16 +40,7 @@ function GoabAccordion({
48
40
  {
49
41
  ref,
50
42
  open: open ? "true" : void 0,
51
- headingsize: headingSize,
52
- heading,
53
- secondarytext: secondaryText,
54
- iconposition: iconPosition,
55
- maxwidth: maxWidth,
56
- testid: testId,
57
- mt,
58
- mr,
59
- mb,
60
- ml,
43
+ ..._props,
61
44
  children: [
62
45
  headingContent && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "headingcontent", children: headingContent }),
63
46
  children
@@ -66,15 +49,12 @@ function GoabAccordion({
66
49
  );
67
50
  }
68
51
  function GoabAppHeader({
69
- heading,
70
- url,
71
- maxContentWidth,
72
- fullMenuBreakpoint,
73
- testId,
52
+ onMenuClick,
74
53
  children,
75
- onMenuClick
54
+ ...rest
76
55
  }) {
77
56
  const el = react.useRef(null);
57
+ const _props = icon.transformProps(rest, icon.lowercase);
78
58
  react.useEffect(() => {
79
59
  if (!el.current) {
80
60
  return;
@@ -84,7 +64,7 @@ function GoabAppHeader({
84
64
  }
85
65
  const current = el.current;
86
66
  const listener = () => {
87
- onMenuClick();
67
+ onMenuClick == null ? void 0 : onMenuClick();
88
68
  };
89
69
  current.addEventListener("_menuClick", listener);
90
70
  return () => {
@@ -95,26 +75,18 @@ function GoabAppHeader({
95
75
  "goa-app-header",
96
76
  {
97
77
  ref: el,
98
- heading,
99
- url,
100
- fullmenubreakpoint: fullMenuBreakpoint,
101
- maxcontentwidth: maxContentWidth,
102
- testid: testId,
103
78
  hasmenuclickhandler: onMenuClick ? "true" : "false",
79
+ ..._props,
104
80
  children
105
81
  }
106
82
  );
107
83
  }
108
- function GoabAppHeaderMenu(props) {
109
- return /* @__PURE__ */ jsxRuntime.jsx(
110
- "goa-app-header-menu",
111
- {
112
- heading: props.heading,
113
- leadingicon: props.leadingIcon,
114
- testid: props.testId,
115
- children: props.children
116
- }
117
- );
84
+ function GoabAppHeaderMenu({
85
+ children,
86
+ ...rest
87
+ }) {
88
+ const _props = icon.transformProps(rest, icon.lowercase);
89
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-app-header-menu", { ..._props, children });
118
90
  }
119
91
  function getIconValue(icon2, iconType) {
120
92
  if (icon2 !== void 0) {
@@ -123,30 +95,17 @@ function getIconValue(icon2, iconType) {
123
95
  return iconType ? "true" : "false";
124
96
  }
125
97
  function GoabBadge({
126
- type,
127
- content,
128
- icon: icon2,
129
- testId,
130
- mt,
131
- mr,
132
- mb,
133
- ml,
134
- ariaLabel,
135
- iconType
98
+ icon: icon$1,
99
+ iconType,
100
+ ...rest
136
101
  }) {
102
+ const _props = icon.transformProps(rest, icon.lowercase);
137
103
  return /* @__PURE__ */ jsxRuntime.jsx(
138
104
  "goa-badge",
139
105
  {
140
- type,
141
- content,
142
- icon: getIconValue(icon2, iconType),
143
- testid: testId,
144
- arialabel: ariaLabel,
106
+ icon: getIconValue(icon$1, iconType),
145
107
  icontype: iconType,
146
- mt,
147
- mr,
148
- mb,
149
- ml
108
+ ..._props
150
109
  }
151
110
  );
152
111
  }
@@ -250,42 +209,27 @@ function GoabEmergencyBadge({
250
209
  }
251
210
  );
252
211
  }
253
- function GoabBlock(props) {
254
- return /* @__PURE__ */ jsxRuntime.jsx(
255
- "goa-block",
256
- {
257
- gap: props.gap,
258
- direction: props.direction,
259
- alignment: props.alignment,
260
- mt: props.mt,
261
- mr: props.mr,
262
- mb: props.mb,
263
- ml: props.ml,
264
- testid: props.testId,
265
- children: props.children
266
- }
212
+ function GoabBlock({
213
+ testId,
214
+ children,
215
+ ...rest
216
+ }) {
217
+ const _props = icon.transformProps(
218
+ { testid: testId, ...rest },
219
+ icon.kebab
267
220
  );
221
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-block", { ..._props, children });
268
222
  }
269
223
  function GoabButton({
270
224
  disabled,
271
- type,
272
- size,
273
- variant,
274
- leadingIcon,
275
- trailingIcon,
276
- width,
277
- testId,
278
- children,
279
225
  onClick,
280
- mt,
281
- mr,
282
- mb,
283
- ml,
284
- action,
285
226
  actionArgs,
286
- actionArg
227
+ actionArg,
228
+ children,
229
+ ...rest
287
230
  }) {
288
231
  const el = react.useRef(null);
232
+ const _props = icon.transformProps(rest, icon.lowercase);
289
233
  react.useEffect(() => {
290
234
  if (!el.current) {
291
235
  return;
@@ -295,7 +239,7 @@ function GoabButton({
295
239
  }
296
240
  const current = el.current;
297
241
  const listener = () => {
298
- onClick();
242
+ onClick == null ? void 0 : onClick();
299
243
  };
300
244
  current.addEventListener("_click", listener);
301
245
  return () => {
@@ -306,62 +250,30 @@ function GoabButton({
306
250
  "goa-button",
307
251
  {
308
252
  ref: el,
309
- type,
310
- size,
311
- variant,
312
253
  disabled: disabled ? "true" : void 0,
313
- leadingicon: leadingIcon,
314
- trailingicon: trailingIcon,
315
- width,
316
- testid: testId,
317
- action,
318
254
  "action-arg": actionArg,
319
255
  "action-args": JSON.stringify(actionArgs),
320
- mt,
321
- mr,
322
- mb,
323
- ml,
256
+ ..._props,
324
257
  children
325
258
  }
326
259
  );
327
260
  }
328
261
  function GoabButtonGroup({
329
- alignment,
330
- gap,
331
- testId,
332
262
  children,
333
- mt,
334
- mr,
335
- mb,
336
- ml
263
+ ...rest
337
264
  }) {
338
- return /* @__PURE__ */ jsxRuntime.jsx(
339
- "goa-button-group",
340
- {
341
- alignment,
342
- gap,
343
- mt,
344
- mr,
345
- mb,
346
- ml,
347
- testid: testId,
348
- children
349
- }
350
- );
265
+ const _props = icon.transformProps(rest, icon.lowercase);
266
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-button-group", { ..._props, children });
351
267
  }
352
268
  function GoabCalendar({
353
- name,
354
- value,
355
269
  min,
356
270
  max,
357
- testId,
358
- mt,
359
- mr,
360
- mb,
361
- ml,
362
- onChange
271
+ onChange,
272
+ name,
273
+ ...rest
363
274
  }) {
364
275
  const ref = react.useRef(null);
276
+ const _props = icon.transformProps(rest, icon.lowercase);
365
277
  react.useEffect(() => {
366
278
  if (!ref.current) {
367
279
  return;
@@ -383,72 +295,41 @@ function GoabCalendar({
383
295
  {
384
296
  ref,
385
297
  name,
386
- value,
387
298
  min: min || void 0,
388
299
  max: max || void 0,
389
- testid: testId,
390
- mt,
391
- mr,
392
- mb,
393
- ml
300
+ ..._props
394
301
  }
395
302
  );
396
303
  }
397
304
  const GoabCallout = ({
398
- heading,
399
305
  type = "information",
400
306
  iconTheme = "outline",
401
307
  size = "large",
402
- maxWidth,
403
- testId,
404
308
  ariaLive = "off",
405
309
  children,
406
- mt,
407
- mr,
408
- mb,
409
- ml
310
+ ...rest
410
311
  }) => {
411
- return /* @__PURE__ */ jsxRuntime.jsx(
412
- "goa-callout",
413
- {
414
- heading,
415
- type,
416
- size,
417
- maxwidth: maxWidth,
418
- arialive: ariaLive,
419
- icontheme: iconTheme,
420
- mt,
421
- mr,
422
- mb,
423
- ml,
424
- testid: testId,
425
- children
426
- }
312
+ const _props = icon.transformProps(
313
+ { type, icontheme: iconTheme, size, arialive: ariaLive, ...rest },
314
+ icon.lowercase
427
315
  );
316
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-callout", { ..._props, children });
428
317
  };
429
318
  function GoabCheckbox({
430
- id,
431
- name,
432
- testId,
433
319
  error,
434
- disabled,
435
320
  checked,
436
321
  indeterminate,
322
+ disabled,
437
323
  value,
438
- text,
439
324
  description,
440
325
  reveal,
441
- revealAriaLabel,
442
- maxWidth,
443
- children,
444
326
  onChange,
445
- ariaLabel,
446
- mt,
447
- mr,
448
- mb,
449
- ml
327
+ name,
328
+ children,
329
+ ...rest
450
330
  }) {
451
331
  const el = react.useRef(null);
332
+ const _props = icon.transformProps(rest, icon.lowercase);
452
333
  react.useEffect(() => {
453
334
  if (!el.current) {
454
335
  return;
@@ -466,24 +347,15 @@ function GoabCheckbox({
466
347
  return /* @__PURE__ */ jsxRuntime.jsxs(
467
348
  "goa-checkbox",
468
349
  {
469
- testid: testId,
470
350
  ref: el,
471
- id,
351
+ ..._props,
472
352
  name,
473
353
  error: error ? "true" : void 0,
474
354
  checked: checked ? "true" : void 0,
475
355
  indeterminate: indeterminate ? "true" : void 0,
476
356
  disabled: disabled ? "true" : void 0,
477
- text,
478
357
  value: typeof value === "boolean" ? value ? "true" : void 0 : value,
479
- arialabel: ariaLabel,
480
- revealarialabel: revealAriaLabel,
481
358
  description: typeof description === "string" ? description : void 0,
482
- maxwidth: maxWidth,
483
- mt,
484
- mr,
485
- mb,
486
- ml,
487
359
  children: [
488
360
  children,
489
361
  typeof description !== "string" && description && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "description", children: description }),
@@ -550,26 +422,19 @@ function GoabCheckboxList({
550
422
  );
551
423
  }
552
424
  const GoabChip = ({
553
- leadingIcon,
554
- iconTheme,
555
- deletable,
556
425
  error,
557
- variant,
558
- content,
426
+ deletable,
559
427
  onClick,
560
- mt,
561
- mr,
562
- mb,
563
- ml,
564
- testId
428
+ ...rest
565
429
  }) => {
566
430
  const el = react.useRef(null);
431
+ const _props = icon.transformProps(rest, icon.lowercase);
567
432
  react.useEffect(() => {
568
433
  if (!el.current) return;
569
434
  if (!onClick) return;
570
435
  const current = el.current;
571
436
  const listener = () => {
572
- onClick();
437
+ onClick == null ? void 0 : onClick();
573
438
  };
574
439
  current.addEventListener("_click", listener);
575
440
  return () => {
@@ -580,17 +445,9 @@ const GoabChip = ({
580
445
  "goa-chip",
581
446
  {
582
447
  ref: el,
583
- leadingicon: leadingIcon,
584
- icontheme: iconTheme,
585
448
  error: error ? "true" : void 0,
586
449
  deletable: deletable ? "true" : void 0,
587
- content,
588
- variant,
589
- mt,
590
- mr,
591
- mb,
592
- ml,
593
- testid: testId
450
+ ..._props
594
451
  }
595
452
  );
596
453
  };
@@ -615,61 +472,48 @@ const GoabCircularProgress = ({
615
472
  );
616
473
  };
617
474
  function GoabContainer({
618
- accent,
619
475
  heading,
620
476
  title,
621
- padding,
622
- children,
623
477
  actions,
624
- type,
625
- width,
626
- maxWidth,
627
- mt,
628
- mr,
629
- mb,
630
- ml,
631
- testId
478
+ children,
479
+ ...rest
632
480
  }) {
481
+ const _props = icon.transformProps(rest, icon.lowercase);
633
482
  const headingContent = heading || title;
634
- return /* @__PURE__ */ jsxRuntime.jsxs(
635
- "goa-container",
483
+ return /* @__PURE__ */ jsxRuntime.jsxs("goa-container", { ..._props, children: [
484
+ headingContent && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "title", children: headingContent }),
485
+ children,
486
+ actions && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "actions", children: actions })
487
+ ] });
488
+ }
489
+ function GoabDataGrid({
490
+ keyboardIconVisibility = "visible",
491
+ keyboardIconPosition = "left",
492
+ keyboardNav,
493
+ children
494
+ }) {
495
+ return /* @__PURE__ */ jsxRuntime.jsx(
496
+ "goa-data-grid",
636
497
  {
637
- type,
638
- padding,
639
- accent,
640
- width,
641
- maxwidth: maxWidth,
642
- mt,
643
- mr,
644
- mb,
645
- ml,
646
- testid: testId,
647
- children: [
648
- headingContent && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "title", children: headingContent }),
649
- children,
650
- actions && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "actions", children: actions })
651
- ]
498
+ "keyboard-icon-visibility": keyboardIconVisibility,
499
+ "keyboard-icon-position": keyboardIconPosition,
500
+ "keyboard-nav": keyboardNav,
501
+ children
652
502
  }
653
503
  );
654
504
  }
655
505
  function GoabDatePicker({
656
- name,
657
506
  value,
658
507
  error,
659
508
  min,
660
509
  max,
661
- testId,
662
510
  disabled,
663
- type,
664
- mt,
665
- mr,
666
- mb,
667
- ml,
668
511
  relative,
669
- width,
670
- onChange
512
+ onChange,
513
+ ...rest
671
514
  }) {
672
515
  const ref = react.useRef(null);
516
+ const _props = icon.transformProps(rest, icon.lowercase);
673
517
  react.useEffect(() => {
674
518
  if (value && typeof value !== "string") {
675
519
  console.warn("Using a `Date` type for value is deprecated. Instead use a string of the format `yyyy-mm-dd`");
@@ -693,47 +537,39 @@ function GoabDatePicker({
693
537
  }
694
538
  };
695
539
  }, [onChange]);
696
- const formatValue = (value2) => {
697
- if (!value2) return "";
698
- if (value2 instanceof Date) {
699
- return value2.toISOString();
540
+ const formatValue = (val) => {
541
+ if (!val) return "";
542
+ if (val instanceof Date) {
543
+ return val.toISOString();
700
544
  }
701
- return value2;
545
+ return val;
702
546
  };
703
547
  return /* @__PURE__ */ jsxRuntime.jsx(
704
548
  "goa-date-picker",
705
549
  {
706
550
  ref,
707
- name,
708
551
  value: formatValue(value) || void 0,
709
- type,
710
552
  error: error ? "true" : void 0,
711
553
  disabled: disabled ? "true" : void 0,
712
554
  min: formatValue(min) || void 0,
713
555
  max: formatValue(max) || void 0,
714
- testid: testId,
715
- mt,
716
- mr,
717
- mb,
718
- ml,
719
556
  relative: relative ? "true" : void 0,
720
- width
557
+ ..._props
721
558
  }
722
559
  );
723
560
  }
724
- function GoabDetails(props) {
561
+ function GoabDetails({
562
+ open,
563
+ children,
564
+ ...rest
565
+ }) {
566
+ const _props = icon.transformProps(rest, icon.lowercase);
725
567
  return /* @__PURE__ */ jsxRuntime.jsx(
726
568
  "goa-details",
727
569
  {
728
- heading: props.heading,
729
- open: props.open ? "true" : void 0,
730
- maxwidth: props.maxWidth,
731
- testid: props.testId,
732
- mt: props.mt,
733
- mr: props.mr,
734
- mb: props.mb,
735
- ml: props.ml,
736
- children: props.children
570
+ open: open ? "true" : void 0,
571
+ ..._props,
572
+ children
737
573
  }
738
574
  );
739
575
  }
@@ -758,54 +594,51 @@ function stringify(value) {
758
594
  }
759
595
  return JSON.stringify(value);
760
596
  }
761
- function GoabDropdown(props) {
597
+ function GoabDropdown({
598
+ value,
599
+ onChange,
600
+ disabled,
601
+ error,
602
+ filterable,
603
+ multiselect,
604
+ native,
605
+ relative,
606
+ children,
607
+ ...rest
608
+ }) {
762
609
  const el = react.useRef(null);
610
+ const _props = icon.transformProps(rest, icon.lowercase);
763
611
  react.useEffect(() => {
764
612
  if (!el.current) {
765
613
  return;
766
614
  }
767
615
  const current = el.current;
768
616
  const handler = (e) => {
769
- var _a;
770
617
  const detail = e.detail;
771
- (_a = props.onChange) == null ? void 0 : _a.call(props, detail);
618
+ onChange == null ? void 0 : onChange(detail);
772
619
  };
773
- if (props.onChange) {
620
+ if (onChange) {
774
621
  current.addEventListener("_change", handler);
775
622
  }
776
623
  return () => {
777
- if (props.onChange) {
624
+ if (onChange) {
778
625
  current.removeEventListener("_change", handler);
779
626
  }
780
627
  };
781
- }, [el, props]);
628
+ }, [el, onChange]);
782
629
  return /* @__PURE__ */ jsxRuntime.jsx(
783
630
  "goa-dropdown",
784
631
  {
785
632
  ref: el,
786
- name: props.name,
787
- value: stringify(props.value),
788
- arialabel: props.ariaLabel,
789
- arialabelledby: props.ariaLabelledBy,
790
- disabled: props.disabled ? "true" : void 0,
791
- error: props.error ? "true" : void 0,
792
- filterable: props.filterable ? "true" : void 0,
793
- leadingicon: props.leadingIcon,
794
- maxheight: props.maxHeight,
795
- mb: props.mb,
796
- ml: props.ml,
797
- mr: props.mr,
798
- mt: props.mt,
799
- multiselect: props.multiselect ? "true" : void 0,
800
- native: props.native ? "true" : void 0,
801
- placeholder: props.placeholder,
802
- testid: props.testId,
803
- width: props.width,
804
- maxwidth: props.maxWidth,
805
- relative: props.relative ? "true" : void 0,
806
- autocomplete: props.autoComplete,
807
- id: props.id,
808
- children: props.children
633
+ value: stringify(value),
634
+ disabled: disabled ? "true" : void 0,
635
+ error: error ? "true" : void 0,
636
+ filterable: filterable ? "true" : void 0,
637
+ multiselect: multiselect ? "true" : void 0,
638
+ native: native ? "true" : void 0,
639
+ relative: relative ? "true" : void 0,
640
+ ..._props,
641
+ children
809
642
  }
810
643
  );
811
644
  }
@@ -834,16 +667,13 @@ function GoabDropdownItem({
834
667
  );
835
668
  }
836
669
  function GoabFileUploadCard({
837
- filename,
838
- size,
839
- type,
840
- progress,
841
- error,
842
- testId,
843
670
  onDelete,
844
- onCancel
671
+ onCancel,
672
+ filename,
673
+ ...rest
845
674
  }) {
846
675
  const el = react.useRef(null);
676
+ const _props = icon.transformProps({ filename, ...rest }, icon.lowercase);
847
677
  react.useEffect(() => {
848
678
  if (!el.current) return;
849
679
  const current = el.current;
@@ -855,28 +685,15 @@ function GoabFileUploadCard({
855
685
  current.removeEventListener("_delete", deleteHandler);
856
686
  current.removeEventListener("_cancel", cancelHandler);
857
687
  };
858
- }, [el, onDelete, onCancel]);
859
- return /* @__PURE__ */ jsxRuntime.jsx(
860
- "goa-file-upload-card",
861
- {
862
- ref: el,
863
- filename,
864
- size,
865
- type,
866
- progress,
867
- error,
868
- testid: testId
869
- }
870
- );
688
+ }, [el, onDelete, onCancel, filename]);
689
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-file-upload-card", { ref: el, ..._props });
871
690
  }
872
691
  function GoabFileUploadInput({
873
- variant,
874
- accept,
875
- maxFileSize,
876
- testId,
877
- onSelectFile
692
+ onSelectFile,
693
+ ...rest
878
694
  }) {
879
695
  const el = react.useRef(null);
696
+ const _props = icon.transformProps(rest, icon.lowercase);
880
697
  react.useEffect(() => {
881
698
  if (!el.current) return;
882
699
  const current = el.current;
@@ -889,56 +706,36 @@ function GoabFileUploadInput({
889
706
  current.removeEventListener("_selectFile", handler);
890
707
  };
891
708
  }, [el, onSelectFile]);
892
- return /* @__PURE__ */ jsxRuntime.jsx(
893
- "goa-file-upload-input",
894
- {
895
- ref: el,
896
- variant,
897
- accept,
898
- maxfilesize: maxFileSize,
899
- testid: testId
900
- }
901
- );
709
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-file-upload-input", { ref: el, ..._props });
902
710
  }
903
711
  function GoabAppFooter({
904
- maxContentWidth,
905
712
  children,
906
- testId,
907
- url
713
+ ...rest
908
714
  }) {
909
- return /* @__PURE__ */ jsxRuntime.jsx("goa-app-footer", { maxcontentwidth: maxContentWidth, testid: testId, url, children });
715
+ const _props = icon.transformProps(rest, icon.lowercase);
716
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-app-footer", { ..._props, children });
910
717
  }
911
718
  function GoabAppFooterMetaSection({
912
- testId,
913
- children
719
+ children,
720
+ ...rest
914
721
  }) {
915
- return /* @__PURE__ */ jsxRuntime.jsx("goa-app-footer-meta-section", { testid: testId, slot: "meta", children });
722
+ const _props = icon.transformProps(rest, icon.lowercase);
723
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-app-footer-meta-section", { slot: "meta", ..._props, children });
916
724
  }
917
725
  function GoabAppFooterNavSection({
918
- heading,
919
- maxColumnCount = 1,
920
- testId,
921
- children
726
+ children,
727
+ ...rest
922
728
  }) {
923
- return /* @__PURE__ */ jsxRuntime.jsx(
924
- "goa-app-footer-nav-section",
925
- {
926
- slot: "nav",
927
- heading,
928
- maxcolumncount: maxColumnCount,
929
- testid: testId,
930
- children
931
- }
932
- );
729
+ const _props = icon.transformProps(rest, icon.lowercase);
730
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-app-footer-nav-section", { slot: "nav", ..._props, children });
933
731
  }
934
732
  function GoabFieldset({
935
- id,
936
- sectionTitle,
937
- dispatchOn,
938
733
  onContinue,
939
- children
734
+ children,
735
+ ...rest
940
736
  }) {
941
737
  const ref = react.useRef(null);
738
+ const _props = icon.transformProps(rest, icon.kebab);
942
739
  react.useEffect(() => {
943
740
  if (!ref.current) return;
944
741
  const current = ref.current;
@@ -955,35 +752,15 @@ function GoabFieldset({
955
752
  }
956
753
  };
957
754
  }, [ref, onContinue]);
958
- return /* @__PURE__ */ jsxRuntime.jsx(
959
- "goa-fieldset",
960
- {
961
- ref,
962
- id,
963
- "section-title": sectionTitle,
964
- "dispatch-on": dispatchOn,
965
- children
966
- }
967
- );
755
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-fieldset", { ref, ..._props, children });
968
756
  }
969
757
  function GoabPublicFormPage({
970
- id = "",
971
- heading = "",
972
- subHeading = "",
973
- summaryHeading = "",
974
- sectionTitle = "",
975
- backUrl = "",
976
- type = "step",
977
- buttonText = "",
978
- buttonVisibility = "visible",
979
758
  onContinue,
980
759
  children,
981
- mt,
982
- mr,
983
- mb,
984
- ml
760
+ ...rest
985
761
  }) {
986
762
  const ref = react.useRef(null);
763
+ const _props = icon.transformProps(rest, icon.kebab);
987
764
  react.useEffect(() => {
988
765
  if (!ref.current) return;
989
766
  const current = ref.current;
@@ -999,49 +776,28 @@ function GoabPublicFormPage({
999
776
  }
1000
777
  };
1001
778
  }, [ref, onContinue]);
1002
- return /* @__PURE__ */ jsxRuntime.jsx(
1003
- "goa-public-form-page",
1004
- {
1005
- ref,
1006
- id,
1007
- heading,
1008
- "sub-heading": subHeading,
1009
- "section-title": sectionTitle,
1010
- "back-url": backUrl,
1011
- type,
1012
- "button-text": buttonText,
1013
- "button-visibility": buttonVisibility,
1014
- "summary-heading": summaryHeading,
1015
- mt,
1016
- mr,
1017
- mb,
1018
- ml,
1019
- children
1020
- }
1021
- );
1022
- }
1023
- function GoabPublicFormSummary({
1024
- heading = ""
1025
- }) {
1026
- const ref = react.useRef(null);
1027
- return /* @__PURE__ */ jsxRuntime.jsx(
1028
- "goa-public-form-summary",
1029
- {
1030
- ref,
1031
- heading
1032
- }
779
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-public-form-page", { ref, ..._props, children });
780
+ }
781
+ function GoabPublicFormSummary({
782
+ heading = "",
783
+ ...rest
784
+ }) {
785
+ const _props = icon.transformProps(
786
+ { heading, ...rest },
787
+ icon.lowercase
1033
788
  );
789
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-public-form-summary", { ..._props });
1034
790
  }
1035
791
  function GoabPublicForm({
1036
- status = "complete",
1037
- name,
1038
792
  onInit,
1039
793
  onComplete,
1040
794
  onStateChange,
1041
- children
795
+ children,
796
+ ...rest
1042
797
  }) {
1043
798
  const ref = react.useRef(null);
1044
799
  const initialized = react.useRef(false);
800
+ const _props = icon.transformProps(rest, icon.lowercase);
1045
801
  react.useLayoutEffect(() => {
1046
802
  if (!ref.current) return;
1047
803
  const current = ref.current;
@@ -1077,15 +833,7 @@ function GoabPublicForm({
1077
833
  }
1078
834
  };
1079
835
  }, [onInit, onComplete, onStateChange]);
1080
- return /* @__PURE__ */ jsxRuntime.jsx(
1081
- "goa-public-form",
1082
- {
1083
- ref,
1084
- status,
1085
- name,
1086
- children
1087
- }
1088
- );
836
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-public-form", { ref, ..._props, children });
1089
837
  }
1090
838
  function GoabPublicSubform({
1091
839
  id = "",
@@ -1094,12 +842,13 @@ function GoabPublicSubform({
1094
842
  onInit,
1095
843
  onStateChange,
1096
844
  children,
1097
- mt,
1098
- mr,
1099
- mb,
1100
- ml
845
+ ...rest
1101
846
  }) {
1102
847
  const ref = react.useRef(null);
848
+ const _props = icon.transformProps(
849
+ { id, name, "continue-msg": continueMsg, ...rest },
850
+ icon.kebab
851
+ );
1103
852
  react.useEffect(() => {
1104
853
  if (!ref.current) return;
1105
854
  const current = ref.current;
@@ -1124,20 +873,7 @@ function GoabPublicSubform({
1124
873
  }
1125
874
  };
1126
875
  }, [ref, onInit, onStateChange]);
1127
- return /* @__PURE__ */ jsxRuntime.jsx(
1128
- "goa-public-subform",
1129
- {
1130
- ref,
1131
- id,
1132
- name,
1133
- "continue-msg": continueMsg,
1134
- mt,
1135
- mr,
1136
- mb,
1137
- ml,
1138
- children
1139
- }
1140
- );
876
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-public-subform", { ref, ..._props, children });
1141
877
  }
1142
878
  function GoabPublicSubformIndex({
1143
879
  heading = "",
@@ -1145,86 +881,47 @@ function GoabPublicSubformIndex({
1145
881
  actionButtonText = "",
1146
882
  buttonVisibility = "hidden",
1147
883
  children,
1148
- mt,
1149
- mr,
1150
- mb,
1151
- ml
884
+ ...rest
1152
885
  }) {
1153
- const ref = react.useRef(null);
1154
- return /* @__PURE__ */ jsxRuntime.jsx(
1155
- "goa-public-subform-index",
1156
- {
1157
- ref,
1158
- heading,
1159
- "section-title": sectionTitle,
1160
- "action-button-text": actionButtonText,
1161
- "button-visibility": buttonVisibility,
1162
- slot: "subform-index",
1163
- mt,
1164
- mr,
1165
- mb,
1166
- ml,
1167
- children
1168
- }
886
+ const _props = icon.transformProps(
887
+ { heading, "section-title": sectionTitle, "action-button-text": actionButtonText, "button-visibility": buttonVisibility, ...rest },
888
+ icon.kebab
1169
889
  );
890
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-public-subform-index", { slot: "subform-index", ..._props, children });
1170
891
  }
1171
- function GoabPublicFormTask({ status = "cannot-start", children }) {
1172
- return /* @__PURE__ */ jsxRuntime.jsx("goa-public-form-task", { status, children });
892
+ function GoabPublicFormTask({
893
+ status = "cannot-start",
894
+ children,
895
+ ...rest
896
+ }) {
897
+ const _props = icon.transformProps(
898
+ { status, ...rest },
899
+ icon.lowercase
900
+ );
901
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-public-form-task", { ..._props, children });
1173
902
  }
1174
903
  function GoabPublicFormTaskList({
1175
- heading = "",
1176
904
  children,
1177
- mt,
1178
- mr,
1179
- mb,
1180
- ml
905
+ ...rest
1181
906
  }) {
1182
- return /* @__PURE__ */ jsxRuntime.jsx(
1183
- "goa-public-form-task-list",
1184
- {
1185
- heading,
1186
- mt,
1187
- mr,
1188
- mb,
1189
- ml,
1190
- children
1191
- }
1192
- );
907
+ const _props = icon.transformProps(rest, icon.lowercase);
908
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-public-form-task-list", { ..._props, children });
1193
909
  }
1194
910
  function GoabFormItem({
1195
- children,
1196
- helpText,
1197
911
  error,
1198
- requirement,
1199
- label,
1200
- labelSize,
1201
- maxWidth,
912
+ helpText,
1202
913
  publicFormSummaryOrder,
1203
- name,
1204
- mt,
1205
- mr,
1206
- mb,
1207
- ml,
1208
- testId,
1209
- id
914
+ children,
915
+ ...rest
1210
916
  }) {
917
+ const _props = icon.transformProps(rest, icon.lowercase);
1211
918
  return /* @__PURE__ */ jsxRuntime.jsxs(
1212
919
  "goa-form-item",
1213
920
  {
1214
- label,
1215
- labelsize: labelSize,
1216
921
  error: typeof error === "string" ? error : void 0,
1217
- requirement,
1218
922
  helptext: typeof helpText === "string" ? helpText : void 0,
1219
- maxwidth: maxWidth,
1220
923
  "public-form-summary-order": publicFormSummaryOrder,
1221
- name,
1222
- mt,
1223
- mr,
1224
- mb,
1225
- ml,
1226
- testid: testId,
1227
- id,
924
+ ..._props,
1228
925
  children: [
1229
926
  error && typeof error !== "string" && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "error", children: error }),
1230
927
  helpText && typeof helpText !== "string" && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "helptext", children: helpText }),
@@ -1329,24 +1026,20 @@ function GoabHeroBannerActions({
1329
1026
  return /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "actions", children });
1330
1027
  }
1331
1028
  function GoabIconButton({
1332
- icon: icon2,
1333
- disabled,
1334
1029
  variant = "color",
1335
- onClick,
1336
1030
  size = "medium",
1337
- title,
1338
- ariaLabel,
1339
- testId,
1340
- children,
1341
- mt,
1342
- mr,
1343
- mb,
1344
- ml,
1345
- action,
1031
+ disabled,
1032
+ onClick,
1346
1033
  actionArgs,
1347
- actionArg
1034
+ actionArg,
1035
+ children,
1036
+ ...rest
1348
1037
  }) {
1349
1038
  const ref = react.useRef(null);
1039
+ const _props = icon.transformProps(
1040
+ { variant, size, ...rest },
1041
+ icon.lowercase
1042
+ );
1350
1043
  react.useEffect(() => {
1351
1044
  if (!ref.current) {
1352
1045
  return;
@@ -1356,7 +1049,7 @@ function GoabIconButton({
1356
1049
  }
1357
1050
  const current = ref.current;
1358
1051
  const listener = () => {
1359
- onClick();
1052
+ onClick == null ? void 0 : onClick();
1360
1053
  };
1361
1054
  current.addEventListener("_click", listener);
1362
1055
  return () => {
@@ -1367,20 +1060,10 @@ function GoabIconButton({
1367
1060
  "goa-icon-button",
1368
1061
  {
1369
1062
  ref,
1370
- icon: icon2,
1371
1063
  disabled: disabled ? "true" : void 0,
1372
- variant,
1373
- size,
1374
- title,
1375
- arialabel: ariaLabel,
1376
- action,
1377
1064
  "action-arg": actionArg,
1378
1065
  "action-args": JSON.stringify(actionArgs),
1379
- mt,
1380
- mr,
1381
- mb,
1382
- ml,
1383
- testid: testId,
1066
+ ..._props,
1384
1067
  children
1385
1068
  }
1386
1069
  );
@@ -2109,12 +1792,15 @@ const formatters = {
2109
1792
  G: function(date, token, localize2) {
2110
1793
  const era = date.getFullYear() > 0 ? 1 : 0;
2111
1794
  switch (token) {
1795
+ // AD, BC
2112
1796
  case "G":
2113
1797
  case "GG":
2114
1798
  case "GGG":
2115
1799
  return localize2.era(era, { width: "abbreviated" });
1800
+ // A, B
2116
1801
  case "GGGGG":
2117
1802
  return localize2.era(era, { width: "narrow" });
1803
+ // Anno Domini, Before Christ
2118
1804
  case "GGGG":
2119
1805
  default:
2120
1806
  return localize2.era(era, { width: "wide" });
@@ -2164,22 +1850,28 @@ const formatters = {
2164
1850
  Q: function(date, token, localize2) {
2165
1851
  const quarter = Math.ceil((date.getMonth() + 1) / 3);
2166
1852
  switch (token) {
1853
+ // 1, 2, 3, 4
2167
1854
  case "Q":
2168
1855
  return String(quarter);
1856
+ // 01, 02, 03, 04
2169
1857
  case "QQ":
2170
1858
  return addLeadingZeros(quarter, 2);
1859
+ // 1st, 2nd, 3rd, 4th
2171
1860
  case "Qo":
2172
1861
  return localize2.ordinalNumber(quarter, { unit: "quarter" });
1862
+ // Q1, Q2, Q3, Q4
2173
1863
  case "QQQ":
2174
1864
  return localize2.quarter(quarter, {
2175
1865
  width: "abbreviated",
2176
1866
  context: "formatting"
2177
1867
  });
1868
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
2178
1869
  case "QQQQQ":
2179
1870
  return localize2.quarter(quarter, {
2180
1871
  width: "narrow",
2181
1872
  context: "formatting"
2182
1873
  });
1874
+ // 1st quarter, 2nd quarter, ...
2183
1875
  case "QQQQ":
2184
1876
  default:
2185
1877
  return localize2.quarter(quarter, {
@@ -2192,22 +1884,28 @@ const formatters = {
2192
1884
  q: function(date, token, localize2) {
2193
1885
  const quarter = Math.ceil((date.getMonth() + 1) / 3);
2194
1886
  switch (token) {
1887
+ // 1, 2, 3, 4
2195
1888
  case "q":
2196
1889
  return String(quarter);
1890
+ // 01, 02, 03, 04
2197
1891
  case "qq":
2198
1892
  return addLeadingZeros(quarter, 2);
1893
+ // 1st, 2nd, 3rd, 4th
2199
1894
  case "qo":
2200
1895
  return localize2.ordinalNumber(quarter, { unit: "quarter" });
1896
+ // Q1, Q2, Q3, Q4
2201
1897
  case "qqq":
2202
1898
  return localize2.quarter(quarter, {
2203
1899
  width: "abbreviated",
2204
1900
  context: "standalone"
2205
1901
  });
1902
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
2206
1903
  case "qqqqq":
2207
1904
  return localize2.quarter(quarter, {
2208
1905
  width: "narrow",
2209
1906
  context: "standalone"
2210
1907
  });
1908
+ // 1st quarter, 2nd quarter, ...
2211
1909
  case "qqqq":
2212
1910
  default:
2213
1911
  return localize2.quarter(quarter, {
@@ -2223,18 +1921,22 @@ const formatters = {
2223
1921
  case "M":
2224
1922
  case "MM":
2225
1923
  return lightFormatters.M(date, token);
1924
+ // 1st, 2nd, ..., 12th
2226
1925
  case "Mo":
2227
1926
  return localize2.ordinalNumber(month + 1, { unit: "month" });
1927
+ // Jan, Feb, ..., Dec
2228
1928
  case "MMM":
2229
1929
  return localize2.month(month, {
2230
1930
  width: "abbreviated",
2231
1931
  context: "formatting"
2232
1932
  });
1933
+ // J, F, ..., D
2233
1934
  case "MMMMM":
2234
1935
  return localize2.month(month, {
2235
1936
  width: "narrow",
2236
1937
  context: "formatting"
2237
1938
  });
1939
+ // January, February, ..., December
2238
1940
  case "MMMM":
2239
1941
  default:
2240
1942
  return localize2.month(month, { width: "wide", context: "formatting" });
@@ -2244,22 +1946,28 @@ const formatters = {
2244
1946
  L: function(date, token, localize2) {
2245
1947
  const month = date.getMonth();
2246
1948
  switch (token) {
1949
+ // 1, 2, ..., 12
2247
1950
  case "L":
2248
1951
  return String(month + 1);
1952
+ // 01, 02, ..., 12
2249
1953
  case "LL":
2250
1954
  return addLeadingZeros(month + 1, 2);
1955
+ // 1st, 2nd, ..., 12th
2251
1956
  case "Lo":
2252
1957
  return localize2.ordinalNumber(month + 1, { unit: "month" });
1958
+ // Jan, Feb, ..., Dec
2253
1959
  case "LLL":
2254
1960
  return localize2.month(month, {
2255
1961
  width: "abbreviated",
2256
1962
  context: "standalone"
2257
1963
  });
1964
+ // J, F, ..., D
2258
1965
  case "LLLLL":
2259
1966
  return localize2.month(month, {
2260
1967
  width: "narrow",
2261
1968
  context: "standalone"
2262
1969
  });
1970
+ // January, February, ..., December
2263
1971
  case "LLLL":
2264
1972
  default:
2265
1973
  return localize2.month(month, { width: "wide", context: "standalone" });
@@ -2300,6 +2008,7 @@ const formatters = {
2300
2008
  E: function(date, token, localize2) {
2301
2009
  const dayOfWeek = date.getDay();
2302
2010
  switch (token) {
2011
+ // Tue
2303
2012
  case "E":
2304
2013
  case "EE":
2305
2014
  case "EEE":
@@ -2307,16 +2016,19 @@ const formatters = {
2307
2016
  width: "abbreviated",
2308
2017
  context: "formatting"
2309
2018
  });
2019
+ // T
2310
2020
  case "EEEEE":
2311
2021
  return localize2.day(dayOfWeek, {
2312
2022
  width: "narrow",
2313
2023
  context: "formatting"
2314
2024
  });
2025
+ // Tu
2315
2026
  case "EEEEEE":
2316
2027
  return localize2.day(dayOfWeek, {
2317
2028
  width: "short",
2318
2029
  context: "formatting"
2319
2030
  });
2031
+ // Tuesday
2320
2032
  case "EEEE":
2321
2033
  default:
2322
2034
  return localize2.day(dayOfWeek, {
@@ -2330,10 +2042,13 @@ const formatters = {
2330
2042
  const dayOfWeek = date.getDay();
2331
2043
  const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
2332
2044
  switch (token) {
2045
+ // Numerical value (Nth day of week with current locale or weekStartsOn)
2333
2046
  case "e":
2334
2047
  return String(localDayOfWeek);
2048
+ // Padded numerical value
2335
2049
  case "ee":
2336
2050
  return addLeadingZeros(localDayOfWeek, 2);
2051
+ // 1st, 2nd, ..., 7th
2337
2052
  case "eo":
2338
2053
  return localize2.ordinalNumber(localDayOfWeek, { unit: "day" });
2339
2054
  case "eee":
@@ -2341,16 +2056,19 @@ const formatters = {
2341
2056
  width: "abbreviated",
2342
2057
  context: "formatting"
2343
2058
  });
2059
+ // T
2344
2060
  case "eeeee":
2345
2061
  return localize2.day(dayOfWeek, {
2346
2062
  width: "narrow",
2347
2063
  context: "formatting"
2348
2064
  });
2065
+ // Tu
2349
2066
  case "eeeeee":
2350
2067
  return localize2.day(dayOfWeek, {
2351
2068
  width: "short",
2352
2069
  context: "formatting"
2353
2070
  });
2071
+ // Tuesday
2354
2072
  case "eeee":
2355
2073
  default:
2356
2074
  return localize2.day(dayOfWeek, {
@@ -2364,10 +2082,13 @@ const formatters = {
2364
2082
  const dayOfWeek = date.getDay();
2365
2083
  const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
2366
2084
  switch (token) {
2085
+ // Numerical value (same as in `e`)
2367
2086
  case "c":
2368
2087
  return String(localDayOfWeek);
2088
+ // Padded numerical value
2369
2089
  case "cc":
2370
2090
  return addLeadingZeros(localDayOfWeek, token.length);
2091
+ // 1st, 2nd, ..., 7th
2371
2092
  case "co":
2372
2093
  return localize2.ordinalNumber(localDayOfWeek, { unit: "day" });
2373
2094
  case "ccc":
@@ -2375,16 +2096,19 @@ const formatters = {
2375
2096
  width: "abbreviated",
2376
2097
  context: "standalone"
2377
2098
  });
2099
+ // T
2378
2100
  case "ccccc":
2379
2101
  return localize2.day(dayOfWeek, {
2380
2102
  width: "narrow",
2381
2103
  context: "standalone"
2382
2104
  });
2105
+ // Tu
2383
2106
  case "cccccc":
2384
2107
  return localize2.day(dayOfWeek, {
2385
2108
  width: "short",
2386
2109
  context: "standalone"
2387
2110
  });
2111
+ // Tuesday
2388
2112
  case "cccc":
2389
2113
  default:
2390
2114
  return localize2.day(dayOfWeek, {
@@ -2398,27 +2122,34 @@ const formatters = {
2398
2122
  const dayOfWeek = date.getDay();
2399
2123
  const isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
2400
2124
  switch (token) {
2125
+ // 2
2401
2126
  case "i":
2402
2127
  return String(isoDayOfWeek);
2128
+ // 02
2403
2129
  case "ii":
2404
2130
  return addLeadingZeros(isoDayOfWeek, token.length);
2131
+ // 2nd
2405
2132
  case "io":
2406
2133
  return localize2.ordinalNumber(isoDayOfWeek, { unit: "day" });
2134
+ // Tue
2407
2135
  case "iii":
2408
2136
  return localize2.day(dayOfWeek, {
2409
2137
  width: "abbreviated",
2410
2138
  context: "formatting"
2411
2139
  });
2140
+ // T
2412
2141
  case "iiiii":
2413
2142
  return localize2.day(dayOfWeek, {
2414
2143
  width: "narrow",
2415
2144
  context: "formatting"
2416
2145
  });
2146
+ // Tu
2417
2147
  case "iiiiii":
2418
2148
  return localize2.day(dayOfWeek, {
2419
2149
  width: "short",
2420
2150
  context: "formatting"
2421
2151
  });
2152
+ // Tuesday
2422
2153
  case "iiii":
2423
2154
  default:
2424
2155
  return localize2.day(dayOfWeek, {
@@ -2584,13 +2315,21 @@ const formatters = {
2584
2315
  return "Z";
2585
2316
  }
2586
2317
  switch (token) {
2318
+ // Hours and optional minutes
2587
2319
  case "X":
2588
2320
  return formatTimezoneWithOptionalMinutes(timezoneOffset);
2321
+ // Hours, minutes and optional seconds without `:` delimiter
2322
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2323
+ // so this token always has the same output as `XX`
2589
2324
  case "XXXX":
2590
2325
  case "XX":
2591
2326
  return formatTimezone(timezoneOffset);
2327
+ // Hours, minutes and optional seconds with `:` delimiter
2328
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2329
+ // so this token always has the same output as `XXX`
2592
2330
  case "XXXXX":
2593
2331
  case "XXX":
2332
+ // Hours and minutes with `:` delimiter
2594
2333
  default:
2595
2334
  return formatTimezone(timezoneOffset, ":");
2596
2335
  }
@@ -2599,13 +2338,21 @@ const formatters = {
2599
2338
  x: function(date, token, _localize) {
2600
2339
  const timezoneOffset = date.getTimezoneOffset();
2601
2340
  switch (token) {
2341
+ // Hours and optional minutes
2602
2342
  case "x":
2603
2343
  return formatTimezoneWithOptionalMinutes(timezoneOffset);
2344
+ // Hours, minutes and optional seconds without `:` delimiter
2345
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2346
+ // so this token always has the same output as `xx`
2604
2347
  case "xxxx":
2605
2348
  case "xx":
2606
2349
  return formatTimezone(timezoneOffset);
2350
+ // Hours, minutes and optional seconds with `:` delimiter
2351
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2352
+ // so this token always has the same output as `xxx`
2607
2353
  case "xxxxx":
2608
2354
  case "xxx":
2355
+ // Hours and minutes with `:` delimiter
2609
2356
  default:
2610
2357
  return formatTimezone(timezoneOffset, ":");
2611
2358
  }
@@ -2614,10 +2361,12 @@ const formatters = {
2614
2361
  O: function(date, token, _localize) {
2615
2362
  const timezoneOffset = date.getTimezoneOffset();
2616
2363
  switch (token) {
2364
+ // Short
2617
2365
  case "O":
2618
2366
  case "OO":
2619
2367
  case "OOO":
2620
2368
  return "GMT" + formatTimezoneShort(timezoneOffset, ":");
2369
+ // Long
2621
2370
  case "OOOO":
2622
2371
  default:
2623
2372
  return "GMT" + formatTimezone(timezoneOffset, ":");
@@ -2627,10 +2376,12 @@ const formatters = {
2627
2376
  z: function(date, token, _localize) {
2628
2377
  const timezoneOffset = date.getTimezoneOffset();
2629
2378
  switch (token) {
2379
+ // Short
2630
2380
  case "z":
2631
2381
  case "zz":
2632
2382
  case "zzz":
2633
2383
  return "GMT" + formatTimezoneShort(timezoneOffset, ":");
2384
+ // Long
2634
2385
  case "zzzz":
2635
2386
  default:
2636
2387
  return "GMT" + formatTimezone(timezoneOffset, ":");
@@ -2988,45 +2739,23 @@ function validateTimezone(_hours, minutes) {
2988
2739
  return minutes >= 0 && minutes <= 59;
2989
2740
  }
2990
2741
  function GoabInput({
2991
- id,
2992
- debounce,
2993
- name,
2994
- type,
2995
- autoCapitalize,
2996
- autoComplete,
2997
- leadingIcon,
2998
- trailingIcon,
2999
2742
  variant = "goa",
2743
+ textAlign = "left",
3000
2744
  focused,
3001
2745
  disabled,
3002
2746
  readonly,
3003
- value,
3004
- placeholder,
3005
2747
  error,
3006
- width,
3007
- testId,
3008
- min,
3009
- max,
3010
- step,
3011
- prefix,
3012
- suffix,
3013
- ariaLabel,
3014
- mt,
3015
- mr,
3016
- mb,
3017
- ml,
3018
2748
  leadingContent,
3019
2749
  trailingContent,
3020
- maxLength,
3021
- trailingIconAriaLabel,
3022
- textAlign = "left",
3023
2750
  onTrailingIconClick,
3024
2751
  onChange,
3025
2752
  onFocus,
3026
2753
  onBlur,
3027
- onKeyPress
2754
+ onKeyPress,
2755
+ ...rest
3028
2756
  }) {
3029
2757
  const ref = react.useRef(null);
2758
+ const _props = icon.transformProps({ variant, textalign: textAlign, ...rest }, icon.lowercase);
3030
2759
  react.useEffect(() => {
3031
2760
  if (!ref.current) {
3032
2761
  return;
@@ -3068,37 +2797,12 @@ function GoabInput({
3068
2797
  "goa-input",
3069
2798
  {
3070
2799
  ref,
3071
- debounce,
2800
+ ..._props,
3072
2801
  focused: focused ? "true" : void 0,
3073
- type,
3074
- name,
3075
- autocapitalize: autoCapitalize,
3076
- autocomplete: autoComplete,
3077
- id,
3078
- leadingicon: leadingIcon,
3079
- trailingicon: trailingIcon,
3080
- variant,
3081
2802
  disabled: disabled ? "true" : void 0,
3082
2803
  readonly: readonly ? "true" : void 0,
3083
- placeholder,
3084
2804
  error: error ? "true" : void 0,
3085
- testid: testId,
3086
- value,
3087
- width,
3088
- min,
3089
- max,
3090
- step,
3091
- maxlength: maxLength,
3092
- prefix,
3093
- suffix,
3094
- arialabel: ariaLabel,
3095
- mt,
3096
- mr,
3097
- mb,
3098
- ml,
3099
2805
  handletrailingiconclick: onTrailingIconClick ? "true" : "false",
3100
- trailingiconarialabel: trailingIconAriaLabel,
3101
- textalign: textAlign,
3102
2806
  children: [
3103
2807
  leadingContent && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "leadingContent", children: leadingContent }),
3104
2808
  trailingContent && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "trailingContent", children: trailingContent })
@@ -3271,47 +2975,64 @@ function GoabInputNumber({
3271
2975
  function GoabInputRange(props) {
3272
2976
  return /* @__PURE__ */ jsxRuntime.jsx(GoabInput, { ...props, type: "range" });
3273
2977
  }
3274
- function GoabLink(props) {
2978
+ const GoabLinearProgress = ({
2979
+ progress,
2980
+ percentVisibility,
2981
+ ariaLabel,
2982
+ ariaLabelledBy,
2983
+ testId
2984
+ }) => {
3275
2985
  return /* @__PURE__ */ jsxRuntime.jsx(
3276
- "goa-link",
2986
+ "goa-linear-progress",
3277
2987
  {
3278
- leadingicon: props.leadingIcon,
3279
- trailingicon: props.trailingIcon,
3280
- action: props.action,
3281
- "action-arg": props.actionArg,
3282
- "action-args": JSON.stringify(props.actionArgs),
3283
- testid: props.testId,
3284
- mt: props.mt,
3285
- mb: props.mb,
3286
- ml: props.ml,
3287
- mr: props.mr,
3288
- children: props.children
2988
+ progress,
2989
+ "percent-visibility": percentVisibility,
2990
+ "aria-label": ariaLabel,
2991
+ "aria-labelledby": ariaLabelledBy,
2992
+ testid: testId
3289
2993
  }
3290
2994
  );
3291
- }
3292
- function GoALinkButton({ type = "primary", ...props }) {
2995
+ };
2996
+ function GoabLink({
2997
+ actionArgs,
2998
+ actionArg,
2999
+ children,
3000
+ ...rest
3001
+ }) {
3002
+ const _props = icon.transformProps(rest, icon.lowercase);
3293
3003
  return /* @__PURE__ */ jsxRuntime.jsx(
3294
- "goa-link-button",
3004
+ "goa-link",
3295
3005
  {
3296
- type,
3297
- leadingicon: props.leadingIcon,
3298
- trailingicon: props.trailingIcon,
3299
- mt: props.mt,
3300
- mb: props.mb,
3301
- ml: props.ml,
3302
- mr: props.mr,
3303
- children: props.children
3006
+ "action-arg": actionArg,
3007
+ "action-args": JSON.stringify(actionArgs),
3008
+ ..._props,
3009
+ children
3304
3010
  }
3305
3011
  );
3306
3012
  }
3013
+ function GoALinkButton({
3014
+ type = "primary",
3015
+ children,
3016
+ ...rest
3017
+ }) {
3018
+ const _props = icon.transformProps(
3019
+ { type, ...rest },
3020
+ icon.lowercase
3021
+ );
3022
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-link-button", { ..._props, children });
3023
+ }
3307
3024
  function GoabMenuButton({
3308
- text,
3309
3025
  type = "primary",
3310
3026
  testId,
3311
3027
  onAction,
3312
- children
3028
+ children,
3029
+ ...rest
3313
3030
  }) {
3314
3031
  const el = react.useRef(null);
3032
+ const _props = icon.transformProps(
3033
+ { type, testid: testId, ...rest },
3034
+ icon.kebab
3035
+ );
3315
3036
  react.useEffect(() => {
3316
3037
  if (!el.current) {
3317
3038
  return;
@@ -3322,17 +3043,18 @@ function GoabMenuButton({
3322
3043
  const current = el.current;
3323
3044
  const listener = (e) => {
3324
3045
  const detail = e.detail;
3325
- onAction(detail);
3046
+ onAction == null ? void 0 : onAction(detail);
3326
3047
  };
3327
3048
  current.addEventListener("_action", listener);
3328
3049
  return () => {
3329
3050
  current.removeEventListener("_action", listener);
3330
3051
  };
3331
3052
  }, [el, onAction]);
3332
- return /* @__PURE__ */ jsxRuntime.jsx("goa-menu-button", { ref: el, text, type, testid: testId, children });
3053
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-menu-button", { ..._props, ref: el, children });
3333
3054
  }
3334
- function GoabMenuAction({ text, icon: icon2, action, testId }) {
3335
- return /* @__PURE__ */ jsxRuntime.jsx("goa-menu-action", { text, action, icon: icon2, testid: testId });
3055
+ function GoabMenuAction(props) {
3056
+ const _props = icon.transformProps(props, icon.lowercase);
3057
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-menu-action", { ..._props });
3336
3058
  }
3337
3059
  function GoabMicrositeHeader({
3338
3060
  type,
@@ -3508,31 +3230,18 @@ function GoabPagination({ onChange, ...props }) {
3508
3230
  }
3509
3231
  function GoabPopover({
3510
3232
  target,
3511
- testId,
3512
- maxWidth,
3513
- minWidth,
3514
3233
  padded,
3515
- position,
3516
3234
  relative,
3517
3235
  children,
3518
- mt,
3519
- mr,
3520
- mb,
3521
- ml
3236
+ ...rest
3522
3237
  }) {
3238
+ const _props = icon.transformProps(rest, icon.lowercase);
3523
3239
  return /* @__PURE__ */ jsxRuntime.jsxs(
3524
3240
  "goa-popover",
3525
3241
  {
3526
- testid: testId,
3527
- maxwidth: maxWidth,
3528
- minwidth: minWidth,
3529
3242
  padded: typeof padded === "undefined" ? void 0 : padded ? "true" : "false",
3530
- position,
3531
3243
  relative: relative ? "true" : void 0,
3532
- mt,
3533
- mr,
3534
- mb,
3535
- ml,
3244
+ ..._props,
3536
3245
  children: [
3537
3246
  children,
3538
3247
  target && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "target", children: target })
@@ -3584,22 +3293,15 @@ function GoabRadioItem({
3584
3293
  );
3585
3294
  }
3586
3295
  function GoabRadioGroup({
3587
- name,
3588
- value,
3589
- children,
3590
- orientation,
3591
3296
  disabled,
3592
3297
  error,
3593
- id,
3594
- testId,
3595
- ariaLabel,
3596
- mt,
3597
- mr,
3598
- mb,
3599
- ml,
3600
- onChange
3298
+ onChange,
3299
+ name,
3300
+ children,
3301
+ ...rest
3601
3302
  }) {
3602
3303
  const el = react.useRef(null);
3304
+ const _props = icon.transformProps(rest, icon.lowercase);
3603
3305
  react.useEffect(() => {
3604
3306
  if (!el.current) return;
3605
3307
  const listener = (e) => {
@@ -3619,19 +3321,11 @@ function GoabRadioGroup({
3619
3321
  return /* @__PURE__ */ jsxRuntime.jsx(
3620
3322
  "goa-radio-group",
3621
3323
  {
3622
- testid: testId,
3623
3324
  ref: el,
3624
- id,
3325
+ ..._props,
3625
3326
  name,
3626
- value,
3627
- orientation,
3628
3327
  disabled: disabled ? "true" : void 0,
3629
3328
  error: error ? "true" : void 0,
3630
- arialabel: ariaLabel,
3631
- mt,
3632
- mr,
3633
- mb,
3634
- ml,
3635
3329
  children
3636
3330
  }
3637
3331
  );
@@ -3746,11 +3440,11 @@ function GoabTable({ onSort, ...props }) {
3746
3440
  );
3747
3441
  }
3748
3442
  function GoabTableSortHeader({
3749
- name,
3750
- direction = "none",
3751
- children
3443
+ children,
3444
+ ...rest
3752
3445
  }) {
3753
- return /* @__PURE__ */ jsxRuntime.jsx("goa-table-sort-header", { name, direction, children });
3446
+ const _props = icon.transformProps(rest, icon.lowercase);
3447
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-table-sort-header", { ..._props, children });
3754
3448
  }
3755
3449
  function GoabTabs({
3756
3450
  initialTab,
@@ -3783,59 +3477,50 @@ function GoabTab({ heading, children }) {
3783
3477
  const GoabTemporaryNotificationCtrl = ({
3784
3478
  verticalPosition = "bottom",
3785
3479
  horizontalPosition = "center",
3786
- testId
3480
+ testId,
3481
+ ...rest
3787
3482
  }) => {
3788
3483
  const el = react.useRef(null);
3484
+ const _props = icon.transformProps(
3485
+ { "vertical-position": verticalPosition, "horizontal-position": horizontalPosition, ...rest },
3486
+ icon.kebab
3487
+ );
3789
3488
  return /* @__PURE__ */ jsxRuntime.jsx(
3790
3489
  "goa-temp-notification-ctrl",
3791
3490
  {
3792
3491
  ref: el,
3793
- "vertical-position": verticalPosition,
3794
- "horizontal-position": horizontalPosition,
3492
+ ..._props,
3795
3493
  testid: testId
3796
3494
  }
3797
3495
  );
3798
3496
  };
3799
- function GoabText(props) {
3497
+ function GoabText({
3498
+ as,
3499
+ tag,
3500
+ children,
3501
+ ...rest
3502
+ }) {
3503
+ const _props = icon.transformProps(rest, icon.lowercase);
3800
3504
  return /* @__PURE__ */ jsxRuntime.jsx(
3801
3505
  "goa-text",
3802
3506
  {
3803
- as: props.tag || props.as,
3804
- size: props.size,
3805
- maxwidth: props.maxWidth,
3806
- color: props.color,
3807
- mt: props.mt,
3808
- mb: props.mb,
3809
- ml: props.ml,
3810
- mr: props.mr,
3811
- children: props.children
3507
+ as: tag || as,
3508
+ ..._props,
3509
+ children
3812
3510
  }
3813
3511
  );
3814
3512
  }
3815
3513
  function GoabTextArea({
3816
- name,
3817
- value,
3818
- placeholder,
3819
- rows,
3820
3514
  readOnly,
3821
3515
  disabled,
3822
- countBy,
3823
- maxCount,
3824
- width,
3825
- maxWidth,
3826
- testId,
3827
3516
  error,
3828
- ariaLabel,
3829
- mt,
3830
- mr,
3831
- mb,
3832
- ml,
3833
- autoComplete,
3834
3517
  onChange,
3835
3518
  onKeyPress,
3836
- onBlur
3519
+ onBlur,
3520
+ ...rest
3837
3521
  }) {
3838
3522
  const el = react.useRef(null);
3523
+ const _props = icon.transformProps(rest, icon.lowercase);
3839
3524
  react.useEffect(() => {
3840
3525
  if (!el.current) {
3841
3526
  return;
@@ -3866,24 +3551,10 @@ function GoabTextArea({
3866
3551
  "goa-textarea",
3867
3552
  {
3868
3553
  ref: el,
3869
- name,
3870
- placeholder,
3871
- value,
3872
- rows,
3873
3554
  readOnly: readOnly ? "true" : void 0,
3874
3555
  disabled: disabled ? "true" : void 0,
3875
- countby: countBy,
3876
- maxcount: maxCount,
3877
- width,
3878
- maxwidth: maxWidth,
3879
3556
  error: error ? "true" : void 0,
3880
- testid: testId,
3881
- arialabel: ariaLabel,
3882
- mt,
3883
- mr,
3884
- mb,
3885
- ml,
3886
- autocomplete: autoComplete
3557
+ ..._props
3887
3558
  }
3888
3559
  );
3889
3560
  }
@@ -3905,23 +3576,21 @@ function GoabThreeColumnLayout(props) {
3905
3576
  }
3906
3577
  );
3907
3578
  }
3908
- function GoabTooltip(props) {
3909
- const isStringContent = typeof props.content === "string";
3579
+ function GoabTooltip({
3580
+ content,
3581
+ children,
3582
+ ...rest
3583
+ }) {
3584
+ const _props = icon.transformProps(rest, icon.lowercase);
3585
+ const isStringContent = typeof content === "string";
3910
3586
  return /* @__PURE__ */ jsxRuntime.jsxs(
3911
3587
  "goa-tooltip",
3912
3588
  {
3913
- position: props.position,
3914
- content: isStringContent ? props.content : void 0,
3915
- halign: props.hAlign,
3916
- testid: props.testId,
3917
- maxwidth: props.maxWidth,
3918
- mt: props.mt,
3919
- mr: props.mr,
3920
- mb: props.mb,
3921
- ml: props.ml,
3589
+ content: isStringContent ? content : void 0,
3590
+ ..._props,
3922
3591
  children: [
3923
- !isStringContent && props.content && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "content", children: props.content }),
3924
- props.children
3592
+ !isStringContent && content && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "content", children: content }),
3593
+ children
3925
3594
  ]
3926
3595
  }
3927
3596
  );
@@ -3944,15 +3613,14 @@ function GoabTwoColumnLayout(props) {
3944
3613
  const GoabFilterChip = ({
3945
3614
  iconTheme = "outline",
3946
3615
  error,
3947
- content,
3948
3616
  onClick,
3949
- mt,
3950
- mr,
3951
- mb,
3952
- ml,
3953
- testId
3617
+ ...rest
3954
3618
  }) => {
3955
3619
  const el = react.useRef(null);
3620
+ const _props = icon.transformProps(
3621
+ { icontheme: iconTheme, ...rest },
3622
+ icon.lowercase
3623
+ );
3956
3624
  react.useEffect(() => {
3957
3625
  if (!el.current) return;
3958
3626
  if (!onClick) return;
@@ -3966,14 +3634,8 @@ const GoabFilterChip = ({
3966
3634
  "goa-filter-chip",
3967
3635
  {
3968
3636
  ref: el,
3969
- icontheme: iconTheme,
3970
3637
  error: error ? "true" : void 0,
3971
- content,
3972
- mt,
3973
- mr,
3974
- mb,
3975
- ml,
3976
- testid: testId
3638
+ ..._props
3977
3639
  }
3978
3640
  );
3979
3641
  };
@@ -4403,6 +4065,7 @@ exports.GoabCheckboxList = GoabCheckboxList;
4403
4065
  exports.GoabChip = GoabChip;
4404
4066
  exports.GoabCircularProgress = GoabCircularProgress;
4405
4067
  exports.GoabContainer = GoabContainer;
4068
+ exports.GoabDataGrid = GoabDataGrid;
4406
4069
  exports.GoabDatePicker = GoabDatePicker;
4407
4070
  exports.GoabDetails = GoabDetails;
4408
4071
  exports.GoabDivider = GoabDivider;
@@ -4437,6 +4100,7 @@ exports.GoabInputTel = GoabInputTel;
4437
4100
  exports.GoabInputText = GoabInputText;
4438
4101
  exports.GoabInputTime = GoabInputTime;
4439
4102
  exports.GoabInputUrl = GoabInputUrl;
4103
+ exports.GoabLinearProgress = GoabLinearProgress;
4440
4104
  exports.GoabLink = GoabLink;
4441
4105
  exports.GoabMenuAction = GoabMenuAction;
4442
4106
  exports.GoabMenuButton = GoabMenuButton;