@y14e/tabs 2.0.12 → 2.0.13

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/README.md CHANGED
@@ -10,14 +10,14 @@ npm i @y14e/tabs
10
10
 
11
11
  ```ts
12
12
  // npm
13
- import Tabs from "@y14e/tabs";
13
+ import { Tabs } from "@y14e/tabs";
14
14
 
15
15
  // CDNs
16
- import Tabs from "https://esm.sh/@y14e/tabs@2.0.12";
16
+ import { Tabs } from "https://esm.sh/@y14e/tabs@2.0.13";
17
17
  // or
18
- import Tabs from "https://cdn.jsdelivr.net/npm/@y14e/tabs@2.0.12/+esm";
18
+ import { Tabs } from "https://cdn.jsdelivr.net/npm/@y14e/tabs@2.0.13/+esm";
19
19
  // or
20
- import Tabs from "https://esm.unpkg.com/@y14e/tabs@2.0.12";
20
+ import { Tabs } from "https://esm.unpkg.com/@y14e/tabs@2.0.13";
21
21
  ```
22
22
 
23
23
  ## Usage
@@ -68,7 +68,7 @@ If `true`, only the first tab list remains interactive; subsequent duplicates ar
68
68
  Override the global default settings applied to all accordion instances.
69
69
 
70
70
  ```ts
71
- import Tabs from "@y14e/tabs";
71
+ import { Tabs } from "@y14e/tabs";
72
72
 
73
73
  Tabs.defaults = {
74
74
  animation: {
@@ -1155,7 +1155,7 @@ var TabsIndicator = class {
1155
1155
  * Tabs
1156
1156
  * WAI-ARIA compliant tabs pattern implementation in TypeScript.
1157
1157
  *
1158
- * @version 2.0.12
1158
+ * @version 2.0.13
1159
1159
  * @author Yusuke Kamiyamane
1160
1160
  * @license MIT
1161
1161
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -1167,7 +1167,7 @@ var TabsIndicator = class {
1167
1167
  (**
1168
1168
  * Attribute Util
1169
1169
  *
1170
- * @version 2.0.1
1170
+ * @version 2.0.2
1171
1171
  * @author Yusuke Kamiyamane
1172
1172
  * @license MIT
1173
1173
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -1191,7 +1191,7 @@ power-focusable/dist/index.js:
1191
1191
  (**
1192
1192
  * Button
1193
1193
  *
1194
- * @version 1.0.7
1194
+ * @version 1.0.8
1195
1195
  * @author Yusuke Kamiyamane
1196
1196
  * @license MIT
1197
1197
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -1212,4 +1212,4 @@ power-focusable/dist/index.js:
1212
1212
  *)
1213
1213
  */
1214
1214
 
1215
- module.exports = Tabs;
1215
+ exports.Tabs = Tabs;
@@ -1153,7 +1153,7 @@ var TabsIndicator = class {
1153
1153
  * Tabs
1154
1154
  * WAI-ARIA compliant tabs pattern implementation in TypeScript.
1155
1155
  *
1156
- * @version 2.0.12
1156
+ * @version 2.0.13
1157
1157
  * @author Yusuke Kamiyamane
1158
1158
  * @license MIT
1159
1159
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -1165,7 +1165,7 @@ var TabsIndicator = class {
1165
1165
  (**
1166
1166
  * Attribute Util
1167
1167
  *
1168
- * @version 2.0.1
1168
+ * @version 2.0.2
1169
1169
  * @author Yusuke Kamiyamane
1170
1170
  * @license MIT
1171
1171
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -1189,7 +1189,7 @@ power-focusable/dist/index.js:
1189
1189
  (**
1190
1190
  * Button
1191
1191
  *
1192
- * @version 1.0.7
1192
+ * @version 1.0.8
1193
1193
  * @author Yusuke Kamiyamane
1194
1194
  * @license MIT
1195
1195
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -1210,4 +1210,4 @@ power-focusable/dist/index.js:
1210
1210
  *)
1211
1211
  */
1212
1212
 
1213
- export { Tabs as default };
1213
+ export { Tabs };
package/dist/index.cjs CHANGED
@@ -1,11 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var util = require('@y14e/attribute-util');
4
- var Button = require('@y14e/button');
4
+ var button = require('@y14e/button');
5
5
  var rovingTabindex = require('@y14e/roving-tabindex');
6
6
 
7
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
-
9
7
  function _interopNamespace(e) {
10
8
  if (e && e.__esModule) return e;
11
9
  var n = Object.create(null);
@@ -25,7 +23,6 @@ function _interopNamespace(e) {
25
23
  }
26
24
 
27
25
  var util__namespace = /*#__PURE__*/_interopNamespace(util);
28
- var Button__default = /*#__PURE__*/_interopDefault(Button);
29
26
 
30
27
  // src/index.ts
31
28
  var Tabs = class _Tabs {
@@ -360,7 +357,7 @@ var Tabs = class _Tabs {
360
357
  util__namespace.addAttributeToken(panel, "aria-labelledby", tab.id);
361
358
  tab.addEventListener("click", this.#onTabClick, { signal });
362
359
  tab.addEventListener("focus", this.#onTabFocus, { signal });
363
- this.#buttons.push(new Button__default.default(tab));
360
+ this.#buttons.push(new button.Button(tab));
364
361
  });
365
362
  this.#indicatorElements.forEach((indicator) => {
366
363
  indicator.closest(this.#settings.selector.list)?.style.setProperty("position", "relative");
@@ -546,11 +543,11 @@ var TabsIndicator = class {
546
543
  * Tabs
547
544
  * WAI-ARIA compliant tabs pattern implementation in TypeScript.
548
545
  *
549
- * @version 2.0.12
546
+ * @version 2.0.13
550
547
  * @author Yusuke Kamiyamane
551
548
  * @license MIT
552
549
  * @copyright Copyright (c) Yusuke Kamiyamane
553
550
  * @see {@link https://github.com/y14e/tabs}
554
551
  */
555
552
 
556
- module.exports = Tabs;
553
+ exports.Tabs = Tabs;
package/dist/index.d.cts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Tabs
3
3
  * WAI-ARIA compliant tabs pattern implementation in TypeScript.
4
4
  *
5
- * @version 2.0.12
5
+ * @version 2.0.13
6
6
  * @author Yusuke Kamiyamane
7
7
  * @license MIT
8
8
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -40,4 +40,4 @@ declare class Tabs {
40
40
  destroy(force?: boolean): Promise<void>;
41
41
  }
42
42
 
43
- export { type TabsOptions, Tabs as default };
43
+ export { Tabs, type TabsOptions };
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Tabs
3
3
  * WAI-ARIA compliant tabs pattern implementation in TypeScript.
4
4
  *
5
- * @version 2.0.12
5
+ * @version 2.0.13
6
6
  * @author Yusuke Kamiyamane
7
7
  * @license MIT
8
8
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -40,4 +40,4 @@ declare class Tabs {
40
40
  destroy(force?: boolean): Promise<void>;
41
41
  }
42
42
 
43
- export { type TabsOptions, Tabs as default };
43
+ export { Tabs, type TabsOptions };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as util from '@y14e/attribute-util';
2
- import Button from '@y14e/button';
2
+ import { Button } from '@y14e/button';
3
3
  import { createRovingTabIndex } from '@y14e/roving-tabindex';
4
4
 
5
5
  // src/index.ts
@@ -521,11 +521,11 @@ var TabsIndicator = class {
521
521
  * Tabs
522
522
  * WAI-ARIA compliant tabs pattern implementation in TypeScript.
523
523
  *
524
- * @version 2.0.12
524
+ * @version 2.0.13
525
525
  * @author Yusuke Kamiyamane
526
526
  * @license MIT
527
527
  * @copyright Copyright (c) Yusuke Kamiyamane
528
528
  * @see {@link https://github.com/y14e/tabs}
529
529
  */
530
530
 
531
- export { Tabs as default };
531
+ export { Tabs };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y14e/tabs",
3
- "version": "2.0.12",
3
+ "version": "2.0.13",
4
4
  "description": "WAI-ARIA compliant tabs pattern implementation in TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -49,9 +49,12 @@
49
49
  "engines": {
50
50
  "node": ">=18"
51
51
  },
52
+ "allowScripts": {
53
+ "esbuild": true
54
+ },
52
55
  "dependencies": {
53
- "@y14e/attribute-util": "^2.0.1",
54
- "@y14e/button": "^1.0.7",
56
+ "@y14e/attribute-util": "^2.0.2",
57
+ "@y14e/button": "^1.0.8",
55
58
  "@y14e/roving-tabindex": "^3.1.22"
56
59
  }
57
60
  }