From 838e5b2af7d90bc82e9890bc02605713e5919a0d Mon Sep 17 00:00:00 2001 From: Igor Carvalho Date: Tue, 20 Jun 2023 19:21:00 -0300 Subject: [PATCH] feat[tailwind colors]: Change all tailwind default colors to variables colors --- .../components/parameterComponent/index.tsx | 6 +- .../src/CustomNodes/GenericNode/index.tsx | 28 +++--- .../src/alerts/alertDropDown/index.tsx | 12 +-- src/frontend/src/alerts/error/index.tsx | 8 +- src/frontend/src/alerts/notice/index.tsx | 8 +- src/frontend/src/alerts/success/index.tsx | 6 +- .../components/CrashErrorComponent/index.tsx | 10 +-- .../EditFlowSettingsComponent/index.tsx | 2 +- .../ExtraSidebarComponent/index.tsx | 30 +++---- .../ReactTooltipComponent/index.tsx | 2 +- .../chatComponent/buildTrigger/index.tsx | 2 +- .../chatComponent/chatMessage/index.tsx | 2 +- .../chatComponent/chatTrigger/index.tsx | 4 +- .../components/codeAreaComponent/index.tsx | 8 +- .../components/dropdownComponent/index.tsx | 12 +-- .../src/components/floatComponent/index.tsx | 6 +- .../components/menuBar/index.tsx | 6 +- .../src/components/headerComponent/index.tsx | 4 +- .../src/components/inputComponent/index.tsx | 12 +-- .../components/inputFileComponent/index.tsx | 6 +- .../components/inputListComponent/index.tsx | 8 +- .../src/components/intComponent/index.tsx | 6 +- .../src/components/loadingComponent/index.tsx | 4 +- .../src/components/promptComponent/index.tsx | 8 +- .../components/textAreaComponent/index.tsx | 8 +- .../src/components/toggleComponent/index.tsx | 6 +- .../src/components/ui/rename-label.tsx | 2 +- src/frontend/src/index.css | 86 ++++++++++++++++++- src/frontend/src/modals/ApiModal/index.tsx | 4 +- .../src/modals/EditNodeModal/index.tsx | 12 +-- .../NodeModal/components/ModalField/index.tsx | 4 +- src/frontend/src/modals/NodeModal/index.tsx | 16 ++-- .../src/modals/chatModal/chatInput/index.tsx | 10 +-- .../modals/chatModal/chatMessage/index.tsx | 18 ++-- .../modals/chatModal/fileComponent/index.tsx | 8 +- src/frontend/src/modals/chatModal/index.tsx | 18 ++-- .../src/modals/codeAreaModal/index.tsx | 4 +- src/frontend/src/modals/exportModal/index.tsx | 2 +- .../src/modals/flowSettingsModal/index.tsx | 2 +- .../src/modals/genericModal/index.tsx | 4 +- .../modals/importModal/buttonBox/index.tsx | 2 +- src/frontend/src/modals/importModal/index.tsx | 20 ++--- src/frontend/src/modals/promptModal/index.tsx | 22 ++--- .../src/modals/textAreaModal/index.tsx | 22 ++--- .../ConnectionLineComponent/index.tsx | 4 +- .../components/DisclosureComponent/index.tsx | 8 +- .../components/PageComponent/index.tsx | 8 +- .../extraSidebarComponent/index.tsx | 20 ++--- .../components/nodeToolbarComponent/index.tsx | 14 +-- src/frontend/tailwind.config.js | 74 ++++++++++++++++ 50 files changed, 378 insertions(+), 220 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index 65f946ba2..e2c651519 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -121,12 +121,12 @@ export default function ParameterComponent({ return (
<>
{title} - {required ? " *" : ""} + {required ? " *" : ""}
{left && (type === "str" || @@ -153,7 +153,7 @@ export default function ParameterComponent({ } className={classNames( left ? "-ml-0.5 " : "-mr-0.5 ", - "w-3 h-3 rounded-full border-2 bg-white dark:bg-gray-800" + "w-3 h-3 rounded-full border-2 bg-white dark:bg-dark-gray" )} style={{ borderColor: color, diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index fdf830408..378a02344 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -75,11 +75,11 @@ export default function GenericNode({
-
+
-
{data.type}
+
{data.type}
@@ -122,25 +122,25 @@ export default function GenericNode({
@@ -149,7 +149,7 @@ export default function GenericNode({
-
+
{data.node.description}
diff --git a/src/frontend/src/alerts/alertDropDown/index.tsx b/src/frontend/src/alerts/alertDropDown/index.tsx index edd3bb23f..7ba779c02 100644 --- a/src/frontend/src/alerts/alertDropDown/index.tsx +++ b/src/frontend/src/alerts/alertDropDown/index.tsx @@ -24,13 +24,13 @@ export default function AlertDropdown({}: AlertDropdownType) { return (
-
+
Notifications
-
+
{notificationList.length !== 0 ? ( notificationList.map((alertItem, index) => ( )) ) : ( -
+
No new notifications
)} diff --git a/src/frontend/src/alerts/error/index.tsx b/src/frontend/src/alerts/error/index.tsx index bcabe764f..01c8fbb7e 100644 --- a/src/frontend/src/alerts/error/index.tsx +++ b/src/frontend/src/alerts/error/index.tsx @@ -39,21 +39,21 @@ export default function ErrorAlert({ removeAlert(id); }, 500); }} - className="rounded-md w-96 mt-6 shadow-xl bg-red-50 dark:bg-red-900 p-4 cursor-pointer" + className="rounded-md w-96 mt-6 shadow-xl bg-light-red dark:bg-dark-red p-4 cursor-pointer" >
-

+

{title}

{list.length !== 0 ? ( -
+