@yselimcan/ui 0.0.1 → 0.0.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/index.d.ts +231 -1
- package/dist/index.js +100 -15331
- package/dist/index10.js +137 -0
- package/dist/index100.js +7 -0
- package/dist/index101.js +69 -0
- package/dist/index102.js +11 -0
- package/dist/index103.js +16 -0
- package/dist/index104.js +6 -0
- package/dist/index105.js +6 -0
- package/dist/index106.js +8 -0
- package/dist/index107.js +10 -0
- package/dist/index108.js +90 -0
- package/dist/index109.js +15 -0
- package/dist/index11.js +21 -0
- package/dist/index110.js +65 -0
- package/dist/index111.js +40 -0
- package/dist/index112.js +16 -0
- package/dist/index113.js +35 -0
- package/dist/index114.js +21 -0
- package/dist/index115.js +8 -0
- package/dist/index116.js +6 -0
- package/dist/index117.js +7 -0
- package/dist/index118.js +14 -0
- package/dist/index119.js +21 -0
- package/dist/index12.js +20 -0
- package/dist/index120.js +15 -0
- package/dist/index121.js +299 -0
- package/dist/index122.js +7 -0
- package/dist/index123.js +41 -0
- package/dist/index124.js +128 -0
- package/dist/index125.js +23 -0
- package/dist/index126.js +79 -0
- package/dist/index127.js +67 -0
- package/dist/index128.js +48 -0
- package/dist/index129.js +32 -0
- package/dist/index13.js +206 -0
- package/dist/index130.js +14 -0
- package/dist/index131.js +69 -0
- package/dist/index132.js +56 -0
- package/dist/index133.js +15 -0
- package/dist/index134.js +15 -0
- package/dist/index135.js +15 -0
- package/dist/index136.js +43 -0
- package/dist/index137.js +14 -0
- package/dist/index138.js +11 -0
- package/dist/index139.js +8 -0
- package/dist/index14.js +24 -0
- package/dist/index140.js +90 -0
- package/dist/index141.js +14 -0
- package/dist/index142.js +266 -0
- package/dist/index143.js +82 -0
- package/dist/index144.js +14 -0
- package/dist/index145.js +59 -0
- package/dist/index146.js +14 -0
- package/dist/index147.js +14 -0
- package/dist/index148.js +33 -0
- package/dist/index149.js +21 -0
- package/dist/index15.js +19 -0
- package/dist/index150.js +69 -0
- package/dist/index151.js +107 -0
- package/dist/index152.js +11 -0
- package/dist/index153.js +11 -0
- package/dist/index154.js +25 -0
- package/dist/index155.js +106 -0
- package/dist/index156.js +10 -0
- package/dist/index157.js +35 -0
- package/dist/index158.js +233 -0
- package/dist/index159.js +77 -0
- package/dist/index16.js +8 -0
- package/dist/index160.js +286 -0
- package/dist/index161.js +56 -0
- package/dist/index162.js +6 -0
- package/dist/index163.js +17 -0
- package/dist/index164.js +18 -0
- package/dist/index165.js +31 -0
- package/dist/index166.js +10 -0
- package/dist/index167.js +25 -0
- package/dist/index168.js +27 -0
- package/dist/index169.js +163 -0
- package/dist/index17.js +46 -0
- package/dist/index170.js +116 -0
- package/dist/index171.js +78 -0
- package/dist/index172.js +67 -0
- package/dist/index173.js +72 -0
- package/dist/index174.js +16 -0
- package/dist/index175.js +8 -0
- package/dist/index176.js +20 -0
- package/dist/index177.js +24 -0
- package/dist/index178.js +61 -0
- package/dist/index179.js +20 -0
- package/dist/index18.js +41 -0
- package/dist/index180.js +30 -0
- package/dist/index181.js +45 -0
- package/dist/index182.js +24 -0
- package/dist/index183.js +51 -0
- package/dist/index184.js +54 -0
- package/dist/index185.js +20 -0
- package/dist/index186.js +14 -0
- package/dist/index187.js +38 -0
- package/dist/index188.js +18 -0
- package/dist/index189.js +82 -0
- package/dist/index19.js +80 -0
- package/dist/index190.js +26 -0
- package/dist/index191.js +6 -0
- package/dist/index192.js +14 -0
- package/dist/index193.js +13 -0
- package/dist/index194.js +43 -0
- package/dist/index195.js +7 -0
- package/dist/index196.js +12 -0
- package/dist/index197.js +14 -0
- package/dist/index198.js +120 -0
- package/dist/index199.js +14 -0
- package/dist/index20.js +25 -0
- package/dist/index200.js +8 -0
- package/dist/index201.js +50 -0
- package/dist/index202.js +202 -0
- package/dist/index203.js +50 -0
- package/dist/index204.js +22 -0
- package/dist/index205.js +29 -0
- package/dist/index206.js +6 -0
- package/dist/index207.js +24 -0
- package/dist/index208.js +130 -0
- package/dist/index209.js +47 -0
- package/dist/index21.js +40 -0
- package/dist/index210.js +20 -0
- package/dist/index211.js +7 -0
- package/dist/index212.js +183 -0
- package/dist/index213.js +78 -0
- package/dist/index214.js +401 -0
- package/dist/index215.js +9 -0
- package/dist/index216.js +7 -0
- package/dist/index217.js +19 -0
- package/dist/index218.js +17 -0
- package/dist/index219.js +35 -0
- package/dist/index22.js +31 -0
- package/dist/index220.js +41 -0
- package/dist/index221.js +59 -0
- package/dist/index222.js +30 -0
- package/dist/index223.js +10 -0
- package/dist/index224.js +15 -0
- package/dist/index225.js +14 -0
- package/dist/index226.js +14 -0
- package/dist/index227.js +24 -0
- package/dist/index228.js +14 -0
- package/dist/index229.js +10 -0
- package/dist/index23.js +25 -0
- package/dist/index230.js +45 -0
- package/dist/index231.js +599 -0
- package/dist/index232.js +14 -0
- package/dist/index233.js +6 -0
- package/dist/index234.js +12 -0
- package/dist/index235.js +14 -0
- package/dist/index236.js +17 -0
- package/dist/index237.js +211 -0
- package/dist/index238.js +6 -0
- package/dist/index239.js +16 -0
- package/dist/index24.js +56 -0
- package/dist/index240.js +50 -0
- package/dist/index241.js +6 -0
- package/dist/index242.js +15 -0
- package/dist/index243.js +60 -0
- package/dist/index244.js +32 -0
- package/dist/index245.js +16 -0
- package/dist/index246.js +11 -0
- package/dist/index247.js +209 -0
- package/dist/index248.js +23 -0
- package/dist/index249.js +8 -0
- package/dist/index25.js +35 -0
- package/dist/index250.js +324 -0
- package/dist/index251.js +5 -0
- package/dist/index252.js +5 -0
- package/dist/index253.js +489 -0
- package/dist/index254.js +10 -0
- package/dist/index255.js +4 -0
- package/dist/index256.js +46 -0
- package/dist/index257.js +58 -0
- package/dist/index258.js +10 -0
- package/dist/index259.js +4 -0
- package/dist/index26.js +7 -0
- package/dist/index260.js +57 -0
- package/dist/index261.js +58 -0
- package/dist/index262.js +4 -0
- package/dist/index263.js +4 -0
- package/dist/index264.js +4 -0
- package/dist/index265.js +4 -0
- package/dist/index27.js +82 -0
- package/dist/index28.js +32 -0
- package/dist/index29.js +6 -0
- package/dist/index3.js +181 -0
- package/dist/index30.js +9 -0
- package/dist/index31.js +6 -0
- package/dist/index32.js +23 -0
- package/dist/index33.js +207 -0
- package/dist/index34.js +25 -0
- package/dist/index35.js +102 -0
- package/dist/index36.js +69 -0
- package/dist/index37.js +66 -0
- package/dist/index38.js +113 -0
- package/dist/index39.js +53 -0
- package/dist/index4.js +47 -0
- package/dist/index40.js +35 -0
- package/dist/index41.js +28 -0
- package/dist/index42.js +18 -0
- package/dist/index43.js +27 -0
- package/dist/index44.js +25 -0
- package/dist/index45.js +36 -0
- package/dist/index46.js +78 -0
- package/dist/index47.js +65 -0
- package/dist/index48.js +128 -0
- package/dist/index49.js +19 -0
- package/dist/index5.js +52 -0
- package/dist/index50.js +86 -0
- package/dist/index51.js +6 -0
- package/dist/index52.js +268 -0
- package/dist/index53.js +25 -0
- package/dist/index54.js +207 -0
- package/dist/index55.js +146 -0
- package/dist/index56.js +88 -0
- package/dist/index57.js +29 -0
- package/dist/index58.js +30 -0
- package/dist/index59.js +48 -0
- package/dist/index6.js +93 -0
- package/dist/index60.js +79 -0
- package/dist/index61.js +45 -0
- package/dist/index62.js +46 -0
- package/dist/index63.js +76 -0
- package/dist/index64.js +45 -0
- package/dist/index65.js +22 -0
- package/dist/index66.js +101 -0
- package/dist/index67.js +14 -0
- package/dist/index68.js +6 -0
- package/dist/index69.js +321 -0
- package/dist/index7.js +294 -0
- package/dist/index70.js +24 -0
- package/dist/index71.js +143 -0
- package/dist/index72.js +200 -0
- package/dist/index73.js +43 -0
- package/dist/index74.js +29 -0
- package/dist/index75.js +148 -0
- package/dist/index76.js +32 -0
- package/dist/index77.js +53 -0
- package/dist/index78.js +28 -0
- package/dist/index79.js +15 -0
- package/dist/index8.js +264 -0
- package/dist/index80.js +15 -0
- package/dist/index81.js +135 -0
- package/dist/index82.js +31 -0
- package/dist/index83.js +35 -0
- package/dist/index84.js +17 -0
- package/dist/index85.js +2765 -0
- package/dist/index86.js +57 -0
- package/dist/index87.js +14 -0
- package/dist/index88.js +98 -0
- package/dist/index89.js +92 -0
- package/dist/index9.js +197 -0
- package/dist/index90.js +21 -0
- package/dist/index91.js +18 -0
- package/dist/index92.js +35 -0
- package/dist/index93.js +14 -0
- package/dist/index94.js +136 -0
- package/dist/index95.js +30 -0
- package/dist/index96.js +11 -0
- package/dist/index97.js +7 -0
- package/dist/index98.js +15 -0
- package/dist/index99.js +25 -0
- package/dist/styles.css +1 -1
- package/package.json +3 -2
package/dist/index261.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { __exports as d } from "./index265.js";
|
|
2
|
+
import M from "react";
|
|
3
|
+
import { __require as b } from "./index254.js";
|
|
4
|
+
var s;
|
|
5
|
+
function H() {
|
|
6
|
+
return s ? d : (s = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
7
|
+
function A(r, u) {
|
|
8
|
+
return r === u && (r !== 0 || 1 / r === 1 / u) || r !== r && u !== u;
|
|
9
|
+
}
|
|
10
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
11
|
+
var i = M, R = b(), T = typeof Object.is == "function" ? Object.is : A, V = R.useSyncExternalStore, D = i.useRef, S = i.useEffect, p = i.useMemo, G = i.useDebugValue;
|
|
12
|
+
d.useSyncExternalStoreWithSelector = function(r, u, a, c, f) {
|
|
13
|
+
var _ = D(null);
|
|
14
|
+
if (_.current === null) {
|
|
15
|
+
var t = { hasValue: !1, value: null };
|
|
16
|
+
_.current = t;
|
|
17
|
+
} else t = _.current;
|
|
18
|
+
_ = p(
|
|
19
|
+
function() {
|
|
20
|
+
function m(e) {
|
|
21
|
+
if (!v) {
|
|
22
|
+
if (v = !0, l = e, e = c(e), f !== void 0 && t.hasValue) {
|
|
23
|
+
var o = t.value;
|
|
24
|
+
if (f(o, e))
|
|
25
|
+
return O = o;
|
|
26
|
+
}
|
|
27
|
+
return O = e;
|
|
28
|
+
}
|
|
29
|
+
if (o = O, T(l, e))
|
|
30
|
+
return o;
|
|
31
|
+
var E = c(e);
|
|
32
|
+
return f !== void 0 && f(o, E) ? (l = e, o) : (l = e, O = E);
|
|
33
|
+
}
|
|
34
|
+
var v = !1, l, O, L = a === void 0 ? null : a;
|
|
35
|
+
return [
|
|
36
|
+
function() {
|
|
37
|
+
return m(u());
|
|
38
|
+
},
|
|
39
|
+
L === null ? void 0 : function() {
|
|
40
|
+
return m(L());
|
|
41
|
+
}
|
|
42
|
+
];
|
|
43
|
+
},
|
|
44
|
+
[u, a, c, f]
|
|
45
|
+
);
|
|
46
|
+
var n = V(r, _[0], _[1]);
|
|
47
|
+
return S(
|
|
48
|
+
function() {
|
|
49
|
+
t.hasValue = !0, t.value = n;
|
|
50
|
+
},
|
|
51
|
+
[n]
|
|
52
|
+
), G(n), n;
|
|
53
|
+
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
54
|
+
})(), d);
|
|
55
|
+
}
|
|
56
|
+
export {
|
|
57
|
+
H as __require
|
|
58
|
+
};
|
package/dist/index262.js
ADDED
package/dist/index263.js
ADDED
package/dist/index264.js
ADDED
package/dist/index265.js
ADDED
package/dist/index27.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { mergeObjects as a } from "./index87.js";
|
|
2
|
+
const i = {};
|
|
3
|
+
function g(t, n, e, r, c) {
|
|
4
|
+
let f = {
|
|
5
|
+
...o(t, i)
|
|
6
|
+
};
|
|
7
|
+
return n && (f = u(f, n)), e && (f = u(f, e)), r && (f = u(f, r)), c && (f = u(f, c)), f;
|
|
8
|
+
}
|
|
9
|
+
function h(t) {
|
|
10
|
+
if (t.length === 0)
|
|
11
|
+
return i;
|
|
12
|
+
if (t.length === 1)
|
|
13
|
+
return o(t[0], i);
|
|
14
|
+
let n = {
|
|
15
|
+
...o(t[0], i)
|
|
16
|
+
};
|
|
17
|
+
for (let e = 1; e < t.length; e += 1)
|
|
18
|
+
n = u(n, t[e]);
|
|
19
|
+
return n;
|
|
20
|
+
}
|
|
21
|
+
function u(t, n) {
|
|
22
|
+
return l(n) ? n(t) : s(t, n);
|
|
23
|
+
}
|
|
24
|
+
function s(t, n) {
|
|
25
|
+
if (!n)
|
|
26
|
+
return t;
|
|
27
|
+
for (const e in n) {
|
|
28
|
+
const r = n[e];
|
|
29
|
+
switch (e) {
|
|
30
|
+
case "style": {
|
|
31
|
+
t[e] = a(t.style, r);
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
case "className": {
|
|
35
|
+
t[e] = I(t.className, r);
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
default:
|
|
39
|
+
b(e, r) ? t[e] = E(t[e], r) : t[e] = r;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return t;
|
|
43
|
+
}
|
|
44
|
+
function b(t, n) {
|
|
45
|
+
const e = t.charCodeAt(0), r = t.charCodeAt(1), c = t.charCodeAt(2);
|
|
46
|
+
return e === 111 && r === 110 && c >= 65 && c <= 90 && (typeof n == "function" || typeof n > "u");
|
|
47
|
+
}
|
|
48
|
+
function l(t) {
|
|
49
|
+
return typeof t == "function";
|
|
50
|
+
}
|
|
51
|
+
function o(t, n) {
|
|
52
|
+
return l(t) ? t(n) : t ?? i;
|
|
53
|
+
}
|
|
54
|
+
function E(t, n) {
|
|
55
|
+
return n ? t ? (e) => {
|
|
56
|
+
if (v(e)) {
|
|
57
|
+
const c = e;
|
|
58
|
+
y(c);
|
|
59
|
+
const f = n(c);
|
|
60
|
+
return c.baseUIHandlerPrevented || t?.(c), f;
|
|
61
|
+
}
|
|
62
|
+
const r = n(e);
|
|
63
|
+
return t?.(e), r;
|
|
64
|
+
} : n : t;
|
|
65
|
+
}
|
|
66
|
+
function y(t) {
|
|
67
|
+
return t.preventBaseUIHandler = () => {
|
|
68
|
+
t.baseUIHandlerPrevented = !0;
|
|
69
|
+
}, t;
|
|
70
|
+
}
|
|
71
|
+
function I(t, n) {
|
|
72
|
+
return n ? t ? n + " " + t : n : t;
|
|
73
|
+
}
|
|
74
|
+
function v(t) {
|
|
75
|
+
return t != null && typeof t == "object" && "nativeEvent" in t;
|
|
76
|
+
}
|
|
77
|
+
export {
|
|
78
|
+
y as makeEventPreventable,
|
|
79
|
+
I as mergeClassNames,
|
|
80
|
+
g as mergeProps,
|
|
81
|
+
h as mergePropsN
|
|
82
|
+
};
|
package/dist/index28.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import { useButton as f } from "./index89.js";
|
|
4
|
+
import { useRenderElement as c } from "./index86.js";
|
|
5
|
+
const m = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
6
|
+
const {
|
|
7
|
+
render: b,
|
|
8
|
+
className: B,
|
|
9
|
+
disabled: s = !1,
|
|
10
|
+
focusableWhenDisabled: r = !1,
|
|
11
|
+
nativeButton: a = !0,
|
|
12
|
+
...u
|
|
13
|
+
} = t, e = !!s, {
|
|
14
|
+
getButtonProps: i,
|
|
15
|
+
buttonRef: l
|
|
16
|
+
} = f({
|
|
17
|
+
disabled: e,
|
|
18
|
+
focusableWhenDisabled: r,
|
|
19
|
+
native: a
|
|
20
|
+
}), d = o.useMemo(() => ({
|
|
21
|
+
disabled: e
|
|
22
|
+
}), [e]);
|
|
23
|
+
return c("button", t, {
|
|
24
|
+
state: d,
|
|
25
|
+
ref: [n, l],
|
|
26
|
+
props: [u, i]
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
process.env.NODE_ENV !== "production" && (m.displayName = "Button");
|
|
30
|
+
export {
|
|
31
|
+
m as Button
|
|
32
|
+
};
|
package/dist/index29.js
ADDED
package/dist/index3.js
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { cn as o } from "./index16.js";
|
|
4
|
+
import { Button as l } from "./index5.js";
|
|
5
|
+
import { AlertDialogRoot as n } from "./index17.js";
|
|
6
|
+
import { DialogClose as s } from "./index18.js";
|
|
7
|
+
import { DialogPopup as g } from "./index19.js";
|
|
8
|
+
import { DialogDescription as u } from "./index20.js";
|
|
9
|
+
import { DialogBackdrop as m } from "./index21.js";
|
|
10
|
+
import { DialogPortal as c } from "./index22.js";
|
|
11
|
+
import { DialogTitle as f } from "./index23.js";
|
|
12
|
+
import { DialogTrigger as p } from "./index24.js";
|
|
13
|
+
function C({ ...t }) {
|
|
14
|
+
return /* @__PURE__ */ e(n, { "data-slot": "alert-dialog", ...t });
|
|
15
|
+
}
|
|
16
|
+
function P({ ...t }) {
|
|
17
|
+
return /* @__PURE__ */ e(p, { "data-slot": "alert-dialog-trigger", ...t });
|
|
18
|
+
}
|
|
19
|
+
function x({ ...t }) {
|
|
20
|
+
return /* @__PURE__ */ e(c, { "data-slot": "alert-dialog-portal", ...t });
|
|
21
|
+
}
|
|
22
|
+
function D({
|
|
23
|
+
className: t,
|
|
24
|
+
...a
|
|
25
|
+
}) {
|
|
26
|
+
return /* @__PURE__ */ e(
|
|
27
|
+
m,
|
|
28
|
+
{
|
|
29
|
+
"data-slot": "alert-dialog-overlay",
|
|
30
|
+
className: o(
|
|
31
|
+
"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 isolate z-50",
|
|
32
|
+
t
|
|
33
|
+
),
|
|
34
|
+
...a
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
function B({
|
|
39
|
+
className: t,
|
|
40
|
+
size: a = "default",
|
|
41
|
+
...r
|
|
42
|
+
}) {
|
|
43
|
+
return /* @__PURE__ */ d(x, { children: [
|
|
44
|
+
/* @__PURE__ */ e(D, {}),
|
|
45
|
+
/* @__PURE__ */ e(
|
|
46
|
+
g,
|
|
47
|
+
{
|
|
48
|
+
"data-slot": "alert-dialog-content",
|
|
49
|
+
"data-size": a,
|
|
50
|
+
className: o(
|
|
51
|
+
"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 bg-background ring-foreground/10 gap-4 rounded-xl p-4 ring-1 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 outline-none",
|
|
52
|
+
t
|
|
53
|
+
),
|
|
54
|
+
...r
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
] });
|
|
58
|
+
}
|
|
59
|
+
function F({
|
|
60
|
+
className: t,
|
|
61
|
+
...a
|
|
62
|
+
}) {
|
|
63
|
+
return /* @__PURE__ */ e(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
"data-slot": "alert-dialog-header",
|
|
67
|
+
className: o(
|
|
68
|
+
"grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",
|
|
69
|
+
t
|
|
70
|
+
),
|
|
71
|
+
...a
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
function H({
|
|
76
|
+
className: t,
|
|
77
|
+
...a
|
|
78
|
+
}) {
|
|
79
|
+
return /* @__PURE__ */ e(
|
|
80
|
+
"div",
|
|
81
|
+
{
|
|
82
|
+
"data-slot": "alert-dialog-footer",
|
|
83
|
+
className: o(
|
|
84
|
+
"bg-muted/50 -mx-4 -mb-4 rounded-b-xl border-t p-4 flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",
|
|
85
|
+
t
|
|
86
|
+
),
|
|
87
|
+
...a
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
function M({
|
|
92
|
+
className: t,
|
|
93
|
+
...a
|
|
94
|
+
}) {
|
|
95
|
+
return /* @__PURE__ */ e(
|
|
96
|
+
"div",
|
|
97
|
+
{
|
|
98
|
+
"data-slot": "alert-dialog-media",
|
|
99
|
+
className: o(
|
|
100
|
+
"bg-muted mb-2 inline-flex size-10 items-center justify-center rounded-md sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-6",
|
|
101
|
+
t
|
|
102
|
+
),
|
|
103
|
+
...a
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
function O({
|
|
108
|
+
className: t,
|
|
109
|
+
...a
|
|
110
|
+
}) {
|
|
111
|
+
return /* @__PURE__ */ e(
|
|
112
|
+
f,
|
|
113
|
+
{
|
|
114
|
+
"data-slot": "alert-dialog-title",
|
|
115
|
+
className: o(
|
|
116
|
+
"text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",
|
|
117
|
+
t
|
|
118
|
+
),
|
|
119
|
+
...a
|
|
120
|
+
}
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
function R({
|
|
124
|
+
className: t,
|
|
125
|
+
...a
|
|
126
|
+
}) {
|
|
127
|
+
return /* @__PURE__ */ e(
|
|
128
|
+
u,
|
|
129
|
+
{
|
|
130
|
+
"data-slot": "alert-dialog-description",
|
|
131
|
+
className: o(
|
|
132
|
+
"text-muted-foreground *:[a]:hover:text-foreground text-sm text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3",
|
|
133
|
+
t
|
|
134
|
+
),
|
|
135
|
+
...a
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
function q({
|
|
140
|
+
className: t,
|
|
141
|
+
...a
|
|
142
|
+
}) {
|
|
143
|
+
return /* @__PURE__ */ e(
|
|
144
|
+
l,
|
|
145
|
+
{
|
|
146
|
+
"data-slot": "alert-dialog-action",
|
|
147
|
+
className: o(t),
|
|
148
|
+
...a
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
function E({
|
|
153
|
+
className: t,
|
|
154
|
+
variant: a = "outline",
|
|
155
|
+
size: r = "default",
|
|
156
|
+
...i
|
|
157
|
+
}) {
|
|
158
|
+
return /* @__PURE__ */ e(
|
|
159
|
+
s,
|
|
160
|
+
{
|
|
161
|
+
"data-slot": "alert-dialog-cancel",
|
|
162
|
+
className: o(t),
|
|
163
|
+
render: /* @__PURE__ */ e(l, { variant: a, size: r }),
|
|
164
|
+
...i
|
|
165
|
+
}
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
export {
|
|
169
|
+
C as AlertDialog,
|
|
170
|
+
q as AlertDialogAction,
|
|
171
|
+
E as AlertDialogCancel,
|
|
172
|
+
B as AlertDialogContent,
|
|
173
|
+
R as AlertDialogDescription,
|
|
174
|
+
H as AlertDialogFooter,
|
|
175
|
+
F as AlertDialogHeader,
|
|
176
|
+
M as AlertDialogMedia,
|
|
177
|
+
D as AlertDialogOverlay,
|
|
178
|
+
x as AlertDialogPortal,
|
|
179
|
+
O as AlertDialogTitle,
|
|
180
|
+
P as AlertDialogTrigger
|
|
181
|
+
};
|
package/dist/index30.js
ADDED
package/dist/index31.js
ADDED
package/dist/index32.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react";
|
|
3
|
+
import { AriaCombobox as n } from "./index231.js";
|
|
4
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
+
function s(e) {
|
|
6
|
+
const {
|
|
7
|
+
multiple: o = !1,
|
|
8
|
+
defaultValue: l,
|
|
9
|
+
value: t,
|
|
10
|
+
onValueChange: u,
|
|
11
|
+
...a
|
|
12
|
+
} = e;
|
|
13
|
+
return /* @__PURE__ */ i(n, {
|
|
14
|
+
...a,
|
|
15
|
+
selectionMode: o ? "multiple" : "single",
|
|
16
|
+
selectedValue: t,
|
|
17
|
+
defaultSelectedValue: l,
|
|
18
|
+
onSelectedValueChange: u
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
s as ComboboxRoot
|
|
23
|
+
};
|
package/dist/index33.js
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as h from "react";
|
|
3
|
+
import { useStableCallback as ie } from "./index95.js";
|
|
4
|
+
import { isFirefox as K, isAndroid as re } from "./index194.js";
|
|
5
|
+
import { useBaseUiId as ae } from "./index115.js";
|
|
6
|
+
import { useRenderElement as le } from "./index86.js";
|
|
7
|
+
import { useComboboxRootContext as ue, useComboboxDerivedItemsContext as ce, useComboboxInputValueContext as de } from "./index220.js";
|
|
8
|
+
import { selectors as r } from "./index221.js";
|
|
9
|
+
import { pressableTriggerOpenStateMapping as pe } from "./index111.js";
|
|
10
|
+
import { useFieldRootContext as fe } from "./index178.js";
|
|
11
|
+
import { fieldValidityMapping as me } from "./index190.js";
|
|
12
|
+
import { useLabelableContext as ge } from "./index179.js";
|
|
13
|
+
import { useComboboxChipsContext as ye } from "./index223.js";
|
|
14
|
+
import { useComboboxPositionerContext as Ie } from "./index224.js";
|
|
15
|
+
import { createChangeEventDetails as l } from "./index113.js";
|
|
16
|
+
import { useDirection as xe } from "./index153.js";
|
|
17
|
+
import { useStore as a } from "./index188.js";
|
|
18
|
+
import { stopEvent as V } from "./index222.js";
|
|
19
|
+
import { escapeKey as be, none as A, inputClear as H, inputChange as C } from "./index114.js";
|
|
20
|
+
const he = {
|
|
21
|
+
...pe,
|
|
22
|
+
...me,
|
|
23
|
+
popupSide: (g) => g ? {
|
|
24
|
+
"data-popup-side": g
|
|
25
|
+
} : null,
|
|
26
|
+
listEmpty: (g) => g ? {
|
|
27
|
+
"data-list-empty": ""
|
|
28
|
+
} : null
|
|
29
|
+
}, Ce = /* @__PURE__ */ h.forwardRef(function(k, L) {
|
|
30
|
+
const {
|
|
31
|
+
render: ke,
|
|
32
|
+
className: ve,
|
|
33
|
+
disabled: N = !1,
|
|
34
|
+
id: F,
|
|
35
|
+
...P
|
|
36
|
+
} = k, {
|
|
37
|
+
state: D,
|
|
38
|
+
disabled: W,
|
|
39
|
+
setTouched: U,
|
|
40
|
+
setFocused: S,
|
|
41
|
+
validationMode: _,
|
|
42
|
+
validation: v
|
|
43
|
+
} = fe(), {
|
|
44
|
+
labelId: j
|
|
45
|
+
} = ge(), f = ye(), q = !!Ie(!0), e = ue(), {
|
|
46
|
+
filteredItems: z
|
|
47
|
+
} = ce(), T = de(), G = ae(F), J = xe(), Q = a(e, r.disabled), d = a(e, r.readOnly), M = a(e, r.name), y = a(e, r.selectionMode), X = a(e, r.autoHighlight), Y = a(e, r.inputProps), Z = a(e, r.triggerProps), I = a(e, r.open), O = a(e, r.mounted), s = a(e, r.selectedValue), $ = a(e, r.popupSide), ee = a(e, r.positionerElement), x = !!X, w = O && ee ? $ : null, m = W || Q || N, B = z.length === 0, [te, E] = h.useState(null), R = h.useRef(!1), ne = ie((t) => {
|
|
48
|
+
const n = q || e.state.inline;
|
|
49
|
+
n && !e.state.hasInputValue && e.state.setInputValue("", l(A)), e.update({
|
|
50
|
+
inputElement: t,
|
|
51
|
+
inputInsidePopup: n
|
|
52
|
+
});
|
|
53
|
+
}), oe = h.useMemo(() => ({
|
|
54
|
+
...D,
|
|
55
|
+
open: I,
|
|
56
|
+
disabled: m,
|
|
57
|
+
readOnly: d,
|
|
58
|
+
popupSide: w,
|
|
59
|
+
listEmpty: B
|
|
60
|
+
}), [D, I, m, d, w, B]);
|
|
61
|
+
function se(t) {
|
|
62
|
+
if (!f)
|
|
63
|
+
return;
|
|
64
|
+
let n;
|
|
65
|
+
const {
|
|
66
|
+
highlightedChipIndex: i
|
|
67
|
+
} = f;
|
|
68
|
+
if (i !== void 0) {
|
|
69
|
+
if (t.key === "ArrowLeft")
|
|
70
|
+
t.preventDefault(), i > 0 ? n = i - 1 : n = void 0;
|
|
71
|
+
else if (t.key === "ArrowRight")
|
|
72
|
+
t.preventDefault(), i < s.length - 1 ? n = i + 1 : n = void 0;
|
|
73
|
+
else if (t.key === "Backspace" || t.key === "Delete") {
|
|
74
|
+
t.preventDefault();
|
|
75
|
+
const u = i >= s.length - 1 ? s.length - 2 : i;
|
|
76
|
+
n = u >= 0 ? u : void 0, e.state.setIndices({
|
|
77
|
+
activeIndex: null,
|
|
78
|
+
selectedIndex: null,
|
|
79
|
+
type: "keyboard"
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
return n;
|
|
83
|
+
}
|
|
84
|
+
return t.key === "ArrowLeft" && (t.currentTarget.selectionStart ?? 0) === 0 && s.length > 0 ? (t.preventDefault(), n = Math.max(s.length - 1, 0)) : t.key === "Backspace" && t.currentTarget.value === "" && s.length > 0 && (e.state.setIndices({
|
|
85
|
+
activeIndex: null,
|
|
86
|
+
selectedIndex: null,
|
|
87
|
+
type: "keyboard"
|
|
88
|
+
}), t.preventDefault()), n;
|
|
89
|
+
}
|
|
90
|
+
return le("input", k, {
|
|
91
|
+
state: oe,
|
|
92
|
+
ref: [L, e.state.inputRef, ne],
|
|
93
|
+
props: [Y, Z, {
|
|
94
|
+
type: "text",
|
|
95
|
+
value: k.value ?? te ?? T,
|
|
96
|
+
"aria-readonly": d || void 0,
|
|
97
|
+
"aria-labelledby": j,
|
|
98
|
+
disabled: m,
|
|
99
|
+
readOnly: d,
|
|
100
|
+
...y === "none" && M && {
|
|
101
|
+
name: M
|
|
102
|
+
},
|
|
103
|
+
id: G,
|
|
104
|
+
onFocus() {
|
|
105
|
+
S(!0);
|
|
106
|
+
},
|
|
107
|
+
onBlur() {
|
|
108
|
+
if (U(!0), S(!1), _ === "onBlur") {
|
|
109
|
+
const t = y === "none" ? T : s;
|
|
110
|
+
v.commit(t);
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
onCompositionStart(t) {
|
|
114
|
+
re || (R.current = !0, E(t.currentTarget.value));
|
|
115
|
+
},
|
|
116
|
+
onCompositionEnd(t) {
|
|
117
|
+
R.current = !1;
|
|
118
|
+
const n = t.currentTarget.value;
|
|
119
|
+
E(null), e.state.setInputValue(n, l(C, t.nativeEvent));
|
|
120
|
+
},
|
|
121
|
+
onChange(t) {
|
|
122
|
+
if (R.current) {
|
|
123
|
+
const p = t.currentTarget.value;
|
|
124
|
+
E(p), p === "" && !e.state.openOnInputClick && !e.state.inputInsidePopup && e.state.setOpen(!1, l(H, t.nativeEvent));
|
|
125
|
+
const o = p.trim(), c = x && o !== "";
|
|
126
|
+
!d && !m && o !== "" && (e.state.setOpen(!0, l(C, t.nativeEvent)), x || e.state.setIndices({
|
|
127
|
+
activeIndex: null,
|
|
128
|
+
selectedIndex: null,
|
|
129
|
+
type: e.state.keyboardActiveRef.current ? "keyboard" : "pointer"
|
|
130
|
+
})), I && e.state.activeIndex !== null && !c && e.state.setIndices({
|
|
131
|
+
activeIndex: null,
|
|
132
|
+
selectedIndex: null,
|
|
133
|
+
type: e.state.keyboardActiveRef.current ? "keyboard" : "pointer"
|
|
134
|
+
});
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
e.state.setInputValue(t.currentTarget.value, l(C, t.nativeEvent));
|
|
138
|
+
const n = t.currentTarget.value === "", i = l(H, t.nativeEvent);
|
|
139
|
+
n && !e.state.inputInsidePopup && (y === "single" && e.state.setSelectedValue(null, i), e.state.openOnInputClick || e.state.setOpen(!1, i));
|
|
140
|
+
const u = t.currentTarget.value.trim();
|
|
141
|
+
!d && !m && u !== "" && (e.state.setOpen(!0, l(C, t.nativeEvent)), x || e.state.setIndices({
|
|
142
|
+
activeIndex: null,
|
|
143
|
+
selectedIndex: null,
|
|
144
|
+
type: e.state.keyboardActiveRef.current ? "keyboard" : "pointer"
|
|
145
|
+
})), I && e.state.activeIndex !== null && !x && e.state.setIndices({
|
|
146
|
+
activeIndex: null,
|
|
147
|
+
selectedIndex: null,
|
|
148
|
+
type: e.state.keyboardActiveRef.current ? "keyboard" : "pointer"
|
|
149
|
+
});
|
|
150
|
+
},
|
|
151
|
+
onKeyDown(t) {
|
|
152
|
+
if (m || d || t.ctrlKey || t.shiftKey || t.altKey || t.metaKey)
|
|
153
|
+
return;
|
|
154
|
+
e.state.keyboardActiveRef.current = !0;
|
|
155
|
+
const n = t.currentTarget, i = n.scrollWidth - n.clientWidth, u = J === "rtl";
|
|
156
|
+
if (t.key === "Home") {
|
|
157
|
+
V(t);
|
|
158
|
+
const o = K && u ? n.value.length : 0;
|
|
159
|
+
n.setSelectionRange(o, o), n.scrollLeft = 0;
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
if (t.key === "End") {
|
|
163
|
+
V(t);
|
|
164
|
+
const o = K && u ? 0 : n.value.length;
|
|
165
|
+
n.setSelectionRange(o, o), n.scrollLeft = u ? -i : i;
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
if (!O && t.key === "Escape") {
|
|
169
|
+
const o = y === "multiple" && Array.isArray(s) ? s.length === 0 : s === null, c = l(be, t.nativeEvent), b = y === "multiple" ? [] : null;
|
|
170
|
+
e.state.setInputValue("", c), e.state.setSelectedValue(b, c), !o && !e.state.inline && !c.isPropagationAllowed && t.stopPropagation();
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
if (f && t.key === "Backspace" && n.value === "" && f.highlightedChipIndex === void 0 && Array.isArray(s) && s.length > 0) {
|
|
174
|
+
const o = s.slice(0, -1);
|
|
175
|
+
e.state.setIndices({
|
|
176
|
+
activeIndex: null,
|
|
177
|
+
selectedIndex: null,
|
|
178
|
+
type: e.state.keyboardActiveRef.current ? "keyboard" : "pointer"
|
|
179
|
+
}), e.state.setSelectedValue(o, l(A, t.nativeEvent));
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
const p = se(t);
|
|
183
|
+
if (f?.setHighlightedChipIndex(p), p !== void 0 ? f?.chipsRef.current[p]?.focus() : e.state.inputRef.current?.focus(), t.which !== 229 && t.key === "Enter" && I) {
|
|
184
|
+
const o = e.state.activeIndex, c = t.nativeEvent;
|
|
185
|
+
if (o === null) {
|
|
186
|
+
e.state.setOpen(!1, l(A, c));
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
V(t);
|
|
190
|
+
const b = e.state.listRef.current[o];
|
|
191
|
+
b && (e.state.selectionEventRef.current = c, b.click(), e.state.selectionEventRef.current = null);
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
onPointerMove() {
|
|
195
|
+
e.state.keyboardActiveRef.current = !1;
|
|
196
|
+
},
|
|
197
|
+
onPointerDown() {
|
|
198
|
+
e.state.keyboardActiveRef.current = !1;
|
|
199
|
+
}
|
|
200
|
+
}, v ? v.getValidationProps(P) : P],
|
|
201
|
+
stateAttributesMapping: he
|
|
202
|
+
});
|
|
203
|
+
});
|
|
204
|
+
process.env.NODE_ENV !== "production" && (Ce.displayName = "ComboboxInput");
|
|
205
|
+
export {
|
|
206
|
+
Ce as ComboboxInput
|
|
207
|
+
};
|
package/dist/index34.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as u from "react";
|
|
3
|
+
import { useComboboxRootContext as c } from "./index220.js";
|
|
4
|
+
import { ComboboxPortalContext as a } from "./index225.js";
|
|
5
|
+
import { selectors as t } from "./index221.js";
|
|
6
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
7
|
+
import { FloatingPortal as d } from "./index124.js";
|
|
8
|
+
import { useStore as n } from "./index188.js";
|
|
9
|
+
const p = /* @__PURE__ */ u.forwardRef(function(m, s) {
|
|
10
|
+
const {
|
|
11
|
+
keepMounted: o = !1,
|
|
12
|
+
...l
|
|
13
|
+
} = m, r = c(), f = n(r, t.mounted), i = n(r, t.forceMounted);
|
|
14
|
+
return f || o || i ? /* @__PURE__ */ e(a.Provider, {
|
|
15
|
+
value: o,
|
|
16
|
+
children: /* @__PURE__ */ e(d, {
|
|
17
|
+
ref: s,
|
|
18
|
+
...l
|
|
19
|
+
})
|
|
20
|
+
}) : null;
|
|
21
|
+
});
|
|
22
|
+
process.env.NODE_ENV !== "production" && (p.displayName = "ComboboxPortal");
|
|
23
|
+
export {
|
|
24
|
+
p as ComboboxPortal
|
|
25
|
+
};
|