chore: add eol

This commit is contained in:
Benjamin Canac
2024-03-13 16:58:07 +01:00
parent 34d6e18638
commit 9a42fa415f
46 changed files with 46 additions and 46 deletions

View File

@@ -3,4 +3,4 @@ export default defineAppConfig({
primary: 'sky', primary: 'sky',
gray: 'cool' gray: 'cool'
} }
}) })

View File

@@ -22,4 +22,4 @@ const components = ['avatar', 'badge', 'button', 'chip', 'collapsible', 'kbd', '
</div> </div>
</UContainer> </UContainer>
</UProvider> </UProvider>
</template> </template>

View File

@@ -45,4 +45,4 @@
<UAvatar text="+1" size="3xl" /> <UAvatar text="+1" size="3xl" />
</div> </div>
</div> </div>
</template> </template>

View File

@@ -27,4 +27,4 @@
<UBadge label="Badge" size="lg" /> <UBadge label="Badge" size="lg" />
</div> </div>
</div> </div>
</template> </template>

View File

@@ -88,4 +88,4 @@
</UButton> </UButton>
</div> </div>
</div> </div>
</template> </template>

View File

@@ -35,4 +35,4 @@ const items = [{
icon: 'i-heroicons-bell', icon: 'i-heroicons-bell',
count: 0 count: 0
}] }]
</script> </script>

View File

@@ -10,4 +10,4 @@
<div class="bg-primary-500 dark:bg-primary-400 rounded-md h-12 w-full" /> <div class="bg-primary-500 dark:bg-primary-400 rounded-md h-12 w-full" />
</template> </template>
</UCollapsible> </UCollapsible>
</template> </template>

View File

@@ -1,3 +1,3 @@
<template> <template>
<div /> <div />
</template> </template>

View File

@@ -3,4 +3,4 @@
<UKbd value="⌘" /> <UKbd value="⌘" />
<UKbd value="K" /> <UKbd value="K" />
</div> </div>
</template> </template>

View File

@@ -33,4 +33,4 @@ function send () {
open.value = false open.value = false
}, 1000) }, 1000)
} }
</script> </script>

View File

@@ -7,4 +7,4 @@
<USkeleton class="h-4 w-[200px]" /> <USkeleton class="h-4 w-[200px]" />
</div> </div>
</div> </div>
</template> </template>

View File

@@ -2,4 +2,4 @@
<UTooltip text="Tooltip" :shortcuts="['⌘', 'K']" arrow> <UTooltip text="Tooltip" :shortcuts="['⌘', 'K']" arrow>
<UAvatar src="https://avatars.githubusercontent.com/u/739984?v=4" /> <UAvatar src="https://avatars.githubusercontent.com/u/739984?v=4" />
</UTooltip> </UTooltip>
</template> </template>

View File

@@ -37,4 +37,4 @@ defineSlots<BadgeSlots>()
{{ label }} {{ label }}
</slot> </slot>
</Primitive> </Primitive>
</template> </template>

View File

@@ -109,4 +109,4 @@ const trailingIconClass = computed(() => ui.value.trailingIcon())
<UIcon v-if="isTrailing && trailingIconName" :name="trailingIconName" :class="trailingIconClass" aria-hidden="true" /> <UIcon v-if="isTrailing && trailingIconName" :name="trailingIconName" :class="trailingIconClass" aria-hidden="true" />
</slot> </slot>
</ULink> </ULink>
</template> </template>

View File

@@ -38,4 +38,4 @@ const ui = computed(() => tv({ extend: card, slots: props.ui })())
<slot name="footer" /> <slot name="footer" />
</div> </div>
</Primitive> </Primitive>
</template> </template>

View File

@@ -55,4 +55,4 @@ const ui = computed(() => chip({
</slot> </slot>
</span> </span>
</Primitive> </Primitive>
</template> </template>

View File

@@ -66,4 +66,4 @@ const ui = computed(() => tv({ extend: collapsible, slots: props.ui })())
height: 0; height: 0;
} }
} }
</style> </style>

View File

@@ -24,4 +24,4 @@ const props = withDefaults(defineProps<ContainerProps>(), { as: 'div' })
<Primitive :as="as" :class="container({ class: props.class })"> <Primitive :as="as" :class="container({ class: props.class })">
<slot /> <slot />
</Primitive> </Primitive>
</template> </template>

View File

@@ -10,4 +10,4 @@ defineProps<IconProps>()
<template> <template>
<Icon :name="name" /> <Icon :name="name" />
</template> </template>

View File

@@ -35,4 +35,4 @@ defineSlots<KbdSlots>()
{{ value }} {{ value }}
</slot> </slot>
</Primitive> </Primitive>
</template> </template>

