@ariakit/core 0.3.4 → 0.3.5

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 (82) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/cjs/__chunks/{LMT335NJ.cjs → 3UT5FE6K.cjs} +2 -2
  3. package/cjs/__chunks/{M44E4T5A.cjs → AR2VJ37F.cjs} +21 -21
  4. package/cjs/__chunks/F5YZIIEA.cjs +29 -0
  5. package/cjs/__chunks/{YXSGST3H.cjs → F6Q5QSXF.cjs} +18 -18
  6. package/cjs/__chunks/{25WWT2VO.cjs → FFY2GSOG.cjs} +13 -13
  7. package/cjs/__chunks/{OASSVCYR.cjs → FJSZTIOU.cjs} +16 -16
  8. package/cjs/__chunks/{ROX3MRGO.cjs → HOEZKRUM.cjs} +16 -16
  9. package/cjs/__chunks/{MLPOXRDT.cjs → MYTMMWXI.cjs} +2 -2
  10. package/cjs/__chunks/XVR5QRC3.cjs +42 -0
  11. package/cjs/checkbox/checkbox-store.cjs +7 -7
  12. package/cjs/collection/collection-store.cjs +5 -5
  13. package/cjs/combobox/combobox-store.cjs +31 -31
  14. package/cjs/composite/composite-overflow-store.cjs +7 -7
  15. package/cjs/composite/composite-store.cjs +6 -6
  16. package/cjs/dialog/dialog-store.cjs +6 -6
  17. package/cjs/disclosure/disclosure-store.cjs +5 -5
  18. package/cjs/form/form-store.cjs +27 -27
  19. package/cjs/hovercard/hovercard-store.cjs +8 -8
  20. package/cjs/index.cjs +1 -1
  21. package/cjs/menu/menu-bar-store.cjs +7 -20
  22. package/cjs/menu/menu-bar-store.d.cts +6 -6
  23. package/cjs/menu/menu-bar-store.d.ts +6 -6
  24. package/cjs/menu/menu-store.cjs +31 -31
  25. package/cjs/menubar/menubar-store.cjs +14 -0
  26. package/cjs/menubar/menubar-store.d.cts +10 -0
  27. package/cjs/menubar/menubar-store.d.ts +10 -0
  28. package/cjs/popover/popover-store.cjs +7 -7
  29. package/cjs/radio/radio-store.cjs +12 -12
  30. package/cjs/select/select-store.cjs +32 -32
  31. package/cjs/tab/tab-store.cjs +24 -24
  32. package/cjs/toolbar/toolbar-store.cjs +8 -8
  33. package/cjs/tooltip/tooltip-store.cjs +15 -15
  34. package/cjs/utils/array.cjs +1 -1
  35. package/cjs/utils/dom.cjs +1 -1
  36. package/cjs/utils/events.cjs +3 -3
  37. package/cjs/utils/focus.cjs +2 -2
  38. package/cjs/utils/misc.cjs +3 -3
  39. package/cjs/utils/platform.cjs +1 -1
  40. package/cjs/utils/store.cjs +4 -4
  41. package/esm/__chunks/{FGW7QUD2.js → 5BWT4GY2.js} +4 -4
  42. package/esm/__chunks/{Q332EHXG.js → 6EMNXRG3.js} +3 -3
  43. package/esm/__chunks/6LSGADQM.js +29 -0
  44. package/esm/__chunks/{I7YGHQ4Z.js → DREIYIMP.js} +1 -1
  45. package/esm/__chunks/{LWQU4J4N.js → EIFVU736.js} +4 -4
  46. package/esm/__chunks/{GME4NYXR.js → HJS6GJT4.js} +2 -2
  47. package/esm/__chunks/{D23ES3Z4.js → I2VQ3XGR.js} +1 -1
  48. package/esm/__chunks/{VEWADM34.js → MRBDYBGO.js} +4 -4
  49. package/esm/__chunks/{TEJLMP2M.js → PCA5ARZU.js} +3 -3
  50. package/esm/checkbox/checkbox-store.js +3 -3
  51. package/esm/collection/collection-store.js +4 -4
  52. package/esm/combobox/combobox-store.js +8 -8
  53. package/esm/composite/composite-overflow-store.js +6 -6
  54. package/esm/composite/composite-store.js +5 -5
  55. package/esm/dialog/dialog-store.js +5 -5
  56. package/esm/disclosure/disclosure-store.js +4 -4
  57. package/esm/form/form-store.js +4 -4
  58. package/esm/hovercard/hovercard-store.js +7 -7
  59. package/esm/index.js +1 -1
  60. package/esm/menu/menu-bar-store.d.ts +6 -6
  61. package/esm/menu/menu-bar-store.js +8 -21
  62. package/esm/menu/menu-store.js +9 -9
  63. package/esm/menubar/menubar-store.d.ts +10 -0
  64. package/esm/menubar/menubar-store.js +14 -0
  65. package/esm/popover/popover-store.js +6 -6
  66. package/esm/radio/radio-store.js +5 -5
  67. package/esm/select/select-store.js +8 -8
  68. package/esm/tab/tab-store.js +5 -5
  69. package/esm/toolbar/toolbar-store.js +5 -5
  70. package/esm/tooltip/tooltip-store.js +7 -7
  71. package/esm/utils/array.js +1 -1
  72. package/esm/utils/dom.js +1 -1
  73. package/esm/utils/events.js +1 -1
  74. package/esm/utils/focus.js +1 -1
  75. package/esm/utils/misc.js +2 -2
  76. package/esm/utils/platform.js +1 -1
  77. package/esm/utils/store.js +3 -3
  78. package/menubar/menubar-store/package.json +8 -0
  79. package/package.json +8 -1
  80. package/cjs/__chunks/LUOEAZGU.cjs +0 -42
  81. /package/cjs/__chunks/{WYXAWBLE.cjs → AV6KTKLE.cjs} +0 -0
  82. /package/esm/__chunks/{2SMRF6AD.js → 4R3V3JGP.js} +0 -0
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
  var _ULSPM3Y3cjs = require('../__chunks/ULSPM3Y3.cjs');
