@ariakit/core 0.2.1 → 0.2.2
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 +14 -0
- package/cjs/__chunks/{6SPJEESB.cjs → 5LY57557.cjs} +2 -9
- package/cjs/__chunks/{DBHIHK7C.cjs → EIRIJC7T.cjs} +6 -6
- package/cjs/__chunks/{ZNW4LSWU.cjs → EXM2AW52.cjs} +5 -0
- package/cjs/__chunks/{RD3S4VKY.cjs → GIBFZFNN.cjs} +5 -5
- package/cjs/__chunks/{HEFJPUYD.cjs → K2D665O4.cjs} +2 -2
- package/cjs/__chunks/{FXEBKN6G.cjs → KMOWCPL4.cjs} +5 -5
- package/cjs/__chunks/{EUJ6NNA6.cjs → LRIRZ7WW.cjs} +4 -4
- package/cjs/__chunks/{NFVTF24Y.cjs → LZA2FUHB.cjs} +4 -4
- package/cjs/__chunks/{27ZAGOYG.cjs → UGQMHGD6.cjs} +2 -2
- package/cjs/checkbox/checkbox-store.cjs +2 -2
- package/cjs/collection/collection-store.cjs +4 -4
- package/cjs/combobox/combobox-store.cjs +13 -13
- 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 +5 -5
- package/cjs/hovercard/hovercard-store.cjs +6 -6
- package/cjs/menu/menu-bar-store.cjs +5 -5
- package/cjs/menu/menu-store.cjs +12 -12
- package/cjs/popover/popover-store.cjs +5 -5
- package/cjs/radio/radio-store.cjs +6 -6
- package/cjs/select/select-store.cjs +12 -11
- package/cjs/select/select-store.d.ts +8 -14
- package/cjs/tab/tab-store.cjs +8 -8
- package/cjs/toolbar/toolbar-store.cjs +5 -5
- package/cjs/tooltip/tooltip-store.cjs +7 -7
- package/cjs/tsconfig.build.tsbuildinfo +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/platform.cjs +3 -3
- package/cjs/utils/store.cjs +2 -2
- package/cjs/utils/types.d.ts +1 -3
- package/esm/__chunks/{MNNKHNLW.js → DMXKJRZU.js} +1 -1
- package/esm/__chunks/{R6VHFWTV.js → IWUEUGOJ.js} +2 -2
- package/esm/__chunks/{BOKMNDR7.js → LK6LFO7X.js} +2 -9
- package/esm/__chunks/{N6JW4ITM.js → O35LWD4W.js} +5 -0
- package/esm/__chunks/{TFBCK4JB.js → UCFCIHEU.js} +1 -1
- package/esm/__chunks/{EWHSN7GO.js → WCRCSMN5.js} +2 -2
- package/esm/__chunks/{WP6VLQXI.js → XG2RPUJN.js} +2 -2
- package/esm/__chunks/{Z5IDQSMV.js → ZR3DJULN.js} +2 -2
- package/esm/__chunks/{ZV2GEGPL.js → ZRL3SZ6Y.js} +1 -1
- package/esm/checkbox/checkbox-store.js +1 -1
- package/esm/collection/collection-store.js +3 -3
- 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 +4 -4
- package/esm/menu/menu-store.js +8 -8
- package/esm/popover/popover-store.js +4 -4
- package/esm/radio/radio-store.js +4 -4
- package/esm/select/select-store.d.ts +8 -14
- package/esm/select/select-store.js +8 -7
- package/esm/tab/tab-store.js +5 -5
- package/esm/toolbar/toolbar-store.js +4 -4
- package/esm/tooltip/tooltip-store.js +5 -5
- package/esm/tsconfig.build.tsbuildinfo +1 -1
- 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/esm/utils/types.d.ts +1 -3
- package/package.json +1 -1
package/cjs/utils/focus.cjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _EXM2AW52cjs = require('../__chunks/EXM2AW52.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _6455U47Tcjs = require('../__chunks/6455U47T.cjs');
|
|
@@ -17,11 +17,11 @@ function hasNegativeTabIndex(element) {
|
|
|
17
17
|
return tabIndex < 0;
|
|
18
18
|
}
|
|
19
19
|
function isFocusable(element) {
|
|
20
|
-
if (!
|
|
20
|
+
if (!_EXM2AW52cjs.matches.call(void 0, element, selector))
|
|
21
21
|
return false;
|
|
22
|
-
if (!
|
|
22
|
+
if (!_EXM2AW52cjs.isVisible.call(void 0, element))
|
|
23
23
|
return false;
|
|
24
|
-
if (
|
|
24
|
+
if (_EXM2AW52cjs.closest.call(void 0, element, "[inert]"))
|
|
25
25
|
return false;
|
|
26
26
|
return true;
|
|
27
27
|
}
|
|
@@ -43,7 +43,7 @@ function isTabbable(element) {
|
|
|
43
43
|
return true;
|
|
44
44
|
if (!("length" in radioGroup))
|
|
45
45
|
return true;
|
|
46
|
-
const activeElement =
|
|
46
|
+
const activeElement = _EXM2AW52cjs.getActiveElement.call(void 0, element);
|
|
47
47
|
if (!activeElement)
|
|
48
48
|
return true;
|
|
49
49
|
if (activeElement === element)
|
|
@@ -65,7 +65,7 @@ function getAllFocusableIn(container, includeContainer) {
|
|
|
65
65
|
}
|
|
66
66
|
const focusableElements = elements.filter(isFocusable);
|
|
67
67
|
focusableElements.forEach((element, i) => {
|
|
68
|
-
if (
|
|
68
|
+
if (_EXM2AW52cjs.isFrame.call(void 0, element) && element.contentDocument) {
|
|
69
69
|
const frameBody = element.contentDocument.body;
|
|
70
70
|
focusableElements.splice(i, 1, ...getAllFocusableIn(frameBody));
|
|
71
71
|
}
|
|
@@ -91,7 +91,7 @@ function getAllTabbableIn(container, includeContainer, fallbackToFocusable) {
|
|
|
91
91
|
tabbableElements.unshift(container);
|
|
92
92
|
}
|
|
93
93
|
tabbableElements.forEach((element, i) => {
|
|
94
|
-
if (
|
|
94
|
+
if (_EXM2AW52cjs.isFrame.call(void 0, element) && element.contentDocument) {
|
|
95
95
|
const frameBody = element.contentDocument.body;
|
|
96
96
|
const allFrameTabbable = getAllTabbableIn(
|
|
97
97
|
frameBody,
|
|
@@ -132,7 +132,7 @@ function getLastTabbable(fallbackToFocusable) {
|
|
|
132
132
|
return getLastTabbableIn(document.body, false, fallbackToFocusable);
|
|
133
133
|
}
|
|
134
134
|
function getNextTabbableIn(container, includeContainer, fallbackToFirst, fallbackToFocusable) {
|
|
135
|
-
const activeElement =
|
|
135
|
+
const activeElement = _EXM2AW52cjs.getActiveElement.call(void 0, container);
|
|
136
136
|
const allFocusable = getAllFocusableIn(container, includeContainer);
|
|
137
137
|
const activeIndex = allFocusable.indexOf(activeElement);
|
|
138
138
|
const nextFocusableElements = allFocusable.slice(activeIndex + 1);
|
|
@@ -147,7 +147,7 @@ function getNextTabbable(fallbackToFirst, fallbackToFocusable) {
|
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
function getPreviousTabbableIn(container, includeContainer, fallbackToLast, fallbackToFocusable) {
|
|
150
|
-
const activeElement =
|
|
150
|
+
const activeElement = _EXM2AW52cjs.getActiveElement.call(void 0, container);
|
|
151
151
|
const allFocusable = getAllFocusableIn(container, includeContainer).reverse();
|
|
152
152
|
const activeIndex = allFocusable.indexOf(activeElement);
|
|
153
153
|
const previousFocusableElements = allFocusable.slice(activeIndex + 1);
|
|
@@ -163,12 +163,12 @@ function getPreviousTabbable(fallbackToFirst, fallbackToFocusable) {
|
|
|
163
163
|
}
|
|
164
164
|
function getClosestFocusable(element) {
|
|
165
165
|
while (element && !isFocusable(element)) {
|
|
166
|
-
element =
|
|
166
|
+
element = _EXM2AW52cjs.closest.call(void 0, element, selector);
|
|
167
167
|
}
|
|
168
168
|
return element || null;
|
|
169
169
|
}
|
|
170
170
|
function hasFocus(element) {
|
|
171
|
-
const activeElement =
|
|
171
|
+
const activeElement = _EXM2AW52cjs.getActiveElement.call(void 0, element);
|
|
172
172
|
if (!activeElement)
|
|
173
173
|
return false;
|
|
174
174
|
if (activeElement === element)
|
|
@@ -179,10 +179,10 @@ function hasFocus(element) {
|
|
|
179
179
|
return activeDescendant === element.id;
|
|
180
180
|
}
|
|
181
181
|
function hasFocusWithin(element) {
|
|
182
|
-
const activeElement =
|
|
182
|
+
const activeElement = _EXM2AW52cjs.getActiveElement.call(void 0, element);
|
|
183
183
|
if (!activeElement)
|
|
184
184
|
return false;
|
|
185
|
-
if (
|
|
185
|
+
if (_EXM2AW52cjs.contains.call(void 0, element, activeElement))
|
|
186
186
|
return true;
|
|
187
187
|
const activeDescendant = activeElement.getAttribute("aria-activedescendant");
|
|
188
188
|
if (!activeDescendant)
|
package/cjs/utils/platform.cjs
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('../__chunks/
|
|
7
|
+
var _EIRIJC7Tcjs = require('../__chunks/EIRIJC7T.cjs');
|
|
8
|
+
require('../__chunks/EXM2AW52.cjs');
|
|
9
9
|
require('../__chunks/6455U47T.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
@@ -13,4 +13,4 @@ require('../__chunks/6455U47T.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.isApple =
|
|
16
|
+
exports.isApple = _EIRIJC7Tcjs.isApple; exports.isFirefox = _EIRIJC7Tcjs.isFirefox; exports.isMac = _EIRIJC7Tcjs.isMac; exports.isSafari = _EIRIJC7Tcjs.isSafari; exports.isTouchDevice = _EIRIJC7Tcjs.isTouchDevice;
|
package/cjs/utils/store.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _5LY57557cjs = require('../__chunks/5LY57557.cjs');
|
|
5
5
|
require('../__chunks/M6ZA7XUP.cjs');
|
|
6
6
|
require('../__chunks/6455U47T.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.createStore =
|
|
10
|
+
exports.createStore = _5LY57557cjs.createStore; exports.mergeStore = _5LY57557cjs.mergeStore;
|
package/cjs/utils/types.d.ts
CHANGED
|
@@ -31,9 +31,7 @@ export type BooleanOrCallback<T> = boolean | BivariantCallback<(arg: T) => boole
|
|
|
31
31
|
* A string that will provide autocomplete for specific strings.
|
|
32
32
|
* @template T The specific strings.
|
|
33
33
|
*/
|
|
34
|
-
export type StringWithValue<T extends string> = T | (string &
|
|
35
|
-
[key in symbol]: never;
|
|
36
|
-
});
|
|
34
|
+
export type StringWithValue<T extends string> = T | (string & Record<never, never>);
|
|
37
35
|
/**
|
|
38
36
|
* Transforms a type into a primitive type.
|
|
39
37
|
* @template T The type to transform.
|
|
@@ -17,7 +17,6 @@ function createStore(initialState, ...stores) {
|
|
|
17
17
|
let state = initialState;
|
|
18
18
|
let prevStateBatch = state;
|
|
19
19
|
let lastUpdate = Symbol();
|
|
20
|
-
let updating = false;
|
|
21
20
|
let initialized = false;
|
|
22
21
|
const updatedKeys = /* @__PURE__ */ new Set();
|
|
23
22
|
const setups = /* @__PURE__ */ new Set();
|
|
@@ -76,9 +75,7 @@ function createStore(initialState, ...stores) {
|
|
|
76
75
|
return sub(listener, keys);
|
|
77
76
|
};
|
|
78
77
|
const syncBatch = (listener, keys) => {
|
|
79
|
-
|
|
80
|
-
disposables.set(listener, listener(state, prevStateBatch));
|
|
81
|
-
}
|
|
78
|
+
disposables.set(listener, listener(state, prevStateBatch));
|
|
82
79
|
return sub(listener, keys, true);
|
|
83
80
|
};
|
|
84
81
|
const getState = () => state;
|
|
@@ -96,7 +93,6 @@ function createStore(initialState, ...stores) {
|
|
|
96
93
|
state = __spreadProps(__spreadValues({}, state), { [key]: nextValue });
|
|
97
94
|
const thisUpdate = Symbol();
|
|
98
95
|
lastUpdate = thisUpdate;
|
|
99
|
-
updating = true;
|
|
100
96
|
updatedKeys.add(key);
|
|
101
97
|
const run = (listener, prev, uKeys) => {
|
|
102
98
|
var _a;
|
|
@@ -111,15 +107,12 @@ function createStore(initialState, ...stores) {
|
|
|
111
107
|
queueMicrotask(() => {
|
|
112
108
|
if (lastUpdate !== thisUpdate)
|
|
113
109
|
return;
|
|
114
|
-
updating = false;
|
|
115
110
|
const snapshot = state;
|
|
116
111
|
listenersBatch.forEach((listener) => {
|
|
117
112
|
run(listener, prevStateBatch, updatedKeys);
|
|
118
113
|
});
|
|
119
114
|
prevStateBatch = snapshot;
|
|
120
|
-
|
|
121
|
-
updatedKeys.clear();
|
|
122
|
-
});
|
|
115
|
+
updatedKeys.clear();
|
|
123
116
|
});
|
|
124
117
|
};
|
|
125
118
|
const pick2 = (...keys) => createStore(pick(state, keys), finalStore);
|
|
@@ -142,6 +142,11 @@ function getScrollingElement(element) {
|
|
|
142
142
|
const isScrollable = overflowY !== "visible" && overflowY !== "hidden";
|
|
143
143
|
if (isScrollable)
|
|
144
144
|
return element;
|
|
145
|
+
} else if (element.clientWidth && element.scrollWidth > element.clientWidth) {
|
|
146
|
+
const { overflowX } = getComputedStyle(element);
|
|
147
|
+
const isScrollable = overflowX !== "visible" && overflowX !== "hidden";
|
|
148
|
+
if (isScrollable)
|
|
149
|
+
return element;
|
|
145
150
|
}
|
|
146
151
|
return getScrollingElement(element.parentElement) || document.scrollingElement || document.body;
|
|
147
152
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createStore
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./LK6LFO7X.js";
|
|
4
4
|
import {
|
|
5
5
|
chain,
|
|
6
6
|
defaultValue
|
|
7
7
|
} from "./NWU4GBZ6.js";
|
|
8
8
|
import {
|
|
9
9
|
getDocument
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./O35LWD4W.js";
|
|
11
11
|
import {
|
|
12
12
|
__spreadProps,
|
|
13
13
|
__spreadValues
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCollectionStore
|
|
3
|
-
} from "../__chunks/
|
|
4
|
-
import "../__chunks/
|
|
3
|
+
} from "../__chunks/WCRCSMN5.js";
|
|
4
|
+
import "../__chunks/LK6LFO7X.js";
|
|
5
5
|
import "../__chunks/NWU4GBZ6.js";
|
|
6
|
-
import "../__chunks/
|
|
6
|
+
import "../__chunks/O35LWD4W.js";
|
|
7
7
|
import "../__chunks/4BKCJXBM.js";
|
|
8
8
|
export {
|
|
9
9
|
createCollectionStore
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createPopoverStore
|
|
3
|
-
} from "../__chunks/
|
|
4
|
-
import "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
3
|
+
} from "../__chunks/ZR3DJULN.js";
|
|
4
|
+
import "../__chunks/DMXKJRZU.js";
|
|
5
|
+
import "../__chunks/ZRL3SZ6Y.js";
|
|
6
6
|
import {
|
|
7
7
|
createCompositeStore
|
|
8
|
-
} from "../__chunks/
|
|
9
|
-
import "../__chunks/
|
|
8
|
+
} from "../__chunks/IWUEUGOJ.js";
|
|
9
|
+
import "../__chunks/WCRCSMN5.js";
|
|
10
10
|
import {
|
|
11
11
|
createStore,
|
|
12
12
|
mergeStore
|
|
13
|
-
} from "../__chunks/
|
|
13
|
+
} from "../__chunks/LK6LFO7X.js";
|
|
14
14
|
import {
|
|
15
15
|
defaultValue
|
|
16
16
|
} from "../__chunks/NWU4GBZ6.js";
|
|
17
17
|
import {
|
|
18
18
|
isSafari,
|
|
19
19
|
isTouchDevice
|
|
20
|
-
} from "../__chunks/
|
|
21
|
-
import "../__chunks/
|
|
20
|
+
} from "../__chunks/UCFCIHEU.js";
|
|
21
|
+
import "../__chunks/O35LWD4W.js";
|
|
22
22
|
import "../__chunks/5XEKIOCW.js";
|
|
23
23
|
import {
|
|
24
24
|
__objRest,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createPopoverStore
|
|
3
|
-
} from "../__chunks/
|
|
4
|
-
import "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
3
|
+
} from "../__chunks/ZR3DJULN.js";
|
|
4
|
+
import "../__chunks/DMXKJRZU.js";
|
|
5
|
+
import "../__chunks/ZRL3SZ6Y.js";
|
|
6
|
+
import "../__chunks/LK6LFO7X.js";
|
|
7
7
|
import "../__chunks/NWU4GBZ6.js";
|
|
8
8
|
import "../__chunks/4BKCJXBM.js";
|
|
9
9
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCompositeStore
|
|
3
|
-
} from "../__chunks/
|
|
4
|
-
import "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
3
|
+
} from "../__chunks/IWUEUGOJ.js";
|
|
4
|
+
import "../__chunks/WCRCSMN5.js";
|
|
5
|
+
import "../__chunks/LK6LFO7X.js";
|
|
6
6
|
import "../__chunks/NWU4GBZ6.js";
|
|
7
|
-
import "../__chunks/
|
|
7
|
+
import "../__chunks/O35LWD4W.js";
|
|
8
8
|
import "../__chunks/5XEKIOCW.js";
|
|
9
9
|
import "../__chunks/4BKCJXBM.js";
|
|
10
10
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createDialogStore
|
|
3
|
-
} from "../__chunks/
|
|
4
|
-
import "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
3
|
+
} from "../__chunks/DMXKJRZU.js";
|
|
4
|
+
import "../__chunks/ZRL3SZ6Y.js";
|
|
5
|
+
import "../__chunks/LK6LFO7X.js";
|
|
6
6
|
import "../__chunks/NWU4GBZ6.js";
|
|
7
7
|
import "../__chunks/4BKCJXBM.js";
|
|
8
8
|
export {
|
package/esm/form/form-store.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCollectionStore
|
|
3
|
-
} from "../__chunks/
|
|
3
|
+
} from "../__chunks/WCRCSMN5.js";
|
|
4
4
|
import {
|
|
5
5
|
createStore
|
|
6
|
-
} from "../__chunks/
|
|
6
|
+
} from "../__chunks/LK6LFO7X.js";
|
|
7
7
|
import {
|
|
8
8
|
applyState,
|
|
9
9
|
defaultValue,
|
|
10
10
|
isInteger,
|
|
11
11
|
isObject
|
|
12
12
|
} from "../__chunks/NWU4GBZ6.js";
|
|
13
|
-
import "../__chunks/
|
|
13
|
+
import "../__chunks/O35LWD4W.js";
|
|
14
14
|
import {
|
|
15
15
|
__spreadProps,
|
|
16
16
|
__spreadValues
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createHovercardStore
|
|
3
|
-
} from "../__chunks/
|
|
4
|
-
import "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
7
|
-
import "../__chunks/
|
|
3
|
+
} from "../__chunks/XG2RPUJN.js";
|
|
4
|
+
import "../__chunks/ZR3DJULN.js";
|
|
5
|
+
import "../__chunks/DMXKJRZU.js";
|
|
6
|
+
import "../__chunks/ZRL3SZ6Y.js";
|
|
7
|
+
import "../__chunks/LK6LFO7X.js";
|
|
8
8
|
import "../__chunks/NWU4GBZ6.js";
|
|
9
9
|
import "../__chunks/4BKCJXBM.js";
|
|
10
10
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCompositeStore
|
|
3
|
-
} from "../__chunks/
|
|
4
|
-
import "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
3
|
+
} from "../__chunks/IWUEUGOJ.js";
|
|
4
|
+
import "../__chunks/WCRCSMN5.js";
|
|
5
|
+
import "../__chunks/LK6LFO7X.js";
|
|
6
6
|
import {
|
|
7
7
|
defaultValue
|
|
8
8
|
} from "../__chunks/NWU4GBZ6.js";
|
|
9
|
-
import "../__chunks/
|
|
9
|
+
import "../__chunks/O35LWD4W.js";
|
|
10
10
|
import "../__chunks/5XEKIOCW.js";
|
|
11
11
|
import {
|
|
12
12
|
__spreadProps,
|
package/esm/menu/menu-store.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createHovercardStore
|
|
3
|
-
} from "../__chunks/
|
|
4
|
-
import "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
3
|
+
} from "../__chunks/XG2RPUJN.js";
|
|
4
|
+
import "../__chunks/ZR3DJULN.js";
|
|
5
|
+
import "../__chunks/DMXKJRZU.js";
|
|
6
|
+
import "../__chunks/ZRL3SZ6Y.js";
|
|
7
7
|
import {
|
|
8
8
|
createCompositeStore
|
|
9
|
-
} from "../__chunks/
|
|
10
|
-
import "../__chunks/
|
|
9
|
+
} from "../__chunks/IWUEUGOJ.js";
|
|
10
|
+
import "../__chunks/WCRCSMN5.js";
|
|
11
11
|
import {
|
|
12
12
|
createStore,
|
|
13
13
|
mergeStore
|
|
14
|
-
} from "../__chunks/
|
|
14
|
+
} from "../__chunks/LK6LFO7X.js";
|
|
15
15
|
import {
|
|
16
16
|
applyState,
|
|
17
17
|
defaultValue
|
|
18
18
|
} from "../__chunks/NWU4GBZ6.js";
|
|
19
|
-
import "../__chunks/
|
|
19
|
+
import "../__chunks/O35LWD4W.js";
|
|
20
20
|
import "../__chunks/5XEKIOCW.js";
|
|
21
21
|
import {
|
|
22
22
|
__objRest,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createPopoverStore
|
|
3
|
-
} from "../__chunks/
|
|
4
|
-
import "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
3
|
+
} from "../__chunks/ZR3DJULN.js";
|
|
4
|
+
import "../__chunks/DMXKJRZU.js";
|
|
5
|
+
import "../__chunks/ZRL3SZ6Y.js";
|
|
6
|
+
import "../__chunks/LK6LFO7X.js";
|
|
7
7
|
import "../__chunks/NWU4GBZ6.js";
|
|
8
8
|
import "../__chunks/4BKCJXBM.js";
|
|
9
9
|
export {
|
package/esm/radio/radio-store.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCompositeStore
|
|
3
|
-
} from "../__chunks/
|
|
4
|
-
import "../__chunks/
|
|
3
|
+
} from "../__chunks/IWUEUGOJ.js";
|
|
4
|
+
import "../__chunks/WCRCSMN5.js";
|
|
5
5
|
import {
|
|
6
6
|
createStore
|
|
7
|
-
} from "../__chunks/
|
|
7
|
+
} from "../__chunks/LK6LFO7X.js";
|
|
8
8
|
import {
|
|
9
9
|
defaultValue
|
|
10
10
|
} from "../__chunks/NWU4GBZ6.js";
|
|
11
|
-
import "../__chunks/
|
|
11
|
+
import "../__chunks/O35LWD4W.js";
|
|
12
12
|
import "../__chunks/5XEKIOCW.js";
|
|
13
13
|
import {
|
|
14
14
|
__objRest,
|
|
@@ -13,26 +13,20 @@ export declare function createSelectStore(props?: SelectStoreProps): SelectStore
|
|
|
13
13
|
export type SelectStoreItem = Item;
|
|
14
14
|
export type SelectStoreValue = Value;
|
|
15
15
|
export interface SelectStoreState<T extends Value = Value> extends CompositeStoreState<Item>, PopoverStoreState {
|
|
16
|
-
/**
|
|
17
|
-
* @default true
|
|
18
|
-
*/
|
|
16
|
+
/** @default true */
|
|
19
17
|
virtualFocus: CompositeStoreState<Item>["virtualFocus"];
|
|
20
|
-
/**
|
|
21
|
-
* @default false
|
|
22
|
-
*/
|
|
18
|
+
/** @default false */
|
|
23
19
|
includesBaseElement: CompositeStoreState<Item>["includesBaseElement"];
|
|
24
|
-
/**
|
|
25
|
-
* @default null
|
|
26
|
-
*/
|
|
20
|
+
/** @default null */
|
|
27
21
|
activeId: CompositeStoreState<Item>["activeId"];
|
|
28
|
-
/**
|
|
29
|
-
* @default "vertical"
|
|
30
|
-
*/
|
|
22
|
+
/** @default "vertical" */
|
|
31
23
|
orientation: CompositeStoreState<Item>["orientation"];
|
|
24
|
+
/** @default "bottom-start" */
|
|
25
|
+
placement: PopoverStoreState["placement"];
|
|
32
26
|
/**
|
|
33
|
-
*
|
|
27
|
+
* Whether the select store has received a combobox prop.
|
|
34
28
|
*/
|
|
35
|
-
|
|
29
|
+
combobox: boolean;
|
|
36
30
|
/**
|
|
37
31
|
* The select value.
|
|
38
32
|
*
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createPopoverStore
|
|
3
|
-
} from "../__chunks/
|
|
4
|
-
import "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
3
|
+
} from "../__chunks/ZR3DJULN.js";
|
|
4
|
+
import "../__chunks/DMXKJRZU.js";
|
|
5
|
+
import "../__chunks/ZRL3SZ6Y.js";
|
|
6
6
|
import {
|
|
7
7
|
createCompositeStore
|
|
8
|
-
} from "../__chunks/
|
|
9
|
-
import "../__chunks/
|
|
8
|
+
} from "../__chunks/IWUEUGOJ.js";
|
|
9
|
+
import "../__chunks/WCRCSMN5.js";
|
|
10
10
|
import {
|
|
11
11
|
createStore,
|
|
12
12
|
mergeStore
|
|
13
|
-
} from "../__chunks/
|
|
13
|
+
} from "../__chunks/LK6LFO7X.js";
|
|
14
14
|
import {
|
|
15
15
|
defaultValue
|
|
16
16
|
} from "../__chunks/NWU4GBZ6.js";
|
|
17
|
-
import "../__chunks/
|
|
17
|
+
import "../__chunks/O35LWD4W.js";
|
|
18
18
|
import {
|
|
19
19
|
toArray
|
|
20
20
|
} from "../__chunks/5XEKIOCW.js";
|
|
@@ -80,6 +80,7 @@ function createSelectStore(_a = {}) {
|
|
|
80
80
|
}));
|
|
81
81
|
const initialValue = new String("");
|
|
82
82
|
const initialState = __spreadProps(__spreadValues(__spreadValues({}, composite.getState()), popover.getState()), {
|
|
83
|
+
combobox: defaultValue(syncState.combobox, !!combobox),
|
|
83
84
|
value: defaultValue(
|
|
84
85
|
props.value,
|
|
85
86
|
syncState.value,
|
package/esm/tab/tab-store.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCompositeStore
|
|
3
|
-
} from "../__chunks/
|
|
3
|
+
} from "../__chunks/IWUEUGOJ.js";
|
|
4
4
|
import {
|
|
5
5
|
createCollectionStore
|
|
6
|
-
} from "../__chunks/
|
|
6
|
+
} from "../__chunks/WCRCSMN5.js";
|
|
7
7
|
import {
|
|
8
8
|
createStore
|
|
9
|
-
} from "../__chunks/
|
|
9
|
+
} from "../__chunks/LK6LFO7X.js";
|
|
10
10
|
import {
|
|
11
11
|
defaultValue
|
|
12
12
|
} from "../__chunks/NWU4GBZ6.js";
|
|
13
|
-
import "../__chunks/
|
|
13
|
+
import "../__chunks/O35LWD4W.js";
|
|
14
14
|
import "../__chunks/5XEKIOCW.js";
|
|
15
15
|
import {
|
|
16
16
|
__spreadProps,
|
|
@@ -62,7 +62,7 @@ function createTabStore(props = {}) {
|
|
|
62
62
|
}, ["moves"])
|
|
63
63
|
);
|
|
64
64
|
tab.setup(
|
|
65
|
-
() => tab.
|
|
65
|
+
() => tab.syncBatch(
|
|
66
66
|
(state) => tab.setState("activeId", state.selectedId),
|
|
67
67
|
["selectedId"]
|
|
68
68
|
)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCompositeStore
|
|
3
|
-
} from "../__chunks/
|
|
4
|
-
import "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
3
|
+
} from "../__chunks/IWUEUGOJ.js";
|
|
4
|
+
import "../__chunks/WCRCSMN5.js";
|
|
5
|
+
import "../__chunks/LK6LFO7X.js";
|
|
6
6
|
import {
|
|
7
7
|
defaultValue
|
|
8
8
|
} from "../__chunks/NWU4GBZ6.js";
|
|
9
|
-
import "../__chunks/
|
|
9
|
+
import "../__chunks/O35LWD4W.js";
|
|
10
10
|
import "../__chunks/5XEKIOCW.js";
|
|
11
11
|
import {
|
|
12
12
|
__spreadProps,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createHovercardStore
|
|
3
|
-
} from "../__chunks/
|
|
4
|
-
import "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
3
|
+
} from "../__chunks/XG2RPUJN.js";
|
|
4
|
+
import "../__chunks/ZR3DJULN.js";
|
|
5
|
+
import "../__chunks/DMXKJRZU.js";
|
|
6
|
+
import "../__chunks/ZRL3SZ6Y.js";
|
|
7
7
|
import {
|
|
8
8
|
createStore
|
|
9
|
-
} from "../__chunks/
|
|
9
|
+
} from "../__chunks/LK6LFO7X.js";
|
|
10
10
|
import {
|
|
11
11
|
defaultValue
|
|
12
12
|
} from "../__chunks/NWU4GBZ6.js";
|