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