"use strict";
// The require scope
var __webpack_require__ = {};
/************************************************************************/ // webpack/runtime/compat_get_default_export
(()=>{
    // getDefaultExport function for compatibility with non-ESM modules
    __webpack_require__.n = function(module) {
        var getter = module && module.__esModule ? function() {
            return module['default'];
        } : function() {
            return module;
        };
        __webpack_require__.d(getter, {
            a: getter
        });
        return getter;
    };
})();
// webpack/runtime/define_property_getters
(()=>{
    __webpack_require__.d = function(exports1, definition) {
        for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
            enumerable: true,
            get: definition[key]
        });
    };
})();
// webpack/runtime/has_own_property
(()=>{
    __webpack_require__.o = function(obj, prop) {
        return Object.prototype.hasOwnProperty.call(obj, prop);
    };
})();
// webpack/runtime/make_namespace_object
(()=>{
    // define __esModule on exports
    __webpack_require__.r = function(exports1) {
        if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
            value: 'Module'
        });
        Object.defineProperty(exports1, '__esModule', {
            value: true
        });
    };
})();
/************************************************************************/ var __webpack_exports__ = {};
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
    InputOutline: ()=>/* binding */ InputOutline,
    WithTooltip: ()=>/* binding */ WithTooltip,
    OutlineLoading: ()=>/* binding */ OutlineLoading,
    default: ()=>/* binding */ Button_stories_rslib_entry_,
    Ghost: ()=>/* binding */ Ghost,
    Nav: ()=>/* binding */ Nav,
    Solid: ()=>/* binding */ Solid,
    Variants: ()=>/* binding */ Variants,
    Unstyled: ()=>/* binding */ Unstyled,
    SolidLoading: ()=>/* binding */ SolidLoading,
    Icon: ()=>/* binding */ Icon,
    Link: ()=>/* binding */ Link,
    InputOutlineLoading: ()=>/* binding */ InputOutlineLoading,
    LinkLoading: ()=>/* binding */ LinkLoading,
    Subtle: ()=>/* binding */ Subtle,
    Outline: ()=>/* binding */ Outline,
    SubtleLoading: ()=>/* binding */ SubtleLoading,
    UnstyledLoading: ()=>/* binding */ UnstyledLoading,
    IconLoading: ()=>/* binding */ IconLoading,
    GhostLoading: ()=>/* binding */ GhostLoading,
    Default: ()=>/* binding */ Default
});
const external_react_namespaceObject = require("react");
var external_react_default = /*#__PURE__*/ __webpack_require__.n(external_react_namespaceObject);
const react_namespaceObject = require("@chakra-ui/react");
const external_Button_js_namespaceObject = require("./Button.js");
var external_Button_js_default = /*#__PURE__*/ __webpack_require__.n(external_Button_js_namespaceObject);
const icons_namespaceObject = require("@chakra-ui/icons");
const meta = {
    title: 'Components/Redpanda Button',
    component: external_Button_js_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__*/ external_react_default().createElement(react_namespaceObject.Box, null, /*#__PURE__*/ external_react_default().createElement(external_Button_js_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__*/ external_react_default().createElement(react_namespaceObject.ButtonGroup, null, /*#__PURE__*/ external_react_default().createElement(external_Button_js_default(), {
            variant: "solid",
            isDisabled: isDisabled,
            leftIcon: args.leftIcon ? /*#__PURE__*/ external_react_default().createElement(icons_namespaceObject.EmailIcon, null) : void 0,
            rightIcon: args.rightIcon ? /*#__PURE__*/ external_react_default().createElement(icons_namespaceObject.ArrowForwardIcon, null) : void 0,
            size: args.size
        }, "Solid"), /*#__PURE__*/ external_react_default().createElement(external_Button_js_default(), {
            variant: "outline",
            isDisabled: isDisabled,
            leftIcon: args.leftIcon ? /*#__PURE__*/ external_react_default().createElement(icons_namespaceObject.EmailIcon, null) : void 0,
            rightIcon: args.rightIcon ? /*#__PURE__*/ external_react_default().createElement(icons_namespaceObject.ArrowForwardIcon, null) : void 0,
            size: args.size
        }, "Outline"), /*#__PURE__*/ external_react_default().createElement(external_Button_js_default(), {
            variant: "link",
            isDisabled: isDisabled,
            leftIcon: args.leftIcon ? /*#__PURE__*/ external_react_default().createElement(icons_namespaceObject.EmailIcon, null) : void 0,
            rightIcon: args.rightIcon ? /*#__PURE__*/ external_react_default().createElement(icons_namespaceObject.ArrowForwardIcon, null) : void 0,
            size: args.size
        }, "Link"), /*#__PURE__*/ external_react_default().createElement(external_Button_js_default(), {
            variant: "ghost",
            isDisabled: isDisabled,
            leftIcon: args.leftIcon ? /*#__PURE__*/ external_react_default().createElement(icons_namespaceObject.EmailIcon, null) : void 0,
            rightIcon: args.rightIcon ? /*#__PURE__*/ external_react_default().createElement(icons_namespaceObject.ArrowForwardIcon, null) : void 0,
            size: args.size
        }, "Ghost"), /*#__PURE__*/ external_react_default().createElement(external_Button_js_default(), {
            variant: "delete",
            isDisabled: isDisabled,
            leftIcon: args.leftIcon ? /*#__PURE__*/ external_react_default().createElement(icons_namespaceObject.EmailIcon, null) : void 0,
            rightIcon: args.rightIcon ? /*#__PURE__*/ external_react_default().createElement(icons_namespaceObject.ArrowForwardIcon, null) : void 0,
            size: args.size
        }, "Delete"), /*#__PURE__*/ external_react_default().createElement(external_Button_js_default(), {
            variant: "outline-delete",
            isDisabled: isDisabled,
            leftIcon: args.leftIcon ? /*#__PURE__*/ external_react_default().createElement(icons_namespaceObject.EmailIcon, null) : void 0,
            rightIcon: args.rightIcon ? /*#__PURE__*/ external_react_default().createElement(icons_namespaceObject.ArrowForwardIcon, null) : void 0,
            size: args.size
        }, "Outline Delete"), /*#__PURE__*/ external_react_default().createElement(external_Button_js_default(), {
            variant: "solid-brand",
            isDisabled: isDisabled,
            leftIcon: args.leftIcon ? /*#__PURE__*/ external_react_default().createElement(icons_namespaceObject.EmailIcon, null) : void 0,
            rightIcon: args.rightIcon ? /*#__PURE__*/ external_react_default().createElement(icons_namespaceObject.ArrowForwardIcon, null) : void 0,
            size: args.size
        }, "Solid Brand"), /*#__PURE__*/ external_react_default().createElement(external_Button_js_default(), {
            variant: "brand",
            isDisabled: isDisabled,
            leftIcon: args.leftIcon ? /*#__PURE__*/ external_react_default().createElement(icons_namespaceObject.EmailIcon, null) : void 0,
            rightIcon: args.rightIcon ? /*#__PURE__*/ external_react_default().createElement(icons_namespaceObject.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__*/ external_react_default().createElement(external_Button_js_default(), {
            ...args,
            leftIcon: args.leftIcon ? /*#__PURE__*/ external_react_default().createElement(icons_namespaceObject.EmailIcon, null) : void 0,
            rightIcon: args.rightIcon ? /*#__PURE__*/ external_react_default().createElement(icons_namespaceObject.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__*/ external_react_default().createElement(react_namespaceObject.Box, null, /*#__PURE__*/ external_react_default().createElement(external_Button_js_default(), {
            variant: "icon",
            size: "xs"
        }, /*#__PURE__*/ external_react_default().createElement(icons_namespaceObject.EditIcon, null)), /*#__PURE__*/ external_react_default().createElement(external_Button_js_default(), {
            variant: "icon",
            size: "sm"
        }, /*#__PURE__*/ external_react_default().createElement(icons_namespaceObject.EditIcon, null)), /*#__PURE__*/ external_react_default().createElement(external_Button_js_default(), {
            variant: "icon",
            size: "md"
        }, /*#__PURE__*/ external_react_default().createElement(icons_namespaceObject.EditIcon, null)), /*#__PURE__*/ external_react_default().createElement(external_Button_js_default(), {
            variant: "icon",
            size: "lg"
        }, /*#__PURE__*/ external_react_default().createElement(icons_namespaceObject.EditIcon, null)))
};
const IconLoading = {
    args: {
        variant: 'icon',
        children: /*#__PURE__*/ external_react_default().createElement(icons_namespaceObject.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'
    }
};
var __webpack_export_target__ = exports;
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
    value: true
});
