daisy-ui-kit 3.0.12 → 5.0.0-pre.11

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 (213) hide show
  1. package/README.md +62 -14
  2. package/app/components/Accordion.vue +29 -0
  3. package/app/components/Alert.vue +36 -0
  4. package/app/components/Avatar.vue +131 -0
  5. package/app/components/AvatarGroup.vue +22 -0
  6. package/app/components/Badge.vue +67 -0
  7. package/app/components/Button.vue +135 -0
  8. package/app/components/Calendar.vue +89 -0
  9. package/app/components/CalendarInput.vue +174 -0
  10. package/app/components/CalendarSkeleton.vue +87 -0
  11. package/app/components/Card.vue +46 -0
  12. package/{components → app/components}/CardActions.vue +2 -5
  13. package/{components → app/components}/CardBody.vue +2 -5
  14. package/{components → app/components}/CardTitle.vue +1 -6
  15. package/app/components/Carousel.vue +24 -0
  16. package/app/components/Chat.vue +26 -0
  17. package/app/components/ChatBubble.vue +31 -0
  18. package/app/components/Checkbox.vue +51 -0
  19. package/app/components/Collapse.vue +75 -0
  20. package/app/components/CollapseTitle.vue +15 -0
  21. package/{components → app/components}/Countdown.vue +1 -1
  22. package/app/components/CountdownTimers.vue +69 -0
  23. package/app/components/Counter.vue +21 -0
  24. package/app/components/DaisyLink.vue +52 -0
  25. package/app/components/Diff.vue +11 -0
  26. package/app/components/Divider.vue +43 -0
  27. package/app/components/Dock.vue +60 -0
  28. package/app/components/DockItem.vue +26 -0
  29. package/app/components/DockLabel.vue +5 -0
  30. package/{components → app/components}/Drawer.vue +17 -12
  31. package/{components → app/components}/DrawerContent.vue +8 -5
  32. package/{components → app/components}/DrawerSide.vue +8 -5
  33. package/app/components/Dropdown.vue +106 -0
  34. package/app/components/DropdownButton.vue +23 -0
  35. package/app/components/DropdownContent.vue +127 -0
  36. package/{components → app/components}/DropdownTarget.vue +9 -2
  37. package/app/components/Fab.vue +16 -0
  38. package/app/components/FabClose.vue +18 -0
  39. package/app/components/FabMainAction.vue +5 -0
  40. package/app/components/FabTrigger.vue +117 -0
  41. package/app/components/Fieldset.vue +16 -0
  42. package/app/components/FileInput.vue +53 -0
  43. package/app/components/Filter.vue +125 -0
  44. package/app/components/Flex.vue +84 -0
  45. package/{components → app/components}/FlexItem.vue +30 -27
  46. package/app/components/Footer.vue +31 -0
  47. package/{components → app/components}/FooterTitle.vue +8 -5
  48. package/app/components/FormControl.vue +5 -0
  49. package/{components → app/components}/Hero.vue +8 -5
  50. package/{components → app/components}/HeroContent.vue +8 -5
  51. package/app/components/Hover3D.vue +22 -0
  52. package/app/components/HoverGallery.vue +11 -0
  53. package/{components → app/components}/Indicator.vue +8 -5
  54. package/{components → app/components}/IndicatorItem.vue +16 -13
  55. package/app/components/Input.vue +126 -0
  56. package/app/components/Kbd.vue +25 -0
  57. package/app/components/Label.vue +100 -0
  58. package/{components/CollapseTitle.vue → app/components/List.vue} +1 -1
  59. package/{components/FormControl.vue → app/components/ListColGrow.vue} +1 -1
  60. package/app/components/ListColWrap.vue +5 -0
  61. package/{components/Stat.vue → app/components/ListRow.vue} +1 -1
  62. package/app/components/LoadingBall.vue +42 -0
  63. package/app/components/LoadingBars.vue +42 -0
  64. package/app/components/LoadingDots.vue +42 -0
  65. package/app/components/LoadingInfinity.vue +42 -0
  66. package/app/components/LoadingRing.vue +42 -0
  67. package/app/components/LoadingSpinner.vue +42 -0
  68. package/app/components/Mask.vue +49 -0
  69. package/app/components/Menu.vue +30 -0
  70. package/app/components/MenuExpand.vue +94 -0
  71. package/app/components/MenuExpandToggle.vue +20 -0
  72. package/{components → app/components}/MenuItem.vue +7 -6
  73. package/app/components/MockupPhone.vue +14 -0
  74. package/{components → app/components}/Modal.vue +28 -13
  75. package/app/components/NavButton.vue +12 -0
  76. package/{components → app/components}/Navbar.vue +3 -5
  77. package/{components → app/components}/NavbarCenter.vue +3 -5
  78. package/{components → app/components}/NavbarEnd.vue +3 -5
  79. package/{components → app/components}/NavbarStart.vue +3 -5
  80. package/app/components/Progress.vue +46 -0
  81. package/{components → app/components}/Prose.vue +8 -3
  82. package/app/components/RadialProgress.vue +36 -0
  83. package/app/components/Radio.vue +69 -0
  84. package/{components → app/components}/RadioGroup.vue +2 -1
  85. package/app/components/Range.vue +61 -0
  86. package/app/components/RangeMeasure.vue +87 -0
  87. package/{components → app/components}/RangeMeasureTick.vue +9 -14
  88. package/app/components/Rating.vue +197 -0
  89. package/app/components/Select.vue +101 -0
  90. package/app/components/Skeleton.vue +5 -0
  91. package/app/components/SkeletonText.vue +11 -0
  92. package/app/components/Stack.vue +25 -0
  93. package/app/components/Stat.vue +19 -0
  94. package/app/components/Status.vue +43 -0
  95. package/app/components/Step.vue +34 -0
  96. package/app/components/StepIcon.vue +5 -0
  97. package/app/components/Steps.vue +23 -0
  98. package/app/components/Swap.vue +56 -0
  99. package/app/components/Tab.vue +51 -0
  100. package/{components → app/components}/TabContent.vue +10 -10
  101. package/app/components/Table.vue +32 -0
  102. package/app/components/Tabs.vue +53 -0
  103. package/app/components/Text.vue +162 -0
  104. package/app/components/TextArea.vue +64 -0
  105. package/app/components/TextRotate.vue +24 -0
  106. package/app/components/ThemeController.vue +45 -0
  107. package/app/components/ThemeProvider.vue +302 -0
  108. package/app/components/ThemeTile.vue +50 -0
  109. package/app/components/Timeline.vue +22 -0
  110. package/app/components/TimelineEnd.vue +14 -0
  111. package/app/components/TimelineItem.vue +5 -0
  112. package/app/components/TimelineLine.vue +29 -0
  113. package/app/components/TimelineMiddle.vue +5 -0
  114. package/app/components/TimelineStart.vue +14 -0
  115. package/app/components/Toast.vue +67 -0
  116. package/app/components/Toggle.vue +60 -0
  117. package/app/components/Tooltip.vue +48 -0
  118. package/app/components/TooltipContent.vue +5 -0
  119. package/app/components/ValidatorHint.vue +5 -0
  120. package/{utils → app/utils}/drawer-utils.ts +15 -13
  121. package/app/utils/position-area.ts +41 -0
  122. package/nuxt.js +7 -1
  123. package/package.json +60 -61
  124. package/components/Accordion.vue +0 -29
  125. package/components/Alert.vue +0 -25
  126. package/components/Artboard.vue +0 -33
  127. package/components/Avatar.vue +0 -70
  128. package/components/AvatarGroup.vue +0 -19
  129. package/components/Badge.vue +0 -50
  130. package/components/BottomNav.vue +0 -25
  131. package/components/Button.vue +0 -111
  132. package/components/Card.vue +0 -30
  133. package/components/Carousel.vue +0 -25
  134. package/components/Chat.vue +0 -27
  135. package/components/ChatBubble.vue +0 -34
  136. package/components/Checkbox.vue +0 -55
  137. package/components/Code.vue +0 -92
  138. package/components/Collapse.vue +0 -54
  139. package/components/CountdownTimers.vue +0 -70
  140. package/components/Counter.vue +0 -14
  141. package/components/Divider.vue +0 -24
  142. package/components/Dropdown.vue +0 -95
  143. package/components/DropdownButton.vue +0 -16
  144. package/components/DropdownContent.vue +0 -56
  145. package/components/FileInput.vue +0 -59
  146. package/components/Flex.vue +0 -59
  147. package/components/Footer.vue +0 -24
  148. package/components/Kbd.vue +0 -25
  149. package/components/Label.vue +0 -15
  150. package/components/LabelText.vue +0 -15
  151. package/components/LabelTextAlt.vue +0 -15
  152. package/components/Link.vue +0 -40
  153. package/components/LoadingBall.vue +0 -43
  154. package/components/LoadingBars.vue +0 -43
  155. package/components/LoadingDots.vue +0 -43
  156. package/components/LoadingInfinity.vue +0 -43
  157. package/components/LoadingRing.vue +0 -43
  158. package/components/LoadingSpinner.vue +0 -43
  159. package/components/Mask.config.ts +0 -77
  160. package/components/Mask.vue +0 -14
  161. package/components/Menu.vue +0 -35
  162. package/components/MenuExpand.vue +0 -79
  163. package/components/MenuExpandToggle.vue +0 -13
  164. package/components/MockupPhone.vue +0 -8
  165. package/components/NavButton.vue +0 -20
  166. package/components/Progress.vue +0 -42
  167. package/components/RadialProgress.vue +0 -41
  168. package/components/Radio.vue +0 -76
  169. package/components/Range.vue +0 -60
  170. package/components/RangeMeasure.vue +0 -83
  171. package/components/Rating.vue +0 -167
  172. package/components/Select.vue +0 -100
  173. package/components/Stack.vue +0 -13
  174. package/components/Step.vue +0 -36
  175. package/components/Steps.vue +0 -21
  176. package/components/Swap.vue +0 -58
  177. package/components/Tab.vue +0 -48
  178. package/components/Tabs.vue +0 -77
  179. package/components/TabsManager.vue +0 -38
  180. package/components/Text.vue +0 -142
  181. package/components/TextArea.vue +0 -64
  182. package/components/TextInput.vue +0 -66
  183. package/components/Toast.vue +0 -31
  184. package/components/Toggle.vue +0 -59
  185. package/components/Tooltip.vue +0 -47
  186. package/index.ts +0 -108
  187. package/utils/-utils.ts +0 -41
  188. package/utils/Button.config.ts +0 -26
  189. package/utils/fixtures.ts +0 -62
  190. package/utils/types.ts +0 -7
  191. /package/{components → app/components}/Breadcrumbs.vue +0 -0
  192. /package/{components → app/components}/CarouselItem.vue +0 -0
  193. /package/{components → app/components}/ChatFooter.vue +0 -0
  194. /package/{components → app/components}/ChatHeader.vue +0 -0
  195. /package/{components → app/components}/ChatImage.vue +0 -0
  196. /package/{components → app/components}/CollapseContent.vue +0 -0
  197. /package/{components → app/components}/Crumb.vue +0 -0
  198. /package/{components → app/components}/HeroOverlay.vue +0 -0
  199. /package/{components → app/components}/Join.vue +0 -0
  200. /package/{components → app/components}/MenuTitle.vue +0 -0
  201. /package/{components → app/components}/MockupBrowser.vue +0 -0
  202. /package/{components → app/components}/MockupBrowserToolbar.vue +0 -0
  203. /package/{components → app/components}/MockupCode.vue +0 -0
  204. /package/{components → app/components}/MockupWindow.vue +0 -0
  205. /package/{components → app/components}/ModalAction.vue +0 -0
  206. /package/{components → app/components}/ModalBox.vue +0 -0
  207. /package/{components → app/components}/StatActions.vue +0 -0
  208. /package/{components → app/components}/StatDesc.vue +0 -0
  209. /package/{components → app/components}/StatFigure.vue +0 -0
  210. /package/{components → app/components}/StatTitle.vue +0 -0
  211. /package/{components → app/components}/StatValue.vue +0 -0
  212. /package/{components → app/components}/Stats.vue +0 -0
  213. /package/{utils → app/utils}/random-string.ts +0 -0
