@abgov/react-components 5.5.0 → 5.5.2
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/experimental/form/form.d.ts +2 -2
- package/experimental/form/task-list.d.ts +2 -2
- package/experimental/form/task.d.ts +2 -2
- package/experimental/index.d.ts +2 -2
- package/experimental/resizable-panel/ResizablePanel.d.ts +1 -1
- package/experimental.js.map +1 -1
- package/experimental.mjs.map +1 -1
- package/icon-1IRcN4Uf.js.map +1 -1
- package/icon-DgSW1II3.mjs.map +1 -1
- package/index.d.ts +61 -61
- package/index.js +6 -3
- package/index.js.map +1 -1
- package/index.mjs +6 -3
- package/index.mjs.map +1 -1
- package/lib/accordion/accordion.d.ts +2 -2
- package/lib/app-header-menu/app-header-menu.d.ts +2 -2
- package/lib/badge/badge.d.ts +1 -1
- package/lib/block/block.d.ts +2 -2
- package/lib/button/button.d.ts +3 -3
- package/lib/button-group/button-group.d.ts +1 -1
- package/lib/calendar/calendar.d.ts +1 -1
- package/lib/callout/callout.d.ts +1 -1
- package/lib/card/card.d.ts +1 -1
- package/lib/card/index.d.ts +5 -5
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/chip/chip.d.ts +1 -1
- package/lib/container/container.d.ts +2 -2
- package/lib/date-picker/date-picker.d.ts +1 -1
- package/lib/details/details.d.ts +2 -2
- package/lib/divider/divider.d.ts +1 -1
- package/lib/drawer/drawer.d.ts +1 -1
- package/lib/dropdown/dropdown.d.ts +2 -2
- package/lib/fieldset/fieldset.d.ts +2 -2
- package/lib/filter-chip/filter-chip.d.ts +1 -1
- package/lib/footer/footer.d.ts +1 -1
- package/lib/footer-meta-section/footer-meta-section.d.ts +1 -1
- package/lib/footer-nav-section/footer-nav-section.d.ts +1 -1
- package/lib/form-item/form-item.d.ts +1 -1
- package/lib/form-stepper/form-stepper.d.ts +2 -2
- package/lib/grid/grid.d.ts +1 -1
- package/lib/icon/icon.d.ts +1 -1
- package/lib/icon-button/icon-button.d.ts +2 -2
- package/lib/input/input.d.ts +7 -4
- package/lib/link/link.d.ts +3 -3
- package/lib/link-button/link-button.d.ts +3 -3
- package/lib/modal/modal.d.ts +1 -1
- package/lib/one-column-layout/one-column-layout.d.ts +1 -1
- package/lib/page-block/page-block.d.ts +1 -1
- package/lib/pages/pages.d.ts +2 -2
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/popover/popover.d.ts +2 -2
- package/lib/radio-group/radio-group.d.ts +2 -2
- package/lib/radio-group/radio.d.ts +1 -1
- package/lib/side-menu/side-menu.d.ts +1 -1
- package/lib/side-menu-group/side-menu-group.d.ts +3 -3
- package/lib/side-menu-heading/side-menu-heading.d.ts +2 -2
- package/lib/skeleton/skeleton.d.ts +1 -1
- package/lib/spacer/spacer.d.ts +1 -1
- package/lib/table/table.d.ts +2 -2
- package/lib/tabs/tabs.d.ts +1 -1
- package/lib/text/text.d.ts +2 -2
- package/lib/textarea/textarea.d.ts +1 -1
- package/lib/three-column-layout/three-column-layout.d.ts +1 -1
- package/lib/tooltip/tooltip.d.ts +2 -2
- package/lib/two-column-layout/two-column-layout.d.ts +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1749,8 +1749,6 @@ const lightFormatters = {
|
|
|
1749
1749
|
}
|
|
1750
1750
|
};
|
|
1751
1751
|
const dayPeriodEnum = {
|
|
1752
|
-
am: "am",
|
|
1753
|
-
pm: "pm",
|
|
1754
1752
|
midnight: "midnight",
|
|
1755
1753
|
noon: "noon",
|
|
1756
1754
|
morning: "morning",
|
|
@@ -2647,6 +2645,7 @@ function GoAInput({
|
|
|
2647
2645
|
name,
|
|
2648
2646
|
type,
|
|
2649
2647
|
autoCapitalize,
|
|
2648
|
+
textAlign = "left",
|
|
2650
2649
|
leadingIcon,
|
|
2651
2650
|
trailingIcon,
|
|
2652
2651
|
variant = "goa",
|
|
@@ -2724,6 +2723,7 @@ function GoAInput({
|
|
|
2724
2723
|
type,
|
|
2725
2724
|
name,
|
|
2726
2725
|
autocapitalize: autoCapitalize,
|
|
2726
|
+
textalign: textAlign,
|
|
2727
2727
|
id,
|
|
2728
2728
|
leadingicon: leadingIcon,
|
|
2729
2729
|
trailingicon: trailingIcon,
|
|
@@ -2832,14 +2832,17 @@ function GoAInputDateTime({
|
|
|
2832
2832
|
value,
|
|
2833
2833
|
min = "",
|
|
2834
2834
|
max = "",
|
|
2835
|
+
step,
|
|
2835
2836
|
...props
|
|
2836
2837
|
}) {
|
|
2838
|
+
const formatString = step === 1 ? "yyyy-MM-dd'T'HH:mm:ss" : "yyyy-MM-dd'T'HH:mm";
|
|
2837
2839
|
return /* @__PURE__ */ jsx(
|
|
2838
2840
|
GoAInput,
|
|
2839
2841
|
{
|
|
2840
2842
|
...props,
|
|
2843
|
+
step,
|
|
2841
2844
|
onChange: onDateChangeHandler(props.onChange),
|
|
2842
|
-
value: toString(value,
|
|
2845
|
+
value: toString(value, formatString),
|
|
2843
2846
|
type: "datetime-local"
|
|
2844
2847
|
}
|
|
2845
2848
|
);
|