@gitlab/ui 134.2.0 → 134.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "134.2.0",
3
+ "version": "134.3.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -98,13 +98,13 @@
98
98
  },
99
99
  "devDependencies": {
100
100
  "@adobe/leonardo-contrast-colors": "^1.1.0",
101
- "@babel/core": "^7.29.0",
101
+ "@babel/core": "^7.29.7",
102
102
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
103
103
  "@babel/plugin-proposal-optional-chaining": "^7.21.0",
104
- "@babel/preset-env": "^7.29.5",
105
- "@babel/preset-react": "^7.28.5",
104
+ "@babel/preset-env": "^7.29.7",
105
+ "@babel/preset-react": "^7.29.7",
106
106
  "@cypress/grep": "^4.1.1",
107
- "@figma/code-connect": "^1.4.5",
107
+ "@figma/code-connect": "^1.4.7",
108
108
  "@gitlab/fonts": "^1.3.1",
109
109
  "@gitlab/hybrid-vue": "npm:@vue/compat@3.5.34",
110
110
  "@gitlab/svgs": "*",
@@ -130,7 +130,7 @@
130
130
  "@vue/compiler-sfc": "3.5.32",
131
131
  "@vue/server-renderer": "3.5.32",
132
132
  "@vue/test-utils": "1.3.6",
133
- "@vue/test-utils-vue3": "npm:@vue/test-utils@^2.4.10",
133
+ "@vue/test-utils-vue3": "npm:@vue/test-utils@^2.4.11",
134
134
  "@vue/vue2-jest": "29.2.6",
135
135
  "@vue/vue3-jest": "^29.2.6",
136
136
  "@yarnpkg/lockfile": "^1.1.0",
@@ -139,7 +139,7 @@
139
139
  "autoprefixer": "10.5.0",
140
140
  "axe-playwright": "^2.2.2",
141
141
  "babel-loader": "^9.2.1",
142
- "cypress": "15.15.0",
142
+ "cypress": "15.16.0",
143
143
  "cypress-real-events": "^1.15.0",
144
144
  "dompurify": "^3.1.2",
145
145
  "emoji-regex": "^10.6.0",
@@ -174,7 +174,7 @@
174
174
  "start-server-and-test": "^2.1.5",
175
175
  "storybook": "^7.6.24",
176
176
  "storybook-dark-mode": "4.0.2",
177
- "style-dictionary": "^5.4.1",
177
+ "style-dictionary": "^5.4.2",
178
178
  "style-loader": "^4",
179
179
  "tailwindcss": "3.4.19",
180
180
  "vue": "2.7.16",
@@ -0,0 +1,90 @@
1
+ .gl-nav-item {
2
+ @apply gl-relative;
3
+ @apply gl-flex;
4
+ @apply gl-items-center;
5
+ @apply gl-gap-3;
6
+ @apply gl-py-1;
7
+ @apply gl-px-3;
8
+ @apply gl-w-full;
9
+ @apply gl-no-underline;
10
+ @apply gl-text-left;
11
+ @apply gl-border-none;
12
+ @apply gl-cursor-pointer;
13
+ @apply gl-appearance-none;
14
+ @apply focus:gl-focus-inset;
15
+ min-height: 1.75rem;
16
+ min-width: 1.75rem;
17
+ border-radius: var(--gl-nav-item-border-radius);
18
+ font-size: var(--gl-nav-item-font-size);
19
+ font-weight: var(--gl-nav-item-font-weight);
20
+ color: var(--gl-nav-item-foreground-color-default);
21
+ background-color: var(--gl-nav-item-background-color-default);
22
+
23
+ &.gl-nav-item-is-icon-only {
24
+ @apply gl-px-2;
25
+ }
26
+
27
+ &.gl-nav-item-has-start-slot {
28
+ @apply gl-pl-2;
29
+ }
30
+
31
+ &.gl-nav-item-has-end-slot {
32
+ @apply gl-pr-2;
33
+ }
34
+
35
+ &:hover {
36
+ @apply gl-no-underline;
37
+ color: var(--gl-nav-item-foreground-color-hover);
38
+ background-color: var(--gl-nav-item-background-color-hover);
39
+ }
40
+
41
+ &:focus {
42
+ color: var(--gl-nav-item-foreground-color-focus);
43
+ background-color: var(--gl-nav-item-background-color-focus);
44
+ }
45
+
46
+ &:active,
47
+ &:focus:active {
48
+ color: var(--gl-nav-item-foreground-color-active);
49
+ background-color: var(--gl-nav-item-background-color-active);
50
+ }
51
+
52
+ &.selected {
53
+ color: var(--gl-nav-item-selected-foreground-color-default);
54
+ background-color: var(--gl-nav-item-selected-background-color-default);
55
+
56
+ &:hover {
57
+ color: var(--gl-nav-item-selected-foreground-color-hover);
58
+ background-color: var(--gl-nav-item-selected-background-color-hover);
59
+ }
60
+
61
+ &:focus {
62
+ color: var(--gl-nav-item-selected-foreground-color-focus);
63
+ background-color: var(--gl-nav-item-selected-background-color-focus);
64
+ }
65
+
66
+ &:active,
67
+ &:focus:active {
68
+ color: var(--gl-nav-item-selected-foreground-color-active);
69
+ background-color: var(--gl-nav-item-selected-background-color-active);
70
+ }
71
+ }
72
+ }
73
+
74
+ .gl-nav-item-slot {
75
+ @apply gl-flex;
76
+ @apply gl-items-center;
77
+ @apply gl-justify-center;
78
+ @apply gl-h-6;
79
+ @apply gl-w-6;
80
+ @apply gl-shrink-0;
81
+ }
82
+
83
+ .gl-nav-item-label {
84
+ @apply gl-grow;
85
+ }
86
+
87
+ .gl-nav-item-chevron {
88
+ @apply gl-m-auto;
89
+ @apply gl-text-subtle;
90
+ }
@@ -0,0 +1,156 @@
1
+ <script>
2
+ import GlAnimatedChevronRightDownIcon from '../animated_icon/animated_chevron_right_down_icon.vue';
3
+ import GlIcon from '../icon/icon.vue';
4
+
5
+ export default {
6
+ name: 'GlNavItem',
7
+ components: {
8
+ GlAnimatedChevronRightDownIcon,
9
+ GlIcon,
10
+ },
11
+ props: {
12
+ /**
13
+ * Link href attribute
14
+ */
15
+ href: {
16
+ type: String,
17
+ required: false,
18
+ default: null,
19
+ },
20
+ /**
21
+ * Icon name
22
+ */
23
+ icon: {
24
+ type: String,
25
+ required: false,
26
+ default: null,
27
+ },
28
+ /**
29
+ * Is icon only
30
+ */
31
+ isIconOnly: {
32
+ type: Boolean,
33
+ required: false,
34
+ default: false,
35
+ },
36
+ /**
37
+ * Is parent
38
+ */
39
+ isParent: {
40
+ type: Boolean,
41
+ required: false,
42
+ default: false,
43
+ },
44
+ /**
45
+ * Expanded
46
+ */
47
+ expanded: {
48
+ type: Boolean,
49
+ required: false,
50
+ default: false,
51
+ },
52
+ /**
53
+ * Is currently selected
54
+ */
55
+ selected: {
56
+ type: Boolean,
57
+ required: false,
58
+ default: false,
59
+ },
60
+ /**
61
+ * Router link to property
62
+ */
63
+ to: {
64
+ type: [String, Object],
65
+ required: false,
66
+ default: null,
67
+ },
68
+ },
69
+ computed: {
70
+ ariaExpanded() {
71
+ return this.isParent ? String(this.expanded) : null;
72
+ },
73
+ classes() {
74
+ return [
75
+ 'gl-nav-item',
76
+ {
77
+ 'gl-nav-item-is-icon-only': this.isIconOnly,
78
+ 'gl-nav-item-has-start-slot': this.icon || Boolean(this.$scopedSlots.icon),
79
+ 'gl-nav-item-has-end-slot': Boolean(this.$scopedSlots.end) || this.isParent,
80
+ selected: this.selected,
81
+ },
82
+ ];
83
+ },
84
+ },
85
+ };
86
+ </script>
87
+
88
+ <template>
89
+ <router-link v-if="to" #default="{ navigate }" :to="to" active-class="selected" custom>
90
+ <a :class="classes" :aria-current="selected ? 'page' : null" @click="navigate">
91
+ <span v-if="icon || $scopedSlots.icon" class="gl-nav-item-slot" data-testid="nav-item-start">
92
+ <slot name="icon">
93
+ <gl-icon :name="icon" />
94
+ </slot>
95
+ </span>
96
+ <template v-if="!isIconOnly">
97
+ <span v-if="$scopedSlots.default" class="gl-nav-item-label" data-testid="nav-item-label">
98
+ <slot :is-active="selected"></slot>
99
+ </span>
100
+ <span v-if="$scopedSlots.end" class="gl-nav-item-slot" data-testid="nav-item-end">
101
+ <slot name="end"></slot>
102
+ </span>
103
+ </template>
104
+ </a>
105
+ </router-link>
106
+ <a
107
+ v-else-if="href"
108
+ :class="classes"
109
+ :href="href"
110
+ :aria-current="selected ? 'page' : null"
111
+ @click="$emit('click')"
112
+ @keydown.escape="$emit('escape')"
113
+ @pointerover="$emit('pointerover', $event)"
114
+ @pointerleave="$emit('pointerleave', $event)"
115
+ >
116
+ <span v-if="icon || $scopedSlots.icon" class="gl-nav-item-slot" data-testid="nav-item-start">
117
+ <slot name="icon">
118
+ <gl-icon :name="icon" />
119
+ </slot>
120
+ </span>
121
+ <template v-if="!isIconOnly">
122
+ <span v-if="$scopedSlots.default" class="gl-nav-item-label" data-testid="nav-item-label">
123
+ <slot></slot>
124
+ </span>
125
+ <span v-if="$scopedSlots.end" class="gl-nav-item-slot" data-testid="nav-item-end">
126
+ <slot name="end"></slot>
127
+ </span>
128
+ </template>
129
+ </a>
130
+ <button
131
+ v-else
132
+ :aria-expanded="ariaExpanded"
133
+ :class="classes"
134
+ @click="$emit('click')"
135
+ @keydown.escape="$emit('escape')"
136
+ @pointerover="$emit('pointerover', $event)"
137
+ @pointerleave="$emit('pointerleave', $event)"
138
+ >
139
+ <span v-if="icon || $scopedSlots.icon" class="gl-nav-item-slot" data-testid="nav-item-start">
140
+ <slot name="icon">
141
+ <gl-icon :name="icon" />
142
+ </slot>
143
+ </span>
144
+ <template v-if="!isIconOnly">
145
+ <span v-if="$scopedSlots.default" class="gl-nav-item-label" data-testid="nav-item-label">
146
+ <slot></slot>
147
+ </span>
148
+ <span v-if="$scopedSlots.end" class="gl-nav-item-slot" data-testid="nav-item-end">
149
+ <slot name="end"></slot>
150
+ </span>
151
+ <span v-else-if="isParent" class="gl-nav-item-slot" data-testid="nav-item-chevron">
152
+ <gl-animated-chevron-right-down-icon class="gl-nav-item-chevron" :is-on="expanded" />
153
+ </span>
154
+ </template>
155
+ </button>
156
+ </template>
@@ -96,6 +96,7 @@ export { default as GlBroadcastMessage } from './base/broadcast_message/broadcas
96
96
  export { default as GlCollapse } from './base/collapse/collapse.vue';
97
97
  export { default as GlAccordion } from './base/accordion/accordion.vue';
98
98
  export { default as GlAccordionItem } from './base/accordion/accordion_item.vue';
99
+ export { default as GlNavItem } from './base/nav_item/nav_item.vue';
99
100
 
100
101
  // Dashboards
101
102
  export { default as GlDashboardLayout } from './dashboards/dashboard_layout/dashboard_layout.vue';
@@ -51,6 +51,7 @@
51
51
  @import "../components/base/loading_icon/loading_icon";
52
52
  @import "../components/base/markdown/markdown";
53
53
  @import "../components/base/modal/modal";
54
+ @import "../components/base/nav_item/nav_item";
54
55
  @import "../components/base/button/button";
55
56
  @import "../components/base/button_group/button_group";
56
57
  @import "../components/base/pagination/pagination";
@@ -298,6 +298,7 @@
298
298
  --gl-illustration-isometric-base-top-fill-color: #e7e4f2; /** Used for the top surface of an isometric base platform. */
299
299
  --gl-illustration-isometric-base-front-fill-color: #d5d0e8; /** Used for the front face of an isometric base platform. */
300
300
  --gl-illustration-isometric-base-side-fill-color: #aea5d6; /** Used for the side face of an isometric base platform. */
301
+ --gl-nav-item-font-weight: 425; /** Used for the font weight of a navigation item */
301
302
  --data-viz-green-50: #ddfab7;
302
303
  --data-viz-green-100: #c6ed94;
303
304
  --data-viz-green-200: #b0d97b;
@@ -646,6 +647,10 @@
646
647
  --gl-link-mention-text-color-current: var(--gl-color-orange-800); /** Used for the mention link text color when referencing the current user. */
647
648
  --gl-link-mention-background-color-default: var(--gl-color-blue-100); /** Used for the mention link default background. */
648
649
  --gl-link-mention-background-color-current: var(--gl-color-orange-100); /** Used for the mention link background when referencing the current user. */
650
+ --gl-nav-item-font-size: var(--gl-font-size-300); /** Used for the font size of a navigation item */
651
+ --gl-nav-item-background-color-default: var(--gl-action-neutral-background-color-default); /** Used for the background of a default navigation item in the default state. */
652
+ --gl-nav-item-background-color-hover: var(--gl-action-neutral-background-color-hover); /** Used for the background of a default navigation item in the hover state. */
653
+ --gl-nav-item-background-color-active: var(--gl-action-neutral-background-color-active); /** Used for the background of a default navigation item in the active state. */
649
654
  --gl-progress-bar-track-color: var(--gl-color-neutral-200); /** Used for the track color for all progress-bar variants. */
650
655
  --gl-skeleton-loader-background-color: var(--gl-color-neutral-100); /** Used for the skeleton loader background color. */
651
656
  --gl-skeleton-loader-shimmer-color: var(--gl-color-neutral-50); /** Used for the animated shimmer effect in a skeleton loader. */
@@ -1005,6 +1010,12 @@
1005
1010
  --gl-dropdown-option-background-color-unselected-focus: var(--gl-action-neutral-background-color-focus); /** Used for the background of an unselected dropdown option in the focus state. */
1006
1011
  --gl-dropdown-option-background-color-selected-focus: var(--gl-dropdown-option-background-color-selected-hover); /** Used for the background of a selected dropdown option in the focus state. */
1007
1012
  --gl-modal-border-radius: var(--gl-border-radius-2xl); /** Used for modal border radius. */
1013
+ --gl-nav-item-foreground-color-default: var(--gl-action-neutral-foreground-color-default); /** Used for the foreground of a default navigation item in the default state. */
1014
+ --gl-nav-item-background-color-focus: var(--gl-action-neutral-background-color-focus); /** Used for the background of a default navigation item in the focus state. */
1015
+ --gl-nav-item-selected-foreground-color-default: var(--gl-action-selected-foreground-color-default); /** Used for the foreground of a selected navigation item in the default state. */
1016
+ --gl-nav-item-selected-background-color-default: var(--gl-action-selected-background-color-default); /** Used for the background of a selected navigation item in the default state. */
1017
+ --gl-nav-item-selected-background-color-hover: var(--gl-action-selected-background-color-hover); /** Used for the background of a selected navigation item in the hover state. */
1018
+ --gl-nav-item-selected-background-color-active: var(--gl-action-selected-background-color-active); /** Used for the background of a selected navigation item in the active state. */
1008
1019
  --gl-progress-bar-indicator-color-default: var(--gl-status-info-icon-color); /** Used for the indicator color for the primary progress-bar variant. */
1009
1020
  --gl-progress-bar-indicator-color-success: var(--gl-status-success-icon-color); /** Used for the indicator color for the success progress-bar variant. */
1010
1021
  --gl-progress-bar-indicator-color-warning: var(--gl-status-warning-icon-color); /** Used for the indicator color for the warning progress-bar variant. */
@@ -1199,6 +1210,12 @@
1199
1210
  --gl-dropdown-option-text-color-hover: var(--gl-action-neutral-foreground-color-hover); /** Used for the text of a dropdown option in the hover state. */
1200
1211
  --gl-dropdown-option-text-color-focus: var(--gl-action-neutral-foreground-color-focus); /** Used for the text of a dropdown option in the focus state. */
1201
1212
  --gl-dropdown-option-text-color-active: var(--gl-action-neutral-foreground-color-active); /** Used for the text of a dropdown option in the active state. */
1213
+ --gl-nav-item-border-radius: var(--gl-action-border-radius); /** Used for the border radius of a navigation item */
1214
+ --gl-nav-item-foreground-color-hover: var(--gl-action-neutral-foreground-color-hover); /** Used for the foreground of a default navigation item in the hover state. */
1215
+ --gl-nav-item-foreground-color-focus: var(--gl-action-neutral-foreground-color-focus); /** Used for the foreground of a default navigation item in the focus state. */
1216
+ --gl-nav-item-foreground-color-active: var(--gl-action-neutral-foreground-color-active); /** Used for the foreground of a default navigation item in the active state. */
1217
+ --gl-nav-item-selected-foreground-color-hover: var(--gl-action-selected-foreground-color-hover); /** Used for the foreground of a selected navigation item in the hover state. */
1218
+ --gl-nav-item-selected-background-color-focus: var(--gl-action-selected-background-color-focus); /** Used for the background of a selected navigation item in the focus state. */
1202
1219
  --gl-toggle-switch-icon-color-unchecked-focus: var(--gl-action-strong-neutral-background-color-focus); /** Used for the icon color of an unchecked toggle switch in the focus state. */
1203
1220
  --gl-toggle-switch-icon-color-checked-focus: var(--gl-action-strong-confirm-background-color-focus); /** Used for the icon color of a checked toggle switch in the focus state. */
1204
1221
  --gl-token-border-radius: var(--gl-border-radius-default); /** Used for token border radius. */
@@ -1209,10 +1226,12 @@
1209
1226
  --gl-action-strong-neutral-foreground-color-focus: var(--gl-action-strong-neutral-foreground-color-hover); /** Used for the foreground of a strong neutral action in the focus state. */
1210
1227
  --gl-action-strong-neutral-border-color-focus: var(--gl-action-strong-neutral-border-color-hover); /** Used for the border of a strong neutral action in the focus state. */
1211
1228
  --gl-button-confirm-primary-foreground-color-focus: var(--gl-action-strong-confirm-foreground-color-focus); /** Used for the foreground of a confirm (positive) primary button in the focus state. */
1229
+ --gl-nav-item-selected-foreground-color-focus: var(--gl-action-selected-foreground-color-focus); /** Used for the foreground of a selected navigation item in the focus state. */
1212
1230
  --gl-action-selected-foreground-color-active: var(--gl-action-selected-foreground-color-focus); /** Used for the foreground of a selected action in the active state. */
1213
1231
  --gl-action-strong-confirm-foreground-color-active: var(--gl-action-strong-confirm-foreground-color-focus); /** Used for the foreground of a strong confirm action in the active state. */
1214
1232
  --gl-action-strong-confirm-border-color-active: var(--gl-action-strong-confirm-border-color-focus); /** Used for the border of a strong confirm action in the active state. */
1215
1233
  --gl-action-strong-neutral-foreground-color-active: var(--gl-action-strong-neutral-foreground-color-focus); /** Used for the foreground of a strong neutral action in the active state. */
1216
1234
  --gl-action-strong-neutral-border-color-active: var(--gl-action-strong-neutral-border-color-focus); /** Used for the border of a strong neutral action in the active state. */
1217
1235
  --gl-button-confirm-primary-foreground-color-active: var(--gl-action-strong-confirm-foreground-color-active); /** Used for the foreground of a confirm (positive) primary button in the active state. */
1236
+ --gl-nav-item-selected-foreground-color-active: var(--gl-action-selected-foreground-color-active); /** Used for the foreground of a selected navigation item in the active state. */
1218
1237
  }
