@yselimcan/ui 0.0.4 → 0.0.6

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.
Files changed (186) hide show
  1. package/dist/index100.js +32 -5
  2. package/dist/index101.js +19 -134
  3. package/dist/index102.js +4 -26
  4. package/dist/index103.js +4 -9
  5. package/dist/index104.js +5 -5
  6. package/dist/index105.js +7 -8
  7. package/dist/index106.js +16 -20
  8. package/dist/index107.js +13 -8
  9. package/dist/index108.js +291 -82
  10. package/dist/index109.js +4 -12
  11. package/dist/index110.js +37 -61
  12. package/dist/index111.js +126 -38
  13. package/dist/index112.js +5 -14
  14. package/dist/index113.js +21 -33
  15. package/dist/index114.js +77 -19
  16. package/dist/index115.js +63 -4
  17. package/dist/index116.js +46 -4
  18. package/dist/index117.js +67 -5
  19. package/dist/index118.js +8 -11
  20. package/dist/index119.js +13 -18
  21. package/dist/index120.js +4 -13
  22. package/dist/index121.js +3 -296
  23. package/dist/index122.js +5 -4
  24. package/dist/index123.js +131 -36
  25. package/dist/index124.js +24 -122
  26. package/dist/index125.js +8 -20
  27. package/dist/index126.js +5 -77
  28. package/dist/index127.js +11 -63
  29. package/dist/index128.js +22 -45
  30. package/dist/index132.js +2 -2
  31. package/dist/index133.js +1 -1
  32. package/dist/index134.js +2 -2
  33. package/dist/index135.js +1 -1
  34. package/dist/index136.js +4 -4
  35. package/dist/index137.js +1 -1
  36. package/dist/index139.js +1 -1
  37. package/dist/index140.js +3 -3
  38. package/dist/index141.js +1 -1
  39. package/dist/index143.js +2 -2
  40. package/dist/index144.js +1 -1
  41. package/dist/index145.js +3 -3
  42. package/dist/index146.js +5 -5
  43. package/dist/index147.js +6 -6
  44. package/dist/index148.js +4 -4
  45. package/dist/index149.js +3 -3
  46. package/dist/index152.js +1 -1
  47. package/dist/index155.js +1 -1
  48. package/dist/index157.js +3 -3
  49. package/dist/index158.js +3 -3
  50. package/dist/index159.js +2 -2
  51. package/dist/index160.js +1 -1
  52. package/dist/index164.js +1 -1
  53. package/dist/index167.js +2 -2
  54. package/dist/index168.js +1 -1
  55. package/dist/index169.js +1 -1
  56. package/dist/index17.js +4 -4
  57. package/dist/index170.js +3 -3
  58. package/dist/index171.js +1 -1
  59. package/dist/index172.js +1 -1
  60. package/dist/index173.js +3 -3
  61. package/dist/index174.js +1 -1
  62. package/dist/index175.js +2 -2
  63. package/dist/index176.js +1 -1
  64. package/dist/index177.js +1 -1
  65. package/dist/index178.js +6 -6
  66. package/dist/index179.js +1 -1
  67. package/dist/index18.js +5 -5
  68. package/dist/index180.js +1 -1
  69. package/dist/index181.js +2 -2
  70. package/dist/index182.js +1 -1
  71. package/dist/index183.js +1 -1
  72. package/dist/index184.js +1 -1
  73. package/dist/index187.js +2 -2
  74. package/dist/index189.js +3 -3
  75. package/dist/index19.js +10 -10
  76. package/dist/index190.js +1 -1
  77. package/dist/index191.js +1 -1
  78. package/dist/index192.js +3 -3
  79. package/dist/index193.js +1 -1
  80. package/dist/index194.js +1 -1
  81. package/dist/index195.js +1 -1
  82. package/dist/index196.js +5 -5
  83. package/dist/index197.js +1 -1
  84. package/dist/index198.js +3 -3
  85. package/dist/index20.js +3 -3
  86. package/dist/index200.js +2 -2
  87. package/dist/index201.js +3 -3
  88. package/dist/index202.js +1 -1
  89. package/dist/index203.js +2 -2
  90. package/dist/index204.js +26 -5
  91. package/dist/index205.js +5 -26
  92. package/dist/index206.js +9 -11
  93. package/dist/index207.js +11 -9
  94. package/dist/index21.js +4 -4
  95. package/dist/index217.js +2 -2
  96. package/dist/index218.js +1 -1
  97. package/dist/index219.js +4 -39
  98. package/dist/index22.js +5 -5
  99. package/dist/index220.js +4 -56
  100. package/dist/index221.js +14 -27
  101. package/dist/index222.js +32 -7
  102. package/dist/index223.js +37 -11
  103. package/dist/index224.js +57 -12
  104. package/dist/index225.js +27 -11
  105. package/dist/index226.js +6 -20
  106. package/dist/index227.js +11 -10
  107. package/dist/index228.js +11 -7
  108. package/dist/index229.js +11 -42
  109. package/dist/index23.js +3 -3
  110. package/dist/index230.js +17 -592
  111. package/dist/index231.js +6 -6
  112. package/dist/index232.js +7 -32
  113. package/dist/index233.js +43 -4
  114. package/dist/index234.js +597 -5
  115. package/dist/index235.js +11 -14
  116. package/dist/index239.js +1 -1
  117. package/dist/index24.js +10 -10
  118. package/dist/index242.js +2 -2
  119. package/dist/index244.js +1 -1
  120. package/dist/index246.js +2 -2
  121. package/dist/index247.js +14 -321
  122. package/dist/index248.js +322 -3
  123. package/dist/index249.js +3 -3
  124. package/dist/index250.js +3 -15
  125. package/dist/index26.js +1 -1
  126. package/dist/index27.js +1 -1
  127. package/dist/index28.js +2 -2
  128. package/dist/index32.js +1 -1
  129. package/dist/index33.js +11 -11
  130. package/dist/index34.js +4 -4
  131. package/dist/index35.js +11 -11
  132. package/dist/index36.js +8 -8
  133. package/dist/index37.js +6 -6
  134. package/dist/index38.js +7 -7
  135. package/dist/index39.js +4 -4
  136. package/dist/index40.js +3 -3
  137. package/dist/index41.js +4 -4
  138. package/dist/index42.js +2 -2
  139. package/dist/index43.js +2 -2
  140. package/dist/index44.js +1 -1
  141. package/dist/index45.js +4 -4
  142. package/dist/index46.js +8 -8
  143. package/dist/index47.js +8 -8
  144. package/dist/index48.js +10 -10
  145. package/dist/index49.js +2 -2
  146. package/dist/index50.js +9 -9
  147. package/dist/index52.js +8 -8
  148. package/dist/index53.js +1 -1
  149. package/dist/index54.js +15 -15
  150. package/dist/index55.js +7 -7
  151. package/dist/index56.js +8 -8
  152. package/dist/index57.js +1 -1
  153. package/dist/index58.js +3 -3
  154. package/dist/index59.js +2 -2
  155. package/dist/index60.js +5 -5
  156. package/dist/index61.js +2 -2
  157. package/dist/index62.js +2 -2
  158. package/dist/index63.js +5 -5
  159. package/dist/index64.js +2 -2
  160. package/dist/index66.js +7 -7
  161. package/dist/index67.js +1 -1
  162. package/dist/index69.js +10 -10
  163. package/dist/index70.js +1 -1
  164. package/dist/index71.js +9 -9
  165. package/dist/index72.js +11 -11
  166. package/dist/index73.js +2 -2
  167. package/dist/index74.js +1 -1
  168. package/dist/index75.js +5 -5
  169. package/dist/index76.js +1 -1
  170. package/dist/index77.js +3 -3
  171. package/dist/index78.js +3 -3
  172. package/dist/index81.js +7 -7
  173. package/dist/index82.js +2 -2
  174. package/dist/index83.js +1 -1
  175. package/dist/index86.js +11 -54
  176. package/dist/index87.js +54 -11
  177. package/dist/index88.js +87 -81
  178. package/dist/index89.js +81 -87
  179. package/dist/index94.js +7 -4
  180. package/dist/index95.js +86 -65
  181. package/dist/index96.js +12 -8
  182. package/dist/index97.js +61 -12
  183. package/dist/index98.js +38 -4
  184. package/dist/index99.js +14 -4
  185. package/dist/styles.css +1 -1
  186. package/package.json +4 -3
