From 689ad3afb33fb10c006d05c9a139d33c4745368f Mon Sep 17 00:00:00 2001 From: Andrey Yamanov Date: Thu, 20 Mar 2025 11:39:42 +0100 Subject: [PATCH 1/2] chore(Checkbox): stories with label and title --- src/components/fields/Checkbox/Checkbox.stories.tsx | 3 +++ src/components/fields/Switch/Switch.stories.tsx | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/src/components/fields/Checkbox/Checkbox.stories.tsx b/src/components/fields/Checkbox/Checkbox.stories.tsx index 4da36f119..3bfcfa362 100644 --- a/src/components/fields/Checkbox/Checkbox.stories.tsx +++ b/src/components/fields/Checkbox/Checkbox.stories.tsx @@ -46,6 +46,9 @@ Default.args = { children: 'Checkbox' }; export const WithLabel = Template.bind({}); WithLabel.args = { label: 'Checkbox' }; +export const WithLabelAndTitle = Template.bind({}); +WithLabelAndTitle.args = { children: 'Title', label: 'Checkbox' }; + export const WithoutLabel = Template.bind({}); WithoutLabel.args = {}; diff --git a/src/components/fields/Switch/Switch.stories.tsx b/src/components/fields/Switch/Switch.stories.tsx index 8afc6aef4..c2c10b28e 100644 --- a/src/components/fields/Switch/Switch.stories.tsx +++ b/src/components/fields/Switch/Switch.stories.tsx @@ -42,6 +42,12 @@ WithLabel.args = { label: 'Switch', }; +export const WithLabelAndTitle = Template.bind({}); +WithLabelAndTitle.args = { + label: 'Switch', + children: 'Title', +}; + export const Small = Template.bind({}); Small.args = { children: 'Switch', From 6f86495157f14745699393eedd9efdf2d4e65b3b Mon Sep 17 00:00:00 2001 From: Andrey Yamanov Date: Thu, 20 Mar 2025 11:53:23 +0100 Subject: [PATCH 2/2] chore(Checkbox): stories with label and title * 2 --- src/components/fields/Checkbox/Checkbox.stories.tsx | 2 +- src/components/fields/Switch/Switch.stories.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/fields/Checkbox/Checkbox.stories.tsx b/src/components/fields/Checkbox/Checkbox.stories.tsx index 3bfcfa362..55de8f582 100644 --- a/src/components/fields/Checkbox/Checkbox.stories.tsx +++ b/src/components/fields/Checkbox/Checkbox.stories.tsx @@ -47,7 +47,7 @@ export const WithLabel = Template.bind({}); WithLabel.args = { label: 'Checkbox' }; export const WithLabelAndTitle = Template.bind({}); -WithLabelAndTitle.args = { children: 'Title', label: 'Checkbox' }; +WithLabelAndTitle.args = { children: 'Title', label: 'Label' }; export const WithoutLabel = Template.bind({}); WithoutLabel.args = {}; diff --git a/src/components/fields/Switch/Switch.stories.tsx b/src/components/fields/Switch/Switch.stories.tsx index c2c10b28e..0f3e37efc 100644 --- a/src/components/fields/Switch/Switch.stories.tsx +++ b/src/components/fields/Switch/Switch.stories.tsx @@ -44,7 +44,7 @@ WithLabel.args = { export const WithLabelAndTitle = Template.bind({}); WithLabelAndTitle.args = { - label: 'Switch', + label: 'Label', children: 'Title', };