@react-aria/datepicker 3.0.0-nightly.2388 → 3.0.0-nightly.2394

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/module.js CHANGED
@@ -1062,7 +1062,7 @@ function $6057a3d2a53a12fd$export$42df105a73306d51(props, state, ref) {
1062
1062
  isDisabled: props.isDisabled,
1063
1063
  isReadOnly: props.isReadOnly,
1064
1064
  isRequired: props.isRequired,
1065
- validationState: state.validationState,
1065
+ isInvalid: state.isInvalid,
1066
1066
  autoFocus: props.autoFocus,
1067
1067
  name: props.name
1068
1068
  },
@@ -1092,7 +1092,7 @@ function $6057a3d2a53a12fd$export$42df105a73306d51(props, state, ref) {
1092
1092
  isReadOnly: props.isReadOnly,
1093
1093
  isDateUnavailable: props.isDateUnavailable,
1094
1094
  defaultFocusedValue: state.dateValue ? undefined : props.placeholderValue,
1095
- validationState: state.validationState,
1095
+ isInvalid: state.isInvalid,
1096
1096
  errorMessage: props.errorMessage
1097
1097
  }
1098
1098
  };
@@ -1424,7 +1424,7 @@ function $32489daedd52963e$export$1315d136e6f7581(segment, state, ref) {
1424
1424
  let firstSegment = (0, $cIPI0$useMemo)(()=>state.segments.find((s)=>s.isEditable), [
1425
1425
  state.segments
1426
1426
  ]);
1427
- if (segment !== firstSegment && state.validationState !== "invalid") ariaDescribedBy = undefined;
1427
+ if (segment !== firstSegment && !state.isInvalid) ariaDescribedBy = undefined;
1428
1428
  let id = (0, $cIPI0$useId)();
1429
1429
  let isEditable = !state.isDisabled && !state.isReadOnly && segment.isEditable;
1430
1430
  // Prepend the label passed from the field to each segment name.
@@ -1445,7 +1445,7 @@ function $32489daedd52963e$export$1315d136e6f7581(segment, state, ref) {
1445
1445
  segmentProps: (0, $cIPI0$mergeProps)(spinButtonProps, labelProps, {
1446
1446
  id: id,
1447
1447
  ...touchPropOverrides,
1448
- "aria-invalid": state.validationState === "invalid" ? "true" : undefined,
1448
+ "aria-invalid": state.isInvalid ? "true" : undefined,
1449
1449
  "aria-describedby": ariaDescribedBy,
1450
1450
  "aria-readonly": state.isReadOnly || !segment.isEditable ? "true" : undefined,
1451
1451
  "data-placeholder": segment.isPlaceholder || undefined,
@@ -1558,7 +1558,7 @@ function $887cac91b7cc8801$export$12fd5f0e9f4bb192(props, state, ref) {
1558
1558
  isDisabled: props.isDisabled,
1559
1559
  isReadOnly: props.isReadOnly,
1560
1560
  isRequired: props.isRequired,
1561
- validationState: state.validationState
1561
+ isInvalid: state.isInvalid
1562
1562
  };
1563
1563
  let domProps = (0, $cIPI0$filterDOMProps)(props);
1564
1564
  let { focusWithinProps: focusWithinProps } = (0, $cIPI0$useFocusWithin)({
@@ -1630,7 +1630,7 @@ function $887cac91b7cc8801$export$12fd5f0e9f4bb192(props, state, ref) {
1630
1630
  isDateUnavailable: props.isDateUnavailable,
1631
1631
  allowsNonContiguousRanges: props.allowsNonContiguousRanges,
1632
1632
  defaultFocusedValue: state.dateRange ? undefined : props.placeholderValue,
1633
- validationState: state.validationState,
1633
+ isInvalid: state.isInvalid,
1634
1634
  errorMessage: props.errorMessage
1635
1635
  }
1636
1636
  };