From 1748b08c8292951cce01b8aaba8081707c6e27aa Mon Sep 17 00:00:00 2001 From: JamesS-M <36538072+JamesS-M@users.noreply.github.com> Date: Sat, 14 Sep 2024 10:24:39 -0300 Subject: [PATCH] give preview of select menu consistent look --- previewsComponents/FUIDefaultSelectMenu.jsx | 2 +- previewsComponents/FUIPrimarySelectMenu.jsx | 50 ++-- .../FUISelectMenuWithAvatars.jsx | 156 ++++++----- previewsComponents/FUISelectMenuWithIcon.jsx | 150 +++++----- .../FUISelectMenuWithSearchBox.jsx | 260 +++++++++--------- .../FUISelectMenuWithSearchBox2.jsx | 258 +++++++++-------- previewsComponents/FUIStatusSelectMenu.jsx | 2 +- 7 files changed, 435 insertions(+), 443 deletions(-) diff --git a/previewsComponents/FUIDefaultSelectMenu.jsx b/previewsComponents/FUIDefaultSelectMenu.jsx index b82d9f4..ce96840 100644 --- a/previewsComponents/FUIDefaultSelectMenu.jsx +++ b/previewsComponents/FUIDefaultSelectMenu.jsx @@ -8,7 +8,7 @@ import * as DropdownMenu from '@radix-ui/react-dropdown-menu'; export default function FUIDefaultSelectMenu() { return ( -
+
-
+
@@ -83,37 +83,37 @@ const SelectItem = React.forwardRef( className="w-[var(--radix-select-trigger-width)] mt-3 overflow-y-auto bg-white border rounded-lg shadow-sm text-sm" > - - Software engineer - + + Software engineer + - - Project manager - + + Project manager + - - IT manager - + + IT manager + - - UI / UX designer - + + UI / UX designer + - - Full-stack engineer - + + Full-stack engineer + - - Front-end enginner - + + Front-end enginner + - - Marketing manager - + + Marketing manager + - - embded system enginner - + + embded system enginner + diff --git a/previewsComponents/FUISelectMenuWithAvatars.jsx b/previewsComponents/FUISelectMenuWithAvatars.jsx index 6293e87..12467b0 100644 --- a/previewsComponents/FUISelectMenuWithAvatars.jsx +++ b/previewsComponents/FUISelectMenuWithAvatars.jsx @@ -76,92 +76,90 @@ const SelectItem = React.forwardRef( return ( -
- -
- - -
- -
- {menuItems[selectedItemIdx].name} - {menuItems[selectedItemIdx].label} -
+ +
+ + +
+ +
+ {menuItems[selectedItemIdx].name} + {menuItems[selectedItemIdx].label}
- - - - - - - - - + + + - - - -
- Danya - @danya -
- + + +
+ + + + + + +
+ Danya + @danya +
+
- - -
- Osama - @osama -
-
+ + +
+ Osama + @osama +
+
- - -
- Loyan - @loyan -
-
+ + +
+ Loyan + @loyan +
+
- - -
- Carllose - @carllose -
-
+ + +
+ Carllose + @carllose +
+
- - -
- Micheal - @micheal -
-
+ + +
+ Micheal + @micheal +
+
-
-
-
-
- -
+ + + +
+ ); }; \ No newline at end of file diff --git a/previewsComponents/FUISelectMenuWithIcon.jsx b/previewsComponents/FUISelectMenuWithIcon.jsx index f1438c9..89d5a38 100644 --- a/previewsComponents/FUISelectMenuWithIcon.jsx +++ b/previewsComponents/FUISelectMenuWithIcon.jsx @@ -93,88 +93,86 @@ const SelectItem = React.forwardRef( ]; return ( -
- -
- - -
- -
- {menuItems[selectedItemIdx].name} - {menuItems[selectedItemIdx].label} -
+ +
+ + +
+ +
+ {menuItems[selectedItemIdx].name} + {menuItems[selectedItemIdx].label}
- - - - - - - - - + + + - - - -
- Danya - @danya -
- + + +
+ + + + + + +
+ Danya + @danya +
+
- - -
- Osama - @osama -
-
+ + +
+ Osama + @osama +
+
- - -
- Loyan - @loyan -
-
+ + +
+ Loyan + @loyan +
+
- - -
- Carllose - @carllose -
-
+ + +
+ Carllose + @carllose +
+
- - -
- Micheal - @micheal -
-
-
-
-
-
- -
+ + +
+ Micheal + @micheal +
+
+ + + +
+ ); }; diff --git a/previewsComponents/FUISelectMenuWithSearchBox.jsx b/previewsComponents/FUISelectMenuWithSearchBox.jsx index 9e6c466..cfd01ee 100644 --- a/previewsComponents/FUISelectMenuWithSearchBox.jsx +++ b/previewsComponents/FUISelectMenuWithSearchBox.jsx @@ -77,20 +77,42 @@ const SelectItem = React.forwardRef( }; return ( -
- setCountries(menuItems)} - > -
- - - {value} - - + setCountries(menuItems)} + > +
+ + + {value} + + + + + + + + + +
- - - - -
- - - - -
- - {countries.length < 1 ? ( -
Nothing found.
- ) : ( - "" - )} - - United States of America - - - - Albania - - - - Algeria - - - - Andorra - - - - Argentina - - - - Armenia - - - - Austria - - - - Australia - - - - Azerbaijan - - - - Bahamas - - - - Brazil - - - - Canada - - - - Colombia - - - - China - - - - Egypt - - - - France - - - - Germany - - - - India - - - - Iraq - - -
-
-
-
- -
+ +
+ + {countries.length < 1 ? ( +
Nothing found.
+ ) : ( + "" + )} + + United States of America + + + + Albania + + + + Algeria + + + + Andorra + + + + Argentina + + + + Armenia + + + + Austria + + + + Australia + + + + Azerbaijan + + + + Bahamas + + + + Brazil + + + + Canada + + + + Colombia + + + + China + + + + Egypt + + + + France + + + + Germany + + + + India + + + + Iraq + + +
+ + +
+ ); }; \ No newline at end of file diff --git a/previewsComponents/FUISelectMenuWithSearchBox2.jsx b/previewsComponents/FUISelectMenuWithSearchBox2.jsx index 60c8414..2b4e42c 100644 --- a/previewsComponents/FUISelectMenuWithSearchBox2.jsx +++ b/previewsComponents/FUISelectMenuWithSearchBox2.jsx @@ -76,20 +76,42 @@ export default function FUISelectMenuWithSearchBox2() { }; return ( -
- setCountries(menuItems)} - > -
- - - {value} - - + setCountries(menuItems)} + > +
+ + + {value} + + + + + + + + + +
- - - - -
- - - - -
- - {countries.length < 1 ? ( -
Nothing found.
- ) : ( - "" - )} - - United States of America - - - - Albania - - - - Algeria - - - - Andorra - - - - Argentina - - - - Armenia - - - - Austria - - - - Australia - - - - Azerbaijan - - - - Bahamas - - - - Brazil - - - - Canada - - - - Colombia - - - - China - - - - Egypt - - - - France - - - - Germany - - - - India - - - - Iraq - -
-
-
-
- -
+ +
+ + {countries.length < 1 ? ( +
Nothing found.
+ ) : ( + "" + )} + + United States of America + + + + Albania + + + + Algeria + + + + Andorra + + + + Argentina + + + + Armenia + + + + Austria + + + + Australia + + + + Azerbaijan + + + + Bahamas + + + + Brazil + + + + Canada + + + + Colombia + + + + China + + + + Egypt + + + + France + + + + Germany + + + + India + + + + Iraq + +
+ + +
+ ); }; diff --git a/previewsComponents/FUIStatusSelectMenu.jsx b/previewsComponents/FUIStatusSelectMenu.jsx index 8d1f7d4..6d15d86 100644 --- a/previewsComponents/FUIStatusSelectMenu.jsx +++ b/previewsComponents/FUIStatusSelectMenu.jsx @@ -36,7 +36,7 @@ export default function FUIStatusSelectMenu() { }, []) return ( -
+