diff --git a/apps/www/app/(home)/page.tsx b/apps/www/app/(home)/page.tsx
index 703042d..2e670b3 100644
--- a/apps/www/app/(home)/page.tsx
+++ b/apps/www/app/(home)/page.tsx
@@ -27,7 +27,7 @@ const CodeBlockServer = dynamic(
Loading...
),
- }
+ },
);
export default function HomePage() {
@@ -391,7 +391,7 @@ export default function App() {
className={cn(
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
"bg-primary text-primary-foreground shadow hover:bg-primary/85 hover:shadow-md",
- "h-9 px-4 py-2"
+ "h-9 px-4 py-2",
)}
href={"/docs"}
>
@@ -401,7 +401,7 @@ export default function App() {
className={cn(
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
"border-input border-[1.5px] bg-primary-foreground hover:bg-[#f3f3f3] dark:hover:bg-[#202020]",
- "h-9 px-4 py-2"
+ "h-9 px-4 py-2",
)}
href={"https://github.com/ruru-m07/ruru-ui"}
target="_blank"
@@ -434,7 +434,7 @@ const StepCounter = ({
diff --git a/apps/www/components/header/index.tsx b/apps/www/components/header/index.tsx
index 344eb14..53be5fc 100644
--- a/apps/www/components/header/index.tsx
+++ b/apps/www/components/header/index.tsx
@@ -31,7 +31,7 @@ export default function Header() {
-
+ {/*
@@ -43,7 +43,7 @@ export default function Header() {
Import a theme from a JSON file
-
+ */}
diff --git a/apps/www/public/registry/components/select.json b/apps/www/public/registry/components/select.json
index 0c52f42..3b902cb 100644
--- a/apps/www/public/registry/components/select.json
+++ b/apps/www/public/registry/components/select.json
@@ -4,7 +4,7 @@
"files": [
{
"name": "select.tsx",
- "content": "\"use client\";\n\nimport * as React from \"react\";\nimport {\n CaretSortIcon,\n CheckIcon,\n ChevronDownIcon,\n ChevronUpIcon,\n} from \"@radix-ui/react-icons\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { cn } from \"@/utils/cn\";\nimport { motion } from \"framer-motion\";\nimport { useRuru } from \"@/provider\";\n\nconst Select = SelectPrimitive.Root;\nconst SelectGroup = SelectPrimitive.Group;\nconst SelectValue = SelectPrimitive.Value;\n\nexport const selectAnimationVariants = {\n zoom: {\n initial: { opacity: 0, scale: 0.9 },\n animate: { opacity: 1, scale: 1 },\n exit: { opacity: 0, scale: 0.9 },\n transition: { type: \"spring\", stiffness: 600, damping: 25 },\n },\n scaleBounce: {\n initial: { opacity: 0, scale: 0.5 },\n animate: { opacity: 1, scale: [1.2, 0.9, 1] },\n exit: { opacity: 0, scale: 0.5 },\n transition: { type: \"spring\", stiffness: 600, damping: 20 },\n },\n fade: {\n initial: { opacity: 0 },\n animate: { opacity: 1 },\n exit: { opacity: 0 },\n transition: { duration: 0.3 },\n },\n slideUp: {\n initial: { opacity: 0, y: 20 },\n animate: { opacity: 1, y: 0 },\n exit: { opacity: 0, y: 20 },\n transition: { type: \"spring\", stiffness: 500, damping: 20 },\n },\n slideDown: {\n initial: { opacity: 0, y: -20 },\n animate: { opacity: 1, y: 0 },\n exit: { opacity: 0, y: -20 },\n transition: { type: \"spring\", stiffness: 500, damping: 20 },\n },\n slideRight: {\n initial: { opacity: 0, x: -30 },\n animate: { opacity: 1, x: 0 },\n exit: { opacity: 0, x: -30 },\n transition: { type: \"spring\", stiffness: 400, damping: 20 },\n },\n slideLeft: {\n initial: { opacity: 0, x: 30 },\n animate: { opacity: 1, x: 0 },\n exit: { opacity: 0, x: 30 },\n transition: { type: \"spring\", stiffness: 400, damping: 20 },\n },\n flip: {\n initial: { opacity: 0, rotateY: 90 },\n animate: { opacity: 1, rotateY: 0 },\n exit: { opacity: 0, rotateY: 90 },\n transition: { type: \"spring\", stiffness: 500, damping: 30 },\n },\n rotate: {\n initial: { opacity: 0, rotate: -180 },\n animate: { opacity: 1, rotate: 0 },\n exit: { opacity: 0, rotate: -180 },\n transition: { type: \"spring\", stiffness: 500, damping: 25 },\n },\n};\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef & {\n enableAnimation?: boolean;\n }\n>(({ className, children, enableAnimation = false, ...props }, ref) => {\n const { animation } = useRuru();\n return animation && enableAnimation ? (\n \n span]:line-clamp-1\",\n className,\n )}\n {...props}\n >\n {children}\n \n \n \n \n \n ) : (\n span]:line-clamp-1\",\n className,\n )}\n {...props}\n >\n {children}\n \n \n \n \n );\n});\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSelectScrollDownButton.displayName =\n SelectPrimitive.ScrollDownButton.displayName;\n\n\nconst AnimatedSelectContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef & {\n selectedVariant: keyof typeof selectAnimationVariants;\n }\n>(\n (\n { className, children, position = \"popper\", selectedVariant, ...props },\n ref,\n ) => (\n \n \n \n \n \n {children}\n \n \n \n \n \n ),\n);\nAnimatedSelectContent.displayName = SelectPrimitive.Content.displayName;\n\n\nconst StaticSelectContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n \n \n \n \n {children}\n \n \n \n \n));\nStaticSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef & {\n variants?: keyof typeof selectAnimationVariants;\n }\n>((props, ref) => {\n const { animation } = useRuru();\n const selectedVariant = props.variants || \"zoom\";\n\n return animation ? (\n \n ) : (\n \n );\n});\n\nSelectContent.displayName = \"SelectContent\";\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n \n \n \n \n \n \n {children}\n \n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n};\n"
+ "content": "\"use client\";\n\nimport * as React from \"react\";\nimport {\n CaretSortIcon,\n CheckIcon,\n ChevronDownIcon,\n ChevronUpIcon,\n} from \"@radix-ui/react-icons\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { cn } from \"@/utils/cn\";\nimport { motion } from \"framer-motion\";\nimport { useRuru } from \"@/provider\";\n\nconst Select = SelectPrimitive.Root;\nconst SelectGroup = SelectPrimitive.Group;\nconst SelectValue = SelectPrimitive.Value;\n\nexport const selectAnimationVariants = {\n zoom: {\n initial: { opacity: 0, scale: 0.9 },\n animate: { opacity: 1, scale: 1 },\n exit: { opacity: 0, scale: 0.9 },\n transition: { type: \"spring\", stiffness: 600, damping: 25 },\n },\n scaleBounce: {\n initial: { opacity: 0, scale: 0.5 },\n animate: { opacity: 1, scale: [1.2, 0.9, 1] },\n exit: { opacity: 0, scale: 0.5 },\n transition: { type: \"spring\", stiffness: 600, damping: 20 },\n },\n fade: {\n initial: { opacity: 0 },\n animate: { opacity: 1 },\n exit: { opacity: 0 },\n transition: { duration: 0.3 },\n },\n slideUp: {\n initial: { opacity: 0, y: 20 },\n animate: { opacity: 1, y: 0 },\n exit: { opacity: 0, y: 20 },\n transition: { type: \"spring\", stiffness: 500, damping: 20 },\n },\n slideDown: {\n initial: { opacity: 0, y: -20 },\n animate: { opacity: 1, y: 0 },\n exit: { opacity: 0, y: -20 },\n transition: { type: \"spring\", stiffness: 500, damping: 20 },\n },\n slideRight: {\n initial: { opacity: 0, x: -30 },\n animate: { opacity: 1, x: 0 },\n exit: { opacity: 0, x: -30 },\n transition: { type: \"spring\", stiffness: 400, damping: 20 },\n },\n slideLeft: {\n initial: { opacity: 0, x: 30 },\n animate: { opacity: 1, x: 0 },\n exit: { opacity: 0, x: 30 },\n transition: { type: \"spring\", stiffness: 400, damping: 20 },\n },\n flip: {\n initial: { opacity: 0, rotateY: 90 },\n animate: { opacity: 1, rotateY: 0 },\n exit: { opacity: 0, rotateY: 90 },\n transition: { type: \"spring\", stiffness: 500, damping: 30 },\n },\n rotate: {\n initial: { opacity: 0, rotate: -180 },\n animate: { opacity: 1, rotate: 0 },\n exit: { opacity: 0, rotate: -180 },\n transition: { type: \"spring\", stiffness: 500, damping: 25 },\n },\n};\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef & {\n enableAnimation?: boolean;\n }\n>(({ className, children, enableAnimation = false, ...props }, ref) => {\n const { animation } = useRuru();\n return animation && enableAnimation ? (\n \n span]:line-clamp-1\",\n className,\n )}\n {...props}\n >\n {children}\n \n \n \n \n \n ) : (\n span]:line-clamp-1\",\n className,\n )}\n {...props}\n >\n {children}\n \n \n \n \n );\n});\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSelectScrollDownButton.displayName =\n SelectPrimitive.ScrollDownButton.displayName;\n\n\nconst AnimatedSelectContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef & {\n selectedVariant: keyof typeof selectAnimationVariants;\n }\n>(\n (\n { className, children, position = \"popper\", selectedVariant, ...props },\n ref,\n ) => (\n \n \n \n \n \n {children}\n \n \n \n \n \n ),\n);\nAnimatedSelectContent.displayName = SelectPrimitive.Content.displayName;\n\n\nconst StaticSelectContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n \n \n \n \n {children}\n \n \n \n \n));\nStaticSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef & {\n variants?: keyof typeof selectAnimationVariants;\n }\n>((props, ref) => {\n const { animation } = useRuru();\n const selectedVariant = props.variants || \"zoom\";\n\n return animation ? (\n \n ) : (\n \n );\n});\n\nSelectContent.displayName = \"SelectContent\";\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n \n \n \n \n \n \n {children}\n \n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n};\n"
}
],
"type": "components:ui"