@ariakit/test 0.4.11 → 0.4.12

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 (56) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/cjs/__chunks/{4P2TRHCD.cjs → 6RS5IIND.cjs} +2 -6
  3. package/cjs/__chunks/{EG24EIKR.cjs → E652CU4S.cjs} +9 -12
  4. package/cjs/__chunks/{ANKVPRYL.cjs → FXNLNUN4.cjs} +1 -4
  5. package/cjs/__chunks/{XODU6QCY.cjs → GN27CO5F.cjs} +2 -2
  6. package/cjs/__chunks/{AYPQCP2P.cjs → JBTD632X.cjs} +8 -11
  7. package/cjs/__chunks/{KKOPNQIH.cjs → NAXSUG7D.cjs} +8 -10
  8. package/cjs/__chunks/{ML4UXKC3.cjs → PSUVKPBQ.cjs} +1 -4
  9. package/cjs/__chunks/{UYJAT53J.cjs → PU4UTGCJ.cjs} +14 -14
  10. package/cjs/__chunks/{EA2M4PHP.cjs → YHTBQKQP.cjs} +8 -11
  11. package/cjs/blur.cjs +0 -1
  12. package/cjs/click.cjs +5 -6
  13. package/cjs/dispatch.cjs +0 -1
  14. package/cjs/focus.cjs +0 -1
  15. package/cjs/hover.cjs +2 -3
  16. package/cjs/index.cjs +10 -11
  17. package/cjs/mouse-down.cjs +2 -3
  18. package/cjs/mouse-up.cjs +2 -3
  19. package/cjs/playwright.cjs +1 -4
  20. package/cjs/press.cjs +3 -4
  21. package/cjs/query.cjs +2 -3
  22. package/cjs/react.cjs +14 -17
  23. package/cjs/select.cjs +5 -6
  24. package/cjs/sleep.cjs +0 -1
  25. package/cjs/tap.cjs +6 -7
  26. package/cjs/type.cjs +2 -3
  27. package/cjs/wait-for.cjs +0 -1
  28. package/esm/__chunks/{4VR4URFV.js → 22KDRPLA.js} +14 -14
  29. package/esm/__chunks/{433S5VGJ.js → 3NBNNSLU.js} +4 -7
  30. package/esm/__chunks/{DFUW3DFA.js → 5P7UPGUI.js} +8 -10
  31. package/esm/__chunks/{RTBDUQHD.js → CLBHQ7IU.js} +6 -9
  32. package/esm/__chunks/{BG5U5JFH.js → CLGZ6LZL.js} +2 -6
  33. package/esm/__chunks/{NR24PD4G.js → DHY47Z5Z.js} +1 -4
  34. package/esm/__chunks/{CSF4U66P.js → LFDLFIXJ.js} +1 -1
  35. package/esm/__chunks/{Z7WVAAXJ.js → SU4WSQ6S.js} +1 -4
  36. package/esm/__chunks/{OLDQVNUU.js → XHCPZXKA.js} +4 -7
  37. package/esm/blur.js +0 -1
  38. package/esm/click.js +4 -5
  39. package/esm/dispatch.js +0 -1
  40. package/esm/focus.js +0 -1
  41. package/esm/hover.js +1 -2
  42. package/esm/index.js +9 -10
  43. package/esm/mouse-down.js +1 -2
  44. package/esm/mouse-up.js +1 -2
  45. package/esm/playwright.js +1 -4
  46. package/esm/press.js +2 -3
  47. package/esm/query.js +1 -2
  48. package/esm/react.js +13 -16
  49. package/esm/select.js +4 -5
  50. package/esm/sleep.js +0 -1
  51. package/esm/tap.js +5 -6
  52. package/esm/type.js +1 -2
  53. package/esm/wait-for.js +0 -1
  54. package/package.json +2 -2
  55. package/cjs/__chunks/E4OOGVMW.cjs +0 -24
  56. package/esm/__chunks/SM5ASDQ3.js +0 -25
package/cjs/react.cjs CHANGED
@@ -4,33 +4,33 @@
4
4
  var _IWR6DHL3cjs = require('./__chunks/IWR6DHL3.cjs');
5
5
 
6
6
 
7
- var _EA2M4PHPcjs = require('./__chunks/EA2M4PHP.cjs');
7
+ var _YHTBQKQPcjs = require('./__chunks/YHTBQKQP.cjs');
8
8
 
9
9
 
