react-day-picker 8.3.5 → 8.3.6

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/README.md CHANGED
@@ -6,8 +6,8 @@
6
6
 
7
7
  <a href="http://react-day-picker.js.org">
8
8
  <picture>
9
- <source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/120693/188241991-19d0e8a1-230a-48c8-8477-3c90d4e36197.png"/>
10
- <source media="(prefers-color-scheme: light)" srcset="https://user-images.githubusercontent.com/120693/188238076-311ec6d1-503d-4c21-8ffe-d89faa60e40f.png"/>
9
+ <source media="(prefers-color-scheme: dark)" srcSet="https://user-images.githubusercontent.com/120693/188241991-19d0e8a1-230a-48c8-8477-3c90d4e36197.png"/>
10
+ <source media="(prefers-color-scheme: light)" srcSet="https://user-images.githubusercontent.com/120693/188238076-311ec6d1-503d-4c21-8ffe-d89faa60e40f.png"/>
11
11
  <img alt="Shows a screenshot of the React DayPicker component in a browser’s window." width="900" />
12
12
  </picture>
13
13
  </a>
package/dist/index.esm.js CHANGED
@@ -1751,7 +1751,8 @@ buttonRef) {
1751
1751
  var isFocusTarget = focusContext.focusTarget &&
1752
1752
  isSameDay(focusContext.focusTarget, day) &&
1753
1753
  !activeModifiers.outside;
1754
- var buttonProps = __assign(__assign(__assign({}, divProps), (_a = { disabled: activeModifiers.disabled }, _a['aria-pressed'] = activeModifiers.selected, _a['aria-label'] = ariaLabel, _a.tabIndex = isFocusTarget ? 0 : -1, _a)), eventHandlers);
1754
+ var isFocused = focusContext.focusedDay && isSameDay(focusContext.focusedDay, day);
1755
+ var buttonProps = __assign(__assign(__assign({}, divProps), (_a = { disabled: activeModifiers.disabled }, _a['aria-pressed'] = activeModifiers.selected, _a['aria-label'] = ariaLabel, _a.tabIndex = isFocused || isFocusTarget ? 0 : -1, _a)), eventHandlers);
1755
1756
  var dayRender = {
1756
1757
  isButton: isButton,
1757
1758
  isHidden: isHidden,