@gitlab/ui 123.6.0 → 123.7.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/dist/components/base/filtered_search/filtered_search.js +1 -1
  2. package/dist/components/base/filtered_search/filtered_search_suggestion.js +1 -1
  3. package/dist/components/base/filtered_search/filtered_search_suggestion_list.js +2 -1
  4. package/dist/components/base/filtered_search/filtered_search_term.js +10 -1
  5. package/dist/components/base/filtered_search/filtered_search_token.js +1 -1
  6. package/dist/components/base/filtered_search/filtered_search_token_segment.js +5 -1
  7. package/dist/components/base/form/form_select/form_select.js +6 -1
  8. package/dist/components/experimental/experiment_badge/experiment_badge.js +2 -2
  9. package/dist/index.css +1 -1
  10. package/dist/index.css.map +1 -1
  11. package/dist/tailwind.css +1 -1
  12. package/dist/tailwind.css.map +1 -1
  13. package/dist/tokens/css/tokens.dark.css +29 -29
  14. package/dist/tokens/docs/tokens-tailwind-docs.dark.json +1047 -4206
  15. package/dist/tokens/docs/tokens-tailwind-docs.json +1047 -4206
  16. package/dist/tokens/figma/constants.tokens.json +212 -62
  17. package/dist/tokens/json/tokens.dark.json +516 -2082
  18. package/dist/tokens/json/tokens.json +516 -2082
  19. package/dist/tokens/scss/_tokens.dark.scss +29 -29
  20. package/package.json +6 -6
  21. package/src/components/base/filtered_search/filtered_search.vue +1 -1
  22. package/src/components/base/filtered_search/filtered_search_suggestion.vue +0 -2
  23. package/src/components/base/filtered_search/filtered_search_suggestion_list.vue +2 -0
  24. package/src/components/base/filtered_search/filtered_search_term.vue +12 -1
  25. package/src/components/base/filtered_search/filtered_search_token.vue +1 -1
  26. package/src/components/base/filtered_search/filtered_search_token_segment.vue +36 -15
  27. package/src/components/base/form/form_select/form_select.vue +12 -1
  28. package/src/components/experimental/experiment_badge/experiment_badge.vue +2 -2
  29. package/src/tokens/build/css/tokens.dark.css +29 -29
  30. package/src/tokens/build/docs/tokens-tailwind-docs.dark.json +1047 -4206
  31. package/src/tokens/build/docs/tokens-tailwind-docs.json +1047 -4206
  32. package/src/tokens/build/figma/constants.tokens.json +212 -62
  33. package/src/tokens/build/json/tokens.dark.json +516 -2082
  34. package/src/tokens/build/json/tokens.json +516 -2082
  35. package/src/tokens/build/scss/_tokens.dark.scss +29 -29
  36. package/src/tokens/constant/border.tokens.json +4 -10
  37. package/src/tokens/constant/line_height.tokens.json +40 -10
  38. package/src/tokens/constant/shadow.tokens.json +44 -11
  39. package/src/tokens/constant/spacing_scale.tokens.json +124 -31
@@ -294,6 +294,16 @@ $gl-avatar-fallback-background-color-blue: #9dc7f13d; // Blue background for ava
294
294
  $gl-avatar-fallback-background-color-green: #91d4a83d; // Green background for avatar fallback with no particular meaning.
295
295
  $gl-avatar-fallback-background-color-orange: #e9be743d; // Orange background for avatar fallback with no particular meaning.
296
296
  $gl-avatar-fallback-background-color-neutral: #bfbfc33d; // Neutral background for avatar fallback with no particular meaning.
297
+ $gl-button-default-primary-background-color-default: rgba(137, 136, 141, 0.4); // Used for the background of an default primary button in the default state.
298
+ $gl-button-default-primary-background-color-hover: rgba(137, 136, 141, 0.64); // Used for the background of an default primary button in the hover state.
299
+ $gl-button-default-primary-background-color-active: rgba(137, 136, 141, 0.32); // Used for the background of an default primary button in the active state.
300
+ $gl-button-confirm-secondary-background-color-default: rgba(66, 143, 220, 0.4); // Used for the background of an outlined confirm (positive) button in the default state.
301
+ $gl-button-confirm-secondary-background-color-hover: rgba(66, 143, 220, 0.64); // Used for the background of an outlined confirm (positive) button in the hover state.
302
+ $gl-button-confirm-secondary-background-color-active: rgba(66, 143, 220, 0.32); // Used for the background of an outlined confirm (positive) button in the active state.
303
+ $gl-button-danger-secondary-background-color-default: rgba(236, 89, 65, 0.40); // Used for the background of an outlined danger (destructive) button in the default state.
304
+ $gl-button-danger-secondary-background-color-hover: rgba(236, 89, 65, 0.64); // Used for the background of an outlined danger (destructive) button in the hover state.
305
+ $gl-button-danger-secondary-background-color-active: rgba(236, 89, 65, 0.32); // Used for the background of an outlined danger (destructive) button in the active state.
306
+ $gl-button-disabled-background-color: rgba(137, 136, 141, 0.16); // Used for the background of a disabled button.
297
307
  $gl-chart-threshold-area-color: rgba(221,43,14,0.1); // Used in charts to delineate a threshold area in a chart.
