From cd4f9d0b9ebf98bd8d7b71c84f48e3811af68f62 Mon Sep 17 00:00:00 2001 From: Robbert Broersma Date: Thu, 14 Nov 2024 23:14:58 +0100 Subject: [PATCH] chore: improve TypeScript compat of Mendix stories --- ...mendix-breadcrumb-nav.stories-disabled.tsx | 4 ++-- packages/storybook/src/mendix-dom.d.ts | 10 ++++++++ ...orm-field-radio-group.stories-disabled.tsx | 24 +++++++++---------- .../mendix-form-field-textarea.stories.tsx | 8 +++---- .../src/mendix-text-input.stories.tsx | 4 ++-- 5 files changed, 30 insertions(+), 20 deletions(-) create mode 100644 packages/storybook/src/mendix-dom.d.ts diff --git a/packages/storybook/src/mendix-breadcrumb-nav.stories-disabled.tsx b/packages/storybook/src/mendix-breadcrumb-nav.stories-disabled.tsx index 830db7d4..04f54c28 100644 --- a/packages/storybook/src/mendix-breadcrumb-nav.stories-disabled.tsx +++ b/packages/storybook/src/mendix-breadcrumb-nav.stories-disabled.tsx @@ -49,7 +49,7 @@ export const Breadcrumbs: Story = { Item 1 extends AriaAttributes, DOMAttributes { + // extends React's HTMLAttributes + mask?: string; + widgetid?: string; + } +} diff --git a/packages/storybook/src/mendix-form-field-radio-group.stories-disabled.tsx b/packages/storybook/src/mendix-form-field-radio-group.stories-disabled.tsx index af562c32..4592132d 100644 --- a/packages/storybook/src/mendix-form-field-radio-group.stories-disabled.tsx +++ b/packages/storybook/src/mendix-form-field-radio-group.stories-disabled.tsx @@ -49,7 +49,7 @@ export const TextInput: Story = {
- +
- +
@@ -116,7 +116,7 @@ export const DisabledTextarea: Story = {
- +
- +
diff --git a/packages/storybook/src/mendix-form-field-textarea.stories.tsx b/packages/storybook/src/mendix-form-field-textarea.stories.tsx index 111f2b71..67582c02 100644 --- a/packages/storybook/src/mendix-form-field-textarea.stories.tsx +++ b/packages/storybook/src/mendix-form-field-textarea.stories.tsx @@ -47,7 +47,7 @@ export const TextInput: Story = {
@@ -80,7 +80,7 @@ export const DisabledTextarea: Story = {
@@ -94,7 +94,7 @@ export const DisabledTextInput: Story = { type="text" maxLength={200} mask="" - autocomplete="on" + autoComplete="on" value="" disabled />