diff --git a/frontend/src/components/Generic/Blocks/CheckBoxBlock/index.jsx b/frontend/src/components/Generic/Blocks/CheckBoxBlock/index.jsx new file mode 100644 index 00000000..de87cb93 --- /dev/null +++ b/frontend/src/components/Generic/Blocks/CheckBoxBlock/index.jsx @@ -0,0 +1,82 @@ +import React from "react"; +import Badge from "@/components/Generic/Badges/Badge"; +import CheckBox from "../../Inputs/CheckBox"; + +export default function CheckBoxBlock({ + initialChecked, + label, + onToggle, + description, + name, + badge = false, + badgeLabel, + badgeAnimated, + badgeBg, + border, + Icon, + contentLocation, + disabled, + inline = false, +}) { + const borderStyle = border ? "border border-gray-600 rounded-2xl p-4" : ""; + const contentPosition = { + middle: "middle", + top: "top", + bottom: "bottom", + }[contentLocation]; + + return ( +
+
+
+
+
+ {Icon && ( + + )} +
+
+ {inline && ( +
+ +
+ )} + + {badge && ( + + )} +
+ {!inline && ( + + )} +
+
+
+
+
+

+ {description} +

+
+ +
+
+ ); +} diff --git a/frontend/src/components/Generic/Blocks/TextAreaBlock/index.jsx b/frontend/src/components/Generic/Blocks/TextAreaBlock/index.jsx new file mode 100644 index 00000000..8534156a --- /dev/null +++ b/frontend/src/components/Generic/Blocks/TextAreaBlock/index.jsx @@ -0,0 +1,45 @@ +import TextArea from "../../Inputs/TextArea"; + +export default function TextAreaBlock({ + label, + description, + defaultValue, + required, + placeholder, + onChange, + name, + disabled, + initialRows, + className, + autoComplete, + wrap, +}) { + return ( +
+
+ {label && ( + + )} + {description && ( +

+ {description} +

+ )} +
+