@zag-js/number-input 1.46.0 → 1.48.0

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 (41) hide show
  1. package/dist/cursor.d.mts +8 -10
  2. package/dist/cursor.d.ts +8 -10
  3. package/dist/cursor.js +65 -104
  4. package/dist/cursor.mjs +59 -77
  5. package/dist/index.d.mts +6 -9
  6. package/dist/index.d.ts +6 -9
  7. package/dist/index.js +12 -38
  8. package/dist/index.mjs +2 -7
  9. package/dist/number-input.anatomy.d.mts +2 -6
  10. package/dist/number-input.anatomy.d.ts +2 -6
  11. package/dist/number-input.anatomy.js +8 -42
  12. package/dist/number-input.anatomy.mjs +4 -16
  13. package/dist/number-input.connect.d.mts +3 -8
  14. package/dist/number-input.connect.d.ts +3 -8
  15. package/dist/number-input.connect.js +310 -310
  16. package/dist/number-input.connect.mjs +304 -284
  17. package/dist/number-input.dom.d.mts +28 -32
  18. package/dist/number-input.dom.d.ts +28 -32
  19. package/dist/number-input.dom.js +96 -138
  20. package/dist/number-input.dom.mjs +76 -97
  21. package/dist/number-input.machine.d.mts +2 -8
  22. package/dist/number-input.machine.d.ts +2 -8
  23. package/dist/number-input.machine.js +484 -460
  24. package/dist/number-input.machine.mjs +478 -440
  25. package/dist/number-input.props.d.mts +3 -9
  26. package/dist/number-input.props.d.ts +3 -9
  27. package/dist/number-input.props.js +40 -65
  28. package/dist/number-input.props.mjs +36 -39
  29. package/dist/number-input.translations.d.mts +3 -8
  30. package/dist/number-input.translations.d.ts +3 -8
  31. package/dist/number-input.translations.js +8 -31
  32. package/dist/number-input.translations.mjs +4 -6
  33. package/dist/number-input.types.d.mts +298 -300
  34. package/dist/number-input.types.d.ts +298 -300
  35. package/dist/number-input.types.js +4 -18
  36. package/dist/number-input.types.mjs +1 -0
  37. package/dist/number-input.utils.d.mts +9 -12
  38. package/dist/number-input.utils.d.ts +9 -12
  39. package/dist/number-input.utils.js +28 -57
  40. package/dist/number-input.utils.mjs +20 -28
  41. package/package.json +8 -8
@@ -1,289 +1,309 @@
1
- // src/number-input.connect.ts
2
- import {
3
- ariaAttr,
4
- dataAttr,
5
- getEventPoint,
6
- getEventStepValue,
7
- getWindow,
8
- isComposingEvent,
9
- isLeftClick,
10
- isModifierKey,
11
- raf,
12
- setCaretToEnd
13
- } from "@zag-js/dom-query";
14
- import { mergeWithDefault, roundToDpr } from "@zag-js/utils";
15
1
  import { recordCursor } from "./cursor.mjs";
16
2
  import { parts } from "./number-input.anatomy.mjs";
17
- import * as dom from "./number-input.dom.mjs";
3
+ import { getDecrementTriggerId, getIncrementTriggerId, getInputEl, getInputId, getLabelId, getRootId, getScrubberId } from "./number-input.dom.mjs";
18
4
  import { defaultTranslations } from "./number-input.translations.mjs";
