Refactored Storybook UI (#2020)

* refactored Storybook UI

* refactored Storybook UI

* removed extra cards from the doc, added card for ui components
This commit is contained in:
Nimra Ahmed
2023-10-15 00:22:47 +05:00
committed by GitHub
parent 04090446cc
commit fa9303f545
94 changed files with 98 additions and 112 deletions

View File

@ -20,7 +20,7 @@ const FilledActionBar = (props: { selectedIds: string[] }) => {
};
const meta: Meta<typeof ActionBar> = {
title: 'UI/ActionBar/ActionBar',
title: 'UI/Navigation/ActionBar/ActionBar',
component: FilledActionBar,
decorators: [
(Story) => (

View File

@ -6,7 +6,7 @@ import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWith
import { Breadcrumb } from '../Breadcrumb';
const meta: Meta<typeof Breadcrumb> = {
title: 'UI/Breadcrumb/Breadcrumb',
title: 'UI/Navigation/Breadcrumb/Breadcrumb',
component: Breadcrumb,
decorators: [ComponentDecorator, ComponentWithRouterDecorator],
args: {

View File

@ -26,7 +26,7 @@ const FilledContextMenu = (props: { selectedIds: string[] }) => {
};
const meta: Meta<typeof ContextMenu> = {
title: 'UI/ContextMenu/ContextMenu',
title: 'UI/Navigation/ContextMenu/ContextMenu',
component: FilledContextMenu,
decorators: [
(Story) => (

View File

@ -6,7 +6,7 @@ import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWith
import { ContactLink } from '../ContactLink';
const meta: Meta<typeof ContactLink> = {
title: 'UI/Link/ContactLink',
title: 'UI/Navigation/Link/ContactLink',
component: ContactLink,
decorators: [ComponentWithRouterDecorator],
args: {

View File

@ -8,7 +8,7 @@ import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWith
import { RawLink } from '../RawLink';
const meta: Meta<typeof RawLink> = {
title: 'UI/Link/RawLink',
title: 'UI/Navigation/Link/RawLink',
component: RawLink,
decorators: [ComponentWithRouterDecorator],
args: {

View File

@ -8,7 +8,7 @@ import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWith
import { RoundedLink } from '../RoundedLink';
const meta: Meta<typeof RoundedLink> = {
title: 'UI/Link/RoundedLink',
title: 'UI/Navigation/Link/RoundedLink',
component: RoundedLink,
decorators: [ComponentWithRouterDecorator],
args: {

View File

@ -8,7 +8,7 @@ import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWith
import { LinkType, SocialLink } from '../SocialLink';
const meta: Meta<typeof SocialLink> = {
title: 'UI/Link/SocialLink',
title: 'UI/Navigation/Link/SocialLink',
component: SocialLink,
decorators: [ComponentWithRouterDecorator],
args: {

View File

@ -9,7 +9,7 @@ import { MenuItemAccent } from '../../types/MenuItemAccent';
import { MenuItem } from '../MenuItem';
const meta: Meta<typeof MenuItem> = {
title: 'UI/MenuItem/MenuItem',
title: 'UI/Navigation/MenuItem/MenuItem',
component: MenuItem,
};

View File

@ -9,7 +9,7 @@ import { CatalogStory } from '~/testing/types';
import { MenuItemCommand } from '../MenuItemCommand';
const meta: Meta<typeof MenuItemCommand> = {
title: 'UI/MenuItem/MenuItemCommand',
title: 'UI/Navigation/MenuItem/MenuItemCommand',
component: MenuItemCommand,
};

View File

@ -12,7 +12,7 @@ import { MenuItemAccent } from '../../types/MenuItemAccent';
import { MenuItemDraggable } from '../MenuItemDraggable';
const meta: Meta<typeof MenuItemDraggable> = {
title: 'ui/MenuItem/MenuItemDraggable',
title: 'ui/Navigation/MenuItem/MenuItemDraggable',
component: MenuItemDraggable,
};

View File

@ -12,7 +12,7 @@ import { CatalogStory } from '~/testing/types';
import { MenuItemMultiSelect } from '../MenuItemMultiSelect';
const meta: Meta<typeof MenuItemMultiSelect> = {
title: 'UI/MenuItem/MenuItemMultiSelect',
title: 'UI/Navigation/MenuItem/MenuItemMultiSelect',
component: MenuItemMultiSelect,
};

View File

@ -13,7 +13,7 @@ import { CatalogStory } from '~/testing/types';
import { MenuItemMultiSelectAvatar } from '../MenuItemMultiSelectAvatar';
const meta: Meta<typeof MenuItemMultiSelectAvatar> = {
title: 'UI/MenuItem/MenuItemMultiSelectAvatar',
title: 'UI/Navigation/MenuItem/MenuItemMultiSelectAvatar',
component: MenuItemMultiSelectAvatar,
};

View File

@ -12,7 +12,7 @@ import { CatalogStory } from '~/testing/types';
import { MenuItemNavigate } from '../MenuItemNavigate';
const meta: Meta<typeof MenuItemNavigate> = {
title: 'UI/MenuItem/MenuItemNavigate',
title: 'UI/Navigation/MenuItem/MenuItemNavigate',
component: MenuItemNavigate,
};

View File

@ -12,7 +12,7 @@ import { CatalogStory } from '~/testing/types';
import { MenuItemSelect } from '../MenuItemSelect';
const meta: Meta<typeof MenuItemSelect> = {
title: 'UI/MenuItem/MenuItemSelect',
title: 'UI/Navigation/MenuItem/MenuItemSelect',
component: MenuItemSelect,
};

View File

@ -13,7 +13,7 @@ import { CatalogStory } from '~/testing/types';
import { MenuItemSelectAvatar } from '../MenuItemSelectAvatar';
const meta: Meta<typeof MenuItemSelectAvatar> = {
title: 'UI/MenuItem/MenuItemSelectAvatar',
title: 'UI/Navigation/MenuItem/MenuItemSelectAvatar',
component: MenuItemSelectAvatar,
};

View File

@ -12,7 +12,7 @@ import { CatalogStory } from '~/testing/types';
import { MenuItemSelectColor } from '../MenuItemSelectColor';
const meta: Meta<typeof MenuItemSelectColor> = {
title: 'UI/MenuItem/MenuItemSelectColor',
title: 'UI/Navigation/MenuItem/MenuItemSelectColor',
component: MenuItemSelectColor,
};

View File

@ -12,7 +12,7 @@ import { CatalogStory } from '~/testing/types';
import { MenuItemToggle } from '../MenuItemToggle';
const meta: Meta<typeof MenuItemToggle> = {
title: 'UI/MenuItem/MenuItemToggle',
title: 'UI/Navigation/MenuItem/MenuItemToggle',
component: MenuItemToggle,
};

View File

@ -17,7 +17,7 @@ import NavItem from '../NavItem';
import NavTitle from '../NavTitle';
const meta: Meta<typeof MainNavbar> = {
title: 'UI/Navbar/MainNavbar',
title: 'UI/Navigation/Navbar/MainNavbar',
component: MainNavbar,
};

View File

@ -5,7 +5,7 @@ import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import NavCollapseButton from '../NavCollapseButton';
const meta: Meta<typeof NavCollapseButton> = {
title: 'UI/Navbar/NavCollapseButton',
title: 'UI/Navigation/Navbar/NavCollapseButton',
component: NavCollapseButton,
};

View File

@ -9,7 +9,7 @@ import { CatalogStory } from '~/testing/types';
import NavItem from '../NavItem';
const meta: Meta<typeof NavItem> = {
title: 'UI/Navbar/NavItem',
title: 'UI/Navigation/Navbar/NavItem',
component: NavItem,
};

View File

@ -14,7 +14,7 @@ import NavTitle from '../NavTitle';
import SubMenuNavbar from '../SubMenuNavbar';
const meta: Meta<typeof SubMenuNavbar> = {
title: 'UI/Navbar/SubMenuNavbar',
title: 'UI/Navigation/Navbar/SubMenuNavbar',
component: SubMenuNavbar,
};