@abgov/react-components 5.0.0-alpha.6 → 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 +46 -46
- package/index.js.map +1 -1
- package/index.mjs +46 -46
- 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 +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 +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,
|
|
@@ -2885,7 +2885,7 @@ function GoAMicrositeHeader({
|
|
|
2885
2885
|
type,
|
|
2886
2886
|
version: typeof version === "string" ? version : void 0,
|
|
2887
2887
|
feedbackurl: feedbackUrl,
|
|
2888
|
-
|
|
2888
|
+
testid: testId,
|
|
2889
2889
|
maxcontentwidth: maxContentWidth,
|
|
2890
2890
|
feedbackurltarget: feedbackUrlTarget,
|
|
2891
2891
|
headerurltarget: headerUrlTarget,
|
|
@@ -2939,7 +2939,7 @@ function GoAModal({
|
|
|
2939
2939
|
maxwidth: maxWidth,
|
|
2940
2940
|
transition,
|
|
2941
2941
|
calloutvariant: calloutVariant,
|
|
2942
|
-
|
|
2942
|
+
testid: testId,
|
|
2943
2943
|
role,
|
|
2944
2944
|
children: [
|
|
2945
2945
|
heading && /* @__PURE__ */ jsx("div", { slot: "heading", children: heading }),
|
|
@@ -2976,7 +2976,7 @@ const GoANotification = ({
|
|
|
2976
2976
|
{
|
|
2977
2977
|
ref: el,
|
|
2978
2978
|
type,
|
|
2979
|
-
|
|
2979
|
+
testid: testId,
|
|
2980
2980
|
maxcontentwidth: maxContentWidth,
|
|
2981
2981
|
arialive: ariaLive,
|
|
2982
2982
|
children
|
|
@@ -2987,7 +2987,7 @@ function GoAOneColumnLayout(props) {
|
|
|
2987
2987
|
return /* @__PURE__ */ jsx("goa-one-column-layout", { children: props.children });
|
|
2988
2988
|
}
|
|
2989
2989
|
function GoAPageBlock(props) {
|
|
2990
|
-
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 });
|
|
2991
2991
|
}
|
|
2992
2992
|
function GoAPages(props) {
|
|
2993
2993
|
return /* @__PURE__ */ jsx(
|
|
@@ -3030,7 +3030,7 @@ function GoAPagination({ onChange, ...props }) {
|
|
|
3030
3030
|
mb: props.mb,
|
|
3031
3031
|
ml: props.ml,
|
|
3032
3032
|
mr: props.mr,
|
|
3033
|
-
|
|
3033
|
+
testid: props.testId
|
|
3034
3034
|
}
|
|
3035
3035
|
);
|
|
3036
3036
|
}
|
|
@@ -3051,7 +3051,7 @@ function GoAPopover({
|
|
|
3051
3051
|
return /* @__PURE__ */ jsxs(
|
|
3052
3052
|
"goa-popover",
|
|
3053
3053
|
{
|
|
3054
|
-
|
|
3054
|
+
testid: testId,
|
|
3055
3055
|
maxwidth: maxWidth,
|
|
3056
3056
|
minwidth: minWidth,
|
|
3057
3057
|
padded,
|
|
@@ -3145,7 +3145,7 @@ function GoARadioGroup({
|
|
|
3145
3145
|
return /* @__PURE__ */ jsx(
|
|
3146
3146
|
"goa-radio-group",
|
|
3147
3147
|
{
|
|
3148
|
-
|
|
3148
|
+
testid: testId,
|
|
3149
3149
|
ref: el,
|
|
3150
3150
|
name,
|
|
3151
3151
|
value,
|
|
@@ -3166,7 +3166,7 @@ function GoASideMenuGroup(props) {
|
|
|
3166
3166
|
"goa-side-menu-group",
|
|
3167
3167
|
{
|
|
3168
3168
|
heading: props.heading,
|
|
3169
|
-
|
|
3169
|
+
testid: props.testId,
|
|
3170
3170
|
children: props.children
|
|
3171
3171
|
}
|
|
3172
3172
|
);
|
|
@@ -3176,7 +3176,7 @@ function GoASideMenuHeading(props) {
|
|
|
3176
3176
|
"goa-side-menu-heading",
|
|
3177
3177
|
{
|
|
3178
3178
|
icon: props.icon,
|
|
3179
|
-
|
|
3179
|
+
testid: props.testId,
|
|
3180
3180
|
children: [
|
|
3181
3181
|
props.children,
|
|
3182
3182
|
props.meta && /* @__PURE__ */ jsx("span", { slot: "meta", children: props.meta })
|
|
@@ -3185,7 +3185,7 @@ function GoASideMenuHeading(props) {
|
|
|
3185
3185
|
);
|
|
3186
3186
|
}
|
|
3187
3187
|
function GoASideMenu(props) {
|
|
3188
|
-
return /* @__PURE__ */ jsx("goa-side-menu", {
|
|
3188
|
+
return /* @__PURE__ */ jsx("goa-side-menu", { testid: props.testId, children: props.children });
|
|
3189
3189
|
}
|
|
3190
3190
|
const GoASkeleton = ({
|
|
3191
3191
|
maxWidth,
|
|
@@ -3209,7 +3209,7 @@ const GoASkeleton = ({
|
|
|
3209
3209
|
mr,
|
|
3210
3210
|
mb,
|
|
3211
3211
|
ml,
|
|
3212
|
-
|
|
3212
|
+
testid: testId
|
|
3213
3213
|
}
|
|
3214
3214
|
);
|
|
3215
3215
|
};
|
|
@@ -3219,7 +3219,7 @@ function GoASpacer(props) {
|
|
|
3219
3219
|
{
|
|
3220
3220
|
hspacing: props.hSpacing,
|
|
3221
3221
|
vspacing: props.vSpacing,
|
|
3222
|
-
|
|
3222
|
+
testid: props.testId
|
|
3223
3223
|
}
|
|
3224
3224
|
);
|
|
3225
3225
|
}
|
|
@@ -3237,7 +3237,7 @@ function GoASpinner({
|
|
|
3237
3237
|
size,
|
|
3238
3238
|
progress,
|
|
3239
3239
|
invert,
|
|
3240
|
-
|
|
3240
|
+
testid: testId
|
|
3241
3241
|
}
|
|
3242
3242
|
);
|
|
3243
3243
|
}
|
|
@@ -3264,7 +3264,7 @@ function GoATable({ onSort, ...props }) {
|
|
|
3264
3264
|
width: props.width,
|
|
3265
3265
|
stickyheader: false,
|
|
3266
3266
|
variant: props.variant,
|
|
3267
|
-
|
|
3267
|
+
testid: props.testId,
|
|
3268
3268
|
mt: props.mt,
|
|
3269
3269
|
mb: props.mb,
|
|
3270
3270
|
ml: props.ml,
|
|
@@ -3300,7 +3300,7 @@ function GoATabs({
|
|
|
3300
3300
|
};
|
|
3301
3301
|
}
|
|
3302
3302
|
}, [onChange]);
|
|
3303
|
-
return /* @__PURE__ */ jsx("goa-tabs", { ref, initialtab: initialTab,
|
|
3303
|
+
return /* @__PURE__ */ jsx("goa-tabs", { ref, initialtab: initialTab, testid: testId, children });
|
|
3304
3304
|
}
|
|
3305
3305
|
function GoATab({ heading, children }) {
|
|
3306
3306
|
return /* @__PURE__ */ jsxs("goa-tab", { children: [
|
|
@@ -3371,7 +3371,7 @@ function GoATextarea({
|
|
|
3371
3371
|
width,
|
|
3372
3372
|
maxwidth: maxWidth,
|
|
3373
3373
|
error,
|
|
3374
|
-
|
|
3374
|
+
testid: testId,
|
|
3375
3375
|
arialabel: ariaLabel,
|
|
3376
3376
|
mt,
|
|
3377
3377
|
mr,
|
|
@@ -3405,7 +3405,7 @@ function GoATooltip(props) {
|
|
|
3405
3405
|
position: props.position,
|
|
3406
3406
|
content: props.content,
|
|
3407
3407
|
halign: props.hAlign,
|
|
3408
|
-
|
|
3408
|
+
testid: props.testId,
|
|
3409
3409
|
mt: props.mt,
|
|
3410
3410
|
mr: props.mr,
|
|
3411
3411
|
mb: props.mb,
|