"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.RangeSlider = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const classnames_1 = __importDefault(require("classnames"));
const react_1 = require("react");
const mergeDeep_1 = require("../../helpers/mergeDeep");
const ThemeContext_1 = require("../Flowbite/ThemeContext");
exports.RangeSlider = (0, react_1.forwardRef)(({ className, sizing = 'md', theme: customTheme = {}, ...props }, ref) => {
    const theme = (0, mergeDeep_1.mergeDeep)((0, ThemeContext_1.useTheme)().theme.rangeSlider, customTheme);
    return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)("div", { "data-testid": "flowbite-range-slider", className: (0, classnames_1.default)(theme.root.base, className), children: (0, jsx_runtime_1.jsx)("div", { className: theme.field.base, children: (0, jsx_runtime_1.jsx)("input", { ref: ref, type: "range", className: (0, classnames_1.default)(theme.field.input.base, theme.field.input.sizes[sizing]), ...props }) }) }) }));
});
exports.RangeSlider.displayName = 'RangeSlider';
