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

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 (121) hide show
  1. package/README.md +62 -14
  2. package/package.json +41 -61
  3. package/components/Accordion.vue +0 -29
  4. package/components/Alert.vue +0 -25
  5. package/components/Artboard.vue +0 -33
  6. package/components/Avatar.vue +0 -70
  7. package/components/AvatarGroup.vue +0 -19
  8. package/components/Badge.vue +0 -50
  9. package/components/BottomNav.vue +0 -25
  10. package/components/Breadcrumbs.vue +0 -7
  11. package/components/Button.vue +0 -111
  12. package/components/Card.vue +0 -30
  13. package/components/CardActions.vue +0 -16
  14. package/components/CardBody.vue +0 -16
  15. package/components/CardTitle.vue +0 -16
  16. package/components/Carousel.vue +0 -25
  17. package/components/CarouselItem.vue +0 -5
  18. package/components/Chat.vue +0 -27
  19. package/components/ChatBubble.vue +0 -34
  20. package/components/ChatFooter.vue +0 -5
  21. package/components/ChatHeader.vue +0 -5
  22. package/components/ChatImage.vue +0 -5
  23. package/components/Checkbox.vue +0 -55
  24. package/components/Code.vue +0 -92
  25. package/components/Collapse.vue +0 -54
  26. package/components/CollapseContent.vue +0 -5
  27. package/components/CollapseTitle.vue +0 -5
  28. package/components/Countdown.vue +0 -15
  29. package/components/CountdownTimers.vue +0 -70
  30. package/components/Counter.vue +0 -14
  31. package/components/Crumb.vue +0 -5
  32. package/components/Divider.vue +0 -24
  33. package/components/Drawer.vue +0 -45
  34. package/components/DrawerContent.vue +0 -17
  35. package/components/DrawerSide.vue +0 -18
  36. package/components/Dropdown.vue +0 -95
  37. package/components/DropdownButton.vue +0 -16
  38. package/components/DropdownContent.vue +0 -56
  39. package/components/DropdownTarget.vue +0 -14
  40. package/components/FileInput.vue +0 -59
  41. package/components/Flex.vue +0 -59
  42. package/components/FlexItem.vue +0 -59
  43. package/components/Footer.vue +0 -24
  44. package/components/FooterTitle.vue +0 -15
  45. package/components/FormControl.vue +0 -5
  46. package/components/Hero.vue +0 -15
  47. package/components/HeroContent.vue +0 -15
  48. package/components/HeroOverlay.vue +0 -5
  49. package/components/Indicator.vue +0 -13
  50. package/components/IndicatorItem.vue +0 -36
  51. package/components/Join.vue +0 -5
  52. package/components/Kbd.vue +0 -25
  53. package/components/Label.vue +0 -15
  54. package/components/LabelText.vue +0 -15
  55. package/components/LabelTextAlt.vue +0 -15
  56. package/components/Link.vue +0 -40
  57. package/components/LoadingBall.vue +0 -43
  58. package/components/LoadingBars.vue +0 -43
  59. package/components/LoadingDots.vue +0 -43
  60. package/components/LoadingInfinity.vue +0 -43
  61. package/components/LoadingRing.vue +0 -43
  62. package/components/LoadingSpinner.vue +0 -43
  63. package/components/Mask.config.ts +0 -77
  64. package/components/Mask.vue +0 -14
  65. package/components/Menu.vue +0 -35
  66. package/components/MenuExpand.vue +0 -79
  67. package/components/MenuExpandToggle.vue +0 -13
  68. package/components/MenuItem.vue +0 -38
  69. package/components/MenuTitle.vue +0 -5
  70. package/components/MockupBrowser.vue +0 -5
  71. package/components/MockupBrowserToolbar.vue +0 -5
  72. package/components/MockupCode.vue +0 -4
  73. package/components/MockupPhone.vue +0 -8
  74. package/components/MockupWindow.vue +0 -5
  75. package/components/Modal.vue +0 -48
  76. package/components/ModalAction.vue +0 -5
  77. package/components/ModalBox.vue +0 -5
  78. package/components/NavButton.vue +0 -20
  79. package/components/Navbar.vue +0 -14
  80. package/components/NavbarCenter.vue +0 -13
  81. package/components/NavbarEnd.vue +0 -13
  82. package/components/NavbarStart.vue +0 -13
  83. package/components/Progress.vue +0 -42
  84. package/components/Prose.vue +0 -32
  85. package/components/RadialProgress.vue +0 -41
  86. package/components/Radio.vue +0 -76
  87. package/components/RadioGroup.vue +0 -46
  88. package/components/Range.vue +0 -60
  89. package/components/RangeMeasure.vue +0 -83
  90. package/components/RangeMeasureTick.vue +0 -74
  91. package/components/Rating.vue +0 -167
  92. package/components/Select.vue +0 -100
  93. package/components/Stack.vue +0 -13
  94. package/components/Stat.vue +0 -5
  95. package/components/StatActions.vue +0 -5
  96. package/components/StatDesc.vue +0 -5
  97. package/components/StatFigure.vue +0 -5
  98. package/components/StatTitle.vue +0 -5
  99. package/components/StatValue.vue +0 -5
  100. package/components/Stats.vue +0 -5
  101. package/components/Step.vue +0 -36
  102. package/components/Steps.vue +0 -21
  103. package/components/Swap.vue +0 -58
  104. package/components/Tab.vue +0 -48
  105. package/components/TabContent.vue +0 -29
  106. package/components/Tabs.vue +0 -77
  107. package/components/TabsManager.vue +0 -38
  108. package/components/Text.vue +0 -142
  109. package/components/TextArea.vue +0 -64
  110. package/components/TextInput.vue +0 -66
  111. package/components/Toast.vue +0 -31
  112. package/components/Toggle.vue +0 -59
  113. package/components/Tooltip.vue +0 -47
  114. package/index.ts +0 -108
  115. package/nuxt.js +0 -22
  116. package/utils/-utils.ts +0 -41
  117. package/utils/Button.config.ts +0 -26
  118. package/utils/drawer-utils.ts +0 -32
  119. package/utils/fixtures.ts +0 -62
  120. package/utils/random-string.ts +0 -19
  121. package/utils/types.ts +0 -7
