@ariakit/react-core 0.4.3 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +58 -0
- package/cjs/__chunks/{7DQ2LBH2.cjs → 3HMQOCLF.cjs} +23 -5
- package/cjs/__chunks/{AJF5DT5A.cjs → AY5J25V7.cjs} +2 -2
- package/cjs/__chunks/{HFNM6QV4.cjs → DAOFDKV2.cjs} +1 -1
- package/cjs/__chunks/{GYHP7IYG.cjs → DFXPO2ED.cjs} +2 -2
- package/cjs/__chunks/{3C4RFBCG.cjs → EYZZO5IT.cjs} +1 -1
- package/cjs/__chunks/{3MKOUH5M.cjs → GZ2NNSLV.cjs} +4 -4
- package/cjs/__chunks/ISJGSS4S.cjs +16 -0
- package/cjs/__chunks/{A356CGND.cjs → JDCTLYQ4.cjs} +1 -1
- package/cjs/__chunks/{T5BWR4CB.cjs → KDTFHBKU.cjs} +2 -2
- package/cjs/__chunks/{NZSB7HSZ.cjs → LY4LCJM6.cjs} +2 -2
- package/cjs/__chunks/{DCTXNU2X.cjs → N43E53E6.cjs} +3 -3
- package/cjs/__chunks/{IHFGURUM.cjs → NRPEUNJB.cjs} +2 -2
- package/cjs/__chunks/PVLZGFP6.cjs +34 -0
- package/cjs/__chunks/{CWS5RZSU.cjs → QJDA4LG6.cjs} +28 -17
- package/cjs/__chunks/{NDVZ37O3.cjs → RG6U7KAS.cjs} +22 -4
- package/cjs/__chunks/YWAHOWYE.cjs +25 -0
- package/cjs/__chunks/{3XXW4Y4D.cjs → Z2VL7JHX.cjs} +2 -2
- package/cjs/checkbox/checkbox-check.cjs +2 -2
- package/cjs/collection/collection-renderer.d.cts +0 -2
- package/cjs/collection/collection-renderer.d.ts +0 -2
- package/cjs/combobox/combobox-cancel.cjs +4 -4
- package/cjs/combobox/combobox-disclosure.cjs +4 -4
- package/cjs/combobox/combobox-item-check.cjs +2 -2
- package/cjs/combobox/combobox-item.cjs +19 -9
- package/cjs/combobox/combobox-item.d.cts +22 -12
- package/cjs/combobox/combobox-item.d.ts +22 -12
- package/cjs/combobox/combobox-popover.cjs +41 -16
- package/cjs/combobox/combobox-provider.cjs +3 -2
- package/cjs/combobox/combobox-store.cjs +6 -2
- package/cjs/combobox/combobox-store.d.cts +12 -4
- package/cjs/combobox/combobox-store.d.ts +12 -4
- package/cjs/combobox/combobox-value.cjs +32 -0
- package/cjs/combobox/combobox-value.d.cts +41 -0
- package/cjs/combobox/combobox-value.d.ts +41 -0
- package/cjs/combobox/combobox.cjs +79 -32
- package/cjs/combobox/combobox.d.cts +20 -0
- package/cjs/combobox/combobox.d.ts +20 -0
- package/cjs/composite/composite-input.cjs +91 -6
- package/cjs/composite/composite-input.d.cts +2 -0
- package/cjs/composite/composite-input.d.ts +2 -0
- package/cjs/composite/composite-item.cjs +3 -3
- package/cjs/composite/composite-overflow-disclosure.cjs +3 -3
- package/cjs/composite/composite-overflow.cjs +12 -12
- package/cjs/composite/composite-renderer.d.cts +0 -2
- package/cjs/composite/composite-renderer.d.ts +0 -2
- package/cjs/dialog/dialog-backdrop.cjs +3 -3
- package/cjs/dialog/dialog-dismiss.cjs +2 -2
- package/cjs/dialog/dialog.cjs +11 -11
- package/cjs/dialog/dialog.d.cts +4 -0
- package/cjs/dialog/dialog.d.ts +4 -0
- package/cjs/dialog/utils/disable-tree.cjs +3 -3
- package/cjs/dialog/utils/use-prevent-body-scroll.cjs +3 -3
- package/cjs/form/form-checkbox.cjs +1 -1
- package/cjs/form/form-push.cjs +1 -1
- package/cjs/form/form-radio.cjs +4 -4
- package/cjs/hovercard/hovercard-disclosure.cjs +1 -1
- package/cjs/hovercard/hovercard-dismiss.cjs +4 -4
- package/cjs/hovercard/hovercard.cjs +13 -13
- package/cjs/menu/menu-button-arrow.cjs +2 -2
- package/cjs/menu/menu-dismiss.cjs +4 -4
- package/cjs/menu/menu-item-check.cjs +2 -2
- package/cjs/menu/menu-item-checkbox.cjs +4 -4
- package/cjs/menu/menu-item-radio.cjs +7 -7
- package/cjs/menu/menu-item.cjs +4 -4
- package/cjs/menu/menu.cjs +14 -14
- package/cjs/popover/popover-disclosure-arrow.cjs +2 -2
- package/cjs/popover/popover-dismiss.cjs +3 -3
- package/cjs/popover/popover.cjs +12 -12
- package/cjs/radio/radio.cjs +4 -4
- package/cjs/select/select-arrow.cjs +3 -3
- package/cjs/select/select-item-check.cjs +2 -2
- package/cjs/select/select-item.cjs +4 -4
- package/cjs/select/select-popover.cjs +13 -13
- package/cjs/select/select-value.d.cts +8 -7
- package/cjs/select/select-value.d.ts +8 -7
- package/cjs/select/select.cjs +4 -4
- package/cjs/tab/tab-panel.cjs +2 -2
- package/cjs/tab/tab.cjs +7 -7
- package/cjs/tag/tag-context.cjs +25 -0
- package/cjs/tag/tag-context.d.cts +21 -0
- package/cjs/tag/tag-context.d.ts +21 -0
- package/cjs/tag/tag-input.cjs +191 -0
- package/cjs/tag/tag-input.d.cts +122 -0
- package/cjs/tag/tag-input.d.ts +122 -0
- package/cjs/tag/tag-list-label.cjs +56 -0
- package/cjs/tag/tag-list-label.d.cts +55 -0
- package/cjs/tag/tag-list-label.d.ts +55 -0
- package/cjs/tag/tag-list.cjs +141 -0
- package/cjs/tag/tag-list.d.cts +58 -0
- package/cjs/tag/tag-list.d.ts +58 -0
- package/cjs/tag/tag-provider.cjs +26 -0
- package/cjs/tag/tag-provider.d.cts +29 -0
- package/cjs/tag/tag-provider.d.ts +29 -0
- package/cjs/tag/tag-remove.cjs +119 -0
- package/cjs/tag/tag-remove.d.cts +67 -0
- package/cjs/tag/tag-remove.d.ts +67 -0
- package/cjs/tag/tag-store.cjs +15 -0
- package/cjs/tag/tag-store.d.cts +49 -0
- package/cjs/tag/tag-store.d.ts +49 -0
- package/cjs/tag/tag-value.cjs +29 -0
- package/cjs/tag/tag-value.d.cts +41 -0
- package/cjs/tag/tag-value.d.ts +41 -0
- package/cjs/tag/tag-values.cjs +29 -0
- package/cjs/tag/tag-values.d.cts +52 -0
- package/cjs/tag/tag-values.d.ts +52 -0
- package/cjs/tag/tag.cjs +130 -0
- package/cjs/tag/tag.d.cts +74 -0
- package/cjs/tag/tag.d.ts +74 -0
- package/cjs/tag/utils.cjs +8 -0
- package/cjs/tag/utils.d.cts +1 -0
- package/cjs/tag/utils.d.ts +1 -0
- package/cjs/toolbar/toolbar-container.cjs +4 -4
- package/cjs/toolbar/toolbar-input.cjs +4 -8
- package/cjs/toolbar/toolbar-input.d.cts +3 -2
- package/cjs/toolbar/toolbar-input.d.ts +3 -2
- package/cjs/toolbar/toolbar-item.cjs +4 -4
- package/cjs/tooltip/tooltip.cjs +14 -14
- package/combobox/combobox-value/package.json +8 -0
- package/esm/__chunks/{LABIXQLW.js → 44PDY2W5.js} +1 -1
- package/esm/__chunks/{FYNSL2D5.js → 5H3YXAUC.js} +1 -1
- package/esm/__chunks/{6VDNHSLX.js → 65LF6MEO.js} +2 -2
- package/esm/__chunks/{X3V2DT2U.js → 6YVAEELE.js} +1 -1
- package/esm/__chunks/{JCOBPKEI.js → BY6P32UK.js} +1 -1
- package/esm/__chunks/{ZFEEEZVE.js → DLLQM6DZ.js} +22 -4
- package/esm/__chunks/{NN4HLGKS.js → F2RFUFO2.js} +1 -1
- package/esm/__chunks/{NQ4PTILT.js → FGHVVLPU.js} +29 -18
- package/esm/__chunks/{2VWKZYYT.js → H5N72W37.js} +1 -1
- package/esm/__chunks/L7IM35RU.js +16 -0
- package/esm/__chunks/{HW63KLP5.js → M354SEUF.js} +1 -1
- package/esm/__chunks/{RAKW656I.js → Q4PZFBSW.js} +1 -1
- package/esm/__chunks/QNNHZL3W.js +25 -0
- package/esm/__chunks/{C5HA76JU.js → QZJOXZKA.js} +1 -1
- package/esm/__chunks/{XK6CE2M5.js → UKDZLPKH.js} +1 -1
- package/esm/__chunks/{ONUY4D7O.js → VGORKDMQ.js} +26 -8
- package/esm/__chunks/WYDDZRWN.js +34 -0
- package/esm/checkbox/checkbox-check.js +1 -1
- package/esm/collection/collection-renderer.d.ts +0 -2
- package/esm/combobox/combobox-cancel.js +4 -4
- package/esm/combobox/combobox-disclosure.js +4 -4
- package/esm/combobox/combobox-item-check.js +1 -1
- package/esm/combobox/combobox-item.d.ts +22 -12
- package/esm/combobox/combobox-item.js +19 -9
- package/esm/combobox/combobox-popover.js +40 -15
- package/esm/combobox/combobox-provider.js +2 -1
- package/esm/combobox/combobox-store.d.ts +12 -4
- package/esm/combobox/combobox-store.js +5 -1
- package/esm/combobox/combobox-value.d.ts +41 -0
- package/esm/combobox/combobox-value.js +32 -0
- package/esm/combobox/combobox.d.ts +20 -0
- package/esm/combobox/combobox.js +80 -33
- package/esm/composite/composite-input.d.ts +2 -0
- package/esm/composite/composite-input.js +92 -7
- package/esm/composite/composite-item.js +2 -2
- package/esm/composite/composite-overflow-disclosure.js +2 -2
- package/esm/composite/composite-overflow.js +11 -11
- package/esm/composite/composite-renderer.d.ts +0 -2
- package/esm/dialog/dialog-backdrop.js +2 -2
- package/esm/dialog/dialog-dismiss.js +1 -1
- package/esm/dialog/dialog.d.ts +4 -0
- package/esm/dialog/dialog.js +10 -10
- package/esm/dialog/utils/disable-tree.js +2 -2
- package/esm/dialog/utils/use-prevent-body-scroll.js +2 -2
- package/esm/form/form-checkbox.js +1 -1
- package/esm/form/form-push.js +1 -1
- package/esm/form/form-radio.js +3 -3
- package/esm/hovercard/hovercard-disclosure.js +1 -1
- package/esm/hovercard/hovercard-dismiss.js +3 -3
- package/esm/hovercard/hovercard.js +12 -12
- package/esm/menu/menu-button-arrow.js +1 -1
- package/esm/menu/menu-dismiss.js +3 -3
- package/esm/menu/menu-item-check.js +1 -1
- package/esm/menu/menu-item-checkbox.js +3 -3
- package/esm/menu/menu-item-radio.js +5 -5
- package/esm/menu/menu-item.js +3 -3
- package/esm/menu/menu.js +12 -12
- package/esm/popover/popover-disclosure-arrow.js +1 -1
- package/esm/popover/popover-dismiss.js +2 -2
- package/esm/popover/popover.js +11 -11
- package/esm/radio/radio.js +3 -3
- package/esm/select/select-arrow.js +2 -2
- package/esm/select/select-item-check.js +1 -1
- package/esm/select/select-item.js +4 -4
- package/esm/select/select-popover.js +11 -11
- package/esm/select/select-value.d.ts +8 -7
- package/esm/select/select.js +3 -3
- package/esm/tab/tab-panel.js +3 -3
- package/esm/tab/tab.js +5 -5
- package/esm/tag/tag-context.d.ts +21 -0
- package/esm/tag/tag-context.js +25 -0
- package/esm/tag/tag-input.d.ts +122 -0
- package/esm/tag/tag-input.js +191 -0
- package/esm/tag/tag-list-label.d.ts +55 -0
- package/esm/tag/tag-list-label.js +56 -0
- package/esm/tag/tag-list.d.ts +58 -0
- package/esm/tag/tag-list.js +141 -0
- package/esm/tag/tag-provider.d.ts +29 -0
- package/esm/tag/tag-provider.js +26 -0
- package/esm/tag/tag-remove.d.ts +67 -0
- package/esm/tag/tag-remove.js +119 -0
- package/esm/tag/tag-store.d.ts +49 -0
- package/esm/tag/tag-store.js +15 -0
- package/esm/tag/tag-value.d.ts +41 -0
- package/esm/tag/tag-value.js +29 -0
- package/esm/tag/tag-values.d.ts +52 -0
- package/esm/tag/tag-values.js +29 -0
- package/esm/tag/tag.d.ts +74 -0
- package/esm/tag/tag.js +130 -0
- package/esm/tag/utils.d.ts +1 -0
- package/esm/tag/utils.js +8 -0
- package/esm/toolbar/toolbar-container.js +3 -3
- package/esm/toolbar/toolbar-input.d.ts +3 -2
- package/esm/toolbar/toolbar-input.js +3 -7
- package/esm/toolbar/toolbar-item.js +3 -3
- package/esm/tooltip/tooltip.js +12 -12
- package/package.json +86 -2
- package/tag/tag/package.json +8 -0
- package/tag/tag-context/package.json +8 -0
- package/tag/tag-input/package.json +8 -0
- package/tag/tag-list/package.json +8 -0
- package/tag/tag-list-label/package.json +8 -0
- package/tag/tag-provider/package.json +8 -0
- package/tag/tag-remove/package.json +8 -0
- package/tag/tag-store/package.json +8 -0
- package/tag/tag-value/package.json +8 -0
- package/tag/tag-values/package.json +8 -0
- package/tag/utils/package.json +8 -0
- package/cjs/__chunks/WGZQRLXV.cjs +0 -84
- package/esm/__chunks/RPGNBKKU.js +0 -84
- package/cjs/__chunks/{37BRXQN7.cjs → BX2QEIBH.cjs} +3 -3
- package/cjs/__chunks/{PVYTX5U5.cjs → SL55T4ZB.cjs} +2 -2
- package/cjs/__chunks/{TSEXNK3K.cjs → VR6GCLOV.cjs} +2 -2
- package/esm/__chunks/{PTPUIM7N.js → 3TEK3C5Q.js} +3 -3
- package/esm/__chunks/{U2L67A6K.js → BC72XE6E.js} +3 -3
- package/esm/__chunks/{GOXKZAQI.js → CMFBAHKI.js} +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,63 @@
|
|
|
1
1
|
# @ariakit/react-core
|
|
2
2
|
|
|
3
|
+
## 0.4.5
|
|
4
|
+
|
|
5
|
+
### Multi-selectable Combobox with inline autocomplete
|
|
6
|
+
|
|
7
|
+
When rendering a [Multi-selectable Combobox](https://ariakit.org/examples/combobox-multiple) with the [`autoComplete`](https://ariakit.org/reference/combobox#autocomplete) prop set to `"inline"` or `"both"`, the completion string will no longer be inserted into the input upon deselecting an item. This is because the completion string generally represents an addition action, whereas deselecting an item is a removal action.
|
|
8
|
+
|
|
9
|
+
### Other updates
|
|
10
|
+
|
|
11
|
+
- Added new experimental Tag components.
|
|
12
|
+
- Updated [`Combobox`](https://ariakit.org/reference/combobox) to no longer use `ReactDOM.flushSync` when updating the value.
|
|
13
|
+
- Added new [`resetValueOnSelect`](https://ariakit.org/reference/combobox-item#resetvalueonselect) prop to [`ComboboxItem`](https://ariakit.org/reference/combobox-item).
|
|
14
|
+
- Added new [`resetValue`](https://ariakit.org/reference/use-combobox-store#resetvalue) method to combobox store.
|
|
15
|
+
- Added experimental `ComboboxValue` component.
|
|
16
|
+
- Improved JSDocs.
|
|
17
|
+
- Updated dependencies: `@ariakit/core@0.4.5`
|
|
18
|
+
|
|
19
|
+
## 0.4.4
|
|
20
|
+
|
|
21
|
+
### Combobox `autoFocusOnHide` behavior
|
|
22
|
+
|
|
23
|
+
Previously, the [`autoFocusOnHide`](https://ariakit.org/reference/combobox-popover#autofocusonhide) feature on [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover) was turned off by default. Most of the time, this didn't have any practical impact because the combobox input element was already focused when the popover was hidden.
|
|
24
|
+
|
|
25
|
+
Now, this feature is enabled by default and should work consistently even when [`virtualFocus`](https://ariakit.org/reference/combobox-provider#virtualfocus) is set to `false`.
|
|
26
|
+
|
|
27
|
+
### Better SVG strokes
|
|
28
|
+
|
|
29
|
+
The `strokeWidth` property on SVG elements rendered by [`CheckboxCheck`](https://ariakit.org/reference/checkbox-check), [`ComboboxCancel`](https://ariakit.org/reference/combobox-cancel), [`ComboboxDisclosure`](https://ariakit.org/reference/combobox-disclosure), [`DialogDismiss`](https://ariakit.org/reference/dialog-dismiss), [`HovercardDisclosure`](https://ariakit.org/reference/hovercard-disclosure), [`PopoverDisclosureArrow`](https://ariakit.org/reference/popover-disclosure-arrow), and all components that use any of these now defaults to `1.5px` instead of `1.5pt`. This should make the strokes slightly thinner.
|
|
30
|
+
|
|
31
|
+
Remember, you can always override the SVG element rendered by these components by rendering custom `children`.
|
|
32
|
+
|
|
33
|
+
### Minimum value length to show combobox options
|
|
34
|
+
|
|
35
|
+
A new [`showMinLength`](https://ariakit.org/reference/combobox#showminlength) prop has been added to the [`Combobox`](https://ariakit.org/reference/combobox) component. This prop lets you set the minimum length of the value before the combobox options appear. The default value is `0`.
|
|
36
|
+
|
|
37
|
+
```jsx
|
|
38
|
+
<Combobox showMinLength={2} />
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Previously, achieving this behavior required combining three separate props: [`showOnChange`](https://ariakit.org/reference/combobox#showonchange), [`showOnClick`](https://ariakit.org/reference/combobox#showonclick), and [`showOnKeyPress`](https://ariakit.org/reference/combobox#showonkeypress). We've added this prop to simplify this common task.
|
|
42
|
+
|
|
43
|
+
These props continue to work as expected as they can be used to customize the behavior for each distinct event.
|
|
44
|
+
|
|
45
|
+
### Rendering composite items as input elements
|
|
46
|
+
|
|
47
|
+
We've added the ability to render [`CompositeItem`](https://ariakit.org/reference/composite-item) as an input element using the [`render`](https://ariakit.org/reference/composite-item#render) prop:
|
|
48
|
+
|
|
49
|
+
```jsx
|
|
50
|
+
<CompositeItem render={<input />} />
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Before, you could only do this with the experimental `CompositeInput` component. Now, this functionality is integrated directly into the [`CompositeItem`](https://ariakit.org/reference/composite-item) component.
|
|
54
|
+
|
|
55
|
+
### Other updates
|
|
56
|
+
|
|
57
|
+
- Fixed [`Dialog`](https://ariakit.org/reference/dialog) calling [`autoFocusOnHide`](https://ariakit.org/reference/dialog#autofocusonhide) twice.
|
|
58
|
+
- Improved JSDocs.
|
|
59
|
+
- Updated dependencies: `@ariakit/core@0.4.4`
|
|
60
|
+
|
|
3
61
|
## 0.4.3
|
|
4
62
|
|
|
5
63
|
- Fixed TypeScript types for `ref`.
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _HD5AHCRIcjs = require('./HD5AHCRI.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _U4NXCMZ3cjs = require('./U4NXCMZ3.cjs');
|
|
8
|
+
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
@@ -44,6 +45,9 @@ var _react = require('react');
|
|
|
44
45
|
|
|
45
46
|
|
|
46
47
|
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
47
51
|
var _dom = require('@ariakit/core/utils/dom');
|
|
48
52
|
var _events = require('@ariakit/core/utils/events');
|
|
49
53
|
|
|
@@ -53,9 +57,7 @@ var _misc = require('@ariakit/core/utils/misc');
|
|
|
53
57
|
var _jsxruntime = require('react/jsx-runtime');
|
|
54
58
|
var TagName = "button";
|
|
55
59
|
function isEditableElement(element) {
|
|
56
|
-
if (element
|
|
57
|
-
return true;
|
|
58
|
-
if (_dom.isTextField.call(void 0, element))
|
|
60
|
+
if (_dom.isTextbox.call(void 0, element))
|
|
59
61
|
return true;
|
|
60
62
|
return element.tagName === "INPUT" && !_dom.isButton.call(void 0, element);
|
|
61
63
|
}
|
|
@@ -217,6 +219,9 @@ var useCompositeItem = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
217
219
|
return;
|
|
218
220
|
const { virtualFocus: virtualFocus2, baseElement: baseElement2 } = store.getState();
|
|
219
221
|
store.setActiveId(id);
|
|
222
|
+
if (_dom.isTextbox.call(void 0, event.currentTarget)) {
|
|
223
|
+
_6ZZYUFPWcjs.selectTextField.call(void 0, event.currentTarget);
|
|
224
|
+
}
|
|
220
225
|
if (!virtualFocus2)
|
|
221
226
|
return;
|
|
222
227
|
if (!_events.isSelfTarget.call(void 0, event))
|
|
@@ -303,6 +308,19 @@ var useCompositeItem = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
303
308
|
};
|
|
304
309
|
const action = keyMap[event.key];
|
|
305
310
|
if (action) {
|
|
311
|
+
if (_dom.isTextbox.call(void 0, currentTarget)) {
|
|
312
|
+
const selection = _dom.getTextboxSelection.call(void 0, currentTarget);
|
|
313
|
+
const isLeft = isHorizontal && event.key === "ArrowLeft";
|
|
314
|
+
const isRight = isHorizontal && event.key === "ArrowRight";
|
|
315
|
+
const isUp = isVertical && event.key === "ArrowUp";
|
|
316
|
+
const isDown = isVertical && event.key === "ArrowDown";
|
|
317
|
+
if (isRight || isDown) {
|
|
318
|
+
const { length: valueLength } = _dom.getTextboxValue.call(void 0, currentTarget);
|
|
319
|
+
if (selection.end !== valueLength)
|
|
320
|
+
return;
|
|
321
|
+
} else if ((isLeft || isUp) && selection.start !== 0)
|
|
322
|
+
return;
|
|
323
|
+
}
|
|
306
324
|
const nextId = action();
|
|
307
325
|
if (preventScrollOnKeyDownProp(event) || nextId !== void 0) {
|
|
308
326
|
if (!moveOnKeyPressProp(event))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _3HMQOCLFcjs = require('./3HMQOCLF.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _MVDQWSSVcjs = require('./MVDQWSSV.cjs');
|
|
@@ -23,7 +23,7 @@ var useToolbarItem = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
23
23
|
var _b = _a, { store } = _b, props = _AV6KTKLEcjs.__objRest.call(void 0, _b, ["store"]);
|
|
24
24
|
const context = _MVDQWSSVcjs.useToolbarContext.call(void 0, );
|
|
25
25
|
store = store || context;
|
|
26
|
-
props =
|
|
26
|
+
props = _3HMQOCLFcjs.useCompositeItem.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, { store }, props));
|
|
27
27
|
return props;
|
|
28
28
|
}
|
|
29
29
|
);
|
|
@@ -10,7 +10,7 @@ var _MNMEDFSMcjs = require('./MNMEDFSM.cjs');
|
|
|
10
10
|
var _Q6QJEXBKcjs = require('./Q6QJEXBK.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _3HMQOCLFcjs = require('./3HMQOCLF.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -112,7 +112,7 @@ var useMenuItem = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
112
112
|
}, props), {
|
|
113
113
|
onClick
|
|
114
114
|
});
|
|
115
|
-
props =
|
|
115
|
+
props = _3HMQOCLFcjs.useCompositeItem.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {
|
|
116
116
|
store,
|
|
117
117
|
preventScrollOnKeyDown
|
|
118
118
|
}, props));
|
|
@@ -44,7 +44,7 @@ var usePopoverDisclosureArrow = _NGD3IQDBcjs.createHook.call(void 0, function us
|
|
|
44
44
|
stroke: "currentColor",
|
|
45
45
|
strokeLinecap: "round",
|
|
46
46
|
strokeLinejoin: "round",
|
|
47
|
-
strokeWidth:
|
|
47
|
+
strokeWidth: 1.5,
|
|
48
48
|
viewBox: "0 0 16 16",
|
|
49
49
|
height: "1em",
|
|
50
50
|
width: "1em",
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
var _KXQOQQ5Bcjs = require('./KXQOQQ5B.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _N43E53E6cjs = require('./N43E53E6.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _QJDA4LG6cjs = require('./QJDA4LG6.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -284,7 +284,7 @@ var useHovercard = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
284
284
|
const autoFocusOnShow = store.useState(
|
|
285
285
|
(state) => modal || state.autoFocusOnShow
|
|
286
286
|
);
|
|
287
|
-
props =
|
|
287
|
+
props = _N43E53E6cjs.usePopover.call(void 0, _AV6KTKLEcjs.__spreadProps.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {
|
|
288
288
|
store,
|
|
289
289
|
modal,
|
|
290
290
|
portal,
|
|
@@ -305,7 +305,7 @@ var useHovercard = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
305
305
|
return props;
|
|
306
306
|
}
|
|
307
307
|
);
|
|
308
|
-
var Hovercard =
|
|
308
|
+
var Hovercard = _QJDA4LG6cjs.createDialogComponent.call(void 0,
|
|
309
309
|
_NGD3IQDBcjs.forwardRef.call(void 0, function Hovercard2(props) {
|
|
310
310
|
const htmlProps = useHovercard(props);
|
|
311
311
|
return _NGD3IQDBcjs.createElement.call(void 0, TagName, htmlProps);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
+
|
|
3
|
+
// src/tag/utils.ts
|
|
4
|
+
var _react = require('react');
|
|
5
|
+
var _platform = require('@ariakit/core/utils/platform');
|
|
6
|
+
function useTouchDevice() {
|
|
7
|
+
const [touchDevice, setTouchDevice] = _react.useState.call(void 0, false);
|
|
8
|
+
_react.useEffect.call(void 0, () => {
|
|
9
|
+
setTouchDevice(_platform.isTouchDevice.call(void 0, ));
|
|
10
|
+
}, []);
|
|
11
|
+
return touchDevice;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
exports.useTouchDevice = useTouchDevice;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _Z2VL7JHXcjs = require('./Z2VL7JHX.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _XRPBWSUIcjs = require('./XRPBWSUI.cjs');
|
|
@@ -22,7 +22,7 @@ var useHovercardDismiss = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
22
22
|
var _b = _a, { store } = _b, props = _AV6KTKLEcjs.__objRest.call(void 0, _b, ["store"]);
|
|
23
23
|
const context = _XRPBWSUIcjs.useHovercardScopedContext.call(void 0, );
|
|
24
24
|
store = store || context;
|
|
25
|
-
props =
|
|
25
|
+
props = _Z2VL7JHXcjs.usePopoverDismiss.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, { store }, props));
|
|
26
26
|
return props;
|
|
27
27
|
}
|
|
28
28
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _EYZZO5ITcjs = require('./EYZZO5IT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _HZDOLHROcjs = require('./HZDOLHRO.cjs');
|
|
@@ -22,7 +22,7 @@ var useSelectArrow = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
22
22
|
var _b = _a, { store } = _b, props = _AV6KTKLEcjs.__objRest.call(void 0, _b, ["store"]);
|
|
23
23
|
const context = _HZDOLHROcjs.useSelectContext.call(void 0, );
|
|
24
24
|
store = store || context;
|
|
25
|
-
props =
|
|
25
|
+
props = _EYZZO5ITcjs.usePopoverDisclosureArrow.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, { store }, props));
|
|
26
26
|
return props;
|
|
27
27
|
}
|
|
28
28
|
);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _QJDA4LG6cjs = require('./QJDA4LG6.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -355,7 +355,7 @@ var usePopover = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
355
355
|
position: "relative"
|
|
356
356
|
}, props.style)
|
|
357
357
|
});
|
|
358
|
-
props =
|
|
358
|
+
props = _QJDA4LG6cjs.useDialog.call(void 0, _AV6KTKLEcjs.__spreadProps.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {
|
|
359
359
|
store,
|
|
360
360
|
modal,
|
|
361
361
|
portal,
|
|
@@ -368,7 +368,7 @@ var usePopover = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
368
368
|
return props;
|
|
369
369
|
}
|
|
370
370
|
);
|
|
371
|
-
var Popover =
|
|
371
|
+
var Popover = _QJDA4LG6cjs.createDialogComponent.call(void 0,
|
|
372
372
|
_NGD3IQDBcjs.forwardRef.call(void 0, function Popover2(props) {
|
|
373
373
|
const htmlProps = usePopover(props);
|
|
374
374
|
return _NGD3IQDBcjs.createElement.call(void 0, TagName, htmlProps);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _OHXBMXTNcjs = require('./OHXBMXTN.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _3HMQOCLFcjs = require('./3HMQOCLF.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -147,7 +147,7 @@ var useRadio = _NGD3IQDBcjs.createHook.call(void 0, function useRadio2(_a) {
|
|
|
147
147
|
onClick,
|
|
148
148
|
onFocus
|
|
149
149
|
});
|
|
150
|
-
props =
|
|
150
|
+
props = _3HMQOCLFcjs.useCompositeItem.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {
|
|
151
151
|
store,
|
|
152
152
|
clickOnEnter: !nativeRadio
|
|
153
153
|
}, props));
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _VPI3EKVYcjs = require('./VPI3EKVY.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _NGD3IQDBcjs = require('./NGD3IQDB.cjs');
|
|
9
|
+
|
|
10
|
+
// src/tag/tag-context.tsx
|
|
11
|
+
var _react = require('react');
|
|
12
|
+
var TagValueContext = _react.createContext.call(void 0, null);
|
|
13
|
+
var TagRemoveIdContext = _react.createContext.call(void 0,
|
|
14
|
+
null
|
|
15
|
+
);
|
|
16
|
+
var ctx = _NGD3IQDBcjs.createStoreContext.call(void 0,
|
|
17
|
+
[_VPI3EKVYcjs.CompositeContextProvider],
|
|
18
|
+
[_VPI3EKVYcjs.CompositeScopedContextProvider]
|
|
19
|
+
);
|
|
20
|
+
var useTagContext = ctx.useContext;
|
|
21
|
+
var useTagScopedContext = ctx.useScopedContext;
|
|
22
|
+
var useTagProviderContext = ctx.useProviderContext;
|
|
23
|
+
var TagContextProvider = ctx.ContextProvider;
|
|
24
|
+
var TagScopedContextProvider = ctx.ScopedContextProvider;
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
exports.TagValueContext = TagValueContext; exports.TagRemoveIdContext = TagRemoveIdContext; exports.useTagContext = useTagContext; exports.useTagScopedContext = useTagScopedContext; exports.useTagProviderContext = useTagProviderContext; exports.TagContextProvider = TagContextProvider; exports.TagScopedContextProvider = TagScopedContextProvider;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _VR6GCLOVcjs = require('./VR6GCLOV.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _UUJ5Q6IAcjs = require('./UUJ5Q6IA.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
var _4H7FYXWQcjs = require('./4H7FYXWQ.cjs');
|
|
10
11
|
|
|
11
|
-
var _37BRXQN7cjs = require('./37BRXQN7.cjs');
|
|
12
12
|
|
|
13
|
+
var _JF225FQ5cjs = require('./JF225FQ5.cjs');
|
|
13
14
|
|
|
14
|
-
var _PVYTX5U5cjs = require('./PVYTX5U5.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _JKERATCGcjs = require('./JKERATCG.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var _4H7FYXWQcjs = require('./4H7FYXWQ.cjs');
|
|
21
20
|
|
|
21
|
+
var _BX2QEIBHcjs = require('./BX2QEIBH.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _6IUEXB4Lcjs = require('./6IUEXB4L.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _CXZMA435cjs = require('./CXZMA435.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _SL55T4ZBcjs = require('./SL55T4ZB.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
var _AFPGTIIHcjs = require('./AFPGTIIH.cjs');
|
|
@@ -136,7 +136,8 @@ var useDialog = _NGD3IQDBcjs.createHook.call(void 0, function useDialog2(_a) {
|
|
|
136
136
|
autoFocusOnHide = true,
|
|
137
137
|
initialFocus,
|
|
138
138
|
finalFocus,
|
|
139
|
-
unmountOnHide
|
|
139
|
+
unmountOnHide,
|
|
140
|
+
unstable_treeSnapshotKey
|
|
140
141
|
} = _b, props = _AV6KTKLEcjs.__objRest.call(void 0, _b, [
|
|
141
142
|
"store",
|
|
142
143
|
"open",
|
|
@@ -153,7 +154,8 @@ var useDialog = _NGD3IQDBcjs.createHook.call(void 0, function useDialog2(_a) {
|
|
|
153
154
|
"autoFocusOnHide",
|
|
154
155
|
"initialFocus",
|
|
155
156
|
"finalFocus",
|
|
156
|
-
"unmountOnHide"
|
|
157
|
+
"unmountOnHide",
|
|
158
|
+
"unstable_treeSnapshotKey"
|
|
157
159
|
]);
|
|
158
160
|
const context = _GDEDCFNUcjs.useDialogProviderContext.call(void 0, );
|
|
159
161
|
const ref = _react.useRef.call(void 0, null);
|
|
@@ -186,7 +188,7 @@ var useDialog = _NGD3IQDBcjs.createHook.call(void 0, function useDialog2(_a) {
|
|
|
186
188
|
const mounted = store.useState("mounted");
|
|
187
189
|
const contentElement = store.useState("contentElement");
|
|
188
190
|
const hidden = _7CYY7U2Acjs.isHidden.call(void 0, mounted, props.hidden, props.alwaysVisible);
|
|
189
|
-
|
|
191
|
+
_SL55T4ZBcjs.usePreventBodyScroll.call(void 0, contentElement, id, preventBodyScroll && !hidden);
|
|
190
192
|
_4H7FYXWQcjs.useHideOnInteractOutside.call(void 0, store, hideOnInteractOutside, domReady);
|
|
191
193
|
const { wrapElement, nestedDialogs } = _UUJ5Q6IAcjs.useNestedDialogs.call(void 0, store);
|
|
192
194
|
props = _TW3SFX4Ccjs.useWrapElement.call(void 0, props, wrapElement, [wrapElement]);
|
|
@@ -259,7 +261,7 @@ var useDialog = _NGD3IQDBcjs.createHook.call(void 0, function useDialog2(_a) {
|
|
|
259
261
|
const dialog = ref.current;
|
|
260
262
|
if (!dialog)
|
|
261
263
|
return;
|
|
262
|
-
return
|
|
264
|
+
return _BX2QEIBHcjs.disableTree.call(void 0, dialog);
|
|
263
265
|
}, [open, mounted, domReady]);
|
|
264
266
|
const canTakeTreeSnapshot = open && domReady;
|
|
265
267
|
_TW3SFX4Ccjs.useSafeLayoutEffect.call(void 0, () => {
|
|
@@ -269,7 +271,7 @@ var useDialog = _NGD3IQDBcjs.createHook.call(void 0, function useDialog2(_a) {
|
|
|
269
271
|
return;
|
|
270
272
|
const dialog = ref.current;
|
|
271
273
|
return _CXZMA435cjs.createWalkTreeSnapshot.call(void 0, id, [dialog]);
|
|
272
|
-
}, [id, canTakeTreeSnapshot]);
|
|
274
|
+
}, [id, canTakeTreeSnapshot, unstable_treeSnapshotKey]);
|
|
273
275
|
const getPersistentElementsProp = _TW3SFX4Ccjs.useEvent.call(void 0, getPersistentElements);
|
|
274
276
|
_TW3SFX4Ccjs.useSafeLayoutEffect.call(void 0, () => {
|
|
275
277
|
if (!id)
|
|
@@ -287,7 +289,7 @@ var useDialog = _NGD3IQDBcjs.createHook.call(void 0, function useDialog2(_a) {
|
|
|
287
289
|
if (modal) {
|
|
288
290
|
return _misc.chain.call(void 0,
|
|
289
291
|
_JKERATCGcjs.markTreeOutside.call(void 0, id, allElements),
|
|
290
|
-
|
|
292
|
+
_BX2QEIBHcjs.disableTreeOutside.call(void 0, id, allElements)
|
|
291
293
|
);
|
|
292
294
|
}
|
|
293
295
|
return _JKERATCGcjs.markTreeOutside.call(void 0, id, [disclosureElement, ...allElements]);
|
|
@@ -297,7 +299,8 @@ var useDialog = _NGD3IQDBcjs.createHook.call(void 0, function useDialog2(_a) {
|
|
|
297
299
|
canTakeTreeSnapshot,
|
|
298
300
|
getPersistentElementsProp,
|
|
299
301
|
nestedDialogs,
|
|
300
|
-
modal
|
|
302
|
+
modal,
|
|
303
|
+
unstable_treeSnapshotKey
|
|
301
304
|
]);
|
|
302
305
|
const mayAutoFocusOnShow = !!autoFocusOnShow;
|
|
303
306
|
const autoFocusOnShowProp = _TW3SFX4Ccjs.useBooleanEvent.call(void 0, autoFocusOnShow);
|
|
@@ -390,6 +393,7 @@ var useDialog = _NGD3IQDBcjs.createHook.call(void 0, function useDialog2(_a) {
|
|
|
390
393
|
},
|
|
391
394
|
[store, finalFocus, autoFocusOnHideProp]
|
|
392
395
|
);
|
|
396
|
+
const focusedOnHideRef = _react.useRef.call(void 0, false);
|
|
393
397
|
_TW3SFX4Ccjs.useSafeLayoutEffect.call(void 0, () => {
|
|
394
398
|
if (open)
|
|
395
399
|
return;
|
|
@@ -398,6 +402,7 @@ var useDialog = _NGD3IQDBcjs.createHook.call(void 0, function useDialog2(_a) {
|
|
|
398
402
|
if (!mayAutoFocusOnHide)
|
|
399
403
|
return;
|
|
400
404
|
const dialog = ref.current;
|
|
405
|
+
focusedOnHideRef.current = true;
|
|
401
406
|
focusOnHide(dialog);
|
|
402
407
|
}, [open, hasOpened, domReady, mayAutoFocusOnHide, focusOnHide]);
|
|
403
408
|
_react.useEffect.call(void 0, () => {
|
|
@@ -406,7 +411,13 @@ var useDialog = _NGD3IQDBcjs.createHook.call(void 0, function useDialog2(_a) {
|
|
|
406
411
|
if (!mayAutoFocusOnHide)
|
|
407
412
|
return;
|
|
408
413
|
const dialog = ref.current;
|
|
409
|
-
return () =>
|
|
414
|
+
return () => {
|
|
415
|
+
if (focusedOnHideRef.current) {
|
|
416
|
+
focusedOnHideRef.current = false;
|
|
417
|
+
return;
|
|
418
|
+
}
|
|
419
|
+
focusOnHide(dialog);
|
|
420
|
+
};
|
|
410
421
|
}, [hasOpened, mayAutoFocusOnHide, focusOnHide]);
|
|
411
422
|
const hideOnEscapeProp = _TW3SFX4Ccjs.useBooleanEvent.call(void 0, hideOnEscape);
|
|
412
423
|
_react.useEffect.call(void 0, () => {
|
|
@@ -461,7 +472,7 @@ var useDialog = _NGD3IQDBcjs.createHook.call(void 0, function useDialog2(_a) {
|
|
|
461
472
|
return element;
|
|
462
473
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
463
474
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
464
|
-
|
|
475
|
+
_VR6GCLOVcjs.DialogBackdrop,
|
|
465
476
|
{
|
|
466
477
|
store,
|
|
467
478
|
backdrop,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
var _PVLZGFP6cjs = require('./PVLZGFP6.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
4
7
|
var _4H5ZMMOIcjs = require('./4H5ZMMOI.cjs');
|
|
5
8
|
|
|
6
9
|
|
|
@@ -10,20 +13,35 @@ var _6RJSKW2Ccjs = require('./6RJSKW2C.cjs');
|
|
|
10
13
|
|
|
11
14
|
var _GXMZA6DTcjs = require('./GXMZA6DT.cjs');
|
|
12
15
|
|
|
16
|
+
|
|
17
|
+
var _TW3SFX4Ccjs = require('./TW3SFX4C.cjs');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
var _AV6KTKLEcjs = require('./AV6KTKLE.cjs');
|
|
22
|
+
|
|
13
23
|
// src/combobox/combobox-store.ts
|
|
14
24
|
var _comboboxstore = require('@ariakit/core/combobox/combobox-store'); var Core = _interopRequireWildcard(_comboboxstore);
|
|
15
25
|
function useComboboxStoreProps(store, update, props) {
|
|
26
|
+
_TW3SFX4Ccjs.useUpdateEffect.call(void 0, update, [props.tag]);
|
|
16
27
|
_GXMZA6DTcjs.useStoreProps.call(void 0, store, props, "value", "setValue");
|
|
17
28
|
_GXMZA6DTcjs.useStoreProps.call(void 0, store, props, "selectedValue", "setSelectedValue");
|
|
18
29
|
_GXMZA6DTcjs.useStoreProps.call(void 0, store, props, "resetValueOnHide");
|
|
19
30
|
_GXMZA6DTcjs.useStoreProps.call(void 0, store, props, "resetValueOnSelect");
|
|
20
|
-
return
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
31
|
+
return Object.assign(
|
|
32
|
+
_4H5ZMMOIcjs.useCompositeStoreProps.call(void 0,
|
|
33
|
+
_6RJSKW2Ccjs.usePopoverStoreProps.call(void 0, store, update, props),
|
|
34
|
+
update,
|
|
35
|
+
props
|
|
36
|
+
),
|
|
37
|
+
{ tag: props.tag }
|
|
24
38
|
);
|
|
25
39
|
}
|
|
26
40
|
function useComboboxStore(props = {}) {
|
|
41
|
+
const tag = _PVLZGFP6cjs.useTagContext.call(void 0, );
|
|
42
|
+
props = _AV6KTKLEcjs.__spreadProps.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {}, props), {
|
|
43
|
+
tag: props.tag !== void 0 ? props.tag : tag
|
|
44
|
+
});
|
|
27
45
|
const [store, update] = _GXMZA6DTcjs.useStore.call(void 0, Core.createComboboxStore, props);
|
|
28
46
|
return useComboboxStoreProps(store, update, props);
|
|
29
47
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _4H5ZMMOIcjs = require('./4H5ZMMOI.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _GXMZA6DTcjs = require('./GXMZA6DT.cjs');
|
|
9
|
+
|
|
10
|
+
// src/tag/tag-store.ts
|
|
11
|
+
var _tagstore = require('@ariakit/core/tag/tag-store'); var Core = _interopRequireWildcard(_tagstore);
|
|
12
|
+
function useTagStoreProps(store, update, props) {
|
|
13
|
+
_GXMZA6DTcjs.useStoreProps.call(void 0, store, props, "value", "setValue");
|
|
14
|
+
_GXMZA6DTcjs.useStoreProps.call(void 0, store, props, "values", "setValues");
|
|
15
|
+
return _4H5ZMMOIcjs.useCompositeStoreProps.call(void 0, store, update, props);
|
|
16
|
+
}
|
|
17
|
+
function useTagStore(props = {}) {
|
|
18
|
+
const [store, update] = _GXMZA6DTcjs.useStore.call(void 0, Core.createTagStore, props);
|
|
19
|
+
return useTagStoreProps(store, update, props);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
exports.useTagStoreProps = useTagStoreProps; exports.useTagStore = useTagStore;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _DAOFDKV2cjs = require('./DAOFDKV2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _77BAEZ2Zcjs = require('./77BAEZ2Z.cjs');
|
|
@@ -22,7 +22,7 @@ var usePopoverDismiss = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
22
22
|
var _b = _a, { store } = _b, props = _AV6KTKLEcjs.__objRest.call(void 0, _b, ["store"]);
|
|
23
23
|
const context = _77BAEZ2Zcjs.usePopoverScopedContext.call(void 0, );
|
|
24
24
|
store = store || context;
|
|
25
|
-
props =
|
|
25
|
+
props = _DAOFDKV2cjs.useDialogDismiss.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, { store }, props));
|
|
26
26
|
return props;
|
|
27
27
|
}
|
|
28
28
|
);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _JDCTLYQ4cjs = require('../__chunks/JDCTLYQ4.cjs');
|
|
6
6
|
require('../__chunks/ERFHNHON.cjs');
|
|
7
7
|
require('../__chunks/NGD3IQDB.cjs');
|
|
8
8
|
require('../__chunks/TW3SFX4C.cjs');
|
|
@@ -11,4 +11,4 @@ require('../__chunks/AV6KTKLE.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.CheckboxCheck =
|
|
14
|
+
exports.CheckboxCheck = _JDCTLYQ4cjs.CheckboxCheck; exports.useCheckboxCheck = _JDCTLYQ4cjs.useCheckboxCheck;
|
|
@@ -296,9 +296,7 @@ export declare function useCollectionRenderer<T extends Item = any>({ store, ite
|
|
|
296
296
|
onPointerCancel?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
297
297
|
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
298
298
|
onPointerEnter?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
299
|
-
onPointerEnterCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
300
299
|
onPointerLeave?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
301
|
-
onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
302
300
|
onPointerOver?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
303
301
|
onPointerOverCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
304
302
|
onPointerOut?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
@@ -296,9 +296,7 @@ export declare function useCollectionRenderer<T extends Item = any>({ store, ite
|
|
|
296
296
|
onPointerCancel?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
297
297
|
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
298
298
|
onPointerEnter?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
299
|
-
onPointerEnterCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
300
299
|
onPointerLeave?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
301
|
-
onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
302
300
|
onPointerOver?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
303
301
|
onPointerOverCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
304
302
|
onPointerOut?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|