@servicetitan/navigation 10.7.0 → 11.0.0-canary.237.0ce6038.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/dist/components/header-navigation/header-navigation-extra.stories.d.ts.map +1 -1
  2. package/dist/components/header-navigation/header-navigation-extra.stories.js +5 -5
  3. package/dist/components/header-navigation/header-navigation-extra.stories.js.map +1 -1
  4. package/dist/components/header-navigation/header-navigation-links.d.ts.map +1 -1
  5. package/dist/components/header-navigation/header-navigation-links.js +2 -2
  6. package/dist/components/header-navigation/header-navigation-links.js.map +1 -1
  7. package/dist/components/header-navigation/header-navigation-stacked.stories.d.ts.map +1 -1
  8. package/dist/components/header-navigation/header-navigation-stacked.stories.js +1 -1
  9. package/dist/components/header-navigation/header-navigation-stacked.stories.js.map +1 -1
  10. package/dist/components/header-navigation/header-navigation.stories.d.ts.map +1 -1
  11. package/dist/components/header-navigation/header-navigation.stories.js +2 -2
  12. package/dist/components/header-navigation/header-navigation.stories.js.map +1 -1
  13. package/dist/components/header-navigation/with-tooltip.d.ts +1 -1
  14. package/dist/components/header-navigation/with-tooltip.d.ts.map +1 -1
  15. package/dist/components/left-navigation/header-navigation-tiny.stories.d.ts.map +1 -1
  16. package/dist/components/left-navigation/header-navigation-tiny.stories.js +2 -2
  17. package/dist/components/left-navigation/header-navigation-tiny.stories.js.map +1 -1
  18. package/dist/components/links.d.ts.map +1 -1
  19. package/dist/components/links.js +7 -7
  20. package/dist/components/links.js.map +1 -1
  21. package/dist/components/logo/logo-company-title.d.ts +1 -0
  22. package/dist/components/logo/logo-company-title.d.ts.map +1 -1
  23. package/dist/components/logo/logo-company-title.js +2 -2
  24. package/dist/components/logo/logo-company-title.js.map +1 -1
  25. package/dist/components/profile-dropdown/profile-dropdown.d.ts +6 -3
  26. package/dist/components/profile-dropdown/profile-dropdown.d.ts.map +1 -1
  27. package/dist/components/profile-dropdown/profile-dropdown.js +7 -8
  28. package/dist/components/profile-dropdown/profile-dropdown.js.map +1 -1
  29. package/dist/components/profile-dropdown/profile-dropdown.module.less +4 -0
  30. package/dist/components/profile-dropdown/profile-dropdown.stories.js +2 -2
  31. package/dist/components/profile-dropdown/profile-dropdown.stories.js.map +1 -1
  32. package/dist/components/titan-layout/index.d.ts +6 -0
  33. package/dist/components/titan-layout/index.d.ts.map +1 -0
  34. package/dist/components/titan-layout/index.js +6 -0
  35. package/dist/components/titan-layout/index.js.map +1 -0
  36. package/dist/components/titan-layout/interface-internal.d.ts +6 -0
  37. package/dist/components/titan-layout/interface-internal.d.ts.map +1 -0
  38. package/dist/components/titan-layout/interface-internal.js +2 -0
  39. package/dist/components/titan-layout/interface-internal.js.map +1 -0
  40. package/dist/components/titan-layout/interface.d.ts +21 -0
  41. package/dist/components/titan-layout/interface.d.ts.map +1 -0
  42. package/dist/components/titan-layout/interface.js +2 -0
  43. package/dist/components/titan-layout/interface.js.map +1 -0
  44. package/dist/components/titan-layout/layout-context.d.ts +20 -0
  45. package/dist/components/titan-layout/layout-context.d.ts.map +1 -0
  46. package/dist/components/titan-layout/layout-context.js +12 -0
  47. package/dist/components/titan-layout/layout-context.js.map +1 -0
  48. package/dist/components/titan-layout/layout-header-links.d.ts +7 -0
  49. package/dist/components/titan-layout/layout-header-links.d.ts.map +1 -0
  50. package/dist/components/titan-layout/layout-header-links.js +32 -0
  51. package/dist/components/titan-layout/layout-header-links.js.map +1 -0
  52. package/dist/components/titan-layout/layout-header.d.ts +20 -0
  53. package/dist/components/titan-layout/layout-header.d.ts.map +1 -0
  54. package/dist/components/titan-layout/layout-header.js +11 -0
  55. package/dist/components/titan-layout/layout-header.js.map +1 -0
  56. package/dist/components/titan-layout/layout-header.module.less +154 -0
  57. package/dist/components/titan-layout/layout-logo.d.ts +12 -0
  58. package/dist/components/titan-layout/layout-logo.d.ts.map +1 -0
  59. package/dist/components/titan-layout/layout-logo.js +15 -0
  60. package/dist/components/titan-layout/layout-logo.js.map +1 -0
  61. package/dist/components/titan-layout/layout-logo.stories.d.ts +13 -0
  62. package/dist/components/titan-layout/layout-logo.stories.d.ts.map +1 -0
  63. package/dist/components/titan-layout/layout-logo.stories.js +17 -0
  64. package/dist/components/titan-layout/layout-logo.stories.js.map +1 -0
  65. package/dist/components/titan-layout/layout-profile.d.ts +9 -0
  66. package/dist/components/titan-layout/layout-profile.d.ts.map +1 -0
  67. package/dist/components/titan-layout/layout-profile.js +44 -0
  68. package/dist/components/titan-layout/layout-profile.js.map +1 -0
  69. package/dist/components/titan-layout/layout-profile.stories.d.ts +13 -0
  70. package/dist/components/titan-layout/layout-profile.stories.d.ts.map +1 -0
  71. package/dist/components/titan-layout/layout-profile.stories.js +13 -0
  72. package/dist/components/titan-layout/layout-profile.stories.js.map +1 -0
  73. package/dist/components/titan-layout/layout-sidebar-links-internal.d.ts +46 -0
  74. package/dist/components/titan-layout/layout-sidebar-links-internal.d.ts.map +1 -0
  75. package/dist/components/titan-layout/layout-sidebar-links-internal.js +61 -0
  76. package/dist/components/titan-layout/layout-sidebar-links-internal.js.map +1 -0
  77. package/dist/components/titan-layout/layout-sidebar-links.d.ts +6 -0
  78. package/dist/components/titan-layout/layout-sidebar-links.d.ts.map +1 -0
  79. package/dist/components/titan-layout/layout-sidebar-links.js +21 -0
  80. package/dist/components/titan-layout/layout-sidebar-links.js.map +1 -0
  81. package/dist/components/titan-layout/layout-sidebar.d.ts +17 -0
  82. package/dist/components/titan-layout/layout-sidebar.d.ts.map +1 -0
  83. package/dist/components/titan-layout/layout-sidebar.js +65 -0
  84. package/dist/components/titan-layout/layout-sidebar.js.map +1 -0
  85. package/dist/components/titan-layout/layout-sidebar.module.less +513 -0
  86. package/dist/components/titan-layout/titan-layout.d.ts +36 -0
  87. package/dist/components/titan-layout/titan-layout.d.ts.map +1 -0
  88. package/dist/components/titan-layout/titan-layout.js +109 -0
  89. package/dist/components/titan-layout/titan-layout.js.map +1 -0
  90. package/dist/components/titan-layout/titan-layout.module.less +76 -0
  91. package/dist/components/titan-layout/titan-layout.stories.d.ts +18 -0
  92. package/dist/components/titan-layout/titan-layout.stories.d.ts.map +1 -0
  93. package/dist/components/titan-layout/titan-layout.stories.js +62 -0
  94. package/dist/components/titan-layout/titan-layout.stories.js.map +1 -0
  95. package/dist/components/titan-layout/with-tooltip.d.ts +4 -0
  96. package/dist/components/titan-layout/with-tooltip.d.ts.map +1 -0
  97. package/dist/components/titan-layout/with-tooltip.js +4 -0
  98. package/dist/components/titan-layout/with-tooltip.js.map +1 -0
  99. package/dist/index.d.ts +2 -1
  100. package/dist/index.d.ts.map +1 -1
  101. package/dist/index.js +2 -1
  102. package/dist/index.js.map +1 -1
  103. package/dist/test/data.d.ts.map +1 -1
  104. package/dist/test/data.js +3 -3
  105. package/dist/test/data.js.map +1 -1
  106. package/dist/utils/navigation-legacy.d.ts +3 -1
  107. package/dist/utils/navigation-legacy.d.ts.map +1 -1
  108. package/dist/utils/use-breakpoint.d.ts +7 -0
  109. package/dist/utils/use-breakpoint.d.ts.map +1 -0
  110. package/dist/utils/use-breakpoint.js +13 -0
  111. package/dist/utils/use-breakpoint.js.map +1 -0
  112. package/package.json +5 -6
  113. package/src/components/header-navigation/header-navigation-extra.stories.tsx +7 -0
  114. package/src/components/header-navigation/header-navigation-links.tsx +2 -0
  115. package/src/components/header-navigation/header-navigation-stacked.stories.tsx +4 -0
  116. package/src/components/header-navigation/header-navigation.stories.tsx +5 -0
  117. package/src/components/left-navigation/header-navigation-tiny.stories.tsx +6 -0
  118. package/src/components/left-navigation/side-navigation-links.tsx +1 -1
  119. package/src/components/links.tsx +33 -13
  120. package/src/components/logo/logo-company-title.tsx +8 -6
  121. package/src/components/profile-dropdown/profile-dropdown.module.less +4 -0
  122. package/src/components/profile-dropdown/profile-dropdown.stories.tsx +4 -4
  123. package/src/components/profile-dropdown/profile-dropdown.tsx +43 -46
  124. package/src/components/titan-layout/index.ts +5 -0
  125. package/src/components/titan-layout/interface-internal.ts +6 -0
  126. package/src/components/titan-layout/interface.ts +26 -0
  127. package/src/components/titan-layout/layout-context.tsx +30 -0
  128. package/src/components/titan-layout/layout-header-links.tsx +144 -0
  129. package/src/components/titan-layout/layout-header.module.less +154 -0
  130. package/src/components/titan-layout/layout-header.module.less.d.ts +16 -0
  131. package/src/components/titan-layout/layout-header.tsx +86 -0
  132. package/src/components/titan-layout/layout-logo.stories.tsx +31 -0
  133. package/src/components/titan-layout/layout-logo.tsx +57 -0
  134. package/src/components/titan-layout/layout-profile.stories.tsx +37 -0
  135. package/src/components/titan-layout/layout-profile.tsx +116 -0
  136. package/src/components/titan-layout/layout-sidebar-links-internal.tsx +265 -0
  137. package/src/components/titan-layout/layout-sidebar-links.tsx +56 -0
  138. package/src/components/titan-layout/layout-sidebar.module.less +513 -0
  139. package/src/components/titan-layout/layout-sidebar.module.less.d.ts +48 -0
  140. package/src/components/titan-layout/layout-sidebar.tsx +295 -0
  141. package/src/components/titan-layout/titan-layout.module.less +76 -0
  142. package/src/components/titan-layout/titan-layout.module.less.d.ts +13 -0
  143. package/src/components/titan-layout/titan-layout.stories.tsx +194 -0
  144. package/src/components/titan-layout/titan-layout.tsx +272 -0
  145. package/src/components/titan-layout/with-tooltip.tsx +16 -0
  146. package/src/index.ts +2 -1
  147. package/src/test/data.tsx +3 -2
  148. package/src/utils/navigation-legacy.ts +3 -1
  149. package/src/utils/use-breakpoint.ts +19 -0