@@ -308,6 +308,7 @@
308
308
  --gl-illustration-isometric-base-top-fill-color: #32303c; /** Used for the top surface of an isometric base platform. */
309
309
  --gl-illustration-isometric-base-front-fill-color: #2b2932; /** Used for the front face of an isometric base platform. */
310
310
  --gl-illustration-isometric-base-side-fill-color: #23222b; /** Used for the side face of an isometric base platform. */
311
+ --gl-nav-item-font-weight: 425; /** Used for the font weight of a navigation item */
311
312
  --data-viz-green-50: #133a03;
312
313
  --data-viz-green-100: #1a4500;
313
314
  --data-viz-green-200: #275600;
@@ -665,6 +666,10 @@
665
666
  --gl-link-mention-text-color-current: var(--gl-color-orange-100); /** Used for the mention link text color when referencing the current user. */
666
667
  --gl-link-mention-background-color-default: var(--gl-color-blue-800); /** Used for the mention link default background. */
667
668
  --gl-link-mention-background-color-current: var(--gl-color-orange-800); /** Used for the mention link background when referencing the current user. */
669
+ --gl-nav-item-font-size: var(--gl-font-size-300); /** Used for the font size of a navigation item */
670
+ --gl-nav-item-background-color-default: var(--gl-action-neutral-background-color-default); /** Used for the background of a default navigation item in the default state. */
671
+ --gl-nav-item-background-color-hover: var(--gl-action-neutral-background-color-hover); /** Used for the background of a default navigation item in the hover state. */
672
+ --gl-nav-item-background-color-active: var(--gl-action-neutral-background-color-active); /** Used for the background of a default navigation item in the active state. */
668
673
  --gl-progress-bar-track-color: var(--gl-color-neutral-700); /** Used for the track color for all progress-bar variants. */
