@gitlab/ui 89.4.0 → 89.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/components/base/daterange_picker/daterange_picker.js +1 -1
  3. package/dist/index.css +2 -2
  4. package/dist/index.css.map +1 -1
  5. package/dist/tokens/build/js/tokens.dark.js +6 -4
  6. package/dist/tokens/build/js/tokens.js +5 -3
  7. package/dist/tokens/css/tokens.css +4 -2
  8. package/dist/tokens/css/tokens.dark.css +5 -3
  9. package/dist/tokens/js/tokens.dark.js +5 -3
  10. package/dist/tokens/js/tokens.js +4 -2
  11. package/dist/tokens/json/tokens.dark.json +69 -12
  12. package/dist/tokens/json/tokens.json +68 -11
  13. package/dist/tokens/scss/_tokens.dark.scss +5 -3
  14. package/dist/tokens/scss/_tokens.scss +4 -2
  15. package/dist/tokens/scss/_tokens_custom_properties.scss +2 -0
  16. package/package.json +2 -2
  17. package/src/components/base/banner/banner.scss +1 -1
  18. package/src/components/base/daterange_picker/daterange_picker.scss +2 -6
  19. package/src/components/base/daterange_picker/daterange_picker.vue +8 -1
  20. package/src/components/base/tabs/tabs/tabs.scss +40 -26
  21. package/src/scss/body.scss +4 -0
  22. package/src/scss/gitlab_ui.scss +3 -0
  23. package/src/scss/mixins.scss +24 -0
  24. package/src/scss/storybook.scss +1 -0
  25. package/src/scss/storybook_dark_mode.scss +0 -6
  26. package/src/tokens/build/css/tokens.css +4 -2
  27. package/src/tokens/build/css/tokens.dark.css +5 -3
  28. package/src/tokens/build/js/tokens.dark.js +5 -3
  29. package/src/tokens/build/js/tokens.js +4 -2
  30. package/src/tokens/build/json/tokens.dark.json +69 -12
  31. package/src/tokens/build/json/tokens.json +68 -11
  32. package/src/tokens/build/scss/_tokens.dark.scss +5 -3
  33. package/src/tokens/build/scss/_tokens.scss +4 -2
  34. package/src/tokens/build/scss/_tokens_custom_properties.scss +2 -0
  35. package/src/tokens/contextual/banner.tokens.json +16 -6
  36. package/src/tokens/contextual/tabs.tokens.json +18 -0
  37. package/src/tokens/feedback.tokens.json +1 -1
@@ -8999,18 +8999,18 @@
8999
8999
  "intro": {
9000
9000
  "border": {
9001
9001
  "color": {
9002
- "value": "#1068bf",
9002
+ "value": "#064787",
9003
9003
  "$type": "color",
9004
- "comment": "Used to compliment the info banner.",
9004
+ "comment": "Used for the border of an info banner.",
9005
9005
  "filePath": "src/tokens/contextual/banner.tokens.json",
9006
9006
  "isSource": true,
9007
9007
  "original": {
9008
9008
  "value": {
9009
- "default": "{color.blue.300}",
9010
- "dark": "{color.blue.600}"
9009
+ "default": "{color.blue.100}",
9010
+ "dark": "{color.blue.800}"
9011
9011
  },
9012
9012
  "$type": "color",
9013
- "comment": "Used to compliment the info banner."
9013
+ "comment": "Used for the border of an info banner."
9014
9014
  },
9015
9015
  "name": "BANNER_INTRO_BORDER_COLOR",
9016
9016
  "attributes": {},
@@ -9026,18 +9026,18 @@
9026
9026
  "promo": {
9027
9027
  "background": {
9028
9028
  "color": {
9029
- "value": "#28272d",
9029
+ "value": "#232150",
9030
9030
  "$type": "color",
9031
- "comment": "Used as background for the default banner type.",
9031
+ "comment": "Used for the background of a promo banner.",
9032
9032
  "filePath": "src/tokens/contextual/banner.tokens.json",
9033
9033
  "isSource": true,
9034
9034
  "original": {
9035
9035
  "value": {
9036
- "default": "{color.neutral.10}",
9037
- "dark": "{color.neutral.900}"
9036
+ "default": "{color.purple.50}",
9037
+ "dark": "{color.purple.950}"
9038
9038
  },
9039
9039
  "$type": "color",
9040
- "comment": "Used as background for the default banner type."
9040
+ "comment": "Used for the background of a promo banner."
9041
9041
  },
9042
9042
  "name": "BANNER_PROMO_BACKGROUND_COLOR",
9043
9043
  "attributes": {},
@@ -9048,6 +9048,31 @@
9048
9048
  "color"
9049
9049
  ]
9050
9050
  }
9051
+ },
9052
+ "border": {
9053
+ "color": {
9054
+ "value": "#453894",
9055
+ "$type": "color",
9056
+ "comment": "Used for the border of a promo banner.",
9057
+ "filePath": "src/tokens/contextual/banner.tokens.json",
9058
+ "isSource": true,
9059
+ "original": {
9060
+ "value": {
9061
+ "default": "{color.purple.100}",
9062
+ "dark": "{color.purple.800}"
9063
+ },
9064
+ "$type": "color",
9065
+ "comment": "Used for the border of a promo banner."
9066
+ },
9067
+ "name": "BANNER_PROMO_BORDER_COLOR",
9068
+ "attributes": {},
9069
+ "path": [
9070
+ "banner",
9071
+ "promo",
9072
+ "border",
9073
+ "color"
9074
+ ]
9075
+ }
9051
9076
  }
9052
9077
  }
9053
9078
  },
@@ -12535,6 +12560,38 @@
12535
12560
  }
