diff --git a/packages/storybook/stories/components/datepicker/3_demo.stories.ts b/packages/storybook/stories/components/datepicker/3_demo.stories.ts index 38c343d4f4..d7b313f4c6 100644 --- a/packages/storybook/stories/components/datepicker/3_demo.stories.ts +++ b/packages/storybook/stories/components/datepicker/3_demo.stories.ts @@ -1,5 +1,5 @@ import { ODS_THEME_COLOR_INTENT } from '@ovhcloud/ods-common-theming'; -import { ODS_DATEPICKER_DAYS, ODS_DATEPICKER_LOCALE, ODS_DATEPICKER_LOCALES } from '@ovhcloud/ods-components'; +import { ODS_DATEPICKER_DAYS, ODS_DATEPICKER_LOCALE } from '@ovhcloud/ods-components'; import { defineCustomElement } from '@ovhcloud/ods-components/dist/components/osds-datepicker'; import { html } from 'lit-html'; import { extractArgTypes, extractStoryParams, getTagAttributes } from '../../../core/componentHTMLUtils'; @@ -23,7 +23,7 @@ const storyParams = { locale: { category: 'General', defaultValue: ODS_DATEPICKER_LOCALE.EN, - options: ODS_DATEPICKER_LOCALES, + options: [ODS_DATEPICKER_LOCALE.EN, ODS_DATEPICKER_LOCALE.DE, ODS_DATEPICKER_LOCALE.ES, ODS_DATEPICKER_LOCALE.FR, ODS_DATEPICKER_LOCALE.IT, ODS_DATEPICKER_LOCALE.NL, ODS_DATEPICKER_LOCALE.PL, ODS_DATEPICKER_LOCALE.PT], control: { type: 'select' }, }, placeholder: { diff --git a/packages/storybook/stories/components/icon/3_demo.stories.ts b/packages/storybook/stories/components/icon/3_demo.stories.ts index 9902cc24f4..2b9c3309e9 100644 --- a/packages/storybook/stories/components/icon/3_demo.stories.ts +++ b/packages/storybook/stories/components/icon/3_demo.stories.ts @@ -1,5 +1,5 @@ import { ODS_THEME_COLOR_INTENT, ODS_THEME_COLOR_INTENTS } from '@ovhcloud/ods-common-theming'; -import { ODS_ICON_NAME, ODS_ICON_NAMES, ODS_ICON_SIZE, ODS_ICON_SIZES } from '@ovhcloud/ods-components'; +import { ODS_ICON_NAMES, ODS_ICON_SIZE, ODS_ICON_SIZES } from '@ovhcloud/ods-components'; import { defineCustomElement } from '@ovhcloud/ods-components/dist/components/osds-icon'; import { html } from 'lit-html'; import { repeat } from 'lit-html/directives/repeat'; @@ -25,7 +25,7 @@ const storyParams = { category: 'General', defaultValue: 'home', control: { type: 'select' }, - options: ODS_ICON_NAME, + options: ODS_ICON_NAMES, }, contrasted: { category: 'Misc', diff --git a/packages/storybook/stories/components/input/3_demo.stories.ts b/packages/storybook/stories/components/input/3_demo.stories.ts index 5f79afda83..05839485be 100644 --- a/packages/storybook/stories/components/input/3_demo.stories.ts +++ b/packages/storybook/stories/components/input/3_demo.stories.ts @@ -1,8 +1,7 @@ import { ODS_THEME_COLOR_INTENT } from '@ovhcloud/ods-common-theming'; -import { ODS_INPUT_TYPE, ODS_INPUT_TYPES, ODS_ICON_NAME } from '@ovhcloud/ods-components'; +import { ODS_INPUT_TYPE, ODS_INPUT_TYPES, ODS_ICON_NAMES } from '@ovhcloud/ods-components'; import { defineCustomElement } from '@ovhcloud/ods-components/dist/components/osds-input'; import { html } from 'lit-html'; -import { unsafeHTML } from 'lit-html/directives/unsafe-html'; import { InputPlay } from './demo.validation.stories'; import { extractArgTypes, extractStoryParams, getTagAttributes } from '../../../core/componentHTMLUtils'; @@ -37,7 +36,7 @@ const storyParams = { icon: { category: 'General', defaultValue: '', - options: ODS_ICON_NAME, + options: ODS_ICON_NAMES, control: { type: 'select' }, }, prefixValue: { diff --git a/packages/storybook/stories/components/message/3_demo.stories.ts b/packages/storybook/stories/components/message/3_demo.stories.ts index 7e6e1cec21..7364672c23 100644 --- a/packages/storybook/stories/components/message/3_demo.stories.ts +++ b/packages/storybook/stories/components/message/3_demo.stories.ts @@ -1,6 +1,6 @@ import { ODS_THEME_COLOR_INTENT } from '@ovhcloud/ods-common-theming'; import { defineCustomElement } from '@ovhcloud/ods-components/dist/components/osds-message'; -import { ODS_MESSAGE_TYPES, ODS_ICON_NAME } from '@ovhcloud/ods-components'; +import { ODS_MESSAGE_TYPES, ODS_ICON_NAMES } from '@ovhcloud/ods-components'; import { html } from 'lit-html'; import { unsafeHTML } from 'lit-html/directives/unsafe-html'; import { extractArgTypes, extractStoryParams, getTagAttributes } from '../../../core/componentHTMLUtils'; @@ -28,7 +28,7 @@ const storyParams = { category: 'Misc', defaultValue: '', control: { type: 'select' }, - options: ODS_ICON_NAME, + options: ODS_ICON_NAMES, }, removable: { category: 'Misc', diff --git a/packages/storybook/stories/components/radio-button/3_demo.stories.ts b/packages/storybook/stories/components/radio-button/3_demo.stories.ts index 385875d9fe..c1b447a222 100644 --- a/packages/storybook/stories/components/radio-button/3_demo.stories.ts +++ b/packages/storybook/stories/components/radio-button/3_demo.stories.ts @@ -1,5 +1,5 @@ import { ODS_THEME_COLOR_INTENT } from '@ovhcloud/ods-common-theming'; -import { ODS_RADIO_BUTTON_SIZE } from '@ovhcloud/ods-components'; +import { ODS_RADIO_BUTTON_SIZE, ODS_RADIO_BUTTON_SIZES } from '@ovhcloud/ods-components'; import { defineCustomElement } from '@ovhcloud/ods-components/dist/components/osds-radio-button'; import { html } from 'lit-html'; import { unsafeHTML } from 'lit-html/directives/unsafe-html'; @@ -39,7 +39,7 @@ const storyParams = { }, checking: { category: 'Development', - defaultValue: DEFAULT_ATTRIBUTE.checking, + defaultValue: false, }, interactive: { category: 'Development', diff --git a/packages/storybook/stories/components/text/3_demo.stories.ts b/packages/storybook/stories/components/text/3_demo.stories.ts index f76619c3d4..99deff4bcf 100644 --- a/packages/storybook/stories/components/text/3_demo.stories.ts +++ b/packages/storybook/stories/components/text/3_demo.stories.ts @@ -1,4 +1,4 @@ -import { ODS_THEME_COLOR_INTENTS } from '@ovhcloud/ods-common-theming'; +import { ODS_THEME_COLOR_INTENT, ODS_THEME_COLOR_INTENTS } from '@ovhcloud/ods-common-theming'; import { ODS_TEXT_LEVEL, ODS_TEXT_LEVELS, ODS_TEXT_SIZE, ODS_TEXT_SIZES } from '@ovhcloud/ods-components'; import { defineCustomElement } from '@ovhcloud/ods-components/dist/components/osds-text'; import { html } from 'lit-html';