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.
Files changed (56) hide show
  1. package/components/Button.vue +4 -4
  2. package/components/Card.vue +2 -3
  3. package/components/CardActions.vue +1 -1
  4. package/components/CardBody.vue +1 -1
  5. package/components/CardTitle.vue +1 -1
  6. package/components/Carousel.vue +2 -3
  7. package/components/Collapse.vue +2 -3
  8. package/components/Countdown.vue +2 -3
  9. package/components/CountdownTimers.vue +2 -3
  10. package/components/Counter.vue +2 -3
  11. package/components/Divider.vue +2 -3
  12. package/components/Drawer.vue +1 -0
  13. package/components/Dropdown.vue +2 -3
  14. package/components/FileInput.vue +2 -3
  15. package/components/Flex.vue +2 -3
  16. package/components/FlexItem.vue +2 -3
  17. package/components/Footer.vue +2 -3
  18. package/components/FooterTitle.vue +2 -3
  19. package/components/Hero.vue +2 -3
  20. package/components/HeroContent.vue +2 -3
  21. package/components/Indicator.vue +2 -3
  22. package/components/IndicatorItem.vue +2 -3
  23. package/components/Kbd.vue +2 -3
  24. package/components/Label.vue +2 -3
  25. package/components/LabelText.vue +2 -3
  26. package/components/LabelTextAlt.vue +2 -3
  27. package/components/Link.vue +2 -3
  28. package/components/Menu.vue +2 -3
  29. package/components/MenuItem.vue +2 -3
  30. package/components/Modal.vue +2 -3
  31. package/components/NavButton.vue +2 -4
  32. package/components/Navbar.vue +2 -3
  33. package/components/NavbarCenter.vue +2 -3
  34. package/components/NavbarEnd.vue +2 -3
  35. package/components/NavbarStart.vue +2 -3
  36. package/components/Progress.vue +2 -3
  37. package/components/RadialProgress.vue +2 -3
  38. package/components/Range.vue +2 -3
  39. package/components/Rating.vue +2 -3
  40. package/components/Select.vue +1 -8
  41. package/components/Stack.vue +2 -3
  42. package/components/Steps.vue +2 -3
  43. package/components/Swap.vue +2 -4
  44. package/components/TabContent.vue +2 -3
  45. package/components/Tabs.vue +2 -3
  46. package/components/TabsManager.vue +2 -3
  47. package/components/Text.vue +5 -45
  48. package/components/TextArea.vue +2 -3
  49. package/components/TextInput.vue +2 -3
  50. package/components/Toast.vue +2 -4
  51. package/components/Toggle.vue +2 -3
  52. package/components/Tooltip.vue +2 -4
  53. package/package.json +1 -1
  54. package/components/CodeWrapper.vue +0 -10
  55. package/components/DarkToggle.vue +0 -11
  56. package/components/Logo.vue +0 -8
@@ -1,5 +1,7 @@
1
1
  <script setup lang="ts">
