@learningpool/ui 1.8.8 → 1.10.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/components/atoms/Button/Button.d.ts +1 -1
- package/components/landmarks/Header/HeaderStyles.d.ts +1 -1
- package/components/navigation/Drawer/Drawer.d.ts +1 -1
- package/components/navigation/MobileNavigation/MobileNavigation.d.ts +1 -0
- package/components/navigation/MobileNavigation/MobileNavigationAvatar.d.ts +2 -0
- package/components/navigation/MobileNavigation/MobileNavigationAvatar.js +33 -7
- package/components/navigation/MobileNavigation/MobileNavigationAvatarStyles.d.ts +207 -141
- package/components/navigation/MobileNavigation/MobileNavigationDrawer.js +3 -12
- package/components/navigation/MobileNavigation/MobileNavigationDrawerStyles.d.ts +75 -53
- package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenuStyles.d.ts +4 -4
- package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemStyles.d.ts +6 -6
- package/components/navigation/MobileNavigation/MobileNavigationSearchStyles.d.ts +68 -46
- package/components/navigation/MobileNavigation/MobileNavigationStyles.d.ts +1 -1
- package/components/navigation/VerticalNavigation/VerticalNavigation.d.ts +2 -34
- package/components/navigation/VerticalNavigation/VerticalNavigationAvatar.js +35 -17
- package/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.d.ts +207 -141
- package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.d.ts +4 -4
- package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.d.ts +6 -6
- package/components/navigation/VerticalNavigation/VerticalNavigationStyles.d.ts +69 -47
- package/components/stream/AppHub/AppHubCustomStyles.d.ts +4 -4
- package/components/stream/AppHub/AppHubProductStyles.d.ts +3 -3
- package/components/stream/AppHub/AppHubStyles.d.ts +2 -2
- package/components/stream/AppSwitcher/AppSwitcher.d.ts +10 -2
- package/components/stream/AppSwitcher/AppSwitcher.js +9 -7
- package/components/stream/AppSwitcher/AppSwitcherStylesStandalone.d.ts +16 -0
- package/components/stream/AppSwitcher/AppSwitcherStylesStandalone.js +22 -0
- package/components/stream/AppSwitcher/constants.d.ts +19 -0
- package/components/stream/AppSwitcher/constants.js +19 -0
- package/lang/en-us.d.ts +3 -0
- package/lang/en-us.js +4 -1
- package/package.json +4 -3
- package/types/components/navigation/VerticalNavigation.d.ts +3 -0
- package/types/components/navigation/VerticalNavigationAvatar.d.ts +1 -0
|
@@ -8,6 +8,7 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
8
8
|
alignItems?: import("csstype").Property.AlignItems | undefined;
|
|
9
9
|
alignSelf?: import("csstype").Property.AlignSelf | undefined;
|
|
10
10
|
alignTracks?: import("csstype").Property.AlignTracks | undefined;
|
|
11
|
+
animationComposition?: import("csstype").Property.AnimationComposition | undefined;
|
|
11
12
|
animationDelay?: import("csstype").Property.AnimationDelay<string & {}> | undefined;
|
|
12
13
|
animationDirection?: import("csstype").Property.AnimationDirection | undefined;
|
|
13
14
|
animationDuration?: import("csstype").Property.AnimationDuration<string & {}> | undefined;
|
|
@@ -87,6 +88,7 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
87
88
|
breakInside?: import("csstype").Property.BreakInside | undefined;
|
|
88
89
|
captionSide?: import("csstype").Property.CaptionSide | undefined;
|
|
89
90
|
caretColor?: import("csstype").Property.CaretColor | undefined;
|
|
91
|
+
caretShape?: import("csstype").Property.CaretShape | undefined;
|
|
90
92
|
clear?: import("csstype").Property.Clear | undefined;
|
|
91
93
|
clipPath?: import("csstype").Property.ClipPath | undefined;
|
|
92
94
|
color?: import("csstype").Property.Color | undefined;
|
|
@@ -101,6 +103,12 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
101
103
|
columnSpan?: import("csstype").Property.ColumnSpan | undefined;
|
|
102
104
|
columnWidth?: import("csstype").Property.ColumnWidth<string | number> | undefined;
|
|
103
105
|
contain?: import("csstype").Property.Contain | undefined;
|
|
106
|
+
containIntrinsicBlockSize?: import("csstype").Property.ContainIntrinsicBlockSize<string | number> | undefined;
|
|
107
|
+
containIntrinsicHeight?: import("csstype").Property.ContainIntrinsicHeight<string | number> | undefined;
|
|
108
|
+
containIntrinsicInlineSize?: import("csstype").Property.ContainIntrinsicInlineSize<string | number> | undefined;
|
|
109
|
+
containIntrinsicWidth?: import("csstype").Property.ContainIntrinsicWidth<string | number> | undefined;
|
|
110
|
+
containerName?: import("csstype").Property.ContainerName | undefined;
|
|
111
|
+
containerType?: import("csstype").Property.ContainerType | undefined;
|
|
104
112
|
content?: import("csstype").Property.Content | undefined;
|
|
105
113
|
contentVisibility?: import("csstype").Property.ContentVisibility | undefined;
|
|
106
114
|
counterIncrement?: import("csstype").Property.CounterIncrement | undefined;
|
|
@@ -122,6 +130,7 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
122
130
|
fontKerning?: import("csstype").Property.FontKerning | undefined;
|
|
123
131
|
fontLanguageOverride?: import("csstype").Property.FontLanguageOverride | undefined;
|
|
124
132
|
fontOpticalSizing?: import("csstype").Property.FontOpticalSizing | undefined;
|
|
133
|
+
fontPalette?: import("csstype").Property.FontPalette | undefined;
|
|
125
134
|
fontSize?: import("csstype").Property.FontSize<string | number> | undefined;
|
|
126
135
|
fontSizeAdjust?: import("csstype").Property.FontSizeAdjust | undefined;
|
|
127
136
|
fontSmooth?: import("csstype").Property.FontSmooth<string | number> | undefined;
|
|
@@ -132,6 +141,7 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
132
141
|
fontVariantAlternates?: import("csstype").Property.FontVariantAlternates | undefined;
|
|
133
142
|
fontVariantCaps?: import("csstype").Property.FontVariantCaps | undefined;
|
|
134
143
|
fontVariantEastAsian?: import("csstype").Property.FontVariantEastAsian | undefined;
|
|
144
|
+
fontVariantEmoji?: import("csstype").Property.FontVariantEmoji | undefined;
|
|
135
145
|
fontVariantLigatures?: import("csstype").Property.FontVariantLigatures | undefined;
|
|
136
146
|
fontVariantNumeric?: import("csstype").Property.FontVariantNumeric | undefined;
|
|
137
147
|
fontVariantPosition?: import("csstype").Property.FontVariantPosition | undefined;
|
|
@@ -151,6 +161,7 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
151
161
|
hangingPunctuation?: import("csstype").Property.HangingPunctuation | undefined;
|
|
152
162
|
height?: import("csstype").Property.Height<string | number> | undefined;
|
|
153
163
|
hyphenateCharacter?: import("csstype").Property.HyphenateCharacter | undefined;
|
|
164
|
+
hyphenateLimitChars?: import("csstype").Property.HyphenateLimitChars | undefined;
|
|
154
165
|
hyphens?: import("csstype").Property.Hyphens | undefined;
|
|
155
166
|
imageOrientation?: import("csstype").Property.ImageOrientation | undefined;
|
|
156
167
|
imageRendering?: import("csstype").Property.ImageRendering | undefined;
|
|
@@ -158,11 +169,8 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
158
169
|
initialLetter?: import("csstype").Property.InitialLetter | undefined;
|
|
159
170
|
inlineSize?: import("csstype").Property.InlineSize<string | number> | undefined;
|
|
160
171
|
inputSecurity?: import("csstype").Property.InputSecurity | undefined;
|
|
161
|
-
inset?: import("csstype").Property.Inset<string | number> | undefined;
|
|
162
|
-
insetBlock?: import("csstype").Property.InsetBlock<string | number> | undefined;
|
|
163
172
|
insetBlockEnd?: import("csstype").Property.InsetBlockEnd<string | number> | undefined;
|
|
164
173
|
insetBlockStart?: import("csstype").Property.InsetBlockStart<string | number> | undefined;
|
|
165
|
-
insetInline?: import("csstype").Property.InsetInline<string | number> | undefined;
|
|
166
174
|
insetInlineEnd?: import("csstype").Property.InsetInlineEnd<string | number> | undefined;
|
|
167
175
|
insetInlineStart?: import("csstype").Property.InsetInlineStart<string | number> | undefined;
|
|
168
176
|
isolation?: import("csstype").Property.Isolation | undefined;
|
|
@@ -178,16 +186,15 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
178
186
|
listStyleImage?: import("csstype").Property.ListStyleImage | undefined;
|
|
179
187
|
listStylePosition?: import("csstype").Property.ListStylePosition | undefined;
|
|
180
188
|
listStyleType?: import("csstype").Property.ListStyleType | undefined;
|
|
181
|
-
marginBlock?: import("csstype").Property.MarginBlock<string | number> | undefined;
|
|
182
189
|
marginBlockEnd?: import("csstype").Property.MarginBlockEnd<string | number> | undefined;
|
|
183
190
|
marginBlockStart?: import("csstype").Property.MarginBlockStart<string | number> | undefined;
|
|
184
191
|
marginBottom?: import("csstype").Property.MarginBottom<string | number> | undefined;
|
|
185
|
-
marginInline?: import("csstype").Property.MarginInline<string | number> | undefined;
|
|
186
192
|
marginInlineEnd?: import("csstype").Property.MarginInlineEnd<string | number> | undefined;
|
|
187
193
|
marginInlineStart?: import("csstype").Property.MarginInlineStart<string | number> | undefined;
|
|
188
194
|
marginLeft?: import("csstype").Property.MarginLeft<string | number> | undefined;
|
|
189
195
|
marginRight?: import("csstype").Property.MarginRight<string | number> | undefined;
|
|
190
196
|
marginTop?: import("csstype").Property.MarginTop<string | number> | undefined;
|
|
197
|
+
marginTrim?: import("csstype").Property.MarginTrim | undefined;
|
|
191
198
|
maskBorderMode?: import("csstype").Property.MaskBorderMode | undefined;
|
|
192
199
|
maskBorderOutset?: import("csstype").Property.MaskBorderOutset<string | number> | undefined;
|
|
193
200
|
maskBorderRepeat?: import("csstype").Property.MaskBorderRepeat | undefined;
|
|
@@ -203,6 +210,8 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
203
210
|
maskRepeat?: import("csstype").Property.MaskRepeat | undefined;
|
|
204
211
|
maskSize?: import("csstype").Property.MaskSize<string | number> | undefined;
|
|
205
212
|
maskType?: import("csstype").Property.MaskType | undefined;
|
|
213
|
+
mathDepth?: import("csstype").Property.MathDepth | undefined;
|
|
214
|
+
mathShift?: import("csstype").Property.MathShift | undefined;
|
|
206
215
|
mathStyle?: import("csstype").Property.MathStyle | undefined;
|
|
207
216
|
maxBlockSize?: import("csstype").Property.MaxBlockSize<string | number> | undefined;
|
|
208
217
|
maxHeight?: import("csstype").Property.MaxHeight<string | number> | undefined;
|
|
@@ -222,6 +231,7 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
222
231
|
offsetAnchor?: import("csstype").Property.OffsetAnchor<string | number> | undefined;
|
|
223
232
|
offsetDistance?: import("csstype").Property.OffsetDistance<string | number> | undefined;
|
|
224
233
|
offsetPath?: import("csstype").Property.OffsetPath | undefined;
|
|
234
|
+
offsetPosition?: import("csstype").Property.OffsetPosition<string | number> | undefined;
|
|
225
235
|
offsetRotate?: import("csstype").Property.OffsetRotate | undefined;
|
|
226
236
|
offsetRotation?: import("csstype").Property.OffsetRotate | undefined;
|
|
227
237
|
opacity?: import("csstype").Property.Opacity | undefined;
|
|
@@ -243,23 +253,21 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
243
253
|
overscrollBehaviorInline?: import("csstype").Property.OverscrollBehaviorInline | undefined;
|
|
244
254
|
overscrollBehaviorX?: import("csstype").Property.OverscrollBehaviorX | undefined;
|
|
245
255
|
overscrollBehaviorY?: import("csstype").Property.OverscrollBehaviorY | undefined;
|
|
246
|
-
paddingBlock?: import("csstype").Property.PaddingBlock<string | number> | undefined;
|
|
247
256
|
paddingBlockEnd?: import("csstype").Property.PaddingBlockEnd<string | number> | undefined;
|
|
248
257
|
paddingBlockStart?: import("csstype").Property.PaddingBlockStart<string | number> | undefined;
|
|
249
258
|
paddingBottom?: import("csstype").Property.PaddingBottom<string | number> | undefined;
|
|
250
|
-
paddingInline?: import("csstype").Property.PaddingInline<string | number> | undefined;
|
|
251
259
|
paddingInlineEnd?: import("csstype").Property.PaddingInlineEnd<string | number> | undefined;
|
|
252
260
|
paddingInlineStart?: import("csstype").Property.PaddingInlineStart<string | number> | undefined;
|
|
253
261
|
paddingLeft?: import("csstype").Property.PaddingLeft<string | number> | undefined;
|
|
254
262
|
paddingRight?: import("csstype").Property.PaddingRight<string | number> | undefined;
|
|
255
263
|
paddingTop?: import("csstype").Property.PaddingTop<string | number> | undefined;
|
|
264
|
+
page?: import("csstype").Property.Page | undefined;
|
|
256
265
|
pageBreakAfter?: import("csstype").Property.PageBreakAfter | undefined;
|
|
257
266
|
pageBreakBefore?: import("csstype").Property.PageBreakBefore | undefined;
|
|
258
267
|
pageBreakInside?: import("csstype").Property.PageBreakInside | undefined;
|
|
259
268
|
paintOrder?: import("csstype").Property.PaintOrder | undefined;
|
|
260
269
|
perspective?: import("csstype").Property.Perspective<string | number> | undefined;
|
|
261
270
|
perspectiveOrigin?: import("csstype").Property.PerspectiveOrigin<string | number> | undefined;
|
|
262
|
-
placeContent?: import("csstype").Property.PlaceContent | undefined;
|
|
263
271
|
pointerEvents?: import("csstype").Property.PointerEvents | undefined;
|
|
264
272
|
position?: import("csstype").Property.Position | undefined;
|
|
265
273
|
printColorAdjust?: import("csstype").Property.PrintColorAdjust | undefined;
|
|
@@ -273,36 +281,31 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
273
281
|
rubyPosition?: import("csstype").Property.RubyPosition | undefined;
|
|
274
282
|
scale?: string | number | readonly [number, number] | undefined;
|
|
275
283
|
scrollBehavior?: import("csstype").Property.ScrollBehavior | undefined;
|
|
276
|
-
scrollMargin?: import("csstype").Property.ScrollMargin<string | number> | undefined;
|
|
277
|
-
scrollMarginBlock?: import("csstype").Property.ScrollMarginBlock<string | number> | undefined;
|
|
278
284
|
scrollMarginBlockEnd?: import("csstype").Property.ScrollMarginBlockEnd<string | number> | undefined;
|
|
279
285
|
scrollMarginBlockStart?: import("csstype").Property.ScrollMarginBlockStart<string | number> | undefined;
|
|
280
286
|
scrollMarginBottom?: import("csstype").Property.ScrollMarginBottom<string | number> | undefined;
|
|
281
|
-
scrollMarginInline?: import("csstype").Property.ScrollMarginInline<string | number> | undefined;
|
|
282
287
|
scrollMarginInlineEnd?: import("csstype").Property.ScrollMarginInlineEnd<string | number> | undefined;
|
|
283
288
|
scrollMarginInlineStart?: import("csstype").Property.ScrollMarginInlineStart<string | number> | undefined;
|
|
284
289
|
scrollMarginLeft?: import("csstype").Property.ScrollMarginLeft<string | number> | undefined;
|
|
285
290
|
scrollMarginRight?: import("csstype").Property.ScrollMarginRight<string | number> | undefined;
|
|
286
291
|
scrollMarginTop?: import("csstype").Property.ScrollMarginTop<string | number> | undefined;
|
|
287
|
-
scrollPadding?: import("csstype").Property.ScrollPadding<string | number> | undefined;
|
|
288
|
-
scrollPaddingBlock?: import("csstype").Property.ScrollPaddingBlock<string | number> | undefined;
|
|
289
292
|
scrollPaddingBlockEnd?: import("csstype").Property.ScrollPaddingBlockEnd<string | number> | undefined;
|
|
290
293
|
scrollPaddingBlockStart?: import("csstype").Property.ScrollPaddingBlockStart<string | number> | undefined;
|
|
291
294
|
scrollPaddingBottom?: import("csstype").Property.ScrollPaddingBottom<string | number> | undefined;
|
|
292
|
-
scrollPaddingInline?: import("csstype").Property.ScrollPaddingInline<string | number> | undefined;
|
|
293
295
|
scrollPaddingInlineEnd?: import("csstype").Property.ScrollPaddingInlineEnd<string | number> | undefined;
|
|
294
296
|
scrollPaddingInlineStart?: import("csstype").Property.ScrollPaddingInlineStart<string | number> | undefined;
|
|
295
297
|
scrollPaddingLeft?: import("csstype").Property.ScrollPaddingLeft<string | number> | undefined;
|
|
296
298
|
scrollPaddingRight?: import("csstype").Property.ScrollPaddingRight<string | number> | undefined;
|
|
297
299
|
scrollPaddingTop?: import("csstype").Property.ScrollPaddingTop<string | number> | undefined;
|
|
298
300
|
scrollSnapAlign?: import("csstype").Property.ScrollSnapAlign | undefined;
|
|
299
|
-
scrollSnapMargin?: import("csstype").Property.ScrollMargin<string | number> | undefined;
|
|
300
301
|
scrollSnapMarginBottom?: import("csstype").Property.ScrollMarginBottom<string | number> | undefined;
|
|
301
302
|
scrollSnapMarginLeft?: import("csstype").Property.ScrollMarginLeft<string | number> | undefined;
|
|
302
303
|
scrollSnapMarginRight?: import("csstype").Property.ScrollMarginRight<string | number> | undefined;
|
|
303
304
|
scrollSnapMarginTop?: import("csstype").Property.ScrollMarginTop<string | number> | undefined;
|
|
304
305
|
scrollSnapStop?: import("csstype").Property.ScrollSnapStop | undefined;
|
|
305
306
|
scrollSnapType?: import("csstype").Property.ScrollSnapType | undefined;
|
|
307
|
+
scrollTimelineAxis?: import("csstype").Property.ScrollTimelineAxis | undefined;
|
|
308
|
+
scrollTimelineName?: import("csstype").Property.ScrollTimelineName | undefined;
|
|
306
309
|
scrollbarColor?: import("csstype").Property.ScrollbarColor | undefined;
|
|
307
310
|
scrollbarGutter?: import("csstype").Property.ScrollbarGutter | undefined;
|
|
308
311
|
scrollbarWidth?: import("csstype").Property.ScrollbarWidth | undefined;
|
|
@@ -320,7 +323,6 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
320
323
|
textDecorationSkipInk?: import("csstype").Property.TextDecorationSkipInk | undefined;
|
|
321
324
|
textDecorationStyle?: import("csstype").Property.TextDecorationStyle | undefined;
|
|
322
325
|
textDecorationThickness?: import("csstype").Property.TextDecorationThickness<string | number> | undefined;
|
|
323
|
-
textDecorationWidth?: import("csstype").Property.TextDecorationThickness<string | number> | undefined;
|
|
324
326
|
textEmphasisColor?: import("csstype").Property.TextEmphasisColor | undefined;
|
|
325
327
|
textEmphasisPosition?: import("csstype").Property.TextEmphasisPosition | undefined;
|
|
326
328
|
textEmphasisStyle?: import("csstype").Property.TextEmphasisStyle | undefined;
|
|
@@ -348,6 +350,7 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
348
350
|
unicodeBidi?: import("csstype").Property.UnicodeBidi | undefined;
|
|
349
351
|
userSelect?: import("csstype").Property.UserSelect | undefined;
|
|
350
352
|
verticalAlign?: import("csstype").Property.VerticalAlign<string | number> | undefined;
|
|
353
|
+
viewTransitionName?: import("csstype").Property.ViewTransitionName | undefined;
|
|
351
354
|
visibility?: import("csstype").Property.Visibility | undefined;
|
|
352
355
|
whiteSpace?: import("csstype").Property.WhiteSpace | undefined;
|
|
353
356
|
widows?: import("csstype").Property.Widows | undefined;
|
|
@@ -379,8 +382,11 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
379
382
|
borderStyle?: import("csstype").Property.BorderStyle | undefined;
|
|
380
383
|
borderTop?: import("csstype").Property.BorderTop<string | number> | undefined;
|
|
381
384
|
borderWidth?: import("csstype").Property.BorderWidth<string | number> | undefined;
|
|
385
|
+
caret?: import("csstype").Property.Caret | undefined;
|
|
382
386
|
columnRule?: import("csstype").Property.ColumnRule<string | number> | undefined;
|
|
383
387
|
columns?: import("csstype").Property.Columns<string | number> | undefined;
|
|
388
|
+
containIntrinsicSize?: import("csstype").Property.ContainIntrinsicSize<string | number> | undefined;
|
|
389
|
+
container?: import("csstype").Property.Container | undefined;
|
|
384
390
|
flex?: import("csstype").Property.Flex<string | number> | undefined;
|
|
385
391
|
flexFlow?: import("csstype").Property.FlexFlow | undefined;
|
|
386
392
|
font?: import("csstype").Property.Font | undefined;
|
|
@@ -390,9 +396,14 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
390
396
|
gridColumn?: import("csstype").Property.GridColumn | undefined;
|
|
391
397
|
gridRow?: import("csstype").Property.GridRow | undefined;
|
|
392
398
|
gridTemplate?: import("csstype").Property.GridTemplate | undefined;
|
|
399
|
+
inset?: import("csstype").Property.Inset<string | number> | undefined;
|
|
400
|
+
insetBlock?: import("csstype").Property.InsetBlock<string | number> | undefined;
|
|
401
|
+
insetInline?: import("csstype").Property.InsetInline<string | number> | undefined;
|
|
393
402
|
lineClamp?: import("csstype").Property.LineClamp | undefined;
|
|
394
403
|
listStyle?: import("csstype").Property.ListStyle | undefined;
|
|
395
404
|
margin?: import("csstype").Property.Margin<string | number> | undefined;
|
|
405
|
+
marginBlock?: import("csstype").Property.MarginBlock<string | number> | undefined;
|
|
406
|
+
marginInline?: import("csstype").Property.MarginInline<string | number> | undefined;
|
|
396
407
|
mask?: import("csstype").Property.Mask<string | number> | undefined;
|
|
397
408
|
maskBorder?: import("csstype").Property.MaskBorder | undefined;
|
|
398
409
|
motion?: import("csstype").Property.Offset<string | number> | undefined;
|
|
@@ -401,8 +412,19 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
401
412
|
overflow?: import("csstype").Property.Overflow | undefined;
|
|
402
413
|
overscrollBehavior?: import("csstype").Property.OverscrollBehavior | undefined;
|
|
403
414
|
padding?: import("csstype").Property.Padding<string | number> | undefined;
|
|
415
|
+
paddingBlock?: import("csstype").Property.PaddingBlock<string | number> | undefined;
|
|
416
|
+
paddingInline?: import("csstype").Property.PaddingInline<string | number> | undefined;
|
|
417
|
+
placeContent?: import("csstype").Property.PlaceContent | undefined;
|
|
404
418
|
placeItems?: import("csstype").Property.PlaceItems | undefined;
|
|
405
419
|
placeSelf?: import("csstype").Property.PlaceSelf | undefined;
|
|
420
|
+
scrollMargin?: import("csstype").Property.ScrollMargin<string | number> | undefined;
|
|
421
|
+
scrollMarginBlock?: import("csstype").Property.ScrollMarginBlock<string | number> | undefined;
|
|
422
|
+
scrollMarginInline?: import("csstype").Property.ScrollMarginInline<string | number> | undefined;
|
|
423
|
+
scrollPadding?: import("csstype").Property.ScrollPadding<string | number> | undefined;
|
|
424
|
+
scrollPaddingBlock?: import("csstype").Property.ScrollPaddingBlock<string | number> | undefined;
|
|
425
|
+
scrollPaddingInline?: import("csstype").Property.ScrollPaddingInline<string | number> | undefined;
|
|
426
|
+
scrollSnapMargin?: import("csstype").Property.ScrollMargin<string | number> | undefined;
|
|
427
|
+
scrollTimeline?: import("csstype").Property.ScrollTimeline | undefined;
|
|
406
428
|
textDecoration?: import("csstype").Property.TextDecoration<string | number> | undefined;
|
|
407
429
|
textEmphasis?: import("csstype").Property.TextEmphasis | undefined;
|
|
408
430
|
transition?: import("csstype").Property.Transition<string & {}> | undefined;
|
|
@@ -416,6 +438,7 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
416
438
|
MozAnimationTimingFunction?: import("csstype").Property.AnimationTimingFunction | undefined;
|
|
417
439
|
MozAppearance?: import("csstype").Property.MozAppearance | undefined;
|
|
418
440
|
MozBackfaceVisibility?: import("csstype").Property.BackfaceVisibility | undefined;
|
|
441
|
+
MozBinding?: import("csstype").Property.MozBinding | undefined;
|
|
419
442
|
MozBorderBottomColors?: import("csstype").Property.MozBorderBottomColors | undefined;
|
|
420
443
|
MozBorderEndColor?: import("csstype").Property.BorderInlineEndColor | undefined;
|
|
421
444
|
MozBorderEndStyle?: import("csstype").Property.BorderInlineEndStyle | undefined;
|
|
@@ -428,7 +451,6 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
428
451
|
MozBoxSizing?: import("csstype").Property.BoxSizing | undefined;
|
|
429
452
|
MozColumnCount?: import("csstype").Property.ColumnCount | undefined;
|
|
430
453
|
MozColumnFill?: import("csstype").Property.ColumnFill | undefined;
|
|
431
|
-
MozColumnGap?: import("csstype").Property.ColumnGap<string | number> | undefined;
|
|
432
454
|
MozColumnRuleColor?: import("csstype").Property.ColumnRuleColor | undefined;
|
|
433
455
|
MozColumnRuleStyle?: import("csstype").Property.ColumnRuleStyle | undefined;
|
|
434
456
|
MozColumnRuleWidth?: import("csstype").Property.ColumnRuleWidth<string | number> | undefined;
|
|
@@ -462,7 +484,6 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
462
484
|
MozWindowDragging?: import("csstype").Property.MozWindowDragging | undefined;
|
|
463
485
|
MozWindowShadow?: import("csstype").Property.MozWindowShadow | undefined;
|
|
464
486
|
msAccelerator?: import("csstype").Property.MsAccelerator | undefined;
|
|
465
|
-
msAlignSelf?: import("csstype").Property.AlignSelf | undefined;
|
|
466
487
|
msBlockProgression?: import("csstype").Property.MsBlockProgression | undefined;
|
|
467
488
|
msContentZoomChaining?: import("csstype").Property.MsContentZoomChaining | undefined;
|
|
468
489
|
msContentZoomLimitMax?: import("csstype").Property.MsContentZoomLimitMax | undefined;
|
|
@@ -483,7 +504,6 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
483
504
|
msHyphenateLimitZone?: import("csstype").Property.MsHyphenateLimitZone<string | number> | undefined;
|
|
484
505
|
msHyphens?: import("csstype").Property.Hyphens | undefined;
|
|
485
506
|
msImeAlign?: import("csstype").Property.MsImeAlign | undefined;
|
|
486
|
-
msJustifySelf?: import("csstype").Property.JustifySelf | undefined;
|
|
487
507
|
msLineBreak?: import("csstype").Property.LineBreak | undefined;
|
|
488
508
|
msOrder?: import("csstype").Property.Order | undefined;
|
|
489
509
|
msOverflowStyle?: import("csstype").Property.MsOverflowStyle | undefined;
|
|
@@ -506,6 +526,7 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
506
526
|
msScrollbarFaceColor?: import("csstype").Property.MsScrollbarFaceColor | undefined;
|
|
507
527
|
msScrollbarHighlightColor?: import("csstype").Property.MsScrollbarHighlightColor | undefined;
|
|
508
528
|
msScrollbarShadowColor?: import("csstype").Property.MsScrollbarShadowColor | undefined;
|
|
529
|
+
msScrollbarTrackColor?: import("csstype").Property.MsScrollbarTrackColor | undefined;
|
|
509
530
|
msTextAutospace?: import("csstype").Property.MsTextAutospace | undefined;
|
|
510
531
|
msTextCombineHorizontal?: import("csstype").Property.TextCombineUpright | undefined;
|
|
511
532
|
msTextOverflow?: import("csstype").Property.TextOverflow | undefined;
|
|
@@ -555,7 +576,6 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
555
576
|
WebkitClipPath?: import("csstype").Property.ClipPath | undefined;
|
|
556
577
|
WebkitColumnCount?: import("csstype").Property.ColumnCount | undefined;
|
|
557
578
|
WebkitColumnFill?: import("csstype").Property.ColumnFill | undefined;
|
|
558
|
-
WebkitColumnGap?: import("csstype").Property.ColumnGap<string | number> | undefined;
|
|
559
579
|
WebkitColumnRuleColor?: import("csstype").Property.ColumnRuleColor | undefined;
|
|
560
580
|
WebkitColumnRuleStyle?: import("csstype").Property.ColumnRuleStyle | undefined;
|
|
561
581
|
WebkitColumnRuleWidth?: import("csstype").Property.ColumnRuleWidth<string | number> | undefined;
|
|
@@ -684,7 +704,6 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
684
704
|
scrollSnapPointsY?: import("csstype").Property.ScrollSnapPointsY | undefined;
|
|
685
705
|
scrollSnapTypeX?: import("csstype").Property.ScrollSnapTypeX | undefined;
|
|
686
706
|
scrollSnapTypeY?: import("csstype").Property.ScrollSnapTypeY | undefined;
|
|
687
|
-
scrollbarTrackColor?: import("csstype").Property.MsScrollbarTrackColor | undefined;
|
|
688
707
|
KhtmlBoxAlign?: import("csstype").Property.BoxAlign | undefined;
|
|
689
708
|
KhtmlBoxDirection?: import("csstype").Property.BoxDirection | undefined;
|
|
690
709
|
KhtmlBoxFlex?: import("csstype").Property.BoxFlex | undefined;
|
|
@@ -700,7 +719,6 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
700
719
|
MozBackgroundInlinePolicy?: import("csstype").Property.BoxDecorationBreak | undefined;
|
|
701
720
|
MozBackgroundOrigin?: import("csstype").Property.BackgroundOrigin | undefined;
|
|
702
721
|
MozBackgroundSize?: import("csstype").Property.BackgroundSize<string | number> | undefined;
|
|
703
|
-
MozBinding?: import("csstype").Property.MozBinding | undefined;
|
|
704
722
|
MozBorderRadius?: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
705
723
|
MozBorderRadiusBottomleft?: import("csstype").Property.BorderBottomLeftRadius<string | number> | undefined;
|
|
706
724
|
MozBorderRadiusBottomright?: import("csstype").Property.BorderBottomRightRadius<string | number> | undefined;
|
|
@@ -731,7 +749,6 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
731
749
|
MozTextDecorationStyle?: import("csstype").Property.TextDecorationStyle | undefined;
|
|
732
750
|
MozUserInput?: import("csstype").Property.MozUserInput | undefined;
|
|
733
751
|
msImeMode?: import("csstype").Property.ImeMode | undefined;
|
|
734
|
-
msScrollbarTrackColor?: import("csstype").Property.MsScrollbarTrackColor | undefined;
|
|
735
752
|
OAnimation?: import("csstype").Property.Animation<string & {}> | undefined;
|
|
736
753
|
OAnimationDelay?: import("csstype").Property.AnimationDelay<string & {}> | undefined;
|
|
737
754
|
OAnimationDirection?: import("csstype").Property.AnimationDirection | undefined;
|
|
@@ -823,25 +840,30 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
823
840
|
suppressContentEditableWarning?: boolean | undefined;
|
|
824
841
|
suppressHydrationWarning?: boolean | undefined;
|
|
825
842
|
accessKey?: string | undefined;
|
|
826
|
-
|
|
843
|
+
autoFocus?: boolean | undefined;
|
|
844
|
+
contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
|
|
827
845
|
contextMenu?: string | undefined;
|
|
828
846
|
dir?: string | undefined;
|
|
829
|
-
draggable?: (boolean | "
|
|
847
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
|
830
848
|
hidden?: boolean | undefined;
|
|
831
849
|
id?: string | undefined;
|
|
832
850
|
lang?: string | undefined;
|
|
851
|
+
nonce?: string | undefined;
|
|
833
852
|
placeholder?: string | undefined;
|
|
834
|
-
spellCheck?: (boolean | "
|
|
853
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
835
854
|
tabIndex?: number | undefined;
|
|
836
855
|
translate?: "yes" | "no" | undefined;
|
|
837
856
|
radioGroup?: string | undefined;
|
|
838
857
|
role?: import("react").AriaRole | undefined;
|
|
839
858
|
about?: string | undefined;
|
|
859
|
+
content?: string | undefined;
|
|
840
860
|
datatype?: string | undefined;
|
|
841
861
|
inlist?: any;
|
|
842
862
|
prefix?: string | undefined;
|
|
843
863
|
property?: string | undefined;
|
|
864
|
+
rel?: string | undefined;
|
|
844
865
|
resource?: string | undefined;
|
|
866
|
+
rev?: string | undefined;
|
|
845
867
|
typeof?: string | undefined;
|
|
846
868
|
vocab?: string | undefined;
|
|
847
869
|
autoCapitalize?: string | undefined;
|
|
@@ -856,50 +878,50 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
856
878
|
results?: number | undefined;
|
|
857
879
|
security?: string | undefined;
|
|
858
880
|
unselectable?: "on" | "off" | undefined;
|
|
859
|
-
inputMode?: "text" | "
|
|
881
|
+
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
860
882
|
is?: string | undefined;
|
|
861
883
|
'aria-activedescendant'?: string | undefined;
|
|
862
|
-
'aria-atomic'?: (boolean | "
|
|
863
|
-
'aria-autocomplete'?: "
|
|
864
|
-
'aria-busy'?: (boolean | "
|
|
865
|
-
'aria-checked'?: boolean | "
|
|
884
|
+
'aria-atomic'?: (boolean | "false" | "true") | undefined;
|
|
885
|
+
'aria-autocomplete'?: "none" | "list" | "both" | "inline" | undefined;
|
|
886
|
+
'aria-busy'?: (boolean | "false" | "true") | undefined;
|
|
887
|
+
'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
|
|
866
888
|
'aria-colcount'?: number | undefined;
|
|
867
889
|
'aria-colindex'?: number | undefined;
|
|
868
890
|
'aria-colspan'?: number | undefined;
|
|
869
891
|
'aria-controls'?: string | undefined;
|
|
870
|
-
'aria-current'?: boolean | "time" | "
|
|
892
|
+
'aria-current'?: boolean | "time" | "page" | "step" | "false" | "true" | "location" | "date" | undefined;
|
|
871
893
|
'aria-describedby'?: string | undefined;
|
|
872
894
|
'aria-details'?: string | undefined;
|
|
873
|
-
'aria-disabled'?: (boolean | "
|
|
874
|
-
'aria-dropeffect'?: "link" | "none" | "copy" | "
|
|
895
|
+
'aria-disabled'?: (boolean | "false" | "true") | undefined;
|
|
896
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
|
875
897
|
'aria-errormessage'?: string | undefined;
|
|
876
|
-
'aria-expanded'?: (boolean | "
|
|
898
|
+
'aria-expanded'?: (boolean | "false" | "true") | undefined;
|
|
877
899
|
'aria-flowto'?: string | undefined;
|
|
878
|
-
'aria-grabbed'?: (boolean | "
|
|
879
|
-
'aria-haspopup'?: boolean | "dialog" | "menu" | "
|
|
880
|
-
'aria-hidden'?: (boolean | "
|
|
881
|
-
'aria-invalid'?: boolean | "
|
|
900
|
+
'aria-grabbed'?: (boolean | "false" | "true") | undefined;
|
|
901
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "false" | "true" | "tree" | undefined;
|
|
902
|
+
'aria-hidden'?: (boolean | "false" | "true") | undefined;
|
|
903
|
+
'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
882
904
|
'aria-keyshortcuts'?: string | undefined;
|
|
883
905
|
'aria-label'?: string | undefined;
|
|
884
906
|
'aria-labelledby'?: string | undefined;
|
|
885
907
|
'aria-level'?: number | undefined;
|
|
886
908
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
887
|
-
'aria-modal'?: (boolean | "
|
|
888
|
-
'aria-multiline'?: (boolean | "
|
|
889
|
-
'aria-multiselectable'?: (boolean | "
|
|
909
|
+
'aria-modal'?: (boolean | "false" | "true") | undefined;
|
|
910
|
+
'aria-multiline'?: (boolean | "false" | "true") | undefined;
|
|
911
|
+
'aria-multiselectable'?: (boolean | "false" | "true") | undefined;
|
|
890
912
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
891
913
|
'aria-owns'?: string | undefined;
|
|
892
914
|
'aria-placeholder'?: string | undefined;
|
|
893
915
|
'aria-posinset'?: number | undefined;
|
|
894
|
-
'aria-pressed'?: boolean | "
|
|
895
|
-
'aria-readonly'?: (boolean | "
|
|
916
|
+
'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
|
|
917
|
+
'aria-readonly'?: (boolean | "false" | "true") | undefined;
|
|
896
918
|
'aria-relevant'?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
897
|
-
'aria-required'?: (boolean | "
|
|
919
|
+
'aria-required'?: (boolean | "false" | "true") | undefined;
|
|
898
920
|
'aria-roledescription'?: string | undefined;
|
|
899
921
|
'aria-rowcount'?: number | undefined;
|
|
900
922
|
'aria-rowindex'?: number | undefined;
|
|
901
923
|
'aria-rowspan'?: number | undefined;
|
|
902
|
-
'aria-selected'?: (boolean | "
|
|
924
|
+
'aria-selected'?: (boolean | "false" | "true") | undefined;
|
|
903
925
|
'aria-setsize'?: number | undefined;
|
|
904
926
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
905
927
|
'aria-valuemax'?: number | undefined;
|
|
@@ -59,7 +59,7 @@ export declare const DrawerHeader: import("@emotion/styled").StyledComponent<imp
|
|
|
59
59
|
export declare const DrawerToggle: import("@emotion/styled").StyledComponent<{
|
|
60
60
|
children?: import("react").ReactNode;
|
|
61
61
|
classes?: Partial<import("@mui/material").IconButtonClasses> | undefined;
|
|
62
|
-
color?: "inherit" | "primary" | "secondary" | "success" | "error" | "info" | "warning" |
|
|
62
|
+
color?: "inherit" | "default" | "primary" | "secondary" | "success" | "error" | "info" | "warning" | undefined;
|
|
63
63
|
disabled?: boolean | undefined;
|
|
64
64
|
disableFocusRipple?: boolean | undefined;
|
|
65
65
|
edge?: false | "end" | "start" | undefined;
|
|
@@ -1,36 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
logo?: string;
|
|
5
|
-
logoText?: string;
|
|
6
|
-
logoOnClick?: any;
|
|
7
|
-
items?: IVerticalNavigationItemProps[];
|
|
8
|
-
secondaryItems?: IVerticalNavigationItemProps[];
|
|
9
|
-
hasStreamHome?: boolean;
|
|
10
|
-
streamHomeAccessToken?: string;
|
|
11
|
-
streamHomeBaseUrl?: string;
|
|
12
|
-
streamHomeApiKey?: string;
|
|
13
|
-
streamHomeApplications?: IApplication[];
|
|
14
|
-
avatarName?: string;
|
|
15
|
-
isDrawerOpen?: boolean;
|
|
16
|
-
isPersistent?: boolean;
|
|
17
|
-
setIsPersistent?: any;
|
|
18
|
-
appRootID?: string;
|
|
19
|
-
localization?: any;
|
|
20
|
-
dataAttributes?: any;
|
|
21
|
-
hasAvatar?: boolean;
|
|
22
|
-
avatarPanelLogoutString?: string;
|
|
23
|
-
avatarPanelOnClickSwitchDirection?: any;
|
|
24
|
-
avatarPanelOnClickLogout?: any;
|
|
25
|
-
avatarPanelOnClickViewProfile?: any;
|
|
26
|
-
avatarPanelViewProfileString?: string;
|
|
27
|
-
avatarPanelOnClickEditProfile?: any;
|
|
28
|
-
avatarPanelEditProfileString?: string;
|
|
29
|
-
avatarPanelMenuItems?: Array<IAvatarMenuItemProps>;
|
|
30
|
-
avatarPanelOnClickMainAction?: any;
|
|
31
|
-
avatarPanelMainActionString?: string;
|
|
32
|
-
avatarPanelSettingItems?: Array<IAvatarMenuItemProps>;
|
|
33
|
-
avatarPanelFootnote?: any;
|
|
34
|
-
}
|
|
35
|
-
declare const VerticalNavigation: (props: VerticalNavigationProps) => React.ReactElement;
|
|
2
|
+
import { IVerticalNavigationProps } from '../../../types';
|
|
3
|
+
declare const VerticalNavigation: (props: IVerticalNavigationProps) => React.ReactElement;
|
|
36
4
|
export default VerticalNavigation;
|
|
@@ -26,21 +26,28 @@ import { useTheme } from '@mui/material/styles';
|
|
|
26
26
|
import EditIcon from '@mui/icons-material/Edit';
|
|
27
27
|
import LogoutIcon from '@mui/icons-material/Logout';
|
|
28
28
|
import { handleAvatarInitials, useFadeIn } from '../../../utils/helpers';
|
|
29
|
-
import { Person, Settings } from '@mui/icons-material';
|
|
29
|
+
import { Help, Lightbulb, Person, Phone, Settings } from '@mui/icons-material';
|
|
30
30
|
import { animated } from '@react-spring/web';
|
|
31
31
|
import { FlyoutMenuItemText } from './VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles';
|
|
32
32
|
import { defaultMessages } from '../../../lang/en-us';
|
|
33
33
|
import { defaultAttributes } from '../../../utils/dataAttributes';
|
|
34
34
|
var AvatarPanel = function (props) {
|
|
35
|
-
var _a, _b, _c, _d;
|
|
35
|
+
var _a, _b, _c, _d, _e;
|
|
36
36
|
var theme = useTheme();
|
|
37
|
-
var avatarName = props.avatarName, avatarPanelOnClickLogout = props.avatarPanelOnClickLogout, avatarPanelLogoutString = props.avatarPanelLogoutString, avatarPanelOnClickViewProfile = props.avatarPanelOnClickViewProfile, avatarPanelViewProfileString = props.avatarPanelViewProfileString, avatarPanelOnClickEditProfile = props.avatarPanelOnClickEditProfile, avatarPanelEditProfileString = props.avatarPanelEditProfileString, avatarPanelMenuItems = props.avatarPanelMenuItems,
|
|
37
|
+
var avatarName = props.avatarName, avatarPanelOnClickLogout = props.avatarPanelOnClickLogout, avatarPanelLogoutString = props.avatarPanelLogoutString, avatarPanelOnClickViewProfile = props.avatarPanelOnClickViewProfile, avatarPanelViewProfileString = props.avatarPanelViewProfileString, avatarPanelOnClickEditProfile = props.avatarPanelOnClickEditProfile, avatarPanelEditProfileString = props.avatarPanelEditProfileString, avatarPanelMenuItems = props.avatarPanelMenuItems, avatarPanelSettingItems = props.avatarPanelSettingItems, avatarPanelOnClickMainAction = props.avatarPanelOnClickMainAction, avatarPanelMainActionString = props.avatarPanelMainActionString, avatarPanelFootnote = props.avatarPanelFootnote, isAvatarOpen = props.isAvatarOpen, localization = props.localization, dataAttributes = props.dataAttributes, avatarPanelShowHelpLinks = props.avatarPanelShowHelpLinks;
|
|
38
38
|
var messages = __assign(__assign({}, defaultMessages), localization);
|
|
39
39
|
var dataIds = __assign(__assign({}, defaultAttributes), dataAttributes);
|
|
40
40
|
useEffect(function () {
|
|
41
41
|
setAvatarInitials(handleAvatarInitials(avatarName));
|
|
42
42
|
}, [avatarName]);
|
|
43
|
-
var
|
|
43
|
+
var _f = React.useState((_a = handleAvatarInitials(avatarName)) !== null && _a !== void 0 ? _a : 'AN'), avatarInitials = _f[0], setAvatarInitials = _f[1];
|
|
44
|
+
// Add default helpful links below avatarPanelSettingItems,
|
|
45
|
+
// these can be toggled on/off with the avatarPanelShowHelpLinks prop
|
|
46
|
+
var defaultHelpLinks = [
|
|
47
|
+
{ label: messages['help-center'], icon: _jsx(Help, {}), onClick: function () { return window.open('https://learningpool.zendesk.com/', '_blank'); } },
|
|
48
|
+
{ label: messages['feature-request'], icon: _jsx(Lightbulb, {}), onClick: function () { return window.open('https://app.smartsheet.com/b/form/823248624a324630a904e825098ca816', '_blank'); } },
|
|
49
|
+
{ label: messages['contact-us'], icon: _jsx(Phone, {}), onClick: function () { return window.open('https://learningpool.com/support/', '_blank'); } }
|
|
50
|
+
];
|
|
44
51
|
// Workaround to handle the react-spring calls without
|
|
45
52
|
// adding additional hook calls on prop or state changes
|
|
46
53
|
// --
|
|
@@ -55,7 +62,7 @@ var AvatarPanel = function (props) {
|
|
|
55
62
|
'avatarPanelOnClickMainAction',
|
|
56
63
|
'avatarPanelFootnote'
|
|
57
64
|
];
|
|
58
|
-
var totalItems = __spreadArray(__spreadArray(__spreadArray([], avatarPanelMenuItems !== null && avatarPanelMenuItems !== void 0 ? avatarPanelMenuItems : [], true), avatarPanelSettingItems !== null && avatarPanelSettingItems !== void 0 ? avatarPanelSettingItems : [], true), additionalItems, true);
|
|
65
|
+
var totalItems = __spreadArray(__spreadArray(__spreadArray(__spreadArray([], avatarPanelMenuItems !== null && avatarPanelMenuItems !== void 0 ? avatarPanelMenuItems : [], true), avatarPanelSettingItems !== null && avatarPanelSettingItems !== void 0 ? avatarPanelSettingItems : [], true), defaultHelpLinks !== null && defaultHelpLinks !== void 0 ? defaultHelpLinks : [], true), additionalItems, true);
|
|
59
66
|
var animationRefs = React.useRef(totalItems && totalItems.map(function (item, index) { return useFadeIn(index, !isAvatarOpen); }));
|
|
60
67
|
return (_jsxs(StyledBox, { children: [avatarPanelOnClickLogout && (_jsx(StyledButton
|
|
61
68
|
// @ts-expect-error
|
|
@@ -82,19 +89,30 @@ var AvatarPanel = function (props) {
|
|
|
82
89
|
// @ts-expect-error
|
|
83
90
|
, __assign({
|
|
84
91
|
// @ts-expect-error
|
|
85
|
-
component: animated.button, style: animationRefs.current[((_b = avatarPanelMenuItems === null || avatarPanelMenuItems === void 0 ? void 0 : avatarPanelMenuItems.length) !== null && _b !== void 0 ? _b : 0) + 3], variant: 'outlined', color: 'inherit', size: 'medium', onClick: avatarPanelOnClickMainAction, startIcon: _jsx(Settings, {}) }, { children: avatarPanelMainActionString })),
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
// TODO: figure out if these are links or buttons
|
|
91
|
-
// @ts-expect-error
|
|
92
|
-
, __assign({
|
|
92
|
+
component: animated.button, style: animationRefs.current[((_b = avatarPanelMenuItems === null || avatarPanelMenuItems === void 0 ? void 0 : avatarPanelMenuItems.length) !== null && _b !== void 0 ? _b : 0) + 3], variant: 'outlined', color: 'inherit', size: 'medium', onClick: avatarPanelOnClickMainAction, startIcon: _jsx(Settings, {}) }, { children: avatarPanelMainActionString })), _jsxs(List, __assign({ "data-id": dataIds.VerticalNavigationFlyoutList, style: { marginBottom: theme.spacing(2), marginTop: theme.spacing(2) } }, { children: [avatarPanelSettingItems &&
|
|
93
|
+
avatarPanelSettingItems.length > 0 &&
|
|
94
|
+
avatarPanelSettingItems.map(function (avatarMenuItem, index) {
|
|
95
|
+
var _a;
|
|
96
|
+
return (_jsx(ListItem, __assign({ "data-id": dataIds.VerticalNavigationFlyoutListItem, component: animated.div, style: animationRefs.current[((_a = avatarPanelMenuItems === null || avatarPanelMenuItems === void 0 ? void 0 : avatarPanelMenuItems.length) !== null && _a !== void 0 ? _a : 0) + index + 3], disablePadding: true }, { children: _jsxs(StyledListItemButton
|
|
93
97
|
// TODO: figure out if these are links or buttons
|
|
94
98
|
// @ts-expect-error
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
+
, __assign({
|
|
100
|
+
// TODO: figure out if these are links or buttons
|
|
101
|
+
// @ts-expect-error
|
|
102
|
+
component: Link, role: 'link', onClick: avatarMenuItem.onClick }, { children: [_jsx(ListItemIcon, __assign({ "aria-hidden": true, style: {
|
|
103
|
+
minWidth: theme.spacing(5)
|
|
104
|
+
} }, { children: avatarMenuItem.icon })), _jsx(ListItemText, { primary: avatarMenuItem.label })] })) }), "".concat(avatarMenuItem.label, " - ").concat(index)));
|
|
105
|
+
}), avatarPanelShowHelpLinks && defaultHelpLinks &&
|
|
106
|
+
defaultHelpLinks.length > 0 &&
|
|
107
|
+
defaultHelpLinks.map(function (avatarMenuItem, index) {
|
|
108
|
+
var _a, _b;
|
|
109
|
+
return (_jsx(ListItem, __assign({ "data-id": dataIds.VerticalNavigationFlyoutListItem, component: animated.div, style: animationRefs.current[((_a = avatarPanelMenuItems === null || avatarPanelMenuItems === void 0 ? void 0 : avatarPanelMenuItems.length) !== null && _a !== void 0 ? _a : 0) + ((_b = avatarPanelSettingItems === null || avatarPanelSettingItems === void 0 ? void 0 : avatarPanelSettingItems.length) !== null && _b !== void 0 ? _b : 0) + index + 3], disablePadding: true }, { children: _jsxs(StyledListItemButton
|
|
110
|
+
// @ts-expect-error
|
|
111
|
+
, __assign({
|
|
112
|
+
// @ts-expect-error
|
|
113
|
+
component: Link, role: 'link', onClick: avatarMenuItem.onClick }, { children: [_jsx(ListItemIcon, __assign({ "aria-hidden": true, style: {
|
|
114
|
+
minWidth: theme.spacing(5)
|
|
115
|
+
} }, { children: avatarMenuItem.icon })), _jsx(ListItemText, { primary: avatarMenuItem.label })] })) }), "".concat(avatarMenuItem.label, " - ").concat(index)));
|
|
116
|
+
})] }))] })), _jsx(Box, __assign({ "data-id": dataIds.VerticalNavigationFlyoutFootnote, className: 'avatar-panel-footnote', style: animationRefs.current[((_c = avatarPanelMenuItems === null || avatarPanelMenuItems === void 0 ? void 0 : avatarPanelMenuItems.length) !== null && _c !== void 0 ? _c : 0) + ((_d = avatarPanelSettingItems === null || avatarPanelSettingItems === void 0 ? void 0 : avatarPanelSettingItems.length) !== null && _d !== void 0 ? _d : 0) + ((_e = defaultHelpLinks === null || defaultHelpLinks === void 0 ? void 0 : defaultHelpLinks.length) !== null && _e !== void 0 ? _e : 0) + 4] }, { children: avatarPanelFootnote && avatarPanelFootnote }))] }));
|
|
99
117
|
};
|
|
100
118
|
export default AvatarPanel;
|