@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.
- package/dist/index100.js +32 -5
- package/dist/index101.js +19 -134
- package/dist/index102.js +4 -26
- package/dist/index103.js +4 -9
- package/dist/index104.js +5 -5
- package/dist/index105.js +7 -8
- package/dist/index106.js +16 -20
- package/dist/index107.js +13 -8
- package/dist/index108.js +291 -82
- package/dist/index109.js +4 -12
- package/dist/index110.js +37 -61
- package/dist/index111.js +126 -38
- package/dist/index112.js +5 -14
- package/dist/index113.js +21 -33
- package/dist/index114.js +77 -19
- package/dist/index115.js +63 -4
- package/dist/index116.js +46 -4
- package/dist/index117.js +67 -5
- package/dist/index118.js +8 -11
- package/dist/index119.js +13 -18
- package/dist/index120.js +4 -13
- package/dist/index121.js +3 -296
- package/dist/index122.js +5 -4
- package/dist/index123.js +131 -36
- package/dist/index124.js +24 -122
- package/dist/index125.js +8 -20
- package/dist/index126.js +5 -77
- package/dist/index127.js +11 -63
- package/dist/index128.js +22 -45
- package/dist/index132.js +2 -2
- package/dist/index133.js +1 -1
- package/dist/index134.js +2 -2
- package/dist/index135.js +1 -1
- package/dist/index136.js +4 -4
- package/dist/index137.js +1 -1
- package/dist/index139.js +1 -1
- package/dist/index140.js +3 -3
- package/dist/index141.js +1 -1
- package/dist/index143.js +2 -2
- package/dist/index144.js +1 -1
- package/dist/index145.js +3 -3
- package/dist/index146.js +5 -5
- package/dist/index147.js +6 -6
- package/dist/index148.js +4 -4
- package/dist/index149.js +3 -3
- package/dist/index152.js +1 -1
- package/dist/index155.js +1 -1
- package/dist/index157.js +3 -3
- package/dist/index158.js +3 -3
- package/dist/index159.js +2 -2
- package/dist/index160.js +1 -1
- package/dist/index164.js +1 -1
- package/dist/index167.js +2 -2
- package/dist/index168.js +1 -1
- package/dist/index169.js +1 -1
- package/dist/index17.js +4 -4
- package/dist/index170.js +3 -3
- package/dist/index171.js +1 -1
- package/dist/index172.js +1 -1
- package/dist/index173.js +3 -3
- package/dist/index174.js +1 -1
- package/dist/index175.js +2 -2
- package/dist/index176.js +1 -1
- package/dist/index177.js +1 -1
- package/dist/index178.js +6 -6
- package/dist/index179.js +1 -1
- package/dist/index18.js +5 -5
- package/dist/index180.js +1 -1
- package/dist/index181.js +2 -2
- package/dist/index182.js +1 -1
- package/dist/index183.js +1 -1
- package/dist/index184.js +1 -1
- package/dist/index187.js +2 -2
- package/dist/index189.js +3 -3
- package/dist/index19.js +10 -10
- package/dist/index190.js +1 -1
- package/dist/index191.js +1 -1
- package/dist/index192.js +3 -3
- package/dist/index193.js +1 -1
- package/dist/index194.js +1 -1
- package/dist/index195.js +1 -1
- package/dist/index196.js +5 -5
- package/dist/index197.js +1 -1
- package/dist/index198.js +3 -3
- package/dist/index20.js +3 -3
- package/dist/index200.js +2 -2
- package/dist/index201.js +3 -3
- package/dist/index202.js +1 -1
- package/dist/index203.js +2 -2
- package/dist/index204.js +26 -5
- package/dist/index205.js +5 -26
- package/dist/index206.js +9 -11
- package/dist/index207.js +11 -9
- package/dist/index21.js +4 -4
- package/dist/index217.js +2 -2
- package/dist/index218.js +1 -1
- package/dist/index219.js +4 -39
- package/dist/index22.js +5 -5
- package/dist/index220.js +4 -56
- package/dist/index221.js +14 -27
- package/dist/index222.js +32 -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 +3 -3
- package/dist/index230.js +17 -592
- package/dist/index231.js +6 -6
- package/dist/index232.js +7 -32
- package/dist/index233.js +43 -4
- package/dist/index234.js +597 -5
- package/dist/index235.js +11 -14
- package/dist/index239.js +1 -1
- package/dist/index24.js +10 -10
- package/dist/index242.js +2 -2
- package/dist/index244.js +1 -1
- package/dist/index246.js +2 -2
- package/dist/index247.js +14 -321
- package/dist/index248.js +322 -3
- package/dist/index249.js +3 -3
- package/dist/index250.js +3 -15
- package/dist/index26.js +1 -1
- package/dist/index27.js +1 -1
- package/dist/index28.js +2 -2
- package/dist/index32.js +1 -1
- package/dist/index33.js +11 -11
- package/dist/index34.js +4 -4
- package/dist/index35.js +11 -11
- package/dist/index36.js +8 -8
- package/dist/index37.js +6 -6
- package/dist/index38.js +7 -7
- package/dist/index39.js +4 -4
- package/dist/index40.js +3 -3
- package/dist/index41.js +4 -4
- package/dist/index42.js +2 -2
- package/dist/index43.js +2 -2
- package/dist/index44.js +1 -1
- package/dist/index45.js +4 -4
- package/dist/index46.js +8 -8
- package/dist/index47.js +8 -8
- package/dist/index48.js +10 -10
- package/dist/index49.js +2 -2
- package/dist/index50.js +9 -9
- package/dist/index52.js +8 -8
- package/dist/index53.js +1 -1
- package/dist/index54.js +15 -15
- package/dist/index55.js +7 -7
- package/dist/index56.js +8 -8
- package/dist/index57.js +1 -1
- package/dist/index58.js +3 -3
- package/dist/index59.js +2 -2
- package/dist/index60.js +5 -5
- package/dist/index61.js +2 -2
- package/dist/index62.js +2 -2
- package/dist/index63.js +5 -5
- package/dist/index64.js +2 -2
- package/dist/index66.js +7 -7
- package/dist/index67.js +1 -1
- package/dist/index69.js +10 -10
- package/dist/index70.js +1 -1
- package/dist/index71.js +9 -9
- package/dist/index72.js +11 -11
- package/dist/index73.js +2 -2
- package/dist/index74.js +1 -1
- package/dist/index75.js +5 -5
- package/dist/index76.js +1 -1
- package/dist/index77.js +3 -3
- package/dist/index78.js +3 -3
- package/dist/index81.js +7 -7
- package/dist/index82.js +2 -2
- package/dist/index83.js +1 -1
- package/dist/index86.js +11 -54
- package/dist/index87.js +54 -11
- package/dist/index88.js +87 -81
- package/dist/index89.js +81 -87
- package/dist/index94.js +7 -4
- package/dist/index95.js +86 -65
- package/dist/index96.js +12 -8
- package/dist/index97.js +61 -12
- package/dist/index98.js +38 -4
- package/dist/index99.js +14 -4
- package/dist/styles.css +1 -1
- 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 "./
|
|
3
|
-
import { useStableCallback as f } from "./
|
|
4
|
-
import { useIsoLayoutEffect as F } from "./
|
|
5
|
-
import { createChangeEventDetails as w } from "./
|
|
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 "./
|
|
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 "./
|
|
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
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 "./
|
|
4
|
-
import { useRenderElement as d } from "./
|
|
5
|
-
import { createChangeEventDetails as C } from "./
|
|
6
|
-
import { useButton as g } from "./
|
|
7
|
-
import { closePress as v } from "./
|
|
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
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 "./
|
|
5
|
-
import { useRefWithInit as f } from "./
|
|
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
package/dist/index183.js
CHANGED
package/dist/index184.js
CHANGED
package/dist/index187.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
|
-
import { EMPTY_OBJECT as s } from "./
|
|
3
|
-
import { useRefWithInit as l } from "./
|
|
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 "./
|
|
3
|
-
import { useIsoLayoutEffect as E } from "./
|
|
4
|
-
import { isElement as d } from "./
|
|
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 "./
|
|
4
|
-
import { useRenderElement as M } from "./
|
|
5
|
-
import { popupStateMapping as y } from "./
|
|
6
|
-
import { transitionStatusMapping as N } from "./
|
|
7
|
-
import { DialogPopupCssVars as v } from "./
|
|
8
|
-
import { DialogPopupDataAttributes as w } from "./
|
|
9
|
-
import { useDialogPortalContext as A } from "./
|
|
10
|
-
import { useOpenChangeComplete as K } from "./
|
|
11
|
-
import { COMPOSITE_KEYS as T } from "./
|
|
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 "./
|
|
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 "./
|
|
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
package/dist/index192.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useRenderElement as c } from "./
|
|
3
|
-
import { useCompositeItem as u } from "./
|
|
4
|
-
import { EMPTY_OBJECT as d, EMPTY_ARRAY as t } from "./
|
|
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 "./
|
|
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
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 "./
|
|
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 "./
|
|
3
|
+
import { isElement as re } from "./index123.js";
|
|
4
4
|
import { useValueAsRef as N } from "./index132.js";
|
|
5
|
-
import { useStableCallback as Y } from "./
|
|
6
|
-
import { createChangeEventDetails as C } from "./
|
|
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 "./
|
|
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 "./
|
|
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
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 "./
|
|
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 "./
|
|
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 "./
|
|
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 "./
|
|
4
|
-
import { useRenderElement as a } from "./
|
|
5
|
-
import { useBaseUiId as c } from "./
|
|
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 "./
|
|
2
|
-
import { EMPTY_OBJECT as n } from "./
|
|
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 "./
|
|
5
|
-
import { useIsoLayoutEffect as i } from "./
|
|
6
|
-
import { NOOP as d } from "./
|
|
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
package/dist/index203.js
CHANGED
package/dist/index204.js
CHANGED
|
@@ -1,8 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
28
|
+
S as useAnimationsFinished
|
|
8
29
|
};
|
package/dist/index205.js
CHANGED
|
@@ -1,29 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
7
|
+
o as isReactVersionAtLeast
|
|
29
8
|
};
|
package/dist/index206.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
function t
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
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
|
-
|
|
11
|
+
n as getCombinedFieldValidityData
|
|
14
12
|
};
|
package/dist/index207.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
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 "./
|
|
4
|
-
import { useRenderElement as m } from "./
|
|
5
|
-
import { popupStateMapping as l } from "./
|
|
6
|
-
import { transitionStatusMapping as f } from "./
|
|
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 "./
|
|
4
|
-
import { useIsoLayoutEffect as F } from "./
|
|
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 "./
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
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 "./
|
|
4
|
-
import { useDialogRootContext as d } from "./
|
|
5
|
-
import { DialogPortalContext as c } from "./
|
|
6
|
-
import { InternalBackdrop as u } from "./
|
|
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 "./
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
6
|
+
a as SafeReact
|
|
59
7
|
};
|
package/dist/index221.js
CHANGED
|
@@ -1,30 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
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
|
};
|