298
308
  $gl-illustration-stroke-color-default: #e3e3e8; // Default stroke color to define shape and provide essential detail.
299
309
  $gl-illustration-stroke-width-default: 1.5; // Default stroke width to define shape and provide essential detail.
@@ -556,6 +566,7 @@ $gl-action-confirm-background-color-active: rgba(66, 143, 220, 0.16); // Used fo
556
566
  $gl-action-danger-background-color-default: rgba(236, 89, 65, 0.0); // Used for the background of a danger (destructive) action in the default state.
557
567
  $gl-action-danger-background-color-hover: rgba(236, 89, 65, 0.4); // Used for the background of a danger (destructive) action in the hover state.
558
568
  $gl-action-danger-background-color-active: rgba(236, 89, 65, 0.16); // Used for the background of a danger (destructive) action in the active state.
569
+ $gl-background-color-overlay: rgba(0,0,0,0.64); // Used for an overlay that covers other content.
559
570
  $gl-text-primary: #ececef; // Use text.color.default instead.
560
571
  $gl-text-secondary: #89888d; // Use text.color.subtle instead.
561
572
  $gl-text-tertiary: #737278; // Use text.color.disabled instead.
@@ -574,12 +585,16 @@ $gl-border-color-transparent: $gl-color-alpha-0; // Used when a border needs to
574
585
  $gl-shadow-color-default: $gl-color-alpha-dark-40; // Used for the default shadow color.
575
586
  $gl-alert-neutral-border-top-color: $gl-color-neutral-400; // Used for the border center color of a neutral alert.
576
587
  $gl-alert-neutral-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of a neutral alert.
588
+ $gl-alert-info-title-color: $gl-color-blue-300; // Used for the title color of an info alert.
577
589
  $gl-alert-info-border-top-color: $gl-color-blue-400; // Used for the border color of an info alert.
578
590
  $gl-alert-info-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of an info alert.
591
+ $gl-alert-success-title-color: $gl-color-green-300; // Used for the title color of a success alert.
579
592
  $gl-alert-success-border-top-color: $gl-color-green-400; // Used for the border color of a success alert.
580
593
  $gl-alert-success-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of a success alert.
594
+ $gl-alert-warning-title-color: $gl-color-orange-300; // Used for the title color of a warning alert.
581
595
  $gl-alert-warning-border-top-color: $gl-color-orange-400; // Used for the border color of a warning alert.
582
596
  $gl-alert-warning-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of a warning alert.
597
+ $gl-alert-danger-title-color: $gl-color-red-300; // Used for the title color of a danger alert.
583
598
  $gl-alert-danger-border-top-color: $gl-color-red-400; // Used for the border color of a danger alert.
584
599
  $gl-alert-danger-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of a danger alert.
585
600
  $gl-avatar-border-color-default: $gl-color-alpha-light-8; // Used to define the edge of an avatar.
@@ -719,9 +734,7 @@ $gl-broadcast-banner-text-color-lightindigo: $gl-color-neutral-0; // Used for th
719
734
  $gl-broadcast-banner-text-color-lightred: $gl-color-neutral-0; // Used for the text for the lightred banner type.
720
735
  $gl-broadcast-banner-text-color-red: $gl-color-neutral-0; // Used for the text for the red banner type.
721
736
  $gl-button-default-primary-foreground-color-default: $gl-color-neutral-50; // Used for the foreground of a default primary button in the default state.
722
- $gl-button-default-primary-background-color-default: rgba(137, 136, 141, 0.4); // Used for the background of an default primary button in the default state.
723
- $gl-button-default-primary-background-color-hover: rgba(137, 136, 141, 0.64); // Used for the background of an default primary button in the hover state.
724
- $gl-button-default-primary-background-color-active: rgba(137, 136, 141, 0.32); // Used for the background of an default primary button in the active state.
737
+ $gl-button-default-primary-background-color-focus: $gl-button-default-primary-background-color-hover; // Used for the background of an default primary button in the focus state.
725
738
  $gl-button-default-primary-border-color-default: $gl-color-alpha-0; // Used for the border of an default primary button in the default state.
726
739
  $gl-button-default-primary-border-color-hover: $gl-color-alpha-0; // Used for the border of an default primary button in the hover state.
727
740
  $gl-button-default-primary-border-color-active: $gl-color-alpha-0; // Used for the border of an default primary button in the active state.
@@ -735,9 +748,7 @@ $gl-button-confirm-primary-border-color-active: $gl-color-alpha-0; // Used for t
735
748
  $gl-button-confirm-secondary-foreground-color-default: $gl-color-blue-100; // Used for the foreground of a confirm (positive) button in the default state.