package/dist/index126.js CHANGED
@@ -1,79 +1,7 @@
1
- import * as l from "react";
2
- import { useStableCallback as a } from "./index102.js";
3
- import { useIsoLayoutEffect as o } from "./index104.js";
4
- import { useTransitionStatus as s } from "./index137.js";
5
- import { useOpenChangeComplete as f } from "./index119.js";
6
- function m(e, n) {
7
- const t = l.useRef(null);
8
- return l.useCallback((i) => {
9
- e !== void 0 && (t.current !== null && (n.context.triggerElements.delete(t.current), t.current = null), i !== null && (t.current = e, n.context.triggerElements.add(e, i)));
10
- }, [n, e]);
11
- }
12
- function E(e, n, t, i) {
13
- const r = t.useState("isMountedByTrigger", e), c = m(e, t), g = a((u) => {
14
- c(u), u !== null && t.select("open") && t.select("activeTriggerId") == null && t.update({
15
- activeTriggerId: e,
16
- activeTriggerElement: u,
17
- ...i
18
- });
19
- });
20
- return o(() => {
21
- r && t.update({
22
- activeTriggerElement: n.current,
23
- ...i
24
- });
25
- }, [r, t, n, ...Object.values(i)]), {
26
- registerTrigger: g,
27
- isMountedByThisTrigger: r
28
- };
29
- }
30
- function C(e) {
31
- const n = e.useState("open");
32
- o(() => {
33
- if (n && !e.select("activeTriggerId") && e.context.triggerElements.size === 1) {
34
- const t = e.context.triggerElements.entries().next();
35
- if (!t.done) {
36
- const [i, r] = t.value;
37
- e.update({
38
- activeTriggerId: i,
39
- activeTriggerElement: r
40
- });
41
- }
42
- }
43
- }, [n, e]);
44
- }
45
- function x(e, n, t) {
46
- const {
47
- mounted: i,
48
- setMounted: r,
49
- transitionStatus: c
50
- } = s(e);
51
- n.useSyncedValues({
52
- mounted: i,
53
- transitionStatus: c
54
- });
55
- const g = a(() => {
56
- r(!1), n.update({
57
- activeTriggerId: null,
58
- activeTriggerElement: null,
59
- mounted: !1
60
- }), t?.(), n.context.onOpenChangeComplete?.(!1);
61
- }), u = n.useState("preventUnmountingOnClose");
62
- return f({
63
- enabled: !u,
64
- open: e,
65
- ref: n.context.popupRef,
66
- onComplete() {
67
- e || g();
68
- }
69
- }), {
70
- forceUnmount: g,
71
- transitionStatus: c
72
- };
73
- }
1
+ "use client";
2
+ import * as e from "react";
3
+ const o = () => {
4
+ }, t = typeof document < "u" ? e.useLayoutEffect : o;
74
5
  export {
75
- C as useImplicitActiveTrigger,
76
- x as useOpenStateTransitions,
77
- E as useTriggerDataForwarding,
78
- m as useTriggerRegistration
6
+ t as useIsoLayoutEffect
79
7
  };
