daisy-ui-kit 3.0.11 → 5.0.0-pre.10

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 (198) hide show
  1. package/README.md +62 -14
  2. package/{components → app/components}/Accordion.vue +7 -10
  3. package/app/components/Alert.vue +35 -0
  4. package/app/components/Avatar.vue +128 -0
  5. package/app/components/AvatarGroup.vue +18 -0
  6. package/app/components/Badge.vue +54 -0
  7. package/app/components/Button.vue +120 -0
  8. package/app/components/Calendar.vue +66 -0
  9. package/app/components/CalendarInput.vue +174 -0
  10. package/app/components/CalendarSkeleton.vue +46 -0
  11. package/app/components/Card.vue +33 -0
  12. package/{components → app/components}/CardActions.vue +3 -6
  13. package/{components → app/components}/CardBody.vue +3 -6
  14. package/{components → app/components}/CardTitle.vue +2 -7
  15. package/app/components/Carousel.vue +23 -0
  16. package/app/components/Chat.vue +21 -0
  17. package/app/components/ChatBubble.vue +31 -0
  18. package/app/components/Checkbox.vue +51 -0
  19. package/app/components/Collapse.vue +43 -0
  20. package/app/components/Countdown.vue +15 -0
  21. package/app/components/CountdownTimers.vue +72 -0
  22. package/app/components/Counter.vue +10 -0
  23. package/app/components/DaisyLink.vue +38 -0
  24. package/app/components/Diff.vue +11 -0
  25. package/app/components/Divider.vue +43 -0
  26. package/app/components/Dock.vue +60 -0
  27. package/app/components/DockItem.vue +26 -0
  28. package/app/components/DockLabel.vue +5 -0
  29. package/{components → app/components}/Drawer.vue +6 -4
  30. package/{components → app/components}/DrawerContent.vue +1 -1
  31. package/{components → app/components}/DrawerSide.vue +1 -1
  32. package/{components → app/components}/Dropdown.vue +2 -2
  33. package/{components → app/components}/DropdownContent.vue +3 -3
  34. package/app/components/Fieldset.vue +19 -0
  35. package/app/components/FileInput.vue +53 -0
  36. package/app/components/Filter.vue +122 -0
  37. package/app/components/Flex.vue +82 -0
  38. package/{components → app/components}/FlexItem.vue +1 -1
  39. package/app/components/Footer.vue +27 -0
  40. package/app/components/FormControl.vue +5 -0
  41. package/{components → app/components}/Hero.vue +1 -1
  42. package/{components → app/components}/HeroContent.vue +1 -1
  43. package/app/components/Input.vue +119 -0
  44. package/app/components/Kbd.vue +24 -0
  45. package/app/components/Label.vue +97 -0
  46. package/app/components/List.vue +5 -0
  47. package/{components/FormControl.vue → app/components/ListColGrow.vue} +1 -1
  48. package/app/components/ListColWrap.vue +5 -0
  49. package/{components/Stat.vue → app/components/ListRow.vue} +1 -1
  50. package/app/components/LoadingBall.vue +42 -0
  51. package/app/components/LoadingBars.vue +42 -0
  52. package/app/components/LoadingDots.vue +42 -0
  53. package/app/components/LoadingInfinity.vue +42 -0
  54. package/app/components/LoadingRing.vue +42 -0
  55. package/app/components/LoadingSpinner.vue +42 -0
  56. package/app/components/Mask.vue +49 -0
  57. package/app/components/Menu.vue +30 -0
  58. package/app/components/MenuExpand.vue +100 -0
  59. package/{components → app/components}/MenuExpandToggle.vue +5 -4
  60. package/{components → app/components}/MenuItem.vue +3 -4
  61. package/app/components/MockupPhone.vue +14 -0
  62. package/{components → app/components}/Modal.vue +14 -5
  63. package/app/components/NavButton.vue +12 -0
  64. package/{components → app/components}/Navbar.vue +3 -5
  65. package/{components → app/components}/NavbarCenter.vue +3 -5
  66. package/{components → app/components}/NavbarEnd.vue +3 -5
  67. package/{components → app/components}/NavbarStart.vue +3 -5
  68. package/app/components/Progress.vue +34 -0
  69. package/{components → app/components}/Prose.vue +1 -1
  70. package/app/components/RadialProgress.vue +36 -0
  71. package/app/components/Radio.vue +69 -0
  72. package/{components → app/components}/RadioGroup.vue +2 -1
  73. package/app/components/Range.vue +61 -0
  74. package/{components → app/components}/RangeMeasure.vue +22 -21
  75. package/{components → app/components}/RangeMeasureTick.vue +9 -14
  76. package/app/components/Rating.vue +180 -0
  77. package/{components → app/components}/Select.vue +33 -29
  78. package/app/components/Skeleton.vue +5 -0
  79. package/app/components/Stack.vue +25 -0
  80. package/app/components/Stat.vue +19 -0
  81. package/app/components/Status.vue +43 -0
  82. package/app/components/Step.vue +34 -0
  83. package/app/components/StepIcon.vue +5 -0
  84. package/app/components/Steps.vue +18 -0
  85. package/app/components/Swap.vue +62 -0
  86. package/app/components/Tab.vue +38 -0
  87. package/{components → app/components}/TabContent.vue +10 -10
  88. package/app/components/Table.vue +32 -0
  89. package/app/components/Tabs.vue +53 -0
  90. package/app/components/Text.vue +142 -0
  91. package/app/components/TextArea.vue +61 -0
  92. package/app/components/ThemeController.vue +46 -0
  93. package/app/components/ThemeProvider.vue +287 -0
  94. package/app/components/ThemeTile.vue +50 -0
  95. package/app/components/Timeline.vue +22 -0
  96. package/app/components/TimelineEnd.vue +14 -0
  97. package/app/components/TimelineItem.vue +5 -0
  98. package/app/components/TimelineLine.vue +29 -0
  99. package/app/components/TimelineMiddle.vue +5 -0
  100. package/app/components/TimelineStart.vue +13 -0
  101. package/app/components/Toast.vue +72 -0
  102. package/app/components/Toggle.vue +60 -0
  103. package/app/components/Tooltip.vue +47 -0
  104. package/app/components/TooltipContent.vue +5 -0
  105. package/app/components/ValidatorHint.vue +5 -0
  106. package/nuxt.js +7 -1
  107. package/package.json +62 -64
  108. package/components/Alert.vue +0 -25
  109. package/components/Artboard.vue +0 -33
  110. package/components/Avatar.vue +0 -70
  111. package/components/AvatarGroup.vue +0 -19
  112. package/components/Badge.vue +0 -50
  113. package/components/BottomNav.vue +0 -25
  114. package/components/Button.vue +0 -111
  115. package/components/Card.vue +0 -30
  116. package/components/Carousel.vue +0 -25
  117. package/components/Chat.vue +0 -27
  118. package/components/ChatBubble.vue +0 -34
  119. package/components/Checkbox.vue +0 -55
  120. package/components/Code.vue +0 -92
  121. package/components/Collapse.vue +0 -54
  122. package/components/Countdown.vue +0 -15
  123. package/components/CountdownTimers.vue +0 -70
  124. package/components/Counter.vue +0 -14
  125. package/components/Divider.vue +0 -24
  126. package/components/FileInput.vue +0 -59
  127. package/components/Flex.vue +0 -59
  128. package/components/Footer.vue +0 -24
  129. package/components/Kbd.vue +0 -25
  130. package/components/Label.vue +0 -15
  131. package/components/LabelText.vue +0 -15
  132. package/components/LabelTextAlt.vue +0 -15
  133. package/components/Link.vue +0 -40
  134. package/components/LoadingBall.vue +0 -43
  135. package/components/LoadingBars.vue +0 -43
  136. package/components/LoadingDots.vue +0 -43
  137. package/components/LoadingInfinity.vue +0 -43
  138. package/components/LoadingRing.vue +0 -43
  139. package/components/LoadingSpinner.vue +0 -43
  140. package/components/Mask.config.ts +0 -77
  141. package/components/Mask.vue +0 -14
  142. package/components/Menu.vue +0 -35
  143. package/components/MenuExpand.vue +0 -78
  144. package/components/MockupPhone.vue +0 -8
  145. package/components/NavButton.vue +0 -20
  146. package/components/Progress.vue +0 -42
  147. package/components/RadialProgress.vue +0 -41
  148. package/components/Radio.vue +0 -76
  149. package/components/Range.vue +0 -60
  150. package/components/Rating.vue +0 -167
  151. package/components/Stack.vue +0 -13
  152. package/components/Step.vue +0 -36
  153. package/components/Steps.vue +0 -21
  154. package/components/Swap.vue +0 -58
  155. package/components/Tab.vue +0 -48
  156. package/components/Tabs.vue +0 -77
  157. package/components/TabsManager.vue +0 -38
  158. package/components/Text.vue +0 -142
  159. package/components/TextArea.vue +0 -64
  160. package/components/TextInput.vue +0 -66
  161. package/components/Toast.vue +0 -31
  162. package/components/Toggle.vue +0 -59
  163. package/components/Tooltip.vue +0 -47
  164. package/index.ts +0 -108
  165. package/utils/-utils.ts +0 -41
  166. package/utils/Button.config.ts +0 -26
  167. package/utils/fixtures.ts +0 -62
  168. package/utils/types.ts +0 -7
  169. /package/{components → app/components}/Breadcrumbs.vue +0 -0
  170. /package/{components → app/components}/CarouselItem.vue +0 -0
  171. /package/{components → app/components}/ChatFooter.vue +0 -0
  172. /package/{components → app/components}/ChatHeader.vue +0 -0
  173. /package/{components → app/components}/ChatImage.vue +0 -0
  174. /package/{components → app/components}/CollapseContent.vue +0 -0
  175. /package/{components → app/components}/CollapseTitle.vue +0 -0
  176. /package/{components → app/components}/Crumb.vue +0 -0
  177. /package/{components → app/components}/DropdownButton.vue +0 -0
  178. /package/{components → app/components}/DropdownTarget.vue +0 -0
  179. /package/{components → app/components}/FooterTitle.vue +0 -0
  180. /package/{components → app/components}/HeroOverlay.vue +0 -0
  181. /package/{components → app/components}/Indicator.vue +0 -0
  182. /package/{components → app/components}/IndicatorItem.vue +0 -0
  183. /package/{components → app/components}/Join.vue +0 -0
  184. /package/{components → app/components}/MenuTitle.vue +0 -0
  185. /package/{components → app/components}/MockupBrowser.vue +0 -0
  186. /package/{components → app/components}/MockupBrowserToolbar.vue +0 -0
  187. /package/{components → app/components}/MockupCode.vue +0 -0
  188. /package/{components → app/components}/MockupWindow.vue +0 -0
  189. /package/{components → app/components}/ModalAction.vue +0 -0
  190. /package/{components → app/components}/ModalBox.vue +0 -0
  191. /package/{components → app/components}/StatActions.vue +0 -0
  192. /package/{components → app/components}/StatDesc.vue +0 -0
  193. /package/{components → app/components}/StatFigure.vue +0 -0
  194. /package/{components → app/components}/StatTitle.vue +0 -0
  195. /package/{components → app/components}/StatValue.vue +0 -0
  196. /package/{components → app/components}/Stats.vue +0 -0
  197. /package/{utils → app/utils}/drawer-utils.ts +0 -0
  198. /package/{utils → app/utils}/random-string.ts +0 -0
