@datawire-ai/busyfile-design-library 1.30.3 → 1.30.5

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 (312) hide show
  1. package/dist/index10.js +46 -46
  2. package/dist/index100.js +14 -69
  3. package/dist/index101.js +15 -10
  4. package/dist/index102.js +8 -125
  5. package/dist/index103.js +48 -134
  6. package/dist/index104.js +649 -13
  7. package/dist/index105.js +13 -15
  8. package/dist/index106.js +227 -9
  9. package/dist/index107.js +219 -49
  10. package/dist/index108.js +27 -179
  11. package/dist/index109.js +10 -7
  12. package/dist/index11.js +6 -6
  13. package/dist/index110.js +3 -219
  14. package/dist/index111.js +13 -30
  15. package/dist/index112.js +3 -10
  16. package/dist/index113.js +47 -4
  17. package/dist/index114.js +7 -12
  18. package/dist/index115.js +14 -13
  19. package/dist/index116.js +178 -223
  20. package/dist/index117.js +23 -649
  21. package/dist/index118.js +22 -15
  22. package/dist/index119.js +39 -4
  23. package/dist/index12.js +67 -67
  24. package/dist/index120.js +18 -47
  25. package/dist/index121.js +12 -25
  26. package/dist/index122.js +205 -21
  27. package/dist/index123.js +21 -38
  28. package/dist/index124.js +399 -17
  29. package/dist/index125.js +6 -2
  30. package/dist/index126.js +25 -2
  31. package/dist/index127.js +29 -12
  32. package/dist/index128.js +5 -206
  33. package/dist/index129.js +2 -22
  34. package/dist/index13.js +95 -95
  35. package/dist/index130.js +47 -394
  36. package/dist/index131.js +65 -6
  37. package/dist/index132.js +52 -25
  38. package/dist/index133.js +5 -29
  39. package/dist/index134.js +5 -5
  40. package/dist/index135.js +16 -2
  41. package/dist/index136.js +5 -52
  42. package/dist/index137.js +8 -64
  43. package/dist/index138.js +17 -52
  44. package/dist/index139.js +4 -4
  45. package/dist/index14.js +15 -15
  46. package/dist/index140.js +3 -3
  47. package/dist/index141.js +5 -15
  48. package/dist/index142.js +5 -5
  49. package/dist/index143.js +3 -7
  50. package/dist/index144.js +4 -16
  51. package/dist/index145.js +6 -4
  52. package/dist/index146.js +24 -4
  53. package/dist/index147.js +6 -5
  54. package/dist/index148.js +4 -5
  55. package/dist/index149.js +5 -3
  56. package/dist/index15.js +54 -54
  57. package/dist/index150.js +4 -3
  58. package/dist/index151.js +4 -6
  59. package/dist/index152.js +5 -24
  60. package/dist/index153.js +4 -6
  61. package/dist/index154.js +7 -3
  62. package/dist/index155.js +5 -6
  63. package/dist/index156.js +4 -5
  64. package/dist/index157.js +3 -3
  65. package/dist/index158.js +5 -4
  66. package/dist/index159.js +58 -4
  67. package/dist/index16.js +12 -12
  68. package/dist/index160.js +65 -7
  69. package/dist/index161.js +240 -5
  70. package/dist/index162.js +39 -4
  71. package/dist/index163.js +4 -4
  72. package/dist/index164.js +7 -6
  73. package/dist/index165.js +13 -58
  74. package/dist/index166.js +7 -66
  75. package/dist/index167.js +10 -240
  76. package/dist/index168.js +9 -38
  77. package/dist/index169.js +8 -4
  78. package/dist/index17.js +30 -30
  79. package/dist/index170.js +16 -7
  80. package/dist/index171.js +24 -14
  81. package/dist/index172.js +20 -8
  82. package/dist/index173.js +52 -9
  83. package/dist/index174.js +41 -10
  84. package/dist/index175.js +9 -8
  85. package/dist/index176.js +20 -16
  86. package/dist/index177.js +17 -24
  87. package/dist/index178.js +7 -20
  88. package/dist/index179.js +23 -53
  89. package/dist/index18.js +18 -18
  90. package/dist/index180.js +19 -42
  91. package/dist/index181.js +16 -10
  92. package/dist/index182.js +6 -20
  93. package/dist/index183.js +4 -16
  94. package/dist/index184.js +4 -6
  95. package/dist/index185.js +4 -23
  96. package/dist/index186.js +5 -19
  97. package/dist/index187.js +4 -16
  98. package/dist/index188.js +5 -5
  99. package/dist/index189.js +7 -4
  100. package/dist/index19.js +29 -29
  101. package/dist/index190.js +6 -4
  102. package/dist/index191.js +5 -4
  103. package/dist/index192.js +3 -4
  104. package/dist/index193.js +1 -1
  105. package/dist/index194.js +3 -6
  106. package/dist/index195.js +3 -7
  107. package/dist/index196.js +4 -6
  108. package/dist/index197.js +3 -5
  109. package/dist/index198.js +3 -3
  110. package/dist/index199.js +3 -3
  111. package/dist/index20.js +6 -6
  112. package/dist/index200.js +5 -4
  113. package/dist/index201.js +3 -4
  114. package/dist/index202.js +23 -4
  115. package/dist/index203.js +109 -3
  116. package/dist/index204.js +15 -3
  117. package/dist/index205.js +524 -3
  118. package/dist/index206.js +128 -5
  119. package/dist/index207.js +134 -3
  120. package/dist/index208.js +2 -24
  121. package/dist/index209.js +2 -110
  122. package/dist/index21.js +22 -22
  123. package/dist/index210.js +8 -15
  124. package/dist/index211.js +17 -522
  125. package/dist/index212.js +15 -126
  126. package/dist/index213.js +4 -132
  127. package/dist/index214.js +6 -2
  128. package/dist/index215.js +7 -2
  129. package/dist/index216.js +4 -8
  130. package/dist/index217.js +7 -19
  131. package/dist/index218.js +17 -16
  132. package/dist/index219.js +5 -5
  133. package/dist/index22.js +31 -32
  134. package/dist/index220.js +5 -5
  135. package/dist/index221.js +13 -6
  136. package/dist/index222.js +10 -4
  137. package/dist/index223.js +14 -7
  138. package/dist/index224.js +5 -17
  139. package/dist/index225.js +6 -5
  140. package/dist/index226.js +8 -5
  141. package/dist/index227.js +6 -13
  142. package/dist/index228.js +56 -10
  143. package/dist/index229.js +9 -14
  144. package/dist/index23.js +24 -24
  145. package/dist/index230.js +3 -3
  146. package/dist/index231.js +5 -6
  147. package/dist/index232.js +9 -8
  148. package/dist/index233.js +4 -5
  149. package/dist/index234.js +5 -56
  150. package/dist/index235.js +4 -9
  151. package/dist/index236.js +11 -5
  152. package/dist/index237.js +10 -5
  153. package/dist/index238.js +10 -9
  154. package/dist/index239.js +11 -5
  155. package/dist/index24.js +6 -6
  156. package/dist/index240.js +11 -5
  157. package/dist/index241.js +10 -4
  158. package/dist/index242.js +7 -11
  159. package/dist/index243.js +6 -10
  160. package/dist/index244.js +4 -9
  161. package/dist/index245.js +6 -11
  162. package/dist/index246.js +8 -11
  163. package/dist/index247.js +6 -10
  164. package/dist/index248.js +23 -7
  165. package/dist/index249.js +18 -6
  166. package/dist/index25.js +10 -10
  167. package/dist/index250.js +7 -5
  168. package/dist/index251.js +10 -6
  169. package/dist/index252.js +10 -8
  170. package/dist/index253.js +21 -6
  171. package/dist/index254.js +10 -23
  172. package/dist/index255.js +9 -18
  173. package/dist/index256.js +9 -7
  174. package/dist/index257.js +4 -10
  175. package/dist/index258.js +5 -10
  176. package/dist/index259.js +16 -21
  177. package/dist/index26.js +10 -10
  178. package/dist/index260.js +9 -10
  179. package/dist/index261.js +18 -9
  180. package/dist/index262.js +15 -9
  181. package/dist/index263.js +12 -4
  182. package/dist/index264.js +29 -5
  183. package/dist/index265.js +11 -15
  184. package/dist/index266.js +25 -9
  185. package/dist/index267.js +5 -18
  186. package/dist/index268.js +62 -13
  187. package/dist/index269.js +69 -13
  188. package/dist/index27.js +21 -21
  189. package/dist/index270.js +9 -30
  190. package/dist/index271.js +13 -12
  191. package/dist/index272.js +63 -23
  192. package/dist/index273.js +68 -6
  193. package/dist/index274.js +31 -65
  194. package/dist/index275.js +9 -69
  195. package/dist/index276.js +152 -8
  196. package/dist/index277.js +107 -13
  197. package/dist/index278.js +5 -66
  198. package/dist/index279.js +13 -68
  199. package/dist/index28.js +202 -214
  200. package/dist/index280.js +4 -31
  201. package/dist/index281.js +23 -9
  202. package/dist/index282.js +7 -153
  203. package/dist/index283.js +16 -108
  204. package/dist/index284.js +28 -4
  205. package/dist/index285.js +12 -12
  206. package/dist/index286.js +5 -3
  207. package/dist/index287.js +5 -22
  208. package/dist/index288.js +4 -6
  209. package/dist/index289.js +15 -5
  210. package/dist/index29.js +42 -42
  211. package/dist/index290.js +9 -4
  212. package/dist/index291.js +5 -15
  213. package/dist/index292.js +4 -8
  214. package/dist/index293.js +512 -5
  215. package/dist/index294.js +50 -5
  216. package/dist/index295.js +15 -510
  217. package/dist/index296.js +7 -50
  218. package/dist/index297.js +8 -17
  219. package/dist/index298.js +7 -6
  220. package/dist/index299.js +8 -8
  221. package/dist/index3.js +13 -14
  222. package/dist/index30.js +113 -113
  223. package/dist/index300.js +12 -7
  224. package/dist/index301.js +10 -8
  225. package/dist/index302.js +14 -12
  226. package/dist/index303.js +23 -11
  227. package/dist/index304.js +13 -15
  228. package/dist/index305.js +27 -6
  229. package/dist/index306.js +5 -16
  230. package/dist/index307.js +4 -28
  231. package/dist/index308.js +57 -13
  232. package/dist/index31.js +18 -18
  233. package/dist/index32.js +3 -3
  234. package/dist/index33.js +102 -86
  235. package/dist/index34.js +13 -13
  236. package/dist/index35.js +60 -60
  237. package/dist/index36.js +92 -92
  238. package/dist/index4.js +9 -9
  239. package/dist/index40.js +57 -6
  240. package/dist/index41.js +25 -55
  241. package/dist/index42.js +130 -25
  242. package/dist/index43.js +23 -132
  243. package/dist/index44.js +238 -23
  244. package/dist/index45.js +29 -238
  245. package/dist/index46.js +251 -29
  246. package/dist/index47.js +18 -251
  247. package/dist/index48.js +10 -18
  248. package/dist/index49.js +261 -10
  249. package/dist/index5.js +18 -18
  250. package/dist/index50.js +13 -261
  251. package/dist/index51.js +31 -13
  252. package/dist/index52.js +334 -26
  253. package/dist/index53.js +37 -335
  254. package/dist/index54.js +23 -37
  255. package/dist/index55.js +8 -16
  256. package/dist/index56.js +5 -11
  257. package/dist/index57.js +3 -6
  258. package/dist/index58.js +13 -10
  259. package/dist/index59.js +74 -12
  260. package/dist/index6.js +8 -8
  261. package/dist/index60.js +83 -69
  262. package/dist/index61.js +13 -89
  263. package/dist/index62.js +11 -5
  264. package/dist/index63.js +20 -17
  265. package/dist/index64.js +69 -20
  266. package/dist/index65.js +15 -71
  267. package/dist/index66.js +13 -9
  268. package/dist/index67.js +7 -7
  269. package/dist/index68.js +8 -13
  270. package/dist/index69.js +2 -14
  271. package/dist/index7.js +46 -46
  272. package/dist/index70.js +10 -2
  273. package/dist/index71.js +8 -4
  274. package/dist/index72.js +6 -14
  275. package/dist/index73.js +13 -6
  276. package/dist/index74.js +22 -13
  277. package/dist/index75.js +160 -19
  278. package/dist/index76.js +21 -161
  279. package/dist/index77.js +33 -23
  280. package/dist/index78.js +13 -33
  281. package/dist/index79.js +10 -4
  282. package/dist/index8.js +25 -28
  283. package/dist/index80.js +174 -17
  284. package/dist/index81.js +10 -176
  285. package/dist/index82.js +862 -10
  286. package/dist/index83.js +27 -853
  287. package/dist/index84.js +10 -36
  288. package/dist/index85.js +243 -10
  289. package/dist/index86.js +298 -230
  290. package/dist/index87.js +216 -300
  291. package/dist/index88.js +10 -227
  292. package/dist/index89.js +27 -10
  293. package/dist/index9.js +19 -19
  294. package/dist/index90.js +68 -2
  295. package/dist/index91.js +6 -32
  296. package/dist/index92.js +51 -242
  297. package/dist/index93.js +5 -26
  298. package/dist/index94.js +24 -6
  299. package/dist/index95.js +65 -63
  300. package/dist/index96.js +33 -51
  301. package/dist/index97.js +10 -5
  302. package/dist/index98.js +124 -23
  303. package/dist/index99.js +134 -32
  304. package/dist/style.css +1 -1
  305. package/dist/types/index.d.ts +4 -1
  306. package/package.json +6 -7
  307. package/dist/index309.js +0 -25
  308. package/dist/index310.js +0 -15
  309. package/dist/index311.js +0 -30
  310. package/dist/index312.js +0 -7
  311. package/dist/index313.js +0 -7
  312. package/dist/index314.js +0 -59
