@ariakit/core 0.4.6 → 0.4.7

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 (75) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/cjs/__chunks/{4W3OYRR3.cjs → 3COGJMN3.cjs} +9 -9
  3. package/cjs/__chunks/{B4AKUC4S.cjs → 5BQ2XS3R.cjs} +4 -4
  4. package/cjs/__chunks/{LTLFSC4X.cjs → DIYYVJDK.cjs} +2 -2
  5. package/cjs/__chunks/{AETQC2AR.cjs → LAYUSNGM.cjs} +11 -11
  6. package/cjs/__chunks/{3HYNC3XA.cjs → LBFF2BBK.cjs} +6 -6
  7. package/cjs/__chunks/{B4LYZ4EM.cjs → M2NNCFIJ.cjs} +13 -11
  8. package/cjs/__chunks/{5JEQEZFR.cjs → MB5TLEVH.cjs} +7 -7
  9. package/cjs/__chunks/{UEZLSKZ4.cjs → XVL5HZ27.cjs} +4 -4
  10. package/cjs/checkbox/checkbox-store.cjs +3 -3
  11. package/cjs/collection/collection-store.cjs +3 -3
  12. package/cjs/combobox/combobox-store.cjs +24 -24
  13. package/cjs/combobox/combobox-store.d.cts +2 -0
  14. package/cjs/combobox/combobox-store.d.ts +2 -0
  15. package/cjs/composite/composite-overflow-store.cjs +5 -5
  16. package/cjs/composite/composite-store.cjs +4 -4
  17. package/cjs/composite/composite-store.d.cts +5 -1
  18. package/cjs/composite/composite-store.d.ts +5 -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 +7 -7
  22. package/cjs/hovercard/hovercard-store.cjs +6 -6
  23. package/cjs/menu/menu-bar-store.cjs +5 -5
  24. package/cjs/menu/menu-store.cjs +18 -18
  25. package/cjs/menubar/menubar-store.cjs +5 -5
  26. package/cjs/popover/popover-store.cjs +5 -5
  27. package/cjs/radio/radio-store.cjs +5 -5
  28. package/cjs/select/select-store.cjs +20 -20
  29. package/cjs/select/select-store.d.cts +2 -0
  30. package/cjs/select/select-store.d.ts +2 -0
  31. package/cjs/tab/tab-store.cjs +23 -23
  32. package/cjs/tab/tab-store.d.cts +10 -4
  33. package/cjs/tab/tab-store.d.ts +10 -4
  34. package/cjs/tag/tag-store.cjs +7 -7
  35. package/cjs/toolbar/toolbar-store.cjs +4 -4
  36. package/cjs/tooltip/tooltip-store.cjs +7 -7
  37. package/cjs/utils/events.cjs +3 -1
  38. package/cjs/utils/focus.cjs +7 -3
  39. package/cjs/utils/store.cjs +2 -2
  40. package/esm/__chunks/{BRS7GKWU.js → E4HA32QI.js} +2 -2
  41. package/esm/__chunks/{EQPTKGFA.js → I2WJ7JBQ.js} +1 -1
  42. package/esm/__chunks/{WCKXDMU7.js → KDSZSVV5.js} +1 -1
  43. package/esm/__chunks/{R676XYVY.js → KLPDXTDE.js} +13 -11
  44. package/esm/__chunks/{5RJNXXU2.js → NWACXGIN.js} +1 -1
  45. package/esm/__chunks/{P3MTNH46.js → RCLYDUHE.js} +2 -2
  46. package/esm/__chunks/{MFZZDIHG.js → SAZZJI72.js} +2 -2
  47. package/esm/__chunks/{PBSSD2DM.js → VH2P7HEP.js} +2 -2
  48. package/esm/checkbox/checkbox-store.js +1 -1
  49. package/esm/collection/collection-store.js +2 -2
  50. package/esm/combobox/combobox-store.d.ts +2 -0
  51. package/esm/combobox/combobox-store.js +6 -6
  52. package/esm/composite/composite-overflow-store.js +4 -4
  53. package/esm/composite/composite-store.d.ts +5 -1
  54. package/esm/composite/composite-store.js +3 -3
  55. package/esm/dialog/dialog-store.js +3 -3
  56. package/esm/disclosure/disclosure-store.js +2 -2
  57. package/esm/form/form-store.js +2 -2
  58. package/esm/hovercard/hovercard-store.js +5 -5
  59. package/esm/menu/menu-bar-store.js +4 -4
  60. package/esm/menu/menu-store.js +7 -7
  61. package/esm/menubar/menubar-store.js +4 -4
  62. package/esm/popover/popover-store.js +4 -4
  63. package/esm/radio/radio-store.js +3 -3
  64. package/esm/select/select-store.d.ts +2 -0
  65. package/esm/select/select-store.js +6 -6
  66. package/esm/tab/tab-store.d.ts +10 -4
  67. package/esm/tab/tab-store.js +3 -3
  68. package/esm/tag/tag-store.js +3 -3
  69. package/esm/toolbar/toolbar-store.js +3 -3
  70. package/esm/tooltip/tooltip-store.js +5 -5
  71. package/esm/utils/events.js +3 -1
  72. package/esm/utils/focus.js +7 -3
  73. package/esm/utils/store.js +1 -1
  74. package/package.json +2 -2
  75. package/.eslintignore +0 -6
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  createCompositeStore
4
- } from "../__chunks/PBSSD2DM.js";
4
+ } from "../__chunks/VH2P7HEP.js";
5
5
  import {
6
6
  createCollectionStore
7
- } from "../__chunks/EQPTKGFA.js";
7
+ } from "../__chunks/I2WJ7JBQ.js";
8
8
  import "../__chunks/7PRQYBBV.js";
