@ariakit/core 0.2.1 → 0.2.3

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.
Files changed (96) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/checkbox/checkbox-store/package.json +2 -2
  3. package/cjs/__chunks/{6SPJEESB.cjs → 5LY57557.cjs} +2 -9
  4. package/cjs/__chunks/{DBHIHK7C.cjs → EIRIJC7T.cjs} +6 -6
  5. package/cjs/__chunks/{ZNW4LSWU.cjs → EXM2AW52.cjs} +5 -0
  6. package/cjs/__chunks/{RD3S4VKY.cjs → GIBFZFNN.cjs} +5 -5
  7. package/cjs/__chunks/{HEFJPUYD.cjs → K2D665O4.cjs} +2 -2
  8. package/cjs/__chunks/{FXEBKN6G.cjs → KMOWCPL4.cjs} +5 -5
  9. package/cjs/__chunks/{EUJ6NNA6.cjs → LRIRZ7WW.cjs} +4 -4
  10. package/cjs/__chunks/{NFVTF24Y.cjs → LZA2FUHB.cjs} +4 -4
  11. package/cjs/__chunks/{27ZAGOYG.cjs → UGQMHGD6.cjs} +2 -2
  12. package/cjs/checkbox/checkbox-store.cjs +2 -2
  13. package/cjs/collection/collection-store.cjs +4 -4
  14. package/cjs/combobox/combobox-store.cjs +13 -13
  15. package/cjs/composite/composite-overflow-store.cjs +5 -5
  16. package/cjs/composite/composite-store.cjs +5 -5
  17. package/cjs/dialog/dialog-store.cjs +4 -4
  18. package/cjs/disclosure/disclosure-store.cjs +3 -3
  19. package/cjs/form/form-store.cjs +5 -5
  20. package/cjs/hovercard/hovercard-store.cjs +6 -6
  21. package/cjs/menu/menu-bar-store.cjs +5 -5
  22. package/cjs/menu/menu-store.cjs +12 -12
  23. package/cjs/popover/popover-store.cjs +5 -5
  24. package/cjs/radio/radio-store.cjs +6 -6
  25. package/cjs/select/select-store.cjs +12 -11
  26. package/cjs/select/select-store.d.ts +8 -14
  27. package/cjs/tab/tab-store.cjs +8 -8
  28. package/cjs/toolbar/toolbar-store.cjs +5 -5
  29. package/cjs/tooltip/tooltip-store.cjs +7 -7
  30. package/cjs/tsconfig.build.tsbuildinfo +1 -1
  31. package/cjs/utils/dom.cjs +2 -2
  32. package/cjs/utils/events.cjs +5 -5
  33. package/cjs/utils/focus.cjs +13 -13
  34. package/cjs/utils/platform.cjs +3 -3
  35. package/cjs/utils/store.cjs +2 -2
  36. package/cjs/utils/types.d.ts +1 -3
  37. package/collection/collection-store/package.json +2 -2
  38. package/combobox/combobox-store/package.json +2 -2
  39. package/composite/composite-overflow-store/package.json +2 -2
  40. package/composite/composite-store/package.json +2 -2
  41. package/dialog/dialog-store/package.json +2 -2
  42. package/disclosure/disclosure-store/package.json +2 -2
  43. package/esm/__chunks/{MNNKHNLW.js → DMXKJRZU.js} +1 -1
  44. package/esm/__chunks/{R6VHFWTV.js → IWUEUGOJ.js} +2 -2
  45. package/esm/__chunks/{BOKMNDR7.js → LK6LFO7X.js} +2 -9
  46. package/esm/__chunks/{N6JW4ITM.js → O35LWD4W.js} +5 -0
  47. package/esm/__chunks/{TFBCK4JB.js → UCFCIHEU.js} +1 -1
  48. package/esm/__chunks/{EWHSN7GO.js → WCRCSMN5.js} +2 -2
  49. package/esm/__chunks/{WP6VLQXI.js → XG2RPUJN.js} +2 -2
  50. package/esm/__chunks/{Z5IDQSMV.js → ZR3DJULN.js} +2 -2
  51. package/esm/__chunks/{ZV2GEGPL.js → ZRL3SZ6Y.js} +1 -1
  52. package/esm/checkbox/checkbox-store.js +1 -1
  53. package/esm/collection/collection-store.js +3 -3
  54. package/esm/combobox/combobox-store.js +8 -8
  55. package/esm/composite/composite-overflow-store.js +4 -4
  56. package/esm/composite/composite-store.js +4 -4
  57. package/esm/dialog/dialog-store.js +3 -3
  58. package/esm/disclosure/disclosure-store.js +2 -2
  59. package/esm/form/form-store.js +3 -3
  60. package/esm/hovercard/hovercard-store.js +5 -5
  61. package/esm/menu/menu-bar-store.js +4 -4
  62. package/esm/menu/menu-store.js +8 -8
  63. package/esm/popover/popover-store.js +4 -4
  64. package/esm/radio/radio-store.js +4 -4
  65. package/esm/select/select-store.d.ts +8 -14
  66. package/esm/select/select-store.js +8 -7
  67. package/esm/tab/tab-store.js +5 -5
  68. package/esm/toolbar/toolbar-store.js +4 -4
  69. package/esm/tooltip/tooltip-store.js +5 -5
  70. package/esm/tsconfig.build.tsbuildinfo +1 -1
  71. package/esm/utils/dom.js +1 -1
  72. package/esm/utils/events.js +2 -2
  73. package/esm/utils/focus.js +1 -1
  74. package/esm/utils/platform.js +2 -2
  75. package/esm/utils/store.js +1 -1
  76. package/esm/utils/types.d.ts +1 -3
  77. package/form/form-store/package.json +2 -2
  78. package/form/types/package.json +2 -2
  79. package/hovercard/hovercard-store/package.json +2 -2
  80. package/menu/menu-bar-store/package.json +2 -2
  81. package/menu/menu-store/package.json +2 -2
  82. package/package.json +1 -1
  83. package/popover/popover-store/package.json +2 -2
  84. package/radio/radio-store/package.json +2 -2
  85. package/select/select-store/package.json +2 -2
  86. package/tab/tab-store/package.json +2 -2
  87. package/toolbar/toolbar-store/package.json +2 -2
  88. package/tooltip/tooltip-store/package.json +2 -2
  89. package/utils/array/package.json +2 -2
  90. package/utils/dom/package.json +2 -2
  91. package/utils/events/package.json +2 -2
  92. package/utils/focus/package.json +2 -2
  93. package/utils/misc/package.json +2 -2
  94. package/utils/platform/package.json +2 -2
  95. package/utils/store/package.json +2 -2
  96. package/utils/types/package.json +2 -2
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _ZNW4LSWUcjs = require('../__chunks/ZNW4LSWU.cjs');
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 (!_ZNW4LSWUcjs.matches.call(void 0, element, selector))
20
+ if (!_EXM2AW52cjs.matches.call(void 0, element, selector))
21
21
  return false;