8
- require('../__chunks/WYXAWBLE.cjs');
8
+ require('../__chunks/AV6KTKLE.cjs');
9
9
 
10
10
 
11
11
 
package/cjs/utils/dom.cjs CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
 
20
20
  var _FTB5CXVBcjs = require('../__chunks/FTB5CXVB.cjs');
21
- require('../__chunks/WYXAWBLE.cjs');
21
+ require('../__chunks/AV6KTKLE.cjs');
22
22
 
23
23
 
24
24
 
@@ -8,7 +8,7 @@ var _FTB5CXVBcjs = require('../__chunks/FTB5CXVB.cjs');
8
8
 
9
9
 
10
10
 
11
- var _WYXAWBLEcjs = require('../__chunks/WYXAWBLE.cjs');
11
+ var _AV6KTKLEcjs = require('../__chunks/AV6KTKLE.cjs');
12
12
 
13
13
  // src/utils/events.ts
14
14
  function isPortalEvent(event) {
@@ -59,14 +59,14 @@ function fireEvent(element, type, eventInit) {
59
59
  function fireBlurEvent(element, eventInit) {
60
60
  const event = new FocusEvent("blur", eventInit);
61
61
  const defaultAllowed = element.dispatchEvent(event);
62
- const bubbleInit = _WYXAWBLEcjs.__spreadProps.call(void 0, _WYXAWBLEcjs.__spreadValues.call(void 0, {}, eventInit), { bubbles: true });
62
+ const bubbleInit = _AV6KTKLEcjs.__spreadProps.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {}, eventInit), { bubbles: true });
63
63
  element.dispatchEvent(new FocusEvent("focusout", bubbleInit));
64
64
  return defaultAllowed;
65
65
  }
66
66
  function fireFocusEvent(element, eventInit) {
67
67
  const event = new FocusEvent("focus", eventInit);
68
68
  const defaultAllowed = element.dispatchEvent(event);
69
- const bubbleInit = _WYXAWBLEcjs.__spreadProps.call(void 0, _WYXAWBLEcjs.__spreadValues.call(void 0, {}, eventInit), { bubbles: true });
69
+ const bubbleInit = _AV6KTKLEcjs.__spreadProps.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {}, eventInit), { bubbles: true });
70
70
  element.dispatchEvent(new FocusEvent("focusin", bubbleInit));
71
71
  return defaultAllowed;
72
72
  }
@@ -9,7 +9,7 @@
9
9
  var _FTB5CXVBcjs = require('../__chunks/FTB5CXVB.cjs');
10
10
 
11
11
 
12
- var _WYXAWBLEcjs = require('../__chunks/WYXAWBLE.cjs');
12
+ var _AV6KTKLEcjs = require('../__chunks/AV6KTKLE.cjs');
13
13
 
