@gitlab/ui 94.10.0 → 95.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/components/base/progress_bar/progress_bar.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 -1
  6. package/dist/tokens/build/js/tokens.js +6 -1
  7. package/dist/tokens/css/tokens.css +5 -0
  8. package/dist/tokens/css/tokens.dark.css +5 -0
  9. package/dist/tokens/js/tokens.dark.js +5 -0
  10. package/dist/tokens/js/tokens.js +5 -0
  11. package/dist/tokens/json/tokens.dark.json +110 -0
  12. package/dist/tokens/json/tokens.json +110 -0
  13. package/dist/tokens/scss/_tokens.dark.scss +5 -0
  14. package/dist/tokens/scss/_tokens.scss +5 -0
  15. package/dist/tokens/scss/_tokens_custom_properties.scss +5 -0
  16. package/dist/utils/constants.js +3 -14
  17. package/dist/vendor/bootstrap-vue/src/components/modal/modal.js +4 -34
  18. package/package.json +1 -1
  19. package/src/components/base/progress_bar/progress_bar.scss +19 -0
  20. package/src/components/base/progress_bar/progress_bar.vue +1 -1
  21. package/src/scss/components.scss +1 -0
  22. package/src/tokens/build/css/tokens.css +5 -0
  23. package/src/tokens/build/css/tokens.dark.css +5 -0
  24. package/src/tokens/build/js/tokens.dark.js +5 -0
  25. package/src/tokens/build/js/tokens.js +5 -0
  26. package/src/tokens/build/json/tokens.dark.json +110 -0
  27. package/src/tokens/build/json/tokens.json +110 -0
  28. package/src/tokens/build/scss/_tokens.dark.scss +5 -0
  29. package/src/tokens/build/scss/_tokens.scss +5 -0
  30. package/src/tokens/build/scss/_tokens_custom_properties.scss +5 -0
  31. package/src/tokens/contextual/progress-bar.tokens.json +38 -0
  32. package/src/utils/constants.js +1 -11
  33. package/src/vendor/bootstrap-vue/src/components/modal/MODIFICATIONS.md +27 -0
  34. package/src/vendor/bootstrap-vue/src/components/modal/README.md +2 -118
  35. package/src/vendor/bootstrap-vue/src/components/modal/index.d.ts +0 -10
  36. package/src/vendor/bootstrap-vue/src/components/modal/modal.js +4 -43
  37. package/src/vendor/bootstrap-vue/src/components/modal/package.json +0 -36
  38. package/src/vendor/bootstrap-vue/src/components/progress/MODIFICATIONS.md +23 -0
  39. package/src/vendor/bootstrap-vue/src/components/progress/README.md +4 -17
@@ -503,6 +503,7 @@ $gl-spinner-track-color-light: $gl-color-neutral-800; // Used for the static tra
503
503
  $gl-spinner-track-color-default: $gl-color-neutral-800; // Used for the static track (background) of a loading spinner.
504
504
  $gl-skeleton-loader-shimmer-color: $gl-color-neutral-700; // Used for the animated shimmer effect in a skeleton loader.
505
505
  $gl-skeleton-loader-background-color: $gl-color-neutral-800; // Used for the skeleton loader background color.
506
+ $gl-progress-bar-track-color: $gl-color-neutral-700; // Used for the track color for all progress-bar variants.
506
507
  $gl-link-mention-background-color-current: $gl-color-orange-800; // Used for the mention link background when referencing the current user.
507
508
  $gl-link-mention-background-color-default: $gl-color-blue-800; // Used for the mention link default background.
508
509
  $gl-link-mention-text-color-current: $gl-color-orange-100; // Used for the mention link text color when referencing the current user.
@@ -779,6 +780,10 @@ $gl-control-text-color-error: $gl-text-color-danger; // Used for the helper text
779
780
  $gl-token-foreground-color: $gl-text-color-default; // Used for the token foreground color.
780
781
  $gl-table-sorting-icon-color: $gl-text-color-heading; // Used for the color of the sorting icons in the column headers.
781
782
  $gl-table-row-background-color-hover: $gl-background-color-subtle; // Used for the background of a table row in hover state.
783
+ $gl-progress-bar-indicator-color-danger: $gl-status-danger-icon-color; // Used for the indicator color for the danger progress-bar variant.
784
+ $gl-progress-bar-indicator-color-warning: $gl-status-warning-icon-color; // Used for the indicator color for the warning progress-bar variant.
785
+ $gl-progress-bar-indicator-color-success: $gl-status-success-icon-color; // Used for the indicator color for the success progress-bar variant.
786
+ $gl-progress-bar-indicator-color-default: $gl-status-info-icon-color; // Used for the indicator color for the primary progress-bar variant.
782
787
  $gl-dropdown-option-background-color-selected-focus: $gl-dropdown-option-background-color-selected-hover; // Used for the background of a selected dropdown option in the focus state.
783
788
  $gl-dropdown-option-background-color-unselected-focus: $gl-action-neutral-background-color-focus; // Used for the background of an unselected dropdown option in the focus state.
784
789
  $gl-dropdown-option-indicator-color-selected-focus: $gl-color-neutral-0; // Used for the dropdown selected option indicator in the focus state.
@@ -503,6 +503,7 @@ $gl-spinner-track-color-light: $gl-color-neutral-800; // Used for the static tra
503
503
  $gl-spinner-track-color-default: $gl-color-neutral-100; // Used for the static track (background) of a loading spinner.
504
504
  $gl-skeleton-loader-shimmer-color: $gl-color-neutral-50; // Used for the animated shimmer effect in a skeleton loader.
505
505
  $gl-skeleton-loader-background-color: $gl-color-neutral-100; // Used for the skeleton loader background color.
