@zag-js/tabs 0.0.0-dev-20230202104422 → 0.0.0-dev-20230203093446
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.
|
@@ -73,7 +73,7 @@ function machine(userContext) {
|
|
|
73
73
|
const ctx = compact(userContext);
|
|
74
74
|
return createMachine(
|
|
75
75
|
{
|
|
76
|
-
initial: "
|
|
76
|
+
initial: "idle",
|
|
77
77
|
context: {
|
|
78
78
|
dir: "ltr",
|
|
79
79
|
orientation: "horizontal",
|
|
@@ -106,15 +106,8 @@ function machine(userContext) {
|
|
|
106
106
|
actions: "clearValue"
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
|
+
entry: ["checkRenderedElements", "setIndicatorRect", "setContentTabIndex"],
|
|
109
110
|
states: {
|
|
110
|
-
unknown: {
|
|
111
|
-
on: {
|
|
112
|
-
SETUP: {
|
|
113
|
-
target: "idle",
|
|
114
|
-
actions: ["checkRenderedElements", "setIndicatorRect", "setContentTabIndex"]
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
111
|
idle: {
|
|
119
112
|
on: {
|
|
120
113
|
TAB_FOCUS: {
|
package/dist/index.js
CHANGED
|
@@ -386,7 +386,7 @@ function machine(userContext) {
|
|
|
386
386
|
const ctx = compact(userContext);
|
|
387
387
|
return (0, import_core.createMachine)(
|
|
388
388
|
{
|
|
389
|
-
initial: "
|
|
389
|
+
initial: "idle",
|
|
390
390
|
context: {
|
|
391
391
|
dir: "ltr",
|
|
392
392
|
orientation: "horizontal",
|
|
@@ -419,15 +419,8 @@ function machine(userContext) {
|
|
|
419
419
|
actions: "clearValue"
|
|
420
420
|
}
|
|
421
421
|
},
|
|
422
|
+
entry: ["checkRenderedElements", "setIndicatorRect", "setContentTabIndex"],
|
|
422
423
|
states: {
|
|
423
|
-
unknown: {
|
|
424
|
-
on: {
|
|
425
|
-
SETUP: {
|
|
426
|
-
target: "idle",
|
|
427
|
-
actions: ["checkRenderedElements", "setIndicatorRect", "setContentTabIndex"]
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
},
|
|
431
424
|
idle: {
|
|
432
425
|
on: {
|
|
433
426
|
TAB_FOCUS: {
|
package/dist/index.mjs
CHANGED
package/dist/tabs.machine.js
CHANGED
|
@@ -205,7 +205,7 @@ function machine(userContext) {
|
|
|
205
205
|
const ctx = compact(userContext);
|
|
206
206
|
return (0, import_core.createMachine)(
|
|
207
207
|
{
|
|
208
|
-
initial: "
|
|
208
|
+
initial: "idle",
|
|
209
209
|
context: {
|
|
210
210
|
dir: "ltr",
|
|
211
211
|
orientation: "horizontal",
|
|
@@ -238,15 +238,8 @@ function machine(userContext) {
|
|
|
238
238
|
actions: "clearValue"
|
|
239
239
|
}
|
|
240
240
|
},
|
|
241
|
+
entry: ["checkRenderedElements", "setIndicatorRect", "setContentTabIndex"],
|
|
241
242
|
states: {
|
|
242
|
-
unknown: {
|
|
243
|
-
on: {
|
|
244
|
-
SETUP: {
|
|
245
|
-
target: "idle",
|
|
246
|
-
actions: ["checkRenderedElements", "setIndicatorRect", "setContentTabIndex"]
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
},
|
|
250
243
|
idle: {
|
|
251
244
|
on: {
|
|
252
245
|
TAB_FOCUS: {
|
package/dist/tabs.machine.mjs
CHANGED
package/dist/tabs.types.d.ts
CHANGED
|
@@ -83,7 +83,7 @@ type ComputedContext = Readonly<{
|
|
|
83
83
|
type PrivateContext = Context<{}>;
|
|
84
84
|
type MachineContext = PublicContext & ComputedContext & PrivateContext;
|
|
85
85
|
type MachineState = {
|
|
86
|
-
value: "
|
|
86
|
+
value: "idle" | "focused";
|
|
87
87
|
};
|
|
88
88
|
type State = StateMachine.State<MachineContext, MachineState>;
|
|
89
89
|
type Send = StateMachine.Send<StateMachine.AnyEventObject>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/tabs",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20230203093446",
|
|
4
4
|
"description": "Core logic for the tabs widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@zag-js/anatomy": "0.
|
|
30
|
-
"@zag-js/core": "0.0.0-dev-
|
|
31
|
-
"@zag-js/types": "0.
|
|
29
|
+
"@zag-js/anatomy": "0.1.4",
|
|
30
|
+
"@zag-js/core": "0.0.0-dev-20230203093446",
|
|
31
|
+
"@zag-js/types": "0.3.4"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"clean-package": "2.2.0",
|
|
35
|
-
"@zag-js/dom-utils": "0.
|
|
36
|
-
"@zag-js/utils": "0.
|
|
35
|
+
"@zag-js/dom-utils": "0.2.4",
|
|
36
|
+
"@zag-js/utils": "0.3.3"
|
|
37
37
|
},
|
|
38
38
|
"clean-package": "../../../clean-package.config.json",
|
|
39
39
|
"main": "dist/index.js",
|