import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
import * as __WEBPACK_EXTERNAL_MODULE__chakra_ui_react__ from "@chakra-ui/react";
import * as __WEBPACK_EXTERNAL_MODULE__Button_mjs__ from "./Button.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__ from "@chakra-ui/icons";
const meta = {
    title: 'Components/Redpanda Button',
    component: __WEBPACK_EXTERNAL_MODULE__Button_mjs__["default"],
    parameters: {
        design: {
            type: 'figma',
            url: 'https://www.figma.com/file/bJcVrZNilxa06jYuVCGWYd/Redpanda-Design-System-2023?type=design&node-id=1-2031&mode=design&t=lRtlpY3KCbpBSSnj-4'
        }
    },
    argTypes: {
        variant: {
            control: 'select',
            options: [
                'solid',
                'solid-brand',
                'brand (alias)',
                'outline',
                'outline-delete',
                'delete',
                'link',
                'icon',
                'ghost',
                'ghost-white',
                'subtle',
                'unstyled',
                'inputOutline',
                'nav'
            ],
            mapping: {
                'brand (alias)': 'brand'
            }
        },
        size: {
            control: 'select',
            options: [
                'sm',
                'md'
            ]
        },
        isDisabled: {
            control: 'boolean'
        },
        leftIcon: {
            control: 'boolean'
        },
        rightIcon: {
            control: 'boolean'
        }
    }
};
/* ESM default export */ const Button_stories_rslib_entry_ = meta;
const Default = {
    render: (args)=>/*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_react__.Box, null, /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__Button_mjs__["default"], args, "Button"))
};
const Variants = {
    args: {
        variant: 'solid',
        children: 'Solid',
        size: 'md'
    },
    parameters: {
        design: {
            type: 'figma',
            url: 'https://www.figma.com/file/bJcVrZNilxa06jYuVCGWYd/Redpanda-Design-System-2023?type=design&node-id=23-2487&mode=design&t=cVtmR0UCPQ2Em08Q-4'
        }
    },
    render: (args)=>{
        let isDisabled = args.isDisabled;
        return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_react__.ButtonGroup, null, /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__Button_mjs__["default"], {
            variant: "solid",
            isDisabled: isDisabled,
            leftIcon: args.leftIcon ? /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__.EmailIcon, null) : void 0,
            rightIcon: args.rightIcon ? /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__.ArrowForwardIcon, null) : void 0,
            size: args.size
        }, "Solid"), /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__Button_mjs__["default"], {
            variant: "outline",
            isDisabled: isDisabled,
            leftIcon: args.leftIcon ? /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__.EmailIcon, null) : void 0,
            rightIcon: args.rightIcon ? /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__.ArrowForwardIcon, null) : void 0,
            size: args.size
        }, "Outline"), /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__Button_mjs__["default"], {
            variant: "link",
            isDisabled: isDisabled,
            leftIcon: args.leftIcon ? /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__.EmailIcon, null) : void 0,
            rightIcon: args.rightIcon ? /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__.ArrowForwardIcon, null) : void 0,
            size: args.size
        }, "Link"), /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__Button_mjs__["default"], {
            variant: "ghost",
            isDisabled: isDisabled,
            leftIcon: args.leftIcon ? /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__.EmailIcon, null) : void 0,
            rightIcon: args.rightIcon ? /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__.ArrowForwardIcon, null) : void 0,
            size: args.size
        }, "Ghost"), /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__Button_mjs__["default"], {
            variant: "delete",
            isDisabled: isDisabled,
            leftIcon: args.leftIcon ? /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__.EmailIcon, null) : void 0,
            rightIcon: args.rightIcon ? /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__.ArrowForwardIcon, null) : void 0,
            size: args.size
        }, "Delete"), /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__Button_mjs__["default"], {
            variant: "outline-delete",
            isDisabled: isDisabled,
            leftIcon: args.leftIcon ? /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__.EmailIcon, null) : void 0,
            rightIcon: args.rightIcon ? /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__.ArrowForwardIcon, null) : void 0,
            size: args.size
        }, "Outline Delete"), /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__Button_mjs__["default"], {
            variant: "solid-brand",
            isDisabled: isDisabled,
            leftIcon: args.leftIcon ? /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__.EmailIcon, null) : void 0,
            rightIcon: args.rightIcon ? /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__.ArrowForwardIcon, null) : void 0,
            size: args.size
        }, "Solid Brand"), /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__Button_mjs__["default"], {
            variant: "brand",
            isDisabled: isDisabled,
            leftIcon: args.leftIcon ? /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__.EmailIcon, null) : void 0,
            rightIcon: args.rightIcon ? /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__.ArrowForwardIcon, null) : void 0,
            size: args.size
        }, "Brand (alias)"));
    }
};
const Solid = {
    args: {
        variant: 'solid',
        children: 'Solid'
    },
    parameters: {
        design: {
            type: 'figma',
            url: 'https://www.figma.com/file/bJcVrZNilxa06jYuVCGWYd/Redpanda-Design-System-2023?type=design&node-id=23-2487&mode=design&t=cVtmR0UCPQ2Em08Q-4'
        }
    },
    render: (args)=>/*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__Button_mjs__["default"], {
            ...args,
            leftIcon: args.leftIcon ? /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__.EmailIcon, null) : void 0,
            rightIcon: args.rightIcon ? /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__.ArrowForwardIcon, null) : void 0
        })
};
const SolidLoading = {
    args: {
        variant: 'solid',
        children: 'Solid',
        isLoading: true,
        loadingText: 'Loading...'
    }
};
const Outline = {
    args: {
        variant: 'outline',
        children: 'Outline'
    }
};
const OutlineLoading = {
    args: {
        variant: 'outline',
        children: 'Outline',
        isLoading: true,
        loadingText: 'Loading...'
    }
};
const InputOutline = {
    args: {
        variant: 'inputOutline',
        children: 'Input Outline'
    }
};
const InputOutlineLoading = {
    args: {
        variant: 'inputOutline',
        children: 'Input Outline',
        isLoading: true,
        loadingText: 'Loading...'
    }
};
const Link = {
    args: {
        variant: 'link',
        children: 'Link'
    }
};
const LinkLoading = {
    args: {
        variant: 'link',
        children: 'Link',
        isLoading: true,
        loadingText: 'Loading...'
    }
};
const Ghost = {
    args: {
        variant: 'ghost',
        children: 'Ghost'
    }
};
const GhostLoading = {
    args: {
        variant: 'ghost',
        children: 'Ghost',
        isLoading: true,
        loadingText: 'Loading...'
    }
};
const Unstyled = {
    args: {
        variant: 'unstyled',
        children: 'Unstyled'
    }
};
const UnstyledLoading = {
    args: {
        variant: 'unstyled',
        children: 'Unstyled',
        isLoading: true,
        loadingText: 'Loading...'
    }
};
const Icon = {
    args: {
        variant: 'icon'
    },
    render: ()=>/*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_react__.Box, null, /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__Button_mjs__["default"], {
            variant: "icon",
            size: "xs"
        }, /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__.EditIcon, null)), /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__Button_mjs__["default"], {
            variant: "icon",
            size: "sm"
        }, /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__.EditIcon, null)), /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__Button_mjs__["default"], {
            variant: "icon",
            size: "md"
        }, /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__.EditIcon, null)), /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__Button_mjs__["default"], {
            variant: "icon",
            size: "lg"
        }, /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__.EditIcon, null)))
};
const IconLoading = {
    args: {
        variant: 'icon',
        children: /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_icons__.EditIcon, null),
        isLoading: true,
        loadingText: 'Loading...'
    }
};
const Subtle = {
    args: {
        variant: 'subtle',
        children: 'Subtle'
    }
};
const SubtleLoading = {
    args: {
        variant: 'subtle',
        children: 'Subtle',
        isLoading: true,
        loadingText: 'Loading...'
    }
};
const WithTooltip = {
    args: {
        variant: 'solid',
        tooltip: 'Lorem ipsum dolor amet sit...',
        children: 'Button with Tooltip'
    }
};
const Nav = {
    args: {
        variant: 'nav',
        children: 'Navigation'
    }
};
export { Default, Ghost, GhostLoading, Icon, IconLoading, InputOutline, InputOutlineLoading, Link, LinkLoading, Nav, Outline, OutlineLoading, Solid, SolidLoading, Subtle, SubtleLoading, Unstyled, UnstyledLoading, Variants, WithTooltip, Button_stories_rslib_entry_ as default };
