daisy-ui-kit 5.2.4 → 5.2.7

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 (57) hide show
  1. package/README.md +3 -1
  2. package/app/components/Avatar.vue +1 -1
  3. package/app/components/MenuItem.vue +10 -5
  4. package/app/components/Prose.vue +7 -7
  5. package/app/composables/use-toast.ts +2 -6
  6. package/package.json +52 -44
  7. package/app/components/content/CodeWrapper.vue +0 -8
  8. package/app/components/content/ColorBadge.vue +0 -24
  9. package/app/components/content/ComponentsTree.vue +0 -39
  10. package/app/components/content/DarkToggle.vue +0 -13
  11. package/app/components/content/DemoExampleResponsive.vue +0 -67
  12. package/app/components/content/IframeRenderer.ts +0 -57
  13. package/app/components/content/Indent.vue +0 -3
  14. package/app/components/content/LocalLinks.vue +0 -30
  15. package/app/components/content/Logo.vue +0 -8
  16. package/app/components/content/NotFound.vue +0 -38
  17. package/app/components/content/PageNext.vue +0 -25
  18. package/app/components/content/PagePrevious.vue +0 -25
  19. package/app/components/content/ProseA.vue +0 -19
  20. package/app/components/content/ProseAlert.vue +0 -11
  21. package/app/components/content/ProseBlockquote.vue +0 -11
  22. package/app/components/content/ProseCode.vue +0 -3
  23. package/app/components/content/ProseEm.vue +0 -5
  24. package/app/components/content/ProseH1.vue +0 -22
  25. package/app/components/content/ProseH2.vue +0 -22
  26. package/app/components/content/ProseH3.vue +0 -22
  27. package/app/components/content/ProseH4.vue +0 -22
  28. package/app/components/content/ProseH5.vue +0 -22
  29. package/app/components/content/ProseH6.vue +0 -22
  30. package/app/components/content/ProseHr.vue +0 -3
  31. package/app/components/content/ProseImg.vue +0 -40
  32. package/app/components/content/ProseLi.vue +0 -3
  33. package/app/components/content/ProseOl.vue +0 -5
  34. package/app/components/content/ProseP.vue +0 -3
  35. package/app/components/content/ProsePre.vue +0 -38
  36. package/app/components/content/ProsePre2.vue +0 -68
  37. package/app/components/content/ProseStrong.vue +0 -5
  38. package/app/components/content/ProseTable.vue +0 -7
  39. package/app/components/content/ProseTbody.vue +0 -5
  40. package/app/components/content/ProseTd.vue +0 -5
  41. package/app/components/content/ProseTh.vue +0 -5
  42. package/app/components/content/ProseThead.vue +0 -5
  43. package/app/components/content/ProseTr.vue +0 -5
  44. package/app/components/content/ProseUl.vue +0 -5
  45. package/app/components/content/Search.vue +0 -171
  46. package/app/components/content/SearchButton.vue +0 -14
  47. package/app/components/content/SearchModal.vue +0 -292
  48. package/app/components/content/Sidebar.vue +0 -87
  49. package/app/components/content/SidebarMenuSection.vue +0 -43
  50. package/app/components/content/SigninForm.vue +0 -34
  51. package/app/components/content/TableOfContents.vue +0 -304
  52. package/app/components/content/TocTree.vue +0 -66
  53. package/app/components/content/TypeBadge.vue +0 -18
  54. package/app/components/content/UserMenu.vue +0 -48
  55. package/app/composables/__tests__/use-calendar.test.ts +0 -239
  56. package/app/composables/useSearch.ts +0 -24
  57. package/app/utils/debug-shim.mjs +0 -23
package/README.md CHANGED
@@ -5,9 +5,11 @@ Vue/Nuxt components for DaisyUI 5.
5
5
  ## Install
6
6
 
7
7
  ```bash
8
- pnpm add daisy-ui-kit daisyui @vueuse/core
8
+ pnpm add daisy-ui-kit daisyui @vueuse/core @vueuse/integrations
9
9
  ```
