mimir-ui-kit 1.15.1 → 1.16.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Input-BFFPzelg.js +228 -0
- package/dist/{ProgressBar-BekX41HR.js → ProgressBar-CwLwhaeM.js} +23 -23
- package/dist/assets/Input.css +1 -1
- package/dist/assets/ListPhotos.css +1 -1
- package/dist/assets/OtpInput.css +1 -1
- package/dist/assets/ProgressBar2.css +1 -1
- package/dist/assets/SelectSearch.css +1 -1
- package/dist/assets/TextArea.css +1 -0
- package/dist/assets/UploaderPhotos.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +1 -9
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/Input/Input.d.ts +11 -27
- package/dist/components/Input/Input.js +9 -120
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Input/index.js +2 -2
- package/dist/components/Input/types.d.ts +11 -0
- package/dist/components/InputPassword/InputPassword.d.ts +1 -9
- package/dist/components/InputPassword/InputPassword.js +1 -1
- package/dist/components/InputPhoneNumber/InputPhoneNumber.d.ts +1 -9
- package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
- package/dist/components/ListPhotos/ListPhotos.js +1 -1
- package/dist/components/OtpInput/OtpInput.js +5 -5
- package/dist/components/SelectSearch/SelectSearch.d.ts +0 -7
- package/dist/components/SelectSearch/SelectSearch.js +3802 -640
- package/dist/components/SelectSearch/index.d.ts +1 -1
- package/dist/components/SelectSearch/types.d.ts +16 -11
- package/dist/components/TextArea/TextArea.d.ts +5 -0
- package/dist/components/TextArea/TextArea.js +209 -0
- package/dist/components/TextArea/hooks.d.ts +1 -0
- package/dist/components/TextArea/hooks.js +13 -0
- package/dist/components/TextArea/index.d.ts +1 -0
- package/dist/components/TextArea/index.js +4 -0
- package/dist/components/TextArea/types.d.ts +3 -0
- package/dist/components/TextArea/types.js +1 -0
- package/dist/components/Toasts/ProgressBar.js +1 -1
- package/dist/components/Toasts/Toast.js +1 -1
- package/dist/components/Toasts/ToastList.js +1 -1
- package/dist/components/Toasts/ToastsProvider.js +1 -1
- package/dist/components/Uploader/Uploader.d.ts +10 -1
- package/dist/components/Uploader/Uploader.js +62 -56
- package/dist/components/UploaderPhotos/UploaderPhotos.d.ts +10 -1
- package/dist/components/UploaderPhotos/UploaderPhotos.js +50 -34
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.js +4 -4
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/useMergeRefs/index.d.ts +1 -0
- package/dist/hooks/useMergeRefs/index.js +4 -0
- package/dist/hooks/useMergeRefs/useMergeRefs.d.ts +4 -0
- package/dist/hooks/useMergeRefs/useMergeRefs.js +28 -0
- package/dist/icons/components/12px/Close12px.js +1 -1
- package/dist/index.js +6 -4
- package/package.json +2 -3
- package/dist/SelectSearchOption-snHM9uZX.js +0 -3796
- package/dist/assets/SelectSearchOption.css +0 -1
- package/dist/components/SelectSearchOption/SelectSearchOption.d.ts +0 -10
- package/dist/components/SelectSearchOption/SelectSearchOption.js +0 -8
- package/dist/components/SelectSearchOption/index.d.ts +0 -2
- package/dist/components/SelectSearchOption/index.js +0 -4
@@ -0,0 +1,228 @@
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
2
|
+
import { c as classNames } from "./index-CweZ_OcN.js";
|
3
|
+
import { memo, forwardRef, useState, useRef, useEffect } from "react";
|
4
|
+
import { EInputVariant } from "./components/Input/constants.js";
|
5
|
+
import { useMergeRefs } from "./hooks/useMergeRefs/useMergeRefs.js";
|
6
|
+
import { Icon } from "./icons/Icon.js";
|
7
|
+
import { Button } from "./components/Button/Button.js";
|
8
|
+
import './assets/Input.css';const label = "_label_1lw8q_16";
|
9
|
+
const input = "_input_1lw8q_3";
|
10
|
+
const focused = "_focused_1lw8q_65";
|
11
|
+
const clear = "_clear_1lw8q_98";
|
12
|
+
const s = "_s_1lw8q_126";
|
13
|
+
const m = "_m_1lw8q_141";
|
14
|
+
const l = "_l_1lw8q_16";
|
15
|
+
const success = "_success_1lw8q_198";
|
16
|
+
const alarm = "_alarm_1lw8q_216";
|
17
|
+
const error = "_error_1lw8q_234";
|
18
|
+
const disabled = "_disabled_1lw8q_252";
|
19
|
+
const cls = {
|
20
|
+
"input-wrapper": "_input-wrapper_1lw8q_3",
|
21
|
+
label,
|
22
|
+
"has-left-slot": "_has-left-slot_1lw8q_29",
|
23
|
+
"active-label": "_active-label_1lw8q_32",
|
24
|
+
input,
|
25
|
+
"has-right-slot": "_has-right-slot_1lw8q_62",
|
26
|
+
focused,
|
27
|
+
"has-label": "_has-label_1lw8q_68",
|
28
|
+
"left-slot": "_left-slot_1lw8q_71",
|
29
|
+
"right-slot": "_right-slot_1lw8q_72",
|
30
|
+
"addon-icon": "_addon-icon_1lw8q_94",
|
31
|
+
clear,
|
32
|
+
s,
|
33
|
+
m,
|
34
|
+
l,
|
35
|
+
"default-gray": "_default-gray_1lw8q_171",
|
36
|
+
"default-white": "_default-white_1lw8q_183",
|
37
|
+
success,
|
38
|
+
alarm,
|
39
|
+
error,
|
40
|
+
disabled
|
41
|
+
};
|
42
|
+
const renderAddon = (addon) => {
|
43
|
+
var _a, _b;
|
44
|
+
if (!addon) {
|
45
|
+
return null;
|
46
|
+
}
|
47
|
+
switch (addon.addonType) {
|
48
|
+
case "icon": {
|
49
|
+
const is16px = (_a = addon.addonContent) == null ? void 0 : _a.includes("16px");
|
50
|
+
const is24px = (_b = addon.addonContent) == null ? void 0 : _b.includes("24px");
|
51
|
+
return /* @__PURE__ */ jsx(
|
52
|
+
Icon,
|
53
|
+
{
|
54
|
+
style: {
|
55
|
+
["--icon-size"]: classNames({
|
56
|
+
"16px": is16px,
|
57
|
+
"24px": is24px
|
58
|
+
})
|
59
|
+
},
|
60
|
+
className: cls["addon-icon"],
|
61
|
+
iconName: addon.addonContent
|
62
|
+
}
|
63
|
+
);
|
64
|
+
}
|
65
|
+
case "text": {
|
66
|
+
return addon.addonContent;
|
67
|
+
}
|
68
|
+
default: {
|
69
|
+
return null;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
};
|
73
|
+
const Input = memo(
|
74
|
+
forwardRef(
|
75
|
+
(props, ref) => {
|
76
|
+
const {
|
77
|
+
value,
|
78
|
+
className,
|
79
|
+
wrapperClassName,
|
80
|
+
variant = EInputVariant.DefaultGray,
|
81
|
+
type = "text",
|
82
|
+
autofocus,
|
83
|
+
readonly,
|
84
|
+
id,
|
85
|
+
onFocus,
|
86
|
+
onBlur,
|
87
|
+
label: label2,
|
88
|
+
withClearButton,
|
89
|
+
disabled: disabled2,
|
90
|
+
rightAddon,
|
91
|
+
leftAddon,
|
92
|
+
size = "m",
|
93
|
+
...otherProps
|
94
|
+
} = props;
|
95
|
+
const [isFocused, setIsFocused] = useState(autofocus);
|
96
|
+
const [withValue, setWithValue] = useState(!!value);
|
97
|
+
const inputRef = useRef(null);
|
98
|
+
const leftAddonRef = useRef(null);
|
99
|
+
const mergedInputRef = useMergeRefs(inputRef, ref);
|
100
|
+
useEffect(() => {
|
101
|
+
if (autofocus) {
|
102
|
+
setIsFocused(true);
|
103
|
+
}
|
104
|
+
}, [autofocus]);
|
105
|
+
const handleBlur = (event) => {
|
106
|
+
const currentValue = event.currentTarget.value;
|
107
|
+
onBlur == null ? void 0 : onBlur(event);
|
108
|
+
if (currentValue) {
|
109
|
+
return;
|
110
|
+
}
|
111
|
+
setIsFocused(false);
|
112
|
+
};
|
113
|
+
const handleFocus = (event) => {
|
114
|
+
if (readonly) {
|
115
|
+
return;
|
116
|
+
}
|
117
|
+
setIsFocused(true);
|
118
|
+
onFocus == null ? void 0 : onFocus(event);
|
119
|
+
};
|
120
|
+
const handleClear = () => {
|
121
|
+
if (inputRef == null ? void 0 : inputRef.current) {
|
122
|
+
inputRef.current.value = "";
|
123
|
+
inputRef.current.focus();
|
124
|
+
setWithValue(false);
|
125
|
+
}
|
126
|
+
};
|
127
|
+
const handleChange = (event) => {
|
128
|
+
var _a;
|
129
|
+
const targetValue = event.target.value;
|
130
|
+
setWithValue(!!targetValue);
|
131
|
+
(_a = otherProps == null ? void 0 : otherProps.onChange) == null ? void 0 : _a.call(otherProps, event);
|
132
|
+
};
|
133
|
+
const currentLeftAddon = renderAddon(leftAddon);
|
134
|
+
const currentRightAddon = renderAddon(rightAddon);
|
135
|
+
const mods = {
|
136
|
+
[cls.readonly]: disabled2 || readonly,
|
137
|
+
[cls.focused]: isFocused || withValue,
|
138
|
+
[cls.disabled]: disabled2 || readonly,
|
139
|
+
[cls["has-label"]]: !!label2,
|
140
|
+
[cls["has-left-slot"]]: !!currentLeftAddon,
|
141
|
+
[cls["has-right-slot"]]: !!currentRightAddon
|
142
|
+
};
|
143
|
+
const labelClassNames = classNames(
|
144
|
+
cls.label,
|
145
|
+
{
|
146
|
+
[cls["active-label"]]: isFocused || value,
|
147
|
+
[cls.disabled]: disabled2 || readonly,
|
148
|
+
[cls["has-left-slot"]]: !!currentLeftAddon
|
149
|
+
},
|
150
|
+
className,
|
151
|
+
cls[size]
|
152
|
+
);
|
153
|
+
const inputClassNames = classNames(cls.input, mods, className, [
|
154
|
+
cls[variant],
|
155
|
+
cls[size]
|
156
|
+
]);
|
157
|
+
return /* @__PURE__ */ jsxs(
|
158
|
+
"div",
|
159
|
+
{
|
160
|
+
className: classNames(
|
161
|
+
cls["input-wrapper"],
|
162
|
+
cls[variant],
|
163
|
+
cls[size],
|
164
|
+
{ [cls.focused]: isFocused || withValue },
|
165
|
+
wrapperClassName
|
166
|
+
),
|
167
|
+
children: [
|
168
|
+
label2 && /* @__PURE__ */ jsx("label", { htmlFor: id, className: labelClassNames, children: label2 }),
|
169
|
+
currentLeftAddon && /* @__PURE__ */ jsx(
|
170
|
+
"span",
|
171
|
+
{
|
172
|
+
ref: leftAddonRef,
|
173
|
+
className: classNames(cls["left-slot"], {
|
174
|
+
[cls.focused]: isFocused,
|
175
|
+
[cls["has-label"]]: !!label2
|
176
|
+
}),
|
177
|
+
children: currentLeftAddon
|
178
|
+
}
|
179
|
+
),
|
180
|
+
/* @__PURE__ */ jsx(
|
181
|
+
"input",
|
182
|
+
{
|
183
|
+
ref: mergedInputRef,
|
184
|
+
type,
|
185
|
+
id,
|
186
|
+
className: inputClassNames,
|
187
|
+
onFocus: handleFocus,
|
188
|
+
onBlur: handleBlur,
|
189
|
+
readOnly: readonly,
|
190
|
+
value,
|
191
|
+
onChange: handleChange,
|
192
|
+
...otherProps
|
193
|
+
}
|
194
|
+
),
|
195
|
+
currentRightAddon && /* @__PURE__ */ jsx(
|
196
|
+
"span",
|
197
|
+
{
|
198
|
+
className: classNames(cls["right-slot"], {
|
199
|
+
[cls.focused]: isFocused,
|
200
|
+
[cls["has-label"]]: !!label2
|
201
|
+
}),
|
202
|
+
children: currentRightAddon
|
203
|
+
}
|
204
|
+
),
|
205
|
+
withClearButton && withValue && /* @__PURE__ */ jsx(
|
206
|
+
Button,
|
207
|
+
{
|
208
|
+
tabIndex: -1,
|
209
|
+
className: cls.clear,
|
210
|
+
isIconButton: true,
|
211
|
+
iconName: "Close16px",
|
212
|
+
size: "m-s",
|
213
|
+
clear: true,
|
214
|
+
variant: "secondary-gray",
|
215
|
+
onClick: handleClear
|
216
|
+
}
|
217
|
+
)
|
218
|
+
]
|
219
|
+
}
|
220
|
+
);
|
221
|
+
}
|
222
|
+
)
|
223
|
+
);
|
224
|
+
Input.displayName = "Input";
|
225
|
+
export {
|
226
|
+
Input as I,
|
227
|
+
cls as c
|
228
|
+
};
|
@@ -2,39 +2,39 @@ import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c as classNames } from "./index-CweZ_OcN.js";
|
3
3
|
import { memo, useRef, useEffect } from "react";
|
4
4
|
import { DEFAULT_TOAST_DURATION, EToastVariant } from "./components/Toasts/constants.js";
|
5
|
-
import './assets/ProgressBar2.css';const title = "
|
6
|
-
const timer = "
|
7
|
-
const seconds = "
|
8
|
-
const message = "
|
9
|
-
const progress = "
|
10
|
-
const slot = "
|
11
|
-
const success = "
|
12
|
-
const alarm = "
|
13
|
-
const error = "
|
5
|
+
import './assets/ProgressBar2.css';const title = "_title_1rvsh_37";
|
6
|
+
const timer = "_timer_1rvsh_41";
|
7
|
+
const seconds = "_seconds_1rvsh_51";
|
8
|
+
const message = "_message_1rvsh_61";
|
9
|
+
const progress = "_progress_1rvsh_69";
|
10
|
+
const slot = "_slot_1rvsh_95";
|
11
|
+
const success = "_success_1rvsh_104";
|
12
|
+
const alarm = "_alarm_1rvsh_109";
|
13
|
+
const error = "_error_1rvsh_114";
|
14
14
|
const cls = {
|
15
|
-
"toast-list": "_toast-
|
16
|
-
"toast-wrapper": "_toast-
|
15
|
+
"toast-list": "_toast-list_1rvsh_2",
|
16
|
+
"toast-wrapper": "_toast-wrapper_1rvsh_24",
|
17
17
|
title,
|
18
18
|
timer,
|
19
|
-
"timer-title": "_timer-
|
19
|
+
"timer-title": "_timer-title_1rvsh_49",
|
20
20
|
seconds,
|
21
21
|
message,
|
22
22
|
progress,
|
23
|
-
"progress-bar": "_progress-
|
24
|
-
"close-button": "_close-
|
23
|
+
"progress-bar": "_progress-bar_1rvsh_78",
|
24
|
+
"close-button": "_close-button_1rvsh_89",
|
25
25
|
slot,
|
26
|
-
"default": "
|
26
|
+
"default": "_default_1rvsh_99",
|
27
27
|
success,
|
28
28
|
alarm,
|
29
29
|
error,
|
30
|
-
"top-right": "_top-
|
31
|
-
"top-center": "_top-
|
32
|
-
"top-left": "_top-
|
33
|
-
"bottom-left": "_bottom-
|
34
|
-
"bottom-center": "_bottom-
|
35
|
-
"bottom-right": "_bottom-
|
36
|
-
"toast-in": "_toast-
|
37
|
-
"toast-out": "_toast-
|
30
|
+
"top-right": "_top-right_1rvsh_119",
|
31
|
+
"top-center": "_top-center_1rvsh_125",
|
32
|
+
"top-left": "_top-left_1rvsh_131",
|
33
|
+
"bottom-left": "_bottom-left_1rvsh_136",
|
34
|
+
"bottom-center": "_bottom-center_1rvsh_141",
|
35
|
+
"bottom-right": "_bottom-right_1rvsh_147",
|
36
|
+
"toast-in": "_toast-in_1rvsh_179",
|
37
|
+
"toast-out": "_toast-out_1rvsh_183"
|
38
38
|
};
|
39
39
|
const ProgressBar = memo(
|
40
40
|
({
|
package/dist/assets/Input.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
._input-
|
1
|
+
._input-wrapper_1lw8q_3{--input-border-radius-l: 8px;--input-border-radius-m: 6px;--input-border-radius-s: 6px;position:relative;display:flex;padding:0 var(--space-m);overflow:hidden;background-color:var(--input-bg-color);border-bottom:1px solid transparent;border-radius:var(--input-border-radius);transition:background-color .2s ease,border-color .15s ease,box-shadow .15s ease,color .15s ease,fill .15s ease}._input-wrapper_1lw8q_3 ._label_1lw8q_16{position:absolute;top:calc(var(--input-height) / 2 - var(--input-font-size) / 2);left:var(--space-m);z-index:1;display:block;color:var(--label-color);font-size:var(--input-font-size);white-space:nowrap;transform-origin:left center;transition:transform .15s ease-out,left .15s ease-out,color .15s ease-out;pointer-events:none}._input-wrapper_1lw8q_3 ._label_1lw8q_16._has-left-slot_1lw8q_29{left:calc(var(--space-m) + var(--icon-size) + var(--clear-button-mg))}._input-wrapper_1lw8q_3 ._label_1lw8q_16._active-label_1lw8q_32{transform:scale(var(--label-scaled)) translateY(calc(var(--input-font-size) * -1))}._input-wrapper_1lw8q_3 ._label_1lw8q_16._active-label_1lw8q_32._has-left-slot_1lw8q_29{left:calc(var(--space-m) + var(--icon-size) + var(--space-s));transform:scale(var(--label-scaled)) translate(calc((var(--space-m) + var(--left-addon-position)) * 2 * -1),calc(var(--input-font-size) * -1))}._input-wrapper_1lw8q_3 ._input_1lw8q_3{position:relative;display:block;flex:1;width:100%;min-width:0;height:var(--input-height);color:var(--dark-text);font-size:var(--input-font-size);font-family:var(--font-inter);line-height:var(--input-line-height);letter-spacing:-.42px;background-color:inherit;border-radius:var(--input-border-radius);outline:none;cursor:var(--input-cursor);transition:border-color .15s ease,box-shadow .15s ease,color .15s ease,fill .15s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-feature-settings:"zero"}._input-wrapper_1lw8q_3 ._input_1lw8q_3._has-left-slot_1lw8q_29{padding-left:0}._input-wrapper_1lw8q_3 ._input_1lw8q_3._has-right-slot_1lw8q_62{padding-right:0}._input-wrapper_1lw8q_3 ._input_1lw8q_3._focused_1lw8q_65{padding-top:0}._input-wrapper_1lw8q_3 ._input_1lw8q_3._has-label_1lw8q_68{padding-top:var(--input-padding-position)}._input-wrapper_1lw8q_3 ._left-slot_1lw8q_71,._input-wrapper_1lw8q_3 ._right-slot_1lw8q_72{display:flex;align-items:center;height:var(--input-height);color:var(--black-60);font-size:var(--input-font-size);font-family:var(--font-inter);line-height:var(--input-line-height);background-color:inherit;transition:padding-top .15s ease-out}._input-wrapper_1lw8q_3 ._left-slot_1lw8q_71._focused_1lw8q_65._has-label_1lw8q_68,._input-wrapper_1lw8q_3 ._right-slot_1lw8q_72._focused_1lw8q_65._has-label_1lw8q_68{padding-top:var(--input-padding-position)}._input-wrapper_1lw8q_3 ._left-slot_1lw8q_71{justify-content:flex-end;margin-right:var(--clear-button-mg)}._input-wrapper_1lw8q_3 ._right-slot_1lw8q_72{margin-left:var(--clear-button-mg)}._input-wrapper_1lw8q_3 ._addon-icon_1lw8q_94{width:var(--icon-size);height:var(--icon-size)}._input-wrapper_1lw8q_3 ._clear_1lw8q_98{align-self:center;width:16px;height:16px;margin-left:var(--clear-button-mg)}._input-wrapper_1lw8q_3 svg{color:currentcolor;fill:currentcolor}._input-wrapper_1lw8q_3:hover ._label_1lw8q_16,._input-wrapper_1lw8q_3:focus-within ._label_1lw8q_16{color:var(--label-color)}._input-wrapper_1lw8q_3:hover{background-color:var(--input-bg-color-hover)}._input-wrapper_1lw8q_3:focus-within{background-color:var(--input-bg-color-active);border-bottom:1px solid var(--input-bottom-color-active)}._input-wrapper_1lw8q_3._focused_1lw8q_65{color:var(--input-color-active);background-color:var(--input-bg-color-active)}._input-wrapper_1lw8q_3._focused_1lw8q_65:hover{background-color:var(--input-bg-color-hover)}._s_1lw8q_126{--input-height: var(--space-xxl);--input-font-size: var(--control-text-size-m);--input-line-height: var(--line-height-text-xs);--input-padding: var(--space-m);--input-padding-position: var(--space-1xs);--input-border-radius: var(--input-border-radius-s);--label-font-size: var(--size-text-xs);--label-scaled: .85;--label-spacing: var(--space-1xs);--clear-button-mg: var(--space-2xs);--icon-size: 16px;--left-addon-position: 0px}._m_1lw8q_141{--input-height: var(--space-4xl);--input-font-size: var(--control-text-size-l);--input-line-height: var(--line-height-text-s1);--input-padding: var(--space-m);--input-padding-position: var(--space-xs);--input-border-radius: var(--input-border-radius-m);--label-font-size: var(--size-text-s);--label-scaled: .75;--label-spacing: var(--space-xs);--clear-button-mg: var(--space-2xs);--icon-size: 16px;--left-addon-position: var(--space-3xs)}._l_1lw8q_16{--input-height: var(--space-4xxl);--input-font-size: var(--control-text-size-2xl);--input-line-height: var(--line-height-text-l);--input-padding: var(--space-m);--input-padding-position: var(--space-s);--input-border-radius: var(--input-border-radius-l);--label-font-size: var(--size-text-s);--label-scaled: .6;--label-spacing: var(--space-s);--clear-button-mg: var(--space-xs);--icon-size: 24px;--left-addon-position: var(--space-s)}._default-gray_1lw8q_171{--input-bg-color: var(--black-5);--input-bg-color-active: var(--black-10);--input-bg-color-hover: var(--black-10);--input-color: var(--dark-text);--input-color-hover: var(--dark-text);--input-color-active: var(--dark-text);--input-border: transparent;--input-bottom-color-active: var(--citrine-normal);--label-color: var(--black-60)}._default-white_1lw8q_183{--input-bg-color: var(--white);--input-bg-color-hover: var(--black-10);--input-bg-color-active: var(--white);--input-color: var(--dark-text);--input-color-hover: var(--dark-text);--input-color-active: var(--dark-text);--input-border: transparent;--input-bottom-color-active: var(--citrine-normal);--label-color: var(--black-60)}._default-white_1lw8q_183:hover{--label-color: var(--dark-text)}._success_1lw8q_198{--input-bg-color: var(--success-normal);--input-bg-color-hover: var(--success-bg-hover);--input-bg-color-active: var(--success-bg-active);--input-color: var(--dark-text);--input-color-hover: var(--dark-text);--input-color-active: var(--dark-text);--input-border: transparent;--input-bottom-color-active: var(--success-normal);--label-color: var(--black-60)}._success_1lw8q_198::-moz-placeholder{color:var(--input-color)}._success_1lw8q_198::placeholder{color:var(--input-color)}._success_1lw8q_198:hover::-moz-placeholder{color:var(--input-color)}._success_1lw8q_198:hover::placeholder{color:var(--input-color)}._alarm_1lw8q_216{--input-bg-color: var(--alarm-normal);--input-bg-color-hover: var(--alarm-bg-hover);--input-bg-color-active: var(--alarm-bg-active);--input-color: var(--dark-text);--input-color-hover: var(--dark-text);--input-color-active: var(--dark-text);--input-border: transparent;--input-bottom-color-active: var(--alarm-normal);--label-color: var(--black-60)}._alarm_1lw8q_216::-moz-placeholder{color:var(--input-color)}._alarm_1lw8q_216::placeholder{color:var(--input-color)}._alarm_1lw8q_216:hover::-moz-placeholder{color:var(--input-color)}._alarm_1lw8q_216:hover::placeholder{color:var(--input-color)}._error_1lw8q_234{--input-bg-color: var(--error-normal);--input-bg-color-hover: var(--error-bg-hover);--input-bg-color-active: var(--error-bg-active);--input-color: var(--dark-text);--input-color-hover: var(--dark-text);--input-color-active: var(--dark-text);--input-border: transparent;--input-bottom-color-active: var(--error-normal);--label-color: var(--black-60)}._error_1lw8q_234::-moz-placeholder{color:var(--input-color)}._error_1lw8q_234::placeholder{color:var(--input-color)}._error_1lw8q_234:hover::-moz-placeholder{color:var(--input-color)}._error_1lw8q_234:hover::placeholder{color:var(--input-color)}._disabled_1lw8q_252{--input-cursor: not-allowed;--label-color: var(--light-text);color:var(--light-text);background-color:var(--black-20)}._disabled_1lw8q_252:hover,._disabled_1lw8q_252:active,._disabled_1lw8q_252:focus{--label-color: var(--light-text);color:var(--light-text);background-color:var(--black-20);border:none;box-shadow:none}._disabled_1lw8q_252::-moz-placeholder{color:var(--light-text)}._disabled_1lw8q_252::placeholder{color:var(--light-text)}._disabled_1lw8q_252:hover::-moz-placeholder{color:var(--light-text)}._disabled_1lw8q_252:hover::placeholder{color:var(--light-text)}
|
@@ -1 +1 @@
|
|
1
|
-
._list-
|
1
|
+
._list-photos_19pfh_2{display:flex;gap:var(--space-m);overflow-x:auto}._list-photos_19pfh_2::-webkit-scrollbar{display:none}._list-photos_19pfh_2 li{position:relative;flex-shrink:0;width:64px;height:64px;overflow:hidden;border-radius:var(--control-radius);box-shadow:0 0 #16172705,0 2px 4px #16172705,0 6px 6px #16172705,0 15px 9px #16172703}._list-photos_19pfh_2 img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}._list-photos_19pfh_2 button{position:absolute;top:4px;right:4px}
|
package/dist/assets/OtpInput.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
._otp_196ev_3{display:flex;align-items:center;width:100%;-moz-column-gap:var(--space-xs);column-gap:var(--space-xs)}@media (max-width: 768px){._otp_196ev_3{-moz-column-gap:4.65px;column-gap:4.65px}}._otp_196ev_3 ._input-wrapper_196ev_14{flex:0 0 64px;padding:0}@media (max-width: 768px){._otp_196ev_3 ._input-wrapper_196ev_14{flex:0 0 48px}}._input_196ev_14{text-align:center}._separator_196ev_28{display:block;flex:0 0 54px;align-self:center;height:1px;margin:0 var(--space-xs);background-color:var(--black-100)}
|
@@ -1 +1 @@
|
|
1
|
-
._toast-
|
1
|
+
._toast-list_1rvsh_2{position:fixed;z-index:15000;width:100vw;max-width:515px;max-height:100vh;padding:var(--space-m);overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._toast-list_1rvsh_2::-webkit-scrollbar{display:none}._toast-list_1rvsh_2::-webkit-scrollbar-track{background-color:transparent}._toast-list_1rvsh_2::-webkit-scrollbar-thumb{background-color:transparent}._toast-list_1rvsh_2::-webkit-scrollbar-thumb:window-inactive{background-color:transparent}._toast-wrapper_1rvsh_24{position:relative;display:flex;flex-direction:column;padding:var(--space-m);background-color:var(--toast-bg-color);border-radius:var(--control-radius);transition:all .3s ease}._toast-wrapper_1rvsh_24:not(:last-child){margin-bottom:var(--space-s)}._title_1rvsh_37:not(:last-child){margin-bottom:var(--space-xs)}._timer_1rvsh_41{display:flex;justify-content:space-between}._timer_1rvsh_41:not(:last-child){margin-bottom:var(--space-2xs)}._timer-title_1rvsh_49,._title_1rvsh_37,._seconds_1rvsh_51{color:var(--black-60);font-size:var(--size-text-m);line-height:var(--line-height-text-xxs)}._seconds_1rvsh_51{color:var(--black-100)}._message_1rvsh_61{font-size:var(--size-text-l);line-height:var(--line-height-text-s1)}._message_1rvsh_61:not(:last-child){margin-bottom:var(--space-xs)}._progress_1rvsh_69{position:relative;width:100%;height:8px;overflow:hidden;background-color:var(--black-5);border-radius:var(--control-radius-xs)}._progress-bar_1rvsh_78{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;background-color:var(--progress-bg-color);border-radius:var(--control-radius-xs)}._close-button_1rvsh_89{position:absolute;top:var(--space-s);right:var(--space-s)}._slot_1rvsh_95{margin-top:var(--space-xl)}._default_1rvsh_99{--toast-bg-color: var(--white);--progress-bg-color: var(--sapphire-100)}._success_1rvsh_104{--toast-bg-color: var(--success-bg-active);--progress-bg-color: var(--success-normal)}._alarm_1rvsh_109{--toast-bg-color: var(--alarm-bg-active);--progress-bg-color: var(--alarm-normal)}._error_1rvsh_114{--toast-bg-color: var(--error-bg-active);--progress-bg-color: var(--error-normal)}._top-right_1rvsh_119{top:0;right:0;transition:all .3s ease}._top-center_1rvsh_125{top:0;right:50%;transform:translate(50%)}._top-left_1rvsh_131{top:0;left:0}._bottom-left_1rvsh_136{bottom:0;left:0}._bottom-center_1rvsh_141{right:50%;bottom:0;transform:translate(50%)}._bottom-right_1rvsh_147{right:0;bottom:0}@keyframes _toast-in_1rvsh_179{0%{transform:var(--elm-translate);opacity:.7}80%{transform:translate(0);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes _toast-out_1rvsh_183{0%{opacity:1}20%{transform:translate(0);opacity:.7}to{transform:var(--elm-translate);opacity:.7}}._toast-in_1rvsh_179{animation:_toast-in_1rvsh_179 .3s both}._toast-out_1rvsh_183{animation:_toast-out_1rvsh_183 .8s both}
|
@@ -1 +1 @@
|
|
1
|
-
._select-
|
1
|
+
._select-search_q299h_2{position:relative}._container_q299h_6{display:block;gap:var(--select-search-gap);align-items:center;justify-content:space-between;height:var(--select-search-height);background-color:var(--black-5);border-radius:var(--select-search-radius)}._container-open_q299h_15{border-bottom:1px solid var(--citrine-100)}._full_q299h_19{width:100%}._selector-icon-open_q299h_23{transform:rotate(180deg)}._button_q299h_27{position:absolute;top:0;right:0;display:flex;align-items:center;margin:var(--select-search-btn-space);background:none;border:none;cursor:pointer}._options_q299h_39{position:absolute;top:100%;z-index:10;width:100%;height:var(--select-search-options-height);overflow-y:auto;font-size:var(--size-text-l);background:var(--white);border-radius:0 0 var(--select-search-radius) var(--select-search-radius);box-shadow:var(--box-shadow-select-search)}._options_q299h_39::-webkit-scrollbar{width:3px}._options_q299h_39::-webkit-scrollbar-thumb{background-color:var(--black-80);border-radius:2px}._options_q299h_39::-webkit-scrollbar-track{background-color:var(--white)}@media (max-width: 600px){._options_q299h_39{max-height:var(--select-search-options-height-mobile)}}._no-options_q299h_67{height:100%;padding:var(--select-search-option-space);color:var(--black-80)}._m_q299h_73{--select-search-height: var(--select-search-height-l);--select-search-space: var(--space-xss) var(--space-m);--select-search-radius: var(--control-radius);--select-search-gap: var(--space-2xs);--select-search-btn-space: var(--space-m) var(--space-m) var(--space-m) var(--space-xs);--select-search-option-space: var(--space-2s) var(--space-m);--select-search-options-height: var(--select-search-options-height-mobile)}._l_q299h_84{--select-search-height: var(--select-search-height-xxl);--select-search-space: var(--space-xss) var(--space-m);--select-search-radius: var(--control-radius-s);--select-search-gap: var(--space-xs);--select-search-btn-space: var(--space-l) var(--space-m) var(--space-l) var(--space-xs);--select-search-option-space: var(--space-2l) var(--space-m);--select-search-options-height: var(--select-search-options-height-desktop)}._custom-input-class_q299h_95{width:100%!important}._custom-input-class_q299h_95:last-child{padding-right:var(--space-4xl)}._option_q299h_39{display:flex;gap:var(--space-m);align-items:center;width:100%;padding:var(--select-search-option-space);cursor:pointer;transition:background-color .2s ease-in-out}._option-active_q299h_111{background-color:var(--black-5)}._option-inner_q299h_114{display:flex;flex-direction:column;gap:var(--space-xs);width:100%}._selected-icon_q299h_121 path{fill:var(--sapphire-100)}
|
@@ -0,0 +1 @@
|
|
1
|
+
._textarea_46c4k_2{min-height:var(--textarea-height);resize:none}._textarea_46c4k_2._s_46c4k_6{--top-space: var(--space-3xs);--textarea-height: 76px;--textarea-padding: var(--space-xs) var(--space-s)}._textarea_46c4k_2._m_46c4k_11{--top-space: var(--space-2xs);--textarea-height: 88px;--textarea-padding: var(--space-xs) var(--space-s)}._textarea_46c4k_2._l_46c4k_16{--top-space: var(--space-2xs);--textarea-height: 120px;--textarea-padding: var(--space-2m)}._textarea_46c4k_2._has-label_46c4k_21{padding-top:calc(var(--input-font-size) + var(--top-space))!important}
|
@@ -1 +1 @@
|
|
1
|
-
._upload-
|
1
|
+
._upload-file__wrapper_17bcu_2{display:flex;flex-direction:column;gap:var(--space-m);overflow:hidden}
|
package/dist/assets/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@font-face{font-weight:400;font-family:Montserrat;font-style:normal;src:url(./fonts/585d10920d676fcd.woff2) format("woff2"),url(./fonts/3b9f59412b17ff93.woff) format("woff")}@font-face{font-weight:700;font-family:Montserrat;font-style:normal;src:url(./fonts/f4d681a788c6d497.woff2) format("woff2"),url(./fonts/43b748f250df0f08.woff) format("woff")}@font-face{font-weight:300;font-family:Montserrat;font-style:normal;src:url(./fonts/ee3db32f0aadef5d.woff2) format("woff2"),url(./fonts/1a738bfdbc1e4d9d.woff) format("woff")}@font-face{font-weight:500;font-family:Montserrat;font-style:normal;src:url(./fonts/e51d2feb30084bc2.woff2) format("woff2"),url(./fonts/badaa6d1837432de.woff) format("woff")}@font-face{font-weight:600;font-family:Montserrat;font-style:normal;src:url(./fonts/63611593e008a77c.woff2) format("woff2"),url(./fonts/3cdd7fabbe89d2b9.woff) format("woff")}@font-face{font-weight:400;font-family:Inter;font-style:normal;src:url(./fonts/d080ae18fd04e52c.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:700;font-family:Inter;font-style:normal;src:url(./fonts/11d5bc9f0cad36d1.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:500;font-family:Inter;font-style:normal;src:url(./fonts/242d04bef81519ae.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:600;font-family:Inter;font-style:normal;src:url(./fonts/cac2ba46e8c8adc9.woff2) format("woff2");font-variant-numeric:slashed-zero}@supports (font-variation-settings: normal){:root{font-family:InterVariable,sans-serif}}:root{font-feature-settings:"zero"}*{margin:0;padding:0;border:0;outline:none}*,:after,:before{box-sizing:border-box}:active,:focus{outline:0}a,a:visited,a:hover{-webkit-text-decoration:none;text-decoration:none}a:active,a:focus{outline:0}aside,footer,header,nav{display:block}body,html{width:100%;height:100%;font-size:100%;line-height:1}button,input,textarea,select{font-family:inherit}input::-ms-clear{display:none}button{background-color:transparent;cursor:pointer}button::-moz-focus-inner{padding:0;border:0}ul li{list-style:none}img{vertical-align:top}h1,h2,h3,h4,h5,h6{font-weight:inherit;font-size:inherit}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,input:-webkit-autofill:active{-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:var(--color-typo-brand);-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s}:root{--sapphire-100: #2355d7;--sapphire-90: #3564df;--sapphire-80: #4b75e2;--sapphire-70: #6186e6;--sapphire-60: #7797e9;--sapphire-50: #8da7ed;--sapphire-40: #9fb7f4;--sapphire-30: #b9caf4;--sapphire-20: #cfdaf7;--sapphire-10: #e5ebfb;--citrine-100: #ff7900;--citrine-90: #ff861a;--citrine-80: #ff9433;--citrine-70: #ffa14d;--citrine-60: #ffaf66;--citrine-50: #ffbc80;--citrine-40: #ffc999;--citrine-30: #ffd7b2;--citrine-20: #ffe4cc;--citrine-10: #fff2e5;--magenta-100: #bc2251;--magenta-90: #d8275d;--magenta-80: #dc3d6d;--magenta-70: #e15781;--magenta-60: #e46c91;--magenta-50: #e986a4;--magenta-40: #ed9cb4;--magenta-30: #f2b6c8;--magenta-20: #f6cbd8;--magenta-10: #fae5ec;--black-100: #000;--black-95: #0d0d0d;--black-90: #1a1a1a;--black-85: #262626;--black-80: #333;--black-75: #404040;--black-70: #4d4d4d;--black-65: #595959;--black-60: #666;--black-55: #737373;--black-50: #808080;--black-45: #8c8c8c;--black-40: #999;--black-35: #a6a6a6;--black-30: #b3b3b3;--black-25: #bfbfbf;--black-20: #ccc;--black-15: #d9d9d9;--black-10: #e6e6e6;--black-5: #f2f2f2;--white: #fff;--dark-blue: #0a38af;--blue-40: #a7bbef;--blue-20: #d3ddf7;--green: #1b770c;--red-tag: #f01406;--success-normal: #23b413;--success-bg-hover: #d5fbe2;--success-bg-active: #ebfdf1;--alarm-normal: #fdc023;--alarm-bg-hover: #fff0c7;--alarm-bg-active: #fff6de;--error-normal: #e64646;--error-bg-hover: #fadbdb;--error-bg-active: #fbe3e3;--disabled: #b3b3b3;--disabled-color: #b2b2b2;--light-text: var(--white);--dark-text: var(--black-100);--sapphire-normal: var(--sapphire-100);--sapphire-hover: #1b41a3;--sapphire-active: #122c70;--citrine-normal: var(--citrine-100);--citrine-hover: #e56d00;--citrine-active: #cc6100;--asphalt-border: var(--black-30);--asphalt-normal: var(--black-80);--asphalt-hover: var(--black-90);--asphalt-active: var(--black-100);--gray-normal: var(--black-5);--gray-hover: var(--black-10);--gray-active: var(--black-80);--white-normal: var(--white);--white-hover: var(--black-5);--white-transparent: rgba(255, 255, 255, .4);--white-active: var(--black-80);--red-normal: var(--error-normal);--red-hover: #e33030;--red-active: #dc1e1e;--green-normal: var(--green);--green-hover: #16610a;--green-active: #114a08;--counter-text: #ffa066;--button-height-ms: 16px;--button-height-xs: 24px;--button-height-s: 32px;--button-height-m: 40px;--button-height-l: 48px;--button-height-xl: 56px;--button-height-xxl: 64px;--select-search-height-l: 48px;--select-search-height-xxl: 64px;--select-search-options-height-desktop: 320px;--select-search-options-height-mobile: 264px;--control-default: var(--sapphire-20);--control-hover: var(--sapphire-40);--control-selected: var(--sapphire-100);--control-disabled: var(--black-10);--font-inter: "Inter", sans-serif;--font-montserrat: "Montserrat", sans-serif;--font-weight-text-regular: 400;--font-weight-text-medium: 500;--font-weight-text-semibold: 600;--font-weight-text-bold: 700;--font-weight-text-extrabold: 800;--font-weight-text-black: 900;--size-text-xs2: 8px;--size-text-xs: 10px;--size-text-s: 12px;--size-text-m: 14px;--size-text-l: 16px;--size-text-l2: 18px;--size-text-xl: 20px;--size-text-xl2: 24px;--size-text-2xl: 28px;--size-text-xl3: 32px;--size-text-xl4: 48px;--size-text-4xl: 52px;--size-text-xl5: 72px;--size-text-xl6: 96px;--line-height-text-2xs: 1em;--line-height-text-xxs: 1.125em;--line-height-text-xs: 1.1em;--line-height-text-s: 1.2em;--line-height-text-s1: 1.25em;--line-height-text-m: 1.3em;--line-height-text-m1: 1.35em;--line-height-text-l: 1.4em;--line-height-text-l1: 1.45em;--line-height-text-xl: 1.5em;--line-height-text-xl1: 1.5em;--control-radius-xs: 4px;--control-radius: 6px;--control-radius-s: 8px;--control-radius-m: 20px;--control-radius-l: 24px;--control-radius-xl: 32px;--control-radius-xxl: 40px;--control-input-radius: 12px;--control-border-width: 1px;--control-height-xl: 60px;--control-height-xxl: 60px;--control-height-l: var(--space-4xl);--control-height-m: var(--space-3xl);--control-height-s: var(--space-2xl);--control-height-xs: var(--space-xl);--control-box-size-s: var(--space-s);--control-box-size-m: var(--space-m);--control-box-size-l: var(--space-l);--control-space-xxl: var(--space-xl);--control-space-l: var(--space-xl);--control-space-m: var(--space-l);--control-space-s: var(--space-m);--control-space-xs: var(--space-s);--control-text-size-2xl: var(--size-text-xl);--control-text-size-xl: var(--size-text-xl3);--control-text-size-l: var(--size-text-l);--control-text-size-m: var(--size-text-m);--control-text-size-s: var(--size-text-s);--control-text-size-xs: var(--size-text-xs);--space-3xs: 2px;--space-2xs: 4px;--space-1xs: 6px;--space-xs: 8px;--space-xss: 10px;--space-s: 12px;--space-2s: 14px;--space-m: 16px;--space-2m: 18px;--space-l: 20px;--space-2l: 22px;--space-xl: 24px;--space-1xl: 28px;--space-2xl: 32px;--space-xxl: 40px;--space-3xl: 44px;--space-4xl: 48px;--space-4xxl: 64px;--space-5xl: 72px;--space-6xl: 96px;--box-shadow-active: 0 0 2px var(--sapphire-normal);--box-shadow-focus: 0px 0px 10px 2px #1389cc;--box-shadow-select-search: 0 3px 15px 0 rgba(31, 32, 35, .15);--select-search-input-top-l: -15%;--select-search-input-top-xxl: -35%;--container-width-xs: 375px;--container-width-s: 767px;--container-width-m: 960px;--container-width-l: 1280px;--container-width-xl: 1440px;--container-width-xxl: 1920px;--zindex-fixed: 1030;--sidebar-width-collapsed: 64px;--sidebar-width-expanded: 256px;--header-height: 64px;--sidebar-form-width-tablet: 369px;--sidebar-form-width-mobile: 309px;--tab-trail-height-m: 54px;--tab-trail-height-s: 30px;--accordion-icon-size-m: 48px;--accordion-icon-size-s: 36px}@supports (font-variation-settings: normal){:root{font-family:Inter,sans-serif}}:root{font-feature-settings:"zero";font-variant-numeric:slashed-zero}body{font-family:Inter,sans-serif;font-feature-settings:"zero";font-variant-numeric:slashed-zero;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
|
1
|
+
@font-face{font-weight:400;font-family:Montserrat;font-style:normal;src:url(./fonts/585d10920d676fcd.woff2) format("woff2"),url(./fonts/3b9f59412b17ff93.woff) format("woff")}@font-face{font-weight:700;font-family:Montserrat;font-style:normal;src:url(./fonts/f4d681a788c6d497.woff2) format("woff2"),url(./fonts/43b748f250df0f08.woff) format("woff")}@font-face{font-weight:300;font-family:Montserrat;font-style:normal;src:url(./fonts/ee3db32f0aadef5d.woff2) format("woff2"),url(./fonts/1a738bfdbc1e4d9d.woff) format("woff")}@font-face{font-weight:500;font-family:Montserrat;font-style:normal;src:url(./fonts/e51d2feb30084bc2.woff2) format("woff2"),url(./fonts/badaa6d1837432de.woff) format("woff")}@font-face{font-weight:600;font-family:Montserrat;font-style:normal;src:url(./fonts/63611593e008a77c.woff2) format("woff2"),url(./fonts/3cdd7fabbe89d2b9.woff) format("woff")}@font-face{font-weight:400;font-family:Inter;font-style:normal;src:url(./fonts/d080ae18fd04e52c.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:700;font-family:Inter;font-style:normal;src:url(./fonts/11d5bc9f0cad36d1.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:500;font-family:Inter;font-style:normal;src:url(./fonts/242d04bef81519ae.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:600;font-family:Inter;font-style:normal;src:url(./fonts/cac2ba46e8c8adc9.woff2) format("woff2");font-variant-numeric:slashed-zero}@supports (font-variation-settings: normal){:root{font-family:InterVariable,sans-serif}}:root{font-feature-settings:"zero"}*{margin:0;padding:0;border:0;outline:none}*,:after,:before{box-sizing:border-box}:active,:focus{outline:0}a,a:visited,a:hover{-webkit-text-decoration:none;text-decoration:none}a:active,a:focus{outline:0}aside,footer,header,nav{display:block}body,html{width:100%;height:100%;font-size:100%;line-height:1}button,input,textarea,select{font-family:inherit}input::-ms-clear{display:none}button{background-color:transparent;cursor:pointer}button::-moz-focus-inner{padding:0;border:0}ul li{list-style:none}img{vertical-align:top}h1,h2,h3,h4,h5,h6{font-weight:inherit;font-size:inherit}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,input:-webkit-autofill:active{-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:var(--color-typo-brand);-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s}:root{--sapphire-100: #2355d7;--sapphire-90: #3564df;--sapphire-80: #4b75e2;--sapphire-70: #6186e6;--sapphire-60: #7797e9;--sapphire-50: #8da7ed;--sapphire-40: #9fb7f4;--sapphire-30: #b9caf4;--sapphire-20: #cfdaf7;--sapphire-10: #e5ebfb;--citrine-100: #ff7900;--citrine-90: #ff861a;--citrine-80: #ff9433;--citrine-70: #ffa14d;--citrine-60: #ffaf66;--citrine-50: #ffbc80;--citrine-40: #ffc999;--citrine-30: #ffd7b2;--citrine-20: #ffe4cc;--citrine-10: #fff2e5;--magenta-100: #bc2251;--magenta-90: #d8275d;--magenta-80: #dc3d6d;--magenta-70: #e15781;--magenta-60: #e46c91;--magenta-50: #e986a4;--magenta-40: #ed9cb4;--magenta-30: #f2b6c8;--magenta-20: #f6cbd8;--magenta-10: #fae5ec;--black-100: #000;--black-95: #0d0d0d;--black-90: #1a1a1a;--black-85: #262626;--black-80: #333;--black-75: #404040;--black-70: #4d4d4d;--black-65: #595959;--black-60: #666;--black-55: #737373;--black-50: #808080;--black-45: #8c8c8c;--black-40: #999;--black-35: #a6a6a6;--black-30: #b3b3b3;--black-25: #bfbfbf;--black-20: #ccc;--black-15: #d9d9d9;--black-10: #e6e6e6;--black-5: #f2f2f2;--white: #fff;--dark-blue: #0a38af;--blue-40: #a7bbef;--blue-20: #d3ddf7;--green: #1b770c;--red-tag: #f01406;--success-normal: #23b413;--success-bg-hover: #d5fbe2;--success-bg-active: #ebfdf1;--alarm-normal: #fdc023;--alarm-bg-hover: #fff0c7;--alarm-bg-active: #fff6de;--error-normal: #e64646;--error-bg-hover: #fadbdb;--error-bg-active: #fbe3e3;--disabled: #b3b3b3;--disabled-color: #b2b2b2;--light-text: var(--white);--dark-text: var(--black-100);--sapphire-normal: var(--sapphire-100);--sapphire-hover: #1b41a3;--sapphire-active: #122c70;--citrine-normal: var(--citrine-100);--citrine-hover: #e56d00;--citrine-active: #cc6100;--asphalt-border: var(--black-30);--asphalt-normal: var(--black-80);--asphalt-hover: var(--black-90);--asphalt-active: var(--black-100);--gray-normal: var(--black-5);--gray-hover: var(--black-10);--gray-active: var(--black-80);--white-normal: var(--white);--white-hover: var(--black-5);--white-transparent: rgba(255, 255, 255, .4);--white-active: var(--black-80);--red-normal: var(--error-normal);--red-hover: #e33030;--red-active: #dc1e1e;--green-normal: var(--green);--green-hover: #16610a;--green-active: #114a08;--counter-text: #ffa066;--button-height-ms: 16px;--button-height-xs: 24px;--button-height-s: 32px;--button-height-m: 40px;--button-height-l: 48px;--button-height-xl: 56px;--button-height-xxl: 64px;--select-search-height-l: 48px;--select-search-height-xxl: 64px;--select-search-options-height-desktop: 320px;--select-search-options-height-mobile: 264px;--control-default: var(--sapphire-20);--control-hover: var(--sapphire-40);--control-selected: var(--sapphire-100);--control-disabled: var(--black-10);--font-inter: "Inter", sans-serif;--font-montserrat: "Montserrat", sans-serif;--font-weight-text-regular: 400;--font-weight-text-medium: 500;--font-weight-text-semibold: 600;--font-weight-text-bold: 700;--font-weight-text-extrabold: 800;--font-weight-text-black: 900;--size-text-xs2: 8px;--size-text-xs: 10px;--size-text-s: 12px;--size-text-m: 14px;--size-text-l: 16px;--size-text-l2: 18px;--size-text-xl: 20px;--size-text-xl2: 24px;--size-text-2xl: 28px;--size-text-xl3: 32px;--size-text-xl4: 48px;--size-text-4xl: 52px;--size-text-xl5: 72px;--size-text-xl6: 96px;--line-height-text-2xs: 1em;--line-height-text-xxs: 1.125em;--line-height-text-xs: 1.1em;--line-height-text-s: 1.2em;--line-height-text-s1: 1.25em;--line-height-text-m: 1.3em;--line-height-text-m1: 1.35em;--line-height-text-l: 1.4em;--line-height-text-l1: 1.45em;--line-height-text-xl: 1.5em;--line-height-text-xl1: 1.5em;--control-radius-xs: 4px;--control-radius: 6px;--control-radius-s: 8px;--control-radius-m: 20px;--control-radius-l: 24px;--control-radius-xl: 32px;--control-radius-xxl: 40px;--control-input-radius: 12px;--control-border-width: 1px;--control-height-xl: 60px;--control-height-xxl: 60px;--control-height-l: var(--space-4xl);--control-height-m: var(--space-3xl);--control-height-s: var(--space-2xl);--control-height-xs: var(--space-xl);--control-box-size-s: var(--space-s);--control-box-size-m: var(--space-m);--control-box-size-l: var(--space-l);--control-space-xxl: var(--space-xl);--control-space-l: var(--space-xl);--control-space-m: var(--space-l);--control-space-s: var(--space-m);--control-space-xs: var(--space-s);--control-text-size-2xl: var(--size-text-xl);--control-text-size-xl: var(--size-text-xl3);--control-text-size-l: var(--size-text-l);--control-text-size-m: var(--size-text-m);--control-text-size-s: var(--size-text-s);--control-text-size-xs: var(--size-text-xs);--space-3xs: 2px;--space-2xs: 4px;--space-1xs: 6px;--space-xs: 8px;--space-xss: 10px;--space-s: 12px;--space-2s: 14px;--space-m: 16px;--space-2m: 18px;--space-l: 20px;--space-2l: 22px;--space-xl: 24px;--space-1xl: 28px;--space-2xl: 32px;--space-2xxl: 36px;--space-xxl: 40px;--space-3xl: 44px;--space-4xl: 48px;--space-4xxl: 64px;--space-5xl: 72px;--space-6xl: 96px;--box-shadow-active: 0 0 2px var(--sapphire-normal);--box-shadow-focus: 0px 0px 10px 2px #1389cc;--box-shadow-select-search: 0 3px 15px 0 rgba(31, 32, 35, .15);--select-search-input-top-l: -15%;--select-search-input-top-xxl: -35%;--container-width-xs: 375px;--container-width-s: 767px;--container-width-m: 960px;--container-width-l: 1280px;--container-width-xl: 1440px;--container-width-xxl: 1920px;--zindex-fixed: 1030;--sidebar-width-collapsed: 64px;--sidebar-width-expanded: 256px;--header-height: 64px;--sidebar-form-width-tablet: 369px;--sidebar-form-width-mobile: 309px;--tab-trail-height-m: 54px;--tab-trail-height-s: 30px;--accordion-icon-size-m: 48px;--accordion-icon-size-s: 36px}@supports (font-variation-settings: normal){:root{font-family:Inter,sans-serif}}:root{font-feature-settings:"zero";font-variant-numeric:slashed-zero}body{font-family:Inter,sans-serif;font-feature-settings:"zero";font-variant-numeric:slashed-zero;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
|
@@ -33,12 +33,4 @@ export declare const DatePicker: import('react').MemoExoticComponent<import('rea
|
|
33
33
|
* значение из стейта (data)
|
34
34
|
*/
|
35
35
|
value?: string;
|
36
|
-
} & import('../Input/types').TInputProps &
|
37
|
-
size?: import('../Input').TSize;
|
38
|
-
variant?: import('../Input').TVariant;
|
39
|
-
className?: string;
|
40
|
-
wrapperClassName?: string;
|
41
|
-
label?: import('react').ReactNode;
|
42
|
-
autofocus?: boolean;
|
43
|
-
readonly?: boolean;
|
44
|
-
} & import('react').RefAttributes<HTMLInputElement>>>;
|
36
|
+
} & import('../Input/types').TInputProps & import('../Input').TAdditionalProps & import('react').RefAttributes<HTMLInputElement>>>;
|
@@ -5,7 +5,7 @@ import { c as cls, D as DatePickerModal } from "../../DatePickerModal-BM0BgzTb.j
|
|
5
5
|
import { useClickOutside } from "../../hooks/useClickOutside/useClickOutside.js";
|
6
6
|
import { formating } from "../../utils/index.js";
|
7
7
|
import { Button } from "../Button/Button.js";
|
8
|
-
import { Input } from "
|
8
|
+
import { I as Input } from "../../Input-BFFPzelg.js";
|
9
9
|
const DatePicker = memo(
|
10
10
|
forwardRef(
|
11
11
|
({ size, value, onChangeValue, name, before, ...props }, ref) => {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
import { TInputProps, TSize, TVariant } from './types';
|
2
|
+
import { TInputProps, TAddon, TIconAddon, TSize, TVariant } from './types';
|
3
3
|
|
4
|
-
export type
|
4
|
+
export type TAdditionalProps = {
|
5
5
|
/**
|
6
6
|
* Размер ввода.
|
7
7
|
*/
|
@@ -30,34 +30,18 @@ export type TProps = TInputProps & {
|
|
30
30
|
* Сделать ввод только для чтения.
|
31
31
|
*/
|
32
32
|
readonly?: boolean;
|
33
|
-
};
|
34
|
-
export declare const Input: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<TInputProps & {
|
35
|
-
/**
|
36
|
-
* Размер ввода.
|
37
|
-
*/
|
38
|
-
size?: TSize;
|
39
|
-
/**
|
40
|
-
* `Варианты отображения ввода. Может быть 'alert', 'success', 'default', 'default-gray', 'default-white'.`
|
41
|
-
*/
|
42
|
-
variant?: TVariant;
|
43
|
-
/**
|
44
|
-
* Дополнительный класс.
|
45
|
-
*/
|
46
|
-
className?: string;
|
47
|
-
/**
|
48
|
-
* Дополнительный класс для обертки поля ввода.
|
49
|
-
*/
|
50
|
-
wrapperClassName?: string;
|
51
33
|
/**
|
52
|
-
*
|
34
|
+
* Дополнительный слот справа.
|
53
35
|
*/
|
54
|
-
|
36
|
+
rightAddon?: TAddon;
|
55
37
|
/**
|
56
|
-
*
|
38
|
+
* Дополнительный слот слева.
|
57
39
|
*/
|
58
|
-
|
40
|
+
leftAddon?: TIconAddon;
|
59
41
|
/**
|
60
|
-
*
|
42
|
+
* Флаг, показывающий наличие кнопки очистки.
|
61
43
|
*/
|
62
|
-
|
63
|
-
}
|
44
|
+
withClearButton?: boolean;
|
45
|
+
};
|
46
|
+
export type TProps = TInputProps & TAdditionalProps;
|
47
|
+
export declare const Input: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<TInputProps & TAdditionalProps & import('react').RefAttributes<HTMLInputElement>>>;
|
@@ -1,122 +1,11 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
const l = "_l_1sn09_5";
|
10
|
-
const success = "_success_1sn09_124";
|
11
|
-
const alarm = "_alarm_1sn09_142";
|
12
|
-
const error = "_error_1sn09_160";
|
13
|
-
const disabled = "_disabled_1sn09_178";
|
14
|
-
const cls = {
|
15
|
-
"input-wrapper": "_input-wrapper_1sn09_2",
|
16
|
-
label,
|
17
|
-
"active-label": "_active-label_1sn09_18",
|
18
|
-
input,
|
19
|
-
s,
|
20
|
-
m,
|
21
|
-
l,
|
22
|
-
"default-gray": "_default-gray_1sn09_97",
|
23
|
-
"default-white": "_default-white_1sn09_109",
|
24
|
-
success,
|
25
|
-
alarm,
|
26
|
-
error,
|
27
|
-
disabled,
|
28
|
-
"has-label": "_has-label_1sn09_198"
|
29
|
-
};
|
30
|
-
const Input = memo(
|
31
|
-
forwardRef(
|
32
|
-
(props, ref) => {
|
33
|
-
const {
|
34
|
-
value,
|
35
|
-
className,
|
36
|
-
wrapperClassName,
|
37
|
-
variant = EInputVariant.DefaultGray,
|
38
|
-
type = "text",
|
39
|
-
autofocus,
|
40
|
-
readonly,
|
41
|
-
id,
|
42
|
-
onFocus,
|
43
|
-
onBlur,
|
44
|
-
label: label2,
|
45
|
-
disabled: disabled2,
|
46
|
-
size = "m",
|
47
|
-
...otherProps
|
48
|
-
} = props;
|
49
|
-
const [isFocused, setIsFocused] = useState(autofocus);
|
50
|
-
useEffect(() => {
|
51
|
-
if (autofocus) {
|
52
|
-
setIsFocused(true);
|
53
|
-
}
|
54
|
-
}, [autofocus]);
|
55
|
-
const handleBlur = (event) => {
|
56
|
-
const currentValue = event.currentTarget.value;
|
57
|
-
onBlur == null ? void 0 : onBlur(event);
|
58
|
-
if (currentValue) {
|
59
|
-
return;
|
60
|
-
}
|
61
|
-
setIsFocused(false);
|
62
|
-
};
|
63
|
-
const handleFocus = (event) => {
|
64
|
-
if (readonly) {
|
65
|
-
return;
|
66
|
-
}
|
67
|
-
setIsFocused(true);
|
68
|
-
onFocus == null ? void 0 : onFocus(event);
|
69
|
-
};
|
70
|
-
const mods = {
|
71
|
-
[cls.readonly]: disabled2 || readonly,
|
72
|
-
[cls.focused]: isFocused,
|
73
|
-
[cls.disabled]: disabled2 || readonly,
|
74
|
-
[cls["has-label"]]: !!label2
|
75
|
-
};
|
76
|
-
const labelClassNames = classNames(
|
77
|
-
cls.label,
|
78
|
-
{
|
79
|
-
[cls["active-label"]]: isFocused || value,
|
80
|
-
[cls.disabled]: disabled2 || readonly
|
81
|
-
},
|
82
|
-
className,
|
83
|
-
cls[size]
|
84
|
-
);
|
85
|
-
const inputClassNames = classNames(cls.input, mods, className, [
|
86
|
-
cls[variant],
|
87
|
-
cls[size]
|
88
|
-
]);
|
89
|
-
return /* @__PURE__ */ jsxs(
|
90
|
-
"div",
|
91
|
-
{
|
92
|
-
className: classNames(
|
93
|
-
cls["input-wrapper"],
|
94
|
-
cls[variant],
|
95
|
-
wrapperClassName
|
96
|
-
),
|
97
|
-
children: [
|
98
|
-
label2 && /* @__PURE__ */ jsx("label", { htmlFor: id, className: labelClassNames, children: label2 }),
|
99
|
-
/* @__PURE__ */ jsx(
|
100
|
-
"input",
|
101
|
-
{
|
102
|
-
ref,
|
103
|
-
type,
|
104
|
-
id,
|
105
|
-
className: inputClassNames,
|
106
|
-
onFocus: handleFocus,
|
107
|
-
onBlur: handleBlur,
|
108
|
-
readOnly: readonly,
|
109
|
-
value: value || "",
|
110
|
-
...otherProps
|
111
|
-
}
|
112
|
-
)
|
113
|
-
]
|
114
|
-
}
|
115
|
-
);
|
116
|
-
}
|
117
|
-
)
|
118
|
-
);
|
119
|
-
Input.displayName = "Input";
|
1
|
+
import "react/jsx-runtime";
|
2
|
+
import "../../index-CweZ_OcN.js";
|
3
|
+
import "react";
|
4
|
+
import "./constants.js";
|
5
|
+
import { I } from "../../Input-BFFPzelg.js";
|
6
|
+
import "../../hooks/useMergeRefs/useMergeRefs.js";
|
7
|
+
import "../../icons/Icon.js";
|
8
|
+
import "../Button/Button.js";
|
120
9
|
export {
|
121
|
-
Input
|
10
|
+
I as Input
|
122
11
|
};
|