@grandbazar/ui-baza 1.2.1 → 1.2.3
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 +69 -34
- package/dist/index.cjs +1009 -127
- package/dist/index.d.ts +154 -11
- package/dist/index.js +987 -124
- package/dist/style.css +111 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -53,7 +53,7 @@ const green = "_green_p5h5n_43";
|
|
|
53
53
|
const neutral$3 = "_neutral_p5h5n_48";
|
|
54
54
|
const lg$6 = "_lg_p5h5n_53";
|
|
55
55
|
const md$9 = "_md_p5h5n_60";
|
|
56
|
-
const styles$
|
|
56
|
+
const styles$v = {
|
|
57
57
|
badge: badge,
|
|
58
58
|
primary: primary$3,
|
|
59
59
|
secondary: secondary$4,
|
|
@@ -69,13 +69,13 @@ const styles$u = {
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
function Badge({ children, className, size = "lg", color = "accent", mode = "primary", ...props }) {
|
|
72
|
-
return /* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
72
|
+
return /* @__PURE__ */ jsx("div", { className: classNames(styles$v.badge, styles$v[size], styles$v[color], styles$v[mode], className), ...props, children });
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
const badgeTabsItem = "_badgeTabsItem_10lit_2";
|
|
76
76
|
const primary$2 = "_primary_10lit_18";
|
|
77
77
|
const secondary$3 = "_secondary_10lit_36";
|
|
78
|
-
const styles$
|
|
78
|
+
const styles$u = {
|
|
79
79
|
badgeTabsItem: badgeTabsItem,
|
|
80
80
|
primary: primary$2,
|
|
81
81
|
secondary: secondary$3
|
|
@@ -88,7 +88,7 @@ function BadgeTabsItem({ className, children, isActive, mode = "primary", ...pro
|
|
|
88
88
|
type: "button",
|
|
89
89
|
role: "tab",
|
|
90
90
|
"aria-selected": Boolean(isActive),
|
|
91
|
-
className: classNames(styles$
|
|
91
|
+
className: classNames(styles$u.badgeTabsItem, styles$u[mode], className),
|
|
92
92
|
...props,
|
|
93
93
|
children
|
|
94
94
|
}
|
|
@@ -96,12 +96,12 @@ function BadgeTabsItem({ className, children, isActive, mode = "primary", ...pro
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
const badgeTabsRoot = "_badgeTabsRoot_1qkat_2";
|
|
99
|
-
const styles$
|
|
99
|
+
const styles$t = {
|
|
100
100
|
badgeTabsRoot: badgeTabsRoot
|
|
101
101
|
};
|
|
102
102
|
|
|
103
103
|
function BadgeTabsRoot({ className, children, ...props }) {
|
|
104
|
-
return /* @__PURE__ */ jsx("div", { role: "tablist", className: classNames(styles$
|
|
104
|
+
return /* @__PURE__ */ jsx("div", { role: "tablist", className: classNames(styles$t.badgeTabsRoot, className), ...props, children });
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
function BadgeTabs(props) {
|
|
@@ -144,6 +144,29 @@ IconArrowCircle.Filled = function IconArrowCircleFilled(props) {
|
|
|
144
144
|
) });
|
|
145
145
|
};
|
|
146
146
|
|
|
147
|
+
function IconArrowCircleUp(props) {
|
|
148
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
149
|
+
"path",
|
|
150
|
+
{
|
|
151
|
+
fillRule: "evenodd",
|
|
152
|
+
clipRule: "evenodd",
|
|
153
|
+
d: "M17.6569 17.6569C20.781 14.5327 20.781 9.46734 17.6569 6.34315C14.5327 3.21895 9.46734 3.21895 6.34315 6.34315C3.21895 9.46734 3.21895 14.5327 6.34315 17.6569C9.46734 20.781 14.5327 20.781 17.6569 17.6569ZM19.0711 4.92893C22.9763 8.83418 22.9763 15.1658 19.0711 19.0711C15.1658 22.9763 8.83418 22.9763 4.92893 19.0711C1.02369 15.1658 1.02369 8.83417 4.92893 4.92893C8.83418 1.02369 15.1658 1.02369 19.0711 4.92893ZM14.6516 14.591C14.0994 14.591 13.6516 14.1433 13.6516 13.591L13.6516 11.7626L10.0555 15.3588C9.66493 15.7493 9.03177 15.7493 8.64124 15.3588C8.25072 14.9682 8.25072 14.3351 8.64124 13.9445L12.2374 10.3483H10.409C9.85673 10.3484 9.40901 9.90063 9.40901 9.34835C9.40901 8.79606 9.85673 8.34835 10.409 8.34835L14.6517 8.34835C15.2039 8.34835 15.6517 8.79607 15.6516 9.34835V13.591C15.6516 14.1433 15.2039 14.591 14.6516 14.591Z",
|
|
154
|
+
fill: "currentColor"
|
|
155
|
+
}
|
|
156
|
+
) });
|
|
157
|
+
}
|
|
158
|
+
IconArrowCircleUp.Filled = function IconArrowCircleUpFilled(props) {
|
|
159
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
160
|
+
"path",
|
|
161
|
+
{
|
|
162
|
+
fillRule: "evenodd",
|
|
163
|
+
clipRule: "evenodd",
|
|
164
|
+
d: "M19.0711 19.0711C22.9763 15.1658 22.9763 8.83418 19.0711 4.92893C15.1658 1.02369 8.83418 1.02369 4.92893 4.92893C1.02369 8.83418 1.02369 15.1658 4.92893 19.0711C8.83418 22.9763 15.1658 22.9763 19.0711 19.0711ZM14.6516 14.591C14.0994 14.591 13.6516 14.1433 13.6516 13.591V11.7626L10.0555 15.3588C9.66493 15.7493 9.03177 15.7493 8.64124 15.3588C8.25072 14.9682 8.25072 14.3351 8.64124 13.9445L12.2374 10.3483H10.409C9.85673 10.3483 9.40901 9.90064 9.40901 9.34835C9.40901 8.79606 9.85673 8.34835 10.409 8.34835L14.6517 8.34835C15.2039 8.34835 15.6517 8.79607 15.6517 9.34835L15.6516 13.591C15.6516 14.1433 15.2039 14.591 14.6516 14.591Z",
|
|
165
|
+
fill: "currentColor"
|
|
166
|
+
}
|
|
167
|
+
) });
|
|
168
|
+
};
|
|
169
|
+
|
|
147
170
|
function IconArrowDiagonal(props) {
|
|
148
171
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
149
172
|
"path",
|
|
@@ -190,6 +213,49 @@ IconArrowUTurn.Up = function IconArrowUTurnUp(props) {
|
|
|
190
213
|
) });
|
|
191
214
|
};
|
|
192
215
|
|
|
216
|
+
function IconBell(props) {
|
|
217
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
218
|
+
"path",
|
|
219
|
+
{
|
|
220
|
+
d: "M10.2673 21C10.4429 21.304 10.6954 21.5565 10.9994 21.732C11.3034 21.9075 11.6483 21.9999 11.9993 21.9999C12.3504 21.9999 12.6953 21.9075 12.9993 21.732C13.3033 21.5565 13.5558 21.304 13.7313 21M3.262 15.326C3.13137 15.4692 3.04516 15.6472 3.01386 15.8385C2.98256 16.0298 3.00752 16.226 3.08571 16.4034C3.1639 16.5807 3.29194 16.7316 3.45426 16.8375C3.61658 16.9434 3.80618 16.9999 4 17H20C20.1938 17.0001 20.3834 16.9438 20.5459 16.8381C20.7083 16.7324 20.8365 16.5817 20.9149 16.4045C20.9933 16.2273 21.0185 16.0311 20.9874 15.8398C20.9564 15.6485 20.8704 15.4703 20.74 15.327C19.41 13.956 18 12.499 18 8C18 6.4087 17.3679 4.88258 16.2426 3.75736C15.1174 2.63214 13.5913 2 12 2C10.4087 2 8.88258 2.63214 7.75736 3.75736C6.63214 4.88258 6 6.4087 6 8C6 12.499 4.589 13.956 3.262 15.326Z",
|
|
221
|
+
stroke: "currentColor",
|
|
222
|
+
strokeWidth: "2",
|
|
223
|
+
strokeLinecap: "round",
|
|
224
|
+
strokeLinejoin: "round"
|
|
225
|
+
}
|
|
226
|
+
) });
|
|
227
|
+
}
|
|
228
|
+
IconBell.Filled = function IconBellFilled(props) {
|
|
229
|
+
return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
|
|
230
|
+
/* @__PURE__ */ jsx(
|
|
231
|
+
"path",
|
|
232
|
+
{
|
|
233
|
+
d: "M12.9204 19.4139C13.2169 19.0027 13.7826 18.8748 14.231 19.1336C14.6794 19.3925 14.852 19.9467 14.6441 20.409L14.5972 20.4998C14.334 20.9556 13.9554 21.3342 13.4995 21.5974C13.0436 21.8607 12.526 21.9997 11.9995 21.9998C11.473 21.9998 10.9556 21.8607 10.4995 21.5974C10.1005 21.367 9.76054 21.0484 9.50541 20.6668L9.40091 20.4998L9.35404 20.409C9.1462 19.9467 9.31872 19.3925 9.76713 19.1336C10.2155 18.8747 10.7812 19.0027 11.0777 19.4139L11.1333 19.4998L11.2056 19.6092C11.2852 19.7129 11.3856 19.8002 11.4995 19.866C11.6515 19.9536 11.8242 19.9998 11.9995 19.9998C12.1749 19.9997 12.3477 19.9537 12.4995 19.866C12.6514 19.7783 12.7771 19.6516 12.8648 19.4998L12.9204 19.4139Z",
|
|
234
|
+
fill: "currentColor"
|
|
235
|
+
}
|
|
236
|
+
),
|
|
237
|
+
/* @__PURE__ */ jsx(
|
|
238
|
+
"path",
|
|
239
|
+
{
|
|
240
|
+
d: "M3.26127 15.326C3.13063 15.4692 3.04442 15.6472 3.01312 15.8385C2.98183 16.0298 3.00679 16.226 3.08498 16.4034C3.16316 16.5807 3.2912 16.7316 3.45352 16.8375C3.61585 16.9434 3.80545 16.9999 3.99927 17H19.9993C20.1931 17.0001 20.3827 16.9438 20.5451 16.8381C20.7076 16.7324 20.8358 16.5817 20.9142 16.4045C20.9926 16.2273 21.0178 16.0311 20.9867 15.8398C20.9557 15.6485 20.8697 15.4703 20.7393 15.327C19.4093 13.956 17.9993 12.499 17.9993 8C17.9993 6.4087 17.3671 4.88258 16.2419 3.75736C15.1167 2.63214 13.5906 2 11.9993 2C10.408 2 8.88185 2.63214 7.75663 3.75736C6.63141 4.88258 5.99927 6.4087 5.99927 8C5.99927 12.499 4.58827 13.956 3.26127 15.326Z",
|
|
241
|
+
fill: "currentColor"
|
|
242
|
+
}
|
|
243
|
+
)
|
|
244
|
+
] });
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
function IconBox(props) {
|
|
248
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
249
|
+
"path",
|
|
250
|
+
{
|
|
251
|
+
fillRule: "evenodd",
|
|
252
|
+
clipRule: "evenodd",
|
|
253
|
+
d: "M10.5021 1.40264C10.9577 1.14014 11.4742 1.00195 12 1.00195C12.5258 1.00195 13.0424 1.14015 13.4979 1.40267C13.4986 1.40307 13.4993 1.40348 13.5 1.40388L20.5 5.40387C20.9556 5.66692 21.334 6.04515 21.5973 6.50062C21.8606 6.95609 21.9995 7.47279 22 7.99888V16.0009C21.9995 16.527 21.8606 17.0437 21.5973 17.4992C21.334 17.9547 20.9556 18.3329 20.5 18.5959L20.4961 18.5981L13.5 22.5959C13.4994 22.5963 13.4988 22.5966 13.4982 22.597C13.066 22.8461 12.579 22.9833 12.0812 22.9968C12.0544 22.9989 12.0273 23 12 23C11.9727 23 11.9456 22.9989 11.9188 22.9968C11.4211 22.9833 10.934 22.8461 10.5019 22.597C10.5012 22.5966 10.5006 22.5963 10.5 22.5959L3.50386 18.5981L3.5 18.5959C3.04439 18.3329 2.66597 17.9547 2.40269 17.4992C2.13941 17.0437 2.00054 16.527 2 16.0009V7.99888C2.00054 7.47279 2.13941 6.95609 2.40269 6.50062C2.66597 6.04515 3.04439 5.66692 3.5 5.40388L3.50386 5.40165L6.99371 3.40746C6.99986 3.40386 7.00605 3.40032 7.01228 3.39685L10.5021 1.40264ZM7.49955 5.42191L4.98237 6.8603L11.5118 10.8731C11.6605 10.9562 11.8286 11 12 11C12.1712 11 12.339 10.9563 12.4878 10.8731L14.6759 9.52835L7.49955 5.42191ZM16.6175 8.3351L9.51441 4.27056L11.4961 3.13815L11.5 3.13593C11.652 3.04816 11.8245 3.00195 12 3.00195C12.1755 3.00195 12.348 3.04816 12.5 3.13593L19.0174 6.86018L16.6175 8.3351ZM20 8.60383L13.5204 12.586C13.5121 12.5911 13.5037 12.596 13.4953 12.6009C13.3368 12.692 13.171 12.7681 13 12.8285V20.5782L19.5 16.8639C19.5005 16.8636 19.5011 16.8633 19.5016 16.863C19.6527 16.7753 19.7783 16.6496 19.8658 16.4983C19.9535 16.3465 19.9998 16.1742 20 15.9989V8.60383ZM11 20.5782V12.8286C10.8289 12.7682 10.6629 12.6921 10.5043 12.6009C10.4959 12.596 10.4875 12.5911 10.4792 12.586L4 8.60407V15.9993C4.00025 16.1745 4.04654 16.3466 4.13423 16.4983C4.22169 16.6496 4.34726 16.7753 4.49842 16.863C4.49895 16.8633 4.49947 16.8636 4.5 16.8639L11 20.5782Z",
|
|
254
|
+
fill: "currentColor"
|
|
255
|
+
}
|
|
256
|
+
) });
|
|
257
|
+
}
|
|
258
|
+
|
|
193
259
|
function IconCalendar(props) {
|
|
194
260
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
195
261
|
"path",
|
|
@@ -224,6 +290,21 @@ function IconCheck(props) {
|
|
|
224
290
|
) });
|
|
225
291
|
}
|
|
226
292
|
|
|
293
|
+
function IconCheckCircle(props) {
|
|
294
|
+
return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", ...props, children: [
|
|
295
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10", fill: "white" }),
|
|
296
|
+
/* @__PURE__ */ jsx(
|
|
297
|
+
"path",
|
|
298
|
+
{
|
|
299
|
+
fillRule: "evenodd",
|
|
300
|
+
clipRule: "evenodd",
|
|
301
|
+
d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM16.6339 10.3839C17.122 9.89573 17.122 9.10427 16.6339 8.61612C16.1457 8.12796 15.3543 8.12796 14.8661 8.61612L10.75 12.7322L9.13388 11.1161C8.64573 10.628 7.85427 10.628 7.36612 11.1161C6.87796 11.6043 6.87796 12.3957 7.36612 12.8839L9.86612 15.3839C10.3543 15.872 11.1457 15.872 11.6339 15.3839L16.6339 10.3839Z",
|
|
302
|
+
fill: "#1A1B20"
|
|
303
|
+
}
|
|
304
|
+
)
|
|
305
|
+
] });
|
|
306
|
+
}
|
|
307
|
+
|
|
227
308
|
function IconChevron(props) {
|
|
228
309
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
229
310
|
"path",
|
|
@@ -270,6 +351,38 @@ function IconChevronDouble(props) {
|
|
|
270
351
|
] });
|
|
271
352
|
}
|
|
272
353
|
|
|
354
|
+
function IconClock(props) {
|
|
355
|
+
return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
|
|
356
|
+
/* @__PURE__ */ jsx(
|
|
357
|
+
"path",
|
|
358
|
+
{
|
|
359
|
+
fillRule: "evenodd",
|
|
360
|
+
clipRule: "evenodd",
|
|
361
|
+
d: "M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",
|
|
362
|
+
fill: "currentColor"
|
|
363
|
+
}
|
|
364
|
+
),
|
|
365
|
+
/* @__PURE__ */ jsx(
|
|
366
|
+
"path",
|
|
367
|
+
{
|
|
368
|
+
d: "M10.5 8.5C10.5 7.94771 10.9477 7.5 11.5 7.5C12.0523 7.5 12.5 7.94771 12.5 8.5L12.5 12.0859L14.207 13.793L14.2754 13.8691C14.5957 14.2619 14.5731 14.8409 14.207 15.207C13.8409 15.5731 13.2619 15.5957 12.8691 15.2754L12.793 15.207L10.793 13.207C10.6054 13.0195 10.5 12.7652 10.5 12.5L10.5 8.5Z",
|
|
369
|
+
fill: "currentColor"
|
|
370
|
+
}
|
|
371
|
+
)
|
|
372
|
+
] });
|
|
373
|
+
}
|
|
374
|
+
IconClock.Filled = function IconClockFilled(props) {
|
|
375
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
376
|
+
"path",
|
|
377
|
+
{
|
|
378
|
+
fillRule: "evenodd",
|
|
379
|
+
clipRule: "evenodd",
|
|
380
|
+
d: "M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM11.5 7.5C10.9477 7.5 10.5 7.94772 10.5 8.5V12.5C10.5 12.7652 10.6054 13.0195 10.793 13.207L12.793 15.207L12.8691 15.2754C13.2619 15.5957 13.8409 15.5731 14.207 15.207C14.5731 14.8409 14.5957 14.2619 14.2754 13.8691L14.207 13.793L12.5 12.0859V8.5C12.5 7.94772 12.0523 7.5 11.5 7.5Z",
|
|
381
|
+
fill: "currentColor"
|
|
382
|
+
}
|
|
383
|
+
) });
|
|
384
|
+
};
|
|
385
|
+
|
|
273
386
|
function IconCollapse(props) {
|
|
274
387
|
return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
|
|
275
388
|
/* @__PURE__ */ jsx(
|
|
@@ -291,6 +404,65 @@ function IconCollapse(props) {
|
|
|
291
404
|
] });
|
|
292
405
|
}
|
|
293
406
|
|
|
407
|
+
function IconCopy(props) {
|
|
408
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
409
|
+
"path",
|
|
410
|
+
{
|
|
411
|
+
d: "M8 16L8 18C8 19.1046 8.89543 20 10 20L18 20C19.1046 20 20 19.1046 20 18L20 10C20 8.89543 19.1046 8 18 8L16 8L16 6C16 4.89543 15.1046 4 14 4L6 4C4.89543 4 4 4.89543 4 6L4 14C4 15.1046 4.89543 16 6 16L14 16C15.1046 16 16 15.1046 16 14L16 12",
|
|
412
|
+
stroke: "currentColor",
|
|
413
|
+
strokeWidth: "2",
|
|
414
|
+
strokeLinecap: "round",
|
|
415
|
+
strokeLinejoin: "round"
|
|
416
|
+
}
|
|
417
|
+
) });
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
function IconDots(props) {
|
|
421
|
+
return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
|
|
422
|
+
/* @__PURE__ */ jsx(
|
|
423
|
+
"path",
|
|
424
|
+
{
|
|
425
|
+
d: "M9 6C9 7.65685 7.65685 9 6 9C4.34315 9 3 7.65685 3 6C3 4.34315 4.34315 3 6 3C7.65685 3 9 4.34315 9 6Z",
|
|
426
|
+
fill: "currentColor"
|
|
427
|
+
}
|
|
428
|
+
),
|
|
429
|
+
/* @__PURE__ */ jsx(
|
|
430
|
+
"path",
|
|
431
|
+
{
|
|
432
|
+
d: "M9 18C9 19.6569 7.65685 21 6 21C4.34315 21 3 19.6569 3 18C3 16.3431 4.34315 15 6 15C7.65685 15 9 16.3431 9 18Z",
|
|
433
|
+
fill: "currentColor"
|
|
434
|
+
}
|
|
435
|
+
),
|
|
436
|
+
/* @__PURE__ */ jsx(
|
|
437
|
+
"path",
|
|
438
|
+
{
|
|
439
|
+
d: "M21 6C21 7.65685 19.6569 9 18 9C16.3431 9 15 7.65685 15 6C15 4.34315 16.3431 3 18 3C19.6569 3 21 4.34315 21 6Z",
|
|
440
|
+
fill: "currentColor"
|
|
441
|
+
}
|
|
442
|
+
),
|
|
443
|
+
/* @__PURE__ */ jsx(
|
|
444
|
+
"path",
|
|
445
|
+
{
|
|
446
|
+
d: "M21 18C21 19.6569 19.6569 21 18 21C16.3431 21 15 19.6569 15 18C15 16.3431 16.3431 15 18 15C19.6569 15 21 16.3431 21 18Z",
|
|
447
|
+
fill: "currentColor"
|
|
448
|
+
}
|
|
449
|
+
)
|
|
450
|
+
] });
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
function IconDownload(props) {
|
|
454
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
455
|
+
"path",
|
|
456
|
+
{
|
|
457
|
+
d: "M7 10L12 15M12 15L17 10M12 15V3M5 21H19",
|
|
458
|
+
stroke: "currentColor",
|
|
459
|
+
strokeWidth: "2",
|
|
460
|
+
strokeLinecap: "round",
|
|
461
|
+
strokeLinejoin: "round"
|
|
462
|
+
}
|
|
463
|
+
) });
|
|
464
|
+
}
|
|
465
|
+
|
|
294
466
|
function IconEye(props) {
|
|
295
467
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
296
468
|
"path",
|
|
@@ -311,6 +483,56 @@ function IconEyeOff(props) {
|
|
|
311
483
|
}
|
|
312
484
|
IconEye.Off = IconEyeOff;
|
|
313
485
|
|
|
486
|
+
function IconFace() {
|
|
487
|
+
throw new Error("Do not render <IconFace /> directly.");
|
|
488
|
+
}
|
|
489
|
+
IconFace.Smile = function IconFace2(props) {
|
|
490
|
+
return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
|
|
491
|
+
/* @__PURE__ */ jsx(
|
|
492
|
+
"path",
|
|
493
|
+
{
|
|
494
|
+
d: "M21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12ZM9.00977 8C9.56205 8 10.0098 8.44772 10.0098 9C10.0098 9.55229 9.56205 10 9.00977 10H9C8.44772 10 8 9.55229 8 9C8 8.44772 8.44772 8 9 8H9.00977ZM15.0098 8C15.5621 8 16.0098 8.44772 16.0098 9C16.0098 9.55229 15.5621 10 15.0098 10H15C14.4477 10 14 9.55229 14 9C14 8.44772 14.4477 8 15 8H15.0098ZM23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12Z",
|
|
495
|
+
fill: "currentColor"
|
|
496
|
+
}
|
|
497
|
+
),
|
|
498
|
+
/* @__PURE__ */ jsx(
|
|
499
|
+
"path",
|
|
500
|
+
{
|
|
501
|
+
d: "M15.2012 13.3975C15.5329 12.9576 16.1585 12.8695 16.5996 13.2002C17.0414 13.5315 17.131 14.1578 16.7998 14.5996L16.7979 14.6025L16.7949 14.6064C16.7929 14.6091 16.7909 14.6126 16.7881 14.6162L16.7666 14.6436C16.75 14.6646 16.7272 14.6917 16.6993 14.7249L16.6963 14.7285C16.6376 14.7984 16.5547 14.8938 16.4482 15.0049C16.2362 15.2261 15.926 15.5172 15.5254 15.8086C14.7275 16.3889 13.5255 17 12 17C10.4745 17 9.27255 16.3889 8.47461 15.8086C8.07396 15.5172 7.76382 15.2261 7.55176 15.0049C7.44531 14.8938 7.36236 14.7984 7.30371 14.7285L7.30067 14.7249C7.2728 14.6917 7.25002 14.6645 7.2334 14.6436L7.21191 14.6162C7.20915 14.6126 7.20709 14.6091 7.20508 14.6064L7.20215 14.6025L7.2002 14.6006C6.86896 14.1588 6.95861 13.5315 7.40039 13.2002C7.8419 12.8692 8.46731 12.9584 8.79883 13.3994V13.3975L8.80176 13.4014C8.80771 13.4089 8.81842 13.4236 8.83496 13.4434C8.86805 13.4828 8.92208 13.5439 8.99512 13.6201C9.1424 13.7738 9.36384 13.983 9.65039 14.1914C10.2275 14.6111 11.0255 15 12 15C12.9745 15 13.7725 14.6111 14.3496 14.1914C14.6362 13.983 14.8576 13.7738 15.0049 13.6201C15.0779 13.5439 15.1319 13.4828 15.165 13.4434C15.1816 13.4236 15.1923 13.4089 15.1982 13.4014L15.2012 13.3975Z",
|
|
502
|
+
fill: "currentColor"
|
|
503
|
+
}
|
|
504
|
+
)
|
|
505
|
+
] });
|
|
506
|
+
};
|
|
507
|
+
IconFace.Sad = function IconFaceSad(props) {
|
|
508
|
+
return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
|
|
509
|
+
/* @__PURE__ */ jsx(
|
|
510
|
+
"path",
|
|
511
|
+
{
|
|
512
|
+
d: "M21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12ZM9.00977 8C9.56205 8 10.0098 8.44772 10.0098 9C10.0098 9.55229 9.56205 10 9.00977 10H9C8.44772 10 8 9.55229 8 9C8 8.44772 8.44772 8 9 8H9.00977ZM15.0098 8C15.5621 8 16.0098 8.44772 16.0098 9C16.0098 9.55229 15.5621 10 15.0098 10H15C14.4477 10 14 9.55229 14 9C14 8.44772 14.4477 8 15 8H15.0098ZM23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12Z",
|
|
513
|
+
fill: "currentColor"
|
|
514
|
+
}
|
|
515
|
+
),
|
|
516
|
+
/* @__PURE__ */ jsx(
|
|
517
|
+
"path",
|
|
518
|
+
{
|
|
519
|
+
d: "M8.79785 16.6025L8.79883 16.6016V16.5996C8.46744 17.0411 7.84211 17.131 7.40039 16.7998C6.95861 16.4685 6.86896 15.8422 7.2002 15.4004L7.20215 15.3975L7.20508 15.3936C7.20709 15.3909 7.20915 15.3874 7.21191 15.3838L7.2334 15.3564C7.25002 15.3355 7.2728 15.3083 7.30067 15.2751L7.30371 15.2715C7.36236 15.2016 7.44531 15.1062 7.55176 14.9951C7.76382 14.7739 8.07396 14.4828 8.47461 14.1914C9.27255 13.6111 10.4745 13 12 13C13.5255 13 14.7275 13.6111 15.5254 14.1914C15.926 14.4828 16.2362 14.7739 16.4482 14.9951C16.5547 15.1062 16.6376 15.2016 16.6963 15.2715L16.6993 15.2751C16.7272 15.3083 16.75 15.3354 16.7666 15.3564L16.7881 15.3838C16.7909 15.3874 16.7929 15.3909 16.7949 15.3936L16.7979 15.3975L16.7998 15.3994C17.131 15.8412 17.0414 16.4685 16.5996 16.7998C16.1578 17.131 15.5315 17.0414 15.2002 16.5996L15.2012 16.6025L15.1982 16.5986C15.1923 16.5911 15.1816 16.5764 15.165 16.5566C15.1319 16.5172 15.0779 16.4561 15.0049 16.3799C14.8576 16.2262 14.6362 16.017 14.3496 15.8086C13.7725 15.3889 12.9745 15 12 15C11.0255 15 10.2275 15.3889 9.65039 15.8086C9.36384 16.017 9.1424 16.2262 8.99512 16.3799C8.92208 16.4561 8.86805 16.5172 8.83496 16.5566C8.81842 16.5764 8.80771 16.5911 8.80176 16.5986C8.80029 16.6005 8.79785 16.6025 8.79785 16.6025Z",
|
|
520
|
+
fill: "currentColor"
|
|
521
|
+
}
|
|
522
|
+
)
|
|
523
|
+
] });
|
|
524
|
+
};
|
|
525
|
+
|
|
526
|
+
function IconFile(props) {
|
|
527
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
528
|
+
"path",
|
|
529
|
+
{
|
|
530
|
+
d: "M4 19.2002V4.7998C4.00005 4.06622 4.28346 3.35716 4.7959 2.83008C5.3093 2.30211 6.01151 2 6.75 2H14.625C14.895 2 15.1535 2.1092 15.3418 2.30273L19.7168 6.80273C19.8983 6.9894 20 7.23966 20 7.5V19.2002C19.9999 19.9338 19.7165 20.6428 19.2041 21.1699C18.6907 21.6979 17.9885 22 17.25 22H6.75C6.01151 22 5.3093 21.6979 4.7959 21.1699C4.28346 20.6428 4.00005 19.9338 4 19.2002ZM14.75 6.59961C14.75 6.82073 14.8356 7.02778 14.9795 7.17578C15.1225 7.32283 15.3103 7.40039 15.5 7.40039H17.5088L14.75 4.5625V6.59961ZM6 19.2002C6.00005 19.4211 6.08576 19.6274 6.22949 19.7754C6.37246 19.9224 6.56032 20 6.75 20H17.25C17.4397 20 17.6275 19.9224 17.7705 19.7754C17.9142 19.6274 17.9999 19.4211 18 19.2002V9.40039H15.5C14.7616 9.40039 14.0593 9.09815 13.5459 8.57031C13.0334 8.04319 12.75 7.33327 12.75 6.59961V4H6.75C6.56032 4 6.37246 4.07756 6.22949 4.22461C6.08576 4.37256 6.00005 4.57886 6 4.7998V19.2002Z",
|
|
531
|
+
fill: "currentColor"
|
|
532
|
+
}
|
|
533
|
+
) });
|
|
534
|
+
}
|
|
535
|
+
|
|
314
536
|
function IconFilters(props) {
|
|
315
537
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
316
538
|
"path",
|
|
@@ -344,6 +566,68 @@ IconGear.Filled = function IconGearFilled(props) {
|
|
|
344
566
|
) });
|
|
345
567
|
};
|
|
346
568
|
|
|
569
|
+
function IconHanger(props) {
|
|
570
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
571
|
+
"path",
|
|
572
|
+
{
|
|
573
|
+
d: "M13.9122 3.86347C14.9673 2.03591 17.3096 1.41301 19.1439 2.47205C20.9782 3.53109 21.6099 5.87097 20.5547 7.69854C19.7853 9.03124 18.3314 9.72334 16.8892 9.58977C16.3961 9.54411 15.8132 10.1393 16.0122 10.5927C16.779 12.3409 18.0997 15.5656 19.5281 20.0095C20.0051 21.4938 18.0983 22.6197 16.913 21.607C12.7601 18.0586 8.44577 15.6201 3.23441 13.8511C1.79178 13.3614 1.78285 11.3294 3.27362 11.0155C5.46031 10.5549 7.52724 10.2133 9 9.99232",
|
|
574
|
+
stroke: "currentColor",
|
|
575
|
+
strokeWidth: "3",
|
|
576
|
+
strokeLinecap: "round",
|
|
577
|
+
strokeLinejoin: "round"
|
|
578
|
+
}
|
|
579
|
+
) });
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
function IconHome(props) {
|
|
583
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
584
|
+
"path",
|
|
585
|
+
{
|
|
586
|
+
fillRule: "evenodd",
|
|
587
|
+
clipRule: "evenodd",
|
|
588
|
+
d: "M13.3287 4.50692C12.571 3.83288 11.429 3.83288 10.6713 4.50692L4.67127 9.84395C4.2443 10.2238 4 10.7681 4 11.3398V17.9972C4 19.1026 4.89543 19.9986 6 19.9986H18C19.1046 19.9986 20 19.1026 20 17.9972V11.3398C20 10.7681 19.7557 10.2238 19.3287 9.84395L13.3287 4.50692ZM9.34254 3.01106C10.8581 1.66298 13.1419 1.66298 14.6575 3.01106L20.6575 8.3481C21.5114 9.10769 22 10.1965 22 11.3398V17.9972C22 20.2079 20.2091 22 18 22H6C3.79086 22 2 20.2079 2 17.9972V11.3398C2 10.1965 2.48859 9.10769 3.34254 8.3481L9.34254 3.01106ZM9 16.9965C9 16.4439 9.44772 15.9958 10 15.9958H14C14.5523 15.9958 15 16.4439 15 16.9965C15 17.5492 14.5523 17.9972 14 17.9972H10C9.44772 17.9972 9 17.5492 9 16.9965Z",
|
|
589
|
+
fill: "currentColor"
|
|
590
|
+
}
|
|
591
|
+
) });
|
|
592
|
+
}
|
|
593
|
+
IconHome.Filled = function IconHomeFilled(props) {
|
|
594
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
595
|
+
"path",
|
|
596
|
+
{
|
|
597
|
+
fillRule: "evenodd",
|
|
598
|
+
clipRule: "evenodd",
|
|
599
|
+
d: "M14.6575 3.01106C13.1419 1.66298 10.8581 1.66298 9.34254 3.01106L3.34254 8.3481C2.48859 9.10769 2 10.1965 2 11.3398V17.9972C2 20.2079 3.79086 22 6 22H18C20.2091 22 22 20.2079 22 17.9972V11.3398C22 10.1965 21.5114 9.10769 20.6575 8.3481L14.6575 3.01106ZM8.75 16.9965C8.75 16.3056 9.30964 15.7456 10 15.7456H14C14.6904 15.7456 15.25 16.3056 15.25 16.9965C15.25 17.6873 14.6904 18.2473 14 18.2473H10C9.30964 18.2473 8.75 17.6873 8.75 16.9965Z",
|
|
600
|
+
fill: "currentColor"
|
|
601
|
+
}
|
|
602
|
+
) });
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
function IconInfo(props) {
|
|
606
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
607
|
+
"path",
|
|
608
|
+
{
|
|
609
|
+
fillRule: "evenodd",
|
|
610
|
+
clipRule: "evenodd",
|
|
611
|
+
d: "M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM12 17C11.4477 17 11 16.5523 11 16L11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12L13 16C13 16.5523 12.5523 17 12 17ZM13 8C13 8.55229 12.5523 9 12 9L11.99 9C11.4377 9 10.99 8.55229 10.99 8C10.99 7.44772 11.4377 7 11.99 7L12 7C12.5523 7 13 7.44772 13 8Z",
|
|
612
|
+
fill: "currentColor"
|
|
613
|
+
}
|
|
614
|
+
) });
|
|
615
|
+
}
|
|
616
|
+
IconInfo.Filled = function IconInfoFilled(props) {
|
|
617
|
+
return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
|
|
618
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10", fill: "white" }),
|
|
619
|
+
/* @__PURE__ */ jsx(
|
|
620
|
+
"path",
|
|
621
|
+
{
|
|
622
|
+
fillRule: "evenodd",
|
|
623
|
+
clipRule: "evenodd",
|
|
624
|
+
d: "M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM10.75 7C10.75 6.30964 11.3096 5.75 12 5.75C12.6904 5.75 13.25 6.30964 13.25 7C13.25 7.69036 12.6904 8.25 12 8.25C11.3096 8.25 10.75 7.69036 10.75 7ZM12 18.25C12.6904 18.25 13.25 17.6904 13.25 17L13.25 12C13.25 11.3096 12.6904 10.75 12 10.75C11.3096 10.75 10.75 11.3096 10.75 12L10.75 17C10.75 17.6904 11.3096 18.25 12 18.25Z",
|
|
625
|
+
fill: "currentColor"
|
|
626
|
+
}
|
|
627
|
+
)
|
|
628
|
+
] });
|
|
629
|
+
};
|
|
630
|
+
|
|
347
631
|
function IconGoogle(props) {
|
|
348
632
|
return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
|
|
349
633
|
/* @__PURE__ */ jsx(
|
|
@@ -385,6 +669,44 @@ function IconGoogle(props) {
|
|
|
385
669
|
] });
|
|
386
670
|
}
|
|
387
671
|
|
|
672
|
+
function IconTelegram(props) {
|
|
673
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
674
|
+
"path",
|
|
675
|
+
{
|
|
676
|
+
d: "M2.90465 10.6054L20.1346 4.07987C20.9343 3.79608 21.6328 4.27149 21.3736 5.45928L21.3751 5.45782L18.4414 19.034C18.224 19.9965 17.6417 20.2306 16.8271 19.7771L12.3595 16.5429L10.2047 18.582C9.96641 18.8161 9.76537 19.0135 9.30372 19.0135L9.62091 14.5476L17.9008 7.20001C18.2612 6.88843 17.8204 6.7129 17.3454 7.02301L7.11311 13.3511L2.70212 11.9994C1.74456 11.701 1.72371 11.0589 2.90465 10.6054Z",
|
|
677
|
+
fill: "#039BE5"
|
|
678
|
+
}
|
|
679
|
+
) });
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
function IconVK(props) {
|
|
683
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
684
|
+
"path",
|
|
685
|
+
{
|
|
686
|
+
d: "M22.0711 15.8962C21.5985 15.32 21.0735 14.7898 20.5028 14.3126C20.3235 14.1185 20.1267 13.9416 19.915 13.7844C19.3918 13.2561 19.3272 13.0591 19.7845 12.4655C20.068 12.0322 20.3733 11.6138 20.6991 11.2119C20.9601 10.8166 21.2869 10.4866 21.5479 10.0901L21.6138 10.0236C22.187 9.31758 22.6295 8.51291 22.9199 7.64826C23.0177 7.37111 23.0177 7.06834 22.9199 6.79119C22.8264 6.67066 22.7076 6.57265 22.5719 6.50428C22.4363 6.43591 22.2873 6.39888 22.1357 6.3959H18.4114C18.183 6.38679 17.9578 6.4525 17.7695 6.58322C17.5811 6.71394 17.4397 6.90265 17.3662 7.1212C17.1755 7.61675 16.9573 8.10106 16.7126 8.57182C16.2399 9.69109 15.5767 10.718 14.7528 11.606L14.687 11.6725C14.5565 11.8043 14.4906 11.936 14.3602 11.936H14.2943C14.098 11.8695 13.9675 11.4078 13.9675 11.2107V7.18769C13.9028 6.52766 13.7065 6.13237 12.987 6.0006H9.39552C9.16626 5.99381 8.93891 6.04447 8.73377 6.14804C8.52863 6.25161 8.35209 6.40488 8.21991 6.59415C8.14455 6.65738 8.08681 6.73936 8.05238 6.83199C8.01795 6.92463 8.00802 7.02472 8.02358 7.12241C8.08942 7.38594 8.35041 7.38594 8.4809 7.45243C8.69411 7.47028 8.89294 7.56821 9.03812 7.7269C9.1833 7.88558 9.26427 8.09347 9.26504 8.3095C9.38759 9.22782 9.40967 10.157 9.33087 11.0802C9.32502 11.3273 9.281 11.572 9.20039 11.8055C9.20039 11.872 9.13455 12.0037 9.06991 12.0037C9.00062 11.9955 8.93378 11.9728 8.87357 11.9372C8.60234 11.7046 8.36102 11.4386 8.15526 11.1455C7.338 9.95216 6.65839 8.6685 6.12966 7.31945C6.04836 7.08218 5.89963 6.87435 5.70205 6.72192C5.50446 6.56949 5.26679 6.47922 5.0187 6.46238H1.94798C1.78419 6.44323 1.61835 6.46998 1.46863 6.53971C1.31891 6.60943 1.19109 6.71944 1.09919 6.85767C1.03382 7.00267 1 7.16014 1 7.31945C1 7.47877 1.03382 7.63623 1.09919 7.78123C2.18576 10.3067 3.52092 12.7156 5.08454 14.9714C5.90352 16.138 6.94812 17.125 8.15526 17.8727C9.41443 18.5762 10.8321 18.9397 12.2711 18.928H12.7931C13.7077 18.8615 14.0345 18.5327 14.0992 17.6744C14.0846 17.2204 14.1739 16.7691 14.3602 16.3556C14.4906 16.092 14.6212 16.092 14.687 16.092C14.8022 16.118 14.9126 16.1625 15.0138 16.2238C15.202 16.361 15.3772 16.5156 15.537 16.6856C15.6833 16.825 15.8146 16.9798 15.9284 17.1474C16.1949 17.4702 16.4783 17.7785 16.7772 18.0709C17.0536 18.3851 17.3972 18.6316 17.782 18.7916C18.1668 18.9516 18.5827 19.021 18.998 18.9945H22.1345C22.2851 18.9932 22.4323 18.9493 22.5593 18.8676C22.6863 18.786 22.788 18.6699 22.8528 18.5327C22.9495 18.3501 23 18.1462 23 17.9392C23 17.7321 22.9495 17.5282 22.8528 17.3456C22.7051 16.8086 22.4377 16.3129 22.0711 15.8962Z",
|
|
687
|
+
fill: "#4B78A6"
|
|
688
|
+
}
|
|
689
|
+
) });
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
function IconYandex(props) {
|
|
693
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
694
|
+
"path",
|
|
695
|
+
{
|
|
696
|
+
d: "M7.24807 21.1831H9.06707C9.23207 21.1831 9.33207 21.1171 9.36707 21.0181L12.9061 14.0731H14.1961V21.0181C14.1989 21.0609 14.2172 21.1013 14.2475 21.1317C14.2779 21.162 14.3182 21.1803 14.3611 21.1831H15.9481C16.1131 21.1831 16.1481 21.1171 16.1481 20.9831V2.26612C16.1515 2.23047 16.147 2.1945 16.1348 2.1608C16.1227 2.1271 16.1033 2.09649 16.078 2.07117C16.0527 2.04585 16.0221 2.02643 15.9884 2.01432C15.9547 2.0022 15.9187 1.9977 15.8831 2.0011H12.9731C10.1291 2.0011 7.68107 4.1841 7.68107 8.3841C7.60722 9.50161 7.88265 10.6144 8.46924 11.5685C9.05582 12.5225 9.92453 13.2706 10.9551 13.7091L7.05507 20.7861C7.02562 20.822 7.00709 20.8656 7.00166 20.9118C6.99624 20.9579 7.00415 21.0046 7.02446 21.0464C7.04477 21.0882 7.07662 21.1233 7.11625 21.1475C7.15589 21.1717 7.20163 21.1841 7.24807 21.1831ZM9.79507 8.11911C9.79507 4.91111 11.3161 3.61911 12.8711 3.61911H14.1571V12.4191H13.1011C11.4481 12.4191 9.79407 11.1951 9.79407 8.11911H9.79507Z",
|
|
697
|
+
fill: "#FF0000"
|
|
698
|
+
}
|
|
699
|
+
) });
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
function IconLogo() {
|
|
703
|
+
throw new Error("Do not render <IconLogo /> directly.");
|
|
704
|
+
}
|
|
705
|
+
IconLogo.Google = IconGoogle;
|
|
706
|
+
IconLogo.Telegram = IconTelegram;
|
|
707
|
+
IconLogo.VK = IconVK;
|
|
708
|
+
IconLogo.Yandex = IconYandex;
|
|
709
|
+
|
|
388
710
|
function IconLogOut(props) {
|
|
389
711
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
390
712
|
"path",
|
|
@@ -415,6 +737,18 @@ function IconMinus(props) {
|
|
|
415
737
|
) });
|
|
416
738
|
}
|
|
417
739
|
|
|
740
|
+
function IconOneCircle(props) {
|
|
741
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
742
|
+
"path",
|
|
743
|
+
{
|
|
744
|
+
fillRule: "evenodd",
|
|
745
|
+
clipRule: "evenodd",
|
|
746
|
+
d: "M14.75 8C14.75 11.7279 11.7279 14.75 8 14.75C4.27208 14.75 1.25 11.7279 1.25 8C1.25 4.27208 4.27208 1.25 8 1.25C11.7279 1.25 14.75 4.27208 14.75 8ZM5.96973 6.96973C5.67684 7.26262 5.67684 7.73738 5.96973 8.03027C6.26262 8.32317 6.73738 8.32317 7.03028 8.03027L7.75 7.31055L7.75 10.5C7.75 10.9142 8.08579 11.25 8.5 11.25C8.91422 11.25 9.25 10.9142 9.25 10.5L9.25 5.5C9.25 5.19665 9.06737 4.92273 8.78711 4.80664C8.50688 4.6906 8.18421 4.75525 7.96973 4.96973L5.96973 6.96973Z",
|
|
747
|
+
fill: "currentColor"
|
|
748
|
+
}
|
|
749
|
+
) });
|
|
750
|
+
}
|
|
751
|
+
|
|
418
752
|
function IconPerson(props) {
|
|
419
753
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
420
754
|
"path",
|
|
@@ -515,6 +849,29 @@ function IconRequest(props) {
|
|
|
515
849
|
) });
|
|
516
850
|
}
|
|
517
851
|
|
|
852
|
+
function IconResizeCorner(props) {
|
|
853
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
854
|
+
"path",
|
|
855
|
+
{
|
|
856
|
+
d: "M20.293 13.2929C20.6835 12.9024 21.3165 12.9024 21.707 13.2929C22.0976 13.6834 22.0976 14.3164 21.707 14.707L14.707 21.707C14.3165 22.0975 13.6835 22.0975 13.293 21.707C12.9024 21.3164 12.9024 20.6834 13.293 20.2929L20.293 13.2929ZM20.293 18.2929C20.6835 17.9024 21.3165 17.9024 21.707 18.2929C22.0976 18.6834 22.0976 19.3164 21.707 19.707L19.707 21.707C19.3165 22.0975 18.6835 22.0975 18.293 21.707C17.9024 21.3164 17.9024 20.6834 18.293 20.2929L20.293 18.2929Z",
|
|
857
|
+
fill: "currentColor"
|
|
858
|
+
}
|
|
859
|
+
) });
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
function IconScan(props) {
|
|
863
|
+
return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
|
|
864
|
+
/* @__PURE__ */ jsx("rect", { width: "24", height: "24", fill: "white" }),
|
|
865
|
+
/* @__PURE__ */ jsx(
|
|
866
|
+
"path",
|
|
867
|
+
{
|
|
868
|
+
d: "M2 19V15.9375C2 15.3852 2.44772 14.9375 3 14.9375C3.55228 14.9375 4 15.3852 4 15.9375V19L4.00488 19.1025C4.05621 19.6067 4.48232 20 5 20H8.0625C8.61478 20 9.0625 20.4477 9.0625 21C9.0625 21.5523 8.61478 22 8.0625 22H5C3.39489 22 2.08421 20.7394 2.00391 19.1543L2 19ZM20 19V15.9375C20 15.3852 20.4477 14.9375 21 14.9375C21.5523 14.9375 22 15.3852 22 15.9375V19C22 20.6569 20.6569 22 19 22H15.9375C15.3852 22 14.9375 21.5523 14.9375 21C14.9375 20.4477 15.3852 20 15.9375 20H19C19.5523 20 20 19.5523 20 19ZM9.5 9.5V14.5H14.5V9.5H9.5ZM2 8.0625V5C2 3.34315 3.34315 2 5 2H8.0625C8.61478 2 9.0625 2.44772 9.0625 3C9.0625 3.55228 8.61478 4 8.0625 4H5C4.44772 4 4 4.44772 4 5V8.0625C4 8.61478 3.55228 9.0625 3 9.0625C2.44772 9.0625 2 8.61478 2 8.0625ZM20 8.0625V5C20 4.48232 19.6067 4.05621 19.1025 4.00488L19 4H15.9375C15.3852 4 14.9375 3.55228 14.9375 3C14.9375 2.44772 15.3852 2 15.9375 2H19L19.1543 2.00391C20.7394 2.08421 22 3.39489 22 5V8.0625C22 8.61478 21.5523 9.0625 21 9.0625C20.4477 9.0625 20 8.61478 20 8.0625ZM16.5 14.5C16.5 15.6046 15.6046 16.5 14.5 16.5H9.5C8.39543 16.5 7.5 15.6046 7.5 14.5V9.5C7.5 8.39543 8.39543 7.5 9.5 7.5H14.5C15.6046 7.5 16.5 8.39543 16.5 9.5V14.5Z",
|
|
869
|
+
fill: "currentColor"
|
|
870
|
+
}
|
|
871
|
+
)
|
|
872
|
+
] });
|
|
873
|
+
}
|
|
874
|
+
|
|
518
875
|
function IconSearch(props) {
|
|
519
876
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
520
877
|
"path",
|
|
@@ -560,26 +917,55 @@ function IconSort(props) {
|
|
|
560
917
|
) });
|
|
561
918
|
}
|
|
562
919
|
|
|
563
|
-
function
|
|
564
|
-
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0
|
|
920
|
+
function IconStar(props) {
|
|
921
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
565
922
|
"path",
|
|
566
923
|
{
|
|
567
|
-
d: "
|
|
568
|
-
fill: "
|
|
924
|
+
d: "M10.1963 1.01407C10.3252 1.03239 10.4516 1.06805 10.5713 1.12164L10.7451 1.21513L10.9063 1.33274C11.0076 1.4183 11.0977 1.51787 11.1729 1.6293L11.2734 1.80522L11.2744 1.80622L13.1221 5.59406L13.1631 5.66543C13.2081 5.73494 13.2654 5.79693 13.334 5.84738C13.4249 5.91432 13.5317 5.95885 13.6455 5.97606L17.7793 6.58826C17.9741 6.61689 18.1599 6.68698 18.3271 6.79334L18.4873 6.91095L18.6299 7.05169C18.7187 7.15184 18.7937 7.26441 18.8525 7.38644L18.9287 7.57644L18.9775 7.77548C19.0127 7.97713 19.0068 8.18527 18.958 8.38567C18.8929 8.65261 18.7556 8.89359 18.5645 9.08232L18.5635 9.08333L15.5752 12.0287L15.5742 12.0277C15.4944 12.1066 15.4368 12.2033 15.4033 12.3072C15.37 12.411 15.362 12.5209 15.3799 12.6279L16.084 16.7847C16.1315 17.0571 16.1029 17.3374 16.001 17.5929C15.899 17.8483 15.7287 18.0674 15.5127 18.2262C15.2969 18.3847 15.043 18.4781 14.7803 18.4966C14.5192 18.515 14.2576 18.4584 14.0244 18.3338L10.3301 16.3685C10.2293 16.3151 10.1155 16.287 10 16.287C9.88456 16.2871 9.77162 16.3151 9.6709 16.3685L5.97754 18.3348L5.97656 18.3338C5.74294 18.4583 5.48111 18.5144 5.21973 18.4956C4.95733 18.4767 4.7037 18.3838 4.48828 18.2252C4.27277 18.0665 4.10379 17.8478 4.00195 17.5929C3.90054 17.339 3.87077 17.0606 3.91699 16.7897L4.62109 12.6289C4.63923 12.5217 4.63205 12.4112 4.59863 12.3072C4.56516 12.2031 4.50684 12.1067 4.42676 12.0277L1.4375 9.08333L1.43848 9.08232C1.24731 8.89423 1.10864 8.65509 1.04297 8.38869C0.976892 8.12063 0.987151 7.83886 1.07129 7.57644C1.15539 7.31419 1.30988 7.08306 1.51465 6.90894C1.71813 6.73604 1.96351 6.62515 2.22266 6.58726L6.35352 5.97606C6.46805 5.95919 6.5765 5.91461 6.66797 5.84738C6.75935 5.78021 6.83159 5.69295 6.87988 5.59406L8.72656 1.80622L8.72754 1.80522C8.84731 1.56034 9.03096 1.35647 9.25586 1.21513L9.43067 1.12164C9.61022 1.04132 9.80464 1 10.001 1L10.1963 1.01407Z",
|
|
925
|
+
fill: "currentColor"
|
|
569
926
|
}
|
|
570
927
|
) });
|
|
571
928
|
}
|
|
572
929
|
|
|
573
|
-
function
|
|
930
|
+
function IconSticker(props) {
|
|
931
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
932
|
+
"path",
|
|
933
|
+
{
|
|
934
|
+
d: "M7.20052 3.40278C5.26404 3.73718 3.73718 5.26404 3.40278 7.20052L5.87587 6.78906C6.34417 6.71101 6.71101 6.34417 6.78906 5.87587L7.20052 3.40278ZM14 11.5556C14 12.9056 12.9056 14 11.5556 14H4.44444C3.09442 14 2 12.9056 2 11.5556V8C2 4.68629 4.68629 2 8 2H11.5556C12.9056 2 14 3.09442 14 4.44444V11.5556Z",
|
|
935
|
+
fill: "currentColor"
|
|
936
|
+
}
|
|
937
|
+
) });
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
function IconStop(props) {
|
|
574
941
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
575
942
|
"path",
|
|
576
943
|
{
|
|
577
|
-
d: "
|
|
578
|
-
fill: "
|
|
944
|
+
d: "M20 12C20 10.1506 19.3722 8.44989 18.3184 7.09473L7.09473 18.3184C8.44989 19.3722 10.1506 20 12 20C16.4183 20 20 16.4183 20 12ZM4 12C4 13.8489 4.6273 15.5493 5.68066 16.9043L16.9043 5.68066C15.5493 4.6273 13.8489 4 12 4C7.58172 4 4 7.58172 4 12ZM22 12C22 17.5228 17.5228 22 12 22C9.23885 22 6.73726 20.8798 4.92871 19.0713C3.12016 17.2627 2 14.7611 2 12C2 6.47715 6.47715 2 12 2C14.7611 2 17.2627 3.12016 19.0713 4.92871C20.8798 6.73726 22 9.23885 22 12Z",
|
|
945
|
+
fill: "currentColor"
|
|
579
946
|
}
|
|
580
947
|
) });
|
|
581
948
|
}
|
|
582
949
|
|
|
950
|
+
function IconSwitch(props) {
|
|
951
|
+
return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "none", ...props, children: [
|
|
952
|
+
/* @__PURE__ */ jsx(
|
|
953
|
+
"path",
|
|
954
|
+
{
|
|
955
|
+
d: "M5 12C5 12.5523 5.44771 13 6 13C6.55228 13 7 12.5523 7 12L7 6.41421L8.29289 7.70711C8.68342 8.09763 9.31658 8.09763 9.70711 7.70711C10.0976 7.31658 10.0976 6.68342 9.70711 6.29289L6.70711 3.29289C6.51957 3.10536 6.26522 3 6 3C5.73478 3 5.48043 3.10536 5.29289 3.29289L2.29289 6.29289C1.90237 6.68342 1.90237 7.31658 2.29289 7.70711C2.68342 8.09763 3.31658 8.09763 3.70711 7.70711L5 6.41421L5 12Z",
|
|
956
|
+
fill: "currentColor"
|
|
957
|
+
}
|
|
958
|
+
),
|
|
959
|
+
/* @__PURE__ */ jsx(
|
|
960
|
+
"path",
|
|
961
|
+
{
|
|
962
|
+
d: "M15 8C15 7.44772 14.5523 7 14 7C13.4477 7 13 7.44772 13 8L13 13.5858L11.7071 12.2929C11.3166 11.9024 10.6834 11.9024 10.2929 12.2929C9.90237 12.6834 9.90237 13.3166 10.2929 13.7071L13.2929 16.7071C13.4804 16.8946 13.7348 17 14 17C14.2652 17 14.5196 16.8946 14.7071 16.7071L17.7071 13.7071C18.0976 13.3166 18.0976 12.6834 17.7071 12.2929C17.3166 11.9024 16.6834 11.9024 16.2929 12.2929L15 13.5858L15 8Z",
|
|
963
|
+
fill: "currentColor"
|
|
964
|
+
}
|
|
965
|
+
)
|
|
966
|
+
] });
|
|
967
|
+
}
|
|
968
|
+
|
|
583
969
|
function IconXMark(props) {
|
|
584
970
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
585
971
|
"path",
|
|
@@ -602,20 +988,25 @@ function IconXMarkSmall(props) {
|
|
|
602
988
|
}
|
|
603
989
|
IconXMark.Small = IconXMarkSmall;
|
|
604
990
|
|
|
605
|
-
function
|
|
606
|
-
return /* @__PURE__ */
|
|
607
|
-
"
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
991
|
+
function IconXMarkCircle(props) {
|
|
992
|
+
return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
|
|
993
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10", fill: "white" }),
|
|
994
|
+
/* @__PURE__ */ jsx(
|
|
995
|
+
"path",
|
|
996
|
+
{
|
|
997
|
+
fillRule: "evenodd",
|
|
998
|
+
clipRule: "evenodd",
|
|
999
|
+
d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM10.3839 8.61612C9.89573 8.12796 9.10427 8.12796 8.61612 8.61612C8.12796 9.10427 8.12796 9.89573 8.61612 10.3839L10.2322 12L8.61612 13.6161C8.12796 14.1043 8.12796 14.8957 8.61612 15.3839C9.10427 15.872 9.89573 15.872 10.3839 15.3839L12 13.7678L13.6161 15.3839C14.1043 15.872 14.8957 15.872 15.3839 15.3839C15.872 14.8957 15.872 14.1043 15.3839 13.6161L13.7678 12L15.3839 10.3839C15.872 9.89573 15.872 9.10427 15.3839 8.61612C14.8957 8.12796 14.1043 8.12796 13.6161 8.61612L12 10.2322L10.3839 8.61612Z",
|
|
1000
|
+
fill: "currentColor"
|
|
1001
|
+
}
|
|
1002
|
+
)
|
|
1003
|
+
] });
|
|
613
1004
|
}
|
|
614
1005
|
|
|
615
1006
|
const breadcrumbs = "_breadcrumbs_1bfmb_2";
|
|
616
1007
|
const breadcrumbsItem = "_breadcrumbsItem_1bfmb_8";
|
|
617
1008
|
const defaultSeparator = "_defaultSeparator_1bfmb_14";
|
|
618
|
-
const styles$
|
|
1009
|
+
const styles$s = {
|
|
619
1010
|
breadcrumbs: breadcrumbs,
|
|
620
1011
|
breadcrumbsItem: breadcrumbsItem,
|
|
621
1012
|
defaultSeparator: defaultSeparator
|
|
@@ -664,7 +1055,7 @@ function Slot({
|
|
|
664
1055
|
}
|
|
665
1056
|
|
|
666
1057
|
const breadcrumbItem = "_breadcrumbItem_cua4v_2";
|
|
667
|
-
const styles$
|
|
1058
|
+
const styles$r = {
|
|
668
1059
|
breadcrumbItem: breadcrumbItem
|
|
669
1060
|
};
|
|
670
1061
|
|
|
@@ -675,7 +1066,7 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
|
|
|
675
1066
|
{
|
|
676
1067
|
"data-active": isActive,
|
|
677
1068
|
"data-disabled": props.disabled,
|
|
678
|
-
className: classNames(styles$
|
|
1069
|
+
className: classNames(styles$r.breadcrumbItem, className),
|
|
679
1070
|
...isActive && { "aria-current": "page" },
|
|
680
1071
|
...!asChild && { type: "button" },
|
|
681
1072
|
...props,
|
|
@@ -687,13 +1078,13 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
|
|
|
687
1078
|
function Breadcrumbs({
|
|
688
1079
|
className,
|
|
689
1080
|
children,
|
|
690
|
-
separator = /* @__PURE__ */ jsx(IconChevron, { className: styles$
|
|
1081
|
+
separator = /* @__PURE__ */ jsx(IconChevron, { className: styles$s.defaultSeparator })
|
|
691
1082
|
}) {
|
|
692
1083
|
const childrenArray = Array.isArray(children) ? children : [children];
|
|
693
1084
|
const lastIndex = childrenArray.length - 1;
|
|
694
|
-
return /* @__PURE__ */ jsx("nav", { "aria-label": "breadcrumb", className, children: /* @__PURE__ */ jsx("ol", { className: styles$
|
|
695
|
-
/* @__PURE__ */ jsx("li", { className: styles$
|
|
696
|
-
index < lastIndex && /* @__PURE__ */ jsx("li", { className: styles$
|
|
1085
|
+
return /* @__PURE__ */ jsx("nav", { "aria-label": "breadcrumb", className, children: /* @__PURE__ */ jsx("ol", { className: styles$s.breadcrumbs, children: childrenArray.map((item, index) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1086
|
+
/* @__PURE__ */ jsx("li", { className: styles$s.breadcrumbsItem, children: item }),
|
|
1087
|
+
index < lastIndex && /* @__PURE__ */ jsx("li", { className: styles$s.breadcrumbsItem, "aria-hidden": "true", children: separator })
|
|
697
1088
|
] }, index)) }) });
|
|
698
1089
|
}
|
|
699
1090
|
Breadcrumbs.Item = BreadcrumbItem;
|
|
@@ -708,7 +1099,7 @@ const neutral$2 = "_neutral_cmbkj_78";
|
|
|
708
1099
|
const lg$5 = "_lg_cmbkj_145";
|
|
709
1100
|
const md$8 = "_md_cmbkj_153";
|
|
710
1101
|
const sm$3 = "_sm_cmbkj_161";
|
|
711
|
-
const styles$
|
|
1102
|
+
const styles$q = {
|
|
712
1103
|
button: button,
|
|
713
1104
|
accent: accent$2,
|
|
714
1105
|
primary: primary$1,
|
|
@@ -726,7 +1117,7 @@ const accent$1 = "_accent_o8iku_10";
|
|
|
726
1117
|
const neutral$1 = "_neutral_o8iku_22";
|
|
727
1118
|
const lg$4 = "_lg_o8iku_41";
|
|
728
1119
|
const md$7 = "_md_o8iku_46";
|
|
729
|
-
const styles$
|
|
1120
|
+
const styles$p = {
|
|
730
1121
|
buttonFunction: buttonFunction,
|
|
731
1122
|
accent: accent$1,
|
|
732
1123
|
neutral: neutral$1,
|
|
@@ -746,7 +1137,7 @@ function ButtonFunction({
|
|
|
746
1137
|
return /* @__PURE__ */ jsx(
|
|
747
1138
|
Component,
|
|
748
1139
|
{
|
|
749
|
-
className: classNames(styles$
|
|
1140
|
+
className: classNames(styles$p.buttonFunction, styles$p[color], styles$p[size], className),
|
|
750
1141
|
...props.disabled && { "data-disabled": true },
|
|
751
1142
|
...!asChild && { type: "button" },
|
|
752
1143
|
...props,
|
|
@@ -768,7 +1159,7 @@ function Button({
|
|
|
768
1159
|
return /* @__PURE__ */ jsx(
|
|
769
1160
|
Component,
|
|
770
1161
|
{
|
|
771
|
-
className: classNames(styles$
|
|
1162
|
+
className: classNames(styles$q.button, styles$q[color], styles$q[size], styles$q[mode], className),
|
|
772
1163
|
...!asChild && { type: "button" },
|
|
773
1164
|
...props,
|
|
774
1165
|
children
|
|
@@ -780,7 +1171,7 @@ Button.Function = ButtonFunction;
|
|
|
780
1171
|
const checkboxWrapper = "_checkboxWrapper_k1shg_2";
|
|
781
1172
|
const icon$2 = "_icon_k1shg_23";
|
|
782
1173
|
const checkbox = "_checkbox_k1shg_2";
|
|
783
|
-
const styles$
|
|
1174
|
+
const styles$o = {
|
|
784
1175
|
checkboxWrapper: checkboxWrapper,
|
|
785
1176
|
icon: icon$2,
|
|
786
1177
|
checkbox: checkbox
|
|
@@ -793,11 +1184,11 @@ function Checkbox({ className, label, indeterminate, ...props }) {
|
|
|
793
1184
|
{
|
|
794
1185
|
"data-disabled": `${Boolean(props.disabled)}`,
|
|
795
1186
|
"data-state": dataState,
|
|
796
|
-
className: classNames(styles$
|
|
1187
|
+
className: classNames(styles$o.checkboxWrapper, className),
|
|
797
1188
|
children: [
|
|
798
|
-
dataState === "checked" && /* @__PURE__ */ jsx(IconCheck, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$
|
|
799
|
-
dataState === "indeterminate" && /* @__PURE__ */ jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$
|
|
800
|
-
/* @__PURE__ */ jsx("input", { "data-state": dataState, type: "checkbox", className: styles$
|
|
1189
|
+
dataState === "checked" && /* @__PURE__ */ jsx(IconCheck, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$o.icon }),
|
|
1190
|
+
dataState === "indeterminate" && /* @__PURE__ */ jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$o.icon }),
|
|
1191
|
+
/* @__PURE__ */ jsx("input", { "data-state": dataState, type: "checkbox", className: styles$o.checkbox, ...props }),
|
|
801
1192
|
label
|
|
802
1193
|
]
|
|
803
1194
|
}
|
|
@@ -805,7 +1196,7 @@ function Checkbox({ className, label, indeterminate, ...props }) {
|
|
|
805
1196
|
}
|
|
806
1197
|
|
|
807
1198
|
const chip = "_chip_dj4kw_2";
|
|
808
|
-
const styles$
|
|
1199
|
+
const styles$n = {
|
|
809
1200
|
chip: chip
|
|
810
1201
|
};
|
|
811
1202
|
|
|
@@ -813,7 +1204,7 @@ function Chip({ isSelected, children, className, disabled, ...props }) {
|
|
|
813
1204
|
return /* @__PURE__ */ jsx(
|
|
814
1205
|
"div",
|
|
815
1206
|
{
|
|
816
|
-
className: classNames(styles$
|
|
1207
|
+
className: classNames(styles$n.chip, className),
|
|
817
1208
|
"data-selected": isSelected,
|
|
818
1209
|
"data-disabled": disabled,
|
|
819
1210
|
"aria-disabled": disabled,
|
|
@@ -831,7 +1222,7 @@ const accent = "_accent_ww0fb_37";
|
|
|
831
1222
|
const neutral = "_neutral_ww0fb_42";
|
|
832
1223
|
const secondary$1 = "_secondary_ww0fb_47";
|
|
833
1224
|
const white = "_white_ww0fb_52";
|
|
834
|
-
const styles$
|
|
1225
|
+
const styles$m = {
|
|
835
1226
|
root: root$1,
|
|
836
1227
|
lg: lg$3,
|
|
837
1228
|
md: md$6,
|
|
@@ -843,7 +1234,7 @@ const styles$l = {
|
|
|
843
1234
|
};
|
|
844
1235
|
|
|
845
1236
|
function Counter({ className, size = "lg", color = "red", ...props }) {
|
|
846
|
-
return /* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
1237
|
+
return /* @__PURE__ */ jsx("div", { className: classNames(styles$m.root, styles$m[size], styles$m[color], className), ...props });
|
|
847
1238
|
}
|
|
848
1239
|
|
|
849
1240
|
const LOCALE_FIRST_DAY_OF_WEEK = {
|
|
@@ -853,7 +1244,7 @@ const LOCALE_FIRST_DAY_OF_WEEK = {
|
|
|
853
1244
|
|
|
854
1245
|
const datePickerCellWrapper = "_datePickerCellWrapper_np1gx_2";
|
|
855
1246
|
const datePickerCell = "_datePickerCell_np1gx_2";
|
|
856
|
-
const styles$
|
|
1247
|
+
const styles$l = {
|
|
857
1248
|
datePickerCellWrapper: datePickerCellWrapper,
|
|
858
1249
|
datePickerCell: datePickerCell,
|
|
859
1250
|
"radius-none": "_radius-none_np1gx_83",
|
|
@@ -863,10 +1254,10 @@ const styles$k = {
|
|
|
863
1254
|
};
|
|
864
1255
|
|
|
865
1256
|
function DatePickerCell({ children, className, state, isCurrent, radius = "both", ...props }) {
|
|
866
|
-
return /* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
1257
|
+
return /* @__PURE__ */ jsx("div", { className: classNames(styles$l.datePickerCellWrapper, styles$l[`radius-${radius}`]), "data-state": state, children: /* @__PURE__ */ jsx(
|
|
867
1258
|
"button",
|
|
868
1259
|
{
|
|
869
|
-
className: classNames(styles$
|
|
1260
|
+
className: classNames(styles$l.datePickerCell, styles$l[`radius-${radius}`], className),
|
|
870
1261
|
type: "button",
|
|
871
1262
|
role: "gridcell",
|
|
872
1263
|
"aria-selected": state === "selected",
|
|
@@ -923,7 +1314,7 @@ function getCalendarGrid(month, year, firstDayOfWeek) {
|
|
|
923
1314
|
const datePickerField = "_datePickerField_1qk8s_2";
|
|
924
1315
|
const datePickerFieldCalendar = "_datePickerFieldCalendar_1qk8s_8";
|
|
925
1316
|
const datePickerFieldWeek = "_datePickerFieldWeek_1qk8s_14";
|
|
926
|
-
const styles$
|
|
1317
|
+
const styles$k = {
|
|
927
1318
|
datePickerField: datePickerField,
|
|
928
1319
|
datePickerFieldCalendar: datePickerFieldCalendar,
|
|
929
1320
|
datePickerFieldWeek: datePickerFieldWeek
|
|
@@ -938,9 +1329,9 @@ function DatePickerField({
|
|
|
938
1329
|
firstDayOfWeek = LOCALE_FIRST_DAY_OF_WEEK.ru
|
|
939
1330
|
}) {
|
|
940
1331
|
const weeks = useMemo(() => getCalendarGrid(month, year, firstDayOfWeek), [month, year, firstDayOfWeek]);
|
|
941
|
-
return /* @__PURE__ */ jsxs("div", { className: classNames(styles$
|
|
1332
|
+
return /* @__PURE__ */ jsxs("div", { className: classNames(styles$k.datePickerField, className), role: "grid", children: [
|
|
942
1333
|
renderWeekdays?.(),
|
|
943
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
1334
|
+
/* @__PURE__ */ jsx("div", { className: styles$k.datePickerFieldCalendar, role: "rowgroup", children: weeks.map((week, weekIndex) => /* @__PURE__ */ jsx("div", { className: styles$k.datePickerFieldWeek, role: "row", "aria-rowindex": weekIndex + 1, children: week.map((day, dayIndex) => /* @__PURE__ */ jsx(Slot, { role: "gridcell", "aria-colindex": dayIndex + 1, children: children(day) }, `${day.year}-${day.month}-${day.date}`)) }, weekIndex)) })
|
|
944
1335
|
] });
|
|
945
1336
|
}
|
|
946
1337
|
|
|
@@ -981,13 +1372,13 @@ const I18N_MONTH_LABELS = {
|
|
|
981
1372
|
|
|
982
1373
|
const datePickerWeekdays = "_datePickerWeekdays_p8tsm_2";
|
|
983
1374
|
const datePickerWeekday = "_datePickerWeekday_p8tsm_2";
|
|
984
|
-
const styles$
|
|
1375
|
+
const styles$j = {
|
|
985
1376
|
datePickerWeekdays: datePickerWeekdays,
|
|
986
1377
|
datePickerWeekday: datePickerWeekday
|
|
987
1378
|
};
|
|
988
1379
|
|
|
989
1380
|
function DatePickerWeekDays({ className, locale = "ru" }) {
|
|
990
|
-
return /* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
1381
|
+
return /* @__PURE__ */ jsx("div", { className: classNames(styles$j.datePickerWeekdays, className), role: "row", children: I18N_WEEKDAY_LABELS[locale].map((label) => /* @__PURE__ */ jsx("div", { className: styles$j.datePickerWeekday, role: "columnheader", children: label }, label)) });
|
|
991
1382
|
}
|
|
992
1383
|
|
|
993
1384
|
function DatePicker() {
|
|
@@ -1163,22 +1554,76 @@ function useDatePickerSelect() {
|
|
|
1163
1554
|
};
|
|
1164
1555
|
}
|
|
1165
1556
|
|
|
1557
|
+
const DROPDOWN_PORTAL_DEFAULT_OFFSET = 8;
|
|
1558
|
+
|
|
1559
|
+
const DROPDOWN_PORTAL_TRANSLATE_BY_ALIGN = {
|
|
1560
|
+
start: "0%",
|
|
1561
|
+
center: "-50%",
|
|
1562
|
+
end: "-100%"
|
|
1563
|
+
};
|
|
1564
|
+
const DROPDOWN_PORTAL_SIDE_CONFIG = {
|
|
1565
|
+
top: {
|
|
1566
|
+
sizeKey: "portalHeight",
|
|
1567
|
+
edgeKey: "topEdge",
|
|
1568
|
+
viewportKey: "top",
|
|
1569
|
+
nextPosition: "bottom",
|
|
1570
|
+
anchorKey: "top",
|
|
1571
|
+
anchorEdgeKey: "top",
|
|
1572
|
+
paddingKey: "paddingBottom",
|
|
1573
|
+
translateAxis: "x",
|
|
1574
|
+
fixedTranslate: "-100%"
|
|
1575
|
+
},
|
|
1576
|
+
right: {
|
|
1577
|
+
sizeKey: "portalWidth",
|
|
1578
|
+
edgeKey: "rightEdge",
|
|
1579
|
+
viewportKey: "right",
|
|
1580
|
+
nextPosition: "left",
|
|
1581
|
+
anchorKey: "left",
|
|
1582
|
+
anchorEdgeKey: "right",
|
|
1583
|
+
paddingKey: "paddingLeft",
|
|
1584
|
+
translateAxis: "y",
|
|
1585
|
+
fixedTranslate: "0%"
|
|
1586
|
+
},
|
|
1587
|
+
bottom: {
|
|
1588
|
+
sizeKey: "portalHeight",
|
|
1589
|
+
edgeKey: "bottomEdge",
|
|
1590
|
+
viewportKey: "bottom",
|
|
1591
|
+
nextPosition: "top",
|
|
1592
|
+
anchorKey: "top",
|
|
1593
|
+
anchorEdgeKey: "bottom",
|
|
1594
|
+
paddingKey: "paddingTop",
|
|
1595
|
+
translateAxis: "x",
|
|
1596
|
+
fixedTranslate: "0%"
|
|
1597
|
+
},
|
|
1598
|
+
left: {
|
|
1599
|
+
sizeKey: "portalWidth",
|
|
1600
|
+
edgeKey: "leftEdge",
|
|
1601
|
+
viewportKey: "left",
|
|
1602
|
+
nextPosition: "right",
|
|
1603
|
+
anchorKey: "left",
|
|
1604
|
+
anchorEdgeKey: "left",
|
|
1605
|
+
paddingKey: "paddingRight",
|
|
1606
|
+
translateAxis: "y",
|
|
1607
|
+
fixedTranslate: "-100%"
|
|
1608
|
+
}
|
|
1609
|
+
};
|
|
1610
|
+
|
|
1166
1611
|
const dropdownContent = "_dropdownContent_12tkb_2";
|
|
1167
|
-
const styles$
|
|
1612
|
+
const styles$i = {
|
|
1168
1613
|
dropdownContent: dropdownContent
|
|
1169
1614
|
};
|
|
1170
1615
|
|
|
1171
1616
|
function DropdownContent({ className, children, ...props }) {
|
|
1172
|
-
return /* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
1617
|
+
return /* @__PURE__ */ jsx("div", { className: classNames(styles$i.dropdownContent, className), ...props, children });
|
|
1173
1618
|
}
|
|
1174
1619
|
|
|
1175
1620
|
const dropdownItem = "_dropdownItem_msc4i_2";
|
|
1176
|
-
const styles$
|
|
1621
|
+
const styles$h = {
|
|
1177
1622
|
dropdownItem: dropdownItem
|
|
1178
1623
|
};
|
|
1179
1624
|
|
|
1180
1625
|
function DropdownItem({ className, children, disabled, ...props }) {
|
|
1181
|
-
return /* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
1626
|
+
return /* @__PURE__ */ jsx("div", { className: classNames(styles$h.dropdownItem, className), role: "menuitem", "data-disabled": disabled, ...props, children });
|
|
1182
1627
|
}
|
|
1183
1628
|
|
|
1184
1629
|
const CLICK_OUTSIDE_IGNORE_DATA_NAME = "data-clickoutside-ignore";
|
|
@@ -1211,6 +1656,8 @@ function useClickOutside(refs, callback) {
|
|
|
1211
1656
|
|
|
1212
1657
|
function DropdownMenuProvider({ children }) {
|
|
1213
1658
|
const [isOpen, setIsOpen] = useState(false);
|
|
1659
|
+
const [triggerEvent, setTriggerEvent] = useState("click");
|
|
1660
|
+
const [portalPlacement, setPortalPlacement] = useState(null);
|
|
1214
1661
|
const triggerRef = useRef(null);
|
|
1215
1662
|
const portalRef = useRef(null);
|
|
1216
1663
|
useClickOutside([portalRef, triggerRef], () => setIsOpen(false));
|
|
@@ -1221,9 +1668,13 @@ function DropdownMenuProvider({ children }) {
|
|
|
1221
1668
|
isOpen,
|
|
1222
1669
|
setIsOpen,
|
|
1223
1670
|
triggerRef,
|
|
1224
|
-
portalRef
|
|
1671
|
+
portalRef,
|
|
1672
|
+
triggerEvent,
|
|
1673
|
+
setTriggerEvent,
|
|
1674
|
+
portalPlacement,
|
|
1675
|
+
setPortalPlacement
|
|
1225
1676
|
},
|
|
1226
|
-
children: typeof children === "function" ? children({ isOpen, setIsOpen }) : children
|
|
1677
|
+
children: typeof children === "function" ? children({ isOpen, setIsOpen, portalPlacement }) : children
|
|
1227
1678
|
}
|
|
1228
1679
|
);
|
|
1229
1680
|
}
|
|
@@ -1236,34 +1687,351 @@ function useDropdownMenuContext() {
|
|
|
1236
1687
|
return context;
|
|
1237
1688
|
}
|
|
1238
1689
|
|
|
1239
|
-
const
|
|
1240
|
-
const
|
|
1241
|
-
|
|
1690
|
+
const getAxisAlign = ({ translateAxis, triggerPageRect, triggerCenter }) => {
|
|
1691
|
+
const axisAlign = {
|
|
1692
|
+
x: {
|
|
1693
|
+
start: triggerPageRect.left,
|
|
1694
|
+
center: triggerCenter.x,
|
|
1695
|
+
end: triggerPageRect.right
|
|
1696
|
+
},
|
|
1697
|
+
y: {
|
|
1698
|
+
start: triggerPageRect.top,
|
|
1699
|
+
center: triggerCenter.y,
|
|
1700
|
+
end: triggerPageRect.bottom
|
|
1701
|
+
}
|
|
1702
|
+
};
|
|
1703
|
+
return axisAlign[translateAxis];
|
|
1704
|
+
};
|
|
1705
|
+
|
|
1706
|
+
const getTriggerGeometry = (triggerRect, scrollCoords) => {
|
|
1707
|
+
const triggerWidth = triggerRect.width || triggerRect.right - triggerRect.left;
|
|
1708
|
+
const triggerHeight = triggerRect.height || triggerRect.bottom - triggerRect.top;
|
|
1709
|
+
const triggerPageRect = {
|
|
1710
|
+
top: triggerRect.top + scrollCoords.y,
|
|
1711
|
+
right: triggerRect.right + scrollCoords.x,
|
|
1712
|
+
bottom: triggerRect.bottom + scrollCoords.y,
|
|
1713
|
+
left: triggerRect.left + scrollCoords.x
|
|
1714
|
+
};
|
|
1715
|
+
const triggerCenter = {
|
|
1716
|
+
x: triggerPageRect.left + triggerWidth / 2,
|
|
1717
|
+
y: triggerPageRect.top + triggerHeight / 2
|
|
1718
|
+
};
|
|
1719
|
+
return { triggerPageRect, triggerCenter };
|
|
1720
|
+
};
|
|
1721
|
+
|
|
1722
|
+
const getTranslateBySide = (position, align) => {
|
|
1723
|
+
const sideConfig = DROPDOWN_PORTAL_SIDE_CONFIG[position];
|
|
1724
|
+
const translateByAlign = DROPDOWN_PORTAL_TRANSLATE_BY_ALIGN[align];
|
|
1725
|
+
const isAlignOnX = sideConfig.translateAxis === "x";
|
|
1726
|
+
return {
|
|
1727
|
+
"--dropdown-portal-translate-x": isAlignOnX ? translateByAlign : sideConfig.fixedTranslate,
|
|
1728
|
+
"--dropdown-portal-translate-y": isAlignOnX ? sideConfig.fixedTranslate : translateByAlign
|
|
1729
|
+
};
|
|
1730
|
+
};
|
|
1731
|
+
const getAnchorBySide = (position, triggerPageRect) => {
|
|
1732
|
+
const sideConfig = DROPDOWN_PORTAL_SIDE_CONFIG[position];
|
|
1733
|
+
return { [sideConfig.anchorKey]: triggerPageRect[sideConfig.anchorEdgeKey] };
|
|
1734
|
+
};
|
|
1735
|
+
const getOffsetPadding = (position, offset) => {
|
|
1736
|
+
const sideConfig = DROPDOWN_PORTAL_SIDE_CONFIG[position];
|
|
1737
|
+
return { [sideConfig.paddingKey]: `${offset}px` };
|
|
1738
|
+
};
|
|
1739
|
+
const getEdgeValueBySide = ({
|
|
1740
|
+
position,
|
|
1741
|
+
triggerRect,
|
|
1742
|
+
scrollCoords,
|
|
1743
|
+
portalWidth,
|
|
1744
|
+
portalHeight
|
|
1745
|
+
}) => {
|
|
1746
|
+
const sideConfig = DROPDOWN_PORTAL_SIDE_CONFIG[position];
|
|
1747
|
+
if (sideConfig.edgeKey === "rightEdge") {
|
|
1748
|
+
return triggerRect.right + scrollCoords.x + portalWidth;
|
|
1749
|
+
}
|
|
1750
|
+
if (sideConfig.edgeKey === "leftEdge") {
|
|
1751
|
+
return triggerRect.left + scrollCoords.x - portalWidth;
|
|
1752
|
+
}
|
|
1753
|
+
if (sideConfig.edgeKey === "bottomEdge") {
|
|
1754
|
+
return triggerRect.bottom + scrollCoords.y + portalHeight;
|
|
1755
|
+
}
|
|
1756
|
+
return triggerRect.top + scrollCoords.y - portalHeight;
|
|
1757
|
+
};
|
|
1758
|
+
const isEdgeOverflow = ({ edgeKey, edgeValue, viewportLimit }) => {
|
|
1759
|
+
if (edgeKey === "rightEdge" || edgeKey === "bottomEdge") {
|
|
1760
|
+
return edgeValue > viewportLimit;
|
|
1761
|
+
}
|
|
1762
|
+
return edgeValue < viewportLimit;
|
|
1242
1763
|
};
|
|
1243
1764
|
|
|
1244
|
-
function
|
|
1245
|
-
|
|
1246
|
-
|
|
1765
|
+
function getPortalPosition({
|
|
1766
|
+
align,
|
|
1767
|
+
position,
|
|
1768
|
+
offset,
|
|
1769
|
+
scrollCoords,
|
|
1770
|
+
triggerRect
|
|
1771
|
+
}) {
|
|
1772
|
+
const { triggerPageRect, triggerCenter } = getTriggerGeometry(triggerRect, scrollCoords);
|
|
1773
|
+
const sideConfig = DROPDOWN_PORTAL_SIDE_CONFIG[position];
|
|
1774
|
+
const axisAlign = getAxisAlign({
|
|
1775
|
+
translateAxis: sideConfig.translateAxis,
|
|
1776
|
+
triggerPageRect,
|
|
1777
|
+
triggerCenter
|
|
1778
|
+
});
|
|
1779
|
+
const alignPosition = {
|
|
1780
|
+
x: {
|
|
1781
|
+
left: axisAlign[align]
|
|
1782
|
+
},
|
|
1783
|
+
y: {
|
|
1784
|
+
top: axisAlign[align]
|
|
1785
|
+
}
|
|
1786
|
+
};
|
|
1787
|
+
const portalPositionStyle = {
|
|
1788
|
+
...getTranslateBySide(position, align),
|
|
1789
|
+
...getAnchorBySide(position, triggerPageRect),
|
|
1790
|
+
...alignPosition[sideConfig.translateAxis],
|
|
1791
|
+
...getOffsetPadding(position, offset)
|
|
1792
|
+
};
|
|
1793
|
+
return portalPositionStyle;
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
function handleDropdownMouseLeave(event, { ignoreRelatedTargetRef, setIsOpen }) {
|
|
1797
|
+
if (event.relatedTarget instanceof Node && ignoreRelatedTargetRef.current?.contains(event.relatedTarget)) {
|
|
1798
|
+
return;
|
|
1799
|
+
}
|
|
1800
|
+
setIsOpen(false);
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
function usePortalHandlersByEventTrigger() {
|
|
1804
|
+
const { triggerRef, setIsOpen } = useDropdownMenuContext();
|
|
1805
|
+
const handlePortalBlur = useCallback(
|
|
1806
|
+
(event) => {
|
|
1807
|
+
const relatedTarget = event.relatedTarget;
|
|
1808
|
+
if (!(relatedTarget instanceof Node)) {
|
|
1809
|
+
setIsOpen(false);
|
|
1810
|
+
return;
|
|
1811
|
+
}
|
|
1812
|
+
if (event.currentTarget.contains(relatedTarget) || triggerRef.current?.contains(relatedTarget)) {
|
|
1813
|
+
return;
|
|
1814
|
+
}
|
|
1815
|
+
setIsOpen(false);
|
|
1816
|
+
},
|
|
1817
|
+
[setIsOpen, triggerRef]
|
|
1818
|
+
);
|
|
1819
|
+
const portalHandlersByEvent = useMemo(
|
|
1820
|
+
() => ({
|
|
1821
|
+
click: {},
|
|
1822
|
+
hover: {
|
|
1823
|
+
onMouseLeave: (event) => handleDropdownMouseLeave(event, {
|
|
1824
|
+
ignoreRelatedTargetRef: triggerRef,
|
|
1825
|
+
setIsOpen
|
|
1826
|
+
}),
|
|
1827
|
+
onBlur: handlePortalBlur
|
|
1828
|
+
}
|
|
1829
|
+
}),
|
|
1830
|
+
[handlePortalBlur, setIsOpen, triggerRef]
|
|
1831
|
+
);
|
|
1832
|
+
return portalHandlersByEvent;
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
const getAdjustedAlign = ({
|
|
1836
|
+
align,
|
|
1837
|
+
translateAxis,
|
|
1838
|
+
portalWidth,
|
|
1839
|
+
portalHeight,
|
|
1840
|
+
triggerPageRect,
|
|
1841
|
+
triggerCenter,
|
|
1842
|
+
viewportPosition
|
|
1843
|
+
}) => {
|
|
1844
|
+
const isAlignedOnX = translateAxis === "x";
|
|
1845
|
+
const portalSize = isAlignedOnX ? portalWidth : portalHeight;
|
|
1846
|
+
if (!portalSize) {
|
|
1847
|
+
return align;
|
|
1848
|
+
}
|
|
1849
|
+
const axisAlign = getAxisAlign({ translateAxis, triggerPageRect, triggerCenter });
|
|
1850
|
+
const viewportStart = isAlignedOnX ? viewportPosition.left : viewportPosition.top;
|
|
1851
|
+
const viewportEnd = isAlignedOnX ? viewportPosition.right : viewportPosition.bottom;
|
|
1852
|
+
let portalStart = axisAlign.start;
|
|
1853
|
+
if (align === "center") {
|
|
1854
|
+
portalStart = axisAlign.center - portalSize / 2;
|
|
1855
|
+
}
|
|
1856
|
+
if (align === "end") {
|
|
1857
|
+
portalStart = axisAlign.end - portalSize;
|
|
1858
|
+
}
|
|
1859
|
+
const portalEnd = portalStart + portalSize;
|
|
1860
|
+
const isStartOverflow = portalStart < viewportStart;
|
|
1861
|
+
const isEndOverflow = portalEnd > viewportEnd;
|
|
1862
|
+
if (align === "start" && isEndOverflow && !isStartOverflow) {
|
|
1863
|
+
return "end";
|
|
1864
|
+
}
|
|
1865
|
+
if (align === "end" && isStartOverflow && !isEndOverflow) {
|
|
1866
|
+
return "start";
|
|
1867
|
+
}
|
|
1868
|
+
if (align === "center" && isStartOverflow !== isEndOverflow) {
|
|
1869
|
+
return isStartOverflow ? "start" : "end";
|
|
1870
|
+
}
|
|
1871
|
+
return align;
|
|
1872
|
+
};
|
|
1873
|
+
|
|
1874
|
+
const getAdjustedPosition = ({
|
|
1875
|
+
position,
|
|
1876
|
+
portalWidth,
|
|
1877
|
+
portalHeight,
|
|
1878
|
+
triggerRect,
|
|
1879
|
+
scrollCoords,
|
|
1880
|
+
viewportPosition
|
|
1881
|
+
}) => {
|
|
1882
|
+
const sideConfig = DROPDOWN_PORTAL_SIDE_CONFIG[position];
|
|
1883
|
+
const portalSize = sideConfig.sizeKey === "portalWidth" ? portalWidth : portalHeight;
|
|
1884
|
+
const edgeValue = getEdgeValueBySide({
|
|
1885
|
+
position,
|
|
1886
|
+
triggerRect,
|
|
1887
|
+
scrollCoords,
|
|
1888
|
+
portalWidth,
|
|
1889
|
+
portalHeight
|
|
1890
|
+
});
|
|
1891
|
+
const viewportLimit = viewportPosition[sideConfig.viewportKey];
|
|
1892
|
+
const isOverflow = isEdgeOverflow({ edgeKey: sideConfig.edgeKey, edgeValue, viewportLimit });
|
|
1893
|
+
return portalSize && isOverflow ? sideConfig.nextPosition : position;
|
|
1894
|
+
};
|
|
1895
|
+
|
|
1896
|
+
function getAdjustedPlacement({
|
|
1897
|
+
align,
|
|
1898
|
+
position,
|
|
1899
|
+
viewportPosition,
|
|
1900
|
+
portalWidth = 0,
|
|
1901
|
+
portalHeight = 0,
|
|
1902
|
+
scrollCoords,
|
|
1903
|
+
triggerRect
|
|
1904
|
+
}) {
|
|
1905
|
+
const adjustedPosition = getAdjustedPosition({
|
|
1906
|
+
position,
|
|
1907
|
+
viewportPosition,
|
|
1908
|
+
portalWidth,
|
|
1909
|
+
portalHeight,
|
|
1910
|
+
scrollCoords,
|
|
1911
|
+
triggerRect
|
|
1912
|
+
});
|
|
1913
|
+
const { triggerPageRect, triggerCenter } = getTriggerGeometry(triggerRect, scrollCoords);
|
|
1914
|
+
const sideConfig = DROPDOWN_PORTAL_SIDE_CONFIG[position];
|
|
1915
|
+
const adjustedAlign = getAdjustedAlign({
|
|
1916
|
+
align,
|
|
1917
|
+
translateAxis: sideConfig.translateAxis,
|
|
1918
|
+
portalWidth,
|
|
1919
|
+
portalHeight,
|
|
1920
|
+
triggerPageRect,
|
|
1921
|
+
triggerCenter,
|
|
1922
|
+
viewportPosition
|
|
1923
|
+
});
|
|
1924
|
+
return { position: adjustedPosition, align: adjustedAlign };
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
function usePortalPosition({ align, position, offset, portalWidth, portalHeight }) {
|
|
1928
|
+
const { isOpen, triggerRef, setPortalPlacement } = useDropdownMenuContext();
|
|
1929
|
+
const [portalPosition, setPortalPosition] = useState();
|
|
1247
1930
|
useEffect(() => {
|
|
1248
1931
|
if (isOpen && triggerRef.current) {
|
|
1249
1932
|
const triggerRect = triggerRef.current.getBoundingClientRect();
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1933
|
+
const scrollCoords = {
|
|
1934
|
+
x: window.scrollX,
|
|
1935
|
+
y: window.scrollY
|
|
1936
|
+
};
|
|
1937
|
+
const viewportPosition = {
|
|
1938
|
+
left: scrollCoords.x,
|
|
1939
|
+
right: scrollCoords.x + window.innerWidth,
|
|
1940
|
+
top: scrollCoords.y,
|
|
1941
|
+
bottom: scrollCoords.y + window.innerHeight
|
|
1942
|
+
};
|
|
1943
|
+
const { position: adjustedPosition, align: adjustedAlign } = getAdjustedPlacement({
|
|
1944
|
+
align,
|
|
1945
|
+
position,
|
|
1946
|
+
viewportPosition,
|
|
1947
|
+
portalWidth,
|
|
1948
|
+
portalHeight,
|
|
1949
|
+
scrollCoords,
|
|
1950
|
+
triggerRect
|
|
1951
|
+
});
|
|
1952
|
+
setPortalPlacement({ position: adjustedPosition, align: adjustedAlign });
|
|
1953
|
+
const newPortalPosition = getPortalPosition({
|
|
1954
|
+
align: adjustedAlign,
|
|
1955
|
+
position: adjustedPosition,
|
|
1956
|
+
offset,
|
|
1957
|
+
triggerRect,
|
|
1958
|
+
scrollCoords
|
|
1254
1959
|
});
|
|
1960
|
+
setPortalPosition(newPortalPosition);
|
|
1255
1961
|
}
|
|
1256
|
-
}, [align, isOpen, triggerRef]);
|
|
1257
|
-
|
|
1962
|
+
}, [align, isOpen, offset, portalHeight, portalWidth, position, setPortalPlacement, triggerRef]);
|
|
1963
|
+
return portalPosition;
|
|
1964
|
+
}
|
|
1965
|
+
|
|
1966
|
+
function useTriggerHandlersByEventTrigger() {
|
|
1967
|
+
const { setIsOpen, portalRef } = useDropdownMenuContext();
|
|
1968
|
+
const handleTriggerBlur = useCallback(
|
|
1969
|
+
(event) => {
|
|
1970
|
+
const relatedTarget = event.relatedTarget;
|
|
1971
|
+
if (relatedTarget instanceof Node && portalRef.current?.contains(relatedTarget)) {
|
|
1972
|
+
return;
|
|
1973
|
+
}
|
|
1974
|
+
setIsOpen(false);
|
|
1975
|
+
},
|
|
1976
|
+
[portalRef, setIsOpen]
|
|
1977
|
+
);
|
|
1978
|
+
const triggerHandlersByEvent = useMemo(
|
|
1979
|
+
() => ({
|
|
1980
|
+
click: { onClick: () => setIsOpen((prev) => !prev) },
|
|
1981
|
+
hover: {
|
|
1982
|
+
onMouseEnter: () => setIsOpen(true),
|
|
1983
|
+
onMouseLeave: (event) => handleDropdownMouseLeave(event, {
|
|
1984
|
+
ignoreRelatedTargetRef: portalRef,
|
|
1985
|
+
setIsOpen
|
|
1986
|
+
}),
|
|
1987
|
+
onFocus: () => setIsOpen(true),
|
|
1988
|
+
onBlur: handleTriggerBlur
|
|
1989
|
+
}
|
|
1990
|
+
}),
|
|
1991
|
+
[handleTriggerBlur, setIsOpen, portalRef]
|
|
1992
|
+
);
|
|
1993
|
+
return triggerHandlersByEvent;
|
|
1994
|
+
}
|
|
1995
|
+
|
|
1996
|
+
const dropdownPortal = "_dropdownPortal_p3tdk_2";
|
|
1997
|
+
const styles$g = {
|
|
1998
|
+
dropdownPortal: dropdownPortal
|
|
1999
|
+
};
|
|
2000
|
+
|
|
2001
|
+
function DropdownPortal({
|
|
2002
|
+
children,
|
|
2003
|
+
className,
|
|
2004
|
+
align = "start",
|
|
2005
|
+
position = "bottom",
|
|
2006
|
+
isNested,
|
|
2007
|
+
offset = DROPDOWN_PORTAL_DEFAULT_OFFSET,
|
|
2008
|
+
maxWidth,
|
|
2009
|
+
maxHeight
|
|
2010
|
+
}) {
|
|
2011
|
+
const { portalRef, triggerEvent, isOpen } = useDropdownMenuContext();
|
|
2012
|
+
const handlersByTrigger = usePortalHandlersByEventTrigger();
|
|
2013
|
+
const portalPosition = usePortalPosition({
|
|
2014
|
+
align,
|
|
2015
|
+
position,
|
|
2016
|
+
offset,
|
|
2017
|
+
...maxWidth && { portalWidth: maxWidth + offset },
|
|
2018
|
+
...maxHeight && { portalHeight: maxHeight + offset }
|
|
2019
|
+
});
|
|
2020
|
+
if (!isOpen || !portalPosition) {
|
|
1258
2021
|
return null;
|
|
1259
2022
|
}
|
|
1260
2023
|
return createPortal(
|
|
1261
2024
|
/* @__PURE__ */ jsx(
|
|
1262
2025
|
"div",
|
|
1263
2026
|
{
|
|
1264
|
-
style:
|
|
2027
|
+
style: {
|
|
2028
|
+
...portalPosition,
|
|
2029
|
+
...maxWidth && { "--dropdown-portal-max-width": `${maxWidth + offset}px` },
|
|
2030
|
+
...maxHeight && { "--dropdown-portal-max-height": `${maxHeight + offset}px` }
|
|
2031
|
+
},
|
|
1265
2032
|
ref: portalRef,
|
|
1266
|
-
className: classNames(styles$
|
|
2033
|
+
className: classNames(styles$g.dropdownPortal, className),
|
|
2034
|
+
...handlersByTrigger[triggerEvent],
|
|
1267
2035
|
...isNested && { [CLICK_OUTSIDE_IGNORE_DATA_NAME]: "true" },
|
|
1268
2036
|
children
|
|
1269
2037
|
}
|
|
@@ -1276,10 +2044,24 @@ function DropdownRoot({ children }) {
|
|
|
1276
2044
|
return /* @__PURE__ */ jsx(DropdownMenuProvider, { children });
|
|
1277
2045
|
}
|
|
1278
2046
|
|
|
1279
|
-
function DropdownTrigger({ children, asChild, ...props }) {
|
|
1280
|
-
const { triggerRef,
|
|
2047
|
+
function DropdownTrigger({ children, asChild, triggerEvent = "click", ...props }) {
|
|
2048
|
+
const { triggerRef, isOpen, setTriggerEvent } = useDropdownMenuContext();
|
|
2049
|
+
const handlersByTrigger = useTriggerHandlersByEventTrigger();
|
|
2050
|
+
useEffect(() => {
|
|
2051
|
+
setTriggerEvent(triggerEvent);
|
|
2052
|
+
}, [setTriggerEvent, triggerEvent]);
|
|
1281
2053
|
const Trigger = asChild ? Slot : "button";
|
|
1282
|
-
return /* @__PURE__ */ jsx(
|
|
2054
|
+
return /* @__PURE__ */ jsx(
|
|
2055
|
+
Trigger,
|
|
2056
|
+
{
|
|
2057
|
+
ref: triggerRef,
|
|
2058
|
+
"aria-expanded": isOpen,
|
|
2059
|
+
"aria-haspopup": "menu",
|
|
2060
|
+
...handlersByTrigger[triggerEvent],
|
|
2061
|
+
...props,
|
|
2062
|
+
children
|
|
2063
|
+
}
|
|
2064
|
+
);
|
|
1283
2065
|
}
|
|
1284
2066
|
|
|
1285
2067
|
function DropdownMenu() {
|
|
@@ -1301,7 +2083,7 @@ const BOUNDARY_PAGES = 2;
|
|
|
1301
2083
|
const paginationItem = "_paginationItem_1ll6p_2";
|
|
1302
2084
|
const md$5 = "_md_1ll6p_46";
|
|
1303
2085
|
const sm$2 = "_sm_1ll6p_60";
|
|
1304
|
-
const styles$
|
|
2086
|
+
const styles$f = {
|
|
1305
2087
|
paginationItem: paginationItem,
|
|
1306
2088
|
md: md$5,
|
|
1307
2089
|
sm: sm$2
|
|
@@ -1313,7 +2095,7 @@ function PaginationItem({ className, children, size = "md", isCurrent, ...props
|
|
|
1313
2095
|
{
|
|
1314
2096
|
type: "button",
|
|
1315
2097
|
...isCurrent && { "aria-current": "page" },
|
|
1316
|
-
className: classNames(styles$
|
|
2098
|
+
className: classNames(styles$f.paginationItem, styles$f[size], className),
|
|
1317
2099
|
...props,
|
|
1318
2100
|
children
|
|
1319
2101
|
}
|
|
@@ -1350,7 +2132,7 @@ function getVisiblePages(totalPages, maxVisiblePagesWithEllipsis, currentPage) {
|
|
|
1350
2132
|
const paginationRoot = "_paginationRoot_c5fwx_2";
|
|
1351
2133
|
const paginationList = "_paginationList_c5fwx_7";
|
|
1352
2134
|
const arrowLeft = "_arrowLeft_c5fwx_13";
|
|
1353
|
-
const styles$
|
|
2135
|
+
const styles$e = {
|
|
1354
2136
|
paginationRoot: paginationRoot,
|
|
1355
2137
|
paginationList: paginationList,
|
|
1356
2138
|
arrowLeft: arrowLeft
|
|
@@ -1377,9 +2159,9 @@ function PaginationRoot({
|
|
|
1377
2159
|
{
|
|
1378
2160
|
"aria-label": "pagination navigation",
|
|
1379
2161
|
role: "navigation",
|
|
1380
|
-
className: classNames(styles$
|
|
2162
|
+
className: classNames(styles$e.paginationRoot, className),
|
|
1381
2163
|
...props,
|
|
1382
|
-
children: /* @__PURE__ */ jsxs("ul", { className: styles$
|
|
2164
|
+
children: /* @__PURE__ */ jsxs("ul", { className: styles$e.paginationList, children: [
|
|
1383
2165
|
showArrows && /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
1384
2166
|
PaginationItem$1,
|
|
1385
2167
|
{
|
|
@@ -1387,7 +2169,7 @@ function PaginationRoot({
|
|
|
1387
2169
|
onClick: () => onPageChange(currentPage - 1),
|
|
1388
2170
|
disabled: isFirstPage,
|
|
1389
2171
|
size,
|
|
1390
|
-
children: /* @__PURE__ */ jsx(IconChevron$1, { className: styles$
|
|
2172
|
+
children: /* @__PURE__ */ jsx(IconChevron$1, { className: styles$e.arrowLeft })
|
|
1391
2173
|
}
|
|
1392
2174
|
) }),
|
|
1393
2175
|
visiblePages.map((page, index) => /* @__PURE__ */ jsx("li", { children: page === ELLIPSIS_SYMBOL ? /* @__PURE__ */ jsx(PaginationItem$1, { "aria-label": "More pages", disabled: true, size, children: /* @__PURE__ */ jsx(Ellipsis, {}) }) : /* @__PURE__ */ jsx(
|
|
@@ -1427,7 +2209,7 @@ const fill = "_fill_33gbh_23";
|
|
|
1427
2209
|
const trail = "_trail_33gbh_28";
|
|
1428
2210
|
const sm$1 = "_sm_33gbh_32";
|
|
1429
2211
|
const md$4 = "_md_33gbh_36";
|
|
1430
|
-
const styles$
|
|
2212
|
+
const styles$d = {
|
|
1431
2213
|
root: root,
|
|
1432
2214
|
segment: segment,
|
|
1433
2215
|
flexGrow: flexGrow,
|
|
@@ -1448,7 +2230,7 @@ function ProgressBarLinear({
|
|
|
1448
2230
|
return /* @__PURE__ */ jsxs(
|
|
1449
2231
|
"div",
|
|
1450
2232
|
{
|
|
1451
|
-
className: classNames(styles$
|
|
2233
|
+
className: classNames(styles$d.root, styles$d[size], className),
|
|
1452
2234
|
role: "progressbar",
|
|
1453
2235
|
"aria-valuenow": clampedPercent,
|
|
1454
2236
|
"aria-valuemin": 0,
|
|
@@ -1460,14 +2242,14 @@ function ProgressBarLinear({
|
|
|
1460
2242
|
(Boolean(clampedPercent) || showFillOnZero) && /* @__PURE__ */ jsx(
|
|
1461
2243
|
"div",
|
|
1462
2244
|
{
|
|
1463
|
-
className: classNames(styles$
|
|
2245
|
+
className: classNames(styles$d.segment, styles$d.fill),
|
|
1464
2246
|
style: {
|
|
1465
2247
|
"--clamped-percent": `${clampedPercent}%`
|
|
1466
2248
|
},
|
|
1467
2249
|
"aria-hidden": "true"
|
|
1468
2250
|
}
|
|
1469
2251
|
),
|
|
1470
|
-
clampedPercent < 100 && /* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
2252
|
+
clampedPercent < 100 && /* @__PURE__ */ jsx("div", { className: classNames(styles$d.segment, styles$d.flexGrow, styles$d.trail), "aria-hidden": "true" })
|
|
1471
2253
|
]
|
|
1472
2254
|
}
|
|
1473
2255
|
);
|
|
@@ -1487,7 +2269,7 @@ function ProgressBarSteps({
|
|
|
1487
2269
|
return /* @__PURE__ */ jsx(
|
|
1488
2270
|
"div",
|
|
1489
2271
|
{
|
|
1490
|
-
className: classNames(styles$
|
|
2272
|
+
className: classNames(styles$d.segment, styles$d.flexGrow, isFilled ? styles$d.fill : styles$d.trail),
|
|
1491
2273
|
"aria-hidden": "true"
|
|
1492
2274
|
},
|
|
1493
2275
|
index
|
|
@@ -1496,7 +2278,7 @@ function ProgressBarSteps({
|
|
|
1496
2278
|
return /* @__PURE__ */ jsx(
|
|
1497
2279
|
"div",
|
|
1498
2280
|
{
|
|
1499
|
-
className: classNames(styles$
|
|
2281
|
+
className: classNames(styles$d.root, styles$d[size], className),
|
|
1500
2282
|
role: "progressbar",
|
|
1501
2283
|
"aria-valuenow": clampedCurrent,
|
|
1502
2284
|
"aria-valuemin": 0,
|
|
@@ -1516,14 +2298,14 @@ ProgressBar.Steps = ProgressBarSteps;
|
|
|
1516
2298
|
|
|
1517
2299
|
const radioWrapper = "_radioWrapper_13xie_2";
|
|
1518
2300
|
const radio = "_radio_13xie_2";
|
|
1519
|
-
const styles$
|
|
2301
|
+
const styles$c = {
|
|
1520
2302
|
radioWrapper: radioWrapper,
|
|
1521
2303
|
radio: radio
|
|
1522
2304
|
};
|
|
1523
2305
|
|
|
1524
2306
|
function RadioButton({ className, label, ...props }) {
|
|
1525
|
-
return /* @__PURE__ */ jsxs("label", { "data-disabled": `${Boolean(props.disabled)}`, className: classNames(styles$
|
|
1526
|
-
/* @__PURE__ */ jsx("input", { type: "radio", className: styles$
|
|
2307
|
+
return /* @__PURE__ */ jsxs("label", { "data-disabled": `${Boolean(props.disabled)}`, className: classNames(styles$c.radioWrapper, className), children: [
|
|
2308
|
+
/* @__PURE__ */ jsx("input", { type: "radio", className: styles$c.radio, ...props }),
|
|
1527
2309
|
label
|
|
1528
2310
|
] });
|
|
1529
2311
|
}
|
|
@@ -1534,7 +2316,7 @@ const textFieldAreaWrapper = "_textFieldAreaWrapper_90dha_2";
|
|
|
1534
2316
|
const textFieldAreaLabel = "_textFieldAreaLabel_90dha_15";
|
|
1535
2317
|
const textFieldAreaLabelSuffix = "_textFieldAreaLabelSuffix_90dha_24";
|
|
1536
2318
|
const textFieldArea = "_textFieldArea_90dha_2";
|
|
1537
|
-
const styles$
|
|
2319
|
+
const styles$b = {
|
|
1538
2320
|
textFieldAreaWrapper: textFieldAreaWrapper,
|
|
1539
2321
|
textFieldAreaLabel: textFieldAreaLabel,
|
|
1540
2322
|
textFieldAreaLabelSuffix: textFieldAreaLabelSuffix,
|
|
@@ -1555,14 +2337,14 @@ function TextFieldArea({
|
|
|
1555
2337
|
"data-invalid": isInvalid,
|
|
1556
2338
|
"aria-invalid": isInvalid,
|
|
1557
2339
|
"data-element": "field",
|
|
1558
|
-
className: classNames(styles$
|
|
2340
|
+
className: classNames(styles$b.textFieldArea, className),
|
|
1559
2341
|
placeholder,
|
|
1560
2342
|
...props
|
|
1561
2343
|
}
|
|
1562
2344
|
);
|
|
1563
|
-
return floatingLabel ? /* @__PURE__ */ jsxs("div", { className: styles$
|
|
1564
|
-
/* @__PURE__ */ jsx("label", { htmlFor: props.id, className: styles$
|
|
1565
|
-
floatingLabelSuffix && /* @__PURE__ */ jsx("span", { className: styles$
|
|
2345
|
+
return floatingLabel ? /* @__PURE__ */ jsxs("div", { className: styles$b.textFieldAreaWrapper, children: [
|
|
2346
|
+
/* @__PURE__ */ jsx("label", { htmlFor: props.id, className: styles$b.textFieldAreaLabel, "data-element": "label", children: floatingLabel }),
|
|
2347
|
+
floatingLabelSuffix && /* @__PURE__ */ jsx("span", { className: styles$b.textFieldAreaLabelSuffix, "data-element": "label-suffix", children: floatingLabelSuffix }),
|
|
1566
2348
|
textFieldArea
|
|
1567
2349
|
] }) : textFieldArea;
|
|
1568
2350
|
}
|
|
@@ -1570,7 +2352,7 @@ function TextFieldArea({
|
|
|
1570
2352
|
const textFieldInputWrapper = "_textFieldInputWrapper_4dexk_2";
|
|
1571
2353
|
const textFieldInputLabel = "_textFieldInputLabel_4dexk_10";
|
|
1572
2354
|
const textFieldInput = "_textFieldInput_4dexk_2";
|
|
1573
|
-
const styles$
|
|
2355
|
+
const styles$a = {
|
|
1574
2356
|
textFieldInputWrapper: textFieldInputWrapper,
|
|
1575
2357
|
textFieldInputLabel: textFieldInputLabel,
|
|
1576
2358
|
textFieldInput: textFieldInput
|
|
@@ -1589,37 +2371,37 @@ function TextFieldInput({
|
|
|
1589
2371
|
"data-invalid": isInvalid,
|
|
1590
2372
|
"aria-invalid": isInvalid,
|
|
1591
2373
|
"data-element": "field",
|
|
1592
|
-
className: classNames(styles$
|
|
2374
|
+
className: classNames(styles$a.textFieldInput, className),
|
|
1593
2375
|
placeholder,
|
|
1594
2376
|
...props
|
|
1595
2377
|
}
|
|
1596
2378
|
);
|
|
1597
|
-
return floatingLabel ? /* @__PURE__ */ jsxs("div", { className: styles$
|
|
1598
|
-
/* @__PURE__ */ jsx("label", { htmlFor: props.id, className: styles$
|
|
2379
|
+
return floatingLabel ? /* @__PURE__ */ jsxs("div", { className: styles$a.textFieldInputWrapper, children: [
|
|
2380
|
+
/* @__PURE__ */ jsx("label", { htmlFor: props.id, className: styles$a.textFieldInputLabel, "data-element": "label", children: floatingLabel }),
|
|
1599
2381
|
textFieldInput
|
|
1600
2382
|
] }) : textFieldInput;
|
|
1601
2383
|
}
|
|
1602
2384
|
|
|
1603
2385
|
const textFieldLabel = "_textFieldLabel_1l2ya_1";
|
|
1604
|
-
const styles$
|
|
2386
|
+
const styles$9 = {
|
|
1605
2387
|
textFieldLabel: textFieldLabel
|
|
1606
2388
|
};
|
|
1607
2389
|
|
|
1608
2390
|
function TextFieldLabel({ className, children, isRequired, ...props }) {
|
|
1609
|
-
return /* @__PURE__ */ jsx("label", { className: classNames(styles$
|
|
2391
|
+
return /* @__PURE__ */ jsx("label", { className: classNames(styles$9.textFieldLabel, className), "data-required": isRequired, ...props, children });
|
|
1610
2392
|
}
|
|
1611
2393
|
|
|
1612
2394
|
const textFieldRoot = "_textFieldRoot_1geya_2";
|
|
1613
2395
|
const lg$2 = "_lg_1geya_38";
|
|
1614
2396
|
const md$3 = "_md_1geya_68";
|
|
1615
|
-
const styles$
|
|
2397
|
+
const styles$8 = {
|
|
1616
2398
|
textFieldRoot: textFieldRoot,
|
|
1617
2399
|
lg: lg$2,
|
|
1618
2400
|
md: md$3
|
|
1619
2401
|
};
|
|
1620
2402
|
|
|
1621
2403
|
function TextFieldRoot({ className, size = "lg", ...props }) {
|
|
1622
|
-
return /* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
2404
|
+
return /* @__PURE__ */ jsx("div", { className: classNames(styles$8.textFieldRoot, styles$8[size], className), ...props });
|
|
1623
2405
|
}
|
|
1624
2406
|
|
|
1625
2407
|
function TextField() {
|
|
@@ -1634,7 +2416,7 @@ const custom = "_custom_gh87y_15";
|
|
|
1634
2416
|
const icon$1 = "_icon_gh87y_25";
|
|
1635
2417
|
const inputCustomWrapper = "_inputCustomWrapper_gh87y_34";
|
|
1636
2418
|
const customButton = "_customButton_gh87y_49";
|
|
1637
|
-
const styles$
|
|
2419
|
+
const styles$7 = {
|
|
1638
2420
|
search: search,
|
|
1639
2421
|
"default": "_default_gh87y_10",
|
|
1640
2422
|
custom: custom,
|
|
@@ -1659,7 +2441,7 @@ function Search(props) {
|
|
|
1659
2441
|
value && /* @__PURE__ */ jsx(
|
|
1660
2442
|
IconXMark.Small,
|
|
1661
2443
|
{
|
|
1662
|
-
className: styles$
|
|
2444
|
+
className: styles$7.icon,
|
|
1663
2445
|
"aria-label": "clear search",
|
|
1664
2446
|
role: "button",
|
|
1665
2447
|
onClick: () => onChange(""),
|
|
@@ -1667,13 +2449,13 @@ function Search(props) {
|
|
|
1667
2449
|
}
|
|
1668
2450
|
)
|
|
1669
2451
|
] });
|
|
1670
|
-
return /* @__PURE__ */ jsxs(TextField.Root, { size: "md", className: classNames(styles$
|
|
2452
|
+
return /* @__PURE__ */ jsxs(TextField.Root, { size: "md", className: classNames(styles$7.search, styles$7[mode], className), children: [
|
|
1671
2453
|
mode === "default" && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
1672
|
-
/* @__PURE__ */ jsx(IconSearch, { className: styles$
|
|
2454
|
+
/* @__PURE__ */ jsx(IconSearch, { className: styles$7.icon, "data-element": "icon" }),
|
|
1673
2455
|
inputField
|
|
1674
2456
|
] }),
|
|
1675
2457
|
mode === "custom" && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
1676
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
2458
|
+
/* @__PURE__ */ jsx("div", { className: styles$7.inputCustomWrapper, children: inputField }),
|
|
1677
2459
|
/* @__PURE__ */ jsx(
|
|
1678
2460
|
"button",
|
|
1679
2461
|
{
|
|
@@ -1681,11 +2463,11 @@ function Search(props) {
|
|
|
1681
2463
|
type: "button",
|
|
1682
2464
|
onClick: props.onSearch,
|
|
1683
2465
|
"data-element": "custom-button",
|
|
1684
|
-
className: styles$
|
|
2466
|
+
className: styles$7.customButton,
|
|
1685
2467
|
style: {
|
|
1686
2468
|
"--custom-button-width": `${props.buttonWidth ?? DEFAULT_CUSTOM_SEARCH_BUTTON_WIDTH}px`
|
|
1687
2469
|
},
|
|
1688
|
-
children: /* @__PURE__ */ jsx(IconSearch, { className: classNames(styles$
|
|
2470
|
+
children: /* @__PURE__ */ jsx(IconSearch, { className: classNames(styles$7.icon), "data-element": "icon" })
|
|
1689
2471
|
}
|
|
1690
2472
|
)
|
|
1691
2473
|
] })
|
|
@@ -1711,7 +2493,7 @@ function useSegmentControlContext() {
|
|
|
1711
2493
|
const segmentControlItem = "_segmentControlItem_178px_2";
|
|
1712
2494
|
const lg$1 = "_lg_178px_23";
|
|
1713
2495
|
const md$2 = "_md_178px_28";
|
|
1714
|
-
const styles$
|
|
2496
|
+
const styles$6 = {
|
|
1715
2497
|
segmentControlItem: segmentControlItem,
|
|
1716
2498
|
lg: lg$1,
|
|
1717
2499
|
md: md$2
|
|
@@ -1727,7 +2509,7 @@ function SegmentControlItem({ className, children, value, ...props }) {
|
|
|
1727
2509
|
"aria-checked": value === activeValue,
|
|
1728
2510
|
"data-state": value === activeValue ? "on" : "off",
|
|
1729
2511
|
"data-value": value,
|
|
1730
|
-
className: classNames(styles$
|
|
2512
|
+
className: classNames(styles$6.segmentControlItem, styles$6[size], className),
|
|
1731
2513
|
...props,
|
|
1732
2514
|
children
|
|
1733
2515
|
}
|
|
@@ -1764,7 +2546,7 @@ const showAfterDelay = "_showAfterDelay_pulca_1";
|
|
|
1764
2546
|
const lg = "_lg_pulca_19";
|
|
1765
2547
|
const md$1 = "_md_pulca_23";
|
|
1766
2548
|
const indicator$1 = "_indicator_pulca_28";
|
|
1767
|
-
const styles$
|
|
2549
|
+
const styles$5 = {
|
|
1768
2550
|
segmentControlRoot: segmentControlRoot,
|
|
1769
2551
|
showAfterDelay: showAfterDelay,
|
|
1770
2552
|
lg: lg,
|
|
@@ -1779,11 +2561,11 @@ function SegmentControlRoot({ className, children, value, size = "md", ...props
|
|
|
1779
2561
|
{
|
|
1780
2562
|
ref: rootRef,
|
|
1781
2563
|
role: "radiogroup",
|
|
1782
|
-
className: classNames(styles$
|
|
2564
|
+
className: classNames(styles$5.segmentControlRoot, styles$5[size], className),
|
|
1783
2565
|
...props,
|
|
1784
2566
|
children: [
|
|
1785
2567
|
children,
|
|
1786
|
-
/* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
2568
|
+
/* @__PURE__ */ jsx("div", { className: classNames(styles$5.indicator, styles$5[size]), style: indicatorStyle })
|
|
1787
2569
|
]
|
|
1788
2570
|
}
|
|
1789
2571
|
) });
|
|
@@ -1796,7 +2578,7 @@ SegmentControl.Item = SegmentControlItem;
|
|
|
1796
2578
|
|
|
1797
2579
|
const switchWrapper = "_switchWrapper_1yukb_2";
|
|
1798
2580
|
const icon = "_icon_1yukb_25";
|
|
1799
|
-
const styles$
|
|
2581
|
+
const styles$4 = {
|
|
1800
2582
|
switchWrapper: switchWrapper,
|
|
1801
2583
|
icon: icon,
|
|
1802
2584
|
"switch": "_switch_1yukb_2"
|
|
@@ -1809,10 +2591,10 @@ function Switch({ className, label, indeterminate, ...props }) {
|
|
|
1809
2591
|
{
|
|
1810
2592
|
"data-disabled": `${Boolean(props.disabled)}`,
|
|
1811
2593
|
"data-state": dataState,
|
|
1812
|
-
className: classNames(styles$
|
|
2594
|
+
className: classNames(styles$4.switchWrapper, className),
|
|
1813
2595
|
children: [
|
|
1814
|
-
dataState === "indeterminate" && /* @__PURE__ */ jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$
|
|
1815
|
-
/* @__PURE__ */ jsx("input", { "data-state": dataState, type: "checkbox", role: "switch", className: styles$
|
|
2596
|
+
dataState === "indeterminate" && /* @__PURE__ */ jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$4.icon }),
|
|
2597
|
+
/* @__PURE__ */ jsx("input", { "data-state": dataState, type: "checkbox", role: "switch", className: styles$4.switch, ...props }),
|
|
1816
2598
|
label
|
|
1817
2599
|
]
|
|
1818
2600
|
}
|
|
@@ -1834,7 +2616,7 @@ function useTabsContext() {
|
|
|
1834
2616
|
}
|
|
1835
2617
|
|
|
1836
2618
|
const tabsItem = "_tabsItem_1o4cb_2";
|
|
1837
|
-
const styles$
|
|
2619
|
+
const styles$3 = {
|
|
1838
2620
|
tabsItem: tabsItem
|
|
1839
2621
|
};
|
|
1840
2622
|
|
|
@@ -1848,7 +2630,7 @@ function TabsItem({ className, children, value, ...props }) {
|
|
|
1848
2630
|
role: "tab",
|
|
1849
2631
|
"aria-selected": Boolean(isActive),
|
|
1850
2632
|
"data-value": value,
|
|
1851
|
-
className: classNames(styles$
|
|
2633
|
+
className: classNames(styles$3.tabsItem, className),
|
|
1852
2634
|
...props,
|
|
1853
2635
|
children
|
|
1854
2636
|
}
|
|
@@ -1882,16 +2664,16 @@ function useActiveTab(value) {
|
|
|
1882
2664
|
|
|
1883
2665
|
const tabsRoot = "_tabsRoot_1os90_8";
|
|
1884
2666
|
const indicator = "_indicator_1os90_29";
|
|
1885
|
-
const styles$
|
|
2667
|
+
const styles$2 = {
|
|
1886
2668
|
tabsRoot: tabsRoot,
|
|
1887
2669
|
indicator: indicator
|
|
1888
2670
|
};
|
|
1889
2671
|
|
|
1890
2672
|
function TabsRoot({ className, children, value, ...props }) {
|
|
1891
2673
|
const { indicatorStyle, rootRef } = useActiveTab(value);
|
|
1892
|
-
return /* @__PURE__ */ jsx(TabsProvider, { value: { value }, children: /* @__PURE__ */ jsxs("div", { ref: rootRef, role: "tablist", className: classNames(styles$
|
|
2674
|
+
return /* @__PURE__ */ jsx(TabsProvider, { value: { value }, children: /* @__PURE__ */ jsxs("div", { ref: rootRef, role: "tablist", className: classNames(styles$2.tabsRoot, className), ...props, children: [
|
|
1893
2675
|
children,
|
|
1894
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
2676
|
+
/* @__PURE__ */ jsx("div", { className: styles$2.indicator, style: indicatorStyle })
|
|
1895
2677
|
] }) });
|
|
1896
2678
|
}
|
|
1897
2679
|
|
|
@@ -1905,7 +2687,7 @@ const primary = "_primary_4y4oa_11";
|
|
|
1905
2687
|
const secondary = "_secondary_4y4oa_19";
|
|
1906
2688
|
const md = "_md_4y4oa_28";
|
|
1907
2689
|
const sm = "_sm_4y4oa_34";
|
|
1908
|
-
const styles = {
|
|
2690
|
+
const styles$1 = {
|
|
1909
2691
|
tag: tag,
|
|
1910
2692
|
primary: primary,
|
|
1911
2693
|
secondary: secondary,
|
|
@@ -1917,7 +2699,7 @@ function Tag({ children, className, size = "md", mode = "primary", disabled, ...
|
|
|
1917
2699
|
return /* @__PURE__ */ jsx(
|
|
1918
2700
|
"div",
|
|
1919
2701
|
{
|
|
1920
|
-
className: classNames(styles.tag, styles[size], styles[mode], className),
|
|
2702
|
+
className: classNames(styles$1.tag, styles$1[size], styles$1[mode], className),
|
|
1921
2703
|
"data-disabled": disabled,
|
|
1922
2704
|
"aria-disabled": disabled,
|
|
1923
2705
|
...props,
|
|
@@ -1926,4 +2708,85 @@ function Tag({ children, className, size = "md", mode = "primary", disabled, ...
|
|
|
1926
2708
|
);
|
|
1927
2709
|
}
|
|
1928
2710
|
|
|
1929
|
-
|
|
2711
|
+
const tooltipContent = "_tooltipContent_1267q_2";
|
|
2712
|
+
const tooltipTitle = "_tooltipTitle_1267q_96";
|
|
2713
|
+
const styles = {
|
|
2714
|
+
tooltipContent: tooltipContent,
|
|
2715
|
+
tooltipTitle: tooltipTitle
|
|
2716
|
+
};
|
|
2717
|
+
|
|
2718
|
+
function TooltipContent({
|
|
2719
|
+
className,
|
|
2720
|
+
role,
|
|
2721
|
+
title,
|
|
2722
|
+
description,
|
|
2723
|
+
arrowAlign,
|
|
2724
|
+
arrowPosition,
|
|
2725
|
+
arrowOffset,
|
|
2726
|
+
...props
|
|
2727
|
+
}) {
|
|
2728
|
+
return /* @__PURE__ */ jsxs(
|
|
2729
|
+
"div",
|
|
2730
|
+
{
|
|
2731
|
+
className: classNames(styles.tooltipContent, className),
|
|
2732
|
+
role: role ?? "tooltip",
|
|
2733
|
+
"data-align": arrowAlign,
|
|
2734
|
+
"data-position": arrowPosition,
|
|
2735
|
+
...arrowOffset && {
|
|
2736
|
+
style: {
|
|
2737
|
+
"--tooltip-content-arrow-offset-inline": `${arrowOffset.inline}px`,
|
|
2738
|
+
"--tooltip-content-arrow-offset-block": `${arrowOffset.block}px`
|
|
2739
|
+
}
|
|
2740
|
+
},
|
|
2741
|
+
...props,
|
|
2742
|
+
children: [
|
|
2743
|
+
title && /* @__PURE__ */ jsx("div", { className: styles.tooltipTitle, children: title }),
|
|
2744
|
+
description && /* @__PURE__ */ jsx("div", { children: description })
|
|
2745
|
+
]
|
|
2746
|
+
}
|
|
2747
|
+
);
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2750
|
+
const TOOLTIP_OFFSET = 8;
|
|
2751
|
+
|
|
2752
|
+
function TooltipRoot({
|
|
2753
|
+
children,
|
|
2754
|
+
align = "center",
|
|
2755
|
+
position = "top",
|
|
2756
|
+
triggerEvent = "hover",
|
|
2757
|
+
maxWidth,
|
|
2758
|
+
maxHeight,
|
|
2759
|
+
withoutArrow = false,
|
|
2760
|
+
...tooltipContentProps
|
|
2761
|
+
}) {
|
|
2762
|
+
return /* @__PURE__ */ jsx(DropdownMenu.Root, { children: ({ portalPlacement }) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
2763
|
+
/* @__PURE__ */ jsx(DropdownMenu.Trigger, { asChild: true, triggerEvent, children }),
|
|
2764
|
+
/* @__PURE__ */ jsx(
|
|
2765
|
+
DropdownMenu.Portal,
|
|
2766
|
+
{
|
|
2767
|
+
align,
|
|
2768
|
+
position,
|
|
2769
|
+
offset: TOOLTIP_OFFSET,
|
|
2770
|
+
maxWidth,
|
|
2771
|
+
maxHeight,
|
|
2772
|
+
children: /* @__PURE__ */ jsx(
|
|
2773
|
+
TooltipContent,
|
|
2774
|
+
{
|
|
2775
|
+
...tooltipContentProps,
|
|
2776
|
+
...!withoutArrow && {
|
|
2777
|
+
arrowAlign: portalPlacement?.align ?? "center",
|
|
2778
|
+
arrowPosition: portalPlacement?.position ?? "top"
|
|
2779
|
+
}
|
|
2780
|
+
}
|
|
2781
|
+
)
|
|
2782
|
+
}
|
|
2783
|
+
)
|
|
2784
|
+
] }) });
|
|
2785
|
+
}
|
|
2786
|
+
|
|
2787
|
+
function Tooltip(props) {
|
|
2788
|
+
return /* @__PURE__ */ jsx(TooltipRoot, { ...props });
|
|
2789
|
+
}
|
|
2790
|
+
Tooltip.Content = TooltipContent;
|
|
2791
|
+
|
|
2792
|
+
export { Badge, BadgeTabs, Breadcrumbs, Button, Checkbox, Chip, Counter, DatePicker, DropdownMenu, I18N_MONTH_LABELS, I18N_WEEKDAY_LABELS, IconArrow, IconArrowCircle, IconArrowCircleUp, IconArrowDiagonal, IconArrowUTurn, IconBell, IconBox, IconCalendar, IconCharacteristic, IconCheck, IconCheckCircle, IconChevron, IconChevronDouble, IconClock, IconCollapse, IconCopy, IconDots, IconDownload, IconEye, IconFace, IconFile, IconFilters, IconGear, IconHanger, IconHome, IconInfo, IconLogOut, IconLogo, IconMail, IconMinus, IconOneCircle, IconPerson, IconPhone, IconPlus, IconPrize, IconProject, IconQRCode, IconRequest, IconResizeCorner, IconScan, IconSearch, IconShopping, IconSort, IconStar, IconSticker, IconStop, IconSwitch, IconXMark, IconXMarkCircle, LOCALE_FIRST_DAY_OF_WEEK, Pagination, ProgressBar, RadioButton, Search, SegmentControl, Switch, Tabs, Tag, TextField, Tooltip, useDatePickerControls, useDatePickerMultiSelect, useDatePickerSelect };
|