package/dist/index92.js CHANGED
@@ -1,245 +1,54 @@
1
- import { __exports as s } from "./index126.js";
2
- import J from "react";
3
- /**
4
- * @license React
5
- * react-jsx-runtime.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 j;
13
- function Z() {
14
- return j ? s : (j = 1, process.env.NODE_ENV !== "production" && function() {
15
- function l(e) {
16
- if (e == null) return null;
17
- if (typeof e == "function")
18
- return e.$$typeof === X ? null : e.displayName || e.name || null;
19
- if (typeof e == "string") return e;
20
- switch (e) {
21
- case f:
22
- return "Fragment";
23
- case F:
24
- return "Profiler";
25
- case D:
26
- return "StrictMode";
27
- case M:
28
- return "Suspense";
29
- case z:
30
- return "SuspenseList";
31
- case G:
32
- return "Activity";
33
- }
34
- if (typeof e == "object")
35
- switch (typeof e.tag == "number" && console.error(
36
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
37
- ), e.$$typeof) {
38
- case $:
39
- return "Portal";
40
- case L:
41
- return e.displayName || "Context";
42
- case W:
43
- return (e._context.displayName || "Context") + ".Consumer";
44
- case U:
45
- var r = e.render;
46
- return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
47
- case V:
48
- return r = e.displayName || null, r !== null ? r : l(e.type) || "Memo";
49
- case m:
50
- r = e._payload, e = e._init;
51
- try {
52
- return l(e(r));
53
- } catch {
54
- }
55
- }
56
- return null;
57
- }
58
- function R(e) {
59
- return "" + e;
60
- }
61
- function T(e) {
62
- try {
63
- R(e);
64
- var r = !1;
65
- } catch {
66
- r = !0;
67
- }
68
- if (r) {
69
- r = console;
70
- var t = r.error, a = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
71
- return t.call(
72
- r,
73
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
74
- a
75
- ), R(e);
76
- }
77
- }
78
- function i(e) {
79
- if (e === f) return "<>";
80
- if (typeof e == "object" && e !== null && e.$$typeof === m)
81
- return "<...>";
82
- try {
83
- var r = l(e);
84
- return r ? "<" + r + ">" : "<...>";
85
- } catch {
86
- return "<...>";
87
- }
88
- }
89
- function N() {
90
- var e = _.A;
91
- return e === null ? null : e.getOwner();
92
- }
93
- function p() {
94
- return Error("react-stack-top-frame");
95
- }
96
- function C(e) {
97
- if (y.call(e, "key")) {
98
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
99
- if (r && r.isReactWarning) return !1;
100
- }
101
- return e.key !== void 0;
102
- }
103
- function x(e, r) {
104
- function t() {
105
- A || (A = !0, console.error(
106
- "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
107
- r
108
- ));
109
- }
110
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
111
- get: t,
112
- configurable: !0
113
- });
114
- }
115
- function Y() {
116
- var e = l(this.type);
117
- return S[e] || (S[e] = !0, console.error(
118
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
119
- )), e = this.props.ref, e !== void 0 ? e : null;
120
- }
121
- function I(e, r, t, a, u, b) {
122
- var n = t.ref;
123
- return e = {
124
- $$typeof: g,
125
- type: e,
126
- key: r,
127
- props: t,
128
- _owner: a
129
- }, (n !== void 0 ? n : null) !== null ? Object.defineProperty(e, "ref", {
130
- enumerable: !1,
131
- get: Y
132
- }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
133
- configurable: !1,
134
- enumerable: !1,
135
- writable: !0,
136
- value: 0
137
- }), Object.defineProperty(e, "_debugInfo", {
138
- configurable: !1,
139
- enumerable: !1,
140
- writable: !0,
141
- value: null
142
- }), Object.defineProperty(e, "_debugStack", {
143
- configurable: !1,
144
- enumerable: !1,
145
- writable: !0,
146
- value: u
147
- }), Object.defineProperty(e, "_debugTask", {
148
- configurable: !1,
149
- enumerable: !1,
150
- writable: !0,
151
- value: b
152
- }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
153
- }
154
- function v(e, r, t, a, u, b) {
155
- var n = r.children;
156
- if (n !== void 0)
157
- if (a)
158
- if (q(n)) {
159
- for (a = 0; a < n.length; a++)
160
- O(n[a]);
161
- Object.freeze && Object.freeze(n);
162
- } else
163
- console.error(
164
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
165
- );
166
- else O(n);
167
- if (y.call(r, "key")) {
168
- n = l(e);
169
- var o = Object.keys(r).filter(function(K) {
170
- return K !== "key";
171
- });
172
- a = 0 < o.length ? "{key: someKey, " + o.join(": ..., ") + ": ...}" : "{key: someKey}", h[n + a] || (o = 0 < o.length ? "{" + o.join(": ..., ") + ": ...}" : "{}", console.error(
173
- `A props object containing a "key" prop is being spread into JSX:
174
- let props = %s;
175
- <%s {...props} />
176
- React keys must be passed directly to JSX without using spread:
177
- let props = %s;
178
- <%s key={someKey} {...props} />`,
179
- a,
180
- n,
181
- o,
182
- n
183
- ), h[n + a] = !0);
184
- }
185
- if (n = null, t !== void 0 && (T(t), n = "" + t), C(r) && (T(r.key), n = "" + r.key), "key" in r) {
186
- t = {};
187
- for (var E in r)
188
- E !== "key" && (t[E] = r[E]);
189
- } else t = r;
190
- return n && x(
191
- t,
192
- typeof e == "function" ? e.displayName || e.name || "Unknown" : e
193
- ), I(
194
- e,
195
- n,
196
- t,
197
- N(),
198
- u,
199
- b
200
- );
201
- }
202
- function O(e) {
203
- k(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === m && (e._payload.status === "fulfilled" ? k(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
204
- }
205
- function k(e) {
206
- return typeof e == "object" && e !== null && e.$$typeof === g;
207
- }
208
- var c = J, g = Symbol.for("react.transitional.element"), $ = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), D = Symbol.for("react.strict_mode"), F = Symbol.for("react.profiler"), W = Symbol.for("react.consumer"), L = Symbol.for("react.context"), U = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), z = Symbol.for("react.suspense_list"), V = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), G = Symbol.for("react.activity"), X = Symbol.for("react.client.reference"), _ = c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, y = Object.prototype.hasOwnProperty, q = Array.isArray, d = console.createTask ? console.createTask : function() {
209
- return null;
210
- };
211
- c = {
212
- react_stack_bottom_frame: function(e) {
213
- return e();
214
- }
215
- };
216
- var A, S = {}, w = c.react_stack_bottom_frame.bind(
217
- c,
218
- p
219
- )(), P = d(i(p)), h = {};
220
- s.Fragment = f, s.jsx = function(e, r, t) {
221
- var a = 1e4 > _.recentlyCreatedOwnerStacks++;
222
- return v(
223
- e,
224
- r,
225
- t,
226
- !1,
227
- a ? Error("react-stack-top-frame") : w,
228
- a ? d(i(e)) : P
229
- );
230
- }, s.jsxs = function(e, r, t) {
231
- var a = 1e4 > _.recentlyCreatedOwnerStacks++;
232
- return v(
233
- e,
234
- r,
235
- t,
236
- !0,
237
- a ? Error("react-stack-top-frame") : w,
238
- a ? d(i(e)) : P
239
- );
240
- };
241
- }(), s);
1
+ import * as n from "react";
2
+ import { useLayoutEffect as v } from "./index110.js";
3
+ var E = n[" useInsertionEffect ".trim().toString()] || v;
4
+ function y({
5
+ prop: t,
6
+ defaultProp: u,
7
+ onChange: o = () => {
8
+ },
9
+ caller: i
10
+ }) {
11
+ const [l, e, r] = w({
12
+ defaultProp: u,
13
+ onChange: o
14
+ }), c = t !== void 0, a = c ? t : l;
15
+ {
16
+ const s = n.useRef(t !== void 0);
17
+ n.useEffect(() => {
18
+ const f = s.current;
19
+ f !== c && console.warn(
20
+ `${i} is changing from ${f ? "controlled" : "uncontrolled"} to ${c ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
21
+ ), s.current = c;
22
+ }, [c, i]);
23
+ }
24
+ const m = n.useCallback(
25
+ (s) => {
26
+ var f;
27
+ if (c) {
28
+ const d = R(s) ? s(t) : s;
29
+ d !== t && ((f = r.current) == null || f.call(r, d));
30
+ } else
31
+ e(s);
32
+ },
33
+ [c, t, e, r]
34
+ );
35
+ return [a, m];
36
+ }
37
+ function w({
38
+ defaultProp: t,
39
+ onChange: u
40
+ }) {
41
+ const [o, i] = n.useState(t), l = n.useRef(o), e = n.useRef(u);
42
+ return E(() => {
43
+ e.current = u;
44
+ }, [u]), n.useEffect(() => {
45
+ var r;
46
+ l.current !== o && ((r = e.current) == null || r.call(e, o), l.current = o);
47
+ }, [o, l]), [o, i, e];
48
+ }
49
+ function R(t) {
50
+ return typeof t == "function";
242
51
  }
243
52
  export {
244
- Z as __require
53
+ y as useControllableState
245
54
  };
package/dist/index93.js CHANGED
@@ -1,29 +1,8 @@
1
- import * as f from "react";
2
- function l(n, o) {
3
- if (typeof n == "function")
4
- return n(o);
5
- n != null && (n.current = o);
6
- }
7
- function i(...n) {
8
- return (o) => {
9
- let u = !1;
10
- const c = n.map((t) => {
11
- const e = l(t, o);
12
- return !u && typeof e == "function" && (u = !0), e;
13
- });
14
- if (u)
15
- return () => {
16
- for (let t = 0; t < c.length; t++) {
17
- const e = c[t];
18
- typeof e == "function" ? e() : l(n[t], null);
19
- }
20
- };
21
- };
22
- }
23
- function s(...n) {
24
- return f.useCallback(i(...n), n);
1
+ import * as u from "react";
2
+ function t(r) {
3
+ const e = u.useRef({ value: r, previous: r });
4
+ return u.useMemo(() => (e.current.value !== r && (e.current.previous = e.current.value, e.current.value = r), e.current.previous), [r]);
25
5
  }
26
6
  export {
27
- i as composeRefs,
28
- s as useComposedRefs
7
+ t as usePrevious
29
8
  };
package/dist/index94.js CHANGED
@@ -1,9 +1,27 @@
1
- function h(f, c, { checkForDefaultPrevented: p = !0 } = {}) {
2
- return function(s) {
3
- if (f == null || f(s), p === !1 || !s.defaultPrevented)
4
- return c == null ? void 0 : c(s);
5
- };
1
+ import * as h from "react";
2
+ import { useLayoutEffect as z } from "./index110.js";
3
+ function c(r) {
4
+ const [d, e] = h.useState(void 0);
5
+ return z(() => {
6
+ if (r) {
7
+ e({ width: r.offsetWidth, height: r.offsetHeight });
8
+ const f = new ResizeObserver((i) => {
9
+ if (!Array.isArray(i) || !i.length)
10
+ return;
11
+ const b = i[0];
12
+ let o, t;
13
+ if ("borderBoxSize" in b) {
14
+ const s = b.borderBoxSize, u = Array.isArray(s) ? s[0] : s;
15
+ o = u.inlineSize, t = u.blockSize;
16
+ } else
17
+ o = r.offsetWidth, t = r.offsetHeight;
18
+ e({ width: o, height: t });
19
+ });
20
+ return f.observe(r, { box: "border-box" }), () => f.unobserve(r);
21
+ } else
22
+ e(void 0);
23
+ }, [r]), d;
6
24
  }
7
25
  export {
8
- h as composeEventHandlers
26
+ c as useSize
9
27
  };
package/dist/index95.js CHANGED
@@ -1,70 +1,72 @@
1
- import * as u from "react";
2
- import { j as h } from "./index40.js";
3
- function j(e, c) {
4
- const o = u.createContext(c), a = (r) => {
5
- const { children: t, ...n } = r, s = u.useMemo(() => n, Object.values(n));
6
- return /* @__PURE__ */ h.jsx(o.Provider, { value: s, children: t });
7
- };
8
- a.displayName = e + "Provider";
9
- function i(r) {
10
- const t = u.useContext(o);
11
- if (t) return t;
12
- if (c !== void 0) return c;
13
- throw new Error(`\`${r}\` must be used within \`${e}\``);
14
- }
15
- return [a, i];
1
+ "use client";
2
+ import * as a from "react";
3
+ import { useComposedRefs as E } from "./index89.js";
4
+ import { useLayoutEffect as A } from "./index110.js";
5
+ function T(n, e) {
6
+ return a.useReducer((r, t) => e[r][t] ?? r, n);
16
7
  }
