@grandbazar/ui-baza 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/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$u = {
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$u.badge, styles$u[size], styles$u[color], styles$u[mode], className), ...props, children });
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$t = {
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$t.badgeTabsItem, styles$t[mode], className),
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$s = {
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$s.badgeTabsRoot, className), ...props, children });
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,31 @@ 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
+
229
+ function IconBox(props) {
230
+ return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
231
+ "path",
232
+ {
233
+ fillRule: "evenodd",
234
+ clipRule: "evenodd",
235
+ 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",
236
+ fill: "currentColor"
237
+ }
238
+ ) });
239
+ }
240
+
193
241
  function IconCalendar(props) {
194
242
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
195
243
  "path",
@@ -270,6 +318,18 @@ function IconChevronDouble(props) {
270
318
  ] });
271
319
  }
272
320
 
321
+ function IconClock(props) {
322
+ return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "none", ...props, children: /* @__PURE__ */ jsx(
323
+ "path",
324
+ {
325
+ fillRule: "evenodd",
326
+ clipRule: "evenodd",
327
+ d: "M2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10ZM9.5 5.60547C8.94771 5.60547 8.5 6.05318 8.5 6.60547L8.5 10.6055C8.5 10.9842 8.71395 11.3306 9.05273 11.5L11.0527 12.5C11.5467 12.747 12.1475 12.5467 12.3945 12.0527C12.6415 11.5588 12.4412 10.9579 11.9473 10.7109L10.5 9.9873L10.5 6.60547C10.5 6.05318 10.0523 5.60547 9.5 5.60547Z",
328
+ fill: "currentColor"
329
+ }
330
+ ) });
331
+ }
332
+
273
333
  function IconCollapse(props) {
274
334
  return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
275
335
  /* @__PURE__ */ jsx(
@@ -291,6 +351,65 @@ function IconCollapse(props) {
291
351
  ] });
292
352
  }
293
353
 
354
+ function IconCopy(props) {
355
+ return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
356
+ "path",
357
+ {
358
+ 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",
359
+ stroke: "currentColor",
360
+ strokeWidth: "2",
361
+ strokeLinecap: "round",
362
+ strokeLinejoin: "round"
363
+ }
364
+ ) });
365
+ }
366
+
367
+ function IconDots(props) {
368
+ return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
369
+ /* @__PURE__ */ jsx(
370
+ "path",
371
+ {
372
+ 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",
373
+ fill: "currentColor"
374
+ }
375
+ ),
376
+ /* @__PURE__ */ jsx(
377
+ "path",
378
+ {
379
+ 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",
380
+ fill: "currentColor"
381
+ }
382
+ ),
383
+ /* @__PURE__ */ jsx(
384
+ "path",
385
+ {
386
+ 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",
387
+ fill: "currentColor"
388
+ }
389
+ ),
390
+ /* @__PURE__ */ jsx(
391
+ "path",
392
+ {
393
+ 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",
394
+ fill: "currentColor"
395
+ }
396
+ )
397
+ ] });
398
+ }
399
+
400
+ function IconDownload(props) {
401
+ return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
402
+ "path",
403
+ {
404
+ d: "M7 10L12 15M12 15L17 10M12 15V3M5 21H19",
405
+ stroke: "currentColor",
406
+ strokeWidth: "2",
407
+ strokeLinecap: "round",
408
+ strokeLinejoin: "round"
409
+ }
410
+ ) });
411
+ }
412
+
294
413
  function IconEye(props) {
295
414
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
296
415
  "path",
@@ -311,6 +430,53 @@ function IconEyeOff(props) {
311
430
  }
312
431
  IconEye.Off = IconEyeOff;
313
432
 
433
+ function IconFace(props) {
434
+ return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
435
+ /* @__PURE__ */ jsx(
436
+ "path",
437
+ {
438
+ 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",
439
+ fill: "currentColor"
440
+ }
441
+ ),
442
+ /* @__PURE__ */ jsx(
443
+ "path",
444
+ {
445
+ 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",
446
+ fill: "currentColor"
447
+ }
448
+ )
449
+ ] });
450
+ }
451
+ IconFace.Sad = function IconFaceSad(props) {
452
+ return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
453
+ /* @__PURE__ */ jsx(
454
+ "path",
455
+ {
456
+ 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",
457
+ fill: "currentColor"
458
+ }
459
+ ),
460
+ /* @__PURE__ */ jsx(
461
+ "path",
462
+ {
463
+ 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",
464
+ fill: "currentColor"
465
+ }
466
+ )
467
+ ] });
468
+ };
469
+
470
+ function IconFile(props) {
471
+ return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
472
+ "path",
473
+ {
474
+ 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",
475
+ fill: "currentColor"
476
+ }
477
+ ) });
478
+ }
479
+
314
480
  function IconFilters(props) {
315
481
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
316
482
  "path",
@@ -385,6 +551,34 @@ function IconGoogle(props) {
385
551
  ] });
386
552
  }
387
553
 
554
+ function IconHanger(props) {
555
+ return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
556
+ "path",
557
+ {
558
+ 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",
559
+ stroke: "currentColor",
560
+ strokeWidth: "3",
561
+ strokeLinecap: "round",
562
+ strokeLinejoin: "round"
563
+ }
564
+ ) });
565
+ }
566
+
567
+ function IconInfo(props) {
568
+ return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
569
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10", fill: "white" }),
570
+ /* @__PURE__ */ jsx(
571
+ "path",
572
+ {
573
+ fillRule: "evenodd",
574
+ clipRule: "evenodd",
575
+ 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",
576
+ fill: "currentColor"
577
+ }
578
+ )
579
+ ] });
580
+ }
581
+
388
582
  function IconLogOut(props) {
389
583
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
390
584
  "path",
@@ -415,6 +609,18 @@ function IconMinus(props) {
415
609
  ) });
416
610
  }
417
611
 
612
+ function IconOneCircle(props) {
613
+ return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "none", ...props, children: /* @__PURE__ */ jsx(
614
+ "path",
615
+ {
616
+ fillRule: "evenodd",
617
+ clipRule: "evenodd",
618
+ 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",
619
+ fill: "currentColor"
620
+ }
621
+ ) });
622
+ }
623
+
418
624
  function IconPerson(props) {
419
625
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
420
626
  "path",
@@ -515,6 +721,29 @@ function IconRequest(props) {
515
721
  ) });
516
722
  }
517
723
 
724
+ function IconResizeCorner(props) {
725
+ return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
726
+ "path",
727
+ {
728
+ 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",
729
+ fill: "currentColor"
730
+ }
731
+ ) });
732
+ }
733
+
734
+ function IconScan(props) {
735
+ return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
736
+ /* @__PURE__ */ jsx("rect", { width: "24", height: "24", fill: "white" }),
737
+ /* @__PURE__ */ jsx(
738
+ "path",
739
+ {
740
+ 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",
741
+ fill: "currentColor"
742
+ }
743
+ )
744
+ ] });
745
+ }
746
+
518
747
  function IconSearch(props) {
519
748
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
520
749
  "path",
@@ -560,6 +789,55 @@ function IconSort(props) {
560
789
  ) });
561
790
  }
562
791
 
