@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.
- 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 +154 -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 +17 -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 +513 -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 +76 -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 +154 -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 +513 -0
- package/src/components/titan-layout/layout-sidebar.module.less.d.ts +48 -0
- package/src/components/titan-layout/layout-sidebar.tsx +295 -0
- package/src/components/titan-layout/titan-layout.module.less +76 -0
- package/src/components/titan-layout/titan-layout.module.less.d.ts +13 -0
- package/src/components/titan-layout/titan-layout.stories.tsx +194 -0
- package/src/components/titan-layout/titan-layout.tsx +272 -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,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,36 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, FC, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { NavigationItemData } from '../../utils/navigation';
|
|
3
|
+
import { NavLinkComponentProps } from '../../utils/navigation-context';
|
|
4
|
+
import { TitanLayoutState } from './interface';
|
|
5
|
+
import { TitanLayoutLogoProps } from './layout-logo';
|
|
6
|
+
import { TitanLayoutSidebarLink, TitanLayoutSidebarTrigger } from './layout-sidebar-links';
|
|
7
|
+
type TitanLayoutChild = ReactElement<TitanLayoutContentProps> | ReactElement<TitanLayoutLogoProps>;
|
|
8
|
+
export type TitanLayoutProps = Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'style'> & {
|
|
9
|
+
empty?: boolean;
|
|
10
|
+
appearance?: 'legacy' | 'anvil1' | 'anvil2';
|
|
11
|
+
/** component used for navigation */
|
|
12
|
+
navigationComponent?: FC<NavLinkComponentProps>;
|
|
13
|
+
/** data for main navigation links */
|
|
14
|
+
navigationMainItems?: NavigationItemData[];
|
|
15
|
+
/** layout's content */
|
|
16
|
+
children?: TitanLayoutChild | TitanLayoutChild[];
|
|
17
|
+
state?: TitanLayoutState;
|
|
18
|
+
onStateChange?: (state: TitanLayoutState) => void;
|
|
19
|
+
header?: ReactElement;
|
|
20
|
+
profile?: ReactElement;
|
|
21
|
+
extraLinks?: ReactElement;
|
|
22
|
+
extraLinksTop?: ReactElement;
|
|
23
|
+
extraText?: string;
|
|
24
|
+
sidebarTop?: ReactElement[];
|
|
25
|
+
};
|
|
26
|
+
export interface TitanLayoutContentProps {
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
}
|
|
29
|
+
export declare const TitanLayout: FC<TitanLayoutProps> & {
|
|
30
|
+
Content: FC<TitanLayoutContentProps>;
|
|
31
|
+
Logo: FC<TitanLayoutLogoProps>;
|
|
32
|
+
SidebarLink: typeof TitanLayoutSidebarLink;
|
|
33
|
+
SidebarTrigger: typeof TitanLayoutSidebarTrigger;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=titan-layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"titan-layout.d.ts","sourceRoot":"","sources":["../../../src/components/titan-layout/titan-layout.tsx"],"names":[],"mappings":"AACA,OAAO,EAGH,wBAAwB,EACxB,EAAE,EAEF,YAAY,EACZ,SAAS,EAMZ,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAA2B,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAEhG,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAQ/C,OAAO,EAAmB,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAEtE,OAAO,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAI3F,KAAK,gBAAgB,GAAG,YAAY,CAAC,uBAAuB,CAAC,GAAG,YAAY,CAAC,oBAAoB,CAAC,CAAC;AAEnG,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG;IACzF,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,UAAU,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAE5C,oCAAoC;IACpC,mBAAmB,CAAC,EAAE,EAAE,CAAC,qBAAqB,CAAC,CAAC;IAEhD,qCAAqC;IACrC,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAE3C,uBAAuB;IACvB,QAAQ,CAAC,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAAC;IAEjD,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAElD,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,aAAa,CAAC,EAAE,YAAY,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,YAAY,EAAE,CAAC;CAC/B,CAAC;AA0MF,MAAM,WAAW,uBAAuB;IACpC,QAAQ,EAAE,SAAS,CAAC;CACvB;AAKD,eAAO,MAAM,WAAW;;;;;CAKtB,CAAC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import { Children, Fragment, isValidElement, useCallback, useEffect, useMemo, useState, } from 'react';
|
|
4
|
+
import { DefaultNavLinkComponent } from '../../utils/navigation-context';
|
|
5
|
+
import { useTitanBreakpoint } from '../../utils/use-breakpoint';
|
|
6
|
+
import { LayoutContext, LayoutPlacementContext, } from './layout-context';
|
|
7
|
+
import { LayoutHeader } from './layout-header';
|
|
8
|
+
import { TitanLayoutLogo } from './layout-logo';
|
|
9
|
+
import { LayoutSidebar } from './layout-sidebar';
|
|
10
|
+
import { TitanLayoutSidebarLink, TitanLayoutSidebarTrigger } from './layout-sidebar-links';
|
|
11
|
+
import { InternalSideNavigationTrigger } from './layout-sidebar-links-internal';
|
|
12
|
+
import * as Styles from './titan-layout.module.less';
|
|
13
|
+
const defaultSidebarContext = {
|
|
14
|
+
styles: {
|
|
15
|
+
popoverContent: {
|
|
16
|
+
'--background-color-strong': '#24323C',
|
|
17
|
+
'color': 'var(--color-white)',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
const useVariant = (appearance) => useMemo(() => {
|
|
22
|
+
const isLegacy = appearance === 'legacy';
|
|
23
|
+
const isAnvil1 = appearance === 'anvil1';
|
|
24
|
+
const isAnvil2 = appearance === 'anvil2';
|
|
25
|
+
return {
|
|
26
|
+
isLegacy,
|
|
27
|
+
isAnvil1,
|
|
28
|
+
isAnvil2,
|
|
29
|
+
isSequent: isLegacy || isAnvil2,
|
|
30
|
+
};
|
|
31
|
+
}, [appearance]);
|
|
32
|
+
const useLayoutChildren = (children) => useMemo(() => Children.toArray(children).reduce((out, item) => {
|
|
33
|
+
if (item &&
|
|
34
|
+
isValidElement(item) &&
|
|
35
|
+
item.type &&
|
|
36
|
+
typeof item.type !== 'string') {
|
|
37
|
+
if (item.type.name === TitanLayoutContent.name) {
|
|
38
|
+
out.content = item;
|
|
39
|
+
}
|
|
40
|
+
else if (item.type.name === TitanLayoutLogo.name) {
|
|
41
|
+
out.logo = item;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return out;
|
|
45
|
+
}, {
|
|
46
|
+
logo: _jsx(TitanLayoutLogo, {}),
|
|
47
|
+
}), [children]);
|
|
48
|
+
const TitanLayoutComponent = ({ appearance = 'anvil2', id, children, navigationComponent, header, profile, state, onStateChange, navigationMainItems, extraLinks, extraLinksTop, extraText, sidebarTop, }) => {
|
|
49
|
+
const breakpoint = useTitanBreakpoint();
|
|
50
|
+
const isMobile = breakpoint.isMobile;
|
|
51
|
+
const context = useMemo(() => ({
|
|
52
|
+
NavigationComponent: navigationComponent !== null && navigationComponent !== void 0 ? navigationComponent : DefaultNavLinkComponent,
|
|
53
|
+
breakpoint,
|
|
54
|
+
isTitanLayout: true,
|
|
55
|
+
sidebar: defaultSidebarContext,
|
|
56
|
+
}), [navigationComponent, breakpoint]);
|
|
57
|
+
const variant = useVariant(appearance);
|
|
58
|
+
const [mobileDrawerOpened, setMobileDrawerOpened] = useState(false);
|
|
59
|
+
const { content, logo } = useLayoutChildren(children);
|
|
60
|
+
useEffect(() => {
|
|
61
|
+
if (!isMobile) {
|
|
62
|
+
setMobileDrawerOpened(false);
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
const listener = () => {
|
|
66
|
+
setMobileDrawerOpened(false);
|
|
67
|
+
};
|
|
68
|
+
document.addEventListener('click', listener);
|
|
69
|
+
return () => document.removeEventListener('click', listener);
|
|
70
|
+
}, [isMobile]);
|
|
71
|
+
const onBurgerClick = useCallback((e) => {
|
|
72
|
+
setMobileDrawerOpened(true);
|
|
73
|
+
e.stopPropagation();
|
|
74
|
+
}, []);
|
|
75
|
+
const onBarExpandChange = useCallback((expanded) => {
|
|
76
|
+
if (isMobile) {
|
|
77
|
+
setMobileDrawerOpened(false);
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
onStateChange === null || onStateChange === void 0 ? void 0 : onStateChange({ navCollapsed: !expanded });
|
|
81
|
+
}
|
|
82
|
+
}, [onStateChange, isMobile]);
|
|
83
|
+
const onSubmenuExpandChange = useCallback((id, expanded) => {
|
|
84
|
+
var _a;
|
|
85
|
+
onStateChange === null || onStateChange === void 0 ? void 0 : onStateChange({
|
|
86
|
+
navCollapsed: (_a = state === null || state === void 0 ? void 0 : state.navCollapsed) !== null && _a !== void 0 ? _a : false,
|
|
87
|
+
submenuExpanded: expanded ? id : undefined,
|
|
88
|
+
});
|
|
89
|
+
}, [state, onStateChange]);
|
|
90
|
+
const [layoutStyles] = useState({});
|
|
91
|
+
const layoutClass = variant.isLegacy
|
|
92
|
+
? Styles.layoutLegacy
|
|
93
|
+
: variant.isAnvil1
|
|
94
|
+
? Styles.layoutAnvil1
|
|
95
|
+
: Styles.layoutAnvil2;
|
|
96
|
+
return (_jsx(LayoutContext.Provider, { value: context, children: _jsx(LayoutPlacementContext.Provider, { value: "unset", children: _jsxs("div", { id: id, className: classNames(Styles.layout, isMobile
|
|
97
|
+
? Styles.layoutMobile
|
|
98
|
+
: (state === null || state === void 0 ? void 0 : state.navCollapsed)
|
|
99
|
+
? Styles.layoutNavSlim
|
|
100
|
+
: Styles.layoutNavWide, layoutClass), style: layoutStyles, children: [variant.isSequent && _jsx("div", { className: Styles.topPlaceholder }), _jsx(LayoutHeader, { className: Styles.top, logo: logo, profile: isMobile ? undefined : profile, center: header, rightText: isMobile ? undefined : extraText, right: _jsxs(Fragment, { children: [extraLinksTop, !isMobile && extraLinks] }), onBurgerClick: onBurgerClick }), _jsx(LayoutSidebar, { className: Styles.side, mobile: breakpoint.isMobile, barExpanded: isMobile ? mobileDrawerOpened : !(state === null || state === void 0 ? void 0 : state.navCollapsed), submenuExpanded: state === null || state === void 0 ? void 0 : state.submenuExpanded, onBarExpandChange: onBarExpandChange, onSubmenuExpandChange: onSubmenuExpandChange, top: sidebarTop, mainItems: navigationMainItems, navigationComponent: context.NavigationComponent, bottom: isMobile ? (_jsxs(Fragment, { children: [profile, extraLinks, !!extraText && (_jsx(InternalSideNavigationTrigger, { id: "__extra_text", title: extraText, submenuExpanded: undefined, dataPrefix: "navigation-extra-text", tag: undefined, icon: undefined, iconActive: undefined }))] })) : undefined }), content] }) }) }));
|
|
101
|
+
};
|
|
102
|
+
const TitanLayoutContent = ({ children }) => (_jsx("div", { className: Styles.content, children: children }));
|
|
103
|
+
export const TitanLayout = Object.assign(TitanLayoutComponent, {
|
|
104
|
+
Content: TitanLayoutContent,
|
|
105
|
+
Logo: TitanLayoutLogo,
|
|
106
|
+
SidebarLink: TitanLayoutSidebarLink,
|
|
107
|
+
SidebarTrigger: TitanLayoutSidebarTrigger,
|
|
108
|
+
});
|
|
109
|
+
//# sourceMappingURL=titan-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"titan-layout.js","sourceRoot":"","sources":["../../../src/components/titan-layout/titan-layout.tsx"],"names":[],"mappings":";AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAEH,QAAQ,EAGR,QAAQ,EAGR,cAAc,EACd,W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