mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
chore: add eol
This commit is contained in:
@@ -3,4 +3,4 @@ export default defineAppConfig({
|
||||
primary: 'sky',
|
||||
gray: 'cool'
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@@ -22,4 +22,4 @@ const components = ['avatar', 'badge', 'button', 'chip', 'collapsible', 'kbd', '
|
||||
</div>
|
||||
</UContainer>
|
||||
</UProvider>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@@ -45,4 +45,4 @@
|
||||
<UAvatar text="+1" size="3xl" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@@ -27,4 +27,4 @@
|
||||
<UBadge label="Badge" size="lg" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@@ -88,4 +88,4 @@
|
||||
</UButton>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@@ -35,4 +35,4 @@ const items = [{
|
||||
icon: 'i-heroicons-bell',
|
||||
count: 0
|
||||
}]
|
||||
</script>
|
||||
</script>
|
||||
|
||||
@@ -10,4 +10,4 @@
|
||||
<div class="bg-primary-500 dark:bg-primary-400 rounded-md h-12 w-full" />
|
||||
</template>
|
||||
</UCollapsible>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<template>
|
||||
<div />
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
<UKbd value="⌘" />
|
||||
<UKbd value="K" />
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@@ -33,4 +33,4 @@ function send () {
|
||||
open.value = false
|
||||
}, 1000)
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
||||
@@ -7,4 +7,4 @@
|
||||
<USkeleton class="h-4 w-[200px]" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
<UTooltip text="Tooltip" :shortcuts="['⌘', 'K']" arrow>
|
||||
<UAvatar src="https://avatars.githubusercontent.com/u/739984?v=4" />
|
||||
</UTooltip>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@@ -37,4 +37,4 @@ defineSlots<BadgeSlots>()
|
||||
{{ label }}
|
||||
</slot>
|
||||
</Primitive>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@@ -109,4 +109,4 @@ const trailingIconClass = computed(() => ui.value.trailingIcon())
|
||||
<UIcon v-if="isTrailing && trailingIconName" :name="trailingIconName" :class="trailingIconClass" aria-hidden="true" />
|
||||
</slot>
|
||||
</ULink>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@@ -38,4 +38,4 @@ const ui = computed(() => tv({ extend: card, slots: props.ui })())
|
||||
<slot name="footer" />
|
||||
</div>
|
||||
</Primitive>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@@ -55,4 +55,4 @@ const ui = computed(() => chip({
|
||||
</slot>
|
||||
</span>
|
||||
</Primitive>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@@ -66,4 +66,4 @@ const ui = computed(() => tv({ extend: collapsible, slots: props.ui })())
|
||||
height: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@@ -24,4 +24,4 @@ const props = withDefaults(defineProps<ContainerProps>(), { as: 'div' })
|
||||
<Primitive :as="as" :class="container({ class: props.class })">
|
||||
<slot />
|
||||
</Primitive>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@@ -10,4 +10,4 @@ defineProps<IconProps>()
|
||||
|
||||
<template>
|
||||
<Icon :name="name" />
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@@ -35,4 +35,4 @@ defineSlots<KbdSlots>()
|
||||
{{ value }}
|
||||
</slot>
|
||||
</Primitive>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@@ -70,4 +70,4 @@ function resolveLinkClass (route: RouteLocation, currentRoute: RouteLocation, {
|
||||
<slot v-bind="{ isActive: active !== undefined ? active : (exact ? isExactActive : isActive) }" />
|
||||
</a>
|
||||
</NuxtLink>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@@ -151,4 +151,4 @@ const Component = computed(() => props.mode === 'hover' ? HoverCard : Popover)
|
||||
transform: translateX(0.25rem);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@@ -30,4 +30,4 @@ const toastProps = toRef(() => props.toast as ToastProviderProps)
|
||||
</ToastProvider>
|
||||
</TooltipProvider>
|
||||
</ConfigProvider>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@@ -24,4 +24,4 @@ const props = withDefaults(defineProps<SkeletonProps>(), { as: 'div' })
|
||||
<Primitive :as="as" :class="skeleton({ class: props.class })">
|
||||
<slot />
|
||||
</Primitive>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@@ -109,4 +109,4 @@ const ui = computed(() => tv({ extend: tooltip, slots: props.ui })())
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
2
src/runtime/types/app.config.d.ts
vendored
2
src/runtime/types/app.config.d.ts
vendored
@@ -2,4 +2,4 @@ declare module '#build/app.config' {
|
||||
import type { AppConfig } from '@nuxt/schema'
|
||||
const _default: AppConfig
|
||||
export default _default
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,4 +48,4 @@ export default {
|
||||
defaultVariants: {
|
||||
size: 'sm'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,4 +54,4 @@ export default (config: { colors: string[] }) => ({
|
||||
variant: 'solid',
|
||||
size: 'sm'
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@@ -166,4 +166,4 @@ export default (config: { colors: string[] }) => ({
|
||||
variant: 'solid',
|
||||
size: 'sm'
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@@ -5,4 +5,4 @@ export default {
|
||||
body: 'px-4 py-5 sm:p-6',
|
||||
footer: 'p-4 sm:px-6'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,4 +53,4 @@ export default (config: { colors: string[] }) => ({
|
||||
color: 'primary',
|
||||
position: 'top-right'
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@@ -3,4 +3,4 @@ export default {
|
||||
root: '',
|
||||
content: 'data-[state=open]:animate-[collapsible-down_200ms_ease-out] data-[state=closed]:animate-[collapsible-up_200ms_ease-out] overflow-hidden'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export default {
|
||||
base: 'max-w-7xl mx-auto px-4 sm:px-6 lg:px-8'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,4 +4,4 @@ export default {
|
||||
empty: 'i-heroicons-circle-stack-20-solid',
|
||||
loading: 'i-heroicons-arrow-path-20-solid',
|
||||
search: 'i-heroicons-magnifying-glass-20-solid'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,4 +9,4 @@ export { default as icons } from './icons'
|
||||
export { default as kbd } from './kbd'
|
||||
export { default as popover } from './popover'
|
||||
export { default as skeleton } from './skeleton'
|
||||
export { default as tooltip } from './tooltip'
|
||||
export { default as tooltip } from './tooltip'
|
||||
|
||||
@@ -10,4 +10,4 @@ export default {
|
||||
defaultVariants: {
|
||||
size: 'sm'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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]',
|
||||
arrow: 'fill-gray-200 dark:fill-gray-800'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export default {
|
||||
base: 'animate-pulse rounded-md bg-gray-50 dark:bg-gray-800'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,4 +6,4 @@ export default {
|
||||
// eslint-disable-next-line quotes
|
||||
shortcuts: `hidden lg:inline-flex items-center shrink-0 gap-0.5 before:content-['·'] before:mr-0.5`
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,4 +14,4 @@ describe('Card', () => {
|
||||
const html = await ComponentRender(nameOrHtml, options, Card)
|
||||
expect(html).toMatchSnapshot()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -9,4 +9,4 @@ describe('Collapsible', () => {
|
||||
const html = await ComponentRender(nameOrHtml, options, Collapsible)
|
||||
expect(html).toMatchSnapshot()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -12,4 +12,4 @@ describe('Container', () => {
|
||||
const html = await ComponentRender(nameOrHtml, options, Container)
|
||||
expect(html).toMatchSnapshot()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -14,4 +14,4 @@ describe('Link', () => {
|
||||
const html = await ComponentRender(nameOrHtml, options, Link)
|
||||
expect(html).toMatchSnapshot()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -9,4 +9,4 @@ describe('Popover', () => {
|
||||
const html = await ComponentRender(nameOrHtml, options, Popover)
|
||||
expect(html).toMatchSnapshot()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -11,4 +11,4 @@ describe('Skeleton', () => {
|
||||
const html = await ComponentRender(nameOrHtml, options, Skeleton)
|
||||
expect(html).toMatchSnapshot()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -9,4 +9,4 @@ describe.skip('Tooltip', () => {
|
||||
const html = await ComponentRender(nameOrHtml, options, Tooltip)
|
||||
expect(html).toMatchSnapshot()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user