@superdispatch/ui-lab 0.15.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,24 +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';
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
4
  import { forwardRef, useState, useEffect, Suspense, memo, useContext, createContext, useMemo, useRef, useLayoutEffect } from 'react';
5
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
9
  import { CSSTransition } from 'react-transition-group';
10
- import { ButtonBase, Typography, CircularProgress, SvgIcon, Link, Tooltip, IconButton, Divider, Checkbox, Avatar } from '@material-ui/core';
10
+ import { ButtonBase, Typography, CircularProgress, SvgIcon, Link, Tooltip, IconButton, Divider, Checkbox, Avatar } from '@mui/material';
11
11
  import { mdiUpload, mdiFilePdfBox, mdiTextBox } from '@mdi/js';
12
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';
13
16
 
14
17
  function colorMixin(textColor, backgroundColor, buttonHoverColor) {
15
18
  return css(["color:", ";background-color:", ";& .MuiAlert-icon{color:", ";}& .MuiAlert-action{& .MuiIconButton-root{&:hover,&:active{color:", ";}}}"], textColor, backgroundColor, textColor, buttonHoverColor);
16
19
  }
17
20
 
18
- var StyledAlert = /*#__PURE__*/styled(Alert$1).withConfig({
21
+ var StyledAlert = /*#__PURE__*/styled(Alert$2).withConfig({
19
22
  displayName: "Alert__StyledAlert",
20
- componentId: "SD__sc-1j6qebb-0"
21
- })(["&.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));
22
25
 
23
26
  function toMaterialSeverity(severity) {
24
27
  return severity === 'info' ? 'info' : severity === 'caution' ? 'warning' : severity === 'critical' ? 'error' : 'success';
@@ -52,11 +55,11 @@ var _excluded = ["children"],
52
55
  _excluded2 = ["in"];
53
56
 
54
57
  function enterMixin(border) {
55
- return css(["min-height:56px;color:", ";background-color:", ";border-", ":1px #dfe3e8 solid;"], Color.Dark500, Color.White, border);
58
+ return css(["min-height:56px;color:", ";background-color:", ";border-", ":1px #dfe3e8 solid;"], Color$8.Dark500, Color$8.White, border);
56
59
  }
57
60
 
58
61
  function enterAnimation(border) {
59
- 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.White, Color.Dark500, Color.White, Color.Dark500, Color.White, Color.Dark500, enterMixin(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));
60
63
  }
61
64
 
62
65
  var CustomTransition = /*#__PURE__*/forwardRef((_ref, ref) => {
@@ -77,12 +80,12 @@ var CustomTransition = /*#__PURE__*/forwardRef((_ref, ref) => {
77
80
  if (process.env.NODE_ENV !== "production") CustomTransition.displayName = "CustomTransition";
78
81
  var BannerContent = /*#__PURE__*/styled(CustomTransition).withConfig({
79
82
  displayName: "Banner__BannerContent",
80
- componentId: "SD__sc-9kw31n-0"
83
+ componentId: "SD__sc-1y16295-0"
81
84
  })(_ref2 => {
82
85
  var {
83
86
  border = 'bottom'
84
87
  } = _ref2;
85
- 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.White, Color.White, enterAnimation(border), enterMixin(border), enterMixin(border));
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));
86
89
  });
87
90
  var Banner = /*#__PURE__*/forwardRef((_ref3, ref) => {
88
91
  var {
@@ -120,9 +123,16 @@ function createRuleNormalizer(rules) {
120
123
  };
121
124
  }
122
125
 
126
+ var {
127
+ Color,
128
+ isColorProp,
129
+ parseResponsiveProp,
130
+ parseSpaceProp
131
+ } = v5;
132
+
133
+ //
123
134
  // Colors
124
135
  //
125
-
126
136
  function normalizeColor(input) {
127
137
  return isColorProp(input) ? Color[input] : undefined;
128
138
  } //
@@ -231,7 +241,7 @@ function injectRule(styles, key, breakpoint, value, normalizer) {
231
241
 
232
242
  var Box = /*#__PURE__*/styled.div.withConfig({
233
243
  displayName: "Box",
234
- componentId: "SD__sc-1bc600y-0"
244
+ componentId: "SD__sc-1cy411s-0"
235
245
  })(props => {
236
246
  var {
237
247
  breakpoints
@@ -265,10 +275,14 @@ var Box = /*#__PURE__*/styled.div.withConfig({
265
275
  });
266
276
 
267
277
  var _excluded$1 = ["icon", "children", "variant", "active", "disabled", "fullWidth"];
278
+ var {
279
+ Color: Color$1,
280
+ Stack
281
+ } = v5;
268
282
  var ButtonRoot = /*#__PURE__*/styled(ButtonBase).withConfig({
269
283
  displayName: "ButtonArea__ButtonRoot",
270
- componentId: "SD__sc-1czum63-0"
271
- })(["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);
272
286
  var ButtonArea = /*#__PURE__*/forwardRef((_ref, ref) => {
273
287
  var {
274
288
  icon,
@@ -315,14 +329,14 @@ function createButtonVariables(size, _ref) {
315
329
  paddingY = size === 'large' ? 8 : size === 'small' ? 2 : 6,
316
330
  paddingXMobile = size === 'large' ? 64 : 24,
317
331
  paddingYMobile = size === 'large' ? 14 : size === 'small' ? 4 : 10,
318
- textColor = Color.Transparent,
332
+ textColor = Color$8.Transparent,
319
333
  textColorHovered = textColor,
320
334
  textColorDisabled = textColor,
321
- outlineColor = Color.Transparent,
322
- borderColor = Color.Transparent,
335
+ outlineColor = Color$8.Transparent,
336
+ borderColor = Color$8.Transparent,
323
337
  borderColorHovered = borderColor,
324
338
  borderColorDisabled = borderColor,
325
- backgroundColor = Color.Transparent,
339
+ backgroundColor = Color$8.Transparent,
326
340
  backgroundColorHovered = backgroundColor,
327
341
  backgroundColorActive = backgroundColorHovered,
328
342
  backgroundColorDisabled = backgroundColor
@@ -352,13 +366,13 @@ function createButtonVariables(size, _ref) {
352
366
 
353
367
  function getDefaultVariables(size) {
354
368
  return createButtonVariables(size, {
355
- textColor: Color.White,
356
- outlineColor: Color.Blue100,
357
- backgroundColor: Color.Blue300,
358
- textColorHovered: Color.White,
359
- backgroundColorHovered: Color.Blue500,
360
- backgroundColorActive: Color.Blue400,
361
- 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
362
376
  });
363
377
  }
364
378
 
@@ -368,59 +382,59 @@ function getPrimaryVariables(size) {
368
382
 
369
383
  function getNeutralVariables(size) {
370
384
  return createButtonVariables(size, {
371
- textColor: Color.Dark500,
372
- borderColor: Color.Silver500,
373
- outlineColor: Color.Blue100,
374
- backgroundColor: Color.White,
375
- textColorHovered: Color.Blue300,
376
- borderColorHovered: Color.Blue300,
377
- backgroundColorHovered: Color.Blue50,
378
- backgroundColorActive: Color.Blue75,
379
- 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
380
394
  });
381
395
  }
382
396
 
383
397
  function getCriticalVariables(size) {
384
398
  return createButtonVariables(size, {
385
- textColor: Color.Red300,
386
- borderColor: Color.Red300,
387
- outlineColor: Color.Red75,
388
- backgroundColor: Color.Red50,
389
- backgroundColorHovered: Color.Red75,
390
- backgroundColorActive: Color.Red100,
391
- textColorDisabled: Color.Red100,
392
- borderColorDisabled: Color.Red100,
393
- 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
394
408
  });
395
409
  }
396
410
 
397
411
  function getTextVariables(size) {
398
412
  return createButtonVariables(size, {
399
- textColor: Color.Blue400,
400
- outlineColor: Color.Blue100,
401
- textColorHovered: Color.Blue500,
402
- backgroundColorHovered: Color.Blue50,
403
- backgroundColorActive: Color.Blue75,
404
- 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
405
419
  });
406
420
  }
407
421
 
408
422
  function getInvertedVariables(size) {
409
423
  return createButtonVariables(size, {
410
- textColor: Color.White,
411
- outlineColor: Color.White40,
412
- backgroundColor: Color.White20,
413
- textColorHovered: Color.White,
414
- backgroundColorHovered: Color.White40,
415
- backgroundColorActive: Color.White20,
416
- textColorDisabled: Color.White50,
417
- 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
418
432
  });
419
433
  }
420
434
 
421
435
  var ButtonRoot$1 = /*#__PURE__*/styled.button.withConfig({
422
436
  displayName: "Button__ButtonRoot",
423
- componentId: "SD__sc-1pwdpe3-0"
437
+ componentId: "SD__sc-1yjd62w-0"
424
438
  })(_ref2 => {
425
439
  var {
426
440
  size,
@@ -429,23 +443,23 @@ var ButtonRoot$1 = /*#__PURE__*/styled.button.withConfig({
429
443
  fullWidth
430
444
  } = _ref2;
431
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);
432
- 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']));
433
447
  });
434
448
  var ButtonLabel = /*#__PURE__*/styled.span.withConfig({
435
449
  displayName: "Button__ButtonLabel",
436
- componentId: "SD__sc-1pwdpe3-1"
450
+ componentId: "SD__sc-1yjd62w-1"
437
451
  })(["display:inherit;align-items:inherit;justify-content:inherit;visibility:var(--button-visibility);--mui-svg-icon-size:var(--button-line-height);"]);
438
452
  var ButtonStartIcon = /*#__PURE__*/styled.span.withConfig({
439
453
  displayName: "Button__ButtonStartIcon",
440
- componentId: "SD__sc-1pwdpe3-2"
454
+ componentId: "SD__sc-1yjd62w-2"
441
455
  })(["margin-right:4px;"]);
442
456
  var ButtonEndIcon = /*#__PURE__*/styled.span.withConfig({
443
457
  displayName: "Button__ButtonEndIcon",
444
- componentId: "SD__sc-1pwdpe3-3"
458
+ componentId: "SD__sc-1yjd62w-3"
445
459
  })(["margin-left:4px;"]);
446
460
  var ButtonPendingIndicator = /*#__PURE__*/styled.span.withConfig({
447
461
  displayName: "Button__ButtonPendingIndicator",
448
- componentId: "SD__sc-1pwdpe3-4"
462
+ componentId: "SD__sc-1yjd62w-4"
449
463
  })(["left:50%;display:flex;position:absolute;visibility:visible;transform:translate(-50%);"]);
450
464
 
451
465
  function useButtonProps(_ref3) {
@@ -547,17 +561,21 @@ function mergeStyles(styles) {
547
561
  }
548
562
 
549
563
  var _excluded$3 = ["variant", "as", "align", "color", "display", "noWrap", "wrapOverflow"];
564
+ var {
565
+ Color: Color$2,
566
+ parseResponsiveProp: parseResponsiveProp$1
567
+ } = v5;
550
568
  var normalizeTextColor = /*#__PURE__*/createRuleNormalizer({
551
569
  inherit: 'inherit',
552
- primary: Color.Dark500,
553
- secondary: Color.Dark200,
554
- white: Color.White,
555
- blue: Color.Blue300,
556
- green: Color.Green300,
557
- purple: Color.Purple500,
558
- red: Color.Red300,
559
- teal: Color.Teal300,
560
- yellow: Color.Yellow300
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
561
579
  });
562
580
  var VARIANT_TYPE_MAPPING = {
563
581
  'heading-1': 'h1',
@@ -625,7 +643,7 @@ function textBoxMixin(noWrap, align, color, display, wrapOverflow) {
625
643
 
626
644
  var TextBoxRoot = /*#__PURE__*/styled.span.withConfig({
627
645
  displayName: "TextBox__TextBoxRoot",
628
- componentId: "SD__sc-9mywck-0"
646
+ componentId: "SD__sc-1geakdj-0"
629
647
  })(_ref2 => {
630
648
  var {
631
649
  theme,
@@ -650,11 +668,11 @@ var TextBox = /*#__PURE__*/forwardRef((_ref3, ref) => {
650
668
  } = _ref3,
651
669
  props = _objectWithoutProperties(_ref3, _excluded$3);
652
670
 
653
- var $align = parseResponsiveProp(align);
654
- var $color = parseResponsiveProp(color);
655
- var $noWrap = parseResponsiveProp(noWrap);
656
- var $display = parseResponsiveProp(display);
657
- 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);
658
676
  return /*#__PURE__*/jsx(TextBoxRoot, _objectSpread(_objectSpread({}, props), {}, {
659
677
  as: as,
660
678
  ref: ref,
@@ -668,18 +686,27 @@ var TextBox = /*#__PURE__*/forwardRef((_ref3, ref) => {
668
686
  });
669
687
  if (process.env.NODE_ENV !== "production") TextBox.displayName = "TextBox";
670
688
 
689
+ var {
690
+ Color: Color$3,
691
+ Column,
692
+ Columns,
693
+ Inline,
694
+ isEmptyReactNode,
695
+ useUID
696
+ } = v5;
697
+
671
698
  function descriptionItemIconMixin(size) {
672
699
  return css(["width:", "px;height:", "px;& > .MuiSvgIcon-root{font-size:", "px;}"], size, size + 4, size);
673
700
  }
674
701
 
675
702
  var DescriptionItemIcon = /*#__PURE__*/styled.div.withConfig({
676
703
  displayName: "DescriptionItem__DescriptionItemIcon",
677
- componentId: "SD__sc-1906hic-0"
704
+ componentId: "SD__sc-l1c918-0"
678
705
  })(_ref => {
679
706
  var {
680
707
  theme
681
708
  } = _ref;
682
- 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));
683
710
  });
684
711
  var DescriptionItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
685
712
  var {
@@ -730,6 +757,12 @@ var DescriptionItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
730
757
  if (process.env.NODE_ENV !== "production") DescriptionItem.displayName = "DescriptionItem";
731
758
 
732
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;
733
766
  function toBytes(input, unit) {
734
767
  if (unit === 'gb') return input * (1 << 30);
735
768
  if (unit === 'mb') return input * (1 << 20);
@@ -745,13 +778,13 @@ function formatBytes(bytes) {
745
778
  }
746
779
  var StyledCardButton = /*#__PURE__*/styled(CardButton).withConfig({
747
780
  displayName: "FileDropZone__StyledCardButton",
748
- componentId: "SD__sc-5p1fk0-0"
781
+ componentId: "SD__sc-neqvyq-0"
749
782
  })(_ref => {
750
783
  var {
751
784
  status
752
785
  } = _ref;
753
786
  return {
754
- backgroundColor: status === 'active' ? Color.Blue50 : undefined
787
+ backgroundColor: status === 'active' ? Color$4.Blue50 : undefined
755
788
  };
756
789
  });
757
790
 
@@ -762,12 +795,12 @@ function UploadRejection(_ref2) {
762
795
  } = _ref2;
763
796
  var [error] = rejection.errors;
764
797
  if (!error) return null;
765
- return /*#__PURE__*/jsxs(Columns, {
798
+ return /*#__PURE__*/jsxs(Columns$1, {
766
799
  align: "center",
767
- children: [/*#__PURE__*/jsx(Column, {
800
+ children: [/*#__PURE__*/jsx(Column$1, {
768
801
  width: "content",
769
802
  children: /*#__PURE__*/jsx(Error, {})
770
- }), /*#__PURE__*/jsx(Column, {
803
+ }), /*#__PURE__*/jsx(Column$1, {
771
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
772
805
  })]
773
806
  });
@@ -844,13 +877,20 @@ var FileDropZone = /*#__PURE__*/forwardRef((props, ref) => {
844
877
  });
845
878
  if (process.env.NODE_ENV !== "production") FileDropZone.displayName = "FileDropZone";
846
879
 
880
+ var {
881
+ Color: Color$5,
882
+ Column: Column$2,
883
+ Columns: Columns$2,
884
+ useResponsiveValue,
885
+ useUID: useUID$1
886
+ } = v5;
847
887
  var FileListItemName = /*#__PURE__*/styled.div.withConfig({
848
888
  displayName: "FileListItem__FileListItemName",
849
- componentId: "SD__sc-hxbsiy-0"
889
+ componentId: "SD__sc-1pro30e-0"
850
890
  })(["overflow:hidden;line-height:22px;white-space:nowrap;text-overflow:ellipsis;"]);
851
891
  var FileListItemProgress = /*#__PURE__*/styled(CircularProgress).withConfig({
852
892
  displayName: "FileListItem__FileListItemProgress",
853
- componentId: "SD__sc-hxbsiy-1"
893
+ componentId: "SD__sc-1pro30e-1"
854
894
  })(["font-size:24px;", "{font-size:14px;}"], _ref => {
855
895
  var {
856
896
  theme
@@ -884,7 +924,7 @@ var FileListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
884
924
  onRetry,
885
925
  onDelete
886
926
  } = _ref2;
887
- var uid = useUID();
927
+ var uid = useUID$1();
888
928
  var fileType = getFileType(name);
889
929
  var [isHoveredState, setIsHovered] = useState(false);
890
930
  var isHovered = useResponsiveValue(true, isHoveredState);
@@ -896,10 +936,10 @@ var FileListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
896
936
  onMouseLeave: () => {
897
937
  setIsHovered(false);
898
938
  },
899
- children: /*#__PURE__*/jsxs(Columns, {
939
+ children: /*#__PURE__*/jsxs(Columns$2, {
900
940
  align: "center",
901
941
  space: "xsmall",
902
- children: [/*#__PURE__*/jsx(Column, {
942
+ children: [/*#__PURE__*/jsx(Column$2, {
903
943
  width: "content",
904
944
  children: status === 'error' ? /*#__PURE__*/jsx(Error, {
905
945
  color: "error",
@@ -914,7 +954,7 @@ var FileListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
914
954
  color: "action",
915
955
  fontSize: "small"
916
956
  })
917
- }), /*#__PURE__*/jsx(Column, {
957
+ }), /*#__PURE__*/jsx(Column$2, {
918
958
  width: "fluid",
919
959
  children: /*#__PURE__*/jsx(FileListItemName, {
920
960
  id: uid,
@@ -926,7 +966,7 @@ var FileListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
926
966
  children: name
927
967
  })
928
968
  })
929
- }), status === 'error' && /*#__PURE__*/jsx(Column, {
969
+ }), status === 'error' && /*#__PURE__*/jsx(Column$2, {
930
970
  width: "content",
931
971
  children: /*#__PURE__*/jsx(Tooltip, {
932
972
  title: "Retry",
@@ -938,7 +978,7 @@ var FileListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
938
978
  })
939
979
  })
940
980
  })
941
- }), /*#__PURE__*/jsx(Column, {
981
+ }), /*#__PURE__*/jsx(Column$2, {
942
982
  width: "content",
943
983
  children: status === 'loading' ? /*#__PURE__*/jsx(IconButton, {
944
984
  size: "small",
@@ -953,7 +993,7 @@ var FileListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
953
993
  onClick: onDelete,
954
994
  children: !isHovered && status === 'success' ? /*#__PURE__*/jsx(CheckCircle, {
955
995
  fontSize: "small",
956
- htmlColor: Color.Green300
996
+ htmlColor: Color$5.Green300
957
997
  }) : /*#__PURE__*/jsx(Delete, {
958
998
  fontSize: "small"
959
999
  })
@@ -965,17 +1005,23 @@ var FileListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
965
1005
  });
966
1006
  if (process.env.NODE_ENV !== "production") FileListItem.displayName = "FileListItem";
967
1007
 
1008
+ var {
1009
+ Color: Color$6,
1010
+ Column: Column$3,
1011
+ Columns: Columns$3,
1012
+ useUID: useUID$2
1013
+ } = v5;
968
1014
  var SidebarRoot = /*#__PURE__*/styled.aside.withConfig({
969
1015
  displayName: "Sidebar__SidebarRoot",
970
- componentId: "SD__sc-b77o22-0"
971
- })(["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);
972
1018
  var SidebarHeader = /*#__PURE__*/styled.div.withConfig({
973
1019
  displayName: "Sidebar__SidebarHeader",
974
- componentId: "SD__sc-b77o22-1"
975
- })(["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);
976
1022
  var SidebarTitle = /*#__PURE__*/styled.div.withConfig({
977
1023
  displayName: "Sidebar__SidebarTitle",
978
- componentId: "SD__sc-b77o22-2"
1024
+ componentId: "SD__sc-14hfb05-2"
979
1025
  })(["height:64px;max-height:64px;display:flex;align-items:center;"]);
980
1026
  var Sidebar = /*#__PURE__*/forwardRef((_ref, ref) => {
981
1027
  var {
@@ -985,17 +1031,17 @@ var Sidebar = /*#__PURE__*/forwardRef((_ref, ref) => {
985
1031
  children,
986
1032
  id: idProp
987
1033
  } = _ref;
988
- var id = useUID(idProp);
1034
+ var id = useUID$2(idProp);
989
1035
  var titleID = "".concat(id, "-title");
990
1036
  return /*#__PURE__*/jsxs(SidebarRoot, {
991
1037
  id: id,
992
1038
  ref: ref,
993
1039
  children: [/*#__PURE__*/jsxs(SidebarHeader, {
994
1040
  children: [/*#__PURE__*/jsx(SidebarTitle, {
995
- children: /*#__PURE__*/jsxs(Columns, {
1041
+ children: /*#__PURE__*/jsxs(Columns$3, {
996
1042
  space: "xsmall",
997
1043
  align: "center",
998
- children: [/*#__PURE__*/jsx(Column, {
1044
+ children: [/*#__PURE__*/jsx(Column$3, {
999
1045
  width: "fluid",
1000
1046
  children: /*#__PURE__*/jsx(TextBox, {
1001
1047
  variant: "heading-2",
@@ -1003,7 +1049,7 @@ var Sidebar = /*#__PURE__*/forwardRef((_ref, ref) => {
1003
1049
  id: titleID,
1004
1050
  children: title
1005
1051
  })
1006
- }), !!count && /*#__PURE__*/jsx(Column, {
1052
+ }), !!count && /*#__PURE__*/jsx(Column$3, {
1007
1053
  width: "content",
1008
1054
  children: /*#__PURE__*/jsx(TextBox, {
1009
1055
  color: "secondary",
@@ -1022,11 +1068,11 @@ if (process.env.NODE_ENV !== "production") Sidebar.displayName = "Sidebar";
1022
1068
 
1023
1069
  var SidebarContainerRoot = /*#__PURE__*/styled.div.withConfig({
1024
1070
  displayName: "SidebarContainer__SidebarContainerRoot",
1025
- componentId: "SD__sc-uibj1m-0"
1071
+ componentId: "SD__sc-6u6mqe-0"
1026
1072
  })(["display:flex;height:inherit;max-height:inherit;min-height:inherit;"]);
1027
1073
  var SidebarContainerContent = /*#__PURE__*/styled.div.withConfig({
1028
1074
  displayName: "SidebarContainer__SidebarContainerContent",
1029
- componentId: "SD__sc-uibj1m-1"
1075
+ componentId: "SD__sc-6u6mqe-1"
1030
1076
  })(["height:inherit;max-height:inherit;min-height:inherit;width:calc(100% - 240px);min-width:calc(100% - 240px);max-width:calc(100% - 240px);"]);
1031
1077
  var SidebarContainer = /*#__PURE__*/forwardRef((_ref, ref) => {
1032
1078
  var {
@@ -1044,7 +1090,7 @@ if (process.env.NODE_ENV !== "production") SidebarContainer.displayName = "Sideb
1044
1090
 
1045
1091
  var SidebarDividerRoot = /*#__PURE__*/styled.div.withConfig({
1046
1092
  displayName: "SidebarDivider__SidebarDividerRoot",
1047
- componentId: "SD__sc-5lwi2i-0"
1093
+ componentId: "SD__sc-182lunj-0"
1048
1094
  })(["padding:20px 24px;"]);
1049
1095
  var SidebarDivider = /*#__PURE__*/forwardRef((_, ref) => {
1050
1096
  return /*#__PURE__*/jsx(SidebarDividerRoot, {
@@ -1074,23 +1120,29 @@ function SidebarMenuItemContextProvider(_ref) {
1074
1120
  });
1075
1121
  }
1076
1122
 
1123
+ var {
1124
+ Color: Color$7,
1125
+ Column: Column$4,
1126
+ Columns: Columns$4,
1127
+ Inline: Inline$1
1128
+ } = v5;
1077
1129
  var SidebarMenuItemRoot = /*#__PURE__*/styled.div.withConfig({
1078
1130
  displayName: "SidebarMenuItem__SidebarMenuItemRoot",
1079
- componentId: "SD__sc-1sb5zqa-0"
1131
+ componentId: "SD__sc-1srwx2n-0"
1080
1132
  })(_ref => {
1081
1133
  var {
1082
1134
  hasAvatar
1083
1135
  } = _ref;
1084
1136
  var height = hasAvatar ? 48 : 40;
1085
- 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);
1086
1138
  });
1087
1139
  var SidebarMenuItemBadge = /*#__PURE__*/styled.div.withConfig({
1088
1140
  displayName: "SidebarMenuItem__SidebarMenuItemBadge",
1089
- componentId: "SD__sc-1sb5zqa-1"
1090
- })(["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);
1091
1143
  var SidebarMenuItemSecondaryAction = /*#__PURE__*/styled.div.withConfig({
1092
1144
  displayName: "SidebarMenuItem__SidebarMenuItemSecondaryAction",
1093
- componentId: "SD__sc-1sb5zqa-2"
1145
+ componentId: "SD__sc-1srwx2n-2"
1094
1146
  })(["top:50%;right:24px;position:absolute;transform:translate3d(0,-50%,0);"]);
1095
1147
  var SidebarMenuItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
1096
1148
  var {
@@ -1126,33 +1178,33 @@ var SidebarMenuItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
1126
1178
  onClick: onClick,
1127
1179
  disabled: disabled,
1128
1180
  "aria-current": selected,
1129
- children: /*#__PURE__*/jsxs(Columns, {
1181
+ children: /*#__PURE__*/jsxs(Columns$4, {
1130
1182
  align: "center",
1131
1183
  space: "xsmall",
1132
- children: [/*#__PURE__*/jsx(Column, {
1133
- children: /*#__PURE__*/jsx(Columns, {
1184
+ children: [/*#__PURE__*/jsx(Column$4, {
1185
+ children: /*#__PURE__*/jsx(Columns$4, {
1134
1186
  align: "center",
1135
1187
  space: "xsmall",
1136
- children: /*#__PURE__*/jsx(Column, {
1188
+ children: /*#__PURE__*/jsx(Column$4, {
1137
1189
  width: "fluid",
1138
- children: /*#__PURE__*/jsxs(Columns, {
1190
+ children: /*#__PURE__*/jsxs(Columns$4, {
1139
1191
  align: "center",
1140
1192
  space: "xsmall",
1141
1193
  children: [!!avatar && /*#__PURE__*/jsx(SidebarMenuItemContextProvider, {
1142
1194
  hovered: hovered,
1143
1195
  disabled: disabled,
1144
- children: /*#__PURE__*/jsx(Column, {
1196
+ children: /*#__PURE__*/jsx(Column$4, {
1145
1197
  width: "content",
1146
1198
  children: avatar
1147
1199
  })
1148
- }), /*#__PURE__*/jsx(Column, {
1200
+ }), /*#__PURE__*/jsx(Column$4, {
1149
1201
  width: "adaptive",
1150
1202
  children: /*#__PURE__*/jsx(TextBox, {
1151
1203
  variant: selected ? 'body-semibold' : 'body',
1152
1204
  noWrap: true,
1153
1205
  children: children
1154
1206
  })
1155
- }), external && /*#__PURE__*/jsx(Column, {
1207
+ }), external && /*#__PURE__*/jsx(Column$4, {
1156
1208
  width: "content",
1157
1209
  children: /*#__PURE__*/jsx(OpenInNew, {
1158
1210
  color: "action",
@@ -1162,12 +1214,12 @@ var SidebarMenuItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
1162
1214
  })
1163
1215
  })
1164
1216
  })
1165
- }), !!badge && /*#__PURE__*/jsx(Column, {
1217
+ }), !!badge && /*#__PURE__*/jsx(Column$4, {
1166
1218
  width: "content",
1167
1219
  children: /*#__PURE__*/jsx(SidebarMenuItemBadge, {
1168
1220
  children: badge
1169
1221
  })
1170
- }), (!!action || !!secondaryActions) && /*#__PURE__*/jsx(Column, {
1222
+ }), (!!action || !!secondaryActions) && /*#__PURE__*/jsx(Column$4, {
1171
1223
  width: "content",
1172
1224
  children: /*#__PURE__*/jsx("div", {
1173
1225
  ref: actionsPlaceholderRef
@@ -1176,7 +1228,7 @@ var SidebarMenuItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
1176
1228
  })
1177
1229
  }), (!!action || !!secondaryActions) && /*#__PURE__*/jsx(SidebarMenuItemSecondaryAction, {
1178
1230
  ref: actionsRef,
1179
- children: /*#__PURE__*/jsxs(Inline, {
1231
+ children: /*#__PURE__*/jsxs(Inline$1, {
1180
1232
  children: [hovered && secondaryActions, action]
1181
1233
  })
1182
1234
  })]
@@ -1186,7 +1238,7 @@ if (process.env.NODE_ENV !== "production") SidebarMenuItem.displayName = "Sideba
1186
1238
 
1187
1239
  var SidebarMenuItemActionRoot = /*#__PURE__*/styled(IconButton).withConfig({
1188
1240
  displayName: "SidebarMenuItemAction__SidebarMenuItemActionRoot",
1189
- componentId: "SD__sc-1n50gmv-0"
1241
+ componentId: "SD__sc-4la7tu-0"
1190
1242
  })(["& .MuiSvgIcon-root{font-size:16px;}"]);
1191
1243
  var SidebarMenuItemAction = /*#__PURE__*/forwardRef((_ref, ref) => {
1192
1244
  var {
@@ -1213,7 +1265,7 @@ function stopPropagation(event) {
1213
1265
 
1214
1266
  var SidebarMenuItemAvatarCheckbox = /*#__PURE__*/styled.div.withConfig({
1215
1267
  displayName: "SidebarMenuItemAvatar__SidebarMenuItemAvatarCheckbox",
1216
- componentId: "SD__sc-17mkvc7-0"
1268
+ componentId: "SD__sc-bfi0pv-0"
1217
1269
  })(["margin:-5px;"]);
1218
1270
  var SidebarMenuItemAvatar = /*#__PURE__*/forwardRef((_ref, ref) => {
1219
1271
  var {
@@ -1255,9 +1307,13 @@ var SidebarMenuItemAvatar = /*#__PURE__*/forwardRef((_ref, ref) => {
1255
1307
  });
1256
1308
  if (process.env.NODE_ENV !== "production") SidebarMenuItemAvatar.displayName = "SidebarMenuItemAvatar";
1257
1309
 
1310
+ var {
1311
+ Column: Column$5,
1312
+ Columns: Columns$5
1313
+ } = v5;
1258
1314
  var SidebarSubheaderRoot = /*#__PURE__*/styled.div.withConfig({
1259
1315
  displayName: "SidebarSubheader__SidebarSubheaderRoot",
1260
- componentId: "SD__sc-1r0xx76-0"
1316
+ componentId: "SD__sc-7njpmq-0"
1261
1317
  })(["display:flex;align-items:center;height:40px;max-height:40px;padding-left:24px;padding-right:24px;"]);
1262
1318
  var SidebarSubheader = /*#__PURE__*/forwardRef((_ref, ref) => {
1263
1319
  var {
@@ -1267,10 +1323,10 @@ var SidebarSubheader = /*#__PURE__*/forwardRef((_ref, ref) => {
1267
1323
  } = _ref;
1268
1324
  return /*#__PURE__*/jsx(SidebarSubheaderRoot, {
1269
1325
  ref: ref,
1270
- children: /*#__PURE__*/jsxs(Columns, {
1326
+ children: /*#__PURE__*/jsxs(Columns$5, {
1271
1327
  space: "xsmall",
1272
1328
  align: "center",
1273
- children: [/*#__PURE__*/jsx(Column, {
1329
+ children: [/*#__PURE__*/jsx(Column$5, {
1274
1330
  children: /*#__PURE__*/jsx(TextBox, {
1275
1331
  id: id,
1276
1332
  variant: "heading-6",
@@ -1278,7 +1334,7 @@ var SidebarSubheader = /*#__PURE__*/forwardRef((_ref, ref) => {
1278
1334
  noWrap: true,
1279
1335
  children: children
1280
1336
  })
1281
- }), !!action && /*#__PURE__*/jsx(Column, {
1337
+ }), !!action && /*#__PURE__*/jsx(Column$5, {
1282
1338
  width: "content",
1283
1339
  children: action
1284
1340
  })]
@@ -1287,5 +1343,1306 @@ var SidebarSubheader = /*#__PURE__*/forwardRef((_ref, ref) => {
1287
1343
  });
1288
1344
  if (process.env.NODE_ENV !== "production") SidebarSubheader.displayName = "SidebarSubheader";
1289
1345
 
1290
- export { Alert, AnchorButton, Banner, 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 };
1291
2648
  //# sourceMappingURL=index.js.map