import * as React from "react" import { View, Text, Input, Textarea } from "@tarojs/components" import { cva, type VariantProps } from "class-variance-authority" import { cn } from "@/lib/utils" import { Button } from "@/components/ui/button" interface InputGroupContextValue { isFocused: boolean setIsFocused: (value: boolean) => void disabled?: boolean } const InputGroupContext = React.createContext({ isFocused: false, setIsFocused: () => {}, disabled: false, }) function InputGroup({ className, disabled, ...props }: React.ComponentPropsWithoutRef & { disabled?: boolean }) { const [isFocused, setIsFocused] = React.useState(false) return ( ) } const inputGroupAddonVariants = cva( "text-muted-foreground flex h-auto cursor-text select-none items-center justify-center gap-2 py-1 text-sm font-medium [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4", { variants: { align: { "inline-start": "order-first pl-3", "inline-end": "order-last pr-3", "block-start": "[.border-b]:pb-3 order-first w-full justify-start px-3 pt-3", "block-end": "[.border-t]:pt-3 order-last w-full justify-start px-3 pb-3", }, }, defaultVariants: { align: "inline-start", }, } ) function InputGroupAddon({ className, align = "inline-start", ...props }: React.ComponentPropsWithoutRef & VariantProps) { const { disabled } = React.useContext(InputGroupContext) return ( ) } const inputGroupButtonVariants = cva( "flex items-center gap-2 text-sm shadow-none", { variants: { size: { xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 [&>svg:not([class*='size-'])]:size-3", sm: "h-8 gap-2 rounded-md px-2", "icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0", "icon-sm": "size-8 p-0", }, }, defaultVariants: { size: "xs", }, } ) function InputGroupButton({ className, variant = "ghost", size = "xs", ...props }: Omit, "size"> & VariantProps) { return (