@ariakit/core 0.4.16 → 0.4.17

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 (81) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/cjs/__chunks/{MLCPLY2P.cjs → 6BYUUR4M.cjs} +2 -6
  3. package/cjs/__chunks/AOXAROPF.cjs +59 -0
  4. package/cjs/__chunks/CPH45Z4I.cjs +36 -0
  5. package/cjs/__chunks/{E5AYFGW2.cjs → LT33CJGT.cjs} +17 -20
  6. package/cjs/__chunks/{L5GSFUJU.cjs → MJNGPYVQ.cjs} +19 -22
  7. package/cjs/__chunks/{7WVAUIME.cjs → NNJG45OF.cjs} +28 -28
  8. package/cjs/__chunks/{VR2FVDSU.cjs → T247D7JS.cjs} +2 -2
  9. package/cjs/__chunks/UROTDZFK.cjs +41 -0
  10. package/cjs/__chunks/{EKSEHA55.cjs → WPBYRKFQ.cjs} +13 -17
  11. package/cjs/checkbox/checkbox-store.cjs +8 -11
  12. package/cjs/collection/collection-store.cjs +4 -5
  13. package/cjs/combobox/combobox-store.cjs +54 -54
  14. package/cjs/composite/composite-overflow-store.cjs +6 -7
  15. package/cjs/composite/composite-store.cjs +5 -6
  16. package/cjs/dialog/dialog-store.cjs +5 -6
  17. package/cjs/disclosure/disclosure-store.cjs +4 -5
  18. package/cjs/form/form-store.cjs +33 -34
  19. package/cjs/hovercard/hovercard-store.cjs +7 -8
  20. package/cjs/index.cjs +1 -3
  21. package/cjs/menu/menu-bar-store.cjs +6 -7
  22. package/cjs/menu/menu-store.cjs +48 -49
  23. package/cjs/menubar/menubar-store.cjs +6 -7
  24. package/cjs/popover/popover-store.cjs +6 -7
  25. package/cjs/radio/radio-store.cjs +22 -22
  26. package/cjs/select/select-store.cjs +48 -48
  27. package/cjs/tab/tab-store.cjs +46 -50
  28. package/cjs/tag/tag-store.cjs +20 -21
  29. package/cjs/toolbar/toolbar-store.cjs +9 -12
  30. package/cjs/tooltip/tooltip-store.cjs +20 -19
  31. package/cjs/utils/array.cjs +0 -1
  32. package/cjs/utils/dom.cjs +0 -1
  33. package/cjs/utils/events.cjs +2 -6
  34. package/cjs/utils/focus.cjs +1 -4
  35. package/cjs/utils/misc.cjs +2 -3
  36. package/cjs/utils/platform.cjs +0 -1
  37. package/cjs/utils/store.cjs +3 -4
  38. package/cjs/utils/undo.cjs +0 -1
  39. package/esm/__chunks/{C34RJTDU.js → 73UNQSFO.js} +13 -13
  40. package/esm/__chunks/{43IPP2F4.js → 75BJEVSH.js} +5 -8
  41. package/esm/__chunks/{K2KIGYQU.js → AMRA5WUK.js} +6 -9
  42. package/esm/__chunks/{MD3RIO2T.js → BFGNM53A.js} +15 -19
  43. package/esm/__chunks/{RZDDWCDV.js → KMAUV3TY.js} +1 -1
  44. package/esm/__chunks/{76UM5ZLT.js → PSMDSJUH.js} +13 -11
  45. package/esm/__chunks/{EWA2WL6G.js → SXKM4CGU.js} +2 -6
  46. package/esm/__chunks/{X2ASWIQW.js → TIQDSBWP.js} +13 -13
  47. package/esm/__chunks/{PBFD2E7P.js → XMCVU3LR.js} +1 -4
  48. package/esm/checkbox/checkbox-store.js +5 -8
  49. package/esm/collection/collection-store.js +3 -4
  50. package/esm/combobox/combobox-store.js +26 -26
  51. package/esm/composite/composite-overflow-store.js +5 -6
  52. package/esm/composite/composite-store.js +4 -5
  53. package/esm/dialog/dialog-store.js +4 -5
  54. package/esm/disclosure/disclosure-store.js +3 -4
  55. package/esm/form/form-store.js +11 -12
  56. package/esm/hovercard/hovercard-store.js +6 -7
  57. package/esm/index.js +0 -1
  58. package/esm/menu/menu-bar-store.js +5 -6
  59. package/esm/menu/menu-store.js +32 -33
  60. package/esm/menubar/menubar-store.js +5 -6
  61. package/esm/popover/popover-store.js +5 -6
  62. package/esm/radio/radio-store.js +19 -19
  63. package/esm/select/select-store.js +26 -26
  64. package/esm/tab/tab-store.js +20 -24
  65. package/esm/tag/tag-store.js +11 -12
  66. package/esm/toolbar/toolbar-store.js +7 -10
  67. package/esm/tooltip/tooltip-store.js +16 -15
  68. package/esm/utils/array.js +0 -1
  69. package/esm/utils/dom.js +0 -1
  70. package/esm/utils/events.js +2 -6
  71. package/esm/utils/focus.js +1 -4
  72. package/esm/utils/misc.js +1 -2
  73. package/esm/utils/platform.js +0 -1
  74. package/esm/utils/store.js +2 -3
  75. package/esm/utils/undo.js +0 -1
  76. package/package.json +1 -1
  77. package/cjs/__chunks/34NK2NPD.cjs +0 -41
  78. package/cjs/__chunks/7EQBAZ46.cjs +0 -37
  79. package/cjs/__chunks/OGYYHXPP.cjs +0 -63
  80. package/cjs/__chunks/XVG7OFIP.cjs +0 -34
  81. package/esm/__chunks/3YLGPPWQ.js +0 -38
