fiboui 2.1.0 → 2.2.1
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 +5 -3
- package/dist/{FineGrain-BTgNt7fN.js → FineGrain-uhDvqyeZ.js} +4 -4
- package/dist/Link-ElmaMZB8.js +89 -0
- package/dist/{Router-i6Nc6qVs.js → Router-BwbaHooU.js} +139 -127
- package/dist/builder-KX69ixME.js +2511 -0
- package/dist/content.js +3 -3
- package/dist/core.js +52 -29
- package/dist/{index-CREALegH.js → index-B7jJYOv5.js} +4 -4
- package/dist/{index-C8y7FIYH.js → index-CgPc0zLh.js} +5 -5
- package/dist/{index-OLW4l8s8.js → index-Cud42ieq.js} +317 -308
- package/dist/{index-CWz0hYog.js → index-D0tQrTAU.js} +159 -142
- package/dist/{index-C4xZywsh.js → index-D7exw6yn.js} +116 -113
- package/dist/index-Dj85aIkg.js +104 -0
- package/dist/{index-BaX5zy8O.js → index-hNxXTy6z.js} +3 -3
- package/dist/index.d.ts +1800 -669
- package/dist/index.js +352 -309
- package/dist/interactive.js +1 -1
- package/dist/layout.js +2 -2
- package/dist/mount-DX2mgYvd.js +358 -0
- package/dist/navigation.js +2 -2
- package/dist/{provider-B0eB-Wy7.js → provider-CihtUuRx.js} +48 -32
- package/dist/structure.js +2 -2
- package/dist/style.css +1 -1
- package/dist/theme.js +1 -1
- package/package.json +6 -1
- package/dist/Link-DDzSPY1Q.js +0 -88
- package/dist/builder-6GkZlCaz.js +0 -1894
- package/dist/index-zOfPHD00.js +0 -90
- package/dist/mount-rDUAHuDT.js +0 -95
package/dist/theme.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fiboui",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "A Flutter/SwiftUI-inspired React UI framework with builder pattern and theme system",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -58,9 +58,14 @@
|
|
|
58
58
|
"build:dts": "dts-bundle-generator --no-check --export-referenced-types false --external-imports=@metagptx/css-to-tailwind --external-imports=react --external-imports=react-dom -o dist/index.d.ts src/index.ts",
|
|
59
59
|
"type-check": "tsc --noEmit",
|
|
60
60
|
"test": "vitest run",
|
|
61
|
+
"test:ssr-e2e": "npm run build && npm --prefix examples/ssr-fixtures install && npm --prefix examples/ssr-fixtures run test:e2e",
|
|
61
62
|
"test:watch": "vitest",
|
|
62
63
|
"test:coverage": "vitest run --coverage",
|
|
63
64
|
"lint": "eslint src tests",
|
|
65
|
+
"secret-scan": "bash scripts/secret-scan.sh --dir",
|
|
66
|
+
"secret-scan:git": "bash scripts/secret-scan.sh --git",
|
|
67
|
+
"secret-scan:pack": "bash scripts/secret-scan.sh --pack",
|
|
68
|
+
"prepublishOnly": "bash scripts/secret-scan.sh --pack",
|
|
64
69
|
"docs:dev": "vitepress dev docs",
|
|
65
70
|
"docs:build": "vitepress build docs",
|
|
66
71
|
"docs:preview": "vitepress preview docs"
|
package/dist/Link-DDzSPY1Q.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as d } from "react/jsx-runtime";
|
|
3
|
-
import { createContext as p, useContext as m } from "react";
|
|
4
|
-
const w = p(null);
|
|
5
|
-
function s() {
|
|
6
|
-
const t = m(w);
|
|
7
|
-
if (!t)
|
|
8
|
-
throw new Error("useRouter must be used within a Router");
|
|
9
|
-
return t;
|
|
10
|
-
}
|
|
11
|
-
function y() {
|
|
12
|
-
return m(w);
|
|
13
|
-
}
|
|
14
|
-
function v() {
|
|
15
|
-
const { navigate: t } = s();
|
|
16
|
-
return t;
|
|
17
|
-
}
|
|
18
|
-
function b() {
|
|
19
|
-
const { params: t } = s();
|
|
20
|
-
return t;
|
|
21
|
-
}
|
|
22
|
-
function k() {
|
|
23
|
-
const { query: t } = s();
|
|
24
|
-
return t;
|
|
25
|
-
}
|
|
26
|
-
function L() {
|
|
27
|
-
const { currentPath: t } = s();
|
|
28
|
-
return {
|
|
29
|
-
pathname: t,
|
|
30
|
-
search: typeof window < "u" ? window.location.search : "",
|
|
31
|
-
hash: typeof window < "u" ? window.location.hash : ""
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
const x = ({
|
|
35
|
-
to: t,
|
|
36
|
-
children: u,
|
|
37
|
-
replace: a = !1,
|
|
38
|
-
state: r,
|
|
39
|
-
className: c,
|
|
40
|
-
style: f,
|
|
41
|
-
onClick: o
|
|
42
|
-
}) => {
|
|
43
|
-
const h = v(), e = y(), i = t.startsWith("http") || t.startsWith("//") || t.startsWith("#") ? t : `${(e == null ? void 0 : e.basename) ?? ""}${t}`;
|
|
44
|
-
return /* @__PURE__ */ d(
|
|
45
|
-
"a",
|
|
46
|
-
{
|
|
47
|
-
href: i,
|
|
48
|
-
onClick: (n) => {
|
|
49
|
-
n.ctrlKey || n.metaKey || n.shiftKey || n.button !== 0 || (n.preventDefault(), o && o(n), h(t, { replace: a, state: r }));
|
|
50
|
-
},
|
|
51
|
-
className: c,
|
|
52
|
-
style: f,
|
|
53
|
-
children: u
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
}, N = ({
|
|
57
|
-
to: t,
|
|
58
|
-
children: u,
|
|
59
|
-
className: a = "",
|
|
60
|
-
style: r = {},
|
|
61
|
-
activeClassName: c = "active",
|
|
62
|
-
activeStyle: f = {},
|
|
63
|
-
exact: o = !1,
|
|
64
|
-
...h
|
|
65
|
-
}) => {
|
|
66
|
-
const { currentPath: e } = s(), i = o ? e === t : e.startsWith(t), l = i ? `${a} ${c}`.trim() : a, n = i ? { ...r, ...f } : r;
|
|
67
|
-
return /* @__PURE__ */ d(
|
|
68
|
-
x,
|
|
69
|
-
{
|
|
70
|
-
to: t,
|
|
71
|
-
className: l,
|
|
72
|
-
style: n,
|
|
73
|
-
...h,
|
|
74
|
-
children: u
|
|
75
|
-
}
|
|
76
|
-
);
|
|
77
|
-
};
|
|
78
|
-
export {
|
|
79
|
-
x as L,
|
|
80
|
-
N,
|
|
81
|
-
w as R,
|
|
82
|
-
v as a,
|
|
83
|
-
b,
|
|
84
|
-
L as c,
|
|
85
|
-
k as d,
|
|
86
|
-
y as e,
|
|
87
|
-
s as u
|
|
88
|
-
};
|