@skyscanner/backpack-web 9.2.0 → 11.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-animate-height/package.json +3 -3
- package/bpk-component-accordion/package.json +7 -7
- package/bpk-component-aria-live/README.md +2 -2
- package/bpk-component-aria-live/index.js +0 -1
- package/bpk-component-aria-live/package.json +8 -9
- package/bpk-component-aria-live/src/BpkAriaLive.js +21 -20
- package/bpk-component-autosuggest/package.json +4 -4
- package/bpk-component-badge/package.json +5 -5
- package/bpk-component-banner-alert/package.json +9 -9
- package/bpk-component-barchart/package.json +8 -8
- package/bpk-component-blockquote/package.json +2 -2
- package/bpk-component-breadcrumb/package.json +5 -5
- package/bpk-component-breakpoint/package.json +3 -3
- package/bpk-component-button/package.json +3 -3
- package/bpk-component-calendar/DOCS.md +1 -7
- package/bpk-component-calendar/README.md +0 -10
- package/bpk-component-calendar/index.js +0 -2
- package/bpk-component-calendar/package.json +9 -9
- package/bpk-component-calendar/src/BpkCalendarDate.js +0 -15
- package/bpk-component-calendar/src/BpkCalendarDate.module.scss +17 -50
- package/bpk-component-calendar/src/BpkCalendarGrid.module.scss +5 -5
- package/bpk-component-calendar/src/_variables.scss +1 -3
- package/bpk-component-card/package.json +4 -4
- package/bpk-component-checkbox/package.json +5 -5
- 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-cards/README.md +43 -0
- package/bpk-component-content-cards/index.js +21 -0
- package/bpk-component-content-cards/package.json +23 -0
- package/bpk-component-content-cards/src/BpkContentCard.js +83 -0
- package/bpk-component-content-cards/src/BpkContentCard.module.scss +87 -0
- package/bpk-component-content-cards/src/BpkContentCards.js +72 -0
- package/bpk-component-content-cards/src/BpkContentCards.module.css +18 -0
- package/bpk-component-content-cards/src/BpkContentCards.module.scss +51 -0
- package/bpk-component-content-container/package.json +2 -2
- package/bpk-component-datatable/README.md +78 -21
- package/bpk-component-datatable/package.json +5 -6
- package/bpk-component-datatable/src/BpkDataTable.js +176 -143
- package/bpk-component-datatable/src/BpkDataTable.module.scss +10 -14
- package/bpk-component-datatable/src/BpkDataTableColumn.js +37 -40
- package/bpk-component-datatable/src/BpkDataTableHeader.js +143 -0
- package/bpk-component-datatable/src/{BpkDataTableColumn.module.scss → BpkDataTableHeader.module.scss} +12 -11
- package/bpk-component-datatable/src/common-types.js +33 -11
- package/bpk-component-datatable/src/sort-types.js +6 -0
- package/bpk-component-datatable/src/utils.js +66 -9
- package/bpk-component-datepicker/package.json +9 -9
- package/bpk-component-description-list/package.json +2 -2
- package/bpk-component-dialog/package.json +8 -8
- package/bpk-component-drawer/package.json +9 -9
- package/bpk-component-fieldset/package.json +12 -12
- package/bpk-component-flare/package.json +4 -4
- package/bpk-component-floating-notification/README.md +0 -8
- package/bpk-component-floating-notification/index.js +0 -2
- package/bpk-component-floating-notification/package.json +5 -5
- package/bpk-component-floating-notification/src/BpkFloatingNotification.js +7 -26
- package/bpk-component-floating-notification/src/BpkFloatingNotification.module.scss +4 -17
- package/bpk-component-form-validation/package.json +10 -10
- package/bpk-component-graphic-promotion/{index.ts → index.js} +0 -0
- package/bpk-component-graphic-promotion/package.json +7 -6
- package/bpk-component-graphic-promotion/src/{BpkGraphicPromo.tsx → BpkGraphicPromo.js} +26 -16
- package/bpk-component-grid/package.json +2 -2
- package/bpk-component-grid-toggle/package.json +3 -3
- package/bpk-component-horizontal-nav/package.json +6 -6
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav.module.scss +2 -2
- package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.module.scss +13 -13
- package/bpk-component-icon/package.json +7 -7
- package/bpk-component-image/package.json +6 -6
- 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 +4 -4
- package/bpk-component-list/README.md +8 -5
- package/bpk-component-list/package.json +2 -2
- package/bpk-component-list/src/BpkList.js +18 -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 +3 -3
- package/bpk-component-modal/package.json +9 -9
- package/bpk-component-navigation-bar/package.json +8 -8
- package/bpk-component-navigation-bar/src/BpkNavigationBar.module.scss +2 -3
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.module.scss +4 -4
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.module.scss +3 -3
- package/bpk-component-nudger/package.json +7 -7
- 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 +9 -9
- package/bpk-component-popover/package.json +8 -8
- package/bpk-component-price/package.json +3 -3
- package/bpk-component-progress/package.json +5 -5
- package/bpk-component-radio/package.json +4 -4
- package/bpk-component-rating/package.json +4 -4
- package/bpk-component-rtl-toggle/package.json +2 -2
- package/bpk-component-scrollable-calendar/package.json +6 -6
- package/bpk-component-section-list/package.json +6 -6
- package/bpk-component-select/package.json +3 -3
- package/bpk-component-skip-link/package.json +2 -2
- package/bpk-component-slider/package.json +4 -4
- package/bpk-component-spinner/package.json +3 -3
- package/bpk-component-split-input/package.json +3 -3
- 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 +5 -5
- package/bpk-component-ticket/package.json +4 -4
- package/bpk-component-tooltip/package.json +4 -4
- package/bpk-scrim-utils/package.json +2 -2
- package/bpk-theming/package.json +2 -2
- package/package.json +4 -4
- package/bpk-component-datatable/src/bpkHeaderRenderer.js +0 -110
- package/bpk-component-datatable/src/sorter.js +0 -166
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo-test.tsx +0 -134
- package/bpk-component-graphic-promotion/src/accessibility-test.tsx +0 -147
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
transition: opacity $bpk-duration-base ease-in-out,
|
|
31
31
|
transform $bpk-duration-base ease-in-out;
|
|
32
32
|
border-radius: $bpk-border-radius-md;
|
|
33
|
-
background: $bpk-
|
|
34
|
-
color: $bpk-
|
|
33
|
+
background: $bpk-core-primary-day;
|
|
34
|
+
color: $bpk-text-on-dark-day;
|
|
35
35
|
box-shadow: $bpk-box-shadow-xl, $bpk-box-shadow-lg;
|
|
36
36
|
|
|
37
37
|
@include bpk-breakpoint-mobile {
|
|
@@ -67,30 +67,17 @@
|
|
|
67
67
|
min-height: 0;
|
|
68
68
|
margin: 0 0 auto auto;
|
|
69
69
|
padding: 0;
|
|
70
|
-
color: $bpk-
|
|
71
|
-
|
|
72
|
-
&--dark {
|
|
73
|
-
color: $bpk-link-color;
|
|
74
|
-
}
|
|
70
|
+
color: $bpk-text-on-dark-day;
|
|
75
71
|
}
|
|
76
72
|
|
|
77
73
|
&__icon {
|
|
78
74
|
margin: bpk-spacing-sm() bpk-spacing-md() 0 bpk-spacing-sm();
|
|
79
75
|
flex-shrink: 0;
|
|
80
76
|
text-align: bottom;
|
|
81
|
-
fill: $bpk-
|
|
82
|
-
|
|
83
|
-
&--dark {
|
|
84
|
-
fill: $bpk-color-sky-gray;
|
|
85
|
-
}
|
|
77
|
+
fill: $bpk-text-on-dark-day;
|
|
86
78
|
}
|
|
87
79
|
|
|
88
80
|
&__text {
|
|
89
81
|
margin-right: bpk-spacing-md();
|
|
90
82
|
}
|
|
91
|
-
|
|
92
|
-
&--dark {
|
|
93
|
-
background: $bpk-color-white;
|
|
94
|
-
color: $bpk-color-sky-gray;
|
|
95
|
-
}
|
|
96
83
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-form-validation",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
4
4
|
"description": "Backpack form-validation 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-animate-height": "^5.0.
|
|
18
|
-
"bpk-mixins": "^31.
|
|
17
|
+
"bpk-animate-height": "^5.0.4",
|
|
18
|
+
"bpk-mixins": "^31.6.3",
|
|
19
19
|
"bpk-react-utils": "^7.0.0",
|
|
20
20
|
"prop-types": "^15.7.2"
|
|
21
21
|
},
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"react": "^17.0.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@skyscanner/bpk-foundations-web": "^9.
|
|
27
|
-
"bpk-component-button": "^7.0.
|
|
28
|
-
"bpk-component-checkbox": "^5.0.
|
|
29
|
-
"bpk-component-icon": "^10.0.
|
|
30
|
-
"bpk-component-input": "^7.0.
|
|
31
|
-
"bpk-component-select": "^6.0.
|
|
32
|
-
"bpk-component-textarea": "^5.0.
|
|
26
|
+
"@skyscanner/bpk-foundations-web": "^9.3.0",
|
|
27
|
+
"bpk-component-button": "^7.0.4",
|
|
28
|
+
"bpk-component-checkbox": "^5.0.4",
|
|
29
|
+
"bpk-component-icon": "^10.0.4",
|
|
30
|
+
"bpk-component-input": "^7.0.4",
|
|
31
|
+
"bpk-component-select": "^6.0.4",
|
|
32
|
+
"bpk-component-textarea": "^5.0.4"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-graphic-promotion",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.2",
|
|
4
4
|
"description": "Backpack graphic-promotion component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,15 +8,16 @@
|
|
|
8
8
|
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
9
|
},
|
|
10
10
|
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
-
"main": "index.
|
|
11
|
+
"main": "index.js",
|
|
12
12
|
"publishConfig": {
|
|
13
13
|
"registry": "https://registry.npmjs.org/"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"bpk-component-button": "^7.0.
|
|
17
|
-
"bpk-component-text": "^8.0.
|
|
18
|
-
"bpk-mixins": "^31.
|
|
19
|
-
"bpk-react-utils": "^7.0.0"
|
|
16
|
+
"bpk-component-button": "^7.0.4",
|
|
17
|
+
"bpk-component-text": "^8.0.4",
|
|
18
|
+
"bpk-mixins": "^31.6.3",
|
|
19
|
+
"bpk-react-utils": "^7.0.0",
|
|
20
|
+
"prop-types": "^15.5.8"
|
|
20
21
|
},
|
|
21
22
|
"peerDependencies": {
|
|
22
23
|
"react": "^17.0.2"
|
|
@@ -42,24 +42,24 @@ export const TEXT_ALIGN = {
|
|
|
42
42
|
start: 'start',
|
|
43
43
|
center: 'center',
|
|
44
44
|
end: 'end',
|
|
45
|
-
} as const;
|
|
45
|
+
}; // as const; // Temp disabling TS types due to non TS projects compatibility.
|
|
46
46
|
|
|
47
47
|
export type Props = {
|
|
48
|
-
className?: string | null
|
|
49
|
-
contentId?: string | null
|
|
50
|
-
tagline?: string | null
|
|
51
|
-
headline: string
|
|
52
|
-
subheading?: string | null
|
|
48
|
+
className?: string | null,
|
|
49
|
+
contentId?: string | null,
|
|
50
|
+
tagline?: string | null,
|
|
51
|
+
headline: string,
|
|
52
|
+
subheading?: string | null,
|
|
53
53
|
sponsor?: {
|
|
54
|
-
label: string
|
|
55
|
-
logo: string
|
|
56
|
-
altText: string
|
|
57
|
-
} | null
|
|
58
|
-
buttonText: string
|
|
59
|
-
onClick: () => void
|
|
60
|
-
invertVertically?: boolean
|
|
61
|
-
textAlign: typeof TEXT_ALIGN[keyof typeof TEXT_ALIGN];
|
|
62
|
-
style?: {}
|
|
54
|
+
label: string,
|
|
55
|
+
logo: string,
|
|
56
|
+
altText: string,
|
|
57
|
+
} | null,
|
|
58
|
+
buttonText: string,
|
|
59
|
+
onClick: () => void,
|
|
60
|
+
invertVertically?: boolean,
|
|
61
|
+
textAlign: $Keys<typeof TEXT_ALIGN>, // typeof TEXT_ALIGN[keyof typeof TEXT_ALIGN]; // Temp disabling TS types due to non TS projects compatibility.
|
|
62
|
+
style?: {},
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
const constructAriaLabel = ({
|
|
@@ -70,7 +70,7 @@ const constructAriaLabel = ({
|
|
|
70
70
|
tagline,
|
|
71
71
|
}: Pick<
|
|
72
72
|
Props,
|
|
73
|
-
'buttonText' | 'headline' | 'sponsor' | 'subheading' | 'tagline'
|
|
73
|
+
'buttonText' | 'headline' | 'sponsor' | 'subheading' | 'tagline',
|
|
74
74
|
>) => {
|
|
75
75
|
const text: string[] = [];
|
|
76
76
|
const addText = (value?: string | null) => value && text.push(value);
|
|
@@ -199,4 +199,14 @@ const BpkGraphicPromo = ({
|
|
|
199
199
|
);
|
|
200
200
|
};
|
|
201
201
|
|
|
202
|
+
BpkGraphicPromo.defaultProps = {
|
|
203
|
+
className: null,
|
|
204
|
+
contentId: null,
|
|
205
|
+
tagline: null,
|
|
206
|
+
subheading: null,
|
|
207
|
+
sponsor: null,
|
|
208
|
+
invertVertically: false,
|
|
209
|
+
style: {},
|
|
210
|
+
};
|
|
211
|
+
|
|
202
212
|
export default BpkGraphicPromo;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-grid",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"description": "Backpack grid components.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-mixins": "^31.
|
|
17
|
+
"bpk-mixins": "^31.6.3",
|
|
18
18
|
"bpk-react-utils": "^7.0.0",
|
|
19
19
|
"prop-types": "^15.7.2"
|
|
20
20
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-grid-toggle",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"description": "Backpack vertical grid 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": "^4.0.
|
|
18
|
-
"bpk-mixins": "^31.
|
|
17
|
+
"bpk-component-link": "^4.0.4",
|
|
18
|
+
"bpk-mixins": "^31.6.3",
|
|
19
19
|
"bpk-react-utils": "^7.0.0",
|
|
20
20
|
"prop-types": "^15.7.2"
|
|
21
21
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-horizontal-nav",
|
|
3
|
-
"version": "6.0
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "Backpack horizontal nav 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-mobile-scroll-container": "^4.0.
|
|
18
|
-
"bpk-mixins": "^31.
|
|
17
|
+
"bpk-component-mobile-scroll-container": "^4.0.4",
|
|
18
|
+
"bpk-mixins": "^31.6.3",
|
|
19
19
|
"bpk-react-utils": "^7.0.0",
|
|
20
20
|
"prop-types": "^15.7.2"
|
|
21
21
|
},
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"react": "^17.0.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@skyscanner/bpk-foundations-web": "^9.
|
|
27
|
-
"bpk-component-text": "^8.0.
|
|
28
|
-
"bpk-storybook-utils": "^2.0.
|
|
26
|
+
"@skyscanner/bpk-foundations-web": "^9.3.0",
|
|
27
|
+
"bpk-component-text": "^8.0.4",
|
|
28
|
+
"bpk-storybook-utils": "^2.0.4"
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
|
|
21
21
|
.bpk-horizontal-nav {
|
|
22
22
|
&--show-default-underline {
|
|
23
|
-
@include bpk-border-bottom-sm($bpk-
|
|
23
|
+
@include bpk-border-bottom-sm($bpk-line-day, '');
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
&--show-light-underline {
|
|
27
|
-
@include bpk-border-bottom-sm($bpk-
|
|
27
|
+
@include bpk-border-bottom-sm($bpk-line-day, '');
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&__list {
|
|
@@ -50,7 +50,7 @@ $bpk-spacing-v2: true;
|
|
|
50
50
|
);
|
|
51
51
|
|
|
52
52
|
@include bpk-hover {
|
|
53
|
-
@include bpk-border-bottom-xl($bpk-
|
|
53
|
+
@include bpk-border-bottom-xl($bpk-surface-highlight-day);
|
|
54
54
|
@include bpk-themeable-property(
|
|
55
55
|
color,
|
|
56
56
|
--bpk-horizontal-nav-link-hover-color,
|
|
@@ -59,7 +59,7 @@ $bpk-spacing-v2: true;
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
&:active {
|
|
62
|
-
@include bpk-border-bottom-xl($bpk-
|
|
62
|
+
@include bpk-border-bottom-xl($bpk-line-day);
|
|
63
63
|
@include bpk-themeable-property(
|
|
64
64
|
color,
|
|
65
65
|
--bpk-horizontal-nav-link-active-color,
|
|
@@ -68,11 +68,11 @@ $bpk-spacing-v2: true;
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
&-disabled {
|
|
71
|
-
color: $bpk-
|
|
71
|
+
color: $bpk-text-disabled-day;
|
|
72
72
|
cursor: not-allowed;
|
|
73
73
|
|
|
74
74
|
&:active {
|
|
75
|
-
color: $bpk-
|
|
75
|
+
color: $bpk-text-disabled-day;
|
|
76
76
|
box-shadow: unset;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -114,37 +114,37 @@ $bpk-spacing-v2: true;
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
&--light {
|
|
117
|
-
color: $bpk-
|
|
117
|
+
color: $bpk-text-on-dark-day;
|
|
118
118
|
|
|
119
119
|
@include bpk-hover {
|
|
120
|
-
@include bpk-border-bottom-xl($bpk-
|
|
120
|
+
@include bpk-border-bottom-xl($bpk-text-on-dark-day);
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
&:active {
|
|
124
|
-
@include bpk-border-bottom-xl($bpk-
|
|
124
|
+
@include bpk-border-bottom-xl($bpk-text-on-dark-day);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
&-disabled {
|
|
128
|
-
color: $bpk-
|
|
128
|
+
color: $bpk-text-disabled-day;
|
|
129
129
|
cursor: not-allowed;
|
|
130
130
|
|
|
131
131
|
&:active {
|
|
132
|
-
color: $bpk-
|
|
132
|
+
color: $bpk-text-disabled-day;
|
|
133
133
|
box-shadow: unset;
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
&-selected {
|
|
138
|
-
color: $bpk-
|
|
138
|
+
color: $bpk-text-on-dark-day;
|
|
139
139
|
|
|
140
|
-
@include bpk-border-bottom-xl($bpk-
|
|
140
|
+
@include bpk-border-bottom-xl($bpk-text-on-dark-day);
|
|
141
141
|
|
|
142
142
|
@include bpk-hover {
|
|
143
|
-
@include bpk-border-bottom-xl($bpk-
|
|
143
|
+
@include bpk-border-bottom-xl($bpk-text-on-dark-day);
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
&:active {
|
|
147
|
-
@include bpk-border-bottom-xl($bpk-
|
|
147
|
+
@include bpk-border-bottom-xl($bpk-text-on-dark-day);
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-icon",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.4",
|
|
4
4
|
"description": "Backpack icon components.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
},
|
|
18
18
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@skyscanner/bpk-foundations-web": "^9.
|
|
21
|
-
"@skyscanner/bpk-svgs": "^14.3
|
|
22
|
-
"bpk-mixins": "^31.
|
|
20
|
+
"@skyscanner/bpk-foundations-web": "^9.3.0",
|
|
21
|
+
"@skyscanner/bpk-svgs": "^14.4.3",
|
|
22
|
+
"bpk-mixins": "^31.6.3",
|
|
23
23
|
"bpk-react-utils": "^7.0.0",
|
|
24
24
|
"prop-types": "^15.7.2"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"bpk-component-button": "^7.0.
|
|
28
|
-
"bpk-component-list": "^5.
|
|
29
|
-
"bpk-component-text": "^8.0.
|
|
27
|
+
"bpk-component-button": "^7.0.4",
|
|
28
|
+
"bpk-component-list": "^5.1.1",
|
|
29
|
+
"bpk-component-text": "^8.0.4"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"react": "^17.0.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-image",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.4",
|
|
4
4
|
"description": "Backpack image component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@skyscanner/bpk-foundations-web": "^9.
|
|
18
|
-
"bpk-component-spinner": "^6.0.
|
|
19
|
-
"bpk-mixins": "^31.
|
|
17
|
+
"@skyscanner/bpk-foundations-web": "^9.3.0",
|
|
18
|
+
"bpk-component-spinner": "^6.0.4",
|
|
19
|
+
"bpk-mixins": "^31.6.3",
|
|
20
20
|
"bpk-react-utils": "^7.0.0",
|
|
21
21
|
"prop-types": "^15.7.2",
|
|
22
22
|
"react-transition-group": "^2.5.3"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"react": "^17.0.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"bpk-component-mobile-scroll-container": "^4.0.
|
|
29
|
-
"bpk-component-text": "^8.0.
|
|
28
|
+
"bpk-component-mobile-scroll-container": "^4.0.4",
|
|
29
|
+
"bpk-component-text": "^8.0.4"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-infinite-scroll",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
4
4
|
"description": "Backpack infinite scroll component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-mixins": "^31.
|
|
17
|
+
"bpk-mixins": "^31.6.3",
|
|
18
18
|
"bpk-react-utils": "^7.0.0",
|
|
19
19
|
"intersection-observer": "^0.7.0",
|
|
20
20
|
"prop-types": "^15.7.2"
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"react": "^17.0.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"bpk-component-button": "^7.0.
|
|
27
|
-
"bpk-component-list": "^5.
|
|
28
|
-
"bpk-component-spinner": "^6.0.
|
|
29
|
-
"bpk-storybook-utils": "^2.0.
|
|
26
|
+
"bpk-component-button": "^7.0.4",
|
|
27
|
+
"bpk-component-list": "^5.1.1",
|
|
28
|
+
"bpk-component-spinner": "^6.0.4",
|
|
29
|
+
"bpk-storybook-utils": "^2.0.4"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-input",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.4",
|
|
4
4
|
"description": "Backpack input component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-component-icon": "^10.0.
|
|
18
|
-
"bpk-mixins": "^31.
|
|
17
|
+
"bpk-component-icon": "^10.0.4",
|
|
18
|
+
"bpk-mixins": "^31.6.3",
|
|
19
19
|
"bpk-react-utils": "^7.0.0",
|
|
20
20
|
"prop-types": "^15.7.2"
|
|
21
21
|
},
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"react": "^17.0.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"bpk-component-banner-alert": "^7.0.
|
|
27
|
-
"bpk-component-label": "^6.0.
|
|
28
|
-
"bpk-storybook-utils": "^2.0.
|
|
26
|
+
"bpk-component-banner-alert": "^7.0.4",
|
|
27
|
+
"bpk-component-label": "^6.0.4",
|
|
28
|
+
"bpk-storybook-utils": "^2.0.4"
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-label",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.4",
|
|
4
4
|
"description": "Backpack label component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-mixins": "^31.
|
|
17
|
+
"bpk-mixins": "^31.6.3",
|
|
18
18
|
"bpk-react-utils": "^7.0.0",
|
|
19
19
|
"prop-types": "^15.7.2"
|
|
20
20
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-link",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"description": "Backpack link component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-mixins": "^31.
|
|
17
|
+
"bpk-mixins": "^31.6.3",
|
|
18
18
|
"bpk-react-utils": "^7.0.0",
|
|
19
19
|
"prop-types": "^15.7.2"
|
|
20
20
|
},
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"react": "^17.0.2"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@skyscanner/bpk-foundations-web": "^9.
|
|
26
|
-
"bpk-storybook-utils": "^2.0.
|
|
25
|
+
"@skyscanner/bpk-foundations-web": "^9.3.0",
|
|
26
|
+
"bpk-storybook-utils": "^2.0.4"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -34,11 +34,14 @@ export default () => (
|
|
|
34
34
|
|
|
35
35
|
### BpkList
|
|
36
36
|
|
|
37
|
-
| Property
|
|
38
|
-
|
|
|
39
|
-
| children
|
|
40
|
-
| ordered
|
|
41
|
-
| className
|
|
37
|
+
| Property | PropType | Required | Default Value |
|
|
38
|
+
| -------------- | -------- | -------- | ------------- |
|
|
39
|
+
| children | - | true | - |
|
|
40
|
+
| ordered | bool | false | false |
|
|
41
|
+
| className | string | false | null |
|
|
42
|
+
| ariaLabel | string | false | null |
|
|
43
|
+
| ariaLabelledby | string | false | null |
|
|
44
|
+
| title | string | false | null |
|
|
42
45
|
|
|
43
46
|
### BpkListItem
|
|
44
47
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-list",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"description": "Backpack list component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-mixins": "^31.
|
|
17
|
+
"bpk-mixins": "^31.6.3",
|
|
18
18
|
"bpk-react-utils": "^7.0.0",
|
|
19
19
|
"prop-types": "^15.7.2"
|
|
20
20
|
},
|
|
@@ -31,15 +31,28 @@ type Props = {
|
|
|
31
31
|
children: Node,
|
|
32
32
|
ordered: boolean,
|
|
33
33
|
className: ?string,
|
|
34
|
+
ariaLabel: ?string,
|
|
35
|
+
ariaLabelledby: ?string,
|
|
36
|
+
title: ?string,
|
|
34
37
|
};
|
|
35
38
|
|
|
36
39
|
const BpkList = (props: Props) => {
|
|
37
|
-
const { children, className, ordered } =
|
|
40
|
+
const { ariaLabel, ariaLabelledby, children, className, ordered, title } =
|
|
41
|
+
props;
|
|
38
42
|
|
|
39
43
|
const TagName: any = ordered ? 'ol' : 'ul';
|
|
40
44
|
const classNames: string = getClassName('bpk-list', className);
|
|
41
45
|
|
|
42
|
-
return
|
|
46
|
+
return (
|
|
47
|
+
<TagName
|
|
48
|
+
aria-label={ariaLabel}
|
|
49
|
+
aria-labelledby={ariaLabelledby}
|
|
50
|
+
title={title}
|
|
51
|
+
className={classNames}
|
|
52
|
+
>
|
|
53
|
+
{children}
|
|
54
|
+
</TagName>
|
|
55
|
+
);
|
|
43
56
|
};
|
|
44
57
|
|
|
45
58
|
BpkList.propTypes = {
|
|
@@ -54,6 +67,9 @@ BpkList.propTypes = {
|
|
|
54
67
|
BpkList.defaultProps = {
|
|
55
68
|
ordered: false,
|
|
56
69
|
className: null,
|
|
70
|
+
ariaLabel: null,
|
|
71
|
+
ariaLabelledby: null,
|
|
72
|
+
title: null,
|
|
57
73
|
};
|
|
58
74
|
|
|
59
75
|
export default BpkList;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-loading-button",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.4",
|
|
4
4
|
"description": "Backpack loading button component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-component-button": "^7.0.
|
|
18
|
-
"bpk-component-icon": "^10.0.
|
|
19
|
-
"bpk-component-spinner": "^6.0.
|
|
20
|
-
"bpk-mixins": "^31.
|
|
17
|
+
"bpk-component-button": "^7.0.4",
|
|
18
|
+
"bpk-component-icon": "^10.0.4",
|
|
19
|
+
"bpk-component-spinner": "^6.0.4",
|
|
20
|
+
"bpk-mixins": "^31.6.3",
|
|
21
21
|
"bpk-react-utils": "^7.0.0",
|
|
22
22
|
"prop-types": "^15.7.2"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"bpk-storybook-utils": "^2.0.
|
|
25
|
+
"bpk-storybook-utils": "^2.0.4"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": "^17.0.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-map",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.2",
|
|
4
4
|
"description": "Backpack map component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@react-google-maps/api": "^2.8.1",
|
|
18
|
-
"bpk-component-spinner": "^6.0.
|
|
19
|
-
"bpk-mixins": "^31.
|
|
18
|
+
"bpk-component-spinner": "^6.0.4",
|
|
19
|
+
"bpk-mixins": "^31.6.3",
|
|
20
20
|
"bpk-react-utils": "^7.0.0",
|
|
21
21
|
"prop-types": "^15.5.8"
|
|
22
22
|
},
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"react": "^17.0.2"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"bpk-component-icon": "^10.0.
|
|
28
|
-
"bpk-component-text": "^8.0.
|
|
29
|
-
"bpk-storybook-utils": "^2.0.
|
|
27
|
+
"bpk-component-icon": "^10.0.4",
|
|
28
|
+
"bpk-component-text": "^8.0.4",
|
|
29
|
+
"bpk-storybook-utils": "^2.0.4",
|
|
30
30
|
"prop-types": "^15.5.8"
|
|
31
31
|
}
|
|
32
32
|
}
|