@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/Tag/styled.js CHANGED
@@ -114,18 +114,18 @@ exports.StyledTag = (0, styles_1.styled)(material_1.Chip, {
114
114
  shouldForwardProp: function (prop) {
115
115
  return prop !== 'customColor' && prop !== 'customVariant' && prop !== 'rounded';
116
116
  },
117
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n user-select: none;\n font-size: 14px;\n height: 20px;\n border-radius: ", ";\n background-color: ", ";\n\n &:hover {\n background-color: ", ";\n color: ", ";\n }\n &:active {\n background-color: ", ";\n color: ", ";\n }\n\n .MuiChip-label {\n padding: ", ";\n\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n &:active {\n color: ", ";\n }\n }\n .MuiChip-deleteIcon {\n margin: 0;\n width: 20px;\n height: 20px;\n border-radius: ", ";\n color: ", ";\n background: ", ";\n\n &:hover {\n color: ", ";\n background: ", ";\n }\n &:active {\n color: ", ";\n background: ", ";\n }\n }\n .MuiChip-avatar {\n margin: 2px;\n width: 16px;\n height: 16px;\n }\n .MuiChip-icon {\n width: 16px;\n height: 16px;\n }\n"], ["\n user-select: none;\n font-size: 14px;\n height: 20px;\n border-radius: ", ";\n background-color: ", ";\n\n &:hover {\n background-color: ", ";\n color: ", ";\n }\n &:active {\n background-color: ", ";\n color: ", ";\n }\n\n .MuiChip-label {\n padding: ", ";\n\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n &:active {\n color: ", ";\n }\n }\n .MuiChip-deleteIcon {\n margin: 0;\n width: 20px;\n height: 20px;\n border-radius: ", ";\n color: ", ";\n background: ", ";\n\n &:hover {\n color: ", ";\n background: ", ";\n }\n &:active {\n color: ", ";\n background: ", ";\n }\n }\n .MuiChip-avatar {\n margin: 2px;\n width: 16px;\n height: 16px;\n }\n .MuiChip-icon {\n width: 16px;\n height: 16px;\n }\n"])), function (props) { return getShape(__assign({}, props)); }, function (props) {
117
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 20px;\n\n font-size: 14px;\n\n background-color: ", ";\n border-radius: ", ";\n\n user-select: none;\n\n &:hover {\n color: ", ";\n\n background-color: ", ";\n }\n\n &:active {\n color: ", ";\n\n background-color: ", ";\n }\n\n .MuiChip-label {\n padding: ", ";\n\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &:active {\n color: ", ";\n }\n }\n\n .MuiChip-deleteIcon {\n width: 20px;\n height: 20px;\n margin: 0;\n\n color: ", ";\n\n background: ", ";\n border-radius: ", ";\n\n &:hover {\n color: ", ";\n\n background: ", ";\n }\n\n &:active {\n color: ", ";\n\n background: ", ";\n }\n }\n\n .MuiChip-avatar {\n width: 16px;\n height: 16px;\n margin: 2px;\n }\n\n .MuiChip-icon {\n width: 16px;\n height: 16px;\n }\n"], ["\n height: 20px;\n\n font-size: 14px;\n\n background-color: ", ";\n border-radius: ", ";\n\n user-select: none;\n\n &:hover {\n color: ", ";\n\n background-color: ", ";\n }\n\n &:active {\n color: ", ";\n\n background-color: ", ";\n }\n\n .MuiChip-label {\n padding: ", ";\n\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &:active {\n color: ", ";\n }\n }\n\n .MuiChip-deleteIcon {\n width: 20px;\n height: 20px;\n margin: 0;\n\n color: ", ";\n\n background: ", ";\n border-radius: ", ";\n\n &:hover {\n color: ", ";\n\n background: ", ";\n }\n\n &:active {\n color: ", ";\n\n background: ", ";\n }\n }\n\n .MuiChip-avatar {\n width: 16px;\n height: 16px;\n margin: 2px;\n }\n\n .MuiChip-icon {\n width: 16px;\n height: 16px;\n }\n"])), function (props) {
118
118
  return getBgColor(__assign(__assign({}, props), { tagState: constants_1.TagStates.DEFAULT }));
119
- }, function (props) {
119
+ }, function (props) { return getShape(__assign({}, props)); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: constants_1.TagStates.HOVER })); }, function (props) {
120
120
  return getBgColor(__assign(__assign({}, props), { tagState: constants_1.TagStates.HOVER }));
121
- }, function (props) { return getColor(__assign(__assign({}, props), { tagState: constants_1.TagStates.HOVER })); }, function (props) {
121
+ }, function (props) { return getColor(__assign(__assign({}, props), { tagState: constants_1.TagStates.ACTIVE })); }, function (props) {
122
122
  return getBgColor(__assign(__assign({}, props), { tagState: constants_1.TagStates.ACTIVE }));
123
- }, function (props) { return getColor(__assign(__assign({}, props), { tagState: constants_1.TagStates.ACTIVE })); }, function (props) { return getTagLabelPadding(__assign({}, props)); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: constants_1.TagStates.DEFAULT })); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: constants_1.TagStates.HOVER })); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: constants_1.TagStates.ACTIVE })); }, function (props) { return getDeleteIconBorderRadius(__assign({}, props)); }, function (_a) {
123
+ }, function (props) { return getTagLabelPadding(__assign({}, props)); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: constants_1.TagStates.DEFAULT })); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: constants_1.TagStates.HOVER })); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: constants_1.TagStates.ACTIVE })); }, function (_a) {
124
124
  var theme = _a.theme;
125
125
  return theme.palette.grey[800];
126
126
  }, function (props) {
127
127
  return getDeleteIconBgColor(__assign(__assign({}, props), { iconState: constants_1.TagStates.DEFAULT }));
128
- }, function (_a) {
128
+ }, function (props) { return getDeleteIconBorderRadius(__assign({}, props)); }, function (_a) {
129
129
  var theme = _a.theme;
130
130
  return theme.palette.grey[800];
131
131
  }, function (props) {
package/Tooltip/styled.js CHANGED
@@ -34,12 +34,9 @@ var constants_1 = require("./constants");
34
34
  exports.StyledTooltip = (0, styles_1.styled)(function (_a) {
35
35
  var className = _a.className, props = __rest(_a, ["className"]);
36
36
  return ((0, jsx_runtime_1.jsx)(material_1.Tooltip, __assign({}, props, { classes: { popper: className } }), void 0));
37
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n & .MuiTooltip-tooltip {\n margin: 0;\n background-color: ", ";\n border-radius: ", ";\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n }\n\n & .MuiTooltip-arrow {\n color: ", ";\n }\n\n &&[data-popper-placement*='top'] .MuiTooltip-tooltip {\n margin-bottom: ", ";\n }\n\n &&[data-popper-placement*='bottom'] .MuiTooltip-tooltip {\n margin-top: ", ";\n }\n\n &&[data-popper-placement*='left'] .MuiTooltip-tooltip {\n margin-right: ", ";\n }\n\n &&[data-popper-placement*='right'] .MuiTooltip-tooltip {\n margin-left: ", ";\n }\n"], ["\n & .MuiTooltip-tooltip {\n margin: 0;\n background-color: ", ";\n border-radius: ", ";\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n }\n\n & .MuiTooltip-arrow {\n color: ", ";\n }\n\n &&[data-popper-placement*='top'] .MuiTooltip-tooltip {\n margin-bottom: ", ";\n }\n\n &&[data-popper-placement*='bottom'] .MuiTooltip-tooltip {\n margin-top: ", ";\n }\n\n &&[data-popper-placement*='left'] .MuiTooltip-tooltip {\n margin-right: ", ";\n }\n\n &&[data-popper-placement*='right'] .MuiTooltip-tooltip {\n margin-left: ", ";\n }\n"])), function (_a) {
37
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n & .MuiTooltip-tooltip {\n margin: 0;\n\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n\n background-color: ", ";\n border-radius: ", ";\n }\n\n & .MuiTooltip-arrow {\n color: ", ";\n }\n\n &&[data-popper-placement*='top'] .MuiTooltip-tooltip {\n margin-bottom: ", ";\n }\n\n &&[data-popper-placement*='bottom'] .MuiTooltip-tooltip {\n margin-top: ", ";\n }\n\n &&[data-popper-placement*='left'] .MuiTooltip-tooltip {\n margin-right: ", ";\n }\n\n &&[data-popper-placement*='right'] .MuiTooltip-tooltip {\n margin-left: ", ";\n }\n"], ["\n & .MuiTooltip-tooltip {\n margin: 0;\n\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n\n background-color: ", ";\n border-radius: ", ";\n }\n\n & .MuiTooltip-arrow {\n color: ", ";\n }\n\n &&[data-popper-placement*='top'] .MuiTooltip-tooltip {\n margin-bottom: ", ";\n }\n\n &&[data-popper-placement*='bottom'] .MuiTooltip-tooltip {\n margin-top: ", ";\n }\n\n &&[data-popper-placement*='left'] .MuiTooltip-tooltip {\n margin-right: ", ";\n }\n\n &&[data-popper-placement*='right'] .MuiTooltip-tooltip {\n margin-left: ", ";\n }\n"])), function (_a) {
38
38
  var theme = _a.theme;
39
- return theme.palette.grey[900];
40
- }, function (_a) {
41
- var theme = _a.theme;
42
- return theme.shape.small;
39
+ return theme.typography.fontWeightRegular;
43
40
  }, function (_a) {
44
41
  var size = _a.size, theme = _a.theme;
45
42
  return size === constants_1.TooltipSizes.SMALL
@@ -52,7 +49,10 @@ exports.StyledTooltip = (0, styles_1.styled)(function (_a) {
52
49
  : theme.typography.ui.lineHeight;
53
50
  }, function (_a) {
54
51
  var theme = _a.theme;
55
- return theme.typography.fontWeightRegular;
52
+ return theme.palette.grey[900];
53
+ }, function (_a) {
54
+ var theme = _a.theme;
55
+ return theme.shape.small;
56
56
  }, function (_a) {
57
57
  var theme = _a.theme;
58
58
  return theme.palette.grey[900];
@@ -38,18 +38,18 @@ var getTextColor = function (_a) {
38
38
  };
39
39
  export var StyledBadge = styled(Badge, {
40
40
  shouldForwardProp: function (prop) { return prop !== 'customColor'; },
41
- })(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) {
42
- var customColor = _a.customColor, theme = _a.theme;
43
- return getBgColor({ customColor: customColor, theme: theme });
41
+ })(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) {
42
+ var theme = _a.theme;
43
+ return theme.spacing(0, 1);
44
44
  }, function (_a) {
45
45
  var customColor = _a.customColor, theme = _a.theme;
46
46
  return getTextColor({ customColor: customColor, theme: theme });
47
- }, function (_a) {
48
- var theme = _a.theme;
49
- return theme.spacing(0, 1);
50
47
  }, function (_a) {
51
48
  var theme = _a.theme;
52
49
  return theme.typography.small.fontSize;
50
+ }, function (_a) {
51
+ var customColor = _a.customColor, theme = _a.theme;
52
+ return getBgColor({ customColor: customColor, theme: theme });
53
53
  }, function (_a) {
54
54
  var theme = _a.theme;
55
55
  return theme.palette.common.white;
@@ -14,12 +14,12 @@ export var StyledButton = styled(ButtonBase, {
14
14
  shouldForwardProp: function (prop) {
15
15
  return prop !== 'startIcon' && prop !== 'endIcon' && prop !== 'loading';
16
16
  },
17
- })(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) {
17
+ })(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) {
18
18
  var loading = _a.loading;
19
- return (loading ? 'none' : 'inherit');
19
+ return loading && 'transparent';
20
20
  }, function (_a) {
21
21
  var loading = _a.loading;
22
- return loading && 'transparent';
22
+ return (loading ? 'none' : 'inherit');
23
23
  }, function (_a) {
24
24
  var loading = _a.loading;
25
25
  return loading && 'transparent';
@@ -167,36 +167,36 @@ export var StyledButtonBase = styled(ButtonUnstyled, {
167
167
  shouldForwardProp: function (prop) {
168
168
  return prop !== 'customColor' && prop !== 'customVariant';
169
169
  },
170
- })(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"])), getButtonPadding, getButtonHeight, function (_a) {
171
- var theme = _a.theme;
172
- return theme.shape.small;
170
+ })(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"])), getButtonHeight, getButtonPadding, function (props) {
171
+ return getColor(__assign(__assign({}, props), { buttonState: ButtonStates.DEFAULT }));
173
172
  }, function (_a) {
174
173
  var theme = _a.theme;
175
- return theme.typography.button.fontSize;
174
+ return theme.typography.button.fontWeight;
176
175
  }, function (_a) {
177
176
  var theme = _a.theme;
178
- return theme.typography.button.fontWeight;
177
+ return theme.typography.button.fontSize;
179
178
  }, function (props) {
180
179
  return getBgColor(__assign(__assign({}, props), { buttonState: ButtonStates.DEFAULT }));
180
+ }, function (_a) {
181
+ var theme = _a.theme;
182
+ return theme.shape.small;
181
183
  }, function (props) {
182
- return getColor(__assign(__assign({}, props), { buttonState: ButtonStates.DEFAULT }));
184
+ return getColor(__assign(__assign({}, props), { buttonState: ButtonStates.HOVER }));
183
185
  }, function (props) {
184
186
  return getBgColor(__assign(__assign({}, props), { buttonState: ButtonStates.HOVER }));
185
187
  }, function (props) {
186
- return getColor(__assign(__assign({}, props), { buttonState: ButtonStates.HOVER }));
188
+ return getColor(__assign(__assign({}, props), { buttonState: ButtonStates.FOCUS }));
187
189
  }, function (props) {
188
190
  return getBgColor(__assign(__assign({}, props), { buttonState: ButtonStates.FOCUS }));
189
- }, function (props) {
190
- return getColor(__assign(__assign({}, props), { buttonState: ButtonStates.FOCUS }));
191
191
  }, function (_a) {
192
192
  var theme = _a.theme;
193
193
  return theme.palette.primary['400'];
194
- }, function (props) {
195
- return getBgColor(__assign(__assign({}, props), { buttonState: ButtonStates.ACTIVE }));
196
194
  }, function (props) {
197
195
  return getColor(__assign(__assign({}, props), { buttonState: ButtonStates.ACTIVE }));
198
- }, buttonUnstyledClasses.disabled, getDisabledBgColor, function (_a) {
196
+ }, function (props) {
197
+ return getBgColor(__assign(__assign({}, props), { buttonState: ButtonStates.ACTIVE }));
198
+ }, buttonUnstyledClasses.disabled, function (_a) {
199
199
  var theme = _a.theme;
200
200
  return theme.palette.grey['500'];
201
- });
201
+ }, getDisabledBgColor);
202
202
  var templateObject_1;
@@ -4,7 +4,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
4
4
  };
