@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.
Files changed (41) hide show
  1. package/dist/index.d.mts +6 -9
  2. package/dist/index.d.ts +6 -9
  3. package/dist/index.js +12 -38
  4. package/dist/index.mjs +2 -7
  5. package/dist/number-input.anatomy.d.mts +2 -6
  6. package/dist/number-input.anatomy.d.ts +2 -6
  7. package/dist/number-input.anatomy.js +8 -43
  8. package/dist/number-input.anatomy.mjs +4 -17
  9. package/dist/number-input.connect.d.mts +3 -8
  10. package/dist/number-input.connect.d.ts +3 -8
  11. package/dist/number-input.connect.js +483 -377
  12. package/dist/number-input.connect.mjs +478 -353
  13. package/dist/number-input.dom.d.mts +33 -33
  14. package/dist/number-input.dom.d.ts +33 -33
  15. package/dist/number-input.dom.js +99 -142
  16. package/dist/number-input.dom.mjs +78 -103
  17. package/dist/number-input.machine.d.mts +2 -8
  18. package/dist/number-input.machine.d.ts +2 -8
  19. package/dist/number-input.machine.js +600 -528
  20. package/dist/number-input.machine.mjs +596 -512
  21. package/dist/number-input.props.d.mts +3 -9
  22. package/dist/number-input.props.d.ts +3 -9
  23. package/dist/number-input.props.js +43 -69
  24. package/dist/number-input.props.mjs +39 -43
  25. package/dist/number-input.translations.d.mts +3 -8
  26. package/dist/number-input.translations.d.ts +3 -8
  27. package/dist/number-input.translations.js +9 -31
  28. package/dist/number-input.translations.mjs +5 -6
  29. package/dist/number-input.types.d.mts +418 -408
  30. package/dist/number-input.types.d.ts +418 -408
  31. package/dist/number-input.types.js +4 -18
  32. package/dist/number-input.types.mjs +1 -0
  33. package/dist/number-input.utils.d.mts +16 -12
  34. package/dist/number-input.utils.d.ts +16 -12
  35. package/dist/number-input.utils.js +51 -57
  36. package/dist/number-input.utils.mjs +39 -27
  37. package/package.json +8 -8
  38. package/dist/cursor.d.mts +0 -12
  39. package/dist/cursor.d.ts +0 -12
  40. package/dist/cursor.js +0 -111
  41. package/dist/cursor.mjs +0 -84
package/dist/index.d.mts CHANGED
@@ -1,9 +1,6 @@
1
- export { anatomy } from './number-input.anatomy.mjs';
2
- export { connect } from './number-input.connect.mjs';
3
- export { machine } from './number-input.machine.mjs';
4
- export { props, splitProps } from './number-input.props.mjs';
5
- export { NumberInputApi as Api, DecrementTriggerState, ElementIds, FocusChangeDetails, HintValue, IncrementTriggerState, InputMode, InputState, IntlTranslations, NumberInputMachine as Machine, NumberInputProps as Props, RootState, NumberInputService as Service, ValidityState, ValueChangeDetails, ValueInvalidDetails } from './number-input.types.mjs';
6
- import '@zag-js/anatomy';
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
- export { anatomy } from './number-input.anatomy.js';
2
- export { connect } from './number-input.connect.js';
3
- export { machine } from './number-input.machine.js';
4
- export { props, splitProps } from './number-input.props.js';
5
- export { NumberInputApi as Api, DecrementTriggerState, ElementIds, FocusChangeDetails, HintValue, IncrementTriggerState, InputMode, InputState, IntlTranslations, NumberInputMachine as Machine, NumberInputProps as Props, RootState, NumberInputService as Service, ValidityState, ValueChangeDetails, ValueInvalidDetails } from './number-input.types.js';
6
- import '@zag-js/anatomy';
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
- "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 __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
- export * from "./number-input.props.mjs";
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
- import * as _zag_js_anatomy from '@zag-js/anatomy';
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
- import * as _zag_js_anatomy from '@zag-js/anatomy';
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
- "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 __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
- var anatomy = createAnatomy("numberInput").parts(
4
- "root",
5
- "label",
6
- "input",
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 { PropTypes, NormalizeProps } from '@zag-js/types';
2
- import { NumberInputService, NumberInputApi } from './number-input.types.mjs';
3
- import '@internationalized/number';
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 { PropTypes, NormalizeProps } from '@zag-js/types';
2
- import { NumberInputService, NumberInputApi } from './number-input.types.js';
3
- import '@internationalized/number';
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>;