@skyscanner/bpk-foundations-web 19.4.2 → 19.6.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/gulpfile.mjs +12 -8
- package/package.json +3 -3
- package/tokens/base.common.js +4 -2
- package/tokens/base.default.scss +6 -2
- package/tokens/base.es6.d.ts +6 -2
- package/tokens/base.es6.js +6 -2
- package/tokens/base.raw.json +17 -3
- package/tokens/base.scss +6 -2
package/gulpfile.mjs
CHANGED
|
@@ -20,8 +20,8 @@ import path from 'path';
|
|
|
20
20
|
import { fileURLToPath } from 'url';
|
|
21
21
|
|
|
22
22
|
import { deleteAsync } from 'del';
|
|
23
|
+
import { exec } from 'child_process';
|
|
23
24
|
import gulp from 'gulp';
|
|
24
|
-
import jsonLint from 'gulp-jsonlint';
|
|
25
25
|
import gulpTheo from 'gulp-theo';
|
|
26
26
|
import _ from 'lodash';
|
|
27
27
|
import gulpMerge from 'merge2';
|
|
@@ -67,13 +67,17 @@ theo.registerFormat('es6.d.ts', bpkDts);
|
|
|
67
67
|
|
|
68
68
|
gulp.task('clean', (done) => deleteAsync(['tokens'], done));
|
|
69
69
|
|
|
70
|
-
gulp.task('lint', () =>
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
);
|
|
70
|
+
gulp.task('lint', (done) => {
|
|
71
|
+
exec('eslint ./src --ext json', (err, stdout, _) => {
|
|
72
|
+
if (err) {
|
|
73
|
+
console.error(stdout);
|
|
74
|
+
done(err);
|
|
75
|
+
} else {
|
|
76
|
+
console.log(stdout);
|
|
77
|
+
done();
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
});
|
|
77
81
|
|
|
78
82
|
const createTokens = (tokenSets, done) => {
|
|
79
83
|
const streams = tokenSets.map(({ format, nest, platform }) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyscanner/bpk-foundations-web",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.6.0",
|
|
4
4
|
"description": "Common Backpack design tokens for colors, spacing, font, etc.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"tokens": "gulp"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@skyscanner/bpk-foundations-common": "^19.
|
|
20
|
+
"@skyscanner/bpk-foundations-common": "^19.6.0",
|
|
21
21
|
"color": "^5.0.0"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "5a2dbb49f77e410b1cbc082061179f49fe0d2a5d"
|
|
24
24
|
}
|
package/tokens/base.common.js
CHANGED
|
@@ -93,7 +93,7 @@ module.exports = {
|
|
|
93
93
|
surfaceSubtleNight: "rgb(36, 51, 70)",
|
|
94
94
|
surfaceElevatedDay: "rgb(255, 255, 255)",
|
|
95
95
|
surfaceHighlightNight: "rgb(36, 51, 70)",
|
|
96
|
-
surfaceLowContrastDay: "rgb(
|
|
96
|
+
surfaceLowContrastDay: "rgb(245, 247, 250)",
|
|
97
97
|
surfaceSubtleDay: "rgb(227, 240, 255)",
|
|
98
98
|
surfaceHighlightDay: "rgb(224, 228, 233)",
|
|
99
99
|
textOnDarkDay: "rgb(255, 255, 255)",
|
|
@@ -344,7 +344,9 @@ module.exports = {
|
|
|
344
344
|
horizontalNavBarSelectedColor: "rgb(0, 98, 227)",
|
|
345
345
|
iconSizeSm: "1rem",
|
|
346
346
|
iconSizeLg: "1.5rem",
|
|
347
|
-
iconSizeXl: "
|
|
347
|
+
iconSizeXl: "2rem",
|
|
348
|
+
iconSizeXxl: "2.5rem",
|
|
349
|
+
iconSizeXxxl: "3rem",
|
|
348
350
|
modalBackgroundColor: "rgb(255, 255, 255)",
|
|
349
351
|
modalInitialOpacity: "0",
|
|
350
352
|
modalOpacity: "1",
|
package/tokens/base.default.scss
CHANGED
|
@@ -166,7 +166,7 @@ $bpk-surface-elevated-day: rgb(255, 255, 255) !default;
|
|
|
166
166
|
/// @group surface-colors
|
|
167
167
|
$bpk-surface-highlight-night: rgb(36, 51, 70) !default;
|
|
168
168
|
/// @group surface-colors
|
|
169
|
-
$bpk-surface-low-contrast-day: rgb(
|
|
169
|
+
$bpk-surface-low-contrast-day: rgb(245, 247, 250) !default;
|
|
170
170
|
/// @group surface-colors
|
|
171
171
|
$bpk-surface-subtle-day: rgb(227, 240, 255) !default;
|
|
172
172
|
/// @group surface-colors
|
|
@@ -668,7 +668,11 @@ $bpk-icon-size-sm: 1rem !default;
|
|
|
668
668
|
/// @group icons
|
|
669
669
|
$bpk-icon-size-lg: 1.5rem !default;
|
|
670
670
|
/// @group icons
|
|
671
|
-
$bpk-icon-size-xl:
|
|
671
|
+
$bpk-icon-size-xl: 2rem !default;
|
|
672
|
+
/// @group icons
|
|
673
|
+
$bpk-icon-size-xxl: 2.5rem !default;
|
|
674
|
+
/// @group icons
|
|
675
|
+
$bpk-icon-size-xxxl: 3rem !default;
|
|
672
676
|
/// @group modals
|
|
673
677
|
$bpk-modal-background-color: rgb(255, 255, 255) !default;
|
|
674
678
|
/// @group modals
|
package/tokens/base.es6.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ export declare const surfaceLowContrastNight = "rgb(36, 51, 70)" as const;
|
|
|
91
91
|
export declare const surfaceSubtleNight = "rgb(36, 51, 70)" as const;
|
|
92
92
|
export declare const surfaceElevatedDay = "rgb(255, 255, 255)" as const;
|
|
93
93
|
export declare const surfaceHighlightNight = "rgb(36, 51, 70)" as const;
|
|
94
|
-
export declare const surfaceLowContrastDay = "rgb(
|
|
94
|
+
export declare const surfaceLowContrastDay = "rgb(245, 247, 250)" as const;
|
|
95
95
|
export declare const surfaceSubtleDay = "rgb(227, 240, 255)" as const;
|
|
96
96
|
export declare const surfaceHighlightDay = "rgb(224, 228, 233)" as const;
|
|
97
97
|
export declare const textOnDarkDay = "rgb(255, 255, 255)" as const;
|
|
@@ -342,7 +342,9 @@ export declare const inputDisabledBorderColor = "rgb(239, 243, 248)" as const;
|
|
|
342
342
|
export declare const horizontalNavBarSelectedColor = "rgb(0, 98, 227)" as const;
|
|
343
343
|
export declare const iconSizeSm = "1rem" as const;
|
|
344
344
|
export declare const iconSizeLg = "1.5rem" as const;
|
|
345
|
-
export declare const iconSizeXl = "
|
|
345
|
+
export declare const iconSizeXl = "2rem" as const;
|
|
346
|
+
export declare const iconSizeXxl = "2.5rem" as const;
|
|
347
|
+
export declare const iconSizeXxxl = "3rem" as const;
|
|
346
348
|
export declare const modalBackgroundColor = "rgb(255, 255, 255)" as const;
|
|
347
349
|
export declare const modalInitialOpacity = "0" as const;
|
|
348
350
|
export declare const modalOpacity = "1" as const;
|
|
@@ -640,6 +642,8 @@ export declare const icons = {
|
|
|
640
642
|
iconSizeSm,
|
|
641
643
|
iconSizeLg,
|
|
642
644
|
iconSizeXl,
|
|
645
|
+
iconSizeXxl,
|
|
646
|
+
iconSizeXxxl,
|
|
643
647
|
} as const;
|
|
644
648
|
export declare const infoBannerColors = {
|
|
645
649
|
privateInfoBannerDefaultDay,
|
package/tokens/base.es6.js
CHANGED
|
@@ -91,7 +91,7 @@ export const surfaceLowContrastNight = "rgb(36, 51, 70)";
|
|
|
91
91
|
export const surfaceSubtleNight = "rgb(36, 51, 70)";
|
|
92
92
|
export const surfaceElevatedDay = "rgb(255, 255, 255)";
|
|
93
93
|
export const surfaceHighlightNight = "rgb(36, 51, 70)";
|
|
94
|
-
export const surfaceLowContrastDay = "rgb(
|
|
94
|
+
export const surfaceLowContrastDay = "rgb(245, 247, 250)";
|
|
95
95
|
export const surfaceSubtleDay = "rgb(227, 240, 255)";
|
|
96
96
|
export const surfaceHighlightDay = "rgb(224, 228, 233)";
|
|
97
97
|
export const textOnDarkDay = "rgb(255, 255, 255)";
|
|
@@ -342,7 +342,9 @@ export const inputDisabledBorderColor = "rgb(239, 243, 248)";
|
|
|
342
342
|
export const horizontalNavBarSelectedColor = "rgb(0, 98, 227)";
|
|
343
343
|
export const iconSizeSm = "1rem";
|
|
344
344
|
export const iconSizeLg = "1.5rem";
|
|
345
|
-
export const iconSizeXl = "
|
|
345
|
+
export const iconSizeXl = "2rem";
|
|
346
|
+
export const iconSizeXxl = "2.5rem";
|
|
347
|
+
export const iconSizeXxxl = "3rem";
|
|
346
348
|
export const modalBackgroundColor = "rgb(255, 255, 255)";
|
|
347
349
|
export const modalInitialOpacity = "0";
|
|
348
350
|
export const modalOpacity = "1";
|
|
@@ -640,6 +642,8 @@ export const icons = {
|
|
|
640
642
|
iconSizeSm,
|
|
641
643
|
iconSizeLg,
|
|
642
644
|
iconSizeXl,
|
|
645
|
+
iconSizeXxl,
|
|
646
|
+
iconSizeXxxl,
|
|
643
647
|
};
|
|
644
648
|
export const infoBannerColors = {
|
|
645
649
|
privateInfoBannerDefaultDay,
|
package/tokens/base.raw.json
CHANGED
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"value": "#ffb54d"
|
|
53
53
|
},
|
|
54
54
|
"GREY_05": {
|
|
55
|
-
"value": "#
|
|
55
|
+
"value": "#F5F7FA"
|
|
56
56
|
},
|
|
57
57
|
"NIGHT_GREEN_SPOT": {
|
|
58
58
|
"value": "#62F1C6"
|
|
@@ -1024,7 +1024,7 @@
|
|
|
1024
1024
|
"SURFACE_LOW_CONTRAST_DAY": {
|
|
1025
1025
|
"type": "color",
|
|
1026
1026
|
"category": "surface-colors",
|
|
1027
|
-
"value": "rgb(
|
|
1027
|
+
"value": "rgb(245, 247, 250)",
|
|
1028
1028
|
"originalValue": "{!GREY_05}",
|
|
1029
1029
|
"name": "SURFACE_LOW_CONTRAST_DAY"
|
|
1030
1030
|
},
|
|
@@ -2809,11 +2809,25 @@
|
|
|
2809
2809
|
"name": "ICON_SIZE_LG"
|
|
2810
2810
|
},
|
|
2811
2811
|
"ICON_SIZE_XL": {
|
|
2812
|
+
"type": "size",
|
|
2813
|
+
"category": "icons",
|
|
2814
|
+
"value": "2rem",
|
|
2815
|
+
"originalValue": "2rem",
|
|
2816
|
+
"name": "ICON_SIZE_XL"
|
|
2817
|
+
},
|
|
2818
|
+
"ICON_SIZE_XXL": {
|
|
2819
|
+
"type": "size",
|
|
2820
|
+
"category": "icons",
|
|
2821
|
+
"value": "2.5rem",
|
|
2822
|
+
"originalValue": "2.5rem",
|
|
2823
|
+
"name": "ICON_SIZE_XXL"
|
|
2824
|
+
},
|
|
2825
|
+
"ICON_SIZE_XXXL": {
|
|
2812
2826
|
"type": "size",
|
|
2813
2827
|
"category": "icons",
|
|
2814
2828
|
"value": "3rem",
|
|
2815
2829
|
"originalValue": "3rem",
|
|
2816
|
-
"name": "
|
|
2830
|
+
"name": "ICON_SIZE_XXXL"
|
|
2817
2831
|
},
|
|
2818
2832
|
"MODAL_BACKGROUND_COLOR": {
|
|
2819
2833
|
"category": "modals",
|
package/tokens/base.scss
CHANGED
|
@@ -166,7 +166,7 @@ $bpk-surface-elevated-day: rgb(255, 255, 255);
|
|
|
166
166
|
/// @group surface-colors
|
|
167
167
|
$bpk-surface-highlight-night: rgb(36, 51, 70);
|
|
168
168
|
/// @group surface-colors
|
|
169
|
-
$bpk-surface-low-contrast-day: rgb(
|
|
169
|
+
$bpk-surface-low-contrast-day: rgb(245, 247, 250);
|
|
170
170
|
/// @group surface-colors
|
|
171
171
|
$bpk-surface-subtle-day: rgb(227, 240, 255);
|
|
172
172
|
/// @group surface-colors
|
|
@@ -668,7 +668,11 @@ $bpk-icon-size-sm: 1rem;
|
|
|
668
668
|
/// @group icons
|
|
669
669
|
$bpk-icon-size-lg: 1.5rem;
|
|
670
670
|
/// @group icons
|
|
671
|
-
$bpk-icon-size-xl:
|
|
671
|
+
$bpk-icon-size-xl: 2rem;
|
|
672
|
+
/// @group icons
|
|
673
|
+
$bpk-icon-size-xxl: 2.5rem;
|
|
674
|
+
/// @group icons
|
|
675
|
+
$bpk-icon-size-xxxl: 3rem;
|
|
672
676
|
/// @group modals
|
|
673
677
|
$bpk-modal-background-color: rgb(255, 255, 255);
|
|
674
678
|
/// @group modals
|