alert(`We need to implement a routing system so I can go to ${infoUrl}`)}>
+
+ alert(`We need to implement a routing system so I can go to ${infoUrl}`)
+ }
+ >
-
- {title}
+
+ {title}
- { badgeText && (
+ {badgeText && (
)
- }
+ state={disabled == true ? "disabled" : badgeState}
+ />
+ )}
@@ -134,7 +146,8 @@ export const CardSecondary = ({
{infoText}
+ className="link-arrow"
+ />
-);
\ No newline at end of file
+);
diff --git a/src/components/Panel/Panel.stories.tsx b/src/components/Panel/Panel.stories.tsx
index 76c60518..b68567eb 100644
--- a/src/components/Panel/Panel.stories.tsx
+++ b/src/components/Panel/Panel.stories.tsx
@@ -5,13 +5,13 @@ import { Title } from "../Typography/Title/Title";
export default {
component: Panel,
title: "Display/Panel",
- tags: ["panel","autodocs"],
+ tags: ["panel", "autodocs"],
argTypes: {
padding: {
options: ["none", "xs", "sm", "md", "lg", "xl"],
control: { type: "select" },
},
- },
+ },
};
export const Playground = {
@@ -20,6 +20,17 @@ export const Playground = {
padding: "md",
hasBorder: true,
hasShadow: true,
- children: Example panel title
Panel content
- },
+ children: (
+
+
Example panel title
+
+
+ Panel content
+
+
+ ),
+ },
};
diff --git a/src/components/Panel/Panel.tsx b/src/components/Panel/Panel.tsx
index 61ac0288..db62999b 100644
--- a/src/components/Panel/Panel.tsx
+++ b/src/components/Panel/Panel.tsx
@@ -5,36 +5,36 @@ export type panelColor = "default" | "muted" | "transparent";
export interface panelProps {
hasBorder?: boolean;
- hasShadow?: boolean;
- color?: panelColor;
+ hasShadow?: boolean;
+ color?: panelColor;
padding?: panelPadding;
- children?: React.ReactNode;
+ children?: React.ReactNode;
}
-export const Panel = ({
- hasBorder,
- hasShadow,
- color,
- padding,
- children
-}: panelProps) => (
-
-
- {children}
-
-
+export const Panel = ({ hasBorder, hasShadow, color, padding, children }: panelProps) => (
+
+
+ {children}
+
+
);
const Wrapper = styled.div`
- background-color: ${({ color = "default", theme }) => theme.click.panel.color.background[color]};
+ background-color: ${({ color = "default", theme }) =>
+ theme.click.panel.color.background[color]};
border-radius: ${({ theme }) => theme.click.panel.radii.all};
padding: ${({ padding = "md", theme }) => theme.click.panel.space.y[padding]};
- border: ${({ hasBorder, theme }) => hasBorder ? `1px solid ${theme.click.global.color.stroke.default}` : "none"};
- box-shadow: ${({ hasShadow, theme }) => hasShadow ? theme.shadow[1] : "none"};
+ border: ${({ hasBorder, theme }) =>
+ hasBorder ? `1px solid ${theme.click.global.color.stroke.default}` : "none"};
+ box-shadow: ${({ hasShadow, theme }) => (hasShadow ? theme.shadow[1] : "none")};
display: flex;
-
`;
const FlexContainer = styled.div`
- display: flex;
-`
\ No newline at end of file
+ display: flex;
+`;