diff --git a/packages/core/src/components/AttentionBox/__stories__/AttentionBox.mdx b/packages/core/src/components/AttentionBox/__stories__/AttentionBox.mdx
index 50fca4d096..49bd6357ca 100644
--- a/packages/core/src/components/AttentionBox/__stories__/AttentionBox.mdx
+++ b/packages/core/src/components/AttentionBox/__stories__/AttentionBox.mdx
@@ -11,6 +11,8 @@ import Flex from "../../Flex/Flex";
import AttentionBoxLink from "../AttentionBoxLink/AttentionBoxLink";
import { TipCheckYourself } from "./AttentionBox.stories.helpers";
import * as AttentionBoxStories from "./AttentionBox.stories";
+import { Heading } from "../../Heading";
+import Text from "../../Text/Text";
@@ -76,11 +78,12 @@ There are five types of attention boxes: Primary, success, danger, warning and d
{
positive: {
component: (
-
+
),
description: "Provide a short and brief title, and explanation related to the title."
},
@@ -93,10 +96,10 @@ There are five types of attention boxes: Primary, success, danger, warning and d
positive: {
component: (
-
Inbox
-
Catch up on updates from all your boards.
-
-
+ Inbox
+ Catch up on updates from all your boards.
+
+
Get your monday.com notifications
@@ -108,10 +111,10 @@ There are five types of attention boxes: Primary, success, danger, warning and d
negative: {
component: (
-
Inbox
-
Catch up on updates from all your boards.
-
-
+ Inbox
+ Catch up on updates from all your boards.
+
+
7 days left on your free trial
diff --git a/packages/core/src/components/AttentionBox/__stories__/AttentionBox.stories.scss b/packages/core/src/components/AttentionBox/__stories__/AttentionBox.stories.scss
deleted file mode 100644
index 34486bae04..0000000000
--- a/packages/core/src/components/AttentionBox/__stories__/AttentionBox.stories.scss
+++ /dev/null
@@ -1,104 +0,0 @@
-@import "../../../styles/typography";
-
-.monday-storybook-attention-box {
- &--fixed-width {
- width: 350px;
- }
-
- &_column-wrapper {
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- gap: 15px;
- }
-
- &_title {
- font-style: normal;
- font-weight: bold;
- font-size: 24px;
- line-height: 28px;
- display: block;
- }
-
- &_text {
- font-size: 14px;
- line-height: 22px;
- margin: 4px 0 10px;
- }
-
- &_row-wrapper {
- display: flex;
- flex-direction: row;
- gap: 52px;
- align-content: flex-start;
- }
-
- &_inline-wrapper {
- display: flex;
- align-items: center;
- gap: 6px;
- }
-
- &_wrapper {
- display: flex;
- flex-direction: column;
- }
-
- &_search-bar {
- display: flex;
- flex-direction: column;
- gap: 18px;
- padding: 16px;
- width: 380px;
- }
-
- &_box {
- width: 340px;
- }
-
- &_dismissable {
- width: 274px;
- }
-
- &_search {
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- gap: 18px;
- }
-
- &_lable {
- font-size: 14px;
- padding-left: 5px;
- margin-top: 4px;
- }
-
- &_inline-container {
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- }
-
- &_name {
- font-size: 14px;
-
- span {
- color: var(--sb-secondary-text-color);
- }
- }
-
- &_icon {
- margin: 0 5px 0 8px;
- }
-
- &_info {
- display: flex;
- justify-content: space-between;
- }
-
- &_att-box {
- width: 430px;
- margin-top: 10px;
- }
-}
diff --git a/packages/core/src/components/AttentionBox/__stories__/AttentionBox.stories.tsx b/packages/core/src/components/AttentionBox/__stories__/AttentionBox.stories.tsx
index 3c113254c4..b5fecc1ff1 100644
--- a/packages/core/src/components/AttentionBox/__stories__/AttentionBox.stories.tsx
+++ b/packages/core/src/components/AttentionBox/__stories__/AttentionBox.stories.tsx
@@ -11,8 +11,9 @@ import Avatar from "../../Avatar/Avatar";
import person from "./assets/person.png";
import Flex from "../../Flex/Flex";
import AttentionBoxLink from "../AttentionBoxLink/AttentionBoxLink";
-import "./AttentionBox.stories.scss";
import Button from "../../Button/Button";
+import Text from "../../Text/Text";
+import { Heading } from "../../Heading";
const metaSettings = createStoryMetaSettingsDecorator({
component: AttentionBox,
@@ -40,15 +41,16 @@ export default {
};
export const Overview = {
- render: attentionBoxTemplate.bind({}),
+ render: () => (
+
+ {attentionBoxTemplate({
+ onClose: () => {},
+ title: "Attention box title",
+ text: "Studies show that 100% of people who celebrate birthdays, will eventually die."
+ })}
+
+ ),
name: "Overview",
-
- args: {
- onClose: () => {},
- title: "Attention box title",
- text: "Studies show that 100% of people who celebrate birthdays, will eventually die.",
- className: "monday-storybook-attention-box_box"
- },
parameters: {
docs: {
liveEdit: {
@@ -60,49 +62,54 @@ export const Overview = {
export const States = {
render: () => (
-
+
-
+
-
+
-
+
-
+
-
+
),
@@ -116,17 +123,14 @@ export const States = {
};
export const AttentionBoxWithLink = {
- render: () => {
- return (
- /** Classname for setting a constant width to the attention box */
-
-
- Get your monday.com notifications
-
-
-
- );
- }
+ render: () => (
+
+
+ Get your monday.com notifications
+
+
+
+ )
};
export const Dismissable = {
@@ -134,30 +138,30 @@ export const Dismissable = {
const mockOnClose = useCallback(() => null, []);
return (
-
+
+
+
+
);
}
};
export const NaturalAttentionBox = {
render: () => (
-
-
Cross-Account Copier
-
Copy boards and dashboards to another account
+
+
+ Cross-Account Copier
+
+ Copy boards and dashboards to another account
-
+
)
};
@@ -174,22 +178,25 @@ export const AttentionBoxInsideADialogCombobox = {
const mockOnClose = useCallback(() => null, []);
return (
-
-
- Suggested people
-
-
-
-
- May Kishon (UX/UI Product Designer)
-
-
-
-
- Invite new board member by email
-
-
-
+
+
+
+ Suggested people
+
+
+
+
+ May Kishon
+ (UX/UI Product Designer)
+
+
+
+
+ Invite new board member by email
+
+
+
+
);
},