@@ -9,15 +9,11 @@ import {
9
9
  init,
10
10
  setup,
11
11
  throwOnConflictingProps
12
- } from "./EWA2WL6G.js";
12
+ } from "./SXKM4CGU.js";
13
13
  import {
14
14
  chain,
15
15
  defaultValue
16
- } from "./PBFD2E7P.js";
17
- import {
18
- __spreadProps,
19
- __spreadValues
20
- } from "./3YLGPPWQ.js";
16
+ } from "./XMCVU3LR.js";
21
17
 
22
18
  // src/collection/collection-store.ts
23
19
  function getCommonParent(items) {
@@ -107,7 +103,7 @@ function createCollectionStore(props = {}) {
107
103
  const nextItems = items2.slice();
108
104
  if (index !== -1) {
109
105
  prevItem = items2[index];
110
- const nextItem = __spreadValues(__spreadValues({}, prevItem), item);
106
+ const nextItem = { ...prevItem, ...item };
111
107
  nextItems[index] = nextItem;
112
108
  itemsMap.set(item.id, nextItem);
113
109
  } else {
@@ -139,7 +135,8 @@ function createCollectionStore(props = {}) {
139
135
  (getItems) => privateStore.setState("items", getItems),
140
136
  true
141
137
  );
142
- return __spreadProps(__spreadValues({}, collection), {
138
+ return {
139
+ ...collection,
143
140
  registerItem,
144
141
  renderItem: (item) => chain(
145
142
  registerItem(item),
@@ -162,7 +159,7 @@ function createCollectionStore(props = {}) {
162
159
  },
163
160
  // @ts-expect-error Internal
164
161
  __unstablePrivateStore: privateStore
165
- });
162
+ };
166
163
  }
167
164
 
168
165
  export {
@@ -1,29 +1,22 @@
1
1
  "use client";
2
2
  import {
3
3
  createDialogStore
4
- } from "./RZDDWCDV.js";
4
+ } from "./KMAUV3TY.js";
5
5
  import {
6
6
  createStore,
7
7
  mergeStore,
8
8
  omit,
9
9
  throwOnConflictingProps
10
- } from "./EWA2WL6G.js";
10
+ } from "./SXKM4CGU.js";
11
11
  import {
12
12
  defaultValue
13
- } from "./PBFD2E7P.js";
14
- import {
15
- __objRest,
16
- __spreadProps,
17
- __spreadValues
18
- } from "./3YLGPPWQ.js";
13
+ } from "./XMCVU3LR.js";
19
14
 
20
15
  // src/popover/popover-store.ts
21
- function createPopoverStore(_a = {}) {
22
- var _b = _a, {
23
- popover: otherPopover
24
- } = _b, props = __objRest(_b, [
25
- "popover"
26
- ]);
16
+ function createPopoverStore({
17
+ popover: otherPopover,
18
+ ...props
19
+ } = {}) {
27
20
  const store = mergeStore(
28
21
  props.store,
29
22
  omit(otherPopover, [
@@ -36,27 +29,30 @@ function createPopoverStore(_a = {}) {
36
29
  );
37
30
  throwOnConflictingProps(props, store);
38
31
  const syncState = store == null ? void 0 : store.getState();
39
- const dialog = createDialogStore(__spreadProps(__spreadValues({}, props), { store }));
32
+ const dialog = createDialogStore({ ...props, store });
40
33
  const placement = defaultValue(
41
34
  props.placement,
42
35
  syncState == null ? void 0 : syncState.placement,
43
36
  "bottom"
44
37
  );
45
- const initialState = __spreadProps(__spreadValues({}, dialog.getState()), {
38
+ const initialState = {
39
+ ...dialog.getState(),
46
40
  placement,
47
41
  currentPlacement: placement,
48
42
  anchorElement: defaultValue(syncState == null ? void 0 : syncState.anchorElement, null),
49
43
  popoverElement: defaultValue(syncState == null ? void 0 : syncState.popoverElement, null),
50
44
  arrowElement: defaultValue(syncState == null ? void 0 : syncState.arrowElement, null),
51
45
  rendered: Symbol("rendered")
52
- });
46
+ };
53
47
  const popover = createStore(initialState, dialog, store);
54
- return __spreadProps(__spreadValues(__spreadValues({}, dialog), popover), {
48
+ return {
49
+ ...dialog,
50
+ ...popover,
55
51
  setAnchorElement: (element) => popover.setState("anchorElement", element),
56
52
  setPopoverElement: (element) => popover.setState("popoverElement", element),
57
53
  setArrowElement: (element) => popover.setState("arrowElement", element),
58
54
  render: () => popover.setState("rendered", Symbol("rendered"))
59
- });
55
+ };
60
56
  }
61
57
 
62
58
  export {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  createDisclosureStore
4
- } from "./43IPP2F4.js";
4
+ } from "./75BJEVSH.js";
5
5
 
6
6
  // src/dialog/dialog-store.ts
7
7
  function createDialogStore(props = {}) {
@@ -1,33 +1,35 @@
1
1
  "use client";
2
2
  import {
3
3
  createCompositeStore
4
- } from "./C34RJTDU.js";
4
+ } from "./73UNQSFO.js";
5
5
  import {
6
6
  createStore
7
- } from "./EWA2WL6G.js";
7
+ } from "./SXKM4CGU.js";
8
8
  import {
9
9
  defaultValue
10
- } from "./PBFD2E7P.js";
11
- import {
12
- __spreadProps,
13
- __spreadValues
14
- } from "./3YLGPPWQ.js";
10
+ } from "./XMCVU3LR.js";
15
11
 
16
12
  // src/menubar/menubar-store.ts
17
13
  function createMenubarStore(props = {}) {
18
14
  var _a;
19
15
  const syncState = (_a = props.store) == null ? void 0 : _a.getState();
20
- const composite = createCompositeStore(__spreadProps(__spreadValues({}, props), {
16
+ const composite = createCompositeStore({
17
+ ...props,
21
18
  orientation: defaultValue(
22
19
  props.orientation,
23
20
  syncState == null ? void 0 : syncState.orientation,
24
21
  "horizontal"
25
22
  ),
26
23
  focusLoop: defaultValue(props.focusLoop, syncState == null ? void 0 : syncState.focusLoop, true)
27
- }));
28
- const initialState = __spreadValues({}, composite.getState());
24
+ });
25
+ const initialState = {
26
+ ...composite.getState()
27
+ };
29
28
  const menubar = createStore(initialState, composite, props.store);
30
- return __spreadValues(__spreadValues({}, composite), menubar);
29
+ return {
30
+ ...composite,
31
+ ...menubar
32
+ };
31
33
  }
32
34
 
33
35
  export {
@@ -8,11 +8,7 @@ import {
8
8
  noop,
9
9
  omit,
10
10
  pick
11
- } from "./PBFD2E7P.js";
12
- import {
13
- __spreadProps,
14
- __spreadValues
15
- } from "./3YLGPPWQ.js";
11
+ } from "./XMCVU3LR.js";
16
12
 
17
13
  // src/utils/store.ts
18
14
  function getInternal(store, key) {
@@ -107,7 +103,7 @@ function createStore(initialState, ...stores) {
107
103
  }
108
104
  }
109
105
  const prevState = state;
110
- state = __spreadProps(__spreadValues({}, state), { [key]: nextValue });
106
+ state = { ...state, [key]: nextValue };
111
107
  const thisUpdate = Symbol();
112
108
  lastUpdate = thisUpdate;
113
109
  updatedKeys.add(key);
@@ -1,40 +1,40 @@
1
1
  "use client";
2
2
  import {
3
3
  createPopoverStore
4
- } from "./MD3RIO2T.js";
4
+ } from "./BFGNM53A.js";
5
5
  import {
6
6
  createStore
7
- } from "./EWA2WL6G.js";
7
+ } from "./SXKM4CGU.js";
8
8
  import {
9
9
  defaultValue
10
- } from "./PBFD2E7P.js";
11
- import {
12
- __spreadProps,
13
- __spreadValues
14
- } from "./3YLGPPWQ.js";
10
+ } from "./XMCVU3LR.js";
15
11
 