12536
12561
  }
12537
12562
  },
12563
+ "tab": {
12564
+ "selected": {
12565
+ "indicator": {
12566
+ "color": {
12567
+ "default": {
12568
+ "value": "#428fdc",
12569
+ "$type": "color",
12570
+ "comment": "Used for the selected indicator of a tab.",
12571
+ "filePath": "src/tokens/contextual/tabs.tokens.json",
12572
+ "isSource": true,
12573
+ "original": {
12574
+ "value": {
12575
+ "default": "{color.blue.500}",
12576
+ "dark": "{color.blue.400}"
12577
+ },
12578
+ "$type": "color",
12579
+ "comment": "Used for the selected indicator of a tab."
12580
+ },
12581
+ "name": "TAB_SELECTED_INDICATOR_COLOR_DEFAULT",
12582
+ "attributes": {},
12583
+ "path": [
12584
+ "tab",
12585
+ "selected",
12586
+ "indicator",
12587
+ "color",
12588
+ "default"
12589
+ ]
12590
+ }
12591
+ }
12592
+ }
12593
+ }
12594
+ },
12538
12595
  "control": {
12539
12596
  "background": {
12540
12597
  "color": {
@@ -17417,7 +17474,7 @@
17417
17474
  "info": {
17418
17475
  "background": {
17419
17476
  "color": {
17420
- "value": "#033464",
17477
+ "value": "#002850",
17421
17478
  "$type": "color",
17422
17479
  "comment": "Used for the background of an informational feedback item when highlighting new information or a change that doesn't require immediate action.",
17423
17480
  "filePath": "src/tokens/feedback.tokens.json",
@@ -17425,7 +17482,7 @@
17425
17482
  "original": {
17426
17483
  "value": {
17427
17484
  "default": "{color.blue.50}",
17428
- "dark": "{color.blue.900}"
17485
+ "dark": "{color.blue.950}"
17429
17486
  },
17430
17487
  "$type": "color",
17431
17488
  "comment": "Used for the background of an informational feedback item when highlighting new information or a change that doesn't require immediate action."
@@ -8999,18 +8999,18 @@
8999
8999
  "intro": {
9000
9000
  "border": {
9001
9001
  "color": {
9002
- "value": "#63a6e9",
9002
+ "value": "#cbe2f9",
9003
9003
  "$type": "color",
9004
- "comment": "Used to compliment the info banner.",
9004
+ "comment": "Used for the border of an info banner.",
9005
9005
  "filePath": "src/tokens/contextual/banner.tokens.json",
9006
9006
  "isSource": true,
9007
9007
  "original": {
9008
9008
  "value": {
9009
- "default": "{color.blue.300}",
9010
- "dark": "{color.blue.600}"
9009
+ "default": "{color.blue.100}",
9010
+ "dark": "{color.blue.800}"
9011
9011
  },
9012
9012
  "$type": "color",
9013
- "comment": "Used to compliment the info banner."
9013
+ "comment": "Used for the border of an info banner."
9014
9014
  },
9015
9015
  "name": "BANNER_INTRO_BORDER_COLOR",
9016
9016
  "attributes": {},
@@ -9026,18 +9026,18 @@
9026
9026
  "promo": {
9027
9027
  "background": {
9028
9028
  "color": {
9029
- "value": "#fbfafd",
9029
+ "value": "#f4f0ff",
9030
9030
  "$type": "color",
9031
- "comment": "Used as background for the default banner type.",
9031
+ "comment": "Used for the background of a promo banner.",
9032
9032
  "filePath": "src/tokens/contextual/banner.tokens.json",
9033
9033
  "isSource": true,
9034
9034
  "original": {
9035
9035
  "value": {
9036
- "default": "{color.neutral.10}",
9037
- "dark": "{color.neutral.900}"
9036
+ "default": "{color.purple.50}",
9037
+ "dark": "{color.purple.950}"
9038
9038
  },
9039
9039
  "$type": "color",
9040
- "comment": "Used as background for the default banner type."
9040
+ "comment": "Used for the background of a promo banner."
9041
9041
  },
9042
9042
  "name": "BANNER_PROMO_BACKGROUND_COLOR",
9043
9043
  "attributes": {},
@@ -9048,6 +9048,31 @@
9048
9048
  "color"
9049
9049
  ]
9050
9050
  }
9051
+ },
9052
+ "border": {
9053
+ "color": {
9054
+ "value": "#e1d8f9",
9055
+ "$type": "color",
9056
+ "comment": "Used for the border of a promo banner.",
9057
+ "filePath": "src/tokens/contextual/banner.tokens.json",
9058
+ "isSource": true,
9059
+ "original": {
9060
+ "value": {
9061
+ "default": "{color.purple.100}",
9062
+ "dark": "{color.purple.800}"
9063
+ },
9064
+ "$type": "color",
9065
+ "comment": "Used for the border of a promo banner."
9066
+ },
9067
+ "name": "BANNER_PROMO_BORDER_COLOR",
9068
+ "attributes": {},
9069
+ "path": [
9070
+ "banner",
9071
+ "promo",
9072
+ "border",
9073
+ "color"
9074
+ ]
9075
+ }
9051
9076
  }
9052
9077
  }
9053
9078
  },
@@ -12535,6 +12560,38 @@
12535
12560
  }
12536
12561
  }
12537
12562
  },
12563
+ "tab": {
12564
+ "selected": {
12565
+ "indicator": {
12566
+ "color": {
12567
+ "default": {
12568
+ "value": "#1f75cb",
12569
+ "$type": "color",
12570
+ "comment": "Used for the selected indicator of a tab.",
12571
+ "filePath": "src/tokens/contextual/tabs.tokens.json",
12572
+ "isSource": true,
12573
+ "original": {
12574
+ "value": {
12575
+ "default": "{color.blue.500}",
12576
+ "dark": "{color.blue.400}"
12577
+ },
12578
+ "$type": "color",
12579
+ "comment": "Used for the selected indicator of a tab."
12580
+ },
12581
+ "name": "TAB_SELECTED_INDICATOR_COLOR_DEFAULT",
12582
+ "attributes": {},
12583
+ "path": [
12584
+ "tab",
12585
+ "selected",
12586
+ "indicator",
12587
+ "color",
12588
+ "default"
12589
+ ]
12590
+ }
12591
+ }
12592
+ }
12593
+ }
12594
+ },
12538
12595
  "control": {
12539
12596
  "background": {
12540
12597
  "color": {
@@ -17425,7 +17482,7 @@
17425
17482
  "original": {
17426
17483
  "value": {
17427
17484
  "default": "{color.blue.50}",
17428
- "dark": "{color.blue.900}"
17485
+ "dark": "{color.blue.950}"
17429
17486
  },
17430
17487
  "$type": "color",
17431
17488
  "comment": "Used for the background of an informational feedback item when highlighting new information or a change that doesn't require immediate action."
@@ -469,7 +469,7 @@ $gl-feedback-success-text-color: $gl-color-green-200; // Used for the text of a
469
469
  $gl-feedback-success-background-color: $gl-color-green-900; // Used for the background of a success feedback item when confirming the successful completion of a user-initiated action.
470
470
  $gl-feedback-info-icon-color: $gl-color-blue-300; // Used for the icon of an informational feedback item when highlighting new information or a change that doesn't require immediate action.
471
471
  $gl-feedback-info-text-color: $gl-color-blue-200; // Used for the text of an informational feedback item when highlighting new information or a change that doesn't require immediate action.
472
- $gl-feedback-info-background-color: $gl-color-blue-900; // Used for the background of an informational feedback item when highlighting new information or a change that doesn't require immediate action.
472
+ $gl-feedback-info-background-color: $gl-color-blue-950; // Used for the background of an informational feedback item when highlighting new information or a change that doesn't require immediate action.
473
473
  $gl-feedback-neutral-icon-color: $gl-color-neutral-300; // Used for the icon of a neutral feedback item when there isn't a specific meaning or urgency.
474
474
  $gl-feedback-neutral-text-color: $gl-color-neutral-200; // Used for the text of a neutral feedback item when there isn't a specific meaning or urgency.
475
475
  $gl-feedback-neutral-background-color: $gl-color-neutral-900; // Used for the background of a neutral feedback item when there isn't a specific meaning or urgency.
@@ -494,6 +494,7 @@ $gl-control-background-color-readonly: $gl-color-neutral-900; // Used for the ba
494
494
  $gl-control-background-color-concatenation: $gl-color-alpha-light-4; // Used for the background of static content that prepends or appends a text input.
495
495
  $gl-control-background-color-disabled: $gl-color-alpha-light-4; // Used for disabled form control (checkbox, input, radio button, textarea) background.
496
496
  $gl-control-background-color-default: $gl-color-alpha-dark-40; // Used for form control (input, radio button, checkbox, textarea) default background.
497
+ $gl-tab-selected-indicator-color-default: $gl-color-blue-400; // Used for the selected indicator of a tab.
497
498
  $gl-spinner-segment-color-light: $gl-color-neutral-200; // Used for the animated segment of a loading spinner on a dark background.
498
499
  $gl-spinner-segment-color-default: $gl-color-neutral-200; // Used for the animated segment of a loading spinner.
499
500
  $gl-spinner-track-color-light: $gl-color-neutral-800; // Used for the static track (background) of a loading spinner on a dark background.
@@ -566,8 +567,9 @@ $gl-button-default-primary-background-color-hover: $gl-color-neutral-900; // Use
566
567
  $gl-button-default-primary-background-color-default: $gl-color-neutral-900; // Used for the background of an default primary button in the default state.
567
568
  $gl-button-default-primary-foreground-color-default: $gl-color-neutral-50; // Used for the foreground of a default primary button in the default state.
568
569
  $gl-breadcrumb-separator-color: $gl-color-neutral-400; // Used for the breadcrumb level separator.
569
- $gl-banner-promo-background-color: $gl-color-neutral-900; // Used as background for the default banner type.
570
- $gl-banner-intro-border-color: $gl-color-blue-600; // Used to compliment the info banner.
570
+ $gl-banner-promo-border-color: $gl-color-purple-800; // Used for the border of a promo banner.
571
+ $gl-banner-promo-background-color: $gl-color-purple-950; // Used for the background of a promo banner.
572
+ $gl-banner-intro-border-color: $gl-color-blue-800; // Used for the border of an info banner.
571
573
  $gl-badge-tier-icon-color-active: $gl-color-purple-950; // Used for the icon of a tier related badge in the active state.
572
574
  $gl-badge-tier-icon-color-hover: $gl-color-purple-950; // Used for the icon of a tier related badge in the hover state.
573
575
  $gl-badge-tier-icon-color-default: $gl-color-purple-950; // Used for the icon of a tier related badge when static or the default state when linked.
@@ -494,6 +494,7 @@ $gl-control-background-color-readonly: $gl-color-neutral-10; // Used for the bac
494
494
  $gl-control-background-color-concatenation: $gl-color-neutral-10; // Used for the background of static content that prepends or appends a text input.
495
495
  $gl-control-background-color-disabled: $gl-color-neutral-10; // Used for disabled form control (checkbox, input, radio button, textarea) background.
496
496
  $gl-control-background-color-default: $gl-color-neutral-0; // Used for form control (input, radio button, checkbox, textarea) default background.
497
+ $gl-tab-selected-indicator-color-default: $gl-color-blue-500; // Used for the selected indicator of a tab.
497
498
  $gl-spinner-segment-color-light: $gl-color-neutral-200; // Used for the animated segment of a loading spinner on a dark background.
498
499
  $gl-spinner-segment-color-default: $gl-color-neutral-700; // Used for the animated segment of a loading spinner.
499
500
  $gl-spinner-track-color-light: $gl-color-neutral-800; // Used for the static track (background) of a loading spinner on a dark background.
@@ -566,8 +567,9 @@ $gl-button-default-primary-background-color-hover: $gl-color-neutral-50; // Used
566
567
  $gl-button-default-primary-background-color-default: $gl-color-neutral-0; // Used for the background of an default primary button in the default state.
567
568
  $gl-button-default-primary-foreground-color-default: $gl-color-neutral-800; // Used for the foreground of a default primary button in the default state.
568
569
  $gl-breadcrumb-separator-color: $gl-color-neutral-400; // Used for the breadcrumb level separator.
569
- $gl-banner-promo-background-color: $gl-color-neutral-10; // Used as background for the default banner type.
570
- $gl-banner-intro-border-color: $gl-color-blue-300; // Used to compliment the info banner.
570
+ $gl-banner-promo-border-color: $gl-color-purple-100; // Used for the border of a promo banner.
571
+ $gl-banner-promo-background-color: $gl-color-purple-50; // Used for the background of a promo banner.
572
+ $gl-banner-intro-border-color: $gl-color-blue-100; // Used for the border of an info banner.
571
573
  $gl-badge-tier-icon-color-active: $gl-color-purple-900; // Used for the icon of a tier related badge in the active state.
572
574
  $gl-badge-tier-icon-color-hover: $gl-color-purple-800; // Used for the icon of a tier related badge in the hover state.
573
575
  $gl-badge-tier-icon-color-default: $gl-color-purple-700; // Used for the icon of a tier related badge when static or the default state when linked.
@@ -429,6 +429,7 @@ $gl-badge-tier-icon-color-focus: var(--gl-badge-tier-icon-color-focus);
429
429
  $gl-badge-tier-icon-color-active: var(--gl-badge-tier-icon-color-active);
430
430
  $gl-banner-intro-border-color: var(--gl-banner-intro-border-color);
431
431
  $gl-banner-promo-background-color: var(--gl-banner-promo-background-color);
432
+ $gl-banner-promo-border-color: var(--gl-banner-promo-border-color);
432
433
  $gl-breadcrumb-separator-color: var(--gl-breadcrumb-separator-color);
433
434
  $gl-button-default-primary-foreground-color-default: var(--gl-button-default-primary-foreground-color-default);
434
435
  $gl-button-default-primary-foreground-color-hover: var(--gl-button-default-primary-foreground-color-hover);
@@ -572,6 +573,7 @@ $gl-spinner-segment-color-default: var(--gl-spinner-segment-color-default);
572
573
  $gl-spinner-segment-color-light: var(--gl-spinner-segment-color-light);
573
574
  $gl-table-row-background-color-hover: var(--gl-table-row-background-color-hover);
574
575
  $gl-table-sorting-icon-color: var(--gl-table-sorting-icon-color);
576
+ $gl-tab-selected-indicator-color-default: var(--gl-tab-selected-indicator-color-default);
575
577
  $gl-control-background-color-default: var(--gl-control-background-color-default);
576
578
  $gl-control-background-color-disabled: var(--gl-control-background-color-disabled);
577
579
  $gl-control-background-color-concatenation: var(--gl-control-background-color-concatenation);
@@ -4,11 +4,11 @@
4
4
  "border": {
5
5
  "color": {
6
6
  "$value": {
7
- "default": "{color.blue.300}",
8
- "dark": "{color.blue.600}"
7
+ "default": "{color.blue.100}",
8
+ "dark": "{color.blue.800}"
9
9
  },
10
10
  "$type": "color",
11
- "$description": "Used to compliment the info banner."
11
+ "$description": "Used for the border of an info banner."
12
12
  }
13
13
  }
14
14
  },
@@ -16,11 +16,21 @@
16
16
  "background": {
17
17
  "color": {
18
18
  "$value": {
19
- "default": "{color.neutral.10}",
20
- "dark": "{color.neutral.900}"
19
+ "default": "{color.purple.50}",
20
+ "dark": "{color.purple.950}"
21
21
  },
22
22
  "$type": "color",
23
- "$description": "Used as background for the default banner type."
23
+ "$description": "Used for the background of a promo banner."
24
+ }
25
+ },
26
+ "border": {
27
+ "color": {
28
+ "$value": {
29
+ "default": "{color.purple.100}",
30
+ "dark": "{color.purple.800}"
31
+ },
32
+ "$type": "color",
33
+ "$description": "Used for the border of a promo banner."
24
34
  }
25
35
  }
26
36
  }
@@ -0,0 +1,18 @@
1
+ {
2
+ "tab": {
3
+ "selected": {
4
+ "indicator": {
5
+ "color": {
6
+ "default": {
7
+ "$value": {
8
+ "default": "{color.blue.500}",
9
+ "dark": "{color.blue.400}"
10
+ },
11
+ "$type": "color",
12
+ "$description": "Used for the selected indicator of a tab."
13
+ }
14
+ }
15
+ }
16
+ }
17
+ }
18
+ }
@@ -79,7 +79,7 @@
79
79
  "color": {
80
80
  "$value": {
81
81
  "default": "{color.blue.50}",
82
- "dark": "{color.blue.900}"
82
+ "dark": "{color.blue.950}"
83
83
  },
84
84
  "$type": "color",
85
85
  "$description": "Used for the background of an informational feedback item when highlighting new information or a change that doesn't require immediate action."