@ariakit/core 0.4.18 → 0.4.19

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 (126) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/cjs/__chunks/{MJNGPYVQ.cjs → 2RUCRSRF.cjs} +16 -16
  3. package/cjs/__chunks/{6BYUUR4M.cjs → 4TRESXTO.cjs} +7 -1
  4. package/cjs/__chunks/{AOXAROPF.cjs → 75F3RDBE.cjs} +14 -14
  5. package/cjs/__chunks/{SHOLYDNP.cjs → CTEQSOKZ.cjs} +2 -2
  6. package/cjs/__chunks/{T247D7JS.cjs → CVLMIMPT.cjs} +2 -2
  7. package/cjs/__chunks/{JNPL5IHP.cjs → G2CSOTWZ.cjs} +7 -7
  8. package/cjs/__chunks/{4ITB54IT.cjs → I4CBIWTX.cjs} +2 -3
  9. package/cjs/__chunks/{JNYCP2QO.cjs → LS2SNHDM.cjs} +6 -6
  10. package/cjs/__chunks/{UROTDZFK.cjs → R37KOEUW.cjs} +10 -10
  11. package/cjs/__chunks/{OYTZFOIJ.cjs → UGAVMSQJ.cjs} +18 -18
  12. package/cjs/__chunks/{HGVIF2R4.cjs → VC22SYOD.cjs} +24 -21
  13. package/cjs/__chunks/{WPBYRKFQ.cjs → WMTGHDLE.cjs} +15 -15
  14. package/cjs/checkbox/checkbox-store.cjs +5 -5
  15. package/cjs/checkbox/checkbox-store.d.cts +5 -5
  16. package/cjs/checkbox/checkbox-store.d.ts +5 -5
  17. package/cjs/collection/collection-store.cjs +5 -5
  18. package/cjs/collection/collection-store.d.cts +5 -5
  19. package/cjs/collection/collection-store.d.ts +5 -5
  20. package/cjs/combobox/combobox-store.cjs +40 -40
  21. package/cjs/combobox/combobox-store.d.cts +26 -26
  22. package/cjs/combobox/combobox-store.d.ts +26 -26
  23. package/cjs/composite/composite-overflow-store.cjs +6 -6
  24. package/cjs/composite/composite-store.cjs +6 -6
  25. package/cjs/composite/composite-store.d.cts +62 -54
  26. package/cjs/composite/composite-store.d.ts +62 -54
  27. package/cjs/dialog/dialog-store.cjs +5 -5
  28. package/cjs/disclosure/disclosure-store.cjs +4 -4
  29. package/cjs/disclosure/disclosure-store.d.cts +22 -22
  30. package/cjs/disclosure/disclosure-store.d.ts +22 -22
  31. package/cjs/form/form-store.cjs +41 -37
  32. package/cjs/form/form-store.d.cts +14 -14
  33. package/cjs/form/form-store.d.ts +14 -14
  34. package/cjs/hovercard/hovercard-store.cjs +7 -7
  35. package/cjs/hovercard/hovercard-store.d.cts +10 -10
  36. package/cjs/hovercard/hovercard-store.d.ts +10 -10
  37. package/cjs/menu/menu-bar-store.cjs +7 -7
  38. package/cjs/menu/menu-store.cjs +27 -27
  39. package/cjs/menu/menu-store.d.cts +10 -10
  40. package/cjs/menu/menu-store.d.ts +10 -10
  41. package/cjs/menubar/menubar-store.cjs +7 -7
  42. package/cjs/popover/popover-store.cjs +6 -6
  43. package/cjs/popover/popover-store.d.cts +17 -17
  44. package/cjs/popover/popover-store.d.ts +17 -17
  45. package/cjs/radio/radio-store.cjs +9 -9
  46. package/cjs/radio/radio-store.d.cts +1 -1
  47. package/cjs/radio/radio-store.d.ts +1 -1
  48. package/cjs/select/select-store.cjs +32 -32
  49. package/cjs/select/select-store.d.cts +17 -17
  50. package/cjs/select/select-store.d.ts +17 -17
  51. package/cjs/tab/tab-store.cjs +32 -32
  52. package/cjs/tab/tab-store.d.cts +20 -20
  53. package/cjs/tab/tab-store.d.ts +20 -20
  54. package/cjs/tag/tag-store.cjs +16 -16
  55. package/cjs/tag/tag-store.d.cts +5 -5
  56. package/cjs/tag/tag-store.d.ts +5 -5
  57. package/cjs/toolbar/toolbar-store.cjs +8 -8
  58. package/cjs/tooltip/tooltip-store.cjs +13 -13
  59. package/cjs/utils/dom.cjs +2 -2
  60. package/cjs/utils/events.cjs +6 -6
  61. package/cjs/utils/focus.cjs +12 -13
  62. package/cjs/utils/misc.cjs +4 -2
  63. package/cjs/utils/misc.d.cts +4 -0
  64. package/cjs/utils/misc.d.ts +4 -0
  65. package/cjs/utils/platform.cjs +3 -3
  66. package/cjs/utils/store.cjs +3 -3
  67. package/cjs/utils/store.d.cts +1 -1
  68. package/cjs/utils/store.d.ts +1 -1
  69. package/cjs/utils/undo.cjs +2 -2
  70. package/esm/__chunks/{KMAUV3TY.js → 7KNZCZ55.js} +1 -1
  71. package/esm/__chunks/{3DNM6L6E.js → G7XPWBXK.js} +1 -2
  72. package/esm/__chunks/{SNHYQNEZ.js → GMGLSF2B.js} +1 -1
  73. package/esm/__chunks/{WSDJ6ZRB.js → H7R2CY4Q.js} +3 -3
  74. package/esm/__chunks/{75BJEVSH.js → IHNLLH3I.js} +2 -2
  75. package/esm/__chunks/{N5XGANPW.js → KZX46JDB.js} +11 -8
  76. package/esm/__chunks/{BFGNM53A.js → MJ4ZJEIM.js} +5 -5
  77. package/esm/__chunks/{TIQDSBWP.js → TEVO2DMI.js} +3 -3
  78. package/esm/__chunks/{7LM4Q2XB.js → U4NM2NCP.js} +1 -1
  79. package/esm/__chunks/{RVTIKFRL.js → UNDE2QJS.js} +3 -3
  80. package/esm/__chunks/{XMCVU3LR.js → UWJK2WK2.js} +6 -0
  81. package/esm/__chunks/{SXKM4CGU.js → XTZ53NXG.js} +4 -4
  82. package/esm/checkbox/checkbox-store.d.ts +5 -5
  83. package/esm/checkbox/checkbox-store.js +2 -2
  84. package/esm/collection/collection-store.d.ts +5 -5
  85. package/esm/collection/collection-store.js +4 -4
  86. package/esm/combobox/combobox-store.d.ts +26 -26
  87. package/esm/combobox/combobox-store.js +9 -9
  88. package/esm/composite/composite-overflow-store.js +5 -5
  89. package/esm/composite/composite-store.d.ts +62 -54
  90. package/esm/composite/composite-store.js +5 -5
  91. package/esm/dialog/dialog-store.js +4 -4
  92. package/esm/disclosure/disclosure-store.d.ts +22 -22
  93. package/esm/disclosure/disclosure-store.js +3 -3
  94. package/esm/form/form-store.d.ts +14 -14
  95. package/esm/form/form-store.js +19 -15
  96. package/esm/hovercard/hovercard-store.d.ts +10 -10
  97. package/esm/hovercard/hovercard-store.js +6 -6
  98. package/esm/menu/menu-bar-store.js +6 -6
  99. package/esm/menu/menu-store.d.ts +10 -10
  100. package/esm/menu/menu-store.js +9 -9
  101. package/esm/menubar/menubar-store.js +6 -6
  102. package/esm/popover/popover-store.d.ts +17 -17
  103. package/esm/popover/popover-store.js +5 -5
  104. package/esm/radio/radio-store.d.ts +1 -1
  105. package/esm/radio/radio-store.js +5 -5
  106. package/esm/select/select-store.d.ts +17 -17
  107. package/esm/select/select-store.js +8 -8
  108. package/esm/tab/tab-store.d.ts +20 -20
  109. package/esm/tab/tab-store.js +5 -5
  110. package/esm/tag/tag-store.d.ts +5 -5
  111. package/esm/tag/tag-store.js +7 -7
  112. package/esm/toolbar/toolbar-store.js +5 -5
  113. package/esm/tooltip/tooltip-store.js +7 -7
  114. package/esm/utils/dom.js +1 -1
  115. package/esm/utils/events.js +4 -4
  116. package/esm/utils/focus.js +2 -3
  117. package/esm/utils/misc.d.ts +4 -0
  118. package/esm/utils/misc.js +3 -1
  119. package/esm/utils/platform.js +2 -2
  120. package/esm/utils/store.d.ts +1 -1
  121. package/esm/utils/store.js +2 -2
  122. package/esm/utils/undo.js +1 -1
  123. package/package.json +20 -21
  124. package/tsconfig.build.json +7 -2
  125. package/tsconfig.node.json +5 -0
  126. package/tsconfig.test.json +5 -0