10
10
 
11
+ Peer dependencies (not pulled in transitively): `vue`, `daisyui`, `@vueuse/core`, `@vueuse/integrations`. `nuxt` is an optional peer if you use the Nuxt module.
12
+
11
13
  ## Manual Imports
12
14
 
13
15
  Import components directly from the package:
@@ -119,7 +119,7 @@ function hexToRGBArray(color: any) {
119
119
  </div>
120
120
  </template>
121
121
 
122
- <style lang="postcss">
122
+ <style>
123
123
  .avatar-mask > * {
124
124
  aspect-ratio: 1/1;
125
125
  width: 100%;
@@ -10,19 +10,24 @@ defineProps<{
10
10
  </li>
11
11
  </template>
12
12
 
13
- <style lang="postcss">
13
+ <style>
14
14
  /*
15
- Allow adding .active class to the MenuItem element.
15
+ Allow adding .menu-active to the MenuItem element.
16
16
  DaisyUI only supports adding it to the `a` element.
17
17
  */
18
18
  .menu-item.menu-active > a,
19
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));
20
+ outline-style: none;
21
+ color: var(--menu-active-fg, var(--color-neutral-content));
22
+ background-color: var(--menu-active-bg, var(--color-neutral));
23
+ background-size: auto, calc(var(--noise) * 100%);
24
+ background-image: none, var(--fx-noise);
25
+ box-shadow: 0 2px calc(var(--depth) * 3px) -2px var(--menu-active-bg, var(--color-neutral));
22
26
  }
23
27
  .menu-item.menu-disabled > a,
24
28
  .menu-item.menu-disabled > span {
25
- background-color: var(--n);
29
+ pointer-events: none;
30
+ color: color-mix(in oklab, var(--color-base-content) 20%, transparent);
26
31
  }
27
32
 
28
33
  /* Fix padding when putting a Dropdown inside of a menu */
@@ -4,25 +4,25 @@
4
4
  </article>
5
5
  </template>
6
6
 
7
- <style lang="postcss">
7
+ <style>
8
8
  .prose.full-width {
9
9
  width: 100%;
10
10
  max-width: 100%;
11
11
  }
12
12
  .prose.daisy-prose code:not(pre code) {
13
- @apply bg-base-300;
13
+ background-color: var(--color-base-300);
14
14
  }
15
15
  .prose .link-primary {
16
- @apply text-primary;
16
+ color: var(--color-primary);
17
17
  }
18
18
  .prose .link-secondary {
19
- @apply text-secondary;
19
+ color: var(--color-secondary);
20
20
  }
21
21
  .prose .link-neutral {
22
- @apply text-neutral;
22
+ color: var(--color-neutral);
23
23
  }
24
24
  .prose .link-accent {
25
- @apply text-accent;
25
+ color: var(--color-accent);
26
26
  }
27
27
 
28
28
  .prose h1 a,
@@ -32,6 +32,6 @@
32
32
  .prose h5 a,
33
33
  .prose h6 a {
34
34
  text-decoration: none;
35
- @apply font-bold;
35
+ font-weight: 700;
36
36
  }
37
37
  </style>
