@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.
Files changed (67) hide show
  1. package/Button/Button.d.ts +1 -2
  2. package/Button/Button.js +17 -6
  3. package/Button/styled.d.ts +12 -0
  4. package/Button/styled.js +36 -0
  5. package/Button/types.d.ts +6 -18
  6. package/ButtonBase/styled.d.ts +2 -5
  7. package/ButtonBase/styled.js +1 -2
  8. package/CircularProgress/CircularProgress.d.ts +1 -1
  9. package/CircularProgress/CircularProgress.js +7 -12
  10. package/CircularProgress/styled.d.ts +6 -0
  11. package/CircularProgress/styled.js +20 -0
  12. package/CircularProgress/types.d.ts +5 -8
  13. package/DataGrid/DataGridHeadColumn/styled.d.ts +1 -1
  14. package/FormHelperText/styled.d.ts +2 -2
  15. package/Grid/styled.d.ts +1 -1
  16. package/IconButton/styled.d.ts +5 -3
  17. package/ListItemButton/styled.d.ts +1 -1
  18. package/Radio/Radio.d.ts +1 -1
  19. package/Select/styled.d.ts +1 -1
  20. package/TextArea/TextArea.d.ts +1 -1
  21. package/TextField/TextField.d.ts +1 -1
  22. package/Tooltip/Tooltip.d.ts +1 -1
  23. package/esm/Button/Button.d.ts +1 -2
  24. package/esm/Button/Button.js +17 -7
  25. package/esm/Button/styled.d.ts +12 -0
  26. package/esm/Button/styled.js +33 -0
  27. package/esm/Button/types.d.ts +6 -18
  28. package/esm/ButtonBase/styled.d.ts +2 -5
  29. package/esm/ButtonBase/styled.js +1 -2
  30. package/esm/CircularProgress/CircularProgress.d.ts +1 -1
  31. package/esm/CircularProgress/CircularProgress.js +6 -9
  32. package/esm/CircularProgress/styled.d.ts +6 -0
  33. package/esm/CircularProgress/styled.js +17 -0
  34. package/esm/CircularProgress/types.d.ts +5 -8
  35. package/esm/DataGrid/DataGridHeadColumn/styled.d.ts +1 -1
  36. package/esm/FormHelperText/styled.d.ts +2 -2
  37. package/esm/Grid/styled.d.ts +1 -1
  38. package/esm/IconButton/styled.d.ts +5 -3
  39. package/esm/ListItemButton/styled.d.ts +1 -1
  40. package/esm/Radio/Radio.d.ts +1 -1
  41. package/esm/Select/styled.d.ts +1 -1
  42. package/esm/TextArea/TextArea.d.ts +1 -1
  43. package/esm/TextField/TextField.d.ts +1 -1
  44. package/esm/Tooltip/Tooltip.d.ts +1 -1
  45. package/esm/theme/components/components.js +0 -6
  46. package/package.json +2 -2
  47. package/theme/components/components.js +0 -6
  48. package/CircularProgress/CircularProgressStory.d.ts +0 -5
  49. package/CircularProgress/CircularProgressStory.js +0 -11
  50. package/CircularProgress/CircularProgressStoryTemplate.d.ts +0 -4
  51. package/CircularProgress/CircularProgressStoryTemplate.js +0 -21
  52. package/esm/CircularProgress/CircularProgressStory.d.ts +0 -5
  53. package/esm/CircularProgress/CircularProgressStory.js +0 -7
  54. package/esm/CircularProgress/CircularProgressStoryTemplate.d.ts +0 -4
  55. package/esm/CircularProgress/CircularProgressStoryTemplate.js +0 -17
  56. package/esm/theme/components/MuiButton.d.ts +0 -3
  57. package/esm/theme/components/MuiButton.js +0 -96
  58. package/esm/theme/components/MuiCircularProgress.d.ts +0 -4
  59. package/esm/theme/components/MuiCircularProgress.js +0 -14
  60. package/esm/theme/components/MuiLoadingButton.d.ts +0 -4
  61. package/esm/theme/components/MuiLoadingButton.js +0 -45
  62. package/theme/components/MuiButton.d.ts +0 -3
  63. package/theme/components/MuiButton.js +0 -99
  64. package/theme/components/MuiCircularProgress.d.ts +0 -4
  65. package/theme/components/MuiCircularProgress.js +0 -17
  66. package/theme/components/MuiLoadingButton.d.ts +0 -4
  67. 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;