@react-spectrum/calendar 3.3.1 → 3.4.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/dist/import.mjs +118 -94
- package/dist/main.css +1 -1
- package/dist/main.js +118 -94
- package/dist/main.js.map +1 -1
- package/dist/module.js +118 -94
- package/dist/module.js.map +1 -1
- package/package.json +17 -17
- package/src/CalendarBase.tsx +2 -2
package/src/CalendarBase.tsx
CHANGED
|
@@ -136,12 +136,12 @@ export function CalendarBase<T extends CalendarState | RangeCalendarState>(props
|
|
|
136
136
|
onClick={() => state.focusNextPage()}
|
|
137
137
|
tabIndex={-1} />
|
|
138
138
|
</VisuallyHidden>
|
|
139
|
-
{state.
|
|
139
|
+
{state.isValueInvalid &&
|
|
140
140
|
<HelpText
|
|
141
141
|
showErrorIcon
|
|
142
142
|
errorMessage={props.errorMessage || stringFormatter.format('invalidSelection', {selectedCount: 'highlightedRange' in state ? 2 : 1})}
|
|
143
143
|
errorMessageProps={errorMessageProps}
|
|
144
|
-
|
|
144
|
+
isInvalid
|
|
145
145
|
// Intentionally a global class name so it can be targeted in DatePicker CSS...
|
|
146
146
|
UNSAFE_className="spectrum-Calendar-helpText" />
|
|
147
147
|
}
|