Skip to content

Commit

Permalink
♻️ Stories structure
Browse files Browse the repository at this point in the history
  • Loading branch information
bal7hazar committed Feb 7, 2025
1 parent c8f5985 commit a4fab54
Show file tree
Hide file tree
Showing 102 changed files with 35 additions and 34 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/ui-next/src/components/layout/header.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { EthereumIcon, TransferIcon } from "@cartridge/ui-next";
import { LayoutHeader } from "./index";

const meta: Meta<typeof LayoutHeader> = {
title: "Layout/Header",
component: LayoutHeader,
tags: ["autodocs"],
parameters: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const Preview = ({
onMouseEnter={onMouseEnter}
onMouseLeave={onMouseLeave}
>
<div className="h-10 w-10 rounded-full overflow-hidden bg-background-100 flex items-center justify-center">
<div className="h-10 w-10 rounded-full overflow-hidden bg-background flex items-center justify-center">
{getIcon(wallet)}
</div>
{name ? (
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/accordion.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Meta, StoryObj } from "@storybook/react";
import { CircleIcon, InfoIcon } from "../";

const meta: Meta<typeof Accordion> = {
title: "Accordion",
title: "Primitives/Accordion",
component: Accordion,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/alert.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof Alert> = {
title: "Alert",
title: "Primitives/Alert",
component: Alert,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/badge.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Badge } from "@/components/primitives/badge";
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof Badge> = {
title: "Badge",
title: "Primitives/Badge",
component: Badge,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/breadcrumb.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { SlashIcon } from "@/components/icons";
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof Breadcrumb> = {
title: "Breadcrumb",
title: "Primitives/Breadcrumb",
component: Breadcrumb,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Button } from "@/components/primitives/button";
import { TimesIcon } from "@/components/icons/utility/times";

const meta: Meta<typeof Button> = {
title: "Button",
title: "Primitives/Button",
component: Button,
parameters: {
layout: "centered",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/card.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Meta, StoryObj } from "@storybook/react";
import { useEffect } from "react";

const meta: Meta<typeof Card> = {
title: "Card",
title: "Primitives/Card",
component: Card,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/checkbox.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Checkbox as UICheckbox } from "@/components/primitives/checkbox";
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof Checkbox> = {
title: "Checkbox",
title: "Primitives/Checkbox",
component: Checkbox,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/colors.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Meta, StoryObj } from "@storybook/react";
import { PropsWithChildren } from "react";

const meta: Meta<typeof Colors> = {
title: "Colors",
title: "Primitives/Colors",
component: Colors,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/command.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof Command> = {
title: "Command",
title: "Primitives/Command",
component: Command,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/dialog.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
} from "@/components/primitives/dialog";

const meta: Meta<typeof Dialog> = {
title: "Dialog",
title: "Primitives/Dialog",
component: Dialog,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/drawer.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof Drawer> = {
title: "Drawer",
title: "Primitives/Drawer",
component: Drawer,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/dropdown-menu.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from "@/components/primitives/dropdown-menu";

const meta: Meta<typeof DropdownMenu> = {
title: "Dropdown Menu",
title: "Primitives/Dropdown Menu",
component: DropdownMenu,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/hover-card.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof HoverCard> = {
title: "Hover Card",
title: "Primitives/Hover Card",
component: HoverCard,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/icons.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const iconsByCategory = {
};

const meta: Meta<typeof Icons> = {
title: "Icons",
title: "Primitives/Icons",
component: Icons,
tags: ["autodocs"],
argTypes: {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/input.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Input } from "@/components/primitives/input";
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof Input> = {
title: "Input",
title: "Primitives/Input",
component: Input,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/label.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Label as UILabel } from "@/components/primitives/label";
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof Label> = {
title: "Label",
title: "Primitives/Label",
component: Label,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/menubar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof Menubar> = {
title: "Menubar",
title: "Primitives/Menubar",
component: Menubar,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/popover.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof Popover> = {
title: "Popover",
title: "Primitives/Popover",
component: Popover,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/progress.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Progress as UIProgress } from "@/components/primitives/progress";
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof Progress> = {
title: "Progress",
title: "Primitives/Progress",
component: Progress,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/radio-group.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof RadioGroup> = {
title: "Radio Group",
title: "Primitives/Radio Group",
component: RadioGroup,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/select.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof Select> = {
title: "Select",
title: "Primitives/Select",
component: Select,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/separator.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Separator as UISeparator } from "@/components/primitives/separator";
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof Separator> = {
title: "Separator",
title: "Primitives/Separator",
component: Separator,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/sheet.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof Sheet> = {
title: "Sheet",
title: "Primitives/Sheet",
component: Sheet,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/skeleton.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Skeleton as UISkeleton } from "@/components/primitives/skeleton";
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof Skeleton> = {
title: "Skeleton",
title: "Primitives/Skeleton",
component: Skeleton,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/sonner.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Meta, StoryObj } from "@storybook/react";
import { toast } from "sonner";

const meta: Meta<typeof Sonner> = {
title: "Sonner",
title: "Primitives/Sonner",
component: Sonner,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/switch.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Switch as UISwitch } from "@/components/primitives/switch";
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof Switch> = {
title: "Switch",
title: "Primitives/Switch",
component: Switch,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/table.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof Table> = {
title: "Table",
title: "Primitives/Table",
component: Table,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/tabs.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof Tabs> = {
title: "Tabs",
title: "Primitives/Tabs",
component: Tabs,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/textarea.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Textarea as UITextarea } from "@/components/primitives/textarea";
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof Textarea> = {
title: "Textarea",
title: "Primitives/Textarea",
component: Textarea,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/toast.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useToast } from "@/components/primitives/use-toast";
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof Toast> = {
title: "Toast",
title: "Primitives/Toast",
component: Toast,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/toggle-group.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof ToggleGroup> = {
title: "Toggle Group",
title: "Primitives/Toggle Group",
component: ToggleGroup,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/toggle.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Toggle as UIToggle } from "@/components/primitives/toggle";
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof Toggle> = {
title: "Toggle",
title: "Primitives/Toggle",
component: Toggle,
tags: ["autodocs"],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-next/src/stories/tooltip.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof Tooltip> = {
title: "Tooltip",
title: "Primitives/Tooltip",
component: Tooltip,
tags: ["autodocs"],
};
Expand Down

0 comments on commit a4fab54

Please sign in to comment.