@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.cjs CHANGED
@@ -57,7 +57,7 @@ const green = "_green_p5h5n_43";
57
57
  const neutral$3 = "_neutral_p5h5n_48";
58
58
  const lg$6 = "_lg_p5h5n_53";
59
59
  const md$9 = "_md_p5h5n_60";
60
- const styles$u = {
60
+ const styles$v = {
61
61
  badge: badge,
62
62
  primary: primary$3,
63
63
  secondary: secondary$4,
@@ -73,13 +73,13 @@ const styles$u = {
73
73
  };
74
74
 
75
75
  function Badge({ children, className, size = "lg", color = "accent", mode = "primary", ...props }) {
76
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$u.badge, styles$u[size], styles$u[color], styles$u[mode], className), ...props, children });
76
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$v.badge, styles$v[size], styles$v[color], styles$v[mode], className), ...props, children });
77
77
  }
78
78
 
79
79
  const badgeTabsItem = "_badgeTabsItem_10lit_2";
80
80
  const primary$2 = "_primary_10lit_18";
81
81
  const secondary$3 = "_secondary_10lit_36";
82
- const styles$t = {
82
+ const styles$u = {
83
83
  badgeTabsItem: badgeTabsItem,
84
84
  primary: primary$2,
85
85
  secondary: secondary$3
@@ -92,7 +92,7 @@ function BadgeTabsItem({ className, children, isActive, mode = "primary", ...pro
92
92
  type: "button",
93
93
  role: "tab",
94
94
  "aria-selected": Boolean(isActive),
95
- className: classNames(styles$t.badgeTabsItem, styles$t[mode], className),
95
+ className: classNames(styles$u.badgeTabsItem, styles$u[mode], className),
96
96
  ...props,
97
97
  children
98
98
  }
@@ -100,12 +100,12 @@ function BadgeTabsItem({ className, children, isActive, mode = "primary", ...pro
100
100
  }
101
101
 
102
102
  const badgeTabsRoot = "_badgeTabsRoot_1qkat_2";
103
- const styles$s = {
103
+ const styles$t = {
104
104
  badgeTabsRoot: badgeTabsRoot
105
105
  };
106
106
 
107
107
  function BadgeTabsRoot({ className, children, ...props }) {
108
- return /* @__PURE__ */ jsxRuntime.jsx("div", { role: "tablist", className: classNames(styles$s.badgeTabsRoot, className), ...props, children });
108
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { role: "tablist", className: classNames(styles$t.badgeTabsRoot, className), ...props, children });
109
109
  }
110
110
 
111
111
  function BadgeTabs(props) {
@@ -148,6 +148,29 @@ IconArrowCircle.Filled = function IconArrowCircleFilled(props) {
148
148
  ) });
149
149
  };
150
150
 
151
+ function IconArrowCircleUp(props) {
152
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
153
+ "path",
154
+ {
155
+ fillRule: "evenodd",
156
+ clipRule: "evenodd",
157
+ 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",
158
+ fill: "currentColor"
159
+ }
160
+ ) });
161
+ }
162
+ IconArrowCircleUp.Filled = function IconArrowCircleUpFilled(props) {
163
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
164
+ "path",
165
+ {
166
+ fillRule: "evenodd",
167
+ clipRule: "evenodd",
168
+ 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",
169
+ fill: "currentColor"
170
+ }
171
+ ) });
172
+ };
173
+
151
174
  function IconArrowDiagonal(props) {
152
175
  return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
153
176
  "path",
@@ -194,6 +217,31 @@ IconArrowUTurn.Up = function IconArrowUTurnUp(props) {
194
217
  ) });
195
218
  };
196
219
 
220
+ function IconBell(props) {
221
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
222
+ "path",
223
+ {
224
+ 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",
225
+ stroke: "currentColor",
226
+ strokeWidth: "2",
227
+ strokeLinecap: "round",
228
+ strokeLinejoin: "round"
229
+ }
230
+ ) });
231
+ }
232
+
233
+ function IconBox(props) {
234
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
235
+ "path",
236
+ {
237
+ fillRule: "evenodd",
238
+ clipRule: "evenodd",
239
+ 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",
240
+ fill: "currentColor"
241
+ }
242
+ ) });
243
+ }
244
+
197
245
  function IconCalendar(props) {
198
246
  return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
199
247
  "path",
@@ -274,6 +322,18 @@ function IconChevronDouble(props) {
274
322
  ] });
275
323
  }
276
324
 
325
+ function IconClock(props) {
326
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
327
+ "path",
328
+ {
329
+ fillRule: "evenodd",
330
+ clipRule: "evenodd",
331
+ 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",
332
+ fill: "currentColor"
333
+ }
334
+ ) });
335
+ }
336
+
277
337
  function IconCollapse(props) {
278
338
  return /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
279
339
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -295,6 +355,65 @@ function IconCollapse(props) {
295
355
  ] });
296
356
  }
297
357
 
358
+ function IconCopy(props) {
359
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
360
+ "path",
361
+ {
362
+ 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",
363
+ stroke: "currentColor",
364
+ strokeWidth: "2",
365
+ strokeLinecap: "round",
366
+ strokeLinejoin: "round"
367
+ }
368
+ ) });
369
+ }
370
+
371
+ function IconDots(props) {
372
+ return /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
373
+ /* @__PURE__ */ jsxRuntime.jsx(
374
+ "path",
375
+ {
376
+ 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",
377
+ fill: "currentColor"
378
+ }
379
+ ),
380
+ /* @__PURE__ */ jsxRuntime.jsx(
381
+ "path",
382
+ {
383
+ 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",
384
+ fill: "currentColor"
385
+ }
386
+ ),
387
+ /* @__PURE__ */ jsxRuntime.jsx(
388
+ "path",
389
+ {
390
+ 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",
391
+ fill: "currentColor"
392
+ }
393
+ ),
394
+ /* @__PURE__ */ jsxRuntime.jsx(
395
+ "path",
396
+ {
397
+ 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",
398
+ fill: "currentColor"
399
+ }
400
+ )
401
+ ] });
402
+ }
403
+
404
+ function IconDownload(props) {
405
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
406
+ "path",
407
+ {
408
+ d: "M7 10L12 15M12 15L17 10M12 15V3M5 21H19",
409
+ stroke: "currentColor",
410
+ strokeWidth: "2",
411
+ strokeLinecap: "round",
412
+ strokeLinejoin: "round"
413
+ }
414
+ ) });
415
+ }
416
+
298
417
  function IconEye(props) {
299
418
  return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
300
419
  "path",
@@ -315,6 +434,53 @@ function IconEyeOff(props) {
315
434
  }
316
435
  IconEye.Off = IconEyeOff;
317
436
 
437
+ function IconFace(props) {
438
+ return /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
439
+ /* @__PURE__ */ jsxRuntime.jsx(
440
+ "path",
441
+ {
442
+ 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",
443
+ fill: "currentColor"
444
+ }
445
+ ),
446
+ /* @__PURE__ */ jsxRuntime.jsx(
447
+ "path",
448
+ {
449
+ 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",
450
+ fill: "currentColor"
451
+ }
452
+ )
453
+ ] });
454
+ }
455
+ IconFace.Sad = function IconFaceSad(props) {
456
+ return /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
457
+ /* @__PURE__ */ jsxRuntime.jsx(
458
+ "path",
459
+ {
460
+ 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",
461
+ fill: "currentColor"
462
+ }
463
+ ),
464
+ /* @__PURE__ */ jsxRuntime.jsx(
465
+ "path",
466
+ {
467
+ 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",
468
+ fill: "currentColor"
469
+ }
470
+ )
471
+ ] });
472
+ };
473
+
474
+ function IconFile(props) {
475
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
476
+ "path",
477
+ {
478
+ 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",
479
+ fill: "currentColor"
480
+ }
481
+ ) });
482
+ }
483
+
318
484
  function IconFilters(props) {
319
485
  return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
320
486
  "path",
@@ -389,6 +555,34 @@ function IconGoogle(props) {
389
555
  ] });
390
556
  }
391
557
 
558
+ function IconHanger(props) {
559
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
560
+ "path",
561
+ {
562
+ 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",
563
+ stroke: "currentColor",
564
+ strokeWidth: "3",
565
+ strokeLinecap: "round",
566
+ strokeLinejoin: "round"
567
+ }
568
+ ) });
569
+ }
570
+
571
+ function IconInfo(props) {
572
+ return /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
573
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "10", fill: "white" }),
574
+ /* @__PURE__ */ jsxRuntime.jsx(
575
+ "path",
576
+ {
577
+ fillRule: "evenodd",
578
+ clipRule: "evenodd",
579
+ 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",
580
+ fill: "currentColor"
581
+ }
582
+ )
583
+ ] });
584
+ }
585
+
392
586
  function IconLogOut(props) {
393
587
  return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
394
588
  "path",
@@ -419,6 +613,18 @@ function IconMinus(props) {
419
613
  ) });
420
614
  }
421
615
 
616
+ function IconOneCircle(props) {
617
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
618
+ "path",
619
+ {
620
+ fillRule: "evenodd",
621
+ clipRule: "evenodd",
622
+ 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",
623
+ fill: "currentColor"
624
+ }
625
+ ) });
626
+ }
627
+
422
628
  function IconPerson(props) {
423
629
  return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
424
630
  "path",
@@ -519,6 +725,29 @@ function IconRequest(props) {
519
725
  ) });
520
726
  }
521
727
 
