-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ea90b8
commit 791024c
Showing
7 changed files
with
202 additions
and
45 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import * as React from "react" | ||
import { cva, type VariantProps } from "class-variance-authority" | ||
|
||
import { cn } from "@/lib/utils" | ||
|
||
const badgeVariants = cva( | ||
"inline-flex items-center rounded-md border border-zinc-200 px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-zinc-950 focus:ring-offset-2 dark:border-zinc-800 dark:focus:ring-zinc-300", | ||
{ | ||
variants: { | ||
variant: { | ||
default: | ||
"border-transparent bg-zinc-900 text-zinc-50 shadow hover:bg-zinc-900/80 dark:bg-zinc-50 dark:text-zinc-900 dark:hover:bg-zinc-50/80", | ||
secondary: | ||
"border-transparent bg-zinc-100 text-zinc-900 hover:bg-zinc-100/80 dark:bg-zinc-800 dark:text-zinc-50 dark:hover:bg-zinc-800/80", | ||
destructive: | ||
"border-transparent bg-red-500 text-zinc-50 shadow hover:bg-red-500/80 dark:bg-red-900 dark:text-zinc-50 dark:hover:bg-red-900/80", | ||
outline: "text-zinc-950 dark:text-zinc-50", | ||
}, | ||
}, | ||
defaultVariants: { | ||
variant: "default", | ||
}, | ||
} | ||
) | ||
|
||
export interface BadgeProps | ||
extends React.HTMLAttributes<HTMLDivElement>, | ||
VariantProps<typeof badgeVariants> {} | ||
|
||
function Badge({ className, variant, ...props }: BadgeProps) { | ||
return ( | ||
<div className={cn(badgeVariants({ variant }), className)} {...props} /> | ||
) | ||
} | ||
|
||
export { Badge, badgeVariants } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"root":["./src/main.tsx","./src/test.ts","./src/vite-env.d.ts","./src/api/prompts.ts","./src/components/AddLoraText.tsx","./src/components/AdvancedControls.tsx","./src/components/AspectRatioSlider.tsx","./src/components/ColorGradingSelector.tsx","./src/components/ControlNetSelector.tsx","./src/components/Gallery.tsx","./src/components/GalleryItem.tsx","./src/components/ImageZoom.tsx","./src/components/LoadingSpinner.tsx","./src/components/MasonryLayout.tsx","./src/components/MobileTabNav.tsx","./src/components/ModelSelector.tsx","./src/components/MoonToggle.tsx","./src/components/Navbar.tsx","./src/components/PromptCard.tsx","./src/components/PromptDetails.tsx","./src/components/PromptForm.tsx","./src/components/PromptImage.tsx","./src/components/TabNavigation.tsx","./src/components/WithLayout.tsx","./src/components/theme-provider.tsx","./src/components/ui/bidirectional-slider.tsx","./src/components/ui/button.tsx","./src/components/ui/card.tsx","./src/components/ui/dialog.tsx","./src/components/ui/dropdown-menu.tsx","./src/components/ui/input.tsx","./src/components/ui/label.tsx","./src/components/ui/select.tsx","./src/components/ui/sheet.tsx","./src/components/ui/skeleton.tsx","./src/components/ui/slider.tsx","./src/components/ui/switch.tsx","./src/components/ui/tabs.tsx","./src/components/ui/textarea.tsx","./src/components/ui/toast.tsx","./src/components/ui/toaster.tsx","./src/components/ui/tooltip.tsx","./src/hooks/use-toast.ts","./src/hooks/useCopy.ts","./src/hooks/useImageUpload.ts","./src/hooks/useInfiniteScroll.ts","./src/hooks/useLike.ts","./src/hooks/usePaste.ts","./src/hooks/usePromptNavigation.ts","./src/hooks/usePromptPolling.ts","./src/hooks/usePrompts.ts","./src/lib/utils.ts","./src/pages/Gallery.tsx","./src/pages/Prompt.tsx","./src/pages/UsersPrompts.tsx","./src/pages/index.ts","./src/services/apiClient.ts","./src/store/promptStore.ts","./src/types/index.ts"],"version":"5.6.3"} | ||
{"root":["./src/main.tsx","./src/test.ts","./src/vite-env.d.ts","./src/api/prompts.ts","./src/components/AddLoraText.tsx","./src/components/AdvancedControls.tsx","./src/components/AspectRatioSlider.tsx","./src/components/ColorGradingSelector.tsx","./src/components/ControlNetSelector.tsx","./src/components/Gallery.tsx","./src/components/GalleryItem.tsx","./src/components/ImageZoom.tsx","./src/components/LoadingSpinner.tsx","./src/components/MasonryLayout.tsx","./src/components/MobileTabNav.tsx","./src/components/ModelSelector.tsx","./src/components/MoonToggle.tsx","./src/components/Navbar.tsx","./src/components/PromptCard.tsx","./src/components/PromptDetails.tsx","./src/components/PromptForm.tsx","./src/components/PromptImage.tsx","./src/components/TabNavigation.tsx","./src/components/WithLayout.tsx","./src/components/theme-provider.tsx","./src/components/ui/badge.tsx","./src/components/ui/bidirectional-slider.tsx","./src/components/ui/button.tsx","./src/components/ui/card.tsx","./src/components/ui/dialog.tsx","./src/components/ui/dropdown-menu.tsx","./src/components/ui/input.tsx","./src/components/ui/label.tsx","./src/components/ui/select.tsx","./src/components/ui/sheet.tsx","./src/components/ui/skeleton.tsx","./src/components/ui/slider.tsx","./src/components/ui/switch.tsx","./src/components/ui/tabs.tsx","./src/components/ui/textarea.tsx","./src/components/ui/toast.tsx","./src/components/ui/toaster.tsx","./src/components/ui/tooltip.tsx","./src/hooks/use-toast.ts","./src/hooks/useCopy.ts","./src/hooks/useImageUpload.ts","./src/hooks/useInfiniteScroll.ts","./src/hooks/useLike.ts","./src/hooks/usePaste.ts","./src/hooks/usePromptNavigation.ts","./src/hooks/usePromptPolling.ts","./src/hooks/usePrompts.ts","./src/lib/utils.ts","./src/pages/Gallery.tsx","./src/pages/Prompt.tsx","./src/pages/UsersPrompts.tsx","./src/pages/index.ts","./src/services/apiClient.ts","./src/store/promptStore.ts","./src/types/index.ts"],"version":"5.6.3"} |