@astral/ui 0.1.1 → 0.2.1
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/esm/src/Badge/Badge.d.ts +1 -0
- package/esm/src/Badge/styled.d.ts +2 -2
- package/esm/src/Button/Button.d.ts +1 -0
- package/esm/src/Button/styled.js +4 -1
- package/esm/src/ButtonBase/ButtonBase.d.ts +1 -0
- package/esm/src/ButtonBase/styled.d.ts +1 -6
- package/esm/src/ButtonBase/styled.js +124 -118
- package/esm/src/Checkbox/Checkbox.d.ts +3 -0
- package/esm/src/Checkbox/Checkbox.js +29 -0
- package/esm/src/Checkbox/icons.d.ts +5 -0
- package/esm/src/Checkbox/icons.js +36 -0
- package/esm/src/Checkbox/index.d.ts +2 -0
- package/esm/src/Checkbox/index.js +2 -0
- package/esm/src/Checkbox/styled.d.ts +4 -0
- package/esm/src/Checkbox/styled.js +32 -0
- package/esm/src/Checkbox/types.d.ts +2 -0
- package/{cjs/src/theme/__tests__/BaseTheme.test.d.ts → esm/src/Checkbox/types.js} +0 -0
- package/esm/src/CircularProgress/CircularProgress.d.ts +1 -0
- package/esm/src/CircularProgress/CircularProgress.js +2 -1
- package/esm/src/CircularProgress/constants.d.ts +1 -2
- package/esm/src/CircularProgress/constants.js +0 -1
- package/esm/src/CircularProgress/styled.d.ts +0 -1
- package/esm/src/CircularProgress/styled.js +3 -9
- package/esm/src/FormControlLabel/FormControlLabel.d.ts +3 -0
- package/esm/src/FormControlLabel/FormControlLabel.js +28 -0
- package/esm/src/FormControlLabel/index.d.ts +2 -0
- package/esm/src/FormControlLabel/index.js +2 -0
- package/esm/src/FormControlLabel/styled.d.ts +3 -0
- package/esm/src/FormControlLabel/styled.js +11 -0
- package/esm/src/FormControlLabel/types.d.ts +2 -0
- package/esm/src/FormControlLabel/types.js +1 -0
- package/esm/src/FormHelperText/FormHelperText.d.ts +4 -0
- package/esm/src/FormHelperText/FormHelperText.js +20 -0
- package/esm/src/FormHelperText/index.d.ts +1 -0
- package/esm/src/FormHelperText/index.js +1 -0
- package/esm/src/FormHelperText/styled.d.ts +41 -0
- package/esm/src/FormHelperText/styled.js +11 -0
- package/esm/src/FormHelperText/types.d.ts +6 -0
- package/esm/src/FormHelperText/types.js +1 -0
- package/esm/src/GlobalStyles/GlobalStyles.d.ts +3 -0
- package/esm/src/GlobalStyles/GlobalStyles.js +35 -0
- package/esm/src/GlobalStyles/index.d.ts +1 -0
- package/esm/src/GlobalStyles/index.js +1 -0
- package/esm/src/Grid/Grid.d.ts +3 -0
- package/esm/src/Grid/Grid.js +28 -0
- package/esm/src/Grid/index.d.ts +2 -0
- package/esm/src/Grid/index.js +2 -0
- package/esm/src/Grid/styled.d.ts +13 -0
- package/esm/src/Grid/styled.js +11 -0
- package/esm/src/Grid/types.d.ts +30 -0
- package/esm/src/Grid/types.js +1 -0
- package/esm/src/IconButton/IconButton.d.ts +1 -0
- package/esm/src/Menu/Menu.d.ts +3 -0
- package/esm/src/Menu/Menu.js +28 -0
- package/esm/src/Menu/index.d.ts +1 -0
- package/esm/src/Menu/index.js +1 -0
- package/esm/src/MenuItem/MenuItem.d.ts +3 -0
- package/esm/src/MenuItem/MenuItem.js +28 -0
- package/esm/src/MenuItem/index.d.ts +1 -0
- package/esm/src/MenuItem/index.js +1 -0
- package/esm/src/MenuList/MenuList.d.ts +3 -0
- package/esm/src/MenuList/MenuList.js +28 -0
- package/esm/src/MenuList/index.d.ts +2 -0
- package/esm/src/MenuList/index.js +2 -0
- package/esm/src/MenuList/styled.d.ts +20 -0
- package/esm/src/MenuList/styled.js +17 -0
- package/esm/src/MenuList/types.d.ts +2 -0
- package/esm/src/MenuList/types.js +1 -0
- package/esm/src/Tag/Tag.d.ts +3 -0
- package/esm/src/Tag/Tag.js +28 -0
- package/esm/src/Tag/constants.d.ts +21 -0
- package/esm/src/Tag/constants.js +25 -0
- package/esm/src/Tag/index.d.ts +2 -0
- package/esm/src/Tag/index.js +2 -0
- package/esm/src/Tag/styled.d.ts +26 -0
- package/esm/src/Tag/styled.js +117 -0
- package/esm/src/Tag/types.d.ts +12 -0
- package/esm/src/Tag/types.js +1 -0
- package/esm/src/TextField/TextField.d.ts +4 -0
- package/esm/src/TextField/TextField.js +46 -0
- package/esm/src/TextField/index.d.ts +2 -0
- package/esm/src/TextField/index.js +2 -0
- package/esm/src/TextField/types.d.ts +6 -0
- package/esm/src/TextField/types.js +1 -0
- package/esm/src/ThemeProvider/ThemeProvider.js +3 -2
- package/esm/src/Typography/Typography.d.ts +1 -0
- package/esm/src/index.d.ts +6 -0
- package/esm/src/index.js +6 -0
- package/esm/src/theme/__tests__/BaseTheme.test.js +1 -1
- package/esm/src/theme/baseTheme.d.ts +4 -3
- package/esm/src/theme/baseTheme.js +2 -2
- package/esm/src/theme/components/MuiFormHelperText.d.ts +4 -0
- package/esm/src/theme/components/MuiFormHelperText.js +15 -0
- package/esm/src/theme/components/MuiFormLabel.d.ts +4 -0
- package/esm/src/theme/components/MuiFormLabel.js +11 -0
- package/esm/src/theme/components/MuiInputBase.d.ts +4 -0
- package/esm/src/theme/components/MuiInputBase.js +13 -0
- package/esm/src/theme/components/MuiInputLabel.d.ts +4 -0
- package/esm/src/theme/components/MuiInputLabel.js +29 -0
- package/esm/src/theme/components/MuiOutlinedInput.d.ts +4 -0
- package/esm/src/theme/components/MuiOutlinedInput.js +61 -0
- package/esm/src/theme/components/MuiTypography.d.ts +21 -0
- package/esm/src/theme/components/MuiTypography.js +18 -0
- package/esm/src/theme/{components.d.ts → components/components.d.ts} +2 -1
- package/esm/src/theme/components/components.js +61 -0
- package/esm/src/theme/components/index.d.ts +1 -0
- package/esm/src/theme/components/index.js +1 -0
- package/esm/src/theme/elevation.js +5 -5
- package/esm/src/theme/hooks/index.d.ts +1 -0
- package/esm/src/theme/hooks/index.js +1 -0
- package/esm/src/theme/hooks/useTheme/index.d.ts +2 -0
- package/esm/src/theme/hooks/useTheme/index.js +2 -0
- package/esm/src/theme/index.d.ts +1 -0
- package/esm/src/theme/index.js +1 -0
- package/esm/src/theme/palette/palette.d.ts +1 -1
- package/esm/src/theme/typography.js +1 -1
- package/{cjs → node}/index.d.ts +0 -0
- package/{cjs → node}/index.js +0 -0
- package/{cjs → node}/src/Badge/Badge.d.ts +1 -0
- package/{cjs → node}/src/Badge/Badge.js +0 -0
- package/{cjs → node}/src/Badge/index.d.ts +0 -0
- package/{cjs → node}/src/Badge/index.js +0 -0
- package/{cjs → node}/src/Badge/styled.d.ts +2 -2
- package/{cjs → node}/src/Badge/styled.js +0 -0
- package/{cjs → node}/src/Badge/types.d.ts +0 -0
- package/{cjs → node}/src/Badge/types.js +0 -0
- package/{cjs → node}/src/Button/Button.d.ts +1 -0
- package/{cjs → node}/src/Button/Button.js +0 -0
- package/{cjs → node}/src/Button/index.d.ts +0 -0
- package/{cjs → node}/src/Button/index.js +0 -0
- package/{cjs → node}/src/Button/styled.d.ts +0 -0
- package/{cjs → node}/src/Button/styled.js +4 -1
- package/{cjs → node}/src/Button/types.d.ts +0 -0
- package/{cjs → node}/src/Button/types.js +0 -0
- package/{cjs → node}/src/ButtonBase/ButtonBase.d.ts +1 -0
- package/{cjs → node}/src/ButtonBase/ButtonBase.js +0 -0
- package/{cjs → node}/src/ButtonBase/constants.d.ts +0 -0
- package/{cjs → node}/src/ButtonBase/constants.js +0 -0
- package/{cjs → node}/src/ButtonBase/index.d.ts +0 -0
- package/{cjs → node}/src/ButtonBase/index.js +0 -0
- package/{cjs → node}/src/ButtonBase/styled.d.ts +1 -6
- package/node/src/ButtonBase/styled.js +229 -0
- package/{cjs → node}/src/ButtonBase/types.d.ts +0 -0
- package/{cjs → node}/src/ButtonBase/types.js +0 -0
- package/node/src/Checkbox/Checkbox.d.ts +3 -0
- package/node/src/Checkbox/Checkbox.js +33 -0
- package/node/src/Checkbox/icons.d.ts +5 -0
- package/node/src/Checkbox/icons.js +42 -0
- package/node/src/Checkbox/index.d.ts +2 -0
- package/node/src/Checkbox/index.js +14 -0
- package/node/src/Checkbox/styled.d.ts +4 -0
- package/node/src/Checkbox/styled.js +35 -0
- package/node/src/Checkbox/types.d.ts +2 -0
- package/{cjs/src/CircularProgress → node/src/Checkbox}/types.js +0 -0
- package/{cjs → node}/src/CircularProgress/CircularProgress.d.ts +1 -0
- package/{cjs → node}/src/CircularProgress/CircularProgress.js +2 -1
- package/{cjs → node}/src/CircularProgress/constants.d.ts +1 -2
- package/{cjs → node}/src/CircularProgress/constants.js +0 -1
- package/{cjs → node}/src/CircularProgress/index.d.ts +0 -0
- package/{cjs → node}/src/CircularProgress/index.js +0 -0
- package/{cjs → node}/src/CircularProgress/styled.d.ts +0 -1
- package/{cjs → node}/src/CircularProgress/styled.js +2 -8
- package/{cjs → node}/src/CircularProgress/types.d.ts +0 -0
- package/{cjs/src/styles/styled → node/src/CircularProgress}/types.js +0 -0
- package/node/src/FormControlLabel/FormControlLabel.d.ts +3 -0
- package/node/src/FormControlLabel/FormControlLabel.js +32 -0
- package/node/src/FormControlLabel/index.d.ts +2 -0
- package/node/src/FormControlLabel/index.js +14 -0
- package/node/src/FormControlLabel/styled.d.ts +3 -0
- package/node/src/FormControlLabel/styled.js +14 -0
- package/node/src/FormControlLabel/types.d.ts +2 -0
- package/node/src/FormControlLabel/types.js +2 -0
- package/node/src/FormHelperText/FormHelperText.d.ts +4 -0
- package/node/src/FormHelperText/FormHelperText.js +24 -0
- package/node/src/FormHelperText/index.d.ts +1 -0
- package/node/src/FormHelperText/index.js +13 -0
- package/node/src/FormHelperText/styled.d.ts +41 -0
- package/node/src/FormHelperText/styled.js +14 -0
- package/node/src/FormHelperText/types.d.ts +6 -0
- package/node/src/FormHelperText/types.js +2 -0
- package/node/src/GlobalStyles/GlobalStyles.d.ts +3 -0
- package/node/src/GlobalStyles/GlobalStyles.js +39 -0
- package/node/src/GlobalStyles/index.d.ts +1 -0
- package/node/src/GlobalStyles/index.js +13 -0
- package/node/src/Grid/Grid.d.ts +3 -0
- package/node/src/Grid/Grid.js +32 -0
- package/node/src/Grid/index.d.ts +2 -0
- package/node/src/Grid/index.js +14 -0
- package/node/src/Grid/styled.d.ts +13 -0
- package/node/src/Grid/styled.js +14 -0
- package/node/src/Grid/types.d.ts +30 -0
- package/node/src/Grid/types.js +2 -0
- package/{cjs → node}/src/IconButton/IconButton.d.ts +1 -0
- package/{cjs → node}/src/IconButton/IconButton.js +0 -0
- package/{cjs → node}/src/IconButton/index.d.ts +0 -0
- package/{cjs → node}/src/IconButton/index.js +0 -0
- package/{cjs → node}/src/IconButton/styled.d.ts +0 -0
- package/{cjs → node}/src/IconButton/styled.js +0 -0
- package/node/src/Menu/Menu.d.ts +3 -0
- package/node/src/Menu/Menu.js +32 -0
- package/node/src/Menu/index.d.ts +1 -0
- package/node/src/Menu/index.js +13 -0
- package/node/src/MenuItem/MenuItem.d.ts +3 -0
- package/node/src/MenuItem/MenuItem.js +32 -0
- package/node/src/MenuItem/index.d.ts +1 -0
- package/node/src/MenuItem/index.js +13 -0
- package/node/src/MenuList/MenuList.d.ts +3 -0
- package/node/src/MenuList/MenuList.js +32 -0
- package/node/src/MenuList/index.d.ts +2 -0
- package/node/src/MenuList/index.js +14 -0
- package/node/src/MenuList/styled.d.ts +20 -0
- package/node/src/MenuList/styled.js +20 -0
- package/node/src/MenuList/types.d.ts +2 -0
- package/node/src/MenuList/types.js +2 -0
- package/node/src/Tag/Tag.d.ts +3 -0
- package/node/src/Tag/Tag.js +32 -0
- package/node/src/Tag/constants.d.ts +21 -0
- package/node/src/Tag/constants.js +28 -0
- package/node/src/Tag/index.d.ts +2 -0
- package/node/src/Tag/index.js +14 -0
- package/node/src/Tag/styled.d.ts +26 -0
- package/node/src/Tag/styled.js +120 -0
- package/node/src/Tag/types.d.ts +12 -0
- package/node/src/Tag/types.js +2 -0
- package/node/src/TextField/TextField.d.ts +4 -0
- package/node/src/TextField/TextField.js +53 -0
- package/node/src/TextField/index.d.ts +2 -0
- package/node/src/TextField/index.js +14 -0
- package/node/src/TextField/types.d.ts +6 -0
- package/node/src/TextField/types.js +2 -0
- package/{cjs → node}/src/ThemeProvider/ThemeProvider.d.ts +0 -0
- package/{cjs → node}/src/ThemeProvider/ThemeProvider.js +2 -1
- package/{cjs → node}/src/ThemeProvider/index.d.ts +0 -0
- package/{cjs → node}/src/ThemeProvider/index.js +0 -0
- package/{cjs → node}/src/Typography/Typography.d.ts +1 -0
- package/{cjs → node}/src/Typography/Typography.js +0 -0
- package/{cjs → node}/src/Typography/index.d.ts +0 -0
- package/{cjs → node}/src/Typography/index.js +0 -0
- package/{cjs → node}/src/index.d.ts +6 -0
- package/{cjs → node}/src/index.js +6 -0
- package/{cjs → node}/src/styles/index.d.ts +0 -0
- package/{cjs → node}/src/styles/index.js +0 -0
- package/{cjs → node}/src/styles/styled/index.d.ts +0 -0
- package/{cjs → node}/src/styles/styled/index.js +0 -0
- package/{cjs → node}/src/styles/styled/styled.d.ts +0 -0
- package/{cjs → node}/src/styles/styled/styled.js +0 -0
- package/{cjs → node}/src/styles/styled/types.d.ts +0 -0
- package/node/src/styles/styled/types.js +2 -0
- package/node/src/theme/__tests__/BaseTheme.test.d.ts +1 -0
- package/{cjs → node}/src/theme/__tests__/BaseTheme.test.js +1 -1
- package/{cjs → node}/src/theme/baseTheme.d.ts +4 -3
- package/{cjs → node}/src/theme/baseTheme.js +2 -2
- package/node/src/theme/components/MuiFormHelperText.d.ts +4 -0
- package/node/src/theme/components/MuiFormHelperText.js +18 -0
- package/node/src/theme/components/MuiFormLabel.d.ts +4 -0
- package/node/src/theme/components/MuiFormLabel.js +14 -0
- package/node/src/theme/components/MuiInputBase.d.ts +4 -0
- package/node/src/theme/components/MuiInputBase.js +16 -0
- package/node/src/theme/components/MuiInputLabel.d.ts +4 -0
- package/node/src/theme/components/MuiInputLabel.js +32 -0
- package/node/src/theme/components/MuiOutlinedInput.d.ts +4 -0
- package/node/src/theme/components/MuiOutlinedInput.js +64 -0
- package/node/src/theme/components/MuiTypography.d.ts +21 -0
- package/node/src/theme/components/MuiTypography.js +21 -0
- package/{cjs/src/theme → node/src/theme/components}/components.d.ts +2 -1
- package/node/src/theme/components/components.js +65 -0
- package/node/src/theme/components/index.d.ts +1 -0
- package/node/src/theme/components/index.js +13 -0
- package/{cjs → node}/src/theme/constants.d.ts +0 -0
- package/{cjs → node}/src/theme/constants.js +0 -0
- package/{cjs → node}/src/theme/elevation.d.ts +0 -0
- package/node/src/theme/elevation.js +10 -0
- package/node/src/theme/hooks/index.d.ts +1 -0
- package/node/src/theme/hooks/index.js +13 -0
- package/node/src/theme/hooks/useTheme/index.d.ts +2 -0
- package/node/src/theme/hooks/useTheme/index.js +6 -0
- package/{cjs → node}/src/theme/index.d.ts +1 -0
- package/{cjs → node}/src/theme/index.js +1 -0
- package/{cjs → node}/src/theme/palette/brandPalette.d.ts +0 -0
- package/{cjs → node}/src/theme/palette/brandPalette.js +0 -0
- package/{cjs → node}/src/theme/palette/index.d.ts +0 -0
- package/{cjs → node}/src/theme/palette/index.js +0 -0
- package/{cjs → node}/src/theme/palette/palette.d.ts +1 -1
- package/{cjs → node}/src/theme/palette/palette.js +0 -0
- package/{cjs → node}/src/theme/shape.d.ts +0 -0
- package/{cjs → node}/src/theme/shape.js +0 -0
- package/{cjs → node}/src/theme/typography.d.ts +0 -0
- package/{cjs → node}/src/theme/typography.js +1 -1
- package/package.json +3 -2
- package/cjs/src/ButtonBase/styled.js +0 -224
- package/cjs/src/theme/components.js +0 -28
- package/cjs/src/theme/elevation.js +0 -10
- package/esm/src/theme/components.js +0 -24
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
var __assign = (this && this.__assign) || function () {
|
|
6
|
+
__assign = Object.assign || function(t) {
|
|
7
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
+
s = arguments[i];
|
|
9
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
+
t[p] = s[p];
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
13
|
+
};
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
import { Chip } from '@mui/material';
|
|
17
|
+
import { styled } from '../styles';
|
|
18
|
+
import { TagColors, TagStates } from './constants';
|
|
19
|
+
var getShape = function (_a) {
|
|
20
|
+
var theme = _a.theme, rounded = _a.rounded;
|
|
21
|
+
if (rounded)
|
|
22
|
+
return '100px';
|
|
23
|
+
return theme.shape.small;
|
|
24
|
+
};
|
|
25
|
+
var getDeleteIconBorderRadius = function (_a) {
|
|
26
|
+
var theme = _a.theme, rounded = _a.rounded;
|
|
27
|
+
if (rounded)
|
|
28
|
+
return '100px';
|
|
29
|
+
return "0 ".concat(theme.shape.small, " ").concat(theme.shape.small, " 0");
|
|
30
|
+
};
|
|
31
|
+
var getBgColor = function (_a) {
|
|
32
|
+
var theme = _a.theme, customColor = _a.customColor, customVariant = _a.customVariant;
|
|
33
|
+
if (customColor === TagColors.GREY) {
|
|
34
|
+
return theme.palette.grey[100];
|
|
35
|
+
}
|
|
36
|
+
var backgroundColorVariants = {
|
|
37
|
+
contained: {
|
|
38
|
+
primary: theme.palette.primary.main,
|
|
39
|
+
error: theme.palette.red[800],
|
|
40
|
+
success: theme.palette.green[800],
|
|
41
|
+
warning: theme.palette.yellow[800],
|
|
42
|
+
default: theme.palette.background.element,
|
|
43
|
+
},
|
|
44
|
+
light: {
|
|
45
|
+
primary: theme.palette.primary[100],
|
|
46
|
+
error: theme.palette.red[100],
|
|
47
|
+
success: theme.palette.green[100],
|
|
48
|
+
warning: theme.palette.yellow[100],
|
|
49
|
+
default: theme.palette.background.element,
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
if (!customVariant) {
|
|
53
|
+
return backgroundColorVariants.contained.primary;
|
|
54
|
+
}
|
|
55
|
+
if (customVariant && customColor) {
|
|
56
|
+
return backgroundColorVariants[customVariant][customColor];
|
|
57
|
+
}
|
|
58
|
+
return theme.palette.background.element;
|
|
59
|
+
};
|
|
60
|
+
var getColor = function (_a) {
|
|
61
|
+
var theme = _a.theme, customColor = _a.customColor, customVariant = _a.customVariant;
|
|
62
|
+
var textColorVariants = {
|
|
63
|
+
contained: {
|
|
64
|
+
primary: theme.palette.primary.contrastText,
|
|
65
|
+
error: theme.palette.error.contrastText,
|
|
66
|
+
success: theme.palette.warning.contrastText,
|
|
67
|
+
warning: theme.palette.success.contrastText,
|
|
68
|
+
default: theme.palette.text.primary,
|
|
69
|
+
},
|
|
70
|
+
light: {
|
|
71
|
+
primary: theme.palette.primary.main,
|
|
72
|
+
error: theme.palette.red[800],
|
|
73
|
+
success: theme.palette.green[800],
|
|
74
|
+
warning: theme.palette.yellow[800],
|
|
75
|
+
default: theme.palette.text.primary,
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
if (!customColor) {
|
|
79
|
+
return textColorVariants.contained.primary;
|
|
80
|
+
}
|
|
81
|
+
if (customVariant && customColor) {
|
|
82
|
+
return textColorVariants[customVariant][customColor];
|
|
83
|
+
}
|
|
84
|
+
return theme.palette.text.primary;
|
|
85
|
+
};
|
|
86
|
+
var getTagLabelPadding = function (_a) {
|
|
87
|
+
var theme = _a.theme, rounded = _a.rounded;
|
|
88
|
+
if (rounded)
|
|
89
|
+
return theme.spacing(0, 2);
|
|
90
|
+
return theme.spacing(0, 1);
|
|
91
|
+
};
|
|
92
|
+
var getDeleteIconBgColor = function (_a) {
|
|
93
|
+
var theme = _a.theme, iconState = _a.iconState;
|
|
94
|
+
var bgColorDeleteIcon = {
|
|
95
|
+
default: 'transparent',
|
|
96
|
+
hover: theme.palette.red[100],
|
|
97
|
+
active: theme.palette.red[200],
|
|
98
|
+
};
|
|
99
|
+
if (iconState) {
|
|
100
|
+
return bgColorDeleteIcon[iconState];
|
|
101
|
+
}
|
|
102
|
+
return 'transparent';
|
|
103
|
+
};
|
|
104
|
+
export var StyledTag = styled(Chip)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n user-select: none;\n font-size: 14px;\n height: 20px;\n border-radius: ", ";\n background-color: ", ";\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\n background: ", ";\n\n &:hover {\n background: ", ";\n }\n &:active {\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 &: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\n background: ", ";\n\n &:hover {\n background: ", ";\n }\n &:active {\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) {
|
|
105
|
+
return getBgColor(__assign(__assign({}, props), { tagState: TagStates.DEFAULT }));
|
|
106
|
+
}, function (props) {
|
|
107
|
+
return getBgColor(__assign(__assign({}, props), { tagState: TagStates.HOVER }));
|
|
108
|
+
}, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.HOVER })); }, function (props) {
|
|
109
|
+
return getBgColor(__assign(__assign({}, props), { tagState: TagStates.ACTIVE }));
|
|
110
|
+
}, 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 (props) {
|
|
111
|
+
return getDeleteIconBgColor(__assign(__assign({}, props), { iconState: TagStates.DEFAULT }));
|
|
112
|
+
}, function (props) {
|
|
113
|
+
return getDeleteIconBgColor(__assign(__assign({}, props), { iconState: TagStates.HOVER }));
|
|
114
|
+
}, function (props) {
|
|
115
|
+
return getDeleteIconBgColor(__assign(__assign({}, props), { iconState: TagStates.ACTIVE }));
|
|
116
|
+
});
|
|
117
|
+
var templateObject_1;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ChipProps as MuiTagProps } from '@mui/material/Chip/Chip';
|
|
2
|
+
import { TagColors, TagSizes, TagStates, TagVariants } from './constants';
|
|
3
|
+
export declare type TagColor = `${TagColors}`;
|
|
4
|
+
export declare type TagVariant = `${TagVariants}`;
|
|
5
|
+
export declare type TagSize = `${TagSizes}`;
|
|
6
|
+
export declare type TagState = `${TagStates}`;
|
|
7
|
+
export declare type TagProps = Omit<MuiTagProps, 'color' | 'variant'> & {
|
|
8
|
+
color?: TagColor;
|
|
9
|
+
variant?: TagVariant;
|
|
10
|
+
size?: TagSize;
|
|
11
|
+
rounded?: boolean;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { useMemo } from 'react';
|
|
25
|
+
import MuiTextField from '@mui/material/TextField';
|
|
26
|
+
import { FormHelperText } from '../FormHelperText';
|
|
27
|
+
export var TextField = function (props) {
|
|
28
|
+
var variant = props.variant, success = props.success, error = props.error, colorProp = props.color, helperTextProp = props.helperText, restProps = __rest(props, ["variant", "success", "error", "color", "helperText"]);
|
|
29
|
+
var color = useMemo(function () {
|
|
30
|
+
if (success) {
|
|
31
|
+
return 'success';
|
|
32
|
+
}
|
|
33
|
+
return undefined;
|
|
34
|
+
}, [success]);
|
|
35
|
+
var helperText = useMemo(function () {
|
|
36
|
+
if (success) {
|
|
37
|
+
return _jsx(FormHelperText, __assign({ success: true }, { children: helperTextProp }), void 0);
|
|
38
|
+
}
|
|
39
|
+
if (error) {
|
|
40
|
+
return _jsx(FormHelperText, __assign({ error: true }, { children: helperTextProp }), void 0);
|
|
41
|
+
}
|
|
42
|
+
return helperTextProp;
|
|
43
|
+
}, [helperTextProp, success, error]);
|
|
44
|
+
return (_jsx(MuiTextField, __assign({ variant: "outlined", error: error, color: color, helperText: helperText }, restProps), void 0));
|
|
45
|
+
};
|
|
46
|
+
export default TextField;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -10,9 +10,10 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import {
|
|
13
|
+
import { ThemeProvider as MuiThemeProvider } from '@mui/material';
|
|
14
14
|
import { ThemeProvider as EmotionThemeProvider } from '@emotion/react';
|
|
15
|
+
import { GlobalStyles } from '../GlobalStyles';
|
|
15
16
|
export var ThemeProvider = function (_a) {
|
|
16
17
|
var theme = _a.theme, children = _a.children;
|
|
17
|
-
return (_jsx(MuiThemeProvider, __assign({ theme: theme }, { children: _jsxs(EmotionThemeProvider, __assign({ theme: theme }, { children: [_jsx(
|
|
18
|
+
return (_jsx(MuiThemeProvider, __assign({ theme: theme }, { children: _jsxs(EmotionThemeProvider, __assign({ theme: theme }, { children: [_jsx(GlobalStyles, {}, void 0), children] }), void 0) }), void 0));
|
|
18
19
|
};
|
package/esm/src/index.d.ts
CHANGED
|
@@ -2,7 +2,13 @@ export * from './Button';
|
|
|
2
2
|
export * from './ButtonBase';
|
|
3
3
|
export * from './IconButton';
|
|
4
4
|
export * from './Badge';
|
|
5
|
+
export * from './Checkbox';
|
|
6
|
+
export * from './FormControlLabel';
|
|
5
7
|
export * from './Typography';
|
|
8
|
+
export * from './Menu';
|
|
9
|
+
export * from './MenuItem';
|
|
10
|
+
export * from './MenuList';
|
|
6
11
|
export * from './theme';
|
|
7
12
|
export * from './styles';
|
|
8
13
|
export * from './ThemeProvider';
|
|
14
|
+
export * from './GlobalStyles';
|
package/esm/src/index.js
CHANGED
|
@@ -2,7 +2,13 @@ export * from './Button';
|
|
|
2
2
|
export * from './ButtonBase';
|
|
3
3
|
export * from './IconButton';
|
|
4
4
|
export * from './Badge';
|
|
5
|
+
export * from './Checkbox';
|
|
6
|
+
export * from './FormControlLabel';
|
|
5
7
|
export * from './Typography';
|
|
8
|
+
export * from './Menu';
|
|
9
|
+
export * from './MenuItem';
|
|
10
|
+
export * from './MenuList';
|
|
6
11
|
export * from './theme';
|
|
7
12
|
export * from './styles';
|
|
8
13
|
export * from './ThemeProvider';
|
|
14
|
+
export * from './GlobalStyles';
|
|
@@ -49,6 +49,6 @@ describe('createTheme', function () {
|
|
|
49
49
|
});
|
|
50
50
|
it('Theme has elevation params', function () {
|
|
51
51
|
var theme = createTheme({ brand: Brand.SIGN, fontsUrls: fontsUrls });
|
|
52
|
-
expect(theme.elevation[100]).toBe('
|
|
52
|
+
expect(theme.elevation[100]).toBe('0px 0px 1px 0px #072D574F, 0px 1px 1px 0px #072D5740;');
|
|
53
53
|
});
|
|
54
54
|
});
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { Palette as MuiPalette, Theme as MuiTheme, PaletteColor, ThemeOptions } from '@mui/material/styles';
|
|
2
2
|
import { TypographyThemeOptions } from './typography';
|
|
3
|
-
import { Color } from './palette';
|
|
3
|
+
import { Background, Color } from './palette';
|
|
4
4
|
import { FontsUrls } from './components';
|
|
5
5
|
import { Brand } from './constants';
|
|
6
6
|
import { Elevation } from './elevation';
|
|
7
7
|
import { Shape } from './shape';
|
|
8
|
-
export declare type Palette = Omit<MuiPalette, 'grey'> & {
|
|
8
|
+
export declare type Palette = Omit<MuiPalette, 'grey' | 'background'> & {
|
|
9
9
|
red: Color;
|
|
10
10
|
green: Color;
|
|
11
11
|
yellow: Color;
|
|
12
12
|
grey: Color;
|
|
13
13
|
primary: PaletteColor & Color;
|
|
14
|
+
background: Background;
|
|
14
15
|
};
|
|
15
16
|
export declare type Theme = Omit<MuiTheme, 'shadows' | 'palette' | 'shape' | 'typography'> & {
|
|
16
17
|
elevation: Elevation;
|
|
@@ -23,5 +24,5 @@ declare type CreateThemeParams = {
|
|
|
23
24
|
options?: ThemeOptions;
|
|
24
25
|
fontsUrls: FontsUrls;
|
|
25
26
|
};
|
|
26
|
-
export declare const createTheme: (
|
|
27
|
+
export declare const createTheme: (params: CreateThemeParams) => Theme;
|
|
27
28
|
export {};
|
|
@@ -6,8 +6,8 @@ import { getComponents } from './components';
|
|
|
6
6
|
import { SPACING } from './constants';
|
|
7
7
|
import { elevation } from './elevation';
|
|
8
8
|
import { shape } from './shape';
|
|
9
|
-
export var createTheme = function (
|
|
10
|
-
var brand =
|
|
9
|
+
export var createTheme = function (params) {
|
|
10
|
+
var brand = params.brand, options = params.options, fontsUrls = params.fontsUrls;
|
|
11
11
|
var themeOptions = {
|
|
12
12
|
typography: typography,
|
|
13
13
|
spacing: SPACING,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export var MuiFormHelperText = {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
root: function (_a) {
|
|
4
|
+
var theme = _a.theme;
|
|
5
|
+
return {
|
|
6
|
+
margin: theme.spacing(1, 0, 0),
|
|
7
|
+
lineHeight: theme.typography.pxToRem(16),
|
|
8
|
+
'&.Mui-error': {
|
|
9
|
+
color: theme.palette.error.dark,
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
export default MuiFormHelperText;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export var MuiInputBase = {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
root: function (_a) {
|
|
4
|
+
var theme = _a.theme;
|
|
5
|
+
return {
|
|
6
|
+
'&.MuiInputBase-colorSuccess + .MuiFormHelperText-root': {
|
|
7
|
+
color: theme.palette.green[800],
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
export default MuiInputBase;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export var MuiInputLabel = {
|
|
2
|
+
defaultProps: {
|
|
3
|
+
shrink: true,
|
|
4
|
+
},
|
|
5
|
+
styleOverrides: {
|
|
6
|
+
root: function (_a) {
|
|
7
|
+
var theme = _a.theme;
|
|
8
|
+
return {
|
|
9
|
+
position: 'relative',
|
|
10
|
+
transform: 'none',
|
|
11
|
+
color: theme.palette.grey[700],
|
|
12
|
+
fontWeight: theme.typography.fontWeightMedium,
|
|
13
|
+
fontSize: theme.typography.pxToRem(12),
|
|
14
|
+
lineHeight: theme.typography.pxToRem(16),
|
|
15
|
+
marginBottom: theme.spacing(1),
|
|
16
|
+
'&.Mui-focused': {
|
|
17
|
+
color: theme.palette.grey[700],
|
|
18
|
+
},
|
|
19
|
+
'&.Mui-error': {
|
|
20
|
+
color: theme.palette.grey[700],
|
|
21
|
+
},
|
|
22
|
+
'&.Mui-disabled': {
|
|
23
|
+
color: theme.palette.grey[600],
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
export default MuiInputLabel;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export var MuiOutlinedInput = {
|
|
2
|
+
defaultProps: {
|
|
3
|
+
notched: false,
|
|
4
|
+
},
|
|
5
|
+
styleOverrides: {
|
|
6
|
+
root: function (_a) {
|
|
7
|
+
var theme = _a.theme;
|
|
8
|
+
return {
|
|
9
|
+
fontSize: theme.typography.pxToRem(14),
|
|
10
|
+
borderRadius: theme.shape.small,
|
|
11
|
+
color: theme.palette.grey[900],
|
|
12
|
+
background: theme.palette.background.element,
|
|
13
|
+
'&:hover': {
|
|
14
|
+
// FIXME: to theme
|
|
15
|
+
background: '#EEF1F4',
|
|
16
|
+
},
|
|
17
|
+
'&:hover .MuiOutlinedInput-notchedOutline': {
|
|
18
|
+
borderColor: theme.palette.grey[300],
|
|
19
|
+
},
|
|
20
|
+
'&.Mui-disabled .MuiOutlinedInput-notchedOutline': {
|
|
21
|
+
borderColor: theme.palette.background.element,
|
|
22
|
+
},
|
|
23
|
+
'&.Mui-error .MuiOutlinedInput-notchedOutline': {
|
|
24
|
+
borderColor: theme.palette.error.dark,
|
|
25
|
+
},
|
|
26
|
+
'&.Mui-focused .MuiOutlinedInput-notchedOutline': {
|
|
27
|
+
borderColor: theme.palette.primary[700],
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
input: function (_a) {
|
|
32
|
+
var theme = _a.theme;
|
|
33
|
+
return {
|
|
34
|
+
padding: theme.spacing(2.5, 2),
|
|
35
|
+
borderRadius: theme.shape.small,
|
|
36
|
+
'&:disabled': {
|
|
37
|
+
background: theme.palette.background.element,
|
|
38
|
+
},
|
|
39
|
+
'&::placeholder': {
|
|
40
|
+
opacity: 1,
|
|
41
|
+
color: theme.palette.grey[600],
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
inputSizeSmall: function (_a) {
|
|
46
|
+
var theme = _a.theme;
|
|
47
|
+
return {
|
|
48
|
+
paddingBlock: theme.spacing(2),
|
|
49
|
+
paddingInline: theme.spacing(1.5),
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
notchedOutline: function (_a) {
|
|
53
|
+
var theme = _a.theme;
|
|
54
|
+
return {
|
|
55
|
+
borderWidth: '2px',
|
|
56
|
+
borderColor: theme.palette.grey[300],
|
|
57
|
+
};
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
export default MuiOutlinedInput;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Components } from '@mui/material';
|
|
2
|
+
export declare type FontsUrls = {
|
|
3
|
+
bold: {
|
|
4
|
+
woff: string;
|
|
5
|
+
woff2: string;
|
|
6
|
+
};
|
|
7
|
+
light: {
|
|
8
|
+
woff: string;
|
|
9
|
+
woff2: string;
|
|
10
|
+
};
|
|
11
|
+
medium: {
|
|
12
|
+
woff: string;
|
|
13
|
+
woff2: string;
|
|
14
|
+
};
|
|
15
|
+
regular: {
|
|
16
|
+
woff: string;
|
|
17
|
+
woff2: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare const MuiTypography: Components['MuiTypography'];
|
|
21
|
+
export default MuiTypography;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export var MuiTypography = {
|
|
2
|
+
variants: [
|
|
3
|
+
{
|
|
4
|
+
props: { variant: 'button' },
|
|
5
|
+
style: {
|
|
6
|
+
textTransform: 'capitalize',
|
|
7
|
+
},
|
|
8
|
+
},
|
|
9
|
+
],
|
|
10
|
+
defaultProps: {
|
|
11
|
+
// TODO: необходимо кастомизировать типы Components['MuiTypography']
|
|
12
|
+
variantMapping: {
|
|
13
|
+
link: 'a',
|
|
14
|
+
code: 'code',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
export default MuiTypography;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Components } from '@mui/material';
|
|
2
|
+
import type { Theme } from '../baseTheme';
|
|
2
3
|
export declare type FontsUrls = {
|
|
3
4
|
bold: {
|
|
4
5
|
woff: string;
|
|
@@ -17,4 +18,4 @@ export declare type FontsUrls = {
|
|
|
17
18
|
woff2: string;
|
|
18
19
|
};
|
|
19
20
|
};
|
|
20
|
-
export declare const getComponents: (fontUrls: FontsUrls) => Components
|
|
21
|
+
export declare const getComponents: (fontUrls: FontsUrls) => Components<Theme>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { MuiInputBase } from './MuiInputBase';
|
|
2
|
+
import { MuiFormHelperText } from './MuiFormHelperText';
|
|
3
|
+
import { MuiFormLabel } from './MuiFormLabel';
|
|
4
|
+
import { MuiInputLabel } from './MuiInputLabel';
|
|
5
|
+
import { MuiOutlinedInput } from './MuiOutlinedInput';
|
|
6
|
+
import { MuiTypography } from './MuiTypography';
|
|
7
|
+
var getMuiCssBaseline = function (fontUrls) { return ({
|
|
8
|
+
styleOverrides: "\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 300;\n font-display: swap;\n src: url(".concat(fontUrls.light.woff2, ") format('woff2'), url(").concat(fontUrls.light.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 400;\n font-display: swap;\n src: url(").concat(fontUrls.regular.woff2, ") format('woff2'), url(").concat(fontUrls.regular.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 500;\n font-display: swap;\n src: url(").concat(fontUrls.medium.woff2, ") format('woff2'), url(").concat(fontUrls.medium.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 700;\n font-display: swap;\n src: url(").concat(fontUrls.bold.woff2, ") format('woff2'), url(").concat(fontUrls.bold.woff, ") format('woff');\n }\n "),
|
|
9
|
+
}); };
|
|
10
|
+
var MuiCheckbox = {
|
|
11
|
+
defaultProps: {
|
|
12
|
+
disableRipple: true,
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
var MuiMenu = {
|
|
16
|
+
defaultProps: {
|
|
17
|
+
autoFocus: false,
|
|
18
|
+
},
|
|
19
|
+
styleOverrides: {
|
|
20
|
+
paper: function (_a) {
|
|
21
|
+
var theme = _a.theme;
|
|
22
|
+
return {
|
|
23
|
+
marginTop: theme.spacing(2),
|
|
24
|
+
'&.MuiPaper-root': {
|
|
25
|
+
borderRadius: theme.shape.small,
|
|
26
|
+
boxShadow: theme.elevation[200],
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
list: function (_a) {
|
|
31
|
+
var theme = _a.theme;
|
|
32
|
+
return {
|
|
33
|
+
padding: theme.spacing(1, 0),
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
var MuiMenuItem = {
|
|
39
|
+
styleOverrides: {
|
|
40
|
+
root: function (_a) {
|
|
41
|
+
var theme = _a.theme;
|
|
42
|
+
return {
|
|
43
|
+
'&:hover': {
|
|
44
|
+
backgroundColor: theme.palette.background.elementHover,
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
export var getComponents = function (fontUrls) { return ({
|
|
51
|
+
MuiCssBaseline: getMuiCssBaseline(fontUrls),
|
|
52
|
+
MuiTypography: MuiTypography,
|
|
53
|
+
MuiInputBase: MuiInputBase,
|
|
54
|
+
MuiInputLabel: MuiInputLabel,
|
|
55
|
+
MuiOutlinedInput: MuiOutlinedInput,
|
|
56
|
+
MuiFormLabel: MuiFormLabel,
|
|
57
|
+
MuiFormHelperText: MuiFormHelperText,
|
|
58
|
+
MuiCheckbox: MuiCheckbox,
|
|
59
|
+
MuiMenu: MuiMenu,
|
|
60
|
+
MuiMenuItem: MuiMenuItem,
|
|
61
|
+
}); };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export var elevation = {
|
|
2
|
-
100: '
|
|
3
|
-
200: '
|
|
4
|
-
300: '
|
|
5
|
-
400: '
|
|
6
|
-
500: '
|
|
2
|
+
100: '0px 0px 1px 0px #072D574F, 0px 1px 1px 0px #072D5740;',
|
|
3
|
+
200: '0px 0px 1px 0px #072D574F, 0px 3px 5px 0px #072D5733;',
|
|
4
|
+
300: '0px 0px 1px 0px #072D574F, 0px 8px 12px 0px #072D5726;',
|
|
5
|
+
400: '0px 0px 1px 0px #072D574F, 0px 10px 18px 0px #072D5726;',
|
|
6
|
+
500: '0px 0px 1px 0px #072D574F, 0px 18px 28px 0px #072D5726;',
|
|
7
7
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useTheme';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useTheme';
|
package/esm/src/theme/index.d.ts
CHANGED
package/esm/src/theme/index.js
CHANGED
|
@@ -13,7 +13,7 @@ export declare type Color = {
|
|
|
13
13
|
100: string;
|
|
14
14
|
};
|
|
15
15
|
export declare type PrimaryColorOptions = PaletteColorOptions & Color;
|
|
16
|
-
declare type Background = TypeBackground & {
|
|
16
|
+
export declare type Background = TypeBackground & {
|
|
17
17
|
element: string;
|
|
18
18
|
elementHover: string;
|
|
19
19
|
};
|