5
5
  import { Checkbox } from '@mui/material';
6
6
  import { styled } from '../styles';
7
- export var StyledCheckbox = styled(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) {
7
+ export var StyledCheckbox = styled(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) {
8
8
  var theme = _a.theme;
9
9
  return theme.palette.background.element;
10
10
  }, function (_a) {
@@ -3,27 +3,27 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
3
3
  return cooked;
4
4
  };
5
5
  import { styled } from '../../styles';
6
- export var StyledHeader = 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) {
6
+ export var StyledHeader = 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) {
7
7
  var theme = _a.theme;
8
8
  return theme.zIndex.appBar;
9
- }, function (_a) {
10
- var theme = _a.theme;
11
- return theme.elevation[200];
12
9
  }, function (_a) {
13
10
  var theme = _a.theme;
14
11
  return theme.spacing(5);
15
12
  }, function (_a) {
16
13
  var theme = _a.theme;
17
14
  return theme.palette.background.default;
15
+ }, function (_a) {
16
+ var theme = _a.theme;
17
+ return theme.elevation[200];
18
18
  });
19
19
  export var InnerContainer = 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"])));
20
- export var LeftContainer = 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"])));
21
- export var LogoContainer = 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) {
22
- var withWidget = _a.withWidget, theme = _a.theme;
23
- return withWidget && theme.spacing(2);
24
- }, function (_a) {
20
+ export var LeftContainer = 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"])));
21
+ export var LogoContainer = 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) {
25
22
  var theme = _a.theme;
26
23
  return theme.spacing(4);
24
+ }, function (_a) {
25
+ var withWidget = _a.withWidget, theme = _a.theme;
26
+ return withWidget && theme.spacing(2);
27
27
  });