17
- function w(e, c = []) {
18
- let o = [];
19
- function a(r, t) {
20
- const n = u.createContext(t), s = o.length;
21
- o = [...o, t];
22
- const d = (m) => {
23
- var S;
24
- const { scope: x, children: C, ...p } = m, v = ((S = x == null ? void 0 : x[e]) == null ? void 0 : S[s]) || n, P = u.useMemo(() => p, Object.values(p));
25
- return /* @__PURE__ */ h.jsx(v.Provider, { value: P, children: C });
26
- };
27
- d.displayName = r + "Provider";
28
- function f(m, x) {
29
- var v;
30
- const C = ((v = x == null ? void 0 : x[e]) == null ? void 0 : v[s]) || n, p = u.useContext(C);
31
- if (p) return p;
32
- if (t !== void 0) return t;
33
- throw new Error(`\`${m}\` must be used within \`${r}\``);
8
+ var R = (n) => {
9
+ const { present: e, children: r } = n, t = v(e), i = typeof r == "function" ? r({ present: t.isPresent }) : a.Children.only(r), c = E(t.ref, P(i));
10
+ return typeof r == "function" || t.isPresent ? a.cloneElement(i, { ref: c }) : null;
11
+ };
12
+ R.displayName = "Presence";
13
+ function v(n) {
14
+ const [e, r] = a.useState(), t = a.useRef(null), i = a.useRef(n), c = a.useRef("none"), p = n ? "mounted" : "unmounted", [N, s] = T(p, {
15
+ mounted: {
16
+ UNMOUNT: "unmounted",
17
+ ANIMATION_OUT: "unmountSuspended"
18
+ },
19
+ unmountSuspended: {
20
+ MOUNT: "mounted",
21
+ ANIMATION_END: "unmounted"
22
+ },
23
+ unmounted: {
24
+ MOUNT: "mounted"
25
+ }
26
+ });
27
+ return a.useEffect(() => {
28
+ const o = l(t.current);
29
+ c.current = N === "mounted" ? o : "none";
30
+ }, [N]), A(() => {
31
+ const o = t.current, m = i.current;
32
+ if (m !== n) {
33
+ const f = c.current, u = l(o);
34
+ n ? s("MOUNT") : u === "none" || (o == null ? void 0 : o.display) === "none" ? s("UNMOUNT") : s(m && f !== u ? "ANIMATION_OUT" : "UNMOUNT"), i.current = n;
34
35
  }
35
- return [d, f];
36
- }
37
- const i = () => {
38
- const r = o.map((t) => u.createContext(t));
39
- return function(n) {
40
- const s = (n == null ? void 0 : n[e]) || r;
41
- return u.useMemo(
42
- () => ({ [`__scope${e}`]: { ...n, [e]: s } }),
43
- [n, s]
44
- );
45
- };
36
+ }, [n, s]), A(() => {
37
+ if (e) {
38
+ let o;
39
+ const m = e.ownerDocument.defaultView ?? window, d = (u) => {
40
+ const g = l(t.current).includes(CSS.escape(u.animationName));
41
+ if (u.target === e && g && (s("ANIMATION_END"), !i.current)) {
42
+ const O = e.style.animationFillMode;
43
+ e.style.animationFillMode = "forwards", o = m.setTimeout(() => {
44
+ e.style.animationFillMode === "forwards" && (e.style.animationFillMode = O);
45
+ });
46
+ }
47
+ }, f = (u) => {
48
+ u.target === e && (c.current = l(t.current));
49
+ };
50
+ return e.addEventListener("animationstart", f), e.addEventListener("animationcancel", d), e.addEventListener("animationend", d), () => {
51
+ m.clearTimeout(o), e.removeEventListener("animationstart", f), e.removeEventListener("animationcancel", d), e.removeEventListener("animationend", d);
52
+ };
53
+ } else
54
+ s("ANIMATION_END");
55
+ }, [e, s]), {
56
+ isPresent: ["mounted", "unmountSuspended"].includes(N),
57
+ ref: a.useCallback((o) => {
58
+ t.current = o ? getComputedStyle(o) : null, r(o);
59
+ }, [])
46
60
  };
47
- return i.scopeName = e, [a, l(i, ...c)];
48
61
  }
49
- function l(...e) {
50
- const c = e[0];
51
- if (e.length === 1) return c;
52
- const o = () => {
53
- const a = e.map((i) => ({
54
- useScope: i(),
55
- scopeName: i.scopeName
56
- }));
57
- return function(r) {
58
- const t = a.reduce((n, { useScope: s, scopeName: d }) => {
59
- const m = s(r)[`__scope${d}`];
60
- return { ...n, ...m };
61
- }, {});
62
- return u.useMemo(() => ({ [`__scope${c.scopeName}`]: t }), [t]);
63
- };
64
- };
65
- return o.scopeName = c.scopeName, o;
62
+ function l(n) {
63
+ return (n == null ? void 0 : n.animationName) || "none";
64
+ }
65
+ function P(n) {
66
+ var t, i;
67
+ let e = (t = Object.getOwnPropertyDescriptor(n.props, "ref")) == null ? void 0 : t.get, r = e && "isReactWarning" in e && e.isReactWarning;
68
+ return r ? n.ref : (e = (i = Object.getOwnPropertyDescriptor(n, "ref")) == null ? void 0 : i.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? n.props.ref : n.props.ref || n.ref);
66
69
  }
67
70
  export {
68
- j as createContext,
69
- w as createContextScope
71
+ R as Presence
70
72
  };
package/dist/index96.js CHANGED
@@ -1,54 +1,36 @@
1
- import * as n from "react";
2
- import { useLayoutEffect as v } from "./index113.js";
3
- var E = n[" useInsertionEffect ".trim().toString()] || v;
4
- function y({
5
- prop: t,
6
- defaultProp: u,
7
- onChange: o = () => {
8
- },
9
- caller: i
10
- }) {
11
- const [l, e, r] = w({
12
- defaultProp: u,
13
- onChange: o
14
- }), c = t !== void 0, a = c ? t : l;
15
- {
16
- const s = n.useRef(t !== void 0);
17
- n.useEffect(() => {
18
- const f = s.current;
19
- f !== c && console.warn(
20
- `${i} is changing from ${f ? "controlled" : "uncontrolled"} to ${c ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
21
- ), s.current = c;
22
- }, [c, i]);
23
- }
24
- const m = n.useCallback(
25
- (s) => {
26
- var f;
27
- if (c) {
28
- const d = R(s) ? s(t) : s;
29
- d !== t && ((f = r.current) == null || f.call(r, d));
30
- } else
31
- e(s);
32
- },
33
- [c, t, e, r]
34
- );
35
- return [a, m];
36
- }
37
- function w({
38
- defaultProp: t,
39
- onChange: u
40
- }) {
41
- const [o, i] = n.useState(t), l = n.useRef(o), e = n.useRef(u);
42
- return E(() => {
43
- e.current = u;
44
- }, [u]), n.useEffect(() => {
45
- var r;
46
- l.current !== o && ((r = e.current) == null || r.call(e, o), l.current = o);
47
- }, [o, l]), [o, i, e];
48
- }
49
- function R(t) {
50
- return typeof t == "function";
1
+ import * as f from "react";
2
+ import * as p from "react-dom";
3
+ import { createSlot as c } from "./index40.js";
4
+ import { jsx as l } from "react/jsx-runtime";
5
+ var u = [
6
+ "a",
7
+ "button",
8
+ "div",
9
+ "form",
10
+ "h2",
11
+ "h3",
12
+ "img",
13
+ "input",
14
+ "label",
15
+ "li",
16
+ "nav",
17
+ "ol",
18
+ "p",
19
+ "select",
20
+ "span",
21
+ "svg",
22
+ "ul"
23
+ ], h = u.reduce((t, i) => {
24
+ const o = c(`Primitive.${i}`), r = f.forwardRef((e, m) => {
25
+ const { asChild: s, ...a } = e, n = s ? o : i;
26
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(n, { ...a, ref: m });
27
+ });
28
+ return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
29
+ }, {});
30
+ function w(t, i) {
31
+ t && p.flushSync(() => t.dispatchEvent(i));
51
32
  }
52
33
  export {
53
- y as useControllableState
34
+ h as Primitive,
35
+ w as dispatchDiscreteCustomEvent
54
36
  };
package/dist/index97.js CHANGED
@@ -1,8 +1,13 @@
1
- import * as u from "react";
2
- function t(r) {
3
- const e = u.useRef({ value: r, previous: r });
4
- return u.useMemo(() => (e.current.value !== r && (e.current.previous = e.current.value, e.current.value = r), e.current.previous), [r]);
1
+ import * as e from "react";
2
+ import { useLayoutEffect as a } from "./index110.js";
3
+ var s = e[" useId ".trim().toString()] || (() => {
4
+ }), i = 0;
5
+ function d(r) {
6
+ const [t, o] = e.useState(s());
7
+ return a(() => {
8
+ o((u) => u ?? String(i++));
9
+ }, [r]), t ? `radix-${t}` : "";
5
10
  }
6
11
  export {
7
- t as usePrevious
12
+ d as useId
8
13
  };