@skyscanner/backpack-web 42.27.3 → 43.0.0-dev-v28222480725.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/bpk-component-accordion/src/BpkAccordionItem.d.ts +1 -1
- package/bpk-component-accordion/src/withAccordionItemState.d.ts +2 -7
- package/bpk-component-accordion/src/withAccordionItemState.js +4 -6
- package/bpk-component-accordion/src/withSingleItemAccordionState.d.ts +1 -1
- package/bpk-component-aria-live/src/BpkAriaLive.d.ts +1 -1
- package/bpk-component-aria-live/src/BpkAriaLive.story-helpers.d.ts +2 -2
- package/bpk-component-autosuggest/src/BpkAutosuggestV2/BpkAutosuggest.d.ts +4 -4
- package/bpk-component-badge/src/BpkBadge.module.css +1 -1
- package/bpk-component-banner-alert/src/AnimateAndFade.d.ts +4 -7
- package/bpk-component-banner-alert/src/AnimateAndFade.js +14 -10
- package/bpk-component-banner-alert/src/withBannerAlertState.d.ts +0 -10
- package/bpk-component-banner-alert/src/withBannerAlertState.js +3 -13
- package/bpk-component-barchart/src/BpkBarchart.js +24 -41
- package/bpk-component-barchart/src/BpkBarchartBar.js +7 -16
- package/bpk-component-barchart/src/BpkBarchartBars.js +6 -14
- package/bpk-component-barchart/src/BpkChartAxis.js +5 -12
- package/bpk-component-barchart/src/BpkChartDataTable.js +1 -4
- package/bpk-component-barchart/src/BpkChartGridLines.js +3 -8
- package/bpk-component-calendar/index.d.ts +2 -2
- package/bpk-component-calendar/index.js +2 -2
- package/bpk-component-calendar/src/BpkCalendarContainer.d.ts +3 -28
- package/bpk-component-calendar/src/BpkCalendarContainer.js +47 -34
- package/bpk-component-calendar/src/BpkCalendarDate.d.ts +0 -1
- package/bpk-component-calendar/src/BpkCalendarDate.js +32 -31
- package/bpk-component-calendar/src/BpkCalendarGrid.d.ts +13 -14
- package/bpk-component-calendar/src/BpkCalendarGrid.js +28 -37
- package/bpk-component-calendar/src/BpkCalendarGridHeader.d.ts +0 -4
- package/bpk-component-calendar/src/BpkCalendarGridHeader.js +2 -6
- package/bpk-component-calendar/src/BpkCalendarGridTransition.d.ts +0 -5
- package/bpk-component-calendar/src/BpkCalendarGridTransition.js +0 -5
- package/bpk-component-calendar/src/BpkCalendarWeek.d.ts +0 -1
- package/bpk-component-calendar/src/BpkCalendarWeek.js +19 -27
- package/bpk-component-calendar/src/custom-proptypes.d.ts +1 -1
- package/bpk-component-card-list/src/BpkCardList.js +0 -3
- package/bpk-component-card-list/src/BpkCardListRowRail/BpkCardListCarousel.js +1 -3
- package/bpk-component-card-list/src/BpkCardListRowRail/BpkCardListRowRailContainer.js +1 -14
- package/bpk-component-card-list/src/BpkCardListRowRail/utils.d.ts +1 -2
- package/bpk-component-card-list/src/BpkCardListRowRail/utils.js +0 -21
- package/bpk-component-card-list/src/common-types.d.ts +4 -7
- package/bpk-component-chatbot-input/src/hooks/useChatbotInput.d.ts +1 -1
- package/bpk-component-chatbot-input/src/hooks/useTextAreaAutoResize.d.ts +1 -1
- package/bpk-component-datepicker/src/BpkDatepicker.d.ts +6 -192
- package/bpk-component-datepicker/src/BpkDatepicker.js +47 -53
- package/bpk-component-dialog/src/BpkDialogInner.d.ts +0 -7
- package/bpk-component-drawer/src/BpkDrawerContent.d.ts +2 -2
- package/bpk-component-drawer/src/BpkDrawerContent.js +13 -1
- package/bpk-component-fieldset/src/BpkFieldset.d.ts +1 -1
- package/bpk-component-floating-notification/src/BpkFloatingNotification.js +4 -1
- package/bpk-component-grid-toggle/src/BpkGridToggle.js +9 -7
- package/bpk-component-image/src/BpkBackgroundImage.d.ts +1 -9
- package/bpk-component-image/src/BpkBackgroundImage.js +18 -18
- package/bpk-component-image/src/BpkImage.d.ts +1 -8
- package/bpk-component-image/src/BpkImage.js +10 -18
- package/bpk-component-image/src/withLazyLoading.d.ts +0 -4
- package/bpk-component-image/src/withLazyLoading.js +2 -6
- package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +6 -8
- package/bpk-component-info-banner/src/AnimateAndFade.d.ts +4 -7
- package/bpk-component-info-banner/src/AnimateAndFade.js +14 -10
- package/bpk-component-info-banner/src/withBannerAlertState.d.ts +0 -10
- package/bpk-component-info-banner/src/withBannerAlertState.js +3 -13
- package/bpk-component-input/index.d.ts +2 -2
- package/bpk-component-input/index.js +2 -2
- package/bpk-component-input/src/BpkInput.d.ts +0 -13
- package/bpk-component-input/src/BpkInput.js +13 -12
- package/bpk-component-input/src/common-types.d.ts +0 -32
- package/bpk-component-input/src/common-types.js +1 -56
- package/bpk-component-input/src/withOpenEvents.d.ts +1 -12
- package/bpk-component-input/src/withOpenEvents.js +2 -14
- package/bpk-component-layout/src/types.d.ts +19 -35
- package/bpk-component-map/src/BpkBasicMapMarker.d.ts +1 -8
- package/bpk-component-map/src/BpkBasicMapMarker.js +0 -6
- package/bpk-component-map/src/BpkIconMarker.js +4 -10
- package/bpk-component-map/src/BpkIconMarkerBackground.js +3 -8
- package/bpk-component-map/src/BpkMap.js +14 -30
- package/bpk-component-map/src/withGoogleMapsScript.js +4 -8
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.d.ts +0 -1
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +1 -5
- package/bpk-component-modal/index.d.ts +1 -2
- package/bpk-component-modal/index.js +1 -3
- package/bpk-component-navigation-bar/src/BpkNavigationBar.d.ts +2 -2
- package/bpk-component-phone-input/src/BpkPhoneInput.js +6 -14
- package/bpk-component-popover/src/BpkPopover.d.ts +1 -1
- package/bpk-component-popover/src/BpkPopover.js +1 -1
- package/bpk-component-progress/src/BpkProgress.d.ts +0 -8
- package/bpk-component-progress/src/BpkProgress.js +10 -16
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar.d.ts +0 -14
- package/bpk-component-section-list/src/BpkSectionListItem.js +4 -10
- package/bpk-component-section-list/src/BpkSectionListSection.js +1 -4
- package/bpk-component-segmented-control/src/BpkSegmentedControl.d.ts +1 -1
- package/bpk-component-select/src/BpkSelect.d.ts +1 -1
- package/bpk-component-slider/src/BpkSlider.js +1 -1
- package/bpk-component-spinner/src/SpinnerLayout.story-helpers.d.ts +1 -7
- package/bpk-component-spinner/src/SpinnerLayout.story-helpers.js +0 -4
- package/bpk-component-split-input/src/BpkInputField.d.ts +2 -6
- package/bpk-component-split-input/src/BpkInputField.js +2 -6
- package/bpk-component-split-input/src/BpkSplitInput.d.ts +0 -6
- package/bpk-component-split-input/src/BpkSplitInput.js +7 -13
- package/bpk-component-star-rating/src/withInteractiveStarRatingState.d.ts +0 -3
- package/bpk-component-star-rating/src/withInteractiveStarRatingState.js +0 -3
- package/bpk-component-ticket/src/BpkTicket.js +6 -14
- package/bpk-mixins/_badges.scss +3 -3
- package/bpk-react-utils/index.d.ts +3 -1
- package/bpk-react-utils/src/BpkDialogWrapper/BpkDialogWrapper.js +1 -0
- package/bpk-react-utils/src/Portal.d.ts +10 -22
- package/bpk-react-utils/src/Portal.js +22 -19
- package/bpk-react-utils/src/TransitionInitialMount.d.ts +4 -2
- package/bpk-react-utils/src/TransitionInitialMount.js +51 -14
- package/bpk-scrim-utils/index.d.ts +0 -7
- package/bpk-scrim-utils/src/withScrim.d.ts +0 -7
- package/bpk-scrim-utils/src/withScrim.js +10 -15
- package/bpk-stylesheets/base.css +1 -1
- package/bpk-stylesheets/theme-backpack-dark.css +4 -0
- package/bpk-stylesheets/theme-backpack-light.css +7 -3
- package/package.json +3 -3
- package/bpk-component-modal/src/legacy-prop-types.js +0 -74
|
@@ -89,6 +89,8 @@
|
|
|
89
89
|
--bpk-private-chip-group-filter-colour-stroke-icon-off-on-dark: rgba(255, 255, 255, 0.2);
|
|
90
90
|
--bpk-private-chip-group-filter-dimensions-min-height: 2.25rem;
|
|
91
91
|
--bpk-private-chip-colour-bg-default-dismissible-hover: #054184;
|
|
92
|
+
--bpk-private-chip-colour-bg-default-hover: rgba(255, 255, 255, 0);
|
|
93
|
+
--bpk-private-chip-colour-bg-default-off: rgba(255, 255, 255, 0);
|
|
92
94
|
--bpk-private-chip-colour-bg-default-on: #054184;
|
|
93
95
|
--bpk-private-chip-colour-bg-disabled: #0b121d;
|
|
94
96
|
--bpk-private-chip-colour-bg-on-contrast-hover: #131d2b;
|
|
@@ -165,6 +167,8 @@
|
|
|
165
167
|
--bpk-private-shadow-xl-position-y: 0.75rem;
|
|
166
168
|
--bpk-private-shadow-xl-spread: 0;
|
|
167
169
|
--bpk-private-skeleton-on-dark: #243346;
|
|
170
|
+
--bpk-private-slider-bg-knob: #84e9ff;
|
|
171
|
+
--bpk-private-slider-bg-track: #84e9ff;
|
|
168
172
|
--bpk-private-speech-bubble-colour-bg-contrast: #131d2b;
|
|
169
173
|
--bpk-private-speech-bubble-colour-bg-default: #131d2b;
|
|
170
174
|
--bpk-private-trip-advisor: #9ce6c0;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
--bpk-canvas-contrast: #eff3f8;
|
|
23
23
|
--bpk-canvas-default: #ffffff;
|
|
24
24
|
--bpk-private-autosuggest-colour-bg-default: #ffffff;
|
|
25
|
-
--bpk-private-autosuggest-colour-bg-hover: #
|
|
25
|
+
--bpk-private-autosuggest-colour-bg-hover: #f5f7fa;
|
|
26
26
|
--bpk-private-autosuggest-colour-border-default: #c1c7cf;
|
|
27
27
|
--bpk-private-autosuggest-colour-text-close: #161616;
|
|
28
28
|
--bpk-private-badge-colour-bg-default: #eff3f8;
|
|
@@ -89,6 +89,8 @@
|
|
|
89
89
|
--bpk-private-chip-group-filter-colour-stroke-icon-off-on-dark: rgba(255, 255, 255, 0.2);
|
|
90
90
|
--bpk-private-chip-group-filter-dimensions-min-height: 2.25rem;
|
|
91
91
|
--bpk-private-chip-colour-bg-default-dismissible-hover: #05203c;
|
|
92
|
+
--bpk-private-chip-colour-bg-default-hover: rgba(255, 255, 255, 0);
|
|
93
|
+
--bpk-private-chip-colour-bg-default-off: rgba(255, 255, 255, 0);
|
|
92
94
|
--bpk-private-chip-colour-bg-default-on: #05203c;
|
|
93
95
|
--bpk-private-chip-colour-bg-disabled: #e0e4e9;
|
|
94
96
|
--bpk-private-chip-colour-bg-on-contrast-hover: #ffffff;
|
|
@@ -130,7 +132,7 @@
|
|
|
130
132
|
--bpk-private-map-previous-selection: #cfe4ff;
|
|
131
133
|
--bpk-private-navigation-tabs-hover: #154679;
|
|
132
134
|
--bpk-private-navigation-tabs-outline: rgba(255, 255, 255, 0.2);
|
|
133
|
-
--bpk-private-navigation-tabs-selected: #
|
|
135
|
+
--bpk-private-navigation-tabs-selected: #0062e3;
|
|
134
136
|
--bpk-private-radio-bg-default-disabled: #c1c7cf;
|
|
135
137
|
--bpk-private-radio-bg-default-on: #0062e3;
|
|
136
138
|
--bpk-private-radio-bg-on-contrast-off: #ffffff;
|
|
@@ -165,6 +167,8 @@
|
|
|
165
167
|
--bpk-private-shadow-xl-position-y: 0.75rem;
|
|
166
168
|
--bpk-private-shadow-xl-spread: 0;
|
|
167
169
|
--bpk-private-skeleton-on-dark: rgba(255, 255, 255, 0.1);
|
|
170
|
+
--bpk-private-slider-bg-knob: #0062e3;
|
|
171
|
+
--bpk-private-slider-bg-track: #0062e3;
|
|
168
172
|
--bpk-private-speech-bubble-colour-bg-contrast: #eff3f8;
|
|
169
173
|
--bpk-private-speech-bubble-colour-bg-default: #ffffff;
|
|
170
174
|
--bpk-private-trip-advisor: #00aa6c;
|
|
@@ -185,7 +189,7 @@
|
|
|
185
189
|
--bpk-surface-elevated: #ffffff;
|
|
186
190
|
--bpk-surface-hero: #0062e3;
|
|
187
191
|
--bpk-surface-highlight: #e0e4e9;
|
|
188
|
-
--bpk-surface-low-contrast: #
|
|
192
|
+
--bpk-surface-low-contrast: #f5f7fa;
|
|
189
193
|
--bpk-surface-subtle: #e3f0ff;
|
|
190
194
|
--bpk-surface-success-fill: #d4fff2;
|
|
191
195
|
--bpk-surface-tint: rgba(255, 255, 255, 0.1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyscanner/backpack-web",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "43.0.0-dev-v28222480725.1",
|
|
4
4
|
"description": "Backpack Design System web library",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"date-fns": "3.3.1 - 4",
|
|
53
|
-
"react": "
|
|
54
|
-
"react-dom": "
|
|
53
|
+
"react": "18.3.1 - 19.2.5",
|
|
54
|
+
"react-dom": "18.3.1 - 19.2.5",
|
|
55
55
|
"react-transition-group": "^4.4.5",
|
|
56
56
|
"sass": "^1",
|
|
57
57
|
"sass-embedded": "^1"
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Backpack - Skyscanner's Design System
|
|
3
|
-
*
|
|
4
|
-
* Copyright 2016 Skyscanner Ltd
|
|
5
|
-
*
|
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
* you may not use this file except in compliance with the License.
|
|
8
|
-
* You may obtain a copy of the License at
|
|
9
|
-
*
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*
|
|
12
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
* See the License for the specific language governing permissions and
|
|
16
|
-
* limitations under the License.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
import PropTypes from 'prop-types';
|
|
20
|
-
import { isDeviceIphone } from "../../bpk-react-utils";
|
|
21
|
-
import { titlePropType, onClosePropType } from "./customPropTypes";
|
|
22
|
-
const modalDialogPropTypes = {
|
|
23
|
-
id: PropTypes.string.isRequired,
|
|
24
|
-
children: PropTypes.node.isRequired,
|
|
25
|
-
isIphone: PropTypes.bool.isRequired,
|
|
26
|
-
dialogRef: PropTypes.func.isRequired,
|
|
27
|
-
title: titlePropType,
|
|
28
|
-
onClose: onClosePropType,
|
|
29
|
-
className: PropTypes.string,
|
|
30
|
-
contentClassName: PropTypes.string,
|
|
31
|
-
closeLabel: PropTypes.string,
|
|
32
|
-
closeText: PropTypes.string,
|
|
33
|
-
wide: PropTypes.bool,
|
|
34
|
-
showHeader: PropTypes.bool,
|
|
35
|
-
fullScreenOnMobile: PropTypes.bool,
|
|
36
|
-
fullScreen: PropTypes.bool,
|
|
37
|
-
padded: PropTypes.bool,
|
|
38
|
-
accesoryView: PropTypes.func
|
|
39
|
-
};
|
|
40
|
-
const modalDialogDefaultProps = {
|
|
41
|
-
title: null,
|
|
42
|
-
onClose: () => null,
|
|
43
|
-
className: null,
|
|
44
|
-
contentClassName: null,
|
|
45
|
-
closeLabel: '',
|
|
46
|
-
closeText: null,
|
|
47
|
-
wide: false,
|
|
48
|
-
showHeader: true,
|
|
49
|
-
fullScreenOnMobile: true,
|
|
50
|
-
fullScreen: false,
|
|
51
|
-
padded: true,
|
|
52
|
-
accessoryView: null
|
|
53
|
-
};
|
|
54
|
-
const {
|
|
55
|
-
dialogRef,
|
|
56
|
-
...newModalDialogPropTypes
|
|
57
|
-
} = modalDialogPropTypes;
|
|
58
|
-
export const propTypes = {
|
|
59
|
-
...newModalDialogPropTypes,
|
|
60
|
-
onClose: PropTypes.func,
|
|
61
|
-
isIphone: PropTypes.bool,
|
|
62
|
-
isOpen: PropTypes.bool.isRequired,
|
|
63
|
-
renderTarget: PropTypes.func,
|
|
64
|
-
closeOnScrimClick: PropTypes.bool,
|
|
65
|
-
closeOnEscPressed: PropTypes.bool
|
|
66
|
-
};
|
|
67
|
-
export const defaultProps = {
|
|
68
|
-
...modalDialogDefaultProps,
|
|
69
|
-
onClose: () => null,
|
|
70
|
-
renderTarget: null,
|
|
71
|
-
isIphone: isDeviceIphone(),
|
|
72
|
-
closeOnScrimClick: true,
|
|
73
|
-
closeOnEscPressed: true
|
|
74
|
-
};
|