Skip to content

Commit

Permalink
fix(toggle): fix default attributes import
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 Aug 28, 2023
1 parent 71a571a commit e3205ff
Showing 1 changed file with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
import { html } from 'lit-html';
import { unsafeHTML } from 'lit-html/directives/unsafe-html';
import {
createComponentTable,
extractArgTypes,
extractStoryParams,
getTagAttributes,
} from '../../../core/componentHTMLUtils';

import { OdsThemeColorIntentList } from '@ovhcloud/ods-theming';
import { DEFAULT_ATTRIBUTE } from '@ovhcloud/ods-component-toggle/src/components/osds-toggle/constants/default-attributes';
import { defineCustomElements } from '@ovhcloud/ods-component-toggle/loader';
// @ts-ignore
import changelog from '@ovhcloud/ods-component-toggle/CHANGELOG.md';
import { html } from 'lit-html';
import { odsToggleDefaultAttributes } from '@ovhcloud/ods-core';
// @ts-ignore
import page from './toggle.web-component.stories.page.mdx';
import { unsafeHTML } from 'lit-html/directives/unsafe-html';

defineCustomElements();

/* Default story parameters */
const storyParams = {
color: {
category: 'General',
defaultValue: odsToggleDefaultAttributes.color,
defaultValue: DEFAULT_ATTRIBUTE.color,
options: OdsThemeColorIntentList,
control: { type: 'select' },
},
Expand All @@ -33,23 +34,23 @@ const storyParams = {
},
contrasted: {
category: 'Misc',
defaultValue: odsToggleDefaultAttributes.contrasted
defaultValue: DEFAULT_ATTRIBUTE.contrasted
},
disabled: {
category: 'Misc',
defaultValue: odsToggleDefaultAttributes.disabled
defaultValue: DEFAULT_ATTRIBUTE.disabled
},
interactive: {
category: 'Misc',
defaultValue: odsToggleDefaultAttributes.interactive
defaultValue: DEFAULT_ATTRIBUTE.interactive
},
checked: {
category: 'Misc',
defaultValue: odsToggleDefaultAttributes.checked
defaultValue: DEFAULT_ATTRIBUTE.checked
},
checking: {
category: 'Misc',
defaultValue: odsToggleDefaultAttributes.checking
defaultValue: DEFAULT_ATTRIBUTE.checking
}
};

Expand Down

0 comments on commit e3205ff

Please sign in to comment.