@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.
- package/dist/cursor.d.mts +8 -10
- package/dist/cursor.d.ts +8 -10
- package/dist/cursor.js +65 -104
- package/dist/cursor.mjs +59 -77
- package/dist/index.d.mts +6 -9
- package/dist/index.d.ts +6 -9
- package/dist/index.js +12 -38
- package/dist/index.mjs +2 -7
- package/dist/number-input.anatomy.d.mts +2 -6
- package/dist/number-input.anatomy.d.ts +2 -6
- package/dist/number-input.anatomy.js +8 -42
- package/dist/number-input.anatomy.mjs +4 -16
- package/dist/number-input.connect.d.mts +3 -8
- package/dist/number-input.connect.d.ts +3 -8
- package/dist/number-input.connect.js +310 -310
- package/dist/number-input.connect.mjs +304 -284
- package/dist/number-input.dom.d.mts +28 -32
- package/dist/number-input.dom.d.ts +28 -32
- package/dist/number-input.dom.js +96 -138
- package/dist/number-input.dom.mjs +76 -97
- package/dist/number-input.machine.d.mts +2 -8
- package/dist/number-input.machine.d.ts +2 -8
- package/dist/number-input.machine.js +484 -460
- package/dist/number-input.machine.mjs +478 -440
- package/dist/number-input.props.d.mts +3 -9
- package/dist/number-input.props.d.ts +3 -9
- package/dist/number-input.props.js +40 -65
- package/dist/number-input.props.mjs +36 -39
- package/dist/number-input.translations.d.mts +3 -8
- package/dist/number-input.translations.d.ts +3 -8
- package/dist/number-input.translations.js +8 -31
- package/dist/number-input.translations.mjs +4 -6
- package/dist/number-input.types.d.mts +298 -300
- package/dist/number-input.types.d.ts +298 -300
- package/dist/number-input.types.js +4 -18
- package/dist/number-input.types.mjs +1 -0
- package/dist/number-input.utils.d.mts +9 -12
- package/dist/number-input.utils.d.ts +9 -12
- package/dist/number-input.utils.js +28 -57
- package/dist/number-input.utils.mjs +20 -28
- package/package.json +8 -8
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { NumberInputProps } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import '@zag-js/types';
|
|
5
|
-
|
|
6
|
-
declare const props: (keyof NumberInputProps)[];
|
|
7
|
-
declare const splitProps: <Props extends Partial<NumberInputProps>>(props: Props) => [Partial<NumberInputProps>, Omit<Props, keyof NumberInputProps>];
|
|
8
|
-
|
|
9
|
-
export { props, splitProps };
|
|
1
|
+
import { NumberInputProps } from "./number-input.types.mjs";
|
|
2
|
+
export declare const props: (keyof NumberInputProps)[];
|
|
3
|
+
export declare const splitProps: <Props extends Partial<NumberInputProps>>(props: Props) => [Partial<NumberInputProps>, Omit<Props, keyof NumberInputProps>];
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { NumberInputProps } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import '@zag-js/types';
|
|
5
|
-
|
|
6
|
-
declare const props: (keyof NumberInputProps)[];
|
|
7
|
-
declare const splitProps: <Props extends Partial<NumberInputProps>>(props: Props) => [Partial<NumberInputProps>, Omit<Props, keyof NumberInputProps>];
|
|
8
|
-
|
|
9
|
-
export { props, splitProps };
|
|
1
|
+
import { NumberInputProps } from "./number-input.types.js";
|
|
2
|
+
export declare const props: (keyof NumberInputProps)[];
|
|
3
|
+
export declare const splitProps: <Props extends Partial<NumberInputProps>>(props: Props) => [Partial<NumberInputProps>, Omit<Props, keyof NumberInputProps>];
|
|
@@ -1,67 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/number-input.props.ts
|
|
21
|
-
var number_input_props_exports = {};
|
|
22
|
-
__export(number_input_props_exports, {
|
|
23
|
-
props: () => props,
|
|
24
|
-
splitProps: () => splitProps
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
25
4
|
});
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"defaultValue"
|
|
5
|
+
let _zag_js_utils = require("@zag-js/utils");
|
|
6
|
+
// src/number-input.props.ts
|
|
7
|
+
const props = (0, require("@zag-js/types").createProps)()([
|
|
8
|
+
"allowMouseWheel",
|
|
9
|
+
"allowOverflow",
|
|
10
|
+
"clampValueOnBlur",
|
|
11
|
+
"dir",
|
|
12
|
+
"disabled",
|
|
13
|
+
"focusInputOnChange",
|
|
14
|
+
"form",
|
|
15
|
+
"formatOptions",
|
|
16
|
+
"getRootNode",
|
|
17
|
+
"id",
|
|
18
|
+
"ids",
|
|
19
|
+
"inputMode",
|
|
20
|
+
"invalid",
|
|
21
|
+
"largeStep",
|
|
22
|
+
"locale",
|
|
23
|
+
"max",
|
|
24
|
+
"min",
|
|
25
|
+
"name",
|
|
26
|
+
"onFocusChange",
|
|
27
|
+
"onValueChange",
|
|
28
|
+
"onValueCommit",
|
|
29
|
+
"onValueInvalid",
|
|
30
|
+
"pattern",
|
|
31
|
+
"required",
|
|
32
|
+
"readOnly",
|
|
33
|
+
"smallStep",
|
|
34
|
+
"spinOnPress",
|
|
35
|
+
"step",
|
|
36
|
+
"translations",
|
|
37
|
+
"value",
|
|
38
|
+
"defaultValue"
|
|
61
39
|
]);
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
props,
|
|
66
|
-
splitProps
|
|
67
|
-
});
|
|
40
|
+
const splitProps = (0, _zag_js_utils.createSplitProps)(props);
|
|
41
|
+
exports.props = props;
|
|
42
|
+
exports.splitProps = splitProps;
|
|
@@ -1,41 +1,38 @@
|
|
|
1
|
-
// src/number-input.props.ts
|
|
2
|
-
import { createProps } from "@zag-js/types";
|
|
3
1
|
import { createSplitProps } from "@zag-js/utils";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
2
|
+
import { createProps } from "@zag-js/types";
|
|
3
|
+
// src/number-input.props.ts
|
|
4
|
+
const props = createProps()([
|
|
5
|
+
"allowMouseWheel",
|
|
6
|
+
"allowOverflow",
|
|
7
|
+
"clampValueOnBlur",
|
|
8
|
+
"dir",
|
|
9
|
+
"disabled",
|
|
10
|
+
"focusInputOnChange",
|
|
11
|
+
"form",
|
|
12
|
+
"formatOptions",
|
|
13
|
+
"getRootNode",
|
|
14
|
+
"id",
|
|
15
|
+
"ids",
|
|
16
|
+
"inputMode",
|
|
17
|
+
"invalid",
|
|
18
|
+
"largeStep",
|
|
19
|
+
"locale",
|
|
20
|
+
"max",
|
|
21
|
+
"min",
|
|
22
|
+
"name",
|
|
23
|
+
"onFocusChange",
|
|
24
|
+
"onValueChange",
|
|
25
|
+
"onValueCommit",
|
|
26
|
+
"onValueInvalid",
|
|
27
|
+
"pattern",
|
|
28
|
+
"required",
|
|
29
|
+
"readOnly",
|
|
30
|
+
"smallStep",
|
|
31
|
+
"spinOnPress",
|
|
32
|
+
"step",
|
|
33
|
+
"translations",
|
|
34
|
+
"value",
|
|
35
|
+
"defaultValue"
|
|
36
36
|
]);
|
|
37
|
-
|
|
38
|
-
export {
|
|
39
|
-
props,
|
|
40
|
-
splitProps
|
|
41
|
-
};
|
|
37
|
+
const splitProps = createSplitProps(props);
|
|
38
|
+
export { props, splitProps };
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import '@zag-js/core';
|
|
5
|
-
|
|
6
|
-
declare const defaultTranslations: Required<Pick<IntlTranslations, "incrementLabel" | "decrementLabel">>;
|
|
7
|
-
|
|
8
|
-
export { defaultTranslations };
|
|
1
|
+
import { IntlTranslations } from "./number-input.types.mjs";
|
|
2
|
+
import { Required } from "@zag-js/types";
|
|
3
|
+
export declare const defaultTranslations: Required<Pick<IntlTranslations, "incrementLabel" | "decrementLabel">>;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import '@zag-js/core';
|
|
5
|
-
|
|
6
|
-
declare const defaultTranslations: Required<Pick<IntlTranslations, "incrementLabel" | "decrementLabel">>;
|
|
7
|
-
|
|
8
|
-
export { defaultTranslations };
|
|
1
|
+
import { IntlTranslations } from "./number-input.types.js";
|
|
2
|
+
import { Required } from "@zag-js/types";
|
|
3
|
+
export declare const defaultTranslations: Required<Pick<IntlTranslations, "incrementLabel" | "decrementLabel">>;
|
|
@@ -1,33 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/number-input.translations.ts
|
|
21
|
-
var number_input_translations_exports = {};
|
|
22
|
-
__export(number_input_translations_exports, {
|
|
23
|
-
defaultTranslations: () => defaultTranslations
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
24
4
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
5
|
+
// src/number-input.translations.ts
|
|
6
|
+
const defaultTranslations = {
|
|
7
|
+
incrementLabel: "increment value",
|
|
8
|
+
decrementLabel: "decrease value"
|
|
29
9
|
};
|
|
30
|
-
|
|
31
|
-
0 && (module.exports = {
|
|
32
|
-
defaultTranslations
|
|
33
|
-
});
|
|
10
|
+
exports.defaultTranslations = defaultTranslations;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
// src/number-input.translations.ts
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
export {
|
|
7
|
-
defaultTranslations
|
|
2
|
+
const defaultTranslations = {
|
|
3
|
+
incrementLabel: "increment value",
|
|
4
|
+
decrementLabel: "decrease value"
|
|
8
5
|
};
|
|
6
|
+
export { defaultTranslations };
|