@astral/ui 0.8.1 → 0.10.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.
Files changed (107) hide show
  1. package/Badge/styled.js +6 -6
  2. package/Button/styled.js +3 -3
  3. package/ButtonBase/styled.js +13 -13
  4. package/Checkbox/styled.js +1 -1
  5. package/DashboardLayout/Header/styled.js +10 -10
  6. package/DashboardLayout/SideBar/styled.js +3 -3
  7. package/Dialog/Dialog.d.ts +3 -0
  8. package/Dialog/Dialog.js +39 -0
  9. package/Dialog/index.d.ts +2 -0
  10. package/Dialog/index.js +14 -0
  11. package/Dialog/types.d.ts +7 -0
  12. package/Dialog/types.js +2 -0
  13. package/DialogActions/DialogActions.d.ts +3 -0
  14. package/DialogActions/DialogActions.js +33 -0
  15. package/DialogActions/index.d.ts +1 -0
  16. package/DialogActions/index.js +13 -0
  17. package/DialogContent/DialogContent.d.ts +1 -0
  18. package/DialogContent/DialogContent.js +5 -0
  19. package/DialogContent/index.d.ts +1 -0
  20. package/DialogContent/index.js +13 -0
  21. package/DialogContentText/DialogContentText.d.ts +1 -0
  22. package/DialogContentText/DialogContentText.js +5 -0
  23. package/DialogContentText/index.d.ts +1 -0
  24. package/DialogContentText/index.js +13 -0
  25. package/DialogTitle/DialogTitle.d.ts +3 -0
  26. package/DialogTitle/DialogTitle.js +34 -0
  27. package/DialogTitle/index.d.ts +2 -0
  28. package/DialogTitle/index.js +14 -0
  29. package/DialogTitle/types.d.ts +4 -0
  30. package/DialogTitle/types.js +2 -0
  31. package/FormControlLabel/styled.js +1 -1
  32. package/IconButton/styled.js +1 -1
  33. package/List/styled.js +1 -1
  34. package/ListItem/styled.js +3 -3
  35. package/ListItemButton/styled.js +3 -3
  36. package/MenuList/styled.js +1 -1
  37. package/Radio/styled.js +1 -1
  38. package/Select/styled.js +2 -2
  39. package/Tag/styled.js +5 -5
  40. package/Tooltip/styled.js +6 -6
  41. package/esm/Badge/styled.js +6 -6
  42. package/esm/Button/styled.js +3 -3
  43. package/esm/ButtonBase/styled.js +13 -13
  44. package/esm/Checkbox/styled.js +1 -1
  45. package/esm/DashboardLayout/Header/styled.js +10 -10
  46. package/esm/DashboardLayout/SideBar/styled.js +3 -3
  47. package/esm/Dialog/Dialog.d.ts +3 -0
  48. package/esm/Dialog/Dialog.js +35 -0
  49. package/esm/Dialog/index.d.ts +2 -0
  50. package/esm/Dialog/index.js +2 -0
  51. package/esm/Dialog/types.d.ts +7 -0
  52. package/esm/Dialog/types.js +1 -0
  53. package/esm/DialogActions/DialogActions.d.ts +3 -0
  54. package/esm/DialogActions/DialogActions.js +29 -0
  55. package/esm/DialogActions/index.d.ts +1 -0
  56. package/esm/DialogActions/index.js +1 -0
  57. package/esm/DialogContent/DialogContent.d.ts +1 -0
  58. package/esm/DialogContent/DialogContent.js +1 -0
  59. package/esm/DialogContent/index.d.ts +1 -0
  60. package/esm/DialogContent/index.js +1 -0
  61. package/esm/DialogContentText/DialogContentText.d.ts +1 -0
  62. package/esm/DialogContentText/DialogContentText.js +1 -0
  63. package/esm/DialogContentText/index.d.ts +1 -0
  64. package/esm/DialogContentText/index.js +1 -0
  65. package/esm/DialogTitle/DialogTitle.d.ts +3 -0
  66. package/esm/DialogTitle/DialogTitle.js +30 -0
  67. package/esm/DialogTitle/index.d.ts +2 -0
  68. package/esm/DialogTitle/index.js +2 -0
  69. package/esm/DialogTitle/types.d.ts +4 -0
  70. package/esm/DialogTitle/types.js +1 -0
  71. package/esm/FormControlLabel/styled.js +1 -1
  72. package/esm/IconButton/styled.js +1 -1
  73. package/esm/List/styled.js +1 -1
  74. package/esm/ListItem/styled.js +3 -3
  75. package/esm/ListItemButton/styled.js +3 -3
  76. package/esm/MenuList/styled.js +1 -1
  77. package/esm/Radio/styled.js +1 -1
  78. package/esm/Select/styled.js +2 -2
  79. package/esm/Tag/styled.js +5 -5
  80. package/esm/Tooltip/styled.js +6 -6
  81. package/esm/index.d.ts +5 -0
  82. package/esm/index.js +5 -0
  83. package/esm/theme/components/MuiDialog.d.ts +3 -0
  84. package/esm/theme/components/MuiDialog.js +16 -0
  85. package/esm/theme/components/MuiDialogActions.d.ts +3 -0
  86. package/esm/theme/components/MuiDialogActions.js +13 -0
  87. package/esm/theme/components/MuiDialogContent.d.ts +3 -0
  88. package/esm/theme/components/MuiDialogContent.js +10 -0
  89. package/esm/theme/components/MuiDialogTitle.d.ts +3 -0
  90. package/esm/theme/components/MuiDialogTitle.js +19 -0
  91. package/esm/theme/components/components.js +8 -0
  92. package/esm/theme/palette/palette.d.ts +1 -0
  93. package/esm/theme/palette/palette.js +1 -0
  94. package/index.d.ts +5 -0
  95. package/index.js +5 -0
  96. package/package.json +12 -2
  97. package/theme/components/MuiDialog.d.ts +3 -0
  98. package/theme/components/MuiDialog.js +19 -0
  99. package/theme/components/MuiDialogActions.d.ts +3 -0
  100. package/theme/components/MuiDialogActions.js +16 -0
  101. package/theme/components/MuiDialogContent.d.ts +3 -0
  102. package/theme/components/MuiDialogContent.js +13 -0
  103. package/theme/components/MuiDialogTitle.d.ts +3 -0
  104. package/theme/components/MuiDialogTitle.js +22 -0
  105. package/theme/components/components.js +8 -0
  106. package/theme/palette/palette.d.ts +1 -0
  107. package/theme/palette/palette.js +1 -0
