From b6192162b0c7ee8d29485ae0b996618141857694 Mon Sep 17 00:00:00 2001 From: Igor Carvalho Date: Tue, 4 Jul 2023 20:17:09 -0300 Subject: [PATCH] feat: add side bar components disclosure constants classes --- src/frontend/src/index.css | 12 ++++++++++++ .../components/DisclosureComponent/index.tsx | 10 +++++----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/src/frontend/src/index.css b/src/frontend/src/index.css index eb77f2c01..c80ff50ec 100644 --- a/src/frontend/src/index.css +++ b/src/frontend/src/index.css @@ -227,4 +227,16 @@ The cursor: default; property value restores the browser's default cursor style .message-button-icon { @apply w-6 fill-chat-trigger stroke-chat-trigger stroke-1 } + .components-disclosure-arrangement { + @apply -mt-px flex w-full select-none items-center justify-between border-y border-y-input bg-muted px-3 py-2 + } + .text-color { + @apply text-primary + } + .components-disclosure-title { + @apply flex items-center text-sm text-color + } + .components-disclosure-div { + @apply flex gap-2 + } } \ No newline at end of file diff --git a/src/frontend/src/pages/FlowPage/components/DisclosureComponent/index.tsx b/src/frontend/src/pages/FlowPage/components/DisclosureComponent/index.tsx index 60e086715..aa6da9f96 100644 --- a/src/frontend/src/pages/FlowPage/components/DisclosureComponent/index.tsx +++ b/src/frontend/src/pages/FlowPage/components/DisclosureComponent/index.tsx @@ -12,14 +12,14 @@ export default function DisclosureComponent({ {({ open }) => ( <>
- +
- - + + {title}
-
+
{buttons.map((x, index) => (
- + {children}