@abgov/react-components 6.3.0-alpha.3 → 6.3.0-alpha.5

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 (88) hide show
  1. package/experimental/form/form-summary.d.ts +1 -1
  2. package/experimental/form/form.d.ts +2 -2
  3. package/experimental/form/task-list.d.ts +2 -2
  4. package/experimental/form/task.d.ts +1 -1
  5. package/experimental/resizable-panel/ResizablePanel.d.ts +1 -1
  6. package/experimental.js +1 -1
  7. package/experimental.js.map +1 -1
  8. package/experimental.mjs +2 -2
  9. package/experimental.mjs.map +1 -1
  10. package/{icon-BPmPItnm.js → icon-CK55b563.js} +5 -4
  11. package/icon-CK55b563.js.map +1 -0
  12. package/{icon-BNGrU_R_.mjs → icon-CoYGOp1V.mjs} +5 -4
  13. package/icon-CoYGOp1V.mjs.map +1 -0
  14. package/index.d.ts +0 -1
  15. package/index.js +68 -71
  16. package/index.js.map +1 -1
  17. package/index.mjs +68 -71
  18. package/index.mjs.map +1 -1
  19. package/lib/accordion/accordion.d.ts +4 -4
  20. package/lib/app-header/app-header.d.ts +5 -4
  21. package/lib/app-header-menu/app-header-menu.d.ts +1 -1
  22. package/lib/badge/badge.d.ts +3 -2
  23. package/lib/block/block.d.ts +1 -1
  24. package/lib/button/button.d.ts +4 -4
  25. package/lib/button-group/button-group.d.ts +2 -1
  26. package/lib/calendar/calendar.d.ts +3 -2
  27. package/lib/callout/callout.d.ts +1 -1
  28. package/lib/card/card-actions.d.ts +3 -2
  29. package/lib/card/card-content.d.ts +3 -2
  30. package/lib/card/card-group.d.ts +3 -2
  31. package/lib/card/card-image.d.ts +3 -2
  32. package/lib/card/card.d.ts +2 -1
  33. package/lib/checkbox/checkbox.d.ts +7 -6
  34. package/lib/chip/chip.d.ts +6 -6
  35. package/lib/circular-progress/circular-progress.d.ts +1 -1
  36. package/lib/container/container.d.ts +2 -2
  37. package/lib/date-picker/date-picker.d.ts +6 -5
  38. package/lib/details/details.d.ts +2 -2
  39. package/lib/divider/divider.d.ts +1 -1
  40. package/lib/drawer/drawer.d.ts +6 -6
  41. package/lib/dropdown/dropdown-item.d.ts +2 -2
  42. package/lib/dropdown/dropdown.d.ts +9 -8
  43. package/lib/fieldset/fieldset.d.ts +4 -4
  44. package/lib/file-upload-card/file-upload-card.d.ts +2 -2
  45. package/lib/file-upload-input/file-upload-input.d.ts +2 -2
  46. package/lib/filter-chip/filter-chip.d.ts +3 -3
  47. package/lib/footer/footer.d.ts +2 -2
  48. package/lib/footer-meta-section/footer-meta-section.d.ts +1 -1
  49. package/lib/footer-nav-section/footer-nav-section.d.ts +1 -1
  50. package/lib/form-item/form-item.d.ts +2 -1
  51. package/lib/form-step/form-step.d.ts +1 -1
  52. package/lib/form-stepper/form-stepper.d.ts +2 -2
  53. package/lib/grid/grid.d.ts +2 -1
  54. package/lib/hero-banner/hero-banner-actions.d.ts +2 -1
  55. package/lib/hero-banner/hero-banner.d.ts +3 -2
  56. package/lib/icon/icon.d.ts +6 -4
  57. package/lib/icon-button/icon-button.d.ts +4 -3
  58. package/lib/input/input.d.ts +8 -7
  59. package/lib/link/link.d.ts +1 -1
  60. package/lib/link-button/link-button.d.ts +1 -1
  61. package/lib/microsite-header/microsite-header.d.ts +4 -3
  62. package/lib/modal/modal.d.ts +6 -6
  63. package/lib/notification/notification.d.ts +2 -2
  64. package/lib/one-column-layout/one-column-layout.d.ts +2 -2
  65. package/lib/page-block/page-block.d.ts +2 -2
  66. package/lib/pages/pages.d.ts +2 -2
  67. package/lib/pagination/pagination.d.ts +2 -2
  68. package/lib/popover/popover.d.ts +4 -4
  69. package/lib/radio-group/radio-group.d.ts +5 -4
  70. package/lib/radio-group/radio.d.ts +8 -8
  71. package/lib/side-menu/side-menu.d.ts +2 -2
  72. package/lib/side-menu-group/side-menu-group.d.ts +2 -2
  73. package/lib/side-menu-heading/side-menu-heading.d.ts +1 -1
  74. package/lib/skeleton/skeleton.d.ts +1 -1
  75. package/lib/spacer/spacer.d.ts +1 -1
  76. package/lib/spinner/spinner.d.ts +3 -2
  77. package/lib/tab/tab.d.ts +3 -2
  78. package/lib/table/table-sort-header.d.ts +2 -1
  79. package/lib/table/table.d.ts +3 -3
  80. package/lib/tabs/tabs.d.ts +3 -3
  81. package/lib/text/text.d.ts +2 -2
  82. package/lib/textarea/textarea.d.ts +5 -4
  83. package/lib/three-column-layout/three-column-layout.d.ts +1 -1
  84. package/lib/tooltip/tooltip.d.ts +2 -2
  85. package/lib/two-column-layout/two-column-layout.d.ts +1 -1
  86. package/package.json +4 -4
  87. package/icon-BNGrU_R_.mjs.map +0 -1
  88. package/icon-BPmPItnm.js.map +0 -1