792
+ function IconStar(props) {
793
+ return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "none", ...props, children: /* @__PURE__ */ jsx(
794
+ "path",
795
+ {
796
+ 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",
797
+ fill: "currentColor"
798
+ }
799
+ ) });
800
+ }
801
+
802
+ function IconSticker(props) {
803
+ return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 12", fill: "none", ...props, children: /* @__PURE__ */ jsx(
804
+ "path",
805
+ {
806
+ d: "M5.20052 1.40278C3.26404 1.73718 1.73718 3.26404 1.40278 5.20052L3.87587 4.78906C4.34417 4.71101 4.71101 4.34417 4.78906 3.87587L5.20052 1.40278ZM12 9.55556C12 10.9056 10.9056 12 9.55556 12H2.44444C1.09442 12 2.86336e-08 10.9056 0 9.55556V6C0 2.68629 2.68629 0 6 0H9.55556C10.9056 0 12 1.09442 12 2.44444V9.55556Z",
807
+ fill: "currentColor"
808
+ }
809
+ ) });
810
+ }
811
+
812
+ function IconStop(props) {
813
+ return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
814
+ "path",
815
+ {
816
+ 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",
817
+ fill: "currentColor"
818
+ }
819
+ ) });
820
+ }
821
+
822
+ function IconSwitch(props) {
823
+ return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "none", ...props, children: [
824
+ /* @__PURE__ */ jsx(
825
+ "path",
826
+ {
827
+ 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",
828
+ fill: "currentColor"
829
+ }
830
+ ),
831
+ /* @__PURE__ */ jsx(
832
+ "path",
833
+ {
834
+ 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",
835
+ fill: "currentColor"
836
+ }
837
+ )
838
+ ] });
839
+ }
840
+
563
841
  function IconTelegram(props) {
564
842
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
565
843
  "path",
@@ -602,6 +880,21 @@ function IconXMarkSmall(props) {
602
880
  }
603
881
  IconXMark.Small = IconXMarkSmall;
604
882
 
883
+ function IconXMarkCircle(props) {
884
+ return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
885
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10", fill: "white" }),
886
+ /* @__PURE__ */ jsx(
887
+ "path",
888
+ {
889
+ fillRule: "evenodd",
890
+ clipRule: "evenodd",
891
+ 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",
892
+ fill: "currentColor"
893
+ }
894
+ )
895
+ ] });
896
+ }
897
+
605
898
  function IconYandex(props) {
606
899
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
607
900
  "path",
@@ -615,7 +908,7 @@ function IconYandex(props) {
615
908
  const breadcrumbs = "_breadcrumbs_1bfmb_2";
616
909
  const breadcrumbsItem = "_breadcrumbsItem_1bfmb_8";
617
910
  const defaultSeparator = "_defaultSeparator_1bfmb_14";
618
- const styles$r = {
911
+ const styles$s = {
619
912
  breadcrumbs: breadcrumbs,
620
913
  breadcrumbsItem: breadcrumbsItem,
621
914
  defaultSeparator: defaultSeparator
@@ -664,7 +957,7 @@ function Slot({
664
957
  }
665
958
 
666
959
  const breadcrumbItem = "_breadcrumbItem_cua4v_2";
667
- const styles$q = {
960
+ const styles$r = {
668
961
  breadcrumbItem: breadcrumbItem
669
962
  };
670
963
 
@@ -675,7 +968,7 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
675
968
  {
676
969
  "data-active": isActive,
677
970
  "data-disabled": props.disabled,
678
- className: classNames(styles$q.breadcrumbItem, className),
971
+ className: classNames(styles$r.breadcrumbItem, className),
679
972
  ...isActive && { "aria-current": "page" },
680
973
  ...!asChild && { type: "button" },
681
974
  ...props,
@@ -687,13 +980,13 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
687
980
  function Breadcrumbs({
688
981
  className,
689
982
  children,
690
- separator = /* @__PURE__ */ jsx(IconChevron, { className: styles$r.defaultSeparator })
983
+ separator = /* @__PURE__ */ jsx(IconChevron, { className: styles$s.defaultSeparator })
691
984
  }) {
692
985
  const childrenArray = Array.isArray(children) ? children : [children];
693
986
  const lastIndex = childrenArray.length - 1;
694
- return /* @__PURE__ */ jsx("nav", { "aria-label": "breadcrumb", className, children: /* @__PURE__ */ jsx("ol", { className: styles$r.breadcrumbs, children: childrenArray.map((item, index) => /* @__PURE__ */ jsxs(Fragment, { children: [
695
- /* @__PURE__ */ jsx("li", { className: styles$r.breadcrumbsItem, children: item }),
696
- index < lastIndex && /* @__PURE__ */ jsx("li", { className: styles$r.breadcrumbsItem, "aria-hidden": "true", children: separator })
987
+ 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: [
988
+ /* @__PURE__ */ jsx("li", { className: styles$s.breadcrumbsItem, children: item }),
989
+ index < lastIndex && /* @__PURE__ */ jsx("li", { className: styles$s.breadcrumbsItem, "aria-hidden": "true", children: separator })
697
990
  ] }, index)) }) });
698
991
  }
699
992
  Breadcrumbs.Item = BreadcrumbItem;
@@ -708,7 +1001,7 @@ const neutral$2 = "_neutral_cmbkj_78";
708
1001
  const lg$5 = "_lg_cmbkj_145";
709
1002
  const md$8 = "_md_cmbkj_153";
710
1003
  const sm$3 = "_sm_cmbkj_161";
711
- const styles$p = {
1004
+ const styles$q = {
712
1005
  button: button,
713
1006
  accent: accent$2,
714
1007
  primary: primary$1,
@@ -726,7 +1019,7 @@ const accent$1 = "_accent_o8iku_10";
726
1019
  const neutral$1 = "_neutral_o8iku_22";
727
1020
  const lg$4 = "_lg_o8iku_41";
728
1021
  const md$7 = "_md_o8iku_46";
729
- const styles$o = {
1022
+ const styles$p = {
730
1023
  buttonFunction: buttonFunction,
731
1024
  accent: accent$1,
732
1025
  neutral: neutral$1,
@@ -746,7 +1039,7 @@ function ButtonFunction({
746
1039
  return /* @__PURE__ */ jsx(
747
1040
  Component,
748
1041
  {
749
- className: classNames(styles$o.buttonFunction, styles$o[color], styles$o[size], className),
1042
+ className: classNames(styles$p.buttonFunction, styles$p[color], styles$p[size], className),
750
1043
  ...props.disabled && { "data-disabled": true },
751
1044
  ...!asChild && { type: "button" },
752
1045
  ...props,
@@ -768,7 +1061,7 @@ function Button({
768
1061
  return /* @__PURE__ */ jsx(
769
1062
  Component,
770
1063
  {
771
- className: classNames(styles$p.button, styles$p[color], styles$p[size], styles$p[mode], className),
1064
+ className: classNames(styles$q.button, styles$q[color], styles$q[size], styles$q[mode], className),
772
1065
  ...!asChild && { type: "button" },
773
1066
  ...props,
774
1067
  children
@@ -780,7 +1073,7 @@ Button.Function = ButtonFunction;
780
1073
  const checkboxWrapper = "_checkboxWrapper_k1shg_2";
781
1074
  const icon$2 = "_icon_k1shg_23";
782
1075
  const checkbox = "_checkbox_k1shg_2";
783
- const styles$n = {
1076
+ const styles$o = {
784
1077
  checkboxWrapper: checkboxWrapper,
785
1078
  icon: icon$2,
786
1079
  checkbox: checkbox
@@ -793,11 +1086,11 @@ function Checkbox({ className, label, indeterminate, ...props }) {
793
1086
  {
794
1087
  "data-disabled": `${Boolean(props.disabled)}`,
795
1088
  "data-state": dataState,
796
- className: classNames(styles$n.checkboxWrapper, className),
1089
+ className: classNames(styles$o.checkboxWrapper, className),
797
1090
  children: [
798
- dataState === "checked" && /* @__PURE__ */ jsx(IconCheck, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$n.icon }),
799
- dataState === "indeterminate" && /* @__PURE__ */ jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$n.icon }),
800
- /* @__PURE__ */ jsx("input", { "data-state": dataState, type: "checkbox", className: styles$n.checkbox, ...props }),
1091
+ dataState === "checked" && /* @__PURE__ */ jsx(IconCheck, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$o.icon }),
1092
+ dataState === "indeterminate" && /* @__PURE__ */ jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$o.icon }),
1093
+ /* @__PURE__ */ jsx("input", { "data-state": dataState, type: "checkbox", className: styles$o.checkbox, ...props }),
801
1094
  label
802
1095
  ]
803
1096
  }
@@ -805,7 +1098,7 @@ function Checkbox({ className, label, indeterminate, ...props }) {
805
1098
  }
806
1099
 
807
1100
  const chip = "_chip_dj4kw_2";
808
- const styles$m = {
1101
+ const styles$n = {
809
1102
  chip: chip
810
1103
  };
811
1104
 
@@ -813,7 +1106,7 @@ function Chip({ isSelected, children, className, disabled, ...props }) {
813
1106
  return /* @__PURE__ */ jsx(
814
1107
  "div",
815
1108
  {
816
- className: classNames(styles$m.chip, className),
1109
+ className: classNames(styles$n.chip, className),
817
1110
  "data-selected": isSelected,
818
1111
  "data-disabled": disabled,
819
1112
  "aria-disabled": disabled,
@@ -831,7 +1124,7 @@ const accent = "_accent_ww0fb_37";
831
1124
  const neutral = "_neutral_ww0fb_42";
832
1125
  const secondary$1 = "_secondary_ww0fb_47";
833
1126
  const white = "_white_ww0fb_52";
834
- const styles$l = {
1127
+ const styles$m = {
835
1128
  root: root$1,
836
1129
  lg: lg$3,
837
1130
  md: md$6,
@@ -843,7 +1136,7 @@ const styles$l = {
843
1136
  };
844
1137
 
845
1138
  function Counter({ className, size = "lg", color = "red", ...props }) {
846
- return /* @__PURE__ */ jsx("div", { className: classNames(styles$l.root, styles$l[size], styles$l[color], className), ...props });
1139
+ return /* @__PURE__ */ jsx("div", { className: classNames(styles$m.root, styles$m[size], styles$m[color], className), ...props });
847
1140
  }
848
1141
 
849
1142
  const LOCALE_FIRST_DAY_OF_WEEK = {
@@ -853,7 +1146,7 @@ const LOCALE_FIRST_DAY_OF_WEEK = {
853
1146
 
854
1147
  const datePickerCellWrapper = "_datePickerCellWrapper_np1gx_2";
855
1148
  const datePickerCell = "_datePickerCell_np1gx_2";
856
- const styles$k = {
1149
+ const styles$l = {
857
1150
  datePickerCellWrapper: datePickerCellWrapper,
858
1151
  datePickerCell: datePickerCell,
859
1152
  "radius-none": "_radius-none_np1gx_83",
@@ -863,10 +1156,10 @@ const styles$k = {
863
1156
  };
864
1157
 
865
1158
  function DatePickerCell({ children, className, state, isCurrent, radius = "both", ...props }) {
866
- return /* @__PURE__ */ jsx("div", { className: classNames(styles$k.datePickerCellWrapper, styles$k[`radius-${radius}`]), "data-state": state, children: /* @__PURE__ */ jsx(
1159
+ return /* @__PURE__ */ jsx("div", { className: classNames(styles$l.datePickerCellWrapper, styles$l[`radius-${radius}`]), "data-state": state, children: /* @__PURE__ */ jsx(
867
1160
  "button",
868
1161
  {
869
- className: classNames(styles$k.datePickerCell, styles$k[`radius-${radius}`], className),
1162
+ className: classNames(styles$l.datePickerCell, styles$l[`radius-${radius}`], className),
870
1163
  type: "button",
871
1164
  role: "gridcell",
872
1165
  "aria-selected": state === "selected",
@@ -923,7 +1216,7 @@ function getCalendarGrid(month, year, firstDayOfWeek) {
923
1216
  const datePickerField = "_datePickerField_1qk8s_2";
924
1217
  const datePickerFieldCalendar = "_datePickerFieldCalendar_1qk8s_8";
925
1218
  const datePickerFieldWeek = "_datePickerFieldWeek_1qk8s_14";
926
- const styles$j = {
1219
+ const styles$k = {
927
1220
  datePickerField: datePickerField,
928
1221
  datePickerFieldCalendar: datePickerFieldCalendar,
929
1222
  datePickerFieldWeek: datePickerFieldWeek
@@ -938,9 +1231,9 @@ function DatePickerField({
938
1231
  firstDayOfWeek = LOCALE_FIRST_DAY_OF_WEEK.ru
939
1232
  }) {
940
1233
  const weeks = useMemo(() => getCalendarGrid(month, year, firstDayOfWeek), [month, year, firstDayOfWeek]);
941
- return /* @__PURE__ */ jsxs("div", { className: classNames(styles$j.datePickerField, className), role: "grid", children: [
1234
+ return /* @__PURE__ */ jsxs("div", { className: classNames(styles$k.datePickerField, className), role: "grid", children: [
942
1235
  renderWeekdays?.(),
943
- /* @__PURE__ */ jsx("div", { className: styles$j.datePickerFieldCalendar, role: "rowgroup", children: weeks.map((week, weekIndex) => /* @__PURE__ */ jsx("div", { className: styles$j.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)) })
1236
+ /* @__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
1237
  ] });
945
1238
  }
946
1239
 
@@ -981,13 +1274,13 @@ const I18N_MONTH_LABELS = {
981
1274
 
982
1275
  const datePickerWeekdays = "_datePickerWeekdays_p8tsm_2";
983
1276
  const datePickerWeekday = "_datePickerWeekday_p8tsm_2";
984
- const styles$i = {
1277
+ const styles$j = {
985
1278
  datePickerWeekdays: datePickerWeekdays,
986
1279
  datePickerWeekday: datePickerWeekday
987
1280
  };
988
1281
 
989
1282
  function DatePickerWeekDays({ className, locale = "ru" }) {
990
- return /* @__PURE__ */ jsx("div", { className: classNames(styles$i.datePickerWeekdays, className), role: "row", children: I18N_WEEKDAY_LABELS[locale].map((label) => /* @__PURE__ */ jsx("div", { className: styles$i.datePickerWeekday, role: "columnheader", children: label }, label)) });
1283
+ 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
1284
  }
992
1285
 
993
1286
  function DatePicker() {
@@ -1163,22 +1456,76 @@ function useDatePickerSelect() {
1163
1456
  };
1164
1457
  }
1165
1458
 
1459
+ const DROPDOWN_PORTAL_DEFAULT_OFFSET = 8;
1460
+
1461
+ const DROPDOWN_PORTAL_TRANSLATE_BY_ALIGN = {
1462
+ start: "0%",
1463
+ center: "-50%",
1464
+ end: "-100%"
1465
+ };
1466
+ const DROPDOWN_PORTAL_SIDE_CONFIG = {
1467
+ top: {
1468
+ sizeKey: "portalHeight",
1469
+ edgeKey: "topEdge",
1470
+ viewportKey: "top",
1471
+ nextPosition: "bottom",
1472
+ anchorKey: "top",
1473
+ anchorEdgeKey: "top",
1474
+ paddingKey: "paddingBottom",
1475
+ translateAxis: "x",
1476
+ fixedTranslate: "-100%"
1477
+ },
1478
+ right: {
1479
+ sizeKey: "portalWidth",
1480
+ edgeKey: "rightEdge",
1481
+ viewportKey: "right",
1482
+ nextPosition: "left",
1483
+ anchorKey: "left",
1484
+ anchorEdgeKey: "right",
1485
+ paddingKey: "paddingLeft",
1486
+ translateAxis: "y",
1487
+ fixedTranslate: "0%"
1488
+ },
1489
+ bottom: {
1490
+ sizeKey: "portalHeight",
1491
+ edgeKey: "bottomEdge",
1492
+ viewportKey: "bottom",
1493
+ nextPosition: "top",
1494
+ anchorKey: "top",
1495
+ anchorEdgeKey: "bottom",
1496
+ paddingKey: "paddingTop",
1497
+ translateAxis: "x",
1498
+ fixedTranslate: "0%"
1499
+ },
1500
+ left: {
1501
+ sizeKey: "portalWidth",
1502
+ edgeKey: "leftEdge",
1503
+ viewportKey: "left",
1504
+ nextPosition: "right",
1505
+ anchorKey: "left",
1506
+ anchorEdgeKey: "left",
1507
+ paddingKey: "paddingRight",
1508
+ translateAxis: "y",
1509
+ fixedTranslate: "-100%"
1510
+ }
1511
+ };
1512
+
1166
1513
  const dropdownContent = "_dropdownContent_12tkb_2";
1167
- const styles$h = {
1514
+ const styles$i = {
1168
1515
  dropdownContent: dropdownContent
1169
1516
  };
1170
1517
 
1171
1518
  function DropdownContent({ className, children, ...props }) {
1172
- return /* @__PURE__ */ jsx("div", { className: classNames(styles$h.dropdownContent, className), ...props, children });
1519
+ return /* @__PURE__ */ jsx("div", { className: classNames(styles$i.dropdownContent, className), ...props, children });
1173
1520
  }
1174
1521
 
1175
1522
  const dropdownItem = "_dropdownItem_msc4i_2";
1176
- const styles$g = {
1523
+ const styles$h = {
1177
1524
  dropdownItem: dropdownItem
1178
1525
  };
1179
1526
 
1180
1527
  function DropdownItem({ className, children, disabled, ...props }) {
1181
- return /* @__PURE__ */ jsx("div", { className: classNames(styles$g.dropdownItem, className), role: "menuitem", "data-disabled": disabled, ...props, children });
1528
+ return /* @__PURE__ */ jsx("div", { className: classNames(styles$h.dropdownItem, className), role: "menuitem", "data-disabled": disabled, ...props, children });
1182
1529
  }
1183
1530
 
1184
1531
  const CLICK_OUTSIDE_IGNORE_DATA_NAME = "data-clickoutside-ignore";
@@ -1211,6 +1558,8 @@ function useClickOutside(refs, callback) {
1211
1558
 
1212
1559
  function DropdownMenuProvider({ children }) {
1213
1560
  const [isOpen, setIsOpen] = useState(false);
1561
+ const [triggerEvent, setTriggerEvent] = useState("click");
1562
+ const [portalPlacement, setPortalPlacement] = useState(null);
1214
1563
  const triggerRef = useRef(null);
1215
1564
  const portalRef = useRef(null);
1216
1565
  useClickOutside([portalRef, triggerRef], () => setIsOpen(false));
@@ -1221,9 +1570,13 @@ function DropdownMenuProvider({ children }) {
1221
1570
  isOpen,
1222
1571
  setIsOpen,
1223
1572
  triggerRef,
1224
- portalRef
1573
+ portalRef,
1574
+ triggerEvent,
1575
+ setTriggerEvent,
1576
+ portalPlacement,
1577
+ setPortalPlacement
1225
1578
  },
1226
- children: typeof children === "function" ? children({ isOpen, setIsOpen }) : children
1579
+ children: typeof children === "function" ? children({ isOpen, setIsOpen, portalPlacement }) : children
1227
1580
  }
1228
1581
  );
1229
1582
  }
@@ -1236,34 +1589,351 @@ function useDropdownMenuContext() {
1236
1589
  return context;
1237
1590
  }
1238
1591
 
1239
- const dropdownPortal = "_dropdownPortal_ne1k6_2";
1240
- const styles$f = {
1241
- dropdownPortal: dropdownPortal
1592
+ const getAxisAlign = ({ translateAxis, triggerPageRect, triggerCenter }) => {
1593
+ const axisAlign = {
1594
+ x: {
1595
+ start: triggerPageRect.left,
1596
+ center: triggerCenter.x,
1597
+ end: triggerPageRect.right
1598
+ },
1599
+ y: {
1600
+ start: triggerPageRect.top,
1601
+ center: triggerCenter.y,
1602
+ end: triggerPageRect.bottom
1603
+ }
1604
+ };
1605
+ return axisAlign[translateAxis];
1606
+ };
1607
+
1608
+ const getTriggerGeometry = (triggerRect, scrollCoords) => {
1609
+ const triggerWidth = triggerRect.width || triggerRect.right - triggerRect.left;
1610
+ const triggerHeight = triggerRect.height || triggerRect.bottom - triggerRect.top;
1611
+ const triggerPageRect = {
1612
+ top: triggerRect.top + scrollCoords.y,
1613
+ right: triggerRect.right + scrollCoords.x,
1614
+ bottom: triggerRect.bottom + scrollCoords.y,
1615
+ left: triggerRect.left + scrollCoords.x
1616
+ };
1617
+ const triggerCenter = {
1618
+ x: triggerPageRect.left + triggerWidth / 2,
1619
+ y: triggerPageRect.top + triggerHeight / 2
1620
+ };
1621
+ return { triggerPageRect, triggerCenter };
1622
+ };
1623
+
1624
+ const getTranslateBySide = (position, align) => {
1625
+ const sideConfig = DROPDOWN_PORTAL_SIDE_CONFIG[position];
1626
+ const translateByAlign = DROPDOWN_PORTAL_TRANSLATE_BY_ALIGN[align];
1627
+ const isAlignOnX = sideConfig.translateAxis === "x";
1628
+ return {
1629
+ "--dropdown-portal-translate-x": isAlignOnX ? translateByAlign : sideConfig.fixedTranslate,
1630
+ "--dropdown-portal-translate-y": isAlignOnX ? sideConfig.fixedTranslate : translateByAlign
1631
+ };
1632
+ };
1633
+ const getAnchorBySide = (position, triggerPageRect) => {
1634
+ const sideConfig = DROPDOWN_PORTAL_SIDE_CONFIG[position];
1635
+ return { [sideConfig.anchorKey]: triggerPageRect[sideConfig.anchorEdgeKey] };
1636
+ };
1637
+ const getOffsetPadding = (position, offset) => {
1638
+ const sideConfig = DROPDOWN_PORTAL_SIDE_CONFIG[position];
1639
+ return { [sideConfig.paddingKey]: `${offset}px` };
1640
+ };
1641
+ const getEdgeValueBySide = ({
1642
+ position,
1643
+ triggerRect,
1644
+ scrollCoords,
1645
+ portalWidth,
1646
+ portalHeight
1647
+ }) => {
1648
+ const sideConfig = DROPDOWN_PORTAL_SIDE_CONFIG[position];
1649
+ if (sideConfig.edgeKey === "rightEdge") {
1650
+ return triggerRect.right + scrollCoords.x + portalWidth;
1651
+ }
1652
+ if (sideConfig.edgeKey === "leftEdge") {
1653
+ return triggerRect.left + scrollCoords.x - portalWidth;
1654
+ }
1655
+ if (sideConfig.edgeKey === "bottomEdge") {
1656
+ return triggerRect.bottom + scrollCoords.y + portalHeight;
1657
+ }
1658
+ return triggerRect.top + scrollCoords.y - portalHeight;
1659
+ };
1660
+ const isEdgeOverflow = ({ edgeKey, edgeValue, viewportLimit }) => {
1661
+ if (edgeKey === "rightEdge" || edgeKey === "bottomEdge") {
1662
+ return edgeValue > viewportLimit;
1663
+ }
1664
+ return edgeValue < viewportLimit;
1242
1665
  };
1243
1666
 
1244
- function DropdownPortal({ children, className, align = "start", isNested }) {
1245
- const { isOpen, triggerRef, portalRef } = useDropdownMenuContext();
1246
- const [position, setPosition] = useState();
1667
+ function getPortalPosition({
1668
+ align,
1669
+ position,
1670
+ offset,
1671
+ scrollCoords,
1672
+ triggerRect
1673
+ }) {
1674
+ const { triggerPageRect, triggerCenter } = getTriggerGeometry(triggerRect, scrollCoords);
1675
+ const sideConfig = DROPDOWN_PORTAL_SIDE_CONFIG[position];
1676
+ const axisAlign = getAxisAlign({
1677
+ translateAxis: sideConfig.translateAxis,
1678
+ triggerPageRect,
1679
+ triggerCenter
1680
+ });
1681
+ const alignPosition = {
1682
+ x: {
1683
+ left: axisAlign[align]
1684
+ },
1685
+ y: {
1686
+ top: axisAlign[align]
1687
+ }
1688
+ };
1689
+ const portalPositionStyle = {
1690
+ ...getTranslateBySide(position, align),
1691
+ ...getAnchorBySide(position, triggerPageRect),
1692
+ ...alignPosition[sideConfig.translateAxis],
1693
+ ...getOffsetPadding(position, offset)
1694
+ };
1695
+ return portalPositionStyle;
1696
+ }
1697
+
1698
+ function handleDropdownMouseLeave(event, { ignoreRelatedTargetRef, setIsOpen }) {
1699
+ if (event.relatedTarget instanceof Node && ignoreRelatedTargetRef.current?.contains(event.relatedTarget)) {
1700
+ return;
1701
+ }
1702
+ setIsOpen(false);
1703
+ }
1704
+
1705
+ function usePortalHandlersByEventTrigger() {
1706
+ const { triggerRef, setIsOpen } = useDropdownMenuContext();
1707
+ const handlePortalBlur = useCallback(
1708
+ (event) => {
1709
+ const relatedTarget = event.relatedTarget;
1710
+ if (!(relatedTarget instanceof Node)) {
1711
+ setIsOpen(false);
1712
+ return;
1713
+ }
1714
+ if (event.currentTarget.contains(relatedTarget) || triggerRef.current?.contains(relatedTarget)) {
1715
+ return;
1716
+ }
1717
+ setIsOpen(false);
1718
+ },
1719
+ [setIsOpen, triggerRef]
1720
+ );
1721
+ const portalHandlersByEvent = useMemo(
1722
+ () => ({
1723
+ click: {},
1724
+ hover: {
1725
+ onMouseLeave: (event) => handleDropdownMouseLeave(event, {
1726
+ ignoreRelatedTargetRef: triggerRef,
1727
+ setIsOpen
1728
+ }),
1729
+ onBlur: handlePortalBlur
1730
+ }
1731
+ }),
1732
+ [handlePortalBlur, setIsOpen, triggerRef]
1733
+ );
1734
+ return portalHandlersByEvent;
1735
+ }
1736
+
1737
+ const getAdjustedAlign = ({
1738
+ align,
1739
+ translateAxis,
1740
+ portalWidth,
1741
+ portalHeight,
1742
+ triggerPageRect,
1743
+ triggerCenter,
1744
+ viewportPosition
1745
+ }) => {
1746
+ const isAlignedOnX = translateAxis === "x";
1747
+ const portalSize = isAlignedOnX ? portalWidth : portalHeight;
1748
+ if (!portalSize) {
1749
+ return align;
1750
+ }
1751
+ const axisAlign = getAxisAlign({ translateAxis, triggerPageRect, triggerCenter });
1752
+ const viewportStart = isAlignedOnX ? viewportPosition.left : viewportPosition.top;
1753
+ const viewportEnd = isAlignedOnX ? viewportPosition.right : viewportPosition.bottom;
1754
+ let portalStart = axisAlign.start;
1755
+ if (align === "center") {
1756
+ portalStart = axisAlign.center - portalSize / 2;
1757
+ }
1758
+ if (align === "end") {
1759
+ portalStart = axisAlign.end - portalSize;
1760
+ }
1761
+ const portalEnd = portalStart + portalSize;
1762
+ const isStartOverflow = portalStart < viewportStart;
1763
+ const isEndOverflow = portalEnd > viewportEnd;
1764
+ if (align === "start" && isEndOverflow && !isStartOverflow) {
1765
+ return "end";
1766
+ }
1767
+ if (align === "end" && isStartOverflow && !isEndOverflow) {
1768
+ return "start";
1769
+ }
1770
+ if (align === "center" && isStartOverflow !== isEndOverflow) {
1771
+ return isStartOverflow ? "start" : "end";
1772
+ }
1773
+ return align;
1774
+ };
1775
+
1776
+ const getAdjustedPosition = ({
1777
+ position,
1778
+ portalWidth,
1779
+ portalHeight,
1780
+ triggerRect,
1781
+ scrollCoords,
1782
+ viewportPosition
1783
+ }) => {
1784
+ const sideConfig = DROPDOWN_PORTAL_SIDE_CONFIG[position];
1785
+ const portalSize = sideConfig.sizeKey === "portalWidth" ? portalWidth : portalHeight;
1786
+ const edgeValue = getEdgeValueBySide({
1787
+ position,
1788
+ triggerRect,
1789
+ scrollCoords,
1790
+ portalWidth,
1791
+ portalHeight
1792
+ });
1793
+ const viewportLimit = viewportPosition[sideConfig.viewportKey];
1794
+ const isOverflow = isEdgeOverflow({ edgeKey: sideConfig.edgeKey, edgeValue, viewportLimit });
1795
+ return portalSize && isOverflow ? sideConfig.nextPosition : position;
1796
+ };
1797
+
1798
+ function getAdjustedPlacement({
1799
+ align,
1800
+ position,
1801
+ viewportPosition,
1802
+ portalWidth = 0,
1803
+ portalHeight = 0,
1804
+ scrollCoords,
1805
+ triggerRect
1806
+ }) {
1807
+ const adjustedPosition = getAdjustedPosition({
1808
+ position,
1809
+ viewportPosition,
1810
+ portalWidth,
1811
+ portalHeight,
1812
+ scrollCoords,
1813
+ triggerRect
1814
+ });
1815
+ const { triggerPageRect, triggerCenter } = getTriggerGeometry(triggerRect, scrollCoords);
1816
+ const sideConfig = DROPDOWN_PORTAL_SIDE_CONFIG[position];
1817
+ const adjustedAlign = getAdjustedAlign({
1818
+ align,
1819
+ translateAxis: sideConfig.translateAxis,
1820
+ portalWidth,
1821
+ portalHeight,
1822
+ triggerPageRect,
1823
+ triggerCenter,
1824
+ viewportPosition
1825
+ });
1826
+ return { position: adjustedPosition, align: adjustedAlign };
1827
+ }
1828
+
1829
+ function usePortalPosition({ align, position, offset, portalWidth, portalHeight }) {
1830
+ const { isOpen, triggerRef, setPortalPlacement } = useDropdownMenuContext();
1831
+ const [portalPosition, setPortalPosition] = useState();
1247
1832
  useEffect(() => {
1248
1833
  if (isOpen && triggerRef.current) {
1249
1834
  const triggerRect = triggerRef.current.getBoundingClientRect();
1250
- setPosition({
1251
- top: triggerRect.bottom + window.scrollY,
1252
- ...align === "start" ? { left: triggerRect.left + window.scrollX } : {},
1253
- ...align === "end" ? { right: triggerRect.left + window.scrollX } : {}
1835
+ const scrollCoords = {
1836
+ x: window.scrollX,
1837
+ y: window.scrollY
1838
+ };
1839
+ const viewportPosition = {
1840
+ left: scrollCoords.x,
1841
+ right: scrollCoords.x + window.innerWidth,
1842
+ top: scrollCoords.y,
1843
+ bottom: scrollCoords.y + window.innerHeight
1844
+ };
1845
+ const { position: adjustedPosition, align: adjustedAlign } = getAdjustedPlacement({
1846
+ align,
1847
+ position,
1848
+ viewportPosition,
1849
+ portalWidth,
1850
+ portalHeight,
1851
+ scrollCoords,
1852
+ triggerRect
1853
+ });
1854
+ setPortalPlacement({ position: adjustedPosition, align: adjustedAlign });
1855
+ const newPortalPosition = getPortalPosition({
1856
+ align: adjustedAlign,
1857
+ position: adjustedPosition,
1858
+ offset,
1859
+ triggerRect,
1860
+ scrollCoords
1254
1861
  });
1862
+ setPortalPosition(newPortalPosition);
1255
1863
  }
1256
- }, [align, isOpen, triggerRef]);
1257
- if (!isOpen || !position) {
1864
+ }, [align, isOpen, offset, portalHeight, portalWidth, position, setPortalPlacement, triggerRef]);
1865
+ return portalPosition;
1866
+ }
1867
+
1868
+ function useTriggerHandlersByEventTrigger() {
1869
+ const { setIsOpen, portalRef } = useDropdownMenuContext();
1870
+ const handleTriggerBlur = useCallback(
1871
+ (event) => {
1872
+ const relatedTarget = event.relatedTarget;
1873
+ if (relatedTarget instanceof Node && portalRef.current?.contains(relatedTarget)) {
1874
+ return;
1875
+ }
1876
+ setIsOpen(false);
1877
+ },
1878
+ [portalRef, setIsOpen]
1879
+ );
1880
+ const triggerHandlersByEvent = useMemo(
1881
+ () => ({
1882
+ click: { onClick: () => setIsOpen((prev) => !prev) },
1883
+ hover: {
1884
+ onMouseEnter: () => setIsOpen(true),
1885
+ onMouseLeave: (event) => handleDropdownMouseLeave(event, {
1886
+ ignoreRelatedTargetRef: portalRef,
1887
+ setIsOpen
1888
+ }),
1889
+ onFocus: () => setIsOpen(true),
1890
+ onBlur: handleTriggerBlur
1891
+ }
1892
+ }),
1893
+ [handleTriggerBlur, setIsOpen, portalRef]
1894
+ );
1895
+ return triggerHandlersByEvent;
1896
+ }
1897
+
1898
+ const dropdownPortal = "_dropdownPortal_p3tdk_2";
1899
+ const styles$g = {
1900
+ dropdownPortal: dropdownPortal
1901
+ };
1902
+
1903
+ function DropdownPortal({
1904
+ children,
1905
+ className,
1906
+ align = "start",
1907
+ position = "bottom",
1908
+ isNested,
1909
+ offset = DROPDOWN_PORTAL_DEFAULT_OFFSET,
1910
+ maxWidth,
1911
+ maxHeight
1912
+ }) {
1913
+ const { portalRef, triggerEvent, isOpen } = useDropdownMenuContext();
1914
+ const handlersByTrigger = usePortalHandlersByEventTrigger();
1915
+ const portalPosition = usePortalPosition({
1916
+ align,
1917
+ position,
1918
+ offset,
1919
+ ...maxWidth && { portalWidth: maxWidth + offset },
1920
+ ...maxHeight && { portalHeight: maxHeight + offset }
1921
+ });
1922
+ if (!isOpen || !portalPosition) {
1258
1923
  return null;
1259
1924
  }
1260
1925
  return createPortal(
1261
1926
  /* @__PURE__ */ jsx(
1262
1927
  "div",
1263
1928
  {
1264
- style: position,
1929
+ style: {
1930
+ ...portalPosition,
1931
+ ...maxWidth && { "--dropdown-portal-max-width": `${maxWidth + offset}px` },
1932
+ ...maxHeight && { "--dropdown-portal-max-height": `${maxHeight + offset}px` }
1933
+ },
1265
1934
  ref: portalRef,
1266
- className: classNames(styles$f.dropdownPortal, className),
1935
+ className: classNames(styles$g.dropdownPortal, className),
1936
+ ...handlersByTrigger[triggerEvent],
1267
1937
  ...isNested && { [CLICK_OUTSIDE_IGNORE_DATA_NAME]: "true" },
1268
1938
  children
1269
1939
  }
@@ -1276,10 +1946,24 @@ function DropdownRoot({ children }) {
1276
1946
  return /* @__PURE__ */ jsx(DropdownMenuProvider, { children });
1277
1947
  }
1278
1948
 
1279
- function DropdownTrigger({ children, asChild, ...props }) {
1280
- const { triggerRef, setIsOpen, isOpen } = useDropdownMenuContext();
1949
+ function DropdownTrigger({ children, asChild, triggerEvent = "click", ...props }) {
1950
+ const { triggerRef, isOpen, setTriggerEvent } = useDropdownMenuContext();
1951
+ const handlersByTrigger = useTriggerHandlersByEventTrigger();
1952
+ useEffect(() => {
1953
+ setTriggerEvent(triggerEvent);
1954
+ }, [setTriggerEvent, triggerEvent]);
1281
1955
  const Trigger = asChild ? Slot : "button";
1282
- return /* @__PURE__ */ jsx(Trigger, { ref: triggerRef, onClick: () => setIsOpen(!isOpen), "aria-expanded": isOpen, "aria-haspopup": "menu", ...props, children });
1956
+ return /* @__PURE__ */ jsx(
1957
+ Trigger,
1958
+ {
1959
+ ref: triggerRef,
1960
+ "aria-expanded": isOpen,
1961
+ "aria-haspopup": "menu",
1962
+ ...handlersByTrigger[triggerEvent],
1963
+ ...props,
1964
+ children
1965
+ }
1966
+ );
1283
1967
  }
1284
1968
 
1285
1969
  function DropdownMenu() {
@@ -1301,7 +1985,7 @@ const BOUNDARY_PAGES = 2;
1301
1985
  const paginationItem = "_paginationItem_1ll6p_2";
1302
1986
  const md$5 = "_md_1ll6p_46";
1303
1987
  const sm$2 = "_sm_1ll6p_60";
1304
- const styles$e = {
1988
+ const styles$f = {
1305
1989
  paginationItem: paginationItem,
1306
1990
  md: md$5,
1307
1991
  sm: sm$2
@@ -1313,7 +1997,7 @@ function PaginationItem({ className, children, size = "md", isCurrent, ...props
1313
1997
  {
1314
1998
  type: "button",
1315
1999
  ...isCurrent && { "aria-current": "page" },
1316
- className: classNames(styles$e.paginationItem, styles$e[size], className),
2000
+ className: classNames(styles$f.paginationItem, styles$f[size], className),
1317
2001
  ...props,
1318
2002
  children
1319
2003
  }
@@ -1350,7 +2034,7 @@ function getVisiblePages(totalPages, maxVisiblePagesWithEllipsis, currentPage) {
1350
2034
  const paginationRoot = "_paginationRoot_c5fwx_2";
1351
2035
  const paginationList = "_paginationList_c5fwx_7";
1352
2036
  const arrowLeft = "_arrowLeft_c5fwx_13";
1353
- const styles$d = {
2037
+ const styles$e = {
1354
2038
  paginationRoot: paginationRoot,
1355
2039
  paginationList: paginationList,
1356
2040
  arrowLeft: arrowLeft
@@ -1377,9 +2061,9 @@ function PaginationRoot({
1377
2061
  {
1378
2062
  "aria-label": "pagination navigation",
1379
2063
  role: "navigation",
1380
- className: classNames(styles$d.paginationRoot, className),
2064
+ className: classNames(styles$e.paginationRoot, className),
1381
2065
  ...props,
1382
- children: /* @__PURE__ */ jsxs("ul", { className: styles$d.paginationList, children: [
2066
+ children: /* @__PURE__ */ jsxs("ul", { className: styles$e.paginationList, children: [
1383
2067
  showArrows && /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
1384
2068
  PaginationItem$1,
1385
2069
  {
@@ -1387,7 +2071,7 @@ function PaginationRoot({
1387
2071
  onClick: () => onPageChange(currentPage - 1),
1388
2072
  disabled: isFirstPage,
1389
2073
  size,
1390
- children: /* @__PURE__ */ jsx(IconChevron$1, { className: styles$d.arrowLeft })
2074
+ children: /* @__PURE__ */ jsx(IconChevron$1, { className: styles$e.arrowLeft })
1391
2075
  }
1392
2076
  ) }),
1393
2077
  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 +2111,7 @@ const fill = "_fill_33gbh_23";
1427
2111
  const trail = "_trail_33gbh_28";
1428
2112
  const sm$1 = "_sm_33gbh_32";
1429
2113
  const md$4 = "_md_33gbh_36";
1430
- const styles$c = {
2114
+ const styles$d = {
1431
2115
  root: root,
1432
2116
  segment: segment,
1433
2117
  flexGrow: flexGrow,
@@ -1448,7 +2132,7 @@ function ProgressBarLinear({
1448
2132
  return /* @__PURE__ */ jsxs(
1449
2133
  "div",
1450
2134
  {
1451
- className: classNames(styles$c.root, styles$c[size], className),
2135
+ className: classNames(styles$d.root, styles$d[size], className),
1452
2136
  role: "progressbar",
1453
2137
  "aria-valuenow": clampedPercent,
1454
2138
  "aria-valuemin": 0,
@@ -1460,14 +2144,14 @@ function ProgressBarLinear({
1460
2144
  (Boolean(clampedPercent) || showFillOnZero) && /* @__PURE__ */ jsx(
1461
2145
  "div",
1462
2146
  {
1463
- className: classNames(styles$c.segment, styles$c.fill),
2147
+ className: classNames(styles$d.segment, styles$d.fill),
1464
2148
  style: {
1465
2149
  "--clamped-percent": `${clampedPercent}%`
1466
2150
  },
1467
2151
  "aria-hidden": "true"
1468
2152
  }
1469
2153
  ),
1470
- clampedPercent < 100 && /* @__PURE__ */ jsx("div", { className: classNames(styles$c.segment, styles$c.flexGrow, styles$c.trail), "aria-hidden": "true" })
2154
+ clampedPercent < 100 && /* @__PURE__ */ jsx("div", { className: classNames(styles$d.segment, styles$d.flexGrow, styles$d.trail), "aria-hidden": "true" })
1471
2155
  ]
1472
2156
  }
1473
2157
  );
@@ -1487,7 +2171,7 @@ function ProgressBarSteps({
1487
2171
  return /* @__PURE__ */ jsx(
1488
2172
  "div",
1489
2173
  {
1490
- className: classNames(styles$c.segment, styles$c.flexGrow, isFilled ? styles$c.fill : styles$c.trail),
2174
+ className: classNames(styles$d.segment, styles$d.flexGrow, isFilled ? styles$d.fill : styles$d.trail),
1491
2175
  "aria-hidden": "true"
1492
2176
  },
1493
2177
  index
@@ -1496,7 +2180,7 @@ function ProgressBarSteps({
1496
2180
  return /* @__PURE__ */ jsx(
1497
2181
  "div",
1498
2182
  {
1499
- className: classNames(styles$c.root, styles$c[size], className),
2183
+ className: classNames(styles$d.root, styles$d[size], className),
1500
2184
  role: "progressbar",
1501
2185
  "aria-valuenow": clampedCurrent,
1502
2186
  "aria-valuemin": 0,
@@ -1516,14 +2200,14 @@ ProgressBar.Steps = ProgressBarSteps;
1516
2200
 
1517
2201
  const radioWrapper = "_radioWrapper_13xie_2";
1518
2202
  const radio = "_radio_13xie_2";
1519
- const styles$b = {
2203
+ const styles$c = {
1520
2204
  radioWrapper: radioWrapper,
1521
2205
  radio: radio
1522
2206
  };
1523
2207
 
1524
2208
  function RadioButton({ className, label, ...props }) {
1525
- return /* @__PURE__ */ jsxs("label", { "data-disabled": `${Boolean(props.disabled)}`, className: classNames(styles$b.radioWrapper, className), children: [
1526
- /* @__PURE__ */ jsx("input", { type: "radio", className: styles$b.radio, ...props }),
2209
+ return /* @__PURE__ */ jsxs("label", { "data-disabled": `${Boolean(props.disabled)}`, className: classNames(styles$c.radioWrapper, className), children: [
2210
+ /* @__PURE__ */ jsx("input", { type: "radio", className: styles$c.radio, ...props }),
1527
2211
  label
1528
2212
  ] });
1529
2213
  }
@@ -1534,7 +2218,7 @@ const textFieldAreaWrapper = "_textFieldAreaWrapper_90dha_2";
1534
2218
  const textFieldAreaLabel = "_textFieldAreaLabel_90dha_15";
1535
2219
  const textFieldAreaLabelSuffix = "_textFieldAreaLabelSuffix_90dha_24";
1536
2220
  const textFieldArea = "_textFieldArea_90dha_2";
1537
- const styles$a = {
2221
+ const styles$b = {
1538
2222
  textFieldAreaWrapper: textFieldAreaWrapper,
1539
2223
  textFieldAreaLabel: textFieldAreaLabel,
1540
2224
  textFieldAreaLabelSuffix: textFieldAreaLabelSuffix,
@@ -1555,14 +2239,14 @@ function TextFieldArea({
1555
2239
  "data-invalid": isInvalid,
1556
2240
  "aria-invalid": isInvalid,
1557
2241
  "data-element": "field",
1558
- className: classNames(styles$a.textFieldArea, className),
2242
+ className: classNames(styles$b.textFieldArea, className),
1559
2243
  placeholder,
1560
2244
  ...props
1561
2245
  }
1562
2246
  );
1563
- return floatingLabel ? /* @__PURE__ */ jsxs("div", { className: styles$a.textFieldAreaWrapper, children: [
1564
- /* @__PURE__ */ jsx("label", { htmlFor: props.id, className: styles$a.textFieldAreaLabel, "data-element": "label", children: floatingLabel }),
1565
- floatingLabelSuffix && /* @__PURE__ */ jsx("span", { className: styles$a.textFieldAreaLabelSuffix, "data-element": "label-suffix", children: floatingLabelSuffix }),
2247
+ return floatingLabel ? /* @__PURE__ */ jsxs("div", { className: styles$b.textFieldAreaWrapper, children: [
2248
+ /* @__PURE__ */ jsx("label", { htmlFor: props.id, className: styles$b.textFieldAreaLabel, "data-element": "label", children: floatingLabel }),
2249
+ floatingLabelSuffix && /* @__PURE__ */ jsx("span", { className: styles$b.textFieldAreaLabelSuffix, "data-element": "label-suffix", children: floatingLabelSuffix }),
1566
2250
  textFieldArea
1567
2251
  ] }) : textFieldArea;
1568
2252
  }
@@ -1570,7 +2254,7 @@ function TextFieldArea({
1570
2254
  const textFieldInputWrapper = "_textFieldInputWrapper_4dexk_2";
1571
2255
  const textFieldInputLabel = "_textFieldInputLabel_4dexk_10";
1572
2256
  const textFieldInput = "_textFieldInput_4dexk_2";
1573
- const styles$9 = {
2257
+ const styles$a = {
1574
2258
  textFieldInputWrapper: textFieldInputWrapper,
1575
2259
  textFieldInputLabel: textFieldInputLabel,
1576
2260
  textFieldInput: textFieldInput
@@ -1589,37 +2273,37 @@ function TextFieldInput({
1589
2273
  "data-invalid": isInvalid,
1590
2274
  "aria-invalid": isInvalid,
1591
2275
  "data-element": "field",
1592
- className: classNames(styles$9.textFieldInput, className),
2276
+ className: classNames(styles$a.textFieldInput, className),
1593
2277
  placeholder,
1594
2278
  ...props
1595
2279
  }
1596
2280
  );
1597
- return floatingLabel ? /* @__PURE__ */ jsxs("div", { className: styles$9.textFieldInputWrapper, children: [
1598
- /* @__PURE__ */ jsx("label", { htmlFor: props.id, className: styles$9.textFieldInputLabel, "data-element": "label", children: floatingLabel }),
2281
+ return floatingLabel ? /* @__PURE__ */ jsxs("div", { className: styles$a.textFieldInputWrapper, children: [
2282
+ /* @__PURE__ */ jsx("label", { htmlFor: props.id, className: styles$a.textFieldInputLabel, "data-element": "label", children: floatingLabel }),
1599
2283
  textFieldInput
1600
2284
  ] }) : textFieldInput;
1601
2285
  }
1602
2286
 
1603
2287
  const textFieldLabel = "_textFieldLabel_1l2ya_1";
1604
- const styles$8 = {
2288
+ const styles$9 = {
1605
2289
  textFieldLabel: textFieldLabel
1606
2290
  };
1607
2291
 
1608
2292
  function TextFieldLabel({ className, children, isRequired, ...props }) {
1609
- return /* @__PURE__ */ jsx("label", { className: classNames(styles$8.textFieldLabel, className), "data-required": isRequired, ...props, children });
2293
+ return /* @__PURE__ */ jsx("label", { className: classNames(styles$9.textFieldLabel, className), "data-required": isRequired, ...props, children });
1610
2294
  }
1611
2295
 
1612
2296
  const textFieldRoot = "_textFieldRoot_1geya_2";
1613
2297
  const lg$2 = "_lg_1geya_38";
1614
2298
  const md$3 = "_md_1geya_68";
1615
- const styles$7 = {
2299
+ const styles$8 = {
1616
2300
  textFieldRoot: textFieldRoot,
1617
2301
  lg: lg$2,
1618
2302
  md: md$3
1619
2303
  };
1620
2304
 
1621
2305
  function TextFieldRoot({ className, size = "lg", ...props }) {
1622
- return /* @__PURE__ */ jsx("div", { className: classNames(styles$7.textFieldRoot, styles$7[size], className), ...props });
2306
+ return /* @__PURE__ */ jsx("div", { className: classNames(styles$8.textFieldRoot, styles$8[size], className), ...props });
1623
2307
  }
1624
2308
 
1625
2309
  function TextField() {
@@ -1634,7 +2318,7 @@ const custom = "_custom_gh87y_15";
1634
2318
  const icon$1 = "_icon_gh87y_25";
1635
2319
  const inputCustomWrapper = "_inputCustomWrapper_gh87y_34";
1636
2320
  const customButton = "_customButton_gh87y_49";
1637
- const styles$6 = {
2321
+ const styles$7 = {
1638
2322
  search: search,
1639
2323
  "default": "_default_gh87y_10",
1640
2324
  custom: custom,
@@ -1659,7 +2343,7 @@ function Search(props) {
1659
2343
  value && /* @__PURE__ */ jsx(
1660
2344
  IconXMark.Small,
1661
2345
  {
1662
- className: styles$6.icon,
2346
+ className: styles$7.icon,
1663
2347
  "aria-label": "clear search",
1664
2348
  role: "button",
1665
2349
  onClick: () => onChange(""),
@@ -1667,13 +2351,13 @@ function Search(props) {
1667
2351
  }
1668
2352
  )
1669
2353
  ] });
1670
- return /* @__PURE__ */ jsxs(TextField.Root, { size: "md", className: classNames(styles$6.search, styles$6[mode], className), children: [
2354
+ return /* @__PURE__ */ jsxs(TextField.Root, { size: "md", className: classNames(styles$7.search, styles$7[mode], className), children: [
1671
2355
  mode === "default" && /* @__PURE__ */ jsxs(Fragment$1, { children: [
1672
- /* @__PURE__ */ jsx(IconSearch, { className: styles$6.icon, "data-element": "icon" }),
2356
+ /* @__PURE__ */ jsx(IconSearch, { className: styles$7.icon, "data-element": "icon" }),
1673
2357
  inputField
1674
2358
  ] }),
1675
2359
  mode === "custom" && /* @__PURE__ */ jsxs(Fragment$1, { children: [
1676
- /* @__PURE__ */ jsx("div", { className: styles$6.inputCustomWrapper, children: inputField }),
2360
+ /* @__PURE__ */ jsx("div", { className: styles$7.inputCustomWrapper, children: inputField }),
1677
2361
  /* @__PURE__ */ jsx(
1678
2362
  "button",
1679
2363
  {
@@ -1681,11 +2365,11 @@ function Search(props) {
1681
2365
  type: "button",
1682
2366
  onClick: props.onSearch,
1683
2367
  "data-element": "custom-button",
1684
- className: styles$6.customButton,
2368
+ className: styles$7.customButton,
1685
2369
  style: {
1686
2370
  "--custom-button-width": `${props.buttonWidth ?? DEFAULT_CUSTOM_SEARCH_BUTTON_WIDTH}px`
1687
2371
  },
1688
- children: /* @__PURE__ */ jsx(IconSearch, { className: classNames(styles$6.icon), "data-element": "icon" })
2372
+ children: /* @__PURE__ */ jsx(IconSearch, { className: classNames(styles$7.icon), "data-element": "icon" })
1689
2373
  }
1690
2374
  )
1691
2375
  ] })
@@ -1711,7 +2395,7 @@ function useSegmentControlContext() {
1711
2395
  const segmentControlItem = "_segmentControlItem_178px_2";
1712
2396
  const lg$1 = "_lg_178px_23";
1713
2397
  const md$2 = "_md_178px_28";
1714
- const styles$5 = {
2398
+ const styles$6 = {
1715
2399
  segmentControlItem: segmentControlItem,
1716
2400
  lg: lg$1,
1717
2401
  md: md$2
@@ -1727,7 +2411,7 @@ function SegmentControlItem({ className, children, value, ...props }) {
1727
2411
  "aria-checked": value === activeValue,
1728
2412
  "data-state": value === activeValue ? "on" : "off",
1729
2413
  "data-value": value,
1730
- className: classNames(styles$5.segmentControlItem, styles$5[size], className),
2414
+ className: classNames(styles$6.segmentControlItem, styles$6[size], className),
1731
2415
  ...props,
1732
2416
  children
1733
2417
  }
@@ -1764,7 +2448,7 @@ const showAfterDelay = "_showAfterDelay_pulca_1";
1764
2448
  const lg = "_lg_pulca_19";
1765
2449
  const md$1 = "_md_pulca_23";
1766
2450
  const indicator$1 = "_indicator_pulca_28";
1767
- const styles$4 = {
2451
+ const styles$5 = {
1768
2452
  segmentControlRoot: segmentControlRoot,
1769
2453
  showAfterDelay: showAfterDelay,
1770
2454
  lg: lg,
@@ -1779,11 +2463,11 @@ function SegmentControlRoot({ className, children, value, size = "md", ...props
1779
2463
  {
1780
2464
  ref: rootRef,
1781
2465
  role: "radiogroup",
1782
- className: classNames(styles$4.segmentControlRoot, styles$4[size], className),
2466
+ className: classNames(styles$5.segmentControlRoot, styles$5[size], className),
1783
2467
  ...props,
1784
2468
  children: [
1785
2469
  children,
1786
- /* @__PURE__ */ jsx("div", { className: classNames(styles$4.indicator, styles$4[size]), style: indicatorStyle })
2470
+ /* @__PURE__ */ jsx("div", { className: classNames(styles$5.indicator, styles$5[size]), style: indicatorStyle })
1787
2471
  ]
1788
2472
  }
1789
2473
  ) });
@@ -1796,7 +2480,7 @@ SegmentControl.Item = SegmentControlItem;
1796
2480
 
1797
2481
  const switchWrapper = "_switchWrapper_1yukb_2";
1798
2482
  const icon = "_icon_1yukb_25";
1799
- const styles$3 = {
2483
+ const styles$4 = {
1800
2484
  switchWrapper: switchWrapper,
1801
2485
  icon: icon,
1802
2486
  "switch": "_switch_1yukb_2"
@@ -1809,10 +2493,10 @@ function Switch({ className, label, indeterminate, ...props }) {
1809
2493
  {
1810
2494
  "data-disabled": `${Boolean(props.disabled)}`,
1811
2495
  "data-state": dataState,
1812
- className: classNames(styles$3.switchWrapper, className),
2496
+ className: classNames(styles$4.switchWrapper, className),
1813
2497
  children: [
1814
- dataState === "indeterminate" && /* @__PURE__ */ jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$3.icon }),
1815
- /* @__PURE__ */ jsx("input", { "data-state": dataState, type: "checkbox", role: "switch", className: styles$3.switch, ...props }),
2498
+ dataState === "indeterminate" && /* @__PURE__ */ jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$4.icon }),
2499
+ /* @__PURE__ */ jsx("input", { "data-state": dataState, type: "checkbox", role: "switch", className: styles$4.switch, ...props }),
1816
2500
  label
1817
2501
  ]
1818
2502
  }
@@ -1834,7 +2518,7 @@ function useTabsContext() {
1834
2518
  }
1835
2519
 
1836
2520
  const tabsItem = "_tabsItem_1o4cb_2";
1837
- const styles$2 = {
2521
+ const styles$3 = {
1838
2522
  tabsItem: tabsItem
1839
2523
  };
1840
2524
 
@@ -1848,7 +2532,7 @@ function TabsItem({ className, children, value, ...props }) {
1848
2532
  role: "tab",
1849
2533
  "aria-selected": Boolean(isActive),
1850
2534
  "data-value": value,
1851
- className: classNames(styles$2.tabsItem, className),
2535
+ className: classNames(styles$3.tabsItem, className),
1852
2536
  ...props,
1853
2537
  children
1854
2538
  }
@@ -1882,16 +2566,16 @@ function useActiveTab(value) {
1882
2566
 
1883
2567
  const tabsRoot = "_tabsRoot_1os90_8";
1884
2568
  const indicator = "_indicator_1os90_29";
1885
- const styles$1 = {
2569
+ const styles$2 = {
1886
2570
  tabsRoot: tabsRoot,
1887
2571
  indicator: indicator
1888
2572
  };
1889
2573
 
1890
2574
  function TabsRoot({ className, children, value, ...props }) {
1891
2575
  const { indicatorStyle, rootRef } = useActiveTab(value);
1892
- return /* @__PURE__ */ jsx(TabsProvider, { value: { value }, children: /* @__PURE__ */ jsxs("div", { ref: rootRef, role: "tablist", className: classNames(styles$1.tabsRoot, className), ...props, children: [
2576
+ return /* @__PURE__ */ jsx(TabsProvider, { value: { value }, children: /* @__PURE__ */ jsxs("div", { ref: rootRef, role: "tablist", className: classNames(styles$2.tabsRoot, className), ...props, children: [
1893
2577
  children,
1894
- /* @__PURE__ */ jsx("div", { className: styles$1.indicator, style: indicatorStyle })
2578
+ /* @__PURE__ */ jsx("div", { className: styles$2.indicator, style: indicatorStyle })
1895
2579
  ] }) });
1896
2580
  }
1897
2581
 
@@ -1905,7 +2589,7 @@ const primary = "_primary_4y4oa_11";
1905
2589
  const secondary = "_secondary_4y4oa_19";
1906
2590
  const md = "_md_4y4oa_28";
1907
2591
  const sm = "_sm_4y4oa_34";
1908
- const styles = {
2592
+ const styles$1 = {
1909
2593
  tag: tag,
1910
2594
  primary: primary,
1911
2595
  secondary: secondary,
@@ -1917,7 +2601,7 @@ function Tag({ children, className, size = "md", mode = "primary", disabled, ...
1917
2601
  return /* @__PURE__ */ jsx(
1918
2602
  "div",
1919
2603
  {
1920
- className: classNames(styles.tag, styles[size], styles[mode], className),
2604
+ className: classNames(styles$1.tag, styles$1[size], styles$1[mode], className),
1921
2605
  "data-disabled": disabled,
1922
2606
  "aria-disabled": disabled,
1923
2607
  ...props,
@@ -1926,4 +2610,85 @@ function Tag({ children, className, size = "md", mode = "primary", disabled, ...
1926
2610
  );
1927
2611
  }
1928
2612
 
1929
- export { Badge, BadgeTabs, Breadcrumbs, Button, Checkbox, Chip, Counter, DatePicker, DropdownMenu, I18N_MONTH_LABELS, I18N_WEEKDAY_LABELS, IconArrow, IconArrowCircle, IconArrowDiagonal, IconArrowUTurn, IconCalendar, IconCharacteristic, IconCheck, IconChevron, IconChevronDouble, IconCollapse, IconEye, IconFilters, IconGear, IconGoogle, IconLogOut, IconMail, IconMinus, IconPerson, IconPhone, IconPlus, IconPrize, IconProject, IconQRCode, IconRequest, IconSearch, IconShopping, IconSort, IconTelegram, IconVK, IconXMark, IconYandex, LOCALE_FIRST_DAY_OF_WEEK, Pagination, ProgressBar, RadioButton, Search, SegmentControl, Switch, Tabs, Tag, TextField, useDatePickerControls, useDatePickerMultiSelect, useDatePickerSelect };
2613
+ const tooltipContent = "_tooltipContent_1267q_2";
2614
+ const tooltipTitle = "_tooltipTitle_1267q_96";
2615
+ const styles = {
2616
+ tooltipContent: tooltipContent,
2617
+ tooltipTitle: tooltipTitle
2618
+ };
2619
+
2620
+ function TooltipContent({
2621
+ className,
2622
+ role,
2623
+ title,
2624
+ description,
2625
+ arrowAlign,
2626
+ arrowPosition,
2627
+ arrowOffset,
2628
+ ...props
2629
+ }) {
2630
+ return /* @__PURE__ */ jsxs(
2631
+ "div",
2632
+ {
2633
+ className: classNames(styles.tooltipContent, className),
2634
+ role: role ?? "tooltip",
2635
+ "data-align": arrowAlign,
2636
+ "data-position": arrowPosition,
2637
+ ...arrowOffset && {
2638
+ style: {
2639
+ "--tooltip-content-arrow-offset-inline": `${arrowOffset.inline}px`,
2640
+ "--tooltip-content-arrow-offset-block": `${arrowOffset.block}px`
2641
+ }
2642
+ },
2643
+ ...props,
2644
+ children: [
2645
+ title && /* @__PURE__ */ jsx("div", { className: styles.tooltipTitle, children: title }),
2646
+ description && /* @__PURE__ */ jsx("div", { children: description })
2647
+ ]
2648
+ }
2649
+ );
2650
+ }
2651
+
2652
+ const TOOLTIP_OFFSET = 8;
2653
+
2654
+ function TooltipRoot({
2655
+ children,
2656
+ align = "center",
2657
+ position = "top",
2658
+ triggerEvent = "hover",
2659
+ maxWidth,
2660
+ maxHeight,
2661
+ withoutArrow = false,
2662
+ ...tooltipContentProps
2663
+ }) {
2664
+ return /* @__PURE__ */ jsx(DropdownMenu.Root, { children: ({ portalPlacement }) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
2665
+ /* @__PURE__ */ jsx(DropdownMenu.Trigger, { asChild: true, triggerEvent, children }),
2666
+ /* @__PURE__ */ jsx(
2667
+ DropdownMenu.Portal,
2668
+ {
2669
+ align,
2670
+ position,
2671
+ offset: TOOLTIP_OFFSET,
2672
+ maxWidth,
2673
+ maxHeight,
2674
+ children: /* @__PURE__ */ jsx(
2675
+ TooltipContent,
2676
+ {
2677
+ ...tooltipContentProps,
2678
+ ...!withoutArrow && {
2679
+ arrowAlign: portalPlacement?.align ?? "center",
2680
+ arrowPosition: portalPlacement?.position ?? "top"
2681
+ }
2682
+ }
2683
+ )
2684
+ }
2685
+ )
2686
+ ] }) });
2687
+ }
2688
+
2689
+ function Tooltip(props) {
2690
+ return /* @__PURE__ */ jsx(TooltipRoot, { ...props });
2691
+ }
2692
+ Tooltip.Content = TooltipContent;
2693
+
2694
+ 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, IconChevron, IconChevronDouble, IconClock, IconCollapse, IconCopy, IconDots, IconDownload, IconEye, IconFace, IconFile, IconFilters, IconGear, IconGoogle, IconHanger, IconInfo, IconLogOut, IconMail, IconMinus, IconOneCircle, IconPerson, IconPhone, IconPlus, IconPrize, IconProject, IconQRCode, IconRequest, IconResizeCorner, IconScan, IconSearch, IconShopping, IconSort, IconStar, IconSticker, IconStop, IconSwitch, IconTelegram, IconVK, IconXMark, IconXMarkCircle, IconYandex, LOCALE_FIRST_DAY_OF_WEEK, Pagination, ProgressBar, RadioButton, Search, SegmentControl, Switch, Tabs, Tag, TextField, Tooltip, useDatePickerControls, useDatePickerMultiSelect, useDatePickerSelect };