"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__, {
    App: ()=>/* binding */ App,
    default: ()=>/* binding */ App_stories_rslib_entry_
});
const react_namespaceObject = require("@chakra-ui/react");
const CodeBlock_js_namespaceObject = require("../../components/CodeBlock/CodeBlock.js");
var CodeBlock_js_default = /*#__PURE__*/ __webpack_require__.n(CodeBlock_js_namespaceObject);
const ColorModeSwitch_js_namespaceObject = require("../../components/ColorModeSwitch/ColorModeSwitch.js");
var ColorModeSwitch_js_default = /*#__PURE__*/ __webpack_require__.n(ColorModeSwitch_js_namespaceObject);
const ResourceList_js_namespaceObject = require("../../components/ResourceList/ResourceList.js");
var ResourceList_js_default = /*#__PURE__*/ __webpack_require__.n(ResourceList_js_namespaceObject);
const SearchField_js_namespaceObject = require("../../components/SearchField/SearchField.js");
var SearchField_js_default = /*#__PURE__*/ __webpack_require__.n(SearchField_js_namespaceObject);
const SectionDivider_js_namespaceObject = require("../../components/Section/SectionDivider.js");
var SectionDivider_js_default = /*#__PURE__*/ __webpack_require__.n(SectionDivider_js_namespaceObject);
const SectionHeading_js_namespaceObject = require("../../components/Section/SectionHeading.js");
var SectionHeading_js_default = /*#__PURE__*/ __webpack_require__.n(SectionHeading_js_namespaceObject);
const SectionSubheading_js_namespaceObject = require("../../components/Section/SectionSubheading.js");
var SectionSubheading_js_default = /*#__PURE__*/ __webpack_require__.n(SectionSubheading_js_namespaceObject);
const formFieldExamples_js_namespaceObject = require("../../components/Form/formFieldExamples.js");
const Tabs_js_namespaceObject = require("../../components/Tabs/Tabs.js");
var Tabs_js_default = /*#__PURE__*/ __webpack_require__.n(Tabs_js_namespaceObject);
const CopyButton_js_namespaceObject = require("../../components/CopyButton/CopyButton.js");
var CopyButton_js_default = /*#__PURE__*/ __webpack_require__.n(CopyButton_js_namespaceObject);
const external_react_namespaceObject = require("react");
const md_namespaceObject = require("react-icons/md");
const Breadcrumbs_js_namespaceObject = require("../Breadcrumbs/Breadcrumbs.js");
var Breadcrumbs_js_default = /*#__PURE__*/ __webpack_require__.n(Breadcrumbs_js_namespaceObject);
const BaseLayout_js_namespaceObject = require("../Layout/BaseLayout.js");
var BaseLayout_js_default = /*#__PURE__*/ __webpack_require__.n(BaseLayout_js_namespaceObject);
const Section_js_namespaceObject = require("../Section/Section.js");
var Section_js_default = /*#__PURE__*/ __webpack_require__.n(Section_js_namespaceObject);
const Steps_js_namespaceObject = require("../Steps/Steps.js");
var Steps_js_default = /*#__PURE__*/ __webpack_require__.n(Steps_js_namespaceObject);
const icons_namespaceObject = require("@chakra-ui/icons");
const meta = {
    title: 'Components/App',
    component: App,
    parameters: {
        layout: 'fullscreen',
        options: {
            showPanel: false
        },
        design: {
            type: 'figma',
            url: 'https://www.figma.com/file/bJcVrZNilxa06jYuVCGWYd/Redpanda-Design-System-2023?type=design&node-id=91-5147&mode=design'
        }
    }
};
/* ESM default export */ const App_stories_rslib_entry_ = meta;
function App() {
    const [step, setStep] = (0, external_react_namespaceObject.useState)(1);
    const [searchText, setSearchText] = (0, external_react_namespaceObject.useState)('');
    return /*#__PURE__*/ React.createElement(BaseLayout_js_default(), {
        sidebar: {
            items: [
                {
                    title: 'Namespaces',
                    to: '/',
                    icon: md_namespaceObject.MdSearch
                },
                {
                    title: 'Users',
                    to: '/2',
                    icon: md_namespaceObject.MdHelpOutline
                },
                {
                    title: 'Clients',
                    to: '/3',
                    icon: md_namespaceObject.MdFavoriteBorder
                },
                {
                    title: 'Payment',
                    to: '/4',
                    icon: md_namespaceObject.MdPayment
                }
            ],
            footerItems: [
                {
                    title: 'Settings',
                    to: '/settings',
                    icon: md_namespaceObject.MdOutlineSettings
                },
                {
                    title: 'Account',
                    to: '/account',
                    icon: md_namespaceObject.MdPersonOutline
                }
            ]
        }
    }, /*#__PURE__*/ React.createElement(react_namespaceObject.Grid, {
        gridTemplateColumns: "1fr max-content",
        mt: "-1rem"
    }, /*#__PURE__*/ React.createElement(Breadcrumbs_js_default(), {
        items: [
            {
                heading: 'Namespace',
                name: 'default',
                to: '/namespaces/1'
            },
            {
                heading: 'Cluster',
                name: 'staging',
                to: '/clusters/1'
            },
            {
                name: 'headingless item',
                to: '/clusters/1'
            }
        ]
    }), /*#__PURE__*/ React.createElement(ColorModeSwitch_js_default(), null)), /*#__PURE__*/ React.createElement(react_namespaceObject.Grid, {
        gap: 12,
        mt: 6
    }, /*#__PURE__*/ React.createElement(react_namespaceObject.Heading, {
        variant: "xl"
    }, "Page title"), /*#__PURE__*/ React.createElement(react_namespaceObject.Grid, {
        gap: "32",
        gridTemplateColumns: "1.5fr 1fr"
    }, /*#__PURE__*/ React.createElement(react_namespaceObject.Stack, {
        spacing: 8
    }, /*#__PURE__*/ React.createElement(Steps_js_default(), {
        currentIndex: step,
        onClick: (i)=>setStep(i),
        items: [
            {
                name: 'Cloud VPC settings'
            },
            {
                name: 'RP cluster settings'
            },
            {
                name: 'Grant privileges'
            },
            {
                name: 'Connect and deploy'
            }
        ]
    }), /*#__PURE__*/ React.createElement(formFieldExamples_js_namespaceObject.FormFieldExamples, null)), /*#__PURE__*/ React.createElement("div", null, /*#__PURE__*/ React.createElement(Section_js_default(), {
        variant: "secondary",
        position: "sticky",
        top: 8
    }, /*#__PURE__*/ React.createElement(react_namespaceObject.Stack, {
        gap: "2"
    }, /*#__PURE__*/ React.createElement(SectionSubheading_js_default(), null, "Summary"), /*#__PURE__*/ React.createElement(react_namespaceObject.Grid, {
        gridTemplateColumns: "1fr 2fr",
        gap: "2"
    }, [
        {
            label: 'First item',
            value: 'some-long-value'
        },
        {
            label: 'Second item',
            value: 'some-long-value'
        },
        {
            label: 'Third item',
            value: 'some-long-value'
        }
    ].map((item)=>/*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(react_namespaceObject.Box, {
            as: "b"
        }, item.label), /*#__PURE__*/ React.createElement(react_namespaceObject.Box, null, item.value)))), /*#__PURE__*/ React.createElement(react_namespaceObject.Divider, null), /*#__PURE__*/ React.createElement(SectionSubheading_js_default(), null, "Pricing"), /*#__PURE__*/ React.createElement(react_namespaceObject.Text, null, "Section text Lorem ipsum dolor sit amet consectetur adipisicing elit.", /*#__PURE__*/ React.createElement(react_namespaceObject.Link, {
        href: "http://redpanda.com"
    }, "Voluptas"), " cum sit ea minima vero modi pariatur obcaecati praesentium sunt! Enim."))))), /*#__PURE__*/ React.createElement(react_namespaceObject.SimpleGrid, {
        gap: 6,
        columns: {
            base: 1,
            lg: 2
        }
    }, /*#__PURE__*/ React.createElement(Section_js_default(), null, /*#__PURE__*/ React.createElement(react_namespaceObject.Stack, {
        gap: "2"
    }, /*#__PURE__*/ React.createElement(SectionHeading_js_default(), null, "Section Heading"), /*#__PURE__*/ React.createElement(SectionSubheading_js_default(), null, "Section Subheading 1"), /*#__PURE__*/ React.createElement(react_namespaceObject.Grid, {
        gridTemplateColumns: "1fr 2fr",
        gap: "2"
    }, [
        {
            label: 'First item',
            value: 'some-long-value'
        },
        {
            label: 'Second item',
            value: 'some-long-value'
        },
        {
            label: 'Third item',
            value: 'some-long-value'
        }
    ].map((item)=>/*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(react_namespaceObject.Box, {
            fontWeight: "600"
        }, item.label), /*#__PURE__*/ React.createElement(react_namespaceObject.Box, null, item.value)))), /*#__PURE__*/ React.createElement(react_namespaceObject.Divider, null), /*#__PURE__*/ React.createElement(SectionSubheading_js_default(), null, "Section Subheading 2"), /*#__PURE__*/ React.createElement(react_namespaceObject.Grid, {
        gridTemplateColumns: "1fr 2fr",
        gap: "2"
    }, [
        {
            label: 'First item',
            value: 'some-long-value'
        },
        {
            label: 'Second item',
            value: 'some-long-value'
        },
        {
            label: 'Third item',
            value: 'some-long-value'
        }
    ].map((item)=>/*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(react_namespaceObject.Box, {
            fontWeight: "600"
        }, item.label), /*#__PURE__*/ React.createElement(react_namespaceObject.Box, null, item.value)))))), /*#__PURE__*/ React.createElement(Section_js_default(), null, /*#__PURE__*/ React.createElement(react_namespaceObject.VStack, {
        gap: "2",
        alignItems: "left"
    }, /*#__PURE__*/ React.createElement(SectionHeading_js_default(), null, "Buttons"), /*#__PURE__*/ React.createElement(react_namespaceObject.Text, null, "Section text Lorem ipsum dolor sit amet consectetur adipisicing elit.", /*#__PURE__*/ React.createElement(react_namespaceObject.Link, {
        href: "http://redpanda.com"
    }, "Voluptas"), " cum sit ea minima vero modi pariatur obcaecati praesentium sunt! Enim."), /*#__PURE__*/ React.createElement(react_namespaceObject.HStack, null, /*#__PURE__*/ React.createElement(react_namespaceObject.Button, {
        variant: "solid"
    }, "Solid"), /*#__PURE__*/ React.createElement(react_namespaceObject.Button, {
        variant: "outline"
    }, "Outline"), /*#__PURE__*/ React.createElement(react_namespaceObject.Button, {
        variant: "link"
    }, "Link button")), /*#__PURE__*/ React.createElement(react_namespaceObject.HStack, null, /*#__PURE__*/ React.createElement(react_namespaceObject.Button, {
        variant: "brand"
    }, "Brand"), /*#__PURE__*/ React.createElement(react_namespaceObject.Button, {
        variant: "delete"
    }, "Delete"), /*#__PURE__*/ React.createElement(react_namespaceObject.Button, {
        variant: "outline-delete"
    }, "Outline Delete")), /*#__PURE__*/ React.createElement(SectionDivider_js_default(), null), /*#__PURE__*/ React.createElement(react_namespaceObject.HStack, null, /*#__PURE__*/ React.createElement(react_namespaceObject.Button, {
        isLoading: true,
        loadingText: "Submitting"
    }, "Primary"), /*#__PURE__*/ React.createElement(react_namespaceObject.Button, {
        isLoading: true,
        loadingText: "Submitting"
    }, "Primary"), /*#__PURE__*/ React.createElement(react_namespaceObject.Button, {
        isLoading: true,
        loadingText: "Submitting",
        variant: "outline"
    }, "Primary")), /*#__PURE__*/ React.createElement(SectionDivider_js_default(), null), /*#__PURE__*/ React.createElement(react_namespaceObject.HStack, null, /*#__PURE__*/ React.createElement(react_namespaceObject.IconButton, {
        icon: /*#__PURE__*/ React.createElement(icons_namespaceObject.SearchIcon, null),
        "aria-label": "icon-button"
    }), /*#__PURE__*/ React.createElement(react_namespaceObject.IconButton, {
        icon: /*#__PURE__*/ React.createElement(icons_namespaceObject.SearchIcon, null),
        "aria-label": "icon-button-outline",
        variant: "outline"
    }), /*#__PURE__*/ React.createElement(react_namespaceObject.IconButton, {
        icon: /*#__PURE__*/ React.createElement(icons_namespaceObject.SearchIcon, null),
        "aria-label": "icon-button-link",
        variant: "link"
    })), /*#__PURE__*/ React.createElement(SectionDivider_js_default(), null), /*#__PURE__*/ React.createElement(react_namespaceObject.HStack, null, /*#__PURE__*/ React.createElement(react_namespaceObject.IconButton, {
        icon: /*#__PURE__*/ React.createElement(icons_namespaceObject.SearchIcon, null),
        "aria-label": "icon-button-loading",
        isLoading: true
    })), /*#__PURE__*/ React.createElement(SectionDivider_js_default(), null), /*#__PURE__*/ React.createElement(react_namespaceObject.HStack, null, /*#__PURE__*/ React.createElement(CopyButton_js_default(), {
        content: "Copy"
    }), /*#__PURE__*/ React.createElement(CopyButton_js_default(), {
        content: "Copy",
        variant: "outline"
    }), /*#__PURE__*/ React.createElement(CopyButton_js_default(), {
        content: "Copy",
        variant: "link"
    })), /*#__PURE__*/ React.createElement(SectionDivider_js_default(), null), /*#__PURE__*/ React.createElement(react_namespaceObject.HStack, null, /*#__PURE__*/ React.createElement(CopyButton_js_default(), {
        showLabel: true,
        content: "Copy"
    }), /*#__PURE__*/ React.createElement(CopyButton_js_default(), {
        showLabel: true,
        content: "Copy",
        variant: "outline"
    }), /*#__PURE__*/ React.createElement(CopyButton_js_default(), {
        showLabel: true,
        content: "Copy",
        variant: "link"
    })), /*#__PURE__*/ React.createElement(SectionDivider_js_default(), null), /*#__PURE__*/ React.createElement(react_namespaceObject.HStack, null, /*#__PURE__*/ React.createElement(CopyButton_js_default(), {
        showLabel: true,
        content: "Copy",
        isLoading: true
    }), /*#__PURE__*/ React.createElement(CopyButton_js_default(), {
        showLabel: true,
        content: "Copy",
        variant: "outline",
        isLoading: true
    }), /*#__PURE__*/ React.createElement(CopyButton_js_default(), {
        showLabel: true,
        content: "Copy",
        variant: "link",
        isLoading: true
    })))), /*#__PURE__*/ React.createElement(Section_js_default(), null, /*#__PURE__*/ React.createElement(SectionHeading_js_default(), null, "Tabs"), /*#__PURE__*/ React.createElement(Tabs_js_default(), {
        items: [
            {
                key: 'nodeJS',
                name: 'nodeJS',
                component: /*#__PURE__*/ React.createElement(CodeBlock_js_default(), {
                    codeString: `
function Logo(props: { alt: string; width?: number; height?: number }) {
  const image = useColorModeValue(redpandaColor, redpandaWhite);

  return (
    <img src={image} alt={props.alt || 'Redpanda logo'} width={props.width} height={props.height} />
  );
}                  
                  `,
                    language: "javascript"
                })
            },
            {
                key: 'Java',
                name: 'Java',
                component: /*#__PURE__*/ React.createElement(React.Fragment, null, "Java")
            },
            {
                key: 'C++',
                name: 'C++',
                component: /*#__PURE__*/ React.createElement(React.Fragment, null, "C++"),
                isDisabled: 'Disabled for X reason'
            }
        ]
    }))), /*#__PURE__*/ React.createElement(react_namespaceObject.Stack, {
        spacing: 4
    }, /*#__PURE__*/ React.createElement(react_namespaceObject.HStack, {
        width: "max-content"
    }, /*#__PURE__*/ React.createElement(SearchField_js_default(), {
        searchText: searchText,
        setSearchText: setSearchText
    }), /*#__PURE__*/ React.createElement(SearchField_js_default(), {
        searchText: searchText,
        setSearchText: setSearchText,
        icon: "filter",
        placeholderText: "Filter..."
    })), /*#__PURE__*/ React.createElement(ResourceList_js_default(), {
        columns: [
            {
                key: 'title',
                content: 'Title',
                width: '1fr'
            },
            {
                key: 'subtitle',
                content: 'Subtitle'
            },
            {
                key: 'detail',
                content: 'Detail'
            },
            {
                key: 'actions',
                content: 'Actions',
                align: 'text-right'
            }
        ],
        rows: [
            1,
            2,
            3,
            4,
            5
        ].map((i)=>({
                key: `row${i}`,
                id: `r${i}`,
                link: `/row${i}-link`,
                title: `title-${i}`,
                subtitle: `subtitle-${i}`,
                detail: `detail-${i}`,
                actions: /*#__PURE__*/ React.createElement(react_namespaceObject.HStack, {
                    gap: 1
                }, /*#__PURE__*/ React.createElement(react_namespaceObject.IconButton, {
                    "aria-label": "edit-icon-button",
                    icon: /*#__PURE__*/ React.createElement(md_namespaceObject.MdOutlineEdit, {
                        size: "1.4rem",
                        title: "Edit"
                    }),
                    variant: "icon",
                    size: ""
                }), /*#__PURE__*/ React.createElement(react_namespaceObject.IconButton, {
                    "aria-label": "delete-icon-button",
                    icon: /*#__PURE__*/ React.createElement(md_namespaceObject.MdDeleteOutline, {
                        size: "1.4rem",
                        title: "Delete"
                    }),
                    variant: "icon",
                    size: ""
                }))
            })).filter((item)=>item.id.includes(searchText))
    })), /*#__PURE__*/ React.createElement(Section_js_default(), null, /*#__PURE__*/ React.createElement(SectionHeading_js_default(), null, "Lists"), /*#__PURE__*/ React.createElement(react_namespaceObject.SimpleGrid, {
        columns: 2
    }, /*#__PURE__*/ React.createElement(react_namespaceObject.UnorderedList, {
        spacing: "1"
    }, /*#__PURE__*/ React.createElement(react_namespaceObject.ListItem, null, "Lorem ipsum dolor sit amet"), /*#__PURE__*/ React.createElement(react_namespaceObject.ListItem, null, "Consectetur adipiscing elit"), /*#__PURE__*/ React.createElement(react_namespaceObject.ListItem, null, "Integer molestie lorem at massa"), /*#__PURE__*/ React.createElement(react_namespaceObject.ListItem, null, "Facilisis in pretium nisl aliquet"), /*#__PURE__*/ React.createElement(react_namespaceObject.UnorderedList, null, /*#__PURE__*/ React.createElement(react_namespaceObject.ListItem, null, "Nested item"))), /*#__PURE__*/ React.createElement(react_namespaceObject.OrderedList, {
        spacing: "1"
    }, /*#__PURE__*/ React.createElement(react_namespaceObject.ListItem, null, "Lorem ipsum dolor sit amet"), /*#__PURE__*/ React.createElement(react_namespaceObject.ListItem, null, "Consectetur adipiscing elit"), /*#__PURE__*/ React.createElement(react_namespaceObject.ListItem, null, "Integer molestie lorem at massa"), /*#__PURE__*/ React.createElement(react_namespaceObject.ListItem, null, "Facilisis in pretium nisl aliquet"), /*#__PURE__*/ React.createElement(react_namespaceObject.OrderedList, null, /*#__PURE__*/ React.createElement(react_namespaceObject.ListItem, null, "Nested item")))))));
}
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
});
