@abgov/react-components 7.0.0 → 7.2.0-dev.1
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 +63 -109
- package/index.js.map +1 -1
- package/index.mjs +63 -109
- package/index.mjs.map +1 -1
- package/lib/accordion/accordion.d.ts +13 -2
- package/lib/app-header/app-header.d.ts +9 -0
- package/lib/app-header-menu/app-header-menu.d.ts +6 -0
- package/lib/badge/badge.d.ts +9 -0
- package/lib/block/block.d.ts +9 -0
- package/lib/button/button.d.ts +14 -0
- package/lib/button-group/button-group.d.ts +5 -0
- package/lib/calendar/calendar.d.ts +8 -1
- package/lib/callout/callout.d.ts +10 -0
- package/lib/card/card-actions.d.ts +2 -0
- package/lib/card/card-content.d.ts +2 -0
- package/lib/card/card-group.d.ts +2 -0
- package/lib/card/card-image.d.ts +3 -0
- package/lib/card/card.d.ts +5 -0
- package/lib/checkbox/checkbox.d.ts +19 -1
- package/lib/checkbox-list/checkbox-list.d.ts +10 -0
- package/lib/chip/chip.d.ts +11 -2
- package/lib/circular-progress/circular-progress.d.ts +7 -0
- package/lib/container/container.d.ts +18 -5
- package/lib/data-grid/data-grid.d.ts +6 -1
- package/lib/date-picker/date-picker.d.ts +13 -4
- package/lib/details/details.d.ts +7 -1
- package/lib/divider/divider.d.ts +2 -0
- package/lib/drawer/drawer.d.ts +11 -2
- package/lib/dropdown/dropdown-item.d.ts +8 -0
- package/lib/dropdown/dropdown.d.ts +22 -3
- package/lib/file-upload-card/file-upload-card.d.ts +9 -0
- package/lib/file-upload-input/file-upload-input.d.ts +7 -1
- package/lib/filter-chip/filter-chip.d.ts +10 -2
- package/lib/footer/footer.d.ts +7 -2
- package/lib/footer-meta-section/footer-meta-section.d.ts +3 -0
- package/lib/footer-nav-section/footer-nav-section.d.ts +6 -1
- package/lib/form/fieldset.d.ts +7 -1
- package/lib/form/public-form-page.d.ts +13 -5
- package/lib/form/public-form-summary.d.ts +2 -0
- package/lib/form/public-form.d.ts +8 -1
- package/lib/form/public-subform-index.d.ts +7 -1
- package/lib/form/public-subform.d.ts +8 -1
- package/lib/form/task-list.d.ts +4 -1
- package/lib/form/task.d.ts +4 -1
- package/lib/form-item/form-item.d.ts +13 -6
- package/lib/form-step/form-step.d.ts +3 -0
- package/lib/form-stepper/form-stepper.d.ts +5 -0
- package/lib/grid/grid.d.ts +6 -1
- package/lib/hero-banner/hero-banner-actions.d.ts +2 -0
- package/lib/hero-banner/hero-banner.d.ts +12 -1
- package/lib/icon/icon.d.ts +13 -0
- package/lib/icon-button/icon-button.d.ts +18 -2
- package/lib/input/input.d.ts +48 -3
- package/lib/linear-progress/linear-progress.d.ts +6 -0
- package/lib/link/link.d.ts +11 -1
- package/lib/link-button/link-button.d.ts +3 -0
- package/lib/menu-button/menu-action.d.ts +5 -0
- package/lib/menu-button/menu-button.d.ts +11 -0
- package/lib/microsite-header/microsite-header.d.ts +9 -0
- package/lib/modal/modal.d.ts +10 -0
- package/lib/notification/notification.d.ts +9 -0
- package/lib/one-column-layout/one-column-layout.d.ts +2 -0
- package/lib/page-block/page-block.d.ts +4 -0
- package/lib/pages/pages.d.ts +3 -0
- package/lib/pagination/pagination.d.ts +9 -2
- package/lib/popover/popover.d.ts +11 -5
- package/lib/push-drawer/push-drawer.d.ts +10 -2
- package/lib/radio-group/radio-group.d.ts +12 -0
- package/lib/radio-group/radio.d.ts +14 -0
- package/lib/side-menu/side-menu.d.ts +4 -1
- package/lib/side-menu-group/side-menu-group.d.ts +5 -0
- package/lib/side-menu-heading/side-menu-heading.d.ts +7 -2
- package/lib/skeleton/skeleton.d.ts +7 -1
- package/lib/spacer/spacer.d.ts +4 -0
- package/lib/spinner/spinner.d.ts +6 -0
- package/lib/tab/tab.d.ts +8 -3
- package/lib/table/table-sort-header.d.ts +5 -0
- package/lib/table/table.d.ts +9 -1
- package/lib/tabs/tabs.d.ts +8 -1
- package/lib/temporary-notification-ctrl/temporary-notification-ctrl.d.ts +4 -0
- package/lib/text/text.d.ts +8 -1
- package/lib/textarea/textarea.d.ts +20 -0
- package/lib/three-column-layout/three-column-layout.d.ts +11 -1
- package/lib/tooltip/tooltip.d.ts +7 -0
- package/lib/two-column-layout/two-column-layout.d.ts +9 -2
- package/lib/work-side-menu/work-side-menu.d.ts +12 -0
- package/lib/work-side-menu-group/work-side-menu-group.d.ts +6 -0
- package/lib/work-side-menu-item/work-side-menu-item.d.ts +11 -0
- package/lib/work-side-notification-item/work-side-notification-item.d.ts +10 -1
- package/lib/work-side-notification-panel/work-side-notification-panel.d.ts +7 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -48,18 +48,10 @@ function GoabAccordion({
|
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
}, [onChange]);
|
|
51
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
open: open ? "true" : void 0,
|
|
56
|
-
..._props,
|
|
57
|
-
children: [
|
|
58
|
-
headingContent && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "headingcontent", children: headingContent }),
|
|
59
|
-
children
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
);
|
|
51
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("goa-accordion", { ref, open: open ? "true" : void 0, ..._props, children: [
|
|
52
|
+
headingContent && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "headingcontent", children: headingContent }),
|
|
53
|
+
children
|
|
54
|
+
] });
|
|
63
55
|
}
|
|
64
56
|
function GoabAppHeader({
|
|
65
57
|
onMenuClick,
|
|
@@ -131,15 +123,8 @@ function GoabBadge({
|
|
|
131
123
|
}
|
|
132
124
|
);
|
|
133
125
|
}
|
|
134
|
-
function GoabBlock({
|
|
135
|
-
testId,
|
|
136
|
-
children,
|
|
137
|
-
...rest
|
|
138
|
-
}) {
|
|
139
|
-
const _props = transformProps(
|
|
140
|
-
{ testid: testId, ...rest },
|
|
141
|
-
kebab
|
|
142
|
-
);
|
|
126
|
+
function GoabBlock({ testId, children, ...rest }) {
|
|
127
|
+
const _props = transformProps({ testid: testId, ...rest }, kebab);
|
|
143
128
|
return /* @__PURE__ */ jsxRuntime.jsx("goa-block", { ..._props, children });
|
|
144
129
|
}
|
|
145
130
|
function GoabButton({
|
|
@@ -339,12 +324,7 @@ function GoabCheckboxList({
|
|
|
339
324
|
}
|
|
340
325
|
);
|
|
341
326
|
}
|
|
342
|
-
const GoabChip = ({
|
|
343
|
-
error,
|
|
344
|
-
deletable,
|
|
345
|
-
onClick,
|
|
346
|
-
...rest
|
|
347
|
-
}) => {
|
|
327
|
+
const GoabChip = ({ error, deletable, onClick, ...rest }) => {
|
|
348
328
|
const el = react.useRef(null);
|
|
349
329
|
const _props = transformProps(rest, lowercase);
|
|
350
330
|
react.useEffect(() => {
|
|
@@ -2670,20 +2650,9 @@ function GoabDatePicker({
|
|
|
2670
2650
|
}
|
|
2671
2651
|
);
|
|
2672
2652
|
}
|
|
2673
|
-
function GoabDetails({
|
|
2674
|
-
open,
|
|
2675
|
-
children,
|
|
2676
|
-
...rest
|
|
2677
|
-
}) {
|
|
2653
|
+
function GoabDetails({ open, children, ...rest }) {
|
|
2678
2654
|
const _props = transformProps(rest, lowercase);
|
|
2679
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2680
|
-
"goa-details",
|
|
2681
|
-
{
|
|
2682
|
-
open: open ? "true" : void 0,
|
|
2683
|
-
..._props,
|
|
2684
|
-
children
|
|
2685
|
-
}
|
|
2686
|
-
);
|
|
2655
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-details", { open: open ? "true" : void 0, ..._props, children });
|
|
2687
2656
|
}
|
|
2688
2657
|
function GoabDivider(props) {
|
|
2689
2658
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2930,10 +2899,7 @@ function GoabPublicFormSummary({
|
|
|
2930
2899
|
heading = "",
|
|
2931
2900
|
...rest
|
|
2932
2901
|
}) {
|
|
2933
|
-
const _props = transformProps(
|
|
2934
|
-
{ heading, ...rest },
|
|
2935
|
-
lowercase
|
|
2936
|
-
);
|
|
2902
|
+
const _props = transformProps({ heading, ...rest }, lowercase);
|
|
2937
2903
|
return /* @__PURE__ */ jsxRuntime.jsx("goa-public-form-summary", { ..._props });
|
|
2938
2904
|
}
|
|
2939
2905
|
function GoabPublicForm({
|
|
@@ -3032,7 +2998,13 @@ function GoabPublicSubformIndex({
|
|
|
3032
2998
|
...rest
|
|
3033
2999
|
}) {
|
|
3034
3000
|
const _props = transformProps(
|
|
3035
|
-
{
|
|
3001
|
+
{
|
|
3002
|
+
heading,
|
|
3003
|
+
"section-title": sectionTitle,
|
|
3004
|
+
"action-button-text": actionButtonText,
|
|
3005
|
+
"button-visibility": buttonVisibility,
|
|
3006
|
+
...rest
|
|
3007
|
+
},
|
|
3036
3008
|
kebab
|
|
3037
3009
|
);
|
|
3038
3010
|
return /* @__PURE__ */ jsxRuntime.jsx("goa-public-subform-index", { slot: "subform-index", ..._props, children });
|
|
@@ -3042,10 +3014,7 @@ function GoabPublicFormTask({
|
|
|
3042
3014
|
children,
|
|
3043
3015
|
...rest
|
|
3044
3016
|
}) {
|
|
3045
|
-
const _props = transformProps(
|
|
3046
|
-
{ status, ...rest },
|
|
3047
|
-
lowercase
|
|
3048
|
-
);
|
|
3017
|
+
const _props = transformProps({ status, ...rest }, lowercase);
|
|
3049
3018
|
return /* @__PURE__ */ jsxRuntime.jsx("goa-public-form-task", { ..._props, children });
|
|
3050
3019
|
}
|
|
3051
3020
|
function GoabPublicFormTaskList({
|
|
@@ -3154,9 +3123,10 @@ function GoabHeroBanner({
|
|
|
3154
3123
|
backgroundColor,
|
|
3155
3124
|
textColor,
|
|
3156
3125
|
children,
|
|
3126
|
+
actions,
|
|
3157
3127
|
testId
|
|
3158
3128
|
}) {
|
|
3159
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
3129
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3160
3130
|
"goa-hero-banner",
|
|
3161
3131
|
{
|
|
3162
3132
|
heading,
|
|
@@ -3166,7 +3136,10 @@ function GoabHeroBanner({
|
|
|
3166
3136
|
backgroundcolor: backgroundColor,
|
|
3167
3137
|
textcolor: textColor,
|
|
3168
3138
|
testid: testId,
|
|
3169
|
-
children
|
|
3139
|
+
children: [
|
|
3140
|
+
children,
|
|
3141
|
+
actions && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "actions", children: actions })
|
|
3142
|
+
]
|
|
3170
3143
|
}
|
|
3171
3144
|
);
|
|
3172
3145
|
}
|
|
@@ -3178,6 +3151,7 @@ function GoabHeroBannerActions({
|
|
|
3178
3151
|
function GoabIconButton({
|
|
3179
3152
|
variant = "color",
|
|
3180
3153
|
size = "medium",
|
|
3154
|
+
theme = "outline",
|
|
3181
3155
|
disabled,
|
|
3182
3156
|
onClick,
|
|
3183
3157
|
actionArgs,
|
|
@@ -3186,10 +3160,7 @@ function GoabIconButton({
|
|
|
3186
3160
|
...rest
|
|
3187
3161
|
}) {
|
|
3188
3162
|
const ref = react.useRef(null);
|
|
3189
|
-
const _props = transformProps(
|
|
3190
|
-
{ variant, size, ...rest },
|
|
3191
|
-
lowercase
|
|
3192
|
-
);
|
|
3163
|
+
const _props = transformProps({ variant, size, theme, ...rest }, lowercase);
|
|
3193
3164
|
react.useEffect(() => {
|
|
3194
3165
|
if (!ref.current) {
|
|
3195
3166
|
return;
|
|
@@ -3218,10 +3189,7 @@ function GoabIconButton({
|
|
|
3218
3189
|
}
|
|
3219
3190
|
);
|
|
3220
3191
|
}
|
|
3221
|
-
function GoabIcon({
|
|
3222
|
-
inverted,
|
|
3223
|
-
...rest
|
|
3224
|
-
}) {
|
|
3192
|
+
function GoabIcon({ inverted, ...rest }) {
|
|
3225
3193
|
const _props = transformProps(rest, lowercase);
|
|
3226
3194
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3227
3195
|
"goa-icon",
|
|
@@ -3504,15 +3472,7 @@ function GoabLink({
|
|
|
3504
3472
|
...rest
|
|
3505
3473
|
}) {
|
|
3506
3474
|
const _props = transformProps({ color, size, ...rest }, lowercase);
|
|
3507
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3508
|
-
"goa-link",
|
|
3509
|
-
{
|
|
3510
|
-
"action-arg": actionArg,
|
|
3511
|
-
"action-args": JSON.stringify(actionArgs),
|
|
3512
|
-
..._props,
|
|
3513
|
-
children
|
|
3514
|
-
}
|
|
3515
|
-
);
|
|
3475
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-link", { "action-arg": actionArg, "action-args": JSON.stringify(actionArgs), ..._props, children });
|
|
3516
3476
|
}
|
|
3517
3477
|
function GoALinkButton({
|
|
3518
3478
|
type = "primary",
|
|
@@ -3533,10 +3493,7 @@ function GoabMenuButton({
|
|
|
3533
3493
|
...rest
|
|
3534
3494
|
}) {
|
|
3535
3495
|
const el = react.useRef(null);
|
|
3536
|
-
const _props = transformProps(
|
|
3537
|
-
{ type, testid: testId, ...rest },
|
|
3538
|
-
kebab
|
|
3539
|
-
);
|
|
3496
|
+
const _props = transformProps({ type, testid: testId, ...rest }, kebab);
|
|
3540
3497
|
react.useEffect(() => {
|
|
3541
3498
|
if (!el.current) {
|
|
3542
3499
|
return;
|
|
@@ -3912,7 +3869,12 @@ function GoabSideMenuGroup({
|
|
|
3912
3869
|
}
|
|
3913
3870
|
);
|
|
3914
3871
|
}
|
|
3915
|
-
function GoabSideMenuHeading({
|
|
3872
|
+
function GoabSideMenuHeading({
|
|
3873
|
+
meta,
|
|
3874
|
+
testId,
|
|
3875
|
+
icon,
|
|
3876
|
+
children
|
|
3877
|
+
}) {
|
|
3916
3878
|
return /* @__PURE__ */ jsxRuntime.jsxs("goa-side-menu-heading", { icon, testid: testId, version: "2", children: [
|
|
3917
3879
|
children,
|
|
3918
3880
|
meta && /* @__PURE__ */ jsxRuntime.jsx("span", { slot: "meta", children: meta })
|
|
@@ -4022,7 +3984,16 @@ function GoabTableSortHeader({
|
|
|
4022
3984
|
children,
|
|
4023
3985
|
...rest
|
|
4024
3986
|
}) {
|
|
4025
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3987
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3988
|
+
"goa-table-sort-header",
|
|
3989
|
+
{
|
|
3990
|
+
name,
|
|
3991
|
+
direction,
|
|
3992
|
+
"sort-order": sortOrder,
|
|
3993
|
+
...rest,
|
|
3994
|
+
children
|
|
3995
|
+
}
|
|
3996
|
+
);
|
|
4026
3997
|
}
|
|
4027
3998
|
function GoabTabs({
|
|
4028
3999
|
initialTab,
|
|
@@ -4061,7 +4032,12 @@ function GoabTabs({
|
|
|
4061
4032
|
}
|
|
4062
4033
|
);
|
|
4063
4034
|
}
|
|
4064
|
-
function GoabTab({
|
|
4035
|
+
function GoabTab({
|
|
4036
|
+
heading,
|
|
4037
|
+
disabled,
|
|
4038
|
+
slug,
|
|
4039
|
+
children
|
|
4040
|
+
}) {
|
|
4065
4041
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4066
4042
|
"goa-tab",
|
|
4067
4043
|
{
|
|
@@ -4083,33 +4059,18 @@ const GoabTemporaryNotificationCtrl = ({
|
|
|
4083
4059
|
}) => {
|
|
4084
4060
|
const el = react.useRef(null);
|
|
4085
4061
|
const _props = transformProps(
|
|
4086
|
-
{ "vertical-position": verticalPosition, "horizontal-position": horizontalPosition, ...rest },
|
|
4087
|
-
kebab
|
|
4088
|
-
);
|
|
4089
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4090
|
-
"goa-temp-notification-ctrl",
|
|
4091
4062
|
{
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
}
|
|
4063
|
+
"vertical-position": verticalPosition,
|
|
4064
|
+
"horizontal-position": horizontalPosition,
|
|
4065
|
+
...rest
|
|
4066
|
+
},
|
|
4067
|
+
kebab
|
|
4096
4068
|
);
|
|
4069
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-temp-notification-ctrl", { ref: el, ..._props, testid: testId });
|
|
4097
4070
|
};
|
|
4098
|
-
function GoabText({
|
|
4099
|
-
as,
|
|
4100
|
-
tag,
|
|
4101
|
-
children,
|
|
4102
|
-
...rest
|
|
4103
|
-
}) {
|
|
4071
|
+
function GoabText({ as, tag, children, ...rest }) {
|
|
4104
4072
|
const _props = transformProps(rest, lowercase);
|
|
4105
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4106
|
-
"goa-text",
|
|
4107
|
-
{
|
|
4108
|
-
as: tag || as,
|
|
4109
|
-
..._props,
|
|
4110
|
-
children
|
|
4111
|
-
}
|
|
4112
|
-
);
|
|
4073
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-text", { as: tag || as, ..._props, children });
|
|
4113
4074
|
}
|
|
4114
4075
|
function GoabTextArea({
|
|
4115
4076
|
readOnly,
|
|
@@ -4185,17 +4146,10 @@ function GoabTooltip({
|
|
|
4185
4146
|
}) {
|
|
4186
4147
|
const _props = transformProps(rest, lowercase);
|
|
4187
4148
|
const isStringContent = typeof content === "string";
|
|
4188
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4189
|
-
"
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
..._props,
|
|
4193
|
-
children: [
|
|
4194
|
-
!isStringContent && content && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "content", children: content }),
|
|
4195
|
-
children
|
|
4196
|
-
]
|
|
4197
|
-
}
|
|
4198
|
-
);
|
|
4149
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("goa-tooltip", { content: isStringContent ? content : void 0, ..._props, children: [
|
|
4150
|
+
!isStringContent && content && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "content", children: content }),
|
|
4151
|
+
children
|
|
4152
|
+
] });
|
|
4199
4153
|
}
|
|
4200
4154
|
function GoabTwoColumnLayout(props) {
|
|
4201
4155
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|