14
14
  // src/utils/focus.ts
15
15
  var selector = "input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";
@@ -230,7 +230,7 @@ function focusIntoView(element, options) {
230
230
  element.focus();
231
231
  } else {
232
232
  element.focus({ preventScroll: true });
233
- element.scrollIntoView(_WYXAWBLEcjs.__spreadValues.call(void 0, { block: "nearest", inline: "nearest" }, options));
233
+ element.scrollIntoView(_AV6KTKLEcjs.__spreadValues.call(void 0, { block: "nearest", inline: "nearest" }, options));
234
234
  }
235
235
  }
236
236
 
@@ -20,8 +20,8 @@
20
20
 
21
21
 
22
22
 
23
- var _LMT335NJcjs = require('../__chunks/LMT335NJ.cjs');
24
- require('../__chunks/WYXAWBLE.cjs');
23
+ var _3UT5FE6Kcjs = require('../__chunks/3UT5FE6K.cjs');
24
+ require('../__chunks/AV6KTKLE.cjs');
25
25
 
26
26
 
27
27
 
@@ -43,4 +43,4 @@ require('../__chunks/WYXAWBLE.cjs');
43
43
 
44
44
 
45
45
 
46
- exports.afterPaint = _LMT335NJcjs.afterPaint; exports.applyState = _LMT335NJcjs.applyState; exports.beforePaint = _LMT335NJcjs.beforePaint; exports.chain = _LMT335NJcjs.chain; exports.cx = _LMT335NJcjs.cx; exports.defaultValue = _LMT335NJcjs.defaultValue; exports.disabledFromProps = _LMT335NJcjs.disabledFromProps; exports.getKeys = _LMT335NJcjs.getKeys; exports.hasOwnProperty = _LMT335NJcjs.hasOwnProperty; exports.identity = _LMT335NJcjs.identity; exports.invariant = _LMT335NJcjs.invariant; exports.isEmpty = _LMT335NJcjs.isEmpty; exports.isFalsyBooleanCallback = _LMT335NJcjs.isFalsyBooleanCallback; exports.isInteger = _LMT335NJcjs.isInteger; exports.isObject = _LMT335NJcjs.isObject; exports.noop = _LMT335NJcjs.noop; exports.normalizeString = _LMT335NJcjs.normalizeString; exports.omit = _LMT335NJcjs.omit; exports.pick = _LMT335NJcjs.pick; exports.shallowEqual = _LMT335NJcjs.shallowEqual;
46
+ exports.afterPaint = _3UT5FE6Kcjs.afterPaint; exports.applyState = _3UT5FE6Kcjs.applyState; exports.beforePaint = _3UT5FE6Kcjs.beforePaint; exports.chain = _3UT5FE6Kcjs.chain; exports.cx = _3UT5FE6Kcjs.cx; exports.defaultValue = _3UT5FE6Kcjs.defaultValue; exports.disabledFromProps = _3UT5FE6Kcjs.disabledFromProps; exports.getKeys = _3UT5FE6Kcjs.getKeys; exports.hasOwnProperty = _3UT5FE6Kcjs.hasOwnProperty; exports.identity = _3UT5FE6Kcjs.identity; exports.invariant = _3UT5FE6Kcjs.invariant; exports.isEmpty = _3UT5FE6Kcjs.isEmpty; exports.isFalsyBooleanCallback = _3UT5FE6Kcjs.isFalsyBooleanCallback; exports.isInteger = _3UT5FE6Kcjs.isInteger; exports.isObject = _3UT5FE6Kcjs.isObject; exports.noop = _3UT5FE6Kcjs.noop; exports.normalizeString = _3UT5FE6Kcjs.normalizeString; exports.omit = _3UT5FE6Kcjs.omit; exports.pick = _3UT5FE6Kcjs.pick; exports.shallowEqual = _3UT5FE6Kcjs.shallowEqual;
@@ -7,7 +7,7 @@
7
7
 
8
8
  var _G5EW4WEDcjs = require('../__chunks/G5EW4WED.cjs');
9
9
  require('../__chunks/FTB5CXVB.cjs');
10
- require('../__chunks/WYXAWBLE.cjs');
10
+ require('../__chunks/AV6KTKLE.cjs');
11
11
 
12
12
 
13
13
 
@@ -10,9 +10,9 @@
10
10
 
11
11
 
12
12
 
