adding monkeytype
Some checks failed
Mark Stale PRs / stale (push) Has been cancelled

This commit is contained in:
Benjamin Falch
2026-04-23 13:53:44 +02:00
parent e214a2fd35
commit 2bc741fb78
1930 changed files with 7590652 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
import preview from "#.storybook/preview";
import { Bar } from "../../src/ts/components/common/Bar";
const meta = preview.meta({
title: "Common/Bar",
component: Bar,
parameters: {
layout: "padded",
},
tags: ["autodocs"],
argTypes: {
percent: { control: { type: "range", min: 0, max: 100 } },
fill: { control: "select", options: ["main", "text"] },
bg: { control: "select", options: ["bg", "sub-alt"] },
showPercentageOnHover: { control: "boolean" },
animationDuration: { control: "number" },
},
});
export const Default = meta.story({
args: {
percent: 50,
fill: "main",
bg: "sub-alt",
},
});
export const Full = meta.story({
args: {
percent: 100,
fill: "main",
bg: "sub-alt",
},
});
export const HalfWithHover = meta.story({
args: {
percent: 50,
fill: "main",
bg: "sub-alt",
showPercentageOnHover: true,
},
});
export const TextFill = meta.story({
args: {
percent: 75,
fill: "text",
bg: "sub-alt",
},
});