@superdispatch/ui-lab 0.21.2 → 0.21.5-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-node/index.js +58 -58
- package/dist-node/index.js.map +1 -1
- package/dist-src/alert/Alert.js +2 -2
- package/dist-src/button/Button.js +1 -1
- package/dist-src/button-area/ButtonArea.js +1 -1
- package/dist-src/file-drop-zone/FileDropZone.js +2 -2
- package/dist-src/file-list-item/FileListItem.js +2 -2
- package/dist-src/linked-text/LinkedText.js +1 -1
- package/dist-src/navbar/Navbar.js +1 -1
- package/dist-src/navbar/NavbarAccordion.js +2 -2
- package/dist-src/navbar/NavbarAvatar.js +1 -1
- package/dist-src/navbar/NavbarBottomBar.js +2 -2
- package/dist-src/navbar/NavbarList.js +2 -2
- package/dist-src/navbar/NavbarMenu.js +1 -1
- package/dist-src/sidebar/Sidebar.js +1 -1
- package/dist-src/sidebar/SidebarBackButton.js +2 -2
- package/dist-src/sidebar/SidebarContent.js +1 -1
- package/dist-src/sidebar/SidebarDivider.js +1 -1
- package/dist-src/sidebar/SidebarMenuItem.js +2 -2
- package/dist-src/sidebar/SidebarMenuItemAction.js +1 -1
- package/dist-src/sidebar/SidebarMenuItemAvatar.js +1 -1
- package/dist-types/index.d.ts +2 -2
- package/dist-web/index.js +4 -4
- package/dist-web/index.js.map +1 -1
- package/package.json +3 -3
package/dist-src/alert/Alert.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CheckCircle, Error, Info } from '@
|
|
2
|
-
import { Alert as MaterialAlert } from '@
|
|
1
|
+
import { CheckCircle, Error, Info } from '@mui/icons-material';
|
|
2
|
+
import { Alert as MaterialAlert } from '@mui/lab';
|
|
3
3
|
import { Color } from '@superdispatch/ui';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
5
|
import styled, { css } from 'styled-components';
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["children", "endIcon", "startIcon", "tabIndex", "active", "pending", "disabled", "size", "fullWidth", "variant"],
|
|
4
4
|
_excluded2 = ["type"],
|
|
5
5
|
_excluded3 = ["href", "target"];
|
|
6
|
-
import { CircularProgress } from '@material
|
|
6
|
+
import { CircularProgress } from '@mui/material';
|
|
7
7
|
import { Color } from '@superdispatch/ui';
|
|
8
8
|
import { forwardRef } from 'react';
|
|
9
9
|
import styled, { css } from 'styled-components';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["icon", "children", "variant", "active", "disabled", "fullWidth"];
|
|
4
|
-
import { ButtonBase, Typography } from '@material
|
|
4
|
+
import { ButtonBase, Typography } from '@mui/material';
|
|
5
5
|
import { Color, Stack } from '@superdispatch/ui';
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
7
|
import styled from 'styled-components';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["disabled", "children", "hintText", "startIcon", "fallback", "accept", "maxSize", "maxFiles", "onDropRejected", "onDropAccepted"];
|
|
4
|
-
import { CircularProgress, SvgIcon } from '@material-ui/core';
|
|
5
|
-
import { Error } from '@material-ui/icons';
|
|
6
4
|
import { mdiUpload } from '@mdi/js';
|
|
5
|
+
import { Error } from '@mui/icons-material';
|
|
6
|
+
import { CircularProgress, SvgIcon } from '@mui/material';
|
|
7
7
|
import { CardButton, Color, Column, Columns } from '@superdispatch/ui';
|
|
8
8
|
import { forwardRef, Suspense } from 'react';
|
|
9
9
|
import Dropzone from 'react-dropzone';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
|
-
import { CircularProgress, IconButton, Link, SvgIcon, Tooltip } from '@material-ui/core';
|
|
3
|
-
import { CheckCircle, Delete, Error, Image, Refresh } from '@material-ui/icons';
|
|
4
2
|
import { mdiFilePdfBox, mdiTextBox } from '@mdi/js';
|
|
3
|
+
import { CheckCircle, Delete, Error, Image, Refresh } from '@mui/icons-material';
|
|
4
|
+
import { CircularProgress, IconButton, Link, SvgIcon, Tooltip } from '@mui/material';
|
|
5
5
|
import { Color, Column, Columns, useResponsiveValue, useUID } from '@superdispatch/ui';
|
|
6
6
|
import { forwardRef, memo, useState } from 'react';
|
|
7
7
|
import styled from 'styled-components';
|
|
@@ -2,7 +2,7 @@ import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["color", "target", "rel"],
|
|
4
4
|
_excluded2 = ["children", "linkComponent"];
|
|
5
|
-
import { Link } from '@material
|
|
5
|
+
import { Link } from '@mui/material';
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
7
|
import { Anchorme } from 'react-anchorme';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
|
-
import { Drawer, useMediaQuery, useTheme } from '@material
|
|
2
|
+
import { Drawer, useMediaQuery, useTheme } from '@mui/material';
|
|
3
3
|
import { useResponsiveValue } from '@superdispatch/ui';
|
|
4
4
|
import { useMemo, useState } from 'react';
|
|
5
5
|
import styled from 'styled-components';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { ExpandMore } from '@mui/icons-material';
|
|
3
|
+
import { Accordion, AccordionSummary } from '@mui/material';
|
|
4
4
|
import { Color, useUID } from '@superdispatch/ui';
|
|
5
5
|
import { useEffect, useState } from 'react';
|
|
6
6
|
import styled, { css } from 'styled-components';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["title", "subtitle", "children"];
|
|
4
|
-
import { Avatar, Typography } from '@material
|
|
4
|
+
import { Avatar, Typography } from '@mui/material';
|
|
5
5
|
import { Color, Column, Columns, Stack } from '@superdispatch/ui';
|
|
6
6
|
import styled from 'styled-components';
|
|
7
7
|
import { useNavbarContext } from "./NavbarContext.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Menu } from '@mui/icons-material';
|
|
3
|
+
import { BottomNavigation, BottomNavigationAction } from '@mui/material';
|
|
4
4
|
import { Color } from '@superdispatch/ui';
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
6
|
import styled from 'styled-components';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Menu as MenuIcon, MenuOpen } from '@mui/icons-material';
|
|
3
|
+
import { IconButton } from '@mui/material';
|
|
4
4
|
import { Color, Inline, useResponsiveValue } from '@superdispatch/ui';
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
6
|
import styled from 'styled-components';
|
|
@@ -11,7 +11,7 @@ var SidebarRoot = /*#__PURE__*/styled.aside.withConfig({
|
|
|
11
11
|
var SidebarHeader = /*#__PURE__*/styled.div.withConfig({
|
|
12
12
|
displayName: "Sidebar__SidebarHeader",
|
|
13
13
|
componentId: "SD__sc-b77o22-1"
|
|
14
|
-
})(["top:0;z-index:
|
|
14
|
+
})(["top:0;z-index:2;position:sticky;padding-left:24px;padding-right:24px;padding-bottom:8px;background-color:", ";"], Color.White);
|
|
15
15
|
var SidebarTitle = /*#__PURE__*/styled.div.withConfig({
|
|
16
16
|
displayName: "Sidebar__SidebarTitle",
|
|
17
17
|
componentId: "SD__sc-b77o22-2"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["onClick", "children"];
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { ArrowBack } from '@mui/icons-material';
|
|
5
|
+
import { IconButton } from '@mui/material';
|
|
6
6
|
import { useCollapseBreakpoint } from '@superdispatch/ui';
|
|
7
7
|
import { useSidebarContext } from "./SidebarContainer.js";
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { OpenInNew } from '@mui/icons-material';
|
|
2
|
+
import { ButtonBase } from '@mui/material';
|
|
3
3
|
import { Color, Column, Columns, Inline, mergeRefs } from '@superdispatch/ui';
|
|
4
4
|
import { forwardRef, useLayoutEffect, useRef, useState } from 'react';
|
|
5
5
|
import styled, { css } from 'styled-components';
|
package/dist-types/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { CSSTransition } from 'react-transition-group';
|
|
|
4
4
|
import { CSSTransitionProps } from 'react-transition-group/CSSTransition';
|
|
5
5
|
import { SpaceProp, NegativeSpaceProp, ResponsiveProp, ColorProp } from '@superdispatch/ui';
|
|
6
6
|
import { Property } from 'csstype';
|
|
7
|
-
import { ButtonBaseProps, AvatarProps, IconButtonProps, TooltipProps } from '@material
|
|
7
|
+
import { ButtonBaseProps, AvatarProps, IconButtonProps, TooltipProps } from '@mui/material';
|
|
8
8
|
import { FileRejection } from 'react-dropzone';
|
|
9
9
|
import { StyledComponent, DefaultTheme } from 'styled-components';
|
|
10
10
|
|
|
@@ -87,7 +87,7 @@ interface ButtonAreaProps extends ButtonBaseProps {
|
|
|
87
87
|
fullWidth?: boolean;
|
|
88
88
|
variant?: ButtonAreaVariant;
|
|
89
89
|
}
|
|
90
|
-
declare const ButtonArea: ForwardRefExoticComponent<Pick<ButtonAreaProps, "className" | "style" | "classes" | "
|
|
90
|
+
declare const ButtonArea: ForwardRefExoticComponent<Pick<ButtonAreaProps, "className" | "style" | "classes" | "form" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "fullWidth" | "variant" | "key" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "icon" | "active"> & RefAttributes<HTMLButtonElement>>;
|
|
91
91
|
|
|
92
92
|
declare type ButtonSizeProp = 'small' | 'medium' | 'large';
|
|
93
93
|
declare type ButtonVariantProp = 'critical' | 'default' | 'inverted' | 'neutral' | 'primary' | 'text';
|
package/dist-web/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CheckCircle, Info, Error as Error$1, Image, Refresh, Delete, Menu, ExpandMore, MenuOpen, ArrowBack, OpenInNew } from '@
|
|
2
|
-
import { Alert as Alert$1 } from '@
|
|
1
|
+
import { CheckCircle, Info, Error as Error$1, Image, Refresh, Delete, Menu, ExpandMore, MenuOpen, ArrowBack, OpenInNew } from '@mui/icons-material';
|
|
2
|
+
import { Alert as Alert$1 } from '@mui/lab';
|
|
3
3
|
import { Color, parseResponsiveProp, isColorProp, parseSpaceProp, Stack, mergeRefs, useUID, isEmptyReactNode, Columns, Column, Inline, CardButton, useResponsiveValue, useCollapseBreakpoint } from '@superdispatch/ui';
|
|
4
4
|
import { forwardRef, useState, useEffect, useRef, useLayoutEffect, Suspense, memo, useContext, createContext, useMemo, createElement } from 'react';
|
|
5
5
|
import styled, { css, keyframes } from 'styled-components';
|
|
@@ -7,7 +7,7 @@ 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, BottomNavigation, BottomNavigationAction, AccordionSummary, Accordion, useTheme, useMediaQuery, Drawer, Avatar, MenuItem, Menu as Menu$1, Toolbar, AppBar, Divider as Divider$1, Checkbox } from '@material
|
|
10
|
+
import { ButtonBase, Typography, CircularProgress, SvgIcon, Link, Tooltip, IconButton, BottomNavigation, BottomNavigationAction, AccordionSummary, Accordion, useTheme, useMediaQuery, Drawer, Avatar, MenuItem, Menu as Menu$1, Toolbar, AppBar, Divider as Divider$1, Checkbox } from '@mui/material';
|
|
11
11
|
import { mdiUpload, mdiFilePdfBox, mdiTextBox } from '@mdi/js';
|
|
12
12
|
import Dropzone from 'react-dropzone';
|
|
13
13
|
import { Anchorme } from 'react-anchorme';
|
|
@@ -1591,7 +1591,7 @@ var SidebarRoot = /*#__PURE__*/styled.aside.withConfig({
|
|
|
1591
1591
|
var SidebarHeader = /*#__PURE__*/styled.div.withConfig({
|
|
1592
1592
|
displayName: "Sidebar__SidebarHeader",
|
|
1593
1593
|
componentId: "SD__sc-b77o22-1"
|
|
1594
|
-
})(["top:0;z-index:
|
|
1594
|
+
})(["top:0;z-index:2;position:sticky;padding-left:24px;padding-right:24px;padding-bottom:8px;background-color:", ";"], Color.White);
|
|
1595
1595
|
var SidebarTitle = /*#__PURE__*/styled.div.withConfig({
|
|
1596
1596
|
displayName: "Sidebar__SidebarTitle",
|
|
1597
1597
|
componentId: "SD__sc-b77o22-2"
|