736
749
  $gl-button-confirm-secondary-foreground-color-hover: $gl-color-blue-100; // Used for the foreground of a confirm (positive) button in the hover state.
737
750
  $gl-button-confirm-secondary-foreground-color-active: $gl-color-blue-100; // Used for the foreground of a confirm (positive) button in the active state.
738
- $gl-button-confirm-secondary-background-color-default: rgba(66, 143, 220, 0.4); // Used for the background of an outlined confirm (positive) button in the default state.
739
- $gl-button-confirm-secondary-background-color-hover: rgba(66, 143, 220, 0.64); // Used for the background of an outlined confirm (positive) button in the hover state.
740
- $gl-button-confirm-secondary-background-color-active: rgba(66, 143, 220, 0.32); // Used for the background of an outlined confirm (positive) button in the active state.
751
+ $gl-button-confirm-secondary-background-color-focus: $gl-button-confirm-secondary-background-color-hover; // Used for the background of an outlined confirm (positive) button in the focus state.
741
752
  $gl-button-confirm-secondary-border-color-default: $gl-color-alpha-0; // Used for the border of an outlined confirm (positive) button in the default state.
742
753
  $gl-button-confirm-secondary-border-color-hover: $gl-color-alpha-0; // Used for the border of an outlined confirm (positive) button in the hover state.
743
754
  $gl-button-confirm-secondary-border-color-active: $gl-color-alpha-0; // Used for the border of an outlined confirm (positive) button in the active state.
@@ -754,9 +765,7 @@ $gl-button-danger-primary-border-color-active: $gl-color-alpha-0; // Used for th
754
765
  $gl-button-danger-secondary-foreground-color-default: $gl-color-red-100; // Used for the foreground of a danger (destructive) button in the default state.
755
766
  $gl-button-danger-secondary-foreground-color-hover: $gl-color-red-50; // Used for the foreground of a danger (destructive) button in the hover state.
756
767
  $gl-button-danger-secondary-foreground-color-active: $gl-color-red-50; // Used for the foreground of a danger (destructive) button in the active state.
757
- $gl-button-danger-secondary-background-color-default: rgba(236, 89, 65, 0.40); // Used for the background of an outlined danger (destructive) button in the default state.
758
- $gl-button-danger-secondary-background-color-hover: rgba(236, 89, 65, 0.64); // Used for the background of an outlined danger (destructive) button in the hover state.
759
- $gl-button-danger-secondary-background-color-active: rgba(236, 89, 65, 0.32); // Used for the background of an outlined danger (destructive) button in the active state.
768
+ $gl-button-danger-secondary-background-color-focus: $gl-button-danger-secondary-background-color-hover; // Used for the background of an outlined danger (destructive) button in the focus state.
760
769
  $gl-button-danger-secondary-border-color-default: $gl-color-alpha-0; // Used for the border of an outlined danger (destructive) button in the default state.
761
770
  $gl-button-danger-secondary-border-color-hover: $gl-color-alpha-0; // Used for the border of an outlined danger (destructive) button in the hover state.
762
771
  $gl-button-danger-secondary-border-color-active: $gl-color-alpha-0; // Used for the border of an outlined danger (destructive) button in the active state.
@@ -765,12 +774,18 @@ $gl-button-danger-tertiary-background-color-hover: $gl-action-danger-background-
765
774
  $gl-button-danger-tertiary-background-color-active: $gl-action-danger-background-color-active; // Used for the background of a borderless, tertiary danger (destructive) button in the active state.
766
775
  $gl-button-dashed-border-color-default: $gl-color-neutral-400; // Used for the border of a dashed button in the default state.
767
776
  $gl-button-dashed-border-color-active: $gl-color-neutral-300; // Used for the border of a dashed button in the active state.
777
+ $gl-button-selected-foreground-color-default: $gl-color-neutral-900; // Used for the foreground of a selected button in the default state.
778
+ $gl-button-selected-foreground-color-hover: $gl-color-neutral-950; // Used for the foreground of a selected button in the hover state.
779
+ $gl-button-selected-foreground-color-focus: $gl-color-neutral-950; // Used for the foreground of a selected button in the focus state.
780
+ $gl-button-selected-foreground-color-active: $gl-color-neutral-950; // Used for the foreground of a selected button in the active state.
768
781
  $gl-button-selected-background-color-default: $gl-color-neutral-300; // Used for the background of a selected button in the default state.
782
+ $gl-button-selected-background-color-hover: $gl-color-neutral-200; // Used for the background of a selected button in the hover state.
783
+ $gl-button-selected-background-color-focus: $gl-color-neutral-200; // Used for the background of a selected button in the focus state.
784
+ $gl-button-selected-background-color-active: $gl-color-neutral-400; // Used for the background of a selected button in the active state.
769
785
  $gl-button-selected-border-color-default: $gl-color-alpha-0; // Used for the border of a selected button in the default state.
770
786
  $gl-button-selected-border-color-hover: $gl-color-alpha-0; // Used for the border of a selected button in the hover state.
