@astral/ui 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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];
@@ -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) {
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];
@@ -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) {
package/esm/Tag/styled.js CHANGED
@@ -111,18 +111,18 @@ export var StyledTag = styled(Chip, {
111
111
  shouldForwardProp: function (prop) {
112
112
  return prop !== 'customColor' && prop !== 'customVariant' && prop !== 'rounded';
113
113
  },
114
- })(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) {
114
+ })(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) {
115
115
  return getBgColor(__assign(__assign({}, props), { tagState: TagStates.DEFAULT }));
116
- }, function (props) {
116
+ }, function (props) { return getShape(__assign({}, props)); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.HOVER })); }, function (props) {
117
117
  return getBgColor(__assign(__assign({}, props), { tagState: TagStates.HOVER }));
118
- }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.HOVER })); }, function (props) {
118
+ }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.ACTIVE })); }, function (props) {
119
119
  return getBgColor(__assign(__assign({}, props), { tagState: TagStates.ACTIVE }));
120
- }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.ACTIVE })); }, function (props) { return getTagLabelPadding(__assign({}, props)); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.DEFAULT })); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.HOVER })); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.ACTIVE })); }, function (props) { return getDeleteIconBorderRadius(__assign({}, props)); }, function (_a) {
120
+ }, function (props) { return getTagLabelPadding(__assign({}, props)); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.DEFAULT })); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.HOVER })); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.ACTIVE })); }, function (_a) {
121
121
  var theme = _a.theme;
122
122
  return theme.palette.grey[800];
123
123
  }, function (props) {
124
124
  return getDeleteIconBgColor(__assign(__assign({}, props), { iconState: TagStates.DEFAULT }));
125
- }, function (_a) {
125
+ }, function (props) { return getDeleteIconBorderRadius(__assign({}, props)); }, function (_a) {
126
126
  var theme = _a.theme;
127
127
  return theme.palette.grey[800];
128
128
  }, function (props) {
@@ -31,12 +31,9 @@ import { TooltipSizes } from './constants';
31
31
  export var StyledTooltip = styled(function (_a) {
32
32
  var className = _a.className, props = __rest(_a, ["className"]);
33
33
  return (_jsx(Tooltip, __assign({}, props, { classes: { popper: className } }), void 0));
34
- })(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) {
34
+ })(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) {
35
35
  var theme = _a.theme;
36
- return theme.palette.grey[900];
37
- }, function (_a) {
38
- var theme = _a.theme;
39
- return theme.shape.small;
36
+ return theme.typography.fontWeightRegular;
40
37
  }, function (_a) {
41
38
  var size = _a.size, theme = _a.theme;
42
39
  return size === TooltipSizes.SMALL
@@ -49,7 +46,10 @@ export var StyledTooltip = styled(function (_a) {
49
46
  : theme.typography.ui.lineHeight;
50
47
  }, function (_a) {
51
48
  var theme = _a.theme;
52
- return theme.typography.fontWeightRegular;
49
+ return theme.palette.grey[900];
50
+ }, function (_a) {
51
+ var theme = _a.theme;
52
+ return theme.shape.small;
53
53
  }, function (_a) {
54
54
  var theme = _a.theme;
55
55
  return theme.palette.grey[900];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astral/ui",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "browser": "./src/index.ts",
5
5
  "jest": {
6
6
  "moduleNameMapper": {
@@ -8,7 +8,7 @@
8
8
  }
9
9
  },
10
10
  "dependencies": {
11
- "@astral/icons": "^0.7.2",
11
+ "@astral/icons": "^0.9.0-preview",
12
12
  "@emotion/cache": "11.7.1",
13
13
  "@emotion/react": "11.8.1",
14
14
  "@emotion/server": "11.4.0",
@@ -21,6 +21,16 @@
21
21
  "peerDependencies": {
22
22
  "react": "^17.0.0"
23
23
  },
24
+ "exports": {
25
+ ".": {
26
+ "import": "./esm/index.js",
27
+ "require": "./cjs/index.js"
28
+ },
29
+ "./server": {
30
+ "import": "./esm/server/index.js",
31
+ "require": "./cjs/server/index.js"
32
+ }
33
+ },
24
34
  "author": "Astral.Soft",
25
35
  "license": "MIT",
26
36
  "repository": {