@astralui/core 0.1.13 → 0.1.14

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/dist/index.cjs CHANGED
@@ -763,7 +763,7 @@ function dateTimeToInputStr(d) {
763
763
  if (!d || isNaN(d.getTime())) return "";
764
764
  return `${dateToInputStr(d)}T${pad2(d.getHours())}:${pad2(d.getMinutes())}`;
765
765
  }
766
- function DateInput({ type = "date", value, onChange, min, max, className, style, disabled, "aria-label": ariaLabel }) {
766
+ function DateInput({ type = "date", value, onChange, min, max, className, style, disabled, id, "aria-label": ariaLabel }) {
767
767
  const isTime = type === "datetime-local";
768
768
  const fmt = isTime ? dateTimeToInputStr : dateToInputStr;
769
769
  const [s, setS] = react.useState(() => fmt(value));
@@ -792,6 +792,7 @@ function DateInput({ type = "date", value, onChange, min, max, className, style,
792
792
  className,
793
793
  style,
794
794
  disabled,
795
+ id,
795
796
  "aria-label": ariaLabel,
796
797
  value: s,
797
798
  min: min ? fmt(min) : void 0,