13
- var _OASSVCYRcjs = require('../__chunks/OASSVCYR.cjs');
14
- require('../__chunks/LMT335NJ.cjs');
15
- require('../__chunks/WYXAWBLE.cjs');
13
+ var _FJSZTIOUcjs = require('../__chunks/FJSZTIOU.cjs');
14
+ require('../__chunks/3UT5FE6K.cjs');
15
+ require('../__chunks/AV6KTKLE.cjs');
16
16
 
17
17
 
18
18
 
@@ -24,4 +24,4 @@ require('../__chunks/WYXAWBLE.cjs');
24
24
 
25
25
 
26
26
 
27
- exports.batch = _OASSVCYRcjs.batch; exports.createStore = _OASSVCYRcjs.createStore; exports.init = _OASSVCYRcjs.init; exports.mergeStore = _OASSVCYRcjs.mergeStore; exports.omit = _OASSVCYRcjs.omit; exports.pick = _OASSVCYRcjs.pick; exports.setup = _OASSVCYRcjs.setup; exports.subscribe = _OASSVCYRcjs.subscribe; exports.sync = _OASSVCYRcjs.sync; exports.throwOnConflictingProps = _OASSVCYRcjs.throwOnConflictingProps;
27
+ exports.batch = _FJSZTIOUcjs.batch; exports.createStore = _FJSZTIOUcjs.createStore; exports.init = _FJSZTIOUcjs.init; exports.mergeStore = _FJSZTIOUcjs.mergeStore; exports.omit = _FJSZTIOUcjs.omit; exports.pick = _FJSZTIOUcjs.pick; exports.setup = _FJSZTIOUcjs.setup; exports.subscribe = _FJSZTIOUcjs.subscribe; exports.sync = _FJSZTIOUcjs.sync; exports.throwOnConflictingProps = _FJSZTIOUcjs.throwOnConflictingProps;
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import {
3
3
  createCollectionStore
4
- } from "./Q332EHXG.js";
4
+ } from "./6EMNXRG3.js";
5
5
  import {
6
6
  createStore,
7
7
  setup,
8
8
  sync
9
- } from "./GME4NYXR.js";
9
+ } from "./HJS6GJT4.js";
10
10
  import {
11
11
  defaultValue
12
- } from "./D23ES3Z4.js";
12
+ } from "./I2VQ3XGR.js";
13
13
  import {
14
14
  flatten2DArray,
15
15
  reverseArray
@@ -17,7 +17,7 @@ import {
17
17
  import {
18
18
  __spreadProps,
19
19
  __spreadValues
20
- } from "./2SMRF6AD.js";
20
+ } from "./4R3V3JGP.js";
21
21
 
22
22
  // src/composite/composite-store.ts
23
23
  var NULL_ITEM = { id: null };
@@ -4,18 +4,18 @@ import {
4
4
  createStore,
5
5
  setup,
6
6
  throwOnConflictingProps
7
- } from "./GME4NYXR.js";
7
+ } from "./HJS6GJT4.js";
8
8
  import {
9
9
  chain,
10
10
  defaultValue
11
- } from "./D23ES3Z4.js";
11
+ } from "./I2VQ3XGR.js";
12
12
  import {
13
13
  getDocument
14
14
  } from "./NIF7E7VE.js";
15
15
  import {
16
16
  __spreadProps,
17
17
  __spreadValues
18
- } from "./2SMRF6AD.js";
18
+ } from "./4R3V3JGP.js";
19
19
 
20
20
  // src/collection/collection-store.ts
21
21
  function isElementPreceding(a, b) {
@@ -0,0 +1,29 @@
1
+ "use client";
2
+ import {
3
+ createCompositeStore
4
+ } from "./5BWT4GY2.js";
5
+ import {
6
+ defaultValue
7
+ } from "./I2VQ3XGR.js";
8
+ import {
9
+ __spreadProps,
10
+ __spreadValues
11
+ } from "./4R3V3JGP.js";
12
+
13
+ // src/menubar/menubar-store.ts
14
+ function createMenubarStore(props = {}) {
15
+ var _a;
16
+ const syncState = (_a = props.store) == null ? void 0 : _a.getState();
17
+ return createCompositeStore(__spreadProps(__spreadValues({}, props), {
18
+ orientation: defaultValue(
19
+ props.orientation,
20
+ syncState == null ? void 0 : syncState.orientation,
21
+ "horizontal"
22
+ ),
23
+ focusLoop: defaultValue(props.focusLoop, syncState == null ? void 0 : syncState.focusLoop, true)
24
+ }));
25
+ }
26
+
27
+ export {
28
+ createMenubarStore
29
+ };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  createDisclosureStore
4
- } from "./TEJLMP2M.js";
4
+ } from "./PCA5ARZU.js";
5
5
 
