79 lines
2.3 KiB
JavaScript
79 lines
2.3 KiB
JavaScript
import Mini from "../../app/components/cards/Mini";
|
|
import { getAssetPath, featurePanelPath } from "../../lib/assetUtils";
|
|
|
|
export default {
|
|
title: "Components/Cards/Mini",
|
|
component: Mini,
|
|
parameters: {
|
|
layout: "centered",
|
|
},
|
|
argTypes: {
|
|
backgroundColor: {
|
|
control: "select",
|
|
options: [
|
|
"bg-[var(--color-surface-invert-brand-royal)]",
|
|
"bg-[var(--color-surface-invert-brand-lime)]",
|
|
"bg-[var(--color-surface-invert-brand-rust)]",
|
|
"bg-[var(--color-surface-invert-brand-teal)]",
|
|
],
|
|
},
|
|
labelLine1: { control: "text" },
|
|
labelLine2: { control: "text" },
|
|
panelContent: { control: "text" },
|
|
href: { control: "text" },
|
|
onClick: { action: "clicked" },
|
|
ariaLabel: { control: "text" },
|
|
},
|
|
};
|
|
|
|
export const Default = {
|
|
args: {
|
|
backgroundColor: "bg-[var(--color-surface-invert-brand-royal)]",
|
|
labelLine1: "Decision-making",
|
|
labelLine2: "support",
|
|
panelContent: getAssetPath(featurePanelPath("support")),
|
|
},
|
|
};
|
|
|
|
export const ColorVariants = {
|
|
render: () => (
|
|
<div className="grid grid-cols-2 gap-4">
|
|
<Mini
|
|
backgroundColor="bg-[var(--color-surface-invert-brand-royal)]"
|
|
labelLine1="Decision-making"
|
|
labelLine2="support"
|
|
panelContent={getAssetPath(featurePanelPath("support"))}
|
|
/>
|
|
<Mini
|
|
backgroundColor="bg-[var(--color-surface-invert-brand-lime)]"
|
|
labelLine1="Values alignment"
|
|
labelLine2="exercises"
|
|
panelContent={getAssetPath(featurePanelPath("exercises"))}
|
|
/>
|
|
<Mini
|
|
backgroundColor="bg-[var(--color-surface-invert-brand-rust)]"
|
|
labelLine1="Membership"
|
|
labelLine2="guidance"
|
|
panelContent={getAssetPath(featurePanelPath("guidance"))}
|
|
/>
|
|
<Mini
|
|
backgroundColor="bg-[var(--color-surface-invert-brand-teal)]"
|
|
labelLine1="Conflict resolution"
|
|
labelLine2="tools"
|
|
panelContent={getAssetPath(featurePanelPath("tools"))}
|
|
/>
|
|
</div>
|
|
),
|
|
};
|
|
|
|
export const AsLink = {
|
|
args: {
|
|
backgroundColor: "bg-[var(--color-surface-invert-brand-royal)]",
|
|
labelLine1: "Decision-making",
|
|
labelLine2: "support",
|
|
panelContent: getAssetPath(featurePanelPath("support")),
|
|
href: "#decision-making",
|
|
ariaLabel: "Navigate to decision-making support tools",
|
|
},
|
|
};
|