+ {(icon || IconComponent) && (
+
+ {IconComponent ? (
+
+ ) : (
+ icon
+ )}
+
+ )}
+
+ {title && (
+
+ {title}
+
+ )}
+
+ {children}
+
+ {ctaSection && (
+
+ {ctaSection}
+
+ )}
+
+
+ );
+};
diff --git a/src/main.ts b/src/main.ts
index 81ab70de..e64bc16d 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -14,6 +14,7 @@ export { Loader } from "./components/Loader";
export { Modal } from "./components/Modal";
export { PageLayout } from "./components/PageLayout";
export { PasswordInput } from "./components/PasswordInput";
+export { SectionMessage } from "./components/SectionMessage";
export { SideNote } from "./components/SideNote";
export { Tab, Tabs } from "./components/Tabs";
export { Table } from "./components/Table";
diff --git a/src/styles/abstracts/_variables.scss b/src/styles/abstracts/_variables.scss
index 91377635..44cf7396 100644
--- a/src/styles/abstracts/_variables.scss
+++ b/src/styles/abstracts/_variables.scss
@@ -68,8 +68,9 @@ $color-blue-5: #dfeaff;
$color-blue-6: #92b8ff;
$color-blue-7: #182130;
$color-blue-8: #e6f5ff;
-$color-blue-9:#00C6EF;
-$color-blue-10:#115BFF;
+$color-blue-9: #00c6ef;
+$color-blue-10: #115bff;
+$color-blue-11: #0777c4;
$color-brown: #664407;
$color-green: #85acb0;
$color-green-1: #4bb4b3;
@@ -80,6 +81,7 @@ $color-green-5: #4bb4b329;
$color-green-6: #17eabd;
$color-green-7: #e8fdf8;
$color-green-8: #cedddf;
+$color-green-9: #007a22;
$color-gray: #c2c2c2;
$color-gray-1: #999999;
$color-gray-2: #f2f3f4;
@@ -95,9 +97,9 @@ $color-gray-11: #fafafa;
$color-gray-12: #f5f7fa;
$color-gray-13: #2e2e2e;
$color-orange: #ff6444;
-$color-orange-1:#ff9c13;
+$color-orange-1: #ff9c13;
$color-purple: #722fe4;
-$color-purple-1:#8F4BFF;
+$color-purple-1: #8f4bff;
$color-red: #ff444f;
$color-red-1: #ec3f3f;
$color-red-2: #cc2e3d;
@@ -110,18 +112,24 @@ $color-red-8: #661b20;
$color-red-9: #b33037;
$color-red-10: #ff444f;
$color-red-11: #fce3e3;
+$color-red-11: #c40000;
$color-violet: #4a3871;
$color-white: #ffffff;
$color-yellow: #ffad3a;
$color-yellow-1: #b3760d;
$color-yellow-2: #ffa912;
$color-yellow-3: rgba(255, 173, 58, 0.16);
+$color-yellow-4: #c47d00;
/* STATUS COLORS */
$color-status-warning: rgba(255, 173, 58, 0.16);
+$color-status-warning-1: rgba(255, 156, 19, 0.08);
$color-status-information: rgba(55, 124, 252, 0.16);
+$color-status-information-1: rgba(44, 154, 255, 0.08);
$color-status-announcement: rgba(75, 180, 179, 0.16);
+$color-status-success: rgba(0, 136, 50, 0.08);
$color-status-error: rgba(236, 63, 63, 0.16);
+$color-status-error-1: rgba(230, 25, 14, 0.08);
/* ALPHA COLORS */
$alpha-color-black-1: transparentize($color-black-7, 0.28);
@@ -131,6 +139,7 @@ $alpha-color-black-4: transparentize($color-black-7, 0.84);
$alpha-color-black-5: transparentize($color-black-7, 0.16);
$alpha-color-black-6: transparentize($color-black-7, 0.36);
$alpha-color-black-7: transparentize($color-black, 0.5);
+$alpha-color-black-8: transparentize($color-black-7, 0.72);
$alpha-color-blue-1: transparentize($color-blue, 0.84);
$alpha-color-blue-2: transparentize($color-blue-3, 0.84);
$alpha-color-blue-3: transparentize($color-blue, 0.92);
diff --git a/stories/SectionMessage.stories.tsx b/stories/SectionMessage.stories.tsx
new file mode 100644
index 00000000..0d9b709a
--- /dev/null
+++ b/stories/SectionMessage.stories.tsx
@@ -0,0 +1,90 @@
+import { StoryObj, Meta } from "@storybook/react";
+import { SectionMessage } from "../src/main";
+import { Button } from "../src/components/Button";
+
+const meta = {
+ title: "Components/SectionMessage",
+ component: SectionMessage,
+ parameters: { layout: "centered" },
+ tags: ["autodocs"],
+ argTypes: {
+ children: {
+ control: {
+ type: "text",
+ },
+ },
+ className: {
+ disable: true,
+ },
+ ctaSection: {
+ control: false,
+ description:
+ "A prop which can be passed with a single button or div containing a group of buttons for CTA.",
+ },
+ title: {
+ control: {
+ type: "text",
+ },
+ },
+ variant: {
+ control: {
+ type: "select",
+ },
+ defaultValue: "general",
+ options: ["warning", "info", "success", "error", "general"],
+ },
+ },
+} satisfies Meta