@zag-js/number-input 2.0.0-next.3 → 2.0.0-next.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/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 -43
- package/dist/number-input.anatomy.mjs +4 -17
- package/dist/number-input.connect.d.mts +3 -8
- package/dist/number-input.connect.d.ts +3 -8
- package/dist/number-input.connect.js +483 -377
- package/dist/number-input.connect.mjs +478 -353
- package/dist/number-input.dom.d.mts +33 -33
- package/dist/number-input.dom.d.ts +33 -33
- package/dist/number-input.dom.js +99 -142
- package/dist/number-input.dom.mjs +78 -103
- package/dist/number-input.machine.d.mts +2 -8
- package/dist/number-input.machine.d.ts +2 -8
- package/dist/number-input.machine.js +600 -528
- package/dist/number-input.machine.mjs +596 -512
- package/dist/number-input.props.d.mts +3 -9
- package/dist/number-input.props.d.ts +3 -9
- package/dist/number-input.props.js +43 -69
- package/dist/number-input.props.mjs +39 -43
- package/dist/number-input.translations.d.mts +3 -8
- package/dist/number-input.translations.d.ts +3 -8
- package/dist/number-input.translations.js +9 -31
- package/dist/number-input.translations.mjs +5 -6
- package/dist/number-input.types.d.mts +418 -408
- package/dist/number-input.types.d.ts +418 -408
- package/dist/number-input.types.js +4 -18
- package/dist/number-input.types.mjs +1 -0
- package/dist/number-input.utils.d.mts +16 -12
- package/dist/number-input.utils.d.ts +16 -12
- package/dist/number-input.utils.js +51 -57
- package/dist/number-input.utils.mjs +39 -27
- package/package.json +8 -8
- package/dist/cursor.d.mts +0 -12
- package/dist/cursor.d.ts +0 -12
- package/dist/cursor.js +0 -111
- package/dist/cursor.mjs +0 -84
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import '@zag-js/types';
|
|
8
|
-
import '@zag-js/core';
|
|
9
|
-
import '@internationalized/number';
|
|
1
|
+
import { anatomy } from "./number-input.anatomy.mjs";
|
|
2
|
+
import { connect } from "./number-input.connect.mjs";
|
|
3
|
+
import { machine } from "./number-input.machine.mjs";
|
|
4
|
+
import { props, splitProps } from "./number-input.props.mjs";
|
|
5
|
+
import { DecrementTriggerState, ElementIds, FocusChangeDetails, IncrementTriggerState, InputMode, InputState, IntlTranslations, NumberInputApi, NumberInputMachine, NumberInputProps, NumberInputService, RootState, StepDirection, ValidityState, ValueChangeDetails, ValueInvalidDetails } from "./number-input.types.mjs";
|
|
6
|
+
export { type NumberInputApi as Api, type DecrementTriggerState, type ElementIds, type FocusChangeDetails, type IncrementTriggerState, type InputMode, type InputState, type IntlTranslations, type NumberInputMachine as Machine, type NumberInputProps as Props, type RootState, type NumberInputService as Service, type StepDirection, type ValidityState, type ValueChangeDetails, type ValueInvalidDetails, anatomy, connect, machine, props, splitProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import '@zag-js/types';
|
|
8
|
-
import '@zag-js/core';
|
|
9
|
-
import '@internationalized/number';
|
|
1
|
+
import { anatomy } from "./number-input.anatomy.js";
|
|
2
|
+
import { connect } from "./number-input.connect.js";
|
|
3
|
+
import { machine } from "./number-input.machine.js";
|
|
4
|
+
import { props, splitProps } from "./number-input.props.js";
|
|
5
|
+
import { DecrementTriggerState, ElementIds, FocusChangeDetails, IncrementTriggerState, InputMode, InputState, IntlTranslations, NumberInputApi, NumberInputMachine, NumberInputProps, NumberInputService, RootState, StepDirection, ValidityState, ValueChangeDetails, ValueInvalidDetails } from "./number-input.types.js";
|
|
6
|
+
export { type NumberInputApi as Api, type DecrementTriggerState, type ElementIds, type FocusChangeDetails, type IncrementTriggerState, type InputMode, type InputState, type IntlTranslations, type NumberInputMachine as Machine, type NumberInputProps as Props, type RootState, type NumberInputService as Service, type StepDirection, type ValidityState, type ValueChangeDetails, type ValueInvalidDetails, anatomy, connect, machine, props, splitProps };
|
package/dist/index.js
CHANGED
|
@@ -1,39 +1,13 @@
|
|
|
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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/index.ts
|
|
22
|
-
var index_exports = {};
|
|
23
|
-
__export(index_exports, {
|
|
24
|
-
anatomy: () => import_number_input.anatomy,
|
|
25
|
-
connect: () => import_number_input2.connect,
|
|
26
|
-
machine: () => import_number_input3.machine
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(index_exports);
|
|
29
|
-
var import_number_input = require("./number-input.anatomy.js");
|
|
30
|
-
var import_number_input2 = require("./number-input.connect.js");
|
|
31
|
-
var import_number_input3 = require("./number-input.machine.js");
|
|
32
|
-
__reExport(index_exports, require("./number-input.props.js"), module.exports);
|
|
33
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
-
0 && (module.exports = {
|
|
35
|
-
anatomy,
|
|
36
|
-
connect,
|
|
37
|
-
machine,
|
|
38
|
-
...require("./number-input.props.js")
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
39
4
|
});
|
|
5
|
+
const require_number_input_anatomy = require("./number-input.anatomy.js");
|
|
6
|
+
const require_number_input_connect = require("./number-input.connect.js");
|
|
7
|
+
const require_number_input_machine = require("./number-input.machine.js");
|
|
8
|
+
const require_number_input_props = require("./number-input.props.js");
|
|
9
|
+
exports.anatomy = require_number_input_anatomy.anatomy;
|
|
10
|
+
exports.connect = require_number_input_connect.connect;
|
|
11
|
+
exports.machine = require_number_input_machine.machine;
|
|
12
|
+
exports.props = require_number_input_props.props;
|
|
13
|
+
exports.splitProps = require_number_input_props.splitProps;
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
// src/index.ts
|
|
2
1
|
import { anatomy } from "./number-input.anatomy.mjs";
|
|
3
2
|
import { connect } from "./number-input.connect.mjs";
|
|
4
3
|
import { machine } from "./number-input.machine.mjs";
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
anatomy,
|
|
8
|
-
connect,
|
|
9
|
-
machine
|
|
10
|
-
};
|
|
4
|
+
import { props, splitProps } from "./number-input.props.mjs";
|
|
5
|
+
export { anatomy, connect, machine, props, splitProps };
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "label" | "input" | "control" | "valueText" | "incrementTrigger" | "decrementTrigger" | "scrubber" | "scrubberCursor">;
|
|
4
|
-
declare const parts: Record<"root" | "label" | "input" | "control" | "valueText" | "incrementTrigger" | "decrementTrigger" | "scrubber" | "scrubberCursor", _zag_js_anatomy.AnatomyPart>;
|
|
5
|
-
|
|
6
|
-
export { anatomy, parts };
|
|
1
|
+
export declare const anatomy: import("@zag-js/anatomy").AnatomyInstance<"control" | "decrementTrigger" | "incrementTrigger" | "input" | "label" | "root" | "scrubber" | "scrubberCursor" | "valueText">;
|
|
2
|
+
export declare const parts: Record<"control" | "decrementTrigger" | "incrementTrigger" | "input" | "label" | "root" | "scrubber" | "scrubberCursor" | "valueText", import("@zag-js/anatomy").AnatomyPart>;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "label" | "input" | "control" | "valueText" | "incrementTrigger" | "decrementTrigger" | "scrubber" | "scrubberCursor">;
|
|
4
|
-
declare const parts: Record<"root" | "label" | "input" | "control" | "valueText" | "incrementTrigger" | "decrementTrigger" | "scrubber" | "scrubberCursor", _zag_js_anatomy.AnatomyPart>;
|
|
5
|
-
|
|
6
|
-
export { anatomy, parts };
|
|
1
|
+
export declare const anatomy: import("@zag-js/anatomy").AnatomyInstance<"control" | "decrementTrigger" | "incrementTrigger" | "input" | "label" | "root" | "scrubber" | "scrubberCursor" | "valueText">;
|
|
2
|
+
export declare const parts: Record<"control" | "decrementTrigger" | "incrementTrigger" | "input" | "label" | "root" | "scrubber" | "scrubberCursor" | "valueText", import("@zag-js/anatomy").AnatomyPart>;
|
|
@@ -1,44 +1,9 @@
|
|
|
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.anatomy.ts
|
|
21
|
-
var number_input_anatomy_exports = {};
|
|
22
|
-
__export(number_input_anatomy_exports, {
|
|
23
|
-
anatomy: () => anatomy,
|
|
24
|
-
parts: () => parts
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(number_input_anatomy_exports);
|
|
27
|
-
var import_anatomy = require("@zag-js/anatomy");
|
|
28
|
-
var anatomy = (0, import_anatomy.createAnatomy)("numberInput").parts(
|
|
29
|
-
"root",
|
|
30
|
-
"label",
|
|
31
|
-
"input",
|
|
32
|
-
"control",
|
|
33
|
-
"valueText",
|
|
34
|
-
"incrementTrigger",
|
|
35
|
-
"decrementTrigger",
|
|
36
|
-
"scrubber",
|
|
37
|
-
"scrubberCursor"
|
|
38
|
-
);
|
|
39
|
-
var parts = anatomy.build();
|
|
40
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
-
0 && (module.exports = {
|
|
42
|
-
anatomy,
|
|
43
|
-
parts
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
44
4
|
});
|
|
5
|
+
// src/number-input.anatomy.ts
|
|
6
|
+
const anatomy = (0, require("@zag-js/anatomy").createAnatomy)("numberInput").parts("root", "label", "input", "control", "valueText", "incrementTrigger", "decrementTrigger", "scrubber", "scrubberCursor");
|
|
7
|
+
const parts = anatomy.build();
|
|
8
|
+
exports.anatomy = anatomy;
|
|
9
|
+
exports.parts = parts;
|
|
@@ -1,18 +1,5 @@
|
|
|
1
|
-
// src/number-input.anatomy.ts
|
|
2
1
|
import { createAnatomy } from "@zag-js/anatomy";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"control",
|
|
8
|
-
"valueText",
|
|
9
|
-
"incrementTrigger",
|
|
10
|
-
"decrementTrigger",
|
|
11
|
-
"scrubber",
|
|
12
|
-
"scrubberCursor"
|
|
13
|
-
);
|
|
14
|
-
var parts = anatomy.build();
|
|
15
|
-
export {
|
|
16
|
-
anatomy,
|
|
17
|
-
parts
|
|
18
|
-
};
|
|
2
|
+
// src/number-input.anatomy.ts
|
|
3
|
+
const anatomy = createAnatomy("numberInput").parts("root", "label", "input", "control", "valueText", "incrementTrigger", "decrementTrigger", "scrubber", "scrubberCursor");
|
|
4
|
+
const parts = anatomy.build();
|
|
5
|
+
export { anatomy, parts };
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import '@zag-js/core';
|
|
5
|
-
|
|
6
|
-
declare function connect<T extends PropTypes>(service: NumberInputService, normalize: NormalizeProps<T>): NumberInputApi<T>;
|
|
7
|
-
|
|
8
|
-
export { connect };
|
|
1
|
+
import { NumberInputApi, NumberInputService } from "./number-input.types.mjs";
|
|
2
|
+
import { NormalizeProps, PropTypes } from "@zag-js/types";
|
|
3
|
+
export declare function connect<T extends PropTypes>(service: NumberInputService, normalize: NormalizeProps<T>): NumberInputApi<T>;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import '@zag-js/core';
|
|
5
|
-
|
|
6
|
-
declare function connect<T extends PropTypes>(service: NumberInputService, normalize: NormalizeProps<T>): NumberInputApi<T>;
|
|
7
|
-
|
|
8
|
-
export { connect };
|
|
1
|
+
import { NumberInputApi, NumberInputService } from "./number-input.types.js";
|
|
2
|
+
import { NormalizeProps, PropTypes } from "@zag-js/types";
|
|
3
|
+
export declare function connect<T extends PropTypes>(service: NumberInputService, normalize: NormalizeProps<T>): NumberInputApi<T>;
|