@superdispatch/ui 0.40.2 → 0.42.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 +474 -333
- package/dist-node/index.js.map +1 -1
- package/dist-src/app-drawer/AppDrawer.js +77 -0
- package/dist-src/app-drawer/constants.js +1 -0
- package/dist-src/avatar-button/AvatarButton.js +5 -2
- package/dist-src/card-button/CardButton.js +8 -5
- package/dist-src/description-list/DescriptionList.js +4 -4
- package/dist-src/drawer/DrawerActions.js +5 -2
- package/dist-src/drawer/DrawerContent.js +2 -1
- package/dist-src/drawer/DrawerList.js +1 -1
- package/dist-src/drawer/DrawerOverrides.js +1 -0
- package/dist-src/drawer/DrawerTitle.js +5 -2
- package/dist-src/index.js +1 -0
- package/dist-src/info-card/InfoCard.js +5 -2
- package/dist-src/overflow-text/OverflowText.js +4 -2
- package/dist-src/snackbar/SnackbarContent.js +4 -4
- package/dist-src/tag/Tag.js +2 -14
- package/dist-src/theme/ThemeProvider.js +54 -9
- package/dist-src/tiles/Tiles.js +21 -3
- package/dist-types/index.d.ts +45 -3
- package/dist-web/index.js +470 -330
- package/dist-web/index.js.map +1 -1
- package/package.json +3 -3
package/dist-web/index.js
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
-
import { Button as Button$1, CircularProgress, ButtonGroup, Popover, MenuList, Toolbar, Grid, MenuItem, Typography, Menu, Divider, ButtonBase, Avatar, FormHelperText as FormHelperText$4, FormControlLabel as FormControlLabel$1, Checkbox, FormControl as FormControl$2, FormLabel as FormLabel$2, FormGroup, useMediaQuery, Tooltip, SvgIcon,
|
|
4
|
-
import { MoreHoriz,
|
|
3
|
+
import { Button as Button$1, CircularProgress, ButtonGroup, Popover, MenuList, Toolbar, Grid, MenuItem, Typography, Menu, Divider, AppBar, Drawer, IconButton, ButtonBase, Avatar, FormHelperText as FormHelperText$4, FormControlLabel as FormControlLabel$1, Checkbox, FormControl as FormControl$2, FormLabel as FormLabel$2, FormGroup, useMediaQuery, Tooltip, SvgIcon, List, useTheme, Card as Card$1, CardContent, TextField, Radio, RadioGroup, SnackbarContent as SnackbarContent$1, Portal, Snackbar as Snackbar$1, Slide, alpha, CssBaseline, createTheme as createTheme$1, createGenerateClassName } from '@material-ui/core';
|
|
4
|
+
import { MoreHoriz, ArrowBack, Close, Info, Error, CheckCircle } from '@material-ui/icons';
|
|
5
5
|
import { makeStyles, StylesProvider, ThemeProvider as ThemeProvider$1 } from '@material-ui/styles';
|
|
6
6
|
import { forwardRef, useState, useRef, useLayoutEffect, cloneElement, useMemo, useContext, createContext, Children, useCallback, useEffect } from 'react';
|
|
7
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
|
-
import styled, { css, createGlobalStyle, ThemeProvider as ThemeProvider$
|
|
8
|
+
import styled, { css, createGlobalStyle, ThemeProvider as ThemeProvider$3 } from 'styled-components';
|
|
9
9
|
import { ResizeObserver } from '@juggle/resize-observer';
|
|
10
|
-
import { useEventHandler,
|
|
11
|
-
import clsx from 'clsx';
|
|
10
|
+
import { useEventHandler, useValueObserver, useDeepEqualValue, useDeepEqualMemo } from '@superdispatch/hooks';
|
|
11
|
+
import { clsx } from 'clsx';
|
|
12
12
|
import flattenChildren from 'react-keyed-flatten-children';
|
|
13
13
|
import { renderChildren as renderChildren$1 } from '@superdispatch/ui';
|
|
14
14
|
import { NumericFormat, PatternFormat } from 'react-number-format';
|
|
15
15
|
import createBreakpoints from '@material-ui/core/styles/createBreakpoints';
|
|
16
|
+
import { createTheme, ThemeProvider as ThemeProvider$2 } from '@mui/material/styles';
|
|
17
|
+
import { StylesProvider as StylesProvider$1 } from '@mui/styles';
|
|
16
18
|
|
|
17
19
|
var _excluded = ["size", "children", "disabled", "isActive", "isLoading", "color"];
|
|
18
20
|
var Button = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
@@ -675,9 +677,340 @@ function isColorPropDark(name) {
|
|
|
675
677
|
return typeof name == 'string' && Object.prototype.hasOwnProperty.call(ColorDark, name);
|
|
676
678
|
}
|
|
677
679
|
|
|
678
|
-
|
|
680
|
+
function renderChildren(node) {
|
|
681
|
+
if (node == null || typeof node == 'boolean') {
|
|
682
|
+
return null;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
// Workaround for https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18051
|
|
686
|
+
return node;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
var _excluded$3 = ["render", "onChange"];
|
|
690
|
+
function useVisibilityObserver(node) {
|
|
691
|
+
var {
|
|
692
|
+
threshold = 0,
|
|
693
|
+
marginTop = '0px',
|
|
694
|
+
marginLeft = '0px',
|
|
695
|
+
marginRight = '0px',
|
|
696
|
+
marginBottom = '0px'
|
|
697
|
+
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
698
|
+
var [state, setState] = useState('undetermined');
|
|
699
|
+
var rootMargin = "".concat(marginTop, " ").concat(marginRight, " ").concat(marginBottom, " ").concat(marginLeft);
|
|
700
|
+
useLayoutEffect(() => {
|
|
701
|
+
if (!node || !('IntersectionObserver' in window)) {
|
|
702
|
+
setState('undetermined');
|
|
703
|
+
return;
|
|
704
|
+
}
|
|
705
|
+
var observer = new IntersectionObserver(_ref => {
|
|
706
|
+
var [entry] = _ref;
|
|
707
|
+
setState(entry !== null && entry !== void 0 && entry.isIntersecting && document.visibilityState === 'visible' ? 'visible' : 'invisible');
|
|
708
|
+
}, {
|
|
709
|
+
rootMargin,
|
|
710
|
+
threshold
|
|
711
|
+
});
|
|
712
|
+
observer.observe(node);
|
|
713
|
+
return () => {
|
|
714
|
+
observer.disconnect();
|
|
715
|
+
};
|
|
716
|
+
}, [node, threshold, rootMargin]);
|
|
717
|
+
return state;
|
|
718
|
+
}
|
|
719
|
+
function VisibilityObserver(_ref2) {
|
|
720
|
+
var {
|
|
721
|
+
render,
|
|
722
|
+
onChange
|
|
723
|
+
} = _ref2,
|
|
724
|
+
options = _objectWithoutProperties(_ref2, _excluded$3);
|
|
725
|
+
var [node, setNode] = useState(null);
|
|
726
|
+
var visibility = useVisibilityObserver(node, options);
|
|
727
|
+
var children = render({
|
|
728
|
+
ref: setNode,
|
|
729
|
+
visibility
|
|
730
|
+
});
|
|
731
|
+
useValueObserver(visibility, () => {
|
|
732
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(visibility);
|
|
733
|
+
});
|
|
734
|
+
return renderChildren(children);
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
var _excluded$4 = ["children", "className"];
|
|
738
|
+
var useStyles$2 = /*#__PURE__*/makeStyles(theme => ({
|
|
739
|
+
appBar: {
|
|
740
|
+
'&&': {
|
|
741
|
+
bottom: 0,
|
|
742
|
+
top: 'auto',
|
|
743
|
+
borderLeft: 'none',
|
|
744
|
+
borderRight: 'none',
|
|
745
|
+
borderBottom: 'none',
|
|
746
|
+
transition: theme.transitions.create(['border-color']),
|
|
747
|
+
'&:not($appBarSticky)': {
|
|
748
|
+
borderTopColor: ColorDynamic.Transparent
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
},
|
|
752
|
+
appBarSticky: {},
|
|
753
|
+
toolbar: {
|
|
754
|
+
'&.MuiToolbar-gutters': {
|
|
755
|
+
paddingLeft: theme.spacing(3),
|
|
756
|
+
paddingRight: theme.spacing(3),
|
|
757
|
+
[theme.breakpoints.up('md')]: {
|
|
758
|
+
paddingLeft: theme.spacing(4),
|
|
759
|
+
paddingRight: theme.spacing(4)
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
}), {
|
|
764
|
+
name: 'SD-DrawerActions'
|
|
765
|
+
});
|
|
766
|
+
/** @deprecated Use `<AppDrawer>` instead. */
|
|
767
|
+
var DrawerActions = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
|
|
768
|
+
var {
|
|
769
|
+
children,
|
|
770
|
+
className
|
|
771
|
+
} = _ref,
|
|
772
|
+
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
773
|
+
var styles = useStyles$2();
|
|
774
|
+
return /*#__PURE__*/jsx(VisibilityObserver, {
|
|
775
|
+
render: _ref2 => {
|
|
776
|
+
var {
|
|
777
|
+
ref,
|
|
778
|
+
visibility
|
|
779
|
+
} = _ref2;
|
|
780
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
781
|
+
children: [/*#__PURE__*/jsx(AppBar, _objectSpread(_objectSpread({}, props), {}, {
|
|
782
|
+
ref: appBarRef,
|
|
783
|
+
position: "sticky",
|
|
784
|
+
className: clsx(className, styles.appBar, {
|
|
785
|
+
[styles.appBarSticky]: visibility === 'invisible'
|
|
786
|
+
}),
|
|
787
|
+
children: /*#__PURE__*/jsx(Toolbar, {
|
|
788
|
+
className: styles.toolbar,
|
|
789
|
+
children: children
|
|
790
|
+
})
|
|
791
|
+
})), /*#__PURE__*/jsx("div", {
|
|
792
|
+
ref: ref
|
|
793
|
+
})]
|
|
794
|
+
});
|
|
795
|
+
}
|
|
796
|
+
});
|
|
797
|
+
});
|
|
798
|
+
if (process.env.NODE_ENV !== "production") DrawerActions.displayName = "DrawerActions";
|
|
799
|
+
|
|
800
|
+
var _excluded$5 = ["className"];
|
|
801
|
+
var useStyles$3 = /*#__PURE__*/makeStyles(theme => ({
|
|
802
|
+
root: {
|
|
803
|
+
maxWidth: '100%',
|
|
804
|
+
padding: theme.spacing(2, 3),
|
|
805
|
+
[theme.breakpoints.up('md')]: {
|
|
806
|
+
padding: theme.spacing(2, 4)
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
}), {
|
|
810
|
+
name: 'SD-DrawerContent'
|
|
811
|
+
});
|
|
812
|
+
/** @deprecated Use `<AppDrawer>` instead. */
|
|
813
|
+
var DrawerContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
814
|
+
var {
|
|
815
|
+
className
|
|
816
|
+
} = _ref,
|
|
817
|
+
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
818
|
+
var styles = useStyles$3();
|
|
819
|
+
return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({}, props), {}, {
|
|
820
|
+
ref: ref,
|
|
821
|
+
className: clsx(styles.root, className)
|
|
822
|
+
}));
|
|
823
|
+
});
|
|
824
|
+
if (process.env.NODE_ENV !== "production") DrawerContent.displayName = "DrawerContent";
|
|
825
|
+
|
|
826
|
+
var _excluded$6 = ["title", "titleTypographyProps", "subtitle", "subtitleTypographyProps", "startAction", "endAction", "className"];
|
|
827
|
+
var useStyles$4 = /*#__PURE__*/makeStyles(theme => ({
|
|
828
|
+
appBar: {
|
|
829
|
+
'&&': {
|
|
830
|
+
borderTop: 'none',
|
|
831
|
+
borderLeft: 'none',
|
|
832
|
+
borderRight: 'none',
|
|
833
|
+
transition: theme.transitions.create(['border-color']),
|
|
834
|
+
'&:not($appBarSticky)': {
|
|
835
|
+
borderBottomColor: ColorDynamic.Transparent
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
},
|
|
839
|
+
appBarSticky: {},
|
|
840
|
+
toolbar: {
|
|
841
|
+
'&.MuiToolbar-gutters': {
|
|
842
|
+
paddingLeft: theme.spacing(3),
|
|
843
|
+
paddingRight: theme.spacing(3),
|
|
844
|
+
[theme.breakpoints.up('md')]: {
|
|
845
|
+
paddingLeft: theme.spacing(4),
|
|
846
|
+
paddingRight: theme.spacing(4)
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
},
|
|
850
|
+
startAction: {
|
|
851
|
+
marginRight: theme.spacing(0.5),
|
|
852
|
+
'& .MuiIconButton-edgeStart': {
|
|
853
|
+
marginLeft: theme.spacing(-2)
|
|
854
|
+
}
|
|
855
|
+
},
|
|
856
|
+
endAction: {
|
|
857
|
+
marginLeft: theme.spacing(0.5),
|
|
858
|
+
'& .MuiIconButton-edgeEnd': {
|
|
859
|
+
marginRight: theme.spacing(-2)
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
}), {
|
|
863
|
+
name: 'SD-DrawerTitle'
|
|
864
|
+
});
|
|
865
|
+
/** @deprecated Use `<AppDrawer>` instead. */
|
|
866
|
+
var DrawerTitle = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
|
|
867
|
+
var {
|
|
868
|
+
title,
|
|
869
|
+
titleTypographyProps,
|
|
870
|
+
subtitle,
|
|
871
|
+
subtitleTypographyProps,
|
|
872
|
+
startAction,
|
|
873
|
+
endAction,
|
|
874
|
+
className
|
|
875
|
+
} = _ref,
|
|
876
|
+
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
877
|
+
var styles = useStyles$4();
|
|
878
|
+
return /*#__PURE__*/jsx(VisibilityObserver, {
|
|
879
|
+
render: _ref2 => {
|
|
880
|
+
var {
|
|
881
|
+
ref,
|
|
882
|
+
visibility
|
|
883
|
+
} = _ref2;
|
|
884
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
885
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
886
|
+
ref: ref
|
|
887
|
+
}), /*#__PURE__*/jsx(AppBar, _objectSpread(_objectSpread({}, props), {}, {
|
|
888
|
+
ref: appBarRef,
|
|
889
|
+
position: "sticky",
|
|
890
|
+
className: clsx(styles.appBar, className, {
|
|
891
|
+
[styles.appBarSticky]: visibility === 'invisible'
|
|
892
|
+
}),
|
|
893
|
+
children: /*#__PURE__*/jsx(Toolbar, {
|
|
894
|
+
className: styles.toolbar,
|
|
895
|
+
children: /*#__PURE__*/jsxs(Grid, {
|
|
896
|
+
container: true,
|
|
897
|
+
direction: "column",
|
|
898
|
+
children: [/*#__PURE__*/jsx(Grid, {
|
|
899
|
+
item: true,
|
|
900
|
+
children: /*#__PURE__*/jsxs(Grid, {
|
|
901
|
+
container: true,
|
|
902
|
+
alignItems: "center",
|
|
903
|
+
children: [!!startAction && /*#__PURE__*/jsx(Grid, {
|
|
904
|
+
item: true,
|
|
905
|
+
className: styles.startAction,
|
|
906
|
+
children: startAction
|
|
907
|
+
}), /*#__PURE__*/jsx(Grid, {
|
|
908
|
+
item: true,
|
|
909
|
+
xs: true,
|
|
910
|
+
zeroMinWidth: true,
|
|
911
|
+
children: /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({
|
|
912
|
+
variant: "h3",
|
|
913
|
+
noWrap: true
|
|
914
|
+
}, titleTypographyProps), {}, {
|
|
915
|
+
children: title
|
|
916
|
+
}))
|
|
917
|
+
}), !!endAction && /*#__PURE__*/jsx(Grid, {
|
|
918
|
+
item: true,
|
|
919
|
+
className: styles.endAction,
|
|
920
|
+
children: endAction
|
|
921
|
+
})]
|
|
922
|
+
})
|
|
923
|
+
}), /*#__PURE__*/jsx(Grid, {
|
|
924
|
+
item: true,
|
|
925
|
+
children: !!subtitle && /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({
|
|
926
|
+
variant: "body2",
|
|
927
|
+
noWrap: true
|
|
928
|
+
}, subtitleTypographyProps), {}, {
|
|
929
|
+
children: subtitle
|
|
930
|
+
}))
|
|
931
|
+
})]
|
|
932
|
+
})
|
|
933
|
+
})
|
|
934
|
+
}))]
|
|
935
|
+
});
|
|
936
|
+
}
|
|
937
|
+
});
|
|
938
|
+
});
|
|
939
|
+
if (process.env.NODE_ENV !== "production") DrawerTitle.displayName = "DrawerTitle";
|
|
940
|
+
|
|
941
|
+
var StyledActionsLayout = /*#__PURE__*/styled.div.withConfig({
|
|
942
|
+
displayName: "AppDrawer__StyledActionsLayout",
|
|
943
|
+
componentId: "SD__sc-1ivw8lf-0"
|
|
944
|
+
})(["display:flex;gap:16px;"]);
|
|
945
|
+
var sizeToMaxWidthMap = {
|
|
946
|
+
md: '432px',
|
|
947
|
+
lg: '600px',
|
|
948
|
+
xl: '746px',
|
|
949
|
+
xxl: '900px'
|
|
950
|
+
};
|
|
951
|
+
function AppDrawer(_ref) {
|
|
952
|
+
var {
|
|
953
|
+
title,
|
|
954
|
+
subtitle,
|
|
955
|
+
children,
|
|
956
|
+
open,
|
|
957
|
+
onClose,
|
|
958
|
+
onBack,
|
|
959
|
+
primaryAction,
|
|
960
|
+
secondaryAction,
|
|
961
|
+
disableContentPadding = false,
|
|
962
|
+
disableCloseButton = false,
|
|
963
|
+
size = 'md'
|
|
964
|
+
} = _ref;
|
|
965
|
+
return /*#__PURE__*/jsxs(Drawer, {
|
|
966
|
+
open: open,
|
|
967
|
+
onClose: onClose,
|
|
968
|
+
anchor: "right",
|
|
969
|
+
PaperProps: {
|
|
970
|
+
style: {
|
|
971
|
+
width: '100%',
|
|
972
|
+
maxWidth: sizeToMaxWidthMap[size]
|
|
973
|
+
}
|
|
974
|
+
},
|
|
975
|
+
children: [/*#__PURE__*/jsx(DrawerTitle, {
|
|
976
|
+
title: title,
|
|
977
|
+
subtitle: subtitle,
|
|
978
|
+
startAction: onBack && /*#__PURE__*/jsx(IconButton, {
|
|
979
|
+
onClick: onBack,
|
|
980
|
+
edge: "start",
|
|
981
|
+
children: /*#__PURE__*/jsx(ArrowBack, {
|
|
982
|
+
color: "action"
|
|
983
|
+
})
|
|
984
|
+
}),
|
|
985
|
+
endAction: !disableCloseButton && /*#__PURE__*/jsx(IconButton, {
|
|
986
|
+
onClick: onClose,
|
|
987
|
+
children: /*#__PURE__*/jsx(Close, {
|
|
988
|
+
color: "action"
|
|
989
|
+
})
|
|
990
|
+
})
|
|
991
|
+
}), disableContentPadding ? children : /*#__PURE__*/jsx(DrawerContent, {
|
|
992
|
+
children: children
|
|
993
|
+
}), (primaryAction || secondaryAction) && /*#__PURE__*/jsx(DrawerActions, {
|
|
994
|
+
children: /*#__PURE__*/jsxs(StyledActionsLayout, {
|
|
995
|
+
children: [primaryAction && /*#__PURE__*/jsx(Button, {
|
|
996
|
+
type: "button",
|
|
997
|
+
onClick: primaryAction.onClick,
|
|
998
|
+
variant: "contained",
|
|
999
|
+
children: primaryAction.label
|
|
1000
|
+
}), secondaryAction && /*#__PURE__*/jsx(Button, {
|
|
1001
|
+
type: "button",
|
|
1002
|
+
onClick: secondaryAction.onClick,
|
|
1003
|
+
variant: "outlined",
|
|
1004
|
+
children: secondaryAction.label
|
|
1005
|
+
})]
|
|
1006
|
+
})
|
|
1007
|
+
})]
|
|
1008
|
+
});
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
var _excluded$7 = ["size", "icon", "isLoading", "classes", "disabled", "avatarRef", "className", "alt", "imgProps", "sizes", "src", "srcSet", "variant", "children"],
|
|
679
1012
|
_excluded2 = ["button", "overlay", "progress", "withIcon", "sizeLarge"];
|
|
680
|
-
var useStyles$
|
|
1013
|
+
var useStyles$5 = /*#__PURE__*/makeStyles(theme => {
|
|
681
1014
|
var sm = theme.breakpoints.up('sm');
|
|
682
1015
|
return {
|
|
683
1016
|
button: {
|
|
@@ -786,8 +1119,8 @@ var AvatarButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
786
1119
|
variant,
|
|
787
1120
|
children
|
|
788
1121
|
} = _ref,
|
|
789
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
790
|
-
var _useStyles = useStyles$
|
|
1122
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
1123
|
+
var _useStyles = useStyles$5({
|
|
791
1124
|
classes
|
|
792
1125
|
}),
|
|
793
1126
|
{
|
|
@@ -803,7 +1136,10 @@ var AvatarButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
803
1136
|
"aria-busy": isLoading,
|
|
804
1137
|
"aria-disabled": disabled,
|
|
805
1138
|
disabled: disabled || isLoading,
|
|
806
|
-
className: clsx(className, buttonClassName,
|
|
1139
|
+
className: clsx(className, buttonClassName, {
|
|
1140
|
+
[withIconClassName]: !!icon,
|
|
1141
|
+
[sizeLargeClassName]: size === 'large'
|
|
1142
|
+
}),
|
|
807
1143
|
children: [/*#__PURE__*/jsx(Avatar, {
|
|
808
1144
|
ref: avatarRef,
|
|
809
1145
|
classes: avatarClasses,
|
|
@@ -826,8 +1162,8 @@ var AvatarButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
826
1162
|
});
|
|
827
1163
|
if (process.env.NODE_ENV !== "production") AvatarButton.displayName = "AvatarButton";
|
|
828
1164
|
|
|
829
|
-
var _excluded$
|
|
830
|
-
var useStyles$
|
|
1165
|
+
var _excluded$8 = ["hint", "size", "error", "classes", "className", "children", "endIcon", "startIcon", "disabled"];
|
|
1166
|
+
var useStyles$6 = /*#__PURE__*/makeStyles(theme => ({
|
|
831
1167
|
root: {
|
|
832
1168
|
width: '100%',
|
|
833
1169
|
display: 'flex',
|
|
@@ -913,17 +1249,20 @@ var CardButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
913
1249
|
startIcon,
|
|
914
1250
|
disabled
|
|
915
1251
|
} = _ref,
|
|
916
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
917
|
-
var styles = useStyles$
|
|
1252
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
1253
|
+
var styles = useStyles$6({
|
|
918
1254
|
classes
|
|
919
1255
|
});
|
|
920
1256
|
return /*#__PURE__*/jsx(ButtonBase, _objectSpread(_objectSpread({}, props), {}, {
|
|
921
1257
|
ref: ref,
|
|
922
1258
|
disabled: disabled,
|
|
923
|
-
className: clsx(styles.root,
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
1259
|
+
className: clsx(styles.root, {
|
|
1260
|
+
[styles.disabled]: disabled,
|
|
1261
|
+
[styles.error]: !disabled && error,
|
|
1262
|
+
[styles.primary]: !disabled && !error,
|
|
1263
|
+
[styles.sizeSmall]: size === 'small',
|
|
1264
|
+
[styles.sizeLarge]: size === 'large'
|
|
1265
|
+
}, className),
|
|
927
1266
|
children: error ? /*#__PURE__*/jsxs(Typography, {
|
|
928
1267
|
variant: "h4",
|
|
929
1268
|
color: "inherit",
|
|
@@ -955,7 +1294,7 @@ var CardButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
955
1294
|
});
|
|
956
1295
|
if (process.env.NODE_ENV !== "production") CardButton.displayName = "CardButton";
|
|
957
1296
|
|
|
958
|
-
var _excluded$
|
|
1297
|
+
var _excluded$9 = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlProps", "FormControlLabelProps"];
|
|
959
1298
|
var FormControl = /*#__PURE__*/styled(FormControl$2).withConfig({
|
|
960
1299
|
displayName: "CheckboxField__FormControl",
|
|
961
1300
|
componentId: "SD__sc-1wxu0g6-0"
|
|
@@ -975,7 +1314,7 @@ var CheckboxField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
975
1314
|
FormControlProps: formControlProps,
|
|
976
1315
|
FormControlLabelProps: formControlLabelProps
|
|
977
1316
|
} = _ref,
|
|
978
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1317
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
979
1318
|
return /*#__PURE__*/jsxs(FormControl, _objectSpread(_objectSpread({
|
|
980
1319
|
error: error
|
|
981
1320
|
}, formControlProps), {}, {
|
|
@@ -995,7 +1334,7 @@ var CheckboxField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
995
1334
|
});
|
|
996
1335
|
if (process.env.NODE_ENV !== "production") CheckboxField.displayName = "CheckboxField";
|
|
997
1336
|
|
|
998
|
-
var _excluded$
|
|
1337
|
+
var _excluded$a = ["FormGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
|
|
999
1338
|
var FormLabel = /*#__PURE__*/styled(FormLabel$2).withConfig({
|
|
1000
1339
|
displayName: "CheckboxGroudField__FormLabel",
|
|
1001
1340
|
componentId: "SD__sc-1lihyfy-0"
|
|
@@ -1013,7 +1352,7 @@ var CheckboxGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1013
1352
|
FormHelperTextProps: formHelperTextProps,
|
|
1014
1353
|
children
|
|
1015
1354
|
} = _ref,
|
|
1016
|
-
formControlProps = _objectWithoutProperties(_ref, _excluded$
|
|
1355
|
+
formControlProps = _objectWithoutProperties(_ref, _excluded$a);
|
|
1017
1356
|
return /*#__PURE__*/jsxs(FormControl$2, _objectSpread(_objectSpread({}, formControlProps), {}, {
|
|
1018
1357
|
hiddenLabel: !label,
|
|
1019
1358
|
children: [!!label && /*#__PURE__*/jsx(FormLabel, _objectSpread(_objectSpread({}, formLabelProps), {}, {
|
|
@@ -1211,74 +1550,17 @@ var Columns = /*#__PURE__*/styled.div.withConfig({
|
|
|
1211
1550
|
space: spaceProp = 'none',
|
|
1212
1551
|
reverse: reverseProp = false
|
|
1213
1552
|
} = _ref;
|
|
1214
|
-
var align = parseResponsiveProp(alignProp);
|
|
1215
|
-
var horizontalAlign = parseResponsiveProp(horizontalAlignProp);
|
|
1216
|
-
var space = parseResponsiveProp(spaceProp);
|
|
1217
|
-
var reverse = parseResponsiveProp(reverseProp);
|
|
1218
|
-
var collapsed = parseCollapsedBelow(collapseBelow);
|
|
1219
|
-
return css(["width:100%;display:flex;", ";", "{", ";}", "{", ";}"], columnsRootMixin(align[0], horizontalAlign[0], space[0], reverse[0], collapsed[0]), theme.breakpoints.up('sm'), columnsRootMixin(align[1], horizontalAlign[1], space[1], reverse[1], collapsed[1]), theme.breakpoints.up('md'), columnsRootMixin(align[2], horizontalAlign[2], space[2], reverse[2], collapsed[2]));
|
|
1220
|
-
});
|
|
1221
|
-
|
|
1222
|
-
function renderChildren(node) {
|
|
1223
|
-
if (node == null || typeof node == 'boolean') {
|
|
1224
|
-
return null;
|
|
1225
|
-
}
|
|
1226
|
-
|
|
1227
|
-
// Workaround for https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18051
|
|
1228
|
-
return node;
|
|
1229
|
-
}
|
|
1230
|
-
|
|
1231
|
-
var _excluded$7 = ["render", "onChange"];
|
|
1232
|
-
function useVisibilityObserver(node) {
|
|
1233
|
-
var {
|
|
1234
|
-
threshold = 0,
|
|
1235
|
-
marginTop = '0px',
|
|
1236
|
-
marginLeft = '0px',
|
|
1237
|
-
marginRight = '0px',
|
|
1238
|
-
marginBottom = '0px'
|
|
1239
|
-
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
1240
|
-
var [state, setState] = useState('undetermined');
|
|
1241
|
-
var rootMargin = "".concat(marginTop, " ").concat(marginRight, " ").concat(marginBottom, " ").concat(marginLeft);
|
|
1242
|
-
useLayoutEffect(() => {
|
|
1243
|
-
if (!node || !('IntersectionObserver' in window)) {
|
|
1244
|
-
setState('undetermined');
|
|
1245
|
-
return;
|
|
1246
|
-
}
|
|
1247
|
-
var observer = new IntersectionObserver(_ref => {
|
|
1248
|
-
var [entry] = _ref;
|
|
1249
|
-
setState(entry !== null && entry !== void 0 && entry.isIntersecting && document.visibilityState === 'visible' ? 'visible' : 'invisible');
|
|
1250
|
-
}, {
|
|
1251
|
-
rootMargin,
|
|
1252
|
-
threshold
|
|
1253
|
-
});
|
|
1254
|
-
observer.observe(node);
|
|
1255
|
-
return () => {
|
|
1256
|
-
observer.disconnect();
|
|
1257
|
-
};
|
|
1258
|
-
}, [node, threshold, rootMargin]);
|
|
1259
|
-
return state;
|
|
1260
|
-
}
|
|
1261
|
-
function VisibilityObserver(_ref2) {
|
|
1262
|
-
var {
|
|
1263
|
-
render,
|
|
1264
|
-
onChange
|
|
1265
|
-
} = _ref2,
|
|
1266
|
-
options = _objectWithoutProperties(_ref2, _excluded$7);
|
|
1267
|
-
var [node, setNode] = useState(null);
|
|
1268
|
-
var visibility = useVisibilityObserver(node, options);
|
|
1269
|
-
var children = render({
|
|
1270
|
-
ref: setNode,
|
|
1271
|
-
visibility
|
|
1272
|
-
});
|
|
1273
|
-
useValueObserver(visibility, () => {
|
|
1274
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(visibility);
|
|
1275
|
-
});
|
|
1276
|
-
return renderChildren(children);
|
|
1277
|
-
}
|
|
1553
|
+
var align = parseResponsiveProp(alignProp);
|
|
1554
|
+
var horizontalAlign = parseResponsiveProp(horizontalAlignProp);
|
|
1555
|
+
var space = parseResponsiveProp(spaceProp);
|
|
1556
|
+
var reverse = parseResponsiveProp(reverseProp);
|
|
1557
|
+
var collapsed = parseCollapsedBelow(collapseBelow);
|
|
1558
|
+
return css(["width:100%;display:flex;", ";", "{", ";}", "{", ";}"], columnsRootMixin(align[0], horizontalAlign[0], space[0], reverse[0], collapsed[0]), theme.breakpoints.up('sm'), columnsRootMixin(align[1], horizontalAlign[1], space[1], reverse[1], collapsed[1]), theme.breakpoints.up('md'), columnsRootMixin(align[2], horizontalAlign[2], space[2], reverse[2], collapsed[2]));
|
|
1559
|
+
});
|
|
1278
1560
|
|
|
1279
|
-
var _excluded$
|
|
1561
|
+
var _excluded$b = ["title", "enterDelay"],
|
|
1280
1562
|
_excluded2$1 = ["onClick", "children", "className", "disableUnderline", "TooltipProps"];
|
|
1281
|
-
var useStyles$
|
|
1563
|
+
var useStyles$7 = /*#__PURE__*/makeStyles(theme => ({
|
|
1282
1564
|
root: {
|
|
1283
1565
|
marginBottom: -1,
|
|
1284
1566
|
borderBottom: '1px dashed transparent',
|
|
@@ -1308,10 +1590,10 @@ var OverflowText = /*#__PURE__*/forwardRef((_ref, rootRef) => {
|
|
|
1308
1590
|
enterDelay = 1000
|
|
1309
1591
|
} = {}
|
|
1310
1592
|
} = _ref,
|
|
1311
|
-
tooltipProps = _objectWithoutProperties(_ref.TooltipProps, _excluded$
|
|
1593
|
+
tooltipProps = _objectWithoutProperties(_ref.TooltipProps, _excluded$b),
|
|
1312
1594
|
props = _objectWithoutProperties(_ref, _excluded2$1);
|
|
1313
1595
|
var [isOpen, setIsOpen] = useState(false);
|
|
1314
|
-
var styles = useStyles$
|
|
1596
|
+
var styles = useStyles$7();
|
|
1315
1597
|
return /*#__PURE__*/jsx(VisibilityObserver, {
|
|
1316
1598
|
render: _ref2 => {
|
|
1317
1599
|
var {
|
|
@@ -1337,7 +1619,9 @@ var OverflowText = /*#__PURE__*/forwardRef((_ref, rootRef) => {
|
|
|
1337
1619
|
setIsOpen(true);
|
|
1338
1620
|
_onClick === null || _onClick === void 0 ? void 0 : _onClick(event);
|
|
1339
1621
|
},
|
|
1340
|
-
className: clsx(styles.root,
|
|
1622
|
+
className: clsx(styles.root, {
|
|
1623
|
+
[styles.truncated]: !disableUnderline && visibility === 'invisible'
|
|
1624
|
+
}, className),
|
|
1341
1625
|
children: [children, !!children && /*#__PURE__*/jsx("span", {
|
|
1342
1626
|
ref: ref,
|
|
1343
1627
|
className: styles.sentinel
|
|
@@ -1359,7 +1643,7 @@ function useUID(defaultID) {
|
|
|
1359
1643
|
return defaultID || uid;
|
|
1360
1644
|
}
|
|
1361
1645
|
|
|
1362
|
-
var _excluded$
|
|
1646
|
+
var _excluded$c = ["size"];
|
|
1363
1647
|
function sizeVariant(theme, mobileSpacing, desktopSpacing) {
|
|
1364
1648
|
return {
|
|
1365
1649
|
'& > $list, & > $item': {
|
|
@@ -1372,7 +1656,7 @@ function sizeVariant(theme, mobileSpacing, desktopSpacing) {
|
|
|
1372
1656
|
}
|
|
1373
1657
|
};
|
|
1374
1658
|
}
|
|
1375
|
-
var useStyles$
|
|
1659
|
+
var useStyles$8 = /*#__PURE__*/makeStyles(theme => ({
|
|
1376
1660
|
list: sizeVariant(theme, 2, 1),
|
|
1377
1661
|
listSmall: sizeVariant(theme, 1, 0.5),
|
|
1378
1662
|
listLarge: sizeVariant(theme, 3, 2),
|
|
@@ -1403,15 +1687,15 @@ var DescriptionList = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1403
1687
|
var {
|
|
1404
1688
|
size
|
|
1405
1689
|
} = _ref,
|
|
1406
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1407
|
-
var styles = useStyles$
|
|
1690
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
1691
|
+
var styles = useStyles$8();
|
|
1408
1692
|
return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({}, props), {}, {
|
|
1409
1693
|
ref: ref,
|
|
1410
1694
|
"data-size": size,
|
|
1411
1695
|
className: clsx(styles.list, {
|
|
1412
|
-
'small'
|
|
1413
|
-
'large'
|
|
1414
|
-
}
|
|
1696
|
+
[styles.listSmall]: size === 'small',
|
|
1697
|
+
[styles.listLarge]: size === 'large'
|
|
1698
|
+
})
|
|
1415
1699
|
}));
|
|
1416
1700
|
});
|
|
1417
1701
|
|
|
@@ -1430,7 +1714,7 @@ var DescriptionListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
1430
1714
|
contentTypographyProps,
|
|
1431
1715
|
fallback
|
|
1432
1716
|
} = _ref2;
|
|
1433
|
-
var styles = useStyles$
|
|
1717
|
+
var styles = useStyles$8();
|
|
1434
1718
|
var labelID = useUID(labelTypographyProps === null || labelTypographyProps === void 0 ? void 0 : labelTypographyProps.id);
|
|
1435
1719
|
var shouldRenderFallback = isEmptyReactNode(content);
|
|
1436
1720
|
return /*#__PURE__*/jsxs("div", {
|
|
@@ -1458,92 +1742,7 @@ var DescriptionListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
1458
1742
|
});
|
|
1459
1743
|
if (process.env.NODE_ENV !== "production") DescriptionListItem.displayName = "DescriptionListItem";
|
|
1460
1744
|
|
|
1461
|
-
var _excluded$
|
|
1462
|
-
var useStyles$6 = /*#__PURE__*/makeStyles(theme => ({
|
|
1463
|
-
appBar: {
|
|
1464
|
-
'&&': {
|
|
1465
|
-
bottom: 0,
|
|
1466
|
-
top: 'auto',
|
|
1467
|
-
borderLeft: 'none',
|
|
1468
|
-
borderRight: 'none',
|
|
1469
|
-
borderBottom: 'none',
|
|
1470
|
-
transition: theme.transitions.create(['border-color']),
|
|
1471
|
-
'&:not($appBarSticky)': {
|
|
1472
|
-
borderTopColor: ColorDynamic.Transparent
|
|
1473
|
-
}
|
|
1474
|
-
}
|
|
1475
|
-
},
|
|
1476
|
-
appBarSticky: {},
|
|
1477
|
-
toolbar: {
|
|
1478
|
-
'&.MuiToolbar-gutters': {
|
|
1479
|
-
paddingLeft: theme.spacing(3),
|
|
1480
|
-
paddingRight: theme.spacing(3),
|
|
1481
|
-
[theme.breakpoints.up('md')]: {
|
|
1482
|
-
paddingLeft: theme.spacing(4),
|
|
1483
|
-
paddingRight: theme.spacing(4)
|
|
1484
|
-
}
|
|
1485
|
-
}
|
|
1486
|
-
}
|
|
1487
|
-
}), {
|
|
1488
|
-
name: 'SD-DrawerActions'
|
|
1489
|
-
});
|
|
1490
|
-
var DrawerActions = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
|
|
1491
|
-
var {
|
|
1492
|
-
children,
|
|
1493
|
-
className
|
|
1494
|
-
} = _ref,
|
|
1495
|
-
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
1496
|
-
var styles = useStyles$6();
|
|
1497
|
-
return /*#__PURE__*/jsx(VisibilityObserver, {
|
|
1498
|
-
render: _ref2 => {
|
|
1499
|
-
var {
|
|
1500
|
-
ref,
|
|
1501
|
-
visibility
|
|
1502
|
-
} = _ref2;
|
|
1503
|
-
return /*#__PURE__*/jsxs(Fragment, {
|
|
1504
|
-
children: [/*#__PURE__*/jsx(AppBar, _objectSpread(_objectSpread({}, props), {}, {
|
|
1505
|
-
ref: appBarRef,
|
|
1506
|
-
position: "sticky",
|
|
1507
|
-
className: clsx(className, styles.appBar, visibility === 'invisible' && styles.appBarSticky),
|
|
1508
|
-
children: /*#__PURE__*/jsx(Toolbar, {
|
|
1509
|
-
className: styles.toolbar,
|
|
1510
|
-
children: children
|
|
1511
|
-
})
|
|
1512
|
-
})), /*#__PURE__*/jsx("div", {
|
|
1513
|
-
ref: ref
|
|
1514
|
-
})]
|
|
1515
|
-
});
|
|
1516
|
-
}
|
|
1517
|
-
});
|
|
1518
|
-
});
|
|
1519
|
-
if (process.env.NODE_ENV !== "production") DrawerActions.displayName = "DrawerActions";
|
|
1520
|
-
|
|
1521
|
-
var _excluded$b = ["className"];
|
|
1522
|
-
var useStyles$7 = /*#__PURE__*/makeStyles(theme => ({
|
|
1523
|
-
root: {
|
|
1524
|
-
maxWidth: '100%',
|
|
1525
|
-
padding: theme.spacing(2, 3),
|
|
1526
|
-
[theme.breakpoints.up('md')]: {
|
|
1527
|
-
padding: theme.spacing(2, 4)
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
}), {
|
|
1531
|
-
name: 'SD-DrawerContent'
|
|
1532
|
-
});
|
|
1533
|
-
var DrawerContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
1534
|
-
var {
|
|
1535
|
-
className
|
|
1536
|
-
} = _ref,
|
|
1537
|
-
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
1538
|
-
var styles = useStyles$7();
|
|
1539
|
-
return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({}, props), {}, {
|
|
1540
|
-
ref: ref,
|
|
1541
|
-
className: clsx(styles.root, className)
|
|
1542
|
-
}));
|
|
1543
|
-
});
|
|
1544
|
-
if (process.env.NODE_ENV !== "production") DrawerContent.displayName = "DrawerContent";
|
|
1545
|
-
|
|
1546
|
-
var _excluded$c = ["className"];
|
|
1745
|
+
var _excluded$d = ["className"];
|
|
1547
1746
|
function listItemMixins(theme, space) {
|
|
1548
1747
|
return {
|
|
1549
1748
|
'& .MuiListItem-gutters': {
|
|
@@ -1561,7 +1760,7 @@ function listItemMixins(theme, space) {
|
|
|
1561
1760
|
}
|
|
1562
1761
|
};
|
|
1563
1762
|
}
|
|
1564
|
-
var useStyles$
|
|
1763
|
+
var useStyles$9 = /*#__PURE__*/makeStyles(theme => ({
|
|
1565
1764
|
root: _objectSpread(_objectSpread({
|
|
1566
1765
|
maxWidth: '100%'
|
|
1567
1766
|
}, listItemMixins(theme, 3)), {}, {
|
|
@@ -1574,8 +1773,8 @@ var DrawerList = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1574
1773
|
var {
|
|
1575
1774
|
className
|
|
1576
1775
|
} = _ref,
|
|
1577
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1578
|
-
var styles = useStyles$
|
|
1776
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
1777
|
+
var styles = useStyles$9();
|
|
1579
1778
|
return /*#__PURE__*/jsx(List, _objectSpread(_objectSpread({}, props), {}, {
|
|
1580
1779
|
ref: ref,
|
|
1581
1780
|
component: "div",
|
|
@@ -1584,118 +1783,6 @@ var DrawerList = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1584
1783
|
});
|
|
1585
1784
|
if (process.env.NODE_ENV !== "production") DrawerList.displayName = "DrawerList";
|
|
1586
1785
|
|
|
1587
|
-
var _excluded$d = ["title", "titleTypographyProps", "subtitle", "subtitleTypographyProps", "startAction", "endAction", "className"];
|
|
1588
|
-
var useStyles$9 = /*#__PURE__*/makeStyles(theme => ({
|
|
1589
|
-
appBar: {
|
|
1590
|
-
'&&': {
|
|
1591
|
-
borderTop: 'none',
|
|
1592
|
-
borderLeft: 'none',
|
|
1593
|
-
borderRight: 'none',
|
|
1594
|
-
transition: theme.transitions.create(['border-color']),
|
|
1595
|
-
'&:not($appBarSticky)': {
|
|
1596
|
-
borderBottomColor: ColorDynamic.Transparent
|
|
1597
|
-
}
|
|
1598
|
-
}
|
|
1599
|
-
},
|
|
1600
|
-
appBarSticky: {},
|
|
1601
|
-
toolbar: {
|
|
1602
|
-
'&.MuiToolbar-gutters': {
|
|
1603
|
-
paddingLeft: theme.spacing(3),
|
|
1604
|
-
paddingRight: theme.spacing(3),
|
|
1605
|
-
[theme.breakpoints.up('md')]: {
|
|
1606
|
-
paddingLeft: theme.spacing(4),
|
|
1607
|
-
paddingRight: theme.spacing(4)
|
|
1608
|
-
}
|
|
1609
|
-
}
|
|
1610
|
-
},
|
|
1611
|
-
startAction: {
|
|
1612
|
-
marginRight: theme.spacing(0.5),
|
|
1613
|
-
'& .MuiIconButton-edgeStart': {
|
|
1614
|
-
marginLeft: theme.spacing(-2)
|
|
1615
|
-
}
|
|
1616
|
-
},
|
|
1617
|
-
endAction: {
|
|
1618
|
-
marginLeft: theme.spacing(0.5),
|
|
1619
|
-
'& .MuiIconButton-edgeEnd': {
|
|
1620
|
-
marginRight: theme.spacing(-2)
|
|
1621
|
-
}
|
|
1622
|
-
}
|
|
1623
|
-
}), {
|
|
1624
|
-
name: 'SD-DrawerTitle'
|
|
1625
|
-
});
|
|
1626
|
-
var DrawerTitle = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
|
|
1627
|
-
var {
|
|
1628
|
-
title,
|
|
1629
|
-
titleTypographyProps,
|
|
1630
|
-
subtitle,
|
|
1631
|
-
subtitleTypographyProps,
|
|
1632
|
-
startAction,
|
|
1633
|
-
endAction,
|
|
1634
|
-
className
|
|
1635
|
-
} = _ref,
|
|
1636
|
-
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
1637
|
-
var styles = useStyles$9();
|
|
1638
|
-
return /*#__PURE__*/jsx(VisibilityObserver, {
|
|
1639
|
-
render: _ref2 => {
|
|
1640
|
-
var {
|
|
1641
|
-
ref,
|
|
1642
|
-
visibility
|
|
1643
|
-
} = _ref2;
|
|
1644
|
-
return /*#__PURE__*/jsxs(Fragment, {
|
|
1645
|
-
children: [/*#__PURE__*/jsx("div", {
|
|
1646
|
-
ref: ref
|
|
1647
|
-
}), /*#__PURE__*/jsx(AppBar, _objectSpread(_objectSpread({}, props), {}, {
|
|
1648
|
-
ref: appBarRef,
|
|
1649
|
-
position: "sticky",
|
|
1650
|
-
className: clsx(styles.appBar, className, visibility === 'invisible' && styles.appBarSticky),
|
|
1651
|
-
children: /*#__PURE__*/jsx(Toolbar, {
|
|
1652
|
-
className: styles.toolbar,
|
|
1653
|
-
children: /*#__PURE__*/jsxs(Grid, {
|
|
1654
|
-
container: true,
|
|
1655
|
-
direction: "column",
|
|
1656
|
-
children: [/*#__PURE__*/jsx(Grid, {
|
|
1657
|
-
item: true,
|
|
1658
|
-
children: /*#__PURE__*/jsxs(Grid, {
|
|
1659
|
-
container: true,
|
|
1660
|
-
alignItems: "center",
|
|
1661
|
-
children: [!!startAction && /*#__PURE__*/jsx(Grid, {
|
|
1662
|
-
item: true,
|
|
1663
|
-
className: styles.startAction,
|
|
1664
|
-
children: startAction
|
|
1665
|
-
}), /*#__PURE__*/jsx(Grid, {
|
|
1666
|
-
item: true,
|
|
1667
|
-
xs: true,
|
|
1668
|
-
zeroMinWidth: true,
|
|
1669
|
-
children: /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({
|
|
1670
|
-
variant: "h3",
|
|
1671
|
-
noWrap: true
|
|
1672
|
-
}, titleTypographyProps), {}, {
|
|
1673
|
-
children: title
|
|
1674
|
-
}))
|
|
1675
|
-
}), !!endAction && /*#__PURE__*/jsx(Grid, {
|
|
1676
|
-
item: true,
|
|
1677
|
-
className: styles.endAction,
|
|
1678
|
-
children: endAction
|
|
1679
|
-
})]
|
|
1680
|
-
})
|
|
1681
|
-
}), /*#__PURE__*/jsx(Grid, {
|
|
1682
|
-
item: true,
|
|
1683
|
-
children: !!subtitle && /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({
|
|
1684
|
-
variant: "body2",
|
|
1685
|
-
noWrap: true
|
|
1686
|
-
}, subtitleTypographyProps), {}, {
|
|
1687
|
-
children: subtitle
|
|
1688
|
-
}))
|
|
1689
|
-
})]
|
|
1690
|
-
})
|
|
1691
|
-
})
|
|
1692
|
-
}))]
|
|
1693
|
-
});
|
|
1694
|
-
}
|
|
1695
|
-
});
|
|
1696
|
-
});
|
|
1697
|
-
if (process.env.NODE_ENV !== "production") DrawerTitle.displayName = "DrawerTitle";
|
|
1698
|
-
|
|
1699
1786
|
var _excluded$e = ["children", "alignItems"];
|
|
1700
1787
|
/**
|
|
1701
1788
|
* @deprecated in favor of `Stack`.
|
|
@@ -1816,7 +1903,10 @@ var InfoCard = /*#__PURE__*/forwardRef((_ref, _ref2) => {
|
|
|
1816
1903
|
setRootNode(node);
|
|
1817
1904
|
},
|
|
1818
1905
|
classes: styles,
|
|
1819
|
-
className: clsx(className,
|
|
1906
|
+
className: clsx(className, {
|
|
1907
|
+
[sizeLargeClassName]: size === 'large',
|
|
1908
|
+
[fullWidthClassName]: isFullWidth
|
|
1909
|
+
}),
|
|
1820
1910
|
children: /*#__PURE__*/jsx(CardContent, _objectSpread(_objectSpread({}, cardContentProps), {}, {
|
|
1821
1911
|
className: clsx(cardContentProps.className, contentClassName),
|
|
1822
1912
|
children: children
|
|
@@ -2306,9 +2396,9 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2306
2396
|
ref: ref,
|
|
2307
2397
|
classes: styles,
|
|
2308
2398
|
className: clsx(className, {
|
|
2309
|
-
'error'
|
|
2310
|
-
'success'
|
|
2311
|
-
}
|
|
2399
|
+
[variantError]: variant === 'error',
|
|
2400
|
+
[variantSuccess]: variant === 'success'
|
|
2401
|
+
}),
|
|
2312
2402
|
message: /*#__PURE__*/jsxs(Fragment, {
|
|
2313
2403
|
children: [Icon && /*#__PURE__*/jsx(Icon, {
|
|
2314
2404
|
className: icon
|
|
@@ -2623,19 +2713,7 @@ var Tag = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2623
2713
|
noWrap: noWrap,
|
|
2624
2714
|
component: component,
|
|
2625
2715
|
variant: fontWeight === 'bold' ? 'body1' : 'body2',
|
|
2626
|
-
className: clsx(styles.root, className,
|
|
2627
|
-
'grey': styles.colorGrey,
|
|
2628
|
-
'dark': styles.colorDark,
|
|
2629
|
-
'blue': styles.colorBlue,
|
|
2630
|
-
'green': styles.colorGreen,
|
|
2631
|
-
'purple': styles.colorPurple,
|
|
2632
|
-
'red': styles.colorRed,
|
|
2633
|
-
'teal': styles.colorTeal,
|
|
2634
|
-
'yellow': styles.colorYellow
|
|
2635
|
-
}[color], {
|
|
2636
|
-
'subtle': styles.variantSubtle,
|
|
2637
|
-
'bold': styles.variantBold
|
|
2638
|
-
}[variant]),
|
|
2716
|
+
className: clsx(styles.root, color === 'grey' && styles.colorGrey, color === 'dark' && styles.colorDark, color === 'blue' && styles.colorBlue, color === 'green' && styles.colorGreen, color === 'purple' && styles.colorPurple, color === 'red' && styles.colorRed, color === 'teal' && styles.colorTeal, color === 'yellow' && styles.colorYellow, variant === 'subtle' && styles.variantSubtle, variant === 'bold' && styles.variantBold, className),
|
|
2639
2717
|
children: children
|
|
2640
2718
|
}));
|
|
2641
2719
|
});
|
|
@@ -3192,6 +3270,7 @@ function overrideDialog(theme) {
|
|
|
3192
3270
|
};
|
|
3193
3271
|
}
|
|
3194
3272
|
|
|
3273
|
+
/** @deprecated Use `<AppDrawer>` instead. */
|
|
3195
3274
|
function overrideDrawer(theme) {
|
|
3196
3275
|
theme.props.MuiDrawer = {
|
|
3197
3276
|
anchor: 'right'
|
|
@@ -4095,7 +4174,7 @@ var GlobalStyles = /*#__PURE__*/createGlobalStyle(_ref => {
|
|
|
4095
4174
|
function createSuperDispatchTheme(type) {
|
|
4096
4175
|
var breakpoints = createBreakpoints({});
|
|
4097
4176
|
var color = type === 'dark' ? ColorDark : Color;
|
|
4098
|
-
var theme = createTheme({
|
|
4177
|
+
var theme = createTheme$1({
|
|
4099
4178
|
breakpoints,
|
|
4100
4179
|
palette: {
|
|
4101
4180
|
type,
|
|
@@ -4156,6 +4235,41 @@ function createSuperDispatchTheme(type) {
|
|
|
4156
4235
|
overridePreloader(theme);
|
|
4157
4236
|
return theme;
|
|
4158
4237
|
}
|
|
4238
|
+
function createThemeV5(type) {
|
|
4239
|
+
var breakpoints = createBreakpoints({});
|
|
4240
|
+
var color = type === 'dark' ? ColorDark : Color;
|
|
4241
|
+
return createTheme({
|
|
4242
|
+
breakpoints,
|
|
4243
|
+
palette: {
|
|
4244
|
+
mode: type,
|
|
4245
|
+
primary: {
|
|
4246
|
+
main: color.Blue300
|
|
4247
|
+
},
|
|
4248
|
+
error: {
|
|
4249
|
+
main: color.Red300
|
|
4250
|
+
},
|
|
4251
|
+
action: {
|
|
4252
|
+
hover: color.Silver200,
|
|
4253
|
+
selected: color.Blue50,
|
|
4254
|
+
disabled: color.Silver400
|
|
4255
|
+
},
|
|
4256
|
+
text: {
|
|
4257
|
+
primary: color.Dark500,
|
|
4258
|
+
secondary: color.Dark300,
|
|
4259
|
+
disabled: color.Dark100
|
|
4260
|
+
},
|
|
4261
|
+
common: {
|
|
4262
|
+
white: color.White,
|
|
4263
|
+
black: color.Black
|
|
4264
|
+
},
|
|
4265
|
+
divider: color.Silver400,
|
|
4266
|
+
background: {
|
|
4267
|
+
paper: color.White
|
|
4268
|
+
}
|
|
4269
|
+
},
|
|
4270
|
+
components: {}
|
|
4271
|
+
});
|
|
4272
|
+
}
|
|
4159
4273
|
var generateMaterialClassName = /*#__PURE__*/createGenerateClassName();
|
|
4160
4274
|
function generateClassName(rule, sheet) {
|
|
4161
4275
|
var {
|
|
@@ -4193,19 +4307,27 @@ function ThemeProvider(_ref) {
|
|
|
4193
4307
|
return !modifier ? nextTheme : modifier(nextTheme);
|
|
4194
4308
|
// eslint-disable-next-line react-hooks/exhaustive-deps -- modifier may update on every render
|
|
4195
4309
|
}, [mode]);
|
|
4310
|
+
var themeV5 = createThemeV5(mode);
|
|
4196
4311
|
return /*#__PURE__*/jsx(StylesProvider, {
|
|
4197
4312
|
injectFirst: injectFirst,
|
|
4198
4313
|
generateClassName: generateClassName,
|
|
4199
|
-
children: /*#__PURE__*/
|
|
4200
|
-
|
|
4201
|
-
|
|
4314
|
+
children: /*#__PURE__*/jsx(StylesProvider$1, {
|
|
4315
|
+
injectFirst: injectFirst,
|
|
4316
|
+
generateClassName: generateClassName,
|
|
4317
|
+
children: /*#__PURE__*/jsx(ThemeProvider$1, {
|
|
4202
4318
|
theme: theme,
|
|
4203
|
-
children:
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4319
|
+
children: /*#__PURE__*/jsxs(ThemeProvider$2, {
|
|
4320
|
+
theme: themeV5,
|
|
4321
|
+
children: [/*#__PURE__*/jsx(CssBaseline, {}), /*#__PURE__*/jsxs(ThemeProvider$3, {
|
|
4322
|
+
theme: theme,
|
|
4323
|
+
children: [/*#__PURE__*/jsx(GlobalStyles, {}), /*#__PURE__*/jsx(ResponsiveContextProvider, {
|
|
4324
|
+
children: /*#__PURE__*/jsx(SnackbarStackProvider, {
|
|
4325
|
+
children: children
|
|
4326
|
+
})
|
|
4327
|
+
})]
|
|
4328
|
+
})]
|
|
4329
|
+
})
|
|
4330
|
+
})
|
|
4209
4331
|
})
|
|
4210
4332
|
});
|
|
4211
4333
|
}
|
|
@@ -4280,11 +4402,29 @@ var Tiles = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
4280
4402
|
var columns = useResponsivePropRecord(columnsProp);
|
|
4281
4403
|
return /*#__PURE__*/jsx("div", {
|
|
4282
4404
|
ref: ref,
|
|
4283
|
-
className: clsx(styles.root,
|
|
4405
|
+
className: clsx(styles.root, {
|
|
4406
|
+
[styles.space1]: space === 1,
|
|
4407
|
+
[styles.space2]: space === 2,
|
|
4408
|
+
[styles.space3]: space === 3,
|
|
4409
|
+
[styles.space4]: space === 4,
|
|
4410
|
+
[styles.space5]: space === 5,
|
|
4411
|
+
[styles.space6]: space === 6,
|
|
4412
|
+
[styles.space7]: space === 7,
|
|
4413
|
+
[styles.space8]: space === 8,
|
|
4414
|
+
[styles.space9]: space === 9,
|
|
4415
|
+
[styles.space10]: space === 10
|
|
4416
|
+
}),
|
|
4284
4417
|
children: /*#__PURE__*/jsx("div", {
|
|
4285
4418
|
className: styles.container,
|
|
4286
4419
|
children: flattenChildren(children).map((child, idx) => /*#__PURE__*/jsx("div", {
|
|
4287
|
-
className: clsx(styles.child,
|
|
4420
|
+
className: clsx(styles.child, {
|
|
4421
|
+
[styles.columns1]: columns === 1,
|
|
4422
|
+
[styles.columns2]: columns === 2,
|
|
4423
|
+
[styles.columns3]: columns === 3,
|
|
4424
|
+
[styles.columns4]: columns === 4,
|
|
4425
|
+
[styles.columns5]: columns === 5,
|
|
4426
|
+
[styles.columns6]: columns === 6
|
|
4427
|
+
}),
|
|
4288
4428
|
children: /*#__PURE__*/jsx("div", {
|
|
4289
4429
|
className: styles.childContainer,
|
|
4290
4430
|
children: child
|
|
@@ -4309,5 +4449,5 @@ function ExitTransitionPlaceholder(_ref) {
|
|
|
4309
4449
|
return renderChildren(children);
|
|
4310
4450
|
}
|
|
4311
4451
|
|
|
4312
|
-
export { AdaptiveToolbar, AdaptiveVerticalToolbar, AvatarButton, Button, CardButton, CheckboxField, CheckboxGroupField, Color, ColorDark, ColorDynamic, Column, Columns, DescriptionList, DescriptionListItem, DrawerActions, DrawerContent, DrawerList, DrawerTitle, DropdownButton, ExitTransitionPlaceholder, GridStack, Image, InfoCard, InfoTooltip, Inline, InlineGrid, LightDark, NumberField, OverflowText, PatternField, RadioField, RadioFieldCard, RadioGroupField, ResponsiveContextProvider, Snackbar, SnackbarContent, SnackbarStackConsumer, SnackbarStackProvider, Stack, Tag, ThemeProvider, Tiles, VisibilityObserver, assignRef, isColorDynamicProp, isColorProp, isColorPropDark, isEmptyReactNode, mergeRefs, parseAlignProp, parseCollapsedBelow, parseResponsiveProp, parseSpaceProp, renderChildren, useCollapseBreakpoint, useMinBreakpoint, useResizeObserver, useResponsiveContext, useResponsiveProp, useResponsivePropRecord, useResponsiveValue, useSnackbarStack, useUID, useVisibilityObserver };
|
|
4452
|
+
export { AdaptiveToolbar, AdaptiveVerticalToolbar, AppDrawer, AvatarButton, Button, CardButton, CheckboxField, CheckboxGroupField, Color, ColorDark, ColorDynamic, Column, Columns, DescriptionList, DescriptionListItem, DrawerActions, DrawerContent, DrawerList, DrawerTitle, DropdownButton, ExitTransitionPlaceholder, GridStack, Image, InfoCard, InfoTooltip, Inline, InlineGrid, LightDark, NumberField, OverflowText, PatternField, RadioField, RadioFieldCard, RadioGroupField, ResponsiveContextProvider, Snackbar, SnackbarContent, SnackbarStackConsumer, SnackbarStackProvider, Stack, Tag, ThemeProvider, Tiles, VisibilityObserver, assignRef, isColorDynamicProp, isColorProp, isColorPropDark, isEmptyReactNode, mergeRefs, parseAlignProp, parseCollapsedBelow, parseResponsiveProp, parseSpaceProp, renderChildren, useCollapseBreakpoint, useMinBreakpoint, useResizeObserver, useResponsiveContext, useResponsiveProp, useResponsivePropRecord, useResponsiveValue, useSnackbarStack, useUID, useVisibilityObserver };
|
|
4313
4453
|
//# sourceMappingURL=index.js.map
|