@pismo/marola 2.1.64 → 2.1.66

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.
Files changed (114) hide show
  1. package/dist/Button-CJaBSdv1.js +135 -0
  2. package/dist/ClassNameConfigurator-CVRWfyIa.js +847 -0
  3. package/dist/{ClickAwayListener-Z08peX_P.js → ClickAwayListener-BnYMO5Ki.js} +26 -33
  4. package/dist/Popup-D267EI4e.js +1338 -0
  5. package/dist/{Portal-DJapUCn6.js → Portal-BrGvxB96.js} +32 -36
  6. package/dist/RadioOption-DyRY8xlF.js +1094 -0
  7. package/dist/{Toggle-DcZTfLrC.js → Toggle-nnDfpqI1.js} +31 -31
  8. package/dist/assets/Checkbox.css +1 -1
  9. package/dist/assets/DropdownMenu.css +1 -1
  10. package/dist/assets/ToastCard.css +1 -1
  11. package/dist/assets/Toggle2.css +1 -1
  12. package/dist/combineHooksSlotProps-j-8UVeYo.js +86 -0
  13. package/dist/components/Alert/Alert.stories.d.ts +6 -6
  14. package/dist/components/Autocomplete/Autocomplete.d.ts +1 -1
  15. package/dist/components/Autocomplete/Autocomplete.js +311 -320
  16. package/dist/components/Autocomplete/Autocomplete.stories.d.ts +1 -1
  17. package/dist/components/Avatar/Avatar.stories.d.ts +4 -4
  18. package/dist/components/BankingCard/BankingCard.d.ts +0 -1
  19. package/dist/components/Button/Button.js +1 -1
  20. package/dist/components/Checkbox/Checkbox.js +56 -56
  21. package/dist/components/Checkbox/Checkbox.stories.d.ts +8 -8
  22. package/dist/components/Chip/Chip.js +3 -3
  23. package/dist/components/DatePicker/DatePicker.js +742 -639
  24. package/dist/components/DatePicker/DatePicker.stories.d.ts +8 -8
  25. package/dist/components/DatePicker/dateUtils.d.ts +2 -2
  26. package/dist/components/DatePicker/dateUtils.js +1 -1
  27. package/dist/components/DatePicker/keyboardNavigation.d.ts +1 -1
  28. package/dist/components/DatePicker/renderCalendarDays.js +1 -1
  29. package/dist/components/DatePicker/renderPeriodSelection.js +1 -1
  30. package/dist/components/Dialog/CloseIconButton.js +1 -1
  31. package/dist/components/Dialog/Dialog.js +372 -352
  32. package/dist/components/Dialog/Dialog.stories.d.ts +96 -135
  33. package/dist/components/DoubleAutocomplete/DoubleAutocomplete.d.ts +1 -1
  34. package/dist/components/DoubleAutocomplete/DoubleAutocomplete.js +2 -2
  35. package/dist/components/DoubleAutocomplete/DoubleAutocomplete.stories.d.ts +1 -1
  36. package/dist/components/DoubleInput/DoubleInput.stories.d.ts +1 -1
  37. package/dist/components/Draggable/Draggable.d.ts +0 -1
  38. package/dist/components/Draggable/Draggable.js +1 -1
  39. package/dist/components/Draggable/Draggable.stories.d.ts +2 -3
  40. package/dist/components/Draggable/useDraggable.js +1 -1
  41. package/dist/components/DropdownMenu/DropdownMenu.d.ts +3 -1
  42. package/dist/components/DropdownMenu/DropdownMenu.js +39 -34
  43. package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +6 -4
  44. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +4 -4
  45. package/dist/components/Icon/types.d.ts +1 -1
  46. package/dist/components/IconButton/IconButton.js +1 -1
  47. package/dist/components/Input/Input.js +335 -320
  48. package/dist/components/InputSearch/InputSearch.d.ts +31 -31
  49. package/dist/components/InputSearch/InputSearch.stories.d.ts +31 -31
  50. package/dist/components/Popover/Popover.d.ts +3 -3
  51. package/dist/components/Popover/Popover.js +2 -2
  52. package/dist/components/Popover/Popover.stories.d.ts +3 -3
  53. package/dist/components/Popover/PopoverBody.d.ts +0 -1
  54. package/dist/components/Popover/PopoverFooter.d.ts +0 -1
  55. package/dist/components/Popover/PopoverHeader.d.ts +0 -1
  56. package/dist/components/RadioButton/RadioButton.d.ts +0 -1
  57. package/dist/components/RadioButton/RadioButton.js +684 -769
  58. package/dist/components/RadioButton/RadioOption.d.ts +0 -1
  59. package/dist/components/RadioButton/RadioOption.js +3 -3
  60. package/dist/components/ResultContainer/ResultContainer.d.ts +0 -1
  61. package/dist/components/ResultContainer/ResultContainer.stories.d.ts +9 -9
  62. package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
  63. package/dist/components/ResultWithChips/ResultWithChips.stories.d.ts +9 -9
  64. package/dist/components/RowItem/RowItem.js +2 -2
  65. package/dist/components/Select/Select.js +625 -591
  66. package/dist/components/Skeleton/Skeleton.d.ts +0 -1
  67. package/dist/components/Snackbar/Snackbar.js +295 -239
  68. package/dist/components/Snackbar/Snackbar.stories.d.ts +113 -113
  69. package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -1
  70. package/dist/components/Table/Table.stories.d.ts +5 -5
  71. package/dist/components/Tabs/Tab.js +107 -98
  72. package/dist/components/Tabs/TabPanel.js +58 -55
  73. package/dist/components/Tabs/Tabs.js +246 -231
  74. package/dist/components/ToastCard/ToastCard.js +31 -31
  75. package/dist/components/Toggle/Toggle.js +147 -137
  76. package/dist/components/Toggle/Toggle.stories.d.ts +5 -5
  77. package/dist/components/ToggleGroup/Toggle.d.ts +0 -1
  78. package/dist/components/ToggleGroup/Toggle.js +2 -2
  79. package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
  80. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +1 -1
  81. package/dist/components/Tooltip/Tooltip.js +266 -325
  82. package/dist/components/Tooltip/Tooltip.stories.d.ts +4 -4
  83. package/dist/components/TransactionRow/TransactionRow.stories.d.ts +21 -21
  84. package/dist/contexts/DraggableProvider/DraggableProvider.d.ts +0 -1
  85. package/dist/contexts/DraggableProvider/DraggableProvider.js +1 -1
  86. package/dist/contexts/SnackbarProvider/SnackbarProvider.js +1 -1
  87. package/dist/{dayjs.min-ClQKmc--.js → dayjs.min-BtgZiFZY.js} +14 -14
  88. package/dist/getReactElementRef-iorwYm2A.js +19 -0
  89. package/dist/{index-1UpBa69h.js → index-ew-96uBP.js} +2129 -2128
  90. package/dist/isFocusVisible-CPZqtjv2.js +12 -0
  91. package/dist/main.js +2 -2
  92. package/dist/{ownerDocument-By592Iy6.js → ownerDocument-CU-LCrtd.js} +1 -1
  93. package/dist/react-BTbo_5A3.js +526 -0
  94. package/dist/setRef-Bo0HEdBB.js +6 -0
  95. package/dist/useButton-C2E_LFJp.js +90 -0
  96. package/dist/useControlled-BYdyS7Pn.js +31 -0
  97. package/dist/useId-CK6Kn3Tn.js +21 -0
  98. package/dist/useList-BLW78Lq7.js +446 -0
  99. package/dist/utils/draggable.d.ts +2 -2
  100. package/dist/utils/iconsList.js +118 -112
  101. package/package.json +1 -1
  102. package/dist/Button-BrEDdtHO.js +0 -130
  103. package/dist/Popup-Dffqo7wT.js +0 -1246
  104. package/dist/RadioOption-DYovqiwF.js +0 -720
  105. package/dist/combineHooksSlotProps-BhQ14uyD.js +0 -79
  106. package/dist/exactProp-SYjL19cU.js +0 -13
  107. package/dist/react-BvI-Sw9b.js +0 -509
  108. package/dist/useButton-CezPDte8.js +0 -105
  109. package/dist/useControlled-CCMYYdCM.js +0 -31
  110. package/dist/useId-BW-oWmul.js +0 -19
  111. package/dist/useIsFocusVisible-BH4IAdcw.js +0 -69
  112. package/dist/useList-nqLfZem8.js +0 -435
  113. package/dist/useSlotProps-CYHDC4TN.js +0 -834
  114. package/dist/useTimeout-DxF9kiZL.js +0 -36
