@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,313 +1,311 @@
1
- import { NumberParser } from '@internationalized/number';
2
- import { Machine, EventObject, Service } from '@zag-js/core';
3
- import { PropTypes, RequiredBy, LocaleProperties, CommonProperties } from '@zag-js/types';
4
-
5
- interface ValueChangeDetails {
6
- value: string;
7
- valueAsNumber: number;
1
+ import { EventObject, Machine, Service } from "@zag-js/core";
2
+ import { CommonProperties, LocaleProperties, PropTypes, RequiredBy } from "@zag-js/types";
3
+ import { NumberParser } from "@internationalized/number";
4
+ export interface ValueChangeDetails {
5
+ value: string;
6
+ valueAsNumber: number;
8
7
  }
9
- interface FocusChangeDetails extends ValueChangeDetails {
10
- focused: boolean;
8
+ export interface FocusChangeDetails extends ValueChangeDetails {
9
+ focused: boolean;
11
10
  }
12
- type ValidityState = "rangeUnderflow" | "rangeOverflow";
13
- interface ValueInvalidDetails extends ValueChangeDetails {
14
- reason: ValidityState;
11
+ export type ValidityState = "rangeUnderflow" | "rangeOverflow";
12
+ export interface ValueInvalidDetails extends ValueChangeDetails {
13
+ reason: ValidityState;
15
14
  }
16
- type InputMode = "text" | "tel" | "numeric" | "decimal";
17
- interface ElementIds {
18
- root?: string | undefined;
19
- label?: string | undefined;
20
- input?: string | undefined;
21
- incrementTrigger?: string | undefined;
22
- decrementTrigger?: string | undefined;
23
- scrubber?: string | undefined;
15
+ export type InputMode = "text" | "tel" | "numeric" | "decimal";
16
+ export interface ElementIds {
17
+ root?: string | undefined;
18
+ label?: string | undefined;
19
+ input?: string | undefined;
20
+ incrementTrigger?: string | undefined;
21
+ decrementTrigger?: string | undefined;
22
+ scrubber?: string | undefined;
24
23
  }
25
- interface IntlTranslations {
26
- /**
27
- * Function that returns the human-readable value.
28
- * It is used to set the `aria-valuetext` property of the input
29
- */
30
- valueText?: ((value: string) => string) | undefined;
31
- /**
32
- * The label foe the increment button
33
- */
34
- incrementLabel?: string | undefined;
35
- /**
36
- * The label for the decrement button
37
- */
38
- decrementLabel?: string | undefined;
24
+ export interface IntlTranslations {
25
+ /**
26
+ * Function that returns the human-readable value.
27
+ * It is used to set the `aria-valuetext` property of the input
28
+ */
29
+ valueText?: ((value: string) => string) | undefined;
30
+ /**
31
+ * The label foe the increment button
32
+ */
33
+ incrementLabel?: string | undefined;
34
+ /**
35
+ * The label for the decrement button
36
+ */
37
+ decrementLabel?: string | undefined;
39
38
  }
40
- interface NumberInputProps extends LocaleProperties, CommonProperties {
41
- /**
42
- * The ids of the elements in the number input. Useful for composition.
43
- */
44
- ids?: ElementIds | undefined;
45
- /**
46
- * The name attribute of the number input. Useful for form submission.
47
- */
48
- name?: string | undefined;
49
- /**
50
- * The associate form of the input element.
51
- */
52
- form?: string | undefined;
53
- /**
54
- * Whether the number input is disabled.
55
- */
56
- disabled?: boolean | undefined;
57
- /**
58
- * Whether the number input is readonly
59
- */
60
- readOnly?: boolean | undefined;
61
- /**
62
- * Whether the number input value is invalid.
63
- */
64
- invalid?: boolean | undefined;
65
- /**
66
- * Whether the number input is required
67
- */
68
- required?: boolean | undefined;
69
- /**
70
- * The pattern used to check the <input> element's value against
71
- *
72
- * @default "-?[0-9]*(.[0-9]+)?"
73
- */
74
- pattern?: string | undefined;
75
- /**
76
- * The controlled value of the input
77
- */
78
- value?: string | undefined;
79
- /**
80
- * The initial value of the input when rendered.
81
- * Use when you don't need to control the value of the input.
82
- */
83
- defaultValue?: string | undefined;
84
- /**
85
- * The minimum value of the number input
86
- * @default Number.MIN_SAFE_INTEGER
87
- */
88
- min?: number | undefined;
89
- /**
90
- * The maximum value of the number input
91
- * @default Number.MAX_SAFE_INTEGER
92
- */
93
- max?: number | undefined;
94
- /**
95
- * The amount to increment or decrement the value by
96
- * @default 1
97
- */
98
- step?: number | undefined;
99
- /**
100
- * The amount to increment or decrement the value by when the `Shift` key is held.
101
- * @default 10 * step
102
- */
103
- largeStep?: number | undefined;
104
- /**
105
- * The amount to increment or decrement the value by when the `Alt` key is held.
106
- * @default step / 10
107
- */
108
- smallStep?: number | undefined;
109
- /**
110
- * Whether to allow mouse wheel to change the value
111
- */
112
- allowMouseWheel?: boolean | undefined;
113
- /**
114
- * Whether to allow the value overflow the min/max range
115
- * @default true
116
- */
117
- allowOverflow?: boolean | undefined;
118
- /**
119
- * Whether to clamp the value when the input loses focus (blur)
120
- * @default true
121
- */
122
- clampValueOnBlur?: boolean | undefined;
123
- /**
124
- * Whether to focus input when the value changes
125
- * @default true
126
- */
127
- focusInputOnChange?: boolean | undefined;
128
- /**
129
- * Specifies the localized strings that identifies the accessibility elements and their states
130
- */
131
- translations?: IntlTranslations | undefined;
132
- /**
133
- * The options to pass to the `Intl.NumberFormat` constructor
134
- */
135
- formatOptions?: Intl.NumberFormatOptions | undefined;
136
- /**
137
- * Hints at the type of data that might be entered by the user. It also determines
138
- * the type of keyboard shown to the user on mobile devices
139
- * @default "decimal"
140
- */
141
- inputMode?: InputMode | undefined;
142
- /**
143
- * Function invoked when the value changes
144
- */
145
- onValueChange?: ((details: ValueChangeDetails) => void) | undefined;
146
- /**
147
- * Function invoked when the value overflows or underflows the min/max range
148
- */
149
- onValueInvalid?: ((details: ValueInvalidDetails) => void) | undefined;
150
- /**
151
- * Function invoked when the number input is focused
152
- */
153
- onFocusChange?: ((details: FocusChangeDetails) => void) | undefined;
154
- /**
155
- * Function invoked when the value is committed (when the input is blurred or the Enter key is pressed)
156
- */
157
- onValueCommit?: ((details: ValueChangeDetails) => void) | undefined;
158
- /**
159
- * Whether to spin the value when the increment/decrement button is pressed
160
- * @default true
161
- */
162
- spinOnPress?: boolean | undefined;
39
+ export interface NumberInputProps extends LocaleProperties, CommonProperties {
40
+ /**
41
+ * The ids of the elements in the number input. Useful for composition.
42
+ */
43
+ ids?: ElementIds | undefined;
44
+ /**
45
+ * The name attribute of the number input. Useful for form submission.
46
+ */
47
+ name?: string | undefined;
48
+ /**
49
+ * The associate form of the input element.
50
+ */
51
+ form?: string | undefined;
52
+ /**
53
+ * Whether the number input is disabled.
54
+ */
55
+ disabled?: boolean | undefined;
56
+ /**
57
+ * Whether the number input is readonly
58
+ */
59
+ readOnly?: boolean | undefined;
60
+ /**
61
+ * Whether the number input value is invalid.
62
+ */
63
+ invalid?: boolean | undefined;
64
+ /**
65
+ * Whether the number input is required
66
+ */
67
+ required?: boolean | undefined;
68
+ /**
69
+ * The pattern used to check the <input> element's value against
70
+ *
71
+ * @default "-?[0-9]*(.[0-9]+)?"
72
+ */
73
+ pattern?: string | undefined;
74
+ /**
75
+ * The controlled value of the input
76
+ */
77
+ value?: string | undefined;
78
+ /**
79
+ * The initial value of the input when rendered.
80
+ * Use when you don't need to control the value of the input.
81
+ */
82
+ defaultValue?: string | undefined;
83
+ /**
84
+ * The minimum value of the number input
85
+ * @default Number.MIN_SAFE_INTEGER
86
+ */
87
+ min?: number | undefined;
88
+ /**
89
+ * The maximum value of the number input
90
+ * @default Number.MAX_SAFE_INTEGER
91
+ */
92
+ max?: number | undefined;
93
+ /**
94
+ * The amount to increment or decrement the value by
95
+ * @default 1
96
+ */
97
+ step?: number | undefined;
98
+ /**
99
+ * The amount to increment or decrement the value by when the `Shift` key is held.
100
+ * @default 10 * step
101
+ */
102
+ largeStep?: number | undefined;
103
+ /**
104
+ * The amount to increment or decrement the value by when the `Alt` key is held.
105
+ * @default step / 10
106
+ */
107
+ smallStep?: number | undefined;
108
+ /**
109
+ * Whether to allow mouse wheel to change the value
110
+ */
111
+ allowMouseWheel?: boolean | undefined;
112
+ /**
113
+ * Whether to allow the value overflow the min/max range
114
+ * @default true
115
+ */
116
+ allowOverflow?: boolean | undefined;
117
+ /**
118
+ * Whether to clamp the value when the input loses focus (blur)
119
+ * @default true
120
+ */
121
+ clampValueOnBlur?: boolean | undefined;
122
+ /**
123
+ * Whether to focus input when the value changes
124
+ * @default true
125
+ */
126
+ focusInputOnChange?: boolean | undefined;
127
+ /**
128
+ * Specifies the localized strings that identifies the accessibility elements and their states
129
+ */
130
+ translations?: IntlTranslations | undefined;
131
+ /**
132
+ * The options to pass to the `Intl.NumberFormat` constructor
133
+ */
134
+ formatOptions?: Intl.NumberFormatOptions | undefined;
135
+ /**
136
+ * Hints at the type of data that might be entered by the user. It also determines
137
+ * the type of keyboard shown to the user on mobile devices
138
+ * @default "decimal"
139
+ */
140
+ inputMode?: InputMode | undefined;
141
+ /**
142
+ * Function invoked when the value changes
143
+ */
144
+ onValueChange?: ((details: ValueChangeDetails) => void) | undefined;
145
+ /**
146
+ * Function invoked when the value overflows or underflows the min/max range
147
+ */
148
+ onValueInvalid?: ((details: ValueInvalidDetails) => void) | undefined;
149
+ /**
150
+ * Function invoked when the number input is focused
151
+ */
152
+ onFocusChange?: ((details: FocusChangeDetails) => void) | undefined;
153
+ /**
154
+ * Function invoked when the value is committed (when the input is blurred or the Enter key is pressed)
155
+ */
156
+ onValueCommit?: ((details: ValueChangeDetails) => void) | undefined;
157
+ /**
158
+ * Whether to spin the value when the increment/decrement button is pressed
159
+ * @default true
160
+ */
161
+ spinOnPress?: boolean | undefined;
163
162
  }
164
163
  type PropsWithDefault = "dir" | "locale" | "focusInputOnChange" | "clampValueOnBlur" | "allowOverflow" | "inputMode" | "pattern" | "step" | "largeStep" | "smallStep" | "spinOnPress" | "min" | "max";
165
164
  type ComputedContext = Readonly<{
166
- /**
167
- * The value of the input as a number
168
- */
169
- valueAsNumber: number;
170
- /**
171
- * Whether the value is at the min
172
- */
173
- isAtMin: boolean;
174
- /**
175
- * Whether the value is at the max
176
- */
177
- isAtMax: boolean;
178
- /**
179
- * Whether the value is out of the min/max range
180
- */
181
- isOutOfRange: boolean;
182
- /**
183
- * Whether the value is empty
184
- */
185
- isValueEmpty: boolean;
186
- /**
187
- * Whether the color picker is disabled
188
- */
189
- isDisabled: boolean;
190
- /**
191
- * Whether the increment button is enabled
192
- */
193
- canIncrement: boolean;
194
- /**
195
- * Whether the decrement button is enabled
196
- */
197
- canDecrement: boolean;
198
- /**
199
- * The `aria-valuetext` attribute of the input
200
- */
201
- valueText: string | undefined;
202
- /**
203
- * The formatted value of the input
204
- */
205
- formattedValue: string;
206
- /**
207
- * Whether the writing direction is RTL
208
- */
209
- isRtl: boolean;
210
- /**
211
- * The number i18n formatter
212
- */
213
- formatter: Intl.NumberFormat;
214
- /**
215
- * The number i18n parser
216
- */
217
- parser: NumberParser;
165
+ /**
166
+ * The value of the input as a number
167
+ */
168
+ valueAsNumber: number;
169
+ /**
170
+ * Whether the value is at the min
171
+ */
172
+ isAtMin: boolean;
173
+ /**
174
+ * Whether the value is at the max
175
+ */
176
+ isAtMax: boolean;
177
+ /**
178
+ * Whether the value is out of the min/max range
179
+ */
180
+ isOutOfRange: boolean;
181
+ /**
182
+ * Whether the value is empty
183
+ */
184
+ isValueEmpty: boolean;
185
+ /**
186
+ * Whether the color picker is disabled
187
+ */
188
+ isDisabled: boolean;
189
+ /**
190
+ * Whether the increment button is enabled
191
+ */
192
+ canIncrement: boolean;
193
+ /**
194
+ * Whether the decrement button is enabled
195
+ */
196
+ canDecrement: boolean;
197
+ /**
198
+ * The `aria-valuetext` attribute of the input
199
+ */
200
+ valueText: string | undefined;
201
+ /**
202
+ * The formatted value of the input
203
+ */
204
+ formattedValue: string;
205
+ /**
206
+ * Whether the writing direction is RTL
207
+ */
208
+ isRtl: boolean;
209
+ /**
210
+ * The number i18n formatter
211
+ */
212
+ formatter: Intl.NumberFormat;
213
+ /**
214
+ * The number i18n parser
215
+ */
216
+ parser: NumberParser;
218
217
  }>;
219
- type HintValue = "increment" | "decrement";
218
+ export type HintValue = "increment" | "decrement";
220
219
  interface PrivateContext {
221
- /**
222
- * The hint that determines if we're incrementing or decrementing
223
- */
224
- hint: HintValue | null;
225
- /**
226
- * The scrubber cursor position
227
- */
228
- scrubberCursorPoint: {
229
- x: number;
230
- y: number;
231
- } | null;
232
- /**
233
- * Whether the checkbox's fieldset is disabled
234
- */
235
- fieldsetDisabled: boolean;
236
- /**
237
- * The value of the input
238
- */
239
- value: string;
220
+ /**
221
+ * The hint that determines if we're incrementing or decrementing
222
+ */
223
+ hint: HintValue | null;
224
+ /**
225
+ * The scrubber cursor position
226
+ */
227
+ scrubberCursorPoint: {
228
+ x: number;
229
+ y: number;
230
+ } | null;
231
+ /**
232
+ * Whether the checkbox's fieldset is disabled
233
+ */
234
+ fieldsetDisabled: boolean;
235
+ /**
236
+ * The value of the input
237
+ */
238
+ value: string;
240
239
  }
241
- interface NumberInputSchema {
242
- state: "idle" | "focused" | "spinning" | "before:spin" | "scrubbing";
243
- tag: "focus";
244
- props: RequiredBy<NumberInputProps, PropsWithDefault>;
245
- context: PrivateContext;
246
- computed: ComputedContext;
247
- action: string;
248
- event: EventObject;
249
- guard: string;
250
- effect: string;
240
+ export interface NumberInputSchema {
241
+ state: "idle" | "focused" | "spinning" | "before:spin" | "scrubbing";
242
+ tag: "focus";
243
+ props: RequiredBy<NumberInputProps, PropsWithDefault>;
244
+ context: PrivateContext;
245
+ computed: ComputedContext;
246
+ action: string;
247
+ event: EventObject;
248
+ guard: string;
249
+ effect: string;
251
250
  }
252
- type NumberInputService = Service<NumberInputSchema>;
253
- type NumberInputMachine = Machine<NumberInputSchema>;
254
- interface NumberInputApi<T extends PropTypes = PropTypes> {
255
- /**
256
- * Whether the input is focused.
257
- */
258
- focused: boolean;
259
- /**
260
- * Whether the input is invalid.
261
- */
262
- invalid: boolean;
263
- /**
264
- * Whether the input value is empty.
265
- */
266
- empty: boolean;
267
- /**
268
- * The formatted value of the input.
269
- */
270
- value: string;
271
- /**
272
- * The value of the input as a number.
273
- */
274
- valueAsNumber: number;
275
- /**
276
- * Function to set the value of the input.
277
- */
278
- setValue: (value: number) => void;
279
- /**
280
- * Function to clear the value of the input.
281
- */
282
- clearValue: VoidFunction;
283
- /**
284
- * Function to increment the value of the input by the step.
285
- */
286
- increment: VoidFunction;
287
- /**
288
- * Function to decrement the value of the input by the step.
289
- */
290
- decrement: VoidFunction;
291
- /**
292
- * Function to set the value of the input to the max.
293
- */
294
- setToMax: VoidFunction;
295
- /**
296
- * Function to set the value of the input to the min.
297
- */
298
- setToMin: VoidFunction;
299
- /**
300
- * Function to focus the input.
301
- */
302
- focus: VoidFunction;
303
- getRootProps: () => T["element"];
304
- getLabelProps: () => T["label"];
305
- getControlProps: () => T["element"];
306
- getValueTextProps: () => T["element"];
307
- getInputProps: () => T["input"];
308
- getDecrementTriggerProps: () => T["button"];
309
- getIncrementTriggerProps: () => T["button"];
310
- getScrubberProps: () => T["element"];
251
+ export type NumberInputService = Service<NumberInputSchema>;
252
+ export type NumberInputMachine = Machine<NumberInputSchema>;
253
+ export interface NumberInputApi<T extends PropTypes = PropTypes> {
254
+ /**
255
+ * Whether the input is focused.
256
+ */
257
+ focused: boolean;
258
+ /**
259
+ * Whether the input is invalid.
260
+ */
261
+ invalid: boolean;
262
+ /**
263
+ * Whether the input value is empty.
264
+ */
265
+ empty: boolean;
266
+ /**
267
+ * The formatted value of the input.
268
+ */
269
+ value: string;
270
+ /**
271
+ * The value of the input as a number.
272
+ */
273
+ valueAsNumber: number;
274
+ /**
275
+ * Function to set the value of the input.
276
+ */
277
+ setValue: (value: number) => void;
278
+ /**
279
+ * Function to clear the value of the input.
280
+ */
281
+ clearValue: VoidFunction;
282
+ /**
283
+ * Function to increment the value of the input by the step.
284
+ */
285
+ increment: VoidFunction;
286
+ /**
287
+ * Function to decrement the value of the input by the step.
288
+ */
289
+ decrement: VoidFunction;
290
+ /**
291
+ * Function to set the value of the input to the max.
292
+ */
293
+ setToMax: VoidFunction;
294
+ /**
295
+ * Function to set the value of the input to the min.
296
+ */
297
+ setToMin: VoidFunction;
298
+ /**
299
+ * Function to focus the input.
300
+ */
301
+ focus: VoidFunction;
302
+ getRootProps: () => T["element"];
303
+ getLabelProps: () => T["label"];
304
+ getControlProps: () => T["element"];
305
+ getValueTextProps: () => T["element"];
306
+ getInputProps: () => T["input"];
307
+ getDecrementTriggerProps: () => T["button"];
308
+ getIncrementTriggerProps: () => T["button"];
309
+ getScrubberProps: () => T["element"];
311
310
  }
312
-
313
- export type { ElementIds, FocusChangeDetails, HintValue, InputMode, IntlTranslations, NumberInputApi, NumberInputMachine, NumberInputProps, NumberInputSchema, NumberInputService, ValidityState, ValueChangeDetails, ValueInvalidDetails };
311
+ export {};
@@ -1,18 +1,4 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/number-input.types.ts
17
- var number_input_types_exports = {};
18
- module.exports = __toCommonJS(number_input_types_exports);
1
+ Object.defineProperties(exports, {
2
+ __esModule: { value: true },
3
+ [Symbol.toStringTag]: { value: "Module" }
4
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -1,13 +1,10 @@
1
- import { NumberParser } from '@internationalized/number';
2
- import { Params } from '@zag-js/core';
3
- import { NumberInputSchema } from './number-input.types.mjs';
4
- import '@zag-js/types';
5
-
6
- declare const createFormatter: (locale: string, options?: Intl.NumberFormatOptions) => Intl.NumberFormat;
7
- declare const createParser: (locale: string, options?: Intl.NumberFormatOptions) => NumberParser;
1
+ import { NumberInputSchema } from "./number-input.types.mjs";
2
+ import { Params } from "@zag-js/core";
3
+ import { NumberParser } from "@internationalized/number";
4
+ export declare const createFormatter: (locale: string, options?: Intl.NumberFormatOptions) => Intl.NumberFormat;
5
+ export declare const createParser: (locale: string, options?: Intl.NumberFormatOptions) => NumberParser;
8
6
  type Ctx = Pick<Params<NumberInputSchema>, "prop" | "computed">;
9
- declare const parseValue: (value: string, params: Ctx) => number;
10
- declare const formatValue: (value: number, params: Ctx) => string;
11
- declare const getDefaultStep: (step: number | undefined, formatOptions: Intl.NumberFormatOptions | undefined) => number;
12
-
13
- export { createFormatter, createParser, formatValue, getDefaultStep, parseValue };
7
+ export declare const parseValue: (value: string, params: Ctx) => number;
8
+ export declare const formatValue: (value: number, params: Ctx) => string;
9
+ export declare const getDefaultStep: (step: number | undefined, formatOptions: Intl.NumberFormatOptions | undefined) => number;
10
+ export {};