"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.useBFUITheme = exports.BFUIProvider = exports.Card = exports.Input = exports.Button = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
/**
 * Minimal LLM UI Components - Core functionality only
 */
const react_1 = __importDefault(require("react"));
const Button = ({ children, onClick, variant = 'primary', size = 'medium', disabled = false }) => {
    const className = `bfui-button bfui-button--${variant} bfui-button--${size}${disabled ? ' bfui-button--disabled' : ''}`;
    return ((0, jsx_runtime_1.jsx)("button", { className: className, onClick: onClick, disabled: disabled, children: children }));
};
exports.Button = Button;
const Input = ({ value, onChange, placeholder, type = 'text', disabled = false }) => {
    return ((0, jsx_runtime_1.jsx)("input", { className: "bfui-input", type: type, value: value, onChange: (e) => onChange(e.target.value), placeholder: placeholder, disabled: disabled }));
};
exports.Input = Input;
const Card = ({ children, title, className = '' }) => {
    return ((0, jsx_runtime_1.jsxs)("div", { className: `bfui-card ${className}`, children: [title && (0, jsx_runtime_1.jsx)("div", { className: "bfui-card__title", children: title }), (0, jsx_runtime_1.jsx)("div", { className: "bfui-card__content", children: children })] }));
};
exports.Card = Card;
const BFUIContext = react_1.default.createContext({ theme: 'light' });
const BFUIProvider = ({ children, theme = 'light' }) => {
    return ((0, jsx_runtime_1.jsx)(BFUIContext.Provider, { value: { theme }, children: (0, jsx_runtime_1.jsx)("div", { className: `bfui-theme--${theme}`, children: children }) }));
};
exports.BFUIProvider = BFUIProvider;
// Hook for accessing theme
const useBFUITheme = () => {
    const context = react_1.default.useContext(BFUIContext);
    if (!context) {
        return { theme: 'light' };
    }
    return context;
};
exports.useBFUITheme = useBFUITheme;
// Export all components
exports.default = {
    Button: exports.Button,
    Input: exports.Input,
    Card: exports.Card,
    BFUIProvider: exports.BFUIProvider,
    useBFUITheme: exports.useBFUITheme
};
//# sourceMappingURL=index-base.js.map