@annatarhe/lake-ui 0.0.3 → 0.0.4
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/LICENSE +21 -0
- package/dist/lake-ui.js +150 -234
- package/jsr.json +1 -5
- package/package.json +6 -1
- package/vite.config.ts +2 -3
- package/codecov +0 -0
- package/codecov.SHA256SUM +0 -1
- package/codecov.SHA256SUM.sig +0 -16
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/clover.xml +0 -60
- package/coverage/coverage-final.json +0 -4
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +0 -146
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -196
- package/coverage/src/card/index.html +0 -116
- package/coverage/src/card/index.tsx.html +0 -112
- package/coverage/src/index.html +0 -116
- package/coverage/src/index.ts.html +0 -97
- package/coverage/src/modal/index.html +0 -116
- package/coverage/src/modal/index.tsx.html +0 -214
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Le He
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/lake-ui.js
CHANGED
|
@@ -1,97 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { jsx as p, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import { X as D } from "lucide-react";
|
|
3
|
+
import R from "react";
|
|
4
|
+
function I() {
|
|
5
|
+
return /* @__PURE__ */ p("div", { className: "card", children: /* @__PURE__ */ p("h1", { children: "Card" }) });
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the ISC license.
|
|
10
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
const M = (a) => a.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), N = (...a) => a.filter((u, s, c) => !!u && u.trim() !== "" && c.indexOf(u) === s).join(" ").trim();
|
|
13
|
-
/**
|
|
14
|
-
* @license lucide-react v0.475.0 - ISC
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the ISC license.
|
|
17
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/
|
|
19
|
-
var A = {
|
|
20
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
21
|
-
width: 24,
|
|
22
|
-
height: 24,
|
|
23
|
-
viewBox: "0 0 24 24",
|
|
24
|
-
fill: "none",
|
|
25
|
-
stroke: "currentColor",
|
|
26
|
-
strokeWidth: 2,
|
|
27
|
-
strokeLinecap: "round",
|
|
28
|
-
strokeLinejoin: "round"
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* @license lucide-react v0.475.0 - ISC
|
|
32
|
-
*
|
|
33
|
-
* This source code is licensed under the ISC license.
|
|
34
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/
|
|
36
|
-
const L = w(
|
|
37
|
-
({
|
|
38
|
-
color: a = "currentColor",
|
|
39
|
-
size: u = 24,
|
|
40
|
-
strokeWidth: s = 2,
|
|
41
|
-
absoluteStrokeWidth: c,
|
|
42
|
-
className: l = "",
|
|
43
|
-
children: g,
|
|
44
|
-
iconNode: m,
|
|
45
|
-
...p
|
|
46
|
-
}, n) => S(
|
|
47
|
-
"svg",
|
|
48
|
-
{
|
|
49
|
-
ref: n,
|
|
50
|
-
...A,
|
|
51
|
-
width: u,
|
|
52
|
-
height: u,
|
|
53
|
-
stroke: a,
|
|
54
|
-
strokeWidth: c ? Number(s) * 24 / Number(u) : s,
|
|
55
|
-
className: N("lucide", l),
|
|
56
|
-
...p
|
|
57
|
-
},
|
|
58
|
-
[
|
|
59
|
-
...m.map(([r, o]) => S(r, o)),
|
|
60
|
-
...Array.isArray(g) ? g : [g]
|
|
61
|
-
]
|
|
62
|
-
)
|
|
63
|
-
);
|
|
64
|
-
/**
|
|
65
|
-
* @license lucide-react v0.475.0 - ISC
|
|
66
|
-
*
|
|
67
|
-
* This source code is licensed under the ISC license.
|
|
68
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/
|
|
70
|
-
const C = (a, u) => {
|
|
71
|
-
const s = w(
|
|
72
|
-
({ className: c, ...l }, g) => S(L, {
|
|
73
|
-
ref: g,
|
|
74
|
-
iconNode: u,
|
|
75
|
-
className: N(`lucide-${M(a)}`, c),
|
|
76
|
-
...l
|
|
77
|
-
})
|
|
78
|
-
);
|
|
79
|
-
return s.displayName = `${a}`, s;
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* @license lucide-react v0.475.0 - ISC
|
|
83
|
-
*
|
|
84
|
-
* This source code is licensed under the ISC license.
|
|
85
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/
|
|
87
|
-
const k = [
|
|
88
|
-
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
89
|
-
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
90
|
-
], P = C("X", k);
|
|
91
|
-
function x(a) {
|
|
92
|
-
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
7
|
+
function N(o) {
|
|
8
|
+
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
93
9
|
}
|
|
94
|
-
var O = { exports: {} },
|
|
10
|
+
var O = { exports: {} }, u = {};
|
|
95
11
|
/**
|
|
96
12
|
* @license React
|
|
97
13
|
* react-dom.production.js
|
|
@@ -101,75 +17,75 @@ var O = { exports: {} }, d = {};
|
|
|
101
17
|
* This source code is licensed under the MIT license found in the
|
|
102
18
|
* LICENSE file in the root directory of this source tree.
|
|
103
19
|
*/
|
|
104
|
-
var
|
|
105
|
-
function
|
|
106
|
-
if (
|
|
107
|
-
|
|
108
|
-
var
|
|
109
|
-
function
|
|
20
|
+
var b;
|
|
21
|
+
function w() {
|
|
22
|
+
if (b) return u;
|
|
23
|
+
b = 1;
|
|
24
|
+
var o = R;
|
|
25
|
+
function f(n) {
|
|
110
26
|
var r = "https://react.dev/errors/" + n;
|
|
111
27
|
if (1 < arguments.length) {
|
|
112
28
|
r += "?args[]=" + encodeURIComponent(arguments[1]);
|
|
113
|
-
for (var
|
|
114
|
-
r += "&args[]=" + encodeURIComponent(arguments[
|
|
29
|
+
for (var a = 2; a < arguments.length; a++)
|
|
30
|
+
r += "&args[]=" + encodeURIComponent(arguments[a]);
|
|
115
31
|
}
|
|
116
32
|
return "Minified React error #" + n + "; visit " + r + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
117
33
|
}
|
|
118
|
-
function
|
|
34
|
+
function d() {
|
|
119
35
|
}
|
|
120
36
|
var c = {
|
|
121
37
|
d: {
|
|
122
|
-
f:
|
|
38
|
+
f: d,
|
|
123
39
|
r: function() {
|
|
124
|
-
throw Error(
|
|
40
|
+
throw Error(f(522));
|
|
125
41
|
},
|
|
126
|
-
D:
|
|
127
|
-
C:
|
|
128
|
-
L:
|
|
129
|
-
m:
|
|
130
|
-
X:
|
|
131
|
-
S:
|
|
132
|
-
M:
|
|
42
|
+
D: d,
|
|
43
|
+
C: d,
|
|
44
|
+
L: d,
|
|
45
|
+
m: d,
|
|
46
|
+
X: d,
|
|
47
|
+
S: d,
|
|
48
|
+
M: d
|
|
133
49
|
},
|
|
134
50
|
p: 0,
|
|
135
51
|
findDOMNode: null
|
|
136
|
-
},
|
|
137
|
-
function
|
|
52
|
+
}, s = Symbol.for("react.portal");
|
|
53
|
+
function y(n, r, a) {
|
|
138
54
|
var t = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
139
55
|
return {
|
|
140
|
-
$$typeof:
|
|
56
|
+
$$typeof: s,
|
|
141
57
|
key: t == null ? null : "" + t,
|
|
142
58
|
children: n,
|
|
143
59
|
containerInfo: r,
|
|
144
|
-
implementation:
|
|
60
|
+
implementation: a
|
|
145
61
|
};
|
|
146
62
|
}
|
|
147
|
-
var m =
|
|
148
|
-
function
|
|
63
|
+
var m = o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
64
|
+
function _(n, r) {
|
|
149
65
|
if (n === "font") return "";
|
|
150
66
|
if (typeof r == "string")
|
|
151
67
|
return r === "use-credentials" ? r : "";
|
|
152
68
|
}
|
|
153
|
-
return
|
|
154
|
-
var
|
|
69
|
+
return u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = c, u.createPortal = function(n, r) {
|
|
70
|
+
var a = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
155
71
|
if (!r || r.nodeType !== 1 && r.nodeType !== 9 && r.nodeType !== 11)
|
|
156
|
-
throw Error(
|
|
157
|
-
return
|
|
158
|
-
},
|
|
159
|
-
var r = m.T,
|
|
72
|
+
throw Error(f(299));
|
|
73
|
+
return y(n, r, null, a);
|
|
74
|
+
}, u.flushSync = function(n) {
|
|
75
|
+
var r = m.T, a = c.p;
|
|
160
76
|
try {
|
|
161
77
|
if (m.T = null, c.p = 2, n) return n();
|
|
162
78
|
} finally {
|
|
163
|
-
m.T = r, c.p =
|
|
79
|
+
m.T = r, c.p = a, c.d.f();
|
|
164
80
|
}
|
|
165
|
-
},
|
|
81
|
+
}, u.preconnect = function(n, r) {
|
|
166
82
|
typeof n == "string" && (r ? (r = r.crossOrigin, r = typeof r == "string" ? r === "use-credentials" ? r : "" : void 0) : r = null, c.d.C(n, r));
|
|
167
|
-
},
|
|
83
|
+
}, u.prefetchDNS = function(n) {
|
|
168
84
|
typeof n == "string" && c.d.D(n);
|
|
169
|
-
},
|
|
85
|
+
}, u.preinit = function(n, r) {
|
|
170
86
|
if (typeof n == "string" && r && typeof r.as == "string") {
|
|
171
|
-
var
|
|
172
|
-
|
|
87
|
+
var a = r.as, t = _(a, r.crossOrigin), e = typeof r.integrity == "string" ? r.integrity : void 0, i = typeof r.fetchPriority == "string" ? r.fetchPriority : void 0;
|
|
88
|
+
a === "style" ? c.d.S(
|
|
173
89
|
n,
|
|
174
90
|
typeof r.precedence == "string" ? r.precedence : void 0,
|
|
175
91
|
{
|
|
@@ -177,32 +93,32 @@ function j() {
|
|
|
177
93
|
integrity: e,
|
|
178
94
|
fetchPriority: i
|
|
179
95
|
}
|
|
180
|
-
) :
|
|
96
|
+
) : a === "script" && c.d.X(n, {
|
|
181
97
|
crossOrigin: t,
|
|
182
98
|
integrity: e,
|
|
183
99
|
fetchPriority: i,
|
|
184
100
|
nonce: typeof r.nonce == "string" ? r.nonce : void 0
|
|
185
101
|
});
|
|
186
102
|
}
|
|
187
|
-
},
|
|
103
|
+
}, u.preinitModule = function(n, r) {
|
|
188
104
|
if (typeof n == "string")
|
|
189
105
|
if (typeof r == "object" && r !== null) {
|
|
190
106
|
if (r.as == null || r.as === "script") {
|
|
191
|
-
var
|
|
107
|
+
var a = _(
|
|
192
108
|
r.as,
|
|
193
109
|
r.crossOrigin
|
|
194
110
|
);
|
|
195
111
|
c.d.M(n, {
|
|
196
|
-
crossOrigin:
|
|
112
|
+
crossOrigin: a,
|
|
197
113
|
integrity: typeof r.integrity == "string" ? r.integrity : void 0,
|
|
198
114
|
nonce: typeof r.nonce == "string" ? r.nonce : void 0
|
|
199
115
|
});
|
|
200
116
|
}
|
|
201
117
|
} else r == null && c.d.M(n);
|
|
202
|
-
},
|
|
118
|
+
}, u.preload = function(n, r) {
|
|
203
119
|
if (typeof n == "string" && typeof r == "object" && r !== null && typeof r.as == "string") {
|
|
204
|
-
var
|
|
205
|
-
c.d.L(n,
|
|
120
|
+
var a = r.as, t = _(a, r.crossOrigin);
|
|
121
|
+
c.d.L(n, a, {
|
|
206
122
|
crossOrigin: t,
|
|
207
123
|
integrity: typeof r.integrity == "string" ? r.integrity : void 0,
|
|
208
124
|
nonce: typeof r.nonce == "string" ? r.nonce : void 0,
|
|
@@ -214,27 +130,27 @@ function j() {
|
|
|
214
130
|
media: typeof r.media == "string" ? r.media : void 0
|
|
215
131
|
});
|
|
216
132
|
}
|
|
217
|
-
},
|
|
133
|
+
}, u.preloadModule = function(n, r) {
|
|
218
134
|
if (typeof n == "string")
|
|
219
135
|
if (r) {
|
|
220
|
-
var
|
|
136
|
+
var a = _(r.as, r.crossOrigin);
|
|
221
137
|
c.d.m(n, {
|
|
222
138
|
as: typeof r.as == "string" && r.as !== "script" ? r.as : void 0,
|
|
223
|
-
crossOrigin:
|
|
139
|
+
crossOrigin: a,
|
|
224
140
|
integrity: typeof r.integrity == "string" ? r.integrity : void 0
|
|
225
141
|
});
|
|
226
142
|
} else c.d.m(n);
|
|
227
|
-
},
|
|
143
|
+
}, u.requestFormReset = function(n) {
|
|
228
144
|
c.d.r(n);
|
|
229
|
-
},
|
|
145
|
+
}, u.unstable_batchedUpdates = function(n, r) {
|
|
230
146
|
return n(r);
|
|
231
|
-
},
|
|
232
|
-
return m.H.useFormState(n, r,
|
|
233
|
-
},
|
|
147
|
+
}, u.useFormState = function(n, r, a) {
|
|
148
|
+
return m.H.useFormState(n, r, a);
|
|
149
|
+
}, u.useFormStatus = function() {
|
|
234
150
|
return m.H.useHostTransitionStatus();
|
|
235
|
-
},
|
|
151
|
+
}, u.version = "19.0.0", u;
|
|
236
152
|
}
|
|
237
|
-
var
|
|
153
|
+
var l = {};
|
|
238
154
|
/**
|
|
239
155
|
* @license React
|
|
240
156
|
* react-dom.development.js
|
|
@@ -244,28 +160,28 @@ var f = {};
|
|
|
244
160
|
* This source code is licensed under the MIT license found in the
|
|
245
161
|
* LICENSE file in the root directory of this source tree.
|
|
246
162
|
*/
|
|
247
|
-
var
|
|
248
|
-
function
|
|
249
|
-
return
|
|
250
|
-
function
|
|
163
|
+
var E;
|
|
164
|
+
function M() {
|
|
165
|
+
return E || (E = 1, process.env.NODE_ENV !== "production" && function() {
|
|
166
|
+
function o() {
|
|
251
167
|
}
|
|
252
|
-
function
|
|
168
|
+
function f(t) {
|
|
253
169
|
return "" + t;
|
|
254
170
|
}
|
|
255
|
-
function
|
|
256
|
-
var
|
|
171
|
+
function d(t, e, i) {
|
|
172
|
+
var g = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
257
173
|
try {
|
|
258
|
-
|
|
259
|
-
var
|
|
174
|
+
f(g);
|
|
175
|
+
var h = !1;
|
|
260
176
|
} catch {
|
|
261
|
-
|
|
177
|
+
h = !0;
|
|
262
178
|
}
|
|
263
|
-
return
|
|
179
|
+
return h && (console.error(
|
|
264
180
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
265
|
-
typeof Symbol == "function" && Symbol.toStringTag &&
|
|
266
|
-
),
|
|
181
|
+
typeof Symbol == "function" && Symbol.toStringTag && g[Symbol.toStringTag] || g.constructor.name || "Object"
|
|
182
|
+
), f(g)), {
|
|
267
183
|
$$typeof: r,
|
|
268
|
-
key:
|
|
184
|
+
key: g == null ? null : "" + g,
|
|
269
185
|
children: t,
|
|
270
186
|
containerInfo: e,
|
|
271
187
|
implementation: i
|
|
@@ -276,14 +192,14 @@ function I() {
|
|
|
276
192
|
if (typeof e == "string")
|
|
277
193
|
return e === "use-credentials" ? e : "";
|
|
278
194
|
}
|
|
279
|
-
function
|
|
195
|
+
function s(t) {
|
|
280
196
|
return t === null ? "`null`" : t === void 0 ? "`undefined`" : t === "" ? "an empty string" : 'something with type "' + typeof t + '"';
|
|
281
197
|
}
|
|
282
|
-
function
|
|
198
|
+
function y(t) {
|
|
283
199
|
return t === null ? "`null`" : t === void 0 ? "`undefined`" : t === "" ? "an empty string" : typeof t == "string" ? JSON.stringify(t) : typeof t == "number" ? "`" + t + "`" : 'something with type "' + typeof t + '"';
|
|
284
200
|
}
|
|
285
201
|
function m() {
|
|
286
|
-
var t =
|
|
202
|
+
var t = a.H;
|
|
287
203
|
return t === null && console.error(
|
|
288
204
|
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
289
205
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
@@ -293,100 +209,100 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
293
209
|
), t;
|
|
294
210
|
}
|
|
295
211
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
296
|
-
var
|
|
212
|
+
var _ = R, n = {
|
|
297
213
|
d: {
|
|
298
|
-
f:
|
|
214
|
+
f: o,
|
|
299
215
|
r: function() {
|
|
300
216
|
throw Error(
|
|
301
217
|
"Invalid form element. requestFormReset must be passed a form that was rendered by React."
|
|
302
218
|
);
|
|
303
219
|
},
|
|
304
|
-
D:
|
|
305
|
-
C:
|
|
306
|
-
L:
|
|
307
|
-
m:
|
|
308
|
-
X:
|
|
309
|
-
S:
|
|
310
|
-
M:
|
|
220
|
+
D: o,
|
|
221
|
+
C: o,
|
|
222
|
+
L: o,
|
|
223
|
+
m: o,
|
|
224
|
+
X: o,
|
|
225
|
+
S: o,
|
|
226
|
+
M: o
|
|
311
227
|
},
|
|
312
228
|
p: 0,
|
|
313
229
|
findDOMNode: null
|
|
314
|
-
}, r = Symbol.for("react.portal"),
|
|
230
|
+
}, r = Symbol.for("react.portal"), a = _.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
315
231
|
typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error(
|
|
316
232
|
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
|
317
|
-
),
|
|
233
|
+
), l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = n, l.createPortal = function(t, e) {
|
|
318
234
|
var i = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
319
235
|
if (!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11)
|
|
320
236
|
throw Error("Target container is not a DOM element.");
|
|
321
|
-
return
|
|
322
|
-
},
|
|
323
|
-
var e =
|
|
237
|
+
return d(t, e, null, i);
|
|
238
|
+
}, l.flushSync = function(t) {
|
|
239
|
+
var e = a.T, i = n.p;
|
|
324
240
|
try {
|
|
325
|
-
if (
|
|
241
|
+
if (a.T = null, n.p = 2, t)
|
|
326
242
|
return t();
|
|
327
243
|
} finally {
|
|
328
|
-
|
|
244
|
+
a.T = e, n.p = i, n.d.f() && console.error(
|
|
329
245
|
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
|
330
246
|
);
|
|
331
247
|
}
|
|
332
|
-
},
|
|
248
|
+
}, l.preconnect = function(t, e) {
|
|
333
249
|
typeof t == "string" && t ? e != null && typeof e != "object" ? console.error(
|
|
334
250
|
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
|
|
335
|
-
|
|
251
|
+
y(e)
|
|
336
252
|
) : e != null && typeof e.crossOrigin != "string" && console.error(
|
|
337
253
|
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
|
|
338
|
-
|
|
254
|
+
s(e.crossOrigin)
|
|
339
255
|
) : console.error(
|
|
340
256
|
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
341
|
-
|
|
257
|
+
s(t)
|
|
342
258
|
), typeof t == "string" && (e ? (e = e.crossOrigin, e = typeof e == "string" ? e === "use-credentials" ? e : "" : void 0) : e = null, n.d.C(t, e));
|
|
343
|
-
},
|
|
259
|
+
}, l.prefetchDNS = function(t) {
|
|
344
260
|
if (typeof t != "string" || !t)
|
|
345
261
|
console.error(
|
|
346
262
|
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
347
|
-
|
|
263
|
+
s(t)
|
|
348
264
|
);
|
|
349
265
|
else if (1 < arguments.length) {
|
|
350
266
|
var e = arguments[1];
|
|
351
267
|
typeof e == "object" && e.hasOwnProperty("crossOrigin") ? console.error(
|
|
352
268
|
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
353
|
-
|
|
269
|
+
y(e)
|
|
354
270
|
) : console.error(
|
|
355
271
|
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
356
|
-
|
|
272
|
+
y(e)
|
|
357
273
|
);
|
|
358
274
|
}
|
|
359
275
|
typeof t == "string" && n.d.D(t);
|
|
360
|
-
},
|
|
276
|
+
}, l.preinit = function(t, e) {
|
|
361
277
|
if (typeof t == "string" && t ? e == null || typeof e != "object" ? console.error(
|
|
362
278
|
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
|
|
363
|
-
|
|
279
|
+
y(e)
|
|
364
280
|
) : e.as !== "style" && e.as !== "script" && console.error(
|
|
365
281
|
'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
|
|
366
|
-
|
|
282
|
+
y(e.as)
|
|
367
283
|
) : console.error(
|
|
368
284
|
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
369
|
-
|
|
285
|
+
s(t)
|
|
370
286
|
), typeof t == "string" && e && typeof e.as == "string") {
|
|
371
|
-
var i = e.as,
|
|
287
|
+
var i = e.as, g = c(i, e.crossOrigin), h = typeof e.integrity == "string" ? e.integrity : void 0, v = typeof e.fetchPriority == "string" ? e.fetchPriority : void 0;
|
|
372
288
|
i === "style" ? n.d.S(
|
|
373
289
|
t,
|
|
374
290
|
typeof e.precedence == "string" ? e.precedence : void 0,
|
|
375
291
|
{
|
|
376
|
-
crossOrigin:
|
|
377
|
-
integrity:
|
|
292
|
+
crossOrigin: g,
|
|
293
|
+
integrity: h,
|
|
378
294
|
fetchPriority: v
|
|
379
295
|
}
|
|
380
296
|
) : i === "script" && n.d.X(t, {
|
|
381
|
-
crossOrigin:
|
|
382
|
-
integrity:
|
|
297
|
+
crossOrigin: g,
|
|
298
|
+
integrity: h,
|
|
383
299
|
fetchPriority: v,
|
|
384
300
|
nonce: typeof e.nonce == "string" ? e.nonce : void 0
|
|
385
301
|
});
|
|
386
302
|
}
|
|
387
|
-
},
|
|
303
|
+
}, l.preinitModule = function(t, e) {
|
|
388
304
|
var i = "";
|
|
389
|
-
if (typeof t == "string" && t || (i += " The `href` argument encountered was " +
|
|
305
|
+
if (typeof t == "string" && t || (i += " The `href` argument encountered was " + s(t) + "."), e !== void 0 && typeof e != "object" ? i += " The `options` argument encountered was " + s(e) + "." : e && "as" in e && e.as !== "script" && (i += " The `as` option encountered was " + y(e.as) + "."), i)
|
|
390
306
|
console.error(
|
|
391
307
|
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
|
392
308
|
i
|
|
@@ -396,7 +312,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
396
312
|
case "script":
|
|
397
313
|
break;
|
|
398
314
|
default:
|
|
399
|
-
i =
|
|
315
|
+
i = y(i), console.error(
|
|
400
316
|
'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
|
|
401
317
|
i,
|
|
402
318
|
t
|
|
@@ -410,19 +326,19 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
410
326
|
integrity: typeof e.integrity == "string" ? e.integrity : void 0,
|
|
411
327
|
nonce: typeof e.nonce == "string" ? e.nonce : void 0
|
|
412
328
|
})) : e == null && n.d.M(t));
|
|
413
|
-
},
|
|
329
|
+
}, l.preload = function(t, e) {
|
|
414
330
|
var i = "";
|
|
415
|
-
if (typeof t == "string" && t || (i += " The `href` argument encountered was " +
|
|
331
|
+
if (typeof t == "string" && t || (i += " The `href` argument encountered was " + s(t) + "."), e == null || typeof e != "object" ? i += " The `options` argument encountered was " + s(e) + "." : typeof e.as == "string" && e.as || (i += " The `as` option encountered was " + s(e.as) + "."), i && console.error(
|
|
416
332
|
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
|
|
417
333
|
i
|
|
418
334
|
), typeof t == "string" && typeof e == "object" && e !== null && typeof e.as == "string") {
|
|
419
335
|
i = e.as;
|
|
420
|
-
var
|
|
336
|
+
var g = c(
|
|
421
337
|
i,
|
|
422
338
|
e.crossOrigin
|
|
423
339
|
);
|
|
424
340
|
n.d.L(t, i, {
|
|
425
|
-
crossOrigin:
|
|
341
|
+
crossOrigin: g,
|
|
426
342
|
integrity: typeof e.integrity == "string" ? e.integrity : void 0,
|
|
427
343
|
nonce: typeof e.nonce == "string" ? e.nonce : void 0,
|
|
428
344
|
type: typeof e.type == "string" ? e.type : void 0,
|
|
@@ -433,9 +349,9 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
433
349
|
media: typeof e.media == "string" ? e.media : void 0
|
|
434
350
|
});
|
|
435
351
|
}
|
|
436
|
-
},
|
|
352
|
+
}, l.preloadModule = function(t, e) {
|
|
437
353
|
var i = "";
|
|
438
|
-
typeof t == "string" && t || (i += " The `href` argument encountered was " +
|
|
354
|
+
typeof t == "string" && t || (i += " The `href` argument encountered was " + s(t) + "."), e !== void 0 && typeof e != "object" ? i += " The `options` argument encountered was " + s(e) + "." : e && "as" in e && typeof e.as != "string" && (i += " The `as` option encountered was " + s(e.as) + "."), i && console.error(
|
|
439
355
|
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
|
|
440
356
|
i
|
|
441
357
|
), typeof t == "string" && (e ? (i = c(
|
|
@@ -446,58 +362,58 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
446
362
|
crossOrigin: i,
|
|
447
363
|
integrity: typeof e.integrity == "string" ? e.integrity : void 0
|
|
448
364
|
})) : n.d.m(t));
|
|
449
|
-
},
|
|
365
|
+
}, l.requestFormReset = function(t) {
|
|
450
366
|
n.d.r(t);
|
|
451
|
-
},
|
|
367
|
+
}, l.unstable_batchedUpdates = function(t, e) {
|
|
452
368
|
return t(e);
|
|
453
|
-
},
|
|
369
|
+
}, l.useFormState = function(t, e, i) {
|
|
454
370
|
return m().useFormState(t, e, i);
|
|
455
|
-
},
|
|
371
|
+
}, l.useFormStatus = function() {
|
|
456
372
|
return m().useHostTransitionStatus();
|
|
457
|
-
},
|
|
458
|
-
}()),
|
|
373
|
+
}, l.version = "19.0.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
374
|
+
}()), l;
|
|
459
375
|
}
|
|
460
|
-
var
|
|
461
|
-
function
|
|
462
|
-
if (
|
|
463
|
-
|
|
464
|
-
function
|
|
376
|
+
var T;
|
|
377
|
+
function A() {
|
|
378
|
+
if (T) return O.exports;
|
|
379
|
+
T = 1;
|
|
380
|
+
function o() {
|
|
465
381
|
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
|
|
466
382
|
if (process.env.NODE_ENV !== "production")
|
|
467
383
|
throw new Error("^_^");
|
|
468
384
|
try {
|
|
469
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(
|
|
470
|
-
} catch (
|
|
471
|
-
console.error(
|
|
385
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o);
|
|
386
|
+
} catch (f) {
|
|
387
|
+
console.error(f);
|
|
472
388
|
}
|
|
473
389
|
}
|
|
474
390
|
}
|
|
475
|
-
return process.env.NODE_ENV === "production" ? (
|
|
391
|
+
return process.env.NODE_ENV === "production" ? (o(), O.exports = w()) : O.exports = M(), O.exports;
|
|
476
392
|
}
|
|
477
|
-
var
|
|
478
|
-
const
|
|
479
|
-
function
|
|
480
|
-
const { isOpen:
|
|
481
|
-
return
|
|
482
|
-
/* @__PURE__ */
|
|
483
|
-
/* @__PURE__ */
|
|
484
|
-
/* @__PURE__ */
|
|
393
|
+
var L = A();
|
|
394
|
+
const C = /* @__PURE__ */ N(L);
|
|
395
|
+
function P(o) {
|
|
396
|
+
const { isOpen: f, onClose: d, children: c, title: s } = o;
|
|
397
|
+
return f ? /* @__PURE__ */ p("div", { className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4 backdrop-blur-sm animate-in fade-in slide-in-from-bottom-2", children: /* @__PURE__ */ S("div", { className: "w-full max-w-4xl rounded-xl border border-gray-700 bg-gray-800", children: [
|
|
398
|
+
/* @__PURE__ */ S("div", { className: "flex items-center justify-between border-b border-gray-700 p-4", children: [
|
|
399
|
+
/* @__PURE__ */ p("h3", { className: "text-lg font-medium text-white line-clamp-1", children: s }),
|
|
400
|
+
/* @__PURE__ */ p(
|
|
485
401
|
"button",
|
|
486
402
|
{
|
|
487
|
-
onClick:
|
|
403
|
+
onClick: d,
|
|
488
404
|
className: "rounded-lg p-1 text-gray-400 hover:text-gray-300",
|
|
489
|
-
children: /* @__PURE__ */
|
|
405
|
+
children: /* @__PURE__ */ p(D, { className: "h-5 w-5" })
|
|
490
406
|
}
|
|
491
407
|
)
|
|
492
408
|
] }),
|
|
493
409
|
c
|
|
494
410
|
] }) }) : null;
|
|
495
411
|
}
|
|
496
|
-
function
|
|
497
|
-
const { selector:
|
|
498
|
-
return
|
|
412
|
+
function H(o) {
|
|
413
|
+
const { selector: f = "[data-st-role=modal]" } = o, d = typeof document < "u" ? document.querySelector(f) : null;
|
|
414
|
+
return d ? C.createPortal(/* @__PURE__ */ p(P, { ...o }), d) : null;
|
|
499
415
|
}
|
|
500
416
|
export {
|
|
501
|
-
|
|
502
|
-
|
|
417
|
+
I as Card,
|
|
418
|
+
H as Modal
|
|
503
419
|
};
|
package/jsr.json
CHANGED