5
+ import { ariaAttr, dataAttr, getEventPoint, getEventStepValue, getWindow, isComposingEvent, isLeftClick, isModifierKey, raf, setCaretToEnd } from "@zag-js/dom-query";
6
+ import { mergeWithDefault, roundToDpr } from "@zag-js/utils";
7
+ // src/number-input.connect.ts
19
8
  function connect(service, normalize) {
20
- const { state, send, prop, scope, computed } = service;
21
- const focused = state.hasTag("focus");
22
- const disabled = computed("isDisabled");
23
- const readOnly = !!prop("readOnly");
24
- const required = !!prop("required");
25
- const scrubbing = state.matches("scrubbing");
26
- const empty = computed("isValueEmpty");
27
- const invalid = prop("invalid") !== void 0 ? !!prop("invalid") : computed("isOutOfRange");
28
- const isIncrementDisabled = disabled || !computed("canIncrement") || readOnly;
29
- const isDecrementDisabled = disabled || !computed("canDecrement") || readOnly;
30
- const translations = mergeWithDefault(defaultTranslations, prop("translations"));
31
- return {
32
- focused,
33
- invalid,
34
- empty,
35
- value: computed("formattedValue"),
36
- valueAsNumber: computed("valueAsNumber"),
37
- setValue(value) {
38
- send({ type: "VALUE.SET", value });
39
- },
40
- clearValue() {
41
- send({ type: "VALUE.CLEAR" });
42
- },
43
- increment() {
44
- send({ type: "VALUE.INCREMENT" });
45
- },
46
- decrement() {
47
- send({ type: "VALUE.DECREMENT" });
48
- },
49
- setToMax() {
50
- send({ type: "VALUE.SET", value: prop("max") });
51
- },
52
- setToMin() {
53
- send({ type: "VALUE.SET", value: prop("min") });
54
- },
55
- focus() {
56
- dom.getInputEl(scope)?.focus();
57
- },
58
- getRootProps() {
59
- return normalize.element({
60
- id: dom.getRootId(scope),
61
- ...parts.root.attrs,
62
- dir: prop("dir"),
63
- "data-disabled": dataAttr(disabled),
64
- "data-focus": dataAttr(focused),
65
- "data-invalid": dataAttr(invalid),
66
- "data-scrubbing": dataAttr(scrubbing)
67
- });
68
- },
69
- getLabelProps() {
70
- return normalize.label({
71
- ...parts.label.attrs,
72
- dir: prop("dir"),
73
- "data-disabled": dataAttr(disabled),
74
- "data-focus": dataAttr(focused),
75
- "data-invalid": dataAttr(invalid),
76
- "data-required": dataAttr(required),
77
- "data-scrubbing": dataAttr(scrubbing),
78
- id: dom.getLabelId(scope),
79
- htmlFor: dom.getInputId(scope),
80
- onClick() {
81
- raf(() => {
82
- setCaretToEnd(dom.getInputEl(scope));
83
- });
84
- }
85
- });
86
- },
87
- getControlProps() {
88
- return normalize.element({
89
- ...parts.control.attrs,
90
- dir: prop("dir"),
91
- role: "group",
92
- "aria-disabled": disabled,
93
- "data-focus": dataAttr(focused),
94
- "data-disabled": dataAttr(disabled),
95
- "data-invalid": dataAttr(invalid),
96
- "data-scrubbing": dataAttr(scrubbing),
97
- "aria-invalid": ariaAttr(invalid)
98
- });
99
- },
100
- getValueTextProps() {
101
- return normalize.element({
102
- ...parts.valueText.attrs,
103
- dir: prop("dir"),
104
- "data-disabled": dataAttr(disabled),
105
- "data-invalid": dataAttr(invalid),
106
- "data-focus": dataAttr(focused),
107
- "data-scrubbing": dataAttr(scrubbing)
108
- });
109
- },
110
- getInputProps() {
111
- return normalize.input({
112
- ...parts.input.attrs,
113
- dir: prop("dir"),
114
- name: prop("name"),
115
- form: prop("form"),
116
- id: dom.getInputId(scope),
117
- role: "spinbutton",
118
- defaultValue: computed("formattedValue"),
119
- pattern: prop("formatOptions") ? void 0 : prop("pattern"),
120
- inputMode: prop("inputMode"),
121
- "aria-invalid": ariaAttr(invalid),
122
- "data-invalid": dataAttr(invalid),
123
- disabled,
124
- "data-disabled": dataAttr(disabled),
125
- readOnly,
126
- required: prop("required"),
127
- autoComplete: "off",
128
- autoCorrect: "off",
129
- spellCheck: "false",
130
- type: "text",
131
- "aria-roledescription": "numberfield",
132
- "aria-valuemin": prop("min"),
133
- "aria-valuemax": prop("max"),
134
- "aria-valuenow": Number.isNaN(computed("valueAsNumber")) ? void 0 : computed("valueAsNumber"),
135
- "aria-valuetext": computed("valueText"),
136
- "data-scrubbing": dataAttr(scrubbing),
137
- onFocus() {
138
- send({ type: "INPUT.FOCUS" });
139
- },
140
- onBlur() {
141
- send({ type: "INPUT.BLUR" });
142
- },
143
- onInput(event) {
144
- const selection = recordCursor(event.currentTarget, scope);
145
- send({ type: "INPUT.CHANGE", target: event.currentTarget, hint: "set", selection });
146
- },
147
- onBeforeInput(event) {
148
- try {
149
- const { selectionStart, selectionEnd, value } = event.currentTarget;
150
- const nextValue = value.slice(0, selectionStart) + (event.data ?? "") + value.slice(selectionEnd);
151
- const isValid = computed("parser").isValidPartialNumber(nextValue);
152
- if (!isValid) {
153
- event.preventDefault();
154
- }
155
- } catch {
156
- }
157
- },
158
- onKeyDown(event) {
159
- if (event.defaultPrevented) return;
160
- if (readOnly) return;
161
- if (isComposingEvent(event)) return;
162
- const step = getEventStepValue(event, {
163
- step: prop("step"),
164
- largeStep: prop("largeStep"),
165
- smallStep: prop("smallStep")
166
- });
167
- const keyMap = {
168
- ArrowUp() {
169
- send({ type: "INPUT.ARROW_UP", step });
170
- event.preventDefault();
171
- },
172
- ArrowDown() {
173
- send({ type: "INPUT.ARROW_DOWN", step });
174
- event.preventDefault();
175
- },
176
- Home() {
177
- if (isModifierKey(event)) return;
178
- send({ type: "INPUT.HOME" });
179
- event.preventDefault();
180
- },
181
- End() {
182
- if (isModifierKey(event)) return;
183
- send({ type: "INPUT.END" });
184
- event.preventDefault();
185
- },
186
- Enter(event2) {
187
- const selection = recordCursor(event2.currentTarget, scope);
188
- send({ type: "INPUT.ENTER", selection });
189
- }
190
- };
191
- const exec = keyMap[event.key];
192
- exec?.(event);
193
- }
194
- });
195
- },
196
- getDecrementTriggerProps() {
197
- return normalize.button({
198
- ...parts.decrementTrigger.attrs,
199
- dir: prop("dir"),
200
- id: dom.getDecrementTriggerId(scope),
201
- disabled: isDecrementDisabled,
202
- "data-disabled": dataAttr(isDecrementDisabled),
203
- "aria-label": translations.decrementLabel,
204
- type: "button",
205
- tabIndex: -1,
206
- "aria-controls": dom.getInputId(scope),
207
- "data-scrubbing": dataAttr(scrubbing),
208
- onPointerDown(event) {
209
- if (isDecrementDisabled) return;
210
- if (!isLeftClick(event)) return;
211
- send({ type: "TRIGGER.PRESS_DOWN", hint: "decrement", pointerType: event.pointerType });
212
- if (event.pointerType === "mouse") {
213
- event.preventDefault();
214
- }
215
- if (event.pointerType === "touch") {
216
- event.currentTarget?.focus({ preventScroll: true });
217
- }
218
- },
219
- onPointerUp(event) {
220
- send({ type: "TRIGGER.PRESS_UP", hint: "decrement", pointerType: event.pointerType });
221
- },
222
- onPointerLeave() {
223
- if (isDecrementDisabled) return;
224
- send({ type: "TRIGGER.PRESS_UP", hint: "decrement" });
225
- }
226
- });
227
- },
228
- getIncrementTriggerProps() {
229
- return normalize.button({
230
- ...parts.incrementTrigger.attrs,
231
- dir: prop("dir"),
232
- id: dom.getIncrementTriggerId(scope),
233
- disabled: isIncrementDisabled,
234
- "data-disabled": dataAttr(isIncrementDisabled),
235
- "aria-label": translations.incrementLabel,
236
- type: "button",
237
- tabIndex: -1,
238
- "aria-controls": dom.getInputId(scope),
239
- "data-scrubbing": dataAttr(scrubbing),
240
- onPointerDown(event) {
241
- if (isIncrementDisabled || !isLeftClick(event)) return;
242
- send({ type: "TRIGGER.PRESS_DOWN", hint: "increment", pointerType: event.pointerType });
243
- if (event.pointerType === "mouse") {
244
- event.preventDefault();
245
- }
246
- if (event.pointerType === "touch") {
247
- event.currentTarget?.focus({ preventScroll: true });
248
- }
249
- },
250
- onPointerUp(event) {
251
- send({ type: "TRIGGER.PRESS_UP", hint: "increment", pointerType: event.pointerType });
252
- },
253
- onPointerLeave(event) {
254
- send({ type: "TRIGGER.PRESS_UP", hint: "increment", pointerType: event.pointerType });
255
- }
256
- });
257
- },
258
- getScrubberProps() {
259
- return normalize.element({
260
- ...parts.scrubber.attrs,
261
- dir: prop("dir"),
262
- "data-disabled": dataAttr(disabled),
263
- id: dom.getScrubberId(scope),
264
- role: "presentation",
265
- "data-scrubbing": dataAttr(scrubbing),
266
- onMouseDown(event) {
267
- if (disabled) return;
268
- if (!isLeftClick(event)) return;
269
- const point = getEventPoint(event);
270
- const win = getWindow(event.currentTarget);
271
- const dpr = win.devicePixelRatio;
272
- point.x = point.x - roundToDpr(7.5, dpr);
273
- point.y = point.y - roundToDpr(7.5, dpr);
274
- send({ type: "SCRUBBER.PRESS_DOWN", point });
275
- event.preventDefault();
276
- raf(() => {
277
- setCaretToEnd(dom.getInputEl(scope));
278
- });
279
- },
280
- style: {
281
- cursor: disabled ? void 0 : "ew-resize"
282
- }
283
- });
284
- }
285
- };
9
+ const { state, send, prop, scope, computed } = service;
10
+ const focused = state.hasTag("focus");
11
+ const disabled = computed("isDisabled");
12
+ const readOnly = !!prop("readOnly");
13
+ const required = !!prop("required");
14
+ const scrubbing = state.matches("scrubbing");
15
+ const empty = computed("isValueEmpty");
16
+ const invalid = prop("invalid") !== void 0 ? !!prop("invalid") : computed("isOutOfRange");
17
+ const isIncrementDisabled = disabled || !computed("canIncrement") || readOnly;
18
+ const isDecrementDisabled = disabled || !computed("canDecrement") || readOnly;
19
+ const translations = mergeWithDefault(defaultTranslations, prop("translations"));
20
+ return {
21
+ focused,
22
+ invalid,
23
+ empty,
24
+ value: computed("formattedValue"),
25
+ valueAsNumber: computed("valueAsNumber"),
26
+ setValue(value) {
27
+ send({
28
+ type: "VALUE.SET",
29
+ value
30
+ });
31
+ },
32
+ clearValue() {
33
+ send({ type: "VALUE.CLEAR" });
34
+ },
35
+ increment() {
36
+ send({ type: "VALUE.INCREMENT" });
37
+ },
38
+ decrement() {
39
+ send({ type: "VALUE.DECREMENT" });
40
+ },
41
+ setToMax() {
42
+ send({
43
+ type: "VALUE.SET",
44
+ value: prop("max")
45
+ });
46
+ },
47
+ setToMin() {
48
+ send({
49
+ type: "VALUE.SET",
50
+ value: prop("min")
51
+ });
52
+ },
53
+ focus() {
54
+ getInputEl(scope)?.focus();
55
+ },
56
+ getRootProps() {
57
+ return normalize.element({
58
+ id: getRootId(scope),
59
+ ...parts.root.attrs,
60
+ dir: prop("dir"),
61
+ "data-disabled": dataAttr(disabled),
62
+ "data-focus": dataAttr(focused),
63
+ "data-invalid": dataAttr(invalid),
64
+ "data-scrubbing": dataAttr(scrubbing)
65
+ });
66
+ },
67
+ getLabelProps() {
68
+ return normalize.label({
69
+ ...parts.label.attrs,
70
+ dir: prop("dir"),
71
+ "data-disabled": dataAttr(disabled),
72
+ "data-focus": dataAttr(focused),
73
+ "data-invalid": dataAttr(invalid),
74
+ "data-required": dataAttr(required),
75
+ "data-scrubbing": dataAttr(scrubbing),
76
+ id: getLabelId(scope),
77
+ htmlFor: getInputId(scope),
78
+ onClick() {
79
+ raf(() => {
80
+ setCaretToEnd(getInputEl(scope));
81
+ });
82
+ }
83
+ });
84
+ },
85
+ getControlProps() {
86
+ return normalize.element({
87
+ ...parts.control.attrs,
88
+ dir: prop("dir"),
89
+ role: "group",
90
+ "aria-disabled": disabled,
91
+ "data-focus": dataAttr(focused),
92
+ "data-disabled": dataAttr(disabled),
93
+ "data-invalid": dataAttr(invalid),
94
+ "data-scrubbing": dataAttr(scrubbing),
95
+ "aria-invalid": ariaAttr(invalid)
96
+ });
97
+ },
98
+ getValueTextProps() {
99
+ return normalize.element({
100
+ ...parts.valueText.attrs,
101
+ dir: prop("dir"),
102
+ "data-disabled": dataAttr(disabled),
103
+ "data-invalid": dataAttr(invalid),
104
+ "data-focus": dataAttr(focused),
105
+ "data-scrubbing": dataAttr(scrubbing)
106
+ });
107
+ },
108
+ getInputProps() {
109
+ return normalize.input({
110
+ ...parts.input.attrs,
111
+ dir: prop("dir"),
112
+ name: prop("name"),
113
+ form: prop("form"),
114
+ id: getInputId(scope),
115
+ role: "spinbutton",
116
+ defaultValue: computed("formattedValue"),
117
+ pattern: prop("formatOptions") ? void 0 : prop("pattern"),
118
+ inputMode: prop("inputMode"),
119
+ "aria-invalid": ariaAttr(invalid),
120
+ "data-invalid": dataAttr(invalid),
121
+ disabled,
122
+ "data-disabled": dataAttr(disabled),
123
+ readOnly,
124
+ required: prop("required"),
125
+ autoComplete: "off",
126
+ autoCorrect: "off",
127
+ spellCheck: "false",
128
+ type: "text",
129
+ "aria-roledescription": "numberfield",
130
+ "aria-valuemin": prop("min"),
131
+ "aria-valuemax": prop("max"),
132
+ "aria-valuenow": Number.isNaN(computed("valueAsNumber")) ? void 0 : computed("valueAsNumber"),
133
+ "aria-valuetext": computed("valueText"),
134
+ "data-scrubbing": dataAttr(scrubbing),
135
+ onFocus() {
136
+ send({ type: "INPUT.FOCUS" });
137
+ },
138
+ onBlur() {
139
+ send({ type: "INPUT.BLUR" });
140
+ },
141
+ onInput(event) {
142
+ const selection = recordCursor(event.currentTarget, scope);
143
+ send({
144
+ type: "INPUT.CHANGE",
145
+ target: event.currentTarget,
146
+ hint: "set",
147
+ selection
148
+ });
149
+ },
150
+ onBeforeInput(event) {
151
+ try {
152
+ const { selectionStart, selectionEnd, value } = event.currentTarget;
153
+ const nextValue = value.slice(0, selectionStart) + (event.data ?? "") + value.slice(selectionEnd);
154
+ if (!computed("parser").isValidPartialNumber(nextValue)) event.preventDefault();
155
+ } catch {}
156
+ },
157
+ onKeyDown(event) {
158
+ if (event.defaultPrevented) return;
159
+ if (readOnly) return;
160
+ if (isComposingEvent(event)) return;
161
+ const step = getEventStepValue(event, {
162
+ step: prop("step"),
163
+ largeStep: prop("largeStep"),
164
+ smallStep: prop("smallStep")
165
+ });
166
+ const exec = {
167
+ ArrowUp() {
168
+ send({
169
+ type: "INPUT.ARROW_UP",
170
+ step
171
+ });
172
+ event.preventDefault();
173
+ },
174
+ ArrowDown() {
175
+ send({
176
+ type: "INPUT.ARROW_DOWN",
177
+ step
178
+ });
179
+ event.preventDefault();
180
+ },
181
+ Home() {
182
+ if (isModifierKey(event)) return;
183
+ send({ type: "INPUT.HOME" });
184
+ event.preventDefault();
185
+ },
186
+ End() {
187
+ if (isModifierKey(event)) return;
188
+ send({ type: "INPUT.END" });
189
+ event.preventDefault();
190
+ },
191
+ Enter(event) {
192
+ const selection = recordCursor(event.currentTarget, scope);
193
+ send({
194
+ type: "INPUT.ENTER",
195
+ selection
196
+ });
197
+ }
198
+ }[event.key];
199
+ exec?.(event);
200
+ }
201
+ });
202
+ },
203
+ getDecrementTriggerProps() {
204
+ return normalize.button({
205
+ ...parts.decrementTrigger.attrs,
206
+ dir: prop("dir"),
207
+ id: getDecrementTriggerId(scope),
208
+ disabled: isDecrementDisabled,
209
+ "data-disabled": dataAttr(isDecrementDisabled),
210
+ "aria-label": translations.decrementLabel,
211
+ type: "button",
212
+ tabIndex: -1,
213
+ "aria-controls": getInputId(scope),
214
+ "data-scrubbing": dataAttr(scrubbing),
215
+ onPointerDown(event) {
216
+ if (isDecrementDisabled) return;
217
+ if (!isLeftClick(event)) return;
218
+ send({
219
+ type: "TRIGGER.PRESS_DOWN",
220
+ hint: "decrement",
221
+ pointerType: event.pointerType
222
+ });
223
+ if (event.pointerType === "mouse") event.preventDefault();
224
+ if (event.pointerType === "touch") event.currentTarget?.focus({ preventScroll: true });
225
+ },
226
+ onPointerUp(event) {
227
+ send({
228
+ type: "TRIGGER.PRESS_UP",
229
+ hint: "decrement",
230
+ pointerType: event.pointerType
231
+ });
232
+ },
233
+ onPointerLeave() {
234
+ if (isDecrementDisabled) return;
235
+ send({
236
+ type: "TRIGGER.PRESS_UP",
237
+ hint: "decrement"
238
+ });
239
+ }
240
+ });
241
+ },
242
+ getIncrementTriggerProps() {
243
+ return normalize.button({
244
+ ...parts.incrementTrigger.attrs,
245
+ dir: prop("dir"),
246
+ id: getIncrementTriggerId(scope),
247
+ disabled: isIncrementDisabled,
248
+ "data-disabled": dataAttr(isIncrementDisabled),
249
+ "aria-label": translations.incrementLabel,
250
+ type: "button",
251
+ tabIndex: -1,
252
+ "aria-controls": getInputId(scope),
253
+ "data-scrubbing": dataAttr(scrubbing),
254
+ onPointerDown(event) {
255
+ if (isIncrementDisabled || !isLeftClick(event)) return;
256
+ send({
257
+ type: "TRIGGER.PRESS_DOWN",
258
+ hint: "increment",
259
+ pointerType: event.pointerType
260
+ });
261
+ if (event.pointerType === "mouse") event.preventDefault();
262
+ if (event.pointerType === "touch") event.currentTarget?.focus({ preventScroll: true });
263
+ },
264
+ onPointerUp(event) {
265
+ send({
266
+ type: "TRIGGER.PRESS_UP",
267
+ hint: "increment",
268
+ pointerType: event.pointerType
269
+ });
270
+ },
271
+ onPointerLeave(event) {
272
+ send({
273
+ type: "TRIGGER.PRESS_UP",
274
+ hint: "increment",
275
+ pointerType: event.pointerType
276
+ });
277
+ }
278
+ });
279
+ },
280
+ getScrubberProps() {
281
+ return normalize.element({
282
+ ...parts.scrubber.attrs,
283
+ dir: prop("dir"),
284
+ "data-disabled": dataAttr(disabled),
285
+ id: getScrubberId(scope),
286
+ role: "presentation",
287
+ "data-scrubbing": dataAttr(scrubbing),
288
+ onMouseDown(event) {
289
+ if (disabled) return;
290
+ if (!isLeftClick(event)) return;
291
+ const point = getEventPoint(event);
292
+ const dpr = getWindow(event.currentTarget).devicePixelRatio;
293
+ point.x = point.x - roundToDpr(7.5, dpr);
294
+ point.y = point.y - roundToDpr(7.5, dpr);
295
+ send({
296
+ type: "SCRUBBER.PRESS_DOWN",
297
+ point
298
+ });
299
+ event.preventDefault();
300
+ raf(() => {
301
+ setCaretToEnd(getInputEl(scope));
302
+ });
303
+ },
304
+ style: { cursor: disabled ? void 0 : "ew-resize" }
305
+ });
306
+ }
307
+ };
286
308
  }
287
- export {
288
- connect
289
- };
309
+ export { connect };