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