@@ -0,0 +1,126 @@
1
+ <script setup lang="ts">
2
+ import { computed, inject } from 'vue'
3
+
4
+ // Map input type to value type
5
+ type InputType =
6
+ | 'text'
7
+ | 'password'
8
+ | 'email'
9
+ | 'number'
10
+ | 'date'
11
+ | 'datetime-local'
12
+ | 'week'
13
+ | 'month'
14
+ | 'tel'
15
+ | 'url'
16
+ | 'search'
17
+ | 'time'
18
+
19
+ const props = withDefaults(
20
+ defineProps<{
21
+ modelValue?: string | number | null
22
+ type?: InputType
23
+ placeholder?: string
24
+ disabled?: boolean
25
+ validator?: boolean
26
+ join?: boolean
27
+ color?: string
28
+ primary?: boolean
29
+ secondary?: boolean
30
+ accent?: boolean
31
+ info?: boolean
32
+ success?: boolean
33
+ warning?: boolean
34
+ error?: boolean
35
+ ghost?: boolean
36
+ size?: 'xl' | 'lg' | 'md' | 'sm' | 'xs'
37
+ xl?: boolean
38
+ lg?: boolean
39
+ md?: boolean
40
+ sm?: boolean
41
+ xs?: boolean
42
+ }>(),
43
+ {
44
+ type: 'text',
45
+ },
46
+ )
47
+ const emit = defineEmits(['update:modelValue'])
48
+
49
+ // For slot context
50
+ function setValue(val: string | number | null) {
51
+ emit('update:modelValue', val)
52
+ }
53
+
54
+ const labelCtx = inject('labelCtx')
55
+
56
+ function handleInput(event: Event) {
57
+ let val: string | number | null
58
+ if (props.type === 'number') {
59
+ const inputVal = (event.target as HTMLInputElement).value
60
+ val = inputVal === '' ? null : Number(inputVal)
61
+ } else {
62
+ val = (event.target as HTMLInputElement).value
63
+ }
64
+ emit('update:modelValue', val)
65
+
66
+ // Sync checked only on input if it's a checkbox
67
+ if (
68
+ props.type === 'checkbox' &&
69
+ labelCtx &&
70
+ Object.prototype.hasOwnProperty.call(labelCtx, 'checked') &&
71
+ typeof labelCtx.checked.value === 'boolean'
72
+ ) {
73
+ labelCtx.checked.value = Boolean(event.target.checked)
74
+ }
75
+ }
76
+
77
+ const inputAttrs = computed(() => {
78
+ if (labelCtx) {
79
+ return {
80
+ type: props.type,
81
+ placeholder: props.placeholder,
82
+ disabled: props.disabled,
83
+ }
84
+ }
85
+ return {
86
+ type: props.type,
87
+ placeholder: props.placeholder,
88
+ disabled: props.disabled,
89
+ class: [
90
+ 'input',
91
+ { validator: props.validator },
92
+ { 'input-primary': props.primary || props.color === 'primary' },
93
+ { 'input-secondary': props.secondary || props.color === 'secondary' },
94
+ { 'input-accent': props.accent || props.color === 'accent' },
95
+ { 'input-info': props.info || props.color === 'info' },
96
+ { 'input-success': props.success || props.color === 'success' },
97
+ { 'input-warning': props.warning || props.color === 'warning' },
98
+ { 'input-error': props.error || props.color === 'error' },
99
+ { 'input-ghost': props.ghost },
100
+ { 'input-xl': props.xl || props.size === 'xl' },
101
+ { 'input-lg': props.lg || props.size === 'lg' },
102
+ { 'input-md': props.md || props.size === 'md' },
103
+ { 'input-sm': props.sm || props.size === 'sm' },
104
+ { 'input-xs': props.xs || props.size === 'xs' },
105
+ { 'join-item': props.join },
106
+ ],
107
+ }
108
+ })
109
+ const inputModel = computed({
110
+ get: () => props.modelValue,
111
+ set: setValue,
112
+ })
113
+ </script>
114
+
115
+ <template>
116
+ <div v-if="$slots.default">
117
+ <slot
118
+ :value="inputModel"
119
+ :set-value="setValue"
120
+ :input-attrs="inputAttrs"
121
+ :props="props"
122
+ :input-model="inputModel"
123
+ />
124
+ </div>
125
+ <input v-else v-bind="inputAttrs" :value="inputModel" @input="handleInput" />
126
+ </template>
@@ -0,0 +1,25 @@
1
+ <script setup lang="ts">
2
+ defineProps<{
3
+ size?: 'xl' | 'lg' | 'md' | 'sm' | 'xs'
4
+ xl?: boolean
5
+ lg?: boolean
6
+ md?: boolean
7
+ sm?: boolean
8
+ xs?: boolean
9
+ }>()
10
+ </script>
11
+
12
+ <template>
13
+ <kbd
14
+ class="kbd"
15
+ :class="{
16
+ 'kbd-xl': xl || size === 'xl',
17
+ 'kbd-lg': lg || size === 'lg',
18
+ 'kbd-md': md || size === 'md',
19
+ 'kbd-sm': sm || size === 'sm',
20
+ 'kbd-xs': xs || size === 'xs',
21
+ }"
22
+ >
23
+ <slot />
24
+ </kbd>
25
+ </template>
@@ -0,0 +1,100 @@
1
+ <script setup lang="ts">
2
+ import { provide, ref } from 'vue'
3
+ import Text from './Text.vue'
4
+
5
+ withDefaults(
6
+ defineProps<{
7
+ is?: string
8
+ floating?: boolean
9
+
10
+ input?: boolean
11
+ select?: boolean
12
+ toggle?: boolean
13
+
14
+ join?: boolean
15
+ color?: string
16
+ neutral?: boolean
17
+ primary?: boolean
18
+ secondary?: boolean
19
+ accent?: boolean
20
+ info?: boolean
21
+ success?: boolean
22
+ warning?: boolean
23
+ error?: boolean
24
+ ghost?: boolean
25
+ size?: 'xl' | 'lg' | 'md' | 'sm' | 'xs'
26
+ xl?: boolean
27
+ lg?: boolean
28
+ md?: boolean
29
+ sm?: boolean
30
+ xs?: boolean
31
+ }>(),
32
+ {
33
+ is: 'label',
34
+ },
35
+ )
36
+
37
+ // Provide label context for child inputs
38
+ const checked = ref(false)
39
+ provide('labelCtx', { checked })
40
+ </script>
41
+
42
+ <template>
43
+ <Text
44
+ :is="is"
45
+ :class="[
46
+ {
47
+ input,
48
+ select,
49
+ toggle,
50
+ 'join-item': (input || select || toggle) && join,
51
+ 'input-neutral': input && (neutral || color === 'neutral'),
52
+ 'input-primary': input && (primary || color === 'primary'),
53
+ 'input-secondary': input && (secondary || color === 'secondary'),
54
+ 'input-accent': input && (accent || color === 'accent'),
55
+ 'input-info': input && (info || color === 'info'),
56
+ 'input-success': input && (success || color === 'success'),
57
+ 'input-warning': input && (warning || color === 'warning'),
58
+ 'input-error': input && (error || color === 'error'),
59
+ 'input-ghost': input && ghost,
60
+ 'input-xl': input && (size === 'xl' || xl),
61
+ 'input-lg': input && (size === 'lg' || lg),
62
+ 'input-md': input && (size === 'md' || md),
63
+ 'input-sm': input && (size === 'sm' || sm),
64
+ 'input-xs': input && (size === 'xs' || xs),
65
+ 'select-neutral': select && (neutral || color === 'neutral'),
66
+ 'select-primary': select && (primary || color === 'primary'),
67
+ 'select-secondary': select && (secondary || color === 'secondary'),
68
+ 'select-accent': select && (accent || color === 'accent'),
69
+ 'select-info': select && (info || color === 'info'),
70
+ 'select-success': select && (success || color === 'success'),
71
+ 'select-warning': select && (warning || color === 'warning'),
72
+ 'select-error': select && (error || color === 'error'),
73
+ 'select-ghost': select && ghost,
74
+ 'select-xl': select && (size === 'xl' || xl),
75
+ 'select-lg': select && (size === 'lg' || lg),
76
+ 'select-md': select && (size === 'md' || md),
77
+ 'select-sm': select && (size === 'sm' || sm),
78
+ 'select-xs': select && (size === 'xs' || xs),
79
+ 'text-neutral': toggle && checked && (neutral || color === 'neutral'),
80
+ 'text-primary': toggle && checked && (primary || color === 'primary'),
81
+ 'text-secondary': toggle && checked && (secondary || color === 'secondary'),
82
+ 'text-accent': toggle && checked && (accent || color === 'accent'),
83
+ 'text-info': toggle && checked && (info || color === 'info'),
84
+ 'text-success': toggle && checked && (success || color === 'success'),
85
+ 'text-warning': toggle && checked && (warning || color === 'warning'),
86
+ 'text-error': toggle && checked && (error || color === 'error'),
87
+ 'text-ghost': toggle && ghost,
88
+ 'toggle-xl': toggle && (size === 'xl' || xl),
89
+ 'toggle-lg': toggle && (size === 'lg' || lg),
90
+ 'toggle-md': toggle && (size === 'md' || md),
91
+ 'toggle-sm': toggle && (size === 'sm' || sm),
92
+ 'toggle-xs': toggle && (size === 'xs' || xs),
93
+ },
94
+ { label: !floating && !(input || toggle) },
95
+ { 'floating-label': floating },
96
+ ]"
97
+ >
98
+ <slot />
99
+ </Text>
100
+ </template>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="collapse-title">
2
+ <div class="list list-none">
3
3
  <slot />
