fiboui 1.0.1 → 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 -53
- 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 -297
- 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,119 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var m = Object.defineProperty;
|
|
3
|
+
var p = (e, t, s) => t in e ? m(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
4
|
+
var r = (e, t, s) => p(e, typeof t != "symbol" ? t + "" : t, s);
|
|
5
|
+
import o from "react";
|
|
6
|
+
import { h as a, F as u } from "./builder-DjLYXkXu.js";
|
|
7
|
+
class g extends u {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
r(this, "_mainAxisAlignment", "start");
|
|
11
|
+
r(this, "_crossAxisAlignment", "start");
|
|
12
|
+
r(this, "_spacing");
|
|
13
|
+
}
|
|
14
|
+
mainAxisAlignment(s) {
|
|
15
|
+
return this._mainAxisAlignment = s, this;
|
|
16
|
+
}
|
|
17
|
+
crossAxisAlignment(s) {
|
|
18
|
+
return this._crossAxisAlignment = s, this;
|
|
19
|
+
}
|
|
20
|
+
spacing(s) {
|
|
21
|
+
return this._spacing = s, this;
|
|
22
|
+
}
|
|
23
|
+
items(s) {
|
|
24
|
+
return this.children(s), this;
|
|
25
|
+
}
|
|
26
|
+
build() {
|
|
27
|
+
const s = {
|
|
28
|
+
start: "justify-start",
|
|
29
|
+
center: "justify-center",
|
|
30
|
+
end: "justify-end",
|
|
31
|
+
spaceBetween: "justify-between",
|
|
32
|
+
spaceAround: "justify-around",
|
|
33
|
+
spaceEvenly: "justify-evenly"
|
|
34
|
+
}, i = {
|
|
35
|
+
start: "items-start",
|
|
36
|
+
center: "items-center",
|
|
37
|
+
end: "items-end",
|
|
38
|
+
stretch: "items-stretch"
|
|
39
|
+
}, c = [
|
|
40
|
+
"fibo-row",
|
|
41
|
+
"flex",
|
|
42
|
+
"flex-row",
|
|
43
|
+
this.isHug() ? "w-auto self-auto shrink-0" : "w-full self-stretch",
|
|
44
|
+
s[this._mainAxisAlignment],
|
|
45
|
+
i[this._crossAxisAlignment],
|
|
46
|
+
...this._classNames
|
|
47
|
+
], n = this.getStyle();
|
|
48
|
+
this._spacing && (typeof this._spacing == "number" ? n.gap = `${this._spacing}px` : isNaN(Number(this._spacing)) ? n.gap = this._spacing : n.gap = `${Number(this._spacing) * 4}px`);
|
|
49
|
+
const l = c.filter(Boolean).join(" "), h = this.processChildren();
|
|
50
|
+
return o.createElement(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
className: l,
|
|
54
|
+
style: n,
|
|
55
|
+
...this._props
|
|
56
|
+
},
|
|
57
|
+
...h
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
const x = a(g), _ = o.memo((e) => {
|
|
62
|
+
const {
|
|
63
|
+
source: t,
|
|
64
|
+
color: s,
|
|
65
|
+
size: i,
|
|
66
|
+
className: c,
|
|
67
|
+
style: n,
|
|
68
|
+
...l
|
|
69
|
+
} = e;
|
|
70
|
+
return t ? typeof t == "string" ? o.createElement("img", {
|
|
71
|
+
src: t,
|
|
72
|
+
alt: "icon",
|
|
73
|
+
width: i,
|
|
74
|
+
height: i,
|
|
75
|
+
className: c,
|
|
76
|
+
style: { ...n, color: s },
|
|
77
|
+
...l
|
|
78
|
+
}) : o.createElement(t, {
|
|
79
|
+
color: s,
|
|
80
|
+
size: i,
|
|
81
|
+
className: c,
|
|
82
|
+
style: n,
|
|
83
|
+
...l
|
|
84
|
+
}) : null;
|
|
85
|
+
});
|
|
86
|
+
class f extends u {
|
|
87
|
+
constructor(s) {
|
|
88
|
+
super();
|
|
89
|
+
r(this, "_source");
|
|
90
|
+
r(this, "_color", "currentColor");
|
|
91
|
+
r(this, "_size", 24);
|
|
92
|
+
this._source = s;
|
|
93
|
+
}
|
|
94
|
+
source(s) {
|
|
95
|
+
return this._source = s, this;
|
|
96
|
+
}
|
|
97
|
+
color(s) {
|
|
98
|
+
return this._color = s, this;
|
|
99
|
+
}
|
|
100
|
+
size(s) {
|
|
101
|
+
return this._size = s, this;
|
|
102
|
+
}
|
|
103
|
+
build() {
|
|
104
|
+
const i = ["fibo-icon", ...this._classNames].filter(Boolean).join(" "), c = {
|
|
105
|
+
source: this._source,
|
|
106
|
+
color: this._color,
|
|
107
|
+
size: this._size,
|
|
108
|
+
className: i,
|
|
109
|
+
style: this.getStyle(),
|
|
110
|
+
...this._props
|
|
111
|
+
};
|
|
112
|
+
return o.createElement(_, c);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
const b = a(f);
|
|
116
|
+
export {
|
|
117
|
+
b as I,
|
|
118
|
+
x as R
|
|
119
|
+
};
|