mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-05-09 11:01:45 +00:00
- Remove pacote `radix-ui` (bundle monolítico); importa direto `@radix-ui/react-navigation-menu` e `@radix-ui/react-slider` - Bump: @ai-sdk/* , @aws-sdk/* , @tanstack/react-query, ai, resend, dotenv, knip, @biomejs/biome, @types/node Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
38 lines
1015 B
TypeScript
38 lines
1015 B
TypeScript
"use client";
|
|
|
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
import type * as React from "react";
|
|
import { cn } from "@/shared/utils/ui";
|
|
|
|
function Slider({
|
|
className,
|
|
...props
|
|
}: React.ComponentProps<typeof SliderPrimitive.Root>) {
|
|
return (
|
|
<SliderPrimitive.Root
|
|
data-slot="slider"
|
|
className={cn(
|
|
"relative flex w-full touch-none items-center select-none",
|
|
className,
|
|
)}
|
|
{...props}
|
|
>
|
|
<SliderPrimitive.Track
|
|
data-slot="slider-track"
|
|
className="bg-muted relative h-2 w-full grow overflow-hidden rounded-full"
|
|
>
|
|
<SliderPrimitive.Range
|
|
data-slot="slider-range"
|
|
className="bg-primary absolute h-full"
|
|
/>
|
|
</SliderPrimitive.Track>
|
|
<SliderPrimitive.Thumb
|
|
data-slot="slider-thumb"
|
|
className="border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-colors focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50"
|
|
/>
|
|
</SliderPrimitive.Root>
|
|
);
|
|
}
|
|
|
|
export { Slider };
|