From eb49d84a34c2b20e6f0e38eeb989423e9bdbd7e9 Mon Sep 17 00:00:00 2001 From: Roshan Goswami Date: Fri, 22 Nov 2024 09:47:48 +0530 Subject: [PATCH] Updates in List component to the sistent components page Signed-off-by: Roshan Goswami --- .../Projects/Sistent/components/list/code.js | 6 - .../Sistent/components/list/guidance.js | 190 +----------------- .../Projects/Sistent/components/list/index.js | 16 +- 3 files changed, 12 insertions(+), 200 deletions(-) diff --git a/src/sections/Projects/Sistent/components/list/code.js b/src/sections/Projects/Sistent/components/list/code.js index de3faadd9bb6..f3ce5ef2979a 100644 --- a/src/sections/Projects/Sistent/components/list/code.js +++ b/src/sections/Projects/Sistent/components/list/code.js @@ -114,9 +114,6 @@ export const ListCode = () => {
- {/* } primaryText="Document" /> - } primaryText="Folder" /> - } primaryText="Profile" /> */} 🌟 @@ -142,9 +139,6 @@ export const ListCode = () => {
- {/* - - */} 👤 👩‍💻 👩‍💻 diff --git a/src/sections/Projects/Sistent/components/list/guidance.js b/src/sections/Projects/Sistent/components/list/guidance.js index ccf870740acb..b8ef1f87345c 100644 --- a/src/sections/Projects/Sistent/components/list/guidance.js +++ b/src/sections/Projects/Sistent/components/list/guidance.js @@ -144,192 +144,4 @@ export const ListGuidance = () => {
); -}; -/*export const ButtonGuidance = () => { - const location = useLocation(); - const { isDark } = useStyledDarkMode(); - - return ( - -
- -

Button

-
-

- A button is an interactive element that triggers a specific action, - takes users where they need to go, and points out what happens next in - a given flow. -

-
- navigate("/projects/sistent/components/button")} - title="Overview" - /> - - navigate("/projects/sistent/components/button/guidance") - } - title="Guidance" - /> - navigate("/projects/sistent/components/button/code")} - title="Code" - /> -
-
-

- For proper application, these buttons can be used for different - purposes to enable easier and consistent combination when guiding - users across digital experiences. -

- -

Function

-
-

- The function of different buttons is what determines its usage and - how well suited it is to be applied in a given scenario to solve an - existing problem or complete a pending task. Functions or roles that - can be assigned to buttons in a particular design include: -

-

Primary Button

-

- Primary buttons are used for the most important actions on a page. - It should be the key button that helps the user navigate in a given - flow or while trying to perform a specific action. This could apply - in cases like when the user needs to submit a from, proceed to a new - page, or complete an action. The filled button serves as the primary - button. -

- - -
-
-
- ); -}; -*/ \ No newline at end of file +}; \ No newline at end of file diff --git a/src/sections/Projects/Sistent/components/list/index.js b/src/sections/Projects/Sistent/components/list/index.js index 2ec57257a8fd..11ccde3e8856 100644 --- a/src/sections/Projects/Sistent/components/list/index.js +++ b/src/sections/Projects/Sistent/components/list/index.js @@ -39,7 +39,7 @@ const SistentList = () => { />
- +

The List component is a flexible and structured container for organizing content in vertical layouts. It supports various child components, such as List Items, Icons, Avatars, Buttons, and Subheaders, making it ideal for creating navigational menus, data displays, or interactive content groups.

@@ -51,6 +51,8 @@ const SistentList = () => {

  • Customizable Design: Offers size variations, dense modes, and alignment options.
  • Accessibility: Ensures keyboard navigation and visual feedback for enhanced usability.
  • + +

    Components Overview:

    @@ -64,7 +66,10 @@ const SistentList = () => {
  • List Subheader: Provides a labeled header for grouping related list items.
  • + +

    Types of List component

    +

    1. List

    The base container for organizing related content in vertical layouts.

    Basic Usage:

    @@ -86,6 +91,7 @@ const SistentList = () => { +

    2. List Item

    Represents an individual entry in a list. Includes primary and optional secondary text. @@ -102,7 +108,7 @@ const SistentList = () => { - +

    3. List Item Button

    Adds interactivity to list items, making them actionable. @@ -120,7 +126,7 @@ const SistentList = () => { - +

    4. List with Icons

    Icons can be added to list items to enhance visual interest and provide additional meaning for each item. Enhances list items with visual elements for better context. @@ -151,7 +157,7 @@ const SistentList = () => { - +

    List with Avatars

    Avatars can be added to list items, which is particularly useful for representing people or items visually. Visually represents items with avatars for a user-friendly interface. @@ -170,7 +176,7 @@ const SistentList = () => { - +

    6. List Subheader

    Subheaders provide a way to label groups within a list, adding clarity and helping users navigate content. Groups and labels items within a list for better navigation and organization.