22
- if (!_ZNW4LSWUcjs.isVisible.call(void 0, element))
22
+ if (!_EXM2AW52cjs.isVisible.call(void 0, element))
23
23
  return false;
24
- if (_ZNW4LSWUcjs.closest.call(void 0, element, "[inert]"))
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 = _ZNW4LSWUcjs.getActiveElement.call(void 0, element);
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 (_ZNW4LSWUcjs.isFrame.call(void 0, element) && element.contentDocument) {
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 (_ZNW4LSWUcjs.isFrame.call(void 0, element) && element.contentDocument) {
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 = _ZNW4LSWUcjs.getActiveElement.call(void 0, container);
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 = _ZNW4LSWUcjs.getActiveElement.call(void 0, container);
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 = _ZNW4LSWUcjs.closest.call(void 0, element, selector);
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 = _ZNW4LSWUcjs.getActiveElement.call(void 0, element);
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 = _ZNW4LSWUcjs.getActiveElement.call(void 0, element);
182
+ const activeElement = _EXM2AW52cjs.getActiveElement.call(void 0, element);
183
183
  if (!activeElement)
184
184
  return false;
185
- if (_ZNW4LSWUcjs.contains.call(void 0, element, activeElement))
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)
@@ -4,8 +4,8 @@
4
4
 
5
5
 
6
6
 
7
- var _DBHIHK7Ccjs = require('../__chunks/DBHIHK7C.cjs');
8
- require('../__chunks/ZNW4LSWU.cjs');
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 = _DBHIHK7Ccjs.isApple; exports.isFirefox = _DBHIHK7Ccjs.isFirefox; exports.isMac = _DBHIHK7Ccjs.isMac; exports.isSafari = _DBHIHK7Ccjs.isSafari; exports.isTouchDevice = _DBHIHK7Ccjs.isTouchDevice;
16
+ exports.isApple = _EIRIJC7Tcjs.isApple; exports.isFirefox = _EIRIJC7Tcjs.isFirefox; exports.isMac = _EIRIJC7Tcjs.isMac; exports.isSafari = _EIRIJC7Tcjs.isSafari; exports.isTouchDevice = _EIRIJC7Tcjs.isTouchDevice;
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _6SPJEESBcjs = require('../__chunks/6SPJEESB.cjs');
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 = _6SPJEESBcjs.createStore; exports.mergeStore = _6SPJEESBcjs.mergeStore;
10
+ exports.createStore = _5LY57557cjs.createStore; exports.mergeStore = _5LY57557cjs.mergeStore;
@@ -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.
@@ -2,6 +2,6 @@
2
2
  "name": "@ariakit/core/collection/collection-store",
3
3
  "private": true,
4
4
  "sideEffects": false,
5
- "main": "../../cjs/collection/collection-store",
6
- "module": "../../esm/collection/collection-store"
5
+ "main": "../../cjs/collection/collection-store.cjs",
6
+ "module": "../../esm/collection/collection-store.js"
7
7
  }
