daisy-ui-kit 1.0.0 → 1.0.1

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 (52) hide show
  1. package/components/BottomNav.vue +1 -1
  2. package/components/Divider.vue +1 -1
  3. package/components/DrawerLayout.vue +1 -1
  4. package/components/Dropdown.vue +1 -1
  5. package/components/Flex.vue +1 -1
  6. package/components/FlexItem.vue +1 -1
  7. package/components/Footer.vue +1 -1
  8. package/components/FooterTitle.vue +1 -1
  9. package/components/Hero.vue +1 -1
  10. package/components/HeroContent.vue +1 -1
  11. package/components/Indicator.vue +1 -1
  12. package/components/IndicatorItem.vue +1 -1
  13. package/components/InputGroup.vue +1 -1
  14. package/components/Kbd.vue +1 -1
  15. package/components/Label.vue +1 -1
  16. package/components/LabelText.vue +1 -1
  17. package/components/LabelTextAlt.vue +1 -1
  18. package/components/Link.vue +1 -1
  19. package/components/Mask.vue +0 -1
  20. package/components/Menu.vue +1 -1
  21. package/components/MenuItem.vue +0 -2
  22. package/components/ModalWrapper.vue +1 -1
  23. package/components/NavButton.vue +1 -1
  24. package/components/Navbar.vue +1 -1
  25. package/components/NavbarCenter.vue +1 -1
  26. package/components/NavbarEnd.vue +1 -1
  27. package/components/NavbarStart.vue +1 -1
  28. package/components/Progress.vue +1 -1
  29. package/components/Prose.vue +0 -2
  30. package/components/RadialProgress.vue +1 -1
  31. package/components/Radio.vue +6 -5
  32. package/components/RadioGroup.vue +1 -1
  33. package/components/Range.vue +1 -1
  34. package/components/RangeMeasure.vue +1 -1
  35. package/components/RangeMeasureTick.vue +1 -1
  36. package/components/Rating.vue +3 -3
  37. package/components/Select.vue +3 -2
  38. package/components/Stack.vue +1 -1
  39. package/components/Step.vue +1 -1
  40. package/components/Steps.vue +1 -1
  41. package/components/Swap.vue +1 -1
  42. package/components/Tab.vue +1 -1
  43. package/components/TabContent.vue +5 -3
  44. package/components/Tabs.vue +15 -8
  45. package/components/TabsManager.vue +5 -3
  46. package/components/Text.vue +1 -1
  47. package/components/TextArea.vue +1 -1
  48. package/components/TextInput.vue +1 -1
  49. package/components/Toast.vue +1 -1
  50. package/components/Toggle.vue +1 -1
  51. package/components/Tooltip.vue +1 -1
  52. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps } from 'vue'
2
+ import { computed } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  size?: string
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps, withDefaults } from 'vue'
2
+ import { computed, withDefaults } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  horizontal?: boolean
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps, reactive } from 'vue'
2
+ import { computed, reactive } from 'vue'
3
3
 
4
4
  const props = defineProps({
5
5
  right: Boolean,
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps } from 'vue'
2
+ import { computed } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  top?: boolean
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps } from 'vue'
2
+ import { computed } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  is?: string | Object | Function
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps, withDefaults } from 'vue'
2
+ import { computed, withDefaults } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  is?: string | Object | Function
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps, withDefaults } from 'vue'
2
+ import { computed, withDefaults } from 'vue'
3
3
  import Text from './Text.vue'
4
4
 