728
+ function IconResizeCorner(props) {
729
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
730
+ "path",
731
+ {
732
+ 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",
733
+ fill: "currentColor"
734
+ }
735
+ ) });
736
+ }
737
+
738
+ function IconScan(props) {
739
+ return /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
740
+ /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "24", height: "24", fill: "white" }),
741
+ /* @__PURE__ */ jsxRuntime.jsx(
742
+ "path",
743
+ {
744
+ 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",
745
+ fill: "currentColor"
746
+ }
747
+ )
748
+ ] });
749
+ }
750
+
522
751
  function IconSearch(props) {
523
752
  return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
524
753
  "path",
@@ -564,6 +793,55 @@ function IconSort(props) {
564
793
  ) });
565
794
  }
566
795
 
796
+ function IconStar(props) {
797
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
798
+ "path",
799
+ {
800
+ 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",
801
+ fill: "currentColor"
802
+ }
803
+ ) });
804
+ }
805
+
806
+ function IconSticker(props) {
807
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 12", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
808
+ "path",
809
+ {
810
+ 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",
811
+ fill: "currentColor"
812
+ }
813
+ ) });
814
+ }
815
+
816
+ function IconStop(props) {
817
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
818
+ "path",
819
+ {
820
+ 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",
821
+ fill: "currentColor"
822
+ }
823
+ ) });
824
+ }
825
+
826
+ function IconSwitch(props) {
827
+ return /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "none", ...props, children: [
828
+ /* @__PURE__ */ jsxRuntime.jsx(
829
+ "path",
830
+ {
831
+ 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",
832
+ fill: "currentColor"
833
+ }
834
+ ),
835
+ /* @__PURE__ */ jsxRuntime.jsx(
836
+ "path",
837
+ {
838
+ 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",
839
+ fill: "currentColor"
840
+ }
841
+ )
842
+ ] });
843
+ }
844
+
567
845
  function IconTelegram(props) {
568
846
  return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
569
847
  "path",
@@ -606,6 +884,21 @@ function IconXMarkSmall(props) {
606
884
  }
607
885
  IconXMark.Small = IconXMarkSmall;
608
886
 
887
+ function IconXMarkCircle(props) {
888
+ return /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
889
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "10", fill: "white" }),
890
+ /* @__PURE__ */ jsxRuntime.jsx(
891
+ "path",
892
+ {
893
+ fillRule: "evenodd",
894
+ clipRule: "evenodd",
895
+ 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",
896
+ fill: "currentColor"
897
+ }
898
+ )
899
+ ] });
900
+ }
901
+
609
902
  function IconYandex(props) {
610
903
  return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
611
904
  "path",
@@ -619,7 +912,7 @@ function IconYandex(props) {
619
912
  const breadcrumbs = "_breadcrumbs_1bfmb_2";
620
913
  const breadcrumbsItem = "_breadcrumbsItem_1bfmb_8";
621
914
  const defaultSeparator = "_defaultSeparator_1bfmb_14";
622
- const styles$r = {
915
+ const styles$s = {
623
916
  breadcrumbs: breadcrumbs,
624
917
  breadcrumbsItem: breadcrumbsItem,
625
918
  defaultSeparator: defaultSeparator
@@ -668,7 +961,7 @@ function Slot({
668
961
  }
669
962
 
670
963
  const breadcrumbItem = "_breadcrumbItem_cua4v_2";
671
- const styles$q = {
964
+ const styles$r = {
672
965
  breadcrumbItem: breadcrumbItem
673
966
  };
674
967
 
@@ -679,7 +972,7 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
679
972
  {
680
973
  "data-active": isActive,
681
974
  "data-disabled": props.disabled,
682
- className: classNames(styles$q.breadcrumbItem, className),
975
+ className: classNames(styles$r.breadcrumbItem, className),
683
976
  ...isActive && { "aria-current": "page" },
684
977
  ...!asChild && { type: "button" },
685
978
  ...props,
@@ -691,13 +984,13 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
691
984
  function Breadcrumbs({
692
985
  className,
693
986
  children,
694
- separator = /* @__PURE__ */ jsxRuntime.jsx(IconChevron, { className: styles$r.defaultSeparator })
987
+ separator = /* @__PURE__ */ jsxRuntime.jsx(IconChevron, { className: styles$s.defaultSeparator })
695
988
  }) {
696
989
  const childrenArray = Array.isArray(children) ? children : [children];
697
990
  const lastIndex = childrenArray.length - 1;
698
- return /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "breadcrumb", className, children: /* @__PURE__ */ jsxRuntime.jsx("ol", { className: styles$r.breadcrumbs, children: childrenArray.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(React.Fragment, { children: [
699
- /* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$r.breadcrumbsItem, children: item }),
700
- index < lastIndex && /* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$r.breadcrumbsItem, "aria-hidden": "true", children: separator })
991
+ return /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "breadcrumb", className, children: /* @__PURE__ */ jsxRuntime.jsx("ol", { className: styles$s.breadcrumbs, children: childrenArray.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(React.Fragment, { children: [
992
+ /* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$s.breadcrumbsItem, children: item }),
993
+ index < lastIndex && /* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$s.breadcrumbsItem, "aria-hidden": "true", children: separator })
701
994
  ] }, index)) }) });
702
995
  }
703
996
  Breadcrumbs.Item = BreadcrumbItem;
@@ -712,7 +1005,7 @@ const neutral$2 = "_neutral_cmbkj_78";
712
1005
  const lg$5 = "_lg_cmbkj_145";
713
1006
  const md$8 = "_md_cmbkj_153";
714
1007
  const sm$3 = "_sm_cmbkj_161";
715
- const styles$p = {
1008
+ const styles$q = {
716
1009
  button: button,
717
1010
  accent: accent$2,
718
1011
  primary: primary$1,
@@ -730,7 +1023,7 @@ const accent$1 = "_accent_o8iku_10";
730
1023
  const neutral$1 = "_neutral_o8iku_22";
731
1024
  const lg$4 = "_lg_o8iku_41";
732
1025
  const md$7 = "_md_o8iku_46";
733
- const styles$o = {
1026
+ const styles$p = {
734
1027
  buttonFunction: buttonFunction,
735
1028
  accent: accent$1,
736
1029
  neutral: neutral$1,
@@ -750,7 +1043,7 @@ function ButtonFunction({
750
1043
  return /* @__PURE__ */ jsxRuntime.jsx(
751
1044
  Component,
752
1045
  {
753
- className: classNames(styles$o.buttonFunction, styles$o[color], styles$o[size], className),
1046
+ className: classNames(styles$p.buttonFunction, styles$p[color], styles$p[size], className),
754
1047
  ...props.disabled && { "data-disabled": true },
755
1048
  ...!asChild && { type: "button" },
756
1049
  ...props,
@@ -772,7 +1065,7 @@ function Button({
772
1065
  return /* @__PURE__ */ jsxRuntime.jsx(
773
1066
  Component,
774
1067
  {
775
- className: classNames(styles$p.button, styles$p[color], styles$p[size], styles$p[mode], className),
1068
+ className: classNames(styles$q.button, styles$q[color], styles$q[size], styles$q[mode], className),
776
1069
  ...!asChild && { type: "button" },
777
1070
  ...props,
778
1071
  children
@@ -784,7 +1077,7 @@ Button.Function = ButtonFunction;
784
1077
  const checkboxWrapper = "_checkboxWrapper_k1shg_2";
785
1078
  const icon$2 = "_icon_k1shg_23";
786
1079
  const checkbox = "_checkbox_k1shg_2";
787
- const styles$n = {
1080
+ const styles$o = {
788
1081
  checkboxWrapper: checkboxWrapper,
789
1082
  icon: icon$2,
790
1083
  checkbox: checkbox
@@ -797,11 +1090,11 @@ function Checkbox({ className, label, indeterminate, ...props }) {
797
1090
  {
798
1091
  "data-disabled": `${Boolean(props.disabled)}`,
799
1092
  "data-state": dataState,
800
- className: classNames(styles$n.checkboxWrapper, className),
1093
+ className: classNames(styles$o.checkboxWrapper, className),
801
1094
  children: [
802
- dataState === "checked" && /* @__PURE__ */ jsxRuntime.jsx(IconCheck, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$n.icon }),
803
- dataState === "indeterminate" && /* @__PURE__ */ jsxRuntime.jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$n.icon }),
804
- /* @__PURE__ */ jsxRuntime.jsx("input", { "data-state": dataState, type: "checkbox", className: styles$n.checkbox, ...props }),
1095
+ dataState === "checked" && /* @__PURE__ */ jsxRuntime.jsx(IconCheck, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$o.icon }),
1096
+ dataState === "indeterminate" && /* @__PURE__ */ jsxRuntime.jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$o.icon }),
1097
+ /* @__PURE__ */ jsxRuntime.jsx("input", { "data-state": dataState, type: "checkbox", className: styles$o.checkbox, ...props }),
805
1098
  label
806
1099
  ]
807
1100
  }
@@ -809,7 +1102,7 @@ function Checkbox({ className, label, indeterminate, ...props }) {
809
1102
  }
810
1103
 
811
1104
  const chip = "_chip_dj4kw_2";
812
- const styles$m = {
1105
+ const styles$n = {
813
1106
  chip: chip
814
1107
  };
815
1108
 
@@ -817,7 +1110,7 @@ function Chip({ isSelected, children, className, disabled, ...props }) {
817
1110
  return /* @__PURE__ */ jsxRuntime.jsx(
818
1111
  "div",
819
1112
  {
820
- className: classNames(styles$m.chip, className),
1113
+ className: classNames(styles$n.chip, className),
821
1114
  "data-selected": isSelected,
822
1115
  "data-disabled": disabled,
823
1116
  "aria-disabled": disabled,
@@ -835,7 +1128,7 @@ const accent = "_accent_ww0fb_37";
835
1128
  const neutral = "_neutral_ww0fb_42";
836
1129
  const secondary$1 = "_secondary_ww0fb_47";
837
1130
  const white = "_white_ww0fb_52";
838
- const styles$l = {
1131
+ const styles$m = {
839
1132
  root: root$1,
840
1133
  lg: lg$3,
841
1134
  md: md$6,
@@ -847,7 +1140,7 @@ const styles$l = {
847
1140
  };
848
1141
 
849
1142
  function Counter({ className, size = "lg", color = "red", ...props }) {
850
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$l.root, styles$l[size], styles$l[color], className), ...props });
1143
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$m.root, styles$m[size], styles$m[color], className), ...props });
851
1144
  }
852
1145
 
853
1146
  const LOCALE_FIRST_DAY_OF_WEEK = {
@@ -857,7 +1150,7 @@ const LOCALE_FIRST_DAY_OF_WEEK = {
857
1150
 
858
1151
  const datePickerCellWrapper = "_datePickerCellWrapper_np1gx_2";
859
1152
  const datePickerCell = "_datePickerCell_np1gx_2";
860
- const styles$k = {
1153
+ const styles$l = {
861
1154
  datePickerCellWrapper: datePickerCellWrapper,
862
1155
  datePickerCell: datePickerCell,
863
1156
  "radius-none": "_radius-none_np1gx_83",
@@ -867,10 +1160,10 @@ const styles$k = {
867
1160
  };
868
1161
 
869
1162
  function DatePickerCell({ children, className, state, isCurrent, radius = "both", ...props }) {
870
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$k.datePickerCellWrapper, styles$k[`radius-${radius}`]), "data-state": state, children: /* @__PURE__ */ jsxRuntime.jsx(
1163
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$l.datePickerCellWrapper, styles$l[`radius-${radius}`]), "data-state": state, children: /* @__PURE__ */ jsxRuntime.jsx(
871
1164
  "button",
872
1165
  {
873
- className: classNames(styles$k.datePickerCell, styles$k[`radius-${radius}`], className),
1166
+ className: classNames(styles$l.datePickerCell, styles$l[`radius-${radius}`], className),
874
1167
  type: "button",
875
1168
  role: "gridcell",
876
1169
  "aria-selected": state === "selected",
@@ -927,7 +1220,7 @@ function getCalendarGrid(month, year, firstDayOfWeek) {
927
1220
  const datePickerField = "_datePickerField_1qk8s_2";
928
1221
  const datePickerFieldCalendar = "_datePickerFieldCalendar_1qk8s_8";
929
1222
  const datePickerFieldWeek = "_datePickerFieldWeek_1qk8s_14";
930
- const styles$j = {
1223
+ const styles$k = {
931
1224
  datePickerField: datePickerField,
932
1225
  datePickerFieldCalendar: datePickerFieldCalendar,
933
1226
  datePickerFieldWeek: datePickerFieldWeek
@@ -942,9 +1235,9 @@ function DatePickerField({
942
1235
  firstDayOfWeek = LOCALE_FIRST_DAY_OF_WEEK.ru
943
1236
  }) {
944
1237
  const weeks = React.useMemo(() => getCalendarGrid(month, year, firstDayOfWeek), [month, year, firstDayOfWeek]);
945
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$j.datePickerField, className), role: "grid", children: [
1238
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$k.datePickerField, className), role: "grid", children: [
946
1239
  renderWeekdays?.(),
947
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$j.datePickerFieldCalendar, role: "rowgroup", children: weeks.map((week, weekIndex) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$j.datePickerFieldWeek, role: "row", "aria-rowindex": weekIndex + 1, children: week.map((day, dayIndex) => /* @__PURE__ */ jsxRuntime.jsx(Slot, { role: "gridcell", "aria-colindex": dayIndex + 1, children: children(day) }, `${day.year}-${day.month}-${day.date}`)) }, weekIndex)) })
1240
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$k.datePickerFieldCalendar, role: "rowgroup", children: weeks.map((week, weekIndex) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$k.datePickerFieldWeek, role: "row", "aria-rowindex": weekIndex + 1, children: week.map((day, dayIndex) => /* @__PURE__ */ jsxRuntime.jsx(Slot, { role: "gridcell", "aria-colindex": dayIndex + 1, children: children(day) }, `${day.year}-${day.month}-${day.date}`)) }, weekIndex)) })
948
1241
  ] });
949
1242
  }
950
1243
 
@@ -985,13 +1278,13 @@ const I18N_MONTH_LABELS = {
985
1278
 
986
1279
  const datePickerWeekdays = "_datePickerWeekdays_p8tsm_2";
987
1280
  const datePickerWeekday = "_datePickerWeekday_p8tsm_2";
988
- const styles$i = {
1281
+ const styles$j = {
989
1282
  datePickerWeekdays: datePickerWeekdays,
990
1283
  datePickerWeekday: datePickerWeekday
991
1284
  };
992
1285
 
993
1286
  function DatePickerWeekDays({ className, locale = "ru" }) {
994
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$i.datePickerWeekdays, className), role: "row", children: I18N_WEEKDAY_LABELS[locale].map((label) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$i.datePickerWeekday, role: "columnheader", children: label }, label)) });
1287
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$j.datePickerWeekdays, className), role: "row", children: I18N_WEEKDAY_LABELS[locale].map((label) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$j.datePickerWeekday, role: "columnheader", children: label }, label)) });
995
1288
  }
996
1289
 
997
1290
  function DatePicker() {
@@ -1167,22 +1460,76 @@ function useDatePickerSelect() {
1167
1460
  };
1168
1461
  }
1169
1462
 
1463
+ const DROPDOWN_PORTAL_DEFAULT_OFFSET = 8;
1464
+
1465
+ const DROPDOWN_PORTAL_TRANSLATE_BY_ALIGN = {
1466
+ start: "0%",
1467
+ center: "-50%",
1468
+ end: "-100%"
1469
+ };
1470
+ const DROPDOWN_PORTAL_SIDE_CONFIG = {
1471
+ top: {
1472
+ sizeKey: "portalHeight",
1473
+ edgeKey: "topEdge",
1474
+ viewportKey: "top",
1475
+ nextPosition: "bottom",
1476
+ anchorKey: "top",
1477
+ anchorEdgeKey: "top",
1478
+ paddingKey: "paddingBottom",
1479
+ translateAxis: "x",
1480
+ fixedTranslate: "-100%"
1481
+ },
1482
+ right: {
1483
+ sizeKey: "portalWidth",
1484
+ edgeKey: "rightEdge",
1485
+ viewportKey: "right",
1486
+ nextPosition: "left",
1487
+ anchorKey: "left",
1488
+ anchorEdgeKey: "right",
1489
+ paddingKey: "paddingLeft",
1490
+ translateAxis: "y",
1491
+ fixedTranslate: "0%"
1492
+ },
1493
+ bottom: {
1494
+ sizeKey: "portalHeight",
1495
+ edgeKey: "bottomEdge",
1496
+ viewportKey: "bottom",
1497
+ nextPosition: "top",
1498
+ anchorKey: "top",
1499
+ anchorEdgeKey: "bottom",
1500
+ paddingKey: "paddingTop",
1501
+ translateAxis: "x",
1502
+ fixedTranslate: "0%"
1503
+ },
1504
+ left: {
1505
+ sizeKey: "portalWidth",
1506
+ edgeKey: "leftEdge",
1507
+ viewportKey: "left",
1508
+ nextPosition: "right",
1509
+ anchorKey: "left",
1510
+ anchorEdgeKey: "left",
1511
+ paddingKey: "paddingRight",
1512
+ translateAxis: "y",
1513
+ fixedTranslate: "-100%"
1514
+ }
1515
+ };
1516
+
1170
1517
  const dropdownContent = "_dropdownContent_12tkb_2";
1171
- const styles$h = {
1518
+ const styles$i = {
1172
1519
  dropdownContent: dropdownContent
1173
1520
  };
1174
1521
 
1175
1522
  function DropdownContent({ className, children, ...props }) {
1176
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$h.dropdownContent, className), ...props, children });
1523
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$i.dropdownContent, className), ...props, children });
1177
1524
  }
1178
1525
 
1179
1526
  const dropdownItem = "_dropdownItem_msc4i_2";
1180
- const styles$g = {
1527
+ const styles$h = {
1181
1528
  dropdownItem: dropdownItem
1182
1529
  };
1183
1530
 
1184
1531
  function DropdownItem({ className, children, disabled, ...props }) {
1185
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$g.dropdownItem, className), role: "menuitem", "data-disabled": disabled, ...props, children });
1532
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$h.dropdownItem, className), role: "menuitem", "data-disabled": disabled, ...props, children });
1186
1533
  }
1187
1534
 
1188
1535
  const CLICK_OUTSIDE_IGNORE_DATA_NAME = "data-clickoutside-ignore";
@@ -1215,6 +1562,8 @@ function useClickOutside(refs, callback) {
1215
1562
 
1216
1563
  function DropdownMenuProvider({ children }) {
1217
1564
  const [isOpen, setIsOpen] = React.useState(false);
1565
+ const [triggerEvent, setTriggerEvent] = React.useState("click");
1566
+ const [portalPlacement, setPortalPlacement] = React.useState(null);
1218
1567
  const triggerRef = React.useRef(null);
1219
1568
  const portalRef = React.useRef(null);
1220
1569
  useClickOutside([portalRef, triggerRef], () => setIsOpen(false));
@@ -1225,9 +1574,13 @@ function DropdownMenuProvider({ children }) {
1225
1574
  isOpen,
1226
1575
  setIsOpen,
1227
1576
  triggerRef,
1228
- portalRef
1577
+ portalRef,
1578
+ triggerEvent,
1579
+ setTriggerEvent,
1580
+ portalPlacement,
1581
+ setPortalPlacement
1229
1582
  },
1230
- children: typeof children === "function" ? children({ isOpen, setIsOpen }) : children
1583
+ children: typeof children === "function" ? children({ isOpen, setIsOpen, portalPlacement }) : children
1231
1584
  }
1232
1585
  );
1233
1586
  }
