diff --git a/src/components/Panel/Panel.tsx b/src/components/Panel/Panel.tsx index c17db8af..01f7da80 100644 --- a/src/components/Panel/Panel.tsx +++ b/src/components/Panel/Panel.tsx @@ -1,10 +1,8 @@ import { Orientation } from "@/components"; import { HTMLAttributes } from "react"; import styled from "styled-components"; +import { PanelColor, PanelPadding, PanelRadii } from "@/components/Panel/types.ts"; -export type PanelPadding = "none" | "xs" | "sm" | "md" | "lg" | "xl"; -export type PanelColor = "default" | "muted" | "transparent"; -export type PanelRadii = "none" | "sm" | "md" | "lg"; type AlignItemsOption = "start" | "center" | "end"; export interface PanelProps extends HTMLAttributes { diff --git a/src/components/Panel/types.ts b/src/components/Panel/types.ts new file mode 100644 index 00000000..53c2923c --- /dev/null +++ b/src/components/Panel/types.ts @@ -0,0 +1,3 @@ +export type PanelPadding = "none" | "xs" | "sm" | "md" | "lg" | "xl"; +export type PanelColor = "default" | "muted" | "transparent"; +export type PanelRadii = "none" | "sm" | "md" | "lg"; diff --git a/src/components/types.ts b/src/components/types.ts index 3c8f218f..35450e97 100644 --- a/src/components/types.ts +++ b/src/components/types.ts @@ -70,6 +70,7 @@ export type { export type { PaginationProps } from "./Pagination/Pagination"; export type { ContextMenuItemProps } from "./ContextMenu/ContextMenu"; export type { GenericLabelProps } from "./GenericLabel/GenericLabel"; +export type { PanelPadding, PanelColor, PanelRadii } from "./Panel/types"; export type { IconButtonProps }; export type { AlertProps };