@zag-js/steps 1.43.0 → 1.43.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/steps.connect.js
CHANGED
|
@@ -128,6 +128,7 @@ function connect(service, normalize) {
|
|
|
128
128
|
...import_steps.parts.trigger.attrs,
|
|
129
129
|
id: itemState.triggerId,
|
|
130
130
|
role: "tab",
|
|
131
|
+
type: "button",
|
|
131
132
|
dir: prop("dir"),
|
|
132
133
|
tabIndex: !prop("linear") || itemState.current ? 0 : -1,
|
|
133
134
|
"aria-selected": itemState.current,
|
package/dist/steps.connect.mjs
CHANGED
package/dist/steps.types.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Machine, EventObject, Service } from '@zag-js/core';
|
|
2
|
-
import { PropTypes, RequiredBy, DirectionProperty, CommonProperties } from '@zag-js/types';
|
|
2
|
+
import { PropTypes, Partial, RequiredBy, DirectionProperty, CommonProperties } from '@zag-js/types';
|
|
3
3
|
|
|
4
4
|
interface StepChangeDetails {
|
|
5
5
|
step: number;
|
|
@@ -9,12 +9,12 @@ interface StepInvalidDetails {
|
|
|
9
9
|
action: "next" | "set";
|
|
10
10
|
targetStep?: number;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
root
|
|
14
|
-
list
|
|
15
|
-
triggerId
|
|
16
|
-
contentId
|
|
17
|
-
}
|
|
12
|
+
type ElementIds = Partial<{
|
|
13
|
+
root: string;
|
|
14
|
+
list: string;
|
|
15
|
+
triggerId: (index: number) => string;
|
|
16
|
+
contentId: (index: number) => string;
|
|
17
|
+
}>;
|
|
18
18
|
interface StepsProps extends DirectionProperty, CommonProperties {
|
|
19
19
|
/**
|
|
20
20
|
* The custom ids for the stepper elements
|
package/dist/steps.types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Machine, EventObject, Service } from '@zag-js/core';
|
|
2
|
-
import { PropTypes, RequiredBy, DirectionProperty, CommonProperties } from '@zag-js/types';
|
|
2
|
+
import { PropTypes, Partial, RequiredBy, DirectionProperty, CommonProperties } from '@zag-js/types';
|
|
3
3
|
|
|
4
4
|
interface StepChangeDetails {
|
|
5
5
|
step: number;
|
|
@@ -9,12 +9,12 @@ interface StepInvalidDetails {
|
|
|
9
9
|
action: "next" | "set";
|
|
10
10
|
targetStep?: number;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
root
|
|
14
|
-
list
|
|
15
|
-
triggerId
|
|
16
|
-
contentId
|
|
17
|
-
}
|
|
12
|
+
type ElementIds = Partial<{
|
|
13
|
+
root: string;
|
|
14
|
+
list: string;
|
|
15
|
+
triggerId: (index: number) => string;
|
|
16
|
+
contentId: (index: number) => string;
|
|
17
|
+
}>;
|
|
18
18
|
interface StepsProps extends DirectionProperty, CommonProperties {
|
|
19
19
|
/**
|
|
20
20
|
* The custom ids for the stepper elements
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/steps",
|
|
3
|
-
"version": "1.43.
|
|
3
|
+
"version": "1.43.2",
|
|
4
4
|
"description": "Core logic for the steps widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@zag-js/anatomy": "1.43.
|
|
34
|
-
"@zag-js/core": "1.43.
|
|
35
|
-
"@zag-js/dom-query": "1.43.
|
|
36
|
-
"@zag-js/utils": "1.43.
|
|
37
|
-
"@zag-js/types": "1.43.
|
|
33
|
+
"@zag-js/anatomy": "1.43.2",
|
|
34
|
+
"@zag-js/core": "1.43.2",
|
|
35
|
+
"@zag-js/dom-query": "1.43.2",
|
|
36
|
+
"@zag-js/utils": "1.43.2",
|
|
37
|
+
"@zag-js/types": "1.43.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"clean-package": "2.2.0"
|