@@ -0,0 +1,513 @@
1
+ /* stylelint-disable no-descending-specificity */
2
+ @import (reference) '@servicetitan/tokens/core/tokens.less';
3
+
4
+ @text-color: var(--colorsTextInverted, @color-white);
5
+ @text-color-active: var(--colorsTextPrimarySubdued, @color-blue-300);
6
+ @border-color: var(--colorsTextOnGrey, @color-neutral-200);
7
+ @bg-color: #0f1d26;
8
+ @bg-color-hover: rgba(255, 255, 255, 0.08);
9
+ @bg-color-active: rgba(120, 187, 250, 0.2);
10
+
11
+ .nav {
12
+ background-color: @bg-color;
13
+ display: flex;
14
+ flex-direction: column;
15
+ align-items: stretch;
16
+ }
17
+
18
+ // mobile version
19
+ .nav-drawer {
20
+ display: none;
21
+ position: fixed;
22
+ max-width: 400px;
23
+ width: 0;
24
+ top: 0;
25
+ bottom: 0;
26
+ left: 0;
27
+ z-index: 991;
28
+
29
+ .nav-main {
30
+ padding-left: @spacing-2;
31
+ padding-right: @spacing-2;
32
+ }
33
+ .nav-close-wrapper {
34
+ display: flex;
35
+ justify-content: flex-end;
36
+ margin-right: -@spacing-2;
37
+
38
+ .nav-close {
39
+ padding-top: @spacing-2;
40
+ padding-left: @spacing-2;
41
+ padding-right: @spacing-2;
42
+ }
43
+ }
44
+
45
+ .nav-item {
46
+ margin-bottom: @spacing-half;
47
+ }
48
+ .nav-top {
49
+ margin-bottom: @spacing-half;
50
+ }
51
+ .nav-bottom {
52
+ .divider {
53
+ margin-bottom: @spacing-half;
54
+ }
55
+ }
56
+
57
+ .submenu {
58
+ .submenu-item {
59
+ margin-bottom: @spacing-half;
60
+ }
61
+ }
62
+ }
63
+
64
+ // mobile version opened
65
+ .nav-drawer-opened {
66
+ display: flex;
67
+ width: 90vw;
68
+ }
69
+
70
+ @media only screen and (min-width: 361px) {
71
+ width: 85vw;
72
+ }
73
+ @media only screen and (min-width: 481px) {
74
+ width: 80vw;
75
+ }
76
+
77
+ // desktop version collapsed
78
+ .nav-slim {
79
+ width: 64px;
80
+
81
+ .toggle {
82
+ width: 64px;
83
+ margin-top: @spacing-1;
84
+ margin-bottom: 12px;
85
+ display: flex;
86
+ justify-content: center;
87
+
88
+ .toggle-icon-wrapper {
89
+ padding-left: @spacing-half;
90
+ padding-right: @spacing-half;
91
+ }
92
+ }
93
+
94
+ .nav-item {
95
+ flex-direction: column;
96
+ width: 64px;
97
+ overflow-x: hidden;
98
+ padding-top: @spacing-1;
99
+
100
+ &:not(:first-child) {
101
+ margin-top: @spacing-half;
102
+ }
103
+
104
+ .nav-item-counter[data-anv][data-anv] {
105
+ position: absolute;
106
+ right: 0;
107
+ top: 4px;
108
+ z-index: auto;
109
+
110
+ &.nav-item-counter-long {
111
+ right: 2px;
112
+ }
113
+ }
114
+
115
+ .nav-item-icon-wrapper {
116
+ flex: 1;
117
+ padding: @spacing-half;
118
+ }
119
+
120
+ .nav-item-text-expanded {
121
+ display: none;
122
+ }
123
+ .nav-item-text-collapsed {
124
+ font-family: @base-font-family;
125
+ font-size: 11px;
126
+ line-height: 11px;
127
+ margin: 2px @spacing-half @spacing-0;
128
+ text-align: center;
129
+ }
130
+
131
+ .nav-item-text-collapsed.nav-item-text-small {
132
+ font-size: 10.5px;
133
+ }
134
+ }
135
+
136
+ .nav-top .divider {
137
+ margin-top: @spacing-1;
138
+ }
139
+ }
140
+
141
+ // desktop version expanded
142
+ .nav-wide {
143
+ width: var(--nav-offset-left);
144
+ padding-top: @spacing-2;
145
+
146
+ .toggle {
147
+ .toggle-content {
148
+ margin: @spacing-2;
149
+
150
+ .toggle-icon-wrapper {
151
+ padding-left: @spacing-half;
152
+ padding-right: @spacing-half;
153
+ }
154
+
155
+ .toggle-text {
156
+ padding-left: @spacing-0 !important;
157
+ }
158
+ }
159
+ }
160
+
161
+ .nav-top .divider {
162
+ margin-top: @spacing-1;
163
+ margin-bottom: @spacing-1;
164
+ }
165
+ }
166
+
167
+ .nav-drawer,
168
+ .nav-wide {
169
+ .nav-item {
170
+ flex-direction: row;
171
+ margin-left: @spacing-1;
172
+ margin-right: @spacing-1;
173
+
174
+ .nav-item-icon-wrapper {
175
+ flex: 1;
176
+ padding: @spacing-1 @spacing-half;
177
+ }
178
+
179
+ .nav-item-text-expanded {
180
+ font-family: @base-font-family;
181
+ font-size: @typescale-3;
182
+ padding-left: @spacing-1;
183
+ flex: 1;
184
+ }
185
+
186
+ .nav-item-text-collapsed {
187
+ display: none;
188
+ }
189
+
190
+ .nav-item-counter[data-anv][data-anv] {
191
+ margin-right: @spacing-1;
192
+ position: relative;
193
+ transform: unset;
194
+ }
195
+ }
196
+ }
197
+ .divider {
198
+ border-top: 1px solid @border-color;
199
+ }
200
+
201
+ .nav-main {
202
+ position: relative;
203
+ overflow-y: auto;
204
+ padding-bottom: @spacing-1;
205
+ flex-grow: 1;
206
+ flex-basis: 0;
207
+
208
+ &::-webkit-scrollbar {
209
+ width: 0;
210
+ height: 0;
211
+ }
212
+ }
213
+
214
+ .nav-top {
215
+ display: flex;
216
+ flex-direction: column;
217
+ align-items: stretch;
218
+ }
219
+
220
+ .nav-bottom {
221
+ display: flex;
222
+ flex-direction: column;
223
+ }
224
+
225
+ .nav-footer {
226
+ display: flex;
227
+ flex-direction: column;
228
+ align-items: stretch;
229
+ background-color: @bg-color;
230
+
231
+ .toggle-wrapper {
232
+ display: block;
233
+
234
+ .toggle {
235
+ font-family: @base-font-family;
236
+ color: @text-color;
237
+ position: relative;
238
+ cursor: pointer;
239
+ outline: none;
240
+
241
+ &:hover {
242
+ .toggle-content {
243
+ background-color: @bg-color-hover;
244
+ }
245
+ }
246
+
247
+ .toggle-content {
248
+ display: flex;
249
+ justify-content: flex-start;
250
+ align-items: center;
251
+ flex-wrap: nowrap;
252
+ text-wrap: nowrap;
253
+ height: 32px;
254
+
255
+ border-radius: @border-radius-2;
256
+ }
257
+
258
+ .toggle-icon-wrapper {
259
+ height: 24px;
260
+ width: 24px;
261
+
262
+ .toggle-icon[data-anv][data-anv] > svg {
263
+ height: 24px;
264
+ width: 24px;
265
+ color: @text-color;
266
+ }
267
+ }
268
+
269
+ .toggle-text {
270
+ font-family: @base-font-family;
271
+ font-size: @typescale-3;
272
+ flex: 1;
273
+ }
274
+ }
275
+ }
276
+ }
277
+
278
+ .nav-item {
279
+ font-family: @base-font-family;
280
+ color: @text-color;
281
+ position: relative;
282
+ display: flex;
283
+ flex-direction: row;
284
+ justify-content: flex-start;
285
+ align-items: center;
286
+ outline: none;
287
+ overflow: hidden;
288
+
289
+ .nav-item-icon-wrapper {
290
+ border-radius: @border-radius-2;
291
+ display: flex;
292
+ justify-content: flex-start;
293
+ align-items: center;
294
+ flex-wrap: nowrap;
295
+ text-wrap: nowrap;
296
+ position: relative;
297
+ }
298
+
299
+ &.nav-item-active {
300
+ color: @text-color-active;
301
+
302
+ .nav-item-icon-wrapper {
303
+ background-color: @bg-color-active;
304
+ }
305
+ }
306
+
307
+ &.nav-item-icon-switch {
308
+ &.nav-item-active {
309
+ .nav-icon-inactive[data-anv][data-anv] {
310
+ display: none;
311
+ }
312
+ .nav-icon-active[data-anv][data-anv] {
313
+ display: block;
314
+ }
315
+ }
316
+ &:not(.nav-item-active) {
317
+ .nav-icon-inactive[data-anv][data-anv] {
318
+ display: block;
319
+ }
320
+ .nav-icon-active[data-anv][data-anv] {
321
+ display: none;
322
+ }
323
+ }
324
+ }
325
+
326
+ .nav-item-counter {
327
+ min-width: 12px !important;
328
+ min-height: 12px !important;
329
+ }
330
+
331
+ .nav-item-group-toggle-wrapper {
332
+ position: relative;
333
+ display: flex;
334
+ justify-content: center;
335
+ align-items: center;
336
+
337
+ .nav-item-group-toggle[data-anv][data-anv] {
338
+ color: inherit;
339
+ font-weight: @font-weight-semibold;
340
+ }
341
+
342
+ .nav-item-group-toggle-click {
343
+ position: absolute;
344
+ left: -@spacing-2;
345
+ right: -@spacing-half;
346
+ top: -@spacing-1;
347
+ bottom: -@spacing-1;
348
+ }
349
+ }
350
+
351
+ .nav-icon[data-anv][data-anv] {
352
+ height: 24px;
353
+ width: 24px;
354
+ color: inherit;
355
+
356
+ & > svg {
357
+ height: 24px;
358
+ width: 24px;
359
+ }
360
+ }
361
+ }
362
+
363
+ .nav-link {
364
+ cursor: pointer;
365
+
366
+ &:hover:not(.nav-item-active) .nav-item-icon-wrapper {
367
+ background-color: @bg-color-hover;
368
+ }
369
+ }
370
+ .nav-group-wrapper {
371
+ .nav-group-item {
372
+ position: relative;
373
+ }
374
+
375
+ .submenu-wrapper:not(.submenu-wrapper-collapsed) {
376
+ max-height: 2000px;
377
+ transition: max-height 0.7s ease-in-out;
378
+ }
379
+ }
380
+
381
+ .submenu-wrapper {
382
+ max-height: 0;
383
+ overflow: hidden;
384
+ transition: max-height unset;
385
+ }
386
+
387
+ .submenu {
388
+ margin-left: @spacing-3;
389
+
390
+ padding-left: @spacing-1;
391
+ padding-right: @spacing-1;
392
+ margin-bottom: @spacing-1;
393
+ position: relative;
394
+ font-family: @base-font-family;
395
+
396
+ .submenu-group-header[data-anv][data-anv] {
397
+ padding-top: @spacing-2;
398
+ padding-bottom: @spacing-half;
399
+ }
400
+ .submenu-group-header.submenu-group-header-empty[data-anv][data-anv] {
401
+ padding-top: @spacing-1;
402
+ }
403
+
404
+ .submenu-item {
405
+ padding: @spacing-1;
406
+ }
407
+
408
+ .submenu-link-active {
409
+ position: relative;
410
+ }
411
+
412
+ .submenu-link-active:before {
413
+ content: '';
414
+ position: absolute;
415
+ background-color: @text-color-active;
416
+ width: 3px;
417
+ top: @spacing-1;
418
+ bottom: @spacing-1;
419
+ left: -12px;
420
+ }
421
+
422
+ .submenu-item:before:not(.submenu-link-active) {
423
+ background-color: @bg-color-hover;
424
+ }
425
+
426
+ .divider + .divider {
427
+ display: none;
428
+ }
429
+
430
+ .divider:last-child {
431
+ display: none;
432
+ }
433
+
434
+ > *,
435
+ > *[data-anv][data-anv] {
436
+ border-left: 3px solid transparent;
437
+ padding-left: @spacing-1;
438
+ }
439
+
440
+ > *:last-child {
441
+ margin-bottom: @spacing-0;
442
+ }
443
+ }
444
+
445
+ .submenu-popover {
446
+ margin-left: -@spacing-1;
447
+ margin-right: -@spacing-1;
448
+ min-width: 240px;
449
+
450
+ .submenu-group-header[data-anv][data-anv] {
451
+ margin-top: @spacing-2;
452
+ padding-bottom: @spacing-half;
453
+ }
454
+
455
+ .submenu-group-header.submenu-group-header-empty[data-anv][data-anv] {
456
+ margin-top: @spacing-1;
457
+ }
458
+
459
+ .submenu-item {
460
+ padding-top: @spacing-1;
461
+ padding-bottom: @spacing-1;
462
+ }
463
+
464
+ .submenu-link-active {
465
+ background-color: @bg-color-active;
466
+ }
467
+ .submenu-link:hover:not(.submenu-link-active) {
468
+ background-color: @bg-color-hover;
469
+ }
470
+
471
+ > *,
472
+ > *[data-anv][data-anv] {
473
+ padding-left: @spacing-1;
474
+ padding-right: @spacing-1;
475
+ }
476
+ }
477
+
478
+ .submenu,
479
+ .submenu-popover {
480
+ display: flex;
481
+ flex-direction: column;
482
+
483
+ .submenu-group-header[data-anv][data-anv] {
484
+ color: @color-neutral-70;
485
+ }
486
+
487
+ .submenu-item {
488
+ color: @text-color;
489
+ font-size: @typescale-2;
490
+ border-radius: @border-radius-2;
491
+ display: flex;
492
+ flex-direction: row;
493
+ justify-content: space-between;
494
+ align-items: center;
495
+ }
496
+
497
+ .submenu-link {
498
+ cursor: pointer;
499
+ }
500
+
501
+ .submenu-link-active {
502
+ color: @text-color-active;
503
+ }
504
+
505
+ .submenu-link-counter {
506
+ position: relative !important;
507
+ transform: unset !important;
508
+ }
509
+
510
+ .submenu-link:hover:not(.submenu-link-active) {
511
+ background-color: @bg-color-hover;
512
+ }
513
+ }
@@ -0,0 +1,48 @@
1
+ export const __esModule: true;
2
+ export const divider: string;
3
+ export const nav: string;
4
+ export const navBottom: string;
5
+ export const navClose: string;
6
+ export const navCloseWrapper: string;
7
+ export const navDrawer: string;
8
+ export const navDrawerOpened: string;
9
+ export const navFooter: string;
10
+ export const navGroupItem: string;
11
+ export const navGroupWrapper: string;
12
+ export const navIcon: string;
13
+ export const navIconActive: string;
14
+ export const navIconInactive: string;
15
+ export const navItem: string;
16
+ export const navItemActive: string;
17
+ export const navItemCounter: string;
18
+ export const navItemCounterLong: string;
19
+ export const navItemGroupToggle: string;
20
+ export const navItemGroupToggleClick: string;
21
+ export const navItemGroupToggleWrapper: string;
22
+ export const navItemIconSwitch: string;
23
+ export const navItemIconWrapper: string;
24
+ export const navItemTextCollapsed: string;
25
+ export const navItemTextExpanded: string;
26
+ export const navItemTextSmall: string;
27
+ export const navLink: string;
28
+ export const navMain: string;
29
+ export const navSlim: string;
30
+ export const navTop: string;
31
+ export const navWide: string;
32
+ export const submenu: string;
33
+ export const submenuGroupHeader: string;
34
+ export const submenuGroupHeaderEmpty: string;
35
+ export const submenuItem: string;
36
+ export const submenuLink: string;
37
+ export const submenuLinkActive: string;
38
+ export const submenuLinkCounter: string;
39
+ export const submenuPopover: string;
40
+ export const submenuWrapper: string;
41
+ export const submenuWrapperCollapsed: string;
42
+ export const toggle: string;
43
+ export const toggleContent: string;
44
+ export const toggleIcon: string;
45
+ export const toggleIconWrapper: string;
46
+ export const toggleText: string;
47
+ export const toggleWrapper: string;
48
+