@skyscanner/backpack-web 11.0.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 +2 -2
- package/bpk-component-accordion/package.json +6 -6
- 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/package.json +7 -7
- package/bpk-component-aria-live/src/BpkAriaLive.module.scss +1 -1
- package/bpk-component-autosuggest/package.json +4 -4
- package/bpk-component-autosuggest/src/BpkAutosuggest.module.scss +2 -2
- package/bpk-component-badge/package.json +4 -4
- package/bpk-component-badge/src/BpkBadge.module.scss +1 -1
- package/bpk-component-banner-alert/package.json +8 -8
- 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 +7 -7
- 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 +2 -2
- package/bpk-component-blockquote/src/BpkBlockquote.module.scss +1 -1
- package/bpk-component-breadcrumb/package.json +5 -5
- 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 +2 -2
- package/bpk-component-button/package.json +2 -2
- 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/package.json +8 -8
- package/bpk-component-calendar/src/BpkCalendar.module.scss +2 -2
- package/bpk-component-calendar/src/BpkCalendarDate.module.scss +1 -1
- package/bpk-component-calendar/src/BpkCalendarGrid.module.scss +3 -2
- 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 +1 -1
- package/bpk-component-card/package.json +4 -4
- package/bpk-component-card/src/BpkCard.module.scss +1 -1
- package/bpk-component-checkbox/package.json +4 -4
- package/bpk-component-checkbox/src/BpkCheckbox.module.scss +1 -1
- package/bpk-component-chip/package.json +5 -5
- package/bpk-component-chip/src/BpkSelectableChip.module.scss +1 -1
- package/bpk-component-close-button/package.json +4 -4
- package/bpk-component-close-button/src/BpkCloseButton.module.scss +3 -2
- package/bpk-component-code/package.json +2 -2
- 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/package.json +3 -3
- package/bpk-component-content-cards/src/BpkContentCard.module.scss +1 -1
- package/bpk-component-content-cards/src/BpkContentCards.js +3 -3
- package/bpk-component-content-cards/src/BpkContentCards.module.scss +1 -1
- package/bpk-component-content-container/package.json +2 -2
- package/bpk-component-content-container/src/BpkContentContainer.module.scss +1 -1
- package/bpk-component-datatable/package.json +3 -3
- package/bpk-component-datatable/src/BpkDataTable.module.scss +1 -2
- package/bpk-component-datatable/src/BpkDataTableHeader.module.scss +1 -2
- package/bpk-component-datepicker/package.json +8 -8
- package/bpk-component-datepicker/src/BpkDatepicker.module.scss +1 -1
- package/bpk-component-description-list/package.json +2 -2
- package/bpk-component-description-list/src/BpkDescriptionList.module.scss +1 -1
- package/bpk-component-dialog/package.json +8 -8
- 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 +8 -8
- 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 +12 -12
- package/bpk-component-fieldset/src/BpkFieldset.module.scss +1 -1
- package/bpk-component-flare/package.json +4 -4
- 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/package.json +5 -5
- package/bpk-component-floating-notification/src/BpkFloatingNotification.module.scss +1 -1
- package/bpk-component-form-validation/package.json +9 -9
- package/bpk-component-form-validation/src/BpkFormValidation.module.scss +1 -1
- package/bpk-component-graphic-promotion/package.json +4 -4
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.scss +1 -1
- package/bpk-component-grid/package.json +2 -2
- 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 +3 -3
- package/bpk-component-grid-toggle/src/BpkGridToggle.module.scss +1 -1
- package/bpk-component-horizontal-nav/package.json +5 -5
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav.module.scss +1 -1
- package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.module.scss +2 -2
- package/bpk-component-icon/README.md +1 -1
- package/bpk-component-icon/package.json +5 -5
- 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 +5 -5
- 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 +6 -6
- package/bpk-component-infinite-scroll/src/withInfiniteScroll.module.scss +1 -1
- package/bpk-component-input/package.json +6 -6
- 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 +2 -2
- package/bpk-component-label/src/BpkLabel.module.scss +1 -1
- package/bpk-component-link/package.json +3 -3
- package/bpk-component-link/src/BpkLink.module.scss +1 -1
- package/bpk-component-list/package.json +2 -2
- package/bpk-component-list/src/BpkList.module.scss +1 -1
- package/bpk-component-loading-button/package.json +6 -6
- package/bpk-component-loading-button/src/BpkLoadingButton.module.scss +1 -1
- package/bpk-component-map/package.json +6 -6
- 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 +2 -2
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.module.scss +3 -1
- package/bpk-component-modal/package.json +9 -9
- 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 +7 -7
- package/bpk-component-navigation-bar/src/BpkNavigationBar.module.scss +2 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.module.scss +1 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.module.scss +1 -1
- package/bpk-component-nudger/package.json +6 -6
- package/bpk-component-nudger/src/BpkNudger.module.scss +1 -1
- package/bpk-component-overlay/package.json +4 -4
- package/bpk-component-overlay/src/BpkOverlay.module.scss +1 -1
- package/bpk-component-pagination/package.json +4 -4
- 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 +2 -2
- package/bpk-component-panel/src/BpkPanel.module.scss +1 -1
- package/bpk-component-phone-input/package.json +8 -8
- package/bpk-component-phone-input/src/BpkPhoneInput.module.scss +1 -1
- package/bpk-component-popover/package.json +8 -8
- package/bpk-component-popover/src/BpkPopover.module.scss +1 -2
- package/bpk-component-price/package.json +3 -3
- package/bpk-component-price/src/BpkPrice.module.scss +1 -1
- package/bpk-component-progress/package.json +4 -4
- package/bpk-component-progress/src/BpkProgress.module.scss +1 -1
- package/bpk-component-radio/package.json +3 -3
- package/bpk-component-radio/src/BpkRadio.module.scss +1 -2
- package/bpk-component-rating/package.json +3 -3
- 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 +5 -5
- 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 +5 -5
- 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 +3 -3
- package/bpk-component-select/src/BpkSelect.module.scss +1 -1
- package/bpk-component-skip-link/package.json +2 -2
- package/bpk-component-skip-link/src/BpkSkipLink.module.scss +2 -1
- package/bpk-component-slider/package.json +3 -3
- package/bpk-component-slider/src/BpkSlider.module.scss +1 -2
- package/bpk-component-spinner/package.json +2 -2
- package/bpk-component-spinner/src/BpkSpinner.module.scss +1 -1
- package/bpk-component-split-input/package.json +3 -3
- 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 +5 -5
- 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 +2 -2
- 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 +2 -2
- package/bpk-component-table/src/BpkTable.module.scss +1 -1
- package/bpk-component-text/package.json +2 -2
- package/bpk-component-text/src/BpkText.module.scss +1 -1
- package/bpk-component-textarea/package.json +4 -4
- package/bpk-component-textarea/src/BpkTextarea.module.scss +1 -1
- package/bpk-component-theme-toggle/package.json +4 -4
- package/bpk-component-theme-toggle/src/BpkThemeToggle.module.scss +1 -1
- package/bpk-component-ticket/package.json +4 -4
- package/bpk-component-ticket/src/BpkTicket.module.scss +1 -1
- package/bpk-component-tooltip/package.json +3 -3
- 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 +2 -2
- package/bpk-scrim-utils/src/bpk-scrim-content.module.scss +1 -1
- package/bpk-scrim-utils/src/bpk-scrim.module.scss +1 -1
- package/package.json +1 -1
|
@@ -16,10 +16,9 @@
|
|
|
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
|
-
|
|
23
22
|
$bpk-radio-circle-size: $bpk-one-pixel-rem * 8;
|
|
24
23
|
$bpk-radio-size: bpk-spacing-lg() - ($bpk-one-pixel-rem * 4);
|
|
25
24
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-rating",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.5",
|
|
4
4
|
"description": "Backpack rating component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"bpk-mixins": "^31.6.3",
|
|
18
|
-
"bpk-react-utils": "^7.0.
|
|
18
|
+
"bpk-react-utils": "^7.0.1",
|
|
19
19
|
"lodash.clamp": "^4.0.3",
|
|
20
20
|
"prop-types": "^15.5.8"
|
|
21
21
|
},
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@skyscanner/bpk-foundations-web": "^9.3.0",
|
|
27
|
-
"bpk-component-text": "^8.0.
|
|
27
|
+
"bpk-component-text": "^8.0.5"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-rtl-toggle",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"description": "Backpack RTL toggle 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-component-link": "^4.0.
|
|
18
|
-
"bpk-react-utils": "^7.0.
|
|
17
|
+
"bpk-component-link": "^4.0.5",
|
|
18
|
+
"bpk-react-utils": "^7.0.1",
|
|
19
19
|
"prop-types": "^15.7.2"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-scrollable-calendar",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.3",
|
|
4
4
|
"description": "Backpack scrollable calendar component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
"gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@skyscanner/bpk-foundations-web": "^9.3.0",
|
|
18
|
-
"bpk-component-calendar": "^13.0.
|
|
19
|
-
"bpk-component-text": "^8.0.
|
|
18
|
+
"bpk-component-calendar": "^13.0.2",
|
|
19
|
+
"bpk-component-text": "^8.0.5",
|
|
20
20
|
"bpk-mixins": "^31.6.3",
|
|
21
|
-
"bpk-react-utils": "^7.0.
|
|
21
|
+
"bpk-react-utils": "^7.0.1",
|
|
22
22
|
"date-fns": "^2.21.1",
|
|
23
23
|
"prop-types": "^15.5.8",
|
|
24
24
|
"react-window": "^1.8.7"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"bpk-storybook-utils": "^2.0.
|
|
27
|
+
"bpk-storybook-utils": "^2.0.5"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": "^17.0.2"
|
|
@@ -16,10 +16,9 @@
|
|
|
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
|
-
|
|
23
22
|
$calendar-height: 7 * ($bpk-calendar-day-size + bpk-spacing-lg());
|
|
24
23
|
|
|
25
24
|
.bpk-scrollable-calendar-grid-list {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-section-list",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"description": "Backpack section list component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@skyscanner/bpk-foundations-web": "^9.3.0",
|
|
18
|
-
"bpk-component-icon": "^10.0.
|
|
19
|
-
"bpk-component-text": "^8.0.
|
|
18
|
+
"bpk-component-icon": "^10.0.5",
|
|
19
|
+
"bpk-component-text": "^8.0.5",
|
|
20
20
|
"bpk-mixins": "^31.6.3",
|
|
21
|
-
"bpk-react-utils": "^7.0.
|
|
21
|
+
"bpk-react-utils": "^7.0.1",
|
|
22
22
|
"prop-types": "^15.7.2"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"bpk-storybook-utils": "^2.0.
|
|
25
|
+
"bpk-storybook-utils": "^2.0.5"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": "^17.0.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-select",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.5",
|
|
4
4
|
"description": "Backpack select component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"bpk-mixins": "^31.6.3",
|
|
18
|
-
"bpk-react-utils": "^7.0.
|
|
18
|
+
"bpk-react-utils": "^7.0.1",
|
|
19
19
|
"prop-types": "^15.7.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"bpk-storybook-utils": "^2.0.
|
|
22
|
+
"bpk-storybook-utils": "^2.0.5"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": "^17.0.2"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
// Use of stylelint-disable-next-line declaration-no-important in this file is to ensure that
|
|
20
20
|
// the correct styles are applied for Internet Explorer 11 and are not overriden by system styles.
|
|
21
21
|
|
|
22
|
-
@import '~bpk-mixins/index';
|
|
22
|
+
@import '~bpk-mixins/index.scss';
|
|
23
23
|
|
|
24
24
|
$bpk-spacing-v2: true;
|
|
25
25
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-skip-link",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"description": "Backpack skip-link component.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"bpk-mixins": "^31.6.3",
|
|
17
|
-
"bpk-react-utils": "^7.0.
|
|
17
|
+
"bpk-react-utils": "^7.0.1",
|
|
18
18
|
"prop-types": "^15.5.8"
|
|
19
19
|
},
|
|
20
20
|
"publishConfig": {
|
|
@@ -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-skip-link {
|
|
22
22
|
display: inline-block;
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
opacity: 0;
|
|
31
31
|
overflow: hidden;
|
|
32
32
|
pointer-events: none;
|
|
33
|
+
|
|
33
34
|
// We want the skiplink to remain visible for a short period of time after it is blurred so that
|
|
34
35
|
// a user tabbing quickly has a chance to see that it appeared
|
|
35
36
|
transition-delay: $bpk-duration-sm;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-slider",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"description": "Backpack slider component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@skyscanner/bpk-foundations-web": "^9.3.0",
|
|
18
18
|
"bpk-mixins": "^31.6.3",
|
|
19
|
-
"bpk-react-utils": "^7.0.
|
|
19
|
+
"bpk-react-utils": "^7.0.1",
|
|
20
20
|
"prop-types": "^15.7.2",
|
|
21
21
|
"react-slider": "^1.3.1"
|
|
22
22
|
},
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"react": "^17.0.2"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"bpk-component-rtl-toggle": "^4.0.
|
|
27
|
+
"bpk-component-rtl-toggle": "^4.0.5"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -16,10 +16,9 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
@import '~bpk-mixins';
|
|
19
|
+
@import '~bpk-mixins/index.scss';
|
|
20
20
|
|
|
21
21
|
$bpk-spacing-v2: true;
|
|
22
|
-
|
|
23
22
|
$slider-control-inset-size: 22 * $bpk-one-pixel-rem;
|
|
24
23
|
$slider-large-control-inset-size: bpk-spacing-sm() * 7;
|
|
25
24
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-spinner",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.5",
|
|
4
4
|
"description": "Backpack spinner components.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@skyscanner/bpk-svgs": "^14.4.3",
|
|
18
18
|
"bpk-mixins": "^31.6.3",
|
|
19
|
-
"bpk-react-utils": "^7.0.
|
|
19
|
+
"bpk-react-utils": "^7.0.1",
|
|
20
20
|
"prop-types": "^15.7.2"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-split-input",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Backpack split-input component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"registry": "https://registry.npmjs.org/"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"bpk-component-input": "^7.0.
|
|
16
|
+
"bpk-component-input": "^7.0.5",
|
|
17
17
|
"bpk-mixins": "^31.6.3",
|
|
18
|
-
"bpk-react-utils": "^7.0.
|
|
18
|
+
"bpk-react-utils": "^7.0.1",
|
|
19
19
|
"prop-types": "^15.5.8"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-star-rating",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"description": "Backpack rating star 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.
|
|
17
|
+
"bpk-component-icon": "^10.0.5",
|
|
18
18
|
"bpk-mixins": "^31.6.3",
|
|
19
|
-
"bpk-react-utils": "^7.0.
|
|
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-table": "^4.0.
|
|
27
|
-
"bpk-storybook-utils": "^2.0.
|
|
26
|
+
"bpk-component-table": "^4.0.5",
|
|
27
|
+
"bpk-storybook-utils": "^2.0.5"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
@import '~bpk-mixins';
|
|
19
|
+
@import '~bpk-mixins/index.scss';
|
|
20
20
|
|
|
21
|
-
@keyframes
|
|
21
|
+
@keyframes star-dust {
|
|
22
22
|
0% {
|
|
23
23
|
transform: scale(1);
|
|
24
24
|
}
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
|
|
61
61
|
&--selected {
|
|
62
62
|
animation-duration: 300ms;
|
|
63
|
-
animation-name:
|
|
63
|
+
animation-name: star-dust;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -28,7 +28,7 @@ export default () => (
|
|
|
28
28
|
| --------- | -------- | -------- | ------------- |
|
|
29
29
|
| label | Node | true | - |
|
|
30
30
|
| className | string | false | null |
|
|
31
|
-
|
|
|
31
|
+
| small | boolean | false | false |
|
|
32
32
|
|
|
33
33
|
This component uses a hidden [`<input type="checkbox" />`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox), so it supports all the same properties as it (for example `checked`).
|
|
34
34
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-switch",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Backpack switch component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"bpk-mixins": "^31.6.3",
|
|
18
|
-
"bpk-react-utils": "^7.0.
|
|
18
|
+
"bpk-react-utils": "^7.0.1",
|
|
19
19
|
"prop-types": "^15.5.8"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
import PropTypes from 'prop-types';
|
|
21
21
|
import React, { type Node } from 'react';
|
|
22
22
|
|
|
23
|
-
import { cssModules } from '../../bpk-react-utils';
|
|
23
|
+
import { cssModules, deprecated } from '../../bpk-react-utils';
|
|
24
24
|
|
|
25
25
|
import STYLES from './BpkSwitch.module.scss';
|
|
26
26
|
|
|
@@ -33,11 +33,6 @@ export const SWITCH_TYPES = {
|
|
|
33
33
|
|
|
34
34
|
export type SwitchTypeValue = $Values<typeof SWITCH_TYPES>;
|
|
35
35
|
|
|
36
|
-
const switchTypeClassNames = {
|
|
37
|
-
[SWITCH_TYPES.primary]: getClassName('bpk-switch__switch--primary'),
|
|
38
|
-
[SWITCH_TYPES.event]: getClassName('bpk-switch__switch--event'),
|
|
39
|
-
};
|
|
40
|
-
|
|
41
36
|
export type Props = {
|
|
42
37
|
label: Node,
|
|
43
38
|
type: SwitchTypeValue,
|
|
@@ -45,12 +40,13 @@ export type Props = {
|
|
|
45
40
|
};
|
|
46
41
|
|
|
47
42
|
const BpkSwitch = (props: Props) => {
|
|
48
|
-
const { className, label, type, ...rest } = props;
|
|
43
|
+
const { className, label, small, type, ...rest } = props;
|
|
49
44
|
|
|
50
|
-
const switchClassNames =
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
45
|
+
const switchClassNames = getClassName(
|
|
46
|
+
'bpk-switch__switch',
|
|
47
|
+
`bpk-switch__switch--${type}`,
|
|
48
|
+
small && 'bpk-switch__switch--small',
|
|
49
|
+
);
|
|
54
50
|
|
|
55
51
|
return (
|
|
56
52
|
<label className={getClassName('bpk-switch', className)}>
|
|
@@ -64,20 +60,25 @@ const BpkSwitch = (props: Props) => {
|
|
|
64
60
|
<span aria-hidden className={getClassName('bpk-switch__label')}>
|
|
65
61
|
{label}
|
|
66
62
|
</span>
|
|
67
|
-
<span aria-hidden className={switchClassNames
|
|
63
|
+
<span aria-hidden className={switchClassNames} />
|
|
68
64
|
</label>
|
|
69
65
|
);
|
|
70
66
|
};
|
|
71
67
|
|
|
72
68
|
BpkSwitch.propTypes = {
|
|
73
69
|
label: PropTypes.node.isRequired,
|
|
74
|
-
type:
|
|
70
|
+
type: deprecated(
|
|
71
|
+
PropTypes.oneOf([SWITCH_TYPES.primary, SWITCH_TYPES.event]),
|
|
72
|
+
'This property is deprecated and only one type supported, please remove your usage of this property',
|
|
73
|
+
),
|
|
75
74
|
className: PropTypes.string,
|
|
75
|
+
small: PropTypes.boolean,
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
BpkSwitch.defaultProps = {
|
|
79
79
|
className: null,
|
|
80
80
|
type: SWITCH_TYPES.primary,
|
|
81
|
+
small: false,
|
|
81
82
|
};
|
|
82
83
|
|
|
83
84
|
export default BpkSwitch;
|
|
@@ -16,22 +16,17 @@
|
|
|
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
|
-
|
|
23
|
-
$primary-on-color: $bpk-color-sky-blue;
|
|
24
|
-
$event-on-color: $bpk-color-abisko;
|
|
25
|
-
$off-color: $bpk-color-sky-gray-tint-06;
|
|
26
|
-
$handle-color: $bpk-color-white;
|
|
27
|
-
|
|
28
22
|
$height: bpk-spacing-xl();
|
|
29
23
|
$width: bpk-spacing-sm() * 13;
|
|
30
24
|
$border-width: $bpk-one-pixel-rem * 2;
|
|
31
25
|
|
|
32
26
|
.bpk-switch {
|
|
33
27
|
position: relative;
|
|
34
|
-
display:
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
35
30
|
|
|
36
31
|
// Checkbox is invisible so the switch element can be the visual element.
|
|
37
32
|
&__checkbox {
|
|
@@ -43,12 +38,13 @@ $border-width: $bpk-one-pixel-rem * 2;
|
|
|
43
38
|
@include bpk-themeable-property(
|
|
44
39
|
background,
|
|
45
40
|
--bpk-switch-checked-color,
|
|
46
|
-
$
|
|
41
|
+
$bpk-core-accent-day
|
|
47
42
|
);
|
|
48
43
|
}
|
|
49
44
|
|
|
45
|
+
// This is now deprecated and will be removed in the future.
|
|
50
46
|
&--event {
|
|
51
|
-
background: $
|
|
47
|
+
background: $bpk-color-abisko;
|
|
52
48
|
}
|
|
53
49
|
|
|
54
50
|
&::before {
|
|
@@ -71,7 +67,7 @@ $border-width: $bpk-one-pixel-rem * 2;
|
|
|
71
67
|
height: $height;
|
|
72
68
|
transition: background $bpk-duration-sm linear;
|
|
73
69
|
border-radius: $height / 2;
|
|
74
|
-
background: $
|
|
70
|
+
background: $bpk-surface-highlight-day;
|
|
75
71
|
cursor: pointer;
|
|
76
72
|
|
|
77
73
|
// The 'handle'.
|
|
@@ -85,9 +81,19 @@ $border-width: $bpk-one-pixel-rem * 2;
|
|
|
85
81
|
height: $height - ($border-width * 2);
|
|
86
82
|
transition: left $bpk-duration-sm ease-out;
|
|
87
83
|
border-radius: 50%;
|
|
88
|
-
background: $
|
|
84
|
+
background: $bpk-text-on-dark-day;
|
|
89
85
|
|
|
90
86
|
@include bpk-box-shadow-sm;
|
|
91
87
|
}
|
|
88
|
+
|
|
89
|
+
&--small {
|
|
90
|
+
width: bpk-spacing-xxl();
|
|
91
|
+
height: bpk-spacing-sm() * 5;
|
|
92
|
+
|
|
93
|
+
&::before {
|
|
94
|
+
width: bpk-spacing-base();
|
|
95
|
+
height: bpk-spacing-base();
|
|
96
|
+
}
|
|
97
|
+
}
|
|
92
98
|
}
|
|
93
99
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-table",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"description": "Backpack table component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"bpk-mixins": "^31.6.3",
|
|
18
|
-
"bpk-react-utils": "^7.0.
|
|
18
|
+
"bpk-react-utils": "^7.0.1",
|
|
19
19
|
"prop-types": "^15.7.2"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-text",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.5",
|
|
4
4
|
"description": "Backpack text component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"bpk-mixins": "^31.6.3",
|
|
18
|
-
"bpk-react-utils": "^7.0.
|
|
18
|
+
"bpk-react-utils": "^7.0.1",
|
|
19
19
|
"prop-types": "^15.7.2"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-textarea",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.5",
|
|
4
4
|
"description": "Backpack textarea component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"bpk-mixins": "^31.6.3",
|
|
18
|
-
"bpk-react-utils": "^7.0.
|
|
18
|
+
"bpk-react-utils": "^7.0.1",
|
|
19
19
|
"prop-types": "^15.7.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"bpk-component-label": "^6.0.
|
|
23
|
-
"bpk-storybook-utils": "^2.0.
|
|
22
|
+
"bpk-component-label": "^6.0.5",
|
|
23
|
+
"bpk-storybook-utils": "^2.0.5"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": "^17.0.2"
|