771
787
  $gl-button-selected-border-color-active: $gl-color-alpha-0; // Used for the border of a selected button in the active state.
772
788
  $gl-button-disabled-foreground-color: $gl-color-neutral-400; // Used for the foreground of a disabled button.
773
- $gl-button-disabled-background-color: rgba(137, 136, 141, 0.16); // Used for the background of a disabled button.
774
789
  $gl-button-disabled-border-color: $gl-color-alpha-0; // Used for the border of a disabled button.
775
790
  $gl-button-count-background-color: $gl-color-alpha-light-16; // Used for the background of a button count element.
776
791
  $gl-chart-axis-line-color: $gl-color-neutral-700; // Used in charts for axis line color.
@@ -845,6 +860,9 @@ $gl-action-strong-neutral-background-color-default: $gl-color-neutral-700; // Us
845
860
  $gl-action-strong-neutral-background-color-hover: $gl-color-neutral-600; // Used for the background of a strong neutral action in the hover state.
846
861
  $gl-action-strong-neutral-background-color-active: $gl-color-neutral-500; // Used for the background of a strong neutral action in the active state.
847
862
  $gl-action-strong-neutral-foreground-color-default: $gl-color-neutral-50; // Used for the foreground of a strong neutral action in the default state.
863
+ $gl-action-strong-neutral-foreground-color-hover: $gl-color-neutral-0; // Used for the foreground of a strong neutral action in the hover state.
864
+ $gl-action-strong-neutral-foreground-color-focus: $gl-color-neutral-0; // Used for the foreground of a strong neutral action in the focus state.
865
+ $gl-action-strong-neutral-foreground-color-active: $gl-color-neutral-0; // Used for the foreground of a strong neutral action in the active state.
848
866
  $gl-action-strong-neutral-border-color-default: $gl-color-alpha-0; // Used for the border of a strong neutral action in the default state.
849
867
  $gl-background-color-default: $gl-color-neutral-950; // Used for the default background color.
850
868
  $gl-background-color-subtle: $gl-color-neutral-900; // Used to slightly differentiate the background from the default.
@@ -852,7 +870,6 @@ $gl-background-color-strong: $gl-color-neutral-800; // Used to make the backgrou
852
870
  $gl-background-color-disabled: $gl-color-neutral-900; // Used to identify a disabled section.
853
871
  $gl-background-color-overlap: $gl-color-neutral-900; // Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content.
854
872
  $gl-background-color-section: $gl-color-neutral-800; // Used for containers, like a card header, that are visually distinct from the default page background only when necessary to maintain affordance and hierarchy in different modes.
855
- $gl-background-color-overlay: rgba(0,0,0,0.64); // Used for an overlay that covers other content.
856
873
  $gl-control-background-color-default: $gl-color-alpha-dark-40; // Used for form control (input, radio button, checkbox, textarea) default background.
857
874
  $gl-control-background-color-disabled: $gl-color-alpha-light-4; // Used for disabled form control (checkbox, input, radio button, textarea) background.
858
875
  $gl-control-background-color-concatenation: $gl-color-alpha-light-4; // Used for the background of static content that prepends or appends a text input.
@@ -929,14 +946,10 @@ $gl-shadow-md: 0 0 1px $gl-shadow-color-default, 0 0 2px $gl-shadow-color-defaul
929
946
  $gl-shadow-lg: 0 0 2px $gl-shadow-color-default, 0 0 2px $gl-shadow-color-default, 0 4px 12px $gl-shadow-color-default; // Used for large surfaces that present additional context to the user.
930
947
  $gl-alert-border-radius: $gl-border-radius-lg; // Used for alert border radius.
931
948
  $gl-alert-neutral-title-color: $gl-text-color-heading; // Used for the title color of a neutral alert.
932
- $gl-alert-neutral-background-color: $gl-feedback-neutral-background-color; // Used for the background color of a neutral alert.
933
- $gl-alert-info-title-color: $gl-color-blue-300; // Used for the title color of an info alert.
949
+ $gl-alert-neutral-background-color: $gl-background-color-subtle; // Used for the background color of a neutral alert.
934
950
  $gl-alert-info-background-color: $gl-background-color-subtle; // Used for the background color of an info alert.
935
- $gl-alert-success-title-color: $gl-color-green-300; // Used for the title color of a success alert.
936
951
  $gl-alert-success-background-color: $gl-background-color-subtle; // Used for the background color of a success alert.
937
- $gl-alert-warning-title-color: $gl-color-orange-300; // Used for the title color of a warning alert.
938
952
  $gl-alert-warning-background-color: $gl-background-color-subtle; // Used for the background color of a warning alert.
939
- $gl-alert-danger-title-color: $gl-color-red-300; // Used for the title color of a danger alert.
940
953
  $gl-alert-danger-background-color: $gl-background-color-subtle; // Used for the background color of a danger alert.
941
954
  $gl-badge-muted-background-color-hover: $gl-badge-muted-background-color-default; // Used for the background of a muted badge in the hover state.
