mui-design-system 0.0.24 → 0.0.25
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/dist/components/custom-auto-complete/CustomAutoComplete.js +3 -3
- package/dist/components/custom-auto-complete/components/ListRow.js +1 -1
- package/dist/components/custom-chip/CustomChip.js +1 -1
- package/dist/components/custom-pagination/custom-pagination-2/CustomPagination2.js +2 -2
- package/dist/components/form/components/UFSwitch.js +2 -2
- package/dist/components/form/components/UFTime.js +1 -1
- package/dist/mui/FormControl/MuiFormControlLabel.js +1 -1
- package/dist/mui/InputLabel/MuiInputLabel.js +1 -1
- package/dist/mui/Tabs/Tab/MuiTab.js +1 -1
- package/dist/mui/TextField/MuiFilledInput.js +1 -1
- package/dist/mui/TextField/MuiOutlinedInput.js +2 -2
- package/dist/mui/Typography/MuiTypography.js +1 -1
- package/dist/mui/Typography/index.js +72 -87
- package/dist/mui/menu/MuiMenuItem.js +1 -1
- package/dist/types/typography.d.ts +36 -49
- package/package.json +1 -1
|
@@ -25,7 +25,7 @@ const CustomAutoComplete = ({ label, helperText, options, multiple, disabled, va
|
|
|
25
25
|
return (_jsxs(Box, { sx: { width }, children: [_jsx(InputLabel, { sx: {
|
|
26
26
|
fontSize: 12,
|
|
27
27
|
color: disabled ? 'text.1' : 'text.primary',
|
|
28
|
-
}, children: inputLabelMode === 'static' && !hideLabel && (_jsx(Typography, { variant: '
|
|
28
|
+
}, children: inputLabelMode === 'static' && !hideLabel && (_jsx(Typography, { variant: 'body-xs', children: label })) }), _jsx(Autocomplete, { loading: loading, limitTags: 2, multiple: multiple, disabled: disabled, options: options || [], disableCloseOnSelect: multiple, disablePortal: Boolean(rest.limitTags), value: rest.value,
|
|
29
29
|
// defaultValue={rest?.defaultValue}
|
|
30
30
|
id: 'virtualize-demo', disableListWrap: true, isOptionEqualToValue: (option, value) => {
|
|
31
31
|
return option?.value === value?.value;
|
|
@@ -35,7 +35,7 @@ const CustomAutoComplete = ({ label, helperText, options, multiple, disabled, va
|
|
|
35
35
|
index: state.index,
|
|
36
36
|
multiple,
|
|
37
37
|
selected: state.selected,
|
|
38
|
-
}), ListboxProps: { onReachEnd }, ListboxComponent: ListBox, renderGroup: (params) => params, noOptionsText: _jsx(Typography, { variant: '
|
|
38
|
+
}), ListboxProps: { onReachEnd }, ListboxComponent: ListBox, renderGroup: (params) => params, noOptionsText: _jsx(Typography, { variant: 'body-xs', sx: { color: 'text.primary' }, children: "\u0646\u062A\u06CC\u062C\u0647 \u0627\u06CC \u06CC\u0627\u0641\u062A \u0646\u0634\u062F" }), loadingText: _jsx(Typography, { variant: 'body-xs', sx: { color: 'text.primary' }, children: "\u062F\u0631 \u062D\u0627\u0644 \u0628\u0627\u0631\u06AF\u0632\u0627\u0631\u06CC..." }), sx: {
|
|
39
39
|
padding: 0,
|
|
40
40
|
width: '100%',
|
|
41
41
|
...(disabled && { opacity: 0.7, cursor: 'not-allowed' }),
|
|
@@ -70,6 +70,6 @@ const CustomAutoComplete = ({ label, helperText, options, multiple, disabled, va
|
|
|
70
70
|
}, children: multiple &&
|
|
71
71
|
selectedOptions &&
|
|
72
72
|
selectedOptions?.length > 0 &&
|
|
73
|
-
showSelectedCount && (_jsxs(Typography, { variant: '
|
|
73
|
+
showSelectedCount && (_jsxs(Typography, { variant: 'body-2xs', sx: { color: 'text.4', mt: 1 }, children: [selectedOptions?.length, " item", selectedOptions?.length > 1 && "'s", " selected"] })) })] }));
|
|
74
74
|
};
|
|
75
75
|
export default CustomAutoComplete;
|
|
@@ -13,7 +13,7 @@ export function ListRow(props) {
|
|
|
13
13
|
const { props: optionProps, option, multiple, selected } = dataSet || {};
|
|
14
14
|
return (_createElement("li", { ...optionProps, key: option.value, style: inlineStyle },
|
|
15
15
|
multiple && _jsx(Checkbox, { checked: selected, sx: { opacity: 'inherit' } }),
|
|
16
|
-
_jsx(Typography, { variant: '
|
|
16
|
+
_jsx(Typography, { variant: 'body-2xs', children: option?.label }))
|
|
17
17
|
// <Typography key={key} component="li" {...optionProps} noWrap style={inlineStyle}>
|
|
18
18
|
// {option?.label}
|
|
19
19
|
// </Typography>
|
|
@@ -5,6 +5,6 @@ import Typography from "@mui/material/Typography";
|
|
|
5
5
|
const CustomChip = ({ label, endIcon, startIcon, labelProps, chipProps }) => {
|
|
6
6
|
const isLarge = chipProps?.size === 'large';
|
|
7
7
|
const { sx, ...props } = chipProps || {};
|
|
8
|
-
return (_jsx(Chip, { sx: { ...(chipProps?.rounded && { borderRadius: '9999px' }), ...sx }, color: props.color, label: _jsxs(Box, { display: "flex", gap: 2, alignItems: 'center', children: [_jsx(Box, { display: 'flex', id: "custom-chip__start-icon", children: startIcon }), _jsx(Typography, { id: "custom-chip__label", lineHeight: props.size === 'small' ? '24px' : 'normal', variant: isLarge ? '
|
|
8
|
+
return (_jsx(Chip, { sx: { ...(chipProps?.rounded && { borderRadius: '9999px' }), ...sx }, color: props.color, label: _jsxs(Box, { display: "flex", gap: 2, alignItems: 'center', children: [_jsx(Box, { display: 'flex', id: "custom-chip__start-icon", children: startIcon }), _jsx(Typography, { id: "custom-chip__label", lineHeight: props.size === 'small' ? '24px' : 'normal', variant: isLarge ? 'body-xs-medium' : 'body-2xs', color: "#ffffff", ...labelProps, children: label }), _jsx(Box, { display: 'flex', id: "custom-chip__start-icon", children: endIcon })] }), ...props }));
|
|
9
9
|
};
|
|
10
10
|
export default CustomChip;
|
|
@@ -17,9 +17,9 @@ const CustomPagination2 = ({ pagination, boxProps, selectProps, paginationBoxPro
|
|
|
17
17
|
}, ...iconBoxProps, ...rest, children: children }));
|
|
18
18
|
return (_jsxs(Box, { display: "flex", justifyContent: "space-between", alignItems: "center", p: 4, bgcolor: "#EAEDFF", borderRadius: "0 0 8px 8px", ...boxProps, children: [_jsxs(Box, { display: "flex", gap: 2, dir: "rtl", children: [!withoutEndPageButton && (_jsx(IconBox, { onClick: () => pagination?.onChangePage
|
|
19
19
|
? pagination?.onChangePage(pagination?.pageCounts)
|
|
20
|
-
: {}, disabled: pagination && pagination?.pageIndex === pagination.pageCounts, children: _jsx(SvgUnion, { width: 18, height: 18, style: { transform: "scaleX(-1)" } }) })), _jsxs(Box, { display: "flex", gap: 2, justifyContent: "center", alignItems: "center", bgcolor: "background.1", borderRadius: 1, ...paginationBoxProps, children: [_jsx(IconBox, { onClick: () => pagination?.onChangePage(pagination?.pageIndex + 1), disabled: pagination && pagination?.pageIndex === pagination.pageCounts, children: _jsx(SvgArrowRight1, { width: 18, height: 18 }) }), _jsx(Typography, { dir: "ltr", variant: "
|
|
20
|
+
: {}, disabled: pagination && pagination?.pageIndex === pagination.pageCounts, children: _jsx(SvgUnion, { width: 18, height: 18, style: { transform: "scaleX(-1)" } }) })), _jsxs(Box, { display: "flex", gap: 2, justifyContent: "center", alignItems: "center", bgcolor: "background.1", borderRadius: 1, ...paginationBoxProps, children: [_jsx(IconBox, { onClick: () => pagination?.onChangePage(pagination?.pageIndex + 1), disabled: pagination && pagination?.pageIndex === pagination.pageCounts, children: _jsx(SvgArrowRight1, { width: 18, height: 18 }) }), _jsx(Typography, { dir: "ltr", variant: "body-xs", color: "text.13", width: 'auto', minWidth: 75, textAlign: "center", children: dictionary?.pageIndexTitle || `صفحه ${pagination?.pageIndex} از ${pagination?.pageCounts}` }), _jsx(IconBox, { onClick: () => pagination && pagination?.pageIndex > 1
|
|
21
21
|
? pagination?.onChangePage(pagination?.pageIndex - 1)
|
|
22
|
-
: {}, disabled: pagination && pagination?.pageIndex <= 1, children: _jsx(SvgArrowLeft1, { width: 18, height: 18 }) })] }), !withoutEndPageButton && (_jsx(IconBox, { onClick: () => pagination?.onChangePage(1), disabled: pagination && pagination?.pageIndex <= 1, children: _jsx(SvgUnion, { width: 18, height: 18 }) }))] }), _jsxs(Box, { display: "flex", gap: 2, alignItems: "center", justifyContent: "flex-end", flexGrow: 1, maxWidth: 240, children: [_jsx(Box, { width: "max-content", children: _jsx(Typography, { display: "block", width: "max-content", variant: "
|
|
22
|
+
: {}, disabled: pagination && pagination?.pageIndex <= 1, children: _jsx(SvgArrowLeft1, { width: 18, height: 18 }) })] }), !withoutEndPageButton && (_jsx(IconBox, { onClick: () => pagination?.onChangePage(1), disabled: pagination && pagination?.pageIndex <= 1, children: _jsx(SvgUnion, { width: 18, height: 18 }) }))] }), _jsxs(Box, { display: "flex", gap: 2, alignItems: "center", justifyContent: "flex-end", flexGrow: 1, maxWidth: 240, children: [_jsx(Box, { width: "max-content", children: _jsx(Typography, { display: "block", width: "max-content", variant: "body-2xs", children: dictionary?.pageSizeTitle || "تعداد در هر صفحه" }) }), _jsx(Box, { children: _jsx(Select, { labelId: "demo-simple-select-label", id: "demo-simple-select", value: pagination?.pageSize || pageSizes[0], onChange: (e, v) => pagination?.onChangePageSize?.(e.target.value), sx: {
|
|
23
23
|
minHeight: 32,
|
|
24
24
|
height: 32,
|
|
25
25
|
"& > div": {
|
|
@@ -10,7 +10,7 @@ const UFSwitch = ({ form, name, label, rules, disabled, error, defaultValue, hel
|
|
|
10
10
|
...(disabled && { filter: 'contrast(0.3)' }),
|
|
11
11
|
}, children: [_jsx(FormControlLabel, { slotProps: {
|
|
12
12
|
typography: {
|
|
13
|
-
variant: '
|
|
13
|
+
variant: 'body-2xs',
|
|
14
14
|
...props?.slotProps?.typography,
|
|
15
15
|
},
|
|
16
16
|
}, control: _jsx(Switch, { disableRipple: true, checked: value, onChange: (e) => {
|
|
@@ -90,7 +90,7 @@ const UFSwitch = ({ form, name, label, rules, disabled, error, defaultValue, hel
|
|
|
90
90
|
backgroundColor: 'grey.7',
|
|
91
91
|
height: 'auto',
|
|
92
92
|
},
|
|
93
|
-
}, inputProps: props?.inputProps, ...props?.switchProps }), label: label }), !withoutHelperText && (_jsx(Typography, { variant: '
|
|
93
|
+
}, inputProps: props?.inputProps, ...props?.switchProps }), label: label }), !withoutHelperText && (_jsx(Typography, { variant: 'body-2xs', sx: {
|
|
94
94
|
height: 23,
|
|
95
95
|
width: 'max-content',
|
|
96
96
|
color: error ? 'error.4' : 'text.primary',
|
|
@@ -87,7 +87,7 @@ const UFTime = ({ form, name, defaultValue, label, rules, readonly, disabled, pl
|
|
|
87
87
|
inputMode: 'numeric',
|
|
88
88
|
style: { padding: 0, textAlign: 'center' },
|
|
89
89
|
...mergedMinuteProps.inputProps,
|
|
90
|
-
} })] }), !withoutHelperText && (_jsx(Typography, { variant: '
|
|
90
|
+
} })] }), !withoutHelperText && (_jsx(Typography, { variant: 'body-2xs', color: 'error.4', height: 21, children: error?.message || helperText }))] }));
|
|
91
91
|
} }));
|
|
92
92
|
};
|
|
93
93
|
export default UFTime;
|
|
@@ -20,7 +20,7 @@ export const MuiInputLabel = {
|
|
|
20
20
|
root: ({ ownerState, theme }) => ({
|
|
21
21
|
color: theme.palette.text.primary,
|
|
22
22
|
textAlign: 'start',
|
|
23
|
-
...theme.typography?.["
|
|
23
|
+
...theme.typography?.["body-s-medium"],
|
|
24
24
|
lineHeight: '150%',
|
|
25
25
|
// ...(ownerState.variant === "outlined"
|
|
26
26
|
// ? {
|
|
@@ -7,7 +7,7 @@ export const MuiTab = {
|
|
|
7
7
|
minHeight: 'max-content',
|
|
8
8
|
color: theme.palette.text.primary,
|
|
9
9
|
stroke: theme.palette.text.primary,
|
|
10
|
-
...theme.typography
|
|
10
|
+
...theme.typography?.["body-s"],
|
|
11
11
|
textTransform: 'none',
|
|
12
12
|
transition: 'transform 0.2s',
|
|
13
13
|
':active': {
|
|
@@ -24,7 +24,7 @@ export const MuiFilledInput = {
|
|
|
24
24
|
stroke: theme.palette.text.primary,
|
|
25
25
|
minWidth: 80,
|
|
26
26
|
minHeight: ownerState.size === 'small' ? '40px' : '48px',
|
|
27
|
-
...theme.typography?.["
|
|
27
|
+
...theme.typography?.["body-s-medium"],
|
|
28
28
|
lineHeight: '100%',
|
|
29
29
|
backgroundColor: theme.palette.text['4'],
|
|
30
30
|
...(ownerState.readOnly && {
|
|
@@ -4,7 +4,7 @@ export const MuiOutlinedInput = {
|
|
|
4
4
|
stroke: theme.palette.text.primary,
|
|
5
5
|
borderRadius: theme.spacing(2),
|
|
6
6
|
minWidth: 80,
|
|
7
|
-
...theme.typography?.["
|
|
7
|
+
...theme.typography?.["body-s-medium"],
|
|
8
8
|
lineHeight: '100%',
|
|
9
9
|
height: ownerState.size === 'small'
|
|
10
10
|
? '40px'
|
|
@@ -34,7 +34,7 @@ export const MuiOutlinedInput = {
|
|
|
34
34
|
//Label that goes on the border of component
|
|
35
35
|
'& .MuiOutlinedInput-notchedOutline': {
|
|
36
36
|
transition: 'border-color 0.2s ease',
|
|
37
|
-
...theme.typography?.["
|
|
37
|
+
...theme.typography?.["body-s-medium"],
|
|
38
38
|
...(ownerState.disabled && {
|
|
39
39
|
border: 'none',
|
|
40
40
|
}),
|
|
@@ -2,137 +2,122 @@ export const typography = {
|
|
|
2
2
|
fontFamily: 'inherit',
|
|
3
3
|
h1: {
|
|
4
4
|
fontWeight: 700,
|
|
5
|
-
fontSize:
|
|
6
|
-
lineHeight:
|
|
5
|
+
fontSize: 48,
|
|
6
|
+
lineHeight: 1.3,
|
|
7
7
|
},
|
|
8
8
|
h2: {
|
|
9
9
|
fontWeight: 700,
|
|
10
|
-
fontSize:
|
|
11
|
-
lineHeight:
|
|
10
|
+
fontSize: 40,
|
|
11
|
+
lineHeight: 1.3,
|
|
12
12
|
},
|
|
13
13
|
h3: {
|
|
14
14
|
fontWeight: 700,
|
|
15
|
-
fontSize:
|
|
16
|
-
lineHeight:
|
|
15
|
+
fontSize: 36,
|
|
16
|
+
lineHeight: 1.4,
|
|
17
17
|
},
|
|
18
18
|
h4: {
|
|
19
19
|
fontWeight: 700,
|
|
20
|
-
fontSize:
|
|
21
|
-
lineHeight:
|
|
20
|
+
fontSize: 32,
|
|
21
|
+
lineHeight: 1.5,
|
|
22
22
|
},
|
|
23
23
|
h5: {
|
|
24
24
|
fontWeight: 700,
|
|
25
|
-
fontSize:
|
|
26
|
-
lineHeight:
|
|
25
|
+
fontSize: 28,
|
|
26
|
+
lineHeight: 1.5,
|
|
27
27
|
},
|
|
28
28
|
h6: {
|
|
29
29
|
fontWeight: 700,
|
|
30
|
-
fontSize:
|
|
31
|
-
lineHeight:
|
|
30
|
+
fontSize: 26,
|
|
31
|
+
lineHeight: 1.5,
|
|
32
32
|
},
|
|
33
|
-
|
|
33
|
+
"body-l": {
|
|
34
34
|
fontWeight: 400,
|
|
35
|
-
fontSize:
|
|
36
|
-
lineHeight:
|
|
35
|
+
fontSize: 24,
|
|
36
|
+
lineHeight: 1.5,
|
|
37
37
|
},
|
|
38
|
-
"
|
|
38
|
+
"body-l-medium": {
|
|
39
39
|
fontWeight: 500,
|
|
40
|
-
fontSize:
|
|
41
|
-
lineHeight:
|
|
40
|
+
fontSize: 24,
|
|
41
|
+
lineHeight: 1.5,
|
|
42
42
|
},
|
|
43
|
-
"
|
|
44
|
-
fontWeight:
|
|
45
|
-
fontSize:
|
|
46
|
-
lineHeight:
|
|
47
|
-
},
|
|
48
|
-
body2: {
|
|
49
|
-
fontWeight: 400,
|
|
50
|
-
fontSize: "clamp(16px,3vw,20px)",
|
|
51
|
-
lineHeight: "clamp(24px,4.9vw,28px)",
|
|
52
|
-
},
|
|
53
|
-
"body2.medium": {
|
|
54
|
-
fontWeight: 500,
|
|
55
|
-
fontSize: "clamp(16px,3vw,20px)",
|
|
56
|
-
lineHeight: "clamp(24px,4.9vw,28px)",
|
|
57
|
-
},
|
|
58
|
-
"body2.bold": {
|
|
59
|
-
fontWeight: 700,
|
|
60
|
-
fontSize: "clamp(16px,3vw,20px)",
|
|
61
|
-
lineHeight: "clamp(24px,4.9vw,28px)",
|
|
43
|
+
"body-l-semibold": {
|
|
44
|
+
fontWeight: 600,
|
|
45
|
+
fontSize: 24,
|
|
46
|
+
lineHeight: 1.5,
|
|
62
47
|
},
|
|
63
|
-
|
|
48
|
+
"body-ml": {
|
|
64
49
|
fontWeight: 400,
|
|
65
|
-
fontSize:
|
|
66
|
-
lineHeight:
|
|
50
|
+
fontSize: 20,
|
|
51
|
+
lineHeight: 1.5,
|
|
67
52
|
},
|
|
68
|
-
"
|
|
53
|
+
"body-ml-medium": {
|
|
69
54
|
fontWeight: 500,
|
|
70
|
-
fontSize:
|
|
71
|
-
lineHeight:
|
|
55
|
+
fontSize: 20,
|
|
56
|
+
lineHeight: 1.5,
|
|
72
57
|
},
|
|
73
|
-
"
|
|
74
|
-
fontWeight:
|
|
75
|
-
fontSize:
|
|
76
|
-
lineHeight:
|
|
58
|
+
"body-ml-semibold": {
|
|
59
|
+
fontWeight: 600,
|
|
60
|
+
fontSize: 20,
|
|
61
|
+
lineHeight: 1.5,
|
|
77
62
|
},
|
|
78
|
-
|
|
63
|
+
"body-m": {
|
|
79
64
|
fontWeight: 400,
|
|
80
|
-
fontSize:
|
|
81
|
-
lineHeight:
|
|
65
|
+
fontSize: 17,
|
|
66
|
+
lineHeight: 1.6,
|
|
82
67
|
},
|
|
83
|
-
"
|
|
68
|
+
"body-m-medium": {
|
|
84
69
|
fontWeight: 500,
|
|
85
|
-
fontSize:
|
|
86
|
-
lineHeight:
|
|
70
|
+
fontSize: 17,
|
|
71
|
+
lineHeight: 1.6,
|
|
87
72
|
},
|
|
88
|
-
"
|
|
89
|
-
fontWeight:
|
|
90
|
-
fontSize:
|
|
91
|
-
lineHeight:
|
|
73
|
+
"body-m-semibold": {
|
|
74
|
+
fontWeight: 600,
|
|
75
|
+
fontSize: 17,
|
|
76
|
+
lineHeight: 1.6,
|
|
92
77
|
},
|
|
93
|
-
|
|
78
|
+
"body-s": {
|
|
94
79
|
fontWeight: 400,
|
|
95
|
-
fontSize:
|
|
96
|
-
lineHeight:
|
|
80
|
+
fontSize: 15,
|
|
81
|
+
lineHeight: 1.7,
|
|
97
82
|
},
|
|
98
|
-
"
|
|
83
|
+
"body-s-medium": {
|
|
99
84
|
fontWeight: 500,
|
|
100
|
-
fontSize:
|
|
101
|
-
lineHeight:
|
|
85
|
+
fontSize: 15,
|
|
86
|
+
lineHeight: 1.7,
|
|
102
87
|
},
|
|
103
|
-
"
|
|
104
|
-
fontWeight:
|
|
105
|
-
fontSize:
|
|
106
|
-
lineHeight:
|
|
88
|
+
"body-s-semibold": {
|
|
89
|
+
fontWeight: 600,
|
|
90
|
+
fontSize: 15,
|
|
91
|
+
lineHeight: 1.7,
|
|
107
92
|
},
|
|
108
|
-
|
|
93
|
+
"body-xs": {
|
|
109
94
|
fontWeight: 400,
|
|
110
|
-
fontSize:
|
|
111
|
-
lineHeight:
|
|
95
|
+
fontSize: 13,
|
|
96
|
+
lineHeight: 1.7,
|
|
112
97
|
},
|
|
113
|
-
"
|
|
98
|
+
"body-xs-medium": {
|
|
114
99
|
fontWeight: 500,
|
|
115
|
-
fontSize:
|
|
116
|
-
lineHeight:
|
|
100
|
+
fontSize: 13,
|
|
101
|
+
lineHeight: 1.7,
|
|
117
102
|
},
|
|
118
|
-
"
|
|
119
|
-
fontWeight:
|
|
120
|
-
fontSize:
|
|
121
|
-
lineHeight:
|
|
103
|
+
"body-xs-semibold": {
|
|
104
|
+
fontWeight: 600,
|
|
105
|
+
fontSize: 13,
|
|
106
|
+
lineHeight: 1.7,
|
|
122
107
|
},
|
|
123
|
-
|
|
108
|
+
"body-2xs": {
|
|
124
109
|
fontWeight: 400,
|
|
125
|
-
fontSize:
|
|
126
|
-
lineHeight:
|
|
110
|
+
fontSize: 11,
|
|
111
|
+
lineHeight: 1.8,
|
|
127
112
|
},
|
|
128
|
-
"
|
|
113
|
+
"body-2xs-medium": {
|
|
129
114
|
fontWeight: 500,
|
|
130
|
-
fontSize:
|
|
131
|
-
lineHeight:
|
|
115
|
+
fontSize: 11,
|
|
116
|
+
lineHeight: 1.8,
|
|
132
117
|
},
|
|
133
|
-
"
|
|
134
|
-
fontWeight:
|
|
135
|
-
fontSize:
|
|
136
|
-
lineHeight:
|
|
118
|
+
"body-2xs-semibold": {
|
|
119
|
+
fontWeight: 600,
|
|
120
|
+
fontSize: 11,
|
|
121
|
+
lineHeight: 1.8,
|
|
137
122
|
},
|
|
138
123
|
};
|
|
@@ -1,26 +1,23 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export interface ICustomTypographyVariants {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"caption2.medium": React.CSSProperties;
|
|
22
|
-
"caption3.medium": React.CSSProperties;
|
|
23
|
-
"caption4.medium"?: React.CSSProperties;
|
|
3
|
+
"body-2xs": React.CSSProperties;
|
|
4
|
+
"body-2xs-medium": React.CSSProperties;
|
|
5
|
+
"body-2xs-semibold": React.CSSProperties;
|
|
6
|
+
"body-xs": React.CSSProperties;
|
|
7
|
+
"body-xs-medium": React.CSSProperties;
|
|
8
|
+
"body-xs-semibold": React.CSSProperties;
|
|
9
|
+
"body-s": React.CSSProperties;
|
|
10
|
+
"body-s-medium": React.CSSProperties;
|
|
11
|
+
"body-s-semibold": React.CSSProperties;
|
|
12
|
+
"body-m": React.CSSProperties;
|
|
13
|
+
"body-m-medium": React.CSSProperties;
|
|
14
|
+
"body-m-semibold": React.CSSProperties;
|
|
15
|
+
"body-ml": React.CSSProperties;
|
|
16
|
+
"body-ml-medium": React.CSSProperties;
|
|
17
|
+
"body-ml-semibold": React.CSSProperties;
|
|
18
|
+
"body-l": React.CSSProperties;
|
|
19
|
+
"body-l-medium": React.CSSProperties;
|
|
20
|
+
"body-l-semibold": React.CSSProperties;
|
|
24
21
|
}
|
|
25
22
|
declare module '@mui/material/styles' {
|
|
26
23
|
interface TypographyVariants extends ICustomTypographyVariants {
|
|
@@ -39,33 +36,23 @@ declare module '@mui/material/Typography' {
|
|
|
39
36
|
subtitle2: false;
|
|
40
37
|
button: false;
|
|
41
38
|
caption: false;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
'caption3.semiBold': true;
|
|
61
|
-
'caption4.semiBold': true;
|
|
62
|
-
'caption1.bold': true;
|
|
63
|
-
'caption2.bold': true;
|
|
64
|
-
'caption3.bold': true;
|
|
65
|
-
'caption4.bold': true;
|
|
66
|
-
'caption1.medium': true;
|
|
67
|
-
'caption2.medium': true;
|
|
68
|
-
'caption3.medium': true;
|
|
69
|
-
'caption4.medium': true;
|
|
39
|
+
"body-2xs": true;
|
|
40
|
+
"body-2xs-medium": true;
|
|
41
|
+
"body-2xs-semibold": true;
|
|
42
|
+
"body-xs": true;
|
|
43
|
+
"body-xs-medium": true;
|
|
44
|
+
"body-xs-semibold": true;
|
|
45
|
+
"body-s": true;
|
|
46
|
+
"body-s-medium": true;
|
|
47
|
+
"body-s-semibold": true;
|
|
48
|
+
"body-m": true;
|
|
49
|
+
"body-m-medium": true;
|
|
50
|
+
"body-m-semibold": true;
|
|
51
|
+
"body-ml": true;
|
|
52
|
+
"body-ml-medium": true;
|
|
53
|
+
"body-ml-semibold": true;
|
|
54
|
+
"body-l": true;
|
|
55
|
+
"body-l-medium": true;
|
|
56
|
+
"body-l-semibold": true;
|
|
70
57
|
}
|
|
71
58
|
}
|