Skip to content

Commit

Permalink
feat(doc): fix wrong imports
Browse files Browse the repository at this point in the history
Signed-off-by: aurore.stagnol <[email protected]>
  • Loading branch information
astagnol authored and dpellier committed Dec 18, 2023
1 parent 32be333 commit bf49826
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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: {
Expand Down
4 changes: 2 additions & 2 deletions packages/storybook/stories/components/icon/3_demo.stories.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -25,7 +25,7 @@ const storyParams = {
category: 'General',
defaultValue: 'home',
control: { type: 'select' },
options: ODS_ICON_NAME,
options: ODS_ICON_NAMES,
},
contrasted: {
category: 'Misc',
Expand Down
5 changes: 2 additions & 3 deletions packages/storybook/stories/components/input/3_demo.stories.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -37,7 +36,7 @@ const storyParams = {
icon: {
category: 'General',
defaultValue: '',
options: ODS_ICON_NAME,
options: ODS_ICON_NAMES,
control: { type: 'select' },
},
prefixValue: {
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -28,7 +28,7 @@ const storyParams = {
category: 'Misc',
defaultValue: '',
control: { type: 'select' },
options: ODS_ICON_NAME,
options: ODS_ICON_NAMES,
},
removable: {
category: 'Misc',
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -39,7 +39,7 @@ const storyParams = {
},
checking: {
category: 'Development',
defaultValue: DEFAULT_ATTRIBUTE.checking,
defaultValue: false,
},
interactive: {
category: 'Development',
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit bf49826

Please sign in to comment.