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.
Files changed (169) hide show
  1. package/README.md +138 -92
  2. package/dist/FineGrain-kBxv0WeR.js +29 -0
  3. package/dist/Link-DDzSPY1Q.js +88 -0
  4. package/dist/PluginManager-D5-ApsSN.js +111 -0
  5. package/dist/Router-i6Nc6qVs.js +386 -0
  6. package/dist/builder-DjLYXkXu.js +1842 -0
  7. package/dist/bundle-mjs-wppB-TKB.js +2760 -0
  8. package/dist/cli/bin.js +20 -0
  9. package/dist/cli/commands/generate/component.js +67 -0
  10. package/dist/cli/commands/generate/index.js +10 -0
  11. package/dist/cli/commands/generate/module.js +58 -0
  12. package/dist/cli/commands/generate/plugin.js +67 -0
  13. package/dist/cli/commands/init.js +58 -0
  14. package/dist/content.js +17 -0
  15. package/dist/core.js +33 -0
  16. package/dist/{effects-D16XdB_d.mjs → effects-CnevV566.js} +1 -0
  17. package/dist/index-B1av7e36.js +1102 -0
  18. package/dist/index-BQGRpkzR.js +1024 -0
  19. package/dist/index-CTRZRn9S.js +90 -0
  20. package/dist/index-DKFr-sai.js +33 -0
  21. package/dist/index-Dm4j2mMM.js +1031 -0
  22. package/dist/index-RbfIZuAo.js +119 -0
  23. package/dist/index-yeYkDTAx.js +778 -0
  24. package/dist/index.d.ts +43753 -6
  25. package/dist/index.js +2054 -0
  26. package/dist/interactive.js +12 -0
  27. package/dist/layout.js +18 -0
  28. package/dist/mount-sAVX_FBU.js +95 -0
  29. package/dist/navigation.js +13 -0
  30. package/dist/provider-B0eB-Wy7.js +286 -0
  31. package/dist/structure.js +15 -0
  32. package/dist/style.css +1 -1
  33. package/dist/style.js +1 -0
  34. package/dist/theme.js +9 -0
  35. package/package.json +88 -13
  36. package/dist/content/Alert/index.d.ts +0 -878
  37. package/dist/content/Avatar/index.d.ts +0 -886
  38. package/dist/content/Badge/index.d.ts +0 -887
  39. package/dist/content/Image/index.d.ts +0 -893
  40. package/dist/content/Label/index.d.ts +0 -879
  41. package/dist/content/Progress/index.d.ts +0 -898
  42. package/dist/content/Skeleton/index.d.ts +0 -879
  43. package/dist/content/Spinner/index.d.ts +0 -880
  44. package/dist/content/Text/index.d.ts +0 -878
  45. package/dist/content/index.d.ts +0 -9
  46. package/dist/core/StateWrapper.d.ts +0 -31
  47. package/dist/core/builder.d.ts +0 -58
  48. package/dist/core/component.d.ts +0 -7
  49. package/dist/core/effects.d.ts +0 -4
  50. package/dist/core/hooks.d.ts +0 -5
  51. package/dist/core/icons.d.ts +0 -11
  52. package/dist/core/index.d.ts +0 -6
  53. package/dist/core/state.d.ts +0 -86
  54. package/dist/core/types.d.ts +0 -51
  55. package/dist/demo.d.ts +0 -7
  56. package/dist/index.esm.js +0 -4777
  57. package/dist/index.umd.js +0 -251
  58. package/dist/interactive/Button/index.d.ts +0 -897
  59. package/dist/interactive/Checkbox/index.d.ts +0 -884
  60. package/dist/interactive/Combobox/index.d.ts +0 -898
  61. package/dist/interactive/RadioGroup/index.d.ts +0 -888
  62. package/dist/interactive/Select/index.d.ts +0 -895
  63. package/dist/interactive/Switch/index.d.ts +0 -881
  64. package/dist/interactive/TextField/index.d.ts +0 -893
  65. package/dist/interactive/Textarea/index.d.ts +0 -890
  66. package/dist/interactive/index.d.ts +0 -8
  67. package/dist/layout/Center/index.d.ts +0 -869
  68. package/dist/layout/Column/index.d.ts +0 -881
  69. package/dist/layout/Container/index.d.ts +0 -870
  70. package/dist/layout/DashboardLayout/index.d.ts +0 -870
  71. package/dist/layout/Header/index.d.ts +0 -870
  72. package/dist/layout/Line/index.d.ts +0 -872
  73. package/dist/layout/Row/index.d.ts +0 -879
  74. package/dist/layout/Scaffold/index.d.ts +0 -878
  75. package/dist/layout/ScrollView/index.d.ts +0 -879
  76. package/dist/layout/Sidebar/index.d.ts +0 -870
  77. package/dist/layout/Spacer/index.d.ts +0 -875
  78. package/dist/layout/StakentComponents.d.ts +0 -4
  79. package/dist/layout/index.d.ts +0 -11
  80. package/dist/structure/Banner/index.d.ts +0 -879
  81. package/dist/structure/Box/index.d.ts +0 -869
  82. package/dist/structure/Card/index.d.ts +0 -881
  83. package/dist/structure/Collapse/index.d.ts +0 -884
  84. package/dist/structure/Grid/index.d.ts +0 -1757
  85. package/dist/structure/List/index.d.ts +0 -888
  86. package/dist/structure/Table/index.d.ts +0 -895
  87. package/dist/structure/Tags/index.d.ts +0 -876
  88. package/dist/structure/cards/AssetCard/index.d.ts +0 -884
  89. package/dist/structure/cards/CollectionCard/index.d.ts +0 -880
  90. package/dist/structure/cards/ContentCard/index.d.ts +0 -884
  91. package/dist/structure/cards/ProfileCard/index.d.ts +0 -892
  92. package/dist/structure/cards/index.d.ts +0 -5
  93. package/dist/structure/cards/variants/index.d.ts +0 -3490
  94. package/dist/structure/index.d.ts +0 -9
  95. package/dist/theme/cupertino.d.ts +0 -3
  96. package/dist/theme/index.d.ts +0 -5
  97. package/dist/theme/material.d.ts +0 -3
  98. package/dist/theme/provider.d.ts +0 -16
  99. package/dist/theme/types.d.ts +0 -57
  100. package/dist/theme/web.d.ts +0 -3
  101. package/src/content/Alert/index.ts +0 -110
  102. package/src/content/Avatar/index.ts +0 -116
  103. package/src/content/Badge/index.ts +0 -162
  104. package/src/content/Image/index.ts +0 -137
  105. package/src/content/Label/index.ts +0 -66
  106. package/src/content/Progress/index.ts +0 -378
  107. package/src/content/Skeleton/index.ts +0 -71
  108. package/src/content/Spinner/index.ts +0 -139
  109. package/src/content/Text/index.ts +0 -74
  110. package/src/content/index.ts +0 -9
  111. package/src/core/StateWrapper.tsx +0 -131
  112. package/src/core/builder.ts +0 -301
  113. package/src/core/component.ts +0 -49
  114. package/src/core/effects.ts +0 -27
  115. package/src/core/hooks.ts +0 -48
  116. package/src/core/icons.tsx +0 -57
  117. package/src/core/index.ts +0 -6
  118. package/src/core/state.ts +0 -297
  119. package/src/core/types.ts +0 -62
  120. package/src/demo.tsx +0 -1050
  121. package/src/index.ts +0 -8
  122. package/src/interactive/Button/index.ts +0 -219
  123. package/src/interactive/Checkbox/index.ts +0 -145
  124. package/src/interactive/Combobox/index.ts +0 -278
  125. package/src/interactive/RadioGroup/index.ts +0 -124
  126. package/src/interactive/Select/index.ts +0 -227
  127. package/src/interactive/Switch/index.ts +0 -123
  128. package/src/interactive/TextField/index.ts +0 -223
  129. package/src/interactive/Textarea/index.ts +0 -129
  130. package/src/interactive/index.ts +0 -8
  131. package/src/layout/Center/index.ts +0 -34
  132. package/src/layout/Column/index.ts +0 -101
  133. package/src/layout/Container/index.ts +0 -28
  134. package/src/layout/DashboardLayout/index.ts +0 -106
  135. package/src/layout/Header/index.ts +0 -50
  136. package/src/layout/Line/index.ts +0 -41
  137. package/src/layout/Row/index.ts +0 -93
  138. package/src/layout/Scaffold/index.ts +0 -133
  139. package/src/layout/ScrollView/index.ts +0 -67
  140. package/src/layout/Sidebar/index.ts +0 -56
  141. package/src/layout/Spacer/index.ts +0 -46
  142. package/src/layout/StakentComponents.tsx +0 -57
  143. package/src/layout/index.ts +0 -11
  144. package/src/structure/Banner/index.ts +0 -92
  145. package/src/structure/Box/index.ts +0 -46
  146. package/src/structure/Card/index.ts +0 -113
  147. package/src/structure/Collapse/index.ts +0 -122
  148. package/src/structure/Grid/index.ts +0 -197
  149. package/src/structure/List/index.ts +0 -185
  150. package/src/structure/Table/index.ts +0 -165
  151. package/src/structure/Tags/index.ts +0 -69
  152. package/src/structure/cards/AssetCard/index.ts +0 -158
  153. package/src/structure/cards/CollectionCard/index.ts +0 -95
  154. package/src/structure/cards/ContentCard/index.ts +0 -127
  155. package/src/structure/cards/ProfileCard/index.ts +0 -152
  156. package/src/structure/cards/index.ts +0 -5
  157. package/src/structure/cards/variants/index.ts +0 -301
  158. package/src/structure/index.ts +0 -10
  159. package/src/styles/base.css +0 -186
  160. package/src/styles/core.css +0 -52
  161. package/src/styles/themes/cupertino.css +0 -197
  162. package/src/styles/themes/material.css +0 -322
  163. package/src/styles/themes/web.css +0 -196
  164. package/src/theme/cupertino.ts +0 -85
  165. package/src/theme/index.ts +0 -5
  166. package/src/theme/material.ts +0 -86
  167. package/src/theme/provider.tsx +0 -76
  168. package/src/theme/types.ts +0 -62
  169. package/src/theme/web.ts +0 -82
