|
|
@ -8,8 +8,8 @@ const DropdownMenuAlignments: ReadonlyArray<DropdownMenuAlignment> = [
|
|
|
|
'end',
|
|
|
|
'end',
|
|
|
|
];
|
|
|
|
];
|
|
|
|
const DropdownMenuSizes: ReadonlyArray<DropdownMenuSize> = [
|
|
|
|
const DropdownMenuSizes: ReadonlyArray<DropdownMenuSize> = [
|
|
|
|
|
|
|
|
'default',
|
|
|
|
'inherit',
|
|
|
|
'inherit',
|
|
|
|
'regular',
|
|
|
|
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
@ -80,7 +80,7 @@ export function Basic({
|
|
|
|
Basic.args = {
|
|
|
|
Basic.args = {
|
|
|
|
align: 'start',
|
|
|
|
align: 'start',
|
|
|
|
label: 'More actions',
|
|
|
|
label: 'More actions',
|
|
|
|
size: 'regular',
|
|
|
|
size: 'default',
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
export function Align() {
|
|
|
|
export function Align() {
|
|
|
@ -103,7 +103,7 @@ export function Align() {
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className="flex justify-between">
|
|
|
|
<div className="flex justify-between">
|
|
|
|
<DropdownMenu align="start" label="Select an action" size="regular">
|
|
|
|
<DropdownMenu align="start" label="Select an action" size="default">
|
|
|
|
{menuItems.map(({ label, value }) => (
|
|
|
|
{menuItems.map(({ label, value }) => (
|
|
|
|
<DropdownMenu.Item
|
|
|
|
<DropdownMenu.Item
|
|
|
|
key={value}
|
|
|
|
key={value}
|
|
|
@ -115,7 +115,7 @@ export function Align() {
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
))}
|
|
|
|
))}
|
|
|
|
</DropdownMenu>
|
|
|
|
</DropdownMenu>
|
|
|
|
<DropdownMenu align="end" label="Select an action" size="regular">
|
|
|
|
<DropdownMenu align="end" label="Select an action" size="default">
|
|
|
|
{menuItems.map(({ label, value }) => (
|
|
|
|
{menuItems.map(({ label, value }) => (
|
|
|
|
<DropdownMenu.Item
|
|
|
|
<DropdownMenu.Item
|
|
|
|
key={value}
|
|
|
|
key={value}
|
|
|
|