@invana/forms 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1157 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +205 -0
- package/dist/index.d.ts +205 -0
- package/dist/index.js +1079 -0
- package/dist/index.js.map +1 -0
- package/package.json +76 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/label.tsx","../src/components/form.tsx","../src/components/input.tsx","../src/components/switch.tsx","../src/components/select.tsx","../src/fields/color-swatches.tsx","../src/components/slider.tsx","../src/fields/slider-number.tsx","../src/fields/icon-input.tsx","../src/form-field.tsx","../src/components/textarea.tsx","../src/components/checkbox.tsx","../src/components/radio-group.tsx","../src/components/field.tsx","../src/components/input-group.tsx"],"names":["cva","React","jsx","LabelPrimitive","cn","FormProvider","React2","Controller","useFormContext","Slot","React3","React4","SwitchPrimitives","SelectPrimitive","React5","jsxs","ChevronDown","ChevronUp","Check","React6","React7","SliderPrimitive","React8","Accordion","AccordionItem","AccordionTrigger","AccordionContent","FormField","React9","React10","CheckboxPrimitive","React11","RadioGroupPrimitive","Circle","Separator","useMemo","Button"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAM,aAAA,GAAgBA,0BAAA;AAAA,EACpB;AACF,CAAA;AAEA,IAAM,KAAA,GAAcC,6BAIlB,CAAC,EAAE,WAAW,GAAG,KAAA,IAAS,GAAA,qBAC1BC,cAAA;AAAA,EAAgBC,yBAAA,CAAA,IAAA;AAAA,EAAf;AAAA,IACC,GAAA;AAAA,IACA,SAAA,EAAWC,KAAA,CAAG,aAAA,EAAc,EAAG,SAAS,CAAA;AAAA,IACvC,GAAG;AAAA;AACN,CACD;AACD,KAAA,CAAM,cAA6BD,yBAAA,CAAA,IAAA,CAAK,WAAA;ACPxC,IAAM,IAAA,GAAOE;AASb,IAAM,gBAAA,GAAyBC,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;AAAA,MACC,GAAG;AAAA;AAAA,GACN;AAEJ;AAEA,SAAS,kBAAA,CAAmB;AAAA,EAC1B,SAAA;AAAA,EACA,GAAG;AACL,CAAA,EAAqC;AACnC,EAAA,uBACEF,cAAAA;AAAA,IAAC,QAAA;AAAA,IAAA;AAAA,MACC,WAAA,EAAU,qBAAA;AAAA,MACV,SAAA,EAAWE,KAAAA;AAAA,QACT,mHAAA;AAAA,QACA;AAAA,OACF;AAAA,MACC,GAAG;AAAA;AAAA,GACN;AAEJ","file":"index.cjs","sourcesContent":["import * as React from \"react\"\nimport * as LabelPrimitive from \"@radix-ui/react-label\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@invana/ui\"\n\nconst labelVariants = cva(\n \"font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\"\n)\n\nconst Label = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n <LabelPrimitive.Root\n ref={ref}\n className={cn(labelVariants(), className)}\n {...props}\n />\n))\nLabel.displayName = LabelPrimitive.Root.displayName\n\nexport { Label }\n","import * as React from \"react\"\nimport * as LabelPrimitive from \"@radix-ui/react-label\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport {\n Controller,\n ControllerProps,\n FieldPath,\n FieldValues,\n FormProvider,\n useFormContext,\n} from \"react-hook-form\"\nimport { cn } from \"@invana/ui\"\nimport { Label } from \"./label\"\n\nconst Form = FormProvider\n\ntype FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n> = {\n name: TName\n}\n\nconst FormFieldContext = React.createContext<FormFieldContextValue>(\n {} as FormFieldContextValue\n)\n\nconst FormField = <\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n>({\n ...props\n}: ControllerProps<TFieldValues, TName>) => {\n return (\n <FormFieldContext.Provider value={{ name: props.name }}>\n <Controller {...props} />\n </FormFieldContext.Provider>\n )\n}\n\nconst useFormField = () => {\n const fieldContext = React.useContext(FormFieldContext)\n const itemContext = React.useContext(FormItemContext)\n const { getFieldState, formState } = useFormContext()\n\n const fieldState = getFieldState(fieldContext.name, formState)\n\n if (!fieldContext) {\n throw new Error(\"useFormField should be used within <FormField>\")\n }\n\n const { id } = itemContext\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${id}-form-item`,\n formDescriptionId: `${id}-form-item-description`,\n formMessageId: `${id}-form-item-message`,\n ...fieldState,\n }\n}\n\ntype FormItemContextValue = {\n id: string\n}\n\nconst FormItemContext = React.createContext<FormItemContextValue>(\n {} as FormItemContextValue\n)\n\nconst FormItem = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => {\n const id = React.useId()\n\n return (\n <FormItemContext.Provider value={{ id }}>\n <div ref={ref} className={cn(\"space-y-2\", className)} {...props} />\n </FormItemContext.Provider>\n )\n})\nFormItem.displayName = \"FormItem\"\n\nconst FormLabel = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>\n>(({ className, ...props }, ref) => {\n const { error, formItemId } = useFormField()\n\n return (\n <Label\n ref={ref}\n className={cn(error && \"text-destructive\", className)}\n htmlFor={formItemId}\n {...props}\n />\n )\n})\nFormLabel.displayName = \"FormLabel\"\n\nconst FormControl = React.forwardRef<\n React.ElementRef<typeof Slot>,\n React.ComponentPropsWithoutRef<typeof Slot>\n>(({ ...props }, ref) => {\n const { error, formItemId, formDescriptionId, formMessageId } = useFormField()\n\n return (\n <Slot\n ref={ref}\n id={formItemId}\n aria-describedby={\n !error\n ? `${formDescriptionId}`\n : `${formDescriptionId} ${formMessageId}`\n }\n aria-invalid={!!error}\n {...props}\n />\n )\n})\nFormControl.displayName = \"FormControl\"\n\nconst FormDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => {\n const { formDescriptionId } = useFormField()\n\n return (\n <p\n ref={ref}\n id={formDescriptionId}\n className={cn(\"text-[0.8rem] text-muted-foreground\", className)}\n {...props}\n />\n )\n})\nFormDescription.displayName = \"FormDescription\"\n\nconst FormMessage = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, children, ...props }, ref) => {\n const { error, formMessageId } = useFormField()\n const body = error ? String(error?.message) : children\n\n if (!body) {\n return null\n }\n\n return (\n <p\n ref={ref}\n id={formMessageId}\n className={cn(\"text-[0.8rem] font-medium text-destructive\", className)}\n {...props}\n >\n {body}\n </p>\n )\n})\nFormMessage.displayName = \"FormMessage\"\n\nexport {\n useFormField,\n Form,\n FormItem,\n FormLabel,\n FormControl,\n FormDescription,\n FormMessage,\n FormField,\n}\n","import * as React from \"react\"\n\nimport { cn } from \"@invana/ui\"\n\nconst Input = React.forwardRef<HTMLInputElement, React.ComponentProps<\"input\">>(\n ({ className, type, ...props }, ref) => {\n return (\n <input\n type={type}\n className={cn(\n \"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n className\n )}\n ref={ref}\n {...props}\n />\n )\n }\n)\nInput.displayName = \"Input\"\n\nexport { Input }\n","import * as React from \"react\"\nimport * as SwitchPrimitives from \"@radix-ui/react-switch\"\n\nimport { cn } from \"@invana/ui\"\n\nconst Switch = React.forwardRef<\n React.ElementRef<typeof SwitchPrimitives.Root>,\n React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>\n>(({ className, ...props }, ref) => (\n <SwitchPrimitives.Root\n className={cn(\n \"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border border-border shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=unchecked]:bg-input\",\n className\n )}\n {...props}\n ref={ref}\n >\n <SwitchPrimitives.Thumb\n className={cn(\n \"pointer-events-none block h-5 w-5 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 data-[state=checked]:bg-primary-foreground data-[state=unchecked]:bg-foreground\"\n )}\n />\n </SwitchPrimitives.Root>\n))\nSwitch.displayName = SwitchPrimitives.Root.displayName\n\nexport { Switch }\n","import * as React from \"react\"\nimport * as SelectPrimitive from \"@radix-ui/react-select\"\nimport { Check, ChevronDown, ChevronUp } from \"lucide-react\"\n\nimport { cn } from \"@invana/ui\"\n\nconst Select = SelectPrimitive.Root\n\nconst SelectGroup = SelectPrimitive.Group\n\nconst SelectValue = SelectPrimitive.Value\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(\n \"flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1\",\n className\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDown className=\"h-4 w-4 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n))\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollUpButton\n ref={ref}\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className\n )}\n {...props}\n >\n <ChevronUp className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollUpButton>\n))\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollDownButton\n ref={ref}\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className\n )}\n {...props}\n >\n <ChevronDown className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollDownButton>\n))\nSelectScrollDownButton.displayName =\n SelectPrimitive.ScrollDownButton.displayName\n\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={cn(\n \"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n position === \"popper\" &&\n \"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\",\n className\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n \"p-1\",\n position === \"popper\" &&\n \"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]\"\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n))\nSelectContent.displayName = SelectPrimitive.Content.displayName\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Label\n ref={ref}\n className={cn(\"px-2 py-1.5 text-sm font-semibold\", className)}\n {...props}\n />\n))\nSelectLabel.displayName = SelectPrimitive.Label.displayName\n\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(\n \"relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-2 pr-8 outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className\n )}\n {...props}\n >\n <span className=\"absolute right-2 flex h-3.5 w-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n))\nSelectItem.displayName = SelectPrimitive.Item.displayName\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n {...props}\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","'use client';\nimport * as React from 'react';\nimport { Check } from 'lucide-react';\nimport { cn } from '@invana/ui';\nimport type { ColorPreset } from '../types';\n\ninterface ColorSwatchesProps {\n value?: string;\n onChange?: (value: string) => void;\n presetColors?: ColorPreset[];\n defaultValue?: string;\n}\n\nconst DEFAULT_PRESETS: ColorPreset[] = [\n { label: 'Black', value: 'rgb(0, 0, 0)', darkValue: 'rgb(255, 255, 255)' },\n { label: 'Red', value: 'rgb(239, 68, 68)' },\n { label: 'Blue', value: 'rgb(59, 130, 246)' },\n];\n\nexport const ColorSwatches: React.FC<ColorSwatchesProps> = ({\n value,\n onChange,\n presetColors = DEFAULT_PRESETS,\n defaultValue = 'rgb(0, 0, 0)',\n}) => {\n const [customColor, setCustomColor] = React.useState(value || defaultValue);\n const [isCustom, setIsCustom] = React.useState(false);\n\n React.useEffect(() => {\n if (!value) return;\n const isPreset = presetColors.some((c) => c.value === value);\n setIsCustom(!isPreset);\n if (!isPreset) setCustomColor(value);\n }, [value, presetColors]);\n\n const select = (newColor: string, custom = false) => {\n setIsCustom(custom);\n if (custom) setCustomColor(newColor);\n onChange?.(newColor);\n };\n\n return (\n <div className=\"flex gap-2\">\n {presetColors.map((color) => (\n <button\n key={color.label}\n type=\"button\"\n onClick={() => select(color.value)}\n className={cn(\n 'group relative h-8 w-8 overflow-hidden rounded-md border',\n 'ring-offset-background transition-all hover:scale-105',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',\n !isCustom && value === color.value && 'ring-2 ring-ring ring-offset-2'\n )}\n >\n <div className=\"h-full w-full\" style={{ backgroundColor: color.value }} />\n {!isCustom && value === color.value && (\n <div className=\"absolute inset-0 flex items-center justify-center bg-black/30\">\n <Check className=\"h-4 w-4 text-white\" />\n </div>\n )}\n <span className=\"sr-only\">Select {color.label}</span>\n </button>\n ))}\n <div\n className={cn(\n 'group relative h-8 w-8 overflow-hidden rounded-md border',\n 'ring-offset-background transition-all hover:scale-105',\n isCustom && 'ring-2 ring-ring ring-offset-2'\n )}\n >\n <input\n type=\"color\"\n value={customColor}\n onChange={(e) => select(e.target.value, true)}\n className=\"absolute inset-0 cursor-pointer opacity-0\"\n />\n <div className=\"h-full w-full\" style={{ backgroundColor: customColor }} />\n {isCustom && (\n <div className=\"absolute inset-0 flex items-center justify-center bg-black/30\">\n <Check className=\"h-4 w-4 text-white\" />\n </div>\n )}\n <span className=\"sr-only\">Custom color</span>\n </div>\n </div>\n );\n};\n","import * as React from \"react\"\nimport * as SliderPrimitive from \"@radix-ui/react-slider\"\n\nimport { cn } from \"@invana/ui\"\n\nconst Slider = React.forwardRef<\n React.ElementRef<typeof SliderPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <SliderPrimitive.Root\n ref={ref}\n className={cn(\n \"relative flex w-full touch-none select-none items-center\",\n className\n )}\n {...props}\n >\n <SliderPrimitive.Track className=\"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary\">\n <SliderPrimitive.Range className=\"absolute h-full bg-primary\" />\n </SliderPrimitive.Track>\n <SliderPrimitive.Thumb className=\"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\" />\n </SliderPrimitive.Root>\n))\nSlider.displayName = SliderPrimitive.Root.displayName\n\nexport { Slider }\n","'use client';\nimport * as React from 'react';\nimport { cn } from '@invana/ui';\nimport { Input } from '../components/input';\nimport { Slider } from '../components/slider';\n\ninterface SliderNumberProps {\n value?: number;\n onChange?: (value: number) => void;\n min?: number;\n max?: number;\n step?: number;\n className?: string;\n}\n\nexport const SliderNumber: React.FC<SliderNumberProps> = ({\n value = 0,\n onChange,\n min = 0,\n max = 100,\n step = 1,\n className,\n}) => {\n const [local, setLocal] = React.useState<number>(value);\n\n React.useEffect(() => {\n setLocal(value);\n }, [value]);\n\n const set = (n: number) => {\n setLocal(n);\n onChange?.(n);\n };\n\n return (\n <div className={cn('flex items-center gap-2', className)}>\n <Slider\n value={[local]}\n onValueChange={([n]: number[]) => set(n)}\n min={min}\n max={max}\n step={step}\n className=\"flex-1\"\n />\n <Input\n type=\"number\"\n value={local}\n onChange={(e) => set(Number(e.target.value))}\n className=\"h-8 w-16\"\n min={min}\n max={max}\n step={step}\n />\n </div>\n );\n};\n","'use client';\nimport * as React from 'react';\nimport { Input } from '../components/input';\n\ninterface IconInputProps {\n value?: string;\n onChange?: (value: string) => void;\n}\n\n/**\n * Minimal icon picker — text input + preview swatch. Acts as a placeholder\n * until a real icon picker (e.g. lucide search) is added.\n */\nexport const IconInput: React.FC<IconInputProps> = ({ value, onChange }) => {\n return (\n <div className=\"flex items-center gap-2\">\n <div className=\"flex h-8 w-8 shrink-0 items-center justify-center rounded-md border bg-muted text-sm\">\n {value ? value.slice(0, 2) : '–'}\n </div>\n <Input\n type=\"text\"\n value={value ?? ''}\n onChange={(e) => onChange?.(e.target.value)}\n placeholder=\"icon name\"\n className=\"h-8 text-sm\"\n />\n </div>\n );\n};\n","'use client';\nimport * as React from 'react';\nimport {\n Accordion,\n AccordionContent,\n AccordionItem,\n AccordionTrigger,\n cn,\n} from '@invana/ui';\nimport {\n FormField as FormFieldBase,\n FormControl,\n FormDescription,\n FormItem,\n FormLabel,\n FormMessage,\n} from './components/form';\nimport { Input } from './components/input';\nimport { Switch } from './components/switch';\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from './components/select';\nimport { ColorSwatches } from './fields/color-swatches';\nimport { SliderNumber } from './fields/slider-number';\nimport { IconInput } from './fields/icon-input';\nimport type {\n ColorPreset,\n FieldConfig,\n LabelPosition,\n ObjectFieldProps,\n RowConfig,\n} from './types';\n\n/* -------------------------------------------------------------------------- */\n/* Field.X — leaf field components */\n/* -------------------------------------------------------------------------- */\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype AnyValue = any;\n\ninterface BaseFieldProps {\n label?: string;\n description?: string;\n placeholder?: string;\n value?: AnyValue;\n onChange?: (value: AnyValue) => void;\n options?: { label: string; value: string }[];\n min?: number;\n max?: number;\n step?: number;\n presetColors?: ColorPreset[];\n defaultValue?: string;\n className?: string;\n labelPosition?: LabelPosition;\n}\n\nfunction itemClasses(labelPosition: LabelPosition, className?: string) {\n return cn(\n labelPosition === 'side' && 'grid grid-cols-3 items-center gap-2',\n labelPosition === 'top' && 'space-y-2',\n className\n );\n}\n\nfunction inputWrapper(labelPosition: LabelPosition) {\n return cn(labelPosition === 'side' && 'col-span-2', 'space-y-1');\n}\n\nexport const InputField: React.FC<BaseFieldProps> = ({\n label,\n description,\n placeholder,\n value,\n onChange,\n labelPosition = 'side',\n className,\n}) => (\n <FormItem className={itemClasses(labelPosition, className)}>\n {label && <FormLabel className=\"text-xs\">{label}</FormLabel>}\n <div className={inputWrapper(labelPosition)}>\n <FormControl>\n <Input\n className=\"h-8 text-sm\"\n placeholder={placeholder}\n value={value ?? ''}\n onChange={(e) => onChange?.(e.target.value)}\n />\n </FormControl>\n {description && <FormDescription className=\"text-xs\">{description}</FormDescription>}\n <FormMessage className=\"text-xs\" />\n </div>\n </FormItem>\n);\n\nexport const SelectField: React.FC<BaseFieldProps> = ({\n label,\n description,\n options = [],\n value,\n onChange,\n placeholder = 'Select type',\n labelPosition = 'side',\n className,\n}) => (\n <FormItem className={itemClasses(labelPosition, className)}>\n {label && <FormLabel className=\"text-xs\">{label}</FormLabel>}\n <div className={inputWrapper(labelPosition)}>\n <Select value={value ?? ''} onValueChange={onChange}>\n <FormControl>\n <SelectTrigger className=\"h-8\">\n <SelectValue placeholder={placeholder} />\n </SelectTrigger>\n </FormControl>\n <SelectContent>\n {options.map((o) => (\n <SelectItem key={o.value} value={o.value}>\n {o.label}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n {description && <FormDescription className=\"text-xs\">{description}</FormDescription>}\n <FormMessage className=\"text-xs\" />\n </div>\n </FormItem>\n);\n\nexport const BooleanField: React.FC<BaseFieldProps> = ({\n label,\n description,\n value,\n onChange,\n labelPosition = 'side',\n}) => {\n if (labelPosition === 'side') {\n return (\n <FormItem className=\"flex items-center justify-between rounded-md border p-2\">\n <div>\n {label && <FormLabel className=\"text-xs\">{label}</FormLabel>}\n {description && <FormDescription className=\"text-xs\">{description}</FormDescription>}\n </div>\n <FormControl>\n <Switch checked={!!value} onCheckedChange={onChange} />\n </FormControl>\n </FormItem>\n );\n }\n return (\n <FormItem className=\"space-y-2\">\n {label && <FormLabel className=\"text-xs\">{label}</FormLabel>}\n <div className=\"flex items-center justify-between rounded-md border p-2\">\n <FormControl>\n <Switch checked={!!value} onCheckedChange={onChange} />\n </FormControl>\n {description && <FormDescription className=\"ml-2 text-xs\">{description}</FormDescription>}\n </div>\n </FormItem>\n );\n};\n\nexport const ColorField: React.FC<BaseFieldProps> = ({\n label,\n description,\n value,\n onChange,\n presetColors,\n defaultValue,\n labelPosition = 'side',\n className,\n}) => (\n <FormItem className={itemClasses(labelPosition, className)}>\n {label && <FormLabel className=\"text-xs\">{label}</FormLabel>}\n <div className={inputWrapper(labelPosition)}>\n <FormControl>\n <ColorSwatches\n value={value}\n onChange={onChange}\n presetColors={presetColors}\n defaultValue={defaultValue}\n />\n </FormControl>\n {description && <FormDescription className=\"text-xs\">{description}</FormDescription>}\n <FormMessage className=\"text-xs\" />\n </div>\n </FormItem>\n);\n\nexport const NumberField: React.FC<BaseFieldProps> = ({\n label,\n description,\n value,\n onChange,\n min,\n max,\n step,\n labelPosition = 'side',\n className,\n}) => (\n <FormItem className={itemClasses(labelPosition, className)}>\n {label && <FormLabel className=\"text-xs\">{label}</FormLabel>}\n <div className={inputWrapper(labelPosition)}>\n <FormControl>\n <SliderNumber\n value={typeof value === 'number' ? value : 0}\n onChange={onChange}\n min={min}\n max={max}\n step={step}\n />\n </FormControl>\n {description && <FormDescription className=\"text-xs\">{description}</FormDescription>}\n <FormMessage className=\"text-xs\" />\n </div>\n </FormItem>\n);\n\nexport const IconField: React.FC<BaseFieldProps> = ({\n label,\n description,\n value,\n onChange,\n labelPosition = 'side',\n className,\n}) => (\n <FormItem className={itemClasses(labelPosition, className)}>\n {label && <FormLabel className=\"text-xs\">{label}</FormLabel>}\n <div className={inputWrapper(labelPosition)}>\n <FormControl>\n <IconInput value={value} onChange={onChange} />\n </FormControl>\n {description && <FormDescription className=\"text-xs\">{description}</FormDescription>}\n <FormMessage className=\"text-xs\" />\n </div>\n </FormItem>\n);\n\nexport const Field = {\n Input: InputField,\n Boolean: BooleanField,\n Color: ColorField,\n Number: NumberField,\n Select: SelectField,\n Icon: IconField,\n};\n\n/* -------------------------------------------------------------------------- */\n/* ObjectField — renders a flat field config array under a parent name */\n/* -------------------------------------------------------------------------- */\n\nfunction humanize(name: string): string {\n return name\n .replace(/([A-Z])/g, ' $1')\n .replace(/^./, (c) => c.toUpperCase())\n .trim();\n}\n\nfunction chunk<T>(arr: T[], size: number): T[][] {\n const out: T[][] = [];\n for (let i = 0; i < arr.length; i += size) out.push(arr.slice(i, i + size));\n return out;\n}\n\nfunction renderField(\n field: FieldConfig,\n parentName: string,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n control: any,\n labelPosition: LabelPosition\n) {\n return (\n <FormFieldBase\n key={field.name}\n control={control}\n name={`${parentName}.${field.name}`}\n defaultValue={field.defaultValue as AnyValue}\n render={({ field: rhf }) => {\n const common: BaseFieldProps = {\n label: field.label ?? humanize(field.name),\n description: field.description,\n options: field.options,\n min: field.min,\n max: field.max,\n step: field.step,\n presetColors: field.presetColors,\n defaultValue: field.defaultValue,\n labelPosition,\n value: rhf.value,\n onChange: rhf.onChange,\n };\n switch (field.type) {\n case 'boolean':\n return <BooleanField {...common} />;\n case 'color':\n return <ColorField {...common} />;\n case 'number':\n return <NumberField {...common} />;\n case 'select':\n return <SelectField {...common} />;\n case 'icon':\n return <IconField {...common} />;\n case 'text':\n default:\n return (\n <InputField\n {...common}\n placeholder={field.placeholder ?? `Enter ${field.name}`}\n />\n );\n }\n }}\n />\n );\n}\n\nfunction renderRows(\n fields: FieldConfig[],\n rowConfig: RowConfig[] | undefined,\n parentName: string,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n control: any,\n labelPosition: LabelPosition\n) {\n if (!rowConfig || rowConfig.length === 0) {\n return (\n <div className=\"grid gap-4\">\n {chunk(fields, 2).map((row, i) => (\n <div key={i} className=\"grid grid-cols-1 gap-4 md:grid-cols-2\">\n {row.map((f) => renderField(f, parentName, control, labelPosition))}\n </div>\n ))}\n </div>\n );\n }\n const used = new Set(rowConfig.flatMap((r) => r.fields));\n const unassigned = fields.filter((f) => !used.has(f.name));\n const byName = new Map(fields.map((f) => [f.name, f]));\n\n return (\n <div className=\"space-y-4\">\n {rowConfig.map((row) => {\n const rowFields = row.fields\n .map((n) => byName.get(n))\n .filter((f): f is FieldConfig => !!f);\n return chunk(rowFields, 2).map((cnk, idx) => (\n <div\n key={`${row.id}-${idx}`}\n className=\"grid grid-cols-1 gap-4 md:grid-cols-2\"\n >\n {cnk.map((f) => renderField(f, parentName, control, labelPosition))}\n </div>\n ));\n })}\n {unassigned.length > 0 && (\n <div className=\"grid gap-4\">\n {chunk(unassigned, 2).map((row, i) => (\n <div key={`u-${i}`} className=\"grid grid-cols-1 gap-4 md:grid-cols-2\">\n {row.map((f) => renderField(f, parentName, control, labelPosition))}\n </div>\n ))}\n </div>\n )}\n </div>\n );\n}\n\nconst ObjectField: React.FC<ObjectFieldProps> = ({\n control,\n name,\n fields,\n rowConfig,\n labelPosition = 'side',\n}) => {\n const grouped = fields.reduce<Record<string, FieldConfig[]>>((acc, f) => {\n const key = f.group ?? '_ungrouped';\n (acc[key] ??= []).push(f);\n return acc;\n }, {});\n\n const ungrouped = grouped['_ungrouped'] ?? [];\n delete grouped['_ungrouped'];\n const groupedEntries = Object.entries(grouped);\n\n return (\n <div className=\"space-y-6\">\n {ungrouped.length > 0 && (\n <div className=\"space-y-4\">\n {renderRows(ungrouped, rowConfig, name, control, labelPosition)}\n </div>\n )}\n\n {groupedEntries.length > 0 && (\n <Accordion\n type=\"multiple\"\n defaultValue={groupedEntries.map(([k]) => k)}\n className=\"w-full space-y-2\"\n >\n {groupedEntries.map(([group, gFields]) => (\n <AccordionItem key={group} value={group} className=\"rounded-md border\">\n <AccordionTrigger className=\"px-3 text-sm font-medium hover:no-underline\">\n {humanize(group)} Settings\n </AccordionTrigger>\n <AccordionContent className=\"px-3 pb-3\">\n <div className=\"space-y-4\">\n {renderRows(gFields, rowConfig, name, control, labelPosition)}\n </div>\n </AccordionContent>\n </AccordionItem>\n ))}\n </Accordion>\n )}\n </div>\n );\n};\n\n/* -------------------------------------------------------------------------- */\n/* FormField — shadcn FormField augmented with Field.* and ObjectField */\n/* -------------------------------------------------------------------------- */\n\ninterface FormFieldExtensions {\n ObjectField: typeof ObjectField;\n Input: typeof InputField;\n Boolean: typeof BooleanField;\n Color: typeof ColorField;\n Number: typeof NumberField;\n Select: typeof SelectField;\n Icon: typeof IconField;\n}\n\ntype FormFieldType = typeof FormFieldBase & FormFieldExtensions;\n\nexport const FormField = Object.assign(FormFieldBase, {\n ObjectField,\n Input: InputField,\n Boolean: BooleanField,\n Color: ColorField,\n Number: NumberField,\n Select: SelectField,\n Icon: IconField,\n}) as FormFieldType;\n\n// Also export ObjectField directly for consumers who prefer a flat import.\nexport { ObjectField };\n\nexport type {\n FieldConfig,\n RowConfig,\n LabelPosition,\n ObjectFieldProps,\n ColorPreset,\n} from './types';\n","import * as React from \"react\"\n\nimport { cn } from \"@invana/ui\"\n\nconst Textarea = React.forwardRef<\n HTMLTextAreaElement,\n React.ComponentProps<\"textarea\">\n>(({ className, ...props }, ref) => {\n return (\n <textarea\n className={cn(\n \"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\",\n className\n )}\n ref={ref}\n {...props}\n />\n )\n})\nTextarea.displayName = \"Textarea\"\n\nexport { Textarea }\n","import * as React from \"react\"\nimport * as CheckboxPrimitive from \"@radix-ui/react-checkbox\"\nimport { Check } from \"lucide-react\"\nimport { cn } from \"@invana/ui\"\n\nconst Checkbox = React.forwardRef<\n React.ElementRef<typeof CheckboxPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(\n \"peer h-4 w-4 shrink-0 rounded-md border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground\",\n className\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n className={cn(\"flex items-center justify-center text-current\")}\n >\n <Check className=\"h-4 w-4\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n))\nCheckbox.displayName = CheckboxPrimitive.Root.displayName\n\nexport { Checkbox }\n","import * as React from \"react\"\nimport * as RadioGroupPrimitive from \"@radix-ui/react-radio-group\"\nimport { Circle } from \"lucide-react\"\n\nimport { cn } from \"@invana/ui\"\n\nconst RadioGroup = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Root\n className={cn(\"grid gap-2\", className)}\n {...props}\n ref={ref}\n />\n )\n})\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName\n\nconst RadioGroupItem = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n \"aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\",\n className\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"flex items-center justify-center\">\n <Circle className=\"h-2.5 w-2.5 fill-current text-current\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n )\n})\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName\n\nexport { RadioGroup, RadioGroupItem }\n","import { useMemo } from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@invana/ui\"\nimport { Label } from \"./label\"\nimport { Separator } from \"@invana/ui\"\n\nfunction FieldSet({ className, ...props }: React.ComponentProps<\"fieldset\">) {\n return (\n <fieldset\n data-slot=\"field-set\"\n className={cn(\n \"flex flex-col gap-6\",\n \"has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction FieldLegend({\n className,\n variant = \"legend\",\n ...props\n}: React.ComponentProps<\"legend\"> & { variant?: \"legend\" | \"label\" }) {\n return (\n <legend\n data-slot=\"field-legend\"\n data-variant={variant}\n className={cn(\n \"mb-3 font-medium\",\n \"data-[variant=legend]:text-base\",\n \"data-[variant=label]:text-sm\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction FieldGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"field-group\"\n className={cn(\n \"group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4\",\n className\n )}\n {...props}\n />\n )\n}\n\nconst fieldVariants = cva(\n \"group/field data-[invalid=true]:text-destructive flex w-full gap-3\",\n {\n variants: {\n orientation: {\n vertical: [\"flex-col [&>*]:w-full [&>.sr-only]:w-auto\"],\n horizontal: [\n \"flex-row items-center\",\n \"[&>[data-slot=field-label]]:flex-auto\",\n \"has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px has-[>[data-slot=field-content]]:items-start\",\n ],\n responsive: [\n \"@md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto flex-col [&>*]:w-full [&>.sr-only]:w-auto\",\n \"@md/field-group:[&>[data-slot=field-label]]:flex-auto\",\n \"@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px\",\n ],\n },\n },\n defaultVariants: {\n orientation: \"vertical\",\n },\n }\n)\n\nfunction Field({\n className,\n orientation = \"vertical\",\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof fieldVariants>) {\n return (\n <div\n role=\"group\"\n data-slot=\"field\"\n data-orientation={orientation}\n className={cn(fieldVariants({ orientation }), className)}\n {...props}\n />\n )\n}\n\nfunction FieldContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"field-content\"\n className={cn(\n \"group/field-content flex flex-1 flex-col gap-1.5 leading-snug\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction FieldLabel({\n className,\n ...props\n}: React.ComponentProps<typeof Label>) {\n return (\n <Label\n data-slot=\"field-label\"\n className={cn(\n \"group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50\",\n \"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>[data-slot=field]]:p-4\",\n \"has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction FieldTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"field-label\"\n className={cn(\n \"flex w-fit items-center gap-2 text-sm font-medium leading-snug group-data-[disabled=true]/field:opacity-50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction FieldDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return (\n <p\n data-slot=\"field-description\"\n className={cn(\n \"text-muted-foreground text-sm font-normal leading-normal group-has-[[data-orientation=horizontal]]/field:text-balance\",\n \"nth-last-2:-mt-1 last:mt-0 [[data-variant=legend]+&]:-mt-1.5\",\n \"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction FieldSeparator({\n children,\n className,\n ...props\n}: React.ComponentProps<\"div\"> & {\n children?: React.ReactNode\n}) {\n return (\n <div\n data-slot=\"field-separator\"\n data-content={!!children}\n className={cn(\n \"relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2\",\n className\n )}\n {...props}\n >\n <Separator className=\"absolute inset-0 top-1/2\" />\n {children && (\n <span\n className=\"bg-background text-muted-foreground relative mx-auto block w-fit px-2\"\n data-slot=\"field-separator-content\"\n >\n {children}\n </span>\n )}\n </div>\n )\n}\n\nfunction FieldError({\n className,\n children,\n errors,\n ...props\n}: React.ComponentProps<\"div\"> & {\n errors?: Array<{ message?: string } | undefined>\n}) {\n const content = useMemo(() => {\n if (children) {\n return children\n }\n\n if (!errors) {\n return null\n }\n\n if (errors?.length === 1 && errors[0]?.message) {\n return errors[0].message\n }\n\n return (\n <ul className=\"ml-4 flex list-disc flex-col gap-1\">\n {errors.map(\n (error, index) =>\n error?.message && <li key={index}>{error.message}</li>\n )}\n </ul>\n )\n }, [children, errors])\n\n if (!content) {\n return null\n }\n\n return (\n <div\n role=\"alert\"\n data-slot=\"field-error\"\n className={cn(\"text-destructive text-sm font-normal\", className)}\n {...props}\n >\n {content}\n </div>\n )\n}\n\nexport {\n Field,\n FieldLabel,\n FieldDescription,\n FieldError,\n FieldGroup,\n FieldLegend,\n FieldSeparator,\n FieldSet,\n FieldContent,\n FieldTitle,\n}\n","import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@invana/ui\"\nimport { Button } from \"@invana/ui\"\nimport { Input } from \"./input\"\nimport { Textarea } from \"./textarea\"\n\nfunction InputGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"input-group\"\n role=\"group\"\n className={cn(\n \"group/input-group border-input dark:bg-input/30 shadow-xs relative flex w-full items-center rounded-md border outline-none transition-[color,box-shadow]\",\n \"h-9 has-[>textarea]:h-auto\",\n\n // Variants based on alignment.\n \"has-[>[data-align=inline-start]]:[&>input]:pl-2\",\n \"has-[>[data-align=inline-end]]:[&>input]:pr-2\",\n \"has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3\",\n \"has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3\",\n\n // Focus state.\n \"has-[[data-slot=input-group-control]:focus-visible]:ring-ring has-[[data-slot=input-group-control]:focus-visible]:ring-1\",\n\n // Error state.\n \"has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40\",\n\n className\n )}\n {...props}\n />\n )\n}\n\nconst inputGroupAddonVariants = cva(\n \"text-muted-foreground flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4\",\n {\n variants: {\n align: {\n \"inline-start\":\n \"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]\",\n \"inline-end\":\n \"order-last pr-3 has-[>button]:mr-[-0.4rem] has-[>kbd]:mr-[-0.35rem]\",\n \"block-start\":\n \"[.border-b]:pb-3 order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5\",\n \"block-end\":\n \"[.border-t]:pt-3 order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5\",\n },\n },\n defaultVariants: {\n align: \"inline-start\",\n },\n }\n)\n\nfunction InputGroupAddon({\n className,\n align = \"inline-start\",\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof inputGroupAddonVariants>) {\n return (\n <div\n role=\"group\"\n data-slot=\"input-group-addon\"\n data-align={align}\n className={cn(inputGroupAddonVariants({ align }), className)}\n onClick={(e) => {\n if ((e.target as HTMLElement).closest(\"button\")) {\n return\n }\n e.currentTarget.parentElement?.querySelector(\"input\")?.focus()\n }}\n {...props}\n />\n )\n}\n\nconst inputGroupButtonVariants = cva(\n \"flex items-center gap-2 text-sm shadow-none\",\n {\n variants: {\n size: {\n xs: \"h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5\",\n sm: \"h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5\",\n \"icon-xs\":\n \"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0\",\n \"icon-sm\": \"size-8 p-0 has-[>svg]:p-0\",\n },\n },\n defaultVariants: {\n size: \"xs\",\n },\n }\n)\n\nfunction InputGroupButton({\n className,\n type = \"button\",\n variant = \"ghost\",\n size = \"xs\",\n ...props\n}: Omit<React.ComponentProps<typeof Button>, \"size\"> &\n VariantProps<typeof inputGroupButtonVariants>) {\n return (\n <Button\n type={type}\n data-size={size}\n variant={variant}\n className={cn(inputGroupButtonVariants({ size }), className)}\n {...props}\n />\n )\n}\n\nfunction InputGroupText({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n <span\n className={cn(\n \"text-muted-foreground flex items-center gap-2 text-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction InputGroupInput({\n className,\n ...props\n}: React.ComponentProps<\"input\">) {\n return (\n <Input\n data-slot=\"input-group-control\"\n className={cn(\n \"flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction InputGroupTextarea({\n className,\n ...props\n}: React.ComponentProps<\"textarea\">) {\n return (\n <Textarea\n data-slot=\"input-group-control\"\n className={cn(\n \"flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupText,\n InputGroupInput,\n InputGroupTextarea,\n}\n"]}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import * as _radix_ui_react_slot from '@radix-ui/react-slot';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
import * as react_hook_form from 'react-hook-form';
|
|
5
|
+
import { FieldValues, FieldPath, ControllerProps, Control } from 'react-hook-form';
|
|
6
|
+
export { Control, DefaultValues, FieldValues, Mode, SubmitHandler, UseFormReturn } from 'react-hook-form';
|
|
7
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
8
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
9
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
10
|
+
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
11
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
12
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
13
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
14
|
+
import { VariantProps } from 'class-variance-authority';
|
|
15
|
+
import { Button } from '@invana/ui';
|
|
16
|
+
|
|
17
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
18
|
+
declare const FormField$1: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
19
|
+
declare const useFormField: () => {
|
|
20
|
+
invalid: boolean;
|
|
21
|
+
isDirty: boolean;
|
|
22
|
+
isTouched: boolean;
|
|
23
|
+
isValidating: boolean;
|
|
24
|
+
error?: react_hook_form.FieldError;
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
formItemId: string;
|
|
28
|
+
formDescriptionId: string;
|
|
29
|
+
formMessageId: string;
|
|
30
|
+
};
|
|
31
|
+
declare const FormItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
33
|
+
declare const FormControl: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
34
|
+
declare const FormDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
35
|
+
declare const FormMessage: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
36
|
+
|
|
37
|
+
type LabelPosition = 'side' | 'top';
|
|
38
|
+
type FieldType = 'text' | 'number' | 'boolean' | 'color' | 'select' | 'icon';
|
|
39
|
+
type ColorPreset = {
|
|
40
|
+
label: string;
|
|
41
|
+
value: string;
|
|
42
|
+
darkValue?: string;
|
|
43
|
+
};
|
|
44
|
+
type FieldConfig = {
|
|
45
|
+
name: string;
|
|
46
|
+
type: FieldType;
|
|
47
|
+
label?: string;
|
|
48
|
+
description?: string;
|
|
49
|
+
placeholder?: string;
|
|
50
|
+
options?: {
|
|
51
|
+
label: string;
|
|
52
|
+
value: string;
|
|
53
|
+
}[];
|
|
54
|
+
min?: number;
|
|
55
|
+
max?: number;
|
|
56
|
+
step?: number;
|
|
57
|
+
group?: string;
|
|
58
|
+
row?: string;
|
|
59
|
+
presetColors?: ColorPreset[];
|
|
60
|
+
defaultValue?: string;
|
|
61
|
+
};
|
|
62
|
+
type RowConfig = {
|
|
63
|
+
id: string;
|
|
64
|
+
fields: string[];
|
|
65
|
+
};
|
|
66
|
+
interface ObjectFieldProps {
|
|
67
|
+
control: Control<any>;
|
|
68
|
+
name: string;
|
|
69
|
+
fields: FieldConfig[];
|
|
70
|
+
rowConfig?: RowConfig[];
|
|
71
|
+
labelPosition?: LabelPosition;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
type AnyValue = any;
|
|
75
|
+
interface BaseFieldProps {
|
|
76
|
+
label?: string;
|
|
77
|
+
description?: string;
|
|
78
|
+
placeholder?: string;
|
|
79
|
+
value?: AnyValue;
|
|
80
|
+
onChange?: (value: AnyValue) => void;
|
|
81
|
+
options?: {
|
|
82
|
+
label: string;
|
|
83
|
+
value: string;
|
|
84
|
+
}[];
|
|
85
|
+
min?: number;
|
|
86
|
+
max?: number;
|
|
87
|
+
step?: number;
|
|
88
|
+
presetColors?: ColorPreset[];
|
|
89
|
+
defaultValue?: string;
|
|
90
|
+
className?: string;
|
|
91
|
+
labelPosition?: LabelPosition;
|
|
92
|
+
}
|
|
93
|
+
declare const InputField: React$1.FC<BaseFieldProps>;
|
|
94
|
+
declare const SelectField: React$1.FC<BaseFieldProps>;
|
|
95
|
+
declare const BooleanField: React$1.FC<BaseFieldProps>;
|
|
96
|
+
declare const ColorField: React$1.FC<BaseFieldProps>;
|
|
97
|
+
declare const NumberField: React$1.FC<BaseFieldProps>;
|
|
98
|
+
declare const IconField: React$1.FC<BaseFieldProps>;
|
|
99
|
+
declare const Field: {
|
|
100
|
+
Input: React$1.FC<BaseFieldProps>;
|
|
101
|
+
Boolean: React$1.FC<BaseFieldProps>;
|
|
102
|
+
Color: React$1.FC<BaseFieldProps>;
|
|
103
|
+
Number: React$1.FC<BaseFieldProps>;
|
|
104
|
+
Select: React$1.FC<BaseFieldProps>;
|
|
105
|
+
Icon: React$1.FC<BaseFieldProps>;
|
|
106
|
+
};
|
|
107
|
+
declare const ObjectField: React$1.FC<ObjectFieldProps>;
|
|
108
|
+
interface FormFieldExtensions {
|
|
109
|
+
ObjectField: typeof ObjectField;
|
|
110
|
+
Input: typeof InputField;
|
|
111
|
+
Boolean: typeof BooleanField;
|
|
112
|
+
Color: typeof ColorField;
|
|
113
|
+
Number: typeof NumberField;
|
|
114
|
+
Select: typeof SelectField;
|
|
115
|
+
Icon: typeof IconField;
|
|
116
|
+
}
|
|
117
|
+
type FormFieldType = typeof FormField$1 & FormFieldExtensions;
|
|
118
|
+
declare const FormField: FormFieldType;
|
|
119
|
+
|
|
120
|
+
interface ColorSwatchesProps {
|
|
121
|
+
value?: string;
|
|
122
|
+
onChange?: (value: string) => void;
|
|
123
|
+
presetColors?: ColorPreset[];
|
|
124
|
+
defaultValue?: string;
|
|
125
|
+
}
|
|
126
|
+
declare const ColorSwatches: React$1.FC<ColorSwatchesProps>;
|
|
127
|
+
|
|
128
|
+
interface SliderNumberProps {
|
|
129
|
+
value?: number;
|
|
130
|
+
onChange?: (value: number) => void;
|
|
131
|
+
min?: number;
|
|
132
|
+
max?: number;
|
|
133
|
+
step?: number;
|
|
134
|
+
className?: string;
|
|
135
|
+
}
|
|
136
|
+
declare const SliderNumber: React$1.FC<SliderNumberProps>;
|
|
137
|
+
|
|
138
|
+
interface IconInputProps {
|
|
139
|
+
value?: string;
|
|
140
|
+
onChange?: (value: string) => void;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Minimal icon picker — text input + preview swatch. Acts as a placeholder
|
|
144
|
+
* until a real icon picker (e.g. lucide search) is added.
|
|
145
|
+
*/
|
|
146
|
+
declare const IconInput: React$1.FC<IconInputProps>;
|
|
147
|
+
|
|
148
|
+
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
149
|
+
|
|
150
|
+
declare const Textarea: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
151
|
+
|
|
152
|
+
declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
|
|
153
|
+
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
154
|
+
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
155
|
+
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
156
|
+
declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
157
|
+
declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
158
|
+
declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
159
|
+
declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
160
|
+
declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
161
|
+
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
162
|
+
|
|
163
|
+
declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
164
|
+
|
|
165
|
+
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
166
|
+
|
|
167
|
+
declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
168
|
+
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
169
|
+
|
|
170
|
+
declare const Slider: React$1.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
171
|
+
|
|
172
|
+
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
173
|
+
|
|
174
|
+
declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): react_jsx_runtime.JSX.Element;
|
|
175
|
+
declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<"legend"> & {
|
|
176
|
+
variant?: "legend" | "label";
|
|
177
|
+
}): react_jsx_runtime.JSX.Element;
|
|
178
|
+
declare function FieldGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
179
|
+
declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
180
|
+
declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): react_jsx_runtime.JSX.Element;
|
|
181
|
+
declare function FieldTitle({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
182
|
+
declare function FieldDescription({ className, ...props }: React.ComponentProps<"p">): react_jsx_runtime.JSX.Element;
|
|
183
|
+
declare function FieldSeparator({ children, className, ...props }: React.ComponentProps<"div"> & {
|
|
184
|
+
children?: React.ReactNode;
|
|
185
|
+
}): react_jsx_runtime.JSX.Element;
|
|
186
|
+
declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<"div"> & {
|
|
187
|
+
errors?: Array<{
|
|
188
|
+
message?: string;
|
|
189
|
+
} | undefined>;
|
|
190
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
191
|
+
|
|
192
|
+
declare function InputGroup({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
193
|
+
declare const inputGroupAddonVariants: (props?: ({
|
|
194
|
+
align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
|
|
195
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
196
|
+
declare function InputGroupAddon({ className, align, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): react_jsx_runtime.JSX.Element;
|
|
197
|
+
declare const inputGroupButtonVariants: (props?: ({
|
|
198
|
+
size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
|
|
199
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
200
|
+
declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React$1.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): react_jsx_runtime.JSX.Element;
|
|
201
|
+
declare function InputGroupText({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
202
|
+
declare function InputGroupInput({ className, ...props }: React$1.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
|
|
203
|
+
declare function InputGroupTextarea({ className, ...props }: React$1.ComponentProps<"textarea">): react_jsx_runtime.JSX.Element;
|
|
204
|
+
|
|
205
|
+
export { BooleanField, Checkbox, ColorField, type ColorPreset, ColorSwatches, Field, type FieldConfig, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type FieldType, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, IconField, IconInput, Input, InputField, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Label, type LabelPosition, NumberField, ObjectField, type ObjectFieldProps, RadioGroup, RadioGroupItem, type RowConfig, Select, SelectContent, SelectField, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Slider, SliderNumber, Switch, Textarea, useFormField };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import * as _radix_ui_react_slot from '@radix-ui/react-slot';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
import * as react_hook_form from 'react-hook-form';
|
|
5
|
+
import { FieldValues, FieldPath, ControllerProps, Control } from 'react-hook-form';
|
|
6
|
+
export { Control, DefaultValues, FieldValues, Mode, SubmitHandler, UseFormReturn } from 'react-hook-form';
|
|
7
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
8
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
9
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
10
|
+
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
11
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
12
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
13
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
14
|
+
import { VariantProps } from 'class-variance-authority';
|
|
15
|
+
import { Button } from '@invana/ui';
|
|
16
|
+
|
|
17
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
18
|
+
declare const FormField$1: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
19
|
+
declare const useFormField: () => {
|
|
20
|
+
invalid: boolean;
|
|
21
|
+
isDirty: boolean;
|
|
22
|
+
isTouched: boolean;
|
|
23
|
+
isValidating: boolean;
|
|
24
|
+
error?: react_hook_form.FieldError;
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
formItemId: string;
|
|
28
|
+
formDescriptionId: string;
|
|
29
|
+
formMessageId: string;
|
|
30
|
+
};
|
|
31
|
+
declare const FormItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
33
|
+
declare const FormControl: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
34
|
+
declare const FormDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
35
|
+
declare const FormMessage: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
36
|
+
|
|
37
|
+
type LabelPosition = 'side' | 'top';
|
|
38
|
+
type FieldType = 'text' | 'number' | 'boolean' | 'color' | 'select' | 'icon';
|
|
39
|
+
type ColorPreset = {
|
|
40
|
+
label: string;
|
|
41
|
+
value: string;
|
|
42
|
+
darkValue?: string;
|
|
43
|
+
};
|
|
44
|
+
type FieldConfig = {
|
|
45
|
+
name: string;
|
|
46
|
+
type: FieldType;
|
|
47
|
+
label?: string;
|
|
48
|
+
description?: string;
|
|
49
|
+
placeholder?: string;
|
|
50
|
+
options?: {
|
|
51
|
+
label: string;
|
|
52
|
+
value: string;
|
|
53
|
+
}[];
|
|
54
|
+
min?: number;
|
|
55
|
+
max?: number;
|
|
56
|
+
step?: number;
|
|
57
|
+
group?: string;
|
|
58
|
+
row?: string;
|
|
59
|
+
presetColors?: ColorPreset[];
|
|
60
|
+
defaultValue?: string;
|
|
61
|
+
};
|
|
62
|
+
type RowConfig = {
|
|
63
|
+
id: string;
|
|
64
|
+
fields: string[];
|
|
65
|
+
};
|
|
66
|
+
interface ObjectFieldProps {
|
|
67
|
+
control: Control<any>;
|
|
68
|
+
name: string;
|
|
69
|
+
fields: FieldConfig[];
|
|
70
|
+
rowConfig?: RowConfig[];
|
|
71
|
+
labelPosition?: LabelPosition;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
type AnyValue = any;
|
|
75
|
+
interface BaseFieldProps {
|
|
76
|
+
label?: string;
|
|
77
|
+
description?: string;
|
|
78
|
+
placeholder?: string;
|
|
79
|
+
value?: AnyValue;
|
|
80
|
+
onChange?: (value: AnyValue) => void;
|
|
81
|
+
options?: {
|
|
82
|
+
label: string;
|
|
83
|
+
value: string;
|
|
84
|
+
}[];
|
|
85
|
+
min?: number;
|
|
86
|
+
max?: number;
|
|
87
|
+
step?: number;
|
|
88
|
+
presetColors?: ColorPreset[];
|
|
89
|
+
defaultValue?: string;
|
|
90
|
+
className?: string;
|
|
91
|
+
labelPosition?: LabelPosition;
|
|
92
|
+
}
|
|
93
|
+
declare const InputField: React$1.FC<BaseFieldProps>;
|
|
94
|
+
declare const SelectField: React$1.FC<BaseFieldProps>;
|
|
95
|
+
declare const BooleanField: React$1.FC<BaseFieldProps>;
|
|
96
|
+
declare const ColorField: React$1.FC<BaseFieldProps>;
|
|
97
|
+
declare const NumberField: React$1.FC<BaseFieldProps>;
|
|
98
|
+
declare const IconField: React$1.FC<BaseFieldProps>;
|
|
99
|
+
declare const Field: {
|
|
100
|
+
Input: React$1.FC<BaseFieldProps>;
|
|
101
|
+
Boolean: React$1.FC<BaseFieldProps>;
|
|
102
|
+
Color: React$1.FC<BaseFieldProps>;
|
|
103
|
+
Number: React$1.FC<BaseFieldProps>;
|
|
104
|
+
Select: React$1.FC<BaseFieldProps>;
|
|
105
|
+
Icon: React$1.FC<BaseFieldProps>;
|
|
106
|
+
};
|
|
107
|
+
declare const ObjectField: React$1.FC<ObjectFieldProps>;
|
|
108
|
+
interface FormFieldExtensions {
|
|
109
|
+
ObjectField: typeof ObjectField;
|
|
110
|
+
Input: typeof InputField;
|
|
111
|
+
Boolean: typeof BooleanField;
|
|
112
|
+
Color: typeof ColorField;
|
|
113
|
+
Number: typeof NumberField;
|
|
114
|
+
Select: typeof SelectField;
|
|
115
|
+
Icon: typeof IconField;
|
|
116
|
+
}
|
|
117
|
+
type FormFieldType = typeof FormField$1 & FormFieldExtensions;
|
|
118
|
+
declare const FormField: FormFieldType;
|
|
119
|
+
|
|
120
|
+
interface ColorSwatchesProps {
|
|
121
|
+
value?: string;
|
|
122
|
+
onChange?: (value: string) => void;
|
|
123
|
+
presetColors?: ColorPreset[];
|
|
124
|
+
defaultValue?: string;
|
|
125
|
+
}
|
|
126
|
+
declare const ColorSwatches: React$1.FC<ColorSwatchesProps>;
|
|
127
|
+
|
|
128
|
+
interface SliderNumberProps {
|
|
129
|
+
value?: number;
|
|
130
|
+
onChange?: (value: number) => void;
|
|
131
|
+
min?: number;
|
|
132
|
+
max?: number;
|
|
133
|
+
step?: number;
|
|
134
|
+
className?: string;
|
|
135
|
+
}
|
|
136
|
+
declare const SliderNumber: React$1.FC<SliderNumberProps>;
|
|
137
|
+
|
|
138
|
+
interface IconInputProps {
|
|
139
|
+
value?: string;
|
|
140
|
+
onChange?: (value: string) => void;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Minimal icon picker — text input + preview swatch. Acts as a placeholder
|
|
144
|
+
* until a real icon picker (e.g. lucide search) is added.
|
|
145
|
+
*/
|
|
146
|
+
declare const IconInput: React$1.FC<IconInputProps>;
|
|
147
|
+
|
|
148
|
+
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
149
|
+
|
|
150
|
+
declare const Textarea: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
151
|
+
|
|
152
|
+
declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
|
|
153
|
+
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
154
|
+
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
155
|
+
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
156
|
+
declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
157
|
+
declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
158
|
+
declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
159
|
+
declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
160
|
+
declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
161
|
+
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
162
|
+
|
|
163
|
+
declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
164
|
+
|
|
165
|
+
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
166
|
+
|
|
167
|
+
declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
168
|
+
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
169
|
+
|
|
170
|
+
declare const Slider: React$1.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
171
|
+
|
|
172
|
+
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
173
|
+
|
|
174
|
+
declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): react_jsx_runtime.JSX.Element;
|
|
175
|
+
declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<"legend"> & {
|
|
176
|
+
variant?: "legend" | "label";
|
|
177
|
+
}): react_jsx_runtime.JSX.Element;
|
|
178
|
+
declare function FieldGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
179
|
+
declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
180
|
+
declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): react_jsx_runtime.JSX.Element;
|
|
181
|
+
declare function FieldTitle({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
182
|
+
declare function FieldDescription({ className, ...props }: React.ComponentProps<"p">): react_jsx_runtime.JSX.Element;
|
|
183
|
+
declare function FieldSeparator({ children, className, ...props }: React.ComponentProps<"div"> & {
|
|
184
|
+
children?: React.ReactNode;
|
|
185
|
+
}): react_jsx_runtime.JSX.Element;
|
|
186
|
+
declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<"div"> & {
|
|
187
|
+
errors?: Array<{
|
|
188
|
+
message?: string;
|
|
189
|
+
} | undefined>;
|
|
190
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
191
|
+
|
|
192
|
+
declare function InputGroup({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
193
|
+
declare const inputGroupAddonVariants: (props?: ({
|
|
194
|
+
align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
|
|
195
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
196
|
+
declare function InputGroupAddon({ className, align, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): react_jsx_runtime.JSX.Element;
|
|
197
|
+
declare const inputGroupButtonVariants: (props?: ({
|
|
198
|
+
size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
|
|
199
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
200
|
+
declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React$1.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): react_jsx_runtime.JSX.Element;
|
|
201
|
+
declare function InputGroupText({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
202
|
+
declare function InputGroupInput({ className, ...props }: React$1.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
|
|
203
|
+
declare function InputGroupTextarea({ className, ...props }: React$1.ComponentProps<"textarea">): react_jsx_runtime.JSX.Element;
|
|
204
|
+
|
|
205
|
+
export { BooleanField, Checkbox, ColorField, type ColorPreset, ColorSwatches, Field, type FieldConfig, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type FieldType, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, IconField, IconInput, Input, InputField, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Label, type LabelPosition, NumberField, ObjectField, type ObjectFieldProps, RadioGroup, RadioGroupItem, type RowConfig, Select, SelectContent, SelectField, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Slider, SliderNumber, Switch, Textarea, useFormField };
|