package/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useRef, useEffect } from "react";
3
- import { G, a } from "./icon-BNGrU_R_.mjs";
3
+ import { G, a } from "./icon-CoYGOp1V.mjs";
4
4
  function GoabAccordion({
5
5
  open,
6
6
  heading,
@@ -35,7 +35,7 @@ function GoabAccordion({
35
35
  "goa-accordion",
36
36
  {
37
37
  ref,
38
- open,
38
+ open: open ? "true" : void 0,
39
39
  headingsize: headingSize,
40
40
  heading,
41
41
  secondarytext: secondaryText,
@@ -88,7 +88,7 @@ function GoabAppHeader({
88
88
  fullmenubreakpoint: fullMenuBreakpoint,
89
89
  maxcontentwidth: maxContentWidth,
90
90
  testid: testId,
91
- hasmenuclickhandler: !!onMenuClick,
91
+ hasmenuclickhandler: onMenuClick ? "true" : "false",
92
92
  children
93
93
  }
94
94
  );
@@ -120,7 +120,7 @@ function GoabBadge({
120
120
  {
121
121
  type,
122
122
  content,
123
- icon,
123
+ icon: icon ? "true" : void 0,
124
124
  testid: testId,
125
125
  arialabel: ariaLabel,
126
126
  mt,
@@ -247,8 +247,8 @@ function GoabBlock(props) {
247
247
  );
248
248
  }
249
249
  function GoabButton({
250
- disabled = false,
251
- type = "primary",
250
+ disabled,
251
+ type,
252
252
  size,
253
253
  variant,
254
254
  leadingIcon,
@@ -286,7 +286,7 @@ function GoabButton({
286
286
  type,
287
287
  size,
288
288
  variant,
289
- disabled: disabled || void 0,
289
+ disabled: disabled ? "true" : void 0,
290
290
  leadingicon: leadingIcon,
291
291
  trailingicon: trailingIcon,
292
292
  width,
@@ -437,11 +437,11 @@ function GoabCheckbox({
437
437
  ref: el,
438
438
  id,
439
439
  name,
440
- error,
441
- checked: checked || false,
442
- disabled,
440
+ error: error ? "true" : void 0,
441
+ checked: checked ? "true" : void 0,
442
+ disabled: disabled ? "true" : void 0,
443
443
  text,
444
- value,
444
+ value: typeof value === "boolean" ? value ? "true" : void 0 : value,
445
445
  arialabel: ariaLabel,
446
446
  description: typeof description === "string" ? description : void 0,
447
447
  maxwidth: maxWidth,
@@ -457,10 +457,10 @@ function GoabCheckbox({
457
457
  );
458
458
  }
459
459
  const GoabChip = ({
460
- leadingIcon = "",
461
- iconTheme = "outline",
462
- deletable = false,
463
- error = false,
460
+ leadingIcon,
461
+ iconTheme,
462
+ deletable,
463
+ error,
464
464
  variant,
465
465
  content,
466
466
  onClick,
@@ -489,8 +489,8 @@ const GoabChip = ({
489
489
  ref: el,
490
490
  leadingicon: leadingIcon,
491
491
  icontheme: iconTheme,
492
- error,
493
- deletable,
492
+ error: error ? "true" : void 0,
493
+ deletable: deletable ? "true" : void 0,
494
494
  content,
495
495
  variant,
496
496
  mt,
@@ -512,7 +512,7 @@ const GoabCircularProgress = ({
512
512
  return /* @__PURE__ */ jsx(
513
513
  "goa-circular-progress",
514
514
  {
515
- visible: visible ? "true" : "false",
515
+ visible: visible ? "true" : void 0,
516
516
  message: message2,
517
517
  progress,
518
518
  variant,
@@ -595,8 +595,8 @@ function GoabDatePicker({
595
595
  ref,
596
596
  name,
597
597
  value: (value == null ? void 0 : value.toISOString()) || "",
598
- error,
599
- disabled,
598
+ error: error ? "true" : void 0,
599
+ disabled: disabled ? "true" : void 0,
600
600
  min: min == null ? void 0 : min.toISOString(),
601
601
  max: max == null ? void 0 : max.toISOString(),
602
602
  testid: testId,
@@ -604,7 +604,7 @@ function GoabDatePicker({
604
604
  mr,
605
605
  mb,
606
606
  ml,
607
- relative
607
+ relative: relative ? "true" : void 0
608
608
  }
609
609
  );
610
610
  }
@@ -613,7 +613,7 @@ function GoabDetails(props) {
613
613
  "goa-details",
614
614
  {
615
615
  heading: props.heading,
616
- open: props.open,
616
+ open: props.open ? "true" : void 0,
617
617
  maxwidth: props.maxWidth,
618
618
  testid: props.testId,
619
619
  mt: props.mt,
@@ -669,21 +669,21 @@ function GoabDropdown(props) {
669
669
  value: stringify(props.value),
670
670
  arialabel: props.ariaLabel,
671
671
  arialabelledby: props.ariaLabelledBy,
672
- disabled: props.disabled,
673
- error: props.error,
674
- filterable: props.filterable,
672
+ disabled: props.disabled ? "true" : void 0,
673
+ error: props.error ? "true" : void 0,
674
+ filterable: props.filterable ? "true" : void 0,
675
675
  leadingicon: props.leadingIcon,
676
676
  maxheight: props.maxHeight,
677
677
  mb: props.mb,
678
678
  ml: props.ml,
679
679
  mr: props.mr,
680
680
  mt: props.mt,
681
- multiselect: props.multiselect,
682
- native: props.native,
681
+ multiselect: props.multiselect ? "true" : void 0,
682
+ native: props.native ? "true" : void 0,
683
683
  placeholder: props.placeholder,
684
684
  testid: props.testId,
685
685
  width: props.width,
686
- relative: props.relative,
686
+ relative: props.relative ? "true" : void 0,
687
687
  id: props.id,
688
688
  children: props.children
689
689
  }
@@ -695,7 +695,13 @@ function GoabDropdownOption(props) {
695
695
  }, []);
696
696
  return /* @__PURE__ */ jsx(GoabDropdownItem, { ...props });
697
697
  }
698
- function GoabDropdownItem({ value, label, filter, name, mountType = "append" }) {
698
+ function GoabDropdownItem({
699
+ value,
700
+ label,
701
+ filter,
702
+ name,
703
+ mountType = "append"
704
+ }) {
699
705
  return /* @__PURE__ */ jsx(
700
706
  "goa-dropdown-item",
701
707
  {
@@ -722,28 +728,28 @@ function GoabFieldset({
722
728
  }) {
723
729
  const ref = useRef(null);
724
730
  useEffect(() => {
725
- var _a;
731
+ if (!ref.current) return;
732
+ const current = ref.current;
726
733
  const _continue = (e) => {
727
734
  const event = e.detail;
728
735
  return onContinue == null ? void 0 : onContinue(event);
729
736
  };
730
737
  if (onContinue) {
731
- (_a = ref.current) == null ? void 0 : _a.addEventListener("_continue", _continue);
738
+ current.addEventListener("_continue", _continue);
732
739
  }
733
740
  return () => {
734
- var _a2;
735
741
  if (onContinue) {
736
- (_a2 = ref.current) == null ? void 0 : _a2.removeEventListener("_continue", _continue);
742
+ current.removeEventListener("_continue", _continue);
737
743
  }
738
744
  };
739
- }, [ref.current, onContinue]);
745
+ }, [ref, onContinue]);
740
746
  return /* @__PURE__ */ jsx(
741
747
  "goa-public-form-page",
742
748
  {
743
749
  ref,
744
750
  id,
745
- first,
746
- last,
751
+ first: first ? "true" : void 0,
752
+ last: last ? "true" : void 0,
747
753
  heading,
748
754
  buttontext: buttonText,
749
755
  mt,
@@ -833,14 +839,7 @@ function GoabAppFooterMetaSection({
833
839
  testId,
834
840
  children
835
841
  }) {
836
- return /* @__PURE__ */ jsx(
837
- "goa-app-footer-meta-section",
838
- {
839
- testid: testId,
840
- slot: "meta",
841
- children
842
- }
843
- );
842
+ return /* @__PURE__ */ jsx("goa-app-footer-meta-section", { testid: testId, slot: "meta", children });
844
843
  }
845
844
  function GoabAppFooterNavSection({
846
845
  heading,
@@ -1029,7 +1028,7 @@ function GoabIconButton({
1029
1028
  {
1030
1029
  ref,
1031
1030
  icon,
1032
- disabled,
1031
+ disabled: disabled ? "true" : void 0,
1033
1032
  variant,
1034
1033
  size,
1035
1034
  title,
@@ -2727,7 +2726,7 @@ function GoabInput({
2727
2726
  {
2728
2727
  ref,
2729
2728
  debounce,
2730
- focused,
2729
+ focused: focused ? "true" : void 0,
2731
2730
  type,
2732
2731
  name,
2733
2732
  autocapitalize: autoCapitalize,
@@ -2735,10 +2734,10 @@ function GoabInput({
2735
2734
  leadingicon: leadingIcon,
2736
2735
  trailingicon: trailingIcon,
2737
2736
  variant,
2738
- disabled,
2739
- readonly,
2737
+ disabled: disabled ? "true" : void 0,
2738
+ readonly: readonly ? "true" : void 0,
2740
2739
  placeholder,
2741
- error,
2740
+ error: error ? "true" : void 0,
2742
2741
  testid: testId,
2743
2742
  value,
2744
2743
  width,
@@ -2753,7 +2752,7 @@ function GoabInput({
2753
2752
  mr,
2754
2753
  mb,
2755
2754
  ml,
2756
- handletrailingiconclick: !!onTrailingIconClick,
2755
+ handletrailingiconclick: onTrailingIconClick ? "true" : "false",
2757
2756
  trailingiconarialabel: trailingIconAriaLabel,
2758
2757
  children: [
2759
2758
  leadingContent && /* @__PURE__ */ jsx("div", { slot: "leadingContent", children: leadingContent }),
@@ -2989,7 +2988,7 @@ function GoabMicrositeHeader({
2989
2988
  maxcontentwidth: maxContentWidth,
2990
2989
  feedbackurltarget: feedbackUrlTarget,
2991
2990
  headerurltarget: headerUrlTarget,
2992
- hasfeedbackhandler: !!onFeedbackClick,
2991
+ hasfeedbackhandler: onFeedbackClick ? "true" : "false",
2993
2992
  children: version && typeof version !== "string" && /* @__PURE__ */ jsx("div", { slot: "version", children: version })
2994
2993
  }
2995
2994
  );
@@ -3024,8 +3023,8 @@ function GoabModal({
3024
3023
  "goa-modal",
3025
3024
  {
3026
3025
  ref: el,
3027
- open,
3028
- closable: !!onClose,
3026
+ open: open ? "true" : void 0,
3027
+ closable: onClose ? "true" : "false",
3029
3028
  maxwidth: maxWidth,
3030
3029
  transition,
3031
3030
  calloutvariant: calloutVariant,
@@ -3093,7 +3092,7 @@ function GoabPages(props) {
3093
3092
  );
3094
3093
  }
3095
3094
  function GoabPagination({ onChange, ...props }) {
3096
- const ref = useRef();
3095
+ const ref = useRef(null);
3097
3096
  useEffect(() => {
3098
3097
  if (!ref.current) {
3099
3098
  return;
@@ -3144,9 +3143,9 @@ function GoabPopover({
3144
3143
  testid: testId,
3145
3144
  maxwidth: maxWidth,
3146
3145
  minwidth: minWidth,
3147
- padded,
3146
+ padded: typeof padded === "undefined" ? void 0 : padded ? "true" : "false",
3148
3147
  position,
3149
- relative,
3148
+ relative: relative ? "true" : void 0,
3150
3149
  mt,
3151
3150
  mr,
3152
3151
  mb,
@@ -3167,7 +3166,6 @@ function GoabRadioItem({
3167
3166
  disabled,
3168
3167
  checked,
3169
3168
  error,
3170
- testId,
3171
3169
  ariaLabel,
3172
3170
  children,
3173
3171
  mt,
@@ -3183,9 +3181,9 @@ function GoabRadioItem({
3183
3181
  value,
3184
3182
  description: typeof description === "string" ? description : void 0,
3185
3183
  maxwidth: maxWidth,
3186
- error,
3187
- disabled,
3188
- checked,
3184
+ error: error ? "true" : void 0,
3185
+ disabled: disabled ? "true" : void 0,
3186
+ checked: checked ? "true" : void 0,
3189
3187
  arialabel: ariaLabel,
3190
3188
  mt,
3191
3189
  mr,
@@ -3203,8 +3201,8 @@ function GoabRadioGroup({
3203
3201
  value,
3204
3202
  children,
3205
3203
  orientation,
3206
- disabled = false,
3207
- error = false,
3204
+ disabled,
3205
+ error,
3208
3206
  testId,
3209
3207
  ariaLabel,
3210
3208
  mt,
@@ -3238,8 +3236,8 @@ function GoabRadioGroup({
3238
3236
  name,
3239
3237
  value,
3240
3238
  orientation,
3241
- disabled,
3242
- error,
3239
+ disabled: disabled ? "true" : void 0,
3240
+ error: error ? "true" : void 0,
3243
3241
  arialabel: ariaLabel,
3244
3242
  mt,
3245
3243
  mr,
@@ -3322,7 +3320,7 @@ function GoabSpinner({
3322
3320
  type,
3323
3321
  size,
3324
3322
  progress,
3325
- invert,
3323
+ invert: invert ? "true" : void 0,
3326
3324
  testid: testId
3327
3325
  }
3328
3326
  );
@@ -3348,7 +3346,6 @@ function GoabTable({ onSort, ...props }) {
3348
3346
  {
3349
3347
  ref,
3350
3348
  width: props.width,
3351
- stickyheader: false,
3352
3349
  variant: props.variant,
3353
3350
  testid: props.testId,
3354
3351
  mt: props.mt,
@@ -3468,13 +3465,13 @@ function GoabTextArea({
3468
3465
  placeholder,
3469
3466
  value,
3470
3467
  rows,
3471
- readOnly,
3472
- disabled,
3468
+ readOnly: readOnly ? "true" : void 0,
3469
+ disabled: disabled ? "true" : void 0,
3473
3470
  countby: countBy,
3474
3471
  maxcount: maxCount,
3475
3472
  width,
3476
3473
  maxwidth: maxWidth,
3477
- error,
3474
+ error: error ? "true" : void 0,
3478
3475
  testid: testId,
3479
3476
  arialabel: ariaLabel,
3480
3477
  mt,
@@ -3535,7 +3532,7 @@ function GoabTwoColumnLayout(props) {
3535
3532
  }
3536
3533
  const GoabFilterChip = ({
3537
3534
  iconTheme = "outline",
3538
- error = false,
3535
+ error,
3539
3536
  content,
3540
3537
  onClick,
3541
3538
  mt,
@@ -3559,7 +3556,7 @@ const GoabFilterChip = ({
3559
3556
  {
3560
3557
  ref: el,
3561
3558
  icontheme: iconTheme,
3562
- error,
3559
+ error: error ? "true" : void 0,
3563
3560
  content,
3564
3561
  mt,
3565
3562
  mr,