daisy-ui-kit 5.0.3 → 5.0.5

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 (158) hide show
  1. package/README.md +1 -1
  2. package/dist/index.css +1 -0
  3. package/dist/index.d.ts +4652 -0
  4. package/dist/index.js +5279 -0
  5. package/nuxt.js +161 -14
  6. package/package.json +11 -21
  7. package/app/components/Accordion.vue +0 -29
  8. package/app/components/Alert.vue +0 -36
  9. package/app/components/Avatar.vue +0 -131
  10. package/app/components/AvatarGroup.vue +0 -22
  11. package/app/components/Badge.vue +0 -72
  12. package/app/components/Breadcrumbs.vue +0 -7
  13. package/app/components/Button.vue +0 -140
  14. package/app/components/Calendar.vue +0 -175
  15. package/app/components/CalendarInput.vue +0 -275
  16. package/app/components/CalendarSkeleton.vue +0 -87
  17. package/app/components/Card.vue +0 -51
  18. package/app/components/CardActions.vue +0 -13
  19. package/app/components/CardBody.vue +0 -13
  20. package/app/components/CardTitle.vue +0 -11
  21. package/app/components/Carousel.vue +0 -24
  22. package/app/components/CarouselItem.vue +0 -5
  23. package/app/components/Chat.vue +0 -26
  24. package/app/components/ChatBubble.vue +0 -31
  25. package/app/components/ChatFooter.vue +0 -5
  26. package/app/components/ChatHeader.vue +0 -5
  27. package/app/components/ChatImage.vue +0 -5
  28. package/app/components/Checkbox.vue +0 -51
  29. package/app/components/Collapse.vue +0 -76
  30. package/app/components/CollapseContent.vue +0 -5
  31. package/app/components/CollapseTitle.vue +0 -15
  32. package/app/components/Countdown.vue +0 -15
  33. package/app/components/CountdownTimers.vue +0 -69
  34. package/app/components/Counter.vue +0 -21
  35. package/app/components/Crumb.vue +0 -5
  36. package/app/components/DaisyLink.vue +0 -56
  37. package/app/components/Diff.vue +0 -11
  38. package/app/components/Divider.vue +0 -43
  39. package/app/components/Dock.vue +0 -57
  40. package/app/components/DockItem.vue +0 -27
  41. package/app/components/DockLabel.vue +0 -5
  42. package/app/components/Drawer.vue +0 -50
  43. package/app/components/DrawerContent.vue +0 -20
  44. package/app/components/DrawerSide.vue +0 -21
  45. package/app/components/Dropdown.vue +0 -106
  46. package/app/components/DropdownButton.vue +0 -23
  47. package/app/components/DropdownContent.vue +0 -127
  48. package/app/components/DropdownTarget.vue +0 -21
  49. package/app/components/Fab.vue +0 -16
  50. package/app/components/FabClose.vue +0 -18
  51. package/app/components/FabMainAction.vue +0 -5
  52. package/app/components/FabTrigger.vue +0 -117
  53. package/app/components/Fieldset.vue +0 -20
  54. package/app/components/FileInput.vue +0 -53
  55. package/app/components/Filter.vue +0 -129
  56. package/app/components/Flex.vue +0 -89
  57. package/app/components/FlexItem.vue +0 -62
  58. package/app/components/Footer.vue +0 -31
  59. package/app/components/FooterTitle.vue +0 -18
  60. package/app/components/FormControl.vue +0 -5
  61. package/app/components/Hero.vue +0 -18
  62. package/app/components/HeroContent.vue +0 -18
  63. package/app/components/HeroOverlay.vue +0 -5
  64. package/app/components/Hover3D.vue +0 -22
  65. package/app/components/HoverGallery.vue +0 -11
  66. package/app/components/Indicator.vue +0 -20
  67. package/app/components/IndicatorItem.vue +0 -43
  68. package/app/components/Input.vue +0 -116
  69. package/app/components/Join.vue +0 -5
  70. package/app/components/Kbd.vue +0 -25
  71. package/app/components/Label.vue +0 -100
  72. package/app/components/List.vue +0 -5
  73. package/app/components/ListColGrow.vue +0 -5
  74. package/app/components/ListColWrap.vue +0 -5
  75. package/app/components/ListRow.vue +0 -5
  76. package/app/components/LoadingBall.vue +0 -42
  77. package/app/components/LoadingBars.vue +0 -42
  78. package/app/components/LoadingDots.vue +0 -42
  79. package/app/components/LoadingInfinity.vue +0 -42
  80. package/app/components/LoadingRing.vue +0 -42
  81. package/app/components/LoadingSpinner.vue +0 -42
  82. package/app/components/Mask.vue +0 -49
  83. package/app/components/Menu.vue +0 -30
  84. package/app/components/MenuExpand.vue +0 -92
  85. package/app/components/MenuExpandToggle.vue +0 -20
  86. package/app/components/MenuItem.vue +0 -39
  87. package/app/components/MenuTitle.vue +0 -5
  88. package/app/components/MockupBrowser.vue +0 -5
  89. package/app/components/MockupBrowserToolbar.vue +0 -5
  90. package/app/components/MockupCode.vue +0 -4
  91. package/app/components/MockupPhone.vue +0 -14
  92. package/app/components/MockupWindow.vue +0 -5
  93. package/app/components/Modal.vue +0 -63
  94. package/app/components/ModalAction.vue +0 -5
  95. package/app/components/ModalBox.vue +0 -5
  96. package/app/components/NavButton.vue +0 -12
  97. package/app/components/Navbar.vue +0 -12
  98. package/app/components/NavbarCenter.vue +0 -11
  99. package/app/components/NavbarEnd.vue +0 -11
  100. package/app/components/NavbarStart.vue +0 -11
  101. package/app/components/Progress.vue +0 -46
  102. package/app/components/Prose.vue +0 -37
  103. package/app/components/RadialProgress.vue +0 -36
  104. package/app/components/Radio.vue +0 -69
  105. package/app/components/RadioGroup.vue +0 -47
  106. package/app/components/Range.vue +0 -201
  107. package/app/components/RangeMeasure.vue +0 -87
  108. package/app/components/RangeMeasureTick.vue +0 -69
  109. package/app/components/Rating.vue +0 -197
  110. package/app/components/Select.vue +0 -101
  111. package/app/components/Skeleton.vue +0 -5
  112. package/app/components/SkeletonText.vue +0 -11
  113. package/app/components/Stack.vue +0 -30
  114. package/app/components/Stat.vue +0 -19
  115. package/app/components/StatActions.vue +0 -5
  116. package/app/components/StatDesc.vue +0 -5
  117. package/app/components/StatFigure.vue +0 -5
  118. package/app/components/StatTitle.vue +0 -5
  119. package/app/components/StatValue.vue +0 -5
  120. package/app/components/Stats.vue +0 -5
  121. package/app/components/Status.vue +0 -43
  122. package/app/components/Step.vue +0 -34
  123. package/app/components/StepIcon.vue +0 -5
  124. package/app/components/Steps.vue +0 -23
  125. package/app/components/Swap.vue +0 -56
  126. package/app/components/Tab.vue +0 -56
  127. package/app/components/TabContent.vue +0 -29
  128. package/app/components/Table.vue +0 -32
  129. package/app/components/Tabs.vue +0 -53
  130. package/app/components/Text.vue +0 -166
  131. package/app/components/TextArea.vue +0 -106
  132. package/app/components/TextRotate.vue +0 -24
  133. package/app/components/ThemeController.vue +0 -45
  134. package/app/components/ThemeProvider.vue +0 -302
  135. package/app/components/ThemeTile.vue +0 -50
  136. package/app/components/Timeline.vue +0 -22
  137. package/app/components/TimelineEnd.vue +0 -14
  138. package/app/components/TimelineItem.vue +0 -5
  139. package/app/components/TimelineLine.vue +0 -29
  140. package/app/components/TimelineMiddle.vue +0 -5
  141. package/app/components/TimelineStart.vue +0 -14
  142. package/app/components/Toast.vue +0 -67
  143. package/app/components/Toggle.vue +0 -60
  144. package/app/components/Tooltip.vue +0 -137
  145. package/app/components/TooltipContent.vue +0 -283
  146. package/app/components/TooltipTarget.vue +0 -20
  147. package/app/components/ValidatorHint.vue +0 -5
  148. package/app/composables/__tests__/use-calendar.test.ts +0 -239
  149. package/app/composables/use-calendar.ts +0 -288
  150. package/app/composables/use-daisy-theme.ts +0 -140
  151. package/app/composables/use-toast.ts +0 -345
  152. package/app/composables/useSearch.ts +0 -22
  153. package/app/utils/drawer-utils.ts +0 -34
  154. package/app/utils/position-area.ts +0 -40
  155. package/components.d.ts +0 -145
  156. package/components.js +0 -141
  157. package/index.d.ts +0 -157
  158. package/index.js +0 -145
