kamotive_ui 1.2.4 → 1.2.6
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/Intro/Welcome.module.css +2 -2
- package/dist/components/ColorPicker/ColorPicker.module.css +3 -3
- package/dist/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.js +10 -10
- package/dist/components/Dropdown/Dropdown.module.css +1 -1
- package/dist/components/FileAttach/FileAttach.js +3 -2
- package/dist/components/Input/Input.js +4 -4
- package/dist/components/Input/Input.module.css +1 -1
- package/dist/components/ProgressBar/ProgressBar.module.css +1 -1
- package/dist/components/Tabs/Tabs.module.css +1 -1
- package/dist/components/Tag/Tag.module.css +1 -1
- package/dist/components/ToggleButton/ToggleButton.module.css +1 -1
- package/dist/components/Typography/Typography.module.css +25 -83
- package/dist/components/Typography/enums.d.ts +4 -0
- package/dist/components/Typography/enums.js +4 -0
- package/dist/fonts.css +4 -3
- package/dist/types/index.d.ts +10 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.h1{
|
|
2
|
-
font-family:
|
|
2
|
+
font-family: var(--font-family);
|
|
3
3
|
font-style: normal;
|
|
4
4
|
font-weight: 600;
|
|
5
5
|
line-height: 16.5px;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
margin: 20px;
|
|
9
9
|
}
|
|
10
10
|
.body {
|
|
11
|
-
font-family:
|
|
11
|
+
font-family: var(--font-family);
|
|
12
12
|
font-style: normal;
|
|
13
13
|
font-weight: 400;
|
|
14
14
|
line-height: 16.5px;
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
}
|
|
164
164
|
/* Для всех инпутов в пикере */
|
|
165
165
|
:global(.w-color-chrome) :global(.w-color-editable-input) input {
|
|
166
|
-
font-family:
|
|
166
|
+
font-family: var(--font-family) !important;
|
|
167
167
|
font-style: normal !important;
|
|
168
168
|
font-weight: 400 !important;
|
|
169
169
|
line-height: 14px !important;
|
|
@@ -204,7 +204,7 @@ border-left: none !important;
|
|
|
204
204
|
}
|
|
205
205
|
/* Для лейблов */
|
|
206
206
|
:global(.w-color-chrome-fields) :global(.w-color-editable-input) label {
|
|
207
|
-
font-family:
|
|
207
|
+
font-family: var(--font-family) !important;
|
|
208
208
|
font-style: normal !important;
|
|
209
209
|
font-weight: 400 !important;
|
|
210
210
|
line-height: 16.5px !important;
|
|
@@ -240,7 +240,7 @@ border-left: none !important;
|
|
|
240
240
|
.hex > :global(.w-color-editable-input) > input {
|
|
241
241
|
/* padding: 0 !important; */
|
|
242
242
|
font-size: 12px !important;
|
|
243
|
-
font-family:
|
|
243
|
+
font-family: var(--font-family) !important;
|
|
244
244
|
padding: 5px !important;
|
|
245
245
|
width: 70px !important;
|
|
246
246
|
height: 45px !important;
|
|
@@ -8,7 +8,7 @@ export interface DropdownListItemProps {
|
|
|
8
8
|
getOptionLabel?: ((option: TOptions) => string);
|
|
9
9
|
size: 'md' | 'lg';
|
|
10
10
|
selectedItem: TOptions | null;
|
|
11
|
-
|
|
11
|
+
variant?: 'icons' | 'text';
|
|
12
12
|
onChange: (event: React.MouseEvent<HTMLElement>, item: TOptions | null) => void;
|
|
13
13
|
isActive?: boolean;
|
|
14
14
|
activeIndex?: number;
|
|
@@ -51,7 +51,7 @@ function checkItem(item, getOptionLabel, disabled, isDivider) {
|
|
|
51
51
|
return null;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
export const DropdownListItem = ({ item, getOptionLabel, size = 'md', selectedItem,
|
|
54
|
+
export const DropdownListItem = ({ item, getOptionLabel, size = 'md', selectedItem, variant, onChange, isActive, activeIndex, index, }) => {
|
|
55
55
|
var _a;
|
|
56
56
|
const handleItemClick = useCallback((event) => {
|
|
57
57
|
event.preventDefault();
|
|
@@ -65,11 +65,11 @@ export const DropdownListItem = ({ item, getOptionLabel, size = 'md', selectedIt
|
|
|
65
65
|
[styles['item-block--disabled']]: item === null || item === void 0 ? void 0 : item.disabled,
|
|
66
66
|
[styles['item-block--active']]: isActive,
|
|
67
67
|
});
|
|
68
|
-
const itemBlock = classNames(styles[`item-block`], styles[`item-block-${
|
|
68
|
+
const itemBlock = classNames(styles[`item-block`], styles[`item-block-${variant}`], { [styles[`item-block-${variant}--selected`]]: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.value) === (item === null || item === void 0 ? void 0 : item.value) }, { [styles['item-block--disabled']]: item === null || item === void 0 ? void 0 : item.disabled });
|
|
69
69
|
return (React.createElement("div", { className: itemContainerClasses, onClick: handleItemClick },
|
|
70
70
|
React.createElement("div", { className: itemClassess },
|
|
71
71
|
React.createElement("div", { className: itemBlock },
|
|
72
|
-
|
|
72
|
+
variant === 'icons' &&
|
|
73
73
|
(item === null || item === void 0 ? void 0 : item.icon) &&
|
|
74
74
|
React.cloneElement(item.icon, {
|
|
75
75
|
strokeWidth: size === 'lg' ? '0.5' : size === 'md' ? '0.3' : '0.0',
|
|
@@ -83,7 +83,7 @@ export const DropdownListItem = ({ item, getOptionLabel, size = 'md', selectedIt
|
|
|
83
83
|
return (React.createElement(DropdownListItem, { key: (_a = child === null || child === void 0 ? void 0 : child.key) !== null && _a !== void 0 ? _a : childIndex, item: child, getOptionLabel: getOptionLabel, size: size, selectedItem: selectedItem, onChange: onChange, isActive: activeIndex === index, activeIndex: activeIndex, index: childIndex }));
|
|
84
84
|
})))));
|
|
85
85
|
};
|
|
86
|
-
export const Dropdown = ({ id, label, placeholder, size = 'lg', options, getOptionLabel, value, defaultValue,
|
|
86
|
+
export const Dropdown = ({ id, label, placeholder, size = 'lg', options, getOptionLabel, value, defaultValue, variant = 'text', style, className, disabled = false, readOnly = false, isOpened = false, noOptionsText = 'Нет вариатов для выбора', isLeftLabel = false, error = false, helperText, onChange, onClose, clearable = true, required = false, isDivider = false, }) => {
|
|
87
87
|
var _a;
|
|
88
88
|
const [isOpen, setIsOpen] = useState(isOpened);
|
|
89
89
|
const [modifiedOptions, setModifiedOptions] = useState([]);
|
|
@@ -170,13 +170,13 @@ export const Dropdown = ({ id, label, placeholder, size = 'lg', options, getOpti
|
|
|
170
170
|
setErrorInputHelperText(helperText !== null && helperText !== void 0 ? helperText : 'Поле обязательно для заполнения');
|
|
171
171
|
}
|
|
172
172
|
};
|
|
173
|
-
const wrapperClassess = classNames({
|
|
173
|
+
const wrapperClassess = classNames(className, {
|
|
174
174
|
[styles['dropdown--container']]: !isLeftLabel,
|
|
175
175
|
[styles['dropdown--container-left']]: isLeftLabel,
|
|
176
176
|
[styles['dropdown--container-label']]: label && !isLeftLabel && !required,
|
|
177
177
|
[styles['dropdown--container-helperText']]: errorInput,
|
|
178
178
|
});
|
|
179
|
-
const buttonClassess = classNames(styles.button,
|
|
179
|
+
const buttonClassess = classNames(styles.button, styles[`button--${size}`], {
|
|
180
180
|
[styles['button-item--selected']]: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.value) && !disabled,
|
|
181
181
|
[styles['button--readOnly']]: readOnly,
|
|
182
182
|
[styles['button--disabled']]: disabled,
|
|
@@ -193,12 +193,12 @@ export const Dropdown = ({ id, label, placeholder, size = 'lg', options, getOpti
|
|
|
193
193
|
const selectedItemClassess = classNames({
|
|
194
194
|
[styles['item-selected']]: selectedItem,
|
|
195
195
|
[styles['item-placeholder']]: !selectedItem && ((placeholder !== null && placeholder !== void 0 ? placeholder : label) || (!placeholder && !label)),
|
|
196
|
-
[styles['button--icons--item-selected']]:
|
|
196
|
+
[styles['button--icons--item-selected']]: variant === 'icons' && (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.icon),
|
|
197
197
|
});
|
|
198
198
|
const getDropdownMenu = () => {
|
|
199
199
|
const menu = isOpen && (React.createElement("div", { className: dropdownClassess }, modifiedOptions && modifiedOptions.length > 0 ? (modifiedOptions.map((modifiedOption, index) => {
|
|
200
200
|
var _a;
|
|
201
|
-
return (React.createElement(DropdownListItem, { key: (_a = modifiedOption === null || modifiedOption === void 0 ? void 0 : modifiedOption.key) !== null && _a !== void 0 ? _a : index, item: modifiedOption, getOptionLabel: getOptionLabel, size: size, selectedItem: selectedItem,
|
|
201
|
+
return (React.createElement(DropdownListItem, { key: (_a = modifiedOption === null || modifiedOption === void 0 ? void 0 : modifiedOption.key) !== null && _a !== void 0 ? _a : index, item: modifiedOption, getOptionLabel: getOptionLabel, size: size, selectedItem: selectedItem, variant: variant, onChange: onChangeHandler, isActive: activeIndex === index, activeIndex: activeIndex, index: index }));
|
|
202
202
|
})) : (React.createElement("div", { className: styles['no-options'] }, noOptionsText))));
|
|
203
203
|
return isOpen ? menu : null;
|
|
204
204
|
};
|
|
@@ -258,11 +258,11 @@ export const Dropdown = ({ id, label, placeholder, size = 'lg', options, getOpti
|
|
|
258
258
|
useEffect(() => {
|
|
259
259
|
setErrorInput(error);
|
|
260
260
|
}, [error]);
|
|
261
|
-
return (React.createElement("div", { id: id, className: wrapperClassess, ref: containerRef, style: { width: isLeftLabel && containerWidth ? `${containerWidth}px` : '100%' } },
|
|
261
|
+
return (React.createElement("div", { id: id, className: wrapperClassess, ref: containerRef, style: style ? style : { width: isLeftLabel && containerWidth ? `${containerWidth}px` : '100%' } },
|
|
262
262
|
label && (React.createElement(Typography, { variant: "Caption", className: labelClasses }, label)),
|
|
263
263
|
React.createElement("button", { className: buttonClassess, onClick: readOnly ? undefined : handleToggle, disabled: disabled, tabIndex: 0, onKeyDown: handleKeyDown },
|
|
264
264
|
React.createElement("div", { className: selectedItemClassess },
|
|
265
|
-
|
|
265
|
+
variant === 'icons' &&
|
|
266
266
|
(selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.icon) &&
|
|
267
267
|
React.cloneElement(selectedItem.icon, {
|
|
268
268
|
strokeWidth: size === 'lg' ? '0.5' : size === 'md' ? '0.3' : '0.0',
|
|
@@ -4,11 +4,12 @@ import styles from './FileAttach.module.css';
|
|
|
4
4
|
import { Typography } from '../Typography/Typography';
|
|
5
5
|
import { IconUpload } from '../../Icons';
|
|
6
6
|
import { Loader } from '../Loader/Loader';
|
|
7
|
+
import classNames from 'classnames';
|
|
7
8
|
export const FileAttach = ({ maxFileSize = 2, maxFileCount = 10, acceptedFormats = {
|
|
8
9
|
'image/*': ['.png', '.gif', '.jpeg', '.jpg'],
|
|
9
10
|
'application/pdf': ['.pdf'],
|
|
10
11
|
'application/msword': ['.doc', '.docx'],
|
|
11
|
-
}, addedFiles, setAddedFiles, disabled = false, }) => {
|
|
12
|
+
}, addedFiles, setAddedFiles, disabled = false, className, style, }) => {
|
|
12
13
|
const [errorFiles, setErrorFiles] = useState([]);
|
|
13
14
|
const fileValidator = (file) => {
|
|
14
15
|
if (file.size > maxFileSize * 1024 * 1024 * 1024) {
|
|
@@ -59,7 +60,7 @@ export const FileAttach = ({ maxFileSize = 2, maxFileCount = 10, acceptedFormats
|
|
|
59
60
|
}
|
|
60
61
|
return formats.join(', ');
|
|
61
62
|
};
|
|
62
|
-
return (React.createElement("section", { className: styles['fileAttach'] },
|
|
63
|
+
return (React.createElement("section", { className: classNames(styles['fileAttach'], className), style: style },
|
|
63
64
|
React.createElement("div", Object.assign({}, getRootProps({ className: `${styles['dropzone']} ${disabled ? styles['disabled'] : ''}` })),
|
|
64
65
|
React.createElement("input", Object.assign({}, getInputProps())),
|
|
65
66
|
React.createElement(IconUpload, { htmlColor: disabled ? 'var(--grey-medium)' : 'var(--icons-grey)' }),
|
|
@@ -6,7 +6,7 @@ import { Typography } from '../Typography/Typography';
|
|
|
6
6
|
/**
|
|
7
7
|
* Компонент Input для создания текстовых полей ввода различных стилей и размеров.
|
|
8
8
|
*/
|
|
9
|
-
export const Input = ({ id, label, placeholder, size = 'lg', value, className, multiline = false, rows = 4, resize = false, disabled = false, readOnly = false, isLeftLabel = false, icon, error = false, helperText, onChange, required = false, }) => {
|
|
9
|
+
export const Input = ({ id, label, placeholder, size = 'lg', value, style, className, multiline = false, rows = 4, resize = false, disabled = false, readOnly = false, isLeftLabel = false, icon, error = false, helperText, onChange, required = false, }) => {
|
|
10
10
|
const [inputLabel, setInputLabel] = useState(label);
|
|
11
11
|
const handleChange = (event) => {
|
|
12
12
|
event.stopPropagation();
|
|
@@ -21,12 +21,12 @@ export const Input = ({ id, label, placeholder, size = 'lg', value, className, m
|
|
|
21
21
|
setInputLabel('');
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
const wrapperClassess = classNames(styles['wrapper--input'], {
|
|
24
|
+
const wrapperClassess = classNames(styles['wrapper--input'], className, {
|
|
25
25
|
[styles['wrapper--left']]: isLeftLabel,
|
|
26
26
|
[styles['wrapper--input-label']]: label && !isLeftLabel && !required,
|
|
27
27
|
[styles['wrapper--input-helperText']]: error,
|
|
28
28
|
});
|
|
29
|
-
const inputClassess = classNames(styles.input, styles[size],
|
|
29
|
+
const inputClassess = classNames(styles.input, styles[size], {
|
|
30
30
|
[styles['input--error']]: error,
|
|
31
31
|
[styles['readOnly']]: readOnly,
|
|
32
32
|
[styles['input--withIcon']]: icon,
|
|
@@ -40,7 +40,7 @@ export const Input = ({ id, label, placeholder, size = 'lg', value, className, m
|
|
|
40
40
|
[styles['label--left']]: isLeftLabel,
|
|
41
41
|
[styles['label--required']]: required,
|
|
42
42
|
});
|
|
43
|
-
return (React.createElement("div", { className: wrapperClassess },
|
|
43
|
+
return (React.createElement("div", { className: wrapperClassess, style: style },
|
|
44
44
|
inputLabel && (React.createElement(Typography, { variant: "Caption", className: labelClasses }, inputLabel)),
|
|
45
45
|
icon && React.createElement("div", { className: styles.icon }, icon),
|
|
46
46
|
multiline ? (React.createElement("textarea", { id: id, className: inputClassess, value: value, placeholder: placeholder, onChange: handleChange, disabled: disabled, style: { height: `${rows * 20}px` } })) : (React.createElement("input", { id: id, className: inputClassess, value: value, placeholder: placeholder, onChange: handleChange, disabled: disabled, readOnly: readOnly })),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
.typography--variant-Heading1 {
|
|
3
|
-
font-family: var(--font-family
|
|
3
|
+
font-family: var(--font-family);
|
|
4
4
|
font-size: var(--font-size-48);
|
|
5
5
|
font-weight: var(--font-weight-bold);
|
|
6
6
|
line-height: var(--lineHeight-48);
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
text-decoration: none;
|
|
9
9
|
}
|
|
10
10
|
.typography--variant-Heading2 {
|
|
11
|
-
font-family: var(--font-family
|
|
11
|
+
font-family: var(--font-family);
|
|
12
12
|
font-size: var(--font-size-36);
|
|
13
13
|
font-weight: var(--font-weight-bold);
|
|
14
14
|
line-height: var(--lineHeight-36);
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
text-decoration: none;
|
|
17
17
|
}
|
|
18
18
|
.typography--variant-Heading3 {
|
|
19
|
-
font-family: var(--font-family
|
|
19
|
+
font-family: var(--font-family);
|
|
20
20
|
font-size: var(--font-size-24);
|
|
21
21
|
font-weight: var(--font-weight-bold);
|
|
22
22
|
line-height: var(--lineHeight-24);
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
text-decoration: none;
|
|
25
25
|
}
|
|
26
26
|
.typography--variant-Heading4 {
|
|
27
|
-
font-family: var(--font-family
|
|
27
|
+
font-family: var(--font-family);
|
|
28
28
|
font-size: var(--font-size-20);
|
|
29
29
|
font-weight: var(--font-weight-bold);
|
|
30
30
|
line-height: var(--lineHeight-20);
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
text-decoration: none;
|
|
33
33
|
}
|
|
34
34
|
.typography--variant-Subheading1 {
|
|
35
|
-
font-family: var(--font-family
|
|
35
|
+
font-family: var(--font-family);
|
|
36
36
|
font-size: var(--font-size-36);
|
|
37
37
|
font-weight: var(--font-weight-medium);
|
|
38
38
|
line-height: var(--lineHeight-36);
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
text-decoration: none;
|
|
41
41
|
}
|
|
42
42
|
.typography--variant-Subheading2 {
|
|
43
|
-
font-family: var(--font-family
|
|
43
|
+
font-family: var(--font-family);
|
|
44
44
|
font-size: var(--font-size-24);
|
|
45
45
|
font-weight: var(--font-weight-regular);
|
|
46
46
|
line-height: var(--lineHeight-24);
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
text-decoration: none;
|
|
49
49
|
}
|
|
50
50
|
.typography--variant-Subheading2-Medium {
|
|
51
|
-
font-family: var(--font-family
|
|
51
|
+
font-family: var(--font-family);
|
|
52
52
|
font-size: var(--font-size-24);
|
|
53
53
|
font-weight: var(--font-weight-medium);
|
|
54
54
|
line-height: var(--lineHeight-24);
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
text-decoration: none;
|
|
57
57
|
}
|
|
58
58
|
.typography--variant-Subheading3 {
|
|
59
|
-
font-family: var(--font-family
|
|
59
|
+
font-family: var(--font-family);
|
|
60
60
|
font-size: var(--font-size-20);
|
|
61
61
|
font-weight: var(--font-weight-regular);
|
|
62
62
|
line-height: var(--lineHeight-20);
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
text-decoration: none;
|
|
65
65
|
}
|
|
66
66
|
.typography--variant-Subheading3-Medium {
|
|
67
|
-
font-family: var(--font-family
|
|
67
|
+
font-family: var(--font-family);
|
|
68
68
|
font-size: var(--font-size-20);
|
|
69
69
|
font-weight: var(--font-weight-medium);
|
|
70
70
|
line-height: var(--lineHeight-20);
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
text-decoration: none;
|
|
73
73
|
}
|
|
74
74
|
.typography--variant-Body {
|
|
75
|
-
font-family: var(--font-family
|
|
75
|
+
font-family: var(--font-family);
|
|
76
76
|
font-size: var(--font-size-18);
|
|
77
77
|
font-weight: var(--font-weight-regular);
|
|
78
78
|
line-height: var(--lineHeight-18);
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
text-decoration: none;
|
|
81
81
|
}
|
|
82
82
|
.typography--variant-Body-Medium {
|
|
83
|
-
font-family: var(--font-family
|
|
83
|
+
font-family: var(--font-family);
|
|
84
84
|
font-size: var(--font-size-18);
|
|
85
85
|
font-weight: var(--font-weight-meduim);
|
|
86
86
|
line-height: var(--lineHeight-18);
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
text-decoration: none;
|
|
89
89
|
}
|
|
90
90
|
.typography--variant-Body-Bold{
|
|
91
|
-
font-family: var(--font-family
|
|
91
|
+
font-family: var(--font-family);
|
|
92
92
|
font-size: var(--font-size-18);
|
|
93
93
|
font-weight: var(--font-weight-bold);
|
|
94
94
|
line-height: var(--lineHeight-18);
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
text-decoration: none;
|
|
97
97
|
}
|
|
98
98
|
.typography--variant-Body1-Light {
|
|
99
|
-
font-family: var(--font-family
|
|
99
|
+
font-family: var(--font-family);
|
|
100
100
|
font-size: var(--font-size-16);
|
|
101
101
|
font-weight: var(--font-weight-light);
|
|
102
102
|
line-height: var(--lineHeight-16);
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
text-decoration: none;
|
|
105
105
|
}
|
|
106
106
|
.typography--variant-Body1 {
|
|
107
|
-
font-family: var(--font-family
|
|
107
|
+
font-family: var(--font-family);
|
|
108
108
|
font-size: var(--font-size-16);
|
|
109
109
|
font-weight: var(--font-weight-regular);
|
|
110
110
|
line-height: var(--lineHeight-16);
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
text-decoration: none;
|
|
113
113
|
}
|
|
114
114
|
.typography--variant-Body1-Medium {
|
|
115
|
-
font-family: var(--font-family
|
|
115
|
+
font-family: var(--font-family);
|
|
116
116
|
font-size: var(--font-size-16);
|
|
117
117
|
font-weight: var(--font-weight-medium);
|
|
118
118
|
line-height: var(--lineHeight-16);
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
text-decoration: none;
|
|
121
121
|
}
|
|
122
122
|
.typography--variant-Body1-SemiBold{
|
|
123
|
-
font-family: var(--font-family
|
|
123
|
+
font-family: var(--font-family);
|
|
124
124
|
font-size: var(--font-size-16);
|
|
125
125
|
font-weight: var(--font-weight-semiBold);
|
|
126
126
|
line-height: var(--lineHeight-16);
|
|
@@ -128,31 +128,15 @@
|
|
|
128
128
|
text-decoration: none;
|
|
129
129
|
}
|
|
130
130
|
.typography--variant-Body1-Bold{
|
|
131
|
-
font-family: var(--font-family
|
|
131
|
+
font-family: var(--font-family);
|
|
132
132
|
font-size: var(--font-size-16);
|
|
133
133
|
font-weight: var(--font-weight-bold);
|
|
134
134
|
line-height: var(--lineHeight-16);
|
|
135
135
|
letter-spacing: var(--letterSpacing);
|
|
136
136
|
text-decoration: none;
|
|
137
137
|
}
|
|
138
|
-
.typography--variant-Body1Mono-Regular {
|
|
139
|
-
font-family: var(--font-family-secondary);
|
|
140
|
-
font-size: var(--font-size-16);
|
|
141
|
-
font-weight: var(--font-weight-regular);
|
|
142
|
-
line-height: var(--lineHeight-16);
|
|
143
|
-
letter-spacing: var(--letterSpacing);
|
|
144
|
-
text-decoration: none;
|
|
145
|
-
}
|
|
146
|
-
.typography--variant-Body1Mono-Bold {
|
|
147
|
-
font-family: var(--font-family-secondary);
|
|
148
|
-
font-size: var(--font-size-16);
|
|
149
|
-
font-weight: var(--font-weight-semiBold);
|
|
150
|
-
line-height: var(--lineHeight-16);
|
|
151
|
-
letter-spacing: var(--letterSpacing);
|
|
152
|
-
text-decoration: none;
|
|
153
|
-
}
|
|
154
138
|
.typography--variant-Body2-Light {
|
|
155
|
-
font-family: var(--font-family
|
|
139
|
+
font-family: var(--font-family);
|
|
156
140
|
font-size: var(--font-size-14);
|
|
157
141
|
font-weight: var(--font-weight-light);
|
|
158
142
|
line-height: var(--lineHeight-14);
|
|
@@ -160,7 +144,7 @@
|
|
|
160
144
|
text-decoration: none;
|
|
161
145
|
}
|
|
162
146
|
.typography--variant-Body2 {
|
|
163
|
-
font-family: var(--font-family
|
|
147
|
+
font-family: var(--font-family);
|
|
164
148
|
font-size: var(--font-size-14);
|
|
165
149
|
font-weight: var(--font-weight-regular);
|
|
166
150
|
line-height: var(--lineHeight-14);
|
|
@@ -168,7 +152,7 @@
|
|
|
168
152
|
text-decoration: none;
|
|
169
153
|
}
|
|
170
154
|
.typography--variant-Body2-Medium {
|
|
171
|
-
font-family: var(--font-family
|
|
155
|
+
font-family: var(--font-family);
|
|
172
156
|
font-size: var(--font-size-14);
|
|
173
157
|
font-weight: var(--font-weight-meduim);
|
|
174
158
|
line-height: var(--lineHeight-14);
|
|
@@ -176,7 +160,7 @@
|
|
|
176
160
|
text-decoration: none;
|
|
177
161
|
}
|
|
178
162
|
.typography--variant-Body2-SemiBold{
|
|
179
|
-
font-family: var(--font-family
|
|
163
|
+
font-family: var(--font-family);
|
|
180
164
|
font-size: var(--font-size-14);
|
|
181
165
|
font-weight: var(--font-weight-semiBold);
|
|
182
166
|
line-height: var(--lineHeight-14);
|
|
@@ -184,23 +168,7 @@
|
|
|
184
168
|
text-decoration: none;
|
|
185
169
|
}
|
|
186
170
|
.typography--variant-Body2-Bold{
|
|
187
|
-
font-family: var(--font-family
|
|
188
|
-
font-size: var(--font-size-14);
|
|
189
|
-
font-weight: var(--font-weight-bold);
|
|
190
|
-
line-height: var(--lineHeight-14);
|
|
191
|
-
letter-spacing: var(--letterSpacing);
|
|
192
|
-
text-decoration: none;
|
|
193
|
-
}
|
|
194
|
-
.typography--variant-Body2Mono-Medium {
|
|
195
|
-
font-family: var(--font-family-secondary);
|
|
196
|
-
font-size: var(--font-size-14);
|
|
197
|
-
font-weight: var(--font-weight-medium);
|
|
198
|
-
line-height: var(--lineHeight-14);
|
|
199
|
-
letter-spacing: var(--letterSpacing);
|
|
200
|
-
text-decoration: none;
|
|
201
|
-
}
|
|
202
|
-
.typography--variant-Body2Mono-Bold {
|
|
203
|
-
font-family: var(--font-family-secondary);
|
|
171
|
+
font-family: var(--font-family);
|
|
204
172
|
font-size: var(--font-size-14);
|
|
205
173
|
font-weight: var(--font-weight-bold);
|
|
206
174
|
line-height: var(--lineHeight-14);
|
|
@@ -208,7 +176,7 @@
|
|
|
208
176
|
text-decoration: none;
|
|
209
177
|
}
|
|
210
178
|
.typography--variant-Caption {
|
|
211
|
-
font-family: var(--font-family
|
|
179
|
+
font-family: var(--font-family);
|
|
212
180
|
font-size: var(--font-size-12);
|
|
213
181
|
font-weight: var(--font-weight-regular);
|
|
214
182
|
line-height: var(--lineHeight-12);
|
|
@@ -216,7 +184,7 @@
|
|
|
216
184
|
text-decoration: none;
|
|
217
185
|
}
|
|
218
186
|
.typography--variant-Caption-Medium {
|
|
219
|
-
font-family: var(--font-family
|
|
187
|
+
font-family: var(--font-family);
|
|
220
188
|
font-size: var(--font-size-12);
|
|
221
189
|
font-weight: var(--font-weight-meduim);
|
|
222
190
|
line-height: var(--lineHeight-12);
|
|
@@ -224,36 +192,10 @@
|
|
|
224
192
|
text-decoration: none;
|
|
225
193
|
}
|
|
226
194
|
.typography--variant-Caption-Bold{
|
|
227
|
-
font-family: var(--font-family
|
|
228
|
-
font-size: var(--font-size-12);
|
|
229
|
-
font-weight: var(--font-weight-bold);
|
|
230
|
-
line-height: var(--lineHeight-12);
|
|
231
|
-
letter-spacing: var(--letterSpacing);
|
|
232
|
-
text-decoration: none;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
.typography--variant-CaptionMono {
|
|
236
|
-
font-family: var(--font-family-secondary);
|
|
237
|
-
font-size: var(--font-size-12);
|
|
238
|
-
font-weight: var(--font-weight-regular);
|
|
239
|
-
line-height: var(--lineHeight-12);
|
|
240
|
-
letter-spacing: var(--letterSpacing);
|
|
241
|
-
text-decoration: none;
|
|
242
|
-
}
|
|
243
|
-
.typography--variant-CaptionMono-Medium {
|
|
244
|
-
font-family: var(--font-family-secondary);
|
|
245
|
-
font-size: var(--font-size-12);
|
|
246
|
-
font-weight: var(--font-weight-meduim);
|
|
247
|
-
line-height: var(--lineHeight-12);
|
|
248
|
-
letter-spacing: var(--letterSpacing);
|
|
249
|
-
text-decoration: none;
|
|
250
|
-
}
|
|
251
|
-
.typography--variant-CaptionMono-Bold{
|
|
252
|
-
font-family: var(--font-family-secondary);
|
|
195
|
+
font-family: var(--font-family);
|
|
253
196
|
font-size: var(--font-size-12);
|
|
254
197
|
font-weight: var(--font-weight-bold);
|
|
255
198
|
line-height: var(--lineHeight-12);
|
|
256
199
|
letter-spacing: var(--letterSpacing);
|
|
257
200
|
text-decoration: none;
|
|
258
201
|
}
|
|
259
|
-
|
|
@@ -5,14 +5,18 @@ export declare enum ETypographyVariants {
|
|
|
5
5
|
'Heading4' = "Heading4",
|
|
6
6
|
'Subheading1' = "Subheading1",
|
|
7
7
|
'Subheading2' = "Subheading2",
|
|
8
|
+
'Subheading2-Medium' = "Subheading2-Medium",
|
|
8
9
|
'Subheading3' = "Subheading3",
|
|
10
|
+
'Subheading3-Medium' = "Subheading3-Medium",
|
|
9
11
|
'Body' = "Body",
|
|
10
12
|
'Body-Medium' = "Body-Medium",
|
|
11
13
|
'Body-Bold' = "Body-Bold",
|
|
14
|
+
'Body1-Light' = "Body1-Light",
|
|
12
15
|
'Body1' = "Body1",
|
|
13
16
|
'Body1-Medium' = "Body1-Medium",
|
|
14
17
|
'Body1-SemiBold' = "Body1-SemiBold",
|
|
15
18
|
'Body1-Bold' = "Body1-Bold",
|
|
19
|
+
'Body2-Light' = "Body2-Light",
|
|
16
20
|
'Body2' = "Body2",
|
|
17
21
|
'Body2-Medium' = "Body2-Medium",
|
|
18
22
|
'Body2-SemiBold' = "Body2-SemiBold",
|
|
@@ -6,14 +6,18 @@ export var ETypographyVariants;
|
|
|
6
6
|
ETypographyVariants["Heading4"] = "Heading4";
|
|
7
7
|
ETypographyVariants["Subheading1"] = "Subheading1";
|
|
8
8
|
ETypographyVariants["Subheading2"] = "Subheading2";
|
|
9
|
+
ETypographyVariants["Subheading2-Medium"] = "Subheading2-Medium";
|
|
9
10
|
ETypographyVariants["Subheading3"] = "Subheading3";
|
|
11
|
+
ETypographyVariants["Subheading3-Medium"] = "Subheading3-Medium";
|
|
10
12
|
ETypographyVariants["Body"] = "Body";
|
|
11
13
|
ETypographyVariants["Body-Medium"] = "Body-Medium";
|
|
12
14
|
ETypographyVariants["Body-Bold"] = "Body-Bold";
|
|
15
|
+
ETypographyVariants["Body1-Light"] = "Body1-Light";
|
|
13
16
|
ETypographyVariants["Body1"] = "Body1";
|
|
14
17
|
ETypographyVariants["Body1-Medium"] = "Body1-Medium";
|
|
15
18
|
ETypographyVariants["Body1-SemiBold"] = "Body1-SemiBold";
|
|
16
19
|
ETypographyVariants["Body1-Bold"] = "Body1-Bold";
|
|
20
|
+
ETypographyVariants["Body2-Light"] = "Body2-Light";
|
|
17
21
|
ETypographyVariants["Body2"] = "Body2";
|
|
18
22
|
ETypographyVariants["Body2-Medium"] = "Body2-Medium";
|
|
19
23
|
ETypographyVariants["Body2-SemiBold"] = "Body2-SemiBold";
|
package/dist/fonts.css
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
@import url('https://fonts.googleapis.com/css2?family=
|
|
1
|
+
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
|
|
2
2
|
:root {
|
|
3
|
-
--font-family
|
|
4
|
-
--font-family-secondary: 'Quicksand', sans-serif;
|
|
3
|
+
--font-family: 'Montserrat', sans-serif;
|
|
5
4
|
|
|
6
5
|
--font-size-48: 48px;
|
|
7
6
|
--font-size-36: 36px;
|
|
@@ -23,6 +22,8 @@
|
|
|
23
22
|
--lineHeight-12: 16px;
|
|
24
23
|
--lineHeight-10: 14px;
|
|
25
24
|
|
|
25
|
+
--font-weight-black: 900;
|
|
26
|
+
--font-weight-extraBold: 800;
|
|
26
27
|
--font-weight-bold: 700;
|
|
27
28
|
--font-weight-semiBold: 600;
|
|
28
29
|
--font-weight-medium:500;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -45,6 +45,8 @@ export interface InputProps {
|
|
|
45
45
|
size?: 'sm' | 'md' | 'lg';
|
|
46
46
|
/** Знчение */
|
|
47
47
|
value?: string;
|
|
48
|
+
/** Стили передаваемые напрямую */
|
|
49
|
+
style?: CSSProperties;
|
|
48
50
|
/** Дополнительный класс */
|
|
49
51
|
className?: string;
|
|
50
52
|
/** Многострочное поле */
|
|
@@ -134,8 +136,10 @@ export interface DropdownProps {
|
|
|
134
136
|
value?: string | number | TOptions | null;
|
|
135
137
|
/** Значение по умолчанию */
|
|
136
138
|
defaultValue?: string | number | TOptions | null;
|
|
137
|
-
/**
|
|
138
|
-
|
|
139
|
+
/** Вариaнты выпадающего списка(текст + иконка, текст)' */
|
|
140
|
+
variant?: 'icons' | 'text';
|
|
141
|
+
/** Стили передаваемые напрямую */
|
|
142
|
+
style?: CSSProperties;
|
|
139
143
|
/**Дополнительный класс */
|
|
140
144
|
className?: string;
|
|
141
145
|
/** Заблокированный */
|
|
@@ -307,4 +311,8 @@ export interface FileAttachProps {
|
|
|
307
311
|
setAddedFiles: (addedFiles: File[]) => void;
|
|
308
312
|
/**Заблокировано добавление файлов*/
|
|
309
313
|
disabled?: boolean;
|
|
314
|
+
/** Дополнительный класс */
|
|
315
|
+
className?: string;
|
|
316
|
+
/** Стили передаваемые напрямую */
|
|
317
|
+
style?: CSSProperties;
|
|
310
318
|
}
|