@superdispatch/ui-lab 0.13.0 → 0.16.0-alpha.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-web/index.js CHANGED
@@ -1,23 +1,27 @@
1
- import { CheckCircle, Info, Error, Image, Refresh, Delete, OpenInNew } from '@material-ui/icons';
2
- import { Alert as Alert$1 } from '@material-ui/lab';
3
- import { Color, parseResponsiveProp, isColorProp, parseSpaceProp, Stack, useUID, isEmptyReactNode, Columns, Column, Inline, CardButton, useResponsiveValue } from '@superdispatch/ui';
4
- import { forwardRef, Suspense, useState, memo, useContext, createContext, useMemo, useRef, useLayoutEffect } from 'react';
5
- import styled, { css } from 'styled-components';
1
+ import { CheckCircle, Info, Error, Image, Refresh, Delete, OpenInNew } from '@mui/icons-material';
2
+ import { Alert as Alert$2 } from '@mui/lab';
3
+ import { Color as Color$8, v5, parseResponsiveProp as parseResponsiveProp$2, isColorProp as isColorProp$1, parseSpaceProp as parseSpaceProp$1, Stack as Stack$1, useUID as useUID$3, isEmptyReactNode as isEmptyReactNode$1, Columns as Columns$6, Column as Column$6, Inline as Inline$2, CardButton as CardButton$1, useResponsiveValue as useResponsiveValue$1 } from '@superdispatch/ui';
4
+ import { forwardRef, useState, useEffect, Suspense, memo, useContext, createContext, useMemo, useRef, useLayoutEffect } from 'react';
5
+ import styled, { css, keyframes } from 'styled-components';
6
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
7
7
  import _objectSpread from '@babel/runtime/helpers/objectSpread2';
8
8
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
9
- import { ButtonBase, Typography, CircularProgress, SvgIcon, Link, Tooltip, IconButton, Divider, Checkbox, Avatar } from '@material-ui/core';
9
+ import { CSSTransition } from 'react-transition-group';
10
+ import { ButtonBase, Typography, CircularProgress, SvgIcon, Link, Tooltip, IconButton, Divider, Checkbox, Avatar } from '@mui/material';
10
11
  import { mdiUpload, mdiFilePdfBox, mdiTextBox } from '@mdi/js';
11
12
  import Dropzone from 'react-dropzone';
13
+ import { CheckCircle as CheckCircle$1, Info as Info$1, Error as Error$1, Image as Image$1, Refresh as Refresh$1, Delete as Delete$1, OpenInNew as OpenInNew$1 } from '@material-ui/icons';
14
+ import { Alert as Alert$3 } from '@material-ui/lab';
15
+ import { ButtonBase as ButtonBase$1, Typography as Typography$1, CircularProgress as CircularProgress$1, SvgIcon as SvgIcon$1, Link as Link$1, Tooltip as Tooltip$1, IconButton as IconButton$1, Divider as Divider$1, Checkbox as Checkbox$1, Avatar as Avatar$1 } from '@material-ui/core';
12
16
 
13
17
  function colorMixin(textColor, backgroundColor, buttonHoverColor) {
14
18
  return css(["color:", ";background-color:", ";& .MuiAlert-icon{color:", ";}& .MuiAlert-action{& .MuiIconButton-root{&:hover,&:active{color:", ";}}}"], textColor, backgroundColor, textColor, buttonHoverColor);
15
19
  }
16
20
 
