@skyscanner/bpk-foundations-web 24.1.0 → 24.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyscanner/bpk-foundations-web",
3
- "version": "24.1.0",
3
+ "version": "24.2.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": "^24.1.0",
20
+ "@skyscanner/bpk-foundations-common": "^24.2.0",
21
21
  "color": "^5.0.0"
22
22
  },
23
- "gitHead": "a3e9cc4bfc4b21e4d2659942ec5f8a39bfdb40b4"
23
+ "gitHead": "3df1c21f0b472adbf43229e661c0fa2ee7f2a32c"
24
24
  }
@@ -206,6 +206,8 @@ module.exports = {
206
206
  privateNavigationTabHoverNight: "rgb(209, 247, 255)",
207
207
  privateNavigationTabOutlineDay: "rgb(193, 199, 207)",
208
208
  privateNavigationTabOutlineNight: "rgb(255, 255, 255)",
209
+ privateNavigationTabSelectedDay: "rgb(2, 77, 175)",
210
+ privateNavigationTabSelectedNight: "rgb(5, 65, 132)",
209
211
  privateCardButtonContainedFillDay: "rgba(255, 255, 255, 0.8)",
210
212
  privateCardButtonContainedFillNight: "rgba(0, 0, 0, 0.8)",
211
213
  privateSegmentedControlCanvasDefaultDay: "rgb(239, 243, 248)",
@@ -391,6 +391,10 @@ $bpk-private-navigation-tab-hover-night: rgb(209, 247, 255) !default;
391
391
  $bpk-private-navigation-tab-outline-day: rgb(193, 199, 207) !default;
392
392
  /// @group navigation-tab-colors
393
393
  $bpk-private-navigation-tab-outline-night: rgb(255, 255, 255) !default;
394
+ /// @group navigation-tab-colors
395
+ $bpk-private-navigation-tab-selected-day: rgb(2, 77, 175) !default;
396
+ /// @group navigation-tab-colors
397
+ $bpk-private-navigation-tab-selected-night: rgb(5, 65, 132) !default;
394
398
  /// @group card-button-colors
395
399
  $bpk-private-card-button-contained-fill-day: rgba(255, 255, 255, 0.8) !default;
396
400
  /// @group card-button-colors
@@ -730,8 +734,12 @@ $bpk-private-slider-selected-day: rgb(21, 70, 121) !default;
730
734
  /// @group spacings
731
735
  @function bpk-spacing-lg() { @return 1.5rem; }
732
736
  /// @group spacings
737
+ @function bpk-spacing-xs() { @return .125rem; }
738
+ /// @group spacings
733
739
  $bpk-one-pixel-rem: .0625rem !default;
734
740
  /// @group spacings
741
+ @function bpk-spacing-xxs() { @return .0625rem; }
742
+ /// @group spacings
735
743
  $bpk-spacing-none: 0 !default;
736
744
  /// @group spacings
737
745
  $bpk-spacing-icon-text: .5rem !default;
@@ -204,6 +204,8 @@ export declare const privateNavigationTabHoverDay = "rgb(21, 70, 121)" as const;
204
204
  export declare const privateNavigationTabHoverNight = "rgb(209, 247, 255)" as const;
205
205
  export declare const privateNavigationTabOutlineDay = "rgb(193, 199, 207)" as const;
206
206
  export declare const privateNavigationTabOutlineNight = "rgb(255, 255, 255)" as const;
207
+ export declare const privateNavigationTabSelectedDay = "rgb(2, 77, 175)" as const;
208
+ export declare const privateNavigationTabSelectedNight = "rgb(5, 65, 132)" as const;
207
209
  export declare const privateCardButtonContainedFillDay = "rgba(255, 255, 255, 0.8)" as const;
208
210
  export declare const privateCardButtonContainedFillNight = "rgba(0, 0, 0, 0.8)" as const;
209
211
  export declare const privateSegmentedControlCanvasDefaultDay = "rgb(239, 243, 248)" as const;
@@ -724,6 +726,8 @@ privateNavigationTabHoverDay,
724
726
  privateNavigationTabHoverNight,
725
727
  privateNavigationTabOutlineDay,
726
728
  privateNavigationTabOutlineNight,
729
+ privateNavigationTabSelectedDay,
730
+ privateNavigationTabSelectedNight,
727
731
  } as const;
728
732
  export declare const notifications = {
729
733
  bannerAlertHeaderExpandableHoverBackgroundColor,
@@ -204,6 +204,8 @@ export const privateNavigationTabHoverDay = "rgb(21, 70, 121)";
204
204
  export const privateNavigationTabHoverNight = "rgb(209, 247, 255)";
205
205
  export const privateNavigationTabOutlineDay = "rgb(193, 199, 207)";
206
206
  export const privateNavigationTabOutlineNight = "rgb(255, 255, 255)";
207
+ export const privateNavigationTabSelectedDay = "rgb(2, 77, 175)";
208
+ export const privateNavigationTabSelectedNight = "rgb(5, 65, 132)";
207
209
  export const privateCardButtonContainedFillDay = "rgba(255, 255, 255, 0.8)";
208
210
  export const privateCardButtonContainedFillNight = "rgba(0, 0, 0, 0.8)";
209
211
  export const privateSegmentedControlCanvasDefaultDay = "rgb(239, 243, 248)";
@@ -724,6 +726,8 @@ privateNavigationTabHoverDay,
724
726
  privateNavigationTabHoverNight,
725
727
  privateNavigationTabOutlineDay,
726
728
  privateNavigationTabOutlineNight,
729
+ privateNavigationTabSelectedDay,
730
+ privateNavigationTabSelectedNight,
727
731
  };
