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