@@ -2,6 +2,6 @@
2
2
  "name": "@ariakit/core/combobox/combobox-store",
3
3
  "private": true,
4
4
  "sideEffects": false,
5
- "main": "../../cjs/combobox/combobox-store",
6
- "module": "../../esm/combobox/combobox-store"
5
+ "main": "../../cjs/combobox/combobox-store.cjs",
6
+ "module": "../../esm/combobox/combobox-store.js"
7
7
  }
@@ -2,6 +2,6 @@
2
2
  "name": "@ariakit/core/composite/composite-overflow-store",
3
3
  "private": true,
4
4
  "sideEffects": false,
5
- "main": "../../cjs/composite/composite-overflow-store",
6
- "module": "../../esm/composite/composite-overflow-store"
5
+ "main": "../../cjs/composite/composite-overflow-store.cjs",
6
+ "module": "../../esm/composite/composite-overflow-store.js"
7
7
  }
@@ -2,6 +2,6 @@
2
2
  "name": "@ariakit/core/composite/composite-store",
3
3
  "private": true,
4
4
  "sideEffects": false,
5
- "main": "../../cjs/composite/composite-store",
6
- "module": "../../esm/composite/composite-store"
5
+ "main": "../../cjs/composite/composite-store.cjs",
6
+ "module": "../../esm/composite/composite-store.js"
7
7
  }
@@ -2,6 +2,6 @@
2
2
  "name": "@ariakit/core/dialog/dialog-store",
3
3
  "private": true,
4
4
  "sideEffects": false,
5
- "main": "../../cjs/dialog/dialog-store",
6
- "module": "../../esm/dialog/dialog-store"
5
+ "main": "../../cjs/dialog/dialog-store.cjs",
6
+ "module": "../../esm/dialog/dialog-store.js"
7
7
  }
@@ -2,6 +2,6 @@
2
2
  "name": "@ariakit/core/disclosure/disclosure-store",
3
3
  "private": true,
4
4
  "sideEffects": false,
5
- "main": "../../cjs/disclosure/disclosure-store",
6
- "module": "../../esm/disclosure/disclosure-store"
5
+ "main": "../../cjs/disclosure/disclosure-store.cjs",
6
+ "module": "../../esm/disclosure/disclosure-store.js"
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createDisclosureStore
3
- } from "./ZV2GEGPL.js";
3
+ } from "./ZRL3SZ6Y.js";
4
4
 
5
5
  // src/dialog/dialog-store.ts
