@datawire-ai/busyfile-design-library 1.30.9 → 1.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/index100.js +5 -181
  2. package/dist/index101.js +69 -7
  3. package/dist/index102.js +124 -23
  4. package/dist/index103.js +10 -5
  5. package/dist/index104.js +212 -128
  6. package/dist/index105.js +13 -14
  7. package/dist/index106.js +30 -9
  8. package/dist/index107.js +4 -50
  9. package/dist/index108.js +46 -10
  10. package/dist/index109.js +16 -4
  11. package/dist/index110.js +132 -9
  12. package/dist/index111.js +50 -4
  13. package/dist/index112.js +9 -47
  14. package/dist/index113.js +12 -648
  15. package/dist/index116.js +648 -12
  16. package/dist/index121.js +6 -12
  17. package/dist/index122.js +10 -204
  18. package/dist/index123.js +204 -20
  19. package/dist/index124.js +21 -399
  20. package/dist/index125.js +400 -6
  21. package/dist/index126.js +2 -25
  22. package/dist/index127.js +53 -29
  23. package/dist/index128.js +65 -5
  24. package/dist/index129.js +25 -2
  25. package/dist/index130.js +29 -53
  26. package/dist/index131.js +5 -65
  27. package/dist/index200.js +2 -525
  28. package/dist/index201.js +2 -128
  29. package/dist/index202.js +516 -125
  30. package/dist/index203.js +128 -5
  31. package/dist/index204.js +134 -3
  32. package/dist/index205.js +5 -24
  33. package/dist/index206.js +3 -110
  34. package/dist/index207.js +23 -15
  35. package/dist/index208.js +110 -2
  36. package/dist/index209.js +16 -2
  37. package/dist/index268.js +1 -1
  38. package/dist/index269.js +1 -1
  39. package/dist/index40.js +1 -1
  40. package/dist/index42.js +6 -6
  41. package/dist/index44.js +9 -9
  42. package/dist/index46.js +7 -7
  43. package/dist/index49.js +12 -12
  44. package/dist/index52.js +10 -10
  45. package/dist/index59.js +4 -4
  46. package/dist/index63.js +1 -1
  47. package/dist/index75.js +7 -7
  48. package/dist/index82.js +19 -19
  49. package/dist/index85.js +13 -13
  50. package/dist/index86.js +4 -4
  51. package/dist/index87.js +6 -6
  52. package/dist/index89.js +25 -5
  53. package/dist/index90.js +32 -25
  54. package/dist/index92.js +10 -125
  55. package/dist/index93.js +4 -11
  56. package/dist/index94.js +10 -217
  57. package/dist/index95.js +7 -15
  58. package/dist/index96.js +177 -65
  59. package/dist/index97.js +51 -33
  60. package/dist/index98.js +7 -51
  61. package/dist/index99.js +25 -30
  62. package/dist/style.css +1 -1
  63. package/dist/theme.css +5 -5
  64. package/package.json +1 -1