@@ -1240,34 +1593,351 @@ function useDropdownMenuContext() {
1240
1593
  return context;
1241
1594
  }
1242
1595
 
1243
- const dropdownPortal = "_dropdownPortal_ne1k6_2";
1244
- const styles$f = {
1245
- dropdownPortal: dropdownPortal
1596
+ const getAxisAlign = ({ translateAxis, triggerPageRect, triggerCenter }) => {
1597
+ const axisAlign = {
1598
+ x: {
1599
+ start: triggerPageRect.left,
1600
+ center: triggerCenter.x,
1601
+ end: triggerPageRect.right
1602
+ },
1603
+ y: {
1604
+ start: triggerPageRect.top,
1605
+ center: triggerCenter.y,
1606
+ end: triggerPageRect.bottom
1607
+ }
1608
+ };
1609
+ return axisAlign[translateAxis];
1610
+ };
1611
+
1612
+ const getTriggerGeometry = (triggerRect, scrollCoords) => {
1613
+ const triggerWidth = triggerRect.width || triggerRect.right - triggerRect.left;
1614
+ const triggerHeight = triggerRect.height || triggerRect.bottom - triggerRect.top;
1615
+ const triggerPageRect = {
1616
+ top: triggerRect.top + scrollCoords.y,
1617
+ right: triggerRect.right + scrollCoords.x,
1618
+ bottom: triggerRect.bottom + scrollCoords.y,
1619
+ left: triggerRect.left + scrollCoords.x
1620
+ };
1621
+ const triggerCenter = {
1622
+ x: triggerPageRect.left + triggerWidth / 2,
1623
+ y: triggerPageRect.top + triggerHeight / 2
1624
+ };
1625
+ return { triggerPageRect, triggerCenter };
1626
+ };
1627
+
1628
+ const getTranslateBySide = (position, align) => {
1629
+ const sideConfig = DROPDOWN_PORTAL_SIDE_CONFIG[position];
1630
+ const translateByAlign = DROPDOWN_PORTAL_TRANSLATE_BY_ALIGN[align];
1631
+ const isAlignOnX = sideConfig.translateAxis === "x";
1632
+ return {
1633
+ "--dropdown-portal-translate-x": isAlignOnX ? translateByAlign : sideConfig.fixedTranslate,
1634
+ "--dropdown-portal-translate-y": isAlignOnX ? sideConfig.fixedTranslate : translateByAlign
1635
+ };
1636
+ };
1637
+ const getAnchorBySide = (position, triggerPageRect) => {
1638
+ const sideConfig = DROPDOWN_PORTAL_SIDE_CONFIG[position];
1639
+ return { [sideConfig.anchorKey]: triggerPageRect[sideConfig.anchorEdgeKey] };
1640
+ };
1641
+ const getOffsetPadding = (position, offset) => {
1642
+ const sideConfig = DROPDOWN_PORTAL_SIDE_CONFIG[position];
1643
+ return { [sideConfig.paddingKey]: `${offset}px` };
1644
+ };
1645
+ const getEdgeValueBySide = ({
1646
+ position,
1647
+ triggerRect,
1648
+ scrollCoords,
1649
+ portalWidth,
1650
+ portalHeight
1651
+ }) => {
1652
+ const sideConfig = DROPDOWN_PORTAL_SIDE_CONFIG[position];
1653
+ if (sideConfig.edgeKey === "rightEdge") {
1654
+ return triggerRect.right + scrollCoords.x + portalWidth;
1655
+ }
1656
+ if (sideConfig.edgeKey === "leftEdge") {
1657
+ return triggerRect.left + scrollCoords.x - portalWidth;
1658
+ }
1659
+ if (sideConfig.edgeKey === "bottomEdge") {
1660
+ return triggerRect.bottom + scrollCoords.y + portalHeight;
1661
+ }
1662
+ return triggerRect.top + scrollCoords.y - portalHeight;
1663
+ };
1664
+ const isEdgeOverflow = ({ edgeKey, edgeValue, viewportLimit }) => {
1665
+ if (edgeKey === "rightEdge" || edgeKey === "bottomEdge") {
1666
+ return edgeValue > viewportLimit;
1667
+ }
1668
+ return edgeValue < viewportLimit;
1246
1669
  };
1247
1670
 
1248
- function DropdownPortal({ children, className, align = "start", isNested }) {
1249
- const { isOpen, triggerRef, portalRef } = useDropdownMenuContext();
1250
- const [position, setPosition] = React.useState();
1671
+ function getPortalPosition({
1672
+ align,
1673
+ position,
1674
+ offset,
1675
+ scrollCoords,
1676
+ triggerRect
1677
+ }) {
1678
+ const { triggerPageRect, triggerCenter } = getTriggerGeometry(triggerRect, scrollCoords);
1679
+ const sideConfig = DROPDOWN_PORTAL_SIDE_CONFIG[position];
1680
+ const axisAlign = getAxisAlign({
1681
+ translateAxis: sideConfig.translateAxis,
1682
+ triggerPageRect,
1683
+ triggerCenter
1684
+ });
1685
+ const alignPosition = {
1686
+ x: {
1687
+ left: axisAlign[align]
1688
+ },
1689
+ y: {
1690
+ top: axisAlign[align]
1691
+ }
1692
+ };
1693
+ const portalPositionStyle = {
1694
+ ...getTranslateBySide(position, align),
1695
+ ...getAnchorBySide(position, triggerPageRect),
1696
+ ...alignPosition[sideConfig.translateAxis],
1697
+ ...getOffsetPadding(position, offset)
1698
+ };
1699
+ return portalPositionStyle;
1700
+ }
1701
+
1702
+ function handleDropdownMouseLeave(event, { ignoreRelatedTargetRef, setIsOpen }) {
1703
+ if (event.relatedTarget instanceof Node && ignoreRelatedTargetRef.current?.contains(event.relatedTarget)) {
1704
+ return;
1705
+ }
1706
+ setIsOpen(false);
1707
+ }
1708
+
1709
+ function usePortalHandlersByEventTrigger() {
1710
+ const { triggerRef, setIsOpen } = useDropdownMenuContext();
1711
+ const handlePortalBlur = React.useCallback(
1712
+ (event) => {
1713
+ const relatedTarget = event.relatedTarget;
1714
+ if (!(relatedTarget instanceof Node)) {
1715
+ setIsOpen(false);
1716
+ return;
1717
+ }
1718
+ if (event.currentTarget.contains(relatedTarget) || triggerRef.current?.contains(relatedTarget)) {
1719
+ return;
1720
+ }
1721
+ setIsOpen(false);
1722
+ },
1723
+ [setIsOpen, triggerRef]
1724
+ );
1725
+ const portalHandlersByEvent = React.useMemo(
1726
+ () => ({
1727
+ click: {},
1728
+ hover: {
1729
+ onMouseLeave: (event) => handleDropdownMouseLeave(event, {
1730
+ ignoreRelatedTargetRef: triggerRef,
1731
+ setIsOpen
1732
+ }),
1733
+ onBlur: handlePortalBlur
1734
+ }
1735
+ }),
1736
+ [handlePortalBlur, setIsOpen, triggerRef]
1737
+ );
1738
+ return portalHandlersByEvent;
1739
+ }
1740
+
1741
+ const getAdjustedAlign = ({
1742
+ align,
1743
+ translateAxis,
1744
+ portalWidth,
1745
+ portalHeight,
1746
+ triggerPageRect,
1747
+ triggerCenter,
1748
+ viewportPosition
1749
+ }) => {
1750
+ const isAlignedOnX = translateAxis === "x";
1751
+ const portalSize = isAlignedOnX ? portalWidth : portalHeight;
1752
+ if (!portalSize) {
1753
+ return align;
1754
+ }
1755
+ const axisAlign = getAxisAlign({ translateAxis, triggerPageRect, triggerCenter });
1756
+ const viewportStart = isAlignedOnX ? viewportPosition.left : viewportPosition.top;
1757
+ const viewportEnd = isAlignedOnX ? viewportPosition.right : viewportPosition.bottom;
1758
+ let portalStart = axisAlign.start;
1759
+ if (align === "center") {
1760
+ portalStart = axisAlign.center - portalSize / 2;
1761
+ }
1762
+ if (align === "end") {
1763
+ portalStart = axisAlign.end - portalSize;
1764
+ }
1765
+ const portalEnd = portalStart + portalSize;
1766
+ const isStartOverflow = portalStart < viewportStart;
1767
+ const isEndOverflow = portalEnd > viewportEnd;
1768
+ if (align === "start" && isEndOverflow && !isStartOverflow) {
1769
+ return "end";
1770
+ }
1771
+ if (align === "end" && isStartOverflow && !isEndOverflow) {
1772
+ return "start";
1773
+ }
1774
+ if (align === "center" && isStartOverflow !== isEndOverflow) {
1775
+ return isStartOverflow ? "start" : "end";
1776
+ }
1777
+ return align;
1778
+ };
1779
+
1780
+ const getAdjustedPosition = ({
1781
+ position,
1782
+ portalWidth,
1783
+ portalHeight,
1784
+ triggerRect,
1785
+ scrollCoords,
1786
+ viewportPosition
1787
+ }) => {
1788
+ const sideConfig = DROPDOWN_PORTAL_SIDE_CONFIG[position];
1789
+ const portalSize = sideConfig.sizeKey === "portalWidth" ? portalWidth : portalHeight;
1790
+ const edgeValue = getEdgeValueBySide({
1791
+ position,
1792
+ triggerRect,
1793
+ scrollCoords,
1794
+ portalWidth,
1795
+ portalHeight
1796
+ });
1797
+ const viewportLimit = viewportPosition[sideConfig.viewportKey];
1798
+ const isOverflow = isEdgeOverflow({ edgeKey: sideConfig.edgeKey, edgeValue, viewportLimit });
1799
+ return portalSize && isOverflow ? sideConfig.nextPosition : position;
1800
+ };
1801
+
1802
+ function getAdjustedPlacement({
1803
+ align,
1804
+ position,
1805
+ viewportPosition,
1806
+ portalWidth = 0,
1807
+ portalHeight = 0,
1808
+ scrollCoords,
1809
+ triggerRect
1810
+ }) {
1811
+ const adjustedPosition = getAdjustedPosition({
1812
+ position,
1813
+ viewportPosition,
1814
+ portalWidth,
1815
+ portalHeight,
1816
+ scrollCoords,
1817
+ triggerRect
1818
+ });
1819
+ const { triggerPageRect, triggerCenter } = getTriggerGeometry(triggerRect, scrollCoords);
1820
+ const sideConfig = DROPDOWN_PORTAL_SIDE_CONFIG[position];
1821
+ const adjustedAlign = getAdjustedAlign({
1822
+ align,
1823
+ translateAxis: sideConfig.translateAxis,
1824
+ portalWidth,
1825
+ portalHeight,
1826
+ triggerPageRect,
1827
+ triggerCenter,
1828
+ viewportPosition
1829
+ });
1830
+ return { position: adjustedPosition, align: adjustedAlign };
1831
+ }
1832
+
1833
+ function usePortalPosition({ align, position, offset, portalWidth, portalHeight }) {
1834
+ const { isOpen, triggerRef, setPortalPlacement } = useDropdownMenuContext();
1835
+ const [portalPosition, setPortalPosition] = React.useState();
1251
1836
  React.useEffect(() => {
1252
1837
  if (isOpen && triggerRef.current) {
1253
1838
  const triggerRect = triggerRef.current.getBoundingClientRect();
1254
- setPosition({
1255
- top: triggerRect.bottom + window.scrollY,
1256
- ...align === "start" ? { left: triggerRect.left + window.scrollX } : {},
1257
- ...align === "end" ? { right: triggerRect.left + window.scrollX } : {}
1839
+ const scrollCoords = {
1840
+ x: window.scrollX,
1841
+ y: window.scrollY
1842
+ };
1843
+ const viewportPosition = {
1844
+ left: scrollCoords.x,
1845
+ right: scrollCoords.x + window.innerWidth,
1846
+ top: scrollCoords.y,
1847
+ bottom: scrollCoords.y + window.innerHeight
1848
+ };
1849
+ const { position: adjustedPosition, align: adjustedAlign } = getAdjustedPlacement({
1850
+ align,
1851
+ position,
1852
+ viewportPosition,
1853
+ portalWidth,
1854
+ portalHeight,
1855
+ scrollCoords,
1856
+ triggerRect
1857
+ });
1858
+ setPortalPlacement({ position: adjustedPosition, align: adjustedAlign });
1859
+ const newPortalPosition = getPortalPosition({
1860
+ align: adjustedAlign,
1861
+ position: adjustedPosition,
1862
+ offset,
1863
+ triggerRect,
1864
+ scrollCoords
1258
1865
  });
1866
+ setPortalPosition(newPortalPosition);
1259
1867
  }
1260
- }, [align, isOpen, triggerRef]);
1261
- if (!isOpen || !position) {
1868
+ }, [align, isOpen, offset, portalHeight, portalWidth, position, setPortalPlacement, triggerRef]);
1869
+ return portalPosition;
1870
+ }
1871
+
1872
+ function useTriggerHandlersByEventTrigger() {
1873
+ const { setIsOpen, portalRef } = useDropdownMenuContext();
1874
+ const handleTriggerBlur = React.useCallback(
1875
+ (event) => {
1876
+ const relatedTarget = event.relatedTarget;
1877
+ if (relatedTarget instanceof Node && portalRef.current?.contains(relatedTarget)) {
1878
+ return;
1879
+ }
1880
+ setIsOpen(false);
1881
+ },
1882
+ [portalRef, setIsOpen]
1883
+ );
1884
+ const triggerHandlersByEvent = React.useMemo(
1885
+ () => ({
1886
+ click: { onClick: () => setIsOpen((prev) => !prev) },
1887
+ hover: {
1888
+ onMouseEnter: () => setIsOpen(true),
1889
+ onMouseLeave: (event) => handleDropdownMouseLeave(event, {
1890
+ ignoreRelatedTargetRef: portalRef,
1891
+ setIsOpen
1892
+ }),
1893
+ onFocus: () => setIsOpen(true),
1894
+ onBlur: handleTriggerBlur
1895
+ }
1896
+ }),
1897
+ [handleTriggerBlur, setIsOpen, portalRef]
1898
+ );
1899
+ return triggerHandlersByEvent;
1900
+ }
1901
+
1902
+ const dropdownPortal = "_dropdownPortal_p3tdk_2";
1903
+ const styles$g = {
1904
+ dropdownPortal: dropdownPortal
1905
+ };
1906
+
1907
+ function DropdownPortal({
1908
+ children,
1909
+ className,
1910
+ align = "start",
1911
+ position = "bottom",
1912
+ isNested,
1913
+ offset = DROPDOWN_PORTAL_DEFAULT_OFFSET,
1914
+ maxWidth,
1915
+ maxHeight
1916
+ }) {
1917
+ const { portalRef, triggerEvent, isOpen } = useDropdownMenuContext();
1918
+ const handlersByTrigger = usePortalHandlersByEventTrigger();
1919
+ const portalPosition = usePortalPosition({
1920
+ align,
1921
+ position,
1922
+ offset,
1923
+ ...maxWidth && { portalWidth: maxWidth + offset },
1924
+ ...maxHeight && { portalHeight: maxHeight + offset }
1925
+ });
1926
+ if (!isOpen || !portalPosition) {
1262
1927
  return null;
1263
1928
  }
1264
1929
  return reactDom.createPortal(
1265
1930
  /* @__PURE__ */ jsxRuntime.jsx(
1266
1931
  "div",
1267
1932
  {
1268
- style: position,
1933
+ style: {
1934
+ ...portalPosition,
1935
+ ...maxWidth && { "--dropdown-portal-max-width": `${maxWidth + offset}px` },
1936
+ ...maxHeight && { "--dropdown-portal-max-height": `${maxHeight + offset}px` }
1937
+ },
1269
1938
  ref: portalRef,
1270
- className: classNames(styles$f.dropdownPortal, className),
1939
+ className: classNames(styles$g.dropdownPortal, className),
1940
+ ...handlersByTrigger[triggerEvent],
1271
1941
  ...isNested && { [CLICK_OUTSIDE_IGNORE_DATA_NAME]: "true" },
1272
1942
  children
1273
1943
  }
@@ -1280,10 +1950,24 @@ function DropdownRoot({ children }) {
1280
1950
  return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuProvider, { children });
1281
1951
  }
1282
1952
 
1283
- function DropdownTrigger({ children, asChild, ...props }) {
1284
- const { triggerRef, setIsOpen, isOpen } = useDropdownMenuContext();
1953
+ function DropdownTrigger({ children, asChild, triggerEvent = "click", ...props }) {
1954
+ const { triggerRef, isOpen, setTriggerEvent } = useDropdownMenuContext();
1955
+ const handlersByTrigger = useTriggerHandlersByEventTrigger();
1956
+ React.useEffect(() => {
1957
+ setTriggerEvent(triggerEvent);
1958
+ }, [setTriggerEvent, triggerEvent]);
1285
1959
  const Trigger = asChild ? Slot : "button";
1286
- return /* @__PURE__ */ jsxRuntime.jsx(Trigger, { ref: triggerRef, onClick: () => setIsOpen(!isOpen), "aria-expanded": isOpen, "aria-haspopup": "menu", ...props, children });
1960
+ return /* @__PURE__ */ jsxRuntime.jsx(
1961
+ Trigger,
1962
+ {
1963
+ ref: triggerRef,
1964
+ "aria-expanded": isOpen,
1965
+ "aria-haspopup": "menu",
1966
+ ...handlersByTrigger[triggerEvent],
1967
+ ...props,
1968
+ children
1969
+ }
1970
+ );
1287
1971
  }
1288
1972
 
1289
1973
  function DropdownMenu() {
@@ -1305,7 +1989,7 @@ const BOUNDARY_PAGES = 2;
1305
1989
  const paginationItem = "_paginationItem_1ll6p_2";
1306
1990
  const md$5 = "_md_1ll6p_46";
1307
1991
  const sm$2 = "_sm_1ll6p_60";
1308
- const styles$e = {
1992
+ const styles$f = {
1309
1993
  paginationItem: paginationItem,
1310
1994
  md: md$5,
1311
1995
  sm: sm$2
@@ -1317,7 +2001,7 @@ function PaginationItem({ className, children, size = "md", isCurrent, ...props
1317
2001
  {
1318
2002
  type: "button",
1319
2003
  ...isCurrent && { "aria-current": "page" },
1320
- className: classNames(styles$e.paginationItem, styles$e[size], className),
2004
+ className: classNames(styles$f.paginationItem, styles$f[size], className),
1321
2005
  ...props,
1322
2006
  children
1323
2007
  }
@@ -1354,7 +2038,7 @@ function getVisiblePages(totalPages, maxVisiblePagesWithEllipsis, currentPage) {
1354
2038
  const paginationRoot = "_paginationRoot_c5fwx_2";
1355
2039
  const paginationList = "_paginationList_c5fwx_7";
1356
2040
  const arrowLeft = "_arrowLeft_c5fwx_13";
1357
- const styles$d = {
2041
+ const styles$e = {
1358
2042
  paginationRoot: paginationRoot,
1359
2043
  paginationList: paginationList,
1360
2044
  arrowLeft: arrowLeft
@@ -1381,9 +2065,9 @@ function PaginationRoot({
1381
2065
  {
1382
2066
  "aria-label": "pagination navigation",
1383
2067
  role: "navigation",
1384
- className: classNames(styles$d.paginationRoot, className),
2068
+ className: classNames(styles$e.paginationRoot, className),
1385
2069
  ...props,
1386
- children: /* @__PURE__ */ jsxRuntime.jsxs("ul", { className: styles$d.paginationList, children: [
2070
+ children: /* @__PURE__ */ jsxRuntime.jsxs("ul", { className: styles$e.paginationList, children: [
1387
2071
  showArrows && /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(
1388
2072
  PaginationItem$1,
1389
2073
  {
@@ -1391,7 +2075,7 @@ function PaginationRoot({
1391
2075
  onClick: () => onPageChange(currentPage - 1),
1392
2076
  disabled: isFirstPage,
1393
2077
  size,
1394
- children: /* @__PURE__ */ jsxRuntime.jsx(IconChevron$1, { className: styles$d.arrowLeft })
2078
+ children: /* @__PURE__ */ jsxRuntime.jsx(IconChevron$1, { className: styles$e.arrowLeft })
1395
2079
  }
1396
2080
  ) }),
1397
2081
  visiblePages.map((page, index) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: page === ELLIPSIS_SYMBOL ? /* @__PURE__ */ jsxRuntime.jsx(PaginationItem$1, { "aria-label": "More pages", disabled: true, size, children: /* @__PURE__ */ jsxRuntime.jsx(Ellipsis, {}) }) : /* @__PURE__ */ jsxRuntime.jsx(
@@ -1431,7 +2115,7 @@ const fill = "_fill_33gbh_23";
1431
2115
  const trail = "_trail_33gbh_28";
1432
2116
  const sm$1 = "_sm_33gbh_32";
1433
2117
  const md$4 = "_md_33gbh_36";
1434
- const styles$c = {
2118
+ const styles$d = {
1435
2119
  root: root,
1436
2120
  segment: segment,
1437
2121
  flexGrow: flexGrow,
@@ -1452,7 +2136,7 @@ function ProgressBarLinear({
1452
2136
  return /* @__PURE__ */ jsxRuntime.jsxs(
1453
2137
  "div",
1454
2138
  {
1455
- className: classNames(styles$c.root, styles$c[size], className),
2139
+ className: classNames(styles$d.root, styles$d[size], className),
1456
2140
  role: "progressbar",
1457
2141
  "aria-valuenow": clampedPercent,
1458
2142
  "aria-valuemin": 0,
@@ -1464,14 +2148,14 @@ function ProgressBarLinear({
1464
2148
  (Boolean(clampedPercent) || showFillOnZero) && /* @__PURE__ */ jsxRuntime.jsx(
1465
2149
  "div",
1466
2150
  {
1467
- className: classNames(styles$c.segment, styles$c.fill),
2151
+ className: classNames(styles$d.segment, styles$d.fill),
1468
2152
  style: {
1469
2153
  "--clamped-percent": `${clampedPercent}%`
1470
2154
  },
1471
2155
  "aria-hidden": "true"
1472
2156
  }
1473
2157
  ),
1474
- clampedPercent < 100 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$c.segment, styles$c.flexGrow, styles$c.trail), "aria-hidden": "true" })
2158
+ clampedPercent < 100 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$d.segment, styles$d.flexGrow, styles$d.trail), "aria-hidden": "true" })
1475
2159
  ]
1476
2160
  }
1477
2161
  );
@@ -1491,7 +2175,7 @@ function ProgressBarSteps({
1491
2175
  return /* @__PURE__ */ jsxRuntime.jsx(
1492
2176
  "div",
1493
2177
  {
1494
- className: classNames(styles$c.segment, styles$c.flexGrow, isFilled ? styles$c.fill : styles$c.trail),
2178
+ className: classNames(styles$d.segment, styles$d.flexGrow, isFilled ? styles$d.fill : styles$d.trail),
1495
2179
  "aria-hidden": "true"
1496
2180
  },
1497
2181
  index
@@ -1500,7 +2184,7 @@ function ProgressBarSteps({
1500
2184
  return /* @__PURE__ */ jsxRuntime.jsx(
1501
2185
  "div",
1502
2186
  {
1503
- className: classNames(styles$c.root, styles$c[size], className),
2187
+ className: classNames(styles$d.root, styles$d[size], className),
1504
2188
  role: "progressbar",
1505
2189
  "aria-valuenow": clampedCurrent,
1506
2190
  "aria-valuemin": 0,
@@ -1520,14 +2204,14 @@ ProgressBar.Steps = ProgressBarSteps;
1520
2204
 
1521
2205
  const radioWrapper = "_radioWrapper_13xie_2";
1522
2206
  const radio = "_radio_13xie_2";
1523
- const styles$b = {
2207
+ const styles$c = {
1524
2208
  radioWrapper: radioWrapper,
1525
2209
  radio: radio
1526
2210
  };
1527
2211
 
1528
2212
  function RadioButton({ className, label, ...props }) {
1529
- return /* @__PURE__ */ jsxRuntime.jsxs("label", { "data-disabled": `${Boolean(props.disabled)}`, className: classNames(styles$b.radioWrapper, className), children: [
1530
- /* @__PURE__ */ jsxRuntime.jsx("input", { type: "radio", className: styles$b.radio, ...props }),
2213
+ return /* @__PURE__ */ jsxRuntime.jsxs("label", { "data-disabled": `${Boolean(props.disabled)}`, className: classNames(styles$c.radioWrapper, className), children: [
2214
+ /* @__PURE__ */ jsxRuntime.jsx("input", { type: "radio", className: styles$c.radio, ...props }),
1531
2215
  label
1532
2216
  ] });
1533
2217
  }
@@ -1538,7 +2222,7 @@ const textFieldAreaWrapper = "_textFieldAreaWrapper_90dha_2";
1538
2222
  const textFieldAreaLabel = "_textFieldAreaLabel_90dha_15";
1539
2223
  const textFieldAreaLabelSuffix = "_textFieldAreaLabelSuffix_90dha_24";
1540
2224
  const textFieldArea = "_textFieldArea_90dha_2";
1541
- const styles$a = {
2225
+ const styles$b = {
1542
2226
  textFieldAreaWrapper: textFieldAreaWrapper,
1543
2227
  textFieldAreaLabel: textFieldAreaLabel,
1544
2228
  textFieldAreaLabelSuffix: textFieldAreaLabelSuffix,
@@ -1559,14 +2243,14 @@ function TextFieldArea({
1559
2243
  "data-invalid": isInvalid,
1560
2244
  "aria-invalid": isInvalid,
1561
2245
  "data-element": "field",
1562
- className: classNames(styles$a.textFieldArea, className),
2246
+ className: classNames(styles$b.textFieldArea, className),
1563
2247
  placeholder,
1564
2248
  ...props
1565
2249
  }
1566
2250
  );
1567
- return floatingLabel ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$a.textFieldAreaWrapper, children: [
1568
- /* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: props.id, className: styles$a.textFieldAreaLabel, "data-element": "label", children: floatingLabel }),
1569
- floatingLabelSuffix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$a.textFieldAreaLabelSuffix, "data-element": "label-suffix", children: floatingLabelSuffix }),
2251
+ return floatingLabel ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$b.textFieldAreaWrapper, children: [
2252
+ /* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: props.id, className: styles$b.textFieldAreaLabel, "data-element": "label", children: floatingLabel }),
2253
+ floatingLabelSuffix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$b.textFieldAreaLabelSuffix, "data-element": "label-suffix", children: floatingLabelSuffix }),
1570
2254
  textFieldArea
1571
2255
  ] }) : textFieldArea;
1572
2256
  }
@@ -1574,7 +2258,7 @@ function TextFieldArea({
1574
2258
  const textFieldInputWrapper = "_textFieldInputWrapper_4dexk_2";
1575
2259
  const textFieldInputLabel = "_textFieldInputLabel_4dexk_10";
1576
2260
  const textFieldInput = "_textFieldInput_4dexk_2";
1577
- const styles$9 = {
2261
+ const styles$a = {
1578
2262
  textFieldInputWrapper: textFieldInputWrapper,
1579
2263
  textFieldInputLabel: textFieldInputLabel,
1580
2264
  textFieldInput: textFieldInput
@@ -1593,37 +2277,37 @@ function TextFieldInput({
1593
2277
  "data-invalid": isInvalid,
1594
2278
  "aria-invalid": isInvalid,
1595
2279
  "data-element": "field",
1596
- className: classNames(styles$9.textFieldInput, className),
2280
+ className: classNames(styles$a.textFieldInput, className),
1597
2281
  placeholder,
1598
2282
  ...props
1599
2283
  }
1600
2284
  );
1601
- return floatingLabel ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$9.textFieldInputWrapper, children: [
1602
- /* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: props.id, className: styles$9.textFieldInputLabel, "data-element": "label", children: floatingLabel }),
2285
+ return floatingLabel ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$a.textFieldInputWrapper, children: [
2286
+ /* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: props.id, className: styles$a.textFieldInputLabel, "data-element": "label", children: floatingLabel }),
1603
2287
  textFieldInput
1604
2288
  ] }) : textFieldInput;
1605
2289
  }
1606
2290
 
1607
2291
  const textFieldLabel = "_textFieldLabel_1l2ya_1";
1608
- const styles$8 = {
2292
+ const styles$9 = {
1609
2293
  textFieldLabel: textFieldLabel
1610
2294
  };
1611
2295
 
1612
2296
  function TextFieldLabel({ className, children, isRequired, ...props }) {
1613
- return /* @__PURE__ */ jsxRuntime.jsx("label", { className: classNames(styles$8.textFieldLabel, className), "data-required": isRequired, ...props, children });
2297
+ return /* @__PURE__ */ jsxRuntime.jsx("label", { className: classNames(styles$9.textFieldLabel, className), "data-required": isRequired, ...props, children });
1614
2298
  }
1615
2299
 
1616
2300
  const textFieldRoot = "_textFieldRoot_1geya_2";
1617
2301
  const lg$2 = "_lg_1geya_38";
1618
2302
  const md$3 = "_md_1geya_68";
1619
- const styles$7 = {
2303
+ const styles$8 = {
1620
2304
  textFieldRoot: textFieldRoot,
1621
2305
  lg: lg$2,
1622
2306
  md: md$3
1623
2307
  };
1624
2308
 
1625
2309
  function TextFieldRoot({ className, size = "lg", ...props }) {
1626
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$7.textFieldRoot, styles$7[size], className), ...props });
2310
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$8.textFieldRoot, styles$8[size], className), ...props });
1627
2311
  }
1628
2312
 
1629
2313
  function TextField() {
@@ -1638,7 +2322,7 @@ const custom = "_custom_gh87y_15";
1638
2322
  const icon$1 = "_icon_gh87y_25";
1639
2323
  const inputCustomWrapper = "_inputCustomWrapper_gh87y_34";
1640
2324
  const customButton = "_customButton_gh87y_49";
1641
- const styles$6 = {
2325
+ const styles$7 = {
1642
2326
  search: search,
1643
2327
  "default": "_default_gh87y_10",
1644
2328
  custom: custom,
@@ -1663,7 +2347,7 @@ function Search(props) {
1663
2347
  value && /* @__PURE__ */ jsxRuntime.jsx(
1664
2348
  IconXMark.Small,
1665
2349
  {
1666
- className: styles$6.icon,
2350
+ className: styles$7.icon,
1667
2351
  "aria-label": "clear search",
1668
2352
  role: "button",
1669
2353
  onClick: () => onChange(""),
@@ -1671,13 +2355,13 @@ function Search(props) {
1671
2355
  }
1672
2356
  )
1673
2357
  ] });
1674
- return /* @__PURE__ */ jsxRuntime.jsxs(TextField.Root, { size: "md", className: classNames(styles$6.search, styles$6[mode], className), children: [
2358
+ return /* @__PURE__ */ jsxRuntime.jsxs(TextField.Root, { size: "md", className: classNames(styles$7.search, styles$7[mode], className), children: [
1675
2359
  mode === "default" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1676
- /* @__PURE__ */ jsxRuntime.jsx(IconSearch, { className: styles$6.icon, "data-element": "icon" }),
2360
+ /* @__PURE__ */ jsxRuntime.jsx(IconSearch, { className: styles$7.icon, "data-element": "icon" }),
1677
2361
  inputField
1678
2362
  ] }),
1679
2363
  mode === "custom" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1680
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$6.inputCustomWrapper, children: inputField }),
2364
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$7.inputCustomWrapper, children: inputField }),
1681
2365
  /* @__PURE__ */ jsxRuntime.jsx(
1682
2366
  "button",
1683
2367
  {
@@ -1685,11 +2369,11 @@ function Search(props) {
1685
2369
  type: "button",
1686
2370
  onClick: props.onSearch,
1687
2371
  "data-element": "custom-button",
1688
- className: styles$6.customButton,
2372
+ className: styles$7.customButton,
1689
2373
  style: {
1690
2374
  "--custom-button-width": `${props.buttonWidth ?? DEFAULT_CUSTOM_SEARCH_BUTTON_WIDTH}px`
1691
2375
  },
1692
- children: /* @__PURE__ */ jsxRuntime.jsx(IconSearch, { className: classNames(styles$6.icon), "data-element": "icon" })
2376
+ children: /* @__PURE__ */ jsxRuntime.jsx(IconSearch, { className: classNames(styles$7.icon), "data-element": "icon" })
1693
2377
  }
1694
2378
  )
1695
2379
  ] })
@@ -1715,7 +2399,7 @@ function useSegmentControlContext() {
1715
2399
  const segmentControlItem = "_segmentControlItem_178px_2";
1716
2400
  const lg$1 = "_lg_178px_23";
1717
2401
  const md$2 = "_md_178px_28";
1718
- const styles$5 = {
2402
+ const styles$6 = {
1719
2403
  segmentControlItem: segmentControlItem,
1720
2404
  lg: lg$1,
1721
2405
  md: md$2
@@ -1731,7 +2415,7 @@ function SegmentControlItem({ className, children, value, ...props }) {
1731
2415
  "aria-checked": value === activeValue,
1732
2416
  "data-state": value === activeValue ? "on" : "off",
1733
2417
  "data-value": value,
1734
- className: classNames(styles$5.segmentControlItem, styles$5[size], className),
2418
+ className: classNames(styles$6.segmentControlItem, styles$6[size], className),
1735
2419
  ...props,
1736
2420
  children
1737
2421
  }
@@ -1768,7 +2452,7 @@ const showAfterDelay = "_showAfterDelay_pulca_1";
1768
2452
  const lg = "_lg_pulca_19";
1769
2453
  const md$1 = "_md_pulca_23";
1770
2454
  const indicator$1 = "_indicator_pulca_28";
1771
- const styles$4 = {
2455
+ const styles$5 = {
1772
2456
  segmentControlRoot: segmentControlRoot,
1773
2457
  showAfterDelay: showAfterDelay,
1774
2458
  lg: lg,
@@ -1783,11 +2467,11 @@ function SegmentControlRoot({ className, children, value, size = "md", ...props
1783
2467
  {
1784
2468
  ref: rootRef,
1785
2469
  role: "radiogroup",
1786
- className: classNames(styles$4.segmentControlRoot, styles$4[size], className),
2470
+ className: classNames(styles$5.segmentControlRoot, styles$5[size], className),
1787
2471
  ...props,
1788
2472
  children: [
1789
2473
  children,
1790
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$4.indicator, styles$4[size]), style: indicatorStyle })
2474
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$5.indicator, styles$5[size]), style: indicatorStyle })
1791
2475
  ]
1792
2476
  }
1793
2477
  ) });
@@ -1800,7 +2484,7 @@ SegmentControl.Item = SegmentControlItem;
1800
2484
 
1801
2485
  const switchWrapper = "_switchWrapper_1yukb_2";
1802
2486
  const icon = "_icon_1yukb_25";
1803
- const styles$3 = {
2487
+ const styles$4 = {
1804
2488
  switchWrapper: switchWrapper,
1805
2489
  icon: icon,
1806
2490
  "switch": "_switch_1yukb_2"
@@ -1813,10 +2497,10 @@ function Switch({ className, label, indeterminate, ...props }) {
1813
2497
  {
1814
2498
  "data-disabled": `${Boolean(props.disabled)}`,
1815
2499
  "data-state": dataState,
1816
- className: classNames(styles$3.switchWrapper, className),
2500
+ className: classNames(styles$4.switchWrapper, className),
1817
2501
  children: [
1818
- dataState === "indeterminate" && /* @__PURE__ */ jsxRuntime.jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$3.icon }),
1819
- /* @__PURE__ */ jsxRuntime.jsx("input", { "data-state": dataState, type: "checkbox", role: "switch", className: styles$3.switch, ...props }),
2502
+ dataState === "indeterminate" && /* @__PURE__ */ jsxRuntime.jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$4.icon }),
2503
+ /* @__PURE__ */ jsxRuntime.jsx("input", { "data-state": dataState, type: "checkbox", role: "switch", className: styles$4.switch, ...props }),
1820
2504
  label
1821
2505
  ]
1822
2506
  }
@@ -1838,7 +2522,7 @@ function useTabsContext() {
1838
2522
  }
1839
2523
 
1840
2524
  const tabsItem = "_tabsItem_1o4cb_2";
1841
- const styles$2 = {
2525
+ const styles$3 = {
1842
2526
  tabsItem: tabsItem
1843
2527
  };
1844
2528
 
@@ -1852,7 +2536,7 @@ function TabsItem({ className, children, value, ...props }) {
1852
2536
  role: "tab",
1853
2537
  "aria-selected": Boolean(isActive),
1854
2538
  "data-value": value,
1855
- className: classNames(styles$2.tabsItem, className),
2539
+ className: classNames(styles$3.tabsItem, className),
1856
2540
  ...props,
1857
2541
  children
1858
2542
  }
@@ -1886,16 +2570,16 @@ function useActiveTab(value) {
1886
2570
 
1887
2571
  const tabsRoot = "_tabsRoot_1os90_8";
1888
2572
  const indicator = "_indicator_1os90_29";
1889
- const styles$1 = {
2573
+ const styles$2 = {
1890
2574
  tabsRoot: tabsRoot,
1891
2575
  indicator: indicator
1892
2576
  };
1893
2577
 
1894
2578
  function TabsRoot({ className, children, value, ...props }) {
1895
2579
  const { indicatorStyle, rootRef } = useActiveTab(value);
1896
- return /* @__PURE__ */ jsxRuntime.jsx(TabsProvider, { value: { value }, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: rootRef, role: "tablist", className: classNames(styles$1.tabsRoot, className), ...props, children: [
2580
+ return /* @__PURE__ */ jsxRuntime.jsx(TabsProvider, { value: { value }, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: rootRef, role: "tablist", className: classNames(styles$2.tabsRoot, className), ...props, children: [
1897
2581
  children,
1898
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$1.indicator, style: indicatorStyle })
2582
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$2.indicator, style: indicatorStyle })
1899
2583
  ] }) });
1900
2584
  }
1901
2585
 
@@ -1909,7 +2593,7 @@ const primary = "_primary_4y4oa_11";
1909
2593
  const secondary = "_secondary_4y4oa_19";
1910
2594
  const md = "_md_4y4oa_28";
1911
2595
  const sm = "_sm_4y4oa_34";
1912
- const styles = {
2596
+ const styles$1 = {
1913
2597
  tag: tag,
1914
2598
  primary: primary,
1915
2599
  secondary: secondary,
@@ -1921,7 +2605,7 @@ function Tag({ children, className, size = "md", mode = "primary", disabled, ...
1921
2605
  return /* @__PURE__ */ jsxRuntime.jsx(
1922
2606
  "div",
1923
2607
  {
1924
- className: classNames(styles.tag, styles[size], styles[mode], className),
2608
+ className: classNames(styles$1.tag, styles$1[size], styles$1[mode], className),
1925
2609
  "data-disabled": disabled,
1926
2610
  "aria-disabled": disabled,
1927
2611
  ...props,
@@ -1930,6 +2614,87 @@ function Tag({ children, className, size = "md", mode = "primary", disabled, ...
1930
2614
  );
1931
2615
  }
1932
2616
 
2617
+ const tooltipContent = "_tooltipContent_1267q_2";
2618
+ const tooltipTitle = "_tooltipTitle_1267q_96";
2619
+ const styles = {
2620
+ tooltipContent: tooltipContent,
2621
+ tooltipTitle: tooltipTitle
2622
+ };
2623
+
2624
+ function TooltipContent({
2625
+ className,
2626
+ role,
2627
+ title,
2628
+ description,
2629
+ arrowAlign,
2630
+ arrowPosition,
2631
+ arrowOffset,
2632
+ ...props
2633
+ }) {
2634
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2635
+ "div",
2636
+ {
2637
+ className: classNames(styles.tooltipContent, className),
2638
+ role: role ?? "tooltip",
2639
+ "data-align": arrowAlign,
2640
+ "data-position": arrowPosition,
2641
+ ...arrowOffset && {
2642
+ style: {
2643
+ "--tooltip-content-arrow-offset-inline": `${arrowOffset.inline}px`,
2644
+ "--tooltip-content-arrow-offset-block": `${arrowOffset.block}px`
2645
+ }
2646
+ },
2647
+ ...props,
2648
+ children: [
2649
+ title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.tooltipTitle, children: title }),
2650
+ description && /* @__PURE__ */ jsxRuntime.jsx("div", { children: description })
2651
+ ]
2652
+ }
2653
+ );
2654
+ }
2655
+
2656
+ const TOOLTIP_OFFSET = 8;
2657
+
2658
+ function TooltipRoot({
2659
+ children,
2660
+ align = "center",
2661
+ position = "top",
2662
+ triggerEvent = "hover",
2663
+ maxWidth,
2664
+ maxHeight,
2665
+ withoutArrow = false,
2666
+ ...tooltipContentProps
2667
+ }) {
2668
+ return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenu.Root, { children: ({ portalPlacement }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2669
+ /* @__PURE__ */ jsxRuntime.jsx(DropdownMenu.Trigger, { asChild: true, triggerEvent, children }),
2670
+ /* @__PURE__ */ jsxRuntime.jsx(
2671
+ DropdownMenu.Portal,
2672
+ {
2673
+ align,
2674
+ position,
2675
+ offset: TOOLTIP_OFFSET,
2676
+ maxWidth,
2677
+ maxHeight,
2678
+ children: /* @__PURE__ */ jsxRuntime.jsx(
2679
+ TooltipContent,
2680
+ {
2681
+ ...tooltipContentProps,
2682
+ ...!withoutArrow && {
2683
+ arrowAlign: portalPlacement?.align ?? "center",
2684
+ arrowPosition: portalPlacement?.position ?? "top"
2685
+ }
2686
+ }
2687
+ )
2688
+ }
2689
+ )
2690
+ ] }) });
2691
+ }
2692
+
2693
+ function Tooltip(props) {
2694
+ return /* @__PURE__ */ jsxRuntime.jsx(TooltipRoot, { ...props });
2695
+ }
2696
+ Tooltip.Content = TooltipContent;
2697
+
1933
2698
  exports.Badge = Badge;
1934
2699
  exports.BadgeTabs = BadgeTabs;
1935
2700
  exports.Breadcrumbs = Breadcrumbs;
@@ -1943,21 +2708,33 @@ exports.I18N_MONTH_LABELS = I18N_MONTH_LABELS;
1943
2708
  exports.I18N_WEEKDAY_LABELS = I18N_WEEKDAY_LABELS;
1944
2709
  exports.IconArrow = IconArrow;
1945
2710
  exports.IconArrowCircle = IconArrowCircle;
2711
+ exports.IconArrowCircleUp = IconArrowCircleUp;
1946
2712
  exports.IconArrowDiagonal = IconArrowDiagonal;
1947
2713
  exports.IconArrowUTurn = IconArrowUTurn;
2714
+ exports.IconBell = IconBell;
2715
+ exports.IconBox = IconBox;
1948
2716
  exports.IconCalendar = IconCalendar;
1949
2717
  exports.IconCharacteristic = IconCharacteristic;
1950
2718
  exports.IconCheck = IconCheck;
1951
2719
  exports.IconChevron = IconChevron;
1952
2720
  exports.IconChevronDouble = IconChevronDouble;
2721
+ exports.IconClock = IconClock;
1953
2722
  exports.IconCollapse = IconCollapse;
2723
+ exports.IconCopy = IconCopy;
2724
+ exports.IconDots = IconDots;
2725
+ exports.IconDownload = IconDownload;
1954
2726
  exports.IconEye = IconEye;
2727
+ exports.IconFace = IconFace;
2728
+ exports.IconFile = IconFile;
1955
2729
  exports.IconFilters = IconFilters;
1956
2730
  exports.IconGear = IconGear;
1957
2731
  exports.IconGoogle = IconGoogle;
2732
+ exports.IconHanger = IconHanger;
2733
+ exports.IconInfo = IconInfo;
1958
2734
  exports.IconLogOut = IconLogOut;
1959
2735
  exports.IconMail = IconMail;
1960
2736
  exports.IconMinus = IconMinus;
2737
+ exports.IconOneCircle = IconOneCircle;
1961
2738
  exports.IconPerson = IconPerson;
1962
2739
  exports.IconPhone = IconPhone;
1963
2740
  exports.IconPlus = IconPlus;
@@ -1965,12 +2742,19 @@ exports.IconPrize = IconPrize;
1965
2742
  exports.IconProject = IconProject;
1966
2743
  exports.IconQRCode = IconQRCode;
1967
2744
  exports.IconRequest = IconRequest;
2745
+ exports.IconResizeCorner = IconResizeCorner;
2746
+ exports.IconScan = IconScan;
1968
2747
  exports.IconSearch = IconSearch;
1969
2748
  exports.IconShopping = IconShopping;
1970
2749
  exports.IconSort = IconSort;
2750
+ exports.IconStar = IconStar;
2751
+ exports.IconSticker = IconSticker;
2752
+ exports.IconStop = IconStop;
2753
+ exports.IconSwitch = IconSwitch;
1971
2754
  exports.IconTelegram = IconTelegram;
1972
2755
  exports.IconVK = IconVK;
1973
2756
  exports.IconXMark = IconXMark;
2757
+ exports.IconXMarkCircle = IconXMarkCircle;
1974
2758
  exports.IconYandex = IconYandex;
1975
2759
  exports.LOCALE_FIRST_DAY_OF_WEEK = LOCALE_FIRST_DAY_OF_WEEK;
1976
2760
  exports.Pagination = Pagination;
@@ -1982,6 +2766,7 @@ exports.Switch = Switch;
1982
2766
  exports.Tabs = Tabs;
1983
2767
  exports.Tag = Tag;
1984
2768
  exports.TextField = TextField;
2769
+ exports.Tooltip = Tooltip;
1985
2770
  exports.useDatePickerControls = useDatePickerControls;
1986
2771
  exports.useDatePickerMultiSelect = useDatePickerMultiSelect;
1987
2772
  exports.useDatePickerSelect = useDatePickerSelect;