@abgov/react-components 5.5.0 → 5.5.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 +4 -1
- package/index.js.map +1 -1
- package/index.mjs +4 -1
- package/index.mjs.map +1 -1
- package/lib/input/input.d.ts +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2834,14 +2834,17 @@ function GoAInputDateTime({
|
|
|
2834
2834
|
value,
|
|
2835
2835
|
min = "",
|
|
2836
2836
|
max = "",
|
|
2837
|
+
step,
|
|
2837
2838
|
...props
|
|
2838
2839
|
}) {
|
|
2840
|
+
const formatString = step === 1 ? "yyyy-MM-dd'T'HH:mm:ss" : "yyyy-MM-dd'T'HH:mm";
|
|
2839
2841
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2840
2842
|
GoAInput,
|
|
2841
2843
|
{
|
|
2842
2844
|
...props,
|
|
2845
|
+
step,
|
|
2843
2846
|
onChange: onDateChangeHandler(props.onChange),
|
|
2844
|
-
value: toString(value,
|
|
2847
|
+
value: toString(value, formatString),
|
|
2845
2848
|
type: "datetime-local"
|
|
2846
2849
|
}
|
|
2847
2850
|
);
|