@@ -11,32 +11,32 @@ export interface HovercardStoreState extends PopoverStoreState {
11
11
  /**
12
12
  * The amount of time in milliseconds to wait before showing and hiding the
13
13
  * popup. To control the delay for showing and hiding separately, use
14
- * [`showTimeout`](https://ariakit.org/reference/hovercard-provider#showtimeout)
14
+ * [`showTimeout`](https://ariakit.com/reference/hovercard-provider#showtimeout)
15
15
  * and
16
- * [`hideTimeout`](https://ariakit.org/reference/hovercard-provider#hidetimeout).
16
+ * [`hideTimeout`](https://ariakit.com/reference/hovercard-provider#hidetimeout).
17
17
  * @default 500
18
18
  */
19
19
  timeout: number;
20
20
  /**
21
21
  * The amount of time in milliseconds to wait before _showing_ the popup. It
22
22
  * defaults to the value passed to
23
- * [`timeout`](https://ariakit.org/reference/hovercard-provider#timeout).
23
+ * [`timeout`](https://ariakit.com/reference/hovercard-provider#timeout).
24
24
  *
25
25
  * Live examples:
26
- * - [Navigation Menubar](https://ariakit.org/examples/menubar-navigation)
26
+ * - [Navigation Menubar](https://ariakit.com/examples/menubar-navigation)
27
27
  * - [Submenu with
28
- * Combobox](https://ariakit.org/examples/menu-nested-combobox)
28
+ * Combobox](https://ariakit.com/examples/menu-nested-combobox)
29
29
  */
30
30
  showTimeout?: number;
31
31
  /**
32
32
  * The amount of time in milliseconds to wait before _hiding_ the popup. It
33
33
  * defaults to the value passed to
34
- * [`timeout`](https://ariakit.org/reference/hovercard-provider#timeout).
34
+ * [`timeout`](https://ariakit.com/reference/hovercard-provider#timeout).
35
35
  *
36
36
  * Live examples:
37
- * - [Navigation Menubar](https://ariakit.org/examples/menubar-navigation)
38
- * - [Tooltip with Framer
39
- * Motion](https://ariakit.org/examples/tooltip-framer-motion)
37
+ * - [Navigation Menubar](https://ariakit.com/examples/menubar-navigation)
38
+ * - [Tooltip with
39
+ * Motion](https://ariakit.com/examples/tooltip-framer-motion)
40
40
  */
41
41
  hideTimeout?: number;
42
42
  /**
@@ -51,7 +51,7 @@ export interface HovercardStoreFunctions extends PopoverStoreFunctions {
51
51
  * Sets the `autoFocusOnShow` state.
52
52
  *
53
53
  * Live examples:
54
- * - [Sliding Menu](https://ariakit.org/examples/menu-slide)
54
+ * - [Sliding Menu](https://ariakit.com/examples/menu-slide)
55
55
  */
56
56
  setAutoFocusOnShow: SetState<HovercardStoreState["autoFocusOnShow"]>;
57
57
  }
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import {
3
3
  createHovercardStore
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";
4
+ } from "../__chunks/TEVO2DMI.js";
5
+ import "../__chunks/MJ4ZJEIM.js";
6
+ import "../__chunks/7KNZCZ55.js";
7
+ import "../__chunks/IHNLLH3I.js";
8
+ import "../__chunks/XTZ53NXG.js";
9
+ import "../__chunks/UWJK2WK2.js";
10
10
  export {
11
11
  createHovercardStore
12
12
  };
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  createMenubarStore
4
- } from "../__chunks/WSDJ6ZRB.js";
5
- import "../__chunks/RVTIKFRL.js";
4
+ } from "../__chunks/H7R2CY4Q.js";
5
+ import "../__chunks/UNDE2QJS.js";
6
6
  import "../__chunks/7PRQYBBV.js";
