@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.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,7 +389,7 @@ 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,
|
|
@@ -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,
|
|
@@ -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
|
}
|
|
@@ -637,7 +637,7 @@ function GoADropdown(props) {
|
|
|
637
637
|
multiselect: props.multiselect,
|
|
638
638
|
native: props.native,
|
|
639
639
|
placeholder: props.placeholder,
|
|
640
|
-
|
|
640
|
+
testid: props.testId,
|
|
641
641
|
width: props.width,
|
|
642
642
|
relative: props.relative,
|
|
643
643
|
id: props.id,
|
|
@@ -696,7 +696,7 @@ function GoAFileUploadCard({
|
|
|
696
696
|
type,
|
|
697
697
|
progress,
|
|
698
698
|
error,
|
|
699
|
-
|
|
699
|
+
testid: testId
|
|
700
700
|
}
|
|
701
701
|
);
|
|
702
702
|
}
|
|
@@ -726,7 +726,7 @@ function GoAFileUploadInput({
|
|
|
726
726
|
variant,
|
|
727
727
|
accept,
|
|
728
728
|
maxfilesize: maxFileSize,
|
|
729
|
-
|
|
729
|
+
testid: testId
|
|
730
730
|
}
|
|
731
731
|
);
|
|
732
732
|
}
|
|
@@ -735,13 +735,13 @@ function GoAAppFooter({
|
|
|
735
735
|
children,
|
|
736
736
|
testId
|
|
737
737
|
}) {
|
|
738
|
-
return /* @__PURE__ */ jsxRuntime.jsx("goa-app-footer", { maxcontentwidth: maxContentWidth,
|
|
738
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-app-footer", { maxcontentwidth: maxContentWidth, testid: testId, children });
|
|
739
739
|
}
|
|
740
740
|
function GoAAppFooterMetaSection({ testId, children }) {
|
|
741
741
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
742
742
|
"goa-app-footer-meta-section",
|
|
743
743
|
{
|
|
744
|
-
|
|
744
|
+
testid: testId,
|
|
745
745
|
slot: "meta",
|
|
746
746
|
children
|
|
747
747
|
}
|
|
@@ -759,7 +759,7 @@ function GoAAppFooterNavSection({
|
|
|
759
759
|
slot: "nav",
|
|
760
760
|
heading,
|
|
761
761
|
maxcolumncount: maxColumnCount,
|
|
762
|
-
|
|
762
|
+
testid: testId,
|
|
763
763
|
children
|
|
764
764
|
}
|
|
765
765
|
);
|
|
@@ -792,7 +792,7 @@ function GoAFormItem({
|
|
|
792
792
|
mr,
|
|
793
793
|
mb,
|
|
794
794
|
ml,
|
|
795
|
-
|
|
795
|
+
testid: testId,
|
|
796
796
|
id,
|
|
797
797
|
children: [
|
|
798
798
|
error && typeof error !== "string" && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "error", children: error }),
|
|
@@ -834,7 +834,7 @@ function GoAFormStepper({
|
|
|
834
834
|
"goa-form-stepper",
|
|
835
835
|
{
|
|
836
836
|
ref,
|
|
837
|
-
|
|
837
|
+
testid: testId,
|
|
838
838
|
step,
|
|
839
839
|
mt,
|
|
840
840
|
mr,
|
|
@@ -863,7 +863,7 @@ function GoAGrid({
|
|
|
863
863
|
mr,
|
|
864
864
|
mb,
|
|
865
865
|
ml,
|
|
866
|
-
|
|
866
|
+
testid: testId,
|
|
867
867
|
children
|
|
868
868
|
}
|
|
869
869
|
);
|
|
@@ -887,7 +887,7 @@ function GoAHeroBanner({
|
|
|
887
887
|
maxcontentwidth: maxContentWidth,
|
|
888
888
|
backgroundcolor: backgroundColor,
|
|
889
889
|
textcolor: textColor,
|
|
890
|
-
|
|
890
|
+
testid: testId,
|
|
891
891
|
children
|
|
892
892
|
}
|
|
893
893
|
);
|
|
@@ -943,7 +943,7 @@ function GoAIconButton({
|
|
|
943
943
|
mr,
|
|
944
944
|
mb,
|
|
945
945
|
ml,
|
|
946
|
-
|
|
946
|
+
testid: testId,
|
|
947
947
|
children
|
|
948
948
|
}
|
|
949
949
|
);
|
|
@@ -978,7 +978,7 @@ function GoAIcon({
|
|
|
978
978
|
mr,
|
|
979
979
|
mb,
|
|
980
980
|
ml,
|
|
981
|
-
|
|
981
|
+
testid: testId
|
|
982
982
|
}
|
|
983
983
|
);
|
|
984
984
|
}
|
|
@@ -2677,7 +2677,7 @@ function GoAInput({
|
|
|
2677
2677
|
readonly,
|
|
2678
2678
|
placeholder,
|
|
2679
2679
|
error,
|
|
2680
|
-
|
|
2680
|
+
testid: testId,
|
|
2681
2681
|
value,
|
|
2682
2682
|
width,
|
|
2683
2683
|
min,
|
|
@@ -2887,7 +2887,7 @@ function GoAMicrositeHeader({
|
|
|
2887
2887
|
type,
|
|
2888
2888
|
version: typeof version === "string" ? version : void 0,
|
|
2889
2889
|
feedbackurl: feedbackUrl,
|
|
2890
|
-
|
|
2890
|
+
testid: testId,
|
|
2891
2891
|
maxcontentwidth: maxContentWidth,
|
|
2892
2892
|
feedbackurltarget: feedbackUrlTarget,
|
|
2893
2893
|
headerurltarget: headerUrlTarget,
|
|
@@ -2941,7 +2941,7 @@ function GoAModal({
|
|
|
2941
2941
|
maxwidth: maxWidth,
|
|
2942
2942
|
transition,
|
|
2943
2943
|
calloutvariant: calloutVariant,
|
|
2944
|
-
|
|
2944
|
+
testid: testId,
|
|
2945
2945
|
role,
|
|
2946
2946
|
children: [
|
|
2947
2947
|
heading && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "heading", children: heading }),
|
|
@@ -2978,7 +2978,7 @@ const GoANotification = ({
|
|
|
2978
2978
|
{
|
|
2979
2979
|
ref: el,
|
|
2980
2980
|
type,
|
|
2981
|
-
|
|
2981
|
+
testid: testId,
|
|
2982
2982
|
maxcontentwidth: maxContentWidth,
|
|
2983
2983
|
arialive: ariaLive,
|
|
2984
2984
|
children
|
|
@@ -2989,7 +2989,7 @@ function GoAOneColumnLayout(props) {
|
|
|
2989
2989
|
return /* @__PURE__ */ jsxRuntime.jsx("goa-one-column-layout", { children: props.children });
|
|
2990
2990
|
}
|
|
2991
2991
|
function GoAPageBlock(props) {
|
|
2992
|
-
return /* @__PURE__ */ jsxRuntime.jsx("goa-page-block", { width: props.width,
|
|
2992
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-page-block", { width: props.width, testid: props.testId, children: props.children });
|
|
2993
2993
|
}
|
|
2994
2994
|
function GoAPages(props) {
|
|
2995
2995
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3032,7 +3032,7 @@ function GoAPagination({ onChange, ...props }) {
|
|
|
3032
3032
|
mb: props.mb,
|
|
3033
3033
|
ml: props.ml,
|
|
3034
3034
|
mr: props.mr,
|
|
3035
|
-
|
|
3035
|
+
testid: props.testId
|
|
3036
3036
|
}
|
|
3037
3037
|
);
|
|
3038
3038
|
}
|
|
@@ -3053,7 +3053,7 @@ function GoAPopover({
|
|
|
3053
3053
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3054
3054
|
"goa-popover",
|
|
3055
3055
|
{
|
|
3056
|
-
|
|
3056
|
+
testid: testId,
|
|
3057
3057
|
maxwidth: maxWidth,
|
|
3058
3058
|
minwidth: minWidth,
|
|
3059
3059
|
padded,
|
|
@@ -3147,7 +3147,7 @@ function GoARadioGroup({
|
|
|
3147
3147
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3148
3148
|
"goa-radio-group",
|
|
3149
3149
|
{
|
|
3150
|
-
|
|
3150
|
+
testid: testId,
|
|
3151
3151
|
ref: el,
|
|
3152
3152
|
name,
|
|
3153
3153
|
value,
|
|
@@ -3168,7 +3168,7 @@ function GoASideMenuGroup(props) {
|
|
|
3168
3168
|
"goa-side-menu-group",
|
|
3169
3169
|
{
|
|
3170
3170
|
heading: props.heading,
|
|
3171
|
-
|
|
3171
|
+
testid: props.testId,
|
|
3172
3172
|
children: props.children
|
|
3173
3173
|
}
|
|
3174
3174
|
);
|
|
@@ -3178,7 +3178,7 @@ function GoASideMenuHeading(props) {
|
|
|
3178
3178
|
"goa-side-menu-heading",
|
|
3179
3179
|
{
|
|
3180
3180
|
icon: props.icon,
|
|
3181
|
-
|
|
3181
|
+
testid: props.testId,
|
|
3182
3182
|
children: [
|
|
3183
3183
|
props.children,
|
|
3184
3184
|
props.meta && /* @__PURE__ */ jsxRuntime.jsx("span", { slot: "meta", children: props.meta })
|
|
@@ -3187,7 +3187,7 @@ function GoASideMenuHeading(props) {
|
|
|
3187
3187
|
);
|
|
3188
3188
|
}
|
|
3189
3189
|
function GoASideMenu(props) {
|
|
3190
|
-
return /* @__PURE__ */ jsxRuntime.jsx("goa-side-menu", {
|
|
3190
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-side-menu", { testid: props.testId, children: props.children });
|
|
3191
3191
|
}
|
|
3192
3192
|
const GoASkeleton = ({
|
|
3193
3193
|
maxWidth,
|
|
@@ -3211,7 +3211,7 @@ const GoASkeleton = ({
|
|
|
3211
3211
|
mr,
|
|
3212
3212
|
mb,
|
|
3213
3213
|
ml,
|
|
3214
|
-
|
|
3214
|
+
testid: testId
|
|
3215
3215
|
}
|
|
3216
3216
|
);
|
|
3217
3217
|
};
|
|
@@ -3221,7 +3221,7 @@ function GoASpacer(props) {
|
|
|
3221
3221
|
{
|
|
3222
3222
|
hspacing: props.hSpacing,
|
|
3223
3223
|
vspacing: props.vSpacing,
|
|
3224
|
-
|
|
3224
|
+
testid: props.testId
|
|
3225
3225
|
}
|
|
3226
3226
|
);
|
|
3227
3227
|
}
|
|
@@ -3239,7 +3239,7 @@ function GoASpinner({
|
|
|
3239
3239
|
size,
|
|
3240
3240
|
progress,
|
|
3241
3241
|
invert,
|
|
3242
|
-
|
|
3242
|
+
testid: testId
|
|
3243
3243
|
}
|
|
3244
3244
|
);
|
|
3245
3245
|
}
|
|
@@ -3266,7 +3266,7 @@ function GoATable({ onSort, ...props }) {
|
|
|
3266
3266
|
width: props.width,
|
|
3267
3267
|
stickyheader: false,
|
|
3268
3268
|
variant: props.variant,
|
|
3269
|
-
|
|
3269
|
+
testid: props.testId,
|
|
3270
3270
|
mt: props.mt,
|
|
3271
3271
|
mb: props.mb,
|
|
3272
3272
|
ml: props.ml,
|
|
@@ -3302,7 +3302,7 @@ function GoATabs({
|
|
|
3302
3302
|
};
|
|
3303
3303
|
}
|
|
3304
3304
|
}, [onChange]);
|
|
3305
|
-
return /* @__PURE__ */ jsxRuntime.jsx("goa-tabs", { ref, initialtab: initialTab,
|
|
3305
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-tabs", { ref, initialtab: initialTab, testid: testId, children });
|
|
3306
3306
|
}
|
|
3307
3307
|
function GoATab({ heading, children }) {
|
|
3308
3308
|
return /* @__PURE__ */ jsxRuntime.jsxs("goa-tab", { children: [
|
|
@@ -3373,7 +3373,7 @@ function GoATextarea({
|
|
|
3373
3373
|
width,
|
|
3374
3374
|
maxwidth: maxWidth,
|
|
3375
3375
|
error,
|
|
3376
|
-
|
|
3376
|
+
testid: testId,
|
|
3377
3377
|
arialabel: ariaLabel,
|
|
3378
3378
|
mt,
|
|
3379
3379
|
mr,
|
|
@@ -3407,7 +3407,7 @@ function GoATooltip(props) {
|
|
|
3407
3407
|
position: props.position,
|
|
3408
3408
|
content: props.content,
|
|
3409
3409
|
halign: props.hAlign,
|
|
3410
|
-
|
|
3410
|
+
testid: props.testId,
|
|
3411
3411
|
mt: props.mt,
|
|
3412
3412
|
mr: props.mr,
|
|
3413
3413
|
mb: props.mb,
|