9
9
  import {
10
10
  batch,
@@ -13,7 +13,7 @@ import {
13
13
  omit,
14
14
  setup,
15
15
  sync
16
- } from "../__chunks/R676XYVY.js";
16
+ } from "../__chunks/KLPDXTDE.js";
17
17
  import {
18
18
  chain,
19
19
  defaultValue
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  createCompositeStore
4
- } from "../__chunks/PBSSD2DM.js";
5
- import "../__chunks/EQPTKGFA.js";
4
+ } from "../__chunks/VH2P7HEP.js";
5
+ import "../__chunks/I2WJ7JBQ.js";
6
6
  import "../__chunks/7PRQYBBV.js";
7
7
  import {
8
8
  UndoManager
@@ -11,7 +11,7 @@ import {
11
11
  createStore,
12
12
  setup,
13
13
  sync
14
- } from "../__chunks/R676XYVY.js";
14
+ } from "../__chunks/KLPDXTDE.js";
15
15
  import {
16
16
  applyState,
17
17
  defaultValue
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  createCompositeStore
4
- } from "../__chunks/PBSSD2DM.js";
5
- import "../__chunks/EQPTKGFA.js";
4
+ } from "../__chunks/VH2P7HEP.js";
5
+ import "../__chunks/I2WJ7JBQ.js";
6
6
  import "../__chunks/7PRQYBBV.js";
7
- import "../__chunks/R676XYVY.js";
7
+ import "../__chunks/KLPDXTDE.js";
8
8
  import {
9
9
  defaultValue
10
10
  } from "../__chunks/22HHDS5F.js";
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  createHovercardStore
4
- } from "../__chunks/BRS7GKWU.js";
5
- import "../__chunks/MFZZDIHG.js";
6
- import "../__chunks/5RJNXXU2.js";
7
- import "../__chunks/WCKXDMU7.js";
4
+ } from "../__chunks/E4HA32QI.js";
5
+ import "../__chunks/SAZZJI72.js";
6
+ import "../__chunks/NWACXGIN.js";
7
+ import "../__chunks/KDSZSVV5.js";
8
8
  import {
9
9
  createStore
10
- } from "../__chunks/R676XYVY.js";
10
+ } from "../__chunks/KLPDXTDE.js";
11
11
  import {
12
12
  defaultValue
13
13
  } from "../__chunks/22HHDS5F.js";
@@ -127,7 +127,9 @@ function addGlobalEventListener(type, listener, options, scope = window) {
127
127
  scope.document.removeEventListener(type, listener, options);
128
128
  } catch (e) {
129
129
  }
130
- children.forEach((remove) => remove());
130
+ for (const remove of children) {
131
+ remove();
132
+ }
131
133
  };
132
134
  return removeEventListener;
133
135
  }
@@ -12,7 +12,7 @@ import {
12
12
  // src/utils/focus.ts
13
13
  var selector = "input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";
14
14
  function hasNegativeTabIndex(element) {
15
- const tabIndex = parseInt(element.getAttribute("tabindex") || "0", 10);
15
+ const tabIndex = Number.parseInt(element.getAttribute("tabindex") || "0", 10);
16
16
  return tabIndex < 0;
17
17
  }
18
18
  function isFocusable(element) {
@@ -205,7 +205,9 @@ function disableFocus(element) {
205
205
  }
206
206
  function disableFocusIn(container, includeContainer) {
207
207
  const tabbableElements = getAllTabbableIn(container, includeContainer);
208
- tabbableElements.forEach(disableFocus);
208
+ for (const element of tabbableElements) {
209
+ disableFocus(element);
210
+ }
209
211
  }
210
212
  function restoreFocusIn(container) {
211
213
  const elements = container.querySelectorAll("[data-tabindex]");
@@ -221,7 +223,9 @@ function restoreFocusIn(container) {
221
223
  if (container.hasAttribute("data-tabindex")) {
222
224
  restoreTabIndex(container);
223
225
  }
224
- elements.forEach(restoreTabIndex);
226
+ for (const element of elements) {
227
+ restoreTabIndex(element);
228
+ }
225
229
  }
226
230
  function focusIntoView(element, options) {
227
231
  if (!("scrollIntoView" in element)) {
@@ -10,7 +10,7 @@ import {
10
10
  subscribe,
11
11
  sync,
12
12
  throwOnConflictingProps
13
- } from "../__chunks/R676XYVY.js";
13
+ } from "../__chunks/KLPDXTDE.js";
14
14
  import "../__chunks/22HHDS5F.js";
15
15
  import "../__chunks/4R3V3JGP.js";
16
16
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ariakit/core",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "Ariakit core",
5
5
  "sideEffects": false,
6
6
  "license": "MIT",
@@ -20,7 +20,7 @@
20
20
  "url": "https://github.com/diegohaz"
21
21
  },
22
22
  "scripts": {
23
- "lint": "eslint . --ext js,ts,tsx",
23
+ "lint": "biome check .",
24
24
  "build": "node ../../scripts/build/build.js",
25
25
  "clean": "node ../../scripts/build/clean.js"
26
26
  },
package/.eslintignore DELETED
@@ -1,6 +0,0 @@
1
- cjs
2
- esm
3
- ts
4
- umd
5
- coverage
6
- node_modules