View File

@@ -70,4 +70,4 @@ function resolveLinkClass (route: RouteLocation, currentRoute: RouteLocation, {
<slot v-bind="{ isActive: active !== undefined ? active : (exact ? isExactActive : isActive) }" /> <slot v-bind="{ isActive: active !== undefined ? active : (exact ? isExactActive : isActive) }" />
</a> </a>
</NuxtLink> </NuxtLink>
</template> </template>

View File

@@ -151,4 +151,4 @@ const Component = computed(() => props.mode === 'hover' ? HoverCard : Popover)
transform: translateX(0.25rem); transform: translateX(0.25rem);
} }
} }
</style> </style>

View File

@@ -30,4 +30,4 @@ const toastProps = toRef(() => props.toast as ToastProviderProps)
</ToastProvider> </ToastProvider>
</TooltipProvider> </TooltipProvider>
</ConfigProvider> </ConfigProvider>
</template> </template>

View File

@@ -24,4 +24,4 @@ const props = withDefaults(defineProps<SkeletonProps>(), { as: 'div' })
<Primitive :as="as" :class="skeleton({ class: props.class })"> <Primitive :as="as" :class="skeleton({ class: props.class })">
<slot /> <slot />
</Primitive> </Primitive>
</template> </template>

View File

@@ -109,4 +109,4 @@ const ui = computed(() => tv({ extend: tooltip, slots: props.ui })())
transform: translateY(0); transform: translateY(0);
} }
} }
</style> </style>

View File

@@ -2,4 +2,4 @@ declare module '#build/app.config' {
import type { AppConfig } from '@nuxt/schema' import type { AppConfig } from '@nuxt/schema'
const _default: AppConfig const _default: AppConfig
export default _default export default _default
} }

View File

@@ -48,4 +48,4 @@ export default {
defaultVariants: { defaultVariants: {
size: 'sm' size: 'sm'
} }
} }

View File

@@ -54,4 +54,4 @@ export default (config: { colors: string[] }) => ({
variant: 'solid', variant: 'solid',
size: 'sm' size: 'sm'
} }
}) })

View File

@@ -166,4 +166,4 @@ export default (config: { colors: string[] }) => ({
variant: 'solid', variant: 'solid',
size: 'sm' size: 'sm'
} }
}) })

View File

@@ -5,4 +5,4 @@ export default {
body: 'px-4 py-5 sm:p-6', body: 'px-4 py-5 sm:p-6',
footer: 'p-4 sm:px-6' footer: 'p-4 sm:px-6'
} }
} }

View File

@@ -53,4 +53,4 @@ export default (config: { colors: string[] }) => ({
color: 'primary', color: 'primary',
position: 'top-right' position: 'top-right'
} }
}) })

View File

@@ -3,4 +3,4 @@ export default {
root: '', root: '',
content: 'data-[state=open]:animate-[collapsible-down_200ms_ease-out] data-[state=closed]:animate-[collapsible-up_200ms_ease-out] overflow-hidden' content: 'data-[state=open]:animate-[collapsible-down_200ms_ease-out] data-[state=closed]:animate-[collapsible-up_200ms_ease-out] overflow-hidden'
} }
} }

View File

@@ -1,3 +1,3 @@
export default { export default {
base: 'max-w-7xl mx-auto px-4 sm:px-6 lg:px-8' base: 'max-w-7xl mx-auto px-4 sm:px-6 lg:px-8'
} }

View File

@@ -4,4 +4,4 @@ export default {
empty: 'i-heroicons-circle-stack-20-solid', empty: 'i-heroicons-circle-stack-20-solid',
loading: 'i-heroicons-arrow-path-20-solid', loading: 'i-heroicons-arrow-path-20-solid',
search: 'i-heroicons-magnifying-glass-20-solid' search: 'i-heroicons-magnifying-glass-20-solid'
} }

View File

@@ -9,4 +9,4 @@ export { default as icons } from './icons'
export { default as kbd } from './kbd' export { default as kbd } from './kbd'
export { default as popover } from './popover' export { default as popover } from './popover'
export { default as skeleton } from './skeleton' export { default as skeleton } from './skeleton'
export { default as tooltip } from './tooltip' export { default as tooltip } from './tooltip'

View File

@@ -10,4 +10,4 @@ export default {
defaultVariants: { defaultVariants: {
size: 'sm' size: 'sm'
} }
} }

View File