6
6
  function createDialogStore(props = {}) {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createCollectionStore
3
- } from "./EWHSN7GO.js";
3
+ } from "./WCRCSMN5.js";
4
4
  import {
5
5
  createStore
6
- } from "./BOKMNDR7.js";
6
+ } from "./LK6LFO7X.js";
7
7
  import {
8
8
  defaultValue
9
9
  } from "./NWU4GBZ6.js";
@@ -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
- if (!updating) {
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
- queueMicrotask(() => {
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,6 +1,6 @@
1
1
  import {
2
2
  canUseDOM
3
- } from "./N6JW4ITM.js";
3
+ } from "./O35LWD4W.js";
4
4
 
5
5
  // src/utils/platform.ts
6
6
  function isTouchDevice() {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createStore
3
- } from "./BOKMNDR7.js";
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 "./N6JW4ITM.js";
10
+ } from "./O35LWD4W.js";
11
11
  import {
12
12
  __spreadProps,
13
13
  __spreadValues
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createPopoverStore
3
- } from "./Z5IDQSMV.js";
3
+ } from "./ZR3DJULN.js";
4
4
  import {
5
5
  createStore
6
- } from "./BOKMNDR7.js";
6
+ } from "./LK6LFO7X.js";
7
7
  import {
8
8
  defaultValue
9
9
  } from "./NWU4GBZ6.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createDialogStore
3
- } from "./MNNKHNLW.js";
3
+ } from "./DMXKJRZU.js";
4
4
  import {
5
5
  createStore,
6
6
  mergeStore
7
- } from "./BOKMNDR7.js";
7
+ } from "./LK6LFO7X.js";
8
8
  import {
9
9
  defaultValue
10
10
  } from "./NWU4GBZ6.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createStore
3
- } from "./BOKMNDR7.js";
3
+ } from "./LK6LFO7X.js";
4
4
  import {
5
5
  defaultValue
6
6
  } from "./NWU4GBZ6.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createStore
3
- } from "../__chunks/BOKMNDR7.js";
3
+ } from "../__chunks/LK6LFO7X.js";
4
4
  import {
5
5
  defaultValue
6
6
  } from "../__chunks/NWU4GBZ6.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createCollectionStore
3
- } from "../__chunks/EWHSN7GO.js";
4
- import "../__chunks/BOKMNDR7.js";
3
+ } from "../__chunks/WCRCSMN5.js";
4
+ import "../__chunks/LK6LFO7X.js";
5
5
  import "../__chunks/NWU4GBZ6.js";
6
- import "../__chunks/N6JW4ITM.js";
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/Z5IDQSMV.js";
4
- import "../__chunks/MNNKHNLW.js";
5
- import "../__chunks/ZV2GEGPL.js";
3
+ } from "../__chunks/ZR3DJULN.js";
4
+ import "../__chunks/DMXKJRZU.js";
5
+ import "../__chunks/ZRL3SZ6Y.js";
6
6
  import {
7
7
  createCompositeStore
8
- } from "../__chunks/R6VHFWTV.js";
9
- import "../__chunks/EWHSN7GO.js";
8
+ } from "../__chunks/IWUEUGOJ.js";
9
+ import "../__chunks/WCRCSMN5.js";
10
10
  import {
11
11
  createStore,
12
12
  mergeStore
13
- } from "../__chunks/BOKMNDR7.js";
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/TFBCK4JB.js";
21
- import "../__chunks/N6JW4ITM.js";
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/Z5IDQSMV.js";
4
- import "../__chunks/MNNKHNLW.js";
5
- import "../__chunks/ZV2GEGPL.js";
6
- import "../__chunks/BOKMNDR7.js";
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/R6VHFWTV.js";
4
- import "../__chunks/EWHSN7GO.js";
5
- import "../__chunks/BOKMNDR7.js";
3
+ } from "../__chunks/IWUEUGOJ.js";
4
+ import "../__chunks/WCRCSMN5.js";
5
+ import "../__chunks/LK6LFO7X.js";
6
6
  import "../__chunks/NWU4GBZ6.js";
