@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/index178.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import * as L from "react";
2
- import { isElement as j } from "./index101.js";
3
- import { useStableCallback as f } from "./index102.js";
4
- import { useIsoLayoutEffect as F } from "./index104.js";
5
- import { createChangeEventDetails as w } from "./index113.js";
2
+ import { isElement as j } from "./index123.js";
3
+ import { useStableCallback as f } from "./index124.js";
4
+ import { useIsoLayoutEffect as F } from "./index126.js";
5
+ import { createChangeEventDetails as w } from "./index100.js";
6
6
  import { useFloatingTree as q, useFloatingParentNodeId as z } from "./index181.js";
7
7
  import { useHoverInteractionSharedState as B, safePolygonIdentifier as H, isInteractiveElement as G } from "./index243.js";
8
- import { triggerHover as O } from "./index114.js";
8
+ import { triggerHover as O } from "./index101.js";
9
9
  import { getDocument as x, getTarget as J } from "./index155.js";
10
- import { isMouseLikePointerType as K } from "./index221.js";
10
+ import { isMouseLikePointerType as K } from "./index225.js";
11
11
  const Q = /* @__PURE__ */ new Set(["click", "mousedown"]);
12
12
  function re(i, d = {}) {
13
13
  const n = "rootStore" in i ? i.rootStore : i, m = n.useState("open"), u = n.useState("floatingElement"), b = n.useState("domReferenceElement"), {
package/dist/index179.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 = "MenuPortalContext");
package/dist/index18.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import * as n from "react";
3
- import { useDialogRootContext as p } from "./index109.js";
4
- import { useRenderElement as d } from "./index86.js";
5
- import { createChangeEventDetails as C } from "./index113.js";
6
- import { useButton as g } from "./index88.js";
7
- import { closePress as v } from "./index114.js";
3
+ import { useDialogRootContext as p } from "./index96.js";
4
+ import { useRenderElement as d } from "./index87.js";
5
+ import { createChangeEventDetails as C } from "./index100.js";
6
+ import { useButton as g } from "./index89.js";
7
+ import { closePress as v } from "./index101.js";
8
8
  const D = /* @__PURE__ */ n.forwardRef(function(t, s) {
9
9
  const {
10
10
  render: R,
package/dist/index180.js CHANGED
@@ -1,4 +1,4 @@
1
- import r from "./index94.js";
1
+ import r from "./index112.js";
2
2
  import * as e from "react";
3
3
  const o = /* @__PURE__ */ e.createContext(void 0);
4
4
  process.env.NODE_ENV !== "production" && (o.displayName = "ContextMenuRootContext");
package/dist/index181.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import * as r from "react";
3
3
  import { useId as a } from "./index184.js";
4
- import { useIsoLayoutEffect as l } from "./index104.js";
5
- import { useRefWithInit as f } from "./index107.js";
4
+ import { useIsoLayoutEffect as l } from "./index126.js";
5
+ import { useRefWithInit as f } from "./index94.js";
6
6
  import { FloatingTreeStore as m } from "./index191.js";
7
7
  import { jsx as d } from "react/jsx-runtime";
8
8
  const i = /* @__PURE__ */ r.createContext(null);
package/dist/index182.js CHANGED
@@ -1,4 +1,4 @@
1
- import n from "./index94.js";
1
+ import n from "./index112.js";
2
2
  import * as e from "react";
3
3
  const t = /* @__PURE__ */ e.createContext(void 0);
4
4
  process.env.NODE_ENV !== "production" && (t.displayName = "MenuRadioGroupContext");
package/dist/index183.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 = "MenuRadioItemContext");
package/dist/index184.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import * as n from "react";
3
- import { SafeReact as l } from "./index234.js";
3
+ import { SafeReact as l } from "./index220.js";
4
4
  let o = 0;
5
5
  function f(u, t = "mui") {
6
6
  const [e, a] = n.useState(u), c = u || e;
package/dist/index187.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as o from "react";
2
- import { EMPTY_OBJECT as s } from "./index100.js";
3
- import { useRefWithInit as l } from "./index107.js";
2
+ import { EMPTY_OBJECT as s } from "./index122.js";
3
+ import { useRefWithInit as l } from "./index94.js";
4
4
  import { FloatingTreeStore as u } from "./index191.js";
5
5
  import { ReactStore as p } from "./index201.js";
6
6
  import { PopupTriggerMap as d } from "./index202.js";
package/dist/index189.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { useId as f } from "./index184.js";
2
- import { useRefWithInit as g } from "./index107.js";
3
- import { useIsoLayoutEffect as E } from "./index104.js";
4
- import { isElement as d } from "./index101.js";
2
+ import { useRefWithInit as g } from "./index94.js";
3
+ import { useIsoLayoutEffect as E } from "./index126.js";
4
+ import { isElement as d } from "./index123.js";
5
5
  import { useFloatingParentNodeId as S } from "./index181.js";
6
6
  import { FloatingRootStore as x } from "./index242.js";
7
7
  function v(p) {
package/dist/index19.js CHANGED
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import * as c from "react";
3
- import { useDialogRootContext as h } from "./index109.js";
4
- import { useRenderElement as M } from "./index86.js";
5
- import { popupStateMapping as y } from "./index111.js";
6
- import { transitionStatusMapping as N } from "./index112.js";
7
- import { DialogPopupCssVars as v } from "./index116.js";
8
- import { DialogPopupDataAttributes as w } from "./index117.js";
9
- import { useDialogPortalContext as A } from "./index118.js";
10
- import { useOpenChangeComplete as K } from "./index119.js";
11
- import { COMPOSITE_KEYS as T } from "./index120.js";
3
+ import { useDialogRootContext as h } from "./index96.js";
4
+ import { useRenderElement as M } from "./index87.js";
5
+ import { popupStateMapping as y } from "./index98.js";
6
+ import { transitionStatusMapping as N } from "./index99.js";
7
+ import { DialogPopupCssVars as v } from "./index103.js";
8
+ import { DialogPopupDataAttributes as w } from "./index104.js";
9
+ import { useDialogPortalContext as A } from "./index105.js";
10
+ import { useOpenChangeComplete as K } from "./index106.js";
11
+ import { COMPOSITE_KEYS as T } from "./index107.js";
12
12
  import { jsx as V } from "react/jsx-runtime";
13
- import { FloatingFocusManager as _ } from "./index121.js";
13
+ import { FloatingFocusManager as _ } from "./index108.js";
14
14
  const j = {
15
15
  ...y,
16
16
  ...N,
package/dist/index190.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as r from "react";
2
2
  import { useId as P } from "./index184.js";
3
3
  import { useFloatingParentNodeId as S } from "./index181.js";
4
- import { EMPTY_OBJECT as F } from "./index100.js";
4
+ import { EMPTY_OBJECT as F } from "./index122.js";
5
5
  import { getFloatingFocusElement as y } from "./index155.js";
6
6
  const T = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
7
7
  function k(c, I = {}) {
package/dist/index191.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createEventEmitter as n } from "./index235.js";
1
+ import { createEventEmitter as n } from "./index221.js";
2
2
  class d {
3
3
  nodesRef = {
4
4
  current: []
package/dist/index192.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { useRenderElement as c } from "./index86.js";
3
- import { useCompositeItem as u } from "./index232.js";
4
- import { EMPTY_OBJECT as d, EMPTY_ARRAY as t } from "./index100.js";
2
+ import { useRenderElement as c } from "./index87.js";
3
+ import { useCompositeItem as u } from "./index222.js";
4
+ import { EMPTY_OBJECT as d, EMPTY_ARRAY as t } from "./index122.js";
5
5
  function M(e) {
6
6
  const {
7
7
  render: l,
package/dist/index193.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isHTMLElement as r, isLastTraversableNode as e, getParentNode as i } from "./index101.js";
1
+ import { isHTMLElement as r, isLastTraversableNode as e, getParentNode as i } from "./index123.js";
2
2
  function n(t) {
3
3
  if (r(t) && t.hasAttribute("data-rootownerid"))
4
4
  return t.getAttribute("data-rootownerid") ?? void 0;
package/dist/index194.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as c from "react";
2
2
  import { ownerDocument as i } from "./index151.js";
3
- import { EMPTY_OBJECT as s } from "./index100.js";
3
+ import { EMPTY_OBJECT as s } from "./index122.js";
4
4
  function a(u) {
5
5
  const {
6
6
  enabled: t = !0,
package/dist/index195.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import * as r from "react";
3
- import { useIsoLayoutEffect as a } from "./index104.js";
3
+ import { useIsoLayoutEffect as a } from "./index126.js";
4
4
  import { isSafari as u } from "./index162.js";
5
5
  import { visuallyHidden as i } from "./index129.js";
6
6
  import { jsx as f } from "react/jsx-runtime";
package/dist/index196.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import * as H from "react";
2
2
  import * as te from "react-dom";
3
- import { isElement as re } from "./index101.js";
3
+ import { isElement as re } from "./index123.js";
4
4
  import { useValueAsRef as N } from "./index132.js";
5
- import { useStableCallback as Y } from "./index102.js";
6
- import { createChangeEventDetails as C } from "./index113.js";
5
+ import { useStableCallback as Y } from "./index124.js";
6
+ import { createChangeEventDetails as C } from "./index100.js";
7
7
  import { getDelay as V } from "./index244.js";
8
8
  import { useFloatingTree as ne } from "./index181.js";
9
9
  import { useHoverInteractionSharedState as oe, safePolygonIdentifier as ce } from "./index243.js";
10
- import { triggerHover as L } from "./index114.js";
10
+ import { triggerHover as L } from "./index101.js";
11
11
  import { getDocument as z, contains as O } from "./index155.js";
12
- import { isMouseLikePointerType as B } from "./index221.js";
12
+ import { isMouseLikePointerType as B } from "./index225.js";
13
13
  function W(l) {
14
14
  return typeof l == "function" ? l() : l;
15
15
  }
package/dist/index197.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isElement as U } from "./index101.js";
1
+ import { isElement as U } from "./index123.js";
2
2
  import { Timeout as Z } from "./index152.js";
3
3
  import { getTarget as $, contains as W } from "./index155.js";
4
4
  import { getNodeChildren as y } from "./index241.js";
package/dist/index198.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as i from "react";
2
- import { getWindow as h, isElement as b, isHTMLElement as M } from "./index101.js";
2
+ import { getWindow as h, isElement as b, isHTMLElement as M } from "./index123.js";
3
3
  import { isMac as F, isSafari as D } from "./index162.js";
4
4
  import { useTimeout as k } from "./index152.js";
5
- import { createChangeEventDetails as R } from "./index113.js";
5
+ import { createChangeEventDetails as R } from "./index100.js";
6
6
  import { createAttribute as O } from "./index237.js";
7
7
  import { activeElement as T, contains as w, getTarget as S, isTypeableElement as A, matchesFocusVisible as C, getDocument as x } from "./index155.js";
8
- import { triggerFocus as y, triggerPress as B, escapeKey as K } from "./index114.js";
8
+ import { triggerFocus as y, triggerPress as B, escapeKey as K } from "./index101.js";
9
9
  const g = F && D;
10
10
  function z(a, L = {}) {
11
11
  const r = "rootStore" in a ? a.rootStore : a, {
package/dist/index20.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import * as n from "react";
3
- import { useDialogRootContext as p } from "./index109.js";
4
- import { useRenderElement as a } from "./index86.js";
5
- import { useBaseUiId as c } from "./index115.js";
3
+ import { useDialogRootContext as p } from "./index96.js";
4
+ import { useRenderElement as a } from "./index87.js";
5
+ import { useBaseUiId as c } from "./index102.js";
6
6
  const d = /* @__PURE__ */ n.forwardRef(function(e, i) {
7
7
  const {
8
8
  render: m,
package/dist/index200.js CHANGED
@@ -1,5 +1,5 @@
1
- import { getEmptyRootContext as i } from "./index250.js";
2
- import { EMPTY_OBJECT as n } from "./index100.js";
1
+ import { getEmptyRootContext as i } from "./index247.js";
2
+ import { EMPTY_OBJECT as n } from "./index122.js";
3
3
  import { createSelector as t } from "./index203.js";
4
4
  function l() {
5
5
  return {
package/dist/index201.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as r from "react";
2
2
  import { Store as l } from "./index150.js";
3
3
  import { useStore as a } from "./index149.js";
4
- import { useStableCallback as h } from "./index102.js";
5
- import { useIsoLayoutEffect as i } from "./index104.js";
6
- import { NOOP as d } from "./index100.js";
4
+ import { useStableCallback as h } from "./index124.js";
5
+ import { useIsoLayoutEffect as i } from "./index126.js";
6
+ import { NOOP as d } from "./index122.js";
7
7
  class O extends l {
8
8
  /**
9
9
  * Creates a new ReactStore instance.
package/dist/index202.js CHANGED
@@ -1,4 +1,4 @@
1
- import i from "./index94.js";
1
+ import i from "./index112.js";
2
2
  class a {
3
3
  constructor() {
4
4
  this.elements = /* @__PURE__ */ new Set(), this.idMap = /* @__PURE__ */ new Map();
package/dist/index203.js CHANGED
@@ -1,5 +1,5 @@
1
- import t from "./index94.js";
2
- import { createSelectorCreator as s, lruMemoize as i } from "./index247.js";
1
+ import t from "./index112.js";
2
+ import { createSelectorCreator as s, lruMemoize as i } from "./index248.js";
3
3
  s({
4
4
  memoize: i,
5
5
  memoizeOptions: {
package/dist/index204.js CHANGED
@@ -1,8 +1,29 @@
1
- import * as t from "react";
2
- const e = parseInt(t.version, 10);
3
- function o(r) {
4
- return e >= r;
1
+ "use client";
2
+ import * as l from "react-dom";
3
+ import { useAnimationFrame as m } from "./index164.js";
4
+ import { useStableCallback as u } from "./index124.js";
5
+ import { resolveRef as c } from "./index240.js";
6
+ function S(s, f = !1, a = !0) {
7
+ const i = m();
8
+ return u((r, t = null) => {
9
+ i.cancel();
10
+ const e = c(s);
11
+ e != null && (typeof e.getAnimations != "function" || globalThis.BASE_UI_ANIMATIONS_DISABLED ? r() : i.request(() => {
12
+ function o() {
13
+ e && Promise.all(e.getAnimations().map((n) => n.finished)).then(() => {
14
+ t != null && t.aborted || l.flushSync(r);
15
+ }).catch(() => {
16
+ if (a) {
17
+ if (t != null && t.aborted)
18
+ return;
19
+ l.flushSync(r);
20
+ } else e.getAnimations().length > 0 && e.getAnimations().some((n) => n.pending || n.playState !== "finished") && o();
21
+ });
22
+ }
23
+ f ? i.request(o) : o();
24
+ }));
25
+ });
5
26
  }
6
27
  export {
7
- o as isReactVersionAtLeast
28
+ S as useAnimationsFinished
8
29
  };
package/dist/index205.js CHANGED
@@ -1,29 +1,8 @@
1
- "use client";
2
- import * as l from "react-dom";
3
- import { useAnimationFrame as m } from "./index164.js";
4
- import { useStableCallback as u } from "./index102.js";
5
- import { resolveRef as c } from "./index240.js";
6
- function S(s, f = !1, a = !0) {
7
- const i = m();
8
- return u((r, t = null) => {
9
- i.cancel();
10
- const e = c(s);
11
- e != null && (typeof e.getAnimations != "function" || globalThis.BASE_UI_ANIMATIONS_DISABLED ? r() : i.request(() => {
12
- function o() {
13
- e && Promise.all(e.getAnimations().map((n) => n.finished)).then(() => {
14
- t != null && t.aborted || l.flushSync(r);
15
- }).catch(() => {
16
- if (a) {
17
- if (t != null && t.aborted)
18
- return;
19
- l.flushSync(r);
20
- } else e.getAnimations().length > 0 && e.getAnimations().some((n) => n.pending || n.playState !== "finished") && o();
21
- });
22
- }
23
- f ? i.request(o) : o();
24
- }));
25
- });
1
+ import * as t from "react";
2
+ const e = parseInt(t.version, 10);
3
+ function o(r) {
4
+ return e >= r;
26
5
  }
27
6
  export {
28
- S as useAnimationsFinished
7
+ o as isReactVersionAtLeast
29
8
  };
package/dist/index206.js CHANGED
@@ -1,14 +1,12 @@
1
- function t(r) {
2
- if (r == null)
3
- return "";
4
- if (typeof r == "string")
5
- return r;
6
- try {
7
- return JSON.stringify(r);
8
- } catch {
9
- return String(r);
10
- }
1
+ function n(e, t) {
2
+ return {
3
+ ...e,
4
+ state: {
5
+ ...e.state,
6
+ valid: !t && e.state.valid
7
+ }
8
+ };
11
9
  }
12
10
  export {
13
- t as serializeValue
11
+ n as getCombinedFieldValidityData
14
12
  };
package/dist/index207.js CHANGED
@@ -1,12 +1,14 @@
1
- function n(e, t) {
2
- return {
3
- ...e,
4
- state: {
5
- ...e.state,
6
- valid: !t && e.state.valid
7
- }
8
- };
1
+ function t(r) {
2
+ if (r == null)
3
+ return "";
4
+ if (typeof r == "string")
5
+ return r;
6
+ try {
7
+ return JSON.stringify(r);
8
+ } catch {
9
+ return String(r);
10
+ }
9
11
  }
10
12
  export {
11
- n as getCombinedFieldValidityData
13
+ t as serializeValue
12
14
  };
package/dist/index21.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import * as s from "react";
3
- import { useDialogRootContext as d } from "./index109.js";
4
- import { useRenderElement as m } from "./index86.js";
5
- import { popupStateMapping as l } from "./index111.js";
6
- import { transitionStatusMapping as f } from "./index112.js";
3
+ import { useDialogRootContext as d } from "./index96.js";
4
+ import { useRenderElement as m } from "./index87.js";
5
+ import { popupStateMapping as l } from "./index98.js";
6
+ import { transitionStatusMapping as f } from "./index99.js";
7
7
  const S = {
8
8
  ...l,
9
9
  ...f
package/dist/index217.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as o from "react";
2
2
  import { useFloating as P } from "./index216.js";
3
- import { isElement as s } from "./index101.js";
4
- import { useIsoLayoutEffect as F } from "./index104.js";
3
+ import { isElement as s } from "./index123.js";
4
+ import { useIsoLayoutEffect as F } from "./index126.js";
5
5
  import { useFloatingTree as V } from "./index181.js";
6
6
  import { useFloatingRootContext as v } from "./index145.js";
7
7
  function w(c = {}) {
package/dist/index218.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { flip as st, offset as rt, size as ct, hide as lt, computePosition as ft, shift as ut, limitShift as ht } from "./index253.js";
2
2
  import { createCoords as w, rectToClientRect as J, floor as A, max as E, round as D, min as N } from "./index212.js";
3
- import { getOverflowAncestors as V, isElement as v, getDocumentElement as R, getWindow as L, getFrameElement as U, getComputedStyle as b, isHTMLElement as C, isWebKit as Q, isTopLayer as $, getParentNode as S, isLastTraversableNode as z, isTableElement as at, isContainingBlock as Y, getContainingBlock as dt, getNodeName as _, isOverflowElement as q, getNodeScroll as H } from "./index101.js";
3
+ import { getOverflowAncestors as V, isElement as v, getDocumentElement as R, getWindow as L, getFrameElement as U, getComputedStyle as b, isHTMLElement as C, isWebKit as Q, isTopLayer as $, getParentNode as S, isLastTraversableNode as z, isTableElement as at, isContainingBlock as Y, getContainingBlock as dt, getNodeName as _, isOverflowElement as q, getNodeScroll as H } from "./index123.js";
4
4
  function Z(t) {
5
5
  const e = b(t);
6
6
  let n = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
package/dist/index219.js CHANGED
@@ -1,41 +1,6 @@
1
- import e from "./index94.js";
2
- import * as t from "react";
3
- const n = /* @__PURE__ */ t.createContext(void 0);
4
- process.env.NODE_ENV !== "production" && (n.displayName = "ComboboxRootContext");
5
- const s = /* @__PURE__ */ t.createContext(void 0);
6
- process.env.NODE_ENV !== "production" && (s.displayName = "ComboboxFloatingContext");
7
- const r = /* @__PURE__ */ t.createContext(void 0);
8
- process.env.NODE_ENV !== "production" && (r.displayName = "ComboboxDerivedItemsContext");
9
- const i = /* @__PURE__ */ t.createContext("");
10
- process.env.NODE_ENV !== "production" && (i.displayName = "ComboboxInputValueContext");
11
- function b() {
12
- const o = t.useContext(n);
13
- if (!o)
14
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxRootContext is missing. Combobox parts must be placed within <Combobox.Root>." : e(22));
15
- return o;
16
- }
17
- function C() {
18
- const o = t.useContext(s);
19
- if (!o)
20
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxFloatingContext is missing. Combobox parts must be placed within <Combobox.Root>." : e(23));
21
- return o;
22
- }
23
- function m() {
24
- const o = t.useContext(r);
25
- if (!o)
26
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxItemsContext is missing. Combobox parts must be placed within <Combobox.Root>." : e(24));
27
- return o;
28
- }
29
- function c() {
30
- return t.useContext(i);
31
- }
1
+ let h = /* @__PURE__ */ (function(d) {
2
+ return d.checked = "data-checked", d.unchecked = "data-unchecked", d.disabled = "data-disabled", d.highlighted = "data-highlighted", d;
3
+ })({});
32
4
  export {
33
- r as ComboboxDerivedItemsContext,
34
- s as ComboboxFloatingContext,
35
- i as ComboboxInputValueContext,
36
- n as ComboboxRootContext,
37
- m as useComboboxDerivedItemsContext,
38
- C as useComboboxFloatingContext,
39
- c as useComboboxInputValueContext,
40
- b as useComboboxRootContext
5
+ h as MenuCheckboxItemDataAttributes
41
6
  };
package/dist/index22.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import * as s from "react";
3
- import { inertValue as m } from "./index122.js";
4
- import { useDialogRootContext as d } from "./index109.js";
5
- import { DialogPortalContext as c } from "./index118.js";
6
- import { InternalBackdrop as u } from "./index123.js";
3
+ import { inertValue as m } from "./index109.js";
4
+ import { useDialogRootContext as d } from "./index96.js";
5
+ import { DialogPortalContext as c } from "./index105.js";
6
+ import { InternalBackdrop as u } from "./index110.js";
7
7
  import { jsx as n, jsxs as f } from "react/jsx-runtime";
8
- import { FloatingPortal as p } from "./index124.js";
8
+ import { FloatingPortal as p } from "./index111.js";
9
9
  const P = /* @__PURE__ */ s.forwardRef(function(t, a) {
10
10
  const {
11
11
  keepMounted: r = !1,
package/dist/index220.js CHANGED
@@ -1,59 +1,7 @@
1
- import { compareItemEquality as l } from "./index142.js";
2
- import { createSelector as t } from "./index203.js";
3
- const u = {
4
- id: t((e) => e.id),
5
- query: t((e) => e.query),
6
- items: t((e) => e.items),
7
- selectedValue: t((e) => e.selectedValue),
8
- open: t((e) => e.open),
9
- mounted: t((e) => e.mounted),
10
- forceMounted: t((e) => e.forceMounted),
11
- inline: t((e) => e.inline),
12
- activeIndex: t((e) => e.activeIndex),
13
- selectedIndex: t((e) => e.selectedIndex),
14
- isActive: t((e, i) => e.activeIndex === i),
15
- isSelected: t((e, i) => {
16
- const n = e.isItemEqualToValue, o = e.selectedValue;
17
- return Array.isArray(o) ? o.some((p) => l(p, i, n)) : l(o, i, n);
18
- }),
19
- transitionStatus: t((e) => e.transitionStatus),
20
- popupProps: t((e) => e.popupProps),
21
- inputProps: t((e) => e.inputProps),
22
- triggerProps: t((e) => e.triggerProps),
23
- getItemProps: t((e) => e.getItemProps),
24
- positionerElement: t((e) => e.positionerElement),
25
- listElement: t((e) => e.listElement),
26
- triggerElement: t((e) => e.triggerElement),
27
- inputElement: t((e) => e.inputElement),
28
- popupSide: t((e) => e.popupSide),
29
- openMethod: t((e) => e.openMethod),
30
- inputInsidePopup: t((e) => e.inputInsidePopup),
31
- selectionMode: t((e) => e.selectionMode),
32
- listRef: t((e) => e.listRef),
33
- labelsRef: t((e) => e.labelsRef),
34
- popupRef: t((e) => e.popupRef),
35
- emptyRef: t((e) => e.emptyRef),
36
- inputRef: t((e) => e.inputRef),
37
- keyboardActiveRef: t((e) => e.keyboardActiveRef),
38
- chipsContainerRef: t((e) => e.chipsContainerRef),
39
- clearRef: t((e) => e.clearRef),
40
- valuesRef: t((e) => e.valuesRef),
41
- allValuesRef: t((e) => e.allValuesRef),
42
- name: t((e) => e.name),
43
- disabled: t((e) => e.disabled),
44
- readOnly: t((e) => e.readOnly),
45
- required: t((e) => e.required),
46
- grid: t((e) => e.grid),
47
- isGrouped: t((e) => e.isGrouped),
48
- virtualized: t((e) => e.virtualized),
49
- onOpenChangeComplete: t((e) => e.onOpenChangeComplete),
50
- openOnInputClick: t((e) => e.openOnInputClick),
51
- itemToStringLabel: t((e) => e.itemToStringLabel),
52
- isItemEqualToValue: t((e) => e.isItemEqualToValue),
53
- modal: t((e) => e.modal),
54
- autoHighlight: t((e) => e.autoHighlight),
55
- submitOnItemClick: t((e) => e.submitOnItemClick)
1
+ import * as t from "react";
2
+ const a = {
3
+ ...t
56
4
  };
57
5
  export {
58
- u as selectors
6
+ a as SafeReact
59
7
  };
package/dist/index221.js CHANGED
@@ -1,30 +1,17 @@
1
- import { isAndroid as r, isJSDOM as o } from "./index162.js";
2
- function s(i) {
3
- i.preventDefault(), i.stopPropagation();
4
- }
5
- function e(i) {
6
- return "nativeEvent" in i;
7
- }
8
- function p(i) {
9
- return i.mozInputSource === 0 && i.isTrusted ? !0 : r && i.pointerType ? i.type === "click" && i.buttons === 1 : i.detail === 0 && !i.pointerType;
10
- }
11
- function c(i) {
12
- return o ? !1 : !r && i.width === 0 && i.height === 0 || r && i.width === 1 && i.height === 1 && i.pressure === 0 && i.detail === 0 && i.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
13
- i.width < 1 && i.height < 1 && i.pressure === 0 && i.detail === 0 && i.pointerType === "touch";
14
- }
15
- function d(i, t) {
16
- const u = ["mouse", "pen"];
17
- return t || u.push("", void 0), u.includes(i);
18
- }
19
- function f(i) {
20
- const t = i.type;
21
- return t === "click" || t === "mousedown" || t === "keydown" || t === "keyup";
1
+ function o() {
2
+ const t = /* @__PURE__ */ new Map();
3
+ return {
4
+ emit(e, a) {
5
+ t.get(e)?.forEach((n) => n(a));
6
+ },
7
+ on(e, a) {
8
+ t.has(e) || t.set(e, /* @__PURE__ */ new Set()), t.get(e).add(a);
9
+ },
10
+ off(e, a) {
11
+ t.get(e)?.delete(a);
12
+ }
13
+ };
22
14
  }
23
15
  export {
24
- f as isClickLikeEvent,
25
- d as isMouseLikePointerType,
26
- e as isReactEvent,
27
- p as isVirtualClick,
28
- c as isVirtualPointerEvent,
29
- s as stopEvent
16
+ o as createEventEmitter
30
17
  };