@ariakit/core 0.4.6 → 0.4.7
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/{4W3OYRR3.cjs → 3COGJMN3.cjs} +9 -9
- package/cjs/__chunks/{B4AKUC4S.cjs → 5BQ2XS3R.cjs} +4 -4
- package/cjs/__chunks/{LTLFSC4X.cjs → DIYYVJDK.cjs} +2 -2
- package/cjs/__chunks/{AETQC2AR.cjs → LAYUSNGM.cjs} +11 -11
- package/cjs/__chunks/{3HYNC3XA.cjs → LBFF2BBK.cjs} +6 -6
- package/cjs/__chunks/{B4LYZ4EM.cjs → M2NNCFIJ.cjs} +13 -11
- package/cjs/__chunks/{5JEQEZFR.cjs → MB5TLEVH.cjs} +7 -7
- package/cjs/__chunks/{UEZLSKZ4.cjs → XVL5HZ27.cjs} +4 -4
- package/cjs/checkbox/checkbox-store.cjs +3 -3
- package/cjs/collection/collection-store.cjs +3 -3
- package/cjs/combobox/combobox-store.cjs +24 -24
- package/cjs/combobox/combobox-store.d.cts +2 -0
- package/cjs/combobox/combobox-store.d.ts +2 -0
- package/cjs/composite/composite-overflow-store.cjs +5 -5
- package/cjs/composite/composite-store.cjs +4 -4
- package/cjs/composite/composite-store.d.cts +5 -1
- package/cjs/composite/composite-store.d.ts +5 -1
- package/cjs/dialog/dialog-store.cjs +4 -4
- package/cjs/disclosure/disclosure-store.cjs +3 -3
- package/cjs/form/form-store.cjs +7 -7
- package/cjs/hovercard/hovercard-store.cjs +6 -6
- package/cjs/menu/menu-bar-store.cjs +5 -5
- package/cjs/menu/menu-store.cjs +18 -18
- package/cjs/menubar/menubar-store.cjs +5 -5
- package/cjs/popover/popover-store.cjs +5 -5
- package/cjs/radio/radio-store.cjs +5 -5
- package/cjs/select/select-store.cjs +20 -20
- package/cjs/select/select-store.d.cts +2 -0
- package/cjs/select/select-store.d.ts +2 -0
- package/cjs/tab/tab-store.cjs +23 -23
- package/cjs/tab/tab-store.d.cts +10 -4
- package/cjs/tab/tab-store.d.ts +10 -4
- package/cjs/tag/tag-store.cjs +7 -7
- package/cjs/toolbar/toolbar-store.cjs +4 -4
- package/cjs/tooltip/tooltip-store.cjs +7 -7
- package/cjs/utils/events.cjs +3 -1
- package/cjs/utils/focus.cjs +7 -3
- package/cjs/utils/store.cjs +2 -2
- package/esm/__chunks/{BRS7GKWU.js → E4HA32QI.js} +2 -2
- package/esm/__chunks/{EQPTKGFA.js → I2WJ7JBQ.js} +1 -1
- package/esm/__chunks/{WCKXDMU7.js → KDSZSVV5.js} +1 -1
- package/esm/__chunks/{R676XYVY.js → KLPDXTDE.js} +13 -11
- package/esm/__chunks/{5RJNXXU2.js → NWACXGIN.js} +1 -1
- package/esm/__chunks/{P3MTNH46.js → RCLYDUHE.js} +2 -2
- package/esm/__chunks/{MFZZDIHG.js → SAZZJI72.js} +2 -2
- package/esm/__chunks/{PBSSD2DM.js → VH2P7HEP.js} +2 -2
- package/esm/checkbox/checkbox-store.js +1 -1
- package/esm/collection/collection-store.js +2 -2
- package/esm/combobox/combobox-store.d.ts +2 -0
- package/esm/combobox/combobox-store.js +6 -6
- package/esm/composite/composite-overflow-store.js +4 -4
- package/esm/composite/composite-store.d.ts +5 -1
- package/esm/composite/composite-store.js +3 -3
- package/esm/dialog/dialog-store.js +3 -3
- package/esm/disclosure/disclosure-store.js +2 -2
- package/esm/form/form-store.js +2 -2
- package/esm/hovercard/hovercard-store.js +5 -5
- package/esm/menu/menu-bar-store.js +4 -4
- package/esm/menu/menu-store.js +7 -7
- package/esm/menubar/menubar-store.js +4 -4
- package/esm/popover/popover-store.js +4 -4
- package/esm/radio/radio-store.js +3 -3
- package/esm/select/select-store.d.ts +2 -0
- package/esm/select/select-store.js +6 -6
- package/esm/tab/tab-store.d.ts +10 -4
- package/esm/tab/tab-store.js +3 -3
- package/esm/tag/tag-store.js +3 -3
- package/esm/toolbar/toolbar-store.js +3 -3
- package/esm/tooltip/tooltip-store.js +5 -5
- package/esm/utils/events.js +3 -1
- package/esm/utils/focus.js +7 -3
- package/esm/utils/store.js +1 -1
- package/package.json +2 -2
- package/.eslintignore +0 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../__chunks/
|
|
4
|
+
var _LBFF2BBKcjs = require('../__chunks/LBFF2BBK.cjs');
|
|
5
|
+
require('../__chunks/3COGJMN3.cjs');
|
|
6
6
|
require('../__chunks/ULSPM3Y3.cjs');
|
|
7
|
-
require('../__chunks/
|
|
7
|
+
require('../__chunks/M2NNCFIJ.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _EEDWPDM2cjs = require('../__chunks/EEDWPDM2.cjs');
|
|
@@ -18,7 +18,7 @@ var _AV6KTKLEcjs = require('../__chunks/AV6KTKLE.cjs');
|
|
|
18
18
|
function createToolbarStore(props = {}) {
|
|
19
19
|
var _a;
|
|
20
20
|
const syncState = (_a = props.store) == null ? void 0 : _a.getState();
|
|
21
|
-
return
|
|
21
|
+
return _LBFF2BBKcjs.createCompositeStore.call(void 0, _AV6KTKLEcjs.__spreadProps.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {}, props), {
|
|
22
22
|
orientation: _EEDWPDM2cjs.defaultValue.call(void 0,
|
|
23
23
|
props.orientation,
|
|
24
24
|
syncState == null ? void 0 : syncState.orientation,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../__chunks/
|
|
6
|
-
require('../__chunks/
|
|
7
|
-
require('../__chunks/
|
|
4
|
+
var _XVL5HZ27cjs = require('../__chunks/XVL5HZ27.cjs');
|
|
5
|
+
require('../__chunks/MB5TLEVH.cjs');
|
|
6
|
+
require('../__chunks/DIYYVJDK.cjs');
|
|
7
|
+
require('../__chunks/LAYUSNGM.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _M2NNCFIJcjs = require('../__chunks/M2NNCFIJ.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _EEDWPDM2cjs = require('../__chunks/EEDWPDM2.cjs');
|
|
@@ -29,7 +29,7 @@ function createTooltipStore(props = {}) {
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
const syncState = (_a = props.store) == null ? void 0 : _a.getState();
|
|
32
|
-
const hovercard =
|
|
32
|
+
const hovercard = _XVL5HZ27cjs.createHovercardStore.call(void 0, _AV6KTKLEcjs.__spreadProps.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {}, props), {
|
|
33
33
|
placement: _EEDWPDM2cjs.defaultValue.call(void 0,
|
|
34
34
|
props.placement,
|
|
35
35
|
syncState == null ? void 0 : syncState.placement,
|
|
@@ -41,7 +41,7 @@ function createTooltipStore(props = {}) {
|
|
|
41
41
|
type: _EEDWPDM2cjs.defaultValue.call(void 0, props.type, syncState == null ? void 0 : syncState.type, "description"),
|
|
42
42
|
skipTimeout: _EEDWPDM2cjs.defaultValue.call(void 0, props.skipTimeout, syncState == null ? void 0 : syncState.skipTimeout, 300)
|
|
43
43
|
});
|
|
44
|
-
const tooltip =
|
|
44
|
+
const tooltip = _M2NNCFIJcjs.createStore.call(void 0, initialState, hovercard, props.store);
|
|
45
45
|
return _AV6KTKLEcjs.__spreadValues.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {}, hovercard), tooltip);
|
|
46
46
|
}
|
|
47
47
|
|
package/cjs/utils/events.cjs
CHANGED
|
@@ -127,7 +127,9 @@ function addGlobalEventListener(type, listener, options, scope = window) {
|
|
|
127
127
|
scope.document.removeEventListener(type, listener, options);
|
|
128
128
|
} catch (e) {
|
|
129
129
|
}
|
|
130
|
-
|
|
130
|
+
for (const remove of children) {
|
|
131
|
+
remove();
|
|
132
|
+
}
|
|
131
133
|
};
|
|
132
134
|
return removeEventListener;
|
|
133
135
|
}
|
package/cjs/utils/focus.cjs
CHANGED
|
@@ -12,7 +12,7 @@ var _AV6KTKLEcjs = require('../__chunks/AV6KTKLE.cjs');
|
|
|
12
12
|
// src/utils/focus.ts
|
|
13
13
|
var selector = "input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";
|
|
14
14
|
function hasNegativeTabIndex(element) {
|
|
15
|
-
const tabIndex = parseInt(element.getAttribute("tabindex") || "0", 10);
|
|
15
|
+
const tabIndex = Number.parseInt(element.getAttribute("tabindex") || "0", 10);
|
|
16
16
|
return tabIndex < 0;
|
|
17
17
|
}
|
|
18
18
|
function isFocusable(element) {
|
|
@@ -205,7 +205,9 @@ function disableFocus(element) {
|
|
|
205
205
|
}
|
|
206
206
|
function disableFocusIn(container, includeContainer) {
|
|
207
207
|
const tabbableElements = getAllTabbableIn(container, includeContainer);
|
|
208
|
-
tabbableElements
|
|
208
|
+
for (const element of tabbableElements) {
|
|
209
|
+
disableFocus(element);
|
|
210
|
+
}
|
|
209
211
|
}
|
|
210
212
|
function restoreFocusIn(container) {
|
|
211
213
|
const elements = container.querySelectorAll("[data-tabindex]");
|
|
@@ -221,7 +223,9 @@ function restoreFocusIn(container) {
|
|
|
221
223
|
if (container.hasAttribute("data-tabindex")) {
|
|
222
224
|
restoreTabIndex(container);
|
|
223
225
|
}
|
|
224
|
-
elements
|
|
226
|
+
for (const element of elements) {
|
|
227
|
+
restoreTabIndex(element);
|
|
228
|
+
}
|
|
225
229
|
}
|
|
226
230
|
function focusIntoView(element, options) {
|
|
227
231
|
if (!("scrollIntoView" in element)) {
|
package/cjs/utils/store.cjs
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _M2NNCFIJcjs = require('../__chunks/M2NNCFIJ.cjs');
|
|
14
14
|
require('../__chunks/EEDWPDM2.cjs');
|
|
15
15
|
require('../__chunks/AV6KTKLE.cjs');
|
|
16
16
|
|
|
@@ -24,4 +24,4 @@ require('../__chunks/AV6KTKLE.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
exports.batch =
|
|
27
|
+
exports.batch = _M2NNCFIJcjs.batch; exports.createStore = _M2NNCFIJcjs.createStore; exports.init = _M2NNCFIJcjs.init; exports.mergeStore = _M2NNCFIJcjs.mergeStore; exports.omit = _M2NNCFIJcjs.omit; exports.pick = _M2NNCFIJcjs.pick; exports.setup = _M2NNCFIJcjs.setup; exports.subscribe = _M2NNCFIJcjs.subscribe; exports.sync = _M2NNCFIJcjs.sync; exports.throwOnConflictingProps = _M2NNCFIJcjs.throwOnConflictingProps;
|
|
@@ -70,7 +70,9 @@ function createStore(initialState, ...stores) {
|
|
|
70
70
|
)
|
|
71
71
|
);
|
|
72
72
|
const teardowns = [];
|
|
73
|
-
|
|
73
|
+
for (const setup2 of setups) {
|
|
74
|
+
teardowns.push(setup2());
|
|
75
|
+
}
|
|
74
76
|
const cleanups = stores.map(init);
|
|
75
77
|
destroy = chain(...desyncs, ...teardowns, ...cleanups);
|
|
76
78
|
return maybeDestroy;
|
|
@@ -99,16 +101,16 @@ function createStore(initialState, ...stores) {
|
|
|
99
101
|
const storeOmit = (keys) => createStore(omit(state, keys), finalStore);
|
|
100
102
|
const getState = () => state;
|
|
101
103
|
const setState = (key, value, fromStores = false) => {
|
|
104
|
+
var _a;
|
|
102
105
|
if (!hasOwnProperty(state, key))
|
|
103
106
|
return;
|
|
104
107
|
const nextValue = applyState(value, state[key]);
|
|
105
108
|
if (nextValue === state[key])
|
|
106
109
|
return;
|
|
107
110
|
if (!fromStores) {
|
|
108
|
-
|
|
109
|
-
var _a;
|
|
111
|
+
for (const store of stores) {
|
|
110
112
|
(_a = store == null ? void 0 : store.setState) == null ? void 0 : _a.call(store, key, nextValue);
|
|
111
|
-
}
|
|
113
|
+
}
|
|
112
114
|
}
|
|
113
115
|
const prevState = state;
|
|
114
116
|
state = __spreadProps(__spreadValues({}, state), { [key]: nextValue });
|
|
@@ -116,24 +118,24 @@ function createStore(initialState, ...stores) {
|
|
|
116
118
|
lastUpdate = thisUpdate;
|
|
117
119
|
updatedKeys.add(key);
|
|
118
120
|
const run = (listener, prev, uKeys) => {
|
|
119
|
-
var
|
|
121
|
+
var _a2;
|
|
120
122
|
const keys = listenerKeys.get(listener);
|
|
121
123
|
const updated = (k) => uKeys ? uKeys.has(k) : k === key;
|
|
122
124
|
if (!keys || keys.some(updated)) {
|
|
123
|
-
(
|
|
125
|
+
(_a2 = disposables.get(listener)) == null ? void 0 : _a2();
|
|
124
126
|
disposables.set(listener, listener(state, prev));
|
|
125
127
|
}
|
|
126
128
|
};
|
|
127
|
-
|
|
129
|
+
for (const listener of listeners) {
|
|
128
130
|
run(listener, prevState);
|
|
129
|
-
}
|
|
131
|
+
}
|
|
130
132
|
queueMicrotask(() => {
|
|
131
133
|
if (lastUpdate !== thisUpdate)
|
|
132
134
|
return;
|
|
133
135
|
const snapshot = state;
|
|
134
|
-
|
|
136
|
+
for (const listener of batchListeners) {
|
|
135
137
|
run(listener, prevStateBatch, updatedKeys);
|
|
136
|
-
}
|
|
138
|
+
}
|
|
137
139
|
prevStateBatch = snapshot;
|
|
138
140
|
updatedKeys.clear();
|
|
139
141
|
});
|
|
@@ -194,7 +196,7 @@ function mergeStore(...stores) {
|
|
|
194
196
|
const nextState = (_a = store2 == null ? void 0 : store2.getState) == null ? void 0 : _a.call(store2);
|
|
195
197
|
if (!nextState)
|
|
196
198
|
return state;
|
|
197
|
-
return
|
|
199
|
+
return Object.assign(state, nextState);
|
|
198
200
|
}, {});
|
|
199
201
|
const store = createStore(initialState, ...stores);
|
|
200
202
|
return store;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createDialogStore
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./NWACXGIN.js";
|
|
5
5
|
import {
|
|
6
6
|
createStore,
|
|
7
7
|
mergeStore,
|
|
8
8
|
omit,
|
|
9
9
|
throwOnConflictingProps
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./KLPDXTDE.js";
|
|
11
11
|
import {
|
|
12
12
|
defaultValue
|
|
13
13
|
} from "./22HHDS5F.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCollectionStore
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./I2WJ7JBQ.js";
|
|
5
5
|
import {
|
|
6
6
|
flatten2DArray,
|
|
7
7
|
reverseArray
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
createStore,
|
|
11
11
|
setup,
|
|
12
12
|
sync
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./KLPDXTDE.js";
|
|
14
14
|
import {
|
|
15
15
|
defaultValue
|
|
16
16
|
} from "./22HHDS5F.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCollectionStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/I2WJ7JBQ.js";
|
|
5
|
+
import "../__chunks/KLPDXTDE.js";
|
|
6
6
|
import "../__chunks/22HHDS5F.js";
|
|
7
7
|
import "../__chunks/I2NJJ3XW.js";
|
|
8
8
|
import "../__chunks/4R3V3JGP.js";
|
|
@@ -71,6 +71,8 @@ export interface ComboboxStoreState<T extends ComboboxStoreSelectedValue = Combo
|
|
|
71
71
|
* - [Submenu with
|
|
72
72
|
* Combobox](https://ariakit.org/examples/menu-nested-combobox)
|
|
73
73
|
* - [Command Menu](https://ariakit.org/examples/dialog-combobox-command-menu)
|
|
74
|
+
* - [Select with Combobox and
|
|
75
|
+
* Tabs](https://ariakit.org/examples/select-combobox-tab)
|
|
74
76
|
*/
|
|
75
77
|
resetValueOnHide: boolean;
|
|
76
78
|
/**
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCompositeStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/VH2P7HEP.js";
|
|
5
|
+
import "../__chunks/I2WJ7JBQ.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/SAZZJI72.js";
|
|
10
|
+
import "../__chunks/NWACXGIN.js";
|
|
11
|
+
import "../__chunks/KDSZSVV5.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/KLPDXTDE.js";
|
|
21
21
|
import {
|
|
22
22
|
chain,
|
|
23
23
|
defaultValue
|
|
@@ -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/SAZZJI72.js";
|
|
5
|
+
import "../__chunks/NWACXGIN.js";
|
|
6
|
+
import "../__chunks/KDSZSVV5.js";
|
|
7
|
+
import "../__chunks/KLPDXTDE.js";
|
|
8
8
|
import "../__chunks/22HHDS5F.js";
|
|
9
9
|
import "../__chunks/4R3V3JGP.js";
|
|
10
10
|
|
|
@@ -44,6 +44,10 @@ export interface CompositeStoreState<T extends CompositeStoreItem = CompositeSto
|
|
|
44
44
|
* In both scenarios, the item in focus will carry the
|
|
45
45
|
* [`data-active-item`](https://ariakit.org/guide/styling#data-active-item)
|
|
46
46
|
* attribute.
|
|
47
|
+
*
|
|
48
|
+
* Live examples:
|
|
49
|
+
* - [Select with Combobox and
|
|
50
|
+
* Tabs](https://ariakit.org/examples/select-combobox-tab)
|
|
47
51
|
* @default false
|
|
48
52
|
*/
|
|
49
53
|
virtualFocus: boolean;
|
|
@@ -178,7 +182,7 @@ export interface CompositeStoreState<T extends CompositeStoreItem = CompositeSto
|
|
|
178
182
|
* arrow keys.
|
|
179
183
|
*
|
|
180
184
|
* Live examples:
|
|
181
|
-
* - [Combobox with
|
|
185
|
+
* - [Combobox with Tabs](https://ariakit.org/examples/combobox-tabs)
|
|
182
186
|
*/
|
|
183
187
|
activeId: string | null | undefined;
|
|
184
188
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCompositeStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/VH2P7HEP.js";
|
|
5
|
+
import "../__chunks/I2WJ7JBQ.js";
|
|
6
6
|
import "../__chunks/7PRQYBBV.js";
|
|
7
|
-
import "../__chunks/
|
|
7
|
+
import "../__chunks/KLPDXTDE.js";
|
|
8
8
|
import "../__chunks/22HHDS5F.js";
|
|
9
9
|
import "../__chunks/I2NJJ3XW.js";
|
|
10
10
|
import "../__chunks/4R3V3JGP.js";
|
|
@@ -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/NWACXGIN.js";
|
|
5
|
+
import "../__chunks/KDSZSVV5.js";
|
|
6
|
+
import "../__chunks/KLPDXTDE.js";
|
|
7
7
|
import "../__chunks/22HHDS5F.js";
|
|
8
8
|
import "../__chunks/4R3V3JGP.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/KDSZSVV5.js";
|
|
5
|
+
import "../__chunks/KLPDXTDE.js";
|
|
6
6
|
import "../__chunks/22HHDS5F.js";
|
|
7
7
|
import "../__chunks/4R3V3JGP.js";
|
|
8
8
|
export {
|
package/esm/form/form-store.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCollectionStore
|
|
4
|
-
} from "../__chunks/
|
|
4
|
+
} from "../__chunks/I2WJ7JBQ.js";
|
|
5
5
|
import {
|
|
6
6
|
createStore,
|
|
7
7
|
init,
|
|
8
8
|
setup,
|
|
9
9
|
throwOnConflictingProps
|
|
10
|
-
} from "../__chunks/
|
|
10
|
+
} from "../__chunks/KLPDXTDE.js";
|
|
11
11
|
import {
|
|
12
12
|
applyState,
|
|
13
13
|
defaultValue,
|
|
@@ -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/E4HA32QI.js";
|
|
5
|
+
import "../__chunks/SAZZJI72.js";
|
|
6
|
+
import "../__chunks/NWACXGIN.js";
|
|
7
|
+
import "../__chunks/KDSZSVV5.js";
|
|
8
|
+
import "../__chunks/KLPDXTDE.js";
|
|
9
9
|
import "../__chunks/22HHDS5F.js";
|
|
10
10
|
import "../__chunks/4R3V3JGP.js";
|
|
11
11
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createMenubarStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/RCLYDUHE.js";
|
|
5
|
+
import "../__chunks/VH2P7HEP.js";
|
|
6
|
+
import "../__chunks/I2WJ7JBQ.js";
|
|
7
7
|
import "../__chunks/7PRQYBBV.js";
|
|
8
|
-
import "../__chunks/
|
|
8
|
+
import "../__chunks/KLPDXTDE.js";
|
|
9
9
|
import "../__chunks/22HHDS5F.js";
|
|
10
10
|
import "../__chunks/I2NJJ3XW.js";
|
|
11
11
|
import "../__chunks/4R3V3JGP.js";
|
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/E4HA32QI.js";
|
|
5
5
|
import {
|
|
6
6
|
createCompositeStore
|
|
7
|
-
} from "../__chunks/
|
|
8
|
-
import "../__chunks/
|
|
7
|
+
} from "../__chunks/VH2P7HEP.js";
|
|
8
|
+
import "../__chunks/I2WJ7JBQ.js";
|
|
9
9
|
import "../__chunks/7PRQYBBV.js";
|
|
10
|
-
import "../__chunks/
|
|
11
|
-
import "../__chunks/
|
|
12
|
-
import "../__chunks/
|
|
10
|
+
import "../__chunks/SAZZJI72.js";
|
|
11
|
+
import "../__chunks/NWACXGIN.js";
|
|
12
|
+
import "../__chunks/KDSZSVV5.js";
|
|
13
13
|
import {
|
|
14
14
|
createStore,
|
|
15
15
|
mergeStore,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
setup,
|
|
19
19
|
sync,
|
|
20
20
|
throwOnConflictingProps
|
|
21
|
-
} from "../__chunks/
|
|
21
|
+
} from "../__chunks/KLPDXTDE.js";
|
|
22
22
|
import {
|
|
23
23
|
applyState,
|
|
24
24
|
defaultValue
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createMenubarStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/RCLYDUHE.js";
|
|
5
|
+
import "../__chunks/VH2P7HEP.js";
|
|
6
|
+
import "../__chunks/I2WJ7JBQ.js";
|
|
7
7
|
import "../__chunks/7PRQYBBV.js";
|
|
8
|
-
import "../__chunks/
|
|
8
|
+
import "../__chunks/KLPDXTDE.js";
|
|
9
9
|
import "../__chunks/22HHDS5F.js";
|
|
10
10
|
import "../__chunks/I2NJJ3XW.js";
|
|
11
11
|
import "../__chunks/4R3V3JGP.js";
|
|
@@ -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/SAZZJI72.js";
|
|
5
|
+
import "../__chunks/NWACXGIN.js";
|
|
6
|
+
import "../__chunks/KDSZSVV5.js";
|
|
7
|
+
import "../__chunks/KLPDXTDE.js";
|
|
8
8
|
import "../__chunks/22HHDS5F.js";
|
|
9
9
|
import "../__chunks/4R3V3JGP.js";
|
|
10
10
|
export {
|
package/esm/radio/radio-store.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCompositeStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/VH2P7HEP.js";
|
|
5
|
+
import "../__chunks/I2WJ7JBQ.js";
|
|
6
6
|
import "../__chunks/7PRQYBBV.js";
|
|
7
7
|
import {
|
|
8
8
|
createStore
|
|
9
|
-
} from "../__chunks/
|
|
9
|
+
} from "../__chunks/KLPDXTDE.js";
|
|
10
10
|
import {
|
|
11
11
|
defaultValue
|
|
12
12
|
} from "../__chunks/22HHDS5F.js";
|
|
@@ -102,6 +102,8 @@ export interface SelectStoreOptions<T extends SelectStoreValue = SelectStoreValu
|
|
|
102
102
|
* - [SelectGroup](https://ariakit.org/examples/select-group)
|
|
103
103
|
* - [Select with Next.js App
|
|
104
104
|
* Router](https://ariakit.org/examples/select-next-router)
|
|
105
|
+
* - [Select with Combobox and
|
|
106
|
+
* Tabs](https://ariakit.org/examples/select-combobox-tab)
|
|
105
107
|
*/
|
|
106
108
|
defaultValue?: SelectStoreState<T>["value"];
|
|
107
109
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCompositeStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/VH2P7HEP.js";
|
|
5
|
+
import "../__chunks/I2WJ7JBQ.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/SAZZJI72.js";
|
|
12
|
+
import "../__chunks/NWACXGIN.js";
|
|
13
|
+
import "../__chunks/KDSZSVV5.js";
|
|
14
14
|
import {
|
|
15
15
|
batch,
|
|
16
16
|
createStore,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
setup,
|
|
20
20
|
sync,
|
|
21
21
|
throwOnConflictingProps
|
|
22
|
-
} from "../__chunks/
|
|
22
|
+
} from "../__chunks/KLPDXTDE.js";
|
|
23
23
|
import {
|
|
24
24
|
defaultValue
|
|
25
25
|
} from "../__chunks/22HHDS5F.js";
|
package/esm/tab/tab-store.d.ts
CHANGED
|
@@ -22,16 +22,20 @@ export interface TabStoreState extends CompositeStoreState<TabStoreItem> {
|
|
|
22
22
|
*
|
|
23
23
|
* Live examples:
|
|
24
24
|
* - [Tab with React Router](https://ariakit.org/examples/tab-react-router)
|
|
25
|
-
* - [Combobox with
|
|
25
|
+
* - [Combobox with Tabs](https://ariakit.org/examples/combobox-tabs)
|
|
26
|
+
* - [Select with Combobox and
|
|
27
|
+
* Tabs](https://ariakit.org/examples/select-combobox-tab)
|
|
26
28
|
*/
|
|
27
29
|
selectedId: TabStoreState["activeId"];
|
|
28
30
|
/**
|
|
29
31
|
* Determines if the tab should be selected when it receives focus. If set to
|
|
30
|
-
* `false`, the tab will only be selected upon clicking, not when
|
|
31
|
-
*
|
|
32
|
+
* `false`, the tab will only be selected upon clicking, not when using arrow
|
|
33
|
+
* keys to shift focus.
|
|
32
34
|
*
|
|
33
35
|
* Live examples:
|
|
34
36
|
* - [Tab with React Router](https://ariakit.org/examples/tab-react-router)
|
|
37
|
+
* - [Select with Combobox and
|
|
38
|
+
* Tabs](https://ariakit.org/examples/select-combobox-tab)
|
|
35
39
|
* @default true
|
|
36
40
|
*/
|
|
37
41
|
selectOnMove?: boolean;
|
|
@@ -99,8 +103,10 @@ export interface TabStoreOptions extends StoreOptions<TabStoreState, "orientatio
|
|
|
99
103
|
* will be automatically set to the first enabled tab.
|
|
100
104
|
*
|
|
101
105
|
* Live examples:
|
|
102
|
-
* - [Combobox with
|
|
106
|
+
* - [Combobox with Tabs](https://ariakit.org/examples/combobox-tabs)
|
|
103
107
|
* - [Animated TabPanel](https://ariakit.org/examples/tab-panel-animated)
|
|
108
|
+
* - [Select with Combobox and
|
|
109
|
+
* Tabs](https://ariakit.org/examples/select-combobox-tab)
|
|
104
110
|
*/
|
|
105
111
|
defaultSelectedId?: TabStoreState["selectedId"];
|
|
106
112
|
}
|