506
+ $gl-progress-bar-track-color: $gl-color-neutral-200; // Used for the track color for all progress-bar variants.
506
507
  $gl-link-mention-background-color-current: $gl-color-orange-100; // Used for the mention link background when referencing the current user.
507
508
  $gl-link-mention-background-color-default: $gl-color-blue-100; // Used for the mention link default background.
508
509
  $gl-link-mention-text-color-current: $gl-color-orange-800; // Used for the mention link text color when referencing the current user.
@@ -779,6 +780,10 @@ $gl-control-text-color-error: $gl-text-color-danger; // Used for the helper text
779
780
  $gl-token-foreground-color: $gl-text-color-default; // Used for the token foreground color.
780
781
  $gl-table-sorting-icon-color: $gl-text-color-heading; // Used for the color of the sorting icons in the column headers.
781
782
  $gl-table-row-background-color-hover: $gl-background-color-subtle; // Used for the background of a table row in hover state.
783
+ $gl-progress-bar-indicator-color-danger: $gl-status-danger-icon-color; // Used for the indicator color for the danger progress-bar variant.
784
+ $gl-progress-bar-indicator-color-warning: $gl-status-warning-icon-color; // Used for the indicator color for the warning progress-bar variant.
785
+ $gl-progress-bar-indicator-color-success: $gl-status-success-icon-color; // Used for the indicator color for the success progress-bar variant.
786
+ $gl-progress-bar-indicator-color-default: $gl-status-info-icon-color; // Used for the indicator color for the primary progress-bar variant.
782
787
  $gl-dropdown-option-background-color-selected-focus: $gl-dropdown-option-background-color-selected-hover; // Used for the background of a selected dropdown option in the focus state.
783
788
  $gl-dropdown-option-background-color-unselected-focus: $gl-action-neutral-background-color-focus; // Used for the background of an unselected dropdown option in the focus state.
784
789
  $gl-dropdown-option-indicator-color-selected-focus: $gl-control-background-color-selected-focus; // Used for the dropdown selected option indicator in the focus state.
@@ -668,6 +668,11 @@ $gl-link-mention-text-color-default: var(--gl-link-mention-text-color-default);
668
668
  $gl-link-mention-text-color-current: var(--gl-link-mention-text-color-current);
669
669
  $gl-link-mention-background-color-default: var(--gl-link-mention-background-color-default);
670
670
  $gl-link-mention-background-color-current: var(--gl-link-mention-background-color-current);
671
+ $gl-progress-bar-indicator-color-default: var(--gl-progress-bar-indicator-color-default);
672
+ $gl-progress-bar-indicator-color-success: var(--gl-progress-bar-indicator-color-success);
673
+ $gl-progress-bar-indicator-color-warning: var(--gl-progress-bar-indicator-color-warning);
674
+ $gl-progress-bar-indicator-color-danger: var(--gl-progress-bar-indicator-color-danger);
675
+ $gl-progress-bar-track-color: var(--gl-progress-bar-track-color);
671
676
  $gl-skeleton-loader-background-color: var(--gl-skeleton-loader-background-color);
672
677
  $gl-skeleton-loader-shimmer-color: var(--gl-skeleton-loader-shimmer-color);
673
678
  $gl-spinner-track-color-default: var(--gl-spinner-track-color-default);
@@ -1,11 +1,5 @@
1
1
  import { POSITION } from '../components/utilities/truncate/constants';
2
2
 
3
- function appendDefaultOption(options) {
4
- return {
5
- ...options,
6
- default: ''
7
- };
8
- }
9
3
  const COMMA = ',';