7
- import "../__chunks/N5XGANPW.js";
8
- import "../__chunks/3DNM6L6E.js";
9
- import "../__chunks/SXKM4CGU.js";
10
- import "../__chunks/XMCVU3LR.js";
7
+ import "../__chunks/KZX46JDB.js";
8
+ import "../__chunks/G7XPWBXK.js";
9
+ import "../__chunks/XTZ53NXG.js";
10
+ import "../__chunks/UWJK2WK2.js";
11
11
 
12
12
  // src/menu/menu-bar-store.ts
13
13
  function createMenuBarStore(props = {}) {
@@ -20,14 +20,14 @@ export interface MenuStoreState<T extends MenuStoreValues = MenuStoreValues> ext
20
20
  initialFocus: "container" | "first" | "last";
21
21
  /**
22
22
  * A map of names and values that will be used by the
23
- * [`MenuItemCheckbox`](https://ariakit.org/reference/menu-item-checkbox) and
24
- * [`MenuItemRadio`](https://ariakit.org/reference/menu-item-radio)
23
+ * [`MenuItemCheckbox`](https://ariakit.com/reference/menu-item-checkbox) and
24
+ * [`MenuItemRadio`](https://ariakit.com/reference/menu-item-radio)
25
25
  * components.
26
26
  *
27
27
  * Live examples:
28
- * - [MenuItemCheckbox](https://ariakit.org/examples/menu-item-checkbox)
28
+ * - [MenuItemCheckbox](https://ariakit.com/examples/menu-item-checkbox)
29
29
  * - [Submenu with
30
- * Combobox](https://ariakit.org/examples/menu-nested-combobox)
30
+ * Combobox](https://ariakit.com/examples/menu-nested-combobox)
31
31
  */
32
32
  values: T;
33
33
  }
@@ -37,7 +37,7 @@ export interface MenuStoreFunctions<T extends MenuStoreValues = MenuStoreValues>
37
37
  *
38
38
  * Live examples:
