@ariakit/core 0.4.12 → 0.4.14

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 (79) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/cjs/__chunks/{WCFMOJKV.cjs → 726BNPQZ.cjs} +36 -2
  3. package/cjs/__chunks/{BSLRW6E7.cjs → ASR6PAFN.cjs} +1 -1
  4. package/cjs/__chunks/{G2NIRMCL.cjs → BUEPUCQL.cjs} +14 -42
  5. package/cjs/__chunks/{C5P5S22J.cjs → BVPEDDW6.cjs} +7 -7
  6. package/cjs/__chunks/{A47DWKLR.cjs → K7YTZVWC.cjs} +11 -6
  7. package/cjs/__chunks/{LSC6QXJ7.cjs → RL7DKHOF.cjs} +4 -4
  8. package/cjs/__chunks/{FGGZELG7.cjs → TFI7KVZO.cjs} +4 -4
  9. package/cjs/__chunks/{G2MFLTB2.cjs → V4YF2QA6.cjs} +11 -11
  10. package/cjs/__chunks/{TEPPO3KC.cjs → WOLZY4WC.cjs} +6 -6
  11. package/cjs/__chunks/{I2G6EN27.cjs → YMCSKJHR.cjs} +2 -2
  12. package/cjs/checkbox/checkbox-store.cjs +3 -3
  13. package/cjs/collection/collection-store.cjs +4 -4
  14. package/cjs/combobox/combobox-store.cjs +27 -27
  15. package/cjs/composite/composite-overflow-store.cjs +5 -5
  16. package/cjs/composite/composite-store.cjs +5 -5
  17. package/cjs/composite/composite-store.d.cts +7 -1
  18. package/cjs/composite/composite-store.d.ts +7 -1
  19. package/cjs/dialog/dialog-store.cjs +4 -4
  20. package/cjs/disclosure/disclosure-store.cjs +3 -3
  21. package/cjs/form/form-store.cjs +8 -8
  22. package/cjs/form/form-store.d.cts +2 -2
  23. package/cjs/form/form-store.d.ts +2 -2
  24. package/cjs/hovercard/hovercard-store.cjs +6 -6
  25. package/cjs/menu/menu-bar-store.cjs +6 -6
  26. package/cjs/menu/menu-store.cjs +19 -19
  27. package/cjs/menubar/menubar-store.cjs +6 -6
  28. package/cjs/popover/popover-store.cjs +5 -5
  29. package/cjs/radio/radio-store.cjs +6 -6
  30. package/cjs/select/select-store.cjs +21 -21
  31. package/cjs/tab/tab-store.cjs +24 -24
  32. package/cjs/tag/tag-store.cjs +8 -8
  33. package/cjs/toolbar/toolbar-store.cjs +5 -5
  34. package/cjs/tooltip/tooltip-store.cjs +7 -7
  35. package/cjs/utils/dom.cjs +4 -2
  36. package/cjs/utils/dom.d.cts +6 -2
  37. package/cjs/utils/dom.d.ts +6 -2
  38. package/cjs/utils/events.cjs +5 -5
  39. package/cjs/utils/focus.cjs +10 -10
  40. package/cjs/utils/platform.cjs +3 -3
  41. package/cjs/utils/store.cjs +2 -2
  42. package/esm/__chunks/{S22RJCNX.js → 7HRRFUKQ.js} +2 -2
  43. package/esm/__chunks/{IJ6VFLJG.js → AJZ4BYF3.js} +7 -2
  44. package/esm/__chunks/{EQQLU3CG.js → BCALMBPZ.js} +1 -1
  45. package/esm/__chunks/{7DTP4AQO.js → CYQWQL4J.js} +6 -34
  46. package/esm/__chunks/{PQP5VPTV.js → DTR5TSDJ.js} +36 -2
  47. package/esm/__chunks/{YOHCVXJB.js → FZZ2AVHF.js} +1 -1
  48. package/esm/__chunks/{EACLTACN.js → JTLIIJ4U.js} +2 -2
  49. package/esm/__chunks/{3UYWTADI.js → ME2CUF3F.js} +2 -2
  50. package/esm/__chunks/{3VBK76MS.js → QAGXQEUG.js} +1 -1
  51. package/esm/__chunks/{6E4KKOSB.js → RCQ5P4YE.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.d.ts +7 -1
  57. package/esm/composite/composite-store.js +4 -4
  58. package/esm/dialog/dialog-store.js +3 -3
  59. package/esm/disclosure/disclosure-store.js +2 -2
  60. package/esm/form/form-store.d.ts +2 -2
  61. package/esm/form/form-store.js +3 -3
  62. package/esm/hovercard/hovercard-store.js +5 -5
  63. package/esm/menu/menu-bar-store.js +5 -5
  64. package/esm/menu/menu-store.js +8 -8
  65. package/esm/menubar/menubar-store.js +5 -5
  66. package/esm/popover/popover-store.js +4 -4
  67. package/esm/radio/radio-store.js +4 -4
  68. package/esm/select/select-store.js +7 -7
  69. package/esm/tab/tab-store.js +4 -4
  70. package/esm/tag/tag-store.js +4 -4
  71. package/esm/toolbar/toolbar-store.js +4 -4
  72. package/esm/tooltip/tooltip-store.js +5 -5
  73. package/esm/utils/dom.d.ts +6 -2
  74. package/esm/utils/dom.js +5 -3
  75. package/esm/utils/events.js +2 -2
  76. package/esm/utils/focus.js +1 -1
  77. package/esm/utils/platform.js +2 -2
  78. package/esm/utils/store.js +1 -1
  79. package/package.json +1 -1
@@ -1,15 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _C5P5S22Jcjs = require('../__chunks/C5P5S22J.cjs');
4
- require('../__chunks/I2G6EN27.cjs');
5
- require('../__chunks/G2MFLTB2.cjs');
6
- require('../__chunks/BSLRW6E7.cjs');
3
+ var _BVPEDDW6cjs = require('../__chunks/BVPEDDW6.cjs');
4
+ require('../__chunks/YMCSKJHR.cjs');
5
+ require('../__chunks/V4YF2QA6.cjs');
6
+ require('../__chunks/ASR6PAFN.cjs');
7
7
  require('../__chunks/MLCPLY2P.cjs');
8
8
  require('../__chunks/7EQBAZ46.cjs');
9
9
 
10
10
  // src/composite/composite-overflow-store.ts
11
11
  function createCompositeOverflowStore(props = {}) {
12
- return _C5P5S22Jcjs.createPopoverStore.call(void 0, props);
12
+ return _BVPEDDW6cjs.createPopoverStore.call(void 0, props);
13
13
  }
14
14
 
15
15
 
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _A47DWKLRcjs = require('../__chunks/A47DWKLR.cjs');
4
- require('../__chunks/G2NIRMCL.cjs');
3
+ var _K7YTZVWCcjs = require('../__chunks/K7YTZVWC.cjs');
4
+ require('../__chunks/BUEPUCQL.cjs');
5
5
  require('../__chunks/GDZQUFNP.cjs');
6
- require('../__chunks/BSLRW6E7.cjs');
6
+ require('../__chunks/ASR6PAFN.cjs');
7
7
  require('../__chunks/MLCPLY2P.cjs');
8
- require('../__chunks/WCFMOJKV.cjs');
8
+ require('../__chunks/726BNPQZ.cjs');
9
9
  require('../__chunks/7EQBAZ46.cjs');
10
10
 
11
11
 
12
- exports.createCompositeStore = _A47DWKLRcjs.createCompositeStore;
12
+ exports.createCompositeStore = _K7YTZVWCcjs.createCompositeStore;
@@ -31,6 +31,12 @@ export interface CompositeStoreItem extends CollectionStoreItem {
31
31
  children?: string;
32
32
  }
33
33
  export interface CompositeStoreState<T extends CompositeStoreItem = CompositeStoreItem> extends CollectionStoreState<T> {
34
+ /**
35
+ * The ID of the composite store is used to reference elements within the
36
+ * composite widget before hydration. If not provided, a random ID will be
37
+ * generated.
38
+ */
39
+ id: string;
34
40
  /**
35
41
  * The composite element itself. Typically, it's the wrapper element that
36
42
  * contains composite items. However, in a combobox, it's the input element.
@@ -289,7 +295,7 @@ export interface CompositeStoreFunctions<T extends CompositeStoreItem = Composit
289
295
  */
290
296
  last: () => string | null | undefined;
291
297
  }
292
- export interface CompositeStoreOptions<T extends CompositeStoreItem = CompositeStoreItem> extends CollectionStoreOptions<T>, StoreOptions<CompositeStoreState<T>, "virtualFocus" | "orientation" | "rtl" | "focusLoop" | "focusWrap" | "focusShift" | "includesBaseElement" | "activeId"> {
298
+ export interface CompositeStoreOptions<T extends CompositeStoreItem = CompositeStoreItem> extends CollectionStoreOptions<T>, StoreOptions<CompositeStoreState<T>, "id" | "virtualFocus" | "orientation" | "rtl" | "focusLoop" | "focusWrap" | "focusShift" | "includesBaseElement" | "activeId"> {
293
299
  /**
294
300
  * The composite item id that should be active by default when the composite
295
301
  * widget is rendered. If `null`, the composite element itself will have focus
@@ -31,6 +31,12 @@ export interface CompositeStoreItem extends CollectionStoreItem {
31
31
  children?: string;
32
32
  }
33
33
  export interface CompositeStoreState<T extends CompositeStoreItem = CompositeStoreItem> extends CollectionStoreState<T> {
34
+ /**
35
+ * The ID of the composite store is used to reference elements within the
36
+ * composite widget before hydration. If not provided, a random ID will be
37
+ * generated.
38
+ */
39
+ id: string;
34
40
  /**
35
41
  * The composite element itself. Typically, it's the wrapper element that
36
42
  * contains composite items. However, in a combobox, it's the input element.
@@ -289,7 +295,7 @@ export interface CompositeStoreFunctions<T extends CompositeStoreItem = Composit
289
295
  */
290
296
  last: () => string | null | undefined;
291
297
  }
292
- export interface CompositeStoreOptions<T extends CompositeStoreItem = CompositeStoreItem> extends CollectionStoreOptions<T>, StoreOptions<CompositeStoreState<T>, "virtualFocus" | "orientation" | "rtl" | "focusLoop" | "focusWrap" | "focusShift" | "includesBaseElement" | "activeId"> {
298
+ export interface CompositeStoreOptions<T extends CompositeStoreItem = CompositeStoreItem> extends CollectionStoreOptions<T>, StoreOptions<CompositeStoreState<T>, "id" | "virtualFocus" | "orientation" | "rtl" | "focusLoop" | "focusWrap" | "focusShift" | "includesBaseElement" | "activeId"> {
293
299
  /**
294
300
  * The composite item id that should be active by default when the composite
295
301
  * widget is rendered. If `null`, the composite element itself will have focus
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _I2G6EN27cjs = require('../__chunks/I2G6EN27.cjs');
4
- require('../__chunks/G2MFLTB2.cjs');
5
- require('../__chunks/BSLRW6E7.cjs');
3
+ var _YMCSKJHRcjs = require('../__chunks/YMCSKJHR.cjs');
4
+ require('../__chunks/V4YF2QA6.cjs');
5
+ require('../__chunks/ASR6PAFN.cjs');
6
6
  require('../__chunks/MLCPLY2P.cjs');
7
7
  require('../__chunks/7EQBAZ46.cjs');
8
8
 
9
9
 
10
- exports.createDialogStore = _I2G6EN27cjs.createDialogStore;
10
+ exports.createDialogStore = _YMCSKJHRcjs.createDialogStore;
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _G2MFLTB2cjs = require('../__chunks/G2MFLTB2.cjs');
4
- require('../__chunks/BSLRW6E7.cjs');
3
+ var _V4YF2QA6cjs = require('../__chunks/V4YF2QA6.cjs');
4
+ require('../__chunks/ASR6PAFN.cjs');
5
5
  require('../__chunks/MLCPLY2P.cjs');
6
6
  require('../__chunks/7EQBAZ46.cjs');
7
7
 
8
8
 
9
- exports.createDisclosureStore = _G2MFLTB2cjs.createDisclosureStore;
9
+ exports.createDisclosureStore = _V4YF2QA6cjs.createDisclosureStore;
@@ -1,19 +1,19 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _G2NIRMCLcjs = require('../__chunks/G2NIRMCL.cjs');
3
+ var _BUEPUCQLcjs = require('../__chunks/BUEPUCQL.cjs');
4
4
 
5
5
 
6
6
 
7
7
 
8
8
 
9
- var _BSLRW6E7cjs = require('../__chunks/BSLRW6E7.cjs');
9
+ var _ASR6PAFNcjs = require('../__chunks/ASR6PAFN.cjs');
10
10
 
11
11
 
12
12
 
13
13
 
14
14
 
15
15
  var _MLCPLY2Pcjs = require('../__chunks/MLCPLY2P.cjs');
16
- require('../__chunks/WCFMOJKV.cjs');
16
+ require('../__chunks/726BNPQZ.cjs');
17
17
 
18
18
 
19
19
 
@@ -112,9 +112,9 @@ function createNames() {
112
112
  }
113
113
  function createFormStore(props = {}) {
114
114
  var _a;
115
- _BSLRW6E7cjs.throwOnConflictingProps.call(void 0, props, props.store);
115
+ _ASR6PAFNcjs.throwOnConflictingProps.call(void 0, props, props.store);
116
116
  const syncState = (_a = props.store) == null ? void 0 : _a.getState();
117
- const collection = _G2NIRMCLcjs.createCollectionStore.call(void 0, props);
117
+ const collection = _BUEPUCQLcjs.createCollectionStore.call(void 0, props);
118
118
  const values = _MLCPLY2Pcjs.defaultValue.call(void 0,
119
119
  props.values,
120
120
  syncState == null ? void 0 : syncState.values,
@@ -143,15 +143,15 @@ function createFormStore(props = {}) {
143
143
  submitFailed: _MLCPLY2Pcjs.defaultValue.call(void 0, syncState == null ? void 0 : syncState.submitFailed, 0),
144
144
  valid: !hasMessages(errors)
145
145
  });
146
- const form = _BSLRW6E7cjs.createStore.call(void 0, initialState, collection, props.store);
146
+ const form = _ASR6PAFNcjs.createStore.call(void 0, initialState, collection, props.store);
147
147
  const syncCallbacks = getStoreCallbacks(props.store);
148
148
  const syncCallbacksState = syncCallbacks == null ? void 0 : syncCallbacks.getState();
149
149
  const callbacksInitialState = {
150
150
  validate: (syncCallbacksState == null ? void 0 : syncCallbacksState.validate) || [],
151
151
  submit: (syncCallbacksState == null ? void 0 : syncCallbacksState.submit) || []
152
152
  };
153
- const callbacks = _BSLRW6E7cjs.createStore.call(void 0, callbacksInitialState, syncCallbacks);
154
- _BSLRW6E7cjs.setup.call(void 0, form, () => _BSLRW6E7cjs.init.call(void 0, callbacks));
153
+ const callbacks = _ASR6PAFNcjs.createStore.call(void 0, callbacksInitialState, syncCallbacks);
154
+ _ASR6PAFNcjs.setup.call(void 0, form, () => _ASR6PAFNcjs.init.call(void 0, callbacks));
155
155
  const validate = async () => {
156
156
  form.setState("validating", true);
157
157
  form.setState("errors", {});
@@ -186,7 +186,7 @@ export interface FormStoreFunctions<T extends FormStoreValues = FormStoreValues>
186
186
  * }
187
187
  * });
188
188
  */
189
- onValidate: (callback: FormStoreCallback<FormStoreState<T>>) => void;
189
+ onValidate: (callback: FormStoreCallback<FormStoreState<T>>) => () => void;
190
190
  /**
191
191
  * Function that accepts a callback that will be used to submit the form when
192
192
  * [`submit`](https://ariakit.org/reference/use-form-store#submit) is called.
@@ -201,7 +201,7 @@ export interface FormStoreFunctions<T extends FormStoreValues = FormStoreValues>
201
201
  * }
202
202
  * });
203
203
  */
204
- onSubmit: (callback: FormStoreCallback<FormStoreState<T>>) => void;
204
+ onSubmit: (callback: FormStoreCallback<FormStoreState<T>>) => () => void;
205
205
  /**
206
206
  * Validates the form.
207
207
  * @example
@@ -186,7 +186,7 @@ export interface FormStoreFunctions<T extends FormStoreValues = FormStoreValues>
186
186
  * }
187
187
  * });
188
188
  */
189
- onValidate: (callback: FormStoreCallback<FormStoreState<T>>) => void;
189
+ onValidate: (callback: FormStoreCallback<FormStoreState<T>>) => () => void;
190
190
  /**
191
191
  * Function that accepts a callback that will be used to submit the form when
192
192
  * [`submit`](https://ariakit.org/reference/use-form-store#submit) is called.
@@ -201,7 +201,7 @@ export interface FormStoreFunctions<T extends FormStoreValues = FormStoreValues>
201
201
  * }
202
202
  * });
203
203
  */
204
- onSubmit: (callback: FormStoreCallback<FormStoreState<T>>) => void;
204
+ onSubmit: (callback: FormStoreCallback<FormStoreState<T>>) => () => void;
205
205
  /**
206
206
  * Validates the form.
207
207
  * @example
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _LSC6QXJ7cjs = require('../__chunks/LSC6QXJ7.cjs');
4
- require('../__chunks/C5P5S22J.cjs');
5
- require('../__chunks/I2G6EN27.cjs');
6
- require('../__chunks/G2MFLTB2.cjs');
7
- require('../__chunks/BSLRW6E7.cjs');
3
+ var _RL7DKHOFcjs = require('../__chunks/RL7DKHOF.cjs');
4
+ require('../__chunks/BVPEDDW6.cjs');
5
+ require('../__chunks/YMCSKJHR.cjs');
6
+ require('../__chunks/V4YF2QA6.cjs');
7
+ require('../__chunks/ASR6PAFN.cjs');
8
8
  require('../__chunks/MLCPLY2P.cjs');
9
9
  require('../__chunks/7EQBAZ46.cjs');
10
10
 
11
11
 
12
- exports.createHovercardStore = _LSC6QXJ7cjs.createHovercardStore;
12
+ exports.createHovercardStore = _RL7DKHOFcjs.createHovercardStore;
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _FGGZELG7cjs = require('../__chunks/FGGZELG7.cjs');
4
- require('../__chunks/A47DWKLR.cjs');
5
- require('../__chunks/G2NIRMCL.cjs');
3
+ var _TFI7KVZOcjs = require('../__chunks/TFI7KVZO.cjs');
4
+ require('../__chunks/K7YTZVWC.cjs');
5
+ require('../__chunks/BUEPUCQL.cjs');
6
6
  require('../__chunks/GDZQUFNP.cjs');
7
- require('../__chunks/BSLRW6E7.cjs');
7
+ require('../__chunks/ASR6PAFN.cjs');
8
8
  require('../__chunks/MLCPLY2P.cjs');
9
- require('../__chunks/WCFMOJKV.cjs');
9
+ require('../__chunks/726BNPQZ.cjs');
10
10
  require('../__chunks/7EQBAZ46.cjs');
11
11
 
12
12
  // src/menu/menu-bar-store.ts
13
13
  function createMenuBarStore(props = {}) {
14
- return _FGGZELG7cjs.createMenubarStore.call(void 0, props);
14
+ return _TFI7KVZOcjs.createMenubarStore.call(void 0, props);
15
15
  }
16
16
 
17
17
 
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _LSC6QXJ7cjs = require('../__chunks/LSC6QXJ7.cjs');
3
+ var _RL7DKHOFcjs = require('../__chunks/RL7DKHOF.cjs');
4
4
 
5
5
 
6
- var _A47DWKLRcjs = require('../__chunks/A47DWKLR.cjs');
7
- require('../__chunks/G2NIRMCL.cjs');
6
+ var _K7YTZVWCcjs = require('../__chunks/K7YTZVWC.cjs');
7
+ require('../__chunks/BUEPUCQL.cjs');
8
8
  require('../__chunks/GDZQUFNP.cjs');
9
- require('../__chunks/C5P5S22J.cjs');
10
- require('../__chunks/I2G6EN27.cjs');
11
- require('../__chunks/G2MFLTB2.cjs');
9
+ require('../__chunks/BVPEDDW6.cjs');
10
+ require('../__chunks/YMCSKJHR.cjs');
11
+ require('../__chunks/V4YF2QA6.cjs');
12
12
 
13
13
 
14
14
 
@@ -17,12 +17,12 @@ require('../__chunks/G2MFLTB2.cjs');
17
17
 
18
18
 
19
19
 
20
- var _BSLRW6E7cjs = require('../__chunks/BSLRW6E7.cjs');
20
+ var _ASR6PAFNcjs = require('../__chunks/ASR6PAFN.cjs');
21
21
 
22
22
 
23
23
 
24
24
  var _MLCPLY2Pcjs = require('../__chunks/MLCPLY2P.cjs');
25
- require('../__chunks/WCFMOJKV.cjs');
25
+ require('../__chunks/726BNPQZ.cjs');
26
26
 
27
27
 
28
28
 
@@ -41,10 +41,10 @@ function createMenuStore(_a = {}) {
41
41
  "menubar"
42
42
  ]);
43
43
  const parentIsMenubar = !!menubar && !parent;
44
- const store = _BSLRW6E7cjs.mergeStore.call(void 0,
44
+ const store = _ASR6PAFNcjs.mergeStore.call(void 0,
45
45
  props.store,
46
- _BSLRW6E7cjs.pick.call(void 0, parent, ["values"]),
47
- _BSLRW6E7cjs.omit.call(void 0, combobox, [
46
+ _ASR6PAFNcjs.pick.call(void 0, parent, ["values"]),
47
+ _ASR6PAFNcjs.omit.call(void 0, combobox, [
48
48
  "arrowElement",
49
49
  "anchorElement",
50
50
  "contentElement",
@@ -52,9 +52,9 @@ function createMenuStore(_a = {}) {
52
52
  "disclosureElement"
53
53
  ])
54
54
  );
55
- _BSLRW6E7cjs.throwOnConflictingProps.call(void 0, props, store);
55
+ _ASR6PAFNcjs.throwOnConflictingProps.call(void 0, props, store);
56
56
  const syncState = store.getState();
57
- const composite = _A47DWKLRcjs.createCompositeStore.call(void 0, _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, props), {
57
+ const composite = _K7YTZVWCcjs.createCompositeStore.call(void 0, _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, props), {
58
58
  store,
59
59
  orientation: _MLCPLY2Pcjs.defaultValue.call(void 0,
60
60
  props.orientation,
@@ -62,7 +62,7 @@ function createMenuStore(_a = {}) {
62
62
  "vertical"
63
63
  )
64
64
  }));
65
- const hovercard = _LSC6QXJ7cjs.createHovercardStore.call(void 0, _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, props), {
65
+ const hovercard = _RL7DKHOFcjs.createHovercardStore.call(void 0, _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, props), {
66
66
  store,
67
67
  placement: _MLCPLY2Pcjs.defaultValue.call(void 0,
68
68
  props.placement,
@@ -85,17 +85,17 @@ function createMenuStore(_a = {}) {
85
85
  {}
86
86
  )
87
87
  });
88
- const menu = _BSLRW6E7cjs.createStore.call(void 0, initialState, composite, hovercard, store);
89
- _BSLRW6E7cjs.setup.call(void 0,
88
+ const menu = _ASR6PAFNcjs.createStore.call(void 0, initialState, composite, hovercard, store);
89
+ _ASR6PAFNcjs.setup.call(void 0,
90
90
  menu,
91
- () => _BSLRW6E7cjs.sync.call(void 0, menu, ["mounted"], (state) => {
91
+ () => _ASR6PAFNcjs.sync.call(void 0, menu, ["mounted"], (state) => {
92
92
  if (state.mounted) return;
93
93
  menu.setState("activeId", null);
94
94
  })
95
95
  );
96
- _BSLRW6E7cjs.setup.call(void 0,
96
+ _ASR6PAFNcjs.setup.call(void 0,
97
97
  menu,
98
- () => _BSLRW6E7cjs.sync.call(void 0, parent, ["orientation"], (state) => {
98
+ () => _ASR6PAFNcjs.sync.call(void 0, parent, ["orientation"], (state) => {
99
99
  menu.setState(
100
100
  "placement",
101
101
  state.orientation === "vertical" ? "right-start" : "bottom-start"
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _FGGZELG7cjs = require('../__chunks/FGGZELG7.cjs');
4
- require('../__chunks/A47DWKLR.cjs');
5
- require('../__chunks/G2NIRMCL.cjs');
3
+ var _TFI7KVZOcjs = require('../__chunks/TFI7KVZO.cjs');
4
+ require('../__chunks/K7YTZVWC.cjs');
5
+ require('../__chunks/BUEPUCQL.cjs');
6
6
  require('../__chunks/GDZQUFNP.cjs');
7
- require('../__chunks/BSLRW6E7.cjs');
7
+ require('../__chunks/ASR6PAFN.cjs');
8
8
  require('../__chunks/MLCPLY2P.cjs');
9
- require('../__chunks/WCFMOJKV.cjs');
9
+ require('../__chunks/726BNPQZ.cjs');
10
10
  require('../__chunks/7EQBAZ46.cjs');
11
11
 
12
12
 
13
- exports.createMenubarStore = _FGGZELG7cjs.createMenubarStore;
13
+ exports.createMenubarStore = _TFI7KVZOcjs.createMenubarStore;
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _C5P5S22Jcjs = require('../__chunks/C5P5S22J.cjs');
4
- require('../__chunks/I2G6EN27.cjs');
5
- require('../__chunks/G2MFLTB2.cjs');
6
- require('../__chunks/BSLRW6E7.cjs');
3
+ var _BVPEDDW6cjs = require('../__chunks/BVPEDDW6.cjs');
4
+ require('../__chunks/YMCSKJHR.cjs');
5
+ require('../__chunks/V4YF2QA6.cjs');
6
+ require('../__chunks/ASR6PAFN.cjs');
7
7
  require('../__chunks/MLCPLY2P.cjs');
8
8
  require('../__chunks/7EQBAZ46.cjs');
9
9
 
10
10
 
11
- exports.createPopoverStore = _C5P5S22Jcjs.createPopoverStore;
11
+ exports.createPopoverStore = _BVPEDDW6cjs.createPopoverStore;
@@ -1,15 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _A47DWKLRcjs = require('../__chunks/A47DWKLR.cjs');
4
- require('../__chunks/G2NIRMCL.cjs');
3
+ var _K7YTZVWCcjs = require('../__chunks/K7YTZVWC.cjs');
4
+ require('../__chunks/BUEPUCQL.cjs');
5
5
  require('../__chunks/GDZQUFNP.cjs');
6
6
 
7
7
 
8
- var _BSLRW6E7cjs = require('../__chunks/BSLRW6E7.cjs');
8
+ var _ASR6PAFNcjs = require('../__chunks/ASR6PAFN.cjs');
9
9
 
10
10
 
11
11
  var _MLCPLY2Pcjs = require('../__chunks/MLCPLY2P.cjs');
12
- require('../__chunks/WCFMOJKV.cjs');
12
+ require('../__chunks/726BNPQZ.cjs');
13
13
 
14
14
 
15
15
 
@@ -21,7 +21,7 @@ function createRadioStore(_a = {}) {
21
21
  var props = _7EQBAZ46cjs.__objRest.call(void 0, _a, []);
22
22
  var _a2;
23
23
  const syncState = (_a2 = props.store) == null ? void 0 : _a2.getState();
24
- const composite = _A47DWKLRcjs.createCompositeStore.call(void 0, _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, props), {
24
+ const composite = _K7YTZVWCcjs.createCompositeStore.call(void 0, _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, props), {
25
25
  focusLoop: _MLCPLY2Pcjs.defaultValue.call(void 0, props.focusLoop, syncState == null ? void 0 : syncState.focusLoop, true)
26
26
  }));
27
27
  const initialState = _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, composite.getState()), {
@@ -32,7 +32,7 @@ function createRadioStore(_a = {}) {
32
32
  null
33
33
  )
34
34
  });
35
- const radio = _BSLRW6E7cjs.createStore.call(void 0, initialState, composite, props.store);
35
+ const radio = _ASR6PAFNcjs.createStore.call(void 0, initialState, composite, props.store);
36
36
  return _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, composite), radio), {
37
37
  setValue: (value) => radio.setState("value", value)
38
38
  });
@@ -1,15 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _A47DWKLRcjs = require('../__chunks/A47DWKLR.cjs');
4
- require('../__chunks/G2NIRMCL.cjs');
3
+ var _K7YTZVWCcjs = require('../__chunks/K7YTZVWC.cjs');
4
+ require('../__chunks/BUEPUCQL.cjs');
5
5
 
6
6
 
7
7
  var _GDZQUFNPcjs = require('../__chunks/GDZQUFNP.cjs');
8
8
 
9
9
 
10
- var _C5P5S22Jcjs = require('../__chunks/C5P5S22J.cjs');
11
- require('../__chunks/I2G6EN27.cjs');
12
- require('../__chunks/G2MFLTB2.cjs');
10
+ var _BVPEDDW6cjs = require('../__chunks/BVPEDDW6.cjs');
11
+ require('../__chunks/YMCSKJHR.cjs');
12
+ require('../__chunks/V4YF2QA6.cjs');
13
13
 
14
14
 
15
15
 
@@ -18,11 +18,11 @@ require('../__chunks/G2MFLTB2.cjs');
18
18
 
19
19
 
20
20
 
21
- var _BSLRW6E7cjs = require('../__chunks/BSLRW6E7.cjs');
21
+ var _ASR6PAFNcjs = require('../__chunks/ASR6PAFN.cjs');
22
22
 
23
23
 
24
24
  var _MLCPLY2Pcjs = require('../__chunks/MLCPLY2P.cjs');
25
- require('../__chunks/WCFMOJKV.cjs');
25
+ require('../__chunks/726BNPQZ.cjs');
26
26
 
27
27
 
28
28
 
@@ -36,9 +36,9 @@ function createSelectStore(_a = {}) {
36
36
  } = _b, props = _7EQBAZ46cjs.__objRest.call(void 0, _b, [
37
37
  "combobox"
38
38
  ]);
39
- const store = _BSLRW6E7cjs.mergeStore.call(void 0,
39
+ const store = _ASR6PAFNcjs.mergeStore.call(void 0,
40
40
  props.store,
41
- _BSLRW6E7cjs.omit.call(void 0, combobox, [
41
+ _ASR6PAFNcjs.omit.call(void 0, combobox, [
42
42
  "value",
43
43
  "items",
44
44
  "renderedItems",
@@ -50,9 +50,9 @@ function createSelectStore(_a = {}) {
50
50
  "disclosureElement"
51
51
  ])
52
52
  );
53
- _BSLRW6E7cjs.throwOnConflictingProps.call(void 0, props, store);
53
+ _ASR6PAFNcjs.throwOnConflictingProps.call(void 0, props, store);
54
54
  const syncState = store.getState();
55
- const composite = _A47DWKLRcjs.createCompositeStore.call(void 0, _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, props), {
55
+ const composite = _K7YTZVWCcjs.createCompositeStore.call(void 0, _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, props), {
56
56
  store,
57
57
  virtualFocus: _MLCPLY2Pcjs.defaultValue.call(void 0,
58
58
  props.virtualFocus,
@@ -76,7 +76,7 @@ function createSelectStore(_a = {}) {
76
76
  "vertical"
77
77
  )
78
78
  }));
79
- const popover = _C5P5S22Jcjs.createPopoverStore.call(void 0, _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, props), {
79
+ const popover = _BVPEDDW6cjs.createPopoverStore.call(void 0, _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, props), {
80
80
  store,
81
81
  placement: _MLCPLY2Pcjs.defaultValue.call(void 0,
82
82
  props.placement,
@@ -101,10 +101,10 @@ function createSelectStore(_a = {}) {
101
101
  selectElement: _MLCPLY2Pcjs.defaultValue.call(void 0, syncState.selectElement, null),
102
102
  listElement: _MLCPLY2Pcjs.defaultValue.call(void 0, syncState.listElement, null)
103
103
  });
104
- const select = _BSLRW6E7cjs.createStore.call(void 0, initialState, composite, popover, store);
105
- _BSLRW6E7cjs.setup.call(void 0,
104
+ const select = _ASR6PAFNcjs.createStore.call(void 0, initialState, composite, popover, store);
105
+ _ASR6PAFNcjs.setup.call(void 0,
106
106
  select,
107
- () => _BSLRW6E7cjs.sync.call(void 0, select, ["value", "items"], (state) => {
107
+ () => _ASR6PAFNcjs.sync.call(void 0, select, ["value", "items"], (state) => {
108
108
  if (state.value !== initialValue) return;
109
109
  if (!state.items.length) return;
110
110
  const item = state.items.find(
@@ -114,16 +114,16 @@ function createSelectStore(_a = {}) {
114
114
  select.setState("value", item.value);
115
115
  })
116
116
  );
117
- _BSLRW6E7cjs.setup.call(void 0,
117
+ _ASR6PAFNcjs.setup.call(void 0,
118
118
  select,
119
- () => _BSLRW6E7cjs.sync.call(void 0, select, ["mounted"], (state) => {
119
+ () => _ASR6PAFNcjs.sync.call(void 0, select, ["mounted"], (state) => {
120
120
  if (state.mounted) return;
121
121
  select.setState("activeId", initialState.activeId);
122
122
  })
123
123
  );
124
- _BSLRW6E7cjs.setup.call(void 0,
124
+ _ASR6PAFNcjs.setup.call(void 0,
125
125
  select,
126
- () => _BSLRW6E7cjs.sync.call(void 0, select, ["mounted", "items", "value"], (state) => {
126
+ () => _ASR6PAFNcjs.sync.call(void 0, select, ["mounted", "items", "value"], (state) => {
127
127
  if (combobox) return;
128
128
  if (state.mounted) return;
129
129
  const values = _GDZQUFNPcjs.toArray.call(void 0, state.value);
@@ -136,9 +136,9 @@ function createSelectStore(_a = {}) {
136
136
  select.setState("activeId", item.id);
137
137
  })
138
138
  );
139
- _BSLRW6E7cjs.setup.call(void 0,
139
+ _ASR6PAFNcjs.setup.call(void 0,
140
140
  select,
141
- () => _BSLRW6E7cjs.batch.call(void 0, select, ["setValueOnMove", "moves"], (state) => {
141
+ () => _ASR6PAFNcjs.batch.call(void 0, select, ["setValueOnMove", "moves"], (state) => {
142
142
  const { mounted, value, activeId } = select.getState();
143
143
  if (!state.setValueOnMove && mounted) return;
144
144
  if (Array.isArray(value)) return;