10
10
 
11
- var _KKOPNQIHcjs = require('./__chunks/KKOPNQIH.cjs');
11
+ var _NAXSUG7Dcjs = require('./__chunks/NAXSUG7D.cjs');
12
12
  require('./__chunks/CAAOBH77.cjs');
13
13
 
14
14
 
15
- var _AYPQCP2Pcjs = require('./__chunks/AYPQCP2P.cjs');
15
+ var _JBTD632Xcjs = require('./__chunks/JBTD632X.cjs');
16
16
 
17
17
 
18
- var _XODU6QCYcjs = require('./__chunks/XODU6QCY.cjs');
18
+ var _GN27CO5Fcjs = require('./__chunks/GN27CO5F.cjs');
19
19
 
20
20
 
21
- var _UYJAT53Jcjs = require('./__chunks/UYJAT53J.cjs');
21
+ var _PU4UTGCJcjs = require('./__chunks/PU4UTGCJ.cjs');
22
22
 
23
23
 
24
- var _EG24EIKRcjs = require('./__chunks/EG24EIKR.cjs');
24
+ var _E652CU4Scjs = require('./__chunks/E652CU4S.cjs');
25
25
 
26
26
 
27
- var _4P2TRHCDcjs = require('./__chunks/4P2TRHCD.cjs');
27
+ var _6RS5IINDcjs = require('./__chunks/6RS5IIND.cjs');
28
28
 
29
29
 
30
30
  var _AA4DRZPScjs = require('./__chunks/AA4DRZPS.cjs');
31
31
 
32
32
 
33
- var _ML4UXKC3cjs = require('./__chunks/ML4UXKC3.cjs');
33
+ var _PSUVKPBQcjs = require('./__chunks/PSUVKPBQ.cjs');
34
34
 
35
35
 
36
36
  var _5USXAKSOcjs = require('./__chunks/5USXAKSO.cjs');
@@ -39,7 +39,7 @@ var _5USXAKSOcjs = require('./__chunks/5USXAKSO.cjs');
39
39
  var _SMHVZDHRcjs = require('./__chunks/SMHVZDHR.cjs');
40
40
 
41
41
 
42
- var _ANKVPRYLcjs = require('./__chunks/ANKVPRYL.cjs');
42
+ var _FXNLNUN4cjs = require('./__chunks/FXNLNUN4.cjs');
43
43
 
44
44
 
45
45
  var _72WSX5BLcjs = require('./__chunks/72WSX5BL.cjs');
@@ -49,10 +49,6 @@ var _72WSX5BLcjs = require('./__chunks/72WSX5BL.cjs');
49
49
 
50
50
  var _RHX5DDWScjs = require('./__chunks/RHX5DDWS.cjs');
51
51
 
52
-
53
-
54
- var _E4OOGVMWcjs = require('./__chunks/E4OOGVMW.cjs');
55
-
56
52
  // src/react.tsx
57
53
  var _react = require('@testing-library/react'); var ReactTestingLibrary = _interopRequireWildcard(_react);
58
54
  var _react2 = require('react');
@@ -69,14 +65,15 @@ function wrapRender(renderFn) {
69
65
  async function render2(ui, options) {
70
66
  const wrapper = (props) => {
71
67
  const Wrapper = options == null ? void 0 : options.wrapper;
72
- const element = Wrapper ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Wrapper, _E4OOGVMWcjs.__spreadValues.call(void 0, {}, props)) : props.children;
68
+ const element = Wrapper ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Wrapper, { ...props }) : props.children;
73
69
  if (!(options == null ? void 0 : options.strictMode)) return element;
74
70
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.StrictMode, { children: element });
75
71
  };