6
6
  // src/dialog/dialog-store.ts
7
7
  function createDialogStore(props = {}) {
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
  import {
3
3
  createPopoverStore
4
- } from "./VEWADM34.js";
4
+ } from "./MRBDYBGO.js";
5
5
  import {
6
6
  createStore
7
- } from "./GME4NYXR.js";
7
+ } from "./HJS6GJT4.js";
8
8
  import {
9
9
  defaultValue
10
- } from "./D23ES3Z4.js";
10
+ } from "./I2VQ3XGR.js";
11
11
  import {
12
12
  __spreadProps,
13
13
  __spreadValues
14
- } from "./2SMRF6AD.js";
14
+ } from "./4R3V3JGP.js";
15
15
 
16
16
  // src/hovercard/hovercard-store.ts
17
17
  function createHovercardStore(props = {}) {
@@ -8,11 +8,11 @@ import {
8
8
  noop,
9
9
  omit,
10
10
  pick
11
- } from "./D23ES3Z4.js";
11
+ } from "./I2VQ3XGR.js";
12
12
  import {
13
13
  __spreadProps,
14
14
  __spreadValues
15
- } from "./2SMRF6AD.js";
15
+ } from "./4R3V3JGP.js";
16
16
 
17
17
  // src/utils/store.ts
18
18
  function getInternal(store, key) {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  __spreadValues
4
- } from "./2SMRF6AD.js";
4
+ } from "./4R3V3JGP.js";
5
5
 
6
6
  // src/utils/misc.ts
7
7
  function noop(..._) {
@@ -1,21 +1,21 @@
1
1
  "use client";
2
2
  import {
3
3
  createDialogStore
4
- } from "./I7YGHQ4Z.js";
4
+ } from "./DREIYIMP.js";
5
5
  import {
6
6
  createStore,
7
7
  mergeStore,
8
8
  omit,
9
9
  throwOnConflictingProps
10
- } from "./GME4NYXR.js";
10
+ } from "./HJS6GJT4.js";
11
11
  import {
12
12
  defaultValue
13
- } from "./D23ES3Z4.js";
13
+ } from "./I2VQ3XGR.js";
14
14
  import {
15
15
  __objRest,
16
16
  __spreadProps,
17
17
  __spreadValues
18
- } from "./2SMRF6AD.js";
18
+ } from "./4R3V3JGP.js";
19
19
 
20
20
  // src/popover/popover-store.ts
21
21
  function createPopoverStore(_a = {}) {
@@ -7,14 +7,14 @@ import {
7
7
  subscribe,
8
8
  sync,
9
9
  throwOnConflictingProps
10
- } from "./GME4NYXR.js";
10
+ } from "./HJS6GJT4.js";
11
11
  import {
12
12
  defaultValue
13
- } from "./D23ES3Z4.js";
13
+ } from "./I2VQ3XGR.js";
14
14
  import {
15
15
  __spreadProps,
16
16
  __spreadValues
17
- } from "./2SMRF6AD.js";
17
+ } from "./4R3V3JGP.js";
18
18
 
19
19
  // src/disclosure/disclosure-store.ts
20
20
  function createDisclosureStore(props = {}) {
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  createStore,
4
4
  throwOnConflictingProps
5
- } from "../__chunks/GME4NYXR.js";
5
+ } from "../__chunks/HJS6GJT4.js";
6
6
  import {
7
7
  defaultValue
8
- } from "../__chunks/D23ES3Z4.js";
8
+ } from "../__chunks/I2VQ3XGR.js";
9
9
  import {
10
10
  __spreadProps,
11
11
  __spreadValues
12
- } from "../__chunks/2SMRF6AD.js";
12
+ } from "../__chunks/4R3V3JGP.js";
13
13
 
14
14
  // src/checkbox/checkbox-store.ts
15
15
  function createCheckboxStore(props = {}) {
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import {
3
3
  createCollectionStore
4
- } from "../__chunks/Q332EHXG.js";
5
- import "../__chunks/GME4NYXR.js";
6
- import "../__chunks/D23ES3Z4.js";
4
+ } from "../__chunks/6EMNXRG3.js";
5
+ import "../__chunks/HJS6GJT4.js";
6
+ import "../__chunks/I2VQ3XGR.js";
7
7
  import "../__chunks/NIF7E7VE.js";