942
955
  $gl-badge-muted-text-color-focus: $gl-badge-muted-text-color-hover; // Used for the text of a muted badge in the focus state.
@@ -962,7 +975,6 @@ $gl-badge-tier-icon-color-focus: $gl-badge-tier-icon-color-hover; // Used for th
962
975
  $gl-button-default-primary-foreground-color-hover: $gl-button-default-primary-foreground-color-default; // Used for the foreground of a default primary button in the hover state.
963
976
  $gl-button-default-primary-foreground-color-focus: $gl-button-default-primary-foreground-color-default; // Used for the foreground of a default primary button in the focus state.
964
977
  $gl-button-default-primary-foreground-color-active: $gl-button-default-primary-foreground-color-default; // Used for the foreground of a default primary button in the active state.
965
- $gl-button-default-primary-background-color-focus: $gl-button-default-primary-background-color-hover; // Used for the background of an default primary button in the focus state.
966
978
  $gl-button-default-primary-border-color-focus: $gl-button-default-primary-border-color-hover; // Used for the border of an default primary button in the focus state.
967
979
  $gl-button-default-tertiary-foreground-color-default: $gl-action-neutral-foreground-color-default; // Used for the foreground of a default borderless, tertiary button in the default state.
968
980
  $gl-button-default-tertiary-background-color-focus: $gl-action-neutral-background-color-focus; // Used for the background of a default borderless, tertiary button in the focus state.
@@ -972,7 +984,6 @@ $gl-button-confirm-primary-background-color-hover: $gl-action-strong-confirm-bac
972
984
  $gl-button-confirm-primary-background-color-active: $gl-action-strong-confirm-background-color-active; // Used for the background of a confirm (positive) primary button in the active state.
973
985
  $gl-button-confirm-primary-border-color-focus: $gl-button-confirm-primary-border-color-hover; // Used for the border of a confirm (positive) primary button in the focus state.
974
986
  $gl-button-confirm-secondary-foreground-color-focus: $gl-button-confirm-secondary-foreground-color-hover; // Used for the foreground of a confirm (positive) button in the focus state.
975
- $gl-button-confirm-secondary-background-color-focus: $gl-button-confirm-secondary-background-color-hover; // Used for the background of an outlined confirm (positive) button in the focus state.
976
987
  $gl-button-confirm-secondary-border-color-focus: $gl-button-confirm-secondary-border-color-hover; // Used for the border of an outlined confirm (positive) button in the focus state.
977
988
  $gl-button-confirm-tertiary-foreground-color-default: $gl-action-confirm-foreground-color-default; // Used for the foreground of a borderless, tertiary confirm (positive) button in the default state.
978
989
  $gl-button-confirm-tertiary-foreground-color-hover: $gl-action-confirm-foreground-color-hover; // Used for the foreground of a borderless, tertiary confirm (positive) button in the hover state.
@@ -985,7 +996,6 @@ $gl-button-danger-primary-foreground-color-active: $gl-button-danger-primary-for
985
996
  $gl-button-danger-primary-background-color-focus: $gl-button-danger-primary-background-color-hover; // Used for the background of a danger (destructive) primary button in the focus state.
986
997
  $gl-button-danger-primary-border-color-focus: $gl-button-danger-primary-border-color-hover; // Used for the border of a danger (destructive) primary button in the focus state.
987
998
  $gl-button-danger-secondary-foreground-color-focus: $gl-button-danger-secondary-foreground-color-hover; // Used for the foreground of a danger (destructive) button in the focus state.
988
- $gl-button-danger-secondary-background-color-focus: $gl-button-danger-secondary-background-color-hover; // Used for the background of an outlined danger (destructive) button in the focus state.
989
999
  $gl-button-danger-secondary-border-color-focus: $gl-button-danger-secondary-border-color-hover; // Used for the border of an outlined danger (destructive) button in the focus state.
990
1000
  $gl-button-danger-tertiary-foreground-color-default: $gl-action-danger-foreground-color-default; // Used for the foreground of a borderless, tertiary danger (destructive) button in the default state.
991
1001
  $gl-button-danger-tertiary-foreground-color-hover: $gl-action-danger-foreground-color-hover; // Used for the foreground of a borderless, tertiary danger (destructive) button in the hover state.
@@ -995,9 +1005,6 @@ $gl-button-danger-tertiary-border-color-default: $gl-action-danger-border-color-
995
1005
  $gl-button-dashed-border-color-hover: $gl-button-dashed-border-color-default; // Used for the border of a dashed button in the hover state.
996
1006
  $gl-button-dashed-border-color-focus: $gl-button-dashed-border-color-default; // Used for the border of a dashed button in the focus state.
997
1007
  $gl-button-link-text-color-default: $gl-text-color-link; // Used for the text of a link button in the default state.