4
4
  </div>
5
5
  </template>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="form-control">
2
+ <div class="list-col-grow">
3
3
  <slot />
4
4
  </div>
5
5
  </template>
@@ -0,0 +1,5 @@
1
+ <template>
2
+ <div class="list-col-wrap">
3
+ <slot />
4
+ </div>
5
+ </template>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="stat">
2
+ <div class="list-row">
3
3
  <slot />
4
4
  </div>
5
5
  </template>
@@ -0,0 +1,42 @@
1
+ <script setup lang="ts">
2
+ const props = defineProps<{
3
+ color?: string
4
+ neutral?: boolean
5
+ primary?: boolean
6
+ secondary?: boolean
7
+ accent?: boolean
8
+ info?: boolean
9
+ success?: boolean
10
+ warning?: boolean
11
+ error?: boolean
12
+
13
+ size?: 'xl' | 'lg' | 'md' | 'sm' | 'xs'
14
+ xl?: boolean
15
+ lg?: boolean
16
+ md?: boolean
17
+ sm?: boolean
18
+ xs?: boolean
19
+ }>()
20
+ </script>
21
+
22
+ <template>
23
+ <span
24
+ class="loading loading-ball"
25
+ :class="{
26
+ 'text-primary': props.primary || props.color === 'primary',
27
+ 'text-secondary': props.secondary || props.color === 'secondary',
28
+ 'text-neutral': props.neutral || props.color === 'neutral',
29
+ 'text-accent': props.accent || props.color === 'accent',
30
+ 'text-info': props.info || props.color === 'info',
31
+ 'text-success': props.success || props.color === 'success',
32
+ 'text-warning': props.warning || props.color === 'warning',
33
+ 'text-error': props.error || props.color === 'error',
34
+
35
+ 'loading-xl': props.xl || props.size === 'xl',
36
+ 'loading-lg': props.lg || props.size === 'lg',
37
+ 'loading-md': props.md || props.size === 'md',
38
+ 'loading-sm': props.sm || props.size === 'sm',
39
+ 'loading-xs': props.xs || props.size === 'xs',
40
+ }"
41
+ />
42
+ </template>
@@ -0,0 +1,42 @@
1
+ <script setup lang="ts">
2
+ const props = defineProps<{
3
+ color?: string
4
+ neutral?: boolean
5
+ primary?: boolean
6
+ secondary?: boolean
7
+ accent?: boolean
8
+ info?: boolean
9
+ success?: boolean
10
+ warning?: boolean
11
+ error?: boolean
12
+
13
+ size?: 'xl' | 'lg' | 'md' | 'sm' | 'xs'
14
+ xl?: boolean
15
+ lg?: boolean
16
+ md?: boolean
17
+ sm?: boolean
18
+ xs?: boolean
19
+ }>()
20
+ </script>
21
+
22
+ <template>
23
+ <span
24
+ class="loading loading-bars"
25
+ :class="{
26
+ 'text-primary': props.primary || props.color === 'primary',
27
+ 'text-secondary': props.secondary || props.color === 'secondary',
28
+ 'text-neutral': props.neutral || props.color === 'neutral',
29
+ 'text-accent': props.accent || props.color === 'accent',
30
+ 'text-info': props.info || props.color === 'info',
31
+ 'text-success': props.success || props.color === 'success',
32
+ 'text-warning': props.warning || props.color === 'warning',
33
+ 'text-error': props.error || props.color === 'error',
34
+
35
+ 'loading-xl': props.xl || props.size === 'xl',
36
+ 'loading-lg': props.lg || props.size === 'lg',
37
+ 'loading-md': props.md || props.size === 'md',
38
+ 'loading-sm': props.sm || props.size === 'sm',
39
+ 'loading-xs': props.xs || props.size === 'xs',
40
+ }"
41
+ />
42
+ </template>
@@ -0,0 +1,42 @@
1
+ <script setup lang="ts">
2
+ const props = defineProps<{
3
+ color?: string
4
+ neutral?: boolean
5
+ primary?: boolean
6
+ secondary?: boolean
7
+ accent?: boolean
8
+ info?: boolean
9
+ success?: boolean
10
+ warning?: boolean
11
+ error?: boolean
12
+
13
+ size?: 'xl' | 'lg' | 'md' | 'sm' | 'xs'
14
+ xl?: boolean
15
+ lg?: boolean
16
+ md?: boolean
17
+ sm?: boolean
18
+ xs?: boolean
19
+ }>()
20
+ </script>
21
+
22
+ <template>
23
+ <span
24
+ class="loading loading-dots"
25
+ :class="{
26
+ 'text-primary': props.primary || props.color === 'primary',
27
+ 'text-secondary': props.secondary || props.color === 'secondary',
28
+ 'text-neutral': props.neutral || props.color === 'neutral',
29
+ 'text-accent': props.accent || props.color === 'accent',
30
+ 'text-info': props.info || props.color === 'info',
31
+ 'text-success': props.success || props.color === 'success',
32
+ 'text-warning': props.warning || props.color === 'warning',
33
+ 'text-error': props.error || props.color === 'error',
34
+
35
+ 'loading-xl': props.xl || props.size === 'xl',
36
+ 'loading-lg': props.lg || props.size === 'lg',
37
+ 'loading-md': props.md || props.size === 'md',
38
+ 'loading-sm': props.sm || props.size === 'sm',
39
+ 'loading-xs': props.xs || props.size === 'xs',
40
+ }"
41
+ />
42
+ </template>
@@ -0,0 +1,42 @@
1
+ <script setup lang="ts">
2
+ const props = defineProps<{
3
+ color?: string
4
+ neutral?: boolean
5
+ primary?: boolean
6
+ secondary?: boolean
7
+ accent?: boolean
8
+ info?: boolean
9
+ success?: boolean
10
+ warning?: boolean
11
+ error?: boolean
12
+
13
+ size?: 'xl' | 'lg' | 'md' | 'sm' | 'xs'
14
+ xl?: boolean
15
+ lg?: boolean
16
+ md?: boolean
17
+ sm?: boolean
18
+ xs?: boolean
19
+ }>()
20
+ </script>
21
+
22
+ <template>
23
+ <span
24
+ class="loading loading-infinity"
25
+ :class="{
26
+ 'text-primary': props.primary || props.color === 'primary',
27
+ 'text-secondary': props.secondary || props.color === 'secondary',
28
+ 'text-neutral': props.neutral || props.color === 'neutral',
29
+ 'text-accent': props.accent || props.color === 'accent',
30
+ 'text-info': props.info || props.color === 'info',
31
+ 'text-success': props.success || props.color === 'success',
32
+ 'text-warning': props.warning || props.color === 'warning',
33
+ 'text-error': props.error || props.color === 'error',
34
+
35
+ 'loading-xl': props.xl || props.size === 'xl',
36
+ 'loading-lg': props.lg || props.size === 'lg',
37
+ 'loading-md': props.md || props.size === 'md',
38
+ 'loading-sm': props.sm || props.size === 'sm',
39
+ 'loading-xs': props.xs || props.size === 'xs',
40
+ }"
41
+ />
42
+ </template>
@@ -0,0 +1,42 @@
1
+ <script setup lang="ts">
2
+ const props = defineProps<{
3
+ color?: string
4
+ neutral?: boolean
5
+ primary?: boolean
6
+ secondary?: boolean
7
+ accent?: boolean
8
+ info?: boolean
9
+ success?: boolean
10
+ warning?: boolean
11
+ error?: boolean
12
+
13
+ size?: 'xl' | 'lg' | 'md' | 'sm' | 'xs'
14
+ xl?: boolean
15
+ lg?: boolean
16
+ md?: boolean
17
+ sm?: boolean
18
+ xs?: boolean
19
+ }>()
20
+ </script>
21
+
22
+ <template>
23
+ <span
24
+ class="loading loading-ring"
25
+ :class="{
26
+ 'text-primary': props.primary || props.color === 'primary',
27
+ 'text-secondary': props.secondary || props.color === 'secondary',
28
+ 'text-neutral': props.neutral || props.color === 'neutral',
29
+ 'text-accent': props.accent || props.color === 'accent',
30
+ 'text-info': props.info || props.color === 'info',
31
+ 'text-success': props.success || props.color === 'success',
32
+ 'text-warning': props.warning || props.color === 'warning',
33
+ 'text-error': props.error || props.color === 'error',
34
+
35
+ 'loading-xl': props.xl || props.size === 'xl',
36
+ 'loading-lg': props.lg || props.size === 'lg',
37
+ 'loading-md': props.md || props.size === 'md',
38
+ 'loading-sm': props.sm || props.size === 'sm',
39
+ 'loading-xs': props.xs || props.size === 'xs',
40
+ }"
41
+ />
42
+ </template>
@@ -0,0 +1,42 @@
1
+ <script setup lang="ts">
2
+ const props = defineProps<{
3
+ color?: string
4
+ neutral?: boolean
5
+ primary?: boolean
6
+ secondary?: boolean
7
+ accent?: boolean
8
+ info?: boolean
9
+ success?: boolean
10
+ warning?: boolean
11
+ error?: boolean
12
+
13
+ size?: 'xl' | 'lg' | 'md' | 'sm' | 'xs'
14
+ xl?: boolean
15
+ lg?: boolean
16
+ md?: boolean
17
+ sm?: boolean
18
+ xs?: boolean
19
+ }>()
20
+ </script>
21
+
22
+ <template>
23
+ <span
24
+ class="loading loading-spinner"
25
+ :class="{
26
+ 'text-primary': props.primary || props.color === 'primary',
27
+ 'text-secondary': props.secondary || props.color === 'secondary',
28
+ 'text-neutral': props.neutral || props.color === 'neutral',
29
+ 'text-accent': props.accent || props.color === 'accent',
30
+ 'text-info': props.info || props.color === 'info',
31
+ 'text-success': props.success || props.color === 'success',
32
+ 'text-warning': props.warning || props.color === 'warning',
33
+ 'text-error': props.error || props.color === 'error',
34
+
35
+ 'loading-xl': props.xl || props.size === 'xl',
36
+ 'loading-lg': props.lg || props.size === 'lg',
37
+ 'loading-md': props.md || props.size === 'md',
38
+ 'loading-sm': props.sm || props.size === 'sm',
39
+ 'loading-xs': props.xs || props.size === 'xs',
40
+ }"
41
+ />
42
+ </template>
@@ -0,0 +1,49 @@
1
+ <script setup lang="ts">
2
+ const props = defineProps<{
3
+ shape?: string
4
+ squircle?: boolean
5
+ heart?: boolean
6
+ hexagon?: boolean
7
+ hexagon2?: boolean
8
+ decagon?: boolean
9
+ pentagon?: boolean
10
+ diamond?: boolean
11
+ square?: boolean
12
+ circle?: boolean
13
+ star?: boolean
14
+ star2?: boolean
15
+ triangle?: boolean
16
+ triangle2?: boolean
17
+ triangle3?: boolean
18
+ triangle4?: boolean
19
+ half1?: boolean
20
+ half2?: boolean
21
+ }>()
22
+ </script>
23
+
24
+ <template>
25
+ <div
26
+ class="mask"
27
+ :class="{
28
+ 'mask-squircle': props.squircle || props.shape === 'squircle',
29
+ 'mask-heart': props.heart || props.shape === 'heart',
30
+ 'mask-hexagon': props.hexagon || props.shape === 'hexagon',
31
+ 'mask-hexagon-2': props.hexagon2 || props.shape === 'hexagon-2',
32
+ 'mask-decagon': props.decagon || props.shape === 'decagon',
33
+ 'mask-pentagon': props.pentagon || props.shape === 'pentagon',
34
+ 'mask-diamond': props.diamond || props.shape === 'diamond',
35
+ 'mask-square': props.square || props.shape === 'square',
36
+ 'mask-circle': props.circle || props.shape === 'circle',
37
+ 'mask-star': props.star || props.shape === 'star',
38
+ 'mask-star-2': props.star2 || props.shape === 'star-2',
39
+ 'mask-triangle': props.triangle || props.shape === 'triangle',
40
+ 'mask-triangle-2': props.triangle2 || props.shape === 'triangle-2',
41
+ 'mask-triangle-3': props.triangle3 || props.shape === 'triangle-3',
42
+ 'mask-triangle-4': props.triangle4 || props.shape === 'triangle-4',
43
+ 'mask-half-1': props.half1 || props.shape === 'half-1',
44
+ 'mask-half-2': props.half2 || props.shape === 'half-2',
45
+ }"
46
+ >
47
+ <slot />
48
+ </div>
49
+ </template>
@@ -0,0 +1,30 @@
1
+ <script setup lang="ts">
2
+ const props = defineProps<{
3
+ align?: 'vertical' | 'horizontal'
4
+ vertical?: boolean
5
+ horizontal?: boolean
6
+ size?: 'xl' | 'lg' | 'md' | 'sm' | 'xs'
7
+ xl?: boolean
8
+ lg?: boolean
9
+ md?: boolean
10
+ sm?: boolean
11
+ xs?: boolean
12
+ }>()
13
+ </script>
14
+
15
+ <template>
16
+ <ul
17
+ class="menu"
18
+ :class="{
19
+ 'menu-vertical': props.vertical || props.align === 'vertical',
20
+ 'menu-horizontal': props.horizontal || props.align === 'horizontal',
21
+ 'menu-xl': props.xl || props.size === 'xl',
22
+ 'menu-lg': props.lg || props.size === 'lg',
23
+ 'menu-md': props.md || props.size === 'md',
24
+ 'menu-sm': props.sm || props.size === 'sm',
25
+ 'menu-xs': props.xs || props.size === 'xs',
26
+ }"
27
+ >
28
+ <slot />
29
+ </ul>
30
+ </template>