8
- import "../__chunks/2SMRF6AD.js";
8
+ import "../__chunks/4R3V3JGP.js";
9
9
  export {
10
10
  createCollectionStore
11
11
  };
@@ -1,23 +1,23 @@
1
1
  "use client";
2
2
  import {
3
3
  createPopoverStore
4
- } from "../__chunks/VEWADM34.js";
5
- import "../__chunks/I7YGHQ4Z.js";
6
- import "../__chunks/TEJLMP2M.js";
4
+ } from "../__chunks/MRBDYBGO.js";
5
+ import "../__chunks/DREIYIMP.js";
6
+ import "../__chunks/PCA5ARZU.js";
7
7
  import {
8
8
  createCompositeStore
9
- } from "../__chunks/FGW7QUD2.js";
10
- import "../__chunks/Q332EHXG.js";
9
+ } from "../__chunks/5BWT4GY2.js";
10
+ import "../__chunks/6EMNXRG3.js";
11
11
  import {
12
12
  batch,
13
13
  createStore,
14
14
  setup,
15
15
  sync,
16
16
  throwOnConflictingProps
17
- } from "../__chunks/GME4NYXR.js";
17
+ } from "../__chunks/HJS6GJT4.js";
18
18
  import {
19
19
  defaultValue
20
- } from "../__chunks/D23ES3Z4.js";
20
+ } from "../__chunks/I2VQ3XGR.js";
21
21
  import {
22
22
  isSafari,
23
23
  isTouchDevice
@@ -27,7 +27,7 @@ import "../__chunks/7PRQYBBV.js";
27
27
  import {
28
28
  __spreadProps,
29
29
  __spreadValues
30
- } from "../__chunks/2SMRF6AD.js";
30
+ } from "../__chunks/4R3V3JGP.js";
31
31
 
32
32
  // src/combobox/combobox-store.ts
33
33
  var isSafariOnMobile = isSafari() && isTouchDevice();
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import {
3
3
  createPopoverStore
4
- } from "../__chunks/VEWADM34.js";
5
- import "../__chunks/I7YGHQ4Z.js";
6
- import "../__chunks/TEJLMP2M.js";
7
- import "../__chunks/GME4NYXR.js";
8
- import "../__chunks/D23ES3Z4.js";
9
- import "../__chunks/2SMRF6AD.js";
4
+ } from "../__chunks/MRBDYBGO.js";
5
+ import "../__chunks/DREIYIMP.js";
6
+ import "../__chunks/PCA5ARZU.js";
7
+ import "../__chunks/HJS6GJT4.js";
8
+ import "../__chunks/I2VQ3XGR.js";
9
+ import "../__chunks/4R3V3JGP.js";
10
10
 
11
11
  // src/composite/composite-overflow-store.ts
12
12
  function createCompositeOverflowStore(props = {}) {
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  createCompositeStore
4
- } from "../__chunks/FGW7QUD2.js";
5
- import "../__chunks/Q332EHXG.js";
6
- import "../__chunks/GME4NYXR.js";
7
- import "../__chunks/D23ES3Z4.js";
4
+ } from "../__chunks/5BWT4GY2.js";
5
+ import "../__chunks/6EMNXRG3.js";
6
+ import "../__chunks/HJS6GJT4.js";
7
+ import "../__chunks/I2VQ3XGR.js";
8
8
  import "../__chunks/NIF7E7VE.js";
9
9
  import "../__chunks/7PRQYBBV.js";
10
- import "../__chunks/2SMRF6AD.js";
10
+ import "../__chunks/4R3V3JGP.js";
11
11
  export {
12
12
  createCompositeStore
13
13
  };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import {
3
3
  createDialogStore
4
- } from "../__chunks/I7YGHQ4Z.js";
5
- import "../__chunks/TEJLMP2M.js";
6
- import "../__chunks/GME4NYXR.js";
7
- import "../__chunks/D23ES3Z4.js";
8
- import "../__chunks/2SMRF6AD.js";
4
+ } from "../__chunks/DREIYIMP.js";
5
+ import "../__chunks/PCA5ARZU.js";
6
+ import "../__chunks/HJS6GJT4.js";
7
+ import "../__chunks/I2VQ3XGR.js";
8
+ import "../__chunks/4R3V3JGP.js";
9
9
  export {
10
10
  createDialogStore
11
11
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  createDisclosureStore
4
- } from "../__chunks/TEJLMP2M.js";
5
- import "../__chunks/GME4NYXR.js";
6
- import "../__chunks/D23ES3Z4.js";
7
- import "../__chunks/2SMRF6AD.js";
4
+ } from "../__chunks/PCA5ARZU.js";
5
+ import "../__chunks/HJS6GJT4.js";
6
+ import "../__chunks/I2VQ3XGR.js";
7
+ import "../__chunks/4R3V3JGP.js";
8
8
  export {
9
9
  createDisclosureStore
10
10
  };
