@zag-js/tabs 0.0.0-dev-20230207111512 → 0.0.0-dev-20230213145448
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.
|
@@ -237,6 +237,7 @@ function machine(userContext) {
|
|
|
237
237
|
ctx2.previousValues = pushUnique(Array.from(ctx2.previousValues), ctx2.value);
|
|
238
238
|
}
|
|
239
239
|
},
|
|
240
|
+
// if tab panel contains focusable elements, remove the tabindex attribute
|
|
240
241
|
setContentTabIndex(ctx2) {
|
|
241
242
|
raf(() => {
|
|
242
243
|
const panel = dom.getActiveContentEl(ctx2);
|
package/dist/index.js
CHANGED
|
@@ -550,6 +550,7 @@ function machine(userContext) {
|
|
|
550
550
|
ctx2.previousValues = pushUnique(Array.from(ctx2.previousValues), ctx2.value);
|
|
551
551
|
}
|
|
552
552
|
},
|
|
553
|
+
// if tab panel contains focusable elements, remove the tabindex attribute
|
|
553
554
|
setContentTabIndex(ctx2) {
|
|
554
555
|
raf(() => {
|
|
555
556
|
const panel = dom.getActiveContentEl(ctx2);
|
package/dist/index.mjs
CHANGED
package/dist/tabs.machine.js
CHANGED
|
@@ -369,6 +369,7 @@ function machine(userContext) {
|
|
|
369
369
|
ctx2.previousValues = pushUnique(Array.from(ctx2.previousValues), ctx2.value);
|
|
370
370
|
}
|
|
371
371
|
},
|
|
372
|
+
// if tab panel contains focusable elements, remove the tabindex attribute
|
|
372
373
|
setContentTabIndex(ctx2) {
|
|
373
374
|
raf(() => {
|
|
374
375
|
const panel = dom.getActiveContentEl(ctx2);
|
package/dist/tabs.machine.mjs
CHANGED
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-20230213145448",
|
|
4
4
|
"description": "Core logic for the tabs widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@zag-js/anatomy": "0.1.4",
|
|
30
|
-
"@zag-js/
|
|
31
|
-
"@zag-js/
|
|
30
|
+
"@zag-js/core": "0.0.0-dev-20230213145448",
|
|
31
|
+
"@zag-js/types": "0.3.4"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"clean-package": "2.2.0",
|