76
72
  return wrapRender(() => {
77
- const { unmount, rerender } = ReactTestingLibrary.render(ui, _E4OOGVMWcjs.__spreadProps.call(void 0, _E4OOGVMWcjs.__spreadValues.call(void 0, {}, options), {
73
+ const { unmount, rerender } = ReactTestingLibrary.render(ui, {
74
+ ...options,
78
75
  wrapper
79
- }));
76
+ });
80
77
  return {
81
78
  unmount,
82
79
  rerender: (newUi) => wrapRender(() => rerender(newUi))
@@ -100,4 +97,4 @@ async function render2(ui, options) {
100
97
 
101
98
 
102
99
 
103
- exports.blur = _5USXAKSOcjs.blur; exports.click = _EG24EIKRcjs.click; exports.dispatch = _72WSX5BLcjs.dispatch; exports.focus = _SMHVZDHRcjs.focus; exports.hover = _4P2TRHCDcjs.hover; exports.mouseDown = _ML4UXKC3cjs.mouseDown; exports.mouseUp = _ANKVPRYLcjs.mouseUp; exports.press = _EA2M4PHPcjs.press; exports.q = _KKOPNQIHcjs.q; exports.query = _KKOPNQIHcjs.query; exports.render = render2; exports.select = _AYPQCP2Pcjs.select; exports.sleep = _AA4DRZPScjs.sleep; exports.tap = _XODU6QCYcjs.tap; exports.type = _UYJAT53Jcjs.type; exports.waitFor = _IWR6DHL3cjs.waitFor;
100
+ exports.blur = _5USXAKSOcjs.blur; exports.click = _E652CU4Scjs.click; exports.dispatch = _72WSX5BLcjs.dispatch; exports.focus = _SMHVZDHRcjs.focus; exports.hover = _6RS5IINDcjs.hover; exports.mouseDown = _PSUVKPBQcjs.mouseDown; exports.mouseUp = _FXNLNUN4cjs.mouseUp; exports.press = _YHTBQKQPcjs.press; exports.q = _NAXSUG7Dcjs.q; exports.query = _NAXSUG7Dcjs.query; exports.render = render2; exports.select = _JBTD632Xcjs.select; exports.sleep = _AA4DRZPScjs.sleep; exports.tap = _GN27CO5Fcjs.tap; exports.type = _PU4UTGCJcjs.type; exports.waitFor = _IWR6DHL3cjs.waitFor;
package/cjs/select.cjs CHANGED
@@ -1,15 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _AYPQCP2Pcjs = require('./__chunks/AYPQCP2P.cjs');
4
- require('./__chunks/4P2TRHCD.cjs');
3
+ var _JBTD632Xcjs = require('./__chunks/JBTD632X.cjs');
4
+ require('./__chunks/6RS5IIND.cjs');
5
5
  require('./__chunks/AA4DRZPS.cjs');
6
- require('./__chunks/ML4UXKC3.cjs');
6
+ require('./__chunks/PSUVKPBQ.cjs');
7
7
  require('./__chunks/5USXAKSO.cjs');
8
8
  require('./__chunks/SMHVZDHR.cjs');
9
- require('./__chunks/ANKVPRYL.cjs');
9
+ require('./__chunks/FXNLNUN4.cjs');
10
10
  require('./__chunks/72WSX5BL.cjs');
11
11
  require('./__chunks/RHX5DDWS.cjs');
12
- require('./__chunks/E4OOGVMW.cjs');
13
12
 
14
13
 
15
- exports.select = _AYPQCP2Pcjs.select;
14
+ exports.select = _JBTD632Xcjs.select;
package/cjs/sleep.cjs CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  var _AA4DRZPScjs = require('./__chunks/AA4DRZPS.cjs');
4
4
  require('./__chunks/RHX5DDWS.cjs');
5
- require('./__chunks/E4OOGVMW.cjs');
6
5
 
7
6
 
8
7
  exports.sleep = _AA4DRZPScjs.sleep;
package/cjs/tap.cjs CHANGED
@@ -1,16 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _XODU6QCYcjs = require('./__chunks/XODU6QCY.cjs');
4
- require('./__chunks/EG24EIKR.cjs');
5
- require('./__chunks/4P2TRHCD.cjs');
3
+ var _GN27CO5Fcjs = require('./__chunks/GN27CO5F.cjs');
4
+ require('./__chunks/E652CU4S.cjs');
5
+ require('./__chunks/6RS5IIND.cjs');
6
6
  require('./__chunks/AA4DRZPS.cjs');
7
- require('./__chunks/ML4UXKC3.cjs');
7
+ require('./__chunks/PSUVKPBQ.cjs');
8
8
  require('./__chunks/5USXAKSO.cjs');
9
9
  require('./__chunks/SMHVZDHR.cjs');
10
- require('./__chunks/ANKVPRYL.cjs');
10
+ require('./__chunks/FXNLNUN4.cjs');
11
11
  require('./__chunks/72WSX5BL.cjs');
12
12
  require('./__chunks/RHX5DDWS.cjs');
13
- require('./__chunks/E4OOGVMW.cjs');
14
13
 
15
14
 
16
- exports.tap = _XODU6QCYcjs.tap;
15
+ exports.tap = _GN27CO5Fcjs.tap;
package/cjs/type.cjs CHANGED
@@ -1,11 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _UYJAT53Jcjs = require('./__chunks/UYJAT53J.cjs');
3
+ var _PU4UTGCJcjs = require('./__chunks/PU4UTGCJ.cjs');
4
4
  require('./__chunks/AA4DRZPS.cjs');
5
5
  require('./__chunks/SMHVZDHR.cjs');
6
6
  require('./__chunks/72WSX5BL.cjs');
7
7
  require('./__chunks/RHX5DDWS.cjs');
8
- require('./__chunks/E4OOGVMW.cjs');
9
8
 
10
9
 
11
- exports.type = _UYJAT53Jcjs.type;
10
+ exports.type = _PU4UTGCJcjs.type;
package/cjs/wait-for.cjs CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  var _IWR6DHL3cjs = require('./__chunks/IWR6DHL3.cjs');
4
4
  require('./__chunks/RHX5DDWS.cjs');
5
- require('./__chunks/E4OOGVMW.cjs');
6
5
 
7
6
 
8
7
  exports.waitFor = _IWR6DHL3cjs.waitFor;
@@ -11,9 +11,6 @@ import {
11
11
  import {
12
12
  wrapAsync
13
13
  } from "./HFG3HB6M.js";
14
- import {
15
- __spreadValues
16
- } from "./SM5ASDQ3.js";
17
14
 
18
15
  // src/type.ts
19
16
  import { getActiveElement, isTextField } from "@ariakit/core/utils/dom";
@@ -49,7 +46,7 @@ function type(text, element, options = {}) {
49
46
  const key = getKeyFromChar(char);
50
47
  let value = "";
51
48
  let inputType = options.isComposing ? "insertCompositionText" : "insertText";
52
- let defaultAllowed = await dispatch.keyDown(element, __spreadValues({ key }, options));
49
+ let defaultAllowed = await dispatch.keyDown(element, { key, ...options });
53
50
  element = getActiveElement(element) || element;
54
51
  if (isTextField(element)) {
55
52
  const input = element;
@@ -79,27 +76,30 @@ function type(text, element, options = {}) {
79
76
  }
80
77
  if (defaultAllowed && !input.readOnly) {
81
78
  if (inputType === "insertText") {
82
- defaultAllowed = await dispatch.keyPress(input, __spreadValues({
79
+ defaultAllowed = await dispatch.keyPress(input, {
83
80
  key,
84
- charCode: key.charCodeAt(0)
85
- }, options));
81
+ charCode: key.charCodeAt(0),
82
+ ...options
83
+ });
86
84
  }
87
85
  if (inputType === "insertCompositionText") {
88
- defaultAllowed = await dispatch.compositionUpdate(input, __spreadValues({
86
+ defaultAllowed = await dispatch.compositionUpdate(input, {
89
87
  data: char,
90
- target: { value }
91
- }, options));
88
+ target: { value },
89
+ ...options
90
+ });
92
91
  }
93
92
  if (defaultAllowed) {
94
- await dispatch.input(input, __spreadValues({
93
+ await dispatch.input(input, {
95
94
  data: char,
96
95
  target: {
97
96
  value,
98
97
  selectionStart: nextCaretPosition,
99
98
  selectionEnd: nextCaretPosition
100
99
  },
101
- inputType
102
- }, options));
100
+ inputType,
101
+ ...options
102
+ });
103
103
  if (input.selectionStart !== nextCaretPosition) {
104
104
  input.setSelectionRange(nextCaretPosition, nextCaretPosition);
105
105
  }
@@ -107,7 +107,7 @@ function type(text, element, options = {}) {
107
107
  }
108
108
  }
109
109
  await sleep();
110
- await dispatch.keyUp(element, __spreadValues({ key }, options));
110
+ await dispatch.keyUp(element, { key, ...options });
111
111
  await sleep();
112
112
  }
113
113
  restoreEmailInput();
@@ -1,25 +1,22 @@
1
1
  "use client";
2
2
  import {
3
3
  hover
4
- } from "./BG5U5JFH.js";
4
+ } from "./CLGZ6LZL.js";
5
5
  import {
6
6
  sleep
7
7
  } from "./DZ24E43J.js";
8
8
  import {
9
9
  mouseDown
10
- } from "./Z7WVAAXJ.js";
10
+ } from "./SU4WSQ6S.js";
11
11
  import {
12
12
  mouseUp
13
- } from "./NR24PD4G.js";
13
+ } from "./DHY47Z5Z.js";
14
14
  import {
15
15
  dispatch
16
16
  } from "./LK25WCYN.js";
17
17
  import {
18
18
  wrapAsync
19
19
  } from "./HFG3HB6M.js";
20
- import {
21
- __spreadValues
22
- } from "./SM5ASDQ3.js";
23
20
 
24
21
  // src/select.ts
25
22
  import { isVisible } from "@ariakit/core/utils/dom";
@@ -79,7 +76,7 @@ function select(text, element = document.body, options) {
79
76
  }
80
77
  await sleep();
81
78
  await mouseUp(element, options);
82
- await dispatch.click(element, __spreadValues({ detail: 1 }, options));
79
+ await dispatch.click(element, { detail: 1, ...options });
83
80
  selection == null ? void 0 : selection.removeAllRanges();
84
81
  selection == null ? void 0 : selection.addRange(range);
85
82
  await sleep();
@@ -2,10 +2,6 @@
2
2
  import {
3
3
  roles
4
4
  } from "./CWTUOQ5Z.js";
5
- import {
6
- __spreadProps,
7
- __spreadValues
8
- } from "./SM5ASDQ3.js";
9
5
 
10
6
  // src/query.ts
11
7
  import { invariant } from "@ariakit/core/utils/misc";
@@ -43,12 +39,13 @@ function getNameOption(name, includesHidden) {
43
39
  function createRoleQuery(role, queries = documentQueries) {
44
40
  const createQuery = (query3) => {
45
41
  return (name, options) => {
46
- return query3(role, __spreadValues({
47
- name: getNameOption(name, options == null ? void 0 : options.hidden)
48
- }, options));
42
+ return query3(role, {
43
+ name: getNameOption(name, options == null ? void 0 : options.hidden),
44
+ ...options
45
+ });
49
46
  };
50
47
  };
51
- const createIncludesHidden = (query3) => (name, options) => query3(name, __spreadValues({ hidden: true }, options));
48
+ const createIncludesHidden = (query3) => (name, options) => query3(name, { hidden: true, ...options });
52
49
  const query2 = createQuery(queries.queryByRole);
53
50
  const allQuery = createQuery(queries.queryAllByRole);
54
51
  const waitQuery = createQuery(queries.findByRole);
@@ -116,14 +113,15 @@ function createLabeledQuery(queries = documentQueries) {
116
113
  return Object.assign(queries.queryByLabelText, { all, wait, ensure });
117
114
  }
118
115
  function createQueryObject(queries = documentQueries) {
119
- return __spreadProps(__spreadValues({}, createRoleQueries(queries)), {
116
+ return {
117
+ ...createRoleQueries(queries),
120
118
  text: createTextQuery(queries),
121
119
  labeled: createLabeledQuery(queries),
122
120
  within: (element) => {
123
121
  invariant(element, "Unable to create queries for null element");
124
122
  return createQueryObject(createQueries(element));
125
123
  }
126
- });
124
+ };
127
125
  }
128
126
  var query = createQueryObject();
129
127
  var q = query;
@@ -1,28 +1,25 @@
1
1
  "use client";
2
2
  import {
3
3
  hover
4
- } from "./BG5U5JFH.js";
4
+ } from "./CLGZ6LZL.js";
5
5
  import {
6
6
  sleep
7
7
  } from "./DZ24E43J.js";
8
8
  import {
9
9
  mouseDown
10
- } from "./Z7WVAAXJ.js";
10
+ } from "./SU4WSQ6S.js";
11
11
  import {
12
12
  focus
13
13
  } from "./4SG6SLGL.js";
14
14
  import {
15
15
  mouseUp
16
- } from "./NR24PD4G.js";
16
+ } from "./DHY47Z5Z.js";
17
17
  import {
18
18
  dispatch
19
19
  } from "./LK25WCYN.js";
20
20
  import {
21
21
  wrapAsync
22
22
  } from "./HFG3HB6M.js";
23
- import {
24
- __spreadValues
25
- } from "./SM5ASDQ3.js";
26
23
 
27
24
  // src/click.ts
28
25
  import { isVisible } from "@ariakit/core/utils/dom";
@@ -120,11 +117,11 @@ function click(element, options, tap = false) {
120
117
  if (disabled) return;
121
118
  const label = getClosestLabel(element);
122
119
  if (label) {
123
- await clickLabel(label, __spreadValues({ detail: 1 }, options));
120
+ await clickLabel(label, { detail: 1, ...options });
124
121
  } else if (element instanceof HTMLOptionElement) {
125
- await clickOption(element, __spreadValues({ detail: 1 }, options));
122
+ await clickOption(element, { detail: 1, ...options });
126
123
  } else {
127
- await dispatch.click(element, __spreadValues({ detail: 1 }, options));
124
+ await dispatch.click(element, { detail: 1, ...options });
128
125
  }
129
126
  await sleep();
130
127
  });
@@ -8,10 +8,6 @@ import {
8
8
  import {
9
9
  wrapAsync
10
10
  } from "./HFG3HB6M.js";
11
- import {
12
- __spreadProps,
13
- __spreadValues
14
- } from "./SM5ASDQ3.js";
15
11
 
16
12
  // src/hover.ts
17
13
  import { isVisible } from "@ariakit/core/utils/dom";
@@ -33,7 +29,7 @@ function hover(element, options) {
33
29
  if (isPointerEventsEnabled(lastHovered)) {
34
30
  const isElementWithinLastHovered = lastHovered.contains(element);
35
31
  const relatedTarget = pointerEventsEnabled ? element : null;
36
- const leaveOptions = __spreadProps(__spreadValues({}, options), { relatedTarget });
32
+ const leaveOptions = { ...options, relatedTarget };
37
33
  await dispatch.pointerOut(lastHovered, leaveOptions);
38
34
  if (!isElementWithinLastHovered) {
39
35
  await dispatch.pointerLeave(lastHovered, leaveOptions);
@@ -46,7 +42,7 @@ function hover(element, options) {
46
42
  }
47
43
  await sleep();
48
44
  if (pointerEventsEnabled) {
49
- const enterOptions = lastHovered ? __spreadValues({ relatedTarget: lastHovered }, options) : options;
45
+ const enterOptions = lastHovered ? { relatedTarget: lastHovered, ...options } : options;
50
46
  await dispatch.pointerOver(element, enterOptions);
51
47
  await dispatch.pointerEnter(element, enterOptions);
52
48
  if (!disabled) {
@@ -5,9 +5,6 @@ import {
5
5
  import {
6
6
  wrapAsync
7
7
  } from "./HFG3HB6M.js";
8
- import {
9
- __spreadValues
10
- } from "./SM5ASDQ3.js";
11
8
 
12
9
  // src/mouse-up.ts
13
10
  import { isVisible } from "@ariakit/core/utils/dom";
@@ -19,7 +16,7 @@ function mouseUp(element, options) {
19
16
  const { disabled } = element;
20
17
  await dispatch.pointerUp(element, options);
21
18
  if (disabled) return;
22
- await dispatch.mouseUp(element, __spreadValues({ detail: 1 }, options));
19
+ await dispatch.mouseUp(element, { detail: 1, ...options });
23
20
  });
24
21
  }
25
22
 
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  click
4
- } from "./RTBDUQHD.js";
4
+ } from "./CLBHQ7IU.js";
5
5
 
6
6
  // src/tap.ts
7
7
  function tap(element, options) {
@@ -11,9 +11,6 @@ import {
11
11
  import {
12
12
  wrapAsync
13
13
  } from "./HFG3HB6M.js";
14
- import {
15
- __spreadValues
16
- } from "./SM5ASDQ3.js";
17
14
 
18
15
  // src/mouse-down.ts
19
16
  import { getDocument, isVisible } from "@ariakit/core/utils/dom";
@@ -26,7 +23,7 @@ function mouseDown(element, options) {
26
23
  const { disabled } = element;
27
24
  let defaultAllowed = await dispatch.pointerDown(element, options);
28
25
  if (!disabled) {
29
- if (!await dispatch.mouseDown(element, __spreadValues({ detail: 1 }, options))) {
26
+ if (!await dispatch.mouseDown(element, { detail: 1, ...options })) {
30
27
  defaultAllowed = false;
31
28
  }
32
29
  }
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  type
4
- } from "./4VR4URFV.js";
4
+ } from "./22KDRPLA.js";
5
5
  import {
6
6
  sleep
7
7
  } from "./DZ24E43J.js";
@@ -17,9 +17,6 @@ import {
17
17
  import {
18
18
  wrapAsync
19
19
  } from "./HFG3HB6M.js";
20
- import {
21
- __spreadValues
22
- } from "./SM5ASDQ3.js";
23
20
 
24
21
  // src/press.ts
25
22
  import { isTextField, setSelectionRange } from "@ariakit/core/utils/dom";
@@ -195,7 +192,7 @@ function press(key, element, options = {}) {
195
192
  }
196
193
  }
197
194
  await sleep();
198
- let defaultAllowed = await dispatch.keyDown(element, __spreadValues({ key }, options));
195
+ let defaultAllowed = await dispatch.keyDown(element, { key, ...options });
199
196
  if (defaultAllowed && key in keyDownMap && !options.metaKey) {
200
197
  await ((_b = keyDownMap[key]) == null ? void 0 : _b.call(keyDownMap, element, options));
201
198
  }
@@ -203,7 +200,7 @@ function press(key, element, options = {}) {
203
200
  if (((_c = element.ownerDocument) == null ? void 0 : _c.activeElement) !== element) {
204
201
  element = element.ownerDocument.activeElement;
205
202
  }
206
- if (!await dispatch.keyUp(element, __spreadValues({ key }, options))) {
203
+ if (!await dispatch.keyUp(element, { key, ...options })) {
207
204
  defaultAllowed = false;
208
205
  }
209
206
  if (defaultAllowed && key in keyUpMap && !options.metaKey) {
@@ -213,7 +210,7 @@ function press(key, element, options = {}) {
213
210
  });
214
211
  }
215
212
  function createPress(key, defaultOptions = {}) {
216
- return (element, options = {}) => press(key, element, __spreadValues(__spreadValues({}, defaultOptions), options));
213
+ return (element, options = {}) => press(key, element, { ...defaultOptions, ...options });
217
214
  }
218
215
  press.Escape = createPress("Escape");
219
216
  press.Backspace = createPress("Backspace");
package/esm/blur.js CHANGED
@@ -4,7 +4,6 @@ import {
4
4
  } from "./__chunks/SOWA2DKF.js";
5
5
  import "./__chunks/LK25WCYN.js";
6
6
  import "./__chunks/HFG3HB6M.js";
7
- import "./__chunks/SM5ASDQ3.js";
8
7
  export {
9
8
  blur
10
9
  };
package/esm/click.js CHANGED
@@ -1,16 +1,15 @@
1
1
  "use client";
2
2
  import {
3
3
  click
4
- } from "./__chunks/RTBDUQHD.js";
5
- import "./__chunks/BG5U5JFH.js";
4
+ } from "./__chunks/CLBHQ7IU.js";
5
+ import "./__chunks/CLGZ6LZL.js";
6
6
  import "./__chunks/DZ24E43J.js";
7
- import "./__chunks/Z7WVAAXJ.js";
7
+ import "./__chunks/SU4WSQ6S.js";
8
8
  import "./__chunks/SOWA2DKF.js";
9
9
  import "./__chunks/4SG6SLGL.js";
10
- import "./__chunks/NR24PD4G.js";
10
+ import "./__chunks/DHY47Z5Z.js";
11
11
  import "./__chunks/LK25WCYN.js";
12
12
  import "./__chunks/HFG3HB6M.js";
13
- import "./__chunks/SM5ASDQ3.js";
14
13
  export {
15
14
  click
16
15
  };
package/esm/dispatch.js CHANGED
@@ -3,7 +3,6 @@ import {
3
3
  dispatch
4
4
  } from "./__chunks/LK25WCYN.js";
5
5
  import "./__chunks/HFG3HB6M.js";
6
- import "./__chunks/SM5ASDQ3.js";
7
6
  export {
8
7
  dispatch
9
8
  };
package/esm/focus.js CHANGED
@@ -4,7 +4,6 @@ import {
4
4
  } from "./__chunks/4SG6SLGL.js";
5
5
  import "./__chunks/LK25WCYN.js";
6
6
  import "./__chunks/HFG3HB6M.js";
7
- import "./__chunks/SM5ASDQ3.js";
8
7
  export {
9
8
  focus
10
9
  };
package/esm/hover.js CHANGED
@@ -1,11 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  hover
4
- } from "./__chunks/BG5U5JFH.js";
4
+ } from "./__chunks/CLGZ6LZL.js";
5
5
  import "./__chunks/DZ24E43J.js";
6
6
  import "./__chunks/LK25WCYN.js";
7
7
  import "./__chunks/HFG3HB6M.js";
8
- import "./__chunks/SM5ASDQ3.js";
9
8
  export {
10
9
  hover
11
10
  };
package/esm/index.js CHANGED
@@ -5,33 +5,33 @@ import {
5
5
  } from "./__chunks/SB7WYA2U.js";
6
6
  import {
7
7
  press
8
- } from "./__chunks/OLDQVNUU.js";
8
+ } from "./__chunks/XHCPZXKA.js";
9
9
  import {
10
10
  q,
11
11
  query
12
- } from "./__chunks/DFUW3DFA.js";
12
+ } from "./__chunks/5P7UPGUI.js";
13
13
  import "./__chunks/CWTUOQ5Z.js";
14
14
  import {
15
15
  select
16
- } from "./__chunks/433S5VGJ.js";
16
+ } from "./__chunks/3NBNNSLU.js";
17
17
  import {
18
18
  tap
19
- } from "./__chunks/CSF4U66P.js";
19
+ } from "./__chunks/LFDLFIXJ.js";
20
20
  import {
21
21
  type
22
- } from "./__chunks/4VR4URFV.js";
22
+ } from "./__chunks/22KDRPLA.js";
23
23
  import {
24
24
  click
25
- } from "./__chunks/RTBDUQHD.js";
25
+ } from "./__chunks/CLBHQ7IU.js";
26
26
  import {
27
27
  hover
28
- } from "./__chunks/BG5U5JFH.js";
28
+ } from "./__chunks/CLGZ6LZL.js";
29
29
  import {
30
30
  sleep
31
31
  } from "./__chunks/DZ24E43J.js";
