From 3dd1ac0a1eda8521ac9724c0b360941914c7241f Mon Sep 17 00:00:00 2001 From: paghar Date: Sat, 13 Apr 2024 21:01:27 +0330 Subject: [PATCH 1/3] feat(ui) Add advanced list story --- .changeset/tough-cobras-call.md | 5 +++++ packages/ui/src/components/List/List.stories.tsx | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .changeset/tough-cobras-call.md diff --git a/.changeset/tough-cobras-call.md b/.changeset/tough-cobras-call.md new file mode 100644 index 000000000..10a59362c --- /dev/null +++ b/.changeset/tough-cobras-call.md @@ -0,0 +1,5 @@ +--- +"flowbite-react": major +--- + +Advanced list story diff --git a/packages/ui/src/components/List/List.stories.tsx b/packages/ui/src/components/List/List.stories.tsx index 00b5ebc11..00e5f8441 100644 --- a/packages/ui/src/components/List/List.stories.tsx +++ b/packages/ui/src/components/List/List.stories.tsx @@ -3,6 +3,10 @@ import { HiCheckCircle } from "react-icons/hi"; import type { ListProps } from "./List"; import { List } from "./List"; + + + + export default { title: "Components/List", component: List, @@ -109,3 +113,15 @@ WithIconList.args = { ), }; + +export const AdvancedList = Template.bind({}); +AdvancedList.storyName = "Advanced"; +AdvancedList.args = { + children: ( + <> + At least 10 characters (and up to 100 characters) + At least one lowercase character + Inclusion of at least one special character, e.g., ! @ # ? + + ), +}; \ No newline at end of file From e808f6600c6afe63c821ba19506ef0c307eb49bd Mon Sep 17 00:00:00 2001 From: paghar Date: Sat, 13 Apr 2024 22:57:17 +0330 Subject: [PATCH 2/3] fix(ui) actual advanced story book --- .../ui/src/components/List/List.stories.tsx | 87 +++++++++++++++++-- 1 file changed, 79 insertions(+), 8 deletions(-) diff --git a/packages/ui/src/components/List/List.stories.tsx b/packages/ui/src/components/List/List.stories.tsx index 00e5f8441..fc2b72d22 100644 --- a/packages/ui/src/components/List/List.stories.tsx +++ b/packages/ui/src/components/List/List.stories.tsx @@ -1,12 +1,9 @@ import type { Meta, StoryFn } from "@storybook/react"; import { HiCheckCircle } from "react-icons/hi"; +import { Avatar } from "../Avatar"; import type { ListProps } from "./List"; import { List } from "./List"; - - - - export default { title: "Components/List", component: List, @@ -117,11 +114,85 @@ WithIconList.args = { export const AdvancedList = Template.bind({}); AdvancedList.storyName = "Advanced"; AdvancedList.args = { + unstyled: true, + className: "max-w-md divide-y divide-gray-200 dark:divide-gray-700", children: ( <> - At least 10 characters (and up to 100 characters) - At least one lowercase character - Inclusion of at least one special character, e.g., ! @ # ? + +
+ +
+

Neil Sims

+

email@flowbite.com

+
+
$320
+
+
+ +
+ +
+

Bonnie Green

+

email@flowbite.com

+
+
$3467
+
+
+ +
+ +
+

Michael Gough

+

email@flowbite.com

+
+
$67
+
+
+ +
+ +
+

Thomas Lean

+

email@flowbite.com

+
+
$2367
+
+
+ +
+ +
+

Lana Byrd

+

email@flowbite.com

+
+
$367
+
+
), -}; \ No newline at end of file +}; From 3088d6b7afeba919888ab13352c8907b080f8ada Mon Sep 17 00:00:00 2001 From: paghar Date: Mon, 15 Apr 2024 11:50:58 +0330 Subject: [PATCH 3/3] fix delete unneccesary changeset --- .changeset/tough-cobras-call.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 .changeset/tough-cobras-call.md diff --git a/.changeset/tough-cobras-call.md b/.changeset/tough-cobras-call.md deleted file mode 100644 index 10a59362c..000000000 --- a/.changeset/tough-cobras-call.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"flowbite-react": major ---- - -Advanced list story