@ariakit/react-core 0.4.2 → 0.4.4
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 +52 -0
- package/cjs/__chunks/{2ZW7KXDM.cjs → 4XVTH6OR.cjs} +2 -2
- package/cjs/__chunks/{33HTKI7L.cjs → 54YZYOPA.cjs} +2 -2
- package/cjs/__chunks/{DCTXNU2X.cjs → COWKMNMZ.cjs} +3 -3
- package/cjs/__chunks/{HFNM6QV4.cjs → DAOFDKV2.cjs} +1 -1
- package/cjs/__chunks/{3C4RFBCG.cjs → EYZZO5IT.cjs} +1 -1
- package/cjs/__chunks/{3MKOUH5M.cjs → HPNCFYQJ.cjs} +4 -4
- 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/{LEU3BIGC.cjs → QUHFOHHT.cjs} +36 -3
- package/cjs/__chunks/{OGH323OW.cjs → YO7LLGVA.cjs} +2 -2
- package/cjs/__chunks/{RKBJS357.cjs → YOQXFS4U.cjs} +11 -6
- package/cjs/__chunks/{3XXW4Y4D.cjs → Z2VL7JHX.cjs} +2 -2
- package/cjs/__chunks/{CWS5RZSU.cjs → ZTAE5B6W.cjs} +9 -1
- package/cjs/checkbox/checkbox-check.cjs +2 -2
- package/cjs/collection/collection-renderer.d.cts +3 -3
- package/cjs/collection/collection-renderer.d.ts +3 -3
- package/cjs/combobox/combobox-cancel.cjs +2 -2
- package/cjs/combobox/combobox-disclosure.cjs +2 -2
- package/cjs/combobox/combobox-item-check.cjs +2 -2
- package/cjs/combobox/combobox-item.cjs +4 -4
- package/cjs/combobox/combobox-popover.cjs +23 -5
- package/cjs/combobox/combobox-row.cjs +2 -2
- package/cjs/combobox/combobox.cjs +14 -11
- 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 +2 -2
- package/cjs/composite/composite-overflow-disclosure.cjs +2 -2
- package/cjs/composite/composite-overflow.cjs +3 -3
- package/cjs/composite/composite-renderer.d.cts +3 -3
- package/cjs/composite/composite-renderer.d.ts +3 -3
- package/cjs/dialog/dialog-dismiss.cjs +2 -2
- package/cjs/dialog/dialog.cjs +2 -2
- package/cjs/form/form-radio.cjs +3 -3
- package/cjs/hovercard/hovercard-disclosure.cjs +1 -1
- package/cjs/hovercard/hovercard-dismiss.cjs +4 -4
- package/cjs/hovercard/hovercard.cjs +4 -4
- 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 +3 -3
- package/cjs/menu/menu-item-radio.cjs +5 -5
- package/cjs/menu/menu-item.cjs +3 -3
- package/cjs/menu/menu.cjs +5 -5
- package/cjs/popover/popover-disclosure-arrow.cjs +2 -2
- package/cjs/popover/popover-dismiss.cjs +3 -3
- package/cjs/popover/popover.cjs +3 -3
- package/cjs/radio/radio.cjs +3 -3
- 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 +4 -4
- package/cjs/select/select.cjs +4 -4
- package/cjs/tab/tab-panel.cjs +3 -13
- package/cjs/tab/tab-provider.cjs +7 -2
- package/cjs/tab/tab-store.cjs +7 -2
- package/cjs/tab/tab-store.d.cts +22 -7
- package/cjs/tab/tab-store.d.ts +22 -7
- package/cjs/tab/tab.cjs +12 -9
- package/cjs/toolbar/toolbar-container.cjs +3 -3
- package/cjs/toolbar/toolbar-input.cjs +3 -7
- package/cjs/toolbar/toolbar-input.d.cts +3 -2
- package/cjs/toolbar/toolbar-input.d.ts +3 -2
- package/cjs/toolbar/toolbar-item.cjs +3 -3
- package/cjs/tooltip/tooltip.cjs +5 -5
- package/cjs/utils/misc.d.cts +5 -3
- package/cjs/utils/misc.d.ts +5 -3
- package/cjs/utils/types.d.cts +3 -1
- package/cjs/utils/types.d.ts +3 -1
- package/esm/__chunks/{LABIXQLW.js → 44PDY2W5.js} +1 -1
- package/esm/__chunks/{FYNSL2D5.js → 5H3YXAUC.js} +1 -1
- package/esm/__chunks/{DGR3GYOB.js → APFOINTZ.js} +12 -7
- package/esm/__chunks/{JCOBPKEI.js → BY6P32UK.js} +1 -1
- package/esm/__chunks/{QDVOJENT.js → DSUHLHLE.js} +1 -1
- package/esm/__chunks/{NN4HLGKS.js → F2RFUFO2.js} +1 -1
- package/esm/__chunks/{2VWKZYYT.js → H5N72W37.js} +1 -1
- package/esm/__chunks/{NQ4PTILT.js → IOUGWXY5.js} +9 -1
- package/esm/__chunks/{X3V2DT2U.js → LTYEFENI.js} +1 -1
- package/esm/__chunks/{H4YBNKTY.js → NFPDVAAW.js} +1 -1
- package/esm/__chunks/{DCFMDHRW.js → NHVUMSP7.js} +1 -1
- package/esm/__chunks/{RAKW656I.js → Q4PZFBSW.js} +1 -1
- package/esm/__chunks/{VGL3CETR.js → R33ISPJY.js} +37 -4
- package/esm/__chunks/{6VDNHSLX.js → XEJ23EM6.js} +2 -2
- package/esm/checkbox/checkbox-check.js +1 -1
- package/esm/collection/collection-renderer.d.ts +3 -3
- package/esm/combobox/combobox-cancel.js +2 -2
- package/esm/combobox/combobox-disclosure.js +2 -2
- package/esm/combobox/combobox-item-check.js +1 -1
- package/esm/combobox/combobox-item.js +4 -4
- package/esm/combobox/combobox-popover.js +22 -4
- package/esm/combobox/combobox-row.js +3 -3
- package/esm/combobox/combobox.d.ts +20 -0
- package/esm/combobox/combobox.js +14 -11
- package/esm/composite/composite-input.d.ts +2 -0
- package/esm/composite/composite-input.js +92 -7
- package/esm/composite/composite-item.js +1 -1
- package/esm/composite/composite-overflow-disclosure.js +1 -1
- package/esm/composite/composite-overflow.js +2 -2
- package/esm/composite/composite-renderer.d.ts +3 -3
- package/esm/dialog/dialog-dismiss.js +1 -1
- package/esm/dialog/dialog.js +1 -1
- package/esm/form/form-radio.js +2 -2
- package/esm/hovercard/hovercard-disclosure.js +1 -1
- package/esm/hovercard/hovercard-dismiss.js +3 -3
- package/esm/hovercard/hovercard.js +3 -3
- 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 +2 -2
- package/esm/menu/menu-item-radio.js +3 -3
- package/esm/menu/menu-item.js +2 -2
- package/esm/menu/menu.js +3 -3
- package/esm/popover/popover-disclosure-arrow.js +1 -1
- package/esm/popover/popover-dismiss.js +2 -2
- package/esm/popover/popover.js +2 -2
- package/esm/radio/radio.js +2 -2
- 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 +2 -2
- package/esm/select/select.js +3 -3
- package/esm/tab/tab-panel.js +4 -14
- package/esm/tab/tab-provider.js +6 -1
- package/esm/tab/tab-store.d.ts +22 -7
- package/esm/tab/tab-store.js +6 -1
- package/esm/tab/tab.js +10 -7
- package/esm/toolbar/toolbar-container.js +2 -2
- package/esm/toolbar/toolbar-input.d.ts +3 -2
- package/esm/toolbar/toolbar-input.js +2 -6
- package/esm/toolbar/toolbar-item.js +2 -2
- package/esm/tooltip/tooltip.js +3 -3
- package/esm/utils/misc.d.ts +5 -3
- package/esm/utils/types.d.ts +3 -1
- package/package.json +2 -2
- package/cjs/__chunks/WGZQRLXV.cjs +0 -84
- package/esm/__chunks/RPGNBKKU.js +0 -84
|
@@ -9,10 +9,10 @@ require('../__chunks/VPI3EKVY.cjs');
|
|
|
9
9
|
require('../__chunks/NEK2UEJN.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _COWKMNMZcjs = require('../__chunks/COWKMNMZ.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _ZTAE5B6Wcjs = require('../__chunks/ZTAE5B6W.cjs');
|
|
16
16
|
require('../__chunks/TSEXNK3K.cjs');
|
|
17
17
|
require('../__chunks/JF225FQ5.cjs');
|
|
18
18
|
require('../__chunks/37BRXQN7.cjs');
|
|
@@ -58,6 +58,7 @@ require('../__chunks/CJDHQUBR.cjs');
|
|
|
58
58
|
var _AV6KTKLEcjs = require('../__chunks/AV6KTKLE.cjs');
|
|
59
59
|
|
|
60
60
|
// src/combobox/combobox-popover.tsx
|
|
61
|
+
var _react = require('react');
|
|
61
62
|
var _dom = require('@ariakit/core/utils/dom');
|
|
62
63
|
var _misc = require('@ariakit/core/utils/misc');
|
|
63
64
|
var TagName = "div";
|
|
@@ -79,12 +80,14 @@ var useComboboxPopover = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
79
80
|
modal,
|
|
80
81
|
tabIndex,
|
|
81
82
|
alwaysVisible,
|
|
83
|
+
autoFocusOnHide = true,
|
|
82
84
|
hideOnInteractOutside = true
|
|
83
85
|
} = _b, props = _AV6KTKLEcjs.__objRest.call(void 0, _b, [
|
|
84
86
|
"store",
|
|
85
87
|
"modal",
|
|
86
88
|
"tabIndex",
|
|
87
89
|
"alwaysVisible",
|
|
90
|
+
"autoFocusOnHide",
|
|
88
91
|
"hideOnInteractOutside"
|
|
89
92
|
]);
|
|
90
93
|
const context = _2IJSEADJcjs.useComboboxProviderContext.call(void 0, );
|
|
@@ -94,14 +97,14 @@ var useComboboxPopover = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
94
97
|
process.env.NODE_ENV !== "production" && "ComboboxPopover must receive a `store` prop or be wrapped in a ComboboxProvider component."
|
|
95
98
|
);
|
|
96
99
|
const baseElement = store.useState("baseElement");
|
|
100
|
+
const hiddenByClickOutsideRef = _react.useRef.call(void 0, false);
|
|
97
101
|
props = _Q6MAE3CVcjs.useComboboxList.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, { store, alwaysVisible }, props));
|
|
98
|
-
props =
|
|
102
|
+
props = _COWKMNMZcjs.usePopover.call(void 0, _AV6KTKLEcjs.__spreadProps.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {
|
|
99
103
|
store,
|
|
100
104
|
modal,
|
|
101
105
|
alwaysVisible,
|
|
102
106
|
backdrop: false,
|
|
103
107
|
autoFocusOnShow: false,
|
|
104
|
-
autoFocusOnHide: false,
|
|
105
108
|
finalFocus: baseElement,
|
|
106
109
|
preserveTabOrderAnchor: null
|
|
107
110
|
}, props), {
|
|
@@ -133,6 +136,18 @@ var useComboboxPopover = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
133
136
|
const controlElements = doc.querySelectorAll(selector);
|
|
134
137
|
return [...elements, ...controlElements];
|
|
135
138
|
},
|
|
139
|
+
// The combobox popover should focus on the combobox input when it hides,
|
|
140
|
+
// unless the event was triggered by a click outside the popover, in which
|
|
141
|
+
// case the input shouldn't be re-focused.
|
|
142
|
+
autoFocusOnHide(element) {
|
|
143
|
+
if (_misc.isFalsyBooleanCallback.call(void 0, autoFocusOnHide, element))
|
|
144
|
+
return false;
|
|
145
|
+
if (hiddenByClickOutsideRef.current) {
|
|
146
|
+
hiddenByClickOutsideRef.current = false;
|
|
147
|
+
return false;
|
|
148
|
+
}
|
|
149
|
+
return true;
|
|
150
|
+
},
|
|
136
151
|
// Make sure we don't hide the popover when the user interacts with the
|
|
137
152
|
// combobox cancel or the combobox disclosure buttons. They will have the
|
|
138
153
|
// aria-controls attribute pointing to either the combobox input or the
|
|
@@ -145,13 +160,16 @@ var useComboboxPopover = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
145
160
|
if (isController(event.target, contentId, baseId))
|
|
146
161
|
return false;
|
|
147
162
|
const result = typeof hideOnInteractOutside === "function" ? hideOnInteractOutside(event) : hideOnInteractOutside;
|
|
163
|
+
if (result) {
|
|
164
|
+
hiddenByClickOutsideRef.current = event.type === "click";
|
|
165
|
+
}
|
|
148
166
|
return result;
|
|
149
167
|
}
|
|
150
168
|
}));
|
|
151
169
|
return props;
|
|
152
170
|
}
|
|
153
171
|
);
|
|
154
|
-
var ComboboxPopover =
|
|
172
|
+
var ComboboxPopover = _ZTAE5B6Wcjs.createDialogComponent.call(void 0,
|
|
155
173
|
_NGD3IQDBcjs.forwardRef.call(void 0, function ComboboxPopover2(props) {
|
|
156
174
|
const htmlProps = useComboboxPopover(props);
|
|
157
175
|
return _NGD3IQDBcjs.createElement.call(void 0, TagName, htmlProps);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _GZY6WVTScjs = require('../__chunks/GZY6WVTS.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _2IJSEADJcjs = require('../__chunks/2IJSEADJ.cjs');
|
|
8
8
|
require('../__chunks/VPI3EKVY.cjs');
|
|
9
9
|
require('../__chunks/NEK2UEJN.cjs');
|
|
10
10
|
require('../__chunks/77BAEZ2Z.cjs');
|
|
@@ -38,7 +38,7 @@ require('../__chunks/CJDHQUBR.cjs');
|
|
|
38
38
|
|
|
39
39
|
var _AV6KTKLEcjs = require('../__chunks/AV6KTKLE.cjs');
|
|
40
40
|
|
|
41
|
-
// src/combobox/combobox.
|
|
41
|
+
// src/combobox/combobox.tsx
|
|
42
42
|
var _react = require('react');
|
|
43
43
|
|
|
44
44
|
|
|
@@ -93,14 +93,15 @@ var useCombobox = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
93
93
|
focusable = true,
|
|
94
94
|
autoSelect: autoSelectProp = false,
|
|
95
95
|
getAutoSelectId,
|
|
96
|
-
showOnChange = true,
|
|
97
96
|
setValueOnChange = true,
|
|
98
|
-
|
|
97
|
+
showMinLength = 0,
|
|
98
|
+
showOnChange,
|
|
99
|
+
showOnMouseDown,
|
|
99
100
|
showOnClick = showOnMouseDown,
|
|
101
|
+
showOnKeyDown,
|
|
102
|
+
showOnKeyPress = showOnKeyDown,
|
|
100
103
|
blurActiveItemOnClick,
|
|
101
104
|
setValueOnClick = true,
|
|
102
|
-
showOnKeyDown = true,
|
|
103
|
-
showOnKeyPress = showOnKeyDown,
|
|
104
105
|
moveOnKeyPress = true,
|
|
105
106
|
autoComplete = "list"
|
|
106
107
|
} = _b, props = _AV6KTKLEcjs.__objRest.call(void 0, _b, [
|
|
@@ -108,14 +109,15 @@ var useCombobox = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
108
109
|
"focusable",
|
|
109
110
|
"autoSelect",
|
|
110
111
|
"getAutoSelectId",
|
|
111
|
-
"showOnChange",
|
|
112
112
|
"setValueOnChange",
|
|
113
|
+
"showMinLength",
|
|
114
|
+
"showOnChange",
|
|
113
115
|
"showOnMouseDown",
|
|
114
116
|
"showOnClick",
|
|
115
|
-
"blurActiveItemOnClick",
|
|
116
|
-
"setValueOnClick",
|
|
117
117
|
"showOnKeyDown",
|
|
118
118
|
"showOnKeyPress",
|
|
119
|
+
"blurActiveItemOnClick",
|
|
120
|
+
"setValueOnClick",
|
|
119
121
|
"moveOnKeyPress",
|
|
120
122
|
"autoComplete"
|
|
121
123
|
]);
|
|
@@ -312,8 +314,9 @@ var useCombobox = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
312
314
|
elements.forEach((el) => el.removeEventListener("focusout", onBlur2));
|
|
313
315
|
};
|
|
314
316
|
}, [inline, contentElement, store, value]);
|
|
317
|
+
const canShow = value.length >= showMinLength;
|
|
315
318
|
const onChangeProp = props.onChange;
|
|
316
|
-
const showOnChangeProp = _TW3SFX4Ccjs.useBooleanEvent.call(void 0, showOnChange);
|
|
319
|
+
const showOnChangeProp = _TW3SFX4Ccjs.useBooleanEvent.call(void 0, showOnChange != null ? showOnChange : canShow);
|
|
317
320
|
const setValueOnChangeProp = _TW3SFX4Ccjs.useBooleanEvent.call(void 0, setValueOnChange);
|
|
318
321
|
const onChange = _TW3SFX4Ccjs.useEvent.call(void 0, (event) => {
|
|
319
322
|
onChangeProp == null ? void 0 : onChangeProp(event);
|
|
@@ -366,7 +369,7 @@ var useCombobox = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
366
369
|
blurActiveItemOnClick != null ? blurActiveItemOnClick : () => !!(store == null ? void 0 : store.getState().includesBaseElement)
|
|
367
370
|
);
|
|
368
371
|
const setValueOnClickProp = _TW3SFX4Ccjs.useBooleanEvent.call(void 0, setValueOnClick);
|
|
369
|
-
const showOnClickProp = _TW3SFX4Ccjs.useBooleanEvent.call(void 0, showOnClick);
|
|
372
|
+
const showOnClickProp = _TW3SFX4Ccjs.useBooleanEvent.call(void 0, showOnClick != null ? showOnClick : canShow);
|
|
370
373
|
const onMouseDown = _TW3SFX4Ccjs.useEvent.call(void 0, (event) => {
|
|
371
374
|
onMouseDownProp == null ? void 0 : onMouseDownProp(event);
|
|
372
375
|
if (event.defaultPrevented)
|
|
@@ -388,7 +391,7 @@ var useCombobox = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
388
391
|
}
|
|
389
392
|
});
|
|
390
393
|
const onKeyDownProp = props.onKeyDown;
|
|
391
|
-
const showOnKeyPressProp = _TW3SFX4Ccjs.useBooleanEvent.call(void 0, showOnKeyPress);
|
|
394
|
+
const showOnKeyPressProp = _TW3SFX4Ccjs.useBooleanEvent.call(void 0, showOnKeyPress != null ? showOnKeyPress : canShow);
|
|
392
395
|
const onKeyDown = _TW3SFX4Ccjs.useEvent.call(void 0, (event) => {
|
|
393
396
|
onKeyDownProp == null ? void 0 : onKeyDownProp(event);
|
|
394
397
|
if (!event.repeat) {
|
|
@@ -143,6 +143,26 @@ export interface ComboboxOptions<T extends ElementType = TagName> extends Compos
|
|
|
143
143
|
* value.
|
|
144
144
|
*/
|
|
145
145
|
blurActiveItemOnClick?: BooleanOrCallback<MouseEvent<HTMLElement>>;
|
|
146
|
+
/**
|
|
147
|
+
* Specifies the minimum character count the input value should have before
|
|
148
|
+
* the [`ComboboxList`](https://ariakit.org/reference/combobox-list) or
|
|
149
|
+
* [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
|
|
150
|
+
* components are displayed.
|
|
151
|
+
*
|
|
152
|
+
* The [`showOnChange`](https://ariakit.org/reference/combobox#showonchange),
|
|
153
|
+
* [`showOnClick`](https://ariakit.org/reference/combobox#showonclick), and
|
|
154
|
+
* [`showOnKeyPress`](https://ariakit.org/reference/combobox#showonkeypress)
|
|
155
|
+
* props allow you to tailor the behavior for each unique event.
|
|
156
|
+
* @default 0
|
|
157
|
+
* @example
|
|
158
|
+
* In the following example, the combobox list will be shown when the input
|
|
159
|
+
* value has at least one character. However, if the user presses the arrow
|
|
160
|
+
* keys, the list will be shown regardless of the input value length.
|
|
161
|
+
* ```jsx
|
|
162
|
+
* <Combobox showMinLength={1} showOnKeyPress />
|
|
163
|
+
* ```
|
|
164
|
+
*/
|
|
165
|
+
showMinLength?: number;
|
|
146
166
|
/**
|
|
147
167
|
* Whether the [`ComboboxList`](https://ariakit.org/reference/combobox-list)
|
|
148
168
|
* or [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
|
|
@@ -143,6 +143,26 @@ export interface ComboboxOptions<T extends ElementType = TagName> extends Compos
|
|
|
143
143
|
* value.
|
|
144
144
|
*/
|
|
145
145
|
blurActiveItemOnClick?: BooleanOrCallback<MouseEvent<HTMLElement>>;
|
|
146
|
+
/**
|
|
147
|
+
* Specifies the minimum character count the input value should have before
|
|
148
|
+
* the [`ComboboxList`](https://ariakit.org/reference/combobox-list) or
|
|
149
|
+
* [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
|
|
150
|
+
* components are displayed.
|
|
151
|
+
*
|
|
152
|
+
* The [`showOnChange`](https://ariakit.org/reference/combobox#showonchange),
|
|
153
|
+
* [`showOnClick`](https://ariakit.org/reference/combobox#showonclick), and
|
|
154
|
+
* [`showOnKeyPress`](https://ariakit.org/reference/combobox#showonkeypress)
|
|
155
|
+
* props allow you to tailor the behavior for each unique event.
|
|
156
|
+
* @default 0
|
|
157
|
+
* @example
|
|
158
|
+
* In the following example, the combobox list will be shown when the input
|
|
159
|
+
* value has at least one character. However, if the user presses the arrow
|
|
160
|
+
* keys, the list will be shown regardless of the input value length.
|
|
161
|
+
* ```jsx
|
|
162
|
+
* <Combobox showMinLength={1} showOnKeyPress />
|
|
163
|
+
* ```
|
|
164
|
+
*/
|
|
165
|
+
showMinLength?: number;
|
|
146
166
|
/**
|
|
147
167
|
* Whether the [`ComboboxList`](https://ariakit.org/reference/combobox-list)
|
|
148
168
|
* or [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
|
|
@@ -1,14 +1,99 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
var _6ZZYUFPWcjs = require('../__chunks/6ZZYUFPW.cjs');
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _NGD3IQDBcjs = require('../__chunks/NGD3IQDB.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
var _TW3SFX4Ccjs = require('../__chunks/TW3SFX4C.cjs');
|
|
9
14
|
require('../__chunks/CJDHQUBR.cjs');
|
|
10
|
-
require('../__chunks/AV6KTKLE.cjs');
|
|
11
15
|
|
|
12
16
|
|
|
13
17
|
|
|
14
|
-
|
|
18
|
+
|
|
19
|
+
var _AV6KTKLEcjs = require('../__chunks/AV6KTKLE.cjs');
|
|
20
|
+
|
|
21
|
+
// src/composite/composite-input.ts
|
|
22
|
+
var _react = require('react');
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
var _dom = require('@ariakit/core/utils/dom');
|
|
28
|
+
var _misc = require('@ariakit/core/utils/misc');
|
|
29
|
+
var TagName = "input";
|
|
30
|
+
function getValueLength(element) {
|
|
31
|
+
if (_dom.isTextField.call(void 0, element)) {
|
|
32
|
+
return element.value.length;
|
|
33
|
+
} else if (element.isContentEditable) {
|
|
34
|
+
const range = _dom.getDocument.call(void 0, element).createRange();
|
|
35
|
+
range.selectNodeContents(element);
|
|
36
|
+
return range.toString().length;
|
|
37
|
+
}
|
|
38
|
+
return 0;
|
|
39
|
+
}
|
|
40
|
+
var useCompositeInput = _NGD3IQDBcjs.createHook.call(void 0,
|
|
41
|
+
function useCompositeInput2(_a) {
|
|
42
|
+
var _b = _a, { store } = _b, props = _AV6KTKLEcjs.__objRest.call(void 0, _b, ["store"]);
|
|
43
|
+
const onKeyDownCaptureProp = props.onKeyDownCapture;
|
|
44
|
+
if (process.env.NODE_ENV !== "production") {
|
|
45
|
+
_react.useEffect.call(void 0, () => {
|
|
46
|
+
console.warn(
|
|
47
|
+
"CompositeInput is deprecated. Use `<CompositeItem render={<input />}>` instead."
|
|
48
|
+
);
|
|
49
|
+
}, []);
|
|
50
|
+
}
|
|
51
|
+
const onKeyDownCapture = _TW3SFX4Ccjs.useEvent.call(void 0, (event) => {
|
|
52
|
+
onKeyDownCaptureProp == null ? void 0 : onKeyDownCaptureProp(event);
|
|
53
|
+
if (event.defaultPrevented)
|
|
54
|
+
return;
|
|
55
|
+
const element = event.currentTarget;
|
|
56
|
+
if (!element.isContentEditable && !_dom.isTextField.call(void 0, element))
|
|
57
|
+
return;
|
|
58
|
+
const selection = _dom.getTextboxSelection.call(void 0, element);
|
|
59
|
+
const { orientation } = (store == null ? void 0 : store.getState()) || {};
|
|
60
|
+
const isHorizontal = orientation !== "vertical";
|
|
61
|
+
const isVertical = orientation !== "horizontal";
|
|
62
|
+
const isLeft = isHorizontal && event.key === "ArrowLeft";
|
|
63
|
+
const isRight = isHorizontal && event.key === "ArrowRight";
|
|
64
|
+
const isUp = isVertical && event.key === "ArrowUp";
|
|
65
|
+
const isDown = isVertical && event.key === "ArrowDown";
|
|
66
|
+
if (isRight || isDown) {
|
|
67
|
+
if (selection.end !== getValueLength(element)) {
|
|
68
|
+
event.stopPropagation();
|
|
69
|
+
}
|
|
70
|
+
} else if (isLeft || isUp) {
|
|
71
|
+
if (selection.start !== 0) {
|
|
72
|
+
event.stopPropagation();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
const onFocusProp = props.onFocus;
|
|
77
|
+
const onFocus = _TW3SFX4Ccjs.useEvent.call(void 0, (event) => {
|
|
78
|
+
onFocusProp == null ? void 0 : onFocusProp(event);
|
|
79
|
+
if (event.defaultPrevented)
|
|
80
|
+
return;
|
|
81
|
+
_6ZZYUFPWcjs.selectTextField.call(void 0, event.currentTarget);
|
|
82
|
+
});
|
|
83
|
+
props = _AV6KTKLEcjs.__spreadProps.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {}, props), {
|
|
84
|
+
onKeyDownCapture,
|
|
85
|
+
onFocus
|
|
86
|
+
});
|
|
87
|
+
return _misc.removeUndefinedValues.call(void 0, props);
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
var CompositeInput = _NGD3IQDBcjs.memo.call(void 0,
|
|
91
|
+
_NGD3IQDBcjs.forwardRef.call(void 0, function CompositeInput2(props) {
|
|
92
|
+
const htmlProps = useCompositeInput(props);
|
|
93
|
+
return _NGD3IQDBcjs.createElement.call(void 0, TagName, htmlProps);
|
|
94
|
+
})
|
|
95
|
+
);
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
exports.CompositeInput = CompositeInput; exports.useCompositeInput = useCompositeInput;
|
|
@@ -8,6 +8,7 @@ type TagName = typeof TagName;
|
|
|
8
8
|
* conjunction with the `CompositeItem` component, the `useCompositeItem` hook,
|
|
9
9
|
* or any other component/hook that uses `CompositeItem` underneath.
|
|
10
10
|
* @see https://ariakit.org/components/composite
|
|
11
|
+
* @deprecated Use `useCompositeItem` instead.
|
|
11
12
|
* @example
|
|
12
13
|
* ```jsx
|
|
13
14
|
* const store = useCompositeStore();
|
|
@@ -24,6 +25,7 @@ export declare const useCompositeInput: import("../utils/types.js").Hook<"input"
|
|
|
24
25
|
* or a component that uses
|
|
25
26
|
* [`CompositeItem`](https://ariakit.org/reference/composite-item) underneath.
|
|
26
27
|
* @see https://ariakit.org/components/composite
|
|
28
|
+
* @deprecated Use `<CompositeItem render={<input />}>` instead.
|
|
27
29
|
* @example
|
|
28
30
|
* ```jsx {3}
|
|
29
31
|
* <CompositeProvider>
|
|
@@ -8,6 +8,7 @@ type TagName = typeof TagName;
|
|
|
8
8
|
* conjunction with the `CompositeItem` component, the `useCompositeItem` hook,
|
|
9
9
|
* or any other component/hook that uses `CompositeItem` underneath.
|
|
10
10
|
* @see https://ariakit.org/components/composite
|
|
11
|
+
* @deprecated Use `useCompositeItem` instead.
|
|
11
12
|
* @example
|
|
12
13
|
* ```jsx
|
|
13
14
|
* const store = useCompositeStore();
|
|
@@ -24,6 +25,7 @@ export declare const useCompositeInput: import("../utils/types.js").Hook<"input"
|
|
|
24
25
|
* or a component that uses
|
|
25
26
|
* [`CompositeItem`](https://ariakit.org/reference/composite-item) underneath.
|
|
26
27
|
* @see https://ariakit.org/components/composite
|
|
28
|
+
* @deprecated Use `<CompositeItem render={<input />}>` instead.
|
|
27
29
|
* @example
|
|
28
30
|
* ```jsx {3}
|
|
29
31
|
* <CompositeProvider>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _QUHFOHHTcjs = require('../__chunks/QUHFOHHT.cjs');
|
|
6
6
|
require('../__chunks/U4NXCMZ3.cjs');
|
|
7
7
|
require('../__chunks/HD5AHCRI.cjs');
|
|
8
8
|
require('../__chunks/6ZZYUFPW.cjs');
|
|
@@ -18,4 +18,4 @@ require('../__chunks/AV6KTKLE.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
exports.CompositeItem =
|
|
21
|
+
exports.CompositeItem = _QUHFOHHTcjs.CompositeItem; exports.useCompositeItem = _QUHFOHHTcjs.useCompositeItem;
|
|
@@ -8,7 +8,7 @@ require('../__chunks/YH42XRHR.cjs');
|
|
|
8
8
|
require('../__chunks/IXJIFLOA.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _QUHFOHHTcjs = require('../__chunks/QUHFOHHT.cjs');
|
|
12
12
|
require('../__chunks/U4NXCMZ3.cjs');
|
|
13
13
|
require('../__chunks/HD5AHCRI.cjs');
|
|
14
14
|
require('../__chunks/6ZZYUFPW.cjs');
|
|
@@ -70,7 +70,7 @@ var useCompositeOverflowDisclosure = _NGD3IQDBcjs.createHook.call(void 0, functi
|
|
|
70
70
|
onFocus,
|
|
71
71
|
onBlur
|
|
72
72
|
});
|
|
73
|
-
props =
|
|
73
|
+
props = _QUHFOHHTcjs.useCompositeItem.call(void 0, _AV6KTKLEcjs.__spreadProps.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {}, props), { shouldRegisterItem }));
|
|
74
74
|
props = _K6TBX2ZBcjs.usePopoverDisclosure.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, { store }, props));
|
|
75
75
|
return props;
|
|
76
76
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../__chunks/
|
|
4
|
+
var _COWKMNMZcjs = require('../__chunks/COWKMNMZ.cjs');
|
|
5
|
+
require('../__chunks/ZTAE5B6W.cjs');
|
|
6
6
|
require('../__chunks/TSEXNK3K.cjs');
|
|
7
7
|
require('../__chunks/JF225FQ5.cjs');
|
|
8
8
|
require('../__chunks/37BRXQN7.cjs');
|
|
@@ -82,7 +82,7 @@ var useCompositeOverflow = _NGD3IQDBcjs.createHook.call(void 0, function useComp
|
|
|
82
82
|
}, props), {
|
|
83
83
|
onFocus
|
|
84
84
|
});
|
|
85
|
-
props =
|
|
85
|
+
props = _COWKMNMZcjs.usePopover.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {
|
|
86
86
|
store,
|
|
87
87
|
focusable: false,
|
|
88
88
|
alwaysVisible: true,
|
|
@@ -18,7 +18,9 @@ type ItemProps<T extends Item, P extends BaseItemProps = BaseItemProps> = Collec
|
|
|
18
18
|
export declare function useCompositeRenderer<T extends Item = any>({ store, orientation: orientationProp, persistentIndices: persistentIndicesProp, children: renderItem, "aria-setsize": ariaSetSize, "aria-posinset": ariaPosInSet, ...props }: CompositeRendererProps<T>): {
|
|
19
19
|
children: ReactNode[];
|
|
20
20
|
wrapElement?: import("../utils/types.js").WrapElement | undefined;
|
|
21
|
-
render?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("../utils/types.js").RenderProp<import("react").HTMLAttributes<any> &
|
|
21
|
+
render?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("../utils/types.js").RenderProp<import("react").HTMLAttributes<any> & {
|
|
22
|
+
ref?: import("react").Ref<any> | undefined;
|
|
23
|
+
}> | undefined;
|
|
22
24
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
23
25
|
defaultChecked?: boolean | undefined;
|
|
24
26
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -263,9 +265,7 @@ export declare function useCompositeRenderer<T extends Item = any>({ store, orie
|
|
|
263
265
|
onPointerCancel?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
264
266
|
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
265
267
|
onPointerEnter?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
266
|
-
onPointerEnterCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
267
268
|
onPointerLeave?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
268
|
-
onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
269
269
|
onPointerOver?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
270
270
|
onPointerOverCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
271
271
|
onPointerOut?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
@@ -18,7 +18,9 @@ type ItemProps<T extends Item, P extends BaseItemProps = BaseItemProps> = Collec
|
|
|
18
18
|
export declare function useCompositeRenderer<T extends Item = any>({ store, orientation: orientationProp, persistentIndices: persistentIndicesProp, children: renderItem, "aria-setsize": ariaSetSize, "aria-posinset": ariaPosInSet, ...props }: CompositeRendererProps<T>): {
|
|
19
19
|
children: ReactNode[];
|
|
20
20
|
wrapElement?: import("../utils/types.js").WrapElement | undefined;
|
|
21
|
-
render?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("../utils/types.js").RenderProp<import("react").HTMLAttributes<any> &
|
|
21
|
+
render?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("../utils/types.js").RenderProp<import("react").HTMLAttributes<any> & {
|
|
22
|
+
ref?: import("react").Ref<any> | undefined;
|
|
23
|
+
}> | undefined;
|
|
22
24
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
23
25
|
defaultChecked?: boolean | undefined;
|
|
24
26
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -263,9 +265,7 @@ export declare function useCompositeRenderer<T extends Item = any>({ store, orie
|
|
|
263
265
|
onPointerCancel?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
264
266
|
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
265
267
|
onPointerEnter?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
266
|
-
onPointerEnterCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
267
268
|
onPointerLeave?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
268
|
-
onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
269
269
|
onPointerOver?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
270
270
|
onPointerOverCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
271
271
|
onPointerOut?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _DAOFDKV2cjs = require('../__chunks/DAOFDKV2.cjs');
|
|
6
6
|
require('../__chunks/IXJIFLOA.cjs');
|
|
7
7
|
require('../__chunks/U4NXCMZ3.cjs');
|
|
8
8
|
require('../__chunks/GDEDCFNU.cjs');
|
|
@@ -16,4 +16,4 @@ require('../__chunks/AV6KTKLE.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
exports.DialogDismiss =
|
|
19
|
+
exports.DialogDismiss = _DAOFDKV2cjs.DialogDismiss; exports.useDialogDismiss = _DAOFDKV2cjs.useDialogDismiss;
|
package/cjs/dialog/dialog.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _ZTAE5B6Wcjs = require('../__chunks/ZTAE5B6W.cjs');
|
|
7
7
|
require('../__chunks/TSEXNK3K.cjs');
|
|
8
8
|
require('../__chunks/JF225FQ5.cjs');
|
|
9
9
|
require('../__chunks/37BRXQN7.cjs');
|
|
@@ -42,4 +42,4 @@ require('../__chunks/AV6KTKLE.cjs');
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
exports.Dialog =
|
|
45
|
+
exports.Dialog = _ZTAE5B6Wcjs.Dialog; exports.createDialogComponent = _ZTAE5B6Wcjs.createDialogComponent; exports.useDialog = _ZTAE5B6Wcjs.useDialog;
|
package/cjs/form/form-radio.cjs
CHANGED
|
@@ -7,9 +7,9 @@ var _2QZ7O3V4cjs = require('../__chunks/2QZ7O3V4.cjs');
|
|
|
7
7
|
var _LYRG3ZBJcjs = require('../__chunks/LYRG3ZBJ.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _54YZYOPAcjs = require('../__chunks/54YZYOPA.cjs');
|
|
11
11
|
require('../__chunks/OHXBMXTN.cjs');
|
|
12
|
-
require('../__chunks/
|
|
12
|
+
require('../__chunks/QUHFOHHT.cjs');
|
|
13
13
|
require('../__chunks/U4NXCMZ3.cjs');
|
|
14
14
|
require('../__chunks/HD5AHCRI.cjs');
|
|
15
15
|
require('../__chunks/6ZZYUFPW.cjs');
|
|
@@ -62,7 +62,7 @@ var useFormRadio = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
62
62
|
checked,
|
|
63
63
|
onChange
|
|
64
64
|
});
|
|
65
|
-
props =
|
|
65
|
+
props = _54YZYOPAcjs.useRadio.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, { value }, props));
|
|
66
66
|
props = _2QZ7O3V4cjs.useFormControl.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {
|
|
67
67
|
store,
|
|
68
68
|
name,
|
|
@@ -117,7 +117,7 @@ var useHovercardDisclosure = _NGD3IQDBcjs.createHook.call(void 0, function useHo
|
|
|
117
117
|
stroke: "currentColor",
|
|
118
118
|
strokeLinecap: "round",
|
|
119
119
|
strokeLinejoin: "round",
|
|
120
|
-
strokeWidth:
|
|
120
|
+
strokeWidth: 1.5,
|
|
121
121
|
viewBox: "0 0 16 16",
|
|
122
122
|
height: "1em",
|
|
123
123
|
width: "1em",
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../__chunks/
|
|
7
|
-
require('../__chunks/
|
|
5
|
+
var _KDTFHBKUcjs = require('../__chunks/KDTFHBKU.cjs');
|
|
6
|
+
require('../__chunks/Z2VL7JHX.cjs');
|
|
7
|
+
require('../__chunks/DAOFDKV2.cjs');
|
|
8
8
|
require('../__chunks/IXJIFLOA.cjs');
|
|
9
9
|
require('../__chunks/U4NXCMZ3.cjs');
|
|
10
10
|
require('../__chunks/XRPBWSUI.cjs');
|
|
@@ -20,4 +20,4 @@ require('../__chunks/AV6KTKLE.cjs');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
exports.HovercardDismiss =
|
|
23
|
+
exports.HovercardDismiss = _KDTFHBKUcjs.HovercardDismiss; exports.useHovercardDismiss = _KDTFHBKUcjs.useHovercardDismiss;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _HPNCFYQJcjs = require('../__chunks/HPNCFYQJ.cjs');
|
|
6
6
|
require('../__chunks/KXQOQQ5B.cjs');
|
|
7
|
-
require('../__chunks/
|
|
8
|
-
require('../__chunks/
|
|
7
|
+
require('../__chunks/COWKMNMZ.cjs');
|
|
8
|
+
require('../__chunks/ZTAE5B6W.cjs');
|
|
9
9
|
require('../__chunks/TSEXNK3K.cjs');
|
|
10
10
|
require('../__chunks/JF225FQ5.cjs');
|
|
11
11
|
require('../__chunks/37BRXQN7.cjs');
|
|
@@ -45,4 +45,4 @@ require('../__chunks/AV6KTKLE.cjs');
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
exports.Hovercard =
|
|
48
|
+
exports.Hovercard = _HPNCFYQJcjs.Hovercard; exports.useHovercard = _HPNCFYQJcjs.useHovercard;
|
|
@@ -5,7 +5,7 @@ var _LOROMCW2cjs = require('../__chunks/LOROMCW2.cjs');
|
|
|
5
5
|
require('../__chunks/MNMEDFSM.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _EYZZO5ITcjs = require('../__chunks/EYZZO5IT.cjs');
|
|
9
9
|
require('../__chunks/VPI3EKVY.cjs');
|
|
10
10
|
require('../__chunks/NEK2UEJN.cjs');
|
|
11
11
|
require('../__chunks/XRPBWSUI.cjs');
|
|
@@ -31,7 +31,7 @@ var useMenuButtonArrow = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
31
31
|
var _b = _a, { store } = _b, props = _AV6KTKLEcjs.__objRest.call(void 0, _b, ["store"]);
|
|
32
32
|
const context = _LOROMCW2cjs.useMenuContext.call(void 0, );
|
|
33
33
|
store = store || context;
|
|
34
|
-
props =
|
|
34
|
+
props = _EYZZO5ITcjs.usePopoverDisclosureArrow.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, { store }, props));
|
|
35
35
|
return props;
|
|
36
36
|
}
|
|
37
37
|
);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _KDTFHBKUcjs = require('../__chunks/KDTFHBKU.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _LOROMCW2cjs = require('../__chunks/LOROMCW2.cjs');
|
|
8
8
|
require('../__chunks/MNMEDFSM.cjs');
|
|
9
|
-
require('../__chunks/
|
|
10
|
-
require('../__chunks/
|
|
9
|
+
require('../__chunks/Z2VL7JHX.cjs');
|
|
10
|
+
require('../__chunks/DAOFDKV2.cjs');
|
|
11
11
|
require('../__chunks/IXJIFLOA.cjs');
|
|
12
12
|
require('../__chunks/U4NXCMZ3.cjs');
|
|
13
13
|
require('../__chunks/VPI3EKVY.cjs');
|
|
@@ -37,7 +37,7 @@ var useMenuDismiss = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
37
37
|
var _b = _a, { store } = _b, props = _AV6KTKLEcjs.__objRest.call(void 0, _b, ["store"]);
|
|
38
38
|
const context = _LOROMCW2cjs.useMenuScopedContext.call(void 0, );
|
|
39
39
|
store = store || context;
|
|
40
|
-
props =
|
|
40
|
+
props = _KDTFHBKUcjs.useHovercardDismiss.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, { store }, props));
|
|
41
41
|
return props;
|
|
42
42
|
}
|
|
43
43
|
);
|
|
@@ -5,7 +5,7 @@ var _LOROMCW2cjs = require('../__chunks/LOROMCW2.cjs');
|
|
|
5
5
|
require('../__chunks/MNMEDFSM.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _JDCTLYQ4cjs = require('../__chunks/JDCTLYQ4.cjs');
|
|
9
9
|
require('../__chunks/ERFHNHON.cjs');
|
|
10
10
|
require('../__chunks/VPI3EKVY.cjs');
|
|
11
11
|
require('../__chunks/NEK2UEJN.cjs');
|
|
@@ -34,7 +34,7 @@ var useMenuItemCheck = _NGD3IQDBcjs.createHook.call(void 0,
|
|
|
34
34
|
var _b = _a, { store, checked } = _b, props = _AV6KTKLEcjs.__objRest.call(void 0, _b, ["store", "checked"]);
|
|
35
35
|
const context = _react.useContext.call(void 0, _LOROMCW2cjs.MenuItemCheckedContext);
|
|
36
36
|
checked = checked != null ? checked : context;
|
|
37
|
-
props =
|
|
37
|
+
props = _JDCTLYQ4cjs.useCheckboxCheck.call(void 0, _AV6KTKLEcjs.__spreadProps.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {}, props), { checked }));
|
|
38
38
|
return props;
|
|
39
39
|
}
|
|
40
40
|
);
|