From 8ad9a381eea441bb0345c4d985072ebb03d64021 Mon Sep 17 00:00:00 2001 From: Gabriel De Los Rios Date: Sun, 24 Aug 2025 23:01:51 -0300 Subject: [PATCH] feat: story for title bar date --- .../molecules/title-bar-date.stories.ts | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 projects/my-wallet-ds/src/stories/molecules/title-bar-date.stories.ts diff --git a/projects/my-wallet-ds/src/stories/molecules/title-bar-date.stories.ts b/projects/my-wallet-ds/src/stories/molecules/title-bar-date.stories.ts new file mode 100644 index 0000000..320ba3d --- /dev/null +++ b/projects/my-wallet-ds/src/stories/molecules/title-bar-date.stories.ts @@ -0,0 +1,40 @@ +import { Meta, StoryObj } from "@storybook/angular"; +import { TitleBarDateComponent } from "../../public-api"; +import { amount } from "../control-constants/title-bar"; + +const meta: Meta = { + title: 'Molecules / Title Bar Date', + component: TitleBarDateComponent, + tags:['autodocs'], + args: { + amount: 15000, + date: new Date(), + }, + argTypes: { + amount, + date: { + control: 'date', + description: 'Title (group) date', + table: {defaultValue: {detail: 'Defaults to new Date()', summary: 'new Date() (current date)'}} + } + }, + render: (args) => ({ + + props: args, + styles: [ + ` + @import url('/assets/styles.css'); + :host { + display: block; + height: 40px; + margin: auto; + padding: 0 4px; + width: 375px; + } + `] + }) +} + +export default meta; + +export const Default: StoryObj = {}; \ No newline at end of file