index.ts 961 B

1234567891011121314151617181920212223242526
  1. import type { VariantProps } from "class-variance-authority"
  2. import { cva } from "class-variance-authority"
  3. export { default as Empty } from "./Empty.vue"
  4. export { default as EmptyContent } from "./EmptyContent.vue"
  5. export { default as EmptyDescription } from "./EmptyDescription.vue"
  6. export { default as EmptyHeader } from "./EmptyHeader.vue"
  7. export { default as EmptyMedia } from "./EmptyMedia.vue"
  8. export { default as EmptyTitle } from "./EmptyTitle.vue"
  9. export const emptyMediaVariants = cva(
  10. "mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
  11. {
  12. variants: {
  13. variant: {
  14. default: "bg-transparent",
  15. icon: "bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6",
  16. },
  17. },
  18. defaultVariants: {
  19. variant: "default",
  20. },
  21. },
  22. )
  23. export type EmptyMediaVariants = VariantProps<typeof emptyMediaVariants>