@yselimcan/ui 0.0.8 → 0.0.10

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 (266) hide show
  1. package/dist/index.js +15277 -100
  2. package/dist/styles.css +1 -1
  3. package/package.json +7 -11
  4. package/dist/index10.js +0 -137
  5. package/dist/index100.js +0 -8
  6. package/dist/index101.js +0 -10
  7. package/dist/index102.js +0 -90
  8. package/dist/index103.js +0 -15
  9. package/dist/index104.js +0 -65
  10. package/dist/index105.js +0 -40
  11. package/dist/index106.js +0 -16
  12. package/dist/index107.js +0 -35
  13. package/dist/index108.js +0 -21
  14. package/dist/index109.js +0 -8
  15. package/dist/index11.js +0 -21
  16. package/dist/index110.js +0 -6
  17. package/dist/index111.js +0 -7
  18. package/dist/index112.js +0 -14
  19. package/dist/index113.js +0 -21
  20. package/dist/index114.js +0 -15
  21. package/dist/index115.js +0 -299
  22. package/dist/index116.js +0 -7
  23. package/dist/index117.js +0 -41
  24. package/dist/index118.js +0 -128
  25. package/dist/index119.js +0 -23
  26. package/dist/index12.js +0 -20
  27. package/dist/index120.js +0 -79
  28. package/dist/index121.js +0 -67
  29. package/dist/index122.js +0 -48
  30. package/dist/index123.js +0 -16
  31. package/dist/index124.js +0 -8
  32. package/dist/index125.js +0 -32
  33. package/dist/index126.js +0 -7
  34. package/dist/index127.js +0 -30
  35. package/dist/index128.js +0 -20
  36. package/dist/index129.js +0 -24
  37. package/dist/index13.js +0 -206
  38. package/dist/index130.js +0 -61
  39. package/dist/index131.js +0 -20
  40. package/dist/index132.js +0 -30
  41. package/dist/index133.js +0 -43
  42. package/dist/index134.js +0 -45
  43. package/dist/index135.js +0 -24
  44. package/dist/index136.js +0 -51
  45. package/dist/index137.js +0 -54
  46. package/dist/index138.js +0 -20
  47. package/dist/index139.js +0 -14
  48. package/dist/index14.js +0 -24
  49. package/dist/index140.js +0 -25
  50. package/dist/index141.js +0 -38
  51. package/dist/index142.js +0 -233
  52. package/dist/index143.js +0 -286
  53. package/dist/index144.js +0 -56
  54. package/dist/index145.js +0 -18
  55. package/dist/index146.js +0 -82
  56. package/dist/index147.js +0 -6
  57. package/dist/index148.js +0 -33
  58. package/dist/index149.js +0 -26
  59. package/dist/index15.js +0 -19
  60. package/dist/index150.js +0 -18
  61. package/dist/index151.js +0 -72
  62. package/dist/index152.js +0 -6
  63. package/dist/index153.js +0 -107
  64. package/dist/index154.js +0 -82
  65. package/dist/index155.js +0 -266
  66. package/dist/index156.js +0 -14
  67. package/dist/index157.js +0 -13
  68. package/dist/index158.js +0 -43
  69. package/dist/index159.js +0 -7
  70. package/dist/index16.js +0 -8
  71. package/dist/index160.js +0 -69
  72. package/dist/index161.js +0 -12
  73. package/dist/index162.js +0 -11
  74. package/dist/index163.js +0 -8
  75. package/dist/index164.js +0 -136
  76. package/dist/index165.js +0 -56
  77. package/dist/index166.js +0 -14
  78. package/dist/index167.js +0 -120
  79. package/dist/index168.js +0 -14
  80. package/dist/index169.js +0 -14
  81. package/dist/index17.js +0 -46
  82. package/dist/index170.js +0 -69
  83. package/dist/index171.js +0 -15
  84. package/dist/index172.js +0 -15
  85. package/dist/index173.js +0 -15
  86. package/dist/index174.js +0 -14
  87. package/dist/index175.js +0 -90
  88. package/dist/index176.js +0 -14
  89. package/dist/index177.js +0 -14
  90. package/dist/index178.js +0 -59
  91. package/dist/index179.js +0 -14
  92. package/dist/index18.js +0 -41
  93. package/dist/index180.js +0 -14
  94. package/dist/index181.js +0 -21
  95. package/dist/index182.js +0 -11
  96. package/dist/index183.js +0 -11
  97. package/dist/index184.js +0 -106
  98. package/dist/index185.js +0 -10
  99. package/dist/index186.js +0 -35
  100. package/dist/index187.js +0 -77
  101. package/dist/index188.js +0 -17
  102. package/dist/index189.js +0 -31
  103. package/dist/index19.js +0 -80
  104. package/dist/index190.js +0 -15
  105. package/dist/index191.js +0 -10
  106. package/dist/index192.js +0 -25
  107. package/dist/index193.js +0 -27
  108. package/dist/index194.js +0 -163
  109. package/dist/index195.js +0 -116
  110. package/dist/index196.js +0 -78
  111. package/dist/index197.js +0 -67
  112. package/dist/index198.js +0 -11
  113. package/dist/index199.js +0 -25
  114. package/dist/index20.js +0 -25
  115. package/dist/index200.js +0 -8
  116. package/dist/index201.js +0 -6
  117. package/dist/index202.js +0 -12
  118. package/dist/index203.js +0 -41
  119. package/dist/index204.js +0 -59
  120. package/dist/index205.js +0 -30
  121. package/dist/index206.js +0 -10
  122. package/dist/index207.js +0 -15
  123. package/dist/index208.js +0 -14
  124. package/dist/index209.js +0 -14
  125. package/dist/index21.js +0 -40
  126. package/dist/index210.js +0 -24
  127. package/dist/index211.js +0 -14
  128. package/dist/index212.js +0 -10
  129. package/dist/index213.js +0 -45
  130. package/dist/index214.js +0 -599
  131. package/dist/index215.js +0 -14
  132. package/dist/index216.js +0 -19
  133. package/dist/index217.js +0 -50
  134. package/dist/index218.js +0 -202
  135. package/dist/index219.js +0 -50
  136. package/dist/index22.js +0 -31
  137. package/dist/index220.js +0 -22
  138. package/dist/index221.js +0 -35
  139. package/dist/index222.js +0 -9
  140. package/dist/index223.js +0 -29
  141. package/dist/index224.js +0 -14
  142. package/dist/index225.js +0 -24
  143. package/dist/index226.js +0 -130
  144. package/dist/index227.js +0 -47
  145. package/dist/index228.js +0 -20
  146. package/dist/index229.js +0 -7
  147. package/dist/index23.js +0 -25
  148. package/dist/index230.js +0 -183
  149. package/dist/index231.js +0 -78
  150. package/dist/index232.js +0 -401
  151. package/dist/index233.js +0 -6
  152. package/dist/index234.js +0 -7
  153. package/dist/index235.js +0 -17
  154. package/dist/index236.js +0 -23
  155. package/dist/index237.js +0 -8
  156. package/dist/index238.js +0 -211
  157. package/dist/index239.js +0 -6
  158. package/dist/index24.js +0 -56
  159. package/dist/index240.js +0 -16
  160. package/dist/index241.js +0 -50
  161. package/dist/index242.js +0 -6
  162. package/dist/index243.js +0 -15
  163. package/dist/index244.js +0 -60
  164. package/dist/index245.js +0 -32
  165. package/dist/index246.js +0 -16
  166. package/dist/index247.js +0 -11
  167. package/dist/index248.js +0 -209
  168. package/dist/index249.js +0 -17
  169. package/dist/index25.js +0 -35
  170. package/dist/index250.js +0 -324
  171. package/dist/index251.js +0 -5
  172. package/dist/index252.js +0 -5
  173. package/dist/index253.js +0 -489
  174. package/dist/index254.js +0 -10
  175. package/dist/index255.js +0 -4
  176. package/dist/index256.js +0 -46
  177. package/dist/index257.js +0 -58
  178. package/dist/index258.js +0 -10
  179. package/dist/index259.js +0 -4
  180. package/dist/index26.js +0 -7
  181. package/dist/index260.js +0 -57
  182. package/dist/index261.js +0 -58
  183. package/dist/index262.js +0 -4
  184. package/dist/index263.js +0 -4
  185. package/dist/index264.js +0 -4
  186. package/dist/index265.js +0 -4
  187. package/dist/index27.js +0 -82
  188. package/dist/index28.js +0 -32
  189. package/dist/index29.js +0 -6
  190. package/dist/index3.js +0 -181
  191. package/dist/index30.js +0 -9
  192. package/dist/index31.js +0 -6
  193. package/dist/index32.js +0 -23
  194. package/dist/index33.js +0 -207
  195. package/dist/index34.js +0 -25
  196. package/dist/index35.js +0 -102
  197. package/dist/index36.js +0 -69
  198. package/dist/index37.js +0 -66
  199. package/dist/index38.js +0 -113
  200. package/dist/index39.js +0 -53
  201. package/dist/index4.js +0 -47
  202. package/dist/index40.js +0 -35
  203. package/dist/index41.js +0 -28
  204. package/dist/index42.js +0 -18
  205. package/dist/index43.js +0 -27
  206. package/dist/index44.js +0 -25
  207. package/dist/index45.js +0 -36
  208. package/dist/index46.js +0 -78
  209. package/dist/index47.js +0 -65
  210. package/dist/index48.js +0 -128
  211. package/dist/index49.js +0 -19
  212. package/dist/index5.js +0 -52
  213. package/dist/index50.js +0 -86
  214. package/dist/index51.js +0 -6
  215. package/dist/index52.js +0 -268
  216. package/dist/index53.js +0 -25
  217. package/dist/index54.js +0 -207
  218. package/dist/index55.js +0 -146
  219. package/dist/index56.js +0 -88
  220. package/dist/index57.js +0 -29
  221. package/dist/index58.js +0 -30
  222. package/dist/index59.js +0 -48
  223. package/dist/index6.js +0 -93
  224. package/dist/index60.js +0 -79
  225. package/dist/index61.js +0 -45
  226. package/dist/index62.js +0 -46
  227. package/dist/index63.js +0 -76
  228. package/dist/index64.js +0 -45
  229. package/dist/index65.js +0 -22
  230. package/dist/index66.js +0 -101
  231. package/dist/index67.js +0 -14
  232. package/dist/index68.js +0 -6
  233. package/dist/index69.js +0 -321
  234. package/dist/index7.js +0 -294
  235. package/dist/index70.js +0 -24
  236. package/dist/index71.js +0 -143
  237. package/dist/index72.js +0 -200
  238. package/dist/index73.js +0 -43
  239. package/dist/index74.js +0 -29
  240. package/dist/index75.js +0 -148
  241. package/dist/index76.js +0 -32
  242. package/dist/index77.js +0 -53
  243. package/dist/index78.js +0 -28
  244. package/dist/index79.js +0 -15
  245. package/dist/index8.js +0 -264
  246. package/dist/index80.js +0 -15
  247. package/dist/index81.js +0 -135
  248. package/dist/index82.js +0 -31
  249. package/dist/index83.js +0 -35
  250. package/dist/index84.js +0 -17
  251. package/dist/index85.js +0 -2765
  252. package/dist/index86.js +0 -14
  253. package/dist/index87.js +0 -57
  254. package/dist/index88.js +0 -98
  255. package/dist/index89.js +0 -21
  256. package/dist/index9.js +0 -197
  257. package/dist/index90.js +0 -18
  258. package/dist/index91.js +0 -35
  259. package/dist/index92.js +0 -14
  260. package/dist/index93.js +0 -92
  261. package/dist/index94.js +0 -7
  262. package/dist/index95.js +0 -69
  263. package/dist/index96.js +0 -11
  264. package/dist/index97.js +0 -16
  265. package/dist/index98.js +0 -6
  266. package/dist/index99.js +0 -6