package/dist/index127.js CHANGED
@@ -1,67 +1,15 @@
1
1
  "use client";
2
- import * as v from "react";
3
- import { useAnimationFrame as P } from "./index164.js";
4
- import { useTimeout as b } from "./index152.js";
5
- import { createChangeEventDetails as k } from "./index113.js";
6
- import { isMouseLikePointerType as w, isClickLikeEvent as I } from "./index221.js";
7
- import { isTypeableElement as x } from "./index155.js";
8
- import { EMPTY_OBJECT as L } from "./index100.js";
9
- import { triggerPress as y } from "./index114.js";
10
- function Y(d, M = {}) {
11
- const e = "rootStore" in d ? d.rootStore : d, T = e.context.dataRef, {
12
- enabled: h = !0,
13
- event: p = "click",
14
- toggle: g = !0,
15
- ignoreMouse: E = !1,
16
- stickIfOpen: O = !0,
17
- touchOpenDelay: n = 0
18
- } = M, s = v.useRef(void 0), C = P(), a = b(), R = v.useMemo(() => ({
19
- onPointerDown(t) {
20
- s.current = t.pointerType;
21
- },
22
- onMouseDown(t) {
23
- const r = s.current, o = t.nativeEvent, c = e.select("open");
24
- if (t.button !== 0 || p === "click" || w(r, !0) && E)
25
- return;
26
- const m = T.current.openEvent, i = m?.type, f = e.select("domReferenceElement") !== t.currentTarget, l = c && f || !(c && g && (!(m && O) || i === "click" || i === "mousedown"));
27
- if (x(o.target)) {
28
- const u = k(y, o, o.target);
29
- l && r === "touch" && n > 0 ? a.start(n, () => {
30
- e.setOpen(!0, u);
31
- }) : e.setOpen(l, u);
32
- return;
33
- }
34
- const D = t.currentTarget;
35
- C.request(() => {
36
- const u = k(y, o, D);
37
- l && r === "touch" && n > 0 ? a.start(n, () => {
38
- e.setOpen(!0, u);
39
- }) : e.setOpen(l, u);
40
- });
41
- },
42
- onClick(t) {
43
- if (p === "mousedown-only")
44
- return;
45
- const r = s.current;
46
- if (p === "mousedown" && r) {
47
- s.current = void 0;
48
- return;
49
- }
50
- if (w(r, !0) && E)
51
- return;
52
- const o = e.select("open"), c = T.current.openEvent, m = e.select("domReferenceElement") !== t.currentTarget, i = o && m || !(o && g && (!(c && O) || I(c))), f = k(y, t.nativeEvent, t.currentTarget);
53
- i && r === "touch" && n > 0 ? a.start(n, () => {
54
- e.setOpen(!0, f);
55
- }) : e.setOpen(i, f);
56
- },
57
- onKeyDown() {
58
- s.current = void 0;
59
- }
60
- }), [T, p, E, e, O, g, C, a, n]);
61
- return v.useMemo(() => h ? {
62
- reference: R
63
- } : L, [h, R]);
2
+ import n from "./index112.js";
3
+ import * as t from "react";
4
+ const e = /* @__PURE__ */ t.createContext(void 0);
5
+ process.env.NODE_ENV !== "production" && (e.displayName = "CompositeRootContext");
6
+ function r(s = !1) {
7
+ const o = t.useContext(e);
8
+ if (o === void 0 && !s)
9
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>." : n(16));
10
+ return o;
64
11
  }
65
12
  export {
66
- Y as useClick
13
+ e as CompositeRootContext,
14
+ r as useCompositeRootContext
67
15
  };
package/dist/index128.js CHANGED
@@ -1,48 +1,25 @@
1
- import * as l from "react";
2
- import { FOCUSABLE_ATTRIBUTE as C, ACTIVE_KEY as s, SELECTED_KEY as E } from "./index245.js";
3
- function k(e = []) {
4
- const a = e.map((n) => n?.reference), g = e.map((n) => n?.floating), f = e.map((n) => n?.item), t = e.map((n) => n?.trigger), o = l.useCallback(
5
- (n) => u(n, e, "reference"),
6
- // eslint-disable-next-line react-hooks/exhaustive-deps
7
- a
8
- ), c = l.useCallback(
9
- (n) => u(n, e, "floating"),
10
- // eslint-disable-next-line react-hooks/exhaustive-deps
11
- g
12
- ), i = l.useCallback(
13
- (n) => u(n, e, "item"),
14
- // eslint-disable-next-line react-hooks/exhaustive-deps
15
- f
16
- ), r = l.useCallback(
17
- (n) => u(n, e, "trigger"),
18
- // eslint-disable-next-line react-hooks/exhaustive-deps
19
- t
20
- );
21
- return l.useMemo(() => ({
22
- getReferenceProps: o,
23
- getFloatingProps: c,
24
- getItemProps: i,
25
- getTriggerProps: r
26
- }), [o, c, i, r]);
27
- }
28
- function u(e, a, g) {
29
- const f = /* @__PURE__ */ new Map(), t = g === "item", o = {};
30
- g === "floating" && (o.tabIndex = -1, o[C] = "");
31
- for (const c in e)
32
- t && e && (c === s || c === E) || (o[c] = e[c]);
33
- for (let c = 0; c < a.length; c += 1) {
34
- let i;
35
- const r = a[c]?.[g];
36
- typeof r == "function" ? i = e ? r(e) : null : i = r, i && m(o, i, t, f);
37
- }
38
- return m(o, e, t, f), o;
39
- }
40
- function m(e, a, g, f) {
41
- for (const t in a) {
42
- const o = a[t];
43
- g && (t === s || t === E) || (t.startsWith("on") ? (f.has(t) || f.set(t, []), typeof o == "function" && (f.get(t)?.push(o), e[t] = (...c) => f.get(t)?.map((i) => i(...c)).find((i) => i !== void 0))) : e[t] = o);
44
- }
1
+ "use client";
2
+ import * as c from "react";
3
+ function f(d) {
4
+ const {
5
+ focusableWhenDisabled: e,
6
+ disabled: s,
7
+ composite: t = !1,
8
+ tabIndex: i = 0,
9
+ isNativeButton: o
10
+ } = d, n = t && e !== !1, l = t && e === !1;
11
+ return {
12
+ props: c.useMemo(() => {
13
+ const a = {
14
+ // allow Tabbing away from focusableWhenDisabled elements
15
+ onKeyDown(b) {
16
+ s && e && b.key !== "Tab" && b.preventDefault();
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
+ };
45
22
  }
46
23
  export {
47
- k as useInteractions
24
+ f as useFocusableWhenDisabled
48
25
  };
package/dist/index132.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { useIsoLayoutEffect as n } from "./index104.js";
3
- import { useRefWithInit as r } from "./index107.js";
2
+ import { useIsoLayoutEffect as n } from "./index126.js";
3
+ import { useRefWithInit as r } from "./index94.js";
4
4
  function s(e) {
5
5
  const t = r(f, e).current;
6
6
  return t.next = e, n(t.effect), t;
package/dist/index133.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index94.js";
1
+ import o from "./index112.js";
2
2
  import * as e from "react";
3
3
  const n = /* @__PURE__ */ e.createContext(null);
4
4
  process.env.NODE_ENV !== "production" && (n.displayName = "SelectRootContext");
package/dist/index134.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import s from "./index94.js";
2
+ import s from "./index112.js";
3
3
  import * as a from "react";
4
4
  import { DEFAULT_VALIDITY_STATE as n } from "./index153.js";
5
- import { NOOP as e, EMPTY_OBJECT as o } from "./index100.js";
5
+ import { NOOP as e, EMPTY_OBJECT as o } from "./index122.js";
6
6
  const l = /* @__PURE__ */ a.createContext({
7
7
  invalid: void 0,
8
8
  name: void 0,
package/dist/index135.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import * as t from "react";
3
- import { NOOP as e } from "./index100.js";
3
+ import { NOOP as e } from "./index122.js";
4
4
  const o = /* @__PURE__ */ t.createContext({
5
5
  controlId: void 0,
6
6
  setControlId: e,
package/dist/index136.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { useIsoLayoutEffect as s } from "./index104.js";
3
- import { isElement as u } from "./index101.js";
4
- import { useBaseUiId as m } from "./index115.js";
2
+ import { useIsoLayoutEffect as s } from "./index126.js";
3
+ import { isElement as u } from "./index123.js";
4
+ import { useBaseUiId as m } from "./index102.js";
5
5
  import { useLabelableContext as c } from "./index135.js";
6
- import { NOOP as d } from "./index100.js";
6
+ import { NOOP as d } from "./index122.js";
7
7
  function x(f = {}) {
8
8
  const {
9
9
  id: e,
package/dist/index137.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import * as c from "react";
3
- import { useIsoLayoutEffect as d } from "./index104.js";
3
+ import { useIsoLayoutEffect as d } from "./index126.js";
4
4
  import { AnimationFrame as u } from "./index164.js";
5
5
  function g(t, s = !1, f = !1) {
6
6
  const [n, r] = c.useState(t && s ? "idle" : void 0), [i, a] = c.useState(t);
package/dist/index139.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import * as e from "react";
3
- import { NOOP as r } from "./index100.js";
3
+ import { NOOP as r } from "./index122.js";
4
4
  const t = /* @__PURE__ */ e.createContext({
5
5
  formRef: {
6
6
  current: {
package/dist/index140.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as p from "react-dom";
2
- import { useIsoLayoutEffect as r } from "./index104.js";
3
- import { useStableCallback as D } from "./index102.js";
4
- import { getCombinedFieldValidityData as v } from "./index207.js";
2
+ import { useIsoLayoutEffect as r } from "./index126.js";
3
+ import { useStableCallback as D } from "./index124.js";
4
+ import { getCombinedFieldValidityData as v } from "./index206.js";
5
5
  import { useFormContext as R } from "./index139.js";
6
6
  import { useFieldRootContext as b } from "./index134.js";
7
7
  function S(u) {
package/dist/index141.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { serializeValue as c } from "./index206.js";
2
+ import { serializeValue as c } from "./index207.js";
3
3
  function t(n) {
4
4
  return n != null && n.length > 0 && typeof n[0] == "object" && n[0] != null && "items" in n[0];
5
5
  }
package/dist/index143.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as c from "react";
2
- import { useIsoLayoutEffect as o } from "./index104.js";
3
- import { useStableCallback as f } from "./index102.js";
2
+ import { useIsoLayoutEffect as o } from "./index126.js";
3
+ import { useStableCallback as f } from "./index124.js";
4
4
  function u(r, n) {
5
5
  const t = c.useRef(r), e = f(n);
6
6
  o(() => {
package/dist/index144.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import * as e from "react";
3
- import { useStableCallback as a } from "./index102.js";
3
+ import { useStableCallback as a } from "./index124.js";
4
4
  import { useEnhancedClickHandler as u } from "./index208.js";
5
5
  function f(s) {
6
6
  const [n, t] = e.useState(null), c = a((p, i) => {
package/dist/index145.js CHANGED
@@ -1,7 +1,7 @@
1
- import { isElement as s } from "./index101.js";
1
+ import { isElement as s } from "./index123.js";
2
2
  import { useId as m } from "./index184.js";
3
- import { useRefWithInit as c } from "./index107.js";
4
- import { useIsoLayoutEffect as a } from "./index104.js";
3
+ import { useRefWithInit as c } from "./index94.js";
4
+ import { useIsoLayoutEffect as a } from "./index126.js";
5
5
  import { useFloatingParentNodeId as u } from "./index181.js";
6
6
  import { FloatingRootStore as g } from "./index242.js";
7
7
  import { PopupTriggerMap as p } from "./index202.js";
package/dist/index146.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import * as p from "react";
2
- import { isElement as P, isLastTraversableNode as U, getParentNode as Ce, isHTMLElement as Oe, getComputedStyle as Se, getOverflowAncestors as j, isWebKit as De } from "./index101.js";
2
+ import { isElement as P, isLastTraversableNode as U, getParentNode as Ce, isHTMLElement as Oe, getComputedStyle as Se, getOverflowAncestors as j, isWebKit as De } from "./index123.js";
3
3
  import { useTimeout as ce, Timeout as ke } from "./index152.js";
4
- import { useStableCallback as s } from "./index102.js";
4
+ import { useStableCallback as s } from "./index124.js";
5
5
  import { useFloatingTree as Me } from "./index181.js";
6
- import { createChangeEventDetails as S } from "./index113.js";
6
+ import { createChangeEventDetails as S } from "./index100.js";
7
7
  import { createAttribute as Ke } from "./index237.js";
8
- import { isReactEvent as Ie } from "./index221.js";
8
+ import { isReactEvent as Ie } from "./index225.js";
9
9
  import { getTarget as w, getDocument as ie, contains as X, isRootElement as xe, isEventTargetWithin as f } from "./index155.js";
10
10
  import { getNodeChildren as G } from "./index241.js";
11
- import { triggerPress as le, escapeKey as Xe, outsidePress as Ye, none as We } from "./index114.js";
11
+ import { triggerPress as le, escapeKey as Xe, outsidePress as Ye, none as We } from "./index101.js";
12
12
  const _e = {
13
13
  intentional: "onClick",
14
14
  sloppy: "onPointerDown"
package/dist/index147.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import * as m from "react";
2
- import { isHTMLElement as be } from "./index101.js";
2
+ import { isHTMLElement as be } from "./index123.js";
3
3
  import { useValueAsRef as A } from "./index132.js";
4
- import { useStableCallback as ae } from "./index102.js";
5
- import { useIsoLayoutEffect as L } from "./index104.js";
4
+ import { useStableCallback as ae } from "./index124.js";
5
+ import { useIsoLayoutEffect as L } from "./index126.js";
6
6
  import { useFloatingParentNodeId as ze, useFloatingTree as Ge } from "./index181.js";
7
- import { createChangeEventDetails as X } from "./index113.js";
7
+ import { createChangeEventDetails as X } from "./index100.js";
8
8
  import { enqueueFocus as We } from "./index238.js";
9
9
  import { ARROW_DOWN as ee, ARROW_LEFT as W, ARROW_RIGHT as _, ARROW_UP as Te } from "./index245.js";
10
10
  import { isIndexOutOfListBounds as Me, getMinListIndex as fe, getMaxListIndex as Pe, createGridCellMap as _e, isListIndexDisabled as de, getGridNavigatedIndex as qe, getGridCellIndexOfCorner as He, getGridCellIndices as $e, findNonDisabledListIndex as Y } from "./index246.js";
11
11
  import { getFloatingFocusElement as Be, isTypeableCombobox as Ue, activeElement as ve, getDocument as je, contains as Ce, getTarget as Je } from "./index155.js";
12
- import { stopEvent as T, isVirtualClick as Qe, isVirtualPointerEvent as Xe } from "./index221.js";
13
- import { listNavigation as me, focusOut as Ye } from "./index114.js";
12
+ import { stopEvent as T, isVirtualClick as Qe, isVirtualPointerEvent as Xe } from "./index225.js";
13
+ import { listNavigation as me, focusOut as Ye } from "./index101.js";
14
14
  const Ze = "Escape";
15
15
  function re(o, p, c) {
16
16
  switch (o) {
package/dist/index148.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as o from "react";
2
- import { useStableCallback as S } from "./index102.js";
3
- import { useIsoLayoutEffect as T } from "./index104.js";
2
+ import { useStableCallback as S } from "./index124.js";
3
+ import { useIsoLayoutEffect as T } from "./index126.js";
4
4
  import { useTimeout as D } from "./index152.js";
5
- import { EMPTY_ARRAY as U } from "./index100.js";
6
- import { stopEvent as O } from "./index221.js";
5
+ import { EMPTY_ARRAY as U } from "./index122.js";
6
+ import { stopEvent as O } from "./index225.js";
7
7
  function H(l, b) {
8
8
  const g = "rootStore" in l ? l.rootStore : l, c = g.useState("open"), u = g.context.dataRef, {
9
9
  listRef: E,
package/dist/index149.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as c from "react";
2
- import { s as i } from "./index248.js";
3
- import { w as S } from "./index249.js";
4
- import { isReactVersionAtLeast as a } from "./index204.js";
2
+ import { s as i } from "./index249.js";
3
+ import { w as S } from "./index250.js";
4
+ import { isReactVersionAtLeast as a } from "./index205.js";
5
5
  const u = a(19), m = u ? p : l;
6
6
  function b(t, e, o, r, n) {
7
7
  return m(t, e, o, r, n);
package/dist/index152.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { useRefWithInit as c } from "./index107.js";
2
+ import { useRefWithInit as c } from "./index94.js";
3
3
  import { useOnMount as u } from "./index209.js";
4
4
  const t = 0;
5
5
  class e {
package/dist/index155.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isHTMLElement as u, isShadowRoot as i } from "./index101.js";
1
+ import { isHTMLElement as u, isShadowRoot as i } from "./index123.js";
2
2
  import { isJSDOM as c } from "./index162.js";
3
3
  import { TYPEABLE_SELECTOR as s, FOCUSABLE_ATTRIBUTE as n } from "./index245.js";
4
4
  function h(t) {
package/dist/index157.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { getWindow as u, isOverflowElement as Y } from "./index101.js";
2
+ import { getWindow as u, isOverflowElement as Y } from "./index123.js";
3
3
  import { isIOS as W, isWebKit as E } from "./index162.js";
4
4
  import { ownerDocument as n } from "./index151.js";
5
- import { useIsoLayoutEffect as T } from "./index104.js";
5
+ import { useIsoLayoutEffect as T } from "./index126.js";
6
6
  import { Timeout as k } from "./index152.js";
7
7
  import { AnimationFrame as z } from "./index164.js";
8
- import { NOOP as H } from "./index100.js";
8
+ import { NOOP as H } from "./index122.js";
9
9
  let L = {}, C = {}, O = "";
10
10
  function F(r) {
11
11
  if (typeof document > "u")
package/dist/index158.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import * as a from "react";
3
- import { useRefWithInit as T } from "./index107.js";
4
- import { useStableCallback as m } from "./index102.js";
5
- import { useIsoLayoutEffect as f } from "./index104.js";
3
+ import { useRefWithInit as T } from "./index94.js";
4
+ import { useStableCallback as m } from "./index124.js";
5
+ import { useIsoLayoutEffect as f } from "./index126.js";
6
6
  import { CompositeListContext as D } from "./index211.js";
7
7
  import { jsx as L } from "react/jsx-runtime";
8
8
  function k(h) {
package/dist/index159.js CHANGED
@@ -2,9 +2,9 @@
2
2
  import * as a from "react";
3
3
  import { getSide as L, getSideAxis as Ee, getAlignment as Me } from "./index212.js";
4
4
  import { ownerDocument as qe } from "./index151.js";
5
- import { useIsoLayoutEffect as q } from "./index104.js";
5
+ import { useIsoLayoutEffect as q } from "./index126.js";
6
6
  import { useValueAsRef as G } from "./index132.js";
7
- import { useStableCallback as Ge } from "./index102.js";
7
+ import { useStableCallback as Ge } from "./index124.js";
8
8
  import { useDirection as Je } from "./index186.js";
9
9
  import { arrow as Ke } from "./index213.js";
10
10
  import { hide as Ne } from "./index214.js";
package/dist/index160.js CHANGED
@@ -1,4 +1,4 @@
1
- import n from "./index94.js";
1
+ import n from "./index112.js";
2
2
  import * as t from "react";
3
3
  const o = /* @__PURE__ */ t.createContext(void 0);
4
4
  process.env.NODE_ENV !== "production" && (o.displayName = "SelectPositionerContext");
package/dist/index164.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { useRefWithInit as u } from "./index107.js";
2
+ import { useRefWithInit as u } from "./index94.js";
3
3
  import { useOnMount as h } from "./index209.js";
4
4
  const s = null;
5
5
  let l = globalThis.requestAnimationFrame;
package/dist/index167.js CHANGED
@@ -1,5 +1,5 @@
1
- import { DISABLED_TRANSITIONS_STYLE as r } from "./index125.js";
2
- import { EMPTY_OBJECT as o } from "./index100.js";
1
+ import { DISABLED_TRANSITIONS_STYLE as r } from "./index113.js";
2
+ import { EMPTY_OBJECT as o } from "./index122.js";
3
3
  function T(t) {
4
4
  return t === "starting" ? r : o;
5
5
  }
package/dist/index168.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import * as u from "react";
3
- import { useIsoLayoutEffect as g } from "./index104.js";
3
+ import { useIsoLayoutEffect as g } from "./index126.js";
4
4
  import { useCompositeListContext as F } from "./index211.js";
5
5
  let I = /* @__PURE__ */ (function(t) {
6
6
  return t[t.None = 0] = "None", t[t.GuessFromOrder = 1] = "GuessFromOrder", t;
package/dist/index169.js CHANGED
@@ -1,4 +1,4 @@
1
- import n from "./index94.js";
1
+ import n from "./index112.js";
2
2
  import * as t from "react";
3
3
  const o = /* @__PURE__ */ t.createContext(void 0);
4
4
  process.env.NODE_ENV !== "production" && (o.displayName = "SelectItemContext");
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 "./index107.js";
4
- import { useDialogRoot as x } from "./index108.js";
5
- import { useDialogRootContext as h, DialogRootContext as R } from "./index109.js";
6
- import { DialogStore as D } from "./index110.js";
3
+ import { useRefWithInit as C } from "./index94.js";
4
+ import { useDialogRoot as x } from "./index95.js";
5
+ import { useDialogRootContext as h, DialogRootContext as R } from "./index96.js";
6
+ import { DialogStore as D } from "./index97.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,12 +1,12 @@
1
1
  "use client";
2
2
  import * as R from "react";
3
3
  import { useTimeout as O } from "./index152.js";
4
- import { useIsoLayoutEffect as X } from "./index104.js";
4
+ import { useIsoLayoutEffect as X } from "./index126.js";
5
5
  import { useSelectRootContext as Y } from "./index133.js";
6
6
  import { useSelectPositionerContext as _ } from "./index160.js";
7
7
  import { useTransitionStatus as j } from "./index137.js";
8
- import { useOpenChangeComplete as q } from "./index119.js";
9
- import { useRenderElement as z } from "./index86.js";
8
+ import { useOpenChangeComplete as q } from "./index106.js";
9
+ import { useRenderElement as z } from "./index87.js";
10
10
  import { selectors as d } from "./index138.js";
11
11
  import { useStore as H } from "./index149.js";
12
12
  const F = /* @__PURE__ */ R.forwardRef(function(w, I) {
package/dist/index171.js CHANGED
@@ -1,4 +1,4 @@
1
- import r from "./index94.js";
1
+ import r from "./index112.js";
2
2
  import * as t from "react";
3
3
  const o = /* @__PURE__ */ t.createContext(void 0);
4
4
  process.env.NODE_ENV !== "production" && (o.displayName = "SelectGroupContext");
package/dist/index172.js CHANGED
@@ -1,4 +1,4 @@
1
- import n from "./index94.js";
1
+ import n from "./index112.js";
2
2
  import * as t from "react";
3
3
  const o = /* @__PURE__ */ t.createContext(void 0);
4
4
  process.env.NODE_ENV !== "production" && (o.displayName = "MenuCheckboxItemContext");
package/dist/index173.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import * as a from "react";
3
- import { useMergedRefs as h } from "./index95.js";
3
+ import { useMergedRefs as h } from "./index117.js";
4
4
  import { useContextMenuRootContext as y } from "./index180.js";
5
- import { useButton as P } from "./index88.js";
5
+ import { useButton as P } from "./index89.js";
6
6
  import { mergeProps as v } from "./index27.js";
7
- import { itemPress as I } from "./index114.js";
7
+ import { itemPress as I } from "./index101.js";
8
8
  const A = {
9
9
  type: "regular-item"
10
10
  };
package/dist/index174.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import r from "./index94.js";
2
+ import r from "./index112.js";
3
3
  import * as t from "react";
4
4
  const o = /* @__PURE__ */ t.createContext(void 0);
5
5
  process.env.NODE_ENV !== "production" && (o.displayName = "MenuRootContext");
package/dist/index175.js CHANGED
@@ -1,5 +1,5 @@
1
- import { transitionStatusMapping as r } from "./index112.js";
2
- import { MenuCheckboxItemDataAttributes as t } from "./index233.js";
1
+ import { transitionStatusMapping as r } from "./index99.js";
2
+ import { MenuCheckboxItemDataAttributes as t } from "./index219.js";
3
3
  const c = {
4
4
  checked(e) {
5
5
  return e ? {
package/dist/index176.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import i from "./index94.js";
2
+ import i from "./index112.js";
3
3
  import * as o from "react";
4
4
  const t = /* @__PURE__ */ o.createContext(void 0);
5
5
  process.env.NODE_ENV !== "production" && (t.displayName = "MenuPositionerContext");
package/dist/index177.js CHANGED
@@ -1,4 +1,4 @@
1
- import n from "./index94.js";
1
+ import n from "./index112.js";
2
2
  import * as o from "react";
3
3
  const t = /* @__PURE__ */ o.createContext(void 0);
4
4
  process.env.NODE_ENV !== "production" && (t.displayName = "MenuGroupContext");