daisy-ui-kit 5.0.11 → 5.0.12

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.
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { computed, defineComponent, h } from 'vue'
2
+ import { computed, defineComponent, h, mergeProps } from 'vue'
3
3
 
4
4
  export default defineComponent({
5
5
  inheritAttrs: false,
@@ -53,7 +53,7 @@ export default defineComponent({
53
53
  },
54
54
  ])
55
55
 
56
- return () => h(props.is as any, { ...attrs, class: classes.value }, slots.default?.())
56
+ return () => h(props.is as any, mergeProps(attrs, { class: classes.value }), slots.default?.())
57
57
  },
58
58
  })
59
59
  </script>
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { computed, defineComponent, h } from 'vue'
2
+ import { computed, defineComponent, h, mergeProps } from 'vue'
3
3
 
4
4
  export default defineComponent({
5
5
  inheritAttrs: false,
@@ -108,8 +108,7 @@ export default defineComponent({
108
108
 
109
109
  return h(
110
110
  tag as any,
111
- {
112
- ...attrs,
111
+ mergeProps(attrs, {
113
112
  type: isBtnEl ? props.type : undefined,
114
113
  disabled: isBtnEl && props.disabled ? true : undefined,
115
114
  'aria-disabled': !isBtnEl && props.disabled ? true : undefined,
@@ -117,7 +116,7 @@ export default defineComponent({
117
116
  role: !isBtnEl ? 'button' : undefined,
118
117
  class: classes.value,
119
118
  onKeydown: !isBtnEl ? onKeydown : undefined,
120
- },
119
+ }),
121
120
  slots.default?.(),
122
121
  )
123
122
  }
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { computed, defineComponent, h } from 'vue'
2
+ import { computed, defineComponent, h, mergeProps } from 'vue'
3
3
 
4
4
  export default defineComponent({
5
5
  inheritAttrs: false,
@@ -32,7 +32,7 @@ export default defineComponent({
32
32
  },
33
33
  ])
34
34
 
35
- return () => h(props.is as any, { ...attrs, class: classes.value }, slots.default?.())
35
+ return () => h(props.is as any, mergeProps(attrs, { class: classes.value }), slots.default?.())
36
36
  },
37
37
  })
38
38
  </script>
@@ -1,12 +1,13 @@
1
1
  <script lang="ts">
2
- import { defineComponent, h } from 'vue'
2
+ import { defineComponent, h, mergeProps } from 'vue'
3
3
 
4
4
  export default defineComponent({
5
+ inheritAttrs: false,
5
6
  props: {
6
7
  is: { type: [String, Object], default: 'span' },
7
8
  },
8
- setup(props, { slots }) {
9
- return () => h(props.is as any, { class: 'countdown' }, slots.default?.())
9
+ setup(props, { slots, attrs }) {
10
+ return () => h(props.is as any, mergeProps(attrs, { class: 'countdown' }), slots.default?.())
10
11
  },
11
12
  })
12
13
  </script>
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { computed, defineComponent, h } from 'vue'
2
+ import { computed, defineComponent, h, mergeProps } from 'vue'
3
3
 
4
4
  export default defineComponent({
5
5
  inheritAttrs: false,
@@ -33,7 +33,7 @@ export default defineComponent({
33
33
  },
34
34
  ])
35
35
 
36
- return () => h(props.is as any, { ...attrs, class: classes.value }, slots.default?.())
36
+ return () => h(props.is as any, mergeProps(attrs, { class: classes.value }), slots.default?.())
37
37
  },
38
38
  })
39
39
  </script>
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { defineComponent, h } from 'vue'
2
+ import { defineComponent, h, mergeProps } from 'vue'
3
3
 
4
4
  export default defineComponent({
5
5
  inheritAttrs: false,
@@ -9,7 +9,7 @@ export default defineComponent({
9
9
  },
10
10
  setup(props, { slots, attrs }) {
11
11
  return () =>
12
- h(props.is as any, { ...attrs, class: 'fieldset bg-base-200 border-base-300 rounded-box border p-4' }, [
12
+ h(props.is as any, mergeProps(attrs, { class: 'fieldset bg-base-200 border-base-300 rounded-box border p-4' }), [
13
13
  props.legend ? h('legend', { class: 'fieldset-legend' }, props.legend) : slots.legend?.(),
14
14
  slots.default?.(),
15
15
  ])
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { computed, defineComponent, h } from 'vue'
2
+ import { computed, defineComponent, h, mergeProps } from 'vue'
3
3
 
4
4
  export default defineComponent({
5
5
  inheritAttrs: false,
@@ -81,7 +81,7 @@ export default defineComponent({
81
81
  },
82
82
  ])
83
83
 
84
- return () => h(props.is as any, { ...attrs, class: classes.value }, slots.default?.())
84
+ return () => h(props.is as any, mergeProps(attrs, { class: classes.value }), slots.default?.())
85
85
  },
86
86
  })
87
87
  </script>
@@ -1,7 +1,8 @@
1
1
  <script lang="ts">
2
- import { computed, defineComponent, h } from 'vue'
2
+ import { computed, defineComponent, h, mergeProps } from 'vue'
3
3
 
4
4
  export default defineComponent({
5
+ inheritAttrs: false,
5
6
  props: {
6
7
  is: { type: [String, Object], default: 'div' },
7
8
  join: Boolean,
@@ -26,7 +27,7 @@ export default defineComponent({
26
27
  nowrap: Boolean,
27
28
  wrapReverse: Boolean,
28
29
  },
29
- setup(props, { slots }) {
30
+ setup(props, { slots, attrs }) {
30
31
  const classes = computed(() => [
31
32
  'flex',
32
33
  {
@@ -50,7 +51,7 @@ export default defineComponent({
50
51
  },
51
52
  ])
52
53
 
53
- return () => h(props.is as any, { class: classes.value }, slots.default?.())
54
+ return () => h(props.is as any, mergeProps(attrs, { class: classes.value }), slots.default?.())
54
55
  },
55
56
  })
56
57
  </script>
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { defineComponent, h } from 'vue'
2
+ import { defineComponent, h, mergeProps } from 'vue'
3
3
 
4
4
  export default defineComponent({
5
5
  inheritAttrs: false,
@@ -7,7 +7,7 @@ export default defineComponent({
7
7
  is: { type: [String, Object], default: 'div' },
8
8
  },
9
9
  setup(props, { slots, attrs }) {
10
- return () => h(props.is as any, { ...attrs, class: 'indicator' }, slots.default?.())
10
+ return () => h(props.is as any, mergeProps(attrs, { class: 'indicator' }), slots.default?.())
11
11
  },
12
12
  })
13
13
  </script>
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { computed, defineComponent, h } from 'vue'
2
+ import { computed, defineComponent, h, mergeProps } from 'vue'
3
3
 
4
4
  export default defineComponent({
5
5
  inheritAttrs: false,
@@ -30,7 +30,7 @@ export default defineComponent({
30
30
  },
31
31
  ])
32
32
 
33
- return () => h(props.is as any, { ...attrs, class: classes.value }, slots.default?.())
33
+ return () => h(props.is as any, mergeProps(attrs, { class: classes.value }), slots.default?.())
34
34
  },
35
35
  })
36
36
  </script>
@@ -1,13 +1,14 @@
1
1
  <script lang="ts">
2
- import { defineComponent, h } from 'vue'
2
+ import { defineComponent, h, mergeProps } from 'vue'
3
3
 
4
4
  export default defineComponent({
5
+ inheritAttrs: false,
5
6
  props: {
6
7
  is: { type: [String, Object], default: 'div' },
7
8
  glass: { type: Boolean, default: false },
8
9
  },
9
- setup(props, { slots }) {
10
- return () => h(props.is as any, { class: ['navbar', { glass: props.glass }] }, slots.default?.())
10
+ setup(props, { slots, attrs }) {
11
+ return () => h(props.is as any, mergeProps(attrs, { class: ['navbar', { glass: props.glass }] }), slots.default?.())
11
12
  },
12
13
  })
13
14
  </script>
@@ -1,12 +1,13 @@
1
1
  <script lang="ts">
2
- import { defineComponent, h } from 'vue'
2
+ import { defineComponent, h, mergeProps } from 'vue'
3
3
 
4
4
  export default defineComponent({
5
+ inheritAttrs: false,
5
6
  props: {
6
7
  is: { type: [String, Object], default: 'div' },
7
8
  },
8
- setup(props, { slots }) {
9
- return () => h(props.is as any, { class: 'navbar-center' }, slots.default?.())
9
+ setup(props, { slots, attrs }) {
10
+ return () => h(props.is as any, mergeProps(attrs, { class: 'navbar-center' }), slots.default?.())
10
11
  },
11
12
  })
12
13
  </script>
@@ -1,12 +1,13 @@
1
1
  <script lang="ts">
2
- import { defineComponent, h } from 'vue'
2
+ import { defineComponent, h, mergeProps } from 'vue'
3
3
 
4
4
  export default defineComponent({
5
+ inheritAttrs: false,
5
6
  props: {
6
7
  is: { type: [String, Object], default: 'div' },
7
8
  },
8
- setup(props, { slots }) {
9
- return () => h(props.is as any, { class: 'navbar-end' }, slots.default?.())
9
+ setup(props, { slots, attrs }) {
10
+ return () => h(props.is as any, mergeProps(attrs, { class: 'navbar-end' }), slots.default?.())
10
11
  },
11
12
  })
12
13
  </script>
@@ -1,12 +1,13 @@
1
1
  <script lang="ts">
2
- import { defineComponent, h } from 'vue'
2
+ import { defineComponent, h, mergeProps } from 'vue'
3
3
 
4
4
  export default defineComponent({
5
+ inheritAttrs: false,
5
6
  props: {
6
7
  is: { type: [String, Object], default: 'div' },
7
8
  },
8
- setup(props, { slots }) {
9
- return () => h(props.is as any, { class: 'navbar-start' }, slots.default?.())
9
+ setup(props, { slots, attrs }) {
10
+ return () => h(props.is as any, mergeProps(attrs, { class: 'navbar-start' }), slots.default?.())
10
11
  },
11
12
  })
12
13
  </script>
@@ -1,12 +1,13 @@
1
1
  <script lang="ts">
2
- import { defineComponent, h } from 'vue'
2
+ import { defineComponent, h, mergeProps } from 'vue'
3
3
 
4
4
  export default defineComponent({
5
+ inheritAttrs: false,
5
6
  props: {
6
7
  is: { type: [String, Object], default: 'span' },
7
8
  },
8
- setup(props, { slots }) {
9
- return () => h(props.is as any, { class: 'skeleton skeleton-text' }, slots.default?.())
9
+ setup(props, { slots, attrs }) {
10
+ return () => h(props.is as any, mergeProps(attrs, { class: 'skeleton skeleton-text' }), slots.default?.())
10
11
  },
11
12
  })
12
13
  </script>
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { computed, defineComponent, h } from 'vue'
2
+ import { computed, defineComponent, h, mergeProps } from 'vue'
3
3
 
4
4
  export default defineComponent({
5
5
  inheritAttrs: false,
@@ -22,7 +22,7 @@ export default defineComponent({
22
22
  },
23
23
  ])
24
24
 
25
- return () => h(props.is as any, { ...attrs, class: classes.value }, slots.default?.())
25
+ return () => h(props.is as any, mergeProps(attrs, { class: classes.value }), slots.default?.())
26
26
  },
27
27
  })
28
28
  </script>
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { computed, defineComponent, h, inject } from 'vue'
2
+ import { computed, defineComponent, h, inject, mergeProps } from 'vue'
3
3
 
4
4
  export default defineComponent({
5
5
  inheritAttrs: false,
@@ -26,15 +26,14 @@ export default defineComponent({
26
26
  return () =>
27
27
  h(
28
28
  props.is as any,
29
- {
30
- ...attrs,
29
+ mergeProps(attrs, {
31
30
  class: classes.value,
32
31
  onKeypress: (e: KeyboardEvent) => {
33
32
  if (e.key === 'Enter') {
34
33
  tabManager.currentTab.value = props.name
35
34
  }
36
35
  },
37
- },
36
+ }),
38
37
  [
39
38
  h('input', {
40
39
  type: 'radio',
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { computed, defineComponent, h } from 'vue'
2
+ import { computed, defineComponent, h, mergeProps } from 'vue'
3
3
 
4
4
  export default defineComponent({
5
5
  inheritAttrs: false,
@@ -171,7 +171,7 @@ export default defineComponent({
171
171
  return () =>
172
172
  h(
173
173
  props.is as any,
174
- { ...attrs, ...(props.label ? { 'data-role': 'label' } : {}), class: classes.value },
174
+ mergeProps(attrs, { ...(props.label ? { 'data-role': 'label' } : {}), class: classes.value }),
175
175
  slots.default?.(),
176
176
  )
177
177
  },
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "5.0.11",
7
+ "version": "5.0.12",
8
8
  "packageManager": "pnpm@10.10.0",
9
9
  "author": "feathers.dev",
10
10
  "exports": {