@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.
- package/dist/index10.js +46 -46
- package/dist/index100.js +14 -69
- package/dist/index101.js +15 -10
- package/dist/index102.js +8 -125
- package/dist/index103.js +48 -134
- package/dist/index104.js +649 -13
- package/dist/index105.js +13 -15
- package/dist/index106.js +227 -9
- package/dist/index107.js +219 -49
- package/dist/index108.js +27 -179
- package/dist/index109.js +10 -7
- package/dist/index11.js +6 -6
- package/dist/index110.js +3 -219
- package/dist/index111.js +13 -30
- package/dist/index112.js +3 -10
- package/dist/index113.js +47 -4
- package/dist/index114.js +7 -12
- package/dist/index115.js +14 -13
- package/dist/index116.js +178 -223
- package/dist/index117.js +23 -649
- package/dist/index118.js +22 -15
- package/dist/index119.js +39 -4
- package/dist/index12.js +67 -67
- package/dist/index120.js +18 -47
- package/dist/index121.js +12 -25
- package/dist/index122.js +205 -21
- package/dist/index123.js +21 -38
- package/dist/index124.js +399 -17
- package/dist/index125.js +6 -2
- package/dist/index126.js +25 -2
- package/dist/index127.js +29 -12
- package/dist/index128.js +5 -206
- package/dist/index129.js +2 -22
- package/dist/index13.js +95 -95
- package/dist/index130.js +47 -394
- package/dist/index131.js +65 -6
- package/dist/index132.js +52 -25
- package/dist/index133.js +5 -29
- package/dist/index134.js +5 -5
- package/dist/index135.js +16 -2
- package/dist/index136.js +5 -52
- package/dist/index137.js +8 -64
- package/dist/index138.js +17 -52
- package/dist/index139.js +4 -4
- package/dist/index14.js +15 -15
- package/dist/index140.js +3 -3
- package/dist/index141.js +5 -15
- package/dist/index142.js +5 -5
- package/dist/index143.js +3 -7
- package/dist/index144.js +4 -16
- package/dist/index145.js +6 -4
- package/dist/index146.js +24 -4
- package/dist/index147.js +6 -5
- package/dist/index148.js +4 -5
- package/dist/index149.js +5 -3
- package/dist/index15.js +54 -54
- package/dist/index150.js +4 -3
- package/dist/index151.js +4 -6
- package/dist/index152.js +5 -24
- package/dist/index153.js +4 -6
- package/dist/index154.js +7 -3
- package/dist/index155.js +5 -6
- package/dist/index156.js +4 -5
- package/dist/index157.js +3 -3
- package/dist/index158.js +5 -4
- package/dist/index159.js +58 -4
- package/dist/index16.js +12 -12
- package/dist/index160.js +65 -7
- package/dist/index161.js +240 -5
- package/dist/index162.js +39 -4
- package/dist/index163.js +4 -4
- package/dist/index164.js +7 -6
- package/dist/index165.js +13 -58
- package/dist/index166.js +7 -66
- package/dist/index167.js +10 -240
- package/dist/index168.js +9 -38
- package/dist/index169.js +8 -4
- package/dist/index17.js +30 -30
- package/dist/index170.js +16 -7
- package/dist/index171.js +24 -14
- package/dist/index172.js +20 -8
- package/dist/index173.js +52 -9
- package/dist/index174.js +41 -10
- package/dist/index175.js +9 -8
- package/dist/index176.js +20 -16
- package/dist/index177.js +17 -24
- package/dist/index178.js +7 -20
- package/dist/index179.js +23 -53
- package/dist/index18.js +18 -18
- package/dist/index180.js +19 -42
- package/dist/index181.js +16 -10
- package/dist/index182.js +6 -20
- package/dist/index183.js +4 -16
- package/dist/index184.js +4 -6
- package/dist/index185.js +4 -23
- package/dist/index186.js +5 -19
- package/dist/index187.js +4 -16
- package/dist/index188.js +5 -5
- package/dist/index189.js +7 -4
- package/dist/index19.js +29 -29
- package/dist/index190.js +6 -4
- package/dist/index191.js +5 -4
- package/dist/index192.js +3 -4
- package/dist/index193.js +1 -1
- package/dist/index194.js +3 -6
- package/dist/index195.js +3 -7
- package/dist/index196.js +4 -6
- package/dist/index197.js +3 -5
- package/dist/index198.js +3 -3
- package/dist/index199.js +3 -3
- package/dist/index20.js +6 -6
- package/dist/index200.js +5 -4
- package/dist/index201.js +3 -4
- package/dist/index202.js +23 -4
- package/dist/index203.js +109 -3
- package/dist/index204.js +15 -3
- package/dist/index205.js +524 -3
- package/dist/index206.js +128 -5
- package/dist/index207.js +134 -3
- package/dist/index208.js +2 -24
- package/dist/index209.js +2 -110
- package/dist/index21.js +22 -22
- package/dist/index210.js +8 -15
- package/dist/index211.js +17 -522
- package/dist/index212.js +15 -126
- package/dist/index213.js +4 -132
- package/dist/index214.js +6 -2
- package/dist/index215.js +7 -2
- package/dist/index216.js +4 -8
- package/dist/index217.js +7 -19
- package/dist/index218.js +17 -16
- package/dist/index219.js +5 -5
- package/dist/index22.js +31 -32
- package/dist/index220.js +5 -5
- package/dist/index221.js +13 -6
- package/dist/index222.js +10 -4
- package/dist/index223.js +14 -7
- package/dist/index224.js +5 -17
- package/dist/index225.js +6 -5
- package/dist/index226.js +8 -5
- package/dist/index227.js +6 -13
- package/dist/index228.js +56 -10
- package/dist/index229.js +9 -14
- package/dist/index23.js +24 -24
- package/dist/index230.js +3 -3
- package/dist/index231.js +5 -6
- package/dist/index232.js +9 -8
- package/dist/index233.js +4 -5
- package/dist/index234.js +5 -56
- package/dist/index235.js +4 -9
- package/dist/index236.js +11 -5
- package/dist/index237.js +10 -5
- package/dist/index238.js +10 -9
- package/dist/index239.js +11 -5
- package/dist/index24.js +6 -6
- package/dist/index240.js +11 -5
- package/dist/index241.js +10 -4
- package/dist/index242.js +7 -11
- package/dist/index243.js +6 -10
- package/dist/index244.js +4 -9
- package/dist/index245.js +6 -11
- package/dist/index246.js +8 -11
- package/dist/index247.js +6 -10
- package/dist/index248.js +23 -7
- package/dist/index249.js +18 -6
- package/dist/index25.js +10 -10
- package/dist/index250.js +7 -5
- package/dist/index251.js +10 -6
- package/dist/index252.js +10 -8
- package/dist/index253.js +21 -6
- package/dist/index254.js +10 -23
- package/dist/index255.js +9 -18
- package/dist/index256.js +9 -7
- package/dist/index257.js +4 -10
- package/dist/index258.js +5 -10
- package/dist/index259.js +16 -21
- package/dist/index26.js +10 -10
- package/dist/index260.js +9 -10
- package/dist/index261.js +18 -9
- package/dist/index262.js +15 -9
- package/dist/index263.js +12 -4
- package/dist/index264.js +29 -5
- package/dist/index265.js +11 -15
- package/dist/index266.js +25 -9
- package/dist/index267.js +5 -18
- package/dist/index268.js +62 -13
- package/dist/index269.js +69 -13
- package/dist/index27.js +21 -21
- package/dist/index270.js +9 -30
- package/dist/index271.js +13 -12
- package/dist/index272.js +63 -23
- package/dist/index273.js +68 -6
- package/dist/index274.js +31 -65
- package/dist/index275.js +9 -69
- package/dist/index276.js +152 -8
- package/dist/index277.js +107 -13
- package/dist/index278.js +5 -66
- package/dist/index279.js +13 -68
- package/dist/index28.js +202 -214
- package/dist/index280.js +4 -31
- package/dist/index281.js +23 -9
- package/dist/index282.js +7 -153
- package/dist/index283.js +16 -108
- package/dist/index284.js +28 -4
- package/dist/index285.js +12 -12
- package/dist/index286.js +5 -3
- package/dist/index287.js +5 -22
- package/dist/index288.js +4 -6
- package/dist/index289.js +15 -5
- package/dist/index29.js +42 -42
- package/dist/index290.js +9 -4
- package/dist/index291.js +5 -15
- package/dist/index292.js +4 -8
- package/dist/index293.js +512 -5
- package/dist/index294.js +50 -5
- package/dist/index295.js +15 -510
- package/dist/index296.js +7 -50
- package/dist/index297.js +8 -17
- package/dist/index298.js +7 -6
- package/dist/index299.js +8 -8
- package/dist/index3.js +13 -14
- package/dist/index30.js +113 -113
- package/dist/index300.js +12 -7
- package/dist/index301.js +10 -8
- package/dist/index302.js +14 -12
- package/dist/index303.js +23 -11
- package/dist/index304.js +13 -15
- package/dist/index305.js +27 -6
- package/dist/index306.js +5 -16
- package/dist/index307.js +4 -28
- package/dist/index308.js +57 -13
- package/dist/index31.js +18 -18
- package/dist/index32.js +3 -3
- package/dist/index33.js +102 -86
- package/dist/index34.js +13 -13
- package/dist/index35.js +60 -60
- package/dist/index36.js +92 -92
- package/dist/index4.js +9 -9
- package/dist/index40.js +57 -6
- package/dist/index41.js +25 -55
- package/dist/index42.js +130 -25
- package/dist/index43.js +23 -132
- package/dist/index44.js +238 -23
- package/dist/index45.js +29 -238
- package/dist/index46.js +251 -29
- package/dist/index47.js +18 -251
- package/dist/index48.js +10 -18
- package/dist/index49.js +261 -10
- package/dist/index5.js +18 -18
- package/dist/index50.js +13 -261
- package/dist/index51.js +31 -13
- package/dist/index52.js +334 -26
- package/dist/index53.js +37 -335
- package/dist/index54.js +23 -37
- package/dist/index55.js +8 -16
- package/dist/index56.js +5 -11
- package/dist/index57.js +3 -6
- package/dist/index58.js +13 -10
- package/dist/index59.js +74 -12
- package/dist/index6.js +8 -8
- package/dist/index60.js +83 -69
- package/dist/index61.js +13 -89
- package/dist/index62.js +11 -5
- package/dist/index63.js +20 -17
- package/dist/index64.js +69 -20
- package/dist/index65.js +15 -71
- package/dist/index66.js +13 -9
- package/dist/index67.js +7 -7
- package/dist/index68.js +8 -13
- package/dist/index69.js +2 -14
- package/dist/index7.js +46 -46
- package/dist/index70.js +10 -2
- package/dist/index71.js +8 -4
- package/dist/index72.js +6 -14
- package/dist/index73.js +13 -6
- package/dist/index74.js +22 -13
- package/dist/index75.js +160 -19
- package/dist/index76.js +21 -161
- package/dist/index77.js +33 -23
- package/dist/index78.js +13 -33
- package/dist/index79.js +10 -4
- package/dist/index8.js +25 -28
- package/dist/index80.js +174 -17
- package/dist/index81.js +10 -176
- package/dist/index82.js +862 -10
- package/dist/index83.js +27 -853
- package/dist/index84.js +10 -36
- package/dist/index85.js +243 -10
- package/dist/index86.js +298 -230
- package/dist/index87.js +216 -300
- package/dist/index88.js +10 -227
- package/dist/index89.js +27 -10
- package/dist/index9.js +19 -19
- package/dist/index90.js +68 -2
- package/dist/index91.js +6 -32
- package/dist/index92.js +51 -242
- package/dist/index93.js +5 -26
- package/dist/index94.js +24 -6
- package/dist/index95.js +65 -63
- package/dist/index96.js +33 -51
- package/dist/index97.js +10 -5
- package/dist/index98.js +124 -23
- package/dist/index99.js +134 -32
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +4 -1
- package/package.json +6 -7
- package/dist/index309.js +0 -25
- package/dist/index310.js +0 -15
- package/dist/index311.js +0 -30
- package/dist/index312.js +0 -7
- package/dist/index313.js +0 -7
- package/dist/index314.js +0 -59
package/dist/index92.js
CHANGED
|
@@ -1,245 +1,54 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
|
|
53
|
+
y as useControllableState
|
|
245
54
|
};
|
package/dist/index93.js
CHANGED
|
@@ -1,29 +1,8 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
28
|
-
s as useComposedRefs
|
|
7
|
+
t as usePrevious
|
|
29
8
|
};
|
package/dist/index94.js
CHANGED
|
@@ -1,9 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
26
|
+
c as useSize
|
|
9
27
|
};
|
package/dist/index95.js
CHANGED
|
@@ -1,70 +1,72 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
function a(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
69
|
-
w as createContextScope
|
|
71
|
+
R as Presence
|
|
70
72
|
};
|
package/dist/index96.js
CHANGED
|
@@ -1,54 +1,36 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
34
|
+
h as Primitive,
|
|
35
|
+
w as dispatchDiscreteCustomEvent
|
|
54
36
|
};
|
package/dist/index97.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
12
|
+
d as useId
|
|
8
13
|
};
|