diff --git a/packages/react-accordion/docs/react-accordion-demo.stories.js b/packages/react-accordion/docs/react-accordion-demo.stories.js index 9fa1b060..5eda96e8 100644 --- a/packages/react-accordion/docs/react-accordion-demo.stories.js +++ b/packages/react-accordion/docs/react-accordion-demo.stories.js @@ -21,8 +21,10 @@ Demo.args = { title: 'Accordion Item', icon: 'wpmudev-logo', image: LogoImage, - checkboxInput: true, + checkboxInput: true, checkboxId: 'accordion-item-1', + checkboxSelected: false, + checkboxClickHandler: null, children: (
@@ -88,7 +90,6 @@ Demo.argTypes = { description: 'Whether to show or hide checkbox.', table: { type: { summary: 'boolean' }, - defaultValue: { summary: 'false' }, }, control: { type: 'boolean', @@ -98,7 +99,6 @@ Demo.argTypes = { description: 'Id of accordion checkbox.', table: { type: { summary: 'string' }, - defaultValue: { summary: 'null' }, }, control: { type: 'text', @@ -108,7 +108,6 @@ Demo.argTypes = { description: 'Whether the checkbox should be default selected.', table: { type: { summary: 'boolean' }, - defaultValue: { summary: 'false' }, }, control: { type: 'boolean', @@ -118,7 +117,6 @@ Demo.argTypes = { description: 'Checkbox click event handler.', table: { type: { summary: 'function' }, - defaultValue: { summary: 'null' }, }, control: { type: null, diff --git a/packages/react-box/docs/box-body.stories.js b/packages/react-box/docs/box-body.stories.js index b403a992..b7a5f5b3 100644 --- a/packages/react-box/docs/box-body.stories.js +++ b/packages/react-box/docs/box-body.stories.js @@ -21,6 +21,7 @@ DefaultBody.storyName = 'Body'; DefaultBody.args = {}; DefaultBody.argTypes = { alignment: { + options: ['left', 'center', 'right'], type: { name: 'string', required: false, @@ -28,11 +29,6 @@ DefaultBody.argTypes = { description: 'Description goes here...', control: { type: 'select', - options: { - left: 'left', - center: 'center', - right: 'right', - }, }, }, paddingTop: { diff --git a/packages/react-box/docs/box-footer.stories.js b/packages/react-box/docs/box-footer.stories.js index 0c9aad88..218e4bbc 100644 --- a/packages/react-box/docs/box-footer.stories.js +++ b/packages/react-box/docs/box-footer.stories.js @@ -17,10 +17,13 @@ const Template = (args) => { export const SingleAction = Template.bind({}); SingleAction.storyName = 'Single Action'; -SingleAction.args = {}; +SingleAction.args = { + children:
- ), - }, + ), +}; +JointActions.argTypes = { + ...SingleAction.argTypes, }; diff --git a/packages/react-box/docs/box-header.stories.js b/packages/react-box/docs/box-header.stories.js index c468dfa2..7b39b7f3 100644 --- a/packages/react-box/docs/box-header.stories.js +++ b/packages/react-box/docs/box-header.stories.js @@ -54,6 +54,7 @@ SimpleHeader.argTypes = { }, }, tagColor: { + options: ['default', 'red', 'yellow', 'green', 'blue', 'purple'], type: { name: 'string', required: false, @@ -62,17 +63,10 @@ SimpleHeader.argTypes = { 'By default **tags background** color is a subtle `light gray` but you can change this for any of the options suggested in the control selector: red, yellow, green, blue, purple. You can also leave this option empty, or simply not include it, to get default color.', control: { type: 'select', - options: { - default: '', - red: 'red', - yellow: 'yellow', - green: 'green', - blue: 'blue', - purple: 'purple', - }, }, }, tagSize: { + options: ['default', 'small'], type: { name: 'string', required: false, @@ -80,13 +74,10 @@ SimpleHeader.argTypes = { description: 'By default ', control: { type: 'select', - options: { - default: '', - small: 'small', - }, }, }, display: { + options: ['block', 'inline'], type: { name: 'string', required: false, @@ -94,13 +85,10 @@ SimpleHeader.argTypes = { description: 'Description goes here...', control: { type: 'select', - options: { - block: 'block', - inline: 'inline', - }, }, }, alignment: { + options: ['left', 'center', 'right'], type: { name: 'string', required: false, @@ -108,11 +96,6 @@ SimpleHeader.argTypes = { description: 'Description goes here...', control: { type: 'select', - options: { - default: '', - center: 'center', - right: 'right', - }, }, }, paddingTop: { @@ -199,22 +182,18 @@ export const ActionHeader = Template.bind({}); ActionHeader.storyName = 'Title with Content'; ActionHeader.args = { ...SimpleHeader.args, + children: