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,89 +0,0 @@
1
- <script setup lang="ts">
2
- defineOptions({
3
- inheritAttrs: false,
4
- })
5
-
6
- const { is = 'div', ...props } = defineProps<{
7
- is?: string | object
8
- join?: boolean
9
-
10
- // https://tailwindcss.com/docs/flex
11
- flex?: boolean
12
- flex1?: boolean
13
- flexAuto?: boolean
14
- flexInitial?: boolean
15
- none?: boolean
16
-
17
- // justify
18
- justify?: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly'
19
- justifyStart?: boolean
20
- justifyEnd?: boolean
21
- justifyCenter?: boolean
22
- justifyBetween?: boolean
23
- justifyAround?: boolean
24
- justifyEvenly?: boolean
25
-
26
- // align
27
- items?: 'start' | 'end' | 'center' | 'baseline' | 'stretch'
28
- itemsStart?: boolean
29
- itemsEnd?: boolean
30
- itemsCenter?: boolean
31
- itemsBaseline?: boolean
32
- itemsStretch?: boolean
33
-
34
- grow?: boolean
35
-
36
- // https://tailwindcss.com/docs/flex-direction
37
- direction?: 'row' | 'col' | 'row-reverse' | 'col-reverse'
38
- row?: boolean
39
- col?: boolean
40
- reverse?: boolean
41
-
42
- // https://tailwindcss.com/docs/flex-wrap
43
- wrap?: boolean
44
- nowrap?: boolean
45
- wrapReverse?: boolean
46
- }>()
47
- </script>
48
-
49
- <template>
50
- <component
51
- :is="is"
52
- v-bind="$attrs"
53
- class="flex"
54
- :class="{
55
- 'join-item': props.join,
56
-
57
- 'flex-1': props.flex1,
58
- 'flex-auto': props.flexAuto,
59
- 'flex-initial': props.flexInitial,
60
- 'flex-none': props.none,
61
-
62
- 'justify-start': props.justifyStart,
63
- 'justify-end': props.justifyEnd,
64
- 'justify-center': props.justifyCenter,
65
- 'justify-between': props.justifyBetween,
66
- 'justify-around': props.justifyAround,
67
- 'justify-evenly': props.justifyEvenly,
68
-
69
- 'items-start': props.itemsStart,
70
- 'items-end': props.itemsEnd,
71
- 'items-center': props.itemsCenter,
72
- 'items-baseline': props.itemsBaseline,
73
- 'items-stretch': props.itemsStretch,
74
-
75
- 'flex-grow': props.grow,
76
-
77
- 'flex-row': props.direction === 'row' || props.row,
78
- 'flex-col': props.direction === 'col' || props.col,
79
- 'flex-row-reverse': props.direction === 'row-reverse' || (props.row && props.reverse),
80
- 'flex-col-reverse': props.direction === 'col-reverse' || (props.col && props.reverse),
81
-
82
- 'flex-wrap': props.wrap,
83
- 'flex-wrap-reverse': props.wrapReverse,
84
- 'flex-nowrap': props.nowrap,
85
- }"
86
- >
87
- <slot />
88
- </component>
89
- </template>
@@ -1,62 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed } from 'vue'
3
-
4
- const props = withDefaults(
5
- defineProps<{
6
- is?: any
7
- join?: boolean
8
-
9
- // https://tailwindcss.com/docs/flex
10
- flex?: boolean
11
- flex1?: boolean
12
- flexAuto?: boolean
13
- flexInitial?: boolean
14
- none?: boolean
15
-
16
- grow?: boolean
17
-
18
- // https://tailwindcss.com/docs/flex-direction
19
- direction?: 'row' | 'col' | 'row-reverse' | 'col-reverse'
20
- row?: boolean
21
- col?: boolean
22
- reverse?: boolean
23
-
24
- // https://tailwindcss.com/docs/flex-wrap
25
- wrap?: boolean
26
- nowrap?: boolean
27
- wrapReverse?: boolean
28
- }>(),
29
- {
30
- is: 'div',
31
- flex: false,
32
- },
33
- )
34
-
35
- const classes = computed(() => {
36
- return {
37
- 'join-item': props.join,
38
-
39
- 'flex-1': props.flex1,
40
- 'flex-auto': props.flexAuto,
41
- 'flex-initial': props.flexInitial,
42
- 'flex-none': props.none,
43
-
44
- 'flex-grow': props.grow,
45
-
46
- 'flex-row': props.direction === 'row' || props.row,
47
- 'flex-col': props.direction === 'col' || props.col,
48
- 'flex-row-reverse': props.direction === 'row-reverse' || (props.row && props.reverse),
49
- 'flex-col-reverse': props.direction === 'col-reverse' || (props.col && props.reverse),
50
-
51
- 'flex-wrap': props.wrap,
52
- 'flex-wrap-reverse': props.wrapReverse,
53
- 'flex-nowrap': props.nowrap,
54
- }
55
- })
56
- </script>
57
-
58
- <template>
59
- <component :is="is" class="flex" :class="classes">
60
- <slot />
61
- </component>
62
- </template>
@@ -1,31 +0,0 @@
1
- <script setup lang="ts">
2
- import Text from './Text.vue'
3
-
4
- const props = withDefaults(
5
- defineProps<{
6
- center?: boolean
7
- is?: string
8
- orientation?: 'horizontal' | 'vertical'
9
- horizontal?: boolean
10
- vertical?: boolean
11
- }>(),
12
- {
13
- center: false,
14
- is: 'footer',
15
- },
16
- )
17
- </script>
18
-
19
- <template>
20
- <Text
21
- :is="is"
22
- class="footer"
23
- :class="{
24
- 'divider-center': props.center,
25
- 'divider-horizontal': props.horizontal || props.orientation === 'horizontal',
26
- 'divider-vertical': props.vertical || props.orientation === 'vertical',
27
- }"
28
- >
29
- <slot />
30
- </Text>
31
- </template>
@@ -1,18 +0,0 @@
1
- <script setup lang="ts">
2
- import Text from './Text.vue'
3
-
4
- withDefaults(
5
- defineProps<{
6
- is?: string
7
- }>(),
8
- {
9
- is: 'span',
10
- },
11
- )
12
- </script>
13
-
14
- <template>
15
- <Text :is="is" class="footer-title">
16
- <slot />
17
- </Text>
18
- </template>
@@ -1,5 +0,0 @@
1
- <template>
2
- <Flex col class="form-control">
3
- <slot />
4
- </Flex>
5
- </template>
@@ -1,18 +0,0 @@
1
- <script setup lang="ts">
2
- import Text from './Text.vue'
3
-
4
- withDefaults(
5
- defineProps<{
6
- is?: string
7
- }>(),
8
- {
9
- is: 'div',
10
- },
11
- )
12
- </script>
13
-
14
- <template>
15
- <Text :is="is" class="hero">
16
- <slot />
17
- </Text>
18
- </template>
@@ -1,18 +0,0 @@
1
- <script setup lang="ts">
2
- import Text from './Text.vue'
3
-
4
- withDefaults(
5
- defineProps<{
6
- is?: string
7
- }>(),
8
- {
9
- is: 'div',
10
- },
11
- )
12
- </script>
13
-
14
- <template>
15
- <Text :is="is" class="hero-content">
16
- <slot />
17
- </Text>
18
- </template>
@@ -1,5 +0,0 @@
1
- <template>
2
- <div class="hero-overlay">
3
- <slot />
4
- </div>
5
- </template>
@@ -1,22 +0,0 @@
1
- <script setup lang="ts">
2
- const props = defineProps<{
3
- is?: any
4
- disabled?: boolean
5
- }>()
6
- </script>
7
-
8
- <template>
9
- <component :is="props.is || 'div'" :class="{ 'hover-3d': !props.disabled }">
10
- <slot />
11
- <template v-if="!props.disabled">
12
- <div></div>
13
- <div></div>
14
- <div></div>
15
- <div></div>
16
- <div></div>
17
- <div></div>
18
- <div></div>
19
- <div></div>
20
- </template>
21
- </component>
22
- </template>
@@ -1,11 +0,0 @@
1
- <script setup lang="ts">
2
- const props = defineProps<{
3
- is?: any
4
- }>()
5
- </script>
6
-
7
- <template>
8
- <component :is="props.is || 'figure'" class="hover-gallery">
9
- <slot />
10
- </component>
11
- </template>
@@ -1,20 +0,0 @@
1
- <script setup lang="ts">
2
- defineOptions({
3
- inheritAttrs: false,
4
- })
5
-
6
- withDefaults(
7
- defineProps<{
8
- is?: string
9
- }>(),
10
- {
11
- is: 'div',
12
- },
13
- )
14
- </script>
15
-
16
- <template>
17
- <component :is="is" v-bind="$attrs" class="indicator">
18
- <slot />
19
- </component>
20
- </template>
@@ -1,43 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed } from 'vue'
3
-
4
- defineOptions({
5
- inheritAttrs: false,
6
- })
7
-
8
- const props = withDefaults(
9
- defineProps<{
10
- is?: string
11
-
12
- align?: 'start' | 'center' | 'end'
13
- start?: boolean
14
- center?: boolean
15
- end?: boolean
16
-
17
- vAlign?: 'top' | 'middle' | 'bottom'
18
- top?: boolean
19
- middle?: boolean
20
- bottom?: boolean
21
- }>(),
22
- {
23
- is: 'div',
24
- },
25
- )
26
- const classes = computed(() => {
27
- return {
28
- 'indicator-start': props.start || props.align === 'start',
29
- 'indicator-center': props.center || props.align === 'center',
30
- 'indicator-end': props.end || props.align === 'end',
31
-
32
- 'indicator-top': props.top || props.vAlign === 'top',
33
- 'indicator-middle': props.middle || props.vAlign === 'middle',
34
- 'indicator-bottom': props.bottom || props.vAlign === 'bottom',
35
- }
36
- })
37
- </script>
38
-
39
- <template>
40
- <component :is="is" v-bind="$attrs" class="indicator-item" :class="classes">
41
- <slot />
42
- </component>
43
- </template>
@@ -1,116 +0,0 @@
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', null)
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
-
67
- const inputAttrs = computed(() => {
68
- if (labelCtx) {
69
- return {
70
- type: props.type,
71
- placeholder: props.placeholder,
72
- disabled: props.disabled,
73
- }
74
- }
75
- return {
76
- type: props.type,
77
- placeholder: props.placeholder,
78
- disabled: props.disabled,
79
- class: [
80
- 'input',
81
- { validator: props.validator },
82
- { 'input-primary': props.primary || props.color === 'primary' },
83
- { 'input-secondary': props.secondary || props.color === 'secondary' },
84
- { 'input-accent': props.accent || props.color === 'accent' },
85
- { 'input-info': props.info || props.color === 'info' },
86
- { 'input-success': props.success || props.color === 'success' },
87
- { 'input-warning': props.warning || props.color === 'warning' },
88
- { 'input-error': props.error || props.color === 'error' },
89
- { 'input-ghost': props.ghost },
90
- { 'input-xl': props.xl || props.size === 'xl' },
91
- { 'input-lg': props.lg || props.size === 'lg' },
92
- { 'input-md': props.md || props.size === 'md' },
93
- { 'input-sm': props.sm || props.size === 'sm' },
94
- { 'input-xs': props.xs || props.size === 'xs' },
95
- { 'join-item': props.join },
96
- ],
97
- }
98
- })
99
- const inputModel = computed({
100
- get: () => props.modelValue,
101
- set: setValue,
102
- })
103
- </script>
104
-
105
- <template>
106
- <div v-if="$slots.default">
107
- <slot
108
- :value="inputModel"
109
- :set-value="setValue"
110
- :input-attrs="inputAttrs"
111
- :props="props"
112
- :input-model="inputModel"
113
- />
114
- </div>
115
- <input v-else v-bind="inputAttrs" :value="inputModel" @input="handleInput" />
116
- </template>
@@ -1,5 +0,0 @@
1
- <template>
2
- <div class="join">
3
- <slot />
4
- </div>
5
- </template>
@@ -1,25 +0,0 @@
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>
@@ -1,100 +0,0 @@
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 +0,0 @@
1
- <template>
2
- <div class="list list-none">
3
- <slot />
4
- </div>
5
- </template>
@@ -1,5 +0,0 @@
1
- <template>
2
- <div class="list-col-grow">
3
- <slot />
4
- </div>
5
- </template>
@@ -1,5 +0,0 @@
1
- <template>
2
- <div class="list-col-wrap">
3
- <slot />
4
- </div>
5
- </template>
@@ -1,5 +0,0 @@
1
- <template>
2
- <div class="list-row">
3
- <slot />
4
- </div>
5
- </template>
@@ -1,42 +0,0 @@
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>