669
674
  --gl-skeleton-loader-background-color: var(--gl-color-neutral-800); /** Used for the skeleton loader background color. */
670
675
  --gl-skeleton-loader-shimmer-color: var(--gl-color-neutral-700); /** Used for the animated shimmer effect in a skeleton loader. */
@@ -1012,6 +1017,12 @@
1012
1017
  --gl-dropdown-option-background-color-unselected-focus: var(--gl-action-neutral-background-color-focus); /** Used for the background of an unselected dropdown option in the focus state. */
1013
1018
  --gl-dropdown-option-background-color-selected-focus: var(--gl-dropdown-option-background-color-selected-hover); /** Used for the background of a selected dropdown option in the focus state. */
1014
1019
  --gl-modal-border-radius: var(--gl-border-radius-2xl); /** Used for modal border radius. */
1020
+ --gl-nav-item-foreground-color-default: var(--gl-action-neutral-foreground-color-default); /** Used for the foreground of a default navigation item in the default state. */
1021
+ --gl-nav-item-background-color-focus: var(--gl-action-neutral-background-color-focus); /** Used for the background of a default navigation item in the focus state. */
1022
+ --gl-nav-item-selected-foreground-color-default: var(--gl-action-selected-foreground-color-default); /** Used for the foreground of a selected navigation item in the default state. */
1023
+ --gl-nav-item-selected-background-color-default: var(--gl-action-selected-background-color-default); /** Used for the background of a selected navigation item in the default state. */
1024
+ --gl-nav-item-selected-background-color-hover: var(--gl-action-selected-background-color-hover); /** Used for the background of a selected navigation item in the hover state. */
1025
+ --gl-nav-item-selected-background-color-active: var(--gl-action-selected-background-color-active); /** Used for the background of a selected navigation item in the active state. */
1015
1026
  --gl-progress-bar-indicator-color-default: var(--gl-status-info-icon-color); /** Used for the indicator color for the primary progress-bar variant. */