package/Badge/styled.js CHANGED
@@ -41,18 +41,18 @@ var getTextColor = function (_a) {
41
41
  };
42
42
  exports.StyledBadge = (0, styles_1.styled)(material_1.Badge, {
43
43
  shouldForwardProp: function (prop) { return prop !== 'customColor'; },
44
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .MuiBadge-badge {\n height: 20px;\n border-radius: 12px;\n line-height: 20px;\n background-color: ", ";\n color: ", ";\n padding: ", ";\n font-size: ", ";\n border: 2px solid ", ";\n }\n\n .MuiBadge-dot {\n width: 12px;\n height: 12px;\n border: 2px solid ", ";\n }\n"], ["\n .MuiBadge-badge {\n height: 20px;\n border-radius: 12px;\n line-height: 20px;\n background-color: ", ";\n color: ", ";\n padding: ", ";\n font-size: ", ";\n border: 2px solid ", ";\n }\n\n .MuiBadge-dot {\n width: 12px;\n height: 12px;\n border: 2px solid ", ";\n }\n"])), function (_a) {
45
- var customColor = _a.customColor, theme = _a.theme;
46
- return getBgColor({ customColor: customColor, theme: theme });
44
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .MuiBadge-badge {\n height: 20px;\n padding: ", ";\n\n color: ", ";\n font-size: ", ";\n line-height: 20px;\n\n background-color: ", ";\n border: 2px solid ", ";\n border-radius: 12px;\n }\n\n .MuiBadge-dot {\n width: 12px;\n height: 12px;\n\n border: 2px solid ", ";\n }\n"], ["\n .MuiBadge-badge {\n height: 20px;\n padding: ", ";\n\n color: ", ";\n font-size: ", ";\n line-height: 20px;\n\n background-color: ", ";\n border: 2px solid ", ";\n border-radius: 12px;\n }\n\n .MuiBadge-dot {\n width: 12px;\n height: 12px;\n\n border: 2px solid ", ";\n }\n"])), function (_a) {
45
+ var theme = _a.theme;
46
+ return theme.spacing(0, 1);
47
47
  }, function (_a) {
48
48
  var customColor = _a.customColor, theme = _a.theme;
49
49
  return getTextColor({ customColor: customColor, theme: theme });
50
- }, function (_a) {
51
- var theme = _a.theme;
52
- return theme.spacing(0, 1);
53
50
  }, function (_a) {
54
51
  var theme = _a.theme;
55
52
  return theme.typography.small.fontSize;
53
+ }, function (_a) {
54
+ var customColor = _a.customColor, theme = _a.theme;
55
+ return getBgColor({ customColor: customColor, theme: theme });
56
56
  }, function (_a) {
57
57
  var theme = _a.theme;
58
58
  return theme.palette.common.white;
package/Button/styled.js CHANGED
@@ -17,12 +17,12 @@ exports.StyledButton = (0, styles_1.styled)(ButtonBase_1.ButtonBase, {
17
17
  shouldForwardProp: function (prop) {
18
18
  return prop !== 'startIcon' && prop !== 'endIcon' && prop !== 'loading';
19
19
  },
20
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n pointer-events: ", ";\n color: ", ";\n\n &:focus {\n color: ", ";\n }\n\n > span:first-of-type {\n display: inherit;\n margin-right: ", ";\n }\n\n > span:last-of-type {\n display: inherit;\n margin-left: ", ";\n }\n\n .MuiCircularProgress-root {\n width: 16px !important;\n height: 16px !important;\n transform: translate(-50%, -50%);\n position: absolute;\n\n color: ", ";\n }\n"], ["\n pointer-events: ", ";\n color: ", ";\n\n &:focus {\n color: ", ";\n }\n\n > span:first-of-type {\n display: inherit;\n margin-right: ", ";\n }\n\n > span:last-of-type {\n display: inherit;\n margin-left: ", ";\n }\n\n .MuiCircularProgress-root {\n width: 16px !important;\n height: 16px !important;\n transform: translate(-50%, -50%);\n position: absolute;\n\n color: ", ";\n }\n"])), function (_a) {
20
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n\n pointer-events: ", ";\n\n &:focus {\n color: ", ";\n }\n\n > span:first-of-type {\n display: inherit;\n margin-right: ", ";\n }\n\n > span:last-of-type {\n display: inherit;\n margin-left: ", ";\n }\n\n .MuiCircularProgress-root {\n position: absolute;\n\n width: 16px !important;\n height: 16px !important;\n\n color: ", ";\n\n transform: translate(-50%, -50%);\n }\n"], ["\n color: ", ";\n\n pointer-events: ", ";\n\n &:focus {\n color: ", ";\n }\n\n > span:first-of-type {\n display: inherit;\n margin-right: ", ";\n }\n\n > span:last-of-type {\n display: inherit;\n margin-left: ", ";\n }\n\n .MuiCircularProgress-root {\n position: absolute;\n\n width: 16px !important;\n height: 16px !important;\n\n color: ", ";\n\n transform: translate(-50%, -50%);\n }\n"])), function (_a) {
21
21
  var loading = _a.loading;
22
- return (loading ? 'none' : 'inherit');
22
+ return loading && 'transparent';
23
23
  }, function (_a) {
24
24
  var loading = _a.loading;
25
- return loading && 'transparent';
25
+ return (loading ? 'none' : 'inherit');
26
26
  }, function (_a) {
27
27
  var loading = _a.loading;
28
28
  return loading && 'transparent';
@@ -194,36 +194,36 @@ exports.StyledButtonBase = (0, styles_1.styled)(ButtonUnstyled_1.default, {
194
194
  shouldForwardProp: function (prop) {
195
195
  return prop !== 'customColor' && prop !== 'customVariant';
196
196
  },
197
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border: none;\n font-family: Ubuntu, serif;\n padding: ", ";\n height: ", ";\n border-radius: ", ";\n cursor: pointer;\n font-size: ", ";\n font-weight: ", ";\n display: inline-flex;\n align-items: center;\n justify-content: center;\n position: relative;\n\n background-color: ", ";\n color: ", ";\n\n &:hover {\n background-color: ", ";\n color: ", ";\n }\n\n &:focus {\n background-color: ", ";\n color: ", ";\n outline: 2px solid ", ";\n }\n\n &:active {\n background-color: ", ";\n color: ", ";\n outline: none;\n }\n\n &.", " {\n cursor: unset;\n background-color: ", ";\n color: ", ";\n }\n"], ["\n border: none;\n font-family: Ubuntu, serif;\n padding: ", ";\n height: ", ";\n border-radius: ", ";\n cursor: pointer;\n font-size: ", ";\n font-weight: ", ";\n display: inline-flex;\n align-items: center;\n justify-content: center;\n position: relative;\n\n background-color: ", ";\n color: ", ";\n\n &:hover {\n background-color: ", ";\n color: ", ";\n }\n\n &:focus {\n background-color: ", ";\n color: ", ";\n outline: 2px solid ", ";\n }\n\n &:active {\n background-color: ", ";\n color: ", ";\n outline: none;\n }\n\n &.", " {\n cursor: unset;\n background-color: ", ";\n color: ", ";\n }\n"])), exports.getButtonPadding, exports.getButtonHeight, function (_a) {
198
- var theme = _a.theme;
199
- return theme.shape.small;
197
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n\n display: inline-flex;\n align-items: center;\n justify-content: center;\n height: ", ";\n padding: ", ";\n\n color: ", ";\n font-weight: ", ";\n font-size: ", ";\n font-family: Ubuntu, serif;\n\n background-color: ", ";\n border: none;\n border-radius: ", ";\n cursor: pointer;\n\n &:hover {\n color: ", ";\n\n background-color: ", ";\n }\n\n &:focus {\n color: ", ";\n\n background-color: ", ";\n outline: 2px solid ", ";\n }\n\n &:active {\n color: ", ";\n\n background-color: ", ";\n outline: none;\n }\n\n &.", " {\n color: ", ";\n\n background-color: ", ";\n cursor: unset;\n }\n"], ["\n position: relative;\n\n display: inline-flex;\n align-items: center;\n justify-content: center;\n height: ", ";\n padding: ", ";\n\n color: ", ";\n font-weight: ", ";\n font-size: ", ";\n font-family: Ubuntu, serif;\n\n background-color: ", ";\n border: none;\n border-radius: ", ";\n cursor: pointer;\n\n &:hover {\n color: ", ";\n\n background-color: ", ";\n }\n\n &:focus {\n color: ", ";\n\n background-color: ", ";\n outline: 2px solid ", ";\n }\n\n &:active {\n color: ", ";\n\n background-color: ", ";\n outline: none;\n }\n\n &.", " {\n color: ", ";\n\n background-color: ", ";\n cursor: unset;\n }\n"])), exports.getButtonHeight, exports.getButtonPadding, function (props) {
198
+ return (0, exports.getColor)(__assign(__assign({}, props), { buttonState: constants_1.ButtonStates.DEFAULT }));
200
199
  }, function (_a) {
201
200
  var theme = _a.theme;
202
- return theme.typography.button.fontSize;
201
+ return theme.typography.button.fontWeight;
203
202
  }, function (_a) {
204
203
  var theme = _a.theme;
205
- return theme.typography.button.fontWeight;
204
+ return theme.typography.button.fontSize;
206
205
  }, function (props) {
207
206
  return (0, exports.getBgColor)(__assign(__assign({}, props), { buttonState: constants_1.ButtonStates.DEFAULT }));
207
+ }, function (_a) {
208
+ var theme = _a.theme;
209
+ return theme.shape.small;
208
210
  }, function (props) {
209
- return (0, exports.getColor)(__assign(__assign({}, props), { buttonState: constants_1.ButtonStates.DEFAULT }));
211
+ return (0, exports.getColor)(__assign(__assign({}, props), { buttonState: constants_1.ButtonStates.HOVER }));
210
212
  }, function (props) {
211
213
  return (0, exports.getBgColor)(__assign(__assign({}, props), { buttonState: constants_1.ButtonStates.HOVER }));
212
214
  }, function (props) {
213
- return (0, exports.getColor)(__assign(__assign({}, props), { buttonState: constants_1.ButtonStates.HOVER }));
215
+ return (0, exports.getColor)(__assign(__assign({}, props), { buttonState: constants_1.ButtonStates.FOCUS }));
214
216
  }, function (props) {
215
217
  return (0, exports.getBgColor)(__assign(__assign({}, props), { buttonState: constants_1.ButtonStates.FOCUS }));
216
- }, function (props) {
217
- return (0, exports.getColor)(__assign(__assign({}, props), { buttonState: constants_1.ButtonStates.FOCUS }));
218
218
  }, function (_a) {
219
219
  var theme = _a.theme;
220
220
  return theme.palette.primary['400'];
221
- }, function (props) {
222
- return (0, exports.getBgColor)(__assign(__assign({}, props), { buttonState: constants_1.ButtonStates.ACTIVE }));
223
221
  }, function (props) {
224
222
  return (0, exports.getColor)(__assign(__assign({}, props), { buttonState: constants_1.ButtonStates.ACTIVE }));
225
- }, ButtonUnstyled_1.buttonUnstyledClasses.disabled, exports.getDisabledBgColor, function (_a) {
223
+ }, function (props) {
224
+ return (0, exports.getBgColor)(__assign(__assign({}, props), { buttonState: constants_1.ButtonStates.ACTIVE }));
225
+ }, ButtonUnstyled_1.buttonUnstyledClasses.disabled, function (_a) {
226
226
  var theme = _a.theme;
227
227
  return theme.palette.grey['500'];
228
- });
228
+ }, exports.getDisabledBgColor);
229
229
  var templateObject_1;
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.StyledCheckbox = void 0;
8
8
  var material_1 = require("@mui/material");
9
9
  var styles_1 = require("../styles");
10
- exports.StyledCheckbox = (0, styles_1.styled)(material_1.Checkbox)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 5px;\n border-radius: unset;\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n & .MuiSvgIcon-border {\n color: ", ";\n }\n\n & > svg {\n width: 1rem;\n height: 1rem;\n }\n\n &.Mui-disabled {\n color: ", ";\n & .MuiSvgIcon-border {\n color: currentColor;\n }\n }\n\n &.Mui-checked,\n &.MuiCheckbox-indeterminate {\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &.Mui-disabled {\n color: ", ";\n }\n\n & .MuiSvgIcon-mark {\n color: ", ";\n }\n }\n"], ["\n padding: 5px;\n border-radius: unset;\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n & .MuiSvgIcon-border {\n color: ", ";\n }\n\n & > svg {\n width: 1rem;\n height: 1rem;\n }\n\n &.Mui-disabled {\n color: ", ";\n & .MuiSvgIcon-border {\n color: currentColor;\n }\n }\n\n &.Mui-checked,\n &.MuiCheckbox-indeterminate {\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &.Mui-disabled {\n color: ", ";\n }\n\n & .MuiSvgIcon-mark {\n color: ", ";\n }\n }\n"])), function (_a) {
10
+ exports.StyledCheckbox = (0, styles_1.styled)(material_1.Checkbox)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 5px;\n\n color: ", ";\n\n border-radius: unset;\n\n &:hover {\n color: ", ";\n }\n\n & .MuiSvgIcon-border {\n color: ", ";\n }\n\n & > svg {\n width: 1rem;\n height: 1rem;\n }\n\n &.Mui-disabled {\n color: ", ";\n\n & .MuiSvgIcon-border {\n color: currentColor;\n }\n }\n\n &.Mui-checked,\n &.MuiCheckbox-indeterminate {\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &.Mui-disabled {\n color: ", ";\n }\n\n & .MuiSvgIcon-mark {\n color: ", ";\n }\n }\n"], ["\n padding: 5px;\n\n color: ", ";\n\n border-radius: unset;\n\n &:hover {\n color: ", ";\n }\n\n & .MuiSvgIcon-border {\n color: ", ";\n }\n\n & > svg {\n width: 1rem;\n height: 1rem;\n }\n\n &.Mui-disabled {\n color: ", ";\n\n & .MuiSvgIcon-border {\n color: currentColor;\n }\n }\n\n &.Mui-checked,\n &.MuiCheckbox-indeterminate {\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &.Mui-disabled {\n color: ", ";\n }\n\n & .MuiSvgIcon-mark {\n color: ", ";\n }\n }\n"])), function (_a) {
11
11
  var theme = _a.theme;
12
12
  return theme.palette.background.element;
13
13
  }, function (_a) {
@@ -6,27 +6,27 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.LogoStyle = exports.LogoContainer = exports.LeftContainer = exports.InnerContainer = exports.StyledHeader = void 0;
8
8
  var styles_1 = require("../../styles");
9
- exports.StyledHeader = (0, styles_1.styled)('header')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n grid-column: 1 / -1;\n min-height: 56px;\n height: 56px;\n width: 100%;\n z-index: ", ";\n box-shadow: ", ";\n padding: 0 ", ";\n background-color: ", ";\n"], ["\n grid-column: 1 / -1;\n min-height: 56px;\n height: 56px;\n width: 100%;\n z-index: ", ";\n box-shadow: ", ";\n padding: 0 ", ";\n background-color: ", ";\n"])), function (_a) {
9
+ exports.StyledHeader = (0, styles_1.styled)('header')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n z-index: ", ";\n\n grid-column: 1 / -1;\n width: 100%;\n height: 56px;\n min-height: 56px;\n padding: 0 ", ";\n\n background-color: ", ";\n box-shadow: ", ";\n"], ["\n z-index: ", ";\n\n grid-column: 1 / -1;\n width: 100%;\n height: 56px;\n min-height: 56px;\n padding: 0 ", ";\n\n background-color: ", ";\n box-shadow: ", ";\n"])), function (_a) {
10
10
  var theme = _a.theme;
11
11
  return theme.zIndex.appBar;
12
- }, function (_a) {
13
- var theme = _a.theme;
14
- return theme.elevation[200];
15
12
  }, function (_a) {
16
13
  var theme = _a.theme;
17
14
  return theme.spacing(5);
18
15
  }, function (_a) {
19
16
  var theme = _a.theme;
20
17
  return theme.palette.background.default;
18
+ }, function (_a) {
19
+ var theme = _a.theme;
20
+ return theme.elevation[200];
21
21
  });
