'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-scroll-area@1.1.0_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18._mzysnztaiqorbxoa2lchvqcbze/node_modules/@radix-ui/react-scroll-area/dist/index.cjs');
var index$1 = require('../node_modules/.pnpm/class-variance-authority@0.6.0_typescript@5.4.3/node_modules/class-variance-authority/dist/index.cjs');
var React = require('react');
var scrollarea_module = require('./scrollarea.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 area = index$1.cva(scrollarea_module.default.area);
const ScrollArea = React__namespace.forwardRef(({ className, children, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsxs(index.Root, { ref: ref, className: area({ className }), ...props, children: [jsxRuntime.jsxRuntimeExports.jsx(index.Viewport, { style: { height: "100%", width: "100%" }, children: children }), jsxRuntime.jsxRuntimeExports.jsx(ScrollBar, {}), jsxRuntime.jsxRuntimeExports.jsx(index.Corner, {})] })));
ScrollArea.displayName = index.Root.displayName;
const scrollbar = index$1.cva(scrollarea_module.default.scrollbar);
const ScrollBar = React__namespace.forwardRef(({ className, orientation = "vertical", ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.ScrollAreaScrollbar, { ref: ref, orientation: orientation, className: scrollbar({ className }), ...props, children: jsxRuntime.jsxRuntimeExports.jsx(index.ScrollAreaThumb, { className: scrollarea_module.default.scrollbarthumb }) })));
ScrollBar.displayName = index.ScrollAreaScrollbar.displayName;

exports.ScrollArea = ScrollArea;
exports.ScrollBar = ScrollBar;
//# sourceMappingURL=scrollarea.cjs.map
