daisy-ui-kit 2.1.3 → 2.1.4
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/Button.vue +4 -4
- package/components/Card.vue +2 -3
- package/components/CardActions.vue +1 -1
- package/components/CardBody.vue +1 -1
- package/components/CardTitle.vue +1 -1
- package/components/Carousel.vue +2 -3
- package/components/Collapse.vue +2 -3
- package/components/Countdown.vue +2 -3
- package/components/CountdownTimers.vue +2 -3
- package/components/Counter.vue +2 -3
- package/components/Divider.vue +2 -3
- package/components/Drawer.vue +1 -0
- package/components/Dropdown.vue +2 -3
- package/components/FileInput.vue +2 -3
- package/components/Flex.vue +2 -3
- package/components/FlexItem.vue +2 -3
- package/components/Footer.vue +2 -3
- package/components/FooterTitle.vue +2 -3
- package/components/Hero.vue +2 -3
- package/components/HeroContent.vue +2 -3
- package/components/Indicator.vue +2 -3
- package/components/IndicatorItem.vue +2 -3
- package/components/Kbd.vue +2 -3
- package/components/Label.vue +2 -3
- package/components/LabelText.vue +2 -3
- package/components/LabelTextAlt.vue +2 -3
- package/components/Link.vue +2 -3
- package/components/Menu.vue +2 -3
- package/components/MenuItem.vue +2 -3
- package/components/Modal.vue +2 -3
- package/components/NavButton.vue +2 -4
- package/components/Navbar.vue +2 -3
- package/components/NavbarCenter.vue +2 -3
- package/components/NavbarEnd.vue +2 -3
- package/components/NavbarStart.vue +2 -3
- package/components/Progress.vue +2 -3
- package/components/RadialProgress.vue +2 -3
- package/components/Range.vue +2 -3
- package/components/Rating.vue +2 -3
- package/components/Select.vue +1 -8
- package/components/Stack.vue +2 -3
- package/components/Steps.vue +2 -3
- package/components/Swap.vue +2 -4
- package/components/TabContent.vue +2 -3
- package/components/Tabs.vue +2 -3
- package/components/TabsManager.vue +2 -3
- package/components/Text.vue +5 -45
- package/components/TextArea.vue +2 -3
- package/components/TextInput.vue +2 -3
- package/components/Toast.vue +2 -4
- package/components/Toggle.vue +2 -3
- package/components/Tooltip.vue +2 -4
- package/package.json +1 -1
- package/components/CodeWrapper.vue +0 -10
- package/components/DarkToggle.vue +0 -11
- package/components/Logo.vue +0 -8
package/components/Button.vue
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
|
|
2
|
+
import { computed } from 'vue'
|
|
3
|
+
|
|
4
|
+
const props = defineProps<{
|
|
3
5
|
is?: string
|
|
4
6
|
join?: boolean
|
|
5
7
|
|
|
@@ -35,9 +37,7 @@ interface Props {
|
|
|
35
37
|
xs?: boolean
|
|
36
38
|
|
|
37
39
|
type?: 'button' | 'submit' | 'reset'
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const props = defineProps<Props>()
|
|
40
|
+
}>()
|
|
41
41
|
|
|
42
42
|
const classes = computed(() => {
|
|
43
43
|
return {
|
package/components/Card.vue
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = withDefaults(defineProps<{
|
|
5
5
|
is?: string | Object | Function
|
|
6
6
|
bordered?: boolean
|
|
7
7
|
compact?: boolean
|
|
8
8
|
side?: boolean
|
|
9
9
|
imageFull?: boolean
|
|
10
10
|
glass?: boolean
|
|
11
|
-
}
|
|
12
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
11
|
+
}>(), {
|
|
13
12
|
is: 'div',
|
|
14
13
|
})
|
|
15
14
|
|
package/components/CardBody.vue
CHANGED
package/components/CardTitle.vue
CHANGED
package/components/Carousel.vue
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = defineProps<{
|
|
5
5
|
snapTo?: 'center' | 'end'
|
|
6
6
|
center?: boolean
|
|
7
7
|
end?: boolean
|
|
8
8
|
vertical?: boolean
|
|
9
|
-
}
|
|
10
|
-
const props = defineProps<Props>()
|
|
9
|
+
}>()
|
|
11
10
|
|
|
12
11
|
const classes = computed(() => {
|
|
13
12
|
const { snapTo, center, end, vertical } = props
|
package/components/Collapse.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = defineProps<{
|
|
5
5
|
style?: 'arrow' | 'plus'
|
|
6
6
|
arrow?: boolean
|
|
7
7
|
plus?: boolean
|
|
@@ -13,8 +13,7 @@ interface Props {
|
|
|
13
13
|
|
|
14
14
|
// for accordion
|
|
15
15
|
value?: any
|
|
16
|
-
}
|
|
17
|
-
const props = defineProps<Props>()
|
|
16
|
+
}>()
|
|
18
17
|
|
|
19
18
|
const accordionValue: any = inject('accordion-value', ref('no-accordion-value'))
|
|
20
19
|
const useAccordion = computed(() => {
|
package/components/Countdown.vue
CHANGED
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
import { useIntervalFn } from '@vueuse/core'
|
|
3
3
|
import { computed } from 'vue'
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const props = withDefaults(defineProps<{
|
|
6
6
|
durationInSeconds?: number
|
|
7
7
|
untilDate?: Date
|
|
8
|
-
}
|
|
9
|
-
const props = withDefaults(defineProps<Props>(), { durationInSeconds: 0 })
|
|
8
|
+
}>(), { durationInSeconds: 0 })
|
|
10
9
|
const emit = defineEmits(['done'])
|
|
11
10
|
|
|
12
11
|
const calculateDate = () => props.untilDate || new Date(Date.now() + props.durationInSeconds * 1000)
|
package/components/Counter.vue
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = defineProps<{
|
|
5
5
|
value: number
|
|
6
6
|
is?: string | Function
|
|
7
|
-
}
|
|
8
|
-
const props = defineProps<Props>()
|
|
7
|
+
}>()
|
|
9
8
|
|
|
10
9
|
const tag = computed(() => props.is || 'span')
|
|
11
10
|
</script>
|
package/components/Divider.vue
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = withDefaults(defineProps<{
|
|
5
5
|
horizontal?: boolean
|
|
6
6
|
vertical?: boolean
|
|
7
|
-
}
|
|
8
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
7
|
+
}>(), {
|
|
9
8
|
horizontal: false,
|
|
10
9
|
vertical: false,
|
|
11
10
|
})
|
package/components/Drawer.vue
CHANGED
package/components/Dropdown.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
import { onClickOutside, syncRefs, useElementHover } from '@vueuse/core'
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const props = withDefaults(defineProps<{
|
|
6
6
|
position?: string
|
|
7
7
|
top?: boolean
|
|
8
8
|
bottom?: boolean
|
|
@@ -15,8 +15,7 @@ interface Props {
|
|
|
15
15
|
delayLeave?: number
|
|
16
16
|
open?: boolean
|
|
17
17
|
closeOnClickOutside?: boolean
|
|
18
|
-
}
|
|
19
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
18
|
+
}>(), {
|
|
20
19
|
position: 'bottom',
|
|
21
20
|
end: false,
|
|
22
21
|
hover: false,
|
package/components/FileInput.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = defineProps<{
|
|
5
5
|
join?: boolean
|
|
6
6
|
|
|
7
7
|
color?: string
|
|
@@ -22,8 +22,7 @@ interface Props {
|
|
|
22
22
|
md?: boolean
|
|
23
23
|
sm?: boolean
|
|
24
24
|
xs?: boolean
|
|
25
|
-
}
|
|
26
|
-
const props = defineProps<Props>()
|
|
25
|
+
}>()
|
|
27
26
|
defineEmits(['files'])
|
|
28
27
|
|
|
29
28
|
const classes = computed(() => {
|
package/components/Flex.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = withDefaults(defineProps<{
|
|
5
5
|
is?: string | Object | Function
|
|
6
6
|
join?: boolean
|
|
7
7
|
|
|
@@ -24,8 +24,7 @@ interface Props {
|
|
|
24
24
|
wrap?: boolean
|
|
25
25
|
nowrap?: boolean
|
|
26
26
|
wrapReverse?: boolean
|
|
27
|
-
}
|
|
28
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
27
|
+
}>(), {
|
|
29
28
|
is: 'div',
|
|
30
29
|
flex: true,
|
|
31
30
|
})
|
package/components/FlexItem.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = withDefaults(defineProps<{
|
|
5
5
|
is?: string | Object | Function
|
|
6
6
|
join?: boolean
|
|
7
7
|
|
|
@@ -24,8 +24,7 @@ interface Props {
|
|
|
24
24
|
wrap?: boolean
|
|
25
25
|
nowrap?: boolean
|
|
26
26
|
wrapReverse?: boolean
|
|
27
|
-
}
|
|
28
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
27
|
+
}>(), {
|
|
29
28
|
is: 'div',
|
|
30
29
|
flex: false,
|
|
31
30
|
})
|
package/components/Footer.vue
CHANGED
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
import Text from './Text.vue'
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const props = withDefaults(defineProps<{
|
|
6
6
|
center?: boolean
|
|
7
7
|
is?: string
|
|
8
|
-
}
|
|
9
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
8
|
+
}>(), {
|
|
10
9
|
center: false,
|
|
11
10
|
is: 'footer',
|
|
12
11
|
})
|
package/components/Hero.vue
CHANGED
package/components/Indicator.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, withDefaults } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = withDefaults(defineProps<{
|
|
5
5
|
is?: string
|
|
6
6
|
|
|
7
7
|
align?: 'start' | 'center' | 'end'
|
|
@@ -13,8 +13,7 @@ interface Props {
|
|
|
13
13
|
top?: boolean
|
|
14
14
|
middle?: boolean
|
|
15
15
|
bottom?: boolean
|
|
16
|
-
}
|
|
17
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
16
|
+
}>(), {
|
|
18
17
|
is: 'div',
|
|
19
18
|
})
|
|
20
19
|
const classes = computed(() => {
|
package/components/Kbd.vue
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = defineProps<{
|
|
5
5
|
size?: 'lg' | 'md' | 'sm' | 'xs'
|
|
6
6
|
lg?: boolean
|
|
7
7
|
md?: boolean
|
|
8
8
|
sm?: boolean
|
|
9
9
|
xs?: boolean
|
|
10
|
-
}
|
|
11
|
-
const props = defineProps<Props>()
|
|
10
|
+
}>()
|
|
12
11
|
|
|
13
12
|
const classes = computed(() => {
|
|
14
13
|
const { size, lg, md, sm, xs } = props
|
package/components/Label.vue
CHANGED
package/components/LabelText.vue
CHANGED
package/components/Link.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
|
|
2
|
+
const props = withDefaults(defineProps<{
|
|
3
3
|
is?: string
|
|
4
4
|
hover?: boolean
|
|
5
5
|
|
|
@@ -12,8 +12,7 @@ interface Props {
|
|
|
12
12
|
info?: boolean
|
|
13
13
|
warning?: boolean
|
|
14
14
|
error?: boolean
|
|
15
|
-
}
|
|
16
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
15
|
+
}>(), {
|
|
17
16
|
is: 'a',
|
|
18
17
|
})
|
|
19
18
|
|
package/components/Menu.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = defineProps<{
|
|
5
5
|
align?: 'vertical' | 'horizontal'
|
|
6
6
|
vertical?: boolean
|
|
7
7
|
horizontal?: boolean
|
|
@@ -11,8 +11,7 @@ interface Props {
|
|
|
11
11
|
md?: boolean
|
|
12
12
|
sm?: boolean
|
|
13
13
|
xs?: boolean
|
|
14
|
-
}
|
|
15
|
-
const props = defineProps<Props>()
|
|
14
|
+
}>()
|
|
16
15
|
|
|
17
16
|
// `normal` and `compact` provide backwards compatibility with DaisyUI 2.x
|
|
18
17
|
const classes = computed(() => {
|
package/components/MenuItem.vue
CHANGED
package/components/Modal.vue
CHANGED
package/components/NavButton.vue
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = defineProps<{
|
|
5
5
|
active?: boolean
|
|
6
6
|
disabled?: boolean
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const props = defineProps<Props>()
|
|
7
|
+
}>()
|
|
10
8
|
const classes = computed(() => {
|
|
11
9
|
return {
|
|
12
10
|
active: props.active,
|
package/components/Navbar.vue
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { withDefaults } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = withDefaults(defineProps<{
|
|
5
5
|
is?: string | Object | Function
|
|
6
6
|
glass?: boolean
|
|
7
|
-
}
|
|
8
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
7
|
+
}>(), {
|
|
9
8
|
is: 'div',
|
|
10
9
|
})
|
|
11
10
|
</script>
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { withDefaults } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = withDefaults(defineProps<{
|
|
5
5
|
is?: string | Object | Function
|
|
6
|
-
}
|
|
7
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
6
|
+
}>(), {
|
|
8
7
|
is: 'div',
|
|
9
8
|
})
|
|
10
9
|
</script>
|
package/components/NavbarEnd.vue
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { withDefaults } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = withDefaults(defineProps<{
|
|
5
5
|
is?: string | Object | Function
|
|
6
|
-
}
|
|
7
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
6
|
+
}>(), {
|
|
8
7
|
is: 'div',
|
|
9
8
|
})
|
|
10
9
|
</script>
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { withDefaults } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = withDefaults(defineProps<{
|
|
5
5
|
is?: string | Object | Function
|
|
6
|
-
}
|
|
7
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
6
|
+
}>(), {
|
|
8
7
|
is: 'div',
|
|
9
8
|
})
|
|
10
9
|
</script>
|
package/components/Progress.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = withDefaults(defineProps<{
|
|
5
5
|
value: any
|
|
6
6
|
max?: any
|
|
7
7
|
|
|
@@ -13,8 +13,7 @@ interface Props {
|
|
|
13
13
|
info?: boolean
|
|
14
14
|
warning?: boolean
|
|
15
15
|
error?: boolean
|
|
16
|
-
}
|
|
17
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
16
|
+
}>(), {
|
|
18
17
|
value: 0,
|
|
19
18
|
max: 100,
|
|
20
19
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = defineProps<{
|
|
5
5
|
value: number | string
|
|
6
6
|
size?: string
|
|
7
7
|
thickness?: string
|
|
@@ -15,8 +15,7 @@ interface Props {
|
|
|
15
15
|
success?: boolean
|
|
16
16
|
warning?: boolean
|
|
17
17
|
error?: boolean
|
|
18
|
-
}
|
|
19
|
-
const props = defineProps<Props>()
|
|
18
|
+
}>()
|
|
20
19
|
|
|
21
20
|
const calculatedSize = computed(() => props.size || '4rem')
|
|
22
21
|
const calculatedThickness = computed(() => props.thickness || 'calc(var(--size) / 10)')
|
package/components/Range.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = defineProps<{
|
|
5
5
|
modelValue?: number | string
|
|
6
6
|
min?: number | string
|
|
7
7
|
max?: number | string
|
|
@@ -23,8 +23,7 @@ interface Props {
|
|
|
23
23
|
md?: boolean
|
|
24
24
|
sm?: boolean
|
|
25
25
|
xs?: boolean
|
|
26
|
-
}
|
|
27
|
-
const props = defineProps<Props>()
|
|
26
|
+
}>()
|
|
28
27
|
defineEmits(['update:modelValue'])
|
|
29
28
|
|
|
30
29
|
const classes = computed(() => {
|
package/components/Rating.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = withDefaults(defineProps<{
|
|
5
5
|
modelValue?: number | string
|
|
6
6
|
count?: number | string
|
|
7
7
|
half?: boolean
|
|
@@ -46,8 +46,7 @@ interface Props {
|
|
|
46
46
|
md?: boolean
|
|
47
47
|
sm?: boolean
|
|
48
48
|
xs?: boolean
|
|
49
|
-
}
|
|
50
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
49
|
+
}>(), {
|
|
51
50
|
count: 5,
|
|
52
51
|
})
|
|
53
52
|
const emit = defineEmits(['update:modelValue'])
|
package/components/Select.vue
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
type Color =
|
|
3
|
-
| 'primary'
|
|
4
|
-
| 'secondary'
|
|
5
|
-
| 'accent'
|
|
6
|
-
| 'info'
|
|
7
|
-
| 'success'
|
|
8
|
-
| 'warning'
|
|
9
|
-
| 'error'
|
|
2
|
+
type Color = | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error'
|
|
10
3
|
|
|
11
4
|
const props = withDefaults(defineProps<{
|
|
12
5
|
modelValue: any
|
package/components/Stack.vue
CHANGED
package/components/Steps.vue
CHANGED
package/components/Swap.vue
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, nextTick, ref, watch } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = defineProps<{
|
|
5
5
|
modelValue?: boolean | null
|
|
6
6
|
indeterminate?: boolean
|
|
7
7
|
rotate?: boolean
|
|
8
8
|
flip?: boolean
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const props = defineProps<Props>()
|
|
9
|
+
}>()
|
|
12
10
|
const emit = defineEmits(['update:modelValue'])
|
|
13
11
|
const classes = computed(() => {
|
|
14
12
|
return {
|
package/components/Tabs.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { computed, inject } from 'vue'
|
|
3
3
|
import Tab from './Tab.vue'
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const props = withDefaults(defineProps<{
|
|
6
6
|
is?: string | Object | Function
|
|
7
7
|
tabs?: string[]
|
|
8
8
|
|
|
@@ -17,8 +17,7 @@ interface Props {
|
|
|
17
17
|
md?: boolean
|
|
18
18
|
sm?: boolean
|
|
19
19
|
xs?: boolean
|
|
20
|
-
}
|
|
21
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
20
|
+
}>(), {
|
|
22
21
|
is: 'a',
|
|
23
22
|
tabs: [] as any,
|
|
24
23
|
})
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { provide, reactive, watch } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = defineProps<{
|
|
5
5
|
tab?: string
|
|
6
|
-
}
|
|
7
|
-
const props = defineProps<Props>()
|
|
6
|
+
}>()
|
|
8
7
|
const emit = defineEmits(['update:tab'])
|
|
9
8
|
|
|
10
9
|
const manager = reactive({
|
package/components/Text.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = defineProps<{
|
|
5
5
|
is?: string
|
|
6
6
|
join?: boolean
|
|
7
7
|
|
|
@@ -9,23 +9,7 @@ interface Props {
|
|
|
9
9
|
inline?: boolean
|
|
10
10
|
inlineBlock?: boolean
|
|
11
11
|
|
|
12
|
-
color?:
|
|
13
|
-
| 'neutral'
|
|
14
|
-
| 'primary'
|
|
15
|
-
| 'secondary'
|
|
16
|
-
| 'accent'
|
|
17
|
-
| 'info'
|
|
18
|
-
| 'success'
|
|
19
|
-
| 'warning'
|
|
20
|
-
| 'error'
|
|
21
|
-
| 'primary-content'
|
|
22
|
-
| 'secondary-content'
|
|
23
|
-
| 'neutral-content'
|
|
24
|
-
| 'accent-content'
|
|
25
|
-
| 'info-content'
|
|
26
|
-
| 'success-content'
|
|
27
|
-
| 'warning-content'
|
|
28
|
-
| 'error-content'
|
|
12
|
+
color?: | 'neutral' | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | 'primary-content' | 'secondary-content' | 'neutral-content' | 'accent-content' | 'info-content' | 'success-content' | 'warning-content' | 'error-content'
|
|
29
13
|
neutral?: boolean
|
|
30
14
|
primary?: boolean
|
|
31
15
|
secondary?: boolean
|
|
@@ -43,20 +27,7 @@ interface Props {
|
|
|
43
27
|
warningContent?: boolean
|
|
44
28
|
errorContent?: boolean
|
|
45
29
|
|
|
46
|
-
size?:
|
|
47
|
-
| '9xl'
|
|
48
|
-
| '8xl'
|
|
49
|
-
| '7xl'
|
|
50
|
-
| '6xl'
|
|
51
|
-
| '5xl'
|
|
52
|
-
| '4xl'
|
|
53
|
-
| '3xl'
|
|
54
|
-
| '2xl'
|
|
55
|
-
| 'xl'
|
|
56
|
-
| 'lg'
|
|
57
|
-
| 'md'
|
|
58
|
-
| 'sm'
|
|
59
|
-
| 'xs'
|
|
30
|
+
size?: | '9xl' | '8xl' | '7xl' | '6xl' | '5xl' | '4xl' | '3xl' | '2xl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs'
|
|
60
31
|
xl?: boolean
|
|
61
32
|
lg?: boolean
|
|
62
33
|
md?: boolean
|
|
@@ -80,16 +51,7 @@ interface Props {
|
|
|
80
51
|
serif?: boolean
|
|
81
52
|
mono?: boolean
|
|
82
53
|
|
|
83
|
-
weight?:
|
|
84
|
-
| 'thin'
|
|
85
|
-
| 'extralight'
|
|
86
|
-
| 'light'
|
|
87
|
-
| 'normal'
|
|
88
|
-
| 'medium'
|
|
89
|
-
| 'semibold'
|
|
90
|
-
| 'bold'
|
|
91
|
-
| 'extrabold'
|
|
92
|
-
| 'black'
|
|
54
|
+
weight?: | 'thin' | 'extralight' | 'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold' | 'black'
|
|
93
55
|
thin?: boolean
|
|
94
56
|
extralight?: boolean
|
|
95
57
|
light?: boolean
|
|
@@ -99,9 +61,7 @@ interface Props {
|
|
|
99
61
|
bold?: boolean
|
|
100
62
|
extrabold?: boolean
|
|
101
63
|
black?: boolean
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
const props = defineProps<Props>()
|
|
64
|
+
}>()
|
|
105
65
|
|
|
106
66
|
const classes = computed(() => {
|
|
107
67
|
return {
|
package/components/TextArea.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = withDefaults(defineProps<{
|
|
5
5
|
modelValue?: string
|
|
6
6
|
placeholder?: string
|
|
7
7
|
type?: 'text' | 'phone' | 'email' | 'search'
|
|
@@ -24,8 +24,7 @@ interface Props {
|
|
|
24
24
|
md?: boolean
|
|
25
25
|
sm?: boolean
|
|
26
26
|
xs?: boolean
|
|
27
|
-
}
|
|
28
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
27
|
+
}>(), {
|
|
29
28
|
type: 'text',
|
|
30
29
|
})
|
|
31
30
|
defineEmits(['update:modelValue'])
|
package/components/TextInput.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = withDefaults(defineProps<{
|
|
5
5
|
modelValue?: string | number
|
|
6
6
|
placeholder?: string
|
|
7
7
|
type?: 'text' | 'phone' | 'email' | 'search' | 'password' | 'number'
|
|
@@ -25,8 +25,7 @@ interface Props {
|
|
|
25
25
|
md?: boolean
|
|
26
26
|
sm?: boolean
|
|
27
27
|
xs?: boolean
|
|
28
|
-
}
|
|
29
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
28
|
+
}>(), {
|
|
30
29
|
type: 'text',
|
|
31
30
|
})
|
|
32
31
|
defineEmits(['update:modelValue'])
|
package/components/Toast.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = defineProps<{
|
|
5
5
|
hAlign?: 'start' | 'center' | 'end'
|
|
6
6
|
start?: boolean
|
|
7
7
|
center?: boolean
|
|
@@ -11,9 +11,7 @@ interface Props {
|
|
|
11
11
|
top?: boolean
|
|
12
12
|
middle?: boolean
|
|
13
13
|
bottom?: boolean
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const props = defineProps<Props>()
|
|
14
|
+
}>()
|
|
17
15
|
const classes = computed(() => {
|
|
18
16
|
return {
|
|
19
17
|
'toast-start': props.start || props.hAlign === 'start',
|
package/components/Toggle.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = defineProps<{
|
|
5
5
|
modelValue?: any
|
|
6
6
|
disabled?: boolean
|
|
7
7
|
|
|
@@ -20,8 +20,7 @@ interface Props {
|
|
|
20
20
|
sm?: boolean
|
|
21
21
|
md?: boolean
|
|
22
22
|
lg?: boolean
|
|
23
|
-
}
|
|
24
|
-
const props = defineProps<Props>()
|
|
23
|
+
}>()
|
|
25
24
|
const emit = defineEmits(['update:modelValue'])
|
|
26
25
|
|
|
27
26
|
const classes = computed(() => {
|
package/components/Tooltip.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const props = defineProps<{
|
|
5
5
|
tip?: string | number
|
|
6
6
|
open?: boolean
|
|
7
7
|
|
|
@@ -20,9 +20,7 @@ interface Props {
|
|
|
20
20
|
right?: boolean
|
|
21
21
|
bottom?: boolean
|
|
22
22
|
left?: boolean
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const props = defineProps<Props>()
|
|
23
|
+
}>()
|
|
26
24
|
const classes = computed(() => {
|
|
27
25
|
return {
|
|
28
26
|
'tooltip-open': props.open,
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<Collapse arrow toggle class="mb-8 rounded-b-xl rounded-t-none bg-base-200 p-0">
|
|
3
|
-
<CollapseTitle class="text-lg font-medium">
|
|
4
|
-
Code Example
|
|
5
|
-
</CollapseTitle>
|
|
6
|
-
<CollapseContent class="overflow-hidden">
|
|
7
|
-
<slot />
|
|
8
|
-
</CollapseContent>
|
|
9
|
-
</Collapse>
|
|
10
|
-
</template>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<script setup lang='ts'>
|
|
2
|
-
const isDark = useDark()
|
|
3
|
-
const toggleDark = useToggle(isDark)
|
|
4
|
-
</script>
|
|
5
|
-
|
|
6
|
-
<template>
|
|
7
|
-
<button class="!outline-none" @click="toggleDark()">
|
|
8
|
-
<div v-if="isDark" class="i-carbon-moon" />
|
|
9
|
-
<div v-else class="i-carbon-sun" />
|
|
10
|
-
</button>
|
|
11
|
-
</template>
|