1016
1027
  --gl-progress-bar-indicator-color-success: var(--gl-status-success-icon-color); /** Used for the indicator color for the success progress-bar variant. */
1017
1028
  --gl-progress-bar-indicator-color-warning: var(--gl-status-warning-icon-color); /** Used for the indicator color for the warning progress-bar variant. */
@@ -1201,6 +1212,12 @@
1201
1212
  --gl-dropdown-option-text-color-hover: var(--gl-action-neutral-foreground-color-hover); /** Used for the text of a dropdown option in the hover state. */
1202
1213
  --gl-dropdown-option-text-color-focus: var(--gl-action-neutral-foreground-color-focus); /** Used for the text of a dropdown option in the focus state. */
1203
1214
  --gl-dropdown-option-text-color-active: var(--gl-action-neutral-foreground-color-active); /** Used for the text of a dropdown option in the active state. */
1215
+ --gl-nav-item-border-radius: var(--gl-action-border-radius); /** Used for the border radius of a navigation item */
1216
+ --gl-nav-item-foreground-color-hover: var(--gl-action-neutral-foreground-color-hover); /** Used for the foreground of a default navigation item in the hover state. */
1217
+ --gl-nav-item-foreground-color-focus: var(--gl-action-neutral-foreground-color-focus); /** Used for the foreground of a default navigation item in the focus state. */
1218
+ --gl-nav-item-foreground-color-active: var(--gl-action-neutral-foreground-color-active); /** Used for the foreground of a default navigation item in the active state. */
1219
+ --gl-nav-item-selected-foreground-color-hover: var(--gl-action-selected-foreground-color-hover); /** Used for the foreground of a selected navigation item in the hover state. */
1220
+ --gl-nav-item-selected-background-color-focus: var(--gl-action-selected-background-color-focus); /** Used for the background of a selected navigation item in the focus state. */
1204
1221
  --gl-toggle-switch-icon-color-unchecked-focus: var(--gl-action-strong-neutral-background-color-focus); /** Used for the icon color of an unchecked toggle switch in the focus state. */
