Design system that powers the BigCommerce ecosystem.
OTHER License
Published by deini over 4 years ago
Published by deini over 4 years ago
Published by deini over 4 years ago
Published by deini over 4 years ago
Note: Version bump only for package @bigcommerce/big-design-theme
Published by deini over 4 years ago
Note: Version bump only for package @bigcommerce/examples
Published by deini over 4 years ago
Published by deini over 4 years ago
Published by deini over 4 years ago
Note: Version bump only for package @bigcommerce/docs
Published by deini over 4 years ago
Published by deini over 4 years ago
Note: Version bump only for package @bigcommerce/examples
Published by deini over 4 years ago
Note: Version bump only for package @bigcommerce/big-design-theme
Published by deini over 4 years ago
Published by deini over 4 years ago
Published by deini over 4 years ago
Note: Version bump only for package @bigcommerce/examples
Published by deini over 4 years ago
Note: Version bump only for package @bigcommerce/big-design-icons
Published by chanceaclark over 4 years ago
Note: Version bump only for package @bigcommerce/configs
Published by chanceaclark over 4 years ago
Published by chanceaclark over 4 years ago
Selects
and Multiselects
have been split into its own component. Props changed for Dropdowns
& Selects
.** Dropdown **
Old:
<Dropdown
maxHeight={250}
options={[
{ content: 'Edit', onClick: item => item, icon: <EditIcon />, value: 'edit' },
{
content: 'Duplicate',
onClick: item => item,
value: 'duplicate',
icon: <FileCopyIcon />,
},
{
content: 'Copy',
onClick: item => item,
value: 'copy',
icon: <AssignmentIcon />,
disabled: true,
tooltip: 'You cannot copy this item...',
},
{
content: 'Delete',
onClick: item => item,
value: 'delete',
icon: <DeleteIcon />,
actionType: 'destructive',
},
{
content: 'Link',
icon: <OpenInNewIcon />,
type: 'link',
url: '#',
},
]}
placement="bottom-start"
trigger={<Button>Open Menu</Button>}
/>
New:
<Dropdown
maxHeight={250}
items={[
{ content: 'Edit', onItemClick: item => item, hash: 'edit', icon: <EditIcon /> },
{
content: 'Duplicate',
onItemClick: item => item,
hash: 'duplicate',
icon: <FileCopyIcon />,
},
{
content: 'Copy',
onItemClick: item => item,
hash: 'copy',
icon: <AssignmentIcon />,
disabled: true,
tooltip: 'You cannot copy this item...',
},
{
content: 'Delete',
onItemClick: item => item,
hash: 'delete',
icon: <DeleteIcon />,
actionType: 'destructive',
},
{
content: 'Link',
icon: <OpenInNewIcon />,
type: 'link',
url: '#',
},
]}
placement="bottom-start"
toggle={<Button>Open Menu</Button>}
/>
** Select **
Old:
<Select
action={{
actionType: 'destructive',
content: 'Remove Country',
icon: <DeleteIcon />,
onClick: () => null,
}}
label="Countries"
maxHeight={300}
onChange={handleChange}
options={[
{ value: 'us', content: 'United States' },
{ value: 'mx', content: 'Mexico' },
{ value: 'ca', content: 'Canada' },
{ value: 'ru', content: 'Russia', disabled: true },
]}
placeholder={'Choose country'}
placement={'bottom-start'}
required
value={value}
/>
New:
<Select
action={{
actionType: 'destructive',
content: 'Remove Country',
icon: <DeleteIcon />,
onActionClick: () => null,
}}
label="Countries"
maxHeight={300}
onOptionChange={handleChange}
options={[
{ value: 'us', content: 'United States' },
{ value: 'mx', content: 'Mexico' },
{ value: 'ca', content: 'Canada' },
{ value: 'ru', content: 'Russia', disabled: true },
]}
placeholder={'Choose country'}
placement={'bottom-start'}
required
value={value}
/>
** MultiSelect **
Old:
<Select
action={{
actionType: 'destructive',
content: 'Remove Country',
icon: <DeleteIcon />,
onClick: () => null,
}}
label="Countries"
maxHeight={300}
multi={true}
onChange={handleChange}
options={[
{ value: 'us', content: 'United States' },
{ value: 'mx', content: 'Mexico' },
{ value: 'ca', content: 'Canada' },
{ value: 'ru', content: 'Russia', disabled: true },
]}
placeholder={'Choose country'}
placement={'bottom-start'}
required
value={value}
/>
New:
<MultiSelect
action={{
actionType: 'destructive' as 'destructive',
content: 'Remove Country',
icon: <DeleteIcon />,
onActionClick: () => null,
}}
filterable={true}
label="Countries"
maxHeight={300}
onOptionsChange={handleChange}
options={[
{ value: 'us', content: 'United States' },
{ value: 'mx', content: 'Mexico' },
{ value: 'ca', content: 'Canada' },
{ value: 'ru', content: 'England' },
]}
placeholder={'Choose country'}
placement={'bottom-start'}
required
value={value}
/>
<Badge>label</Badge>
to <Badge label="label" />
.Published by chanceaclark over 4 years ago
Selects
and Multiselects
have been split into its own component. Props changed for Dropdowns
& Selects
.** Dropdown **
Old:
<Dropdown
maxHeight={250}
options={[
{ content: 'Edit', onClick: item => item, icon: <EditIcon />, value: 'edit' },
{
content: 'Duplicate',
onClick: item => item,
value: 'duplicate',
icon: <FileCopyIcon />,
},
{
content: 'Copy',
onClick: item => item,
value: 'copy',
icon: <AssignmentIcon />,
disabled: true,
tooltip: 'You cannot copy this item...',
},
{
content: 'Delete',
onClick: item => item,
value: 'delete',
icon: <DeleteIcon />,
actionType: 'destructive',
},
{
content: 'Link',
icon: <OpenInNewIcon />,
type: 'link',
url: '#',
},
]}
placement="bottom-start"
trigger={<Button>Open Menu</Button>}
/>
New:
<Dropdown
maxHeight={250}
items={[
{ content: 'Edit', onItemClick: item => item, hash: 'edit', icon: <EditIcon /> },
{
content: 'Duplicate',
onItemClick: item => item,
hash: 'duplicate',
icon: <FileCopyIcon />,
},
{
content: 'Copy',
onItemClick: item => item,
hash: 'copy',
icon: <AssignmentIcon />,
disabled: true,
tooltip: 'You cannot copy this item...',
},
{
content: 'Delete',
onItemClick: item => item,
hash: 'delete',
icon: <DeleteIcon />,
actionType: 'destructive',
},
{
content: 'Link',
icon: <OpenInNewIcon />,
type: 'link',
url: '#',
},
]}
placement="bottom-start"
toggle={<Button>Open Menu</Button>}
/>
** Select **
Old:
<Select
action={{
actionType: 'destructive',
content: 'Remove Country',
icon: <DeleteIcon />,
onClick: () => null,
}}
label="Countries"
maxHeight={300}
onChange={handleChange}
options={[
{ value: 'us', content: 'United States' },
{ value: 'mx', content: 'Mexico' },
{ value: 'ca', content: 'Canada' },
{ value: 'ru', content: 'Russia', disabled: true },
]}
placeholder={'Choose country'}
placement={'bottom-start'}
required
value={value}
/>
New:
<Select
action={{
actionType: 'destructive',
content: 'Remove Country',
icon: <DeleteIcon />,
onActionClick: () => null,
}}
label="Countries"
maxHeight={300}
onOptionChange={handleChange}
options={[
{ value: 'us', content: 'United States' },
{ value: 'mx', content: 'Mexico' },
{ value: 'ca', content: 'Canada' },
{ value: 'ru', content: 'Russia', disabled: true },
]}
placeholder={'Choose country'}
placement={'bottom-start'}
required
value={value}
/>
** MultiSelect **
Old:
<Select
action={{
actionType: 'destructive',
content: 'Remove Country',
icon: <DeleteIcon />,
onClick: () => null,
}}
label="Countries"
maxHeight={300}
multi={true}
onChange={handleChange}
options={[
{ value: 'us', content: 'United States' },
{ value: 'mx', content: 'Mexico' },
{ value: 'ca', content: 'Canada' },
{ value: 'ru', content: 'Russia', disabled: true },
]}
placeholder={'Choose country'}
placement={'bottom-start'}
required
value={value}
/>
New:
<MultiSelect
action={{
actionType: 'destructive' as 'destructive',
content: 'Remove Country',
icon: <DeleteIcon />,
onActionClick: () => null,
}}
filterable={true}
label="Countries"
maxHeight={300}
onOptionsChange={handleChange}
options={[
{ value: 'us', content: 'United States' },
{ value: 'mx', content: 'Mexico' },
{ value: 'ca', content: 'Canada' },
{ value: 'ru', content: 'England' },
]}
placeholder={'Choose country'}
placement={'bottom-start'}
required
value={value}
/>