@ariakit/core 0.3.9 → 0.3.11
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 +15 -0
- package/cjs/__chunks/{JNFZSNOI.cjs → BFE5R4EZ.cjs} +17 -17
- package/cjs/__chunks/{EFIT5L4X.cjs → E53JW5BD.cjs} +12 -12
- package/cjs/__chunks/{2UK5WUJX.cjs → F6HPKLO2.cjs} +12 -14
- package/cjs/__chunks/{2LS4JJ4S.cjs → I3Y4EXEF.cjs} +2 -2
- package/cjs/__chunks/{3UT5FE6K.cjs → KBNYGXWI.cjs} +3 -0
- package/cjs/__chunks/{UCLKUBNP.cjs → MI6NUQYQ.cjs} +31 -18
- package/cjs/__chunks/{UTICNXST.cjs → NOFH2BLB.cjs} +7 -7
- package/cjs/__chunks/{GJFZ5ZPP.cjs → OTVLDMN2.cjs} +16 -16
- package/cjs/__chunks/{5SIVMOID.cjs → TQTGWD5K.cjs} +10 -10
- package/cjs/checkbox/checkbox-store.cjs +5 -5
- package/cjs/checkbox/checkbox-store.d.cts +5 -2
- package/cjs/checkbox/checkbox-store.d.ts +5 -2
- package/cjs/collection/collection-store.cjs +4 -4
- package/cjs/collection/collection-store.d.cts +11 -11
- package/cjs/collection/collection-store.d.ts +11 -11
- package/cjs/combobox/combobox-store.cjs +32 -32
- package/cjs/combobox/combobox-store.d.cts +3 -1
- package/cjs/combobox/combobox-store.d.ts +3 -1
- package/cjs/composite/composite-overflow-store.cjs +6 -6
- package/cjs/composite/composite-store.cjs +5 -5
- package/cjs/composite/composite-store.d.cts +128 -54
- package/cjs/composite/composite-store.d.ts +128 -54
- package/cjs/dialog/dialog-store.cjs +5 -5
- package/cjs/disclosure/disclosure-store.cjs +4 -4
- package/cjs/disclosure/disclosure-store.d.cts +33 -27
- package/cjs/disclosure/disclosure-store.d.ts +33 -27
- package/cjs/form/form-store.cjs +23 -23
- package/cjs/form/form-store.d.cts +35 -26
- package/cjs/form/form-store.d.ts +35 -26
- package/cjs/hovercard/hovercard-store.cjs +7 -7
- package/cjs/hovercard/hovercard-store.d.cts +14 -7
- package/cjs/hovercard/hovercard-store.d.ts +14 -7
- package/cjs/menu/menu-bar-store.cjs +6 -6
- package/cjs/menu/menu-store.cjs +26 -26
- package/cjs/menu/menu-store.d.cts +16 -7
- package/cjs/menu/menu-store.d.ts +16 -7
- package/cjs/menubar/menubar-store.cjs +6 -6
- package/cjs/popover/popover-store.cjs +6 -6
- package/cjs/popover/popover-store.d.cts +31 -6
- package/cjs/popover/popover-store.d.ts +31 -6
- package/cjs/radio/radio-store.cjs +8 -8
- package/cjs/radio/radio-store.d.cts +2 -1
- package/cjs/radio/radio-store.d.ts +2 -1
- package/cjs/select/select-store.cjs +28 -28
- package/cjs/select/select-store.d.cts +2 -1
- package/cjs/select/select-store.d.ts +2 -1
- package/cjs/tab/tab-store.cjs +20 -20
- package/cjs/tab/tab-store.d.cts +20 -15
- package/cjs/tab/tab-store.d.ts +20 -15
- package/cjs/toolbar/toolbar-store.cjs +7 -7
- package/cjs/toolbar/toolbar-store.d.cts +2 -6
- package/cjs/toolbar/toolbar-store.d.ts +2 -6
- package/cjs/tooltip/tooltip-store.cjs +12 -12
- package/cjs/tooltip/tooltip-store.d.cts +6 -4
- package/cjs/tooltip/tooltip-store.d.ts +6 -4
- package/cjs/utils/misc.cjs +2 -2
- package/cjs/utils/store.cjs +3 -3
- package/esm/__chunks/{TLN4ALYH.js → 22K762VQ.js} +22 -9
- package/esm/__chunks/{J6JIOWCS.js → AF6IUUFN.js} +3 -3
- package/esm/__chunks/{A2J4XZ5T.js → EAHJFCU4.js} +1 -3
- package/esm/__chunks/{DLX2AS6C.js → IERTEJ3A.js} +3 -3
- package/esm/__chunks/{T3DVYGXI.js → SOLWE6E5.js} +3 -3
- package/esm/__chunks/{LT2OYWRD.js → SX2XFD6A.js} +1 -1
- package/esm/__chunks/{EZ2TTBAQ.js → XU3EOSCU.js} +3 -3
- package/esm/__chunks/{I2VQ3XGR.js → Y3OOHFCN.js} +3 -0
- package/esm/__chunks/{NKLTHWCR.js → Z5IGYIPT.js} +2 -2
- package/esm/checkbox/checkbox-store.d.ts +5 -2
- package/esm/checkbox/checkbox-store.js +2 -2
- package/esm/collection/collection-store.d.ts +11 -11
- package/esm/collection/collection-store.js +3 -3
- package/esm/combobox/combobox-store.d.ts +3 -1
- package/esm/combobox/combobox-store.js +7 -7
- package/esm/composite/composite-overflow-store.js +5 -5
- package/esm/composite/composite-store.d.ts +128 -54
- package/esm/composite/composite-store.js +4 -4
- package/esm/dialog/dialog-store.js +4 -4
- package/esm/disclosure/disclosure-store.d.ts +33 -27
- package/esm/disclosure/disclosure-store.js +3 -3
- package/esm/form/form-store.d.ts +35 -26
- package/esm/form/form-store.js +3 -3
- package/esm/hovercard/hovercard-store.d.ts +14 -7
- package/esm/hovercard/hovercard-store.js +6 -6
- package/esm/menu/menu-bar-store.js +5 -5
- package/esm/menu/menu-store.d.ts +16 -7
- package/esm/menu/menu-store.js +8 -8
- package/esm/menubar/menubar-store.js +5 -5
- package/esm/popover/popover-store.d.ts +31 -6
- package/esm/popover/popover-store.js +5 -5
- package/esm/radio/radio-store.d.ts +2 -1
- package/esm/radio/radio-store.js +4 -4
- package/esm/select/select-store.d.ts +2 -1
- package/esm/select/select-store.js +7 -7
- package/esm/tab/tab-store.d.ts +20 -15
- package/esm/tab/tab-store.js +4 -4
- package/esm/toolbar/toolbar-store.d.ts +2 -6
- package/esm/toolbar/toolbar-store.js +4 -4
- package/esm/tooltip/tooltip-store.d.ts +6 -4
- package/esm/tooltip/tooltip-store.js +6 -6
- package/esm/utils/misc.js +1 -1
- package/esm/utils/store.js +2 -2
- package/package.json +1 -1
|
@@ -16,16 +16,18 @@ export interface CollectionStoreItem {
|
|
|
16
16
|
}
|
|
17
17
|
export interface CollectionStoreState<T extends CollectionStoreItem = CollectionStoreItem> {
|
|
18
18
|
/**
|
|
19
|
-
* Lists all
|
|
20
|
-
* updated when an item is registered or unregistered
|
|
19
|
+
* Lists all items along with their metadata. This state is automatically
|
|
20
|
+
* updated when an item is registered or unregistered using the
|
|
21
|
+
* [`registerItem`](https://ariakit.org/reference/use-collection-store#registeritem)
|
|
21
22
|
* function.
|
|
22
23
|
*/
|
|
23
24
|
items: T[];
|
|
24
25
|
/**
|
|
25
|
-
* Lists all
|
|
26
|
-
* automatically updated when an item is rendered or
|
|
27
|
-
*
|
|
28
|
-
*
|
|
26
|
+
* Lists all items, along with their metadata, in the exact order they appear in
|
|
27
|
+
* the DOM. This state is automatically updated when an item is rendered or
|
|
28
|
+
* unmounted using the
|
|
29
|
+
* [`renderItem`](https://ariakit.org/reference/use-collection-store#renderitem)
|
|
30
|
+
* function.
|
|
29
31
|
*/
|
|
30
32
|
renderedItems: T[];
|
|
31
33
|
}
|
|
@@ -33,7 +35,6 @@ export interface CollectionStoreFunctions<T extends CollectionStoreItem = Collec
|
|
|
33
35
|
/**
|
|
34
36
|
* Registers an item in the collection. This function returns a cleanup
|
|
35
37
|
* function that unregisters the item.
|
|
36
|
-
* @param item The item to register.
|
|
37
38
|
* @example
|
|
38
39
|
* const unregisterItem = store.registerItem({ id: "item-1" });
|
|
39
40
|
* // on cleanup
|
|
@@ -42,8 +43,7 @@ export interface CollectionStoreFunctions<T extends CollectionStoreItem = Collec
|
|
|
42
43
|
registerItem: BivariantCallback<(item: T) => () => void>;
|
|
43
44
|
/**
|
|
44
45
|
* Renders an item in the collection. This function returns a cleanup function
|
|
45
|
-
* that
|
|
46
|
-
* @param item The item to render.
|
|
46
|
+
* that unmounts the item.
|
|
47
47
|
* @example
|
|
48
48
|
* const unrenderItem = store.renderItem({ id: "item-1" });
|
|
49
49
|
* // on cleanup
|
|
@@ -52,7 +52,6 @@ export interface CollectionStoreFunctions<T extends CollectionStoreItem = Collec
|
|
|
52
52
|
renderItem: BivariantCallback<(item: T) => () => void>;
|
|
53
53
|
/**
|
|
54
54
|
* Gets an item by its id.
|
|
55
|
-
* @param id The id of the item.
|
|
56
55
|
* @example
|
|
57
56
|
* const item = store.item("item-1");
|
|
58
57
|
*/
|
|
@@ -60,7 +59,8 @@ export interface CollectionStoreFunctions<T extends CollectionStoreItem = Collec
|
|
|
60
59
|
}
|
|
61
60
|
export interface CollectionStoreOptions<T extends CollectionStoreItem = CollectionStoreItem> extends StoreOptions<CollectionStoreState<T>, "items"> {
|
|
62
61
|
/**
|
|
63
|
-
* The defaut value for the
|
|
62
|
+
* The defaut value for the
|
|
63
|
+
* [`items`](https://ariakit.org/reference/collection-provider#items) state.
|
|
64
64
|
* @default []
|
|
65
65
|
*/
|
|
66
66
|
defaultItems?: CollectionStoreState<T>["items"];
|
|
@@ -16,16 +16,18 @@ export interface CollectionStoreItem {
|
|
|
16
16
|
}
|
|
17
17
|
export interface CollectionStoreState<T extends CollectionStoreItem = CollectionStoreItem> {
|
|
18
18
|
/**
|
|
19
|
-
* Lists all
|
|
20
|
-
* updated when an item is registered or unregistered
|
|
19
|
+
* Lists all items along with their metadata. This state is automatically
|
|
20
|
+
* updated when an item is registered or unregistered using the
|
|
21
|
+
* [`registerItem`](https://ariakit.org/reference/use-collection-store#registeritem)
|
|
21
22
|
* function.
|
|
22
23
|
*/
|
|
23
24
|
items: T[];
|
|
24
25
|
/**
|
|
25
|
-
* Lists all
|
|
26
|
-
* automatically updated when an item is rendered or
|
|
27
|
-
*
|
|
28
|
-
*
|
|
26
|
+
* Lists all items, along with their metadata, in the exact order they appear in
|
|
27
|
+
* the DOM. This state is automatically updated when an item is rendered or
|
|
28
|
+
* unmounted using the
|
|
29
|
+
* [`renderItem`](https://ariakit.org/reference/use-collection-store#renderitem)
|
|
30
|
+
* function.
|
|
29
31
|
*/
|
|
30
32
|
renderedItems: T[];
|
|
31
33
|
}
|
|
@@ -33,7 +35,6 @@ export interface CollectionStoreFunctions<T extends CollectionStoreItem = Collec
|
|
|
33
35
|
/**
|
|
34
36
|
* Registers an item in the collection. This function returns a cleanup
|
|
35
37
|
* function that unregisters the item.
|
|
36
|
-
* @param item The item to register.
|
|
37
38
|
* @example
|
|
38
39
|
* const unregisterItem = store.registerItem({ id: "item-1" });
|
|
39
40
|
* // on cleanup
|
|
@@ -42,8 +43,7 @@ export interface CollectionStoreFunctions<T extends CollectionStoreItem = Collec
|
|
|
42
43
|
registerItem: BivariantCallback<(item: T) => () => void>;
|
|
43
44
|
/**
|
|
44
45
|
* Renders an item in the collection. This function returns a cleanup function
|
|
45
|
-
* that
|
|
46
|
-
* @param item The item to render.
|
|
46
|
+
* that unmounts the item.
|
|
47
47
|
* @example
|
|
48
48
|
* const unrenderItem = store.renderItem({ id: "item-1" });
|
|
49
49
|
* // on cleanup
|
|
@@ -52,7 +52,6 @@ export interface CollectionStoreFunctions<T extends CollectionStoreItem = Collec
|
|
|
52
52
|
renderItem: BivariantCallback<(item: T) => () => void>;
|
|
53
53
|
/**
|
|
54
54
|
* Gets an item by its id.
|
|
55
|
-
* @param id The id of the item.
|
|
56
55
|
* @example
|
|
57
56
|
* const item = store.item("item-1");
|
|
58
57
|
*/
|
|
@@ -60,7 +59,8 @@ export interface CollectionStoreFunctions<T extends CollectionStoreItem = Collec
|
|
|
60
59
|
}
|
|
61
60
|
export interface CollectionStoreOptions<T extends CollectionStoreItem = CollectionStoreItem> extends StoreOptions<CollectionStoreState<T>, "items"> {
|
|
62
61
|
/**
|
|
63
|
-
* The defaut value for the
|
|
62
|
+
* The defaut value for the
|
|
63
|
+
* [`items`](https://ariakit.org/reference/collection-provider#items) state.
|
|
64
64
|
* @default []
|
|
65
65
|
*/
|
|
66
66
|
defaultItems?: CollectionStoreState<T>["items"];
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../__chunks/
|
|
6
|
-
require('../__chunks/
|
|
4
|
+
var _E53JW5BDcjs = require('../__chunks/E53JW5BD.cjs');
|
|
5
|
+
require('../__chunks/I3Y4EXEF.cjs');
|
|
6
|
+
require('../__chunks/OTVLDMN2.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
10
|
-
require('../__chunks/
|
|
9
|
+
var _BFE5R4EZcjs = require('../__chunks/BFE5R4EZ.cjs');
|
|
10
|
+
require('../__chunks/MI6NUQYQ.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _F6HPKLO2cjs = require('../__chunks/F6HPKLO2.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _KBNYGXWIcjs = require('../__chunks/KBNYGXWI.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -33,48 +33,48 @@ var _AV6KTKLEcjs = require('../__chunks/AV6KTKLE.cjs');
|
|
|
33
33
|
var isSafariOnMobile = _YIUPKKEKcjs.isSafari.call(void 0, ) && _YIUPKKEKcjs.isTouchDevice.call(void 0, );
|
|
34
34
|
function createComboboxStore(props = {}) {
|
|
35
35
|
var _a;
|
|
36
|
-
|
|
36
|
+
_F6HPKLO2cjs.throwOnConflictingProps.call(void 0, props, props.store);
|
|
37
37
|
const syncState = (_a = props.store) == null ? void 0 : _a.getState();
|
|
38
|
-
const activeId =
|
|
38
|
+
const activeId = _KBNYGXWIcjs.defaultValue.call(void 0,
|
|
39
39
|
props.activeId,
|
|
40
40
|
syncState == null ? void 0 : syncState.activeId,
|
|
41
41
|
props.defaultActiveId,
|
|
42
42
|
null
|
|
43
43
|
);
|
|
44
|
-
const composite =
|
|
44
|
+
const composite = _BFE5R4EZcjs.createCompositeStore.call(void 0, _AV6KTKLEcjs.__spreadProps.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {}, props), {
|
|
45
45
|
activeId,
|
|
46
|
-
includesBaseElement:
|
|
46
|
+
includesBaseElement: _KBNYGXWIcjs.defaultValue.call(void 0,
|
|
47
47
|
props.includesBaseElement,
|
|
48
48
|
syncState == null ? void 0 : syncState.includesBaseElement,
|
|
49
49
|
true
|
|
50
50
|
),
|
|
51
|
-
orientation:
|
|
51
|
+
orientation: _KBNYGXWIcjs.defaultValue.call(void 0,
|
|
52
52
|
props.orientation,
|
|
53
53
|
syncState == null ? void 0 : syncState.orientation,
|
|
54
54
|
"vertical"
|
|
55
55
|
),
|
|
56
|
-
focusLoop:
|
|
57
|
-
focusWrap:
|
|
58
|
-
virtualFocus:
|
|
56
|
+
focusLoop: _KBNYGXWIcjs.defaultValue.call(void 0, props.focusLoop, syncState == null ? void 0 : syncState.focusLoop, true),
|
|
57
|
+
focusWrap: _KBNYGXWIcjs.defaultValue.call(void 0, props.focusWrap, syncState == null ? void 0 : syncState.focusWrap, true),
|
|
58
|
+
virtualFocus: _KBNYGXWIcjs.defaultValue.call(void 0,
|
|
59
59
|
props.virtualFocus,
|
|
60
60
|
syncState == null ? void 0 : syncState.virtualFocus,
|
|
61
61
|
!isSafariOnMobile
|
|
62
62
|
)
|
|
63
63
|
}));
|
|
64
|
-
const popover =
|
|
65
|
-
placement:
|
|
64
|
+
const popover = _E53JW5BDcjs.createPopoverStore.call(void 0, _AV6KTKLEcjs.__spreadProps.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {}, props), {
|
|
65
|
+
placement: _KBNYGXWIcjs.defaultValue.call(void 0,
|
|
66
66
|
props.placement,
|
|
67
67
|
syncState == null ? void 0 : syncState.placement,
|
|
68
68
|
"bottom-start"
|
|
69
69
|
)
|
|
70
70
|
}));
|
|
71
|
-
const value =
|
|
71
|
+
const value = _KBNYGXWIcjs.defaultValue.call(void 0,
|
|
72
72
|
props.value,
|
|
73
73
|
syncState == null ? void 0 : syncState.value,
|
|
74
74
|
props.defaultValue,
|
|
75
75
|
""
|
|
76
76
|
);
|
|
77
|
-
const selectedValue =
|
|
77
|
+
const selectedValue = _KBNYGXWIcjs.defaultValue.call(void 0,
|
|
78
78
|
props.selectedValue,
|
|
79
79
|
syncState == null ? void 0 : syncState.selectedValue,
|
|
80
80
|
props.defaultSelectedValue,
|
|
@@ -84,22 +84,22 @@ function createComboboxStore(props = {}) {
|
|
|
84
84
|
const initialState = _AV6KTKLEcjs.__spreadProps.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {}, composite.getState()), popover.getState()), {
|
|
85
85
|
value,
|
|
86
86
|
selectedValue,
|
|
87
|
-
resetValueOnSelect:
|
|
87
|
+
resetValueOnSelect: _KBNYGXWIcjs.defaultValue.call(void 0,
|
|
88
88
|
props.resetValueOnSelect,
|
|
89
89
|
syncState == null ? void 0 : syncState.resetValueOnSelect,
|
|
90
90
|
multiSelectable
|
|
91
91
|
),
|
|
92
|
-
resetValueOnHide:
|
|
92
|
+
resetValueOnHide: _KBNYGXWIcjs.defaultValue.call(void 0,
|
|
93
93
|
props.resetValueOnHide,
|
|
94
94
|
syncState == null ? void 0 : syncState.resetValueOnHide,
|
|
95
95
|
multiSelectable
|
|
96
96
|
),
|
|
97
97
|
activeValue: syncState == null ? void 0 : syncState.activeValue
|
|
98
98
|
});
|
|
99
|
-
const combobox =
|
|
100
|
-
|
|
99
|
+
const combobox = _F6HPKLO2cjs.createStore.call(void 0, initialState, composite, popover, props.store);
|
|
100
|
+
_F6HPKLO2cjs.setup.call(void 0,
|
|
101
101
|
combobox,
|
|
102
|
-
() =>
|
|
102
|
+
() => _F6HPKLO2cjs.sync.call(void 0, combobox, ["resetValueOnHide", "mounted"], (state) => {
|
|
103
103
|
if (!state.resetValueOnHide)
|
|
104
104
|
return;
|
|
105
105
|
if (state.mounted)
|
|
@@ -107,34 +107,34 @@ function createComboboxStore(props = {}) {
|
|
|
107
107
|
combobox.setState("value", value);
|
|
108
108
|
})
|
|
109
109
|
);
|
|
110
|
-
|
|
110
|
+
_F6HPKLO2cjs.setup.call(void 0,
|
|
111
111
|
combobox,
|
|
112
|
-
() =>
|
|
112
|
+
() => _F6HPKLO2cjs.sync.call(void 0, combobox, ["resetValueOnSelect", "selectedValue"], (state) => {
|
|
113
113
|
if (!state.resetValueOnSelect)
|
|
114
114
|
return;
|
|
115
115
|
combobox.setState("value", value);
|
|
116
116
|
})
|
|
117
117
|
);
|
|
118
|
-
|
|
118
|
+
_F6HPKLO2cjs.setup.call(void 0,
|
|
119
119
|
combobox,
|
|
120
|
-
() =>
|
|
120
|
+
() => _F6HPKLO2cjs.batch.call(void 0, combobox, ["mounted"], (state) => {
|
|
121
121
|
if (state.mounted)
|
|
122
122
|
return;
|
|
123
123
|
combobox.setState("activeId", activeId);
|
|
124
124
|
combobox.setState("moves", 0);
|
|
125
125
|
})
|
|
126
126
|
);
|
|
127
|
-
|
|
127
|
+
_F6HPKLO2cjs.setup.call(void 0,
|
|
128
128
|
combobox,
|
|
129
|
-
() =>
|
|
129
|
+
() => _F6HPKLO2cjs.sync.call(void 0, combobox, ["moves", "activeId"], (state, prevState) => {
|
|
130
130
|
if (state.moves === prevState.moves) {
|
|
131
131
|
combobox.setState("activeValue", void 0);
|
|
132
132
|
}
|
|
133
133
|
})
|
|
134
134
|
);
|
|
135
|
-
|
|
135
|
+
_F6HPKLO2cjs.setup.call(void 0,
|
|
136
136
|
combobox,
|
|
137
|
-
() =>
|
|
137
|
+
() => _F6HPKLO2cjs.batch.call(void 0, combobox, ["moves", "renderedItems"], (state, prev) => {
|
|
138
138
|
if (state.moves === prev.moves)
|
|
139
139
|
return;
|
|
140
140
|
const { activeId: activeId2 } = combobox.getState();
|
|
@@ -32,7 +32,9 @@ export interface ComboboxStoreState<T extends ComboboxStoreSelectedValue = Combo
|
|
|
32
32
|
*/
|
|
33
33
|
value: string;
|
|
34
34
|
/**
|
|
35
|
-
* The value of the
|
|
35
|
+
* The value of the currently active item. This state automatically updates as
|
|
36
|
+
* the user navigates the combobox items either by keyboard or mouse click.
|
|
37
|
+
* Note that it doesn't update when the user simply hovers over the items.
|
|
36
38
|
*/
|
|
37
39
|
activeValue: string | undefined;
|
|
38
40
|
/**
|
|
@@ -32,7 +32,9 @@ export interface ComboboxStoreState<T extends ComboboxStoreSelectedValue = Combo
|
|
|
32
32
|
*/
|
|
33
33
|
value: string;
|
|
34
34
|
/**
|
|
35
|
-
* The value of the
|
|
35
|
+
* The value of the currently active item. This state automatically updates as
|
|
36
|
+
* the user navigates the combobox items either by keyboard or mouse click.
|
|
37
|
+
* Note that it doesn't update when the user simply hovers over the items.
|
|
36
38
|
*/
|
|
37
39
|
activeValue: string | undefined;
|
|
38
40
|
/**
|
|
@@ -1,16 +1,16 @@
|
|
|
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/
|
|
8
|
-
require('../__chunks/
|
|
4
|
+
var _E53JW5BDcjs = require('../__chunks/E53JW5BD.cjs');
|
|
5
|
+
require('../__chunks/I3Y4EXEF.cjs');
|
|
6
|
+
require('../__chunks/OTVLDMN2.cjs');
|
|
7
|
+
require('../__chunks/F6HPKLO2.cjs');
|
|
8
|
+
require('../__chunks/KBNYGXWI.cjs');
|
|
9
9
|
require('../__chunks/AV6KTKLE.cjs');
|
|
10
10
|
|
|
11
11
|
// src/composite/composite-overflow-store.ts
|
|
12
12
|
function createCompositeOverflowStore(props = {}) {
|
|
13
|
-
return
|
|
13
|
+
return _E53JW5BDcjs.createPopoverStore.call(void 0, props);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
|
|
@@ -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 _BFE5R4EZcjs = require('../__chunks/BFE5R4EZ.cjs');
|
|
5
|
+
require('../__chunks/MI6NUQYQ.cjs');
|
|
6
|
+
require('../__chunks/F6HPKLO2.cjs');
|
|
7
|
+
require('../__chunks/KBNYGXWI.cjs');
|
|
8
8
|
require('../__chunks/5F4DVUNS.cjs');
|
|
9
9
|
require('../__chunks/ULSPM3Y3.cjs');
|
|
10
10
|
require('../__chunks/AV6KTKLE.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.createCompositeStore =
|
|
13
|
+
exports.createCompositeStore = _BFE5R4EZcjs.createCompositeStore;
|