@zag-js/pin-input 1.0.0 → 1.0.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _zag_js_anatomy from '@zag-js/anatomy';
2
2
  import * as _zag_js_core from '@zag-js/core';
3
- import { Service, EventObject } from '@zag-js/core';
3
+ import { Service, Machine, EventObject } from '@zag-js/core';
4
4
  import { DirectionProperty, CommonProperties, PropTypes, RequiredBy, NormalizeProps } from '@zag-js/types';
5
5
 
6
6
  declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "label" | "input" | "control">;
@@ -134,6 +134,7 @@ interface PinInputSchema {
134
134
  guard: string;
135
135
  }
136
136
  type PinInputService = Service<PinInputSchema>;
137
+ type PinInputMachine = Machine<PinInputSchema>;
137
138
  interface InputProps {
138
139
  index: number;
139
140
  }
@@ -175,9 +176,9 @@ interface PinInputApi<T extends PropTypes = PropTypes> {
175
176
 
176
177
  declare function connect<T extends PropTypes>(service: Service<PinInputSchema>, normalize: NormalizeProps<T>): PinInputApi<T>;
177
178
 
178
- declare const machine: _zag_js_core.MachineConfig<PinInputSchema>;
179
+ declare const machine: _zag_js_core.Machine<PinInputSchema>;
179
180
 
180
181
  declare const props: (keyof PinInputProps)[];
181
182
  declare const splitProps: <Props extends Partial<PinInputProps>>(props: Props) => [Partial<PinInputProps>, Omit<Props, keyof PinInputProps>];
182
183
 
183
- export { type PinInputApi as Api, type ElementIds, type InputProps, type IntlTranslations, type PinInputProps as Props, type PinInputService as Service, type ValueChangeDetails, type ValueInvalidDetails, anatomy, connect, machine, props, splitProps };
184
+ export { type PinInputApi as Api, type ElementIds, type InputProps, type IntlTranslations, type PinInputMachine as Machine, type PinInputProps as Props, type PinInputService as Service, type ValueChangeDetails, type ValueInvalidDetails, anatomy, connect, machine, props, splitProps };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _zag_js_anatomy from '@zag-js/anatomy';
2
2
  import * as _zag_js_core from '@zag-js/core';
3
- import { Service, EventObject } from '@zag-js/core';
3
+ import { Service, Machine, EventObject } from '@zag-js/core';
4
4
  import { DirectionProperty, CommonProperties, PropTypes, RequiredBy, NormalizeProps } from '@zag-js/types';
5
5
 
6
6
  declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "label" | "input" | "control">;
@@ -134,6 +134,7 @@ interface PinInputSchema {
134
134
  guard: string;
135
135
  }
136
136
  type PinInputService = Service<PinInputSchema>;
137
+ type PinInputMachine = Machine<PinInputSchema>;
137
138
  interface InputProps {
138
139
  index: number;
139
140
  }
@@ -175,9 +176,9 @@ interface PinInputApi<T extends PropTypes = PropTypes> {
175
176
 
176
177
  declare function connect<T extends PropTypes>(service: Service<PinInputSchema>, normalize: NormalizeProps<T>): PinInputApi<T>;
177
178
 
178
- declare const machine: _zag_js_core.MachineConfig<PinInputSchema>;
179
+ declare const machine: _zag_js_core.Machine<PinInputSchema>;
179
180
 
180
181
  declare const props: (keyof PinInputProps)[];
181
182
  declare const splitProps: <Props extends Partial<PinInputProps>>(props: Props) => [Partial<PinInputProps>, Omit<Props, keyof PinInputProps>];
182
183
 
183
- export { type PinInputApi as Api, type ElementIds, type InputProps, type IntlTranslations, type PinInputProps as Props, type PinInputService as Service, type ValueChangeDetails, type ValueInvalidDetails, anatomy, connect, machine, props, splitProps };
184
+ export { type PinInputApi as Api, type ElementIds, type InputProps, type IntlTranslations, type PinInputMachine as Machine, type PinInputProps as Props, type PinInputService as Service, type ValueChangeDetails, type ValueInvalidDetails, anatomy, connect, machine, props, splitProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/pin-input",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Core logic for the pin-input widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -26,11 +26,11 @@
26
26
  "url": "https://github.com/chakra-ui/zag/issues"
27
27
  },
28
28
  "dependencies": {
29
- "@zag-js/anatomy": "1.0.0",
30
- "@zag-js/dom-query": "1.0.0",
31
- "@zag-js/utils": "1.0.0",
32
- "@zag-js/core": "1.0.0",
33
- "@zag-js/types": "1.0.0"
29
+ "@zag-js/anatomy": "1.0.1",
30
+ "@zag-js/dom-query": "1.0.1",
31
+ "@zag-js/utils": "1.0.1",
32
+ "@zag-js/core": "1.0.1",
33
+ "@zag-js/types": "1.0.1"
34
34
  },
35
35
  "devDependencies": {
36
36
  "clean-package": "2.2.0"