@astral/ui 0.23.0-alpha.0 → 0.23.0-alpha.3
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/Button/Button.d.ts +1 -2
- package/Button/Button.js +17 -6
- package/Button/styled.d.ts +12 -0
- package/Button/styled.js +36 -0
- package/Button/types.d.ts +6 -18
- package/ButtonBase/styled.d.ts +2 -5
- package/ButtonBase/styled.js +1 -2
- package/CircularProgress/CircularProgress.d.ts +1 -1
- package/CircularProgress/CircularProgress.js +7 -12
- package/CircularProgress/styled.d.ts +6 -0
- package/CircularProgress/styled.js +20 -0
- package/CircularProgress/types.d.ts +5 -8
- package/DataGrid/DataGridHeadColumn/styled.d.ts +1 -1
- package/FormHelperText/styled.d.ts +2 -2
- package/Grid/styled.d.ts +1 -1
- package/IconButton/styled.d.ts +5 -3
- package/ListItemButton/styled.d.ts +1 -1
- package/Radio/Radio.d.ts +1 -1
- package/Select/styled.d.ts +1 -1
- package/TextArea/TextArea.d.ts +1 -1
- package/TextField/TextField.d.ts +1 -1
- package/Tooltip/Tooltip.d.ts +1 -1
- package/esm/Button/Button.d.ts +1 -2
- package/esm/Button/Button.js +17 -7
- package/esm/Button/styled.d.ts +12 -0
- package/esm/Button/styled.js +33 -0
- package/esm/Button/types.d.ts +6 -18
- package/esm/ButtonBase/styled.d.ts +2 -5
- package/esm/ButtonBase/styled.js +1 -2
- package/esm/CircularProgress/CircularProgress.d.ts +1 -1
- package/esm/CircularProgress/CircularProgress.js +6 -9
- package/esm/CircularProgress/styled.d.ts +6 -0
- package/esm/CircularProgress/styled.js +17 -0
- package/esm/CircularProgress/types.d.ts +5 -8
- package/esm/DataGrid/DataGridHeadColumn/styled.d.ts +1 -1
- package/esm/FormHelperText/styled.d.ts +2 -2
- package/esm/Grid/styled.d.ts +1 -1
- package/esm/IconButton/styled.d.ts +5 -3
- package/esm/ListItemButton/styled.d.ts +1 -1
- package/esm/Radio/Radio.d.ts +1 -1
- package/esm/Select/styled.d.ts +1 -1
- package/esm/TextArea/TextArea.d.ts +1 -1
- package/esm/TextField/TextField.d.ts +1 -1
- package/esm/Tooltip/Tooltip.d.ts +1 -1
- package/esm/theme/components/components.js +0 -6
- package/package.json +2 -2
- package/theme/components/components.js +0 -6
- package/CircularProgress/CircularProgressStory.d.ts +0 -5
- package/CircularProgress/CircularProgressStory.js +0 -11
- package/CircularProgress/CircularProgressStoryTemplate.d.ts +0 -4
- package/CircularProgress/CircularProgressStoryTemplate.js +0 -21
- package/esm/CircularProgress/CircularProgressStory.d.ts +0 -5
- package/esm/CircularProgress/CircularProgressStory.js +0 -7
- package/esm/CircularProgress/CircularProgressStoryTemplate.d.ts +0 -4
- package/esm/CircularProgress/CircularProgressStoryTemplate.js +0 -17
- package/esm/theme/components/MuiButton.d.ts +0 -3
- package/esm/theme/components/MuiButton.js +0 -96
- package/esm/theme/components/MuiCircularProgress.d.ts +0 -4
- package/esm/theme/components/MuiCircularProgress.js +0 -14
- package/esm/theme/components/MuiLoadingButton.d.ts +0 -4
- package/esm/theme/components/MuiLoadingButton.js +0 -45
- package/theme/components/MuiButton.d.ts +0 -3
- package/theme/components/MuiButton.js +0 -99
- package/theme/components/MuiCircularProgress.d.ts +0 -4
- package/theme/components/MuiCircularProgress.js +0 -17
- package/theme/components/MuiLoadingButton.d.ts +0 -4
- package/theme/components/MuiLoadingButton.js +0 -48
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.MuiLoadingButton = void 0;
|
|
15
|
-
var lab_1 = require("@mui/lab");
|
|
16
|
-
var constants_1 = require("../../ButtonBase/constants");
|
|
17
|
-
var styled_1 = require("../../ButtonBase/styled");
|
|
18
|
-
exports.MuiLoadingButton = {
|
|
19
|
-
defaultProps: {
|
|
20
|
-
disableRipple: true,
|
|
21
|
-
},
|
|
22
|
-
styleOverrides: {
|
|
23
|
-
root: function (_a) {
|
|
24
|
-
var _b;
|
|
25
|
-
var ownerState = _a.ownerState, theme = _a.theme;
|
|
26
|
-
var customVariant = ownerState.variant;
|
|
27
|
-
var customColor = ownerState.color;
|
|
28
|
-
return _b = {},
|
|
29
|
-
_b["&.".concat(lab_1.loadingButtonClasses.loading)] = {
|
|
30
|
-
backgroundColor: (0, styled_1.getBgColor)({
|
|
31
|
-
customColor: customColor,
|
|
32
|
-
customVariant: customVariant,
|
|
33
|
-
theme: theme,
|
|
34
|
-
buttonState: constants_1.ButtonStates.DEFAULT,
|
|
35
|
-
}),
|
|
36
|
-
},
|
|
37
|
-
_b;
|
|
38
|
-
},
|
|
39
|
-
loadingIndicator: function (_a) {
|
|
40
|
-
var ownerState = _a.ownerState, theme = _a.theme;
|
|
41
|
-
var customVariant = ownerState.variant;
|
|
42
|
-
return __assign({}, (customVariant === 'contained' && {
|
|
43
|
-
color: theme.palette.primary.contrastText,
|
|
44
|
-
}));
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
exports.default = exports.MuiLoadingButton;
|