@superdispatch/ui-lab 0.10.5 → 0.14.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 +57 -18
- 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/sidebar/SidebarSubheader.js +2 -1
- package/dist-src/text-box/TextBox.js +3 -2
- package/dist-types/index.d.ts +12 -3
- package/dist-web/index.js +60 -22
- 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"
|
|
@@ -7,7 +7,7 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
var SidebarSubheaderRoot = /*#__PURE__*/styled.div.withConfig({
|
|
8
8
|
displayName: "SidebarSubheader__SidebarSubheaderRoot",
|
|
9
9
|
componentId: "SD__sc-1r0xx76-0"
|
|
10
|
-
})(["height:40px;max-height:40px;padding-left:24px;padding-right:24px;"]);
|
|
10
|
+
})(["display:flex;align-items:center;height:40px;max-height:40px;padding-left:24px;padding-right:24px;"]);
|
|
11
11
|
export var SidebarSubheader = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
12
12
|
var {
|
|
13
13
|
id,
|
|
@@ -18,6 +18,7 @@ export var SidebarSubheader = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
18
18
|
ref: ref,
|
|
19
19
|
children: /*#__PURE__*/_jsxs(Columns, {
|
|
20
20
|
space: "xsmall",
|
|
21
|
+
align: "center",
|
|
21
22
|
children: [/*#__PURE__*/_jsx(Column, {
|
|
22
23
|
children: /*#__PURE__*/_jsx(TextBox, {
|
|
23
24
|
id: id,
|
|
@@ -8,8 +8,9 @@ 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
|
-
|
|
12
|
-
|
|
11
|
+
inherit: 'inherit',
|
|
12
|
+
primary: Color.Dark500,
|
|
13
|
+
secondary: Color.Dark200,
|
|
13
14
|
white: Color.White,
|
|
14
15
|
blue: Color.Blue300,
|
|
15
16
|
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'> {
|
|
@@ -188,7 +197,7 @@ interface SidebarSubheaderProps {
|
|
|
188
197
|
declare const SidebarSubheader: ForwardRefExoticComponent<SidebarSubheaderProps & RefAttributes<HTMLDivElement>>;
|
|
189
198
|
|
|
190
199
|
declare type TextAlignProp = 'left' | 'right' | 'center';
|
|
191
|
-
declare type TextColorProp = 'primary' | 'secondary' | 'white' | 'blue' | 'green' | 'purple' | 'red' | 'teal' | 'yellow';
|
|
200
|
+
declare type TextColorProp = 'inherit' | 'primary' | 'secondary' | 'white' | 'blue' | 'green' | 'purple' | 'red' | 'teal' | 'yellow';
|
|
192
201
|
declare type TextDisplayProp = 'none' | 'block' | 'inline' | 'initial' | 'inherit';
|
|
193
202
|
declare type TextVariantProp = 'heading-1' | 'heading-2' | 'heading-3' | 'heading-4' | 'heading-5' | 'heading-6' | 'body' | 'body-block' | 'body-semibold' | 'caption';
|
|
194
203
|
interface TextBoxProps {
|
|
@@ -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,11 @@ 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
|
-
|
|
461
|
-
|
|
496
|
+
inherit: 'inherit',
|
|
497
|
+
primary: Color.Dark500,
|
|
498
|
+
secondary: Color.Dark200,
|
|
462
499
|
white: Color.White,
|
|
463
500
|
blue: Color.Blue300,
|
|
464
501
|
green: Color.Green300,
|
|
@@ -556,7 +593,7 @@ var TextBox = /*#__PURE__*/forwardRef((_ref3, ref) => {
|
|
|
556
593
|
noWrap = false,
|
|
557
594
|
wrapOverflow = false
|
|
558
595
|
} = _ref3,
|
|
559
|
-
props = _objectWithoutProperties(_ref3, _excluded$
|
|
596
|
+
props = _objectWithoutProperties(_ref3, _excluded$2);
|
|
560
597
|
|
|
561
598
|
var $align = parseResponsiveProp(align);
|
|
562
599
|
var $color = parseResponsiveProp(color);
|
|
@@ -587,7 +624,7 @@ var DescriptionItemIcon = /*#__PURE__*/styled.div.withConfig({
|
|
|
587
624
|
var {
|
|
588
625
|
theme
|
|
589
626
|
} = _ref;
|
|
590
|
-
return css(["display:flex;align-items:center;& > .MuiSvgIcon-root{color:", ";}", ";", "{", ";}"], Color.
|
|
627
|
+
return css(["display:flex;align-items:center;& > .MuiSvgIcon-root{color:", ";}", ";", "{", ";}"], Color.Dark100, descriptionItemIconMixin(20), theme.breakpoints.up('sm'), descriptionItemIconMixin(16));
|
|
591
628
|
});
|
|
592
629
|
var DescriptionItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
593
630
|
var {
|
|
@@ -637,7 +674,7 @@ var DescriptionItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
637
674
|
});
|
|
638
675
|
if (process.env.NODE_ENV !== "production") DescriptionItem.displayName = "DescriptionItem";
|
|
639
676
|
|
|
640
|
-
var _excluded$
|
|
677
|
+
var _excluded$3 = ["disabled", "children", "hintText", "startIcon", "fallback", "accept", "maxSize", "maxFiles", "onDropRejected", "onDropAccepted"];
|
|
641
678
|
function toBytes(input, unit) {
|
|
642
679
|
if (unit === 'gb') return input * (1 << 30);
|
|
643
680
|
if (unit === 'mb') return input * (1 << 20);
|
|
@@ -708,7 +745,7 @@ var FileDropZone = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
708
745
|
onDropRejected: _onDropRejected,
|
|
709
746
|
onDropAccepted: _onDropAccepted
|
|
710
747
|
} = props,
|
|
711
|
-
dropzoneProps = _objectWithoutProperties(props, _excluded$
|
|
748
|
+
dropzoneProps = _objectWithoutProperties(props, _excluded$3);
|
|
712
749
|
|
|
713
750
|
return /*#__PURE__*/jsx(Suspense, {
|
|
714
751
|
fallback: fallback,
|
|
@@ -767,7 +804,7 @@ var FileListItemProgress = /*#__PURE__*/styled(CircularProgress).withConfig({
|
|
|
767
804
|
});
|
|
768
805
|
var PdfIcon = /*#__PURE__*/memo(props => /*#__PURE__*/jsx(SvgIcon, _objectSpread(_objectSpread({}, props), {}, {
|
|
769
806
|
children: /*#__PURE__*/jsx("path", {
|
|
770
|
-
d:
|
|
807
|
+
d: mdiFilePdfBox
|
|
771
808
|
})
|
|
772
809
|
})));
|
|
773
810
|
var TextBoxIcon = /*#__PURE__*/memo(props => /*#__PURE__*/jsx(SvgIcon, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -995,7 +1032,7 @@ var SidebarMenuItemRoot = /*#__PURE__*/styled.div.withConfig({
|
|
|
995
1032
|
var SidebarMenuItemBadge = /*#__PURE__*/styled.div.withConfig({
|
|
996
1033
|
displayName: "SidebarMenuItem__SidebarMenuItemBadge",
|
|
997
1034
|
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.
|
|
1035
|
+
})(["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
1036
|
var SidebarMenuItemSecondaryAction = /*#__PURE__*/styled.div.withConfig({
|
|
1000
1037
|
displayName: "SidebarMenuItem__SidebarMenuItemSecondaryAction",
|
|
1001
1038
|
componentId: "SD__sc-1sb5zqa-2"
|
|
@@ -1166,7 +1203,7 @@ if (process.env.NODE_ENV !== "production") SidebarMenuItemAvatar.displayName = "
|
|
|
1166
1203
|
var SidebarSubheaderRoot = /*#__PURE__*/styled.div.withConfig({
|
|
1167
1204
|
displayName: "SidebarSubheader__SidebarSubheaderRoot",
|
|
1168
1205
|
componentId: "SD__sc-1r0xx76-0"
|
|
1169
|
-
})(["height:40px;max-height:40px;padding-left:24px;padding-right:24px;"]);
|
|
1206
|
+
})(["display:flex;align-items:center;height:40px;max-height:40px;padding-left:24px;padding-right:24px;"]);
|
|
1170
1207
|
var SidebarSubheader = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
1171
1208
|
var {
|
|
1172
1209
|
id,
|
|
@@ -1177,6 +1214,7 @@ var SidebarSubheader = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1177
1214
|
ref: ref,
|
|
1178
1215
|
children: /*#__PURE__*/jsxs(Columns, {
|
|
1179
1216
|
space: "xsmall",
|
|
1217
|
+
align: "center",
|
|
1180
1218
|
children: [/*#__PURE__*/jsx(Column, {
|
|
1181
1219
|
children: /*#__PURE__*/jsx(TextBox, {
|
|
1182
1220
|
id: id,
|
|
@@ -1194,5 +1232,5 @@ var SidebarSubheader = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1194
1232
|
});
|
|
1195
1233
|
if (process.env.NODE_ENV !== "production") SidebarSubheader.displayName = "SidebarSubheader";
|
|
1196
1234
|
|
|
1197
|
-
export { Alert, AnchorButton, Box, Button, DescriptionItem, FileDropZone, FileListItem, Sidebar, SidebarContainer, SidebarDivider, SidebarMenuItem, SidebarMenuItemAction, SidebarMenuItemAvatar, SidebarSubheader, TextBox, formatBytes, toBytes };
|
|
1235
|
+
export { Alert, AnchorButton, Box, Button, ButtonArea, DescriptionItem, FileDropZone, FileListItem, Sidebar, SidebarContainer, SidebarDivider, SidebarMenuItem, SidebarMenuItemAction, SidebarMenuItemAvatar, SidebarSubheader, TextBox, formatBytes, toBytes };
|
|
1198
1236
|
//# sourceMappingURL=index.js.map
|