daisy-ui-kit 1.0.0 → 1.0.2
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/components/BottomNav.vue +1 -1
- package/components/Divider.vue +1 -1
- package/components/DrawerLayout.vue +1 -1
- package/components/Dropdown.vue +1 -1
- package/components/Flex.vue +1 -1
- package/components/FlexItem.vue +1 -1
- package/components/Footer.vue +1 -1
- package/components/FooterTitle.vue +1 -1
- package/components/Hero.vue +1 -1
- package/components/HeroContent.vue +1 -1
- package/components/Indicator.vue +1 -1
- package/components/IndicatorItem.vue +1 -1
- package/components/InputGroup.vue +1 -1
- package/components/Kbd.vue +1 -1
- package/components/Label.vue +1 -1
- package/components/LabelText.vue +1 -1
- package/components/LabelTextAlt.vue +1 -1
- package/components/Link.vue +1 -1
- package/components/Mask.vue +0 -1
- package/components/Menu.vue +1 -1
- package/components/MenuItem.vue +0 -2
- package/components/ModalWrapper.vue +1 -1
- package/components/NavButton.vue +1 -1
- package/components/Navbar.vue +1 -1
- package/components/NavbarCenter.vue +1 -1
- package/components/NavbarEnd.vue +1 -1
- package/components/NavbarStart.vue +1 -1
- package/components/Progress.vue +1 -1
- package/components/Prose.vue +0 -2
- package/components/RadialProgress.vue +1 -1
- package/components/Radio.vue +6 -5
- package/components/RadioGroup.vue +1 -1
- package/components/Range.vue +1 -1
- package/components/RangeMeasure.vue +1 -1
- package/components/RangeMeasureTick.vue +1 -1
- package/components/Rating.vue +3 -3
- package/components/Select.vue +3 -2
- package/components/Stack.vue +1 -1
- package/components/Step.vue +1 -1
- package/components/Steps.vue +1 -1
- package/components/Swap.vue +1 -1
- package/components/Tab.vue +1 -1
- package/components/TabContent.vue +5 -3
- package/components/Tabs.vue +15 -8
- package/components/TabsManager.vue +5 -3
- package/components/Text.vue +1 -1
- package/components/TextArea.vue +1 -1
- package/components/TextInput.vue +1 -1
- package/components/Toast.vue +1 -1
- package/components/Toggle.vue +1 -1
- package/components/Tooltip.vue +1 -1
- package/package.json +21 -21
package/components/BottomNav.vue
CHANGED
package/components/Divider.vue
CHANGED
package/components/Dropdown.vue
CHANGED
package/components/Flex.vue
CHANGED
package/components/FlexItem.vue
CHANGED
package/components/Footer.vue
CHANGED
package/components/Hero.vue
CHANGED
package/components/Indicator.vue
CHANGED
package/components/Kbd.vue
CHANGED
package/components/Label.vue
CHANGED
package/components/LabelText.vue
CHANGED
package/components/Link.vue
CHANGED
package/components/Mask.vue
CHANGED
package/components/Menu.vue
CHANGED
package/components/MenuItem.vue
CHANGED
package/components/NavButton.vue
CHANGED
package/components/Navbar.vue
CHANGED
package/components/NavbarEnd.vue
CHANGED
package/components/Progress.vue
CHANGED
package/components/Prose.vue
CHANGED
package/components/Radio.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { computed,
|
|
2
|
+
import { computed, inject } from 'vue'
|
|
3
3
|
|
|
4
4
|
const props = defineProps<{
|
|
5
5
|
modelValue?: any
|
|
@@ -21,7 +21,8 @@ const emit = defineEmits(['update:modelValue'])
|
|
|
21
21
|
const radioGroup = inject('radio-group', null)
|
|
22
22
|
|
|
23
23
|
const _props = computed(() => {
|
|
24
|
-
if (radioGroup)
|
|
24
|
+
if (radioGroup)
|
|
25
|
+
return Object.assign({}, radioGroup.props, props)
|
|
25
26
|
else return props
|
|
26
27
|
})
|
|
27
28
|
|
|
@@ -40,7 +41,8 @@ const classes = computed(() => {
|
|
|
40
41
|
|
|
41
42
|
const currentValue = computed({
|
|
42
43
|
get() {
|
|
43
|
-
if (radioGroup)
|
|
44
|
+
if (radioGroup)
|
|
45
|
+
return radioGroup.currentValue
|
|
44
46
|
return props.modelValue
|
|
45
47
|
},
|
|
46
48
|
set(val: string) {
|
|
@@ -48,14 +50,13 @@ const currentValue = computed({
|
|
|
48
50
|
emit('update:modelValue', val)
|
|
49
51
|
},
|
|
50
52
|
})
|
|
51
|
-
|
|
52
53
|
</script>
|
|
53
54
|
|
|
54
55
|
<template>
|
|
55
56
|
<input
|
|
56
57
|
v-model="currentValue"
|
|
57
58
|
type="radio"
|
|
58
|
-
v-bind="{..._props, ...$attrs}"
|
|
59
|
+
v-bind="{ ..._props, ...$attrs }"
|
|
59
60
|
class="radio"
|
|
60
61
|
:class="classes"
|
|
61
62
|
:value="props.value"
|
package/components/Range.vue
CHANGED
package/components/Rating.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { computed,
|
|
2
|
+
import { computed, withDefaults } from 'vue'
|
|
3
3
|
|
|
4
4
|
interface Props {
|
|
5
5
|
modelValue?: number | string
|
|
@@ -142,8 +142,8 @@ const max = computed(() => parseInt(props.count as string))
|
|
|
142
142
|
v-if="half"
|
|
143
143
|
type="radio"
|
|
144
144
|
:value="digit"
|
|
145
|
-
class="mask"
|
|
146
|
-
:class="[maskClasses,
|
|
145
|
+
class="mask mask-half-2"
|
|
146
|
+
:class="[maskClasses, bg]"
|
|
147
147
|
:checked="modelValue == digit"
|
|
148
148
|
@change="$emit('update:modelValue', digit)"
|
|
149
149
|
>
|
package/components/Select.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { computed,
|
|
2
|
+
import { computed, withDefaults } from 'vue'
|
|
3
3
|
|
|
4
4
|
type Value = string | Record<string, any>
|
|
5
5
|
type Color =
|
|
@@ -61,7 +61,8 @@ const computedVModel = computed({
|
|
|
61
61
|
return props.modelValue
|
|
62
62
|
},
|
|
63
63
|
set: (val) => {
|
|
64
|
-
if (val === undefined)
|
|
64
|
+
if (val === undefined)
|
|
65
|
+
val = null
|
|
65
66
|
if (props.resultAsObject && val != null)
|
|
66
67
|
val = props.options.find(o => props.value(o) === val)
|
|
67
68
|
|
package/components/Stack.vue
CHANGED
package/components/Step.vue
CHANGED
package/components/Steps.vue
CHANGED
package/components/Swap.vue
CHANGED
package/components/Tab.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { computed,
|
|
2
|
+
import { computed, inject, withDefaults } from 'vue'
|
|
3
3
|
|
|
4
4
|
interface Props {
|
|
5
5
|
is?: any
|
|
@@ -15,10 +15,12 @@ const isCurrentTab = computed(() => {
|
|
|
15
15
|
return tabManager.currentTab === props.name
|
|
16
16
|
})
|
|
17
17
|
|
|
18
|
-
if (!tabManager.currentTab)
|
|
18
|
+
if (!tabManager.currentTab)
|
|
19
|
+
tabManager.currentTab = props.name
|
|
19
20
|
|
|
20
21
|
const existing = tabManager.tabs.find(t => t === props.name)
|
|
21
|
-
if (!existing)
|
|
22
|
+
if (!existing)
|
|
23
|
+
tabManager.tabs.push(props.name)
|
|
22
24
|
</script>
|
|
23
25
|
|
|
24
26
|
<template>
|
package/components/Tabs.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { computed,
|
|
2
|
+
import { computed, inject, withDefaults } from 'vue'
|
|
3
3
|
import Tab from './Tab.vue'
|
|
4
4
|
|
|
5
5
|
interface Props {
|
|
@@ -26,16 +26,23 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
26
26
|
const tabManager: any = inject('tabManager')
|
|
27
27
|
|
|
28
28
|
const _variant = computed(() => {
|
|
29
|
-
if (props.bordered || props.variant === 'bordered')
|
|
30
|
-
|
|
29
|
+
if (props.bordered || props.variant === 'bordered')
|
|
30
|
+
return 'bordered'
|
|
31
|
+
if (props.lifted || props.variant === 'lifted')
|
|
32
|
+
return 'lifted'
|
|
31
33
|
return undefined
|
|
32
34
|
})
|
|
33
35
|
const _size = computed(() => {
|
|
34
|
-
if (props.size)
|
|
35
|
-
|
|
36
|
-
if (props.
|
|
37
|
-
|
|
38
|
-
if (props.
|
|
36
|
+
if (props.size)
|
|
37
|
+
return props.size
|
|
38
|
+
if (props.lg)
|
|
39
|
+
return 'lg'
|
|
40
|
+
if (props.md)
|
|
41
|
+
return 'md'
|
|
42
|
+
if (props.sm)
|
|
43
|
+
return 'sm'
|
|
44
|
+
if (props.xs)
|
|
45
|
+
return 'xs'
|
|
39
46
|
return 'md'
|
|
40
47
|
})
|
|
41
48
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import {
|
|
2
|
+
import { provide, reactive, watch } from 'vue'
|
|
3
3
|
|
|
4
4
|
interface Props {
|
|
5
5
|
tab?: string
|
|
@@ -17,7 +17,8 @@ provide('tabManager', manager)
|
|
|
17
17
|
watch(
|
|
18
18
|
() => props.tab,
|
|
19
19
|
(val) => {
|
|
20
|
-
if (val !== manager.currentTab)
|
|
20
|
+
if (val !== manager.currentTab)
|
|
21
|
+
manager.currentTab = val
|
|
21
22
|
},
|
|
22
23
|
)
|
|
23
24
|
|
|
@@ -25,7 +26,8 @@ watch(
|
|
|
25
26
|
watch(
|
|
26
27
|
() => manager.currentTab,
|
|
27
28
|
(val) => {
|
|
28
|
-
if (val !== props.tab)
|
|
29
|
+
if (val !== props.tab)
|
|
30
|
+
emit('update:tab', val)
|
|
29
31
|
},
|
|
30
32
|
)
|
|
31
33
|
</script>
|
package/components/Text.vue
CHANGED
package/components/TextArea.vue
CHANGED
package/components/TextInput.vue
CHANGED
package/components/Toast.vue
CHANGED
package/components/Toggle.vue
CHANGED
package/components/Tooltip.vue
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "daisy-ui-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "nuxi build",
|
|
@@ -19,42 +19,42 @@
|
|
|
19
19
|
"nuxt.js"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@vueuse/core": "^9.
|
|
22
|
+
"@vueuse/core": "^9.12.0",
|
|
23
23
|
"prismjs": "^1.29.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"daisyui": "^2.13.5"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@antfu/eslint-config": "^0.
|
|
30
|
-
"@headlessui/vue": "^1.7.
|
|
31
|
-
"@heroicons/vue": "^2.0.
|
|
32
|
-
"@iconify/json": "^2.
|
|
33
|
-
"@nuxt/kit": "
|
|
34
|
-
"@nuxtjs/color-mode": "^3.
|
|
35
|
-
"@nuxtjs/tailwindcss": "^6.1
|
|
36
|
-
"@pinia/nuxt": "^0.4.
|
|
29
|
+
"@antfu/eslint-config": "^0.35.1",
|
|
30
|
+
"@headlessui/vue": "^1.7.9",
|
|
31
|
+
"@heroicons/vue": "^2.0.14",
|
|
32
|
+
"@iconify/json": "^2.2.16",
|
|
33
|
+
"@nuxt/kit": "@nuxt/kit",
|
|
34
|
+
"@nuxtjs/color-mode": "^3.2.0",
|
|
35
|
+
"@nuxtjs/tailwindcss": "^6.3.1",
|
|
36
|
+
"@pinia/nuxt": "^0.4.6",
|
|
37
37
|
"@popperjs/core": "^2.11.6",
|
|
38
38
|
"@rovit/popper": "^3.9.0",
|
|
39
39
|
"@tailwindcss/aspect-ratio": "^0.4.2",
|
|
40
40
|
"@tailwindcss/forms": "^0.5.3",
|
|
41
41
|
"@tailwindcss/line-clamp": "^0.4.2",
|
|
42
|
-
"@tailwindcss/typography": "^0.5.
|
|
43
|
-
"@vueuse/nuxt": "^9.
|
|
42
|
+
"@tailwindcss/typography": "^0.5.9",
|
|
43
|
+
"@vueuse/nuxt": "^9.12.0",
|
|
44
44
|
"autoprefixer": "^10.4.13",
|
|
45
45
|
"cookie": "^0.5.0",
|
|
46
|
-
"daisyui": "^2.
|
|
47
|
-
"eslint": "^8.
|
|
46
|
+
"daisyui": "^2.50.0",
|
|
47
|
+
"eslint": "^8.33.0",
|
|
48
48
|
"feathers-pinia": "^0.36.5",
|
|
49
49
|
"mobile-detect": "^1.4.5",
|
|
50
|
-
"nuxt": "^3.
|
|
51
|
-
"nuxt-icon": "^0.
|
|
50
|
+
"nuxt": "^3.1.2",
|
|
51
|
+
"nuxt-icon": "^0.2.10",
|
|
52
52
|
"ohmyfetch": "^0.4.21",
|
|
53
|
-
"pinia": "^2.0.
|
|
54
|
-
"postcss": "^8.4.
|
|
53
|
+
"pinia": "^2.0.30",
|
|
54
|
+
"postcss": "^8.4.21",
|
|
55
55
|
"tailwindcss": "^3.2.4",
|
|
56
|
-
"typescript": "^4.9.
|
|
57
|
-
"unplugin-icons": "^0.
|
|
58
|
-
"vue": "^3.2.
|
|
56
|
+
"typescript": "^4.9.5",
|
|
57
|
+
"unplugin-icons": "^0.15.2",
|
|
58
|
+
"vue": "^3.2.47"
|
|
59
59
|
}
|
|
60
60
|
}
|