fiboui 2.2.4 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { B as o, C as s, c as t, R as c, b as x, S as b, T as i, a as r } from "./index-CdDg3sZt.js";
2
+ import { B as o, C as s, c as t, R as c, b as x, S as b, T as i, a as r } from "./index-BIEK3zDu.js";
3
3
  export {
4
4
  o as Button,
5
5
  s as Checkbox,
package/dist/layout.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { C as e, a as o, b as r, D as t, H as l, L as n, c, e as i, d as S, S as d, V as u, Z as C } from "./index-K-VIFyCP.js";
3
- import { R as m } from "./index-nFXU29Ly.js";
2
+ import { C as e, a as o, b as r, D as t, H as l, L as n, c, e as i, d as S, S as d, V as u, Z as C } from "./index-txulk1zM.js";
3
+ import { R as m } from "./index-DkRkbmmY.js";
4
4
  export {
5
5
  e as Center,
6
6
  o as Column,
@@ -3,7 +3,7 @@ var q = Object.defineProperty;
3
3
  var I = (e, t, n) => t in e ? q(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
4
  var b = (e, t, n) => I(e, typeof t != "symbol" ? t + "" : t, n);
5
5
  import h, { useCallback as R, useSyncExternalStore as E, memo as T, useState as w, useRef as _, useEffect as v, StrictMode as L } from "react";
6
- import { n as k, S as F, w as z, z as $, A as j, x as H, R as x, B as D, P as N, D as W, G } from "./builder-DxmEDvW3.js";
6
+ import { n as k, S as F, w as z, z as $, A as j, x as H, R as x, B as D, P as N, D as W, G } from "./builder-DTH8K7ph.js";
7
7
  import { createRoot as C } from "react-dom/client";
8
8
  import { P as Y } from "./PluginManager-D5-ApsSN.js";
9
9
  function J(e) {
@@ -0,0 +1,44 @@
1
+ "use client";
2
+ import { jsx as s } from "react/jsx-runtime";
3
+ import { useState as a, useCallback as F, useMemo as T, createContext as C, useContext as p } from "react";
4
+ import { r as x, f as P, b as g } from "./themeData-CmTJt3dU.js";
5
+ const l = C(void 0);
6
+ function k(e) {
7
+ return typeof e == "string" ? e : `${e.name}|${e.colors.primary}|${e.colors.background}|${e.fontFamily}`;
8
+ }
9
+ function N({
10
+ theme: e = "web",
11
+ children: m,
12
+ className: c,
13
+ style: i
14
+ }) {
15
+ const t = k(e), [u, f] = a(t), [h, r] = a(null);
16
+ t !== u && (f(t), r(null));
17
+ const o = x(h ?? e), n = F((v) => {
18
+ r(v);
19
+ }, []), b = T(
20
+ () => ({
21
+ theme: o,
22
+ themeName: o.name,
23
+ setTheme: n
24
+ }),
25
+ [o, n]
26
+ ), d = [P(o), c].filter(Boolean).join(" "), y = {
27
+ ...g(o),
28
+ backgroundColor: o.colors.background,
29
+ color: o.colors.onBackground,
30
+ fontFamily: o.fontFamily,
31
+ ...i
32
+ };
33
+ return /* @__PURE__ */ s(l.Provider, { value: b, children: /* @__PURE__ */ s("div", { className: d, "data-fibo-theme": o.name, style: y, children: m }) });
34
+ }
35
+ function S() {
36
+ const e = p(l);
37
+ if (!e)
38
+ throw new Error("useFiboTheme must be used within a FiboThemeProvider");
39
+ return e;
40
+ }
41
+ export {
42
+ N as F,
43
+ S as u
44
+ };
package/dist/structure.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { B as e } from "./index-B_NshIUT.js";
3
- import { B as i, C as o, c as t, G as l, d, L as B, a as T, T as m, b as n } from "./index-CIUytVXq.js";
2
+ import { B as e } from "./index-DPQMrIgq.js";
3
+ import { B as i, C as o, c as t, G as l, d, L as B, a as T, T as m, b as n } from "./index-yb7roisl.js";
4
4
  export {
5
5
  i as Banner,
6
6
  e as Box,