@gitlab/ui 107.0.0 → 107.1.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 (46) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown_group.js +2 -2
  3. package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown_item.js +25 -4
  4. package/dist/components/base/new_dropdowns/disclosure/mock_data.js +1 -1
  5. package/dist/components/base/new_dropdowns/listbox/listbox.js +2 -2
  6. package/dist/components/base/search_box_by_click/search_box_by_click.js +1 -1
  7. package/dist/index.css +2 -2
  8. package/dist/index.css.map +1 -1
  9. package/dist/tailwind.css +1 -1
  10. package/dist/tailwind.css.map +1 -1
  11. package/dist/tokens/build/js/tokens.dark.js +7 -5
  12. package/dist/tokens/build/js/tokens.js +3 -1
  13. package/dist/tokens/css/tokens.css +4 -2
  14. package/dist/tokens/css/tokens.dark.css +7 -5
  15. package/dist/tokens/js/tokens.dark.js +6 -4
  16. package/dist/tokens/js/tokens.js +2 -0
  17. package/dist/tokens/json/tokens.dark.json +57 -22
  18. package/dist/tokens/json/tokens.json +53 -18
  19. package/dist/tokens/scss/_tokens.dark.scss +7 -5
  20. package/dist/tokens/scss/_tokens.scss +4 -2
  21. package/dist/tokens/scss/_tokens_custom_properties.scss +2 -0
  22. package/dist/tokens/tailwind/tokens.cjs +2 -1
  23. package/dist/utils/constants.js +5 -1
  24. package/package.json +3 -1
  25. package/src/components/base/dropdown/dropdown.scss +3 -3
  26. package/src/components/base/dropdown/dropdown_divider.scss +1 -1
  27. package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown_group.vue +2 -2
  28. package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown_item.vue +27 -3
  29. package/src/components/base/new_dropdowns/disclosure/mock_data.js +1 -1
  30. package/src/components/base/new_dropdowns/dropdown_item.scss +29 -0
  31. package/src/components/base/new_dropdowns/listbox/listbox.scss +1 -0
  32. package/src/components/base/new_dropdowns/listbox/listbox.vue +12 -2
  33. package/src/components/base/search_box_by_click/search_box_by_click.vue +2 -2
  34. package/src/components/charts/tooltip/tooltip.scss +1 -1
  35. package/src/tokens/build/css/tokens.css +4 -2
  36. package/src/tokens/build/css/tokens.dark.css +7 -5
  37. package/src/tokens/build/js/tokens.dark.js +6 -4
  38. package/src/tokens/build/js/tokens.js +2 -0
  39. package/src/tokens/build/json/tokens.dark.json +57 -22
  40. package/src/tokens/build/json/tokens.json +53 -18
  41. package/src/tokens/build/scss/_tokens.dark.scss +7 -5
  42. package/src/tokens/build/scss/_tokens.scss +4 -2
  43. package/src/tokens/build/scss/_tokens_custom_properties.scss +2 -0
  44. package/src/tokens/build/tailwind/tokens.cjs +2 -1
  45. package/src/tokens/contextual/dropdown.tokens.json +26 -18
  46. package/src/utils/constants.js +5 -0