@@ -1,55 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed } from 'vue'
3
-
4
- const props = defineProps<{
5
- modelValue?: any
6
-
7
- color?: string
8
- primary?: boolean
9
- secondary?: boolean
10
- accent?: boolean
11
- success?: boolean
12
- warning?: boolean
13
- info?: boolean
14
- error?: boolean
15
-
16
- size?: string
17
- lg?: boolean
18
- md?: boolean
19
- sm?: boolean
20
- xs?: boolean
21
- }>()
22
- const emit = defineEmits(['update:modelValue'])
23
-
24
- const classes = computed(() => {
25
- const { color, primary, secondary, accent, success, warning, info, error, size, xs, sm, md, lg } = props
26
- return {
27
- 'checkbox-primary': primary || color === 'primary',
28
- 'checkbox-secondary': secondary || color === 'secondary',
29
- 'checkbox-accent': accent || color === 'accent',
30
- 'checkbox-success': success || color === 'success',
31
- 'checkbox-warning': warning || color === 'warning',
32
- 'checkbox-info': info || color === 'info',
33
- 'checkbox-error': error || color === 'error',
34
- 'checkbox-xs': xs || size === 'xs',
35
- 'checkbox-sm': sm || size === 'sm',
36
- 'checkbox-md': md || size === 'md',
37
- 'checkbox-lg': lg || size === 'lg',
38
- }
39
- })
40
-
41
- const currentValue = computed({
42
- get: () => props.modelValue,
43
- set: (val: string) => emit('update:modelValue', val),
44
- })
45
- </script>
46
-
47
- <template>
48
- <input
49
- v-model="currentValue"
50
- type="checkbox"
51
- v-bind="$attrs"
52
- class="checkbox"
53
- :class="classes"
54
- >
55
- </template>
@@ -1,92 +0,0 @@
1
- <script>
2
- import { computed, onBeforeUpdate, onMounted, ref } from 'vue'
3
- import Prism from 'prismjs'
4
- import 'prismjs/themes/prism-okaidia.css'
5
- import { useClipboard } from '@vueuse/core'
6
-
7
- export default {
8
- name: 'Code',
9
- props: {
10
- language: {
11
- type: String,
12
- default: 'javascript',
13
- },
14
- },
15
- setup(props, context) {
16
- const nuxtApp = useNuxtApp()
17
-
18
- const source = ref(null)
19
- const lang = computed(() => {
20
- if (props.language === 'vue')
21
- return 'html'
22
- else return props.language
23
- })
24
- const languageClass = computed(() => `language-${lang.value}`)
25
- const { text, copy, copied, isSupported } = useClipboard({ source })
26
-
27
- onMounted(() => {
28
- if (!nuxtApp.ssrContext) {
29
- setTimeout(() => {
30
- Prism.highlightAllUnder(source.value)
31
- }, 0)
32
- }
33
- })
34
- onBeforeUpdate(() => {
35
- if (typeof context.slots.default[0] === 'string') {
36
- const newText = context.slots.default[0].replace(
37
- /^[\r\n\s]*|[\r\n\s]*$/g,
38
- '',
39
- )
40
- context.el.querySelector('code').textContent = newText
41
- Prism.highlightAllUnder(source.value)
42
- }
43
- })
44
-
45
- const doCopy = () => {
46
- copy(source.value.innerText)
47
- }
48
-
49
- return { source, languageClass, text, copy, copied, isSupported, doCopy }
50
- },
51
- }
52
- </script>
53
-
54
- <template>
55
- <div class="relative mockup-code">
56
- <div class="absolute flex flex-row items-center top-1 right-1">
57
- <div v-if="copied" class="pr-2 text-sm">
58
- copied
59
- </div>
60
- <Button sm @click="doCopy">
61
- copy
62
- </Button>
63
- </div>
64
- <ClientOnly>
65
- <pre
66
- ref="source"
67
- class="whitespace-pre-wrap daisy-code-highlight"
68
- :class="languageClass"
69
- ><code><slot /></code></pre>
70
-
71
- <template #fallback>
72
- <pre
73
- class="whitespace-pre-wrap daisy-code-highlight"
74
- ><code><slot /></code></pre>
75
- </template>
76
- </ClientOnly>
77
- </div>
78
- </template>
79
-
80
- <style>
81
- .mockup-code .daisy-code-highlight {
82
- margin-left: 0 !important;
83
- background: none;
84
- border: none;
85
- box-shadow: none;
86
- padding-top: 0;
87
- padding-bottom: 0;
88
- }
89
- .mockup-code pre.daisy-code-highlight:before {
90
- margin: 0 !important;
91
- }
92
- </style>
@@ -1,54 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed, inject, ref } from 'vue'
3
-
4
- const props = defineProps<{
5
- style?: 'arrow' | 'plus'
6
- arrow?: boolean
7
- plus?: boolean
8
-
9
- open?: boolean
10
- close?: boolean
11
-
12
- toggle?: boolean
13
-
14
- // for accordion
15
- value?: any
16
- }>()
17
-
18
- const accordionValue: any = inject('accordion-value', ref('no-accordion-value'))
19
- const useAccordion = computed(() => {
20
- return accordionValue.value !== 'no-accordion-value'
21
- })
22
- const isAccordionSelected = computed(
23
- () => {
24
- if (!useAccordion.value)
25
- return false
26
- return accordionValue.value === props.value
27
- })
28
-
29
- function handleClick() {
30
- if (useAccordion.value)
31
- accordionValue.value = props.value
32
- }
33
-
34
- const classes = computed(() => {
35
- const { style, arrow, plus, open, close } = props
36
- return {
37
- 'collapse-arrow': arrow || style === 'arrow',
38
- 'collapse-plus': plus || style === 'plus',
39
- 'collapse-open': (open && !close) || isAccordionSelected.value,
40
- 'collapse-close': close,
41
- }
42
- })
43
- </script>
44
-
45
- <template>
46
- <div tabindex="0" class="collapse" :class="classes" @click="handleClick">
47
- <input
48
- v-if="toggle || useAccordion"
49
- :type="useAccordion ? 'radio' : 'checkbox'"
50
- :checked="isAccordionSelected"
51
- >
52
- <slot />
53
- </div>
54
- </template>
@@ -1,15 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed } from 'vue'
3
-
4
- const props = defineProps<{
5
- is?: string | Function | Object
6
- }>()
7
-
8
- const tag = computed(() => props.is || 'span')
9
- </script>
10
-
11
- <template>
12
- <component :is="tag" class="countdown">
13
- <slot />
14
- </component>
15
- </template>
@@ -1,70 +0,0 @@
1
- <script setup lang="ts">
2
- import { useIntervalFn } from '@vueuse/core'
3
- import { computed, watch } from 'vue'
4
-
5
- const props = withDefaults(defineProps<{
6
- durationInSeconds?: number
7
- untilDate?: Date
8
- }>(), { durationInSeconds: 0 })
9
- const emit = defineEmits(['done'])
10
-
11
- const calculateDate = () => props.untilDate || new Date(Date.now() + props.durationInSeconds * 1000)
12
- const targetDate = ref<Date>(calculateDate())
13
- watch(
14
- () => props.durationInSeconds,
15
- () => {
16
- targetDate.value = calculateDate()
17
- },
18
- { immediate: true },
19
- )
20
-
21
- // The target date
22
- function calcTimeLeft() {
23
- const remaining = targetDate.value.getTime() - Date.now()
24
- return remaining < 0 ? 0 : remaining
25
- }
26
- const timeLeft = ref(calcTimeLeft())
27
- useIntervalFn(() => {
28
- timeLeft.value = calcTimeLeft()
29
- }, 1000)
30
-
31
- watch(timeLeft, () => {
32
- if (timeLeft.value === 0)
33
- emit('done')
34
- })
35
-
36
- const totalSeconds = computed(() => Math.round(timeLeft.value / 1000))
37
- const totalMinutes = computed(() => Math.floor(timeLeft.value / 1000 / 60))
38
- const totalHours = computed(() => Math.floor(timeLeft.value / 1000 / 60 / 60))
39
- const totalDays = computed(() => Math.floor(timeLeft.value / 1000 / 60 / 60 / 24))
40
- const totalWeeks = computed(() => Math.floor(timeLeft.value / 1000 / 60 / 60 / 24 / 7))
41
- const totalMonths = computed(() => {
42
- const today = new Date()
43
- let diffMonths = (targetDate.value.getFullYear() - today.getFullYear()) * 12
44
- diffMonths -= targetDate.value.getMonth()
45
- diffMonths += today.getMonth()
46
- return diffMonths
47
- })
48
- const split = computed(() => {
49
- const days = totalDays.value
50
- const hours = totalHours.value - days * 24
51
- const minutes = totalMinutes.value - hours * 60
52
- const seconds = totalSeconds.value - totalMinutes.value * 60
53
- return { days, hours, minutes, seconds }
54
- })
55
- </script>
56
-
57
- <template>
58
- <slot
59
- v-bind="{
60
- totalSeconds,
61
- totalMinutes,
62
- totalHours,
63
- totalDays,
64
- totalWeeks,
65
- totalMonths,
66
- targetDate,
67
- split,
68
- }"
69
- />
70
- </template>
@@ -1,14 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed } from 'vue'
3
-
4
- const props = defineProps<{
5
- value: number
6
- is?: string | Function
7
- }>()
8
-
9
- const tag = computed(() => props.is || 'span')
10
- </script>
11
-
12
- <template>
13
- <component :is="tag" v-bind="$attrs" :style="`--value:${value};`" />
14
- </template>
@@ -1,24 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed } from 'vue'
3
-
4
- const props = withDefaults(defineProps<{
5
- horizontal?: boolean
6
- vertical?: boolean
7
- }>(), {
8
- horizontal: false,
9
- vertical: false,
10
- })
11
-
12
- const classes = computed(() => {
13
- return {
14
- 'divider-horizontal': props.horizontal,
15
- 'divider-vertical': props.vertical,
16
- }
17
- })
18
- </script>
19
-
20
- <template>
21
- <div class="divider" :class="classes">
22
- <slot />
23
- </div>
24
- </template>
@@ -1,59 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed } from 'vue'
3
-
4
- const props = defineProps<{
5
- join?: boolean
6
-
7
- color?: string
8
- primary?: boolean
9
- secondary?: boolean
10
- accent?: boolean
11
- info?: boolean
12
- success?: boolean
13
- warning?: boolean
14
- error?: boolean
15
-
16
- bordered?: boolean
17
- ghost?: boolean
18
- disabled?: boolean
19
-
20
- size?: 'lg' | 'md' | 'sm' | 'xs'
21
- lg?: boolean
22
- md?: boolean
23
- sm?: boolean
24
- xs?: boolean
25
- }>()
26
- defineEmits(['files'])
27
-
28
- const classes = computed(() => {
29
- return {
30
- 'join-item': props.join,
31
-
32
- 'file-input-primary': props.primary || props.color === 'primary',
33
- 'file-input-secondary': props.secondary || props.color === 'secondary',
34
- 'file-input-accent': props.accent || props.color === 'accent',
35
- 'file-input-info': props.info || props.color === 'info',
36
- 'file-input-success': props.success || props.color === 'success',
37
- 'file-input-warning': props.warning || props.color === 'warning',
38
- 'file-input-error': props.error || props.color === 'error',
39
-
40
- 'file-input-lg': props.lg || props.size === 'lg',
41
- 'file-input-md': props.md || props.size === 'md',
42
- 'file-input-sm': props.sm || props.size === 'sm',
43
- 'file-input-xs': props.xs || props.size === 'xs',
44
-
45
- 'file-input-bordered': props.bordered,
46
- 'file-input-ghost': props.ghost,
47
- }
48
- })
49
- </script>
50
-
51
- <template>
52
- <input
53
- type="file"
54
- :disabled="disabled"
55
- class="file-input"
56
- :class="classes"
57
- @input="$emit('files', ($event.target as any).value)"
58
- >
59
- </template>
@@ -1,59 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed } from 'vue'
3
-
4
- const props = withDefaults(defineProps<{
5
- is?: string | Object | Function
6
- join?: boolean
7
-
8
- // https://tailwindcss.com/docs/flex
9
- flex?: boolean
10
- flex1?: boolean
11
- flexAuto?: boolean
12
- flexInitial?: boolean
13
- none?: boolean
14
-
15
- grow?: boolean
16
-
17
- // https://tailwindcss.com/docs/flex-direction
18
- direction?: 'row' | 'col' | 'row-reverse' | 'col-reverse'
19
- row?: boolean
20
- col?: boolean
21
- reverse?: boolean
22
-
23
- // https://tailwindcss.com/docs/flex-wrap
24
- wrap?: boolean
25
- nowrap?: boolean
26
- wrapReverse?: boolean
27
- }>(), {
28
- is: 'div',
29
- flex: true,
30
- })
31
-
32
- const classes = computed(() => {
33
- return {
34
- 'join-item': props.join,
35
-
36
- 'flex-1': props.flex1,
37
- 'flex-auto': props.flexAuto,
38
- 'flex-initial': props.flexInitial,
39
- 'flex-none': props.none,
40
-
41
- 'flex-grow': props.grow,
42
-
43
- 'flex-row': props.direction === 'row' || props.row,
44
- 'flex-col': props.direction === 'col' || props.col,
45
- 'flex-row-reverse': props.direction === 'row-reverse' || (props.row && props.reverse),
46
- 'flex-col-reverse': props.direction === 'col-reverse' || (props.col && props.reverse),
47
-
48
- 'flex-wrap': props.wrap,
49
- 'flex-wrap-reverse': props.wrapReverse,
50
- 'flex-nowrap': props.nowrap,
51
- }
52
- })
53
- </script>
54
-
55
- <template>
56
- <component :is="is" class="flex" :class="classes">
57
- <slot />
58
- </component>
59
- </template>
@@ -1,24 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed } from 'vue'
3
- import Text from './Text.vue'
4
-
5
- const props = withDefaults(defineProps<{
6
- center?: boolean
7
- is?: string
8
- }>(), {
9
- center: false,
10
- is: 'footer',
11
- })
12
-
13
- const classes = computed(() => {
14
- return {
15
- 'divider-center': props.center,
16
- }
17
- })
18
- </script>
19
-
20
- <template>
21
- <Text :is="is" class="footer" :class="classes">
22
- <slot />
23
- </Text>
24
- </template>
@@ -1,25 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed } from 'vue'
3
-
4
- const props = defineProps<{
5
- size?: 'lg' | 'md' | 'sm' | 'xs'
6
- lg?: boolean
7
- md?: boolean
8
- sm?: boolean
9
- xs?: boolean
10
- }>()
11
-
12
- const classes = computed(() => {
13
- const { size, lg, md, sm, xs } = props
14
- return {
15
- 'kbd-lg': lg || size === 'lg',
16
- 'kbd-md': md || size === 'md',
17
- 'kbd-sm': sm || size === 'sm',
18
- 'kbd-xs': xs || size === 'xs',
19
- }
20
- })
21
- </script>
22
-
23
- <template>
24
- <kbd class="kbd" :class="classes"><slot /></kbd>
25
- </template>
@@ -1,15 +0,0 @@
1
- <script setup lang="ts">
2
- import Text from './Text.vue'
3
-
4
- withDefaults(defineProps<{
5
- is?: string
6
- }>(), {
7
- is: 'label',
8
- })
9
- </script>
10
-
11
- <template>
12
- <Text :is="is" class="label">
13
- <slot />
14
- </Text>
15
- </template>
@@ -1,15 +0,0 @@
1
- <script setup lang="ts">
2
- import Text from './Text.vue'
3
-
4
- withDefaults(defineProps<{
5
- is?: string
6
- }>(), {
7
- is: 'span',
8
- })
9
- </script>
10
-
11
- <template>
12
- <Text :is="is" class="label-text">
13
- <slot />
14
- </Text>
15
- </template>
@@ -1,15 +0,0 @@
1
- <script setup lang="ts">
2
- import Text from './Text.vue'
3
-
4
- withDefaults(defineProps<{
5
- is?: string
6
- }>(), {
7
- is: 'span',
8
- })
9
- </script>
10
-
11
- <template>
12
- <Text :is="is" class="label-text-alt">
13
- <slot />
14
- </Text>
15
- </template>
@@ -1,40 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed } from 'vue'
3
-
4
- const props = withDefaults(defineProps<{
5
- is?: string
6
- hover?: boolean
7
-
8
- color?: 'neutral' | 'primary' | 'secondary' | 'accent' | 'success' | 'info' | 'warning' | 'error'
9
- neutral?: boolean
10
- primary?: boolean
11
- secondary?: boolean
12
- accent?: boolean
13
- success?: boolean
14
- info?: boolean
15
- warning?: boolean
16
- error?: boolean
17
- }>(), {
18
- is: 'a',
19
- })
20
-
21
- const classes = computed(() => {
22
- return {
23
- 'link-neutral': props.neutral || props.color === 'neutral',
24
- 'link-primary': props.primary || props.color === 'primary',
25
- 'link-secondary': props.secondary || props.color === 'secondary',
26
- 'link-accent': props.accent || props.color === 'accent',
27
- 'link-success': props.success || props.color === 'success',
28
- 'link-info': props.info || props.color === 'info',
29
- 'link-warning': props.warning || props.color === 'warning',
30
- 'link-error': props.error || props.color === 'error',
31
- 'link-hover': props.hover,
32
- }
33
- })
34
- </script>
35
-
36
- <template>
37
- <component :is="is" class="link" :class="classes">
38
- <slot />
39
- </component>
40
- </template>
@@ -1,43 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed } from 'vue'
3
-
4
- const props = defineProps<{
5
- color?: string
6
- neutral?: boolean
7
- primary?: boolean
8
- secondary?: boolean
9
- accent?: boolean
10
- info?: boolean
11
- success?: boolean
12
- warning?: boolean
13
- error?: boolean
14
-
15
- size?: 'lg' | 'md' | 'sm' | 'xs'
16
- lg?: boolean
17
- md?: boolean
18
- sm?: boolean
19
- xs?: boolean
20
- }>()
21
-
22
- const classes = computed(() => {
23
- return {
24
- 'text-primary': props.primary || props.color === 'primary',
25
- 'text-secondary': props.secondary || props.color === 'secondary',
26
- 'text-neutral': props.neutral || props.color === 'neutral',
27
- 'text-accent': props.accent || props.color === 'accent',
28
- 'text-info': props.info || props.color === 'info',
29
- 'text-success': props.success || props.color === 'success',
30
- 'text-warning': props.warning || props.color === 'warning',
31
- 'text-error': props.error || props.color === 'error',
32
-
33
- 'loading-lg': props.lg || props.size === 'lg',
34
- 'loading-md': props.md || props.size === 'md',
35
- 'loading-sm': props.sm || props.size === 'sm',
36
- 'loading-xs': props.xs || props.size === 'xs',
37
- }
38
- })
39
- </script>
40
-
41
- <template>
42
- <span class="loading loading-ball" :class="classes" />
43
- </template>
@@ -1,43 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed } from 'vue'
3
-
4
- const props = defineProps<{
5
- color?: string
6
- neutral?: boolean
7
- primary?: boolean
8
- secondary?: boolean
9
- accent?: boolean
10
- info?: boolean
11
- success?: boolean
12
- warning?: boolean
13
- error?: boolean
14
-
15
- size?: 'lg' | 'md' | 'sm' | 'xs'
16
- lg?: boolean
17
- md?: boolean
18
- sm?: boolean
19
- xs?: boolean
20
- }>()
21
-
22
- const classes = computed(() => {
23
- return {
24
- 'text-primary': props.primary || props.color === 'primary',
25
- 'text-secondary': props.secondary || props.color === 'secondary',
26
- 'text-neutral': props.neutral || props.color === 'neutral',
27
- 'text-accent': props.accent || props.color === 'accent',
28
- 'text-info': props.info || props.color === 'info',
29
- 'text-success': props.success || props.color === 'success',
30
- 'text-warning': props.warning || props.color === 'warning',
31
- 'text-error': props.error || props.color === 'error',
32
-
33
- 'loading-lg': props.lg || props.size === 'lg',
34
- 'loading-md': props.md || props.size === 'md',
35
- 'loading-sm': props.sm || props.size === 'sm',
36
- 'loading-xs': props.xs || props.size === 'xs',
37
- }
38
- })
39
- </script>
40
-
41
- <template>
42
- <span class="loading loading-bars" :class="classes" />
43
- </template>