@superdispatch/ui 0.41.0 → 0.43.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,7 +15,7 @@ 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');
@@ -678,9 +678,340 @@ function isColorPropDark(name) {
678
678
  return typeof name == 'string' && Object.prototype.hasOwnProperty.call(exports.ColorDark, name);
679
679
  }
680
680
 
681
- 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, _objectSpread(_objectSpread({
997
+ type: "button",
998
+ variant: "contained"
999
+ }, primaryAction), {}, {
1000
+ children: primaryAction.label
1001
+ })), secondaryAction && /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread(_objectSpread({
1002
+ type: "button",
1003
+ variant: "outlined"
1004
+ }, secondaryAction), {}, {
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"],
682
1013
  _excluded2 = ["button", "overlay", "progress", "withIcon", "sizeLarge"];
683
- var useStyles$2 = /*#__PURE__*/styles.makeStyles(theme => {
1014
+ var useStyles$5 = /*#__PURE__*/styles.makeStyles(theme => {
684
1015
  var sm = theme.breakpoints.up('sm');
685
1016
  return {
686
1017
  button: {
@@ -789,8 +1120,8 @@ var AvatarButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
789
1120
  variant,
790
1121
  children
791
1122
  } = _ref,
792
- props = _objectWithoutProperties(_ref, _excluded$3);
793
- var _useStyles = useStyles$2({
1123
+ props = _objectWithoutProperties(_ref, _excluded$7);
1124
+ var _useStyles = useStyles$5({
794
1125
  classes
795
1126
  }),
796
1127
  {
@@ -806,7 +1137,10 @@ var AvatarButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
806
1137
  "aria-busy": isLoading,
807
1138
  "aria-disabled": disabled,
808
1139
  disabled: disabled || isLoading,
809
- className: clsx(className, buttonClassName, !!icon && withIconClassName, size === 'large' && sizeLargeClassName),
1140
+ className: clsx.clsx(className, buttonClassName, {
1141
+ [withIconClassName]: !!icon,
1142
+ [sizeLargeClassName]: size === 'large'
1143
+ }),
810
1144
  children: [/*#__PURE__*/jsxRuntime.jsx(core.Avatar, {
811
1145
  ref: avatarRef,
812
1146
  classes: avatarClasses,
@@ -829,8 +1163,8 @@ var AvatarButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
829
1163
  });
830
1164
  if (process.env.NODE_ENV !== "production") AvatarButton.displayName = "AvatarButton";
831
1165
 
832
- var _excluded$4 = ["hint", "size", "error", "classes", "className", "children", "endIcon", "startIcon", "disabled"];
833
- 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 => ({
834
1168
  root: {
835
1169
  width: '100%',
836
1170
  display: 'flex',
@@ -916,23 +1250,26 @@ var CardButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
916
1250
  startIcon,
917
1251
  disabled
918
1252
  } = _ref,
919
- props = _objectWithoutProperties(_ref, _excluded$4);
920
- var styles = useStyles$3({
1253
+ props = _objectWithoutProperties(_ref, _excluded$8);
1254
+ var styles = useStyles$6({
921
1255
  classes
922
1256
  });
923
1257
  return /*#__PURE__*/jsxRuntime.jsx(core.ButtonBase, _objectSpread(_objectSpread({}, props), {}, {
924
1258
  ref: ref,
925
1259
  disabled: disabled,
926
- className: clsx(styles.root, className, disabled ? styles.disabled : error ? styles.error : styles.primary, {
927
- 'small': styles.sizeSmall,
928
- 'large': styles.sizeLarge
929
- }[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),
930
1267
  children: error ? /*#__PURE__*/jsxRuntime.jsxs(core.Typography, {
931
1268
  variant: "h4",
932
1269
  color: "inherit",
933
1270
  className: styles.label,
934
1271
  children: [!!startIcon && /*#__PURE__*/jsxRuntime.jsx("span", {
935
- className: clsx(styles.icon, styles.startIcon),
1272
+ className: clsx.clsx(styles.icon, styles.startIcon),
936
1273
  children: startIcon
937
1274
  }), error]
938
1275
  }) : /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
@@ -941,10 +1278,10 @@ var CardButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
941
1278
  color: "inherit",
942
1279
  className: styles.label,
943
1280
  children: [!!startIcon && /*#__PURE__*/jsxRuntime.jsx("span", {
944
- className: clsx(styles.icon, styles.startIcon),
1281
+ className: clsx.clsx(styles.icon, styles.startIcon),
945
1282
  children: startIcon
946
1283
  }), children, !!endIcon && /*#__PURE__*/jsxRuntime.jsx("span", {
947
- className: clsx(styles.icon, styles.endIcon),
1284
+ className: clsx.clsx(styles.icon, styles.endIcon),
948
1285
  children: endIcon
949
1286
  })]
950
1287
  }), !!hint && /*#__PURE__*/jsxRuntime.jsx(core.Typography, {
@@ -958,7 +1295,7 @@ var CardButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
958
1295
  });
959
1296
  if (process.env.NODE_ENV !== "production") CardButton.displayName = "CardButton";
960
1297
 
961
- var _excluded$5 = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlProps", "FormControlLabelProps"];
1298
+ var _excluded$9 = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlProps", "FormControlLabelProps"];
962
1299
  var FormControl = /*#__PURE__*/styled__default(core.FormControl).withConfig({
963
1300
  displayName: "CheckboxField__FormControl",
964
1301
  componentId: "SD__sc-1wxu0g6-0"
@@ -978,7 +1315,7 @@ var CheckboxField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
978
1315
  FormControlProps: formControlProps,
979
1316
  FormControlLabelProps: formControlLabelProps
980
1317
  } = _ref,
981
- props = _objectWithoutProperties(_ref, _excluded$5);
1318
+ props = _objectWithoutProperties(_ref, _excluded$9);
982
1319
  return /*#__PURE__*/jsxRuntime.jsxs(FormControl, _objectSpread(_objectSpread({
983
1320
  error: error
984
1321
  }, formControlProps), {}, {
@@ -998,7 +1335,7 @@ var CheckboxField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
998
1335
  });
999
1336
  if (process.env.NODE_ENV !== "production") CheckboxField.displayName = "CheckboxField";
1000
1337
 
1001
- var _excluded$6 = ["FormGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
1338
+ var _excluded$a = ["FormGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
1002
1339
  var FormLabel = /*#__PURE__*/styled__default(core.FormLabel).withConfig({
1003
1340
  displayName: "CheckboxGroudField__FormLabel",
1004
1341
  componentId: "SD__sc-1lihyfy-0"
@@ -1016,7 +1353,7 @@ var CheckboxGroupField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1016
1353
  FormHelperTextProps: formHelperTextProps,
1017
1354
  children
1018
1355
  } = _ref,
1019
- formControlProps = _objectWithoutProperties(_ref, _excluded$6);
1356
+ formControlProps = _objectWithoutProperties(_ref, _excluded$a);
1020
1357
  return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
1021
1358
  hiddenLabel: !label,
1022
1359
  children: [!!label && /*#__PURE__*/jsxRuntime.jsx(FormLabel, _objectSpread(_objectSpread({}, formLabelProps), {}, {
@@ -1185,103 +1522,46 @@ function parseSpaceProp(prop) {
1185
1522
  return 4;
1186
1523
  case 'xsmall':
1187
1524
  return 8;
1188
- case 'small':
1189
- return 16;
1190
- case 'medium':
1191
- return 24;
1192
- case 'large':
1193
- return 32;
1194
- case 'xlarge':
1195
- return 40;
1196
- case 'xxlarge':
1197
- return 48;
1198
- }
1199
- }
1200
-
1201
- function columnsRootMixin(align, horizontalAlign, spaceProp, isReversed, isCollapsed) {
1202
- var space = parseSpaceProp(spaceProp);
1203
- return styled.css(["--column-space-left:", "px;--column-space-top:", "px;--column-space-bottom:", "px;align-items:", ";justify-content:", ";margin-left:", "px;width:", ";flex-direction:", ";"], isCollapsed ? 0 : space, isCollapsed && isReversed ? space : 0, isCollapsed && !isReversed ? space : 0, parseAlignProp(align), parseAlignProp(horizontalAlign), isCollapsed ? 0 : "-".concat(space), isCollapsed ? '100%' : "calc(100% + ".concat(space, "px)"), isCollapsed ? !isReversed ? 'column' : 'column-reverse' : !isReversed ? 'row' : 'row-reverse');
1204
- }
1205
- var Columns = /*#__PURE__*/styled__default.div.withConfig({
1206
- displayName: "Columns",
1207
- componentId: "SD__sc-1a73118-0"
1208
- })(_ref => {
1209
- var {
1210
- theme,
1211
- collapseBelow,
1212
- align: alignProp = 'top',
1213
- horizontalAlign: horizontalAlignProp = 'left',
1214
- space: spaceProp = 'none',
1215
- reverse: reverseProp = false
1216
- } = _ref;
1217
- var align = parseResponsiveProp(alignProp);
1218
- var horizontalAlign = parseResponsiveProp(horizontalAlignProp);
1219
- var space = parseResponsiveProp(spaceProp);
1220
- var reverse = parseResponsiveProp(reverseProp);
1221
- var collapsed = parseCollapsedBelow(collapseBelow);
1222
- 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]));
1223
- });
1224
-
1225
- function renderChildren(node) {
1226
- if (node == null || typeof node == 'boolean') {
1227
- return null;
1228
- }
1229
-
1230
- // Workaround for https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18051
1231
- return node;
1232
- }
1233
-
1234
- var _excluded$7 = ["render", "onChange"];
1235
- function useVisibilityObserver(node) {
1236
- var {
1237
- threshold = 0,
1238
- marginTop = '0px',
1239
- marginLeft = '0px',
1240
- marginRight = '0px',
1241
- marginBottom = '0px'
1242
- } = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1243
- var [state, setState] = React.useState('undetermined');
1244
- var rootMargin = "".concat(marginTop, " ").concat(marginRight, " ").concat(marginBottom, " ").concat(marginLeft);
1245
- React.useLayoutEffect(() => {
1246
- if (!node || !('IntersectionObserver' in window)) {
1247
- setState('undetermined');
1248
- return;
1249
- }
1250
- var observer = new IntersectionObserver(_ref => {
1251
- var [entry] = _ref;
1252
- setState(entry !== null && entry !== void 0 && entry.isIntersecting && document.visibilityState === 'visible' ? 'visible' : 'invisible');
1253
- }, {
1254
- rootMargin,
1255
- threshold
1256
- });
1257
- observer.observe(node);
1258
- return () => {
1259
- observer.disconnect();
1260
- };
1261
- }, [node, threshold, rootMargin]);
1262
- return state;
1525
+ case 'small':
1526
+ return 16;
1527
+ case 'medium':
1528
+ return 24;
1529
+ case 'large':
1530
+ return 32;
1531
+ case 'xlarge':
1532
+ return 40;
1533
+ case 'xxlarge':
1534
+ return 48;
1535
+ }
1263
1536
  }
1264
- function VisibilityObserver(_ref2) {
1265
- var {
1266
- render,
1267
- onChange
1268
- } = _ref2,
1269
- options = _objectWithoutProperties(_ref2, _excluded$7);
1270
- var [node, setNode] = React.useState(null);
1271
- var visibility = useVisibilityObserver(node, options);
1272
- var children = render({
1273
- ref: setNode,
1274
- visibility
1275
- });
1276
- hooks.useValueObserver(visibility, () => {
1277
- onChange === null || onChange === void 0 ? void 0 : onChange(visibility);
1278
- });
1279
- return renderChildren(children);
1537
+
1538
+ function columnsRootMixin(align, horizontalAlign, spaceProp, isReversed, isCollapsed) {
1539
+ var space = parseSpaceProp(spaceProp);
1540
+ return styled.css(["--column-space-left:", "px;--column-space-top:", "px;--column-space-bottom:", "px;align-items:", ";justify-content:", ";margin-left:", "px;width:", ";flex-direction:", ";"], isCollapsed ? 0 : space, isCollapsed && isReversed ? space : 0, isCollapsed && !isReversed ? space : 0, parseAlignProp(align), parseAlignProp(horizontalAlign), isCollapsed ? 0 : "-".concat(space), isCollapsed ? '100%' : "calc(100% + ".concat(space, "px)"), isCollapsed ? !isReversed ? 'column' : 'column-reverse' : !isReversed ? 'row' : 'row-reverse');
1280
1541
  }
1542
+ var Columns = /*#__PURE__*/styled__default.div.withConfig({
1543
+ displayName: "Columns",
1544
+ componentId: "SD__sc-1a73118-0"
1545
+ })(_ref => {
1546
+ var {
1547
+ theme,
1548
+ collapseBelow,
1549
+ align: alignProp = 'top',
1550
+ horizontalAlign: horizontalAlignProp = 'left',
1551
+ space: spaceProp = 'none',
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
+ });
1281
1561
 
1282
- var _excluded$8 = ["title", "enterDelay"],
1562
+ var _excluded$b = ["title", "enterDelay"],
1283
1563
  _excluded2$1 = ["onClick", "children", "className", "disableUnderline", "TooltipProps"];
1284
- var useStyles$4 = /*#__PURE__*/styles.makeStyles(theme => ({
1564
+ var useStyles$7 = /*#__PURE__*/styles.makeStyles(theme => ({
1285
1565
  root: {
1286
1566
  marginBottom: -1,
1287
1567
  borderBottom: '1px dashed transparent',
@@ -1311,10 +1591,10 @@ var OverflowText = /*#__PURE__*/React.forwardRef((_ref, rootRef) => {
1311
1591
  enterDelay = 1000
1312
1592
  } = {}
1313
1593
  } = _ref,
1314
- tooltipProps = _objectWithoutProperties(_ref.TooltipProps, _excluded$8),
1594
+ tooltipProps = _objectWithoutProperties(_ref.TooltipProps, _excluded$b),
1315
1595
  props = _objectWithoutProperties(_ref, _excluded2$1);
1316
1596
  var [isOpen, setIsOpen] = React.useState(false);
1317
- var styles = useStyles$4();
1597
+ var styles = useStyles$7();
1318
1598
  return /*#__PURE__*/jsxRuntime.jsx(VisibilityObserver, {
1319
1599
  render: _ref2 => {
1320
1600
  var {
@@ -1340,7 +1620,9 @@ var OverflowText = /*#__PURE__*/React.forwardRef((_ref, rootRef) => {
1340
1620
  setIsOpen(true);
1341
1621
  _onClick === null || _onClick === void 0 ? void 0 : _onClick(event);
1342
1622
  },
1343
- className: clsx(styles.root, className, !disableUnderline && visibility === 'invisible' && styles.truncated),
1623
+ className: clsx.clsx(styles.root, {
1624
+ [styles.truncated]: !disableUnderline && visibility === 'invisible'
1625
+ }, className),
1344
1626
  children: [children, !!children && /*#__PURE__*/jsxRuntime.jsx("span", {
1345
1627
  ref: ref,
1346
1628
  className: styles.sentinel
@@ -1362,7 +1644,7 @@ function useUID(defaultID) {
1362
1644
  return defaultID || uid;
1363
1645
  }
1364
1646
 
1365
- var _excluded$9 = ["size"];
1647
+ var _excluded$c = ["size"];
1366
1648
  function sizeVariant(theme, mobileSpacing, desktopSpacing) {
1367
1649
  return {
1368
1650
  '& > $list, & > $item': {
@@ -1375,7 +1657,7 @@ function sizeVariant(theme, mobileSpacing, desktopSpacing) {
1375
1657
  }
1376
1658
  };
1377
1659
  }
1378
- var useStyles$5 = /*#__PURE__*/styles.makeStyles(theme => ({
1660
+ var useStyles$8 = /*#__PURE__*/styles.makeStyles(theme => ({
1379
1661
  list: sizeVariant(theme, 2, 1),
1380
1662
  listSmall: sizeVariant(theme, 1, 0.5),
1381
1663
  listLarge: sizeVariant(theme, 3, 2),
@@ -1406,15 +1688,15 @@ var DescriptionList = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1406
1688
  var {
1407
1689
  size
1408
1690
  } = _ref,
1409
- props = _objectWithoutProperties(_ref, _excluded$9);
1410
- var styles = useStyles$5();
1691
+ props = _objectWithoutProperties(_ref, _excluded$c);
1692
+ var styles = useStyles$8();
1411
1693
  return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread(_objectSpread({}, props), {}, {
1412
1694
  ref: ref,
1413
1695
  "data-size": size,
1414
- className: clsx(styles.list, {
1415
- 'small': styles.listSmall,
1416
- 'large': styles.listLarge
1417
- }[size])
1696
+ className: clsx.clsx(styles.list, {
1697
+ [styles.listSmall]: size === 'small',
1698
+ [styles.listLarge]: size === 'large'
1699
+ })
1418
1700
  }));
1419
1701
  });
1420
1702
 
@@ -1433,7 +1715,7 @@ var DescriptionListItem = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
1433
1715
  contentTypographyProps,
1434
1716
  fallback
1435
1717
  } = _ref2;
1436
- var styles = useStyles$5();
1718
+ var styles = useStyles$8();
1437
1719
  var labelID = useUID(labelTypographyProps === null || labelTypographyProps === void 0 ? void 0 : labelTypographyProps.id);
1438
1720
  var shouldRenderFallback = isEmptyReactNode(content);
1439
1721
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
@@ -1461,92 +1743,7 @@ var DescriptionListItem = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
1461
1743
  });
1462
1744
  if (process.env.NODE_ENV !== "production") DescriptionListItem.displayName = "DescriptionListItem";
1463
1745
 
1464
- var _excluded$a = ["children", "className"];
1465
- var useStyles$6 = /*#__PURE__*/styles.makeStyles(theme => ({
1466
- appBar: {
1467
- '&&': {
1468
- bottom: 0,
1469
- top: 'auto',
1470
- borderLeft: 'none',
1471
- borderRight: 'none',
1472
- borderBottom: 'none',
1473
- transition: theme.transitions.create(['border-color']),
1474
- '&:not($appBarSticky)': {
1475
- borderTopColor: exports.ColorDynamic.Transparent
1476
- }
1477
- }
1478
- },
1479
- appBarSticky: {},
1480
- toolbar: {
1481
- '&.MuiToolbar-gutters': {
1482
- paddingLeft: theme.spacing(3),
1483
- paddingRight: theme.spacing(3),
1484
- [theme.breakpoints.up('md')]: {
1485
- paddingLeft: theme.spacing(4),
1486
- paddingRight: theme.spacing(4)
1487
- }
1488
- }
1489
- }
1490
- }), {
1491
- name: 'SD-DrawerActions'
1492
- });
1493
- var DrawerActions = /*#__PURE__*/React.forwardRef((_ref, appBarRef) => {
1494
- var {
1495
- children,
1496
- className
1497
- } = _ref,
1498
- props = _objectWithoutProperties(_ref, _excluded$a);
1499
- var styles = useStyles$6();
1500
- return /*#__PURE__*/jsxRuntime.jsx(VisibilityObserver, {
1501
- render: _ref2 => {
1502
- var {
1503
- ref,
1504
- visibility
1505
- } = _ref2;
1506
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1507
- children: [/*#__PURE__*/jsxRuntime.jsx(core.AppBar, _objectSpread(_objectSpread({}, props), {}, {
1508
- ref: appBarRef,
1509
- position: "sticky",
1510
- className: clsx(className, styles.appBar, visibility === 'invisible' && styles.appBarSticky),
1511
- children: /*#__PURE__*/jsxRuntime.jsx(core.Toolbar, {
1512
- className: styles.toolbar,
1513
- children: children
1514
- })
1515
- })), /*#__PURE__*/jsxRuntime.jsx("div", {
1516
- ref: ref
1517
- })]
1518
- });
1519
- }
1520
- });
1521
- });
1522
- if (process.env.NODE_ENV !== "production") DrawerActions.displayName = "DrawerActions";
1523
-
1524
- var _excluded$b = ["className"];
1525
- var useStyles$7 = /*#__PURE__*/styles.makeStyles(theme => ({
1526
- root: {
1527
- maxWidth: '100%',
1528
- padding: theme.spacing(2, 3),
1529
- [theme.breakpoints.up('md')]: {
1530
- padding: theme.spacing(2, 4)
1531
- }
1532
- }
1533
- }), {
1534
- name: 'SD-DrawerContent'
1535
- });
1536
- var DrawerContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1537
- var {
1538
- className
1539
- } = _ref,
1540
- props = _objectWithoutProperties(_ref, _excluded$b);
1541
- var styles = useStyles$7();
1542
- return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread(_objectSpread({}, props), {}, {
1543
- ref: ref,
1544
- className: clsx(styles.root, className)
1545
- }));
1546
- });
1547
- if (process.env.NODE_ENV !== "production") DrawerContent.displayName = "DrawerContent";
1548
-
1549
- var _excluded$c = ["className"];
1746
+ var _excluded$d = ["className"];
1550
1747
  function listItemMixins(theme, space) {
1551
1748
  return {
1552
1749
  '& .MuiListItem-gutters': {
@@ -1564,7 +1761,7 @@ function listItemMixins(theme, space) {
1564
1761
  }
1565
1762
  };
1566
1763
  }
1567
- var useStyles$8 = /*#__PURE__*/styles.makeStyles(theme => ({
1764
+ var useStyles$9 = /*#__PURE__*/styles.makeStyles(theme => ({
1568
1765
  root: _objectSpread(_objectSpread({
1569
1766
  maxWidth: '100%'
1570
1767
  }, listItemMixins(theme, 3)), {}, {
@@ -1577,128 +1774,16 @@ var DrawerList = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1577
1774
  var {
1578
1775
  className
1579
1776
  } = _ref,
1580
- props = _objectWithoutProperties(_ref, _excluded$c);
1581
- var styles = useStyles$8();
1777
+ props = _objectWithoutProperties(_ref, _excluded$d);
1778
+ var styles = useStyles$9();
1582
1779
  return /*#__PURE__*/jsxRuntime.jsx(core.List, _objectSpread(_objectSpread({}, props), {}, {
1583
1780
  ref: ref,
1584
1781
  component: "div",
1585
- className: clsx(className, styles.root)
1782
+ className: clsx.clsx(className, styles.root)
1586
1783
  }));
1587
1784
  });
1588
1785
  if (process.env.NODE_ENV !== "production") DrawerList.displayName = "DrawerList";
1589
1786
 
1590
- var _excluded$d = ["title", "titleTypographyProps", "subtitle", "subtitleTypographyProps", "startAction", "endAction", "className"];
1591
- var useStyles$9 = /*#__PURE__*/styles.makeStyles(theme => ({
1592
- appBar: {
1593
- '&&': {
1594
- borderTop: 'none',
1595
- borderLeft: 'none',
1596
- borderRight: 'none',
1597
- transition: theme.transitions.create(['border-color']),
1598
- '&:not($appBarSticky)': {
1599
- borderBottomColor: exports.ColorDynamic.Transparent
1600
- }
1601
- }
1602
- },
1603
- appBarSticky: {},
1604
- toolbar: {
1605
- '&.MuiToolbar-gutters': {
1606
- paddingLeft: theme.spacing(3),
1607
- paddingRight: theme.spacing(3),
1608
- [theme.breakpoints.up('md')]: {
1609
- paddingLeft: theme.spacing(4),
1610
- paddingRight: theme.spacing(4)
1611
- }
1612
- }
1613
- },
1614
- startAction: {
1615
- marginRight: theme.spacing(0.5),
1616
- '& .MuiIconButton-edgeStart': {
1617
- marginLeft: theme.spacing(-2)
1618
- }
1619
- },
1620
- endAction: {
1621
- marginLeft: theme.spacing(0.5),
1622
- '& .MuiIconButton-edgeEnd': {
1623
- marginRight: theme.spacing(-2)
1624
- }
1625
- }
1626
- }), {
1627
- name: 'SD-DrawerTitle'
1628
- });
1629
- var DrawerTitle = /*#__PURE__*/React.forwardRef((_ref, appBarRef) => {
1630
- var {
1631
- title,
1632
- titleTypographyProps,
1633
- subtitle,
1634
- subtitleTypographyProps,
1635
- startAction,
1636
- endAction,
1637
- className
1638
- } = _ref,
1639
- props = _objectWithoutProperties(_ref, _excluded$d);
1640
- var styles = useStyles$9();
1641
- return /*#__PURE__*/jsxRuntime.jsx(VisibilityObserver, {
1642
- render: _ref2 => {
1643
- var {
1644
- ref,
1645
- visibility
1646
- } = _ref2;
1647
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1648
- children: [/*#__PURE__*/jsxRuntime.jsx("div", {
1649
- ref: ref
1650
- }), /*#__PURE__*/jsxRuntime.jsx(core.AppBar, _objectSpread(_objectSpread({}, props), {}, {
1651
- ref: appBarRef,
1652
- position: "sticky",
1653
- className: clsx(styles.appBar, className, visibility === 'invisible' && styles.appBarSticky),
1654
- children: /*#__PURE__*/jsxRuntime.jsx(core.Toolbar, {
1655
- className: styles.toolbar,
1656
- children: /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
1657
- container: true,
1658
- direction: "column",
1659
- children: [/*#__PURE__*/jsxRuntime.jsx(core.Grid, {
1660
- item: true,
1661
- children: /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
1662
- container: true,
1663
- alignItems: "center",
1664
- children: [!!startAction && /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
1665
- item: true,
1666
- className: styles.startAction,
1667
- children: startAction
1668
- }), /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
1669
- item: true,
1670
- xs: true,
1671
- zeroMinWidth: true,
1672
- children: /*#__PURE__*/jsxRuntime.jsx(core.Typography, _objectSpread(_objectSpread({
1673
- variant: "h3",
1674
- noWrap: true
1675
- }, titleTypographyProps), {}, {
1676
- children: title
1677
- }))
1678
- }), !!endAction && /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
1679
- item: true,
1680
- className: styles.endAction,
1681
- children: endAction
1682
- })]
1683
- })
1684
- }), /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
1685
- item: true,
1686
- children: !!subtitle && /*#__PURE__*/jsxRuntime.jsx(core.Typography, _objectSpread(_objectSpread({
1687
- variant: "body2",
1688
- noWrap: true
1689
- }, subtitleTypographyProps), {}, {
1690
- children: subtitle
1691
- }))
1692
- })]
1693
- })
1694
- })
1695
- }))]
1696
- });
1697
- }
1698
- });
1699
- });
1700
- if (process.env.NODE_ENV !== "production") DrawerTitle.displayName = "DrawerTitle";
1701
-
1702
1787
  var _excluded$e = ["children", "alignItems"];
1703
1788
  /**
1704
1789
  * @deprecated in favor of `Stack`.
@@ -1819,9 +1904,12 @@ var InfoCard = /*#__PURE__*/React.forwardRef((_ref, _ref2) => {
1819
1904
  setRootNode(node);
1820
1905
  },
1821
1906
  classes: styles,
1822
- className: clsx(className, isFullWidth && fullWidthClassName, size === 'large' && sizeLargeClassName),
1907
+ className: clsx.clsx(className, {
1908
+ [sizeLargeClassName]: size === 'large',
1909
+ [fullWidthClassName]: isFullWidth
1910
+ }),
1823
1911
  children: /*#__PURE__*/jsxRuntime.jsx(core.CardContent, _objectSpread(_objectSpread({}, cardContentProps), {}, {
1824
- className: clsx(cardContentProps.className, contentClassName),
1912
+ className: clsx.clsx(cardContentProps.className, contentClassName),
1825
1913
  children: children
1826
1914
  }))
1827
1915
  }));
@@ -2309,10 +2397,10 @@ var SnackbarContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
2309
2397
  return /*#__PURE__*/jsxRuntime.jsx(core.SnackbarContent, _objectSpread(_objectSpread({}, props), {}, {
2310
2398
  ref: ref,
2311
2399
  classes: styles,
2312
- className: clsx(className, {
2313
- 'error': variantError,
2314
- 'success': variantSuccess
2315
- }[variant]),
2400
+ className: clsx.clsx(className, {
2401
+ [variantError]: variant === 'error',
2402
+ [variantSuccess]: variant === 'success'
2403
+ }),
2316
2404
  message: /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
2317
2405
  children: [Icon && /*#__PURE__*/jsxRuntime.jsx(Icon, {
2318
2406
  className: icon
@@ -2627,19 +2715,7 @@ var Tag = /*#__PURE__*/React.forwardRef((_ref, ref) => {
2627
2715
  noWrap: noWrap,
2628
2716
  component: component,
2629
2717
  variant: fontWeight === 'bold' ? 'body1' : 'body2',
2630
- className: clsx(styles.root, className, {
2631
- 'grey': styles.colorGrey,
2632
- 'dark': styles.colorDark,
2633
- 'blue': styles.colorBlue,
2634
- 'green': styles.colorGreen,
2635
- 'purple': styles.colorPurple,
2636
- 'red': styles.colorRed,
2637
- 'teal': styles.colorTeal,
2638
- 'yellow': styles.colorYellow
2639
- }[color], {
2640
- 'subtle': styles.variantSubtle,
2641
- 'bold': styles.variantBold
2642
- }[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),
2643
2719
  children: children
2644
2720
  }));
2645
2721
  });
@@ -3196,6 +3272,7 @@ function overrideDialog(theme) {
3196
3272
  };
3197
3273
  }
3198
3274
 
3275
+ /** @deprecated Use `<AppDrawer>` instead. */
3199
3276
  function overrideDrawer(theme) {
3200
3277
  theme.props.MuiDrawer = {
3201
3278
  anchor: 'right'
@@ -4327,11 +4404,29 @@ var Tiles = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4327
4404
  var columns = useResponsivePropRecord(columnsProp);
4328
4405
  return /*#__PURE__*/jsxRuntime.jsx("div", {
4329
4406
  ref: ref,
4330
- 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
+ }),
4331
4419
  children: /*#__PURE__*/jsxRuntime.jsx("div", {
4332
4420
  className: styles.container,
4333
4421
  children: flattenChildren(children).map((child, idx) => /*#__PURE__*/jsxRuntime.jsx("div", {
4334
- 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
+ }),
4335
4430
  children: /*#__PURE__*/jsxRuntime.jsx("div", {
4336
4431
  className: styles.childContainer,
4337
4432
  children: child
@@ -4358,6 +4453,7 @@ function ExitTransitionPlaceholder(_ref) {
4358
4453
 
4359
4454
  exports.AdaptiveToolbar = AdaptiveToolbar;
4360
4455
  exports.AdaptiveVerticalToolbar = AdaptiveVerticalToolbar;
4456
+ exports.AppDrawer = AppDrawer;
4361
4457
  exports.AvatarButton = AvatarButton;
4362
4458
  exports.Button = Button;
4363
4459
  exports.CardButton = CardButton;