@skyscanner/backpack-web 2.0.1 → 3.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 +26 -0
- package/bpk-component-accordion/package.json +31 -0
- package/bpk-component-aria-live/package.json +31 -0
- package/bpk-component-autosuggest/package.json +29 -0
- package/bpk-component-badge/package.json +29 -0
- package/bpk-component-banner-alert/package.json +34 -0
- package/bpk-component-barchart/package.json +35 -0
- package/bpk-component-barchart/src/BpkBarchartBar.js +3 -2
- package/bpk-component-blockquote/package.json +24 -0
- package/bpk-component-breadcrumb/package.json +27 -0
- package/bpk-component-breakpoint/package.json +28 -0
- package/bpk-component-button/package.json +26 -0
- package/bpk-component-calendar/package.json +34 -0
- package/bpk-component-calendar/src/BpkCalendarGridTransition.js +4 -2
- package/bpk-component-calendar/src/Week.js +3 -1
- package/bpk-component-card/package.json +28 -0
- package/bpk-component-checkbox/package.json +29 -0
- package/bpk-component-chip/package.json +29 -0
- package/bpk-component-close-button/package.json +28 -0
- package/bpk-component-code/package.json +24 -0
- package/bpk-component-content-container/package.json +24 -0
- package/bpk-component-datatable/package.json +30 -0
- package/bpk-component-datepicker/package.json +33 -0
- package/bpk-component-description-list/package.json +24 -0
- package/bpk-component-dialog/package.json +32 -0
- package/bpk-component-drawer/package.json +34 -0
- package/bpk-component-fieldset/package.json +36 -0
- package/bpk-component-flare/package.json +29 -0
- package/bpk-component-form-validation/package.json +34 -0
- package/bpk-component-graphic-promotion/package.json +26 -0
- package/bpk-component-grid/package.json +24 -0
- package/bpk-component-grid-toggle/package.json +25 -0
- package/bpk-component-horizontal-nav/package.json +30 -0
- package/bpk-component-icon/package.json +34 -0
- package/bpk-component-image/package.json +31 -0
- package/bpk-component-infinite-scroll/package.json +31 -0
- package/bpk-component-input/package.json +30 -0
- package/bpk-component-label/package.json +24 -0
- package/bpk-component-link/package.json +28 -0
- package/bpk-component-list/package.json +24 -0
- package/bpk-component-loading-button/package.json +30 -0
- package/bpk-component-map/package.json +32 -0
- package/bpk-component-mobile-scroll-container/package.json +28 -0
- package/bpk-component-modal/package.json +33 -0
- package/bpk-component-navigation-bar/package.json +32 -0
- package/bpk-component-navigation-stack/package.json +32 -0
- package/bpk-component-nudger/package.json +32 -0
- package/bpk-component-overlay/package.json +28 -0
- package/bpk-component-pagination/package.json +28 -0
- package/bpk-component-panel/package.json +24 -0
- package/bpk-component-phone-input/package.json +33 -0
- package/bpk-component-popover/README.md +2 -2
- package/bpk-component-popover/package.json +35 -0
- package/bpk-component-popover/src/BpkPopover.js +1 -0
- package/bpk-component-popover/src/BpkPopover.module.scss +28 -26
- package/bpk-component-popover/src/BpkPopoverPortal.js +43 -17
- package/bpk-component-price/README.md +35 -0
- package/bpk-component-price/index.js +23 -0
- package/bpk-component-price/package.json +24 -0
- package/bpk-component-price/src/BpkPrice.js +106 -0
- package/bpk-component-price/src/BpkPrice.module.scss +55 -0
- package/bpk-component-progress/package.json +30 -0
- package/bpk-component-radio/package.json +28 -0
- package/bpk-component-rating/package.json +29 -0
- package/bpk-component-rating/src/BpkRating.js +6 -1
- package/bpk-component-rtl-toggle/package.json +24 -0
- package/bpk-component-scrollable-calendar/package.json +32 -0
- package/bpk-component-section-list/package.json +30 -0
- package/bpk-component-select/package.json +27 -0
- package/bpk-component-skip-link/package.json +24 -0
- package/bpk-component-slider/package.json +29 -0
- package/bpk-component-spinner/package.json +25 -0
- package/bpk-component-star-rating/package.json +29 -0
- package/bpk-component-star-rating/src/BpkStarRating.js +6 -1
- package/bpk-component-switch/package.json +24 -0
- package/bpk-component-table/package.json +24 -0
- package/bpk-component-text/package.json +24 -0
- package/bpk-component-textarea/package.json +28 -0
- package/bpk-component-theme-toggle/package.json +27 -0
- package/bpk-component-theme-toggle/src/BpkThemeToggle.js +0 -8
- package/bpk-component-ticket/package.json +28 -0
- package/bpk-component-tooltip/README.md +2 -2
- package/bpk-component-tooltip/package.json +29 -0
- package/bpk-component-tooltip/src/BpkTooltip.js +6 -1
- package/bpk-component-tooltip/src/BpkTooltip.module.scss +46 -55
- package/bpk-component-tooltip/src/BpkTooltipPortal.js +21 -12
- package/bpk-react-utils/package.json +25 -0
- package/bpk-scrim-utils/package.json +25 -0
- package/bpk-theming/package.json +23 -0
- package/package.json +5 -3
|
@@ -0,0 +1,55 @@
|
|
|
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 '~bpk-mixins/index';
|
|
20
|
+
|
|
21
|
+
.bpk-price {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
|
|
25
|
+
&--small {
|
|
26
|
+
text-align: right;
|
|
27
|
+
|
|
28
|
+
@include bpk-rtl {
|
|
29
|
+
text-align: left;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__subtitle {
|
|
34
|
+
color: $bpk-color-sky-gray-tint-02;
|
|
35
|
+
text-decoration-line: line-through;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__titleColumn {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&__description {
|
|
44
|
+
color: $bpk-color-sky-gray-tint-02;
|
|
45
|
+
|
|
46
|
+
&Spacing {
|
|
47
|
+
margin-left: bpk-spacing-sm();
|
|
48
|
+
|
|
49
|
+
@include bpk-rtl {
|
|
50
|
+
margin-right: bpk-spacing-sm();
|
|
51
|
+
margin-left: unset;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-progress",
|
|
3
|
+
"version": "3.1.10",
|
|
4
|
+
"description": "Backpack progress bar component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@skyscanner/bpk-foundations-web": "^8.0.0",
|
|
18
|
+
"bpk-mixins": "^31.1.1",
|
|
19
|
+
"bpk-react-utils": "^4.1.2",
|
|
20
|
+
"lodash.clamp": "^4.0.3",
|
|
21
|
+
"prop-types": "^15.7.2"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"bpk-component-button": "^6.2.5",
|
|
28
|
+
"bpk-storybook-utils": "^1.1.9"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-radio",
|
|
3
|
+
"version": "3.1.11",
|
|
4
|
+
"description": "Backpack radio button component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-mixins": "^31.1.1",
|
|
18
|
+
"bpk-react-utils": "^4.1.2",
|
|
19
|
+
"prop-types": "^15.7.2"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@skyscanner/bpk-foundations-web": "^8.0.0",
|
|
26
|
+
"bpk-storybook-utils": "^1.1.9"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-rating",
|
|
3
|
+
"version": "5.0.1",
|
|
4
|
+
"description": "Backpack rating component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-mixins": "^31.1.1",
|
|
18
|
+
"bpk-react-utils": "^4.1.2",
|
|
19
|
+
"lodash.clamp": "^4.0.3",
|
|
20
|
+
"prop-types": "^15.5.8"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@skyscanner/bpk-foundations-web": "^8.0.0",
|
|
27
|
+
"bpk-component-text": "^7.0.4"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -103,7 +103,12 @@ const BpkRating = (props: Props) => {
|
|
|
103
103
|
|
|
104
104
|
return (
|
|
105
105
|
// $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
|
|
106
|
-
<div
|
|
106
|
+
<div
|
|
107
|
+
className={classNames.join(' ')}
|
|
108
|
+
aria-label={ariaLabel}
|
|
109
|
+
role="figure"
|
|
110
|
+
{...rest}
|
|
111
|
+
>
|
|
107
112
|
<BpkText
|
|
108
113
|
textStyle={valueTextSize}
|
|
109
114
|
tagName="span"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-rtl-toggle",
|
|
3
|
+
"version": "3.1.10",
|
|
4
|
+
"description": "Backpack RTL toggle component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-component-link": "^3.1.10",
|
|
18
|
+
"bpk-react-utils": "^4.1.2",
|
|
19
|
+
"prop-types": "^15.7.2"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-scrollable-calendar",
|
|
3
|
+
"version": "6.1.15",
|
|
4
|
+
"description": "Backpack scrollable calendar component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@skyscanner/bpk-foundations-web": "^8.0.0",
|
|
18
|
+
"bpk-component-calendar": "^11.1.15",
|
|
19
|
+
"bpk-component-text": "^7.0.4",
|
|
20
|
+
"bpk-mixins": "^31.1.1",
|
|
21
|
+
"bpk-react-utils": "^4.1.2",
|
|
22
|
+
"date-fns": "^2.21.1",
|
|
23
|
+
"prop-types": "^15.5.8",
|
|
24
|
+
"react-virtualized": "^9.22.3"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"bpk-storybook-utils": "^1.1.9"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-section-list",
|
|
3
|
+
"version": "3.2.11",
|
|
4
|
+
"description": "Backpack section list component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@skyscanner/bpk-foundations-web": "^8.0.0",
|
|
18
|
+
"bpk-component-icon": "^9.2.11",
|
|
19
|
+
"bpk-component-text": "^7.0.4",
|
|
20
|
+
"bpk-mixins": "^31.1.1",
|
|
21
|
+
"bpk-react-utils": "^4.1.2",
|
|
22
|
+
"prop-types": "^15.7.2"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"bpk-storybook-utils": "^1.1.9"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-select",
|
|
3
|
+
"version": "5.1.10",
|
|
4
|
+
"description": "Backpack select component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-mixins": "^31.1.1",
|
|
18
|
+
"bpk-react-utils": "^4.1.2",
|
|
19
|
+
"prop-types": "^15.7.2"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"bpk-storybook-utils": "^1.1.9"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-skip-link",
|
|
3
|
+
"version": "2.1.10",
|
|
4
|
+
"description": "Backpack skip-link component.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"peerDependencies": {
|
|
13
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"bpk-mixins": "^31.1.1",
|
|
17
|
+
"bpk-react-utils": "^4.1.2",
|
|
18
|
+
"prop-types": "^15.5.8"
|
|
19
|
+
},
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"registry": "https://registry.npmjs.org/"
|
|
22
|
+
},
|
|
23
|
+
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e"
|
|
24
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-slider",
|
|
3
|
+
"version": "3.1.10",
|
|
4
|
+
"description": "Backpack slider component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@skyscanner/bpk-foundations-web": "^8.0.0",
|
|
18
|
+
"bpk-mixins": "^31.1.1",
|
|
19
|
+
"bpk-react-utils": "^4.1.2",
|
|
20
|
+
"prop-types": "^15.7.2",
|
|
21
|
+
"react-slider": "^1.3.1"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"bpk-component-rtl-toggle": "^3.1.10"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-spinner",
|
|
3
|
+
"version": "5.1.10",
|
|
4
|
+
"description": "Backpack spinner components.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@skyscanner/bpk-svgs": "^14.1.9",
|
|
18
|
+
"bpk-mixins": "^31.1.1",
|
|
19
|
+
"bpk-react-utils": "^4.1.2",
|
|
20
|
+
"prop-types": "^15.7.2"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-star-rating",
|
|
3
|
+
"version": "3.1.11",
|
|
4
|
+
"description": "Backpack rating star component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-component-icon": "^9.2.11",
|
|
18
|
+
"bpk-mixins": "^31.1.1",
|
|
19
|
+
"bpk-react-utils": "^4.1.2",
|
|
20
|
+
"prop-types": "^15.7.2"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"bpk-component-table": "^3.1.10",
|
|
27
|
+
"bpk-storybook-utils": "^1.1.9"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -93,7 +93,12 @@ const BpkStarRating = (props: Props) => {
|
|
|
93
93
|
: ratingLabel(rating, maxRating);
|
|
94
94
|
|
|
95
95
|
return (
|
|
96
|
-
<div
|
|
96
|
+
<div
|
|
97
|
+
{...rest}
|
|
98
|
+
role="img"
|
|
99
|
+
aria-label={label}
|
|
100
|
+
className={classNames.join(' ')}
|
|
101
|
+
>
|
|
97
102
|
{stars}
|
|
98
103
|
</div>
|
|
99
104
|
);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-switch",
|
|
3
|
+
"version": "2.1.11",
|
|
4
|
+
"description": "Backpack switch component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-mixins": "^31.1.1",
|
|
18
|
+
"bpk-react-utils": "^4.1.2",
|
|
19
|
+
"prop-types": "^15.5.8"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-table",
|
|
3
|
+
"version": "3.1.10",
|
|
4
|
+
"description": "Backpack table component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-mixins": "^31.1.1",
|
|
18
|
+
"bpk-react-utils": "^4.1.2",
|
|
19
|
+
"prop-types": "^15.7.2"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-text",
|
|
3
|
+
"version": "7.0.4",
|
|
4
|
+
"description": "Backpack text component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-mixins": "^31.1.1",
|
|
18
|
+
"bpk-react-utils": "^4.1.2",
|
|
19
|
+
"prop-types": "^15.7.2"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-textarea",
|
|
3
|
+
"version": "4.2.10",
|
|
4
|
+
"description": "Backpack textarea component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-mixins": "^31.1.1",
|
|
18
|
+
"bpk-react-utils": "^4.1.2",
|
|
19
|
+
"prop-types": "^15.7.2"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"bpk-component-label": "^5.1.10",
|
|
23
|
+
"bpk-storybook-utils": "^1.1.9"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-theme-toggle",
|
|
3
|
+
"version": "3.1.11",
|
|
4
|
+
"description": "Backpack theme toggle component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@skyscanner/bpk-foundations-web": "^8.0.0",
|
|
18
|
+
"bpk-component-label": "^5.1.10",
|
|
19
|
+
"bpk-component-select": "^5.1.10",
|
|
20
|
+
"bpk-mixins": "^31.1.1",
|
|
21
|
+
"bpk-react-utils": "^4.1.2",
|
|
22
|
+
"prop-types": "^15.7.2"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import React from 'react';
|
|
20
|
-
import Konami from 'konami';
|
|
21
20
|
|
|
22
21
|
import BpkLabel from '../../bpk-component-label';
|
|
23
22
|
import BpkSelect from '../../bpk-component-select';
|
|
@@ -48,17 +47,10 @@ class BpkThemeToggle extends React.Component {
|
|
|
48
47
|
|
|
49
48
|
componentDidMount() {
|
|
50
49
|
document.addEventListener('keydown', this.handleKeyDown);
|
|
51
|
-
this.easterEgg = new Konami(() => {
|
|
52
|
-
this.konamiInterval = setInterval(this.cycleTheme, 200);
|
|
53
|
-
});
|
|
54
50
|
}
|
|
55
51
|
|
|
56
52
|
componentWillUnmount() {
|
|
57
53
|
document.removeEventListener('keydown', this.handleKeyDown);
|
|
58
|
-
|
|
59
|
-
if (this.konamiInterval) {
|
|
60
|
-
clearInterval(this.konamiInterval);
|
|
61
|
-
}
|
|
62
54
|
}
|
|
63
55
|
|
|
64
56
|
handleKeyDown = (e) => {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-ticket",
|
|
3
|
+
"version": "4.1.11",
|
|
4
|
+
"description": "Backpack ticket component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-mixins": "^31.1.1",
|
|
18
|
+
"bpk-react-utils": "^4.1.2",
|
|
19
|
+
"prop-types": "^15.7.2"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"bpk-component-button": "^6.2.5",
|
|
26
|
+
"bpk-component-icon": "^9.2.11"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -39,7 +39,7 @@ const App = () => (
|
|
|
39
39
|
| padded | bool | false | true |
|
|
40
40
|
| portalStyle | object | false | null |
|
|
41
41
|
| portalClassName | string | false | null |
|
|
42
|
-
| popperModifiers | object
|
|
42
|
+
| popperModifiers | arrayOf(object) | false | null |
|
|
43
43
|
| renderTarget | func | false | null |
|
|
44
44
|
| type | oneOf(`TOOLTIP_TYPES.light`, `TOOLTIP_TYPES.dark`) | false | `TOOLTIP_TYPES.light` |
|
|
45
45
|
|
|
@@ -53,4 +53,4 @@ The label will be used on the `target` element, so any existing `aria-label` att
|
|
|
53
53
|
|
|
54
54
|
#### `popperModifiers`
|
|
55
55
|
|
|
56
|
-
Please refer to the [documentation](https://
|
|
56
|
+
Please refer to the [documentation](https://popper.js.org/docs/v2/modifiers/) for the underlying positioning library "Popper.js". You can achieve various behaviours such as allowing the tooltip to overflow the viewport etc.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-tooltip",
|
|
3
|
+
"version": "7.0.0",
|
|
4
|
+
"description": "Backpack tooltip component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@popperjs/core": "^2.11.5",
|
|
18
|
+
"bpk-mixins": "^31.1.1",
|
|
19
|
+
"bpk-react-utils": "^4.1.2",
|
|
20
|
+
"prop-types": "^15.7.2"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@skyscanner/bpk-foundations-web": "^8.0.0",
|
|
27
|
+
"bpk-component-text": "^7.0.4"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -72,7 +72,12 @@ const BpkTooltip = (props: TooltipProps) => {
|
|
|
72
72
|
className={classNames}
|
|
73
73
|
{...rest}
|
|
74
74
|
>
|
|
75
|
-
<span
|
|
75
|
+
<span
|
|
76
|
+
id={ARROW_ID}
|
|
77
|
+
data-popper-arrow
|
|
78
|
+
className={arrowClassNames}
|
|
79
|
+
role="presentation"
|
|
80
|
+
/>
|
|
76
81
|
<div className={innerClassNames}>{children}</div>
|
|
77
82
|
</section>
|
|
78
83
|
</TransitionInitialMount>
|