@sudobility/analytics-components 1.1.0 → 2.0.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/dist/comparison-section.d.ts.map +1 -1
- package/dist/index.d.ts +0 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +272 -782
- package/dist/index.umd.js +2 -2
- package/package.json +2 -2
- package/dist/empty-state.d.ts +0 -10
- package/dist/empty-state.d.ts.map +0 -1
- package/dist/gauge.d.ts +0 -34
- package/dist/gauge.d.ts.map +0 -1
- package/dist/loading-state.d.ts +0 -10
- package/dist/loading-state.d.ts.map +0 -1
- package/dist/metric-comparison.d.ts +0 -33
- package/dist/metric-comparison.d.ts.map +0 -1
- package/dist/progress-tracker.d.ts +0 -33
- package/dist/progress-tracker.d.ts.map +0 -1
- package/dist/sparkline.d.ts +0 -28
- package/dist/sparkline.d.ts.map +0 -1
- package/dist/stat-display.d.ts +0 -52
- package/dist/stat-display.d.ts.map +0 -1
- package/dist/typography.d.ts +0 -50
- package/dist/typography.d.ts.map +0 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,71 +1,70 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { cn as
|
|
3
|
-
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
q = 1;
|
|
1
|
+
import se from "react";
|
|
2
|
+
import { cn as f } from "@sudobility/components";
|
|
3
|
+
var C = { exports: {} }, j = {};
|
|
4
|
+
var L;
|
|
5
|
+
function ie() {
|
|
6
|
+
if (L) return j;
|
|
7
|
+
L = 1;
|
|
9
8
|
var t = Symbol.for("react.transitional.element"), a = Symbol.for("react.fragment");
|
|
10
|
-
function r(n,
|
|
11
|
-
var
|
|
12
|
-
if (
|
|
13
|
-
|
|
14
|
-
for (var
|
|
15
|
-
|
|
16
|
-
} else
|
|
17
|
-
return
|
|
9
|
+
function r(n, i, d) {
|
|
10
|
+
var h = null;
|
|
11
|
+
if (d !== void 0 && (h = "" + d), i.key !== void 0 && (h = "" + i.key), "key" in i) {
|
|
12
|
+
d = {};
|
|
13
|
+
for (var b in i)
|
|
14
|
+
b !== "key" && (d[b] = i[b]);
|
|
15
|
+
} else d = i;
|
|
16
|
+
return i = d.ref, {
|
|
18
17
|
$$typeof: t,
|
|
19
18
|
type: n,
|
|
20
|
-
key:
|
|
21
|
-
ref:
|
|
22
|
-
props:
|
|
19
|
+
key: h,
|
|
20
|
+
ref: i !== void 0 ? i : null,
|
|
21
|
+
props: d
|
|
23
22
|
};
|
|
24
23
|
}
|
|
25
|
-
return
|
|
24
|
+
return j.Fragment = a, j.jsx = r, j.jsxs = r, j;
|
|
26
25
|
}
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
function
|
|
30
|
-
return
|
|
26
|
+
var T = {};
|
|
27
|
+
var q;
|
|
28
|
+
function le() {
|
|
29
|
+
return q || (q = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
31
30
|
function t(e) {
|
|
32
31
|
if (e == null) return null;
|
|
33
32
|
if (typeof e == "function")
|
|
34
|
-
return e.$$typeof ===
|
|
33
|
+
return e.$$typeof === ae ? null : e.displayName || e.name || null;
|
|
35
34
|
if (typeof e == "string") return e;
|
|
36
35
|
switch (e) {
|
|
37
|
-
case
|
|
36
|
+
case p:
|
|
38
37
|
return "Fragment";
|
|
39
|
-
case
|
|
38
|
+
case O:
|
|
40
39
|
return "Profiler";
|
|
41
|
-
case
|
|
40
|
+
case k:
|
|
42
41
|
return "StrictMode";
|
|
43
|
-
case
|
|
42
|
+
case K:
|
|
44
43
|
return "Suspense";
|
|
45
|
-
case
|
|
44
|
+
case ee:
|
|
46
45
|
return "SuspenseList";
|
|
47
|
-
case
|
|
46
|
+
case te:
|
|
48
47
|
return "Activity";
|
|
49
48
|
}
|
|
50
49
|
if (typeof e == "object")
|
|
51
50
|
switch (typeof e.tag == "number" && console.error(
|
|
52
51
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
53
52
|
), e.$$typeof) {
|
|
54
|
-
case
|
|
53
|
+
case E:
|
|
55
54
|
return "Portal";
|
|
56
|
-
case
|
|
55
|
+
case H:
|
|
57
56
|
return e.displayName || "Context";
|
|
58
|
-
case
|
|
57
|
+
case Q:
|
|
59
58
|
return (e._context.displayName || "Context") + ".Consumer";
|
|
59
|
+
case Z:
|
|
60
|
+
var o = e.render;
|
|
61
|
+
return e = e.displayName, e || (e = o.displayName || o.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
60
62
|
case re:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
return i = e.displayName || null, i !== null ? i : t(e.type) || "Memo";
|
|
65
|
-
case O:
|
|
66
|
-
i = e._payload, e = e._init;
|
|
63
|
+
return o = e.displayName || null, o !== null ? o : t(e.type) || "Memo";
|
|
64
|
+
case S:
|
|
65
|
+
o = e._payload, e = e._init;
|
|
67
66
|
try {
|
|
68
|
-
return t(e(
|
|
67
|
+
return t(e(o));
|
|
69
68
|
} catch {
|
|
70
69
|
}
|
|
71
70
|
}
|
|
@@ -77,74 +76,74 @@ function ce() {
|
|
|
77
76
|
function r(e) {
|
|
78
77
|
try {
|
|
79
78
|
a(e);
|
|
80
|
-
var
|
|
79
|
+
var o = !1;
|
|
81
80
|
} catch {
|
|
82
|
-
|
|
81
|
+
o = !0;
|
|
83
82
|
}
|
|
84
|
-
if (
|
|
85
|
-
|
|
86
|
-
var
|
|
87
|
-
return
|
|
88
|
-
|
|
83
|
+
if (o) {
|
|
84
|
+
o = console;
|
|
85
|
+
var l = o.error, c = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
86
|
+
return l.call(
|
|
87
|
+
o,
|
|
89
88
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
90
|
-
|
|
89
|
+
c
|
|
91
90
|
), a(e);
|
|
92
91
|
}
|
|
93
92
|
}
|
|
94
93
|
function n(e) {
|
|
95
|
-
if (e ===
|
|
96
|
-
if (typeof e == "object" && e !== null && e.$$typeof ===
|
|
94
|
+
if (e === p) return "<>";
|
|
95
|
+
if (typeof e == "object" && e !== null && e.$$typeof === S)
|
|
97
96
|
return "<...>";
|
|
98
97
|
try {
|
|
99
|
-
var
|
|
100
|
-
return
|
|
98
|
+
var o = t(e);
|
|
99
|
+
return o ? "<" + o + ">" : "<...>";
|
|
101
100
|
} catch {
|
|
102
101
|
return "<...>";
|
|
103
102
|
}
|
|
104
103
|
}
|
|
105
|
-
function
|
|
106
|
-
var e =
|
|
104
|
+
function i() {
|
|
105
|
+
var e = A.A;
|
|
107
106
|
return e === null ? null : e.getOwner();
|
|
108
107
|
}
|
|
109
|
-
function
|
|
108
|
+
function d() {
|
|
110
109
|
return Error("react-stack-top-frame");
|
|
111
110
|
}
|
|
112
|
-
function
|
|
113
|
-
if (
|
|
114
|
-
var
|
|
115
|
-
if (
|
|
111
|
+
function h(e) {
|
|
112
|
+
if ($.call(e, "key")) {
|
|
113
|
+
var o = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
114
|
+
if (o && o.isReactWarning) return !1;
|
|
116
115
|
}
|
|
117
116
|
return e.key !== void 0;
|
|
118
117
|
}
|
|
119
|
-
function
|
|
120
|
-
function
|
|
121
|
-
|
|
118
|
+
function b(e, o) {
|
|
119
|
+
function l() {
|
|
120
|
+
D || (D = !0, console.error(
|
|
122
121
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
123
|
-
|
|
122
|
+
o
|
|
124
123
|
));
|
|
125
124
|
}
|
|
126
|
-
|
|
127
|
-
get:
|
|
125
|
+
l.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
126
|
+
get: l,
|
|
128
127
|
configurable: !0
|
|
129
128
|
});
|
|
130
129
|
}
|
|
131
|
-
function
|
|
130
|
+
function _() {
|
|
132
131
|
var e = t(this.type);
|
|
133
|
-
return
|
|
132
|
+
return Y[e] || (Y[e] = !0, console.error(
|
|
134
133
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
135
134
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
136
135
|
}
|
|
137
|
-
function
|
|
138
|
-
var
|
|
136
|
+
function g(e, o, l, c, N, U) {
|
|
137
|
+
var u = l.ref;
|
|
139
138
|
return e = {
|
|
140
|
-
$$typeof:
|
|
139
|
+
$$typeof: m,
|
|
141
140
|
type: e,
|
|
142
|
-
key:
|
|
143
|
-
props:
|
|
144
|
-
_owner:
|
|
145
|
-
}, (
|
|
141
|
+
key: o,
|
|
142
|
+
props: l,
|
|
143
|
+
_owner: c
|
|
144
|
+
}, (u !== void 0 ? u : null) !== null ? Object.defineProperty(e, "ref", {
|
|
146
145
|
enumerable: !1,
|
|
147
|
-
get:
|
|
146
|
+
get: _
|
|
148
147
|
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
149
148
|
configurable: !1,
|
|
150
149
|
enumerable: !1,
|
|
@@ -159,151 +158,151 @@ function ce() {
|
|
|
159
158
|
configurable: !1,
|
|
160
159
|
enumerable: !1,
|
|
161
160
|
writable: !0,
|
|
162
|
-
value:
|
|
161
|
+
value: N
|
|
163
162
|
}), Object.defineProperty(e, "_debugTask", {
|
|
164
163
|
configurable: !1,
|
|
165
164
|
enumerable: !1,
|
|
166
165
|
writable: !0,
|
|
167
|
-
value:
|
|
166
|
+
value: U
|
|
168
167
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
169
168
|
}
|
|
170
|
-
function
|
|
171
|
-
var
|
|
172
|
-
if (
|
|
173
|
-
if (
|
|
174
|
-
if (
|
|
175
|
-
for (
|
|
176
|
-
|
|
177
|
-
Object.freeze && Object.freeze(
|
|
169
|
+
function v(e, o, l, c, N, U) {
|
|
170
|
+
var u = o.children;
|
|
171
|
+
if (u !== void 0)
|
|
172
|
+
if (c)
|
|
173
|
+
if (ne(u)) {
|
|
174
|
+
for (c = 0; c < u.length; c++)
|
|
175
|
+
y(u[c]);
|
|
176
|
+
Object.freeze && Object.freeze(u);
|
|
178
177
|
} else
|
|
179
178
|
console.error(
|
|
180
179
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
181
180
|
);
|
|
182
|
-
else
|
|
183
|
-
if (
|
|
184
|
-
|
|
185
|
-
var R = Object.keys(
|
|
186
|
-
return
|
|
181
|
+
else y(u);
|
|
182
|
+
if ($.call(o, "key")) {
|
|
183
|
+
u = t(e);
|
|
184
|
+
var R = Object.keys(o).filter(function(oe) {
|
|
185
|
+
return oe !== "key";
|
|
187
186
|
});
|
|
188
|
-
|
|
187
|
+
c = 0 < R.length ? "{key: someKey, " + R.join(": ..., ") + ": ...}" : "{key: someKey}", M[u + c] || (R = 0 < R.length ? "{" + R.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
189
188
|
`A props object containing a "key" prop is being spread into JSX:
|
|
190
189
|
let props = %s;
|
|
191
190
|
<%s {...props} />
|
|
192
191
|
React keys must be passed directly to JSX without using spread:
|
|
193
192
|
let props = %s;
|
|
194
193
|
<%s key={someKey} {...props} />`,
|
|
195
|
-
|
|
196
|
-
|
|
194
|
+
c,
|
|
195
|
+
u,
|
|
197
196
|
R,
|
|
198
|
-
|
|
199
|
-
),
|
|
197
|
+
u
|
|
198
|
+
), M[u + c] = !0);
|
|
200
199
|
}
|
|
201
|
-
if (
|
|
202
|
-
|
|
203
|
-
for (var
|
|
204
|
-
|
|
205
|
-
} else
|
|
206
|
-
return
|
|
207
|
-
|
|
200
|
+
if (u = null, l !== void 0 && (r(l), u = "" + l), h(o) && (r(o.key), u = "" + o.key), "key" in o) {
|
|
201
|
+
l = {};
|
|
202
|
+
for (var I in o)
|
|
203
|
+
I !== "key" && (l[I] = o[I]);
|
|
204
|
+
} else l = o;
|
|
205
|
+
return u && b(
|
|
206
|
+
l,
|
|
208
207
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
209
|
-
),
|
|
208
|
+
), g(
|
|
210
209
|
e,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
210
|
+
u,
|
|
211
|
+
l,
|
|
212
|
+
i(),
|
|
213
|
+
N,
|
|
214
|
+
U
|
|
216
215
|
);
|
|
217
216
|
}
|
|
218
|
-
function
|
|
219
|
-
|
|
217
|
+
function y(e) {
|
|
218
|
+
x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === S && (e._payload.status === "fulfilled" ? x(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
220
219
|
}
|
|
221
|
-
function
|
|
222
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
220
|
+
function x(e) {
|
|
221
|
+
return typeof e == "object" && e !== null && e.$$typeof === m;
|
|
223
222
|
}
|
|
224
|
-
var
|
|
223
|
+
var w = se, m = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), O = Symbol.for("react.profiler"), Q = Symbol.for("react.consumer"), H = Symbol.for("react.context"), Z = Symbol.for("react.forward_ref"), K = Symbol.for("react.suspense"), ee = Symbol.for("react.suspense_list"), re = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), te = Symbol.for("react.activity"), ae = Symbol.for("react.client.reference"), A = w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, $ = Object.prototype.hasOwnProperty, ne = Array.isArray, P = console.createTask ? console.createTask : function() {
|
|
225
224
|
return null;
|
|
226
225
|
};
|
|
227
|
-
|
|
226
|
+
w = {
|
|
228
227
|
react_stack_bottom_frame: function(e) {
|
|
229
228
|
return e();
|
|
230
229
|
}
|
|
231
230
|
};
|
|
232
|
-
var
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
)(),
|
|
236
|
-
|
|
237
|
-
var
|
|
238
|
-
return
|
|
231
|
+
var D, Y = {}, W = w.react_stack_bottom_frame.bind(
|
|
232
|
+
w,
|
|
233
|
+
d
|
|
234
|
+
)(), F = P(n(d)), M = {};
|
|
235
|
+
T.Fragment = p, T.jsx = function(e, o, l) {
|
|
236
|
+
var c = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
237
|
+
return v(
|
|
239
238
|
e,
|
|
240
|
-
|
|
241
|
-
|
|
239
|
+
o,
|
|
240
|
+
l,
|
|
242
241
|
!1,
|
|
243
|
-
|
|
244
|
-
|
|
242
|
+
c ? Error("react-stack-top-frame") : W,
|
|
243
|
+
c ? P(n(e)) : F
|
|
245
244
|
);
|
|
246
|
-
},
|
|
247
|
-
var
|
|
248
|
-
return
|
|
245
|
+
}, T.jsxs = function(e, o, l) {
|
|
246
|
+
var c = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
247
|
+
return v(
|
|
249
248
|
e,
|
|
250
|
-
|
|
251
|
-
|
|
249
|
+
o,
|
|
250
|
+
l,
|
|
252
251
|
!0,
|
|
253
|
-
|
|
254
|
-
|
|
252
|
+
c ? Error("react-stack-top-frame") : W,
|
|
253
|
+
c ? P(n(e)) : F
|
|
255
254
|
);
|
|
256
255
|
};
|
|
257
|
-
})()),
|
|
256
|
+
})()), T;
|
|
258
257
|
}
|
|
259
|
-
var
|
|
260
|
-
function
|
|
261
|
-
return
|
|
258
|
+
var z;
|
|
259
|
+
function de() {
|
|
260
|
+
return z || (z = 1, process.env.NODE_ENV === "production" ? C.exports = ie() : C.exports = le()), C.exports;
|
|
262
261
|
}
|
|
263
|
-
var
|
|
264
|
-
function
|
|
262
|
+
var s = de();
|
|
263
|
+
function X(t) {
|
|
265
264
|
var a, r, n = "";
|
|
266
265
|
if (typeof t == "string" || typeof t == "number") n += t;
|
|
267
266
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
268
|
-
var
|
|
269
|
-
for (a = 0; a <
|
|
267
|
+
var i = t.length;
|
|
268
|
+
for (a = 0; a < i; a++) t[a] && (r = X(t[a])) && (n && (n += " "), n += r);
|
|
270
269
|
} else for (r in t) t[r] && (n && (n += " "), n += r);
|
|
271
270
|
return n;
|
|
272
271
|
}
|
|
273
|
-
function
|
|
274
|
-
for (var t, a, r = 0, n = "",
|
|
272
|
+
function ce() {
|
|
273
|
+
for (var t, a, r = 0, n = "", i = arguments.length; r < i; r++) (t = arguments[r]) && (a = X(t)) && (n && (n += " "), n += a);
|
|
275
274
|
return n;
|
|
276
275
|
}
|
|
277
|
-
const
|
|
276
|
+
const J = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, G = ce, V = (t, a) => (r) => {
|
|
278
277
|
var n;
|
|
279
|
-
if (a?.variants == null) return
|
|
280
|
-
const { variants:
|
|
281
|
-
const
|
|
282
|
-
if (
|
|
283
|
-
const
|
|
284
|
-
return
|
|
285
|
-
}),
|
|
286
|
-
let [
|
|
287
|
-
return
|
|
288
|
-
}, {}),
|
|
289
|
-
let { class:
|
|
290
|
-
return Object.entries(
|
|
291
|
-
let [
|
|
292
|
-
return Array.isArray(
|
|
293
|
-
...
|
|
294
|
-
...
|
|
295
|
-
}[
|
|
296
|
-
...
|
|
297
|
-
...
|
|
298
|
-
}[
|
|
278
|
+
if (a?.variants == null) return G(t, r?.class, r?.className);
|
|
279
|
+
const { variants: i, defaultVariants: d } = a, h = Object.keys(i).map((g) => {
|
|
280
|
+
const v = r?.[g], y = d?.[g];
|
|
281
|
+
if (v === null) return null;
|
|
282
|
+
const x = J(v) || J(y);
|
|
283
|
+
return i[g][x];
|
|
284
|
+
}), b = r && Object.entries(r).reduce((g, v) => {
|
|
285
|
+
let [y, x] = v;
|
|
286
|
+
return x === void 0 || (g[y] = x), g;
|
|
287
|
+
}, {}), _ = a == null || (n = a.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((g, v) => {
|
|
288
|
+
let { class: y, className: x, ...w } = v;
|
|
289
|
+
return Object.entries(w).every((m) => {
|
|
290
|
+
let [E, p] = m;
|
|
291
|
+
return Array.isArray(p) ? p.includes({
|
|
292
|
+
...d,
|
|
293
|
+
...b
|
|
294
|
+
}[E]) : {
|
|
295
|
+
...d,
|
|
296
|
+
...b
|
|
297
|
+
}[E] === p;
|
|
299
298
|
}) ? [
|
|
300
|
-
...
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
] :
|
|
299
|
+
...g,
|
|
300
|
+
y,
|
|
301
|
+
x
|
|
302
|
+
] : g;
|
|
304
303
|
}, []);
|
|
305
|
-
return
|
|
306
|
-
},
|
|
304
|
+
return G(t, h, _, r?.class, r?.className);
|
|
305
|
+
}, ue = V("grid gap-8", {
|
|
307
306
|
variants: {
|
|
308
307
|
layout: {
|
|
309
308
|
grid: "grid-cols-1 md:grid-cols-2",
|
|
@@ -320,7 +319,7 @@ const X = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Q = ge, _ =
|
|
|
320
319
|
layout: "grid",
|
|
321
320
|
spacing: "md"
|
|
322
321
|
}
|
|
323
|
-
}),
|
|
322
|
+
}), ge = V("rounded-xl p-6 transition-all duration-300", {
|
|
324
323
|
variants: {
|
|
325
324
|
variant: {
|
|
326
325
|
traditional: "bg-red-50 dark:bg-red-900/20 border-2 border-red-100 dark:border-red-800/30 hover:border-red-200 dark:hover:border-red-700/50",
|
|
@@ -338,7 +337,7 @@ const X = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Q = ge, _ =
|
|
|
338
337
|
variant: "traditional",
|
|
339
338
|
animation: "hover"
|
|
340
339
|
}
|
|
341
|
-
}),
|
|
340
|
+
}), me = V("text-lg font-bold mb-4 flex items-center gap-3", {
|
|
342
341
|
variants: {
|
|
343
342
|
variant: {
|
|
344
343
|
traditional: "text-red-600 dark:text-red-400",
|
|
@@ -350,100 +349,100 @@ const X = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Q = ge, _ =
|
|
|
350
349
|
defaultVariants: {
|
|
351
350
|
variant: "traditional"
|
|
352
351
|
}
|
|
353
|
-
}),
|
|
352
|
+
}), fe = {
|
|
354
353
|
traditional: "❌",
|
|
355
354
|
web3: "✅",
|
|
356
355
|
neutral: "ℹ️",
|
|
357
356
|
elevated: "⭐"
|
|
358
|
-
},
|
|
357
|
+
}, be = {
|
|
359
358
|
red: "bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300",
|
|
360
359
|
green: "bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",
|
|
361
360
|
blue: "bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",
|
|
362
361
|
gray: "bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300"
|
|
363
|
-
},
|
|
362
|
+
}, ye = ({
|
|
364
363
|
className: t,
|
|
365
364
|
layout: a = "grid",
|
|
366
365
|
spacing: r = "md",
|
|
367
366
|
title: n,
|
|
368
|
-
subtitle:
|
|
369
|
-
traditional:
|
|
370
|
-
web3:
|
|
371
|
-
cardAnimation:
|
|
372
|
-
animate:
|
|
373
|
-
animationDelay:
|
|
374
|
-
traditionalIcon:
|
|
375
|
-
web3Icon:
|
|
367
|
+
subtitle: i,
|
|
368
|
+
traditional: d,
|
|
369
|
+
web3: h,
|
|
370
|
+
cardAnimation: b = "hover",
|
|
371
|
+
animate: _ = !0,
|
|
372
|
+
animationDelay: g = 0,
|
|
373
|
+
traditionalIcon: v,
|
|
374
|
+
web3Icon: y
|
|
376
375
|
}) => {
|
|
377
|
-
const
|
|
378
|
-
const
|
|
376
|
+
const x = (m, E) => {
|
|
377
|
+
const p = /* @__PURE__ */ s.jsxs(
|
|
379
378
|
"div",
|
|
380
379
|
{
|
|
381
|
-
className:
|
|
382
|
-
|
|
380
|
+
className: f(
|
|
381
|
+
ge({ variant: m.variant, animation: b })
|
|
383
382
|
),
|
|
384
383
|
children: [
|
|
385
|
-
/* @__PURE__ */
|
|
386
|
-
/* @__PURE__ */
|
|
387
|
-
/* @__PURE__ */
|
|
388
|
-
/* @__PURE__ */
|
|
389
|
-
|
|
384
|
+
/* @__PURE__ */ s.jsxs("div", { className: f(me({ variant: m.variant })), children: [
|
|
385
|
+
/* @__PURE__ */ s.jsx("span", { className: "text-2xl", children: m.icon || (E === 0 ? v : y) || fe[m.variant] }),
|
|
386
|
+
/* @__PURE__ */ s.jsx("div", { className: "flex-1", children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
387
|
+
/* @__PURE__ */ s.jsx("span", { children: m.title }),
|
|
388
|
+
m.badge && /* @__PURE__ */ s.jsx(
|
|
390
389
|
"span",
|
|
391
390
|
{
|
|
392
|
-
className:
|
|
391
|
+
className: f(
|
|
393
392
|
"text-xs font-medium px-2 py-1 rounded-full",
|
|
394
|
-
|
|
393
|
+
be[m.badge.color || "gray"]
|
|
395
394
|
),
|
|
396
|
-
children:
|
|
395
|
+
children: m.badge.text
|
|
397
396
|
}
|
|
398
397
|
)
|
|
399
398
|
] }) })
|
|
400
399
|
] }),
|
|
401
|
-
/* @__PURE__ */
|
|
400
|
+
/* @__PURE__ */ s.jsx("ul", { className: "space-y-3", children: m.items.map((k, O) => /* @__PURE__ */ s.jsxs(
|
|
402
401
|
"li",
|
|
403
402
|
{
|
|
404
|
-
className:
|
|
403
|
+
className: f(
|
|
405
404
|
"flex items-start gap-3 text-sm leading-relaxed",
|
|
406
|
-
|
|
405
|
+
k.highlight && "font-medium"
|
|
407
406
|
),
|
|
408
407
|
children: [
|
|
409
|
-
|
|
410
|
-
/* @__PURE__ */
|
|
411
|
-
/* @__PURE__ */
|
|
408
|
+
k.icon && /* @__PURE__ */ s.jsx("span", { className: "flex-shrink-0 mt-0.5 text-base", children: k.icon }),
|
|
409
|
+
/* @__PURE__ */ s.jsxs("div", { className: "flex-1", children: [
|
|
410
|
+
/* @__PURE__ */ s.jsx(
|
|
412
411
|
"span",
|
|
413
412
|
{
|
|
414
|
-
className:
|
|
415
|
-
|
|
413
|
+
className: f(
|
|
414
|
+
m.variant === "traditional" || m.variant === "web3" ? "text-gray-700 dark:text-gray-300" : "text-gray-600 dark:text-gray-400"
|
|
416
415
|
),
|
|
417
|
-
children:
|
|
416
|
+
children: k.text
|
|
418
417
|
}
|
|
419
418
|
),
|
|
420
|
-
|
|
419
|
+
k.subtext && /* @__PURE__ */ s.jsx("p", { className: "text-xs text-gray-500 dark:text-gray-500 mt-1", children: k.subtext })
|
|
421
420
|
] })
|
|
422
421
|
]
|
|
423
422
|
},
|
|
424
|
-
|
|
423
|
+
O
|
|
425
424
|
)) })
|
|
426
425
|
]
|
|
427
426
|
}
|
|
428
427
|
);
|
|
429
|
-
return /* @__PURE__ */
|
|
428
|
+
return /* @__PURE__ */ s.jsx("div", { children: p }, m.title);
|
|
430
429
|
};
|
|
431
|
-
return /* @__PURE__ */
|
|
432
|
-
(n ||
|
|
433
|
-
n && /* @__PURE__ */
|
|
434
|
-
|
|
430
|
+
return /* @__PURE__ */ s.jsxs("div", { className: f("space-y-8", t), children: [
|
|
431
|
+
(n || i) && /* @__PURE__ */ s.jsxs("div", { className: "text-center space-y-4", children: [
|
|
432
|
+
n && /* @__PURE__ */ s.jsx("h2", { className: "text-2xl sm:text-3xl font-bold text-gray-900 dark:text-white", children: n }),
|
|
433
|
+
i && /* @__PURE__ */ s.jsx("p", { className: "text-lg text-gray-600 dark:text-gray-400 max-w-2xl mx-auto", children: i })
|
|
435
434
|
] }),
|
|
436
|
-
/* @__PURE__ */
|
|
437
|
-
|
|
438
|
-
|
|
435
|
+
/* @__PURE__ */ s.jsxs("div", { className: f(ue({ layout: a, spacing: r })), children: [
|
|
436
|
+
x(d, 0),
|
|
437
|
+
x(h, 1)
|
|
439
438
|
] })
|
|
440
439
|
] });
|
|
441
|
-
},
|
|
440
|
+
}, B = (t, a, r, n) => ({
|
|
442
441
|
title: t,
|
|
443
442
|
variant: r,
|
|
444
|
-
items: a.map((
|
|
443
|
+
items: a.map((i) => typeof i == "string" ? { text: i } : i),
|
|
445
444
|
...n
|
|
446
|
-
}),
|
|
445
|
+
}), he = (t) => {
|
|
447
446
|
const a = [
|
|
448
447
|
{ text: "Create account with email/password", icon: "🔑" },
|
|
449
448
|
{ text: "Remember multiple passwords", icon: "🧠" },
|
|
@@ -460,28 +459,28 @@ const X = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Q = ge, _ =
|
|
|
460
459
|
{ text: "Censorship resistant", icon: "🛡️" }
|
|
461
460
|
];
|
|
462
461
|
return {
|
|
463
|
-
traditional:
|
|
462
|
+
traditional: B(
|
|
464
463
|
t?.traditionalTitle || "Traditional Email",
|
|
465
464
|
t?.traditionalItems || a,
|
|
466
465
|
"traditional",
|
|
467
466
|
{ badge: { text: t?.traditionalBadge || "Old Way", color: "red" } }
|
|
468
467
|
),
|
|
469
|
-
web3:
|
|
468
|
+
web3: B(
|
|
470
469
|
t?.web3Title || "Web3 Email",
|
|
471
470
|
t?.web3Items || r,
|
|
472
471
|
"web3",
|
|
473
472
|
{ badge: { text: t?.web3Badge || "New Way", color: "green" } }
|
|
474
473
|
)
|
|
475
474
|
};
|
|
476
|
-
},
|
|
475
|
+
}, pe = ({
|
|
477
476
|
className: t,
|
|
478
477
|
children: a,
|
|
479
478
|
disabled: r = !1,
|
|
480
479
|
onClick: n
|
|
481
|
-
}) => /* @__PURE__ */
|
|
480
|
+
}) => /* @__PURE__ */ s.jsx(
|
|
482
481
|
"div",
|
|
483
482
|
{
|
|
484
|
-
className:
|
|
483
|
+
className: f(
|
|
485
484
|
"p-4 rounded-lg border transition-colors",
|
|
486
485
|
"bg-white dark:bg-gray-900",
|
|
487
486
|
"border-gray-200 dark:border-gray-700",
|
|
@@ -495,44 +494,15 @@ const X = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Q = ge, _ =
|
|
|
495
494
|
"aria-label": "UcontainerUstats",
|
|
496
495
|
children: a || "UcontainerUstats Component"
|
|
497
496
|
}
|
|
498
|
-
),
|
|
499
|
-
icon: t,
|
|
500
|
-
title: a = "No data",
|
|
501
|
-
description: r,
|
|
502
|
-
action: n,
|
|
503
|
-
className: s
|
|
504
|
-
}) => /* @__PURE__ */ o.jsxs(
|
|
505
|
-
"div",
|
|
506
|
-
{
|
|
507
|
-
className: d(
|
|
508
|
-
"flex flex-col items-center justify-center py-12 px-4 text-center",
|
|
509
|
-
s
|
|
510
|
-
),
|
|
511
|
-
children: [
|
|
512
|
-
t && /* @__PURE__ */ o.jsx("div", { className: "mb-4 text-gray-400 dark:text-gray-600", children: t }),
|
|
513
|
-
/* @__PURE__ */ o.jsx("h3", { className: d(u.heading.h3(), "mb-2"), children: a }),
|
|
514
|
-
r && /* @__PURE__ */ o.jsx(
|
|
515
|
-
"p",
|
|
516
|
-
{
|
|
517
|
-
className: d(
|
|
518
|
-
u.body.sm(),
|
|
519
|
-
"text-gray-600 dark:text-gray-400 max-w-sm mb-6"
|
|
520
|
-
),
|
|
521
|
-
children: r
|
|
522
|
-
}
|
|
523
|
-
),
|
|
524
|
-
n && /* @__PURE__ */ o.jsx("div", { className: "mt-4", children: n })
|
|
525
|
-
]
|
|
526
|
-
}
|
|
527
|
-
), Ce = ({
|
|
497
|
+
), ke = ({
|
|
528
498
|
className: t,
|
|
529
499
|
children: a,
|
|
530
500
|
disabled: r = !1,
|
|
531
501
|
onClick: n
|
|
532
|
-
}) => /* @__PURE__ */
|
|
502
|
+
}) => /* @__PURE__ */ s.jsx(
|
|
533
503
|
"div",
|
|
534
504
|
{
|
|
535
|
-
className:
|
|
505
|
+
className: f(
|
|
536
506
|
"p-4 rounded-lg border transition-colors",
|
|
537
507
|
"bg-white dark:bg-gray-900",
|
|
538
508
|
"border-gray-200 dark:border-gray-700",
|
|
@@ -546,15 +516,15 @@ const X = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Q = ge, _ =
|
|
|
546
516
|
"aria-label": "UfeatureUcomparison",
|
|
547
517
|
children: a || "UfeatureUcomparison Component"
|
|
548
518
|
}
|
|
549
|
-
),
|
|
519
|
+
), we = ({
|
|
550
520
|
className: t,
|
|
551
521
|
children: a,
|
|
552
522
|
disabled: r = !1,
|
|
553
523
|
onClick: n
|
|
554
|
-
}) => /* @__PURE__ */
|
|
524
|
+
}) => /* @__PURE__ */ s.jsx(
|
|
555
525
|
"div",
|
|
556
526
|
{
|
|
557
|
-
className:
|
|
527
|
+
className: f(
|
|
558
528
|
"p-4 rounded-lg border transition-colors",
|
|
559
529
|
"bg-white dark:bg-gray-900",
|
|
560
530
|
"border-gray-200 dark:border-gray-700",
|
|
@@ -568,112 +538,15 @@ const X = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Q = ge, _ =
|
|
|
568
538
|
"aria-label": "UfeatureUimportance",
|
|
569
539
|
children: a || "UfeatureUimportance Component"
|
|
570
540
|
}
|
|
571
|
-
),
|
|
572
|
-
value: t,
|
|
573
|
-
min: a = 0,
|
|
574
|
-
max: r = 100,
|
|
575
|
-
size: n = 120,
|
|
576
|
-
strokeWidth: s = 10,
|
|
577
|
-
showValue: l = !0,
|
|
578
|
-
label: c,
|
|
579
|
-
variant: g = "primary",
|
|
580
|
-
className: w
|
|
581
|
-
}) => {
|
|
582
|
-
const x = Math.min(r, Math.max(a, t)), y = (x - a) / (r - a) * 100, h = n / 2, m = (n - s) / 2, k = Math.PI * m, f = k - y / 100 * k, N = {
|
|
583
|
-
primary: "stroke-blue-600 dark:stroke-blue-500",
|
|
584
|
-
success: "stroke-green-600 dark:stroke-green-500",
|
|
585
|
-
warning: "stroke-yellow-600 dark:stroke-yellow-500",
|
|
586
|
-
danger: "stroke-red-600 dark:stroke-red-500"
|
|
587
|
-
};
|
|
588
|
-
return /* @__PURE__ */ o.jsxs("div", { className: d("inline-flex flex-col items-center gap-2", w), children: [
|
|
589
|
-
/* @__PURE__ */ o.jsxs("svg", { width: n, height: n * 0.65, className: "transform rotate-180", children: [
|
|
590
|
-
/* @__PURE__ */ o.jsx(
|
|
591
|
-
"path",
|
|
592
|
-
{
|
|
593
|
-
d: `M ${s / 2} ${h} A ${m} ${m} 0 0 1 ${n - s / 2} ${h}`,
|
|
594
|
-
fill: "none",
|
|
595
|
-
className: "stroke-gray-200 dark:stroke-gray-700",
|
|
596
|
-
strokeWidth: s,
|
|
597
|
-
strokeLinecap: "round"
|
|
598
|
-
}
|
|
599
|
-
),
|
|
600
|
-
/* @__PURE__ */ o.jsx(
|
|
601
|
-
"path",
|
|
602
|
-
{
|
|
603
|
-
d: `M ${s / 2} ${h} A ${m} ${m} 0 0 1 ${n - s / 2} ${h}`,
|
|
604
|
-
fill: "none",
|
|
605
|
-
className: d(N[g], "transition-all duration-500"),
|
|
606
|
-
strokeWidth: s,
|
|
607
|
-
strokeDasharray: k,
|
|
608
|
-
strokeDashoffset: f,
|
|
609
|
-
strokeLinecap: "round"
|
|
610
|
-
}
|
|
611
|
-
)
|
|
612
|
-
] }),
|
|
613
|
-
l && /* @__PURE__ */ o.jsxs("div", { className: "text-center -mt-8", children: [
|
|
614
|
-
/* @__PURE__ */ o.jsx("div", { className: "text-2xl font-bold text-gray-900 dark:text-white", children: Math.round(x) }),
|
|
615
|
-
c && /* @__PURE__ */ o.jsx("div", { className: "text-xs text-gray-600 dark:text-gray-400", children: c })
|
|
616
|
-
] })
|
|
617
|
-
] });
|
|
618
|
-
}, Ae = ({
|
|
619
|
-
message: t = "Loading...",
|
|
620
|
-
size: a = "default",
|
|
621
|
-
fullScreen: r = !1,
|
|
622
|
-
variant: n = "default",
|
|
623
|
-
className: s
|
|
624
|
-
}) => {
|
|
625
|
-
const c = {
|
|
626
|
-
small: { spinner: "small", text: "text-sm" },
|
|
627
|
-
default: { spinner: "default", text: "text-base" },
|
|
628
|
-
large: { spinner: "large", text: "text-lg" }
|
|
629
|
-
}[a], g = r ? "fixed inset-0 z-50 flex items-center justify-center bg-white/80 dark:bg-gray-900/80" : "flex flex-col items-center justify-center p-8", w = /* @__PURE__ */ o.jsxs("div", { className: d(g, s), children: [
|
|
630
|
-
/* @__PURE__ */ o.jsx(J, { size: c.spinner, variant: n, className: "mb-4" }),
|
|
631
|
-
t && /* @__PURE__ */ o.jsx(
|
|
632
|
-
"p",
|
|
633
|
-
{
|
|
634
|
-
className: d(
|
|
635
|
-
c.text,
|
|
636
|
-
"text-gray-600 dark:text-gray-400 text-center max-w-sm"
|
|
637
|
-
),
|
|
638
|
-
children: t
|
|
639
|
-
}
|
|
640
|
-
)
|
|
641
|
-
] });
|
|
642
|
-
return r ? /* @__PURE__ */ o.jsx("div", { className: "fixed inset-0 z-50 bg-white/80 dark:bg-gray-900/80 backdrop-blur-sm", children: /* @__PURE__ */ o.jsxs("div", { className: "flex items-center justify-center min-h-full p-4", children: [
|
|
643
|
-
/* @__PURE__ */ o.jsx(J, { size: c.spinner, variant: n, className: "mb-4" }),
|
|
644
|
-
t && /* @__PURE__ */ o.jsx("p", { className: "text-center text-gray-600 dark:text-gray-400 max-w-sm", children: t })
|
|
645
|
-
] }) }) : w;
|
|
646
|
-
}, Oe = ({
|
|
647
|
-
className: t,
|
|
648
|
-
children: a,
|
|
649
|
-
disabled: r = !1,
|
|
650
|
-
onClick: n
|
|
651
|
-
}) => /* @__PURE__ */ o.jsx(
|
|
652
|
-
"div",
|
|
653
|
-
{
|
|
654
|
-
className: d(
|
|
655
|
-
"p-4 rounded-lg border transition-colors",
|
|
656
|
-
"bg-white dark:bg-gray-900",
|
|
657
|
-
"border-gray-200 dark:border-gray-700",
|
|
658
|
-
"text-gray-900 dark:text-white",
|
|
659
|
-
r && "opacity-50 cursor-not-allowed",
|
|
660
|
-
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
661
|
-
t
|
|
662
|
-
),
|
|
663
|
-
onClick: r ? void 0 : n,
|
|
664
|
-
role: "region",
|
|
665
|
-
"aria-label": "UmetricUcomparison",
|
|
666
|
-
children: a || "UmetricUcomparison Component"
|
|
667
|
-
}
|
|
668
|
-
), Pe = ({
|
|
541
|
+
), _e = ({
|
|
669
542
|
className: t,
|
|
670
543
|
children: a,
|
|
671
544
|
disabled: r = !1,
|
|
672
545
|
onClick: n
|
|
673
|
-
}) => /* @__PURE__ */
|
|
546
|
+
}) => /* @__PURE__ */ s.jsx(
|
|
674
547
|
"div",
|
|
675
548
|
{
|
|
676
|
-
className:
|
|
549
|
+
className: f(
|
|
677
550
|
"p-4 rounded-lg border transition-colors",
|
|
678
551
|
"bg-white dark:bg-gray-900",
|
|
679
552
|
"border-gray-200 dark:border-gray-700",
|
|
@@ -687,32 +560,10 @@ const X = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Q = ge, _ =
|
|
|
687
560
|
"aria-label": "UmodelUprediction",
|
|
688
561
|
children: a || "UmodelUprediction Component"
|
|
689
562
|
}
|
|
690
|
-
),
|
|
691
|
-
className: t,
|
|
692
|
-
children: a,
|
|
693
|
-
disabled: r = !1,
|
|
694
|
-
onClick: n
|
|
695
|
-
}) => /* @__PURE__ */ o.jsx(
|
|
696
|
-
"div",
|
|
697
|
-
{
|
|
698
|
-
className: d(
|
|
699
|
-
"p-4 rounded-lg border transition-colors",
|
|
700
|
-
"bg-white dark:bg-gray-900",
|
|
701
|
-
"border-gray-200 dark:border-gray-700",
|
|
702
|
-
"text-gray-900 dark:text-white",
|
|
703
|
-
r && "opacity-50 cursor-not-allowed",
|
|
704
|
-
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
705
|
-
t
|
|
706
|
-
),
|
|
707
|
-
onClick: r ? void 0 : n,
|
|
708
|
-
role: "region",
|
|
709
|
-
"aria-label": "UprogressUtracker",
|
|
710
|
-
children: a || "UprogressUtracker Component"
|
|
711
|
-
}
|
|
712
|
-
), Ve = ({ className: t, children: a, disabled: r }) => /* @__PURE__ */ o.jsx(
|
|
563
|
+
), Ee = ({ className: t, children: a, disabled: r }) => /* @__PURE__ */ s.jsx(
|
|
713
564
|
"div",
|
|
714
565
|
{
|
|
715
|
-
className:
|
|
566
|
+
className: f(
|
|
716
567
|
"p-4 rounded-lg border transition-colors",
|
|
717
568
|
"bg-white dark:bg-gray-900",
|
|
718
569
|
"border-gray-200 dark:border-gray-700",
|
|
@@ -724,15 +575,15 @@ const X = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Q = ge, _ =
|
|
|
724
575
|
"aria-label": "QaReport",
|
|
725
576
|
children: a || "QaReport Component"
|
|
726
577
|
}
|
|
727
|
-
),
|
|
578
|
+
), Re = ({
|
|
728
579
|
className: t,
|
|
729
580
|
children: a,
|
|
730
581
|
disabled: r = !1,
|
|
731
582
|
onClick: n
|
|
732
|
-
}) => /* @__PURE__ */
|
|
583
|
+
}) => /* @__PURE__ */ s.jsx(
|
|
733
584
|
"div",
|
|
734
585
|
{
|
|
735
|
-
className:
|
|
586
|
+
className: f(
|
|
736
587
|
"p-4 rounded-lg border transition-colors",
|
|
737
588
|
"bg-white dark:bg-gray-900",
|
|
738
589
|
"border-gray-200 dark:border-gray-700",
|
|
@@ -746,175 +597,14 @@ const X = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Q = ge, _ =
|
|
|
746
597
|
"aria-label": "UreportUbuilder",
|
|
747
598
|
children: a || "UreportUbuilder Component"
|
|
748
599
|
}
|
|
749
|
-
),
|
|
750
|
-
data: t,
|
|
751
|
-
width: a = 100,
|
|
752
|
-
height: r = 30,
|
|
753
|
-
color: n = "#3b82f6",
|
|
754
|
-
fill: s = !1,
|
|
755
|
-
className: l
|
|
756
|
-
}) => {
|
|
757
|
-
if (t.length === 0) return null;
|
|
758
|
-
const c = Math.max(...t), g = Math.min(...t), w = c - g || 1, x = t.map((y, h) => {
|
|
759
|
-
const m = h / (t.length - 1) * a, k = r - (y - g) / w * r;
|
|
760
|
-
return `${m},${k}`;
|
|
761
|
-
}).join(" ");
|
|
762
|
-
return /* @__PURE__ */ o.jsxs(
|
|
763
|
-
"svg",
|
|
764
|
-
{
|
|
765
|
-
width: a,
|
|
766
|
-
height: r,
|
|
767
|
-
className: d("inline-block", l),
|
|
768
|
-
children: [
|
|
769
|
-
s && /* @__PURE__ */ o.jsx(
|
|
770
|
-
"polygon",
|
|
771
|
-
{
|
|
772
|
-
points: `0,${r} ${x} ${a},${r}`,
|
|
773
|
-
fill: n,
|
|
774
|
-
opacity: "0.2"
|
|
775
|
-
}
|
|
776
|
-
),
|
|
777
|
-
/* @__PURE__ */ o.jsx(
|
|
778
|
-
"polyline",
|
|
779
|
-
{
|
|
780
|
-
points: x,
|
|
781
|
-
fill: "none",
|
|
782
|
-
stroke: n,
|
|
783
|
-
strokeWidth: "2",
|
|
784
|
-
strokeLinejoin: "round",
|
|
785
|
-
strokeLinecap: "round"
|
|
786
|
-
}
|
|
787
|
-
)
|
|
788
|
-
]
|
|
789
|
-
}
|
|
790
|
-
);
|
|
791
|
-
}, De = ({
|
|
792
|
-
value: t,
|
|
793
|
-
label: a,
|
|
794
|
-
variant: r = "neutral",
|
|
795
|
-
size: n = "md",
|
|
796
|
-
align: s = "center",
|
|
797
|
-
icon: l,
|
|
798
|
-
iconPosition: c = "top",
|
|
799
|
-
className: g,
|
|
800
|
-
valueClassName: w,
|
|
801
|
-
labelClassName: x
|
|
802
|
-
}) => {
|
|
803
|
-
const y = {
|
|
804
|
-
primary: {
|
|
805
|
-
value: "text-blue-600 dark:text-blue-400",
|
|
806
|
-
label: "text-blue-600/70 dark:text-blue-400/70",
|
|
807
|
-
icon: "text-blue-600 dark:text-blue-400"
|
|
808
|
-
},
|
|
809
|
-
success: {
|
|
810
|
-
value: "text-green-600 dark:text-green-400",
|
|
811
|
-
label: "text-green-600/70 dark:text-green-400/70",
|
|
812
|
-
icon: "text-green-600 dark:text-green-400"
|
|
813
|
-
},
|
|
814
|
-
warning: {
|
|
815
|
-
value: "text-yellow-600 dark:text-yellow-400",
|
|
816
|
-
label: "text-yellow-600/70 dark:text-yellow-400/70",
|
|
817
|
-
icon: "text-yellow-600 dark:text-yellow-400"
|
|
818
|
-
},
|
|
819
|
-
danger: {
|
|
820
|
-
value: "text-red-600 dark:text-red-400",
|
|
821
|
-
label: "text-red-600/70 dark:text-red-400/70",
|
|
822
|
-
icon: "text-red-600 dark:text-red-400"
|
|
823
|
-
},
|
|
824
|
-
neutral: {
|
|
825
|
-
value: "text-gray-900 dark:text-gray-100",
|
|
826
|
-
label: "text-gray-600 dark:text-gray-400",
|
|
827
|
-
icon: "text-gray-600 dark:text-gray-400"
|
|
828
|
-
},
|
|
829
|
-
white: {
|
|
830
|
-
value: "text-white",
|
|
831
|
-
label: "text-white/70",
|
|
832
|
-
icon: "text-white"
|
|
833
|
-
}
|
|
834
|
-
}, h = {
|
|
835
|
-
sm: {
|
|
836
|
-
value: u.heading.h5(),
|
|
837
|
-
label: u.caption.default(),
|
|
838
|
-
icon: "h-4 w-4"
|
|
839
|
-
},
|
|
840
|
-
md: {
|
|
841
|
-
value: u.heading.h4(),
|
|
842
|
-
label: u.body.sm(),
|
|
843
|
-
icon: "h-5 w-5"
|
|
844
|
-
},
|
|
845
|
-
lg: {
|
|
846
|
-
value: u.heading.h3(),
|
|
847
|
-
label: u.body.md(),
|
|
848
|
-
icon: "h-6 w-6"
|
|
849
|
-
},
|
|
850
|
-
xl: {
|
|
851
|
-
value: u.heading.h2(),
|
|
852
|
-
label: u.body.lg(),
|
|
853
|
-
icon: "h-8 w-8"
|
|
854
|
-
}
|
|
855
|
-
}, m = {
|
|
856
|
-
left: "text-left",
|
|
857
|
-
center: "text-center",
|
|
858
|
-
right: "text-right"
|
|
859
|
-
}, k = y[r], f = h[n];
|
|
860
|
-
return /* @__PURE__ */ o.jsxs("div", { className: d(m[s], g), children: [
|
|
861
|
-
l && c === "top" && /* @__PURE__ */ o.jsx(
|
|
862
|
-
l,
|
|
863
|
-
{
|
|
864
|
-
className: d(
|
|
865
|
-
f.icon,
|
|
866
|
-
k.icon,
|
|
867
|
-
"mb-2",
|
|
868
|
-
s === "center" && "mx-auto"
|
|
869
|
-
)
|
|
870
|
-
}
|
|
871
|
-
),
|
|
872
|
-
/* @__PURE__ */ o.jsxs(
|
|
873
|
-
"div",
|
|
874
|
-
{
|
|
875
|
-
className: d(
|
|
876
|
-
c === "left" && l && "flex items-center gap-3",
|
|
877
|
-
s === "center" && c === "left" && "justify-center"
|
|
878
|
-
),
|
|
879
|
-
children: [
|
|
880
|
-
l && c === "left" && /* @__PURE__ */ o.jsx(l, { className: d(f.icon, k.icon) }),
|
|
881
|
-
/* @__PURE__ */ o.jsxs("div", { children: [
|
|
882
|
-
/* @__PURE__ */ o.jsx(
|
|
883
|
-
"div",
|
|
884
|
-
{
|
|
885
|
-
className: d(
|
|
886
|
-
"font-bold",
|
|
887
|
-
f.value,
|
|
888
|
-
k.value,
|
|
889
|
-
w
|
|
890
|
-
),
|
|
891
|
-
children: t
|
|
892
|
-
}
|
|
893
|
-
),
|
|
894
|
-
/* @__PURE__ */ o.jsx(
|
|
895
|
-
"div",
|
|
896
|
-
{
|
|
897
|
-
className: d(
|
|
898
|
-
f.label,
|
|
899
|
-
k.label,
|
|
900
|
-
x
|
|
901
|
-
),
|
|
902
|
-
children: a
|
|
903
|
-
}
|
|
904
|
-
)
|
|
905
|
-
] })
|
|
906
|
-
]
|
|
907
|
-
}
|
|
908
|
-
)
|
|
909
|
-
] });
|
|
910
|
-
}, Ye = ({
|
|
600
|
+
), je = ({
|
|
911
601
|
className: t,
|
|
912
602
|
children: a,
|
|
913
603
|
disabled: r
|
|
914
|
-
}) => /* @__PURE__ */
|
|
604
|
+
}) => /* @__PURE__ */ s.jsx(
|
|
915
605
|
"div",
|
|
916
606
|
{
|
|
917
|
-
className:
|
|
607
|
+
className: f(
|
|
918
608
|
"p-4 rounded-lg border transition-colors",
|
|
919
609
|
"bg-white dark:bg-gray-900",
|
|
920
610
|
"border-gray-200 dark:border-gray-700",
|
|
@@ -926,53 +616,53 @@ const X = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Q = ge, _ =
|
|
|
926
616
|
"aria-label": "SupportDashboard",
|
|
927
617
|
children: a || "SupportDashboard Component"
|
|
928
618
|
}
|
|
929
|
-
),
|
|
619
|
+
), Te = ({
|
|
930
620
|
value: t,
|
|
931
621
|
previousValue: a,
|
|
932
622
|
format: r = "percentage",
|
|
933
623
|
currency: n = "$",
|
|
934
|
-
showArrow:
|
|
935
|
-
size:
|
|
936
|
-
className:
|
|
624
|
+
showArrow: i = !0,
|
|
625
|
+
size: d = "md",
|
|
626
|
+
className: h
|
|
937
627
|
}) => {
|
|
938
|
-
const
|
|
628
|
+
const b = t - a, _ = a !== 0 ? b / a * 100 : 0, g = b >= 0, v = () => {
|
|
939
629
|
switch (r) {
|
|
940
630
|
case "percentage":
|
|
941
|
-
return `${Math.abs(
|
|
631
|
+
return `${Math.abs(_).toFixed(1)}%`;
|
|
942
632
|
case "currency":
|
|
943
|
-
return `${n}${Math.abs(
|
|
633
|
+
return `${n}${Math.abs(b).toFixed(2)}`;
|
|
944
634
|
case "number":
|
|
945
|
-
return Math.abs(
|
|
635
|
+
return Math.abs(b).toFixed(0);
|
|
946
636
|
default:
|
|
947
637
|
return "";
|
|
948
638
|
}
|
|
949
|
-
},
|
|
639
|
+
}, y = {
|
|
950
640
|
sm: "text-xs",
|
|
951
641
|
md: "text-sm",
|
|
952
642
|
lg: "text-base"
|
|
953
|
-
},
|
|
643
|
+
}, x = {
|
|
954
644
|
sm: "w-3 h-3",
|
|
955
645
|
md: "w-4 h-4",
|
|
956
646
|
lg: "w-5 h-5"
|
|
957
647
|
};
|
|
958
|
-
return /* @__PURE__ */
|
|
648
|
+
return /* @__PURE__ */ s.jsxs(
|
|
959
649
|
"div",
|
|
960
650
|
{
|
|
961
|
-
className:
|
|
651
|
+
className: f(
|
|
962
652
|
"inline-flex items-center gap-1 font-semibold",
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
653
|
+
g ? "text-green-600 dark:text-green-400" : "text-red-600 dark:text-red-400",
|
|
654
|
+
y[d],
|
|
655
|
+
h
|
|
966
656
|
),
|
|
967
657
|
children: [
|
|
968
|
-
|
|
658
|
+
i && /* @__PURE__ */ s.jsx(
|
|
969
659
|
"svg",
|
|
970
660
|
{
|
|
971
|
-
className:
|
|
661
|
+
className: f(x[d]),
|
|
972
662
|
fill: "none",
|
|
973
663
|
stroke: "currentColor",
|
|
974
664
|
viewBox: "0 0 24 24",
|
|
975
|
-
children:
|
|
665
|
+
children: g ? /* @__PURE__ */ s.jsx(
|
|
976
666
|
"path",
|
|
977
667
|
{
|
|
978
668
|
strokeLinecap: "round",
|
|
@@ -980,7 +670,7 @@ const X = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Q = ge, _ =
|
|
|
980
670
|
strokeWidth: 2,
|
|
981
671
|
d: "M5 10l7-7m0 0l7 7m-7-7v18"
|
|
982
672
|
}
|
|
983
|
-
) : /* @__PURE__ */
|
|
673
|
+
) : /* @__PURE__ */ s.jsx(
|
|
984
674
|
"path",
|
|
985
675
|
{
|
|
986
676
|
strokeLinecap: "round",
|
|
@@ -991,224 +681,24 @@ const X = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Q = ge, _ =
|
|
|
991
681
|
)
|
|
992
682
|
}
|
|
993
683
|
),
|
|
994
|
-
/* @__PURE__ */
|
|
995
|
-
|
|
996
|
-
|
|
684
|
+
/* @__PURE__ */ s.jsxs("span", { children: [
|
|
685
|
+
g ? "+" : "-",
|
|
686
|
+
v()
|
|
997
687
|
] })
|
|
998
688
|
]
|
|
999
689
|
}
|
|
1000
690
|
);
|
|
1001
|
-
}
|
|
1002
|
-
variants: {
|
|
1003
|
-
variant: {
|
|
1004
|
-
hero: u.heading.display.hero(),
|
|
1005
|
-
display: u.heading.display.lg(),
|
|
1006
|
-
h1: u.heading.h1(),
|
|
1007
|
-
h2: u.heading.h2(),
|
|
1008
|
-
h3: u.heading.h3()
|
|
1009
|
-
},
|
|
1010
|
-
responsive: {
|
|
1011
|
-
true: "",
|
|
1012
|
-
// Responsive sizing handled in variant
|
|
1013
|
-
false: ""
|
|
1014
|
-
},
|
|
1015
|
-
align: {
|
|
1016
|
-
left: "text-left",
|
|
1017
|
-
center: "text-center",
|
|
1018
|
-
right: "text-right"
|
|
1019
|
-
},
|
|
1020
|
-
color: {
|
|
1021
|
-
default: "text-gray-900 dark:text-white",
|
|
1022
|
-
muted: "text-gray-600 dark:text-gray-400",
|
|
1023
|
-
vibrant: "text-white",
|
|
1024
|
-
brand: "bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent"
|
|
1025
|
-
}
|
|
1026
|
-
},
|
|
1027
|
-
defaultVariants: {
|
|
1028
|
-
variant: "h1",
|
|
1029
|
-
responsive: !0,
|
|
1030
|
-
align: "left",
|
|
1031
|
-
color: "default"
|
|
1032
|
-
}
|
|
1033
|
-
}), Fe = ({
|
|
1034
|
-
children: t,
|
|
1035
|
-
variant: a = "h1",
|
|
1036
|
-
responsive: r = !0,
|
|
1037
|
-
align: n = "left",
|
|
1038
|
-
color: s = "default",
|
|
1039
|
-
className: l,
|
|
1040
|
-
as: c
|
|
1041
|
-
}) => {
|
|
1042
|
-
const g = c || (a === "hero" || a === "display" || a === "h1" ? "h1" : a === "h2" ? "h2" : "h3");
|
|
1043
|
-
return /* @__PURE__ */ o.jsx(
|
|
1044
|
-
g,
|
|
1045
|
-
{
|
|
1046
|
-
className: d(
|
|
1047
|
-
ye({ variant: a, responsive: r, align: n, color: s }),
|
|
1048
|
-
l
|
|
1049
|
-
),
|
|
1050
|
-
children: t
|
|
1051
|
-
}
|
|
1052
|
-
);
|
|
1053
|
-
}, ve = _("", {
|
|
1054
|
-
variants: {
|
|
1055
|
-
variant: {
|
|
1056
|
-
h2: u.heading.h2(),
|
|
1057
|
-
h3: u.heading.h3(),
|
|
1058
|
-
h4: u.heading.h4(),
|
|
1059
|
-
h5: u.heading.h5(),
|
|
1060
|
-
h6: u.heading.h6()
|
|
1061
|
-
},
|
|
1062
|
-
spacing: {
|
|
1063
|
-
none: "",
|
|
1064
|
-
sm: "mb-2",
|
|
1065
|
-
md: "mb-4",
|
|
1066
|
-
lg: "mb-6",
|
|
1067
|
-
xl: "mb-8"
|
|
1068
|
-
},
|
|
1069
|
-
align: {
|
|
1070
|
-
left: "text-left",
|
|
1071
|
-
center: "text-center",
|
|
1072
|
-
right: "text-right"
|
|
1073
|
-
}
|
|
1074
|
-
},
|
|
1075
|
-
defaultVariants: {
|
|
1076
|
-
variant: "h2",
|
|
1077
|
-
spacing: "md",
|
|
1078
|
-
align: "left"
|
|
1079
|
-
}
|
|
1080
|
-
}), We = ({
|
|
1081
|
-
children: t,
|
|
1082
|
-
variant: a = "h2",
|
|
1083
|
-
spacing: r = "md",
|
|
1084
|
-
align: n = "left",
|
|
1085
|
-
className: s,
|
|
1086
|
-
as: l
|
|
1087
|
-
}) => {
|
|
1088
|
-
const c = l || a;
|
|
1089
|
-
return M.createElement(
|
|
1090
|
-
c,
|
|
1091
|
-
{
|
|
1092
|
-
className: d(
|
|
1093
|
-
ve({ variant: a, spacing: r, align: n }),
|
|
1094
|
-
s
|
|
1095
|
-
)
|
|
1096
|
-
},
|
|
1097
|
-
t
|
|
1098
|
-
);
|
|
1099
|
-
}, pe = _("", {
|
|
1100
|
-
variants: {
|
|
1101
|
-
variant: {
|
|
1102
|
-
body: u.body.md(),
|
|
1103
|
-
lead: u.body.lg(),
|
|
1104
|
-
large: u.body.lg(),
|
|
1105
|
-
small: u.body.sm(),
|
|
1106
|
-
caption: u.body.xs()
|
|
1107
|
-
},
|
|
1108
|
-
color: {
|
|
1109
|
-
default: "text-gray-700 dark:text-gray-300",
|
|
1110
|
-
muted: "text-gray-500 dark:text-gray-500",
|
|
1111
|
-
primary: "text-gray-900 dark:text-white"
|
|
1112
|
-
},
|
|
1113
|
-
align: {
|
|
1114
|
-
left: "text-left",
|
|
1115
|
-
center: "text-center",
|
|
1116
|
-
right: "text-right",
|
|
1117
|
-
justify: "text-justify"
|
|
1118
|
-
}
|
|
1119
|
-
},
|
|
1120
|
-
defaultVariants: {
|
|
1121
|
-
variant: "body",
|
|
1122
|
-
color: "default",
|
|
1123
|
-
align: "left"
|
|
1124
|
-
}
|
|
1125
|
-
}), ze = ({
|
|
1126
|
-
children: t,
|
|
1127
|
-
variant: a = "body",
|
|
1128
|
-
color: r = "default",
|
|
1129
|
-
align: n = "left",
|
|
1130
|
-
className: s,
|
|
1131
|
-
as: l = "p"
|
|
1132
|
-
}) => M.createElement(
|
|
1133
|
-
l,
|
|
1134
|
-
{ className: d(pe({ variant: a, color: r, align: n }), s) },
|
|
1135
|
-
t
|
|
1136
|
-
), ke = _(u.link.default(), {
|
|
1137
|
-
variants: {
|
|
1138
|
-
variant: {
|
|
1139
|
-
default: u.link.default(),
|
|
1140
|
-
subtle: u.link.subtle(),
|
|
1141
|
-
muted: u.link.muted(),
|
|
1142
|
-
button: "inline-flex items-center justify-center px-4 py-2 rounded-md bg-blue-600 text-white hover:bg-blue-700 transition-colors"
|
|
1143
|
-
},
|
|
1144
|
-
external: {
|
|
1145
|
-
true: "inline-flex items-center gap-1",
|
|
1146
|
-
false: ""
|
|
1147
|
-
}
|
|
1148
|
-
},
|
|
1149
|
-
defaultVariants: {
|
|
1150
|
-
variant: "default",
|
|
1151
|
-
external: !1
|
|
1152
|
-
}
|
|
1153
|
-
}), Je = ({
|
|
1154
|
-
children: t,
|
|
1155
|
-
href: a,
|
|
1156
|
-
variant: r = "default",
|
|
1157
|
-
external: n = !1,
|
|
1158
|
-
className: s,
|
|
1159
|
-
target: l,
|
|
1160
|
-
rel: c
|
|
1161
|
-
}) => /* @__PURE__ */ o.jsxs(
|
|
1162
|
-
"a",
|
|
1163
|
-
{
|
|
1164
|
-
href: a,
|
|
1165
|
-
target: l || (n ? "_blank" : void 0),
|
|
1166
|
-
rel: c || (n ? "noopener noreferrer" : void 0),
|
|
1167
|
-
className: d(ke({ variant: r, external: n }), s),
|
|
1168
|
-
children: [
|
|
1169
|
-
t,
|
|
1170
|
-
n && /* @__PURE__ */ o.jsx(
|
|
1171
|
-
"svg",
|
|
1172
|
-
{
|
|
1173
|
-
className: "w-4 h-4",
|
|
1174
|
-
fill: "none",
|
|
1175
|
-
stroke: "currentColor",
|
|
1176
|
-
viewBox: "0 0 24 24",
|
|
1177
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1178
|
-
"path",
|
|
1179
|
-
{
|
|
1180
|
-
strokeLinecap: "round",
|
|
1181
|
-
strokeLinejoin: "round",
|
|
1182
|
-
strokeWidth: 2,
|
|
1183
|
-
d: "M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
|
|
1184
|
-
}
|
|
1185
|
-
)
|
|
1186
|
-
}
|
|
1187
|
-
)
|
|
1188
|
-
]
|
|
1189
|
-
}
|
|
1190
|
-
);
|
|
691
|
+
};
|
|
1191
692
|
export {
|
|
1192
|
-
|
|
1193
|
-
Ee as
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
Je as TextLink,
|
|
1204
|
-
Ie as TrendIndicator,
|
|
1205
|
-
Re as UcontainerUstats,
|
|
1206
|
-
Ce as UfeatureUcomparison,
|
|
1207
|
-
Ue as UfeatureUimportance,
|
|
1208
|
-
Oe as UmetricUcomparison,
|
|
1209
|
-
Pe as UmodelUprediction,
|
|
1210
|
-
$e as UprogressUtracker,
|
|
1211
|
-
Le as UreportUbuilder,
|
|
1212
|
-
H as createComparisonData,
|
|
1213
|
-
_e as createEmailComparisonData
|
|
693
|
+
ye as ComparisonSection,
|
|
694
|
+
Ee as QaReport,
|
|
695
|
+
je as SupportDashboard,
|
|
696
|
+
Te as TrendIndicator,
|
|
697
|
+
pe as UcontainerUstats,
|
|
698
|
+
ke as UfeatureUcomparison,
|
|
699
|
+
we as UfeatureUimportance,
|
|
700
|
+
_e as UmodelUprediction,
|
|
701
|
+
Re as UreportUbuilder,
|
|
702
|
+
B as createComparisonData,
|
|
703
|
+
he as createEmailComparisonData
|
|
1214
704
|
};
|