@ariakit/react 0.4.27 → 0.4.29

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 (91) hide show
  1. package/{CHANGELOG-035.md → CHANGELOG-0314.md} +205 -0
  2. package/CHANGELOG.md +53 -202
  3. package/cjs/__chunks/{SXAPGTJ4.cjs → 2ENQD3AS.cjs} +6 -6
  4. package/cjs/__chunks/{L2IFVMDU.cjs → 2WBRQ3I7.cjs} +7 -6
  5. package/cjs/__chunks/{N3DLR7OL.cjs → 3B6TF7HK.cjs} +6 -6
  6. package/cjs/__chunks/{XPQIHUQ7.cjs → 42GL4LKI.cjs} +20 -20
  7. package/cjs/__chunks/{VXUZM542.cjs → 53Q7HWXL.cjs} +165 -165
  8. package/cjs/__chunks/{3FIXGHZ2.cjs → 5QRVCRDI.cjs} +5 -5
  9. package/cjs/__chunks/{7MXJT4IN.cjs → 5XICU34X.cjs} +3 -3
  10. package/cjs/__chunks/{334WKW6I.cjs → 5ZX5ACFH.cjs} +4 -4
  11. package/cjs/__chunks/{2MDC3Z3V.cjs → 6BNWLCHF.cjs} +10 -10
  12. package/cjs/__chunks/{IFZV5LA3.cjs → 6XKLGFUO.cjs} +17 -17
  13. package/cjs/__chunks/{PZXRBFZF.cjs → 7SEEXNY6.cjs} +7 -7
  14. package/cjs/__chunks/{VXDLN5CP.cjs → 7XB4QE2H.cjs} +29 -29
  15. package/cjs/__chunks/{RVXPEX7O.cjs → AI3BA27G.cjs} +18 -18
  16. package/cjs/__chunks/{NG34QRI6.cjs → BTARPES4.cjs} +79 -32
  17. package/cjs/__chunks/{LCX235VJ.cjs → CKHOJYDQ.cjs} +6 -6
  18. package/cjs/__chunks/{C4NVIV6V.cjs → CRPG37KH.cjs} +104 -84
  19. package/cjs/__chunks/{4RKQMGBK.cjs → CYTUSXPR.cjs} +236 -222
  20. package/cjs/__chunks/{IHVFJGGN.cjs → D6USTXKA.cjs} +4 -4
  21. package/cjs/__chunks/{NFZWL7LE.cjs → DDV252ZY.cjs} +4 -4
  22. package/cjs/__chunks/DVB2WSHD.cjs +41 -0
  23. package/cjs/__chunks/{YEXJT4IL.cjs → EF57ZMJN.cjs} +10 -10
  24. package/cjs/__chunks/{RR46KI45.cjs → EQYJ6RA7.cjs} +3 -3
  25. package/cjs/__chunks/{D4HCGWOU.cjs → FHPV2Q7C.cjs} +182 -78
  26. package/cjs/__chunks/{FHQ5DVYQ.cjs → FNYFMCD7.cjs} +4 -4
  27. package/cjs/__chunks/{FELYQPO5.cjs → FWVWDDOL.cjs} +182 -173
  28. package/cjs/__chunks/{GUY4MKX2.cjs → G2JI2Z7U.cjs} +12 -12
  29. package/cjs/__chunks/{Z5PDS46M.cjs → GI27TVAM.cjs} +159 -159
  30. package/cjs/__chunks/{PTE2IJM5.cjs → GQZ5DRPC.cjs} +32 -30
  31. package/cjs/__chunks/{XH4GE3VE.cjs → GV4SR2CM.cjs} +7 -7
  32. package/cjs/__chunks/{PU63IQFD.cjs → HCYQ5Z7Z.cjs} +58 -58
  33. package/cjs/__chunks/{ASOIXRUN.cjs → HGV6FCZP.cjs} +61 -61
  34. package/cjs/__chunks/{OOFUBC32.cjs → I4JS2KAF.cjs} +17 -19
  35. package/cjs/__chunks/{DVWS2XPY.cjs → I6N3772N.cjs} +21 -21
  36. package/cjs/__chunks/{7POA4244.cjs → IEVLYJJP.cjs} +22 -22
  37. package/cjs/__chunks/{ZNW2LLWJ.cjs → IGWSYIUY.cjs} +15 -15
  38. package/cjs/__chunks/{QAUJZR6Y.cjs → JBOLBTVU.cjs} +15 -4
  39. package/cjs/__chunks/{MN5TONXW.cjs → JXYV7OWF.cjs} +33 -36
  40. package/cjs/__chunks/{FIPBE5IX.cjs → KDVG735H.cjs} +3 -3
  41. package/cjs/__chunks/{TSBEWPNT.cjs → KFUU3G3B.cjs} +39 -39
  42. package/cjs/__chunks/{ZYPARRXG.cjs → LGUAIO4Q.cjs} +4 -4
  43. package/cjs/__chunks/{5NTEPQ2U.cjs → M6YHODMV.cjs} +20 -20
  44. package/cjs/__chunks/{SIF7IN4L.cjs → MWZS5XD4.cjs} +12 -12
  45. package/cjs/__chunks/{UUEFM3TG.cjs → NBAYASRC.cjs} +17 -17
  46. package/cjs/__chunks/{RXZPZPJX.cjs → OFFSDIY3.cjs} +21 -21
  47. package/cjs/__chunks/{RGH2H3WL.cjs → OP2QHIHD.cjs} +4 -4
  48. package/cjs/__chunks/{2HXQHKBC.cjs → P6Y2DILA.cjs} +17 -17
  49. package/cjs/__chunks/{LMCBLO3G.cjs → P7AY4KL3.cjs} +10 -10
  50. package/cjs/__chunks/{PDPE2VAZ.cjs → QJQWEU4Q.cjs} +134 -120
  51. package/cjs/__chunks/{UV7CXZEM.cjs → RZJLQJQM.cjs} +9 -9
  52. package/cjs/__chunks/{34UJGLOZ.cjs → SAFZBKT3.cjs} +61 -48
  53. package/cjs/__chunks/{LVHC4DSB.cjs → TMY4OIYC.cjs} +19 -19
  54. package/cjs/__chunks/{LS5VO6AA.cjs → ULDO57DJ.cjs} +12 -12
  55. package/cjs/__chunks/{NMUCJYMR.cjs → US2XYAXE.cjs} +83 -83
  56. package/cjs/__chunks/{GUB6WHB6.cjs → VUISVT3V.cjs} +9 -9
  57. package/cjs/__chunks/{RLKC7JVT.cjs → WHUT2PFL.cjs} +4 -4
  58. package/cjs/__chunks/WLHP5OM6.cjs +37 -0
  59. package/cjs/__chunks/{7M4GY5DS.cjs → WYI5CKPV.cjs} +38 -38
  60. package/cjs/__chunks/{SQ72MZ63.cjs → ZPWE3FTF.cjs} +39 -39
  61. package/cjs/button.cjs +5 -5
  62. package/cjs/checkbox.cjs +8 -8
  63. package/cjs/collection.cjs +6 -6
  64. package/cjs/combobox.cjs +30 -30
  65. package/cjs/command.cjs +4 -4
  66. package/cjs/composite.cjs +17 -17
  67. package/cjs/dialog.cjs +18 -18
  68. package/cjs/disclosure.cjs +9 -9
  69. package/cjs/focus-trap.cjs +5 -5
  70. package/cjs/focusable.cjs +3 -3
  71. package/cjs/form.cjs +14 -14
  72. package/cjs/group.cjs +3 -3
  73. package/cjs/heading.cjs +3 -3
  74. package/cjs/hovercard.cjs +25 -25
  75. package/cjs/index.cjs +59 -59
  76. package/cjs/menu.cjs +42 -42
  77. package/cjs/menubar.cjs +8 -8
  78. package/cjs/popover.cjs +25 -25
  79. package/cjs/portal.cjs +5 -5
  80. package/cjs/radio.cjs +12 -12
  81. package/cjs/role.cjs +3 -3
  82. package/cjs/select.cjs +36 -36
  83. package/cjs/separator.cjs +3 -3
  84. package/cjs/store.cjs +3 -3
  85. package/cjs/tab.cjs +15 -15
  86. package/cjs/toolbar.cjs +13 -13
  87. package/cjs/tooltip.cjs +15 -15
  88. package/cjs/visually-hidden.cjs +3 -3
  89. package/package.json +4 -4
  90. package/cjs/__chunks/FVIS5BFZ.cjs +0 -41
  91. package/cjs/__chunks/TLUFYZC7.cjs +0 -37
