2025-08-05 19:04:55 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright 2025 New Vector Ltd.
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
|
|
|
|
* Please see LICENSE files in the repository root for full details.
|
|
|
|
|
*/
|
|
|
|
|
|
2026-02-23 18:14:25 +01:00
|
|
|
import type { Meta, StoryObj } from "@storybook/react-vite";
|
2025-08-05 19:04:55 +02:00
|
|
|
import { Clock } from "./Clock";
|
|
|
|
|
|
2026-02-23 18:14:25 +01:00
|
|
|
const meta = {
|
2025-08-05 19:04:55 +02:00
|
|
|
title: "Audio/Clock",
|
|
|
|
|
component: Clock,
|
|
|
|
|
tags: ["autodocs"],
|
|
|
|
|
args: {
|
|
|
|
|
seconds: 20,
|
|
|
|
|
},
|
2026-02-23 18:14:25 +01:00
|
|
|
} satisfies Meta<typeof Clock>;
|
2025-08-05 19:04:55 +02:00
|
|
|
|
2026-02-23 18:14:25 +01:00
|
|
|
export default meta;
|
|
|
|
|
type Story = StoryObj<typeof meta>;
|
2025-08-05 19:04:55 +02:00
|
|
|
|
2026-02-23 18:14:25 +01:00
|
|
|
export const Default: Story = {};
|
2025-08-05 19:04:55 +02:00
|
|
|
|
2026-02-23 18:14:25 +01:00
|
|
|
export const LotOfSeconds: Story = {
|
|
|
|
|
args: {
|
|
|
|
|
seconds: 99999999999999,
|
|
|
|
|
},
|
2025-08-05 19:04:55 +02:00
|
|
|
};
|
2026-07-13 18:50:50 +05:30
|
|
|
|
|
|
|
|
export const SingleDigitMinutes: Story = {
|
|
|
|
|
args: {
|
|
|
|
|
seconds: 100,
|
|
|
|
|
minutesMaxLength: 1,
|
|
|
|
|
},
|
|
|
|
|
};
|