@@ -1,32 +0,0 @@
1
- <script setup lang="ts">
2
- defineProps<{
3
- zebra?: boolean
4
- pinRows?: boolean
5
- pinCols?: boolean
6
-
7
- size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'
8
- xs?: boolean
9
- sm?: boolean
10
- md?: boolean
11
- lg?: boolean
12
- xl?: boolean
13
- }>()
14
- </script>
15
-
16
- <template>
17
- <table
18
- class="table"
19
- :class="[
20
- zebra ? 'table-zebra' : '',
21
- pinRows ? 'table-pin-rows' : '',
22
- pinCols ? 'table-pin-cols' : '',
23
- xs || size === 'xs' ? 'table-xs' : '',
24
- sm || size === 'sm' ? 'table-sm' : '',
25
- md || size === 'md' || (!xs && !sm && !lg && !xl && !size) ? 'table-md' : '',
26
- lg || size === 'lg' ? 'table-lg' : '',
27
- xl || size === 'xl' ? 'table-xl' : '',
28
- ]"
29
- >
30
- <slot />
31
- </table>
32
- </template>
@@ -1,53 +0,0 @@
1
- <script setup lang="ts">
2
- import { provide } from 'vue'
3
-
4
- const { name } = defineProps<{
5
- is?: any
6
- name: string
7
-
8
- variant?: 'box' | 'border' | 'lift'
9
- box?: boolean
10
- border?: boolean
11
- lift?: boolean
12
-
13
- placement?: 'top' | 'bottom'
14
- top?: boolean
15
- bottom?: boolean
16
-
17
- size?: 'xl' | 'lg' | 'md' | 'sm' | 'xs'
18
- xl?: boolean
19
- lg?: boolean
20
- md?: boolean
21
- sm?: boolean
22
- xs?: boolean
23
- }>()
24
-
25
- const currentTab = defineModel<string>('currentTab')
26
-
27
- const tabManager = {
28
- name,
29
- currentTab,
30
- tabs: [],
31
- }
32
- provide('tabManager', tabManager)
33
- </script>
34
-
35
- <template>
36
- <div
37
- class="tabs"
38
- :class="{
39
- 'tabs-box': variant === 'box' || box,
40
- 'tabs-border': variant === 'border' || border,
41
- 'tabs-lift': variant === 'lift' || lift,
42
- 'tabs-top': placement === 'top' || top,
43
- 'tabs-bottom': placement === 'bottom' || bottom,
44
- 'tabs-xl': size === 'xl' || xl,
45
- 'tabs-lg': size === 'lg' || lg,
46
- 'tabs-md': size === 'md' || md,
47
- 'tabs-sm': size === 'sm' || sm,
48
- 'tabs-xs': size === 'xs' || xs,
49
- }"
50
- >
51
- <slot />
52
- </div>
53
- </template>
@@ -1,166 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed, resolveComponent } from 'vue'
3
-
4
- defineOptions({
5
- inheritAttrs: false,
6
- })
7
-
8
- const props = defineProps<{
9
- is?: string
10
- join?: boolean
11
-
12
- block?: boolean
13
- inline?: boolean
14
- inlineBlock?: boolean
15
- label?: boolean
16
-
17
- color?:
18
- | 'neutral'
19
- | 'primary'
20
- | 'secondary'
21
- | 'accent'
22
- | 'info'
23
- | 'success'
24
- | 'warning'
25
- | 'error'
26
- | 'primary-content'
27
- | 'secondary-content'
28
- | 'neutral-content'
29
- | 'accent-content'
30
- | 'info-content'
31
- | 'success-content'
32
- | 'warning-content'
33
- | 'error-content'
34
- neutral?: boolean
35
- primary?: boolean
36
- secondary?: boolean
37
- accent?: boolean
38
- info?: boolean
39
- success?: boolean
40
- warning?: boolean
41
- error?: boolean
42
- neutralContent?: boolean
43
- primaryContent?: boolean
44
- secondaryContent?: boolean
45
- accentContent?: boolean
46
- infoContent?: boolean
47
- successContent?: boolean
48
- warningContent?: boolean
49
- errorContent?: boolean
50
-
51
- size?: '9xl' | '8xl' | '7xl' | '6xl' | '5xl' | '4xl' | '3xl' | '2xl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs'
52
- xl?: boolean
53
- lg?: boolean
54
- md?: boolean
55
- sm?: boolean
56
- xs?: boolean
57
-
58
- align?: 'left' | 'center' | 'right' | 'justify'
59
- left?: boolean
60
- center?: boolean
61
- right?: boolean
62
- justify?: boolean
63
-
64
- case?: 'upper' | 'lower' | 'capitalize' | 'normal'
65
- uppercase?: boolean
66
- lowercase?: boolean
67
- capitalize?: boolean
68
- normalCase?: boolean
69
-
70
- font?: 'sans' | 'serif' | 'mono'
71
- sans?: boolean
72
- serif?: boolean
73
- mono?: boolean
74
-
75
- weight?: 'thin' | 'extralight' | 'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold' | 'black'
76
- thin?: boolean
77
- extralight?: boolean
78
- light?: boolean
79
- normal?: boolean
80
- medium?: boolean
81
- semibold?: boolean
82
- bold?: boolean
83
- extrabold?: boolean
84
- black?: boolean
85
- }>()
86
- const NuxtLink = resolveComponent('NuxtLink')
87
- const RouterLink = resolveComponent('RouterLink')
88
-
89
- const resolvedComponent = computed(() => {
90
- if (props.is === 'NuxtLink') return NuxtLink
91
- if (props.is === 'RouterLink') return RouterLink
92
- return props.is || 'span'
93
- })
94
- </script>
95
-
96
- <template>
97
- <component
98
- :is="resolvedComponent"
99
- v-bind="{ ...$attrs, ...(label ? { 'data-role': 'label' } : {}) }"
100
- :class="{
101
- 'join-item': join,
102
-
103
- block,
104
- inline,
105
- 'inline-block': inlineBlock,
106
- label,
107
-
108
- 'text-primary': primary || color === 'primary',
109
- 'text-primary-content': primaryContent || color === 'primary-content',
110
- 'text-secondary': secondary || color === 'secondary',
111
- 'text-secondary-content': secondaryContent || color === 'secondary-content',
112
- 'text-neutral': neutral || color === 'neutral',
113
- 'text-neutral-content': neutralContent || color === 'neutral-content',
114
- 'text-accent': accent || color === 'accent',
115
- 'text-accent-content': accentContent || color === 'accent-content',
116
- 'text-info': info || color === 'info',
117
- 'text-info-content': infoContent || color === 'info-content',
118
- 'text-success': success || color === 'success',
119
- 'text-success-content': successContent || color === 'success-content',
120
- 'text-warning': warning || color === 'warning',
121
- 'text-warning-content': warningContent || color === 'warning-content',
122
- 'text-error': error || color === 'error',
123
- 'text-error-content': errorContent || color === 'error-content',
124
-
125
- 'text-9xl': size === '9xl',
126
- 'text-8xl': size === '8xl',
127
- 'text-7xl': size === '7xl',
128
- 'text-6xl': size === '6xl',
129
- 'text-5xl': size === '5xl',
130
- 'text-4xl': size === '4xl',
131
- 'text-3xl': size === '3xl',
132
- 'text-2xl': size === '2xl',
133
- 'text-xl': xl || size === 'xl',
134
- 'text-lg': lg || size === 'lg',
135
- 'text-md': md || size === 'md',
136
- 'text-sm': sm || size === 'sm',
137
- 'text-xs': xs || size === 'xs',
138
-
139
- 'text-left': left || align === 'left',
140
- 'text-center': center || align === 'center',
141
- 'text-right': right || align === 'right',
142
- 'text-justify': justify || align === 'justify',
143
-
144
- uppercase: uppercase || props.case === 'upper',
145
- lowercase: lowercase || props.case === 'lower',
146
- capitalize: capitalize || props.case === 'capitalize',
147
- 'normal-case': normalCase || props.case === 'normal',
148
-
149
- 'font-sans': sans || font === 'sans',
150
- 'font-serif': serif || font === 'serif',
151
- 'font-mono': mono || font === 'mono',
152
-
153
- 'font-thin': thin || weight === 'thin',
154
- 'font-extralight': extralight || weight === 'extralight',
155
- 'font-light': light || weight === 'light',
156
- 'font-normal': normal || weight === 'normal',
157
- 'font-medium': medium || weight === 'medium',
158
- 'font-semibold': semibold || weight === 'semibold',
159
- 'font-bold': bold || weight === 'bold',
160
- 'font-extrabold': extrabold || weight === 'extrabold',
161
- 'font-black': black || weight === 'black',
162
- }"
163
- >
164
- <slot />
165
- </component>
166
- </template>
@@ -1,106 +0,0 @@
1
- <script setup lang="ts">
2
- import { nextTick, onMounted, ref, watch } from 'vue'
3
-
4
- const props = withDefaults(
5
- defineProps<{
6
- modelValue?: string
7
- placeholder?: string
8
- type?: 'text' | 'phone' | 'email' | 'search'
9
- rows?: number
10
- autoExpand?: boolean
11
-
12
- color?: string
13
- neutral?: boolean
14
- primary?: boolean
15
- secondary?: boolean
16
- accent?: boolean
17
- info?: boolean
18
- success?: boolean
19
- warning?: boolean
20
- error?: boolean
21
-
22
- ghost?: boolean
23
- disabled?: boolean
24
- validator?: boolean
25
-
26
- size?: 'xl' | 'lg' | 'md' | 'sm' | 'xs'
27
- xl?: boolean
28
- lg?: boolean
29
- md?: boolean
30
- sm?: boolean
31
- xs?: boolean
32
- }>(),
33
- {
34
- type: 'text',
35
- rows: 2,
36
- },
37
- )
38
- defineEmits(['update:modelValue'])
39
-
40
- const textareaRef = ref<HTMLTextAreaElement | null>(null)
41
-
42
- let minHeight = 0
43
-
44
- function adjustHeight() {
45
- if (!props.autoExpand || !textareaRef.value) return
46
- const el = textareaRef.value
47
-
48
- // Capture the initial rendered height as minimum (respects rows attribute)
49
- if (minHeight === 0) {
50
- minHeight = el.offsetHeight
51
- }
52
-
53
- el.style.height = 'auto'
54
- el.style.height = `${Math.max(el.scrollHeight, minHeight)}px`
55
- }
56
-
57
- watch(
58
- () => props.modelValue,
59
- () => {
60
- nextTick(adjustHeight)
61
- },
62
- )
63
-
64
- onMounted(() => {
65
- if (props.autoExpand) {
66
- nextTick(adjustHeight)
67
- }
68
- })
69
- </script>
70
-
71
- <template>
72
- <textarea
73
- ref="textareaRef"
74
- :value="modelValue"
75
- :type="type"
76
- :rows="rows"
77
- :placeholder="placeholder"
78
- :disabled="disabled"
79
- class="textarea"
80
- :class="{
81
- 'textarea-neutral': props.neutral || props.color === 'neutral',
82
- 'textarea-primary': props.primary || props.color === 'primary',
83
- 'textarea-secondary': props.secondary || props.color === 'secondary',
84
- 'textarea-accent': props.accent || props.color === 'accent',
85
- 'textarea-info': props.info || props.color === 'info',
86
- 'textarea-success': props.success || props.color === 'success',
87
- 'textarea-warning': props.warning || props.color === 'warning',
88
- 'textarea-error': props.error || props.color === 'error',
89
-
90
- 'textarea-ghost': props.ghost,
91
- validator: props.validator,
92
-
93
- 'textarea-xl': props.xl || props.size === 'xl',
94
- 'textarea-lg': props.lg || props.size === 'lg',
95
- 'textarea-md': props.md || props.size === 'md',
96
- 'textarea-sm': props.sm || props.size === 'sm',
97
- 'textarea-xs': props.xs || props.size === 'xs',
98
- }"
99
- @input="
100
- event => {
101
- $emit('update:modelValue', (event.target as HTMLTextAreaElement).value)
102
- adjustHeight()
103
- }
104
- "
105
- />
106
- </template>
@@ -1,24 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed } from 'vue'
3
-
4
- const props = defineProps<{
5
- is?: any
6
- center?: boolean
7
- duration?: number
8
- }>()
9
-
10
- const style = computed(() => {
11
- if (props.duration) {
12
- return { animationDuration: `${props.duration}ms` }
13
- }
14
- return undefined
15
- })
16
- </script>
17
-
18
- <template>
19
- <component :is="props.is || 'span'" class="text-rotate" :style="style">
20
- <span :class="{ 'justify-items-center': props.center }">
21
- <slot />
22
- </span>
23
- </component>
24
- </template>
@@ -1,45 +0,0 @@
1
- <script setup lang="ts">
2
- import type { DaisyThemeInput } from '@/composables/use-daisy-theme'
3
- import { useDaisyTheme } from '@/composables/use-daisy-theme'
4
- import { computed } from 'vue'
5
-
6
- const props = defineProps<{
7
- /**
8
- * Optional: List of themes to provide (string or DaisyThemeMeta)
9
- */
10
- themes?: DaisyThemeInput[]
11
- /**
12
- * Optional: Default theme name (string or 'default')
13
- */
14
- defaultTheme?: string
15
- /**
16
- * Optional: Storage function for persistence (e.g., useCookie, useLocalStorage, or ref)
17
- */
18
- storage?: <T>(key: string, initial: T) => import('vue').Ref<T>
19
- }>()
20
-
21
- const themeOptions =
22
- props.themes || props.defaultTheme ? { themes: props.themes || [], defaultTheme: props.defaultTheme } : undefined
23
-
24
- const { theme, effectiveTheme, themes, setTheme, cycleTheme, registerTheme, removeTheme } = useDaisyTheme(
25
- props.storage,
26
- themeOptions,
27
- )
28
-
29
- const availableThemes = computed(() => themes.value.map(t => (typeof t === 'string' ? t : t.theme)))
30
- </script>
31
-
32
- <template>
33
- <div class="theme-controller">
34
- <slot
35
- :theme="theme"
36
- :effective-theme="effectiveTheme"
37
- :themes="themes"
38
- :available-themes="availableThemes"
39
- :set-theme="setTheme"
40
- :cycle-theme="cycleTheme"
41
- :register-theme="registerTheme"
42
- :remove-theme="removeTheme"
43
- />
44
- </div>
45
- </template>