@@ -1,24 +1,24 @@
1
1
  "use client";
2
2
  import {
3
3
  createCollectionStore
4
- } from "../__chunks/Q332EHXG.js";
4
+ } from "../__chunks/6EMNXRG3.js";
5
5
  import {
6
6
  createStore,
7
7
  init,
8
8
  setup,
9
9
  throwOnConflictingProps
10
- } from "../__chunks/GME4NYXR.js";
10
+ } from "../__chunks/HJS6GJT4.js";
11
11
  import {
12
12
  applyState,
13
13
  defaultValue,
14
14
  isInteger,
15
15
  isObject
16
- } from "../__chunks/D23ES3Z4.js";
16
+ } from "../__chunks/I2VQ3XGR.js";
17
17
  import "../__chunks/NIF7E7VE.js";
18
18
  import {
19
19
  __spreadProps,
20
20
  __spreadValues
21
- } from "../__chunks/2SMRF6AD.js";
21
+ } from "../__chunks/4R3V3JGP.js";
22
22
 
23
23
  // src/form/form-store.ts
24
24
  function nextFrame() {
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  createHovercardStore
4
- } from "../__chunks/LWQU4J4N.js";
5
- import "../__chunks/VEWADM34.js";
6
- import "../__chunks/I7YGHQ4Z.js";
7
- import "../__chunks/TEJLMP2M.js";
8
- import "../__chunks/GME4NYXR.js";
9
- import "../__chunks/D23ES3Z4.js";
10
- import "../__chunks/2SMRF6AD.js";
4
+ } from "../__chunks/EIFVU736.js";
5
+ import "../__chunks/MRBDYBGO.js";
6
+ import "../__chunks/DREIYIMP.js";
7
+ import "../__chunks/PCA5ARZU.js";
8
+ import "../__chunks/HJS6GJT4.js";
9
+ import "../__chunks/I2VQ3XGR.js";
10
+ import "../__chunks/4R3V3JGP.js";
11
11
  export {
12
12
  createHovercardStore
13
13
  };
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import "./__chunks/2SMRF6AD.js";
2
+ import "./__chunks/4R3V3JGP.js";
3
3
 
4
4
  // src/index.ts
5
5
  var src_default = {};
@@ -1,10 +1,10 @@
1
- import type { CompositeStore, CompositeStoreFunctions, CompositeStoreOptions, CompositeStoreProps, CompositeStoreState } from "../composite/composite-store.js";
1
+ import type { MenubarStore, MenubarStoreFunctions, MenubarStoreOptions, MenubarStoreProps, MenubarStoreState } from "../menubar/menubar-store.js";
2
2
  /**
3
3
  * Creates a menu bar store.
4
4
  */
5
5
  export declare function createMenuBarStore(props?: MenuBarStoreProps): MenuBarStore;
6
- export type MenuBarStoreState = CompositeStoreState;
7
- export type MenuBarStoreFunctions = CompositeStoreFunctions;
8
- export type MenuBarStoreOptions = CompositeStoreOptions;
9
- export type MenuBarStoreProps = CompositeStoreProps;
10
- export type MenuBarStore = CompositeStore;
6
+ export type MenuBarStoreState = MenubarStoreState;
7
+ export type MenuBarStoreFunctions = MenubarStoreFunctions;
8
+ export type MenuBarStoreOptions = MenubarStoreOptions;
9
+ export type MenuBarStoreProps = MenubarStoreProps;
10
+ export type MenuBarStore = MenubarStore;
@@ -1,31 +1,18 @@
1
1
  "use client";
2
2
  import {
3
- createCompositeStore
4
- } from "../__chunks/FGW7QUD2.js";
5
- import "../__chunks/Q332EHXG.js";
6
- import "../__chunks/GME4NYXR.js";
7
- import {
8
- defaultValue
9
- } from "../__chunks/D23ES3Z4.js";
3
+ createMenubarStore
4
+ } from "../__chunks/6LSGADQM.js";
5
+ import "../__chunks/5BWT4GY2.js";
6
+ import "../__chunks/6EMNXRG3.js";
7
+ import "../__chunks/HJS6GJT4.js";
8
+ import "../__chunks/I2VQ3XGR.js";
10
9
  import "../__chunks/NIF7E7VE.js";
