dt-shared-front 1.0.0 → 1.0.2
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/auto-complete/auto-complete.d.ts +26 -0
- package/dist/components/auto-complete/index.d.ts +1 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +12 -0
- package/dist/components/breadcrumbs/index.d.ts +1 -0
- package/dist/components/button/button.d.ts +29 -0
- package/dist/components/checkbox/checkbox.d.ts +10 -0
- package/dist/components/counter/counter.d.ts +8 -0
- package/dist/components/counter/index.d.ts +1 -0
- package/dist/components/date-picker/date-picker.d.ts +58 -0
- package/dist/components/date-picker/index.d.ts +1 -0
- package/dist/components/divider/divider.d.ts +9 -0
- package/dist/components/divider/index.d.ts +1 -0
- package/dist/components/dropdown/dropdown.d.ts +5 -0
- package/dist/components/form/form-focus-error.d.ts +6 -0
- package/dist/components/form/form.d.ts +11 -0
- package/dist/components/form/index.d.ts +1 -0
- package/dist/components/form-control/form-control.d.ts +12 -0
- package/dist/components/form-control/index.d.ts +1 -0
- package/dist/components/heading/heading.d.ts +21 -0
- package/dist/components/heading/index.d.ts +1 -0
- package/dist/components/icon/icon.d.ts +25 -0
- package/dist/components/icon/index.d.ts +1 -0
- package/{src/components/input/index.ts → dist/components/input/index.d.ts} +1 -0
- package/dist/components/input/input.d.ts +57 -0
- package/dist/components/link/index.d.ts +1 -0
- package/dist/components/link/link.d.ts +27 -0
- package/dist/components/loader/index.d.ts +1 -0
- package/dist/components/loader/loader.d.ts +6 -0
- package/dist/components/loader-line/index.d.ts +1 -0
- package/dist/components/loader-line/loader-line.d.ts +5 -0
- package/dist/components/media/index.d.ts +2 -0
- package/dist/components/media/media.d.d.ts +3 -0
- package/dist/components/media/media.d.ts +24 -0
- package/dist/components/menu/menu.d.ts +6 -0
- package/dist/components/modal/index.d.ts +3 -0
- package/dist/components/modal/modal.d.ts +27 -0
- package/dist/components/modal/modal.provider.d.ts +5 -0
- package/dist/components/radio/index.d.ts +1 -0
- package/dist/components/radio/radio.d.ts +14 -0
- package/dist/components/range-picker/index.d.ts +1 -0
- package/dist/components/range-picker/range-picker.d.ts +53 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/select.d.ts +32 -0
- package/dist/components/selector/index.d.ts +1 -0
- package/dist/components/selector/selector.d.ts +8 -0
- package/dist/components/skeleton/index.d.ts +1 -0
- package/dist/components/skeleton/skeleton.d.ts +4 -0
- package/dist/components/slider/index.d.ts +1 -0
- package/dist/components/slider/slider.d.ts +21 -0
- package/dist/components/spoiler/index.d.ts +1 -0
- package/dist/components/spoiler/spoiler.d.ts +7 -0
- package/dist/components/stacked-input/index.d.ts +2 -0
- package/dist/components/stacked-input/stacked-input.d.ts +22 -0
- package/dist/components/switch/index.d.ts +1 -0
- package/dist/components/switch/switch.d.ts +9 -0
- package/dist/components/tag-box/index.d.ts +1 -0
- package/dist/components/tag-box/tag-box.d.ts +22 -0
- package/dist/components/tag-button/index.d.ts +2 -0
- package/dist/components/tag-button/tag-button.d.ts +27 -0
- package/dist/components/tag-button/tag-buttton-group.d.ts +17 -0
- package/dist/components/text/text.d.ts +21 -0
- package/dist/components/text-area/index.d.ts +1 -0
- package/dist/components/text-area/text-area.d.ts +28 -0
- package/dist/components/text-spoiler/index.d.ts +1 -0
- package/dist/components/text-spoiler/text-spoiler.d.ts +2 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/tooltip/tooltip.d.ts +11 -0
- package/dist/components/tooltip/tooltip.utils.d.ts +12 -0
- package/dist/components/upload/index.d.ts +1 -0
- package/dist/components/upload/upload.d.ts +10 -0
- package/dist/components/utils/apple-detect.d.ts +1 -0
- package/dist/components/utils/combine-ref.d.ts +2 -0
- package/dist/components/utils/date-format.d.ts +7 -0
- package/dist/components/utils/date.d.ts +2 -0
- package/dist/components/utils/index.d.ts +1 -0
- package/dist/components/utils/pluralize.d.ts +1 -0
- package/dist/components/utils/price-format.d.ts +1 -0
- package/dist/components/utils/text-sanitize.d.ts +1 -0
- package/dist/components/utils/time-left.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/package.json +20 -12
- package/src/components/button/button.module.scss +0 -166
- package/src/components/button/button.tsx +0 -79
- package/src/components/checkbox/checkbox.module.scss +0 -82
- package/src/components/checkbox/checkbox.tsx +0 -36
- package/src/components/dropdown/dropdown.tsx +0 -9
- package/src/components/icon/icons/button-loader.svg +0 -18
- package/src/components/icon/icons/clear.svg +0 -3
- package/src/components/icon/icons/input-loader.svg +0 -18
- package/src/components/input/input.module.scss +0 -178
- package/src/components/input/input.tsx +0 -138
- package/src/components/link/index.ts +0 -1
- package/src/components/link/link.module.scss +0 -26
- package/src/components/link/link.tsx +0 -40
- package/src/components/menu/menu.tsx +0 -8
- package/src/components/text/text.module.scss +0 -28
- package/src/components/text/text.tsx +0 -31
- package/src/index.ts +0 -7
- package/src/styles/_components.scss +0 -111
- /package/{src/components/button/index.ts → dist/components/button/index.d.ts} +0 -0
- /package/{src/components/checkbox/index.ts → dist/components/checkbox/index.d.ts} +0 -0
- /package/{src/components/dropdown/index.ts → dist/components/dropdown/index.d.ts} +0 -0
- /package/{src/components/menu/index.ts → dist/components/menu/index.d.ts} +0 -0
- /package/{src/components/text/index.ts → dist/components/text/index.d.ts} +0 -0
@@ -1,166 +0,0 @@
|
|
1
|
-
$color-button-default: var(--color-button-default);
|
2
|
-
$color-button-default-text: var(--color-button-default-text);
|
3
|
-
$color-button-default--hover: var(--color-button-default--hover);
|
4
|
-
$color-button-default--active: var(--color-button-default--active);
|
5
|
-
$color-button-default--disabled: var(--color-button-default--disabled);
|
6
|
-
|
7
|
-
$color-button-secondary: var(--color-button-secondary);
|
8
|
-
$color-button-secondary-text: var(--color-button-secondary-text);
|
9
|
-
$color-button-secondary--hover: var(--color-button-secondary--hover);
|
10
|
-
$color-button-secondary--active: var(--color-button-secondary--active);
|
11
|
-
$color-button-secondary--disabled: var(--color-button-secondary--disabled);
|
12
|
-
|
13
|
-
$color-button-tertiary: var(--color-button-tertiary);
|
14
|
-
$color-button-tertiary-text: var(--color-button-tertiary-text);
|
15
|
-
$color-button-tertiary--hover: var(--color-button-tertiary--hover);
|
16
|
-
$color-button-tertiary--active: var(--color-button-tertiary--active);
|
17
|
-
$color-button-tertiary--disabled: var(--color-button-tertiary--disabled);
|
18
|
-
|
19
|
-
.button {
|
20
|
-
border-radius: 8px;
|
21
|
-
font-weight: 600;
|
22
|
-
border: none;
|
23
|
-
white-space: nowrap;
|
24
|
-
cursor: pointer;
|
25
|
-
box-shadow: none;
|
26
|
-
position: relative;
|
27
|
-
display: inline-flex;
|
28
|
-
align-items: center;
|
29
|
-
|
30
|
-
&__small {
|
31
|
-
padding: 8px 16px;
|
32
|
-
}
|
33
|
-
|
34
|
-
&__medium {
|
35
|
-
padding: 16px 24px;
|
36
|
-
font-size: 16px;
|
37
|
-
}
|
38
|
-
|
39
|
-
&__large {
|
40
|
-
padding: 22px 48px;
|
41
|
-
}
|
42
|
-
|
43
|
-
&__default {
|
44
|
-
background-color: $color-button-default;
|
45
|
-
color: $color-button-default-text;
|
46
|
-
|
47
|
-
& > svg {
|
48
|
-
color: $color-button-default-text;
|
49
|
-
}
|
50
|
-
|
51
|
-
&:hover {
|
52
|
-
background-color: $color-button-default--hover;
|
53
|
-
}
|
54
|
-
|
55
|
-
&:active {
|
56
|
-
background-color: $color-button-default--active;
|
57
|
-
}
|
58
|
-
}
|
59
|
-
|
60
|
-
&__secondary {
|
61
|
-
background-color: $color-button-secondary;
|
62
|
-
color: $color-button-secondary-text;
|
63
|
-
|
64
|
-
&:hover {
|
65
|
-
background-color: $color-button-secondary--hover;
|
66
|
-
}
|
67
|
-
|
68
|
-
&:active {
|
69
|
-
background-color: $color-button-secondary--active;
|
70
|
-
}
|
71
|
-
}
|
72
|
-
|
73
|
-
&__tertiary {
|
74
|
-
background-color: $color-button-tertiary;
|
75
|
-
color: $color-button-tertiary-text;
|
76
|
-
|
77
|
-
&:hover {
|
78
|
-
background-color: $color-button-tertiary--hover;
|
79
|
-
}
|
80
|
-
|
81
|
-
&:active {
|
82
|
-
background-color: $color-button-tertiary--active;
|
83
|
-
}
|
84
|
-
}
|
85
|
-
|
86
|
-
&:disabled {
|
87
|
-
background-color: $color-button-default--disabled;
|
88
|
-
cursor: not-allowed;
|
89
|
-
|
90
|
-
&:hover,
|
91
|
-
&:active {
|
92
|
-
background-color: $color-button-default--disabled;
|
93
|
-
}
|
94
|
-
}
|
95
|
-
}
|
96
|
-
|
97
|
-
@media (max-width: 1023px) {
|
98
|
-
.button {
|
99
|
-
&__small {
|
100
|
-
padding: 8px;
|
101
|
-
}
|
102
|
-
|
103
|
-
&__medium {
|
104
|
-
padding: 10px;
|
105
|
-
font-size: 16px;
|
106
|
-
}
|
107
|
-
|
108
|
-
&__large {
|
109
|
-
padding: 12px;
|
110
|
-
}
|
111
|
-
}
|
112
|
-
}
|
113
|
-
|
114
|
-
.loading {
|
115
|
-
color: transparent;
|
116
|
-
cursor: wait;
|
117
|
-
& .icon {
|
118
|
-
visibility: hidden;
|
119
|
-
}
|
120
|
-
}
|
121
|
-
|
122
|
-
.icon {
|
123
|
-
vertical-align: bottom;
|
124
|
-
|
125
|
-
&__small {
|
126
|
-
width: 16px;
|
127
|
-
height: 16px;
|
128
|
-
margin-left: 4px;
|
129
|
-
}
|
130
|
-
|
131
|
-
&__medium {
|
132
|
-
width: 20px;
|
133
|
-
height: 20px;
|
134
|
-
margin-left: 8px;
|
135
|
-
}
|
136
|
-
|
137
|
-
&__large {
|
138
|
-
width: 24px;
|
139
|
-
height: 24px;
|
140
|
-
margin-left: 12px;
|
141
|
-
}
|
142
|
-
|
143
|
-
&__default {
|
144
|
-
color: $color-button-default-text;
|
145
|
-
}
|
146
|
-
|
147
|
-
&__only {
|
148
|
-
margin: 0;
|
149
|
-
}
|
150
|
-
}
|
151
|
-
|
152
|
-
.loader {
|
153
|
-
position: absolute;
|
154
|
-
top: 50%;
|
155
|
-
left: 50%;
|
156
|
-
transform: translate(-50%, -50%);
|
157
|
-
|
158
|
-
&__medium {
|
159
|
-
width: 24px;
|
160
|
-
height: 24px;
|
161
|
-
}
|
162
|
-
|
163
|
-
&__default {
|
164
|
-
color: $color-button-default-text;
|
165
|
-
}
|
166
|
-
}
|
@@ -1,79 +0,0 @@
|
|
1
|
-
import React, { PropsWithChildren, useMemo, MouseEvent } from 'react';
|
2
|
-
import classnames from 'classnames';
|
3
|
-
import Loader from '../icon/icons/button-loader.svg';
|
4
|
-
|
5
|
-
import styles from './button.module.scss';
|
6
|
-
|
7
|
-
export enum EButtonSize {
|
8
|
-
small = 'small',
|
9
|
-
medium = 'medium',
|
10
|
-
large = 'large',
|
11
|
-
}
|
12
|
-
|
13
|
-
export enum EButtonVariant {
|
14
|
-
default = 'default',
|
15
|
-
secondary = 'secondary',
|
16
|
-
tertiary = 'tertiary'
|
17
|
-
}
|
18
|
-
|
19
|
-
interface IButtonProps {
|
20
|
-
variant?: EButtonVariant;
|
21
|
-
size?: EButtonSize;
|
22
|
-
icon?: any;
|
23
|
-
loading?: boolean;
|
24
|
-
disabled?: boolean;
|
25
|
-
onClick?: (e?: MouseEvent<HTMLButtonElement>) => void
|
26
|
-
}
|
27
|
-
|
28
|
-
export const Button = ({
|
29
|
-
variant = EButtonVariant.default,
|
30
|
-
size = EButtonSize.medium,
|
31
|
-
icon: Icon,
|
32
|
-
loading,
|
33
|
-
disabled,
|
34
|
-
children,
|
35
|
-
onClick
|
36
|
-
}: PropsWithChildren<IButtonProps>) => {
|
37
|
-
const classNames = useMemo(
|
38
|
-
() =>
|
39
|
-
classnames(
|
40
|
-
styles.button,
|
41
|
-
styles[`button__${variant}`],
|
42
|
-
styles[`button__${size}`],
|
43
|
-
{
|
44
|
-
[styles.loading]: loading,
|
45
|
-
[styles.withIcon]: Icon,
|
46
|
-
}
|
47
|
-
),
|
48
|
-
[variant, size, loading, Icon, disabled]
|
49
|
-
);
|
50
|
-
|
51
|
-
const loaderClassNames = useMemo(
|
52
|
-
() =>
|
53
|
-
classnames(
|
54
|
-
styles.loader,
|
55
|
-
styles[`loader__${variant}`],
|
56
|
-
styles[`loader__${size}`]
|
57
|
-
),
|
58
|
-
[variant, size]
|
59
|
-
);
|
60
|
-
|
61
|
-
const iconClassNames = useMemo(
|
62
|
-
() =>
|
63
|
-
classnames(
|
64
|
-
styles.icon,
|
65
|
-
styles[`icon__${variant}`],
|
66
|
-
styles[`icon__${size}`],
|
67
|
-
{ [styles.icon__only]: !children }
|
68
|
-
),
|
69
|
-
[variant, size, children]
|
70
|
-
);
|
71
|
-
|
72
|
-
return (
|
73
|
-
<button className={classNames} disabled={disabled} onClick={onClick}>
|
74
|
-
{children}
|
75
|
-
{Icon && <Icon className={iconClassNames} />}
|
76
|
-
{loading && <Loader className={loaderClassNames} />}
|
77
|
-
</button>
|
78
|
-
);
|
79
|
-
};
|
@@ -1,82 +0,0 @@
|
|
1
|
-
$defaultFontSize: 16px;
|
2
|
-
$colorPinkWB: #cb11ab;
|
3
|
-
$colorGreyWB: #8b8b8b;
|
4
|
-
|
5
|
-
.wbCheckbox {
|
6
|
-
position: absolute;
|
7
|
-
z-index: -1;
|
8
|
-
opacity: 0;
|
9
|
-
|
10
|
-
& + label {
|
11
|
-
display: inline-flex;
|
12
|
-
align-items: center;
|
13
|
-
user-select: none;
|
14
|
-
cursor: pointer;
|
15
|
-
|
16
|
-
&::before {
|
17
|
-
content: "";
|
18
|
-
display: inline-block;
|
19
|
-
width: 22px;
|
20
|
-
height: 22px;
|
21
|
-
flex-shrink: 0;
|
22
|
-
flex-grow: 0;
|
23
|
-
border: 1px solid $colorGreyWB;
|
24
|
-
border-radius: 7px;
|
25
|
-
margin-right: 0.5em;
|
26
|
-
background-repeat: no-repeat;
|
27
|
-
background-position: center center;
|
28
|
-
background-size: 50% 50%;
|
29
|
-
}
|
30
|
-
|
31
|
-
&::after {
|
32
|
-
display: none !important;
|
33
|
-
}
|
34
|
-
}
|
35
|
-
|
36
|
-
&.small + label::before {
|
37
|
-
width: 17px;
|
38
|
-
height: 17px;
|
39
|
-
border-radius: 4px;
|
40
|
-
}
|
41
|
-
|
42
|
-
&:checked + label::before {
|
43
|
-
border-color: $colorPinkWB;
|
44
|
-
background-color: $colorPinkWB;
|
45
|
-
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
|
46
|
-
}
|
47
|
-
|
48
|
-
/* стили при наведении курсора на checkbox */
|
49
|
-
&:not(:disabled):not(:checked) + label:hover::before {
|
50
|
-
border-color: $colorPinkWB;
|
51
|
-
}
|
52
|
-
|
53
|
-
/* стили для активного состояния чекбокса (при нажатии на него) */
|
54
|
-
&:not(:disabled):active + label::before {
|
55
|
-
background-color: $colorPinkWB;
|
56
|
-
border-color: $colorPinkWB;
|
57
|
-
}
|
58
|
-
|
59
|
-
/* стили для чекбокса, находящегося в фокусе */
|
60
|
-
&:focus + label::before {
|
61
|
-
box-shadow: 0 0 0 0.2rem rgba(255, 24, 236, 0.2);
|
62
|
-
}
|
63
|
-
|
64
|
-
/* стили для чекбокса, находящегося в фокусе и не находящегося в состоянии checked */
|
65
|
-
&:focus:not(:checked) + label::before {
|
66
|
-
border-color: $colorPinkWB;
|
67
|
-
}
|
68
|
-
|
69
|
-
/* стили для чекбокса, находящегося в состоянии disabled */
|
70
|
-
&:disabled {
|
71
|
-
// color: $secondaryTextColor;
|
72
|
-
|
73
|
-
& + label::before {
|
74
|
-
opacity: 0.7;
|
75
|
-
}
|
76
|
-
|
77
|
-
&:checked + label::before {
|
78
|
-
background-color: $colorPinkWB;
|
79
|
-
opacity: 0.7;
|
80
|
-
}
|
81
|
-
}
|
82
|
-
}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import classnames from 'classnames';
|
3
|
-
import { ChangeEvent } from 'react';
|
4
|
-
import styles from './checkbox.module.scss';
|
5
|
-
|
6
|
-
export type ICheckboxProps = {
|
7
|
-
disabled?: boolean;
|
8
|
-
checked?: boolean;
|
9
|
-
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
10
|
-
id?: string;
|
11
|
-
children?: JSX.Element | string;
|
12
|
-
small?: boolean;
|
13
|
-
};
|
14
|
-
|
15
|
-
export const Checkbox = ({
|
16
|
-
disabled = false,
|
17
|
-
checked = false,
|
18
|
-
id,
|
19
|
-
small = false,
|
20
|
-
onChange = () => {},
|
21
|
-
children,
|
22
|
-
}: ICheckboxProps) => {
|
23
|
-
return (
|
24
|
-
<>
|
25
|
-
<input
|
26
|
-
className={classnames(styles.wbCheckbox, { small })}
|
27
|
-
type="checkbox"
|
28
|
-
disabled={disabled}
|
29
|
-
id={id}
|
30
|
-
checked={checked}
|
31
|
-
onChange={onChange}
|
32
|
-
/>
|
33
|
-
<label htmlFor={id}>{children}</label>
|
34
|
-
</>
|
35
|
-
);
|
36
|
-
};
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
|
3
|
-
import { Dropdown as AntDropdown, DropDownProps as AntDropdownProps } from 'antd';
|
4
|
-
|
5
|
-
interface IDropdownProps extends AntDropdownProps {}
|
6
|
-
|
7
|
-
export const Dropdown = (props: IDropdownProps) => {
|
8
|
-
return <AntDropdown {...props} />;
|
9
|
-
};
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<path d="M17 10C17 11.6195 16.4385 13.1889 15.4111 14.4408C14.3837 15.6926 12.954 16.5495 11.3657 16.8655C9.77729 17.1814 8.1285 16.9369 6.70024 16.1734C5.27198 15.41 4.15262 14.175 3.53287 12.6788C2.91311 11.1826 2.83133 9.51776 3.30144 7.96801C3.77155 6.41825 4.76448 5.07945 6.11103 4.17971C7.45758 3.27997 9.07445 2.87497 10.6861 3.03371C12.0062 3.16372 13.2558 3.6653 14.294 4.47173C14.6757 4.76817 14.6728 5.32726 14.331 5.66897V5.66897C13.9893 6.01068 13.4387 6.00353 13.045 5.72325C12.3028 5.1948 11.4313 4.86557 10.5146 4.77528C9.30584 4.65623 8.09319 4.95998 7.08328 5.63478C6.07336 6.30959 5.32867 7.31369 4.97608 8.47601C4.6235 9.63832 4.68484 10.8869 5.14965 12.0091C5.61447 13.1312 6.45399 14.0575 7.52519 14.6301C8.59638 15.2027 9.83297 15.3861 11.0242 15.1491C12.2155 14.9122 13.2878 14.2695 14.0583 13.3306C14.8289 12.3917 15.25 11.2146 15.25 10H17Z" fill="url(#paint0_linear)">
|
3
|
-
<animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 10 10" to="360 10 10" dur="0.75s" repeatCount="indefinite"/>
|
4
|
-
</path>
|
5
|
-
<path d="M17 10C17 11.6195 16.4385 13.1889 15.4111 14.4408C14.3837 15.6926 12.954 16.5495 11.3657 16.8655C9.77729 17.1814 8.1285 16.9369 6.70024 16.1734C5.27198 15.41 4.15262 14.175 3.53287 12.6788C2.91311 11.1826 2.83133 9.51776 3.30144 7.96801C3.77155 6.41825 4.76448 5.07945 6.11103 4.17971C7.45758 3.27997 9.07445 2.87497 10.6861 3.03371C12.0062 3.16372 13.2558 3.6653 14.294 4.47173C14.6757 4.76817 14.6728 5.32726 14.331 5.66897V5.66897C13.9893 6.01068 13.4387 6.00353 13.045 5.72325C12.3028 5.1948 11.4313 4.86557 10.5146 4.77528C9.30584 4.65623 8.09319 4.95998 7.08328 5.63478C6.07336 6.30959 5.32867 7.31369 4.97608 8.47601C4.6235 9.63832 4.68484 10.8869 5.14965 12.0091C5.61447 13.1312 6.45399 14.0575 7.52519 14.6301C8.59638 15.2027 9.83297 15.3861 11.0242 15.1491C12.2155 14.9122 13.2878 14.2695 14.0583 13.3306C14.8289 12.3917 15.25 11.2146 15.25 10H17Z" fill="url(#paint1_linear)">
|
6
|
-
<animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 10 10" to="360 10 10" dur="0.75s" repeatCount="indefinite"/>
|
7
|
-
</path>
|
8
|
-
<defs>
|
9
|
-
<linearGradient id="paint0_linear" x1="14.5" y1="5.5" x2="16.5" y2="10" gradientUnits="userSpaceOnUse">
|
10
|
-
<stop stop-color="currentColor" />
|
11
|
-
<stop offset="1" stop-color="currentColor" stop-opacity="0" />
|
12
|
-
</linearGradient>
|
13
|
-
<linearGradient id="paint1_linear" x1="10" y1="16" x2="17" y2="9.5" gradientUnits="userSpaceOnUse">
|
14
|
-
<stop stop-color="currentColor" />
|
15
|
-
<stop offset="1" stop-color="currentColor" stop-opacity="0" />
|
16
|
-
</linearGradient>
|
17
|
-
</defs>
|
18
|
-
</svg>
|
@@ -1,3 +0,0 @@
|
|
1
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<path d="M13 4.00714L11.9929 3L8 6.99286L4.00714 3L3 4.00714L6.99286 8L3 11.9929L4.00714 13L8 9.00714L11.9929 13L13 11.9929L9.00714 8L13 4.00714Z" fill="currentColor" />
|
3
|
-
</svg>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<path d="M17 10C17 11.6195 16.4385 13.1889 15.4111 14.4408C14.3837 15.6926 12.954 16.5495 11.3657 16.8655C9.77729 17.1814 8.1285 16.9369 6.70024 16.1734C5.27198 15.41 4.15262 14.175 3.53287 12.6788C2.91311 11.1826 2.83133 9.51776 3.30144 7.96801C3.77155 6.41825 4.76448 5.07945 6.11103 4.17971C7.45758 3.27997 9.07445 2.87497 10.6861 3.03371C12.0062 3.16372 13.2558 3.6653 14.294 4.47173C14.6757 4.76817 14.6728 5.32726 14.331 5.66897V5.66897C13.9893 6.01068 13.4387 6.00353 13.045 5.72325C12.3028 5.1948 11.4313 4.86557 10.5146 4.77528C9.30584 4.65623 8.09319 4.95998 7.08328 5.63478C6.07336 6.30959 5.32867 7.31369 4.97608 8.47601C4.6235 9.63832 4.68484 10.8869 5.14965 12.0091C5.61447 13.1312 6.45399 14.0575 7.52519 14.6301C8.59638 15.2027 9.83297 15.3861 11.0242 15.1491C12.2155 14.9122 13.2878 14.2695 14.0583 13.3306C14.8289 12.3917 15.25 11.2146 15.25 10H17Z" fill="url(#paint0_linear)">
|
3
|
-
<animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 10 10" to="360 10 10" dur="0.75s" repeatCount="indefinite"/>
|
4
|
-
</path>
|
5
|
-
<path d="M17 10C17 11.6195 16.4385 13.1889 15.4111 14.4408C14.3837 15.6926 12.954 16.5495 11.3657 16.8655C9.77729 17.1814 8.1285 16.9369 6.70024 16.1734C5.27198 15.41 4.15262 14.175 3.53287 12.6788C2.91311 11.1826 2.83133 9.51776 3.30144 7.96801C3.77155 6.41825 4.76448 5.07945 6.11103 4.17971C7.45758 3.27997 9.07445 2.87497 10.6861 3.03371C12.0062 3.16372 13.2558 3.6653 14.294 4.47173C14.6757 4.76817 14.6728 5.32726 14.331 5.66897V5.66897C13.9893 6.01068 13.4387 6.00353 13.045 5.72325C12.3028 5.1948 11.4313 4.86557 10.5146 4.77528C9.30584 4.65623 8.09319 4.95998 7.08328 5.63478C6.07336 6.30959 5.32867 7.31369 4.97608 8.47601C4.6235 9.63832 4.68484 10.8869 5.14965 12.0091C5.61447 13.1312 6.45399 14.0575 7.52519 14.6301C8.59638 15.2027 9.83297 15.3861 11.0242 15.1491C12.2155 14.9122 13.2878 14.2695 14.0583 13.3306C14.8289 12.3917 15.25 11.2146 15.25 10H17Z" fill="url(#paint1_linear)">
|
6
|
-
<animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 10 10" to="360 10 10" dur="0.75s" repeatCount="indefinite"/>
|
7
|
-
</path>
|
8
|
-
<defs>
|
9
|
-
<linearGradient id="paint0_linear" x1="14.5" y1="5.5" x2="16.5" y2="10" gradientUnits="userSpaceOnUse">
|
10
|
-
<stop stop-color="currentColor" />
|
11
|
-
<stop offset="1" stop-color="currentColor" stop-opacity="0" />
|
12
|
-
</linearGradient>
|
13
|
-
<linearGradient id="paint1_linear" x1="10" y1="16" x2="17" y2="9.5" gradientUnits="userSpaceOnUse">
|
14
|
-
<stop stop-color="currentColor" />
|
15
|
-
<stop offset="1" stop-color="currentColor" stop-opacity="0" />
|
16
|
-
</linearGradient>
|
17
|
-
</defs>
|
18
|
-
</svg>
|
@@ -1,178 +0,0 @@
|
|
1
|
-
.input {
|
2
|
-
position: relative;
|
3
|
-
width: 100%;
|
4
|
-
|
5
|
-
& input {
|
6
|
-
height: 100%;
|
7
|
-
width: 100%;
|
8
|
-
box-sizing: border-box;
|
9
|
-
margin: 0;
|
10
|
-
padding: 0;
|
11
|
-
border: none;
|
12
|
-
outline: none;
|
13
|
-
user-select: text;
|
14
|
-
font-weight: inherit;
|
15
|
-
|
16
|
-
&[type=number]::-webkit-inner-spin-button,
|
17
|
-
&[type=number]::-webkit-outer-spin-button,
|
18
|
-
&[type=time]::-webkit-inner-spin-button,
|
19
|
-
&[type=time]::-webkit-outer-spin-button {
|
20
|
-
-webkit-appearance: none;
|
21
|
-
margin: 0;
|
22
|
-
}
|
23
|
-
&:-webkit-autofill,
|
24
|
-
&:-webkit-autofill:hover,
|
25
|
-
&:-webkit-autofill:focus,
|
26
|
-
&:-internal-autofill-selected {
|
27
|
-
-webkit-text-fill-color: none;
|
28
|
-
-webkit-box-shadow: 0 0 200px white inset;
|
29
|
-
}
|
30
|
-
&::-webkit-calendar-picker-indicator {
|
31
|
-
display: none;
|
32
|
-
}
|
33
|
-
|
34
|
-
&:-moz-ui-invalid {
|
35
|
-
box-shadow: none;
|
36
|
-
}
|
37
|
-
|
38
|
-
&[type=time] {
|
39
|
-
&::-webkit-clear-button {
|
40
|
-
display: none;
|
41
|
-
}
|
42
|
-
|
43
|
-
&::-webkit-datetime-edit-second-field,
|
44
|
-
&::-webkit-datetime-edit-minute-field,
|
45
|
-
&::-webkit-datetime-edit-hour-field {
|
46
|
-
&:focus {
|
47
|
-
background: #f5caeb;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
}
|
51
|
-
|
52
|
-
&:disabled {
|
53
|
-
cursor: not-allowed;
|
54
|
-
}
|
55
|
-
}
|
56
|
-
|
57
|
-
&__medium input {
|
58
|
-
border-radius: 4px;
|
59
|
-
padding: 0 12px;
|
60
|
-
font-size: var(--size-text-m);
|
61
|
-
}
|
62
|
-
|
63
|
-
&__large input {
|
64
|
-
border-radius: 8px;
|
65
|
-
padding: 16px;
|
66
|
-
font-size: var(--size-text-l);
|
67
|
-
}
|
68
|
-
|
69
|
-
&__action_medium input {
|
70
|
-
padding-right: 36px;
|
71
|
-
}
|
72
|
-
|
73
|
-
&__action_large input {
|
74
|
-
padding-right: 48px;
|
75
|
-
}
|
76
|
-
|
77
|
-
&__actions_medium input {
|
78
|
-
padding-right: 60px;
|
79
|
-
}
|
80
|
-
|
81
|
-
&__actions_large input {
|
82
|
-
padding-right: 80px;
|
83
|
-
}
|
84
|
-
|
85
|
-
&__outlined input {
|
86
|
-
background-color: var(--color-input);
|
87
|
-
border: 1px solid var(--color-border);
|
88
|
-
background-clip: padding-box;
|
89
|
-
transition: border-color .3s;
|
90
|
-
|
91
|
-
&:disabled {
|
92
|
-
background-color: var(--color-input--disabled);
|
93
|
-
border-color: var(--color-border--disabled);
|
94
|
-
color: var(--color-font--disabled);
|
95
|
-
}
|
96
|
-
|
97
|
-
&::placeholder {
|
98
|
-
color: var(--color-placeholder);
|
99
|
-
}
|
100
|
-
&:read-only {
|
101
|
-
background-color: var(--color-input--disabled);
|
102
|
-
border-color: var(--color-border--disabled);
|
103
|
-
}
|
104
|
-
&:focus {
|
105
|
-
border-color: var(--color-border--active);
|
106
|
-
}
|
107
|
-
}
|
108
|
-
|
109
|
-
&__filled input {
|
110
|
-
background-color: var(--color-input-filled);
|
111
|
-
color: var(--color-input-filled-text);
|
112
|
-
transition: background-color .1s;
|
113
|
-
|
114
|
-
&::placeholder {
|
115
|
-
color: var(--color-input-filled-placeholder);
|
116
|
-
}
|
117
|
-
&:focus {
|
118
|
-
background-color: var(--color-input-filled--focus);
|
119
|
-
color: var(--color-input-filled-text);
|
120
|
-
&::placeholder {
|
121
|
-
color: var(--color-input-filled-placeholder);
|
122
|
-
}
|
123
|
-
}
|
124
|
-
&:disabled {
|
125
|
-
background-color: var(--color-input-filled--disabled);
|
126
|
-
}
|
127
|
-
}
|
128
|
-
}
|
129
|
-
|
130
|
-
.clear {
|
131
|
-
position: absolute;
|
132
|
-
cursor: pointer;
|
133
|
-
|
134
|
-
&__large {
|
135
|
-
width: 24px;
|
136
|
-
height: 24px;
|
137
|
-
right: 16px;
|
138
|
-
top: 50%;
|
139
|
-
transform: translateY(-50%);
|
140
|
-
}
|
141
|
-
|
142
|
-
&__action_medium {
|
143
|
-
right: 36px;
|
144
|
-
}
|
145
|
-
|
146
|
-
&__action_large {
|
147
|
-
right: 48px;
|
148
|
-
}
|
149
|
-
}
|
150
|
-
|
151
|
-
.icon {
|
152
|
-
position: absolute;
|
153
|
-
cursor: pointer;
|
154
|
-
|
155
|
-
&__large {
|
156
|
-
width: 24px;
|
157
|
-
height: 24px;
|
158
|
-
right: 16px;
|
159
|
-
top: 50%;
|
160
|
-
transform: translateY(-50%);
|
161
|
-
}
|
162
|
-
}
|
163
|
-
|
164
|
-
.loader {
|
165
|
-
position: absolute;
|
166
|
-
|
167
|
-
&__large {
|
168
|
-
width: 24px;
|
169
|
-
height: 24px;
|
170
|
-
right: 16px;
|
171
|
-
top: 50%;
|
172
|
-
transform: translateY(-50%);
|
173
|
-
}
|
174
|
-
|
175
|
-
&__filled {
|
176
|
-
color: var(--color-input-filled-text);
|
177
|
-
}
|
178
|
-
}
|