32
32
  import {
33
33
  mouseDown
34
- } from "./__chunks/Z7WVAAXJ.js";
34
+ } from "./__chunks/SU4WSQ6S.js";
35
35
  import {
36
36
  blur
37
37
  } from "./__chunks/SOWA2DKF.js";
@@ -40,12 +40,11 @@ import {
40
40
  } from "./__chunks/4SG6SLGL.js";
41
41
  import {
42
42
  mouseUp
43
- } from "./__chunks/NR24PD4G.js";
43
+ } from "./__chunks/DHY47Z5Z.js";
44
44
  import {
45
45
  dispatch
46
46
  } from "./__chunks/LK25WCYN.js";
47
47
  import "./__chunks/HFG3HB6M.js";
48
- import "./__chunks/SM5ASDQ3.js";
49
48
  export {
50
49
  blur,
51
50
  click,
package/esm/mouse-down.js CHANGED
@@ -1,12 +1,11 @@
1
1
  "use client";
2
2
  import {
3
3
  mouseDown
4
- } from "./__chunks/Z7WVAAXJ.js";
4
+ } from "./__chunks/SU4WSQ6S.js";
5
5
  import "./__chunks/SOWA2DKF.js";
6
6
  import "./__chunks/4SG6SLGL.js";
7
7
  import "./__chunks/LK25WCYN.js";
