diff --git a/customer-spa/package-lock.json b/customer-spa/package-lock.json index 2248a7f..33f33ad 100644 --- a/customer-spa/package-lock.json +++ b/customer-spa/package-lock.json @@ -14,7 +14,7 @@ "@radix-ui/react-checkbox": "^1.3.3", "@radix-ui/react-dialog": "^1.1.15", "@radix-ui/react-dropdown-menu": "^2.1.16", - "@radix-ui/react-label": "^2.1.7", + "@radix-ui/react-label": "^2.1.8", "@radix-ui/react-popover": "^1.1.15", "@radix-ui/react-radio-group": "^1.3.8", "@radix-ui/react-select": "^2.2.6", diff --git a/customer-spa/package.json b/customer-spa/package.json index 276889a..f19ef73 100644 --- a/customer-spa/package.json +++ b/customer-spa/package.json @@ -16,7 +16,7 @@ "@radix-ui/react-checkbox": "^1.3.3", "@radix-ui/react-dialog": "^1.1.15", "@radix-ui/react-dropdown-menu": "^2.1.16", - "@radix-ui/react-label": "^2.1.7", + "@radix-ui/react-label": "^2.1.8", "@radix-ui/react-popover": "^1.1.15", "@radix-ui/react-radio-group": "^1.3.8", "@radix-ui/react-select": "^2.2.6", diff --git a/customer-spa/src/components/ui/input.tsx b/customer-spa/src/components/ui/input.tsx new file mode 100644 index 0000000..407305f --- /dev/null +++ b/customer-spa/src/components/ui/input.tsx @@ -0,0 +1,24 @@ +import * as React from 'react'; +import { cn } from '@/lib/utils'; + +export interface InputProps + extends React.InputHTMLAttributes { } + +const Input = React.forwardRef( + ({ className, type, ...props }, ref) => { + return ( + + ); + } +); +Input.displayName = 'Input'; + +export { Input }; diff --git a/customer-spa/src/components/ui/label.tsx b/customer-spa/src/components/ui/label.tsx new file mode 100644 index 0000000..1f79d13 --- /dev/null +++ b/customer-spa/src/components/ui/label.tsx @@ -0,0 +1,20 @@ +import * as React from 'react'; +import * as LabelPrimitive from '@radix-ui/react-label'; +import { cn } from '@/lib/utils'; + +const Label = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)); +Label.displayName = LabelPrimitive.Root.displayName; + +export { Label };