39
39
  * - [Submenu with
40
- * Combobox](https://ariakit.org/examples/menu-nested-combobox)
40
+ * Combobox](https://ariakit.com/examples/menu-nested-combobox)
41
41
  */
42
42
  hideAll: () => void;
43
43
  /**
@@ -45,7 +45,7 @@ export interface MenuStoreFunctions<T extends MenuStoreValues = MenuStoreValues>
45
45
  */
46
46
  setInitialFocus: SetState<MenuStoreState<T>["initialFocus"]>;
47
47
  /**
48
- * Sets the [`values`](https://ariakit.org/reference/menu-provider#values)
48
+ * Sets the [`values`](https://ariakit.com/reference/menu-provider#values)
49
49
  * state.
50
50
  * @example
51
51
  * store.setValues({ watching: ["issues"] });
@@ -57,7 +57,7 @@ export interface MenuStoreFunctions<T extends MenuStoreValues = MenuStoreValues>
57
57
  *
58
58
  * Live examples:
59
59
  * - [Submenu with
60
- * Combobox](https://ariakit.org/examples/menu-nested-combobox)
60
+ * Combobox](https://ariakit.com/examples/menu-nested-combobox)
61
61
  * @example
62
62
  * store.setValue("watching", ["issues"]);
63
63
  * store.setValue("watching", (value) => [...value, "issues"]);
@@ -82,11 +82,11 @@ export interface MenuStoreOptions<T extends MenuStoreValues = MenuStoreValues> e
82
82
  menubar?: MenuBarStore | null;
83
83
  /**
84
84
  * The default values for the
85
- * [`values`](https://ariakit.org/reference/menu-provider#values) state.
85
+ * [`values`](https://ariakit.com/reference/menu-provider#values) state.
86
86
  *
87
87
  * Live examples:
88
- * - [MenuItemCheckbox](https://ariakit.org/examples/menu-item-checkbox)
89
- * - [MenuItemRadio](https://ariakit.org/examples/menu-item-radio)
88
+ * - [MenuItemCheckbox](https://ariakit.com/examples/menu-item-checkbox)
89
+ * - [MenuItemRadio](https://ariakit.com/examples/menu-item-radio)
90
90
  * @default {}
91
91
  */
92
92
  defaultValues?: MenuStoreState<T>["values"];
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import {
3
3
  createHovercardStore
4
- } from "../__chunks/TIQDSBWP.js";
5
- import "../__chunks/BFGNM53A.js";
4
+ } from "../__chunks/TEVO2DMI.js";
5
+ import "../__chunks/MJ4ZJEIM.js";
6
6
  import {
7
7
  createCompositeStore
8
- } from "../__chunks/RVTIKFRL.js";
8
+ } from "../__chunks/UNDE2QJS.js";
9
9
  import "../__chunks/7PRQYBBV.js";
10
- import "../__chunks/KMAUV3TY.js";
11
- import "../__chunks/75BJEVSH.js";
12
- import "../__chunks/N5XGANPW.js";
13
- import "../__chunks/3DNM6L6E.js";
10
+ import "../__chunks/7KNZCZ55.js";
11
+ import "../__chunks/IHNLLH3I.js";
12
+ import "../__chunks/KZX46JDB.js";
13
+ import "../__chunks/G7XPWBXK.js";
14
14
  import {
15
15
  createStore,
16
16
  mergeStore,
@@ -19,11 +19,11 @@ import {
19
19
  setup,
20
20
  sync,
21
21
  throwOnConflictingProps
22
- } from "../__chunks/SXKM4CGU.js";
22
+ } from "../__chunks/XTZ53NXG.js";
23
23
  import {
24
24
  applyState,
25
25
  defaultValue
26
- } from "../__chunks/XMCVU3LR.js";
26
+ } from "../__chunks/UWJK2WK2.js";
27
27
 
28
28
  // src/menu/menu-store.ts
29
29
  function createMenuStore({
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  createMenubarStore
4
- } from "../__chunks/WSDJ6ZRB.js";
5
- import "../__chunks/RVTIKFRL.js";
4
+ } from "../__chunks/H7R2CY4Q.js";
5
+ import "../__chunks/UNDE2QJS.js";
6
6
  import "../__chunks/7PRQYBBV.js";
7
- import "../__chunks/N5XGANPW.js";
8
- import "../__chunks/3DNM6L6E.js";
9
- import "../__chunks/SXKM4CGU.js";
10
- import "../__chunks/XMCVU3LR.js";
7
+ import "../__chunks/KZX46JDB.js";
8
+ import "../__chunks/G7XPWBXK.js";
9
+ import "../__chunks/XTZ53NXG.js";
10
+ import "../__chunks/UWJK2WK2.js";
11
11
  export {
12
12
  createMenubarStore
13
13
  };
