@zag-js/steps 1.18.3 → 1.18.5
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 +17 -17
- package/dist/index.d.ts +17 -17
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -11,8 +11,8 @@ interface StepChangeDetails {
|
|
|
11
11
|
interface ElementIds {
|
|
12
12
|
root?: string | undefined;
|
|
13
13
|
list?: string | undefined;
|
|
14
|
-
triggerId
|
|
15
|
-
contentId
|
|
14
|
+
triggerId?: ((index: number) => string) | undefined;
|
|
15
|
+
contentId?: ((index: number) => string) | undefined;
|
|
16
16
|
}
|
|
17
17
|
interface StepsProps extends DirectionProperty, CommonProperties {
|
|
18
18
|
/**
|
|
@@ -113,33 +113,33 @@ interface StepsApi<T extends PropTypes = PropTypes> {
|
|
|
113
113
|
/**
|
|
114
114
|
* Function to set the value of the stepper.
|
|
115
115
|
*/
|
|
116
|
-
setStep(step: number)
|
|
116
|
+
setStep: (step: number) => void;
|
|
117
117
|
/**
|
|
118
118
|
* Function to go to the next step.
|
|
119
119
|
*/
|
|
120
|
-
goToNextStep
|
|
120
|
+
goToNextStep: VoidFunction;
|
|
121
121
|
/**
|
|
122
122
|
* Function to go to the previous step.
|
|
123
123
|
*/
|
|
124
|
-
goToPrevStep
|
|
124
|
+
goToPrevStep: VoidFunction;
|
|
125
125
|
/**
|
|
126
126
|
* Function to go to reset the stepper.
|
|
127
127
|
*/
|
|
128
|
-
resetStep
|
|
128
|
+
resetStep: VoidFunction;
|
|
129
129
|
/**
|
|
130
130
|
* Returns the state of the item at the given index.
|
|
131
131
|
*/
|
|
132
|
-
getItemState(props: ItemProps)
|
|
133
|
-
getRootProps()
|
|
134
|
-
getListProps()
|
|
135
|
-
getItemProps(props: ItemProps)
|
|
136
|
-
getTriggerProps(props: ItemProps)
|
|
137
|
-
getContentProps(props: ItemProps)
|
|
138
|
-
getNextTriggerProps()
|
|
139
|
-
getPrevTriggerProps()
|
|
140
|
-
getProgressProps()
|
|
141
|
-
getIndicatorProps(props: ItemProps)
|
|
142
|
-
getSeparatorProps(props: ItemProps)
|
|
132
|
+
getItemState: (props: ItemProps) => ItemState;
|
|
133
|
+
getRootProps: () => T["element"];
|
|
134
|
+
getListProps: () => T["element"];
|
|
135
|
+
getItemProps: (props: ItemProps) => T["element"];
|
|
136
|
+
getTriggerProps: (props: ItemProps) => T["element"];
|
|
137
|
+
getContentProps: (props: ItemProps) => T["element"];
|
|
138
|
+
getNextTriggerProps: () => T["button"];
|
|
139
|
+
getPrevTriggerProps: () => T["button"];
|
|
140
|
+
getProgressProps: () => T["element"];
|
|
141
|
+
getIndicatorProps: (props: ItemProps) => T["element"];
|
|
142
|
+
getSeparatorProps: (props: ItemProps) => T["element"];
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
declare function connect<T extends PropTypes>(service: StepsService, normalize: NormalizeProps<T>): StepsApi<T>;
|
package/dist/index.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ interface StepChangeDetails {
|
|
|
11
11
|
interface ElementIds {
|
|
12
12
|
root?: string | undefined;
|
|
13
13
|
list?: string | undefined;
|
|
14
|
-
triggerId
|
|
15
|
-
contentId
|
|
14
|
+
triggerId?: ((index: number) => string) | undefined;
|
|
15
|
+
contentId?: ((index: number) => string) | undefined;
|
|
16
16
|
}
|
|
17
17
|
interface StepsProps extends DirectionProperty, CommonProperties {
|
|
18
18
|
/**
|
|
@@ -113,33 +113,33 @@ interface StepsApi<T extends PropTypes = PropTypes> {
|
|
|
113
113
|
/**
|
|
114
114
|
* Function to set the value of the stepper.
|
|
115
115
|
*/
|
|
116
|
-
setStep(step: number)
|
|
116
|
+
setStep: (step: number) => void;
|
|
117
117
|
/**
|
|
118
118
|
* Function to go to the next step.
|
|
119
119
|
*/
|
|
120
|
-
goToNextStep
|
|
120
|
+
goToNextStep: VoidFunction;
|
|
121
121
|
/**
|
|
122
122
|
* Function to go to the previous step.
|
|
123
123
|
*/
|
|
124
|
-
goToPrevStep
|
|
124
|
+
goToPrevStep: VoidFunction;
|
|
125
125
|
/**
|
|
126
126
|
* Function to go to reset the stepper.
|
|
127
127
|
*/
|
|
128
|
-
resetStep
|
|
128
|
+
resetStep: VoidFunction;
|
|
129
129
|
/**
|
|
130
130
|
* Returns the state of the item at the given index.
|
|
131
131
|
*/
|
|
132
|
-
getItemState(props: ItemProps)
|
|
133
|
-
getRootProps()
|
|
134
|
-
getListProps()
|
|
135
|
-
getItemProps(props: ItemProps)
|
|
136
|
-
getTriggerProps(props: ItemProps)
|
|
137
|
-
getContentProps(props: ItemProps)
|
|
138
|
-
getNextTriggerProps()
|
|
139
|
-
getPrevTriggerProps()
|
|
140
|
-
getProgressProps()
|
|
141
|
-
getIndicatorProps(props: ItemProps)
|
|
142
|
-
getSeparatorProps(props: ItemProps)
|
|
132
|
+
getItemState: (props: ItemProps) => ItemState;
|
|
133
|
+
getRootProps: () => T["element"];
|
|
134
|
+
getListProps: () => T["element"];
|
|
135
|
+
getItemProps: (props: ItemProps) => T["element"];
|
|
136
|
+
getTriggerProps: (props: ItemProps) => T["element"];
|
|
137
|
+
getContentProps: (props: ItemProps) => T["element"];
|
|
138
|
+
getNextTriggerProps: () => T["button"];
|
|
139
|
+
getPrevTriggerProps: () => T["button"];
|
|
140
|
+
getProgressProps: () => T["element"];
|
|
141
|
+
getIndicatorProps: (props: ItemProps) => T["element"];
|
|
142
|
+
getSeparatorProps: (props: ItemProps) => T["element"];
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
declare function connect<T extends PropTypes>(service: StepsService, normalize: NormalizeProps<T>): StepsApi<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/steps",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.5",
|
|
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.18.
|
|
31
|
-
"@zag-js/core": "1.18.
|
|
32
|
-
"@zag-js/dom-query": "1.18.
|
|
33
|
-
"@zag-js/
|
|
34
|
-
"@zag-js/
|
|
30
|
+
"@zag-js/anatomy": "1.18.5",
|
|
31
|
+
"@zag-js/core": "1.18.5",
|
|
32
|
+
"@zag-js/dom-query": "1.18.5",
|
|
33
|
+
"@zag-js/types": "1.18.5",
|
|
34
|
+
"@zag-js/utils": "1.18.5"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"clean-package": "2.2.0"
|