@zag-js/steps 1.0.0 → 1.0.2
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 +4 -3
- package/dist/index.d.ts +4 -3
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _zag_js_anatomy from '@zag-js/anatomy';
|
|
2
2
|
import { DirectionProperty, CommonProperties, PropTypes, RequiredBy, NormalizeProps } from '@zag-js/types';
|
|
3
3
|
import * as _zag_js_core from '@zag-js/core';
|
|
4
|
-
import { Service, EventObject } from '@zag-js/core';
|
|
4
|
+
import { Service, Machine, EventObject } from '@zag-js/core';
|
|
5
5
|
|
|
6
6
|
declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "list" | "item" | "trigger" | "indicator" | "separator" | "content" | "nextTrigger" | "prevTrigger" | "progress">;
|
|
7
7
|
|
|
@@ -71,6 +71,7 @@ interface StepsSchema {
|
|
|
71
71
|
guard: string;
|
|
72
72
|
}
|
|
73
73
|
type StepsService = Service<StepsSchema>;
|
|
74
|
+
type StepsMachine = Machine<StepsSchema>;
|
|
74
75
|
interface ItemProps {
|
|
75
76
|
index: number;
|
|
76
77
|
}
|
|
@@ -143,9 +144,9 @@ interface StepsApi<T extends PropTypes = PropTypes> {
|
|
|
143
144
|
|
|
144
145
|
declare function connect<T extends PropTypes>(service: StepsService, normalize: NormalizeProps<T>): StepsApi<T>;
|
|
145
146
|
|
|
146
|
-
declare const machine: _zag_js_core.
|
|
147
|
+
declare const machine: _zag_js_core.Machine<StepsSchema>;
|
|
147
148
|
|
|
148
149
|
declare const props: (keyof StepsProps)[];
|
|
149
150
|
declare const splitProps: <Props extends Partial<StepsProps>>(props: Props) => [Partial<StepsProps>, Omit<Props, keyof StepsProps>];
|
|
150
151
|
|
|
151
|
-
export { type StepsApi as Api, type ElementIds, type ItemProps, type ItemState, type StepsProps as Props, type StepsService as Service, type StepChangeDetails, anatomy, connect, machine, props, splitProps };
|
|
152
|
+
export { type StepsApi as Api, type ElementIds, type ItemProps, type ItemState, type StepsMachine as Machine, type StepsProps as Props, type StepsService as Service, type StepChangeDetails, anatomy, connect, machine, props, splitProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _zag_js_anatomy from '@zag-js/anatomy';
|
|
2
2
|
import { DirectionProperty, CommonProperties, PropTypes, RequiredBy, NormalizeProps } from '@zag-js/types';
|
|
3
3
|
import * as _zag_js_core from '@zag-js/core';
|
|
4
|
-
import { Service, EventObject } from '@zag-js/core';
|
|
4
|
+
import { Service, Machine, EventObject } from '@zag-js/core';
|
|
5
5
|
|
|
6
6
|
declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "list" | "item" | "trigger" | "indicator" | "separator" | "content" | "nextTrigger" | "prevTrigger" | "progress">;
|
|
7
7
|
|
|
@@ -71,6 +71,7 @@ interface StepsSchema {
|
|
|
71
71
|
guard: string;
|
|
72
72
|
}
|
|
73
73
|
type StepsService = Service<StepsSchema>;
|
|
74
|
+
type StepsMachine = Machine<StepsSchema>;
|
|
74
75
|
interface ItemProps {
|
|
75
76
|
index: number;
|
|
76
77
|
}
|
|
@@ -143,9 +144,9 @@ interface StepsApi<T extends PropTypes = PropTypes> {
|
|
|
143
144
|
|
|
144
145
|
declare function connect<T extends PropTypes>(service: StepsService, normalize: NormalizeProps<T>): StepsApi<T>;
|
|
145
146
|
|
|
146
|
-
declare const machine: _zag_js_core.
|
|
147
|
+
declare const machine: _zag_js_core.Machine<StepsSchema>;
|
|
147
148
|
|
|
148
149
|
declare const props: (keyof StepsProps)[];
|
|
149
150
|
declare const splitProps: <Props extends Partial<StepsProps>>(props: Props) => [Partial<StepsProps>, Omit<Props, keyof StepsProps>];
|
|
150
151
|
|
|
151
|
-
export { type StepsApi as Api, type ElementIds, type ItemProps, type ItemState, type StepsProps as Props, type StepsService as Service, type StepChangeDetails, anatomy, connect, machine, props, splitProps };
|
|
152
|
+
export { type StepsApi as Api, type ElementIds, type ItemProps, type ItemState, type StepsMachine as Machine, type StepsProps as Props, type StepsService as Service, type StepChangeDetails, anatomy, connect, machine, props, splitProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/steps",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Core logic for the steps widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@zag-js/anatomy": "1.0.
|
|
31
|
-
"@zag-js/core": "1.0.
|
|
32
|
-
"@zag-js/dom-query": "1.0.
|
|
33
|
-
"@zag-js/utils": "1.0.
|
|
34
|
-
"@zag-js/types": "1.0.
|
|
30
|
+
"@zag-js/anatomy": "1.0.2",
|
|
31
|
+
"@zag-js/core": "1.0.2",
|
|
32
|
+
"@zag-js/dom-query": "1.0.2",
|
|
33
|
+
"@zag-js/utils": "1.0.2",
|
|
34
|
+
"@zag-js/types": "1.0.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"clean-package": "2.2.0"
|