@zag-js/steps 2.0.0-next.0 → 2.0.0-next.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.
@@ -126,6 +126,7 @@ function connect(service, normalize) {
126
126
  ...import_steps.parts.trigger.attrs(scope.id),
127
127
  id: itemState.triggerId,
128
128
  role: "tab",
129
+ type: "button",
129
130
  dir: prop("dir"),
130
131
  tabIndex: !prop("linear") || itemState.current ? 0 : -1,
131
132
  "aria-selected": itemState.current,
@@ -92,6 +92,7 @@ function connect(service, normalize) {
92
92
  ...parts.trigger.attrs(scope.id),
93
93
  id: itemState.triggerId,
94
94
  role: "tab",
95
+ type: "button",
95
96
  dir: prop("dir"),
96
97
  tabIndex: !prop("linear") || itemState.current ? 0 : -1,
97
98
  "aria-selected": itemState.current,
@@ -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, DirectionProperty, CommonProperties } from '@zag-js/types';
3
3
 
4
4
  interface StepChangeDetails {
5
5
  step: number;
@@ -77,7 +77,8 @@ type ComputedContext = Readonly<{
77
77
  completed: boolean;
78
78
  }>;
79
79
  interface StepsSchema {
80
- props: RequiredBy<StepsProps, PropsWithDefault>;
80
+ props: StepsProps;
81
+ defaultPropKey: PropsWithDefault;
81
82
  context: PrivateContext;
82
83
  computed: ComputedContext;
83
84
  state: "idle";
@@ -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, DirectionProperty, CommonProperties } from '@zag-js/types';
3
3
 
4
4
  interface StepChangeDetails {
5
5
  step: number;
@@ -77,7 +77,8 @@ type ComputedContext = Readonly<{
77
77
  completed: boolean;
78
78
  }>;
79
79
  interface StepsSchema {
80
- props: RequiredBy<StepsProps, PropsWithDefault>;
80
+ props: StepsProps;
81
+ defaultPropKey: PropsWithDefault;
81
82
  context: PrivateContext;
82
83
  computed: ComputedContext;
83
84
  state: "idle";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/steps",
3
- "version": "2.0.0-next.0",
3
+ "version": "2.0.0-next.2",
4
4
  "description": "Core logic for the steps widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -15,7 +15,10 @@
15
15
  "homepage": "https://github.com/chakra-ui/zag#readme",
16
16
  "license": "MIT",
17
17
  "main": "dist/index.js",
18
- "repository": "https://github.com/chakra-ui/zag/tree/main/packages/steps",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/chakra-ui/zag/tree/main/packages/steps"
21
+ },
19
22
  "sideEffects": false,
20
23
  "files": [
21
24
  "dist"
@@ -27,11 +30,11 @@
27
30
  "url": "https://github.com/chakra-ui/zag/issues"
28
31
  },
29
32
  "dependencies": {
30
- "@zag-js/anatomy": "2.0.0-next.0",
31
- "@zag-js/core": "2.0.0-next.0",
32
- "@zag-js/dom-query": "2.0.0-next.0",
33
- "@zag-js/utils": "2.0.0-next.0",
34
- "@zag-js/types": "2.0.0-next.0"
33
+ "@zag-js/anatomy": "2.0.0-next.2",
34
+ "@zag-js/core": "2.0.0-next.2",
35
+ "@zag-js/dom-query": "2.0.0-next.2",
36
+ "@zag-js/utils": "2.0.0-next.2",
37
+ "@zag-js/types": "2.0.0-next.2"
35
38
  },
36
39
  "devDependencies": {
37
40
  "clean-package": "2.2.0"
@@ -64,7 +67,7 @@
64
67
  },
65
68
  "scripts": {
66
69
  "build": "tsup",
67
- "lint": "eslint src",
70
+ "lint": "oxlint src",
68
71
  "typecheck": "tsc --noEmit"
69
72
  }
70
73
  }