@skyscanner/backpack-web 13.0.0 → 14.0.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-component-accordion/src/BpkAccordionItem.js +1 -2
- package/bpk-component-barchart/src/BpkBarchartBar.module.scss +4 -4
- package/bpk-component-barchart/src/BpkChartAxis.module.scss +2 -2
- package/bpk-component-barchart/src/BpkChartGridLines.module.scss +1 -1
- package/bpk-scrim-utils/README.md +0 -1
- package/bpk-scrim-utils/src/BpkScrim.js +1 -3
- package/bpk-scrim-utils/src/bpk-scrim.module.scss +3 -6
- package/bpk-scrim-utils/src/withScrim.js +1 -4
- package/package.json +4 -4
|
@@ -80,7 +80,7 @@ const BpkAccordionItem = (props: Props) => {
|
|
|
80
80
|
return (
|
|
81
81
|
// $FlowFixMe[cannot-spread-inexact] - inexact rest. See decisions/flowfixme.md
|
|
82
82
|
<div id={id} {...rest}>
|
|
83
|
-
<dt
|
|
83
|
+
<dt className={getClassName('bpk-accordion__title')}>
|
|
84
84
|
<button
|
|
85
85
|
type="button"
|
|
86
86
|
aria-expanded={expanded}
|
|
@@ -105,7 +105,6 @@ const BpkAccordionItem = (props: Props) => {
|
|
|
105
105
|
</dt>
|
|
106
106
|
<dd
|
|
107
107
|
id={contentId}
|
|
108
|
-
aria-labelledby={contentId}
|
|
109
108
|
className={getClassName('bpk-accordion__content-container')}
|
|
110
109
|
>
|
|
111
110
|
<AnimateHeight duration={200} height={expanded ? 'auto' : 0}>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
@include bpk-themeable-property(
|
|
23
23
|
fill,
|
|
24
24
|
--bpk-barchart-bar-background-color,
|
|
25
|
-
$bpk-
|
|
25
|
+
$bpk-line-day
|
|
26
26
|
);
|
|
27
27
|
|
|
28
28
|
&--interactive:not(.bpk-barchart-bar--selected) {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
@include bpk-themeable-property(
|
|
33
33
|
fill,
|
|
34
34
|
--bpk-barchart-bar-hover-background-color,
|
|
35
|
-
$bpk-
|
|
35
|
+
$bpk-core-primary-day
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
@include bpk-themeable-property(
|
|
41
41
|
fill,
|
|
42
42
|
--bpk-barchart-bar-active-background-color,
|
|
43
|
-
$bpk-
|
|
43
|
+
$bpk-core-accent-day
|
|
44
44
|
);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
@include bpk-themeable-property(
|
|
50
50
|
fill,
|
|
51
51
|
--bpk-barchart-bar-selected-background-color,
|
|
52
|
-
$bpk-
|
|
52
|
+
$bpk-core-accent-day
|
|
53
53
|
);
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
.bpk-chart {
|
|
22
22
|
&__axis-tick {
|
|
23
23
|
&-text {
|
|
24
|
-
fill: $bpk-
|
|
24
|
+
fill: $bpk-text-secondary-day;
|
|
25
25
|
|
|
26
26
|
@include bpk-text;
|
|
27
27
|
@include bpk-caption;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
&__axis-label {
|
|
32
|
-
fill: $bpk-
|
|
32
|
+
fill: $bpk-text-secondary-day;
|
|
33
33
|
|
|
34
34
|
@include bpk-text;
|
|
35
35
|
@include bpk-caption;
|
|
@@ -41,7 +41,6 @@ const BoxWithScrim = withScrim(Box);
|
|
|
41
41
|
| isIphone | bool | false | `/iPhone/i.test(typeof window !== 'undefined' ? window.navigator.platform : '')` |
|
|
42
42
|
| containerClassName | string | false | '' |
|
|
43
43
|
| closeOnScrimClick | bool | false | true |
|
|
44
|
-
| dark | bool | false | false |
|
|
45
44
|
|
|
46
45
|
### Prop Details
|
|
47
46
|
|
|
@@ -33,7 +33,7 @@ const BpkScrim = (props) => (
|
|
|
33
33
|
>
|
|
34
34
|
<div
|
|
35
35
|
role="presentation"
|
|
36
|
-
className={getClassName('bpk-scrim'
|
|
36
|
+
className={getClassName('bpk-scrim')}
|
|
37
37
|
onMouseDown={props.onClose}
|
|
38
38
|
onTouchStart={props.onClose}
|
|
39
39
|
/>
|
|
@@ -41,12 +41,10 @@ const BpkScrim = (props) => (
|
|
|
41
41
|
);
|
|
42
42
|
|
|
43
43
|
BpkScrim.propTypes = {
|
|
44
|
-
dark: PropTypes.bool,
|
|
45
44
|
onClose: PropTypes.func,
|
|
46
45
|
};
|
|
47
46
|
|
|
48
47
|
BpkScrim.defaultProps = {
|
|
49
|
-
dark: false,
|
|
50
48
|
onClose: null,
|
|
51
49
|
};
|
|
52
50
|
|
|
@@ -26,15 +26,12 @@
|
|
|
26
26
|
left: 0;
|
|
27
27
|
z-index: $bpk-zindex-scrim;
|
|
28
28
|
transition: opacity $bpk-duration-sm ease-in-out;
|
|
29
|
-
background-color: $bpk-scrim-
|
|
29
|
+
background-color: $bpk-scrim-day;
|
|
30
|
+
|
|
31
|
+
// We will need to remove this on hex launch as opacity will be built into the above colour.
|
|
30
32
|
opacity: $bpk-scrim-opacity;
|
|
31
33
|
overflow: hidden;
|
|
32
34
|
|
|
33
|
-
&--dark {
|
|
34
|
-
background-color: $bpk-scrim-dark-background-color;
|
|
35
|
-
opacity: $bpk-scrim-dark-opacity;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
35
|
&--full-screen {
|
|
39
36
|
@include bpk-breakpoint-mobile {
|
|
40
37
|
opacity: $bpk-scrim-mobile-opacity;
|
|
@@ -47,7 +47,6 @@ const withScrim = (WrappedComponent) => {
|
|
|
47
47
|
static propTypes = {
|
|
48
48
|
getApplicationElement: PropTypes.func.isRequired,
|
|
49
49
|
onClose: onClosePropType,
|
|
50
|
-
dark: PropTypes.bool,
|
|
51
50
|
isIphone: PropTypes.bool,
|
|
52
51
|
isIpad: PropTypes.bool,
|
|
53
52
|
containerClassName: PropTypes.string,
|
|
@@ -55,7 +54,6 @@ const withScrim = (WrappedComponent) => {
|
|
|
55
54
|
};
|
|
56
55
|
|
|
57
56
|
static defaultProps = {
|
|
58
|
-
dark: false,
|
|
59
57
|
onClose: null,
|
|
60
58
|
isIphone: isDeviceIphone(),
|
|
61
59
|
isIpad: isDeviceIpad(),
|
|
@@ -125,7 +123,6 @@ const withScrim = (WrappedComponent) => {
|
|
|
125
123
|
const {
|
|
126
124
|
closeOnScrimClick,
|
|
127
125
|
containerClassName,
|
|
128
|
-
dark,
|
|
129
126
|
getApplicationElement,
|
|
130
127
|
isIpad,
|
|
131
128
|
isIphone,
|
|
@@ -141,7 +138,7 @@ const withScrim = (WrappedComponent) => {
|
|
|
141
138
|
|
|
142
139
|
return (
|
|
143
140
|
<div className={classNames.join(' ')}>
|
|
144
|
-
<BpkScrim onClose={closeOnScrimClick ? onClose : null}
|
|
141
|
+
<BpkScrim onClose={closeOnScrimClick ? onClose : null} />
|
|
145
142
|
<WrappedComponent
|
|
146
143
|
{...rest}
|
|
147
144
|
isIphone={isIphone}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyscanner/backpack-web",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.0",
|
|
4
4
|
"description": "Backpack Design System web library",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@popperjs/core": "^2.11.5",
|
|
26
26
|
"@react-google-maps/api": "^2.12.0",
|
|
27
|
-
"@skyscanner/bpk-foundations-web": "^
|
|
28
|
-
"@skyscanner/bpk-svgs": "^
|
|
27
|
+
"@skyscanner/bpk-foundations-web": "^12.0.0",
|
|
28
|
+
"@skyscanner/bpk-svgs": "^15.0.2",
|
|
29
29
|
"a11y-focus-scope": "^1.1.3",
|
|
30
30
|
"a11y-focus-store": "^1.0.0",
|
|
31
|
-
"bpk-mixins": "^
|
|
31
|
+
"bpk-mixins": "^34.0.1",
|
|
32
32
|
"d3-path": "^2.0.0",
|
|
33
33
|
"d3-scale": "^4.0.2",
|
|
34
34
|
"date-fns": "^2.21.1",
|