5
5
  interface Props {
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { defineProps, withDefaults } from 'vue'
2
+ import { withDefaults } from 'vue'
3
3
  import Text from './Text.vue'
4
4
 
5
5
  interface Props {
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { defineProps, withDefaults } from 'vue'
2
+ import { withDefaults } from 'vue'
3
3
  import Text from './Text.vue'
4
4
 
5
5
  interface Props {
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { defineProps, withDefaults } from 'vue'
2
+ import { withDefaults } from 'vue'
3
3
  import Text from './Text.vue'
4
4
 
5
5
  interface Props {
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { defineProps, withDefaults } from 'vue'
2
+ import { withDefaults } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  is?: string
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps, withDefaults } from 'vue'
2
+ import { computed, withDefaults } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  is?: string
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps, withDefaults } from 'vue'
2
+ import { computed, withDefaults } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  is?: string
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps } from 'vue'
2
+ import { computed } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  size?: 'lg' | 'md' | 'sm' | 'xs'
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { defineProps, withDefaults } from 'vue'
2
+ import { withDefaults } from 'vue'
3
3
  import Text from './Text.vue'
4
4
 
5
5
  interface Props {
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { defineProps, withDefaults } from 'vue'
2
+ import { withDefaults } from 'vue'
3
3
  import Text from './Text.vue'
4
4
 
5
5
  interface Props {
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { defineProps, withDefaults } from 'vue'
2
+ import { withDefaults } from 'vue'
3
3
  import Text from './Text.vue'
4
4
 
5
5
  interface Props {
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps, withDefaults } from 'vue'
2
+ import { computed, withDefaults } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  is?: string
@@ -1,5 +1,4 @@
1
1
  <script setup lang="ts">
2
- import { defineProps } from 'vue'
3
2
  import { makeMaskClasses, maskProps } from './Mask.config'
4
3
 
5
4
  const props = defineProps({
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps } from 'vue'
2
+ import { computed } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  vertical?: boolean
@@ -1,6 +1,4 @@
1
1
  <script setup lang="ts">
2
- import { defineProps } from 'vue'
3
-
4
2
  interface Props {
5
3
  bordered?: boolean
6
4
  hoverBordered?: boolean
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps, provide } from 'vue'
2
+ import { computed, provide } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  name: string
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps } from 'vue'
2
+ import { computed } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  active?: boolean
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { defineProps, withDefaults } from 'vue'
2
+ import { withDefaults } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  is?: string | Object | Function
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { defineProps, withDefaults } from 'vue'
2
+ import { withDefaults } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  is?: string | Object | Function
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { defineProps, withDefaults } from 'vue'
2
+ import { withDefaults } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  is?: string | Object | Function
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { defineProps, withDefaults } from 'vue'
2
+ import { withDefaults } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  is?: string | Object | Function
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineEmits, defineProps, withDefaults } from 'vue'
2
+ import { computed, withDefaults } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  value: any
@@ -1,6 +1,4 @@
1
1
  <script setup lang="ts">
2
- import { defineProps } from 'vue'
3
-
4
2
  interface Props {
5
3
  fullWidth?: boolean
6
4
  }
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps } from 'vue'
2
+ import { computed } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  value: number | string
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineEmits, defineProps, inject } from 'vue'
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) return Object.assign({}, radioGroup.props, props)
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) return radioGroup.currentValue
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"
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineEmits, defineProps, provide, reactive } from 'vue'
2
+ import { computed, provide, reactive } from 'vue'
3
3
 
4
4
  const props = defineProps<{
5
5
  modelValue?: any
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineEmits, defineProps } from 'vue'
2
+ import { computed } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  min?: number | string
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps, withDefaults } from 'vue'
2
+ import { computed, withDefaults } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  numbered?: boolean
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineEmits, defineProps } from 'vue'
2
+ import { computed } from 'vue'
3
3
  import { useTimeoutFn } from '@vueuse/core'
4
4
 
5
5
  interface Props {
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineEmits, defineProps, withDefaults } from 'vue'
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, 'mask-half-2', bg]"
145
+ class="mask mask-half-2"
146
+ :class="[maskClasses, bg]"
147
147
  :checked="modelValue == digit"
148
148
  @change="$emit('update:modelValue', digit)"
149
149
  >
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineEmits, defineProps, withDefaults } from 'vue'
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) val = null
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
 
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { defineProps, withDefaults } from 'vue'
2
+ import { withDefaults } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  is?: string
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps } from 'vue'
2
+ import { computed } from 'vue'
3
3
 
4
4
  const props = defineProps<{
5
5
  glyph?: string
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps } from 'vue'
2
+ import { computed } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  vertical?: boolean
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineEmits, defineProps, nextTick, ref, watch } from 'vue'
2
+ import { computed, nextTick, ref, watch } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  modelValue?: boolean | null
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps, inject, withDefaults } from 'vue'
2
+ import { computed, inject, withDefaults } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  is?: string | Object | Function
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps, inject, withDefaults } from 'vue'
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) tabManager.currentTab = props.name
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) tabManager.tabs.push(props.name)
22
+ if (!existing)
23
+ tabManager.tabs.push(props.name)
22
24
  </script>
23
25
 
24
26
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps, inject, withDefaults } from 'vue'
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') return 'bordered'
30
- if (props.lifted || props.variant === 'lifted') return 'lifted'
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) return props.size
35
- if (props.lg) return 'lg'
36
- if (props.md) return 'md'
37
- if (props.sm) return 'sm'
38
- if (props.xs) return 'xs'
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 { defineEmits, defineProps, provide, reactive, watch } from 'vue'
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) manager.currentTab = val
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) emit('update:tab', val)
29
+ if (val !== props.tab)
30
+ emit('update:tab', val)
29
31
  },
30
32
  )
31
33
  </script>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps } from 'vue'
2
+ import { computed } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  is?: string
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineEmits, defineProps, withDefaults } from 'vue'
2
+ import { computed, withDefaults } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  modelValue?: string
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineEmits, defineProps, withDefaults } from 'vue'
2
+ import { computed, withDefaults } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  modelValue?: string
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps } from 'vue'
2
+ import { computed } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  hAlign?: 'start' | 'center' | 'end'
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineEmits, defineProps } from 'vue'
2
+ import { computed } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  modelValue?: any
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, defineProps } from 'vue'
2
+ import { computed } from 'vue'
3
3
 
4
4
  interface Props {
5
5
  tip?: string | number
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "daisy-ui-kit",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "nuxi build",