22
22
  exports.InnerContainer = (0, styles_1.styled)('div')(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n height: 100%;\n"], ["\n display: flex;\n justify-content: space-between;\n height: 100%;\n"])));
23
- exports.LeftContainer = (0, styles_1.styled)('div')(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n height: 100%;\n align-items: center;\n"], ["\n display: flex;\n justify-content: space-between;\n height: 100%;\n align-items: center;\n"])));
24
- exports.LogoContainer = (0, styles_1.styled)('div')(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin-left: ", ";\n margin-right: ", ";\n max-height: 24px;\n height: 100%;\n > * {\n height: 100%;\n }\n"], ["\n margin-left: ", ";\n margin-right: ", ";\n max-height: 24px;\n height: 100%;\n > * {\n height: 100%;\n }\n"])), function (_a) {
25
- var withWidget = _a.withWidget, theme = _a.theme;
26
- return withWidget && theme.spacing(2);
27
- }, function (_a) {
23
+ exports.LeftContainer = (0, styles_1.styled)('div')(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 100%;\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 100%;\n"])));
24
+ exports.LogoContainer = (0, styles_1.styled)('div')(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 100%;\n max-height: 24px;\n margin-right: ", ";\n margin-left: ", ";\n\n > * {\n height: 100%;\n }\n"], ["\n height: 100%;\n max-height: 24px;\n margin-right: ", ";\n margin-left: ", ";\n\n > * {\n height: 100%;\n }\n"])), function (_a) {
28
25
  var theme = _a.theme;
29
26
  return theme.spacing(4);
27
+ }, function (_a) {
28
+ var withWidget = _a.withWidget, theme = _a.theme;
29
+ return withWidget && theme.spacing(2);
30
30
  });
31
- exports.LogoStyle = (0, styles_1.styled)('img')(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: 100%;\n cursor: pointer;\n"], ["\n height: 100%;\n cursor: pointer;\n"])));
31
+ exports.LogoStyle = (0, styles_1.styled)('img')(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: 100%;\n\n cursor: pointer;\n"], ["\n height: 100%;\n\n cursor: pointer;\n"])));
32
32
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
@@ -7,15 +7,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.StyledDrawer = void 0;
8
8
  var material_1 = require("@mui/material");
9
9
  var styles_1 = require("../../styles");
10
- exports.StyledDrawer = (0, styles_1.styled)(material_1.Drawer)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n z-index: ", ";\n grid-column: 1;\n width: 241px;\n position: relative;\n .MuiPaper-root {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n background-color: ", ";\n padding: ", ";\n border-right: 1px solid ", ";\n }\n"], ["\n z-index: ", ";\n grid-column: 1;\n width: 241px;\n position: relative;\n .MuiPaper-root {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n background-color: ", ";\n padding: ", ";\n border-right: 1px solid ", ";\n }\n"])), function (_a) {
10
+ exports.StyledDrawer = (0, styles_1.styled)(material_1.Drawer)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n z-index: ", ";\n\n grid-column: 1;\n width: 241px;\n\n .MuiPaper-root {\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n\n padding: ", ";\n\n background-color: ", ";\n border-right: 1px solid ", ";\n }\n"], ["\n position: relative;\n z-index: ", ";\n\n grid-column: 1;\n width: 241px;\n\n .MuiPaper-root {\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n\n padding: ", ";\n\n background-color: ", ";\n border-right: 1px solid ", ";\n }\n"])), function (_a) {
11
11
  var theme = _a.theme;
12
12
  return theme.zIndex.appBar - 1;
13
13
  }, function (_a) {
14
14
  var theme = _a.theme;
15
- return theme.palette.background.element;
15
+ return theme.spacing(5, 0);
16
16
  }, function (_a) {
17
17
  var theme = _a.theme;
18
- return theme.spacing(5, 0);
18
+ return theme.palette.background.element;
19
19
  }, function (_a) {
20
20
  var theme = _a.theme;
21
21
  return theme.palette.grey[300];
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { DialogProps } from './types';
3
+ export declare const Dialog: ({ children, title, disableBackdropClick, onClose, ...props }: DialogProps) => JSX.Element;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.Dialog = void 0;
26
+ var jsx_runtime_1 = require("react/jsx-runtime");
27
+ var material_1 = require("@mui/material");
28
+ var index_1 = require("../index");
29
+ var Dialog = function (_a) {
30
+ var children = _a.children, title = _a.title, disableBackdropClick = _a.disableBackdropClick, onClose = _a.onClose, props = __rest(_a, ["children", "title", "disableBackdropClick", "onClose"]);
31
+ var handleClose = onClose &&
32
+ (function (event, reason) {
33
+ if (disableBackdropClick && reason == 'backdropClick')
34
+ return;
35
+ onClose(event, reason);
36
+ });
37
+ return ((0, jsx_runtime_1.jsxs)(material_1.Dialog, __assign({ onClose: handleClose }, props, { children: [title && (0, jsx_runtime_1.jsx)(index_1.DialogTitle, __assign({ onClose: onClose }, { children: title }), void 0), children] }), void 0));
38
+ };
39
+ exports.Dialog = Dialog;
@@ -0,0 +1,2 @@
1
+ export * from './Dialog';
2
+ export * from './types';
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./Dialog"), exports);
14
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { DialogProps as MuiDialogProps } from '@mui/material';
3
+ export declare type DialogProps = Omit<MuiDialogProps, 'onClose'> & {
4
+ title?: string;
5
+ disableBackdropClick?: boolean;
6
+ onClose?: (event?: React.MouseEvent<HTMLButtonElement>, reason?: 'backdropClick' | 'escapeKeyDown') => void;
7
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { DialogActionsProps } from '@mui/material';
3
+ export declare const DialogActions: ({ children, disableSpacing, ...props }: DialogActionsProps) => JSX.Element;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.DialogActions = void 0;
26
+ var jsx_runtime_1 = require("react/jsx-runtime");
27
+ var material_1 = require("@mui/material");
28
+ var Grid_1 = require("../Grid");
29
+ var DialogActions = function (_a) {
30
+ var children = _a.children, disableSpacing = _a.disableSpacing, props = __rest(_a, ["children", "disableSpacing"]);
31
+ return ((0, jsx_runtime_1.jsx)(material_1.DialogActions, __assign({}, props, { children: (0, jsx_runtime_1.jsx)(Grid_1.Grid, __assign({ container: true, autoFlow: "column", justifyContent: "end", spacing: disableSpacing ? 0 : 2 }, { children: children }), void 0) }), void 0));
32
+ };
33
+ exports.DialogActions = DialogActions;
@@ -0,0 +1 @@
1
+ export * from './DialogActions';
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./DialogActions"), exports);
@@ -0,0 +1 @@
1
+ export { DialogContent } from '@mui/material';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DialogContent = void 0;
4
+ var material_1 = require("@mui/material");
5
+ Object.defineProperty(exports, "DialogContent", { enumerable: true, get: function () { return material_1.DialogContent; } });
@@ -0,0 +1 @@
1
+ export * from './DialogContent';
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./DialogContent"), exports);
@@ -0,0 +1 @@
1
+ export { DialogContentText } from '@mui/material';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DialogContentText = void 0;
4
+ var material_1 = require("@mui/material");
5
+ Object.defineProperty(exports, "DialogContentText", { enumerable: true, get: function () { return material_1.DialogContentText; } });
@@ -0,0 +1 @@
1
+ export * from './DialogContentText';
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./DialogContentText"), exports);
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { DialogTitleProps } from './types';
3
+ export declare const DialogTitle: ({ children, onClose, ...props }: DialogTitleProps) => JSX.Element;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.DialogTitle = void 0;
26
+ var jsx_runtime_1 = require("react/jsx-runtime");
27
+ var material_1 = require("@mui/material");
28
+ var icons_1 = require("@astral/icons");
29
+ var IconButton_1 = require("../IconButton");
30
+ var DialogTitle = function (_a) {
31
+ var children = _a.children, onClose = _a.onClose, props = __rest(_a, ["children", "onClose"]);
32
+ return ((0, jsx_runtime_1.jsxs)(material_1.DialogTitle, __assign({}, props, { children: [children, onClose && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, __assign({ variant: "text", onClick: onClose }, { children: (0, jsx_runtime_1.jsx)(icons_1.CrossOutlineMd, {}, void 0) }), void 0))] }), void 0));
33
+ };
34
+ exports.DialogTitle = DialogTitle;
@@ -0,0 +1,2 @@
1
+ export * from './DialogTitle';
2
+ export * from './types';
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./DialogTitle"), exports);
14
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,4 @@
1
+ import { DialogTitleProps as MuiDialogTitleProps } from '@mui/material';
2
+ export declare type DialogTitleProps = MuiDialogTitleProps & {
3
+ onClose?: () => void;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.StyledFormControlLabel = void 0;
8
8
  var material_1 = require("@mui/material");
9
9
  var styles_1 = require("../styles");
10
- exports.StyledFormControlLabel = (0, styles_1.styled)(material_1.FormControlLabel)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-left: -5px;\n margin-right: 0;\n & .MuiFormControlLabel-label {\n margin-left: ", ";\n }\n"], ["\n margin-left: -5px;\n margin-right: 0;\n & .MuiFormControlLabel-label {\n margin-left: ", ";\n }\n"])), function (_a) {
10
+ exports.StyledFormControlLabel = (0, styles_1.styled)(material_1.FormControlLabel)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-right: 0;\n margin-left: -5px;\n\n & .MuiFormControlLabel-label {\n margin-left: ", ";\n }\n"], ["\n margin-right: 0;\n margin-left: -5px;\n\n & .MuiFormControlLabel-label {\n margin-left: ", ";\n }\n"])), function (_a) {
11
11
  var theme = _a.theme;
12
12
  return theme.spacing(1);
13
13
  });
@@ -18,7 +18,7 @@ exports.StyledIconButton = (0, styles_1.styled)(ButtonBase_1.ButtonBase, {
18
18
  shouldForwardProp: function (prop) {
19
19
  return prop !== 'startIcon' && prop !== 'endIcon' && prop !== 'loading';
20
20
  },
21
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: ", ";\n width: ", ";\n padding: ", ";\n"], ["\n height: ", ";\n width: ", ";\n padding: ", ";\n"])), exports.getButtonHeight, exports.getButtonHeight, function (_a) {
21
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n height: ", ";\n padding: ", ";\n"], ["\n width: ", ";\n height: ", ";\n padding: ", ";\n"])), exports.getButtonHeight, exports.getButtonHeight, function (_a) {
22
22
  var theme = _a.theme;
23
23
  return theme.spacing(1);
24
24
  });
package/List/styled.js CHANGED
@@ -7,5 +7,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.StyledList = void 0;
8
8
  var material_1 = require("@mui/material");
9
9
  var styles_1 = require("../styles");
10
- exports.StyledList = (0, styles_1.styled)(material_1.List)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n a {\n width: 100%;\n height: 100%;\n display: inline-block;\n text-decoration: none;\n }\n"], ["\n a {\n width: 100%;\n height: 100%;\n display: inline-block;\n text-decoration: none;\n }\n"])));
10
+ exports.StyledList = (0, styles_1.styled)(material_1.List)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n a {\n display: inline-block;\n width: 100%;\n height: 100%;\n\n text-decoration: none;\n }\n"], ["\n a {\n display: inline-block;\n width: 100%;\n height: 100%;\n\n text-decoration: none;\n }\n"])));
11
11
  var templateObject_1;
@@ -39,11 +39,11 @@ var getColor = function (_a) {
39
39
  exports.getColor = getColor;
40
40
  exports.StyledListItem = (0, styles_1.styled)(material_1.ListItem, {
41
41
  shouldForwardProp: function (prop) { return prop !== 'selected'; },
42
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n cursor: pointer;\n user-select: none;\n border-radius: ", ";\n background-color: ", ";\n color: ", ";\n :hover {\n color: ", ";\n }\n"], ["\n cursor: pointer;\n user-select: none;\n border-radius: ", ";\n background-color: ", ";\n color: ", ";\n :hover {\n color: ", ";\n }\n"])), function (_a) {
42
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n\n background-color: ", ";\n border-radius: ", ";\n cursor: pointer;\n\n user-select: none;\n\n :hover {\n color: ", ";\n }\n"], ["\n color: ", ";\n\n background-color: ", ";\n border-radius: ", ";\n cursor: pointer;\n\n user-select: none;\n\n :hover {\n color: ", ";\n }\n"])), function (props) {
43
+ return (0, exports.getColor)(__assign(__assign({}, props), { listItemState: constants_1.ListItemStates.DEFAULT }));
44
+ }, function (props) { return (0, exports.getBgColor)(__assign({}, props)); }, function (_a) {
43
45
  var theme = _a.theme;
44
46
  return theme.shape.small;
45
- }, function (props) { return (0, exports.getBgColor)(__assign({}, props)); }, function (props) {
46
- return (0, exports.getColor)(__assign(__assign({}, props), { listItemState: constants_1.ListItemStates.DEFAULT }));
47
47
  }, function (props) {
48
48
  return (0, exports.getColor)(__assign(__assign({}, props), { listItemState: constants_1.ListItemStates.HOVER }));
49
49
  });
@@ -35,11 +35,11 @@ var getColor = function (_a) {
35
35
  return theme.palette.grey[900];
36
36
  };
37
37
  exports.getColor = getColor;
38
- exports.StyledListItemButton = (0, styles_1.styled)(material_1.ListItemButton)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n cursor: pointer;\n user-select: none;\n border-radius: ", ";\n color: ", ";\n :hover {\n color: ", ";\n }\n"], ["\n background-color: ", ";\n cursor: pointer;\n user-select: none;\n border-radius: ", ";\n color: ", ";\n :hover {\n color: ", ";\n }\n"])), function (props) { return (0, exports.getBgColor)(__assign({}, props)); }, function (_a) {
38
+ exports.StyledListItemButton = (0, styles_1.styled)(material_1.ListItemButton)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n\n background-color: ", ";\n border-radius: ", ";\n cursor: pointer;\n\n user-select: none;\n\n :hover {\n color: ", ";\n }\n"], ["\n color: ", ";\n\n background-color: ", ";\n border-radius: ", ";\n cursor: pointer;\n\n user-select: none;\n\n :hover {\n color: ", ";\n }\n"])), function (props) {
39
+ return (0, exports.getColor)(__assign(__assign({}, props), { listItemButtonState: constants_1.ListItemButtonStates.DEFAULT }));
40
+ }, function (props) { return (0, exports.getBgColor)(__assign({}, props)); }, function (_a) {
39
41
  var theme = _a.theme;
40
42
  return theme.shape.small;
41
- }, function (props) {
42
- return (0, exports.getColor)(__assign(__assign({}, props), { listItemButtonState: constants_1.ListItemButtonStates.DEFAULT }));
43
43
  }, function (props) {
44
44
  return (0, exports.getColor)(__assign(__assign({}, props), { listItemButtonState: constants_1.ListItemButtonStates.HOVER }));
45
45
  });
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.StyledMenuList = void 0;
8
8
  var material_1 = require("@mui/material");
9
9
  var styles_1 = require("../styles");
10
- exports.StyledMenuList = (0, styles_1.styled)(material_1.MenuList)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &.MuiList-root {\n padding: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n }\n"], ["\n &.MuiList-root {\n padding: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n }\n"])), function (_a) {
10
+ exports.StyledMenuList = (0, styles_1.styled)(material_1.MenuList)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &.MuiList-root {\n padding: ", ";\n\n border-radius: ", ";\n box-shadow: ", ";\n }\n"], ["\n &.MuiList-root {\n padding: ", ";\n\n border-radius: ", ";\n box-shadow: ", ";\n }\n"])), function (_a) {
11
11
  var theme = _a.theme;
12
12
  return theme.spacing(1, 0);
13
13
  }, function (_a) {
package/Radio/styled.js CHANGED
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.StyledRadio = void 0;
8
8
  var material_1 = require("@mui/material");
9
9
  var styles_1 = require("../styles");
10
- exports.StyledRadio = (0, styles_1.styled)(material_1.Radio)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 5px;\n border-radius: unset;\n color: ", ";\n\n &:hover {\n background: none;\n & > svg {\n color: ", ";\n }\n }\n\n &.Mui-disabled:not(.Mui-checked) {\n color: ", ";\n & > svg {\n color: ", ";\n }\n }\n\n &.Mui-checked {\n color: ", ";\n &:hover {\n & > svg {\n color: ", ";\n }\n }\n &.Mui-disabled {\n color: ", ";\n }\n & > svg > path {\n fill: ", ";\n }\n }\n"], ["\n padding: 5px;\n border-radius: unset;\n color: ", ";\n\n &:hover {\n background: none;\n & > svg {\n color: ", ";\n }\n }\n\n &.Mui-disabled:not(.Mui-checked) {\n color: ", ";\n & > svg {\n color: ", ";\n }\n }\n\n &.Mui-checked {\n color: ", ";\n &:hover {\n & > svg {\n color: ", ";\n }\n }\n &.Mui-disabled {\n color: ", ";\n }\n & > svg > path {\n fill: ", ";\n }\n }\n"])), function (_a) {
10
+ exports.StyledRadio = (0, styles_1.styled)(material_1.Radio)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 5px;\n\n color: ", ";\n\n border-radius: unset;\n\n &:hover {\n background: none;\n\n & > svg {\n color: ", ";\n }\n }\n\n &.Mui-disabled:not(.Mui-checked) {\n color: ", ";\n\n & > svg {\n color: ", ";\n }\n }\n\n &.Mui-checked {\n color: ", ";\n\n &:hover {\n & > svg {\n color: ", ";\n }\n }\n\n &.Mui-disabled {\n color: ", ";\n }\n\n & > svg > path {\n fill: ", ";\n }\n }\n"], ["\n padding: 5px;\n\n color: ", ";\n\n border-radius: unset;\n\n &:hover {\n background: none;\n\n & > svg {\n color: ", ";\n }\n }\n\n &.Mui-disabled:not(.Mui-checked) {\n color: ", ";\n\n & > svg {\n color: ", ";\n }\n }\n\n &.Mui-checked {\n color: ", ";\n\n &:hover {\n & > svg {\n color: ", ";\n }\n }\n\n &.Mui-disabled {\n color: ", ";\n }\n\n & > svg > path {\n fill: ", ";\n }\n }\n"])), function (_a) {
11
11
  var theme = _a.theme;
12
12
  return theme.palette.background.default;
13
13
  }, function (_a) {
package/Select/styled.js CHANGED
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.Placeholder = exports.ProgressWrapper = exports.TagsWrapper = void 0;
8
8
  var styles_1 = require("../styles");
9
9
  var MenuItem_1 = require("../MenuItem");
10
- exports.TagsWrapper = styles_1.styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n margin-bottom: -", ";\n\n .MuiChip-root {\n margin-bottom: ", ";\n background-color: ", ";\n }\n\n .MuiChip-root:hover {\n background-color: ", ";\n }\n\n .MuiChip-root:not(:last-of-type) {\n margin-right: ", ";\n }\n"], ["\n display: flex;\n flex-wrap: wrap;\n margin-bottom: -", ";\n\n .MuiChip-root {\n margin-bottom: ", ";\n background-color: ", ";\n }\n\n .MuiChip-root:hover {\n background-color: ", ";\n }\n\n .MuiChip-root:not(:last-of-type) {\n margin-right: ", ";\n }\n"])), function (_a) {
10
+ exports.TagsWrapper = styles_1.styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n margin-bottom: -", ";\n\n .MuiChip-root {\n margin-bottom: ", ";\n\n background-color: ", ";\n }\n\n .MuiChip-root:hover {\n background-color: ", ";\n }\n\n .MuiChip-root:not(:last-of-type) {\n margin-right: ", ";\n }\n"], ["\n display: flex;\n flex-wrap: wrap;\n margin-bottom: -", ";\n\n .MuiChip-root {\n margin-bottom: ", ";\n\n background-color: ", ";\n }\n\n .MuiChip-root:hover {\n background-color: ", ";\n }\n\n .MuiChip-root:not(:last-of-type) {\n margin-right: ", ";\n }\n"])), function (_a) {
11
11
  var theme = _a.theme;
12
12
  return theme.spacing(1);
13
13
  }, function (_a) {
@@ -23,7 +23,7 @@ exports.TagsWrapper = styles_1.styled.div(templateObject_1 || (templateObject_1
23
23
  var theme = _a.theme;
24
24
  return theme.spacing(1);
25
25
  });
26
- exports.ProgressWrapper = styles_1.styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n min-height: 64px;\n align-items: center;\n\n .MuiCircularProgress-root {\n margin-top: ", ";\n color: ", ";\n }\n"], ["\n display: flex;\n flex-direction: column;\n min-height: 64px;\n align-items: center;\n\n .MuiCircularProgress-root {\n margin-top: ", ";\n color: ", ";\n }\n"])), function (_a) {
26
+ exports.ProgressWrapper = styles_1.styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n min-height: 64px;\n\n .MuiCircularProgress-root {\n margin-top: ", ";\n\n color: ", ";\n }\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n min-height: 64px;\n\n .MuiCircularProgress-root {\n margin-top: ", ";\n\n color: ", ";\n }\n"])), function (_a) {
27
27
  var theme = _a.theme;
28
28
  return theme.spacing(5);
29
29
  }, function (_a) {