@ariakit/core 0.4.12 → 0.4.14
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/CHANGELOG.md +15 -0
- package/cjs/__chunks/{WCFMOJKV.cjs → 726BNPQZ.cjs} +36 -2
- package/cjs/__chunks/{BSLRW6E7.cjs → ASR6PAFN.cjs} +1 -1
- package/cjs/__chunks/{G2NIRMCL.cjs → BUEPUCQL.cjs} +14 -42
- package/cjs/__chunks/{C5P5S22J.cjs → BVPEDDW6.cjs} +7 -7
- package/cjs/__chunks/{A47DWKLR.cjs → K7YTZVWC.cjs} +11 -6
- package/cjs/__chunks/{LSC6QXJ7.cjs → RL7DKHOF.cjs} +4 -4
- package/cjs/__chunks/{FGGZELG7.cjs → TFI7KVZO.cjs} +4 -4
- package/cjs/__chunks/{G2MFLTB2.cjs → V4YF2QA6.cjs} +11 -11
- package/cjs/__chunks/{TEPPO3KC.cjs → WOLZY4WC.cjs} +6 -6
- package/cjs/__chunks/{I2G6EN27.cjs → YMCSKJHR.cjs} +2 -2
- package/cjs/checkbox/checkbox-store.cjs +3 -3
- package/cjs/collection/collection-store.cjs +4 -4
- package/cjs/combobox/combobox-store.cjs +27 -27
- package/cjs/composite/composite-overflow-store.cjs +5 -5
- package/cjs/composite/composite-store.cjs +5 -5
- package/cjs/composite/composite-store.d.cts +7 -1
- package/cjs/composite/composite-store.d.ts +7 -1
- package/cjs/dialog/dialog-store.cjs +4 -4
- package/cjs/disclosure/disclosure-store.cjs +3 -3
- package/cjs/form/form-store.cjs +8 -8
- package/cjs/form/form-store.d.cts +2 -2
- package/cjs/form/form-store.d.ts +2 -2
- package/cjs/hovercard/hovercard-store.cjs +6 -6
- package/cjs/menu/menu-bar-store.cjs +6 -6
- package/cjs/menu/menu-store.cjs +19 -19
- package/cjs/menubar/menubar-store.cjs +6 -6
- package/cjs/popover/popover-store.cjs +5 -5
- package/cjs/radio/radio-store.cjs +6 -6
- package/cjs/select/select-store.cjs +21 -21
- package/cjs/tab/tab-store.cjs +24 -24
- package/cjs/tag/tag-store.cjs +8 -8
- package/cjs/toolbar/toolbar-store.cjs +5 -5
- package/cjs/tooltip/tooltip-store.cjs +7 -7
- package/cjs/utils/dom.cjs +4 -2
- package/cjs/utils/dom.d.cts +6 -2
- package/cjs/utils/dom.d.ts +6 -2
- package/cjs/utils/events.cjs +5 -5
- package/cjs/utils/focus.cjs +10 -10
- package/cjs/utils/platform.cjs +3 -3
- package/cjs/utils/store.cjs +2 -2
- package/esm/__chunks/{S22RJCNX.js → 7HRRFUKQ.js} +2 -2
- package/esm/__chunks/{IJ6VFLJG.js → AJZ4BYF3.js} +7 -2
- package/esm/__chunks/{EQQLU3CG.js → BCALMBPZ.js} +1 -1
- package/esm/__chunks/{7DTP4AQO.js → CYQWQL4J.js} +6 -34
- package/esm/__chunks/{PQP5VPTV.js → DTR5TSDJ.js} +36 -2
- package/esm/__chunks/{YOHCVXJB.js → FZZ2AVHF.js} +1 -1
- package/esm/__chunks/{EACLTACN.js → JTLIIJ4U.js} +2 -2
- package/esm/__chunks/{3UYWTADI.js → ME2CUF3F.js} +2 -2
- package/esm/__chunks/{3VBK76MS.js → QAGXQEUG.js} +1 -1
- package/esm/__chunks/{6E4KKOSB.js → RCQ5P4YE.js} +1 -1
- package/esm/checkbox/checkbox-store.js +1 -1
- package/esm/collection/collection-store.js +3 -3
- package/esm/combobox/combobox-store.js +8 -8
- package/esm/composite/composite-overflow-store.js +4 -4
- package/esm/composite/composite-store.d.ts +7 -1
- package/esm/composite/composite-store.js +4 -4
- package/esm/dialog/dialog-store.js +3 -3
- package/esm/disclosure/disclosure-store.js +2 -2
- package/esm/form/form-store.d.ts +2 -2
- package/esm/form/form-store.js +3 -3
- package/esm/hovercard/hovercard-store.js +5 -5
- package/esm/menu/menu-bar-store.js +5 -5
- package/esm/menu/menu-store.js +8 -8
- package/esm/menubar/menubar-store.js +5 -5
- package/esm/popover/popover-store.js +4 -4
- package/esm/radio/radio-store.js +4 -4
- package/esm/select/select-store.js +7 -7
- package/esm/tab/tab-store.js +4 -4
- package/esm/tag/tag-store.js +4 -4
- package/esm/toolbar/toolbar-store.js +4 -4
- package/esm/tooltip/tooltip-store.js +5 -5
- package/esm/utils/dom.d.ts +6 -2
- package/esm/utils/dom.js +5 -3
- package/esm/utils/events.js +2 -2
- package/esm/utils/focus.js +1 -1
- package/esm/utils/platform.js +2 -2
- package/esm/utils/store.js +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createDialogStore
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./FZZ2AVHF.js";
|
|
5
5
|
import {
|
|
6
6
|
createStore,
|
|
7
7
|
mergeStore,
|
|
8
8
|
omit,
|
|
9
9
|
throwOnConflictingProps
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./BCALMBPZ.js";
|
|
11
11
|
import {
|
|
12
12
|
defaultValue
|
|
13
13
|
} from "./PBFD2E7P.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCollectionStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/CYQWQL4J.js";
|
|
5
|
+
import "../__chunks/BCALMBPZ.js";
|
|
6
6
|
import "../__chunks/PBFD2E7P.js";
|
|
7
|
-
import "../__chunks/
|
|
7
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
8
8
|
import "../__chunks/3YLGPPWQ.js";
|
|
9
9
|
export {
|
|
10
10
|
createCollectionStore
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCompositeStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/AJZ4BYF3.js";
|
|
5
|
+
import "../__chunks/CYQWQL4J.js";
|
|
6
6
|
import "../__chunks/7PRQYBBV.js";
|
|
7
7
|
import {
|
|
8
8
|
createPopoverStore
|
|
9
|
-
} from "../__chunks/
|
|
10
|
-
import "../__chunks/
|
|
11
|
-
import "../__chunks/
|
|
9
|
+
} from "../__chunks/ME2CUF3F.js";
|
|
10
|
+
import "../__chunks/FZZ2AVHF.js";
|
|
11
|
+
import "../__chunks/RCQ5P4YE.js";
|
|
12
12
|
import {
|
|
13
13
|
batch,
|
|
14
14
|
createStore,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
setup,
|
|
18
18
|
sync,
|
|
19
19
|
throwOnConflictingProps
|
|
20
|
-
} from "../__chunks/
|
|
20
|
+
} from "../__chunks/BCALMBPZ.js";
|
|
21
21
|
import {
|
|
22
22
|
chain,
|
|
23
23
|
defaultValue
|
|
@@ -25,8 +25,8 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
isSafari,
|
|
27
27
|
isTouchDevice
|
|
28
|
-
} from "../__chunks/
|
|
29
|
-
import "../__chunks/
|
|
28
|
+
} from "../__chunks/QAGXQEUG.js";
|
|
29
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
30
30
|
import {
|
|
31
31
|
__objRest,
|
|
32
32
|
__spreadProps,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createPopoverStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
7
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/ME2CUF3F.js";
|
|
5
|
+
import "../__chunks/FZZ2AVHF.js";
|
|
6
|
+
import "../__chunks/RCQ5P4YE.js";
|
|
7
|
+
import "../__chunks/BCALMBPZ.js";
|
|
8
8
|
import "../__chunks/PBFD2E7P.js";
|
|
9
9
|
import "../__chunks/3YLGPPWQ.js";
|
|
10
10
|
|
|
@@ -31,6 +31,12 @@ export interface CompositeStoreItem extends CollectionStoreItem {
|
|
|
31
31
|
children?: string;
|
|
32
32
|
}
|
|
33
33
|
export interface CompositeStoreState<T extends CompositeStoreItem = CompositeStoreItem> extends CollectionStoreState<T> {
|
|
34
|
+
/**
|
|
35
|
+
* The ID of the composite store is used to reference elements within the
|
|
36
|
+
* composite widget before hydration. If not provided, a random ID will be
|
|
37
|
+
* generated.
|
|
38
|
+
*/
|
|
39
|
+
id: string;
|
|
34
40
|
/**
|
|
35
41
|
* The composite element itself. Typically, it's the wrapper element that
|
|
36
42
|
* contains composite items. However, in a combobox, it's the input element.
|
|
@@ -289,7 +295,7 @@ export interface CompositeStoreFunctions<T extends CompositeStoreItem = Composit
|
|
|
289
295
|
*/
|
|
290
296
|
last: () => string | null | undefined;
|
|
291
297
|
}
|
|
292
|
-
export interface CompositeStoreOptions<T extends CompositeStoreItem = CompositeStoreItem> extends CollectionStoreOptions<T>, StoreOptions<CompositeStoreState<T>, "virtualFocus" | "orientation" | "rtl" | "focusLoop" | "focusWrap" | "focusShift" | "includesBaseElement" | "activeId"> {
|
|
298
|
+
export interface CompositeStoreOptions<T extends CompositeStoreItem = CompositeStoreItem> extends CollectionStoreOptions<T>, StoreOptions<CompositeStoreState<T>, "id" | "virtualFocus" | "orientation" | "rtl" | "focusLoop" | "focusWrap" | "focusShift" | "includesBaseElement" | "activeId"> {
|
|
293
299
|
/**
|
|
294
300
|
* The composite item id that should be active by default when the composite
|
|
295
301
|
* widget is rendered. If `null`, the composite element itself will have focus
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCompositeStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/AJZ4BYF3.js";
|
|
5
|
+
import "../__chunks/CYQWQL4J.js";
|
|
6
6
|
import "../__chunks/7PRQYBBV.js";
|
|
7
|
-
import "../__chunks/
|
|
7
|
+
import "../__chunks/BCALMBPZ.js";
|
|
8
8
|
import "../__chunks/PBFD2E7P.js";
|
|
9
|
-
import "../__chunks/
|
|
9
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
10
10
|
import "../__chunks/3YLGPPWQ.js";
|
|
11
11
|
export {
|
|
12
12
|
createCompositeStore
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createDialogStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/FZZ2AVHF.js";
|
|
5
|
+
import "../__chunks/RCQ5P4YE.js";
|
|
6
|
+
import "../__chunks/BCALMBPZ.js";
|
|
7
7
|
import "../__chunks/PBFD2E7P.js";
|
|
8
8
|
import "../__chunks/3YLGPPWQ.js";
|
|
9
9
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createDisclosureStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/RCQ5P4YE.js";
|
|
5
|
+
import "../__chunks/BCALMBPZ.js";
|
|
6
6
|
import "../__chunks/PBFD2E7P.js";
|
|
7
7
|
import "../__chunks/3YLGPPWQ.js";
|
|
8
8
|
export {
|
package/esm/form/form-store.d.ts
CHANGED
|
@@ -186,7 +186,7 @@ export interface FormStoreFunctions<T extends FormStoreValues = FormStoreValues>
|
|
|
186
186
|
* }
|
|
187
187
|
* });
|
|
188
188
|
*/
|
|
189
|
-
onValidate: (callback: FormStoreCallback<FormStoreState<T>>) => void;
|
|
189
|
+
onValidate: (callback: FormStoreCallback<FormStoreState<T>>) => () => void;
|
|
190
190
|
/**
|
|
191
191
|
* Function that accepts a callback that will be used to submit the form when
|
|
192
192
|
* [`submit`](https://ariakit.org/reference/use-form-store#submit) is called.
|
|
@@ -201,7 +201,7 @@ export interface FormStoreFunctions<T extends FormStoreValues = FormStoreValues>
|
|
|
201
201
|
* }
|
|
202
202
|
* });
|
|
203
203
|
*/
|
|
204
|
-
onSubmit: (callback: FormStoreCallback<FormStoreState<T>>) => void;
|
|
204
|
+
onSubmit: (callback: FormStoreCallback<FormStoreState<T>>) => () => void;
|
|
205
205
|
/**
|
|
206
206
|
* Validates the form.
|
|
207
207
|
* @example
|
package/esm/form/form-store.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCollectionStore
|
|
4
|
-
} from "../__chunks/
|
|
4
|
+
} from "../__chunks/CYQWQL4J.js";
|
|
5
5
|
import {
|
|
6
6
|
createStore,
|
|
7
7
|
init,
|
|
8
8
|
setup,
|
|
9
9
|
throwOnConflictingProps
|
|
10
|
-
} from "../__chunks/
|
|
10
|
+
} from "../__chunks/BCALMBPZ.js";
|
|
11
11
|
import {
|
|
12
12
|
applyState,
|
|
13
13
|
defaultValue,
|
|
14
14
|
isInteger,
|
|
15
15
|
isObject
|
|
16
16
|
} from "../__chunks/PBFD2E7P.js";
|
|
17
|
-
import "../__chunks/
|
|
17
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
18
18
|
import {
|
|
19
19
|
__spreadProps,
|
|
20
20
|
__spreadValues
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createHovercardStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
7
|
-
import "../__chunks/
|
|
8
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/JTLIIJ4U.js";
|
|
5
|
+
import "../__chunks/ME2CUF3F.js";
|
|
6
|
+
import "../__chunks/FZZ2AVHF.js";
|
|
7
|
+
import "../__chunks/RCQ5P4YE.js";
|
|
8
|
+
import "../__chunks/BCALMBPZ.js";
|
|
9
9
|
import "../__chunks/PBFD2E7P.js";
|
|
10
10
|
import "../__chunks/3YLGPPWQ.js";
|
|
11
11
|
export {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createMenubarStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/7HRRFUKQ.js";
|
|
5
|
+
import "../__chunks/AJZ4BYF3.js";
|
|
6
|
+
import "../__chunks/CYQWQL4J.js";
|
|
7
7
|
import "../__chunks/7PRQYBBV.js";
|
|
8
|
-
import "../__chunks/
|
|
8
|
+
import "../__chunks/BCALMBPZ.js";
|
|
9
9
|
import "../__chunks/PBFD2E7P.js";
|
|
10
|
-
import "../__chunks/
|
|
10
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
11
11
|
import "../__chunks/3YLGPPWQ.js";
|
|
12
12
|
|
|
13
13
|
// src/menu/menu-bar-store.ts
|
package/esm/menu/menu-store.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createHovercardStore
|
|
4
|
-
} from "../__chunks/
|
|
4
|
+
} from "../__chunks/JTLIIJ4U.js";
|
|
5
5
|
import {
|
|
6
6
|
createCompositeStore
|
|
7
|
-
} from "../__chunks/
|
|
8
|
-
import "../__chunks/
|
|
7
|
+
} from "../__chunks/AJZ4BYF3.js";
|
|
8
|
+
import "../__chunks/CYQWQL4J.js";
|
|
9
9
|
import "../__chunks/7PRQYBBV.js";
|
|
10
|
-
import "../__chunks/
|
|
11
|
-
import "../__chunks/
|
|
12
|
-
import "../__chunks/
|
|
10
|
+
import "../__chunks/ME2CUF3F.js";
|
|
11
|
+
import "../__chunks/FZZ2AVHF.js";
|
|
12
|
+
import "../__chunks/RCQ5P4YE.js";
|
|
13
13
|
import {
|
|
14
14
|
createStore,
|
|
15
15
|
mergeStore,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
setup,
|
|
19
19
|
sync,
|
|
20
20
|
throwOnConflictingProps
|
|
21
|
-
} from "../__chunks/
|
|
21
|
+
} from "../__chunks/BCALMBPZ.js";
|
|
22
22
|
import {
|
|
23
23
|
applyState,
|
|
24
24
|
defaultValue
|
|
25
25
|
} from "../__chunks/PBFD2E7P.js";
|
|
26
|
-
import "../__chunks/
|
|
26
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
27
27
|
import {
|
|
28
28
|
__objRest,
|
|
29
29
|
__spreadProps,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createMenubarStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/7HRRFUKQ.js";
|
|
5
|
+
import "../__chunks/AJZ4BYF3.js";
|
|
6
|
+
import "../__chunks/CYQWQL4J.js";
|
|
7
7
|
import "../__chunks/7PRQYBBV.js";
|
|
8
|
-
import "../__chunks/
|
|
8
|
+
import "../__chunks/BCALMBPZ.js";
|
|
9
9
|
import "../__chunks/PBFD2E7P.js";
|
|
10
|
-
import "../__chunks/
|
|
10
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
11
11
|
import "../__chunks/3YLGPPWQ.js";
|
|
12
12
|
export {
|
|
13
13
|
createMenubarStore
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createPopoverStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
7
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/ME2CUF3F.js";
|
|
5
|
+
import "../__chunks/FZZ2AVHF.js";
|
|
6
|
+
import "../__chunks/RCQ5P4YE.js";
|
|
7
|
+
import "../__chunks/BCALMBPZ.js";
|
|
8
8
|
import "../__chunks/PBFD2E7P.js";
|
|
9
9
|
import "../__chunks/3YLGPPWQ.js";
|
|
10
10
|
export {
|
package/esm/radio/radio-store.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCompositeStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/AJZ4BYF3.js";
|
|
5
|
+
import "../__chunks/CYQWQL4J.js";
|
|
6
6
|
import "../__chunks/7PRQYBBV.js";
|
|
7
7
|
import {
|
|
8
8
|
createStore
|
|
9
|
-
} from "../__chunks/
|
|
9
|
+
} from "../__chunks/BCALMBPZ.js";
|
|
10
10
|
import {
|
|
11
11
|
defaultValue
|
|
12
12
|
} from "../__chunks/PBFD2E7P.js";
|
|
13
|
-
import "../__chunks/
|
|
13
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
14
14
|
import {
|
|
15
15
|
__objRest,
|
|
16
16
|
__spreadProps,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCompositeStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/AJZ4BYF3.js";
|
|
5
|
+
import "../__chunks/CYQWQL4J.js";
|
|
6
6
|
import {
|
|
7
7
|
toArray
|
|
8
8
|
} from "../__chunks/7PRQYBBV.js";
|
|
9
9
|
import {
|
|
10
10
|
createPopoverStore
|
|
11
|
-
} from "../__chunks/
|
|
12
|
-
import "../__chunks/
|
|
13
|
-
import "../__chunks/
|
|
11
|
+
} from "../__chunks/ME2CUF3F.js";
|
|
12
|
+
import "../__chunks/FZZ2AVHF.js";
|
|
13
|
+
import "../__chunks/RCQ5P4YE.js";
|
|
14
14
|
import {
|
|
15
15
|
batch,
|
|
16
16
|
createStore,
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
setup,
|
|
20
20
|
sync,
|
|
21
21
|
throwOnConflictingProps
|
|
22
|
-
} from "../__chunks/
|
|
22
|
+
} from "../__chunks/BCALMBPZ.js";
|
|
23
23
|
import {
|
|
24
24
|
defaultValue
|
|
25
25
|
} from "../__chunks/PBFD2E7P.js";
|
|
26
|
-
import "../__chunks/
|
|
26
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
27
27
|
import {
|
|
28
28
|
__objRest,
|
|
29
29
|
__spreadProps,
|
package/esm/tab/tab-store.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCompositeStore
|
|
4
|
-
} from "../__chunks/
|
|
4
|
+
} from "../__chunks/AJZ4BYF3.js";
|
|
5
5
|
import {
|
|
6
6
|
createCollectionStore
|
|
7
|
-
} from "../__chunks/
|
|
7
|
+
} from "../__chunks/CYQWQL4J.js";
|
|
8
8
|
import "../__chunks/7PRQYBBV.js";
|
|
9
9
|
import {
|
|
10
10
|
batch,
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
omit,
|
|
14
14
|
setup,
|
|
15
15
|
sync
|
|
16
|
-
} from "../__chunks/
|
|
16
|
+
} from "../__chunks/BCALMBPZ.js";
|
|
17
17
|
import {
|
|
18
18
|
chain,
|
|
19
19
|
defaultValue
|
|
20
20
|
} from "../__chunks/PBFD2E7P.js";
|
|
21
|
-
import "../__chunks/
|
|
21
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
22
22
|
import {
|
|
23
23
|
__objRest,
|
|
24
24
|
__spreadProps,
|
package/esm/tag/tag-store.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCompositeStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/AJZ4BYF3.js";
|
|
5
|
+
import "../__chunks/CYQWQL4J.js";
|
|
6
6
|
import "../__chunks/7PRQYBBV.js";
|
|
7
7
|
import {
|
|
8
8
|
UndoManager
|
|
@@ -11,12 +11,12 @@ import {
|
|
|
11
11
|
createStore,
|
|
12
12
|
setup,
|
|
13
13
|
sync
|
|
14
|
-
} from "../__chunks/
|
|
14
|
+
} from "../__chunks/BCALMBPZ.js";
|
|
15
15
|
import {
|
|
16
16
|
applyState,
|
|
17
17
|
defaultValue
|
|
18
18
|
} from "../__chunks/PBFD2E7P.js";
|
|
19
|
-
import "../__chunks/
|
|
19
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
20
20
|
import {
|
|
21
21
|
__spreadProps,
|
|
22
22
|
__spreadValues
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCompositeStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/AJZ4BYF3.js";
|
|
5
|
+
import "../__chunks/CYQWQL4J.js";
|
|
6
6
|
import "../__chunks/7PRQYBBV.js";
|
|
7
|
-
import "../__chunks/
|
|
7
|
+
import "../__chunks/BCALMBPZ.js";
|
|
8
8
|
import {
|
|
9
9
|
defaultValue
|
|
10
10
|
} from "../__chunks/PBFD2E7P.js";
|
|
11
|
-
import "../__chunks/
|
|
11
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
12
12
|
import {
|
|
13
13
|
__spreadProps,
|
|
14
14
|
__spreadValues
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createHovercardStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
7
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/JTLIIJ4U.js";
|
|
5
|
+
import "../__chunks/ME2CUF3F.js";
|
|
6
|
+
import "../__chunks/FZZ2AVHF.js";
|
|
7
|
+
import "../__chunks/RCQ5P4YE.js";
|
|
8
8
|
import {
|
|
9
9
|
createStore
|
|
10
|
-
} from "../__chunks/
|
|
10
|
+
} from "../__chunks/BCALMBPZ.js";
|
|
11
11
|
import {
|
|
12
12
|
defaultValue
|
|
13
13
|
} from "../__chunks/PBFD2E7P.js";
|
package/esm/utils/dom.d.ts
CHANGED
|
@@ -9,11 +9,11 @@ export declare const canUseDOM: boolean;
|
|
|
9
9
|
/**
|
|
10
10
|
* Returns `element.ownerDocument || document`.
|
|
11
11
|
*/
|
|
12
|
-
export declare function getDocument(node?: Node | null): Document;
|
|
12
|
+
export declare function getDocument(node?: Window | Document | Node | null): Document;
|
|
13
13
|
/**
|
|
14
14
|
* Returns `element.ownerDocument.defaultView || window`.
|
|
15
15
|
*/
|
|
16
|
-
export declare function getWindow(node?: Node | null): Window;
|
|
16
|
+
export declare function getWindow(node?: Window | Document | Node | null): Window;
|
|
17
17
|
/**
|
|
18
18
|
* Returns `element.ownerDocument.activeElement`.
|
|
19
19
|
*/
|
|
@@ -106,3 +106,7 @@ export declare function isPartiallyHidden(element: Element): boolean;
|
|
|
106
106
|
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange
|
|
107
107
|
*/
|
|
108
108
|
export declare function setSelectionRange(element: HTMLInputElement | HTMLTextAreaElement, ...args: Parameters<typeof HTMLInputElement.prototype.setSelectionRange>): void;
|
|
109
|
+
/**
|
|
110
|
+
* Sort the items based on their DOM position.
|
|
111
|
+
*/
|
|
112
|
+
export declare function sortBasedOnDOMPosition<T>(items: T[], getElement: (item: T) => Element | null | undefined): T[];
|
package/esm/utils/dom.js
CHANGED
|
@@ -17,8 +17,9 @@ import {
|
|
|
17
17
|
isTextbox,
|
|
18
18
|
isVisible,
|
|
19
19
|
scrollIntoViewIfNeeded,
|
|
20
|
-
setSelectionRange
|
|
21
|
-
|
|
20
|
+
setSelectionRange,
|
|
21
|
+
sortBasedOnDOMPosition
|
|
22
|
+
} from "../__chunks/DTR5TSDJ.js";
|
|
22
23
|
import "../__chunks/3YLGPPWQ.js";
|
|
23
24
|
export {
|
|
24
25
|
canUseDOM,
|
|
@@ -38,5 +39,6 @@ export {
|
|
|
38
39
|
isTextbox,
|
|
39
40
|
isVisible,
|
|
40
41
|
scrollIntoViewIfNeeded,
|
|
41
|
-
setSelectionRange
|
|
42
|
+
setSelectionRange,
|
|
43
|
+
sortBasedOnDOMPosition
|
|
42
44
|
};
|
package/esm/utils/events.js
CHANGED
package/esm/utils/focus.js
CHANGED
package/esm/utils/platform.js
CHANGED
package/esm/utils/store.js
CHANGED