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