@@ -220,7 +220,7 @@ export default {
220
220
  >
221
221
  <template #header>
222
222
  <div
223
- class="gl-search-box-by-click-history-header gl-flex gl-min-h-8 gl-grow gl-items-center gl-border-b-1 gl-border-b-dropdown !gl-p-4 gl-text-sm gl-font-bold gl-border-b-solid"
223
+ class="gl-search-box-by-click-history-header gl-flex gl-min-h-8 gl-grow gl-items-center gl-border-b-1 gl-border-b-dropdown-divider !gl-p-4 gl-text-sm gl-font-bold gl-border-b-solid"
224
224
  >
225
225
  {{ recentSearchesHeader }}
226
226
  </div>
@@ -245,7 +245,7 @@ export default {
245
245
 
246
246
  <template v-if="historyItems.length" #footer>
247
247
  <div
248
- class="gl-flex gl-flex-col gl-border-t-1 gl-border-t-dropdown gl-p-2 gl-border-t-solid"
248
+ class="gl-flex gl-flex-col gl-border-t-1 gl-border-t-dropdown-divider gl-p-2 gl-border-t-solid"
249
249
  >
250
250
  <gl-button
251
251
  ref="clearHistory"
@@ -1,7 +1,7 @@
1
1
  .gl-chart-tooltip {
2
2
  position: absolute;
3
3
 
4
- > .popover {
4
+ .popover {
5
5
  @apply gl-min-w-0;
6
6
  @apply gl-w-max;
7
7
  max-width: $chart-tooltip-max-width;
@@ -695,14 +695,13 @@
695
695
  --gl-button-disabled-background-color: var(--gl-color-neutral-10); /* Used for the background of a disabled button. */
696
696
  --gl-button-disabled-border-color: var(--gl-color-neutral-100); /* Used for the border of a disabled button. */
697
697
  --gl-datepicker-background-color: var(--gl-color-neutral-0); /* Used for the background color of datepicker. */
698
- --gl-dropdown-border-color: var(--gl-color-neutral-200); /* Used for the border of a dropdown. */
699
- --gl-dropdown-option-indicator-color-selected-active: var(--gl-color-blue-700); /* Used for the dropdown selected option indicator in the active state. */
700
698
  --gl-dropdown-option-background-color-unselected-default: var(--gl-action-neutral-background-color-default); /* Used for the background of an unselected dropdown option in the default state. */
701
699
  --gl-dropdown-option-background-color-unselected-hover: var(--gl-action-neutral-background-color-hover); /* Used for the background of an unselected dropdown option in the hover state. */
702
700
  --gl-dropdown-option-background-color-unselected-active: var(--gl-action-neutral-background-color-active); /* Used for the background of an unselected dropdown option in the active state. */
703
701
  --gl-dropdown-option-background-color-selected-default: var(--gl-color-neutral-50); /* Used for the background of a selected dropdown option in the default state. */
704
702
  --gl-dropdown-option-background-color-selected-hover: var(--gl-color-neutral-100); /* Used for the background of a selected dropdown option in the hover state. */
705
703
  --gl-dropdown-option-background-color-selected-active: var(--gl-color-neutral-200); /* Used for the background of a selected dropdown option in the active state. */
704
+ --gl-dropdown-search-background-color: var(--gl-color-alpha-dark-2); /* Used for the background of a search input in a dropdown listbox. */
706
705
  --gl-filtered-search-token-type-background-color-default: var(--gl-color-neutral-50); /* Used for the filtered search type token background color in the default state. */
707
706
  --gl-filtered-search-token-type-background-color-hover: var(--gl-color-neutral-100); /* Used for the filtered search type token background color in the hover state. */
708
707
  --gl-filtered-search-token-data-background-color-default: var(--gl-color-neutral-100); /* Used for the filtered search data background color in the default state. */
@@ -909,11 +908,14 @@
909
908
  --gl-button-selected-border-color-focus: var(--gl-button-selected-border-color-hover); /* Used for the border of a selected button in the focus state. */
910
909
  --gl-datepicker-date-text-color-selected: var(--gl-control-indicator-color-selected); /* Used for the datepicker date text color state indicators. */
911
910
  --gl-dropdown-background-color: var(--gl-background-color-overlap); /* Used for the background of a dropdown. */
911
+ --gl-dropdown-border-color: var(--gl-border-color-strong); /* Used for the border of a dropdown. */
912
+ --gl-dropdown-divider-color: var(--gl-border-color-default);
912
913
  --gl-dropdown-option-text-color-default: var(--gl-action-neutral-foreground-color-default); /* Used for the text of a dropdown option in the default state. */
913
914
  --gl-dropdown-option-text-color-disabled: var(--gl-action-disabled-foreground-color); /* Used for the text of a dropdown option in the disabled state. */
914
915
  --gl-dropdown-option-indicator-color-selected-default: var(--gl-control-background-color-selected-default); /* Used for the dropdown selected option indicator in the default state. */
915
916
  --gl-dropdown-option-indicator-color-selected-hover: var(--gl-control-background-color-selected-hover); /* Used for the dropdown selected option indicator in the hover state. */
916
917
  --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. */
918
+ --gl-dropdown-option-indicator-color-selected-active: var(--gl-control-background-color-selected-focus); /* Used for the dropdown selected option indicator in the active state. */
917
919
  --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. */
918
920
  --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. */
919
921
  --gl-progress-bar-indicator-color-default: var(--gl-status-info-icon-color); /* Used for the indicator color for the primary progress-bar variant. */
@@ -695,14 +695,13 @@
695
695
  --gl-button-disabled-background-color: rgba(137, 136, 141, 0.16); /* Used for the background of a disabled button. */
696
696
  --gl-button-disabled-border-color: var(--gl-color-alpha-0); /* Used for the border of a disabled button. */
697
697
  --gl-datepicker-background-color: var(--gl-color-neutral-900); /* Used for the background color of datepicker. */
698
- --gl-dropdown-border-color: var(--gl-color-neutral-700); /* Used for the border of a dropdown. */
699
- --gl-dropdown-option-indicator-color-selected-active: var(--gl-color-neutral-100); /* Used for the dropdown selected option indicator in the active state. */
700
698
  --gl-dropdown-option-background-color-unselected-default: var(--gl-action-neutral-background-color-default); /* Used for the background of an unselected dropdown option in the default state. */
701
699
  --gl-dropdown-option-background-color-unselected-hover: var(--gl-action-neutral-background-color-hover); /* Used for the background of an unselected dropdown option in the hover state. */
702
700
  --gl-dropdown-option-background-color-unselected-active: var(--gl-action-neutral-background-color-active); /* Used for the background of an unselected dropdown option in the active state. */
703
701
  --gl-dropdown-option-background-color-selected-default: var(--gl-color-neutral-800); /* Used for the background of a selected dropdown option in the default state. */
704
702
  --gl-dropdown-option-background-color-selected-hover: var(--gl-color-neutral-700); /* Used for the background of a selected dropdown option in the hover state. */
705
703
  --gl-dropdown-option-background-color-selected-active: var(--gl-color-neutral-900); /* Used for the background of a selected dropdown option in the active state. */
704
+ --gl-dropdown-search-background-color: var(--gl-color-alpha-dark-24); /* Used for the background of a search input in a dropdown listbox. */
706
705
  --gl-filtered-search-token-type-background-color-default: var(--gl-color-neutral-900); /* Used for the filtered search type token background color in the default state. */
707
706
  --gl-filtered-search-token-type-background-color-hover: var(--gl-color-neutral-800); /* Used for the filtered search type token background color in the hover state. */
708
707
  --gl-filtered-search-token-data-background-color-default: var(--gl-color-neutral-800); /* Used for the filtered search data background color in the default state. */
@@ -909,11 +908,14 @@
909
908
  --gl-button-selected-border-color-focus: var(--gl-button-selected-border-color-hover); /* Used for the border of a selected button in the focus state. */
910
909
  --gl-datepicker-date-text-color-selected: var(--gl-control-indicator-color-selected); /* Used for the datepicker date text color state indicators. */
911
910
  --gl-dropdown-background-color: var(--gl-background-color-overlap); /* Used for the background of a dropdown. */
911
+ --gl-dropdown-border-color: var(--gl-border-color-default); /* Used for the border of a dropdown. */
912
+ --gl-dropdown-divider-color: var(--gl-border-color-subtle);
912
913
  --gl-dropdown-option-text-color-default: var(--gl-action-neutral-foreground-color-default); /* Used for the text of a dropdown option in the default state. */
913
914
  --gl-dropdown-option-text-color-disabled: var(--gl-action-disabled-foreground-color); /* Used for the text of a dropdown option in the disabled state. */
914
- --gl-dropdown-option-indicator-color-selected-default: var(--gl-color-neutral-0); /* Used for the dropdown selected option indicator in the default state. */
915
- --gl-dropdown-option-indicator-color-selected-hover: var(--gl-color-neutral-0); /* Used for the dropdown selected option indicator in the hover state. */
916
- --gl-dropdown-option-indicator-color-selected-focus: var(--gl-color-neutral-0); /* Used for the dropdown selected option indicator in the focus state. */
915
+ --gl-dropdown-option-indicator-color-selected-default: var(--gl-control-background-color-selected-default); /* Used for the dropdown selected option indicator in the default state. */
916
+ --gl-dropdown-option-indicator-color-selected-hover: var(--gl-control-background-color-selected-hover); /* Used for the dropdown selected option indicator in the hover state. */
917
+ --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. */
918
+ --gl-dropdown-option-indicator-color-selected-active: var(--gl-control-background-color-selected-focus); /* Used for the dropdown selected option indicator in the active state. */
917
919
  --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. */
918
920
  --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. */
919
921
  --gl-progress-bar-indicator-color-default: var(--gl-status-info-icon-color); /* Used for the indicator color for the primary progress-bar variant. */
@@ -628,15 +628,16 @@ export const GL_DATEPICKER_BACKGROUND_COLOR = '#28272d';
628
628
  export const GL_DATEPICKER_DATE_TEXT_COLOR_SELECTED = '#18171d';
629
629
  export const GL_DROPDOWN_BACKGROUND_COLOR = '#28272d';
630
630
  export const GL_DROPDOWN_BORDER_COLOR = '#4c4b51';
631
+ export const GL_DROPDOWN_DIVIDER_COLOR = '#3a383f';
631
632
  export const GL_DROPDOWN_OPTION_TEXT_COLOR_DEFAULT = '#ececef';
632
633
  export const GL_DROPDOWN_OPTION_TEXT_COLOR_HOVER = '#ececef';
633
634
  export const GL_DROPDOWN_OPTION_TEXT_COLOR_FOCUS = '#ececef';
634
635
  export const GL_DROPDOWN_OPTION_TEXT_COLOR_ACTIVE = '#ececef';
635
636
  export const GL_DROPDOWN_OPTION_TEXT_COLOR_DISABLED = '#737278';
636
- export const GL_DROPDOWN_OPTION_INDICATOR_COLOR_SELECTED_DEFAULT = '#fff';
637
- export const GL_DROPDOWN_OPTION_INDICATOR_COLOR_SELECTED_HOVER = '#fff';
638
- export const GL_DROPDOWN_OPTION_INDICATOR_COLOR_SELECTED_FOCUS = '#fff';
639
- export const GL_DROPDOWN_OPTION_INDICATOR_COLOR_SELECTED_ACTIVE = '#dcdcde';
637
+ export const GL_DROPDOWN_OPTION_INDICATOR_COLOR_SELECTED_DEFAULT = '#63a6e9';
638
+ export const GL_DROPDOWN_OPTION_INDICATOR_COLOR_SELECTED_HOVER = '#9dc7f1';
639
+ export const GL_DROPDOWN_OPTION_INDICATOR_COLOR_SELECTED_FOCUS = '#9dc7f1';
640
+ export const GL_DROPDOWN_OPTION_INDICATOR_COLOR_SELECTED_ACTIVE = '#9dc7f1';
640
641
  export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_UNSELECTED_DEFAULT = 'rgba(137, 136, 141, 0.0)';
641
642
  export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_UNSELECTED_HOVER = 'rgba(137, 136, 141, 0.4)';
642
643
  export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_UNSELECTED_FOCUS = 'rgba(137, 136, 141, 0.4)';
@@ -645,6 +646,7 @@ export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_SELECTED_DEFAULT = '#3a383f';
645
646
  export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_SELECTED_HOVER = '#4c4b51';
646
647
  export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_SELECTED_FOCUS = '#4c4b51';
647
648
  export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_SELECTED_ACTIVE = '#28272d';
649
+ export const GL_DROPDOWN_SEARCH_BACKGROUND_COLOR = 'rgba(05, 05, 06, 0.24)';
648
650
  export const GL_FILTERED_SEARCH_TOKEN_TYPE_BACKGROUND_COLOR_DEFAULT = '#28272d';
649
651
  export const GL_FILTERED_SEARCH_TOKEN_TYPE_BACKGROUND_COLOR_HOVER = '#3a383f';
650
652
  export const GL_FILTERED_SEARCH_TOKEN_DATA_BACKGROUND_COLOR_DEFAULT = '#3a383f';
@@ -628,6 +628,7 @@ export const GL_DATEPICKER_BACKGROUND_COLOR = '#fff';
628
628
  export const GL_DATEPICKER_DATE_TEXT_COLOR_SELECTED = '#fff';
629
629
  export const GL_DROPDOWN_BACKGROUND_COLOR = '#fff';
630
630
  export const GL_DROPDOWN_BORDER_COLOR = '#bfbfc3';
631
+ export const GL_DROPDOWN_DIVIDER_COLOR = '#dcdcde';
631
632
  export const GL_DROPDOWN_OPTION_TEXT_COLOR_DEFAULT = '#28272d';
632
633
  export const GL_DROPDOWN_OPTION_TEXT_COLOR_HOVER = '#28272d';
633
634
  export const GL_DROPDOWN_OPTION_TEXT_COLOR_FOCUS = '#28272d';
@@ -645,6 +646,7 @@ export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_SELECTED_DEFAULT = '#ececef';
645
646
  export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_SELECTED_HOVER = '#dcdcde';
646
647
  export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_SELECTED_FOCUS = '#dcdcde';
647
648
  export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_SELECTED_ACTIVE = '#bfbfc3';
649
+ export const GL_DROPDOWN_SEARCH_BACKGROUND_COLOR = 'rgba(05, 05, 06, 0.02)';
648
650
  export const GL_FILTERED_SEARCH_TOKEN_TYPE_BACKGROUND_COLOR_DEFAULT = '#ececef';
649
651
  export const GL_FILTERED_SEARCH_TOKEN_TYPE_BACKGROUND_COLOR_HOVER = '#dcdcde';
650
652
  export const GL_FILTERED_SEARCH_TOKEN_DATA_BACKGROUND_COLOR_DEFAULT = '#dcdcde';
@@ -13797,8 +13797,8 @@
13797
13797
  "isSource": true,
13798
13798
  "original": {
13799
13799
  "$value": {
13800
- "default": "{color.neutral.200}",
13801
- "dark": "{color.neutral.700}"
13800
+ "default": "{border.color.strong}",
13801
+ "dark": "{border.color.default}"
13802
13802
  },
13803
13803
  "$type": "color",
13804
13804
  "$description": "Used for the border of a dropdown."
@@ -13812,6 +13812,26 @@
13812
13812
  ]
13813
13813
  }
13814
13814
  },
13815
+ "divider": {
13816
+ "color": {
13817
+ "$value": "#3a383f",
13818
+ "filePath": "src/tokens/contextual/dropdown.tokens.json",
13819
+ "isSource": true,
13820
+ "original": {
13821
+ "$value": {
13822
+ "default": "{border.color.default}",
13823
+ "dark": "{border.color.subtle}"
13824
+ }
13825
+ },
13826
+ "name": "DROPDOWN_DIVIDER_COLOR",
13827
+ "attributes": {},
13828
+ "path": [
13829
+ "dropdown",
13830
+ "divider",
13831
+ "color"
13832
+ ]
13833
+ }
13834
+ },
13815
13835
  "option": {
13816
13836
  "text": {
13817
13837
  "color": {
@@ -13926,16 +13946,13 @@
13926
13946
  "color": {
13927
13947
  "selected": {
13928
13948
  "default": {
13929
- "$value": "#fff",
13949
+ "$value": "#63a6e9",
13930
13950
  "$type": "color",
13931
13951
  "$description": "Used for the dropdown selected option indicator in the default state.",
13932
13952
  "filePath": "src/tokens/contextual/dropdown.tokens.json",
13933
13953
  "isSource": true,
13934
13954
  "original": {
13935
- "$value": {
13936
- "default": "{control.background.color.selected.default}",
13937
- "dark": "{color.neutral.0}"
13938
- },
13955
+ "$value": "{control.background.color.selected.default}",
13939
13956
  "$type": "color",
13940
13957
  "$description": "Used for the dropdown selected option indicator in the default state."
13941
13958
  },
@@ -13951,16 +13968,13 @@
13951
13968
  ]
13952
13969
  },
13953
13970
  "hover": {
13954
- "$value": "#fff",
13971
+ "$value": "#9dc7f1",
13955
13972
  "$type": "color",
13956
13973
  "$description": "Used for the dropdown selected option indicator in the hover state.",
13957
13974
  "filePath": "src/tokens/contextual/dropdown.tokens.json",
13958
13975
  "isSource": true,
13959
13976
  "original": {
13960
- "$value": {
13961
- "default": "{control.background.color.selected.hover}",
13962
- "dark": "{color.neutral.0}"
13963
- },
13977
+ "$value": "{control.background.color.selected.hover}",
13964
13978
  "$type": "color",
13965
13979
  "$description": "Used for the dropdown selected option indicator in the hover state."
13966
13980
  },
@@ -13976,16 +13990,13 @@
13976
13990
  ]
13977
13991
  },
13978
13992
  "focus": {
13979
- "$value": "#fff",
13993
+ "$value": "#9dc7f1",
13980
13994
  "$type": "color",
13981
13995
  "$description": "Used for the dropdown selected option indicator in the focus state.",
13982
13996
  "filePath": "src/tokens/contextual/dropdown.tokens.json",
13983
13997
  "isSource": true,
13984
13998
  "original": {
13985
- "$value": {
13986
- "default": "{control.background.color.selected.focus}",
13987
- "dark": "{color.neutral.0}"
13988
- },
13999
+ "$value": "{control.background.color.selected.focus}",
13989
14000
  "$type": "color",
13990
14001
  "$description": "Used for the dropdown selected option indicator in the focus state."
13991
14002
  },
@@ -14001,16 +14012,13 @@
14001
14012
  ]
14002
14013
  },
14003
14014
  "active": {
14004
- "$value": "#dcdcde",
14015
+ "$value": "#9dc7f1",
14005
14016
  "$type": "color",
14006
14017
  "$description": "Used for the dropdown selected option indicator in the active state.",
14007
14018
  "filePath": "src/tokens/contextual/dropdown.tokens.json",
14008
14019
  "isSource": true,
14009
14020
  "original": {
14010
- "$value": {
14011
- "default": "{color.blue.700}",
14012
- "dark": "{color.neutral.100}"
14013
- },
14021
+ "$value": "{control.background.color.selected.focus}",
14014
14022
  "$type": "color",
14015
14023
  "$description": "Used for the dropdown selected option indicator in the active state."
14016
14024
  },
@@ -14221,6 +14229,33 @@
14221
14229
  }
14222
14230
  }
14223
14231
  }
14232
+ },
14233
+ "search": {
14234
+ "background": {
14235
+ "color": {
14236
+ "$value": "rgba(05, 05, 06, 0.24)",
14237
+ "$type": "color",
14238
+ "$description": "Used for the background of a search input in a dropdown listbox.",
14239
+ "filePath": "src/tokens/contextual/dropdown.tokens.json",
14240
+ "isSource": true,
14241
+ "original": {
14242
+ "$value": {
14243
+ "default": "{color.alpha.dark.2}",
14244
+ "dark": "{color.alpha.dark.24}"
14245
+ },
14246
+ "$type": "color",
14247
+ "$description": "Used for the background of a search input in a dropdown listbox."
14248
+ },
14249
+ "name": "DROPDOWN_SEARCH_BACKGROUND_COLOR",
14250
+ "attributes": {},
14251
+ "path": [
14252
+ "dropdown",
14253
+ "search",
14254
+ "background",
14255
+ "color"
14256
+ ]
14257
+ }
14258
+ }
14224
14259
  }
14225
14260
  },
14226
14261
  "filtered-search": {
@@ -13797,8 +13797,8 @@
13797
13797
  "isSource": true,
13798
13798
  "original": {
13799
13799
  "$value": {
13800
- "default": "{color.neutral.200}",
13801
- "dark": "{color.neutral.700}"
13800
+ "default": "{border.color.strong}",
13801
+ "dark": "{border.color.default}"
13802
13802
  },
13803
13803
  "$type": "color",
13804
13804
  "$description": "Used for the border of a dropdown."
@@ -13812,6 +13812,26 @@
13812
13812
  ]
13813
13813
  }
13814
13814
  },
