@zesty-io/material 0.5.3 → 0.6.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/es/FieldTypeText/FieldTypeText.stories.js +3 -0
- package/es/FieldTypeText/index.d.ts +3 -2
- package/es/FieldTypeText/index.js +5 -3
- package/es/icons/Brain.d.ts +3 -0
- package/es/icons/Brain.js +3 -0
- package/es/icons/Database.js +1 -1
- package/es/icons/EditNote.d.ts +3 -0
- package/es/icons/EditNote.js +3 -0
- package/es/icons/FileTable.d.ts +3 -0
- package/es/icons/FileTable.js +3 -0
- package/es/icons/Markdown.d.ts +3 -0
- package/es/icons/Markdown.js +3 -0
- package/es/icons/OneToOne.d.ts +3 -0
- package/es/icons/OneToOne.js +3 -0
- package/es/icons/index.d.ts +5 -0
- package/es/icons/index.js +5 -0
- package/es/theme/index.d.ts +2 -2
- package/es/theme/index.js +137 -81
- package/es/theme/palette.js +1 -1
- package/es/theme/typography.js +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import FieldTypeText from './';
|
|
4
|
+
import { Brain } from '../icons/Brain';
|
|
5
|
+
import { IconButton } from '@mui/material';
|
|
4
6
|
export default {
|
|
5
7
|
title: 'FieldTypeText',
|
|
6
8
|
component: FieldTypeText,
|
|
@@ -18,6 +20,7 @@ Default.args = {
|
|
|
18
20
|
placeholder: 'Placeholder Text...',
|
|
19
21
|
label: 'Text label',
|
|
20
22
|
helperText: 'Text helper text',
|
|
23
|
+
endLabel: _jsx(IconButton, { size: "small", children: _jsx(Brain, { fontSize: 'small' }) })
|
|
21
24
|
};
|
|
22
25
|
export const TextArea = Template.bind({});
|
|
23
26
|
TextArea.args = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { OutlinedTextFieldProps } from '@mui/material/TextField';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
3
|
export interface FieldTypeTextProps extends Omit<OutlinedTextFieldProps, 'variant'> {
|
|
4
4
|
/**
|
|
5
5
|
* Max length of the field
|
|
@@ -7,6 +7,7 @@ export interface FieldTypeTextProps extends Omit<OutlinedTextFieldProps, 'varian
|
|
|
7
7
|
*/
|
|
8
8
|
maxLength?: number;
|
|
9
9
|
value: string;
|
|
10
|
+
endLabel?: ReactNode;
|
|
10
11
|
}
|
|
11
|
-
declare const FieldTypeText: ({ label, maxLength, value, helperText, required, ...props }: FieldTypeTextProps) => JSX.Element;
|
|
12
|
+
declare const FieldTypeText: ({ label, maxLength, value, helperText, required, endLabel, ...props }: FieldTypeTextProps) => JSX.Element;
|
|
12
13
|
export default FieldTypeText;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import MuiTextField from '@mui/material/TextField';
|
|
3
|
-
import { FormControl, FormLabel, Box } from '@mui/material';
|
|
4
|
-
const FieldTypeText = ({ label, maxLength = 150, value, helperText, required, ...props }) => {
|
|
5
|
-
return (_jsxs(FormControl, { fullWidth: true, required: required, children: [_jsxs(FormLabel, { sx: { display: 'flex', justifyContent: 'space-between', '& .MuiFormLabel-asterisk': { order: 2 } }, children: [_jsx(Box, { sx: { order: 1 }, children: label }),
|
|
3
|
+
import { FormControl, FormLabel, Box, InputAdornment } from '@mui/material';
|
|
4
|
+
const FieldTypeText = ({ label, maxLength = 150, value, helperText, required, endLabel, ...props }) => {
|
|
5
|
+
return (_jsxs(FormControl, { fullWidth: true, required: required, children: [_jsxs(FormLabel, { sx: { display: 'flex', justifyContent: 'space-between', alignItems: 'center', '& .MuiFormLabel-asterisk': { order: 2 } }, children: [_jsx(Box, { sx: { order: 1 }, children: label }), _jsx(Box, { sx: { order: 3, flex: 1, textAlign: 'right' }, children: endLabel })] }), _jsx(MuiTextField, { size: "small", variant: 'outlined', value: value, error: value?.length > maxLength, helperText: value?.length > maxLength ? 'Your input is over the specified limit' : helperText, InputProps: {
|
|
6
|
+
endAdornment: (_jsxs(InputAdornment, { position: "end", sx: { fontSize: '14px' }, children: [value?.length, "/", maxLength] })),
|
|
7
|
+
}, ...props })] }));
|
|
6
8
|
};
|
|
7
9
|
export default FieldTypeText;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { SvgIcon } from "@mui/material";
|
|
3
|
+
export const Brain = (props) => (_jsx(SvgIcon, { ...props, children: _jsx("path", { d: "M7.3559 3.35154C8.17427 2.73176 9.17333 2.39748 10.1999 2.39994C10.5544 2.39199 10.9053 2.4736 11.2199 2.63721C11.5345 2.80081 11.8028 3.04114 11.9999 3.33594C12.197 3.04114 12.4653 2.80081 12.7799 2.63721C13.0946 2.4736 13.4454 2.39199 13.7999 2.39994C14.8265 2.39748 15.8255 2.73176 16.6439 3.35154C17.2739 3.84114 17.7599 4.51914 17.9315 5.33874C18.3251 5.36874 18.6851 5.53194 18.9875 5.77794C19.4459 6.14994 19.7795 6.70794 19.9895 7.29834C20.3183 8.21634 20.4071 9.38634 20.0663 10.3823C20.1527 10.4231 20.2379 10.4711 20.3207 10.5263C20.6507 10.7459 20.9015 11.0603 21.0863 11.4311C21.4499 12.1571 21.5999 13.1699 21.5999 14.3999C21.5999 15.7691 21.0779 16.6883 20.4155 17.2559C20.0492 17.57 19.6169 17.7976 19.1507 17.9219C19.0307 18.5915 18.6947 19.3667 18.1679 20.0243C17.4839 20.8823 16.4231 21.5999 14.9999 21.5999C13.8719 21.5999 12.9743 20.9759 12.3911 20.3639C12.2517 20.2178 12.121 20.0636 11.9999 19.9019C11.8788 20.0636 11.7481 20.2178 11.6087 20.3639C11.0255 20.9759 10.1291 21.5999 8.9999 21.5999C7.5767 21.5999 6.5171 20.8823 5.8319 20.0243C5.33961 19.413 5.00243 18.6917 4.8491 17.9219C4.38288 17.7976 3.9506 17.57 3.5843 17.2559C2.9219 16.6883 2.3999 15.7679 2.3999 14.3999C2.3999 13.1699 2.5511 12.1559 2.9135 11.4311C3.08526 11.0675 3.3492 10.7552 3.6791 10.5251C3.76015 10.4715 3.8452 10.4242 3.9335 10.3835C3.5927 9.38514 3.6815 8.21634 4.0103 7.29834C4.2203 6.70794 4.5539 6.14994 5.0123 5.77794C5.3147 5.53194 5.6747 5.36994 6.0683 5.33874C6.2411 4.51914 6.7259 3.84114 7.3559 3.35154ZM11.3999 5.39994V5.38794L11.3975 5.32794C11.3798 5.01511 11.3176 4.7064 11.2127 4.41114C11.138 4.18826 11.0108 3.98659 10.8419 3.82314C10.6647 3.6688 10.4347 3.58884 10.1999 3.59994C9.44023 3.59734 8.70044 3.84253 8.0927 4.29834C7.5359 4.73154 7.1999 5.31834 7.1999 5.99994C7.19983 6.09496 7.17719 6.18861 7.13385 6.27317C7.09051 6.35773 7.0277 6.43079 6.9506 6.48632C6.8735 6.54186 6.78432 6.5783 6.69038 6.59263C6.59645 6.60696 6.50045 6.59877 6.4103 6.56874C6.1847 6.49434 5.9831 6.53634 5.7683 6.70914C5.5331 6.90114 5.3039 7.24194 5.1395 7.70154C4.8047 8.63994 4.8395 9.77634 5.2991 10.4675C5.36474 10.566 5.39981 10.6816 5.3999 10.7999H6.2999C7.01599 10.7999 7.70274 11.0844 8.20909 11.5908C8.71544 12.0971 8.9999 12.7839 8.9999 13.4999V13.9019C9.40023 14.0435 9.73764 14.322 9.95248 14.6882C10.1673 15.0545 10.2458 15.4849 10.174 15.9034C10.1022 16.3219 9.88474 16.7015 9.5601 16.9752C9.23546 17.2489 8.82451 17.399 8.3999 17.399C7.97529 17.399 7.56435 17.2489 7.23971 16.9752C6.91507 16.7015 6.69763 16.3219 6.62583 15.9034C6.55402 15.4849 6.63248 15.0545 6.84732 14.6882C7.06217 14.322 7.39957 14.0435 7.7999 13.9019V13.4999C7.7999 12.6719 7.1279 11.9999 6.2999 11.9999H4.1999C4.12817 11.9998 4.05704 11.9868 3.9899 11.9615L3.9863 11.9687C3.7487 12.4427 3.5999 13.2299 3.5999 14.3999C3.5999 15.4307 3.9779 16.0115 4.3655 16.3439C4.7819 16.7015 5.2439 16.7999 5.3999 16.7999C5.55903 16.7999 5.71164 16.8632 5.82417 16.9757C5.93669 17.0882 5.9999 17.2408 5.9999 17.3999C5.9999 17.8415 6.2399 18.6131 6.7679 19.2755C7.2827 19.9175 8.0231 20.3999 8.9999 20.3999C9.6719 20.3999 10.2743 20.0243 10.7399 19.5359C10.9691 19.2959 11.1479 19.0475 11.2643 18.8435C11.3173 18.7531 11.3626 18.6583 11.3999 18.5603V8.99994H10.0979C9.95637 9.40027 9.67786 9.73768 9.31161 9.95252C8.94537 10.1674 8.51496 10.2458 8.09646 10.174C7.67797 10.1022 7.29832 9.88478 7.02464 9.56014C6.75095 9.2355 6.60085 8.82456 6.60085 8.39994C6.60085 7.97533 6.75095 7.56439 7.02464 7.23975C7.29832 6.91511 7.67797 6.69767 8.09646 6.62587C8.51496 6.55406 8.94537 6.63252 9.31161 6.84737C9.67786 7.06221 9.95637 7.39962 10.0979 7.79994H11.3999V5.39994ZM12.5999 17.3987V18.5591C12.6372 18.6571 12.6825 18.7519 12.7355 18.8423C12.8531 19.0463 13.0307 19.2947 13.2587 19.5347C13.7255 20.0231 14.3291 20.3987 14.9999 20.3987C15.9767 20.3987 16.7171 19.9163 17.2319 19.2743C17.7599 18.6119 17.9999 17.8403 17.9999 17.3987C17.9999 17.2396 18.0631 17.087 18.1756 16.9745C18.2882 16.862 18.4408 16.7987 18.5999 16.7987C18.7559 16.7987 19.2179 16.7003 19.6343 16.3427C20.0219 16.0103 20.3999 15.4295 20.3999 14.3987C20.3999 13.2287 20.2499 12.4427 20.0135 11.9675C19.9344 11.7906 19.8103 11.6375 19.6535 11.5235C19.5184 11.4372 19.3602 11.3941 19.1999 11.3999C19.0914 11.3999 18.9849 11.3704 18.8918 11.3146C18.7987 11.2588 18.7225 11.1788 18.6713 11.0831C18.62 10.9875 18.5957 10.8797 18.6009 10.7713C18.6061 10.6629 18.6406 10.5579 18.7007 10.4675C19.1615 9.77634 19.1951 8.63994 18.8603 7.70154C18.6959 7.24194 18.4667 6.89994 18.2315 6.70914C18.0167 6.53634 17.8151 6.49314 17.5895 6.56874C17.4994 6.59877 17.4034 6.60696 17.3094 6.59263C17.2155 6.5783 17.1263 6.54186 17.0492 6.48632C16.9721 6.43079 16.9093 6.35773 16.866 6.27317C16.8226 6.18861 16.8 6.09496 16.7999 5.99994C16.7999 5.31834 16.4639 4.73154 15.9059 4.29834C15.2985 3.84278 14.5592 3.5976 13.7999 3.59994C13.5651 3.58884 13.3351 3.6688 13.1579 3.82314C12.9885 3.9864 12.8608 4.1881 12.7859 4.41114C12.6717 4.72459 12.6088 5.05445 12.5999 5.38794V16.1999H13.4999C14.3279 16.1999 14.9999 15.5279 14.9999 14.6999V12.4979C14.5996 12.3564 14.2622 12.0779 14.0473 11.7117C13.8325 11.3454 13.754 10.915 13.8258 10.4965C13.8976 10.078 14.1151 9.69837 14.4397 9.42468C14.7643 9.151 15.1753 9.00089 15.5999 9.00089C16.0245 9.00089 16.4355 9.151 16.7601 9.42468C17.0847 9.69837 17.3022 10.078 17.374 10.4965C17.4458 10.915 17.3673 11.3454 17.1525 11.7117C16.9376 12.0779 16.6002 12.3564 16.1999 12.4979V14.6999C16.1999 15.416 15.9154 16.1028 15.4091 16.6091C14.9027 17.1155 14.216 17.3999 13.4999 17.3999H12.5999V17.3987ZM7.7999 8.39994C7.7999 8.55907 7.86312 8.71169 7.97564 8.82421C8.08816 8.93673 8.24077 8.99994 8.3999 8.99994C8.55903 8.99994 8.71164 8.93673 8.82417 8.82421C8.93669 8.71169 8.9999 8.55907 8.9999 8.39994C8.9999 8.24081 8.93669 8.0882 8.82417 7.97568C8.71164 7.86316 8.55903 7.79994 8.3999 7.79994C8.24077 7.79994 8.08816 7.86316 7.97564 7.97568C7.86312 8.0882 7.7999 8.24081 7.7999 8.39994ZM15.5999 11.3999C15.759 11.3999 15.9116 11.3367 16.0242 11.2242C16.1367 11.1117 16.1999 10.9591 16.1999 10.7999C16.1999 10.6408 16.1367 10.4882 16.0242 10.3757C15.9116 10.2632 15.759 10.1999 15.5999 10.1999C15.4408 10.1999 15.2882 10.2632 15.1756 10.3757C15.0631 10.4882 14.9999 10.6408 14.9999 10.7999C14.9999 10.9591 15.0631 11.1117 15.1756 11.2242C15.2882 11.3367 15.4408 11.3999 15.5999 11.3999ZM8.3999 14.9999C8.24077 14.9999 8.08816 15.0632 7.97564 15.1757C7.86312 15.2882 7.7999 15.4408 7.7999 15.5999C7.7999 15.7591 7.86312 15.9117 7.97564 16.0242C8.08816 16.1367 8.24077 16.1999 8.3999 16.1999C8.55903 16.1999 8.71164 16.1367 8.82417 16.0242C8.93669 15.9117 8.9999 15.7591 8.9999 15.5999C8.9999 15.4408 8.93669 15.2882 8.82417 15.1757C8.71164 15.0632 8.55903 14.9999 8.3999 14.9999Z", fill: "currentColor" }) }));
|
package/es/icons/Database.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { SvgIcon } from "@mui/material";
|
|
3
|
-
export const Database = (props) => (_jsx(SvgIcon, { ...props, children: _jsx("path", { d: "
|
|
3
|
+
export const Database = (props) => (_jsx(SvgIcon, { ...props, children: _jsx("path", { d: "M12 11C9.31667 11 7.14583 10.5917 5.4875 9.775C3.82917 8.95833 3 8.03333 3 7C3 5.95 3.82917 5.02083 5.4875 4.2125C7.14583 3.40417 9.31667 3 12 3C14.6833 3 16.8542 3.40417 18.5125 4.2125C20.1708 5.02083 21 5.95 21 7C21 8.03333 20.1708 8.95833 18.5125 9.775C16.8542 10.5917 14.6833 11 12 11ZM12 16C9.56667 16 7.45833 15.6333 5.675 14.9C3.89167 14.1667 3 13.2833 3 12.25V9.75C3 10.4 3.3125 10.9625 3.9375 11.4375C4.5625 11.9125 5.3375 12.3042 6.2625 12.6125C7.1875 12.9208 8.17083 13.1458 9.2125 13.2875C10.2542 13.4292 11.1833 13.5 12 13.5C12.8333 13.5 13.7667 13.4292 14.8 13.2875C15.8333 13.1458 16.8125 12.925 17.7375 12.625C18.6625 12.325 19.4375 11.9375 20.0625 11.4625C20.6875 10.9875 21 10.4167 21 9.75V12.25C21 13.2833 20.1083 14.1667 18.325 14.9C16.5417 15.6333 14.4333 16 12 16ZM12 21C9.56667 21 7.45833 20.6333 5.675 19.9C3.89167 19.1667 3 18.2833 3 17.25V14.75C3 15.4 3.3125 15.9625 3.9375 16.4375C4.5625 16.9125 5.3375 17.3042 6.2625 17.6125C7.1875 17.9208 8.17083 18.1458 9.2125 18.2875C10.2542 18.4292 11.1833 18.5 12 18.5C12.8333 18.5 13.7667 18.4292 14.8 18.2875C15.8333 18.1458 16.8125 17.925 17.7375 17.625C18.6625 17.325 19.4375 16.9375 20.0625 16.4625C20.6875 15.9875 21 15.4167 21 14.75V17.25C21 18.2833 20.1083 19.1667 18.325 19.9C16.5417 20.6333 14.4333 21 12 21Z", fill: "currentcolor" }) }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { SvgIcon } from "@mui/material";
|
|
3
|
+
export const EditNote = (props) => (_jsx(SvgIcon, { ...props, children: _jsx("path", { d: "M20.125 13.65L18.35 11.875L19.075 11.15C19.2083 11.0167 19.3833 10.95 19.6 10.95C19.8167 10.95 19.9917 11.0167 20.125 11.15L20.85 11.875C20.9833 12.0083 21.05 12.1833 21.05 12.4C21.05 12.6167 20.9833 12.7917 20.85 12.925L20.125 13.65ZM12 20V18.225L17.275 12.95L19.05 14.725L13.775 20H12ZM3 14.75V13.25H10.5V14.75H3ZM3 10.625V9.125H14.75V10.625H3ZM3 6.5V5H14.75V6.5H3Z", fill: "currentcolor" }) }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { SvgIcon } from "@mui/material";
|
|
3
|
+
export const FileTable = (props) => (_jsx(SvgIcon, { ...props, children: _jsx("path", { d: "M19 3H5C3.89 3 3 3.89 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.89 20.1 3 19 3ZM9 18H6V16H9V18ZM9 15H6V13H9V15ZM9 12H6V10H9V12ZM13 18H10V16H13V18ZM13 15H10V13H13V15ZM13 12H10V10H13V12Z", fill: "currentColor" }) }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { SvgIcon } from "@mui/material";
|
|
3
|
+
export const Markdown = (props) => (_jsx(SvgIcon, { ...props, children: _jsx("path", { d: "M22.2675 4.61621H1.7325C0.77625 4.61621 0 5.39246 0 6.34496V17.6512C0 18.6075 0.77625 19.3837 1.7325 19.3837H22.2713C23.2275 19.3837 24.0038 18.6075 24 17.655V6.34496C24 5.39246 23.2238 4.61621 22.2675 4.61621V4.61621ZM12.6938 15.9225H10.3875V11.4225L8.08125 14.3062L5.775 11.4225V15.9225H3.46125V8.07746H5.7675L8.07375 10.9612L10.38 8.07746H12.6863V15.9225H12.6938ZM17.7675 16.0387L14.3063 12H16.6125V8.07746H18.9188V12H21.225L17.7675 16.0387Z", fill: "currentcolor" }) }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { SvgIcon } from "@mui/material";
|
|
3
|
+
export const OneToOne = (props) => (_jsx(SvgIcon, { ...props, children: _jsx("path", { d: "M20.3999 16.3999H17.3999C16.2999 16.3999 15.3999 15.4999 15.3999 14.3999V13.3999H13.3999H9.3999V14.3999C9.3999 15.4999 8.5099 16.3999 7.3999 16.3999H4.3999C3.2999 16.3999 2.3999 15.5099 2.3999 14.3999V10.3999C2.3999 9.2999 3.2999 8.3999 4.3999 8.3999H7.4099C8.5099 8.3999 9.4099 9.2899 9.4099 10.3999V11.3999H15.3999V10.3999C15.3999 9.2999 16.2899 8.3999 17.3999 8.3999H20.3999C21.4999 8.3999 22.3999 9.2899 22.3999 10.3999V14.3999C22.3999 15.4999 21.5099 16.3999 20.3999 16.3999Z", fill: "currentcolor" }) }));
|
package/es/icons/index.d.ts
CHANGED
|
@@ -2,3 +2,8 @@ export { FolderGlobal } from "./FolderGlobal";
|
|
|
2
2
|
export { FlipHorizontal } from "./FlipHorizontal";
|
|
3
3
|
export { FlipVertical } from "./FlipVertical";
|
|
4
4
|
export { Database } from "./Database";
|
|
5
|
+
export { Markdown } from "./Markdown";
|
|
6
|
+
export { OneToOne } from "./OneToOne";
|
|
7
|
+
export { EditNote } from "./EditNote";
|
|
8
|
+
export { FileTable } from "./FileTable";
|
|
9
|
+
export { Brain } from "./Brain";
|
package/es/icons/index.js
CHANGED
|
@@ -2,3 +2,8 @@ export { FolderGlobal } from "./FolderGlobal";
|
|
|
2
2
|
export { FlipHorizontal } from "./FlipHorizontal";
|
|
3
3
|
export { FlipVertical } from "./FlipVertical";
|
|
4
4
|
export { Database } from "./Database";
|
|
5
|
+
export { Markdown } from "./Markdown";
|
|
6
|
+
export { OneToOne } from "./OneToOne";
|
|
7
|
+
export { EditNote } from "./EditNote";
|
|
8
|
+
export { FileTable } from "./FileTable";
|
|
9
|
+
export { Brain } from "./Brain";
|
package/es/theme/index.d.ts
CHANGED
package/es/theme/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import palette from
|
|
2
|
-
import typography from
|
|
3
|
-
import { alpha, createTheme
|
|
1
|
+
import palette from "./palette";
|
|
2
|
+
import typography from "./typography";
|
|
3
|
+
import { alpha, createTheme } from "@mui/material/styles";
|
|
4
4
|
let theme = createTheme({
|
|
5
5
|
palette,
|
|
6
6
|
typography,
|
|
@@ -17,9 +17,9 @@ theme = createTheme(theme, {
|
|
|
17
17
|
MuiTab: {
|
|
18
18
|
styleOverrides: {
|
|
19
19
|
root: {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
padding: '14px',
|
|
21
|
+
minHeight: 'unset',
|
|
22
|
+
textTransform: 'none',
|
|
23
23
|
},
|
|
24
24
|
},
|
|
25
25
|
},
|
|
@@ -43,7 +43,7 @@ theme = createTheme(theme, {
|
|
|
43
43
|
MuiButton: {
|
|
44
44
|
variants: [
|
|
45
45
|
{
|
|
46
|
-
props: { size:
|
|
46
|
+
props: { size: "xsmall" },
|
|
47
47
|
style: {
|
|
48
48
|
padding: "2px 10px",
|
|
49
49
|
},
|
|
@@ -51,10 +51,10 @@ theme = createTheme(theme, {
|
|
|
51
51
|
],
|
|
52
52
|
styleOverrides: {
|
|
53
53
|
root: {
|
|
54
|
-
textTransform:
|
|
54
|
+
textTransform: "none",
|
|
55
55
|
},
|
|
56
56
|
sizeSmall: {
|
|
57
|
-
fontSize:
|
|
57
|
+
fontSize: "14px",
|
|
58
58
|
},
|
|
59
59
|
outlinedInherit: {
|
|
60
60
|
color: theme.palette.text.secondary,
|
|
@@ -66,7 +66,7 @@ theme = createTheme(theme, {
|
|
|
66
66
|
},
|
|
67
67
|
textInherit: {
|
|
68
68
|
color: theme.palette.text.secondary,
|
|
69
|
-
}
|
|
69
|
+
},
|
|
70
70
|
},
|
|
71
71
|
defaultProps: {
|
|
72
72
|
disableElevation: true,
|
|
@@ -80,26 +80,26 @@ theme = createTheme(theme, {
|
|
|
80
80
|
groupedContained: {
|
|
81
81
|
color: theme.palette.primary.main,
|
|
82
82
|
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity),
|
|
83
|
-
|
|
83
|
+
"&:hover": {
|
|
84
84
|
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
85
85
|
},
|
|
86
|
-
}
|
|
86
|
+
},
|
|
87
87
|
},
|
|
88
88
|
},
|
|
89
89
|
MuiOutlinedInput: {
|
|
90
90
|
styleOverrides: {
|
|
91
91
|
root: {
|
|
92
92
|
padding: "0px 8px",
|
|
93
|
-
borderRadius:
|
|
93
|
+
borderRadius: "8px",
|
|
94
94
|
},
|
|
95
95
|
input: {
|
|
96
96
|
padding: "10px 0px",
|
|
97
|
-
|
|
97
|
+
":read-only": {
|
|
98
98
|
color: theme.palette.text.secondary,
|
|
99
99
|
},
|
|
100
100
|
},
|
|
101
101
|
sizeSmall: {
|
|
102
|
-
|
|
102
|
+
input: {
|
|
103
103
|
padding: "8px 0px",
|
|
104
104
|
},
|
|
105
105
|
},
|
|
@@ -107,82 +107,86 @@ theme = createTheme(theme, {
|
|
|
107
107
|
// Important to override all pseudo classes
|
|
108
108
|
borderColor: `${theme.palette.border} !important`,
|
|
109
109
|
},
|
|
110
|
-
}
|
|
110
|
+
},
|
|
111
111
|
},
|
|
112
112
|
MuiInputBase: {
|
|
113
113
|
styleOverrides: {
|
|
114
114
|
input: {
|
|
115
115
|
...theme.typography.body2,
|
|
116
|
-
|
|
117
|
-
color: theme.palette.text.disabled
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
116
|
+
"::placeholder": {
|
|
117
|
+
color: theme.palette.text.disabled,
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
121
|
},
|
|
122
122
|
MuiInputLabel: {
|
|
123
123
|
styleOverrides: {
|
|
124
124
|
root: {
|
|
125
125
|
...theme.typography.body2,
|
|
126
126
|
color: theme.palette.text.primary,
|
|
127
|
-
marginBottom:
|
|
127
|
+
marginBottom: "4px",
|
|
128
|
+
fontWeight: 600,
|
|
128
129
|
},
|
|
129
130
|
},
|
|
130
131
|
},
|
|
131
132
|
MuiInputAdornment: {
|
|
132
133
|
styleOverrides: {
|
|
133
134
|
root: {
|
|
134
|
-
|
|
135
|
-
margin:
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
135
|
+
"& > .MuiSvgIcon-root": {
|
|
136
|
+
margin: "4px",
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
},
|
|
139
140
|
},
|
|
140
141
|
MuiIconButton: {
|
|
141
142
|
styleOverrides: {
|
|
142
143
|
sizeSmall: {
|
|
143
|
-
padding:
|
|
144
|
-
}
|
|
145
|
-
}
|
|
144
|
+
padding: "4px",
|
|
145
|
+
},
|
|
146
|
+
},
|
|
146
147
|
},
|
|
147
148
|
MuiDialog: {
|
|
148
149
|
styleOverrides: {
|
|
149
150
|
paperWidthXs: {
|
|
150
|
-
width:
|
|
151
|
-
maxWidth:
|
|
152
|
-
}
|
|
153
|
-
}
|
|
151
|
+
width: "480px",
|
|
152
|
+
maxWidth: "480px",
|
|
153
|
+
},
|
|
154
|
+
},
|
|
154
155
|
},
|
|
155
156
|
MuiDialogTitle: {
|
|
156
157
|
styleOverrides: {
|
|
157
158
|
root: {
|
|
158
159
|
...theme.typography.h5,
|
|
159
160
|
fontWeight: 600,
|
|
160
|
-
padding:
|
|
161
|
-
}
|
|
162
|
-
}
|
|
161
|
+
padding: "20px",
|
|
162
|
+
},
|
|
163
|
+
},
|
|
163
164
|
},
|
|
164
165
|
MuiDialogContent: {
|
|
165
166
|
styleOverrides: {
|
|
166
167
|
root: {
|
|
167
|
-
padding:
|
|
168
|
+
padding: "20px",
|
|
168
169
|
paddingTop: 0,
|
|
169
|
-
}
|
|
170
|
-
|
|
170
|
+
},
|
|
171
|
+
dividers: {
|
|
172
|
+
borderColor: theme.palette.border,
|
|
173
|
+
},
|
|
174
|
+
},
|
|
171
175
|
},
|
|
172
176
|
MuiDialogContentText: {
|
|
173
177
|
styleOverrides: {
|
|
174
178
|
root: {
|
|
175
179
|
...theme.typography.body2,
|
|
176
|
-
}
|
|
177
|
-
}
|
|
180
|
+
},
|
|
181
|
+
},
|
|
178
182
|
},
|
|
179
183
|
MuiDialogActions: {
|
|
180
184
|
styleOverrides: {
|
|
181
185
|
root: {
|
|
182
|
-
padding:
|
|
186
|
+
padding: "20px",
|
|
183
187
|
paddingTop: 0,
|
|
184
|
-
}
|
|
185
|
-
}
|
|
188
|
+
},
|
|
189
|
+
},
|
|
186
190
|
},
|
|
187
191
|
MuiBackdrop: {
|
|
188
192
|
styleOverrides: {
|
|
@@ -190,113 +194,165 @@ theme = createTheme(theme, {
|
|
|
190
194
|
backgroundColor: alpha(theme.palette.grey[900], 0.5),
|
|
191
195
|
},
|
|
192
196
|
invisible: {
|
|
193
|
-
backgroundColor:
|
|
194
|
-
}
|
|
197
|
+
backgroundColor: "transparent",
|
|
198
|
+
},
|
|
195
199
|
},
|
|
196
200
|
},
|
|
197
201
|
MuiMenu: {
|
|
198
202
|
styleOverrides: {
|
|
199
203
|
list: {
|
|
200
|
-
minWidth:
|
|
201
|
-
}
|
|
204
|
+
minWidth: "240px",
|
|
205
|
+
},
|
|
202
206
|
},
|
|
203
207
|
},
|
|
204
208
|
MuiAccordion: {
|
|
205
209
|
styleOverrides: {
|
|
206
210
|
root: {
|
|
207
|
-
|
|
211
|
+
"&:before": {
|
|
208
212
|
backgroundColor: theme.palette.border,
|
|
209
213
|
},
|
|
210
|
-
}
|
|
214
|
+
},
|
|
211
215
|
},
|
|
212
216
|
},
|
|
213
217
|
MuiSlider: {
|
|
214
218
|
styleOverrides: {
|
|
215
219
|
rail: {
|
|
216
220
|
backgroundColor: theme.palette.grey[400],
|
|
217
|
-
}
|
|
218
|
-
}
|
|
221
|
+
},
|
|
222
|
+
},
|
|
219
223
|
},
|
|
220
224
|
MuiChip: {
|
|
221
225
|
styleOverrides: {
|
|
222
226
|
root: {
|
|
223
|
-
borderRadius:
|
|
227
|
+
borderRadius: "4px",
|
|
224
228
|
},
|
|
225
229
|
colorDefault: {
|
|
226
230
|
backgroundColor: theme.palette.grey[100],
|
|
227
|
-
|
|
231
|
+
":hover": {
|
|
228
232
|
backgroundColor: theme.palette.grey[200],
|
|
229
233
|
},
|
|
230
|
-
|
|
234
|
+
":focus": {
|
|
231
235
|
backgroundColor: theme.palette.grey[300],
|
|
232
|
-
}
|
|
236
|
+
},
|
|
233
237
|
},
|
|
234
|
-
}
|
|
238
|
+
},
|
|
235
239
|
},
|
|
236
240
|
MuiAlert: {
|
|
237
241
|
styleOverrides: {
|
|
238
242
|
icon: {
|
|
239
|
-
alignSelf:
|
|
243
|
+
alignSelf: "center",
|
|
240
244
|
},
|
|
241
245
|
standardWarning: {
|
|
242
|
-
|
|
246
|
+
" .MuiAlert-icon": {
|
|
243
247
|
color: theme.palette.common.black,
|
|
244
|
-
}
|
|
248
|
+
},
|
|
245
249
|
},
|
|
246
|
-
}
|
|
250
|
+
},
|
|
247
251
|
},
|
|
248
252
|
MuiDataGrid: {
|
|
249
253
|
styleOverrides: {
|
|
250
254
|
root: {
|
|
251
255
|
borderColor: theme.palette.border,
|
|
252
|
-
borderRadius:
|
|
256
|
+
borderRadius: "8px",
|
|
253
257
|
},
|
|
254
258
|
cell: {
|
|
255
259
|
borderColor: theme.palette.border,
|
|
256
260
|
},
|
|
257
261
|
columnHeaders: {
|
|
258
262
|
borderColor: theme.palette.border,
|
|
259
|
-
}
|
|
263
|
+
},
|
|
264
|
+
},
|
|
265
|
+
},
|
|
266
|
+
MuiFab: {
|
|
267
|
+
styleOverrides: {
|
|
268
|
+
root: {
|
|
269
|
+
boxShadow: "none",
|
|
270
|
+
},
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
MuiSpeedDial: {
|
|
274
|
+
styleOverrides: {
|
|
275
|
+
actions: {
|
|
276
|
+
paddingTop: "38px !important",
|
|
277
|
+
},
|
|
278
|
+
},
|
|
279
|
+
},
|
|
280
|
+
MuiSpeedDialAction: {
|
|
281
|
+
styleOverrides: {
|
|
282
|
+
fab: {
|
|
283
|
+
marginTop: "6px",
|
|
284
|
+
marginBottom: "6px",
|
|
285
|
+
},
|
|
286
|
+
staticTooltipLabel: {
|
|
287
|
+
...theme.typography.body2,
|
|
288
|
+
fontWeight: 500,
|
|
289
|
+
color: theme.palette.common.white,
|
|
290
|
+
backgroundColor: "transparent",
|
|
291
|
+
whiteSpace: "nowrap",
|
|
292
|
+
boxShadow: "none",
|
|
293
|
+
paddingRight: 0,
|
|
294
|
+
},
|
|
260
295
|
},
|
|
261
296
|
},
|
|
262
297
|
MuiListItemButton: {
|
|
263
298
|
styleOverrides: {
|
|
264
299
|
divider: {
|
|
265
300
|
borderColor: theme.palette.border,
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
},
|
|
304
|
+
MuiLink: {
|
|
305
|
+
styleOverrides: {
|
|
306
|
+
root: {
|
|
307
|
+
color: theme.palette.info.dark,
|
|
308
|
+
textDecorationColor: theme.palette.info.main,
|
|
309
|
+
'&:hover': {
|
|
310
|
+
textDecorationColor: theme.palette.info.dark,
|
|
311
|
+
},
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
MuiTooltip: {
|
|
316
|
+
styleOverrides: {
|
|
317
|
+
popper: {
|
|
318
|
+
maxWidth: '240px',
|
|
319
|
+
},
|
|
320
|
+
tooltip: {
|
|
321
|
+
...theme.typography.body3,
|
|
266
322
|
}
|
|
267
323
|
},
|
|
268
324
|
},
|
|
269
325
|
MuiTreeItem: {
|
|
270
326
|
styleOverrides: {
|
|
271
327
|
content: {
|
|
272
|
-
paddingTop:
|
|
273
|
-
paddingBottom:
|
|
328
|
+
paddingTop: "6px",
|
|
329
|
+
paddingBottom: "6px",
|
|
274
330
|
paddingLeft: 0,
|
|
275
|
-
paddingRight:
|
|
331
|
+
paddingRight: "12px",
|
|
276
332
|
borderRadius: 4,
|
|
277
333
|
width: "unset",
|
|
278
|
-
|
|
334
|
+
"&.Mui-selected": {
|
|
279
335
|
background: alpha(theme.palette.primary.main, 0.04),
|
|
280
|
-
|
|
336
|
+
" .MuiTreeItem-label .MuiSvgIcon-root": {
|
|
281
337
|
color: theme.palette.primary.main,
|
|
282
338
|
},
|
|
283
|
-
|
|
339
|
+
" .MuiTypography-root": {
|
|
284
340
|
color: theme.palette.primary.dark,
|
|
285
|
-
}
|
|
286
|
-
}
|
|
341
|
+
},
|
|
342
|
+
},
|
|
287
343
|
},
|
|
288
344
|
label: {
|
|
289
|
-
paddingLeft:
|
|
345
|
+
paddingLeft: "0",
|
|
290
346
|
},
|
|
291
347
|
iconContainer: {
|
|
292
|
-
marginRight:
|
|
293
|
-
width:
|
|
294
|
-
|
|
295
|
-
fontSize:
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
}
|
|
348
|
+
marginRight: "0",
|
|
349
|
+
width: "24px",
|
|
350
|
+
svg: {
|
|
351
|
+
fontSize: "24px",
|
|
352
|
+
},
|
|
353
|
+
},
|
|
354
|
+
},
|
|
355
|
+
},
|
|
300
356
|
},
|
|
301
357
|
});
|
|
302
358
|
export default theme;
|
package/es/theme/palette.js
CHANGED
package/es/theme/typography.js
CHANGED