2
- interface Props {
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 {
@@ -1,15 +1,14 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
3
 
4
- interface Props {
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
 
@@ -4,7 +4,7 @@ import Text from './Text.vue'
4
4
  interface Props {
5
5
  is?: string
6
6
  }
7
- const props = withDefaults(defineProps<Props>(), {
7
+ withDefaults(defineProps<Props>(), {
8
8
  is: 'div',
9
9
  })
10
10
  </script>
@@ -4,7 +4,7 @@ import Text from './Text.vue'
4
4
  interface Props {
5
5
  is?: string
6
6
  }
7
- const props = withDefaults(defineProps<Props>(), {
7
+ withDefaults(defineProps<Props>(), {
8
8
  is: 'div',
9
9
  })
10
10
  </script>
@@ -4,7 +4,7 @@ import Text from './Text.vue'
4
4
  interface Props {
5
5
  is?: string
6
6
  }
7
- const props = withDefaults(defineProps<Props>(), {
7
+ withDefaults(defineProps<Props>(), {
8
8
  is: 'div',
9
9
  })
10
10
  </script>
@@ -1,13 +1,12 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
3
 
4
- interface Props {
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
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
3
 
4
- interface Props {
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(() => {
@@ -1,10 +1,9 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
3
 
4
- interface Props {
4
+ const props = defineProps<{
5
5
  is?: string | Function | Object
6
- }
7
- const props = defineProps<Props>()
6
+ }>()
8
7
 
9
8
  const tag = computed(() => props.is || 'span')
10
9
  </script>
@@ -2,11 +2,10 @@
2
2
  import { useIntervalFn } from '@vueuse/core'
3
3
  import { computed } from 'vue'
4
4
 
5
- interface Props {
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)
@@ -1,11 +1,10 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
3
 
4
- interface Props {
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>
@@ -1,11 +1,10 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
3
 
4
- interface Props {
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
  })
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { computed } from 'vue'
2
3
  import { createDrawerState } from '../utils/drawer-utils'
3
4
 
4
5
  const props = withDefaults(defineProps<{
@@ -2,7 +2,7 @@
2
2
  import { computed } from 'vue'
3
3
  import { onClickOutside, syncRefs, useElementHover } from '@vueuse/core'
4
4
 
5
- interface Props {
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,
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
3
 
4
- interface Props {
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(() => {
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
3
 
4
- interface Props {
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
  })
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
3
 
4
- interface Props {
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
  })
@@ -2,11 +2,10 @@
2
2
  import { computed } from 'vue'
3
3
  import Text from './Text.vue'
4
4
 
5
- interface Props {
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
  })
@@ -1,10 +1,9 @@
1
1
  <script setup lang="ts">
2
2
  import Text from './Text.vue'
3
3
 
4
- interface Props {
4
+ withDefaults(defineProps<{
5
5
  is?: string
6
- }
7
- withDefaults(defineProps<Props>(), {
6
+ }>(), {
8
7
  is: 'span',
9
8
  })
10
9
  </script>
@@ -2,10 +2,9 @@
2
2
  import { withDefaults } from 'vue'
3
3
  import Text from './Text.vue'
4
4
 
5
- interface Props {
5
+ withDefaults(defineProps<{
6
6
  is?: string
7
- }
8
- withDefaults(defineProps<Props>(), {
7
+ }>(), {
9
8
  is: 'div',
10
9
  })
11
10
  </script>
@@ -2,10 +2,9 @@
2
2
  import { withDefaults } from 'vue'
3
3
  import Text from './Text.vue'
4
4
 
5
- interface Props {
5
+ withDefaults(defineProps<{
6
6
  is?: string
7
- }
8
- 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
- interface Props {
4
+ withDefaults(defineProps<{
5
5
  is?: string
6
- }
7
- withDefaults(defineProps<Props>(), {
6
+ }>(), {
8
7
  is: 'div',
9
8
  })
10
9
  </script>
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { computed, withDefaults } from 'vue'
3
3
 
4
- interface Props {
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(() => {
@@ -1,14 +1,13 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
3
 
4
- interface Props {
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
@@ -2,10 +2,9 @@
2
2
  import { withDefaults } from 'vue'
3
3
  import Text from './Text.vue'
4
4
 
5
- interface Props {
5
+ withDefaults(defineProps<{
6
6
  is?: string
7
- }
8
- withDefaults(defineProps<Props>(), {
7
+ }>(), {
9
8
  is: 'label',
10
9
  })
11
10
  </script>
@@ -2,10 +2,9 @@
2
2
  import { withDefaults } from 'vue'
3
3
  import Text from './Text.vue'
4
4
 
5
- interface Props {
5
+ withDefaults(defineProps<{
6
6
  is?: string
7
- }
8
- withDefaults(defineProps<Props>(), {
7
+ }>(), {
9
8
  is: 'span',
10
9
  })
11
10
  </script>
@@ -2,10 +2,9 @@
2
2
  import { withDefaults } from 'vue'
3
3
  import Text from './Text.vue'
4
4
 
5
- interface Props {
5
+ withDefaults(defineProps<{
6
6
  is?: string
7
- }
8
- withDefaults(defineProps<Props>(), {
7
+ }>(), {
9
8
  is: 'span',
10
9
  })
11
10
  </script>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- interface Props {
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
 
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
3
 
4
- interface Props {
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(() => {
@@ -1,9 +1,8 @@
1
1
  <script setup lang="ts">
2
- interface Props {
2
+ defineProps<{
3
3
  active?: boolean
4
4
  disabled?: boolean
5
- }
6
- defineProps<Props>()
5
+ }>()
7
6
  </script>
8
7
 
9
8
  <template>
@@ -1,11 +1,10 @@
1
1
  <script setup lang="ts">
2
- interface Props {
2
+ const props = defineProps<{
3
3
  modelValue?: boolean
4
4
  closeOnClickOutside?: boolean
5
5
  top?: boolean
6
6
  bottom?: boolean
7
- }
8
- const props = defineProps<Props>()
7
+ }>()
9
8
 
10
9
  const is = 'div'
11
10
 
@@ -1,12 +1,10 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
3
 
4
- interface Props {
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,
@@ -1,11 +1,10 @@
1
1
  <script setup lang="ts">
2
2
  import { withDefaults } from 'vue'
3
3
 
4
- interface Props {
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
- interface Props {
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
- interface Props {
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
- interface Props {
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,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
3
 
4
- interface Props {
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
- interface Props {
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)')
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
3
 
4
- interface Props {
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(() => {
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
3
 
4
- interface Props {
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'])
@@ -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
@@ -1,10 +1,9 @@
1
1
  <script setup lang="ts">
2
2
  import { withDefaults } from 'vue'
3
3
 
4
- interface Props {
4
+ withDefaults(defineProps<{
5
5
  is?: string
6
- }
7
- withDefaults(defineProps<Props>(), {
6
+ }>(), {
8
7
  is: 'div',
9
8
  })
10
9
  </script>
@@ -1,11 +1,10 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
3
 
4
- interface Props {
4
+ const props = defineProps<{
5
5
  vertical?: boolean
6
6
  horizontal?: boolean
7
- }
8
- const props = defineProps<Props>()
7
+ }>()
9
8
 
10
9
  const classes = computed(() => {
11
10
  return {
@@ -1,14 +1,12 @@
1
1
  <script setup lang="ts">
2
2
  import { computed, nextTick, ref, watch } from 'vue'
3
3
 
4
- interface Props {
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 {
@@ -1,11 +1,10 @@
1
1
  <script setup lang="ts">
2
2
  import { computed, inject } from 'vue'
3
3
 
4
- interface Props {
4
+ const props = withDefaults(defineProps<{
5
5
  is?: any
6
6
  name: string
7
- }
8
- const props = withDefaults(defineProps<Props>(), {
7
+ }>(), {
9
8
  is: 'div',
10
9
  })
11
10
 
@@ -2,7 +2,7 @@
2
2
  import { computed, inject } from 'vue'
3
3
  import Tab from './Tab.vue'
4
4
 
5
- interface Props {
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
- interface Props {
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({
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
3
 
4
- interface Props {
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 {
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
3
 
4
- interface Props {
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'])
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
3
 
4
- interface Props {
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'])
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
3
 
4
- interface Props {
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',
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
3
 
4
- interface Props {
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(() => {
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
3
 
4
- interface Props {
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,6 +1,6 @@
1
1
  {
2
2
  "name": "daisy-ui-kit",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "nuxi build",
@@ -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>
@@ -1,8 +0,0 @@
1
- <template>
2
- <div class="">
3
- <Text class="font-bold whitespace-nowrap">
4
- <span class="text-primary">daisy</span>UI Kit
5
- <span>🌼</span>
6
- </Text>
7
- </div>
8
- </template>