@ariakit/core 0.3.7 → 0.3.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/CHANGELOG.md +11 -0
- package/cjs/__chunks/{GZDVJEID.cjs → 2LS4JJ4S.cjs} +2 -2
- package/cjs/__chunks/{46BH65MC.cjs → 2UK5WUJX.cjs} +15 -7
- package/cjs/__chunks/{PD7XZBXC.cjs → 5SIVMOID.cjs} +4 -4
- package/cjs/__chunks/{7ZUFMSXJ.cjs → EFIT5L4X.cjs} +7 -7
- package/cjs/__chunks/{MEHGRTJ3.cjs → GJFZ5ZPP.cjs} +11 -11
- package/cjs/__chunks/{6WBY3ZZM.cjs → JNFZSNOI.cjs} +6 -6
- package/cjs/__chunks/{JLC5A6WF.cjs → UCLKUBNP.cjs} +35 -25
- package/cjs/__chunks/{GXIZMD53.cjs → UTICNXST.cjs} +4 -4
- package/cjs/checkbox/checkbox-store.cjs +3 -3
- package/cjs/checkbox/checkbox-store.d.cts +9 -9
- package/cjs/checkbox/checkbox-store.d.ts +9 -9
- package/cjs/collection/collection-store.cjs +3 -3
- package/cjs/collection/collection-store.d.cts +16 -12
- package/cjs/collection/collection-store.d.ts +16 -12
- package/cjs/combobox/combobox-store.cjs +20 -20
- package/cjs/combobox/combobox-store.d.cts +14 -14
- package/cjs/combobox/combobox-store.d.ts +14 -14
- package/cjs/composite/composite-overflow-store.cjs +5 -5
- package/cjs/composite/composite-overflow-store.d.cts +13 -7
- package/cjs/composite/composite-overflow-store.d.ts +13 -7
- package/cjs/composite/composite-store.cjs +4 -4
- package/cjs/composite/composite-store.d.cts +31 -14
- package/cjs/composite/composite-store.d.ts +31 -14
- package/cjs/dialog/dialog-store.cjs +4 -4
- package/cjs/dialog/dialog-store.d.cts +12 -6
- package/cjs/dialog/dialog-store.d.ts +12 -6
- package/cjs/disclosure/disclosure-store.cjs +3 -3
- package/cjs/disclosure/disclosure-store.d.cts +4 -2
- package/cjs/disclosure/disclosure-store.d.ts +4 -2
- package/cjs/form/form-store.cjs +7 -7
- package/cjs/form/form-store.d.cts +15 -15
- package/cjs/form/form-store.d.ts +15 -15
- package/cjs/hovercard/hovercard-store.cjs +6 -6
- package/cjs/hovercard/hovercard-store.d.cts +11 -5
- package/cjs/hovercard/hovercard-store.d.ts +11 -5
- package/cjs/menu/menu-bar-store.cjs +5 -5
- package/cjs/menu/menu-bar-store.d.cts +12 -6
- package/cjs/menu/menu-bar-store.d.ts +12 -6
- package/cjs/menu/menu-store.cjs +18 -18
- package/cjs/menu/menu-store.d.cts +20 -10
- package/cjs/menu/menu-store.d.ts +20 -10
- package/cjs/menubar/menubar-store.cjs +5 -5
- package/cjs/menubar/menubar-store.d.cts +1 -1
- package/cjs/menubar/menubar-store.d.ts +1 -1
- package/cjs/popover/popover-store.cjs +5 -5
- package/cjs/popover/popover-store.d.cts +7 -3
- package/cjs/popover/popover-store.d.ts +7 -3
- package/cjs/radio/radio-store.cjs +5 -5
- package/cjs/radio/radio-store.d.cts +5 -3
- package/cjs/radio/radio-store.d.ts +5 -3
- package/cjs/select/select-store.cjs +18 -18
- package/cjs/select/select-store.d.cts +14 -16
- package/cjs/select/select-store.d.ts +14 -16
- package/cjs/tab/tab-store.cjs +15 -15
- package/cjs/tab/tab-store.d.cts +15 -16
- package/cjs/tab/tab-store.d.ts +15 -16
- package/cjs/toolbar/toolbar-store.cjs +4 -4
- package/cjs/toolbar/toolbar-store.d.cts +9 -6
- package/cjs/toolbar/toolbar-store.d.ts +9 -6
- package/cjs/tooltip/tooltip-store.cjs +7 -7
- package/cjs/tooltip/tooltip-store.d.cts +5 -3
- package/cjs/tooltip/tooltip-store.d.ts +5 -3
- package/cjs/utils/store.cjs +2 -2
- package/esm/__chunks/{E7OQVGGY.js → A2J4XZ5T.js} +15 -7
- package/esm/__chunks/{OGMLJYDV.js → DLX2AS6C.js} +2 -2
- package/esm/__chunks/{ANO6WJO4.js → EZ2TTBAQ.js} +2 -2
- package/esm/__chunks/{WY3EMTH6.js → J6JIOWCS.js} +2 -2
- package/esm/__chunks/{CL47ZAPY.js → LT2OYWRD.js} +1 -1
- package/esm/__chunks/{DYD4YNLE.js → NKLTHWCR.js} +1 -1
- package/esm/__chunks/{BXH3I7ML.js → T3DVYGXI.js} +2 -2
- package/esm/__chunks/{CCU5UHQ2.js → TLN4ALYH.js} +32 -22
- package/esm/checkbox/checkbox-store.d.ts +9 -9
- package/esm/checkbox/checkbox-store.js +1 -1
- package/esm/collection/collection-store.d.ts +16 -12
- package/esm/collection/collection-store.js +2 -2
- package/esm/combobox/combobox-store.d.ts +14 -14
- package/esm/combobox/combobox-store.js +6 -6
- package/esm/composite/composite-overflow-store.d.ts +13 -7
- package/esm/composite/composite-overflow-store.js +4 -4
- package/esm/composite/composite-store.d.ts +31 -14
- package/esm/composite/composite-store.js +3 -3
- package/esm/dialog/dialog-store.d.ts +12 -6
- package/esm/dialog/dialog-store.js +3 -3
- package/esm/disclosure/disclosure-store.d.ts +4 -2
- package/esm/disclosure/disclosure-store.js +2 -2
- package/esm/form/form-store.d.ts +15 -15
- package/esm/form/form-store.js +2 -2
- package/esm/hovercard/hovercard-store.d.ts +11 -5
- package/esm/hovercard/hovercard-store.js +5 -5
- package/esm/menu/menu-bar-store.d.ts +12 -6
- package/esm/menu/menu-bar-store.js +4 -4
- package/esm/menu/menu-store.d.ts +20 -10
- package/esm/menu/menu-store.js +7 -7
- package/esm/menubar/menubar-store.d.ts +1 -1
- package/esm/menubar/menubar-store.js +4 -4
- package/esm/popover/popover-store.d.ts +7 -3
- package/esm/popover/popover-store.js +4 -4
- package/esm/radio/radio-store.d.ts +5 -3
- package/esm/radio/radio-store.js +3 -3
- package/esm/select/select-store.d.ts +14 -16
- package/esm/select/select-store.js +6 -6
- package/esm/tab/tab-store.d.ts +15 -16
- package/esm/tab/tab-store.js +3 -3
- package/esm/toolbar/toolbar-store.d.ts +9 -6
- package/esm/toolbar/toolbar-store.js +3 -3
- package/esm/tooltip/tooltip-store.d.ts +5 -3
- package/esm/tooltip/tooltip-store.js +5 -5
- 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
|
createPopoverStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/J6JIOWCS.js";
|
|
5
|
+
import "../__chunks/LT2OYWRD.js";
|
|
6
|
+
import "../__chunks/NKLTHWCR.js";
|
|
7
7
|
import {
|
|
8
8
|
createCompositeStore
|
|
9
|
-
} from "../__chunks/
|
|
10
|
-
import "../__chunks/
|
|
9
|
+
} from "../__chunks/DLX2AS6C.js";
|
|
10
|
+
import "../__chunks/TLN4ALYH.js";
|
|
11
11
|
import {
|
|
12
12
|
batch,
|
|
13
13
|
createStore,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
setup,
|
|
17
17
|
sync,
|
|
18
18
|
throwOnConflictingProps
|
|
19
|
-
} from "../__chunks/
|
|
19
|
+
} from "../__chunks/A2J4XZ5T.js";
|
|
20
20
|
import {
|
|
21
21
|
defaultValue
|
|
22
22
|
} from "../__chunks/I2VQ3XGR.js";
|
package/esm/tab/tab-store.d.ts
CHANGED
|
@@ -2,24 +2,22 @@ import type { CollectionStore, CollectionStoreItem } from "../collection/collect
|
|
|
2
2
|
import type { CompositeStoreFunctions, CompositeStoreItem, CompositeStoreOptions, CompositeStoreState } from "../composite/composite-store.js";
|
|
3
3
|
import type { Store, StoreOptions, StoreProps } from "../utils/store.js";
|
|
4
4
|
import type { SetState } from "../utils/types.js";
|
|
5
|
-
|
|
5
|
+
export declare function createTabStore(props?: TabStoreProps): TabStore;
|
|
6
|
+
export interface TabStoreItem extends CompositeStoreItem {
|
|
6
7
|
dimmed?: boolean;
|
|
7
|
-
}
|
|
8
|
-
|
|
8
|
+
}
|
|
9
|
+
export interface TabStorePanel extends CollectionStoreItem {
|
|
9
10
|
tabId?: string | null;
|
|
10
|
-
}
|
|
11
|
-
export
|
|
12
|
-
export type TabStoreItem = Item;
|
|
13
|
-
export type TabStorePanel = Panel;
|
|
14
|
-
export interface TabStoreState extends CompositeStoreState<Item> {
|
|
11
|
+
}
|
|
12
|
+
export interface TabStoreState extends CompositeStoreState<TabStoreItem> {
|
|
15
13
|
/**
|
|
16
14
|
* @default "horizontal"
|
|
17
15
|
*/
|
|
18
|
-
orientation: CompositeStoreState<
|
|
16
|
+
orientation: CompositeStoreState<TabStoreItem>["orientation"];
|
|
19
17
|
/**
|
|
20
18
|
* @default true
|
|
21
19
|
*/
|
|
22
|
-
focusLoop: CompositeStoreState<
|
|
20
|
+
focusLoop: CompositeStoreState<TabStoreItem>["focusLoop"];
|
|
23
21
|
/**
|
|
24
22
|
* The id of the tab whose panel is currently visible. If it's `undefined`, it
|
|
25
23
|
* will be automatically set to the first enabled tab.
|
|
@@ -38,7 +36,7 @@ export interface TabStoreState extends CompositeStoreState<Item> {
|
|
|
38
36
|
*/
|
|
39
37
|
selectOnMove?: boolean;
|
|
40
38
|
}
|
|
41
|
-
export interface TabStoreFunctions extends CompositeStoreFunctions<
|
|
39
|
+
export interface TabStoreFunctions extends CompositeStoreFunctions<TabStoreItem> {
|
|
42
40
|
/**
|
|
43
41
|
* Sets the `selectedId` state without moving focus. If you want to move focus,
|
|
44
42
|
* use the `select` function instead.
|
|
@@ -59,7 +57,7 @@ export interface TabStoreFunctions extends CompositeStoreFunctions<Item> {
|
|
|
59
57
|
/**
|
|
60
58
|
* A collection store containing the tab panels.
|
|
61
59
|
*/
|
|
62
|
-
panels: CollectionStore<
|
|
60
|
+
panels: CollectionStore<TabStorePanel>;
|
|
63
61
|
/**
|
|
64
62
|
* Selects the tab for the given id and moves focus to it. If you want to set
|
|
65
63
|
* the `selectedId` state without moving focus, use the `setSelectedId`
|
|
@@ -75,13 +73,14 @@ export interface TabStoreFunctions extends CompositeStoreFunctions<Item> {
|
|
|
75
73
|
*/
|
|
76
74
|
select: TabStore["move"];
|
|
77
75
|
}
|
|
78
|
-
export interface TabStoreOptions extends StoreOptions<TabStoreState, "orientation" | "focusLoop" | "selectedId" | "selectOnMove">, CompositeStoreOptions<
|
|
76
|
+
export interface TabStoreOptions extends StoreOptions<TabStoreState, "orientation" | "focusLoop" | "selectedId" | "selectOnMove">, CompositeStoreOptions<TabStoreItem> {
|
|
79
77
|
/**
|
|
80
78
|
* The id of the tab whose panel is currently visible. If it's `undefined`, it
|
|
81
79
|
* will be automatically set to the first enabled tab.
|
|
82
80
|
*/
|
|
83
81
|
defaultSelectedId?: TabStoreState["selectedId"];
|
|
84
82
|
}
|
|
85
|
-
export
|
|
86
|
-
|
|
87
|
-
export {
|
|
83
|
+
export interface TabStoreProps extends TabStoreOptions, StoreProps<TabStoreState> {
|
|
84
|
+
}
|
|
85
|
+
export interface TabStore extends TabStoreFunctions, Store<TabStoreState> {
|
|
86
|
+
}
|
package/esm/tab/tab-store.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCompositeStore
|
|
4
|
-
} from "../__chunks/
|
|
4
|
+
} from "../__chunks/DLX2AS6C.js";
|
|
5
5
|
import {
|
|
6
6
|
createCollectionStore
|
|
7
|
-
} from "../__chunks/
|
|
7
|
+
} from "../__chunks/TLN4ALYH.js";
|
|
8
8
|
import {
|
|
9
9
|
batch,
|
|
10
10
|
createStore,
|
|
11
11
|
setup,
|
|
12
12
|
sync
|
|
13
|
-
} from "../__chunks/
|
|
13
|
+
} from "../__chunks/A2J4XZ5T.js";
|
|
14
14
|
import {
|
|
15
15
|
defaultValue
|
|
16
16
|
} from "../__chunks/I2VQ3XGR.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { StoreOptions } from "../utils/store.js";
|
|
1
|
+
import type { CompositeStoreFunctions, CompositeStoreOptions, CompositeStoreState } from "../composite/composite-store.js";
|
|
2
|
+
import type { Store, StoreOptions, StoreProps } from "../utils/store.js";
|
|
3
3
|
/**
|
|
4
4
|
* Creates a toolbar store.
|
|
5
5
|
*/
|
|
@@ -14,8 +14,11 @@ export interface ToolbarStoreState extends CompositeStoreState {
|
|
|
14
14
|
*/
|
|
15
15
|
focusLoop: CompositeStoreState["focusLoop"];
|
|
16
16
|
}
|
|
17
|
-
export
|
|
18
|
-
|
|
17
|
+
export interface ToolbarStoreFunctions extends CompositeStoreFunctions {
|
|
18
|
+
}
|
|
19
|
+
export interface ToolbarStoreOptions extends CompositeStoreOptions, StoreOptions<ToolbarStoreState, "orientation" | "focusLoop"> {
|
|
20
|
+
}
|
|
21
|
+
export interface ToolbarStoreProps extends ToolbarStoreOptions, StoreProps<ToolbarStoreState> {
|
|
22
|
+
}
|
|
23
|
+
export interface ToolbarStore extends ToolbarStoreFunctions, Store<ToolbarStoreState> {
|
|
19
24
|
}
|
|
20
|
-
export type ToolbarStore = CompositeStore;
|
|
21
|
-
export type ToolbarStoreProps = CompositeStoreProps;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCompositeStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/DLX2AS6C.js";
|
|
5
|
+
import "../__chunks/TLN4ALYH.js";
|
|
6
|
+
import "../__chunks/A2J4XZ5T.js";
|
|
7
7
|
import {
|
|
8
8
|
defaultValue
|
|
9
9
|
} from "../__chunks/I2VQ3XGR.js";
|
|
@@ -23,7 +23,9 @@ export interface TooltipStoreState extends HovercardStoreState {
|
|
|
23
23
|
hideTimeout?: HovercardStoreState["hideTimeout"];
|
|
24
24
|
}
|
|
25
25
|
export type TooltipStoreFunctions = HovercardStoreFunctions;
|
|
26
|
-
export interface TooltipStoreOptions extends StoreOptions<TooltipStoreState, "type" | "placement" | "timeout" | "showTimeout" | "hideTimeout" | "skipTimeout"
|
|
26
|
+
export interface TooltipStoreOptions extends HovercardStoreOptions, StoreOptions<TooltipStoreState, "type" | "placement" | "timeout" | "showTimeout" | "hideTimeout" | "skipTimeout"> {
|
|
27
|
+
}
|
|
28
|
+
export interface TooltipStoreProps extends TooltipStoreOptions, StoreProps<TooltipStoreState> {
|
|
29
|
+
}
|
|
30
|
+
export interface TooltipStore extends TooltipStoreFunctions, Store<TooltipStoreState> {
|
|
27
31
|
}
|
|
28
|
-
export type TooltipStoreProps = TooltipStoreOptions & StoreProps<TooltipStoreState>;
|
|
29
|
-
export type TooltipStore = TooltipStoreFunctions & Store<TooltipStoreState>;
|
|
@@ -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/T3DVYGXI.js";
|
|
5
|
+
import "../__chunks/J6JIOWCS.js";
|
|
6
|
+
import "../__chunks/LT2OYWRD.js";
|
|
7
|
+
import "../__chunks/NKLTHWCR.js";
|
|
8
8
|
import {
|
|
9
9
|
createStore
|
|
10
|
-
} from "../__chunks/
|
|
10
|
+
} from "../__chunks/A2J4XZ5T.js";
|
|
11
11
|
import {
|
|
12
12
|
defaultValue
|
|
13
13
|
} from "../__chunks/I2VQ3XGR.js";
|
package/esm/utils/store.js
CHANGED