@abgov/react-components 5.4.1 → 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 CHANGED
@@ -288,7 +288,7 @@ function GoAButton({
288
288
  type,
289
289
  size,
290
290
  variant,
291
- disabled,
291
+ disabled: disabled || void 0,
292
292
  leadingicon: leadingIcon,
293
293
  trailingicon: trailingIcon,
294
294
  width,
@@ -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, "yyyy-MM-dd'T'HH:mm"),
2847
+ value: toString(value, formatString),
2845
2848
  type: "datetime-local"
2846
2849
  }
2847
2850
  );
@@ -3411,9 +3414,10 @@ function GoAText(props) {
3411
3414
  return /* @__PURE__ */ jsxRuntime.jsx(
3412
3415
  "goa-text",
3413
3416
  {
3414
- as: props.as || "div",
3417
+ as: props.as,
3415
3418
  size: props.size,
3416
- maxwidth: props.maxWidth || "65ch",
3419
+ maxwidth: props.maxWidth,
3420
+ color: props.color,
3417
3421
  mt: props.mt,
3418
3422
  mb: props.mb,
3419
3423
  ml: props.ml,