@@ -122,12 +122,8 @@ export interface UseToastOptions {
122
122
  * // In UI: <Toast name="admin" />
123
123
  */
124
124
  function normalizeToast(toast: any): Toast {
125
- if (toast.originalDuration == null) {
126
- toast.originalDuration = toast.duration ?? 0
127
- }
128
- if (toast.countdown == null) {
129
- toast.countdown = toast.originalDuration
130
- }
125
+ toast.originalDuration ??= toast.duration ?? 0
126
+ toast.countdown ??= toast.originalDuration
131
127
  if (typeof toast.intervalId === 'undefined') {
132
128
  toast.intervalId = undefined
133
129
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "5.2.4",
7
+ "version": "5.2.7",
8
8
  "packageManager": "pnpm@10.10.0",
9
9
  "author": "feathers.dev",
10
10
  "exports": {
@@ -30,25 +30,25 @@
30
30
  "types": "./src/index.d.ts",
31
31
  "files": [
32
32
  "README.md",
33
- "app/components",
34
- "app/composables",
35
- "app/utils",
33
+ "app/components/*.vue",
34
+ "app/components/*.ts",
35
+ "app/composables/use-*.ts",
36
+ "app/utils/*.ts",
36
37
  "nuxt.d.ts",
37
38
  "nuxt.js",
38
- "vue.ts",
39
- "src"
39
+ "src",
40
+ "vue.ts"
40
41
  ],
41
42
  "scripts": {
42
43
  "import-d1-dumps": "./import-d1-dumps.sh",
43
- "prebuild": "cp CHANGELOG.md content/docs/changelog.md",
44
+ "prebuild": "cp CHANGELOG.md content/docs/changelog.md && nuxt prepare",
44
45
  "build": "NODE_OPTIONS='--max-old-space-size=7168' nuxt build",
45
- "predev": "cp CHANGELOG.md content/docs/changelog.md",
46
+ "predev": "cp CHANGELOG.md content/docs/changelog.md && nuxt prepare",
46
47
  "dev": "nuxt dev",
47
48
  "lint": "eslint",
48
49
  "lint:fix": "eslint --fix",
49
50
  "generate": "nuxt generate",
50
51
  "preview": "nuxt preview",
51
- "postinstall": "nuxt prepare",
52
52
  "publish": "git push origin --tags && git push origin",
53
53
  "release:pre": "node scripts/release.js prerelease",
54
54
  "release:patch": "node scripts/release.js patch",
@@ -57,45 +57,53 @@
57
57
  "deploy": "pnpm run build && npx wrangler deploy"
58
58
  },
59
59
  "peerDependencies": {
60
- "@vueuse/core": "^13.1.0",
61
- "daisyui": "^5"
60
+ "@vueuse/core": "^14.0.0",
61
+ "@vueuse/integrations": "^14.0.0",
62
+ "daisyui": "^5",
63
+ "nuxt": ">=3.0.0",
64
+ "vue": "^3.5.0"
65
+ },
66
+ "peerDependenciesMeta": {
67
+ "nuxt": {
68
+ "optional": true
69
+ }
62
70
  },
63
71
  "dependencies": {
64
- "@formkit/auto-animate": "^0.9.0",
65
- "@nuxt/content": "3.5.1",
66
- "@nuxt/eslint": "1.3.0",
67
- "@nuxt/fonts": "0.11.2",
68
- "@nuxt/icon": "1.12.0",
69
- "@nuxt/image": "1.10.0",
70
- "@nuxt/kit": "^4.2.1",
71
- "@nuxt/scripts": "0.11.6",
72
- "@nuxt/test-utils": "3.18.0",
73
- "@oddbird/css-anchor-positioning": "^0.7.0",
74
- "@unhead/vue": "^2.0.8",
75
- "@vueuse/core": "^13.1.0",
76
- "@vueuse/integrations": "^13.1.0",
77
- "focus-trap": "^7.6.4",
78
- "nuxt": "^4.2.1",
79
- "shiki": "^3.3.0",
80
- "typescript": "^5.8.3",
81
- "vue": "^3.5.13",
82
- "vue-router": "^4.5.1",
83
- "zod": "^3.24.4"
72
+ "@nuxt/kit": "^3.0.0 || ^4.0.0",
73
+ "focus-trap": "^8.0.0"
84
74
  },
85
75
  "devDependencies": {
86
- "@antfu/eslint-config": "^4.12.0",
87
- "@stylistic/eslint-plugin": "^4.2.0",
88
- "@tailwindcss/typography": "^0.5.16",
89
- "@tailwindcss/vite": "^4.1.5",
90
- "@vitejs/plugin-vue": "^6.0.3",
91
- "@vue/test-utils": "^2.4.6",
92
- "daisyui": "^5.5.5",
93
- "eslint": "^9.26.0",
76
+ "@antfu/eslint-config": "^9.0.0",
77
+ "@formkit/auto-animate": "^0.9.0",
78
+ "@nuxt/content": "3.14.0",
79
+ "@nuxt/eslint": "1.15.2",
80
+ "@nuxt/fonts": "0.14.0",
81
+ "@nuxt/icon": "2.2.2",
82
+ "@nuxt/image": "2.0.0",
83
+ "@nuxt/scripts": "1.1.1",
84
+ "@nuxt/test-utils": "4.0.3",
85
+ "@oddbird/css-anchor-positioning": "^0.9.0",
86
+ "@stylistic/eslint-plugin": "^5.10.0",
87
+ "@tailwindcss/typography": "^0.5.19",
88
+ "@tailwindcss/vite": "^4.3.0",
89
+ "@unhead/vue": "^3.1.0",
90
+ "@vitejs/plugin-vue": "^6.0.7",
91
+ "@vue/test-utils": "^2.4.10",
92
+ "@vueuse/core": "^14.3.0",
93
+ "@vueuse/integrations": "^14.3.0",
94
+ "daisyui": "^5.5.20",
95
+ "eslint": "^10.4.0",
94
96
  "eslint-config-prettier": "^10.1.8",
95
- "eslint-plugin-vue": "^10.5.1",
96
- "happy-dom": "^20.0.11",
97
- "tailwindcss": "^4.1.5",
98
- "vite": "^7.3.1",
99
- "vitest": "^4.0.16"
97
+ "eslint-plugin-vue": "^10.9.1",
98
+ "happy-dom": "^20.9.0",
99
+ "nuxt": "^4.4.6",
100
+ "shiki": "^4.1.0",
101
+ "tailwindcss": "^4.3.0",
102
+ "typescript": "^6.0.3",
103
+ "vite": "^7.3.3",
104
+ "vitest": "^4.1.7",
105
+ "vue": "^3.5.34",
106
+ "vue-router": "^5.0.7",
107
+ "zod": "^4.4.3"
100
108
  }
101
109
  }
@@ -1,8 +0,0 @@
1
- <template>
2
- <Collapse arrow toggle class="mb-8 rounded-b-xl rounded-t-none bg-base-200 p-0">
3
- <CollapseTitle class="text-lg font-medium"> Code Example </CollapseTitle>
4
- <CollapseContent class="overflow-hidden">
5
- <slot />
6
- </CollapseContent>
7
- </Collapse>
8
- </template>
@@ -1,24 +0,0 @@
1
- <script setup lang="ts">
2
- const props = defineProps<{
3
- color: string
4
- }>()
5
-
6
- const classes = computed(() => {
7
- return {
8
- 'bg-primary-content text-primary': props.color === 'primary-content',
9
- 'bg-secondary-content text-secondary': props.color === 'secondary-content',
10
- 'bg-neutral-content text-neutral': props.color === 'neutral-content',
11
- 'bg-accent-content text-accent': props.color === 'accent-content',
12
- 'bg-info-content text-info': props.color === 'info-content',
13
- 'bg-success-content text-success': props.color === 'success-content',
14
- 'bg-warning-content text-warning': props.color === 'warning-content',
15
- 'bg-error-content text-error': props.color === 'error-content',
16
- }
17
- })
18
- </script>
19
-
20
- <template>
21
- <Badge :color="color" class="whitespace-nowrap rounded-[0.375rem] px-1 font-mono" :class="classes">
22
- {{ color }}
23
- </Badge>
24
- </template>
@@ -1,39 +0,0 @@
1
- <script setup lang="ts">
2
- const { allLinks } = useNav()
3
- const { componentsByName } = useComponents()
4
-
5
- function getLinkToPage(pageName: string, componentName?: string) {
6
- const link = allLinks.find(link => link.label === pageName)
7
- if (!link) {
8
- return ''
9
- }
10
- // For the main component, add a -1 to the hash
11
- const hash = `#${componentName?.toLowerCase()}${componentName === pageName ? '-1' : ''}`
12
- return link.to + (componentName ? hash : '')
13
- }
14
- </script>
15
-
16
- <template>
17
- <Flex col class="gap-2 lg:gap-0">
18
- <div v-for="(components, key) in componentsByName" :key="key">
19
- <Flex
20
- class="items-start lg:items-center gap-2 border-2 border-transparent hover:border-primary p-3 rounded-xl -mx-3 cursor-pointer"
21
- @click.self="navigateTo(getLinkToPage(key as any))"
22
- >
23
- <NuxtLink :to="getLinkToPage(key as any)" class="w-28 flex-shrink-0 mr-2 no-underline hover:underline">
24
- <Text class="w-24 flex-shrink-0 mr-2"> {{ key }}: </Text>
25
- </NuxtLink>
26
-
27
- <Flex wrap col class="gap-1 lg:flex-row">
28
- <Tooltip v-for="component in components" :key="component.name" :tip="component.description">
29
- <NuxtLink :to="getLinkToPage(key as any, component.name)">
30
- <Button sm class="normal-case">
31
- {{ component.name }}
32
- </Button>
33
- </NuxtLink>
34
- </Tooltip>
35
- </Flex>
36
- </Flex>
37
- </div>
38
- </Flex>
39
- </template>
@@ -1,13 +0,0 @@
1
- <script setup lang="ts">
2
- import { useDark, useToggle } from '@vueuse/core'
3
-
4
- const isDark = useDark()
5
- const toggleDark = useToggle(isDark)
6
- </script>
7
-
8
- <template>
9
- <button class="!outline-none" @click="toggleDark()">
10
- <div v-if="isDark" class="i-carbon-moon" />
11
- <div v-else class="i-carbon-sun" />
12
- </button>
13
- </template>
@@ -1,67 +0,0 @@
1
- <script setup lang="ts">
2
- import type { Ref } from 'vue'
3
- import { useElementBounding, useMouse, useMousePressed } from '@vueuse/core'
4
- import { computed, ref, watch } from 'vue'
5
-
6
- const props = defineProps({
7
- iframeClasses: {
8
- type: String,
9
- default: '',
10
- },
11
- allowProse: Boolean,
12
- })
13
- // @ts-expect-error useTheme is provided by the app
14
- const { theme } = useTheme() as { theme: Ref<string> }
15
-
16
- const iframe = ref()
17
- const { pressed } = useMousePressed()
18
- const { x: mouseX } = useMouse()
19
- const { width } = useElementBounding(iframe)
20
-
21
- const referenceX = ref(0)
22
- const _width = ref('100%')
23
-
24
- watch(pressed, val => {
25
- if (val) referenceX.value = mouseX.value
26
- })
27
- watch(mouseX, val => {
28
- if (pressed.value) {
29
- const delta = val - referenceX.value
30
- referenceX.value = mouseX.value
31
- _width.value = `${width.value + delta * 1.2}px`
32
- }
33
- })
34
-
35
- const classes = computed(() => {
36
- return `${props.iframeClasses} not-prose ${pressed ? 'pointer-events-none' : ''}`
37
- })
38
- </script>
39
-
40
- <template>
41
- <div
42
- class="flex flex-row flex-wrap items-center mt-4 border-4 rounded-t-xl border-base-200 overflow-hidden"
43
- :class="classes"
44
- >
45
- <div class="flex flex-row w-full bg-black/50">
46
- <IframeRenderer
47
- ref="iframe"
48
- :style="{ width: _width }"
49
- class="w-full min-h-full"
50
- :classes="classes"
51
- :iframe-classes="iframeClasses"
52
- :theme="theme"
53
- >
54
- <slot />
55
- </IframeRenderer>
56
- <Tooltip
57
- draggable
58
- primary
59
- tip="Drag to Resize"
60
- left
61
- class="flex items-center justify-center bg-primary cursor-move"
62
- >
63
- <Icon name="radix-icons:drag-handle-vertical" class="text-primary-content" />
64
- </Tooltip>
65
- </div>
66
- </div>
67
- </template>
@@ -1,57 +0,0 @@
1
- import { createApp, h, onMounted, ref, watch } from 'vue'
2
-
3
- export default {
4
- name: 'RenderToIFrame',
5
- props: {
6
- classes: { type: String },
7
- iframeClasses: { type: String },
8
- theme: { type: String },
9
- },
10
- setup(props: any, { slots }: any) {
11
- const iframeRef = ref()
12
- const iframeBody = ref()
13
- const iframeHead = ref()
14
- const iframeStyle = ref()
15
-
16
- onMounted(() => {
17
- iframeBody.value = iframeRef.value.contentDocument.body
18
- iframeHead.value = iframeRef.value.contentDocument.head
19
- const el = document.createElement('div')
20
- iframeBody.value.appendChild(el)
21
- iframeStyle.value = document.createElement('style')
22
- iframeStyle.value.innerHTML = props.css
23
- iframeHead.value.appendChild(iframeStyle.value)
24
-
25
- createApp({
26
- name: 'IframeRender',
27
- setup() {
28
- const script = iframeRef.value.contentDocument.createElement('script')
29
- script.type = 'text/javascript'
30
- // create dynamic script
31
- script.text = `const oHead = document.getElementsByTagName('head')[0]
32
- const arrStyleSheets = parent.document.getElementsByTagName('style')
33
- for (let i = 0; i < arrStyleSheets.length; i++)
34
- oHead.appendChild(arrStyleSheets[i].cloneNode(true))
35
- `
36
-
37
- if (props.iframeClasses.length) iframeRef.value.classList.add(props.iframeClasses)
38
- iframeBody.value.classList.add('p-6')
39
- iframeHead.value.appendChild(script)
40
-
41
- watch(
42
- () => props.theme,
43
- theme => {
44
- iframeBody.value.setAttribute('data-theme', theme)
45
- },
46
- { immediate: true },
47
- )
48
- return () => slots.default()
49
- },
50
- }).mount(el)
51
- })
52
- return () =>
53
- h('iframe', {
54
- ref: iframeRef,
55
- })
56
- },
57
- }
@@ -1,3 +0,0 @@
1
- <template>
2
- <span>&nbsp;&nbsp;&nbsp;</span>
3
- </template>
@@ -1,30 +0,0 @@
1
- <script setup lang="ts">
2
- const props = defineProps<{
3
- values: string
4
- }>()
5
- const links = computed(() => {
6
- const values = props.values.split(',').map(name => name.trim())
7
- return values.map(value => {
8
- if (value.includes('#')) {
9
- const [name, url] = value.split('#')
10
- return {
11
- name,
12
- url: `#${url}`,
13
- }
14
- } else {
15
- return {
16
- name: value,
17
- url: `#${value.toLowerCase()}`,
18
- }
19
- }
20
- })
21
- })
22
- </script>
23
-
24
- <template>
25
- <ul>
26
- <li v-for="link in links" :key="link.name">
27
- <a :href="link.url" class="link link-primary">{{ link.name }}</a>
28
- </li>
29
- </ul>
30
- </template>
@@ -1,8 +0,0 @@
1
- <template>
2
- <div class="">
3
- <Text class="font-bold whitespace-nowrap">
4
- <span class="text-primary">Daisy</span>UI Kit
5
- <span>🌼</span>
6
- </Text>
7
- </div>
8
- </template>
@@ -1,38 +0,0 @@
1
- <script setup lang="ts">
2
- import { useFuse } from '@vueuse/integrations/useFuse'
3
-
4
- const _props = defineProps({
5
- error: Object,
6
- })
7
-
8
- const route = useRoute()
9
- const { allLinks } = useNav()
10
-
11
- const lastPathSegment = computed(() => {
12
- const segments = route.path.split('/')
13
- return segments[segments.length - 1] || ''
14
- })
15
-
16
- const { results } = useFuse(lastPathSegment, allLinks, {
17
- fuseOptions: { keys: ['label', 'tags'], includeScore: true, distance: 3 },
18
- resultLimit: 5,
19
- })
20
- </script>
21
-
22
- <template>
23
- <Hero class="not-prose h-[32rem]">
24
- <HeroContent center>
25
- <div class="max-w-md">
26
- <Text is="h1" size="5xl" bold class="mb-5"> 404 </Text>
27
- <Text is="p" class="mb-5"> We couldn't find that page. Did you mean one of these pages? </Text>
28
- <Menu class="border border-base-300 rounded-xl">
29
- <MenuItem v-for="result in results" :key="result.item.label">
30
- <NuxtLink :to="result.item.to">
31
- {{ result.item.label }}
32
- </NuxtLink>
33
- </MenuItem>
34
- </Menu>
35
- </div>
36
- </HeroContent>
37
- </Hero>
38
- </template>
@@ -1,25 +0,0 @@
1
- <script setup lang="ts">
2
- defineProps<{
3
- url: string
4
- title: string
5
- }>()
6
- </script>
7
-
8
- <template>
9
- <NuxtLink :to="url" class="btn md:btn-lg gap-2 normal-case lg:gap-3 leading-none btn-primary">
10
- <Flex col items-start>
11
- <Text class="text-primary-content/60 hidden text-xs font-normal md:block"> Next </Text>
12
- <Text>{{ title }}</Text>
13
- </Flex>
14
-
15
- <svg
16
- class="h-6 w-6 fill-current md:h-8 md:w-8"
17
- xmlns="http://www.w3.org/2000/svg"
18
- width="24"
19
- height="24"
20
- viewBox="0 0 24 24"
21
- >
22
- <path d="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z" />
23
- </svg>
24
- </NuxtLink>
25
- </template>
@@ -1,25 +0,0 @@
1
- <script setup lang="ts">
2
- defineProps<{
3
- url: string
4
- title: string
5
- }>()
6
- </script>
7
-
8
- <template>
9
- <NuxtLink :to="url" class="btn md:btn-lg gap-2 normal-case lg:gap-3 leading-none btn-primary">
10
- <svg
11
- class="h-6 w-6 fill-current md:h-8 md:w-8"
12
- xmlns="http://www.w3.org/2000/svg"
13
- width="24"
14
- height="24"
15
- viewBox="0 0 24 24"
16
- >
17
- <path d="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z" />
18
- </svg>
19
-
20
- <Flex col items-start>
21
- <Text class="text-primary-content/60 hidden text-xs font-normal md:block"> Prev </Text>
22
- <Text>{{ title }}</Text>
23
- </Flex>
24
- </NuxtLink>
25
- </template>
@@ -1,19 +0,0 @@
1
- <script setup lang="ts">
2
- defineProps({
3
- href: {
4
- type: String,
5
- default: '',
6
- },
7
- target: {
8
- type: String,
9
- default: undefined,
10
- required: false,
11
- },
12
- })
13
- </script>
14
-
15
- <template>
16
- <NuxtLink :href="href" :target="target" class="daisy-link link-primary">
17
- <slot />
18
- </NuxtLink>
19
- </template>
@@ -1,11 +0,0 @@
1
- <script setup lang="ts">
2
- defineProps<{
3
- type?: 'info' | 'success' | 'warning' | 'error'
4
- }>()
5
- </script>
6
-
7
- <template>
8
- <Alert class="not-prose" v-bind="$props">
9
- <slot />
10
- </Alert>
11
- </template>
@@ -1,11 +0,0 @@
1
- <template>
2
- <Alert>
3
- <slot />
4
- </Alert>
5
- </template>
6
-
7
- <style>
8
- .alert p {
9
- margin: 0;
10
- }
11
- </style>
@@ -1,3 +0,0 @@
1
- <template>
2
- <code class="rounded-md py-1 px-1 whitespace-nowrap badge badge-soft my-1"><slot /></code>
3
- </template>
@@ -1,5 +0,0 @@
1
- <template>
2
- <em>
3
- <slot />
4
- </em>
5
- </template>