The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
refactor(ui): install the shadcn field primitive (#38126)
yuneng-jiang6147b3ce6ed6
diff --git a/ui/litellm-dashboard/eslint-suppressions.json b/ui/litellm-dashboard/eslint-suppressions.jsonindex 03de475c8c3..a647eedc354 100644--- a/ui/litellm-dashboard/eslint-suppressions.json+++ b/ui/litellm-dashboard/eslint-suppressions.json@@ -2018,11 +2018,6 @@"count": 1}},- "src/components/shared/form/field.tsx": {- "local/filename-pascal-case": {- "count": 1- }- },"src/components/shared/numerical_input.tsx": {"local/filename-pascal-case": {"count": 1@@ -2198,6 +2193,11 @@"count": 1}},+ "src/components/ui/field.tsx": {+ "local/filename-pascal-case": {+ "count": 1+ }+ },"src/components/ui/hover-card.tsx": {"local/filename-pascal-case": {"count": 1diff --git a/ui/litellm-dashboard/src/app/(dashboard)/access-groups/_components/AccessGroupsModal/AccessGroupBaseForm.tsx b/ui/litellm-dashboard/src/app/(dashboard)/access-groups/_components/AccessGroupsModal/AccessGroupBaseForm.tsxindex c9ba082f7a6..f8ec3b5e1e7 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/access-groups/_components/AccessGroupsModal/AccessGroupBaseForm.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/access-groups/_components/AccessGroupsModal/AccessGroupBaseForm.tsx@@ -7,7 +7,7 @@ import { z } from "zod/v4";import { useAgents } from "@/app/(dashboard)/hooks/agents/useAgents";import { useMCPServers } from "@/app/(dashboard)/hooks/mcpServers/useMCPServers";import { ModelSelect } from "@/components/ModelSelect/ModelSelect";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Input } from "@/components/ui/input";import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/access-groups/_components/access-group-create/AccessGroupCreateDialog.tsx b/ui/litellm-dashboard/src/app/(dashboard)/access-groups/_components/access-group-create/AccessGroupCreateDialog.tsxindex 624c85cc818..a7f2ee18521 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/access-groups/_components/access-group-create/AccessGroupCreateDialog.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/access-groups/_components/access-group-create/AccessGroupCreateDialog.tsx@@ -9,7 +9,7 @@ import { useAgents } from "@/app/(dashboard)/hooks/agents/useAgents";import { useMCPServers } from "@/app/(dashboard)/hooks/mcpServers/useMCPServers";import { ModelSelect } from "@/components/ModelSelect/ModelSelect";import { toast } from "@/lib/toast";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/admin-panel/_components/AdminPanel.tsx b/ui/litellm-dashboard/src/app/(dashboard)/admin-panel/_components/AdminPanel.tsxindex 976fb94acea..7dc3f57bd6f 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/admin-panel/_components/AdminPanel.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/admin-panel/_components/AdminPanel.tsx@@ -29,7 +29,7 @@ import {} from "@/components/Settings/AdminSettings/SSOSettings/Modals/BaseSSOSettingsForm";import UIAccessControlForm from "@/components/UIAccessControlForm";import { z } from "zod/v4";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Input } from "@/components/ui/input";import { useZodForm } from "@/lib/forms/useZodForm";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/AgentFormKit.tsx b/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/AgentFormKit.tsxindex e0152358f8c..15b85001cdc 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/AgentFormKit.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/AgentFormKit.tsx@@ -26,7 +26,7 @@ import {import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible";import { Input } from "@/components/ui/input";import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";-import { Field, FieldDescription, FieldError, FieldGroup, FieldLabel } from "@/components/shared/form/field";+import { Field, FieldDescription, FieldError, FieldGroup, FieldLabel } from "@/components/ui/field";export interface AgentSkillFormValue {id?: string;diff --git a/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/add_agent_form.tsx b/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/add_agent_form.tsxindex 9e8ea64fc45..51445ec1bdb 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/add_agent_form.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/add_agent_form.tsx@@ -15,7 +15,7 @@ import { Separator } from "@/components/ui/separator";import { Switch } from "@/components/ui/switch";import { Textarea } from "@/components/ui/textarea";import { TooltipProvider } from "@/components/ui/tooltip";-import { Field, FieldGroup, FieldLabel } from "@/components/shared/form/field";+import { Field, FieldGroup, FieldLabel } from "@/components/ui/field";import { SearchSelect } from "@/components/shared/SearchSelect";import {createAgentCall,diff --git a/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/agent_form_fields.tsx b/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/agent_form_fields.tsxindex 622e5ea7c5c..816df4d805c 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/agent_form_fields.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/agent_form_fields.tsx@@ -6,7 +6,7 @@ import { Input } from "@/components/ui/input";import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";import { Switch } from "@/components/ui/switch";import { Textarea } from "@/components/ui/textarea";-import { Field, FieldGroup, FieldTitle } from "@/components/shared/form/field";+import { Field, FieldGroup, FieldTitle } from "@/components/ui/field";import { AGENT_FORM_CONFIG, SKILL_FIELD_CONFIG } from "./agent_config";import CostConfigFields, { COST_FIELD_NAMES } from "./cost_config_fields";import {diff --git a/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/agent_info.tsx b/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/agent_info.tsxindex a8d78f9f53a..eddeeec674b 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/agent_info.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/agent_info.tsx@@ -8,7 +8,7 @@ import { Separator } from "@/components/ui/separator";import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";import { TooltipProvider } from "@/components/ui/tooltip";import { UiLoadingSpinner } from "@/components/ui/ui-loading-spinner";-import { Field, FieldGroup, FieldLabel } from "@/components/shared/form/field";+import { Field, FieldGroup, FieldLabel } from "@/components/ui/field";import { toast } from "@/lib/toast";import { ArrowLeft } from "lucide-react";import { getAgentInfo, patchAgentCall, getAgentCreateMetadata, AgentCreateInfo } from "@/components/networking";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/dynamic_agent_form_fields.tsx b/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/dynamic_agent_form_fields.tsxindex 85d066f4233..04a8b0df9d9 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/dynamic_agent_form_fields.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/dynamic_agent_form_fields.tsx@@ -2,7 +2,7 @@ import React from "react";import { Input } from "@/components/ui/input";import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";import { Textarea } from "@/components/ui/textarea";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { AgentCreateInfo, AgentCredentialFieldMetadata } from "@/components/networking";import { PasswordInput } from "@/components/shared/PasswordInput";import { AGENT_FORM_CONFIG } from "./agent_config";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/budgets/_components/budget_modal.tsx b/ui/litellm-dashboard/src/app/(dashboard)/budgets/_components/budget_modal.tsxindex 5761d7308cd..50f9c7cda3c 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/budgets/_components/budget_modal.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/budgets/_components/budget_modal.tsx@@ -4,7 +4,7 @@ import { z } from "zod/v4";import { useCreateBudget } from "@/app/(dashboard)/hooks/budgets/useBudgets";import { applyBudgetPrecision } from "./budgetPrecision";import { toast } from "@/lib/toast";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/budgets/_components/edit_budget_modal.tsx b/ui/litellm-dashboard/src/app/(dashboard)/budgets/_components/edit_budget_modal.tsxindex 3f9de881710..f4597a72fbb 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/budgets/_components/edit_budget_modal.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/budgets/_components/edit_budget_modal.tsx@@ -5,7 +5,7 @@ import { useUpdateBudget } from "@/app/(dashboard)/hooks/budgets/useBudgets";import { budgetItem } from "@/app/(dashboard)/hooks/budgets/useBudgets";import { applyBudgetPrecision } from "./budgetPrecision";import { toast } from "@/lib/toast";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/cost-optimization/_components/PromptCompressionTab.tsx b/ui/litellm-dashboard/src/app/(dashboard)/cost-optimization/_components/PromptCompressionTab.tsxindex 23700470683..eb0d1ada42e 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/cost-optimization/_components/PromptCompressionTab.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/cost-optimization/_components/PromptCompressionTab.tsx@@ -6,7 +6,7 @@ import { z } from "zod/v4";import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";import { createGuardrailCall, getGuardrailsList } from "@/components/networking";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import { Input } from "@/components/ui/input";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/cost-tracking/_components/add_margin_form.tsx b/ui/litellm-dashboard/src/app/(dashboard)/cost-tracking/_components/add_margin_form.tsxindex c307c176122..4b5c3e77252 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/cost-tracking/_components/add_margin_form.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/cost-tracking/_components/add_margin_form.tsx@@ -2,7 +2,7 @@ import React from "react";import { CircleHelp } from "lucide-react";import { Providers, provider_map } from "@/components/provider_info_helpers";import { Logo } from "@/components/molecules/logo/Logo";-import { Field, FieldLabel, FieldTitle } from "@/components/shared/form/field";+import { Field, FieldLabel, FieldTitle } from "@/components/ui/field";import { Button } from "@/components/ui/button";import {Combobox,diff --git a/ui/litellm-dashboard/src/app/(dashboard)/cost-tracking/_components/add_provider_form.tsx b/ui/litellm-dashboard/src/app/(dashboard)/cost-tracking/_components/add_provider_form.tsxindex 4f4edf6ff30..05748652180 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/cost-tracking/_components/add_provider_form.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/cost-tracking/_components/add_provider_form.tsx@@ -3,7 +3,7 @@ import { CircleHelp } from "lucide-react";import { Logo } from "@/components/molecules/logo/Logo";import { Providers, provider_map } from "@/components/provider_info_helpers";-import { Field, FieldGroup, FieldLabel } from "@/components/shared/form/field";+import { Field, FieldGroup, FieldLabel } from "@/components/ui/field";import { Button } from "@/components/ui/button";import {Combobox,diff --git a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/GuardrailFormField.tsx b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/GuardrailFormField.tsxindex 0edce78b8fd..0afd9aab0cf 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/GuardrailFormField.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/GuardrailFormField.tsx@@ -3,7 +3,7 @@import { CircleHelp } from "lucide-react";import React, { useId } from "react";import { useController, type Control, type ControllerRenderProps, type RegisterOptions } from "react-hook-form";-import { Field, FieldDescription, FieldError, FieldLabel } from "@/components/shared/form/field";+import { Field, FieldDescription, FieldError, FieldLabel } from "@/components/ui/field";import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/TeamGuardrailsTab.tsx b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/TeamGuardrailsTab.tsxindex c9de758f50d..fae21f8dfc4 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/TeamGuardrailsTab.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/TeamGuardrailsTab.tsx@@ -30,7 +30,7 @@ import TeamDropdown from "@/components/common_components/team_dropdown";import { useRegisterGuardrail } from "@/app/(dashboard)/hooks/guardrails/useRegisterGuardrail";import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized";import { isProxyAdminRole } from "@/utils/roles";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Input } from "@/components/ui/input";import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/add_guardrail_form.tsx b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/add_guardrail_form.tsxindex 47326786890..29df7c8bf3d 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/add_guardrail_form.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/add_guardrail_form.tsx@@ -25,7 +25,7 @@ import {} from "./guardrail_info_helpers";import { Logo } from "@/components/molecules/logo/Logo";import { MultiSelect } from "@/components/shared/MultiSelect";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { Button } from "@/components/ui/button";import {Combobox,diff --git a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/content_filter/CompetitorIntentConfiguration.tsx b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/content_filter/CompetitorIntentConfiguration.tsxindex d77dd216c2a..8445495246d 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/content_filter/CompetitorIntentConfiguration.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/content_filter/CompetitorIntentConfiguration.tsx@@ -1,7 +1,7 @@import React, { useEffect, useId, useState } from "react";import { getMajorAirlines } from "@/components/networking";-import { Field, FieldDescription, FieldGroup, FieldLabel } from "@/components/shared/form/field";+import { Field, FieldDescription, FieldGroup, FieldLabel } from "@/components/ui/field";import { Card, CardAction, CardContent, CardHeader, CardTitle } from "@/components/ui/card";import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";import { Switch } from "@/components/ui/switch";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_info.tsx b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_info.tsxindex 07e75511ecb..f1b5a0c61ec 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_info.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_info.tsx@@ -14,7 +14,7 @@ import React, { useCallback, useEffect, useLayoutEffect, useState } from "react"import { useForm } from "react-hook-form";import { toast } from "@/lib/toast";import { Logo } from "@/components/molecules/logo/Logo";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { Button } from "@/components/ui/button";import { Input } from "@/components/ui/input";import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_provider_fields.tsx b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_provider_fields.tsxindex 632c2a6b0df..76c91d4c176 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_provider_fields.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_provider_fields.tsx@@ -9,7 +9,7 @@ import { getGuardrailProviderSpecificParams } from "@/components/networking";import { MultiSelect } from "@/components/shared/MultiSelect";import { PasswordInput } from "@/components/shared/PasswordInput";import NumericalInput from "@/components/shared/numerical_input";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { Input } from "@/components/ui/input";import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";import { Slider } from "@/components/ui/slider";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/llm_judge/LLMJudgeFields.tsx b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/llm_judge/LLMJudgeFields.tsxindex a7a247e1495..256049975d3 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/llm_judge/LLMJudgeFields.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/llm_judge/LLMJudgeFields.tsx@@ -3,7 +3,7 @@import { Plus, X } from "lucide-react";import React from "react";import { useController } from "react-hook-form";-import { Field, FieldGroup, FieldLabel } from "@/components/shared/form/field";+import { Field, FieldGroup, FieldLabel } from "@/components/ui/field";import { Button } from "@/components/ui/button";import {Combobox,diff --git a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/MCPPermissionManagement.tsx b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/MCPPermissionManagement.tsxindex da264063839..cb423b435ae 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/MCPPermissionManagement.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/MCPPermissionManagement.tsx@@ -16,7 +16,7 @@ import {type MountedFormValues,} from "@/components/common_components/MountedFormField";import { requiredRule } from "@/components/common_components/formRules";-import { Field, FieldLabel } from "@/components/shared/form/field";+import { Field, FieldLabel } from "@/components/ui/field";import { invertedSwitchControl, switchControl, tagsControl, textControl } from "./mcpFieldRules";import { listControl } from "./mcpFormStore";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/MCPToolsetsTab.tsx b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/MCPToolsetsTab.tsxindex c077a513757..c637655d665 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/MCPToolsetsTab.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/MCPToolsetsTab.tsx@@ -14,7 +14,7 @@ import {getProxyBaseUrl,} from "@/components/networking";import { MCPToolset, MCPToolsetTool } from "@/components/mcp_tools/types";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import { Input } from "@/components/ui/input";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/ToolArgumentsForm.tsx b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/ToolArgumentsForm.tsxindex 14d69c358ba..90d38642a5d 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/ToolArgumentsForm.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/ToolArgumentsForm.tsx@@ -7,7 +7,7 @@ import { Input } from "@/components/ui/input";import { Textarea } from "@/components/ui/textarea";import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField, type FormFieldControlProps } from "@/components/shared/form/FormField";import { UiLoadingSpinner } from "@/components/ui/ui-loading-spinner";import type { InputSchemaProperty } from "@/components/mcp_tools/types";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/UserEnvVarsModal.tsx b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/UserEnvVarsModal.tsxindex 66b33ff2db8..5d871664314 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/UserEnvVarsModal.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/UserEnvVarsModal.tsx@@ -5,7 +5,7 @@ import { z } from "zod/v4";import { MCPServer, MCPUserEnvVarsStatus, MCPUserEnvVarSpec } from "@/components/mcp_tools/types";import { getMCPUserEnvVars, storeMCPUserEnvVars } from "@/components/networking";import { toast } from "@/lib/toast";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Alert, AlertTitle } from "@/components/shared/Alert";import { PasswordInput } from "@/components/shared/PasswordInput";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/memory/_components/MemoryEditModal.tsx b/ui/litellm-dashboard/src/app/(dashboard)/memory/_components/MemoryEditModal.tsxindex cd238406237..33b75286969 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/memory/_components/MemoryEditModal.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/memory/_components/MemoryEditModal.tsx@@ -5,7 +5,7 @@ import React, { useEffect, useState } from "react";import { z } from "zod/v4";import type { MemoryRow } from "@/components/networking";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Input } from "@/components/ui/input";import { Textarea } from "@/components/ui/textarea";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/policies/_components/add_attachment_form.tsx b/ui/litellm-dashboard/src/app/(dashboard)/policies/_components/add_attachment_form.tsxindex 83dee5c7075..06b11701b2a 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/policies/_components/add_attachment_form.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/policies/_components/add_attachment_form.tsx@@ -5,7 +5,7 @@ import { Policy } from "@/components/policies/types";import { teamListCall, keyListCall, modelAvailableCall, estimateAttachmentImpactCall } from "@/components/networking";import { toast } from "@/lib/toast";import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized";-import { FieldGroup, FieldLabel, FieldTitle } from "@/components/shared/form/field";+import { FieldGroup, FieldLabel, FieldTitle } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/policies/_components/add_policy_form.tsx b/ui/litellm-dashboard/src/app/(dashboard)/policies/_components/add_policy_form.tsxindex 403562bc7a3..097a6389721 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/policies/_components/add_policy_form.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/policies/_components/add_policy_form.tsx@@ -7,7 +7,7 @@ import { toast } from "@/lib/toast";import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized";import { MultiSelect } from "@/components/shared/MultiSelect";import { SearchSelect } from "@/components/shared/SearchSelect";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Badge } from "@/components/ui/badge";import { StatusBadge } from "@/components/shared/table_cells/status_badge";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/policies/_components/policy_test_panel.tsx b/ui/litellm-dashboard/src/app/(dashboard)/policies/_components/policy_test_panel.tsxindex b32a1b6a6e7..a89182d0a0e 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/policies/_components/policy_test_panel.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/policies/_components/policy_test_panel.tsx@@ -4,7 +4,7 @@ import { CircleAlert, Inbox } from "lucide-react";import { Alert, AlertDescription, AlertTitle } from "@/components/shared/Alert";import { resolvePoliciesCall, teamListCall, keyListCall, modelAvailableCall } from "@/components/networking";import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Badge } from "@/components/ui/badge";import { Button } from "@/components/ui/button";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/projects/_components/ProjectModals/ProjectBaseForm.tsx b/ui/litellm-dashboard/src/app/(dashboard)/projects/_components/ProjectModals/ProjectBaseForm.tsxindex a18b5ecfb98..fed1a88fe98 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/projects/_components/ProjectModals/ProjectBaseForm.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/projects/_components/ProjectModals/ProjectBaseForm.tsx@@ -14,7 +14,7 @@ import { getGuardrailsList } from "@/components/networking";import { TagsInput } from "@/app/(dashboard)/guardrails/_components/content_filter/TagsInput";import { Alert, AlertTitle } from "@/components/shared/Alert";import { SearchSelect } from "@/components/shared/SearchSelect";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/prompts/_components/add_prompt_form.tsx b/ui/litellm-dashboard/src/app/(dashboard)/prompts/_components/add_prompt_form.tsxindex 2deda4b30ee..65079a55f85 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/prompts/_components/add_prompt_form.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/prompts/_components/add_prompt_form.tsx@@ -3,7 +3,7 @@ import { Upload as UploadIcon, X } from "lucide-react";import { z } from "zod/v4";import { convertPromptFileToJson, createPromptCall } from "@/components/networking";import { toast } from "@/lib/toast";-import { Field, FieldDescription, FieldGroup, FieldSeparator, FieldTitle } from "@/components/shared/form/field";+import { Field, FieldDescription, FieldGroup, FieldSeparator, FieldTitle } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import { Input } from "@/components/ui/input";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/search-tools/_components/CreateSearchTools.tsx b/ui/litellm-dashboard/src/app/(dashboard)/search-tools/_components/CreateSearchTools.tsxindex 57148ee3a21..c094cd903fc 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/search-tools/_components/CreateSearchTools.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/search-tools/_components/CreateSearchTools.tsx@@ -8,7 +8,7 @@ import { Logo } from "@/components/molecules/logo/Logo";import { toast } from "@/lib/toast";import { createSearchTool, fetchAvailableSearchProviders } from "@/components/networking";import { PasswordInput } from "@/components/shared/PasswordInput";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import {diff --git a/ui/litellm-dashboard/src/app/(dashboard)/search-tools/_components/SearchTools.tsx b/ui/litellm-dashboard/src/app/(dashboard)/search-tools/_components/SearchTools.tsxindex e171ed9969b..eddee602f0b 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/search-tools/_components/SearchTools.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/search-tools/_components/SearchTools.tsx@@ -11,7 +11,7 @@ import {updateSearchTool,} from "@/components/networking";import { PasswordInput } from "@/components/shared/PasswordInput";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import { Input } from "@/components/ui/input";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/skills/_components/add_plugin_form.tsx b/ui/litellm-dashboard/src/app/(dashboard)/skills/_components/add_plugin_form.tsxindex b3e47a63dc6..70669ffc0cc 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/skills/_components/add_plugin_form.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/skills/_components/add_plugin_form.tsx@@ -3,7 +3,7 @@ import { CircleHelp } from "lucide-react";import { z } from "zod/v4";import { toast } from "@/lib/toast";import { registerClaudeCodePlugin } from "@/components/networking";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import { UiLoadingSpinner } from "@/components/ui/ui-loading-spinner";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/tag-management/_components/components/CreateTagModal.tsx b/ui/litellm-dashboard/src/app/(dashboard)/tag-management/_components/components/CreateTagModal.tsxindex 55b8752aab0..6f6bdcb6fe4 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/tag-management/_components/components/CreateTagModal.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/tag-management/_components/components/CreateTagModal.tsx@@ -4,7 +4,7 @@ import { ChevronRight, CircleHelp } from "lucide-react";import React from "react";import { z } from "zod/v4";import BudgetDurationDropdown from "@/components/common_components/budget_duration_dropdown";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";import { MultiSelect } from "@/components/shared/MultiSelect";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/tag-management/_components/tag_info.tsx b/ui/litellm-dashboard/src/app/(dashboard)/tag-management/_components/tag_info.tsxindex 6397d3e2819..e8cb358c0cf 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/tag-management/_components/tag_info.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/tag-management/_components/tag_info.tsx@@ -10,7 +10,7 @@ import { Tag, TagUpdateRequest } from "@/components/tag_management/types";import { toast } from "@/lib/toast";import NumericalInput from "@/components/shared/numerical_input";import BudgetDurationDropdown from "@/components/common_components/budget_duration_dropdown";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { MultiSelect } from "@/components/shared/MultiSelect";import { Badge } from "@/components/ui/badge";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/users/_components/default-user-settings/DefaultUserSettingsForm.tsx b/ui/litellm-dashboard/src/app/(dashboard)/users/_components/default-user-settings/DefaultUserSettingsForm.tsxindex d3eef4dcbbf..269f3b0af39 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/users/_components/default-user-settings/DefaultUserSettingsForm.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/users/_components/default-user-settings/DefaultUserSettingsForm.tsx@@ -8,7 +8,7 @@ import { useInfiniteTeams } from "@/app/(dashboard)/hooks/teams/useTeams";import { ModelSelect, MODEL_SENTINEL_OPTIONS } from "@/components/ModelSelect/ModelSelect";import { toast } from "@/lib/toast";import { PaginatedSearchSelect } from "@/components/shared/PaginatedSearchSelect";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import type { SearchSelectOption } from "@/components/shared/SearchSelect";import { Button } from "@/components/ui/button";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/users/_components/user_edit_view.tsx b/ui/litellm-dashboard/src/app/(dashboard)/users/_components/user_edit_view.tsxindex ed0c08adf38..96771dc6dc4 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/users/_components/user_edit_view.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/users/_components/user_edit_view.tsx@@ -10,7 +10,7 @@ import MCPServerSelector from "@/components/mcp_server_management/MCPServerSelecimport MCPToolPermissions from "@/components/mcp_server_management/MCPToolPermissions";import type { ObjectPermission } from "@/components/object_permission_types";import { MultiSelect } from "@/components/shared/MultiSelect";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import { Checkbox } from "@/components/ui/checkbox";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/users/_components/view_users/user_info_view.tsx b/ui/litellm-dashboard/src/app/(dashboard)/users/_components/view_users/user_info_view.tsxindex fdaa1ed3508..1b3f2c050b9 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/users/_components/view_users/user_info_view.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/users/_components/view_users/user_info_view.tsx@@ -18,7 +18,7 @@ import {Member,} from "@/components/networking";import { SimpleTooltip } from "@/components/ui/tooltip";-import { Field, FieldGroup, FieldLabel } from "@/components/shared/form/field";+import { Field, FieldGroup, FieldLabel } from "@/components/ui/field";import {Combobox,ComboboxContent,diff --git a/ui/litellm-dashboard/src/app/(dashboard)/vector-stores/_components/CreateVectorStore.tsx b/ui/litellm-dashboard/src/app/(dashboard)/vector-stores/_components/CreateVectorStore.tsxindex eae4a3fd799..9d447090381 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/vector-stores/_components/CreateVectorStore.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/vector-stores/_components/CreateVectorStore.tsx@@ -14,7 +14,7 @@ import {VectorStoreFieldConfig,} from "@/components/vector_store_providers";import { Logo } from "@/components/molecules/logo/Logo";-import { Field, FieldGroup, FieldLabel } from "@/components/shared/form/field";+import { Field, FieldGroup, FieldLabel } from "@/components/ui/field";import { Button } from "@/components/ui/button";import { Card, CardContent } from "@/components/ui/card";import { Input } from "@/components/ui/input";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/vector-stores/_components/S3VectorsConfig.tsx b/ui/litellm-dashboard/src/app/(dashboard)/vector-stores/_components/S3VectorsConfig.tsxindex 7243291d740..db549601212 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/vector-stores/_components/S3VectorsConfig.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/vector-stores/_components/S3VectorsConfig.tsx@@ -2,7 +2,7 @@ import React, { useState, useEffect } from "react";import { CircleHelp, Info } from "lucide-react";import { Alert, AlertDescription, AlertTitle } from "@/components/shared/Alert";import { fetchAvailableModels, ModelGroup } from "@/components/llm_calls/fetch_models";-import { Field, FieldError, FieldLabel } from "@/components/shared/form/field";+import { Field, FieldError, FieldLabel } from "@/components/ui/field";import {Combobox,ComboboxContent,diff --git a/ui/litellm-dashboard/src/app/(dashboard)/vector-stores/_components/VectorStoreForm.tsx b/ui/litellm-dashboard/src/app/(dashboard)/vector-stores/_components/VectorStoreForm.tsxindex 0c7d8cebb4b..be0954a7d24 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/vector-stores/_components/VectorStoreForm.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/vector-stores/_components/VectorStoreForm.tsx@@ -15,7 +15,7 @@ import {import { Logo } from "@/components/molecules/logo/Logo";import { fetchAvailableModels, ModelGroup } from "@/components/llm_calls/fetch_models";import { toast } from "@/lib/toast";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import {diff --git a/ui/litellm-dashboard/src/app/(dashboard)/vector-stores/_components/vector_store_info.tsx b/ui/litellm-dashboard/src/app/(dashboard)/vector-stores/_components/vector_store_info.tsxindex 638122a89e7..60e6154a951 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/vector-stores/_components/vector_store_info.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/vector-stores/_components/vector_store_info.tsx@@ -13,7 +13,7 @@ import { getVectorStoreProviderLogoAndName } from "@/components/vector_store_proimport { Logo } from "@/components/molecules/logo/Logo";import VectorStoreTester from "./VectorStoreTester";import { toast } from "@/lib/toast";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Badge } from "@/components/ui/badge";import { Button } from "@/components/ui/button";diff --git a/ui/litellm-dashboard/src/app/login/LoginPage.tsx b/ui/litellm-dashboard/src/app/login/LoginPage.tsxindex 3a1d120c8a5..11cf5ffad3d 100644--- a/ui/litellm-dashboard/src/app/login/LoginPage.tsx+++ b/ui/litellm-dashboard/src/app/login/LoginPage.tsx@@ -6,7 +6,7 @@ import LoadingScreen from "@/components/common_components/LoadingScreen";import { exchangeLoginCode, getProxyBaseUrl, switchToWorkerUrl } from "@/components/networking";import { Alert, AlertAction, AlertDescription, AlertTitle } from "@/components/shared/Alert";import { PasswordInput } from "@/components/shared/PasswordInput";-import { Field, FieldGroup, FieldLabel } from "@/components/shared/form/field";+import { Field, FieldGroup, FieldLabel } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import { Card, CardContent } from "@/components/ui/card";diff --git a/ui/litellm-dashboard/src/app/onboarding/OnboardingFormBody.tsx b/ui/litellm-dashboard/src/app/onboarding/OnboardingFormBody.tsxindex 77fae186c90..96eb165d43c 100644--- a/ui/litellm-dashboard/src/app/onboarding/OnboardingFormBody.tsx+++ b/ui/litellm-dashboard/src/app/onboarding/OnboardingFormBody.tsx@@ -3,7 +3,7 @@ import { CircleAlert, Info } from "lucide-react";import { z } from "zod/v4";import { Alert, AlertDescription, AlertTitle } from "@/components/shared/Alert";import { PasswordInput } from "@/components/shared/PasswordInput";-import { Field, FieldLabel, FieldGroup } from "@/components/shared/form/field";+import { Field, FieldLabel, FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button, buttonVariants } from "@/components/ui/button";import { Card, CardContent } from "@/components/ui/card";diff --git a/ui/litellm-dashboard/src/components/CloudZeroCostTracking/CloudZeroCreateModal.tsx b/ui/litellm-dashboard/src/components/CloudZeroCostTracking/CloudZeroCreateModal.tsxindex 5d89386493d..5b3c4b52b19 100644--- a/ui/litellm-dashboard/src/components/CloudZeroCostTracking/CloudZeroCreateModal.tsx+++ b/ui/litellm-dashboard/src/components/CloudZeroCostTracking/CloudZeroCreateModal.tsx@@ -3,7 +3,7 @@ import { z } from "zod/v4";import { useCloudZeroCreate } from "@/app/(dashboard)/hooks/cloudzero/useCloudZeroCreate";import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Input } from "@/components/ui/input";import { TooltipProvider } from "@/components/ui/tooltip";diff --git a/ui/litellm-dashboard/src/components/CloudZeroCostTracking/CloudZeroUpdateModal.tsx b/ui/litellm-dashboard/src/components/CloudZeroCostTracking/CloudZeroUpdateModal.tsxindex ceee32df4aa..34cf1b87717 100644--- a/ui/litellm-dashboard/src/components/CloudZeroCostTracking/CloudZeroUpdateModal.tsx+++ b/ui/litellm-dashboard/src/components/CloudZeroCostTracking/CloudZeroUpdateModal.tsx@@ -3,7 +3,7 @@ import { z } from "zod/v4";import { useCloudZeroUpdateSettings } from "@/app/(dashboard)/hooks/cloudzero/useCloudZeroSettings";import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Input } from "@/components/ui/input";import { TooltipProvider } from "@/components/ui/tooltip";diff --git a/ui/litellm-dashboard/src/components/CreateUserButton.tsx b/ui/litellm-dashboard/src/components/CreateUserButton.tsxindex 52db83b5dc6..e052a9e0818 100644--- a/ui/litellm-dashboard/src/components/CreateUserButton.tsx+++ b/ui/litellm-dashboard/src/components/CreateUserButton.tsx@@ -1,7 +1,7 @@import { useQueryClient } from "@tanstack/react-query";import { useOrganizations } from "@/app/(dashboard)/hooks/organizations/useOrganizations";import { MultiSelect } from "@/components/shared/MultiSelect";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import { Checkbox } from "@/components/ui/checkbox";diff --git a/ui/litellm-dashboard/src/components/SCIM.tsx b/ui/litellm-dashboard/src/components/SCIM.tsxindex 190887352a5..12b47aeee6a 100644--- a/ui/litellm-dashboard/src/components/SCIM.tsx+++ b/ui/litellm-dashboard/src/components/SCIM.tsx@@ -6,7 +6,7 @@ import { CircleAlert, CirclePlus, Copy, Info, KeyRound, Link } from "lucide-reacimport { parseErrorMessage } from "./shared/errorUtils";import { toast } from "@/lib/toast";import { Alert, AlertDescription, AlertTitle } from "@/components/shared/Alert";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import { Card, CardContent, CardTitle } from "@/components/ui/card";diff --git a/ui/litellm-dashboard/src/components/SSOModals.tsx b/ui/litellm-dashboard/src/components/SSOModals.tsxindex e20d6ab3093..609c0efcd99 100644--- a/ui/litellm-dashboard/src/components/SSOModals.tsx+++ b/ui/litellm-dashboard/src/components/SSOModals.tsx@@ -4,7 +4,7 @@ import { getSSOSettings, updateSSOSettings } from "./networking";import { toast } from "@/lib/toast";import { parseErrorMessage } from "./shared/errorUtils";import { Button } from "@/components/ui/button";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import {GroupClaimField,MappingToggleField,diff --git a/ui/litellm-dashboard/src/components/Settings/AdminSettings/HashicorpVault/EditHashicorpVaultModal.tsx b/ui/litellm-dashboard/src/components/Settings/AdminSettings/HashicorpVault/EditHashicorpVaultModal.tsxindex 41d41e64da0..33aac24a1ba 100644--- a/ui/litellm-dashboard/src/components/Settings/AdminSettings/HashicorpVault/EditHashicorpVaultModal.tsx+++ b/ui/litellm-dashboard/src/components/Settings/AdminSettings/HashicorpVault/EditHashicorpVaultModal.tsx@@ -6,7 +6,7 @@ import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized";import { toast } from "@/lib/toast";import React, { useMemo } from "react";import { z } from "zod/v4";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { PasswordInput } from "@/components/shared/PasswordInput";import { Button } from "@/components/ui/button";diff --git a/ui/litellm-dashboard/src/components/Settings/AdminSettings/LoggingSettings/LoggingSettings.tsx b/ui/litellm-dashboard/src/components/Settings/AdminSettings/LoggingSettings/LoggingSettings.tsxindex a9702451035..3ec18a537c9 100644--- a/ui/litellm-dashboard/src/components/Settings/AdminSettings/LoggingSettings/LoggingSettings.tsx+++ b/ui/litellm-dashboard/src/components/Settings/AdminSettings/LoggingSettings/LoggingSettings.tsx@@ -12,7 +12,7 @@ import {} from "@/app/(dashboard)/hooks/storeRequestInSpendLogs/useStoreRequestInSpendLogs";import { toast } from "@/lib/toast";import { parseErrorMessage } from "@/components/shared/errorUtils";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import { Input } from "@/components/ui/input";diff --git a/ui/litellm-dashboard/src/components/Settings/AdminSettings/MCPSemanticFilterSettings/MCPSemanticFilterSettings.tsx b/ui/litellm-dashboard/src/components/Settings/AdminSettings/MCPSemanticFilterSettings/MCPSemanticFilterSettings.tsxindex f7ec5238a9d..390684d3739 100644--- a/ui/litellm-dashboard/src/components/Settings/AdminSettings/MCPSemanticFilterSettings/MCPSemanticFilterSettings.tsx+++ b/ui/litellm-dashboard/src/components/Settings/AdminSettings/MCPSemanticFilterSettings/MCPSemanticFilterSettings.tsx@@ -9,7 +9,7 @@ import { Alert, AlertAction, AlertDescription, AlertTitle } from "@/components/simport { useEffect, useState } from "react";import { useForm } from "react-hook-form";import { fetchAvailableModels, ModelGroup } from "@/components/llm_calls/fetch_models";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { SearchSelect } from "@/components/shared/SearchSelect";import { Button } from "@/components/ui/button";diff --git a/ui/litellm-dashboard/src/components/Settings/AdminSettings/PluginSettings/PluginSettings.tsx b/ui/litellm-dashboard/src/components/Settings/AdminSettings/PluginSettings/PluginSettings.tsxindex 90a253b9ebe..e468fc2d91a 100644--- a/ui/litellm-dashboard/src/components/Settings/AdminSettings/PluginSettings/PluginSettings.tsx+++ b/ui/litellm-dashboard/src/components/Settings/AdminSettings/PluginSettings/PluginSettings.tsx@@ -5,7 +5,7 @@ import { Button } from "@/components/ui/button";import { Eye, EyeOff, Pencil, Plus, Trash2 } from "lucide-react";import { getConfigFieldSetting, updateConfigFieldSetting } from "@/components/networking";import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Card, CardContent, CardHeader } from "@/components/ui/card";import { Input } from "@/components/ui/input";diff --git a/ui/litellm-dashboard/src/components/Settings/AdminSettings/SSOSettings/Modals/BaseSSOSettingsForm.tsx b/ui/litellm-dashboard/src/components/Settings/AdminSettings/SSOSettings/Modals/BaseSSOSettingsForm.tsxindex 26d0785529c..5216da382d0 100644--- a/ui/litellm-dashboard/src/components/Settings/AdminSettings/SSOSettings/Modals/BaseSSOSettingsForm.tsx+++ b/ui/litellm-dashboard/src/components/Settings/AdminSettings/SSOSettings/Modals/BaseSSOSettingsForm.tsx@@ -5,7 +5,7 @@ import { FormProvider, useFormContext, useWatch, type UseFormReturn } from "reacimport { z } from "zod/v4";import { ssoProviderLogoMap, ssoProviderDisplayNames } from "../constants";import { Logo } from "@/components/molecules/logo/Logo";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { PasswordInput } from "@/components/shared/PasswordInput";import { Checkbox } from "@/components/ui/checkbox";diff --git a/ui/litellm-dashboard/src/components/Teams.tsx b/ui/litellm-dashboard/src/components/Teams.tsxindex a93a8545375..e2eda4adb23 100644--- a/ui/litellm-dashboard/src/components/Teams.tsx+++ b/ui/litellm-dashboard/src/components/Teams.tsx@@ -9,7 +9,7 @@ import { Input as UIInput } from "@/components/ui/input";import { Switch } from "@/components/ui/switch";import { Textarea } from "@/components/ui/textarea";import { TooltipProvider } from "@/components/ui/tooltip";-import { Field, FieldDescription, FieldGroup, FieldLabel } from "@/components/shared/form/field";+import { Field, FieldDescription, FieldGroup, FieldLabel } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { SearchSelect } from "@/components/shared/SearchSelect";import { labelWithDocsHint, labelWithHint } from "@/components/shared/form/LabelWithHint";diff --git a/ui/litellm-dashboard/src/components/UIAccessControlForm.tsx b/ui/litellm-dashboard/src/components/UIAccessControlForm.tsxindex 8d85d46d011..ed502e8d761 100644--- a/ui/litellm-dashboard/src/components/UIAccessControlForm.tsx+++ b/ui/litellm-dashboard/src/components/UIAccessControlForm.tsx@@ -3,7 +3,7 @@ import React, { useEffect, useState } from "react";import { useWatch } from "react-hook-form";import { z } from "zod/v4";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import { Input } from "@/components/ui/input";diff --git a/ui/litellm-dashboard/src/components/add_model/AddModelForm.tsx b/ui/litellm-dashboard/src/components/add_model/AddModelForm.tsxindex 7e084a532f4..b6884327a3c 100644--- a/ui/litellm-dashboard/src/components/add_model/AddModelForm.tsx+++ b/ui/litellm-dashboard/src/components/add_model/AddModelForm.tsx@@ -4,7 +4,7 @@ import { useTags } from "@/app/(dashboard)/hooks/tags/useTags";import { all_admin_roles, isUserTeamAdminForAnyTeam } from "@/utils/roles";import { modelCreationScope } from "@/utils/modelPermissions";import { Switch } from "@/components/ui/switch";-import { Field, FieldLabel } from "@/components/shared/form/field";+import { Field, FieldLabel } from "@/components/ui/field";import { Card, CardContent } from "@/components/ui/card";import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";import { SearchSelect, type SearchSelectOption } from "@/components/shared/SearchSelect";diff --git a/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.tsx b/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.tsxindex 46ab0bc2c9f..9be5391040a 100644--- a/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.tsx+++ b/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.tsx@@ -3,7 +3,7 @@ import { useQuery } from "@tanstack/react-query";import { useWatch } from "react-hook-form";import { ChevronDown, ChevronRight, CircleHelp } from "lucide-react";import { z } from "zod/v4";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import { Card, CardContent } from "@/components/ui/card";diff --git a/ui/litellm-dashboard/src/components/cloudzero_export_modal.tsx b/ui/litellm-dashboard/src/components/cloudzero_export_modal.tsxindex 81d62fc398e..91ba75552dc 100644--- a/ui/litellm-dashboard/src/components/cloudzero_export_modal.tsx+++ b/ui/litellm-dashboard/src/components/cloudzero_export_modal.tsx@@ -5,7 +5,7 @@ import { getGlobalLitellmHeaderName } from "@/components/networking";import { toast } from "@/lib/toast";import { Alert, AlertDescription, AlertTitle } from "@/components/shared/Alert";import { PasswordInput } from "@/components/shared/PasswordInput";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import { Input } from "@/components/ui/input";diff --git a/ui/litellm-dashboard/src/components/common_components/MountedFormField.tsx b/ui/litellm-dashboard/src/components/common_components/MountedFormField.tsxindex f0efa885d92..65f603b7efd 100644--- a/ui/litellm-dashboard/src/components/common_components/MountedFormField.tsx+++ b/ui/litellm-dashboard/src/components/common_components/MountedFormField.tsx@@ -9,7 +9,7 @@ import {type UseFormGetValues,} from "react-hook-form";-import { Field, FieldDescription, FieldError, FieldLabel } from "@/components/shared/form/field";+import { Field, FieldDescription, FieldError, FieldLabel } from "@/components/ui/field";export type MountedFormValues = Record<string, unknown>;diff --git a/ui/litellm-dashboard/src/components/common_components/PassThroughGuardrailsSection.tsx b/ui/litellm-dashboard/src/components/common_components/PassThroughGuardrailsSection.tsxindex c210ab3f9fd..a98dca885ca 100644--- a/ui/litellm-dashboard/src/components/common_components/PassThroughGuardrailsSection.tsx+++ b/ui/litellm-dashboard/src/components/common_components/PassThroughGuardrailsSection.tsx@@ -4,7 +4,7 @@ import { Alert, AlertDescription, AlertTitle } from "@/components/shared/Alert";import GuardrailSelector from "../guardrails/GuardrailSelector";import { TagsInput } from "@/app/(dashboard)/guardrails/_components/content_filter/TagsInput";-import { Field, FieldLabel } from "@/components/shared/form/field";+import { Field, FieldLabel } from "@/components/ui/field";import { Button } from "@/components/ui/button";import { Card } from "@/components/ui/card";import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";diff --git a/ui/litellm-dashboard/src/components/common_components/user_search_modal.tsx b/ui/litellm-dashboard/src/components/common_components/user_search_modal.tsxindex 2977a9e4941..3e2d3693d4f 100644--- a/ui/litellm-dashboard/src/components/common_components/user_search_modal.tsx+++ b/ui/litellm-dashboard/src/components/common_components/user_search_modal.tsx@@ -5,7 +5,7 @@ import { useDebouncedCallback } from "@tanstack/react-pacer/debouncer";import { useForm } from "react-hook-form";import { userFilterUICall } from "@/components/networking";import { DEBOUNCE_WAIT_MS } from "@/utils/debounceConstants";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import {diff --git a/ui/litellm-dashboard/src/components/edit_auto_router/edit_auto_router_modal.tsx b/ui/litellm-dashboard/src/components/edit_auto_router/edit_auto_router_modal.tsxindex 811ff69642a..8e5317d9c1f 100644--- a/ui/litellm-dashboard/src/components/edit_auto_router/edit_auto_router_modal.tsx+++ b/ui/litellm-dashboard/src/components/edit_auto_router/edit_auto_router_modal.tsx@@ -2,7 +2,7 @@ import React, { useEffect, useMemo, useState } from "react";import { z } from "zod/v4";import { toast } from "@/lib/toast";import { CircleHelp } from "lucide-react";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import { Input } from "@/components/ui/input";diff --git a/ui/litellm-dashboard/src/components/key_team_helpers/ModelMaxBudgetEditor.tsx b/ui/litellm-dashboard/src/components/key_team_helpers/ModelMaxBudgetEditor.tsxindex c6e6a1a1495..ef5a3e15b52 100644--- a/ui/litellm-dashboard/src/components/key_team_helpers/ModelMaxBudgetEditor.tsx+++ b/ui/litellm-dashboard/src/components/key_team_helpers/ModelMaxBudgetEditor.tsx@@ -1,5 +1,5 @@import { SearchSelect } from "@/components/shared/SearchSelect";-import { Field, FieldLabel } from "@/components/shared/form/field";+import { Field, FieldLabel } from "@/components/ui/field";import { Button } from "@/components/ui/button";import { InputGroup, InputGroupAddon, InputGroupInput, InputGroupText } from "@/components/ui/input-group";import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";diff --git a/ui/litellm-dashboard/src/components/mcp_tools/MCPToolArgumentsForm.tsx b/ui/litellm-dashboard/src/components/mcp_tools/MCPToolArgumentsForm.tsxindex f0b211aecb3..ca8c5697e6e 100644--- a/ui/litellm-dashboard/src/components/mcp_tools/MCPToolArgumentsForm.tsx+++ b/ui/litellm-dashboard/src/components/mcp_tools/MCPToolArgumentsForm.tsx@@ -1,7 +1,7 @@import React, { forwardRef, useImperativeHandle, useMemo } from "react";import { CircleHelp } from "lucide-react";import { useForm, type Resolver } from "react-hook-form";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Input } from "@/components/ui/input";import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";diff --git a/ui/litellm-dashboard/src/components/model_add/reuse_credentials.tsx b/ui/litellm-dashboard/src/components/model_add/reuse_credentials.tsxindex f67413ebee7..772e52dd0a5 100644--- a/ui/litellm-dashboard/src/components/model_add/reuse_credentials.tsx+++ b/ui/litellm-dashboard/src/components/model_add/reuse_credentials.tsx@@ -1,6 +1,6 @@import React from "react";import { z } from "zod/v4";-import { Field, FieldGroup, FieldLabel } from "@/components/shared/form/field";+import { Field, FieldGroup, FieldLabel } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import { Input } from "@/components/ui/input";diff --git a/ui/litellm-dashboard/src/components/model_dashboard/ModelSettingsModal/ModelSettingsModal.tsx b/ui/litellm-dashboard/src/components/model_dashboard/ModelSettingsModal/ModelSettingsModal.tsxindex 65f607a897f..699d77ccc47 100644--- a/ui/litellm-dashboard/src/components/model_dashboard/ModelSettingsModal/ModelSettingsModal.tsx+++ b/ui/litellm-dashboard/src/components/model_dashboard/ModelSettingsModal/ModelSettingsModal.tsx@@ -4,7 +4,7 @@ import { ConfigType, useProxyConfig } from "@/app/(dashboard)/hooks/proxyConfig/import { StoreModelInDBParams, useStoreModelInDB } from "@/app/(dashboard)/hooks/storeModelInDB/useStoreModelInDB";import { toast } from "@/lib/toast";import { parseErrorMessage } from "@/components/shared/errorUtils";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Switch } from "@/components/ui/switch";import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";diff --git a/ui/litellm-dashboard/src/components/organisms/RegenerateKeyModal.tsx b/ui/litellm-dashboard/src/components/organisms/RegenerateKeyModal.tsxindex a2658985f32..84724d01a1d 100644--- a/ui/litellm-dashboard/src/components/organisms/RegenerateKeyModal.tsx+++ b/ui/litellm-dashboard/src/components/organisms/RegenerateKeyModal.tsx@@ -10,7 +10,7 @@ import { z } from "zod/v4";import { KeyResponse } from "../key_team_helpers/key_list";import { toast } from "@/lib/toast";import { regenerateKeyCall } from "../networking";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Input } from "@/components/ui/input";import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";diff --git a/ui/litellm-dashboard/src/components/organisms/create_key_button.tsx b/ui/litellm-dashboard/src/components/organisms/create_key_button.tsxindex 011cdf33f3a..e1e6dcfa442 100644--- a/ui/litellm-dashboard/src/components/organisms/create_key_button.tsx+++ b/ui/litellm-dashboard/src/components/organisms/create_key_button.tsx@@ -11,7 +11,7 @@ import { useQueryClient } from "@tanstack/react-query";import { Button } from "@/components/ui/button";import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible";import { Input } from "@/components/ui/input";-import { Field, FieldLabel } from "@/components/shared/form/field";+import { Field, FieldLabel } from "@/components/ui/field";import { Badge } from "@/components/ui/badge";import {Combobox,diff --git a/ui/litellm-dashboard/src/components/organization/org-create/OrgCreateDialog.tsx b/ui/litellm-dashboard/src/components/organization/org-create/OrgCreateDialog.tsxindex e9d9ba0dcf8..93d552bebe0 100644--- a/ui/litellm-dashboard/src/components/organization/org-create/OrgCreateDialog.tsx+++ b/ui/litellm-dashboard/src/components/organization/org-create/OrgCreateDialog.tsx@@ -7,7 +7,7 @@ import { organizationKeys } from "@/app/(dashboard)/hooks/organizations/useOrganimport { ModelSelect } from "@/components/ModelSelect/ModelSelect";import MCPServerSelector from "@/components/mcp_server_management/MCPServerSelector";import { toast } from "@/lib/toast";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog";diff --git a/ui/litellm-dashboard/src/components/organization/org-settings/OrgSettingsForm.tsx b/ui/litellm-dashboard/src/components/organization/org-settings/OrgSettingsForm.tsxindex a1b42493b77..926b8943a79 100644--- a/ui/litellm-dashboard/src/components/organization/org-settings/OrgSettingsForm.tsx+++ b/ui/litellm-dashboard/src/components/organization/org-settings/OrgSettingsForm.tsx@@ -8,7 +8,7 @@ import { ModelSelect } from "@/components/ModelSelect/ModelSelect";import MCPServerSelector from "@/components/mcp_server_management/MCPServerSelector";import { toast } from "@/lib/toast";import type { Organization } from "@/components/networking";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Button } from "@/components/ui/button";import { Input } from "@/components/ui/input";diff --git a/ui/litellm-dashboard/src/components/routing_groups/RoutingGroupModal.tsx b/ui/litellm-dashboard/src/components/routing_groups/RoutingGroupModal.tsxindex 8b7361fb572..442275c32f6 100644--- a/ui/litellm-dashboard/src/components/routing_groups/RoutingGroupModal.tsx+++ b/ui/litellm-dashboard/src/components/routing_groups/RoutingGroupModal.tsx@@ -3,7 +3,7 @@import React, { useEffect, useMemo } from "react";import { useWatch } from "react-hook-form";import { z } from "zod/v4";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import {Combobox,diff --git a/ui/litellm-dashboard/src/components/settings.tsx b/ui/litellm-dashboard/src/components/settings.tsxindex 1b1bad88d51..e6337cef9bd 100644--- a/ui/litellm-dashboard/src/components/settings.tsx+++ b/ui/litellm-dashboard/src/components/settings.tsx@@ -1,7 +1,7 @@import React, { useEffect, useState } from "react";import { Controller, FormProvider, useForm, useFormContext } from "react-hook-form";-import { Field, FieldError, FieldLabel } from "@/components/shared/form/field";+import { Field, FieldError, FieldLabel } from "@/components/ui/field";import { Button } from "@/components/ui/button";import { Card } from "@/components/ui/card";import {diff --git a/ui/litellm-dashboard/src/components/shared/form/FormField.tsx b/ui/litellm-dashboard/src/components/shared/form/FormField.tsxindex 3b9783333cc..cb8ef5375fd 100644--- a/ui/litellm-dashboard/src/components/shared/form/FormField.tsx+++ b/ui/litellm-dashboard/src/components/shared/form/FormField.tsx@@ -9,7 +9,7 @@ import {type FieldValues,} from "react-hook-form";-import { Field, FieldDescription, FieldError, FieldLabel } from "./field";+import { Field, FieldDescription, FieldError, FieldLabel } from "@/components/ui/field";export type FormFieldControlProps<TFieldValues extends FieldValues,diff --git a/ui/litellm-dashboard/src/components/team/EditMembership.tsx b/ui/litellm-dashboard/src/components/team/EditMembership.tsxindex 96ebb5fe0fd..036c4f1cc0b 100644--- a/ui/litellm-dashboard/src/components/team/EditMembership.tsx+++ b/ui/litellm-dashboard/src/components/team/EditMembership.tsx@@ -2,7 +2,7 @@ import React, { useEffect, useMemo, useState } from "react";import { z } from "zod/v4";import NumericalInput from "../shared/numerical_input";import BudgetDurationDropdown from "../common_components/budget_duration_dropdown";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { MultiSelect } from "@/components/shared/MultiSelect";import { Button } from "@/components/ui/button";diff --git a/ui/litellm-dashboard/src/components/team/TeamInfo.tsx b/ui/litellm-dashboard/src/components/team/TeamInfo.tsxindex 88a893fd3e4..5750add95e3 100644--- a/ui/litellm-dashboard/src/components/team/TeamInfo.tsx+++ b/ui/litellm-dashboard/src/components/team/TeamInfo.tsx@@ -31,7 +31,7 @@ import { Switch } from "@/components/ui/switch";import { Textarea } from "@/components/ui/textarea";import { SimpleTooltip, TooltipProvider } from "@/components/ui/tooltip";import { UiLoadingSpinner } from "@/components/ui/ui-loading-spinner";-import { Field, FieldDescription, FieldGroup, FieldLabel } from "@/components/shared/form/field";+import { Field, FieldDescription, FieldGroup, FieldLabel } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { labelWithDocsHint, labelWithHint } from "@/components/shared/form/LabelWithHint";import { MultiSelect } from "@/components/shared/MultiSelect";diff --git a/ui/litellm-dashboard/src/components/templates/key_edit_view.tsx b/ui/litellm-dashboard/src/components/templates/key_edit_view.tsxindex 59d003690d3..8f3f6e19ae8 100644--- a/ui/litellm-dashboard/src/components/templates/key_edit_view.tsx+++ b/ui/litellm-dashboard/src/components/templates/key_edit_view.tsx@@ -10,7 +10,7 @@ import { Switch } from "@/components/ui/switch";import { Textarea } from "@/components/ui/textarea";import { TooltipProvider } from "@/components/ui/tooltip";import { UiLoadingSpinner } from "@/components/ui/ui-loading-spinner";-import { Field, FieldGroup, FieldLabel } from "@/components/shared/form/field";+import { Field, FieldGroup, FieldLabel } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import React, { useEffect, useRef, useState } from "react";import { hasCapability } from "../../utils/capabilities";diff --git a/ui/litellm-dashboard/src/components/shared/form/field.test.tsx b/ui/litellm-dashboard/src/components/ui/field.test.tsxsimilarity index 79%rename from ui/litellm-dashboard/src/components/shared/form/field.test.tsxrename to ui/litellm-dashboard/src/components/ui/field.test.tsxindex 54b589ce2f4..4bb3d0ec665 100644--- a/ui/litellm-dashboard/src/components/shared/form/field.test.tsx+++ b/ui/litellm-dashboard/src/components/ui/field.test.tsx@@ -123,3 +123,38 @@ describe("field primitives forward refs to their DOM node", () => {expect(ref.current).toBeInstanceOf(HTMLDivElement);});});++describe("FieldLabel wrapping a nested Field", () => {+ const NESTED_FIELD_CUES = [+ "has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50",+ "has-[>[data-slot=field]]:has-[:focus-visible]:border-ring",+ "has-[>[data-slot=field]]:has-[:focus-visible]:ring-3",+ "has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50",+ ];++ it("carries the hover, focus-visible and disabled cues the card layout depends on", () => {+ render(+ <FieldLabel data-testid="card-label">+ <Field>+ <input />+ </Field>+ </FieldLabel>,+ );++ expect(screen.getByTestId("card-label")).toHaveClass(...NESTED_FIELD_CUES);+ });++ it("keeps the cues addressable when a caller passes its own className", () => {+ render(+ <FieldLabel data-testid="card-label" className="mt-2">+ <Field>+ <input />+ </Field>+ </FieldLabel>,+ );+ const label = screen.getByTestId("card-label");++ expect(label).toHaveClass(...NESTED_FIELD_CUES);+ expect(label).toHaveClass("mt-2");+ });+});diff --git a/ui/litellm-dashboard/src/components/shared/form/field.tsx b/ui/litellm-dashboard/src/components/ui/field.tsxsimilarity index 59%rename from ui/litellm-dashboard/src/components/shared/form/field.tsxrename to ui/litellm-dashboard/src/components/ui/field.tsxindex a5bf896313a..ff9f73ceecf 100644--- a/ui/litellm-dashboard/src/components/shared/form/field.tsx+++ b/ui/litellm-dashboard/src/components/ui/field.tsx@@ -1,17 +1,15 @@"use client";-import * as React from "react";--import { Label } from "@/components/ui/label";-import { Separator } from "@/components/ui/separator";+import { useMemo } from "react";import { cva, type VariantProps } from "class-variance-authority";import { cn } from "@/lib/cva.config";+import { Label } from "@/components/ui/label";+import { Separator } from "@/components/ui/separator";-const FieldSet = React.forwardRef<HTMLFieldSetElement, React.ComponentPropsWithoutRef<"fieldset">>(- ({ className, ...props }, ref) => (+function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">) {+ return (<fieldset- ref={ref}data-slot="field-set"className={cn("flex flex-col gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",@@ -19,28 +17,27 @@ const FieldSet = React.forwardRef<HTMLFieldSetElement, React.ComponentPropsWitho)}{...props}/>- ),-);-FieldSet.displayName = "FieldSet";--const FieldLegend = React.forwardRef<- HTMLLegendElement,- React.ComponentPropsWithoutRef<"legend"> & { variant?: "legend" | "label" }->(({ className, variant = "legend", ...props }, ref) => (- <legend- ref={ref}- data-slot="field-legend"- data-variant={variant}- className={cn("mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base", className)}- {...props}- />-));-FieldLegend.displayName = "FieldLegend";--const FieldGroup = React.forwardRef<HTMLDivElement, React.ComponentPropsWithoutRef<"div">>(- ({ className, ...props }, ref) => (+ );+}++function FieldLegend({+ className,+ variant = "legend",+ ...props+}: React.ComponentProps<"legend"> & { variant?: "legend" | "label" }) {+ return (+ <legend+ data-slot="field-legend"+ data-variant={variant}+ className={cn("mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base", className)}+ {...props}+ />+ );+}++function FieldGroup({ className, ...props }: React.ComponentProps<"div">) {+ return (<div- ref={ref}data-slot="field-group"className={cn("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",@@ -48,9 +45,8 @@ const FieldGroup = React.forwardRef<HTMLDivElement, React.ComponentPropsWithoutR)}{...props}/>- ),-);-FieldGroup.displayName = "FieldGroup";+ );+}const fieldVariants = cva("group/field flex w-full gap-3 data-[invalid=true]:text-destructive", {variants: {@@ -67,53 +63,49 @@ const fieldVariants = cva("group/field flex w-full gap-3 data-[invalid=true]:tex},});-const Field = React.forwardRef<- HTMLDivElement,- React.ComponentPropsWithoutRef<"div"> & VariantProps<typeof fieldVariants>->(({ className, orientation = "vertical", ...props }, ref) => (- <div- ref={ref}- role="group"- data-slot="field"- data-orientation={orientation}- className={cn(fieldVariants({ orientation }), className)}- {...props}- />-));-Field.displayName = "Field";--const FieldContent = React.forwardRef<HTMLDivElement, React.ComponentPropsWithoutRef<"div">>(- ({ className, ...props }, ref) => (+function Field({+ className,+ orientation = "vertical",+ ...props+}: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>) {+ return (+ <div+ role="group"+ data-slot="field"+ data-orientation={orientation}+ className={cn(fieldVariants({ orientation }), className)}+ {...props}+ />+ );+}++function FieldContent({ className, ...props }: React.ComponentProps<"div">) {+ return (<div- ref={ref}data-slot="field-content"className={cn("group/field-content flex flex-1 flex-col gap-1 leading-snug", className)}{...props}/>- ),-);-FieldContent.displayName = "FieldContent";+ );+}-const FieldLabel = React.forwardRef<HTMLLabelElement, React.ComponentPropsWithoutRef<typeof Label>>(- ({ className, ...props }, ref) => (+function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>) {+ return (<Label- ref={ref}data-slot="field-label"className={cn(- "group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border *:data-[slot=field]:p-3 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10",+ "group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 *:data-[slot=field]:p-3 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",className,)}{...props}/>- ),-);-FieldLabel.displayName = "FieldLabel";+ );+}-const FieldTitle = React.forwardRef<HTMLDivElement, React.ComponentPropsWithoutRef<"div">>(- ({ className, ...props }, ref) => (+function FieldTitle({ className, ...props }: React.ComponentProps<"div">) {+ return (<div- ref={ref}data-slot="field-label"className={cn("flex w-fit items-center gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50",@@ -121,14 +113,12 @@ const FieldTitle = React.forwardRef<HTMLDivElement, React.ComponentPropsWithoutR)}{...props}/>- ),-);-FieldTitle.displayName = "FieldTitle";+ );+}-const FieldDescription = React.forwardRef<HTMLParagraphElement, React.ComponentPropsWithoutRef<"p">>(- ({ className, ...props }, ref) => (+function FieldDescription({ className, ...props }: React.ComponentProps<"p">) {+ return (<p- ref={ref}data-slot="field-description"className={cn("text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5",@@ -138,14 +128,18 @@ const FieldDescription = React.forwardRef<HTMLParagraphElement, React.ComponentP)}{...props}/>- ),-);-FieldDescription.displayName = "FieldDescription";--const FieldSeparator = React.forwardRef<HTMLDivElement, React.ComponentPropsWithoutRef<"div">>(- ({ children, className, ...props }, ref) => (+ );+}++function FieldSeparator({+ children,+ className,+ ...props+}: React.ComponentProps<"div"> & {+ children?: React.ReactNode;+}) {+ return (<div- ref={ref}data-slot="field-separator"data-content={!!children}className={cn("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2", className)}@@ -161,15 +155,18 @@ const FieldSeparator = React.forwardRef<HTMLDivElement, React.ComponentPropsWith</span>)}</div>- ),-);-FieldSeparator.displayName = "FieldSeparator";--const FieldError = React.forwardRef<- HTMLDivElement,- React.ComponentPropsWithoutRef<"div"> & { errors?: Array<{ message?: string } | undefined> }->(({ className, children, errors, ...props }, ref) => {- const content = React.useMemo(() => {+ );+}++function FieldError({+ className,+ children,+ errors,+ ...props+}: React.ComponentProps<"div"> & {+ errors?: Array<{ message?: string } | undefined>;+}) {+ const content = useMemo(() => {if (children) {return children;}@@ -180,7 +177,7 @@ const FieldError = React.forwardRef<const uniqueErrors = [...new Map(errors.map((error) => [error?.message, error])).values()];- if (uniqueErrors.length === 1) {+ if (uniqueErrors?.length == 1) {return uniqueErrors[0]?.message;}@@ -197,7 +194,6 @@ const FieldError = React.forwardRef<return (<div- ref={ref}role="alert"data-slot="field-error"className={cn("text-sm font-normal text-destructive", className)}@@ -206,18 +202,17 @@ const FieldError = React.forwardRef<{content}</div>);-});-FieldError.displayName = "FieldError";+}export {Field,- FieldContent,+ FieldLabel,FieldDescription,FieldError,FieldGroup,- FieldLabel,FieldLegend,FieldSeparator,FieldSet,+ FieldContent,FieldTitle,};diff --git a/ui/litellm-dashboard/src/components/update_model_credentials_modal.tsx b/ui/litellm-dashboard/src/components/update_model_credentials_modal.tsxindex 1198e7510ed..e948bcb87d6 100644--- a/ui/litellm-dashboard/src/components/update_model_credentials_modal.tsx+++ b/ui/litellm-dashboard/src/components/update_model_credentials_modal.tsx@@ -3,7 +3,7 @@ import { useState } from "react";import { z } from "zod/v4";import { modelPatchUpdateCall } from "./networking";import { toast } from "@/lib/toast";-import { FieldGroup } from "@/components/shared/form/field";+import { FieldGroup } from "@/components/ui/field";import { FormField } from "@/components/shared/form/FormField";import { Alert, AlertTitle } from "@/components/shared/Alert";import { PasswordInput } from "@/components/shared/PasswordInput";