@rinzai/zen 0.1.2 → 0.1.3
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/button/index.d.ts +2 -2
- package/dist/button/index.d.ts.map +1 -1
- package/dist/collapse/index.d.ts +1 -2
- package/dist/collapse/index.d.ts.map +1 -1
- package/dist/index.js +117 -117
- package/dist/popover/index.d.ts +2 -2
- package/dist/popover/index.d.ts.map +1 -1
- package/dist/zen/index.d.ts.map +1 -1
- package/package.json +3 -2
package/dist/button/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from '../utils/cva';
|
|
2
2
|
import { ComponentProps } from '../zen';
|
|
3
|
-
|
|
3
|
+
export default function Button({ className, variant, size, ...rest }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare const buttonVariants: (props?: ({
|
|
5
5
|
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | "icon" | null | undefined;
|
|
6
6
|
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
@@ -16,5 +16,5 @@ declare const buttonVariants: (props?: ({
|
|
|
16
16
|
})) | undefined) => string;
|
|
17
17
|
export interface ButtonProps extends ComponentProps<'button'>, VariantProps<typeof buttonVariants> {
|
|
18
18
|
}
|
|
19
|
-
export
|
|
19
|
+
export {};
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,2CAEhF;AACD,QAAA,MAAM,cAAc;;;;;;;;;;;;0BAyBnB,CAAC;AAEF,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC;CAAG"}
|
package/dist/collapse/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BadgeProps } from '../badge';
|
|
2
|
-
|
|
3
|
-
export default Collapse;
|
|
2
|
+
export default function Collapse<TData>(props: CollapseProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export interface CollapseProps<TData> {
|
|
5
4
|
items: string[];
|
|
6
5
|
data?: TData[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/collapse/index.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG/C,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/collapse/index.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG/C,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,2CA6FlE;AACD,MAAM,WAAW,aAAa,CAAC,KAAK;IAChC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC;IACf,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,KAAK,KAAK,KAAK,CAAC,SAAS,CAAC;IAC7E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAChD,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
package/dist/index.js
CHANGED
|
@@ -75,14 +75,14 @@ function en() {
|
|
|
75
75
|
case D:
|
|
76
76
|
return (i._context.displayName || "Context") + ".Consumer";
|
|
77
77
|
case $:
|
|
78
|
-
var
|
|
79
|
-
return i = i.displayName, i || (i =
|
|
78
|
+
var x = i.render;
|
|
79
|
+
return i = i.displayName, i || (i = x.displayName || x.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
|
|
80
80
|
case A:
|
|
81
|
-
return
|
|
81
|
+
return x = i.displayName || null, x !== null ? x : t(i.type) || "Memo";
|
|
82
82
|
case U:
|
|
83
|
-
|
|
83
|
+
x = i._payload, i = i._init;
|
|
84
84
|
try {
|
|
85
|
-
return t(i(
|
|
85
|
+
return t(i(x));
|
|
86
86
|
} catch {
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -94,15 +94,15 @@ function en() {
|
|
|
94
94
|
function n(i) {
|
|
95
95
|
try {
|
|
96
96
|
e(i);
|
|
97
|
-
var
|
|
97
|
+
var x = !1;
|
|
98
98
|
} catch {
|
|
99
|
-
|
|
99
|
+
x = !0;
|
|
100
100
|
}
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
var
|
|
104
|
-
return
|
|
105
|
-
|
|
101
|
+
if (x) {
|
|
102
|
+
x = console;
|
|
103
|
+
var v = x.error, N = typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object";
|
|
104
|
+
return v.call(
|
|
105
|
+
x,
|
|
106
106
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
107
|
N
|
|
108
108
|
), e(i);
|
|
@@ -111,7 +111,7 @@ function en() {
|
|
|
111
111
|
function o() {
|
|
112
112
|
}
|
|
113
113
|
function r() {
|
|
114
|
-
if (
|
|
114
|
+
if (ve === 0) {
|
|
115
115
|
ot = console.log, rt = console.info, st = console.warn, it = console.error, lt = console.group, ct = console.groupCollapsed, at = console.groupEnd;
|
|
116
116
|
var i = {
|
|
117
117
|
configurable: !0,
|
|
@@ -129,10 +129,10 @@ function en() {
|
|
|
129
129
|
groupEnd: i
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
|
|
132
|
+
ve++;
|
|
133
133
|
}
|
|
134
134
|
function s() {
|
|
135
|
-
if (
|
|
135
|
+
if (ve--, ve === 0) {
|
|
136
136
|
var i = { configurable: !0, enumerable: !0, writable: !0 };
|
|
137
137
|
Object.defineProperties(console, {
|
|
138
138
|
log: Y({}, i, { value: ot }),
|
|
@@ -144,7 +144,7 @@ function en() {
|
|
|
144
144
|
groupEnd: Y({}, i, { value: at })
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
|
-
0 >
|
|
147
|
+
0 > ve && console.error(
|
|
148
148
|
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
149
149
|
);
|
|
150
150
|
}
|
|
@@ -152,26 +152,26 @@ function en() {
|
|
|
152
152
|
if (Ve === void 0)
|
|
153
153
|
try {
|
|
154
154
|
throw Error();
|
|
155
|
-
} catch (
|
|
156
|
-
var
|
|
157
|
-
Ve =
|
|
158
|
-
at`) ? " (<anonymous>)" : -1 <
|
|
155
|
+
} catch (v) {
|
|
156
|
+
var x = v.stack.trim().match(/\n( *(at )?)/);
|
|
157
|
+
Ve = x && x[1] || "", ut = -1 < v.stack.indexOf(`
|
|
158
|
+
at`) ? " (<anonymous>)" : -1 < v.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
159
159
|
}
|
|
160
160
|
return `
|
|
161
161
|
` + Ve + i + ut;
|
|
162
162
|
}
|
|
163
|
-
function c(i,
|
|
163
|
+
function c(i, x) {
|
|
164
164
|
if (!i || Fe) return "";
|
|
165
|
-
var
|
|
166
|
-
if (
|
|
167
|
-
Fe = !0,
|
|
165
|
+
var v = Be.get(i);
|
|
166
|
+
if (v !== void 0) return v;
|
|
167
|
+
Fe = !0, v = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
168
168
|
var N = null;
|
|
169
169
|
N = T.H, T.H = null, r();
|
|
170
170
|
try {
|
|
171
171
|
var H = {
|
|
172
172
|
DetermineComponentFrameRoot: function() {
|
|
173
173
|
try {
|
|
174
|
-
if (
|
|
174
|
+
if (x) {
|
|
175
175
|
var ie = function() {
|
|
176
176
|
throw Error();
|
|
177
177
|
};
|
|
@@ -253,17 +253,17 @@ function en() {
|
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
} finally {
|
|
256
|
-
Fe = !1, T.H = N, s(), Error.prepareStackTrace =
|
|
256
|
+
Fe = !1, T.H = N, s(), Error.prepareStackTrace = v;
|
|
257
257
|
}
|
|
258
258
|
return q = (q = i ? i.displayName || i.name : "") ? l(q) : "", typeof i == "function" && Be.set(i, q), q;
|
|
259
259
|
}
|
|
260
260
|
function a(i) {
|
|
261
261
|
if (i == null) return "";
|
|
262
262
|
if (typeof i == "function") {
|
|
263
|
-
var
|
|
263
|
+
var x = i.prototype;
|
|
264
264
|
return c(
|
|
265
265
|
i,
|
|
266
|
-
!(!
|
|
266
|
+
!(!x || !x.isReactComponent)
|
|
267
267
|
);
|
|
268
268
|
}
|
|
269
269
|
if (typeof i == "string") return l(i);
|
|
@@ -280,9 +280,9 @@ function en() {
|
|
|
280
280
|
case A:
|
|
281
281
|
return a(i.type);
|
|
282
282
|
case U:
|
|
283
|
-
|
|
283
|
+
x = i._payload, i = i._init;
|
|
284
284
|
try {
|
|
285
|
-
return a(i(
|
|
285
|
+
return a(i(x));
|
|
286
286
|
} catch {
|
|
287
287
|
}
|
|
288
288
|
}
|
|
@@ -294,20 +294,20 @@ function en() {
|
|
|
294
294
|
}
|
|
295
295
|
function f(i) {
|
|
296
296
|
if (F.call(i, "key")) {
|
|
297
|
-
var
|
|
298
|
-
if (
|
|
297
|
+
var x = Object.getOwnPropertyDescriptor(i, "key").get;
|
|
298
|
+
if (x && x.isReactWarning) return !1;
|
|
299
299
|
}
|
|
300
300
|
return i.key !== void 0;
|
|
301
301
|
}
|
|
302
|
-
function d(i,
|
|
303
|
-
function
|
|
302
|
+
function d(i, x) {
|
|
303
|
+
function v() {
|
|
304
304
|
ft || (ft = !0, console.error(
|
|
305
305
|
"%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)",
|
|
306
|
-
|
|
306
|
+
x
|
|
307
307
|
));
|
|
308
308
|
}
|
|
309
|
-
|
|
310
|
-
get:
|
|
309
|
+
v.isReactWarning = !0, Object.defineProperty(i, "key", {
|
|
310
|
+
get: v,
|
|
311
311
|
configurable: !0
|
|
312
312
|
});
|
|
313
313
|
}
|
|
@@ -317,14 +317,14 @@ function en() {
|
|
|
317
317
|
"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."
|
|
318
318
|
)), i = this.props.ref, i !== void 0 ? i : null;
|
|
319
319
|
}
|
|
320
|
-
function m(i,
|
|
321
|
-
return
|
|
320
|
+
function m(i, x, v, N, H, L) {
|
|
321
|
+
return v = L.ref, i = {
|
|
322
322
|
$$typeof: S,
|
|
323
323
|
type: i,
|
|
324
|
-
key:
|
|
324
|
+
key: x,
|
|
325
325
|
props: L,
|
|
326
326
|
_owner: H
|
|
327
|
-
}, (
|
|
327
|
+
}, (v !== void 0 ? v : null) !== null ? Object.defineProperty(i, "ref", {
|
|
328
328
|
enumerable: !1,
|
|
329
329
|
get: g
|
|
330
330
|
}) : Object.defineProperty(i, "ref", { enumerable: !1, value: null }), i._store = {}, Object.defineProperty(i._store, "validated", {
|
|
@@ -339,9 +339,9 @@ function en() {
|
|
|
339
339
|
value: null
|
|
340
340
|
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
341
341
|
}
|
|
342
|
-
function h(i,
|
|
342
|
+
function h(i, x, v, N, H, L) {
|
|
343
343
|
if (typeof i == "string" || typeof i == "function" || i === k || i === z || i === j || i === V || i === P || i === M || typeof i == "object" && i !== null && (i.$$typeof === U || i.$$typeof === A || i.$$typeof === W || i.$$typeof === D || i.$$typeof === $ || i.$$typeof === Z || i.getModuleId !== void 0)) {
|
|
344
|
-
var C =
|
|
344
|
+
var C = x.children;
|
|
345
345
|
if (C !== void 0)
|
|
346
346
|
if (N)
|
|
347
347
|
if (oe(C)) {
|
|
@@ -359,9 +359,9 @@ function en() {
|
|
|
359
359
|
N,
|
|
360
360
|
C
|
|
361
361
|
);
|
|
362
|
-
if (F.call(
|
|
362
|
+
if (F.call(x, "key")) {
|
|
363
363
|
C = t(i);
|
|
364
|
-
var re = Object.keys(
|
|
364
|
+
var re = Object.keys(x).filter(function(q) {
|
|
365
365
|
return q !== "key";
|
|
366
366
|
});
|
|
367
367
|
N = 0 < re.length ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}", ht[C + N] || (re = 0 < re.length ? "{" + re.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
@@ -377,70 +377,70 @@ React keys must be passed directly to JSX without using spread:
|
|
|
377
377
|
C
|
|
378
378
|
), ht[C + N] = !0);
|
|
379
379
|
}
|
|
380
|
-
if (C = null,
|
|
381
|
-
|
|
382
|
-
for (var de in
|
|
383
|
-
de !== "key" && (
|
|
384
|
-
} else
|
|
380
|
+
if (C = null, v !== void 0 && (n(v), C = "" + v), f(x) && (n(x.key), C = "" + x.key), "key" in x) {
|
|
381
|
+
v = {};
|
|
382
|
+
for (var de in x)
|
|
383
|
+
de !== "key" && (v[de] = x[de]);
|
|
384
|
+
} else v = x;
|
|
385
385
|
return C && d(
|
|
386
|
-
|
|
386
|
+
v,
|
|
387
387
|
typeof i == "function" ? i.displayName || i.name || "Unknown" : i
|
|
388
|
-
), m(i, C, L, H, u(),
|
|
388
|
+
), m(i, C, L, H, u(), v);
|
|
389
389
|
}
|
|
390
|
-
function b(i,
|
|
390
|
+
function b(i, x) {
|
|
391
391
|
if (typeof i == "object" && i && i.$$typeof !== qt) {
|
|
392
392
|
if (oe(i))
|
|
393
|
-
for (var
|
|
394
|
-
var N = i[
|
|
395
|
-
w(N) && p(N,
|
|
393
|
+
for (var v = 0; v < i.length; v++) {
|
|
394
|
+
var N = i[v];
|
|
395
|
+
w(N) && p(N, x);
|
|
396
396
|
}
|
|
397
397
|
else if (w(i))
|
|
398
398
|
i._store && (i._store.validated = 1);
|
|
399
|
-
else if (i === null || typeof i != "object" ?
|
|
400
|
-
for (; !(i =
|
|
401
|
-
w(i.value) && p(i.value,
|
|
399
|
+
else if (i === null || typeof i != "object" ? v = null : (v = I && i[I] || i["@@iterator"], v = typeof v == "function" ? v : null), typeof v == "function" && v !== i.entries && (v = v.call(i), v !== i))
|
|
400
|
+
for (; !(i = v.next()).done; )
|
|
401
|
+
w(i.value) && p(i.value, x);
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
function w(i) {
|
|
405
405
|
return typeof i == "object" && i !== null && i.$$typeof === S;
|
|
406
406
|
}
|
|
407
|
-
function p(i,
|
|
408
|
-
if (i._store && !i._store.validated && i.key == null && (i._store.validated = 1,
|
|
409
|
-
mt[
|
|
410
|
-
var
|
|
411
|
-
i && i._owner != null && i._owner !== u() && (
|
|
407
|
+
function p(i, x) {
|
|
408
|
+
if (i._store && !i._store.validated && i.key == null && (i._store.validated = 1, x = y(x), !mt[x])) {
|
|
409
|
+
mt[x] = !0;
|
|
410
|
+
var v = "";
|
|
411
|
+
i && i._owner != null && i._owner !== u() && (v = null, typeof i._owner.tag == "number" ? v = t(i._owner.type) : typeof i._owner.name == "string" && (v = i._owner.name), v = " It was passed a child from " + v + ".");
|
|
412
412
|
var N = T.getCurrentStack;
|
|
413
413
|
T.getCurrentStack = function() {
|
|
414
414
|
var H = a(i.type);
|
|
415
415
|
return N && (H += N() || ""), H;
|
|
416
416
|
}, console.error(
|
|
417
417
|
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
418
|
-
|
|
419
|
-
|
|
418
|
+
x,
|
|
419
|
+
v
|
|
420
420
|
), T.getCurrentStack = N;
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
423
|
function y(i) {
|
|
424
|
-
var
|
|
425
|
-
return
|
|
424
|
+
var x = "", v = u();
|
|
425
|
+
return v && (v = t(v.type)) && (x = `
|
|
426
426
|
|
|
427
|
-
Check the render method of \`` +
|
|
427
|
+
Check the render method of \`` + v + "`."), x || (i = t(i)) && (x = `
|
|
428
428
|
|
|
429
|
-
Check the top-level render call using <` + i + ">."),
|
|
429
|
+
Check the top-level render call using <` + i + ">."), x;
|
|
430
430
|
}
|
|
431
|
-
var O = Ze, S = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), z = Symbol.for("react.profiler"), D = Symbol.for("react.consumer"), W = Symbol.for("react.context"), $ = Symbol.for("react.forward_ref"), V = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), M = Symbol.for("react.offscreen"), I = Symbol.iterator, _ = Symbol.for("react.client.reference"), T = O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, Y = Object.assign, Z = Symbol.for("react.client.reference"), oe = Array.isArray,
|
|
431
|
+
var O = Ze, S = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), z = Symbol.for("react.profiler"), D = Symbol.for("react.consumer"), W = Symbol.for("react.context"), $ = Symbol.for("react.forward_ref"), V = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), M = Symbol.for("react.offscreen"), I = Symbol.iterator, _ = Symbol.for("react.client.reference"), T = O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, Y = Object.assign, Z = Symbol.for("react.client.reference"), oe = Array.isArray, ve = 0, ot, rt, st, it, lt, ct, at;
|
|
432
432
|
o.__reactDisabledLog = !0;
|
|
433
433
|
var Ve, ut, Fe = !1, Be = new (typeof WeakMap == "function" ? WeakMap : Map)(), qt = Symbol.for("react.client.reference"), ft, dt = {}, ht = {}, mt = {};
|
|
434
|
-
ye.Fragment = k, ye.jsx = function(i,
|
|
435
|
-
return h(i,
|
|
436
|
-
}, ye.jsxs = function(i,
|
|
437
|
-
return h(i,
|
|
434
|
+
ye.Fragment = k, ye.jsx = function(i, x, v, N, H) {
|
|
435
|
+
return h(i, x, v, !1, N, H);
|
|
436
|
+
}, ye.jsxs = function(i, x, v, N, H) {
|
|
437
|
+
return h(i, x, v, !0, N, H);
|
|
438
438
|
};
|
|
439
439
|
}()), ye;
|
|
440
440
|
}
|
|
441
|
-
var
|
|
441
|
+
var xt;
|
|
442
442
|
function tn() {
|
|
443
|
-
return
|
|
443
|
+
return xt || (xt = 1, process.env.NODE_ENV === "production" ? Ce.exports = Qt() : Ce.exports = en()), Ce.exports;
|
|
444
444
|
}
|
|
445
445
|
var R = tn(), Oe = { exports: {} }, Ye = {};
|
|
446
446
|
/**
|
|
@@ -452,10 +452,10 @@ var R = tn(), Oe = { exports: {} }, Ye = {};
|
|
|
452
452
|
* This source code is licensed under the MIT license found in the
|
|
453
453
|
* LICENSE file in the root directory of this source tree.
|
|
454
454
|
*/
|
|
455
|
-
var
|
|
455
|
+
var vt;
|
|
456
456
|
function nn() {
|
|
457
|
-
if (
|
|
458
|
-
|
|
457
|
+
if (vt) return Ye;
|
|
458
|
+
vt = 1;
|
|
459
459
|
var t = Ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
460
460
|
return Ye.c = function(e) {
|
|
461
461
|
return t.H.useMemoCache(e);
|
|
@@ -544,26 +544,26 @@ const sn = At("zen__badge inline-flex items-center rounded-md border px-2.5 py-0
|
|
|
544
544
|
defaultVariants: {
|
|
545
545
|
variant: "default"
|
|
546
546
|
}
|
|
547
|
-
})
|
|
548
|
-
|
|
549
|
-
|
|
547
|
+
});
|
|
548
|
+
function ln(t) {
|
|
549
|
+
const e = te.c(12);
|
|
550
|
+
let n, o, r, s;
|
|
550
551
|
e[0] !== t ? ({
|
|
551
|
-
|
|
552
|
-
className: o,
|
|
552
|
+
className: n,
|
|
553
553
|
variant: s,
|
|
554
|
-
size:
|
|
555
|
-
...
|
|
556
|
-
} = t, e[0] = t, e[1] = n, e[2] = o, e[3] = r, e[4] = s
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
554
|
+
size: r,
|
|
555
|
+
...o
|
|
556
|
+
} = t, e[0] = t, e[1] = n, e[2] = o, e[3] = r, e[4] = s) : (n = e[1], o = e[2], r = e[3], s = e[4]);
|
|
557
|
+
let l;
|
|
558
|
+
e[5] !== n || e[6] !== r || e[7] !== s ? (l = cn({
|
|
559
|
+
variant: s,
|
|
560
|
+
size: r,
|
|
561
|
+
className: n
|
|
562
|
+
}), e[5] = n, e[6] = r, e[7] = s, e[8] = l) : l = e[8];
|
|
563
|
+
let c;
|
|
564
|
+
return e[9] !== o || e[10] !== l ? (c = /* @__PURE__ */ R.jsx("button", { className: l, ...o }), e[9] = o, e[10] = l, e[11] = c) : c = e[11], c;
|
|
565
|
+
}
|
|
566
|
+
const cn = At("zen__button inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50", {
|
|
567
567
|
variants: {
|
|
568
568
|
variant: {
|
|
569
569
|
default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
|
|
@@ -738,7 +738,7 @@ function Rt(t, e, n) {
|
|
|
738
738
|
}
|
|
739
739
|
return m;
|
|
740
740
|
}
|
|
741
|
-
const
|
|
741
|
+
const xn = async (t, e, n) => {
|
|
742
742
|
const {
|
|
743
743
|
placement: o = "bottom",
|
|
744
744
|
strategy: r = "absolute",
|
|
@@ -844,7 +844,7 @@ async function Pt(t, e) {
|
|
|
844
844
|
right: (E.right - p.right + h.right) / S.x
|
|
845
845
|
};
|
|
846
846
|
}
|
|
847
|
-
const
|
|
847
|
+
const vn = function(t) {
|
|
848
848
|
return t === void 0 && (t = {}), {
|
|
849
849
|
name: "flip",
|
|
850
850
|
options: t,
|
|
@@ -1033,7 +1033,7 @@ const wn = function(t) {
|
|
|
1033
1033
|
function De() {
|
|
1034
1034
|
return typeof window < "u";
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function xe(t) {
|
|
1037
1037
|
return Lt(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
1038
1038
|
}
|
|
1039
1039
|
function G(t) {
|
|
@@ -1066,7 +1066,7 @@ function Re(t) {
|
|
|
1066
1066
|
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !["inline", "contents"].includes(r);
|
|
1067
1067
|
}
|
|
1068
1068
|
function En(t) {
|
|
1069
|
-
return ["table", "td", "th"].includes(
|
|
1069
|
+
return ["table", "td", "th"].includes(xe(t));
|
|
1070
1070
|
}
|
|
1071
1071
|
function We(t) {
|
|
1072
1072
|
return [":popover-open", ":modal"].some((e) => {
|
|
@@ -1096,7 +1096,7 @@ function et() {
|
|
|
1096
1096
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1097
1097
|
}
|
|
1098
1098
|
function pe(t) {
|
|
1099
|
-
return ["html", "body", "#document"].includes(
|
|
1099
|
+
return ["html", "body", "#document"].includes(xe(t));
|
|
1100
1100
|
}
|
|
1101
1101
|
function K(t) {
|
|
1102
1102
|
return G(t).getComputedStyle(t);
|
|
@@ -1111,7 +1111,7 @@ function $e(t) {
|
|
|
1111
1111
|
};
|
|
1112
1112
|
}
|
|
1113
1113
|
function le(t) {
|
|
1114
|
-
if (
|
|
1114
|
+
if (xe(t) === "html")
|
|
1115
1115
|
return t;
|
|
1116
1116
|
const e = (
|
|
1117
1117
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
@@ -1230,7 +1230,7 @@ function On(t) {
|
|
|
1230
1230
|
scrollTop: 0
|
|
1231
1231
|
}, u = Q(1);
|
|
1232
1232
|
const f = Q(0), d = ee(o);
|
|
1233
|
-
if ((d || !d && !s) && ((
|
|
1233
|
+
if ((d || !d && !s) && ((xe(o) !== "body" || Re(l)) && (a = $e(o)), ee(o))) {
|
|
1234
1234
|
const m = fe(o);
|
|
1235
1235
|
u = me(o), f.x = m.x + o.clientLeft, f.y = m.y + o.clientTop;
|
|
1236
1236
|
}
|
|
@@ -1307,7 +1307,7 @@ function An(t, e) {
|
|
|
1307
1307
|
const n = e.get(t);
|
|
1308
1308
|
if (n)
|
|
1309
1309
|
return n;
|
|
1310
|
-
let o = Ee(t, [], !1).filter((c) => J(c) &&
|
|
1310
|
+
let o = Ee(t, [], !1).filter((c) => J(c) && xe(c) !== "body"), r = null;
|
|
1311
1311
|
const s = K(t).position === "fixed";
|
|
1312
1312
|
let l = s ? le(t) : t;
|
|
1313
1313
|
for (; J(l) && !pe(l); ) {
|
|
@@ -1352,7 +1352,7 @@ function zn(t, e, n) {
|
|
|
1352
1352
|
};
|
|
1353
1353
|
const a = Q(0);
|
|
1354
1354
|
if (o || !o && !s)
|
|
1355
|
-
if ((
|
|
1355
|
+
if ((xe(e) !== "body" || Re(r)) && (c = $e(e)), o) {
|
|
1356
1356
|
const g = fe(e, !0, s, e);
|
|
1357
1357
|
a.x = g.x + e.clientLeft, a.y = g.y + e.clientTop;
|
|
1358
1358
|
} else r && (a.x = nt(r));
|
|
@@ -1502,7 +1502,7 @@ function Wn(t, e, n, o) {
|
|
|
1502
1502
|
}), d == null || d(), (p = m) == null || p.disconnect(), m = null, a && cancelAnimationFrame(h);
|
|
1503
1503
|
};
|
|
1504
1504
|
}
|
|
1505
|
-
const $n = wn, Vn = yn, Fn =
|
|
1505
|
+
const $n = wn, Vn = yn, Fn = vn, Bn = (t, e, n) => {
|
|
1506
1506
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
1507
1507
|
platform: Ln,
|
|
1508
1508
|
...n
|
|
@@ -1510,7 +1510,7 @@ const $n = wn, Vn = yn, Fn = xn, Bn = (t, e, n) => {
|
|
|
1510
1510
|
...r.platform,
|
|
1511
1511
|
_c: o
|
|
1512
1512
|
};
|
|
1513
|
-
return
|
|
1513
|
+
return xn(t, e, {
|
|
1514
1514
|
...r,
|
|
1515
1515
|
platform: s
|
|
1516
1516
|
});
|
|
@@ -1681,7 +1681,7 @@ function Xn(t, e) {
|
|
|
1681
1681
|
};
|
|
1682
1682
|
};
|
|
1683
1683
|
}
|
|
1684
|
-
|
|
1684
|
+
function Ht(t) {
|
|
1685
1685
|
const e = te.c(40), {
|
|
1686
1686
|
className: n,
|
|
1687
1687
|
placement: o,
|
|
@@ -1747,11 +1747,11 @@ const Ht = (t) => {
|
|
|
1747
1747
|
F,
|
|
1748
1748
|
Y
|
|
1749
1749
|
] }), e[37] = F, e[38] = Y, e[39] = Z) : Z = e[39], Z;
|
|
1750
|
-
}
|
|
1750
|
+
}
|
|
1751
1751
|
function Gn(t) {
|
|
1752
1752
|
return t.stopPropagation();
|
|
1753
1753
|
}
|
|
1754
|
-
|
|
1754
|
+
function Jn(t) {
|
|
1755
1755
|
var b, w;
|
|
1756
1756
|
const {
|
|
1757
1757
|
items: e = [],
|
|
@@ -1793,7 +1793,7 @@ const Jn = (t) => {
|
|
|
1793
1793
|
(b = f.visible) == null ? void 0 : b.map((p, y) => n(p, y, s == null ? void 0 : s[y])),
|
|
1794
1794
|
((w = f.hidden) == null ? void 0 : w.length) > 0 && /* @__PURE__ */ R.jsx(Ht, { trigger: "click", content: /* @__PURE__ */ R.jsx("div", { className: "grid max-h-60 grid-flow-row grid-cols-2 gap-3 overflow-auto p-2", children: f.hidden.map((p, y) => n(p, f.visible.length + y, s == null ? void 0 : s[f.visible.length + y])) }), children: /* @__PURE__ */ R.jsx(Mt, { className: u, variant: a, children: /* @__PURE__ */ R.jsx("p", { children: `+${f.hidden.length} ${o}` }) }, "more_items_button") })
|
|
1795
1795
|
] });
|
|
1796
|
-
}
|
|
1796
|
+
}
|
|
1797
1797
|
function he(t, e, n) {
|
|
1798
1798
|
let o = n.initialDeps ?? [], r;
|
|
1799
1799
|
return () => {
|
|
@@ -2294,7 +2294,7 @@ function ho(t) {
|
|
|
2294
2294
|
let o;
|
|
2295
2295
|
return e[1] !== t ? (o = /* @__PURE__ */ R.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "h-6 w-6", ...t, children: n }), e[1] = t, e[2] = o) : o = e[2], o;
|
|
2296
2296
|
}
|
|
2297
|
-
function
|
|
2297
|
+
function vo(t) {
|
|
2298
2298
|
const e = te.c(44), {
|
|
2299
2299
|
items: n,
|
|
2300
2300
|
selected: o,
|
|
@@ -2364,7 +2364,7 @@ function xo(t) {
|
|
|
2364
2364
|
function mo(t) {
|
|
2365
2365
|
return t.text;
|
|
2366
2366
|
}
|
|
2367
|
-
|
|
2367
|
+
function go(t) {
|
|
2368
2368
|
const {
|
|
2369
2369
|
items: e,
|
|
2370
2370
|
multiple: n,
|
|
@@ -2407,7 +2407,7 @@ const go = (t) => {
|
|
|
2407
2407
|
] }) : /* @__PURE__ */ R.jsx("li", { className: X("cursor-not-allowed px-3 py-2 text-sm text-foreground"), children: "No results found" }))
|
|
2408
2408
|
] })
|
|
2409
2409
|
] });
|
|
2410
|
-
}
|
|
2410
|
+
}
|
|
2411
2411
|
function bo(t) {
|
|
2412
2412
|
const e = te.c(3);
|
|
2413
2413
|
let n;
|
|
@@ -2465,7 +2465,7 @@ export {
|
|
|
2465
2465
|
bo as ChevronDown,
|
|
2466
2466
|
uo as ChevronUp,
|
|
2467
2467
|
Jn as Collapse,
|
|
2468
|
-
|
|
2468
|
+
vo as Dropdown,
|
|
2469
2469
|
wo as Input,
|
|
2470
2470
|
Ht as Popover,
|
|
2471
2471
|
fo as Search,
|
package/dist/popover/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export default Popover;
|
|
1
|
+
export default function Popover(props: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
3
2
|
export interface PopoverProps {
|
|
4
3
|
placement?: Placement;
|
|
5
4
|
className?: string;
|
|
@@ -16,4 +15,5 @@ export interface PopoverProps {
|
|
|
16
15
|
type AriaRole = 'tooltip' | 'dialog' | 'alertdialog' | 'menu' | 'listbox' | 'grid' | 'tree';
|
|
17
16
|
type ComponentRole = 'select' | 'label' | 'combobox';
|
|
18
17
|
type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
|
|
18
|
+
export {};
|
|
19
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/popover/index.tsx"],"names":[],"mappings":"AAMA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/popover/index.tsx"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,EAAE,YAAY,2CAmFlD;AAED,MAAM,WAAW,YAAY;IACzB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,IAAI,CAAC,EAAE,QAAQ,GAAG,aAAa,CAAC;CACnC;AACD,KAAK,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAC5F,KAAK,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC;AACrD,KAAK,SAAS,GACR,KAAK,GACL,WAAW,GACX,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,OAAO,GACP,aAAa,GACb,WAAW,GACX,MAAM,GACN,YAAY,GACZ,UAAU,CAAC"}
|
package/dist/zen/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/zen/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/zen/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,KAAK,OAAO,CAAC,GAAG,SAAS,KAAK,CAAC,WAAW,IAAI;IAC1C,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,GAAG,SAAS,KAAK,CAAC,WAAW,IAAI,KAAK,CAAC,iBAAiB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAC7F,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,GAAG,CAAC,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG;IACzD,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AACN,MAAM,MAAM,QAAQ,GAAG,CAAC,GAAG,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAAE,KAAK,EAAE,cAAc,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rinzai/zen",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -31,7 +31,9 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@floating-ui/react-dom": "^2.1.2",
|
|
33
33
|
"@tanstack/react-virtual": "^3.11.1",
|
|
34
|
+
"babel-plugin-react-compiler": "^19.0.0-beta-37ed2a7-20241206",
|
|
34
35
|
"react": "^19.0.0",
|
|
36
|
+
"react-compiler-runtime": "^19.0.0-beta-37ed2a7-20241206",
|
|
35
37
|
"react-dom": "^19.0.0"
|
|
36
38
|
},
|
|
37
39
|
"devDependencies": {
|
|
@@ -49,7 +51,6 @@
|
|
|
49
51
|
"@typescript-eslint/parser": "^8.18.0",
|
|
50
52
|
"@vitejs/plugin-react": "^4.3.4",
|
|
51
53
|
"autoprefixer": "^10.4.20",
|
|
52
|
-
"babel-plugin-react-compiler": "^19.0.0-beta-37ed2a7-20241206",
|
|
53
54
|
"eslint": "^9.16.0",
|
|
54
55
|
"eslint-config-prettier": "^9.1.0",
|
|
55
56
|
"eslint-plugin-prettier": "^5.2.1",
|