10
4
  const CONTRAST_LEVELS = [{
11
5
  grade: 'F',
@@ -26,15 +20,11 @@ const CONTRAST_LEVELS = [{
26
20
  }];
27
21
  const HEX_REGEX = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
28
22
  const LEFT_MOUSE_BUTTON = 0;
29
- const variantOptions = {
23
+ const progressBarVariantOptions = {
30
24
  primary: 'primary',
31
- secondary: 'secondary',
32
25
  success: 'success',
33
26
  warning: 'warning',
34
- danger: 'danger',
35
- info: 'info',
36
- light: 'light',
37
- dark: 'dark'
27
+ danger: 'danger'
38
28
  };
39
29
  const badgeSizeOptions = {
40
30
  sm: 'sm',
@@ -251,7 +241,6 @@ const tabsButtonDefaults = {
251
241
  };
252
242
  const tokenVariants = ['default', 'search-type', 'search-value'];
253
243
  const resizeDebounceTime = 200;
254
- const variantOptionsWithNoDefault = appendDefaultOption(variantOptions);
255
244
 
256
245
  // Datetime constants
257
246
  const defaultDateFormat = 'YYYY-MM-DD';
@@ -305,4 +294,4 @@ const loadingIconVariants = {
305
294
  dots: 'dots'
306
295
  };
307
296
 
308
- export { COMMA, CONTRAST_LEVELS, HEX_REGEX, LEFT_MOUSE_BUTTON, alertVariantIconMap, alertVariantOptions, alignOptions, avatarShapeOptions, avatarSizeOptions, avatarsInlineSizeOptions, badgeForButtonOptions, badgeIconSizeOptions, badgeSizeOptions, badgeVariantOptions, bannerVariants, buttonCategoryOptions, buttonSizeOptions, buttonVariantOptions, colorThemes, columnOptions, datepickerWidthOptionsMap, defaultDateFormat, drawerVariants, dropdownAllowedAutoPlacements, dropdownPlacements, dropdownVariantOptions, focusableTags, formInputWidths, formStateOptions, iconSizeOptions, iconVariantOptions, keyboard, labelColorOptions, loadingIconSizes, loadingIconVariants, maxZIndex, modalButtonDefaults, modalSizeOptions, popoverPlacements, resizeDebounceTime, tabsButtonDefaults, targetOptions, toggleLabelPosition, tokenVariants, tooltipActionEvents, tooltipDelay, tooltipPlacements, triggerVariantOptions, truncateOptions, variantCssColorMap, variantOptions, variantOptionsWithNoDefault, viewModeOptions };
297
+ export { COMMA, CONTRAST_LEVELS, HEX_REGEX, LEFT_MOUSE_BUTTON, alertVariantIconMap, alertVariantOptions, alignOptions, avatarShapeOptions, avatarSizeOptions, avatarsInlineSizeOptions, badgeForButtonOptions, badgeIconSizeOptions, badgeSizeOptions, badgeVariantOptions, bannerVariants, buttonCategoryOptions, buttonSizeOptions, buttonVariantOptions, colorThemes, columnOptions, datepickerWidthOptionsMap, defaultDateFormat, drawerVariants, dropdownAllowedAutoPlacements, dropdownPlacements, dropdownVariantOptions, focusableTags, formInputWidths, formStateOptions, iconSizeOptions, iconVariantOptions, keyboard, labelColorOptions, loadingIconSizes, loadingIconVariants, maxZIndex, modalButtonDefaults, modalSizeOptions, popoverPlacements, progressBarVariantOptions, resizeDebounceTime, tabsButtonDefaults, targetOptions, toggleLabelPosition, tokenVariants, tooltipActionEvents, tooltipDelay, tooltipPlacements, triggerVariantOptions, truncateOptions, variantCssColorMap, viewModeOptions };
@@ -71,9 +71,7 @@ const props = makePropsConfigurable(sortKeys({
71
71
  autoFocusButton: makeProp(PROP_TYPE_STRING, null, /* istanbul ignore next */value => {
72
72
  return isUndefinedOrNull(value) || arrayIncludes(BUTTONS, value);
73
73
  }),
74
- bodyBgVariant: makeProp(PROP_TYPE_STRING),
75
74
  bodyClass: makeProp(PROP_TYPE_ARRAY_OBJECT_STRING),
76
- bodyTextVariant: makeProp(PROP_TYPE_STRING),
77
75
  busy: makeProp(PROP_TYPE_BOOLEAN, false),
78
76
  buttonSize: makeProp(PROP_TYPE_STRING),
79
77
  cancelDisabled: makeProp(PROP_TYPE_BOOLEAN, false),
@@ -83,19 +81,12 @@ const props = makePropsConfigurable(sortKeys({
83
81
  centered: makeProp(PROP_TYPE_BOOLEAN, false),
84
82
  contentClass: makeProp(PROP_TYPE_ARRAY_OBJECT_STRING),
85
83
  dialogClass: makeProp(PROP_TYPE_ARRAY_OBJECT_STRING),
86
- footerBgVariant: makeProp(PROP_TYPE_STRING),
87
- footerBorderVariant: makeProp(PROP_TYPE_STRING),
88
84
  footerClass: makeProp(PROP_TYPE_ARRAY_OBJECT_STRING),
89
85
  footerTag: makeProp(PROP_TYPE_STRING, 'footer'),
90
- footerTextVariant: makeProp(PROP_TYPE_STRING),
91
- headerBgVariant: makeProp(PROP_TYPE_STRING),
92
- headerBorderVariant: makeProp(PROP_TYPE_STRING),
93
86
  headerClass: makeProp(PROP_TYPE_ARRAY_OBJECT_STRING),
94
87
  headerCloseContent: makeProp(PROP_TYPE_STRING, '×'),
95
88
  headerCloseLabel: makeProp(PROP_TYPE_STRING, 'Close'),
96
- headerCloseVariant: makeProp(PROP_TYPE_STRING),
97
89
  headerTag: makeProp(PROP_TYPE_STRING, 'header'),
98
- headerTextVariant: makeProp(PROP_TYPE_STRING),
99
90
  // TODO: Rename to `noBackdrop` and deprecate `hideBackdrop`
100
91
  hideBackdrop: makeProp(PROP_TYPE_BOOLEAN, false),
101
92
  // TODO: Rename to `noFooter` and deprecate `hideFooter`
@@ -209,31 +200,11 @@ const BModal = /*#__PURE__*/extend({
209
200
  'modal-dialog-scrollable': this.scrollable
210
201
  }, this.dialogClass];
211
202
  },
212
- headerClasses() {
213
- return [{
214
- [`bg-${this.headerBgVariant}`]: this.headerBgVariant,
215
- [`text-${this.headerTextVariant}`]: this.headerTextVariant,
216
- [`border-${this.headerBorderVariant}`]: this.headerBorderVariant
217
- }, this.headerClass];
218
- },
219
203
  titleClasses() {
220
204
  return [{
221
205
  'sr-only': this.titleSrOnly
222
206
  }, this.titleClass];
223
207
  },
224
- bodyClasses() {
225
- return [{
226
- [`bg-${this.bodyBgVariant}`]: this.bodyBgVariant,
227
- [`text-${this.bodyTextVariant}`]: this.bodyTextVariant
228
- }, this.bodyClass];
229
- },
230
- footerClasses() {
231
- return [{
232
- [`bg-${this.footerBgVariant}`]: this.footerBgVariant,
233
- [`text-${this.footerTextVariant}`]: this.footerTextVariant,
234
- [`border-${this.footerBorderVariant}`]: this.footerBorderVariant
235
- }, this.footerClass];
236
- },
237
208
  modalOuterStyle() {
238
209
  // Styles needed for proper stacking of modals
239
210
  return {
@@ -706,8 +677,7 @@ const BModal = /*#__PURE__*/extend({
706
677
  props: {
707
678
  content: this.headerCloseContent,
708
679
  disabled: this.isTransitioning,
709
- ariaLabel: this.headerCloseLabel,
710
- textVariant: this.headerCloseVariant || this.headerTextVariant
680
+ ariaLabel: this.headerCloseLabel
711
681
  },
712
682
  on: {
713
683
  click: this.onClose
@@ -731,7 +701,7 @@ const BModal = /*#__PURE__*/extend({
731
701
  }
732
702
  $header = h(this.headerTag, {
733
703
  staticClass: 'modal-header',
734
- class: this.headerClasses,
704
+ class: this.headerClass,
735
705
  attrs: {
736
706
  id: this.modalHeaderId
737
707
  },
@@ -742,7 +712,7 @@ const BModal = /*#__PURE__*/extend({
742
712
  // Modal body
743
713
  const $body = h('div', {
744
714
  staticClass: 'modal-body',
745
- class: this.bodyClasses,
715
+ class: this.bodyClass,
746
716
  attrs: {
747
717
  id: this.modalBodyId
748
718
  },
@@ -792,7 +762,7 @@ const BModal = /*#__PURE__*/extend({
792
762
  }
793
763
  $footer = h(this.footerTag, {
794
764
  staticClass: 'modal-footer',
795
- class: this.footerClasses,
765
+ class: this.footerClass,
796
766
  attrs: {
797
767
  id: this.modalFooterId
798
768
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "94.10.0",
3
+ "version": "95.0.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -0,0 +1,19 @@
1
+ .gl-progress-bar {
2
+ background-color: var(--gl-progress-bar-track-color);
3
+
4
+ .bg-primary {
5
+ background-color: var(--gl-progress-bar-indicator-color-default) !important;
6
+ }
7
+
8
+ .bg-success {
9
+ background-color: var(--gl-progress-bar-indicator-color-success) !important;
10
+ }
11
+
12
+ .bg-warning {
13
+ background-color: var(--gl-progress-bar-indicator-color-warning) !important;
14
+ }
15
+
16
+ .bg-danger {
17
+ background-color: var(--gl-progress-bar-indicator-color-danger) !important;
18
+ }
19
+ }
@@ -11,5 +11,5 @@ export default {
11
11
  </script>
12
12
 
13
13
  <template>
14
- <b-progress v-bind="$attrs" />
14
+ <b-progress v-bind="$attrs" class="gl-progress-bar" />
15
15
  </template>
@@ -58,6 +58,7 @@
58
58
  @import '../components/base/pagination/pagination';
59
59
  @import '../components/base/path/path';
60
60
  @import '../components/base/popover/popover';
61
+ @import '../components/base/progress_bar/progress_bar';
61
62
  @import '../components/base/search_box_by_type/search_box_by_type';
62
63
  @import '../components/base/search_box_by_click/search_box_by_click';
63
64
  @import '../components/base/segmented_control/segmented_control';
@@ -505,6 +505,7 @@
505
505
  --gl-spinner-track-color-default: var(--gl-color-neutral-100); /* Used for the static track (background) of a loading spinner. */
506
506
  --gl-skeleton-loader-shimmer-color: var(--gl-color-neutral-50); /* Used for the animated shimmer effect in a skeleton loader. */
507
507
  --gl-skeleton-loader-background-color: var(--gl-color-neutral-100); /* Used for the skeleton loader background color. */
508
+ --gl-progress-bar-track-color: var(--gl-color-neutral-200); /* Used for the track color for all progress-bar variants. */
508
509
  --gl-link-mention-background-color-current: var(--gl-color-orange-100); /* Used for the mention link background when referencing the current user. */
509
510
  --gl-link-mention-background-color-default: var(--gl-color-blue-100); /* Used for the mention link default background. */
510
511
  --gl-link-mention-text-color-current: var(--gl-color-orange-800); /* Used for the mention link text color when referencing the current user. */
@@ -781,6 +782,10 @@
781
782
  --gl-token-foreground-color: var(--gl-text-color-default); /* Used for the token foreground color. */
782
783
  --gl-table-sorting-icon-color: var(--gl-text-color-heading); /* Used for the color of the sorting icons in the column headers. */
783
784
  --gl-table-row-background-color-hover: var(--gl-background-color-subtle); /* Used for the background of a table row in hover state. */
785
+ --gl-progress-bar-indicator-color-danger: var(--gl-status-danger-icon-color); /* Used for the indicator color for the danger progress-bar variant. */
786
+ --gl-progress-bar-indicator-color-warning: var(--gl-status-warning-icon-color); /* Used for the indicator color for the warning progress-bar variant. */
787
+ --gl-progress-bar-indicator-color-success: var(--gl-status-success-icon-color); /* Used for the indicator color for the success progress-bar variant. */
788
+ --gl-progress-bar-indicator-color-default: var(--gl-status-info-icon-color); /* Used for the indicator color for the primary progress-bar variant. */
784
789
  --gl-dropdown-option-background-color-selected-focus: var(--gl-dropdown-option-background-color-selected-hover); /* Used for the background of a selected dropdown option in the focus state. */
785
790
  --gl-dropdown-option-background-color-unselected-focus: var(--gl-action-neutral-background-color-focus); /* Used for the background of an unselected dropdown option in the focus state. */
786
791
  --gl-dropdown-option-indicator-color-selected-focus: var(--gl-control-background-color-selected-focus); /* Used for the dropdown selected option indicator in the focus state. */
@@ -505,6 +505,7 @@
505
505
  --gl-spinner-track-color-default: var(--gl-color-neutral-800); /* Used for the static track (background) of a loading spinner. */
506
506
  --gl-skeleton-loader-shimmer-color: var(--gl-color-neutral-700); /* Used for the animated shimmer effect in a skeleton loader. */
507
507
  --gl-skeleton-loader-background-color: var(--gl-color-neutral-800); /* Used for the skeleton loader background color. */
508
+ --gl-progress-bar-track-color: var(--gl-color-neutral-700); /* Used for the track color for all progress-bar variants. */
508
509
  --gl-link-mention-background-color-current: var(--gl-color-orange-800); /* Used for the mention link background when referencing the current user. */
509
510
  --gl-link-mention-background-color-default: var(--gl-color-blue-800); /* Used for the mention link default background. */
510
511
  --gl-link-mention-text-color-current: var(--gl-color-orange-100); /* Used for the mention link text color when referencing the current user. */
@@ -781,6 +782,10 @@
781
782
  --gl-token-foreground-color: var(--gl-text-color-default); /* Used for the token foreground color. */
782
783
  --gl-table-sorting-icon-color: var(--gl-text-color-heading); /* Used for the color of the sorting icons in the column headers. */
783
784
  --gl-table-row-background-color-hover: var(--gl-background-color-subtle); /* Used for the background of a table row in hover state. */
785
+ --gl-progress-bar-indicator-color-danger: var(--gl-status-danger-icon-color); /* Used for the indicator color for the danger progress-bar variant. */
786
+ --gl-progress-bar-indicator-color-warning: var(--gl-status-warning-icon-color); /* Used for the indicator color for the warning progress-bar variant. */
787
+ --gl-progress-bar-indicator-color-success: var(--gl-status-success-icon-color); /* Used for the indicator color for the success progress-bar variant. */
788
+ --gl-progress-bar-indicator-color-default: var(--gl-status-info-icon-color); /* Used for the indicator color for the primary progress-bar variant. */
784
789
  --gl-dropdown-option-background-color-selected-focus: var(--gl-dropdown-option-background-color-selected-hover); /* Used for the background of a selected dropdown option in the focus state. */
785
790
  --gl-dropdown-option-background-color-unselected-focus: var(--gl-action-neutral-background-color-focus); /* Used for the background of an unselected dropdown option in the focus state. */
786
791
  --gl-dropdown-option-indicator-color-selected-focus: var(--gl-color-neutral-0); /* Used for the dropdown selected option indicator in the focus state. */
@@ -668,6 +668,11 @@ export const GL_LINK_MENTION_TEXT_COLOR_DEFAULT = '#9dc7f1'; // Used for the men
668
668
  export const GL_LINK_MENTION_TEXT_COLOR_CURRENT = '#f5d9a8'; // Used for the mention link text color when referencing the current user.
669
669
  export const GL_LINK_MENTION_BACKGROUND_COLOR_DEFAULT = '#064787'; // Used for the mention link default background.
670
670
  export const GL_LINK_MENTION_BACKGROUND_COLOR_CURRENT = '#703800'; // Used for the mention link background when referencing the current user.
671
+ export const GL_PROGRESS_BAR_INDICATOR_COLOR_DEFAULT = '#428fdc'; // Used for the indicator color for the primary progress-bar variant.
672
+ export const GL_PROGRESS_BAR_INDICATOR_COLOR_SUCCESS = '#2da160'; // Used for the indicator color for the success progress-bar variant.
673
+ export const GL_PROGRESS_BAR_INDICATOR_COLOR_WARNING = '#c17d10'; // Used for the indicator color for the warning progress-bar variant.
674
+ export const GL_PROGRESS_BAR_INDICATOR_COLOR_DANGER = '#ec5941'; // Used for the indicator color for the danger progress-bar variant.
675
+ export const GL_PROGRESS_BAR_TRACK_COLOR = '#4c4b51'; // Used for the track color for all progress-bar variants.
671
676
  export const GL_SKELETON_LOADER_BACKGROUND_COLOR = '#3a383f'; // Used for the skeleton loader background color.
672
677
  export const GL_SKELETON_LOADER_SHIMMER_COLOR = '#4c4b51'; // Used for the animated shimmer effect in a skeleton loader.
673
678
  export const GL_SPINNER_TRACK_COLOR_DEFAULT = '#3a383f'; // Used for the static track (background) of a loading spinner.
@@ -668,6 +668,11 @@ export const GL_LINK_MENTION_TEXT_COLOR_DEFAULT = '#0b5cad'; // Used for the men
668
668
  export const GL_LINK_MENTION_TEXT_COLOR_CURRENT = '#703800'; // Used for the mention link text color when referencing the current user.
669
669
  export const GL_LINK_MENTION_BACKGROUND_COLOR_DEFAULT = '#cbe2f9'; // Used for the mention link default background.
670
670
  export const GL_LINK_MENTION_BACKGROUND_COLOR_CURRENT = '#f5d9a8'; // Used for the mention link background when referencing the current user.
671
+ export const GL_PROGRESS_BAR_INDICATOR_COLOR_DEFAULT = '#1f75cb'; // Used for the indicator color for the primary progress-bar variant.
672
+ export const GL_PROGRESS_BAR_INDICATOR_COLOR_SUCCESS = '#108548'; // Used for the indicator color for the success progress-bar variant.
673
+ export const GL_PROGRESS_BAR_INDICATOR_COLOR_WARNING = '#ab6100'; // Used for the indicator color for the warning progress-bar variant.
674
+ export const GL_PROGRESS_BAR_INDICATOR_COLOR_DANGER = '#dd2b0e'; // Used for the indicator color for the danger progress-bar variant.
675
+ export const GL_PROGRESS_BAR_TRACK_COLOR = '#bfbfc3'; // Used for the track color for all progress-bar variants.
671
676
  export const GL_SKELETON_LOADER_BACKGROUND_COLOR = '#dcdcde'; // Used for the skeleton loader background color.
672
677
  export const GL_SKELETON_LOADER_SHIMMER_COLOR = '#ececef'; // Used for the animated shimmer effect in a skeleton loader.
673
678
  export const GL_SPINNER_TRACK_COLOR_DEFAULT = '#dcdcde'; // Used for the static track (background) of a loading spinner.
@@ -14793,6 +14793,116 @@
14793
14793
  }
14794
14794
  }
14795
14795
  },
14796
+ "progress-bar": {
14797
+ "indicator": {
14798
+ "color": {
14799
+ "default": {
14800
+ "value": "#428fdc",
14801
+ "$type": "color",
14802
+ "comment": "Used for the indicator color for the primary progress-bar variant.",
14803
+ "filePath": "src/tokens/contextual/progress-bar.tokens.json",
14804
+ "isSource": true,
14805
+ "original": {
14806
+ "value": "{status.info.icon.color}",
14807
+ "$type": "color",
14808
+ "comment": "Used for the indicator color for the primary progress-bar variant."
14809
+ },
14810
+ "name": "PROGRESS_BAR_INDICATOR_COLOR_DEFAULT",
14811
+ "attributes": {},
14812
+ "path": [
14813
+ "progress-bar",
14814
+ "indicator",
14815
+ "color",
14816
+ "default"
14817
+ ]
14818
+ },
14819
+ "success": {
14820
+ "value": "#2da160",
14821
+ "$type": "color",
14822
+ "comment": "Used for the indicator color for the success progress-bar variant.",
14823
+ "filePath": "src/tokens/contextual/progress-bar.tokens.json",
14824
+ "isSource": true,
14825
+ "original": {
14826
+ "value": "{status.success.icon.color}",
14827
+ "$type": "color",
14828
+ "comment": "Used for the indicator color for the success progress-bar variant."
14829
+ },
14830
+ "name": "PROGRESS_BAR_INDICATOR_COLOR_SUCCESS",
14831
+ "attributes": {},
14832
+ "path": [
14833
+ "progress-bar",
14834
+ "indicator",
14835
+ "color",
14836
+ "success"
14837
+ ]
14838
+ },
14839
+ "warning": {
14840
+ "value": "#c17d10",
14841
+ "$type": "color",
14842
+ "comment": "Used for the indicator color for the warning progress-bar variant.",
14843
+ "filePath": "src/tokens/contextual/progress-bar.tokens.json",
14844
+ "isSource": true,
14845
+ "original": {
14846
+ "value": "{status.warning.icon.color}",
14847
+ "$type": "color",
14848
+ "comment": "Used for the indicator color for the warning progress-bar variant."
14849
+ },
14850
+ "name": "PROGRESS_BAR_INDICATOR_COLOR_WARNING",
14851
+ "attributes": {},
14852
+ "path": [
14853
+ "progress-bar",
14854
+ "indicator",
14855
+ "color",
14856
+ "warning"
14857
+ ]
14858
+ },
14859
+ "danger": {
14860
+ "value": "#ec5941",
14861
+ "$type": "color",
14862
+ "comment": "Used for the indicator color for the danger progress-bar variant.",
14863
+ "filePath": "src/tokens/contextual/progress-bar.tokens.json",
14864
+ "isSource": true,
14865
+ "original": {
14866
+ "value": "{status.danger.icon.color}",
14867
+ "$type": "color",
14868
+ "comment": "Used for the indicator color for the danger progress-bar variant."
14869
+ },
14870
+ "name": "PROGRESS_BAR_INDICATOR_COLOR_DANGER",
14871
+ "attributes": {},
14872
+ "path": [
14873
+ "progress-bar",
14874
+ "indicator",
14875
+ "color",
14876
+ "danger"
14877
+ ]
14878
+ }
14879
+ }
14880
+ },
14881
+ "track": {
14882
+ "color": {
14883
+ "value": "#4c4b51",
14884
+ "$type": "color",
14885
+ "comment": "Used for the track color for all progress-bar variants.",
14886
+ "filePath": "src/tokens/contextual/progress-bar.tokens.json",
14887
+ "isSource": true,
14888
+ "original": {
14889
+ "value": {
14890
+ "default": "{color.neutral.200}",
14891
+ "dark": "{color.neutral.700}"
14892
+ },
14893
+ "$type": "color",
14894
+ "comment": "Used for the track color for all progress-bar variants."
14895
+ },
14896
+ "name": "PROGRESS_BAR_TRACK_COLOR",
14897
+ "attributes": {},
14898
+ "path": [
14899
+ "progress-bar",
14900
+ "track",
14901
+ "color"
14902
+ ]
14903
+ }
14904
+ }
14905
+ },
14796
14906
  "skeleton-loader": {
14797
14907
  "background": {
14798
14908
  "color": {
@@ -14793,6 +14793,116 @@
14793
14793
  }
14794
14794
  }
14795
14795
  },
14796
+ "progress-bar": {
14797
+ "indicator": {
14798
+ "color": {
14799
+ "default": {
14800
+ "value": "#1f75cb",
14801
+ "$type": "color",
14802
+ "comment": "Used for the indicator color for the primary progress-bar variant.",
14803
+ "filePath": "src/tokens/contextual/progress-bar.tokens.json",
14804
+ "isSource": true,
14805
+ "original": {
14806
+ "value": "{status.info.icon.color}",
14807
+ "$type": "color",
14808
+ "comment": "Used for the indicator color for the primary progress-bar variant."
14809
+ },
14810
+ "name": "PROGRESS_BAR_INDICATOR_COLOR_DEFAULT",
14811
+ "attributes": {},
14812
+ "path": [
14813
+ "progress-bar",
14814
+ "indicator",
14815
+ "color",
14816
+ "default"
14817
+ ]
14818
+ },
14819
+ "success": {
14820
+ "value": "#108548",
14821
+ "$type": "color",
14822
+ "comment": "Used for the indicator color for the success progress-bar variant.",
14823
+ "filePath": "src/tokens/contextual/progress-bar.tokens.json",
14824
+ "isSource": true,
14825
+ "original": {
14826
+ "value": "{status.success.icon.color}",
14827
+ "$type": "color",
14828
+ "comment": "Used for the indicator color for the success progress-bar variant."
14829
+ },
14830
+ "name": "PROGRESS_BAR_INDICATOR_COLOR_SUCCESS",
14831
+ "attributes": {},
14832
+ "path": [
14833
+ "progress-bar",
14834
+ "indicator",
14835
+ "color",
14836
+ "success"
14837
+ ]
14838
+ },
14839
+ "warning": {
14840
+ "value": "#ab6100",
14841
+ "$type": "color",
14842
+ "comment": "Used for the indicator color for the warning progress-bar variant.",
14843
+ "filePath": "src/tokens/contextual/progress-bar.tokens.json",
14844
+ "isSource": true,
14845
+ "original": {
14846
+ "value": "{status.warning.icon.color}",
14847
+ "$type": "color",
14848
+ "comment": "Used for the indicator color for the warning progress-bar variant."
14849
+ },
14850
+ "name": "PROGRESS_BAR_INDICATOR_COLOR_WARNING",
14851
+ "attributes": {},
14852
+ "path": [
14853
+ "progress-bar",
14854
+ "indicator",
14855
+ "color",
14856
+ "warning"
14857
+ ]
14858
+ },
14859
+ "danger": {
14860
+ "value": "#dd2b0e",
14861
+ "$type": "color",
14862
+ "comment": "Used for the indicator color for the danger progress-bar variant.",
14863
+ "filePath": "src/tokens/contextual/progress-bar.tokens.json",
14864
+ "isSource": true,
14865
+ "original": {
14866
+ "value": "{status.danger.icon.color}",
14867
+ "$type": "color",
14868
+ "comment": "Used for the indicator color for the danger progress-bar variant."
14869
+ },
14870
+ "name": "PROGRESS_BAR_INDICATOR_COLOR_DANGER",
14871
+ "attributes": {},
14872
+ "path": [
14873
+ "progress-bar",
14874
+ "indicator",
14875
+ "color",
14876
+ "danger"
14877
+ ]
14878
+ }
14879
+ }
14880
+ },
14881
+ "track": {
14882
+ "color": {
14883
+ "value": "#bfbfc3",
14884
+ "$type": "color",
14885
+ "comment": "Used for the track color for all progress-bar variants.",
14886
+ "filePath": "src/tokens/contextual/progress-bar.tokens.json",
14887
+ "isSource": true,
14888
+ "original": {
14889
+ "value": {
14890
+ "default": "{color.neutral.200}",
14891
+ "dark": "{color.neutral.700}"
14892
+ },
14893
+ "$type": "color",
14894
+ "comment": "Used for the track color for all progress-bar variants."
14895
+ },
14896
+ "name": "PROGRESS_BAR_TRACK_COLOR",
14897
+ "attributes": {},
14898
+ "path": [
14899
+ "progress-bar",
14900
+ "track",
14901
+ "color"
14902
+ ]
14903
+ }
14904
+ }
14905
+ },
14796
14906
  "skeleton-loader": {
14797
14907
  "background": {
14798
14908
  "color": {
@@ -503,6 +503,7 @@ $gl-spinner-track-color-light: $gl-color-neutral-800; // Used for the static tra
503
503
  $gl-spinner-track-color-default: $gl-color-neutral-800; // Used for the static track (background) of a loading spinner.
504
504
  $gl-skeleton-loader-shimmer-color: $gl-color-neutral-700; // Used for the animated shimmer effect in a skeleton loader.
505
505
  $gl-skeleton-loader-background-color: $gl-color-neutral-800; // Used for the skeleton loader background color.
506
+ $gl-progress-bar-track-color: $gl-color-neutral-700; // Used for the track color for all progress-bar variants.
506
507
  $gl-link-mention-background-color-current: $gl-color-orange-800; // Used for the mention link background when referencing the current user.
507
508
  $gl-link-mention-background-color-default: $gl-color-blue-800; // Used for the mention link default background.
508
509
  $gl-link-mention-text-color-current: $gl-color-orange-100; // Used for the mention link text color when referencing the current user.
@@ -779,6 +780,10 @@ $gl-control-text-color-error: $gl-text-color-danger; // Used for the helper text
779
780
  $gl-token-foreground-color: $gl-text-color-default; // Used for the token foreground color.
780
781
  $gl-table-sorting-icon-color: $gl-text-color-heading; // Used for the color of the sorting icons in the column headers.
781
782
  $gl-table-row-background-color-hover: $gl-background-color-subtle; // Used for the background of a table row in hover state.
783
+ $gl-progress-bar-indicator-color-danger: $gl-status-danger-icon-color; // Used for the indicator color for the danger progress-bar variant.
784
+ $gl-progress-bar-indicator-color-warning: $gl-status-warning-icon-color; // Used for the indicator color for the warning progress-bar variant.
785
+ $gl-progress-bar-indicator-color-success: $gl-status-success-icon-color; // Used for the indicator color for the success progress-bar variant.
786
+ $gl-progress-bar-indicator-color-default: $gl-status-info-icon-color; // Used for the indicator color for the primary progress-bar variant.
782
787
  $gl-dropdown-option-background-color-selected-focus: $gl-dropdown-option-background-color-selected-hover; // Used for the background of a selected dropdown option in the focus state.
783
788
  $gl-dropdown-option-background-color-unselected-focus: $gl-action-neutral-background-color-focus; // Used for the background of an unselected dropdown option in the focus state.
784
789
  $gl-dropdown-option-indicator-color-selected-focus: $gl-color-neutral-0; // Used for the dropdown selected option indicator in the focus state.
@@ -503,6 +503,7 @@ $gl-spinner-track-color-light: $gl-color-neutral-800; // Used for the static tra
503
503
  $gl-spinner-track-color-default: $gl-color-neutral-100; // Used for the static track (background) of a loading spinner.
504
504
  $gl-skeleton-loader-shimmer-color: $gl-color-neutral-50; // Used for the animated shimmer effect in a skeleton loader.
505
505
  $gl-skeleton-loader-background-color: $gl-color-neutral-100; // Used for the skeleton loader background color.
506
+ $gl-progress-bar-track-color: $gl-color-neutral-200; // Used for the track color for all progress-bar variants.
506
507
  $gl-link-mention-background-color-current: $gl-color-orange-100; // Used for the mention link background when referencing the current user.
507
508
  $gl-link-mention-background-color-default: $gl-color-blue-100; // Used for the mention link default background.
508
509
  $gl-link-mention-text-color-current: $gl-color-orange-800; // Used for the mention link text color when referencing the current user.
@@ -779,6 +780,10 @@ $gl-control-text-color-error: $gl-text-color-danger; // Used for the helper text
779
780
  $gl-token-foreground-color: $gl-text-color-default; // Used for the token foreground color.
780
781
  $gl-table-sorting-icon-color: $gl-text-color-heading; // Used for the color of the sorting icons in the column headers.
781
782
  $gl-table-row-background-color-hover: $gl-background-color-subtle; // Used for the background of a table row in hover state.
783
+ $gl-progress-bar-indicator-color-danger: $gl-status-danger-icon-color; // Used for the indicator color for the danger progress-bar variant.
784
+ $gl-progress-bar-indicator-color-warning: $gl-status-warning-icon-color; // Used for the indicator color for the warning progress-bar variant.
785
+ $gl-progress-bar-indicator-color-success: $gl-status-success-icon-color; // Used for the indicator color for the success progress-bar variant.
786
+ $gl-progress-bar-indicator-color-default: $gl-status-info-icon-color; // Used for the indicator color for the primary progress-bar variant.
782
787
  $gl-dropdown-option-background-color-selected-focus: $gl-dropdown-option-background-color-selected-hover; // Used for the background of a selected dropdown option in the focus state.
783
788
  $gl-dropdown-option-background-color-unselected-focus: $gl-action-neutral-background-color-focus; // Used for the background of an unselected dropdown option in the focus state.
784
789
  $gl-dropdown-option-indicator-color-selected-focus: $gl-control-background-color-selected-focus; // Used for the dropdown selected option indicator in the focus state.
@@ -668,6 +668,11 @@ $gl-link-mention-text-color-default: var(--gl-link-mention-text-color-default);
668
668
  $gl-link-mention-text-color-current: var(--gl-link-mention-text-color-current);
669
669
  $gl-link-mention-background-color-default: var(--gl-link-mention-background-color-default);
670
670
  $gl-link-mention-background-color-current: var(--gl-link-mention-background-color-current);
671
+ $gl-progress-bar-indicator-color-default: var(--gl-progress-bar-indicator-color-default);
672
+ $gl-progress-bar-indicator-color-success: var(--gl-progress-bar-indicator-color-success);
673
+ $gl-progress-bar-indicator-color-warning: var(--gl-progress-bar-indicator-color-warning);
674
+ $gl-progress-bar-indicator-color-danger: var(--gl-progress-bar-indicator-color-danger);
675
+ $gl-progress-bar-track-color: var(--gl-progress-bar-track-color);
671
676
  $gl-skeleton-loader-background-color: var(--gl-skeleton-loader-background-color);
672
677
  $gl-skeleton-loader-shimmer-color: var(--gl-skeleton-loader-shimmer-color);
673
678
  $gl-spinner-track-color-default: var(--gl-spinner-track-color-default);
@@ -0,0 +1,38 @@
1
+ {
2
+ "progress-bar": {
3
+ "indicator": {
4
+ "color": {
5
+ "default": {
6
+ "$value": "{status.info.icon.color}",
7
+ "$type": "color",
8
+ "$description": "Used for the indicator color for the primary progress-bar variant."
9
+ },
10
+ "success": {
11
+ "$value": "{status.success.icon.color}",
12
+ "$type": "color",
13
+ "$description": "Used for the indicator color for the success progress-bar variant."
14
+ },
15
+ "warning": {
16
+ "$value": "{status.warning.icon.color}",
17
+ "$type": "color",
18
+ "$description": "Used for the indicator color for the warning progress-bar variant."
19
+ },
20
+ "danger": {
21
+ "$value": "{status.danger.icon.color}",
22
+ "$type": "color",
23
+ "$description": "Used for the indicator color for the danger progress-bar variant."
24
+ }
25
+ }
26
+ },
27
+ "track": {
28
+ "color": {
29
+ "$value": {
30
+ "default": "{color.neutral.200}",
31
+ "dark": "{color.neutral.700}"
32
+ },
33
+ "$type": "color",
34
+ "$description": "Used for the track color for all progress-bar variants."
35
+ }
36
+ }
37
+ }
38
+ }