@ariakit/core 0.4.14 → 0.4.15
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 +4 -0
- package/cjs/__chunks/{TFI7KVZO.cjs → CEJUJMDW.cjs} +2 -2
- package/cjs/__chunks/{K7YTZVWC.cjs → RNIVVQWX.cjs} +3 -3
- package/cjs/collection/collection-store.cjs +3 -3
- package/cjs/collection/collection-store.d.cts +4 -0
- package/cjs/collection/collection-store.d.ts +4 -0
- package/cjs/combobox/combobox-store.cjs +9 -9
- package/cjs/combobox/combobox-store.d.cts +4 -1
- package/cjs/combobox/combobox-store.d.ts +4 -1
- package/cjs/composite/composite-store.cjs +4 -4
- package/cjs/composite/composite-store.d.cts +10 -0
- package/cjs/composite/composite-store.d.ts +10 -0
- package/cjs/form/form-store.cjs +12 -3
- package/cjs/menu/menu-bar-store.cjs +5 -5
- package/cjs/menu/menu-store.cjs +5 -5
- package/cjs/menubar/menubar-store.cjs +5 -5
- package/cjs/radio/radio-store.cjs +4 -4
- package/cjs/select/select-store.cjs +6 -6
- package/cjs/tab/tab-store.cjs +6 -6
- package/cjs/tab/tab-store.d.cts +4 -0
- package/cjs/tab/tab-store.d.ts +4 -0
- package/cjs/tag/tag-store.cjs +6 -6
- package/cjs/toolbar/toolbar-store.cjs +4 -4
- package/esm/__chunks/{AJZ4BYF3.js → 2CHYBBFH.js} +3 -3
- package/esm/__chunks/{7HRRFUKQ.js → PQ5AROUB.js} +1 -1
- package/esm/collection/collection-store.d.ts +4 -0
- package/esm/collection/collection-store.js +2 -2
- package/esm/combobox/combobox-store.d.ts +4 -1
- package/esm/combobox/combobox-store.js +9 -9
- package/esm/composite/composite-store.d.ts +10 -0
- package/esm/composite/composite-store.js +3 -3
- package/esm/form/form-store.js +11 -2
- package/esm/menu/menu-bar-store.js +4 -4
- package/esm/menu/menu-store.js +4 -4
- package/esm/menubar/menubar-store.js +4 -4
- package/esm/radio/radio-store.js +3 -3
- package/esm/select/select-store.js +6 -6
- package/esm/tab/tab-store.d.ts +4 -0
- package/esm/tab/tab-store.js +4 -4
- package/esm/tag/tag-store.js +6 -6
- package/esm/toolbar/toolbar-store.js +3 -3
- package/package.json +113 -113
- package/readme.md +3 -2
- package/cjs/__chunks/{BUEPUCQL.cjs → MNBBM5CR.cjs} +3 -3
- package/esm/__chunks/{CYQWQL4J.js → EO4GVUA4.js} +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# @ariakit/core
|
|
2
2
|
|
|
3
|
+
## 0.4.15
|
|
4
|
+
|
|
5
|
+
- Fixed `valid` state not updating on [Form](https://ariakit.org/components/form).
|
|
6
|
+
|
|
3
7
|
## 0.4.14
|
|
4
8
|
|
|
5
9
|
- Fixed a regression on [Hovercard](https://ariakit.org/components/hovercard) that sometimes prevented it from closing when other popups were opened.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _RNIVVQWXcjs = require('./RNIVVQWX.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _ASR6PAFNcjs = require('./ASR6PAFN.cjs');
|
|
@@ -16,7 +16,7 @@ var _7EQBAZ46cjs = require('./7EQBAZ46.cjs');
|
|
|
16
16
|
function createMenubarStore(props = {}) {
|
|
17
17
|
var _a;
|
|
18
18
|
const syncState = (_a = props.store) == null ? void 0 : _a.getState();
|
|
19
|
-
const composite =
|
|
19
|
+
const composite = _RNIVVQWXcjs.createCompositeStore.call(void 0, _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, props), {
|
|
20
20
|
orientation: _MLCPLY2Pcjs.defaultValue.call(void 0,
|
|
21
21
|
props.orientation,
|
|
22
22
|
syncState == null ? void 0 : syncState.orientation,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var _BUEPUCQLcjs = require('./BUEPUCQL.cjs');
|
|
4
3
|
|
|
4
|
+
var _GDZQUFNPcjs = require('./GDZQUFNP.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _MNBBM5CRcjs = require('./MNBBM5CR.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -116,7 +116,7 @@ function verticalizeItems(items) {
|
|
|
116
116
|
function createCompositeStore(props = {}) {
|
|
117
117
|
var _a;
|
|
118
118
|
const syncState = (_a = props.store) == null ? void 0 : _a.getState();
|
|
119
|
-
const collection =
|
|
119
|
+
const collection = _MNBBM5CRcjs.createCollectionStore.call(void 0, props);
|
|
120
120
|
const activeId = _MLCPLY2Pcjs.defaultValue.call(void 0,
|
|
121
121
|
props.activeId,
|
|
122
122
|
syncState == null ? void 0 : syncState.activeId,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _MNBBM5CRcjs = require('../__chunks/MNBBM5CR.cjs');
|
|
4
|
+
require('../__chunks/726BNPQZ.cjs');
|
|
4
5
|
require('../__chunks/ASR6PAFN.cjs');
|
|
5
6
|
require('../__chunks/MLCPLY2P.cjs');
|
|
6
|
-
require('../__chunks/726BNPQZ.cjs');
|
|
7
7
|
require('../__chunks/7EQBAZ46.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.createCollectionStore =
|
|
10
|
+
exports.createCollectionStore = _MNBBM5CRcjs.createCollectionStore;
|
|
@@ -20,6 +20,10 @@ export interface CollectionStoreState<T extends CollectionStoreItem = Collection
|
|
|
20
20
|
* updated when an item is registered or unregistered using the
|
|
21
21
|
* [`registerItem`](https://ariakit.org/reference/use-collection-store#registeritem)
|
|
22
22
|
* function.
|
|
23
|
+
*
|
|
24
|
+
* Live examples:
|
|
25
|
+
* - [Command Menu with
|
|
26
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
23
27
|
*/
|
|
24
28
|
items: T[];
|
|
25
29
|
/**
|
|
@@ -20,6 +20,10 @@ export interface CollectionStoreState<T extends CollectionStoreItem = Collection
|
|
|
20
20
|
* updated when an item is registered or unregistered using the
|
|
21
21
|
* [`registerItem`](https://ariakit.org/reference/use-collection-store#registeritem)
|
|
22
22
|
* function.
|
|
23
|
+
*
|
|
24
|
+
* Live examples:
|
|
25
|
+
* - [Command Menu with
|
|
26
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
23
27
|
*/
|
|
24
28
|
items: T[];
|
|
25
29
|
/**
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
require('../__chunks/
|
|
5
|
-
require('../__chunks/GDZQUFNP.cjs');
|
|
3
|
+
|
|
4
|
+
var _WOLZY4WCcjs = require('../__chunks/WOLZY4WC.cjs');
|
|
6
5
|
|
|
7
6
|
|
|
8
7
|
var _BVPEDDW6cjs = require('../__chunks/BVPEDDW6.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _RNIVVQWXcjs = require('../__chunks/RNIVVQWX.cjs');
|
|
11
|
+
require('../__chunks/GDZQUFNP.cjs');
|
|
9
12
|
require('../__chunks/YMCSKJHR.cjs');
|
|
10
13
|
require('../__chunks/V4YF2QA6.cjs');
|
|
14
|
+
require('../__chunks/MNBBM5CR.cjs');
|
|
15
|
+
require('../__chunks/726BNPQZ.cjs');
|
|
11
16
|
|
|
12
17
|
|
|
13
18
|
|
|
@@ -24,11 +29,6 @@ var _MLCPLY2Pcjs = require('../__chunks/MLCPLY2P.cjs');
|
|
|
24
29
|
|
|
25
30
|
|
|
26
31
|
|
|
27
|
-
var _WOLZY4WCcjs = require('../__chunks/WOLZY4WC.cjs');
|
|
28
|
-
require('../__chunks/726BNPQZ.cjs');
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
32
|
|
|
33
33
|
var _7EQBAZ46cjs = require('../__chunks/7EQBAZ46.cjs');
|
|
34
34
|
|
|
@@ -50,7 +50,7 @@ function createComboboxStore(_a = {}) {
|
|
|
50
50
|
props.defaultActiveId,
|
|
51
51
|
null
|
|
52
52
|
);
|
|
53
|
-
const composite =
|
|
53
|
+
const composite = _RNIVVQWXcjs.createCompositeStore.call(void 0, _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, props), {
|
|
54
54
|
activeId,
|
|
55
55
|
includesBaseElement: _MLCPLY2Pcjs.defaultValue.call(void 0,
|
|
56
56
|
props.includesBaseElement,
|
|
@@ -36,6 +36,8 @@ export interface ComboboxStoreState<T extends ComboboxStoreSelectedValue = Combo
|
|
|
36
36
|
* Combobox](https://ariakit.org/examples/combobox-multiple)
|
|
37
37
|
* - [Textarea with inline
|
|
38
38
|
* Combobox](https://ariakit.org/examples/combobox-textarea)
|
|
39
|
+
* - [Command Menu with
|
|
40
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
39
41
|
*/
|
|
40
42
|
value: string;
|
|
41
43
|
/**
|
|
@@ -70,7 +72,8 @@ export interface ComboboxStoreState<T extends ComboboxStoreSelectedValue = Combo
|
|
|
70
72
|
* - [Select with Combobox](https://ariakit.org/examples/select-combobox)
|
|
71
73
|
* - [Submenu with
|
|
72
74
|
* Combobox](https://ariakit.org/examples/menu-nested-combobox)
|
|
73
|
-
* - [Command Menu
|
|
75
|
+
* - [Command Menu with
|
|
76
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
74
77
|
* - [Select with Combobox and
|
|
75
78
|
* Tabs](https://ariakit.org/examples/select-combobox-tab)
|
|
76
79
|
*/
|
|
@@ -36,6 +36,8 @@ export interface ComboboxStoreState<T extends ComboboxStoreSelectedValue = Combo
|
|
|
36
36
|
* Combobox](https://ariakit.org/examples/combobox-multiple)
|
|
37
37
|
* - [Textarea with inline
|
|
38
38
|
* Combobox](https://ariakit.org/examples/combobox-textarea)
|
|
39
|
+
* - [Command Menu with
|
|
40
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
39
41
|
*/
|
|
40
42
|
value: string;
|
|
41
43
|
/**
|
|
@@ -70,7 +72,8 @@ export interface ComboboxStoreState<T extends ComboboxStoreSelectedValue = Combo
|
|
|
70
72
|
* - [Select with Combobox](https://ariakit.org/examples/select-combobox)
|
|
71
73
|
* - [Submenu with
|
|
72
74
|
* Combobox](https://ariakit.org/examples/menu-nested-combobox)
|
|
73
|
-
* - [Command Menu
|
|
75
|
+
* - [Command Menu with
|
|
76
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
74
77
|
* - [Select with Combobox and
|
|
75
78
|
* Tabs](https://ariakit.org/examples/select-combobox-tab)
|
|
76
79
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../__chunks/BUEPUCQL.cjs');
|
|
3
|
+
var _RNIVVQWXcjs = require('../__chunks/RNIVVQWX.cjs');
|
|
5
4
|
require('../__chunks/GDZQUFNP.cjs');
|
|
5
|
+
require('../__chunks/MNBBM5CR.cjs');
|
|
6
|
+
require('../__chunks/726BNPQZ.cjs');
|
|
6
7
|
require('../__chunks/ASR6PAFN.cjs');
|
|
7
8
|
require('../__chunks/MLCPLY2P.cjs');
|
|
8
|
-
require('../__chunks/726BNPQZ.cjs');
|
|
9
9
|
require('../__chunks/7EQBAZ46.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.createCompositeStore =
|
|
12
|
+
exports.createCompositeStore = _RNIVVQWXcjs.createCompositeStore;
|
|
@@ -131,6 +131,8 @@ export interface CompositeStoreState<T extends CompositeStoreItem = CompositeSto
|
|
|
131
131
|
*
|
|
132
132
|
* Live examples:
|
|
133
133
|
* - [Command Menu](https://ariakit.org/examples/dialog-combobox-command-menu)
|
|
134
|
+
* - [Command Menu with
|
|
135
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
134
136
|
* @default false
|
|
135
137
|
*/
|
|
136
138
|
focusLoop: boolean | Orientation;
|
|
@@ -147,6 +149,10 @@ export interface CompositeStoreState<T extends CompositeStoreItem = CompositeSto
|
|
|
147
149
|
* matches the value of `focusWrap`, it'll wrap between the last item in the
|
|
148
150
|
* last row or column and the first item in the first row or column and
|
|
149
151
|
* vice-versa.
|
|
152
|
+
*
|
|
153
|
+
* Live examples:
|
|
154
|
+
* - [Command Menu with
|
|
155
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
150
156
|
* @default false
|
|
151
157
|
*/
|
|
152
158
|
focusWrap: boolean | Orientation;
|
|
@@ -155,6 +161,10 @@ export interface CompositeStoreState<T extends CompositeStoreItem = CompositeSto
|
|
|
155
161
|
*
|
|
156
162
|
* If enabled, moving up or down when there's no next item or when the next
|
|
157
163
|
* item is disabled will shift to the item right before it.
|
|
164
|
+
*
|
|
165
|
+
* Live examples:
|
|
166
|
+
* - [Command Menu with
|
|
167
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
158
168
|
* @default false
|
|
159
169
|
*/
|
|
160
170
|
focusShift: boolean;
|
|
@@ -131,6 +131,8 @@ export interface CompositeStoreState<T extends CompositeStoreItem = CompositeSto
|
|
|
131
131
|
*
|
|
132
132
|
* Live examples:
|
|
133
133
|
* - [Command Menu](https://ariakit.org/examples/dialog-combobox-command-menu)
|
|
134
|
+
* - [Command Menu with
|
|
135
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
134
136
|
* @default false
|
|
135
137
|
*/
|
|
136
138
|
focusLoop: boolean | Orientation;
|
|
@@ -147,6 +149,10 @@ export interface CompositeStoreState<T extends CompositeStoreItem = CompositeSto
|
|
|
147
149
|
* matches the value of `focusWrap`, it'll wrap between the last item in the
|
|
148
150
|
* last row or column and the first item in the first row or column and
|
|
149
151
|
* vice-versa.
|
|
152
|
+
*
|
|
153
|
+
* Live examples:
|
|
154
|
+
* - [Command Menu with
|
|
155
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
150
156
|
* @default false
|
|
151
157
|
*/
|
|
152
158
|
focusWrap: boolean | Orientation;
|
|
@@ -155,6 +161,10 @@ export interface CompositeStoreState<T extends CompositeStoreItem = CompositeSto
|
|
|
155
161
|
*
|
|
156
162
|
* If enabled, moving up or down when there's no next item or when the next
|
|
157
163
|
* item is disabled will shift to the item right before it.
|
|
164
|
+
*
|
|
165
|
+
* Live examples:
|
|
166
|
+
* - [Command Menu with
|
|
167
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
158
168
|
* @default false
|
|
159
169
|
*/
|
|
160
170
|
focusShift: boolean;
|
package/cjs/form/form-store.cjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _MNBBM5CRcjs = require('../__chunks/MNBBM5CR.cjs');
|
|
4
|
+
require('../__chunks/726BNPQZ.cjs');
|
|
5
|
+
|
|
4
6
|
|
|
5
7
|
|
|
6
8
|
|
|
@@ -13,7 +15,6 @@ var _ASR6PAFNcjs = require('../__chunks/ASR6PAFN.cjs');
|
|
|
13
15
|
|
|
14
16
|
|
|
15
17
|
var _MLCPLY2Pcjs = require('../__chunks/MLCPLY2P.cjs');
|
|
16
|
-
require('../__chunks/726BNPQZ.cjs');
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
|
|
@@ -114,7 +115,7 @@ function createFormStore(props = {}) {
|
|
|
114
115
|
var _a;
|
|
115
116
|
_ASR6PAFNcjs.throwOnConflictingProps.call(void 0, props, props.store);
|
|
116
117
|
const syncState = (_a = props.store) == null ? void 0 : _a.getState();
|
|
117
|
-
const collection =
|
|
118
|
+
const collection = _MNBBM5CRcjs.createCollectionStore.call(void 0, props);
|
|
118
119
|
const values = _MLCPLY2Pcjs.defaultValue.call(void 0,
|
|
119
120
|
props.values,
|
|
120
121
|
syncState == null ? void 0 : syncState.values,
|
|
@@ -152,6 +153,13 @@ function createFormStore(props = {}) {
|
|
|
152
153
|
};
|
|
153
154
|
const callbacks = _ASR6PAFNcjs.createStore.call(void 0, callbacksInitialState, syncCallbacks);
|
|
154
155
|
_ASR6PAFNcjs.setup.call(void 0, form, () => _ASR6PAFNcjs.init.call(void 0, callbacks));
|
|
156
|
+
_ASR6PAFNcjs.setup.call(void 0,
|
|
157
|
+
form,
|
|
158
|
+
() => _ASR6PAFNcjs.sync.call(void 0, form, ["validating", "errors"], (state) => {
|
|
159
|
+
if (state.validating) return;
|
|
160
|
+
form.setState("valid", !hasMessages(state.errors));
|
|
161
|
+
})
|
|
162
|
+
);
|
|
155
163
|
const validate = async () => {
|
|
156
164
|
form.setState("validating", true);
|
|
157
165
|
form.setState("errors", {});
|
|
@@ -255,6 +263,7 @@ function createFormStore(props = {}) {
|
|
|
255
263
|
form.setState("submitting", false);
|
|
256
264
|
form.setState("submitSucceed", 0);
|
|
257
265
|
form.setState("submitFailed", 0);
|
|
266
|
+
form.setState("valid", !hasMessages(errors));
|
|
258
267
|
},
|
|
259
268
|
// @ts-expect-error Internal
|
|
260
269
|
__unstableCallbacks: callbacks
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../__chunks/
|
|
5
|
-
require('../__chunks/BUEPUCQL.cjs');
|
|
3
|
+
var _CEJUJMDWcjs = require('../__chunks/CEJUJMDW.cjs');
|
|
4
|
+
require('../__chunks/RNIVVQWX.cjs');
|
|
6
5
|
require('../__chunks/GDZQUFNP.cjs');
|
|
6
|
+
require('../__chunks/MNBBM5CR.cjs');
|
|
7
|
+
require('../__chunks/726BNPQZ.cjs');
|
|
7
8
|
require('../__chunks/ASR6PAFN.cjs');
|
|
8
9
|
require('../__chunks/MLCPLY2P.cjs');
|
|
9
|
-
require('../__chunks/726BNPQZ.cjs');
|
|
10
10
|
require('../__chunks/7EQBAZ46.cjs');
|
|
11
11
|
|
|
12
12
|
// src/menu/menu-bar-store.ts
|
|
13
13
|
function createMenuBarStore(props = {}) {
|
|
14
|
-
return
|
|
14
|
+
return _CEJUJMDWcjs.createMenubarStore.call(void 0, props);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
package/cjs/menu/menu-store.cjs
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
var _RL7DKHOFcjs = require('../__chunks/RL7DKHOF.cjs');
|
|
4
|
+
require('../__chunks/BVPEDDW6.cjs');
|
|
4
5
|
|
|
5
6
|
|
|
6
|
-
var
|
|
7
|
-
require('../__chunks/BUEPUCQL.cjs');
|
|
7
|
+
var _RNIVVQWXcjs = require('../__chunks/RNIVVQWX.cjs');
|
|
8
8
|
require('../__chunks/GDZQUFNP.cjs');
|
|
9
|
-
require('../__chunks/BVPEDDW6.cjs');
|
|
10
9
|
require('../__chunks/YMCSKJHR.cjs');
|
|
11
10
|
require('../__chunks/V4YF2QA6.cjs');
|
|
11
|
+
require('../__chunks/MNBBM5CR.cjs');
|
|
12
|
+
require('../__chunks/726BNPQZ.cjs');
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
|
|
@@ -22,7 +23,6 @@ var _ASR6PAFNcjs = require('../__chunks/ASR6PAFN.cjs');
|
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
var _MLCPLY2Pcjs = require('../__chunks/MLCPLY2P.cjs');
|
|
25
|
-
require('../__chunks/726BNPQZ.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -54,7 +54,7 @@ function createMenuStore(_a = {}) {
|
|
|
54
54
|
);
|
|
55
55
|
_ASR6PAFNcjs.throwOnConflictingProps.call(void 0, props, store);
|
|
56
56
|
const syncState = store.getState();
|
|
57
|
-
const composite =
|
|
57
|
+
const composite = _RNIVVQWXcjs.createCompositeStore.call(void 0, _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, props), {
|
|
58
58
|
store,
|
|
59
59
|
orientation: _MLCPLY2Pcjs.defaultValue.call(void 0,
|
|
60
60
|
props.orientation,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../__chunks/
|
|
5
|
-
require('../__chunks/BUEPUCQL.cjs');
|
|
3
|
+
var _CEJUJMDWcjs = require('../__chunks/CEJUJMDW.cjs');
|
|
4
|
+
require('../__chunks/RNIVVQWX.cjs');
|
|
6
5
|
require('../__chunks/GDZQUFNP.cjs');
|
|
6
|
+
require('../__chunks/MNBBM5CR.cjs');
|
|
7
|
+
require('../__chunks/726BNPQZ.cjs');
|
|
7
8
|
require('../__chunks/ASR6PAFN.cjs');
|
|
8
9
|
require('../__chunks/MLCPLY2P.cjs');
|
|
9
|
-
require('../__chunks/726BNPQZ.cjs');
|
|
10
10
|
require('../__chunks/7EQBAZ46.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.createMenubarStore =
|
|
13
|
+
exports.createMenubarStore = _CEJUJMDWcjs.createMenubarStore;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../__chunks/BUEPUCQL.cjs');
|
|
3
|
+
var _RNIVVQWXcjs = require('../__chunks/RNIVVQWX.cjs');
|
|
5
4
|
require('../__chunks/GDZQUFNP.cjs');
|
|
5
|
+
require('../__chunks/MNBBM5CR.cjs');
|
|
6
|
+
require('../__chunks/726BNPQZ.cjs');
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
var _ASR6PAFNcjs = require('../__chunks/ASR6PAFN.cjs');
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
var _MLCPLY2Pcjs = require('../__chunks/MLCPLY2P.cjs');
|
|
12
|
-
require('../__chunks/726BNPQZ.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -21,7 +21,7 @@ function createRadioStore(_a = {}) {
|
|
|
21
21
|
var props = _7EQBAZ46cjs.__objRest.call(void 0, _a, []);
|
|
22
22
|
var _a2;
|
|
23
23
|
const syncState = (_a2 = props.store) == null ? void 0 : _a2.getState();
|
|
24
|
-
const composite =
|
|
24
|
+
const composite = _RNIVVQWXcjs.createCompositeStore.call(void 0, _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, props), {
|
|
25
25
|
focusLoop: _MLCPLY2Pcjs.defaultValue.call(void 0, props.focusLoop, syncState == null ? void 0 : syncState.focusLoop, true)
|
|
26
26
|
}));
|
|
27
27
|
const initialState = _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, composite.getState()), {
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../__chunks/BUEPUCQL.cjs');
|
|
3
|
+
var _BVPEDDW6cjs = require('../__chunks/BVPEDDW6.cjs');
|
|
5
4
|
|
|
6
5
|
|
|
7
|
-
var
|
|
6
|
+
var _RNIVVQWXcjs = require('../__chunks/RNIVVQWX.cjs');
|
|
8
7
|
|
|
9
8
|
|
|
10
|
-
var
|
|
9
|
+
var _GDZQUFNPcjs = require('../__chunks/GDZQUFNP.cjs');
|
|
11
10
|
require('../__chunks/YMCSKJHR.cjs');
|
|
12
11
|
require('../__chunks/V4YF2QA6.cjs');
|
|
12
|
+
require('../__chunks/MNBBM5CR.cjs');
|
|
13
|
+
require('../__chunks/726BNPQZ.cjs');
|
|
13
14
|
|
|
14
15
|
|
|
15
16
|
|
|
@@ -22,7 +23,6 @@ var _ASR6PAFNcjs = require('../__chunks/ASR6PAFN.cjs');
|
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
var _MLCPLY2Pcjs = require('../__chunks/MLCPLY2P.cjs');
|
|
25
|
-
require('../__chunks/726BNPQZ.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -52,7 +52,7 @@ function createSelectStore(_a = {}) {
|
|
|
52
52
|
);
|
|
53
53
|
_ASR6PAFNcjs.throwOnConflictingProps.call(void 0, props, store);
|
|
54
54
|
const syncState = store.getState();
|
|
55
|
-
const composite =
|
|
55
|
+
const composite = _RNIVVQWXcjs.createCompositeStore.call(void 0, _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, props), {
|
|
56
56
|
store,
|
|
57
57
|
virtualFocus: _MLCPLY2Pcjs.defaultValue.call(void 0,
|
|
58
58
|
props.virtualFocus,
|
package/cjs/tab/tab-store.cjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _RNIVVQWXcjs = require('../__chunks/RNIVVQWX.cjs');
|
|
4
|
+
require('../__chunks/GDZQUFNP.cjs');
|
|
4
5
|
|
|
5
6
|
|
|
6
|
-
var
|
|
7
|
-
require('../__chunks/
|
|
7
|
+
var _MNBBM5CRcjs = require('../__chunks/MNBBM5CR.cjs');
|
|
8
|
+
require('../__chunks/726BNPQZ.cjs');
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
@@ -17,7 +18,6 @@ var _ASR6PAFNcjs = require('../__chunks/ASR6PAFN.cjs');
|
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
var _MLCPLY2Pcjs = require('../__chunks/MLCPLY2P.cjs');
|
|
20
|
-
require('../__chunks/726BNPQZ.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -51,7 +51,7 @@ function createTabStore(_a = {}) {
|
|
|
51
51
|
_ASR6PAFNcjs.omit.call(void 0, combobox, independentKeys)
|
|
52
52
|
);
|
|
53
53
|
const syncState = store == null ? void 0 : store.getState();
|
|
54
|
-
const composite =
|
|
54
|
+
const composite = _RNIVVQWXcjs.createCompositeStore.call(void 0, _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, props), {
|
|
55
55
|
store,
|
|
56
56
|
// We need to explicitly set the default value of `includesBaseElement` to
|
|
57
57
|
// `false` since we don't want the composite store to default it to `true`
|
|
@@ -69,7 +69,7 @@ function createTabStore(_a = {}) {
|
|
|
69
69
|
),
|
|
70
70
|
focusLoop: _MLCPLY2Pcjs.defaultValue.call(void 0, props.focusLoop, syncState == null ? void 0 : syncState.focusLoop, true)
|
|
71
71
|
}));
|
|
72
|
-
const panels =
|
|
72
|
+
const panels = _MNBBM5CRcjs.createCollectionStore.call(void 0, );
|
|
73
73
|
const initialState = _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, composite.getState()), {
|
|
74
74
|
selectedId: _MLCPLY2Pcjs.defaultValue.call(void 0,
|
|
75
75
|
props.selectedId,
|
package/cjs/tab/tab-store.d.cts
CHANGED
|
@@ -25,6 +25,8 @@ export interface TabStoreState extends CompositeStoreState<TabStoreItem> {
|
|
|
25
25
|
* - [Combobox with Tabs](https://ariakit.org/examples/combobox-tabs)
|
|
26
26
|
* - [Select with Combobox and
|
|
27
27
|
* Tabs](https://ariakit.org/examples/select-combobox-tab)
|
|
28
|
+
* - [Command Menu with
|
|
29
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
28
30
|
*/
|
|
29
31
|
selectedId: TabStoreState["activeId"];
|
|
30
32
|
/**
|
|
@@ -107,6 +109,8 @@ export interface TabStoreOptions extends StoreOptions<TabStoreState, "orientatio
|
|
|
107
109
|
* - [Animated TabPanel](https://ariakit.org/examples/tab-panel-animated)
|
|
108
110
|
* - [Select with Combobox and
|
|
109
111
|
* Tabs](https://ariakit.org/examples/select-combobox-tab)
|
|
112
|
+
* - [Command Menu with
|
|
113
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
110
114
|
*/
|
|
111
115
|
defaultSelectedId?: TabStoreState["selectedId"];
|
|
112
116
|
}
|
package/cjs/tab/tab-store.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ export interface TabStoreState extends CompositeStoreState<TabStoreItem> {
|
|
|
25
25
|
* - [Combobox with Tabs](https://ariakit.org/examples/combobox-tabs)
|
|
26
26
|
* - [Select with Combobox and
|
|
27
27
|
* Tabs](https://ariakit.org/examples/select-combobox-tab)
|
|
28
|
+
* - [Command Menu with
|
|
29
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
28
30
|
*/
|
|
29
31
|
selectedId: TabStoreState["activeId"];
|
|
30
32
|
/**
|
|
@@ -107,6 +109,8 @@ export interface TabStoreOptions extends StoreOptions<TabStoreState, "orientatio
|
|
|
107
109
|
* - [Animated TabPanel](https://ariakit.org/examples/tab-panel-animated)
|
|
108
110
|
* - [Select with Combobox and
|
|
109
111
|
* Tabs](https://ariakit.org/examples/select-combobox-tab)
|
|
112
|
+
* - [Command Menu with
|
|
113
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
110
114
|
*/
|
|
111
115
|
defaultSelectedId?: TabStoreState["selectedId"];
|
|
112
116
|
}
|
package/cjs/tag/tag-store.cjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../__chunks/BUEPUCQL.cjs');
|
|
5
|
-
require('../__chunks/GDZQUFNP.cjs');
|
|
3
|
+
var _SHOLYDNPcjs = require('../__chunks/SHOLYDNP.cjs');
|
|
6
4
|
|
|
7
5
|
|
|
8
|
-
var
|
|
6
|
+
var _RNIVVQWXcjs = require('../__chunks/RNIVVQWX.cjs');
|
|
7
|
+
require('../__chunks/GDZQUFNP.cjs');
|
|
8
|
+
require('../__chunks/MNBBM5CR.cjs');
|
|
9
|
+
require('../__chunks/726BNPQZ.cjs');
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
|
|
@@ -15,7 +16,6 @@ var _ASR6PAFNcjs = require('../__chunks/ASR6PAFN.cjs');
|
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
var _MLCPLY2Pcjs = require('../__chunks/MLCPLY2P.cjs');
|
|
18
|
-
require('../__chunks/726BNPQZ.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -25,7 +25,7 @@ var _7EQBAZ46cjs = require('../__chunks/7EQBAZ46.cjs');
|
|
|
25
25
|
function createTagStore(props = {}) {
|
|
26
26
|
var _a;
|
|
27
27
|
const syncState = (_a = props.store) == null ? void 0 : _a.getState();
|
|
28
|
-
const composite =
|
|
28
|
+
const composite = _RNIVVQWXcjs.createCompositeStore.call(void 0, props);
|
|
29
29
|
const initialState = _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, composite.getState()), {
|
|
30
30
|
inputElement: _MLCPLY2Pcjs.defaultValue.call(void 0, syncState == null ? void 0 : syncState.inputElement, null),
|
|
31
31
|
labelElement: _MLCPLY2Pcjs.defaultValue.call(void 0, syncState == null ? void 0 : syncState.labelElement, null),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../__chunks/BUEPUCQL.cjs');
|
|
3
|
+
var _RNIVVQWXcjs = require('../__chunks/RNIVVQWX.cjs');
|
|
5
4
|
require('../__chunks/GDZQUFNP.cjs');
|
|
5
|
+
require('../__chunks/MNBBM5CR.cjs');
|
|
6
|
+
require('../__chunks/726BNPQZ.cjs');
|
|
6
7
|
require('../__chunks/ASR6PAFN.cjs');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
var _MLCPLY2Pcjs = require('../__chunks/MLCPLY2P.cjs');
|
|
10
|
-
require('../__chunks/726BNPQZ.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -17,7 +17,7 @@ var _7EQBAZ46cjs = require('../__chunks/7EQBAZ46.cjs');
|
|
|
17
17
|
function createToolbarStore(props = {}) {
|
|
18
18
|
var _a;
|
|
19
19
|
const syncState = (_a = props.store) == null ? void 0 : _a.getState();
|
|
20
|
-
return
|
|
20
|
+
return _RNIVVQWXcjs.createCompositeStore.call(void 0, _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, props), {
|
|
21
21
|
orientation: _MLCPLY2Pcjs.defaultValue.call(void 0,
|
|
22
22
|
props.orientation,
|
|
23
23
|
syncState == null ? void 0 : syncState.orientation,
|
|
@@ -20,6 +20,10 @@ export interface CollectionStoreState<T extends CollectionStoreItem = Collection
|
|
|
20
20
|
* updated when an item is registered or unregistered using the
|
|
21
21
|
* [`registerItem`](https://ariakit.org/reference/use-collection-store#registeritem)
|
|
22
22
|
* function.
|
|
23
|
+
*
|
|
24
|
+
* Live examples:
|
|
25
|
+
* - [Command Menu with
|
|
26
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
23
27
|
*/
|
|
24
28
|
items: T[];
|
|
25
29
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCollectionStore
|
|
4
|
-
} from "../__chunks/
|
|
4
|
+
} from "../__chunks/EO4GVUA4.js";
|
|
5
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
5
6
|
import "../__chunks/BCALMBPZ.js";
|
|
6
7
|
import "../__chunks/PBFD2E7P.js";
|
|
7
|
-
import "../__chunks/DTR5TSDJ.js";
|
|
8
8
|
import "../__chunks/3YLGPPWQ.js";
|
|
9
9
|
export {
|
|
10
10
|
createCollectionStore
|