@abgov/react-components 6.10.0-dev.9 → 6.10.0-next.1

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 (67) hide show
  1. package/experimental.js +1 -1
  2. package/experimental.mjs +2 -2
  3. package/{icon-CK55b563.js → icon-B3p90m2x.js} +21 -26
  4. package/icon-B3p90m2x.js.map +1 -0
  5. package/{icon-CoYGOp1V.mjs → icon-CCNDGfBO.mjs} +22 -27
  6. package/icon-CCNDGfBO.mjs.map +1 -0
  7. package/index.d.ts +1 -0
  8. package/index.js +331 -759
  9. package/index.js.map +1 -1
  10. package/index.mjs +330 -757
  11. package/index.mjs.map +1 -1
  12. package/lib/accordion/accordion.d.ts +6 -5
  13. package/lib/app-header/app-header.d.ts +6 -4
  14. package/lib/app-header-menu/app-header-menu.d.ts +3 -3
  15. package/lib/badge/badge.d.ts +3 -3
  16. package/lib/block/block.d.ts +3 -3
  17. package/lib/button/button.d.ts +6 -5
  18. package/lib/button-group/button-group.d.ts +3 -3
  19. package/lib/calendar/calendar.d.ts +6 -5
  20. package/lib/callout/callout.d.ts +3 -3
  21. package/lib/card/card-actions.d.ts +3 -2
  22. package/lib/card/card-content.d.ts +3 -2
  23. package/lib/card/card-group.d.ts +3 -2
  24. package/lib/card/card-image.d.ts +3 -2
  25. package/lib/card/card.d.ts +3 -3
  26. package/lib/checkbox/checkbox.d.ts +6 -5
  27. package/lib/chip/chip.d.ts +6 -5
  28. package/lib/common/extract-props.d.ts +32 -0
  29. package/lib/container/container.d.ts +3 -3
  30. package/lib/data-grid/data-grid.d.ts +21 -0
  31. package/lib/date-picker/date-picker.d.ts +6 -5
  32. package/lib/details/details.d.ts +3 -3
  33. package/lib/dropdown/dropdown.d.ts +6 -5
  34. package/lib/file-upload-card/file-upload-card.d.ts +6 -5
  35. package/lib/file-upload-input/file-upload-input.d.ts +6 -5
  36. package/lib/filter-chip/filter-chip.d.ts +6 -5
  37. package/lib/footer/footer.d.ts +3 -2
  38. package/lib/footer-meta-section/footer-meta-section.d.ts +3 -2
  39. package/lib/footer-nav-section/footer-nav-section.d.ts +3 -2
  40. package/lib/form/fieldset.d.ts +7 -6
  41. package/lib/form/public-form-page.d.ts +6 -5
  42. package/lib/form/public-form-summary.d.ts +3 -3
  43. package/lib/form/public-form.d.ts +6 -5
  44. package/lib/form/public-subform-index.d.ts +3 -4
  45. package/lib/form/public-subform.d.ts +6 -5
  46. package/lib/form/task-list.d.ts +3 -3
  47. package/lib/form/task.d.ts +4 -4
  48. package/lib/form-item/form-item.d.ts +3 -3
  49. package/lib/icon/icon.d.ts +3 -14
  50. package/lib/icon-button/icon-button.d.ts +6 -5
  51. package/lib/input/input.d.ts +6 -5
  52. package/lib/link/link.d.ts +3 -3
  53. package/lib/link-button/link-button.d.ts +3 -3
  54. package/lib/menu-button/menu-action.d.ts +3 -3
  55. package/lib/menu-button/menu-button.d.ts +3 -3
  56. package/lib/popover/popover.d.ts +3 -3
  57. package/lib/radio-group/radio-group.d.ts +6 -5
  58. package/lib/tab/tab.d.ts +3 -1
  59. package/lib/table/table-sort-header.d.ts +3 -3
  60. package/lib/tabs/tabs.d.ts +4 -2
  61. package/lib/temporary-notification-ctrl/temporary-notification-ctrl.d.ts +6 -5
  62. package/lib/text/text.d.ts +3 -3
  63. package/lib/textarea/textarea.d.ts +6 -5
  64. package/lib/tooltip/tooltip.d.ts +3 -3
  65. package/package.json +1 -1
  66. package/icon-CK55b563.js.map +0 -1
  67. 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,45 +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
- width: props.width,
261
- "min-width": props.minWidth,
262
- "max-width": props.maxWidth,
263
- mt: props.mt,
264
- mr: props.mr,
265
- mb: props.mb,
266
- ml: props.ml,
267
- testid: props.testId,
268
- children: props.children
269
- }
212
+ function GoabBlock({
213
+ testId,
214
+ children,
215
+ ...rest
216
+ }) {
217
+ const _props = icon.transformProps(
218
+ { testid: testId, ...rest },
219
+ icon.kebab
270
220
  );
221
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-block", { ..._props, children });
271
222
  }