16
12
  // src/hovercard/hovercard-store.ts
17
13
  function createHovercardStore(props = {}) {
18
14
  var _a;
19
15
  const syncState = (_a = props.store) == null ? void 0 : _a.getState();
20
- const popover = createPopoverStore(__spreadProps(__spreadValues({}, props), {
16
+ const popover = createPopoverStore({
17
+ ...props,
21
18
  placement: defaultValue(
22
19
  props.placement,
23
20
  syncState == null ? void 0 : syncState.placement,
24
21
  "bottom"
25
22
  )
26
- }));
23
+ });
27
24
  const timeout = defaultValue(props.timeout, syncState == null ? void 0 : syncState.timeout, 500);
28
- const initialState = __spreadProps(__spreadValues({}, popover.getState()), {
25
+ const initialState = {
26
+ ...popover.getState(),
29
27
  timeout,
30
28
  showTimeout: defaultValue(props.showTimeout, syncState == null ? void 0 : syncState.showTimeout),
31
29
  hideTimeout: defaultValue(props.hideTimeout, syncState == null ? void 0 : syncState.hideTimeout),
32
30
  autoFocusOnShow: defaultValue(syncState == null ? void 0 : syncState.autoFocusOnShow, false)
33
- });
31
+ };
34
32
  const hovercard = createStore(initialState, popover, props.store);
35
- return __spreadProps(__spreadValues(__spreadValues({}, popover), hovercard), {
33
+ return {
34
+ ...popover,
35
+ ...hovercard,
36
36
  setAutoFocusOnShow: (value) => hovercard.setState("autoFocusOnShow", value)
37
- });
37
+ };
38
38
  }
