koval-ui
Version:
React components collection with minimalistic design. Supports theming, layout, and input validation.
21 lines (20 loc) • 1.05 kB
JavaScript
"use client";
import { jsx as r } from "react/jsx-runtime";
import { useMemo as i } from "react";
import { RootThemeProvider as t } from "css-vars-hook";
import { convertTheme as d } from "../../internal/utils/convertThemeVarName.js";
import f from "./Provider.module.css.js";
import { theme as n } from "../Theme/themePodil.js";
import { theme as p } from "../Theme/theme.js";
import { DialogProvider as s } from "../Dialog/DialogProvider.js";
import { NotificationProvider as c } from "../Notification/NotificationProvider.js";
import { ToastProvider as h } from "../Toast/ToastProvider.js";
import { DrawerProvider as a } from "../Drawer/DrawerProvider.js";
const z = ({ children: e, theme: o = n }) => {
const m = i(() => d({ ...p, ...o }), [o]);
return /* @__PURE__ */ r(t, { theme: m, className: f.provider, children: /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(c, { children: /* @__PURE__ */ r(h, { children: /* @__PURE__ */ r(a, { children: e }) }) }) }) });
};
export {
z as Provider
};
//# sourceMappingURL=Provider.js.map