@astral/ui 0.1.0 → 0.2.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/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/src/Badge/Badge.d.ts +4 -0
- package/esm/src/Badge/Badge.js +29 -0
- package/esm/src/Badge/index.d.ts +2 -0
- package/esm/src/Badge/index.js +2 -0
- package/esm/src/Badge/styled.d.ts +50 -0
- package/esm/src/Badge/styled.js +60 -0
- package/esm/src/Badge/types.d.ts +5 -0
- package/esm/src/Badge/types.js +1 -0
- package/esm/src/Button/Button.d.ts +3 -0
- package/esm/src/Button/Button.js +29 -0
- package/esm/src/Button/index.d.ts +2 -0
- package/esm/src/Button/index.js +2 -0
- package/esm/src/Button/styled.d.ts +13 -0
- package/esm/src/Button/styled.js +33 -0
- package/esm/src/Button/types.d.ts +7 -0
- package/esm/src/Button/types.js +1 -0
- package/esm/src/ButtonBase/ButtonBase.d.ts +3 -0
- package/esm/src/ButtonBase/ButtonBase.js +29 -0
- package/esm/src/ButtonBase/constants.d.ts +22 -0
- package/esm/src/ButtonBase/constants.js +26 -0
- package/esm/src/ButtonBase/index.d.ts +3 -0
- package/esm/src/ButtonBase/index.js +3 -0
- package/esm/src/ButtonBase/styled.d.ts +27 -0
- package/esm/src/ButtonBase/styled.js +202 -0
- package/esm/src/ButtonBase/types.d.ts +11 -0
- package/esm/src/ButtonBase/types.js +1 -0
- 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/esm/src/Checkbox/types.js +1 -0
- package/esm/src/CircularProgress/CircularProgress.d.ts +4 -0
- package/esm/src/CircularProgress/CircularProgress.js +30 -0
- package/esm/src/CircularProgress/constants.d.ts +8 -0
- package/esm/src/CircularProgress/constants.js +10 -0
- package/esm/src/CircularProgress/index.d.ts +2 -0
- package/esm/src/CircularProgress/index.js +2 -0
- package/esm/src/CircularProgress/styled.d.ts +7 -0
- package/esm/src/CircularProgress/styled.js +17 -0
- package/esm/src/CircularProgress/types.d.ts +8 -0
- package/esm/src/CircularProgress/types.js +1 -0
- 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 +3 -0
- package/esm/src/IconButton/IconButton.js +28 -0
- package/esm/src/IconButton/index.d.ts +1 -0
- package/esm/src/IconButton/index.js +1 -0
- package/esm/src/IconButton/styled.d.ts +19 -0
- package/esm/src/IconButton/styled.js +21 -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.d.ts +7 -0
- package/esm/src/ThemeProvider/ThemeProvider.js +19 -0
- package/esm/src/ThemeProvider/index.d.ts +1 -0
- package/esm/src/ThemeProvider/index.js +1 -0
- package/esm/src/Typography/Typography.d.ts +8 -0
- package/esm/src/Typography/Typography.js +29 -0
- package/esm/src/Typography/index.d.ts +1 -0
- package/esm/src/Typography/index.js +1 -0
- package/esm/src/index.d.ts +18 -0
- package/esm/src/index.js +18 -0
- package/esm/src/styles/index.d.ts +1 -0
- package/esm/src/styles/index.js +1 -0
- package/esm/src/styles/styled/index.d.ts +1 -0
- package/esm/src/styles/styled/index.js +1 -0
- package/esm/src/styles/styled/styled.d.ts +2 -0
- package/esm/src/styles/styled/styled.js +2 -0
- package/esm/src/styles/styled/types.d.ts +48 -0
- package/esm/src/styles/styled/types.js +1 -0
- package/esm/src/theme/__tests__/BaseTheme.test.d.ts +1 -0
- package/esm/src/theme/__tests__/BaseTheme.test.js +54 -0
- package/esm/src/theme/baseTheme.d.ts +28 -0
- package/esm/src/theme/baseTheme.js +19 -0
- 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/components.d.ts +21 -0
- 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/constants.d.ts +9 -0
- package/esm/src/theme/constants.js +10 -0
- package/esm/src/theme/elevation.d.ts +8 -0
- package/esm/src/theme/elevation.js +7 -0
- 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 +6 -0
- package/esm/src/theme/index.js +6 -0
- package/esm/src/theme/palette/brandPalette.d.ts +15 -0
- package/esm/src/theme/palette/brandPalette.js +82 -0
- package/esm/src/theme/palette/index.d.ts +2 -0
- package/esm/src/theme/palette/index.js +2 -0
- package/esm/src/theme/palette/palette.d.ts +29 -0
- package/esm/src/theme/palette/palette.js +104 -0
- package/esm/src/theme/shape.d.ts +6 -0
- package/esm/src/theme/shape.js +5 -0
- package/esm/src/theme/typography.d.ts +19 -0
- package/esm/src/theme/typography.js +108 -0
- package/node/index.d.ts +1 -0
- package/node/index.js +13 -0
- package/node/src/Badge/Badge.d.ts +4 -0
- package/node/src/Badge/Badge.js +31 -0
- package/node/src/Badge/index.d.ts +2 -0
- package/node/src/Badge/index.js +14 -0
- package/node/src/Badge/styled.d.ts +50 -0
- package/node/src/Badge/styled.js +63 -0
- package/node/src/Badge/types.d.ts +5 -0
- package/node/src/Badge/types.js +2 -0
- package/node/src/Button/Button.d.ts +3 -0
- package/node/src/Button/Button.js +33 -0
- package/node/src/Button/index.d.ts +2 -0
- package/node/src/Button/index.js +14 -0
- package/node/src/Button/styled.d.ts +13 -0
- package/node/src/Button/styled.js +36 -0
- package/node/src/Button/types.d.ts +7 -0
- package/node/src/Button/types.js +2 -0
- package/node/src/ButtonBase/ButtonBase.d.ts +3 -0
- package/node/src/ButtonBase/ButtonBase.js +33 -0
- package/node/src/ButtonBase/constants.d.ts +22 -0
- package/node/src/ButtonBase/constants.js +29 -0
- package/node/src/ButtonBase/index.d.ts +3 -0
- package/node/src/ButtonBase/index.js +15 -0
- package/node/src/ButtonBase/styled.d.ts +27 -0
- package/node/src/ButtonBase/styled.js +229 -0
- package/node/src/ButtonBase/types.d.ts +11 -0
- package/node/src/ButtonBase/types.js +2 -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/node/src/Checkbox/types.js +2 -0
- package/node/src/CircularProgress/CircularProgress.d.ts +4 -0
- package/node/src/CircularProgress/CircularProgress.js +34 -0
- package/node/src/CircularProgress/constants.d.ts +8 -0
- package/node/src/CircularProgress/constants.js +13 -0
- package/node/src/CircularProgress/index.d.ts +2 -0
- package/node/src/CircularProgress/index.js +14 -0
- package/node/src/CircularProgress/styled.d.ts +7 -0
- package/node/src/CircularProgress/styled.js +20 -0
- package/node/src/CircularProgress/types.d.ts +8 -0
- package/node/src/CircularProgress/types.js +2 -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/node/src/IconButton/IconButton.d.ts +3 -0
- package/node/src/IconButton/IconButton.js +32 -0
- package/node/src/IconButton/index.d.ts +1 -0
- package/node/src/IconButton/index.js +13 -0
- package/node/src/IconButton/styled.d.ts +19 -0
- package/node/src/IconButton/styled.js +25 -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/node/src/ThemeProvider/ThemeProvider.d.ts +7 -0
- package/node/src/ThemeProvider/ThemeProvider.js +23 -0
- package/node/src/ThemeProvider/index.d.ts +1 -0
- package/node/src/ThemeProvider/index.js +13 -0
- package/node/src/Typography/Typography.d.ts +8 -0
- package/node/src/Typography/Typography.js +36 -0
- package/node/src/Typography/index.d.ts +1 -0
- package/node/src/Typography/index.js +13 -0
- package/node/src/index.d.ts +18 -0
- package/node/src/index.js +30 -0
- package/node/src/styles/index.d.ts +1 -0
- package/node/src/styles/index.js +13 -0
- package/node/src/styles/styled/index.d.ts +1 -0
- package/node/src/styles/styled/index.js +13 -0
- package/node/src/styles/styled/styled.d.ts +2 -0
- package/node/src/styles/styled/styled.js +8 -0
- package/node/src/styles/styled/types.d.ts +48 -0
- package/node/src/styles/styled/types.js +2 -0
- package/node/src/theme/__tests__/BaseTheme.test.d.ts +1 -0
- package/node/src/theme/__tests__/BaseTheme.test.js +56 -0
- package/node/src/theme/baseTheme.d.ts +28 -0
- package/node/src/theme/baseTheme.js +23 -0
- 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/node/src/theme/components/components.d.ts +21 -0
- 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/node/src/theme/constants.d.ts +9 -0
- package/node/src/theme/constants.js +13 -0
- package/node/src/theme/elevation.d.ts +8 -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/node/src/theme/index.d.ts +6 -0
- package/node/src/theme/index.js +18 -0
- package/node/src/theme/palette/brandPalette.d.ts +15 -0
- package/node/src/theme/palette/brandPalette.js +85 -0
- package/node/src/theme/palette/index.d.ts +2 -0
- package/node/src/theme/palette/index.js +14 -0
- package/node/src/theme/palette/palette.d.ts +29 -0
- package/node/src/theme/palette/palette.js +108 -0
- package/node/src/theme/shape.d.ts +6 -0
- package/node/src/theme/shape.js +8 -0
- package/node/src/theme/typography.d.ts +19 -0
- package/node/src/theme/typography.js +112 -0
- package/package.json +7 -12
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { ThemeProvider as MuiThemeProvider } from '@mui/material';
|
|
14
|
+
import { ThemeProvider as EmotionThemeProvider } from '@emotion/react';
|
|
15
|
+
import { GlobalStyles } from '../GlobalStyles';
|
|
16
|
+
export var ThemeProvider = function (_a) {
|
|
17
|
+
var theme = _a.theme, children = _a.children;
|
|
18
|
+
return (_jsx(MuiThemeProvider, __assign({ theme: theme }, { children: _jsxs(EmotionThemeProvider, __assign({ theme: theme }, { children: [_jsx(GlobalStyles, {}, void 0), children] }), void 0) }), void 0));
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ThemeProvider';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ThemeProvider';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TypographyProps as MuiTypographyProps } from '@mui/material/Typography';
|
|
3
|
+
import { Variant } from '@mui/material/styles/createTypography';
|
|
4
|
+
export declare type TypographyProps = Omit<MuiTypographyProps, 'variant'> & {
|
|
5
|
+
variant?: Variant | 'h7' | 'h8' | 'h9' | 'ui' | 'link' | 'pointer' | 'small' | 'code';
|
|
6
|
+
};
|
|
7
|
+
export declare const Typography: ({ variant, children, ...props }: TypographyProps) => JSX.Element;
|
|
8
|
+
export default Typography;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import MuiTypography from '@mui/material/Typography';
|
|
25
|
+
export var Typography = function (_a) {
|
|
26
|
+
var variant = _a.variant, children = _a.children, props = __rest(_a, ["variant", "children"]);
|
|
27
|
+
return (_jsx(MuiTypography, __assign({ variant: variant }, props, { children: children }), void 0));
|
|
28
|
+
};
|
|
29
|
+
export default Typography;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Typography';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Typography';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './Button';
|
|
2
|
+
export * from './ButtonBase';
|
|
3
|
+
export * from './IconButton';
|
|
4
|
+
export * from './Badge';
|
|
5
|
+
export * from './Checkbox';
|
|
6
|
+
export * from './FormControlLabel';
|
|
7
|
+
export * from './Typography';
|
|
8
|
+
export * from './Menu';
|
|
9
|
+
export * from './MenuItem';
|
|
10
|
+
export * from './MenuList';
|
|
11
|
+
export * from './theme';
|
|
12
|
+
export * from './styles';
|
|
13
|
+
export * from './ThemeProvider';
|
|
14
|
+
export * from './GlobalStyles';
|
|
15
|
+
export * from './TextField';
|
|
16
|
+
export * from './FormHelperText';
|
|
17
|
+
export * from './Grid';
|
|
18
|
+
export * from './Tag';
|
package/esm/src/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './Button';
|
|
2
|
+
export * from './ButtonBase';
|
|
3
|
+
export * from './IconButton';
|
|
4
|
+
export * from './Badge';
|
|
5
|
+
export * from './Checkbox';
|
|
6
|
+
export * from './FormControlLabel';
|
|
7
|
+
export * from './Typography';
|
|
8
|
+
export * from './Menu';
|
|
9
|
+
export * from './MenuItem';
|
|
10
|
+
export * from './MenuList';
|
|
11
|
+
export * from './theme';
|
|
12
|
+
export * from './styles';
|
|
13
|
+
export * from './ThemeProvider';
|
|
14
|
+
export * from './GlobalStyles';
|
|
15
|
+
export * from './TextField';
|
|
16
|
+
export * from './FormHelperText';
|
|
17
|
+
export * from './Grid';
|
|
18
|
+
export * from './Tag';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './styled';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './styled';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './styled';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './styled';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { PropsOf } from '@emotion/react';
|
|
3
|
+
import { CreateStyledComponent, FilteringStyledOptions, StyledOptions } from '@emotion/styled/base';
|
|
4
|
+
import { Theme } from '../../theme';
|
|
5
|
+
/**
|
|
6
|
+
* @desc
|
|
7
|
+
* This function accepts a React component or tag ('div', 'a' etc).
|
|
8
|
+
*
|
|
9
|
+
* @example styled(MyComponent)({ width: 100 })
|
|
10
|
+
* @example styled(MyComponent)(myComponentProps => ({ width: myComponentProps.width })
|
|
11
|
+
* @example styled('div')({ width: 100 })
|
|
12
|
+
* @example styled('div')<Props>(props => ({ width: props.width })
|
|
13
|
+
*/
|
|
14
|
+
interface BaseCreateStyled {
|
|
15
|
+
<C extends React.ComponentClass<React.ComponentProps<C>>, ForwardedProps extends keyof React.ComponentProps<C> = keyof React.ComponentProps<C>>(component: C, options: FilteringStyledOptions<React.ComponentProps<C>, ForwardedProps>): CreateStyledComponent<Pick<PropsOf<C>, ForwardedProps> & {
|
|
16
|
+
theme?: Theme;
|
|
17
|
+
}, {}, {
|
|
18
|
+
ref?: React.Ref<InstanceType<C>>;
|
|
19
|
+
}>;
|
|
20
|
+
<C extends React.ComponentClass<React.ComponentProps<C>>>(component: C, options?: StyledOptions<React.ComponentProps<C>>): CreateStyledComponent<PropsOf<C> & {
|
|
21
|
+
theme?: Theme;
|
|
22
|
+
}, {}, {
|
|
23
|
+
ref?: React.Ref<InstanceType<C>>;
|
|
24
|
+
}>;
|
|
25
|
+
<C extends React.ComponentType<React.ComponentProps<C>>, ForwardedProps extends keyof React.ComponentProps<C> = keyof React.ComponentProps<C>>(component: C, options: FilteringStyledOptions<React.ComponentProps<C>, ForwardedProps>): CreateStyledComponent<Pick<PropsOf<C>, ForwardedProps> & {
|
|
26
|
+
theme?: Theme;
|
|
27
|
+
}>;
|
|
28
|
+
<C extends React.ComponentType<React.ComponentProps<C>>>(component: C, options?: StyledOptions<React.ComponentProps<C>>): CreateStyledComponent<PropsOf<C> & {
|
|
29
|
+
theme?: Theme;
|
|
30
|
+
}>;
|
|
31
|
+
<Tag extends keyof JSX.IntrinsicElements, ForwardedProps extends keyof JSX.IntrinsicElements[Tag] = keyof JSX.IntrinsicElements[Tag]>(tag: Tag, options: FilteringStyledOptions<JSX.IntrinsicElements[Tag], ForwardedProps>): CreateStyledComponent<{
|
|
32
|
+
theme?: Theme;
|
|
33
|
+
as?: React.ElementType;
|
|
34
|
+
}, Pick<JSX.IntrinsicElements[Tag], ForwardedProps>>;
|
|
35
|
+
<Tag extends keyof JSX.IntrinsicElements>(tag: Tag, options?: StyledOptions<JSX.IntrinsicElements[Tag]>): CreateStyledComponent<{
|
|
36
|
+
theme?: Theme;
|
|
37
|
+
as?: React.ElementType;
|
|
38
|
+
}, JSX.IntrinsicElements[Tag]>;
|
|
39
|
+
}
|
|
40
|
+
declare type StyledTags = {
|
|
41
|
+
[Tag in keyof JSX.IntrinsicElements]: CreateStyledComponent<{
|
|
42
|
+
theme?: Theme;
|
|
43
|
+
as?: React.ElementType;
|
|
44
|
+
}, JSX.IntrinsicElements[Tag]>;
|
|
45
|
+
};
|
|
46
|
+
export interface CreateStyled extends BaseCreateStyled, StyledTags {
|
|
47
|
+
}
|
|
48
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { createTheme } from '../baseTheme';
|
|
2
|
+
import { Brand } from '../constants';
|
|
3
|
+
describe('createTheme', function () {
|
|
4
|
+
var fontsUrls = {
|
|
5
|
+
bold: {
|
|
6
|
+
woff: '',
|
|
7
|
+
woff2: '',
|
|
8
|
+
},
|
|
9
|
+
regular: {
|
|
10
|
+
woff: '',
|
|
11
|
+
woff2: '',
|
|
12
|
+
},
|
|
13
|
+
medium: {
|
|
14
|
+
woff: '',
|
|
15
|
+
woff2: '',
|
|
16
|
+
},
|
|
17
|
+
light: {
|
|
18
|
+
woff: '',
|
|
19
|
+
woff2: '',
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
it('Theme merge done correctly', function () {
|
|
23
|
+
var extendedTheme = createTheme({
|
|
24
|
+
brand: Brand.DEFAULT,
|
|
25
|
+
fontsUrls: fontsUrls,
|
|
26
|
+
options: {
|
|
27
|
+
typography: { h1: { lineHeight: 12 } },
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
expect(extendedTheme.typography.h1.lineHeight).toBe(12);
|
|
31
|
+
});
|
|
32
|
+
it('Color should be taken depending on the brand', function () {
|
|
33
|
+
var theme = createTheme({ brand: Brand.SIGN, fontsUrls: fontsUrls });
|
|
34
|
+
var expected = {
|
|
35
|
+
primary: {
|
|
36
|
+
main: '#376798',
|
|
37
|
+
dark: '#325D89',
|
|
38
|
+
},
|
|
39
|
+
secondary: {
|
|
40
|
+
main: '#4099AC',
|
|
41
|
+
dark: '#325D89',
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
expect(theme.palette).toMatchObject(expected);
|
|
45
|
+
});
|
|
46
|
+
it('Spacing are calculated correctly', function () {
|
|
47
|
+
var theme = createTheme({ brand: Brand.SIGN, fontsUrls: fontsUrls });
|
|
48
|
+
expect(theme.spacing(2)).toBe('8px');
|
|
49
|
+
});
|
|
50
|
+
it('Theme has elevation params', function () {
|
|
51
|
+
var theme = createTheme({ brand: Brand.SIGN, fontsUrls: fontsUrls });
|
|
52
|
+
expect(theme.elevation[100]).toBe('0px 0px 1px 0px #072D574F, 0px 1px 1px 0px #072D5740;');
|
|
53
|
+
});
|
|
54
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Palette as MuiPalette, Theme as MuiTheme, PaletteColor, ThemeOptions } from '@mui/material/styles';
|
|
2
|
+
import { TypographyThemeOptions } from './typography';
|
|
3
|
+
import { Background, Color } from './palette';
|
|
4
|
+
import { FontsUrls } from './components';
|
|
5
|
+
import { Brand } from './constants';
|
|
6
|
+
import { Elevation } from './elevation';
|
|
7
|
+
import { Shape } from './shape';
|
|
8
|
+
export declare type Palette = Omit<MuiPalette, 'grey' | 'background'> & {
|
|
9
|
+
red: Color;
|
|
10
|
+
green: Color;
|
|
11
|
+
yellow: Color;
|
|
12
|
+
grey: Color;
|
|
13
|
+
primary: PaletteColor & Color;
|
|
14
|
+
background: Background;
|
|
15
|
+
};
|
|
16
|
+
export declare type Theme = Omit<MuiTheme, 'shadows' | 'palette' | 'shape' | 'typography'> & {
|
|
17
|
+
elevation: Elevation;
|
|
18
|
+
palette: Palette;
|
|
19
|
+
shape: Shape;
|
|
20
|
+
typography: TypographyThemeOptions;
|
|
21
|
+
};
|
|
22
|
+
declare type CreateThemeParams = {
|
|
23
|
+
brand: Brand;
|
|
24
|
+
options?: ThemeOptions;
|
|
25
|
+
fontsUrls: FontsUrls;
|
|
26
|
+
};
|
|
27
|
+
export declare const createTheme: (params: CreateThemeParams) => Theme;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createTheme as createMuiTheme, responsiveFontSizes, } from '@mui/material/styles';
|
|
2
|
+
import { merge } from 'lodash-es';
|
|
3
|
+
import { typography } from './typography';
|
|
4
|
+
import { getPalette } from './palette';
|
|
5
|
+
import { getComponents } from './components';
|
|
6
|
+
import { SPACING } from './constants';
|
|
7
|
+
import { elevation } from './elevation';
|
|
8
|
+
import { shape } from './shape';
|
|
9
|
+
export var createTheme = function (params) {
|
|
10
|
+
var brand = params.brand, options = params.options, fontsUrls = params.fontsUrls;
|
|
11
|
+
var themeOptions = {
|
|
12
|
+
typography: typography,
|
|
13
|
+
spacing: SPACING,
|
|
14
|
+
palette: getPalette(brand),
|
|
15
|
+
components: getComponents(fontsUrls),
|
|
16
|
+
};
|
|
17
|
+
var muiTheme = responsiveFontSizes(createMuiTheme(merge({}, themeOptions, options)));
|
|
18
|
+
return merge(muiTheme, { elevation: elevation, shape: shape });
|
|
19
|
+
};
|
|
@@ -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;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Components } from '@mui/material';
|
|
2
|
+
import type { Theme } from '../baseTheme';
|
|
3
|
+
export declare type FontsUrls = {
|
|
4
|
+
bold: {
|
|
5
|
+
woff: string;
|
|
6
|
+
woff2: string;
|
|
7
|
+
};
|
|
8
|
+
light: {
|
|
9
|
+
woff: string;
|
|
10
|
+
woff2: string;
|
|
11
|
+
};
|
|
12
|
+
medium: {
|
|
13
|
+
woff: string;
|
|
14
|
+
woff2: string;
|
|
15
|
+
};
|
|
16
|
+
regular: {
|
|
17
|
+
woff: string;
|
|
18
|
+
woff2: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
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';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var elevation = {
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useTheme';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useTheme';
|