@skyscanner/backpack-web 36.8.0 → 36.8.2
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.
|
@@ -125,7 +125,6 @@ class BpkCalendarDate extends PureComponent {
|
|
|
125
125
|
type: "button",
|
|
126
126
|
style: style,
|
|
127
127
|
className: classNames.join(' '),
|
|
128
|
-
"aria-hidden": isBlocked,
|
|
129
128
|
"aria-label": `${date.getDate()}`,
|
|
130
129
|
disabled: isBlocked,
|
|
131
130
|
tabIndex: isKeyboardFocusable && isFocused ? 0 : -1,
|
|
@@ -104,7 +104,9 @@ class BpkCalendarGrid extends Component {
|
|
|
104
104
|
return /*#__PURE__*/_jsx("div", {
|
|
105
105
|
className: classNames,
|
|
106
106
|
"aria-hidden": !isKeyboardFocusable,
|
|
107
|
+
role: "grid",
|
|
107
108
|
children: /*#__PURE__*/_jsx("div", {
|
|
109
|
+
role: "rowgroup",
|
|
108
110
|
children: calendarMonthWeeks.map(dates => /*#__PURE__*/_jsx(BpkCalendarWeek, {
|
|
109
111
|
month: month,
|
|
110
112
|
dates: dates,
|
|
@@ -267,6 +267,7 @@ class BpkCalendarWeek extends Component {
|
|
|
267
267
|
}
|
|
268
268
|
return /*#__PURE__*/_jsx("div", {
|
|
269
269
|
className: getClassName('bpk-calendar-week'),
|
|
270
|
+
role: "row",
|
|
270
271
|
children: this.props.dates.map(date => {
|
|
271
272
|
const isBlocked = minDate && maxDate ? !isWithinRange(date.val, {
|
|
272
273
|
start: minDate,
|
|
@@ -276,7 +277,6 @@ class BpkCalendarWeek extends Component {
|
|
|
276
277
|
return /*#__PURE__*/_jsx(DateContainer, {
|
|
277
278
|
className: cellClassName,
|
|
278
279
|
isEmptyCell: !isSameMonth(date.val, month) && ignoreOutsideDate,
|
|
279
|
-
isBlocked: isBlocked,
|
|
280
280
|
selectionType: dateSelectionType,
|
|
281
281
|
children: /*#__PURE__*/_jsx(DateComponent, {
|
|
282
282
|
date: date.val,
|
|
@@ -306,14 +306,14 @@ class BpkCalendarWeek extends Component {
|
|
|
306
306
|
const DateContainer = ({
|
|
307
307
|
children,
|
|
308
308
|
className = null,
|
|
309
|
-
isBlocked,
|
|
310
309
|
isEmptyCell,
|
|
311
310
|
selectionType
|
|
312
311
|
}) => {
|
|
313
312
|
const classNames = getClassName('bpk-calendar-week__date', `bpk-calendar-week__date--${selectionType}`, className);
|
|
314
313
|
return /*#__PURE__*/_jsx("div", {
|
|
315
|
-
"aria-hidden": isEmptyCell
|
|
314
|
+
"aria-hidden": isEmptyCell,
|
|
316
315
|
className: classNames,
|
|
316
|
+
role: "gridcell",
|
|
317
317
|
children: children
|
|
318
318
|
});
|
|
319
319
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyscanner/backpack-web",
|
|
3
|
-
"version": "36.8.
|
|
3
|
+
"version": "36.8.2",
|
|
4
4
|
"description": "Backpack Design System web library",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@floating-ui/react": "^0.26.12",
|
|
26
26
|
"@popperjs/core": "^2.11.8",
|
|
27
|
-
"@radix-ui/react-compose-refs": "^1.1.
|
|
28
|
-
"@radix-ui/react-slider": "^1.
|
|
27
|
+
"@radix-ui/react-compose-refs": "^1.1.1",
|
|
28
|
+
"@radix-ui/react-slider": "^1.2.2",
|
|
29
29
|
"@react-google-maps/api": "^2.19.3",
|
|
30
30
|
"@skyscanner/bpk-foundations-web": "^19.1.0",
|
|
31
31
|
"@skyscanner/bpk-svgs": "^20.0.0",
|