@@ -12,16 +12,16 @@ export interface PopoverStoreState extends DialogStoreState {
12
12
  * The anchor element.
13
13
  *
14
14
  * Live examples:
15
- * - [Navigation Menubar](https://ariakit.org/examples/menubar-navigation)
15
+ * - [Navigation Menubar](https://ariakit.com/examples/menubar-navigation)
16
16
  */
17
17
  anchorElement: HTMLElement | null;
18
18
  /**
19
19
  * The popover element that will render the placement attributes.
20
20
  *
21
21
  * Live examples:
22
- * - [Form with Select](https://ariakit.org/examples/form-select)
23
- * - [Sliding Menu](https://ariakit.org/examples/menu-slide)
24
- * - [Responsive Popover](https://ariakit.org/examples/popover-responsive)
22
+ * - [Form with Select](https://ariakit.com/examples/form-select)
23
+ * - [Sliding Menu](https://ariakit.com/examples/menu-slide)
24
+ * - [Responsive Popover](https://ariakit.com/examples/popover-responsive)
25
25
  */
26
26
  popoverElement: HTMLElement | null;
27
27
  /**
@@ -30,12 +30,12 @@ export interface PopoverStoreState extends DialogStoreState {
30
30
  arrowElement: HTMLElement | null;
31
31
  /**
32
32
  * The current temporary position of the popover. This might differ from the
33
- * [`placement`](https://ariakit.org/reference/popover-provider#placement)
33
+ * [`placement`](https://ariakit.com/reference/popover-provider#placement)
34
34
  * state if the popover has had to adjust its position dynamically.
35
35
  *
36
36
  * Live examples:
37
- * - [Tooltip with Framer
38
- * Motion](https://ariakit.org/examples/tooltip-framer-motion)
37
+ * - [Tooltip with
38
+ * Motion](https://ariakit.com/examples/tooltip-framer-motion)
39
39
  */
40
40
  currentPlacement: Placement;
41
41
  /**
@@ -43,18 +43,18 @@ export interface PopoverStoreState extends DialogStoreState {
43
43
  *
44
44
  * Live examples:
45
45
  * - [Submenu with
46
- * Combobox](https://ariakit.org/examples/menu-nested-combobox)
47
- * - [Sliding Menu](https://ariakit.org/examples/menu-slide)
48
- * - [Navigation Menubar](https://ariakit.org/examples/menubar-navigation)
49
- * - [Selection Popover](https://ariakit.org/examples/popover-selection)
50
- * - [Standalone Popover](https://ariakit.org/examples/popover-standalone)
51
- * - [Select Grid](https://ariakit.org/examples/select-grid)
46
+ * Combobox](https://ariakit.com/examples/menu-nested-combobox)
47
+ * - [Sliding Menu](https://ariakit.com/examples/menu-slide)
48
+ * - [Navigation Menubar](https://ariakit.com/examples/menubar-navigation)
49
+ * - [Selection Popover](https://ariakit.com/examples/popover-selection)
50
+ * - [Standalone Popover](https://ariakit.com/examples/popover-standalone)
51
+ * - [Select Grid](https://ariakit.com/examples/select-grid)
52
52
  * @default "bottom"
53
53
  */
54
54
  placement: Placement;
55
55
  /**
56
56
  * A symbol that's used to recompute the popover position when the
57
- * [`render`](https://ariakit.org/reference/use-popover-store#render) method
57
+ * [`render`](https://ariakit.com/reference/use-popover-store#render) method
58
58
  * is called.
59
59
  */
60
60
  rendered: symbol;
@@ -64,7 +64,7 @@ export interface PopoverStoreFunctions extends DialogStoreFunctions {
64
64
  * Sets the anchor element.
65
65
  *
66
66
  * Live examples:
67
- * - [Navigation Menubar](https://ariakit.org/examples/menubar-navigation)
67
+ * - [Navigation Menubar](https://ariakit.com/examples/menubar-navigation)
68
68
  */
69
69
  setAnchorElement: SetState<PopoverStoreState["anchorElement"]>;
70
70
  /**
@@ -82,8 +82,8 @@ export interface PopoverStoreFunctions extends DialogStoreFunctions {
82
82
  *
83
83
  * Live examples:
84
84
  * - [Textarea with inline
85
- * Combobox](https://ariakit.org/examples/combobox-textarea)
86
- * - [Selection Popover](https://ariakit.org/examples/popover-selection)
85
+ * Combobox](https://ariakit.com/examples/combobox-textarea)
86
+ * - [Selection Popover](https://ariakit.com/examples/popover-selection)
87
87
  */
88
88
  render: () => void;
89
89
  }
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import {
3
3
  createPopoverStore
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";
4
+ } from "../__chunks/MJ4ZJEIM.js";
5
+ import "../__chunks/7KNZCZ55.js";
6
+ import "../__chunks/IHNLLH3I.js";
7
+ import "../__chunks/XTZ53NXG.js";
8
+ import "../__chunks/UWJK2WK2.js";
9
9
  export {
10
10
  createPopoverStore
11
11
  };
@@ -16,7 +16,7 @@ export interface RadioStoreState extends CompositeStoreState {
16
16
  }
17
17
  export interface RadioStoreFunctions extends CompositeStoreFunctions {
18
18
  /**
19
- * Sets the [`value`](https://ariakit.org/reference/radio-provider#value)
19
+ * Sets the [`value`](https://ariakit.com/reference/radio-provider#value)
20
20
  * state.
21
21
  * @example
22
22
  * store.setValue("apple");
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import {
3
3
  createCompositeStore
4
- } from "../__chunks/RVTIKFRL.js";
4
+ } from "../__chunks/UNDE2QJS.js";
5
5
  import "../__chunks/7PRQYBBV.js";
6
- import "../__chunks/N5XGANPW.js";
7
- import "../__chunks/3DNM6L6E.js";
6
+ import "../__chunks/KZX46JDB.js";
7
+ import "../__chunks/G7XPWBXK.js";
8
8
  import {
9
9
  createStore
10
- } from "../__chunks/SXKM4CGU.js";
10
+ } from "../__chunks/XTZ53NXG.js";
11
11
  import {
12
12
  defaultValue
13
- } from "../__chunks/XMCVU3LR.js";
13
+ } from "../__chunks/UWJK2WK2.js";
14
14
 
15
15
  // src/radio/radio-store.ts
16
16
  function createRadioStore({
@@ -23,26 +23,26 @@ export interface SelectStoreState<T extends SelectStoreValue = SelectStoreValue>
23
23
  * The select value.
24
24
  *
25
25
  * Live examples:
26
- * - [Form with Select](https://ariakit.org/examples/form-select)
27
- * - [Select Grid](https://ariakit.org/examples/select-grid)
26
+ * - [Form with Select](https://ariakit.com/examples/form-select)
27
+ * - [Select Grid](https://ariakit.com/examples/select-grid)
28
28
  * - [Select with custom
29
- * items](https://ariakit.org/examples/select-item-custom)
30
- * - [Multi-Select](https://ariakit.org/examples/select-multiple)
31
- * - [Toolbar with Select](https://ariakit.org/examples/toolbar-select)
29
+ * items](https://ariakit.com/examples/select-item-custom)
30
+ * - [Multi-Select](https://ariakit.com/examples/select-multiple)
31
+ * - [Toolbar with Select](https://ariakit.com/examples/toolbar-select)
32
32
  * - [Select with Next.js App
33
- * Router](https://ariakit.org/examples/select-next-router)
33
+ * Router](https://ariakit.com/examples/select-next-router)
34
34
  */
35
35
  value: MutableValue<T>;
36
36
  /**
37
37
  * Whether the select
38
- * [`value`](https://ariakit.org/reference/select-provider#value) should be
38
+ * [`value`](https://ariakit.com/reference/select-provider#value) should be
39
39
  * set when the active item changes by moving (which usually happens when
40
40
  * moving to an item using the keyboard).
41
41
  *
42
42
  * Live examples:
43
- * - [Select Grid](https://ariakit.org/examples/select-grid)
43
+ * - [Select Grid](https://ariakit.com/examples/select-grid)
44
44
  * - [Select with custom
45
- * items](https://ariakit.org/examples/select-item-custom)
45
+ * items](https://ariakit.com/examples/select-item-custom)
46
46
  * @default false
47
47
  */
48
48
  setValueOnMove: boolean;
@@ -54,7 +54,7 @@ export interface SelectStoreState<T extends SelectStoreValue = SelectStoreValue>
54
54
  * The select button element.
55
55
  *
56
56
  * Live examples:
57
- * - [Form with Select](https://ariakit.org/examples/form-select)
57
+ * - [Form with Select](https://ariakit.com/examples/form-select)
58
58
  */
59
59
  selectElement: HTMLElement | null;
60
60
  /**
@@ -64,7 +64,7 @@ export interface SelectStoreState<T extends SelectStoreValue = SelectStoreValue>
64
64
  }
65
65
  export interface SelectStoreFunctions<T extends SelectStoreValue = SelectStoreValue> extends Pick<SelectStoreOptions<T>, "combobox">, CompositeStoreFunctions<SelectStoreItem>, PopoverStoreFunctions {
66
66
  /**
67
- * Sets the [`value`](https://ariakit.org/reference/select-provider#value)
67
+ * Sets the [`value`](https://ariakit.com/reference/select-provider#value)
68
68
  * state.
69
69
  * @example
70
70
  * store.setValue("Apple");
@@ -96,14 +96,14 @@ export interface SelectStoreOptions<T extends SelectStoreValue = SelectStoreValu
96
96
  * The default value. If not set, the first non-disabled item will be used.
97
97
  *
98
98
  * Live examples:
99
- * - [Form with Select](https://ariakit.org/examples/form-select)
100
- * - [Animated Select](https://ariakit.org/examples/select-animated)
101
- * - [Select with Combobox](https://ariakit.org/examples/select-combobox)
102
- * - [SelectGroup](https://ariakit.org/examples/select-group)
99
+ * - [Form with Select](https://ariakit.com/examples/form-select)
100
+ * - [Animated Select](https://ariakit.com/examples/select-animated)
101
+ * - [Select with Combobox](https://ariakit.com/examples/select-combobox)
102
+ * - [SelectGroup](https://ariakit.com/examples/select-group)
103
103
  * - [Select with Next.js App
104
- * Router](https://ariakit.org/examples/select-next-router)
104
+ * Router](https://ariakit.com/examples/select-next-router)
105
105
  * - [Select with Combobox and
106
- * Tabs](https://ariakit.org/examples/select-combobox-tab)
106
+ * Tabs](https://ariakit.com/examples/select-combobox-tab)
107
107
  */
108
108
  defaultValue?: SelectStoreState<T>["value"];
109
109
  }
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
  import {
3
3
  createPopoverStore
4
- } from "../__chunks/BFGNM53A.js";
4
+ } from "../__chunks/MJ4ZJEIM.js";
5
5
  import {
6
6
  createCompositeStore
7
- } from "../__chunks/RVTIKFRL.js";
7
+ } from "../__chunks/UNDE2QJS.js";
8
8
  import {
9
9
  toArray
10
10
  } from "../__chunks/7PRQYBBV.js";
11
- import "../__chunks/KMAUV3TY.js";
12
- import "../__chunks/75BJEVSH.js";
13
- import "../__chunks/N5XGANPW.js";
14
- import "../__chunks/3DNM6L6E.js";
11
+ import "../__chunks/7KNZCZ55.js";
12
+ import "../__chunks/IHNLLH3I.js";
13
+ import "../__chunks/KZX46JDB.js";
14
+ import "../__chunks/G7XPWBXK.js";
15
15
  import {
16
16
  batch,
17
17
  createStore,
@@ -20,10 +20,10 @@ import {
20
20
  setup,
21
21
  sync,
22
22
  throwOnConflictingProps
23
- } from "../__chunks/SXKM4CGU.js";
23
+ } from "../__chunks/XTZ53NXG.js";
24
24
  import {
25
25
  defaultValue
26
- } from "../__chunks/XMCVU3LR.js";
26
+ } from "../__chunks/UWJK2WK2.js";
27
27
 
28
28
  // src/select/select-store.ts
29
29
  function createSelectStore({
@@ -21,12 +21,12 @@ export interface TabStoreState extends CompositeStoreState<TabStoreItem> {
21
21
  * will be automatically set to the first enabled tab.
22
22
  *
23
23
  * Live examples:
24
- * - [Tab with React Router](https://ariakit.org/examples/tab-react-router)
25
- * - [Combobox with Tabs](https://ariakit.org/examples/combobox-tabs)
24
+ * - [Tab with React Router](https://ariakit.com/examples/tab-react-router)
25
+ * - [Combobox with Tabs](https://ariakit.com/examples/combobox-tabs)
26
26
  * - [Select with Combobox and
27
- * Tabs](https://ariakit.org/examples/select-combobox-tab)
27
+ * Tabs](https://ariakit.com/examples/select-combobox-tab)
28
28
  * - [Command Menu with
29
- * Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
29
+ * Tabs](https://ariakit.com/examples/dialog-combobox-tab-command-menu)
30
30
  */
31
31
  selectedId: TabStoreState["activeId"];
32
32
  /**
@@ -35,9 +35,9 @@ export interface TabStoreState extends CompositeStoreState<TabStoreItem> {
35
35
  * keys to shift focus.
36
36
  *
37
37
  * Live examples:
38
- * - [Tab with React Router](https://ariakit.org/examples/tab-react-router)
38
+ * - [Tab with React Router](https://ariakit.com/examples/tab-react-router)
39
39
  * - [Select with Combobox and
40
- * Tabs](https://ariakit.org/examples/select-combobox-tab)
40
+ * Tabs](https://ariakit.com/examples/select-combobox-tab)
41
41
  * @default true
42
42
  */
43
43
  selectOnMove?: boolean;
@@ -45,9 +45,9 @@ export interface TabStoreState extends CompositeStoreState<TabStoreItem> {
45
45
  export interface TabStoreFunctions extends CompositeStoreFunctions<TabStoreItem> {
46
46
  /**
47
47
  * Sets the
48
- * [`selectedId`](https://ariakit.org/reference/tab-provider#selectedid) state
48
+ * [`selectedId`](https://ariakit.com/reference/tab-provider#selectedid) state
49
49
  * without moving focus. If you want to move focus, use the
50
- * [`select`](https://ariakit.org/reference/use-tab-store#select) function
50
+ * [`select`](https://ariakit.com/reference/use-tab-store#select) function
51
51
  * instead.
52
52
  * @example
53
53
  * // Selects the tab with id "tab-1"
@@ -64,14 +64,14 @@ export interface TabStoreFunctions extends CompositeStoreFunctions<TabStoreItem>
64
64
  * A collection store containing the tab panels.
65
65
  *
66
66
  * Live examples:
67
- * - [Animated TabPanel](https://ariakit.org/examples/tab-panel-animated)
67
+ * - [Animated TabPanel](https://ariakit.com/examples/tab-panel-animated)
68
68
  */
69
69
  panels: CollectionStore<TabStorePanel>;
70
70
  /**
71
71
  * Selects the tab for the given id and moves focus to it. If you want to set
72
- * the [`selectedId`](https://ariakit.org/reference/tab-provider#selectedid)
72
+ * the [`selectedId`](https://ariakit.com/reference/tab-provider#selectedid)
73
73
  * state without moving focus, use the
74
- * [`setSelectedId`](https://ariakit.org/reference/use-tab-store#setselectedid-1)
74
+ * [`setSelectedId`](https://ariakit.com/reference/use-tab-store#setselectedid-1)
75
75
  * function instead.
76
76
  * @example
77
77
  * // Selects the tab with id "tab-1"
@@ -86,18 +86,18 @@ export interface TabStoreFunctions extends CompositeStoreFunctions<TabStoreItem>
86
86
  export interface TabStoreOptions extends StoreOptions<TabStoreState, "orientation" | "focusLoop" | "selectedId" | "selectOnMove">, CompositeStoreOptions<TabStoreItem> {
87
87
  /**
88
88
  * A reference to another [composite
89
- * store](https://ariakit.org/reference/use-composite-store). This is used when
89
+ * store](https://ariakit.com/reference/use-composite-store). This is used when
90
90
  * rendering tabs as part of another composite widget such as
91
- * [Combobox](https://ariakit.org/components/combobox) or
92
- * [Select](https://ariakit.org/components/select). The stores will share the
91
+ * [Combobox](https://ariakit.com/components/combobox) or
92
+ * [Select](https://ariakit.com/components/select). The stores will share the
93
93
  * same state.
94
94
  */
95
95
  composite?: CompositeStore | SelectStore | null;
96
96
  /**
97
97
  * A reference to a [combobox
98
- * store](https://ariakit.org/reference/use-combobox-store). This is used when
98
+ * store](https://ariakit.com/reference/use-combobox-store). This is used when
99
99
  * rendering tabs inside a
100
- * [Combobox](https://ariakit.org/components/combobox).
100
+ * [Combobox](https://ariakit.com/components/combobox).
101
101
  */
102
102
  combobox?: ComboboxStore | null;
103
103
  /**
@@ -105,12 +105,12 @@ export interface TabStoreOptions extends StoreOptions<TabStoreState, "orientatio
105
105
  * will be automatically set to the first enabled tab.
106
106
  *
107
107
  * Live examples:
108
- * - [Combobox with Tabs](https://ariakit.org/examples/combobox-tabs)
109
- * - [Animated TabPanel](https://ariakit.org/examples/tab-panel-animated)
108
+ * - [Combobox with Tabs](https://ariakit.com/examples/combobox-tabs)
109
+ * - [Animated TabPanel](https://ariakit.com/examples/tab-panel-animated)
110
110
  * - [Select with Combobox and
111
- * Tabs](https://ariakit.org/examples/select-combobox-tab)
111
+ * Tabs](https://ariakit.com/examples/select-combobox-tab)
112
112
  * - [Command Menu with
113
- * Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
113
+ * Tabs](https://ariakit.com/examples/dialog-combobox-tab-command-menu)
114
114
  */
115
115
  defaultSelectedId?: TabStoreState["selectedId"];
116
116
  }
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import {
3
3
  createCompositeStore
4
- } from "../__chunks/RVTIKFRL.js";
4
+ } from "../__chunks/UNDE2QJS.js";
5
5
  import "../__chunks/7PRQYBBV.js";
6
6
  import {
7
7
  createCollectionStore
8
- } from "../__chunks/N5XGANPW.js";
9
- import "../__chunks/3DNM6L6E.js";
8
+ } from "../__chunks/KZX46JDB.js";
9
+ import "../__chunks/G7XPWBXK.js";
10
10
  import {
11
11
  batch,
12
12
  createStore,
@@ -14,11 +14,11 @@ import {
14
14
  omit,
15
15
  setup,
16
16
  sync
17
- } from "../__chunks/SXKM4CGU.js";
17
+ } from "../__chunks/XTZ53NXG.js";
18
18
  import {
19
19
  chain,
20
20
  defaultValue
21
- } from "../__chunks/XMCVU3LR.js";
21
+ } from "../__chunks/UWJK2WK2.js";
22
22
 
23
23
  // src/tab/tab-store.ts
24
24
  function createTabStore({
@@ -38,27 +38,27 @@ export interface TagStoreFunctions extends CompositeStoreFunctions<TagStoreItem>
38
38
  */
39
39
  setLabelElement: SetState<TagStoreState["labelElement"]>;
40
40
  /**
41
- * Sets the [`value`](https://ariakit.org/reference/tag-provider#value) state.
41
+ * Sets the [`value`](https://ariakit.com/reference/tag-provider#value) state.
42
42
  */
43
43
  setValue: SetState<TagStoreState["value"]>;
44
44
  /**
45
- * Resets the [`value`](https://ariakit.org/reference/tag-provider#value)
45
+ * Resets the [`value`](https://ariakit.com/reference/tag-provider#value)
46
46
  * state to its initial value.
47
47
  */
48
48
  resetValue: () => void;
49
49
  /**
50
- * Sets the [`values`](https://ariakit.org/reference/tag-provider#values) state.
50
+ * Sets the [`values`](https://ariakit.com/reference/tag-provider#values) state.
51
51
  */
52
52
  setValues: SetState<TagStoreState["values"]>;
53
53
  /**
54
54
  * Add a new value to the
55
- * [`values`](https://ariakit.org/reference/tag-provider#values) state if it
55
+ * [`values`](https://ariakit.com/reference/tag-provider#values) state if it
56
56
  * doesn't already exist.
57
57
  */
58
58
  addValue: (value: string) => void;
59
59
  /**
60
60
  * Remove a value from the
61
- * [`values`](https://ariakit.org/reference/tag-provider#values) state.
61
+ * [`values`](https://ariakit.com/reference/tag-provider#values) state.
62
62
  */
63
63
  removeValue: (value: string) => void;
64
64
  }