@@ -1,3 +1,208 @@
1
+ # @ariakit/react
2
+
3
+ ## 0.3.14
4
+
5
+ - Fixed a regression introduced in `v0.3.13` where dialogs wouldn't close when clicking outside on iOS.
6
+ - Updated dependencies: `@ariakit/react-core@0.3.14`
7
+
8
+ ## 0.3.13
9
+
10
+ ### Improved performance of large collections
11
+
12
+ Components like [`MenuItem`](https://ariakit.org/reference/menu-item), [`ComboboxItem`](https://ariakit.org/reference/combobox-item), and [`SelectItem`](https://ariakit.org/reference/select-item) should now offer improved performance when rendering large collections.
13
+
14
+ ### New `FormControl` component
15
+
16
+ This version introduces a new [`FormControl`](https://ariakit.org/reference/form-control) component. In future versions, this will replace the [`FormField`](https://ariakit.org/reference/form-field) component.
17
+
18
+ ### Other updates
19
+
20
+ - Adjusted the focus behavior in Safari to occur prior to the `pointerup` event instead of `mouseup`.
21
+ - Improved JSDocs.
22
+ - Updated dependencies: `@ariakit/react-core@0.3.13`
23
+
24
+ ## 0.3.12
25
+
26
+ - The auto-select feature on [Combobox](https://ariakit.org/components/combobox) now resets with each keystroke.
27
+ - Fixed [`Combobox`](https://ariakit.org/reference/combobox) with the [`autoSelect`](https://ariakit.org/reference/combobox#autoselect) prop calling `onFocus` with every input change.
28
+ - Fixed [`Hovercard`](https://ariakit.org/reference/hovercard) flickering when used with shadow DOM.
29
+ - Fixed [`Select`](https://ariakit.org/reference/select) with [`Combobox`](https://ariakit.org/reference/combobox) scroll jumping when opening using keyboard navigation.
30
+ - Fixed [`CompositeItem`](https://ariakit.org/reference/composite-item) triggering blur on focus.
31
+ - Fixed [`ComboboxItem`](https://ariakit.org/reference/combobox-item) not triggering the `onClick` event when the item is partially visible.
32
+ - Improved JSDocs.
33
+ - Updated dependencies: `@ariakit/react-core@0.3.12`
34
+
35
+ ## 0.3.11
36
+
37
+ ### Modal Combobox
38
+
39
+ The [Combobox](https://ariakit.org/components/combobox) components now support the [`modal`](https://ariakit.org/reference/combobox-popover#modal) prop on [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover).
40
+
41
+ When a modal combobox is expanded, users can interact with and tab through all the combobox controls, including [`Combobox`](https://ariakit.org/reference/combobox), [`ComboboxDisclosure`](https://ariakit.org/reference/combobox-disclosure), and [`ComboboxCancel`](https://ariakit.org/reference/combobox-cancel), even if they're rendered outside the popover. The rest of the page will be inert.
42
+
43
+ ### Controlling the auto-select functionality of Combobox
44
+
45
+ The [`Combobox`](https://ariakit.org/reference/combobox) component now includes a new [`getAutoSelectId`](https://ariakit.org/reference/combobox#getautoselectid) prop. This allows you to specify the [`ComboboxItem`](https://ariakit.org/reference/combobox-item) that should be auto-selected if the [`autoSelect`](https://ariakit.org/reference/combobox#autoselect) prop is `true`.
46
+
47
+ By default, the first _enabled_ item is auto-selected. Now you can customize this behavior by returning the id of another item from [`getAutoSelectId`](https://ariakit.org/reference/combobox#getautoselectid):
48
+
49
+ ```jsx
50
+ <Combobox
51
+ autoSelect
52
+ getAutoSelectId={(items) => {
53
+ // Auto select the first enabled item with a value
54
+ const item = items.find((item) => {
55
+ if (item.disabled) return false;
56
+ if (!item.value) return false;
57
+ return true;
58
+ });
59
+ return item?.id;
60
+ }}
61
+ />
62
+ ```
63
+
64
+ ### Styling Combobox without an active descendant
65
+
66
+ The [`Combobox`](https://ariakit.org/reference/combobox) component now includes a [`data-active-item`](https://ariakit.org/guide/styling#data-active-item) attribute when it's the only active item in the composite widget. In other words, when no [`ComboboxItem`](https://ariakit.org/reference/combobox-item) is active and the focus is solely on the combobox input.
67
+
68
+ You can use this as a CSS selector to style the combobox differently, providing additional affordance to users who pressed <kbd>↑</kbd> on the first item or <kbd>↓</kbd> on the last item. This action would place both virtual and actual DOM focus on the combobox input.
69
+
70
+ ```css
71
+ .combobox[data-active-item] {
72
+ outline-width: 2px;
73
+ }
74
+ ```
75
+
76
+ ### Other updates
77
+
78
+ - Fixed [`useTabStore`](https://ariakit.org/reference/use-tab-store) return value not updating its own reference.
79
+ - Fixed keyboard navigation on [Combobox](https://ariakit.org/components/combobox) when the content element is a grid.
80
+ - Fixed [`ComboboxDisclosure`](https://ariakit.org/reference/combobox-disclosure) to update its `aria-expanded` attribute when the combobox expands.
81
+ - Fixed `Maximum update depth exceeded` warning when rendering multiple collection items on the page.
82
+ - Improved JSDocs.
83
+ - Updated dependencies: `@ariakit/react-core@0.3.11`
84
+
85
+ ## 0.3.10
86
+
87
+ ### Overwriting `aria-selected` value on `ComboboxItem`
88
+
89
+ It's now possible to pass a custom `aria-selected` value to the [`ComboboxItem`](https://ariakit.org/reference/combobox-item) component, overwriting the internal behavior.
90
+
91
+ ### Limiting `slide` on popovers
92
+
93
+ When components like [Popover](https://ariakit.org/components/popover) and [Menu](https://ariakit.org/components/menu) with the [`slide`](https://ariakit.org/reference/popover#slide) prop are positioned to the right or left of the anchor element, they will now cease to slide across the screen, disengaged from the anchor element, upon reaching the edge of said element.
94
+
95
+ ### Other updates
96
+
97
+ - Fixed [`blurOnHoverEnd`](https://ariakit.org/reference/menu-item#bluronhoverend) set to `false` not keeping submenus open.
98
+ - Fixed scroll jump on Safari when selecting a [`CompositeItem`](https://ariakit.org/reference/composite-item).
99
+ - Fixed [`preserveTabOrderAnchor`](https://ariakit.org/reference/menu#preservetaborderanchor) on nested menus.
100
+ - Fixed focus behavior when using the [`preserveTabOrder`](https://ariakit.org/reference/portal#preservetaborder) prop.
101
+ - Updated dependencies: `@ariakit/react-core@0.3.10`
102
+
103
+ ## 0.3.9
104
+
105
+ ### Automatic role on ComboboxGroup
106
+
107
+ The [`ComboboxGroup`](https://ariakit.org/reference/combobox-group) component now automatically assigns the `role` attribute as `rowgroup` if it's nestled within a [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover) or [`ComboboxList`](https://ariakit.org/reference/combobox-list) wrapper that has the `role` attribute set to `grid`.
108
+
109
+ ### Custom submenu auto focus
110
+
111
+ When opening nested [Menu](https://ariakit.org/components/menu) components with <kbd>Enter</kbd>, <kbd>Space</kbd>, or arrow keys, the first tabbable element will now receive focus, even if it's not a [`MenuItem`](https://ariakit.org/reference/menu-item) element. This should enable custom popups that behave like submenus, but use different semantics.
112
+
113
+ ### Hovercard display timeout
114
+
115
+ The [Hovercard](https://ariakit.org/components/hovercard), [Menu](https://ariakit.org/components/menu), and [Tooltip](https://ariakit.org/components/tooltip) components now display synchronously when the [`timeout`](https://ariakit.org/reference/hovercard-provider#timeout) or [`showTimeout`](https://ariakit.org/reference/hovercard-provider#showtimeout) states are set to `0`. This should stop submenus from vanishing for a few frames prior to displaying a new menu when hovering over menu items in sequence.
116
+
117
+ ### Other updates
118
+
119
+ - Fixed [`CollectionItem`](https://ariakit.org/reference/collection-item) elements getting out of order when composing stores.
120
+ - Fixed [`MenuButton`](https://ariakit.org/reference/menu-button) not assigning the correct `role` attribute when used within a [`ComboboxList`](https://ariakit.org/reference/combobox-list) element.
121
+ - Fixed [`MenuItem`](https://ariakit.org/reference/menu-item) with an explicit [`focusOnHover`](https://ariakit.org/reference/menu-item#focusonhover) prop not moving focus properly.
122
+ - Fixed [`blurOnHoverEnd`](https://ariakit.org/reference/menu-item#bluronhoverend) not working on submenu triggers.
123
+ - Fixed [Dialog](https://ariakit.org/components/dialog) not respecting the controlled [`open`](https://ariakit.org/reference/use-dialog-store#open) state.
124
+ - Fixed unmounted [`SelectPopover`](https://ariakit.org/reference/select-popover) not re-opening when its [`open`](https://ariakit.org/reference/select-provider#open) state is initially set to `true`.
125
+ - Fixed TypeScript build errors.
126
+ - Fixed focus order when using [Popover](https://ariakit.org/components/popover) with the [`portal`](https://ariakit.org/reference/popover#portal) prop with VoiceOver.
127
+ - Updated dependencies: `@ariakit/react-core@0.3.9`
128
+
129
+ ## 0.3.8
130
+
131
+ ### Multi-selectable Combobox
132
+
133
+ We've added support for the [Combobox](https://ariakit.org/components/combobox) with multiple selection capabilities using a new [`selectedValue`](https://ariakit.org/reference/combobox-provider#selectedvalue) prop, along with [`defaultSelectedValue`](https://ariakit.org/reference/combobox-provider#defaultselectedvalue) and [`setSelectedValue`](https://ariakit.org/reference/combobox-provider#setselectedvalue).
134
+
135
+ This works similarly to the [`value`](https://ariakit.org/reference/select-provider#value) prop on [Select](https://ariakit.org/components/select) components. If it receives an array, the combobox will allow multiple selections. By default, it's a string that represents the selected value in a single-select combobox.
136
+
137
+ Check out the [Multi-selectable Combobox](https://ariakit.org/examples/combobox-multiple) example to see it in action.
138
+
139
+ ### New Combobox components
140
+
141
+ This version introduces new [Combobox](https://ariakit.org/components/combobox) components:
142
+
143
+ - [`ComboboxLabel`](https://ariakit.org/reference/combobox-label): This renders a `label` element for a [`Combobox`](https://ariakit.org/reference/combobox), with the `htmlFor` prop set automatically.
144
+ - [`ComboboxItemCheck`](https://ariakit.org/reference/combobox-item-check): This displays a checkmark for a [`ComboboxItem`](https://ariakit.org/reference/combobox-item) when the item is selected.
145
+
146
+ ### Other updates
147
+
148
+ - Added [`resetValueOnSelect`](https://ariakit.org/reference/combobox-provider#resetvalueonselect) state to [Combobox](https://ariakit.org/components/combobox) components.
149
+ - Added [`selectValueOnClick`](https://ariakit.org/reference/combobox-item#selectvalueonclick) prop to [`ComboboxItem`](https://ariakit.org/reference/combobox-item).
150
+ - Fixed [`SelectItem`](https://ariakit.org/reference/select-item) rendering an `aria-selected` attribute even when the [`value`](https://ariakit.org/reference/select-item#value) prop is omitted.
151
+ - Updated dependencies: `@ariakit/react-core@0.3.8`
152
+
153
+ ## 0.3.7
154
+
155
+ ### Expanding Menubar
156
+
157
+ The [Menubar](https://ariakit.org/components/menubar) component will now only expand if there's another menu already expanded in the same menubar.
158
+
159
+ ### Internal data attribute changes
160
+
161
+ Just like the change in v0.3.6 that removed the `data-command` and `data-disclosure` attributes from elements, this update stops the `data-composite-hover` attribute from infiltrating composite item elements in the DOM. We're mentioning this in the changelog as some users might have snapshot tests that require updating.
162
+
163
+ ### Other updates
164
+
165
+ - Fixed `setSelectionRange` error when used with [unsupported](https://html.spec.whatwg.org/multipage/input.html#concept-input-apply) input types.
166
+ - Fixed [`MenuButton`](https://ariakit.org/reference/menu-button) with [`showOnHover`](https://ariakit.org/reference/menu-button#showonhover) not updating the `activeId` state when hovered.
167
+ - Updated [`onFocusVisible`](https://ariakit.org/reference/focusable#onfocusvisible) element type on [`Focusable`](https://ariakit.org/reference/focusable) from `Element` to `HTMLElement`.
168
+ - Updated dependencies: `@ariakit/react-core@0.3.7`
169
+
170
+ ## 0.3.6
171
+
172
+ ### Data attributes for duplicate components
173
+
174
+ The internal logic that identifies duplicate components has been refined. This implies that some internal `data-*` attributes will no longer seep into the rendered DOM elements. If you're doing snapshot tests on the DOM generated by Ariakit components, you should see the `data-command` and `data-disclosure` attributes removed.
175
+
176
+ ### Multiple disclosure and anchor elements
177
+
178
+ The `disclosureElement` and `anchorElement` states on [Disclosure](https://ariakit.org/components/disclosure), [Popover](https://ariakit.org/components/popover), and [Menu](https://ariakit.org/components/menu), along with related components, are now set only upon interaction.
179
+
180
+ This change enables us to support multiple disclosure/anchor elements for the same `contentElement` (typically the popup element) when triggered by hover or focus.
181
+
182
+ ### Expanding Menubar with focus
183
+
184
+ Adjacent [`Menu`](https://ariakit.org/reference/menu) popups will now open when the focus moves through [`MenuItem`](https://ariakit.org/reference/menu-item) elements in a [Menubar](https://ariakit.org/components/menubar). Before, they would only open when another [`Menu`](https://ariakit.org/reference/menu) was already visible.
185
+
186
+ ### Maintaining Popover tab order
187
+
188
+ [`Popover`](https://ariakit.org/reference/popover) and related components now automatically set the new [`preserveTabOrderAnchor`](https://ariakit.org/reference/portal#preservetaborderanchor) prop as the disclosure element.
189
+
190
+ This ensures that, when the [`portal`](https://ariakit.org/reference/popover#portal) prop is enabled, the tab order will be preserved from the disclosure to the content element even when the [`Popover`](https://ariakit.org/reference/popover) component is rendered in a different location in the React tree.
191
+
192
+ ### New Menubar components
193
+
194
+ This version introduces a new [Menubar](https://ariakit.org/components/menubar) module that can be used without the [`MenubarProvider`](https://ariakit.org/reference/menubar-provider) wrapper.
195
+
196
+ ### Other updates
197
+
198
+ - Fixed [Hovercard](https://ariakit.org/components/hovercard) when used with multiple [`HovercardAnchor`](https://ariakit.org/reference/hovercard-anchor) elements.
199
+ - Added new [`preserveTabOrderAnchor`](https://ariakit.org/reference/portal#preservetaborderanchor) prop to [`Portal`](https://ariakit.org/reference/portal) and related components.
200
+ - Added new [`tabbable`](https://ariakit.org/reference/composite-item#tabbable) prop to [`CompositeItem`](https://ariakit.org/reference/composite-item) and related components.
201
+ - Added new [`blurOnHoverEnd`](https://ariakit.org/reference/composite-hover#bluronhoverend) prop to [`CompositeHover`](https://ariakit.org/reference/composite-hover) and related components.
202
+ - Updated dependencies: `@ariakit/react-core@0.3.6`
203
+
204
+ ---
205
+
1
206
  # @ariakit/ariakit
2
207
 
3
208
  ## 0.3.5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,57 @@
1
1
  # @ariakit/react
2
2
 
3
+ ## 0.4.29
4
+
5
+ ### Fixed `Combobox` dropping characters when the popover resizes while typing
6
+
7
+ The [`Combobox`](https://ariakit.com/reference/combobox) component with [`autoSelect`](https://ariakit.com/reference/combobox#autoselect) enabled no longer loses typed characters when the popover is resized as the user types.
8
+
9
+ This could happen with a virtualized list on mobile devices, where the keyboard's autocomplete bar repeatedly changes the available viewport height. Each resize re-rendered the list and re-applied the auto-selection, briefly moving focus away from the input and dropping keystrokes.
10
+
11
+ ### Composite items keep their enclosing store
12
+
13
+ Fixed [`CompositeItem`](https://ariakit.com/reference/composite-item) to register on the enclosing [`Composite`](https://ariakit.com/reference/composite) store when rendered as the same element as a component that sets its own composite context, such as a [`MenuButton`](https://ariakit.com/reference/menu-button) inside a [`MenuProvider`](https://ariakit.com/reference/menu-provider). This keeps the item reachable with the arrow keys in one- and two-dimensional composite widgets.
14
+
15
+ The [`CompositeItem`](https://ariakit.com/reference/composite-item) can now omit the explicit `store` prop and still register on the enclosing composite:
16
+
17
+ ```tsx {5-7}
18
+ const composite = Ariakit.useCompositeStore();
19
+
20
+ <Ariakit.Composite store={composite}>
21
+ <Ariakit.MenuProvider>
22
+ <Ariakit.CompositeItem render={<Ariakit.MenuButton />}>
23
+ Menu
24
+ </Ariakit.CompositeItem>
25
+ <Ariakit.Menu>
26
+ <Ariakit.MenuItem>Edit</Ariakit.MenuItem>
27
+ </Ariakit.Menu>
28
+ </Ariakit.MenuProvider>
29
+ </Ariakit.Composite>;
30
+ ```
31
+
32
+ ### Components no longer throw on events with a non-element target
33
+
34
+ Several components attach global event listeners that read `event.target`/`event.relatedTarget` and call methods like `contains()` and `hasAttribute()` on them. When third-party code dispatched an event whose target was a non-element `EventTarget` (such as `window` or an `XMLHttpRequest`), those calls threw a `TypeError`.
35
+
36
+ This affected [`Dialog`](https://ariakit.com/reference/dialog) (its interact-outside and Escape-to-close listeners), [`HovercardDisclosure`](https://ariakit.com/reference/hovercard-disclosure) (its focusout listener), and the shared `isFocusEventOutside` and `isPortalEvent` helpers used by [`Focusable`](https://ariakit.com/reference/focusable), [`Combobox`](https://ariakit.com/reference/combobox), [`Composite`](https://ariakit.com/reference/composite), and [`Portal`](https://ariakit.com/reference/portal).
37
+
38
+ ### Other updates
39
+
40
+ - Improved performance of components that subscribe to internal store state by upgrading the underlying [`@ariakit/store`](https://www.npmjs.com/package/@ariakit/store) package.
41
+ - Fixed [`Button`](https://ariakit.com/reference/button) to preserve React form pending state when submitted with the keyboard.
42
+ - Fixed [`Dialog`](https://ariakit.com/reference/dialog) to preserve closing animations when using [`unmountOnHide`](https://ariakit.com/reference/dialog#unmountonhide) with the controlled [`open`](https://ariakit.com/reference/dialog#open) and [`onClose`](https://ariakit.com/reference/dialog#onclose) props and no explicit store.
43
+ - Documented that [`removeValue`](https://ariakit.com/reference/use-form-store#removevalue) preserves array length by replacing removed items with `null`.
44
+ - Fixed runtime `process.env.NODE_ENV` checks in published package output, including test-only behavior and development warnings.
45
+ - Fixed rendering many [`Menu`](https://ariakit.com/reference/menu) components on the same page potentially causing a "Maximum update depth exceeded" error. [`MenuItem`](https://ariakit.com/reference/menu-item) elements now register only while the menu is visible, instead of registering on mount even while it's hidden.
46
+ - Fixed [`Tab`](https://ariakit.com/reference/tab) to move focus to the selected tab after a controlled [`selectedId`](https://ariakit.com/reference/tab-provider#selectedid) update while a tab has DOM focus.
47
+ - Fixed [`TooltipProvider`](https://ariakit.com/reference/tooltip-provider) to avoid a re-entrant loop when multiple tooltips are forced open at the same time.
48
+ - Updated dependencies: `@ariakit/react-components@0.1.2`
49
+
50
+ ## 0.4.28
51
+
52
+ - Release artifacts now include npm trusted publishing provenance.
53
+ - Updated dependencies: `@ariakit/react-components@0.1.1`
54
+
3
55
  ## 0.4.27
4
56
 
5
57
  - Fixed [`Menu`](https://ariakit.com/reference/menu) to respect the [`autoFocusOnShow`](https://ariakit.com/reference/menu#autofocusonshow) prop when set to `false` or when a callback returns `false`, while still allowing arrow keys to move focus into an already-open menu.
@@ -721,207 +773,6 @@ You can learn more about these new features in the [Composition guide](https://a
721
773
  - Added new [`disclosure`](https://ariakit.org/reference/use-disclosure-store#disclosure-1) property to disclosure stores.
722
774
  - Updated dependencies: `@ariakit/react-core@0.4.0`
723
775
 
724
- ## 0.3.14
725
-
726
- - Fixed a regression introduced in `v0.3.13` where dialogs wouldn't close when clicking outside on iOS.
727
- - Updated dependencies: `@ariakit/react-core@0.3.14`
728
-
729
- ## 0.3.13
730
-
731
- ### Improved performance of large collections
732
-
733
- Components like [`MenuItem`](https://ariakit.org/reference/menu-item), [`ComboboxItem`](https://ariakit.org/reference/combobox-item), and [`SelectItem`](https://ariakit.org/reference/select-item) should now offer improved performance when rendering large collections.
734
-
735
- ### New `FormControl` component
736
-
737
- This version introduces a new [`FormControl`](https://ariakit.org/reference/form-control) component. In future versions, this will replace the [`FormField`](https://ariakit.org/reference/form-field) component.
738
-
739
- ### Other updates
740
-
741
- - Adjusted the focus behavior in Safari to occur prior to the `pointerup` event instead of `mouseup`.
742
- - Improved JSDocs.
743
- - Updated dependencies: `@ariakit/react-core@0.3.13`
744
-
745
- ## 0.3.12
746
-
747
- - The auto-select feature on [Combobox](https://ariakit.org/components/combobox) now resets with each keystroke.
748
- - Fixed [`Combobox`](https://ariakit.org/reference/combobox) with the [`autoSelect`](https://ariakit.org/reference/combobox#autoselect) prop calling `onFocus` with every input change.
749
- - Fixed [`Hovercard`](https://ariakit.org/reference/hovercard) flickering when used with shadow DOM.
750
- - Fixed [`Select`](https://ariakit.org/reference/select) with [`Combobox`](https://ariakit.org/reference/combobox) scroll jumping when opening using keyboard navigation.
751
- - Fixed [`CompositeItem`](https://ariakit.org/reference/composite-item) triggering blur on focus.
752
- - Fixed [`ComboboxItem`](https://ariakit.org/reference/combobox-item) not triggering the `onClick` event when the item is partially visible.
753
- - Improved JSDocs.
754
- - Updated dependencies: `@ariakit/react-core@0.3.12`
755
-
756
- ## 0.3.11
757
-
758
- ### Modal Combobox
759
-
760
- The [Combobox](https://ariakit.org/components/combobox) components now support the [`modal`](https://ariakit.org/reference/combobox-popover#modal) prop on [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover).
761
-
762
- When a modal combobox is expanded, users can interact with and tab through all the combobox controls, including [`Combobox`](https://ariakit.org/reference/combobox), [`ComboboxDisclosure`](https://ariakit.org/reference/combobox-disclosure), and [`ComboboxCancel`](https://ariakit.org/reference/combobox-cancel), even if they're rendered outside the popover. The rest of the page will be inert.
763
-
764
- ### Controlling the auto-select functionality of Combobox
765
-
766
- The [`Combobox`](https://ariakit.org/reference/combobox) component now includes a new [`getAutoSelectId`](https://ariakit.org/reference/combobox#getautoselectid) prop. This allows you to specify the [`ComboboxItem`](https://ariakit.org/reference/combobox-item) that should be auto-selected if the [`autoSelect`](https://ariakit.org/reference/combobox#autoselect) prop is `true`.
767
-
768
- By default, the first _enabled_ item is auto-selected. Now you can customize this behavior by returning the id of another item from [`getAutoSelectId`](https://ariakit.org/reference/combobox#getautoselectid):
769
-
770
- ```jsx
771
- <Combobox
772
- autoSelect
773
- getAutoSelectId={(items) => {
774
- // Auto select the first enabled item with a value
775
- const item = items.find((item) => {
776
- if (item.disabled) return false;
777
- if (!item.value) return false;
778
- return true;
779
- });
780
- return item?.id;
781
- }}
782
- />
783
- ```
784
-
785
- ### Styling Combobox without an active descendant
786
-
787
- The [`Combobox`](https://ariakit.org/reference/combobox) component now includes a [`data-active-item`](https://ariakit.org/guide/styling#data-active-item) attribute when it's the only active item in the composite widget. In other words, when no [`ComboboxItem`](https://ariakit.org/reference/combobox-item) is active and the focus is solely on the combobox input.
788
-
789
- You can use this as a CSS selector to style the combobox differently, providing additional affordance to users who pressed <kbd>↑</kbd> on the first item or <kbd>↓</kbd> on the last item. This action would place both virtual and actual DOM focus on the combobox input.
790
-
791
- ```css
792
- .combobox[data-active-item] {
793
- outline-width: 2px;
794
- }
795
- ```
796
-
797
- ### Other updates
798
-
799
- - Fixed [`useTabStore`](https://ariakit.org/reference/use-tab-store) return value not updating its own reference.
800
- - Fixed keyboard navigation on [Combobox](https://ariakit.org/components/combobox) when the content element is a grid.
801
- - Fixed [`ComboboxDisclosure`](https://ariakit.org/reference/combobox-disclosure) to update its `aria-expanded` attribute when the combobox expands.
802
- - Fixed `Maximum update depth exceeded` warning when rendering multiple collection items on the page.
803
- - Improved JSDocs.
804
- - Updated dependencies: `@ariakit/react-core@0.3.11`
805
-
806
- ## 0.3.10
807
-
808
- ### Overwriting `aria-selected` value on `ComboboxItem`
809
-
810
- It's now possible to pass a custom `aria-selected` value to the [`ComboboxItem`](https://ariakit.org/reference/combobox-item) component, overwriting the internal behavior.
811
-
812
- ### Limiting `slide` on popovers
813
-
814
- When components like [Popover](https://ariakit.org/components/popover) and [Menu](https://ariakit.org/components/menu) with the [`slide`](https://ariakit.org/reference/popover#slide) prop are positioned to the right or left of the anchor element, they will now cease to slide across the screen, disengaged from the anchor element, upon reaching the edge of said element.
815
-
816
- ### Other updates
817
-
818
- - Fixed [`blurOnHoverEnd`](https://ariakit.org/reference/menu-item#bluronhoverend) set to `false` not keeping submenus open.
819
- - Fixed scroll jump on Safari when selecting a [`CompositeItem`](https://ariakit.org/reference/composite-item).
820
- - Fixed [`preserveTabOrderAnchor`](https://ariakit.org/reference/menu#preservetaborderanchor) on nested menus.
821
- - Fixed focus behavior when using the [`preserveTabOrder`](https://ariakit.org/reference/portal#preservetaborder) prop.
822
- - Updated dependencies: `@ariakit/react-core@0.3.10`
823
-
824
- ## 0.3.9
825
-
826
- ### Automatic role on ComboboxGroup
827
-
828
- The [`ComboboxGroup`](https://ariakit.org/reference/combobox-group) component now automatically assigns the `role` attribute as `rowgroup` if it's nestled within a [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover) or [`ComboboxList`](https://ariakit.org/reference/combobox-list) wrapper that has the `role` attribute set to `grid`.
829
-
830
- ### Custom submenu auto focus
831
-
832
- When opening nested [Menu](https://ariakit.org/components/menu) components with <kbd>Enter</kbd>, <kbd>Space</kbd>, or arrow keys, the first tabbable element will now receive focus, even if it's not a [`MenuItem`](https://ariakit.org/reference/menu-item) element. This should enable custom popups that behave like submenus, but use different semantics.
833
-
834
- ### Hovercard display timeout
835
-
836
- The [Hovercard](https://ariakit.org/components/hovercard), [Menu](https://ariakit.org/components/menu), and [Tooltip](https://ariakit.org/components/tooltip) components now display synchronously when the [`timeout`](https://ariakit.org/reference/hovercard-provider#timeout) or [`showTimeout`](https://ariakit.org/reference/hovercard-provider#showtimeout) states are set to `0`. This should stop submenus from vanishing for a few frames prior to displaying a new menu when hovering over menu items in sequence.
837
-
838
- ### Other updates
839
-
840
- - Fixed [`CollectionItem`](https://ariakit.org/reference/collection-item) elements getting out of order when composing stores.
841
- - Fixed [`MenuButton`](https://ariakit.org/reference/menu-button) not assigning the correct `role` attribute when used within a [`ComboboxList`](https://ariakit.org/reference/combobox-list) element.
842
- - Fixed [`MenuItem`](https://ariakit.org/reference/menu-item) with an explicit [`focusOnHover`](https://ariakit.org/reference/menu-item#focusonhover) prop not moving focus properly.
843
- - Fixed [`blurOnHoverEnd`](https://ariakit.org/reference/menu-item#bluronhoverend) not working on submenu triggers.
844
- - Fixed [Dialog](https://ariakit.org/components/dialog) not respecting the controlled [`open`](https://ariakit.org/reference/use-dialog-store#open) state.
845
- - Fixed unmounted [`SelectPopover`](https://ariakit.org/reference/select-popover) not re-opening when its [`open`](https://ariakit.org/reference/select-provider#open) state is initially set to `true`.
846
- - Fixed TypeScript build errors.
847
- - Fixed focus order when using [Popover](https://ariakit.org/components/popover) with the [`portal`](https://ariakit.org/reference/popover#portal) prop with VoiceOver.
848
- - Updated dependencies: `@ariakit/react-core@0.3.9`
849
-
850
- ## 0.3.8
851
-
852
- ### Multi-selectable Combobox
853
-
854
- We've added support for the [Combobox](https://ariakit.org/components/combobox) with multiple selection capabilities using a new [`selectedValue`](https://ariakit.org/reference/combobox-provider#selectedvalue) prop, along with [`defaultSelectedValue`](https://ariakit.org/reference/combobox-provider#defaultselectedvalue) and [`setSelectedValue`](https://ariakit.org/reference/combobox-provider#setselectedvalue).
855
-
856
- This works similarly to the [`value`](https://ariakit.org/reference/select-provider#value) prop on [Select](https://ariakit.org/components/select) components. If it receives an array, the combobox will allow multiple selections. By default, it's a string that represents the selected value in a single-select combobox.
857
-
858
- Check out the [Multi-selectable Combobox](https://ariakit.org/examples/combobox-multiple) example to see it in action.
859
-
860
- ### New Combobox components
861
-
862
- This version introduces new [Combobox](https://ariakit.org/components/combobox) components:
863
-
864
- - [`ComboboxLabel`](https://ariakit.org/reference/combobox-label): This renders a `label` element for a [`Combobox`](https://ariakit.org/reference/combobox), with the `htmlFor` prop set automatically.
865
- - [`ComboboxItemCheck`](https://ariakit.org/reference/combobox-item-check): This displays a checkmark for a [`ComboboxItem`](https://ariakit.org/reference/combobox-item) when the item is selected.
866
-
867
- ### Other updates
868
-
869
- - Added [`resetValueOnSelect`](https://ariakit.org/reference/combobox-provider#resetvalueonselect) state to [Combobox](https://ariakit.org/components/combobox) components.
870
- - Added [`selectValueOnClick`](https://ariakit.org/reference/combobox-item#selectvalueonclick) prop to [`ComboboxItem`](https://ariakit.org/reference/combobox-item).
871
- - Fixed [`SelectItem`](https://ariakit.org/reference/select-item) rendering an `aria-selected` attribute even when the [`value`](https://ariakit.org/reference/select-item#value) prop is omitted.
872
- - Updated dependencies: `@ariakit/react-core@0.3.8`
873
-
874
- ## 0.3.7
875
-
876
- ### Expanding Menubar
877
-
878
- The [Menubar](https://ariakit.org/components/menubar) component will now only expand if there's another menu already expanded in the same menubar.
879
-
880
- ### Internal data attribute changes
881
-
882
- Just like the change in v0.3.6 that removed the `data-command` and `data-disclosure` attributes from elements, this update stops the `data-composite-hover` attribute from infiltrating composite item elements in the DOM. We're mentioning this in the changelog as some users might have snapshot tests that require updating.
883
-
884
- ### Other updates
885
-
886
- - Fixed `setSelectionRange` error when used with [unsupported](https://html.spec.whatwg.org/multipage/input.html#concept-input-apply) input types.
887
- - Fixed [`MenuButton`](https://ariakit.org/reference/menu-button) with [`showOnHover`](https://ariakit.org/reference/menu-button#showonhover) not updating the `activeId` state when hovered.
888
- - Updated [`onFocusVisible`](https://ariakit.org/reference/focusable#onfocusvisible) element type on [`Focusable`](https://ariakit.org/reference/focusable) from `Element` to `HTMLElement`.
889
- - Updated dependencies: `@ariakit/react-core@0.3.7`
890
-
891
- ## 0.3.6
892
-
893
- ### Data attributes for duplicate components
894
-
895
- The internal logic that identifies duplicate components has been refined. This implies that some internal `data-*` attributes will no longer seep into the rendered DOM elements. If you're doing snapshot tests on the DOM generated by Ariakit components, you should see the `data-command` and `data-disclosure` attributes removed.
896
-
897
- ### Multiple disclosure and anchor elements
898
-
899
- The `disclosureElement` and `anchorElement` states on [Disclosure](https://ariakit.org/components/disclosure), [Popover](https://ariakit.org/components/popover), and [Menu](https://ariakit.org/components/menu), along with related components, are now set only upon interaction.
900
-
901
- This change enables us to support multiple disclosure/anchor elements for the same `contentElement` (typically the popup element) when triggered by hover or focus.
902
-
903
- ### Expanding Menubar with focus
904
-
905
- Adjacent [`Menu`](https://ariakit.org/reference/menu) popups will now open when the focus moves through [`MenuItem`](https://ariakit.org/reference/menu-item) elements in a [Menubar](https://ariakit.org/components/menubar). Before, they would only open when another [`Menu`](https://ariakit.org/reference/menu) was already visible.
906
-
907
- ### Maintaining Popover tab order
908
-
909
- [`Popover`](https://ariakit.org/reference/popover) and related components now automatically set the new [`preserveTabOrderAnchor`](https://ariakit.org/reference/portal#preservetaborderanchor) prop as the disclosure element.
910
-
911
- This ensures that, when the [`portal`](https://ariakit.org/reference/popover#portal) prop is enabled, the tab order will be preserved from the disclosure to the content element even when the [`Popover`](https://ariakit.org/reference/popover) component is rendered in a different location in the React tree.
912
-
913
- ### New Menubar components
914
-
915
- This version introduces a new [Menubar](https://ariakit.org/components/menubar) module that can be used without the [`MenubarProvider`](https://ariakit.org/reference/menubar-provider) wrapper.
916
-
917
- ### Other updates
918
-
919
- - Fixed [Hovercard](https://ariakit.org/components/hovercard) when used with multiple [`HovercardAnchor`](https://ariakit.org/reference/hovercard-anchor) elements.
920
- - Added new [`preserveTabOrderAnchor`](https://ariakit.org/reference/portal#preservetaborderanchor) prop to [`Portal`](https://ariakit.org/reference/portal) and related components.
921
- - Added new [`tabbable`](https://ariakit.org/reference/composite-item#tabbable) prop to [`CompositeItem`](https://ariakit.org/reference/composite-item) and related components.
922
- - Added new [`blurOnHoverEnd`](https://ariakit.org/reference/composite-hover#bluronhoverend) prop to [`CompositeHover`](https://ariakit.org/reference/composite-hover) and related components.
923
- - Updated dependencies: `@ariakit/react-core@0.3.6`
924
-
925
776
  ---
926
777
 
927
- [Previous versions](https://github.com/ariakit/ariakit/blob/main/packages/ariakit-react/CHANGELOG-035.md)
778
+ [Previous versions](https://github.com/ariakit/ariakit/blob/main/packages/ariakit-react/CHANGELOG-0314.md)
@@ -1,20 +1,20 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _UV7CXZEMcjs = require('./UV7CXZEM.cjs');
3
+ var _RZJLQJQMcjs = require('./RZJLQJQM.cjs');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _QAUJZR6Ycjs = require('./QAUJZR6Y.cjs');
8
+ var _JBOLBTVUcjs = require('./JBOLBTVU.cjs');
9
9
 
10
10
  // ../ariakit-react-components/dist/popover/popover-description.js
11
11
  var TagName = "p";
12
- var usePopoverDescription = _QAUJZR6Ycjs.createHook.call(void 0, function usePopoverDescription2(props) {
13
- props = _UV7CXZEMcjs.useDialogDescription.call(void 0, props);
12
+ var usePopoverDescription = _JBOLBTVUcjs.createHook.call(void 0, function usePopoverDescription2(props) {
13
+ props = _RZJLQJQMcjs.useDialogDescription.call(void 0, props);
14
14
  return props;
15
15
  });
16
- var PopoverDescription = _QAUJZR6Ycjs.forwardRef.call(void 0, function PopoverDescription2(props) {
17
- return _QAUJZR6Ycjs.createElement.call(void 0, TagName, usePopoverDescription(props));
16
+ var PopoverDescription = _JBOLBTVUcjs.forwardRef.call(void 0, function PopoverDescription2(props) {
17
+ return _JBOLBTVUcjs.createElement.call(void 0, TagName, usePopoverDescription(props));
18
18
  });
19
19
 
20
20
 
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _XPQIHUQ7cjs = require('./XPQIHUQ7.cjs');
4
+ var _42GL4LKIcjs = require('./42GL4LKI.cjs');
5
5
 
6
6
 
7
7
 
8
8
 
9
- var _QAUJZR6Ycjs = require('./QAUJZR6Y.cjs');
9
+ var _JBOLBTVUcjs = require('./JBOLBTVU.cjs');
10
10
 
11
11
  // ../ariakit-react-components/dist/composite/composite-context.js
12
12
  var _react = require('react');
13
- var ctx = _QAUJZR6Ycjs.createStoreContext.call(void 0, [_XPQIHUQ7cjs.CollectionContextProvider], [_XPQIHUQ7cjs.CollectionScopedContextProvider]);
13
+ var ctx = _JBOLBTVUcjs.createStoreContext.call(void 0, [_42GL4LKIcjs.CollectionContextProvider], [_42GL4LKIcjs.CollectionScopedContextProvider]);
14
14
  var useCompositeContext = ctx.useContext;
15
15
  var useCompositeScopedContext = ctx.useScopedContext;
16
16
  var useCompositeProviderContext = ctx.useProviderContext;
@@ -52,9 +52,9 @@ function groupItemsByRows(items) {
52
52
  return rows;
53
53
  }
54
54
  function selectTextField(element, collapseToEnd = false) {
55
- if (_QAUJZR6Ycjs.isTextField.call(void 0, element)) element.setSelectionRange(collapseToEnd ? element.value.length : 0, element.value.length);
55
+ if (_JBOLBTVUcjs.isTextField.call(void 0, element)) element.setSelectionRange(collapseToEnd ? element.value.length : 0, element.value.length);
56
56
  else if (element.isContentEditable) {
57
- const selection = _QAUJZR6Ycjs.getDocument.call(void 0, element).getSelection();
57
+ const selection = _JBOLBTVUcjs.getDocument.call(void 0, element).getSelection();
58
58
  selection == null ? void 0 : selection.selectAllChildren(element);
59
59
  if (collapseToEnd) selection == null ? void 0 : selection.collapseToEnd();
60
60
  }
@@ -93,4 +93,5 @@ function isItem(store, element, exclude) {
93
93
 
94
94
 
95
95
 
96
- exports.useCompositeContext = useCompositeContext; exports.useCompositeProviderContext = useCompositeProviderContext; exports.CompositeContextProvider = CompositeContextProvider; exports.CompositeScopedContextProvider = CompositeScopedContextProvider; exports.CompositeItemContext = CompositeItemContext; exports.CompositeRowContext = CompositeRowContext; exports.flipItems = flipItems; exports.findFirstEnabledItem = findFirstEnabledItem; exports.getEnabledItem = getEnabledItem; exports.groupItemsByRows = groupItemsByRows; exports.selectTextField = selectTextField; exports.focusSilently = focusSilently; exports.silentlyFocused = silentlyFocused; exports.isItem = isItem;
96
+
97
+ exports.useCompositeContext = useCompositeContext; exports.useCompositeScopedContext = useCompositeScopedContext; exports.useCompositeProviderContext = useCompositeProviderContext; exports.CompositeContextProvider = CompositeContextProvider; exports.CompositeScopedContextProvider = CompositeScopedContextProvider; exports.CompositeItemContext = CompositeItemContext; exports.CompositeRowContext = CompositeRowContext; exports.flipItems = flipItems; exports.findFirstEnabledItem = findFirstEnabledItem; exports.getEnabledItem = getEnabledItem; exports.groupItemsByRows = groupItemsByRows; exports.selectTextField = selectTextField; exports.focusSilently = focusSilently; exports.silentlyFocused = silentlyFocused; exports.isItem = isItem;
@@ -1,15 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _RGH2H3WLcjs = require('./RGH2H3WL.cjs');
3
+ var _OP2QHIHDcjs = require('./OP2QHIHD.cjs');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _QAUJZR6Ycjs = require('./QAUJZR6Y.cjs');
8
+ var _JBOLBTVUcjs = require('./JBOLBTVU.cjs');
9
9
 
10
10
  // ../ariakit-react-components/dist/focus-trap/focus-trap.js
11
11
  var TagName = "span";
12
- var useFocusTrap = _QAUJZR6Ycjs.createHook.call(void 0, function useFocusTrap2(props) {
12
+ var useFocusTrap = _JBOLBTVUcjs.createHook.call(void 0, function useFocusTrap2(props) {
13
13
  props = {
14
14
  "data-focus-trap": "",
15
15
  tabIndex: 0,
@@ -22,11 +22,11 @@ var useFocusTrap = _QAUJZR6Ycjs.createHook.call(void 0, function useFocusTrap2(p
22
22
  ...props.style
23
23
  }
24
24
  };
25
- props = _RGH2H3WLcjs.useVisuallyHidden.call(void 0, props);
25
+ props = _OP2QHIHDcjs.useVisuallyHidden.call(void 0, props);
26
26
  return props;
27
27
  });
28
- var FocusTrap = _QAUJZR6Ycjs.forwardRef.call(void 0, function FocusTrap2(props) {
29
- return _QAUJZR6Ycjs.createElement.call(void 0, TagName, useFocusTrap(props));
28
+ var FocusTrap = _JBOLBTVUcjs.forwardRef.call(void 0, function FocusTrap2(props) {
29
+ return _JBOLBTVUcjs.createElement.call(void 0, TagName, useFocusTrap(props));
30
30
  });
31
31
 
32
32