@@ -3,4 +3,4 @@ export default {
content: 'bg-white dark:bg-gray-900 shadow-lg rounded-md ring ring-gray-200 dark:ring-gray-800 will-change-[transform,opacity] data-[state=open]:data-[side=top]:animate-[popover-down-open_200ms_ease-out] data-[state=closed]:data-[side=top]:animate-[popover-down-closed_200ms_ease-in] data-[state=open]:data-[side=right]:animate-[popover-left-open_200ms_ease-out] data-[state=closed]:data-[side=right]:animate-[popover-left-closed_200ms_ease-in] data-[state=open]:data-[side=left]:animate-[popover-right-open_200ms_ease-out] data-[state=closed]:data-[side=left]:animate-[popover-right-closed_200ms_ease-in] data-[state=open]:data-[side=bottom]:animate-[popover-up-open_200ms_ease-out] data-[state=closed]:data-[side=bottom]:animate-[popover-up-closed_200ms_ease-in]', content: 'bg-white dark:bg-gray-900 shadow-lg rounded-md ring ring-gray-200 dark:ring-gray-800 will-change-[transform,opacity] data-[state=open]:data-[side=top]:animate-[popover-down-open_200ms_ease-out] data-[state=closed]:data-[side=top]:animate-[popover-down-closed_200ms_ease-in] data-[state=open]:data-[side=right]:animate-[popover-left-open_200ms_ease-out] data-[state=closed]:data-[side=right]:animate-[popover-left-closed_200ms_ease-in] data-[state=open]:data-[side=left]:animate-[popover-right-open_200ms_ease-out] data-[state=closed]:data-[side=left]:animate-[popover-right-closed_200ms_ease-in] data-[state=open]:data-[side=bottom]:animate-[popover-up-open_200ms_ease-out] data-[state=closed]:data-[side=bottom]:animate-[popover-up-closed_200ms_ease-in]',
arrow: 'fill-gray-200 dark:fill-gray-800' arrow: 'fill-gray-200 dark:fill-gray-800'
} }
} }

View File

@@ -1,3 +1,3 @@
export default { export default {
base: 'animate-pulse rounded-md bg-gray-50 dark:bg-gray-800' base: 'animate-pulse rounded-md bg-gray-50 dark:bg-gray-800'
} }

View File

@@ -6,4 +6,4 @@ export default {
// eslint-disable-next-line quotes // eslint-disable-next-line quotes
shortcuts: `hidden lg:inline-flex items-center shrink-0 gap-0.5 before:content-['·'] before:mr-0.5` shortcuts: `hidden lg:inline-flex items-center shrink-0 gap-0.5 before:content-['·'] before:mr-0.5`
} }
} }

View File

@@ -14,4 +14,4 @@ describe('Card', () => {
const html = await ComponentRender(nameOrHtml, options, Card) const html = await ComponentRender(nameOrHtml, options, Card)
expect(html).toMatchSnapshot() expect(html).toMatchSnapshot()
}) })
}) })

View File

@@ -9,4 +9,4 @@ describe('Collapsible', () => {
const html = await ComponentRender(nameOrHtml, options, Collapsible) const html = await ComponentRender(nameOrHtml, options, Collapsible)
expect(html).toMatchSnapshot() expect(html).toMatchSnapshot()
}) })
}) })

View File

@@ -12,4 +12,4 @@ describe('Container', () => {
const html = await ComponentRender(nameOrHtml, options, Container) const html = await ComponentRender(nameOrHtml, options, Container)
expect(html).toMatchSnapshot() expect(html).toMatchSnapshot()
}) })
}) })

View File

@@ -14,4 +14,4 @@ describe('Link', () => {
const html = await ComponentRender(nameOrHtml, options, Link) const html = await ComponentRender(nameOrHtml, options, Link)
expect(html).toMatchSnapshot() expect(html).toMatchSnapshot()
}) })
}) })

View File

@@ -9,4 +9,4 @@ describe('Popover', () => {
const html = await ComponentRender(nameOrHtml, options, Popover) const html = await ComponentRender(nameOrHtml, options, Popover)
expect(html).toMatchSnapshot() expect(html).toMatchSnapshot()
}) })
}) })

View File

@@ -11,4 +11,4 @@ describe('Skeleton', () => {
const html = await ComponentRender(nameOrHtml, options, Skeleton) const html = await ComponentRender(nameOrHtml, options, Skeleton)
expect(html).toMatchSnapshot() expect(html).toMatchSnapshot()
}) })
}) })

View File

@@ -9,4 +9,4 @@ describe.skip('Tooltip', () => {
const html = await ComponentRender(nameOrHtml, options, Tooltip) const html = await ComponentRender(nameOrHtml, options, Tooltip)
expect(html).toMatchSnapshot() expect(html).toMatchSnapshot()
}) })
}) })