@skyscanner/bpk-foundations-web 24.1.0 → 24.3.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.3.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.3.0",
21
21
  "color": "^5.0.0"
22
22
  },
23
- "gitHead": "a3e9cc4bfc4b21e4d2659942ec5f8a39bfdb40b4"
23
+ "gitHead": "7bc1c2e577aaaaa3453d13a3035fd745a6fcb042"
24
24
  }
@@ -206,6 +206,10 @@ module.exports = {
206
206
  privateNavigationTabHoverNight: "rgb(209, 247, 255)",
207
207
  privateNavigationTabOutlineDay: "rgb(193, 199, 207)",
208
208
  privateNavigationTabOutlineNight: "rgb(255, 255, 255)",
209
+ privateNavigationTabOnDarkOutlineDay: "rgba(255, 255, 255, 0.2)",
210
+ privateNavigationTabOnDarkOutlineNight: "rgba(255, 255, 255, 0.2)",
211
+ privateNavigationTabSelectedDay: "rgb(2, 77, 175)",
212
+ privateNavigationTabSelectedNight: "rgb(5, 65, 132)",
209
213
  privateCardButtonContainedFillDay: "rgba(255, 255, 255, 0.8)",
210
214
  privateCardButtonContainedFillNight: "rgba(0, 0, 0, 0.8)",
211
215
  privateSegmentedControlCanvasDefaultDay: "rgb(239, 243, 248)",
@@ -391,6 +391,14 @@ $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-on-dark-outline-day: rgba(255, 255, 255, 0.2) !default;
396
+ /// @group navigation-tab-colors
397
+ $bpk-private-navigation-tab-on-dark-outline-night: rgba(255, 255, 255, 0.2) !default;
398
+ /// @group navigation-tab-colors
399
+ $bpk-private-navigation-tab-selected-day: rgb(2, 77, 175) !default;
400
+ /// @group navigation-tab-colors
401
+ $bpk-private-navigation-tab-selected-night: rgb(5, 65, 132) !default;
394
402
  /// @group card-button-colors
395
403
  $bpk-private-card-button-contained-fill-day: rgba(255, 255, 255, 0.8) !default;
396
404
  /// @group card-button-colors
@@ -730,8 +738,12 @@ $bpk-private-slider-selected-day: rgb(21, 70, 121) !default;
730
738
  /// @group spacings
731
739
  @function bpk-spacing-lg() { @return 1.5rem; }
732
740
  /// @group spacings
741
+ @function bpk-spacing-xs() { @return .125rem; }
742
+ /// @group spacings
733
743
  $bpk-one-pixel-rem: .0625rem !default;
734
744
  /// @group spacings
745
+ @function bpk-spacing-xxs() { @return .0625rem; }
746
+ /// @group spacings
735
747
  $bpk-spacing-none: 0 !default;
736
748
  /// @group spacings
737
749
  $bpk-spacing-icon-text: .5rem !default;
@@ -204,6 +204,10 @@ 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 privateNavigationTabOnDarkOutlineDay = "rgba(255, 255, 255, 0.2)" as const;
208
+ export declare const privateNavigationTabOnDarkOutlineNight = "rgba(255, 255, 255, 0.2)" as const;
209
+ export declare const privateNavigationTabSelectedDay = "rgb(2, 77, 175)" as const;
210
+ export declare const privateNavigationTabSelectedNight = "rgb(5, 65, 132)" as const;
207
211
  export declare const privateCardButtonContainedFillDay = "rgba(255, 255, 255, 0.8)" as const;
208
212
  export declare const privateCardButtonContainedFillNight = "rgba(0, 0, 0, 0.8)" as const;
209
213
  export declare const privateSegmentedControlCanvasDefaultDay = "rgb(239, 243, 248)" as const;
@@ -724,6 +728,10 @@ privateNavigationTabHoverDay,
724
728
  privateNavigationTabHoverNight,
725
729
  privateNavigationTabOutlineDay,
726
730
  privateNavigationTabOutlineNight,
731
+ privateNavigationTabOnDarkOutlineDay,
732
+ privateNavigationTabOnDarkOutlineNight,
733
+ privateNavigationTabSelectedDay,
734
+ privateNavigationTabSelectedNight,
727
735
  } as const;
728
736
  export declare const notifications = {
729
737
  bannerAlertHeaderExpandableHoverBackgroundColor,
@@ -204,6 +204,10 @@ 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 privateNavigationTabOnDarkOutlineDay = "rgba(255, 255, 255, 0.2)";
208
+ export const privateNavigationTabOnDarkOutlineNight = "rgba(255, 255, 255, 0.2)";
209
+ export const privateNavigationTabSelectedDay = "rgb(2, 77, 175)";
210
+ export const privateNavigationTabSelectedNight = "rgb(5, 65, 132)";
207
211
  export const privateCardButtonContainedFillDay = "rgba(255, 255, 255, 0.8)";
208
212
  export const privateCardButtonContainedFillNight = "rgba(0, 0, 0, 0.8)";
209
213
  export const privateSegmentedControlCanvasDefaultDay = "rgb(239, 243, 248)";
@@ -724,6 +728,10 @@ privateNavigationTabHoverDay,
724
728
  privateNavigationTabHoverNight,
725
729
  privateNavigationTabOutlineDay,
726
730
  privateNavigationTabOutlineNight,
731
+ privateNavigationTabOnDarkOutlineDay,
732
+ privateNavigationTabOnDarkOutlineNight,
733
+ privateNavigationTabSelectedDay,
734
+ privateNavigationTabSelectedNight,
727
735
  };
