@abgov/react-components 5.0.0-alpha.6 → 5.0.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +4 -0
- package/index.js +155 -53
- package/index.js.map +1 -1
- package/index.mjs +155 -53
- package/index.mjs.map +1 -1
- package/lib/accordion/accordion.d.ts +1 -0
- package/lib/app-header/app-header.d.ts +1 -0
- package/lib/app-header-menu/app-header-menu.d.ts +1 -0
- package/lib/badge/badge.d.ts +1 -0
- package/lib/block/block.d.ts +1 -0
- package/lib/button/button.d.ts +1 -0
- package/lib/button-group/button-group.d.ts +1 -0
- package/lib/calendar/calendar.d.ts +1 -0
- package/lib/callout/callout.d.ts +1 -0
- package/lib/checkbox/checkbox.d.ts +2 -1
- package/lib/chip/chip.d.ts +1 -0
- package/lib/circular-progress/circular-progress.d.ts +1 -0
- package/lib/container/container.d.ts +1 -0
- package/lib/date-picker/date-picker.d.ts +2 -1
- package/lib/details/details.d.ts +1 -0
- package/lib/divider/divider.d.ts +4 -1
- package/lib/dropdown/dropdown.d.ts +2 -1
- package/lib/fieldset/fieldset.d.ts +29 -0
- package/lib/file-upload-card/file-upload-card.d.ts +1 -0
- package/lib/file-upload-input/file-upload-input.d.ts +1 -0
- package/lib/footer/footer.d.ts +1 -0
- package/lib/footer-meta-section/footer-meta-section.d.ts +4 -1
- package/lib/footer-nav-section/footer-nav-section.d.ts +1 -0
- package/lib/form-item/form-item.d.ts +1 -0
- package/lib/form-stepper/form-stepper.d.ts +1 -0
- package/lib/grid/grid.d.ts +1 -0
- package/lib/hero-banner/hero-banner.d.ts +1 -0
- package/lib/icon-button/icon-button.d.ts +1 -0
- package/lib/input/input.d.ts +4 -3
- package/lib/link/link.d.ts +21 -0
- package/lib/link-button/link-button.d.ts +24 -0
- package/lib/microsite-header/microsite-header.d.ts +1 -0
- package/lib/modal/modal.d.ts +1 -0
- package/lib/notification/notification.d.ts +1 -0
- package/lib/page-block/page-block.d.ts +1 -0
- package/lib/pagination/pagination.d.ts +1 -0
- package/lib/popover/popover.d.ts +1 -0
- package/lib/radio-group/radio-group.d.ts +2 -1
- package/lib/side-menu/side-menu.d.ts +4 -1
- package/lib/side-menu-group/side-menu-group.d.ts +1 -0
- package/lib/side-menu-heading/side-menu-heading.d.ts +1 -0
- package/lib/skeleton/skeleton.d.ts +1 -0
- package/lib/spacer/spacer.d.ts +1 -0
- package/lib/spinner/spinner.d.ts +1 -0
- package/lib/table/table.d.ts +1 -0
- package/lib/tabs/tabs.d.ts +1 -0
- package/lib/text/text.d.ts +28 -0
- package/lib/textarea/textarea.d.ts +2 -1
- package/lib/tooltip/tooltip.d.ts +1 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from "./lib/details/details";
|
|
|
16
16
|
export * from "./lib/divider/divider";
|
|
17
17
|
export * from "./lib/dropdown/dropdown";
|
|
18
18
|
export * from "./lib/dropdown/dropdown-item";
|
|
19
|
+
export * from "./lib/fieldset/fieldset";
|
|
19
20
|
export * from "./lib/file-upload-card/file-upload-card";
|
|
20
21
|
export * from "./lib/file-upload-input/file-upload-input";
|
|
21
22
|
export * from "./lib/footer/footer";
|
|
@@ -30,6 +31,8 @@ export * from "./lib/hero-banner/hero-banner-actions";
|
|
|
30
31
|
export * from "./lib/icon-button/icon-button";
|
|
31
32
|
export * from "./lib/icon/icon";
|
|
32
33
|
export * from "./lib/input/input";
|
|
34
|
+
export * from "./lib/link/link";
|
|
35
|
+
export * from "./lib/link-button/link-button";
|
|
33
36
|
export * from "./lib/microsite-header/microsite-header";
|
|
34
37
|
export * from "./lib/modal/modal";
|
|
35
38
|
export * from "./lib/notification/notification";
|
|
@@ -49,6 +52,7 @@ export * from "./lib/table/table";
|
|
|
49
52
|
export * from "./lib/table/table-sort-header";
|
|
50
53
|
export * from "./lib/tabs/tabs";
|
|
51
54
|
export * from "./lib/tab/tab";
|
|
55
|
+
export * from "./lib/text/text";
|
|
52
56
|
export * from "./lib/textarea/textarea";
|
|
53
57
|
export * from "./lib/three-column-layout/three-column-layout";
|
|
54
58
|
export * from "./lib/tooltip/tooltip";
|
package/index.js
CHANGED
|
@@ -24,7 +24,7 @@ function GoAAccordion({
|
|
|
24
24
|
heading,
|
|
25
25
|
secondaryText,
|
|
26
26
|
maxwidth: maxWidth,
|
|
27
|
-
|
|
27
|
+
testid,
|
|
28
28
|
mt,
|
|
29
29
|
mr,
|
|
30
30
|
mb,
|
|
@@ -51,7 +51,7 @@ function GoAAppHeader({
|
|
|
51
51
|
url,
|
|
52
52
|
fullmenubreakpoint: fullMenuBreakpoint,
|
|
53
53
|
maxcontentwidth: maxContentWidth,
|
|
54
|
-
|
|
54
|
+
testid: testId,
|
|
55
55
|
children
|
|
56
56
|
}
|
|
57
57
|
);
|
|
@@ -62,7 +62,7 @@ function GoAAppHeaderMenu(props) {
|
|
|
62
62
|
{
|
|
63
63
|
heading: props.heading,
|
|
64
64
|
leadingicon: props.leadingIcon,
|
|
65
|
-
|
|
65
|
+
testid: props.testId,
|
|
66
66
|
children: props.children
|
|
67
67
|
}
|
|
68
68
|
);
|
|
@@ -84,7 +84,7 @@ function GoABadge({
|
|
|
84
84
|
type,
|
|
85
85
|
content,
|
|
86
86
|
icon,
|
|
87
|
-
|
|
87
|
+
testid: testId,
|
|
88
88
|
arialabel: ariaLabel,
|
|
89
89
|
mt,
|
|
90
90
|
mr,
|
|
@@ -204,7 +204,7 @@ function GoABlock(props) {
|
|
|
204
204
|
mr: props.mr,
|
|
205
205
|
mb: props.mb,
|
|
206
206
|
ml: props.ml,
|
|
207
|
-
|
|
207
|
+
testid: props.testId,
|
|
208
208
|
children: props.children
|
|
209
209
|
}
|
|
210
210
|
);
|
|
@@ -251,7 +251,7 @@ function GoAButton({
|
|
|
251
251
|
disabled,
|
|
252
252
|
leadingicon: leadingIcon,
|
|
253
253
|
trailingicon: trailingIcon,
|
|
254
|
-
|
|
254
|
+
testid: testId,
|
|
255
255
|
mt,
|
|
256
256
|
mr,
|
|
257
257
|
mb,
|
|
@@ -279,7 +279,7 @@ function GoAButtonGroup({
|
|
|
279
279
|
mr,
|
|
280
280
|
mb,
|
|
281
281
|
ml,
|
|
282
|
-
|
|
282
|
+
testid: testId,
|
|
283
283
|
children
|
|
284
284
|
}
|
|
285
285
|
);
|
|
@@ -314,7 +314,7 @@ function GoACalendar({
|
|
|
314
314
|
value: value == null ? void 0 : value.toISOString(),
|
|
315
315
|
min: min == null ? void 0 : min.toISOString(),
|
|
316
316
|
max: max == null ? void 0 : max.toISOString(),
|
|
317
|
-
|
|
317
|
+
testid: testId,
|
|
318
318
|
mt,
|
|
319
319
|
mr,
|
|
320
320
|
mb,
|
|
@@ -347,7 +347,7 @@ const GoACallout = ({
|
|
|
347
347
|
mr,
|
|
348
348
|
mb,
|
|
349
349
|
ml,
|
|
350
|
-
|
|
350
|
+
testid: testId,
|
|
351
351
|
children
|
|
352
352
|
}
|
|
353
353
|
);
|
|
@@ -389,12 +389,12 @@ function GoACheckbox({
|
|
|
389
389
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
390
390
|
"goa-checkbox",
|
|
391
391
|
{
|
|
392
|
-
|
|
392
|
+
testid: testId,
|
|
393
393
|
ref: el,
|
|
394
394
|
id,
|
|
395
395
|
name,
|
|
396
396
|
error,
|
|
397
|
-
checked,
|
|
397
|
+
checked: checked || false,
|
|
398
398
|
disabled,
|
|
399
399
|
text,
|
|
400
400
|
value,
|
|
@@ -453,7 +453,7 @@ const GoAChip = ({
|
|
|
453
453
|
mr,
|
|
454
454
|
mb,
|
|
455
455
|
ml,
|
|
456
|
-
|
|
456
|
+
testid: testId
|
|
457
457
|
}
|
|
458
458
|
);
|
|
459
459
|
};
|
|
@@ -473,7 +473,7 @@ const GoACircularProgress = ({
|
|
|
473
473
|
progress,
|
|
474
474
|
variant,
|
|
475
475
|
size,
|
|
476
|
-
|
|
476
|
+
testid: testId
|
|
477
477
|
}
|
|
478
478
|
);
|
|
479
479
|
};
|
|
@@ -506,7 +506,7 @@ function GoAContainer({
|
|
|
506
506
|
mr,
|
|
507
507
|
mb,
|
|
508
508
|
ml,
|
|
509
|
-
|
|
509
|
+
testid: testId,
|
|
510
510
|
children: [
|
|
511
511
|
headingContent && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "title", children: headingContent }),
|
|
512
512
|
children,
|
|
@@ -538,7 +538,7 @@ function GoADatePicker({
|
|
|
538
538
|
const current = ref.current;
|
|
539
539
|
const handleChange = (e) => {
|
|
540
540
|
const newValue = e.detail.value;
|
|
541
|
-
onChange(name || "", newValue ? new Date(newValue) : void 0);
|
|
541
|
+
onChange == null ? void 0 : onChange(name || "", newValue ? new Date(newValue) : void 0);
|
|
542
542
|
};
|
|
543
543
|
current.addEventListener("_change", handleChange);
|
|
544
544
|
return () => {
|
|
@@ -555,7 +555,7 @@ function GoADatePicker({
|
|
|
555
555
|
disabled,
|
|
556
556
|
min: min == null ? void 0 : min.toISOString(),
|
|
557
557
|
max: max == null ? void 0 : max.toISOString(),
|
|
558
|
-
|
|
558
|
+
testid: testId,
|
|
559
559
|
mt,
|
|
560
560
|
mr,
|
|
561
561
|
mb,
|
|
@@ -571,7 +571,7 @@ function GoADetails(props) {
|
|
|
571
571
|
heading: props.heading,
|
|
572
572
|
open: props.open,
|
|
573
573
|
maxwidth: props.maxWidth,
|
|
574
|
-
|
|
574
|
+
testid: props.testId,
|
|
575
575
|
mt: props.mt,
|
|
576
576
|
mr: props.mr,
|
|
577
577
|
mb: props.mb,
|
|
@@ -588,7 +588,7 @@ function GoADivider(props) {
|
|
|
588
588
|
mr: props.mr,
|
|
589
589
|
mb: props.mb,
|
|
590
590
|
ml: props.ml,
|
|
591
|
-
|
|
591
|
+
testid: props.testId
|
|
592
592
|
}
|
|
593
593
|
);
|
|
594
594
|
}
|
|
@@ -609,8 +609,9 @@ function GoADropdown(props) {
|
|
|
609
609
|
}
|
|
610
610
|
const current = el.current;
|
|
611
611
|
const handler = (e) => {
|
|
612
|
+
var _a;
|
|
612
613
|
const { name, value, values } = e.detail;
|
|
613
|
-
props.onChange(name, props.multiselect ? values : value);
|
|
614
|
+
(_a = props.onChange) == null ? void 0 : _a.call(props, name, props.multiselect ? values : value);
|
|
614
615
|
};
|
|
615
616
|
current.addEventListener("_change", handler);
|
|
616
617
|
return () => {
|
|
@@ -637,7 +638,7 @@ function GoADropdown(props) {
|
|
|
637
638
|
multiselect: props.multiselect,
|
|
638
639
|
native: props.native,
|
|
639
640
|
placeholder: props.placeholder,
|
|
640
|
-
|
|
641
|
+
testid: props.testId,
|
|
641
642
|
width: props.width,
|
|
642
643
|
relative: props.relative,
|
|
643
644
|
id: props.id,
|
|
@@ -664,6 +665,53 @@ function GoADropdownItem({ value, label, filter, name, testId, mountType = "appe
|
|
|
664
665
|
}
|
|
665
666
|
);
|
|
666
667
|
}
|
|
668
|
+
function GoAFieldset({
|
|
669
|
+
heading,
|
|
670
|
+
buttonText,
|
|
671
|
+
id,
|
|
672
|
+
onContinue,
|
|
673
|
+
children,
|
|
674
|
+
mt,
|
|
675
|
+
mr,
|
|
676
|
+
mb,
|
|
677
|
+
ml,
|
|
678
|
+
first,
|
|
679
|
+
last
|
|
680
|
+
}) {
|
|
681
|
+
const ref = react.useRef(null);
|
|
682
|
+
react.useEffect(() => {
|
|
683
|
+
var _a;
|
|
684
|
+
const _continue = (e) => {
|
|
685
|
+
const { el, state } = e.detail;
|
|
686
|
+
return onContinue == null ? void 0 : onContinue(el, state);
|
|
687
|
+
};
|
|
688
|
+
if (onContinue) {
|
|
689
|
+
(_a = ref.current) == null ? void 0 : _a.addEventListener("_continue", _continue);
|
|
690
|
+
}
|
|
691
|
+
return () => {
|
|
692
|
+
var _a2;
|
|
693
|
+
if (onContinue) {
|
|
694
|
+
(_a2 = ref.current) == null ? void 0 : _a2.removeEventListener("_continue", _continue);
|
|
695
|
+
}
|
|
696
|
+
};
|
|
697
|
+
}, [ref.current, onContinue]);
|
|
698
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
699
|
+
"goa-fieldset",
|
|
700
|
+
{
|
|
701
|
+
ref,
|
|
702
|
+
id,
|
|
703
|
+
first,
|
|
704
|
+
last,
|
|
705
|
+
heading,
|
|
706
|
+
buttontext: buttonText,
|
|
707
|
+
mt,
|
|
708
|
+
mr,
|
|
709
|
+
mb,
|
|
710
|
+
ml,
|
|
711
|
+
children
|
|
712
|
+
}
|
|
713
|
+
);
|
|
714
|
+
}
|
|
667
715
|
function GoAFileUploadCard({
|
|
668
716
|
filename,
|
|
669
717
|
size,
|
|
@@ -696,7 +744,7 @@ function GoAFileUploadCard({
|
|
|
696
744
|
type,
|
|
697
745
|
progress,
|
|
698
746
|
error,
|
|
699
|
-
|
|
747
|
+
testid: testId
|
|
700
748
|
}
|
|
701
749
|
);
|
|
702
750
|
}
|
|
@@ -726,7 +774,7 @@ function GoAFileUploadInput({
|
|
|
726
774
|
variant,
|
|
727
775
|
accept,
|
|
728
776
|
maxfilesize: maxFileSize,
|
|
729
|
-
|
|
777
|
+
testid: testId
|
|
730
778
|
}
|
|
731
779
|
);
|
|
732
780
|
}
|
|
@@ -735,13 +783,13 @@ function GoAAppFooter({
|
|
|
735
783
|
children,
|
|
736
784
|
testId
|
|
737
785
|
}) {
|
|
738
|
-
return /* @__PURE__ */ jsxRuntime.jsx("goa-app-footer", { maxcontentwidth: maxContentWidth,
|
|
786
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-app-footer", { maxcontentwidth: maxContentWidth, testid: testId, children });
|
|
739
787
|
}
|
|
740
788
|
function GoAAppFooterMetaSection({ testId, children }) {
|
|
741
789
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
742
790
|
"goa-app-footer-meta-section",
|
|
743
791
|
{
|
|
744
|
-
|
|
792
|
+
testid: testId,
|
|
745
793
|
slot: "meta",
|
|
746
794
|
children
|
|
747
795
|
}
|
|
@@ -759,7 +807,7 @@ function GoAAppFooterNavSection({
|
|
|
759
807
|
slot: "nav",
|
|
760
808
|
heading,
|
|
761
809
|
maxcolumncount: maxColumnCount,
|
|
762
|
-
|
|
810
|
+
testid: testId,
|
|
763
811
|
children
|
|
764
812
|
}
|
|
765
813
|
);
|
|
@@ -792,7 +840,7 @@ function GoAFormItem({
|
|
|
792
840
|
mr,
|
|
793
841
|
mb,
|
|
794
842
|
ml,
|
|
795
|
-
|
|
843
|
+
testid: testId,
|
|
796
844
|
id,
|
|
797
845
|
children: [
|
|
798
846
|
error && typeof error !== "string" && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "error", children: error }),
|
|
@@ -834,7 +882,7 @@ function GoAFormStepper({
|
|
|
834
882
|
"goa-form-stepper",
|
|
835
883
|
{
|
|
836
884
|
ref,
|
|
837
|
-
|
|
885
|
+
testid: testId,
|
|
838
886
|
step,
|
|
839
887
|
mt,
|
|
840
888
|
mr,
|
|
@@ -863,7 +911,7 @@ function GoAGrid({
|
|
|
863
911
|
mr,
|
|
864
912
|
mb,
|
|
865
913
|
ml,
|
|
866
|
-
|
|
914
|
+
testid: testId,
|
|
867
915
|
children
|
|
868
916
|
}
|
|
869
917
|
);
|
|
@@ -887,7 +935,7 @@ function GoAHeroBanner({
|
|
|
887
935
|
maxcontentwidth: maxContentWidth,
|
|
888
936
|
backgroundcolor: backgroundColor,
|
|
889
937
|
textcolor: textColor,
|
|
890
|
-
|
|
938
|
+
testid: testId,
|
|
891
939
|
children
|
|
892
940
|
}
|
|
893
941
|
);
|
|
@@ -943,7 +991,7 @@ function GoAIconButton({
|
|
|
943
991
|
mr,
|
|
944
992
|
mb,
|
|
945
993
|
ml,
|
|
946
|
-
|
|
994
|
+
testid: testId,
|
|
947
995
|
children
|
|
948
996
|
}
|
|
949
997
|
);
|
|
@@ -978,7 +1026,7 @@ function GoAIcon({
|
|
|
978
1026
|
mr,
|
|
979
1027
|
mb,
|
|
980
1028
|
ml,
|
|
981
|
-
|
|
1029
|
+
testid: testId
|
|
982
1030
|
}
|
|
983
1031
|
);
|
|
984
1032
|
}
|
|
@@ -2630,7 +2678,7 @@ function GoAInput({
|
|
|
2630
2678
|
const current = ref.current;
|
|
2631
2679
|
const changeListener = (e) => {
|
|
2632
2680
|
const { name: name2, value: value2 } = e.detail;
|
|
2633
|
-
onChange(name2, value2);
|
|
2681
|
+
onChange == null ? void 0 : onChange(name2, value2);
|
|
2634
2682
|
};
|
|
2635
2683
|
const clickListener = () => {
|
|
2636
2684
|
onTrailingIconClick == null ? void 0 : onTrailingIconClick();
|
|
@@ -2677,7 +2725,7 @@ function GoAInput({
|
|
|
2677
2725
|
readonly,
|
|
2678
2726
|
placeholder,
|
|
2679
2727
|
error,
|
|
2680
|
-
|
|
2728
|
+
testid: testId,
|
|
2681
2729
|
value,
|
|
2682
2730
|
width,
|
|
2683
2731
|
min,
|
|
@@ -2701,6 +2749,7 @@ function GoAInput({
|
|
|
2701
2749
|
}
|
|
2702
2750
|
const onDateChangeHandler = (onChange) => {
|
|
2703
2751
|
return (name, value) => {
|
|
2752
|
+
if (!onChange) return;
|
|
2704
2753
|
if (!value) {
|
|
2705
2754
|
onChange(name, "");
|
|
2706
2755
|
return;
|
|
@@ -2712,6 +2761,7 @@ const onDateChangeHandler = (onChange) => {
|
|
|
2712
2761
|
};
|
|
2713
2762
|
const onTimeChangeHandler = (onChange) => {
|
|
2714
2763
|
return (name, value) => {
|
|
2764
|
+
if (!onChange) return;
|
|
2715
2765
|
if (!value) {
|
|
2716
2766
|
onChange(name, "");
|
|
2717
2767
|
return;
|
|
@@ -2806,7 +2856,10 @@ function GoAInputFile(props) {
|
|
|
2806
2856
|
id: props.id,
|
|
2807
2857
|
name: props.name,
|
|
2808
2858
|
type: "file",
|
|
2809
|
-
onChange: (e) =>
|
|
2859
|
+
onChange: (e) => {
|
|
2860
|
+
var _a;
|
|
2861
|
+
return (_a = props.onChange) == null ? void 0 : _a.call(props, e.target.name, e.target.value);
|
|
2862
|
+
},
|
|
2810
2863
|
style: { backgroundColor: "revert" }
|
|
2811
2864
|
}
|
|
2812
2865
|
);
|
|
@@ -2821,7 +2874,8 @@ function GoAInputNumber({
|
|
|
2821
2874
|
...props
|
|
2822
2875
|
}) {
|
|
2823
2876
|
const onNumberChange = (name, value2) => {
|
|
2824
|
-
|
|
2877
|
+
var _a;
|
|
2878
|
+
(_a = props.onChange) == null ? void 0 : _a.call(props, name, parseFloat(value2));
|
|
2825
2879
|
};
|
|
2826
2880
|
const onFocus = (name, value2) => {
|
|
2827
2881
|
var _a;
|
|
@@ -2853,6 +2907,35 @@ function GoAInputNumber({
|
|
|
2853
2907
|
function GoAInputRange(props) {
|
|
2854
2908
|
return /* @__PURE__ */ jsxRuntime.jsx(GoAInput, { ...props, type: "range" });
|
|
2855
2909
|
}
|
|
2910
|
+
function GoALink(props) {
|
|
2911
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2912
|
+
"goa-link",
|
|
2913
|
+
{
|
|
2914
|
+
leadingicon: props.leadingIcon,
|
|
2915
|
+
trailingicon: props.trailingIcon,
|
|
2916
|
+
mt: props.mt,
|
|
2917
|
+
mb: props.mb,
|
|
2918
|
+
ml: props.ml,
|
|
2919
|
+
mr: props.mr,
|
|
2920
|
+
children: props.children
|
|
2921
|
+
}
|
|
2922
|
+
);
|
|
2923
|
+
}
|
|
2924
|
+
function GoALinkButton({ type = "primary", ...props }) {
|
|
2925
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2926
|
+
"goa-link-button",
|
|
2927
|
+
{
|
|
2928
|
+
type,
|
|
2929
|
+
leadingicon: props.leadingIcon,
|
|
2930
|
+
trailingicon: props.trailingIcon,
|
|
2931
|
+
mt: props.mt,
|
|
2932
|
+
mb: props.mb,
|
|
2933
|
+
ml: props.ml,
|
|
2934
|
+
mr: props.mr,
|
|
2935
|
+
children: props.children
|
|
2936
|
+
}
|
|
2937
|
+
);
|
|
2938
|
+
}
|
|
2856
2939
|
function GoAMicrositeHeader({
|
|
2857
2940
|
type,
|
|
2858
2941
|
version,
|
|
@@ -2887,7 +2970,7 @@ function GoAMicrositeHeader({
|
|
|
2887
2970
|
type,
|
|
2888
2971
|
version: typeof version === "string" ? version : void 0,
|
|
2889
2972
|
feedbackurl: feedbackUrl,
|
|
2890
|
-
|
|
2973
|
+
testid: testId,
|
|
2891
2974
|
maxcontentwidth: maxContentWidth,
|
|
2892
2975
|
feedbackurltarget: feedbackUrlTarget,
|
|
2893
2976
|
headerurltarget: headerUrlTarget,
|
|
@@ -2941,7 +3024,7 @@ function GoAModal({
|
|
|
2941
3024
|
maxwidth: maxWidth,
|
|
2942
3025
|
transition,
|
|
2943
3026
|
calloutvariant: calloutVariant,
|
|
2944
|
-
|
|
3027
|
+
testid: testId,
|
|
2945
3028
|
role,
|
|
2946
3029
|
children: [
|
|
2947
3030
|
heading && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "heading", children: heading }),
|
|
@@ -2978,7 +3061,7 @@ const GoANotification = ({
|
|
|
2978
3061
|
{
|
|
2979
3062
|
ref: el,
|
|
2980
3063
|
type,
|
|
2981
|
-
|
|
3064
|
+
testid: testId,
|
|
2982
3065
|
maxcontentwidth: maxContentWidth,
|
|
2983
3066
|
arialive: ariaLive,
|
|
2984
3067
|
children
|
|
@@ -2989,7 +3072,7 @@ function GoAOneColumnLayout(props) {
|
|
|
2989
3072
|
return /* @__PURE__ */ jsxRuntime.jsx("goa-one-column-layout", { children: props.children });
|
|
2990
3073
|
}
|
|
2991
3074
|
function GoAPageBlock(props) {
|
|
2992
|
-
return /* @__PURE__ */ jsxRuntime.jsx("goa-page-block", { width: props.width,
|
|
3075
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-page-block", { width: props.width, testid: props.testId, children: props.children });
|
|
2993
3076
|
}
|
|
2994
3077
|
function GoAPages(props) {
|
|
2995
3078
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3032,7 +3115,7 @@ function GoAPagination({ onChange, ...props }) {
|
|
|
3032
3115
|
mb: props.mb,
|
|
3033
3116
|
ml: props.ml,
|
|
3034
3117
|
mr: props.mr,
|
|
3035
|
-
|
|
3118
|
+
testid: props.testId
|
|
3036
3119
|
}
|
|
3037
3120
|
);
|
|
3038
3121
|
}
|
|
@@ -3053,7 +3136,7 @@ function GoAPopover({
|
|
|
3053
3136
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3054
3137
|
"goa-popover",
|
|
3055
3138
|
{
|
|
3056
|
-
|
|
3139
|
+
testid: testId,
|
|
3057
3140
|
maxwidth: maxWidth,
|
|
3058
3141
|
minwidth: minWidth,
|
|
3059
3142
|
padded,
|
|
@@ -3147,7 +3230,7 @@ function GoARadioGroup({
|
|
|
3147
3230
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3148
3231
|
"goa-radio-group",
|
|
3149
3232
|
{
|
|
3150
|
-
|
|
3233
|
+
testid: testId,
|
|
3151
3234
|
ref: el,
|
|
3152
3235
|
name,
|
|
3153
3236
|
value,
|
|
@@ -3168,7 +3251,7 @@ function GoASideMenuGroup(props) {
|
|
|
3168
3251
|
"goa-side-menu-group",
|
|
3169
3252
|
{
|
|
3170
3253
|
heading: props.heading,
|
|
3171
|
-
|
|
3254
|
+
testid: props.testId,
|
|
3172
3255
|
children: props.children
|
|
3173
3256
|
}
|
|
3174
3257
|
);
|
|
@@ -3178,7 +3261,7 @@ function GoASideMenuHeading(props) {
|
|
|
3178
3261
|
"goa-side-menu-heading",
|
|
3179
3262
|
{
|
|
3180
3263
|
icon: props.icon,
|
|
3181
|
-
|
|
3264
|
+
testid: props.testId,
|
|
3182
3265
|
children: [
|
|
3183
3266
|
props.children,
|
|
3184
3267
|
props.meta && /* @__PURE__ */ jsxRuntime.jsx("span", { slot: "meta", children: props.meta })
|
|
@@ -3187,7 +3270,7 @@ function GoASideMenuHeading(props) {
|
|
|
3187
3270
|
);
|
|
3188
3271
|
}
|
|
3189
3272
|
function GoASideMenu(props) {
|
|
3190
|
-
return /* @__PURE__ */ jsxRuntime.jsx("goa-side-menu", {
|
|
3273
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-side-menu", { testid: props.testId, children: props.children });
|
|
3191
3274
|
}
|
|
3192
3275
|
const GoASkeleton = ({
|
|
3193
3276
|
maxWidth,
|
|
@@ -3211,7 +3294,7 @@ const GoASkeleton = ({
|
|
|
3211
3294
|
mr,
|
|
3212
3295
|
mb,
|
|
3213
3296
|
ml,
|
|
3214
|
-
|
|
3297
|
+
testid: testId
|
|
3215
3298
|
}
|
|
3216
3299
|
);
|
|
3217
3300
|
};
|
|
@@ -3221,7 +3304,7 @@ function GoASpacer(props) {
|
|
|
3221
3304
|
{
|
|
3222
3305
|
hspacing: props.hSpacing,
|
|
3223
3306
|
vspacing: props.vSpacing,
|
|
3224
|
-
|
|
3307
|
+
testid: props.testId
|
|
3225
3308
|
}
|
|
3226
3309
|
);
|
|
3227
3310
|
}
|
|
@@ -3239,7 +3322,7 @@ function GoASpinner({
|
|
|
3239
3322
|
size,
|
|
3240
3323
|
progress,
|
|
3241
3324
|
invert,
|
|
3242
|
-
|
|
3325
|
+
testid: testId
|
|
3243
3326
|
}
|
|
3244
3327
|
);
|
|
3245
3328
|
}
|
|
@@ -3266,7 +3349,7 @@ function GoATable({ onSort, ...props }) {
|
|
|
3266
3349
|
width: props.width,
|
|
3267
3350
|
stickyheader: false,
|
|
3268
3351
|
variant: props.variant,
|
|
3269
|
-
|
|
3352
|
+
testid: props.testId,
|
|
3270
3353
|
mt: props.mt,
|
|
3271
3354
|
mb: props.mb,
|
|
3272
3355
|
ml: props.ml,
|
|
@@ -3302,7 +3385,7 @@ function GoATabs({
|
|
|
3302
3385
|
};
|
|
3303
3386
|
}
|
|
3304
3387
|
}, [onChange]);
|
|
3305
|
-
return /* @__PURE__ */ jsxRuntime.jsx("goa-tabs", { ref, initialtab: initialTab,
|
|
3388
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-tabs", { ref, initialtab: initialTab, testid: testId, children });
|
|
3306
3389
|
}
|
|
3307
3390
|
function GoATab({ heading, children }) {
|
|
3308
3391
|
return /* @__PURE__ */ jsxRuntime.jsxs("goa-tab", { children: [
|
|
@@ -3310,6 +3393,21 @@ function GoATab({ heading, children }) {
|
|
|
3310
3393
|
children
|
|
3311
3394
|
] });
|
|
3312
3395
|
}
|
|
3396
|
+
function GoAText(props) {
|
|
3397
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3398
|
+
"goa-text",
|
|
3399
|
+
{
|
|
3400
|
+
as: props.as || "div",
|
|
3401
|
+
size: props.size,
|
|
3402
|
+
maxwidth: props.maxWidth || "65ch",
|
|
3403
|
+
mt: props.mt,
|
|
3404
|
+
mb: props.mb,
|
|
3405
|
+
ml: props.ml,
|
|
3406
|
+
mr: props.mr,
|
|
3407
|
+
children: props.children
|
|
3408
|
+
}
|
|
3409
|
+
);
|
|
3410
|
+
}
|
|
3313
3411
|
function GoATextarea({
|
|
3314
3412
|
name,
|
|
3315
3413
|
value,
|
|
@@ -3338,7 +3436,7 @@ function GoATextarea({
|
|
|
3338
3436
|
const current = el.current;
|
|
3339
3437
|
const listener = (e) => {
|
|
3340
3438
|
const { name: name2, value: value2 } = e.detail;
|
|
3341
|
-
onChange(name2, value2);
|
|
3439
|
+
onChange == null ? void 0 : onChange(name2, value2);
|
|
3342
3440
|
};
|
|
3343
3441
|
current.addEventListener("_change", listener);
|
|
3344
3442
|
return () => {
|
|
@@ -3373,7 +3471,7 @@ function GoATextarea({
|
|
|
3373
3471
|
width,
|
|
3374
3472
|
maxwidth: maxWidth,
|
|
3375
3473
|
error,
|
|
3376
|
-
|
|
3474
|
+
testid: testId,
|
|
3377
3475
|
arialabel: ariaLabel,
|
|
3378
3476
|
mt,
|
|
3379
3477
|
mr,
|
|
@@ -3407,7 +3505,7 @@ function GoATooltip(props) {
|
|
|
3407
3505
|
position: props.position,
|
|
3408
3506
|
content: props.content,
|
|
3409
3507
|
halign: props.hAlign,
|
|
3410
|
-
|
|
3508
|
+
testid: props.testId,
|
|
3411
3509
|
mt: props.mt,
|
|
3412
3510
|
mr: props.mr,
|
|
3413
3511
|
mb: props.mb,
|
|
@@ -3454,6 +3552,7 @@ exports.GoADropdown = GoADropdown;
|
|
|
3454
3552
|
exports.GoADropdownItem = GoADropdownItem;
|
|
3455
3553
|
exports.GoADropdownOption = GoADropdownOption;
|
|
3456
3554
|
exports.GoAEmergencyBadge = GoAEmergencyBadge;
|
|
3555
|
+
exports.GoAFieldset = GoAFieldset;
|
|
3457
3556
|
exports.GoAFileUploadCard = GoAFileUploadCard;
|
|
3458
3557
|
exports.GoAFileUploadInput = GoAFileUploadInput;
|
|
3459
3558
|
exports.GoAFormItem = GoAFormItem;
|
|
@@ -3480,6 +3579,8 @@ exports.GoAInputTel = GoAInputTel;
|
|
|
3480
3579
|
exports.GoAInputText = GoAInputText;
|
|
3481
3580
|
exports.GoAInputTime = GoAInputTime;
|
|
3482
3581
|
exports.GoAInputUrl = GoAInputUrl;
|
|
3582
|
+
exports.GoALink = GoALink;
|
|
3583
|
+
exports.GoALinkButton = GoALinkButton;
|
|
3483
3584
|
exports.GoAMicrositeHeader = GoAMicrositeHeader;
|
|
3484
3585
|
exports.GoAModal = GoAModal;
|
|
3485
3586
|
exports.GoANotification = GoANotification;
|
|
@@ -3501,6 +3602,7 @@ exports.GoATab = GoATab;
|
|
|
3501
3602
|
exports.GoATable = GoATable;
|
|
3502
3603
|
exports.GoATableSortHeader = GoATableSortHeader;
|
|
3503
3604
|
exports.GoATabs = GoATabs;
|
|
3605
|
+
exports.GoAText = GoAText;
|
|
3504
3606
|
exports.GoATextArea = GoATextarea;
|
|
3505
3607
|
exports.GoATextarea = GoATextarea;
|
|
3506
3608
|
exports.GoAThreeColumnLayout = GoAThreeColumnLayout;
|