17
- var StyledAlert = /*#__PURE__*/styled(Alert$1).withConfig({
21
+ var StyledAlert = /*#__PURE__*/styled(Alert$2).withConfig({
18
22
  displayName: "Alert__StyledAlert",
19
- componentId: "SD__sc-1j6qebb-0"
20
- })(["&.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(Color.Green500, Color.Green50, Color.Green400), /*#__PURE__*/colorMixin(Color.Blue500, Color.Blue50, Color.Blue400), /*#__PURE__*/colorMixin(Color.Yellow500, Color.Yellow50, Color.Yellow400), /*#__PURE__*/colorMixin(Color.Red500, Color.Red50, Color.Red400));
23
+ componentId: "SD__sc-ahws81-0"
24
+ })(["&.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(Color$8.Green500, Color$8.Green50, Color$8.Green400), /*#__PURE__*/colorMixin(Color$8.Blue500, Color$8.Blue50, Color$8.Blue400), /*#__PURE__*/colorMixin(Color$8.Yellow500, Color$8.Yellow50, Color$8.Yellow400), /*#__PURE__*/colorMixin(Color$8.Red500, Color$8.Red50, Color$8.Red400));
21
25
 
22
26
  function toMaterialSeverity(severity) {
23
27
  return severity === 'info' ? 'info' : severity === 'caution' ? 'warning' : severity === 'critical' ? 'error' : 'success';
@@ -47,6 +51,60 @@ var Alert = /*#__PURE__*/forwardRef((_ref, ref) => {
47
51
  });
48
52
  if (process.env.NODE_ENV !== "production") Alert.displayName = "Alert";
49
53
 
54
+ var _excluded = ["children"],
55
+ _excluded2 = ["in"];
56
+
57
+ function enterMixin(border) {
58
+ return css(["min-height:56px;color:", ";background-color:", ";border-", ":1px #dfe3e8 solid;"], Color$8.Dark500, Color$8.White, border);
59
+ }
60
+
61
+ function enterAnimation(border) {
62
+ return keyframes(["0%{min-height:0;color:", ";background-color:", ";}50%{min-height:56px;color:", ";background-color:", ";}70%{min-height:56px;color:", ";background-color:", ";}100%{", "}"], Color$8.White, Color$8.Dark500, Color$8.White, Color$8.Dark500, Color$8.White, Color$8.Dark500, enterMixin(border));
63
+ }
64
+
65
+ var CustomTransition = /*#__PURE__*/forwardRef((_ref, ref) => {
66
+ var {
67
+ children
68
+ } = _ref,
69
+ props = _objectWithoutProperties(_ref, _excluded);
70
+
71
+ return /*#__PURE__*/jsx(CSSTransition, _objectSpread(_objectSpread({}, props), {}, {
72
+ ref: ref,
73
+ timeout: 3000,
74
+ classNames: props.className,
75
+ children: /*#__PURE__*/jsx("div", {
76
+ children: children
77
+ })
78
+ }));
79
+ });
80
+ if (process.env.NODE_ENV !== "production") CustomTransition.displayName = "CustomTransition";
81
+ var BannerContent = /*#__PURE__*/styled(CustomTransition).withConfig({
82
+ displayName: "Banner__BannerContent",
83
+ componentId: "SD__sc-1y16295-0"
84
+ })(_ref2 => {
85
+ var {
86
+ border = 'bottom'
87
+ } = _ref2;
88
+ return css(["height:0;width:100%;overflow:hidden;display:flex;align-items:center;justify-content:center;color:", ";background-color:", ";&-enter-active{animation:", " 2s 1s forwards;}&-enter-done{", ";}&-exit{", ";}&-exit-active{min-height:0;transition:min-height 2s 1s;}"], Color$8.White, Color$8.White, enterAnimation(border), enterMixin(border), enterMixin(border));
89
+ });
90
+ var Banner = /*#__PURE__*/forwardRef((_ref3, ref) => {
91
+ var {
92
+ in: inProp
93
+ } = _ref3,
94
+ props = _objectWithoutProperties(_ref3, _excluded2);
95
+
96
+ var [isIn, setIn] = useState(false); // transition is not triggered on initial render with `in: true`
97
+
98
+ useEffect(() => {
99
+ setIn(!!inProp);
100
+ }, [inProp]);
101
+ return /*#__PURE__*/jsx(BannerContent, _objectSpread({
102
+ ref: ref,
103
+ in: isIn
104
+ }, props));
105
+ });
106
+ if (process.env.NODE_ENV !== "production") Banner.displayName = "Banner";
107
+
50
108
  function createRuleNormalizer(rules) {
51
109
  return input => {
52
110
  if (typeof input == 'string') {
@@ -65,9 +123,16 @@ function createRuleNormalizer(rules) {
65
123
  };
66
124
  }
67
125
 
126
+ var {
127
+ Color,
128
+ isColorProp,
129
+ parseResponsiveProp,
130
+ parseSpaceProp
131
+ } = v5;
132
+
133
+ //
68
134
  // Colors
69
135
  //
70
-
71
136
  function normalizeColor(input) {
72
137
  return isColorProp(input) ? Color[input] : undefined;
73
138
  } //
@@ -176,7 +241,7 @@ function injectRule(styles, key, breakpoint, value, normalizer) {
176
241
 
177
242
  var Box = /*#__PURE__*/styled.div.withConfig({
178
243
  displayName: "Box",
179
- componentId: "SD__sc-1bc600y-0"
244
+ componentId: "SD__sc-1cy411s-0"
180
245
  })(props => {
181
246
  var {
182
247
  breakpoints
@@ -209,11 +274,15 @@ var Box = /*#__PURE__*/styled.div.withConfig({
209
274
  return styles;
210
275
  });
211
276
 
212
- var _excluded = ["icon", "children", "variant", "active", "disabled", "fullWidth"];
277
+ var _excluded$1 = ["icon", "children", "variant", "active", "disabled", "fullWidth"];
278
+ var {
279
+ Color: Color$1,
280
+ Stack
281
+ } = v5;
213
282
  var ButtonRoot = /*#__PURE__*/styled(ButtonBase).withConfig({
214
283
  displayName: "ButtonArea__ButtonRoot",
215
- componentId: "SD__sc-1czum63-0"
216
- })(["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:", ";}}"], Color.Silver500, Color.Dark100, Color.White, Color.Silver500, Color.Silver400, Color.Green300, Color.Green100, Color.Green300, Color.Green300, Color.Green300, Color.Green50, Color.Red300, Color.Red100, Color.Red300, Color.Red300, Color.Red300, Color.Red50);
284
+ componentId: "SD__sc-5sq1bg-0"
285
+ })(["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:", ";}}"], Color$1.Silver500, Color$1.Dark100, Color$1.White, Color$1.Silver500, Color$1.Silver400, Color$1.Green300, Color$1.Green100, Color$1.Green300, Color$1.Green300, Color$1.Green300, Color$1.Green50, Color$1.Red300, Color$1.Red100, Color$1.Red300, Color$1.Red300, Color$1.Red300, Color$1.Red50);
217
286
  var ButtonArea = /*#__PURE__*/forwardRef((_ref, ref) => {
218
287
  var {
219
288
  icon,
@@ -223,7 +292,7 @@ var ButtonArea = /*#__PURE__*/forwardRef((_ref, ref) => {
223
292
  disabled,
224
293
  fullWidth
225
294
  } = _ref,
226
- props = _objectWithoutProperties(_ref, _excluded);
295
+ props = _objectWithoutProperties(_ref, _excluded$1);
227
296
 
228
297
  return /*#__PURE__*/jsx(ButtonRoot, _objectSpread(_objectSpread({
229
298
  ref: ref,
@@ -246,8 +315,8 @@ var ButtonArea = /*#__PURE__*/forwardRef((_ref, ref) => {
246
315
  });
247
316
  if (process.env.NODE_ENV !== "production") ButtonArea.displayName = "ButtonArea";
248
317
 
249
- var _excluded$1 = ["children", "endIcon", "startIcon", "tabIndex", "active", "pending", "disabled", "size", "fullWidth", "variant"],
250
- _excluded2 = ["type"],
318
+ var _excluded$2 = ["children", "endIcon", "startIcon", "tabIndex", "active", "pending", "disabled", "size", "fullWidth", "variant"],
319
+ _excluded2$1 = ["type"],
251
320
  _excluded3 = ["href", "target"];
252
321
 
253
322
  function createButtonVariables(size, _ref) {
@@ -260,14 +329,14 @@ function createButtonVariables(size, _ref) {
260
329
  paddingY = size === 'large' ? 8 : size === 'small' ? 2 : 6,
261
330
  paddingXMobile = size === 'large' ? 64 : 24,
262
331
  paddingYMobile = size === 'large' ? 14 : size === 'small' ? 4 : 10,
263
- textColor = Color.Transparent,
332
+ textColor = Color$8.Transparent,
264
333
  textColorHovered = textColor,
265
334
  textColorDisabled = textColor,
266
- outlineColor = Color.Transparent,
267
- borderColor = Color.Transparent,
335
+ outlineColor = Color$8.Transparent,
336
+ borderColor = Color$8.Transparent,
268
337
  borderColorHovered = borderColor,
269
338
  borderColorDisabled = borderColor,
270
- backgroundColor = Color.Transparent,
339
+ backgroundColor = Color$8.Transparent,
271
340
  backgroundColorHovered = backgroundColor,
272
341
  backgroundColorActive = backgroundColorHovered,
273
342
  backgroundColorDisabled = backgroundColor
@@ -297,13 +366,13 @@ function createButtonVariables(size, _ref) {
297
366
 
298
367
  function getDefaultVariables(size) {
299
368
  return createButtonVariables(size, {
300
- textColor: Color.White,
301
- outlineColor: Color.Blue100,
302
- backgroundColor: Color.Blue300,
303
- textColorHovered: Color.White,
304
- backgroundColorHovered: Color.Blue500,
305
- backgroundColorActive: Color.Blue400,
306
- backgroundColorDisabled: Color.Blue100
369
+ textColor: Color$8.White,
370
+ outlineColor: Color$8.Blue100,
371
+ backgroundColor: Color$8.Blue300,
372
+ textColorHovered: Color$8.White,
373
+ backgroundColorHovered: Color$8.Blue500,
374
+ backgroundColorActive: Color$8.Blue400,
375
+ backgroundColorDisabled: Color$8.Blue100
307
376
  });
308
377
  }
309
378
 
@@ -313,59 +382,59 @@ function getPrimaryVariables(size) {
313
382
 
314
383
  function getNeutralVariables(size) {
315
384
  return createButtonVariables(size, {
316
- textColor: Color.Dark500,
317
- borderColor: Color.Silver500,
318
- outlineColor: Color.Blue100,
319
- backgroundColor: Color.White,
320
- textColorHovered: Color.Blue300,
321
- borderColorHovered: Color.Blue300,
322
- backgroundColorHovered: Color.Blue50,
323
- backgroundColorActive: Color.Blue75,
324
- textColorDisabled: Color.Silver500
385
+ textColor: Color$8.Dark500,
386
+ borderColor: Color$8.Silver500,
387
+ outlineColor: Color$8.Blue100,
388
+ backgroundColor: Color$8.White,
389
+ textColorHovered: Color$8.Blue300,
390
+ borderColorHovered: Color$8.Blue300,
391
+ backgroundColorHovered: Color$8.Blue50,
392
+ backgroundColorActive: Color$8.Blue75,
393
+ textColorDisabled: Color$8.Silver500
325
394
  });
326
395
  }
327
396
 
328
397
  function getCriticalVariables(size) {
329
398
  return createButtonVariables(size, {
330
- textColor: Color.Red300,
331
- borderColor: Color.Red300,
332
- outlineColor: Color.Red75,
333
- backgroundColor: Color.Red50,
334
- backgroundColorHovered: Color.Red75,
335
- backgroundColorActive: Color.Red100,
336
- textColorDisabled: Color.Red100,
337
- borderColorDisabled: Color.Red100,
338
- backgroundColorDisabled: Color.Red50
399
+ textColor: Color$8.Red300,
400
+ borderColor: Color$8.Red300,
401
+ outlineColor: Color$8.Red75,
402
+ backgroundColor: Color$8.Red50,
403
+ backgroundColorHovered: Color$8.Red75,
404
+ backgroundColorActive: Color$8.Red100,
405
+ textColorDisabled: Color$8.Red100,
406
+ borderColorDisabled: Color$8.Red100,
407
+ backgroundColorDisabled: Color$8.Red50
339
408
  });
340
409
  }
341
410
 
342
411
  function getTextVariables(size) {
343
412
  return createButtonVariables(size, {
344
- textColor: Color.Blue400,
345
- outlineColor: Color.Blue100,
346
- textColorHovered: Color.Blue500,
347
- backgroundColorHovered: Color.Blue50,
348
- backgroundColorActive: Color.Blue75,
349
- textColorDisabled: Color.Blue100
413
+ textColor: Color$8.Blue400,
414
+ outlineColor: Color$8.Blue100,
415
+ textColorHovered: Color$8.Blue500,
416
+ backgroundColorHovered: Color$8.Blue50,
417
+ backgroundColorActive: Color$8.Blue75,
418
+ textColorDisabled: Color$8.Blue100
350
419
  });
351
420
  }
352
421
 
353
422
  function getInvertedVariables(size) {
354
423
  return createButtonVariables(size, {
355
- textColor: Color.White,
356
- outlineColor: Color.White40,
357
- backgroundColor: Color.White20,
358
- textColorHovered: Color.White,
359
- backgroundColorHovered: Color.White40,
360
- backgroundColorActive: Color.White20,
361
- textColorDisabled: Color.White50,
362
- backgroundColorDisabled: Color.White08
424
+ textColor: Color$8.White,
425
+ outlineColor: Color$8.White40,
426
+ backgroundColor: Color$8.White20,
427
+ textColorHovered: Color$8.White,
428
+ backgroundColorHovered: Color$8.White40,
429
+ backgroundColorActive: Color$8.White20,
430
+ textColorDisabled: Color$8.White50,
431
+ backgroundColorDisabled: Color$8.White08
363
432
  });
364
433
  }
365
434
 
366
435
  var ButtonRoot$1 = /*#__PURE__*/styled.button.withConfig({
367
436
  displayName: "Button__ButtonRoot",
368
- componentId: "SD__sc-1pwdpe3-0"
437
+ componentId: "SD__sc-1yjd62w-0"
369
438
  })(_ref2 => {
370
439
  var {
371
440
  size,
@@ -374,23 +443,23 @@ var ButtonRoot$1 = /*#__PURE__*/styled.button.withConfig({
374
443
  fullWidth
375
444
  } = _ref2;
376
445
  var variables = variant === 'primary' ? getPrimaryVariables(size) : variant === 'neutral' ? getNeutralVariables(size) : variant === 'critical' ? getCriticalVariables(size) : variant === 'text' ? getTextVariables(size) : variant === 'inverted' ? getInvertedVariables(size) : getDefaultVariables(size);
377
- return css(JSON.parse('["border:0;margin:0;outline:0;position:relative;vertical-align:middle;cursor:pointer;text-decoration:none;&[aria-disabled=\'true\']{cursor:default;pointer-events:none;}-moz-appearance:none;&::-moz-focus-inner{border-style:none;}-webkit-appearance:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;@media print{-webkit-print-color-adjust:exact;}--button-visibility:visible;--button-text-color:",";--button-border-color:",";--button-outline-color:",";--button-background-color:",";--button-padding-x:","px;--button-padding-y:","px;--button-font-size:","px;--button-line-height:","px;","{--button-padding-x:","px;--button-padding-y:","px;--button-font-size:","px;--button-line-height:","px;}&[aria-disabled=\'true\']{--button-text-color:",";--button-border-color:",";--button-background-color:",";&[aria-busy=\'true\']{--button-visibility:hidden;}}&[aria-disabled=\'false\']{&[aria-expanded=\'true\']{--button-text-color:",";--button-border-color:",";--button-background-color:",";}&,&[aria-expanded=\'true\']{&:focus{--button-outline-color:",";}@media (hover:hover) and (pointer:fine){&:hover{--button-text-color:",";--button-border-color:",";--button-background-color:",";}}&:active{--button-background-color:",";}}}display:inline-flex;align-items:center;justify-content:center;min-width:48px;width:",";border-radius:4px;font-family:",";font-weight:",";color:var(--button-text-color);background-color:var(--button-background-color);font-size:var(--button-font-size);line-height:var(--button-line-height);padding:var(--button-padding-y) var(--button-padding-x);box-shadow:inset 0 0 0 1px var(--button-border-color),0 0 0 2px var(--button-outline-color);transition:",";"]'), variables.textColor, variables.borderColor, Color.Transparent, variables.backgroundColor, variables.paddingXMobile, variables.paddingYMobile, variables.fontSizeMobile, variables.lineHeightMobile, theme.breakpoints.up('sm'), variables.paddingX, variables.paddingY, variables.fontSize, variables.lineHeight, variables.textColorDisabled, variables.borderColorDisabled, variables.backgroundColorDisabled, variables.textColorHovered, variables.borderColorHovered, variables.backgroundColorHovered, variables.outlineColor, variables.textColorHovered, variables.borderColorHovered, variables.backgroundColorHovered, variables.backgroundColorActive, fullWidth ? '100%' : 'auto', theme.typography.fontFamily, theme.typography.fontWeightBold, theme.transitions.create(['color', 'box-shadow', 'background-color']));
446
+ return css(JSON.parse('["border:0;margin:0;outline:0;position:relative;vertical-align:middle;cursor:pointer;text-decoration:none;&[aria-disabled=\'true\']{cursor:default;pointer-events:none;}-moz-appearance:none;&::-moz-focus-inner{border-style:none;}-webkit-appearance:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;@media print{-webkit-print-color-adjust:exact;}--button-visibility:visible;--button-text-color:",";--button-border-color:",";--button-outline-color:",";--button-background-color:",";--button-padding-x:","px;--button-padding-y:","px;--button-font-size:","px;--button-line-height:","px;","{--button-padding-x:","px;--button-padding-y:","px;--button-font-size:","px;--button-line-height:","px;}&[aria-disabled=\'true\']{--button-text-color:",";--button-border-color:",";--button-background-color:",";&[aria-busy=\'true\']{--button-visibility:hidden;}}&[aria-disabled=\'false\']{&[aria-expanded=\'true\']{--button-text-color:",";--button-border-color:",";--button-background-color:",";}&,&[aria-expanded=\'true\']{&:focus{--button-outline-color:",";}@media (hover:hover) and (pointer:fine){&:hover{--button-text-color:",";--button-border-color:",";--button-background-color:",";}}&:active{--button-background-color:",";}}}display:inline-flex;align-items:center;justify-content:center;min-width:48px;width:",";border-radius:4px;font-family:",";font-weight:",";color:var(--button-text-color);background-color:var(--button-background-color);font-size:var(--button-font-size);line-height:var(--button-line-height);padding:var(--button-padding-y) var(--button-padding-x);box-shadow:inset 0 0 0 1px var(--button-border-color),0 0 0 2px var(--button-outline-color);transition:",";"]'), variables.textColor, variables.borderColor, Color$8.Transparent, variables.backgroundColor, variables.paddingXMobile, variables.paddingYMobile, variables.fontSizeMobile, variables.lineHeightMobile, theme.breakpoints.up('sm'), variables.paddingX, variables.paddingY, variables.fontSize, variables.lineHeight, variables.textColorDisabled, variables.borderColorDisabled, variables.backgroundColorDisabled, variables.textColorHovered, variables.borderColorHovered, variables.backgroundColorHovered, variables.outlineColor, variables.textColorHovered, variables.borderColorHovered, variables.backgroundColorHovered, variables.backgroundColorActive, fullWidth ? '100%' : 'auto', theme.typography.fontFamily, theme.typography.fontWeightBold, theme.transitions.create(['color', 'box-shadow', 'background-color']));
378
447
  });
379
448
  var ButtonLabel = /*#__PURE__*/styled.span.withConfig({
380
449
  displayName: "Button__ButtonLabel",
381
- componentId: "SD__sc-1pwdpe3-1"
450
+ componentId: "SD__sc-1yjd62w-1"
382
451
  })(["display:inherit;align-items:inherit;justify-content:inherit;visibility:var(--button-visibility);--mui-svg-icon-size:var(--button-line-height);"]);
383
452
  var ButtonStartIcon = /*#__PURE__*/styled.span.withConfig({
384
453
  displayName: "Button__ButtonStartIcon",
385
- componentId: "SD__sc-1pwdpe3-2"
454
+ componentId: "SD__sc-1yjd62w-2"
386
455
  })(["margin-right:4px;"]);
387
456
  var ButtonEndIcon = /*#__PURE__*/styled.span.withConfig({
388
457
  displayName: "Button__ButtonEndIcon",
389
- componentId: "SD__sc-1pwdpe3-3"
458
+ componentId: "SD__sc-1yjd62w-3"
390
459
  })(["margin-left:4px;"]);
391
460
  var ButtonPendingIndicator = /*#__PURE__*/styled.span.withConfig({
392
461
  displayName: "Button__ButtonPendingIndicator",
393
- componentId: "SD__sc-1pwdpe3-4"
462
+ componentId: "SD__sc-1yjd62w-4"
394
463
  })(["left:50%;display:flex;position:absolute;visibility:visible;transform:translate(-50%);"]);
395
464
 
396
465
  function useButtonProps(_ref3) {
@@ -406,7 +475,7 @@ function useButtonProps(_ref3) {
406
475
  fullWidth = false,
407
476
  variant = 'default'
408
477
  } = _ref3,
409
- props = _objectWithoutProperties(_ref3, _excluded$1);
478
+ props = _objectWithoutProperties(_ref3, _excluded$2);
410
479
 
411
480
  var disabled = pending || disabledProp;
412
481
  var tabIndex = disabled ? -1 : tabIndexProp;
@@ -438,7 +507,7 @@ var Button = /*#__PURE__*/forwardRef((_ref4, ref) => {
438
507
  var {
439
508
  type = 'button'
440
509
  } = _ref4,
441
- props = _objectWithoutProperties(_ref4, _excluded2);
510
+ props = _objectWithoutProperties(_ref4, _excluded2$1);
442
511
 
443
512
  var buttonProps = useButtonProps(props);
444
513
  return /*#__PURE__*/jsx(ButtonRoot$1, _objectSpread(_objectSpread({}, buttonProps), {}, {
@@ -491,17 +560,22 @@ function mergeStyles(styles) {
491
560
  return styles;
492
561
  }
493
562
 
494
- var _excluded$2 = ["variant", "as", "align", "color", "display", "noWrap", "wrapOverflow"];
563
+ var _excluded$3 = ["variant", "as", "align", "color", "display", "noWrap", "wrapOverflow"];
564
+ var {
565
+ Color: Color$2,
566
+ parseResponsiveProp: parseResponsiveProp$1
567
+ } = v5;
495
568
  var normalizeTextColor = /*#__PURE__*/createRuleNormalizer({
496
- primary: Color.Dark500,
497
- secondary: Color.Dark200,
498
- white: Color.White,
499
- blue: Color.Blue300,
500
- green: Color.Green300,
501
- purple: Color.Purple500,
502
- red: Color.Red300,
503
- teal: Color.Teal300,
504
- yellow: Color.Yellow300
569
+ inherit: 'inherit',
570
+ primary: Color$2.Dark500,
571
+ secondary: Color$2.Dark200,
572
+ white: Color$2.White,
573
+ blue: Color$2.Blue300,
574
+ green: Color$2.Green300,
575
+ purple: Color$2.Purple500,
576
+ red: Color$2.Red300,
577
+ teal: Color$2.Teal300,
578
+ yellow: Color$2.Yellow300
505
579
  });
506
580
  var VARIANT_TYPE_MAPPING = {
507
581
  'heading-1': 'h1',
@@ -569,7 +643,7 @@ function textBoxMixin(noWrap, align, color, display, wrapOverflow) {
569
643
 
570
644
  var TextBoxRoot = /*#__PURE__*/styled.span.withConfig({
571
645
  displayName: "TextBox__TextBoxRoot",
572
- componentId: "SD__sc-9mywck-0"
646
+ componentId: "SD__sc-1geakdj-0"
573
647
  })(_ref2 => {
574
648
  var {
575
649
  theme,
@@ -592,13 +666,13 @@ var TextBox = /*#__PURE__*/forwardRef((_ref3, ref) => {
592
666
  noWrap = false,
593
667
  wrapOverflow = false
594
668
  } = _ref3,
595
- props = _objectWithoutProperties(_ref3, _excluded$2);
669
+ props = _objectWithoutProperties(_ref3, _excluded$3);
596
670
 
597
- var $align = parseResponsiveProp(align);
598
- var $color = parseResponsiveProp(color);
599
- var $noWrap = parseResponsiveProp(noWrap);
600
- var $display = parseResponsiveProp(display);
601
- var $wrapOverflow = parseResponsiveProp(wrapOverflow);
671
+ var $align = parseResponsiveProp$1(align);
672
+ var $color = parseResponsiveProp$1(color);
673
+ var $noWrap = parseResponsiveProp$1(noWrap);
674
+ var $display = parseResponsiveProp$1(display);
675
+ var $wrapOverflow = parseResponsiveProp$1(wrapOverflow);
602
676
  return /*#__PURE__*/jsx(TextBoxRoot, _objectSpread(_objectSpread({}, props), {}, {
603
677
  as: as,
604
678
  ref: ref,
@@ -612,18 +686,27 @@ var TextBox = /*#__PURE__*/forwardRef((_ref3, ref) => {
612
686
  });
613
687
  if (process.env.NODE_ENV !== "production") TextBox.displayName = "TextBox";
614
688
 
689
+ var {
690
+ Color: Color$3,
691
+ Column,
692
+ Columns,
693
+ Inline,
694
+ isEmptyReactNode,
695
+ useUID
696
+ } = v5;
697
+
615
698
  function descriptionItemIconMixin(size) {
616
699
  return css(["width:", "px;height:", "px;& > .MuiSvgIcon-root{font-size:", "px;}"], size, size + 4, size);
617
700
  }
618
701
 
619
702
  var DescriptionItemIcon = /*#__PURE__*/styled.div.withConfig({
620
703
  displayName: "DescriptionItem__DescriptionItemIcon",
621
- componentId: "SD__sc-1906hic-0"
704
+ componentId: "SD__sc-l1c918-0"
622
705
  })(_ref => {
623
706
  var {
624
707
  theme
625
708
  } = _ref;
626
- return css(["display:flex;align-items:center;& > .MuiSvgIcon-root{color:", ";}", ";", "{", ";}"], Color.Dark100, descriptionItemIconMixin(20), theme.breakpoints.up('sm'), descriptionItemIconMixin(16));
709
+ return css(["display:flex;align-items:center;& > .MuiSvgIcon-root{color:", ";}", ";", "{", ";}"], Color$3.Dark100, descriptionItemIconMixin(20), theme.breakpoints.up('sm'), descriptionItemIconMixin(16));
627
710
  });
628
711
  var DescriptionItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
629
712
  var {
@@ -673,7 +756,13 @@ var DescriptionItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
673
756
  });
674
757
  if (process.env.NODE_ENV !== "production") DescriptionItem.displayName = "DescriptionItem";
675
758
 
676
- var _excluded$3 = ["disabled", "children", "hintText", "startIcon", "fallback", "accept", "maxSize", "maxFiles", "onDropRejected", "onDropAccepted"];
759
+ var _excluded$4 = ["disabled", "children", "hintText", "startIcon", "fallback", "accept", "maxSize", "maxFiles", "onDropRejected", "onDropAccepted"];
760
+ var {
761
+ CardButton,
762
+ Color: Color$4,
763
+ Column: Column$1,
764
+ Columns: Columns$1
765
+ } = v5;
677
766
  function toBytes(input, unit) {
678
767
  if (unit === 'gb') return input * (1 << 30);
679
768
  if (unit === 'mb') return input * (1 << 20);
@@ -689,13 +778,13 @@ function formatBytes(bytes) {
689
778
  }
690
779
  var StyledCardButton = /*#__PURE__*/styled(CardButton).withConfig({
691
780
  displayName: "FileDropZone__StyledCardButton",
692
- componentId: "SD__sc-5p1fk0-0"
781
+ componentId: "SD__sc-neqvyq-0"
693
782
  })(_ref => {
694
783
  var {
695
784
  status
696
785
  } = _ref;
697
786
  return {
698
- backgroundColor: status === 'active' ? Color.Blue50 : undefined
787
+ backgroundColor: status === 'active' ? Color$4.Blue50 : undefined
699
788
  };
700
789
  });
701
790
 
@@ -706,12 +795,12 @@ function UploadRejection(_ref2) {
706
795
  } = _ref2;
707
796
  var [error] = rejection.errors;
708
797
  if (!error) return null;
709
- return /*#__PURE__*/jsxs(Columns, {
798
+ return /*#__PURE__*/jsxs(Columns$1, {
710
799
  align: "center",
711
- children: [/*#__PURE__*/jsx(Column, {
800
+ children: [/*#__PURE__*/jsx(Column$1, {
712
801
  width: "content",
713
802
  children: /*#__PURE__*/jsx(Error, {})
714
- }), /*#__PURE__*/jsx(Column, {
803
+ }), /*#__PURE__*/jsx(Column$1, {
715
804
  children: error.code === 'file-too-large' ? maxSize == null ? 'Attachment size is too large' : "Attachment size should be less than ".concat(formatBytes(maxSize)) : error.message
716
805
  })]
717
806
  });
@@ -744,7 +833,7 @@ var FileDropZone = /*#__PURE__*/forwardRef((props, ref) => {
744
833
  onDropRejected: _onDropRejected,
745
834
  onDropAccepted: _onDropAccepted
746
835
  } = props,
747
- dropzoneProps = _objectWithoutProperties(props, _excluded$3);
836
+ dropzoneProps = _objectWithoutProperties(props, _excluded$4);
748
837
 
749
838
  return /*#__PURE__*/jsx(Suspense, {
750
839
  fallback: fallback,
@@ -788,13 +877,20 @@ var FileDropZone = /*#__PURE__*/forwardRef((props, ref) => {
788
877
  });
789
878
  if (process.env.NODE_ENV !== "production") FileDropZone.displayName = "FileDropZone";
790
879
 
880
+ var {
881
+ Color: Color$5,
882
+ Column: Column$2,
883
+ Columns: Columns$2,
884
+ useResponsiveValue,
885
+ useUID: useUID$1
886
+ } = v5;
791
887
  var FileListItemName = /*#__PURE__*/styled.div.withConfig({
792
888
  displayName: "FileListItem__FileListItemName",
793
- componentId: "SD__sc-hxbsiy-0"
889
+ componentId: "SD__sc-1pro30e-0"
794
890
  })(["overflow:hidden;line-height:22px;white-space:nowrap;text-overflow:ellipsis;"]);
795
891
  var FileListItemProgress = /*#__PURE__*/styled(CircularProgress).withConfig({
796
892
  displayName: "FileListItem__FileListItemProgress",
797
- componentId: "SD__sc-hxbsiy-1"
893
+ componentId: "SD__sc-1pro30e-1"
798
894
  })(["font-size:24px;", "{font-size:14px;}"], _ref => {
799
895
  var {
800
896
  theme
@@ -828,7 +924,7 @@ var FileListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
828
924
  onRetry,
829
925
  onDelete
830
926
  } = _ref2;
831
- var uid = useUID();
927
+ var uid = useUID$1();
832
928
  var fileType = getFileType(name);
833
929
  var [isHoveredState, setIsHovered] = useState(false);
834
930
  var isHovered = useResponsiveValue(true, isHoveredState);
@@ -840,10 +936,10 @@ var FileListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
840
936
  onMouseLeave: () => {
841
937
  setIsHovered(false);
842
938
  },
843
- children: /*#__PURE__*/jsxs(Columns, {
939
+ children: /*#__PURE__*/jsxs(Columns$2, {
844
940
  align: "center",
845
941
  space: "xsmall",
846
- children: [/*#__PURE__*/jsx(Column, {
942
+ children: [/*#__PURE__*/jsx(Column$2, {
847
943
  width: "content",
848
944
  children: status === 'error' ? /*#__PURE__*/jsx(Error, {
849
945
  color: "error",
@@ -858,7 +954,7 @@ var FileListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
858
954
  color: "action",
859
955
  fontSize: "small"
860
956
  })
861
- }), /*#__PURE__*/jsx(Column, {
957
+ }), /*#__PURE__*/jsx(Column$2, {
862
958
  width: "fluid",
863
959
  children: /*#__PURE__*/jsx(FileListItemName, {
864
960
  id: uid,
@@ -870,7 +966,7 @@ var FileListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
870
966
  children: name
871
967
  })
872
968
  })
873
- }), status === 'error' && /*#__PURE__*/jsx(Column, {
969
+ }), status === 'error' && /*#__PURE__*/jsx(Column$2, {
874
970
  width: "content",
875
971
  children: /*#__PURE__*/jsx(Tooltip, {
876
972
  title: "Retry",
@@ -882,7 +978,7 @@ var FileListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
882
978
  })
883
979
  })
884
980
  })
885
- }), /*#__PURE__*/jsx(Column, {
981
+ }), /*#__PURE__*/jsx(Column$2, {
886
982
  width: "content",
887
983
  children: status === 'loading' ? /*#__PURE__*/jsx(IconButton, {
888
984
  size: "small",
@@ -897,7 +993,7 @@ var FileListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
897
993
  onClick: onDelete,
898
994
  children: !isHovered && status === 'success' ? /*#__PURE__*/jsx(CheckCircle, {
899
995
  fontSize: "small",
900
- htmlColor: Color.Green300
996
+ htmlColor: Color$5.Green300
901
997
  }) : /*#__PURE__*/jsx(Delete, {
902
998
  fontSize: "small"
903
999
  })
@@ -909,17 +1005,23 @@ var FileListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
909
1005
  });
910
1006
  if (process.env.NODE_ENV !== "production") FileListItem.displayName = "FileListItem";
911
1007
 
1008
+ var {
1009
+ Color: Color$6,
1010
+ Column: Column$3,
1011
+ Columns: Columns$3,
1012
+ useUID: useUID$2
1013
+ } = v5;
912
1014
  var SidebarRoot = /*#__PURE__*/styled.aside.withConfig({
913
1015
  displayName: "Sidebar__SidebarRoot",
914
- componentId: "SD__sc-b77o22-0"
915
- })(["top:0;position:sticky;overflow-y:auto;overflow-x:hidden;width:240px;height:100vh;background-color:", ";border-right:1px solid ", ";"], Color.White, Color.Silver400);
1016
+ componentId: "SD__sc-14hfb05-0"
1017
+ })(["top:0;position:sticky;overflow-y:auto;overflow-x:hidden;width:240px;height:100vh;background-color:", ";border-right:1px solid ", ";"], Color$6.White, Color$6.Silver400);
916
1018
  var SidebarHeader = /*#__PURE__*/styled.div.withConfig({
917
1019
  displayName: "Sidebar__SidebarHeader",
918
- componentId: "SD__sc-b77o22-1"
919
- })(["top:0;z-index:1;position:sticky;padding-left:24px;padding-right:24px;padding-bottom:8px;background-color:", ";"], Color.White);
1020
+ componentId: "SD__sc-14hfb05-1"
1021
+ })(["top:0;z-index:1;position:sticky;padding-left:24px;padding-right:24px;padding-bottom:8px;background-color:", ";"], Color$6.White);
920
1022
  var SidebarTitle = /*#__PURE__*/styled.div.withConfig({
921
1023
  displayName: "Sidebar__SidebarTitle",
922
- componentId: "SD__sc-b77o22-2"
1024
+ componentId: "SD__sc-14hfb05-2"
923
1025
  })(["height:64px;max-height:64px;display:flex;align-items:center;"]);
924
1026
  var Sidebar = /*#__PURE__*/forwardRef((_ref, ref) => {
925
1027
  var {
@@ -929,17 +1031,17 @@ var Sidebar = /*#__PURE__*/forwardRef((_ref, ref) => {
929
1031
  children,
930
1032
  id: idProp
931
1033
  } = _ref;
932
- var id = useUID(idProp);
1034
+ var id = useUID$2(idProp);
933
1035
  var titleID = "".concat(id, "-title");
934
1036
  return /*#__PURE__*/jsxs(SidebarRoot, {
935
1037
  id: id,
936
1038
  ref: ref,
937
1039
  children: [/*#__PURE__*/jsxs(SidebarHeader, {
938
1040
  children: [/*#__PURE__*/jsx(SidebarTitle, {
939
- children: /*#__PURE__*/jsxs(Columns, {
1041
+ children: /*#__PURE__*/jsxs(Columns$3, {
940
1042
  space: "xsmall",
941
1043
  align: "center",
942
- children: [/*#__PURE__*/jsx(Column, {
1044
+ children: [/*#__PURE__*/jsx(Column$3, {
943
1045
  width: "fluid",
944
1046
  children: /*#__PURE__*/jsx(TextBox, {
945
1047
  variant: "heading-2",
@@ -947,7 +1049,7 @@ var Sidebar = /*#__PURE__*/forwardRef((_ref, ref) => {
947
1049
  id: titleID,
948
1050
  children: title
949
1051
  })
950
- }), !!count && /*#__PURE__*/jsx(Column, {
1052
+ }), !!count && /*#__PURE__*/jsx(Column$3, {
951
1053
  width: "content",
952
1054
  children: /*#__PURE__*/jsx(TextBox, {
953
1055
  color: "secondary",
@@ -966,11 +1068,11 @@ if (process.env.NODE_ENV !== "production") Sidebar.displayName = "Sidebar";
966
1068
 
967
1069
  var SidebarContainerRoot = /*#__PURE__*/styled.div.withConfig({
968
1070
  displayName: "SidebarContainer__SidebarContainerRoot",
969
- componentId: "SD__sc-uibj1m-0"
1071
+ componentId: "SD__sc-6u6mqe-0"
970
1072
  })(["display:flex;height:inherit;max-height:inherit;min-height:inherit;"]);
971
1073
  var SidebarContainerContent = /*#__PURE__*/styled.div.withConfig({
972
1074
  displayName: "SidebarContainer__SidebarContainerContent",
973
- componentId: "SD__sc-uibj1m-1"
1075
+ componentId: "SD__sc-6u6mqe-1"
974
1076
  })(["height:inherit;max-height:inherit;min-height:inherit;width:calc(100% - 240px);min-width:calc(100% - 240px);max-width:calc(100% - 240px);"]);
975
1077
  var SidebarContainer = /*#__PURE__*/forwardRef((_ref, ref) => {
976
1078
  var {
@@ -988,7 +1090,7 @@ if (process.env.NODE_ENV !== "production") SidebarContainer.displayName = "Sideb
988
1090
 
989
1091
  var SidebarDividerRoot = /*#__PURE__*/styled.div.withConfig({
990
1092
  displayName: "SidebarDivider__SidebarDividerRoot",
991
- componentId: "SD__sc-5lwi2i-0"
1093
+ componentId: "SD__sc-182lunj-0"
992
1094
  })(["padding:20px 24px;"]);
993
1095
  var SidebarDivider = /*#__PURE__*/forwardRef((_, ref) => {
994
1096
  return /*#__PURE__*/jsx(SidebarDividerRoot, {
@@ -1018,23 +1120,29 @@ function SidebarMenuItemContextProvider(_ref) {
1018
1120
  });
1019
1121
  }
1020
1122
 
1123
+ var {
1124
+ Color: Color$7,
1125
+ Column: Column$4,
1126
+ Columns: Columns$4,
1127
+ Inline: Inline$1
1128
+ } = v5;
1021
1129
  var SidebarMenuItemRoot = /*#__PURE__*/styled.div.withConfig({
1022
1130
  displayName: "SidebarMenuItem__SidebarMenuItemRoot",
1023
- componentId: "SD__sc-1sb5zqa-0"
1131
+ componentId: "SD__sc-1srwx2n-0"
1024
1132
  })(_ref => {
1025
1133
  var {
1026
1134
  hasAvatar
1027
1135
  } = _ref;
1028
1136
  var height = hasAvatar ? 48 : 40;
1029
- return css(["position:relative;& > .MuiButtonBase-root{width:100%;display:flex;justify-content:flex-start;padding-left:24px;padding-right:24px;height:", "px;max-height:", "px;&[aria-current='true']{background-color:", ";box-shadow:inset 4px 0 0 ", ";}}"], height, height, Color.Silver200, Color.Blue300);
1137
+ return css(["position:relative;& > .MuiButtonBase-root{width:100%;display:flex;justify-content:flex-start;padding-left:24px;padding-right:24px;height:", "px;max-height:", "px;&[aria-current='true']{background-color:", ";box-shadow:inset 4px 0 0 ", ";}}"], height, height, Color$7.Silver200, Color$7.Blue300);
1030
1138
  });
1031
1139
  var SidebarMenuItemBadge = /*#__PURE__*/styled.div.withConfig({
1032
1140
  displayName: "SidebarMenuItem__SidebarMenuItemBadge",
1033
- componentId: "SD__sc-1sb5zqa-1"
1034
- })(["font-size:12px;line-height:16px;padding-left:4px;padding-right:4px;border-radius:100px;color:", ";background-color:", ";.MuiButtonBase-root[aria-current='true'] &{color:", ";background-color:", ";}"], Color.Dark500, Color.Silver300, Color.White, Color.Dark450);
1141
+ componentId: "SD__sc-1srwx2n-1"
1142
+ })(["font-size:12px;line-height:16px;padding-left:4px;padding-right:4px;border-radius:100px;color:", ";background-color:", ";.MuiButtonBase-root[aria-current='true'] &{color:", ";background-color:", ";}"], Color$7.Dark500, Color$7.Silver300, Color$7.White, Color$7.Dark450);
1035
1143
  var SidebarMenuItemSecondaryAction = /*#__PURE__*/styled.div.withConfig({
1036
1144
  displayName: "SidebarMenuItem__SidebarMenuItemSecondaryAction",
1037
- componentId: "SD__sc-1sb5zqa-2"
1145
+ componentId: "SD__sc-1srwx2n-2"
1038
1146
  })(["top:50%;right:24px;position:absolute;transform:translate3d(0,-50%,0);"]);
1039
1147
  var SidebarMenuItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
1040
1148
  var {
@@ -1070,33 +1178,33 @@ var SidebarMenuItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
1070
1178
  onClick: onClick,
1071
1179
  disabled: disabled,
1072
1180
  "aria-current": selected,
1073
- children: /*#__PURE__*/jsxs(Columns, {
1181
+ children: /*#__PURE__*/jsxs(Columns$4, {
1074
1182
  align: "center",
1075
1183
  space: "xsmall",
1076
- children: [/*#__PURE__*/jsx(Column, {
1077
- children: /*#__PURE__*/jsx(Columns, {
1184
+ children: [/*#__PURE__*/jsx(Column$4, {
1185
+ children: /*#__PURE__*/jsx(Columns$4, {
1078
1186
  align: "center",
1079
1187
  space: "xsmall",
1080
- children: /*#__PURE__*/jsx(Column, {
1188
+ children: /*#__PURE__*/jsx(Column$4, {
1081
1189
  width: "fluid",
1082
- children: /*#__PURE__*/jsxs(Columns, {
1190
+ children: /*#__PURE__*/jsxs(Columns$4, {
1083
1191
  align: "center",
1084
1192
  space: "xsmall",
1085
1193
  children: [!!avatar && /*#__PURE__*/jsx(SidebarMenuItemContextProvider, {
1086
1194
  hovered: hovered,
1087
1195
  disabled: disabled,
1088
- children: /*#__PURE__*/jsx(Column, {
1196
+ children: /*#__PURE__*/jsx(Column$4, {
1089
1197
  width: "content",
1090
1198
  children: avatar
1091
1199
  })
1092
- }), /*#__PURE__*/jsx(Column, {
1200
+ }), /*#__PURE__*/jsx(Column$4, {
1093
1201
  width: "adaptive",
1094
1202
  children: /*#__PURE__*/jsx(TextBox, {
1095
1203
  variant: selected ? 'body-semibold' : 'body',
1096
1204
  noWrap: true,
1097
1205
  children: children
1098
1206
  })
1099
- }), external && /*#__PURE__*/jsx(Column, {
1207
+ }), external && /*#__PURE__*/jsx(Column$4, {
1100
1208
  width: "content",
1101
1209
  children: /*#__PURE__*/jsx(OpenInNew, {
1102
1210
  color: "action",
@@ -1106,12 +1214,12 @@ var SidebarMenuItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
1106
1214
  })
1107
1215
  })
1108
1216
  })
1109
- }), !!badge && /*#__PURE__*/jsx(Column, {
1217
+ }), !!badge && /*#__PURE__*/jsx(Column$4, {
1110
1218
  width: "content",
1111
1219
  children: /*#__PURE__*/jsx(SidebarMenuItemBadge, {
1112
1220
  children: badge
1113
1221
  })
1114
- }), (!!action || !!secondaryActions) && /*#__PURE__*/jsx(Column, {
1222
+ }), (!!action || !!secondaryActions) && /*#__PURE__*/jsx(Column$4, {
1115
1223
  width: "content",
1116
1224
  children: /*#__PURE__*/jsx("div", {
1117
1225
  ref: actionsPlaceholderRef
@@ -1120,7 +1228,7 @@ var SidebarMenuItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
1120
1228
  })
1121
1229
  }), (!!action || !!secondaryActions) && /*#__PURE__*/jsx(SidebarMenuItemSecondaryAction, {
1122
1230
  ref: actionsRef,
1123
- children: /*#__PURE__*/jsxs(Inline, {
1231
+ children: /*#__PURE__*/jsxs(Inline$1, {
1124
1232
  children: [hovered && secondaryActions, action]
1125
1233
  })
1126
1234
  })]
@@ -1130,7 +1238,7 @@ if (process.env.NODE_ENV !== "production") SidebarMenuItem.displayName = "Sideba
1130
1238
 
1131
1239
  var SidebarMenuItemActionRoot = /*#__PURE__*/styled(IconButton).withConfig({
1132
1240
  displayName: "SidebarMenuItemAction__SidebarMenuItemActionRoot",
1133
- componentId: "SD__sc-1n50gmv-0"
1241
+ componentId: "SD__sc-4la7tu-0"
1134
1242
  })(["& .MuiSvgIcon-root{font-size:16px;}"]);
1135
1243
  var SidebarMenuItemAction = /*#__PURE__*/forwardRef((_ref, ref) => {
1136
1244
  var {
@@ -1157,7 +1265,7 @@ function stopPropagation(event) {
1157
1265
 
1158
1266
  var SidebarMenuItemAvatarCheckbox = /*#__PURE__*/styled.div.withConfig({
1159
1267
  displayName: "SidebarMenuItemAvatar__SidebarMenuItemAvatarCheckbox",
1160
- componentId: "SD__sc-17mkvc7-0"
1268
+ componentId: "SD__sc-bfi0pv-0"
1161
1269
  })(["margin:-5px;"]);
1162
1270
  var SidebarMenuItemAvatar = /*#__PURE__*/forwardRef((_ref, ref) => {
1163
1271
  var {
@@ -1199,10 +1307,14 @@ var SidebarMenuItemAvatar = /*#__PURE__*/forwardRef((_ref, ref) => {
1199
1307
  });
1200
1308
  if (process.env.NODE_ENV !== "production") SidebarMenuItemAvatar.displayName = "SidebarMenuItemAvatar";
1201
1309
 
1310
+ var {
1311
+ Column: Column$5,
1312
+ Columns: Columns$5
1313
+ } = v5;
1202
1314
  var SidebarSubheaderRoot = /*#__PURE__*/styled.div.withConfig({
1203
1315
  displayName: "SidebarSubheader__SidebarSubheaderRoot",
1204
- componentId: "SD__sc-1r0xx76-0"
1205
- })(["height:40px;max-height:40px;padding-left:24px;padding-right:24px;"]);
1316
+ componentId: "SD__sc-7njpmq-0"
1317
+ })(["display:flex;align-items:center;height:40px;max-height:40px;padding-left:24px;padding-right:24px;"]);
1206
1318
  var SidebarSubheader = /*#__PURE__*/forwardRef((_ref, ref) => {
1207
1319
  var {
1208
1320
  id,
@@ -1211,9 +1323,10 @@ var SidebarSubheader = /*#__PURE__*/forwardRef((_ref, ref) => {
1211
1323
  } = _ref;
1212
1324
  return /*#__PURE__*/jsx(SidebarSubheaderRoot, {
1213
1325
  ref: ref,
1214
- children: /*#__PURE__*/jsxs(Columns, {
1326
+ children: /*#__PURE__*/jsxs(Columns$5, {
1215
1327
  space: "xsmall",
1216
- children: [/*#__PURE__*/jsx(Column, {
1328
+ align: "center",
1329
+ children: [/*#__PURE__*/jsx(Column$5, {
1217
1330
  children: /*#__PURE__*/jsx(TextBox, {
1218
1331
  id: id,
1219
1332
  variant: "heading-6",
@@ -1221,7 +1334,7 @@ var SidebarSubheader = /*#__PURE__*/forwardRef((_ref, ref) => {
1221
1334
  noWrap: true,
1222
1335
  children: children
1223
1336
  })
1224
- }), !!action && /*#__PURE__*/jsx(Column, {
1337
+ }), !!action && /*#__PURE__*/jsx(Column$5, {
1225
1338
  width: "content",
1226
1339
  children: action
1227
1340
  })]
@@ -1230,5 +1343,1306 @@ var SidebarSubheader = /*#__PURE__*/forwardRef((_ref, ref) => {
1230
1343
  });
1231
1344
  if (process.env.NODE_ENV !== "production") SidebarSubheader.displayName = "SidebarSubheader";
1232
1345
 
1233
- export { Alert, AnchorButton, Box, Button, ButtonArea, DescriptionItem, FileDropZone, FileListItem, Sidebar, SidebarContainer, SidebarDivider, SidebarMenuItem, SidebarMenuItemAction, SidebarMenuItemAvatar, SidebarSubheader, TextBox, formatBytes, toBytes };
1346
+
1347
+
1348
+ var index = /*#__PURE__*/Object.freeze({
1349
+ __proto__: null,
1350
+ Alert: Alert,
1351
+ Banner: Banner,
1352
+ Box: Box,
1353
+ ButtonArea: ButtonArea,
1354
+ Button: Button,
1355
+ AnchorButton: AnchorButton,
1356
+ DescriptionItem: DescriptionItem,
1357
+ toBytes: toBytes,
1358
+ formatBytes: formatBytes,
1359
+ FileDropZone: FileDropZone,
1360
+ FileListItem: FileListItem,
1361
+ Sidebar: Sidebar,
1362
+ SidebarContainer: SidebarContainer,
1363
+ SidebarDivider: SidebarDivider,
1364
+ SidebarMenuItem: SidebarMenuItem,
1365
+ SidebarMenuItemAction: SidebarMenuItemAction,
1366
+ SidebarMenuItemAvatar: SidebarMenuItemAvatar,
1367
+ SidebarSubheader: SidebarSubheader,
1368
+ TextBox: TextBox
1369
+ });
1370
+
1371
+ function colorMixin$1(textColor, backgroundColor, buttonHoverColor) {
1372
+ return css(["color:", ";background-color:", ";& .MuiAlert-icon{color:", ";}& .MuiAlert-action{& .MuiIconButton-root{&:hover,&:active{color:", ";}}}"], textColor, backgroundColor, textColor, buttonHoverColor);
1373
+ }
1374
+
1375
+ var StyledAlert$1 = /*#__PURE__*/styled(Alert$3).withConfig({
1376
+ displayName: "Alert__StyledAlert",
1377
+ componentId: "SD__sc-1j6qebb-0"
1378
+ })(["&.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$1(Color$8.Green500, Color$8.Green50, Color$8.Green400), /*#__PURE__*/colorMixin$1(Color$8.Blue500, Color$8.Blue50, Color$8.Blue400), /*#__PURE__*/colorMixin$1(Color$8.Yellow500, Color$8.Yellow50, Color$8.Yellow400), /*#__PURE__*/colorMixin$1(Color$8.Red500, Color$8.Red50, Color$8.Red400));
1379
+
1380
+ function toMaterialSeverity$1(severity) {
1381
+ return severity === 'info' ? 'info' : severity === 'caution' ? 'warning' : severity === 'critical' ? 'error' : 'success';
1382
+ }
1383
+
1384
+ var iconMapping$1 = {
1385
+ success: /*#__PURE__*/jsx(CheckCircle$1, {}),
1386
+ info: /*#__PURE__*/jsx(Info$1, {}),
1387
+ error: /*#__PURE__*/jsx(Error$1, {})
1388
+ };
1389
+ var Alert$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
1390
+ var {
1391
+ children,
1392
+ onClose: _onClose,
1393
+ severity = 'positive'
1394
+ } = _ref;
1395
+ return /*#__PURE__*/jsx(StyledAlert$1, {
1396
+ ref: ref,
1397
+ variant: "outlined",
1398
+ iconMapping: iconMapping$1,
1399
+ severity: toMaterialSeverity$1(severity),
1400
+ onClose: () => {
1401
+ _onClose === null || _onClose === void 0 ? void 0 : _onClose();
1402
+ },
1403
+ children: children
1404
+ });
1405
+ });
1406
+ if (process.env.NODE_ENV !== "production") Alert$1.displayName = "Alert";
1407
+
1408
+ var _excluded$5 = ["children"],
1409
+ _excluded2$2 = ["in"];
1410
+
1411
+ function enterMixin$1(border) {
1412
+ return css(["min-height:56px;color:", ";background-color:", ";border-", ":1px #dfe3e8 solid;"], Color$8.Dark500, Color$8.White, border);
1413
+ }
1414
+
1415
+ function enterAnimation$1(border) {
1416
+ return keyframes(["0%{min-height:0;color:", ";background-color:", ";}50%{min-height:56px;color:", ";background-color:", ";}70%{min-height:56px;color:", ";background-color:", ";}100%{", "}"], Color$8.White, Color$8.Dark500, Color$8.White, Color$8.Dark500, Color$8.White, Color$8.Dark500, enterMixin$1(border));
1417
+ }
1418
+
1419
+ var CustomTransition$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
1420
+ var {
1421
+ children
1422
+ } = _ref,
1423
+ props = _objectWithoutProperties(_ref, _excluded$5);
1424
+
1425
+ return /*#__PURE__*/jsx(CSSTransition, _objectSpread(_objectSpread({}, props), {}, {
1426
+ ref: ref,
1427
+ timeout: 3000,
1428
+ classNames: props.className,
1429
+ children: /*#__PURE__*/jsx("div", {
1430
+ children: children
1431
+ })
1432
+ }));
1433
+ });
1434
+ if (process.env.NODE_ENV !== "production") CustomTransition$1.displayName = "CustomTransition";
1435
+ var BannerContent$1 = /*#__PURE__*/styled(CustomTransition$1).withConfig({
1436
+ displayName: "Banner__BannerContent",
1437
+ componentId: "SD__sc-9kw31n-0"
1438
+ })(_ref2 => {
1439
+ var {
1440
+ border = 'bottom'
1441
+ } = _ref2;
1442
+ return css(["height:0;width:100%;overflow:hidden;display:flex;align-items:center;justify-content:center;color:", ";background-color:", ";&-enter-active{animation:", " 2s 1s forwards;}&-enter-done{", ";}&-exit{", ";}&-exit-active{min-height:0;transition:min-height 2s 1s;}"], Color$8.White, Color$8.White, enterAnimation$1(border), enterMixin$1(border), enterMixin$1(border));
1443
+ });
1444
+ var Banner$1 = /*#__PURE__*/forwardRef((_ref3, ref) => {
1445
+ var {
1446
+ in: inProp
1447
+ } = _ref3,
1448
+ props = _objectWithoutProperties(_ref3, _excluded2$2);
1449
+
1450
+ var [isIn, setIn] = useState(false); // transition is not triggered on initial render with `in: true`
1451
+
1452
+ useEffect(() => {
1453
+ setIn(!!inProp);
1454
+ }, [inProp]);
1455
+ return /*#__PURE__*/jsx(BannerContent$1, _objectSpread({
1456
+ ref: ref,
1457
+ in: isIn
1458
+ }, props));
1459
+ });
1460
+ if (process.env.NODE_ENV !== "production") Banner$1.displayName = "Banner";
1461
+
1462
+ function createRuleNormalizer$1(rules) {
1463
+ return input => {
1464
+ if (typeof input == 'string') {
1465
+ var value = rules[input];
1466
+
1467
+ if (typeof value == 'number') {
1468
+ return "".concat(value, "px");
1469
+ }
1470
+
1471
+ if (typeof value == 'string') {
1472
+ return value;
1473
+ }
1474
+ }
1475
+
1476
+ return undefined;
1477
+ };
1478
+ }
1479
+
1480
+ // Colors
1481
+ //
1482
+
1483
+ function normalizeColor$1(input) {
1484
+ return isColorProp$1(input) ? Color$8[input] : undefined;
1485
+ } //
1486
+ // Space
1487
+ //
1488
+
1489
+
1490
+ function parseSpace$1(space) {
1491
+ return "".concat(parseSpaceProp$1(space), "px");
1492
+ } //
1493
+ // Margins
1494
+ //
1495
+
1496
+
1497
+ function parseMargin$1(input) {
1498
+ if (input === 'auto') return input;
1499
+ var prefix = '';
1500
+
1501
+ if (typeof input == 'string' && input.startsWith('-')) {
1502
+ prefix = '-';
1503
+ input = input.slice(1);
1504
+ }
1505
+
1506
+ return prefix + parseSpace$1(input);
1507
+ } //
1508
+ // Borders
1509
+ //
1510
+
1511
+
1512
+ var normalizeBorderRadius$1 = /*#__PURE__*/createRuleNormalizer$1({
1513
+ none: 0,
1514
+ small: 4
1515
+ });
1516
+ var normalizeBorderWidth$1 = /*#__PURE__*/createRuleNormalizer$1({
1517
+ none: 0,
1518
+ small: 1,
1519
+ medium: 2,
1520
+ large: 4
1521
+ }); //
1522
+ // Rules
1523
+ //
1524
+
1525
+ var normalizers$1 = {
1526
+ display: undefined,
1527
+ color: normalizeColor$1,
1528
+ backgroundColor: normalizeColor$1,
1529
+ borderColor: normalizeColor$1,
1530
+ borderTopColor: normalizeColor$1,
1531
+ borderLeftColor: normalizeColor$1,
1532
+ borderRightColor: normalizeColor$1,
1533
+ borderBottomColor: normalizeColor$1,
1534
+ borderWidth: normalizeBorderWidth$1,
1535
+ borderTopWidth: normalizeBorderWidth$1,
1536
+ borderLeftWidth: normalizeBorderWidth$1,
1537
+ borderRightWidth: normalizeBorderWidth$1,
1538
+ borderBottomWidth: normalizeBorderWidth$1,
1539
+ margin: parseMargin$1,
1540
+ marginTop: parseMargin$1,
1541
+ marginLeft: parseMargin$1,
1542
+ marginRight: parseMargin$1,
1543
+ marginBottom: parseMargin$1,
1544
+ padding: parseSpace$1,
1545
+ paddingTop: parseSpace$1,
1546
+ paddingLeft: parseSpace$1,
1547
+ paddingRight: parseSpace$1,
1548
+ paddingBottom: parseSpace$1,
1549
+ borderRadius: normalizeBorderRadius$1,
1550
+ borderTopLeftRadius: normalizeBorderRadius$1,
1551
+ borderTopRightRadius: normalizeBorderRadius$1,
1552
+ borderBottomLeftRadius: normalizeBorderRadius$1,
1553
+ borderBottomRightRadius: normalizeBorderRadius$1,
1554
+ fontSize: undefined,
1555
+ width: undefined,
1556
+ maxWidth: undefined,
1557
+ minWidth: undefined,
1558
+ height: undefined,
1559
+ maxHeight: undefined,
1560
+ minHeight: undefined,
1561
+ overflow: undefined,
1562
+ overflowY: undefined,
1563
+ overflowX: undefined,
1564
+ top: undefined,
1565
+ left: undefined,
1566
+ right: undefined,
1567
+ bottom: undefined,
1568
+ position: undefined
1569
+ };
1570
+
1571
+ function injectRule$1(styles, key, breakpoint, value, normalizer) {
1572
+ if (normalizer != null) value = normalizer(value);
1573
+
1574
+ if (value != null) {
1575
+ var rules = styles[breakpoint];
1576
+
1577
+ if (typeof rules != 'object') {
1578
+ rules = {};
1579
+ styles[breakpoint] = rules;
1580
+ }
1581
+
1582
+ rules[key] = String(value);
1583
+ }
1584
+ } //
1585
+ // Box
1586
+ //
1587
+
1588
+
1589
+ var Box$1 = /*#__PURE__*/styled.div.withConfig({
1590
+ displayName: "Box",
1591
+ componentId: "SD__sc-1bc600y-0"
1592
+ })(props => {
1593
+ var {
1594
+ breakpoints
1595
+ } = props.theme;
1596
+ var xs = breakpoints.up('xs');
1597
+ var sm = breakpoints.up('sm');
1598
+ var md = breakpoints.up('md');
1599
+ var styles = {
1600
+ margin: 0,
1601
+ padding: 0,
1602
+ borderWidth: 0,
1603
+ borderStyle: 'solid'
1604
+ };
1605
+
1606
+ for (var k in props) {
1607
+ if (Object.prototype.hasOwnProperty.call(props, k) && k in normalizers$1) {
1608
+ var key = k;
1609
+ var prop = props[key];
1610
+
1611
+ if (prop != null) {
1612
+ var [mobile, tablet, desktop] = parseResponsiveProp$2(prop);
1613
+ var normalizer = normalizers$1[key];
1614
+ injectRule$1(styles, key, xs, mobile, normalizer);
1615
+ injectRule$1(styles, key, sm, tablet, normalizer);
1616
+ injectRule$1(styles, key, md, desktop, normalizer);
1617
+ }
1618
+ }
1619
+ }
1620
+
1621
+ return styles;
1622
+ });
1623
+
1624
+ var _excluded$6 = ["icon", "children", "variant", "active", "disabled", "fullWidth"];
1625
+ var ButtonRoot$2 = /*#__PURE__*/styled(ButtonBase$1).withConfig({
1626
+ displayName: "ButtonArea__ButtonRoot",
1627
+ componentId: "SD__sc-1czum63-0"
1628
+ })(["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:", ";}}"], Color$8.Silver500, Color$8.Dark100, Color$8.White, Color$8.Silver500, Color$8.Silver400, Color$8.Green300, Color$8.Green100, Color$8.Green300, Color$8.Green300, Color$8.Green300, Color$8.Green50, Color$8.Red300, Color$8.Red100, Color$8.Red300, Color$8.Red300, Color$8.Red300, Color$8.Red50);
1629
+ var ButtonArea$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
1630
+ var {
1631
+ icon,
1632
+ children,
1633
+ variant,
1634
+ active,
1635
+ disabled,
1636
+ fullWidth
1637
+ } = _ref,
1638
+ props = _objectWithoutProperties(_ref, _excluded$6);
1639
+
1640
+ return /*#__PURE__*/jsx(ButtonRoot$2, _objectSpread(_objectSpread({
1641
+ ref: ref,
1642
+ disabled: disabled,
1643
+ "data-active": active,
1644
+ "data-disabled": disabled,
1645
+ "data-variant": variant,
1646
+ "data-full-width": fullWidth
1647
+ }, props), {}, {
1648
+ children: /*#__PURE__*/jsxs(Stack$1, {
1649
+ align: "center",
1650
+ space: "xxsmall",
1651
+ children: [icon, /*#__PURE__*/jsx(Typography$1, {
1652
+ variant: "h4",
1653
+ color: disabled ? 'inherit' : 'textPrimary',
1654
+ children: children
1655
+ })]
1656
+ })
1657
+ }));
1658
+ });
1659
+ if (process.env.NODE_ENV !== "production") ButtonArea$1.displayName = "ButtonArea";
1660
+
1661
+ var _excluded$7 = ["children", "endIcon", "startIcon", "tabIndex", "active", "pending", "disabled", "size", "fullWidth", "variant"],
1662
+ _excluded2$3 = ["type"],
1663
+ _excluded3$1 = ["href", "target"];
1664
+
1665
+ function createButtonVariables$1(size, _ref) {
1666
+ var {
1667
+ fontSize = size === 'large' ? 16 : 14,
1668
+ lineHeight = size === 'large' ? 24 : 20,
1669
+ fontSizeMobile = size === 'large' ? 18 : 16,
1670
+ lineHeightMobile = size === 'large' ? 28 : 24,
1671
+ paddingX = size === 'large' ? 32 : 16,
1672
+ paddingY = size === 'large' ? 8 : size === 'small' ? 2 : 6,
1673
+ paddingXMobile = size === 'large' ? 64 : 24,
1674
+ paddingYMobile = size === 'large' ? 14 : size === 'small' ? 4 : 10,
1675
+ textColor = Color$8.Transparent,
1676
+ textColorHovered = textColor,
1677
+ textColorDisabled = textColor,
1678
+ outlineColor = Color$8.Transparent,
1679
+ borderColor = Color$8.Transparent,
1680
+ borderColorHovered = borderColor,
1681
+ borderColorDisabled = borderColor,
1682
+ backgroundColor = Color$8.Transparent,
1683
+ backgroundColorHovered = backgroundColor,
1684
+ backgroundColorActive = backgroundColorHovered,
1685
+ backgroundColorDisabled = backgroundColor
1686
+ } = _ref;
1687
+ return {
1688
+ paddingX,
1689
+ paddingY,
1690
+ fontSize,
1691
+ lineHeight,
1692
+ paddingXMobile,
1693
+ paddingYMobile,
1694
+ fontSizeMobile,
1695
+ lineHeightMobile,
1696
+ textColor,
1697
+ borderColor,
1698
+ outlineColor,
1699
+ backgroundColor,
1700
+ textColorHovered,
1701
+ borderColorHovered,
1702
+ backgroundColorHovered,
1703
+ backgroundColorActive,
1704
+ textColorDisabled,
1705
+ borderColorDisabled,
1706
+ backgroundColorDisabled
1707
+ };
1708
+ }
1709
+
1710
+ function getDefaultVariables$1(size) {
1711
+ return createButtonVariables$1(size, {
1712
+ textColor: Color$8.White,
1713
+ outlineColor: Color$8.Blue100,
1714
+ backgroundColor: Color$8.Blue300,
1715
+ textColorHovered: Color$8.White,
1716
+ backgroundColorHovered: Color$8.Blue500,
1717
+ backgroundColorActive: Color$8.Blue400,
1718
+ backgroundColorDisabled: Color$8.Blue100
1719
+ });
1720
+ }
1721
+
1722
+ function getPrimaryVariables$1(size) {
1723
+ return getDefaultVariables$1(size);
1724
+ }
1725
+
1726
+ function getNeutralVariables$1(size) {
1727
+ return createButtonVariables$1(size, {
1728
+ textColor: Color$8.Dark500,
1729
+ borderColor: Color$8.Silver500,
1730
+ outlineColor: Color$8.Blue100,
1731
+ backgroundColor: Color$8.White,
1732
+ textColorHovered: Color$8.Blue300,
1733
+ borderColorHovered: Color$8.Blue300,
1734
+ backgroundColorHovered: Color$8.Blue50,
1735
+ backgroundColorActive: Color$8.Blue75,
1736
+ textColorDisabled: Color$8.Silver500
1737
+ });
1738
+ }
1739
+
1740
+ function getCriticalVariables$1(size) {
1741
+ return createButtonVariables$1(size, {
1742
+ textColor: Color$8.Red300,
1743
+ borderColor: Color$8.Red300,
1744
+ outlineColor: Color$8.Red75,
1745
+ backgroundColor: Color$8.Red50,
1746
+ backgroundColorHovered: Color$8.Red75,
1747
+ backgroundColorActive: Color$8.Red100,
1748
+ textColorDisabled: Color$8.Red100,
1749
+ borderColorDisabled: Color$8.Red100,
1750
+ backgroundColorDisabled: Color$8.Red50
1751
+ });
1752
+ }
1753
+
1754
+ function getTextVariables$1(size) {
1755
+ return createButtonVariables$1(size, {
1756
+ textColor: Color$8.Blue400,
1757
+ outlineColor: Color$8.Blue100,
1758
+ textColorHovered: Color$8.Blue500,
1759
+ backgroundColorHovered: Color$8.Blue50,
1760
+ backgroundColorActive: Color$8.Blue75,
1761
+ textColorDisabled: Color$8.Blue100
1762
+ });
1763
+ }
1764
+
1765
+ function getInvertedVariables$1(size) {
1766
+ return createButtonVariables$1(size, {
1767
+ textColor: Color$8.White,
1768
+ outlineColor: Color$8.White40,
1769
+ backgroundColor: Color$8.White20,
1770
+ textColorHovered: Color$8.White,
1771
+ backgroundColorHovered: Color$8.White40,
1772
+ backgroundColorActive: Color$8.White20,
1773
+ textColorDisabled: Color$8.White50,
1774
+ backgroundColorDisabled: Color$8.White08
1775
+ });
1776
+ }
1777
+
1778
+ var ButtonRoot$3 = /*#__PURE__*/styled.button.withConfig({
1779
+ displayName: "Button__ButtonRoot",
1780
+ componentId: "SD__sc-1pwdpe3-0"
1781
+ })(_ref2 => {
1782
+ var {
1783
+ size,
1784
+ theme,
1785
+ variant,
1786
+ fullWidth
1787
+ } = _ref2;
1788
+ var variables = variant === 'primary' ? getPrimaryVariables$1(size) : variant === 'neutral' ? getNeutralVariables$1(size) : variant === 'critical' ? getCriticalVariables$1(size) : variant === 'text' ? getTextVariables$1(size) : variant === 'inverted' ? getInvertedVariables$1(size) : getDefaultVariables$1(size);
1789
+ return css(JSON.parse('["border:0;margin:0;outline:0;position:relative;vertical-align:middle;cursor:pointer;text-decoration:none;&[aria-disabled=\'true\']{cursor:default;pointer-events:none;}-moz-appearance:none;&::-moz-focus-inner{border-style:none;}-webkit-appearance:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;@media print{-webkit-print-color-adjust:exact;}--button-visibility:visible;--button-text-color:",";--button-border-color:",";--button-outline-color:",";--button-background-color:",";--button-padding-x:","px;--button-padding-y:","px;--button-font-size:","px;--button-line-height:","px;","{--button-padding-x:","px;--button-padding-y:","px;--button-font-size:","px;--button-line-height:","px;}&[aria-disabled=\'true\']{--button-text-color:",";--button-border-color:",";--button-background-color:",";&[aria-busy=\'true\']{--button-visibility:hidden;}}&[aria-disabled=\'false\']{&[aria-expanded=\'true\']{--button-text-color:",";--button-border-color:",";--button-background-color:",";}&,&[aria-expanded=\'true\']{&:focus{--button-outline-color:",";}@media (hover:hover) and (pointer:fine){&:hover{--button-text-color:",";--button-border-color:",";--button-background-color:",";}}&:active{--button-background-color:",";}}}display:inline-flex;align-items:center;justify-content:center;min-width:48px;width:",";border-radius:4px;font-family:",";font-weight:",";color:var(--button-text-color);background-color:var(--button-background-color);font-size:var(--button-font-size);line-height:var(--button-line-height);padding:var(--button-padding-y) var(--button-padding-x);box-shadow:inset 0 0 0 1px var(--button-border-color),0 0 0 2px var(--button-outline-color);transition:",";"]'), variables.textColor, variables.borderColor, Color$8.Transparent, variables.backgroundColor, variables.paddingXMobile, variables.paddingYMobile, variables.fontSizeMobile, variables.lineHeightMobile, theme.breakpoints.up('sm'), variables.paddingX, variables.paddingY, variables.fontSize, variables.lineHeight, variables.textColorDisabled, variables.borderColorDisabled, variables.backgroundColorDisabled, variables.textColorHovered, variables.borderColorHovered, variables.backgroundColorHovered, variables.outlineColor, variables.textColorHovered, variables.borderColorHovered, variables.backgroundColorHovered, variables.backgroundColorActive, fullWidth ? '100%' : 'auto', theme.typography.fontFamily, theme.typography.fontWeightBold, theme.transitions.create(['color', 'box-shadow', 'background-color']));
1790
+ });
1791
+ var ButtonLabel$1 = /*#__PURE__*/styled.span.withConfig({
1792
+ displayName: "Button__ButtonLabel",
1793
+ componentId: "SD__sc-1pwdpe3-1"
1794
+ })(["display:inherit;align-items:inherit;justify-content:inherit;visibility:var(--button-visibility);--mui-svg-icon-size:var(--button-line-height);"]);
1795
+ var ButtonStartIcon$1 = /*#__PURE__*/styled.span.withConfig({
1796
+ displayName: "Button__ButtonStartIcon",
1797
+ componentId: "SD__sc-1pwdpe3-2"
1798
+ })(["margin-right:4px;"]);
1799
+ var ButtonEndIcon$1 = /*#__PURE__*/styled.span.withConfig({
1800
+ displayName: "Button__ButtonEndIcon",
1801
+ componentId: "SD__sc-1pwdpe3-3"
1802
+ })(["margin-left:4px;"]);
1803
+ var ButtonPendingIndicator$1 = /*#__PURE__*/styled.span.withConfig({
1804
+ displayName: "Button__ButtonPendingIndicator",
1805
+ componentId: "SD__sc-1pwdpe3-4"
1806
+ })(["left:50%;display:flex;position:absolute;visibility:visible;transform:translate(-50%);"]);
1807
+
1808
+ function useButtonProps$1(_ref3) {
1809
+ var {
1810
+ children,
1811
+ endIcon,
1812
+ startIcon,
1813
+ tabIndex: tabIndexProp = 0,
1814
+ active = false,
1815
+ pending = false,
1816
+ disabled: disabledProp = false,
1817
+ size = 'medium',
1818
+ fullWidth = false,
1819
+ variant = 'default'
1820
+ } = _ref3,
1821
+ props = _objectWithoutProperties(_ref3, _excluded$7);
1822
+
1823
+ var disabled = pending || disabledProp;
1824
+ var tabIndex = disabled ? -1 : tabIndexProp;
1825
+ return _objectSpread(_objectSpread({}, props), {}, {
1826
+ size,
1827
+ variant,
1828
+ fullWidth,
1829
+ tabIndex,
1830
+ disabled,
1831
+ 'aria-busy': pending,
1832
+ 'aria-expanded': active,
1833
+ 'aria-disabled': disabled,
1834
+ children: /*#__PURE__*/jsxs(ButtonLabel$1, {
1835
+ children: [!!startIcon && /*#__PURE__*/jsx(ButtonStartIcon$1, {
1836
+ children: startIcon
1837
+ }), children, !!endIcon && /*#__PURE__*/jsx(ButtonEndIcon$1, {
1838
+ children: endIcon
1839
+ }), pending && /*#__PURE__*/jsx(ButtonPendingIndicator$1, {
1840
+ children: /*#__PURE__*/jsx(CircularProgress$1, {
1841
+ size: "1em",
1842
+ color: "inherit"
1843
+ })
1844
+ })]
1845
+ })
1846
+ });
1847
+ }
1848
+
1849
+ var Button$1 = /*#__PURE__*/forwardRef((_ref4, ref) => {
1850
+ var {
1851
+ type = 'button'
1852
+ } = _ref4,
1853
+ props = _objectWithoutProperties(_ref4, _excluded2$3);
1854
+
1855
+ var buttonProps = useButtonProps$1(props);
1856
+ return /*#__PURE__*/jsx(ButtonRoot$3, _objectSpread(_objectSpread({}, buttonProps), {}, {
1857
+ ref: ref,
1858
+ type: type
1859
+ }));
1860
+ });
1861
+ if (process.env.NODE_ENV !== "production") Button$1.displayName = "Button";
1862
+ var AnchorButton$1 = /*#__PURE__*/forwardRef((_ref5, ref) => {
1863
+ var {
1864
+ href,
1865
+ target
1866
+ } = _ref5,
1867
+ props = _objectWithoutProperties(_ref5, _excluded3$1);
1868
+
1869
+ var buttonProps = useButtonProps$1(props);
1870
+ var rel = target === '_blank' ? 'noopener noreferrer' : undefined;
1871
+ return /*#__PURE__*/jsx(ButtonRoot$3, _objectSpread(_objectSpread({}, buttonProps), {}, {
1872
+ as: "a",
1873
+ ref: ref,
1874
+ rel: rel,
1875
+ href: href,
1876
+ target: target
1877
+ }));
1878
+ });
1879
+ if (process.env.NODE_ENV !== "production") AnchorButton$1.displayName = "AnchorButton";
1880
+
1881
+ function mergeStyles$1(styles) {
1882
+ for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1883
+ sources[_key - 1] = arguments[_key];
1884
+ }
1885
+
1886
+ for (var source of sources) {
1887
+ if (source) {
1888
+ for (var key in source) {
1889
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
1890
+ var stylesValue = styles[key];
1891
+ var sourceValue = source[key];
1892
+
1893
+ if (typeof stylesValue == 'object' && typeof sourceValue == 'object') {
1894
+ mergeStyles$1(stylesValue, sourceValue);
1895
+ } else {
1896
+ styles[key] = source[key];
1897
+ }
1898
+ }
1899
+ }
1900
+ }
1901
+ }
1902
+
1903
+ return styles;
1904
+ }
1905
+
1906
+ var _excluded$8 = ["variant", "as", "align", "color", "display", "noWrap", "wrapOverflow"];
1907
+ var normalizeTextColor$1 = /*#__PURE__*/createRuleNormalizer$1({
1908
+ inherit: 'inherit',
1909
+ primary: Color$8.Dark500,
1910
+ secondary: Color$8.Dark200,
1911
+ white: Color$8.White,
1912
+ blue: Color$8.Blue300,
1913
+ green: Color$8.Green300,
1914
+ purple: Color$8.Purple500,
1915
+ red: Color$8.Red300,
1916
+ teal: Color$8.Teal300,
1917
+ yellow: Color$8.Yellow300
1918
+ });
1919
+ var VARIANT_TYPE_MAPPING$1 = {
1920
+ 'heading-1': 'h1',
1921
+ 'heading-2': 'h2',
1922
+ 'heading-3': 'h3',
1923
+ 'heading-4': 'h4',
1924
+ 'heading-5': 'h5',
1925
+ 'heading-6': 'h6',
1926
+ body: 'span',
1927
+ 'body-block': 'p',
1928
+ 'body-semibold': 'span',
1929
+ caption: 'span'
1930
+ };
1931
+
1932
+ function variantMixin$1(_ref, variant) {
1933
+ var {
1934
+ typography,
1935
+ breakpoints
1936
+ } = _ref;
1937
+
1938
+ switch (variant) {
1939
+ case 'heading-1':
1940
+ return typography.h1;
1941
+
1942
+ case 'heading-2':
1943
+ return typography.h2;
1944
+
1945
+ case 'heading-3':
1946
+ return typography.h3;
1947
+
1948
+ case 'heading-4':
1949
+ return typography.h4;
1950
+
1951
+ case 'heading-5':
1952
+ return typography.h5;
1953
+
1954
+ case 'heading-6':
1955
+ return typography.h6;
1956
+
1957
+ case 'body':
1958
+ default:
1959
+ return typography.body2;
1960
+
1961
+ case 'body-block':
1962
+ {
1963
+ return mergeStyles$1({}, typography.body2, {
1964
+ lineHeight: '24px',
1965
+ [breakpoints.only('xs')]: {
1966
+ lineHeight: '28px'
1967
+ }
1968
+ });
1969
+ }
1970
+
1971
+ case 'body-semibold':
1972
+ return typography.body1;
1973
+
1974
+ case 'caption':
1975
+ return typography.caption;
1976
+ }
1977
+ }
1978
+
1979
+ function textBoxMixin$1(noWrap, align, color, display, wrapOverflow) {
1980
+ return css(["text-align:", ";color:", ";display:", ";overflow:", ";white-space:", ";overflow-wrap:", ";"], align, normalizeTextColor$1(color), display === 'initial' && (noWrap || align !== 'left') ? 'block' : display, noWrap ? 'hidden' : 'visible', noWrap ? 'nowrap' : 'normal', wrapOverflow ? 'break-word' : 'normal');
1981
+ }
1982
+
1983
+ var TextBoxRoot$1 = /*#__PURE__*/styled.span.withConfig({
1984
+ displayName: "TextBox__TextBoxRoot",
1985
+ componentId: "SD__sc-9mywck-0"
1986
+ })(_ref2 => {
1987
+ var {
1988
+ theme,
1989
+ $noWrap,
1990
+ $variant,
1991
+ $align,
1992
+ $color,
1993
+ $display,
1994
+ $wrapOverflow
1995
+ } = _ref2;
1996
+ return css(["margin:0;padding:0;text-overflow:ellipsis;", ";", ";", "{", ";}", "{", ";}"], variantMixin$1(theme, $variant), textBoxMixin$1($noWrap[0], $align[0], $color[0], $display[0], $wrapOverflow[0]), theme.breakpoints.up('sm'), textBoxMixin$1($noWrap[1], $align[1], $color[1], $display[1], $wrapOverflow[1]), theme.breakpoints.up('md'), textBoxMixin$1($noWrap[2], $align[2], $color[2], $display[2], $wrapOverflow[2]));
1997
+ });
1998
+ var TextBox$1 = /*#__PURE__*/forwardRef((_ref3, ref) => {
1999
+ var {
2000
+ variant: $variant = 'body',
2001
+ as = VARIANT_TYPE_MAPPING$1[$variant],
2002
+ align = 'left',
2003
+ color = 'primary',
2004
+ display = 'initial',
2005
+ noWrap = false,
2006
+ wrapOverflow = false
2007
+ } = _ref3,
2008
+ props = _objectWithoutProperties(_ref3, _excluded$8);
2009
+
2010
+ var $align = parseResponsiveProp$2(align);
2011
+ var $color = parseResponsiveProp$2(color);
2012
+ var $noWrap = parseResponsiveProp$2(noWrap);
2013
+ var $display = parseResponsiveProp$2(display);
2014
+ var $wrapOverflow = parseResponsiveProp$2(wrapOverflow);
2015
+ return /*#__PURE__*/jsx(TextBoxRoot$1, _objectSpread(_objectSpread({}, props), {}, {
2016
+ as: as,
2017
+ ref: ref,
2018
+ $align: $align,
2019
+ $color: $color,
2020
+ $noWrap: $noWrap,
2021
+ $display: $display,
2022
+ $variant: $variant,
2023
+ $wrapOverflow: $wrapOverflow
2024
+ }));
2025
+ });
2026
+ if (process.env.NODE_ENV !== "production") TextBox$1.displayName = "TextBox";
2027
+
2028
+ function descriptionItemIconMixin$1(size) {
2029
+ return css(["width:", "px;height:", "px;& > .MuiSvgIcon-root{font-size:", "px;}"], size, size + 4, size);
2030
+ }
2031
+
2032
+ var DescriptionItemIcon$1 = /*#__PURE__*/styled.div.withConfig({
2033
+ displayName: "DescriptionItem__DescriptionItemIcon",
2034
+ componentId: "SD__sc-1906hic-0"
2035
+ })(_ref => {
2036
+ var {
2037
+ theme
2038
+ } = _ref;
2039
+ return css(["display:flex;align-items:center;& > .MuiSvgIcon-root{color:", ";}", ";", "{", ";}"], Color$8.Dark100, descriptionItemIconMixin$1(20), theme.breakpoints.up('sm'), descriptionItemIconMixin$1(16));
2040
+ });
2041
+ var DescriptionItem$1 = /*#__PURE__*/forwardRef((_ref2, ref) => {
2042
+ var {
2043
+ icon,
2044
+ wrap,
2045
+ inset,
2046
+ label,
2047
+ children,
2048
+ fallback,
2049
+ id: idProp,
2050
+ 'aria-label': ariaLabel
2051
+ } = _ref2;
2052
+ var id = useUID$3(idProp);
2053
+ var labelID = "".concat(id, "-label");
2054
+ var isEmptyChildren = isEmptyReactNode$1(children);
2055
+ return /*#__PURE__*/jsxs(Columns$6, {
2056
+ id: id,
2057
+ ref: ref,
2058
+ space: "xsmall",
2059
+ "aria-label": ariaLabel,
2060
+ children: [!!(icon || inset) && /*#__PURE__*/jsx(Column$6, {
2061
+ width: "content",
2062
+ children: /*#__PURE__*/jsx(DescriptionItemIcon$1, {
2063
+ children: icon
2064
+ })
2065
+ }), /*#__PURE__*/jsx(Column$6, {
2066
+ width: "adaptive",
2067
+ children: /*#__PURE__*/jsxs(Inline$2, {
2068
+ space: "xxsmall",
2069
+ noWrap: !wrap,
2070
+ children: [!!label && /*#__PURE__*/jsx(TextBox$1, {
2071
+ as: "label",
2072
+ id: labelID,
2073
+ color: "secondary",
2074
+ children: label
2075
+ }), /*#__PURE__*/jsx(TextBox$1, {
2076
+ as: "div",
2077
+ noWrap: !wrap,
2078
+ wrapOverflow: !!wrap,
2079
+ "aria-labelledby": label == null ? undefined : labelID,
2080
+ color: isEmptyChildren && label == null ? 'secondary' : 'primary',
2081
+ children: isEmptyChildren ? fallback : children
2082
+ })]
2083
+ })
2084
+ })]
2085
+ });
2086
+ });
2087
+ if (process.env.NODE_ENV !== "production") DescriptionItem$1.displayName = "DescriptionItem";
2088
+
2089
+ var _excluded$9 = ["disabled", "children", "hintText", "startIcon", "fallback", "accept", "maxSize", "maxFiles", "onDropRejected", "onDropAccepted"];
2090
+ function toBytes$1(input, unit) {
2091
+ if (unit === 'gb') return input * (1 << 30);
2092
+ if (unit === 'mb') return input * (1 << 20);
2093
+ return input * (1 << 10);
2094
+ }
2095
+ var KILOBYTE$1 = 1024;
2096
+ var BYTE_UNITS$1 = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
2097
+ function formatBytes$1(bytes) {
2098
+ if (bytes === 0) return '0 Bytes';
2099
+ var unitIndex = Math.floor(Math.log(bytes) / Math.log(KILOBYTE$1));
2100
+ var unit = BYTE_UNITS$1[unitIndex];
2101
+ return "".concat((bytes / Math.pow(KILOBYTE$1, unitIndex)).toFixed(2), " ").concat(unit);
2102
+ }
2103
+ var StyledCardButton$1 = /*#__PURE__*/styled(CardButton$1).withConfig({
2104
+ displayName: "FileDropZone__StyledCardButton",
2105
+ componentId: "SD__sc-5p1fk0-0"
2106
+ })(_ref => {
2107
+ var {
2108
+ status
2109
+ } = _ref;
2110
+ return {
2111
+ backgroundColor: status === 'active' ? Color$8.Blue50 : undefined
2112
+ };
2113
+ });
2114
+
2115
+ function UploadRejection$1(_ref2) {
2116
+ var {
2117
+ maxSize,
2118
+ rejection
2119
+ } = _ref2;
2120
+ var [error] = rejection.errors;
2121
+ if (!error) return null;
2122
+ return /*#__PURE__*/jsxs(Columns$6, {
2123
+ align: "center",
2124
+ children: [/*#__PURE__*/jsx(Column$6, {
2125
+ width: "content",
2126
+ children: /*#__PURE__*/jsx(Error$1, {})
2127
+ }), /*#__PURE__*/jsx(Column$6, {
2128
+ children: error.code === 'file-too-large' ? maxSize == null ? 'Attachment size is too large' : "Attachment size should be less than ".concat(formatBytes$1(maxSize)) : error.message
2129
+ })]
2130
+ });
2131
+ }
2132
+
2133
+ var FileDropZone$1 = /*#__PURE__*/forwardRef((props, ref) => {
2134
+ var {
2135
+ // CardButton
2136
+ disabled = false,
2137
+ children: _children = 'Upload Attachments',
2138
+ hintText = 'or Drag & Drop files',
2139
+ startIcon = /*#__PURE__*/jsx(SvgIcon$1, {
2140
+ children: /*#__PURE__*/jsx("path", {
2141
+ d: mdiUpload
2142
+ })
2143
+ }),
2144
+ fallback = /*#__PURE__*/jsx(CardButton$1, {
2145
+ ref: ref,
2146
+ disabled: true,
2147
+ startIcon: /*#__PURE__*/jsx(CircularProgress$1, {
2148
+ size: "1em",
2149
+ color: "inherit"
2150
+ }),
2151
+ children: "Loading dependencies\u2026"
2152
+ }),
2153
+ // Dropzone
2154
+ accept,
2155
+ maxSize = Infinity,
2156
+ maxFiles = Infinity,
2157
+ onDropRejected: _onDropRejected,
2158
+ onDropAccepted: _onDropAccepted
2159
+ } = props,
2160
+ dropzoneProps = _objectWithoutProperties(props, _excluded$9);
2161
+
2162
+ return /*#__PURE__*/jsx(Suspense, {
2163
+ fallback: fallback,
2164
+ children: /*#__PURE__*/jsx(Dropzone, _objectSpread(_objectSpread({}, dropzoneProps), {}, {
2165
+ accept: accept,
2166
+ maxSize: maxSize,
2167
+ maxFiles: maxFiles,
2168
+ disabled: disabled,
2169
+ onDropAccepted: files => {
2170
+ _onDropAccepted === null || _onDropAccepted === void 0 ? void 0 : _onDropAccepted(files);
2171
+ },
2172
+ onDropRejected: fileRejections => {
2173
+ _onDropRejected === null || _onDropRejected === void 0 ? void 0 : _onDropRejected(fileRejections);
2174
+ },
2175
+ children: _ref3 => {
2176
+ var {
2177
+ isDragActive,
2178
+ isDragReject,
2179
+ getRootProps,
2180
+ getInputProps,
2181
+ fileRejections: [fileRejection]
2182
+ } = _ref3;
2183
+ return /*#__PURE__*/jsxs(Fragment, {
2184
+ children: [/*#__PURE__*/jsx("input", _objectSpread({}, getInputProps())), /*#__PURE__*/jsx(StyledCardButton$1, _objectSpread(_objectSpread({}, getRootProps()), {}, {
2185
+ ref: ref,
2186
+ hint: hintText,
2187
+ disabled: disabled,
2188
+ startIcon: startIcon,
2189
+ status: isDragActive ? 'active' : isDragReject ? 'error' : 'idle',
2190
+ error: !!fileRejection && /*#__PURE__*/jsx(UploadRejection$1, {
2191
+ accept: accept,
2192
+ maxSize: maxSize,
2193
+ rejection: fileRejection
2194
+ }),
2195
+ children: _children
2196
+ }))]
2197
+ });
2198
+ }
2199
+ }))
2200
+ });
2201
+ });
2202
+ if (process.env.NODE_ENV !== "production") FileDropZone$1.displayName = "FileDropZone";
2203
+
2204
+ var FileListItemName$1 = /*#__PURE__*/styled.div.withConfig({
2205
+ displayName: "FileListItem__FileListItemName",
2206
+ componentId: "SD__sc-hxbsiy-0"
2207
+ })(["overflow:hidden;line-height:22px;white-space:nowrap;text-overflow:ellipsis;"]);
2208
+ var FileListItemProgress$1 = /*#__PURE__*/styled(CircularProgress$1).withConfig({
2209
+ displayName: "FileListItem__FileListItemProgress",
2210
+ componentId: "SD__sc-hxbsiy-1"
2211
+ })(["font-size:24px;", "{font-size:14px;}"], _ref => {
2212
+ var {
2213
+ theme
2214
+ } = _ref;
2215
+ return theme.breakpoints.up('sm');
2216
+ });
2217
+ var PdfIcon$1 = /*#__PURE__*/memo(props => /*#__PURE__*/jsx(SvgIcon$1, _objectSpread(_objectSpread({}, props), {}, {
2218
+ children: /*#__PURE__*/jsx("path", {
2219
+ d: mdiFilePdfBox
2220
+ })
2221
+ })));
2222
+ var TextBoxIcon$1 = /*#__PURE__*/memo(props => /*#__PURE__*/jsx(SvgIcon$1, _objectSpread(_objectSpread({}, props), {}, {
2223
+ children: /*#__PURE__*/jsx("path", {
2224
+ d: mdiTextBox
2225
+ })
2226
+ })));
2227
+ var PDF_FILE_PATTERN$1 = /\.pdf$/;
2228
+ var IMAGE_FILE_PATTERN$1 = /\.(gif|png|jpg|jpeg)$/;
2229
+
2230
+ function getFileType$1(name) {
2231
+ if (PDF_FILE_PATTERN$1.exec(name)) return 'pdf';
2232
+ if (IMAGE_FILE_PATTERN$1.exec(name)) return 'image';
2233
+ return 'unknown';
2234
+ }
2235
+
2236
+ var FileListItem$1 = /*#__PURE__*/forwardRef((_ref2, ref) => {
2237
+ var {
2238
+ url,
2239
+ name,
2240
+ status,
2241
+ onRetry,
2242
+ onDelete
2243
+ } = _ref2;
2244
+ var uid = useUID$3();
2245
+ var fileType = getFileType$1(name);
2246
+ var [isHoveredState, setIsHovered] = useState(false);
2247
+ var isHovered = useResponsiveValue$1(true, isHoveredState);
2248
+ return /*#__PURE__*/jsx("div", {
2249
+ ref: ref,
2250
+ onMouseOver: () => {
2251
+ setIsHovered(true);
2252
+ },
2253
+ onMouseLeave: () => {
2254
+ setIsHovered(false);
2255
+ },
2256
+ children: /*#__PURE__*/jsxs(Columns$6, {
2257
+ align: "center",
2258
+ space: "xsmall",
2259
+ children: [/*#__PURE__*/jsx(Column$6, {
2260
+ width: "content",
2261
+ children: status === 'error' ? /*#__PURE__*/jsx(Error$1, {
2262
+ color: "error",
2263
+ fontSize: "small"
2264
+ }) : fileType === 'pdf' ? /*#__PURE__*/jsx(PdfIcon$1, {
2265
+ color: "action",
2266
+ fontSize: "small"
2267
+ }) : fileType === 'image' ? /*#__PURE__*/jsx(Image$1, {
2268
+ color: "action",
2269
+ fontSize: "small"
2270
+ }) : /*#__PURE__*/jsx(TextBoxIcon$1, {
2271
+ color: "action",
2272
+ fontSize: "small"
2273
+ })
2274
+ }), /*#__PURE__*/jsx(Column$6, {
2275
+ width: "fluid",
2276
+ children: /*#__PURE__*/jsx(FileListItemName$1, {
2277
+ id: uid,
2278
+ children: !url ? name : /*#__PURE__*/jsx(Link$1, {
2279
+ href: url,
2280
+ noWrap: true,
2281
+ target: "_blank",
2282
+ rel: "noopener noreferrer",
2283
+ children: name
2284
+ })
2285
+ })
2286
+ }), status === 'error' && /*#__PURE__*/jsx(Column$6, {
2287
+ width: "content",
2288
+ children: /*#__PURE__*/jsx(Tooltip$1, {
2289
+ title: "Retry",
2290
+ children: /*#__PURE__*/jsx(IconButton$1, {
2291
+ size: "small",
2292
+ onClick: onRetry,
2293
+ children: /*#__PURE__*/jsx(Refresh$1, {
2294
+ fontSize: "small"
2295
+ })
2296
+ })
2297
+ })
2298
+ }), /*#__PURE__*/jsx(Column$6, {
2299
+ width: "content",
2300
+ children: status === 'loading' ? /*#__PURE__*/jsx(IconButton$1, {
2301
+ size: "small",
2302
+ disabled: true,
2303
+ children: /*#__PURE__*/jsx(FileListItemProgress$1, {
2304
+ size: "1em"
2305
+ })
2306
+ }) : /*#__PURE__*/jsx(Tooltip$1, {
2307
+ title: "Delete",
2308
+ children: /*#__PURE__*/jsx(IconButton$1, {
2309
+ size: "small",
2310
+ onClick: onDelete,
2311
+ children: !isHovered && status === 'success' ? /*#__PURE__*/jsx(CheckCircle$1, {
2312
+ fontSize: "small",
2313
+ htmlColor: Color$8.Green300
2314
+ }) : /*#__PURE__*/jsx(Delete$1, {
2315
+ fontSize: "small"
2316
+ })
2317
+ })
2318
+ })
2319
+ })]
2320
+ })
2321
+ });
2322
+ });
2323
+ if (process.env.NODE_ENV !== "production") FileListItem$1.displayName = "FileListItem";
2324
+
2325
+ var SidebarRoot$1 = /*#__PURE__*/styled.aside.withConfig({
2326
+ displayName: "Sidebar__SidebarRoot",
2327
+ componentId: "SD__sc-b77o22-0"
2328
+ })(["top:0;position:sticky;overflow-y:auto;overflow-x:hidden;width:240px;height:100vh;background-color:", ";border-right:1px solid ", ";"], Color$8.White, Color$8.Silver400);
2329
+ var SidebarHeader$1 = /*#__PURE__*/styled.div.withConfig({
2330
+ displayName: "Sidebar__SidebarHeader",
2331
+ componentId: "SD__sc-b77o22-1"
2332
+ })(["top:0;z-index:1;position:sticky;padding-left:24px;padding-right:24px;padding-bottom:8px;background-color:", ";"], Color$8.White);
2333
+ var SidebarTitle$1 = /*#__PURE__*/styled.div.withConfig({
2334
+ displayName: "Sidebar__SidebarTitle",
2335
+ componentId: "SD__sc-b77o22-2"
2336
+ })(["height:64px;max-height:64px;display:flex;align-items:center;"]);
2337
+ var Sidebar$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
2338
+ var {
2339
+ title,
2340
+ count,
2341
+ header,
2342
+ children,
2343
+ id: idProp
2344
+ } = _ref;
2345
+ var id = useUID$3(idProp);
2346
+ var titleID = "".concat(id, "-title");
2347
+ return /*#__PURE__*/jsxs(SidebarRoot$1, {
2348
+ id: id,
2349
+ ref: ref,
2350
+ children: [/*#__PURE__*/jsxs(SidebarHeader$1, {
2351
+ children: [/*#__PURE__*/jsx(SidebarTitle$1, {
2352
+ children: /*#__PURE__*/jsxs(Columns$6, {
2353
+ space: "xsmall",
2354
+ align: "center",
2355
+ children: [/*#__PURE__*/jsx(Column$6, {
2356
+ width: "fluid",
2357
+ children: /*#__PURE__*/jsx(TextBox$1, {
2358
+ variant: "heading-2",
2359
+ noWrap: true,
2360
+ id: titleID,
2361
+ children: title
2362
+ })
2363
+ }), !!count && /*#__PURE__*/jsx(Column$6, {
2364
+ width: "content",
2365
+ children: /*#__PURE__*/jsx(TextBox$1, {
2366
+ color: "secondary",
2367
+ children: count
2368
+ })
2369
+ })]
2370
+ })
2371
+ }), header]
2372
+ }), /*#__PURE__*/jsx("div", {
2373
+ "aria-labelledby": titleID,
2374
+ children: children
2375
+ })]
2376
+ });
2377
+ });
2378
+ if (process.env.NODE_ENV !== "production") Sidebar$1.displayName = "Sidebar";
2379
+
2380
+ var SidebarContainerRoot$1 = /*#__PURE__*/styled.div.withConfig({
2381
+ displayName: "SidebarContainer__SidebarContainerRoot",
2382
+ componentId: "SD__sc-uibj1m-0"
2383
+ })(["display:flex;height:inherit;max-height:inherit;min-height:inherit;"]);
2384
+ var SidebarContainerContent$1 = /*#__PURE__*/styled.div.withConfig({
2385
+ displayName: "SidebarContainer__SidebarContainerContent",
2386
+ componentId: "SD__sc-uibj1m-1"
2387
+ })(["height:inherit;max-height:inherit;min-height:inherit;width:calc(100% - 240px);min-width:calc(100% - 240px);max-width:calc(100% - 240px);"]);
2388
+ var SidebarContainer$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
2389
+ var {
2390
+ sidebar,
2391
+ children
2392
+ } = _ref;
2393
+ return /*#__PURE__*/jsxs(SidebarContainerRoot$1, {
2394
+ ref: ref,
2395
+ children: [sidebar, /*#__PURE__*/jsx(SidebarContainerContent$1, {
2396
+ children: children
2397
+ })]
2398
+ });
2399
+ });
2400
+ if (process.env.NODE_ENV !== "production") SidebarContainer$1.displayName = "SidebarContainer";
2401
+
2402
+ var SidebarDividerRoot$1 = /*#__PURE__*/styled.div.withConfig({
2403
+ displayName: "SidebarDivider__SidebarDividerRoot",
2404
+ componentId: "SD__sc-5lwi2i-0"
2405
+ })(["padding:20px 24px;"]);
2406
+ var SidebarDivider$1 = /*#__PURE__*/forwardRef((_, ref) => {
2407
+ return /*#__PURE__*/jsx(SidebarDividerRoot$1, {
2408
+ ref: ref,
2409
+ children: /*#__PURE__*/jsx(Divider$1, {})
2410
+ });
2411
+ });
2412
+ if (process.env.NODE_ENV !== "production") SidebarDivider$1.displayName = "SidebarDivider";
2413
+
2414
+ var context$1 = /*#__PURE__*/createContext({});
2415
+ function useSidebarMenuItemContext$1() {
2416
+ return useContext(context$1);
2417
+ }
2418
+ function SidebarMenuItemContextProvider$1(_ref) {
2419
+ var {
2420
+ children,
2421
+ hovered = false,
2422
+ disabled = false
2423
+ } = _ref;
2424
+ var ctx = useMemo(() => ({
2425
+ hovered,
2426
+ disabled
2427
+ }), [hovered, disabled]);
2428
+ return /*#__PURE__*/jsx(context$1.Provider, {
2429
+ value: ctx,
2430
+ children: children
2431
+ });
2432
+ }
2433
+
2434
+ var SidebarMenuItemRoot$1 = /*#__PURE__*/styled.div.withConfig({
2435
+ displayName: "SidebarMenuItem__SidebarMenuItemRoot",
2436
+ componentId: "SD__sc-1sb5zqa-0"
2437
+ })(_ref => {
2438
+ var {
2439
+ hasAvatar
2440
+ } = _ref;
2441
+ var height = hasAvatar ? 48 : 40;
2442
+ return css(["position:relative;& > .MuiButtonBase-root{width:100%;display:flex;justify-content:flex-start;padding-left:24px;padding-right:24px;height:", "px;max-height:", "px;&[aria-current='true']{background-color:", ";box-shadow:inset 4px 0 0 ", ";}}"], height, height, Color$8.Silver200, Color$8.Blue300);
2443
+ });
2444
+ var SidebarMenuItemBadge$1 = /*#__PURE__*/styled.div.withConfig({
2445
+ displayName: "SidebarMenuItem__SidebarMenuItemBadge",
2446
+ componentId: "SD__sc-1sb5zqa-1"
2447
+ })(["font-size:12px;line-height:16px;padding-left:4px;padding-right:4px;border-radius:100px;color:", ";background-color:", ";.MuiButtonBase-root[aria-current='true'] &{color:", ";background-color:", ";}"], Color$8.Dark500, Color$8.Silver300, Color$8.White, Color$8.Dark450);
2448
+ var SidebarMenuItemSecondaryAction$1 = /*#__PURE__*/styled.div.withConfig({
2449
+ displayName: "SidebarMenuItem__SidebarMenuItemSecondaryAction",
2450
+ componentId: "SD__sc-1sb5zqa-2"
2451
+ })(["top:50%;right:24px;position:absolute;transform:translate3d(0,-50%,0);"]);
2452
+ var SidebarMenuItem$1 = /*#__PURE__*/forwardRef((_ref2, ref) => {
2453
+ var {
2454
+ action,
2455
+ avatar,
2456
+ onClick,
2457
+ external,
2458
+ children,
2459
+ disabled,
2460
+ selected,
2461
+ secondaryActions,
2462
+ badge: badgeProp
2463
+ } = _ref2;
2464
+ var [hovered, setHovered] = useState(false);
2465
+ var actionsRef = useRef(null);
2466
+ var actionsPlaceholderRef = useRef(null);
2467
+ useLayoutEffect(() => {
2468
+ if (actionsRef.current && actionsPlaceholderRef.current) {
2469
+ actionsPlaceholderRef.current.style.width = "".concat(Math.max(0, actionsRef.current.offsetWidth - 8), "px");
2470
+ }
2471
+ });
2472
+ var badge = !badgeProp || !Number.isFinite(badgeProp) ? null : badgeProp > 999 ? '999+' : badgeProp;
2473
+ return /*#__PURE__*/jsxs(SidebarMenuItemRoot$1, {
2474
+ ref: ref,
2475
+ hasAvatar: !!avatar,
2476
+ onMouseEnter: () => {
2477
+ setHovered(true);
2478
+ },
2479
+ onMouseLeave: () => {
2480
+ setHovered(false);
2481
+ },
2482
+ children: [/*#__PURE__*/jsx(ButtonBase$1, {
2483
+ onClick: onClick,
2484
+ disabled: disabled,
2485
+ "aria-current": selected,
2486
+ children: /*#__PURE__*/jsxs(Columns$6, {
2487
+ align: "center",
2488
+ space: "xsmall",
2489
+ children: [/*#__PURE__*/jsx(Column$6, {
2490
+ children: /*#__PURE__*/jsx(Columns$6, {
2491
+ align: "center",
2492
+ space: "xsmall",
2493
+ children: /*#__PURE__*/jsx(Column$6, {
2494
+ width: "fluid",
2495
+ children: /*#__PURE__*/jsxs(Columns$6, {
2496
+ align: "center",
2497
+ space: "xsmall",
2498
+ children: [!!avatar && /*#__PURE__*/jsx(SidebarMenuItemContextProvider$1, {
2499
+ hovered: hovered,
2500
+ disabled: disabled,
2501
+ children: /*#__PURE__*/jsx(Column$6, {
2502
+ width: "content",
2503
+ children: avatar
2504
+ })
2505
+ }), /*#__PURE__*/jsx(Column$6, {
2506
+ width: "adaptive",
2507
+ children: /*#__PURE__*/jsx(TextBox$1, {
2508
+ variant: selected ? 'body-semibold' : 'body',
2509
+ noWrap: true,
2510
+ children: children
2511
+ })
2512
+ }), external && /*#__PURE__*/jsx(Column$6, {
2513
+ width: "content",
2514
+ children: /*#__PURE__*/jsx(OpenInNew$1, {
2515
+ color: "action",
2516
+ fontSize: "small"
2517
+ })
2518
+ })]
2519
+ })
2520
+ })
2521
+ })
2522
+ }), !!badge && /*#__PURE__*/jsx(Column$6, {
2523
+ width: "content",
2524
+ children: /*#__PURE__*/jsx(SidebarMenuItemBadge$1, {
2525
+ children: badge
2526
+ })
2527
+ }), (!!action || !!secondaryActions) && /*#__PURE__*/jsx(Column$6, {
2528
+ width: "content",
2529
+ children: /*#__PURE__*/jsx("div", {
2530
+ ref: actionsPlaceholderRef
2531
+ })
2532
+ })]
2533
+ })
2534
+ }), (!!action || !!secondaryActions) && /*#__PURE__*/jsx(SidebarMenuItemSecondaryAction$1, {
2535
+ ref: actionsRef,
2536
+ children: /*#__PURE__*/jsxs(Inline$2, {
2537
+ children: [hovered && secondaryActions, action]
2538
+ })
2539
+ })]
2540
+ });
2541
+ });
2542
+ if (process.env.NODE_ENV !== "production") SidebarMenuItem$1.displayName = "SidebarMenuItem";
2543
+
2544
+ var SidebarMenuItemActionRoot$1 = /*#__PURE__*/styled(IconButton$1).withConfig({
2545
+ displayName: "SidebarMenuItemAction__SidebarMenuItemActionRoot",
2546
+ componentId: "SD__sc-1n50gmv-0"
2547
+ })(["& .MuiSvgIcon-root{font-size:16px;}"]);
2548
+ var SidebarMenuItemAction$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
2549
+ var {
2550
+ title,
2551
+ placement,
2552
+ children
2553
+ } = _ref;
2554
+ return /*#__PURE__*/jsx(Tooltip$1, {
2555
+ title: title,
2556
+ placement: placement,
2557
+ children: /*#__PURE__*/jsx(SidebarMenuItemActionRoot$1, {
2558
+ ref: ref,
2559
+ size: "small",
2560
+ edge: "end",
2561
+ children: children
2562
+ })
2563
+ });
2564
+ });
2565
+ if (process.env.NODE_ENV !== "production") SidebarMenuItemAction$1.displayName = "SidebarMenuItemAction";
2566
+
2567
+ function stopPropagation$1(event) {
2568
+ event.stopPropagation();
2569
+ }
2570
+
2571
+ var SidebarMenuItemAvatarCheckbox$1 = /*#__PURE__*/styled.div.withConfig({
2572
+ displayName: "SidebarMenuItemAvatar__SidebarMenuItemAvatarCheckbox",
2573
+ componentId: "SD__sc-17mkvc7-0"
2574
+ })(["margin:-5px;"]);
2575
+ var SidebarMenuItemAvatar$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
2576
+ var {
2577
+ children,
2578
+ value,
2579
+ onChange: _onChange
2580
+ } = _ref;
2581
+ var {
2582
+ hovered,
2583
+ disabled
2584
+ } = useSidebarMenuItemContext$1();
2585
+ var initials = useMemo(() => {
2586
+ var matches = children.match(/\b\w/g) || [];
2587
+ var first = matches.shift() || '';
2588
+ var last = matches.pop() || '';
2589
+ return (first + last).toUpperCase();
2590
+ }, [children]);
2591
+
2592
+ if (value === true || hovered && value != null) {
2593
+ return /*#__PURE__*/jsx(SidebarMenuItemAvatarCheckbox$1, {
2594
+ children: /*#__PURE__*/jsx(Checkbox$1, {
2595
+ color: "primary",
2596
+ checked: value,
2597
+ disabled: disabled,
2598
+ onMouseDown: stopPropagation$1,
2599
+ onTouchStart: stopPropagation$1,
2600
+ onChange: (_, checked) => {
2601
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange(checked);
2602
+ }
2603
+ })
2604
+ });
2605
+ }
2606
+
2607
+ return /*#__PURE__*/jsx(Avatar$1, {
2608
+ ref: ref,
2609
+ "aria-hidden": true,
2610
+ children: initials
2611
+ });
2612
+ });
2613
+ if (process.env.NODE_ENV !== "production") SidebarMenuItemAvatar$1.displayName = "SidebarMenuItemAvatar";
2614
+
2615
+ var SidebarSubheaderRoot$1 = /*#__PURE__*/styled.div.withConfig({
2616
+ displayName: "SidebarSubheader__SidebarSubheaderRoot",
2617
+ componentId: "SD__sc-1r0xx76-0"
2618
+ })(["display:flex;align-items:center;height:40px;max-height:40px;padding-left:24px;padding-right:24px;"]);
2619
+ var SidebarSubheader$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
2620
+ var {
2621
+ id,
2622
+ action,
2623
+ children
2624
+ } = _ref;
2625
+ return /*#__PURE__*/jsx(SidebarSubheaderRoot$1, {
2626
+ ref: ref,
2627
+ children: /*#__PURE__*/jsxs(Columns$6, {
2628
+ space: "xsmall",
2629
+ align: "center",
2630
+ children: [/*#__PURE__*/jsx(Column$6, {
2631
+ children: /*#__PURE__*/jsx(TextBox$1, {
2632
+ id: id,
2633
+ variant: "heading-6",
2634
+ color: "secondary",
2635
+ noWrap: true,
2636
+ children: children
2637
+ })
2638
+ }), !!action && /*#__PURE__*/jsx(Column$6, {
2639
+ width: "content",
2640
+ children: action
2641
+ })]
2642
+ })
2643
+ });
2644
+ });
2645
+ if (process.env.NODE_ENV !== "production") SidebarSubheader$1.displayName = "SidebarSubheader";
2646
+
2647
+ export { Alert$1 as Alert, AnchorButton$1 as AnchorButton, Banner$1 as Banner, Box$1 as Box, Button$1 as Button, ButtonArea$1 as ButtonArea, DescriptionItem$1 as DescriptionItem, FileDropZone$1 as FileDropZone, FileListItem$1 as FileListItem, Sidebar$1 as Sidebar, SidebarContainer$1 as SidebarContainer, SidebarDivider$1 as SidebarDivider, SidebarMenuItem$1 as SidebarMenuItem, SidebarMenuItemAction$1 as SidebarMenuItemAction, SidebarMenuItemAvatar$1 as SidebarMenuItemAvatar, SidebarSubheader$1 as SidebarSubheader, TextBox$1 as TextBox, formatBytes$1 as formatBytes, toBytes$1 as toBytes, index as v5 };
1234
2648
  //# sourceMappingURL=index.js.map