39
39
 
40
40
  export {
@@ -1,7 +1,4 @@
1
1
  "use client";
2
- import {
3
- __spreadValues
4
- } from "./3YLGPPWQ.js";
5
2
 
6
3
  // src/utils/misc.ts
7
4
  function noop(..._) {
@@ -74,7 +71,7 @@ function normalizeString(str) {
74
71
  return str.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
75
72
  }
76
73
  function omit(object, keys) {
77
- const result = __spreadValues({}, object);
74
+ const result = { ...object };
78
75
  for (const key of keys) {
79
76
  if (hasOwnProperty(result, key)) {
80
77
  delete result[key];
@@ -2,14 +2,10 @@
2
2
  import {
3
3
  createStore,
4
4
  throwOnConflictingProps
5
- } from "../__chunks/EWA2WL6G.js";
5
+ } from "../__chunks/SXKM4CGU.js";
6
6
  import {
7
7
  defaultValue
8
- } from "../__chunks/PBFD2E7P.js";
9
- import {
10
- __spreadProps,
11
- __spreadValues
12
- } from "../__chunks/3YLGPPWQ.js";
8
+ } from "../__chunks/XMCVU3LR.js";
13
9
 
14
10
  // src/checkbox/checkbox-store.ts
15
11
  function createCheckboxStore(props = {}) {
@@ -25,9 +21,10 @@ function createCheckboxStore(props = {}) {
25
21
  )
26
22
  };
27
23
  const checkbox = createStore(initialState, props.store);
28
- return __spreadProps(__spreadValues({}, checkbox), {
24
+ return {
25
+ ...checkbox,
29
26
  setValue: (value) => checkbox.setState("value", value)
30
- });
27
+ };
31
28
  }
32
29
  export {
33
30
  createCheckboxStore
@@ -1,11 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  createCollectionStore
4
- } from "../__chunks/K2KIGYQU.js";
4
+ } from "../__chunks/AMRA5WUK.js";
5
5
  import "../__chunks/37JWRFYW.js";
6
- import "../__chunks/EWA2WL6G.js";
7
- import "../__chunks/PBFD2E7P.js";
8
- import "../__chunks/3YLGPPWQ.js";
6
+ import "../__chunks/SXKM4CGU.js";
7
+ import "../__chunks/XMCVU3LR.js";
9
8
  export {
10
9
  createCollectionStore
11
10
  };
@@ -5,14 +5,14 @@ import {
5
5
  } from "../__chunks/O6E4ZWCP.js";
6
6
  import {
7
7
  createPopoverStore
8
- } from "../__chunks/MD3RIO2T.js";
8
+ } from "../__chunks/BFGNM53A.js";
9
9
  import {
10
10
  createCompositeStore
11
- } from "../__chunks/C34RJTDU.js";
11
+ } from "../__chunks/73UNQSFO.js";
12
12
  import "../__chunks/7PRQYBBV.js";
