@sudobility/workflow-components 1.1.0 → 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/dist/index.d.ts +0 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +230 -463
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +0 -5
- package/dist/blockquote.d.ts +0 -35
- package/dist/blockquote.d.ts.map +0 -1
- package/dist/form-builder.d.ts +0 -33
- package/dist/form-builder.d.ts.map +0 -1
- package/dist/form-template.d.ts +0 -33
- package/dist/form-template.d.ts.map +0 -1
- package/dist/form-validator.d.ts +0 -33
- package/dist/form-validator.d.ts.map +0 -1
- package/dist/status-badge.d.ts +0 -16
- package/dist/status-badge.d.ts.map +0 -1
- package/src/blockquote.tsx +0 -89
- package/src/form-builder.tsx +0 -60
- package/src/form-template.tsx +0 -60
- package/src/form-validator.tsx +0 -60
- package/src/status-badge.tsx +0 -140
package/dist/index.esm.js
CHANGED
|
@@ -1,654 +1,421 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { cn as
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
function
|
|
6
|
-
if (
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
function t(
|
|
1
|
+
import er from "react";
|
|
2
|
+
import { cn as d } from "@sudobility/components";
|
|
3
|
+
var _ = { exports: {} }, y = {};
|
|
4
|
+
var I;
|
|
5
|
+
function tr() {
|
|
6
|
+
if (I) return y;
|
|
7
|
+
I = 1;
|
|
8
|
+
var a = Symbol.for("react.transitional.element"), l = Symbol.for("react.fragment");
|
|
9
|
+
function t(i, c, u) {
|
|
10
10
|
var b = null;
|
|
11
|
-
if (u !== void 0 && (b = "" + u),
|
|
11
|
+
if (u !== void 0 && (b = "" + u), c.key !== void 0 && (b = "" + c.key), "key" in c) {
|
|
12
12
|
u = {};
|
|
13
|
-
for (var
|
|
14
|
-
|
|
15
|
-
} else u =
|
|
16
|
-
return
|
|
17
|
-
$$typeof:
|
|
18
|
-
type:
|
|
13
|
+
for (var m in c)
|
|
14
|
+
m !== "key" && (u[m] = c[m]);
|
|
15
|
+
} else u = c;
|
|
16
|
+
return c = u.ref, {
|
|
17
|
+
$$typeof: a,
|
|
18
|
+
type: i,
|
|
19
19
|
key: b,
|
|
20
|
-
ref:
|
|
20
|
+
ref: c !== void 0 ? c : null,
|
|
21
21
|
props: u
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
return y.Fragment =
|
|
24
|
+
return y.Fragment = l, y.jsx = t, y.jsxs = t, y;
|
|
25
25
|
}
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
function
|
|
29
|
-
return
|
|
30
|
-
function r
|
|
31
|
-
if (
|
|
32
|
-
if (typeof
|
|
33
|
-
return
|
|
34
|
-
if (typeof
|
|
35
|
-
switch (
|
|
36
|
-
case
|
|
26
|
+
var k = {};
|
|
27
|
+
var F;
|
|
28
|
+
function or() {
|
|
29
|
+
return F || (F = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
30
|
+
function a(r) {
|
|
31
|
+
if (r == null) return null;
|
|
32
|
+
if (typeof r == "function")
|
|
33
|
+
return r.$$typeof === Z ? null : r.displayName || r.name || null;
|
|
34
|
+
if (typeof r == "string") return r;
|
|
35
|
+
switch (r) {
|
|
36
|
+
case E:
|
|
37
37
|
return "Fragment";
|
|
38
|
-
case G:
|
|
39
|
-
return "Profiler";
|
|
40
38
|
case q:
|
|
39
|
+
return "Profiler";
|
|
40
|
+
case G:
|
|
41
41
|
return "StrictMode";
|
|
42
42
|
case X:
|
|
43
43
|
return "Suspense";
|
|
44
|
-
case
|
|
44
|
+
case Q:
|
|
45
45
|
return "SuspenseList";
|
|
46
|
-
case
|
|
46
|
+
case H:
|
|
47
47
|
return "Activity";
|
|
48
48
|
}
|
|
49
|
-
if (typeof
|
|
50
|
-
switch (typeof
|
|
49
|
+
if (typeof r == "object")
|
|
50
|
+
switch (typeof r.tag == "number" && console.error(
|
|
51
51
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
52
|
-
),
|
|
53
|
-
case
|
|
52
|
+
), r.$$typeof) {
|
|
53
|
+
case W:
|
|
54
54
|
return "Portal";
|
|
55
|
-
case
|
|
56
|
-
return
|
|
55
|
+
case V:
|
|
56
|
+
return r.displayName || "Context";
|
|
57
57
|
case J:
|
|
58
|
-
return (
|
|
59
|
-
case
|
|
60
|
-
var
|
|
61
|
-
return
|
|
62
|
-
case
|
|
63
|
-
return
|
|
64
|
-
case
|
|
65
|
-
|
|
58
|
+
return (r._context.displayName || "Context") + ".Consumer";
|
|
59
|
+
case z:
|
|
60
|
+
var e = r.render;
|
|
61
|
+
return r = r.displayName, r || (r = e.displayName || e.name || "", r = r !== "" ? "ForwardRef(" + r + ")" : "ForwardRef"), r;
|
|
62
|
+
case B:
|
|
63
|
+
return e = r.displayName || null, e !== null ? e : a(r.type) || "Memo";
|
|
64
|
+
case h:
|
|
65
|
+
e = r._payload, r = r._init;
|
|
66
66
|
try {
|
|
67
|
-
return r(e
|
|
67
|
+
return a(r(e));
|
|
68
68
|
} catch {
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
return null;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
return "" +
|
|
73
|
+
function l(r) {
|
|
74
|
+
return "" + r;
|
|
75
75
|
}
|
|
76
|
-
function t(
|
|
76
|
+
function t(r) {
|
|
77
77
|
try {
|
|
78
|
-
|
|
79
|
-
var
|
|
78
|
+
l(r);
|
|
79
|
+
var e = !1;
|
|
80
80
|
} catch {
|
|
81
|
-
|
|
81
|
+
e = !0;
|
|
82
82
|
}
|
|
83
|
-
if (
|
|
84
|
-
|
|
85
|
-
var
|
|
86
|
-
return
|
|
87
|
-
|
|
83
|
+
if (e) {
|
|
84
|
+
e = console;
|
|
85
|
+
var o = e.error, n = typeof Symbol == "function" && Symbol.toStringTag && r[Symbol.toStringTag] || r.constructor.name || "Object";
|
|
86
|
+
return o.call(
|
|
87
|
+
e,
|
|
88
88
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
89
|
-
|
|
90
|
-
),
|
|
89
|
+
n
|
|
90
|
+
), l(r);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
if (
|
|
95
|
-
if (typeof
|
|
93
|
+
function i(r) {
|
|
94
|
+
if (r === E) return "<>";
|
|
95
|
+
if (typeof r == "object" && r !== null && r.$$typeof === h)
|
|
96
96
|
return "<...>";
|
|
97
97
|
try {
|
|
98
|
-
var
|
|
99
|
-
return
|
|
98
|
+
var e = a(r);
|
|
99
|
+
return e ? "<" + e + ">" : "<...>";
|
|
100
100
|
} catch {
|
|
101
101
|
return "<...>";
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
var
|
|
106
|
-
return
|
|
104
|
+
function c() {
|
|
105
|
+
var r = R.A;
|
|
106
|
+
return r === null ? null : r.getOwner();
|
|
107
107
|
}
|
|
108
108
|
function u() {
|
|
109
109
|
return Error("react-stack-top-frame");
|
|
110
110
|
}
|
|
111
|
-
function b(
|
|
112
|
-
if (
|
|
113
|
-
var
|
|
114
|
-
if (
|
|
111
|
+
function b(r) {
|
|
112
|
+
if (U.call(r, "key")) {
|
|
113
|
+
var e = Object.getOwnPropertyDescriptor(r, "key").get;
|
|
114
|
+
if (e && e.isReactWarning) return !1;
|
|
115
115
|
}
|
|
116
|
-
return
|
|
116
|
+
return r.key !== void 0;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
119
|
-
function
|
|
120
|
-
|
|
118
|
+
function m(r, e) {
|
|
119
|
+
function o() {
|
|
120
|
+
C || (C = !0, console.error(
|
|
121
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)",
|
|
122
|
-
|
|
122
|
+
e
|
|
123
123
|
));
|
|
124
124
|
}
|
|
125
|
-
|
|
126
|
-
get:
|
|
125
|
+
o.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
126
|
+
get: o,
|
|
127
127
|
configurable: !0
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
var
|
|
132
|
-
return
|
|
130
|
+
function L() {
|
|
131
|
+
var r = a(this.type);
|
|
132
|
+
return P[r] || (P[r] = !0, console.error(
|
|
133
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."
|
|
134
|
-
)),
|
|
134
|
+
)), r = this.props.ref, r !== void 0 ? r : null;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
var
|
|
138
|
-
return
|
|
139
|
-
$$typeof:
|
|
140
|
-
type:
|
|
141
|
-
key:
|
|
142
|
-
props:
|
|
143
|
-
_owner:
|
|
144
|
-
}, (
|
|
136
|
+
function M(r, e, o, n, v, T) {
|
|
137
|
+
var s = o.ref;
|
|
138
|
+
return r = {
|
|
139
|
+
$$typeof: A,
|
|
140
|
+
type: r,
|
|
141
|
+
key: e,
|
|
142
|
+
props: o,
|
|
143
|
+
_owner: n
|
|
144
|
+
}, (s !== void 0 ? s : null) !== null ? Object.defineProperty(r, "ref", {
|
|
145
145
|
enumerable: !1,
|
|
146
|
-
get:
|
|
147
|
-
}) : Object.defineProperty(
|
|
146
|
+
get: L
|
|
147
|
+
}) : Object.defineProperty(r, "ref", { enumerable: !1, value: null }), r._store = {}, Object.defineProperty(r._store, "validated", {
|
|
148
148
|
configurable: !1,
|
|
149
149
|
enumerable: !1,
|
|
150
150
|
writable: !0,
|
|
151
151
|
value: 0
|
|
152
|
-
}), Object.defineProperty(
|
|
152
|
+
}), Object.defineProperty(r, "_debugInfo", {
|
|
153
153
|
configurable: !1,
|
|
154
154
|
enumerable: !1,
|
|
155
155
|
writable: !0,
|
|
156
156
|
value: null
|
|
157
|
-
}), Object.defineProperty(
|
|
157
|
+
}), Object.defineProperty(r, "_debugStack", {
|
|
158
158
|
configurable: !1,
|
|
159
159
|
enumerable: !1,
|
|
160
160
|
writable: !0,
|
|
161
|
-
value:
|
|
162
|
-
}), Object.defineProperty(
|
|
161
|
+
value: v
|
|
162
|
+
}), Object.defineProperty(r, "_debugTask", {
|
|
163
163
|
configurable: !1,
|
|
164
164
|
enumerable: !1,
|
|
165
165
|
writable: !0,
|
|
166
|
-
value:
|
|
167
|
-
}), Object.freeze && (Object.freeze(
|
|
166
|
+
value: T
|
|
167
|
+
}), Object.freeze && (Object.freeze(r.props), Object.freeze(r)), r;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
var
|
|
171
|
-
if (
|
|
172
|
-
if (
|
|
173
|
-
if (
|
|
174
|
-
for (
|
|
175
|
-
|
|
176
|
-
Object.freeze && Object.freeze(
|
|
169
|
+
function O(r, e, o, n, v, T) {
|
|
170
|
+
var s = e.children;
|
|
171
|
+
if (s !== void 0)
|
|
172
|
+
if (n)
|
|
173
|
+
if (K(s)) {
|
|
174
|
+
for (n = 0; n < s.length; n++)
|
|
175
|
+
S(s[n]);
|
|
176
|
+
Object.freeze && Object.freeze(s);
|
|
177
177
|
} else
|
|
178
178
|
console.error(
|
|
179
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."
|
|
180
180
|
);
|
|
181
|
-
else
|
|
182
|
-
if (
|
|
183
|
-
|
|
184
|
-
var
|
|
185
|
-
return
|
|
181
|
+
else S(s);
|
|
182
|
+
if (U.call(e, "key")) {
|
|
183
|
+
s = a(r);
|
|
184
|
+
var g = Object.keys(e).filter(function(rr) {
|
|
185
|
+
return rr !== "key";
|
|
186
186
|
});
|
|
187
|
-
|
|
187
|
+
n = 0 < g.length ? "{key: someKey, " + g.join(": ..., ") + ": ...}" : "{key: someKey}", $[s + n] || (g = 0 < g.length ? "{" + g.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
188
188
|
`A props object containing a "key" prop is being spread into JSX:
|
|
189
189
|
let props = %s;
|
|
190
190
|
<%s {...props} />
|
|
191
191
|
React keys must be passed directly to JSX without using spread:
|
|
192
192
|
let props = %s;
|
|
193
193
|
<%s key={someKey} {...props} />`,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
),
|
|
194
|
+
n,
|
|
195
|
+
s,
|
|
196
|
+
g,
|
|
197
|
+
s
|
|
198
|
+
), $[s + n] = !0);
|
|
199
199
|
}
|
|
200
|
-
if (
|
|
201
|
-
|
|
202
|
-
for (var
|
|
203
|
-
|
|
204
|
-
} else
|
|
205
|
-
return
|
|
206
|
-
|
|
207
|
-
typeof
|
|
208
|
-
),
|
|
209
|
-
|
|
210
|
-
i,
|
|
200
|
+
if (s = null, o !== void 0 && (t(o), s = "" + o), b(e) && (t(e.key), s = "" + e.key), "key" in e) {
|
|
201
|
+
o = {};
|
|
202
|
+
for (var x in e)
|
|
203
|
+
x !== "key" && (o[x] = e[x]);
|
|
204
|
+
} else o = e;
|
|
205
|
+
return s && m(
|
|
206
|
+
o,
|
|
207
|
+
typeof r == "function" ? r.displayName || r.name || "Unknown" : r
|
|
208
|
+
), M(
|
|
209
|
+
r,
|
|
211
210
|
s,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
211
|
+
o,
|
|
212
|
+
c(),
|
|
213
|
+
v,
|
|
214
|
+
T
|
|
215
215
|
);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
|
|
217
|
+
function S(r) {
|
|
218
|
+
j(r) ? r._store && (r._store.validated = 1) : typeof r == "object" && r !== null && r.$$typeof === h && (r._payload.status === "fulfilled" ? j(r._payload.value) && r._payload.value._store && (r._payload.value._store.validated = 1) : r._store && (r._store.validated = 1));
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
return typeof
|
|
220
|
+
function j(r) {
|
|
221
|
+
return typeof r == "object" && r !== null && r.$$typeof === A;
|
|
222
222
|
}
|
|
223
|
-
var
|
|
223
|
+
var p = er, A = Symbol.for("react.transitional.element"), W = Symbol.for("react.portal"), E = Symbol.for("react.fragment"), G = Symbol.for("react.strict_mode"), q = Symbol.for("react.profiler"), J = Symbol.for("react.consumer"), V = Symbol.for("react.context"), z = Symbol.for("react.forward_ref"), X = Symbol.for("react.suspense"), Q = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), H = Symbol.for("react.activity"), Z = Symbol.for("react.client.reference"), R = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, U = Object.prototype.hasOwnProperty, K = Array.isArray, w = console.createTask ? console.createTask : function() {
|
|
224
224
|
return null;
|
|
225
225
|
};
|
|
226
|
-
|
|
227
|
-
react_stack_bottom_frame: function(
|
|
228
|
-
return
|
|
226
|
+
p = {
|
|
227
|
+
react_stack_bottom_frame: function(r) {
|
|
228
|
+
return r();
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
|
-
var
|
|
232
|
-
|
|
231
|
+
var C, P = {}, N = p.react_stack_bottom_frame.bind(
|
|
232
|
+
p,
|
|
233
233
|
u
|
|
234
|
-
)(),
|
|
235
|
-
|
|
236
|
-
var
|
|
237
|
-
return
|
|
234
|
+
)(), Y = w(i(u)), $ = {};
|
|
235
|
+
k.Fragment = E, k.jsx = function(r, e, o) {
|
|
236
|
+
var n = 1e4 > R.recentlyCreatedOwnerStacks++;
|
|
237
|
+
return O(
|
|
238
|
+
r,
|
|
238
239
|
e,
|
|
239
|
-
|
|
240
|
-
s,
|
|
240
|
+
o,
|
|
241
241
|
!1,
|
|
242
|
-
|
|
243
|
-
|
|
242
|
+
n ? Error("react-stack-top-frame") : N,
|
|
243
|
+
n ? w(i(r)) : Y
|
|
244
244
|
);
|
|
245
|
-
},
|
|
246
|
-
var
|
|
247
|
-
return
|
|
245
|
+
}, k.jsxs = function(r, e, o) {
|
|
246
|
+
var n = 1e4 > R.recentlyCreatedOwnerStacks++;
|
|
247
|
+
return O(
|
|
248
|
+
r,
|
|
248
249
|
e,
|
|
249
|
-
|
|
250
|
-
s,
|
|
250
|
+
o,
|
|
251
251
|
!0,
|
|
252
|
-
|
|
253
|
-
|
|
252
|
+
n ? Error("react-stack-top-frame") : N,
|
|
253
|
+
n ? w(i(r)) : Y
|
|
254
254
|
);
|
|
255
255
|
};
|
|
256
|
-
})()),
|
|
256
|
+
})()), k;
|
|
257
257
|
}
|
|
258
|
-
var
|
|
259
|
-
function
|
|
260
|
-
return
|
|
258
|
+
var D;
|
|
259
|
+
function ar() {
|
|
260
|
+
return D || (D = 1, process.env.NODE_ENV === "production" ? _.exports = tr() : _.exports = or()), _.exports;
|
|
261
261
|
}
|
|
262
|
-
var
|
|
263
|
-
const
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
variant: t = "default",
|
|
267
|
-
size: o = "md",
|
|
268
|
-
className: d
|
|
269
|
-
}) => {
|
|
270
|
-
const u = {
|
|
271
|
-
sm: "text-sm p-3",
|
|
272
|
-
md: "text-base p-4",
|
|
273
|
-
lg: "text-lg p-6"
|
|
274
|
-
}, b = {
|
|
275
|
-
sm: "text-xs",
|
|
276
|
-
md: "text-sm",
|
|
277
|
-
lg: "text-base"
|
|
278
|
-
}, f = {
|
|
279
|
-
default: "border-l-4 border-gray-300 dark:border-gray-600 bg-gray-50 dark:bg-gray-800/50",
|
|
280
|
-
bordered: "border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800",
|
|
281
|
-
accent: "border-l-4 border-blue-500 dark:border-blue-400 bg-blue-50 dark:bg-blue-900/20"
|
|
282
|
-
};
|
|
283
|
-
return /* @__PURE__ */ c.jsxs(
|
|
284
|
-
"blockquote",
|
|
285
|
-
{
|
|
286
|
-
className: g(
|
|
287
|
-
"rounded-r-lg",
|
|
288
|
-
u[o],
|
|
289
|
-
f[t],
|
|
290
|
-
d
|
|
291
|
-
),
|
|
292
|
-
children: [
|
|
293
|
-
/* @__PURE__ */ c.jsx("p", { className: "text-gray-800 dark:text-gray-200 italic", children: r }),
|
|
294
|
-
n && /* @__PURE__ */ c.jsxs(
|
|
295
|
-
"footer",
|
|
296
|
-
{
|
|
297
|
-
className: g(
|
|
298
|
-
"mt-2 text-gray-600 dark:text-gray-400",
|
|
299
|
-
b[o]
|
|
300
|
-
),
|
|
301
|
-
children: [
|
|
302
|
-
"— ",
|
|
303
|
-
/* @__PURE__ */ c.jsx("cite", { className: "not-italic font-medium", children: n })
|
|
304
|
-
]
|
|
305
|
-
}
|
|
306
|
-
)
|
|
307
|
-
]
|
|
308
|
-
}
|
|
309
|
-
);
|
|
310
|
-
}, be = ({
|
|
311
|
-
className: r,
|
|
312
|
-
children: n,
|
|
262
|
+
var f = ar();
|
|
263
|
+
const lr = ({
|
|
264
|
+
className: a,
|
|
265
|
+
children: l,
|
|
313
266
|
disabled: t = !1,
|
|
314
|
-
onClick:
|
|
315
|
-
}) => /* @__PURE__ */
|
|
267
|
+
onClick: i
|
|
268
|
+
}) => /* @__PURE__ */ f.jsx(
|
|
316
269
|
"div",
|
|
317
270
|
{
|
|
318
|
-
className:
|
|
271
|
+
className: d(
|
|
319
272
|
"p-4 rounded-lg border transition-colors",
|
|
320
273
|
"bg-white dark:bg-gray-900",
|
|
321
274
|
"border-gray-200 dark:border-gray-700",
|
|
322
275
|
"text-gray-900 dark:text-white",
|
|
323
276
|
t && "opacity-50 cursor-not-allowed",
|
|
324
277
|
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
325
|
-
|
|
278
|
+
a
|
|
326
279
|
),
|
|
327
|
-
onClick: t ? void 0 :
|
|
280
|
+
onClick: t ? void 0 : i,
|
|
328
281
|
role: "region",
|
|
329
282
|
"aria-label": "UchecklistUprogress",
|
|
330
|
-
children:
|
|
283
|
+
children: l || "UchecklistUprogress Component"
|
|
331
284
|
}
|
|
332
|
-
),
|
|
333
|
-
className:
|
|
334
|
-
children:
|
|
285
|
+
), ir = ({
|
|
286
|
+
className: a,
|
|
287
|
+
children: l,
|
|
335
288
|
disabled: t = !1,
|
|
336
|
-
onClick:
|
|
337
|
-
}) => /* @__PURE__ */
|
|
289
|
+
onClick: i
|
|
290
|
+
}) => /* @__PURE__ */ f.jsx(
|
|
338
291
|
"div",
|
|
339
292
|
{
|
|
340
|
-
className:
|
|
293
|
+
className: d(
|
|
341
294
|
"p-4 rounded-lg border transition-colors",
|
|
342
295
|
"bg-white dark:bg-gray-900",
|
|
343
296
|
"border-gray-200 dark:border-gray-700",
|
|
344
297
|
"text-gray-900 dark:text-white",
|
|
345
298
|
t && "opacity-50 cursor-not-allowed",
|
|
346
299
|
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
347
|
-
|
|
300
|
+
a
|
|
348
301
|
),
|
|
349
|
-
onClick: t ? void 0 :
|
|
350
|
-
role: "region",
|
|
351
|
-
"aria-label": "UformUbuilder",
|
|
352
|
-
children: n || "UformUbuilder Component"
|
|
353
|
-
}
|
|
354
|
-
), me = ({
|
|
355
|
-
className: r,
|
|
356
|
-
children: n,
|
|
357
|
-
disabled: t = !1,
|
|
358
|
-
onClick: o
|
|
359
|
-
}) => /* @__PURE__ */ c.jsx(
|
|
360
|
-
"div",
|
|
361
|
-
{
|
|
362
|
-
className: g(
|
|
363
|
-
"p-4 rounded-lg border transition-colors",
|
|
364
|
-
"bg-white dark:bg-gray-900",
|
|
365
|
-
"border-gray-200 dark:border-gray-700",
|
|
366
|
-
"text-gray-900 dark:text-white",
|
|
367
|
-
t && "opacity-50 cursor-not-allowed",
|
|
368
|
-
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
369
|
-
r
|
|
370
|
-
),
|
|
371
|
-
onClick: t ? void 0 : o,
|
|
372
|
-
role: "region",
|
|
373
|
-
"aria-label": "UformUtemplate",
|
|
374
|
-
children: n || "UformUtemplate Component"
|
|
375
|
-
}
|
|
376
|
-
), xe = ({
|
|
377
|
-
className: r,
|
|
378
|
-
children: n,
|
|
379
|
-
disabled: t = !1,
|
|
380
|
-
onClick: o
|
|
381
|
-
}) => /* @__PURE__ */ c.jsx(
|
|
382
|
-
"div",
|
|
383
|
-
{
|
|
384
|
-
className: g(
|
|
385
|
-
"p-4 rounded-lg border transition-colors",
|
|
386
|
-
"bg-white dark:bg-gray-900",
|
|
387
|
-
"border-gray-200 dark:border-gray-700",
|
|
388
|
-
"text-gray-900 dark:text-white",
|
|
389
|
-
t && "opacity-50 cursor-not-allowed",
|
|
390
|
-
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
391
|
-
r
|
|
392
|
-
),
|
|
393
|
-
onClick: t ? void 0 : o,
|
|
394
|
-
role: "region",
|
|
395
|
-
"aria-label": "UformUvalidator",
|
|
396
|
-
children: n || "UformUvalidator Component"
|
|
397
|
-
}
|
|
398
|
-
), ke = ({
|
|
399
|
-
className: r,
|
|
400
|
-
children: n,
|
|
401
|
-
disabled: t = !1,
|
|
402
|
-
onClick: o
|
|
403
|
-
}) => /* @__PURE__ */ c.jsx(
|
|
404
|
-
"div",
|
|
405
|
-
{
|
|
406
|
-
className: g(
|
|
407
|
-
"p-4 rounded-lg border transition-colors",
|
|
408
|
-
"bg-white dark:bg-gray-900",
|
|
409
|
-
"border-gray-200 dark:border-gray-700",
|
|
410
|
-
"text-gray-900 dark:text-white",
|
|
411
|
-
t && "opacity-50 cursor-not-allowed",
|
|
412
|
-
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
413
|
-
r
|
|
414
|
-
),
|
|
415
|
-
onClick: t ? void 0 : o,
|
|
302
|
+
onClick: t ? void 0 : i,
|
|
416
303
|
role: "region",
|
|
417
304
|
"aria-label": "UnetworkUstatus",
|
|
418
|
-
children:
|
|
305
|
+
children: l || "UnetworkUstatus Component"
|
|
419
306
|
}
|
|
420
|
-
),
|
|
421
|
-
className:
|
|
422
|
-
children:
|
|
307
|
+
), cr = ({
|
|
308
|
+
className: a,
|
|
309
|
+
children: l,
|
|
423
310
|
disabled: t = !1,
|
|
424
|
-
onClick:
|
|
425
|
-
}) => /* @__PURE__ */
|
|
311
|
+
onClick: i
|
|
312
|
+
}) => /* @__PURE__ */ f.jsx(
|
|
426
313
|
"div",
|
|
427
314
|
{
|
|
428
|
-
className:
|
|
315
|
+
className: d(
|
|
429
316
|
"p-4 rounded-lg border transition-colors",
|
|
430
317
|
"bg-white dark:bg-gray-900",
|
|
431
318
|
"border-gray-200 dark:border-gray-700",
|
|
432
319
|
"text-gray-900 dark:text-white",
|
|
433
320
|
t && "opacity-50 cursor-not-allowed",
|
|
434
321
|
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
435
|
-
|
|
322
|
+
a
|
|
436
323
|
),
|
|
437
|
-
onClick: t ? void 0 :
|
|
324
|
+
onClick: t ? void 0 : i,
|
|
438
325
|
role: "region",
|
|
439
326
|
"aria-label": "UprocessUdiagram",
|
|
440
|
-
children:
|
|
327
|
+
children: l || "UprocessUdiagram Component"
|
|
441
328
|
}
|
|
442
|
-
),
|
|
443
|
-
className:
|
|
444
|
-
children:
|
|
329
|
+
), ur = ({
|
|
330
|
+
className: a,
|
|
331
|
+
children: l,
|
|
445
332
|
disabled: t
|
|
446
|
-
}) => /* @__PURE__ */
|
|
333
|
+
}) => /* @__PURE__ */ f.jsx(
|
|
447
334
|
"div",
|
|
448
335
|
{
|
|
449
|
-
className:
|
|
336
|
+
className: d(
|
|
450
337
|
"p-4 rounded-lg border transition-colors",
|
|
451
338
|
"bg-white dark:bg-gray-900",
|
|
452
339
|
"border-gray-200 dark:border-gray-700",
|
|
453
340
|
"text-gray-900 dark:text-white",
|
|
454
341
|
t && "opacity-50 cursor-not-allowed",
|
|
455
|
-
|
|
342
|
+
a
|
|
456
343
|
),
|
|
457
344
|
role: "region",
|
|
458
345
|
"aria-label": "QuoteGenerator",
|
|
459
|
-
children:
|
|
346
|
+
children: l || "QuoteGenerator Component"
|
|
460
347
|
}
|
|
461
|
-
),
|
|
462
|
-
className:
|
|
463
|
-
children:
|
|
348
|
+
), dr = ({
|
|
349
|
+
className: a,
|
|
350
|
+
children: l,
|
|
464
351
|
disabled: t
|
|
465
|
-
}) => /* @__PURE__ */
|
|
352
|
+
}) => /* @__PURE__ */ f.jsx(
|
|
466
353
|
"div",
|
|
467
354
|
{
|
|
468
|
-
className:
|
|
355
|
+
className: d(
|
|
469
356
|
"p-4 rounded-lg border transition-colors",
|
|
470
357
|
"bg-white dark:bg-gray-900",
|
|
471
358
|
"border-gray-200 dark:border-gray-700",
|
|
472
359
|
"text-gray-900 dark:text-white",
|
|
473
360
|
t && "opacity-50 cursor-not-allowed",
|
|
474
|
-
|
|
361
|
+
a
|
|
475
362
|
),
|
|
476
363
|
role: "region",
|
|
477
364
|
"aria-label": "SafetyChecklist",
|
|
478
|
-
children:
|
|
479
|
-
}
|
|
480
|
-
), U = {
|
|
481
|
-
// Badge variants
|
|
482
|
-
badge: {
|
|
483
|
-
default: () => "bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
|
|
484
|
-
primary: () => "bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
|
|
485
|
-
success: () => "bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
|
|
486
|
-
warning: () => "bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
|
|
487
|
-
error: () => "bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
|
|
488
|
-
// Web3 specific
|
|
489
|
-
ethereum: () => "bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
|
|
490
|
-
solana: () => "bg-purple-100 text-purple-800 dark:bg-purple-900/30 dark:text-purple-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
|
|
491
|
-
// Sizes
|
|
492
|
-
small: (r = "default") => {
|
|
493
|
-
const n = {
|
|
494
|
-
default: "bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300",
|
|
495
|
-
primary: "bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",
|
|
496
|
-
success: "bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",
|
|
497
|
-
warning: "bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300",
|
|
498
|
-
error: "bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300"
|
|
499
|
-
};
|
|
500
|
-
return `${n[r] || n.default} inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium`;
|
|
501
|
-
},
|
|
502
|
-
large: (r = "default") => {
|
|
503
|
-
const n = {
|
|
504
|
-
default: "bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300",
|
|
505
|
-
primary: "bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",
|
|
506
|
-
success: "bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",
|
|
507
|
-
warning: "bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300",
|
|
508
|
-
error: "bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300"
|
|
509
|
-
};
|
|
510
|
-
return `${n[r] || n.default} inline-flex items-center px-3 py-1 rounded-full text-sm font-medium`;
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
}, le = {
|
|
514
|
-
success: "bg-green-500",
|
|
515
|
-
error: "bg-red-500",
|
|
516
|
-
warning: "bg-orange-500",
|
|
517
|
-
attention: "bg-amber-500",
|
|
518
|
-
info: "bg-blue-500",
|
|
519
|
-
neutral: "bg-gray-500"
|
|
520
|
-
};
|
|
521
|
-
function v(r) {
|
|
522
|
-
return le[r];
|
|
523
|
-
}
|
|
524
|
-
const ie = (r) => {
|
|
525
|
-
switch (r) {
|
|
526
|
-
case "verified":
|
|
527
|
-
case "success":
|
|
528
|
-
return v("success");
|
|
529
|
-
case "connected":
|
|
530
|
-
case "warning":
|
|
531
|
-
return v("warning");
|
|
532
|
-
case "disconnected":
|
|
533
|
-
case "error":
|
|
534
|
-
return v("error");
|
|
535
|
-
case "pending":
|
|
536
|
-
return v("info");
|
|
537
|
-
default:
|
|
538
|
-
return v("neutral");
|
|
365
|
+
children: l || "SafetyChecklist Component"
|
|
539
366
|
}
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
return "w-1.5 h-1.5";
|
|
544
|
-
case "lg":
|
|
545
|
-
return "w-3 h-3";
|
|
546
|
-
default:
|
|
547
|
-
return "w-2 h-2";
|
|
548
|
-
}
|
|
549
|
-
}, he = ({
|
|
550
|
-
status: r,
|
|
551
|
-
label: n,
|
|
552
|
-
showDot: t = !0,
|
|
553
|
-
size: o = "md"
|
|
554
|
-
}) => {
|
|
555
|
-
const u = n || {
|
|
556
|
-
verified: "Verified",
|
|
557
|
-
connected: "Connected",
|
|
558
|
-
disconnected: "Disconnected",
|
|
559
|
-
pending: "Pending",
|
|
560
|
-
error: "Error",
|
|
561
|
-
success: "Success",
|
|
562
|
-
warning: "Warning"
|
|
563
|
-
}[r], f = ((h, w) => {
|
|
564
|
-
const E = { sm: "small", md: "default", lg: "large" }, k = {
|
|
565
|
-
verified: "success",
|
|
566
|
-
success: "success",
|
|
567
|
-
connected: "warning",
|
|
568
|
-
warning: "warning",
|
|
569
|
-
disconnected: "error",
|
|
570
|
-
error: "error",
|
|
571
|
-
pending: "primary"
|
|
572
|
-
}[h] || "default", _ = E[w];
|
|
573
|
-
return _ === "default" ? U.badge[k]() : U.badge[_](k);
|
|
574
|
-
})(r, o), C = ie(r), S = de(o);
|
|
575
|
-
return /* @__PURE__ */ c.jsxs("span", { className: f, children: [
|
|
576
|
-
t && /* @__PURE__ */ c.jsx(
|
|
577
|
-
"span",
|
|
578
|
-
{
|
|
579
|
-
className: `inline-block ${S} rounded-full ${C} mr-1`
|
|
580
|
-
}
|
|
581
|
-
),
|
|
582
|
-
u
|
|
583
|
-
] });
|
|
584
|
-
}, we = ({
|
|
585
|
-
chainType: r,
|
|
586
|
-
size: n = "md"
|
|
587
|
-
}) => {
|
|
588
|
-
if (r === "unknown") return null;
|
|
589
|
-
const t = r === "solana" ? "SOL" : "ETH", d = { sm: "small", md: "default", lg: "large" }[n], u = () => {
|
|
590
|
-
const b = r === "solana" ? "solana" : "ethereum";
|
|
591
|
-
return d === "default" ? U.badge[b]() : U.badge[d](b);
|
|
592
|
-
};
|
|
593
|
-
return /* @__PURE__ */ c.jsx("span", { className: u(), children: t });
|
|
594
|
-
}, Ee = ({
|
|
595
|
-
className: r,
|
|
596
|
-
children: n,
|
|
367
|
+
), fr = ({
|
|
368
|
+
className: a,
|
|
369
|
+
children: l,
|
|
597
370
|
disabled: t = !1,
|
|
598
|
-
onClick:
|
|
599
|
-
}) => /* @__PURE__ */
|
|
371
|
+
onClick: i
|
|
372
|
+
}) => /* @__PURE__ */ f.jsx(
|
|
600
373
|
"div",
|
|
601
374
|
{
|
|
602
|
-
className:
|
|
375
|
+
className: d(
|
|
603
376
|
"p-4 rounded-lg border transition-colors",
|
|
604
377
|
"bg-white dark:bg-gray-900",
|
|
605
378
|
"border-gray-200 dark:border-gray-700",
|
|
606
379
|
"text-gray-900 dark:text-white",
|
|
607
380
|
t && "opacity-50 cursor-not-allowed",
|
|
608
381
|
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
609
|
-
|
|
382
|
+
a
|
|
610
383
|
),
|
|
611
|
-
onClick: t ? void 0 :
|
|
384
|
+
onClick: t ? void 0 : i,
|
|
612
385
|
role: "region",
|
|
613
386
|
"aria-label": "UstickyUnote",
|
|
614
|
-
children:
|
|
387
|
+
children: l || "UstickyUnote Component"
|
|
615
388
|
}
|
|
616
|
-
),
|
|
617
|
-
className:
|
|
618
|
-
children:
|
|
389
|
+
), gr = ({
|
|
390
|
+
className: a,
|
|
391
|
+
children: l,
|
|
619
392
|
disabled: t = !1,
|
|
620
|
-
onClick:
|
|
621
|
-
}) => /* @__PURE__ */
|
|
393
|
+
onClick: i
|
|
394
|
+
}) => /* @__PURE__ */ f.jsx(
|
|
622
395
|
"div",
|
|
623
396
|
{
|
|
624
|
-
className:
|
|
397
|
+
className: d(
|
|
625
398
|
"p-4 rounded-lg border transition-colors",
|
|
626
399
|
"bg-white dark:bg-gray-900",
|
|
627
400
|
"border-gray-200 dark:border-gray-700",
|
|
628
401
|
"text-gray-900 dark:text-white",
|
|
629
402
|
t && "opacity-50 cursor-not-allowed",
|
|
630
403
|
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
631
|
-
|
|
404
|
+
a
|
|
632
405
|
),
|
|
633
|
-
onClick: t ? void 0 :
|
|
406
|
+
onClick: t ? void 0 : i,
|
|
634
407
|
role: "region",
|
|
635
408
|
"aria-label": "UsystemUstatus",
|
|
636
|
-
children:
|
|
409
|
+
children: l || "UsystemUstatus Component"
|
|
637
410
|
}
|
|
638
411
|
);
|
|
639
412
|
export {
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
me as UformUtemplate,
|
|
648
|
-
xe as UformUvalidator,
|
|
649
|
-
ke as UnetworkUstatus,
|
|
650
|
-
ye as UprocessUdiagram,
|
|
651
|
-
Ee as UstickyUnote,
|
|
652
|
-
_e as UsystemUstatus
|
|
413
|
+
ur as QuoteGenerator,
|
|
414
|
+
dr as SafetyChecklist,
|
|
415
|
+
lr as UchecklistUprogress,
|
|
416
|
+
ir as UnetworkUstatus,
|
|
417
|
+
cr as UprocessUdiagram,
|
|
418
|
+
fr as UstickyUnote,
|
|
419
|
+
gr as UsystemUstatus
|
|
653
420
|
};
|
|
654
421
|
//# sourceMappingURL=index.esm.js.map
|