7
- import "../__chunks/N6JW4ITM.js";
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/MNNKHNLW.js";
4
- import "../__chunks/ZV2GEGPL.js";
5
- import "../__chunks/BOKMNDR7.js";
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 {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createDisclosureStore
3
- } from "../__chunks/ZV2GEGPL.js";
4
- import "../__chunks/BOKMNDR7.js";
3
+ } from "../__chunks/ZRL3SZ6Y.js";
4
+ import "../__chunks/LK6LFO7X.js";
5
5
  import "../__chunks/NWU4GBZ6.js";
6
6
  import "../__chunks/4BKCJXBM.js";
7
7
  export {
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  createCollectionStore
3
- } from "../__chunks/EWHSN7GO.js";
3
+ } from "../__chunks/WCRCSMN5.js";
4
4
  import {
5
5
  createStore
6
- } from "../__chunks/BOKMNDR7.js";
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/N6JW4ITM.js";
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/WP6VLQXI.js";
4
- import "../__chunks/Z5IDQSMV.js";
5
- import "../__chunks/MNNKHNLW.js";
6
- import "../__chunks/ZV2GEGPL.js";
7
- import "../__chunks/BOKMNDR7.js";
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/R6VHFWTV.js";
4
- import "../__chunks/EWHSN7GO.js";
5
- import "../__chunks/BOKMNDR7.js";
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/N6JW4ITM.js";
9
+ import "../__chunks/O35LWD4W.js";
10
10
  import "../__chunks/5XEKIOCW.js";
11
11
  import {
12
12
  __spreadProps,
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  createHovercardStore
3
- } from "../__chunks/WP6VLQXI.js";
4
- import "../__chunks/Z5IDQSMV.js";
5
- import "../__chunks/MNNKHNLW.js";
6
- import "../__chunks/ZV2GEGPL.js";
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/R6VHFWTV.js";
10
- import "../__chunks/EWHSN7GO.js";
9
+ } from "../__chunks/IWUEUGOJ.js";
10
+ import "../__chunks/WCRCSMN5.js";
11
11
  import {
12
12
  createStore,
13
13
  mergeStore
14
- } from "../__chunks/BOKMNDR7.js";
14
+ } from "../__chunks/LK6LFO7X.js";
15
15
  import {
16
16
  applyState,
17
17
  defaultValue
18
18
  } from "../__chunks/NWU4GBZ6.js";
19
- import "../__chunks/N6JW4ITM.js";
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/Z5IDQSMV.js";
4
- import "../__chunks/MNNKHNLW.js";
5
- import "../__chunks/ZV2GEGPL.js";
6
- import "../__chunks/BOKMNDR7.js";
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 {
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  createCompositeStore
3
- } from "../__chunks/R6VHFWTV.js";
4
- import "../__chunks/EWHSN7GO.js";
3
+ } from "../__chunks/IWUEUGOJ.js";
4
+ import "../__chunks/WCRCSMN5.js";
5
5
  import {
6
6
  createStore
7
- } from "../__chunks/BOKMNDR7.js";
7
+ } from "../__chunks/LK6LFO7X.js";
8
8
  import {
9
9
  defaultValue
10
10
  } from "../__chunks/NWU4GBZ6.js";
11
- import "../__chunks/N6JW4ITM.js";
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
- * @default "bottom-start"
27
+ * Whether the select store has received a combobox prop.
34
28
  */
35
- placement: PopoverStoreState["placement"];
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/Z5IDQSMV.js";
4
- import "../__chunks/MNNKHNLW.js";
5
- import "../__chunks/ZV2GEGPL.js";
3
+ } from "../__chunks/ZR3DJULN.js";
4
+ import "../__chunks/DMXKJRZU.js";
5
+ import "../__chunks/ZRL3SZ6Y.js";
6
6
  import {
7
7
  createCompositeStore
8
- } from "../__chunks/R6VHFWTV.js";
9
- import "../__chunks/EWHSN7GO.js";
8
+ } from "../__chunks/IWUEUGOJ.js";
9
+ import "../__chunks/WCRCSMN5.js";
10
10
  import {
11
11
  createStore,
12
12
  mergeStore
13
- } from "../__chunks/BOKMNDR7.js";
13
+ } from "../__chunks/LK6LFO7X.js";
14
14
  import {
15
15
  defaultValue
16
16
  } from "../__chunks/NWU4GBZ6.js";
17
- import "../__chunks/N6JW4ITM.js";
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,