@@ -0,0 +1,1031 @@
1
+ "use client";
2
+ var U = Object.defineProperty;
3
+ var G = (n, s, e) => s in n ? U(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e;
4
+ var r = (n, s, e) => G(n, typeof s != "symbol" ? s + "" : s, e);
5
+ import t from "react";
6
+ import { h as C, F } from "./builder-DjLYXkXu.js";
7
+ import { B as j } from "./index-DKFr-sai.js";
8
+ import { T as O } from "./index-CTRZRn9S.js";
9
+ import { R as J } from "./index-RbfIZuAo.js";
10
+ import { jsxs as $, jsx as f } from "react/jsx-runtime";
11
+ const K = ({ size: n }) => t.createElement(
12
+ "svg",
13
+ {
14
+ width: n,
15
+ height: n,
16
+ viewBox: "0 0 24 24",
17
+ "aria-hidden": !0,
18
+ className: "fibo-avatar-user"
19
+ },
20
+ t.createElement("circle", { cx: 12, cy: 12, r: 12, fill: "#f2f2f2" }),
21
+ t.createElement("circle", { cx: 12, cy: 9.4, r: 3.6, fill: "#6a6a6a" }),
22
+ t.createElement("path", {
23
+ d: "M5.6 19.2c.9-3.1 3.4-5 6.4-5s5.5 1.9 6.4 5C16.6 20.6 14.4 21.4 12 21.4s-4.6-.8-6.4-2.2z",
24
+ fill: "#6a6a6a"
25
+ })
26
+ ), Q = t.memo((n) => {
27
+ const { image: s, size: e, border: a, shape: i, status: o, initials: h, icon: d, className: y, style: p } = n, c = typeof e == "number" ? `${e}px` : e, u = typeof e == "number" ? e : 40, B = {
28
+ circle: "50%",
29
+ rounded: "24%",
30
+ square: "0"
31
+ }, S = {
32
+ none: "transparent",
33
+ online: "#10B981",
34
+ offline: "#9CA3AF",
35
+ busy: "#EF4444"
36
+ }, A = o !== "none" ? j().style({
37
+ position: "absolute",
38
+ bottom: "-2%",
39
+ right: "-2%",
40
+ width: "28%",
41
+ height: "28%",
42
+ minWidth: "10px",
43
+ minHeight: "10px",
44
+ backgroundColor: S[o],
45
+ borderRadius: "50%",
46
+ border: "3px solid #ffffff",
47
+ boxSizing: "content-box"
48
+ }).build() : null, k = s ? null : h ? String(h).slice(0, 2).toUpperCase() : d === "user" ? t.createElement(K, { size: c }) : d || null;
49
+ return j().className(`fibo-avatar ${y || ""}`).style({
50
+ position: "relative",
51
+ width: c,
52
+ height: c,
53
+ borderRadius: B[i],
54
+ backgroundImage: s ? `url(${s})` : void 0,
55
+ backgroundColor: s ? void 0 : (p == null ? void 0 : p.backgroundColor) || (h ? "#ddd" : "transparent"),
56
+ backgroundSize: "cover",
57
+ backgroundPosition: "center",
58
+ border: a,
59
+ boxShadow: a !== "none" ? "0 2px 8px rgba(0,0,0,0.05)" : "none",
60
+ display: "flex",
61
+ alignItems: "center",
62
+ justifyContent: "center",
63
+ overflow: "hidden",
64
+ color: (p == null ? void 0 : p.color) || "#555",
65
+ fontSize: u * 0.42,
66
+ fontWeight: 500,
67
+ lineHeight: 1,
68
+ ...p
69
+ }).children([k, A]).build();
70
+ });
71
+ class X extends F {
72
+ constructor() {
73
+ super(...arguments);
74
+ r(this, "_image", "");
75
+ r(this, "_size", 40);
76
+ r(this, "_border", "none");
77
+ r(this, "_shape", "circle");
78
+ r(this, "_status", "none");
79
+ r(this, "_initials");
80
+ r(this, "_icon");
81
+ }
82
+ image(e) {
83
+ return this._image = e, this;
84
+ }
85
+ size(e) {
86
+ return this._size = e, this;
87
+ }
88
+ border(e) {
89
+ return this._border = e, this;
90
+ }
91
+ shape(e) {
92
+ return this._shape = e, this;
93
+ }
94
+ status(e) {
95
+ return this._status = e, this;
96
+ }
97
+ initials(e) {
98
+ return this._initials = e, this;
99
+ }
100
+ icon(e = "user") {
101
+ return this._icon = e, this;
102
+ }
103
+ build() {
104
+ const e = {
105
+ image: this._image,
106
+ size: this._size,
107
+ border: this._border,
108
+ shape: this._shape,
109
+ status: this._status,
110
+ initials: this._initials,
111
+ icon: this._icon,
112
+ className: this.getClassName(),
113
+ style: this.getStyle()
114
+ };
115
+ return t.createElement(Q, e);
116
+ }
117
+ }
118
+ const ve = C(X), Y = t.memo((n) => {
119
+ const { text: s, icon: e, variant: a, intent: i, shape: o, className: h, style: d } = n, y = {
120
+ none: { bg: "#F9FAFB", text: "#6B7280", border: "#E5E7EB" },
121
+ success: { bg: "#ECFDF5", text: "#059669", border: "transparent" },
122
+ warning: { bg: "#FFFBEB", text: "#D97706", border: "transparent" },
123
+ error: { bg: "#FFF1F2", text: "#E11D48", border: "transparent" },
124
+ info: { bg: "#EFF6FF", text: "#2563EB", border: "transparent" }
125
+ };
126
+ let c = { ...{
127
+ neutral: { backgroundColor: "#F9FAFB", color: "#6B7280", border: "1px solid #E5E7EB" },
128
+ accent: { backgroundColor: "#EFF6FF", color: "#3B82F6", border: "none" },
129
+ outline: { backgroundColor: "transparent", color: "#FFFFFF", border: "1px solid rgba(255,255,255,0.3)" },
130
+ glass: {
131
+ backgroundColor: "rgba(255, 255, 255, 0.85)",
132
+ backdropFilter: "blur(12px)",
133
+ color: "#111827",
134
+ border: "1px solid rgba(255, 255, 255, 0.4)"
135
+ },
136
+ solid: { backgroundColor: "#111827", color: "#FFFFFF", border: "none" },
137
+ dot: { backgroundColor: "transparent", color: "#6B7280", border: "1px solid #E5E7EB", padding: "4px 10px" }
138
+ }[a] };
139
+ if (i !== "none") {
140
+ const B = y[i];
141
+ if (a === "solid") {
142
+ const S = {
143
+ none: "#111827",
144
+ success: "#059669",
145
+ warning: "#D97706",
146
+ error: "#E11D48",
147
+ info: "#2563EB"
148
+ };
149
+ c.backgroundColor = S[i], c.color = "#FFFFFF";
150
+ } else a === "dot" ? (c.color = "#374151", c.borderColor = "#E5E7EB") : (c.backgroundColor = B.bg, c.color = B.text, B.border ? c.border = `1px solid ${B.border}` : c.border = "none");
151
+ }
152
+ const u = {
153
+ pill: "9999px",
154
+ rounded: "8px"
155
+ };
156
+ return j().className(h).style({
157
+ ...c,
158
+ borderRadius: u[o],
159
+ padding: a === "dot" ? "4px 8px" : "4px 10px",
160
+ display: "inline-flex",
161
+ alignItems: "center",
162
+ justifyContent: "center",
163
+ height: "fit-content",
164
+ fontSize: "11px",
165
+ lineHeight: "1",
166
+ fontWeight: 600,
167
+ ...d
168
+ }).children(
169
+ J().gap(6).alignItems("center").children([
170
+ a === "dot" && i !== "none" ? j().style({
171
+ width: "6px",
172
+ height: "6px",
173
+ borderRadius: "50%",
174
+ backgroundColor: y[i].text,
175
+ boxShadow: `0 0 6px ${y[i].text}66`
176
+ }).build() : null,
177
+ e ? j().classNames(["flex", "items-center"]).children(e).build() : null,
178
+ O(s).fontSize(12).fontWeight(600).style({ color: "inherit" }).build()
179
+ ]).build()
180
+ ).build();
181
+ });
182
+ class Z extends F {
183
+ constructor() {
184
+ super(...arguments);
185
+ r(this, "_text", "");
186
+ r(this, "_icon");
187
+ r(this, "_variant", "neutral");
188
+ r(this, "_intent", "none");
189
+ r(this, "_shape", "rounded");
190
+ }
191
+ text(e) {
192
+ return this._text = e, this;
193
+ }
194
+ icon(e) {
195
+ return this._icon = e, this;
196
+ }
197
+ variant(e) {
198
+ return this._variant = e, this;
199
+ }
200
+ intent(e) {
201
+ return this._intent = e, this;
202
+ }
203
+ shape(e) {
204
+ return this._shape = e, this;
205
+ }
206
+ build() {
207
+ const e = {
208
+ text: this._text,
209
+ icon: this._icon,
210
+ variant: this._variant,
211
+ intent: this._intent,
212
+ shape: this._shape,
213
+ className: this.getClassName(),
214
+ style: this.getStyle()
215
+ };
216
+ return t.createElement(Y, e);
217
+ }
218
+ }
219
+ const ke = C(Z), ee = t.memo((n) => {
220
+ const { text: s, htmlFor: e, required: a, className: i, style: o, ...h } = n;
221
+ return t.createElement(
222
+ "label",
223
+ {
224
+ className: `fibo-label text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 ${i}`,
225
+ htmlFor: e,
226
+ style: o,
227
+ ...h
228
+ },
229
+ s,
230
+ a && t.createElement("span", { className: "text-red-500 ml-0.5" }, "*")
231
+ );
232
+ });
233
+ class te extends F {
234
+ constructor(e = "") {
235
+ super();
236
+ r(this, "_text", "");
237
+ r(this, "_htmlFor");
238
+ r(this, "_required", !1);
239
+ this._text = e;
240
+ }
241
+ text(e) {
242
+ return this._text = e, this;
243
+ }
244
+ htmlFor(e) {
245
+ return this._htmlFor = e, this;
246
+ }
247
+ required(e = !0) {
248
+ return this._required = e, this;
249
+ }
250
+ build() {
251
+ const e = {
252
+ text: this._text,
253
+ htmlFor: this._htmlFor,
254
+ required: this._required,
255
+ className: this.getClassName(),
256
+ style: this.getStyle(),
257
+ ...this._props
258
+ };
259
+ return t.createElement(ee, e);
260
+ }
261
+ }
262
+ const Ee = C(te), re = t.memo((n) => {
263
+ const {
264
+ src: s,
265
+ alt: e,
266
+ fit: a,
267
+ resizable: i,
268
+ clipShape: o,
269
+ frameWidth: h,
270
+ frameHeight: d,
271
+ className: y,
272
+ style: p,
273
+ ...c
274
+ } = n, u = { ...p };
275
+ return u.objectFit = a, h && (u.width = `${h}px`), d && (u.height = `${d}px`), i && (u.maxWidth = "100%", u.height = "auto"), t.createElement("img", {
276
+ src: s,
277
+ alt: e,
278
+ className: y,
279
+ style: u,
280
+ ...c
281
+ });
282
+ });
283
+ class se extends F {
284
+ constructor(e = "") {
285
+ super();
286
+ r(this, "_src", "");
287
+ r(this, "_alt", "");
288
+ r(this, "_fit", "cover");
289
+ r(this, "_resizable", !1);
290
+ r(this, "_clipShape");
291
+ r(this, "_frameWidth");
292
+ r(this, "_frameHeight");
293
+ r(this, "_foregroundStyle");
294
+ this._src = e;
295
+ }
296
+ src(e) {
297
+ return this._src = e, this;
298
+ }
299
+ alt(e) {
300
+ return this._alt = e, this;
301
+ }
302
+ resizable() {
303
+ return this._resizable = !0, this;
304
+ }
305
+ scaledToFit() {
306
+ return this._fit = "contain", this;
307
+ }
308
+ scaledToFill() {
309
+ return this._fit = "cover", this;
310
+ }
311
+ frame(e) {
312
+ return this._frameWidth = e.width, this._frameHeight = e.height, this;
313
+ }
314
+ clipShape(e) {
315
+ return this._clipShape = e, this;
316
+ }
317
+ foregroundStyle(e) {
318
+ return this._foregroundStyle = e, this;
319
+ }
320
+ build() {
321
+ const e = ["fibo-image", ...this._classNames];
322
+ this._clipShape === "circle" ? e.push("rounded-full") : this._clipShape === "rounded" && e.push("rounded-lg");
323
+ const a = e.filter(Boolean).join(" "), i = this.getStyle();
324
+ this._foregroundStyle && (i.color = this._foregroundStyle);
325
+ const o = {
326
+ src: this._src,
327
+ alt: this._alt,
328
+ fit: this._fit,
329
+ resizable: this._resizable,
330
+ clipShape: this._clipShape,
331
+ frameWidth: this._frameWidth,
332
+ frameHeight: this._frameHeight,
333
+ className: a,
334
+ style: i,
335
+ ...this._props
336
+ };
337
+ return t.createElement(re, o);
338
+ }
339
+ }
340
+ const we = C(se), ne = t.memo((n) => {
341
+ const { size: s, color: e, variant: a = "circle", className: i, style: o, ...h } = n, y = typeof s == "number" ? s : {
342
+ sm: 16,
343
+ md: 24,
344
+ lg: 32,
345
+ xl: 48
346
+ }[s] || 24, p = e || "currentColor", c = {
347
+ className: `fibo-spinner ${i}`,
348
+ style: { width: y, height: y, ...o },
349
+ role: "status",
350
+ "aria-live": "polite",
351
+ "aria-label": n["aria-label"] || "Loading",
352
+ ...h
353
+ };
354
+ return a === "dots" ? t.createElement(
355
+ "div",
356
+ { ...c, className: `${c.className} flex items-center justify-between` },
357
+ [0, 1, 2].map((u) => t.createElement("div", {
358
+ key: u,
359
+ className: "w-[25%] h-[25%] rounded-full animate-bounce",
360
+ style: {
361
+ backgroundColor: p,
362
+ animationDelay: `${u * 0.1}s`
363
+ }
364
+ }))
365
+ ) : a === "pulse" ? t.createElement(
366
+ "div",
367
+ { ...c, className: `${c.className} relative flex items-center justify-center` },
368
+ [
369
+ t.createElement("div", {
370
+ key: "ring",
371
+ className: "absolute inset-0 rounded-full opacity-75 animate-ping",
372
+ style: { backgroundColor: p }
373
+ }),
374
+ t.createElement("div", {
375
+ key: "dot",
376
+ className: "relative rounded-full h-[75%] w-[75%]",
377
+ style: { backgroundColor: p }
378
+ })
379
+ ]
380
+ ) : a === "blocks" ? t.createElement(
381
+ "div",
382
+ { ...c, className: `${c.className} grid grid-cols-2 gap-[10%] p-[10%]` },
383
+ [0, 1, 2, 3].map((u) => t.createElement("div", {
384
+ key: u,
385
+ className: "w-full h-full bg-current animate-pulse",
386
+ style: {
387
+ backgroundColor: p,
388
+ animationDelay: `${u * 0.15}s`,
389
+ opacity: 0.6
390
+ }
391
+ }))
392
+ ) : t.createElement(
393
+ "div",
394
+ { ...c, className: `${c.className} animate-spin` },
395
+ t.createElement(
396
+ "svg",
397
+ {
398
+ xmlns: "http://www.w3.org/2000/svg",
399
+ fill: "none",
400
+ viewBox: "0 0 24 24",
401
+ style: { width: "100%", height: "100%" }
402
+ },
403
+ t.createElement("circle", {
404
+ className: "opacity-20",
405
+ cx: "12",
406
+ cy: "12",
407
+ r: "10",
408
+ stroke: p,
409
+ strokeWidth: "4"
410
+ }),
411
+ t.createElement("path", {
412
+ className: "",
413
+ fill: p,
414
+ d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
415
+ })
416
+ )
417
+ );
418
+ });
419
+ class ae extends F {
420
+ constructor() {
421
+ super(...arguments);
422
+ r(this, "_size", "md");
423
+ r(this, "_color");
424
+ r(this, "_variant", "circle");
425
+ }
426
+ size(e) {
427
+ return this._size = e, this;
428
+ }
429
+ color(e) {
430
+ return this._color = e, this;
431
+ }
432
+ variant(e) {
433
+ return this._variant = e, this;
434
+ }
435
+ build() {
436
+ const e = {
437
+ size: this._size,
438
+ color: this._color,
439
+ variant: this._variant,
440
+ className: this.getClassName(),
441
+ style: this.getStyle(),
442
+ ...this._props
443
+ };
444
+ return t.createElement(ne, e);
445
+ }
446
+ }
447
+ const Ne = C(ae), ie = t.memo((n) => {
448
+ const { width: s, height: e, shape: a, className: i, style: o, ...h } = n, d = ["animate-pulse", "bg-gray-200", "loading-skeleton"];
449
+ return a === "circle" ? d.push("rounded-full") : a === "rounded-sm" ? d.push("rounded-sm") : a === "rounded-md" ? d.push("rounded-md") : a === "rounded-lg" ? d.push("rounded-lg") : a === "square" ? d.push("rounded-none") : d.push("rounded"), t.createElement("div", {
450
+ className: [...d, i].filter(Boolean).join(" "),
451
+ role: "status",
452
+ "aria-live": "polite",
453
+ "aria-label": h["aria-label"] || "Loading",
454
+ style: {
455
+ width: s,
456
+ height: e,
457
+ ...o
458
+ },
459
+ ...h
460
+ });
461
+ });
462
+ class le extends F {
463
+ constructor() {
464
+ super(...arguments);
465
+ r(this, "_width", "100%");
466
+ r(this, "_height", "20px");
467
+ r(this, "_shape", "rounded");
468
+ }
469
+ width(e) {
470
+ return this._width = e, this;
471
+ }
472
+ height(e) {
473
+ return this._height = e, this;
474
+ }
475
+ shape(e) {
476
+ return this._shape = e, this;
477
+ }
478
+ build() {
479
+ const e = {
480
+ width: this._width,
481
+ height: this._height,
482
+ shape: this._shape,
483
+ className: this.getClassName(),
484
+ style: this.getStyle(),
485
+ ...this._props
486
+ };
487
+ return t.createElement(ie, e);
488
+ }
489
+ }
490
+ const Ce = C(le), M = {
491
+ Heart: /* @__PURE__ */ f("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ f("path", { d: "M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z" }) }),
492
+ Eth: /* @__PURE__ */ f("svg", { width: "14", height: "24", viewBox: "0 0 32 32", fill: "currentColor", children: /* @__PURE__ */ f("path", { d: "M15.925 23.96l-9.815-5.8 9.815 13.84 9.825-13.84-9.825 5.8zm0-23.96l-9.815 16.275 9.815 5.675 9.825-5.675-9.825-16.275zm0 20.3l-8.915-5.265 8.915-12.42 8.925 12.42-8.925 5.265z" }) }),
493
+ Verify: /* @__PURE__ */ f("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "#3B82F6", stroke: "none", children: /* @__PURE__ */ f("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }) }),
494
+ More: /* @__PURE__ */ $("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
495
+ /* @__PURE__ */ f("circle", { cx: "12", cy: "12", r: "1" }),
496
+ /* @__PURE__ */ f("circle", { cx: "19", cy: "12", r: "1" }),
497
+ /* @__PURE__ */ f("circle", { cx: "5", cy: "12", r: "1" })
498
+ ] }),
499
+ Clock: /* @__PURE__ */ $("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
500
+ /* @__PURE__ */ f("circle", { cx: "12", cy: "12", r: "10" }),
501
+ /* @__PURE__ */ f("polyline", { points: "12 6 12 12 16 14" })
502
+ ] }),
503
+ Info: /* @__PURE__ */ $("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
504
+ /* @__PURE__ */ f("circle", { cx: "12", cy: "12", r: "10" }),
505
+ /* @__PURE__ */ f("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
506
+ /* @__PURE__ */ f("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })
507
+ ] }),
508
+ Check: /* @__PURE__ */ $("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
509
+ /* @__PURE__ */ f("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
510
+ /* @__PURE__ */ f("polyline", { points: "22 4 12 14.01 9 11.01" })
511
+ ] }),
512
+ Search: /* @__PURE__ */ $("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
513
+ /* @__PURE__ */ f("circle", { cx: "11", cy: "11", r: "8" }),
514
+ /* @__PURE__ */ f("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
515
+ ] }),
516
+ Close: /* @__PURE__ */ $("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
517
+ /* @__PURE__ */ f("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
518
+ /* @__PURE__ */ f("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
519
+ ] })
520
+ }, oe = t.memo((n) => {
521
+ const { title: s, description: e, intent: a = "info", className: i, style: o, ...h } = n, d = a, y = {
522
+ info: "bg-blue-500 text-white",
523
+ success: "bg-emerald-500 text-white",
524
+ warning: "bg-orange-400 text-white",
525
+ error: "bg-rose-500 text-white"
526
+ }, p = {
527
+ info: "bg-blue-600",
528
+ success: "bg-emerald-600",
529
+ warning: "bg-orange-500",
530
+ error: "bg-rose-600"
531
+ }, c = {
532
+ info: M.Info || t.createElement("span", {}, "?"),
533
+ success: M.Check || t.createElement("span", {}, "✔"),
534
+ warning: M.Search || t.createElement("span", {}, "!"),
535
+ error: M.Close || t.createElement("span", {}, "x")
536
+ }, u = `relative overflow-hidden flex items-start gap-4 p-5 rounded-3xl shadow-lg border-none ${y[d]}`;
537
+ return t.createElement("div", {
538
+ className: `${u} ${i}`,
539
+ style: o,
540
+ ...h
541
+ }, [
542
+ t.createElement("div", {
543
+ key: "blob1",
544
+ className: "absolute -top-6 -right-6 w-24 h-24 rounded-full bg-white opacity-10 pointer-events-none"
545
+ }),
546
+ t.createElement("div", {
547
+ key: "blob2",
548
+ className: "absolute bottom-[-10px] left-10 w-12 h-12 rounded-full bg-black opacity-5 pointer-events-none"
549
+ }),
550
+ t.createElement("div", {
551
+ key: "blob3",
552
+ className: "absolute top-10 right-20 w-8 h-8 rounded-full bg-white opacity-10 pointer-events-none"
553
+ }),
554
+ t.createElement("div", {
555
+ key: "icon-wrapper",
556
+ className: `relative z-10 shrink-0 w-10 h-10 rounded-full flex items-center justify-center shadow-sm ${p[d]}`
557
+ }, t.cloneElement(c[d], { width: 20, height: 20, strokeWidth: 3 })),
558
+ t.createElement("div", { key: "content", className: "relative z-10 flex flex-col gap-1.5 pt-0.5" }, [
559
+ s && t.createElement("h5", { key: "title", className: "font-bold text-lg leading-none tracking-tight" }, s),
560
+ e && t.createElement("p", { key: "desc", className: "text-sm font-medium opacity-90 leading-relaxed" }, e)
561
+ ])
562
+ ]);
563
+ });
564
+ class ce extends F {
565
+ constructor() {
566
+ super(...arguments);
567
+ r(this, "_title", "");
568
+ r(this, "_description");
569
+ r(this, "_intent", "info");
570
+ }
571
+ title(e) {
572
+ return this._title = e, this;
573
+ }
574
+ description(e) {
575
+ return this._description = e, this;
576
+ }
577
+ intent(e) {
578
+ return this._intent = e, this;
579
+ }
580
+ build() {
581
+ const e = {
582
+ title: this._title,
583
+ description: this._description,
584
+ intent: this._intent,
585
+ className: this.getClassName(),
586
+ style: this.getStyle(),
587
+ ...this._props
588
+ };
589
+ return t.createElement(oe, e);
590
+ }
591
+ }
592
+ const Fe = C(ce), he = t.memo((n) => {
593
+ const {
594
+ value: s,
595
+ max: e,
596
+ color: a,
597
+ height: i,
598
+ variant: o = "default",
599
+ label: h,
600
+ subLabel: d,
601
+ items: y = [],
602
+ size: p,
603
+ strokeWidth: c,
604
+ segments: u,
605
+ gap: B,
606
+ trackColor: S,
607
+ children: A,
608
+ className: k,
609
+ style: w,
610
+ ...N
611
+ } = n, _ = Math.min(100, Math.max(0, s / e * 100)), v = a || "#3B82F6";
612
+ if (o === "ring") {
613
+ const m = p ?? (typeof i == "number" ? i : 190), g = c ?? 2.4, x = Array.isArray(u) && u.length ? u : [{ value: _, color: v }], l = B ?? (x.length > 1 ? 5e-3 : 0), b = 88, E = 2 * Math.PI * b, I = x.reduce((L, D) => L + D.value, 0) || 1;
614
+ let z = 0;
615
+ const W = [];
616
+ return S && W.push(t.createElement("circle", {
617
+ key: "track",
618
+ cx: 100,
619
+ cy: 100,
620
+ r: b,
621
+ stroke: S,
622
+ strokeWidth: g,
623
+ fill: "none"
624
+ })), x.forEach((L, D) => {
625
+ const H = L.value / I, T = Math.max(0, H * E - l * E);
626
+ W.push(t.createElement("circle", {
627
+ key: `seg-${D}`,
628
+ cx: 100,
629
+ cy: 100,
630
+ r: b,
631
+ stroke: L.color,
632
+ strokeWidth: L.strokeWidth ?? g,
633
+ fill: "none",
634
+ strokeDasharray: `${T} ${E}`,
635
+ strokeDashoffset: -z,
636
+ transform: "rotate(-90 100 100)",
637
+ style: { transition: "all .4s" }
638
+ })), z += H * E;
639
+ }), t.createElement("div", {
640
+ className: `fibo-progress-ring relative inline-flex items-center justify-center ${k || ""}`,
641
+ style: { width: m, height: m, ...w },
642
+ role: "progressbar",
643
+ "aria-valuenow": s,
644
+ "aria-valuemin": 0,
645
+ "aria-valuemax": e,
646
+ "aria-label": h || "Progress",
647
+ ...N
648
+ }, [
649
+ t.createElement("svg", {
650
+ key: "svg",
651
+ width: m,
652
+ height: m,
653
+ viewBox: "0 0 200 200",
654
+ "aria-hidden": !0
655
+ }, W),
656
+ A ? t.createElement("div", {
657
+ key: "center",
658
+ className: "absolute inset-0 flex flex-col items-center justify-center"
659
+ }, A) : null
660
+ ]);
661
+ }
662
+ if (o === "circular") {
663
+ const m = typeof i == "number" ? i : 64, g = 8, x = (m - g) / 2, l = x * 2 * Math.PI, b = l - _ / 100 * l;
664
+ return t.createElement("div", {
665
+ className: `relative inline-flex items-center justify-center ${k}`,
666
+ style: { width: m, height: m, ...w },
667
+ role: "progressbar",
668
+ "aria-valuenow": s,
669
+ "aria-valuemin": 0,
670
+ "aria-valuemax": e,
671
+ "aria-label": h || "Progress",
672
+ ...N
673
+ }, [
674
+ t.createElement("svg", {
675
+ key: "svg",
676
+ className: "transform -rotate-90",
677
+ width: m,
678
+ height: m
679
+ }, [
680
+ t.createElement("circle", {
681
+ key: "track",
682
+ className: "text-gray-100",
683
+ stroke: "currentColor",
684
+ strokeWidth: g,
685
+ fill: "transparent",
686
+ r: x,
687
+ cx: m / 2,
688
+ cy: m / 2
689
+ }),
690
+ t.createElement("circle", {
691
+ key: "prog",
692
+ stroke: v,
693
+ strokeWidth: g,
694
+ strokeDasharray: l,
695
+ strokeDashoffset: b,
696
+ strokeLinecap: "round",
697
+ fill: "transparent",
698
+ r: x,
699
+ cx: m / 2,
700
+ cy: m / 2,
701
+ className: "transition-all duration-1000 ease-out"
702
+ })
703
+ ]),
704
+ t.createElement("span", {
705
+ key: "label",
706
+ className: "absolute text-sm font-bold text-gray-700"
707
+ }, h || `${Math.round(_)}%`)
708
+ ]);
709
+ }
710
+ if (o === "pagination") {
711
+ const g = Math.floor(_ / 100 * 5);
712
+ return t.createElement("div", {
713
+ className: `flex items-center gap-2 ${k}`,
714
+ style: w,
715
+ ...N
716
+ }, Array.from({ length: 5 }).map((x, l) => {
717
+ const b = l === g;
718
+ return t.createElement("div", {
719
+ key: l,
720
+ className: `h-3 rounded-full transition-all duration-300 ${b ? "w-8" : "w-3"}`,
721
+ style: { backgroundColor: l <= g ? v : "#E5E7EB" }
722
+ });
723
+ }));
724
+ }
725
+ if (o === "timeline") {
726
+ const m = y.length ? y : [
727
+ { title: "Order components", date: "Done" },
728
+ { title: "Draft implementation", date: "In Progress" },
729
+ { title: "Verify functionality", date: "Pending" }
730
+ ], g = Math.floor(_ / 100 * m.length);
731
+ return t.createElement("div", {
732
+ className: `flex flex-col relative ${k}`,
733
+ style: w,
734
+ ...N
735
+ }, m.map((x, l) => {
736
+ const b = l < g, E = l === g, I = l === m.length - 1, z = b || E ? v : "#E5E7EB", W = b ? t.createElement("span", {}, "✓") : l + 1;
737
+ return t.createElement("div", {
738
+ key: l,
739
+ className: "relative flex items-start gap-4 pb-8 last:pb-0"
740
+ }, [
741
+ !I && t.createElement("div", {
742
+ key: "tail",
743
+ className: "absolute left-[19px] top-10 bottom-0 w-0.5 transition-colors duration-500",
744
+ style: { backgroundColor: b ? v : "#E5E7EB" }
745
+ }),
746
+ t.createElement("div", {
747
+ key: "dot",
748
+ className: "relative z-10 w-10 h-10 rounded-full flex items-center justify-center border-2 bg-white transition-all duration-300 shrink-0 text-sm font-bold shadow-sm",
749
+ style: {
750
+ borderColor: z,
751
+ color: b ? "#fff" : E ? z : "#9CA3AF",
752
+ backgroundColor: b ? z : "#fff"
753
+ }
754
+ }, W),
755
+ t.createElement("div", { key: "content", className: "pt-2" }, [
756
+ t.createElement("div", { className: "text-sm font-bold text-gray-900 leading-none" }, x.title),
757
+ x.description && t.createElement("div", { className: "text-xs text-gray-500 mt-1.5" }, x.description),
758
+ x.date && t.createElement("div", { className: "text-xs font-mono text-gray-400 mt-1" }, x.date)
759
+ ])
760
+ ]);
761
+ }));
762
+ }
763
+ if (o === "floating")
764
+ return t.createElement("div", {
765
+ className: `w-full bg-white rounded-xl shadow-sm border border-gray-100 p-4 relative overflow-hidden ${k}`,
766
+ style: w,
767
+ ...N
768
+ }, [
769
+ t.createElement("div", { key: "info", className: "flex justify-between items-center mb-3 px-1" }, [
770
+ t.createElement(
771
+ "span",
772
+ { key: "l", className: "text-sm font-semibold text-gray-700" },
773
+ h ? t.createElement("span", { className: "text-blue-600 mr-2" }, `${Math.round(_)}%`) : null,
774
+ h || "Update in progress..."
775
+ ),
776
+ d && t.createElement("span", { key: "r", className: "text-xs font-medium text-gray-400" }, d)
777
+ ]),
778
+ t.createElement("div", {
779
+ key: "track",
780
+ className: "w-full bg-blue-50 h-1.5 rounded-full overflow-hidden"
781
+ }, t.createElement("div", {
782
+ className: "h-full rounded-full transition-all duration-1000 ease-out",
783
+ style: { width: `${_}%`, backgroundColor: v }
784
+ }))
785
+ ]);
786
+ if (o === "chevron") {
787
+ const g = Math.floor(_ / 100 * 3);
788
+ return t.createElement("div", {
789
+ className: `flex w-full rounded-lg overflow-hidden ${k}`,
790
+ style: w,
791
+ ...N
792
+ }, Array.from({ length: 3 }).map((x, l) => {
793
+ const b = l <= g;
794
+ return t.createElement("div", {
795
+ key: l,
796
+ className: "flex-1 h-10 flex items-center justify-center text-sm font-bold text-white transition-colors duration-300",
797
+ style: {
798
+ backgroundColor: b ? l === g ? v : "#60A5FA" : "#E5E7EB",
799
+ clipPath: l === 0 ? "polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%)" : l === 2 ? "polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 15% 50%)" : "polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%, 15% 50%)",
800
+ marginLeft: l === 0 ? 0 : "-10px",
801
+ paddingLeft: l === 0 ? 0 : "10px",
802
+ zIndex: 3 - l
803
+ }
804
+ }, `Step ${l + 1}`);
805
+ }));
806
+ }
807
+ if (o === "steps") {
808
+ const g = Math.ceil(_ / 100 * 3);
809
+ return t.createElement("div", {
810
+ className: `w-full flex items-center justify-between relative ${k}`,
811
+ style: {
812
+ marginTop: "1rem",
813
+ ...w
814
+ },
815
+ ...N
816
+ }, [
817
+ t.createElement("div", {
818
+ key: "line-bg",
819
+ className: "absolute top-1/2 left-0 w-full h-1.5 bg-gray-200 z-0 transform -translate-y-1/2 rounded-full"
820
+ }),
821
+ t.createElement("div", {
822
+ key: "line-active",
823
+ className: "absolute top-1/2 left-0 h-1.5 z-0 transform -translate-y-1/2 transition-all duration-500 rounded-full",
824
+ style: { width: `${_}%`, backgroundColor: v }
825
+ }),
826
+ ...Array.from({ length: 3 }).map((x, l) => {
827
+ const b = l + 1, E = b <= g, I = b < g;
828
+ return t.createElement("div", {
829
+ key: l,
830
+ className: `relative z-10 w-10 h-10 rounded-full flex items-center justify-center text-sm font-bold transition-all duration-300 border-4 ${E ? "text-white border-white shadow-md" : "bg-gray-100 text-gray-400 border-gray-50"}`,
831
+ style: { backgroundColor: E ? v : void 0 }
832
+ }, I ? t.createElement("span", {}, "✔") : b);
833
+ })
834
+ ]);
835
+ }
836
+ const R = i || 12;
837
+ if (o === "segments") {
838
+ const g = Math.round(_ / 100 * 10);
839
+ return t.createElement(
840
+ "div",
841
+ {
842
+ className: `flex gap-1.5 w-full ${k}`,
843
+ style: w,
844
+ ...N
845
+ },
846
+ Array.from({ length: 10 }).map((x, l) => t.createElement("div", {
847
+ key: l,
848
+ className: "h-3 flex-1 rounded-sm transition-all duration-300 first:rounded-l-full last:rounded-r-full",
849
+ style: {
850
+ height: i || 12,
851
+ backgroundColor: l < g ? v : "#E5E7EB"
852
+ }
853
+ }))
854
+ );
855
+ }
856
+ let P = null;
857
+ o === "striped" && (P = t.createElement("div", {
858
+ className: "w-full h-full opacity-30 animate-[stripes_1s_linear_infinite]",
859
+ style: {
860
+ backgroundImage: "linear-gradient(45deg,rgba(255,255,255,.25) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.25) 50%,rgba(255,255,255,.25) 75%,transparent 75%,transparent)",
861
+ backgroundSize: "20px 20px"
862
+ }
863
+ }));
864
+ const q = o === "labeled" ? t.createElement("div", {
865
+ className: "absolute -top-12 transform -translate-x-1/2 bg-slate-800 text-white text-xs font-bold py-1.5 px-3 rounded-lg shadow-xl whitespace-nowrap",
866
+ style: { left: `${_}%` }
867
+ }, [
868
+ h || `${Math.round(_)}%`,
869
+ t.createElement("div", { key: "arrow", className: "absolute -bottom-1 left-1/2 transform -translate-x-1/2 w-2 h-2 bg-slate-800 rotate-45" })
870
+ ]) : null, V = o === "knob" ? t.createElement("div", {
871
+ className: "absolute top-1/2 right-0 w-7 h-7 bg-white rounded-full shadow-lg border-4 transform translate-x-1/2 -translate-y-1/2 flex items-center justify-center",
872
+ style: { borderColor: v }
873
+ }, t.createElement("div", { className: "w-1.5 h-1.5 rounded-full", style: { backgroundColor: v } })) : null;
874
+ return t.createElement("div", {
875
+ className: `relative w-full ${o === "labeled" ? "mt-8" : ""}`,
876
+ role: "progressbar",
877
+ "aria-valuenow": s,
878
+ "aria-valuemin": 0,
879
+ "aria-valuemax": e,
880
+ "aria-label": h || "Progress",
881
+ ...N
882
+ }, [
883
+ q,
884
+ t.createElement(
885
+ "div",
886
+ {
887
+ key: "track",
888
+ className: `w-full bg-slate-100 rounded-full ${k}`,
889
+ style: {
890
+ width: "100%",
891
+ height: R,
892
+ ...w
893
+ }
894
+ },
895
+ t.createElement("div", {
896
+ className: "h-full transition-all duration-1000 ease-out rounded-full flex items-center justify-center relative",
897
+ style: {
898
+ width: `${_}%`,
899
+ backgroundColor: v
900
+ }
901
+ }, [P, V])
902
+ )
903
+ ]);
904
+ });
905
+ class de extends F {
906
+ constructor() {
907
+ super(...arguments);
908
+ r(this, "_value", 0);
909
+ r(this, "_max", 100);
910
+ r(this, "_color");
911
+ r(this, "_height");
912
+ r(this, "_variant", "default");
913
+ r(this, "_label");
914
+ r(this, "_subLabel");
915
+ r(this, "_items");
916
+ r(this, "_size");
917
+ r(this, "_strokeWidth");
918
+ r(this, "_segments");
919
+ r(this, "_gap");
920
+ r(this, "_trackColor");
921
+ }
922
+ value(e) {
923
+ return this._value = e, this;
924
+ }
925
+ max(e) {
926
+ return this._max = e, this;
927
+ }
928
+ color(e) {
929
+ return this._color = e, this;
930
+ }
931
+ height(e) {
932
+ return this._height = e, this;
933
+ }
934
+ size(e) {
935
+ return this._size = e, this;
936
+ }
937
+ strokeWidth(e) {
938
+ return this._strokeWidth = e, this;
939
+ }
940
+ segments(e) {
941
+ return this._segments = e, this;
942
+ }
943
+ gap(e) {
944
+ return this._gap = e, this;
945
+ }
946
+ trackColor(e) {
947
+ return this._trackColor = e, this;
948
+ }
949
+ variant(e) {
950
+ return this._variant = e, this;
951
+ }
952
+ label(e) {
953
+ return this._label = e, this;
954
+ }
955
+ subLabel(e) {
956
+ return this._subLabel = e, this;
957
+ }
958
+ items(e) {
959
+ return this._items = e, this;
960
+ }
961
+ build() {
962
+ const e = {
963
+ value: this._value,
964
+ max: this._max,
965
+ color: this._color,
966
+ height: this._height,
967
+ variant: this._variant,
968
+ label: this._label,
969
+ subLabel: this._subLabel,
970
+ items: this._items,
971
+ size: this._size,
972
+ strokeWidth: this._strokeWidth,
973
+ segments: this._segments,
974
+ gap: this._gap,
975
+ trackColor: this._trackColor,
976
+ children: this.processChildren(),
977
+ className: this.getClassName(),
978
+ style: this.getStyle(),
979
+ ...this._props
980
+ };
981
+ return t.createElement(he, e);
982
+ }
983
+ }
984
+ const Be = C(de), ue = t.memo((n) => {
985
+ const {
986
+ source: s,
987
+ className: e,
988
+ style: a,
989
+ ...i
990
+ } = n;
991
+ return s ? t.createElement(s, {
992
+ className: e,
993
+ style: a,
994
+ ...i
995
+ }) : null;
996
+ });
997
+ class me extends F {
998
+ constructor(e) {
999
+ super();
1000
+ r(this, "_source");
1001
+ this._source = e;
1002
+ }
1003
+ source(e) {
1004
+ return this._source = e, this;
1005
+ }
1006
+ props(e) {
1007
+ return this._props = { ...this._props, ...e }, this;
1008
+ }
1009
+ build() {
1010
+ const a = ["fibo-integration", ...this._classNames].filter(Boolean).join(" "), i = {
1011
+ source: this._source,
1012
+ className: a,
1013
+ style: this.getStyle(),
1014
+ ...this._props
1015
+ };
1016
+ return t.createElement(ue, i);
1017
+ }
1018
+ }
1019
+ const Se = C(me);
1020
+ export {
1021
+ ve as A,
1022
+ ke as B,
1023
+ we as I,
1024
+ Ee as L,
1025
+ Be as P,
1026
+ Ne as S,
1027
+ Ce as a,
1028
+ Fe as b,
1029
+ Se as c,
1030
+ M as d
1031
+ };