13815
+ "divider": {
13816
+ "color": {
13817
+ "$value": "#dcdcde",
13818
+ "filePath": "src/tokens/contextual/dropdown.tokens.json",
13819
+ "isSource": true,
13820
+ "original": {
13821
+ "$value": {
13822
+ "default": "{border.color.default}",
13823
+ "dark": "{border.color.subtle}"
13824
+ }
13825
+ },
13826
+ "name": "DROPDOWN_DIVIDER_COLOR",
13827
+ "attributes": {},
13828
+ "path": [
13829
+ "dropdown",
13830
+ "divider",
13831
+ "color"
13832
+ ]
13833
+ }
13834
+ },
13815
13835
  "option": {
13816
13836
  "text": {
13817
13837
  "color": {
@@ -13932,10 +13952,7 @@
13932
13952
  "filePath": "src/tokens/contextual/dropdown.tokens.json",
13933
13953
  "isSource": true,
13934
13954
  "original": {
13935
- "$value": {
13936
- "default": "{control.background.color.selected.default}",
13937
- "dark": "{color.neutral.0}"
13938
- },
13955
+ "$value": "{control.background.color.selected.default}",
13939
13956
  "$type": "color",
13940
13957
  "$description": "Used for the dropdown selected option indicator in the default state."
13941
13958
  },
@@ -13957,10 +13974,7 @@
13957
13974
  "filePath": "src/tokens/contextual/dropdown.tokens.json",
13958
13975
  "isSource": true,
13959
13976
  "original": {
13960
- "$value": {
13961
- "default": "{control.background.color.selected.hover}",
13962
- "dark": "{color.neutral.0}"
13963
- },
13977
+ "$value": "{control.background.color.selected.hover}",
13964
13978
  "$type": "color",
13965
13979
  "$description": "Used for the dropdown selected option indicator in the hover state."
13966
13980
  },
@@ -13982,10 +13996,7 @@
13982
13996
  "filePath": "src/tokens/contextual/dropdown.tokens.json",
13983
13997
  "isSource": true,
13984
13998
  "original": {
13985
- "$value": {
13986
- "default": "{control.background.color.selected.focus}",
13987
- "dark": "{color.neutral.0}"
13988
- },
13999
+ "$value": "{control.background.color.selected.focus}",
13989
14000
  "$type": "color",
13990
14001
  "$description": "Used for the dropdown selected option indicator in the focus state."
13991
14002
  },
@@ -14007,10 +14018,7 @@
14007
14018
  "filePath": "src/tokens/contextual/dropdown.tokens.json",
14008
14019
  "isSource": true,
14009
14020
  "original": {
14010
- "$value": {
14011
- "default": "{color.blue.700}",
14012
- "dark": "{color.neutral.100}"
14013
- },
14021
+ "$value": "{control.background.color.selected.focus}",
14014
14022
  "$type": "color",
14015
14023
  "$description": "Used for the dropdown selected option indicator in the active state."
14016
14024
  },
@@ -14221,6 +14229,33 @@
14221
14229
  }
14222
14230
  }
14223
14231
  }
