@ikonai/sdk-react-ui-radix 0.0.4 → 0.0.5
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/index.js +302 -642
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
function ar(e) {
|
|
5
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
|
-
}
|
|
7
|
-
var L = { exports: {} }, k = {};
|
|
1
|
+
import ce, { memo as w } from "react";
|
|
2
|
+
import { Box as le, Button as de, Heading as fe, Text as pe, TextArea as Re, TextField as me } from "@radix-ui/themes";
|
|
3
|
+
var O = { exports: {} }, A = {};
|
|
8
4
|
/**
|
|
9
5
|
* @license React
|
|
10
6
|
* react-jsx-runtime.production.js
|
|
@@ -14,29 +10,29 @@ var L = { exports: {} }, k = {};
|
|
|
14
10
|
* This source code is licensed under the MIT license found in the
|
|
15
11
|
* LICENSE file in the root directory of this source tree.
|
|
16
12
|
*/
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
-
var
|
|
22
|
-
function t
|
|
23
|
-
var
|
|
24
|
-
if (
|
|
25
|
-
|
|
26
|
-
for (var
|
|
27
|
-
|
|
28
|
-
} else
|
|
29
|
-
return
|
|
30
|
-
$$typeof:
|
|
31
|
-
type:
|
|
32
|
-
key:
|
|
33
|
-
ref:
|
|
34
|
-
props:
|
|
13
|
+
var J;
|
|
14
|
+
function ve() {
|
|
15
|
+
if (J) return A;
|
|
16
|
+
J = 1;
|
|
17
|
+
var r = Symbol.for("react.transitional.element"), i = Symbol.for("react.fragment");
|
|
18
|
+
function o(t, a, u) {
|
|
19
|
+
var l = null;
|
|
20
|
+
if (u !== void 0 && (l = "" + u), a.key !== void 0 && (l = "" + a.key), "key" in a) {
|
|
21
|
+
u = {};
|
|
22
|
+
for (var d in a)
|
|
23
|
+
d !== "key" && (u[d] = a[d]);
|
|
24
|
+
} else u = a;
|
|
25
|
+
return a = u.ref, {
|
|
26
|
+
$$typeof: r,
|
|
27
|
+
type: t,
|
|
28
|
+
key: l,
|
|
29
|
+
ref: a !== void 0 ? a : null,
|
|
30
|
+
props: u
|
|
35
31
|
};
|
|
36
32
|
}
|
|
37
|
-
return
|
|
33
|
+
return A.Fragment = i, A.jsx = o, A.jsxs = o, A;
|
|
38
34
|
}
|
|
39
|
-
var
|
|
35
|
+
var S = {};
|
|
40
36
|
/**
|
|
41
37
|
* @license React
|
|
42
38
|
* react-jsx-runtime.development.js
|
|
@@ -46,743 +42,407 @@ var V = {};
|
|
|
46
42
|
* This source code is licensed under the MIT license found in the
|
|
47
43
|
* LICENSE file in the root directory of this source tree.
|
|
48
44
|
*/
|
|
49
|
-
var
|
|
50
|
-
function
|
|
51
|
-
return
|
|
52
|
-
function e
|
|
53
|
-
if (
|
|
54
|
-
if (typeof
|
|
55
|
-
return
|
|
56
|
-
if (typeof
|
|
57
|
-
switch (
|
|
58
|
-
case
|
|
45
|
+
var z;
|
|
46
|
+
function be() {
|
|
47
|
+
return z || (z = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
|
+
function r(e) {
|
|
49
|
+
if (e == null) return null;
|
|
50
|
+
if (typeof e == "function")
|
|
51
|
+
return e.$$typeof === ie ? null : e.displayName || e.name || null;
|
|
52
|
+
if (typeof e == "string") return e;
|
|
53
|
+
switch (e) {
|
|
54
|
+
case v:
|
|
59
55
|
return "Fragment";
|
|
60
|
-
case
|
|
56
|
+
case Z:
|
|
61
57
|
return "Profiler";
|
|
62
|
-
case
|
|
58
|
+
case X:
|
|
63
59
|
return "StrictMode";
|
|
64
|
-
case
|
|
60
|
+
case te:
|
|
65
61
|
return "Suspense";
|
|
66
|
-
case
|
|
62
|
+
case ne:
|
|
67
63
|
return "SuspenseList";
|
|
68
|
-
case
|
|
64
|
+
case ae:
|
|
69
65
|
return "Activity";
|
|
70
66
|
}
|
|
71
|
-
if (typeof
|
|
72
|
-
switch (typeof
|
|
67
|
+
if (typeof e == "object")
|
|
68
|
+
switch (typeof e.tag == "number" && console.error(
|
|
73
69
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
74
|
-
),
|
|
75
|
-
case
|
|
70
|
+
), e.$$typeof) {
|
|
71
|
+
case y:
|
|
76
72
|
return "Portal";
|
|
77
|
-
case
|
|
78
|
-
return (
|
|
79
|
-
case
|
|
80
|
-
return (
|
|
81
|
-
case
|
|
82
|
-
var
|
|
83
|
-
return
|
|
84
|
-
case
|
|
85
|
-
return
|
|
86
|
-
case
|
|
87
|
-
|
|
73
|
+
case ee:
|
|
74
|
+
return (e.displayName || "Context") + ".Provider";
|
|
75
|
+
case Q:
|
|
76
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
77
|
+
case re:
|
|
78
|
+
var n = e.render;
|
|
79
|
+
return e = e.displayName, e || (e = n.displayName || n.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
80
|
+
case oe:
|
|
81
|
+
return n = e.displayName || null, n !== null ? n : r(e.type) || "Memo";
|
|
82
|
+
case M:
|
|
83
|
+
n = e._payload, e = e._init;
|
|
88
84
|
try {
|
|
89
|
-
return e(
|
|
85
|
+
return r(e(n));
|
|
90
86
|
} catch {
|
|
91
87
|
}
|
|
92
88
|
}
|
|
93
89
|
return null;
|
|
94
90
|
}
|
|
95
|
-
function
|
|
96
|
-
return "" +
|
|
91
|
+
function i(e) {
|
|
92
|
+
return "" + e;
|
|
97
93
|
}
|
|
98
|
-
function
|
|
94
|
+
function o(e) {
|
|
99
95
|
try {
|
|
100
|
-
|
|
101
|
-
var
|
|
96
|
+
i(e);
|
|
97
|
+
var n = !1;
|
|
102
98
|
} catch {
|
|
103
|
-
|
|
99
|
+
n = !0;
|
|
104
100
|
}
|
|
105
|
-
if (
|
|
106
|
-
|
|
107
|
-
var
|
|
108
|
-
return
|
|
109
|
-
|
|
101
|
+
if (n) {
|
|
102
|
+
n = console;
|
|
103
|
+
var c = n.error, p = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
104
|
+
return c.call(
|
|
105
|
+
n,
|
|
110
106
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
111
|
-
|
|
112
|
-
),
|
|
107
|
+
p
|
|
108
|
+
), i(e);
|
|
113
109
|
}
|
|
114
110
|
}
|
|
115
|
-
function
|
|
116
|
-
if (
|
|
117
|
-
if (typeof
|
|
111
|
+
function t(e) {
|
|
112
|
+
if (e === v) return "<>";
|
|
113
|
+
if (typeof e == "object" && e !== null && e.$$typeof === M)
|
|
118
114
|
return "<...>";
|
|
119
115
|
try {
|
|
120
|
-
var
|
|
121
|
-
return
|
|
116
|
+
var n = r(e);
|
|
117
|
+
return n ? "<" + n + ">" : "<...>";
|
|
122
118
|
} catch {
|
|
123
119
|
return "<...>";
|
|
124
120
|
}
|
|
125
121
|
}
|
|
126
|
-
function
|
|
127
|
-
var
|
|
128
|
-
return
|
|
122
|
+
function a() {
|
|
123
|
+
var e = C.A;
|
|
124
|
+
return e === null ? null : e.getOwner();
|
|
129
125
|
}
|
|
130
|
-
function
|
|
126
|
+
function u() {
|
|
131
127
|
return Error("react-stack-top-frame");
|
|
132
128
|
}
|
|
133
|
-
function
|
|
134
|
-
if (
|
|
135
|
-
var
|
|
136
|
-
if (
|
|
129
|
+
function l(e) {
|
|
130
|
+
if ($.call(e, "key")) {
|
|
131
|
+
var n = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
132
|
+
if (n && n.isReactWarning) return !1;
|
|
137
133
|
}
|
|
138
|
-
return
|
|
134
|
+
return e.key !== void 0;
|
|
139
135
|
}
|
|
140
|
-
function
|
|
141
|
-
function
|
|
142
|
-
|
|
136
|
+
function d(e, n) {
|
|
137
|
+
function c() {
|
|
138
|
+
L || (L = !0, console.error(
|
|
143
139
|
"%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)",
|
|
144
|
-
|
|
140
|
+
n
|
|
145
141
|
));
|
|
146
142
|
}
|
|
147
|
-
|
|
148
|
-
get:
|
|
143
|
+
c.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
144
|
+
get: c,
|
|
149
145
|
configurable: !0
|
|
150
146
|
});
|
|
151
147
|
}
|
|
152
|
-
function
|
|
153
|
-
var
|
|
154
|
-
return
|
|
148
|
+
function f() {
|
|
149
|
+
var e = r(this.type);
|
|
150
|
+
return U[e] || (U[e] = !0, console.error(
|
|
155
151
|
"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."
|
|
156
|
-
)),
|
|
152
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
157
153
|
}
|
|
158
|
-
function
|
|
159
|
-
return
|
|
160
|
-
$$typeof:
|
|
161
|
-
type:
|
|
162
|
-
key:
|
|
163
|
-
props:
|
|
164
|
-
_owner:
|
|
165
|
-
}, (
|
|
154
|
+
function m(e, n, c, p, _, h, V, Y) {
|
|
155
|
+
return c = h.ref, e = {
|
|
156
|
+
$$typeof: T,
|
|
157
|
+
type: e,
|
|
158
|
+
key: n,
|
|
159
|
+
props: h,
|
|
160
|
+
_owner: _
|
|
161
|
+
}, (c !== void 0 ? c : null) !== null ? Object.defineProperty(e, "ref", {
|
|
166
162
|
enumerable: !1,
|
|
167
|
-
get:
|
|
168
|
-
}) : Object.defineProperty(
|
|
163
|
+
get: f
|
|
164
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
169
165
|
configurable: !1,
|
|
170
166
|
enumerable: !1,
|
|
171
167
|
writable: !0,
|
|
172
168
|
value: 0
|
|
173
|
-
}), Object.defineProperty(
|
|
169
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
174
170
|
configurable: !1,
|
|
175
171
|
enumerable: !1,
|
|
176
172
|
writable: !0,
|
|
177
173
|
value: null
|
|
178
|
-
}), Object.defineProperty(
|
|
174
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
179
175
|
configurable: !1,
|
|
180
176
|
enumerable: !1,
|
|
181
177
|
writable: !0,
|
|
182
|
-
value:
|
|
183
|
-
}), Object.defineProperty(
|
|
178
|
+
value: V
|
|
179
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
184
180
|
configurable: !1,
|
|
185
181
|
enumerable: !1,
|
|
186
182
|
writable: !0,
|
|
187
|
-
value:
|
|
188
|
-
}), Object.freeze && (Object.freeze(
|
|
183
|
+
value: Y
|
|
184
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
189
185
|
}
|
|
190
|
-
function
|
|
191
|
-
var
|
|
192
|
-
if (
|
|
193
|
-
if (
|
|
194
|
-
if (
|
|
195
|
-
for (
|
|
196
|
-
|
|
197
|
-
Object.freeze && Object.freeze(
|
|
186
|
+
function b(e, n, c, p, _, h, V, Y) {
|
|
187
|
+
var R = n.children;
|
|
188
|
+
if (R !== void 0)
|
|
189
|
+
if (p)
|
|
190
|
+
if (se(R)) {
|
|
191
|
+
for (p = 0; p < R.length; p++)
|
|
192
|
+
E(R[p]);
|
|
193
|
+
Object.freeze && Object.freeze(R);
|
|
198
194
|
} else
|
|
199
195
|
console.error(
|
|
200
196
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
201
197
|
);
|
|
202
|
-
else
|
|
203
|
-
if (
|
|
204
|
-
|
|
205
|
-
var
|
|
206
|
-
return
|
|
198
|
+
else E(R);
|
|
199
|
+
if ($.call(n, "key")) {
|
|
200
|
+
R = r(e);
|
|
201
|
+
var g = Object.keys(n).filter(function(ue) {
|
|
202
|
+
return ue !== "key";
|
|
207
203
|
});
|
|
208
|
-
|
|
204
|
+
p = 0 < g.length ? "{key: someKey, " + g.join(": ..., ") + ": ...}" : "{key: someKey}", q[R + p] || (g = 0 < g.length ? "{" + g.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
209
205
|
`A props object containing a "key" prop is being spread into JSX:
|
|
210
206
|
let props = %s;
|
|
211
207
|
<%s {...props} />
|
|
212
208
|
React keys must be passed directly to JSX without using spread:
|
|
213
209
|
let props = %s;
|
|
214
210
|
<%s key={someKey} {...props} />`,
|
|
211
|
+
p,
|
|
212
|
+
R,
|
|
215
213
|
g,
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
h
|
|
219
|
-
), pe[h + g] = !0);
|
|
214
|
+
R
|
|
215
|
+
), q[R + p] = !0);
|
|
220
216
|
}
|
|
221
|
-
if (
|
|
222
|
-
|
|
223
|
-
for (var
|
|
224
|
-
|
|
225
|
-
} else
|
|
226
|
-
return
|
|
227
|
-
|
|
228
|
-
typeof
|
|
229
|
-
),
|
|
230
|
-
|
|
217
|
+
if (R = null, c !== void 0 && (o(c), R = "" + c), l(n) && (o(n.key), R = "" + n.key), "key" in n) {
|
|
218
|
+
c = {};
|
|
219
|
+
for (var D in n)
|
|
220
|
+
D !== "key" && (c[D] = n[D]);
|
|
221
|
+
} else c = n;
|
|
222
|
+
return R && d(
|
|
223
|
+
c,
|
|
224
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
225
|
+
), m(
|
|
226
|
+
e,
|
|
227
|
+
R,
|
|
231
228
|
h,
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
X
|
|
229
|
+
_,
|
|
230
|
+
a(),
|
|
231
|
+
c,
|
|
232
|
+
V,
|
|
233
|
+
Y
|
|
238
234
|
);
|
|
239
235
|
}
|
|
240
|
-
function
|
|
241
|
-
typeof
|
|
236
|
+
function E(e) {
|
|
237
|
+
typeof e == "object" && e !== null && e.$$typeof === T && e._store && (e._store.validated = 1);
|
|
242
238
|
}
|
|
243
|
-
var
|
|
239
|
+
var s = ce, T = Symbol.for("react.transitional.element"), y = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), X = Symbol.for("react.strict_mode"), Z = Symbol.for("react.profiler"), Q = Symbol.for("react.consumer"), ee = Symbol.for("react.context"), re = Symbol.for("react.forward_ref"), te = Symbol.for("react.suspense"), ne = Symbol.for("react.suspense_list"), oe = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), ae = Symbol.for("react.activity"), ie = Symbol.for("react.client.reference"), C = s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, $ = Object.prototype.hasOwnProperty, se = Array.isArray, I = console.createTask ? console.createTask : function() {
|
|
244
240
|
return null;
|
|
245
241
|
};
|
|
246
|
-
|
|
247
|
-
"react-stack-bottom-frame": function(
|
|
248
|
-
return
|
|
242
|
+
s = {
|
|
243
|
+
"react-stack-bottom-frame": function(e) {
|
|
244
|
+
return e();
|
|
249
245
|
}
|
|
250
246
|
};
|
|
251
|
-
var
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
)(),
|
|
255
|
-
|
|
256
|
-
var
|
|
257
|
-
return
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
247
|
+
var L, U = {}, B = s["react-stack-bottom-frame"].bind(
|
|
248
|
+
s,
|
|
249
|
+
u
|
|
250
|
+
)(), W = I(t(u)), q = {};
|
|
251
|
+
S.Fragment = v, S.jsx = function(e, n, c, p, _) {
|
|
252
|
+
var h = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
253
|
+
return b(
|
|
254
|
+
e,
|
|
255
|
+
n,
|
|
256
|
+
c,
|
|
261
257
|
!1,
|
|
262
|
-
g,
|
|
263
|
-
$,
|
|
264
|
-
x ? Error("react-stack-top-frame") : ue,
|
|
265
|
-
x ? q(a(o)) : ce
|
|
266
|
-
);
|
|
267
|
-
}, V.jsxs = function(o, p, v, g, $) {
|
|
268
|
-
var x = 1e4 > U.recentlyCreatedOwnerStacks++;
|
|
269
|
-
return m(
|
|
270
|
-
o,
|
|
271
258
|
p,
|
|
272
|
-
|
|
259
|
+
_,
|
|
260
|
+
h ? Error("react-stack-top-frame") : B,
|
|
261
|
+
h ? I(t(e)) : W
|
|
262
|
+
);
|
|
263
|
+
}, S.jsxs = function(e, n, c, p, _) {
|
|
264
|
+
var h = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
265
|
+
return b(
|
|
266
|
+
e,
|
|
267
|
+
n,
|
|
268
|
+
c,
|
|
273
269
|
!0,
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
270
|
+
p,
|
|
271
|
+
_,
|
|
272
|
+
h ? Error("react-stack-top-frame") : B,
|
|
273
|
+
h ? I(t(e)) : W
|
|
278
274
|
);
|
|
279
275
|
};
|
|
280
|
-
}()),
|
|
281
|
-
}
|
|
282
|
-
var me;
|
|
283
|
-
function lr() {
|
|
284
|
-
return me || (me = 1, process.env.NODE_ENV === "production" ? L.exports = or() : L.exports = ir()), L.exports;
|
|
285
|
-
}
|
|
286
|
-
var E = lr();
|
|
287
|
-
function ve(e, r) {
|
|
288
|
-
if (typeof e == "function")
|
|
289
|
-
return e(r);
|
|
290
|
-
e != null && (e.current = r);
|
|
291
|
-
}
|
|
292
|
-
function Ne(...e) {
|
|
293
|
-
return (r) => {
|
|
294
|
-
let t = !1;
|
|
295
|
-
const a = e.map((s) => {
|
|
296
|
-
const n = ve(s, r);
|
|
297
|
-
return !t && typeof n == "function" && (t = !0), n;
|
|
298
|
-
});
|
|
299
|
-
if (t)
|
|
300
|
-
return () => {
|
|
301
|
-
for (let s = 0; s < a.length; s++) {
|
|
302
|
-
const n = a[s];
|
|
303
|
-
typeof n == "function" ? n() : ve(e[s], null);
|
|
304
|
-
}
|
|
305
|
-
};
|
|
306
|
-
};
|
|
307
|
-
}
|
|
308
|
-
// @__NO_SIDE_EFFECTS__
|
|
309
|
-
function Re(e) {
|
|
310
|
-
const r = /* @__PURE__ */ ur(e), t = c.forwardRef((a, s) => {
|
|
311
|
-
const { children: n, ...i } = a, l = c.Children.toArray(n), u = l.find(pr);
|
|
312
|
-
if (u) {
|
|
313
|
-
const d = u.props.children, m = l.map((y) => y === u ? c.Children.count(d) > 1 ? c.Children.only(null) : c.isValidElement(d) ? d.props.children : null : y);
|
|
314
|
-
return /* @__PURE__ */ E.jsx(r, { ...i, ref: s, children: c.isValidElement(d) ? c.cloneElement(d, void 0, m) : null });
|
|
315
|
-
}
|
|
316
|
-
return /* @__PURE__ */ E.jsx(r, { ...i, ref: s, children: n });
|
|
317
|
-
});
|
|
318
|
-
return t.displayName = `${e}.Slot`, t;
|
|
319
|
-
}
|
|
320
|
-
var M = /* @__PURE__ */ Re("Slot");
|
|
321
|
-
// @__NO_SIDE_EFFECTS__
|
|
322
|
-
function ur(e) {
|
|
323
|
-
const r = c.forwardRef((t, a) => {
|
|
324
|
-
const { children: s, ...n } = t;
|
|
325
|
-
if (c.isValidElement(s)) {
|
|
326
|
-
const i = fr(s), l = dr(n, s.props);
|
|
327
|
-
return s.type !== c.Fragment && (l.ref = a ? Ne(a, i) : i), c.cloneElement(s, l);
|
|
328
|
-
}
|
|
329
|
-
return c.Children.count(s) > 1 ? c.Children.only(null) : null;
|
|
330
|
-
});
|
|
331
|
-
return r.displayName = `${e}.SlotClone`, r;
|
|
332
|
-
}
|
|
333
|
-
var cr = Symbol("radix.slottable");
|
|
334
|
-
function pr(e) {
|
|
335
|
-
return c.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === cr;
|
|
336
|
-
}
|
|
337
|
-
function dr(e, r) {
|
|
338
|
-
const t = { ...r };
|
|
339
|
-
for (const a in r) {
|
|
340
|
-
const s = e[a], n = r[a];
|
|
341
|
-
/^on[A-Z]/.test(a) ? s && n ? t[a] = (...l) => {
|
|
342
|
-
const u = n(...l);
|
|
343
|
-
return s(...l), u;
|
|
344
|
-
} : s && (t[a] = s) : a === "style" ? t[a] = { ...s, ...n } : a === "className" && (t[a] = [s, n].filter(Boolean).join(" "));
|
|
345
|
-
}
|
|
346
|
-
return { ...e, ...t };
|
|
347
|
-
}
|
|
348
|
-
function fr(e) {
|
|
349
|
-
let r = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
350
|
-
return t ? e.ref : (r = Object.getOwnPropertyDescriptor(e, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
351
|
-
}
|
|
352
|
-
var mr = [
|
|
353
|
-
"a",
|
|
354
|
-
"button",
|
|
355
|
-
"div",
|
|
356
|
-
"form",
|
|
357
|
-
"h2",
|
|
358
|
-
"h3",
|
|
359
|
-
"img",
|
|
360
|
-
"input",
|
|
361
|
-
"label",
|
|
362
|
-
"li",
|
|
363
|
-
"nav",
|
|
364
|
-
"ol",
|
|
365
|
-
"p",
|
|
366
|
-
"select",
|
|
367
|
-
"span",
|
|
368
|
-
"svg",
|
|
369
|
-
"ul"
|
|
370
|
-
], ee = mr.reduce((e, r) => {
|
|
371
|
-
const t = /* @__PURE__ */ Re(`Primitive.${r}`), a = c.forwardRef((s, n) => {
|
|
372
|
-
const { asChild: i, ...l } = s, u = i ? t : r;
|
|
373
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ E.jsx(u, { ...l, ref: n });
|
|
374
|
-
});
|
|
375
|
-
return a.displayName = `Primitive.${r}`, { ...e, [r]: a };
|
|
376
|
-
}, {});
|
|
377
|
-
function vr(e, r) {
|
|
378
|
-
e && nr.flushSync(() => e.dispatchEvent(r));
|
|
379
|
-
}
|
|
380
|
-
var yr = Object.freeze({
|
|
381
|
-
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
382
|
-
position: "absolute",
|
|
383
|
-
border: 0,
|
|
384
|
-
width: 1,
|
|
385
|
-
height: 1,
|
|
386
|
-
padding: 0,
|
|
387
|
-
margin: -1,
|
|
388
|
-
overflow: "hidden",
|
|
389
|
-
clip: "rect(0, 0, 0, 0)",
|
|
390
|
-
whiteSpace: "nowrap",
|
|
391
|
-
wordWrap: "normal"
|
|
392
|
-
}), gr = "VisuallyHidden", xe = c.forwardRef(
|
|
393
|
-
(e, r) => /* @__PURE__ */ E.jsx(
|
|
394
|
-
ee.span,
|
|
395
|
-
{
|
|
396
|
-
...e,
|
|
397
|
-
ref: r,
|
|
398
|
-
style: { ...yr, ...e.style }
|
|
399
|
-
}
|
|
400
|
-
)
|
|
401
|
-
);
|
|
402
|
-
xe.displayName = gr;
|
|
403
|
-
var hr = xe, K = { exports: {} };
|
|
404
|
-
/*!
|
|
405
|
-
Copyright (c) 2018 Jed Watson.
|
|
406
|
-
Licensed under the MIT License (MIT), see
|
|
407
|
-
http://jedwatson.github.io/classnames
|
|
408
|
-
*/
|
|
409
|
-
var ye;
|
|
410
|
-
function br() {
|
|
411
|
-
return ye || (ye = 1, function(e) {
|
|
412
|
-
(function() {
|
|
413
|
-
var r = {}.hasOwnProperty;
|
|
414
|
-
function t() {
|
|
415
|
-
for (var n = "", i = 0; i < arguments.length; i++) {
|
|
416
|
-
var l = arguments[i];
|
|
417
|
-
l && (n = s(n, a(l)));
|
|
418
|
-
}
|
|
419
|
-
return n;
|
|
420
|
-
}
|
|
421
|
-
function a(n) {
|
|
422
|
-
if (typeof n == "string" || typeof n == "number")
|
|
423
|
-
return n;
|
|
424
|
-
if (typeof n != "object")
|
|
425
|
-
return "";
|
|
426
|
-
if (Array.isArray(n))
|
|
427
|
-
return t.apply(null, n);
|
|
428
|
-
if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]"))
|
|
429
|
-
return n.toString();
|
|
430
|
-
var i = "";
|
|
431
|
-
for (var l in n)
|
|
432
|
-
r.call(n, l) && n[l] && (i = s(i, l));
|
|
433
|
-
return i;
|
|
434
|
-
}
|
|
435
|
-
function s(n, i) {
|
|
436
|
-
return i ? n ? n + " " + i : n + i : n;
|
|
437
|
-
}
|
|
438
|
-
e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
|
|
439
|
-
})();
|
|
440
|
-
}(K)), K.exports;
|
|
441
|
-
}
|
|
442
|
-
var Nr = br();
|
|
443
|
-
const b = /* @__PURE__ */ ar(Nr), D = { asChild: { type: "boolean" } }, Rr = { width: { type: "string", className: "rt-r-w", customProperties: ["--width"], responsive: !0 }, minWidth: { type: "string", className: "rt-r-min-w", customProperties: ["--min-width"], responsive: !0 }, maxWidth: { type: "string", className: "rt-r-max-w", customProperties: ["--max-width"], responsive: !0 } }, xr = { height: { type: "string", className: "rt-r-h", customProperties: ["--height"], responsive: !0 }, minHeight: { type: "string", className: "rt-r-min-h", customProperties: ["--min-height"], responsive: !0 }, maxHeight: { type: "string", className: "rt-r-max-h", customProperties: ["--max-height"], responsive: !0 } }, Ee = ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky"], z = { color: { type: "enum", values: Ee, default: void 0 } }, Er = { color: { type: "enum", values: Ee, default: "" } }, re = { highContrast: { type: "boolean", className: "rt-high-contrast", default: void 0 } }, wr = ["normal", "start", "end", "both"], we = { trim: { type: "enum", className: "rt-r-lt", values: wr, responsive: !0 } }, Pr = ["left", "center", "right"], Pe = { align: { type: "enum", className: "rt-r-ta", values: Pr, responsive: !0 } }, $r = ["wrap", "nowrap", "pretty", "balance"], $e = { wrap: { type: "enum", className: "rt-r-tw", values: $r, responsive: !0 } }, Se = { truncate: { type: "boolean", className: "rt-truncate" } }, Sr = ["light", "regular", "medium", "bold"], Te = { weight: { type: "enum", className: "rt-r-weight", values: Sr, responsive: !0 } }, Tr = ["h1", "h2", "h3", "h4", "h5", "h6"], _r = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], jr = { as: { type: "enum", values: Tr, default: "h1" }, ...D, size: { type: "enum", className: "rt-r-size", values: _r, default: "6", responsive: !0 }, ...Te, ...Pe, ...we, ...Se, ...$e, ...z, ...re }, te = ["initial", "xs", "sm", "md", "lg", "xl"];
|
|
444
|
-
function _e(e, r) {
|
|
445
|
-
return Object.prototype.hasOwnProperty.call(e, r);
|
|
276
|
+
}()), S;
|
|
446
277
|
}
|
|
447
|
-
|
|
448
|
-
|
|
278
|
+
var K;
|
|
279
|
+
function xe() {
|
|
280
|
+
return K || (K = 1, process.env.NODE_ENV === "production" ? O.exports = ve() : O.exports = be()), O.exports;
|
|
449
281
|
}
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
if (typeof r == "string" && a.includes(r)) return ge(t, r, s);
|
|
458
|
-
if (F(r)) {
|
|
459
|
-
const i = r;
|
|
460
|
-
for (const l in i) {
|
|
461
|
-
if (!_e(i, l) || !te.includes(l)) continue;
|
|
462
|
-
const u = i[l];
|
|
463
|
-
if (u !== void 0) {
|
|
464
|
-
if (a.includes(u)) {
|
|
465
|
-
const d = ge(t, u, s), m = l === "initial" ? d : `${l}:${d}`;
|
|
466
|
-
n.push(m);
|
|
467
|
-
} else if (e) {
|
|
468
|
-
const d = l === "initial" ? t : `${l}:${t}`;
|
|
469
|
-
n.push(d);
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
return n.join(" ");
|
|
474
|
-
}
|
|
475
|
-
if (e) return t;
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
function ge(e, r, t) {
|
|
479
|
-
const a = e ? "-" : "", s = t(r), n = s?.startsWith("-"), i = n ? "-" : "", l = n ? s?.substring(1) : s;
|
|
480
|
-
return `${i}${e}${a}${l}`;
|
|
481
|
-
}
|
|
482
|
-
function Ar({ customProperties: e, value: r, propValues: t, parseValue: a = (s) => s }) {
|
|
483
|
-
let s = {};
|
|
484
|
-
if (!(!r || typeof r == "string" && t.includes(r))) {
|
|
485
|
-
if (typeof r == "string" && (s = Object.fromEntries(e.map((n) => [n, r]))), F(r)) {
|
|
486
|
-
const n = r;
|
|
487
|
-
for (const i in n) {
|
|
488
|
-
if (!_e(n, i) || !te.includes(i)) continue;
|
|
489
|
-
const l = n[i];
|
|
490
|
-
if (!t.includes(l)) for (const u of e) s = { [i === "initial" ? u : `${u}-${i}`]: l, ...s };
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
for (const n in s) {
|
|
494
|
-
const i = s[n];
|
|
495
|
-
i !== void 0 && (s[n] = a(i));
|
|
496
|
-
}
|
|
497
|
-
return s;
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
function he(...e) {
|
|
501
|
-
let r = {};
|
|
502
|
-
for (const t of e) t && (r = { ...r, ...t });
|
|
503
|
-
return Object.keys(r).length ? r : void 0;
|
|
504
|
-
}
|
|
505
|
-
function Or(...e) {
|
|
506
|
-
return Object.assign({}, ...e);
|
|
507
|
-
}
|
|
508
|
-
function w(e, ...r) {
|
|
509
|
-
let t, a;
|
|
510
|
-
const s = { ...e }, n = Or(...r);
|
|
511
|
-
for (const i in n) {
|
|
512
|
-
let l = s[i];
|
|
513
|
-
const u = n[i];
|
|
514
|
-
if (u.default !== void 0 && l === void 0 && (l = u.default), u.type === "enum" && ![u.default, ...u.values].includes(l) && !F(l) && (l = u.default), s[i] = l, "className" in u && u.className) {
|
|
515
|
-
delete s[i];
|
|
516
|
-
const d = "responsive" in u;
|
|
517
|
-
if (!l || F(l) && !d) continue;
|
|
518
|
-
if (F(l) && (u.default !== void 0 && l.initial === void 0 && (l.initial = u.default), u.type === "enum" && ([u.default, ...u.values].includes(l.initial) || (l.initial = u.default))), u.type === "enum") {
|
|
519
|
-
const m = je({ allowArbitraryValues: !1, value: l, className: u.className, propValues: u.values, parseValue: u.parseValue });
|
|
520
|
-
t = b(t, m);
|
|
521
|
-
continue;
|
|
522
|
-
}
|
|
523
|
-
if (u.type === "string" || u.type === "enum | string") {
|
|
524
|
-
const m = u.type === "string" ? [] : u.values, [y, f] = Cr({ className: u.className, customProperties: u.customProperties, propValues: m, parseValue: u.parseValue, value: l });
|
|
525
|
-
a = he(a, f), t = b(t, y);
|
|
526
|
-
continue;
|
|
527
|
-
}
|
|
528
|
-
if (u.type === "boolean" && l) {
|
|
529
|
-
t = b(t, u.className);
|
|
530
|
-
continue;
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
return s.className = b(t, e.className), s.style = he(a, e.style), s;
|
|
535
|
-
}
|
|
536
|
-
const T = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], S = { m: { type: "enum | string", values: T, responsive: !0, className: "rt-r-m", customProperties: ["--m"] }, mx: { type: "enum | string", values: T, responsive: !0, className: "rt-r-mx", customProperties: ["--ml", "--mr"] }, my: { type: "enum | string", values: T, responsive: !0, className: "rt-r-my", customProperties: ["--mt", "--mb"] }, mt: { type: "enum | string", values: T, responsive: !0, className: "rt-r-mt", customProperties: ["--mt"] }, mr: { type: "enum | string", values: T, responsive: !0, className: "rt-r-mr", customProperties: ["--mr"] }, mb: { type: "enum | string", values: T, responsive: !0, className: "rt-r-mb", customProperties: ["--mb"] }, ml: { type: "enum | string", values: T, responsive: !0, className: "rt-r-ml", customProperties: ["--ml"] } }, Ce = c.forwardRef((e, r) => {
|
|
537
|
-
const { children: t, className: a, asChild: s, as: n = "h1", color: i, ...l } = w(e, jr, S);
|
|
538
|
-
return c.createElement(M, { "data-accent-color": i, ...l, ref: r, className: b("rt-Heading", a) }, s ? t : c.createElement(n, null, t));
|
|
539
|
-
});
|
|
540
|
-
Ce.displayName = "Heading";
|
|
541
|
-
const kr = ["span", "div", "label", "p"], Vr = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Ir = { as: { type: "enum", values: kr, default: "span" }, ...D, size: { type: "enum", className: "rt-r-size", values: Vr, responsive: !0 }, ...Te, ...Pe, ...we, ...Se, ...$e, ...z, ...re }, Ae = c.forwardRef((e, r) => {
|
|
542
|
-
const { children: t, className: a, asChild: s, as: n = "span", color: i, ...l } = w(e, Ir, S);
|
|
543
|
-
return c.createElement(M, { "data-accent-color": i, ...l, ref: r, className: b("rt-Text", a) }, s ? t : c.createElement(n, null, t));
|
|
544
|
-
});
|
|
545
|
-
Ae.displayName = "Text";
|
|
546
|
-
const Fr = ["none", "small", "medium", "large", "full"], se = { radius: { type: "enum", values: Fr, default: void 0 } }, Oe = M, Dr = ["div", "span"], zr = ["none", "inline", "inline-block", "block", "contents"], Lr = { as: { type: "enum", values: Dr, default: "div" }, ...D, display: { type: "enum", className: "rt-r-display", values: zr, responsive: !0 } }, _ = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], Y = { p: { type: "enum | string", className: "rt-r-p", customProperties: ["--p"], values: _, responsive: !0 }, px: { type: "enum | string", className: "rt-r-px", customProperties: ["--pl", "--pr"], values: _, responsive: !0 }, py: { type: "enum | string", className: "rt-r-py", customProperties: ["--pt", "--pb"], values: _, responsive: !0 }, pt: { type: "enum | string", className: "rt-r-pt", customProperties: ["--pt"], values: _, responsive: !0 }, pr: { type: "enum | string", className: "rt-r-pr", customProperties: ["--pr"], values: _, responsive: !0 }, pb: { type: "enum | string", className: "rt-r-pb", customProperties: ["--pb"], values: _, responsive: !0 }, pl: { type: "enum | string", className: "rt-r-pl", customProperties: ["--pl"], values: _, responsive: !0 } }, Z = ["visible", "hidden", "clip", "scroll", "auto"], Yr = ["static", "relative", "absolute", "fixed", "sticky"], I = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], Br = ["0", "1"], Wr = ["0", "1"], ke = { ...Y, ...Rr, ...xr, position: { type: "enum", className: "rt-r-position", values: Yr, responsive: !0 }, inset: { type: "enum | string", className: "rt-r-inset", customProperties: ["--inset"], values: I, responsive: !0 }, top: { type: "enum | string", className: "rt-r-top", customProperties: ["--top"], values: I, responsive: !0 }, right: { type: "enum | string", className: "rt-r-right", customProperties: ["--right"], values: I, responsive: !0 }, bottom: { type: "enum | string", className: "rt-r-bottom", customProperties: ["--bottom"], values: I, responsive: !0 }, left: { type: "enum | string", className: "rt-r-left", customProperties: ["--left"], values: I, responsive: !0 }, overflow: { type: "enum", className: "rt-r-overflow", values: Z, responsive: !0 }, overflowX: { type: "enum", className: "rt-r-ox", values: Z, responsive: !0 }, overflowY: { type: "enum", className: "rt-r-oy", values: Z, responsive: !0 }, flexBasis: { type: "string", className: "rt-r-fb", customProperties: ["--flex-basis"], responsive: !0 }, flexShrink: { type: "enum | string", className: "rt-r-fs", customProperties: ["--flex-shrink"], values: Br, responsive: !0 }, flexGrow: { type: "enum | string", className: "rt-r-fg", customProperties: ["--flex-grow"], values: Wr, responsive: !0 }, gridArea: { type: "string", className: "rt-r-ga", customProperties: ["--grid-area"], responsive: !0 }, gridColumn: { type: "string", className: "rt-r-gc", customProperties: ["--grid-column"], responsive: !0 }, gridColumnStart: { type: "string", className: "rt-r-gcs", customProperties: ["--grid-column-start"], responsive: !0 }, gridColumnEnd: { type: "string", className: "rt-r-gce", customProperties: ["--grid-column-end"], responsive: !0 }, gridRow: { type: "string", className: "rt-r-gr", customProperties: ["--grid-row"], responsive: !0 }, gridRowStart: { type: "string", className: "rt-r-grs", customProperties: ["--grid-row-start"], responsive: !0 }, gridRowEnd: { type: "string", className: "rt-r-gre", customProperties: ["--grid-row-end"], responsive: !0 } }, Ve = c.forwardRef((e, r) => {
|
|
547
|
-
const { className: t, asChild: a, as: s = "div", ...n } = w(e, Lr, ke, S);
|
|
548
|
-
return c.createElement(a ? Oe : s, { ...n, ref: r, className: b("rt-Box", t) });
|
|
549
|
-
});
|
|
550
|
-
Ve.displayName = "Box";
|
|
551
|
-
const Mr = ["1", "2", "3", "4"], Hr = ["classic", "solid", "soft", "surface", "outline", "ghost"], be = { ...D, size: { type: "enum", className: "rt-r-size", values: Mr, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Hr, default: "solid" }, ...Er, ...re, ...se, loading: { type: "boolean", className: "rt-loading", default: !1 } }, Q = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], Ur = { gap: { type: "enum | string", className: "rt-r-gap", customProperties: ["--gap"], values: Q, responsive: !0 }, gapX: { type: "enum | string", className: "rt-r-cg", customProperties: ["--column-gap"], values: Q, responsive: !0 }, gapY: { type: "enum | string", className: "rt-r-rg", customProperties: ["--row-gap"], values: Q, responsive: !0 } }, qr = ["div", "span"], Jr = ["none", "inline-flex", "flex"], Xr = ["row", "column", "row-reverse", "column-reverse"], Gr = ["start", "center", "end", "baseline", "stretch"], Kr = ["start", "center", "end", "between"], Zr = ["nowrap", "wrap", "wrap-reverse"], Ie = { as: { type: "enum", values: qr, default: "div" }, ...D, display: { type: "enum", className: "rt-r-display", values: Jr, responsive: !0 }, direction: { type: "enum", className: "rt-r-fd", values: Xr, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: Gr, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: Kr, parseValue: Qr, responsive: !0 }, wrap: { type: "enum", className: "rt-r-fw", values: Zr, responsive: !0 }, ...Ur };
|
|
552
|
-
function Qr(e) {
|
|
553
|
-
return e === "between" ? "space-between" : e;
|
|
554
|
-
}
|
|
555
|
-
const B = c.forwardRef((e, r) => {
|
|
556
|
-
const { className: t, asChild: a, as: s = "div", ...n } = w(e, Ie, ke, S);
|
|
557
|
-
return c.createElement(a ? Oe : s, { ...n, ref: r, className: b("rt-Flex", t) });
|
|
558
|
-
});
|
|
559
|
-
B.displayName = "Flex";
|
|
560
|
-
const et = ["1", "2", "3"], rt = { size: { type: "enum", className: "rt-r-size", values: et, default: "2", responsive: !0 }, loading: { type: "boolean", default: !0 } }, Fe = c.forwardRef((e, r) => {
|
|
561
|
-
const { className: t, children: a, loading: s, ...n } = w(e, rt, S);
|
|
562
|
-
if (!s) return a;
|
|
563
|
-
const i = c.createElement("span", { ...n, ref: r, className: b("rt-Spinner", t) }, c.createElement("span", { className: "rt-SpinnerLeaf" }), c.createElement("span", { className: "rt-SpinnerLeaf" }), c.createElement("span", { className: "rt-SpinnerLeaf" }), c.createElement("span", { className: "rt-SpinnerLeaf" }), c.createElement("span", { className: "rt-SpinnerLeaf" }), c.createElement("span", { className: "rt-SpinnerLeaf" }), c.createElement("span", { className: "rt-SpinnerLeaf" }), c.createElement("span", { className: "rt-SpinnerLeaf" }));
|
|
564
|
-
return a === void 0 ? i : c.createElement(B, { asChild: !0, position: "relative", align: "center", justify: "center" }, c.createElement("span", null, c.createElement("span", { "aria-hidden": !0, style: { display: "contents", visibility: "hidden" }, inert: void 0 }, a), c.createElement(B, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, c.createElement("span", null, i))));
|
|
565
|
-
});
|
|
566
|
-
Fe.displayName = "Spinner";
|
|
567
|
-
const tt = hr;
|
|
568
|
-
function st(e, r) {
|
|
569
|
-
if (e !== void 0) return typeof e == "string" ? r(e) : Object.fromEntries(Object.entries(e).map(([t, a]) => [t, r(a)]));
|
|
570
|
-
}
|
|
571
|
-
function nt(e) {
|
|
572
|
-
switch (e) {
|
|
573
|
-
case "1":
|
|
574
|
-
return "1";
|
|
575
|
-
case "2":
|
|
576
|
-
case "3":
|
|
577
|
-
return "2";
|
|
578
|
-
case "4":
|
|
579
|
-
return "3";
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
const De = c.forwardRef((e, r) => {
|
|
583
|
-
const { size: t = be.size.default } = e, { className: a, children: s, asChild: n, color: i, radius: l, disabled: u = e.loading, ...d } = w(e, be, S), m = n ? M : "button";
|
|
584
|
-
return c.createElement(m, { "data-disabled": u || void 0, "data-accent-color": i, "data-radius": l, ...d, ref: r, className: b("rt-reset", "rt-BaseButton", a), disabled: u }, e.loading ? c.createElement(c.Fragment, null, c.createElement("span", { style: { display: "contents", visibility: "hidden" }, "aria-hidden": !0 }, s), c.createElement(tt, null, s), c.createElement(B, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, c.createElement("span", null, c.createElement(Fe, { size: st(t, nt) })))) : s);
|
|
585
|
-
});
|
|
586
|
-
De.displayName = "BaseButton";
|
|
587
|
-
const ze = c.forwardRef(({ className: e, ...r }, t) => c.createElement(De, { ...r, ref: t, className: b("rt-Button", e) }));
|
|
588
|
-
ze.displayName = "Button";
|
|
589
|
-
var Le = ee;
|
|
590
|
-
Le.dispatchDiscreteCustomEvent = vr;
|
|
591
|
-
Le.Root = ee;
|
|
592
|
-
const at = ["1", "2", "3"], ot = ["classic", "surface", "soft"], it = ["none", "vertical", "horizontal", "both"], lt = { size: { type: "enum", className: "rt-r-size", values: at, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: ot, default: "surface" }, resize: { type: "enum", className: "rt-r-resize", values: it, responsive: !0 }, ...z, ...se }, Ye = c.forwardRef((e, r) => {
|
|
593
|
-
const { className: t, color: a, radius: s, style: n, ...i } = w(e, lt, S);
|
|
594
|
-
return c.createElement("div", { "data-accent-color": a, "data-radius": s, className: b("rt-TextAreaRoot", t), style: n }, c.createElement("textarea", { className: "rt-reset rt-TextAreaInput", ref: r, ...i }));
|
|
595
|
-
});
|
|
596
|
-
Ye.displayName = "TextArea";
|
|
597
|
-
const ut = ["1", "2", "3"], ct = ["classic", "surface", "soft"], pt = { size: { type: "enum", className: "rt-r-size", values: ut, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: ct, default: "surface" }, ...z, ...se }, dt = ["left", "right"], ft = { side: { type: "enum", values: dt }, ...z, gap: Ie.gap, px: Y.px, pl: Y.pl, pr: Y.pr }, Be = c.forwardRef((e, r) => {
|
|
598
|
-
const t = c.useRef(null), { children: a, className: s, color: n, radius: i, style: l, ...u } = w(e, pt, S);
|
|
599
|
-
return c.createElement("div", { "data-accent-color": n, "data-radius": i, style: l, className: b("rt-TextFieldRoot", s), onPointerDown: (d) => {
|
|
600
|
-
const m = d.target;
|
|
601
|
-
if (m.closest("input, button, a")) return;
|
|
602
|
-
const y = t.current;
|
|
603
|
-
if (!y) return;
|
|
604
|
-
const f = m.closest(`
|
|
605
|
-
.rt-TextFieldSlot[data-side='right'],
|
|
606
|
-
.rt-TextFieldSlot:not([data-side='right']) ~ .rt-TextFieldSlot:not([data-side='left'])
|
|
607
|
-
`) ? y.value.length : 0;
|
|
608
|
-
requestAnimationFrame(() => {
|
|
609
|
-
try {
|
|
610
|
-
y.setSelectionRange(f, f);
|
|
611
|
-
} catch {
|
|
612
|
-
}
|
|
613
|
-
y.focus();
|
|
614
|
-
});
|
|
615
|
-
} }, c.createElement("input", { spellCheck: "false", ...u, ref: Ne(t, r), className: "rt-reset rt-TextFieldInput" }), a);
|
|
616
|
-
});
|
|
617
|
-
Be.displayName = "TextField.Root";
|
|
618
|
-
const mt = c.forwardRef((e, r) => {
|
|
619
|
-
const { className: t, color: a, side: s, ...n } = w(e, ft);
|
|
620
|
-
return c.createElement("div", { "data-accent-color": a, "data-side": s, ...n, ref: r, className: b("rt-TextFieldSlot", t) });
|
|
621
|
-
});
|
|
622
|
-
mt.displayName = "TextField.Slot";
|
|
623
|
-
function R(e) {
|
|
624
|
-
if (e != null) {
|
|
625
|
-
if (typeof e == "string")
|
|
626
|
-
return e;
|
|
627
|
-
if (typeof e == "number" || typeof e == "boolean")
|
|
628
|
-
return String(e);
|
|
282
|
+
var k = xe();
|
|
283
|
+
function x(r) {
|
|
284
|
+
if (r != null) {
|
|
285
|
+
if (typeof r == "string")
|
|
286
|
+
return r;
|
|
287
|
+
if (typeof r == "number" || typeof r == "boolean")
|
|
288
|
+
return String(r);
|
|
629
289
|
}
|
|
630
290
|
}
|
|
631
|
-
function
|
|
632
|
-
if (
|
|
633
|
-
if (typeof
|
|
634
|
-
return
|
|
635
|
-
if (
|
|
636
|
-
if (
|
|
291
|
+
function F(r) {
|
|
292
|
+
if (r != null) {
|
|
293
|
+
if (typeof r == "boolean")
|
|
294
|
+
return r;
|
|
295
|
+
if (r === "true") return !0;
|
|
296
|
+
if (r === "false") return !1;
|
|
637
297
|
}
|
|
638
298
|
}
|
|
639
|
-
function
|
|
640
|
-
if (typeof
|
|
641
|
-
return
|
|
642
|
-
if (typeof
|
|
643
|
-
const
|
|
644
|
-
return Number.isFinite(
|
|
299
|
+
function he(r) {
|
|
300
|
+
if (typeof r == "number")
|
|
301
|
+
return r;
|
|
302
|
+
if (typeof r == "string") {
|
|
303
|
+
const i = Number(r);
|
|
304
|
+
return Number.isFinite(i) ? i : void 0;
|
|
645
305
|
}
|
|
646
306
|
}
|
|
647
|
-
function
|
|
648
|
-
return
|
|
307
|
+
function j(r) {
|
|
308
|
+
return x(r)?.trim() ?? void 0;
|
|
649
309
|
}
|
|
650
|
-
function
|
|
651
|
-
const
|
|
652
|
-
for (const
|
|
653
|
-
if (Array.isArray(
|
|
654
|
-
for (const
|
|
655
|
-
const
|
|
656
|
-
|
|
310
|
+
function N(...r) {
|
|
311
|
+
const i = [];
|
|
312
|
+
for (const o of r) {
|
|
313
|
+
if (Array.isArray(o)) {
|
|
314
|
+
for (const t of o) {
|
|
315
|
+
const a = t.trim();
|
|
316
|
+
a && i.push(a);
|
|
657
317
|
}
|
|
658
318
|
continue;
|
|
659
319
|
}
|
|
660
|
-
typeof
|
|
320
|
+
typeof o == "string" && o.trim() && i.push(o.trim());
|
|
661
321
|
}
|
|
662
|
-
return
|
|
322
|
+
return i.length > 0 ? i.join(" ") : void 0;
|
|
663
323
|
}
|
|
664
|
-
function
|
|
665
|
-
if (!
|
|
324
|
+
function P(r, i = /* @__PURE__ */ new Set()) {
|
|
325
|
+
if (!r)
|
|
666
326
|
return {};
|
|
667
|
-
const
|
|
668
|
-
for (const [
|
|
669
|
-
|
|
670
|
-
return
|
|
327
|
+
const o = {};
|
|
328
|
+
for (const [t, a] of Object.entries(r))
|
|
329
|
+
i.has(t) || a != null && (typeof a == "string" || typeof a == "number" || typeof a == "boolean") && (o[t] = a);
|
|
330
|
+
return o;
|
|
671
331
|
}
|
|
672
|
-
function
|
|
673
|
-
if (
|
|
332
|
+
function G(r, i) {
|
|
333
|
+
if (r)
|
|
674
334
|
return () => {
|
|
675
|
-
r
|
|
335
|
+
i(r);
|
|
676
336
|
};
|
|
677
337
|
}
|
|
678
|
-
function
|
|
679
|
-
if (
|
|
680
|
-
return (
|
|
338
|
+
function H(r, i) {
|
|
339
|
+
if (r)
|
|
340
|
+
return (o) => i(r, o);
|
|
681
341
|
}
|
|
682
|
-
function
|
|
683
|
-
const
|
|
684
|
-
const
|
|
685
|
-
return /* @__PURE__ */
|
|
342
|
+
function Ee() {
|
|
343
|
+
const r = w(function({ node: o, context: t, className: a }) {
|
|
344
|
+
const u = P(o.props), l = t.renderChildren(o.children ?? []);
|
|
345
|
+
return /* @__PURE__ */ k.jsx(le, { className: a, ...u, children: l });
|
|
686
346
|
});
|
|
687
|
-
return (
|
|
688
|
-
if (
|
|
689
|
-
return
|
|
347
|
+
return (i) => {
|
|
348
|
+
if (i.type === "radix-box")
|
|
349
|
+
return r;
|
|
690
350
|
};
|
|
691
351
|
}
|
|
692
|
-
function
|
|
693
|
-
const
|
|
694
|
-
const
|
|
695
|
-
|
|
696
|
-
const
|
|
697
|
-
|
|
698
|
-
const
|
|
699
|
-
|
|
700
|
-
const
|
|
701
|
-
return
|
|
352
|
+
function Te() {
|
|
353
|
+
const r = /* @__PURE__ */ new Set(["label", "disabled", "onInvokeId"]), i = w(function({ node: t, context: a, className: u }) {
|
|
354
|
+
const l = x(t.props?.label), d = F(t.props?.disabled), m = { ...P(t.props, r) };
|
|
355
|
+
d === !0 && (m.disabled = !0);
|
|
356
|
+
const b = G(j(t.props?.onInvokeId), a.dispatchAction);
|
|
357
|
+
b && (m.onClick = b);
|
|
358
|
+
const E = [];
|
|
359
|
+
l !== void 0 && E.push(l);
|
|
360
|
+
const s = a.renderChildren(t.children ?? []);
|
|
361
|
+
return s != null && E.push(s), /* @__PURE__ */ k.jsx(de, { className: N("radix-button", u), ...m, children: E });
|
|
702
362
|
});
|
|
703
|
-
return (
|
|
704
|
-
if (
|
|
705
|
-
return
|
|
363
|
+
return (o) => {
|
|
364
|
+
if (o.type === "radix-button")
|
|
365
|
+
return i;
|
|
706
366
|
};
|
|
707
367
|
}
|
|
708
|
-
function
|
|
709
|
-
const
|
|
710
|
-
const
|
|
711
|
-
|
|
712
|
-
const
|
|
713
|
-
return
|
|
368
|
+
function _e() {
|
|
369
|
+
const r = /* @__PURE__ */ new Set(["content"]), i = w(function({ node: t, context: a, className: u }) {
|
|
370
|
+
const l = x(t.props?.content), d = P(t.props, r), f = [];
|
|
371
|
+
l !== void 0 && f.push(l);
|
|
372
|
+
const m = a.renderChildren(t.children ?? []);
|
|
373
|
+
return m != null && f.push(m), /* @__PURE__ */ k.jsx(fe, { className: N("radix-heading", u), ...d, children: f });
|
|
714
374
|
});
|
|
715
|
-
return (
|
|
716
|
-
if (
|
|
717
|
-
return
|
|
375
|
+
return (o) => {
|
|
376
|
+
if (o.type === "radix-heading")
|
|
377
|
+
return i;
|
|
718
378
|
};
|
|
719
379
|
}
|
|
720
|
-
function
|
|
721
|
-
const
|
|
722
|
-
const
|
|
723
|
-
|
|
724
|
-
const
|
|
725
|
-
return
|
|
380
|
+
function ye() {
|
|
381
|
+
const r = w(function({ node: o, context: t, className: a }) {
|
|
382
|
+
const u = x(o.props?.content), l = P(o.props), d = [];
|
|
383
|
+
u !== void 0 && d.push(u);
|
|
384
|
+
const f = t.renderChildren(o.children ?? []);
|
|
385
|
+
return f != null && d.push(f), /* @__PURE__ */ k.jsx(pe, { className: a, ...l, children: d });
|
|
726
386
|
});
|
|
727
|
-
return (
|
|
728
|
-
if (
|
|
729
|
-
return
|
|
387
|
+
return (i) => {
|
|
388
|
+
if (i.type === "radix-text")
|
|
389
|
+
return r;
|
|
730
390
|
};
|
|
731
391
|
}
|
|
732
|
-
function
|
|
733
|
-
const
|
|
734
|
-
const
|
|
735
|
-
|
|
736
|
-
const
|
|
737
|
-
return
|
|
738
|
-
|
|
739
|
-
}),
|
|
740
|
-
|
|
741
|
-
}), /* @__PURE__ */
|
|
392
|
+
function ge() {
|
|
393
|
+
const r = /* @__PURE__ */ new Set(["value", "defaultValue", "placeholder", "disabled", "rows", "onValueChangeId", "onInvokeId"]), i = w(function({ node: t, context: a, className: u }) {
|
|
394
|
+
const l = x(t.props?.value), d = x(t.props?.defaultValue), f = x(t.props?.placeholder), m = F(t.props?.disabled), b = he(t.props?.rows), s = { ...P(t.props, r) };
|
|
395
|
+
l !== void 0 ? s.value = l : d !== void 0 && (s.defaultValue = d), f && (s.placeholder = f), m !== void 0 && (s.disabled = m), b !== void 0 && (s.rows = b);
|
|
396
|
+
const T = H(j(t.props?.onValueChangeId), a.dispatchAction), y = G(j(t.props?.onInvokeId), a.dispatchAction);
|
|
397
|
+
return T && (s.onChange = (v) => {
|
|
398
|
+
T(v?.target?.value ?? "");
|
|
399
|
+
}), y && (s.onKeyDown = (v) => {
|
|
400
|
+
v.key !== "Enter" || v.shiftKey || v.altKey || v.metaKey || v.nativeEvent?.isComposing || (v.preventDefault(), y());
|
|
401
|
+
}), /* @__PURE__ */ k.jsx(Re, { className: N("radix-text-area", u), ...s });
|
|
742
402
|
});
|
|
743
|
-
return (
|
|
744
|
-
if (
|
|
745
|
-
return
|
|
403
|
+
return (o) => {
|
|
404
|
+
if (o.type === "radix-text-area")
|
|
405
|
+
return i;
|
|
746
406
|
};
|
|
747
407
|
}
|
|
748
|
-
function
|
|
749
|
-
const
|
|
750
|
-
const
|
|
751
|
-
|
|
752
|
-
const
|
|
753
|
-
return
|
|
754
|
-
|
|
755
|
-
}), /* @__PURE__ */
|
|
408
|
+
function we() {
|
|
409
|
+
const r = /* @__PURE__ */ new Set(["value", "defaultValue", "placeholder", "disabled", "type", "onValueChangeId"]), i = w(function({ node: t, context: a, className: u }) {
|
|
410
|
+
const l = x(t.props?.value), d = x(t.props?.defaultValue), f = x(t.props?.placeholder), m = F(t.props?.disabled), b = x(t.props?.type), s = { ...P(t.props, r) };
|
|
411
|
+
l !== void 0 ? s.value = l : d !== void 0 && (s.defaultValue = d), f && (s.placeholder = f), m !== void 0 && (s.disabled = m), b && (s.type = b);
|
|
412
|
+
const T = H(j(t.props?.onValueChangeId), a.dispatchAction);
|
|
413
|
+
return T && (s.onChange = (y) => {
|
|
414
|
+
T(y?.target?.value ?? "");
|
|
415
|
+
}), /* @__PURE__ */ k.jsx(me.Root, { className: N("radix-text-field", u), ...s });
|
|
756
416
|
});
|
|
757
|
-
return (
|
|
758
|
-
if (
|
|
759
|
-
return
|
|
417
|
+
return (o) => {
|
|
418
|
+
if (o.type === "radix-text-field")
|
|
419
|
+
return i;
|
|
760
420
|
};
|
|
761
421
|
}
|
|
762
|
-
const
|
|
763
|
-
function
|
|
764
|
-
|
|
422
|
+
const ke = "radix", Pe = () => Ae();
|
|
423
|
+
function je(r) {
|
|
424
|
+
r.registerModule(ke, Pe);
|
|
765
425
|
}
|
|
766
|
-
function
|
|
767
|
-
return [
|
|
426
|
+
function Ae() {
|
|
427
|
+
return [Ee(), Te(), _e(), ge(), we(), ye()];
|
|
768
428
|
}
|
|
769
429
|
export {
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
430
|
+
ke as IKON_UI_RADIX_MODULE,
|
|
431
|
+
N as combineClassNames,
|
|
432
|
+
Ee as createRadixBoxResolver,
|
|
433
|
+
Te as createRadixButtonResolver,
|
|
434
|
+
_e as createRadixHeadingResolver,
|
|
435
|
+
Ae as createRadixResolvers,
|
|
436
|
+
ge as createRadixTextAreaResolver,
|
|
437
|
+
we as createRadixTextFieldResolver,
|
|
438
|
+
ye as createRadixTextResolver,
|
|
439
|
+
H as createStringDispatcher,
|
|
440
|
+
G as createVoidDispatcher,
|
|
441
|
+
Pe as loadRadixModule,
|
|
442
|
+
P as pickPrimitiveProps,
|
|
443
|
+
je as registerRadixModule,
|
|
444
|
+
j as toActionId,
|
|
445
|
+
F as toBooleanValue,
|
|
446
|
+
he as toNumberValue,
|
|
447
|
+
x as toStringValue
|
|
788
448
|
};
|