@@ -1,1246 +0,0 @@
1
- import { g as jt, a as zt, b as It, u as Ut, _ as ut, c as Xt, d as Yt, e as Kt, P as x } from "./useSlotProps-CYHDC4TN.js";
2
- import * as b from "react";
3
- import { useLayoutEffect as Gt, useEffect as Jt } from "react";
4
- import { r as Qt } from "./index-1UpBa69h.js";
5
- import { jsx as Z } from "react/jsx-runtime";
6
- import { u as Zt } from "./useEnhancedEffect-CJGo-L3B.js";
7
- import { P as qt, H as gt } from "./Portal-DJapUCn6.js";
8
- const et = Math.min, z = Math.max, nt = Math.round, q = Math.floor, H = (t) => ({
9
- x: t,
10
- y: t
11
- }), te = {
12
- left: "right",
13
- right: "left",
14
- bottom: "top",
15
- top: "bottom"
16
- }, ee = {
17
- start: "end",
18
- end: "start"
19
- };
20
- function yt(t, e, o) {
21
- return z(t, et(e, o));
22
- }
23
- function st(t, e) {
24
- return typeof t == "function" ? t(e) : t;
25
- }
26
- function I(t) {
27
- return t.split("-")[0];
28
- }
29
- function ct(t) {
30
- return t.split("-")[1];
31
- }
32
- function Ot(t) {
33
- return t === "x" ? "y" : "x";
34
- }
35
- function At(t) {
36
- return t === "y" ? "height" : "width";
37
- }
38
- function lt(t) {
39
- return ["top", "bottom"].includes(I(t)) ? "y" : "x";
40
- }
41
- function Pt(t) {
42
- return Ot(lt(t));
43
- }
44
- function ne(t, e, o) {
45
- o === void 0 && (o = !1);
46
- const n = ct(t), i = Pt(t), s = At(i);
47
- let r = i === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
48
- return e.reference[s] > e.floating[s] && (r = ot(r)), [r, ot(r)];
49
- }
50
- function oe(t) {
51
- const e = ot(t);
52
- return [dt(t), e, dt(e)];
53
- }
54
- function dt(t) {
55
- return t.replace(/start|end/g, (e) => ee[e]);
56
- }
57
- function ie(t, e, o) {
58
- const n = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
59
- switch (t) {
60
- case "top":
61
- case "bottom":
62
- return o ? e ? i : n : e ? n : i;
63
- case "left":
64
- case "right":
65
- return e ? s : r;
66
- default:
67
- return [];
68
- }
69
- }
70
- function re(t, e, o, n) {
71
- const i = ct(t);
72
- let s = ie(I(t), o === "start", n);
73
- return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(dt)))), s;
74
- }
75
- function ot(t) {
76
- return t.replace(/left|right|bottom|top/g, (e) => te[e]);
77
- }
78
- function se(t) {
79
- return {
80
- top: 0,
81
- right: 0,
82
- bottom: 0,
83
- left: 0,
84
- ...t
85
- };
86
- }
87
- function ce(t) {
88
- return typeof t != "number" ? se(t) : {
89
- top: t,
90
- right: t,
91
- bottom: t,
92
- left: t
93
- };
94
- }
95
- function it(t) {
96
- const {
97
- x: e,
98
- y: o,
99
- width: n,
100
- height: i
101
- } = t;
102
- return {
103
- width: n,
104
- height: i,
105
- top: o,
106
- left: e,
107
- right: e + n,
108
- bottom: o + i,
109
- x: e,
110
- y: o
111
- };
112
- }
113
- function xt(t, e, o) {
114
- let {
115
- reference: n,
116
- floating: i
117
- } = t;
118
- const s = lt(e), r = Pt(e), c = At(r), l = I(e), f = s === "y", a = n.x + n.width / 2 - i.width / 2, u = n.y + n.height / 2 - i.height / 2, m = n[c] / 2 - i[c] / 2;
119
- let d;
120
- switch (l) {
121
- case "top":
122
- d = {
123
- x: a,
124
- y: n.y - i.height
125
- };
126
- break;
127
- case "bottom":
128
- d = {
129
- x: a,
130
- y: n.y + n.height
131
- };
132
- break;
133
- case "right":
134
- d = {
135
- x: n.x + n.width,
136
- y: u
137
- };
138
- break;
139
- case "left":
140
- d = {
141
- x: n.x - i.width,
142
- y: u
143
- };
144
- break;
145
- default:
146
- d = {
147
- x: n.x,
148
- y: n.y
149
- };
150
- }
151
- switch (ct(e)) {
152
- case "start":
153
- d[r] -= m * (o && f ? -1 : 1);
154
- break;
155
- case "end":
156
- d[r] += m * (o && f ? -1 : 1);
157
- break;
158
- }
159
- return d;
160
- }
161
- const le = async (t, e, o) => {
162
- const {
163
- placement: n = "bottom",
164
- strategy: i = "absolute",
165
- middleware: s = [],
166
- platform: r
167
- } = o, c = s.filter(Boolean), l = await (r.isRTL == null ? void 0 : r.isRTL(e));
168
- let f = await r.getElementRects({
169
- reference: t,
170
- floating: e,
171
- strategy: i
172
- }), {
173
- x: a,
174
- y: u
175
- } = xt(f, n, l), m = n, d = {}, h = 0;
176
- for (let g = 0; g < c.length; g++) {
177
- const {
178
- name: w,
179
- fn: p
180
- } = c[g], {
181
- x: y,
182
- y: R,
183
- data: C,
184
- reset: v
185
- } = await p({
186
- x: a,
187
- y: u,
188
- initialPlacement: n,
189
- placement: m,
190
- strategy: i,
191
- middlewareData: d,
192
- rects: f,
193
- platform: r,
194
- elements: {
195
- reference: t,
196
- floating: e
197
- }
198
- });
199
- a = y ?? a, u = R ?? u, d = {
200
- ...d,
201
- [w]: {
202
- ...d[w],
203
- ...C
204
- }
205
- }, v && h <= 50 && (h++, typeof v == "object" && (v.placement && (m = v.placement), v.rects && (f = v.rects === !0 ? await r.getElementRects({
206
- reference: t,
207
- floating: e,
208
- strategy: i
209
- }) : v.rects), {
210
- x: a,
211
- y: u
212
- } = xt(f, m, l)), g = -1);
213
- }
214
- return {
215
- x: a,
216
- y: u,
217
- placement: m,
218
- strategy: i,
219
- middlewareData: d
220
- };
221
- };
222
- async function St(t, e) {
223
- var o;
224
- e === void 0 && (e = {});
225
- const {
226
- x: n,
227
- y: i,
228
- platform: s,
229
- rects: r,
230
- elements: c,
231
- strategy: l
232
- } = t, {
233
- boundary: f = "clippingAncestors",
234
- rootBoundary: a = "viewport",
235
- elementContext: u = "floating",
236
- altBoundary: m = !1,
237
- padding: d = 0
238
- } = st(e, t), h = ce(d), w = c[m ? u === "floating" ? "reference" : "floating" : u], p = it(await s.getClippingRect({
239
- element: (o = await (s.isElement == null ? void 0 : s.isElement(w))) == null || o ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
240
- boundary: f,
241
- rootBoundary: a,
242
- strategy: l
243
- })), y = u === "floating" ? {
244
- x: n,
245
- y: i,
246
- width: r.floating.width,
247
- height: r.floating.height
248
- } : r.reference, R = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), C = await (s.isElement == null ? void 0 : s.isElement(R)) ? await (s.getScale == null ? void 0 : s.getScale(R)) || {
249
- x: 1,
250
- y: 1
251
- } : {
252
- x: 1,
253
- y: 1
254
- }, v = it(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
255
- elements: c,
256
- rect: y,
257
- offsetParent: R,
258
- strategy: l
259
- }) : y);
260
- return {
261
- top: (p.top - v.top + h.top) / C.y,
262
- bottom: (v.bottom - p.bottom + h.bottom) / C.y,
263
- left: (p.left - v.left + h.left) / C.x,
264
- right: (v.right - p.right + h.right) / C.x
265
- };
266
- }
267
- const fe = function(t) {
268
- return t === void 0 && (t = {}), {
269
- name: "flip",
270
- options: t,
271
- async fn(e) {
272
- var o, n;
273
- const {
274
- placement: i,
275
- middlewareData: s,
276
- rects: r,
277
- initialPlacement: c,
278
- platform: l,
279
- elements: f
280
- } = e, {
281
- mainAxis: a = !0,
282
- crossAxis: u = !0,
283
- fallbackPlacements: m,
284
- fallbackStrategy: d = "bestFit",
285
- fallbackAxisSideDirection: h = "none",
286
- flipAlignment: g = !0,
287
- ...w
288
- } = st(t, e);
289
- if ((o = s.arrow) != null && o.alignmentOffset)
290
- return {};
291
- const p = I(i), y = I(c) === c, R = await (l.isRTL == null ? void 0 : l.isRTL(f.floating)), C = m || (y || !g ? [ot(c)] : oe(c));
292
- !m && h !== "none" && C.push(...re(c, g, h, R));
293
- const v = [c, ...C], T = await St(e, w), P = [];
294
- let L = ((n = s.flip) == null ? void 0 : n.overflows) || [];
295
- if (a && P.push(T[p]), u) {
296
- const O = ne(i, r, R);
297
- P.push(T[O[0]], T[O[1]]);
298
- }
299
- if (L = [...L, {
300
- placement: i,
301
- overflows: P
302
- }], !P.every((O) => O <= 0)) {
303
- var j, _;
304
- const O = (((j = s.flip) == null ? void 0 : j.index) || 0) + 1, W = v[O];
305
- if (W)
306
- return {
307
- data: {
308
- index: O,
309
- overflows: L
310
- },
311
- reset: {
312
- placement: W
313
- }
314
- };
315
- let k = (_ = L.filter((A) => A.overflows[0] <= 0).sort((A, D) => A.overflows[1] - D.overflows[1])[0]) == null ? void 0 : _.placement;
316
- if (!k)
317
- switch (d) {
318
- case "bestFit": {
319
- var B;
320
- const A = (B = L.map((D) => [D.placement, D.overflows.filter((E) => E > 0).reduce((E, X) => E + X, 0)]).sort((D, E) => D[1] - E[1])[0]) == null ? void 0 : B[0];
321
- A && (k = A);
322
- break;
323
- }
324
- case "initialPlacement":
325
- k = c;
326
- break;
327
- }
328
- if (i !== k)
329
- return {
330
- reset: {
331
- placement: k
332
- }
333
- };
334
- }
335
- return {};
336
- }
337
- };
338
- };
339
- async function ae(t, e) {
340
- const {
341
- placement: o,
342
- platform: n,
343
- elements: i
344
- } = t, s = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), r = I(o), c = ct(o), l = lt(o) === "y", f = ["left", "top"].includes(r) ? -1 : 1, a = s && l ? -1 : 1, u = st(e, t);
345
- let {
346
- mainAxis: m,
347
- crossAxis: d,
348
- alignmentAxis: h
349
- } = typeof u == "number" ? {
350
- mainAxis: u,
351
- crossAxis: 0,
352
- alignmentAxis: null
353
- } : {
354
- mainAxis: 0,
355
- crossAxis: 0,
356
- alignmentAxis: null,
357
- ...u
358
- };
359
- return c && typeof h == "number" && (d = c === "end" ? h * -1 : h), l ? {
360
- x: d * a,
361
- y: m * f
362
- } : {
363
- x: m * f,
364
- y: d * a
365
- };
366
- }
367
- const ue = function(t) {
368
- return t === void 0 && (t = 0), {
369
- name: "offset",
370
- options: t,
371
- async fn(e) {
372
- var o, n;
373
- const {
374
- x: i,
375
- y: s,
376
- placement: r,
377
- middlewareData: c
378
- } = e, l = await ae(e, t);
379
- return r === ((o = c.offset) == null ? void 0 : o.placement) && (n = c.arrow) != null && n.alignmentOffset ? {} : {
380
- x: i + l.x,
381
- y: s + l.y,
382
- data: {
383
- ...l,
384
- placement: r
385
- }
386
- };
387
- }
388
- };
389
- }, de = function(t) {
390
- return t === void 0 && (t = {}), {
391
- name: "shift",
392
- options: t,
393
- async fn(e) {
394
- const {
395
- x: o,
396
- y: n,
397
- placement: i
398
- } = e, {
399
- mainAxis: s = !0,
400
- crossAxis: r = !1,
401
- limiter: c = {
402
- fn: (w) => {
403
- let {
404
- x: p,
405
- y
406
- } = w;
407
- return {
408
- x: p,
409
- y
410
- };
411
- }
412
- },
413
- ...l
414
- } = st(t, e), f = {
415
- x: o,
416
- y: n
417
- }, a = await St(e, l), u = lt(I(i)), m = Ot(u);
418
- let d = f[m], h = f[u];
419
- if (s) {
420
- const w = m === "y" ? "top" : "left", p = m === "y" ? "bottom" : "right", y = d + a[w], R = d - a[p];
421
- d = yt(y, d, R);
422
- }
423
- if (r) {
424
- const w = u === "y" ? "top" : "left", p = u === "y" ? "bottom" : "right", y = h + a[w], R = h - a[p];
425
- h = yt(y, h, R);
426
- }
427
- const g = c.fn({
428
- ...e,
429
- [m]: d,
430
- [u]: h
431
- });
432
- return {
433
- ...g,
434
- data: {
435
- x: g.x - o,
436
- y: g.y - n
437
- }
438
- };
439
- }
440
- };
441
- };
442
- function $(t) {
443
- return Lt(t) ? (t.nodeName || "").toLowerCase() : "#document";
444
- }
445
- function S(t) {
446
- var e;
447
- return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
448
- }
449
- function V(t) {
450
- var e;
451
- return (e = (Lt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
452
- }
453
- function Lt(t) {
454
- return t instanceof Node || t instanceof S(t).Node;
455
- }
456
- function N(t) {
457
- return t instanceof Element || t instanceof S(t).Element;
458
- }
459
- function F(t) {
460
- return t instanceof HTMLElement || t instanceof S(t).HTMLElement;
461
- }
462
- function wt(t) {
463
- return typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof S(t).ShadowRoot;
464
- }
465
- function Q(t) {
466
- const {
467
- overflow: e,
468
- overflowX: o,
469
- overflowY: n,
470
- display: i
471
- } = M(t);
472
- return /auto|scroll|overlay|hidden|clip/.test(e + n + o) && !["inline", "contents"].includes(i);
473
- }
474
- function me(t) {
475
- return ["table", "td", "th"].includes($(t));
476
- }
477
- function mt(t) {
478
- const e = pt(), o = M(t);
479
- return o.transform !== "none" || o.perspective !== "none" || (o.containerType ? o.containerType !== "normal" : !1) || !e && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !e && (o.filter ? o.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((n) => (o.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (o.contain || "").includes(n));
480
- }
481
- function pe(t) {
482
- let e = G(t);
483
- for (; F(e) && !ft(e); ) {
484
- if (mt(e))
485
- return e;
486
- e = G(e);
487
- }
488
- return null;
489
- }
490
- function pt() {
491
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
492
- }
493
- function ft(t) {
494
- return ["html", "body", "#document"].includes($(t));
495
- }
496
- function M(t) {
497
- return S(t).getComputedStyle(t);
498
- }
499
- function at(t) {
500
- return N(t) ? {
501
- scrollLeft: t.scrollLeft,
502
- scrollTop: t.scrollTop
503
- } : {
504
- scrollLeft: t.pageXOffset,
505
- scrollTop: t.pageYOffset
506
- };
507
- }
508
- function G(t) {
509
- if ($(t) === "html")
510
- return t;
511
- const e = (
512
- // Step into the shadow DOM of the parent of a slotted node.
513
- t.assignedSlot || // DOM Element detected.
514
- t.parentNode || // ShadowRoot detected.
515
- wt(t) && t.host || // Fallback.
516
- V(t)
517
- );
518
- return wt(e) ? e.host : e;
519
- }
520
- function Mt(t) {
521
- const e = G(t);
522
- return ft(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : F(e) && Q(e) ? e : Mt(e);
523
- }
524
- function J(t, e, o) {
525
- var n;
526
- e === void 0 && (e = []), o === void 0 && (o = !0);
527
- const i = Mt(t), s = i === ((n = t.ownerDocument) == null ? void 0 : n.body), r = S(i);
528
- return s ? e.concat(r, r.visualViewport || [], Q(i) ? i : [], r.frameElement && o ? J(r.frameElement) : []) : e.concat(i, J(i, [], o));
529
- }
530
- function kt(t) {
531
- const e = M(t);
532
- let o = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
533
- const i = F(t), s = i ? t.offsetWidth : o, r = i ? t.offsetHeight : n, c = nt(o) !== s || nt(n) !== r;
534
- return c && (o = s, n = r), {
535
- width: o,
536
- height: n,
537
- $: c
538
- };
539
- }
540
- function ht(t) {
541
- return N(t) ? t : t.contextElement;
542
- }
543
- function K(t) {
544
- const e = ht(t);
545
- if (!F(e))
546
- return H(1);
547
- const o = e.getBoundingClientRect(), {
548
- width: n,
549
- height: i,
550
- $: s
551
- } = kt(e);
552
- let r = (s ? nt(o.width) : o.width) / n, c = (s ? nt(o.height) : o.height) / i;
553
- return (!r || !Number.isFinite(r)) && (r = 1), (!c || !Number.isFinite(c)) && (c = 1), {
554
- x: r,
555
- y: c
556
- };
557
- }
558
- const he = /* @__PURE__ */ H(0);
559
- function Dt(t) {
560
- const e = S(t);
561
- return !pt() || !e.visualViewport ? he : {
562
- x: e.visualViewport.offsetLeft,
563
- y: e.visualViewport.offsetTop
564
- };
565
- }
566
- function ge(t, e, o) {
567
- return e === void 0 && (e = !1), !o || e && o !== S(t) ? !1 : e;
568
- }
569
- function U(t, e, o, n) {
570
- e === void 0 && (e = !1), o === void 0 && (o = !1);
571
- const i = t.getBoundingClientRect(), s = ht(t);
572
- let r = H(1);
573
- e && (n ? N(n) && (r = K(n)) : r = K(t));
574
- const c = ge(s, o, n) ? Dt(s) : H(0);
575
- let l = (i.left + c.x) / r.x, f = (i.top + c.y) / r.y, a = i.width / r.x, u = i.height / r.y;
576
- if (s) {
577
- const m = S(s), d = n && N(n) ? S(n) : n;
578
- let h = m, g = h.frameElement;
579
- for (; g && n && d !== h; ) {
580
- const w = K(g), p = g.getBoundingClientRect(), y = M(g), R = p.left + (g.clientLeft + parseFloat(y.paddingLeft)) * w.x, C = p.top + (g.clientTop + parseFloat(y.paddingTop)) * w.y;
581
- l *= w.x, f *= w.y, a *= w.x, u *= w.y, l += R, f += C, h = S(g), g = h.frameElement;
582
- }
583
- }
584
- return it({
585
- width: a,
586
- height: u,
587
- x: l,
588
- y: f
589
- });
590
- }
591
- const ye = [":popover-open", ":modal"];
592
- function Ft(t) {
593
- return ye.some((e) => {
594
- try {
595
- return t.matches(e);
596
- } catch {
597
- return !1;
598
- }
599
- });
600
- }
601
- function xe(t) {
602
- let {
603
- elements: e,
604
- rect: o,
605
- offsetParent: n,
606
- strategy: i
607
- } = t;
608
- const s = i === "fixed", r = V(n), c = e ? Ft(e.floating) : !1;
609
- if (n === r || c && s)
610
- return o;
611
- let l = {
612
- scrollLeft: 0,
613
- scrollTop: 0
614
- }, f = H(1);
615
- const a = H(0), u = F(n);
616
- if ((u || !u && !s) && (($(n) !== "body" || Q(r)) && (l = at(n)), F(n))) {
617
- const m = U(n);
618
- f = K(n), a.x = m.x + n.clientLeft, a.y = m.y + n.clientTop;
619
- }
620
- return {
621
- width: o.width * f.x,
622
- height: o.height * f.y,
623
- x: o.x * f.x - l.scrollLeft * f.x + a.x,
624
- y: o.y * f.y - l.scrollTop * f.y + a.y
625
- };
626
- }
627
- function we(t) {
628
- return Array.from(t.getClientRects());
629
- }
630
- function Nt(t) {
631
- return U(V(t)).left + at(t).scrollLeft;
632
- }
633
- function ve(t) {
634
- const e = V(t), o = at(t), n = t.ownerDocument.body, i = z(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), s = z(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
635
- let r = -o.scrollLeft + Nt(t);
636
- const c = -o.scrollTop;
637
- return M(n).direction === "rtl" && (r += z(e.clientWidth, n.clientWidth) - i), {
638
- width: i,
639
- height: s,
640
- x: r,
641
- y: c
642
- };
643
- }
644
- function be(t, e) {
645
- const o = S(t), n = V(t), i = o.visualViewport;
646
- let s = n.clientWidth, r = n.clientHeight, c = 0, l = 0;
647
- if (i) {
648
- s = i.width, r = i.height;
649
- const f = pt();
650
- (!f || f && e === "fixed") && (c = i.offsetLeft, l = i.offsetTop);
651
- }
652
- return {
653
- width: s,
654
- height: r,
655
- x: c,
656
- y: l
657
- };
658
- }
659
- function Re(t, e) {
660
- const o = U(t, !0, e === "fixed"), n = o.top + t.clientTop, i = o.left + t.clientLeft, s = F(t) ? K(t) : H(1), r = t.clientWidth * s.x, c = t.clientHeight * s.y, l = i * s.x, f = n * s.y;
661
- return {
662
- width: r,
663
- height: c,
664
- x: l,
665
- y: f
666
- };
667
- }
668
- function vt(t, e, o) {
669
- let n;
670
- if (e === "viewport")
671
- n = be(t, o);
672
- else if (e === "document")
673
- n = ve(V(t));
674
- else if (N(e))
675
- n = Re(e, o);
676
- else {
677
- const i = Dt(t);
678
- n = {
679
- ...e,
680
- x: e.x - i.x,
681
- y: e.y - i.y
682
- };
683
- }
684
- return it(n);
685
- }
686
- function Vt(t, e) {
687
- const o = G(t);
688
- return o === e || !N(o) || ft(o) ? !1 : M(o).position === "fixed" || Vt(o, e);
689
- }
690
- function Ce(t, e) {
691
- const o = e.get(t);
692
- if (o)
693
- return o;
694
- let n = J(t, [], !1).filter((c) => N(c) && $(c) !== "body"), i = null;
695
- const s = M(t).position === "fixed";
696
- let r = s ? G(t) : t;
697
- for (; N(r) && !ft(r); ) {
698
- const c = M(r), l = mt(r);
699
- !l && c.position === "fixed" && (i = null), (s ? !l && !i : !l && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Q(r) && !l && Vt(t, r)) ? n = n.filter((a) => a !== r) : i = c, r = G(r);
700
- }
701
- return e.set(t, n), n;
702
- }
703
- function Ee(t) {
704
- let {
705
- element: e,
706
- boundary: o,
707
- rootBoundary: n,
708
- strategy: i
709
- } = t;
710
- const r = [...o === "clippingAncestors" ? Ce(e, this._c) : [].concat(o), n], c = r[0], l = r.reduce((f, a) => {
711
- const u = vt(e, a, i);
712
- return f.top = z(u.top, f.top), f.right = et(u.right, f.right), f.bottom = et(u.bottom, f.bottom), f.left = z(u.left, f.left), f;
713
- }, vt(e, c, i));
714
- return {
715
- width: l.right - l.left,
716
- height: l.bottom - l.top,
717
- x: l.left,
718
- y: l.top
719
- };
720
- }
721
- function Te(t) {
722
- const {
723
- width: e,
724
- height: o
725
- } = kt(t);
726
- return {
727
- width: e,
728
- height: o
729
- };
730
- }
731
- function Oe(t, e, o) {
732
- const n = F(e), i = V(e), s = o === "fixed", r = U(t, !0, s, e);
733
- let c = {
734
- scrollLeft: 0,
735
- scrollTop: 0
736
- };
737
- const l = H(0);
738
- if (n || !n && !s)
739
- if (($(e) !== "body" || Q(i)) && (c = at(e)), n) {
740
- const u = U(e, !0, s, e);
741
- l.x = u.x + e.clientLeft, l.y = u.y + e.clientTop;
742
- } else i && (l.x = Nt(i));
743
- const f = r.left + c.scrollLeft - l.x, a = r.top + c.scrollTop - l.y;
744
- return {
745
- x: f,
746
- y: a,
747
- width: r.width,
748
- height: r.height
749
- };
750
- }
751
- function bt(t, e) {
752
- return !F(t) || M(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
753
- }
754
- function _t(t, e) {
755
- const o = S(t);
756
- if (!F(t) || Ft(t))
757
- return o;
758
- let n = bt(t, e);
759
- for (; n && me(n) && M(n).position === "static"; )
760
- n = bt(n, e);
761
- return n && ($(n) === "html" || $(n) === "body" && M(n).position === "static" && !mt(n)) ? o : n || pe(t) || o;
762
- }
763
- const Ae = async function(t) {
764
- const e = this.getOffsetParent || _t, o = this.getDimensions, n = await o(t.floating);
765
- return {
766
- reference: Oe(t.reference, await e(t.floating), t.strategy),
767
- floating: {
768
- x: 0,
769
- y: 0,
770
- width: n.width,
771
- height: n.height
772
- }
773
- };
774
- };
775
- function Pe(t) {
776
- return M(t).direction === "rtl";
777
- }
778
- const Se = {
779
- convertOffsetParentRelativeRectToViewportRelativeRect: xe,
780
- getDocumentElement: V,
781
- getClippingRect: Ee,
782
- getOffsetParent: _t,
783
- getElementRects: Ae,
784
- getClientRects: we,
785
- getDimensions: Te,
786
- getScale: K,
787
- isElement: N,
788
- isRTL: Pe
789
- };
790
- function Le(t, e) {
791
- let o = null, n;
792
- const i = V(t);
793
- function s() {
794
- var c;
795
- clearTimeout(n), (c = o) == null || c.disconnect(), o = null;
796
- }
797
- function r(c, l) {
798
- c === void 0 && (c = !1), l === void 0 && (l = 1), s();
799
- const {
800
- left: f,
801
- top: a,
802
- width: u,
803
- height: m
804
- } = t.getBoundingClientRect();
805
- if (c || e(), !u || !m)
806
- return;
807
- const d = q(a), h = q(i.clientWidth - (f + u)), g = q(i.clientHeight - (a + m)), w = q(f), y = {
808
- rootMargin: -d + "px " + -h + "px " + -g + "px " + -w + "px",
809
- threshold: z(0, et(1, l)) || 1
810
- };
811
- let R = !0;
812
- function C(v) {
813
- const T = v[0].intersectionRatio;
814
- if (T !== l) {
815
- if (!R)
816
- return r();
817
- T ? r(!1, T) : n = setTimeout(() => {
818
- r(!1, 1e-7);
819
- }, 1e3);
820
- }
821
- R = !1;
822
- }
823
- try {
824
- o = new IntersectionObserver(C, {
825
- ...y,
826
- // Handle <iframe>s
827
- root: i.ownerDocument
828
- });
829
- } catch {
830
- o = new IntersectionObserver(C, y);
831
- }
832
- o.observe(t);
833
- }
834
- return r(!0), s;
835
- }
836
- function Rt(t, e, o, n) {
837
- n === void 0 && (n = {});
838
- const {
839
- ancestorScroll: i = !0,
840
- ancestorResize: s = !0,
841
- elementResize: r = typeof ResizeObserver == "function",
842
- layoutShift: c = typeof IntersectionObserver == "function",
843
- animationFrame: l = !1
844
- } = n, f = ht(t), a = i || s ? [...f ? J(f) : [], ...J(e)] : [];
845
- a.forEach((p) => {
846
- i && p.addEventListener("scroll", o, {
847
- passive: !0
848
- }), s && p.addEventListener("resize", o);
849
- });
850
- const u = f && c ? Le(f, o) : null;
851
- let m = -1, d = null;
852
- r && (d = new ResizeObserver((p) => {
853
- let [y] = p;
854
- y && y.target === f && d && (d.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
855
- var R;
856
- (R = d) == null || R.observe(e);
857
- })), o();
858
- }), f && !l && d.observe(f), d.observe(e));
859
- let h, g = l ? U(t) : null;
860
- l && w();
861
- function w() {
862
- const p = U(t);
863
- g && (p.x !== g.x || p.y !== g.y || p.width !== g.width || p.height !== g.height) && o(), g = p, h = requestAnimationFrame(w);
864
- }
865
- return o(), () => {
866
- var p;
867
- a.forEach((y) => {
868
- i && y.removeEventListener("scroll", o), s && y.removeEventListener("resize", o);
869
- }), u == null || u(), (p = d) == null || p.disconnect(), d = null, l && cancelAnimationFrame(h);
870
- };
871
- }
872
- const Ct = ue, Me = de, ke = fe, De = (t, e, o) => {
873
- const n = /* @__PURE__ */ new Map(), i = {
874
- platform: Se,
875
- ...o
876
- }, s = {
877
- ...i.platform,
878
- _c: n
879
- };
880
- return le(t, e, {
881
- ...i,
882
- platform: s
883
- });
884
- };
885
- var tt = typeof document < "u" ? Gt : Jt;
886
- function rt(t, e) {
887
- if (t === e)
888
- return !0;
889
- if (typeof t != typeof e)
890
- return !1;
891
- if (typeof t == "function" && t.toString() === e.toString())
892
- return !0;
893
- let o, n, i;
894
- if (t && e && typeof t == "object") {
895
- if (Array.isArray(t)) {
896
- if (o = t.length, o !== e.length) return !1;
897
- for (n = o; n-- !== 0; )
898
- if (!rt(t[n], e[n]))
899
- return !1;
900
- return !0;
901
- }
902
- if (i = Object.keys(t), o = i.length, o !== Object.keys(e).length)
903
- return !1;
904
- for (n = o; n-- !== 0; )
905
- if (!{}.hasOwnProperty.call(e, i[n]))
906
- return !1;
907
- for (n = o; n-- !== 0; ) {
908
- const s = i[n];
909
- if (!(s === "_owner" && t.$$typeof) && !rt(t[s], e[s]))
910
- return !1;
911
- }
912
- return !0;
913
- }
914
- return t !== t && e !== e;
915
- }
916
- function Bt(t) {
917
- return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
918
- }
919
- function Et(t, e) {
920
- const o = Bt(t);
921
- return Math.round(e * o) / o;
922
- }
923
- function Tt(t) {
924
- const e = b.useRef(t);
925
- return tt(() => {
926
- e.current = t;
927
- }), e;
928
- }
929
- function Fe(t) {
930
- t === void 0 && (t = {});
931
- const {
932
- placement: e = "bottom",
933
- strategy: o = "absolute",
934
- middleware: n = [],
935
- platform: i,
936
- elements: {
937
- reference: s,
938
- floating: r
939
- } = {},
940
- transform: c = !0,
941
- whileElementsMounted: l,
942
- open: f
943
- } = t, [a, u] = b.useState({
944
- x: 0,
945
- y: 0,
946
- strategy: o,
947
- placement: e,
948
- middlewareData: {},
949
- isPositioned: !1
950
- }), [m, d] = b.useState(n);
951
- rt(m, n) || d(n);
952
- const [h, g] = b.useState(null), [w, p] = b.useState(null), y = b.useCallback((E) => {
953
- E !== T.current && (T.current = E, g(E));
954
- }, []), R = b.useCallback((E) => {
955
- E !== P.current && (P.current = E, p(E));
956
- }, []), C = s || h, v = r || w, T = b.useRef(null), P = b.useRef(null), L = b.useRef(a), j = l != null, _ = Tt(l), B = Tt(i), O = b.useCallback(() => {
957
- if (!T.current || !P.current)
958
- return;
959
- const E = {
960
- placement: e,
961
- strategy: o,
962
- middleware: m
963
- };
964
- B.current && (E.platform = B.current), De(T.current, P.current, E).then((X) => {
965
- const Y = {
966
- ...X,
967
- isPositioned: !0
968
- };
969
- W.current && !rt(L.current, Y) && (L.current = Y, Qt.flushSync(() => {
970
- u(Y);
971
- }));
972
- });
973
- }, [m, e, o, B]);
974
- tt(() => {
975
- f === !1 && L.current.isPositioned && (L.current.isPositioned = !1, u((E) => ({
976
- ...E,
977
- isPositioned: !1
978
- })));
979
- }, [f]);
980
- const W = b.useRef(!1);
981
- tt(() => (W.current = !0, () => {
982
- W.current = !1;
983
- }), []), tt(() => {
984
- if (C && (T.current = C), v && (P.current = v), C && v) {
985
- if (_.current)
986
- return _.current(C, v, O);
987
- O();
988
- }
989
- }, [C, v, O, _, j]);
990
- const k = b.useMemo(() => ({
991
- reference: T,
992
- floating: P,
993
- setReference: y,
994
- setFloating: R
995
- }), [y, R]), A = b.useMemo(() => ({
996
- reference: C,
997
- floating: v
998
- }), [C, v]), D = b.useMemo(() => {
999
- const E = {
1000
- position: o,
1001
- left: 0,
1002
- top: 0
1003
- };
1004
- if (!A.floating)
1005
- return E;
1006
- const X = Et(A.floating, a.x), Y = Et(A.floating, a.y);
1007
- return c ? {
1008
- ...E,
1009
- transform: "translate(" + X + "px, " + Y + "px)",
1010
- ...Bt(A.floating) >= 1.5 && {
1011
- willChange: "transform"
1012
- }
1013
- } : {
1014
- position: o,
1015
- left: X,
1016
- top: Y
1017
- };
1018
- }, [o, c, A.floating, a.x, a.y]);
1019
- return b.useMemo(() => ({
1020
- ...a,
1021
- update: O,
1022
- refs: k,
1023
- elements: A,
1024
- floatingStyles: D
1025
- }), [a, O, k, A, D]);
1026
- }
1027
- const Wt = "Popup";
1028
- function Ne(t) {
1029
- return jt(Wt, t);
1030
- }
1031
- zt(Wt, ["root", "open"]);
1032
- const Ht = /* @__PURE__ */ b.createContext(null);
1033
- process.env.NODE_ENV !== "production" && (Ht.displayName = "TransitionContext");
1034
- function Ve(t) {
1035
- const [e, o] = b.useState(!0), n = b.useRef(!1), i = b.useRef(0), [s, r] = b.useState(!1), c = b.useRef(t);
1036
- b.useEffect(() => {
1037
- !t && // checking registeredTransitions.current instead of hasTransition to avoid this effect re-firing whenever hasTransition changes
1038
- i.current > 0 && // prevents waiting for a pending transition right after mounting
1039
- c.current !== t && (n.current = !0, o(!1)), c.current = t;
1040
- }, [t]);
1041
- const l = b.useCallback(() => {
1042
- n.current = !1, o(!0);
1043
- }, []), f = b.useCallback(() => (i.current += 1, r(!0), () => {
1044
- i.current -= 1, i.current === 0 && r(!1);
1045
- }), []);
1046
- let a;
1047
- return s ? t ? a = !1 : a = !n.current && e : a = !t, {
1048
- contextValue: b.useMemo(() => ({
1049
- requestedEnter: t,
1050
- onExited: l,
1051
- registerTransition: f,
1052
- hasExited: a
1053
- }), [l, t, f, a]),
1054
- hasExited: a
1055
- };
1056
- }
1057
- const $t = /* @__PURE__ */ b.createContext(null);
1058
- process.env.NODE_ENV !== "production" && ($t.displayName = "PopupContext");
1059
- const _e = ["anchor", "children", "container", "disablePortal", "keepMounted", "middleware", "offset", "open", "placement", "slotProps", "slots", "strategy"];
1060
- function Be(t) {
1061
- const {
1062
- open: e
1063
- } = t;
1064
- return Yt({
1065
- root: ["root", e && "open"]
1066
- }, Kt(Ne));
1067
- }
1068
- function We(t) {
1069
- return typeof t == "function" ? t() : t;
1070
- }
1071
- const He = /* @__PURE__ */ b.forwardRef(function(e, o) {
1072
- var n;
1073
- const {
1074
- anchor: i,
1075
- children: s,
1076
- container: r,
1077
- disablePortal: c = !1,
1078
- keepMounted: l = !1,
1079
- middleware: f,
1080
- offset: a = 0,
1081
- open: u = !1,
1082
- placement: m = "bottom",
1083
- slotProps: d = {},
1084
- slots: h = {},
1085
- strategy: g = "absolute"
1086
- } = e, w = It(e, _e), {
1087
- refs: p,
1088
- elements: y,
1089
- floatingStyles: R,
1090
- update: C,
1091
- placement: v
1092
- } = Fe({
1093
- elements: {
1094
- reference: We(i)
1095
- },
1096
- open: u,
1097
- middleware: f ?? [Ct(a ?? 0), ke(), Me()],
1098
- placement: m,
1099
- strategy: g,
1100
- whileElementsMounted: l ? void 0 : Rt
1101
- }), T = Ut(p.setFloating, o);
1102
- Zt(() => {
1103
- if (l && u && y.reference && y.floating)
1104
- return Rt(y.reference, y.floating, C);
1105
- }, [l, u, y, C]);
1106
- const P = ut({}, e, {
1107
- disablePortal: c,
1108
- keepMounted: l,
1109
- offset: Ct,
1110
- open: u,
1111
- placement: m,
1112
- finalPlacement: v,
1113
- strategy: g
1114
- }), {
1115
- contextValue: L,
1116
- hasExited: j
1117
- } = Ve(u), _ = l && j ? "hidden" : void 0, B = Be(P), O = (n = h == null ? void 0 : h.root) != null ? n : "div", W = Xt({
1118
- elementType: O,
1119
- externalSlotProps: d.root,
1120
- externalForwardedProps: w,
1121
- ownerState: P,
1122
- className: B.root,
1123
- additionalProps: {
1124
- ref: T,
1125
- role: "tooltip",
1126
- style: ut({}, R, {
1127
- visibility: _
1128
- })
1129
- }
1130
- }), k = b.useMemo(() => ({
1131
- placement: v
1132
- }), [v]);
1133
- return l || !j ? /* @__PURE__ */ Z(qt, {
1134
- disablePortal: c,
1135
- container: r,
1136
- children: /* @__PURE__ */ Z($t.Provider, {
1137
- value: k,
1138
- children: /* @__PURE__ */ Z(Ht.Provider, {
1139
- value: L,
1140
- children: /* @__PURE__ */ Z(O, ut({}, W, {
1141
- children: s
1142
- }))
1143
- })
1144
- })
1145
- }) : null;
1146
- });
1147
- process.env.NODE_ENV !== "production" && (He.propTypes = {
1148
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1149
- // │ These PropTypes are generated from the TypeScript type definitions. │
1150
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
1151
- // └─────────────────────────────────────────────────────────────────────┘
1152
- /**
1153
- * An HTML element, [virtual element](https://floating-ui.com/docs/virtual-elements),
1154
- * or a function that returns either.
1155
- * It's used to set the position of the popup.
1156
- */
1157
- anchor: x.oneOfType([gt, x.object, x.func]),
1158
- /**
1159
- * @ignore
1160
- */
1161
- children: x.oneOfType([x.node, x.func]),
1162
- /**
1163
- * An HTML element or function that returns one. The container will have the portal children appended to it.
1164
- * By default, it uses the body of the top-level document object, so it's `document.body` in these cases.
1165
- */
1166
- container: x.oneOfType([gt, x.func]),
1167
- /**
1168
- * If `true`, the popup will be rendered where it is defined, without the use of portals.
1169
- * @default false
1170
- */
1171
- disablePortal: x.bool,
1172
- /**
1173
- * If `true`, the popup will exist in the DOM even if it's closed.
1174
- * Its visibility will be controlled by the `visibility` CSS property.
1175
- *
1176
- * Otherwise, a closed popup will be removed from the DOM.
1177
- *
1178
- * @default false
1179
- */
1180
- keepMounted: x.bool,
1181
- /**
1182
- * Collection of Floating UI middleware to use when positioning the popup.
1183
- * If not provided, the [`offset`](https://floating-ui.com/docs/offset)
1184
- * and [`flip`](https://floating-ui.com/docs/flip) functions will be used.
1185
- *
1186
- * @see https://floating-ui.com/docs/computePosition#middleware
1187
- */
1188
- middleware: x.arrayOf(x.oneOfType([x.oneOf([!1]), x.shape({
1189
- fn: x.func.isRequired,
1190
- name: x.string.isRequired,
1191
- options: x.any
1192
- })])),
1193
- /**
1194
- * Distance between a popup and the trigger element.
1195
- * This prop is ignored when custom `middleware` is provided.
1196
- *
1197
- * @default 0
1198
- * @see https://floating-ui.com/docs/offset
1199
- */
1200
- offset: x.oneOfType([x.func, x.number, x.shape({
1201
- alignmentAxis: x.number,
1202
- crossAxis: x.number,
1203
- mainAxis: x.number
1204
- })]),
1205
- /**
1206
- * If `true`, the popup is visible.
1207
- *
1208
- * @default false
1209
- */
1210
- open: x.bool,
1211
- /**
1212
- * Determines where to place the popup relative to the trigger element.
1213
- *
1214
- * @default 'bottom'
1215
- * @see https://floating-ui.com/docs/computePosition#placement
1216
- */
1217
- placement: x.oneOf(["bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1218
- /**
1219
- * The props used for each slot inside the Popup.
1220
- *
1221
- * @default {}
1222
- */
1223
- slotProps: x.shape({
1224
- root: x.oneOfType([x.func, x.object])
1225
- }),
1226
- /**
1227
- * The components used for each slot inside the Popup.
1228
- * Either a string to use a HTML element or a component.
1229
- *
1230
- * @default {}
1231
- */
1232
- slots: x.shape({
1233
- root: x.elementType
1234
- }),
1235
- /**
1236
- * The type of CSS position property to use (absolute or fixed).
1237
- *
1238
- * @default 'absolute'
1239
- * @see https://floating-ui.com/docs/computePosition#strategy
1240
- */
1241
- strategy: x.oneOf(["absolute", "fixed"])
1242
- });
1243
- export {
1244
- He as P,
1245
- Ht as T
1246
- };