@yselimcan/ui 0.0.5 → 0.0.7
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/index100.js +4 -5
- package/dist/index101.js +66 -7
- package/dist/index102.js +8 -87
- package/dist/index103.js +12 -11
- package/dist/index104.js +3 -62
- package/dist/index105.js +4 -38
- package/dist/index106.js +6 -14
- package/dist/index107.js +29 -32
- package/dist/index108.js +12 -19
- package/dist/index109.js +65 -4
- package/dist/index110.js +53 -3
- package/dist/index111.js +13 -5
- package/dist/index112.js +5 -11
- package/dist/index113.js +13 -19
- package/dist/index114.js +13 -13
- package/dist/index115.js +32 -296
- package/dist/index116.js +19 -5
- package/dist/index117.js +40 -38
- package/dist/index118.js +16 -123
- package/dist/index119.js +12 -21
- package/dist/index120.js +38 -77
- package/dist/index121.js +14 -65
- package/dist/index122.js +8 -45
- package/dist/index123.js +13 -14
- package/dist/index124.js +5 -5
- package/dist/index125.js +87 -29
- package/dist/index126.js +296 -4
- package/dist/index127.js +10 -26
- package/dist/index128.js +122 -14
- package/dist/index129.js +4 -21
- package/dist/index130.js +259 -54
- package/dist/index131.js +78 -16
- package/dist/index132.js +37 -26
- package/dist/index133.js +21 -41
- package/dist/index134.js +12 -43
- package/dist/index135.js +55 -20
- package/dist/index136.js +11 -48
- package/dist/index137.js +11 -51
- package/dist/index138.js +29 -16
- package/dist/index139.js +18 -11
- package/dist/index140.js +65 -21
- package/dist/index141.js +103 -34
- package/dist/index142.js +8 -230
- package/dist/index143.js +8 -283
- package/dist/index144.js +21 -52
- package/dist/index145.js +102 -14
- package/dist/index146.js +7 -79
- package/dist/index147.js +32 -3
- package/dist/index148.js +228 -28
- package/dist/index149.js +74 -23
- package/dist/index150.js +283 -15
- package/dist/index151.js +52 -68
- package/dist/index152.js +46 -4
- package/dist/index153.js +70 -98
- package/dist/index154.js +3 -79
- package/dist/index155.js +13 -262
- package/dist/index156.js +15 -11
- package/dist/index157.js +28 -10
- package/dist/index158.js +7 -40
- package/dist/index159.js +22 -4
- package/dist/index160.js +24 -66
- package/dist/index161.js +160 -9
- package/dist/index162.js +113 -8
- package/dist/index163.js +64 -5
- package/dist/index164.js +74 -132
- package/dist/index165.js +64 -53
- package/dist/index166.js +68 -10
- package/dist/index167.js +14 -118
- package/dist/index168.js +7 -11
- package/dist/index169.js +5 -8
- package/dist/index17.js +4 -4
- package/dist/index170.js +16 -11
- package/dist/index171.js +21 -22
- package/dist/index172.js +58 -11
- package/dist/index173.js +16 -65
- package/dist/index174.js +26 -11
- package/dist/index175.js +42 -12
- package/dist/index176.js +20 -11
- package/dist/index177.js +48 -11
- package/dist/index178.js +47 -83
- package/dist/index179.js +17 -11
- package/dist/index18.js +4 -4
- package/dist/index180.js +11 -11
- package/dist/index181.js +34 -55
- package/dist/index182.js +15 -11
- package/dist/index183.js +79 -11
- package/dist/index184.js +23 -18
- package/dist/index185.js +4 -9
- package/dist/index186.js +10 -7
- package/dist/index187.js +10 -103
- package/dist/index188.js +40 -7
- package/dist/index189.js +4 -32
- package/dist/index19.js +9 -9
- package/dist/index190.js +10 -75
- package/dist/index191.js +11 -14
- package/dist/index192.js +114 -25
- package/dist/index193.js +11 -7
- package/dist/index194.js +85 -20
- package/dist/index195.js +12 -24
- package/dist/index196.js +59 -157
- package/dist/index197.js +4 -114
- package/dist/index198.js +5 -76
- package/dist/index199.js +11 -64
- package/dist/index20.js +2 -2
- package/dist/index201.js +21 -47
- package/dist/index202.js +4 -200
- package/dist/index203.js +26 -47
- package/dist/index204.js +127 -19
- package/dist/index205.js +45 -27
- package/dist/index206.js +17 -11
- package/dist/index207.js +5 -7
- package/dist/index208.js +181 -4
- package/dist/index209.js +74 -8
- package/dist/index21.js +3 -3
- package/dist/index210.js +396 -14
- package/dist/index211.js +199 -21
- package/dist/index212.js +46 -126
- package/dist/index213.js +18 -43
- package/dist/index214.js +47 -17
- package/dist/index215.js +7 -5
- package/dist/index216.js +5 -181
- package/dist/index217.js +15 -74
- package/dist/index218.js +12 -396
- package/dist/index219.js +32 -38
- package/dist/index22.js +5 -5
- package/dist/index220.js +4 -57
- package/dist/index221.js +11 -27
- package/dist/index222.js +9 -7
- package/dist/index223.js +37 -11
- package/dist/index224.js +57 -12
- package/dist/index225.js +27 -11
- package/dist/index226.js +6 -20
- package/dist/index227.js +11 -10
- package/dist/index228.js +11 -7
- package/dist/index229.js +11 -42
- package/dist/index23.js +2 -2
- package/dist/index230.js +22 -4
- package/dist/index231.js +11 -4
- package/dist/index232.js +6 -595
- package/dist/index233.js +42 -11
- package/dist/index234.js +594 -12
- package/dist/index235.js +11 -32
- package/dist/index236.js +4 -209
- package/dist/index237.js +209 -4
- package/dist/index238.js +3 -13
- package/dist/index239.js +13 -47
- package/dist/index24.js +9 -9
- package/dist/index240.js +47 -3
- package/dist/index242.js +4 -4
- package/dist/index243.js +2 -2
- package/dist/index244.js +1 -1
- package/dist/index246.js +3 -3
- package/dist/index247.js +1 -1
- package/dist/index251.js +1 -1
- package/dist/index253.js +1 -1
- package/dist/index256.js +1 -1
- package/dist/index257.js +1 -1
- package/dist/index260.js +1 -1
- package/dist/index261.js +1 -1
- package/dist/index262.js +2 -2
- package/dist/index264.js +2 -2
- package/dist/index27.js +1 -1
- package/dist/index28.js +1 -1
- package/dist/index32.js +1 -1
- package/dist/index33.js +16 -16
- package/dist/index34.js +5 -5
- package/dist/index35.js +13 -13
- package/dist/index36.js +10 -10
- package/dist/index37.js +7 -7
- package/dist/index38.js +9 -9
- package/dist/index39.js +4 -4
- package/dist/index40.js +2 -2
- package/dist/index41.js +3 -3
- package/dist/index42.js +2 -2
- package/dist/index43.js +1 -1
- package/dist/index45.js +5 -5
- package/dist/index46.js +9 -9
- package/dist/index47.js +9 -9
- package/dist/index48.js +18 -18
- package/dist/index49.js +4 -4
- package/dist/index50.js +11 -11
- package/dist/index52.js +25 -25
- package/dist/index53.js +3 -3
- package/dist/index54.js +31 -31
- package/dist/index55.js +13 -13
- package/dist/index56.js +12 -12
- package/dist/index57.js +1 -1
- package/dist/index58.js +3 -3
- package/dist/index59.js +5 -5
- package/dist/index60.js +11 -11
- package/dist/index61.js +4 -4
- package/dist/index62.js +3 -3
- package/dist/index63.js +11 -11
- package/dist/index64.js +4 -4
- package/dist/index65.js +3 -3
- package/dist/index66.js +13 -13
- package/dist/index67.js +1 -1
- package/dist/index69.js +32 -32
- package/dist/index70.js +5 -5
- package/dist/index71.js +17 -17
- package/dist/index72.js +23 -23
- package/dist/index73.js +7 -7
- package/dist/index74.js +1 -1
- package/dist/index75.js +13 -13
- package/dist/index76.js +2 -2
- package/dist/index77.js +4 -4
- package/dist/index78.js +3 -3
- package/dist/index79.js +1 -1
- package/dist/index80.js +1 -1
- package/dist/index81.js +17 -17
- package/dist/index82.js +4 -4
- package/dist/index83.js +4 -4
- package/dist/index86.js +89 -11
- package/dist/index87.js +8 -8
- package/dist/index88.js +12 -96
- package/dist/index89.js +87 -81
- package/dist/index94.js +133 -4
- package/dist/index95.js +24 -63
- package/dist/index96.js +8 -8
- package/dist/index97.js +5 -14
- package/dist/index98.js +12 -3
- package/dist/index99.js +22 -3
- package/dist/styles.css +1 -1
- package/package.json +8 -4
package/dist/index165.js
CHANGED
|
@@ -1,56 +1,67 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
1
|
+
import { tabbable as r } from "./index237.js";
|
|
2
|
+
import { contains as d, getDocument as b, activeElement as f } from "./index166.js";
|
|
3
|
+
const s = () => ({
|
|
4
|
+
getShadowRoot: !0,
|
|
5
|
+
displayCheck: (
|
|
6
|
+
// JSDOM does not support the `tabbable` library. To solve this we can
|
|
7
|
+
// check if `ResizeObserver` is a real function (not polyfilled), which
|
|
8
|
+
// determines if the current environment is JSDOM-like.
|
|
9
|
+
typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
|
|
10
|
+
)
|
|
11
|
+
});
|
|
12
|
+
function u(t, a) {
|
|
13
|
+
const e = r(t, s()), n = e.length;
|
|
14
|
+
if (n === 0)
|
|
15
|
+
return;
|
|
16
|
+
const i = f(b(t)), o = e.indexOf(i), c = o === -1 ? a === 1 ? 0 : n - 1 : o + a;
|
|
17
|
+
return e[c];
|
|
18
|
+
}
|
|
19
|
+
function T(t) {
|
|
20
|
+
return u(b(t).body, 1) || t;
|
|
21
|
+
}
|
|
22
|
+
function m(t) {
|
|
23
|
+
return u(b(t).body, -1) || t;
|
|
24
|
+
}
|
|
25
|
+
function l(t, a) {
|
|
26
|
+
if (!t)
|
|
27
|
+
return null;
|
|
28
|
+
const e = r(b(t).body, s()), n = e.length;
|
|
29
|
+
if (n === 0)
|
|
30
|
+
return null;
|
|
31
|
+
const i = e.indexOf(t);
|
|
32
|
+
if (i === -1)
|
|
33
|
+
return null;
|
|
34
|
+
const o = (i + a + n) % n;
|
|
35
|
+
return e[o];
|
|
36
|
+
}
|
|
37
|
+
function v(t) {
|
|
38
|
+
return l(t, 1);
|
|
39
|
+
}
|
|
40
|
+
function h(t) {
|
|
41
|
+
return l(t, -1);
|
|
42
|
+
}
|
|
43
|
+
function p(t, a) {
|
|
44
|
+
const e = a || t.currentTarget, n = t.relatedTarget;
|
|
45
|
+
return !n || !d(e, n);
|
|
46
|
+
}
|
|
47
|
+
function y(t) {
|
|
48
|
+
r(t, s()).forEach((e) => {
|
|
49
|
+
e.dataset.tabindex = e.getAttribute("tabindex") || "", e.setAttribute("tabindex", "-1");
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function A(t) {
|
|
53
|
+
t.querySelectorAll("[data-tabindex]").forEach((e) => {
|
|
54
|
+
const n = e.dataset.tabindex;
|
|
55
|
+
delete e.dataset.tabindex, n ? e.setAttribute("tabindex", n) : e.removeAttribute("tabindex");
|
|
56
|
+
});
|
|
52
57
|
}
|
|
53
58
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
59
|
+
y as disableFocusInside,
|
|
60
|
+
A as enableFocusInside,
|
|
61
|
+
T as getNextTabbable,
|
|
62
|
+
m as getPreviousTabbable,
|
|
63
|
+
v as getTabbableAfterElement,
|
|
64
|
+
h as getTabbableBeforeElement,
|
|
65
|
+
s as getTabbableOptions,
|
|
66
|
+
p as isOutsideEvent
|
|
56
67
|
};
|
package/dist/index166.js
CHANGED
|
@@ -1,14 +1,72 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>." : n(57));
|
|
1
|
+
import { isHTMLElement as u, isShadowRoot as i } from "./index94.js";
|
|
2
|
+
import { isJSDOM as c } from "./index188.js";
|
|
3
|
+
import { TYPEABLE_SELECTOR as s, FOCUSABLE_ATTRIBUTE as n } from "./index245.js";
|
|
4
|
+
function h(t) {
|
|
5
|
+
let e = t.activeElement;
|
|
6
|
+
for (; e?.shadowRoot?.activeElement != null; )
|
|
7
|
+
e = e.shadowRoot.activeElement;
|
|
9
8
|
return e;
|
|
10
9
|
}
|
|
10
|
+
function b(t, e) {
|
|
11
|
+
if (!t || !e)
|
|
12
|
+
return !1;
|
|
13
|
+
const r = e.getRootNode?.();
|
|
14
|
+
if (t.contains(e))
|
|
15
|
+
return !0;
|
|
16
|
+
if (r && i(r)) {
|
|
17
|
+
let o = e;
|
|
18
|
+
for (; o; ) {
|
|
19
|
+
if (t === o)
|
|
20
|
+
return !0;
|
|
21
|
+
o = o.parentNode || o.host;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return !1;
|
|
25
|
+
}
|
|
26
|
+
function E(t) {
|
|
27
|
+
return "composedPath" in t ? t.composedPath()[0] : t.target;
|
|
28
|
+
}
|
|
29
|
+
function T(t, e) {
|
|
30
|
+
if (e == null)
|
|
31
|
+
return !1;
|
|
32
|
+
if ("composedPath" in t)
|
|
33
|
+
return t.composedPath().includes(e);
|
|
34
|
+
const r = t;
|
|
35
|
+
return r.target != null && e.contains(r.target);
|
|
36
|
+
}
|
|
37
|
+
function p(t) {
|
|
38
|
+
return t.matches("html,body");
|
|
39
|
+
}
|
|
40
|
+
function d(t) {
|
|
41
|
+
return t?.ownerDocument || document;
|
|
42
|
+
}
|
|
43
|
+
function a(t) {
|
|
44
|
+
return u(t) && t.matches(s);
|
|
45
|
+
}
|
|
46
|
+
function g(t) {
|
|
47
|
+
return t ? t.getAttribute("role") === "combobox" && a(t) : !1;
|
|
48
|
+
}
|
|
49
|
+
function R(t) {
|
|
50
|
+
if (!t || c)
|
|
51
|
+
return !0;
|
|
52
|
+
try {
|
|
53
|
+
return t.matches(":focus-visible");
|
|
54
|
+
} catch {
|
|
55
|
+
return !0;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function w(t) {
|
|
59
|
+
return t ? t.hasAttribute(n) ? t : t.querySelector(`[${n}]`) || t : null;
|
|
60
|
+
}
|
|
11
61
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
62
|
+
h as activeElement,
|
|
63
|
+
b as contains,
|
|
64
|
+
d as getDocument,
|
|
65
|
+
w as getFloatingFocusElement,
|
|
66
|
+
E as getTarget,
|
|
67
|
+
T as isEventTargetWithin,
|
|
68
|
+
p as isRootElement,
|
|
69
|
+
g as isTypeableCombobox,
|
|
70
|
+
a as isTypeableElement,
|
|
71
|
+
R as matchesFocusVisible
|
|
14
72
|
};
|
package/dist/index167.js
CHANGED
|
@@ -1,120 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
render: J,
|
|
15
|
-
className: K,
|
|
16
|
-
direction: r,
|
|
17
|
-
keepMounted: v = !1,
|
|
18
|
-
...V
|
|
19
|
-
} = w, {
|
|
20
|
-
store: o,
|
|
21
|
-
popupRef: g,
|
|
22
|
-
listRef: a,
|
|
23
|
-
handleScrollArrowVisibility: C,
|
|
24
|
-
scrollArrowsMountedCountRef: c
|
|
25
|
-
} = Y(), {
|
|
26
|
-
side: S,
|
|
27
|
-
scrollDownArrowRef: E,
|
|
28
|
-
scrollUpArrowRef: N
|
|
29
|
-
} = _(), y = r === "up" ? d.scrollUpArrowVisible : d.scrollDownArrowVisible, B = H(o, y), D = H(o, d.openMethod), n = B && D !== "touch", f = O(), p = r === "up" ? N : E, {
|
|
30
|
-
transitionStatus: T,
|
|
31
|
-
setMounted: k
|
|
32
|
-
} = j(n);
|
|
33
|
-
X(() => (c.current += 1, o.state.hasScrollArrows || o.set("hasScrollArrows", !0), () => {
|
|
34
|
-
c.current = Math.max(0, c.current - 1), c.current === 0 && o.state.hasScrollArrows && o.set("hasScrollArrows", !1);
|
|
35
|
-
}), [o, c]), q({
|
|
36
|
-
open: n,
|
|
37
|
-
ref: p,
|
|
38
|
-
onComplete() {
|
|
39
|
-
n || k(!1);
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
const P = R.useMemo(() => ({
|
|
43
|
-
direction: r,
|
|
44
|
-
visible: n,
|
|
45
|
-
side: S,
|
|
46
|
-
transitionStatus: T
|
|
47
|
-
}), [r, n, S, T]), U = z("div", w, {
|
|
48
|
-
ref: [I, p],
|
|
49
|
-
state: P,
|
|
50
|
-
props: [{
|
|
51
|
-
"aria-hidden": !0,
|
|
52
|
-
children: r === "up" ? "▲" : "▼",
|
|
53
|
-
style: {
|
|
54
|
-
position: "absolute"
|
|
55
|
-
},
|
|
56
|
-
onMouseMove(A) {
|
|
57
|
-
if (A.movementX === 0 && A.movementY === 0 || f.isStarted())
|
|
58
|
-
return;
|
|
59
|
-
o.set("activeIndex", null);
|
|
60
|
-
function M() {
|
|
61
|
-
const t = o.state.listElement ?? g.current;
|
|
62
|
-
if (!t)
|
|
63
|
-
return;
|
|
64
|
-
o.set("activeIndex", null), C();
|
|
65
|
-
const x = t.scrollTop === 0, b = Math.round(t.scrollTop + t.clientHeight) >= t.scrollHeight;
|
|
66
|
-
if (a.current.length === 0 && (r === "up" ? o.set("scrollUpArrowVisible", !x) : o.set("scrollDownArrowVisible", !b)), r === "up" && x || r === "down" && b) {
|
|
67
|
-
f.clear();
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
if ((o.state.listElement || g.current) && a.current && a.current.length > 0) {
|
|
71
|
-
const s = a.current, m = p.current?.offsetHeight || 0;
|
|
72
|
-
if (r === "up") {
|
|
73
|
-
let l = 0;
|
|
74
|
-
const h = t.scrollTop + m;
|
|
75
|
-
for (let e = 0; e < s.length; e += 1) {
|
|
76
|
-
const i = s[e];
|
|
77
|
-
if (i && i.offsetTop >= h) {
|
|
78
|
-
l = e;
|
|
79
|
-
break;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
const u = Math.max(0, l - 1);
|
|
83
|
-
if (u < l) {
|
|
84
|
-
const e = s[u];
|
|
85
|
-
e && (t.scrollTop = Math.max(0, e.offsetTop - m));
|
|
86
|
-
} else
|
|
87
|
-
t.scrollTop = 0;
|
|
88
|
-
} else {
|
|
89
|
-
let l = s.length - 1;
|
|
90
|
-
const h = t.scrollTop + t.clientHeight - m;
|
|
91
|
-
for (let e = 0; e < s.length; e += 1) {
|
|
92
|
-
const i = s[e];
|
|
93
|
-
if (i && i.offsetTop + i.offsetHeight > h) {
|
|
94
|
-
l = Math.max(0, e - 1);
|
|
95
|
-
break;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
const u = Math.min(s.length - 1, l + 1);
|
|
99
|
-
if (u > l) {
|
|
100
|
-
const e = s[u];
|
|
101
|
-
e && (t.scrollTop = e.offsetTop + e.offsetHeight - t.clientHeight + m);
|
|
102
|
-
} else
|
|
103
|
-
t.scrollTop = t.scrollHeight - t.clientHeight;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
f.start(40, M);
|
|
107
|
-
}
|
|
108
|
-
f.start(40, M);
|
|
109
|
-
},
|
|
110
|
-
onMouseLeave() {
|
|
111
|
-
f.clear();
|
|
112
|
-
}
|
|
113
|
-
}, V]
|
|
114
|
-
});
|
|
115
|
-
return n || v ? U : null;
|
|
116
|
-
});
|
|
117
|
-
process.env.NODE_ENV !== "production" && (F.displayName = "SelectScrollArrow");
|
|
1
|
+
const i = {
|
|
2
|
+
clip: "rect(0 0 0 0)",
|
|
3
|
+
overflow: "hidden",
|
|
4
|
+
whiteSpace: "nowrap",
|
|
5
|
+
position: "fixed",
|
|
6
|
+
top: 0,
|
|
7
|
+
left: 0,
|
|
8
|
+
border: 0,
|
|
9
|
+
padding: 0,
|
|
10
|
+
width: 1,
|
|
11
|
+
height: 1,
|
|
12
|
+
margin: -1
|
|
13
|
+
};
|
|
118
14
|
export {
|
|
119
|
-
|
|
15
|
+
i as visuallyHidden
|
|
120
16
|
};
|
package/dist/index168.js
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import * as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
if (e === void 0)
|
|
8
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>." : r(56));
|
|
9
|
-
return e;
|
|
1
|
+
"use client";
|
|
2
|
+
import * as c from "react";
|
|
3
|
+
const t = {};
|
|
4
|
+
function u(r, n) {
|
|
5
|
+
const e = c.useRef(t);
|
|
6
|
+
return e.current === t && (e.current = r(n)), e;
|
|
10
7
|
}
|
|
11
8
|
export {
|
|
12
|
-
|
|
13
|
-
s as useSelectGroupContext
|
|
9
|
+
u as useRefWithInit
|
|
14
10
|
};
|
package/dist/index169.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const e = r.join(" ");
|
|
6
|
-
o.has(e) || (o.add(e), console.error(`Base UI: ${e}`));
|
|
7
|
-
}
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
function n(r) {
|
|
3
|
+
const e = t.useRef(!0);
|
|
4
|
+
e.current && (e.current = !1, r());
|
|
8
5
|
}
|
|
9
6
|
export {
|
|
10
|
-
|
|
7
|
+
n as useOnFirstRender
|
|
11
8
|
};
|
package/dist/index17.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as f from "react";
|
|
3
|
-
import { useRefWithInit as C } from "./
|
|
4
|
-
import { useDialogRoot as x } from "./
|
|
5
|
-
import { useDialogRootContext as h, DialogRootContext as R } from "./
|
|
6
|
-
import { DialogStore as D } from "./
|
|
3
|
+
import { useRefWithInit as C } from "./index168.js";
|
|
4
|
+
import { useDialogRoot as x } from "./index194.js";
|
|
5
|
+
import { useDialogRootContext as h, DialogRootContext as R } from "./index195.js";
|
|
6
|
+
import { DialogStore as D } from "./index196.js";
|
|
7
7
|
import { jsx as I } from "react/jsx-runtime";
|
|
8
8
|
function b(s) {
|
|
9
9
|
const {
|
package/dist/index170.js
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import n from "./
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
import { useIsoLayoutEffect as n } from "./index97.js";
|
|
3
|
+
import { useRefWithInit as r } from "./index168.js";
|
|
4
|
+
function s(e) {
|
|
5
|
+
const t = r(f, e).current;
|
|
6
|
+
return t.next = e, n(t.effect), t;
|
|
7
|
+
}
|
|
8
|
+
function f(e) {
|
|
9
|
+
const t = {
|
|
10
|
+
current: e,
|
|
11
|
+
next: e,
|
|
12
|
+
effect: () => {
|
|
13
|
+
t.current = t.next;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
return t;
|
|
11
17
|
}
|
|
12
18
|
export {
|
|
13
|
-
|
|
14
|
-
r as useCompositeRootContext
|
|
19
|
+
s as useValueAsRef
|
|
15
20
|
};
|
package/dist/index171.js
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
import * as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
return t || (a.tabIndex = i, !o && s && (a.tabIndex = e ? i : -1)), (o && (e || n) || !o && s) && (a["aria-disabled"] = s), o && (!e || l) && (a.disabled = s), a;
|
|
20
|
-
}, [t, s, e, n, l, o, i])
|
|
21
|
-
};
|
|
1
|
+
import o from "./index100.js";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
const n = /* @__PURE__ */ e.createContext(null);
|
|
4
|
+
process.env.NODE_ENV !== "production" && (n.displayName = "SelectRootContext");
|
|
5
|
+
const c = /* @__PURE__ */ e.createContext(null);
|
|
6
|
+
process.env.NODE_ENV !== "production" && (c.displayName = "SelectFloatingContext");
|
|
7
|
+
function s() {
|
|
8
|
+
const t = e.useContext(n);
|
|
9
|
+
if (t === null)
|
|
10
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>." : o(60));
|
|
11
|
+
return t;
|
|
12
|
+
}
|
|
13
|
+
function i() {
|
|
14
|
+
const t = e.useContext(c);
|
|
15
|
+
if (t === null)
|
|
16
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>." : o(61));
|
|
17
|
+
return t;
|
|
22
18
|
}
|
|
23
19
|
export {
|
|
24
|
-
|
|
20
|
+
c as SelectFloatingContext,
|
|
21
|
+
n as SelectRootContext,
|
|
22
|
+
i as useSelectFloatingContext,
|
|
23
|
+
s as useSelectRootContext
|
|
25
24
|
};
|
package/dist/index172.js
CHANGED
|
@@ -1,14 +1,61 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import s from "./index100.js";
|
|
3
|
+
import * as a from "react";
|
|
4
|
+
import { DEFAULT_VALIDITY_STATE as n } from "./index184.js";
|
|
5
|
+
import { NOOP as e, EMPTY_OBJECT as o } from "./index106.js";
|
|
6
|
+
const l = /* @__PURE__ */ a.createContext({
|
|
7
|
+
invalid: void 0,
|
|
8
|
+
name: void 0,
|
|
9
|
+
validityData: {
|
|
10
|
+
state: n,
|
|
11
|
+
errors: [],
|
|
12
|
+
error: "",
|
|
13
|
+
value: "",
|
|
14
|
+
initialValue: null
|
|
15
|
+
},
|
|
16
|
+
setValidityData: e,
|
|
17
|
+
disabled: void 0,
|
|
18
|
+
touched: !1,
|
|
19
|
+
setTouched: e,
|
|
20
|
+
dirty: !1,
|
|
21
|
+
setDirty: e,
|
|
22
|
+
filled: !1,
|
|
23
|
+
setFilled: e,
|
|
24
|
+
focused: !1,
|
|
25
|
+
setFocused: e,
|
|
26
|
+
validate: () => null,
|
|
27
|
+
validationMode: "onSubmit",
|
|
28
|
+
validationDebounceTime: 0,
|
|
29
|
+
shouldValidateOnChange: () => !1,
|
|
30
|
+
state: {
|
|
31
|
+
disabled: !1,
|
|
32
|
+
valid: null,
|
|
33
|
+
touched: !1,
|
|
34
|
+
dirty: !1,
|
|
35
|
+
filled: !1,
|
|
36
|
+
focused: !1
|
|
37
|
+
},
|
|
38
|
+
markedDirtyRef: {
|
|
39
|
+
current: !1
|
|
40
|
+
},
|
|
41
|
+
validation: {
|
|
42
|
+
getValidationProps: (t = o) => t,
|
|
43
|
+
getInputValidationProps: (t = o) => t,
|
|
44
|
+
inputRef: {
|
|
45
|
+
current: null
|
|
46
|
+
},
|
|
47
|
+
commit: async () => {
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
process.env.NODE_ENV !== "production" && (l.displayName = "FieldRootContext");
|
|
52
|
+
function f(t = !0) {
|
|
53
|
+
const i = a.useContext(l);
|
|
54
|
+
if (i.setValidityData === e && !t)
|
|
55
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>." : s(28));
|
|
56
|
+
return i;
|
|
10
57
|
}
|
|
11
58
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
59
|
+
l as FieldRootContext,
|
|
60
|
+
f as useFieldRootContext
|
|
14
61
|
};
|
package/dist/index173.js
CHANGED
|
@@ -1,69 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
id: l,
|
|
17
|
-
store: n,
|
|
18
|
-
nativeButton: b,
|
|
19
|
-
itemMetadata: o,
|
|
20
|
-
nodeId: r
|
|
21
|
-
} = M, i = a.useRef(null), t = y(!0), u = t !== void 0, {
|
|
22
|
-
events: s
|
|
23
|
-
} = n.useState("floatingTreeRoot"), {
|
|
24
|
-
getButtonProps: p,
|
|
25
|
-
buttonRef: x
|
|
26
|
-
} = P({
|
|
27
|
-
disabled: R,
|
|
28
|
-
focusableWhenDisabled: !0,
|
|
29
|
-
native: b
|
|
30
|
-
}), g = a.useCallback((C) => v({
|
|
31
|
-
id: l,
|
|
32
|
-
role: "menuitem",
|
|
33
|
-
tabIndex: f ? 0 : -1,
|
|
34
|
-
onMouseMove(e) {
|
|
35
|
-
r && s.emit("itemhover", {
|
|
36
|
-
nodeId: r,
|
|
37
|
-
target: e.currentTarget
|
|
38
|
-
});
|
|
39
|
-
},
|
|
40
|
-
onMouseEnter() {
|
|
41
|
-
o.type === "submenu-trigger" && o.setActive();
|
|
42
|
-
},
|
|
43
|
-
onKeyUp(e) {
|
|
44
|
-
e.key === " " && n.context.typingRef.current && e.preventBaseUIHandler();
|
|
45
|
-
},
|
|
46
|
-
onClick(e) {
|
|
47
|
-
m && s.emit("close", {
|
|
48
|
-
domEvent: e,
|
|
49
|
-
reason: I
|
|
50
|
-
});
|
|
51
|
-
},
|
|
52
|
-
onMouseUp(e) {
|
|
53
|
-
if (t) {
|
|
54
|
-
const c = t.initialCursorPointRef.current;
|
|
55
|
-
if (t.initialCursorPointRef.current = null, u && c && Math.abs(e.clientX - c.x) <= 1 && Math.abs(e.clientY - c.y) <= 1)
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
i.current && n.context.allowMouseUpTriggerRef.current && (!u || e.button === 2) && o.type === "regular-item" && i.current.click();
|
|
59
|
-
}
|
|
60
|
-
}, C, p), [l, f, p, m, s, n, u, t, o, r]), d = h(i, x);
|
|
61
|
-
return a.useMemo(() => ({
|
|
62
|
-
getItemProps: g,
|
|
63
|
-
itemRef: d
|
|
64
|
-
}), [g, d]);
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { NOOP as e } from "./index106.js";
|
|
4
|
+
const o = /* @__PURE__ */ t.createContext({
|
|
5
|
+
controlId: void 0,
|
|
6
|
+
setControlId: e,
|
|
7
|
+
labelId: void 0,
|
|
8
|
+
setLabelId: e,
|
|
9
|
+
messageIds: [],
|
|
10
|
+
setMessageIds: e,
|
|
11
|
+
getDescriptionProps: (n) => n
|
|
12
|
+
});
|
|
13
|
+
process.env.NODE_ENV !== "production" && (o.displayName = "LabelableContext");
|
|
14
|
+
function a() {
|
|
15
|
+
return t.useContext(o);
|
|
65
16
|
}
|
|
66
17
|
export {
|
|
67
|
-
|
|
68
|
-
|
|
18
|
+
o as LabelableContext,
|
|
19
|
+
a as useLabelableContext
|
|
69
20
|
};
|