@superdispatch/ui-lab 0.25.3 → 0.26.1
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-node/index.js +118 -201
- package/dist-node/index.js.map +1 -1
- package/dist-src/alert/Alert.js +0 -4
- package/dist-src/banner/Banner.js +11 -14
- package/dist-src/box/Box.js +18 -19
- package/dist-src/button/Button.js +22 -37
- package/dist-src/button-area/ButtonArea.js +9 -11
- package/dist-src/chat/Chat.js +0 -2
- package/dist-src/chat/ChatMessage.js +1 -2
- package/dist-src/container/Container.js +3 -7
- package/dist-src/description-item/DescriptionItem.js +1 -4
- package/dist-src/description-line-item/DescriptionLineItem.js +1 -2
- package/dist-src/file-drop-zone/FileDropZone.js +26 -31
- package/dist-src/file-list-item/FileListItem.js +1 -4
- package/dist-src/linked-text/LinkedText.js +10 -13
- package/dist-src/navbar/Navbar.js +1 -2
- package/dist-src/navbar/NavbarAccordion.js +4 -8
- package/dist-src/navbar/NavbarAvatar.js +6 -10
- package/dist-src/navbar/NavbarBottomBar.js +6 -9
- package/dist-src/navbar/NavbarItem.js +1 -2
- package/dist-src/navbar/NavbarList.js +2 -8
- package/dist-src/navbar/NavbarMenu.js +1 -6
- package/dist-src/sidebar/Sidebar.js +1 -2
- package/dist-src/sidebar/SidebarBackButton.js +6 -10
- package/dist-src/sidebar/SidebarContainer.js +1 -4
- package/dist-src/sidebar/SidebarContent.js +1 -2
- package/dist-src/sidebar/SidebarMenuItem.js +1 -4
- package/dist-src/sidebar/SidebarMenuItemAvatar.js +0 -4
- package/dist-src/sidebar/SidebarSubheader.js +1 -2
- package/dist-src/text-box/TextBox.js +9 -23
- package/dist-src/utils/RuleNormalizer.js +0 -3
- package/dist-src/utils/mergeStyles.js +0 -3
- package/dist-web/index.js +118 -201
- package/dist-web/index.js.map +1 -1
- package/package.json +3 -3
package/dist-node/index.js
CHANGED
|
@@ -25,16 +25,13 @@ var lodash = require('lodash');
|
|
|
25
25
|
function colorMixin(textColor, iconColor, backgroundColor, buttonHoverColor) {
|
|
26
26
|
return styled.css(["color:", ";border-color:", ";background-color:", ";& .MuiAlert-icon{color:", ";}& .MuiAlert-action{color:", ";& .MuiIconButton-root{&:hover,&:active{color:", ";}}}"], textColor, textColor, backgroundColor, iconColor, iconColor, buttonHoverColor);
|
|
27
27
|
}
|
|
28
|
-
|
|
29
28
|
var StyledAlert = /*#__PURE__*/styled__default(lab.Alert).withConfig({
|
|
30
29
|
displayName: "Alert__StyledAlert",
|
|
31
30
|
componentId: "SD__sc-1j6qebb-0"
|
|
32
31
|
})(["&.MuiAlert-outlinedSuccess{", ";}&.MuiAlert-outlinedInfo{", ";}&.MuiAlert-outlinedWarning{", ";}&.MuiAlert-outlinedError{", ";}& .MuiAlert-icon{opacity:1;padding:8px 0;font-size:24px;}& .MuiAlert-action{display:block;padding-top:5px;margin-right:-3px;& .MuiIconButton-root{& .MuiSvgIcon-root{font-size:24px;}}}"], /*#__PURE__*/colorMixin(ui.Color.Green500, ui.Color.Green300, ui.Color.Green50, ui.Color.Green400), /*#__PURE__*/colorMixin(ui.Color.Blue500, ui.Color.Blue300, ui.Color.Blue50, ui.Color.Blue400), /*#__PURE__*/colorMixin(ui.Color.Yellow500, ui.Color.Yellow300, ui.Color.Yellow50, ui.Color.Yellow400), /*#__PURE__*/colorMixin(ui.Color.Red500, ui.Color.Red300, ui.Color.Red50, ui.Color.Red400));
|
|
33
|
-
|
|
34
32
|
function toMaterialSeverity(severity) {
|
|
35
33
|
return severity === 'info' ? 'info' : severity === 'caution' ? 'warning' : severity === 'critical' ? 'error' : 'success';
|
|
36
34
|
}
|
|
37
|
-
|
|
38
35
|
var iconMapping = {
|
|
39
36
|
success: /*#__PURE__*/jsxRuntime.jsx(icons.CheckCircle, {}),
|
|
40
37
|
info: /*#__PURE__*/jsxRuntime.jsx(icons.Info, {}),
|
|
@@ -61,22 +58,18 @@ var Alert = /*#__PURE__*/react.forwardRef((_ref, ref) => {
|
|
|
61
58
|
if (process.env.NODE_ENV !== "production") Alert.displayName = "Alert";
|
|
62
59
|
|
|
63
60
|
var _excluded = ["children"],
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
_excluded2 = ["in"];
|
|
66
62
|
function enterMixin(border) {
|
|
67
63
|
return styled.css(["min-height:56px;color:", ";background-color:", ";border-", ":1px #dfe3e8 solid;"], ui.Color.Dark500, ui.Color.White, border);
|
|
68
64
|
}
|
|
69
|
-
|
|
70
65
|
function enterAnimation(border) {
|
|
71
66
|
return styled.keyframes(["0%{min-height:0;color:", ";background-color:", ";}50%{min-height:56px;color:", ";background-color:", ";}70%{min-height:56px;color:", ";background-color:", ";}100%{", "}"], ui.Color.White, ui.Color.Dark500, ui.Color.White, ui.Color.Dark500, ui.Color.White, ui.Color.Dark500, enterMixin(border));
|
|
72
67
|
}
|
|
73
|
-
|
|
74
68
|
var CustomTransition = /*#__PURE__*/react.forwardRef((_ref, ref) => {
|
|
75
69
|
var {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
70
|
+
children
|
|
71
|
+
} = _ref,
|
|
72
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
80
73
|
return /*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, _objectSpread(_objectSpread({}, props), {}, {
|
|
81
74
|
ref: ref,
|
|
82
75
|
timeout: 3000,
|
|
@@ -98,12 +91,12 @@ var BannerContent = /*#__PURE__*/styled__default(CustomTransition).withConfig({
|
|
|
98
91
|
});
|
|
99
92
|
var Banner = /*#__PURE__*/react.forwardRef((_ref3, ref) => {
|
|
100
93
|
var {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
var [isIn, setIn] = react.useState(false); // transition is not triggered on initial render with `in: true`
|
|
94
|
+
in: inProp
|
|
95
|
+
} = _ref3,
|
|
96
|
+
props = _objectWithoutProperties(_ref3, _excluded2);
|
|
97
|
+
var [isIn, setIn] = react.useState(false);
|
|
106
98
|
|
|
99
|
+
// transition is not triggered on initial render with `in: true`
|
|
107
100
|
react.useEffect(() => {
|
|
108
101
|
setIn(!!inProp);
|
|
109
102
|
}, [inProp]);
|
|
@@ -118,52 +111,51 @@ function createRuleNormalizer(rules) {
|
|
|
118
111
|
return input => {
|
|
119
112
|
if (typeof input == 'string') {
|
|
120
113
|
var value = rules[input];
|
|
121
|
-
|
|
122
114
|
if (typeof value == 'number') {
|
|
123
115
|
return "".concat(value, "px");
|
|
124
116
|
}
|
|
125
|
-
|
|
126
117
|
if (typeof value == 'string') {
|
|
127
118
|
return value;
|
|
128
119
|
}
|
|
129
120
|
}
|
|
130
|
-
|
|
131
121
|
return undefined;
|
|
132
122
|
};
|
|
133
123
|
}
|
|
134
124
|
|
|
125
|
+
//
|
|
135
126
|
// Colors
|
|
136
127
|
//
|
|
137
128
|
|
|
138
129
|
function normalizeColor(input) {
|
|
139
130
|
return ui.isColorProp(input) ? ui.Color[input] : undefined;
|
|
140
|
-
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
//
|
|
141
134
|
// Space
|
|
142
135
|
//
|
|
143
136
|
|
|
144
|
-
|
|
145
137
|
function parseSpace(space) {
|
|
146
138
|
return "".concat(ui.parseSpaceProp(space), "px");
|
|
147
|
-
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
//
|
|
148
142
|
// Margins
|
|
149
143
|
//
|
|
150
144
|
|
|
151
|
-
|
|
152
145
|
function parseMargin(input) {
|
|
153
146
|
if (input === 'auto') return input;
|
|
154
147
|
var prefix = '';
|
|
155
|
-
|
|
156
148
|
if (typeof input == 'string' && input.startsWith('-')) {
|
|
157
149
|
prefix = '-';
|
|
158
150
|
input = input.slice(1);
|
|
159
151
|
}
|
|
160
|
-
|
|
161
152
|
return prefix + parseSpace(input);
|
|
162
|
-
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
//
|
|
163
156
|
// Borders
|
|
164
157
|
//
|
|
165
158
|
|
|
166
|
-
|
|
167
159
|
var normalizeBorderRadius = /*#__PURE__*/createRuleNormalizer({
|
|
168
160
|
none: 0,
|
|
169
161
|
small: 4,
|
|
@@ -174,7 +166,9 @@ var normalizeBorderWidth = /*#__PURE__*/createRuleNormalizer({
|
|
|
174
166
|
small: 1,
|
|
175
167
|
medium: 2,
|
|
176
168
|
large: 4
|
|
177
|
-
});
|
|
169
|
+
});
|
|
170
|
+
|
|
171
|
+
//
|
|
178
172
|
// Rules
|
|
179
173
|
//
|
|
180
174
|
|
|
@@ -223,25 +217,22 @@ var normalizers = {
|
|
|
223
217
|
bottom: undefined,
|
|
224
218
|
position: undefined
|
|
225
219
|
};
|
|
226
|
-
|
|
227
220
|
function injectRule(styles, key, breakpoint, value, normalizer) {
|
|
228
221
|
if (normalizer != null) value = normalizer(value);
|
|
229
|
-
|
|
230
222
|
if (value != null) {
|
|
231
223
|
var rules = styles[breakpoint];
|
|
232
|
-
|
|
233
224
|
if (typeof rules != 'object') {
|
|
234
225
|
rules = {};
|
|
235
226
|
styles[breakpoint] = rules;
|
|
236
227
|
}
|
|
237
|
-
|
|
238
228
|
rules[key] = String(value);
|
|
239
229
|
}
|
|
240
|
-
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
//
|
|
241
233
|
// Box
|
|
242
234
|
//
|
|
243
235
|
|
|
244
|
-
|
|
245
236
|
var Box = /*#__PURE__*/styled__default.div.withConfig({
|
|
246
237
|
displayName: "Box",
|
|
247
238
|
componentId: "SD__sc-1bc600y-0"
|
|
@@ -258,12 +249,10 @@ var Box = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
258
249
|
borderWidth: 0,
|
|
259
250
|
borderStyle: 'solid'
|
|
260
251
|
};
|
|
261
|
-
|
|
262
252
|
for (var k in props) {
|
|
263
253
|
if (Object.prototype.hasOwnProperty.call(props, k) && k in normalizers) {
|
|
264
254
|
var key = k;
|
|
265
255
|
var prop = props[key];
|
|
266
|
-
|
|
267
256
|
if (prop != null) {
|
|
268
257
|
var [mobile, tablet, desktop] = ui.parseResponsiveProp(prop);
|
|
269
258
|
var normalizer = normalizers[key];
|
|
@@ -273,7 +262,6 @@ var Box = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
273
262
|
}
|
|
274
263
|
}
|
|
275
264
|
}
|
|
276
|
-
|
|
277
265
|
return styles;
|
|
278
266
|
});
|
|
279
267
|
|
|
@@ -284,15 +272,14 @@ var ButtonRoot = /*#__PURE__*/styled__default(core.ButtonBase).withConfig({
|
|
|
284
272
|
})(["padding:12px 32px;border-width:1px;border-radius:4px;border-style:solid;border-color:", ";color:", ";background-color:", ";& svg{color:inherit;font-size:24px;}&[data-full-width='true']{width:100%;}&[data-disabled='true']{color:", ";border-color:", ";}&[data-variant='success']{&:hover{color:", ";box-shadow:0 0 0 2px ", ";border-color:", ";}&[data-active='true']{color:", ";border-color:", ";background-color:", ";}}&[data-variant='danger']{&:hover{color:", ";box-shadow:0 0 0 2px ", ";border-color:", ";}&[data-active='true']{color:", ";border-color:", ";background-color:", ";}}"], ui.Color.Silver500, ui.Color.Dark100, ui.Color.White, ui.Color.Silver500, ui.Color.Silver400, ui.Color.Green300, ui.Color.Green100, ui.Color.Green300, ui.Color.Green300, ui.Color.Green300, ui.Color.Green50, ui.Color.Red300, ui.Color.Red100, ui.Color.Red300, ui.Color.Red300, ui.Color.Red300, ui.Color.Red50);
|
|
285
273
|
var ButtonArea = /*#__PURE__*/react.forwardRef((_ref, ref) => {
|
|
286
274
|
var {
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
275
|
+
icon,
|
|
276
|
+
children,
|
|
277
|
+
variant,
|
|
278
|
+
active,
|
|
279
|
+
disabled,
|
|
280
|
+
fullWidth
|
|
281
|
+
} = _ref,
|
|
282
|
+
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
296
283
|
return /*#__PURE__*/jsxRuntime.jsx(ButtonRoot, _objectSpread(_objectSpread({
|
|
297
284
|
ref: ref,
|
|
298
285
|
disabled: disabled,
|
|
@@ -315,9 +302,8 @@ var ButtonArea = /*#__PURE__*/react.forwardRef((_ref, ref) => {
|
|
|
315
302
|
if (process.env.NODE_ENV !== "production") ButtonArea.displayName = "ButtonArea";
|
|
316
303
|
|
|
317
304
|
var _excluded$2 = ["children", "endIcon", "startIcon", "tabIndex", "active", "pending", "disabled", "size", "fullWidth", "variant"],
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
305
|
+
_excluded2$1 = ["type"],
|
|
306
|
+
_excluded3 = ["href", "target"];
|
|
321
307
|
function createButtonVariables(size, _ref) {
|
|
322
308
|
var {
|
|
323
309
|
fontSize = size === 'large' ? 16 : 14,
|
|
@@ -364,7 +350,6 @@ function createButtonVariables(size, _ref) {
|
|
|
364
350
|
iconColor
|
|
365
351
|
};
|
|
366
352
|
}
|
|
367
|
-
|
|
368
353
|
function getDefaultVariables(size) {
|
|
369
354
|
return createButtonVariables(size, {
|
|
370
355
|
textColor: ui.Color.White,
|
|
@@ -376,11 +361,9 @@ function getDefaultVariables(size) {
|
|
|
376
361
|
backgroundColorDisabled: ui.Color.Blue30
|
|
377
362
|
});
|
|
378
363
|
}
|
|
379
|
-
|
|
380
364
|
function getPrimaryVariables(size) {
|
|
381
365
|
return getDefaultVariables(size);
|
|
382
366
|
}
|
|
383
|
-
|
|
384
367
|
function getNeutralVariables(size) {
|
|
385
368
|
return createButtonVariables(size, {
|
|
386
369
|
textColor: ui.Color.Dark500,
|
|
@@ -395,7 +378,6 @@ function getNeutralVariables(size) {
|
|
|
395
378
|
iconColor: ui.Color.Dark100
|
|
396
379
|
});
|
|
397
380
|
}
|
|
398
|
-
|
|
399
381
|
function getCriticalVariables(size) {
|
|
400
382
|
return createButtonVariables(size, {
|
|
401
383
|
textColor: ui.Color.Red500,
|
|
@@ -409,7 +391,6 @@ function getCriticalVariables(size) {
|
|
|
409
391
|
backgroundColorDisabled: ui.Color.Red50
|
|
410
392
|
});
|
|
411
393
|
}
|
|
412
|
-
|
|
413
394
|
function getTextVariables(size) {
|
|
414
395
|
return createButtonVariables(size, {
|
|
415
396
|
textColor: ui.Color.Blue500,
|
|
@@ -420,7 +401,6 @@ function getTextVariables(size) {
|
|
|
420
401
|
textColorDisabled: ui.Color.Blue30
|
|
421
402
|
});
|
|
422
403
|
}
|
|
423
|
-
|
|
424
404
|
function getInvertedVariables(size) {
|
|
425
405
|
return createButtonVariables(size, {
|
|
426
406
|
textColor: ui.Color.White,
|
|
@@ -433,7 +413,6 @@ function getInvertedVariables(size) {
|
|
|
433
413
|
backgroundColorDisabled: ui.Color.White08
|
|
434
414
|
});
|
|
435
415
|
}
|
|
436
|
-
|
|
437
416
|
function getSuccessVariables(size) {
|
|
438
417
|
return createButtonVariables(size, {
|
|
439
418
|
textColor: ui.Color.White,
|
|
@@ -445,7 +424,6 @@ function getSuccessVariables(size) {
|
|
|
445
424
|
backgroundColorDisabled: ui.Color.Green30
|
|
446
425
|
});
|
|
447
426
|
}
|
|
448
|
-
|
|
449
427
|
var ButtonRoot$1 = /*#__PURE__*/styled__default.button.withConfig({
|
|
450
428
|
displayName: "Button__ButtonRoot",
|
|
451
429
|
componentId: "SD__sc-1pwdpe3-0"
|
|
@@ -475,22 +453,20 @@ var ButtonPendingIndicator = /*#__PURE__*/styled__default.span.withConfig({
|
|
|
475
453
|
displayName: "Button__ButtonPendingIndicator",
|
|
476
454
|
componentId: "SD__sc-1pwdpe3-4"
|
|
477
455
|
})(["left:50%;display:flex;position:absolute;visibility:visible;transform:translate(-50%);"]);
|
|
478
|
-
|
|
479
456
|
function useButtonProps(_ref3) {
|
|
480
457
|
var {
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
458
|
+
children,
|
|
459
|
+
endIcon,
|
|
460
|
+
startIcon,
|
|
461
|
+
tabIndex: tabIndexProp = 0,
|
|
462
|
+
active = false,
|
|
463
|
+
pending = false,
|
|
464
|
+
disabled: disabledProp = false,
|
|
465
|
+
size = 'medium',
|
|
466
|
+
fullWidth = false,
|
|
467
|
+
variant = 'default'
|
|
468
|
+
} = _ref3,
|
|
469
|
+
props = _objectWithoutProperties(_ref3, _excluded$2);
|
|
494
470
|
var disabled = pending || disabledProp;
|
|
495
471
|
var tabIndex = disabled ? -1 : tabIndexProp;
|
|
496
472
|
return _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -516,13 +492,11 @@ function useButtonProps(_ref3) {
|
|
|
516
492
|
})
|
|
517
493
|
});
|
|
518
494
|
}
|
|
519
|
-
|
|
520
495
|
var Button = /*#__PURE__*/react.forwardRef((_ref4, ref) => {
|
|
521
496
|
var {
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
497
|
+
type = 'button'
|
|
498
|
+
} = _ref4,
|
|
499
|
+
props = _objectWithoutProperties(_ref4, _excluded2$1);
|
|
526
500
|
var buttonProps = useButtonProps(props);
|
|
527
501
|
return /*#__PURE__*/jsxRuntime.jsx(ButtonRoot$1, _objectSpread(_objectSpread({}, buttonProps), {}, {
|
|
528
502
|
ref: ref,
|
|
@@ -532,11 +506,10 @@ var Button = /*#__PURE__*/react.forwardRef((_ref4, ref) => {
|
|
|
532
506
|
if (process.env.NODE_ENV !== "production") Button.displayName = "Button";
|
|
533
507
|
var AnchorButton = /*#__PURE__*/react.forwardRef((_ref5, ref) => {
|
|
534
508
|
var {
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
509
|
+
href,
|
|
510
|
+
target
|
|
511
|
+
} = _ref5,
|
|
512
|
+
props = _objectWithoutProperties(_ref5, _excluded3);
|
|
540
513
|
var buttonProps = useButtonProps(props);
|
|
541
514
|
var rel = target === '_blank' ? 'noopener noreferrer' : undefined;
|
|
542
515
|
return /*#__PURE__*/jsxRuntime.jsx(ButtonRoot$1, _objectSpread(_objectSpread({}, buttonProps), {}, {
|
|
@@ -558,7 +531,6 @@ var ChatContainer = /*#__PURE__*/styled__default('div').withConfig({
|
|
|
558
531
|
} = _ref;
|
|
559
532
|
return "\n display: flex;\n flex-direction: column-reverse;\n overflow: auto;\n justify-content: ".concat(isEmpty ? 'center' : 'end', ";\n width: 100%;\n height: 100%;\n min-width: 300px;\n max-width: 560px;\n min-height: 368px;\n max-height: 696px;\n padding: 16px;\n box-sizing: border-box;\n");
|
|
560
533
|
});
|
|
561
|
-
|
|
562
534
|
function emptyPlaceholder(text) {
|
|
563
535
|
return /*#__PURE__*/jsxRuntime.jsx(core.Typography, {
|
|
564
536
|
color: "textSecondary",
|
|
@@ -566,7 +538,6 @@ function emptyPlaceholder(text) {
|
|
|
566
538
|
children: text
|
|
567
539
|
});
|
|
568
540
|
}
|
|
569
|
-
|
|
570
541
|
var Chat = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
|
|
571
542
|
var {
|
|
572
543
|
children,
|
|
@@ -635,10 +606,9 @@ ChatMessage.displayName = 'ChatMessage';
|
|
|
635
606
|
var _excluded$3 = ["fullViewportHeight"];
|
|
636
607
|
var Container = /*#__PURE__*/react.forwardRef((_ref, ref) => {
|
|
637
608
|
var {
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
609
|
+
fullViewportHeight
|
|
610
|
+
} = _ref,
|
|
611
|
+
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
642
612
|
var nodeRef = react.useRef(null);
|
|
643
613
|
react.useLayoutEffect(() => {
|
|
644
614
|
if (!fullViewportHeight) {
|
|
@@ -646,10 +616,8 @@ var Container = /*#__PURE__*/react.forwardRef((_ref, ref) => {
|
|
|
646
616
|
nodeRef.current.style.removeProperty('height');
|
|
647
617
|
nodeRef.current.style.removeProperty('--vh');
|
|
648
618
|
}
|
|
649
|
-
|
|
650
619
|
return;
|
|
651
620
|
}
|
|
652
|
-
|
|
653
621
|
function updateHeight() {
|
|
654
622
|
if (nodeRef.current) {
|
|
655
623
|
// https://css-tricks.com/the-trick-to-viewport-units-on-mobile/
|
|
@@ -657,7 +625,6 @@ var Container = /*#__PURE__*/react.forwardRef((_ref, ref) => {
|
|
|
657
625
|
nodeRef.current.style.setProperty('--vh', "".concat(window.innerHeight * 0.01, "px"));
|
|
658
626
|
}
|
|
659
627
|
}
|
|
660
|
-
|
|
661
628
|
updateHeight();
|
|
662
629
|
window.addEventListener('resize', updateHeight);
|
|
663
630
|
return () => {
|
|
@@ -675,14 +642,12 @@ function mergeStyles(styles) {
|
|
|
675
642
|
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
676
643
|
sources[_key - 1] = arguments[_key];
|
|
677
644
|
}
|
|
678
|
-
|
|
679
645
|
for (var source of sources) {
|
|
680
646
|
if (source) {
|
|
681
647
|
for (var key in source) {
|
|
682
648
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
683
649
|
var stylesValue = styles[key];
|
|
684
650
|
var sourceValue = source[key];
|
|
685
|
-
|
|
686
651
|
if (typeof stylesValue == 'object' && typeof sourceValue == 'object') {
|
|
687
652
|
mergeStyles(stylesValue, sourceValue);
|
|
688
653
|
} else {
|
|
@@ -692,7 +657,6 @@ function mergeStyles(styles) {
|
|
|
692
657
|
}
|
|
693
658
|
}
|
|
694
659
|
}
|
|
695
|
-
|
|
696
660
|
return styles;
|
|
697
661
|
}
|
|
698
662
|
|
|
@@ -721,36 +685,27 @@ var VARIANT_TYPE_MAPPING = {
|
|
|
721
685
|
'body-semibold': 'span',
|
|
722
686
|
caption: 'span'
|
|
723
687
|
};
|
|
724
|
-
|
|
725
688
|
function variantMixin(_ref, variant) {
|
|
726
689
|
var {
|
|
727
690
|
typography,
|
|
728
691
|
breakpoints
|
|
729
692
|
} = _ref;
|
|
730
|
-
|
|
731
693
|
switch (variant) {
|
|
732
694
|
case 'heading-1':
|
|
733
695
|
return typography.h1;
|
|
734
|
-
|
|
735
696
|
case 'heading-2':
|
|
736
697
|
return typography.h2;
|
|
737
|
-
|
|
738
698
|
case 'heading-3':
|
|
739
699
|
return typography.h3;
|
|
740
|
-
|
|
741
700
|
case 'heading-4':
|
|
742
701
|
return typography.h4;
|
|
743
|
-
|
|
744
702
|
case 'heading-5':
|
|
745
703
|
return typography.h5;
|
|
746
|
-
|
|
747
704
|
case 'heading-6':
|
|
748
705
|
return typography.h6;
|
|
749
|
-
|
|
750
706
|
case 'body':
|
|
751
707
|
default:
|
|
752
708
|
return typography.body2;
|
|
753
|
-
|
|
754
709
|
case 'body-block':
|
|
755
710
|
{
|
|
756
711
|
return mergeStyles({}, typography.body2, {
|
|
@@ -760,19 +715,15 @@ function variantMixin(_ref, variant) {
|
|
|
760
715
|
}
|
|
761
716
|
});
|
|
762
717
|
}
|
|
763
|
-
|
|
764
718
|
case 'body-semibold':
|
|
765
719
|
return typography.body1;
|
|
766
|
-
|
|
767
720
|
case 'caption':
|
|
768
721
|
return typography.caption;
|
|
769
722
|
}
|
|
770
723
|
}
|
|
771
|
-
|
|
772
724
|
function textBoxMixin(noWrap, align, color, display, wrapOverflow) {
|
|
773
725
|
return styled.css(["text-align:", ";color:", ";display:", ";overflow:", ";white-space:", ";overflow-wrap:", ";"], align, normalizeTextColor(color), display === 'initial' && (noWrap || align !== 'left') ? 'block' : display, noWrap ? 'hidden' : 'visible', noWrap ? 'nowrap' : 'normal', wrapOverflow ? 'break-word' : 'normal');
|
|
774
726
|
}
|
|
775
|
-
|
|
776
727
|
var TextBoxRoot = /*#__PURE__*/styled__default.span.withConfig({
|
|
777
728
|
displayName: "TextBox__TextBoxRoot",
|
|
778
729
|
componentId: "SD__sc-9mywck-0"
|
|
@@ -790,16 +741,15 @@ var TextBoxRoot = /*#__PURE__*/styled__default.span.withConfig({
|
|
|
790
741
|
});
|
|
791
742
|
var TextBox = /*#__PURE__*/react.forwardRef((_ref3, ref) => {
|
|
792
743
|
var {
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
744
|
+
variant: $variant = 'body',
|
|
745
|
+
as = VARIANT_TYPE_MAPPING[$variant],
|
|
746
|
+
align = 'left',
|
|
747
|
+
color = 'primary',
|
|
748
|
+
display = 'initial',
|
|
749
|
+
noWrap = false,
|
|
750
|
+
wrapOverflow = false
|
|
751
|
+
} = _ref3,
|
|
752
|
+
props = _objectWithoutProperties(_ref3, _excluded$4);
|
|
803
753
|
var $align = ui.parseResponsiveProp(align);
|
|
804
754
|
var $color = ui.parseResponsiveProp(color);
|
|
805
755
|
var $noWrap = ui.parseResponsiveProp(noWrap);
|
|
@@ -821,7 +771,6 @@ if (process.env.NODE_ENV !== "production") TextBox.displayName = "TextBox";
|
|
|
821
771
|
function descriptionItemIconMixin(size) {
|
|
822
772
|
return styled.css(["width:", "px;height:", "px;& > .MuiSvgIcon-root{font-size:", "px;}"], size, size + 4, size);
|
|
823
773
|
}
|
|
824
|
-
|
|
825
774
|
var DescriptionItemIcon = /*#__PURE__*/styled__default.div.withConfig({
|
|
826
775
|
displayName: "DescriptionItem__DescriptionItemIcon",
|
|
827
776
|
componentId: "SD__sc-1906hic-0"
|
|
@@ -931,7 +880,6 @@ var StyledCardButton = /*#__PURE__*/styled__default(ui.CardButton).withConfig({
|
|
|
931
880
|
backgroundColor: status === 'active' ? ui.Color.Blue50 : undefined
|
|
932
881
|
};
|
|
933
882
|
});
|
|
934
|
-
|
|
935
883
|
function UploadRejection(_ref2) {
|
|
936
884
|
var {
|
|
937
885
|
maxSize,
|
|
@@ -949,36 +897,34 @@ function UploadRejection(_ref2) {
|
|
|
949
897
|
})]
|
|
950
898
|
});
|
|
951
899
|
}
|
|
952
|
-
|
|
953
900
|
var FileDropZone = /*#__PURE__*/react.forwardRef((props, ref) => {
|
|
954
901
|
var {
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
}),
|
|
964
|
-
fallback = /*#__PURE__*/jsxRuntime.jsx(ui.CardButton, {
|
|
965
|
-
ref: ref,
|
|
966
|
-
disabled: true,
|
|
967
|
-
startIcon: /*#__PURE__*/jsxRuntime.jsx(core.CircularProgress, {
|
|
968
|
-
size: "1em",
|
|
969
|
-
color: "inherit"
|
|
902
|
+
// CardButton
|
|
903
|
+
disabled = false,
|
|
904
|
+
children: _children = 'Upload Attachments',
|
|
905
|
+
hintText = 'or Drag & Drop files',
|
|
906
|
+
startIcon = /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, {
|
|
907
|
+
children: /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
908
|
+
d: js.mdiUpload
|
|
909
|
+
})
|
|
970
910
|
}),
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
911
|
+
fallback = /*#__PURE__*/jsxRuntime.jsx(ui.CardButton, {
|
|
912
|
+
ref: ref,
|
|
913
|
+
disabled: true,
|
|
914
|
+
startIcon: /*#__PURE__*/jsxRuntime.jsx(core.CircularProgress, {
|
|
915
|
+
size: "1em",
|
|
916
|
+
color: "inherit"
|
|
917
|
+
}),
|
|
918
|
+
children: "Loading dependencies\u2026"
|
|
919
|
+
}),
|
|
920
|
+
// Dropzone
|
|
921
|
+
accept,
|
|
922
|
+
maxSize = Infinity,
|
|
923
|
+
maxFiles = Infinity,
|
|
924
|
+
onDropRejected: _onDropRejected,
|
|
925
|
+
onDropAccepted: _onDropAccepted
|
|
926
|
+
} = props,
|
|
927
|
+
dropzoneProps = _objectWithoutProperties(props, _excluded$5);
|
|
982
928
|
return /*#__PURE__*/jsxRuntime.jsx(react.Suspense, {
|
|
983
929
|
fallback: fallback,
|
|
984
930
|
children: /*#__PURE__*/jsxRuntime.jsx(Dropzone, _objectSpread(_objectSpread({}, dropzoneProps), {}, {
|
|
@@ -1046,13 +992,11 @@ var TextBoxIcon = /*#__PURE__*/react.memo(props => /*#__PURE__*/jsxRuntime.jsx(c
|
|
|
1046
992
|
})));
|
|
1047
993
|
var PDF_FILE_PATTERN = /\.pdf$/;
|
|
1048
994
|
var IMAGE_FILE_PATTERN = /\.(gif|png|jpg|jpeg)$/;
|
|
1049
|
-
|
|
1050
995
|
function getFileType(name) {
|
|
1051
996
|
if (PDF_FILE_PATTERN.exec(name)) return 'pdf';
|
|
1052
997
|
if (IMAGE_FILE_PATTERN.exec(name)) return 'image';
|
|
1053
998
|
return 'unknown';
|
|
1054
999
|
}
|
|
1055
|
-
|
|
1056
1000
|
var FileListItem = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
|
|
1057
1001
|
var {
|
|
1058
1002
|
url,
|
|
@@ -1148,15 +1092,14 @@ var FileListItem = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
|
|
|
1148
1092
|
if (process.env.NODE_ENV !== "production") FileListItem.displayName = "FileListItem";
|
|
1149
1093
|
|
|
1150
1094
|
var _excluded$6 = ["color", "target", "rel"],
|
|
1151
|
-
|
|
1095
|
+
_excluded2$2 = ["children", "linkComponent"];
|
|
1152
1096
|
var DefaultLinkComponent = /*#__PURE__*/react.forwardRef((_ref, ref) => {
|
|
1153
1097
|
var {
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1098
|
+
color,
|
|
1099
|
+
target = '_blank',
|
|
1100
|
+
rel = 'noreferrer noopener'
|
|
1101
|
+
} = _ref,
|
|
1102
|
+
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
1160
1103
|
return /*#__PURE__*/jsxRuntime.jsx(core.Link, _objectSpread(_objectSpread({}, props), {}, {
|
|
1161
1104
|
ref: ref,
|
|
1162
1105
|
rel: rel,
|
|
@@ -1167,15 +1110,13 @@ if (process.env.NODE_ENV !== "production") DefaultLinkComponent.displayName = "D
|
|
|
1167
1110
|
DefaultLinkComponent.displayName = 'DefaultLinkComponent';
|
|
1168
1111
|
function LinkedText(_ref2) {
|
|
1169
1112
|
var {
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1113
|
+
children,
|
|
1114
|
+
linkComponent = DefaultLinkComponent
|
|
1115
|
+
} = _ref2,
|
|
1116
|
+
props = _objectWithoutProperties(_ref2, _excluded2$2);
|
|
1175
1117
|
if (!children) {
|
|
1176
1118
|
return null;
|
|
1177
1119
|
}
|
|
1178
|
-
|
|
1179
1120
|
return /*#__PURE__*/jsxRuntime.jsx(reactAnchorme.Anchorme, _objectSpread(_objectSpread({}, props), {}, {
|
|
1180
1121
|
linkComponent: linkComponent,
|
|
1181
1122
|
children: children
|
|
@@ -1245,11 +1186,10 @@ function NavbarBottomBar(_ref) {
|
|
|
1245
1186
|
},
|
|
1246
1187
|
children: [items.map(_ref2 => {
|
|
1247
1188
|
var {
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1189
|
+
active,
|
|
1190
|
+
hasBadge
|
|
1191
|
+
} = _ref2,
|
|
1192
|
+
item = _objectWithoutProperties(_ref2, _excluded$7);
|
|
1253
1193
|
return /*#__PURE__*/react.createElement(StyledBottomNavigationAction, _objectSpread(_objectSpread({}, item), {}, {
|
|
1254
1194
|
key: item.value,
|
|
1255
1195
|
icon: hasBadge ? /*#__PURE__*/jsxRuntime.jsxs(IconWrapper, {
|
|
@@ -1349,8 +1289,9 @@ function NavbarAccordion(_ref) {
|
|
|
1349
1289
|
setDrawerOpen,
|
|
1350
1290
|
isNavbarExpanded
|
|
1351
1291
|
} = useNavbarContext();
|
|
1352
|
-
var [isExpanded, setExpanded] = react.useState(true);
|
|
1292
|
+
var [isExpanded, setExpanded] = react.useState(true);
|
|
1353
1293
|
|
|
1294
|
+
// sync accordion state with Desktop menu state
|
|
1354
1295
|
react.useEffect(() => {
|
|
1355
1296
|
setExpanded(isNavbarExpanded);
|
|
1356
1297
|
}, [isNavbarExpanded]);
|
|
@@ -1362,7 +1303,6 @@ function NavbarAccordion(_ref) {
|
|
|
1362
1303
|
expanded: isExpanded,
|
|
1363
1304
|
onClick: event => {
|
|
1364
1305
|
_onClick === null || _onClick === void 0 ? void 0 : _onClick(event);
|
|
1365
|
-
|
|
1366
1306
|
if (isNavbarExpanded) {
|
|
1367
1307
|
setExpanded(!isExpanded);
|
|
1368
1308
|
}
|
|
@@ -1391,10 +1331,8 @@ function NavbarAccordion(_ref) {
|
|
|
1391
1331
|
gutter: prev && prev.groupKey !== item.groupKey,
|
|
1392
1332
|
onClick: event => {
|
|
1393
1333
|
var _item$onClick;
|
|
1394
|
-
|
|
1395
1334
|
event.stopPropagation();
|
|
1396
1335
|
(_item$onClick = item.onClick) === null || _item$onClick === void 0 ? void 0 : _item$onClick.call(item, event);
|
|
1397
|
-
|
|
1398
1336
|
if (!event.isDefaultPrevented()) {
|
|
1399
1337
|
setDrawerOpen(false);
|
|
1400
1338
|
}
|
|
@@ -1501,7 +1439,6 @@ function NavbarList(_ref5) {
|
|
|
1501
1439
|
children: filteredItems.map(item => {
|
|
1502
1440
|
var index = filteredItems.indexOf(item);
|
|
1503
1441
|
var prev = filteredItems[index - 1];
|
|
1504
|
-
|
|
1505
1442
|
if ('items' in item) {
|
|
1506
1443
|
return /*#__PURE__*/react.createElement(NavbarAccordion, _objectSpread(_objectSpread({}, item), {}, {
|
|
1507
1444
|
key: item.key,
|
|
@@ -1509,15 +1446,12 @@ function NavbarList(_ref5) {
|
|
|
1509
1446
|
onClick: item.onClick
|
|
1510
1447
|
}));
|
|
1511
1448
|
}
|
|
1512
|
-
|
|
1513
1449
|
return /*#__PURE__*/react.createElement(NavbarItem, _objectSpread(_objectSpread({}, item), {}, {
|
|
1514
1450
|
key: item.key,
|
|
1515
1451
|
gutter: prev && prev.groupKey !== item.groupKey,
|
|
1516
1452
|
onClick: event => {
|
|
1517
1453
|
var _item$onClick;
|
|
1518
|
-
|
|
1519
1454
|
(_item$onClick = item.onClick) === null || _item$onClick === void 0 ? void 0 : _item$onClick.call(item, event);
|
|
1520
|
-
|
|
1521
1455
|
if (!event.isDefaultPrevented()) {
|
|
1522
1456
|
setDrawerOpen(false);
|
|
1523
1457
|
}
|
|
@@ -1612,22 +1546,19 @@ var StyledTypography = /*#__PURE__*/styled__default(core.Typography).withConfig(
|
|
|
1612
1546
|
})(["color:", ";text-overflow:ellipsis;white-space:nowrap;overflow:hidden;&:hover{color:", ";}"], ui.Color.Silver500, ui.Color.White);
|
|
1613
1547
|
function NavbarAvatar(_ref) {
|
|
1614
1548
|
var {
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1549
|
+
title,
|
|
1550
|
+
subtitle,
|
|
1551
|
+
children
|
|
1552
|
+
} = _ref,
|
|
1553
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
1621
1554
|
var {
|
|
1622
1555
|
isNavbarExpanded
|
|
1623
1556
|
} = useNavbarContext();
|
|
1624
|
-
|
|
1625
1557
|
if (!isNavbarExpanded) {
|
|
1626
1558
|
return /*#__PURE__*/jsxRuntime.jsx(core.Avatar, _objectSpread(_objectSpread({}, props), {}, {
|
|
1627
1559
|
children: children
|
|
1628
1560
|
}));
|
|
1629
1561
|
}
|
|
1630
|
-
|
|
1631
1562
|
return /*#__PURE__*/jsxRuntime.jsxs(ui.Columns, {
|
|
1632
1563
|
space: "xsmall",
|
|
1633
1564
|
align: "center",
|
|
@@ -1677,16 +1608,13 @@ function NavbarMenu(_ref2) {
|
|
|
1677
1608
|
setDrawerOpen
|
|
1678
1609
|
} = useNavbarContext();
|
|
1679
1610
|
var [anchor, setAnchor] = react.useState(null);
|
|
1680
|
-
|
|
1681
1611
|
function showProfileMenu(event) {
|
|
1682
1612
|
setAnchor(event.currentTarget);
|
|
1683
1613
|
}
|
|
1684
|
-
|
|
1685
1614
|
function hideProfileMenu() {
|
|
1686
1615
|
setAnchor(null);
|
|
1687
1616
|
setDrawerOpen(false);
|
|
1688
1617
|
}
|
|
1689
|
-
|
|
1690
1618
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1691
1619
|
children: [/*#__PURE__*/jsxRuntime.jsx(Wrapper$1, {
|
|
1692
1620
|
onClick: showProfileMenu,
|
|
@@ -1782,11 +1710,9 @@ if (process.env.NODE_ENV !== "production") Sidebar.displayName = "Sidebar";
|
|
|
1782
1710
|
var Context = /*#__PURE__*/react.createContext(null);
|
|
1783
1711
|
function useSidebarContext() {
|
|
1784
1712
|
var context = react.useContext(Context);
|
|
1785
|
-
|
|
1786
1713
|
if (!context) {
|
|
1787
1714
|
throw new Error('SidebarContext is used outside Provider');
|
|
1788
1715
|
}
|
|
1789
|
-
|
|
1790
1716
|
return context;
|
|
1791
1717
|
}
|
|
1792
1718
|
var SidebarContainerSidebar = /*#__PURE__*/styled__default.div.withConfig({
|
|
@@ -1837,27 +1763,23 @@ if (process.env.NODE_ENV !== "production") SidebarContainer.displayName = "Sideb
|
|
|
1837
1763
|
var _excluded$9 = ["onClick", "children"];
|
|
1838
1764
|
function SidebarBackButton(_ref) {
|
|
1839
1765
|
var {
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1766
|
+
onClick: _onClick,
|
|
1767
|
+
children = /*#__PURE__*/jsxRuntime.jsx(icons.ArrowBack, {
|
|
1768
|
+
fontSize: "small"
|
|
1769
|
+
})
|
|
1770
|
+
} = _ref,
|
|
1771
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
1847
1772
|
var isCollapsed = ui.useCollapseBreakpoint('sm');
|
|
1848
1773
|
var {
|
|
1849
1774
|
openSidebar
|
|
1850
1775
|
} = useSidebarContext();
|
|
1851
|
-
|
|
1852
1776
|
if (!isCollapsed) {
|
|
1853
1777
|
return null;
|
|
1854
1778
|
}
|
|
1855
|
-
|
|
1856
1779
|
return /*#__PURE__*/jsxRuntime.jsx(core.IconButton, _objectSpread(_objectSpread({}, props), {}, {
|
|
1857
1780
|
size: "small",
|
|
1858
1781
|
onClick: event => {
|
|
1859
1782
|
_onClick === null || _onClick === void 0 ? void 0 : _onClick(event);
|
|
1860
|
-
|
|
1861
1783
|
if (!event.isDefaultPrevented()) {
|
|
1862
1784
|
openSidebar();
|
|
1863
1785
|
}
|
|
@@ -2040,7 +1962,6 @@ var SidebarMenuItem = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
|
|
|
2040
1962
|
});
|
|
2041
1963
|
react.useLayoutEffect(() => {
|
|
2042
1964
|
var rootNode = rootRef.current;
|
|
2043
|
-
|
|
2044
1965
|
if (rootNode) {
|
|
2045
1966
|
if (isHoverSupported) {
|
|
2046
1967
|
rootNode.addEventListener('mouseenter', () => {
|
|
@@ -2063,7 +1984,6 @@ var SidebarMenuItem = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
|
|
|
2063
1984
|
"aria-current": selected,
|
|
2064
1985
|
onClick: event => {
|
|
2065
1986
|
_onClick === null || _onClick === void 0 ? void 0 : _onClick(event);
|
|
2066
|
-
|
|
2067
1987
|
if (!event.isDefaultPrevented() && openContentOnClick) {
|
|
2068
1988
|
openSidebarContent();
|
|
2069
1989
|
}
|
|
@@ -2152,7 +2072,6 @@ if (process.env.NODE_ENV !== "production") SidebarMenuItemAction.displayName = "
|
|
|
2152
2072
|
function stopPropagation(event) {
|
|
2153
2073
|
event.stopPropagation();
|
|
2154
2074
|
}
|
|
2155
|
-
|
|
2156
2075
|
var SidebarMenuItemAvatarCheckbox = /*#__PURE__*/styled__default.div.withConfig({
|
|
2157
2076
|
displayName: "SidebarMenuItemAvatar__SidebarMenuItemAvatarCheckbox",
|
|
2158
2077
|
componentId: "SD__sc-17mkvc7-0"
|
|
@@ -2173,7 +2092,6 @@ var SidebarMenuItemAvatar = /*#__PURE__*/react.forwardRef((_ref, ref) => {
|
|
|
2173
2092
|
var last = matches.pop() || '';
|
|
2174
2093
|
return (first + last).toUpperCase();
|
|
2175
2094
|
}, [children]);
|
|
2176
|
-
|
|
2177
2095
|
if (value === true || hovered && value != null) {
|
|
2178
2096
|
return /*#__PURE__*/jsxRuntime.jsx(SidebarMenuItemAvatarCheckbox, {
|
|
2179
2097
|
children: /*#__PURE__*/jsxRuntime.jsx(core.Checkbox, {
|
|
@@ -2189,7 +2107,6 @@ var SidebarMenuItemAvatar = /*#__PURE__*/react.forwardRef((_ref, ref) => {
|
|
|
2189
2107
|
})
|
|
2190
2108
|
});
|
|
2191
2109
|
}
|
|
2192
|
-
|
|
2193
2110
|
return /*#__PURE__*/jsxRuntime.jsx(core.Avatar, {
|
|
2194
2111
|
ref: ref,
|
|
2195
2112
|
"aria-hidden": true,
|