@abgov/react-components 5.0.0-alpha.5 → 5.0.0-alpha.7
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.js +67 -47
- package/index.js.map +1 -1
- package/index.mjs +67 -47
- 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 +1 -0
- 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 +1 -0
- package/lib/details/details.d.ts +1 -0
- package/lib/divider/divider.d.ts +4 -1
- package/lib/dropdown/dropdown.d.ts +1 -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 +1 -0
- package/lib/microsite-header/microsite-header.d.ts +5 -1
- 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 +1 -0
- 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/textarea/textarea.d.ts +1 -0
- package/lib/tooltip/tooltip.d.ts +1 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -22,7 +22,7 @@ function GoAAccordion({
|
|
|
22
22
|
heading,
|
|
23
23
|
secondaryText,
|
|
24
24
|
maxwidth: maxWidth,
|
|
25
|
-
|
|
25
|
+
testid,
|
|
26
26
|
mt,
|
|
27
27
|
mr,
|
|
28
28
|
mb,
|
|
@@ -49,7 +49,7 @@ function GoAAppHeader({
|
|
|
49
49
|
url,
|
|
50
50
|
fullmenubreakpoint: fullMenuBreakpoint,
|
|
51
51
|
maxcontentwidth: maxContentWidth,
|
|
52
|
-
|
|
52
|
+
testid: testId,
|
|
53
53
|
children
|
|
54
54
|
}
|
|
55
55
|
);
|
|
@@ -60,7 +60,7 @@ function GoAAppHeaderMenu(props) {
|
|
|
60
60
|
{
|
|
61
61
|
heading: props.heading,
|
|
62
62
|
leadingicon: props.leadingIcon,
|
|
63
|
-
|
|
63
|
+
testid: props.testId,
|
|
64
64
|
children: props.children
|
|
65
65
|
}
|
|
66
66
|
);
|
|
@@ -82,7 +82,7 @@ function GoABadge({
|
|
|
82
82
|
type,
|
|
83
83
|
content,
|
|
84
84
|
icon,
|
|
85
|
-
|
|
85
|
+
testid: testId,
|
|
86
86
|
arialabel: ariaLabel,
|
|
87
87
|
mt,
|
|
88
88
|
mr,
|
|
@@ -202,7 +202,7 @@ function GoABlock(props) {
|
|
|
202
202
|
mr: props.mr,
|
|
203
203
|
mb: props.mb,
|
|
204
204
|
ml: props.ml,
|
|
205
|
-
|
|
205
|
+
testid: props.testId,
|
|
206
206
|
children: props.children
|
|
207
207
|
}
|
|
208
208
|
);
|
|
@@ -249,7 +249,7 @@ function GoAButton({
|
|
|
249
249
|
disabled,
|
|
250
250
|
leadingicon: leadingIcon,
|
|
251
251
|
trailingicon: trailingIcon,
|
|
252
|
-
|
|
252
|
+
testid: testId,
|
|
253
253
|
mt,
|
|
254
254
|
mr,
|
|
255
255
|
mb,
|
|
@@ -277,7 +277,7 @@ function GoAButtonGroup({
|
|
|
277
277
|
mr,
|
|
278
278
|
mb,
|
|
279
279
|
ml,
|
|
280
|
-
|
|
280
|
+
testid: testId,
|
|
281
281
|
children
|
|
282
282
|
}
|
|
283
283
|
);
|
|
@@ -312,7 +312,7 @@ function GoACalendar({
|
|
|
312
312
|
value: value == null ? void 0 : value.toISOString(),
|
|
313
313
|
min: min == null ? void 0 : min.toISOString(),
|
|
314
314
|
max: max == null ? void 0 : max.toISOString(),
|
|
315
|
-
|
|
315
|
+
testid: testId,
|
|
316
316
|
mt,
|
|
317
317
|
mr,
|
|
318
318
|
mb,
|
|
@@ -345,7 +345,7 @@ const GoACallout = ({
|
|
|
345
345
|
mr,
|
|
346
346
|
mb,
|
|
347
347
|
ml,
|
|
348
|
-
|
|
348
|
+
testid: testId,
|
|
349
349
|
children
|
|
350
350
|
}
|
|
351
351
|
);
|
|
@@ -387,7 +387,7 @@ function GoACheckbox({
|
|
|
387
387
|
return /* @__PURE__ */ jsxs(
|
|
388
388
|
"goa-checkbox",
|
|
389
389
|
{
|
|
390
|
-
|
|
390
|
+
testid: testId,
|
|
391
391
|
ref: el,
|
|
392
392
|
id,
|
|
393
393
|
name,
|
|
@@ -451,7 +451,7 @@ const GoAChip = ({
|
|
|
451
451
|
mr,
|
|
452
452
|
mb,
|
|
453
453
|
ml,
|
|
454
|
-
|
|
454
|
+
testid: testId
|
|
455
455
|
}
|
|
456
456
|
);
|
|
457
457
|
};
|
|
@@ -471,7 +471,7 @@ const GoACircularProgress = ({
|
|
|
471
471
|
progress,
|
|
472
472
|
variant,
|
|
473
473
|
size,
|
|
474
|
-
|
|
474
|
+
testid: testId
|
|
475
475
|
}
|
|
476
476
|
);
|
|
477
477
|
};
|
|
@@ -504,7 +504,7 @@ function GoAContainer({
|
|
|
504
504
|
mr,
|
|
505
505
|
mb,
|
|
506
506
|
ml,
|
|
507
|
-
|
|
507
|
+
testid: testId,
|
|
508
508
|
children: [
|
|
509
509
|
headingContent && /* @__PURE__ */ jsx("div", { slot: "title", children: headingContent }),
|
|
510
510
|
children,
|
|
@@ -553,7 +553,7 @@ function GoADatePicker({
|
|
|
553
553
|
disabled,
|
|
554
554
|
min: min == null ? void 0 : min.toISOString(),
|
|
555
555
|
max: max == null ? void 0 : max.toISOString(),
|
|
556
|
-
|
|
556
|
+
testid: testId,
|
|
557
557
|
mt,
|
|
558
558
|
mr,
|
|
559
559
|
mb,
|
|
@@ -569,7 +569,7 @@ function GoADetails(props) {
|
|
|
569
569
|
heading: props.heading,
|
|
570
570
|
open: props.open,
|
|
571
571
|
maxwidth: props.maxWidth,
|
|
572
|
-
|
|
572
|
+
testid: props.testId,
|
|
573
573
|
mt: props.mt,
|
|
574
574
|
mr: props.mr,
|
|
575
575
|
mb: props.mb,
|
|
@@ -586,7 +586,7 @@ function GoADivider(props) {
|
|
|
586
586
|
mr: props.mr,
|
|
587
587
|
mb: props.mb,
|
|
588
588
|
ml: props.ml,
|
|
589
|
-
|
|
589
|
+
testid: props.testId
|
|
590
590
|
}
|
|
591
591
|
);
|
|
592
592
|
}
|
|
@@ -635,7 +635,7 @@ function GoADropdown(props) {
|
|
|
635
635
|
multiselect: props.multiselect,
|
|
636
636
|
native: props.native,
|
|
637
637
|
placeholder: props.placeholder,
|
|
638
|
-
|
|
638
|
+
testid: props.testId,
|
|
639
639
|
width: props.width,
|
|
640
640
|
relative: props.relative,
|
|
641
641
|
id: props.id,
|
|
@@ -694,7 +694,7 @@ function GoAFileUploadCard({
|
|
|
694
694
|
type,
|
|
695
695
|
progress,
|
|
696
696
|
error,
|
|
697
|
-
|
|
697
|
+
testid: testId
|
|
698
698
|
}
|
|
699
699
|
);
|
|
700
700
|
}
|
|
@@ -724,7 +724,7 @@ function GoAFileUploadInput({
|
|
|
724
724
|
variant,
|
|
725
725
|
accept,
|
|
726
726
|
maxfilesize: maxFileSize,
|
|
727
|
-
|
|
727
|
+
testid: testId
|
|
728
728
|
}
|
|
729
729
|
);
|
|
730
730
|
}
|
|
@@ -733,13 +733,13 @@ function GoAAppFooter({
|
|
|
733
733
|
children,
|
|
734
734
|
testId
|
|
735
735
|
}) {
|
|
736
|
-
return /* @__PURE__ */ jsx("goa-app-footer", { maxcontentwidth: maxContentWidth,
|
|
736
|
+
return /* @__PURE__ */ jsx("goa-app-footer", { maxcontentwidth: maxContentWidth, testid: testId, children });
|
|
737
737
|
}
|
|
738
738
|
function GoAAppFooterMetaSection({ testId, children }) {
|
|
739
739
|
return /* @__PURE__ */ jsx(
|
|
740
740
|
"goa-app-footer-meta-section",
|
|
741
741
|
{
|
|
742
|
-
|
|
742
|
+
testid: testId,
|
|
743
743
|
slot: "meta",
|
|
744
744
|
children
|
|
745
745
|
}
|
|
@@ -757,7 +757,7 @@ function GoAAppFooterNavSection({
|
|
|
757
757
|
slot: "nav",
|
|
758
758
|
heading,
|
|
759
759
|
maxcolumncount: maxColumnCount,
|
|
760
|
-
|
|
760
|
+
testid: testId,
|
|
761
761
|
children
|
|
762
762
|
}
|
|
763
763
|
);
|
|
@@ -790,7 +790,7 @@ function GoAFormItem({
|
|
|
790
790
|
mr,
|
|
791
791
|
mb,
|
|
792
792
|
ml,
|
|
793
|
-
|
|
793
|
+
testid: testId,
|
|
794
794
|
id,
|
|
795
795
|
children: [
|
|
796
796
|
error && typeof error !== "string" && /* @__PURE__ */ jsx("div", { slot: "error", children: error }),
|
|
@@ -832,7 +832,7 @@ function GoAFormStepper({
|
|
|
832
832
|
"goa-form-stepper",
|
|
833
833
|
{
|
|
834
834
|
ref,
|
|
835
|
-
|
|
835
|
+
testid: testId,
|
|
836
836
|
step,
|
|
837
837
|
mt,
|
|
838
838
|
mr,
|
|
@@ -861,7 +861,7 @@ function GoAGrid({
|
|
|
861
861
|
mr,
|
|
862
862
|
mb,
|
|
863
863
|
ml,
|
|
864
|
-
|
|
864
|
+
testid: testId,
|
|
865
865
|
children
|
|
866
866
|
}
|
|
867
867
|
);
|
|
@@ -885,7 +885,7 @@ function GoAHeroBanner({
|
|
|
885
885
|
maxcontentwidth: maxContentWidth,
|
|
886
886
|
backgroundcolor: backgroundColor,
|
|
887
887
|
textcolor: textColor,
|
|
888
|
-
|
|
888
|
+
testid: testId,
|
|
889
889
|
children
|
|
890
890
|
}
|
|
891
891
|
);
|
|
@@ -941,7 +941,7 @@ function GoAIconButton({
|
|
|
941
941
|
mr,
|
|
942
942
|
mb,
|
|
943
943
|
ml,
|
|
944
|
-
|
|
944
|
+
testid: testId,
|
|
945
945
|
children
|
|
946
946
|
}
|
|
947
947
|
);
|
|
@@ -976,7 +976,7 @@ function GoAIcon({
|
|
|
976
976
|
mr,
|
|
977
977
|
mb,
|
|
978
978
|
ml,
|
|
979
|
-
|
|
979
|
+
testid: testId
|
|
980
980
|
}
|
|
981
981
|
);
|
|
982
982
|
}
|
|
@@ -2675,7 +2675,7 @@ function GoAInput({
|
|
|
2675
2675
|
readonly,
|
|
2676
2676
|
placeholder,
|
|
2677
2677
|
error,
|
|
2678
|
-
|
|
2678
|
+
testid: testId,
|
|
2679
2679
|
value,
|
|
2680
2680
|
width,
|
|
2681
2681
|
min,
|
|
@@ -2858,18 +2858,38 @@ function GoAMicrositeHeader({
|
|
|
2858
2858
|
maxContentWidth,
|
|
2859
2859
|
feedbackUrlTarget,
|
|
2860
2860
|
headerUrlTarget,
|
|
2861
|
-
testId
|
|
2861
|
+
testId,
|
|
2862
|
+
onFeedbackClick
|
|
2862
2863
|
}) {
|
|
2864
|
+
const el = useRef(null);
|
|
2865
|
+
useEffect(() => {
|
|
2866
|
+
if (!el.current) {
|
|
2867
|
+
return;
|
|
2868
|
+
}
|
|
2869
|
+
if (!onFeedbackClick) {
|
|
2870
|
+
return;
|
|
2871
|
+
}
|
|
2872
|
+
const current = el.current;
|
|
2873
|
+
const listener = () => {
|
|
2874
|
+
onFeedbackClick();
|
|
2875
|
+
};
|
|
2876
|
+
current.addEventListener("_feedbackClick", listener);
|
|
2877
|
+
return () => {
|
|
2878
|
+
current.removeEventListener("_feedbackClick", listener);
|
|
2879
|
+
};
|
|
2880
|
+
}, [el, onFeedbackClick]);
|
|
2863
2881
|
return /* @__PURE__ */ jsx(
|
|
2864
2882
|
"goa-microsite-header",
|
|
2865
2883
|
{
|
|
2884
|
+
ref: el,
|
|
2866
2885
|
type,
|
|
2867
2886
|
version: typeof version === "string" ? version : void 0,
|
|
2868
2887
|
feedbackurl: feedbackUrl,
|
|
2869
|
-
|
|
2888
|
+
testid: testId,
|
|
2870
2889
|
maxcontentwidth: maxContentWidth,
|
|
2871
2890
|
feedbackurltarget: feedbackUrlTarget,
|
|
2872
2891
|
headerurltarget: headerUrlTarget,
|
|
2892
|
+
hasfeedbackhandler: !!onFeedbackClick,
|
|
2873
2893
|
children: version && typeof version !== "string" && /* @__PURE__ */ jsx("div", { slot: "version", children: version })
|
|
2874
2894
|
}
|
|
2875
2895
|
);
|
|
@@ -2919,7 +2939,7 @@ function GoAModal({
|
|
|
2919
2939
|
maxwidth: maxWidth,
|
|
2920
2940
|
transition,
|
|
2921
2941
|
calloutvariant: calloutVariant,
|
|
2922
|
-
|
|
2942
|
+
testid: testId,
|
|
2923
2943
|
role,
|
|
2924
2944
|
children: [
|
|
2925
2945
|
heading && /* @__PURE__ */ jsx("div", { slot: "heading", children: heading }),
|
|
@@ -2956,7 +2976,7 @@ const GoANotification = ({
|
|
|
2956
2976
|
{
|
|
2957
2977
|
ref: el,
|
|
2958
2978
|
type,
|
|
2959
|
-
|
|
2979
|
+
testid: testId,
|
|
2960
2980
|
maxcontentwidth: maxContentWidth,
|
|
2961
2981
|
arialive: ariaLive,
|
|
2962
2982
|
children
|
|
@@ -2967,7 +2987,7 @@ function GoAOneColumnLayout(props) {
|
|
|
2967
2987
|
return /* @__PURE__ */ jsx("goa-one-column-layout", { children: props.children });
|
|
2968
2988
|
}
|
|
2969
2989
|
function GoAPageBlock(props) {
|
|
2970
|
-
return /* @__PURE__ */ jsx("goa-page-block", { width: props.width,
|
|
2990
|
+
return /* @__PURE__ */ jsx("goa-page-block", { width: props.width, testid: props.testId, children: props.children });
|
|
2971
2991
|
}
|
|
2972
2992
|
function GoAPages(props) {
|
|
2973
2993
|
return /* @__PURE__ */ jsx(
|
|
@@ -3010,7 +3030,7 @@ function GoAPagination({ onChange, ...props }) {
|
|
|
3010
3030
|
mb: props.mb,
|
|
3011
3031
|
ml: props.ml,
|
|
3012
3032
|
mr: props.mr,
|
|
3013
|
-
|
|
3033
|
+
testid: props.testId
|
|
3014
3034
|
}
|
|
3015
3035
|
);
|
|
3016
3036
|
}
|
|
@@ -3031,7 +3051,7 @@ function GoAPopover({
|
|
|
3031
3051
|
return /* @__PURE__ */ jsxs(
|
|
3032
3052
|
"goa-popover",
|
|
3033
3053
|
{
|
|
3034
|
-
|
|
3054
|
+
testid: testId,
|
|
3035
3055
|
maxwidth: maxWidth,
|
|
3036
3056
|
minwidth: minWidth,
|
|
3037
3057
|
padded,
|
|
@@ -3125,7 +3145,7 @@ function GoARadioGroup({
|
|
|
3125
3145
|
return /* @__PURE__ */ jsx(
|
|
3126
3146
|
"goa-radio-group",
|
|
3127
3147
|
{
|
|
3128
|
-
|
|
3148
|
+
testid: testId,
|
|
3129
3149
|
ref: el,
|
|
3130
3150
|
name,
|
|
3131
3151
|
value,
|
|
@@ -3146,7 +3166,7 @@ function GoASideMenuGroup(props) {
|
|
|
3146
3166
|
"goa-side-menu-group",
|
|
3147
3167
|
{
|
|
3148
3168
|
heading: props.heading,
|
|
3149
|
-
|
|
3169
|
+
testid: props.testId,
|
|
3150
3170
|
children: props.children
|
|
3151
3171
|
}
|
|
3152
3172
|
);
|
|
@@ -3156,7 +3176,7 @@ function GoASideMenuHeading(props) {
|
|
|
3156
3176
|
"goa-side-menu-heading",
|
|
3157
3177
|
{
|
|
3158
3178
|
icon: props.icon,
|
|
3159
|
-
|
|
3179
|
+
testid: props.testId,
|
|
3160
3180
|
children: [
|
|
3161
3181
|
props.children,
|
|
3162
3182
|
props.meta && /* @__PURE__ */ jsx("span", { slot: "meta", children: props.meta })
|
|
@@ -3165,7 +3185,7 @@ function GoASideMenuHeading(props) {
|
|
|
3165
3185
|
);
|
|
3166
3186
|
}
|
|
3167
3187
|
function GoASideMenu(props) {
|
|
3168
|
-
return /* @__PURE__ */ jsx("goa-side-menu", {
|
|
3188
|
+
return /* @__PURE__ */ jsx("goa-side-menu", { testid: props.testId, children: props.children });
|
|
3169
3189
|
}
|
|
3170
3190
|
const GoASkeleton = ({
|
|
3171
3191
|
maxWidth,
|
|
@@ -3189,7 +3209,7 @@ const GoASkeleton = ({
|
|
|
3189
3209
|
mr,
|
|
3190
3210
|
mb,
|
|
3191
3211
|
ml,
|
|
3192
|
-
|
|
3212
|
+
testid: testId
|
|
3193
3213
|
}
|
|
3194
3214
|
);
|
|
3195
3215
|
};
|
|
@@ -3199,7 +3219,7 @@ function GoASpacer(props) {
|
|
|
3199
3219
|
{
|
|
3200
3220
|
hspacing: props.hSpacing,
|
|
3201
3221
|
vspacing: props.vSpacing,
|
|
3202
|
-
|
|
3222
|
+
testid: props.testId
|
|
3203
3223
|
}
|
|
3204
3224
|
);
|
|
3205
3225
|
}
|
|
@@ -3217,7 +3237,7 @@ function GoASpinner({
|
|
|
3217
3237
|
size,
|
|
3218
3238
|
progress,
|
|
3219
3239
|
invert,
|
|
3220
|
-
|
|
3240
|
+
testid: testId
|
|
3221
3241
|
}
|
|
3222
3242
|
);
|
|
3223
3243
|
}
|
|
@@ -3244,7 +3264,7 @@ function GoATable({ onSort, ...props }) {
|
|
|
3244
3264
|
width: props.width,
|
|
3245
3265
|
stickyheader: false,
|
|
3246
3266
|
variant: props.variant,
|
|
3247
|
-
|
|
3267
|
+
testid: props.testId,
|
|
3248
3268
|
mt: props.mt,
|
|
3249
3269
|
mb: props.mb,
|
|
3250
3270
|
ml: props.ml,
|
|
@@ -3280,7 +3300,7 @@ function GoATabs({
|
|
|
3280
3300
|
};
|
|
3281
3301
|
}
|
|
3282
3302
|
}, [onChange]);
|
|
3283
|
-
return /* @__PURE__ */ jsx("goa-tabs", { ref, initialtab: initialTab,
|
|
3303
|
+
return /* @__PURE__ */ jsx("goa-tabs", { ref, initialtab: initialTab, testid: testId, children });
|
|
3284
3304
|
}
|
|
3285
3305
|
function GoATab({ heading, children }) {
|
|
3286
3306
|
return /* @__PURE__ */ jsxs("goa-tab", { children: [
|
|
@@ -3351,7 +3371,7 @@ function GoATextarea({
|
|
|
3351
3371
|
width,
|
|
3352
3372
|
maxwidth: maxWidth,
|
|
3353
3373
|
error,
|
|
3354
|
-
|
|
3374
|
+
testid: testId,
|
|
3355
3375
|
arialabel: ariaLabel,
|
|
3356
3376
|
mt,
|
|
3357
3377
|
mr,
|
|
@@ -3385,7 +3405,7 @@ function GoATooltip(props) {
|
|
|
3385
3405
|
position: props.position,
|
|
3386
3406
|
content: props.content,
|
|
3387
3407
|
halign: props.hAlign,
|
|
3388
|
-
|
|
3408
|
+
testid: props.testId,
|
|
3389
3409
|
mt: props.mt,
|
|
3390
3410
|
mr: props.mr,
|
|
3391
3411
|
mb: props.mb,
|