28
- export var LogoStyle = styled('img')(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: 100%;\n cursor: pointer;\n"], ["\n height: 100%;\n cursor: pointer;\n"])));
28
+ export var LogoStyle = styled('img')(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: 100%;\n\n cursor: pointer;\n"], ["\n height: 100%;\n\n cursor: pointer;\n"])));
29
29
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
@@ -4,15 +4,15 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
4
4
  };
5
5
  import { Drawer } from '@mui/material';
6
6
  import { styled } from '../../styles';
7
- export var StyledDrawer = styled(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) {
7
+ export var StyledDrawer = styled(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) {
8
8
  var theme = _a.theme;
9
9
  return theme.zIndex.appBar - 1;
10
10
  }, function (_a) {
11
11
  var theme = _a.theme;
12
- return theme.palette.background.element;
12
+ return theme.spacing(5, 0);
13
13
  }, function (_a) {
14
14
  var theme = _a.theme;
15
- return theme.spacing(5, 0);
15
+ return theme.palette.background.element;
16
16
  }, function (_a) {
17
17
  var theme = _a.theme;
18
18
  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,35 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { Dialog as MuiDialog } from '@mui/material';
25
+ import { DialogTitle } from '../index';
26
+ export var Dialog = function (_a) {
27
+ var children = _a.children, title = _a.title, disableBackdropClick = _a.disableBackdropClick, onClose = _a.onClose, props = __rest(_a, ["children", "title", "disableBackdropClick", "onClose"]);
28
+ var handleClose = onClose &&
29
+ (function (event, reason) {
30
+ if (disableBackdropClick && reason == 'backdropClick')
31
+ return;
32
+ onClose(event, reason);
33
+ });
34
+ return (_jsxs(MuiDialog, __assign({ onClose: handleClose }, props, { children: [title && _jsx(DialogTitle, __assign({ onClose: onClose }, { children: title }), void 0), children] }), void 0));
35
+ };
@@ -0,0 +1,2 @@
1
+ export * from './Dialog';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ export * from './Dialog';
2
+ export * from './types';
@@ -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 @@
1
+ export {};
@@ -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,29 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { DialogActions as MuiDialogActions, } from '@mui/material';
25
+ import { Grid } from '../Grid';
26
+ export var DialogActions = function (_a) {
27
+ var children = _a.children, disableSpacing = _a.disableSpacing, props = __rest(_a, ["children", "disableSpacing"]);
28
+ return (_jsx(MuiDialogActions, __assign({}, props, { children: _jsx(Grid, __assign({ container: true, autoFlow: "column", justifyContent: "end", spacing: disableSpacing ? 0 : 2 }, { children: children }), void 0) }), void 0));
29
+ };
@@ -0,0 +1 @@
1
+ export * from './DialogActions';
@@ -0,0 +1 @@
1
+ export * from './DialogActions';
@@ -0,0 +1 @@
1
+ export { DialogContent } from '@mui/material';
@@ -0,0 +1 @@
1
+ export { DialogContent } from '@mui/material';
@@ -0,0 +1 @@
1
+ export * from './DialogContent';
@@ -0,0 +1 @@
1
+ export * from './DialogContent';
@@ -0,0 +1 @@
1
+ export { DialogContentText } from '@mui/material';
@@ -0,0 +1 @@
1
+ export { DialogContentText } from '@mui/material';
@@ -0,0 +1 @@
1
+ export * from './DialogContentText';
@@ -0,0 +1 @@
1
+ export * from './DialogContentText';
@@ -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,30 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { DialogTitle as MuiDialogTitle } from '@mui/material';
25
+ import { CrossOutlineMd } from '@astral/icons';
26
+ import { IconButton } from '../IconButton';
27
+ export var DialogTitle = function (_a) {
28
+ var children = _a.children, onClose = _a.onClose, props = __rest(_a, ["children", "onClose"]);
29
+ return (_jsxs(MuiDialogTitle, __assign({}, props, { children: [children, onClose && (_jsx(IconButton, __assign({ variant: "text", onClick: onClose }, { children: _jsx(CrossOutlineMd, {}, void 0) }), void 0))] }), void 0));
30
+ };
@@ -0,0 +1,2 @@
1
+ export * from './DialogTitle';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ export * from './DialogTitle';
2
+ export * from './types';
@@ -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 @@
1
+ export {};
@@ -4,7 +4,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
4
4
  };
5
5
  import { FormControlLabel } from '@mui/material';
6
6
  import { styled } from '../styles';
7
- export var StyledFormControlLabel = styled(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) {
7
+ export var StyledFormControlLabel = styled(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) {
8
8
  var theme = _a.theme;
9
9
  return theme.spacing(1);
10
10
  });
@@ -14,7 +14,7 @@ export var StyledIconButton = styled(ButtonBase, {
14
14
  shouldForwardProp: function (prop) {
15
15
  return prop !== 'startIcon' && prop !== 'endIcon' && prop !== 'loading';
16
16
  },
17
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: ", ";\n width: ", ";\n padding: ", ";\n"], ["\n height: ", ";\n width: ", ";\n padding: ", ";\n"])), getButtonHeight, getButtonHeight, function (_a) {
17
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n height: ", ";\n padding: ", ";\n"], ["\n width: ", ";\n height: ", ";\n padding: ", ";\n"])), getButtonHeight, getButtonHeight, function (_a) {
18
18
  var theme = _a.theme;
19
19
  return theme.spacing(1);
20
20
  });
@@ -4,5 +4,5 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
4
4
  };
5
5
  import { List as MuiList } from '@mui/material';
6
6
  import { styled } from '../styles';
7
- export var StyledList = styled(MuiList)(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"])));
7
+ export var StyledList = styled(MuiList)(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"])));
8
8
  var templateObject_1;
@@ -34,11 +34,11 @@ export var getColor = function (_a) {
34
34
  };
35
35
  export var StyledListItem = styled(ListItem, {
36
36
  shouldForwardProp: function (prop) { return prop !== 'selected'; },
37
- })(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) {
37
+ })(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) {
38
+ return getColor(__assign(__assign({}, props), { listItemState: ListItemStates.DEFAULT }));
39
+ }, function (props) { return getBgColor(__assign({}, props)); }, function (_a) {
38
40
  var theme = _a.theme;
39
41
  return theme.shape.small;
40
- }, function (props) { return getBgColor(__assign({}, props)); }, function (props) {
41
- return getColor(__assign(__assign({}, props), { listItemState: ListItemStates.DEFAULT }));
42
42
  }, function (props) {
43
43
  return getColor(__assign(__assign({}, props), { listItemState: ListItemStates.HOVER }));
44
44
  });
@@ -30,11 +30,11 @@ export var getColor = function (_a) {
30
30
  return theme.palette.primary[800];
31
31
  return theme.palette.grey[900];
32
32
  };
33
- export var StyledListItemButton = styled(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 getBgColor(__assign({}, props)); }, function (_a) {
33
+ export var StyledListItemButton = styled(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) {
34
+ return getColor(__assign(__assign({}, props), { listItemButtonState: ListItemButtonStates.DEFAULT }));
35
+ }, function (props) { return getBgColor(__assign({}, props)); }, function (_a) {
34
36
  var theme = _a.theme;
35
37
  return theme.shape.small;
36
- }, function (props) {
37
- return getColor(__assign(__assign({}, props), { listItemButtonState: ListItemButtonStates.DEFAULT }));
38
38
  }, function (props) {
39
39
  return getColor(__assign(__assign({}, props), { listItemButtonState: ListItemButtonStates.HOVER }));
40
40
  });
@@ -4,7 +4,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
4
4
  };