998
- $gl-button-selected-foreground-color-default: $gl-color-neutral-900; // Used for the foreground of a selected button in the default state.
999
- $gl-button-selected-background-color-hover: $gl-color-neutral-200; // Used for the background of a selected button in the hover state.
1000
- $gl-button-selected-background-color-active: $gl-color-neutral-400; // Used for the background of a selected button in the active state.
1001
1008
  $gl-button-selected-border-color-focus: $gl-button-selected-border-color-hover; // Used for the border of a selected button in the focus state.
1002
1009
  $gl-chart-axis-text-color: $gl-text-color-subtle; // Used in charts for the text color of axis titles and labels.
1003
1010
  $gl-datepicker-date-text-color-selected: $gl-control-indicator-color-selected; // Used for the datepicker date text color state indicators.
@@ -1050,7 +1057,6 @@ $gl-action-strong-confirm-background-color-focus: $gl-action-strong-confirm-back
1050
1057
  $gl-action-strong-confirm-foreground-color-hover: $gl-action-strong-confirm-foreground-color-default; // Used for the foreground of a strong confirm action in the hover state.
1051
1058
  $gl-action-strong-confirm-border-color-hover: $gl-action-strong-confirm-border-color-default; // Used for the border of a strong confirm action in the hover state.
1052
1059
  $gl-action-strong-neutral-background-color-focus: $gl-action-strong-neutral-background-color-hover; // Used for the background of a strong neutral action in the focus state.
1053
- $gl-action-strong-neutral-foreground-color-hover: $gl-color-neutral-0; // Used for the foreground of a strong neutral action in the hover state.
1054
1060
  $gl-action-strong-neutral-border-color-hover: $gl-action-strong-neutral-border-color-default; // Used for the border of a strong neutral action in the hover state.
1055
1061
  $gl-control-text-color-error: $gl-text-color-danger; // Used for the helper text when the input is invalid.
1056
1062
  $gl-control-text-color-valid: $gl-text-color-success; // Used for the helper text when the input is valid.
@@ -1092,10 +1098,6 @@ $gl-button-danger-tertiary-border-color-active: $gl-action-danger-border-color-a
1092
1098
  $gl-button-link-text-color-hover: $gl-button-link-text-color-default; // Used for the text of a link button in the hover state.
1093
1099
  $gl-button-link-text-color-focus: $gl-button-link-text-color-default; // Used for the text of a link button in the focus state.
1094
1100
  $gl-button-link-text-color-active: $gl-button-link-text-color-default; // Used for the text of a link button in the active state.
1095
- $gl-button-selected-foreground-color-hover: $gl-color-neutral-950; // Used for the foreground of a selected button in the hover state.
1096
- $gl-button-selected-foreground-color-focus: $gl-color-neutral-950; // Used for the foreground of a selected button in the focus state.
1097
- $gl-button-selected-foreground-color-active: $gl-color-neutral-950; // Used for the foreground of a selected button in the active state.
1098
- $gl-button-selected-background-color-focus: $gl-color-neutral-200; // Used for the background of a selected button in the focus state.
1099
1101
  $gl-card-border-radius: $gl-border-radius-default; // Used for card border radius.
1100
1102
  $gl-chart-axis-pointer-color: $gl-icon-color-subtle; // Used in charts for the color of the reference line and axis value under mouse pointer.
1101
1103
  $gl-chart-zoom-handle-color: $gl-icon-color-subtle; // Used in charts for the handle color when zooming in on a specific area of data.
@@ -1110,7 +1112,6 @@ $gl-action-selected-foreground-color-focus: $gl-action-selected-foreground-color
1110
1112
  $gl-action-selected-border-color-focus: $gl-action-selected-background-color-focus; // Used for the border of a selected action in the focus state.
1111
1113
  $gl-action-strong-confirm-foreground-color-focus: $gl-action-strong-confirm-foreground-color-hover; // Used for the foreground of a strong confirm action in the focus state.
1112
1114
  $gl-action-strong-confirm-border-color-focus: $gl-action-strong-confirm-border-color-hover; // Used for the border of a strong confirm action in the focus state.
1113
- $gl-action-strong-neutral-foreground-color-focus: $gl-action-strong-neutral-foreground-color-hover; // Used for the foreground of a strong neutral action in the focus state.
1114
1115
  $gl-action-strong-neutral-border-color-focus: $gl-action-strong-neutral-border-color-hover; // Used for the border of a strong neutral action in the focus state.
1115
1116
  $gl-control-border-radius: $gl-border-radius-default; // Used for form control (input, radio button, checkbox, textarea) default border radius.
1116
1117
  $gl-button-border-radius: $gl-action-border-radius; // Used for button border radius.
@@ -1118,6 +1119,5 @@ $gl-button-confirm-primary-foreground-color-focus: $gl-action-strong-confirm-for
1118
1119
  $gl-action-selected-foreground-color-active: $gl-action-selected-foreground-color-focus; // Used for the foreground of a selected action in the active state.
1119
1120
  $gl-action-strong-confirm-foreground-color-active: $gl-action-strong-confirm-foreground-color-focus; // Used for the foreground of a strong confirm action in the active state.