package/dist/index253.js DELETED
@@ -1,489 +0,0 @@
1
- import { evaluate as R, getSide as E, getSideAxis as C, getOppositePlacement as Q, getExpandedPlacements as U, getOppositeAxisPlacements as Z, getAlignmentSides as ee, getAlignment as $, min as z, max as L, getPaddingObject as te, rectToClientRect as X, sides as ne, getAlignmentAxis as ie, getAxisLength as se, clamp as _, getOppositeAxis as J } from "./index226.js";
2
- function I(t, e, d) {
3
- let {
4
- reference: s,
5
- floating: c
6
- } = t;
7
- const n = C(e), a = ie(e), r = se(a), x = E(e), h = n === "y", o = s.x + s.width / 2 - c.width / 2, i = s.y + s.height / 2 - c.height / 2, f = s[r] / 2 - c[r] / 2;
8
- let l;
9
- switch (x) {
10
- case "top":
11
- l = {
12
- x: o,
13
- y: s.y - c.height
14
- };
15
- break;
16
- case "bottom":
17
- l = {
18
- x: o,
19
- y: s.y + s.height
20
- };
21
- break;
22
- case "right":
23
- l = {
24
- x: s.x + s.width,
25
- y: i
26
- };
27
- break;
28
- case "left":
29
- l = {
30
- x: s.x - c.width,
31
- y: i
32
- };
33
- break;
34
- default:
35
- l = {
36
- x: s.x,
37
- y: s.y
38
- };
39
- }
40
- switch ($(e)) {
41
- case "start":
42
- l[a] -= f * (d && h ? -1 : 1);
43
- break;
44
- case "end":
45
- l[a] += f * (d && h ? -1 : 1);
46
- break;
47
- }
48
- return l;
49
- }
50
- const le = async (t, e, d) => {
51
- const {
52
- placement: s = "bottom",
53
- strategy: c = "absolute",
54
- middleware: n = [],
55
- platform: a
56
- } = d, r = n.filter(Boolean), x = await (a.isRTL == null ? void 0 : a.isRTL(e));
57
- let h = await a.getElementRects({
58
- reference: t,
59
- floating: e,
60
- strategy: c
61
- }), {
62
- x: o,
63
- y: i
64
- } = I(h, s, x), f = s, l = {}, m = 0;
65
- for (let w = 0; w < r.length; w++) {
66
- const {
67
- name: u,
68
- fn: p
69
- } = r[w], {
70
- x: A,
71
- y: v,
72
- data: y,
73
- reset: g
74
- } = await p({
75
- x: o,
76
- y: i,
77
- initialPlacement: s,
78
- placement: f,
79
- strategy: c,
80
- middlewareData: l,
81
- rects: h,
82
- platform: a,
83
- elements: {
84
- reference: t,
85
- floating: e
86
- }
87
- });
88
- o = A ?? o, i = v ?? i, l = {
89
- ...l,
90
- [u]: {
91
- ...l[u],
92
- ...y
93
- }
94
- }, g && m <= 50 && (m++, typeof g == "object" && (g.placement && (f = g.placement), g.rects && (h = g.rects === !0 ? await a.getElementRects({
95
- reference: t,
96
- floating: e,
97
- strategy: c
98
- }) : g.rects), {
99
- x: o,
100
- y: i
101
- } = I(h, f, x)), w = -1);
102
- }
103
- return {
104
- x: o,
105
- y: i,
106
- placement: f,
107
- strategy: c,
108
- middlewareData: l
109
- };
110
- };
111
- async function W(t, e) {
112
- var d;
113
- e === void 0 && (e = {});
114
- const {
115
- x: s,
116
- y: c,
117
- platform: n,
118
- rects: a,
119
- elements: r,
120
- strategy: x
121
- } = t, {
122
- boundary: h = "clippingAncestors",
123
- rootBoundary: o = "viewport",
124
- elementContext: i = "floating",
125
- altBoundary: f = !1,
126
- padding: l = 0
127
- } = R(e, t), m = te(l), u = r[f ? i === "floating" ? "reference" : "floating" : i], p = X(await n.getClippingRect({
128
- element: (d = await (n.isElement == null ? void 0 : n.isElement(u))) == null || d ? u : u.contextElement || await (n.getDocumentElement == null ? void 0 : n.getDocumentElement(r.floating)),
129
- boundary: h,
130
- rootBoundary: o,
131
- strategy: x
132
- })), A = i === "floating" ? {
133
- x: s,
134
- y: c,
135
- width: a.floating.width,
136
- height: a.floating.height
137
- } : a.reference, v = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(r.floating)), y = await (n.isElement == null ? void 0 : n.isElement(v)) ? await (n.getScale == null ? void 0 : n.getScale(v)) || {
138
- x: 1,
139
- y: 1
140
- } : {
141
- x: 1,
142
- y: 1
143
- }, g = X(n.convertOffsetParentRelativeRectToViewportRelativeRect ? await n.convertOffsetParentRelativeRectToViewportRelativeRect({
144
- elements: r,
145
- rect: A,
146
- offsetParent: v,
147
- strategy: x
148
- }) : A);
149
- return {
150
- top: (p.top - g.top + m.top) / y.y,
151
- bottom: (g.bottom - p.bottom + m.bottom) / y.y,
152
- left: (p.left - g.left + m.left) / y.x,
153
- right: (g.right - p.right + m.right) / y.x
154
- };
155
- }
156
- const ce = function(t) {
157
- return t === void 0 && (t = {}), {
158
- name: "flip",
159
- options: t,
160
- async fn(e) {
161
- var d, s;
162
- const {
163
- placement: c,
164
- middlewareData: n,
165
- rects: a,
166
- initialPlacement: r,
167
- platform: x,
168
- elements: h
169
- } = e, {
170
- mainAxis: o = !0,
171
- crossAxis: i = !0,
172
- fallbackPlacements: f,
173
- fallbackStrategy: l = "bestFit",
174
- fallbackAxisSideDirection: m = "none",
175
- flipAlignment: w = !0,
176
- ...u
177
- } = R(t, e);
178
- if ((d = n.arrow) != null && d.alignmentOffset)
179
- return {};
180
- const p = E(c), A = C(r), v = E(r) === r, y = await (x.isRTL == null ? void 0 : x.isRTL(h.floating)), g = f || (v || !w ? [Q(r)] : U(r)), P = m !== "none";
181
- !f && P && g.push(...Z(r, w, m, y));
182
- const H = [r, ...g], k = await W(e, u), D = [];
183
- let O = ((s = n.flip) == null ? void 0 : s.overflows) || [];
184
- if (o && D.push(k[p]), i) {
185
- const M = ee(c, a, y);
186
- D.push(k[M[0]], k[M[1]]);
187
- }
188
- if (O = [...O, {
189
- placement: c,
190
- overflows: D
191
- }], !D.every((M) => M <= 0)) {
192
- var F, V;
193
- const M = (((F = n.flip) == null ? void 0 : F.index) || 0) + 1, Y = H[M];
194
- if (Y && (!(i === "alignment" ? A !== C(Y) : !1) || // We leave the current main axis only if every placement on that axis
195
- // overflows the main axis.
196
- O.every((b) => C(b.placement) === A ? b.overflows[0] > 0 : !0)))
197
- return {
198
- data: {
199
- index: M,
200
- overflows: O
201
- },
202
- reset: {
203
- placement: Y
204
- }
205
- };
206
- let j = (V = O.filter((T) => T.overflows[0] <= 0).sort((T, b) => T.overflows[1] - b.overflows[1])[0]) == null ? void 0 : V.placement;
207
- if (!j)
208
- switch (l) {
209
- case "bestFit": {
210
- var B;
211
- const T = (B = O.filter((b) => {
212
- if (P) {
213
- const S = C(b.placement);
214
- return S === A || // Create a bias to the `y` side axis due to horizontal
215
- // reading directions favoring greater width.
216
- S === "y";
217
- }
218
- return !0;
219
- }).map((b) => [b.placement, b.overflows.filter((S) => S > 0).reduce((S, N) => S + N, 0)]).sort((b, S) => b[1] - S[1])[0]) == null ? void 0 : B[0];
220
- T && (j = T);
221
- break;
222
- }
223
- case "initialPlacement":
224
- j = r;
225
- break;
226
- }
227
- if (c !== j)
228
- return {
229
- reset: {
230
- placement: j
231
- }
232
- };
233
- }
234
- return {};
235
- }
236
- };
237
- };
238
- function q(t, e) {
239
- return {
240
- top: t.top - e.height,
241
- right: t.right - e.width,
242
- bottom: t.bottom - e.height,
243
- left: t.left - e.width
244
- };
245
- }
246
- function G(t) {
247
- return ne.some((e) => t[e] >= 0);
248
- }
249
- const re = function(t) {
250
- return t === void 0 && (t = {}), {
251
- name: "hide",
252
- options: t,
253
- async fn(e) {
254
- const {
255
- rects: d
256
- } = e, {
257
- strategy: s = "referenceHidden",
258
- ...c
259
- } = R(t, e);
260
- switch (s) {
261
- case "referenceHidden": {
262
- const n = await W(e, {
263
- ...c,
264
- elementContext: "reference"
265
- }), a = q(n, d.reference);
266
- return {
267
- data: {
268
- referenceHiddenOffsets: a,
269
- referenceHidden: G(a)
270
- }
271
- };
272
- }
273
- case "escaped": {
274
- const n = await W(e, {
275
- ...c,
276
- altBoundary: !0
277
- }), a = q(n, d.floating);
278
- return {
279
- data: {
280
- escapedOffsets: a,
281
- escaped: G(a)
282
- }
283
- };
284
- }
285
- default:
286
- return {};
287
- }
288
- }
289
- };
290
- }, K = /* @__PURE__ */ new Set(["left", "top"]);
291
- async function oe(t, e) {
292
- const {
293
- placement: d,
294
- platform: s,
295
- elements: c
296
- } = t, n = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), a = E(d), r = $(d), x = C(d) === "y", h = K.has(a) ? -1 : 1, o = n && x ? -1 : 1, i = R(e, t);
297
- let {
298
- mainAxis: f,
299
- crossAxis: l,
300
- alignmentAxis: m
301
- } = typeof i == "number" ? {
302
- mainAxis: i,
303
- crossAxis: 0,
304
- alignmentAxis: null
305
- } : {
306
- mainAxis: i.mainAxis || 0,
307
- crossAxis: i.crossAxis || 0,
308
- alignmentAxis: i.alignmentAxis
309
- };
310
- return r && typeof m == "number" && (l = r === "end" ? m * -1 : m), x ? {
311
- x: l * o,
312
- y: f * h
313
- } : {
314
- x: f * h,
315
- y: l * o
316
- };
317
- }
318
- const fe = function(t) {
319
- return t === void 0 && (t = 0), {
320
- name: "offset",
321
- options: t,
322
- async fn(e) {
323
- var d, s;
324
- const {
325
- x: c,
326
- y: n,
327
- placement: a,
328
- middlewareData: r
329
- } = e, x = await oe(e, t);
330
- return a === ((d = r.offset) == null ? void 0 : d.placement) && (s = r.arrow) != null && s.alignmentOffset ? {} : {
331
- x: c + x.x,
332
- y: n + x.y,
333
- data: {
334
- ...x,
335
- placement: a
336
- }
337
- };
338
- }
339
- };
340
- }, me = function(t) {
341
- return t === void 0 && (t = {}), {
342
- name: "shift",
343
- options: t,
344
- async fn(e) {
345
- const {
346
- x: d,
347
- y: s,
348
- placement: c
349
- } = e, {
350
- mainAxis: n = !0,
351
- crossAxis: a = !1,
352
- limiter: r = {
353
- fn: (u) => {
354
- let {
355
- x: p,
356
- y: A
357
- } = u;
358
- return {
359
- x: p,
360
- y: A
361
- };
362
- }
363
- },
364
- ...x
365
- } = R(t, e), h = {
366
- x: d,
367
- y: s
368
- }, o = await W(e, x), i = C(E(c)), f = J(i);
369
- let l = h[f], m = h[i];
370
- if (n) {
371
- const u = f === "y" ? "top" : "left", p = f === "y" ? "bottom" : "right", A = l + o[u], v = l - o[p];
372
- l = _(A, l, v);
373
- }
374
- if (a) {
375
- const u = i === "y" ? "top" : "left", p = i === "y" ? "bottom" : "right", A = m + o[u], v = m - o[p];
376
- m = _(A, m, v);
377
- }
378
- const w = r.fn({
379
- ...e,
380
- [f]: l,
381
- [i]: m
382
- });
383
- return {
384
- ...w,
385
- data: {
386
- x: w.x - d,
387
- y: w.y - s,
388
- enabled: {
389
- [f]: n,
390
- [i]: a
391
- }
392
- }
393
- };
394
- }
395
- };
396
- }, de = function(t) {
397
- return t === void 0 && (t = {}), {
398
- options: t,
399
- fn(e) {
400
- const {
401
- x: d,
402
- y: s,
403
- placement: c,
404
- rects: n,
405
- middlewareData: a
406
- } = e, {
407
- offset: r = 0,
408
- mainAxis: x = !0,
409
- crossAxis: h = !0
410
- } = R(t, e), o = {
411
- x: d,
412
- y: s
413
- }, i = C(c), f = J(i);
414
- let l = o[f], m = o[i];
415
- const w = R(r, e), u = typeof w == "number" ? {
416
- mainAxis: w,
417
- crossAxis: 0
418
- } : {
419
- mainAxis: 0,
420
- crossAxis: 0,
421
- ...w
422
- };
423
- if (x) {
424
- const v = f === "y" ? "height" : "width", y = n.reference[f] - n.floating[v] + u.mainAxis, g = n.reference[f] + n.reference[v] - u.mainAxis;
425
- l < y ? l = y : l > g && (l = g);
426
- }
427
- if (h) {
428
- var p, A;
429
- const v = f === "y" ? "width" : "height", y = K.has(E(c)), g = n.reference[i] - n.floating[v] + (y && ((p = a.offset) == null ? void 0 : p[i]) || 0) + (y ? 0 : u.crossAxis), P = n.reference[i] + n.reference[v] + (y ? 0 : ((A = a.offset) == null ? void 0 : A[i]) || 0) - (y ? u.crossAxis : 0);
430
- m < g ? m = g : m > P && (m = P);
431
- }
432
- return {
433
- [f]: l,
434
- [i]: m
435
- };
436
- }
437
- };
438
- }, xe = function(t) {
439
- return t === void 0 && (t = {}), {
440
- name: "size",
441
- options: t,
442
- async fn(e) {
443
- var d, s;
444
- const {
445
- placement: c,
446
- rects: n,
447
- platform: a,
448
- elements: r
449
- } = e, {
450
- apply: x = () => {
451
- },
452
- ...h
453
- } = R(t, e), o = await W(e, h), i = E(c), f = $(c), l = C(c) === "y", {
454
- width: m,
455
- height: w
456
- } = n.floating;
457
- let u, p;
458
- i === "top" || i === "bottom" ? (u = i, p = f === (await (a.isRTL == null ? void 0 : a.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (p = i, u = f === "end" ? "top" : "bottom");
459
- const A = w - o.top - o.bottom, v = m - o.left - o.right, y = z(w - o[u], A), g = z(m - o[p], v), P = !e.middlewareData.shift;
460
- let H = y, k = g;
461
- if ((d = e.middlewareData.shift) != null && d.enabled.x && (k = v), (s = e.middlewareData.shift) != null && s.enabled.y && (H = A), P && !f) {
462
- const O = L(o.left, 0), F = L(o.right, 0), V = L(o.top, 0), B = L(o.bottom, 0);
463
- l ? k = m - 2 * (O !== 0 || F !== 0 ? O + F : L(o.left, o.right)) : H = w - 2 * (V !== 0 || B !== 0 ? V + B : L(o.top, o.bottom));
464
- }
465
- await x({
466
- ...e,
467
- availableWidth: k,
468
- availableHeight: H
469
- });
470
- const D = await a.getDimensions(r.floating);
471
- return m !== D.width || w !== D.height ? {
472
- reset: {
473
- rects: !0
474
- }
475
- } : {};
476
- }
477
- };
478
- };
479
- export {
480
- le as computePosition,
481
- W as detectOverflow,
482
- ce as flip,
483
- re as hide,
484
- de as limitShift,
485
- fe as offset,
486
- X as rectToClientRect,
487
- me as shift,
488
- xe as size
489
- };
package/dist/index254.js DELETED
@@ -1,10 +0,0 @@
1
- import { __module as r } from "./index255.js";
2
- import { __require as o } from "./index256.js";
3
- import { __require as i } from "./index257.js";
4
- var e;
5
- function u() {
6
- return e ? r.exports : (e = 1, process.env.NODE_ENV === "production" ? r.exports = o() : r.exports = i(), r.exports);
7
- }
8
- export {
9
- u as __require
10
- };
package/dist/index255.js DELETED
@@ -1,4 +0,0 @@
1
- var e = { exports: {} };
2
- export {
3
- e as __module
4
- };
package/dist/index256.js DELETED
@@ -1,46 +0,0 @@
1
- import { __exports as i } from "./index264.js";
2
- import h from "react";
3
- var f;
4
- function x() {
5
- if (f) return i;
6
- f = 1;
7
- var u = h;
8
- function s(e, t) {
9
- return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
10
- }
11
- var S = typeof Object.is == "function" ? Object.is : s, d = u.useState, l = u.useEffect, p = u.useLayoutEffect, E = u.useDebugValue;
12
- function v(e, t) {
13
- var r = t(), a = d({ inst: { value: r, getSnapshot: t } }), n = a[0].inst, c = a[1];
14
- return p(
15
- function() {
16
- n.value = r, n.getSnapshot = t, o(n) && c({ inst: n });
17
- },
18
- [e, r, t]
19
- ), l(
20
- function() {
21
- return o(n) && c({ inst: n }), e(function() {
22
- o(n) && c({ inst: n });
23
- });
24
- },
25
- [e]
26
- ), E(r), r;
27
- }
28
- function o(e) {
29
- var t = e.getSnapshot;
30
- e = e.value;
31
- try {
32
- var r = t();
33
- return !S(e, r);
34
- } catch {
35
- return !0;
36
- }
37
- }
38
- function y(e, t) {
39
- return t();
40
- }
41
- var m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? y : v;
42
- return i.useSyncExternalStore = u.useSyncExternalStore !== void 0 ? u.useSyncExternalStore : m, i;
43
- }
44
- export {
45
- x as __require
46
- };
package/dist/index257.js DELETED
@@ -1,58 +0,0 @@
1
- import { __exports as s } from "./index265.js";
2
- import h from "react";
3
- var l;
4
- function A() {
5
- return l ? s : (l = 1, process.env.NODE_ENV !== "production" && (function() {
6
- function d(e, t) {
7
- return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
8
- }
9
- function S(e, t) {
10
- f || o.startTransition === void 0 || (f = !0, console.error(
11
- "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."
12
- ));
13
- var r = t();
14
- if (!c) {
15
- var u = t();
16
- _(r, u) || (console.error(
17
- "The result of getSnapshot should be cached to avoid an infinite loop"
18
- ), c = !0);
19
- }
20
- u = p({
21
- inst: { value: r, getSnapshot: t }
22
- });
23
- var n = u[0].inst, i = u[1];
24
- return L(
25
- function() {
26
- n.value = r, n.getSnapshot = t, a(n) && i({ inst: n });
27
- },
28
- [e, r, t]
29
- ), E(
30
- function() {
31
- return a(n) && i({ inst: n }), e(function() {
32
- a(n) && i({ inst: n });
33
- });
34
- },
35
- [e]
36
- ), y(r), r;
37
- }
38
- function a(e) {
39
- var t = e.getSnapshot;
40
- e = e.value;
41
- try {
42
- var r = t();
43
- return !_(e, r);
44
- } catch {
45
- return !0;
46
- }
47
- }
48
- function O(e, t) {
49
- return t();
50
- }
51
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
52
- 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;
53
- 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());
54
- })(), s);
55
- }
56
- export {
57
- A as __require
58
- };
package/dist/index258.js DELETED
@@ -1,10 +0,0 @@
1
- import { __module as e } from "./index259.js";
2
- import { __require as o } from "./index260.js";
3
- import { __require as t } from "./index261.js";
4
- var r;
5
- function s() {
6
- return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = o() : e.exports = t(), e.exports);
7
- }
8
- export {
9
- s as __require
10
- };
package/dist/index259.js DELETED
@@ -1,4 +0,0 @@
1
- var e = { exports: {} };
2
- export {
3
- e as __module
4
- };
package/dist/index26.js DELETED
@@ -1,7 +0,0 @@
1
- import { useRenderElement as n } from "./index87.js";
2
- function r(e) {
3
- return n(e.defaultTagName ?? "div", e, e);
4
- }
5
- export {
6
- r as useRender
7
- };
package/dist/index260.js DELETED
@@ -1,57 +0,0 @@
1
- import { __exports as d } from "./index262.js";
2
- import q from "react";
3
- import { __require as w } from "./index254.js";
4
- var V;
5
- function k() {
6
- if (V) return d;
7
- V = 1;
8
- var a = q, j = w();
9
- function z(r, u) {
10
- return r === u && (r !== 0 || 1 / r === 1 / u) || r !== r && u !== u;
11
- }
12
- var M = typeof Object.is == "function" ? Object.is : z, W = j.useSyncExternalStore, h = a.useRef, y = a.useEffect, D = a.useMemo, O = a.useDebugValue;
13
- return d.useSyncExternalStoreWithSelector = function(r, u, m, v, t) {
14
- var i = h(null);
15
- if (i.current === null) {
16
- var f = { hasValue: !1, value: null };
17
- i.current = f;
18
- } else f = i.current;
19
- i = D(
20
- function() {
21
- function _(e) {
22
- if (!s) {
23
- if (s = !0, c = e, e = v(e), t !== void 0 && f.hasValue) {
24
- var o = f.value;
25
- if (t(o, e))
26
- return n = o;
27
- }
28
- return n = e;
29
- }
30
- if (o = n, M(c, e)) return o;
31
- var R = v(e);
32
- return t !== void 0 && t(o, R) ? (c = e, o) : (c = e, n = R);
33
- }
34
- var s = !1, c, n, b = m === void 0 ? null : m;
35
- return [
36
- function() {
37
- return _(u());
38
- },
39
- b === null ? void 0 : function() {
40
- return _(b());
41
- }
42
- ];
43
- },
44
- [u, m, v, t]
45
- );
46
- var l = W(r, i[0], i[1]);
47
- return y(
48
- function() {
49
- f.hasValue = !0, f.value = l;
50
- },
51
- [l]
52
- ), O(l), l;
53
- }, d;
54
- }
55
- export {
56
- k as __require
57
- };