@superdispatch/ui-lab 0.10.4 → 0.13.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-node/index.js +54 -17
- package/dist-node/index.js.map +1 -1
- package/dist-src/button/Button.js +2 -3
- package/dist-src/button-area/ButtonArea.js +44 -0
- package/dist-src/description-item/DescriptionItem.js +1 -1
- package/dist-src/file-list-item/FileListItem.js +2 -2
- package/dist-src/index.js +1 -0
- package/dist-src/sidebar/SidebarMenuItem.js +1 -1
- package/dist-src/text-box/TextBox.js +2 -2
- package/dist-types/index.d.ts +11 -2
- package/dist-web/index.js +57 -21
- package/dist-web/index.js.map +1 -1
- package/package.json +3 -3
package/dist-src/index.js
CHANGED
|
@@ -20,7 +20,7 @@ var SidebarMenuItemRoot = /*#__PURE__*/styled.div.withConfig({
|
|
|
20
20
|
var SidebarMenuItemBadge = /*#__PURE__*/styled.div.withConfig({
|
|
21
21
|
displayName: "SidebarMenuItem__SidebarMenuItemBadge",
|
|
22
22
|
componentId: "SD__sc-1sb5zqa-1"
|
|
23
|
-
})(["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.
|
|
23
|
+
})(["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);
|
|
24
24
|
var SidebarMenuItemSecondaryAction = /*#__PURE__*/styled.div.withConfig({
|
|
25
25
|
displayName: "SidebarMenuItem__SidebarMenuItemSecondaryAction",
|
|
26
26
|
componentId: "SD__sc-1sb5zqa-2"
|
|
@@ -8,8 +8,8 @@ import { mergeStyles } from "../utils/mergeStyles.js";
|
|
|
8
8
|
import { createRuleNormalizer } from "../utils/RuleNormalizer.js";
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
var normalizeTextColor = /*#__PURE__*/createRuleNormalizer({
|
|
11
|
-
primary: Color.
|
|
12
|
-
secondary: Color.
|
|
11
|
+
primary: Color.Dark500,
|
|
12
|
+
secondary: Color.Dark200,
|
|
13
13
|
white: Color.White,
|
|
14
14
|
blue: Color.Blue300,
|
|
15
15
|
green: Color.Green300,
|
package/dist-types/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { ReactNode, ForwardRefExoticComponent, RefAttributes, Ref, AriaAttributes, MouseEventHandler, FocusEventHandler, ReactChild, MouseEvent, ReactElement } from 'react';
|
|
3
3
|
import { SpaceProp, NegativeSpaceProp, ResponsiveProp, ColorProp } from '@superdispatch/ui';
|
|
4
4
|
import { Property } from 'csstype';
|
|
5
|
+
import { ButtonBaseProps, TooltipProps } from '@material-ui/core';
|
|
5
6
|
import { FileRejection } from 'react-dropzone';
|
|
6
|
-
import { TooltipProps } from '@material-ui/core';
|
|
7
7
|
|
|
8
8
|
declare type AlertSeverityProp = 'positive' | 'info' | 'caution' | 'critical';
|
|
9
9
|
interface AlertProps {
|
|
@@ -69,6 +69,15 @@ interface BoxProps extends BoxRules {
|
|
|
69
69
|
}
|
|
70
70
|
declare const Box: ForwardRefExoticComponent<BoxProps>;
|
|
71
71
|
|
|
72
|
+
declare type ButtonAreaVariant = 'danger' | 'success';
|
|
73
|
+
interface ButtonAreaProps extends ButtonBaseProps {
|
|
74
|
+
icon: ReactNode;
|
|
75
|
+
active?: boolean;
|
|
76
|
+
fullWidth?: boolean;
|
|
77
|
+
variant?: ButtonAreaVariant;
|
|
78
|
+
}
|
|
79
|
+
declare const ButtonArea: ForwardRefExoticComponent<Pick<ButtonAreaProps, "className" | "style" | "classes" | "innerRef" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "fullWidth" | "variant" | "action" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "icon" | "active"> & RefAttributes<HTMLButtonElement>>;
|
|
80
|
+
|
|
72
81
|
declare type ButtonSizeProp = 'small' | 'medium' | 'large';
|
|
73
82
|
declare type ButtonVariantProp = 'critical' | 'default' | 'inverted' | 'neutral' | 'primary' | 'text';
|
|
74
83
|
interface BaseButtonProps<T extends HTMLElement> extends Pick<AriaAttributes, 'aria-label' | 'aria-controls' | 'aria-haspopup' | 'aria-labelledby'> {
|
|
@@ -207,4 +216,4 @@ interface TextBoxProps {
|
|
|
207
216
|
}
|
|
208
217
|
declare const TextBox: ForwardRefExoticComponent<TextBoxProps & RefAttributes<HTMLElement>>;
|
|
209
218
|
|
|
210
|
-
export { Alert, AlertProps, AlertSeverityProp, AnchorButton, AnchorButtonProps, BorderRadiusProp, BorderWidthProp, Box, BoxProps, Button, ButtonProps, ButtonSizeProp, ButtonVariantProp, DescriptionItem, DescriptionItemProps, FileDropZone, FileDropZoneProps, FileListItem, FileListItemProps, MarginProp, Sidebar, SidebarContainer, SidebarContainerProps, SidebarDivider, SidebarMenuItem, SidebarMenuItemAction, SidebarMenuItemActionProps, SidebarMenuItemAvatar, SidebarMenuItemAvatarProps, SidebarMenuItemProps, SidebarProps, SidebarSubheader, SidebarSubheaderProps, TextAlignProp, TextBox, TextBoxProps, TextColorProp, TextDisplayProp, TextVariantProp, formatBytes, toBytes };
|
|
219
|
+
export { Alert, AlertProps, AlertSeverityProp, AnchorButton, AnchorButtonProps, BorderRadiusProp, BorderWidthProp, Box, BoxProps, Button, ButtonArea, ButtonAreaProps, ButtonProps, ButtonSizeProp, ButtonVariantProp, DescriptionItem, DescriptionItemProps, FileDropZone, FileDropZoneProps, FileListItem, FileListItemProps, MarginProp, Sidebar, SidebarContainer, SidebarContainerProps, SidebarDivider, SidebarMenuItem, SidebarMenuItemAction, SidebarMenuItemActionProps, SidebarMenuItemAvatar, SidebarMenuItemAvatarProps, SidebarMenuItemProps, SidebarProps, SidebarSubheader, SidebarSubheaderProps, TextAlignProp, TextBox, TextBoxProps, TextColorProp, TextDisplayProp, TextVariantProp, formatBytes, toBytes };
|
package/dist-web/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { CheckCircle, Info, Error, Image, Refresh, Delete, OpenInNew } from '@material-ui/icons';
|
|
2
2
|
import { Alert as Alert$1 } from '@material-ui/lab';
|
|
3
|
-
import { Color, parseResponsiveProp, isColorProp, parseSpaceProp, useUID, isEmptyReactNode, Columns, Column, Inline, CardButton, useResponsiveValue } from '@superdispatch/ui';
|
|
3
|
+
import { Color, parseResponsiveProp, isColorProp, parseSpaceProp, Stack, useUID, isEmptyReactNode, Columns, Column, Inline, CardButton, useResponsiveValue } from '@superdispatch/ui';
|
|
4
4
|
import { forwardRef, Suspense, useState, memo, useContext, createContext, useMemo, useRef, useLayoutEffect } from 'react';
|
|
5
5
|
import styled, { css } from 'styled-components';
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
7
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
8
8
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
9
|
-
import { CircularProgress, SvgIcon, Link, Tooltip, IconButton, Divider,
|
|
10
|
-
import { mdiUpload,
|
|
9
|
+
import { ButtonBase, Typography, CircularProgress, SvgIcon, Link, Tooltip, IconButton, Divider, Checkbox, Avatar } from '@material-ui/core';
|
|
10
|
+
import { mdiUpload, mdiFilePdfBox, mdiTextBox } from '@mdi/js';
|
|
11
11
|
import Dropzone from 'react-dropzone';
|
|
12
12
|
|
|
13
13
|
function colorMixin(textColor, backgroundColor, buttonHoverColor) {
|
|
@@ -209,7 +209,44 @@ var Box = /*#__PURE__*/styled.div.withConfig({
|
|
|
209
209
|
return styles;
|
|
210
210
|
});
|
|
211
211
|
|
|
212
|
-
var _excluded = ["
|
|
212
|
+
var _excluded = ["icon", "children", "variant", "active", "disabled", "fullWidth"];
|
|
213
|
+
var ButtonRoot = /*#__PURE__*/styled(ButtonBase).withConfig({
|
|
214
|
+
displayName: "ButtonArea__ButtonRoot",
|
|
215
|
+
componentId: "SD__sc-1czum63-0"
|
|
216
|
+
})(["padding:12px 32px;border-width:1px;border-radius:4px;border-style:solid;border-color:", ";color:", ";background-color:", ";& svg{color:inherit;font-size:24px;}&[data-full-width='true']{width:100%;}&[data-disabled='true']{color:", ";border-color:", ";}&[data-variant='success']{&:hover{color:", ";box-shadow:0 0 0 2px ", ";border-color:", ";}&[data-active='true']{color:", ";border-color:", ";background-color:", ";}}&[data-variant='danger']{&:hover{color:", ";box-shadow:0 0 0 2px ", ";border-color:", ";}&[data-active='true']{color:", ";border-color:", ";background-color:", ";}}"], Color.Silver500, Color.Dark100, Color.White, Color.Silver500, Color.Silver400, Color.Green300, Color.Green100, Color.Green300, Color.Green300, Color.Green300, Color.Green50, Color.Red300, Color.Red100, Color.Red300, Color.Red300, Color.Red300, Color.Red50);
|
|
217
|
+
var ButtonArea = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
218
|
+
var {
|
|
219
|
+
icon,
|
|
220
|
+
children,
|
|
221
|
+
variant,
|
|
222
|
+
active,
|
|
223
|
+
disabled,
|
|
224
|
+
fullWidth
|
|
225
|
+
} = _ref,
|
|
226
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
227
|
+
|
|
228
|
+
return /*#__PURE__*/jsx(ButtonRoot, _objectSpread(_objectSpread({
|
|
229
|
+
ref: ref,
|
|
230
|
+
disabled: disabled,
|
|
231
|
+
"data-active": active,
|
|
232
|
+
"data-disabled": disabled,
|
|
233
|
+
"data-variant": variant,
|
|
234
|
+
"data-full-width": fullWidth
|
|
235
|
+
}, props), {}, {
|
|
236
|
+
children: /*#__PURE__*/jsxs(Stack, {
|
|
237
|
+
align: "center",
|
|
238
|
+
space: "xxsmall",
|
|
239
|
+
children: [icon, /*#__PURE__*/jsx(Typography, {
|
|
240
|
+
variant: "h4",
|
|
241
|
+
color: disabled ? 'inherit' : 'textPrimary',
|
|
242
|
+
children: children
|
|
243
|
+
})]
|
|
244
|
+
})
|
|
245
|
+
}));
|
|
246
|
+
});
|
|
247
|
+
if (process.env.NODE_ENV !== "production") ButtonArea.displayName = "ButtonArea";
|
|
248
|
+
|
|
249
|
+
var _excluded$1 = ["children", "endIcon", "startIcon", "tabIndex", "active", "pending", "disabled", "size", "fullWidth", "variant"],
|
|
213
250
|
_excluded2 = ["type"],
|
|
214
251
|
_excluded3 = ["href", "target"];
|
|
215
252
|
|
|
@@ -276,7 +313,7 @@ function getPrimaryVariables(size) {
|
|
|
276
313
|
|
|
277
314
|
function getNeutralVariables(size) {
|
|
278
315
|
return createButtonVariables(size, {
|
|
279
|
-
textColor: Color.
|
|
316
|
+
textColor: Color.Dark500,
|
|
280
317
|
borderColor: Color.Silver500,
|
|
281
318
|
outlineColor: Color.Blue100,
|
|
282
319
|
backgroundColor: Color.White,
|
|
@@ -326,7 +363,7 @@ function getInvertedVariables(size) {
|
|
|
326
363
|
});
|
|
327
364
|
}
|
|
328
365
|
|
|
329
|
-
var ButtonRoot = /*#__PURE__*/styled.button.withConfig({
|
|
366
|
+
var ButtonRoot$1 = /*#__PURE__*/styled.button.withConfig({
|
|
330
367
|
displayName: "Button__ButtonRoot",
|
|
331
368
|
componentId: "SD__sc-1pwdpe3-0"
|
|
332
369
|
})(_ref2 => {
|
|
@@ -369,7 +406,7 @@ function useButtonProps(_ref3) {
|
|
|
369
406
|
fullWidth = false,
|
|
370
407
|
variant = 'default'
|
|
371
408
|
} = _ref3,
|
|
372
|
-
props = _objectWithoutProperties(_ref3, _excluded);
|
|
409
|
+
props = _objectWithoutProperties(_ref3, _excluded$1);
|
|
373
410
|
|
|
374
411
|
var disabled = pending || disabledProp;
|
|
375
412
|
var tabIndex = disabled ? -1 : tabIndexProp;
|
|
@@ -404,7 +441,7 @@ var Button = /*#__PURE__*/forwardRef((_ref4, ref) => {
|
|
|
404
441
|
props = _objectWithoutProperties(_ref4, _excluded2);
|
|
405
442
|
|
|
406
443
|
var buttonProps = useButtonProps(props);
|
|
407
|
-
return /*#__PURE__*/jsx(ButtonRoot, _objectSpread(_objectSpread({}, buttonProps), {}, {
|
|
444
|
+
return /*#__PURE__*/jsx(ButtonRoot$1, _objectSpread(_objectSpread({}, buttonProps), {}, {
|
|
408
445
|
ref: ref,
|
|
409
446
|
type: type
|
|
410
447
|
}));
|
|
@@ -419,9 +456,8 @@ var AnchorButton = /*#__PURE__*/forwardRef((_ref5, ref) => {
|
|
|
419
456
|
|
|
420
457
|
var buttonProps = useButtonProps(props);
|
|
421
458
|
var rel = target === '_blank' ? 'noopener noreferrer' : undefined;
|
|
422
|
-
return /*#__PURE__*/jsx(ButtonRoot, _objectSpread(_objectSpread({}, buttonProps), {}, {
|
|
423
|
-
as: "a"
|
|
424
|
-
,
|
|
459
|
+
return /*#__PURE__*/jsx(ButtonRoot$1, _objectSpread(_objectSpread({}, buttonProps), {}, {
|
|
460
|
+
as: "a",
|
|
425
461
|
ref: ref,
|
|
426
462
|
rel: rel,
|
|
427
463
|
href: href,
|
|
@@ -455,10 +491,10 @@ function mergeStyles(styles) {
|
|
|
455
491
|
return styles;
|
|
456
492
|
}
|
|
457
493
|
|
|
458
|
-
var _excluded$
|
|
494
|
+
var _excluded$2 = ["variant", "as", "align", "color", "display", "noWrap", "wrapOverflow"];
|
|
459
495
|
var normalizeTextColor = /*#__PURE__*/createRuleNormalizer({
|
|
460
|
-
primary: Color.
|
|
461
|
-
secondary: Color.
|
|
496
|
+
primary: Color.Dark500,
|
|
497
|
+
secondary: Color.Dark200,
|
|
462
498
|
white: Color.White,
|
|
463
499
|
blue: Color.Blue300,
|
|
464
500
|
green: Color.Green300,
|
|
@@ -556,7 +592,7 @@ var TextBox = /*#__PURE__*/forwardRef((_ref3, ref) => {
|
|
|
556
592
|
noWrap = false,
|
|
557
593
|
wrapOverflow = false
|
|
558
594
|
} = _ref3,
|
|
559
|
-
props = _objectWithoutProperties(_ref3, _excluded$
|
|
595
|
+
props = _objectWithoutProperties(_ref3, _excluded$2);
|
|
560
596
|
|
|
561
597
|
var $align = parseResponsiveProp(align);
|
|
562
598
|
var $color = parseResponsiveProp(color);
|
|
@@ -587,7 +623,7 @@ var DescriptionItemIcon = /*#__PURE__*/styled.div.withConfig({
|
|
|
587
623
|
var {
|
|
588
624
|
theme
|
|
589
625
|
} = _ref;
|
|
590
|
-
return css(["display:flex;align-items:center;& > .MuiSvgIcon-root{color:", ";}", ";", "{", ";}"], Color.
|
|
626
|
+
return css(["display:flex;align-items:center;& > .MuiSvgIcon-root{color:", ";}", ";", "{", ";}"], Color.Dark100, descriptionItemIconMixin(20), theme.breakpoints.up('sm'), descriptionItemIconMixin(16));
|
|
591
627
|
});
|
|
592
628
|
var DescriptionItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
593
629
|
var {
|
|
@@ -637,7 +673,7 @@ var DescriptionItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
637
673
|
});
|
|
638
674
|
if (process.env.NODE_ENV !== "production") DescriptionItem.displayName = "DescriptionItem";
|
|
639
675
|
|
|
640
|
-
var _excluded$
|
|
676
|
+
var _excluded$3 = ["disabled", "children", "hintText", "startIcon", "fallback", "accept", "maxSize", "maxFiles", "onDropRejected", "onDropAccepted"];
|
|
641
677
|
function toBytes(input, unit) {
|
|
642
678
|
if (unit === 'gb') return input * (1 << 30);
|
|
643
679
|
if (unit === 'mb') return input * (1 << 20);
|
|
@@ -708,7 +744,7 @@ var FileDropZone = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
708
744
|
onDropRejected: _onDropRejected,
|
|
709
745
|
onDropAccepted: _onDropAccepted
|
|
710
746
|
} = props,
|
|
711
|
-
dropzoneProps = _objectWithoutProperties(props, _excluded$
|
|
747
|
+
dropzoneProps = _objectWithoutProperties(props, _excluded$3);
|
|
712
748
|
|
|
713
749
|
return /*#__PURE__*/jsx(Suspense, {
|
|
714
750
|
fallback: fallback,
|
|
@@ -767,7 +803,7 @@ var FileListItemProgress = /*#__PURE__*/styled(CircularProgress).withConfig({
|
|
|
767
803
|
});
|
|
768
804
|
var PdfIcon = /*#__PURE__*/memo(props => /*#__PURE__*/jsx(SvgIcon, _objectSpread(_objectSpread({}, props), {}, {
|
|
769
805
|
children: /*#__PURE__*/jsx("path", {
|
|
770
|
-
d:
|
|
806
|
+
d: mdiFilePdfBox
|
|
771
807
|
})
|
|
772
808
|
})));
|
|
773
809
|
var TextBoxIcon = /*#__PURE__*/memo(props => /*#__PURE__*/jsx(SvgIcon, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -995,7 +1031,7 @@ var SidebarMenuItemRoot = /*#__PURE__*/styled.div.withConfig({
|
|
|
995
1031
|
var SidebarMenuItemBadge = /*#__PURE__*/styled.div.withConfig({
|
|
996
1032
|
displayName: "SidebarMenuItem__SidebarMenuItemBadge",
|
|
997
1033
|
componentId: "SD__sc-1sb5zqa-1"
|
|
998
|
-
})(["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.
|
|
1034
|
+
})(["font-size:12px;line-height:16px;padding-left:4px;padding-right:4px;border-radius:100px;color:", ";background-color:", ";.MuiButtonBase-root[aria-current='true'] &{color:", ";background-color:", ";}"], Color.Dark500, Color.Silver300, Color.White, Color.Dark450);
|
|
999
1035
|
var SidebarMenuItemSecondaryAction = /*#__PURE__*/styled.div.withConfig({
|
|
1000
1036
|
displayName: "SidebarMenuItem__SidebarMenuItemSecondaryAction",
|
|
1001
1037
|
componentId: "SD__sc-1sb5zqa-2"
|
|
@@ -1194,5 +1230,5 @@ var SidebarSubheader = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1194
1230
|
});
|
|
1195
1231
|
if (process.env.NODE_ENV !== "production") SidebarSubheader.displayName = "SidebarSubheader";
|
|
1196
1232
|
|
|
1197
|
-
export { Alert, AnchorButton, Box, Button, DescriptionItem, FileDropZone, FileListItem, Sidebar, SidebarContainer, SidebarDivider, SidebarMenuItem, SidebarMenuItemAction, SidebarMenuItemAvatar, SidebarSubheader, TextBox, formatBytes, toBytes };
|
|
1233
|
+
export { Alert, AnchorButton, Box, Button, ButtonArea, DescriptionItem, FileDropZone, FileListItem, Sidebar, SidebarContainer, SidebarDivider, SidebarMenuItem, SidebarMenuItemAction, SidebarMenuItemAvatar, SidebarSubheader, TextBox, formatBytes, toBytes };
|
|
1198
1234
|
//# sourceMappingURL=index.js.map
|