1205
1222
  --gl-toggle-switch-icon-color-checked-focus: var(--gl-action-strong-confirm-background-color-focus); /** Used for the icon color of a checked toggle switch in the focus state. */
1206
1223
  --gl-token-border-radius: var(--gl-border-radius-default); /** Used for token border radius. */
@@ -1210,9 +1227,11 @@
1210
1227
  --gl-action-strong-confirm-border-color-focus: var(--gl-action-strong-confirm-border-color-hover); /** Used for the border of a strong confirm action in the focus state. */
1211
1228
  --gl-action-strong-neutral-border-color-focus: var(--gl-action-strong-neutral-border-color-hover); /** Used for the border of a strong neutral action in the focus state. */
1212
1229
  --gl-button-confirm-primary-foreground-color-focus: var(--gl-action-strong-confirm-foreground-color-focus); /** Used for the foreground of a confirm (positive) primary button in the focus state. */
1230
+ --gl-nav-item-selected-foreground-color-focus: var(--gl-action-selected-foreground-color-focus); /** Used for the foreground of a selected navigation item in the focus state. */
1213
1231
  --gl-action-selected-foreground-color-active: var(--gl-action-selected-foreground-color-focus); /** Used for the foreground of a selected action in the active state. */
1214
1232
  --gl-action-strong-confirm-foreground-color-active: var(--gl-action-strong-confirm-foreground-color-focus); /** Used for the foreground of a strong confirm action in the active state. */