13
- import "../__chunks/RZDDWCDV.js";
14
- import "../__chunks/43IPP2F4.js";
15
- import "../__chunks/K2KIGYQU.js";
13
+ import "../__chunks/KMAUV3TY.js";
14
+ import "../__chunks/75BJEVSH.js";
15
+ import "../__chunks/AMRA5WUK.js";
16
16
  import "../__chunks/37JWRFYW.js";
17
17
  import {
18
18
  batch,
@@ -22,25 +22,18 @@ import {
22
22
  setup,
23
23
  sync,
24
24
  throwOnConflictingProps
25
- } from "../__chunks/EWA2WL6G.js";
25
+ } from "../__chunks/SXKM4CGU.js";
26
26
  import {
27
27
  chain,
28
28
  defaultValue
29
- } from "../__chunks/PBFD2E7P.js";
30
- import {
31
- __objRest,
32
- __spreadProps,
33
- __spreadValues
34
- } from "../__chunks/3YLGPPWQ.js";
29
+ } from "../__chunks/XMCVU3LR.js";
35
30
 
36
31
  // src/combobox/combobox-store.ts
37
32
  var isTouchSafari = isSafari() && isTouchDevice();
38
- function createComboboxStore(_a = {}) {
39
- var _b = _a, {
40
- tag
41
- } = _b, props = __objRest(_b, [
42
- "tag"
43
- ]);
33
+ function createComboboxStore({
34
+ tag,
35
+ ...props
36
+ } = {}) {
44
37
  const store = mergeStore(props.store, pick(tag, ["value", "rtl"]));
45
38
  throwOnConflictingProps(props, store);
46
39
  const tagState = tag == null ? void 0 : tag.getState();
@@ -51,7 +44,8 @@ function createComboboxStore(_a = {}) {
51
44
  props.defaultActiveId,
52
45
  null
53
46
  );
54
- const composite = createCompositeStore(__spreadProps(__spreadValues({}, props), {
47
+ const composite = createCompositeStore({
48
+ ...props,
55
49
  activeId,
56
50
  includesBaseElement: defaultValue(
57
51
  props.includesBaseElement,
@@ -70,14 +64,15 @@ function createComboboxStore(_a = {}) {
70
64
  syncState == null ? void 0 : syncState.virtualFocus,
71
65
  true
72
66
  )
73
- }));
74
- const popover = createPopoverStore(__spreadProps(__spreadValues({}, props), {
67
+ });
68
+ const popover = createPopoverStore({
69
+ ...props,
75
70
  placement: defaultValue(
76
71
  props.placement,
77
72
  syncState == null ? void 0 : syncState.placement,
78
73
  "bottom-start"
79
74
  )
80
- }));
75
+ });
81
76
  const value = defaultValue(
82
77
  props.value,
83
78
  syncState == null ? void 0 : syncState.value,
@@ -92,7 +87,9 @@ function createComboboxStore(_a = {}) {
92
87
  ""
93
88
  );
94
89
  const multiSelectable = Array.isArray(selectedValue);
95
- const initialState = __spreadProps(__spreadValues(__spreadValues({}, composite.getState()), popover.getState()), {
90
+ const initialState = {
91
+ ...composite.getState(),
92
+ ...popover.getState(),
96
93
  value,
97
94
  selectedValue,
98
95
  resetValueOnSelect: defaultValue(
@@ -106,7 +103,7 @@ function createComboboxStore(_a = {}) {
106
103
  multiSelectable && !tag
107
104
  ),
108
105
  activeValue: syncState == null ? void 0 : syncState.activeValue
109
- });
106
+ };
110
107
  const combobox = createStore(initialState, composite, popover, store);
111
108
  if (isTouchSafari) {
112
109
  setup(
@@ -161,12 +158,15 @@ function createComboboxStore(_a = {}) {
161
158
  combobox.setState("activeValue", activeItem == null ? void 0 : activeItem.value);
162
159
  })
163
160
  );
164
- return __spreadProps(__spreadValues(__spreadValues(__spreadValues({}, popover), composite), combobox), {
161
+ return {
162
+ ...popover,
163
+ ...composite,
164
+ ...combobox,
165
165
  tag,
166
166
  setValue: (value2) => combobox.setState("value", value2),
167
167
  resetValue: () => combobox.setState("value", initialState.value),
168
168
  setSelectedValue: (selectedValue2) => combobox.setState("selectedValue", selectedValue2)
169
- });
169
+ };
170
170
  }
171
171
  export {
172
172
  createComboboxStore
@@ -1,12 +1,11 @@
1
1
  "use client";
2
2
  import {
3
3
  createPopoverStore
4
- } from "../__chunks/MD3RIO2T.js";
5
- import "../__chunks/RZDDWCDV.js";
6
- import "../__chunks/43IPP2F4.js";
7
- import "../__chunks/EWA2WL6G.js";
8
- import "../__chunks/PBFD2E7P.js";
9
- import "../__chunks/3YLGPPWQ.js";
4
+ } from "../__chunks/BFGNM53A.js";
5
+ import "../__chunks/KMAUV3TY.js";
6
+ import "../__chunks/75BJEVSH.js";
7
+ import "../__chunks/SXKM4CGU.js";
8
+ import "../__chunks/XMCVU3LR.js";
10
9
 
11
10
  // src/composite/composite-overflow-store.ts
12
11
  function createCompositeOverflowStore(props = {}) {
@@ -1,13 +1,12 @@
1
1
  "use client";
2
2
  import {
3
3
  createCompositeStore
4
- } from "../__chunks/C34RJTDU.js";
4
+ } from "../__chunks/73UNQSFO.js";
5
5
  import "../__chunks/7PRQYBBV.js";
6
- import "../__chunks/K2KIGYQU.js";
6
+ import "../__chunks/AMRA5WUK.js";
7
7
  import "../__chunks/37JWRFYW.js";
8
- import "../__chunks/EWA2WL6G.js";
9
- import "../__chunks/PBFD2E7P.js";
10
- import "../__chunks/3YLGPPWQ.js";
8
+ import "../__chunks/SXKM4CGU.js";
9
+ import "../__chunks/XMCVU3LR.js";
11
10
  export {
12
11
  createCompositeStore
13
12
  };
@@ -1,11 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  createDialogStore
4
- } from "../__chunks/RZDDWCDV.js";
5
- import "../__chunks/43IPP2F4.js";
6
- import "../__chunks/EWA2WL6G.js";
7
- import "../__chunks/PBFD2E7P.js";
8
- import "../__chunks/3YLGPPWQ.js";
4
+ } from "../__chunks/KMAUV3TY.js";
5
+ import "../__chunks/75BJEVSH.js";
6
+ import "../__chunks/SXKM4CGU.js";
7
+ import "../__chunks/XMCVU3LR.js";
9
8
  export {
10
9
  createDialogStore
11
10
  };
@@ -1,10 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  createDisclosureStore
4
- } from "../__chunks/43IPP2F4.js";
5
- import "../__chunks/EWA2WL6G.js";
6
- import "../__chunks/PBFD2E7P.js";
7
- import "../__chunks/3YLGPPWQ.js";
4
+ } from "../__chunks/75BJEVSH.js";
5
+ import "../__chunks/SXKM4CGU.js";
6
+ import "../__chunks/XMCVU3LR.js";
8
7
  export {
9
8
  createDisclosureStore
10
9
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  createCollectionStore
4
- } from "../__chunks/K2KIGYQU.js";
4
+ } from "../__chunks/AMRA5WUK.js";
5
5
  import "../__chunks/37JWRFYW.js";
