@skyscanner/backpack-web 4.1.0 → 6.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/README.md +65 -64
- package/bpk-animate-height/package.json +2 -2
- package/bpk-component-accordion/package.json +6 -6
- package/bpk-component-aria-live/package.json +7 -7
- package/bpk-component-autosuggest/package.json +4 -4
- package/bpk-component-badge/package.json +4 -4
- package/bpk-component-banner-alert/package.json +8 -8
- package/bpk-component-barchart/package.json +7 -7
- package/bpk-component-blockquote/package.json +2 -2
- package/bpk-component-breadcrumb/package.json +5 -5
- package/bpk-component-breakpoint/package.json +2 -2
- package/bpk-component-button/package.json +2 -2
- package/bpk-component-calendar/package.json +8 -8
- package/bpk-component-card/package.json +4 -4
- package/bpk-component-checkbox/package.json +4 -4
- package/bpk-component-chip/package.json +5 -5
- package/bpk-component-close-button/package.json +4 -4
- package/bpk-component-code/package.json +2 -2
- package/bpk-component-content-container/package.json +2 -2
- package/bpk-component-datatable/package.json +3 -3
- package/bpk-component-datepicker/package.json +8 -8
- package/bpk-component-datepicker/src/BpkDatepicker.js +14 -12
- package/bpk-component-description-list/package.json +2 -2
- package/bpk-component-dialog/package.json +8 -8
- package/bpk-component-drawer/package.json +8 -8
- package/bpk-component-drawer/src/BpkDrawer.js +2 -10
- package/bpk-component-fieldset/package.json +12 -12
- package/bpk-component-flare/package.json +4 -4
- package/bpk-component-floating-notification/README.md +5 -0
- package/bpk-component-floating-notification/package.json +4 -4
- package/bpk-component-floating-notification/src/BpkFloatingNotification.js +6 -1
- package/bpk-component-form-validation/package.json +9 -9
- package/bpk-component-graphic-promotion/package.json +4 -4
- package/bpk-component-grid/package.json +2 -2
- package/bpk-component-grid-toggle/package.json +3 -3
- package/bpk-component-horizontal-nav/package.json +5 -5
- package/bpk-component-icon/package.json +5 -5
- package/bpk-component-image/package.json +5 -5
- package/bpk-component-infinite-scroll/package.json +6 -6
- package/bpk-component-input/package.json +6 -6
- package/bpk-component-label/package.json +2 -2
- package/bpk-component-link/package.json +3 -3
- package/bpk-component-list/package.json +2 -2
- package/bpk-component-loading-button/package.json +6 -6
- package/bpk-component-map/package.json +6 -6
- package/bpk-component-mobile-scroll-container/package.json +2 -2
- package/bpk-component-modal/package.json +9 -9
- package/bpk-component-modal/src/BpkModal.js +4 -9
- package/bpk-component-navigation-bar/package.json +7 -7
- package/bpk-component-navigation-stack/README.md +1 -0
- package/bpk-component-navigation-stack/package.json +7 -6
- package/bpk-component-nudger/package.json +6 -6
- package/bpk-component-overlay/package.json +4 -4
- package/bpk-component-pagination/package.json +4 -4
- package/bpk-component-panel/package.json +2 -2
- package/bpk-component-phone-input/package.json +8 -8
- package/bpk-component-popover/package.json +8 -8
- package/bpk-component-popover/src/BpkPopoverPortal.js +25 -14
- package/bpk-component-price/README.md +4 -2
- package/bpk-component-price/index.js +3 -2
- package/bpk-component-price/package.json +3 -3
- package/bpk-component-price/src/BpkPrice.js +16 -12
- package/bpk-component-price/src/BpkPrice.module.scss +16 -10
- package/bpk-component-price/src/common-types.js +29 -0
- package/bpk-component-progress/package.json +4 -4
- package/bpk-component-radio/package.json +3 -3
- package/bpk-component-rating/package.json +3 -3
- package/bpk-component-rtl-toggle/package.json +3 -3
- package/bpk-component-scrollable-calendar/package.json +5 -5
- package/bpk-component-section-list/package.json +5 -5
- package/bpk-component-select/package.json +3 -3
- package/bpk-component-skip-link/package.json +2 -2
- package/bpk-component-slider/package.json +3 -3
- package/bpk-component-spinner/package.json +2 -2
- package/bpk-component-split-input/package.json +3 -3
- package/bpk-component-split-input/src/BpkInputField.js +1 -1
- package/bpk-component-split-input/src/BpkInputField.module.scss +3 -3
- package/bpk-component-split-input/src/BpkSplitInput.js +3 -1
- package/bpk-component-split-input/src/BpkSplitInput.module.scss +2 -2
- package/bpk-component-star-rating/package.json +5 -5
- package/bpk-component-switch/package.json +2 -2
- package/bpk-component-table/package.json +2 -2
- package/bpk-component-text/package.json +2 -2
- package/bpk-component-textarea/package.json +4 -4
- package/bpk-component-theme-toggle/package.json +4 -4
- package/bpk-component-ticket/README.md +0 -1
- package/bpk-component-ticket/package.json +4 -4
- package/bpk-component-ticket/src/BpkTicket.js +0 -40
- package/bpk-component-ticket/src/BpkTicket.module.scss +13 -165
- package/bpk-component-tooltip/package.json +3 -3
- package/bpk-react-utils/package.json +1 -1
- package/bpk-react-utils/src/Portal.js +1 -1
- package/bpk-scrim-utils/package.json +2 -2
- package/package.json +1 -1
|
@@ -24,15 +24,12 @@ import { cssModules } from '../../bpk-react-utils';
|
|
|
24
24
|
import BpkText, { TEXT_STYLES } from '../../bpk-component-text';
|
|
25
25
|
|
|
26
26
|
import STYLES from './BpkPrice.module.scss';
|
|
27
|
-
|
|
28
|
-
export const SIZES = {
|
|
29
|
-
small: 'small',
|
|
30
|
-
large: 'large',
|
|
31
|
-
};
|
|
27
|
+
import { SIZES, ALIGNS } from './common-types';
|
|
32
28
|
|
|
33
29
|
type Props = {
|
|
34
30
|
title: string,
|
|
35
31
|
size: $Values<typeof SIZES>,
|
|
32
|
+
align: $Values<typeof ALIGNS>,
|
|
36
33
|
className: ?string,
|
|
37
34
|
subtitle: ?string,
|
|
38
35
|
description: ?string,
|
|
@@ -41,15 +38,17 @@ type Props = {
|
|
|
41
38
|
const getClassName = cssModules(STYLES);
|
|
42
39
|
|
|
43
40
|
const BpkPrice = (props: Props) => {
|
|
44
|
-
const { className, description, size, subtitle, title, ...rest } =
|
|
41
|
+
const { align, className, description, size, subtitle, title, ...rest } =
|
|
42
|
+
props;
|
|
45
43
|
|
|
46
44
|
const isSmall = size === SIZES.small;
|
|
45
|
+
const isAlignRight = align === ALIGNS.right;
|
|
47
46
|
|
|
48
47
|
return (
|
|
49
48
|
<div
|
|
50
49
|
className={getClassName(
|
|
51
50
|
'bpk-price',
|
|
52
|
-
|
|
51
|
+
isAlignRight && 'bpk-price--right',
|
|
53
52
|
className,
|
|
54
53
|
)}
|
|
55
54
|
// $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
|
|
@@ -64,9 +63,15 @@ const BpkPrice = (props: Props) => {
|
|
|
64
63
|
{subtitle}
|
|
65
64
|
</BpkText>
|
|
66
65
|
)}
|
|
67
|
-
<div
|
|
66
|
+
<div
|
|
67
|
+
className={isAlignRight && getClassName('bpk-price__column-container')}
|
|
68
|
+
>
|
|
68
69
|
<BpkText
|
|
69
70
|
textStyle={isSmall ? TEXT_STYLES.heading4 : TEXT_STYLES.xxl}
|
|
71
|
+
className={getClassName(
|
|
72
|
+
'bpk-price__title',
|
|
73
|
+
!isAlignRight && 'bpk-price__spacing',
|
|
74
|
+
)}
|
|
70
75
|
tagName="span"
|
|
71
76
|
>
|
|
72
77
|
{title}
|
|
@@ -75,10 +80,7 @@ const BpkPrice = (props: Props) => {
|
|
|
75
80
|
<BpkText
|
|
76
81
|
textStyle={isSmall ? TEXT_STYLES.xs : TEXT_STYLES.sm}
|
|
77
82
|
tagName="span"
|
|
78
|
-
className={getClassName(
|
|
79
|
-
'bpk-price__description',
|
|
80
|
-
!isSmall && 'bpk-price__descriptionSpacing',
|
|
81
|
-
)}
|
|
83
|
+
className={getClassName('bpk-price__description')}
|
|
82
84
|
>
|
|
83
85
|
{description}
|
|
84
86
|
</BpkText>
|
|
@@ -91,6 +93,7 @@ const BpkPrice = (props: Props) => {
|
|
|
91
93
|
BpkPrice.propTypes = {
|
|
92
94
|
title: PropTypes.string.isRequired,
|
|
93
95
|
size: PropTypes.oneOf(Object.keys(SIZES)),
|
|
96
|
+
align: PropTypes.oneOf(Object.keys(ALIGNS)),
|
|
94
97
|
className: PropTypes.string,
|
|
95
98
|
subtitle: PropTypes.string,
|
|
96
99
|
description: PropTypes.string,
|
|
@@ -98,6 +101,7 @@ BpkPrice.propTypes = {
|
|
|
98
101
|
|
|
99
102
|
BpkPrice.defaultProps = {
|
|
100
103
|
size: SIZES.small,
|
|
104
|
+
align: ALIGNS.left,
|
|
101
105
|
className: null,
|
|
102
106
|
subtitle: null,
|
|
103
107
|
description: null,
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
display: flex;
|
|
23
23
|
flex-direction: column;
|
|
24
24
|
|
|
25
|
-
&--
|
|
25
|
+
&--right {
|
|
26
26
|
text-align: right;
|
|
27
27
|
|
|
28
28
|
@include bpk-rtl {
|
|
@@ -35,21 +35,27 @@
|
|
|
35
35
|
text-decoration-line: line-through;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
&
|
|
38
|
+
&__column-container {
|
|
39
39
|
display: flex;
|
|
40
40
|
flex-direction: column;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
&
|
|
44
|
-
|
|
43
|
+
&__title {
|
|
44
|
+
word-break: break-all;
|
|
45
|
+
}
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
&__spacing::after {
|
|
48
|
+
content: '';
|
|
49
|
+
margin-right: bpk-spacing-sm();
|
|
48
50
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
51
|
+
@include bpk-rtl {
|
|
52
|
+
margin-right: unset;
|
|
53
|
+
margin-left: bpk-spacing-sm();
|
|
53
54
|
}
|
|
54
55
|
}
|
|
56
|
+
|
|
57
|
+
&__description {
|
|
58
|
+
color: $bpk-color-sky-gray-tint-02;
|
|
59
|
+
white-space: nowrap;
|
|
60
|
+
}
|
|
55
61
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
/* @flow strict */
|
|
20
|
+
|
|
21
|
+
export const SIZES = {
|
|
22
|
+
small: 'small',
|
|
23
|
+
large: 'large',
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const ALIGNS = {
|
|
27
|
+
left: 'left',
|
|
28
|
+
right: 'right',
|
|
29
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-progress",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.12",
|
|
4
4
|
"description": "Backpack progress bar component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@skyscanner/bpk-foundations-web": "^8.0.0",
|
|
18
18
|
"bpk-mixins": "^31.1.1",
|
|
19
|
-
"bpk-react-utils": "^
|
|
19
|
+
"bpk-react-utils": "^6.0.0",
|
|
20
20
|
"lodash.clamp": "^4.0.3",
|
|
21
21
|
"prop-types": "^15.7.2"
|
|
22
22
|
},
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"react": "^16.3.0 || ^17.0.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"bpk-component-button": "^6.2.
|
|
28
|
-
"bpk-storybook-utils": "^1.1.
|
|
27
|
+
"bpk-component-button": "^6.2.7",
|
|
28
|
+
"bpk-storybook-utils": "^1.1.11"
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-radio",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.13",
|
|
4
4
|
"description": "Backpack radio button 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.1.1",
|
|
18
|
-
"bpk-react-utils": "^
|
|
18
|
+
"bpk-react-utils": "^6.0.0",
|
|
19
19
|
"prop-types": "^15.7.2"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@skyscanner/bpk-foundations-web": "^8.0.0",
|
|
26
|
-
"bpk-storybook-utils": "^1.1.
|
|
26
|
+
"bpk-storybook-utils": "^1.1.11"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-rating",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3",
|
|
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.1.1",
|
|
18
|
-
"bpk-react-utils": "^
|
|
18
|
+
"bpk-react-utils": "^6.0.0",
|
|
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": "^8.0.0",
|
|
27
|
-
"bpk-component-text": "^7.0.
|
|
27
|
+
"bpk-component-text": "^7.0.6"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-rtl-toggle",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.12",
|
|
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": "^3.1.
|
|
18
|
-
"bpk-react-utils": "^
|
|
17
|
+
"bpk-component-link": "^3.1.12",
|
|
18
|
+
"bpk-react-utils": "^6.0.0",
|
|
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": "6.1.
|
|
3
|
+
"version": "6.1.20",
|
|
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": "^8.0.0",
|
|
18
|
-
"bpk-component-calendar": "^11.1.
|
|
19
|
-
"bpk-component-text": "^7.0.
|
|
18
|
+
"bpk-component-calendar": "^11.1.19",
|
|
19
|
+
"bpk-component-text": "^7.0.6",
|
|
20
20
|
"bpk-mixins": "^31.1.1",
|
|
21
|
-
"bpk-react-utils": "^
|
|
21
|
+
"bpk-react-utils": "^6.0.0",
|
|
22
22
|
"date-fns": "^2.21.1",
|
|
23
23
|
"prop-types": "^15.5.8",
|
|
24
24
|
"react-virtualized": "^9.22.3"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"bpk-storybook-utils": "^1.1.
|
|
27
|
+
"bpk-storybook-utils": "^1.1.11"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": "^16.3.0 || ^17.0.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-section-list",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.13",
|
|
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": "^8.0.0",
|
|
18
|
-
"bpk-component-icon": "^9.2.
|
|
19
|
-
"bpk-component-text": "^7.0.
|
|
18
|
+
"bpk-component-icon": "^9.2.13",
|
|
19
|
+
"bpk-component-text": "^7.0.6",
|
|
20
20
|
"bpk-mixins": "^31.1.1",
|
|
21
|
-
"bpk-react-utils": "^
|
|
21
|
+
"bpk-react-utils": "^6.0.0",
|
|
22
22
|
"prop-types": "^15.7.2"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"bpk-storybook-utils": "^1.1.
|
|
25
|
+
"bpk-storybook-utils": "^1.1.11"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": "^16.3.0 || ^17.0.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-select",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.12",
|
|
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.1.1",
|
|
18
|
-
"bpk-react-utils": "^
|
|
18
|
+
"bpk-react-utils": "^6.0.0",
|
|
19
19
|
"prop-types": "^15.7.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"bpk-storybook-utils": "^1.1.
|
|
22
|
+
"bpk-storybook-utils": "^1.1.11"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": "^16.3.0 || ^17.0.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-skip-link",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.12",
|
|
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.1.1",
|
|
17
|
-
"bpk-react-utils": "^
|
|
17
|
+
"bpk-react-utils": "^6.0.0",
|
|
18
18
|
"prop-types": "^15.5.8"
|
|
19
19
|
},
|
|
20
20
|
"publishConfig": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-slider",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.12",
|
|
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": "^8.0.0",
|
|
18
18
|
"bpk-mixins": "^31.1.1",
|
|
19
|
-
"bpk-react-utils": "^
|
|
19
|
+
"bpk-react-utils": "^6.0.0",
|
|
20
20
|
"prop-types": "^15.7.2",
|
|
21
21
|
"react-slider": "^1.3.1"
|
|
22
22
|
},
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"react": "^16.3.0 || ^17.0.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"bpk-component-rtl-toggle": "^3.1.
|
|
27
|
+
"bpk-component-rtl-toggle": "^3.1.12"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-spinner",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.12",
|
|
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.1.9",
|
|
18
18
|
"bpk-mixins": "^31.1.1",
|
|
19
|
-
"bpk-react-utils": "^
|
|
19
|
+
"bpk-react-utils": "^6.0.0",
|
|
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": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
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": "^6.1.
|
|
16
|
+
"bpk-component-input": "^6.1.17",
|
|
17
17
|
"bpk-mixins": "^31.1.1",
|
|
18
|
-
"bpk-react-utils": "^
|
|
18
|
+
"bpk-react-utils": "^6.0.0",
|
|
19
19
|
"prop-types": "^15.5.8"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
@@ -39,7 +39,7 @@ class BpkInputField extends Component {
|
|
|
39
39
|
render() {
|
|
40
40
|
const { focus, id, index, label, value, ...rest } = this.props;
|
|
41
41
|
return (
|
|
42
|
-
<div key={index} className={getClassName('
|
|
42
|
+
<div key={index} className={getClassName('bpk-input-field')}>
|
|
43
43
|
<BpkInput
|
|
44
44
|
id={id}
|
|
45
45
|
autoComplete="off"
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
/* stylelint-disable */
|
|
19
19
|
@import '~bpk-mixins';
|
|
20
20
|
|
|
21
|
-
.
|
|
21
|
+
.bpk-input-field {
|
|
22
22
|
display: flex;
|
|
23
23
|
max-width: 3*bpk-spacing-xxl();
|
|
24
|
-
margin-right: bpk-spacing-
|
|
24
|
+
margin-right: bpk-spacing-sm();
|
|
25
25
|
align-items: center;
|
|
26
26
|
|
|
27
27
|
input {
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.
|
|
32
|
+
.bpk-input-field:last-child {
|
|
33
33
|
margin-right: $bpk-spacing-none;
|
|
34
34
|
}
|
|
@@ -215,7 +215,9 @@ class BpkSplitInput extends Component {
|
|
|
215
215
|
|
|
216
216
|
render() {
|
|
217
217
|
return (
|
|
218
|
-
<div className={getClassName('
|
|
218
|
+
<div className={getClassName('bpk-split-input')}>
|
|
219
|
+
{this.renderInputs()}
|
|
220
|
+
</div>
|
|
219
221
|
);
|
|
220
222
|
}
|
|
221
223
|
}
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
|
|
21
21
|
@import '~bpk-mixins/index';
|
|
22
22
|
|
|
23
|
-
.
|
|
23
|
+
.bpk-split-input {
|
|
24
24
|
@include bpk-body-default;
|
|
25
25
|
display: flex;
|
|
26
26
|
width: 100%;
|
|
27
|
-
padding-top: bpk-spacing-
|
|
27
|
+
padding-top: bpk-spacing-sm();
|
|
28
28
|
flex-direction: row;
|
|
29
29
|
align-items: center;
|
|
30
30
|
direction: ltr;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-star-rating",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.14",
|
|
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": "^9.2.
|
|
17
|
+
"bpk-component-icon": "^9.2.13",
|
|
18
18
|
"bpk-mixins": "^31.1.1",
|
|
19
|
-
"bpk-react-utils": "^
|
|
19
|
+
"bpk-react-utils": "^6.0.0",
|
|
20
20
|
"prop-types": "^15.7.2"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": "^16.3.0 || ^17.0.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"bpk-component-table": "^3.1.
|
|
27
|
-
"bpk-storybook-utils": "^1.1.
|
|
26
|
+
"bpk-component-table": "^3.1.12",
|
|
27
|
+
"bpk-storybook-utils": "^1.1.11"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-switch",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.13",
|
|
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.1.1",
|
|
18
|
-
"bpk-react-utils": "^
|
|
18
|
+
"bpk-react-utils": "^6.0.0",
|
|
19
19
|
"prop-types": "^15.5.8"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-table",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.12",
|
|
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.1.1",
|
|
18
|
-
"bpk-react-utils": "^
|
|
18
|
+
"bpk-react-utils": "^6.0.0",
|
|
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": "7.0.
|
|
3
|
+
"version": "7.0.6",
|
|
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.1.1",
|
|
18
|
-
"bpk-react-utils": "^
|
|
18
|
+
"bpk-react-utils": "^6.0.0",
|
|
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": "4.2.
|
|
3
|
+
"version": "4.2.12",
|
|
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.1.1",
|
|
18
|
-
"bpk-react-utils": "^
|
|
18
|
+
"bpk-react-utils": "^6.0.0",
|
|
19
19
|
"prop-types": "^15.7.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"bpk-component-label": "^5.1.
|
|
23
|
-
"bpk-storybook-utils": "^1.1.
|
|
22
|
+
"bpk-component-label": "^5.1.12",
|
|
23
|
+
"bpk-storybook-utils": "^1.1.11"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": "^16.3.0 || ^17.0.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-theme-toggle",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.13",
|
|
4
4
|
"description": "Backpack theme toggle component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@skyscanner/bpk-foundations-web": "^8.0.0",
|
|
18
|
-
"bpk-component-label": "^5.1.
|
|
19
|
-
"bpk-component-select": "^5.1.
|
|
18
|
+
"bpk-component-label": "^5.1.12",
|
|
19
|
+
"bpk-component-select": "^5.1.12",
|
|
20
20
|
"bpk-mixins": "^31.1.1",
|
|
21
|
-
"bpk-react-utils": "^
|
|
21
|
+
"bpk-react-utils": "^6.0.0",
|
|
22
22
|
"prop-types": "^15.7.2"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-ticket",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"description": "Backpack ticket component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"bpk-mixins": "^31.1.1",
|
|
18
|
-
"bpk-react-utils": "^
|
|
18
|
+
"bpk-react-utils": "^6.0.0",
|
|
19
19
|
"prop-types": "^15.7.2"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"react": "^16.3.0 || ^17.0.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"bpk-component-button": "^6.2.
|
|
26
|
-
"bpk-component-icon": "^9.2.
|
|
25
|
+
"bpk-component-button": "^6.2.7",
|
|
26
|
+
"bpk-component-icon": "^9.2.13"
|
|
27
27
|
}
|
|
28
28
|
}
|