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,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-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>
@@ -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-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>
@@ -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-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>
@@ -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-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>
@@ -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-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>
@@ -1,49 +0,0 @@
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>
@@ -1,30 +0,0 @@
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>
@@ -1,92 +0,0 @@
1
- <script setup lang="ts">
2
- import type { Ref } from 'vue'
3
-
4
- import { onClickOutside, useElementHover } from '@vueuse/core'
5
- import { onMounted, provide, ref, useId } from 'vue'
6
-
7
- // Define the MenuExpandState interface
8
- export interface MenuExpandState {
9
- id: string
10
- isOpen: Ref<boolean>
11
- toggle: () => void
12
- open: () => void
13
- close: () => void
14
- }
15
-
16
- // Props with defaults
17
- const {
18
- hover = false,
19
- delayLeave = 300,
20
- closeOnClickOutside = false,
21
- } = defineProps<{
22
- hover?: boolean
23
- delayLeave?: number
24
- closeOnClickOutside?: boolean
25
- }>()
26
-
27
- // v-model for open state
28
- const isOpen = defineModel('open', { default: false, type: Boolean })
29
-
30
- // Generate IDs for accessibility and targeting
31
- const uniqueId = useId()
32
- const wrapperId = `expand-wrapper-${uniqueId}`
33
- const id = `expand-${uniqueId}`
34
-
35
- // Element reference for click outside detection
36
- const expandEl = ref()
37
-
38
- // Control functions
39
- function toggle() {
40
- setTimeout(() => {
41
- isOpen.value = !isOpen.value
42
- }, 50)
43
- }
44
-
45
- function open() {
46
- isOpen.value = true
47
- }
48
-
49
- function close() {
50
- isOpen.value = false
51
- }
52
-
53
- // Create and provide the menu expand state object
54
- const menuExpandState: MenuExpandState = {
55
- id,
56
- isOpen,
57
- toggle,
58
- open,
59
- close,
60
- }
61
-
62
- // Provide the state to child components
63
- provide('menuExpandState', menuExpandState)
64
-
65
- // Setup event handlers
66
- onMounted(() => {
67
- // Handle clicks outside the component
68
- onClickOutside(expandEl, () => {
69
- if (closeOnClickOutside) {
70
- setTimeout(() => {
71
- isOpen.value = false
72
- }, 500)
73
- }
74
- })
75
-
76
- // Setup hover behavior if enabled
77
- if (hover) {
78
- useElementHover(expandEl, {
79
- delayLeave,
80
- })
81
- }
82
- })
83
-
84
- // Empty click handler for internal use
85
- function handleClick(_ev: MouseEvent) {}
86
- </script>
87
-
88
- <template>
89
- <details :id="wrapperId" ref="expandEl" class="dropdown menu-expand" :open="isOpen" @click="handleClick">
90
- <slot v-bind="{ toggle, open, close }" />
91
- </details>
92
- </template>
@@ -1,20 +0,0 @@
1
- <script setup lang="ts">
2
- import type { MenuExpandState } from './MenuExpand.vue'
3
-
4
- import { inject } from 'vue'
5
-
6
- const menuExpandState = inject<MenuExpandState>('menuExpandState')
7
- const { id, isOpen, toggle } = menuExpandState || {}
8
- </script>
9
-
10
- <template>
11
- <summary
12
- :id="id"
13
- :aria-expanded="isOpen"
14
- aria-haspopup="menu"
15
- class="menu-expand-toggle"
16
- @click.prevent.stop="toggle"
17
- >
18
- <slot />
19
- </summary>
20
- </template>
@@ -1,39 +0,0 @@
1
- <script setup lang="ts">
2
- defineProps<{
3
- disabled?: boolean
4
- }>()
5
- </script>
6
-
7
- <template>
8
- <li class="menu-item" :class="{ 'menu-disabled': disabled }">
9
- <slot />
10
- </li>
11
- </template>
12
-
13
- <style lang="postcss">
14
- /*
15
- Allow adding .active class to the MenuItem element.
16
- DaisyUI only supports adding it to the `a` element.
17
- */
18
- .menu-item.menu-active > a,
19
- .menu-item.menu-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.menu-disabled > a,
24
- .menu-item.menu-disabled > span {
25
- background-color: var(--n);
26
- }
27
-
28
- /* Fix padding when putting a Dropdown inside of a menu */
29
- .menu-item > .floating-dropdown {
30
- padding: 0;
31
- }
32
- .menu-item > .floating-dropdown > .dropdown-button,
33
- .menu-item > .floating-dropdown > .dropdown-target {
34
- padding-left: 1rem;
35
- padding-right: 1rem;
36
- padding-top: 0.5rem;
37
- padding-bottom: 0.5rem;
38
- }
39
- </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,14 +0,0 @@
1
- <script lang="ts" setup>
2
- defineProps<{
3
- displayClasses?: string
4
- }>()
5
- </script>
6
-
7
- <template>
8
- <div class="mockup-phone">
9
- <div class="mockup-phone-camera" />
10
- <div class="mockup-phone-display" :class="displayClasses">
11
- <slot />
12
- </div>
13
- </div>
14
- </template>
@@ -1,5 +0,0 @@
1
- <template>
2
- <div class="mockup-window">
3
- <slot />
4
- </div>
5
- </template>
@@ -1,63 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed, ref, watch } from 'vue'
3
-
4
- const props = withDefaults(
5
- defineProps<{
6
- modelValue?: boolean
7
- closeOnClickOutside?: boolean
8
- placement?: 'top' | 'bottom' | 'start' | 'end'
9
- top?: boolean
10
- bottom?: boolean
11
- start?: boolean
12
- end?: boolean
13
- }>(),
14
- {
15
- closeOnClickOutside: true,
16
- },
17
- )
18
- const emit = defineEmits(['update:modelValue'])
19
-
20
- const is = 'div'
21
-
22
- // defineModel 'open'
23
- const _isOpen = ref(props.modelValue)
24
- watch(
25
- () => props.modelValue,
26
- val => {
27
- _isOpen.value = val
28
- },
29
- )
30
- const isOpen = computed({
31
- get: () => _isOpen.value,
32
- set: val => {
33
- _isOpen.value = val
34
- if (props.modelValue !== val) {
35
- emit('update:modelValue', val)
36
- }
37
- },
38
- })
39
-
40
- function handleClick() {
41
- if (props.closeOnClickOutside) {
42
- isOpen.value = false
43
- }
44
- }
45
- </script>
46
-
47
- <template>
48
- <input v-model="isOpen" type="checkbox" class="modal-toggle" />
49
- <Component
50
- :is="is"
51
- v-bind="{ ...$attrs, ...$props }"
52
- class="modal"
53
- :class="{
54
- 'modal-top': props.top,
55
- 'modal-bottom': props.bottom,
56
- 'modal-start': props.start,
57
- 'modal-end': props.end,
58
- }"
59
- @click.self="handleClick"
60
- >
61
- <slot />
62
- </Component>
63
- </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,12 +0,0 @@
1
- <script setup lang="ts">
2
- const { active = false, disabled = false } = defineProps<{
3
- active?: boolean
4
- disabled?: boolean
5
- }>()
6
- </script>
7
-
8
- <template>
9
- <button class="nav-button" :class="{ active, disabled }">
10
- <slot />
11
- </button>
12
- </template>
@@ -1,12 +0,0 @@
1
- <script setup lang="ts">
2
- const { is = 'div', glass = false } = defineProps<{
3
- is?: any
4
- glass?: boolean
5
- }>()
6
- </script>
7
-
8
- <template>
9
- <component :is="is" class="navbar" :class="{ glass }">
10
- <slot />
11
- </component>
12
- </template>
@@ -1,11 +0,0 @@
1
- <script setup lang="ts">
2
- const { is = 'div' } = defineProps<{
3
- is?: any
4
- }>()
5
- </script>
6
-
7
- <template>
8
- <component :is="is" class="navbar-center">
9
- <slot />
10
- </component>
11
- </template>
@@ -1,11 +0,0 @@
1
- <script setup lang="ts">
2
- const { is = 'div' } = defineProps<{
3
- is?: any
4
- }>()
5
- </script>
6
-
7
- <template>
8
- <component :is="is" class="navbar-end">
9
- <slot />
10
- </component>
11
- </template>
@@ -1,11 +0,0 @@
1
- <script setup lang="ts">
2
- const { is = 'div' } = defineProps<{
3
- is?: any
4
- }>()
5
- </script>
6
-
7
- <template>
8
- <component :is="is" class="navbar-start">
9
- <slot />
10
- </component>
11
- </template>