@gitlab/ui 123.6.1 → 123.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/base/filtered_search/filtered_search.js +1 -1
- package/dist/components/base/filtered_search/filtered_search_suggestion.js +1 -1
- package/dist/components/base/filtered_search/filtered_search_suggestion_list.js +2 -1
- package/dist/components/base/filtered_search/filtered_search_term.js +10 -1
- package/dist/components/base/filtered_search/filtered_search_token.js +1 -1
- package/dist/components/base/filtered_search/filtered_search_token_segment.js +5 -1
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/tailwind.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +13 -1
- package/dist/tokens/build/js/tokens.js +13 -1
- package/dist/tokens/css/tokens.css +12 -0
- package/dist/tokens/css/tokens.dark.css +41 -29
- package/dist/tokens/docs/tokens-tailwind-docs.dark.json +1759 -4206
- package/dist/tokens/docs/tokens-tailwind-docs.json +1759 -4206
- package/dist/tokens/figma/constants.tokens.json +376 -72
- package/dist/tokens/figma/semantic.tokens.json +13 -0
- package/dist/tokens/js/tokens.dark.js +39 -0
- package/dist/tokens/js/tokens.js +39 -0
- package/dist/tokens/json/tokens.dark.json +986 -2102
- package/dist/tokens/json/tokens.json +986 -2102
- package/dist/tokens/scss/_tokens.dark.scss +41 -29
- package/dist/tokens/scss/_tokens.scss +12 -0
- package/dist/tokens/scss/_tokens_custom_properties.scss +12 -0
- package/dist/tokens/tailwind/tokens.cjs +8 -0
- package/package.json +2 -2
- package/src/components/base/filtered_search/filtered_search.vue +1 -1
- package/src/components/base/filtered_search/filtered_search_suggestion.vue +0 -2
- package/src/components/base/filtered_search/filtered_search_suggestion_list.vue +2 -0
- package/src/components/base/filtered_search/filtered_search_term.vue +12 -1
- package/src/components/base/filtered_search/filtered_search_token.vue +1 -1
- package/src/components/base/filtered_search/filtered_search_token_segment.vue +36 -15
- package/src/scss/variables.scss +0 -3
- package/src/tokens/build/css/tokens.css +12 -0
- package/src/tokens/build/css/tokens.dark.css +41 -29
- package/src/tokens/build/docs/tokens-tailwind-docs.dark.json +1759 -4206
- package/src/tokens/build/docs/tokens-tailwind-docs.json +1759 -4206
- package/src/tokens/build/figma/constants.tokens.json +376 -72
- package/src/tokens/build/figma/semantic.tokens.json +13 -0
- package/src/tokens/build/js/tokens.dark.js +39 -0
- package/src/tokens/build/js/tokens.js +39 -0
- package/src/tokens/build/json/tokens.dark.json +986 -2102
- package/src/tokens/build/json/tokens.json +986 -2102
- package/src/tokens/build/scss/_tokens.dark.scss +41 -29
- package/src/tokens/build/scss/_tokens.scss +12 -0
- package/src/tokens/build/scss/_tokens_custom_properties.scss +12 -0
- package/src/tokens/build/tailwind/tokens.cjs +34 -0
- package/src/tokens/constant/border.tokens.json +4 -10
- package/src/tokens/constant/font.tokens.json +136 -0
- package/src/tokens/constant/line_height.tokens.json +70 -20
- package/src/tokens/constant/shadow.tokens.json +44 -11
- package/src/tokens/constant/spacing_scale.tokens.json +124 -31
- package/src/tokens/semantic/font.tokens.json +15 -0
- package/tailwind.defaults.js +8 -21
|
@@ -228,6 +228,17 @@ $gl-color-brand-gray-03: #74717a;
|
|
|
228
228
|
$gl-color-brand-gray-04: #45424d;
|
|
229
229
|
$gl-color-brand-gray-05: #2b2838;
|
|
230
230
|
$gl-color-brand-pink-01g: #ffb9c9;
|
|
231
|
+
$gl-font-family-regular: var(--default-regular-font, 'GitLab Sans'),-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Noto Sans',Ubuntu,Cantarell,'Helvetica Neue',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji';
|
|
232
|
+
$gl-font-family-monospace: var(--default-mono-font, 'GitLab Mono'),'JetBrains Mono',Menlo,'DejaVu Sans Mono','Liberation Mono',Consolas,'Ubuntu Mono','Courier New','andale mono','lucida console',monospace;
|
|
233
|
+
$gl-font-size-xs: 0.625rem;
|
|
234
|
+
$gl-font-size-sm: 0.75rem;
|
|
235
|
+
$gl-font-size-md: 0.875rem;
|
|
236
|
+
$gl-font-size-lg: 1rem;
|
|
237
|
+
$gl-font-weight-100: 100;
|
|
238
|
+
$gl-font-weight-300: 300;
|
|
239
|
+
$gl-font-weight-normal: 400;
|
|
240
|
+
$gl-font-weight-semibold: 500;
|
|
241
|
+
$gl-font-weight-bold: 600;
|
|
231
242
|
$gl-line-height-12: 0.75rem;
|
|
232
243
|
$gl-line-height-16: 1rem;
|
|
233
244
|
$gl-line-height-20: 1.25rem;
|
|
@@ -294,6 +305,16 @@ $gl-avatar-fallback-background-color-blue: #9dc7f13d; // Blue background for ava
|
|
|
294
305
|
$gl-avatar-fallback-background-color-green: #91d4a83d; // Green background for avatar fallback with no particular meaning.
|
|
295
306
|
$gl-avatar-fallback-background-color-orange: #e9be743d; // Orange background for avatar fallback with no particular meaning.
|
|
296
307
|
$gl-avatar-fallback-background-color-neutral: #bfbfc33d; // Neutral background for avatar fallback with no particular meaning.
|
|
308
|
+
$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.
|
|
309
|
+
$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.
|
|
310
|
+
$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.
|
|
311
|
+
$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.
|
|
312
|
+
$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.
|
|
313
|
+
$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.
|
|
314
|
+
$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.
|
|
315
|
+
$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.
|
|
316
|
+
$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.
|
|
317
|
+
$gl-button-disabled-background-color: rgba(137, 136, 141, 0.16); // Used for the background of a disabled button.
|
|
297
318
|
$gl-chart-threshold-area-color: rgba(221,43,14,0.1); // Used in charts to delineate a threshold area in a chart.
|
|
298
319
|
$gl-illustration-stroke-color-default: #e3e3e8; // Default stroke color to define shape and provide essential detail.
|
|
299
320
|
$gl-illustration-stroke-width-default: 1.5; // Default stroke width to define shape and provide essential detail.
|
|
@@ -556,6 +577,7 @@ $gl-action-confirm-background-color-active: rgba(66, 143, 220, 0.16); // Used fo
|
|
|
556
577
|
$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
578
|
$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
579
|
$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.
|
|
580
|
+
$gl-background-color-overlay: rgba(0,0,0,0.64); // Used for an overlay that covers other content.
|
|
559
581
|
$gl-text-primary: #ececef; // Use text.color.default instead.
|
|
560
582
|
$gl-text-secondary: #89888d; // Use text.color.subtle instead.
|
|
561
583
|
$gl-text-tertiary: #737278; // Use text.color.disabled instead.
|
|
@@ -571,15 +593,20 @@ $gl-border-color-default: $gl-color-neutral-700; // Used for the default border
|
|
|
571
593
|
$gl-border-color-subtle: $gl-color-neutral-800; // Used for a subtle border in combination with the default background.
|
|
572
594
|
$gl-border-color-strong: $gl-color-neutral-600; // Used for a distinct border that emphasizes an edge or boundaries.
|
|
573
595
|
$gl-border-color-transparent: $gl-color-alpha-0; // Used when a border needs to be present, but not visibly perceived.
|
|
596
|
+
$gl-font-size-base: $gl-font-size-md;
|
|
574
597
|
$gl-shadow-color-default: $gl-color-alpha-dark-40; // Used for the default shadow color.
|
|
575
598
|
$gl-alert-neutral-border-top-color: $gl-color-neutral-400; // Used for the border center color of a neutral alert.
|
|
576
599
|
$gl-alert-neutral-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of a neutral alert.
|
|
600
|
+
$gl-alert-info-title-color: $gl-color-blue-300; // Used for the title color of an info alert.
|
|
577
601
|
$gl-alert-info-border-top-color: $gl-color-blue-400; // Used for the border color of an info alert.
|
|
578
602
|
$gl-alert-info-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of an info alert.
|
|
603
|
+
$gl-alert-success-title-color: $gl-color-green-300; // Used for the title color of a success alert.
|
|
579
604
|
$gl-alert-success-border-top-color: $gl-color-green-400; // Used for the border color of a success alert.
|
|
580
605
|
$gl-alert-success-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of a success alert.
|
|
606
|
+
$gl-alert-warning-title-color: $gl-color-orange-300; // Used for the title color of a warning alert.
|
|
581
607
|
$gl-alert-warning-border-top-color: $gl-color-orange-400; // Used for the border color of a warning alert.
|
|
582
608
|
$gl-alert-warning-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of a warning alert.
|
|
609
|
+
$gl-alert-danger-title-color: $gl-color-red-300; // Used for the title color of a danger alert.
|
|
583
610
|
$gl-alert-danger-border-top-color: $gl-color-red-400; // Used for the border color of a danger alert.
|
|
584
611
|
$gl-alert-danger-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of a danger alert.
|
|
585
612
|
$gl-avatar-border-color-default: $gl-color-alpha-light-8; // Used to define the edge of an avatar.
|
|
@@ -719,9 +746,7 @@ $gl-broadcast-banner-text-color-lightindigo: $gl-color-neutral-0; // Used for th
|
|
|
719
746
|
$gl-broadcast-banner-text-color-lightred: $gl-color-neutral-0; // Used for the text for the lightred banner type.
|
|
720
747
|
$gl-broadcast-banner-text-color-red: $gl-color-neutral-0; // Used for the text for the red banner type.
|
|
721
748
|
$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-
|
|
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.
|
|
749
|
+
$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
750
|
$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
751
|
$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
752
|
$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 +760,7 @@ $gl-button-confirm-primary-border-color-active: $gl-color-alpha-0; // Used for t
|
|
|
735
760
|
$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
761
|
$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
762
|
$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-
|
|
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.
|
|
763
|
+
$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
764
|
$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
765
|
$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
766
|
$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 +777,7 @@ $gl-button-danger-primary-border-color-active: $gl-color-alpha-0; // Used for th
|
|
|
754
777
|
$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
778
|
$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
779
|
$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-
|
|
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.
|
|
780
|
+
$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
781
|
$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
782
|
$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
783
|
$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 +786,18 @@ $gl-button-danger-tertiary-background-color-hover: $gl-action-danger-background-
|
|
|
765
786
|
$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
787
|
$gl-button-dashed-border-color-default: $gl-color-neutral-400; // Used for the border of a dashed button in the default state.
|
|
767
788
|
$gl-button-dashed-border-color-active: $gl-color-neutral-300; // Used for the border of a dashed button in the active state.
|
|
789
|
+
$gl-button-selected-foreground-color-default: $gl-color-neutral-900; // Used for the foreground of a selected button in the default state.
|
|
790
|
+
$gl-button-selected-foreground-color-hover: $gl-color-neutral-950; // Used for the foreground of a selected button in the hover state.
|
|
791
|
+
$gl-button-selected-foreground-color-focus: $gl-color-neutral-950; // Used for the foreground of a selected button in the focus state.
|
|
792
|
+
$gl-button-selected-foreground-color-active: $gl-color-neutral-950; // Used for the foreground of a selected button in the active state.
|
|
768
793
|
$gl-button-selected-background-color-default: $gl-color-neutral-300; // Used for the background of a selected button in the default state.
|
|
794
|
+
$gl-button-selected-background-color-hover: $gl-color-neutral-200; // Used for the background of a selected button in the hover state.
|
|
795
|
+
$gl-button-selected-background-color-focus: $gl-color-neutral-200; // Used for the background of a selected button in the focus state.
|
|
796
|
+
$gl-button-selected-background-color-active: $gl-color-neutral-400; // Used for the background of a selected button in the active state.
|
|
769
797
|
$gl-button-selected-border-color-default: $gl-color-alpha-0; // Used for the border of a selected button in the default state.
|
|
770
798
|
$gl-button-selected-border-color-hover: $gl-color-alpha-0; // Used for the border of a selected button in the hover state.
|
|
771
799
|
$gl-button-selected-border-color-active: $gl-color-alpha-0; // Used for the border of a selected button in the active state.
|
|
772
800
|
$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
801
|
$gl-button-disabled-border-color: $gl-color-alpha-0; // Used for the border of a disabled button.
|
|
775
802
|
$gl-button-count-background-color: $gl-color-alpha-light-16; // Used for the background of a button count element.
|
|
776
803
|
$gl-chart-axis-line-color: $gl-color-neutral-700; // Used in charts for axis line color.
|
|
@@ -845,6 +872,9 @@ $gl-action-strong-neutral-background-color-default: $gl-color-neutral-700; // Us
|
|
|
845
872
|
$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
873
|
$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
874
|
$gl-action-strong-neutral-foreground-color-default: $gl-color-neutral-50; // Used for the foreground of a strong neutral action in the default state.
|
|
875
|
+
$gl-action-strong-neutral-foreground-color-hover: $gl-color-neutral-0; // Used for the foreground of a strong neutral action in the hover state.
|
|
876
|
+
$gl-action-strong-neutral-foreground-color-focus: $gl-color-neutral-0; // Used for the foreground of a strong neutral action in the focus state.
|
|
877
|
+
$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
878
|
$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
879
|
$gl-background-color-default: $gl-color-neutral-950; // Used for the default background color.
|
|
850
880
|
$gl-background-color-subtle: $gl-color-neutral-900; // Used to slightly differentiate the background from the default.
|
|
@@ -852,7 +882,6 @@ $gl-background-color-strong: $gl-color-neutral-800; // Used to make the backgrou
|
|
|
852
882
|
$gl-background-color-disabled: $gl-color-neutral-900; // Used to identify a disabled section.
|
|
853
883
|
$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
884
|
$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
885
|
$gl-control-background-color-default: $gl-color-alpha-dark-40; // Used for form control (input, radio button, checkbox, textarea) default background.
|
|
857
886
|
$gl-control-background-color-disabled: $gl-color-alpha-light-4; // Used for disabled form control (checkbox, input, radio button, textarea) background.
|
|
858
887
|
$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 +958,10 @@ $gl-shadow-md: 0 0 1px $gl-shadow-color-default, 0 0 2px $gl-shadow-color-defaul
|
|
|
929
958
|
$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
959
|
$gl-alert-border-radius: $gl-border-radius-lg; // Used for alert border radius.
|
|
931
960
|
$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-
|
|
933
|
-
$gl-alert-info-title-color: $gl-color-blue-300; // Used for the title color of an info alert.
|
|
961
|
+
$gl-alert-neutral-background-color: $gl-background-color-subtle; // Used for the background color of a neutral alert.
|
|
934
962
|
$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
963
|
$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
964
|
$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
965
|
$gl-alert-danger-background-color: $gl-background-color-subtle; // Used for the background color of a danger alert.
|
|
941
966
|
$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
967
|
$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 +987,6 @@ $gl-badge-tier-icon-color-focus: $gl-badge-tier-icon-color-hover; // Used for th
|
|
|
962
987
|
$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
988
|
$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
989
|
$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
990
|
$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
991
|
$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
992
|
$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 +996,6 @@ $gl-button-confirm-primary-background-color-hover: $gl-action-strong-confirm-bac
|
|
|
972
996
|
$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
997
|
$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
998
|
$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
999
|
$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
1000
|
$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
1001
|
$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 +1008,6 @@ $gl-button-danger-primary-foreground-color-active: $gl-button-danger-primary-for
|
|
|
985
1008
|
$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
1009
|
$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
1010
|
$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
1011
|
$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
1012
|
$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
1013
|
$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 +1017,6 @@ $gl-button-danger-tertiary-border-color-default: $gl-action-danger-border-color-
|
|
|
995
1017
|
$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
1018
|
$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
1019
|
$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
1020
|
$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
1021
|
$gl-chart-axis-text-color: $gl-text-color-subtle; // Used in charts for the text color of axis titles and labels.
|
|
1003
1022
|
$gl-datepicker-date-text-color-selected: $gl-control-indicator-color-selected; // Used for the datepicker date text color state indicators.
|
|
@@ -1050,7 +1069,6 @@ $gl-action-strong-confirm-background-color-focus: $gl-action-strong-confirm-back
|
|
|
1050
1069
|
$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
1070
|
$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
1071
|
$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
1072
|
$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
1073
|
$gl-control-text-color-error: $gl-text-color-danger; // Used for the helper text when the input is invalid.
|
|
1056
1074
|
$gl-control-text-color-valid: $gl-text-color-success; // Used for the helper text when the input is valid.
|
|
@@ -1092,10 +1110,6 @@ $gl-button-danger-tertiary-border-color-active: $gl-action-danger-border-color-a
|
|
|
1092
1110
|
$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
1111
|
$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
1112
|
$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
1113
|
$gl-card-border-radius: $gl-border-radius-default; // Used for card border radius.
|
|
1100
1114
|
$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
1115
|
$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 +1124,6 @@ $gl-action-selected-foreground-color-focus: $gl-action-selected-foreground-color
|
|
|
1110
1124
|
$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
1125
|
$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
1126
|
$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
1127
|
$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
1128
|
$gl-control-border-radius: $gl-border-radius-default; // Used for form control (input, radio button, checkbox, textarea) default border radius.
|
|
1116
1129
|
$gl-button-border-radius: $gl-action-border-radius; // Used for button border radius.
|
|
@@ -1118,6 +1131,5 @@ $gl-button-confirm-primary-foreground-color-focus: $gl-action-strong-confirm-for
|
|
|
1118
1131
|
$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
1132
|
$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
1133
|
$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
1134
|
$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
1135
|
$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.
|
|
@@ -228,6 +228,17 @@ $gl-color-brand-gray-03: #74717a;
|
|
|
228
228
|
$gl-color-brand-gray-04: #45424d;
|
|
229
229
|
$gl-color-brand-gray-05: #2b2838;
|
|
230
230
|
$gl-color-brand-pink-01g: #ffb9c9;
|
|
231
|
+
$gl-font-family-regular: var(--default-regular-font, 'GitLab Sans'),-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Noto Sans',Ubuntu,Cantarell,'Helvetica Neue',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji';
|
|
232
|
+
$gl-font-family-monospace: var(--default-mono-font, 'GitLab Mono'),'JetBrains Mono',Menlo,'DejaVu Sans Mono','Liberation Mono',Consolas,'Ubuntu Mono','Courier New','andale mono','lucida console',monospace;
|
|
233
|
+
$gl-font-size-xs: 0.625rem;
|
|
234
|
+
$gl-font-size-sm: 0.75rem;
|
|
235
|
+
$gl-font-size-md: 0.875rem;
|
|
236
|
+
$gl-font-size-lg: 1rem;
|
|
237
|
+
$gl-font-weight-100: 100;
|
|
238
|
+
$gl-font-weight-300: 300;
|
|
239
|
+
$gl-font-weight-normal: 400;
|
|
240
|
+
$gl-font-weight-semibold: 500;
|
|
241
|
+
$gl-font-weight-bold: 600;
|
|
231
242
|
$gl-line-height-12: 0.75rem;
|
|
232
243
|
$gl-line-height-16: 1rem;
|
|
233
244
|
$gl-line-height-20: 1.25rem;
|
|
@@ -571,6 +582,7 @@ $gl-border-color-default: $gl-color-neutral-100; // Used for the default border
|
|
|
571
582
|
$gl-border-color-subtle: $gl-color-neutral-50; // Used for a subtle border in combination with the default background.
|
|
572
583
|
$gl-border-color-strong: $gl-color-neutral-200; // Used for a distinct border that emphasizes an edge or boundaries.
|
|
573
584
|
$gl-border-color-transparent: $gl-color-alpha-0; // Used when a border needs to be present, but not visibly perceived.
|
|
585
|
+
$gl-font-size-base: $gl-font-size-md;
|
|
574
586
|
$gl-shadow-color-default: $gl-color-alpha-dark-16; // Used for the default shadow color.
|
|
575
587
|
$gl-alert-neutral-border-top-color: $gl-color-alpha-0; // Used for the border center color of a neutral alert.
|
|
576
588
|
$gl-alert-neutral-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of a neutral alert.
|
|
@@ -243,6 +243,18 @@ $gl-color-brand-gray-03: var(--gl-color-brand-gray-03);
|
|
|
243
243
|
$gl-color-brand-gray-04: var(--gl-color-brand-gray-04);
|
|
244
244
|
$gl-color-brand-gray-05: var(--gl-color-brand-gray-05);
|
|
245
245
|
$gl-color-brand-pink-01g: var(--gl-color-brand-pink-01g);
|
|
246
|
+
$gl-font-family-regular: var(--gl-font-family-regular);
|
|
247
|
+
$gl-font-family-monospace: var(--gl-font-family-monospace);
|
|
248
|
+
$gl-font-size-xs: var(--gl-font-size-xs);
|
|
249
|
+
$gl-font-size-sm: var(--gl-font-size-sm);
|
|
250
|
+
$gl-font-size-md: var(--gl-font-size-md);
|
|
251
|
+
$gl-font-size-lg: var(--gl-font-size-lg);
|
|
252
|
+
$gl-font-size-base: var(--gl-font-size-base);
|
|
253
|
+
$gl-font-weight-100: var(--gl-font-weight-100);
|
|
254
|
+
$gl-font-weight-300: var(--gl-font-weight-300);
|
|
255
|
+
$gl-font-weight-normal: var(--gl-font-weight-normal);
|
|
256
|
+
$gl-font-weight-semibold: var(--gl-font-weight-semibold);
|
|
257
|
+
$gl-font-weight-bold: var(--gl-font-weight-bold);
|
|
246
258
|
$gl-line-height-12: var(--gl-line-height-12);
|
|
247
259
|
$gl-line-height-16: var(--gl-line-height-16);
|
|
248
260
|
$gl-line-height-20: var(--gl-line-height-20);
|
|
@@ -25,6 +25,10 @@
|
|
|
25
25
|
const opacity = {"0":"var(--gl-opacity-0)","1":"var(--gl-opacity-1)","2":"var(--gl-opacity-2)","3":"var(--gl-opacity-3)","4":"var(--gl-opacity-4)","5":"var(--gl-opacity-5)","6":"var(--gl-opacity-6)","7":"var(--gl-opacity-7)","8":"var(--gl-opacity-8)","9":"var(--gl-opacity-9)","10":"var(--gl-opacity-10)"};
|
|
26
26
|
const zindexes = {"0":"var(--gl-zindex-0)","1":"var(--gl-zindex-1)","2":"var(--gl-zindex-2)","3":"var(--gl-zindex-3)","4":"var(--gl-zindex-4)","200":"var(--gl-zindex-200)","9999":"var(--gl-zindex-9999)"};
|
|
27
27
|
const boxShadow = {"sm":"var(--gl-shadow-sm)","md":"var(--gl-shadow-md)","lg":"var(--gl-shadow-lg)"};
|
|
28
|
+
const lineHeight = {"12":"var(--gl-line-height-12)","16":"var(--gl-line-height-16)","20":"var(--gl-line-height-20)","24":"var(--gl-line-height-24)","28":"var(--gl-line-height-28)","32":"var(--gl-line-height-32)","36":"var(--gl-line-height-36)","42":"var(--gl-line-height-42)","44":"var(--gl-line-height-44)","52":"var(--gl-line-height-52)"};
|
|
29
|
+
const fontFamily = {"regular":"var(--gl-font-family-regular)","monospace":"var(--gl-font-family-monospace)"};
|
|
30
|
+
const fontSize = {"xs":"var(--gl-font-size-xs)","sm":"var(--gl-font-size-sm)","md":"var(--gl-font-size-md)","lg":"var(--gl-font-size-lg)","base":"var(--gl-font-size-base)"};
|
|
31
|
+
const fontWeight = {"100":"var(--gl-font-weight-100)","300":"var(--gl-font-weight-300)","normal":"var(--gl-font-weight-normal)","semibold":"var(--gl-font-weight-semibold)","bold":"var(--gl-font-weight-bold)"};
|
|
28
32
|
|
|
29
33
|
const colors = {
|
|
30
34
|
inherit: 'inherit',
|
|
@@ -109,5 +113,9 @@
|
|
|
109
113
|
opacity,
|
|
110
114
|
zIndex: zindexes,
|
|
111
115
|
boxShadow,
|
|
116
|
+
lineHeight,
|
|
117
|
+
fontFamily,
|
|
118
|
+
fontSize,
|
|
119
|
+
fontWeight,
|
|
112
120
|
}
|
|
113
121
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "123.
|
|
3
|
+
"version": "123.8.0",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"@gitlab/svgs": "3.147.0",
|
|
105
105
|
"@jest/test-sequencer": "30.2.0",
|
|
106
106
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
107
|
-
"@rollup/plugin-node-resolve": "^16.0.
|
|
107
|
+
"@rollup/plugin-node-resolve": "^16.0.2",
|
|
108
108
|
"@rollup/plugin-replace": "^6.0.2",
|
|
109
109
|
"@storybook/addon-a11y": "^7.6.20",
|
|
110
110
|
"@storybook/addon-docs": "^7.6.20",
|
|
@@ -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) =>
|
|
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
|
-
<
|
|
458
|
-
v-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
{{ option
|
|
469
|
-
</
|
|
470
|
-
</
|
|
471
|
-
|
|
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>
|
package/src/scss/variables.scss
CHANGED
|
@@ -111,9 +111,6 @@ $gl-text-wrap-heading: pretty;
|
|
|
111
111
|
|
|
112
112
|
// default (min-width: 0)
|
|
113
113
|
$gl-font-size: px-to-rem(14px);
|
|
114
|
-
$gl-font-size-xs: px-to-rem(10px);
|
|
115
|
-
$gl-font-size-sm: px-to-rem(12px);
|
|
116
|
-
$gl-font-size-lg: px-to-rem(16px);
|
|
117
114
|
|
|
118
115
|
$gl-font-size-h-display: px-to-rem(28px);
|
|
119
116
|
$gl-font-size-h1: px-to-rem(23px);
|
|
@@ -230,6 +230,17 @@
|
|
|
230
230
|
--gl-color-brand-gray-04: #45424d;
|
|
231
231
|
--gl-color-brand-gray-05: #2b2838;
|
|
232
232
|
--gl-color-brand-pink-01g: #ffb9c9;
|
|
233
|
+
--gl-font-family-regular: var(--default-regular-font, 'GitLab Sans'),-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Noto Sans',Ubuntu,Cantarell,'Helvetica Neue',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji';
|
|
234
|
+
--gl-font-family-monospace: var(--default-mono-font, 'GitLab Mono'),'JetBrains Mono',Menlo,'DejaVu Sans Mono','Liberation Mono',Consolas,'Ubuntu Mono','Courier New','andale mono','lucida console',monospace;
|
|
235
|
+
--gl-font-size-xs: 0.625rem;
|
|
236
|
+
--gl-font-size-sm: 0.75rem;
|
|
237
|
+
--gl-font-size-md: 0.875rem;
|
|
238
|
+
--gl-font-size-lg: 1rem;
|
|
239
|
+
--gl-font-weight-100: 100;
|
|
240
|
+
--gl-font-weight-300: 300;
|
|
241
|
+
--gl-font-weight-normal: 400;
|
|
242
|
+
--gl-font-weight-semibold: 500;
|
|
243
|
+
--gl-font-weight-bold: 600;
|
|
233
244
|
--gl-line-height-12: 0.75rem;
|
|
234
245
|
--gl-line-height-16: 1rem;
|
|
235
246
|
--gl-line-height-20: 1.25rem;
|
|
@@ -573,6 +584,7 @@
|
|
|
573
584
|
--gl-border-color-subtle: var(--gl-color-neutral-50); /** Used for a subtle border in combination with the default background. */
|
|
574
585
|
--gl-border-color-strong: var(--gl-color-neutral-200); /** Used for a distinct border that emphasizes an edge or boundaries. */
|
|
575
586
|
--gl-border-color-transparent: var(--gl-color-alpha-0); /** Used when a border needs to be present, but not visibly perceived. */
|
|
587
|
+
--gl-font-size-base: var(--gl-font-size-md);
|
|
576
588
|
--gl-shadow-color-default: var(--gl-color-alpha-dark-16); /** Used for the default shadow color. */
|
|
577
589
|
--gl-alert-neutral-border-top-color: var(--gl-color-alpha-0); /** Used for the border center color of a neutral alert. */
|
|
578
590
|
--gl-alert-neutral-border-bottom-color: var(--gl-color-alpha-0); /** Used for the border bottom color of a neutral alert. */
|