@gitlab/ui 122.12.1 → 122.14.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/token_selector/token_container.js +6 -1
- package/dist/components/base/token_selector/token_selector.js +5 -28
- package/dist/components/base/token_selector/token_selector_dropdown.js +1 -1
- package/dist/components/dashboards/dashboard_panel/dashboard_panel.js +9 -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 +8 -1
- package/dist/tokens/build/js/tokens.js +8 -1
- package/dist/tokens/css/tokens.css +7 -0
- package/dist/tokens/css/tokens.dark.css +7 -0
- package/dist/tokens/docs/tokens-tailwind-docs.dark.json +177 -0
- package/dist/tokens/docs/tokens-tailwind-docs.json +177 -0
- package/dist/tokens/figma/constants.tokens.json +51 -0
- package/dist/tokens/js/tokens.dark.js +7 -0
- package/dist/tokens/js/tokens.js +7 -0
- package/dist/tokens/json/tokens.dark.json +170 -0
- package/dist/tokens/json/tokens.json +170 -0
- package/dist/tokens/scss/_tokens.dark.scss +7 -0
- package/dist/tokens/scss/_tokens.scss +7 -0
- package/dist/tokens/scss/_tokens_custom_properties.scss +7 -0
- package/dist/tokens/tailwind/tokens.cjs +2 -0
- package/package.json +1 -1
- package/src/components/base/token_selector/token_container.vue +11 -1
- package/src/components/base/token_selector/token_selector.vue +4 -33
- package/src/components/base/token_selector/token_selector_dropdown.vue +2 -4
- package/src/components/dashboards/dashboard_panel/dashboard_panel.vue +9 -0
- package/src/tokens/build/css/tokens.css +7 -0
- package/src/tokens/build/css/tokens.dark.css +7 -0
- package/src/tokens/build/docs/tokens-tailwind-docs.dark.json +177 -0
- package/src/tokens/build/docs/tokens-tailwind-docs.json +177 -0
- package/src/tokens/build/figma/constants.tokens.json +51 -0
- package/src/tokens/build/js/tokens.dark.js +7 -0
- package/src/tokens/build/js/tokens.js +7 -0
- package/src/tokens/build/json/tokens.dark.json +170 -0
- package/src/tokens/build/json/tokens.json +170 -0
- package/src/tokens/build/scss/_tokens.dark.scss +7 -0
- package/src/tokens/build/scss/_tokens.scss +7 -0
- package/src/tokens/build/scss/_tokens_custom_properties.scss +7 -0
- package/src/tokens/build/tailwind/tokens.cjs +10 -0
- package/src/tokens/constant/zindex.tokens.json +53 -0
- package/tailwind.defaults.js +2 -9
- package/dist/utils/unique_id.js +0 -18
- package/src/utils/unique_id.js +0 -17
|
@@ -7472,6 +7472,176 @@
|
|
|
7472
7472
|
]
|
|
7473
7473
|
}
|
|
7474
7474
|
},
|
|
7475
|
+
"zindex": {
|
|
7476
|
+
"0": {
|
|
7477
|
+
"key": "{zindex.0}",
|
|
7478
|
+
"$value": "0",
|
|
7479
|
+
"$type": "number",
|
|
7480
|
+
"$extensions": {
|
|
7481
|
+
"com.figma.scope": []
|
|
7482
|
+
},
|
|
7483
|
+
"filePath": "src/tokens/constant/zindex.tokens.json",
|
|
7484
|
+
"isSource": true,
|
|
7485
|
+
"original": {
|
|
7486
|
+
"$value": "0",
|
|
7487
|
+
"$type": "number",
|
|
7488
|
+
"$extensions": {
|
|
7489
|
+
"com.figma.scope": []
|
|
7490
|
+
},
|
|
7491
|
+
"key": "{zindex.0}"
|
|
7492
|
+
},
|
|
7493
|
+
"name": "ZINDEX_0",
|
|
7494
|
+
"attributes": {},
|
|
7495
|
+
"path": [
|
|
7496
|
+
"zindex",
|
|
7497
|
+
"0"
|
|
7498
|
+
]
|
|
7499
|
+
},
|
|
7500
|
+
"1": {
|
|
7501
|
+
"key": "{zindex.1}",
|
|
7502
|
+
"$value": "1",
|
|
7503
|
+
"$type": "number",
|
|
7504
|
+
"$extensions": {
|
|
7505
|
+
"com.figma.scope": []
|
|
7506
|
+
},
|
|
7507
|
+
"filePath": "src/tokens/constant/zindex.tokens.json",
|
|
7508
|
+
"isSource": true,
|
|
7509
|
+
"original": {
|
|
7510
|
+
"$value": "1",
|
|
7511
|
+
"$type": "number",
|
|
7512
|
+
"$extensions": {
|
|
7513
|
+
"com.figma.scope": []
|
|
7514
|
+
},
|
|
7515
|
+
"key": "{zindex.1}"
|
|
7516
|
+
},
|
|
7517
|
+
"name": "ZINDEX_1",
|
|
7518
|
+
"attributes": {},
|
|
7519
|
+
"path": [
|
|
7520
|
+
"zindex",
|
|
7521
|
+
"1"
|
|
7522
|
+
]
|
|
7523
|
+
},
|
|
7524
|
+
"2": {
|
|
7525
|
+
"key": "{zindex.2}",
|
|
7526
|
+
"$value": "2",
|
|
7527
|
+
"$type": "number",
|
|
7528
|
+
"$extensions": {
|
|
7529
|
+
"com.figma.scope": []
|
|
7530
|
+
},
|
|
7531
|
+
"filePath": "src/tokens/constant/zindex.tokens.json",
|
|
7532
|
+
"isSource": true,
|
|
7533
|
+
"original": {
|
|
7534
|
+
"$value": "2",
|
|
7535
|
+
"$type": "number",
|
|
7536
|
+
"$extensions": {
|
|
7537
|
+
"com.figma.scope": []
|
|
7538
|
+
},
|
|
7539
|
+
"key": "{zindex.2}"
|
|
7540
|
+
},
|
|
7541
|
+
"name": "ZINDEX_2",
|
|
7542
|
+
"attributes": {},
|
|
7543
|
+
"path": [
|
|
7544
|
+
"zindex",
|
|
7545
|
+
"2"
|
|
7546
|
+
]
|
|
7547
|
+
},
|
|
7548
|
+
"3": {
|
|
7549
|
+
"key": "{zindex.3}",
|
|
7550
|
+
"$value": "3",
|
|
7551
|
+
"$type": "number",
|
|
7552
|
+
"$extensions": {
|
|
7553
|
+
"com.figma.scope": []
|
|
7554
|
+
},
|
|
7555
|
+
"filePath": "src/tokens/constant/zindex.tokens.json",
|
|
7556
|
+
"isSource": true,
|
|
7557
|
+
"original": {
|
|
7558
|
+
"$value": "3",
|
|
7559
|
+
"$type": "number",
|
|
7560
|
+
"$extensions": {
|
|
7561
|
+
"com.figma.scope": []
|
|
7562
|
+
},
|
|
7563
|
+
"key": "{zindex.3}"
|
|
7564
|
+
},
|
|
7565
|
+
"name": "ZINDEX_3",
|
|
7566
|
+
"attributes": {},
|
|
7567
|
+
"path": [
|
|
7568
|
+
"zindex",
|
|
7569
|
+
"3"
|
|
7570
|
+
]
|
|
7571
|
+
},
|
|
7572
|
+
"4": {
|
|
7573
|
+
"key": "{zindex.4}",
|
|
7574
|
+
"$value": "4",
|
|
7575
|
+
"$type": "number",
|
|
7576
|
+
"$extensions": {
|
|
7577
|
+
"com.figma.scope": []
|
|
7578
|
+
},
|
|
7579
|
+
"filePath": "src/tokens/constant/zindex.tokens.json",
|
|
7580
|
+
"isSource": true,
|
|
7581
|
+
"original": {
|
|
7582
|
+
"$value": "4",
|
|
7583
|
+
"$type": "number",
|
|
7584
|
+
"$extensions": {
|
|
7585
|
+
"com.figma.scope": []
|
|
7586
|
+
},
|
|
7587
|
+
"key": "{zindex.4}"
|
|
7588
|
+
},
|
|
7589
|
+
"name": "ZINDEX_4",
|
|
7590
|
+
"attributes": {},
|
|
7591
|
+
"path": [
|
|
7592
|
+
"zindex",
|
|
7593
|
+
"4"
|
|
7594
|
+
]
|
|
7595
|
+
},
|
|
7596
|
+
"200": {
|
|
7597
|
+
"key": "{zindex.200}",
|
|
7598
|
+
"$value": "200",
|
|
7599
|
+
"$type": "number",
|
|
7600
|
+
"$extensions": {
|
|
7601
|
+
"com.figma.scope": []
|
|
7602
|
+
},
|
|
7603
|
+
"filePath": "src/tokens/constant/zindex.tokens.json",
|
|
7604
|
+
"isSource": true,
|
|
7605
|
+
"original": {
|
|
7606
|
+
"$value": "200",
|
|
7607
|
+
"$type": "number",
|
|
7608
|
+
"$extensions": {
|
|
7609
|
+
"com.figma.scope": []
|
|
7610
|
+
},
|
|
7611
|
+
"key": "{zindex.200}"
|
|
7612
|
+
},
|
|
7613
|
+
"name": "ZINDEX_200",
|
|
7614
|
+
"attributes": {},
|
|
7615
|
+
"path": [
|
|
7616
|
+
"zindex",
|
|
7617
|
+
"200"
|
|
7618
|
+
]
|
|
7619
|
+
},
|
|
7620
|
+
"9999": {
|
|
7621
|
+
"key": "{zindex.9999}",
|
|
7622
|
+
"$value": "9999",
|
|
7623
|
+
"$type": "number",
|
|
7624
|
+
"$extensions": {
|
|
7625
|
+
"com.figma.scope": []
|
|
7626
|
+
},
|
|
7627
|
+
"filePath": "src/tokens/constant/zindex.tokens.json",
|
|
7628
|
+
"isSource": true,
|
|
7629
|
+
"original": {
|
|
7630
|
+
"$value": "9999",
|
|
7631
|
+
"$type": "number",
|
|
7632
|
+
"$extensions": {
|
|
7633
|
+
"com.figma.scope": []
|
|
7634
|
+
},
|
|
7635
|
+
"key": "{zindex.9999}"
|
|
7636
|
+
},
|
|
7637
|
+
"name": "ZINDEX_9999",
|
|
7638
|
+
"attributes": {},
|
|
7639
|
+
"path": [
|
|
7640
|
+
"zindex",
|
|
7641
|
+
"9999"
|
|
7642
|
+
]
|
|
7643
|
+
}
|
|
7644
|
+
},
|
|
7475
7645
|
"alert": {
|
|
7476
7646
|
"border": {
|
|
7477
7647
|
"radius": {
|
|
@@ -281,6 +281,13 @@ $gl-spacing-scale-88: 44rem;
|
|
|
281
281
|
$gl-spacing-scale-px: 1px;
|
|
282
282
|
$gl-spacing-scale-2-5: 0.375rem;
|
|
283
283
|
$gl-spacing-scale-11-5: 4.5rem;
|
|
284
|
+
$gl-zindex-0: 0;
|
|
285
|
+
$gl-zindex-1: 1;
|
|
286
|
+
$gl-zindex-2: 2;
|
|
287
|
+
$gl-zindex-3: 3;
|
|
288
|
+
$gl-zindex-4: 4;
|
|
289
|
+
$gl-zindex-200: 200;
|
|
290
|
+
$gl-zindex-9999: 9999;
|
|
284
291
|
$gl-avatar-fallback-background-color-red: #fcb5aa3d; // Red background for avatar fallback with no particular meaning.
|
|
285
292
|
$gl-avatar-fallback-background-color-purple: #cbbbf23d; // Purple background for avatar fallback with no particular meaning.
|
|
286
293
|
$gl-avatar-fallback-background-color-blue: #9dc7f13d; // Blue background for avatar fallback with no particular meaning.
|
|
@@ -281,6 +281,13 @@ $gl-spacing-scale-88: 44rem;
|
|
|
281
281
|
$gl-spacing-scale-px: 1px;
|
|
282
282
|
$gl-spacing-scale-2-5: 0.375rem;
|
|
283
283
|
$gl-spacing-scale-11-5: 4.5rem;
|
|
284
|
+
$gl-zindex-0: 0;
|
|
285
|
+
$gl-zindex-1: 1;
|
|
286
|
+
$gl-zindex-2: 2;
|
|
287
|
+
$gl-zindex-3: 3;
|
|
288
|
+
$gl-zindex-4: 4;
|
|
289
|
+
$gl-zindex-200: 200;
|
|
290
|
+
$gl-zindex-9999: 9999;
|
|
284
291
|
$gl-avatar-fallback-background-color-red: #fcb5aa3d; // Red background for avatar fallback with no particular meaning.
|
|
285
292
|
$gl-avatar-fallback-background-color-purple: #cbbbf23d; // Purple background for avatar fallback with no particular meaning.
|
|
286
293
|
$gl-avatar-fallback-background-color-blue: #9dc7f13d; // Blue background for avatar fallback with no particular meaning.
|
|
@@ -296,6 +296,13 @@ $gl-spacing-scale-88: var(--gl-spacing-scale-88);
|
|
|
296
296
|
$gl-spacing-scale-px: var(--gl-spacing-scale-px);
|
|
297
297
|
$gl-spacing-scale-2-5: var(--gl-spacing-scale-2-5);
|
|
298
298
|
$gl-spacing-scale-11-5: var(--gl-spacing-scale-11-5);
|
|
299
|
+
$gl-zindex-0: var(--gl-zindex-0);
|
|
300
|
+
$gl-zindex-1: var(--gl-zindex-1);
|
|
301
|
+
$gl-zindex-2: var(--gl-zindex-2);
|
|
302
|
+
$gl-zindex-3: var(--gl-zindex-3);
|
|
303
|
+
$gl-zindex-4: var(--gl-zindex-4);
|
|
304
|
+
$gl-zindex-200: var(--gl-zindex-200);
|
|
305
|
+
$gl-zindex-9999: var(--gl-zindex-9999);
|
|
299
306
|
$gl-alert-border-radius: var(--gl-alert-border-radius);
|
|
300
307
|
$gl-alert-neutral-title-color: var(--gl-alert-neutral-title-color);
|
|
301
308
|
$gl-alert-neutral-background-color: var(--gl-alert-neutral-background-color);
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
const spacingScale = {"0":"var(--gl-spacing-scale-0, 0)","1":"var(--gl-spacing-scale-1, 0.125rem)","2":"var(--gl-spacing-scale-2, 0.25rem)","3":"var(--gl-spacing-scale-3, 0.5rem)","4":"var(--gl-spacing-scale-4, 0.75rem)","5":"var(--gl-spacing-scale-5, 1rem)","6":"var(--gl-spacing-scale-6, 1.5rem)","7":"var(--gl-spacing-scale-7, 2rem)","8":"var(--gl-spacing-scale-8, 2.5rem)","9":"var(--gl-spacing-scale-9, 3rem)","10":"var(--gl-spacing-scale-10, 3.5rem)","11":"var(--gl-spacing-scale-11, 4rem)","12":"var(--gl-spacing-scale-12, 5rem)","13":"var(--gl-spacing-scale-13, 6rem)","15":"var(--gl-spacing-scale-15, 7.5rem)","18":"var(--gl-spacing-scale-18, 9rem)","20":"var(--gl-spacing-scale-20, 10rem)","26":"var(--gl-spacing-scale-26, 13rem)","28":"var(--gl-spacing-scale-28, 14rem)","30":"var(--gl-spacing-scale-30, 15rem)","31":"var(--gl-spacing-scale-31, 15.5rem)","33":"var(--gl-spacing-scale-33, 16.5rem)","34":"var(--gl-spacing-scale-34, 17rem)","37":"var(--gl-spacing-scale-37, 18.5rem)","48":"var(--gl-spacing-scale-48, 24rem)","62":"var(--gl-spacing-scale-62, 31rem)","75":"var(--gl-spacing-scale-75, 37.5rem)","80":"var(--gl-spacing-scale-80, 40rem)","88":"var(--gl-spacing-scale-88, 44rem)","px":"var(--gl-spacing-scale-px, 1px)","2-5":"var(--gl-spacing-scale-2-5, 0.375rem)","11-5":"var(--gl-spacing-scale-11-5, 4.5rem)"};
|
|
24
24
|
const borderRadius = {"none":"var(--gl-border-radius-none, var(--gl-spacing-scale-0, 0))","xs":"var(--gl-border-radius-xs, var(--gl-spacing-scale-px, 1px))","sm":"var(--gl-border-radius-sm, var(--gl-spacing-scale-1, 0.125rem))","md":"var(--gl-border-radius-md, var(--gl-spacing-scale-2, 0.25rem))","lg":"var(--gl-border-radius-lg, var(--gl-spacing-scale-3, 0.5rem))","xl":"var(--gl-border-radius-xl, var(--gl-spacing-scale-4, 0.75rem))","2xl":"var(--gl-border-radius-2xl, var(--gl-spacing-scale-5, 1rem))","3xl":"var(--gl-border-radius-3xl, var(--gl-spacing-scale-6, 1.5rem))","full":"var(--gl-border-radius-full, 9999px)","default":"var(--gl-border-radius-default, var(--gl-border-radius-md, 0.25rem))","control":"var(--gl-control-border-radius, var(--gl-border-radius-default, 0.25rem))"};
|
|
25
25
|
const opacity = {"0":"var(--gl-opacity-0, 0)","1":"var(--gl-opacity-1, .1)","2":"var(--gl-opacity-2, .2)","3":"var(--gl-opacity-3, .3)","4":"var(--gl-opacity-4, .4)","5":"var(--gl-opacity-5, .5)","6":"var(--gl-opacity-6, .6)","7":"var(--gl-opacity-7, .7)","8":"var(--gl-opacity-8, .8)","9":"var(--gl-opacity-9, .9)","10":"var(--gl-opacity-10, 1)"};
|
|
26
|
+
const zindexes = {"0":"var(--gl-zindex-0, 0)","1":"var(--gl-zindex-1, 1)","2":"var(--gl-zindex-2, 2)","3":"var(--gl-zindex-3, 3)","4":"var(--gl-zindex-4, 4)","200":"var(--gl-zindex-200, 200)","9999":"var(--gl-zindex-9999, 9999)"};
|
|
26
27
|
|
|
27
28
|
const colors = {
|
|
28
29
|
inherit: 'inherit',
|
|
@@ -105,5 +106,6 @@
|
|
|
105
106
|
spacing: spacingScale,
|
|
106
107
|
borderRadius,
|
|
107
108
|
opacity,
|
|
109
|
+
zIndex: zindexes,
|
|
108
110
|
}
|
|
109
111
|
|
package/package.json
CHANGED
|
@@ -13,6 +13,11 @@ export default {
|
|
|
13
13
|
validator: tokensValidator,
|
|
14
14
|
required: true,
|
|
15
15
|
},
|
|
16
|
+
state: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
required: false,
|
|
19
|
+
default: null,
|
|
20
|
+
},
|
|
16
21
|
registerFocusOnToken: {
|
|
17
22
|
type: Function,
|
|
18
23
|
required: true,
|
|
@@ -128,6 +133,11 @@ export default {
|
|
|
128
133
|
<div
|
|
129
134
|
ref="tokenContainer"
|
|
130
135
|
class="-gl-mx-1 -gl-my-1 gl-flex gl-w-auto gl-list-none gl-flex-wrap gl-items-center gl-p-0"
|
|
136
|
+
role="listbox"
|
|
137
|
+
aria-multiselectable="false"
|
|
138
|
+
aria-orientation="horizontal"
|
|
139
|
+
:aria-invalid="state === false && 'true'"
|
|
140
|
+
aria-label="token list"
|
|
131
141
|
@keydown.left="handleLeftArrow"
|
|
132
142
|
@keydown.right="handleRightArrow"
|
|
133
143
|
@keydown.home="handleHome"
|
|
@@ -142,7 +152,7 @@ export default {
|
|
|
142
152
|
:key="token.id"
|
|
143
153
|
:data-token-id="token.id"
|
|
144
154
|
class="gl-token-selector-token-container gl-px-1 gl-py-2 gl-outline-none"
|
|
145
|
-
|
|
155
|
+
role="option"
|
|
146
156
|
tabindex="-1"
|
|
147
157
|
@focus="bindFocusEvent ? handleTokenFocus(index) : null"
|
|
148
158
|
>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import
|
|
2
|
+
import uniqueId from 'lodash/uniqueId';
|
|
3
3
|
import { tokensValidator } from './helpers';
|
|
4
4
|
import GlTokenContainer from './token_container.vue';
|
|
5
5
|
import GlTokenSelectorDropdown from './token_selector_dropdown.vue';
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
name: 'GlTokenSelector',
|
|
9
|
-
componentId:
|
|
9
|
+
componentId: uniqueId('token-selector'),
|
|
10
10
|
components: {
|
|
11
11
|
GlTokenContainer,
|
|
12
12
|
GlTokenSelectorDropdown,
|
|
@@ -75,7 +75,7 @@ export default {
|
|
|
75
75
|
default: '',
|
|
76
76
|
},
|
|
77
77
|
/**
|
|
78
|
-
* The
|
|
78
|
+
* The autocomplete attribute value for the underlying `input` element
|
|
79
79
|
*/
|
|
80
80
|
autocomplete: {
|
|
81
81
|
type: String,
|
|
@@ -83,21 +83,7 @@ export default {
|
|
|
83
83
|
default: 'off',
|
|
84
84
|
},
|
|
85
85
|
/**
|
|
86
|
-
* The `aria-
|
|
87
|
-
* Input must have an aria-label or aria-labelledby prop or it will be inaccessible.
|
|
88
|
-
*
|
|
89
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-label
|
|
90
|
-
*/
|
|
91
|
-
ariaLabel: {
|
|
92
|
-
type: String,
|
|
93
|
-
required: false,
|
|
94
|
-
default: null,
|
|
95
|
-
},
|
|
96
|
-
/**
|
|
97
|
-
* The `aria-labelledby` attribute value for the underlying `input` element.
|
|
98
|
-
* String must match the unique ID on a text element to create an accessible label.
|
|
99
|
-
*
|
|
100
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-labelledby
|
|
86
|
+
* The `aria-labelledby` attribute value for the underlying `input` element
|
|
101
87
|
*/
|
|
102
88
|
ariaLabelledby: {
|
|
103
89
|
type: String,
|
|
@@ -396,13 +382,6 @@ export default {
|
|
|
396
382
|
this.$emit('input', []);
|
|
397
383
|
this.focusTextInput();
|
|
398
384
|
},
|
|
399
|
-
handleAriaInvalid() {
|
|
400
|
-
const { state } = this;
|
|
401
|
-
return state === false ? 'true' : null;
|
|
402
|
-
},
|
|
403
|
-
handleAriaActiveDescendent(value) {
|
|
404
|
-
return value ? `${this.$options.componentId}-dropdown-item-${value.id}` : null;
|
|
405
|
-
},
|
|
406
385
|
},
|
|
407
386
|
};
|
|
408
387
|
</script>
|
|
@@ -449,17 +428,10 @@ export default {
|
|
|
449
428
|
type="text"
|
|
450
429
|
class="gl-token-selector-input gl-h-auto gl-w-4/10 gl-grow gl-border-none gl-bg-transparent gl-px-1 gl-font-regular gl-text-base gl-leading-normal gl-text-default gl-outline-none"
|
|
451
430
|
:value="inputText"
|
|
452
|
-
:aria-activedescendant="handleAriaActiveDescendent(focusedDropdownItem)"
|
|
453
431
|
:autocomplete="autocomplete"
|
|
454
|
-
:aria-controls="$options.componentId"
|
|
455
|
-
:aria-expanded="dropdownIsOpen.toString()"
|
|
456
|
-
:aria-invalid="handleAriaInvalid()"
|
|
457
|
-
:aria-label="ariaLabelledby ? null : ariaLabel"
|
|
458
432
|
:aria-labelledby="ariaLabelledby"
|
|
459
433
|
:placeholder="placeholder"
|
|
460
434
|
:disabled="viewOnly"
|
|
461
|
-
aria-autocomplete="list"
|
|
462
|
-
role="combobox"
|
|
463
435
|
v-bind="textInputAttrs"
|
|
464
436
|
@input="inputText = $event.target.value"
|
|
465
437
|
@focus="handleFocus"
|
|
@@ -490,7 +462,6 @@ export default {
|
|
|
490
462
|
:register-dropdown-event-handlers="registerDropdownEventHandlers"
|
|
491
463
|
:register-reset-focused-dropdown-item="registerResetFocusedDropdownItem"
|
|
492
464
|
@dropdown-item-click="addToken"
|
|
493
|
-
@input="handleAriaActiveDescendent"
|
|
494
465
|
@show="openDropdown"
|
|
495
466
|
>
|
|
496
467
|
<template #loading-content
|
|
@@ -199,10 +199,10 @@ export default {
|
|
|
199
199
|
<template>
|
|
200
200
|
<div class="dropdown b-dropdown gl-dropdown gl-relative" :class="{ show }">
|
|
201
201
|
<ul
|
|
202
|
-
:id="componentId"
|
|
203
202
|
ref="dropdownMenu"
|
|
204
|
-
role="
|
|
203
|
+
role="menu"
|
|
205
204
|
class="dropdown-menu gl-absolute"
|
|
205
|
+
:aria-activedescendant="dropdownItemIdAttribute(focusedDropdownItem)"
|
|
206
206
|
:class="[{ show }, menuClass]"
|
|
207
207
|
>
|
|
208
208
|
<gl-dropdown-item v-if="loading" disabled>
|
|
@@ -216,9 +216,7 @@ export default {
|
|
|
216
216
|
:key="dropdownItem.id"
|
|
217
217
|
:data-dropdown-item-id="dropdownItem.id"
|
|
218
218
|
:active="dropdownItemIsFocused(dropdownItem)"
|
|
219
|
-
:aria-selected="dropdownItemIsFocused(dropdownItem).toString()"
|
|
220
219
|
active-class="is-focused"
|
|
221
|
-
role="option"
|
|
222
220
|
tabindex="-1"
|
|
223
221
|
@click="handleDropdownItemClick(dropdownItem)"
|
|
224
222
|
>
|
|
@@ -86,6 +86,14 @@ export default {
|
|
|
86
86
|
required: false,
|
|
87
87
|
default: () => ({}),
|
|
88
88
|
},
|
|
89
|
+
/**
|
|
90
|
+
* CSS classes to apply to the title popover (gets passed to the `css-classes` prop of the `GlPopover` component).
|
|
91
|
+
*/
|
|
92
|
+
titlePopoverClasses: {
|
|
93
|
+
type: Array,
|
|
94
|
+
required: false,
|
|
95
|
+
default: () => [],
|
|
96
|
+
},
|
|
89
97
|
/**
|
|
90
98
|
* Set to `true` to show the loading state.
|
|
91
99
|
*/
|
|
@@ -218,6 +226,7 @@ export default {
|
|
|
218
226
|
data-testid="panel-title-popover"
|
|
219
227
|
boundary="viewport"
|
|
220
228
|
:target="titlePopoverId"
|
|
229
|
+
:css-classes="titlePopoverClasses"
|
|
221
230
|
>
|
|
222
231
|
<!-- @slot The title of the info popover. -->
|
|
223
232
|
<template v-if="hasInfoPopoverTitleSlot" #title>
|
|
@@ -283,6 +283,13 @@
|
|
|
283
283
|
--gl-spacing-scale-px: 1px;
|
|
284
284
|
--gl-spacing-scale-2-5: 0.375rem;
|
|
285
285
|
--gl-spacing-scale-11-5: 4.5rem;
|
|
286
|
+
--gl-zindex-0: 0;
|
|
287
|
+
--gl-zindex-1: 1;
|
|
288
|
+
--gl-zindex-2: 2;
|
|
289
|
+
--gl-zindex-3: 3;
|
|
290
|
+
--gl-zindex-4: 4;
|
|
291
|
+
--gl-zindex-200: 200;
|
|
292
|
+
--gl-zindex-9999: 9999;
|
|
286
293
|
--gl-avatar-fallback-background-color-red: #fcb5aa3d; /** Red background for avatar fallback with no particular meaning. */
|
|
287
294
|
--gl-avatar-fallback-background-color-purple: #cbbbf23d; /** Purple background for avatar fallback with no particular meaning. */
|
|
288
295
|
--gl-avatar-fallback-background-color-blue: #9dc7f13d; /** Blue background for avatar fallback with no particular meaning. */
|
|
@@ -283,6 +283,13 @@
|
|
|
283
283
|
--gl-spacing-scale-px: 1px;
|
|
284
284
|
--gl-spacing-scale-2-5: 0.375rem;
|
|
285
285
|
--gl-spacing-scale-11-5: 4.5rem;
|
|
286
|
+
--gl-zindex-0: 0;
|
|
287
|
+
--gl-zindex-1: 1;
|
|
288
|
+
--gl-zindex-2: 2;
|
|
289
|
+
--gl-zindex-3: 3;
|
|
290
|
+
--gl-zindex-4: 4;
|
|
291
|
+
--gl-zindex-200: 200;
|
|
292
|
+
--gl-zindex-9999: 9999;
|
|
286
293
|
--gl-avatar-fallback-background-color-red: #fcb5aa3d; /** Red background for avatar fallback with no particular meaning. */
|
|
287
294
|
--gl-avatar-fallback-background-color-purple: #cbbbf23d; /** Purple background for avatar fallback with no particular meaning. */
|
|
288
295
|
--gl-avatar-fallback-background-color-blue: #9dc7f13d; /** Blue background for avatar fallback with no particular meaning. */
|
|
@@ -44335,5 +44335,182 @@
|
|
|
44335
44335
|
],
|
|
44336
44336
|
"cssWithValue": "var(--gl-opacity-10, 1)"
|
|
44337
44337
|
}
|
|
44338
|
+
},
|
|
44339
|
+
"zIndex": {
|
|
44340
|
+
"0": {
|
|
44341
|
+
"key": "{zindex.0}",
|
|
44342
|
+
"$value": "0",
|
|
44343
|
+
"$type": "number",
|
|
44344
|
+
"$extensions": {
|
|
44345
|
+
"com.figma.scope": []
|
|
44346
|
+
},
|
|
44347
|
+
"filePath": "src/tokens/constant/zindex.tokens.json",
|
|
44348
|
+
"isSource": true,
|
|
44349
|
+
"original": {
|
|
44350
|
+
"$value": "0",
|
|
44351
|
+
"$type": "number",
|
|
44352
|
+
"$extensions": {
|
|
44353
|
+
"com.figma.scope": []
|
|
44354
|
+
},
|
|
44355
|
+
"key": "{zindex.0}"
|
|
44356
|
+
},
|
|
44357
|
+
"name": "ZINDEX_0",
|
|
44358
|
+
"attributes": {},
|
|
44359
|
+
"path": [
|
|
44360
|
+
"zindex",
|
|
44361
|
+
"0"
|
|
44362
|
+
],
|
|
44363
|
+
"cssWithValue": "var(--gl-zindex-0, 0)"
|
|
44364
|
+
},
|
|
44365
|
+
"1": {
|
|
44366
|
+
"key": "{zindex.1}",
|
|
44367
|
+
"$value": "1",
|
|
44368
|
+
"$type": "number",
|
|
44369
|
+
"$extensions": {
|
|
44370
|
+
"com.figma.scope": []
|
|
44371
|
+
},
|
|
44372
|
+
"filePath": "src/tokens/constant/zindex.tokens.json",
|
|
44373
|
+
"isSource": true,
|
|
44374
|
+
"original": {
|
|
44375
|
+
"$value": "1",
|
|
44376
|
+
"$type": "number",
|
|
44377
|
+
"$extensions": {
|
|
44378
|
+
"com.figma.scope": []
|
|
44379
|
+
},
|
|
44380
|
+
"key": "{zindex.1}"
|
|
44381
|
+
},
|
|
44382
|
+
"name": "ZINDEX_1",
|
|
44383
|
+
"attributes": {},
|
|
44384
|
+
"path": [
|
|
44385
|
+
"zindex",
|
|
44386
|
+
"1"
|
|
44387
|
+
],
|
|
44388
|
+
"cssWithValue": "var(--gl-zindex-1, 1)"
|
|
44389
|
+
},
|
|
44390
|
+
"2": {
|
|
44391
|
+
"key": "{zindex.2}",
|
|
44392
|
+
"$value": "2",
|
|
44393
|
+
"$type": "number",
|
|
44394
|
+
"$extensions": {
|
|
44395
|
+
"com.figma.scope": []
|
|
44396
|
+
},
|
|
44397
|
+
"filePath": "src/tokens/constant/zindex.tokens.json",
|
|
44398
|
+
"isSource": true,
|
|
44399
|
+
"original": {
|
|
44400
|
+
"$value": "2",
|
|
44401
|
+
"$type": "number",
|
|
44402
|
+
"$extensions": {
|
|
44403
|
+
"com.figma.scope": []
|
|
44404
|
+
},
|
|
44405
|
+
"key": "{zindex.2}"
|
|
44406
|
+
},
|
|
44407
|
+
"name": "ZINDEX_2",
|
|
44408
|
+
"attributes": {},
|
|
44409
|
+
"path": [
|
|
44410
|
+
"zindex",
|
|
44411
|
+
"2"
|
|
44412
|
+
],
|
|
44413
|
+
"cssWithValue": "var(--gl-zindex-2, 2)"
|
|
44414
|
+
},
|
|
44415
|
+
"3": {
|
|
44416
|
+
"key": "{zindex.3}",
|
|
44417
|
+
"$value": "3",
|
|
44418
|
+
"$type": "number",
|
|
44419
|
+
"$extensions": {
|
|
44420
|
+
"com.figma.scope": []
|
|
44421
|
+
},
|
|
44422
|
+
"filePath": "src/tokens/constant/zindex.tokens.json",
|
|
44423
|
+
"isSource": true,
|
|
44424
|
+
"original": {
|
|
44425
|
+
"$value": "3",
|
|
44426
|
+
"$type": "number",
|
|
44427
|
+
"$extensions": {
|
|
44428
|
+
"com.figma.scope": []
|
|
44429
|
+
},
|
|
44430
|
+
"key": "{zindex.3}"
|
|
44431
|
+
},
|
|
44432
|
+
"name": "ZINDEX_3",
|
|
44433
|
+
"attributes": {},
|
|
44434
|
+
"path": [
|
|
44435
|
+
"zindex",
|
|
44436
|
+
"3"
|
|
44437
|
+
],
|
|
44438
|
+
"cssWithValue": "var(--gl-zindex-3, 3)"
|
|
44439
|
+
},
|
|
44440
|
+
"4": {
|
|
44441
|
+
"key": "{zindex.4}",
|
|
44442
|
+
"$value": "4",
|
|
44443
|
+
"$type": "number",
|
|
44444
|
+
"$extensions": {
|
|
44445
|
+
"com.figma.scope": []
|
|
44446
|
+
},
|
|
44447
|
+
"filePath": "src/tokens/constant/zindex.tokens.json",
|
|
44448
|
+
"isSource": true,
|
|
44449
|
+
"original": {
|
|
44450
|
+
"$value": "4",
|
|
44451
|
+
"$type": "number",
|
|
44452
|
+
"$extensions": {
|
|
44453
|
+
"com.figma.scope": []
|
|
44454
|
+
},
|
|
44455
|
+
"key": "{zindex.4}"
|
|
44456
|
+
},
|
|
44457
|
+
"name": "ZINDEX_4",
|
|
44458
|
+
"attributes": {},
|
|
44459
|
+
"path": [
|
|
44460
|
+
"zindex",
|
|
44461
|
+
"4"
|
|
44462
|
+
],
|
|
44463
|
+
"cssWithValue": "var(--gl-zindex-4, 4)"
|
|
44464
|
+
},
|
|
44465
|
+
"200": {
|
|
44466
|
+
"key": "{zindex.200}",
|
|
44467
|
+
"$value": "200",
|
|
44468
|
+
"$type": "number",
|
|
44469
|
+
"$extensions": {
|
|
44470
|
+
"com.figma.scope": []
|
|
44471
|
+
},
|
|
44472
|
+
"filePath": "src/tokens/constant/zindex.tokens.json",
|
|
44473
|
+
"isSource": true,
|
|
44474
|
+
"original": {
|
|
44475
|
+
"$value": "200",
|
|
44476
|
+
"$type": "number",
|
|
44477
|
+
"$extensions": {
|
|
44478
|
+
"com.figma.scope": []
|
|
44479
|
+
},
|
|
44480
|
+
"key": "{zindex.200}"
|
|
44481
|
+
},
|
|
44482
|
+
"name": "ZINDEX_200",
|
|
44483
|
+
"attributes": {},
|
|
44484
|
+
"path": [
|
|
44485
|
+
"zindex",
|
|
44486
|
+
"200"
|
|
44487
|
+
],
|
|
44488
|
+
"cssWithValue": "var(--gl-zindex-200, 200)"
|
|
44489
|
+
},
|
|
44490
|
+
"9999": {
|
|
44491
|
+
"key": "{zindex.9999}",
|
|
44492
|
+
"$value": "9999",
|
|
44493
|
+
"$type": "number",
|
|
44494
|
+
"$extensions": {
|
|
44495
|
+
"com.figma.scope": []
|
|
44496
|
+
},
|
|
44497
|
+
"filePath": "src/tokens/constant/zindex.tokens.json",
|
|
44498
|
+
"isSource": true,
|
|
44499
|
+
"original": {
|
|
44500
|
+
"$value": "9999",
|
|
44501
|
+
"$type": "number",
|
|
44502
|
+
"$extensions": {
|
|
44503
|
+
"com.figma.scope": []
|
|
44504
|
+
},
|
|
44505
|
+
"key": "{zindex.9999}"
|
|
44506
|
+
},
|
|
44507
|
+
"name": "ZINDEX_9999",
|
|
44508
|
+
"attributes": {},
|
|
44509
|
+
"path": [
|
|
44510
|
+
"zindex",
|
|
44511
|
+
"9999"
|
|
44512
|
+
],
|
|
44513
|
+
"cssWithValue": "var(--gl-zindex-9999, 9999)"
|
|
44514
|
+
}
|
|
44338
44515
|
}
|
|
44339
44516
|
}
|