6
6
  import {
7
7
  createStore,
@@ -9,17 +9,13 @@ import {
9
9
  setup,
10
10
  sync,
11
11
  throwOnConflictingProps
12
- } from "../__chunks/EWA2WL6G.js";
12
+ } from "../__chunks/SXKM4CGU.js";
13
13
  import {
14
14
  applyState,
15
15
  defaultValue,
16
16
  isInteger,
17
17
  isObject
18
- } from "../__chunks/PBFD2E7P.js";
19
- import {
20
- __spreadProps,
21
- __spreadValues
22
- } from "../__chunks/3YLGPPWQ.js";
18
+ } from "../__chunks/XMCVU3LR.js";
23
19
 
24
20
  // src/form/form-store.ts
25
21
  function nextFrame() {
@@ -65,7 +61,7 @@ function set(values, path, value) {
65
61
  nextValues2[index] = result;
66
62
  return nextValues2;
67
63
  }
68
- return __spreadProps(__spreadValues({}, values), { [key]: result });
64
+ return { ...values, [key]: result };
69
65
  }
70
66
  function setAll(values, value) {
71
67
  const result = {};
@@ -135,7 +131,8 @@ function createFormStore(props = {}) {
135
131
  props.defaultTouched,
136
132
  {}
137
133
  );
138
- const initialState = __spreadProps(__spreadValues({}, collection.getState()), {
134
+ const initialState = {
135
+ ...collection.getState(),
139
136
  values,
140
137
  errors,
141
138
  touched,
@@ -144,7 +141,7 @@ function createFormStore(props = {}) {
144
141
  submitSucceed: defaultValue(syncState == null ? void 0 : syncState.submitSucceed, 0),
145
142
  submitFailed: defaultValue(syncState == null ? void 0 : syncState.submitFailed, 0),
146
143
  valid: !hasMessages(errors)
147
- });
144
+ };
148
145
  const form = createStore(initialState, collection, props.store);
149
146
  const syncCallbacks = getStoreCallbacks(props.store);
150
147
  const syncCallbacksState = syncCallbacks == null ? void 0 : syncCallbacks.getState();
@@ -175,7 +172,9 @@ function createFormStore(props = {}) {
175
172
  form.setState("validating", false);
176
173
  }
177
174
  };
178
- return __spreadProps(__spreadValues(__spreadValues({}, collection), form), {
175
+ return {
176
+ ...collection,
177
+ ...form,
179
178
  names: createNames(),
180
179
  setValues: (values2) => form.setState("values", values2),
181
180
  getValue: (name) => get(form.getState().values, name),
@@ -268,7 +267,7 @@ function createFormStore(props = {}) {
268
267
  },
269
268
  // @ts-expect-error Internal
270
269
  __unstableCallbacks: callbacks
271
- });
270
+ };
272
271
  }
