@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/index73.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as u from "react";
|
|
3
|
+
import { useStableCallback as S } from "./index95.js";
|
|
4
|
+
import { useSelectRootContext as N } from "./index177.js";
|
|
5
|
+
import { useSelectPositionerContext as L } from "./index192.js";
|
|
6
|
+
import { useRenderElement as b } from "./index86.js";
|
|
7
|
+
import { styleDisableScrollbar as h } from "./index196.js";
|
|
8
|
+
import { LIST_FUNCTIONAL_STYLES as E } from "./index193.js";
|
|
9
|
+
import { selectors as t } from "./index181.js";
|
|
10
|
+
import { useStore as o } from "./index188.js";
|
|
11
|
+
const R = /* @__PURE__ */ u.forwardRef(function(s, l) {
|
|
12
|
+
const {
|
|
13
|
+
className: g,
|
|
14
|
+
render: x,
|
|
15
|
+
...i
|
|
16
|
+
} = s, {
|
|
17
|
+
store: e,
|
|
18
|
+
scrollHandlerRef: c
|
|
19
|
+
} = N(), {
|
|
20
|
+
alignItemWithTriggerActive: n
|
|
21
|
+
} = L(), m = o(e, t.hasScrollArrows), a = o(e, t.openMethod), p = o(e, t.multiple), d = {
|
|
22
|
+
id: `${o(e, t.id)}-list`,
|
|
23
|
+
role: "listbox",
|
|
24
|
+
"aria-multiselectable": p || void 0,
|
|
25
|
+
onScroll(r) {
|
|
26
|
+
c.current?.(r.currentTarget);
|
|
27
|
+
},
|
|
28
|
+
...n && {
|
|
29
|
+
style: E
|
|
30
|
+
},
|
|
31
|
+
className: m && a !== "touch" ? h.className : void 0
|
|
32
|
+
}, f = S((r) => {
|
|
33
|
+
e.set("listElement", r);
|
|
34
|
+
});
|
|
35
|
+
return b("div", s, {
|
|
36
|
+
ref: [l, f],
|
|
37
|
+
props: [d, i]
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
process.env.NODE_ENV !== "production" && (R.displayName = "SelectList");
|
|
41
|
+
export {
|
|
42
|
+
R as SelectList
|
|
43
|
+
};
|
package/dist/index74.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { SelectGroupContext as a } from "./index199.js";
|
|
4
|
+
import { useRenderElement as p } from "./index86.js";
|
|
5
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
6
|
+
const i = /* @__PURE__ */ r.forwardRef(function(o, l) {
|
|
7
|
+
const {
|
|
8
|
+
className: d,
|
|
9
|
+
render: f,
|
|
10
|
+
...s
|
|
11
|
+
} = o, [e, t] = r.useState(), n = r.useMemo(() => ({
|
|
12
|
+
labelId: e,
|
|
13
|
+
setLabelId: t
|
|
14
|
+
}), [e, t]), c = p("div", o, {
|
|
15
|
+
ref: l,
|
|
16
|
+
props: [{
|
|
17
|
+
role: "group",
|
|
18
|
+
"aria-labelledby": e
|
|
19
|
+
}, s]
|
|
20
|
+
});
|
|
21
|
+
return /* @__PURE__ */ u(a.Provider, {
|
|
22
|
+
value: n,
|
|
23
|
+
children: c
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
process.env.NODE_ENV !== "production" && (i.displayName = "SelectGroup");
|
|
27
|
+
export {
|
|
28
|
+
i as SelectGroup
|
|
29
|
+
};
|
package/dist/index75.js
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { useIsoLayoutEffect as A } from "./index97.js";
|
|
4
|
+
import { useValueAsRef as Q } from "./index176.js";
|
|
5
|
+
import { isMouseWithinBounds as X } from "./index195.js";
|
|
6
|
+
import { useTimeout as Y } from "./index148.js";
|
|
7
|
+
import { useSelectRootContext as Z } from "./index177.js";
|
|
8
|
+
import { useCompositeListItem as $, IndexGuessBehavior as ee } from "./index132.js";
|
|
9
|
+
import { useRenderElement as te } from "./index86.js";
|
|
10
|
+
import { SelectItemContext as ne } from "./index197.js";
|
|
11
|
+
import { selectors as v } from "./index181.js";
|
|
12
|
+
import { createChangeEventDetails as g } from "./index113.js";
|
|
13
|
+
import { compareItemEquality as oe, removeItem as re } from "./index185.js";
|
|
14
|
+
import { jsx as se } from "react/jsx-runtime";
|
|
15
|
+
import { useButton as ue } from "./index89.js";
|
|
16
|
+
import { useStore as x } from "./index188.js";
|
|
17
|
+
import { itemPress as S } from "./index114.js";
|
|
18
|
+
const ie = /* @__PURE__ */ r.memo(/* @__PURE__ */ r.forwardRef(function(E, D) {
|
|
19
|
+
const {
|
|
20
|
+
render: ce,
|
|
21
|
+
className: ae,
|
|
22
|
+
value: s = null,
|
|
23
|
+
label: C,
|
|
24
|
+
disabled: i = !1,
|
|
25
|
+
nativeButton: F = !1,
|
|
26
|
+
...k
|
|
27
|
+
} = E, I = r.useRef(null), a = $({
|
|
28
|
+
label: C,
|
|
29
|
+
textRef: I,
|
|
30
|
+
indexGuessBehavior: ee.GuessFromOrder
|
|
31
|
+
}), {
|
|
32
|
+
store: t,
|
|
33
|
+
getItemProps: N,
|
|
34
|
+
setOpen: O,
|
|
35
|
+
setValue: w,
|
|
36
|
+
selectionRef: R,
|
|
37
|
+
typingRef: q,
|
|
38
|
+
valuesRef: U,
|
|
39
|
+
keyboardActiveRef: V,
|
|
40
|
+
multiple: h,
|
|
41
|
+
highlightItemOnHover: P
|
|
42
|
+
} = Z(), G = Y(), l = x(t, v.isActive, a.index), o = x(t, v.isSelected, a.index, s), b = x(t, v.isSelectedByFocus, a.index), y = x(t, v.isItemEqualToValue), n = a.index, c = n !== -1, L = r.useRef(null), B = Q(n);
|
|
43
|
+
A(() => {
|
|
44
|
+
if (!c)
|
|
45
|
+
return;
|
|
46
|
+
const e = U.current;
|
|
47
|
+
return e[n] = s, () => {
|
|
48
|
+
delete e[n];
|
|
49
|
+
};
|
|
50
|
+
}, [c, n, s, U]), A(() => {
|
|
51
|
+
if (!c)
|
|
52
|
+
return;
|
|
53
|
+
const e = t.state.value;
|
|
54
|
+
let u = e;
|
|
55
|
+
h && Array.isArray(e) && e.length > 0 && (u = e[e.length - 1]), u !== void 0 && oe(u, s, y) && t.set("selectedIndex", n);
|
|
56
|
+
}, [c, n, h, y, t, s]);
|
|
57
|
+
const K = r.useMemo(() => ({
|
|
58
|
+
disabled: i,
|
|
59
|
+
selected: o,
|
|
60
|
+
highlighted: l
|
|
61
|
+
}), [i, o, l]), M = N({
|
|
62
|
+
active: l,
|
|
63
|
+
selected: o
|
|
64
|
+
});
|
|
65
|
+
M.onFocus = void 0, M.id = void 0;
|
|
66
|
+
const d = r.useRef(null), f = r.useRef("mouse"), m = r.useRef(!1), {
|
|
67
|
+
getButtonProps: W,
|
|
68
|
+
buttonRef: j
|
|
69
|
+
} = ue({
|
|
70
|
+
disabled: i,
|
|
71
|
+
focusableWhenDisabled: !0,
|
|
72
|
+
native: F
|
|
73
|
+
});
|
|
74
|
+
function T(e) {
|
|
75
|
+
const u = t.state.value;
|
|
76
|
+
if (h) {
|
|
77
|
+
const p = Array.isArray(u) ? u : [], J = o ? re(p, s, y) : [...p, s];
|
|
78
|
+
w(J, g(S, e));
|
|
79
|
+
} else
|
|
80
|
+
w(s, g(S, e)), O(!1, g(S, e));
|
|
81
|
+
}
|
|
82
|
+
const H = {
|
|
83
|
+
role: "option",
|
|
84
|
+
"aria-selected": o,
|
|
85
|
+
"aria-disabled": i || void 0,
|
|
86
|
+
tabIndex: l ? 0 : -1,
|
|
87
|
+
onFocus() {
|
|
88
|
+
t.set("activeIndex", n);
|
|
89
|
+
},
|
|
90
|
+
onMouseEnter() {
|
|
91
|
+
!V.current && t.state.selectedIndex === null && t.set("activeIndex", n);
|
|
92
|
+
},
|
|
93
|
+
onMouseMove() {
|
|
94
|
+
P && t.set("activeIndex", n);
|
|
95
|
+
},
|
|
96
|
+
onMouseLeave(e) {
|
|
97
|
+
!P || V.current || X(e) || G.start(0, () => {
|
|
98
|
+
t.state.activeIndex === n && t.set("activeIndex", null);
|
|
99
|
+
});
|
|
100
|
+
},
|
|
101
|
+
onTouchStart() {
|
|
102
|
+
R.current = {
|
|
103
|
+
allowSelectedMouseUp: !1,
|
|
104
|
+
allowUnselectedMouseUp: !1
|
|
105
|
+
};
|
|
106
|
+
},
|
|
107
|
+
onKeyDown(e) {
|
|
108
|
+
d.current = e.key, t.set("activeIndex", n);
|
|
109
|
+
},
|
|
110
|
+
onClick(e) {
|
|
111
|
+
m.current = !1, !(e.type === "keydown" && d.current === null) && (i || d.current === " " && q.current || f.current !== "touch" && !l || (d.current = null, T(e.nativeEvent)));
|
|
112
|
+
},
|
|
113
|
+
onPointerEnter(e) {
|
|
114
|
+
f.current = e.pointerType;
|
|
115
|
+
},
|
|
116
|
+
onPointerDown(e) {
|
|
117
|
+
f.current = e.pointerType, m.current = !0;
|
|
118
|
+
},
|
|
119
|
+
onMouseUp(e) {
|
|
120
|
+
if (i)
|
|
121
|
+
return;
|
|
122
|
+
if (m.current) {
|
|
123
|
+
m.current = !1;
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
const u = !R.current.allowSelectedMouseUp && o, p = !R.current.allowUnselectedMouseUp && !o;
|
|
127
|
+
u || p || f.current !== "touch" && !l || T(e.nativeEvent);
|
|
128
|
+
}
|
|
129
|
+
}, _ = te("div", E, {
|
|
130
|
+
ref: [j, D, a.ref, L],
|
|
131
|
+
state: K,
|
|
132
|
+
props: [M, H, k, W]
|
|
133
|
+
}), z = r.useMemo(() => ({
|
|
134
|
+
selected: o,
|
|
135
|
+
indexRef: B,
|
|
136
|
+
textRef: I,
|
|
137
|
+
selectedByFocus: b,
|
|
138
|
+
hasRegistered: c
|
|
139
|
+
}), [o, B, I, b, c]);
|
|
140
|
+
return /* @__PURE__ */ se(ne.Provider, {
|
|
141
|
+
value: z,
|
|
142
|
+
children: _
|
|
143
|
+
});
|
|
144
|
+
}));
|
|
145
|
+
process.env.NODE_ENV !== "production" && (ie.displayName = "SelectItem");
|
|
146
|
+
export {
|
|
147
|
+
ie as SelectItem
|
|
148
|
+
};
|
package/dist/index76.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { useSelectRootContext as a } from "./index177.js";
|
|
4
|
+
import { useSelectItemContext as d } from "./index197.js";
|
|
5
|
+
import { useRenderElement as x } from "./index86.js";
|
|
6
|
+
const p = /* @__PURE__ */ t.memo(/* @__PURE__ */ t.forwardRef(function(r, l) {
|
|
7
|
+
const {
|
|
8
|
+
indexRef: c,
|
|
9
|
+
textRef: m,
|
|
10
|
+
selectedByFocus: o,
|
|
11
|
+
hasRegistered: n
|
|
12
|
+
} = d(), {
|
|
13
|
+
selectedItemTextRef: e
|
|
14
|
+
} = a(), {
|
|
15
|
+
className: I,
|
|
16
|
+
render: S,
|
|
17
|
+
...f
|
|
18
|
+
} = r, i = t.useCallback((s) => {
|
|
19
|
+
if (!s || !n)
|
|
20
|
+
return;
|
|
21
|
+
const u = e.current === null || !e.current.isConnected;
|
|
22
|
+
(o || u && c.current === 0) && (e.current = s);
|
|
23
|
+
}, [e, c, o, n]);
|
|
24
|
+
return x("div", r, {
|
|
25
|
+
ref: [i, l, m],
|
|
26
|
+
props: f
|
|
27
|
+
});
|
|
28
|
+
}));
|
|
29
|
+
process.env.NODE_ENV !== "production" && (p.displayName = "SelectItemText");
|
|
30
|
+
export {
|
|
31
|
+
p as SelectItemText
|
|
32
|
+
};
|
package/dist/index77.js
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { useSelectItemContext as u } from "./index197.js";
|
|
4
|
+
import { useTransitionStatus as I } from "./index136.js";
|
|
5
|
+
import { useOpenChangeComplete as R } from "./index119.js";
|
|
6
|
+
import { useRenderElement as M } from "./index86.js";
|
|
7
|
+
import { transitionStatusMapping as N } from "./index112.js";
|
|
8
|
+
import { jsx as S } from "react/jsx-runtime";
|
|
9
|
+
const h = /* @__PURE__ */ t.forwardRef(function(n, r) {
|
|
10
|
+
const s = n.keepMounted ?? !1, {
|
|
11
|
+
selected: i
|
|
12
|
+
} = u();
|
|
13
|
+
return s || i ? /* @__PURE__ */ S(d, {
|
|
14
|
+
...n,
|
|
15
|
+
ref: r
|
|
16
|
+
}) : null;
|
|
17
|
+
});
|
|
18
|
+
process.env.NODE_ENV !== "production" && (h.displayName = "SelectItemIndicator");
|
|
19
|
+
const d = /* @__PURE__ */ t.memo(/* @__PURE__ */ t.forwardRef((o, n) => {
|
|
20
|
+
const {
|
|
21
|
+
render: r,
|
|
22
|
+
className: s,
|
|
23
|
+
keepMounted: i,
|
|
24
|
+
...a
|
|
25
|
+
} = o, {
|
|
26
|
+
selected: e
|
|
27
|
+
} = u(), c = t.useRef(null), {
|
|
28
|
+
transitionStatus: m,
|
|
29
|
+
setMounted: p
|
|
30
|
+
} = I(e), l = t.useMemo(() => ({
|
|
31
|
+
selected: e,
|
|
32
|
+
transitionStatus: m
|
|
33
|
+
}), [e, m]), f = M("span", o, {
|
|
34
|
+
ref: [n, c],
|
|
35
|
+
state: l,
|
|
36
|
+
props: [{
|
|
37
|
+
"aria-hidden": !0,
|
|
38
|
+
children: "✔️"
|
|
39
|
+
}, a],
|
|
40
|
+
stateAttributesMapping: N
|
|
41
|
+
});
|
|
42
|
+
return R({
|
|
43
|
+
open: e,
|
|
44
|
+
ref: c,
|
|
45
|
+
onComplete() {
|
|
46
|
+
e || p(!1);
|
|
47
|
+
}
|
|
48
|
+
}), f;
|
|
49
|
+
}));
|
|
50
|
+
process.env.NODE_ENV !== "production" && (d.displayName = "Inner");
|
|
51
|
+
export {
|
|
52
|
+
h as SelectItemIndicator
|
|
53
|
+
};
|
package/dist/index78.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as c from "react";
|
|
3
|
+
import { useIsoLayoutEffect as i } from "./index97.js";
|
|
4
|
+
import { useBaseUiId as l } from "./index115.js";
|
|
5
|
+
import { useSelectGroupContext as m } from "./index199.js";
|
|
6
|
+
import { useRenderElement as p } from "./index86.js";
|
|
7
|
+
const a = /* @__PURE__ */ c.forwardRef(function(o, r) {
|
|
8
|
+
const {
|
|
9
|
+
className: f,
|
|
10
|
+
render: d,
|
|
11
|
+
id: s,
|
|
12
|
+
...n
|
|
13
|
+
} = o, {
|
|
14
|
+
setLabelId: t
|
|
15
|
+
} = m(), e = l(s);
|
|
16
|
+
return i(() => {
|
|
17
|
+
t(e);
|
|
18
|
+
}, [e, t]), p("div", o, {
|
|
19
|
+
ref: r,
|
|
20
|
+
props: [{
|
|
21
|
+
id: e
|
|
22
|
+
}, n]
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
process.env.NODE_ENV !== "production" && (a.displayName = "SelectGroupLabel");
|
|
26
|
+
export {
|
|
27
|
+
a as SelectGroupLabel
|
|
28
|
+
};
|
package/dist/index79.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
import { SelectScrollArrow as c } from "./index198.js";
|
|
4
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
5
|
+
const l = /* @__PURE__ */ e.forwardRef(function(r, o) {
|
|
6
|
+
return /* @__PURE__ */ t(c, {
|
|
7
|
+
...r,
|
|
8
|
+
ref: o,
|
|
9
|
+
direction: "down"
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
process.env.NODE_ENV !== "production" && (l.displayName = "SelectScrollDownArrow");
|
|
13
|
+
export {
|
|
14
|
+
l as SelectScrollDownArrow
|
|
15
|
+
};
|
package/dist/index8.js
ADDED
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { cn as a } from "./index16.js";
|
|
4
|
+
import u from "./index29.js";
|
|
5
|
+
import m from "./index51.js";
|
|
6
|
+
import { MenuRoot as p } from "./index52.js";
|
|
7
|
+
import { MenuPortal as c } from "./index53.js";
|
|
8
|
+
import { MenuTrigger as l } from "./index54.js";
|
|
9
|
+
import { MenuPositioner as f } from "./index55.js";
|
|
10
|
+
import { MenuPopup as g } from "./index56.js";
|
|
11
|
+
import { MenuGroup as v } from "./index57.js";
|
|
12
|
+
import { MenuGroupLabel as x } from "./index58.js";
|
|
13
|
+
import { MenuItem as w } from "./index59.js";
|
|
14
|
+
import { MenuCheckboxItem as h } from "./index60.js";
|
|
15
|
+
import { MenuCheckboxItemIndicator as b } from "./index61.js";
|
|
16
|
+
import { MenuRadioGroup as M } from "./index62.js";
|
|
17
|
+
import { MenuRadioItem as D } from "./index63.js";
|
|
18
|
+
import { MenuRadioItemIndicator as z } from "./index64.js";
|
|
19
|
+
import { Separator as N } from "./index44.js";
|
|
20
|
+
import { MenuSubmenuRoot as k } from "./index65.js";
|
|
21
|
+
import { MenuSubmenuTrigger as y } from "./index66.js";
|
|
22
|
+
function W({ ...e }) {
|
|
23
|
+
return /* @__PURE__ */ t(p, { "data-slot": "dropdown-menu", ...e });
|
|
24
|
+
}
|
|
25
|
+
function X({ ...e }) {
|
|
26
|
+
return /* @__PURE__ */ t(c, { "data-slot": "dropdown-menu-portal", ...e });
|
|
27
|
+
}
|
|
28
|
+
function Y({ ...e }) {
|
|
29
|
+
return /* @__PURE__ */ t(l, { "data-slot": "dropdown-menu-trigger", ...e });
|
|
30
|
+
}
|
|
31
|
+
function _({
|
|
32
|
+
align: e = "start",
|
|
33
|
+
alignOffset: o = 0,
|
|
34
|
+
side: n = "bottom",
|
|
35
|
+
sideOffset: r = 4,
|
|
36
|
+
className: d,
|
|
37
|
+
...i
|
|
38
|
+
}) {
|
|
39
|
+
return /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(
|
|
40
|
+
f,
|
|
41
|
+
{
|
|
42
|
+
className: "isolate z-50 outline-none",
|
|
43
|
+
align: e,
|
|
44
|
+
alignOffset: o,
|
|
45
|
+
side: n,
|
|
46
|
+
sideOffset: r,
|
|
47
|
+
children: /* @__PURE__ */ t(
|
|
48
|
+
g,
|
|
49
|
+
{
|
|
50
|
+
"data-slot": "dropdown-menu-content",
|
|
51
|
+
className: a(
|
|
52
|
+
"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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100 z-50 max-h-(--available-height) w-(--anchor-width) origin-(--transform-origin) overflow-x-hidden overflow-y-auto outline-none data-closed:overflow-hidden",
|
|
53
|
+
d
|
|
54
|
+
),
|
|
55
|
+
...i
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
}
|
|
59
|
+
) });
|
|
60
|
+
}
|
|
61
|
+
function Z({ ...e }) {
|
|
62
|
+
return /* @__PURE__ */ t(v, { "data-slot": "dropdown-menu-group", ...e });
|
|
63
|
+
}
|
|
64
|
+
function $({
|
|
65
|
+
className: e,
|
|
66
|
+
inset: o,
|
|
67
|
+
...n
|
|
68
|
+
}) {
|
|
69
|
+
return /* @__PURE__ */ t(
|
|
70
|
+
x,
|
|
71
|
+
{
|
|
72
|
+
"data-slot": "dropdown-menu-label",
|
|
73
|
+
"data-inset": o,
|
|
74
|
+
className: a(
|
|
75
|
+
"text-muted-foreground px-1.5 py-1 text-xs font-medium data-[inset]:pl-8",
|
|
76
|
+
e
|
|
77
|
+
),
|
|
78
|
+
...n
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
function ee({
|
|
83
|
+
className: e,
|
|
84
|
+
inset: o,
|
|
85
|
+
variant: n = "default",
|
|
86
|
+
...r
|
|
87
|
+
}) {
|
|
88
|
+
return /* @__PURE__ */ t(
|
|
89
|
+
w,
|
|
90
|
+
{
|
|
91
|
+
"data-slot": "dropdown-menu-item",
|
|
92
|
+
"data-inset": o,
|
|
93
|
+
"data-variant": n,
|
|
94
|
+
className: a(
|
|
95
|
+
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm [&_svg:not([class*='size-'])]:size-4 group/dropdown-menu-item relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
96
|
+
e
|
|
97
|
+
),
|
|
98
|
+
...r
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
function te({ ...e }) {
|
|
103
|
+
return /* @__PURE__ */ t(k, { "data-slot": "dropdown-menu-sub", ...e });
|
|
104
|
+
}
|
|
105
|
+
function oe({
|
|
106
|
+
className: e,
|
|
107
|
+
inset: o,
|
|
108
|
+
children: n,
|
|
109
|
+
...r
|
|
110
|
+
}) {
|
|
111
|
+
return /* @__PURE__ */ s(
|
|
112
|
+
y,
|
|
113
|
+
{
|
|
114
|
+
"data-slot": "dropdown-menu-sub-trigger",
|
|
115
|
+
"data-inset": o,
|
|
116
|
+
className: a(
|
|
117
|
+
"focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm [&_svg:not([class*='size-'])]:size-4 flex cursor-default items-center outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
118
|
+
e
|
|
119
|
+
),
|
|
120
|
+
...r,
|
|
121
|
+
children: [
|
|
122
|
+
n,
|
|
123
|
+
/* @__PURE__ */ t(m, { className: "ml-auto" })
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
function ne({
|
|
129
|
+
align: e = "start",
|
|
130
|
+
alignOffset: o = -3,
|
|
131
|
+
side: n = "right",
|
|
132
|
+
sideOffset: r = 0,
|
|
133
|
+
className: d,
|
|
134
|
+
...i
|
|
135
|
+
}) {
|
|
136
|
+
return /* @__PURE__ */ t(
|
|
137
|
+
_,
|
|
138
|
+
{
|
|
139
|
+
"data-slot": "dropdown-menu-sub-content",
|
|
140
|
+
className: a(
|
|
141
|
+
"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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-[96px] rounded-md p-1 shadow-lg ring-1 duration-100 w-auto",
|
|
142
|
+
d
|
|
143
|
+
),
|
|
144
|
+
align: e,
|
|
145
|
+
alignOffset: o,
|
|
146
|
+
side: n,
|
|
147
|
+
sideOffset: r,
|
|
148
|
+
...i
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
function re({
|
|
153
|
+
className: e,
|
|
154
|
+
children: o,
|
|
155
|
+
checked: n,
|
|
156
|
+
...r
|
|
157
|
+
}) {
|
|
158
|
+
return /* @__PURE__ */ s(
|
|
159
|
+
h,
|
|
160
|
+
{
|
|
161
|
+
"data-slot": "dropdown-menu-checkbox-item",
|
|
162
|
+
className: a(
|
|
163
|
+
"focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
164
|
+
e
|
|
165
|
+
),
|
|
166
|
+
checked: n,
|
|
167
|
+
...r,
|
|
168
|
+
children: [
|
|
169
|
+
/* @__PURE__ */ t(
|
|
170
|
+
"span",
|
|
171
|
+
{
|
|
172
|
+
className: "pointer-events-none absolute right-2 flex items-center justify-center pointer-events-none",
|
|
173
|
+
"data-slot": "dropdown-menu-checkbox-item-indicator",
|
|
174
|
+
children: /* @__PURE__ */ t(b, { children: /* @__PURE__ */ t(u, {}) })
|
|
175
|
+
}
|
|
176
|
+
),
|
|
177
|
+
o
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
function ae({ ...e }) {
|
|
183
|
+
return /* @__PURE__ */ t(
|
|
184
|
+
M,
|
|
185
|
+
{
|
|
186
|
+
"data-slot": "dropdown-menu-radio-group",
|
|
187
|
+
...e
|
|
188
|
+
}
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
function de({
|
|
192
|
+
className: e,
|
|
193
|
+
children: o,
|
|
194
|
+
...n
|
|
195
|
+
}) {
|
|
196
|
+
return /* @__PURE__ */ s(
|
|
197
|
+
D,
|
|
198
|
+
{
|
|
199
|
+
"data-slot": "dropdown-menu-radio-item",
|
|
200
|
+
className: a(
|
|
201
|
+
"focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
202
|
+
e
|
|
203
|
+
),
|
|
204
|
+
...n,
|
|
205
|
+
children: [
|
|
206
|
+
/* @__PURE__ */ t(
|
|
207
|
+
"span",
|
|
208
|
+
{
|
|
209
|
+
className: "pointer-events-none absolute right-2 flex items-center justify-center pointer-events-none",
|
|
210
|
+
"data-slot": "dropdown-menu-radio-item-indicator",
|
|
211
|
+
children: /* @__PURE__ */ t(z, { children: /* @__PURE__ */ t(u, {}) })
|
|
212
|
+
}
|
|
213
|
+
),
|
|
214
|
+
o
|
|
215
|
+
]
|
|
216
|
+
}
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
function ie({
|
|
220
|
+
className: e,
|
|
221
|
+
...o
|
|
222
|
+
}) {
|
|
223
|
+
return /* @__PURE__ */ t(
|
|
224
|
+
N,
|
|
225
|
+
{
|
|
226
|
+
"data-slot": "dropdown-menu-separator",
|
|
227
|
+
className: a("bg-border -mx-1 my-1 h-px", e),
|
|
228
|
+
...o
|
|
229
|
+
}
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
function se({
|
|
233
|
+
className: e,
|
|
234
|
+
...o
|
|
235
|
+
}) {
|
|
236
|
+
return /* @__PURE__ */ t(
|
|
237
|
+
"span",
|
|
238
|
+
{
|
|
239
|
+
"data-slot": "dropdown-menu-shortcut",
|
|
240
|
+
className: a(
|
|
241
|
+
"text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-xs tracking-widest",
|
|
242
|
+
e
|
|
243
|
+
),
|
|
244
|
+
...o
|
|
245
|
+
}
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
export {
|
|
249
|
+
W as DropdownMenu,
|
|
250
|
+
re as DropdownMenuCheckboxItem,
|
|
251
|
+
_ as DropdownMenuContent,
|
|
252
|
+
Z as DropdownMenuGroup,
|
|
253
|
+
ee as DropdownMenuItem,
|
|
254
|
+
$ as DropdownMenuLabel,
|
|
255
|
+
X as DropdownMenuPortal,
|
|
256
|
+
ae as DropdownMenuRadioGroup,
|
|
257
|
+
de as DropdownMenuRadioItem,
|
|
258
|
+
ie as DropdownMenuSeparator,
|
|
259
|
+
se as DropdownMenuShortcut,
|
|
260
|
+
te as DropdownMenuSub,
|
|
261
|
+
ne as DropdownMenuSubContent,
|
|
262
|
+
oe as DropdownMenuSubTrigger,
|
|
263
|
+
Y as DropdownMenuTrigger
|
|
264
|
+
};
|
package/dist/index80.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
import { SelectScrollArrow as c } from "./index198.js";
|
|
4
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
5
|
+
const l = /* @__PURE__ */ e.forwardRef(function(r, o) {
|
|
6
|
+
return /* @__PURE__ */ t(c, {
|
|
7
|
+
...r,
|
|
8
|
+
ref: o,
|
|
9
|
+
direction: "up"
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
process.env.NODE_ENV !== "production" && (l.displayName = "SelectScrollUpArrow");
|
|
13
|
+
export {
|
|
14
|
+
l as SelectScrollUpArrow
|
|
15
|
+
};
|