fiboui 1.0.2 → 2.0.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.
- package/README.md +138 -92
- package/dist/FineGrain-kBxv0WeR.js +29 -0
- package/dist/Link-DDzSPY1Q.js +88 -0
- package/dist/PluginManager-D5-ApsSN.js +111 -0
- package/dist/Router-i6Nc6qVs.js +386 -0
- package/dist/builder-DjLYXkXu.js +1842 -0
- package/dist/bundle-mjs-wppB-TKB.js +2760 -0
- package/dist/cli/bin.js +20 -0
- package/dist/cli/commands/generate/component.js +67 -0
- package/dist/cli/commands/generate/index.js +10 -0
- package/dist/cli/commands/generate/module.js +58 -0
- package/dist/cli/commands/generate/plugin.js +67 -0
- package/dist/cli/commands/init.js +58 -0
- package/dist/content.js +17 -0
- package/dist/core.js +33 -0
- package/dist/{effects-D16XdB_d.mjs → effects-CnevV566.js} +1 -0
- package/dist/index-B1av7e36.js +1102 -0
- package/dist/index-BQGRpkzR.js +1024 -0
- package/dist/index-CTRZRn9S.js +90 -0
- package/dist/index-DKFr-sai.js +33 -0
- package/dist/index-Dm4j2mMM.js +1031 -0
- package/dist/index-RbfIZuAo.js +119 -0
- package/dist/index-yeYkDTAx.js +778 -0
- package/dist/index.d.ts +43753 -6
- package/dist/index.js +2054 -0
- package/dist/interactive.js +12 -0
- package/dist/layout.js +18 -0
- package/dist/mount-sAVX_FBU.js +95 -0
- package/dist/navigation.js +13 -0
- package/dist/provider-B0eB-Wy7.js +286 -0
- package/dist/structure.js +15 -0
- package/dist/style.css +1 -1
- package/dist/style.js +1 -0
- package/dist/theme.js +9 -0
- package/package.json +88 -13
- package/dist/content/Alert/index.d.ts +0 -878
- package/dist/content/Avatar/index.d.ts +0 -886
- package/dist/content/Badge/index.d.ts +0 -887
- package/dist/content/Image/index.d.ts +0 -893
- package/dist/content/Label/index.d.ts +0 -879
- package/dist/content/Progress/index.d.ts +0 -898
- package/dist/content/Skeleton/index.d.ts +0 -879
- package/dist/content/Spinner/index.d.ts +0 -880
- package/dist/content/Text/index.d.ts +0 -878
- package/dist/content/index.d.ts +0 -9
- package/dist/core/StateWrapper.d.ts +0 -31
- package/dist/core/builder.d.ts +0 -58
- package/dist/core/component.d.ts +0 -7
- package/dist/core/effects.d.ts +0 -4
- package/dist/core/hooks.d.ts +0 -5
- package/dist/core/icons.d.ts +0 -11
- package/dist/core/index.d.ts +0 -6
- package/dist/core/state.d.ts +0 -86
- package/dist/core/types.d.ts +0 -51
- package/dist/demo.d.ts +0 -7
- package/dist/index.esm.js +0 -4777
- package/dist/index.umd.js +0 -251
- package/dist/interactive/Button/index.d.ts +0 -897
- package/dist/interactive/Checkbox/index.d.ts +0 -884
- package/dist/interactive/Combobox/index.d.ts +0 -898
- package/dist/interactive/RadioGroup/index.d.ts +0 -888
- package/dist/interactive/Select/index.d.ts +0 -895
- package/dist/interactive/Switch/index.d.ts +0 -881
- package/dist/interactive/TextField/index.d.ts +0 -893
- package/dist/interactive/Textarea/index.d.ts +0 -890
- package/dist/interactive/index.d.ts +0 -8
- package/dist/layout/Center/index.d.ts +0 -869
- package/dist/layout/Column/index.d.ts +0 -881
- package/dist/layout/Container/index.d.ts +0 -870
- package/dist/layout/DashboardLayout/index.d.ts +0 -870
- package/dist/layout/Header/index.d.ts +0 -870
- package/dist/layout/Line/index.d.ts +0 -872
- package/dist/layout/Row/index.d.ts +0 -879
- package/dist/layout/Scaffold/index.d.ts +0 -878
- package/dist/layout/ScrollView/index.d.ts +0 -879
- package/dist/layout/Sidebar/index.d.ts +0 -870
- package/dist/layout/Spacer/index.d.ts +0 -875
- package/dist/layout/StakentComponents.d.ts +0 -4
- package/dist/layout/index.d.ts +0 -11
- package/dist/structure/Banner/index.d.ts +0 -879
- package/dist/structure/Box/index.d.ts +0 -869
- package/dist/structure/Card/index.d.ts +0 -881
- package/dist/structure/Collapse/index.d.ts +0 -884
- package/dist/structure/Grid/index.d.ts +0 -1757
- package/dist/structure/List/index.d.ts +0 -888
- package/dist/structure/Table/index.d.ts +0 -895
- package/dist/structure/Tags/index.d.ts +0 -876
- package/dist/structure/cards/AssetCard/index.d.ts +0 -884
- package/dist/structure/cards/CollectionCard/index.d.ts +0 -880
- package/dist/structure/cards/ContentCard/index.d.ts +0 -884
- package/dist/structure/cards/ProfileCard/index.d.ts +0 -892
- package/dist/structure/cards/index.d.ts +0 -5
- package/dist/structure/cards/variants/index.d.ts +0 -3490
- package/dist/structure/index.d.ts +0 -9
- package/dist/theme/cupertino.d.ts +0 -3
- package/dist/theme/index.d.ts +0 -5
- package/dist/theme/material.d.ts +0 -3
- package/dist/theme/provider.d.ts +0 -16
- package/dist/theme/types.d.ts +0 -57
- package/dist/theme/web.d.ts +0 -3
- package/src/content/Alert/index.ts +0 -110
- package/src/content/Avatar/index.ts +0 -116
- package/src/content/Badge/index.ts +0 -162
- package/src/content/Image/index.ts +0 -137
- package/src/content/Label/index.ts +0 -66
- package/src/content/Progress/index.ts +0 -378
- package/src/content/Skeleton/index.ts +0 -71
- package/src/content/Spinner/index.ts +0 -139
- package/src/content/Text/index.ts +0 -74
- package/src/content/index.ts +0 -9
- package/src/core/StateWrapper.tsx +0 -131
- package/src/core/builder.ts +0 -301
- package/src/core/component.ts +0 -49
- package/src/core/effects.ts +0 -27
- package/src/core/hooks.ts +0 -48
- package/src/core/icons.tsx +0 -57
- package/src/core/index.ts +0 -6
- package/src/core/state.ts +0 -297
- package/src/core/types.ts +0 -62
- package/src/demo.tsx +0 -1050
- package/src/index.ts +0 -8
- package/src/interactive/Button/index.ts +0 -219
- package/src/interactive/Checkbox/index.ts +0 -145
- package/src/interactive/Combobox/index.ts +0 -278
- package/src/interactive/RadioGroup/index.ts +0 -124
- package/src/interactive/Select/index.ts +0 -227
- package/src/interactive/Switch/index.ts +0 -123
- package/src/interactive/TextField/index.ts +0 -223
- package/src/interactive/Textarea/index.ts +0 -129
- package/src/interactive/index.ts +0 -8
- package/src/layout/Center/index.ts +0 -34
- package/src/layout/Column/index.ts +0 -101
- package/src/layout/Container/index.ts +0 -28
- package/src/layout/DashboardLayout/index.ts +0 -106
- package/src/layout/Header/index.ts +0 -50
- package/src/layout/Line/index.ts +0 -41
- package/src/layout/Row/index.ts +0 -93
- package/src/layout/Scaffold/index.ts +0 -133
- package/src/layout/ScrollView/index.ts +0 -67
- package/src/layout/Sidebar/index.ts +0 -56
- package/src/layout/Spacer/index.ts +0 -46
- package/src/layout/StakentComponents.tsx +0 -57
- package/src/layout/index.ts +0 -11
- package/src/structure/Banner/index.ts +0 -92
- package/src/structure/Box/index.ts +0 -46
- package/src/structure/Card/index.ts +0 -113
- package/src/structure/Collapse/index.ts +0 -122
- package/src/structure/Grid/index.ts +0 -197
- package/src/structure/List/index.ts +0 -185
- package/src/structure/Table/index.ts +0 -165
- package/src/structure/Tags/index.ts +0 -69
- package/src/structure/cards/AssetCard/index.ts +0 -158
- package/src/structure/cards/CollectionCard/index.ts +0 -95
- package/src/structure/cards/ContentCard/index.ts +0 -127
- package/src/structure/cards/ProfileCard/index.ts +0 -152
- package/src/structure/cards/index.ts +0 -5
- package/src/structure/cards/variants/index.ts +0 -301
- package/src/structure/index.ts +0 -10
- package/src/styles/base.css +0 -186
- package/src/styles/core.css +0 -52
- package/src/styles/themes/cupertino.css +0 -197
- package/src/styles/themes/material.css +0 -322
- package/src/styles/themes/web.css +0 -196
- package/src/theme/cupertino.ts +0 -85
- package/src/theme/index.ts +0 -5
- package/src/theme/material.ts +0 -86
- package/src/theme/provider.tsx +0 -76
- package/src/theme/types.ts +0 -62
- package/src/theme/web.ts +0 -82
|
@@ -0,0 +1,12 @@
|
|
|
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-B1av7e36.js";
|
|
3
|
+
export {
|
|
4
|
+
o as Button,
|
|
5
|
+
s as Checkbox,
|
|
6
|
+
t as Combobox,
|
|
7
|
+
c as RadioGroup,
|
|
8
|
+
x as Select,
|
|
9
|
+
b as Switch,
|
|
10
|
+
i as TextField,
|
|
11
|
+
r as Textarea
|
|
12
|
+
};
|
package/dist/layout.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
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-yeYkDTAx.js";
|
|
3
|
+
import { R as m } from "./index-RbfIZuAo.js";
|
|
4
|
+
export {
|
|
5
|
+
e as Center,
|
|
6
|
+
o as Column,
|
|
7
|
+
r as Container,
|
|
8
|
+
t as DashboardLayout,
|
|
9
|
+
l as Header,
|
|
10
|
+
n as Line,
|
|
11
|
+
m as Row,
|
|
12
|
+
c as Scaffold,
|
|
13
|
+
i as ScrollView,
|
|
14
|
+
S as Sidebar,
|
|
15
|
+
d as Spacer,
|
|
16
|
+
u as VirtualColumn,
|
|
17
|
+
C as ZStack
|
|
18
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var b = Object.defineProperty;
|
|
3
|
+
var f = (e, t, n) => t in e ? b(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var s = (e, t, n) => f(e, typeof t != "symbol" ? t + "" : t, n);
|
|
5
|
+
import r, { useCallback as u, useSyncExternalStore as c, StrictMode as E } from "react";
|
|
6
|
+
import { createRoot as p } from "react-dom/client";
|
|
7
|
+
import { P as g } from "./PluginManager-D5-ApsSN.js";
|
|
8
|
+
import { R as d, j as _, P as w, k as S, l as R } from "./builder-DjLYXkXu.js";
|
|
9
|
+
function v(e) {
|
|
10
|
+
return (t) => e.subscribe(t);
|
|
11
|
+
}
|
|
12
|
+
function B(e) {
|
|
13
|
+
const t = u(v(e), [e]);
|
|
14
|
+
return c(t, () => e.value, () => e.value);
|
|
15
|
+
}
|
|
16
|
+
function k(e) {
|
|
17
|
+
const t = u(
|
|
18
|
+
(n) => e.subscribe(n),
|
|
19
|
+
[e]
|
|
20
|
+
);
|
|
21
|
+
return c(t, () => e.getState(), () => e.getState());
|
|
22
|
+
}
|
|
23
|
+
function x(e) {
|
|
24
|
+
const t = u(
|
|
25
|
+
(n) => e.subscribe(n),
|
|
26
|
+
[e]
|
|
27
|
+
);
|
|
28
|
+
return c(t, () => e.get(), () => e.get());
|
|
29
|
+
}
|
|
30
|
+
class C {
|
|
31
|
+
constructor() {
|
|
32
|
+
s(this, "_rootComponent", null);
|
|
33
|
+
s(this, "_rootElement", null);
|
|
34
|
+
s(this, "_plugins", []);
|
|
35
|
+
}
|
|
36
|
+
use(t) {
|
|
37
|
+
return this._plugins.push(t), this;
|
|
38
|
+
}
|
|
39
|
+
plugins(t) {
|
|
40
|
+
return this._plugins.push(...t), this;
|
|
41
|
+
}
|
|
42
|
+
root(t) {
|
|
43
|
+
return this._rootComponent = t, this;
|
|
44
|
+
}
|
|
45
|
+
mount(t) {
|
|
46
|
+
const n = document.getElementById(t);
|
|
47
|
+
if (!n)
|
|
48
|
+
throw new Error(`Root element with id "${t}" not found`);
|
|
49
|
+
this._rootElement = n, this.build();
|
|
50
|
+
}
|
|
51
|
+
build() {
|
|
52
|
+
if (!this._rootComponent || !this._rootElement)
|
|
53
|
+
throw new Error("Root component and mount element must be provided");
|
|
54
|
+
const t = g.getInstance();
|
|
55
|
+
this._plugins.forEach((i) => {
|
|
56
|
+
t.use(i);
|
|
57
|
+
});
|
|
58
|
+
const n = this._rootComponent, o = () => r.createElement(d, {
|
|
59
|
+
children: r.createElement(_, {
|
|
60
|
+
stateMap: /* @__PURE__ */ new Map(),
|
|
61
|
+
children: r.createElement(w, {
|
|
62
|
+
providers: /* @__PURE__ */ new Map(),
|
|
63
|
+
children: r.createElement(n, null)
|
|
64
|
+
})
|
|
65
|
+
})
|
|
66
|
+
});
|
|
67
|
+
p(this._rootElement).render(r.createElement(o));
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
const W = () => new C();
|
|
71
|
+
function h(e) {
|
|
72
|
+
return R(e);
|
|
73
|
+
}
|
|
74
|
+
function $({ children: e }) {
|
|
75
|
+
return h(e);
|
|
76
|
+
}
|
|
77
|
+
function j(e, t, n) {
|
|
78
|
+
const o = typeof e == "string" ? document.querySelector(e) : e;
|
|
79
|
+
if (!o)
|
|
80
|
+
throw new Error(`mount: element not found: ${String(e)}`);
|
|
81
|
+
const l = typeof t == "function" && !S(t) ? t() : t, i = h(l), a = p(o), m = r.createElement(d, { children: i });
|
|
82
|
+
return a.render(
|
|
83
|
+
(n == null ? void 0 : n.strict) === !1 ? m : r.createElement(E, null, m)
|
|
84
|
+
), a;
|
|
85
|
+
}
|
|
86
|
+
export {
|
|
87
|
+
W as F,
|
|
88
|
+
k as a,
|
|
89
|
+
x as b,
|
|
90
|
+
C as c,
|
|
91
|
+
$ as d,
|
|
92
|
+
j as m,
|
|
93
|
+
h as t,
|
|
94
|
+
B as u
|
|
95
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { R as e } from "./Router-i6Nc6qVs.js";
|
|
3
|
+
import { L as o, N as r, c as t, a as i, b as n, d as L, u as c } from "./Link-DDzSPY1Q.js";
|
|
4
|
+
export {
|
|
5
|
+
o as Link,
|
|
6
|
+
r as NavLink,
|
|
7
|
+
e as Router,
|
|
8
|
+
t as useLocation,
|
|
9
|
+
i as useNavigate,
|
|
10
|
+
n as useParams,
|
|
11
|
+
L as useQuery,
|
|
12
|
+
c as useRouter
|
|
13
|
+
};
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
3
|
+
import { useState as i, useEffect as p, createContext as m, useContext as h } from "react";
|
|
4
|
+
const l = {
|
|
5
|
+
name: "material",
|
|
6
|
+
colors: {
|
|
7
|
+
primary: "#6750A4",
|
|
8
|
+
primaryVariant: "#4F378B",
|
|
9
|
+
secondary: "#625B71",
|
|
10
|
+
secondaryVariant: "#4A4458",
|
|
11
|
+
background: "#FFFBFE",
|
|
12
|
+
surface: "#FFFBFE",
|
|
13
|
+
error: "#B3261E",
|
|
14
|
+
success: "#4CAF50",
|
|
15
|
+
warning: "#FF9800",
|
|
16
|
+
info: "#2196F3",
|
|
17
|
+
onPrimary: "#FFFFFF",
|
|
18
|
+
onSecondary: "#000000",
|
|
19
|
+
onBackground: "#000000",
|
|
20
|
+
onSurface: "#000000",
|
|
21
|
+
onError: "#FFFFFF"
|
|
22
|
+
},
|
|
23
|
+
typography: {
|
|
24
|
+
h1: {
|
|
25
|
+
fontSize: "96px",
|
|
26
|
+
fontWeight: 300,
|
|
27
|
+
letterSpacing: "-1.5px"
|
|
28
|
+
},
|
|
29
|
+
h2: {
|
|
30
|
+
fontSize: "60px",
|
|
31
|
+
fontWeight: 300,
|
|
32
|
+
letterSpacing: "-0.5px"
|
|
33
|
+
},
|
|
34
|
+
h3: {
|
|
35
|
+
fontSize: "48px",
|
|
36
|
+
fontWeight: 400
|
|
37
|
+
},
|
|
38
|
+
h4: {
|
|
39
|
+
fontSize: "34px",
|
|
40
|
+
fontWeight: 400,
|
|
41
|
+
letterSpacing: "0.25px"
|
|
42
|
+
},
|
|
43
|
+
h5: {
|
|
44
|
+
fontSize: "24px",
|
|
45
|
+
fontWeight: 400
|
|
46
|
+
},
|
|
47
|
+
h6: {
|
|
48
|
+
fontSize: "20px",
|
|
49
|
+
fontWeight: 500,
|
|
50
|
+
letterSpacing: "0.15px"
|
|
51
|
+
},
|
|
52
|
+
body: {
|
|
53
|
+
fontSize: "16px",
|
|
54
|
+
fontWeight: 400,
|
|
55
|
+
letterSpacing: "0.5px"
|
|
56
|
+
},
|
|
57
|
+
caption: {
|
|
58
|
+
fontSize: "12px",
|
|
59
|
+
fontWeight: 400,
|
|
60
|
+
letterSpacing: "0.4px"
|
|
61
|
+
},
|
|
62
|
+
label: {
|
|
63
|
+
fontSize: "14px",
|
|
64
|
+
fontWeight: 500,
|
|
65
|
+
letterSpacing: "1.25px"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
spacing: {
|
|
69
|
+
xs: "4px",
|
|
70
|
+
sm: "8px",
|
|
71
|
+
md: "16px",
|
|
72
|
+
lg: "24px",
|
|
73
|
+
xl: "32px"
|
|
74
|
+
},
|
|
75
|
+
borderRadius: {
|
|
76
|
+
sm: "4px",
|
|
77
|
+
md: "8px",
|
|
78
|
+
lg: "16px",
|
|
79
|
+
full: "9999px"
|
|
80
|
+
},
|
|
81
|
+
shadows: {
|
|
82
|
+
sm: "0 2px 4px rgba(0,0,0,0.1)",
|
|
83
|
+
md: "0 4px 8px rgba(0,0,0,0.12)",
|
|
84
|
+
lg: "0 8px 16px rgba(0,0,0,0.14)"
|
|
85
|
+
},
|
|
86
|
+
fontFamily: "Roboto, sans-serif"
|
|
87
|
+
}, S = {
|
|
88
|
+
name: "cupertino",
|
|
89
|
+
colors: {
|
|
90
|
+
primary: "#007AFF",
|
|
91
|
+
secondary: "#AF52DE",
|
|
92
|
+
background: "#FFFFFF",
|
|
93
|
+
surface: "#F2F2F7",
|
|
94
|
+
error: "#FF3B30",
|
|
95
|
+
success: "#34C759",
|
|
96
|
+
warning: "#FF9500",
|
|
97
|
+
info: "#5AC8FA",
|
|
98
|
+
onPrimary: "#FFFFFF",
|
|
99
|
+
onSecondary: "#FFFFFF",
|
|
100
|
+
onBackground: "#000000",
|
|
101
|
+
onSurface: "#000000",
|
|
102
|
+
onError: "#FFFFFF"
|
|
103
|
+
},
|
|
104
|
+
typography: {
|
|
105
|
+
h1: {
|
|
106
|
+
fontSize: "34px",
|
|
107
|
+
fontWeight: 700,
|
|
108
|
+
letterSpacing: "0.37px"
|
|
109
|
+
},
|
|
110
|
+
h2: {
|
|
111
|
+
fontSize: "28px",
|
|
112
|
+
fontWeight: 700,
|
|
113
|
+
letterSpacing: "0.36px"
|
|
114
|
+
},
|
|
115
|
+
h3: {
|
|
116
|
+
fontSize: "22px",
|
|
117
|
+
fontWeight: 600,
|
|
118
|
+
letterSpacing: "0.35px"
|
|
119
|
+
},
|
|
120
|
+
h4: {
|
|
121
|
+
fontSize: "20px",
|
|
122
|
+
fontWeight: 600
|
|
123
|
+
},
|
|
124
|
+
h5: {
|
|
125
|
+
fontSize: "17px",
|
|
126
|
+
fontWeight: 600,
|
|
127
|
+
letterSpacing: "-0.41px"
|
|
128
|
+
},
|
|
129
|
+
h6: {
|
|
130
|
+
fontSize: "15px",
|
|
131
|
+
fontWeight: 600,
|
|
132
|
+
letterSpacing: "-0.24px"
|
|
133
|
+
},
|
|
134
|
+
body: {
|
|
135
|
+
fontSize: "17px",
|
|
136
|
+
fontWeight: 400,
|
|
137
|
+
letterSpacing: "-0.41px"
|
|
138
|
+
},
|
|
139
|
+
caption: {
|
|
140
|
+
fontSize: "13px",
|
|
141
|
+
fontWeight: 400,
|
|
142
|
+
letterSpacing: "-0.08px"
|
|
143
|
+
},
|
|
144
|
+
label: {
|
|
145
|
+
fontSize: "15px",
|
|
146
|
+
fontWeight: 500,
|
|
147
|
+
letterSpacing: "-0.24px"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
spacing: {
|
|
151
|
+
xs: "4px",
|
|
152
|
+
sm: "8px",
|
|
153
|
+
md: "12px",
|
|
154
|
+
lg: "20px",
|
|
155
|
+
xl: "32px"
|
|
156
|
+
},
|
|
157
|
+
borderRadius: {
|
|
158
|
+
sm: "8px",
|
|
159
|
+
md: "12px",
|
|
160
|
+
lg: "20px",
|
|
161
|
+
full: "9999px"
|
|
162
|
+
},
|
|
163
|
+
shadows: {
|
|
164
|
+
sm: "0 1px 3px rgba(0,0,0,0.08)",
|
|
165
|
+
md: "0 2px 8px rgba(0,0,0,0.1)",
|
|
166
|
+
lg: "0 4px 16px rgba(0,0,0,0.12)"
|
|
167
|
+
},
|
|
168
|
+
fontFamily: '-apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif'
|
|
169
|
+
}, d = {
|
|
170
|
+
name: "web",
|
|
171
|
+
colors: {
|
|
172
|
+
primary: "#3B82F6",
|
|
173
|
+
secondary: "#8B5CF6",
|
|
174
|
+
background: "#FFFFFF",
|
|
175
|
+
surface: "#F9FAFB",
|
|
176
|
+
error: "#EF4444",
|
|
177
|
+
success: "#10B981",
|
|
178
|
+
warning: "#F59E0B",
|
|
179
|
+
info: "#06B6D4",
|
|
180
|
+
onPrimary: "#FFFFFF",
|
|
181
|
+
onSecondary: "#FFFFFF",
|
|
182
|
+
onBackground: "#111827",
|
|
183
|
+
onSurface: "#374151",
|
|
184
|
+
onError: "#FFFFFF"
|
|
185
|
+
},
|
|
186
|
+
typography: {
|
|
187
|
+
h1: {
|
|
188
|
+
fontSize: "60px",
|
|
189
|
+
fontWeight: 800,
|
|
190
|
+
letterSpacing: "-0.02em"
|
|
191
|
+
},
|
|
192
|
+
h2: {
|
|
193
|
+
fontSize: "48px",
|
|
194
|
+
fontWeight: 700,
|
|
195
|
+
letterSpacing: "-0.01em"
|
|
196
|
+
},
|
|
197
|
+
h3: {
|
|
198
|
+
fontSize: "36px",
|
|
199
|
+
fontWeight: 700
|
|
200
|
+
},
|
|
201
|
+
h4: {
|
|
202
|
+
fontSize: "30px",
|
|
203
|
+
fontWeight: 600
|
|
204
|
+
},
|
|
205
|
+
h5: {
|
|
206
|
+
fontSize: "24px",
|
|
207
|
+
fontWeight: 600
|
|
208
|
+
},
|
|
209
|
+
h6: {
|
|
210
|
+
fontSize: "20px",
|
|
211
|
+
fontWeight: 600
|
|
212
|
+
},
|
|
213
|
+
body: {
|
|
214
|
+
fontSize: "16px",
|
|
215
|
+
fontWeight: 400,
|
|
216
|
+
lineHeight: "1.5"
|
|
217
|
+
},
|
|
218
|
+
caption: {
|
|
219
|
+
fontSize: "14px",
|
|
220
|
+
fontWeight: 400,
|
|
221
|
+
lineHeight: "1.4"
|
|
222
|
+
},
|
|
223
|
+
label: {
|
|
224
|
+
fontSize: "14px",
|
|
225
|
+
fontWeight: 500,
|
|
226
|
+
letterSpacing: "0.01em"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
spacing: {
|
|
230
|
+
xs: "4px",
|
|
231
|
+
sm: "8px",
|
|
232
|
+
md: "16px",
|
|
233
|
+
lg: "24px",
|
|
234
|
+
xl: "32px"
|
|
235
|
+
},
|
|
236
|
+
borderRadius: {
|
|
237
|
+
sm: "6px",
|
|
238
|
+
md: "8px",
|
|
239
|
+
lg: "12px",
|
|
240
|
+
full: "9999px"
|
|
241
|
+
},
|
|
242
|
+
shadows: {
|
|
243
|
+
sm: "0 1px 2px rgba(0,0,0,0.05)",
|
|
244
|
+
md: "0 4px 6px rgba(0,0,0,0.07)",
|
|
245
|
+
lg: "0 10px 15px rgba(0,0,0,0.1)"
|
|
246
|
+
},
|
|
247
|
+
fontFamily: "Inter, system-ui, sans-serif"
|
|
248
|
+
}, s = m(void 0), a = {
|
|
249
|
+
material: l,
|
|
250
|
+
cupertino: S,
|
|
251
|
+
web: d
|
|
252
|
+
};
|
|
253
|
+
function b({
|
|
254
|
+
theme: t = "material",
|
|
255
|
+
children: F
|
|
256
|
+
}) {
|
|
257
|
+
const [n, r] = i(t), [x, f] = i(a[t]);
|
|
258
|
+
p(() => {
|
|
259
|
+
r(t);
|
|
260
|
+
}, [t]), p(() => {
|
|
261
|
+
const o = a[n];
|
|
262
|
+
if (f(o), typeof document < "u") {
|
|
263
|
+
const e = document.documentElement;
|
|
264
|
+
e.classList.remove("fibo-theme-material", "fibo-theme-cupertino", "fibo-theme-web"), e.classList.add(`fibo-theme-${n}`), e.style.setProperty("--fibo-primary", o.colors.primary), e.style.setProperty("--fibo-secondary", o.colors.secondary), e.style.setProperty("--fibo-background", o.colors.background), e.style.setProperty("--fibo-surface", o.colors.surface), e.style.setProperty("--fibo-error", o.colors.error), e.style.setProperty("--fibo-font-family", o.fontFamily);
|
|
265
|
+
}
|
|
266
|
+
}, [n]);
|
|
267
|
+
const c = {
|
|
268
|
+
theme: x,
|
|
269
|
+
themeName: n,
|
|
270
|
+
setTheme: r
|
|
271
|
+
};
|
|
272
|
+
return /* @__PURE__ */ g(s.Provider, { value: c, children: F });
|
|
273
|
+
}
|
|
274
|
+
function z() {
|
|
275
|
+
const t = h(s);
|
|
276
|
+
if (!t)
|
|
277
|
+
throw new Error("useFiboTheme must be used within a FiboThemeProvider");
|
|
278
|
+
return t;
|
|
279
|
+
}
|
|
280
|
+
export {
|
|
281
|
+
b as F,
|
|
282
|
+
S as c,
|
|
283
|
+
l as m,
|
|
284
|
+
z as u,
|
|
285
|
+
d as w
|
|
286
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { B as e } from "./index-DKFr-sai.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-BQGRpkzR.js";
|
|
4
|
+
export {
|
|
5
|
+
i as Banner,
|
|
6
|
+
e as Box,
|
|
7
|
+
o as Card,
|
|
8
|
+
t as Collapse,
|
|
9
|
+
l as Grid,
|
|
10
|
+
d as GridItem,
|
|
11
|
+
B as List,
|
|
12
|
+
T as ListTile,
|
|
13
|
+
m as Table,
|
|
14
|
+
n as Tags
|
|
15
|
+
};
|