273
272
  export {
274
273
  createFormStore,
@@ -1,13 +1,12 @@
1
1
  "use client";
2
2
  import {
3
3
  createHovercardStore
4
- } from "../__chunks/X2ASWIQW.js";
5
- import "../__chunks/MD3RIO2T.js";
6
- import "../__chunks/RZDDWCDV.js";
7
- import "../__chunks/43IPP2F4.js";
8
- import "../__chunks/EWA2WL6G.js";
9
- import "../__chunks/PBFD2E7P.js";
10
- import "../__chunks/3YLGPPWQ.js";
4
+ } from "../__chunks/TIQDSBWP.js";
5
+ import "../__chunks/BFGNM53A.js";
6
+ import "../__chunks/KMAUV3TY.js";
7
+ import "../__chunks/75BJEVSH.js";
8
+ import "../__chunks/SXKM4CGU.js";
9
+ import "../__chunks/XMCVU3LR.js";
11
10
  export {
12
11
  createHovercardStore
13
12
  };
package/esm/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  "use client";
2
- import "./__chunks/3YLGPPWQ.js";
3
2
 
4
3
  // src/index.ts
5
4
  var src_default = {};
@@ -1,14 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  createMenubarStore
4
- } from "../__chunks/76UM5ZLT.js";
5
- import "../__chunks/C34RJTDU.js";
4
+ } from "../__chunks/PSMDSJUH.js";
5
+ import "../__chunks/73UNQSFO.js";
6
6
  import "../__chunks/7PRQYBBV.js";
7
- import "../__chunks/K2KIGYQU.js";
7
+ import "../__chunks/AMRA5WUK.js";
8
8
  import "../__chunks/37JWRFYW.js";
9
- import "../__chunks/EWA2WL6G.js";
10
- import "../__chunks/PBFD2E7P.js";
11
- import "../__chunks/3YLGPPWQ.js";
9
+ import "../__chunks/SXKM4CGU.js";
10
+ import "../__chunks/XMCVU3LR.js";
12
11
 
13
12
  // src/menu/menu-bar-store.ts
14
13
  function createMenuBarStore(props = {}) {