@skyscanner/backpack-web 0.0.1 → 0.0.2
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 +100 -0
- package/bpk-component-accordion/package.json +4 -4
- package/bpk-component-accordion/src/BpkAccordionItem.js +1 -1
- package/bpk-component-aria-live/package.json +3 -3
- package/bpk-component-autosuggest/package.json +3 -3
- package/bpk-component-badge/package.json +2 -2
- package/bpk-component-banner-alert/package.json +4 -4
- package/bpk-component-barchart/examples.js +2 -2
- package/bpk-component-barchart/package.json +2 -2
- package/bpk-component-breadcrumb/package.json +3 -3
- package/bpk-component-calendar/package.json +4 -4
- package/bpk-component-card/examples.js +1 -1
- package/bpk-component-card/package.json +2 -2
- package/bpk-component-checkbox/package.json +2 -2
- package/bpk-component-chip/examples.js +4 -5
- package/bpk-component-chip/package.json +4 -4
- package/bpk-component-chip/src/BpkSelectableChip.js +1 -1
- package/bpk-component-close-button/package.json +2 -2
- package/bpk-component-datatable/package.json +2 -2
- package/bpk-component-datepicker/package.json +5 -5
- package/bpk-component-dialog/examples.js +2 -2
- package/bpk-component-dialog/package.json +5 -5
- package/bpk-component-drawer/examples.js +2 -2
- package/bpk-component-drawer/package.json +4 -4
- package/bpk-component-fieldset/package.json +7 -7
- package/bpk-component-flare/examples.js +3 -3
- package/bpk-component-flare/package.json +2 -2
- package/bpk-component-form-validation/package.json +4 -4
- package/bpk-component-horizontal-nav/package.json +2 -2
- package/bpk-component-icon/examples.js +5 -5
- package/bpk-component-icon/package.json +2 -2
- package/bpk-component-image/examples.js +4 -4
- package/bpk-component-image/package.json +2 -2
- package/bpk-component-input/package.json +3 -3
- package/bpk-component-loading-button/package.json +2 -2
- package/bpk-component-map/package.json +3 -3
- package/bpk-component-map/src/BpkPriceMarker.js +3 -7
- package/bpk-component-modal/examples.js +2 -2
- package/bpk-component-modal/package.json +5 -5
- package/bpk-component-navigation-bar/package.json +4 -4
- package/bpk-component-navigation-bar/src/BpkNavigationBar.js +2 -2
- package/bpk-component-navigation-stack/package.json +3 -3
- package/bpk-component-nudger/package.json +2 -2
- package/bpk-component-overlay/package.json +3 -3
- package/bpk-component-pagination/package.json +2 -2
- package/bpk-component-phone-input/package.json +5 -5
- package/bpk-component-popover/examples.js +2 -2
- package/bpk-component-popover/package.json +4 -4
- package/bpk-component-popover/src/BpkPopover.js +2 -2
- package/bpk-component-rating/package.json +2 -2
- package/bpk-component-rating/src/BpkRating.js +14 -8
- package/bpk-component-scrollable-calendar/package.json +3 -3
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +2 -3
- package/bpk-component-section-list/package.json +3 -3
- package/bpk-component-section-list/src/BpkSectionListSection.js +2 -4
- package/bpk-component-star-rating/package.json +2 -2
- package/bpk-component-text/examples.js +17 -17
- package/bpk-component-text/package.json +1 -1
- package/bpk-component-text/src/BpkText.js +1 -1
- package/bpk-component-ticket/package.json +2 -2
- package/bpk-component-tooltip/examples.js +2 -2
- package/bpk-component-tooltip/package.json +2 -2
- package/package.json +2 -2
- package/bpk-component-heading/README.md +0 -31
- package/bpk-component-heading/examples.js +0 -36
- package/bpk-component-heading/index.js +0 -23
- package/bpk-component-heading/package.json +0 -25
- package/bpk-component-heading/src/BpkHeading.js +0 -70
- package/bpk-component-heading/src/BpkHeading.module.css +0 -18
- package/bpk-component-heading/src/BpkHeading.module.scss +0 -49
- package/bpk-component-paragraph/README.md +0 -28
- package/bpk-component-paragraph/examples.js +0 -46
- package/bpk-component-paragraph/index.js +0 -23
- package/bpk-component-paragraph/package.json +0 -25
- package/bpk-component-paragraph/src/BpkParagraph.js +0 -55
- package/bpk-component-paragraph/src/BpkParagraph.module.css +0 -18
- package/bpk-component-paragraph/src/BpkParagraph.module.scss +0 -25
- package/bpk-tether/.eslintrc +0 -6
- package/bpk-tether/README.md +0 -52
- package/bpk-tether/index.js +0 -24
- package/bpk-tether/package.json +0 -19
- package/bpk-tether/src/TetherWrapper.js +0 -30
- package/bpk-tether/src/applyRTLTransforms.js +0 -49
- package/bpk-tether/src/getArrowPositionCallback.js +0 -65
package/README.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Backpack Design System
|
|
2
|
+
|
|
3
|
+
> Backpack is a collection of design resources, reusable components and guidelines for creating Skyscanner's products.
|
|
4
|
+
|
|
5
|
+
[](https://github.com/Skyscanner/backpack/actions)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Quick links
|
|
9
|
+
|
|
10
|
+
- [Documentation](https://backpack.github.io/)
|
|
11
|
+
- [Changelog](./CHANGELOG.md)
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
### Installing packages
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
npm install [package-name] --save-dev
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Contributing
|
|
22
|
+
|
|
23
|
+
To contribute please see [contributing.md](CONTRIBUTING.md).
|
|
24
|
+
|
|
25
|
+
## List of packages
|
|
26
|
+
|
|
27
|
+
| Component | Version |
|
|
28
|
+
|--------|-------|
|
|
29
|
+
| [`bpk-component-accordion`](/packages/bpk-component-accordion) | [](http://badge.fury.io/js/bpk-component-accordion) |
|
|
30
|
+
| [`bpk-component-autosuggest`](/packages/bpk-component-autosuggest) | [](http://badge.fury.io/js/bpk-component-autosuggest) |
|
|
31
|
+
| [`bpk-component-badge`](/packages/bpk-component-badge) | [](http://badge.fury.io/js/bpk-component-badge) |
|
|
32
|
+
| [`bpk-component-banner-alert`](/packages/bpk-component-banner-alert) | [](http://badge.fury.io/js/bpk-component-banner-alert) |
|
|
33
|
+
| [`bpk-component-barchart`](/packages/bpk-component-barchart) | [](http://badge.fury.io/js/bpk-component-barchart) |
|
|
34
|
+
| [`bpk-component-blockquote`](/packages/bpk-component-blockquote) | [](http://badge.fury.io/js/bpk-component-blockquote) |
|
|
35
|
+
| [`bpk-component-breadcrumb`](/packages/bpk-component-breadcrumb) | [](http://badge.fury.io/js/bpk-component-breadcrumb) |
|
|
36
|
+
| [`bpk-component-breakpoint`](/packages/bpk-component-breakpoint) | [](http://badge.fury.io/js/bpk-component-breakpoint) |
|
|
37
|
+
| [`bpk-component-button`](/packages/bpk-component-button) | [](http://badge.fury.io/js/bpk-component-button) |
|
|
38
|
+
| [`bpk-component-calendar`](/packages/bpk-component-calendar) | [](http://badge.fury.io/js/bpk-component-calendar) |
|
|
39
|
+
| [`bpk-component-card`](/packages/bpk-component-card) | [](http://badge.fury.io/js/bpk-component-card) |
|
|
40
|
+
| [`bpk-component-checkbox`](/packages/bpk-component-checkbox) | [](http://badge.fury.io/js/bpk-component-checkbox) |
|
|
41
|
+
| [`bpk-component-chip`](/packages/bpk-component-chip) | [](http://badge.fury.io/js/bpk-component-chip) |
|
|
42
|
+
| [`bpk-component-close-button`](/packages/bpk-component-close-button) | [](http://badge.fury.io/js/bpk-component-close-button) |
|
|
43
|
+
| [`bpk-component-code`](/packages/bpk-component-code) | [](http://badge.fury.io/js/bpk-component-code) |
|
|
44
|
+
| [`bpk-component-content-container`](/packages/bpk-component-content-container) | [](http://badge.fury.io/js/bpk-component-content-container) |
|
|
45
|
+
| [`bpk-component-datatable`](/packages/bpk-component-datatable) | [](http://badge.fury.io/js/bpk-component-datatable) |
|
|
46
|
+
| [`bpk-component-datepicker`](/packages/bpk-component-datepicker) | [](http://badge.fury.io/js/bpk-component-datepicker) |
|
|
47
|
+
| [`bpk-component-description-list`](/packages/bpk-component-description-list) | [](http://badge.fury.io/js/bpk-component-description-list) |
|
|
48
|
+
| [`bpk-component-dialog`](/packages/bpk-component-dialog) | [](http://badge.fury.io/js/bpk-component-dialog) |
|
|
49
|
+
| [`bpk-component-drawer`](/packages/bpk-component-drawer) | [](http://badge.fury.io/js/bpk-component-drawer) |
|
|
50
|
+
| [`bpk-component-fieldset`](/packages/bpk-component-fieldset) | [](http://badge.fury.io/js/bpk-component-fieldset) |
|
|
51
|
+
| [`bpk-component-form-validation`](/packages/bpk-component-form-validation) | [](http://badge.fury.io/js/bpk-component-form-validation) |
|
|
52
|
+
| [`bpk-component-grid`](/packages/bpk-component-grid) | [](http://badge.fury.io/js/bpk-component-grid) |
|
|
53
|
+
| [`bpk-component-grid-toggle`](/packages/bpk-component-grid-toggle) | [](http://badge.fury.io/js/bpk-component-grid-toggle) |
|
|
54
|
+
| [`bpk-component-horizontal-nav`](/packages/bpk-component-horizontal-nav) | [](http://badge.fury.io/js/bpk-component-horizontal-nav) |
|
|
55
|
+
| [`bpk-component-icon`](/packages/bpk-component-icon) | [](http://badge.fury.io/js/bpk-component-icon) |
|
|
56
|
+
| [`bpk-component-image`](/packages/bpk-component-image) | [](http://badge.fury.io/js/bpk-component-image) |
|
|
57
|
+
| [`bpk-component-infinite-scroll`](/packages/bpk-component-infinite-scroll) | [](http://badge.fury.io/js/bpk-component-infinite-scroll) |
|
|
58
|
+
| [`bpk-component-input`](/packages/bpk-component-input) | [](http://badge.fury.io/js/bpk-component-input) |
|
|
59
|
+
| [`bpk-component-label`](/packages/bpk-component-label) | [](http://badge.fury.io/js/bpk-component-label) |
|
|
60
|
+
| [`bpk-component-link`](/packages/bpk-component-link) | [](http://badge.fury.io/js/bpk-component-link) |
|
|
61
|
+
| [`bpk-component-list`](/packages/bpk-component-list) | [](http://badge.fury.io/js/bpk-component-list) |
|
|
62
|
+
| [`bpk-component-loading-button`](/packages/bpk-component-loading-button) | [](http://badge.fury.io/js/bpk-component-loading-button) |
|
|
63
|
+
| [`bpk-component-mobile-scroll-container`](/packages/bpk-component-mobile-scroll-container) | [](http://badge.fury.io/js/bpk-component-mobile-scroll-container) |
|
|
64
|
+
| [`bpk-component-modal`](/packages/bpk-component-modal) | [](http://badge.fury.io/js/bpk-component-modal) |
|
|
65
|
+
| [`bpk-component-navigation-bar`](/packages/bpk-component-navigation-bar) | [](http://badge.fury.io/js/bpk-component-navigation-bar) |
|
|
66
|
+
| [`bpk-component-navigation-stack`](/packages/bpk-component-navigation-stack) | [](http://badge.fury.io/js/bpk-component-navigation-stack) |
|
|
67
|
+
| [`bpk-component-nudger`](/packages/bpk-component-nudger) | [](http://badge.fury.io/js/bpk-component-nudger) |
|
|
68
|
+
| [`bpk-component-pagination`](/packages/bpk-component-pagination) | [](http://badge.fury.io/js/bpk-component-pagination) |
|
|
69
|
+
| [`bpk-component-panel`](/packages/bpk-component-panel) | [](http://badge.fury.io/js/bpk-component-panel) |
|
|
70
|
+
| [`bpk-component-phone-input`](/packages/bpk-component-phone-input) | [](http://badge.fury.io/js/bpk-component-phone-input) |
|
|
71
|
+
| [`bpk-component-popover`](/packages/bpk-component-popover) | [](http://badge.fury.io/js/bpk-component-popover) |
|
|
72
|
+
| [`bpk-component-progress`](/packages/bpk-component-progress) | [](http://badge.fury.io/js/bpk-component-progress) |
|
|
73
|
+
| [`bpk-component-radio`](/packages/bpk-component-radio) | [](http://badge.fury.io/js/bpk-component-radio) |
|
|
74
|
+
| [`bpk-component-rtl-toggle`](/packages/bpk-component-rtl-toggle) | [](http://badge.fury.io/js/bpk-component-rtl-toggle) |
|
|
75
|
+
| [`bpk-component-section-list`](/packages/bpk-component-section-list) | [](http://badge.fury.io/js/bpk-component-section-list) |
|
|
76
|
+
| [`bpk-component-select`](/packages/bpk-component-select) | [](http://badge.fury.io/js/bpk-component-select) |
|
|
77
|
+
| [`bpk-component-slider`](/packages/bpk-component-slider) | [](http://badge.fury.io/js/bpk-component-slider) |
|
|
78
|
+
| [`bpk-component-spinner`](/packages/bpk-component-spinner) | [](http://badge.fury.io/js/bpk-component-spinner) |
|
|
79
|
+
| [`bpk-component-star-rating`](/packages/bpk-component-star-rating) | [](http://badge.fury.io/js/bpk-component-star-rating) |
|
|
80
|
+
| [`bpk-component-table`](/packages/bpk-component-table) | [](http://badge.fury.io/js/bpk-component-table) |
|
|
81
|
+
| [`bpk-component-text`](/packages/bpk-component-text) | [](http://badge.fury.io/js/bpk-component-text) |
|
|
82
|
+
| [`bpk-component-textarea`](/packages/bpk-component-textarea) | [](http://badge.fury.io/js/bpk-component-textarea) |
|
|
83
|
+
| [`bpk-theming`](/packages/bpk-theming) | [](http://badge.fury.io/js/bpk-theming) |
|
|
84
|
+
| [`bpk-component-ticket`](/packages/bpk-component-ticket) | [](http://badge.fury.io/js/bpk-component-ticket) |
|
|
85
|
+
| [`bpk-component-tooltip`](/packages/bpk-component-tooltip) | [](http://badge.fury.io/js/bpk-component-tooltip) |
|
|
86
|
+
| [`bpk-react-utils`](/packages/bpk-react-utils) | [](http://badge.fury.io/js/bpk-react-utils) |
|
|
87
|
+
|
|
88
|
+
## List of external packages
|
|
89
|
+
|
|
90
|
+
These components are part of Backpack and are utilised by the components but live in the Foundations repository.
|
|
91
|
+
|
|
92
|
+
| Component | Version |
|
|
93
|
+
|--------|-------|
|
|
94
|
+
| [`bpk-mixins`](https://github.com/Skyscanner/backpack-foundations/tree/main/packages/bpk-mixins) | [](http://badge.fury.io/js/bpk-mixins) |
|
|
95
|
+
| [`bpk-stylesheets`](https://github.com/Skyscanner/backpack-foundations/tree/main/packages/bpk-stylesheets) | [](http://badge.fury.io/js/bpk-stylesheets) |
|
|
96
|
+
| [`@skyscanner/bpk-svgs`](https://github.com/Skyscanner/backpack-foundations/tree/main/packages/bpk-svgs) | [](https://badge.fury.io/js/%40skyscanner%2Fbpk-svgs) |
|
|
97
|
+
| [`@skyscanner/bpk-foundations-web`](https://github.com/Skyscanner/backpack-foundations/tree/main/packages/bpk-foundations-web) | [](https://badge.fury.io/js/%40skyscanner%2Fbpk-foundations-web) |
|
|
98
|
+
|
|
99
|
+
## Contact
|
|
100
|
+
- backpack@skyscanner.net
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-accordion",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Backpack accordion component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"bpk-animate-height": "^4.1.0",
|
|
18
|
-
"bpk-component-icon": "^9.2.
|
|
19
|
-
"bpk-component-text": "^6.1.
|
|
18
|
+
"bpk-component-icon": "^9.2.1",
|
|
19
|
+
"bpk-component-text": "^6.1.1",
|
|
20
20
|
"bpk-mixins": "^26.1.0",
|
|
21
21
|
"bpk-react-utils": "^4.1.0",
|
|
22
22
|
"prop-types": "^15.7.2"
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@skyscanner/bpk-foundations-web": "^5.0.0",
|
|
29
|
-
"bpk-component-checkbox": "^4.1.
|
|
29
|
+
"bpk-component-checkbox": "^4.1.1"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-aria-live",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Backpack aria-live component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"prop-types": "^15.5.8"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"bpk-component-chip": "^5.2.
|
|
21
|
+
"bpk-component-chip": "^5.2.1",
|
|
22
22
|
"bpk-component-code": "^3.1.0",
|
|
23
|
-
"bpk-component-fieldset": "^4.1.
|
|
23
|
+
"bpk-component-fieldset": "^4.1.1",
|
|
24
24
|
"bpk-component-select": "^5.1.0",
|
|
25
25
|
"bpk-component-switch": "^2.1.0"
|
|
26
26
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-autosuggest",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "Backpack autosuggest component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-component-input": "^6.1.
|
|
17
|
+
"bpk-component-input": "^6.1.1",
|
|
18
18
|
"bpk-mixins": "^26.1.0",
|
|
19
19
|
"bpk-react-utils": "^4.1.0",
|
|
20
20
|
"prop-types": "^15.7.2",
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"react": "^16.3.0 || ^17.0.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"bpk-component-icon": "^9.2.
|
|
27
|
+
"bpk-component-icon": "^9.2.1"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-badge",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Backpack badge component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@skyscanner/bpk-foundations-web": "^5.0.0",
|
|
26
|
-
"bpk-component-icon": "^9.2.
|
|
26
|
+
"bpk-component-icon": "^9.2.1",
|
|
27
27
|
"bpk-storybook-utils": "^1.1.0"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-banner-alert",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "Backpack banner alert component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@skyscanner/bpk-foundations-web": "^5.0.0",
|
|
18
18
|
"bpk-animate-height": "^4.1.0",
|
|
19
|
-
"bpk-component-close-button": "^3.1.
|
|
20
|
-
"bpk-component-icon": "^9.2.
|
|
19
|
+
"bpk-component-close-button": "^3.1.1",
|
|
20
|
+
"bpk-component-icon": "^9.2.1",
|
|
21
21
|
"bpk-mixins": "^26.1.0",
|
|
22
22
|
"bpk-react-utils": "^4.1.0",
|
|
23
23
|
"prop-types": "^15.7.2",
|
|
24
24
|
"react-transition-group": "^2.5.3"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"bpk-component-aria-live": "^2.1.
|
|
27
|
+
"bpk-component-aria-live": "^2.1.1",
|
|
28
28
|
"bpk-component-button": "^5.1.0",
|
|
29
29
|
"bpk-storybook-utils": "^1.1.0"
|
|
30
30
|
},
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
import React from 'react';
|
|
22
22
|
import { number } from 'prop-types';
|
|
23
23
|
import { cssModules, withDefaultProps } from 'bpk-react-utils';
|
|
24
|
-
import BpkText from 'bpk-component-text';
|
|
24
|
+
import BpkText, { TEXT_STYLES } from 'bpk-component-text';
|
|
25
25
|
import { updateOnDirectionChange } from 'bpk-component-rtl-toggle';
|
|
26
26
|
import { lineHeightSm } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
27
27
|
import { scaleLinear, scaleBand } from 'd3-scale';
|
|
@@ -40,7 +40,7 @@ import BpkBarchart, {
|
|
|
40
40
|
const getClassName = cssModules(STYLES);
|
|
41
41
|
|
|
42
42
|
const Heading = withDefaultProps(BpkText, {
|
|
43
|
-
textStyle:
|
|
43
|
+
textStyle: TEXT_STYLES.subheading,
|
|
44
44
|
tagName: 'h1',
|
|
45
45
|
className: getClassName('bpk-heading'),
|
|
46
46
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-barchart",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "Backpack bar chart component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -30,6 +30,6 @@
|
|
|
30
30
|
"bpk-component-breakpoint": "^3.1.0",
|
|
31
31
|
"bpk-component-content-container": "^4.1.0",
|
|
32
32
|
"bpk-component-rtl-toggle": "^3.1.0",
|
|
33
|
-
"bpk-component-text": "^6.1.
|
|
33
|
+
"bpk-component-text": "^6.1.1"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-breadcrumb",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Backpack breadcrumb component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-component-icon": "^9.2.
|
|
17
|
+
"bpk-component-icon": "^9.2.1",
|
|
18
18
|
"bpk-component-link": "^3.1.0",
|
|
19
|
-
"bpk-component-text": "^6.1.
|
|
19
|
+
"bpk-component-text": "^6.1.1",
|
|
20
20
|
"bpk-mixins": "^26.1.0",
|
|
21
21
|
"bpk-react-utils": "^4.1.0",
|
|
22
22
|
"prop-types": "^15.7.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-calendar",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.1",
|
|
4
4
|
"description": "Backpack calendar component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@skyscanner/bpk-foundations-web": "^5.0.0",
|
|
18
|
-
"bpk-component-aria-live": "^2.1.
|
|
19
|
-
"bpk-component-icon": "^9.2.
|
|
18
|
+
"bpk-component-aria-live": "^2.1.1",
|
|
19
|
+
"bpk-component-icon": "^9.2.1",
|
|
20
20
|
"bpk-component-select": "^5.1.0",
|
|
21
21
|
"bpk-mixins": "^26.1.0",
|
|
22
22
|
"bpk-react-utils": "^4.1.0",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"bpk-component-button": "^5.1.0",
|
|
31
|
-
"bpk-component-text": "^6.1.
|
|
31
|
+
"bpk-component-text": "^6.1.1",
|
|
32
32
|
"bpk-storybook-utils": "^1.1.0"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -27,7 +27,7 @@ const shortContent = 'Book your next trip on skyscanner.net.';
|
|
|
27
27
|
|
|
28
28
|
const longContent = (
|
|
29
29
|
<Fragment>
|
|
30
|
-
<BpkText tagName="h3" textStyle={TEXT_STYLES.
|
|
30
|
+
<BpkText tagName="h3" textStyle={TEXT_STYLES.bodyLongform}>
|
|
31
31
|
Let's explore
|
|
32
32
|
</BpkText>
|
|
33
33
|
<BpkText tagName="p">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-card",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Backpack card component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"bpk-component-link": "^3.1.0",
|
|
23
|
-
"bpk-component-text": "^6.1.
|
|
23
|
+
"bpk-component-text": "^6.1.1"
|
|
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-checkbox",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Backpack checkbox component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-component-icon": "^9.2.
|
|
17
|
+
"bpk-component-icon": "^9.2.1",
|
|
18
18
|
"bpk-mixins": "^26.1.0",
|
|
19
19
|
"bpk-react-utils": "^4.1.0",
|
|
20
20
|
"prop-types": "^15.7.2"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
import React from 'react';
|
|
22
22
|
import PropTypes from 'prop-types';
|
|
23
23
|
import { cssModules } from 'bpk-react-utils';
|
|
24
|
-
import BpkText, { TEXT_STYLES
|
|
24
|
+
import BpkText, { TEXT_STYLES } from 'bpk-component-text';
|
|
25
25
|
import BeachIconSm from 'bpk-component-icon/sm/beach';
|
|
26
26
|
import CarWashIconSm from 'bpk-component-icon/sm/car-wash';
|
|
27
27
|
import PlusIconSm from 'bpk-component-icon/sm/plus';
|
|
@@ -178,8 +178,7 @@ class StatefulRadioGroupChipsExample extends React.Component<
|
|
|
178
178
|
id="favorite-color-label"
|
|
179
179
|
aria-hidden
|
|
180
180
|
tagName="h1"
|
|
181
|
-
textStyle={TEXT_STYLES.
|
|
182
|
-
weight={WEIGHT_STYLES.bold}
|
|
181
|
+
textStyle={TEXT_STYLES.heading4}
|
|
183
182
|
>
|
|
184
183
|
Favourite colour
|
|
185
184
|
</BpkText>
|
|
@@ -309,7 +308,7 @@ const WithIconsExample = () => (
|
|
|
309
308
|
|
|
310
309
|
const AllTypesExample = () => (
|
|
311
310
|
<div>
|
|
312
|
-
<BpkText textStyle={TEXT_STYLES.
|
|
311
|
+
<BpkText textStyle={TEXT_STYLES.bodyLongform} tagName="h2">
|
|
313
312
|
Selectable chips
|
|
314
313
|
</BpkText>
|
|
315
314
|
{Object.keys(CHIP_TYPES).map((chipType) => (
|
|
@@ -318,7 +317,7 @@ const AllTypesExample = () => (
|
|
|
318
317
|
<AllSelectableChips type={chipType} />
|
|
319
318
|
</>
|
|
320
319
|
))}
|
|
321
|
-
<BpkText textStyle={TEXT_STYLES.
|
|
320
|
+
<BpkText textStyle={TEXT_STYLES.bodyLongform} tagName="h2">
|
|
322
321
|
Dismissible chips
|
|
323
322
|
</BpkText>
|
|
324
323
|
{Object.keys(CHIP_TYPES).map((chipType) => (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-chip",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.1",
|
|
4
4
|
"description": "Backpack chip component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-component-icon": "^9.2.
|
|
17
|
+
"bpk-component-icon": "^9.2.1",
|
|
18
18
|
"bpk-mixins": "^26.1.0",
|
|
19
19
|
"bpk-react-utils": "^4.1.0",
|
|
20
20
|
"prop-types": "^15.7.2"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"react": "^16.3.0 || ^17.0.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"bpk-component-aria-live": "^2.1.
|
|
27
|
-
"bpk-component-text": "^6.1.
|
|
26
|
+
"bpk-component-aria-live": "^2.1.1",
|
|
27
|
+
"bpk-component-text": "^6.1.1"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -77,7 +77,7 @@ const BpkSelectableChip = (props: Props) => {
|
|
|
77
77
|
{leadingAccessoryView}
|
|
78
78
|
</span>
|
|
79
79
|
)}
|
|
80
|
-
<BpkText textStyle={TEXT_STYLES.
|
|
80
|
+
<BpkText textStyle={TEXT_STYLES.footnote}>{children}</BpkText>
|
|
81
81
|
{trailingAccessoryView && (
|
|
82
82
|
<span className={getClassName('bpk-chip__trailing-accessory-view')}>
|
|
83
83
|
{trailingAccessoryView}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-close-button",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Backpack close button component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-component-icon": "^9.2.
|
|
17
|
+
"bpk-component-icon": "^9.2.1",
|
|
18
18
|
"bpk-mixins": "^26.1.0",
|
|
19
19
|
"bpk-react-utils": "^4.1.0",
|
|
20
20
|
"prop-types": "^15.7.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-datatable",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Backpack datatable component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-component-icon": "^9.2.
|
|
17
|
+
"bpk-component-icon": "^9.2.1",
|
|
18
18
|
"bpk-mixins": "^26.1.0",
|
|
19
19
|
"bpk-react-utils": "^4.1.0",
|
|
20
20
|
"lodash": "^4.17.20",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-datepicker",
|
|
3
|
-
"version": "15.2.
|
|
3
|
+
"version": "15.2.1",
|
|
4
4
|
"description": "Backpack datepicker component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"bpk-component-breakpoint": "^3.1.0",
|
|
18
|
-
"bpk-component-calendar": "^11.1.
|
|
19
|
-
"bpk-component-input": "^6.1.
|
|
20
|
-
"bpk-component-modal": "^3.1.
|
|
21
|
-
"bpk-component-popover": "^4.1.
|
|
18
|
+
"bpk-component-calendar": "^11.1.1",
|
|
19
|
+
"bpk-component-input": "^6.1.1",
|
|
20
|
+
"bpk-component-modal": "^3.1.1",
|
|
21
|
+
"bpk-component-popover": "^4.1.1",
|
|
22
22
|
"bpk-mixins": "^26.1.0",
|
|
23
23
|
"bpk-react-utils": "^4.1.0",
|
|
24
24
|
"prop-types": "^15.7.2"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
22
|
import React, { Component, type Node } from 'react';
|
|
23
|
-
import BpkText from 'bpk-component-text';
|
|
23
|
+
import BpkText, { TEXT_STYLES } from 'bpk-component-text';
|
|
24
24
|
import BpkButton from 'bpk-component-button';
|
|
25
25
|
import TickIcon from 'bpk-component-icon/lg/tick';
|
|
26
26
|
import InfoIcon from 'bpk-component-icon/lg/information-circle';
|
|
@@ -34,7 +34,7 @@ import BpkDialog, { HEADER_ICON_TYPES } from './index';
|
|
|
34
34
|
const getClassName = cssModules(STYLES);
|
|
35
35
|
|
|
36
36
|
const Paragraph = withDefaultProps(BpkText, {
|
|
37
|
-
textStyle:
|
|
37
|
+
textStyle: TEXT_STYLES.bodyDefault,
|
|
38
38
|
tagName: 'p',
|
|
39
39
|
className: getClassName('bpk-dialog-paragraph'),
|
|
40
40
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-dialog",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Backpack dialog component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-component-close-button": "^3.1.
|
|
18
|
-
"bpk-component-flare": "^2.1.
|
|
17
|
+
"bpk-component-close-button": "^3.1.1",
|
|
18
|
+
"bpk-component-flare": "^2.1.1",
|
|
19
19
|
"bpk-mixins": "^26.1.0",
|
|
20
20
|
"bpk-react-utils": "^4.1.0",
|
|
21
21
|
"bpk-scrim-utils": "^5.1.0",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"bpk-component-button": "^5.1.0",
|
|
29
|
-
"bpk-component-icon": "^9.2.
|
|
30
|
-
"bpk-component-text": "^6.1.
|
|
29
|
+
"bpk-component-icon": "^9.2.1",
|
|
30
|
+
"bpk-component-text": "^6.1.1"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -22,7 +22,7 @@ import PropTypes from 'prop-types';
|
|
|
22
22
|
import React, { Component } from 'react';
|
|
23
23
|
import { cssModules, withDefaultProps } from 'bpk-react-utils';
|
|
24
24
|
import BpkButton from 'bpk-component-button';
|
|
25
|
-
import BpkText from 'bpk-component-text';
|
|
25
|
+
import BpkText, { TEXT_STYLES } from 'bpk-component-text';
|
|
26
26
|
|
|
27
27
|
import STYLES from './examples.module.scss';
|
|
28
28
|
|
|
@@ -31,7 +31,7 @@ import BpkDrawer from './index';
|
|
|
31
31
|
const getClassName = cssModules(STYLES);
|
|
32
32
|
|
|
33
33
|
const Paragraph = withDefaultProps(BpkText, {
|
|
34
|
-
textStyle:
|
|
34
|
+
textStyle: TEXT_STYLES.bodyDefault,
|
|
35
35
|
tagName: 'p',
|
|
36
36
|
className: getClassName('bpk-drawer-paragraph'),
|
|
37
37
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-drawer",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Backpack drawer component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@skyscanner/bpk-foundations-web": "^5.0.0",
|
|
18
|
-
"bpk-component-close-button": "^3.1.
|
|
19
|
-
"bpk-component-icon": "^9.2.
|
|
18
|
+
"bpk-component-close-button": "^3.1.1",
|
|
19
|
+
"bpk-component-icon": "^9.2.1",
|
|
20
20
|
"bpk-component-link": "^3.1.0",
|
|
21
21
|
"bpk-mixins": "^26.1.0",
|
|
22
22
|
"bpk-react-utils": "^4.1.0",
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"bpk-component-button": "^5.1.0",
|
|
32
|
-
"bpk-component-text": "^6.1.
|
|
32
|
+
"bpk-component-text": "^6.1.1"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-fieldset",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Backpack fieldset component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-component-form-validation": "^4.2.
|
|
17
|
+
"bpk-component-form-validation": "^4.2.1",
|
|
18
18
|
"bpk-component-label": "^5.1.0",
|
|
19
19
|
"bpk-mixins": "^26.1.0",
|
|
20
20
|
"bpk-react-utils": "^4.1.0",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"react": "^16.3.0 || ^17.0.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"bpk-component-autosuggest": "^6.1.
|
|
27
|
+
"bpk-component-autosuggest": "^6.1.1",
|
|
28
28
|
"bpk-component-button": "^5.1.0",
|
|
29
|
-
"bpk-component-calendar": "^11.1.
|
|
30
|
-
"bpk-component-checkbox": "^4.1.
|
|
31
|
-
"bpk-component-datepicker": "^15.2.
|
|
32
|
-
"bpk-component-input": "^6.1.
|
|
29
|
+
"bpk-component-calendar": "^11.1.1",
|
|
30
|
+
"bpk-component-checkbox": "^4.1.1",
|
|
31
|
+
"bpk-component-datepicker": "^15.2.1",
|
|
32
|
+
"bpk-component-input": "^6.1.1",
|
|
33
33
|
"bpk-component-select": "^5.1.0",
|
|
34
34
|
"bpk-component-textarea": "^4.2.0"
|
|
35
35
|
}
|