trely-ui-kit 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/dist/components/Button/Button.d.ts +12 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Icon/Icon.d.ts +7 -0
- package/dist/components/Icon/Icon.d.ts.map +1 -0
- package/dist/components/Icon/icons/AddMediaIcon.d.ts +4 -0
- package/dist/components/Icon/icons/AddMediaIcon.d.ts.map +1 -0
- package/dist/components/Icon/icons/ArrowDownIcon.d.ts +4 -0
- package/dist/components/Icon/icons/ArrowDownIcon.d.ts.map +1 -0
- package/dist/components/Icon/icons/ArrowLeftIcon.d.ts +4 -0
- package/dist/components/Icon/icons/ArrowLeftIcon.d.ts.map +1 -0
- package/dist/components/Icon/icons/ArrowRightIcon.d.ts +4 -0
- package/dist/components/Icon/icons/ArrowRightIcon.d.ts.map +1 -0
- package/dist/components/Icon/icons/ArrowUpIcon.d.ts +4 -0
- package/dist/components/Icon/icons/ArrowUpIcon.d.ts.map +1 -0
- package/dist/components/Icon/icons/CheckmarkIcon.d.ts +4 -0
- package/dist/components/Icon/icons/CheckmarkIcon.d.ts.map +1 -0
- package/dist/components/Icon/icons/CrossIcon.d.ts +4 -0
- package/dist/components/Icon/icons/CrossIcon.d.ts.map +1 -0
- package/dist/components/Icon/icons/DeleteIcon.d.ts +4 -0
- package/dist/components/Icon/icons/DeleteIcon.d.ts.map +1 -0
- package/dist/components/Icon/icons/DownloadIcon.d.ts +4 -0
- package/dist/components/Icon/icons/DownloadIcon.d.ts.map +1 -0
- package/dist/components/Icon/icons/EditIcon.d.ts +4 -0
- package/dist/components/Icon/icons/EditIcon.d.ts.map +1 -0
- package/dist/components/Icon/icons/FilterIcon.d.ts +4 -0
- package/dist/components/Icon/icons/FilterIcon.d.ts.map +1 -0
- package/dist/components/Icon/icons/FireIcon.d.ts +4 -0
- package/dist/components/Icon/icons/FireIcon.d.ts.map +1 -0
- package/dist/components/Icon/icons/LongArrowLeftIcon.d.ts +4 -0
- package/dist/components/Icon/icons/LongArrowLeftIcon.d.ts.map +1 -0
- package/dist/components/Icon/icons/LongArrowRightIcon.d.ts +4 -0
- package/dist/components/Icon/icons/LongArrowRightIcon.d.ts.map +1 -0
- package/dist/components/Icon/icons/PlusIcon.d.ts +4 -0
- package/dist/components/Icon/icons/PlusIcon.d.ts.map +1 -0
- package/dist/components/Icon/icons/RegenerateIcon.d.ts +4 -0
- package/dist/components/Icon/icons/RegenerateIcon.d.ts.map +1 -0
- package/dist/components/Icon/icons/SearchIcon.d.ts +4 -0
- package/dist/components/Icon/icons/SearchIcon.d.ts.map +1 -0
- package/dist/components/Icon/icons/TimeIcon.d.ts +4 -0
- package/dist/components/Icon/icons/TimeIcon.d.ts.map +1 -0
- package/dist/components/Icon/index.d.ts +21 -0
- package/dist/components/Icon/index.d.ts.map +1 -0
- package/dist/components/Input/Input.d.ts +10 -0
- package/dist/components/Input/Input.d.ts.map +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +493 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +80 -0
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,493 @@
|
|
|
1
|
+
import { jsxs as i, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import m, { useId as V } from "react";
|
|
3
|
+
import './index.css';function j(o) {
|
|
4
|
+
var s, r, t = "";
|
|
5
|
+
if (typeof o == "string" || typeof o == "number") t += o;
|
|
6
|
+
else if (typeof o == "object") if (Array.isArray(o)) {
|
|
7
|
+
var l = o.length;
|
|
8
|
+
for (s = 0; s < l; s++) o[s] && (r = j(o[s])) && (t && (t += " "), t += r);
|
|
9
|
+
} else for (r in o) o[r] && (t && (t += " "), t += r);
|
|
10
|
+
return t;
|
|
11
|
+
}
|
|
12
|
+
function C() {
|
|
13
|
+
for (var o, s, r = 0, t = "", l = arguments.length; r < l; r++) (o = arguments[r]) && (s = j(o)) && (t && (t += " "), t += s);
|
|
14
|
+
return t;
|
|
15
|
+
}
|
|
16
|
+
const v = "_button_1r0ns_1", A = "_button__content_1r0ns_152", E = "_button__loader_1r0ns_164", B = "_spin_1r0ns_1", c = {
|
|
17
|
+
button: v,
|
|
18
|
+
"button--xs": "_button--xs_1r0ns_16",
|
|
19
|
+
"button--xs--icon": "_button--xs--icon_1r0ns_23",
|
|
20
|
+
"button--s": "_button--s_1r0ns_26",
|
|
21
|
+
"button--s--icon": "_button--s--icon_1r0ns_34",
|
|
22
|
+
"button--m": "_button--m_1r0ns_37",
|
|
23
|
+
"button--m--icon": "_button--m--icon_1r0ns_45",
|
|
24
|
+
"button--l": "_button--l_1r0ns_48",
|
|
25
|
+
"button--l--icon": "_button--l--icon_1r0ns_56",
|
|
26
|
+
"button-gold--main": "_button-gold--main_1r0ns_59",
|
|
27
|
+
"button-gold--secondary": "_button-gold--secondary_1r0ns_74",
|
|
28
|
+
"button-gold--tertiary": "_button-gold--tertiary_1r0ns_89",
|
|
29
|
+
"button-green--main": "_button-green--main_1r0ns_105",
|
|
30
|
+
"button-green--secondary": "_button-green--secondary_1r0ns_120",
|
|
31
|
+
"button-green--tertiary": "_button-green--tertiary_1r0ns_135",
|
|
32
|
+
button__content: A,
|
|
33
|
+
"button--loading": "_button--loading_1r0ns_160",
|
|
34
|
+
button__loader: E,
|
|
35
|
+
spin: B
|
|
36
|
+
}, F = ({
|
|
37
|
+
color: o = "gold",
|
|
38
|
+
variant: s = "main",
|
|
39
|
+
size: r = "m",
|
|
40
|
+
icon: t,
|
|
41
|
+
leftIcon: l,
|
|
42
|
+
rightIcon: p,
|
|
43
|
+
loading: k = !1,
|
|
44
|
+
children: d,
|
|
45
|
+
className: _ = "",
|
|
46
|
+
disabled: w,
|
|
47
|
+
type: a = "button",
|
|
48
|
+
...b
|
|
49
|
+
}) => {
|
|
50
|
+
const h = C(
|
|
51
|
+
c.button,
|
|
52
|
+
c[`button-${o}--${s}`],
|
|
53
|
+
c[`button--${r}`],
|
|
54
|
+
t && c[`button--${r}--icon`],
|
|
55
|
+
k && c["button--loading"],
|
|
56
|
+
_
|
|
57
|
+
);
|
|
58
|
+
return /* @__PURE__ */ i("button", { className: h, disabled: w || k, type: a, ...b, children: [
|
|
59
|
+
k && /* @__PURE__ */ n("span", { className: c.button__loader }),
|
|
60
|
+
/* @__PURE__ */ i("span", { className: c.button__content, children: [
|
|
61
|
+
l,
|
|
62
|
+
d,
|
|
63
|
+
p
|
|
64
|
+
] })
|
|
65
|
+
] });
|
|
66
|
+
};
|
|
67
|
+
F.displayName = "Button";
|
|
68
|
+
const D = "_icon_1urm5_1", R = {
|
|
69
|
+
icon: D
|
|
70
|
+
}, L = {
|
|
71
|
+
XS: 12,
|
|
72
|
+
S: 16,
|
|
73
|
+
M: 20,
|
|
74
|
+
L: 24
|
|
75
|
+
}, e = ({
|
|
76
|
+
size: o = 24,
|
|
77
|
+
color: s = "currentColor",
|
|
78
|
+
className: r = "",
|
|
79
|
+
children: t,
|
|
80
|
+
...l
|
|
81
|
+
}) => {
|
|
82
|
+
const p = C(R.icon, r);
|
|
83
|
+
return /* @__PURE__ */ n(
|
|
84
|
+
"svg",
|
|
85
|
+
{
|
|
86
|
+
className: p,
|
|
87
|
+
width: L[o] || o,
|
|
88
|
+
height: L[o] || o,
|
|
89
|
+
fill: "none",
|
|
90
|
+
stroke: s,
|
|
91
|
+
viewBox: "0 0 24 24",
|
|
92
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
93
|
+
"aria-hidden": "true",
|
|
94
|
+
focusable: "false",
|
|
95
|
+
...l,
|
|
96
|
+
children: t
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
};
|
|
100
|
+
e.displayName = "Icon";
|
|
101
|
+
const S = (o) => /* @__PURE__ */ i(e, { ...o, children: [
|
|
102
|
+
/* @__PURE__ */ n(
|
|
103
|
+
"circle",
|
|
104
|
+
{
|
|
105
|
+
cx: "16.5019",
|
|
106
|
+
cy: "16.5019",
|
|
107
|
+
r: "4.50187",
|
|
108
|
+
"stroke-width": "1.5",
|
|
109
|
+
"stroke-linecap": "round",
|
|
110
|
+
"stroke-linejoin": "round"
|
|
111
|
+
}
|
|
112
|
+
),
|
|
113
|
+
/* @__PURE__ */ n(
|
|
114
|
+
"path",
|
|
115
|
+
{
|
|
116
|
+
d: "M14.0008 7.99805L5.82585 16.173C5.29519 16.7037 4.99707 17.4234 4.99707 18.1739C4.99707 18.9243 5.29519 19.644 5.82585 20.1747V20.1747C6.3565 20.7054 7.07622 21.0035 7.82668 21.0035C8.57714 21.0035 9.29686 20.7054 9.82751 20.1747L12.1931 17.8091",
|
|
117
|
+
"stroke-width": "1.5",
|
|
118
|
+
"stroke-linecap": "round",
|
|
119
|
+
"stroke-linejoin": "round"
|
|
120
|
+
}
|
|
121
|
+
),
|
|
122
|
+
/* @__PURE__ */ n(
|
|
123
|
+
"path",
|
|
124
|
+
{
|
|
125
|
+
d: "M2.99609 13.0003L11.5499 4.44645C12.4786 3.5178 13.7381 2.99609 15.0514 2.99609C16.3647 2.99609 17.6242 3.5178 18.5529 4.44645V4.44645C19.4815 5.37509 20.0032 6.6346 20.0032 7.94791C20.0032 9.26121 19.4815 10.5207 18.5529 11.4494L17.8094 12.1928",
|
|
126
|
+
"stroke-width": "1.5",
|
|
127
|
+
"stroke-linecap": "round",
|
|
128
|
+
"stroke-linejoin": "round"
|
|
129
|
+
}
|
|
130
|
+
),
|
|
131
|
+
/* @__PURE__ */ n(
|
|
132
|
+
"path",
|
|
133
|
+
{
|
|
134
|
+
d: "M18.0022 16.5022H15.001",
|
|
135
|
+
"stroke-width": "1.5",
|
|
136
|
+
"stroke-linecap": "round",
|
|
137
|
+
"stroke-linejoin": "round"
|
|
138
|
+
}
|
|
139
|
+
),
|
|
140
|
+
/* @__PURE__ */ n(
|
|
141
|
+
"path",
|
|
142
|
+
{
|
|
143
|
+
d: "M16.5022 15.001V18.0022",
|
|
144
|
+
"stroke-width": "1.5",
|
|
145
|
+
"stroke-linecap": "round",
|
|
146
|
+
"stroke-linejoin": "round"
|
|
147
|
+
}
|
|
148
|
+
)
|
|
149
|
+
] });
|
|
150
|
+
S.displayName = "AddMediaIcon";
|
|
151
|
+
const T = (o) => /* @__PURE__ */ n(e, { ...o, children: /* @__PURE__ */ n(
|
|
152
|
+
"path",
|
|
153
|
+
{
|
|
154
|
+
d: "M8 10L12 14L16 10",
|
|
155
|
+
"stroke-width": "1.5",
|
|
156
|
+
"stroke-linecap": "round",
|
|
157
|
+
"stroke-linejoin": "round"
|
|
158
|
+
}
|
|
159
|
+
) });
|
|
160
|
+
T.displayName = "ArrowDownIcon";
|
|
161
|
+
const $ = (o) => /* @__PURE__ */ n(e, { ...o, children: /* @__PURE__ */ n(
|
|
162
|
+
"path",
|
|
163
|
+
{
|
|
164
|
+
d: "M14 8L10 12L14 16",
|
|
165
|
+
"stroke-width": "1.5",
|
|
166
|
+
"stroke-linecap": "round",
|
|
167
|
+
"stroke-linejoin": "round"
|
|
168
|
+
}
|
|
169
|
+
) });
|
|
170
|
+
$.displayName = "ArrowLeftIcon";
|
|
171
|
+
const Z = (o) => /* @__PURE__ */ n(e, { ...o, children: /* @__PURE__ */ n(
|
|
172
|
+
"path",
|
|
173
|
+
{
|
|
174
|
+
d: "M10 16L14 12L10 8",
|
|
175
|
+
"stroke-width": "1.5",
|
|
176
|
+
"stroke-linecap": "round",
|
|
177
|
+
"stroke-linejoin": "round"
|
|
178
|
+
}
|
|
179
|
+
) });
|
|
180
|
+
Z.displayName = "ArrowRightIcon";
|
|
181
|
+
const P = (o) => /* @__PURE__ */ n(e, { ...o, children: /* @__PURE__ */ n(
|
|
182
|
+
"path",
|
|
183
|
+
{
|
|
184
|
+
d: "M16 14L12 10L8 14",
|
|
185
|
+
"stroke-width": "1.5",
|
|
186
|
+
"stroke-linecap": "round",
|
|
187
|
+
"stroke-linejoin": "round"
|
|
188
|
+
}
|
|
189
|
+
) });
|
|
190
|
+
P.displayName = "ArrowUpIcon";
|
|
191
|
+
const U = (o) => /* @__PURE__ */ n(e, { ...o, children: /* @__PURE__ */ n("path", { d: "M7 13.5217L11.1667 17L17 7", "stroke-width": "1.5", "stroke-linecap": "round" }) });
|
|
192
|
+
U.displayName = "CheckmarkIcon";
|
|
193
|
+
const y = (o) => /* @__PURE__ */ i(e, { ...o, children: [
|
|
194
|
+
/* @__PURE__ */ n("path", { d: "M17 7L7 17", "stroke-width": "1.5", "stroke-linecap": "round" }),
|
|
195
|
+
/* @__PURE__ */ n("path", { d: "M7 7L17 17", "stroke-width": "1.5", "stroke-linecap": "round" })
|
|
196
|
+
] });
|
|
197
|
+
y.displayName = "CrossIcon";
|
|
198
|
+
const X = (o) => /* @__PURE__ */ i(e, { ...o, children: [
|
|
199
|
+
/* @__PURE__ */ n(
|
|
200
|
+
"path",
|
|
201
|
+
{
|
|
202
|
+
"fill-rule": "evenodd",
|
|
203
|
+
"clip-rule": "evenodd",
|
|
204
|
+
d: "M16.1378 21H7.85782C6.81082 21 5.94082 20.192 5.86282 19.147L4.96582 7H18.9998L18.1328 19.142C18.0578 20.189 17.1868 21 16.1378 21V21Z",
|
|
205
|
+
"stroke-width": "1.5",
|
|
206
|
+
"stroke-linecap": "round",
|
|
207
|
+
"stroke-linejoin": "round"
|
|
208
|
+
}
|
|
209
|
+
),
|
|
210
|
+
/* @__PURE__ */ n("path", { d: "M12 11V17", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
211
|
+
/* @__PURE__ */ n("path", { d: "M4 7H20", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
212
|
+
/* @__PURE__ */ n(
|
|
213
|
+
"path",
|
|
214
|
+
{
|
|
215
|
+
d: "M17 7L15.987 4.298C15.694 3.517 14.948 3 14.114 3H9.886C9.052 3 8.306 3.517 8.013 4.298L7 7",
|
|
216
|
+
"stroke-width": "1.5",
|
|
217
|
+
"stroke-linecap": "round",
|
|
218
|
+
"stroke-linejoin": "round"
|
|
219
|
+
}
|
|
220
|
+
),
|
|
221
|
+
/* @__PURE__ */ n(
|
|
222
|
+
"path",
|
|
223
|
+
{
|
|
224
|
+
d: "M15.4298 11L14.9998 17",
|
|
225
|
+
"stroke-width": "1.5",
|
|
226
|
+
"stroke-linecap": "round",
|
|
227
|
+
"stroke-linejoin": "round"
|
|
228
|
+
}
|
|
229
|
+
),
|
|
230
|
+
/* @__PURE__ */ n(
|
|
231
|
+
"path",
|
|
232
|
+
{
|
|
233
|
+
d: "M8.57016 11L9.00016 17",
|
|
234
|
+
"stroke-width": "1.5",
|
|
235
|
+
"stroke-linecap": "round",
|
|
236
|
+
"stroke-linejoin": "round"
|
|
237
|
+
}
|
|
238
|
+
)
|
|
239
|
+
] });
|
|
240
|
+
X.displayName = "DeleteIcon";
|
|
241
|
+
const q = (o) => /* @__PURE__ */ i(e, { ...o, children: [
|
|
242
|
+
/* @__PURE__ */ n("path", { d: "M12 17V3", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
243
|
+
/* @__PURE__ */ n("path", { d: "M20 21H4", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
244
|
+
/* @__PURE__ */ n(
|
|
245
|
+
"path",
|
|
246
|
+
{
|
|
247
|
+
d: "M17 12L11.999 17.001L6.99902 12",
|
|
248
|
+
"stroke-width": "1.5",
|
|
249
|
+
"stroke-linecap": "round",
|
|
250
|
+
"stroke-linejoin": "round"
|
|
251
|
+
}
|
|
252
|
+
)
|
|
253
|
+
] });
|
|
254
|
+
q.displayName = "DownloadIcon";
|
|
255
|
+
const G = (o) => /* @__PURE__ */ i(e, { ...o, children: [
|
|
256
|
+
/* @__PURE__ */ n(
|
|
257
|
+
"path",
|
|
258
|
+
{
|
|
259
|
+
d: "M21 11V19C21 20.105 20.105 21 19 21H5C3.895 21 3 20.105 3 19V5C3 3.895 3.895 3 5 3H13",
|
|
260
|
+
"stroke-width": "1.5",
|
|
261
|
+
"stroke-linecap": "round",
|
|
262
|
+
"stroke-linejoin": "round"
|
|
263
|
+
}
|
|
264
|
+
),
|
|
265
|
+
/* @__PURE__ */ n(
|
|
266
|
+
"path",
|
|
267
|
+
{
|
|
268
|
+
"fill-rule": "evenodd",
|
|
269
|
+
"clip-rule": "evenodd",
|
|
270
|
+
d: "M20.707 6.12125L9.828 17.0002H7V14.1722L17.879 3.29325C18.27 2.90225 18.903 2.90225 19.293 3.29325L20.707 4.70725C21.098 5.09825 21.098 5.73125 20.707 6.12125Z",
|
|
271
|
+
"stroke-width": "1.5",
|
|
272
|
+
"stroke-linecap": "round",
|
|
273
|
+
"stroke-linejoin": "round"
|
|
274
|
+
}
|
|
275
|
+
),
|
|
276
|
+
/* @__PURE__ */ n(
|
|
277
|
+
"path",
|
|
278
|
+
{
|
|
279
|
+
d: "M16.0898 5.08984L18.9098 7.90984",
|
|
280
|
+
"stroke-width": "1.5",
|
|
281
|
+
"stroke-linecap": "round",
|
|
282
|
+
"stroke-linejoin": "round"
|
|
283
|
+
}
|
|
284
|
+
)
|
|
285
|
+
] });
|
|
286
|
+
G.displayName = "EditIcon";
|
|
287
|
+
const J = (o) => /* @__PURE__ */ i(e, { ...o, children: [
|
|
288
|
+
/* @__PURE__ */ n("path", { d: "M18 5H21", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
289
|
+
/* @__PURE__ */ n("path", { d: "M3 5H14", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
290
|
+
/* @__PURE__ */ n("path", { d: "M10 12H21", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
291
|
+
/* @__PURE__ */ n("path", { d: "M3 12H6", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
292
|
+
/* @__PURE__ */ n("path", { d: "M18 19H21", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
293
|
+
/* @__PURE__ */ n("path", { d: "M3 19H14", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
294
|
+
/* @__PURE__ */ n(
|
|
295
|
+
"path",
|
|
296
|
+
{
|
|
297
|
+
d: "M17.4142 3.58579C18.1953 4.36684 18.1953 5.63317 17.4142 6.41422C16.6332 7.19527 15.3668 7.19527 14.5858 6.41422C13.8047 5.63317 13.8047 4.36684 14.5858 3.58579C15.3668 2.80474 16.6332 2.80474 17.4142 3.58579",
|
|
298
|
+
"stroke-width": "1.5",
|
|
299
|
+
"stroke-linecap": "round",
|
|
300
|
+
"stroke-linejoin": "round"
|
|
301
|
+
}
|
|
302
|
+
),
|
|
303
|
+
/* @__PURE__ */ n(
|
|
304
|
+
"path",
|
|
305
|
+
{
|
|
306
|
+
d: "M9.41422 10.5858C10.1953 11.3668 10.1953 12.6332 9.41422 13.4142C8.63317 14.1953 7.36684 14.1953 6.58579 13.4142C5.80474 12.6332 5.80474 11.3668 6.58579 10.5858C7.36684 9.80474 8.63317 9.80474 9.41422 10.5858",
|
|
307
|
+
"stroke-width": "1.5",
|
|
308
|
+
"stroke-linecap": "round",
|
|
309
|
+
"stroke-linejoin": "round"
|
|
310
|
+
}
|
|
311
|
+
),
|
|
312
|
+
/* @__PURE__ */ n(
|
|
313
|
+
"path",
|
|
314
|
+
{
|
|
315
|
+
d: "M17.4142 17.5858C18.1953 18.3668 18.1953 19.6332 17.4142 20.4142C16.6332 21.1953 15.3668 21.1953 14.5858 20.4142C13.8047 19.6332 13.8047 18.3668 14.5858 17.5858C15.3668 16.8047 16.6332 16.8047 17.4142 17.5858",
|
|
316
|
+
"stroke-width": "1.5",
|
|
317
|
+
"stroke-linecap": "round",
|
|
318
|
+
"stroke-linejoin": "round"
|
|
319
|
+
}
|
|
320
|
+
)
|
|
321
|
+
] });
|
|
322
|
+
J.displayName = "FilterIcon";
|
|
323
|
+
const K = (o) => /* @__PURE__ */ n(e, { ...o, children: /* @__PURE__ */ n(
|
|
324
|
+
"path",
|
|
325
|
+
{
|
|
326
|
+
"fill-rule": "evenodd",
|
|
327
|
+
"clip-rule": "evenodd",
|
|
328
|
+
d: "M6.19807 7.55934L9.68086 3.49609L13.4357 7.87676L15.8653 5.04219L17.802 7.30168C19.0465 8.75357 19.7305 10.6027 19.7305 12.515V12.7726C19.7305 14.8229 18.9161 16.7892 17.4663 18.239C16.0166 19.6887 14.0503 20.5032 12 20.5032V20.5032C7.73059 20.5032 4.26953 17.0421 4.26953 12.7727V12.7727C4.26953 10.8604 4.95359 9.01124 6.19807 7.55934Z",
|
|
329
|
+
"stroke-width": "1.5",
|
|
330
|
+
"stroke-linecap": "round",
|
|
331
|
+
"stroke-linejoin": "round"
|
|
332
|
+
}
|
|
333
|
+
) });
|
|
334
|
+
K.displayName = "FireIcon";
|
|
335
|
+
const O = (o) => /* @__PURE__ */ i(e, { ...o, children: [
|
|
336
|
+
/* @__PURE__ */ n("path", { d: "M5 12H19", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
337
|
+
/* @__PURE__ */ n("path", { d: "M10 7L5 12", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
338
|
+
/* @__PURE__ */ n("path", { d: "M10 17L5 12", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
339
|
+
] });
|
|
340
|
+
O.displayName = "LongArrowLeftIcon";
|
|
341
|
+
const Q = (o) => /* @__PURE__ */ i(e, { ...o, children: [
|
|
342
|
+
/* @__PURE__ */ n("path", { d: "M19 12H5", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
343
|
+
/* @__PURE__ */ n("path", { d: "M14 17L19 12", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
344
|
+
/* @__PURE__ */ n("path", { d: "M14 7L19 12", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
345
|
+
] });
|
|
346
|
+
Q.displayName = "LongArrowRightIcon";
|
|
347
|
+
const W = (o) => /* @__PURE__ */ i(e, { ...o, children: [
|
|
348
|
+
/* @__PURE__ */ n("path", { d: "M12 7V17", "stroke-width": "1.5", "stroke-linecap": "round" }),
|
|
349
|
+
/* @__PURE__ */ n("path", { d: "M7 12H17", "stroke-width": "1.5", "stroke-linecap": "round" })
|
|
350
|
+
] });
|
|
351
|
+
W.displayName = "PlusIcon";
|
|
352
|
+
const Y = (o) => /* @__PURE__ */ n(e, { ...o, children: /* @__PURE__ */ n(
|
|
353
|
+
"path",
|
|
354
|
+
{
|
|
355
|
+
d: "M16.1176 17.6558C17.8646 16.383 19 14.3213 19 11.9944C19 8.1284 15.866 4.99439 12 4.99439H11.5882M12 18.9944C8.13401 18.9944 5 15.8604 5 11.9944C5 9.66748 6.13537 7.60575 7.88235 6.33296M11.1765 20.5591L12.8235 18.912L11.1765 17.265M12.8235 6.7238L11.1765 5.07675L12.8235 3.42969",
|
|
356
|
+
"stroke-width": "1.5",
|
|
357
|
+
"stroke-linecap": "round",
|
|
358
|
+
"stroke-linejoin": "round"
|
|
359
|
+
}
|
|
360
|
+
) });
|
|
361
|
+
Y.displayName = "RegenerateIcon";
|
|
362
|
+
const z = (o) => /* @__PURE__ */ i(e, { ...o, children: [
|
|
363
|
+
/* @__PURE__ */ n(
|
|
364
|
+
"path",
|
|
365
|
+
{
|
|
366
|
+
d: "M15.7138 6.8382C18.1647 9.28913 18.1647 13.2629 15.7138 15.7138C13.2629 18.1647 9.28913 18.1647 6.8382 15.7138C4.38727 13.2629 4.38727 9.28913 6.8382 6.8382C9.28913 4.38727 13.2629 4.38727 15.7138 6.8382",
|
|
367
|
+
"stroke-width": "1.5",
|
|
368
|
+
"stroke-linecap": "round",
|
|
369
|
+
"stroke-linejoin": "round"
|
|
370
|
+
}
|
|
371
|
+
),
|
|
372
|
+
/* @__PURE__ */ n(
|
|
373
|
+
"path",
|
|
374
|
+
{
|
|
375
|
+
d: "M19 19L15.71 15.71",
|
|
376
|
+
"stroke-width": "1.5",
|
|
377
|
+
"stroke-linecap": "round",
|
|
378
|
+
"stroke-linejoin": "round"
|
|
379
|
+
}
|
|
380
|
+
)
|
|
381
|
+
] });
|
|
382
|
+
z.displayName = "SearchIcon";
|
|
383
|
+
const nn = (o) => /* @__PURE__ */ i(e, { ...o, children: [
|
|
384
|
+
/* @__PURE__ */ n(
|
|
385
|
+
"path",
|
|
386
|
+
{
|
|
387
|
+
d: "M16.066 12.1193H11.4141",
|
|
388
|
+
"stroke-width": "1.5",
|
|
389
|
+
"stroke-linecap": "round",
|
|
390
|
+
"stroke-linejoin": "round"
|
|
391
|
+
}
|
|
392
|
+
),
|
|
393
|
+
/* @__PURE__ */ n(
|
|
394
|
+
"circle",
|
|
395
|
+
{
|
|
396
|
+
cx: "12.0174",
|
|
397
|
+
cy: "11.5164",
|
|
398
|
+
r: "9.00375",
|
|
399
|
+
"stroke-width": "1.5",
|
|
400
|
+
"stroke-linecap": "round",
|
|
401
|
+
"stroke-linejoin": "round"
|
|
402
|
+
}
|
|
403
|
+
),
|
|
404
|
+
/* @__PURE__ */ n(
|
|
405
|
+
"path",
|
|
406
|
+
{
|
|
407
|
+
d: "M11.4143 12.1192V6.51465",
|
|
408
|
+
"stroke-width": "1.5",
|
|
409
|
+
"stroke-linecap": "round",
|
|
410
|
+
"stroke-linejoin": "round"
|
|
411
|
+
}
|
|
412
|
+
)
|
|
413
|
+
] });
|
|
414
|
+
nn.displayName = "TimeIcon";
|
|
415
|
+
const I = m.createContext(null);
|
|
416
|
+
I.displayName = "HookFormContext";
|
|
417
|
+
const on = () => m.useContext(I);
|
|
418
|
+
typeof window < "u" ? m.useLayoutEffect : m.useEffect;
|
|
419
|
+
const tn = "_wrapper_4297m_1", en = "_label_4297m_5", rn = "_inputContainer_4297m_14", sn = "_input_4297m_14", dn = "_inputError_4297m_52", ln = "_clearButton_4297m_57", an = "_errorText_4297m_81", u = {
|
|
420
|
+
wrapper: tn,
|
|
421
|
+
label: en,
|
|
422
|
+
inputContainer: rn,
|
|
423
|
+
input: sn,
|
|
424
|
+
inputError: dn,
|
|
425
|
+
clearButton: ln,
|
|
426
|
+
errorText: an
|
|
427
|
+
}, cn = ({
|
|
428
|
+
label: o,
|
|
429
|
+
error: s,
|
|
430
|
+
clearable: r = !1,
|
|
431
|
+
onClear: t,
|
|
432
|
+
className: l = "",
|
|
433
|
+
value: p,
|
|
434
|
+
disabled: k,
|
|
435
|
+
name: d,
|
|
436
|
+
..._
|
|
437
|
+
}) => {
|
|
438
|
+
const w = V(), a = on(), b = d && a ? a.register(d) : {}, h = d && a?.formState?.errors?.[d], M = s || (h && typeof h == "object" && "message" in h ? String(h.message) : void 0), g = !!(d && a ? a.watch(d) : p), f = C(u.wrapper, l), N = C(u.input, {
|
|
439
|
+
[u.inputError]: !!M
|
|
440
|
+
}), x = () => {
|
|
441
|
+
if (t)
|
|
442
|
+
t();
|
|
443
|
+
else if (d && a)
|
|
444
|
+
a.setValue(d, "", { shouldValidate: !0, shouldDirty: !0 });
|
|
445
|
+
else if (_.onChange) {
|
|
446
|
+
const H = { target: { value: "" } };
|
|
447
|
+
_.onChange(H);
|
|
448
|
+
}
|
|
449
|
+
};
|
|
450
|
+
return /* @__PURE__ */ i("div", { className: f, children: [
|
|
451
|
+
o && /* @__PURE__ */ n("label", { htmlFor: w, className: u.label, children: o }),
|
|
452
|
+
/* @__PURE__ */ i("div", { className: u.inputContainer, children: [
|
|
453
|
+
/* @__PURE__ */ n(
|
|
454
|
+
"input",
|
|
455
|
+
{
|
|
456
|
+
className: N,
|
|
457
|
+
value: p,
|
|
458
|
+
disabled: k,
|
|
459
|
+
...b,
|
|
460
|
+
..._,
|
|
461
|
+
id: w
|
|
462
|
+
}
|
|
463
|
+
),
|
|
464
|
+
r && g && !k && /* @__PURE__ */ n("button", { type: "button", className: u.clearButton, onClick: x, tabIndex: -1, children: /* @__PURE__ */ n(y, { size: "XS" }) })
|
|
465
|
+
] }),
|
|
466
|
+
M && /* @__PURE__ */ n("div", { className: u.errorText, children: M })
|
|
467
|
+
] });
|
|
468
|
+
};
|
|
469
|
+
cn.displayName = "Input";
|
|
470
|
+
export {
|
|
471
|
+
S as AddMediaIcon,
|
|
472
|
+
T as ArrowDownIcon,
|
|
473
|
+
$ as ArrowLeftIcon,
|
|
474
|
+
Z as ArrowRightIcon,
|
|
475
|
+
P as ArrowUpIcon,
|
|
476
|
+
F as Button,
|
|
477
|
+
U as CheckmarkIcon,
|
|
478
|
+
y as CrossIcon,
|
|
479
|
+
X as DeleteIcon,
|
|
480
|
+
q as DownloadIcon,
|
|
481
|
+
G as EditIcon,
|
|
482
|
+
J as FilterIcon,
|
|
483
|
+
K as FireIcon,
|
|
484
|
+
e as Icon,
|
|
485
|
+
cn as Input,
|
|
486
|
+
O as LongArrowLeftIcon,
|
|
487
|
+
Q as LongArrowRightIcon,
|
|
488
|
+
W as PlusIcon,
|
|
489
|
+
Y as RegenerateIcon,
|
|
490
|
+
z as SearchIcon,
|
|
491
|
+
nn as TimeIcon
|
|
492
|
+
};
|
|
493
|
+
//# sourceMappingURL=index.mjs.map
|