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.
- package/app/components/Badge.vue +2 -2
- package/app/components/Button.vue +3 -4
- package/app/components/Card.vue +2 -2
- package/app/components/Countdown.vue +4 -3
- package/app/components/DaisyLink.vue +2 -2
- package/app/components/Fieldset.vue +2 -2
- package/app/components/Flex.vue +2 -2
- package/app/components/FlexItem.vue +4 -3
- package/app/components/Indicator.vue +2 -2
- package/app/components/IndicatorItem.vue +2 -2
- package/app/components/Navbar.vue +4 -3
- package/app/components/NavbarCenter.vue +4 -3
- package/app/components/NavbarEnd.vue +4 -3
- package/app/components/NavbarStart.vue +4 -3
- package/app/components/SkeletonText.vue +4 -3
- package/app/components/Stack.vue +2 -2
- package/app/components/Tab.vue +3 -4
- package/app/components/Text.vue +2 -2
- package/package.json +1 -1
package/app/components/Badge.vue
CHANGED
|
@@ -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,
|
|
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
|
}
|
package/app/components/Card.vue
CHANGED
|
@@ -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,
|
|
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,
|
|
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,
|
|
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
|
])
|
package/app/components/Flex.vue
CHANGED
|
@@ -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,
|
|
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,
|
|
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,
|
|
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>
|
package/app/components/Stack.vue
CHANGED
|
@@ -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,
|
|
25
|
+
return () => h(props.is as any, mergeProps(attrs, { class: classes.value }), slots.default?.())
|
|
26
26
|
},
|
|
27
27
|
})
|
|
28
28
|
</script>
|
package/app/components/Tab.vue
CHANGED
|
@@ -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',
|
package/app/components/Text.vue
CHANGED
|
@@ -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
|
-
|
|
174
|
+
mergeProps(attrs, { ...(props.label ? { 'data-role': 'label' } : {}), class: classes.value }),
|
|
175
175
|
slots.default?.(),
|
|
176
176
|
)
|
|
177
177
|
},
|