@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
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-S2KW2DT4.mjs";
7
7
  import {
8
8
  machine
9
- } from "./chunk-3DBUWLYX.mjs";
9
+ } from "./chunk-USN6AU56.mjs";
10
10
  import "./chunk-4CROPD6E.mjs";
11
11
  export {
12
12
  anatomy,
@@ -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);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  machine
3
- } from "./chunk-3DBUWLYX.mjs";
3
+ } from "./chunk-USN6AU56.mjs";
4
4
  import "./chunk-4CROPD6E.mjs";
5
5
  export {
6
6
  machine
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/tabs",
3
- "version": "0.0.0-dev-20230207111512",
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/types": "0.3.4",
31
- "@zag-js/core": "0.0.0-dev-20230207111512"
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",