Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SWUI-19][IMPROV] - Update UI folder stucture #20

Merged
merged 3 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
1 change: 1 addition & 0 deletions packages/ui/src/components/ChipButton/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./ChipButton";
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { forwardRef } from "react";
import * as DialogPrimitive from "@radix-ui/react-dialog";
import { cva, cx } from "class-variance-authority";
import { IconButton } from "./IconButton";
import { IconButton } from "../IconButton";

interface SizeProp {
size?: "lg" | "xl" | null | undefined;
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/components/Dialog/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./Dialog";
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as IconList from "./icons";
import * as IconList from "../icons";

export type IconName =
| "about-fill"
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/components/Icon/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./Icon";
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Icon, IconName } from "./Icon";
import { Icon, IconName } from "../Icon";
import { cva } from "class-variance-authority";

const iconBadgeStyles = cva(
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/components/IconBadge/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./IconBadge";
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { cva } from "class-variance-authority";
import { Button, ButtonProps, ButtonSizeProp } from "./Button";
import { Icon, IconProps } from "./Icon";
import { Button, ButtonProps, ButtonSizeProp } from "../Button";
import { Icon, IconProps } from "../Icon";

export const iconButtonStyles = cva([], {
variants: {
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/components/IconButton/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./IconButton";
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { forwardRef, useEffect, useRef } from "react";
import * as LabelPrimitive from "@radix-ui/react-label";
import { cva, cx } from "class-variance-authority";
import { Icon, IconName } from "./Icon";
import { Icon, IconName } from "../Icon";

const inputStyles = cva(
[
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/components/Input/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./Input";
1 change: 1 addition & 0 deletions packages/ui/src/components/Logo/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./Logo";
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { cva } from "class-variance-authority";
import { Logo, LogoSizeProp } from "./Logo";
import { Logo, LogoSizeProp } from "../Logo";

export const logoPairStyles = cva(["flex items-center w-fit h-fit relative"], {
variants: {
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/components/LogoPair/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./LogoPair";
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Children, Fragment, PropsWithChildren } from "react";
import { Tab, TabProps } from "@headlessui/react";
import { ChipButton } from "./ChipButton";
import { ChipButton } from "../ChipButton";
import { twMerge } from "tailwind-merge";

export const TabGroup = ({
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/components/Tabs/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./Tabs";
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export type TagColorSchemeProp =
| "danger"
| "info";

interface TagProps {
export interface TagProps {
size?: TagSizeProp;
colorScheme?: TagColorSchemeProp;
className?: string;
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/components/Tag/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./Tag";
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { PropsWithChildren, ReactNode } from "react";
import { toast as sonnerToast, Toaster } from "sonner";
import { cva } from "class-variance-authority";

import { Icon } from "./Icon";
import { Button } from "./Button";
import { Icon } from "../Icon";
import { Button } from "../Button";

export const toastStyles = cva(
[
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/components/Toast/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./Toast";
1 change: 1 addition & 0 deletions packages/ui/src/components/ToggleGroup/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./ToggleGroup";
52 changes: 0 additions & 52 deletions packages/ui/src/stories/Button.stories.ts

This file was deleted.

51 changes: 0 additions & 51 deletions packages/ui/src/stories/Button.tsx

This file was deleted.

33 changes: 0 additions & 33 deletions packages/ui/src/stories/Header.stories.ts

This file was deleted.

69 changes: 0 additions & 69 deletions packages/ui/src/stories/Header.tsx

This file was deleted.

32 changes: 0 additions & 32 deletions packages/ui/src/stories/Page.stories.ts

This file was deleted.

Loading