728
736
  export const notifications = {
729
737
  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,34 @@
1792
1798
  "originalValue": "{!WHITE}",
1793
1799
  "name": "PRIVATE_NAVIGATION_TAB_OUTLINE_NIGHT"
1794
1800
  },
1801
+ "PRIVATE_NAVIGATION_TAB_ON_DARK_OUTLINE_DAY": {
1802
+ "type": "color",
1803
+ "category": "navigation-tab-colors",
1804
+ "value": "rgba(255, 255, 255, 0.2)",
1805
+ "originalValue": "{!WHITE_ALPHA_20}",
1806
+ "name": "PRIVATE_NAVIGATION_TAB_ON_DARK_OUTLINE_DAY"
1807
+ },
1808
+ "PRIVATE_NAVIGATION_TAB_ON_DARK_OUTLINE_NIGHT": {
1809
+ "type": "color",
1810
+ "category": "navigation-tab-colors",
1811
+ "value": "rgba(255, 255, 255, 0.2)",
1812
+ "originalValue": "{!WHITE_ALPHA_20}",
1813
+ "name": "PRIVATE_NAVIGATION_TAB_ON_DARK_OUTLINE_NIGHT"
1814
+ },
1815
+ "PRIVATE_NAVIGATION_TAB_SELECTED_DAY": {
1816
+ "type": "color",
1817
+ "category": "navigation-tab-colors",
1818
+ "value": "rgb(2, 77, 175)",
1819
+ "originalValue": "{!SKY_BLUE_85}",
1820
+ "name": "PRIVATE_NAVIGATION_TAB_SELECTED_DAY"
1821
+ },
1822
+ "PRIVATE_NAVIGATION_TAB_SELECTED_NIGHT": {
1823
+ "type": "color",
1824
+ "category": "navigation-tab-colors",
1825
+ "value": "rgb(5, 65, 132)",
1826
+ "originalValue": "{!NIGHT_SKY}",
1827
+ "name": "PRIVATE_NAVIGATION_TAB_SELECTED_NIGHT"
1828
+ },
1795
1829
  "PRIVATE_CARD_BUTTON_CONTAINED_FILL_DAY": {
1796
1830
  "type": "color",
1797
1831
  "category": "card-button-colors",
@@ -3041,6 +3075,13 @@
3041
3075
  "originalValue": "@function bpk-spacing-lg() { @return {!SPACING_LG}; }",
3042
3076
  "name": "SPACING_FUNCTION_LG"
3043
3077
  },
3078
+ "SPACING_FUNCTION_XS": {
3079
+ "type": "function",
3080
+ "category": "spacings",
3081
+ "value": "@function bpk-spacing-xs() { @return .125rem; }",
3082
+ "originalValue": "@function bpk-spacing-xs() { @return {!SPACING_XS}; }",
3083
+ "name": "SPACING_FUNCTION_XS"
3084
+ },
3044
3085
  "ONE_PIXEL_REM": {
3045
3086
  "type": "size",
3046
3087
  "category": "spacings",
@@ -3048,6 +3089,13 @@
3048
3089
  "originalValue": "{!ONE_PIXEL_REM}",
3049
3090
  "name": "ONE_PIXEL_REM"
3050
3091
  },
3092
+ "SPACING_FUNCTION_XXS": {
3093
+ "type": "function",
3094
+ "category": "spacings",
3095
+ "value": "@function bpk-spacing-xxs() { @return .0625rem; }",
3096
+ "originalValue": "@function bpk-spacing-xxs() { @return {!SPACING_XXS}; }",
3097
+ "name": "SPACING_FUNCTION_XXS"
3098
+ },
3051
3099
  "SPACING_NONE": {
3052
3100
  "type": "size",
3053
3101
  "category": "spacings",
package/tokens/base.scss CHANGED
@@ -391,6 +391,14 @@ $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-on-dark-outline-day: rgba(255, 255, 255, 0.2);
396
+ /// @group navigation-tab-colors
397
+ $bpk-private-navigation-tab-on-dark-outline-night: rgba(255, 255, 255, 0.2);
398
+ /// @group navigation-tab-colors
399
+ $bpk-private-navigation-tab-selected-day: rgb(2, 77, 175);
400
+ /// @group navigation-tab-colors
401
+ $bpk-private-navigation-tab-selected-night: rgb(5, 65, 132);
394
402
  /// @group card-button-colors
395
403
  $bpk-private-card-button-contained-fill-day: rgba(255, 255, 255, 0.8);
396
404
  /// @group card-button-colors
@@ -730,8 +738,12 @@ $bpk-private-slider-selected-day: rgb(21, 70, 121);
730
738
  /// @group spacings
731
739
  @function bpk-spacing-lg() { @return 1.5rem; }
732
740
  /// @group spacings
741
+ @function bpk-spacing-xs() { @return .125rem; }
742
+ /// @group spacings
733
743
  $bpk-one-pixel-rem: .0625rem;
734
744
  /// @group spacings
745
+ @function bpk-spacing-xxs() { @return .0625rem; }
746
+ /// @group spacings
735
747
  $bpk-spacing-none: 0;
736
748
  /// @group spacings
737
749
  $bpk-spacing-icon-text: .5rem;