'use strict';

var jsxRuntime = require('../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
var index = require('../node_modules/.pnpm/@radix-ui_react-accordion@1.1.2_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3._nizm4bosmpm2rb3z7oy3ycykpi/node_modules/@radix-ui/react-accordion/dist/index.cjs');
var React = require('react');
var reactIcons_esm = require('../node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.cjs');
var flex = require('../flex/flex.cjs');
var accordion_module = require('./accordion.module.css.cjs');

function _interopNamespaceDefault(e) {
    var n = Object.create(null);
    if (e) {
        Object.keys(e).forEach(function (k) {
            if (k !== 'default') {
                var d = Object.getOwnPropertyDescriptor(e, k);
                Object.defineProperty(n, k, d.get ? d : {
                    enumerable: true,
                    get: function () { return e[k]; }
                });
            }
        });
    }
    n.default = e;
    return Object.freeze(n);
}

var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);

const AccordionRoot = React__namespace.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Root, { ref: ref, className: accordion_module.default.accordion, ...props })));
const AccordionItem = React__namespace.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsxs(flex.Flex, { gap: "medium", style: { width: "100%" }, children: [jsxRuntime.jsxRuntimeExports.jsx(reactIcons_esm.DiscIcon, { width: 16, height: 16, style: { margin: "14px 0" } }), jsxRuntime.jsxRuntimeExports.jsx(index.Item, { ref: ref, className: `${accordion_module.default.item} ${className}`, ...props })] })));
AccordionItem.displayName = "AccordionItem";
const AccordionTrigger = React__namespace.forwardRef(({ className, children, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Header, { className: accordion_module.default.header, children: jsxRuntime.jsxRuntimeExports.jsxs(index.Trigger, { ref: ref, className: accordion_module.default.trigger, ...props, children: [children, jsxRuntime.jsxRuntimeExports.jsx(reactIcons_esm.ChevronDownIcon, { className: accordion_module.default.svg })] }) })));
AccordionTrigger.displayName = index.Trigger.displayName;
const AccordionContent = React__namespace.forwardRef(({ className = "", children, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Content, { ref: ref, className: accordion_module.default.content, ...props, children: jsxRuntime.jsxRuntimeExports.jsx("div", { className: `${accordion_module.default.className}`, children: children }) })));
AccordionContent.displayName = index.Content.displayName;
const Accordion = Object.assign(AccordionRoot, {
    Content: AccordionContent,
    Item: AccordionItem,
    Trigger: AccordionTrigger,
});

exports.Accordion = Accordion;
//# sourceMappingURL=accordion.cjs.map
