mimir-ui-kit 1.35.0 → 1.35.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Input-B-gKQ9FT.js +219 -0
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/SelectSearch.css +1 -1
- package/dist/components/Button/Button.d.ts +36 -0
- package/dist/components/Button/Button.js +83 -75
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/Input/Input.d.ts +8 -0
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/Input/types.d.ts +6 -2
- package/dist/components/InputPassword/InputPassword.js +1 -1
- package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
- package/dist/components/OtpInput/OtpInput.js +1 -1
- package/dist/components/SelectSearch/SelectSearch.d.ts +1 -1
- package/dist/components/SelectSearch/SelectSearch.js +891 -860
- package/dist/components/SelectSearch/types.d.ts +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/Input-DGr0q5AJ.js +0 -210
@@ -0,0 +1,219 @@
|
|
1
|
+
import { jsxs as B, jsx as r, Fragment as X } from "react/jsx-runtime";
|
2
|
+
import { c as o } from "./index-DIxK0V-G.js";
|
3
|
+
import { memo as Y, forwardRef as Z, useState as R, useRef as $, useEffect as ee } from "react";
|
4
|
+
import { EInputVariant as se } from "./components/Input/constants.js";
|
5
|
+
import { useMergeRefs as te } from "./hooks/useMergeRefs/useMergeRefs.js";
|
6
|
+
import { Icon as ae } from "./icons/Icon.js";
|
7
|
+
import { Button as le } from "./components/Button/Button.js";
|
8
|
+
import './assets/Input.css';const re = "_label_1ftus_27", ne = "_input_1ftus_3", oe = "_focused_1ftus_82", ue = "_disabled_1ftus_88", ce = "_clear_1ftus_130", ie = "_s_1ftus_178", de = "_m_1ftus_193", fe = "_l_1ftus_27", _e = "_success_1ftus_250", me = "_alarm_1ftus_270", pe = "_error_1ftus_290", e = {
|
9
|
+
"input-wrapper": "_input-wrapper_1ftus_3",
|
10
|
+
"required-mark": "_required-mark_1ftus_17",
|
11
|
+
label: re,
|
12
|
+
"has-left-slot": "_has-left-slot_1ftus_42",
|
13
|
+
"active-label": "_active-label_1ftus_45",
|
14
|
+
input: ne,
|
15
|
+
"has-right-slot": "_has-right-slot_1ftus_79",
|
16
|
+
focused: oe,
|
17
|
+
"has-label": "_has-label_1ftus_85",
|
18
|
+
disabled: ue,
|
19
|
+
"addon-icon": "_addon-icon_1ftus_94",
|
20
|
+
"left-slot": "_left-slot_1ftus_98",
|
21
|
+
"right-slot": "_right-slot_1ftus_99",
|
22
|
+
clear: ce,
|
23
|
+
s: ie,
|
24
|
+
m: de,
|
25
|
+
l: fe,
|
26
|
+
"default-gray": "_default-gray_1ftus_223",
|
27
|
+
"default-white": "_default-white_1ftus_235",
|
28
|
+
success: _e,
|
29
|
+
alarm: me,
|
30
|
+
error: pe
|
31
|
+
}, z = (s) => {
|
32
|
+
var _, u;
|
33
|
+
if (!s)
|
34
|
+
return null;
|
35
|
+
switch (s.addonType) {
|
36
|
+
case "icon": {
|
37
|
+
const m = (_ = s.addonContent) == null ? void 0 : _.includes("16px"), b = (u = s.addonContent) == null ? void 0 : u.includes("24px");
|
38
|
+
return /* @__PURE__ */ r(
|
39
|
+
ae,
|
40
|
+
{
|
41
|
+
style: {
|
42
|
+
"--icon-size": o({
|
43
|
+
"16px": m,
|
44
|
+
"24px": b
|
45
|
+
})
|
46
|
+
},
|
47
|
+
className: e["addon-icon"],
|
48
|
+
iconName: s.addonContent
|
49
|
+
}
|
50
|
+
);
|
51
|
+
}
|
52
|
+
case "text":
|
53
|
+
return s.addonContent;
|
54
|
+
case "react-node":
|
55
|
+
return /* @__PURE__ */ r(X, { children: s.addonContent });
|
56
|
+
default:
|
57
|
+
return null;
|
58
|
+
}
|
59
|
+
}, he = Y(
|
60
|
+
Z(
|
61
|
+
(s, _) => {
|
62
|
+
const {
|
63
|
+
value: u,
|
64
|
+
className: m,
|
65
|
+
wrapperClassName: b,
|
66
|
+
rightSlotClassName: L,
|
67
|
+
requiredMarkClassName: j,
|
68
|
+
variant: A = se.DefaultGray,
|
69
|
+
type: D = "text",
|
70
|
+
autofocus: g,
|
71
|
+
readonly: n,
|
72
|
+
id: F,
|
73
|
+
onFocus: N,
|
74
|
+
onBlur: x,
|
75
|
+
label: d,
|
76
|
+
withClearButton: E,
|
77
|
+
disabled: t,
|
78
|
+
onChange: c,
|
79
|
+
rightAddon: M,
|
80
|
+
status: V,
|
81
|
+
leftAddon: O,
|
82
|
+
size: y = "m",
|
83
|
+
numbersOnly: S,
|
84
|
+
required: C,
|
85
|
+
maxLength: v,
|
86
|
+
...T
|
87
|
+
} = s, [f, w] = R(g), [p, I] = R(!!u), i = $(null), G = te(i, _);
|
88
|
+
ee(() => {
|
89
|
+
g && w(!0);
|
90
|
+
}, [g]);
|
91
|
+
const P = (a) => {
|
92
|
+
const l = a.currentTarget.value;
|
93
|
+
x == null || x(a), w(!1), I(!!l);
|
94
|
+
}, W = (a) => {
|
95
|
+
n || (w(!0), N == null || N(a));
|
96
|
+
}, H = () => {
|
97
|
+
i != null && i.current && (i.current.value = "", i.current.focus(), I(!1), c == null || c({
|
98
|
+
target: { value: "" }
|
99
|
+
}));
|
100
|
+
}, J = (a) => {
|
101
|
+
let l = a.target.value;
|
102
|
+
S && (l = l.replace(/\D/g, "")), v !== void 0 && (l = l.slice(0, v)), a.target.value = l, c == null || c(a), I(!!l);
|
103
|
+
}, h = z(O), k = z(M), K = {
|
104
|
+
[e.readonly]: t || n,
|
105
|
+
[e.focused]: f,
|
106
|
+
[e.disabled]: t || n,
|
107
|
+
[e["has-label"]]: !!d,
|
108
|
+
[e["has-left-slot"]]: !!h,
|
109
|
+
[e["has-right-slot"]]: !!k
|
110
|
+
}, q = f || p || !!u, Q = o(e.label, m, e[y], {
|
111
|
+
[e["active-label"]]: q,
|
112
|
+
[e.disabled]: t || n,
|
113
|
+
[e["has-left-slot"]]: !!h
|
114
|
+
}), U = o(e.input, K, m, [
|
115
|
+
e[A],
|
116
|
+
e[V ?? ""],
|
117
|
+
e[y]
|
118
|
+
]);
|
119
|
+
return /* @__PURE__ */ B(
|
120
|
+
"div",
|
121
|
+
{
|
122
|
+
className: o(
|
123
|
+
e["input-wrapper"],
|
124
|
+
e[A],
|
125
|
+
e[V ?? ""],
|
126
|
+
e[y],
|
127
|
+
{
|
128
|
+
[e.disabled]: t || n,
|
129
|
+
[e.focused]: f
|
130
|
+
},
|
131
|
+
b
|
132
|
+
),
|
133
|
+
children: [
|
134
|
+
d && /* @__PURE__ */ B("label", { htmlFor: F, className: Q, children: [
|
135
|
+
d,
|
136
|
+
C && (p || f) && /* @__PURE__ */ r(
|
137
|
+
"span",
|
138
|
+
{
|
139
|
+
className: e["required-mark"],
|
140
|
+
"data-testid": "required-mark"
|
141
|
+
}
|
142
|
+
)
|
143
|
+
] }),
|
144
|
+
h && /* @__PURE__ */ r(
|
145
|
+
"span",
|
146
|
+
{
|
147
|
+
className: o(e["left-slot"], {
|
148
|
+
[e.focused]: q,
|
149
|
+
[e["has-label"]]: !!d,
|
150
|
+
[e.disabled]: t
|
151
|
+
}),
|
152
|
+
children: h
|
153
|
+
}
|
154
|
+
),
|
155
|
+
/* @__PURE__ */ r(
|
156
|
+
"input",
|
157
|
+
{
|
158
|
+
ref: G,
|
159
|
+
type: D,
|
160
|
+
id: F,
|
161
|
+
className: U,
|
162
|
+
onFocus: W,
|
163
|
+
onBlur: P,
|
164
|
+
readOnly: n,
|
165
|
+
value: u,
|
166
|
+
onChange: J,
|
167
|
+
maxLength: v,
|
168
|
+
disabled: t,
|
169
|
+
required: C,
|
170
|
+
...T
|
171
|
+
}
|
172
|
+
),
|
173
|
+
k && /* @__PURE__ */ r(
|
174
|
+
"span",
|
175
|
+
{
|
176
|
+
className: o(e["right-slot"], L, {
|
177
|
+
[e.focused]: q,
|
178
|
+
[e["has-label"]]: !!d,
|
179
|
+
[e.disabled]: t
|
180
|
+
}),
|
181
|
+
children: k
|
182
|
+
}
|
183
|
+
),
|
184
|
+
C && !p && !f && /* @__PURE__ */ r(
|
185
|
+
"span",
|
186
|
+
{
|
187
|
+
className: o(
|
188
|
+
e["required-mark"],
|
189
|
+
j
|
190
|
+
),
|
191
|
+
"data-testid": "required-mark"
|
192
|
+
}
|
193
|
+
),
|
194
|
+
E && p && /* @__PURE__ */ r(
|
195
|
+
le,
|
196
|
+
{
|
197
|
+
tabIndex: -1,
|
198
|
+
className: e.clear,
|
199
|
+
isIconButton: !0,
|
200
|
+
iconName: "Close16px",
|
201
|
+
size: "m-s",
|
202
|
+
clear: !0,
|
203
|
+
disabled: t || n,
|
204
|
+
variant: "secondary-gray",
|
205
|
+
onClick: H,
|
206
|
+
"data-testid": "clear-button"
|
207
|
+
}
|
208
|
+
)
|
209
|
+
]
|
210
|
+
}
|
211
|
+
);
|
212
|
+
}
|
213
|
+
)
|
214
|
+
);
|
215
|
+
he.displayName = "Input";
|
216
|
+
export {
|
217
|
+
he as I,
|
218
|
+
e as c
|
219
|
+
};
|
package/dist/assets/Button.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
._button_1kw2t_2{--button-cursor: pointer;display:inline-flex;flex-shrink:0;align-items:center;box-sizing:border-box;max-width:100%;height:var(--button-height);padding:0 var(--button-space);overflow:hidden;color:var(--button-color);font-weight:var(--mimir-font-weight-text-semibold);font-size:var(--button-font-size);font-family:var(--mimir-font-inter);line-height:var(--mimir-line-height-text-s1);white-space:nowrap;text-transform:uppercase;-webkit-text-decoration:none;text-decoration:none;text-overflow:ellipsis;-moz-column-gap:var(--button-gap);column-gap:var(--button-gap);background:var(--button-bg-color);border:none;border-color:var(--border-color);cursor:pointer;cursor:var(--button-cursor);transition:background-color .3s ease,border-color .15s ease,box-shadow .15s ease,color .15s ease,fill .15s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none}._button_1kw2t_2:hover{color:var(--button-color-hover);background:var(--button-bg-color-hover);border-color:var(--border-color-hover)}._button_1kw2t_2:active{color:var(--button-color-active);background:var(--button-bg-color-active);border-color:var(--border-color-active)}._button_1kw2t_2:focus-visible{box-shadow:0 0 2px var(--sapphire-normal)}._button_1kw2t_2._clear_1kw2t_42:focus{box-shadow:none}._button_1kw2t_2 svg{color:currentcolor;fill:currentcolor}._button_1kw2t_2 svg path{color:currentcolor;fill:currentcolor}._default-button_1kw2t_54._primary-sapphire_1kw2t_54{--button-bg-color: var(--sapphire-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--sapphire-active);--button-bg-color-hover: var(--sapphire-hover);--button-color: var(--light-text);--button-border: transparent}._default-button_1kw2t_54._primary-citrine_1kw2t_63{--button-bg-color: var(--citrine-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--citrine-active);--button-bg-color-hover: var(--citrine-hover);--button-color: var(--light-text);--button-border: transparent}._default-button_1kw2t_54._secondary-asphalt_1kw2t_72{--button-bg-color: var(--asphalt-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--asphalt-active);--button-bg-color-hover: var(--asphalt-hover);--button-color: var(--light-text);--button-border: transparent}._default-button_1kw2t_54._secondary-gray_1kw2t_81{--button-bg-color: var(--gray-normal);--button-color-hover: var(--counter-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--gray-active);--button-bg-color-hover: var(--gray-hover);--button-color: var(--dark-text);--button-border: transparent}._default-button_1kw2t_54._secondary-white_1kw2t_90{--button-bg-color: var(--white-normal);--button-color-hover: var(--counter-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--white-active);--button-bg-color-hover: var(--white);--button-color: var(--dark-text);--button-border: transparent}._default-button_1kw2t_54._secondary-red_1kw2t_99{--button-bg-color: var(--red-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--red-active);--button-bg-color-hover: var(--red-hover);--button-color: var(--light-text);--button-border: transparent}._round-button_1kw2t_109{--button-border-radius-l: 24px;--button-border-radius-m: 20px;--button-border-radius-s: 16px;--button-border-radius-xs: 12px;--button-space-l: var(--mimir-space-s);--button-space-m: var(--mimir-space-xs);--button-space-s: var(--mimir-space-xs);--button-space-xs: var(--mimir-space-2xs);border-radius:var(--button-border-radius)}._round-button_1kw2t_109._black_1kw2t_120{--button-bg-color: var(--asphalt-normal);--button-bg-color-hover: var(--asphalt-hover);--button-bg-color-active: var(--sapphire-normal);--button-bg-color-focus: var(--sapphire-normal);--button-color: var(--light-text);--button-color-hover: var(--light-text);--button-color-active: var(--light-text)}._round-button_1kw2t_109._gray_1kw2t_129{--button-bg-color: var(--gray-normal);--button-bg-color-hover: var(--gray-hover);--button-bg-color-active: var(--sapphire-normal);--button-bg-color-focus: var(--sapphire-normal);--button-color: var(--asphalt-normal);--button-color-hover: var(--asphalt-hover);--button-color-active: var(--light-text)}._round-button_1kw2t_109._white_1kw2t_138{--button-bg-color: var(--white-normal);--button-bg-color-hover: var(--white-hover);--button-bg-color-active: var(--sapphire-normal);--button-bg-color-focus: var(--sapphire-normal);--button-color: var(--asphalt-normal);--button-color-hover: var(--asphalt-hover);--button-color-active: var(--light-text)}._outline-button_1kw2t_148{--button-bg-color: transparent;--button-bg-color-hover: transparent;--button-bg-color-active: transparent;--button-bg-color-focus: transparent;border:1px solid var(--border-color)}._outline-button_1kw2t_148._outline-asphalt_1kw2t_155{--border-color: var(--disabled-color);--button-color: var(--black-80);--border-color-hover: var(--black-80);--button-color-hover: var(--black-80);--border-color-active: var(--black-100);--button-color-active: var(--black-100)}._outline-button_1kw2t_148._outline-gray_1kw2t_163{--border-color: var(--black-5);--button-color: var(--black-5);--border-color-hover: var(--black-5);--button-color-hover: var(--counter-text);--border-color-active: var(--black-80);--button-color-active: var(--white);--button-bg-color-active: var(--black-80)}._outline-button_1kw2t_148._outline-white_1kw2t_172{--border-color: var(--white);--button-color: var(--white);--border-color-hover: var(--white);--button-color-hover: var(--counter-text);--border-color-active: var(--black-80);--button-color-active: var(--white);--button-bg-color-active: var(--black-80)}._outline-button_1kw2t_148._outline-red_1kw2t_181{--border-color: var(--error-normal);--button-color: var(--error-normal);--border-color-hover: var(--red-hover);--button-color-hover: var(--red-hover);--border-color-active: var(--red-active);--button-color-active: var(--white);--button-bg-color-active: var(--red-active)}._borderless-button_1kw2t_191{--button-bg-color: transparent;--button-bg-color-hover: transparent;--button-bg-color-active: transparent;--button-bg-color-focus: transparent}._borderless-button_1kw2t_191._borderless-asphalt_1kw2t_197{--button-color: var(--black-80);--button-color-hover: var(--counter-text);--button-color-active: var(--black-100)}._borderless-button_1kw2t_191._borderless-gray_1kw2t_202{--button-color: var(--black-5);--button-color-hover: var(--counter-text);--button-color-active: var(--black-80)}._borderless-button_1kw2t_191._borderless-white_1kw2t_207{--button-color: var(--white);--button-color-hover: var(--counter-text);--button-color-active: var(--black-80)}._borderless-button_1kw2t_191._borderless-red_1kw2t_212{--button-color: var(--error-normal);--button-color-hover: var(--red-hover);--button-color-active: var(--red-active)}._default-button_1kw2t_54,._outline-button_1kw2t_148,._borderless-button_1kw2t_191{--button-space-xxl: var(--mimir-control-space-xxl);--button-space-xl: var(--mimir-control-space-l);--button-space-l: var(--mimir-space-m);--button-space-m: var(--mimir-space-m);--button-space-s: var(--mimir-space-xs);--button-space-xs: var(--mimir-space-2xs);--button-border-radius-xxl: var(--mimir-control-radius-s);--button-border-radius-xl: var(--mimir-control-radius-s);--button-border-radius-l: var(--mimir-control-radius);--button-border-radius-m: var(--mimir-control-radius);--button-border-radius-s: var(--mimir-control-radius-xs);--button-border-radius-xs: var(--mimir-control-radius-xs);border-radius:var(--button-border-radius)}._xs_1kw2t_236{--button-height: var(--button-height-xs);--button-font-size: var(--mimir-control-text-size-xs);--button-space: var(--button-space-xs);--button-gap: 4px;--button-border-radius: var(--button-border-radius-s)}._m-s_1kw2t_244{--button-height: var(--button-height-ms);--button-border-radius: var(--button-border-radius-s);font-weight:var(--mimir-font-weight-text-regular);--button-gap: var(--mimir-space-2xs);--button-font-size: var(--mimir-size-text-s)}._s_1kw2t_72{--button-height: var(--button-height-s);--button-font-size: var(--mimir-control-text-size-s);--button-space: var(--button-space-s);--button-gap: 4px;--button-border-radius: var(--button-border-radius-s)}._m_1kw2t_244{--button-height: var(--button-height-m);--button-font-size: var(--mimir-size-text-m);--button-space: var(--button-space-m);--button-gap: 8px;--button-border-radius: var(--button-border-radius-m)}._l_1kw2t_268{--button-height: var(--button-height-l);--button-font-size: var(--mimir-size-text-m);--button-space: var(--button-space-l);--button-gap: 8px;--button-border-radius: var(--button-border-radius-l)}._xl_1kw2t_276{--button-height: var(--button-height-xl);--button-space: var(--button-space-xl);--button-gap: 8px;--button-border-radius: var(--button-border-radius-xl);--button-font-size: var(--mimir-size-text-m);font-weight:var(--mimir-font-weight-text-medium)}._xxl_1kw2t_285{--button-height: var(--button-height-xxl);--button-space: var(--button-space-xxl);--button-border-radius: var(--button-border-radius-xxl);--button-gap: 8px;font-weight:var(--mimir-font-weight-text-medium);--button-font-size: var(--mimir-size-text-m)}._full_1kw2t_294{display:flex;justify-content:center;width:100%}._disabled_1kw2t_300{--button-cursor: not-allowed;color:var(--light-text);background-color:var(--disabled)}._disabled_1kw2t_300:hover,._disabled_1kw2t_300:active,._disabled_1kw2t_300:focus{color:var(--light-text);background-color:var(--disabled);box-shadow:none}._disabled_1kw2t_300._outline-button_1kw2t_148{color:var(--disabled);background-color:transparent;border:1px solid var(--disabled)}._disabled_1kw2t_300._borderless-button_1kw2t_191{color:var(--disabled-color);background-color:transparent}._icon-button_1kw2t_320{justify-content:center;min-width:var(--button-height);padding:0}
|
1
|
+
._button_1qnsv_2{--button-cursor: pointer;display:inline-flex;flex-shrink:0;align-items:center;box-sizing:border-box;max-width:100%;height:var(--button-height);padding:0 var(--button-space);overflow:hidden;color:var(--button-color);font-weight:var(--mimir-font-weight-text-semibold);font-size:var(--button-font-size);font-family:var(--mimir-font-inter);line-height:var(--mimir-line-height-text-s1);white-space:nowrap;text-transform:uppercase;-webkit-text-decoration:none;text-decoration:none;text-overflow:ellipsis;-moz-column-gap:var(--button-gap);column-gap:var(--button-gap);background:var(--button-bg-color);border:none;border-color:var(--border-color);cursor:pointer;cursor:var(--button-cursor);transition:background-color .3s ease,border-color .15s ease,box-shadow .15s ease,color .15s ease,fill .15s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none}._button_1qnsv_2:hover{color:var(--button-color-hover);background:var(--button-bg-color-hover);border-color:var(--border-color-hover)}._button_1qnsv_2:active{color:var(--button-color-active);background:var(--button-bg-color-active);border-color:var(--border-color-active)}._button_1qnsv_2:focus-visible{box-shadow:0 0 2px var(--sapphire-normal)}._button_1qnsv_2._clear_1qnsv_42:focus{box-shadow:none}._button_1qnsv_2 svg{color:currentcolor;fill:currentcolor}._button_1qnsv_2 svg path{color:currentcolor;fill:currentcolor}._button_1qnsv_2 ._count_1qnsv_53{color:var(--button-count-color);font-weight:var(--mimir-font-weight-text-bold);font-size:var(--button-count-font-size);border:none;outline:none}._default-button_1qnsv_61{--button-count-color: var(--counter-text)}._default-button_1qnsv_61._primary-sapphire_1qnsv_64{--button-bg-color: var(--sapphire-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--sapphire-active);--button-bg-color-hover: var(--sapphire-hover);--button-color: var(--light-text);--button-border: transparent}._default-button_1qnsv_61._primary-citrine_1qnsv_73{--button-bg-color: var(--citrine-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--citrine-active);--button-bg-color-hover: var(--citrine-hover);--button-color: var(--light-text);--button-border: transparent;--button-count-color: var(--dark-text)}._default-button_1qnsv_61._secondary-asphalt_1qnsv_83{--button-bg-color: var(--asphalt-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--asphalt-active);--button-bg-color-hover: var(--asphalt-hover);--button-color: var(--light-text);--button-border: transparent}._default-button_1qnsv_61._secondary-gray_1qnsv_92{--button-bg-color: var(--gray-normal);--button-color-hover: var(--counter-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--gray-active);--button-bg-color-hover: var(--gray-hover);--button-color: var(--dark-text);--button-border: transparent}._default-button_1qnsv_61._secondary-white_1qnsv_101{--button-bg-color: var(--white-normal);--button-color-hover: var(--counter-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--white-active);--button-bg-color-hover: var(--white);--button-color: var(--dark-text);--button-border: transparent}._default-button_1qnsv_61._secondary-red_1qnsv_110{--button-bg-color: var(--red-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--red-active);--button-bg-color-hover: var(--red-hover);--button-color: var(--light-text);--button-border: transparent}._round-button_1qnsv_120{--button-border-radius-l: 24px;--button-border-radius-m: 20px;--button-border-radius-s: 16px;--button-border-radius-xs: 12px;--button-space-l: var(--mimir-space-s);--button-space-m: var(--mimir-space-xs);--button-space-s: var(--mimir-space-xs);--button-space-xs: var(--mimir-space-2xs);--button-count-color: var(--counter-text);border-radius:var(--button-border-radius)}._round-button_1qnsv_120._black_1qnsv_132{--button-bg-color: var(--asphalt-normal);--button-bg-color-hover: var(--asphalt-hover);--button-bg-color-active: var(--sapphire-normal);--button-bg-color-focus: var(--sapphire-normal);--button-color: var(--light-text);--button-color-hover: var(--light-text);--button-color-active: var(--light-text)}._round-button_1qnsv_120._gray_1qnsv_141{--button-bg-color: var(--gray-normal);--button-bg-color-hover: var(--gray-hover);--button-bg-color-active: var(--sapphire-normal);--button-bg-color-focus: var(--sapphire-normal);--button-color: var(--asphalt-normal);--button-color-hover: var(--asphalt-hover);--button-color-active: var(--light-text)}._round-button_1qnsv_120._white_1qnsv_150{--button-bg-color: var(--white-normal);--button-bg-color-hover: var(--white-hover);--button-bg-color-active: var(--sapphire-normal);--button-bg-color-focus: var(--sapphire-normal);--button-color: var(--asphalt-normal);--button-color-hover: var(--asphalt-hover);--button-color-active: var(--light-text)}._outline-button_1qnsv_160{--button-bg-color: transparent;--button-bg-color-hover: transparent;--button-bg-color-active: transparent;--button-bg-color-focus: transparent;--button-count-color: var(--counter-text);border:1px solid var(--border-color)}._outline-button_1qnsv_160._outline-asphalt_1qnsv_168{--border-color: var(--disabled-color);--button-color: var(--black-80);--border-color-hover: var(--black-80);--button-color-hover: var(--black-80);--border-color-active: var(--black-100);--button-color-active: var(--black-100)}._outline-button_1qnsv_160._outline-gray_1qnsv_176{--border-color: var(--black-5);--button-color: var(--black-5);--border-color-hover: var(--black-5);--button-color-hover: var(--counter-text);--border-color-active: var(--black-80);--button-color-active: var(--white);--button-bg-color-active: var(--black-80)}._outline-button_1qnsv_160._outline-white_1qnsv_185{--border-color: var(--white);--button-color: var(--white);--border-color-hover: var(--white);--button-color-hover: var(--counter-text);--border-color-active: var(--black-80);--button-color-active: var(--white);--button-bg-color-active: var(--black-80)}._outline-button_1qnsv_160._outline-red_1qnsv_194{--border-color: var(--error-normal);--button-color: var(--error-normal);--border-color-hover: var(--red-hover);--button-color-hover: var(--red-hover);--border-color-active: var(--red-active);--button-color-active: var(--white);--button-bg-color-active: var(--red-active)}._borderless-button_1qnsv_204{--button-bg-color: transparent;--button-bg-color-hover: transparent;--button-bg-color-active: transparent;--button-bg-color-focus: transparent;--button-count-color: var(--counter-text)}._borderless-button_1qnsv_204._borderless-asphalt_1qnsv_211{--button-color: var(--black-80);--button-color-hover: var(--counter-text);--button-color-active: var(--black-100)}._borderless-button_1qnsv_204._borderless-gray_1qnsv_216{--button-color: var(--black-5);--button-color-hover: var(--counter-text);--button-color-active: var(--black-80)}._borderless-button_1qnsv_204._borderless-white_1qnsv_221{--button-color: var(--white);--button-color-hover: var(--counter-text);--button-color-active: var(--black-80)}._borderless-button_1qnsv_204._borderless-red_1qnsv_226{--button-color: var(--error-normal);--button-color-hover: var(--red-hover);--button-color-active: var(--red-active)}._default-button_1qnsv_61,._outline-button_1qnsv_160,._borderless-button_1qnsv_204{--button-space-xxl: var(--mimir-control-space-xxl);--button-space-xl: var(--mimir-control-space-l);--button-space-l: var(--mimir-space-m);--button-space-m: var(--mimir-space-m);--button-space-s: var(--mimir-space-xs);--button-space-xs: var(--mimir-space-2xs);--button-border-radius-xxl: var(--mimir-control-radius-s);--button-border-radius-xl: var(--mimir-control-radius-s);--button-border-radius-l: var(--mimir-control-radius);--button-border-radius-m: var(--mimir-control-radius);--button-border-radius-s: var(--mimir-control-radius-xs);--button-border-radius-xs: var(--mimir-control-radius-xs);border-radius:var(--button-border-radius)}._xs_1qnsv_250{--button-height: var(--button-height-xs);--button-font-size: var(--mimir-control-text-size-xs);--button-space: var(--button-space-xs);--button-gap: 4px;--button-border-radius: var(--button-border-radius-s);--button-count-font-size: var(--mimir-size-text-xs)}._m-s_1qnsv_259{--button-height: var(--button-height-ms);--button-border-radius: var(--button-border-radius-s);--button-gap: var(--mimir-space-2xs);--button-font-size: var(--mimir-size-text-s)}._s_1qnsv_83{--button-height: var(--button-height-s);--button-font-size: var(--mimir-control-text-size-s);--button-space: var(--button-space-s);--button-gap: 4px;--button-border-radius: var(--button-border-radius-s);--button-count-font-size: var(--mimir-size-text-s)}._m_1qnsv_259{--button-height: var(--button-height-m);--button-font-size: var(--mimir-size-text-m);--button-space: var(--button-space-m);--button-gap: 8px;--button-border-radius: var(--button-border-radius-m)}._l_1qnsv_283{--button-height: var(--button-height-l);--button-font-size: var(--mimir-size-text-m);--button-space: var(--button-space-l);--button-gap: 8px;--button-border-radius: var(--button-border-radius-l)}._xl_1qnsv_291{--button-height: var(--button-height-xl);--button-space: var(--button-space-xl);--button-gap: 8px;--button-border-radius: var(--button-border-radius-xl);--button-font-size: var(--mimir-size-text-m)}._xxl_1qnsv_299{--button-height: var(--button-height-xxl);--button-space: var(--button-space-xxl);--button-border-radius: var(--button-border-radius-xxl);--button-gap: 8px;--button-font-size: var(--mimir-size-text-m)}._xxl_1qnsv_299,._xl_1qnsv_291,._l_1qnsv_283,._m_1qnsv_259{--button-count-font-size: var(--mimir-size-text-m)}._full_1qnsv_314{display:flex;justify-content:center;width:100%}._disabled_1qnsv_320{--button-cursor: not-allowed;--button-count-color: var(--light-text);color:var(--light-text);background-color:var(--disabled)}._disabled_1qnsv_320:hover,._disabled_1qnsv_320:active,._disabled_1qnsv_320:focus{color:var(--light-text);background-color:var(--disabled);box-shadow:none}._disabled_1qnsv_320._outline-button_1qnsv_160{color:var(--disabled);background-color:transparent;border:1px solid var(--disabled)}._disabled_1qnsv_320._borderless-button_1qnsv_204{color:var(--disabled-color);background-color:transparent}._icon-button_1qnsv_341{justify-content:center;min-width:var(--button-height);padding:0}
|
package/dist/assets/Input.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
._input-wrapper_1rkts_3{--input-border-radius-l: 8px;--input-border-radius-m: 6px;--input-border-radius-s: 6px;--input-required-mark-size: 8px;position:relative;display:flex;padding:0 var(--mimir-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_1rkts_3 ._required-mark_1rkts_17{display:block;flex:0 0 var(--input-required-mark-size);align-self:center;width:var(--input-required-mark-size);height:var(--input-required-mark-size);margin-left:var(--mimir-space-m);background-color:var(--citrine-normal);border-radius:50%}._input-wrapper_1rkts_3 ._label_1rkts_27{--input-required-mark-size: 6px;position:absolute;top:calc(var(--input-height) / 2 - var(--input-font-size) / 2);left:var(--mimir-space-m);z-index:1;display:flex;color:var(--label-color);font-size:var(--input-font-size);white-space:nowrap;-moz-column-gap:var(--mimir-space-xs);column-gap:var(--mimir-space-xs);transform-origin:left center;transition:transform .15s ease-out,left .15s ease-out,color .15s ease-out;pointer-events:none}._input-wrapper_1rkts_3 ._label_1rkts_27._has-left-slot_1rkts_42{left:calc(var(--mimir-space-m) + var(--icon-size) + var(--clear-button-mg))}._input-wrapper_1rkts_3 ._label_1rkts_27._active-label_1rkts_45{transform:scale(var(--label-scaled)) translateY(calc(var(--input-font-size) * -1))}._input-wrapper_1rkts_3 ._label_1rkts_27._active-label_1rkts_45._has-left-slot_1rkts_42{left:calc(var(--mimir-space-m) + var(--icon-size) + var(--mimir-space-s));transform:scale(var(--label-scaled)) translate(calc((var(--mimir-space-m) + var(--left-addon-position)) * 2 * -1),calc(var(--input-font-size) * -1))}._input-wrapper_1rkts_3 ._label_1rkts_27._active-label_1rkts_45 ._required-mark_1rkts_17{margin-left:0;transform:scale(1.7)}._input-wrapper_1rkts_3 ._input_1rkts_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(--mimir-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_1rkts_3 ._input_1rkts_3._has-left-slot_1rkts_42{padding-left:0}._input-wrapper_1rkts_3 ._input_1rkts_3._has-right-slot_1rkts_79{padding-right:0}._input-wrapper_1rkts_3 ._input_1rkts_3._focused_1rkts_82{padding-top:0}._input-wrapper_1rkts_3 ._input_1rkts_3._has-label_1rkts_85{padding-top:var(--input-padding-position)}._input-wrapper_1rkts_3 ._input_1rkts_3._disabled_1rkts_88{color:var(--light-text)}._input-wrapper_1rkts_3 ._input_1rkts_3._disabled_1rkts_88:hover,._input-wrapper_1rkts_3 ._input_1rkts_3._disabled_1rkts_88:active,._input-wrapper_1rkts_3 ._input_1rkts_3._disabled_1rkts_88:focus{color:var(--light-text)}._input-wrapper_1rkts_3 ._left-slot_1rkts_94,._input-wrapper_1rkts_3 ._right-slot_1rkts_95{display:flex;align-items:center;height:var(--input-height);color:var(--black-60);font-size:var(--input-font-size);font-family:var(--mimir-font-inter);line-height:var(--input-line-height);background-color:inherit;transition:padding-top .15s ease-out}._input-wrapper_1rkts_3 ._left-slot_1rkts_94._focused_1rkts_82._has-label_1rkts_85,._input-wrapper_1rkts_3 ._right-slot_1rkts_95._focused_1rkts_82._has-label_1rkts_85{padding-top:var(--input-padding-position)}._input-wrapper_1rkts_3 ._left-slot_1rkts_94{justify-content:flex-end;margin-right:var(--clear-button-mg)}._input-wrapper_1rkts_3 ._right-slot_1rkts_95{margin-left:var(--clear-button-mg)}._input-wrapper_1rkts_3 ._addon-icon_1rkts_117{width:var(--icon-size);height:var(--icon-size)}._input-wrapper_1rkts_3 ._clear_1rkts_121{align-self:center;width:16px;height:16px;margin-left:var(--clear-button-mg)}._input-wrapper_1rkts_3 svg{color:currentcolor;fill:currentcolor}._input-wrapper_1rkts_3:hover ._label_1rkts_27,._input-wrapper_1rkts_3:focus-within ._label_1rkts_27{color:var(--label-color)}._input-wrapper_1rkts_3:hover{background-color:var(--input-bg-color-hover)}._input-wrapper_1rkts_3:focus-within{background-color:var(--input-bg-color-active);border-bottom:1px solid var(--input-bottom-color-active)}._input-wrapper_1rkts_3._focused_1rkts_82{color:var(--input-color-active);background-color:var(--input-bg-color-active)}._input-wrapper_1rkts_3._focused_1rkts_82:hover{background-color:var(--input-bg-color-hover)}._input-wrapper_1rkts_3._disabled_1rkts_88{--input-cursor: not-allowed;--label-color: var(--light-text);color:var(--light-text);background-color:var(--black-20);border-bottom:1px solid transparent}._input-wrapper_1rkts_3._disabled_1rkts_88:hover,._input-wrapper_1rkts_3._disabled_1rkts_88:active,._input-wrapper_1rkts_3._disabled_1rkts_88:focus{--label-color: var(--light-text);color:var(--light-text);background-color:var(--black-20);border-bottom:1px solid transparent;box-shadow:none}._input-wrapper_1rkts_3._disabled_1rkts_88::-moz-placeholder{color:var(--light-text)}._input-wrapper_1rkts_3._disabled_1rkts_88::placeholder{color:var(--light-text)}._input-wrapper_1rkts_3._disabled_1rkts_88:hover::-moz-placeholder{color:var(--light-text)}._input-wrapper_1rkts_3._disabled_1rkts_88:hover::placeholder{color:var(--light-text)}._s_1rkts_169{--input-height: var(--mimir-space-xxl);--input-font-size: var(--mimir-control-text-size-m);--input-line-height: var(--mimir-line-height-text-xs);--input-padding: var(--mimir-space-m);--input-padding-position: var(--mimir-space-1xs);--input-border-radius: var(--input-border-radius-s);--label-font-size: var(--mimir-size-text-xs);--label-scaled: .85;--label-spacing: var(--mimir-space-1xs);--clear-button-mg: var(--mimir-space-2xs);--icon-size: 16px;--left-addon-position: 0px}._m_1rkts_184{--input-height: var(--mimir-space-4xl);--input-font-size: var(--mimir-control-text-size-l);--input-line-height: var(--mimir-line-height-text-s1);--input-padding: var(--mimir-space-m);--input-padding-position: var(--mimir-space-xs);--input-border-radius: var(--input-border-radius-m);--label-font-size: var(--mimir-size-text-s);--label-scaled: .75;--label-spacing: var(--mimir-space-xs);--clear-button-mg: var(--mimir-space-2xs);--icon-size: 16px;--left-addon-position: var(--mimir-space-3xs)}._l_1rkts_27{--input-height: var(--mimir-space-4xxl);--input-font-size: var(--mimir-control-text-size-2xl);--input-line-height: var(--mimir-line-height-text-l);--input-padding: var(--mimir-space-m);--input-padding-position: var(--mimir-space-s);--input-border-radius: var(--input-border-radius-l);--label-font-size: var(--mimir-size-text-s);--label-scaled: .6;--label-spacing: var(--mimir-space-s);--clear-button-mg: var(--mimir-space-xs);--icon-size: 24px;--left-addon-position: var(--mimir-space-s)}._default-gray_1rkts_214{--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_1rkts_226{--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_1rkts_226:hover{--label-color: var(--dark-text)}._default-gray_1rkts_214._success_1rkts_241,._default-white_1rkts_226._success_1rkts_241{--input-bg-color: var(--success-bg-active);--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)}._default-gray_1rkts_214._success_1rkts_241::-moz-placeholder,._default-white_1rkts_226._success_1rkts_241::-moz-placeholder{color:var(--input-color)}._default-gray_1rkts_214._success_1rkts_241::placeholder,._default-white_1rkts_226._success_1rkts_241::placeholder{color:var(--input-color)}._default-gray_1rkts_214._success_1rkts_241:hover::-moz-placeholder,._default-white_1rkts_226._success_1rkts_241:hover::-moz-placeholder{color:var(--input-color)}._default-gray_1rkts_214._success_1rkts_241:hover::placeholder,._default-white_1rkts_226._success_1rkts_241:hover::placeholder{color:var(--input-color)}._default-gray_1rkts_214._alarm_1rkts_261,._default-white_1rkts_226._alarm_1rkts_261{--input-bg-color: var(--alarm-bg-active);--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)}._default-gray_1rkts_214._alarm_1rkts_261::-moz-placeholder,._default-white_1rkts_226._alarm_1rkts_261::-moz-placeholder{color:var(--input-color)}._default-gray_1rkts_214._alarm_1rkts_261::placeholder,._default-white_1rkts_226._alarm_1rkts_261::placeholder{color:var(--input-color)}._default-gray_1rkts_214._alarm_1rkts_261:hover::-moz-placeholder,._default-white_1rkts_226._alarm_1rkts_261:hover::-moz-placeholder{color:var(--input-color)}._default-gray_1rkts_214._alarm_1rkts_261:hover::placeholder,._default-white_1rkts_226._alarm_1rkts_261:hover::placeholder{color:var(--input-color)}._default-gray_1rkts_214._error_1rkts_281,._default-white_1rkts_226._error_1rkts_281{--input-bg-color: var(--error-bg-active);--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)}._default-gray_1rkts_214._error_1rkts_281::-moz-placeholder,._default-white_1rkts_226._error_1rkts_281::-moz-placeholder{color:var(--input-color)}._default-gray_1rkts_214._error_1rkts_281::placeholder,._default-white_1rkts_226._error_1rkts_281::placeholder{color:var(--input-color)}._default-gray_1rkts_214._error_1rkts_281:hover::-moz-placeholder,._default-white_1rkts_226._error_1rkts_281:hover::-moz-placeholder{color:var(--input-color)}._default-gray_1rkts_214._error_1rkts_281:hover::placeholder,._default-white_1rkts_226._error_1rkts_281:hover::placeholder{color:var(--input-color)}
|
1
|
+
._input-wrapper_1ftus_3{--input-border-radius-l: 8px;--input-border-radius-m: 6px;--input-border-radius-s: 6px;--input-required-mark-size: 8px;position:relative;display:flex;padding:0 var(--mimir-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_1ftus_3 ._required-mark_1ftus_17{display:block;flex:0 0 var(--input-required-mark-size);align-self:center;width:var(--input-required-mark-size);height:var(--input-required-mark-size);margin-left:var(--mimir-space-m);background-color:var(--citrine-normal);border-radius:50%}._input-wrapper_1ftus_3 ._label_1ftus_27{--input-required-mark-size: 6px;position:absolute;top:calc(var(--input-height) / 2 - var(--input-font-size) / 2);left:var(--mimir-space-m);z-index:1;display:flex;color:var(--label-color);font-size:var(--input-font-size);white-space:nowrap;-moz-column-gap:var(--mimir-space-xs);column-gap:var(--mimir-space-xs);transform-origin:left center;transition:transform .15s ease-out,left .15s ease-out,color .15s ease-out;pointer-events:none}._input-wrapper_1ftus_3 ._label_1ftus_27._has-left-slot_1ftus_42{left:calc(var(--mimir-space-m) + var(--icon-size) + var(--clear-button-mg))}._input-wrapper_1ftus_3 ._label_1ftus_27._active-label_1ftus_45{transform:scale(var(--label-scaled)) translateY(calc(var(--input-font-size) * -1))}._input-wrapper_1ftus_3 ._label_1ftus_27._active-label_1ftus_45._has-left-slot_1ftus_42{left:calc(var(--mimir-space-m) + var(--icon-size) + var(--mimir-space-s));transform:scale(var(--label-scaled)) translate(calc((var(--mimir-space-m) + var(--left-addon-position)) * 2 * -1),calc(var(--input-font-size) * -1))}._input-wrapper_1ftus_3 ._label_1ftus_27._active-label_1ftus_45 ._required-mark_1ftus_17{margin-left:0;transform:scale(1.7)}._input-wrapper_1ftus_3 ._input_1ftus_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(--mimir-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_1ftus_3 ._input_1ftus_3._has-left-slot_1ftus_42{padding-left:0}._input-wrapper_1ftus_3 ._input_1ftus_3._has-right-slot_1ftus_79{padding-right:0}._input-wrapper_1ftus_3 ._input_1ftus_3._focused_1ftus_82{padding-top:0}._input-wrapper_1ftus_3 ._input_1ftus_3._has-label_1ftus_85{padding-top:var(--input-padding-position)}._input-wrapper_1ftus_3 ._input_1ftus_3._disabled_1ftus_88{color:var(--light-text)}._input-wrapper_1ftus_3 ._input_1ftus_3._disabled_1ftus_88:hover,._input-wrapper_1ftus_3 ._input_1ftus_3._disabled_1ftus_88:active,._input-wrapper_1ftus_3 ._input_1ftus_3._disabled_1ftus_88:focus{color:var(--light-text)}._input-wrapper_1ftus_3 ._addon-icon_1ftus_94{width:var(--icon-size);height:var(--icon-size)}._input-wrapper_1ftus_3 ._left-slot_1ftus_98,._input-wrapper_1ftus_3 ._right-slot_1ftus_99{display:flex;align-items:center;height:var(--input-height);color:var(--black-60);font-size:var(--input-font-size);font-family:var(--mimir-font-inter);line-height:var(--input-line-height);background-color:inherit;transition:padding-top .15s ease-out}._input-wrapper_1ftus_3 ._left-slot_1ftus_98._focused_1ftus_82._has-label_1ftus_85,._input-wrapper_1ftus_3 ._right-slot_1ftus_99._focused_1ftus_82._has-label_1ftus_85{padding-top:var(--input-padding-position)}._input-wrapper_1ftus_3 ._left-slot_1ftus_98._disabled_1ftus_88,._input-wrapper_1ftus_3 ._right-slot_1ftus_99._disabled_1ftus_88{color:var(--white);cursor:not-allowed}._input-wrapper_1ftus_3 ._left-slot_1ftus_98._disabled_1ftus_88 ._addon-icon_1ftus_94 path,._input-wrapper_1ftus_3 ._right-slot_1ftus_99._disabled_1ftus_88 ._addon-icon_1ftus_94 path{fill:var(--white)}._input-wrapper_1ftus_3 ._left-slot_1ftus_98{justify-content:flex-end;margin-right:var(--clear-button-mg)}._input-wrapper_1ftus_3 ._right-slot_1ftus_99{margin-left:var(--clear-button-mg)}._input-wrapper_1ftus_3 ._clear_1ftus_130{align-self:center;width:16px;height:16px;margin-left:var(--clear-button-mg)}._input-wrapper_1ftus_3 svg{color:currentcolor;fill:currentcolor}._input-wrapper_1ftus_3:hover ._label_1ftus_27,._input-wrapper_1ftus_3:focus-within ._label_1ftus_27{color:var(--label-color)}._input-wrapper_1ftus_3:hover{background-color:var(--input-bg-color-hover)}._input-wrapper_1ftus_3:focus-within{background-color:var(--input-bg-color-active);border-bottom:1px solid var(--input-bottom-color-active)}._input-wrapper_1ftus_3._focused_1ftus_82{color:var(--input-color-active);background-color:var(--input-bg-color-active)}._input-wrapper_1ftus_3._focused_1ftus_82:hover{background-color:var(--input-bg-color-hover)}._input-wrapper_1ftus_3._disabled_1ftus_88{--input-cursor: not-allowed;--label-color: var(--light-text);color:var(--light-text);background-color:var(--black-20);border-bottom:1px solid transparent}._input-wrapper_1ftus_3._disabled_1ftus_88:hover,._input-wrapper_1ftus_3._disabled_1ftus_88:active,._input-wrapper_1ftus_3._disabled_1ftus_88:focus{--label-color: var(--light-text);color:var(--light-text);background-color:var(--black-20);border-bottom:1px solid transparent;box-shadow:none}._input-wrapper_1ftus_3._disabled_1ftus_88::-moz-placeholder{color:var(--light-text)}._input-wrapper_1ftus_3._disabled_1ftus_88::placeholder{color:var(--light-text)}._input-wrapper_1ftus_3._disabled_1ftus_88:hover::-moz-placeholder{color:var(--light-text)}._input-wrapper_1ftus_3._disabled_1ftus_88:hover::placeholder{color:var(--light-text)}._s_1ftus_178{--input-height: var(--mimir-space-xxl);--input-font-size: var(--mimir-control-text-size-m);--input-line-height: var(--mimir-line-height-text-xs);--input-padding: var(--mimir-space-m);--input-padding-position: var(--mimir-space-1xs);--input-border-radius: var(--input-border-radius-s);--label-font-size: var(--mimir-size-text-xs);--label-scaled: .85;--label-spacing: var(--mimir-space-1xs);--clear-button-mg: var(--mimir-space-2xs);--icon-size: 16px;--left-addon-position: 0px}._m_1ftus_193{--input-height: var(--mimir-space-4xl);--input-font-size: var(--mimir-control-text-size-l);--input-line-height: var(--mimir-line-height-text-s1);--input-padding: var(--mimir-space-m);--input-padding-position: var(--mimir-space-xs);--input-border-radius: var(--input-border-radius-m);--label-font-size: var(--mimir-size-text-s);--label-scaled: .75;--label-spacing: var(--mimir-space-xs);--clear-button-mg: var(--mimir-space-2xs);--icon-size: 16px;--left-addon-position: var(--mimir-space-3xs)}._l_1ftus_27{--input-height: var(--mimir-space-4xxl);--input-font-size: var(--mimir-control-text-size-2xl);--input-line-height: var(--mimir-line-height-text-l);--input-padding: var(--mimir-space-m);--input-padding-position: var(--mimir-space-s);--input-border-radius: var(--input-border-radius-l);--label-font-size: var(--mimir-size-text-s);--label-scaled: .6;--label-spacing: var(--mimir-space-s);--clear-button-mg: var(--mimir-space-xs);--icon-size: 24px;--left-addon-position: var(--mimir-space-s)}._default-gray_1ftus_223{--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_1ftus_235{--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_1ftus_235:hover{--label-color: var(--dark-text)}._default-gray_1ftus_223._success_1ftus_250,._default-white_1ftus_235._success_1ftus_250{--input-bg-color: var(--success-bg-active);--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)}._default-gray_1ftus_223._success_1ftus_250::-moz-placeholder,._default-white_1ftus_235._success_1ftus_250::-moz-placeholder{color:var(--input-color)}._default-gray_1ftus_223._success_1ftus_250::placeholder,._default-white_1ftus_235._success_1ftus_250::placeholder{color:var(--input-color)}._default-gray_1ftus_223._success_1ftus_250:hover::-moz-placeholder,._default-white_1ftus_235._success_1ftus_250:hover::-moz-placeholder{color:var(--input-color)}._default-gray_1ftus_223._success_1ftus_250:hover::placeholder,._default-white_1ftus_235._success_1ftus_250:hover::placeholder{color:var(--input-color)}._default-gray_1ftus_223._alarm_1ftus_270,._default-white_1ftus_235._alarm_1ftus_270{--input-bg-color: var(--alarm-bg-active);--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)}._default-gray_1ftus_223._alarm_1ftus_270::-moz-placeholder,._default-white_1ftus_235._alarm_1ftus_270::-moz-placeholder{color:var(--input-color)}._default-gray_1ftus_223._alarm_1ftus_270::placeholder,._default-white_1ftus_235._alarm_1ftus_270::placeholder{color:var(--input-color)}._default-gray_1ftus_223._alarm_1ftus_270:hover::-moz-placeholder,._default-white_1ftus_235._alarm_1ftus_270:hover::-moz-placeholder{color:var(--input-color)}._default-gray_1ftus_223._alarm_1ftus_270:hover::placeholder,._default-white_1ftus_235._alarm_1ftus_270:hover::placeholder{color:var(--input-color)}._default-gray_1ftus_223._error_1ftus_290,._default-white_1ftus_235._error_1ftus_290{--input-bg-color: var(--error-bg-active);--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)}._default-gray_1ftus_223._error_1ftus_290::-moz-placeholder,._default-white_1ftus_235._error_1ftus_290::-moz-placeholder{color:var(--input-color)}._default-gray_1ftus_223._error_1ftus_290::placeholder,._default-white_1ftus_235._error_1ftus_290::placeholder{color:var(--input-color)}._default-gray_1ftus_223._error_1ftus_290:hover::-moz-placeholder,._default-white_1ftus_235._error_1ftus_290:hover::-moz-placeholder{color:var(--input-color)}._default-gray_1ftus_223._error_1ftus_290:hover::placeholder,._default-white_1ftus_235._error_1ftus_290:hover::placeholder{color:var(--input-color)}
|
@@ -1 +1 @@
|
|
1
|
-
._select-
|
1
|
+
._select-search_7p4d9_2{position:relative}._select-search_7p4d9_2._disabled_7p4d9_5{cursor:not-allowed}._container_7p4d9_9{display:block;gap:var(--mimir-select-search-gap);align-items:center;justify-content:space-between;height:var(--mimir-select-search-height);background-color:var(--black-5);border-radius:var(--mimir-select-search-radius)}._container-open_7p4d9_18{border-bottom:1px solid var(--citrine-100)}._full_7p4d9_22{width:100%}._selected-icon_7p4d9_26 path{fill:var(--sapphire-100)}._selector-icon-open_7p4d9_30{transform:rotate(180deg)}._button_7p4d9_34{display:flex;align-items:center;background:none;border:none;cursor:pointer}._button_7p4d9_34._disabled_7p4d9_5{cursor:not-allowed}._button_7p4d9_34._disabled_7p4d9_5 ._selector-icon_7p4d9_30 path{fill:var(--white)}._options_7p4d9_48{position:absolute;z-index:10;width:100%;min-height:100%;max-height:var(--mimir-select-search-options-height);overflow-y:auto;font-size:var(--mimir-size-text-l);background:var(--white);box-shadow:var(--mimir-box-shadow-select-search)}._options_7p4d9_48._top_7p4d9_59{bottom:100%;margin-bottom:1px;border-radius:var(--mimir-select-search-radius) var(--mimir-select-search-radius) 0 0}._options_7p4d9_48._bottom_7p4d9_64{top:100%;margin-top:1px;border-radius:0 0 var(--mimir-select-search-radius) var(--mimir-select-search-radius)}._options_7p4d9_48::-webkit-scrollbar{width:3px}._options_7p4d9_48::-webkit-scrollbar-thumb{background-color:var(--black-80);border-radius:2px}._options_7p4d9_48::-webkit-scrollbar-track{background-color:var(--white)}@media (max-width: 600px){._options_7p4d9_48{max-height:var(--mimir-select-search-options-height-mobile)}}._no-options_7p4d9_85{height:100%;padding:var(--mimir-select-search-option-space);color:var(--black-80)}._m_7p4d9_91{--mimir-select-search-height: var(--mimir-select-search-height-l);--mimir-select-search-space: var(--mimir-space-xss) var(--mimir-space-m);--mimir-select-search-radius: var(--mimir-control-radius);--mimir-select-search-gap: var(--mimir-space-2xs);--mimir-select-search-btn-space: var(--mimir-space-m) var(--mimir-space-m) var(--mimir-space-m) var(--mimir-space-xs);--mimir-select-search-option-space: var(--mimir-space-2s) var(--mimir-space-m);--mimir-select-search-options-height: var( --mimir-select-search-options-height-mobile );--clear-right: var(--mimir-space-2xxl)}._l_7p4d9_105{--mimir-select-search-height: var(--mimir-select-search-height-xxl);--mimir-select-search-space: var(--mimir-space-xss) var(--mimir-space-m);--mimir-select-search-radius: var(--mimir-control-radius-s);--mimir-select-search-gap: var(--mimir-space-xs);--mimir-select-search-btn-space: var(--mimir-space-l) var(--mimir-space-m) var(--mimir-space-l) var(--mimir-space-xs);--mimir-select-search-option-space: var(--mimir-space-2l) var(--mimir-space-m);--mimir-select-search-options-height: var( --mimir-select-search-options-height-desktop );--clear-right: var(--mimir-space-4xl)}._custom-input-class_7p4d9_119{width:100%!important}._custom-input-class_7p4d9_119:last-child{padding-right:var(--mimir-space-4xl)}._option_7p4d9_48{display:flex;gap:var(--mimir-space-m);align-items:center;width:100%;padding:var(--mimir-select-search-option-space);cursor:pointer;transition:background-color .2s ease-in-out}._option-active_7p4d9_135{background-color:var(--black-5)}._option-inner_7p4d9_138{display:flex;flex-direction:column;gap:var(--mimir-space-xs);width:100%}._right-slot_7p4d9_145{order:2}._required-mark_7p4d9_149{order:1;margin-right:var(--mimir-space-xs)}._clear_7p4d9_154{position:absolute;top:50%;right:var(--clear-right);transform:translateY(-50%)}
|
@@ -19,6 +19,10 @@ export type TProps = TCommonButtonProps & ComponentProps<'button'> & {
|
|
19
19
|
* Флаг, отключащий абсолютно все модификации кнопки (variant, size).
|
20
20
|
*/
|
21
21
|
clear?: boolean;
|
22
|
+
/**
|
23
|
+
* Информация о кол-ве тех или иных элементов списка или текста, к которым привязана кнопка.
|
24
|
+
*/
|
25
|
+
count?: string | number;
|
22
26
|
/**
|
23
27
|
* Идентификатор формы, к которой привязана кнопка.
|
24
28
|
*/
|
@@ -49,6 +53,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
|
|
49
53
|
* Флаг, отключащий абсолютно все модификации кнопки (variant, size).
|
50
54
|
*/
|
51
55
|
clear?: boolean;
|
56
|
+
/**
|
57
|
+
* Информация о кол-ве тех или иных элементов списка или текста, к которым привязана кнопка.
|
58
|
+
*/
|
59
|
+
count?: string | number;
|
52
60
|
/**
|
53
61
|
* Идентификатор формы, к которой привязана кнопка.
|
54
62
|
*/
|
@@ -75,6 +83,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
|
|
75
83
|
* Флаг, отключащий абсолютно все модификации кнопки (variant, size).
|
76
84
|
*/
|
77
85
|
clear?: boolean;
|
86
|
+
/**
|
87
|
+
* Информация о кол-ве тех или иных элементов списка или текста, к которым привязана кнопка.
|
88
|
+
*/
|
89
|
+
count?: string | number;
|
78
90
|
/**
|
79
91
|
* Идентификатор формы, к которой привязана кнопка.
|
80
92
|
*/
|
@@ -101,6 +113,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
|
|
101
113
|
* Флаг, отключащий абсолютно все модификации кнопки (variant, size).
|
102
114
|
*/
|
103
115
|
clear?: boolean;
|
116
|
+
/**
|
117
|
+
* Информация о кол-ве тех или иных элементов списка или текста, к которым привязана кнопка.
|
118
|
+
*/
|
119
|
+
count?: string | number;
|
104
120
|
/**
|
105
121
|
* Идентификатор формы, к которой привязана кнопка.
|
106
122
|
*/
|
@@ -127,6 +143,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
|
|
127
143
|
* Флаг, отключащий абсолютно все модификации кнопки (variant, size).
|
128
144
|
*/
|
129
145
|
clear?: boolean;
|
146
|
+
/**
|
147
|
+
* Информация о кол-ве тех или иных элементов списка или текста, к которым привязана кнопка.
|
148
|
+
*/
|
149
|
+
count?: string | number;
|
130
150
|
/**
|
131
151
|
* Идентификатор формы, к которой привязана кнопка.
|
132
152
|
*/
|
@@ -153,6 +173,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
|
|
153
173
|
* Флаг, отключащий абсолютно все модификации кнопки (variant, size).
|
154
174
|
*/
|
155
175
|
clear?: boolean;
|
176
|
+
/**
|
177
|
+
* Информация о кол-ве тех или иных элементов списка или текста, к которым привязана кнопка.
|
178
|
+
*/
|
179
|
+
count?: string | number;
|
156
180
|
/**
|
157
181
|
* Идентификатор формы, к которой привязана кнопка.
|
158
182
|
*/
|
@@ -179,6 +203,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
|
|
179
203
|
* Флаг, отключащий абсолютно все модификации кнопки (variant, size).
|
180
204
|
*/
|
181
205
|
clear?: boolean;
|
206
|
+
/**
|
207
|
+
* Информация о кол-ве тех или иных элементов списка или текста, к которым привязана кнопка.
|
208
|
+
*/
|
209
|
+
count?: string | number;
|
182
210
|
/**
|
183
211
|
* Идентификатор формы, к которой привязана кнопка.
|
184
212
|
*/
|
@@ -205,6 +233,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
|
|
205
233
|
* Флаг, отключащий абсолютно все модификации кнопки (variant, size).
|
206
234
|
*/
|
207
235
|
clear?: boolean;
|
236
|
+
/**
|
237
|
+
* Информация о кол-ве тех или иных элементов списка или текста, к которым привязана кнопка.
|
238
|
+
*/
|
239
|
+
count?: string | number;
|
208
240
|
/**
|
209
241
|
* Идентификатор формы, к которой привязана кнопка.
|
210
242
|
*/
|
@@ -231,6 +263,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
|
|
231
263
|
* Флаг, отключащий абсолютно все модификации кнопки (variant, size).
|
232
264
|
*/
|
233
265
|
clear?: boolean;
|
266
|
+
/**
|
267
|
+
* Информация о кол-ве тех или иных элементов списка или текста, к которым привязана кнопка.
|
268
|
+
*/
|
269
|
+
count?: string | number;
|
234
270
|
/**
|
235
271
|
* Идентификатор формы, к которой привязана кнопка.
|
236
272
|
*/
|
@@ -1,91 +1,99 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { c
|
1
|
+
import { jsxs as N, jsx as l } from "react/jsx-runtime";
|
2
|
+
import { c } from "../../index-DIxK0V-G.js";
|
3
3
|
import { forwardRef as B } from "react";
|
4
|
-
import { EButtonVariantDefault as
|
4
|
+
import { EButtonVariantDefault as I, EButtonForm as k } from "./constants.js";
|
5
5
|
import { Icon as j } from "../../icons/Icon.js";
|
6
|
-
import '../../assets/Button.css';const D = "
|
7
|
-
button:
|
8
|
-
clear:
|
9
|
-
|
10
|
-
"
|
11
|
-
"primary-
|
12
|
-
"
|
13
|
-
"secondary-
|
14
|
-
"secondary-
|
15
|
-
"secondary-
|
16
|
-
"
|
6
|
+
import '../../assets/Button.css';const C = "_button_1qnsv_2", D = "_clear_1qnsv_42", E = "_count_1qnsv_53", P = "_black_1qnsv_132", z = "_gray_1qnsv_141", F = "_white_1qnsv_150", R = "_xs_1qnsv_250", S = "_s_1qnsv_83", V = "_m_1qnsv_259", A = "_l_1qnsv_283", G = "_xl_1qnsv_291", H = "_xxl_1qnsv_299", J = "_full_1qnsv_314", K = "_disabled_1qnsv_320", s = {
|
7
|
+
button: C,
|
8
|
+
clear: D,
|
9
|
+
count: E,
|
10
|
+
"default-button": "_default-button_1qnsv_61",
|
11
|
+
"primary-sapphire": "_primary-sapphire_1qnsv_64",
|
12
|
+
"primary-citrine": "_primary-citrine_1qnsv_73",
|
13
|
+
"secondary-asphalt": "_secondary-asphalt_1qnsv_83",
|
14
|
+
"secondary-gray": "_secondary-gray_1qnsv_92",
|
15
|
+
"secondary-white": "_secondary-white_1qnsv_101",
|
16
|
+
"secondary-red": "_secondary-red_1qnsv_110",
|
17
|
+
"round-button": "_round-button_1qnsv_120",
|
17
18
|
black: P,
|
18
|
-
gray:
|
19
|
-
white:
|
20
|
-
"outline-button": "_outline-
|
21
|
-
"outline-asphalt": "_outline-
|
22
|
-
"outline-gray": "_outline-
|
23
|
-
"outline-white": "_outline-
|
24
|
-
"outline-red": "_outline-
|
25
|
-
"borderless-button": "_borderless-
|
26
|
-
"borderless-asphalt": "_borderless-
|
27
|
-
"borderless-gray": "_borderless-
|
28
|
-
"borderless-white": "_borderless-
|
29
|
-
"borderless-red": "_borderless-
|
30
|
-
xs:
|
31
|
-
"m-s": "_m-
|
32
|
-
s:
|
33
|
-
m:
|
34
|
-
l:
|
35
|
-
xl:
|
36
|
-
xxl:
|
37
|
-
full:
|
38
|
-
disabled:
|
39
|
-
"icon-button": "_icon-
|
40
|
-
},
|
41
|
-
(
|
19
|
+
gray: z,
|
20
|
+
white: F,
|
21
|
+
"outline-button": "_outline-button_1qnsv_160",
|
22
|
+
"outline-asphalt": "_outline-asphalt_1qnsv_168",
|
23
|
+
"outline-gray": "_outline-gray_1qnsv_176",
|
24
|
+
"outline-white": "_outline-white_1qnsv_185",
|
25
|
+
"outline-red": "_outline-red_1qnsv_194",
|
26
|
+
"borderless-button": "_borderless-button_1qnsv_204",
|
27
|
+
"borderless-asphalt": "_borderless-asphalt_1qnsv_211",
|
28
|
+
"borderless-gray": "_borderless-gray_1qnsv_216",
|
29
|
+
"borderless-white": "_borderless-white_1qnsv_221",
|
30
|
+
"borderless-red": "_borderless-red_1qnsv_226",
|
31
|
+
xs: R,
|
32
|
+
"m-s": "_m-s_1qnsv_259",
|
33
|
+
s: S,
|
34
|
+
m: V,
|
35
|
+
l: A,
|
36
|
+
xl: G,
|
37
|
+
xxl: H,
|
38
|
+
full: J,
|
39
|
+
disabled: K,
|
40
|
+
"icon-button": "_icon-button_1qnsv_341"
|
41
|
+
}, L = B(
|
42
|
+
(i, u) => {
|
42
43
|
const {
|
43
|
-
size:
|
44
|
-
variant:
|
45
|
-
form:
|
46
|
-
full:
|
47
|
-
clear:
|
44
|
+
size: o = "m",
|
45
|
+
variant: d = I.PrimarySapphire,
|
46
|
+
form: _ = k.DefaultButton,
|
47
|
+
full: b,
|
48
|
+
clear: n,
|
48
49
|
isIconButton: r = !1,
|
49
|
-
iconName:
|
50
|
-
children:
|
51
|
-
className:
|
52
|
-
formId:
|
53
|
-
type:
|
54
|
-
rightIcon:
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
[
|
61
|
-
[
|
62
|
-
[
|
63
|
-
[
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
50
|
+
iconName: v,
|
51
|
+
children: m,
|
52
|
+
className: q,
|
53
|
+
formId: p,
|
54
|
+
type: y = "button",
|
55
|
+
rightIcon: h,
|
56
|
+
count: e,
|
57
|
+
leftIcon: f,
|
58
|
+
disabled: t,
|
59
|
+
...x
|
60
|
+
} = i, a = {
|
61
|
+
[s.full]: b && !n,
|
62
|
+
[s.disabled]: t && !n,
|
63
|
+
[s.clear]: n,
|
64
|
+
[s[d ?? ""]]: !t || n,
|
65
|
+
[s["icon-button"]]: r
|
66
|
+
}, g = c(
|
67
|
+
q,
|
68
|
+
s.button,
|
69
|
+
a,
|
70
|
+
n ? [] : [s[_ ?? ""], s[o]]
|
71
|
+
), w = c(
|
72
|
+
s.count,
|
73
|
+
a,
|
74
|
+
s[o],
|
75
|
+
s[_ ?? ""]
|
69
76
|
);
|
70
|
-
return /* @__PURE__ */
|
77
|
+
return /* @__PURE__ */ N(
|
71
78
|
"button",
|
72
79
|
{
|
73
|
-
type:
|
74
|
-
form:
|
75
|
-
...
|
76
|
-
disabled:
|
77
|
-
ref:
|
78
|
-
className:
|
80
|
+
type: y,
|
81
|
+
form: p,
|
82
|
+
...x,
|
83
|
+
disabled: t,
|
84
|
+
ref: u,
|
85
|
+
className: g,
|
79
86
|
children: [
|
80
|
-
|
81
|
-
r ? /* @__PURE__ */
|
82
|
-
|
87
|
+
f,
|
88
|
+
r ? /* @__PURE__ */ l(j, { iconName: v }) : m,
|
89
|
+
h,
|
90
|
+
!!e && /* @__PURE__ */ l("span", { className: w, children: e })
|
83
91
|
]
|
84
92
|
}
|
85
93
|
);
|
86
94
|
}
|
87
95
|
);
|
88
|
-
|
96
|
+
L.displayName = "Button";
|
89
97
|
export {
|
90
|
-
|
98
|
+
L as Button
|
91
99
|
};
|
@@ -8,7 +8,7 @@ import { formatDatePart as h } from "./utils.js";
|
|
8
8
|
import { YearPickerModal as C } from "./YearPickerModal.js";
|
9
9
|
import { useClickOutside as E } from "../../hooks/useClickOutside/useClickOutside.js";
|
10
10
|
import { formating as B } from "../../utils/index.js";
|
11
|
-
import { I as V } from "../../Input-
|
11
|
+
import { I as V } from "../../Input-B-gKQ9FT.js";
|
12
12
|
import { EInputStatus as tt } from "../Input/constants.js";
|
13
13
|
const st = 31, et = 12, it = 10, at = Q(
|
14
14
|
W(
|
@@ -22,6 +22,14 @@ export type TAdditionalProps = {
|
|
22
22
|
* Дополнительный класс для обертки поля ввода.
|
23
23
|
*/
|
24
24
|
wrapperClassName?: string;
|
25
|
+
/**
|
26
|
+
* Дополнительный класс для дополнительного правого слота.
|
27
|
+
*/
|
28
|
+
rightSlotClassName?: string;
|
29
|
+
/**
|
30
|
+
* Дополнительный класс для метки, отображающей обязательность.
|
31
|
+
*/
|
32
|
+
requiredMarkClassName?: string;
|
25
33
|
/**
|
26
34
|
* Текстовое описание поля ввода.
|
27
35
|
*/
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
2
2
|
import "../../index-DIxK0V-G.js";
|
3
3
|
import "react";
|
4
4
|
import "./constants.js";
|
5
|
-
import { I as f } from "../../Input-
|
5
|
+
import { I as f } from "../../Input-B-gKQ9FT.js";
|
6
6
|
import "../../hooks/useMergeRefs/useMergeRefs.js";
|
7
7
|
import "../../icons/Icon.js";
|
8
8
|
import "../Button/Button.js";
|