11
10
  import "../__chunks/7PRQYBBV.js";
12
- import {
13
- __spreadProps,
14
- __spreadValues
15
- } from "../__chunks/2SMRF6AD.js";
11
+ import "../__chunks/4R3V3JGP.js";
16
12
 
17
13
  // src/menu/menu-bar-store.ts
18
14
  function createMenuBarStore(props = {}) {
19
- var _a;
20
- const syncState = (_a = props.store) == null ? void 0 : _a.getState();
21
- return createCompositeStore(__spreadProps(__spreadValues({}, props), {
22
- orientation: defaultValue(
23
- props.orientation,
24
- syncState == null ? void 0 : syncState.orientation,
25
- "horizontal"
26
- ),
27
- focusLoop: defaultValue(props.focusLoop, syncState == null ? void 0 : syncState.focusLoop, true)
28
- }));
15
+ return createMenubarStore(props);
29
16
  }
30
17
  export {
31
18
  createMenuBarStore
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  import {
3
3
  createHovercardStore
4
- } from "../__chunks/LWQU4J4N.js";
5
- import "../__chunks/VEWADM34.js";
6
- import "../__chunks/I7YGHQ4Z.js";
7
- import "../__chunks/TEJLMP2M.js";
4
+ } from "../__chunks/EIFVU736.js";
5
+ import "../__chunks/MRBDYBGO.js";
6
+ import "../__chunks/DREIYIMP.js";
7
+ import "../__chunks/PCA5ARZU.js";
8
8
  import {
9
9
  createCompositeStore
10
- } from "../__chunks/FGW7QUD2.js";
11
- import "../__chunks/Q332EHXG.js";
10
+ } from "../__chunks/5BWT4GY2.js";
11
+ import "../__chunks/6EMNXRG3.js";
12
12
  import {
13
13
  createStore,
14
14
  mergeStore,
@@ -17,18 +17,18 @@ import {
17
17
  setup,
18
18
  sync,
19
19
  throwOnConflictingProps
20
- } from "../__chunks/GME4NYXR.js";
20
+ } from "../__chunks/HJS6GJT4.js";
21
21
  import {
22
22
  applyState,
23
23
  defaultValue
24
- } from "../__chunks/D23ES3Z4.js";
24
+ } from "../__chunks/I2VQ3XGR.js";
25
25
  import "../__chunks/NIF7E7VE.js";
26
26
  import "../__chunks/7PRQYBBV.js";
27
27
  import {
28
28
  __objRest,
29
29
  __spreadProps,
30
30
  __spreadValues
31
- } from "../__chunks/2SMRF6AD.js";
31
+ } from "../__chunks/4R3V3JGP.js";
32
32
 
33
33
  // src/menu/menu-store.ts
34
34
  function createMenuStore(_a = {}) {
@@ -0,0 +1,10 @@
1
+ import type { CompositeStore, CompositeStoreFunctions, CompositeStoreOptions, CompositeStoreProps, CompositeStoreState } from "../composite/composite-store.js";
2
+ /**
3
+ * Creates a menu bar store.
4
+ */
5
+ export declare function createMenubarStore(props?: MenubarStoreProps): MenubarStore;
6
+ export type MenubarStoreState = CompositeStoreState;
7
+ export type MenubarStoreFunctions = CompositeStoreFunctions;
8
+ export type MenubarStoreOptions = CompositeStoreOptions;
9
+ export type MenubarStoreProps = CompositeStoreProps;
10
+ export type MenubarStore = CompositeStore;
@@ -0,0 +1,14 @@
1
+ "use client";
2
+ import {
3
+ createMenubarStore
4
+ } from "../__chunks/6LSGADQM.js";
5
+ import "../__chunks/5BWT4GY2.js";
6
+ import "../__chunks/6EMNXRG3.js";
7
+ import "../__chunks/HJS6GJT4.js";
8
+ import "../__chunks/I2VQ3XGR.js";
9
+ import "../__chunks/NIF7E7VE.js";
10
+ import "../__chunks/7PRQYBBV.js";
11
+ import "../__chunks/4R3V3JGP.js";
12
+ export {
13
+ createMenubarStore
14
+ };