@ariakit/core 0.4.15 → 0.4.16
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/{RL7DKHOF.cjs → 34NK2NPD.cjs} +4 -4
- package/cjs/__chunks/{WOLZY4WC.cjs → 6REHCF5T.cjs} +6 -6
- package/cjs/__chunks/{RNIVVQWX.cjs → 7WVAUIME.cjs} +6 -6
- package/cjs/__chunks/{MNBBM5CR.cjs → E5AYFGW2.cjs} +12 -12
- package/cjs/__chunks/{ASR6PAFN.cjs → EKSEHA55.cjs} +7 -5
- package/cjs/__chunks/{V4YF2QA6.cjs → L5GSFUJU.cjs} +11 -11
- package/cjs/__chunks/{BVPEDDW6.cjs → OGYYHXPP.cjs} +7 -7
- package/cjs/__chunks/{YMCSKJHR.cjs → VR2FVDSU.cjs} +2 -2
- package/cjs/__chunks/{726BNPQZ.cjs → VZPNI7C2.cjs} +1 -1
- package/cjs/__chunks/{CEJUJMDW.cjs → XVG7OFIP.cjs} +4 -4
- package/cjs/checkbox/checkbox-store.cjs +3 -3
- package/cjs/checkbox/checkbox-store.d.cts +1 -1
- package/cjs/checkbox/checkbox-store.d.ts +1 -1
- package/cjs/collection/collection-store.cjs +4 -4
- package/cjs/combobox/combobox-store.cjs +27 -27
- package/cjs/combobox/combobox-store.d.cts +1 -1
- package/cjs/combobox/combobox-store.d.ts +1 -1
- package/cjs/composite/composite-overflow-store.cjs +5 -5
- package/cjs/composite/composite-store.cjs +5 -5
- package/cjs/dialog/dialog-store.cjs +4 -4
- package/cjs/disclosure/disclosure-store.cjs +3 -3
- package/cjs/form/form-store.cjs +10 -10
- package/cjs/hovercard/hovercard-store.cjs +6 -6
- package/cjs/menu/menu-bar-store.cjs +6 -6
- package/cjs/menu/menu-store.cjs +19 -19
- package/cjs/menu/menu-store.d.cts +1 -1
- package/cjs/menu/menu-store.d.ts +1 -1
- package/cjs/menubar/menubar-store.cjs +6 -6
- package/cjs/popover/popover-store.cjs +5 -5
- package/cjs/radio/radio-store.cjs +6 -6
- package/cjs/select/select-store.cjs +21 -21
- package/cjs/select/select-store.d.cts +1 -1
- package/cjs/select/select-store.d.ts +1 -1
- package/cjs/tab/tab-store.cjs +24 -24
- package/cjs/tag/tag-store.cjs +8 -8
- package/cjs/toolbar/toolbar-store.cjs +5 -5
- package/cjs/tooltip/tooltip-store.cjs +7 -7
- package/cjs/utils/dom.cjs +2 -2
- package/cjs/utils/events.cjs +5 -5
- package/cjs/utils/focus.cjs +10 -10
- package/cjs/utils/platform.cjs +3 -3
- package/cjs/utils/store.cjs +2 -2
- package/esm/__chunks/{DTR5TSDJ.js → 37JWRFYW.js} +1 -1
- package/esm/__chunks/{RCQ5P4YE.js → 43IPP2F4.js} +1 -1
- package/esm/__chunks/{PQ5AROUB.js → 76UM5ZLT.js} +2 -2
- package/esm/__chunks/{2CHYBBFH.js → C34RJTDU.js} +2 -2
- package/esm/__chunks/{BCALMBPZ.js → EWA2WL6G.js} +7 -5
- package/esm/__chunks/{EO4GVUA4.js → K2KIGYQU.js} +2 -2
- package/esm/__chunks/{ME2CUF3F.js → MD3RIO2T.js} +2 -2
- package/esm/__chunks/{QAGXQEUG.js → O6E4ZWCP.js} +1 -1
- package/esm/__chunks/{FZZ2AVHF.js → RZDDWCDV.js} +1 -1
- package/esm/__chunks/{JTLIIJ4U.js → X2ASWIQW.js} +2 -2
- package/esm/checkbox/checkbox-store.d.ts +1 -1
- package/esm/checkbox/checkbox-store.js +1 -1
- package/esm/collection/collection-store.js +3 -3
- package/esm/combobox/combobox-store.d.ts +1 -1
- package/esm/combobox/combobox-store.js +8 -8
- package/esm/composite/composite-overflow-store.js +4 -4
- package/esm/composite/composite-store.js +4 -4
- package/esm/dialog/dialog-store.js +3 -3
- package/esm/disclosure/disclosure-store.js +2 -2
- package/esm/form/form-store.js +3 -3
- package/esm/hovercard/hovercard-store.js +5 -5
- package/esm/menu/menu-bar-store.js +5 -5
- package/esm/menu/menu-store.d.ts +1 -1
- package/esm/menu/menu-store.js +8 -8
- package/esm/menubar/menubar-store.js +5 -5
- package/esm/popover/popover-store.js +4 -4
- package/esm/radio/radio-store.js +4 -4
- package/esm/select/select-store.d.ts +1 -1
- package/esm/select/select-store.js +7 -7
- package/esm/tab/tab-store.js +4 -4
- package/esm/tag/tag-store.js +4 -4
- package/esm/toolbar/toolbar-store.js +4 -4
- package/esm/tooltip/tooltip-store.js +5 -5
- package/esm/utils/dom.js +1 -1
- package/esm/utils/events.js +2 -2
- package/esm/utils/focus.js +1 -1
- package/esm/utils/platform.js +2 -2
- package/esm/utils/store.js +1 -1
- package/license +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../__chunks/
|
|
5
|
-
require('../__chunks/
|
|
6
|
-
require('../__chunks/
|
|
3
|
+
var _34NK2NPDcjs = require('../__chunks/34NK2NPD.cjs');
|
|
4
|
+
require('../__chunks/OGYYHXPP.cjs');
|
|
5
|
+
require('../__chunks/VR2FVDSU.cjs');
|
|
6
|
+
require('../__chunks/L5GSFUJU.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _EKSEHA55cjs = require('../__chunks/EKSEHA55.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _MLCPLY2Pcjs = require('../__chunks/MLCPLY2P.cjs');
|
|
@@ -28,7 +28,7 @@ function createTooltipStore(props = {}) {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
const syncState = (_a = props.store) == null ? void 0 : _a.getState();
|
|
31
|
-
const hovercard =
|
|
31
|
+
const hovercard = _34NK2NPDcjs.createHovercardStore.call(void 0, _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, props), {
|
|
32
32
|
placement: _MLCPLY2Pcjs.defaultValue.call(void 0,
|
|
33
33
|
props.placement,
|
|
34
34
|
syncState == null ? void 0 : syncState.placement,
|
|
@@ -40,7 +40,7 @@ function createTooltipStore(props = {}) {
|
|
|
40
40
|
type: _MLCPLY2Pcjs.defaultValue.call(void 0, props.type, syncState == null ? void 0 : syncState.type, "description"),
|
|
41
41
|
skipTimeout: _MLCPLY2Pcjs.defaultValue.call(void 0, props.skipTimeout, syncState == null ? void 0 : syncState.skipTimeout, 300)
|
|
42
42
|
});
|
|
43
|
-
const tooltip =
|
|
43
|
+
const tooltip = _EKSEHA55cjs.createStore.call(void 0, initialState, hovercard, props.store);
|
|
44
44
|
return _7EQBAZ46cjs.__spreadValues.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, hovercard), tooltip);
|
|
45
45
|
}
|
|
46
46
|
|
package/cjs/utils/dom.cjs
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _VZPNI7C2cjs = require('../__chunks/VZPNI7C2.cjs');
|
|
22
22
|
require('../__chunks/7EQBAZ46.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
@@ -40,4 +40,4 @@ require('../__chunks/7EQBAZ46.cjs');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
exports.canUseDOM =
|
|
43
|
+
exports.canUseDOM = _VZPNI7C2cjs.canUseDOM; exports.contains = _VZPNI7C2cjs.contains; exports.getActiveElement = _VZPNI7C2cjs.getActiveElement; exports.getDocument = _VZPNI7C2cjs.getDocument; exports.getPopupItemRole = _VZPNI7C2cjs.getPopupItemRole; exports.getPopupRole = _VZPNI7C2cjs.getPopupRole; exports.getScrollingElement = _VZPNI7C2cjs.getScrollingElement; exports.getTextboxSelection = _VZPNI7C2cjs.getTextboxSelection; exports.getTextboxValue = _VZPNI7C2cjs.getTextboxValue; exports.getWindow = _VZPNI7C2cjs.getWindow; exports.isButton = _VZPNI7C2cjs.isButton; exports.isFrame = _VZPNI7C2cjs.isFrame; exports.isPartiallyHidden = _VZPNI7C2cjs.isPartiallyHidden; exports.isTextField = _VZPNI7C2cjs.isTextField; exports.isTextbox = _VZPNI7C2cjs.isTextbox; exports.isVisible = _VZPNI7C2cjs.isVisible; exports.scrollIntoViewIfNeeded = _VZPNI7C2cjs.scrollIntoViewIfNeeded; exports.setSelectionRange = _VZPNI7C2cjs.setSelectionRange; exports.sortBasedOnDOMPosition = _VZPNI7C2cjs.sortBasedOnDOMPosition;
|
package/cjs/utils/events.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _6REHCF5Tcjs = require('../__chunks/6REHCF5T.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _VZPNI7C2cjs = require('../__chunks/VZPNI7C2.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -12,7 +12,7 @@ var _7EQBAZ46cjs = require('../__chunks/7EQBAZ46.cjs');
|
|
|
12
12
|
// src/utils/events.ts
|
|
13
13
|
function isPortalEvent(event) {
|
|
14
14
|
return Boolean(
|
|
15
|
-
event.currentTarget && !
|
|
15
|
+
event.currentTarget && !_VZPNI7C2cjs.contains.call(void 0, event.currentTarget, event.target)
|
|
16
16
|
);
|
|
17
17
|
}
|
|
18
18
|
function isSelfTarget(event) {
|
|
@@ -21,7 +21,7 @@ function isSelfTarget(event) {
|
|
|
21
21
|
function isOpeningInNewTab(event) {
|
|
22
22
|
const element = event.currentTarget;
|
|
23
23
|
if (!element) return false;
|
|
24
|
-
const isAppleDevice =
|
|
24
|
+
const isAppleDevice = _6REHCF5Tcjs.isApple.call(void 0, );
|
|
25
25
|
if (isAppleDevice && !event.metaKey) return false;
|
|
26
26
|
if (!isAppleDevice && !event.ctrlKey) return false;
|
|
27
27
|
const tagName = element.tagName.toLowerCase();
|
|
@@ -69,7 +69,7 @@ function fireClickEvent(element, eventInit) {
|
|
|
69
69
|
function isFocusEventOutside(event, container) {
|
|
70
70
|
const containerElement = container || event.currentTarget;
|
|
71
71
|
const relatedTarget = event.relatedTarget;
|
|
72
|
-
return !relatedTarget || !
|
|
72
|
+
return !relatedTarget || !_VZPNI7C2cjs.contains.call(void 0, containerElement, relatedTarget);
|
|
73
73
|
}
|
|
74
74
|
function getInputType(event) {
|
|
75
75
|
const nativeEvent = "nativeEvent" in event ? event.nativeEvent : event;
|
package/cjs/utils/focus.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _VZPNI7C2cjs = require('../__chunks/VZPNI7C2.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _7EQBAZ46cjs = require('../__chunks/7EQBAZ46.cjs');
|
|
@@ -16,7 +16,7 @@ function hasNegativeTabIndex(element) {
|
|
|
16
16
|
}
|
|
17
17
|
function isFocusable(element) {
|
|
18
18
|
if (!element.matches(selector)) return false;
|
|
19
|
-
if (!
|
|
19
|
+
if (!_VZPNI7C2cjs.isVisible.call(void 0, element)) return false;
|
|
20
20
|
if (element.closest("[inert]")) return false;
|
|
21
21
|
return true;
|
|
22
22
|
}
|
|
@@ -30,7 +30,7 @@ function isTabbable(element) {
|
|
|
30
30
|
const radioGroup = element.form.elements.namedItem(element.name);
|
|
31
31
|
if (!radioGroup) return true;
|
|
32
32
|
if (!("length" in radioGroup)) return true;
|
|
33
|
-
const activeElement =
|
|
33
|
+
const activeElement = _VZPNI7C2cjs.getActiveElement.call(void 0, element);
|
|
34
34
|
if (!activeElement) return true;
|
|
35
35
|
if (activeElement === element) return true;
|
|
36
36
|
if (!("form" in activeElement)) return true;
|
|
@@ -47,7 +47,7 @@ function getAllFocusableIn(container, includeContainer) {
|
|
|
47
47
|
}
|
|
48
48
|
const focusableElements = elements.filter(isFocusable);
|
|
49
49
|
focusableElements.forEach((element, i) => {
|
|
50
|
-
if (
|
|
50
|
+
if (_VZPNI7C2cjs.isFrame.call(void 0, element) && element.contentDocument) {
|
|
51
51
|
const frameBody = element.contentDocument.body;
|
|
52
52
|
focusableElements.splice(i, 1, ...getAllFocusableIn(frameBody));
|
|
53
53
|
}
|
|
@@ -73,7 +73,7 @@ function getAllTabbableIn(container, includeContainer, fallbackToFocusable) {
|
|
|
73
73
|
tabbableElements.unshift(container);
|
|
74
74
|
}
|
|
75
75
|
tabbableElements.forEach((element, i) => {
|
|
76
|
-
if (
|
|
76
|
+
if (_VZPNI7C2cjs.isFrame.call(void 0, element) && element.contentDocument) {
|
|
77
77
|
const frameBody = element.contentDocument.body;
|
|
78
78
|
const allFrameTabbable = getAllTabbableIn(
|
|
79
79
|
frameBody,
|
|
@@ -114,7 +114,7 @@ function getLastTabbable(fallbackToFocusable) {
|
|
|
114
114
|
return getLastTabbableIn(document.body, false, fallbackToFocusable);
|
|
115
115
|
}
|
|
116
116
|
function getNextTabbableIn(container, includeContainer, fallbackToFirst, fallbackToFocusable) {
|
|
117
|
-
const activeElement =
|
|
117
|
+
const activeElement = _VZPNI7C2cjs.getActiveElement.call(void 0, container);
|
|
118
118
|
const allFocusable = getAllFocusableIn(container, includeContainer);
|
|
119
119
|
const activeIndex = allFocusable.indexOf(activeElement);
|
|
120
120
|
const nextFocusableElements = allFocusable.slice(activeIndex + 1);
|
|
@@ -129,7 +129,7 @@ function getNextTabbable(fallbackToFirst, fallbackToFocusable) {
|
|
|
129
129
|
);
|
|
130
130
|
}
|
|
131
131
|
function getPreviousTabbableIn(container, includeContainer, fallbackToLast, fallbackToFocusable) {
|
|
132
|
-
const activeElement =
|
|
132
|
+
const activeElement = _VZPNI7C2cjs.getActiveElement.call(void 0, container);
|
|
133
133
|
const allFocusable = getAllFocusableIn(container, includeContainer).reverse();
|
|
134
134
|
const activeIndex = allFocusable.indexOf(activeElement);
|
|
135
135
|
const previousFocusableElements = allFocusable.slice(activeIndex + 1);
|
|
@@ -150,7 +150,7 @@ function getClosestFocusable(element) {
|
|
|
150
150
|
return element || null;
|
|
151
151
|
}
|
|
152
152
|
function hasFocus(element) {
|
|
153
|
-
const activeElement =
|
|
153
|
+
const activeElement = _VZPNI7C2cjs.getActiveElement.call(void 0, element);
|
|
154
154
|
if (!activeElement) return false;
|
|
155
155
|
if (activeElement === element) return true;
|
|
156
156
|
const activeDescendant = activeElement.getAttribute("aria-activedescendant");
|
|
@@ -158,9 +158,9 @@ function hasFocus(element) {
|
|
|
158
158
|
return activeDescendant === element.id;
|
|
159
159
|
}
|
|
160
160
|
function hasFocusWithin(element) {
|
|
161
|
-
const activeElement =
|
|
161
|
+
const activeElement = _VZPNI7C2cjs.getActiveElement.call(void 0, element);
|
|
162
162
|
if (!activeElement) return false;
|
|
163
|
-
if (
|
|
163
|
+
if (_VZPNI7C2cjs.contains.call(void 0, element, activeElement)) return true;
|
|
164
164
|
const activeDescendant = activeElement.getAttribute("aria-activedescendant");
|
|
165
165
|
if (!activeDescendant) return false;
|
|
166
166
|
if (!("id" in element)) return false;
|
package/cjs/utils/platform.cjs
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('../__chunks/
|
|
7
|
+
var _6REHCF5Tcjs = require('../__chunks/6REHCF5T.cjs');
|
|
8
|
+
require('../__chunks/VZPNI7C2.cjs');
|
|
9
9
|
require('../__chunks/7EQBAZ46.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
@@ -13,4 +13,4 @@ require('../__chunks/7EQBAZ46.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.isApple =
|
|
16
|
+
exports.isApple = _6REHCF5Tcjs.isApple; exports.isFirefox = _6REHCF5Tcjs.isFirefox; exports.isMac = _6REHCF5Tcjs.isMac; exports.isSafari = _6REHCF5Tcjs.isSafari; exports.isTouchDevice = _6REHCF5Tcjs.isTouchDevice;
|
package/cjs/utils/store.cjs
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _EKSEHA55cjs = require('../__chunks/EKSEHA55.cjs');
|
|
13
13
|
require('../__chunks/MLCPLY2P.cjs');
|
|
14
14
|
require('../__chunks/7EQBAZ46.cjs');
|
|
15
15
|
|
|
@@ -23,4 +23,4 @@ require('../__chunks/7EQBAZ46.cjs');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
exports.batch =
|
|
26
|
+
exports.batch = _EKSEHA55cjs.batch; exports.createStore = _EKSEHA55cjs.createStore; exports.init = _EKSEHA55cjs.init; exports.mergeStore = _EKSEHA55cjs.mergeStore; exports.omit = _EKSEHA55cjs.omit; exports.pick = _EKSEHA55cjs.pick; exports.setup = _EKSEHA55cjs.setup; exports.subscribe = _EKSEHA55cjs.subscribe; exports.sync = _EKSEHA55cjs.sync; exports.throwOnConflictingProps = _EKSEHA55cjs.throwOnConflictingProps;
|
|
@@ -72,7 +72,7 @@ function isTextField(element) {
|
|
|
72
72
|
const isTextInput = element instanceof HTMLInputElement && element.selectionStart !== null;
|
|
73
73
|
const isTextArea = element.tagName === "TEXTAREA";
|
|
74
74
|
return isTextInput || isTextArea || false;
|
|
75
|
-
} catch (
|
|
75
|
+
} catch (_error) {
|
|
76
76
|
return false;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
} from "./7PRQYBBV.js";
|
|
6
6
|
import {
|
|
7
7
|
createCollectionStore
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./K2KIGYQU.js";
|
|
9
9
|
import {
|
|
10
10
|
createStore,
|
|
11
11
|
setup,
|
|
12
12
|
sync
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./EWA2WL6G.js";
|
|
14
14
|
import {
|
|
15
15
|
defaultValue
|
|
16
16
|
} from "./PBFD2E7P.js";
|
|
@@ -177,12 +177,14 @@ function pick2(store, ...args) {
|
|
|
177
177
|
return getInternal(store, "pick")(...args);
|
|
178
178
|
}
|
|
179
179
|
function mergeStore(...stores) {
|
|
180
|
-
|
|
181
|
-
|
|
180
|
+
var _a;
|
|
181
|
+
const initialState = {};
|
|
182
|
+
for (const store2 of stores) {
|
|
182
183
|
const nextState = (_a = store2 == null ? void 0 : store2.getState) == null ? void 0 : _a.call(store2);
|
|
183
|
-
if (
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
if (nextState) {
|
|
185
|
+
Object.assign(initialState, nextState);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
186
188
|
const store = createStore(initialState, ...stores);
|
|
187
189
|
return Object.assign({}, ...stores, store);
|
|
188
190
|
}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getDocument,
|
|
4
4
|
sortBasedOnDOMPosition
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./37JWRFYW.js";
|
|
6
6
|
import {
|
|
7
7
|
batch,
|
|
8
8
|
createStore,
|
|
9
9
|
init,
|
|
10
10
|
setup,
|
|
11
11
|
throwOnConflictingProps
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./EWA2WL6G.js";
|
|
13
13
|
import {
|
|
14
14
|
chain,
|
|
15
15
|
defaultValue
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createDialogStore
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./RZDDWCDV.js";
|
|
5
5
|
import {
|
|
6
6
|
createStore,
|
|
7
7
|
mergeStore,
|
|
8
8
|
omit,
|
|
9
9
|
throwOnConflictingProps
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./EWA2WL6G.js";
|
|
11
11
|
import {
|
|
12
12
|
defaultValue
|
|
13
13
|
} from "./PBFD2E7P.js";
|
|
@@ -5,7 +5,7 @@ import type { PickRequired, SetState, ToPrimitive } from "../utils/types.ts";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare function createCheckboxStore<T extends CheckboxStoreValue = CheckboxStoreValue>(props: PickRequired<CheckboxStoreProps<T>, "value" | "defaultValue">): CheckboxStore<T>;
|
|
7
7
|
export declare function createCheckboxStore(props?: CheckboxStoreProps): CheckboxStore;
|
|
8
|
-
export type CheckboxStoreValue = boolean | string | number |
|
|
8
|
+
export type CheckboxStoreValue = boolean | string | number | ReadonlyArray<string | number>;
|
|
9
9
|
export interface CheckboxStoreState<T extends CheckboxStoreValue = CheckboxStoreValue> {
|
|
10
10
|
/**
|
|
11
11
|
* The checked state of the checkbox.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCollectionStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/K2KIGYQU.js";
|
|
5
|
+
import "../__chunks/37JWRFYW.js";
|
|
6
|
+
import "../__chunks/EWA2WL6G.js";
|
|
7
7
|
import "../__chunks/PBFD2E7P.js";
|
|
8
8
|
import "../__chunks/3YLGPPWQ.js";
|
|
9
9
|
export {
|
|
@@ -9,7 +9,7 @@ type MutableValue<T extends ComboboxStoreSelectedValue = ComboboxStoreSelectedVa
|
|
|
9
9
|
*/
|
|
10
10
|
export declare function createComboboxStore<T extends ComboboxStoreSelectedValue = ComboboxStoreSelectedValue>(props: PickRequired<ComboboxStoreProps<T>, "selectedValue" | "defaultSelectedValue">): ComboboxStore<T>;
|
|
11
11
|
export declare function createComboboxStore(props?: ComboboxStoreProps): ComboboxStore;
|
|
12
|
-
export type ComboboxStoreSelectedValue = string | string[];
|
|
12
|
+
export type ComboboxStoreSelectedValue = string | readonly string[];
|
|
13
13
|
export interface ComboboxStoreItem extends CompositeStoreItem {
|
|
14
14
|
value?: string;
|
|
15
15
|
}
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
isSafari,
|
|
4
4
|
isTouchDevice
|
|
5
|
-
} from "../__chunks/
|
|
5
|
+
} from "../__chunks/O6E4ZWCP.js";
|
|
6
6
|
import {
|
|
7
7
|
createPopoverStore
|
|
8
|
-
} from "../__chunks/
|
|
8
|
+
} from "../__chunks/MD3RIO2T.js";
|
|
9
9
|
import {
|
|
10
10
|
createCompositeStore
|
|
11
|
-
} from "../__chunks/
|
|
11
|
+
} from "../__chunks/C34RJTDU.js";
|
|
12
12
|
import "../__chunks/7PRQYBBV.js";
|
|
13
|
-
import "../__chunks/
|
|
14
|
-
import "../__chunks/
|
|
15
|
-
import "../__chunks/
|
|
16
|
-
import "../__chunks/
|
|
13
|
+
import "../__chunks/RZDDWCDV.js";
|
|
14
|
+
import "../__chunks/43IPP2F4.js";
|
|
15
|
+
import "../__chunks/K2KIGYQU.js";
|
|
16
|
+
import "../__chunks/37JWRFYW.js";
|
|
17
17
|
import {
|
|
18
18
|
batch,
|
|
19
19
|
createStore,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
setup,
|
|
23
23
|
sync,
|
|
24
24
|
throwOnConflictingProps
|
|
25
|
-
} from "../__chunks/
|
|
25
|
+
} from "../__chunks/EWA2WL6G.js";
|
|
26
26
|
import {
|
|
27
27
|
chain,
|
|
28
28
|
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/MD3RIO2T.js";
|
|
5
|
+
import "../__chunks/RZDDWCDV.js";
|
|
6
|
+
import "../__chunks/43IPP2F4.js";
|
|
7
|
+
import "../__chunks/EWA2WL6G.js";
|
|
8
8
|
import "../__chunks/PBFD2E7P.js";
|
|
9
9
|
import "../__chunks/3YLGPPWQ.js";
|
|
10
10
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCompositeStore
|
|
4
|
-
} from "../__chunks/
|
|
4
|
+
} from "../__chunks/C34RJTDU.js";
|
|
5
5
|
import "../__chunks/7PRQYBBV.js";
|
|
6
|
-
import "../__chunks/
|
|
7
|
-
import "../__chunks/
|
|
8
|
-
import "../__chunks/
|
|
6
|
+
import "../__chunks/K2KIGYQU.js";
|
|
7
|
+
import "../__chunks/37JWRFYW.js";
|
|
8
|
+
import "../__chunks/EWA2WL6G.js";
|
|
9
9
|
import "../__chunks/PBFD2E7P.js";
|
|
10
10
|
import "../__chunks/3YLGPPWQ.js";
|
|
11
11
|
export {
|
|
@@ -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/RZDDWCDV.js";
|
|
5
|
+
import "../__chunks/43IPP2F4.js";
|
|
6
|
+
import "../__chunks/EWA2WL6G.js";
|
|
7
7
|
import "../__chunks/PBFD2E7P.js";
|
|
8
8
|
import "../__chunks/3YLGPPWQ.js";
|
|
9
9
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createDisclosureStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/43IPP2F4.js";
|
|
5
|
+
import "../__chunks/EWA2WL6G.js";
|
|
6
6
|
import "../__chunks/PBFD2E7P.js";
|
|
7
7
|
import "../__chunks/3YLGPPWQ.js";
|
|
8
8
|
export {
|
package/esm/form/form-store.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCollectionStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/K2KIGYQU.js";
|
|
5
|
+
import "../__chunks/37JWRFYW.js";
|
|
6
6
|
import {
|
|
7
7
|
createStore,
|
|
8
8
|
init,
|
|
9
9
|
setup,
|
|
10
10
|
sync,
|
|
11
11
|
throwOnConflictingProps
|
|
12
|
-
} from "../__chunks/
|
|
12
|
+
} from "../__chunks/EWA2WL6G.js";
|
|
13
13
|
import {
|
|
14
14
|
applyState,
|
|
15
15
|
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/X2ASWIQW.js";
|
|
5
|
+
import "../__chunks/MD3RIO2T.js";
|
|
6
|
+
import "../__chunks/RZDDWCDV.js";
|
|
7
|
+
import "../__chunks/43IPP2F4.js";
|
|
8
|
+
import "../__chunks/EWA2WL6G.js";
|
|
9
9
|
import "../__chunks/PBFD2E7P.js";
|
|
10
10
|
import "../__chunks/3YLGPPWQ.js";
|
|
11
11
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createMenubarStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/76UM5ZLT.js";
|
|
5
|
+
import "../__chunks/C34RJTDU.js";
|
|
6
6
|
import "../__chunks/7PRQYBBV.js";
|
|
7
|
-
import "../__chunks/
|
|
8
|
-
import "../__chunks/
|
|
9
|
-
import "../__chunks/
|
|
7
|
+
import "../__chunks/K2KIGYQU.js";
|
|
8
|
+
import "../__chunks/37JWRFYW.js";
|
|
9
|
+
import "../__chunks/EWA2WL6G.js";
|
|
10
10
|
import "../__chunks/PBFD2E7P.js";
|
|
11
11
|
import "../__chunks/3YLGPPWQ.js";
|
|
12
12
|
|
package/esm/menu/menu-store.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { BivariantCallback, PickRequired, SetState, SetStateAction } from "
|
|
|
6
6
|
import type { MenuBarStore } from "./menu-bar-store.ts";
|
|
7
7
|
export declare function createMenuStore<T extends MenuStoreValues = MenuStoreValues>(props: PickRequired<MenuStoreProps<T>, "values" | "defaultValues">): MenuStore<T>;
|
|
8
8
|
export declare function createMenuStore(props?: MenuStoreProps): MenuStore;
|
|
9
|
-
export type MenuStoreValues = Record<string, string | boolean | number |
|
|
9
|
+
export type MenuStoreValues = Record<string, string | boolean | number | ReadonlyArray<string | number>>;
|
|
10
10
|
export interface MenuStoreState<T extends MenuStoreValues = MenuStoreValues> extends CompositeStoreState, HovercardStoreState {
|
|
11
11
|
/** @default "vertical" */
|
|
12
12
|
orientation: CompositeStoreState["orientation"];
|
package/esm/menu/menu-store.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createHovercardStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/X2ASWIQW.js";
|
|
5
|
+
import "../__chunks/MD3RIO2T.js";
|
|
6
6
|
import {
|
|
7
7
|
createCompositeStore
|
|
8
|
-
} from "../__chunks/
|
|
8
|
+
} from "../__chunks/C34RJTDU.js";
|
|
9
9
|
import "../__chunks/7PRQYBBV.js";
|
|
10
|
-
import "../__chunks/
|
|
11
|
-
import "../__chunks/
|
|
12
|
-
import "../__chunks/
|
|
13
|
-
import "../__chunks/
|
|
10
|
+
import "../__chunks/RZDDWCDV.js";
|
|
11
|
+
import "../__chunks/43IPP2F4.js";
|
|
12
|
+
import "../__chunks/K2KIGYQU.js";
|
|
13
|
+
import "../__chunks/37JWRFYW.js";
|
|
14
14
|
import {
|
|
15
15
|
createStore,
|
|
16
16
|
mergeStore,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
setup,
|
|
20
20
|
sync,
|
|
21
21
|
throwOnConflictingProps
|
|
22
|
-
} from "../__chunks/
|
|
22
|
+
} from "../__chunks/EWA2WL6G.js";
|
|
23
23
|
import {
|
|
24
24
|
applyState,
|
|
25
25
|
defaultValue
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createMenubarStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/76UM5ZLT.js";
|
|
5
|
+
import "../__chunks/C34RJTDU.js";
|
|
6
6
|
import "../__chunks/7PRQYBBV.js";
|
|
7
|
-
import "../__chunks/
|
|
8
|
-
import "../__chunks/
|
|
9
|
-
import "../__chunks/
|
|
7
|
+
import "../__chunks/K2KIGYQU.js";
|
|
8
|
+
import "../__chunks/37JWRFYW.js";
|
|
9
|
+
import "../__chunks/EWA2WL6G.js";
|
|
10
10
|
import "../__chunks/PBFD2E7P.js";
|
|
11
11
|
import "../__chunks/3YLGPPWQ.js";
|
|
12
12
|
export {
|
|
@@ -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/MD3RIO2T.js";
|
|
5
|
+
import "../__chunks/RZDDWCDV.js";
|
|
6
|
+
import "../__chunks/43IPP2F4.js";
|
|
7
|
+
import "../__chunks/EWA2WL6G.js";
|
|
8
8
|
import "../__chunks/PBFD2E7P.js";
|
|
9
9
|
import "../__chunks/3YLGPPWQ.js";
|
|
10
10
|
export {
|