@vsn-ux/gaia-styles 0.6.2 → 0.6.4

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.
@@ -0,0 +1,351 @@
1
+ .ga-side-navigation {
2
+ @apply shadow-north flex h-full w-80 flex-col rounded bg-(--ga-color-surface-primary) p-1;
3
+
4
+ .ga-side-navigation__header {
5
+ @apply relative z-10 flex shrink-0 flex-col;
6
+ }
7
+
8
+ .ga-side-navigation__switcher {
9
+ @apply relative flex cursor-pointer items-center justify-between gap-2 rounded p-3 outline-none;
10
+
11
+ &:hover {
12
+ @apply bg-(--ga-color-surface-action-hover-2);
13
+ }
14
+
15
+ &:focus-visible {
16
+ &::after {
17
+ @apply absolute inset-[3px] rounded border-2 border-(--ga-color-border-focus) content-[''];
18
+ }
19
+ }
20
+
21
+ &:active {
22
+ .ga-side-navigation__switcher-title {
23
+ @apply font-semibold;
24
+ }
25
+ }
26
+
27
+ &.ga-side-navigation__switcher--active {
28
+ @apply bg-(--ga-color-surface-selected);
29
+
30
+ .ga-side-navigation__switcher-title {
31
+ @apply font-semibold;
32
+ }
33
+ }
34
+ }
35
+
36
+ .ga-side-navigation__switcher-title {
37
+ @apply min-w-0 flex-1 truncate text-left text-lg font-medium text-(--ga-color-text-action);
38
+ }
39
+
40
+ .ga-side-navigation__switcher-action {
41
+ @apply flex shrink-0 cursor-pointer items-center py-2 text-(--ga-color-icon-secondary);
42
+
43
+ &:hover {
44
+ @apply text-(--ga-color-icon-action);
45
+ }
46
+ }
47
+
48
+ .ga-side-navigation__switcher-dropdown {
49
+ @apply shadow-north absolute top-full right-0 left-0 z-10 flex max-h-80 flex-col overflow-y-auto rounded bg-(--ga-color-surface-primary) px-2 pt-4 pb-2;
50
+ }
51
+
52
+ .ga-side-navigation__switcher-dropdown-header {
53
+ @apply px-4 pt-1 pb-1 text-sm font-semibold text-(--ga-color-text-disable-selected) uppercase;
54
+ }
55
+
56
+ .ga-side-navigation__switcher-dropdown-item {
57
+ @apply animate-hover relative flex cursor-pointer items-center gap-2 rounded p-4 text-left transition-colors;
58
+
59
+ &:hover {
60
+ @apply bg-(--ga-color-surface-action-hover-2);
61
+ }
62
+
63
+ &:focus-visible {
64
+ @apply outline-none;
65
+
66
+ &::after {
67
+ @apply absolute inset-[3px] rounded border-2 border-(--ga-color-border-focus) content-[''];
68
+ }
69
+ }
70
+
71
+ &:active {
72
+ .ga-side-navigation__switcher-dropdown-title {
73
+ @apply font-semibold;
74
+ }
75
+ }
76
+ }
77
+
78
+ .ga-side-navigation__switcher-dropdown-title {
79
+ @apply text-md min-w-0 flex-1 truncate text-left font-medium text-(--ga-color-text-action);
80
+ }
81
+
82
+ .ga-side-navigation__switcher-dropdown-external {
83
+ @apply h-4 w-4 shrink-0 self-center text-(--ga-color-icon-secondary);
84
+ }
85
+
86
+ .ga-side-navigation__search {
87
+ @apply mx-3 my-2;
88
+
89
+ &.ga-input {
90
+ @apply w-auto;
91
+
92
+ &:not(:hover) {
93
+ @apply border-(--ga-color-surface-page) bg-(--ga-color-surface-page);
94
+ }
95
+
96
+ input::-webkit-search-cancel-button {
97
+ @apply hidden;
98
+ }
99
+ }
100
+ }
101
+
102
+ .ga-side-navigation__search-shortcut {
103
+ @apply font-inter shrink-0 cursor-default rounded border border-(--ga-color-border-disabled) bg-white px-1 py-px text-xs text-(--ga-color-icon-on-disabled);
104
+ }
105
+
106
+ .ga-side-navigation__body {
107
+ @apply flex flex-1 flex-col overflow-y-auto px-3 py-2;
108
+ }
109
+
110
+ .ga-side-navigation__item {
111
+ @apply text-md animate-hover relative flex cursor-pointer flex-row items-center gap-3 rounded px-4 py-3 text-left transition-colors;
112
+
113
+ &:hover {
114
+ @apply bg-(--ga-color-surface-action-hover-2);
115
+ }
116
+
117
+ &:focus,
118
+ &:focus-visible {
119
+ @apply outline-none;
120
+ }
121
+
122
+ &:active:not(.ga-side-navigation__item--disabled) {
123
+ .ga-side-navigation__item-label {
124
+ @apply font-medium;
125
+ }
126
+ }
127
+
128
+ &.ga-side-navigation__item--active {
129
+ @apply bg-(--ga-color-surface-selected);
130
+
131
+ &::before {
132
+ @apply absolute top-1/2 left-0 h-8 w-1 -translate-y-1/2 rounded-r bg-(--ga-color-surface-action) content-[''];
133
+ }
134
+
135
+ .ga-side-navigation__item-label {
136
+ @apply font-semibold;
137
+ }
138
+ }
139
+
140
+ &.ga-side-navigation__item--expanded {
141
+ .ga-side-navigation__item-label {
142
+ @apply font-semibold;
143
+ }
144
+ }
145
+
146
+ &.ga-side-navigation__item--disabled {
147
+ @apply cursor-not-allowed;
148
+
149
+ &:hover {
150
+ @apply bg-transparent;
151
+ }
152
+
153
+ .ga-side-navigation__item-icon {
154
+ @apply text-(--ga-color-icon-disabled);
155
+ }
156
+
157
+ .ga-side-navigation__item-label {
158
+ @apply text-(--ga-color-text-disabled);
159
+ }
160
+ }
161
+ }
162
+
163
+ .ga-side-navigation__item--level-2 {
164
+ @apply pl-8;
165
+ }
166
+
167
+ .ga-side-navigation__item--level-3 {
168
+ @apply pl-14;
169
+ }
170
+
171
+ .ga-side-navigation__item--level-4 {
172
+ @apply pl-20;
173
+ }
174
+
175
+ .ga-side-navigation__item-icon {
176
+ @apply h-4 w-4 shrink-0 text-(--ga-color-icon-primary);
177
+ }
178
+
179
+ .ga-side-navigation__item-content {
180
+ @apply flex min-w-0 flex-1 flex-col;
181
+ }
182
+
183
+ .ga-side-navigation__item-label {
184
+ @apply text-md truncate text-(--ga-color-text-action);
185
+ }
186
+
187
+ .ga-side-navigation__item-description {
188
+ @apply truncate text-xs text-(--ga-color-text-secondary);
189
+ }
190
+
191
+ .ga-side-navigation__item-external {
192
+ @apply h-4 w-4 shrink-0 self-center text-(--ga-color-icon-secondary);
193
+ }
194
+
195
+ .ga-side-navigation__recent-title {
196
+ @apply px-4 py-3 text-sm font-medium text-(--ga-color-text-disable-selected) uppercase;
197
+ }
198
+
199
+ .ga-side-navigation__recent-item {
200
+ @apply animate-hover relative flex cursor-pointer flex-row items-center gap-3 rounded py-2 pl-4 text-left transition-colors;
201
+
202
+ &:hover {
203
+ @apply bg-(--ga-color-surface-action-hover-2);
204
+ }
205
+
206
+ &:focus,
207
+ &:focus-visible {
208
+ @apply outline-none;
209
+ }
210
+ }
211
+
212
+ .ga-side-navigation__recent-item-icon {
213
+ @apply shrink-0 text-(--ga-color-icon-primary);
214
+ }
215
+
216
+ .ga-side-navigation__recent-item-content {
217
+ @apply flex min-w-0 flex-col;
218
+ }
219
+
220
+ .ga-side-navigation__recent-item-label {
221
+ @apply text-md truncate leading-6 font-medium text-(--ga-color-text-action);
222
+ }
223
+
224
+ .ga-side-navigation__recent-item-description {
225
+ @apply truncate text-xs text-(--ga-color-text-on-disabled);
226
+ }
227
+
228
+ .ga-side-navigation__search-results-title {
229
+ @apply px-6 text-sm leading-6 font-medium text-(--ga-color-text-disable-selected);
230
+ }
231
+
232
+ .ga-side-navigation__search-results-item {
233
+ @apply animate-hover relative mx-3 flex cursor-pointer flex-row items-center gap-3 rounded px-3 py-2 text-left transition-colors;
234
+
235
+ &:hover {
236
+ @apply bg-(--ga-color-surface-action-hover-2);
237
+ }
238
+
239
+ &:focus-visible {
240
+ @apply outline-none;
241
+
242
+ &::after {
243
+ @apply absolute inset-[3px] rounded border-2 border-(--ga-color-border-focus) content-[''];
244
+ }
245
+ }
246
+ }
247
+
248
+ .ga-side-navigation__search-results-item-content {
249
+ @apply flex min-w-0 flex-1 flex-col;
250
+ }
251
+
252
+ .ga-side-navigation__search-results-item-label {
253
+ @apply text-md truncate leading-6 font-medium text-(--ga-color-text-action);
254
+ }
255
+
256
+ .ga-side-navigation__search-results-item-description {
257
+ @apply truncate text-xs text-(--ga-color-text-on-disabled);
258
+ }
259
+
260
+ .ga-side-navigation__search-results-item-external {
261
+ @apply h-4 w-4 shrink-0 self-center text-(--ga-color-icon-secondary);
262
+ }
263
+
264
+ .ga-side-navigation__footer {
265
+ @apply relative z-10 shrink-0 border-t border-(--ga-color-border-tertiary) pt-1;
266
+ }
267
+
268
+ .ga-side-navigation__user {
269
+ @apply relative flex cursor-pointer items-center gap-3 rounded px-4 py-3 outline-none;
270
+
271
+ &:hover {
272
+ @apply bg-(--ga-color-surface-action-hover-2);
273
+ }
274
+
275
+ &:focus-visible {
276
+ &::after {
277
+ @apply absolute inset-[3px] rounded border-2 border-(--ga-color-border-focus) content-[''];
278
+ }
279
+ }
280
+
281
+ &.ga-side-navigation__user--active {
282
+ @apply bg-(--ga-color-surface-selected);
283
+ }
284
+ }
285
+
286
+ .ga-side-navigation__user-avatar {
287
+ @apply h-10 w-10 shrink-0 rounded-full;
288
+ }
289
+
290
+ .ga-side-navigation__user-name {
291
+ @apply text-md flex-1 truncate font-medium text-(--ga-color-text-body);
292
+ }
293
+
294
+ .ga-side-navigation__user-action {
295
+ @apply flex shrink-0 cursor-pointer items-center text-(--ga-color-icon-secondary);
296
+
297
+ &:hover {
298
+ @apply text-(--ga-color-icon-action);
299
+ }
300
+ }
301
+
302
+ .ga-side-navigation__footer-dropdown {
303
+ @apply shadow-south absolute right-0 bottom-full left-0 z-10 flex max-h-80 flex-col overflow-y-auto rounded bg-(--ga-color-surface-primary) p-3;
304
+ }
305
+
306
+ .ga-side-navigation__footer-dropdown-item {
307
+ @apply animate-hover relative flex cursor-pointer items-center gap-3 rounded py-3 pr-2 pl-4 text-left transition-colors;
308
+
309
+ &:hover {
310
+ @apply bg-(--ga-color-surface-action-hover-2);
311
+ }
312
+
313
+ &:focus-visible {
314
+ @apply outline-none;
315
+
316
+ &::after {
317
+ @apply absolute inset-[3px] rounded border-2 border-(--ga-color-border-focus) content-[''];
318
+ }
319
+ }
320
+
321
+ &:active {
322
+ .ga-side-navigation__footer-dropdown-title {
323
+ @apply font-semibold;
324
+ }
325
+ }
326
+
327
+ &.ga-side-navigation__footer-dropdown-item--disabled {
328
+ @apply cursor-not-allowed;
329
+
330
+ &:hover {
331
+ @apply bg-transparent;
332
+ }
333
+
334
+ .ga-side-navigation__footer-dropdown-icon {
335
+ @apply text-(--ga-color-icon-disabled);
336
+ }
337
+
338
+ .ga-side-navigation__footer-dropdown-title {
339
+ @apply text-(--ga-color-text-disabled);
340
+ }
341
+ }
342
+ }
343
+
344
+ .ga-side-navigation__footer-dropdown-icon {
345
+ @apply h-4 w-4 shrink-0 text-(--ga-color-icon-primary);
346
+ }
347
+
348
+ .ga-side-navigation__footer-dropdown-title {
349
+ @apply text-md min-w-0 flex-1 truncate text-left font-medium text-(--ga-color-text-action);
350
+ }
351
+ }
@@ -1,5 +1,6 @@
1
1
  @import './components/avatar.css';
2
2
  @import './components/badge.css';
3
+ @import './components/breadcrumbs.css';
3
4
  @import './components/button.css';
4
5
  @import './components/card.css';
5
6
  @import './components/calendar.css';
@@ -25,3 +26,4 @@
25
26
  @import './components/tooltip.css';
26
27
  @import './components/link.css';
27
28
  @import './components/quick-filter-button.css';
29
+ @import './components/side-navigation.css';