8
8
  import "./__chunks/HFG3HB6M.js";
9
- import "./__chunks/SM5ASDQ3.js";
10
9
  export {
11
10
  mouseDown
12
11
  };
package/esm/mouse-up.js CHANGED
@@ -1,10 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  mouseUp
4
- } from "./__chunks/NR24PD4G.js";
4
+ } from "./__chunks/DHY47Z5Z.js";
5
5
  import "./__chunks/LK25WCYN.js";
6
6
  import "./__chunks/HFG3HB6M.js";
7
- import "./__chunks/SM5ASDQ3.js";
8
7
  export {
9
8
  mouseUp
10
9
  };
package/esm/playwright.js CHANGED
@@ -2,15 +2,12 @@
2
2
  import {
3
3
  roles
4
4
  } from "./__chunks/CWTUOQ5Z.js";
5
- import {
6
- __spreadValues
7
- } from "./__chunks/SM5ASDQ3.js";
8
5
 
9
6
  // src/playwright.ts
10
7
  export * from "@playwright/test";
11
8
  function query(locator) {
12
9
  const roleQueries = roles.reduce((acc, role) => {
13
- acc[role] = (name, options) => locator.getByRole(role, __spreadValues({ name }, options));
10
+ acc[role] = (name, options) => locator.getByRole(role, { name, ...options });
14
11
  return acc;
15
12
  }, {});
16
13
  return roleQueries;