272
223
  function GoabButton({
273
224
  disabled,
274
- type,
275
- size,
276
- variant,
277
- leadingIcon,
278
- trailingIcon,
279
- width,
280
- testId,
281
- children,
282
225
  onClick,
283
- mt,
284
- mr,
285
- mb,
286
- ml,
287
- action,
288
226
  actionArgs,
289
- actionArg
227
+ actionArg,
228
+ children,
229
+ ...rest
290
230
  }) {
291
231
  const el = react.useRef(null);
232
+ const _props = icon.transformProps(rest, icon.lowercase);
292
233
  react.useEffect(() => {
293
234
  if (!el.current) {
294
235
  return;
@@ -298,7 +239,7 @@ function GoabButton({
298
239
  }
299
240
  const current = el.current;
300
241
  const listener = () => {
301
- onClick();
242
+ onClick == null ? void 0 : onClick();
302
243
  };
303
244
  current.addEventListener("_click", listener);
304
245
  return () => {
@@ -309,62 +250,30 @@ function GoabButton({
309
250
  "goa-button",
310
251
  {
311
252
  ref: el,
312
- type,
313
- size,
314
- variant,
315
253
  disabled: disabled ? "true" : void 0,
316
- leadingicon: leadingIcon,
317
- trailingicon: trailingIcon,
318
- width,
319
- testid: testId,
320
- action,
321
254
  "action-arg": actionArg,
322
255
  "action-args": JSON.stringify(actionArgs),
323
- mt,
324
- mr,
325
- mb,
326
- ml,
256
+ ..._props,
327
257
  children
328
258
  }
329
259
  );
330
260
  }
331
261
  function GoabButtonGroup({
332
- alignment,
333
- gap,
334
- testId,
335
262
  children,
336
- mt,
337
- mr,
338
- mb,
339
- ml
263
+ ...rest
340
264
  }) {
341
- return /* @__PURE__ */ jsxRuntime.jsx(
342
- "goa-button-group",
343
- {
344
- alignment,
345
- gap,
346
- mt,
347
- mr,
348
- mb,
349
- ml,
350
- testid: testId,
351
- children
352
- }
353
- );
265
+ const _props = icon.transformProps(rest, icon.lowercase);
266
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-button-group", { ..._props, children });
354
267
  }
355
268
  function GoabCalendar({
356
- name,
357
- value,
358
269
  min,
359
270
  max,
360
- testId,
361
- mt,
362
- mr,
363
- mb,
364
- ml,
365
- onChange
271
+ onChange,
272
+ name,
273
+ ...rest
366
274
  }) {
367
275
  const ref = react.useRef(null);
276
+ const _props = icon.transformProps(rest, icon.lowercase);
368
277
  react.useEffect(() => {
369
278
  if (!ref.current) {
370
279
  return;
@@ -386,72 +295,41 @@ function GoabCalendar({
386
295
  {
387
296
  ref,
388
297
  name,
389
- value,
390
298
  min: min || void 0,
391
299
  max: max || void 0,
392
- testid: testId,
393
- mt,
394
- mr,
395
- mb,
396
- ml
300
+ ..._props
397
301
  }
398
302
  );
399
303
  }
400
304
  const GoabCallout = ({
401
- heading,
402
305
  type = "information",
403
306
  iconTheme = "outline",
404
307
  size = "large",
405
- maxWidth,
406
- testId,
407
308
  ariaLive = "off",
408
309
  children,
409
- mt,
410
- mr,
411
- mb,
412
- ml
310
+ ...rest
413
311
  }) => {
414
- return /* @__PURE__ */ jsxRuntime.jsx(
415
- "goa-callout",
416
- {
417
- heading,
418
- type,
419
- size,
420
- maxwidth: maxWidth,
421
- arialive: ariaLive,
422
- icontheme: iconTheme,
423
- mt,
424
- mr,
425
- mb,
426
- ml,
427
- testid: testId,
428
- children
429
- }
312
+ const _props = icon.transformProps(
313
+ { type, icontheme: iconTheme, size, arialive: ariaLive, ...rest },
314
+ icon.lowercase
430
315
  );
316
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-callout", { ..._props, children });
431
317
  };
432
318
  function GoabCheckbox({
433
- id,
434
- name,
435
- testId,
436
319
  error,
437
- disabled,
438
320
  checked,
439
321
  indeterminate,
322
+ disabled,
440
323
  value,
441
- text,
442
324
  description,
443
325
  reveal,
444
- revealAriaLabel,
445
- maxWidth,
446
- children,
447
326
  onChange,
448
- ariaLabel,
449
- mt,
450
- mr,
451
- mb,
452
- ml
327
+ name,
328
+ children,
329
+ ...rest
453
330
  }) {
454
331
  const el = react.useRef(null);
332
+ const _props = icon.transformProps(rest, icon.lowercase);
455
333
  react.useEffect(() => {
456
334
  if (!el.current) {
457
335
  return;
@@ -459,7 +337,7 @@ function GoabCheckbox({
459
337
  const current = el.current;
460
338
  const listener = (e) => {
461
339
  const detail = e.detail;
462
- onChange == null ? void 0 : onChange(detail);
340
+ onChange == null ? void 0 : onChange({ ...detail, event: e });
463
341
  };
464
342
  current.addEventListener("_change", listener);
465
343
  return () => {
@@ -469,24 +347,15 @@ function GoabCheckbox({
469
347
  return /* @__PURE__ */ jsxRuntime.jsxs(
470
348
  "goa-checkbox",
471
349
  {
472
- testid: testId,
473
350
  ref: el,
474
- id,
351
+ ..._props,
475
352
  name,
476
353
  error: error ? "true" : void 0,
477
354
  checked: checked ? "true" : void 0,
478
355
  indeterminate: indeterminate ? "true" : void 0,
479
356
  disabled: disabled ? "true" : void 0,
480
- text,
481
357
  value: typeof value === "boolean" ? value ? "true" : void 0 : value,
482
- arialabel: ariaLabel,
483
- revealarialabel: revealAriaLabel,
484
358
  description: typeof description === "string" ? description : void 0,
485
- maxwidth: maxWidth,
486
- mt,
487
- mr,
488
- mb,
489
- ml,
490
359
  children: [
491
360
  children,
492
361
  typeof description !== "string" && description && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "description", children: description }),
@@ -516,7 +385,7 @@ function GoabCheckboxList({
516
385
  const listener = (e) => {
517
386
  try {
518
387
  const detail = e.detail;
519
- onChange == null ? void 0 : onChange(detail);
388
+ onChange == null ? void 0 : onChange({ ...detail, event: e });
520
389
  } catch (error2) {
521
390
  console.error("Error handling checkbox list change:", error2);
522
391
  }
@@ -553,26 +422,19 @@ function GoabCheckboxList({
553
422
  );
554
423
  }
555
424
  const GoabChip = ({
556
- leadingIcon,
557
- iconTheme,
558
- deletable,
559
425
  error,
560
- variant,
561
- content,
426
+ deletable,
562
427
  onClick,
563
- mt,
564
- mr,
565
- mb,
566
- ml,
567
- testId
428
+ ...rest
568
429
  }) => {
569
430
  const el = react.useRef(null);
431
+ const _props = icon.transformProps(rest, icon.lowercase);
570
432
  react.useEffect(() => {
571
433
  if (!el.current) return;
572
434
  if (!onClick) return;
573
435
  const current = el.current;
574
436
  const listener = () => {
575
- onClick();
437
+ onClick == null ? void 0 : onClick();
576
438
  };
577
439
  current.addEventListener("_click", listener);
578
440
  return () => {
@@ -583,17 +445,9 @@ const GoabChip = ({
583
445
  "goa-chip",
584
446
  {
585
447
  ref: el,
586
- leadingicon: leadingIcon,
587
- icontheme: iconTheme,
588
448
  error: error ? "true" : void 0,
589
449
  deletable: deletable ? "true" : void 0,
590
- content,
591
- variant,
592
- mt,
593
- mr,
594
- mb,
595
- ml,
596
- testid: testId
450
+ ..._props
597
451
  }
598
452
  );
599
453
  };
@@ -618,65 +472,48 @@ const GoabCircularProgress = ({
618
472
  );
619
473
  };
620
474
  function GoabContainer({
621
- accent,
622
475
  heading,
623
476
  title,
624
- padding,
625
- children,
626
477
  actions,
627
- type,
628
- width,
629
- maxWidth,
630
- minHeight,
631
- maxHeight,
632
- mt,
633
- mr,
634
- mb,
635
- ml,
636
- testId
478
+ children,
479
+ ...rest
637
480
  }) {
481
+ const _props = icon.transformProps(rest, icon.lowercase);
638
482
  const headingContent = heading || title;
639
- return /* @__PURE__ */ jsxRuntime.jsxs(
640
- "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",
641
497
  {
642
- type,
643
- padding,
644
- accent,
645
- width,
646
- maxwidth: maxWidth,
647
- minheight: minHeight,
648
- maxheight: maxHeight,
649
- mt,
650
- mr,
651
- mb,
652
- ml,
653
- testid: testId,
654
- children: [
655
- headingContent && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "title", children: headingContent }),
656
- children,
657
- actions && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "actions", children: actions })
658
- ]
498
+ "keyboard-icon-visibility": keyboardIconVisibility,
499
+ "keyboard-icon-position": keyboardIconPosition,
500
+ "keyboard-nav": keyboardNav,
501
+ children
659
502
  }
660
503
  );
661
504
  }
662
505
  function GoabDatePicker({
663
- name,
664
506
  value,
665
507
  error,
666
508
  min,
667
509
  max,
668
- testId,
669
510
  disabled,
670
- type,
671
- mt,
672
- mr,
673
- mb,
674
- ml,
675
511
  relative,
676
- width,
677
- onChange
512
+ onChange,
513
+ ...rest
678
514
  }) {
679
515
  const ref = react.useRef(null);
516
+ const _props = icon.transformProps(rest, icon.lowercase);
680
517
  react.useEffect(() => {
681
518
  if (value && typeof value !== "string") {
682
519
  console.warn("Using a `Date` type for value is deprecated. Instead use a string of the format `yyyy-mm-dd`");
@@ -689,7 +526,7 @@ function GoabDatePicker({
689
526
  const current = ref.current;
690
527
  const handleChange = (e) => {
691
528
  const detail = e.detail;
692
- onChange == null ? void 0 : onChange(detail);
529
+ onChange == null ? void 0 : onChange({ ...detail, event: e });
693
530
  };
694
531
  if (onChange) {
695
532
  current.addEventListener("_change", handleChange);
@@ -700,47 +537,39 @@ function GoabDatePicker({
700
537
  }
701
538
  };
702
539
  }, [onChange]);
703
- const formatValue = (value2) => {
704
- if (!value2) return "";
705
- if (value2 instanceof Date) {
706
- return value2.toISOString();
540
+ const formatValue = (val) => {
541
+ if (!val) return "";
542
+ if (val instanceof Date) {
543
+ return val.toISOString();
707
544
  }
708
- return value2;
545
+ return val;
709
546
  };
710
547
  return /* @__PURE__ */ jsxRuntime.jsx(
711
548
  "goa-date-picker",
712
549
  {
713
550
  ref,
714
- name,
715
551
  value: formatValue(value) || void 0,
716
- type,
717
552
  error: error ? "true" : void 0,
718
553
  disabled: disabled ? "true" : void 0,
719
554
  min: formatValue(min) || void 0,
720
555
  max: formatValue(max) || void 0,
721
- testid: testId,
722
- mt,
723
- mr,
724
- mb,
725
- ml,
726
556
  relative: relative ? "true" : void 0,
727
- width
557
+ ..._props
728
558
  }
729
559
  );
730
560
  }
731
- function GoabDetails(props) {
561
+ function GoabDetails({
562
+ open,
563
+ children,
564
+ ...rest
565
+ }) {
566
+ const _props = icon.transformProps(rest, icon.lowercase);
732
567
  return /* @__PURE__ */ jsxRuntime.jsx(
733
568
  "goa-details",
734
569
  {
735
- heading: props.heading,
736
- open: props.open ? "true" : void 0,
737
- maxwidth: props.maxWidth,
738
- testid: props.testId,
739
- mt: props.mt,
740
- mr: props.mr,
741
- mb: props.mb,
742
- ml: props.ml,
743
- children: props.children
570
+ open: open ? "true" : void 0,
571
+ ..._props,
572
+ children
744
573
  }
745
574
  );
746
575
  }
@@ -765,54 +594,51 @@ function stringify(value) {
765
594
  }
766
595
  return JSON.stringify(value);
767
596
  }
768
- 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
+ }) {
769
609
  const el = react.useRef(null);
610
+ const _props = icon.transformProps(rest, icon.lowercase);
770
611
  react.useEffect(() => {
771
612
  if (!el.current) {
772
613
  return;
773
614
  }
774
615
  const current = el.current;
775
616
  const handler = (e) => {
776
- var _a;
777
617
  const detail = e.detail;
778
- (_a = props.onChange) == null ? void 0 : _a.call(props, detail);
618
+ onChange == null ? void 0 : onChange({ ...detail, event: e });
779
619
  };
780
- if (props.onChange) {
620
+ if (onChange) {
781
621
  current.addEventListener("_change", handler);
782
622
  }
783
623
  return () => {
784
- if (props.onChange) {
624
+ if (onChange) {
785
625
  current.removeEventListener("_change", handler);
786
626
  }
787
627
  };
788
- }, [el, props]);
628
+ }, [el, onChange]);
789
629
  return /* @__PURE__ */ jsxRuntime.jsx(
790
630
  "goa-dropdown",
791
631
  {
792
632
  ref: el,
793
- name: props.name,
794
- value: stringify(props.value),
795
- arialabel: props.ariaLabel,
796
- arialabelledby: props.ariaLabelledBy,
797
- disabled: props.disabled ? "true" : void 0,
798
- error: props.error ? "true" : void 0,
799
- filterable: props.filterable ? "true" : void 0,
800
- leadingicon: props.leadingIcon,
801
- maxheight: props.maxHeight,
802
- mb: props.mb,
803
- ml: props.ml,
804
- mr: props.mr,
805
- mt: props.mt,
806
- multiselect: props.multiselect ? "true" : void 0,
807
- native: props.native ? "true" : void 0,
808
- placeholder: props.placeholder,
809
- testid: props.testId,
810
- width: props.width,
811
- maxwidth: props.maxWidth,
812
- relative: props.relative ? "true" : void 0,
813
- autocomplete: props.autoComplete,
814
- id: props.id,
815
- 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
816
642
  }
817
643
  );
818
644
  }
@@ -841,111 +667,75 @@ function GoabDropdownItem({
841
667
  );
842
668
  }
843
669
  function GoabFileUploadCard({
844
- filename,
845
- size,
846
- type,
847
- progress,
848
- error,
849
- testId,
850
670
  onDelete,
851
- onCancel
671
+ onCancel,
672
+ filename,
673
+ ...rest
852
674
  }) {
853
675
  const el = react.useRef(null);
676
+ const _props = icon.transformProps({ filename, ...rest }, icon.lowercase);
854
677
  react.useEffect(() => {
855
678
  if (!el.current) return;
856
679
  const current = el.current;
857
- const deleteHandler = () => onDelete == null ? void 0 : onDelete({ filename });
858
- const cancelHandler = () => onCancel == null ? void 0 : onCancel({ filename });
680
+ const deleteHandler = (event) => onDelete == null ? void 0 : onDelete({ filename, event });
681
+ const cancelHandler = (event) => onCancel == null ? void 0 : onCancel({ filename, event });
859
682
  current.addEventListener("_delete", deleteHandler);
860
683
  current.addEventListener("_cancel", cancelHandler);
861
684
  return () => {
862
685
  current.removeEventListener("_delete", deleteHandler);
863
686
  current.removeEventListener("_cancel", cancelHandler);
864
687
  };
865
- }, [el, onDelete, onCancel]);
866
- return /* @__PURE__ */ jsxRuntime.jsx(
867
- "goa-file-upload-card",
868
- {
869
- ref: el,
870
- filename,
871
- size,
872
- type,
873
- progress,
874
- error,
875
- testid: testId
876
- }
877
- );
688
+ }, [el, onDelete, onCancel, filename]);
689
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-file-upload-card", { ref: el, ..._props });
878
690
  }
879
691
  function GoabFileUploadInput({
880
- variant,
881
- accept,
882
- maxFileSize,
883
- testId,
884
- onSelectFile
692
+ onSelectFile,
693
+ ...rest
885
694
  }) {
886
695
  const el = react.useRef(null);
696
+ const _props = icon.transformProps(rest, icon.lowercase);
887
697
  react.useEffect(() => {
888
698
  if (!el.current) return;
889
699
  const current = el.current;
890
700
  const handler = (e) => {
891
701
  const detail = e.detail;
892
- onSelectFile(detail);
702
+ onSelectFile({ ...detail, event: e });
893
703
  };
894
704
  current.addEventListener("_selectFile", handler);
895
705
  return () => {
896
706
  current.removeEventListener("_selectFile", handler);
897
707
  };
898
708
  }, [el, onSelectFile]);
899
- return /* @__PURE__ */ jsxRuntime.jsx(
900
- "goa-file-upload-input",
901
- {
902
- ref: el,
903
- variant,
904
- accept,
905
- maxfilesize: maxFileSize,
906
- testid: testId
907
- }
908
- );
709
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-file-upload-input", { ref: el, ..._props });
909
710
  }
910
711
  function GoabAppFooter({
911
- maxContentWidth,
912
712
  children,
913
- testId,
914
- url
713
+ ...rest
915
714
  }) {
916
- 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 });
917
717
  }
918
718
  function GoabAppFooterMetaSection({
919
- testId,
920
- children
719
+ children,
720
+ ...rest
921
721
  }) {
922
- 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 });
923
724
  }
924
725
  function GoabAppFooterNavSection({
925
- heading,
926
- maxColumnCount = 1,
927
- testId,
928
- children
726
+ children,
727
+ ...rest
929
728
  }) {
930
- return /* @__PURE__ */ jsxRuntime.jsx(
931
- "goa-app-footer-nav-section",
932
- {
933
- slot: "nav",
934
- heading,
935
- maxcolumncount: maxColumnCount,
936
- testid: testId,
937
- children
938
- }
939
- );
729
+ const _props = icon.transformProps(rest, icon.lowercase);
730
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-app-footer-nav-section", { slot: "nav", ..._props, children });
940
731
  }
941
732
  function GoabFieldset({
942
- id,
943
- sectionTitle,
944
- dispatchOn,
945
733
  onContinue,
946
- children
734
+ children,
735
+ ...rest
947
736
  }) {
948
737
  const ref = react.useRef(null);
738
+ const _props = icon.transformProps(rest, icon.kebab);
949
739
  react.useEffect(() => {
950
740
  if (!ref.current) return;
951
741
  const current = ref.current;
@@ -962,35 +752,15 @@ function GoabFieldset({
962
752
  }
963
753
  };
964
754
  }, [ref, onContinue]);
965
- return /* @__PURE__ */ jsxRuntime.jsx(
966
- "goa-fieldset",
967
- {
968
- ref,
969
- id,
970
- "section-title": sectionTitle,
971
- "dispatch-on": dispatchOn,
972
- children
973
- }
974
- );
755
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-fieldset", { ref, ..._props, children });
975
756
  }
976
757
  function GoabPublicFormPage({
977
- id = "",
978
- heading = "",
979
- subHeading = "",
980
- summaryHeading = "",
981
- sectionTitle = "",
982
- backUrl = "",
983
- type = "step",
984
- buttonText = "",
985
- buttonVisibility = "visible",
986
758
  onContinue,
987
759
  children,
988
- mt,
989
- mr,
990
- mb,
991
- ml
760
+ ...rest
992
761
  }) {
993
762
  const ref = react.useRef(null);
763
+ const _props = icon.transformProps(rest, icon.kebab);
994
764
  react.useEffect(() => {
995
765
  if (!ref.current) return;
996
766
  const current = ref.current;
@@ -1006,49 +776,28 @@ function GoabPublicFormPage({
1006
776
  }
1007
777
  };
1008
778
  }, [ref, onContinue]);
1009
- return /* @__PURE__ */ jsxRuntime.jsx(
1010
- "goa-public-form-page",
1011
- {
1012
- ref,
1013
- id,
1014
- heading,
1015
- "sub-heading": subHeading,
1016
- "section-title": sectionTitle,
1017
- "back-url": backUrl,
1018
- type,
1019
- "button-text": buttonText,
1020
- "button-visibility": buttonVisibility,
1021
- "summary-heading": summaryHeading,
1022
- mt,
1023
- mr,
1024
- mb,
1025
- ml,
1026
- children
1027
- }
1028
- );
779
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-public-form-page", { ref, ..._props, children });
1029
780
  }
1030
781
  function GoabPublicFormSummary({
1031
- heading = ""
782
+ heading = "",
783
+ ...rest
1032
784
  }) {
1033
- const ref = react.useRef(null);
1034
- return /* @__PURE__ */ jsxRuntime.jsx(
1035
- "goa-public-form-summary",
1036
- {
1037
- ref,
1038
- heading
1039
- }
785
+ const _props = icon.transformProps(
786
+ { heading, ...rest },
787
+ icon.lowercase
1040
788
  );
789
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-public-form-summary", { ..._props });
1041
790
  }
1042
791
  function GoabPublicForm({
1043
- status = "complete",
1044
- name,
1045
792
  onInit,
1046
793
  onComplete,
1047
794
  onStateChange,
1048
- children
795
+ children,
796
+ ...rest
1049
797
  }) {
1050
798
  const ref = react.useRef(null);
1051
799
  const initialized = react.useRef(false);
800
+ const _props = icon.transformProps(rest, icon.lowercase);
1052
801
  react.useLayoutEffect(() => {
1053
802
  if (!ref.current) return;
1054
803
  const current = ref.current;
@@ -1084,15 +833,7 @@ function GoabPublicForm({
1084
833
  }
1085
834
  };
1086
835
  }, [onInit, onComplete, onStateChange]);
1087
- return /* @__PURE__ */ jsxRuntime.jsx(
1088
- "goa-public-form",
1089
- {
1090
- ref,
1091
- status,
1092
- name,
1093
- children
1094
- }
1095
- );
836
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-public-form", { ref, ..._props, children });
1096
837
  }
1097
838
  function GoabPublicSubform({
1098
839
  id = "",
@@ -1101,12 +842,13 @@ function GoabPublicSubform({
1101
842
  onInit,
1102
843
  onStateChange,
1103
844
  children,
1104
- mt,
1105
- mr,
1106
- mb,
1107
- ml
845
+ ...rest
1108
846
  }) {
1109
847
  const ref = react.useRef(null);
848
+ const _props = icon.transformProps(
849
+ { id, name, "continue-msg": continueMsg, ...rest },
850
+ icon.kebab
851
+ );
1110
852
  react.useEffect(() => {
1111
853
  if (!ref.current) return;
1112
854
  const current = ref.current;
@@ -1131,20 +873,7 @@ function GoabPublicSubform({
1131
873
  }
1132
874
  };
1133
875
  }, [ref, onInit, onStateChange]);
1134
- return /* @__PURE__ */ jsxRuntime.jsx(
1135
- "goa-public-subform",
1136
- {
1137
- ref,
1138
- id,
1139
- name,
1140
- "continue-msg": continueMsg,
1141
- mt,
1142
- mr,
1143
- mb,
1144
- ml,
1145
- children
1146
- }
1147
- );
876
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-public-subform", { ref, ..._props, children });
1148
877
  }
1149
878
  function GoabPublicSubformIndex({
1150
879
  heading = "",
@@ -1152,86 +881,47 @@ function GoabPublicSubformIndex({
1152
881
  actionButtonText = "",
1153
882
  buttonVisibility = "hidden",
1154
883
  children,
1155
- mt,
1156
- mr,
1157
- mb,
1158
- ml
884
+ ...rest
1159
885
  }) {
1160
- const ref = react.useRef(null);
1161
- return /* @__PURE__ */ jsxRuntime.jsx(
1162
- "goa-public-subform-index",
1163
- {
1164
- ref,
1165
- heading,
1166
- "section-title": sectionTitle,
1167
- "action-button-text": actionButtonText,
1168
- "button-visibility": buttonVisibility,
1169
- slot: "subform-index",
1170
- mt,
1171
- mr,
1172
- mb,
1173
- ml,
1174
- children
1175
- }
886
+ const _props = icon.transformProps(
887
+ { heading, "section-title": sectionTitle, "action-button-text": actionButtonText, "button-visibility": buttonVisibility, ...rest },
888
+ icon.kebab
1176
889
  );
890
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-public-subform-index", { slot: "subform-index", ..._props, children });
1177
891
  }
1178
- function GoabPublicFormTask({ status = "cannot-start", children }) {
1179
- 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 });
1180
902
  }
1181
903
  function GoabPublicFormTaskList({
1182
- heading = "",
1183
904
  children,
1184
- mt,
1185
- mr,
1186
- mb,
1187
- ml
905
+ ...rest
1188
906
  }) {
1189
- return /* @__PURE__ */ jsxRuntime.jsx(
1190
- "goa-public-form-task-list",
1191
- {
1192
- heading,
1193
- mt,
1194
- mr,
1195
- mb,
1196
- ml,
1197
- children
1198
- }
1199
- );
907
+ const _props = icon.transformProps(rest, icon.lowercase);
908
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-public-form-task-list", { ..._props, children });
1200
909
  }
1201
910
  function GoabFormItem({
1202
- children,
1203
- helpText,
1204
911
  error,
1205
- requirement,
1206
- label,
1207
- labelSize,
1208
- maxWidth,
912
+ helpText,
1209
913
  publicFormSummaryOrder,
1210
- name,
1211
- mt,
1212
- mr,
1213
- mb,
1214
- ml,
1215
- testId,
1216
- id
914
+ children,
915
+ ...rest
1217
916
  }) {
917
+ const _props = icon.transformProps(rest, icon.lowercase);
1218
918
  return /* @__PURE__ */ jsxRuntime.jsxs(
1219
919
  "goa-form-item",
1220
920
  {
1221
- label,
1222
- labelsize: labelSize,
1223
921
  error: typeof error === "string" ? error : void 0,
1224
- requirement,
1225
922
  helptext: typeof helpText === "string" ? helpText : void 0,
1226
- maxwidth: maxWidth,
1227
923
  "public-form-summary-order": publicFormSummaryOrder,
1228
- name,
1229
- mt,
1230
- mr,
1231
- mb,
1232
- ml,
1233
- testid: testId,
1234
- id,
924
+ ..._props,
1235
925
  children: [
1236
926
  error && typeof error !== "string" && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "error", children: error }),
1237
927
  helpText && typeof helpText !== "string" && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "helptext", children: helpText }),
@@ -1336,24 +1026,20 @@ function GoabHeroBannerActions({
1336
1026
  return /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "actions", children });
1337
1027
  }
1338
1028
  function GoabIconButton({
1339
- icon: icon2,
1340
- disabled,
1341
1029
  variant = "color",
1342
- onClick,
1343
1030
  size = "medium",
1344
- title,
1345
- ariaLabel,
1346
- testId,
1347
- children,
1348
- mt,
1349
- mr,
1350
- mb,
1351
- ml,
1352
- action,
1031
+ disabled,
1032
+ onClick,
1353
1033
  actionArgs,
1354
- actionArg
1034
+ actionArg,
1035
+ children,
1036
+ ...rest
1355
1037
  }) {
1356
1038
  const ref = react.useRef(null);
1039
+ const _props = icon.transformProps(
1040
+ { variant, size, ...rest },
1041
+ icon.lowercase
1042
+ );
1357
1043
  react.useEffect(() => {
1358
1044
  if (!ref.current) {
1359
1045
  return;
@@ -1363,7 +1049,7 @@ function GoabIconButton({
1363
1049
  }
1364
1050
  const current = ref.current;
1365
1051
  const listener = () => {
1366
- onClick();
1052
+ onClick == null ? void 0 : onClick();
1367
1053
  };
1368
1054
  current.addEventListener("_click", listener);
1369
1055
  return () => {
@@ -1374,20 +1060,10 @@ function GoabIconButton({
1374
1060
  "goa-icon-button",
1375
1061
  {
1376
1062
  ref,
1377
- icon: icon2,
1378
1063
  disabled: disabled ? "true" : void 0,
1379
- variant,
1380
- size,
1381
- title,
1382
- arialabel: ariaLabel,
1383
- action,
1384
1064
  "action-arg": actionArg,
1385
1065
  "action-args": JSON.stringify(actionArgs),
1386
- mt,
1387
- mr,
1388
- mb,
1389
- ml,
1390
- testid: testId,
1066
+ ..._props,
1391
1067
  children
1392
1068
  }
1393
1069
  );
@@ -3063,45 +2739,23 @@ function validateTimezone(_hours, minutes) {
3063
2739
  return minutes >= 0 && minutes <= 59;
3064
2740
  }
3065
2741
  function GoabInput({
3066
- id,
3067
- debounce,
3068
- name,
3069
- type,
3070
- autoCapitalize,
3071
- autoComplete,
3072
- leadingIcon,
3073
- trailingIcon,
3074
2742
  variant = "goa",
2743
+ textAlign = "left",
3075
2744
  focused,
3076
2745
  disabled,
3077
2746
  readonly,
3078
- value,
3079
- placeholder,
3080
2747
  error,
3081
- width,
3082
- testId,
3083
- min,
3084
- max,
3085
- step,
3086
- prefix,
3087
- suffix,
3088
- ariaLabel,
3089
- mt,
3090
- mr,
3091
- mb,
3092
- ml,
3093
2748
  leadingContent,
3094
2749
  trailingContent,
3095
- maxLength,
3096
- trailingIconAriaLabel,
3097
- textAlign = "left",
3098
2750
  onTrailingIconClick,
3099
2751
  onChange,
3100
2752
  onFocus,
3101
2753
  onBlur,
3102
- onKeyPress
2754
+ onKeyPress,
2755
+ ...rest
3103
2756
  }) {
3104
2757
  const ref = react.useRef(null);
2758
+ const _props = icon.transformProps({ variant, textalign: textAlign, ...rest }, icon.lowercase);
3105
2759
  react.useEffect(() => {
3106
2760
  if (!ref.current) {
3107
2761
  return;
@@ -3109,22 +2763,22 @@ function GoabInput({
3109
2763
  const current = ref.current;
3110
2764
  const changeListener = (e) => {
3111
2765
  const detail = e.detail;
3112
- onChange == null ? void 0 : onChange(detail);
2766
+ onChange == null ? void 0 : onChange({ ...detail, event: e });
3113
2767
  };
3114
2768
  const clickListener = () => {
3115
2769
  onTrailingIconClick == null ? void 0 : onTrailingIconClick();
3116
2770
  };
3117
2771
  const focusListener = (e) => {
3118
2772
  const detail = e.detail;
3119
- onFocus == null ? void 0 : onFocus(detail);
2773
+ onFocus == null ? void 0 : onFocus({ ...detail, event: e });
3120
2774
  };
3121
2775
  const blurListener = (e) => {
3122
2776
  const detail = e.detail;
3123
- onBlur == null ? void 0 : onBlur(detail);
2777
+ onBlur == null ? void 0 : onBlur({ ...detail, event: e });
3124
2778
  };
3125
2779
  const keypressListener = (e) => {
3126
2780
  const detail = e.detail;
3127
- onKeyPress == null ? void 0 : onKeyPress(detail);
2781
+ onKeyPress == null ? void 0 : onKeyPress({ ...detail, event: e });
3128
2782
  };
3129
2783
  current.addEventListener("_change", changeListener);
3130
2784
  current.addEventListener("_trailingIconClick", clickListener);
@@ -3143,37 +2797,12 @@ function GoabInput({
3143
2797
  "goa-input",
3144
2798
  {
3145
2799
  ref,
3146
- debounce,
2800
+ ..._props,
3147
2801
  focused: focused ? "true" : void 0,
3148
- type,
3149
- name,
3150
- autocapitalize: autoCapitalize,
3151
- autocomplete: autoComplete,
3152
- id,
3153
- leadingicon: leadingIcon,
3154
- trailingicon: trailingIcon,
3155
- variant,
3156
2802
  disabled: disabled ? "true" : void 0,
3157
2803
  readonly: readonly ? "true" : void 0,
3158
- placeholder,
3159
2804
  error: error ? "true" : void 0,
3160
- testid: testId,
3161
- value,
3162
- width,
3163
- min,
3164
- max,
3165
- step,
3166
- maxlength: maxLength,
3167
- prefix,
3168
- suffix,
3169
- arialabel: ariaLabel,
3170
- mt,
3171
- mr,
3172
- mb,
3173
- ml,
3174
2805
  handletrailingiconclick: onTrailingIconClick ? "true" : "false",
3175
- trailingiconarialabel: trailingIconAriaLabel,
3176
- textalign: textAlign,
3177
2806
  children: [
3178
2807
  leadingContent && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "leadingContent", children: leadingContent }),
3179
2808
  trailingContent && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "trailingContent", children: trailingContent })
@@ -3182,28 +2811,28 @@ function GoabInput({
3182
2811
  );
3183
2812
  }
3184
2813
  const onDateChangeHandler = (onChange) => {
3185
- return ({ name, value }) => {
2814
+ return ({ name, value, event }) => {
3186
2815
  if (!value) {
3187
- onChange == null ? void 0 : onChange({ name, value: "" });
2816
+ onChange == null ? void 0 : onChange({ name, value: "", event });
3188
2817
  return;
3189
2818
  }
3190
2819
  if (typeof value === "string" && isValid(new Date(value))) {
3191
- onChange == null ? void 0 : onChange({ name, value: parseISO(value) });
2820
+ onChange == null ? void 0 : onChange({ name, value: parseISO(value), event });
3192
2821
  return;
3193
2822
  }
3194
2823
  if (isValid(value)) {
3195
- onChange == null ? void 0 : onChange({ name, value });
2824
+ onChange == null ? void 0 : onChange({ name, value, event });
3196
2825
  return;
3197
2826
  }
3198
2827
  };
3199
2828
  };
3200
2829
  const onTimeChangeHandler = (onChange) => {
3201
- return ({ name, value }) => {
2830
+ return ({ name, value, event }) => {
3202
2831
  if (!value) {
3203
- onChange == null ? void 0 : onChange({ name, value: "" });
2832
+ onChange == null ? void 0 : onChange({ name, value: "", event });
3204
2833
  return;
3205
2834
  }
3206
- onChange == null ? void 0 : onChange({ name, value });
2835
+ onChange == null ? void 0 : onChange({ name, value, event });
3207
2836
  };
3208
2837
  };
3209
2838
  function toString(value, tmpl = "yyyy-MM-dd") {
@@ -3295,7 +2924,11 @@ function GoabInputFile(props) {
3295
2924
  type: "file",
3296
2925
  onChange: (e) => {
3297
2926
  var _a;
3298
- return (_a = props.onChange) == null ? void 0 : _a.call(props, { name: e.target.name, value: e.target.value });
2927
+ return (_a = props.onChange) == null ? void 0 : _a.call(props, {
2928
+ name: e.target.name,
2929
+ value: e.target.value,
2930
+ event: e.nativeEvent
2931
+ });
3299
2932
  },
3300
2933
  style: { backgroundColor: "revert" }
3301
2934
  }
@@ -3311,21 +2944,21 @@ function GoabInputNumber({
3311
2944
  textAlign = "right",
3312
2945
  ...props
3313
2946
  }) {
3314
- const onNumberChange = ({ name, value: value2 }) => {
2947
+ const onNumberChange = ({ name, value: value2, event }) => {
3315
2948
  var _a;
3316
- (_a = props.onChange) == null ? void 0 : _a.call(props, { name, value: parseFloat(value2) });
2949
+ (_a = props.onChange) == null ? void 0 : _a.call(props, { name, value: parseFloat(value2), event });
3317
2950
  };
3318
- const onFocus = ({ name, value: value2 }) => {
2951
+ const onFocus = ({ name, value: value2, event }) => {
3319
2952
  var _a;
3320
- (_a = props.onFocus) == null ? void 0 : _a.call(props, { name, value: parseFloat(value2) });
2953
+ (_a = props.onFocus) == null ? void 0 : _a.call(props, { name, value: parseFloat(value2), event });
3321
2954
  };
3322
- const onBlur = ({ name, value: value2 }) => {
2955
+ const onBlur = ({ name, value: value2, event }) => {
3323
2956
  var _a;
3324
- (_a = props.onBlur) == null ? void 0 : _a.call(props, { name, value: parseFloat(value2) });
2957
+ (_a = props.onBlur) == null ? void 0 : _a.call(props, { name, value: parseFloat(value2), event });
3325
2958
  };
3326
- const onKeyPress = ({ name, value: value2, key }) => {
2959
+ const onKeyPress = ({ name, value: value2, key, event }) => {
3327
2960
  var _a;
3328
- (_a = props.onKeyPress) == null ? void 0 : _a.call(props, { name, value: parseFloat(value2), key: parseInt(key) });
2961
+ (_a = props.onKeyPress) == null ? void 0 : _a.call(props, { name, value: parseFloat(value2), key: parseInt(key), event });
3329
2962
  };
3330
2963
  return /* @__PURE__ */ jsxRuntime.jsx(
3331
2964
  GoabInput,
@@ -3364,49 +2997,46 @@ const GoabLinearProgress = ({
3364
2997
  }
3365
2998
  );
3366
2999
  };
3367
- function GoabLink(props) {
3000
+ function GoabLink({
3001
+ actionArgs,
3002
+ actionArg,
3003
+ children,
3004
+ ...rest
3005
+ }) {
3006
+ const _props = icon.transformProps(rest, icon.lowercase);
3368
3007
  return /* @__PURE__ */ jsxRuntime.jsx(
3369
3008
  "goa-link",
3370
3009
  {
3371
- leadingicon: props.leadingIcon,
3372
- trailingicon: props.trailingIcon,
3373
- action: props.action,
3374
- "action-arg": props.actionArg,
3375
- "action-args": JSON.stringify(props.actionArgs),
3376
- testid: props.testId,
3377
- mt: props.mt,
3378
- mb: props.mb,
3379
- ml: props.ml,
3380
- mr: props.mr,
3381
- children: props.children
3010
+ "action-arg": actionArg,
3011
+ "action-args": JSON.stringify(actionArgs),
3012
+ ..._props,
3013
+ children
3382
3014
  }
3383
3015
  );
3384
3016
  }
3385
- function GoALinkButton({ type = "primary", ...props }) {
3386
- return /* @__PURE__ */ jsxRuntime.jsx(
3387
- "goa-link-button",
3388
- {
3389
- type,
3390
- leadingicon: props.leadingIcon,
3391
- trailingicon: props.trailingIcon,
3392
- mt: props.mt,
3393
- mb: props.mb,
3394
- ml: props.ml,
3395
- mr: props.mr,
3396
- children: props.children
3397
- }
3017
+ function GoALinkButton({
3018
+ type = "primary",
3019
+ children,
3020
+ ...rest
3021
+ }) {
3022
+ const _props = icon.transformProps(
3023
+ { type, ...rest },
3024
+ icon.lowercase
3398
3025
  );
3026
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-link-button", { ..._props, children });
3399
3027
  }
3400
3028
  function GoabMenuButton({
3401
- text,
3402
3029
  type = "primary",
3403
- leadingIcon,
3404
- maxWidth,
3405
3030
  testId,
3406
3031
  onAction,
3407
- children
3032
+ children,
3033
+ ...rest
3408
3034
  }) {
3409
3035
  const el = react.useRef(null);
3036
+ const _props = icon.transformProps(
3037
+ { type, testid: testId, ...rest },
3038
+ icon.kebab
3039
+ );
3410
3040
  react.useEffect(() => {
3411
3041
  if (!el.current) {
3412
3042
  return;
@@ -3417,17 +3047,18 @@ function GoabMenuButton({
3417
3047
  const current = el.current;
3418
3048
  const listener = (e) => {
3419
3049
  const detail = e.detail;
3420
- onAction(detail);
3050
+ onAction == null ? void 0 : onAction(detail);
3421
3051
  };
3422
3052
  current.addEventListener("_action", listener);
3423
3053
  return () => {
3424
3054
  current.removeEventListener("_action", listener);
3425
3055
  };
3426
3056
  }, [el, onAction]);
3427
- return /* @__PURE__ */ jsxRuntime.jsx("goa-menu-button", { ref: el, text, type, testid: testId, "leading-icon": leadingIcon, "max-width": maxWidth, children });
3057
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-menu-button", { ..._props, ref: el, children });
3428
3058
  }
3429
- function GoabMenuAction({ text, icon: icon2, action, testId }) {
3430
- return /* @__PURE__ */ jsxRuntime.jsx("goa-menu-action", { text, action, icon: icon2, testid: testId });
3059
+ function GoabMenuAction(props) {
3060
+ const _props = icon.transformProps(props, icon.lowercase);
3061
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-menu-action", { ..._props });
3431
3062
  }
3432
3063
  function GoabMicrositeHeader({
3433
3064
  type,
@@ -3603,31 +3234,18 @@ function GoabPagination({ onChange, ...props }) {
3603
3234
  }
3604
3235
  function GoabPopover({
3605
3236
  target,
3606
- testId,
3607
- maxWidth,
3608
- minWidth,
3609
3237
  padded,
3610
- position,
3611
3238
  relative,
3612
3239
  children,
3613
- mt,
3614
- mr,
3615
- mb,
3616
- ml
3240
+ ...rest
3617
3241
  }) {
3242
+ const _props = icon.transformProps(rest, icon.lowercase);
3618
3243
  return /* @__PURE__ */ jsxRuntime.jsxs(
3619
3244
  "goa-popover",
3620
3245
  {
3621
- testid: testId,
3622
- maxwidth: maxWidth,
3623
- minwidth: minWidth,
3624
3246
  padded: typeof padded === "undefined" ? void 0 : padded ? "true" : "false",
3625
- position,
3626
3247
  relative: relative ? "true" : void 0,
3627
- mt,
3628
- mr,
3629
- mb,
3630
- ml,
3248
+ ..._props,
3631
3249
  children: [
3632
3250
  children,
3633
3251
  target && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "target", children: target })
@@ -3679,27 +3297,20 @@ function GoabRadioItem({
3679
3297
  );
3680
3298
  }
3681
3299
  function GoabRadioGroup({
3682
- name,
3683
- value,
3684
- children,
3685
- orientation,
3686
3300
  disabled,
3687
3301
  error,
3688
- id,
3689
- testId,
3690
- ariaLabel,
3691
- mt,
3692
- mr,
3693
- mb,
3694
- ml,
3695
- onChange
3302
+ onChange,
3303
+ name,
3304
+ children,
3305
+ ...rest
3696
3306
  }) {
3697
3307
  const el = react.useRef(null);
3308
+ const _props = icon.transformProps(rest, icon.lowercase);
3698
3309
  react.useEffect(() => {
3699
3310
  if (!el.current) return;
3700
3311
  const listener = (e) => {
3701
3312
  const detail = e.detail;
3702
- onChange == null ? void 0 : onChange(detail);
3313
+ onChange == null ? void 0 : onChange({ ...detail, event: e });
3703
3314
  };
3704
3315
  const currentEl = el.current;
3705
3316
  if (onChange) {
@@ -3714,19 +3325,11 @@ function GoabRadioGroup({
3714
3325
  return /* @__PURE__ */ jsxRuntime.jsx(
3715
3326
  "goa-radio-group",
3716
3327
  {
3717
- testid: testId,
3718
3328
  ref: el,
3719
- id,
3329
+ ..._props,
3720
3330
  name,
3721
- value,
3722
- orientation,
3723
3331
  disabled: disabled ? "true" : void 0,
3724
3332
  error: error ? "true" : void 0,
3725
- arialabel: ariaLabel,
3726
- mt,
3727
- mr,
3728
- mb,
3729
- ml,
3730
3333
  children
3731
3334
  }
3732
3335
  );
@@ -3841,16 +3444,17 @@ function GoabTable({ onSort, ...props }) {
3841
3444
  );
3842
3445
  }
3843
3446
  function GoabTableSortHeader({
3844
- name,
3845
- direction = "none",
3846
- children
3447
+ children,
3448
+ ...rest
3847
3449
  }) {
3848
- return /* @__PURE__ */ jsxRuntime.jsx("goa-table-sort-header", { name, direction, children });
3450
+ const _props = icon.transformProps(rest, icon.lowercase);
3451
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-table-sort-header", { ..._props, children });
3849
3452
  }
3850
3453
  function GoabTabs({
3851
3454
  initialTab,
3852
3455
  children,
3853
3456
  testId,
3457
+ variant,
3854
3458
  onChange
3855
3459
  }) {
3856
3460
  const ref = react.useRef(null);
@@ -3867,10 +3471,10 @@ function GoabTabs({
3867
3471
  };
3868
3472
  }
3869
3473
  }, [onChange]);
3870
- return /* @__PURE__ */ jsxRuntime.jsx("goa-tabs", { ref, initialtab: initialTab, testid: testId, children });
3474
+ return /* @__PURE__ */ jsxRuntime.jsx("goa-tabs", { ref, initialtab: initialTab, testid: testId, variant, children });
3871
3475
  }
3872
- function GoabTab({ heading, children }) {
3873
- return /* @__PURE__ */ jsxRuntime.jsxs("goa-tab", { children: [
3476
+ function GoabTab({ heading, disabled, children }) {
3477
+ return /* @__PURE__ */ jsxRuntime.jsxs("goa-tab", { disabled: disabled ? "true" : void 0, children: [
3874
3478
  heading && /* @__PURE__ */ jsxRuntime.jsx("span", { slot: "heading", children: heading }),
3875
3479
  children
3876
3480
  ] });
@@ -3878,60 +3482,50 @@ function GoabTab({ heading, children }) {
3878
3482
  const GoabTemporaryNotificationCtrl = ({
3879
3483
  verticalPosition = "bottom",
3880
3484
  horizontalPosition = "center",
3881
- testId
3485
+ testId,
3486
+ ...rest
3882
3487
  }) => {
3883
3488
  const el = react.useRef(null);
3489
+ const _props = icon.transformProps(
3490
+ { "vertical-position": verticalPosition, "horizontal-position": horizontalPosition, ...rest },
3491
+ icon.kebab
3492
+ );
3884
3493
  return /* @__PURE__ */ jsxRuntime.jsx(
3885
3494
  "goa-temp-notification-ctrl",
3886
3495
  {
3887
3496
  ref: el,
3888
- "vertical-position": verticalPosition,
3889
- "horizontal-position": horizontalPosition,
3497
+ ..._props,
3890
3498
  testid: testId
3891
3499
  }
3892
3500
  );
3893
3501
  };
3894
- function GoabText(props) {
3502
+ function GoabText({
3503
+ as,
3504
+ tag,
3505
+ children,
3506
+ ...rest
3507
+ }) {
3508
+ const _props = icon.transformProps(rest, icon.lowercase);
3895
3509
  return /* @__PURE__ */ jsxRuntime.jsx(
3896
3510
  "goa-text",
3897
3511
  {
3898
- as: props.tag || props.as,
3899
- size: props.size,
3900
- maxwidth: props.maxWidth,
3901
- color: props.color,
3902
- id: props.id,
3903
- mt: props.mt,
3904
- mb: props.mb,
3905
- ml: props.ml,
3906
- mr: props.mr,
3907
- children: props.children
3512
+ as: tag || as,
3513
+ ..._props,
3514
+ children
3908
3515
  }
3909
3516
  );
3910
3517
  }
3911
3518
  function GoabTextArea({
3912
- name,
3913
- value,
3914
- placeholder,
3915
- rows,
3916
3519
  readOnly,
3917
3520
  disabled,
3918
- countBy,
3919
- maxCount,
3920
- width,
3921
- maxWidth,
3922
- testId,
3923
3521
  error,
3924
- ariaLabel,
3925
- mt,
3926
- mr,
3927
- mb,
3928
- ml,
3929
- autoComplete,
3930
3522
  onChange,
3931
3523
  onKeyPress,
3932
- onBlur
3524
+ onBlur,
3525
+ ...rest
3933
3526
  }) {
3934
3527
  const el = react.useRef(null);
3528
+ const _props = icon.transformProps(rest, icon.lowercase);
3935
3529
  react.useEffect(() => {
3936
3530
  if (!el.current) {
3937
3531
  return;
@@ -3939,15 +3533,15 @@ function GoabTextArea({
3939
3533
  const current = el.current;
3940
3534
  const changeListener = (e) => {
3941
3535
  const detail = e.detail;
3942
- onChange == null ? void 0 : onChange(detail);
3536
+ onChange == null ? void 0 : onChange({ ...detail, event: e });
3943
3537
  };
3944
3538
  const keypressListener = (e) => {
3945
3539
  const detail = e.detail;
3946
- onKeyPress == null ? void 0 : onKeyPress(detail);
3540
+ onKeyPress == null ? void 0 : onKeyPress({ ...detail, event: e });
3947
3541
  };
3948
3542
  const blurListener = (e) => {
3949
3543
  const detail = e.detail;
3950
- onBlur == null ? void 0 : onBlur(detail);
3544
+ onBlur == null ? void 0 : onBlur({ ...detail, event: e });
3951
3545
  };
3952
3546
  current.addEventListener("_change", changeListener);
3953
3547
  current.addEventListener("_keyPress", keypressListener);
@@ -3962,24 +3556,10 @@ function GoabTextArea({
3962
3556
  "goa-textarea",
3963
3557
  {
3964
3558
  ref: el,
3965
- name,
3966
- placeholder,
3967
- value,
3968
- rows,
3969
3559
  readOnly: readOnly ? "true" : void 0,
3970
3560
  disabled: disabled ? "true" : void 0,
3971
- countby: countBy,
3972
- maxcount: maxCount,
3973
- width,
3974
- maxwidth: maxWidth,
3975
3561
  error: error ? "true" : void 0,
3976
- testid: testId,
3977
- arialabel: ariaLabel,
3978
- mt,
3979
- mr,
3980
- mb,
3981
- ml,
3982
- autocomplete: autoComplete
3562
+ ..._props
3983
3563
  }
3984
3564
  );
3985
3565
  }
@@ -4001,23 +3581,21 @@ function GoabThreeColumnLayout(props) {
4001
3581
  }
4002
3582
  );
4003
3583
  }
4004
- function GoabTooltip(props) {
4005
- const isStringContent = typeof props.content === "string";
3584
+ function GoabTooltip({
3585
+ content,
3586
+ children,
3587
+ ...rest
3588
+ }) {
3589
+ const _props = icon.transformProps(rest, icon.lowercase);
3590
+ const isStringContent = typeof content === "string";
4006
3591
  return /* @__PURE__ */ jsxRuntime.jsxs(
4007
3592
  "goa-tooltip",
4008
3593
  {
4009
- position: props.position,
4010
- content: isStringContent ? props.content : void 0,
4011
- halign: props.hAlign,
4012
- testid: props.testId,
4013
- maxwidth: props.maxWidth,
4014
- mt: props.mt,
4015
- mr: props.mr,
4016
- mb: props.mb,
4017
- ml: props.ml,
3594
+ content: isStringContent ? content : void 0,
3595
+ ..._props,
4018
3596
  children: [
4019
- !isStringContent && props.content && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "content", children: props.content }),
4020
- props.children
3597
+ !isStringContent && content && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "content", children: content }),
3598
+ children
4021
3599
  ]
4022
3600
  }
4023
3601
  );
@@ -4040,15 +3618,14 @@ function GoabTwoColumnLayout(props) {
4040
3618
  const GoabFilterChip = ({
4041
3619
  iconTheme = "outline",
4042
3620
  error,
4043
- content,
4044
3621
  onClick,
4045
- mt,
4046
- mr,
4047
- mb,
4048
- ml,
4049
- testId
3622
+ ...rest
4050
3623
  }) => {
4051
3624
  const el = react.useRef(null);
3625
+ const _props = icon.transformProps(
3626
+ { icontheme: iconTheme, ...rest },
3627
+ icon.lowercase
3628
+ );
4052
3629
  react.useEffect(() => {
4053
3630
  if (!el.current) return;
4054
3631
  if (!onClick) return;
@@ -4062,14 +3639,8 @@ const GoabFilterChip = ({
4062
3639
  "goa-filter-chip",
4063
3640
  {
4064
3641
  ref: el,
4065
- icontheme: iconTheme,
4066
3642
  error: error ? "true" : void 0,
4067
- content,
4068
- mt,
4069
- mr,
4070
- mb,
4071
- ml,
4072
- testid: testId
3643
+ ..._props
4073
3644
  }
4074
3645
  );
4075
3646
  };
@@ -4499,6 +4070,7 @@ exports.GoabCheckboxList = GoabCheckboxList;
4499
4070
  exports.GoabChip = GoabChip;
4500
4071
  exports.GoabCircularProgress = GoabCircularProgress;
4501
4072
  exports.GoabContainer = GoabContainer;
4073
+ exports.GoabDataGrid = GoabDataGrid;
4502
4074
  exports.GoabDatePicker = GoabDatePicker;
4503
4075
  exports.GoabDetails = GoabDetails;
4504
4076
  exports.GoabDivider = GoabDivider;