mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-29 23:04:23 +00:00
feat(ui): migrate from HeroUI to shadcn/ui (#11532)
This commit is contained in:
1 parent
c665005790
commit
52875b5c7c
519 files changed
+4798
-6997
No files matched your search
@@ -4,8 +4,8 @@ import { Icon } from "@iconify/react";
|
||||
import { InputHTMLAttributes, useState } from "react";
|
||||
import { Control, FieldPath, FieldValues } from "react-hook-form";
|
||||
|
||||
import { FormControl, FormField, FormMessage } from "@/components/shadcn/form";
|
||||
import { Input } from "@/components/shadcn/input/input";
|
||||
import { FormControl, FormField, FormMessage } from "@/components/ui/form";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface WizardInputFieldProps<T extends FieldValues> {
|
||||
@@ -142,7 +142,7 @@ export const WizardInputField = <T extends FieldValues>({
|
||||
<button
|
||||
type="button"
|
||||
onClick={toggleVisibility}
|
||||
className="text-default-400 hover:text-default-500 absolute top-1/2 right-3 -translate-y-1/2"
|
||||
className="text-text-neutral-tertiary hover:text-text-neutral-secondary absolute top-1/2 right-3 -translate-y-1/2"
|
||||
aria-label={
|
||||
inputType === "password"
|
||||
? "Show password"
|
||||
|
||||
@@ -18,7 +18,7 @@ export const WizardRadioCard = ({
|
||||
<div
|
||||
className={cn(
|
||||
"group inline-flex w-full cursor-pointer items-center justify-between gap-4 rounded-lg border-2 p-4",
|
||||
"border-default hover:border-button-primary",
|
||||
"border-border-input-primary hover:border-button-primary",
|
||||
"has-[[data-state=checked]]:border-button-primary",
|
||||
isInvalid && "border-bg-fail",
|
||||
)}
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
import { Control, FieldPath, FieldValues } from "react-hook-form";
|
||||
|
||||
import { FormControl, FormField, FormMessage } from "@/components/shadcn/form";
|
||||
import { Textarea } from "@/components/shadcn/textarea/textarea";
|
||||
import { FormControl, FormField, FormMessage } from "@/components/ui/form";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface WizardTextareaFieldProps<T extends FieldValues> {
|
||||
|
||||
Reference in new issue
Block a user