@@ -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-infinity" :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-ring" :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-spinner" :class="classes" />
43
- </template>
@@ -1,77 +0,0 @@
1
- import { computed } from 'vue'
2
-
3
- export const maskProps = {
4
- shape: { type: String },
5
- squircle: Boolean,
6
- heart: Boolean,
7
- hexagon: Boolean,
8
- hexagon2: Boolean,
9
- decagon: Boolean,
10
- pentagon: Boolean,
11
- diamond: Boolean,
12
- square: Boolean,
13
- circle: Boolean,
14
- parallelogram: Boolean,
15
- parallelogram2: Boolean,
16
- parallelogram3: Boolean,
17
- parallelogram4: Boolean,
18
- star: Boolean,
19
- star2: Boolean,
20
- triangle: Boolean,
21
- triangle2: Boolean,
22
- triangle3: Boolean,
23
- triangle4: Boolean,
24
- }
25
-
26
- export function makeMaskClasses(props: any) {
27
- const classes = computed(() => {
28
- return {
29
- 'mask-squircle': props.squircle || props.shape === 'squircle',
30
- 'mask-heart': props.heart || props.shape === 'heart',
31
- 'mask-hexagon': props.hexagon || props.shape === 'hexagon',
32
- 'mask-hexagon-2': props.hexagon2 || props.shape === 'hexagon-2',
33
- 'mask-decagon': props.decagon || props.shape === 'decagon',
34
- 'mask-pentagon': props.pentagon || props.shape === 'pentagon',
35
- 'mask-diamond': props.diamond || props.shape === 'diamond',
36
- 'mask-square': props.square || props.shape === 'square',
37
- 'mask-circle': props.circle || props.shape === 'circle',
38
- 'mask-parallelogram':
39
- props.parallelogram || props.shape === 'parallelogram',
40
- 'mask-parallelogram-2':
41
- props.parallelogram2 || props.shape === 'parallelogram-2',
42
- 'mask-parallelogram-3':
43
- props.parallelogram3 || props.shape === 'parallelogram-3',
44
- 'mask-parallelogram-4':
45
- props.parallelogram4 || props.shape === 'parallelogram-4',
46
- 'mask-star': props.star || props.shape === 'star',
47
- 'mask-star-2': props.star2 || props.shape === 'star-2',
48
- 'mask-triangle': props.triangle || props.shape === 'triangle',
49
- 'mask-triangle-2': props.triangle2 || props.shape === 'triangle-2',
50
- 'mask-triangle-3': props.triangle3 || props.shape === 'triangle-3',
51
- 'mask-triangle-4': props.triangle4 || props.shape === 'triangle-4',
52
- }
53
- })
54
- return classes
55
- }
56
-
57
- export const shapes = [
58
- 'squircle',
59
- 'heart',
60
- 'hexagon',
61
- 'hexagon-2',
62
- 'decagon',
63
- 'pentagon',
64
- 'diamond',
65
- 'square',
66
- 'circle',
67
- 'parallelogram',
68
- 'parallelogram-2',
69
- 'parallelogram-3',
70
- 'parallelogram-4',
71
- 'star',
72
- 'star-2',
73
- 'triangle',
74
- 'triangle-2',
75
- 'triangle-3',
76
- 'triangle-4',
77
- ]
@@ -1,14 +0,0 @@
1
- <script setup lang="ts">
2
- import { makeMaskClasses, maskProps } from './Mask.config'
3
-
4
- const props = defineProps({
5
- ...maskProps,
6
- })
7
- const classes = makeMaskClasses(props)
8
- </script>
9
-
10
- <template>
11
- <div class="mask" :class="[classes]">
12
- <slot />
13
- </div>
14
- </template>
@@ -1,35 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed, provide } from 'vue'
3
-
4
- const props = defineProps<{
5
- align?: 'vertical' | 'horizontal'
6
- vertical?: boolean
7
- horizontal?: boolean
8
-
9
- size?: | 'lg' | 'md' | 'sm' | 'xs'
10
- lg?: boolean
11
- md?: boolean
12
- sm?: boolean
13
- xs?: boolean
14
- }>()
15
-
16
- provide('withinExpand', false)
17
-
18
- // `normal` and `compact` provide backwards compatibility with DaisyUI 2.x
19
- const classes = computed(() => {
20
- return {
21
- 'menu-vertical': props.vertical || props.align === 'vertical',
22
- 'menu-horizontal': props.horizontal || props.align === 'horizontal',
23
- 'menu-lg': props.lg || props.size === 'lg',
24
- 'menu-md': props.md || props.size === 'md',
25
- 'menu-sm': props.sm || props.size === 'sm',
26
- 'menu-xs': props.xs || props.size === 'xs',
27
- }
28
- })
29
- </script>
30
-
31
- <template>
32
- <ul class="menu" :class="classes">
33
- <slot />
34
- </ul>
35
- </template>
@@ -1,79 +0,0 @@
1
- <script setup lang="ts">
2
- import { onMounted, provide, ref } from 'vue'
3
- import { onClickOutside, syncRefs, useElementHover } from '@vueuse/core'
4
- import { randomString } from '../utils/random-string'
5
-
6
- const props = withDefaults(defineProps<{
7
- randomId?: string
8
- hover?: boolean
9
- delayEnter?: number
10
- delayLeave?: number
11
- closeOnClickOutside?: boolean
12
- }>(), {
13
- randomId: randomString(12),
14
- position: 'bottom',
15
- end: false,
16
- hover: false,
17
- delayEnter: 0,
18
- delayLeave: 300,
19
- closeOnClickOutside: false,
20
- })
21
- // "Expand" Visibility
22
- const isOpen = defineModel('open', { local: true, default: false, type: Boolean })
23
- provide('isExpandOpen', isOpen)
24
-
25
- // ids for accessibility
26
- const wrapperId = `expand-wrapper-${props.randomId}`
27
- const id = `expand-${props.randomId}`
28
- provide('expandId', id)
29
-
30
- // Visibility Utils
31
- function toggle() {
32
- setTimeout(() => {
33
- isOpen.value = !isOpen.value
34
- }, 50)
35
- }
36
- function open() {
37
- isOpen.value = true
38
- }
39
- function close() {
40
- isOpen.value = false
41
- }
42
- provide('toggleExpand', toggle)
43
- provide('openExpand', open)
44
- provide('closeExpand', close)
45
-
46
- const expandEl = ref()
47
-
48
- onMounted(() => {
49
- // Close when clicking outside the element
50
- onClickOutside(expandEl, () => {
51
- if (props.closeOnClickOutside) {
52
- setTimeout(() => {
53
- isOpen.value = false
54
- }, 500)
55
- }
56
- })
57
-
58
- if (props.hover) {
59
- // Sync with top-level isHovered ref. For SSR compatibility.
60
- const hover = useElementHover(expandEl, {
61
- delayLeave: props.delayLeave,
62
- delayEnter: props.delayEnter,
63
- })
64
- syncRefs(hover, isOpen)
65
- }
66
- })
67
-
68
- function handleClick(ev: MouseEvent) {
69
- ev.preventDefault()
70
- if (ev.target === expandEl.value.children[0])
71
- isOpen.value = !isOpen.value
72
- }
73
- </script>
74
-
75
- <template>
76
- <details :id="wrapperId" ref="expandEl" class="dropdown menu-expand" :open="isOpen" @click="handleClick">
77
- <slot v-bind="{ toggle, open, close }" />
78
- </details>
79
- </template>
@@ -1,13 +0,0 @@
1
- <script setup>
2
- import { inject } from 'vue'
3
-
4
- const id = inject('expandId')
5
- const isOpen = inject('isExpandOpen')
6
- const toggle = inject('toggleExpand')
7
- </script>
8
-
9
- <template>
10
- <summary :id="id" :aria-expanded="isOpen" aria-haspopup="menu" class="menu-expand-toggle" @click.prevent.stop="toggle">
11
- <slot />
12
- </summary>
13
- </template>
@@ -1,38 +0,0 @@
1
- <script setup lang="ts">
2
- defineProps<{
3
- active?: boolean
4
- disabled?: boolean
5
- }>()
6
- </script>
7
-
8
- <template>
9
- <li class="menu-item" :class="{ active, disabled }">
10
- <slot />
11
- </li>
12
- </template>
13
-
14
- <style lang="postcss">
15
- /*
16
- Allow adding .active class to the MenuItem element.
17
- DaisyUI only supports adding it to the `a` element.
18
- */
19
- .menu-item.active > a, .menu-item.active > span {
20
- background-color: hsl(var(--n) / var(--tw-bg-opacity));
21
- color: hsl(var(--nc) / var(--tw-text-opacity));
22
- }
23
- .menu-item.disabled > a, .menu-item.disabled > span {
24
- background-color: var(--n)
25
- }
26
-
27
- /* Fix padding when putting a Dropdown inside of a menu */
28
- .menu-item > .floating-dropdown {
29
- padding: 0;
30
- }
31
- .menu-item > .floating-dropdown > .dropdown-button,
32
- .menu-item > .floating-dropdown > .dropdown-target {
33
- padding-left: 1rem;
34
- padding-right: 1rem;
35
- padding-top: 0.5rem;
36
- padding-bottom: 0.5rem
37
- }
38
- </style>
@@ -1,5 +0,0 @@
1
- <template>
2
- <li class="menu-title">
3
- <slot />
4
- </li>
5
- </template>
@@ -1,5 +0,0 @@
1
- <template>
2
- <div class="mockup-browser">
3
- <slot />
4
- </div>
5
- </template>
@@ -1,5 +0,0 @@
1
- <template>
2
- <div class="mockup-browser-toolbar">
3
- <slot />
4
- </div>
5
- </template>
@@ -1,4 +0,0 @@
1
- <template>
2
- <!-- eslint-disable vue/singleline-html-element-content-newline -->
3
- <div class="mockup-code"><slot /></div>
4
- </template>
@@ -1,8 +0,0 @@
1
- <template>
2
- <div class="mockup-phone">
3
- <div class="camera" />
4
- <div class="display">
5
- <slot />
6
- </div>
7
- </div>
8
- </template>
@@ -1,5 +0,0 @@
1
- <template>
2
- <div class="mockup-window">
3
- <slot />
4
- </div>
5
- </template>
@@ -1,48 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed, ref, watch } from 'vue'
3
-
4
- const props = defineProps<{
5
- modelValue?: boolean
6
- closeOnClickOutside?: boolean
7
- top?: boolean
8
- bottom?: boolean
9
- }>()
10
- const emit = defineEmits(['update:modelValue'])
11
-
12
- const is = 'div'
13
-
14
- // defineModel 'open'
15
- const _isOpen = ref(props.modelValue)
16
- watch(() => props.modelValue, (val) => {
17
- _isOpen.value = val
18
- })
19
- const isOpen = computed({
20
- get: () => _isOpen.value,
21
- set: (val) => {
22
- _isOpen.value = val
23
- if (props.modelValue !== val)
24
- emit('update:modelValue', val)
25
- },
26
- })
27
-
28
- function handleClick() {
29
- if (props.closeOnClickOutside)
30
- isOpen.value = false
31
- }
32
- </script>
33
-
34
- <template>
35
- <input v-model="isOpen" type="checkbox" class="modal-toggle">
36
- <Component
37
- :is="is"
38
- v-bind="{ ...$attrs, ...$props }"
39
- class="modal"
40
- :class="{
41
- 'modal-top': props.top,
42
- 'modal-bottom': props.bottom,
43
- }"
44
- @click.self="handleClick"
45
- >
46
- <slot />
47
- </Component>
48
- </template>
@@ -1,5 +0,0 @@
1
- <template>
2
- <div class="modal-action">
3
- <slot />
4
- </div>
5
- </template>
@@ -1,5 +0,0 @@
1
- <template>
2
- <div class="modal-box">
3
- <slot />
4
- </div>
5
- </template>
@@ -1,20 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed } from 'vue'
3
-
4
- const props = defineProps<{
5
- active?: boolean
6
- disabled?: boolean
7
- }>()
8
- const classes = computed(() => {
9
- return {
10
- active: props.active,
11
- disabled: props.disabled,
12
- }
13
- })
14
- </script>
15
-
16
- <template>
17
- <button class="nav-button" :class="classes">
18
- <slot />
19
- </button>
20
- </template>
@@ -1,14 +0,0 @@
1
- <script setup lang="ts">
2
- withDefaults(defineProps<{
3
- is?: string | Object | Function
4
- glass?: boolean
5
- }>(), {
6
- is: 'div',
7
- })
8
- </script>
9
-
10
- <template>
11
- <component :is="is" class="navbar" :class="{ glass }">
12
- <slot />
13
- </component>
14
- </template>
@@ -1,13 +0,0 @@
1
- <script setup lang="ts">
2
- withDefaults(defineProps<{
3
- is?: string | Object | Function
4
- }>(), {
5
- is: 'div',
6
- })
7
- </script>
8
-
9
- <template>
10
- <component :is="is" class="navbar-center">
11
- <slot />
12
- </component>
13
- </template>
@@ -1,13 +0,0 @@
1
- <script setup lang="ts">
2
- withDefaults(defineProps<{
3
- is?: string | Object | Function
4
- }>(), {
5
- is: 'div',
6
- })
7
- </script>
8
-
9
- <template>
10
- <component :is="is" class="navbar-end">
11
- <slot />
12
- </component>
13
- </template>
@@ -1,13 +0,0 @@
1
- <script setup lang="ts">
2
- withDefaults(defineProps<{
3
- is?: string | Object | Function
4
- }>(), {
5
- is: 'div',
6
- })
7
- </script>
8
-
9
- <template>
10
- <component :is="is" class="navbar-start">
11
- <slot />
12
- </component>
13
- </template>
@@ -1,42 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed } from 'vue'
3
-
4
- const props = withDefaults(defineProps<{
5
- value: any
6
- max?: any
7
-
8
- color?: string
9
- primary?: boolean
10
- secondary?: boolean
11
- accent?: boolean
12
- success?: boolean
13
- info?: boolean
14
- warning?: boolean
15
- error?: boolean
16
- }>(), {
17
- value: 0,
18
- max: 100,
19
- })
20
-
21
- const classes = computed(() => {
22
- const { color, primary, secondary, accent, success, info, warning, error } = props
23
- return {
24
- 'progress-primary': primary || color === 'primary',
25
- 'progress-secondary': secondary || color === 'secondary',
26
- 'progress-accent': accent || color === 'accent',
27
- 'progress-success': success || color === 'success',
28
- 'progress-info': info || color === 'info',
29
- 'progress-warning': warning || color === 'warning',
30
- 'progress-error': error || color === 'error',
31
- }
32
- })
33
- </script>
34
-
35
- <template>
36
- <progress
37
- :value="value"
38
- :max="max"
39
- class="progress"
40
- :class="classes"
41
- />
42
- </template>
@@ -1,32 +0,0 @@
1
- <template>
2
- <article class="prose daisy-prose max-w-none">
3
- <slot />
4
- </article>
5
- </template>
6
-
7
- <style lang="postcss">
8
- .prose.full-width {
9
- width: 100%;
10
- max-width: 100%;
11
- }
12
- .prose.daisy-prose code:not(pre code) {
13
- @apply bg-base-300;
14
- }
15
- .prose .link-primary {
16
- @apply text-primary;
17
- }
18
- .prose .link-secondary {
19
- @apply text-secondary;
20
- }
21
- .prose .link-neutral {
22
- @apply text-neutral;
23
- }
24
- .prose .link-accent {
25
- @apply text-accent;
26
- }
27
-
28
- .prose h1 a, .prose h2 a, .prose h3 a, .prose h4 a, .prose h5 a, .prose h6 a {
29
- text-decoration: none;
30
- @apply font-bold
31
- }
32
- </style>