1120
1121
  $gl-action-strong-confirm-border-color-active: $gl-action-strong-confirm-border-color-focus; // Used for the border of a strong confirm action in the active state.
1121
- $gl-action-strong-neutral-foreground-color-active: $gl-action-strong-neutral-foreground-color-focus; // Used for the foreground of a strong neutral action in the active state.
1122
1122
  $gl-action-strong-neutral-border-color-active: $gl-action-strong-neutral-border-color-focus; // Used for the border of a strong neutral action in the active state.
1123
1123
  $gl-button-confirm-primary-foreground-color-active: $gl-action-strong-confirm-foreground-color-active; // Used for the foreground of a confirm (positive) primary button in the active state.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "123.6.0",
3
+ "version": "123.7.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -142,9 +142,9 @@
142
142
  "glob": "11.0.3",
143
143
  "globby": "^14.1.0",
144
144
  "identity-obj-proxy": "^3.0.0",
145
- "jest": "30.0.5",
146
- "jest-circus": "30.0.5",
147
- "jest-environment-jsdom": "30.0.5",
145
+ "jest": "30.2.0",
146
+ "jest-circus": "30.2.0",
147
+ "jest-environment-jsdom": "30.2.0",
148
148
  "jest-image-snapshot": "^6.5.1",
149
149
  "merge-cobertura": "^1.0.4",
150
150
  "mockdate": "^3.0.5",
@@ -169,9 +169,9 @@
169
169
  "start-server-and-test": "^2.1.2",
170
170
  "storybook": "^7.6.20",
171
171
  "storybook-dark-mode": "4.0.2",
172
- "style-dictionary": "^5.0.4",
172
+ "style-dictionary": "^5.1.0",
173
173
  "style-loader": "^4",
174
- "tailwindcss": "3.4.17",
174
+ "tailwindcss": "3.4.18",
175
175
  "vue": "2.7.16",
176
176
  "vue-docgen-loader": "1.5.1",
177
177
  "vue-loader": "^15.11.1",
@@ -70,7 +70,7 @@ export default {
70
70
  }
71
71
 
72
72
  // eslint-disable-next-line no-underscore-dangle