5
5
  import { MenuList } from '@mui/material';
6
6
  import { styled } from '../styles';
7
- export var StyledMenuList = styled(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) {
7
+ export var StyledMenuList = styled(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) {
8
8
  var theme = _a.theme;
9
9
  return theme.spacing(1, 0);
10
10
  }, function (_a) {
@@ -4,7 +4,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
4
4
  };
5
5
  import { Radio } from '@mui/material';
6
6
  import { styled } from '../styles';
7
- export var StyledRadio = styled(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) {
7
+ export var StyledRadio = styled(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) {
8
8
  var theme = _a.theme;
9
9
  return theme.palette.background.default;
10
10
  }, function (_a) {
@@ -4,7 +4,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
4
4
  };
5
5
  import { styled } from '../styles';
6
6
  import { MenuItem } from '../MenuItem';
7
- export var TagsWrapper = 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) {
7
+ export var TagsWrapper = 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) {
8
8
  var theme = _a.theme;
9
9
  return theme.spacing(1);
10
10
  }, function (_a) {
@@ -20,7 +20,7 @@ export var TagsWrapper = styled.div(templateObject_1 || (templateObject_1 = __ma
20
20
  var theme = _a.theme;
21
21
  return theme.spacing(1);
22
22
  });
23
- export var ProgressWrapper = 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) {
23
+ export var ProgressWrapper = 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) {
24
24
  var theme = _a.theme;
25
25
  return theme.spacing(5);
26
26
  }, function (_a) {