728
732
  export const notifications = {
729
733
  bannerAlertHeaderExpandableHoverBackgroundColor,
@@ -420,12 +420,18 @@
420
420
  "SPACING_SM": {
421
421
  "value": ".25rem"
422
422
  },
423
+ "SPACING_XS": {
424
+ "value": ".125rem"
425
+ },
423
426
  "FONT_LINE_HEIGHT_LG_TIGHT": {
424
427
  "value": "1.5rem"
425
428
  },
426
429
  "SPACING_LG": {
427
430
  "value": "1.5rem"
428
431
  },
432
+ "SPACING_XXS": {
433
+ "value": ".0625rem"
434
+ },
429
435
  "FONT_LINE_HEIGHT_SM": {
430
436
  "value": "1.25rem"
431
437
  },
@@ -1792,6 +1798,20 @@
1792
1798
  "originalValue": "{!WHITE}",
1793
1799
  "name": "PRIVATE_NAVIGATION_TAB_OUTLINE_NIGHT"
1794
1800
  },
1801
+ "PRIVATE_NAVIGATION_TAB_SELECTED_DAY": {
1802
+ "type": "color",
1803
+ "category": "navigation-tab-colors",
1804
+ "value": "rgb(2, 77, 175)",
1805
+ "originalValue": "{!SKY_BLUE_85}",
1806
+ "name": "PRIVATE_NAVIGATION_TAB_SELECTED_DAY"
1807
+ },
1808
+ "PRIVATE_NAVIGATION_TAB_SELECTED_NIGHT": {
1809
+ "type": "color",
1810
+ "category": "navigation-tab-colors",
1811
+ "value": "rgb(5, 65, 132)",
1812
+ "originalValue": "{!NIGHT_SKY}",
1813
+ "name": "PRIVATE_NAVIGATION_TAB_SELECTED_NIGHT"
1814
+ },
1795
1815
  "PRIVATE_CARD_BUTTON_CONTAINED_FILL_DAY": {
1796
1816
  "type": "color",
1797
1817
  "category": "card-button-colors",
@@ -3041,6 +3061,13 @@
3041
3061
  "originalValue": "@function bpk-spacing-lg() { @return {!SPACING_LG}; }",
3042
3062
  "name": "SPACING_FUNCTION_LG"
3043
3063
  },
3064
+ "SPACING_FUNCTION_XS": {
3065
+ "type": "function",
3066
+ "category": "spacings",
3067
+ "value": "@function bpk-spacing-xs() { @return .125rem; }",
3068
+ "originalValue": "@function bpk-spacing-xs() { @return {!SPACING_XS}; }",
3069
+ "name": "SPACING_FUNCTION_XS"
3070
+ },
3044
3071
  "ONE_PIXEL_REM": {
3045
3072
  "type": "size",
3046
3073
  "category": "spacings",
@@ -3048,6 +3075,13 @@
3048
3075
  "originalValue": "{!ONE_PIXEL_REM}",
3049
3076
  "name": "ONE_PIXEL_REM"
3050
3077
  },
3078
+ "SPACING_FUNCTION_XXS": {
3079
+ "type": "function",
3080
+ "category": "spacings",
3081
+ "value": "@function bpk-spacing-xxs() { @return .0625rem; }",
3082
+ "originalValue": "@function bpk-spacing-xxs() { @return {!SPACING_XXS}; }",
3083
+ "name": "SPACING_FUNCTION_XXS"
3084
+ },
3051
3085
  "SPACING_NONE": {
3052
3086
  "type": "size",
3053
3087
  "category": "spacings",
package/tokens/base.scss CHANGED
@@ -391,6 +391,10 @@ $bpk-private-navigation-tab-hover-night: rgb(209, 247, 255);
391
391
  $bpk-private-navigation-tab-outline-day: rgb(193, 199, 207);
392
392
  /// @group navigation-tab-colors
393
393
  $bpk-private-navigation-tab-outline-night: rgb(255, 255, 255);
394
+ /// @group navigation-tab-colors
395
+ $bpk-private-navigation-tab-selected-day: rgb(2, 77, 175);
396
+ /// @group navigation-tab-colors
397
+ $bpk-private-navigation-tab-selected-night: rgb(5, 65, 132);
394
398
  /// @group card-button-colors
395
399
  $bpk-private-card-button-contained-fill-day: rgba(255, 255, 255, 0.8);
396
400
  /// @group card-button-colors
@@ -730,8 +734,12 @@ $bpk-private-slider-selected-day: rgb(21, 70, 121);
730
734
  /// @group spacings
731
735
  @function bpk-spacing-lg() { @return 1.5rem; }
732
736
  /// @group spacings
737
+ @function bpk-spacing-xs() { @return .125rem; }
738
+ /// @group spacings
733
739
  $bpk-one-pixel-rem: .0625rem;
734
740
  /// @group spacings
741
+ @function bpk-spacing-xxs() { @return .0625rem; }
742
+ /// @group spacings
735
743
  $bpk-spacing-none: 0;
736
744
  /// @group spacings
737
745
  $bpk-spacing-icon-text: .5rem;