14232
+ },
14233
+ "search": {
14234
+ "background": {
14235
+ "color": {
14236
+ "$value": "rgba(05, 05, 06, 0.02)",
14237
+ "$type": "color",
14238
+ "$description": "Used for the background of a search input in a dropdown listbox.",
14239
+ "filePath": "src/tokens/contextual/dropdown.tokens.json",
14240
+ "isSource": true,
14241
+ "original": {
14242
+ "$value": {
14243
+ "default": "{color.alpha.dark.2}",
14244
+ "dark": "{color.alpha.dark.24}"
14245
+ },
14246
+ "$type": "color",
14247
+ "$description": "Used for the background of a search input in a dropdown listbox."
14248
+ },
14249
+ "name": "DROPDOWN_SEARCH_BACKGROUND_COLOR",
14250
+ "attributes": {},
14251
+ "path": [
14252
+ "dropdown",
14253
+ "search",
14254
+ "background",
14255
+ "color"
14256
+ ]
14257
+ }
14258
+ }
14224
14259
  }
14225
14260
  },
14226
14261
  "filtered-search": {
@@ -693,14 +693,13 @@ $gl-button-disabled-foreground-color: $gl-color-neutral-400; // Used for the for
693
693
  $gl-button-disabled-background-color: rgba(137, 136, 141, 0.16); // Used for the background of a disabled button.
694
694
  $gl-button-disabled-border-color: $gl-color-alpha-0; // Used for the border of a disabled button.
695
695
  $gl-datepicker-background-color: $gl-color-neutral-900; // Used for the background color of datepicker.
696
- $gl-dropdown-border-color: $gl-color-neutral-700; // Used for the border of a dropdown.
697
- $gl-dropdown-option-indicator-color-selected-active: $gl-color-neutral-100; // Used for the dropdown selected option indicator in the active state.
698
696
  $gl-dropdown-option-background-color-unselected-default: $gl-action-neutral-background-color-default; // Used for the background of an unselected dropdown option in the default state.
699
697
  $gl-dropdown-option-background-color-unselected-hover: $gl-action-neutral-background-color-hover; // Used for the background of an unselected dropdown option in the hover state.
700
698
  $gl-dropdown-option-background-color-unselected-active: $gl-action-neutral-background-color-active; // Used for the background of an unselected dropdown option in the active state.
701
699
  $gl-dropdown-option-background-color-selected-default: $gl-color-neutral-800; // Used for the background of a selected dropdown option in the default state.
702
700
  $gl-dropdown-option-background-color-selected-hover: $gl-color-neutral-700; // Used for the background of a selected dropdown option in the hover state.
703
701
  $gl-dropdown-option-background-color-selected-active: $gl-color-neutral-900; // Used for the background of a selected dropdown option in the active state.
702
+ $gl-dropdown-search-background-color: $gl-color-alpha-dark-24; // Used for the background of a search input in a dropdown listbox.
704
703
  $gl-filtered-search-token-type-background-color-default: $gl-color-neutral-900; // Used for the filtered search type token background color in the default state.
705
704
  $gl-filtered-search-token-type-background-color-hover: $gl-color-neutral-800; // Used for the filtered search type token background color in the hover state.
706
705
  $gl-filtered-search-token-data-background-color-default: $gl-color-neutral-800; // Used for the filtered search data background color in the default state.
@@ -907,11 +906,14 @@ $gl-button-selected-background-color-active: $gl-button-default-primary-backgrou
907
906
  $gl-button-selected-border-color-focus: $gl-button-selected-border-color-hover; // Used for the border of a selected button in the focus state.
908
907
  $gl-datepicker-date-text-color-selected: $gl-control-indicator-color-selected; // Used for the datepicker date text color state indicators.
909
908
  $gl-dropdown-background-color: $gl-background-color-overlap; // Used for the background of a dropdown.
909
+ $gl-dropdown-border-color: $gl-border-color-default; // Used for the border of a dropdown.
910
+ $gl-dropdown-divider-color: $gl-border-color-subtle;
910
911
  $gl-dropdown-option-text-color-default: $gl-action-neutral-foreground-color-default; // Used for the text of a dropdown option in the default state.
911
912
  $gl-dropdown-option-text-color-disabled: $gl-action-disabled-foreground-color; // Used for the text of a dropdown option in the disabled state.
912
- $gl-dropdown-option-indicator-color-selected-default: $gl-color-neutral-0; // Used for the dropdown selected option indicator in the default state.
913
- $gl-dropdown-option-indicator-color-selected-hover: $gl-color-neutral-0; // Used for the dropdown selected option indicator in the hover state.
914
- $gl-dropdown-option-indicator-color-selected-focus: $gl-color-neutral-0; // Used for the dropdown selected option indicator in the focus state.
913
+ $gl-dropdown-option-indicator-color-selected-default: $gl-control-background-color-selected-default; // Used for the dropdown selected option indicator in the default state.
914
+ $gl-dropdown-option-indicator-color-selected-hover: $gl-control-background-color-selected-hover; // Used for the dropdown selected option indicator in the hover state.
915
+ $gl-dropdown-option-indicator-color-selected-focus: $gl-control-background-color-selected-focus; // Used for the dropdown selected option indicator in the focus state.
916
+ $gl-dropdown-option-indicator-color-selected-active: $gl-control-background-color-selected-focus; // Used for the dropdown selected option indicator in the active state.
915
917
  $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.
916
918
  $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.
917
919
  $gl-progress-bar-indicator-color-default: $gl-status-info-icon-color; // Used for the indicator color for the primary progress-bar variant.
@@ -693,14 +693,13 @@ $gl-button-disabled-foreground-color: $gl-color-neutral-500; // Used for the for
693
693
  $gl-button-disabled-background-color: $gl-color-neutral-10; // Used for the background of a disabled button.
694
694
  $gl-button-disabled-border-color: $gl-color-neutral-100; // Used for the border of a disabled button.
695
695
  $gl-datepicker-background-color: $gl-color-neutral-0; // Used for the background color of datepicker.
696
- $gl-dropdown-border-color: $gl-color-neutral-200; // Used for the border of a dropdown.
697
- $gl-dropdown-option-indicator-color-selected-active: $gl-color-blue-700; // Used for the dropdown selected option indicator in the active state.
698
696
  $gl-dropdown-option-background-color-unselected-default: $gl-action-neutral-background-color-default; // Used for the background of an unselected dropdown option in the default state.
699
697
  $gl-dropdown-option-background-color-unselected-hover: $gl-action-neutral-background-color-hover; // Used for the background of an unselected dropdown option in the hover state.
700
698
  $gl-dropdown-option-background-color-unselected-active: $gl-action-neutral-background-color-active; // Used for the background of an unselected dropdown option in the active state.
701
699
  $gl-dropdown-option-background-color-selected-default: $gl-color-neutral-50; // Used for the background of a selected dropdown option in the default state.
702
700
  $gl-dropdown-option-background-color-selected-hover: $gl-color-neutral-100; // Used for the background of a selected dropdown option in the hover state.
703
701
  $gl-dropdown-option-background-color-selected-active: $gl-color-neutral-200; // Used for the background of a selected dropdown option in the active state.
702
+ $gl-dropdown-search-background-color: $gl-color-alpha-dark-2; // Used for the background of a search input in a dropdown listbox.
704
703
  $gl-filtered-search-token-type-background-color-default: $gl-color-neutral-50; // Used for the filtered search type token background color in the default state.
705
704
  $gl-filtered-search-token-type-background-color-hover: $gl-color-neutral-100; // Used for the filtered search type token background color in the hover state.
706
705
  $gl-filtered-search-token-data-background-color-default: $gl-color-neutral-100; // Used for the filtered search data background color in the default state.
@@ -907,11 +906,14 @@ $gl-button-selected-background-color-active: $gl-button-default-primary-backgrou
907
906
  $gl-button-selected-border-color-focus: $gl-button-selected-border-color-hover; // Used for the border of a selected button in the focus state.
908
907
  $gl-datepicker-date-text-color-selected: $gl-control-indicator-color-selected; // Used for the datepicker date text color state indicators.
909
908
  $gl-dropdown-background-color: $gl-background-color-overlap; // Used for the background of a dropdown.
909
+ $gl-dropdown-border-color: $gl-border-color-strong; // Used for the border of a dropdown.
910
+ $gl-dropdown-divider-color: $gl-border-color-default;
910
911
  $gl-dropdown-option-text-color-default: $gl-action-neutral-foreground-color-default; // Used for the text of a dropdown option in the default state.
911
912
  $gl-dropdown-option-text-color-disabled: $gl-action-disabled-foreground-color; // Used for the text of a dropdown option in the disabled state.
912
913
  $gl-dropdown-option-indicator-color-selected-default: $gl-control-background-color-selected-default; // Used for the dropdown selected option indicator in the default state.
913
914
  $gl-dropdown-option-indicator-color-selected-hover: $gl-control-background-color-selected-hover; // Used for the dropdown selected option indicator in the hover state.
914
915
  $gl-dropdown-option-indicator-color-selected-focus: $gl-control-background-color-selected-focus; // Used for the dropdown selected option indicator in the focus state.
916
+ $gl-dropdown-option-indicator-color-selected-active: $gl-control-background-color-selected-focus; // Used for the dropdown selected option indicator in the active state.
915
917
  $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.
916
918
  $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.
917
919
  $gl-progress-bar-indicator-color-default: $gl-status-info-icon-color; // Used for the indicator color for the primary progress-bar variant.
@@ -628,6 +628,7 @@ $gl-datepicker-background-color: var(--gl-datepicker-background-color);
628
628
  $gl-datepicker-date-text-color-selected: var(--gl-datepicker-date-text-color-selected);
629
629
  $gl-dropdown-background-color: var(--gl-dropdown-background-color);
630
630
  $gl-dropdown-border-color: var(--gl-dropdown-border-color);
631
+ $gl-dropdown-divider-color: var(--gl-dropdown-divider-color);
631
632
  $gl-dropdown-option-text-color-default: var(--gl-dropdown-option-text-color-default);
632
633
  $gl-dropdown-option-text-color-hover: var(--gl-dropdown-option-text-color-hover);
633
634
  $gl-dropdown-option-text-color-focus: var(--gl-dropdown-option-text-color-focus);
@@ -645,6 +646,7 @@ $gl-dropdown-option-background-color-selected-default: var(--gl-dropdown-option-
645
646
  $gl-dropdown-option-background-color-selected-hover: var(--gl-dropdown-option-background-color-selected-hover);
646
647
  $gl-dropdown-option-background-color-selected-focus: var(--gl-dropdown-option-background-color-selected-focus);
647
648
  $gl-dropdown-option-background-color-selected-active: var(--gl-dropdown-option-background-color-selected-active);
649
+ $gl-dropdown-search-background-color: var(--gl-dropdown-search-background-color);
648
650
  $gl-filtered-search-token-type-background-color-default: var(--gl-filtered-search-token-type-background-color-default);
649
651
  $gl-filtered-search-token-type-background-color-hover: var(--gl-filtered-search-token-type-background-color-hover);
650
652
  $gl-filtered-search-token-data-background-color-default: var(--gl-filtered-search-token-data-background-color-default);
@@ -381,7 +381,8 @@ const backgroundColor = {
381
381
  const borderColor = {
382
382
  ...colors,
383
383
  ...borderColors,
384
- dropdown: 'var(--gl-dropdown-border-color, var(--gl-color-neutral-200, #bfbfc3))',
384
+ dropdown: 'var(--gl-dropdown-border-color, var(--gl-border-color-strong, #bfbfc3))',
385
+ 'dropdown-divider': 'var(--gl-dropdown-divider-color, var(--gl-border-color-default, #dcdcde))',
385
386
  };
386
387
 
387
388
  const outlineColor = {
@@ -10,13 +10,21 @@
10
10
  "border": {
11
11
  "color": {
12
12
  "$value": {
13
- "default": "{color.neutral.200}",
14
- "dark": "{color.neutral.700}"
13
+ "default": "{border.color.strong}",
14
+ "dark": "{border.color.default}"
15
15
  },
16
16
  "$type": "color",
17
17
  "$description": "Used for the border of a dropdown."
18
18
  }
19
19
  },
20
+ "divider": {
21
+ "color": {
22
+ "$value": {
23
+ "default": "{border.color.default}",
24
+ "dark": "{border.color.subtle}"
25
+ },
26
+ }
27
+ },
20
28
  "option": {
21
29
  "text": {
22
30
  "color": {
@@ -51,34 +59,22 @@
51
59
  "color": {
52
60
  "selected": {
53
61
  "default": {
54
- "$value": {
55
- "default": "{control.background.color.selected.default}",
56
- "dark": "{color.neutral.0}"
57
- },
62
+ "$value": "{control.background.color.selected.default}",
58
63
  "$type": "color",
59
64
  "$description": "Used for the dropdown selected option indicator in the default state."
60
65
  },
61
66
  "hover": {
62
- "$value": {
63
- "default": "{control.background.color.selected.hover}",
64
- "dark": "{color.neutral.0}"
65
- },
67
+ "$value": "{control.background.color.selected.hover}",
66
68
  "$type": "color",
67
69
  "$description": "Used for the dropdown selected option indicator in the hover state."
68
70
  },
69
71
  "focus": {
70
- "$value": {
71
- "default": "{control.background.color.selected.focus}",
72
- "dark": "{color.neutral.0}"
73
- },
72
+ "$value": "{control.background.color.selected.focus}",
74
73
  "$type": "color",
75
74
  "$description": "Used for the dropdown selected option indicator in the focus state."
76
75
  },
77
76
  "active": {
78
- "$value": {
79
- "default": "{color.blue.700}",
80
- "dark": "{color.neutral.100}"
81
- },
77
+ "$value": "{control.background.color.selected.focus}",
82
78
  "$type": "color",
83
79
  "$description": "Used for the dropdown selected option indicator in the active state."
84
80
  }
@@ -142,6 +138,18 @@
142
138
  }
143
139
  }
144
140
  }
141
+ },
142
+ "search": {
143
+ "background": {
144
+ "color": {
145
+ "$value": {
146
+ "default": "{color.alpha.dark.2}",
147
+ "dark": "{color.alpha.dark.24}"
148
+ },
149
+ "$type": "color",
150
+ "$description": "Used for the background of a search input in a dropdown listbox."
151
+ }
152
+ }
145
153
  }
146
154
  }
147
155
  }
@@ -127,6 +127,11 @@ export const dropdownVariantOptions = {
127
127
  link: 'link',
128
128
  };
129
129
 
130
+ export const dropdownItemVariantOptions = {
131
+ default: 'default',
132
+ danger: 'danger',
133
+ };
134
+
130
135
  export const dropdownPlacements = {
131
136
  'right-start': 'right-start',
132
137
  'bottom-start': 'bottom-start',