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:
,
+};
SingleAction.argTypes = {
display: {
name: 'Display',
+ options: ['block', 'inline'],
type: {
name: 'string',
required: false,
@@ -28,14 +31,11 @@ SingleAction.argTypes = {
description: 'Description goes here...',
control: {
type: 'select',
- options: {
- block: 'block',
- inline: 'inline',
- },
},
},
alignment: {
name: 'Alignment',
+ options: ['left', 'center', 'right'],
type: {
name: 'string',
required: false,
@@ -43,11 +43,6 @@ SingleAction.argTypes = {
description: 'Description goes here...',
control: {
type: 'select',
- options: {
- default: '',
- center: 'center',
- right: 'right',
- },
},
},
paddingTop: {
@@ -121,9 +116,6 @@ SingleAction.argTypes = {
type: 'text',
},
},
- children: {
- defaultValue:
,
- },
};
SingleAction.parameters = {
controls: {
@@ -133,26 +125,22 @@ SingleAction.parameters = {
export const DoubleAction = Template.bind({});
DoubleAction.storyName = 'Double Action';
-DoubleAction.args = {};
-DoubleAction.argTypes = {
- ...SingleAction.argTypes,
- children: {
- defaultValue: (
+DoubleAction.args = {
+ children: (
<>
>
- ),
- },
+ )
+};
+DoubleAction.argTypes = {
+ ...SingleAction.argTypes,
};
export const JointActions = Template.bind({});
JointActions.storyName = 'Joint Actions';
-JointActions.args = {};
-JointActions.argTypes = {
- ...SingleAction.argTypes,
- children: {
- defaultValue: (
+JointActions.args = {
+ children: (
<>
Save your progress
@@ -162,6 +150,8 @@ JointActions.argTypes = {
>
- ),
- },
+ ),
+};
+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:
,
};
ActionHeader.argTypes = {
...SimpleHeader.argTypes,
- children: {
- defaultValue:
,
- },
};
export const UntitledHeader = Template.bind({});
UntitledHeader.storyName = 'Content Only';
UntitledHeader.args = {
alignment: 'right',
+ children:
};
UntitledHeader.argTypes = {
...SimpleHeader.argTypes,
- children: {
- defaultValue:
,
- },
};
diff --git a/packages/react-button-icon/docs/react-button-icon-demo.stories.js b/packages/react-button-icon/docs/react-button-icon-demo.stories.js
index 5975f02e..9b623b60 100644
--- a/packages/react-button-icon/docs/react-button-icon-demo.stories.js
+++ b/packages/react-button-icon/docs/react-button-icon-demo.stories.js
@@ -33,6 +33,7 @@ demo.argTypes = {
},
},
iconSize: {
+ options: ['', 'sm', 'md', 'lg'],
description:
'By default, the icon has a 12px size but you can change it with this property. You could use either:',
table: {
@@ -40,20 +41,20 @@ demo.argTypes = {
},
control: {
type: 'select',
- options: ['', 'sm', 'md', 'lg'],
},
},
design: {
+ options: ['', 'outlined'],
description: 'The button styles. It could be either solid (default) or outlined.',
table: {
type: { summary: 'string' },
},
control: {
type: 'select',
- options: ['', 'outlined'],
},
},
color: {
+ options: ['', 'blue', 'green', 'red', 'orange', 'purple', 'yellow', 'white'],
description:
'The button comes in gray color by default but you can change that with this property.',
table: {
@@ -61,7 +62,6 @@ demo.argTypes = {
},
control: {
type: 'select',
- options: ['', 'blue', 'green', 'red', 'orange', 'purple', 'yellow', 'white'],
},
},
className: {
diff --git a/packages/react-button/docs/button-demo.stories.js b/packages/react-button/docs/button-demo.stories.js
index de2c1e74..b156ccc5 100644
--- a/packages/react-button/docs/button-demo.stories.js
+++ b/packages/react-button/docs/button-demo.stories.js
@@ -10,38 +10,45 @@ export const demo = (args) =>
;
demo.storyName = 'Demo';
demo.args = {
label: 'Button Label',
+ design: 'solid',
+ color: 'gray',
+ icon: null,
+ loading: false,
+ disabled: false,
+ className: null,
+ htmlFor: null,
+ href: null,
+ onClick: null,
+ iconRight: false,
};
demo.argTypes = {
label: {
description: 'The text that shows up in the button',
table: {
type: { summary: 'string' },
- defaultValue: { summary: '' },
},
control: {
type: 'text',
},
},
design: {
+ options: ['solid', 'ghost'],
description: 'The button style',
table: {
type: { summary: 'string' },
- defaultValue: { summary: 'solid' },
},
control: {
type: 'select',
- options: ['solid', 'ghost'],
},
},
color: {
+ options: ['gray', 'blue', 'green', 'red', 'orange', 'purple', 'yellow', 'white'],
description: 'The button color',
table: {
type: { summary: 'string' },
- defaultValue: { summary: 'gray' },
},
control: {
type: 'select',
- options: ['gray', 'blue', 'green', 'red', 'orange', 'purple', 'yellow', 'white'],
},
},
icon: {
@@ -49,7 +56,6 @@ demo.argTypes = {
'Name of the icon to include in the button. Check out the
available icons',
table: {
type: { summary: 'string' },
- defaultValue: { summary: 'null' },
},
control: {
type: 'text',
@@ -59,17 +65,15 @@ demo.argTypes = {
description: 'Whether the button should show up as "loading"',
table: {
type: { summary: 'boolean' },
- defaultValue: { summary: 'false' },
},
control: {
type: 'boolean',
},
},
- disable: {
+ disabled: {
description: 'Whether the button should be disabled',
table: {
type: { summary: 'boolean' },
- defaultValue: { summary: 'false' },
},
control: {
type: 'boolean',
@@ -79,7 +83,6 @@ demo.argTypes = {
description: 'Extra classes to add to the button',
table: {
type: { summary: 'string' },
- defaultValue: { summary: 'null' },
},
control: {
type: 'text',
@@ -90,7 +93,6 @@ demo.argTypes = {
'When you want the button to be a label, provide the ID of the input it is a label for. Passing a value that is not `null` makes the button be a `