From b0b62f7288ba1754b344f6c99c47d63323ecb9c1 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Mon, 1 Apr 2024 15:08:03 +0700 Subject: [PATCH 1/2] stylization tab styling fixes --- app/components/Input.tsx | 7 ++-- app/components/Textarea.tsx | 54 ++++++++++++++++--------- app/components/Typography.tsx | 62 +++++++++++++++++++++-------- app/modules/SidePanel/SidePanel.tsx | 2 +- app/modules/Tabs/Tabs.tsx | 8 ++-- 5 files changed, 88 insertions(+), 45 deletions(-) diff --git a/app/components/Input.tsx b/app/components/Input.tsx index 18554df835..eff8cbab3a 100644 --- a/app/components/Input.tsx +++ b/app/components/Input.tsx @@ -1,4 +1,5 @@ import React from "react"; +import { Label } from "./Typography"; interface InputProps extends React.InputHTMLAttributes { label?: string; @@ -8,12 +9,10 @@ interface InputProps extends React.InputHTMLAttributes { export function Input({ label, className, ...rest }: InputProps) { return (
- {label && ( - - )} + {label && }
diff --git a/app/components/Textarea.tsx b/app/components/Textarea.tsx index 3b069b39ee..4d85c98782 100644 --- a/app/components/Textarea.tsx +++ b/app/components/Textarea.tsx @@ -1,24 +1,42 @@ -import { TextareaHTMLAttributes } from "react" +import { TextareaHTMLAttributes } from "react"; import { twMerge } from "tailwind-merge"; +import { Label } from "./Typography"; + +type ResizeType = + | "none" + | "both" + | "horizontal" + | "vertical" + | "block" + | "inline" + | undefined; export const Textarea = ({ className, + label, + resize = "vertical", ...rest -}:TextareaHTMLAttributes) => { - return( -