73
- const isOk = Array.isArray(value) && value.every(({ token }) => token.__v_skip);
73
+ const isOk = Array.isArray(value) && value.every(({ token }) => !token || token.__v_skip);
74
74
  if (!isOk) {
75
75
  // eslint-disable-next-line no-console
76
76
  console.warn(
@@ -55,14 +55,12 @@ export default {
55
55
 
56
56
  <template>
57
57
  <li
58
- role="presentation"
59
58
  class="gl-dropdown-item gl-filtered-search-suggestion"
60
59
  :class="{ 'gl-filtered-search-suggestion-active': isActive }"
61
60
  >
62
61
  <button
63
62
  data-testid="filtered-search-suggestion"
64
63
  tabindex="-1"
65
- role="menuitem"
66
64
  class="dropdown-item"
67
65
  @mousedown.prevent="emitValue"
68
66
  >
@@ -97,6 +97,7 @@ export default {
97
97
  ) {
98
98
  // The user wants to move past the end of the list, so ensure nothing is selected.
99
99
  this.activeIdx = NO_ACTIVE_ITEM;
100
+ this.$refs.top.scrollIntoView();
100
101
  } else {
101
102
  const index =
102
103
  this.activeIdx === DEFER_TO_INITIAL_VALUE
@@ -116,6 +117,7 @@ export default {
116
117
  </script>
117
118
  <template>
118
119
  <ul :class="listClasses">
120
+ <li ref="top"></li>
119
121
  <!-- @slot The suggestions (implemented with GlFilteredSearchSuggestion). -->
120
122
  <slot></slot>
121
123
  </ul>
@@ -104,7 +104,18 @@ export default {
104
104
  return [];
105
105
  }
106
106
 
107
- const tokens = this.availableTokens.filter((token) => match(token.title, this.value.data));
107
+ const tokens = this.availableTokens.filter((token) => {
108
+ if (typeof token.match === 'function') {
109
+ return token.match.call(null, {
110
+ query: this.value.data,
111
+ title: token.title,
112
+ defaultMatcher: match,
113
+ });
114
+ }
115
+
116
+ return match(token.title, this.value.data);
117
+ });
118
+
108
119
  if (this.termsAsTokens() && this.value.data) {
109
120
  tokens.push({
110
121
  ...termTokenDefinition,
@@ -344,7 +344,7 @@ export default {
344
344
 
345
345
  <gl-filtered-search-token-segment
346
346
  key="title-segment"
347
- :value="config.title"
347
+ :value="config.segmentTitle || config.title"
348
348
  :active="isSegmentActive($options.segments.SEGMENT_TITLE)"
349
349
  :cursor-position="intendedCursorPosition"
350
350
  :options="availableTokensWithSelf"
@@ -330,6 +330,10 @@ export default {
330
330
  }
331
331
  },
332
332
 
333
+ showHeader(option) {
334
+ return option.value?.toString().startsWith('gl-filtered-search-suggestion-group-');
335
+ },
336
+
333
337
  handleInputKeydown(e) {
334
338
  const { key } = e;
335
339
  const { suggestions, input } = this.$refs;
@@ -450,25 +454,42 @@ export default {
450
454
  v-if="hasOptionsOrSuggestions"
451
455
  :key="`operator-${_uid}`"
452
456
  ref="suggestions"
457
+ role="list"
458
+ tabindex="0"
453
459
  :initial-value="defaultSuggestedValue"
454
460
  @suggestion="applySuggestion"
455
461
  >
456
462
  <template v-if="options">
457
- <gl-filtered-search-suggestion
458
- v-for="(option, idx) in options"
459
- :key="`${option.value}-${idx}`"
460
- :value="option.value"
461
- :icon-name="option.icon"
462
- >
463
- <slot name="option" v-bind="{ option }">
464
- <template v-if="option.component">
465
- <component :is="option.component" :option="option" />
466
- </template>
467
- <template v-else>
468
- {{ option[optionTextField] }}
469
- </template>
470
- </slot>
471
- </gl-filtered-search-suggestion>
463
+ <template v-for="(option, idx) in options">
464
+ <template v-if="showHeader(option)">
465
+ <li v-if="idx > 0" :key="`separator-${idx}`">
466
+ <hr class="gl-border-t -gl-mx-2 gl-my-2" />
467
+ </li>
468
+ <li
469
+ :key="`header-${idx}`"
470
+ role="presentation"
471
+ data-testid="filtered-search-section-header"
472
+ class="gl-mx-0 gl-pb-2 gl-pl-5 gl-pt-3 gl-text-sm gl-font-bold gl-text-strong"
473
+ >
474
+ {{ option.title }}
475
+ </li>
476
+ </template>
477
+ <gl-filtered-search-suggestion
478
+ v-else
479
+ :key="`${option.value}-${idx}`"
480
+ :value="option.value"
481
+ :icon-name="option.icon"
482
+ >
483
+ <slot name="option" v-bind="{ option }">
484
+ <template v-if="option.component">
485
+ <component :is="option.component" :option="option" />
486
+ </template>
487
+ <template v-else>
488
+ {{ option[optionTextField] }}
489
+ </template>
490
+ </slot>
491
+ </gl-filtered-search-suggestion>
492
+ </template>
472
493
  </template>
473
494
 
474
495
  <slot v-else name="suggestions"></slot>
@@ -28,6 +28,11 @@ export default {
28
28
  required: false,
29
29
  default: '',
30
30
  },
31
+ selectSize: {
32
+ type: Number,
33
+ required: false,
34
+ default: 1,
35
+ },
31
36
  },
32
37
  computed: {
33
38
  cssClasses() {
@@ -56,7 +61,13 @@ export default {
56
61
  </script>
57
62
  <template>
58
63
  <span class="gl-form-select-wrapper" :class="cssClasses">
59
- <b-form-select class="gl-form-select" v-bind="$attrs" :class="selectClass" v-on="$listeners">
64
+ <b-form-select
65
+ class="gl-form-select"
66
+ v-bind="$attrs"
67
+ :class="selectClass"
68
+ :select-size="selectSize"
69
+ v-on="$listeners"
70
+ >
60
71
  <!-- eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots -->
61
72
  <template v-for="slot in Object.keys($slots)" #[slot]>
62
73
  <slot :name="slot"></slot>
@@ -9,7 +9,7 @@ import { badgeTypeValidator } from './constants';
9
9
  export const i18n = {
10
10
  experiment: {
11
11
  BADGE: 'Experiment',
12
- HELP_PAGE_URL: 'https://docs.gitlab.com/ee/policy/development_stages_support.html#experiment',
12
+ HELP_PAGE_URL: 'https://docs.gitlab.com/policy/development_stages_support/#experiment',
13
13
  POPOVER_TITLE: "What's an experiment?",
14
14
  POPOVER_CONTENT:
15
15
  'An %{linkStart}experiment%{linkEnd} is not yet production-ready, but is released for initial testing and feedback during development.%{line-breakStart}Experiments:%{line-breakEnd} %{bullets}',
@@ -21,7 +21,7 @@ export const i18n = {
21
21
  },
22
22
  beta: {
23
23
  BADGE: 'Beta',
24
- HELP_PAGE_URL: 'https://docs.gitlab.com/ee/policy/development_stages_support.html#beta',
24
+ HELP_PAGE_URL: 'https://docs.gitlab.com/policy/development_stages_support/#beta',
25
25
  POPOVER_TITLE: "What's a beta?",
26
26
  POPOVER_CONTENT:
27
27
  "A %{linkStart}beta%{linkEnd} feature is not yet production-ready, but is ready for testing and unlikely to change significantly before it's released.%{line-breakStart}Beta features:%{line-breakEnd} %{bullets}",