svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3',
+ className,
+ )}
+ {...props}
+ />
+ );
+}
+
+function AlertDescription({ className, ...props }: React.ComponentProps<'div'>) {
+ return (
+
+ );
+}
+
+function AlertAction({ className, ...props }: React.ComponentProps<'div'>) {
+ return
;
+}
+
+export { Alert, AlertTitle, AlertDescription, AlertAction };
diff --git a/src/index.css b/src/index.css
index ae3dfdd..9a129a1 100644
--- a/src/index.css
+++ b/src/index.css
@@ -21,6 +21,12 @@
--accent: oklch(0.97 0 0);
--accent-foreground: oklch(0.205 0 0);
--destructive: oklch(0.577 0.245 27.325);
+ --info: oklch(0.922 0 0 / 90%);
+ --info-foreground: oklch(0.205 0 0);
+ --success: oklch(0.448 0.119 151.328 / 90%);
+ --success-foreground: oklch(1 0 0);
+ --warning: oklch(0.666 0.179 58.318);
+ --warning-foreground: oklch(0.205 0 0);
--border: oklch(0.922 0 0);
--input: oklch(0.922 0 0);
--ring: oklch(0.708 0 0);
@@ -56,6 +62,12 @@
--accent: oklch(0.269 0 0);
--accent-foreground: oklch(0.985 0 0);
--destructive: oklch(0.704 0.191 22.216);
+ --info: oklch(0.922 0 0 / 90%);
+ --info-foreground: oklch(0.205 0 0);
+ --success: oklch(52.7% 0.154 150.069);
+ --success-foreground: oklch(1 0 0);
+ --warning: oklch(0.828 0.189 84.429 / 90%);
+ --warning-foreground: oklch(0.205 0 0);
--border: oklch(1 0 0 / 10%);
--input: oklch(1 0 0 / 15%);
--ring: oklch(0.556 0 0);
@@ -75,7 +87,7 @@
}
@theme inline {
- --font-sans: 'Noto Sans', sans-serif;
+ --font-sans: 'Noto Sans Variable', sans-serif;
--color-sidebar-ring: var(--sidebar-ring);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
@@ -101,6 +113,12 @@
--color-secondary: var(--secondary);
--color-primary-foreground: var(--primary-foreground);
--color-primary: var(--primary);
+ --color-info: var(--info);
+ --color-info-foreground: var(--info-foreground);
+ --color-success: var(--success);
+ --color-success-foreground: var(--success-foreground);
+ --color-warning: var(--warning);
+ --color-warning-foreground: var(--warning-foreground);
--color-popover-foreground: var(--popover-foreground);
--color-popover: var(--popover);
--color-card-foreground: var(--card-foreground);
diff --git a/src/pages/Components/components/AlertComponents.tsx b/src/pages/Components/components/AlertComponents.tsx
index 3bf5574..4c8cc70 100644
--- a/src/pages/Components/components/AlertComponents.tsx
+++ b/src/pages/Components/components/AlertComponents.tsx
@@ -1,11 +1,12 @@
import { ColumnDef, createColumnHelper } from '@tanstack/react-table';
+import { AlertCircleIcon, HeartHandshake } from 'lucide-react';
import { BaseComponentProps } from 'common/utils/types';
import { ComponentProperty } from '../model/components';
import Table from 'common/components/Table/Table';
import CodeSnippet from 'common/components/Text/CodeSnippet';
import Heading from 'common/components/Text/Heading';
-import Alert from 'common/components/Alert/Alert';
+import { Alert, AlertDescription, AlertTitle } from 'common/components/shadcn/alert';
/**
* The `AlertComponents` React component renders a set of examples illustrating
@@ -64,47 +65,42 @@ const AlertComponents = ({ className, testId = 'components-alert' }: BaseCompone
Examples
-
-
- Uh oh!
- Something unexpected has occurred. Please excuse our mess.
+
+
+ Tip
+
+ Use a default alert for general information. This may be useful in various scenarios such as providing
+ helpful tips or guidance.
+
- {`
-
- Uh oh!
-
- Something unexpected has occurred. Please excuse our mess.
-
+ {`
+
+ Tip
+
+ Use a default alert for general information. This may be useful in various scenarios such as providing
+ helpful tips or guidance.
+
`}
-
-
- Something you should know...
-
- Mollit proident aliqua vel pariatur dolor cupidatat sunt. Tempus quis elit officia ero exercitation labore
- a. Nisi commodo nunc id et. Labore facilisis do nibh fermentum exercitation voluptate. Aute et ut est
- justo veniam. Ut do convallis reprehenderit qui. Consectetur nibh nibh est pariatur tempor. Qos laoreet
- qui labore a neque incididunt.
-
+
+
+ Uh oh!
+ Something unexpected has occurred. Please excuse our mess.
- {`
-
- Something you should know...
-
- Mollit proident aliqua vel pariatur dolor cupidatat sunt. Tempus quis elit officia ero
- exercitation labore a. Nisi commodo nunc id et. Labore facilisis do nibh fermentum
- exercitation voluptate. Aute et ut est justo veniam. Ut do convallis reprehenderit
- qui. Consectetur nibh nibh est pariatur tempor. Qos laoreet qui labore a neque
- incididunt.
-
+ {`
+
+ Uh oh!
+
+ Something unexpected has occurred. Please excuse our mess.
+
`}
@@ -112,25 +108,25 @@ const AlertComponents = ({ className, testId = 'components-alert' }: BaseCompone
- Proceed with caution!
-
+ Proceed with caution!
+
Mollit proident aliqua vel pariatur dolor cupidatat sunt. Tempus quis elit officia ero exercitation labore
a. Nisi commodo nunc id et. Labore facilisis do nibh fermentum exercitation voluptate. Aute et ut est
justo veniam. Ut do convallis reprehenderit qui. Consectetur nibh nibh est pariatur tempor. Qos laoreet
qui labore a neque incididunt.
-
+
{`
- Proceed with caution!
-
+ Proceed with caution!
+
Mollit proident aliqua vel pariatur dolor cupidatat sunt. Tempus quis elit officia ero
exercitation labore a. Nisi commodo nunc id et. Labore facilisis do nibh fermentum
exercitation voluptate. Aute et ut est justo veniam. Ut do convallis reprehenderit
qui. Consectetur nibh nibh est pariatur tempor. Qos laoreet qui labore a neque
incididunt.
-
+
`}
@@ -138,25 +134,25 @@ const AlertComponents = ({ className, testId = 'components-alert' }: BaseCompone
- You did it!
-
+ You did it!
+
Mollit proident aliqua vel pariatur dolor cupidatat sunt. Tempus quis elit officia ero exercitation labore
a. Nisi commodo nunc id et. Labore facilisis do nibh fermentum exercitation voluptate. Aute et ut est
justo veniam. Ut do convallis reprehenderit qui. Consectetur nibh nibh est pariatur tempor. Qos laoreet
qui labore a neque incididunt.
-
+
{`
- You did it!
-
+ You did it!
+
Mollit proident aliqua vel pariatur dolor cupidatat sunt. Tempus quis elit officia ero
exercitation labore a. Nisi commodo nunc id et. Labore facilisis do nibh fermentum
exercitation voluptate. Aute et ut est justo veniam. Ut do convallis reprehenderit
qui. Consectetur nibh nibh est pariatur tempor. Qos laoreet qui labore a neque
incididunt.
-
+
`}