@yselimcan/ui 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +15277 -100
- package/dist/styles.css +1 -1
- package/package.json +9 -12
- package/dist/index10.js +0 -137
- package/dist/index100.js +0 -7
- package/dist/index101.js +0 -69
- package/dist/index102.js +0 -11
- package/dist/index103.js +0 -16
- package/dist/index104.js +0 -6
- package/dist/index105.js +0 -6
- package/dist/index106.js +0 -8
- package/dist/index107.js +0 -32
- package/dist/index108.js +0 -14
- package/dist/index109.js +0 -69
- package/dist/index11.js +0 -21
- package/dist/index110.js +0 -56
- package/dist/index111.js +0 -15
- package/dist/index112.js +0 -8
- package/dist/index113.js +0 -15
- package/dist/index114.js +0 -15
- package/dist/index115.js +0 -35
- package/dist/index116.js +0 -21
- package/dist/index117.js +0 -43
- package/dist/index118.js +0 -21
- package/dist/index119.js +0 -14
- package/dist/index12.js +0 -20
- package/dist/index120.js +0 -40
- package/dist/index121.js +0 -16
- package/dist/index122.js +0 -11
- package/dist/index123.js +0 -15
- package/dist/index124.js +0 -8
- package/dist/index125.js +0 -90
- package/dist/index126.js +0 -299
- package/dist/index127.js +0 -14
- package/dist/index128.js +0 -128
- package/dist/index129.js +0 -7
- package/dist/index13.js +0 -206
- package/dist/index130.js +0 -266
- package/dist/index131.js +0 -82
- package/dist/index132.js +0 -41
- package/dist/index133.js +0 -23
- package/dist/index134.js +0 -14
- package/dist/index135.js +0 -59
- package/dist/index136.js +0 -14
- package/dist/index137.js +0 -14
- package/dist/index138.js +0 -33
- package/dist/index139.js +0 -21
- package/dist/index14.js +0 -24
- package/dist/index140.js +0 -69
- package/dist/index141.js +0 -107
- package/dist/index142.js +0 -11
- package/dist/index143.js +0 -11
- package/dist/index144.js +0 -25
- package/dist/index145.js +0 -106
- package/dist/index146.js +0 -10
- package/dist/index147.js +0 -35
- package/dist/index148.js +0 -233
- package/dist/index149.js +0 -77
- package/dist/index15.js +0 -19
- package/dist/index150.js +0 -286
- package/dist/index151.js +0 -56
- package/dist/index152.js +0 -48
- package/dist/index153.js +0 -79
- package/dist/index154.js +0 -6
- package/dist/index155.js +0 -17
- package/dist/index156.js +0 -18
- package/dist/index157.js +0 -31
- package/dist/index158.js +0 -10
- package/dist/index159.js +0 -25
- package/dist/index16.js +0 -8
- package/dist/index160.js +0 -27
- package/dist/index161.js +0 -163
- package/dist/index162.js +0 -116
- package/dist/index163.js +0 -67
- package/dist/index164.js +0 -78
- package/dist/index165.js +0 -67
- package/dist/index166.js +0 -72
- package/dist/index167.js +0 -16
- package/dist/index168.js +0 -10
- package/dist/index169.js +0 -8
- package/dist/index17.js +0 -46
- package/dist/index170.js +0 -20
- package/dist/index171.js +0 -24
- package/dist/index172.js +0 -61
- package/dist/index173.js +0 -20
- package/dist/index174.js +0 -30
- package/dist/index175.js +0 -45
- package/dist/index176.js +0 -24
- package/dist/index177.js +0 -51
- package/dist/index178.js +0 -54
- package/dist/index179.js +0 -20
- package/dist/index18.js +0 -41
- package/dist/index180.js +0 -14
- package/dist/index181.js +0 -38
- package/dist/index182.js +0 -18
- package/dist/index183.js +0 -82
- package/dist/index184.js +0 -26
- package/dist/index185.js +0 -6
- package/dist/index186.js +0 -14
- package/dist/index187.js +0 -13
- package/dist/index188.js +0 -43
- package/dist/index189.js +0 -7
- package/dist/index19.js +0 -80
- package/dist/index190.js +0 -12
- package/dist/index191.js +0 -14
- package/dist/index192.js +0 -120
- package/dist/index193.js +0 -14
- package/dist/index194.js +0 -90
- package/dist/index195.js +0 -15
- package/dist/index196.js +0 -65
- package/dist/index197.js +0 -6
- package/dist/index198.js +0 -7
- package/dist/index199.js +0 -14
- package/dist/index20.js +0 -25
- package/dist/index200.js +0 -8
- package/dist/index201.js +0 -24
- package/dist/index202.js +0 -6
- package/dist/index203.js +0 -29
- package/dist/index204.js +0 -130
- package/dist/index205.js +0 -47
- package/dist/index206.js +0 -20
- package/dist/index207.js +0 -7
- package/dist/index208.js +0 -183
- package/dist/index209.js +0 -78
- package/dist/index21.js +0 -40
- package/dist/index210.js +0 -401
- package/dist/index211.js +0 -202
- package/dist/index212.js +0 -50
- package/dist/index213.js +0 -22
- package/dist/index214.js +0 -50
- package/dist/index215.js +0 -9
- package/dist/index216.js +0 -7
- package/dist/index217.js +0 -19
- package/dist/index218.js +0 -17
- package/dist/index219.js +0 -35
- package/dist/index22.js +0 -31
- package/dist/index220.js +0 -6
- package/dist/index221.js +0 -14
- package/dist/index222.js +0 -12
- package/dist/index223.js +0 -41
- package/dist/index224.js +0 -59
- package/dist/index225.js +0 -30
- package/dist/index226.js +0 -10
- package/dist/index227.js +0 -15
- package/dist/index228.js +0 -14
- package/dist/index229.js +0 -14
- package/dist/index23.js +0 -25
- package/dist/index230.js +0 -24
- package/dist/index231.js +0 -14
- package/dist/index232.js +0 -10
- package/dist/index233.js +0 -45
- package/dist/index234.js +0 -599
- package/dist/index235.js +0 -14
- package/dist/index236.js +0 -6
- package/dist/index237.js +0 -211
- package/dist/index238.js +0 -6
- package/dist/index239.js +0 -16
- package/dist/index24.js +0 -56
- package/dist/index240.js +0 -50
- package/dist/index241.js +0 -15
- package/dist/index242.js +0 -60
- package/dist/index243.js +0 -32
- package/dist/index244.js +0 -16
- package/dist/index245.js +0 -11
- package/dist/index246.js +0 -209
- package/dist/index247.js +0 -17
- package/dist/index248.js +0 -324
- package/dist/index249.js +0 -5
- package/dist/index25.js +0 -35
- package/dist/index250.js +0 -5
- package/dist/index251.js +0 -23
- package/dist/index252.js +0 -8
- package/dist/index253.js +0 -489
- package/dist/index254.js +0 -10
- package/dist/index255.js +0 -4
- package/dist/index256.js +0 -46
- package/dist/index257.js +0 -58
- package/dist/index258.js +0 -10
- package/dist/index259.js +0 -4
- package/dist/index26.js +0 -7
- package/dist/index260.js +0 -57
- package/dist/index261.js +0 -58
- package/dist/index262.js +0 -4
- package/dist/index263.js +0 -4
- package/dist/index264.js +0 -4
- package/dist/index265.js +0 -4
- package/dist/index27.js +0 -82
- package/dist/index28.js +0 -32
- package/dist/index29.js +0 -6
- package/dist/index3.js +0 -181
- package/dist/index30.js +0 -9
- package/dist/index31.js +0 -6
- package/dist/index32.js +0 -23
- package/dist/index33.js +0 -207
- package/dist/index34.js +0 -25
- package/dist/index35.js +0 -102
- package/dist/index36.js +0 -69
- package/dist/index37.js +0 -66
- package/dist/index38.js +0 -113
- package/dist/index39.js +0 -53
- package/dist/index4.js +0 -47
- package/dist/index40.js +0 -35
- package/dist/index41.js +0 -28
- package/dist/index42.js +0 -18
- package/dist/index43.js +0 -27
- package/dist/index44.js +0 -25
- package/dist/index45.js +0 -36
- package/dist/index46.js +0 -78
- package/dist/index47.js +0 -65
- package/dist/index48.js +0 -128
- package/dist/index49.js +0 -19
- package/dist/index5.js +0 -52
- package/dist/index50.js +0 -86
- package/dist/index51.js +0 -6
- package/dist/index52.js +0 -268
- package/dist/index53.js +0 -25
- package/dist/index54.js +0 -207
- package/dist/index55.js +0 -146
- package/dist/index56.js +0 -88
- package/dist/index57.js +0 -29
- package/dist/index58.js +0 -30
- package/dist/index59.js +0 -48
- package/dist/index6.js +0 -93
- package/dist/index60.js +0 -79
- package/dist/index61.js +0 -45
- package/dist/index62.js +0 -46
- package/dist/index63.js +0 -76
- package/dist/index64.js +0 -45
- package/dist/index65.js +0 -22
- package/dist/index66.js +0 -101
- package/dist/index67.js +0 -14
- package/dist/index68.js +0 -6
- package/dist/index69.js +0 -321
- package/dist/index7.js +0 -294
- package/dist/index70.js +0 -24
- package/dist/index71.js +0 -143
- package/dist/index72.js +0 -200
- package/dist/index73.js +0 -43
- package/dist/index74.js +0 -29
- package/dist/index75.js +0 -148
- package/dist/index76.js +0 -32
- package/dist/index77.js +0 -53
- package/dist/index78.js +0 -28
- package/dist/index79.js +0 -15
- package/dist/index8.js +0 -264
- package/dist/index80.js +0 -15
- package/dist/index81.js +0 -135
- package/dist/index82.js +0 -31
- package/dist/index83.js +0 -35
- package/dist/index84.js +0 -17
- package/dist/index85.js +0 -2765
- package/dist/index86.js +0 -92
- package/dist/index87.js +0 -57
- package/dist/index88.js +0 -14
- package/dist/index89.js +0 -98
- package/dist/index9.js +0 -197
- package/dist/index90.js +0 -21
- package/dist/index91.js +0 -18
- package/dist/index92.js +0 -35
- package/dist/index93.js +0 -14
- package/dist/index94.js +0 -136
- package/dist/index95.js +0 -30
- package/dist/index96.js +0 -11
- package/dist/index97.js +0 -7
- package/dist/index98.js +0 -15
- package/dist/index99.js +0 -25
package/dist/index18.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import * as n from "react";
|
|
3
|
-
import { useDialogRootContext as p } from "./index195.js";
|
|
4
|
-
import { useRenderElement as d } from "./index87.js";
|
|
5
|
-
import { createChangeEventDetails as C } from "./index115.js";
|
|
6
|
-
import { useButton as g } from "./index86.js";
|
|
7
|
-
import { closePress as v } from "./index116.js";
|
|
8
|
-
const D = /* @__PURE__ */ n.forwardRef(function(t, s) {
|
|
9
|
-
const {
|
|
10
|
-
render: R,
|
|
11
|
-
className: N,
|
|
12
|
-
disabled: e = !1,
|
|
13
|
-
nativeButton: r = !0,
|
|
14
|
-
...i
|
|
15
|
-
} = t, {
|
|
16
|
-
store: o
|
|
17
|
-
} = p(), a = o.useState("open");
|
|
18
|
-
function l(u) {
|
|
19
|
-
a && o.setOpen(!1, C(v, u.nativeEvent));
|
|
20
|
-
}
|
|
21
|
-
const {
|
|
22
|
-
getButtonProps: c,
|
|
23
|
-
buttonRef: f
|
|
24
|
-
} = g({
|
|
25
|
-
disabled: e,
|
|
26
|
-
native: r
|
|
27
|
-
}), m = n.useMemo(() => ({
|
|
28
|
-
disabled: e
|
|
29
|
-
}), [e]);
|
|
30
|
-
return d("button", t, {
|
|
31
|
-
state: m,
|
|
32
|
-
ref: [s, f],
|
|
33
|
-
props: [{
|
|
34
|
-
onClick: l
|
|
35
|
-
}, i, c]
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
process.env.NODE_ENV !== "production" && (D.displayName = "DialogClose");
|
|
39
|
-
export {
|
|
40
|
-
D as DialogClose
|
|
41
|
-
};
|
package/dist/index180.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as c from "react";
|
|
2
|
-
import { useIsoLayoutEffect as o } from "./index97.js";
|
|
3
|
-
import { useStableCallback as f } from "./index95.js";
|
|
4
|
-
function u(r, n) {
|
|
5
|
-
const t = c.useRef(r), e = f(n);
|
|
6
|
-
o(() => {
|
|
7
|
-
t.current !== r && e(t.current);
|
|
8
|
-
}, [r, e]), o(() => {
|
|
9
|
-
t.current = r;
|
|
10
|
-
}, [r]);
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
u as useValueChanged
|
|
14
|
-
};
|
package/dist/index181.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { isElement as s } from "./index94.js";
|
|
2
|
-
import { useId as m } from "./index139.js";
|
|
3
|
-
import { useRefWithInit as c } from "./index168.js";
|
|
4
|
-
import { useIsoLayoutEffect as a } from "./index97.js";
|
|
5
|
-
import { useFloatingParentNodeId as u } from "./index135.js";
|
|
6
|
-
import { FloatingRootStore as g } from "./index242.js";
|
|
7
|
-
import { PopupTriggerMap as p } from "./index212.js";
|
|
8
|
-
function O(o) {
|
|
9
|
-
const {
|
|
10
|
-
open: r = !1,
|
|
11
|
-
onOpenChange: i,
|
|
12
|
-
elements: e = {}
|
|
13
|
-
} = o, f = m(), l = u() != null;
|
|
14
|
-
if (process.env.NODE_ENV !== "production") {
|
|
15
|
-
const n = e.reference;
|
|
16
|
-
n && !s(n) && console.error("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `context.setPositionReference()`", "instead.");
|
|
17
|
-
}
|
|
18
|
-
const t = c(() => new g({
|
|
19
|
-
open: r,
|
|
20
|
-
onOpenChange: i,
|
|
21
|
-
referenceElement: e.reference ?? null,
|
|
22
|
-
floatingElement: e.floating ?? null,
|
|
23
|
-
triggerElements: e.triggers ?? new p(),
|
|
24
|
-
floatingId: f,
|
|
25
|
-
nested: l,
|
|
26
|
-
noEmit: o.noEmit || !1
|
|
27
|
-
})).current;
|
|
28
|
-
return a(() => {
|
|
29
|
-
const n = {
|
|
30
|
-
open: r,
|
|
31
|
-
floatingId: f
|
|
32
|
-
};
|
|
33
|
-
e.reference !== void 0 && (n.referenceElement = e.reference, n.domReferenceElement = s(e.reference) ? e.reference : null), e.floating !== void 0 && (n.floatingElement = e.floating), t.update(n);
|
|
34
|
-
}, [r, f, e.reference, e.floating, t]), t.context.onOpenChange = i, t.context.nested = l, t.context.noEmit = o.noEmit || !1, t;
|
|
35
|
-
}
|
|
36
|
-
export {
|
|
37
|
-
O as useFloatingRootContext
|
|
38
|
-
};
|
package/dist/index182.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as c from "react";
|
|
2
|
-
import { s as i } from "./index249.js";
|
|
3
|
-
import { w as S } from "./index250.js";
|
|
4
|
-
import { isReactVersionAtLeast as a } from "./index200.js";
|
|
5
|
-
const u = a(19), m = u ? p : l;
|
|
6
|
-
function b(t, e, o, r, n) {
|
|
7
|
-
return m(t, e, o, r, n);
|
|
8
|
-
}
|
|
9
|
-
function p(t, e, o, r, n) {
|
|
10
|
-
const s = c.useCallback(() => e(t.getSnapshot(), o, r, n), [t, e, o, r, n]);
|
|
11
|
-
return i.useSyncExternalStore(t.subscribe, s, s);
|
|
12
|
-
}
|
|
13
|
-
function l(t, e, o, r, n) {
|
|
14
|
-
return S.useSyncExternalStoreWithSelector(t.subscribe, t.getSnapshot, t.getSnapshot, (s) => e(s, o, r, n));
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
b as useStore
|
|
18
|
-
};
|
package/dist/index183.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
class e {
|
|
2
|
-
/**
|
|
3
|
-
* The current state of the store.
|
|
4
|
-
* This property is updated immediately when the state changes as a result of calling {@link setState}, {@link update}, or {@link set}.
|
|
5
|
-
* To subscribe to state changes, use the {@link useState} method. The value returned by {@link useState} is updated after the component renders (similarly to React's useState).
|
|
6
|
-
* The values can be used directly (to avoid subscribing to the store) in effects or event handlers.
|
|
7
|
-
*
|
|
8
|
-
* Do not modify properties in state directly. Instead, use the provided methods to ensure proper state management and listener notification.
|
|
9
|
-
*/
|
|
10
|
-
// Internal state to handle recursive `setState()` calls
|
|
11
|
-
constructor(t) {
|
|
12
|
-
this.state = t, this.listeners = /* @__PURE__ */ new Set(), this.updateTick = 0;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Registers a listener that will be called whenever the store's state changes.
|
|
16
|
-
*
|
|
17
|
-
* @param fn The listener function to be called on state changes.
|
|
18
|
-
* @returns A function to unsubscribe the listener.
|
|
19
|
-
*/
|
|
20
|
-
subscribe = (t) => (this.listeners.add(t), () => {
|
|
21
|
-
this.listeners.delete(t);
|
|
22
|
-
});
|
|
23
|
-
/**
|
|
24
|
-
* Returns the current state of the store.
|
|
25
|
-
*/
|
|
26
|
-
getSnapshot = () => this.state;
|
|
27
|
-
/**
|
|
28
|
-
* Updates the entire store's state and notifies all registered listeners.
|
|
29
|
-
*
|
|
30
|
-
* @param newState The new state to set for the store.
|
|
31
|
-
*/
|
|
32
|
-
setState(t) {
|
|
33
|
-
if (this.state === t)
|
|
34
|
-
return;
|
|
35
|
-
this.state = t, this.updateTick += 1;
|
|
36
|
-
const s = this.updateTick;
|
|
37
|
-
for (const i of this.listeners) {
|
|
38
|
-
if (s !== this.updateTick)
|
|
39
|
-
return;
|
|
40
|
-
i(t);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Merges the provided changes into the current state and notifies listeners if there are changes.
|
|
45
|
-
*
|
|
46
|
-
* @param changes An object containing the changes to apply to the current state.
|
|
47
|
-
*/
|
|
48
|
-
update(t) {
|
|
49
|
-
for (const s in t)
|
|
50
|
-
if (!Object.is(this.state[s], t[s])) {
|
|
51
|
-
e.prototype.setState.call(this, {
|
|
52
|
-
...this.state,
|
|
53
|
-
...t
|
|
54
|
-
});
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Sets a specific key in the store's state to a new value and notifies listeners if the value has changed.
|
|
60
|
-
*
|
|
61
|
-
* @param key The key in the store's state to update.
|
|
62
|
-
* @param value The new value to set for the specified key.
|
|
63
|
-
*/
|
|
64
|
-
set(t, s) {
|
|
65
|
-
Object.is(this.state[t], s) || e.prototype.setState.call(this, {
|
|
66
|
-
...this.state,
|
|
67
|
-
[t]: s
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Gives the state a new reference and updates all registered listeners.
|
|
72
|
-
*/
|
|
73
|
-
notifyAll() {
|
|
74
|
-
const t = {
|
|
75
|
-
...this.state
|
|
76
|
-
};
|
|
77
|
-
e.prototype.setState.call(this, t);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
export {
|
|
81
|
-
e as Store
|
|
82
|
-
};
|
package/dist/index184.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { FieldControlDataAttributes as a } from "./index220.js";
|
|
2
|
-
const e = {
|
|
3
|
-
badInput: !1,
|
|
4
|
-
customError: !1,
|
|
5
|
-
patternMismatch: !1,
|
|
6
|
-
rangeOverflow: !1,
|
|
7
|
-
rangeUnderflow: !1,
|
|
8
|
-
stepMismatch: !1,
|
|
9
|
-
tooLong: !1,
|
|
10
|
-
tooShort: !1,
|
|
11
|
-
typeMismatch: !1,
|
|
12
|
-
valid: null,
|
|
13
|
-
valueMissing: !1
|
|
14
|
-
}, r = {
|
|
15
|
-
valid(l) {
|
|
16
|
-
return l === null ? null : l ? {
|
|
17
|
-
[a.valid]: ""
|
|
18
|
-
} : {
|
|
19
|
-
[a.invalid]: ""
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
e as DEFAULT_VALIDITY_STATE,
|
|
25
|
-
r as fieldValidityMapping
|
|
26
|
-
};
|
package/dist/index185.js
DELETED
package/dist/index186.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import n from "./index100.js";
|
|
2
|
-
import * as t from "react";
|
|
3
|
-
const o = /* @__PURE__ */ t.createContext(void 0);
|
|
4
|
-
process.env.NODE_ENV !== "production" && (o.displayName = "SelectPositionerContext");
|
|
5
|
-
function i() {
|
|
6
|
-
const e = t.useContext(o);
|
|
7
|
-
if (!e)
|
|
8
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>." : n(59));
|
|
9
|
-
return e;
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
o as SelectPositionerContext,
|
|
13
|
-
i as useSelectPositionerContext
|
|
14
|
-
};
|
package/dist/index187.js
DELETED
package/dist/index188.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
const a = typeof navigator < "u", o = e(), n = f(), r = u(), c = typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter:none"), m = (
|
|
2
|
-
// iPads can claim to be MacIntel
|
|
3
|
-
o.platform === "MacIntel" && o.maxTouchPoints > 1 ? !0 : /iP(hone|ad|od)|iOS/.test(o.platform)
|
|
4
|
-
), p = a && /firefox/i.test(r), g = a && /apple/i.test(navigator.vendor), d = a && /android/i.test(n) || /android/i.test(r), l = a && n.toLowerCase().startsWith("mac") && !navigator.maxTouchPoints, v = r.includes("jsdom/");
|
|
5
|
-
function e() {
|
|
6
|
-
if (!a)
|
|
7
|
-
return {
|
|
8
|
-
platform: "",
|
|
9
|
-
maxTouchPoints: -1
|
|
10
|
-
};
|
|
11
|
-
const t = navigator.userAgentData;
|
|
12
|
-
return t?.platform ? {
|
|
13
|
-
platform: t.platform,
|
|
14
|
-
maxTouchPoints: navigator.maxTouchPoints
|
|
15
|
-
} : {
|
|
16
|
-
platform: navigator.platform ?? "",
|
|
17
|
-
maxTouchPoints: navigator.maxTouchPoints ?? -1
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
function u() {
|
|
21
|
-
if (!a)
|
|
22
|
-
return "";
|
|
23
|
-
const t = navigator.userAgentData;
|
|
24
|
-
return t && Array.isArray(t.brands) ? t.brands.map(({
|
|
25
|
-
brand: i,
|
|
26
|
-
version: s
|
|
27
|
-
}) => `${i}/${s}`).join(" ") : navigator.userAgent;
|
|
28
|
-
}
|
|
29
|
-
function f() {
|
|
30
|
-
if (!a)
|
|
31
|
-
return "";
|
|
32
|
-
const t = navigator.userAgentData;
|
|
33
|
-
return t?.platform ? t.platform : navigator.platform ?? "";
|
|
34
|
-
}
|
|
35
|
-
export {
|
|
36
|
-
d as isAndroid,
|
|
37
|
-
p as isFirefox,
|
|
38
|
-
m as isIOS,
|
|
39
|
-
v as isJSDOM,
|
|
40
|
-
l as isMac,
|
|
41
|
-
g as isSafari,
|
|
42
|
-
c as isWebKit
|
|
43
|
-
};
|
package/dist/index189.js
DELETED
package/dist/index19.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import * as c from "react";
|
|
3
|
-
import { useDialogRootContext as h } from "./index195.js";
|
|
4
|
-
import { useRenderElement as M } from "./index87.js";
|
|
5
|
-
import { popupStateMapping as y } from "./index120.js";
|
|
6
|
-
import { transitionStatusMapping as N } from "./index121.js";
|
|
7
|
-
import { DialogPopupCssVars as v } from "./index197.js";
|
|
8
|
-
import { DialogPopupDataAttributes as w } from "./index198.js";
|
|
9
|
-
import { useDialogPortalContext as A } from "./index199.js";
|
|
10
|
-
import { useOpenChangeComplete as K } from "./index118.js";
|
|
11
|
-
import { COMPOSITE_KEYS as T } from "./index123.js";
|
|
12
|
-
import { jsx as V } from "react/jsx-runtime";
|
|
13
|
-
import { FloatingFocusManager as _ } from "./index126.js";
|
|
14
|
-
const j = {
|
|
15
|
-
...y,
|
|
16
|
-
...N,
|
|
17
|
-
nestedDialogOpen(n) {
|
|
18
|
-
return n ? {
|
|
19
|
-
[w.nestedDialogOpen]: ""
|
|
20
|
-
} : null;
|
|
21
|
-
}
|
|
22
|
-
}, k = /* @__PURE__ */ c.forwardRef(function(s, d) {
|
|
23
|
-
const {
|
|
24
|
-
className: Y,
|
|
25
|
-
finalFocus: m,
|
|
26
|
-
initialFocus: i,
|
|
27
|
-
render: q,
|
|
28
|
-
...f
|
|
29
|
-
} = s, {
|
|
30
|
-
store: t
|
|
31
|
-
} = h(), g = t.useState("descriptionElementId"), S = t.useState("disablePointerDismissal"), D = t.useState("floatingRootContext"), C = t.useState("popupProps"), P = t.useState("modal"), a = t.useState("mounted"), p = t.useState("nested"), r = t.useState("nestedOpenDialogCount"), e = t.useState("open"), x = t.useState("openMethod"), O = t.useState("titleElementId"), u = t.useState("transitionStatus"), b = t.useState("role");
|
|
32
|
-
A(), K({
|
|
33
|
-
open: e,
|
|
34
|
-
ref: t.context.popupRef,
|
|
35
|
-
onComplete() {
|
|
36
|
-
e && t.context.onOpenChangeComplete?.(!0);
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
function E(o) {
|
|
40
|
-
return o === "touch" ? t.context.popupRef.current : !0;
|
|
41
|
-
}
|
|
42
|
-
const F = i === void 0 ? E : i, l = r > 0, I = c.useMemo(() => ({
|
|
43
|
-
open: e,
|
|
44
|
-
nested: p,
|
|
45
|
-
transitionStatus: u,
|
|
46
|
-
nestedDialogOpen: l
|
|
47
|
-
}), [e, p, u, l]), R = M("div", s, {
|
|
48
|
-
state: I,
|
|
49
|
-
props: [C, {
|
|
50
|
-
"aria-labelledby": O ?? void 0,
|
|
51
|
-
"aria-describedby": g ?? void 0,
|
|
52
|
-
role: b,
|
|
53
|
-
tabIndex: -1,
|
|
54
|
-
hidden: !a,
|
|
55
|
-
onKeyDown(o) {
|
|
56
|
-
T.has(o.key) && o.stopPropagation();
|
|
57
|
-
},
|
|
58
|
-
style: {
|
|
59
|
-
[v.nestedDialogs]: r
|
|
60
|
-
}
|
|
61
|
-
}, f],
|
|
62
|
-
ref: [d, t.context.popupRef, t.useStateSetter("popupElement")],
|
|
63
|
-
stateAttributesMapping: j
|
|
64
|
-
});
|
|
65
|
-
return /* @__PURE__ */ V(_, {
|
|
66
|
-
context: D,
|
|
67
|
-
openInteractionType: x,
|
|
68
|
-
disabled: !a,
|
|
69
|
-
closeOnFocusOut: !S,
|
|
70
|
-
initialFocus: F,
|
|
71
|
-
returnFocus: m,
|
|
72
|
-
modal: P !== !1,
|
|
73
|
-
restoreFocus: "popup",
|
|
74
|
-
children: R
|
|
75
|
-
});
|
|
76
|
-
});
|
|
77
|
-
process.env.NODE_ENV !== "production" && (k.displayName = "DialogPopup");
|
|
78
|
-
export {
|
|
79
|
-
k as DialogPopup
|
|
80
|
-
};
|
package/dist/index190.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
const e = "base-ui-disable-scrollbar", r = {
|
|
3
|
-
className: e,
|
|
4
|
-
element: /* @__PURE__ */ l("style", {
|
|
5
|
-
href: e,
|
|
6
|
-
precedence: "base-ui:low",
|
|
7
|
-
children: `.${e}{scrollbar-width:none}.${e}::-webkit-scrollbar{display:none}`
|
|
8
|
-
})
|
|
9
|
-
};
|
|
10
|
-
export {
|
|
11
|
-
r as styleDisableScrollbar
|
|
12
|
-
};
|
package/dist/index191.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import n from "./index100.js";
|
|
2
|
-
import * as t from "react";
|
|
3
|
-
const o = /* @__PURE__ */ t.createContext(void 0);
|
|
4
|
-
process.env.NODE_ENV !== "production" && (o.displayName = "SelectItemContext");
|
|
5
|
-
function s() {
|
|
6
|
-
const e = t.useContext(o);
|
|
7
|
-
if (!e)
|
|
8
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>." : n(57));
|
|
9
|
-
return e;
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
o as SelectItemContext,
|
|
13
|
-
s as useSelectItemContext
|
|
14
|
-
};
|
package/dist/index192.js
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import * as R from "react";
|
|
3
|
-
import { useTimeout as O } from "./index138.js";
|
|
4
|
-
import { useIsoLayoutEffect as X } from "./index97.js";
|
|
5
|
-
import { useSelectRootContext as Y } from "./index171.js";
|
|
6
|
-
import { useSelectPositionerContext as _ } from "./index186.js";
|
|
7
|
-
import { useTransitionStatus as j } from "./index117.js";
|
|
8
|
-
import { useOpenChangeComplete as q } from "./index118.js";
|
|
9
|
-
import { useRenderElement as z } from "./index87.js";
|
|
10
|
-
import { selectors as d } from "./index175.js";
|
|
11
|
-
import { useStore as H } from "./index182.js";
|
|
12
|
-
const F = /* @__PURE__ */ R.forwardRef(function(w, I) {
|
|
13
|
-
const {
|
|
14
|
-
render: J,
|
|
15
|
-
className: K,
|
|
16
|
-
direction: r,
|
|
17
|
-
keepMounted: v = !1,
|
|
18
|
-
...V
|
|
19
|
-
} = w, {
|
|
20
|
-
store: o,
|
|
21
|
-
popupRef: g,
|
|
22
|
-
listRef: a,
|
|
23
|
-
handleScrollArrowVisibility: C,
|
|
24
|
-
scrollArrowsMountedCountRef: c
|
|
25
|
-
} = Y(), {
|
|
26
|
-
side: S,
|
|
27
|
-
scrollDownArrowRef: E,
|
|
28
|
-
scrollUpArrowRef: N
|
|
29
|
-
} = _(), y = r === "up" ? d.scrollUpArrowVisible : d.scrollDownArrowVisible, B = H(o, y), D = H(o, d.openMethod), n = B && D !== "touch", f = O(), p = r === "up" ? N : E, {
|
|
30
|
-
transitionStatus: T,
|
|
31
|
-
setMounted: k
|
|
32
|
-
} = j(n);
|
|
33
|
-
X(() => (c.current += 1, o.state.hasScrollArrows || o.set("hasScrollArrows", !0), () => {
|
|
34
|
-
c.current = Math.max(0, c.current - 1), c.current === 0 && o.state.hasScrollArrows && o.set("hasScrollArrows", !1);
|
|
35
|
-
}), [o, c]), q({
|
|
36
|
-
open: n,
|
|
37
|
-
ref: p,
|
|
38
|
-
onComplete() {
|
|
39
|
-
n || k(!1);
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
const P = R.useMemo(() => ({
|
|
43
|
-
direction: r,
|
|
44
|
-
visible: n,
|
|
45
|
-
side: S,
|
|
46
|
-
transitionStatus: T
|
|
47
|
-
}), [r, n, S, T]), U = z("div", w, {
|
|
48
|
-
ref: [I, p],
|
|
49
|
-
state: P,
|
|
50
|
-
props: [{
|
|
51
|
-
"aria-hidden": !0,
|
|
52
|
-
children: r === "up" ? "▲" : "▼",
|
|
53
|
-
style: {
|
|
54
|
-
position: "absolute"
|
|
55
|
-
},
|
|
56
|
-
onMouseMove(A) {
|
|
57
|
-
if (A.movementX === 0 && A.movementY === 0 || f.isStarted())
|
|
58
|
-
return;
|
|
59
|
-
o.set("activeIndex", null);
|
|
60
|
-
function M() {
|
|
61
|
-
const t = o.state.listElement ?? g.current;
|
|
62
|
-
if (!t)
|
|
63
|
-
return;
|
|
64
|
-
o.set("activeIndex", null), C();
|
|
65
|
-
const x = t.scrollTop === 0, b = Math.round(t.scrollTop + t.clientHeight) >= t.scrollHeight;
|
|
66
|
-
if (a.current.length === 0 && (r === "up" ? o.set("scrollUpArrowVisible", !x) : o.set("scrollDownArrowVisible", !b)), r === "up" && x || r === "down" && b) {
|
|
67
|
-
f.clear();
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
if ((o.state.listElement || g.current) && a.current && a.current.length > 0) {
|
|
71
|
-
const s = a.current, m = p.current?.offsetHeight || 0;
|
|
72
|
-
if (r === "up") {
|
|
73
|
-
let l = 0;
|
|
74
|
-
const h = t.scrollTop + m;
|
|
75
|
-
for (let e = 0; e < s.length; e += 1) {
|
|
76
|
-
const i = s[e];
|
|
77
|
-
if (i && i.offsetTop >= h) {
|
|
78
|
-
l = e;
|
|
79
|
-
break;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
const u = Math.max(0, l - 1);
|
|
83
|
-
if (u < l) {
|
|
84
|
-
const e = s[u];
|
|
85
|
-
e && (t.scrollTop = Math.max(0, e.offsetTop - m));
|
|
86
|
-
} else
|
|
87
|
-
t.scrollTop = 0;
|
|
88
|
-
} else {
|
|
89
|
-
let l = s.length - 1;
|
|
90
|
-
const h = t.scrollTop + t.clientHeight - m;
|
|
91
|
-
for (let e = 0; e < s.length; e += 1) {
|
|
92
|
-
const i = s[e];
|
|
93
|
-
if (i && i.offsetTop + i.offsetHeight > h) {
|
|
94
|
-
l = Math.max(0, e - 1);
|
|
95
|
-
break;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
const u = Math.min(s.length - 1, l + 1);
|
|
99
|
-
if (u > l) {
|
|
100
|
-
const e = s[u];
|
|
101
|
-
e && (t.scrollTop = e.offsetTop + e.offsetHeight - t.clientHeight + m);
|
|
102
|
-
} else
|
|
103
|
-
t.scrollTop = t.scrollHeight - t.clientHeight;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
f.start(40, M);
|
|
107
|
-
}
|
|
108
|
-
f.start(40, M);
|
|
109
|
-
},
|
|
110
|
-
onMouseLeave() {
|
|
111
|
-
f.clear();
|
|
112
|
-
}
|
|
113
|
-
}, V]
|
|
114
|
-
});
|
|
115
|
-
return n || v ? U : null;
|
|
116
|
-
});
|
|
117
|
-
process.env.NODE_ENV !== "production" && (F.displayName = "SelectScrollArrow");
|
|
118
|
-
export {
|
|
119
|
-
F as SelectScrollArrow
|
|
120
|
-
};
|
package/dist/index193.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import r from "./index100.js";
|
|
2
|
-
import * as t from "react";
|
|
3
|
-
const o = /* @__PURE__ */ t.createContext(void 0);
|
|
4
|
-
process.env.NODE_ENV !== "production" && (o.displayName = "SelectGroupContext");
|
|
5
|
-
function s() {
|
|
6
|
-
const e = t.useContext(o);
|
|
7
|
-
if (e === void 0)
|
|
8
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>." : r(56));
|
|
9
|
-
return e;
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
o as SelectGroupContext,
|
|
13
|
-
s as useSelectGroupContext
|
|
14
|
-
};
|
package/dist/index194.js
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import * as s from "react";
|
|
3
|
-
import { useStableCallback as y } from "./index95.js";
|
|
4
|
-
import { useScrollLock as I } from "./index141.js";
|
|
5
|
-
import { useOpenInteractionType as A } from "./index144.js";
|
|
6
|
-
import { createChangeEventDetails as M } from "./index115.js";
|
|
7
|
-
import { useImplicitActiveTrigger as B, useOpenStateTransitions as F } from "./index153.js";
|
|
8
|
-
import { useSyncedFloatingRootContext as U } from "./index147.js";
|
|
9
|
-
import { useRole as w } from "./index149.js";
|
|
10
|
-
import { useDismiss as H } from "./index148.js";
|
|
11
|
-
import { useInteractions as K } from "./index152.js";
|
|
12
|
-
import { imperativeAction as L } from "./index116.js";
|
|
13
|
-
import { getTarget as V, contains as j } from "./index166.js";
|
|
14
|
-
function ee(R) {
|
|
15
|
-
const {
|
|
16
|
-
store: e,
|
|
17
|
-
parentContext: o,
|
|
18
|
-
actionsRef: x
|
|
19
|
-
} = R, n = e.useState("open"), P = e.useState("disablePointerDismissal"), c = e.useState("modal"), l = e.useState("popupElement"), {
|
|
20
|
-
openMethod: k,
|
|
21
|
-
triggerProps: r,
|
|
22
|
-
reset: S
|
|
23
|
-
} = A(n);
|
|
24
|
-
B(e);
|
|
25
|
-
const {
|
|
26
|
-
forceUnmount: m
|
|
27
|
-
} = F(n, e, () => {
|
|
28
|
-
S();
|
|
29
|
-
}), f = y((t) => {
|
|
30
|
-
const a = M(t);
|
|
31
|
-
return a.preventUnmountOnClose = () => {
|
|
32
|
-
e.set("preventUnmountingOnClose", !0);
|
|
33
|
-
}, a;
|
|
34
|
-
}), g = s.useCallback(() => {
|
|
35
|
-
e.setOpen(!1, f(L));
|
|
36
|
-
}, [e, f]);
|
|
37
|
-
s.useImperativeHandle(x, () => ({
|
|
38
|
-
unmount: m,
|
|
39
|
-
close: g
|
|
40
|
-
}), [m, g]);
|
|
41
|
-
const u = U({
|
|
42
|
-
popupStore: e,
|
|
43
|
-
onOpenChange: e.setOpen,
|
|
44
|
-
treatPopupAsFloatingElement: !0,
|
|
45
|
-
noEmit: !0
|
|
46
|
-
}), [i, d] = s.useState(0), C = i === 0, N = w(u), T = H(u, {
|
|
47
|
-
outsidePressEvent() {
|
|
48
|
-
return e.context.internalBackdropRef.current || e.context.backdropRef.current ? "intentional" : {
|
|
49
|
-
mouse: c === "trap-focus" ? "sloppy" : "intentional",
|
|
50
|
-
touch: "sloppy"
|
|
51
|
-
};
|
|
52
|
-
},
|
|
53
|
-
outsidePress(t) {
|
|
54
|
-
if ("button" in t && t.button !== 0 || "touches" in t && t.touches.length !== 1)
|
|
55
|
-
return !1;
|
|
56
|
-
const a = V(t);
|
|
57
|
-
if (C && !P) {
|
|
58
|
-
const p = a;
|
|
59
|
-
return c && (e.context.internalBackdropRef.current || e.context.backdropRef.current) ? e.context.internalBackdropRef.current === p || e.context.backdropRef.current === p || j(p, l) && !p?.hasAttribute("data-base-ui-portal") : !0;
|
|
60
|
-
}
|
|
61
|
-
return !1;
|
|
62
|
-
},
|
|
63
|
-
escapeKey: C
|
|
64
|
-
});
|
|
65
|
-
I(n && c === !0, l);
|
|
66
|
-
const {
|
|
67
|
-
getReferenceProps: D,
|
|
68
|
-
getFloatingProps: O,
|
|
69
|
-
getTriggerProps: b
|
|
70
|
-
} = K([N, T]);
|
|
71
|
-
e.useContextCallback("onNestedDialogOpen", (t) => {
|
|
72
|
-
d(t + 1);
|
|
73
|
-
}), e.useContextCallback("onNestedDialogClose", () => {
|
|
74
|
-
d(0);
|
|
75
|
-
}), s.useEffect(() => (o?.onNestedDialogOpen && n && o.onNestedDialogOpen(i), o?.onNestedDialogClose && !n && o.onNestedDialogClose(), () => {
|
|
76
|
-
o?.onNestedDialogClose && n && o.onNestedDialogClose();
|
|
77
|
-
}), [n, o, i]);
|
|
78
|
-
const h = s.useMemo(() => D(r), [D, r]), v = s.useMemo(() => b(r), [b, r]), E = s.useMemo(() => O(), [O]);
|
|
79
|
-
e.useSyncedValues({
|
|
80
|
-
openMethod: k,
|
|
81
|
-
activeTriggerProps: h,
|
|
82
|
-
inactiveTriggerProps: v,
|
|
83
|
-
popupProps: E,
|
|
84
|
-
floatingRootContext: u,
|
|
85
|
-
nestedOpenDialogCount: i
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
export {
|
|
89
|
-
ee as useDialogRoot
|
|
90
|
-
};
|
package/dist/index195.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import i from "./index100.js";
|
|
3
|
-
import * as t from "react";
|
|
4
|
-
const e = /* @__PURE__ */ t.createContext(void 0);
|
|
5
|
-
process.env.NODE_ENV !== "production" && (e.displayName = "DialogRootContext");
|
|
6
|
-
function s(n) {
|
|
7
|
-
const o = t.useContext(e);
|
|
8
|
-
if (n === !1 && o === void 0)
|
|
9
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>." : i(27));
|
|
10
|
-
return o;
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
e as DialogRootContext,
|
|
14
|
-
s as useDialogRootContext
|
|
15
|
-
};
|