@destyler/tabs 0.0.1-beta.13 → 0.0.1-beta.15

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023-PRESENT Elone Hoo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.cjs CHANGED
@@ -143,7 +143,7 @@ const DestylerTabsContent = vue.defineComponent({
143
143
  default: ({ present }) => {
144
144
  return [
145
145
  vue.withDirectives(vue.h(primitive.DestylerPrimitive, {
146
- "ref": "forwardRef",
146
+ "ref": (el) => this.forwardRef(el),
147
147
  "as": this.$props.as,
148
148
  "asChild": this.$props.asChild,
149
149
  "role": "tabpanel",
@@ -271,7 +271,7 @@ const DestylerTabsList = vue.defineComponent({
271
271
  }, {
272
272
  default: () => {
273
273
  return vue.h(primitive.DestylerPrimitive, {
274
- "ref": "forwardRef",
274
+ "ref": (el) => this.forwardRef(el),
275
275
  "role": "tablist",
276
276
  "asChild": this.$props.asChild,
277
277
  "as": this.$props.as,
@@ -329,7 +329,7 @@ const DestylerTabsTrigger = vue.defineComponent({
329
329
  }, {
330
330
  default: () => {
331
331
  return vue.withDirectives(vue.h(primitive.DestylerPrimitive, {
332
- "ref": "forwardRef",
332
+ "ref": (el) => this.forwardRef(el),
333
333
  "role": "tab",
334
334
  "type": this.$props.as === "button" ? "button" : void 0,
335
335
  "as": this.$props.as,
package/dist/index.mjs CHANGED
@@ -141,7 +141,7 @@ const DestylerTabsContent = defineComponent({
141
141
  default: ({ present }) => {
142
142
  return [
143
143
  withDirectives(h(DestylerPrimitive, {
144
- "ref": "forwardRef",
144
+ "ref": (el) => this.forwardRef(el),
145
145
  "as": this.$props.as,
146
146
  "asChild": this.$props.asChild,
147
147
  "role": "tabpanel",
@@ -269,7 +269,7 @@ const DestylerTabsList = defineComponent({
269
269
  }, {
270
270
  default: () => {
271
271
  return h(DestylerPrimitive, {
272
- "ref": "forwardRef",
272
+ "ref": (el) => this.forwardRef(el),
273
273
  "role": "tablist",
274
274
  "asChild": this.$props.asChild,
275
275
  "as": this.$props.as,
@@ -327,7 +327,7 @@ const DestylerTabsTrigger = defineComponent({
327
327
  }, {
328
328
  default: () => {
329
329
  return withDirectives(h(DestylerPrimitive, {
330
- "ref": "forwardRef",
330
+ "ref": (el) => this.forwardRef(el),
331
331
  "role": "tab",
332
332
  "type": this.$props.as === "button" ? "button" : void 0,
333
333
  "as": this.$props.as,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@destyler/tabs",
3
- "version": "0.0.1-beta.13",
3
+ "version": "0.0.1-beta.15",
4
4
  "description": "unstyled tabs component for vue",
5
5
  "author": "Elone Hoo <elonehoo@gmail.com>",
6
6
  "license": "MIT",
@@ -33,12 +33,12 @@
33
33
  "vue": ">=3.3.4"
34
34
  },
35
35
  "dependencies": {
36
- "@destyler/composition": "0.0.1-beta.13",
37
- "@destyler/directives": "0.0.1-beta.13",
38
- "@destyler/presence": "0.0.1-beta.13",
39
- "@destyler/roving-focus": "0.0.1-beta.13",
40
- "@destyler/shared": "0.0.1-beta.13",
41
- "@destyler/primitive": "0.0.1-beta.13"
36
+ "@destyler/composition": "0.0.1-beta.15",
37
+ "@destyler/directives": "0.0.1-beta.15",
38
+ "@destyler/presence": "0.0.1-beta.15",
39
+ "@destyler/primitive": "0.0.1-beta.15",
40
+ "@destyler/shared": "0.0.1-beta.15",
41
+ "@destyler/roving-focus": "0.0.1-beta.15"
42
42
  },
43
43
  "scripts": {
44
44
  "clear": "rimraf ./dist",