@ariakit/core 0.3.11 → 0.4.1
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 +55 -0
- package/cjs/__chunks/{E53JW5BD.cjs → 5JEQEZFR.cjs} +12 -12
- package/cjs/__chunks/{YIUPKKEK.cjs → 7DU6YMLQ.cjs} +6 -6
- package/cjs/__chunks/{OTVLDMN2.cjs → AETQC2AR.cjs} +17 -16
- package/cjs/__chunks/{F6HPKLO2.cjs → B4LYZ4EM.cjs} +12 -12
- package/cjs/__chunks/{KBNYGXWI.cjs → EEDWPDM2.cjs} +11 -1
- package/cjs/__chunks/{MI6NUQYQ.cjs → FFZYCAXA.cjs} +15 -15
- package/cjs/__chunks/{I3Y4EXEF.cjs → LTLFSC4X.cjs} +2 -2
- package/cjs/__chunks/{NOFH2BLB.cjs → SU2BSHGB.cjs} +7 -7
- package/cjs/__chunks/{TQTGWD5K.cjs → UEZLSKZ4.cjs} +10 -10
- package/cjs/__chunks/{5F4DVUNS.cjs → UKR6TQI3.cjs} +1 -2
- package/cjs/__chunks/{BFE5R4EZ.cjs → Y7KNI5NS.cjs} +17 -17
- package/cjs/checkbox/checkbox-store.cjs +5 -5
- package/cjs/collection/collection-store.cjs +5 -5
- package/cjs/combobox/combobox-store.cjs +35 -35
- package/cjs/combobox/combobox-store.d.cts +13 -8
- package/cjs/combobox/combobox-store.d.ts +13 -8
- package/cjs/composite/composite-overflow-store.cjs +6 -6
- package/cjs/composite/composite-store.cjs +6 -6
- package/cjs/composite/composite-store.d.cts +4 -0
- package/cjs/composite/composite-store.d.ts +4 -0
- package/cjs/dialog/dialog-store.cjs +5 -5
- package/cjs/disclosure/disclosure-store.cjs +4 -4
- package/cjs/disclosure/disclosure-store.d.cts +6 -2
- package/cjs/disclosure/disclosure-store.d.ts +6 -2
- package/cjs/form/form-store.cjs +24 -24
- package/cjs/hovercard/hovercard-store.cjs +7 -7
- package/cjs/hovercard/hovercard-store.d.cts +2 -4
- package/cjs/hovercard/hovercard-store.d.ts +2 -4
- package/cjs/menu/menu-bar-store.cjs +7 -7
- package/cjs/menu/menu-store.cjs +27 -27
- package/cjs/menu/menu-store.d.cts +7 -7
- package/cjs/menu/menu-store.d.ts +7 -7
- package/cjs/menubar/menubar-store.cjs +7 -7
- package/cjs/popover/popover-store.cjs +6 -6
- package/cjs/radio/radio-store.cjs +9 -9
- package/cjs/radio/radio-store.d.cts +2 -4
- package/cjs/radio/radio-store.d.ts +2 -4
- package/cjs/select/select-store.cjs +29 -29
- package/cjs/select/select-store.d.cts +1 -3
- package/cjs/select/select-store.d.ts +1 -3
- package/cjs/tab/tab-store.cjs +21 -21
- package/cjs/toolbar/toolbar-store.cjs +8 -8
- package/cjs/toolbar/toolbar-store.d.cts +1 -1
- package/cjs/toolbar/toolbar-store.d.ts +1 -1
- package/cjs/tooltip/tooltip-store.cjs +21 -12
- package/cjs/tooltip/tooltip-store.d.cts +1 -1
- package/cjs/tooltip/tooltip-store.d.ts +1 -1
- package/cjs/utils/dom.cjs +2 -2
- package/cjs/utils/events.cjs +5 -5
- package/cjs/utils/focus.cjs +13 -13
- package/cjs/utils/misc.cjs +4 -2
- package/cjs/utils/misc.d.cts +4 -0
- package/cjs/utils/misc.d.ts +4 -0
- package/cjs/utils/platform.cjs +3 -3
- package/cjs/utils/store.cjs +3 -3
- package/esm/__chunks/{Y3OOHFCN.js → 22HHDS5F.js} +10 -0
- package/esm/__chunks/{IERTEJ3A.js → 2H5K47H4.js} +3 -3
- package/esm/__chunks/{SX2XFD6A.js → 5RJNXXU2.js} +1 -1
- package/esm/__chunks/{SOLWE6E5.js → BRS7GKWU.js} +3 -3
- package/esm/__chunks/{AF6IUUFN.js → MFZZDIHG.js} +3 -3
- package/esm/__chunks/{XU3EOSCU.js → PXYVPXSS.js} +3 -3
- package/esm/__chunks/{EAHJFCU4.js → R676XYVY.js} +1 -1
- package/esm/__chunks/{DLOEKDPY.js → RRSZHCH6.js} +1 -2
- package/esm/__chunks/{22K762VQ.js → URUD7X4C.js} +3 -3
- package/esm/__chunks/{MHPO2BXA.js → VDNATJW2.js} +1 -1
- package/esm/__chunks/{Z5IGYIPT.js → WCKXDMU7.js} +3 -2
- package/esm/checkbox/checkbox-store.js +2 -2
- package/esm/collection/collection-store.js +4 -4
- package/esm/combobox/combobox-store.d.ts +13 -8
- package/esm/combobox/combobox-store.js +9 -9
- package/esm/composite/composite-overflow-store.js +5 -5
- package/esm/composite/composite-store.d.ts +4 -0
- package/esm/composite/composite-store.js +5 -5
- package/esm/dialog/dialog-store.js +4 -4
- package/esm/disclosure/disclosure-store.d.ts +6 -2
- package/esm/disclosure/disclosure-store.js +3 -3
- package/esm/form/form-store.js +4 -4
- package/esm/hovercard/hovercard-store.d.ts +2 -4
- package/esm/hovercard/hovercard-store.js +6 -6
- package/esm/menu/menu-bar-store.js +6 -6
- package/esm/menu/menu-store.d.ts +7 -7
- package/esm/menu/menu-store.js +9 -9
- package/esm/menubar/menubar-store.js +6 -6
- package/esm/popover/popover-store.js +5 -5
- package/esm/radio/radio-store.d.ts +2 -4
- package/esm/radio/radio-store.js +5 -5
- package/esm/select/select-store.d.ts +1 -3
- package/esm/select/select-store.js +8 -8
- package/esm/tab/tab-store.js +5 -5
- package/esm/toolbar/toolbar-store.d.ts +1 -1
- package/esm/toolbar/toolbar-store.js +5 -5
- package/esm/tooltip/tooltip-store.d.ts +1 -1
- package/esm/tooltip/tooltip-store.js +15 -6
- package/esm/utils/dom.js +1 -1
- package/esm/utils/events.js +2 -2
- package/esm/utils/focus.js +1 -1
- package/esm/utils/misc.d.ts +4 -0
- package/esm/utils/misc.js +3 -1
- package/esm/utils/platform.js +2 -2
- package/esm/utils/store.js +2 -2
- package/package.json +1 -1
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
subscribe,
|
|
8
8
|
sync,
|
|
9
9
|
throwOnConflictingProps
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./R676XYVY.js";
|
|
11
11
|
import {
|
|
12
12
|
defaultValue
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./22HHDS5F.js";
|
|
14
14
|
import {
|
|
15
15
|
__spreadProps,
|
|
16
16
|
__spreadValues
|
|
@@ -63,6 +63,7 @@ function createDisclosureStore(props = {}) {
|
|
|
63
63
|
})
|
|
64
64
|
);
|
|
65
65
|
return __spreadProps(__spreadValues({}, disclosure), {
|
|
66
|
+
disclosure: props.disclosure,
|
|
66
67
|
setOpen: (value) => disclosure.setState("open", value),
|
|
67
68
|
show: () => disclosure.setState("open", true),
|
|
68
69
|
hide: () => disclosure.setState("open", false),
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createStore,
|
|
4
4
|
throwOnConflictingProps
|
|
5
|
-
} from "../__chunks/
|
|
5
|
+
} from "../__chunks/R676XYVY.js";
|
|
6
6
|
import {
|
|
7
7
|
defaultValue
|
|
8
|
-
} from "../__chunks/
|
|
8
|
+
} from "../__chunks/22HHDS5F.js";
|
|
9
9
|
import {
|
|
10
10
|
__spreadProps,
|
|
11
11
|
__spreadValues
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCollectionStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
7
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/URUD7X4C.js";
|
|
5
|
+
import "../__chunks/R676XYVY.js";
|
|
6
|
+
import "../__chunks/22HHDS5F.js";
|
|
7
|
+
import "../__chunks/RRSZHCH6.js";
|
|
8
8
|
import "../__chunks/4R3V3JGP.js";
|
|
9
9
|
export {
|
|
10
10
|
createCollectionStore
|
|
@@ -13,10 +13,16 @@ export interface ComboboxStoreItem extends CompositeStoreItem {
|
|
|
13
13
|
value?: string;
|
|
14
14
|
}
|
|
15
15
|
export interface ComboboxStoreState<T extends ComboboxStoreSelectedValue = ComboboxStoreSelectedValue> extends CompositeStoreState<ComboboxStoreItem>, PopoverStoreState {
|
|
16
|
-
/**
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
/** @default true */
|
|
17
|
+
includesBaseElement: CompositeStoreState<ComboboxStoreItem>["includesBaseElement"];
|
|
18
|
+
/** @default true */
|
|
19
|
+
focusLoop: CompositeStoreState<ComboboxStoreItem>["focusLoop"];
|
|
20
|
+
/** @default true */
|
|
21
|
+
focusWrap: CompositeStoreState<ComboboxStoreItem>["focusWrap"];
|
|
22
|
+
/** @default "vertical" */
|
|
23
|
+
orientation: CompositeStoreState<ComboboxStoreItem>["orientation"];
|
|
24
|
+
/** @default true */
|
|
25
|
+
virtualFocus: CompositeStoreState<ComboboxStoreItem>["virtualFocus"];
|
|
20
26
|
/**
|
|
21
27
|
* The combobox input value.
|
|
22
28
|
*
|
|
@@ -63,6 +69,7 @@ export interface ComboboxStoreState<T extends ComboboxStoreSelectedValue = Combo
|
|
|
63
69
|
* - [Select with Combobox](https://ariakit.org/examples/select-combobox)
|
|
64
70
|
* - [Submenu with
|
|
65
71
|
* Combobox](https://ariakit.org/examples/menu-nested-combobox)
|
|
72
|
+
* - [Command Menu](https://ariakit.org/examples/dialog-combobox-command-menu)
|
|
66
73
|
*/
|
|
67
74
|
resetValueOnHide: boolean;
|
|
68
75
|
/**
|
|
@@ -100,10 +107,8 @@ export interface ComboboxStoreFunctions<T extends ComboboxStoreSelectedValue = C
|
|
|
100
107
|
*/
|
|
101
108
|
setSelectedValue: SetState<ComboboxStoreState<T>["selectedValue"]>;
|
|
102
109
|
}
|
|
103
|
-
export interface ComboboxStoreOptions<T extends ComboboxStoreSelectedValue = ComboboxStoreSelectedValue> extends
|
|
104
|
-
/**
|
|
105
|
-
* @default null
|
|
106
|
-
*/
|
|
110
|
+
export interface ComboboxStoreOptions<T extends ComboboxStoreSelectedValue = ComboboxStoreSelectedValue> extends StoreOptions<ComboboxStoreState<T>, "includesBaseElement" | "focusLoop" | "focusWrap" | "orientation" | "virtualFocus" | "value" | "selectedValue" | "resetValueOnHide" | "resetValueOnSelect">, CompositeStoreOptions<ComboboxStoreItem>, PopoverStoreOptions {
|
|
111
|
+
/** @default null */
|
|
107
112
|
defaultActiveId?: CompositeStoreOptions<ComboboxStoreItem>["activeId"];
|
|
108
113
|
/**
|
|
109
114
|
* The initial value of the combobox input.
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createPopoverStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/MFZZDIHG.js";
|
|
5
|
+
import "../__chunks/5RJNXXU2.js";
|
|
6
|
+
import "../__chunks/WCKXDMU7.js";
|
|
7
7
|
import {
|
|
8
8
|
createCompositeStore
|
|
9
|
-
} from "../__chunks/
|
|
10
|
-
import "../__chunks/
|
|
9
|
+
} from "../__chunks/2H5K47H4.js";
|
|
10
|
+
import "../__chunks/URUD7X4C.js";
|
|
11
11
|
import {
|
|
12
12
|
batch,
|
|
13
13
|
createStore,
|
|
14
14
|
setup,
|
|
15
15
|
sync,
|
|
16
16
|
throwOnConflictingProps
|
|
17
|
-
} from "../__chunks/
|
|
17
|
+
} from "../__chunks/R676XYVY.js";
|
|
18
18
|
import {
|
|
19
19
|
defaultValue
|
|
20
|
-
} from "../__chunks/
|
|
20
|
+
} from "../__chunks/22HHDS5F.js";
|
|
21
21
|
import {
|
|
22
22
|
isSafari,
|
|
23
23
|
isTouchDevice
|
|
24
|
-
} from "../__chunks/
|
|
25
|
-
import "../__chunks/
|
|
24
|
+
} from "../__chunks/VDNATJW2.js";
|
|
25
|
+
import "../__chunks/RRSZHCH6.js";
|
|
26
26
|
import "../__chunks/7PRQYBBV.js";
|
|
27
27
|
import {
|
|
28
28
|
__spreadProps,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createPopoverStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
7
|
-
import "../__chunks/
|
|
8
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/MFZZDIHG.js";
|
|
5
|
+
import "../__chunks/5RJNXXU2.js";
|
|
6
|
+
import "../__chunks/WCKXDMU7.js";
|
|
7
|
+
import "../__chunks/R676XYVY.js";
|
|
8
|
+
import "../__chunks/22HHDS5F.js";
|
|
9
9
|
import "../__chunks/4R3V3JGP.js";
|
|
10
10
|
|
|
11
11
|
// src/composite/composite-overflow-store.ts
|
|
@@ -112,6 +112,9 @@ export interface CompositeStoreState<T extends CompositeStoreItem = CompositeSto
|
|
|
112
112
|
* matches the value of `focusLoop`, it'll wrap between the last item in the
|
|
113
113
|
* last row or column and the first item in the first row or column and
|
|
114
114
|
* vice-versa.
|
|
115
|
+
*
|
|
116
|
+
* Live examples:
|
|
117
|
+
* - [Command Menu](https://ariakit.org/examples/dialog-combobox-command-menu)
|
|
115
118
|
* @default false
|
|
116
119
|
*/
|
|
117
120
|
focusLoop: boolean | Orientation;
|
|
@@ -157,6 +160,7 @@ export interface CompositeStoreState<T extends CompositeStoreItem = CompositeSto
|
|
|
157
160
|
* - [Submenu with
|
|
158
161
|
* Combobox](https://ariakit.org/examples/menu-nested-combobox)
|
|
159
162
|
* - [Combobox with tabs](https://ariakit.org/examples/combobox-tabs)
|
|
163
|
+
* - [Command Menu](https://ariakit.org/examples/dialog-combobox-command-menu)
|
|
160
164
|
* @default false
|
|
161
165
|
*/
|
|
162
166
|
includesBaseElement: boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCompositeStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
7
|
-
import "../__chunks/
|
|
8
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/2H5K47H4.js";
|
|
5
|
+
import "../__chunks/URUD7X4C.js";
|
|
6
|
+
import "../__chunks/R676XYVY.js";
|
|
7
|
+
import "../__chunks/22HHDS5F.js";
|
|
8
|
+
import "../__chunks/RRSZHCH6.js";
|
|
9
9
|
import "../__chunks/7PRQYBBV.js";
|
|
10
10
|
import "../__chunks/4R3V3JGP.js";
|
|
11
11
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createDialogStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
7
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/5RJNXXU2.js";
|
|
5
|
+
import "../__chunks/WCKXDMU7.js";
|
|
6
|
+
import "../__chunks/R676XYVY.js";
|
|
7
|
+
import "../__chunks/22HHDS5F.js";
|
|
8
8
|
import "../__chunks/4R3V3JGP.js";
|
|
9
9
|
export {
|
|
10
10
|
createDialogStore
|
|
@@ -38,7 +38,6 @@ export interface DisclosureStoreState {
|
|
|
38
38
|
* - If it's set to a number, the `animating` state will be `true` when the
|
|
39
39
|
* content is shown or hidden and it will wait for the number of
|
|
40
40
|
* milliseconds to pass before becoming `false`.
|
|
41
|
-
* @default false
|
|
42
41
|
*/
|
|
43
42
|
animated: boolean | number;
|
|
44
43
|
/**
|
|
@@ -54,7 +53,7 @@ export interface DisclosureStoreState {
|
|
|
54
53
|
*/
|
|
55
54
|
disclosureElement: HTMLElement | null;
|
|
56
55
|
}
|
|
57
|
-
export interface DisclosureStoreFunctions {
|
|
56
|
+
export interface DisclosureStoreFunctions extends Pick<DisclosureStoreOptions, "disclosure"> {
|
|
58
57
|
/**
|
|
59
58
|
* Sets the [`open`](https://ariakit.org/reference/disclosure-provider#open)
|
|
60
59
|
* state.
|
|
@@ -115,6 +114,11 @@ export interface DisclosureStoreFunctions {
|
|
|
115
114
|
setDisclosureElement: SetState<DisclosureStoreState["disclosureElement"]>;
|
|
116
115
|
}
|
|
117
116
|
export interface DisclosureStoreOptions extends StoreOptions<DisclosureStoreState, "open" | "animated"> {
|
|
117
|
+
/**
|
|
118
|
+
* @deprecated Manually setting the `animated` prop is no longer necessary.
|
|
119
|
+
* This will be removed in a future release.
|
|
120
|
+
*/
|
|
121
|
+
animated?: DisclosureStoreState["animated"];
|
|
118
122
|
/**
|
|
119
123
|
* Whether the content should be visible by default.
|
|
120
124
|
* @default false
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createDisclosureStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/WCKXDMU7.js";
|
|
5
|
+
import "../__chunks/R676XYVY.js";
|
|
6
|
+
import "../__chunks/22HHDS5F.js";
|
|
7
7
|
import "../__chunks/4R3V3JGP.js";
|
|
8
8
|
export {
|
|
9
9
|
createDisclosureStore
|
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/URUD7X4C.js";
|
|
5
5
|
import {
|
|
6
6
|
createStore,
|
|
7
7
|
init,
|
|
8
8
|
setup,
|
|
9
9
|
throwOnConflictingProps
|
|
10
|
-
} from "../__chunks/
|
|
10
|
+
} from "../__chunks/R676XYVY.js";
|
|
11
11
|
import {
|
|
12
12
|
applyState,
|
|
13
13
|
defaultValue,
|
|
14
14
|
isInteger,
|
|
15
15
|
isObject
|
|
16
|
-
} from "../__chunks/
|
|
17
|
-
import "../__chunks/
|
|
16
|
+
} from "../__chunks/22HHDS5F.js";
|
|
17
|
+
import "../__chunks/RRSZHCH6.js";
|
|
18
18
|
import {
|
|
19
19
|
__spreadProps,
|
|
20
20
|
__spreadValues
|
|
@@ -6,9 +6,7 @@ import type { SetState } from "../utils/types.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function createHovercardStore(props?: HovercardStoreProps): HovercardStore;
|
|
8
8
|
export interface HovercardStoreState extends PopoverStoreState {
|
|
9
|
-
/**
|
|
10
|
-
* @default "bottom"
|
|
11
|
-
*/
|
|
9
|
+
/** @default "bottom" */
|
|
12
10
|
placement: PopoverStoreState["placement"];
|
|
13
11
|
/**
|
|
14
12
|
* The amount of time in milliseconds to wait before showing and hiding the
|
|
@@ -57,7 +55,7 @@ export interface HovercardStoreFunctions extends PopoverStoreFunctions {
|
|
|
57
55
|
*/
|
|
58
56
|
setAutoFocusOnShow: SetState<HovercardStoreState["autoFocusOnShow"]>;
|
|
59
57
|
}
|
|
60
|
-
export interface HovercardStoreOptions extends
|
|
58
|
+
export interface HovercardStoreOptions extends StoreOptions<HovercardStoreState, "placement" | "timeout" | "showTimeout" | "hideTimeout">, PopoverStoreOptions {
|
|
61
59
|
}
|
|
62
60
|
export interface HovercardStoreProps extends HovercardStoreOptions, StoreProps<HovercardStoreState> {
|
|
63
61
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
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/
|
|
9
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/BRS7GKWU.js";
|
|
5
|
+
import "../__chunks/MFZZDIHG.js";
|
|
6
|
+
import "../__chunks/5RJNXXU2.js";
|
|
7
|
+
import "../__chunks/WCKXDMU7.js";
|
|
8
|
+
import "../__chunks/R676XYVY.js";
|
|
9
|
+
import "../__chunks/22HHDS5F.js";
|
|
10
10
|
import "../__chunks/4R3V3JGP.js";
|
|
11
11
|
export {
|
|
12
12
|
createHovercardStore
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createMenubarStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
7
|
-
import "../__chunks/
|
|
8
|
-
import "../__chunks/
|
|
9
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/PXYVPXSS.js";
|
|
5
|
+
import "../__chunks/2H5K47H4.js";
|
|
6
|
+
import "../__chunks/URUD7X4C.js";
|
|
7
|
+
import "../__chunks/R676XYVY.js";
|
|
8
|
+
import "../__chunks/22HHDS5F.js";
|
|
9
|
+
import "../__chunks/RRSZHCH6.js";
|
|
10
10
|
import "../__chunks/7PRQYBBV.js";
|
|
11
11
|
import "../__chunks/4R3V3JGP.js";
|
|
12
12
|
|
package/esm/menu/menu-store.d.ts
CHANGED
|
@@ -8,6 +8,12 @@ export declare function createMenuStore<T extends MenuStoreValues = MenuStoreVal
|
|
|
8
8
|
export declare function createMenuStore(props?: MenuStoreProps): MenuStore;
|
|
9
9
|
export type MenuStoreValues = Record<string, string | boolean | number | Array<string | number>>;
|
|
10
10
|
export interface MenuStoreState<T extends MenuStoreValues = MenuStoreValues> extends CompositeStoreState, HovercardStoreState {
|
|
11
|
+
/** @default "vertical" */
|
|
12
|
+
orientation: CompositeStoreState["orientation"];
|
|
13
|
+
/** @default "bottom-start" */
|
|
14
|
+
placement: HovercardStoreState["placement"];
|
|
15
|
+
/** @default 0 */
|
|
16
|
+
hideTimeout?: HovercardStoreState["hideTimeout"];
|
|
11
17
|
/**
|
|
12
18
|
* Determines the element that should be focused when the menu is opened.
|
|
13
19
|
*/
|
|
@@ -24,12 +30,6 @@ export interface MenuStoreState<T extends MenuStoreValues = MenuStoreValues> ext
|
|
|
24
30
|
* Combobox](https://ariakit.org/examples/menu-nested-combobox)
|
|
25
31
|
*/
|
|
26
32
|
values: T;
|
|
27
|
-
/** @default "vertical" */
|
|
28
|
-
orientation: CompositeStoreState["orientation"];
|
|
29
|
-
/** @default "bottom-start" */
|
|
30
|
-
placement: HovercardStoreState["placement"];
|
|
31
|
-
/** @default 0 */
|
|
32
|
-
hideTimeout?: HovercardStoreState["hideTimeout"];
|
|
33
33
|
}
|
|
34
34
|
export interface MenuStoreFunctions<T extends MenuStoreValues = MenuStoreValues> extends CompositeStoreFunctions, HovercardStoreFunctions, Pick<MenuStoreOptions, "combobox" | "parent" | "menubar"> {
|
|
35
35
|
/**
|
|
@@ -64,7 +64,7 @@ export interface MenuStoreFunctions<T extends MenuStoreValues = MenuStoreValues>
|
|
|
64
64
|
*/
|
|
65
65
|
setValue: BivariantCallback<(name: string, value: SetStateAction<MenuStoreState<T>["values"][string]>) => void>;
|
|
66
66
|
}
|
|
67
|
-
export interface MenuStoreOptions<T extends MenuStoreValues = MenuStoreValues> extends
|
|
67
|
+
export interface MenuStoreOptions<T extends MenuStoreValues = MenuStoreValues> extends StoreOptions<MenuStoreState<T>, "orientation" | "placement" | "hideTimeout" | "values">, CompositeStoreOptions, HovercardStoreOptions {
|
|
68
68
|
/**
|
|
69
69
|
* A reference to a combobox store. This is used when combining the combobox
|
|
70
70
|
* with a menu (e.g., dropdown menu with a search input). The stores will
|
package/esm/menu/menu-store.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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/BRS7GKWU.js";
|
|
5
|
+
import "../__chunks/MFZZDIHG.js";
|
|
6
|
+
import "../__chunks/5RJNXXU2.js";
|
|
7
|
+
import "../__chunks/WCKXDMU7.js";
|
|
8
8
|
import {
|
|
9
9
|
createCompositeStore
|
|
10
|
-
} from "../__chunks/
|
|
11
|
-
import "../__chunks/
|
|
10
|
+
} from "../__chunks/2H5K47H4.js";
|
|
11
|
+
import "../__chunks/URUD7X4C.js";
|
|
12
12
|
import {
|
|
13
13
|
createStore,
|
|
14
14
|
mergeStore,
|
|
@@ -17,12 +17,12 @@ import {
|
|
|
17
17
|
setup,
|
|
18
18
|
sync,
|
|
19
19
|
throwOnConflictingProps
|
|
20
|
-
} from "../__chunks/
|
|
20
|
+
} from "../__chunks/R676XYVY.js";
|
|
21
21
|
import {
|
|
22
22
|
applyState,
|
|
23
23
|
defaultValue
|
|
24
|
-
} from "../__chunks/
|
|
25
|
-
import "../__chunks/
|
|
24
|
+
} from "../__chunks/22HHDS5F.js";
|
|
25
|
+
import "../__chunks/RRSZHCH6.js";
|
|
26
26
|
import "../__chunks/7PRQYBBV.js";
|
|
27
27
|
import {
|
|
28
28
|
__objRest,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createMenubarStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
7
|
-
import "../__chunks/
|
|
8
|
-
import "../__chunks/
|
|
9
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/PXYVPXSS.js";
|
|
5
|
+
import "../__chunks/2H5K47H4.js";
|
|
6
|
+
import "../__chunks/URUD7X4C.js";
|
|
7
|
+
import "../__chunks/R676XYVY.js";
|
|
8
|
+
import "../__chunks/22HHDS5F.js";
|
|
9
|
+
import "../__chunks/RRSZHCH6.js";
|
|
10
10
|
import "../__chunks/7PRQYBBV.js";
|
|
11
11
|
import "../__chunks/4R3V3JGP.js";
|
|
12
12
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createPopoverStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
7
|
-
import "../__chunks/
|
|
8
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/MFZZDIHG.js";
|
|
5
|
+
import "../__chunks/5RJNXXU2.js";
|
|
6
|
+
import "../__chunks/WCKXDMU7.js";
|
|
7
|
+
import "../__chunks/R676XYVY.js";
|
|
8
|
+
import "../__chunks/22HHDS5F.js";
|
|
9
9
|
import "../__chunks/4R3V3JGP.js";
|
|
10
10
|
export {
|
|
11
11
|
createPopoverStore
|
|
@@ -6,9 +6,7 @@ import type { SetState } from "../utils/types.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function createRadioStore({ ...props }?: RadioStoreProps): RadioStore;
|
|
8
8
|
export interface RadioStoreState extends CompositeStoreState {
|
|
9
|
-
/**
|
|
10
|
-
* @default true
|
|
11
|
-
*/
|
|
9
|
+
/** @default true */
|
|
12
10
|
focusLoop: CompositeStoreState["focusLoop"];
|
|
13
11
|
/**
|
|
14
12
|
* The value of the radio group.
|
|
@@ -26,7 +24,7 @@ export interface RadioStoreFunctions extends CompositeStoreFunctions {
|
|
|
26
24
|
*/
|
|
27
25
|
setValue: SetState<RadioStoreState["value"]>;
|
|
28
26
|
}
|
|
29
|
-
export interface RadioStoreOptions extends
|
|
27
|
+
export interface RadioStoreOptions extends StoreOptions<RadioStoreState, "focusLoop" | "value">, CompositeStoreOptions {
|
|
30
28
|
/**
|
|
31
29
|
* The default value of the radio group.
|
|
32
30
|
* @default null
|
package/esm/radio/radio-store.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCompositeStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/2H5K47H4.js";
|
|
5
|
+
import "../__chunks/URUD7X4C.js";
|
|
6
6
|
import {
|
|
7
7
|
createStore
|
|
8
|
-
} from "../__chunks/
|
|
8
|
+
} from "../__chunks/R676XYVY.js";
|
|
9
9
|
import {
|
|
10
10
|
defaultValue
|
|
11
|
-
} from "../__chunks/
|
|
12
|
-
import "../__chunks/
|
|
11
|
+
} from "../__chunks/22HHDS5F.js";
|
|
12
|
+
import "../__chunks/RRSZHCH6.js";
|
|
13
13
|
import "../__chunks/7PRQYBBV.js";
|
|
14
14
|
import {
|
|
15
15
|
__objRest,
|
|
@@ -13,8 +13,6 @@ export interface SelectStoreItem extends CompositeStoreItem {
|
|
|
13
13
|
export interface SelectStoreState<T extends SelectStoreValue = SelectStoreValue> extends CompositeStoreState<SelectStoreItem>, PopoverStoreState {
|
|
14
14
|
/** @default true */
|
|
15
15
|
virtualFocus: CompositeStoreState<SelectStoreItem>["virtualFocus"];
|
|
16
|
-
/** @default false */
|
|
17
|
-
includesBaseElement: CompositeStoreState<SelectStoreItem>["includesBaseElement"];
|
|
18
16
|
/** @default null */
|
|
19
17
|
activeId: CompositeStoreState<SelectStoreItem>["activeId"];
|
|
20
18
|
/** @default "vertical" */
|
|
@@ -77,7 +75,7 @@ export interface SelectStoreFunctions<T extends SelectStoreValue = SelectStoreVa
|
|
|
77
75
|
*/
|
|
78
76
|
setLabelElement: SetState<SelectStoreState<T>["labelElement"]>;
|
|
79
77
|
}
|
|
80
|
-
export interface SelectStoreOptions<T extends SelectStoreValue = SelectStoreValue> extends
|
|
78
|
+
export interface SelectStoreOptions<T extends SelectStoreValue = SelectStoreValue> extends StoreOptions<SelectStoreState<T>, "virtualFocus" | "activeId" | "orientation" | "placement" | "value" | "setValueOnMove">, CompositeStoreOptions<SelectStoreItem>, PopoverStoreOptions {
|
|
81
79
|
/**
|
|
82
80
|
* A reference to a combobox store. This is used when combining the combobox
|
|
83
81
|
* with a select (e.g., select with a search input). The stores will share the
|
|
@@ -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/MFZZDIHG.js";
|
|
5
|
+
import "../__chunks/5RJNXXU2.js";
|
|
6
|
+
import "../__chunks/WCKXDMU7.js";
|
|
7
7
|
import {
|
|
8
8
|
createCompositeStore
|
|
9
|
-
} from "../__chunks/
|
|
10
|
-
import "../__chunks/
|
|
9
|
+
} from "../__chunks/2H5K47H4.js";
|
|
10
|
+
import "../__chunks/URUD7X4C.js";
|
|
11
11
|
import {
|
|
12
12
|
batch,
|
|
13
13
|
createStore,
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
setup,
|
|
17
17
|
sync,
|
|
18
18
|
throwOnConflictingProps
|
|
19
|
-
} from "../__chunks/
|
|
19
|
+
} from "../__chunks/R676XYVY.js";
|
|
20
20
|
import {
|
|
21
21
|
defaultValue
|
|
22
|
-
} from "../__chunks/
|
|
23
|
-
import "../__chunks/
|
|
22
|
+
} from "../__chunks/22HHDS5F.js";
|
|
23
|
+
import "../__chunks/RRSZHCH6.js";
|
|
24
24
|
import {
|
|
25
25
|
toArray
|
|
26
26
|
} from "../__chunks/7PRQYBBV.js";
|
package/esm/tab/tab-store.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCompositeStore
|
|
4
|
-
} from "../__chunks/
|
|
4
|
+
} from "../__chunks/2H5K47H4.js";
|
|
5
5
|
import {
|
|
6
6
|
createCollectionStore
|
|
7
|
-
} from "../__chunks/
|
|
7
|
+
} from "../__chunks/URUD7X4C.js";
|
|
8
8
|
import {
|
|
9
9
|
batch,
|
|
10
10
|
createStore,
|
|
11
11
|
setup,
|
|
12
12
|
sync
|
|
13
|
-
} from "../__chunks/
|
|
13
|
+
} from "../__chunks/R676XYVY.js";
|
|
14
14
|
import {
|
|
15
15
|
defaultValue
|
|
16
|
-
} from "../__chunks/
|
|
17
|
-
import "../__chunks/
|
|
16
|
+
} from "../__chunks/22HHDS5F.js";
|
|
17
|
+
import "../__chunks/RRSZHCH6.js";
|
|
18
18
|
import "../__chunks/7PRQYBBV.js";
|
|
19
19
|
import {
|
|
20
20
|
__spreadProps,
|
|
@@ -12,7 +12,7 @@ export interface ToolbarStoreState extends CompositeStoreState {
|
|
|
12
12
|
}
|
|
13
13
|
export interface ToolbarStoreFunctions extends CompositeStoreFunctions {
|
|
14
14
|
}
|
|
15
|
-
export interface ToolbarStoreOptions extends
|
|
15
|
+
export interface ToolbarStoreOptions extends StoreOptions<ToolbarStoreState, "orientation" | "focusLoop">, CompositeStoreOptions {
|
|
16
16
|
}
|
|
17
17
|
export interface ToolbarStoreProps extends ToolbarStoreOptions, StoreProps<ToolbarStoreState> {
|
|
18
18
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCompositeStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/2H5K47H4.js";
|
|
5
|
+
import "../__chunks/URUD7X4C.js";
|
|
6
|
+
import "../__chunks/R676XYVY.js";
|
|
7
7
|
import {
|
|
8
8
|
defaultValue
|
|
9
|
-
} from "../__chunks/
|
|
10
|
-
import "../__chunks/
|
|
9
|
+
} from "../__chunks/22HHDS5F.js";
|
|
10
|
+
import "../__chunks/RRSZHCH6.js";
|
|
11
11
|
import "../__chunks/7PRQYBBV.js";
|
|
12
12
|
import {
|
|
13
13
|
__spreadProps,
|
|
@@ -25,7 +25,7 @@ export interface TooltipStoreState extends HovercardStoreState {
|
|
|
25
25
|
skipTimeout: number;
|
|
26
26
|
}
|
|
27
27
|
export type TooltipStoreFunctions = HovercardStoreFunctions;
|
|
28
|
-
export interface TooltipStoreOptions extends
|
|
28
|
+
export interface TooltipStoreOptions extends StoreOptions<TooltipStoreState, "type" | "placement" | "timeout" | "showTimeout" | "hideTimeout" | "skipTimeout">, HovercardStoreOptions {
|
|
29
29
|
}
|
|
30
30
|
export interface TooltipStoreProps extends TooltipStoreOptions, StoreProps<TooltipStoreState> {
|
|
31
31
|
}
|