@skyscanner/backpack-web 9.3.0 → 11.1.0
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/bpk-animate-height/package.json +3 -3
- package/bpk-component-accordion/package.json +8 -8
- package/bpk-component-accordion/src/BpkAccordion.module.scss +1 -1
- package/bpk-component-accordion/src/BpkAccordionItem.module.scss +1 -1
- package/bpk-component-aria-live/README.md +2 -2
- package/bpk-component-aria-live/index.js +0 -1
- package/bpk-component-aria-live/package.json +8 -9
- package/bpk-component-aria-live/src/BpkAriaLive.js +21 -20
- package/bpk-component-aria-live/src/BpkAriaLive.module.scss +1 -1
- package/bpk-component-autosuggest/package.json +5 -5
- package/bpk-component-autosuggest/src/BpkAutosuggest.module.scss +2 -2
- package/bpk-component-badge/package.json +6 -6
- package/bpk-component-badge/src/BpkBadge.module.scss +1 -1
- package/bpk-component-banner-alert/package.json +10 -10
- package/bpk-component-banner-alert/src/BpkAnimateAndFade.module.scss +1 -1
- package/bpk-component-banner-alert/src/BpkBannerAlert.module.scss +3 -3
- package/bpk-component-barchart/package.json +9 -9
- package/bpk-component-barchart/src/BpkBarchartBar.module.scss +3 -1
- package/bpk-component-barchart/src/BpkChartAxis.module.scss +1 -1
- package/bpk-component-barchart/src/BpkChartDataTable.module.scss +1 -1
- package/bpk-component-barchart/src/BpkChartGridLines.module.scss +2 -2
- package/bpk-component-blockquote/package.json +3 -3
- package/bpk-component-blockquote/src/BpkBlockquote.module.scss +1 -1
- package/bpk-component-breadcrumb/package.json +6 -6
- package/bpk-component-breadcrumb/src/BpkBreadcrumb.module.scss +1 -1
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.module.scss +1 -1
- package/bpk-component-breakpoint/package.json +4 -4
- package/bpk-component-button/package.json +3 -3
- package/bpk-component-button/src/BpkButtonBase.module.scss +2 -2
- package/bpk-component-button/src/BpkButtonDestructive.module.scss +1 -1
- package/bpk-component-button/src/BpkButtonFeatured.module.scss +1 -1
- package/bpk-component-button/src/BpkButtonLink.module.scss +1 -1
- package/bpk-component-button/src/BpkButtonLinkOnDark.module.scss +1 -1
- package/bpk-component-button/src/BpkButtonOutline.module.scss +1 -1
- package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.scss +1 -1
- package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.scss +1 -1
- package/bpk-component-button/src/BpkButtonSecondary.module.scss +1 -1
- package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.scss +1 -1
- package/bpk-component-calendar/DOCS.md +1 -7
- package/bpk-component-calendar/README.md +0 -10
- package/bpk-component-calendar/index.js +0 -2
- package/bpk-component-calendar/package.json +10 -10
- package/bpk-component-calendar/src/BpkCalendar.module.scss +2 -2
- package/bpk-component-calendar/src/BpkCalendarDate.js +0 -15
- package/bpk-component-calendar/src/BpkCalendarDate.module.scss +18 -51
- package/bpk-component-calendar/src/BpkCalendarGrid.module.scss +8 -7
- package/bpk-component-calendar/src/BpkCalendarGridHeader.module.scss +2 -2
- package/bpk-component-calendar/src/BpkCalendarGridTransition.module.scss +2 -2
- package/bpk-component-calendar/src/BpkCalendarNav.module.scss +3 -3
- package/bpk-component-calendar/src/_variables.scss +2 -4
- package/bpk-component-card/package.json +5 -5
- package/bpk-component-card/src/BpkCard.module.scss +1 -1
- package/bpk-component-checkbox/package.json +6 -6
- package/bpk-component-checkbox/src/BpkCheckbox.module.scss +1 -1
- package/bpk-component-chip/package.json +6 -6
- package/bpk-component-chip/src/BpkSelectableChip.module.scss +1 -1
- package/bpk-component-close-button/package.json +5 -5
- package/bpk-component-close-button/src/BpkCloseButton.module.scss +3 -2
- package/bpk-component-code/package.json +3 -3
- package/bpk-component-code/src/BpkCode.module.scss +1 -1
- package/bpk-component-code/src/BpkCodeBlock.module.scss +1 -1
- package/bpk-component-content-cards/{index.ts → index.js} +0 -0
- package/bpk-component-content-cards/package.json +5 -5
- package/bpk-component-content-cards/src/{BpkContentCard/BpkContentCard.tsx → BpkContentCard.js} +10 -11
- package/bpk-component-content-cards/src/{BpkContentCard/BpkContentCard.module.scss → BpkContentCard.module.scss} +1 -1
- package/bpk-component-content-cards/src/{BpkContentCards.tsx → BpkContentCards.js} +11 -11
- package/bpk-component-content-cards/src/BpkContentCards.module.scss +1 -1
- package/bpk-component-content-container/package.json +3 -3
- package/bpk-component-content-container/src/BpkContentContainer.module.scss +1 -1
- package/bpk-component-datatable/README.md +78 -21
- package/bpk-component-datatable/package.json +6 -7
- package/bpk-component-datatable/src/BpkDataTable.js +176 -143
- package/bpk-component-datatable/src/BpkDataTable.module.scss +11 -16
- package/bpk-component-datatable/src/BpkDataTableColumn.js +37 -40
- package/bpk-component-datatable/src/BpkDataTableHeader.js +143 -0
- package/bpk-component-datatable/src/{BpkDataTableColumn.module.scss → BpkDataTableHeader.module.scss} +12 -12
- package/bpk-component-datatable/src/common-types.js +33 -11
- package/bpk-component-datatable/src/sort-types.js +6 -0
- package/bpk-component-datatable/src/utils.js +66 -9
- package/bpk-component-datepicker/package.json +10 -10
- package/bpk-component-datepicker/src/BpkDatepicker.module.scss +1 -1
- package/bpk-component-description-list/package.json +3 -3
- package/bpk-component-description-list/src/BpkDescriptionList.module.scss +1 -1
- package/bpk-component-dialog/package.json +9 -9
- package/bpk-component-dialog/src/BpkDialog.module.scss +1 -1
- package/bpk-component-dialog/src/BpkDialogInner.module.scss +3 -1
- package/bpk-component-drawer/package.json +10 -10
- package/bpk-component-drawer/src/BpkDrawer.module.scss +1 -1
- package/bpk-component-drawer/src/BpkDrawerContent.module.scss +1 -1
- package/bpk-component-fieldset/package.json +13 -13
- package/bpk-component-fieldset/src/BpkFieldset.module.scss +1 -1
- package/bpk-component-flare/package.json +5 -5
- package/bpk-component-flare/src/bpk-content-bubble.module.scss +2 -1
- package/bpk-component-flare/src/bpk-flare-bar.module.scss +2 -1
- package/bpk-component-floating-notification/README.md +0 -8
- package/bpk-component-floating-notification/index.js +0 -2
- package/bpk-component-floating-notification/package.json +6 -6
- package/bpk-component-floating-notification/src/BpkFloatingNotification.js +7 -26
- package/bpk-component-floating-notification/src/BpkFloatingNotification.module.scss +5 -18
- package/bpk-component-form-validation/package.json +11 -11
- package/bpk-component-form-validation/src/BpkFormValidation.module.scss +1 -1
- package/bpk-component-graphic-promotion/{index.ts → index.js} +0 -0
- package/bpk-component-graphic-promotion/package.json +7 -6
- package/bpk-component-graphic-promotion/src/{BpkGraphicPromo.tsx → BpkGraphicPromo.js} +26 -16
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.scss +1 -1
- package/bpk-component-grid/package.json +3 -3
- package/bpk-component-grid/src/BpkGridColumn.module.scss +1 -1
- package/bpk-component-grid/src/BpkGridContainer.module.scss +1 -1
- package/bpk-component-grid/src/BpkGridRow.module.scss +1 -1
- package/bpk-component-grid-toggle/package.json +4 -4
- package/bpk-component-grid-toggle/src/BpkGridToggle.module.scss +1 -1
- package/bpk-component-horizontal-nav/package.json +7 -7
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav.module.scss +3 -3
- package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.module.scss +15 -15
- package/bpk-component-icon/README.md +1 -1
- package/bpk-component-icon/package.json +8 -8
- package/bpk-component-icon/src/BpkIcon.module.scss +1 -1
- package/bpk-component-icon/src/withDescription.module.scss +1 -1
- package/bpk-component-image/package.json +7 -7
- package/bpk-component-image/src/BpkBackgroundImage.module.scss +1 -1
- package/bpk-component-image/src/BpkImage.module.scss +1 -1
- package/bpk-component-infinite-scroll/package.json +7 -7
- package/bpk-component-infinite-scroll/src/withInfiniteScroll.module.scss +1 -1
- package/bpk-component-input/package.json +7 -7
- package/bpk-component-input/src/BpkClearButton.module.scss +2 -2
- package/bpk-component-input/src/BpkInput.module.scss +1 -1
- package/bpk-component-label/package.json +3 -3
- package/bpk-component-label/src/BpkLabel.module.scss +1 -1
- package/bpk-component-link/package.json +5 -5
- package/bpk-component-link/src/BpkLink.module.scss +1 -1
- package/bpk-component-list/README.md +8 -5
- package/bpk-component-list/package.json +3 -3
- package/bpk-component-list/src/BpkList.js +18 -2
- package/bpk-component-list/src/BpkList.module.scss +1 -1
- package/bpk-component-loading-button/package.json +7 -7
- package/bpk-component-loading-button/src/BpkLoadingButton.module.scss +1 -1
- package/bpk-component-map/package.json +7 -7
- package/bpk-component-map/src/BpkIconMarker.module.scss +3 -2
- package/bpk-component-map/src/BpkIconMarkerBackground.module.scss +1 -1
- package/bpk-component-map/src/BpkMap.js +1 -0
- package/bpk-component-map/src/BpkPriceMarker.module.scss +3 -1
- package/bpk-component-map/src/DefaultLoadingElement.module.scss +1 -1
- package/bpk-component-mobile-scroll-container/README.md +1 -1
- package/bpk-component-mobile-scroll-container/package.json +4 -4
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.module.scss +3 -1
- package/bpk-component-modal/package.json +10 -10
- package/bpk-component-modal/src/BpkModal.module.scss +1 -1
- package/bpk-component-modal/src/BpkModalInner.module.scss +3 -1
- package/bpk-component-navigation-bar/package.json +9 -9
- package/bpk-component-navigation-bar/src/BpkNavigationBar.module.scss +4 -4
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.module.scss +5 -5
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.module.scss +4 -4
- package/bpk-component-nudger/package.json +8 -8
- package/bpk-component-nudger/src/BpkNudger.module.scss +1 -1
- package/bpk-component-overlay/package.json +5 -5
- package/bpk-component-overlay/src/BpkOverlay.module.scss +1 -1
- package/bpk-component-pagination/package.json +5 -5
- package/bpk-component-pagination/src/BpkPaginationList.module.scss +1 -1
- package/bpk-component-pagination/src/BpkPaginationNudger.module.scss +2 -2
- package/bpk-component-pagination/src/BpkPaginationPage.module.scss +1 -1
- package/bpk-component-panel/package.json +3 -3
- package/bpk-component-panel/src/BpkPanel.module.scss +1 -1
- package/bpk-component-phone-input/package.json +10 -10
- package/bpk-component-phone-input/src/BpkPhoneInput.module.scss +1 -1
- package/bpk-component-popover/package.json +9 -9
- package/bpk-component-popover/src/BpkPopover.module.scss +1 -2
- package/bpk-component-price/package.json +4 -4
- package/bpk-component-price/src/BpkPrice.module.scss +1 -1
- package/bpk-component-progress/package.json +6 -6
- package/bpk-component-progress/src/BpkProgress.module.scss +1 -1
- package/bpk-component-radio/package.json +5 -5
- package/bpk-component-radio/src/BpkRadio.module.scss +1 -2
- package/bpk-component-rating/package.json +5 -5
- package/bpk-component-rating/src/BpkRating.module.scss +1 -1
- package/bpk-component-rtl-toggle/package.json +3 -3
- package/bpk-component-scrollable-calendar/package.json +7 -7
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.module.scss +1 -1
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.module.scss +1 -2
- package/bpk-component-section-list/package.json +7 -7
- package/bpk-component-section-list/src/BpkSectionListItem.module.scss +1 -1
- package/bpk-component-section-list/src/BpkSectionListSection.module.scss +1 -1
- package/bpk-component-select/package.json +4 -4
- package/bpk-component-select/src/BpkSelect.module.scss +1 -1
- package/bpk-component-skip-link/package.json +3 -3
- package/bpk-component-skip-link/src/BpkSkipLink.module.scss +2 -1
- package/bpk-component-slider/package.json +5 -5
- package/bpk-component-slider/src/BpkSlider.module.scss +1 -2
- package/bpk-component-spinner/package.json +4 -4
- package/bpk-component-spinner/src/BpkSpinner.module.scss +1 -1
- package/bpk-component-split-input/package.json +4 -4
- package/bpk-component-split-input/src/BpkInputField.module.scss +1 -1
- package/bpk-component-split-input/src/BpkSplitInput.module.scss +1 -1
- package/bpk-component-star-rating/package.json +6 -6
- package/bpk-component-star-rating/src/BpkInteractiveStar.module.scss +3 -3
- package/bpk-component-star-rating/src/BpkStar.module.scss +1 -1
- package/bpk-component-switch/README.md +1 -1
- package/bpk-component-switch/package.json +3 -3
- package/bpk-component-switch/src/BpkSwitch.js +14 -13
- package/bpk-component-switch/src/BpkSwitch.module.scss +18 -12
- package/bpk-component-table/package.json +3 -3
- package/bpk-component-table/src/BpkTable.module.scss +1 -1
- package/bpk-component-text/package.json +3 -3
- package/bpk-component-text/src/BpkText.module.scss +1 -1
- package/bpk-component-textarea/package.json +5 -5
- package/bpk-component-textarea/src/BpkTextarea.module.scss +1 -1
- package/bpk-component-theme-toggle/package.json +6 -6
- package/bpk-component-theme-toggle/src/BpkThemeToggle.module.scss +1 -1
- package/bpk-component-ticket/package.json +5 -5
- package/bpk-component-ticket/src/BpkTicket.module.scss +1 -1
- package/bpk-component-tooltip/package.json +5 -5
- package/bpk-component-tooltip/src/BpkTooltip.module.scss +3 -2
- package/bpk-react-utils/README.md +1 -1
- package/bpk-react-utils/package.json +1 -1
- package/bpk-scrim-utils/package.json +3 -3
- package/bpk-scrim-utils/src/bpk-scrim-content.module.scss +1 -1
- package/bpk-scrim-utils/src/bpk-scrim.module.scss +1 -1
- package/bpk-theming/package.json +2 -2
- package/package.json +4 -4
- package/bpk-component-content-cards/src/BpkContentCard/BpkContentCard-test.tsx +0 -88
- package/bpk-component-content-cards/src/BpkContentCard/index.ts +0 -19
- package/bpk-component-content-cards/src/BpkContentCards-test.tsx +0 -126
- package/bpk-component-content-cards/src/accessibility-test.tsx +0 -64
- package/bpk-component-datatable/src/bpkHeaderRenderer.js +0 -110
- package/bpk-component-datatable/src/sorter.js +0 -166
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo-test.tsx +0 -134
- package/bpk-component-graphic-promotion/src/accessibility-test.tsx +0 -147
|
@@ -20,10 +20,4 @@ Calendar components -
|
|
|
20
20
|
|
|
21
21
|
- `Week` - This is a container that will take the `DateComponent` to display each of the dates in the calendar
|
|
22
22
|
|
|
23
|
-
- `BpkCalendarDate` - is each date cell that would be displayed inside the calendar grid. This would be used to customise how each date cell is displayed e.g. coloured or with special pricing displayed.
|
|
24
|
-
|
|
25
|
-
It has a `cellType` prop which can be used to set a custom colour. An exported `CELL_TYPES` object offers the following cell types:
|
|
26
|
-
- `CELL_TYPES.positive` - sets the calendar cell to `Monteverde`
|
|
27
|
-
- `CELL_TYPES.neutral` - sets the calendar cell to `Erfoud`
|
|
28
|
-
- `CELL_TYPES.negative` - sets the calendar cell to `Panjin`
|
|
29
|
-
- `CELL_TYPES.default` - sets the calendar cell to `Sky Gray Tint 02`
|
|
23
|
+
- `BpkCalendarDate` - is each date cell that would be displayed inside the calendar grid. This would be used to customise how each date cell is displayed e.g. coloured or with special pricing displayed.
|
|
@@ -248,7 +248,6 @@ The BpkCalendarDate component is used to render the content of a cell
|
|
|
248
248
|
| Property | PropType | Required | Default Value |
|
|
249
249
|
| --------------------- | -------------------- | -------- | ---------------- |
|
|
250
250
|
| date | Date | true | - |
|
|
251
|
-
| cellType | oneOf(CELL_TYPES.default, CELL_TYPES.positive, CELL_TYPES.neutral, CELL_TYPES.negative) | false | null |
|
|
252
251
|
| isBlocked | bool | false | false |
|
|
253
252
|
| isFocused | bool | false | false |
|
|
254
253
|
| isKeyboardFocusable | bool | false | true |
|
|
@@ -261,15 +260,6 @@ The BpkCalendarDate component is used to render the content of a cell
|
|
|
261
260
|
| selectionType | oneOf(SELECTION_TYPES.single, SELECTION_TYPES.start, SELECTION_TYPES.middle, SELECTION_TYPES.end) | false | SELECTION_TYPES.single |
|
|
262
261
|
| style | object | false | null |
|
|
263
262
|
|
|
264
|
-
#### `cellType` prop
|
|
265
|
-
|
|
266
|
-
This prop determines what the colour date cell is to be displayed.
|
|
267
|
-
|
|
268
|
-
- `CELL_TYPES.positive` - sets the calendar cell to `Monteverde`
|
|
269
|
-
- `CELL_TYPES.neutral` - sets the calendar cell to `Erfoud`
|
|
270
|
-
- `CELL_TYPES.negative` - sets the calendar cell to `Panjin`
|
|
271
|
-
- `CELL_TYPES.default` - sets the calendar cell to `Sky Gray Tint 02`
|
|
272
|
-
|
|
273
263
|
#### `selectionType` prop
|
|
274
264
|
|
|
275
265
|
This property determines which selected styles will be applied to the date cell. If using ranges use `start`, `middle` and `end` to apply the correct range styles.
|
|
@@ -26,7 +26,6 @@ import BpkCalendarGrid, {
|
|
|
26
26
|
import BpkCalendarGridHeader from './src/BpkCalendarGridHeader';
|
|
27
27
|
import BpkCalendarNav from './src/BpkCalendarNav';
|
|
28
28
|
import BpkCalendarDate, {
|
|
29
|
-
CELL_TYPES,
|
|
30
29
|
ROW_TYPES,
|
|
31
30
|
SELECTION_TYPES,
|
|
32
31
|
propTypes as BpkCalendarDatePropTypes,
|
|
@@ -47,7 +46,6 @@ export {
|
|
|
47
46
|
BpkCalendarDate,
|
|
48
47
|
CustomPropTypes,
|
|
49
48
|
DateUtils,
|
|
50
|
-
CELL_TYPES,
|
|
51
49
|
CALENDAR_SELECTION_TYPE,
|
|
52
50
|
ROW_TYPES,
|
|
53
51
|
SELECTION_TYPES,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-calendar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.2",
|
|
4
4
|
"description": "Backpack calendar component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@skyscanner/bpk-foundations-web": "^9.
|
|
18
|
-
"bpk-component-aria-live": "^3.
|
|
19
|
-
"bpk-component-icon": "^10.0.
|
|
20
|
-
"bpk-component-select": "^6.0.
|
|
21
|
-
"bpk-mixins": "^31.
|
|
22
|
-
"bpk-react-utils": "^7.0.
|
|
17
|
+
"@skyscanner/bpk-foundations-web": "^9.3.0",
|
|
18
|
+
"bpk-component-aria-live": "^3.1.2",
|
|
19
|
+
"bpk-component-icon": "^10.0.5",
|
|
20
|
+
"bpk-component-select": "^6.0.5",
|
|
21
|
+
"bpk-mixins": "^31.6.3",
|
|
22
|
+
"bpk-react-utils": "^7.0.1",
|
|
23
23
|
"date-fns": "^2.21.1",
|
|
24
24
|
"prop-types": "^15.7.2"
|
|
25
25
|
},
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"react": "^17.0.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"bpk-component-button": "^7.0.
|
|
31
|
-
"bpk-component-text": "^8.0.
|
|
32
|
-
"bpk-storybook-utils": "^2.0.
|
|
30
|
+
"bpk-component-button": "^7.0.5",
|
|
31
|
+
"bpk-component-text": "^8.0.5",
|
|
32
|
+
"bpk-storybook-utils": "^2.0.5"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -26,13 +26,6 @@ import STYLES from './BpkCalendarDate.module.scss';
|
|
|
26
26
|
|
|
27
27
|
const getClassName = cssModules(STYLES);
|
|
28
28
|
|
|
29
|
-
export const CELL_TYPES = {
|
|
30
|
-
default: 'default',
|
|
31
|
-
negative: 'negative',
|
|
32
|
-
neutral: 'neutral',
|
|
33
|
-
positive: 'positive',
|
|
34
|
-
};
|
|
35
|
-
|
|
36
29
|
export const SELECTION_TYPES = {
|
|
37
30
|
none: 'none',
|
|
38
31
|
single: 'single',
|
|
@@ -99,7 +92,6 @@ class BpkCalendarDate extends PureComponent {
|
|
|
99
92
|
|
|
100
93
|
render() {
|
|
101
94
|
const {
|
|
102
|
-
cellType,
|
|
103
95
|
className,
|
|
104
96
|
date,
|
|
105
97
|
isBlocked,
|
|
@@ -126,11 +118,6 @@ class BpkCalendarDate extends PureComponent {
|
|
|
126
118
|
}
|
|
127
119
|
});
|
|
128
120
|
|
|
129
|
-
if (cellType) {
|
|
130
|
-
classNames.push(getClassName(`bpk-calendar-date--colored`));
|
|
131
|
-
classNames.push(getClassName(`bpk-calendar-date--colored-${cellType}`));
|
|
132
|
-
}
|
|
133
|
-
|
|
134
121
|
if (isFocused) {
|
|
135
122
|
classNames.push(getClassName('bpk-calendar-date--focused'));
|
|
136
123
|
}
|
|
@@ -183,7 +170,6 @@ export const propTypes = {
|
|
|
183
170
|
// Required
|
|
184
171
|
date: PropTypes.instanceOf(Date).isRequired,
|
|
185
172
|
// Optional
|
|
186
|
-
cellType: PropTypes.oneOf(Object.keys(CELL_TYPES)),
|
|
187
173
|
className: PropTypes.string,
|
|
188
174
|
isBlocked: PropTypes.bool,
|
|
189
175
|
isFocused: PropTypes.bool,
|
|
@@ -203,7 +189,6 @@ BpkCalendarDate.propTypes = { ...propTypes };
|
|
|
203
189
|
|
|
204
190
|
export const defaultProps = {
|
|
205
191
|
className: null,
|
|
206
|
-
cellType: null,
|
|
207
192
|
isBlocked: false,
|
|
208
193
|
isFocused: false,
|
|
209
194
|
isKeyboardFocusable: true,
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
@import '~bpk-mixins/index';
|
|
19
|
+
@import '~bpk-mixins/index.scss';
|
|
20
20
|
|
|
21
21
|
$bpk-spacing-v2: true;
|
|
22
22
|
|
|
@@ -51,26 +51,6 @@ $bpk-spacing-v2: true;
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
&--colored {
|
|
55
|
-
color: $bpk-color-white;
|
|
56
|
-
|
|
57
|
-
&-default {
|
|
58
|
-
background-color: $bpk-color-sky-gray-tint-02;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&-positive {
|
|
62
|
-
background-color: $bpk-color-monteverde;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&-neutral {
|
|
66
|
-
background-color: $bpk-color-erfoud;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&-negative {
|
|
70
|
-
background-color: $bpk-color-panjin;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
54
|
&:not(.bpk-calendar-date--selected):active {
|
|
75
55
|
background-color: $bpk-calendar-day-active-background-color;
|
|
76
56
|
|
|
@@ -89,11 +69,6 @@ $bpk-spacing-v2: true;
|
|
|
89
69
|
&--selected {
|
|
90
70
|
cursor: default;
|
|
91
71
|
|
|
92
|
-
@include bpk-themeable-property(
|
|
93
|
-
background-color,
|
|
94
|
-
--bpk-calendar-date-selected-background-color,
|
|
95
|
-
$bpk-calendar-day-selected-background-color
|
|
96
|
-
);
|
|
97
72
|
@include bpk-themeable-property(
|
|
98
73
|
color,
|
|
99
74
|
--bpk-calendar-date-text-selected-color,
|
|
@@ -102,44 +77,36 @@ $bpk-spacing-v2: true;
|
|
|
102
77
|
}
|
|
103
78
|
|
|
104
79
|
&--middle {
|
|
105
|
-
background-color: $bpk-
|
|
106
|
-
color: $bpk-
|
|
80
|
+
background-color: $bpk-surface-highlight-day;
|
|
81
|
+
color: $bpk-text-primary-day;
|
|
107
82
|
}
|
|
108
83
|
|
|
109
84
|
&--single {
|
|
110
|
-
background-color: $bpk-
|
|
85
|
+
background-color: $bpk-core-accent-day;
|
|
111
86
|
}
|
|
112
87
|
|
|
113
88
|
&--start {
|
|
114
|
-
background-color: $bpk-
|
|
89
|
+
background-color: $bpk-core-accent-day;
|
|
115
90
|
}
|
|
116
91
|
|
|
117
92
|
&--end {
|
|
118
|
-
background-color: $bpk-
|
|
93
|
+
background-color: $bpk-core-accent-day;
|
|
119
94
|
}
|
|
120
95
|
|
|
121
96
|
&--focused:not(:disabled):not(.bpk-calendar-date--selected) {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
inset;
|
|
130
|
-
|
|
131
|
-
@include bpk-themeable-property(
|
|
132
|
-
color,
|
|
133
|
-
--bpk-calendar-date-text-focus-color,
|
|
134
|
-
$bpk-calendar-day-focused-color
|
|
135
|
-
);
|
|
136
|
-
}
|
|
97
|
+
box-shadow: 0 0 0 2px $bpk-calendar-day-focused-border-color inset;
|
|
98
|
+
box-shadow: 0 0 0 2px
|
|
99
|
+
var(
|
|
100
|
+
--bpk-calendar-date-focused-border-color,
|
|
101
|
+
$bpk-calendar-day-focused-border-color
|
|
102
|
+
)
|
|
103
|
+
inset;
|
|
137
104
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
105
|
+
@include bpk-themeable-property(
|
|
106
|
+
color,
|
|
107
|
+
--bpk-calendar-date-text-focus-color,
|
|
108
|
+
$bpk-calendar-day-focused-color
|
|
109
|
+
);
|
|
143
110
|
}
|
|
144
111
|
|
|
145
112
|
&:disabled,
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
@import '~bpk-mixins/index';
|
|
20
|
-
@import 'variables';
|
|
19
|
+
@import '~bpk-mixins/index.scss';
|
|
20
|
+
@import 'variables.scss';
|
|
21
21
|
|
|
22
22
|
.bpk-calendar-grid {
|
|
23
23
|
width: 100%;
|
|
@@ -40,23 +40,24 @@
|
|
|
40
40
|
&--start {
|
|
41
41
|
background-image: linear-gradient(
|
|
42
42
|
to right,
|
|
43
|
-
$bpk-
|
|
44
|
-
$bpk-
|
|
43
|
+
$bpk-surface-default-day 50%,
|
|
44
|
+
$bpk-surface-highlight-day 50%
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
&--middle {
|
|
49
|
-
background-color: $bpk-
|
|
49
|
+
background-color: $bpk-surface-highlight-day;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
&--end {
|
|
53
53
|
background-image: linear-gradient(
|
|
54
54
|
to left,
|
|
55
|
-
$bpk-
|
|
56
|
-
$bpk-
|
|
55
|
+
$bpk-surface-default-day 50%,
|
|
56
|
+
$bpk-surface-highlight-day 50%
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
+
|
|
60
61
|
&__week {
|
|
61
62
|
display: flex;
|
|
62
63
|
padding-top: bpk-spacing-lg();
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
@import '~bpk-mixins/index';
|
|
20
|
-
@import 'variables';
|
|
19
|
+
@import '~bpk-mixins/index.scss';
|
|
20
|
+
@import 'variables.scss';
|
|
21
21
|
|
|
22
22
|
.bpk-calendar-nav {
|
|
23
23
|
display: table;
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.bpk-calendar-nav__icon {
|
|
70
|
-
fill:
|
|
70
|
+
fill: currentcolor;
|
|
71
71
|
|
|
72
72
|
@include bpk-icon--rtl-support;
|
|
73
73
|
}
|
|
@@ -16,9 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
@import '~bpk-mixins/index';
|
|
19
|
+
@import '~bpk-mixins/index.scss';
|
|
20
20
|
|
|
21
|
-
$shadow-bottom: 0 1px 0 0 $bpk-
|
|
22
|
-
$shadow-left: -1px 0 0 0 $bpk-color-sky-gray-tint-06; /* stylelint-disable-line unit-disallowed-list */
|
|
23
|
-
$shadow-right: 1px 0 0 0 $bpk-color-sky-gray-tint-06; /* stylelint-disable-line unit-disallowed-list */
|
|
21
|
+
$shadow-bottom: 0 1px 0 0 $bpk-line-day; /* stylelint-disable-line unit-disallowed-list */
|
|
24
22
|
$calendar-width: 7 * ($bpk-calendar-day-size + (2 * $bpk-calendar-day-spacing));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-card",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.4",
|
|
4
4
|
"description": "Backpack card component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-mixins": "^31.
|
|
18
|
-
"bpk-react-utils": "^7.0.
|
|
17
|
+
"bpk-mixins": "^31.6.3",
|
|
18
|
+
"bpk-react-utils": "^7.0.1",
|
|
19
19
|
"prop-types": "^15.7.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"bpk-component-link": "^4.0.
|
|
23
|
-
"bpk-component-text": "^8.0.
|
|
22
|
+
"bpk-component-link": "^4.0.5",
|
|
23
|
+
"bpk-component-text": "^8.0.5"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": "^17.0.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-checkbox",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.5",
|
|
4
4
|
"description": "Backpack checkbox component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-component-icon": "^10.0.
|
|
18
|
-
"bpk-mixins": "^31.
|
|
19
|
-
"bpk-react-utils": "^7.0.
|
|
17
|
+
"bpk-component-icon": "^10.0.5",
|
|
18
|
+
"bpk-mixins": "^31.6.3",
|
|
19
|
+
"bpk-react-utils": "^7.0.1",
|
|
20
20
|
"prop-types": "^15.7.2"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": "^17.0.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@skyscanner/bpk-foundations-web": "^9.
|
|
27
|
-
"bpk-storybook-utils": "^2.0.
|
|
26
|
+
"@skyscanner/bpk-foundations-web": "^9.3.0",
|
|
27
|
+
"bpk-storybook-utils": "^2.0.5"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-chip",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.5",
|
|
4
4
|
"description": "Backpack chip component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-component-icon": "^10.0.
|
|
18
|
-
"bpk-mixins": "^31.
|
|
19
|
-
"bpk-react-utils": "^7.0.
|
|
17
|
+
"bpk-component-icon": "^10.0.5",
|
|
18
|
+
"bpk-mixins": "^31.6.3",
|
|
19
|
+
"bpk-react-utils": "^7.0.1",
|
|
20
20
|
"prop-types": "^15.7.2"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": "^17.0.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"bpk-component-aria-live": "^3.
|
|
27
|
-
"bpk-component-text": "^8.0.
|
|
26
|
+
"bpk-component-aria-live": "^3.1.2",
|
|
27
|
+
"bpk-component-text": "^8.0.5"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-close-button",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"description": "Backpack close button component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-component-icon": "^10.0.
|
|
18
|
-
"bpk-mixins": "^31.
|
|
19
|
-
"bpk-react-utils": "^7.0.
|
|
17
|
+
"bpk-component-icon": "^10.0.5",
|
|
18
|
+
"bpk-mixins": "^31.6.3",
|
|
19
|
+
"bpk-react-utils": "^7.0.1",
|
|
20
20
|
"prop-types": "^15.7.2"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"bpk-storybook-utils": "^2.0.
|
|
23
|
+
"bpk-storybook-utils": "^2.0.5"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": "^17.0.2"
|
|
@@ -16,13 +16,14 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
@import '~bpk-mixins';
|
|
19
|
+
@import '~bpk-mixins/index.scss';
|
|
20
20
|
|
|
21
21
|
$button-padding: $bpk-spacing-xs / 2;
|
|
22
22
|
|
|
23
23
|
.bpk-close-button {
|
|
24
24
|
width: $bpk-spacing-base;
|
|
25
25
|
height: $bpk-spacing-base;
|
|
26
|
+
|
|
26
27
|
// The margin here is used to ensure that the icon is aligned to
|
|
27
28
|
// the leading or trailing edge of its parent container
|
|
28
29
|
margin-right: -#{$button-padding};
|
|
@@ -46,6 +47,6 @@ $button-padding: $bpk-spacing-xs / 2;
|
|
|
46
47
|
|
|
47
48
|
&__icon {
|
|
48
49
|
vertical-align: -#{$button-padding};
|
|
49
|
-
fill:
|
|
50
|
+
fill: currentcolor;
|
|
50
51
|
}
|
|
51
52
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-code",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"description": "Backpack code component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-mixins": "^31.
|
|
18
|
-
"bpk-react-utils": "^7.0.
|
|
17
|
+
"bpk-mixins": "^31.6.3",
|
|
18
|
+
"bpk-react-utils": "^7.0.1",
|
|
19
19
|
"prop-types": "^15.7.2"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-content-cards",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Backpack content-cards component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
9
|
},
|
|
10
10
|
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
-
"main": "index.
|
|
11
|
+
"main": "index.js",
|
|
12
12
|
"publishConfig": {
|
|
13
13
|
"registry": "https://registry.npmjs.org/"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"bpk-component-text": "^8.0.
|
|
17
|
-
"bpk-mixins": "^31.
|
|
18
|
-
"bpk-react-utils": "^7.0.
|
|
16
|
+
"bpk-component-text": "^8.0.5",
|
|
17
|
+
"bpk-mixins": "^31.6.3",
|
|
18
|
+
"bpk-react-utils": "^7.0.1"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": "^17.0.2"
|