'use strict';

var jsxRuntime = require('../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
var React = require('react');
var index = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
var sidePanel_module = require('./side-panel.module.css.cjs');
var flex = require('../flex/flex.cjs');
var text = require('../text/text.cjs');

const sidePanelRoot = index.cva(sidePanel_module.default["side-panel"], {
    variants: {
        side: {
            left: sidePanel_module.default["side-panel-left"],
            right: sidePanel_module.default["side-panel-right"],
        },
    },
    defaultVariants: {
        side: "right",
    },
});
const SidePanelRoot = ({ children, side = "right", className, }) => {
    return (jsxRuntime.jsxRuntimeExports.jsx("aside", { className: sidePanelRoot({ side, className }), children: children }));
};
const SidePanelHeader = ({ title, icon, actions = [], description, }) => {
    return (jsxRuntime.jsxRuntimeExports.jsxs("div", { className: sidePanel_module.default["side-panel-header"], children: [jsxRuntime.jsxRuntimeExports.jsxs(flex.Flex, { gap: 3, justify: "between", align: "center", children: [jsxRuntime.jsxRuntimeExports.jsxs(flex.Flex, { gap: 3, children: [icon, jsxRuntime.jsxRuntimeExports.jsx(text.Text, { size: 5, weight: 500, children: title })] }), jsxRuntime.jsxRuntimeExports.jsx(flex.Flex, { gap: 3, children: actions?.map((action, index) => (jsxRuntime.jsxRuntimeExports.jsx(React.Fragment, { children: action }, index))) })] }), description ? jsxRuntime.jsxRuntimeExports.jsx(text.Text, { size: 2, children: description }) : null] }));
};
const SidePanelSection = ({ children }) => {
    return jsxRuntime.jsxRuntimeExports.jsx("div", { className: sidePanel_module.default["side-panel-section"], children: children });
};
const SidePanel = Object.assign(SidePanelRoot, {
    Header: SidePanelHeader,
    Section: SidePanelSection,
});

exports.SidePanel = SidePanel;
//# sourceMappingURL=side-panel.cjs.map