1215
1233
  --gl-action-strong-confirm-border-color-active: var(--gl-action-strong-confirm-border-color-focus); /** Used for the border of a strong confirm action in the active state. */
1216
1234
  --gl-action-strong-neutral-border-color-active: var(--gl-action-strong-neutral-border-color-focus); /** Used for the border of a strong neutral action in the active state. */
1217
1235
  --gl-button-confirm-primary-foreground-color-active: var(--gl-action-strong-confirm-foreground-color-active); /** Used for the foreground of a confirm (positive) primary button in the active state. */
1236
+ --gl-nav-item-selected-foreground-color-active: var(--gl-action-selected-foreground-color-active); /** Used for the foreground of a selected navigation item in the active state. */
1218
1237
  }
@@ -4795,6 +4795,196 @@
4795
4795
  ]
4796
4796
  }
4797
4797
  },
4798
+ "🔒/nav-item-border-radius": {
4799
+ "$value": "{action-border-radius}",
4800
+ "$type": "dimension",
4801
+ "$description": "Used for the border radius of a navigation item",
4802
+ "$extensions": {
4803
+ "com.figma.scopes": [
4804
+ "CORNER_RADIUS"
4805
+ ]
4806
+ }
4807
+ },
4808
+ "🔒/nav-item-font-size": {
4809
+ "$value": "{font-size-300}",
4810
+ "$type": "dimension",
4811
+ "$description": "Used for the font size of a navigation item",
4812
+ "$extensions": {
4813
+ "com.figma.scopes": [
4814
+ "FONT_SIZE"
4815
+ ]
4816
+ }
4817
+ },
4818
+ "🔒/nav-item-font-weight": {
4819
+ "$value": 425,
4820
+ "$type": "fontWeight",
4821
+ "$description": "Used for the font weight of a navigation item",
4822
+ "$extensions": {
4823
+ "com.figma.scopes": [
4824
+ "FONT_WEIGHT"
4825
+ ]
4826
+ }
4827
+ },
4828
+ "🔒/nav-item-foreground-color-default": {
4829
+ "$value": "{action-neutral-foreground-color-default}",
4830
+ "$type": "color",
4831
+ "$description": "Used for the foreground of a default navigation item in the default state.",
4832
+ "$extensions": {
4833
+ "com.figma.scopes": [
4834
+ "TEXT_FILL"
4835
+ ]
4836
+ }
4837
+ },
4838
+ "🔒/nav-item-foreground-color-hover": {
4839
+ "$value": "{action-neutral-foreground-color-hover}",
4840
+ "$type": "color",
4841
+ "$description": "Used for the foreground of a default navigation item in the hover state.",
4842
+ "$extensions": {
4843
+ "com.figma.scopes": [
4844
+ "TEXT_FILL"
4845
+ ]
4846
+ }
4847
+ },
4848
+ "🔒/nav-item-foreground-color-focus": {
4849
+ "$value": "{action-neutral-foreground-color-focus}",
4850
+ "$type": "color",
4851
+ "$description": "Used for the foreground of a default navigation item in the focus state.",
4852
+ "$extensions": {
4853
+ "com.figma.scopes": [
4854
+ "TEXT_FILL"
4855
+ ]
4856
+ }
4857
+ },
4858
+ "🔒/nav-item-foreground-color-active": {
4859
+ "$value": "{action-neutral-foreground-color-active}",
4860
+ "$type": "color",
4861
+ "$description": "Used for the foreground of a default navigation item in the active state.",
4862
+ "$extensions": {
4863
+ "com.figma.scopes": [
4864
+ "TEXT_FILL"
4865
+ ]
4866
+ }
4867
+ },
4868
+ "🔒/nav-item-background-color-default": {
4869
+ "$value": "{action-neutral-background-color-default}",
4870
+ "$type": "color",
4871
+ "$description": "Used for the background of a default navigation item in the default state.",
4872
+ "$extensions": {
4873
+ "com.figma.scopes": [
4874
+ "SHAPE_FILL"
4875
+ ]
4876
+ }
4877
+ },
4878
+ "🔒/nav-item-background-color-hover": {
4879
+ "$value": "{action-neutral-background-color-hover}",
4880
+ "$type": "color",
4881
+ "$description": "Used for the background of a default navigation item in the hover state.",
4882
+ "$extensions": {
4883
+ "com.figma.scopes": [
4884
+ "SHAPE_FILL"
4885
+ ]
4886
+ }
4887
+ },
4888
+ "🔒/nav-item-background-color-focus": {
4889
+ "$value": "{action-neutral-background-color-focus}",
4890
+ "$type": "color",
4891
+ "$description": "Used for the background of a default navigation item in the focus state.",
4892
+ "$extensions": {
4893
+ "com.figma.scopes": [
4894
+ "SHAPE_FILL"
4895
+ ]
4896
+ }
4897
+ },
4898
+ "🔒/nav-item-background-color-active": {
4899
+ "$value": "{action-neutral-background-color-active}",
4900
+ "$type": "color",
4901
+ "$description": "Used for the background of a default navigation item in the active state.",
4902
+ "$extensions": {
4903
+ "com.figma.scopes": [
4904
+ "SHAPE_FILL"
4905
+ ]
4906
+ }
4907
+ },
4908
+ "🔒/nav-item-selected-foreground-color-default": {
4909
+ "$value": "{action-selected-foreground-color-default}",
4910
+ "$type": "color",
4911
+ "$description": "Used for the foreground of a selected navigation item in the default state.",
4912
+ "$extensions": {
4913
+ "com.figma.scopes": [
4914
+ "TEXT_FILL"
4915
+ ]
4916
+ }
4917
+ },
4918
+ "🔒/nav-item-selected-foreground-color-hover": {
4919
+ "$value": "{action-selected-foreground-color-hover}",
4920
+ "$type": "color",
4921
+ "$description": "Used for the foreground of a selected navigation item in the hover state.",
4922
+ "$extensions": {
4923
+ "com.figma.scopes": [
4924
+ "TEXT_FILL"
4925
+ ]
4926
+ }
4927
+ },
4928
+ "🔒/nav-item-selected-foreground-color-focus": {
4929
+ "$value": "{action-selected-foreground-color-focus}",
4930
+ "$type": "color",
4931
+ "$description": "Used for the foreground of a selected navigation item in the focus state.",
4932
+ "$extensions": {
4933
+ "com.figma.scopes": [
4934
+ "TEXT_FILL"
4935
+ ]
4936
+ }
4937
+ },
4938
+ "🔒/nav-item-selected-foreground-color-active": {
4939
+ "$value": "{action-selected-foreground-color-active}",
4940
+ "$type": "color",
4941
+ "$description": "Used for the foreground of a selected navigation item in the active state.",
4942
+ "$extensions": {
4943
+ "com.figma.scopes": [
4944
+ "TEXT_FILL"
4945
+ ]
4946
+ }
4947
+ },
4948
+ "🔒/nav-item-selected-background-color-default": {
4949
+ "$value": "{action-selected-background-color-default}",
4950
+ "$type": "color",
4951
+ "$description": "Used for the background of a selected navigation item in the default state.",
4952
+ "$extensions": {
4953
+ "com.figma.scopes": [
4954
+ "SHAPE_FILL"
4955
+ ]
4956
+ }
4957
+ },
4958
+ "🔒/nav-item-selected-background-color-hover": {
4959
+ "$value": "{action-selected-background-color-hover}",
4960
+ "$type": "color",
4961
+ "$description": "Used for the background of a selected navigation item in the hover state.",
4962
+ "$extensions": {
4963
+ "com.figma.scopes": [
4964
+ "SHAPE_FILL"
4965
+ ]
4966
+ }
4967
+ },
4968
+ "🔒/nav-item-selected-background-color-focus": {
4969
+ "$value": "{action-selected-background-color-focus}",
4970
+ "$type": "color",
4971
+ "$description": "Used for the background of a selected navigation item in the focus state.",
4972
+ "$extensions": {
4973
+ "com.figma.scopes": [
4974
+ "SHAPE_FILL"
4975
+ ]
4976
+ }
4977
+ },
4978
+ "🔒/nav-item-selected-background-color-active": {
4979
+ "$value": "{action-selected-background-color-active}",
4980
+ "$type": "color",
4981
+ "$description": "Used for the background of a selected navigation item in the active state.",
4982
+ "$extensions": {
4983
+ "com.figma.scopes": [
4984
+ "SHAPE_FILL"
4985
+ ]
4986
+ }
4987
+ },
4798
4988
  "🔒/progress-bar-indicator-color-default": {
4799
4989
  "$value": "{status-info-icon-color}",
4800
4990
  "$type": "color",