From 29a4e8c2eebde1431ff244995b489d180f3ac48b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Mon, 23 Feb 2026 19:57:19 +0100 Subject: [PATCH] add width, v0.1.10 --- package.json | 2 +- src/components/Button.stories.tsx | 9 ++++++++- src/components/Button.tsx | 14 ++++++++++++-- src/components/DatePicker.stories.tsx | 8 ++++++++ src/components/DatePicker.tsx | 8 +++++--- src/components/Dropdown.stories.tsx | 16 +++++++++++++++- src/components/Dropdown.tsx | 8 +++++--- src/components/Form.stories.tsx | 1 + src/components/InputField.stories.tsx | 8 ++++++++ src/components/InputField.tsx | 8 +++++--- 10 files changed, 68 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 71a5710..05d995e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@panic/web-ui", - "version": "0.1.9", + "version": "0.1.10", "license": "AGPL-3.0-only", "description": "Core components for panic.haus web applications", "type": "module", diff --git a/src/components/Button.stories.tsx b/src/components/Button.stories.tsx index ae0119c..c8eddf1 100644 --- a/src/components/Button.stories.tsx +++ b/src/components/Button.stories.tsx @@ -39,6 +39,12 @@ const meta = { control: 'inline-radio', table: { type: { summary: "'sm' | 'md' | 'lg' | 'full'" } }, }, + width: { + description: 'Button width behavior.', + options: ['sm', 'md', 'lg', 'full'], + control: 'inline-radio', + table: { type: { summary: "'sm' | 'md' | 'lg' | 'full'" } }, + }, to: { description: 'Navigation path. When set, the component renders a ``.', control: 'text', @@ -80,6 +86,7 @@ const meta = { type: 'solid', variant: 'primary', size: 'md', + width: 'md', label: 'Save', }, } satisfies Meta; @@ -132,7 +139,7 @@ export const SizeMatrix: Story = {