package/dist/index130.js CHANGED
@@ -1,55 +1,31 @@
1
- import { __exports as i } from "./index208.js";
2
- import h from "react";
3
- /**
4
- * @license React
5
- * use-sync-external-store-shim.production.js
6
- *
7
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
12
- var f;
13
- function x() {
14
- if (f) return i;
15
- f = 1;
16
- var u = h;
17
- function s(e, t) {
18
- return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
19
- }
20
- var S = typeof Object.is == "function" ? Object.is : s, d = u.useState, l = u.useEffect, p = u.useLayoutEffect, E = u.useDebugValue;
21
- function v(e, t) {
22
- var r = t(), a = d({ inst: { value: r, getSnapshot: t } }), n = a[0].inst, c = a[1];
23
- return p(
24
- function() {
25
- n.value = r, n.getSnapshot = t, o(n) && c({ inst: n });
26
- },
27
- [e, r, t]
28
- ), l(
29
- function() {
30
- return o(n) && c({ inst: n }), e(function() {
31
- o(n) && c({ inst: n });
32
- });
33
- },
34
- [e]
35
- ), E(r), r;
36
- }
37
- function o(e) {
38
- var t = e.getSnapshot;
39
- e = e.value;
40
- try {
41
- var r = t();
42
- return !S(e, r);
43
- } catch {
44
- return !0;
45
- }
46
- }
47
- function y(e, t) {
48
- return t();
49
- }
50
- var m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? y : v;
51
- return i.useSyncExternalStore = u.useSyncExternalStore !== void 0 ? u.useSyncExternalStore : m, i;
52
- }
1
+ import { __rest as E, __assign as r } from "./index129.js";
2
+ import * as a from "react";
3
+ import { zeroRightClassName as I, fullWidthClassName as Z } from "./index205.js";
4
+ import { effectCar as W } from "./index206.js";
5
+ import { useMergeRefs as z } from "./index207.js";
6
+ var l = function() {
7
+ }, m = a.forwardRef(function(e, d) {
8
+ var o = a.useRef(null), n = a.useState({
9
+ onScrollCapture: l,
10
+ onWheelCapture: l,
11
+ onTouchMoveCapture: l
12
+ }), f = n[0], v = n[1], h = e.forwardProps, t = e.children, u = e.className, C = e.removeScrollBar, R = e.enabled, g = e.shards, P = e.sideCar, S = e.noRelative, b = e.noIsolation, w = e.inert, N = e.allowPinchZoom, i = e.as, M = i === void 0 ? "div" : i, _ = e.gapMode, B = E(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), k = P, s = z([o, d]), c = r(r({}, B), f);
13
+ return a.createElement(
14
+ a.Fragment,
15
+ null,
16
+ R && a.createElement(k, { sideCar: W, removeScrollBar: C, shards: g, noRelative: S, noIsolation: b, inert: w, setCallbacks: v, allowPinchZoom: !!N, lockRef: o, gapMode: _ }),
17
+ h ? a.cloneElement(a.Children.only(t), r(r({}, c), { ref: s })) : a.createElement(M, r({}, c, { className: u, ref: s }), t)
18
+ );
19
+ });
20
+ m.defaultProps = {
21
+ enabled: !0,
22
+ removeScrollBar: !0,
23
+ inert: !1
24
+ };
25
+ m.classNames = {
26
+ fullWidth: Z,
27
+ zeroRight: I
28
+ };
53
29
  export {
54
- x as __require
30
+ m as RemoveScroll
55
31
  };
package/dist/index131.js CHANGED
@@ -1,67 +1,7 @@
1
- import { __exports as s } from "./index209.js";
2
- import h from "react";
3
- /**
4
- * @license React
5
- * use-sync-external-store-shim.development.js
6
- *
7
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
12
- var l;
13
- function A() {
14
- return l ? s : (l = 1, process.env.NODE_ENV !== "production" && function() {
15
- function d(e, t) {
16
- return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
17
- }
18
- function S(e, t) {
19
- f || o.startTransition === void 0 || (f = !0, console.error(
20
- "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
21
- ));
22
- var r = t();
23
- if (!c) {
24
- var u = t();
25
- _(r, u) || (console.error(
26
- "The result of getSnapshot should be cached to avoid an infinite loop"
27
- ), c = !0);
28
- }
29
- u = p({
30
- inst: { value: r, getSnapshot: t }
31
- });
32
- var n = u[0].inst, i = u[1];
33
- return L(
34
- function() {
35
- n.value = r, n.getSnapshot = t, a(n) && i({ inst: n });
36
- },
37
- [e, r, t]
38
- ), E(
39
- function() {
40
- return a(n) && i({ inst: n }), e(function() {
41
- a(n) && i({ inst: n });
42
- });
43
- },
44
- [e]
45
- ), y(r), r;
46
- }
47
- function a(e) {
48
- var t = e.getSnapshot;
49
- e = e.value;
50
- try {
51
- var r = t();
52
- return !_(e, r);
53
- } catch {
54
- return !0;
55
- }
56
- }
57
- function O(e, t) {
58
- return t();
59
- }
60
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
61
- var o = h, _ = typeof Object.is == "function" ? Object.is : d, p = o.useState, E = o.useEffect, L = o.useLayoutEffect, y = o.useDebugValue, f = !1, c = !1, v = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? O : S;
62
- s.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : v, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
63
- }(), s);
64
- }
1
+ import { RemoveScrollSideCar as r } from "./index208.js";
2
+ import { effectCar as o } from "./index206.js";
3
+ import { exportSidecar as e } from "./index209.js";
4
+ const f = e(o, r);
65
5
  export {
66
- A as __require
6
+ f as default
67
7
  };
package/dist/index200.js CHANGED
@@ -1,527 +1,4 @@
1
- import { evaluate as L, getSideAxis as T, getSide as j, clamp as X, getOppositePlacement as ee, getExpandedPlacements as te, getOppositeAxisPlacements as ne, getAlignmentSides as ie, getAlignment as z, min as $, max as W, getPaddingObject as J, rectToClientRect as _, getOppositeAxis as K, getAlignmentAxis as N, sides as se, getAxisLength as Q } from "./index201.js";
2
- function I(t, e, d) {
3
- let {
4
- reference: a,
5
- floating: r
6
- } = t;
7
- const n = T(e), o = N(e), m = Q(o), u = j(e), h = n === "y", c = a.x + a.width / 2 - r.width / 2, s = a.y + a.height / 2 - r.height / 2, f = a[m] / 2 - r[m] / 2;
8
- let i;
9
- switch (u) {
10
- case "top":
11
- i = {
12
- x: c,
13
- y: a.y - r.height
14
- };
15
- break;
16
- case "bottom":
17
- i = {
18
- x: c,
19
- y: a.y + a.height
20
- };
21
- break;
22
- case "right":
23
- i = {
24
- x: a.x + a.width,
25
- y: s
26
- };
27
- break;
28
- case "left":
29
- i = {
30
- x: a.x - r.width,
31
- y: s
32
- };
33
- break;
34
- default:
35
- i = {
36
- x: a.x,
37
- y: a.y
38
- };
39
- }
40
- switch (z(e)) {
41
- case "start":
42
- i[o] -= f * (d && h ? -1 : 1);
43
- break;
44
- case "end":
45
- i[o] += f * (d && h ? -1 : 1);
46
- break;
47
- }
48
- return i;
49
- }
50
- const ce = async (t, e, d) => {
51
- const {
52
- placement: a = "bottom",
53
- strategy: r = "absolute",
54
- middleware: n = [],
55
- platform: o
56
- } = d, m = n.filter(Boolean), u = await (o.isRTL == null ? void 0 : o.isRTL(e));
57
- let h = await o.getElementRects({
58
- reference: t,
59
- floating: e,
60
- strategy: r
61
- }), {
62
- x: c,
63
- y: s
64
- } = I(h, a, u), f = a, i = {}, l = 0;
65
- for (let g = 0; g < m.length; g++) {
66
- const {
67
- name: x,
68
- fn: y
69
- } = m[g], {
70
- x: A,
71
- y: p,
72
- data: v,
73
- reset: w
74
- } = await y({
75
- x: c,
76
- y: s,
77
- initialPlacement: a,
78
- placement: f,
79
- strategy: r,
80
- middlewareData: i,
81
- rects: h,
82
- platform: o,
83
- elements: {
84
- reference: t,
85
- floating: e
86
- }
87
- });
88
- c = A ?? c, s = p ?? s, i = {
89
- ...i,
90
- [x]: {
91
- ...i[x],
92
- ...v
93
- }
94
- }, w && l <= 50 && (l++, typeof w == "object" && (w.placement && (f = w.placement), w.rects && (h = w.rects === !0 ? await o.getElementRects({
95
- reference: t,
96
- floating: e,
97
- strategy: r
98
- }) : w.rects), {
99
- x: c,
100
- y: s
101
- } = I(h, f, u)), g = -1);
102
- }
103
- return {
104
- x: c,
105
- y: s,
106
- placement: f,
107
- strategy: r,
108
- middlewareData: i
109
- };
110
- };
111
- async function Y(t, e) {
112
- var d;
113
- e === void 0 && (e = {});
114
- const {
115
- x: a,
116
- y: r,
117
- platform: n,
118
- rects: o,
119
- elements: m,
120
- strategy: u
121
- } = t, {
122
- boundary: h = "clippingAncestors",
123
- rootBoundary: c = "viewport",
124
- elementContext: s = "floating",
125
- altBoundary: f = !1,
126
- padding: i = 0
127
- } = L(e, t), l = J(i), x = m[f ? s === "floating" ? "reference" : "floating" : s], y = _(await n.getClippingRect({
128
- element: (d = await (n.isElement == null ? void 0 : n.isElement(x))) == null || d ? x : x.contextElement || await (n.getDocumentElement == null ? void 0 : n.getDocumentElement(m.floating)),
129
- boundary: h,
130
- rootBoundary: c,
131
- strategy: u
132
- })), A = s === "floating" ? {
133
- x: a,
134
- y: r,
135
- width: o.floating.width,
136
- height: o.floating.height
137
- } : o.reference, p = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(m.floating)), v = await (n.isElement == null ? void 0 : n.isElement(p)) ? await (n.getScale == null ? void 0 : n.getScale(p)) || {
138
- x: 1,
139
- y: 1
140
- } : {
141
- x: 1,
142
- y: 1
143
- }, w = _(n.convertOffsetParentRelativeRectToViewportRelativeRect ? await n.convertOffsetParentRelativeRectToViewportRelativeRect({
144
- elements: m,
145
- rect: A,
146
- offsetParent: p,
147
- strategy: u
148
- }) : A);
149
- return {
150
- top: (y.top - w.top + l.top) / v.y,
151
- bottom: (w.bottom - y.bottom + l.bottom) / v.y,
152
- left: (y.left - w.left + l.left) / v.x,
153
- right: (w.right - y.right + l.right) / v.x
154
- };
155
- }
156
- const le = (t) => ({
157
- name: "arrow",
158
- options: t,
159
- async fn(e) {
160
- const {
161
- x: d,
162
- y: a,
163
- placement: r,
164
- rects: n,
165
- platform: o,
166
- elements: m,
167
- middlewareData: u
168
- } = e, {
169
- element: h,
170
- padding: c = 0
171
- } = L(t, e) || {};
172
- if (h == null)
173
- return {};
174
- const s = J(c), f = {
175
- x: d,
176
- y: a
177
- }, i = N(r), l = Q(i), g = await o.getDimensions(h), x = i === "y", y = x ? "top" : "left", A = x ? "bottom" : "right", p = x ? "clientHeight" : "clientWidth", v = n.reference[l] + n.reference[i] - f[i] - n.floating[l], w = f[i] - n.reference[i], P = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(h));
178
- let C = P ? P[p] : 0;
179
- (!C || !await (o.isElement == null ? void 0 : o.isElement(P))) && (C = m.floating[p] || n.floating[l]);
180
- const M = v / 2 - w / 2, k = C / 2 - g[l] / 2 - 1, O = $(s[y], k), H = $(s[A], k), D = O, F = C - g[l] - H, b = C / 2 - g[l] / 2 + M, B = X(D, b, F), E = !u.arrow && z(r) != null && b !== B && n.reference[l] / 2 - (b < D ? O : H) - g[l] / 2 < 0, S = E ? b < D ? b - D : b - F : 0;
181
- return {
182
- [i]: f[i] + S,
183
- data: {
184
- [i]: B,
185
- centerOffset: b - B - S,
186
- ...E && {
187
- alignmentOffset: S
188
- }
189
- },
190
- reset: E
191
- };
192
- }
193
- }), re = function(t) {
194
- return t === void 0 && (t = {}), {
195
- name: "flip",
196
- options: t,
197
- async fn(e) {
198
- var d, a;
199
- const {
200
- placement: r,
201
- middlewareData: n,
202
- rects: o,
203
- initialPlacement: m,
204
- platform: u,
205
- elements: h
206
- } = e, {
207
- mainAxis: c = !0,
208
- crossAxis: s = !0,
209
- fallbackPlacements: f,
210
- fallbackStrategy: i = "bestFit",
211
- fallbackAxisSideDirection: l = "none",
212
- flipAlignment: g = !0,
213
- ...x
214
- } = L(t, e);
215
- if ((d = n.arrow) != null && d.alignmentOffset)
216
- return {};
217
- const y = j(r), A = T(m), p = j(m) === m, v = await (u.isRTL == null ? void 0 : u.isRTL(h.floating)), w = f || (p || !g ? [ee(m)] : te(m)), P = l !== "none";
218
- !f && P && w.push(...ne(m, g, l, v));
219
- const C = [m, ...w], M = await Y(e, x), k = [];
220
- let O = ((a = n.flip) == null ? void 0 : a.overflows) || [];
221
- if (c && k.push(M[y]), s) {
222
- const b = ie(r, o, v);
223
- k.push(M[b[0]], M[b[1]]);
224
- }
225
- if (O = [...O, {
226
- placement: r,
227
- overflows: k
228
- }], !k.every((b) => b <= 0)) {
229
- var H, D;
230
- const b = (((H = n.flip) == null ? void 0 : H.index) || 0) + 1, B = C[b];
231
- if (B && (!(s === "alignment" ? A !== T(B) : !1) || // We leave the current main axis only if every placement on that axis
232
- // overflows the main axis.
233
- O.every((R) => T(R.placement) === A ? R.overflows[0] > 0 : !0)))
234
- return {
235
- data: {
236
- index: b,
237
- overflows: O
238
- },
239
- reset: {
240
- placement: B
241
- }
242
- };
243
- let E = (D = O.filter((S) => S.overflows[0] <= 0).sort((S, R) => S.overflows[1] - R.overflows[1])[0]) == null ? void 0 : D.placement;
244
- if (!E)
245
- switch (i) {
246
- case "bestFit": {
247
- var F;
248
- const S = (F = O.filter((R) => {
249
- if (P) {
250
- const V = T(R.placement);
251
- return V === A || // Create a bias to the `y` side axis due to horizontal
252
- // reading directions favoring greater width.
253
- V === "y";
254
- }
255
- return !0;
256
- }).map((R) => [R.placement, R.overflows.filter((V) => V > 0).reduce((V, Z) => V + Z, 0)]).sort((R, V) => R[1] - V[1])[0]) == null ? void 0 : F[0];
257
- S && (E = S);
258
- break;
259
- }
260
- case "initialPlacement":
261
- E = m;
262
- break;
263
- }
264
- if (r !== E)
265
- return {
266
- reset: {
267
- placement: E
268
- }
269
- };
270
- }
271
- return {};
272
- }
273
- };
274
- };
275
- function q(t, e) {
276
- return {
277
- top: t.top - e.height,
278
- right: t.right - e.width,
279
- bottom: t.bottom - e.height,
280
- left: t.left - e.width
281
- };
282
- }
283
- function G(t) {
284
- return se.some((e) => t[e] >= 0);
285
- }
286
- const fe = function(t) {
287
- return t === void 0 && (t = {}), {
288
- name: "hide",
289
- options: t,
290
- async fn(e) {
291
- const {
292
- rects: d
293
- } = e, {
294
- strategy: a = "referenceHidden",
295
- ...r
296
- } = L(t, e);
297
- switch (a) {
298
- case "referenceHidden": {
299
- const n = await Y(e, {
300
- ...r,
301
- elementContext: "reference"
302
- }), o = q(n, d.reference);
303
- return {
304
- data: {
305
- referenceHiddenOffsets: o,
306
- referenceHidden: G(o)
307
- }
308
- };
309
- }
310
- case "escaped": {
311
- const n = await Y(e, {
312
- ...r,
313
- altBoundary: !0
314
- }), o = q(n, d.floating);
315
- return {
316
- data: {
317
- escapedOffsets: o,
318
- escaped: G(o)
319
- }
320
- };
321
- }
322
- default:
323
- return {};
324
- }
325
- }
326
- };
327
- }, U = /* @__PURE__ */ new Set(["left", "top"]);
328
- async function oe(t, e) {
329
- const {
330
- placement: d,
331
- platform: a,
332
- elements: r
333
- } = t, n = await (a.isRTL == null ? void 0 : a.isRTL(r.floating)), o = j(d), m = z(d), u = T(d) === "y", h = U.has(o) ? -1 : 1, c = n && u ? -1 : 1, s = L(e, t);
334
- let {
335
- mainAxis: f,
336
- crossAxis: i,
337
- alignmentAxis: l
338
- } = typeof s == "number" ? {
339
- mainAxis: s,
340
- crossAxis: 0,
341
- alignmentAxis: null
342
- } : {
343
- mainAxis: s.mainAxis || 0,
344
- crossAxis: s.crossAxis || 0,
345
- alignmentAxis: s.alignmentAxis
346
- };
347
- return m && typeof l == "number" && (i = m === "end" ? l * -1 : l), u ? {
348
- x: i * c,
349
- y: f * h
350
- } : {
351
- x: f * h,
352
- y: i * c
353
- };
354
- }
355
- const me = function(t) {
356
- return t === void 0 && (t = 0), {
357
- name: "offset",
358
- options: t,
359
- async fn(e) {
360
- var d, a;
361
- const {
362
- x: r,
363
- y: n,
364
- placement: o,
365
- middlewareData: m
366
- } = e, u = await oe(e, t);
367
- return o === ((d = m.offset) == null ? void 0 : d.placement) && (a = m.arrow) != null && a.alignmentOffset ? {} : {
368
- x: r + u.x,
369
- y: n + u.y,
370
- data: {
371
- ...u,
372
- placement: o
373
- }
374
- };
375
- }
376
- };
377
- }, de = function(t) {
378
- return t === void 0 && (t = {}), {
379
- name: "shift",
380
- options: t,
381
- async fn(e) {
382
- const {
383
- x: d,
384
- y: a,
385
- placement: r
386
- } = e, {
387
- mainAxis: n = !0,
388
- crossAxis: o = !1,
389
- limiter: m = {
390
- fn: (x) => {
391
- let {
392
- x: y,
393
- y: A
394
- } = x;
395
- return {
396
- x: y,
397
- y: A
398
- };
399
- }
400
- },
401
- ...u
402
- } = L(t, e), h = {
403
- x: d,
404
- y: a
405
- }, c = await Y(e, u), s = T(j(r)), f = K(s);
406
- let i = h[f], l = h[s];
407
- if (n) {
408
- const x = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", A = i + c[x], p = i - c[y];
409
- i = X(A, i, p);
410
- }
411
- if (o) {
412
- const x = s === "y" ? "top" : "left", y = s === "y" ? "bottom" : "right", A = l + c[x], p = l - c[y];
413
- l = X(A, l, p);
414
- }
415
- const g = m.fn({
416
- ...e,
417
- [f]: i,
418
- [s]: l
419
- });
420
- return {
421
- ...g,
422
- data: {
423
- x: g.x - d,
424
- y: g.y - a,
425
- enabled: {
426
- [f]: n,
427
- [s]: o
428
- }
429
- }
430
- };
431
- }
432
- };
433
- }, xe = function(t) {
434
- return t === void 0 && (t = {}), {
435
- options: t,
436
- fn(e) {
437
- const {
438
- x: d,
439
- y: a,
440
- placement: r,
441
- rects: n,
442
- middlewareData: o
443
- } = e, {
444
- offset: m = 0,
445
- mainAxis: u = !0,
446
- crossAxis: h = !0
447
- } = L(t, e), c = {
448
- x: d,
449
- y: a
450
- }, s = T(r), f = K(s);
451
- let i = c[f], l = c[s];
452
- const g = L(m, e), x = typeof g == "number" ? {
453
- mainAxis: g,
454
- crossAxis: 0
455
- } : {
456
- mainAxis: 0,
457
- crossAxis: 0,
458
- ...g
459
- };
460
- if (u) {
461
- const p = f === "y" ? "height" : "width", v = n.reference[f] - n.floating[p] + x.mainAxis, w = n.reference[f] + n.reference[p] - x.mainAxis;
462
- i < v ? i = v : i > w && (i = w);
463
- }
464
- if (h) {
465
- var y, A;
466
- const p = f === "y" ? "width" : "height", v = U.has(j(r)), w = n.reference[s] - n.floating[p] + (v && ((y = o.offset) == null ? void 0 : y[s]) || 0) + (v ? 0 : x.crossAxis), P = n.reference[s] + n.reference[p] + (v ? 0 : ((A = o.offset) == null ? void 0 : A[s]) || 0) - (v ? x.crossAxis : 0);
467
- l < w ? l = w : l > P && (l = P);
468
- }
469
- return {
470
- [f]: i,
471
- [s]: l
472
- };
473
- }
474
- };
475
- }, ge = function(t) {
476
- return t === void 0 && (t = {}), {
477
- name: "size",
478
- options: t,
479
- async fn(e) {
480
- var d, a;
481
- const {
482
- placement: r,
483
- rects: n,
484
- platform: o,
485
- elements: m
486
- } = e, {
487
- apply: u = () => {
488
- },
489
- ...h
490
- } = L(t, e), c = await Y(e, h), s = j(r), f = z(r), i = T(r) === "y", {
491
- width: l,
492
- height: g
493
- } = n.floating;
494
- let x, y;
495
- s === "top" || s === "bottom" ? (x = s, y = f === (await (o.isRTL == null ? void 0 : o.isRTL(m.floating)) ? "start" : "end") ? "left" : "right") : (y = s, x = f === "end" ? "top" : "bottom");
496
- const A = g - c.top - c.bottom, p = l - c.left - c.right, v = $(g - c[x], A), w = $(l - c[y], p), P = !e.middlewareData.shift;
497
- let C = v, M = w;
498
- if ((d = e.middlewareData.shift) != null && d.enabled.x && (M = p), (a = e.middlewareData.shift) != null && a.enabled.y && (C = A), P && !f) {
499
- const O = W(c.left, 0), H = W(c.right, 0), D = W(c.top, 0), F = W(c.bottom, 0);
500
- i ? M = l - 2 * (O !== 0 || H !== 0 ? O + H : W(c.left, c.right)) : C = g - 2 * (D !== 0 || F !== 0 ? D + F : W(c.top, c.bottom));
501
- }
502
- await u({
503
- ...e,
504
- availableWidth: M,
505
- availableHeight: C
506
- });
507
- const k = await o.getDimensions(m.floating);
508
- return l !== k.width || g !== k.height ? {
509
- reset: {
510
- rects: !0
511
- }
512
- } : {};
513
- }
514
- };
515
- };
1
+ var r = {};
516
2
  export {
517
- le as arrow,
518
- ce as computePosition,
519
- Y as detectOverflow,
520
- re as flip,
521
- fe as hide,
522
- xe as limitShift,
523
- me as offset,
524
- _ as rectToClientRect,
525
- de as shift,
526
- ge as size
3
+ r as __exports
527
4
  };