@sandurtech/sandui 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -35
- package/dist/index.d.ts +127 -4
- package/dist/sandui.js +1295 -596
- package/dist/sandui.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +23 -4
package/dist/sandui.js
CHANGED
|
@@ -1,277 +1,312 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import ta, { forwardRef as f, useState as V, useId as I, useMemo as C, useCallback as q, useRef as de, useEffect as Oe, createContext as Pe, useContext as De, isValidElement as sa, cloneElement as ra } from "react";
|
|
2
|
+
import { createPortal as oa } from "react-dom";
|
|
3
|
+
var re = { exports: {} }, H = {};
|
|
4
|
+
var Ee;
|
|
5
|
+
function da() {
|
|
6
|
+
if (Ee) return H;
|
|
7
|
+
Ee = 1;
|
|
8
|
+
var s = /* @__PURE__ */ Symbol.for("react.transitional.element"), e = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
9
|
+
function a(t, r, d) {
|
|
10
|
+
var c = null;
|
|
11
|
+
if (d !== void 0 && (c = "" + d), r.key !== void 0 && (c = "" + r.key), "key" in r) {
|
|
12
|
+
d = {};
|
|
13
|
+
for (var i in r)
|
|
14
|
+
i !== "key" && (d[i] = r[i]);
|
|
15
|
+
} else d = r;
|
|
16
|
+
return r = d.ref, {
|
|
17
|
+
$$typeof: s,
|
|
18
|
+
type: t,
|
|
19
|
+
key: c,
|
|
20
|
+
ref: r !== void 0 ? r : null,
|
|
21
|
+
props: d
|
|
21
22
|
};
|
|
22
23
|
}
|
|
23
|
-
return
|
|
24
|
+
return H.Fragment = e, H.jsx = a, H.jsxs = a, H;
|
|
24
25
|
}
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
function
|
|
28
|
-
return
|
|
29
|
-
function
|
|
30
|
-
if (
|
|
31
|
-
if (typeof
|
|
32
|
-
return
|
|
33
|
-
if (typeof
|
|
34
|
-
switch (
|
|
35
|
-
case
|
|
26
|
+
var Y = {};
|
|
27
|
+
var $e;
|
|
28
|
+
function ca() {
|
|
29
|
+
return $e || ($e = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
30
|
+
function s(o) {
|
|
31
|
+
if (o == null) return null;
|
|
32
|
+
if (typeof o == "function")
|
|
33
|
+
return o.$$typeof === ea ? null : o.displayName || o.name || null;
|
|
34
|
+
if (typeof o == "string") return o;
|
|
35
|
+
switch (o) {
|
|
36
|
+
case R:
|
|
36
37
|
return "Fragment";
|
|
37
|
-
case
|
|
38
|
+
case ie:
|
|
38
39
|
return "Profiler";
|
|
39
|
-
case
|
|
40
|
+
case g:
|
|
40
41
|
return "StrictMode";
|
|
41
|
-
case
|
|
42
|
+
case ae:
|
|
42
43
|
return "Suspense";
|
|
43
|
-
case
|
|
44
|
+
case ne:
|
|
44
45
|
return "SuspenseList";
|
|
45
|
-
case
|
|
46
|
+
case Qe:
|
|
46
47
|
return "Activity";
|
|
47
48
|
}
|
|
48
|
-
if (typeof
|
|
49
|
-
switch (typeof
|
|
49
|
+
if (typeof o == "object")
|
|
50
|
+
switch (typeof o.tag == "number" && console.error(
|
|
50
51
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
51
|
-
),
|
|
52
|
-
case
|
|
52
|
+
), o.$$typeof) {
|
|
53
|
+
case T:
|
|
53
54
|
return "Portal";
|
|
54
|
-
case
|
|
55
|
-
return
|
|
56
|
-
case M:
|
|
57
|
-
return (e._context.displayName || "Context") + ".Consumer";
|
|
58
|
-
case R:
|
|
59
|
-
var l = e.render;
|
|
60
|
-
return e = e.displayName, e || (e = l.displayName || l.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
55
|
+
case w:
|
|
56
|
+
return o.displayName || "Context";
|
|
61
57
|
case G:
|
|
62
|
-
return
|
|
63
|
-
case
|
|
64
|
-
|
|
58
|
+
return (o._context.displayName || "Context") + ".Consumer";
|
|
59
|
+
case O:
|
|
60
|
+
var h = o.render;
|
|
61
|
+
return o = o.displayName, o || (o = h.displayName || h.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
|
|
62
|
+
case te:
|
|
63
|
+
return h = o.displayName || null, h !== null ? h : s(o.type) || "Memo";
|
|
64
|
+
case le:
|
|
65
|
+
h = o._payload, o = o._init;
|
|
65
66
|
try {
|
|
66
|
-
return
|
|
67
|
+
return s(o(h));
|
|
67
68
|
} catch {
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
return null;
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
-
return "" +
|
|
73
|
+
function e(o) {
|
|
74
|
+
return "" + o;
|
|
74
75
|
}
|
|
75
|
-
function
|
|
76
|
+
function a(o) {
|
|
76
77
|
try {
|
|
77
|
-
|
|
78
|
-
var
|
|
78
|
+
e(o);
|
|
79
|
+
var h = !1;
|
|
79
80
|
} catch {
|
|
80
|
-
|
|
81
|
+
h = !0;
|
|
81
82
|
}
|
|
82
|
-
if (
|
|
83
|
-
|
|
84
|
-
var
|
|
85
|
-
return
|
|
86
|
-
|
|
83
|
+
if (h) {
|
|
84
|
+
h = console;
|
|
85
|
+
var y = h.error, S = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
86
|
+
return y.call(
|
|
87
|
+
h,
|
|
87
88
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
88
|
-
|
|
89
|
-
),
|
|
89
|
+
S
|
|
90
|
+
), e(o);
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
|
-
function
|
|
93
|
-
if (
|
|
94
|
-
if (typeof
|
|
93
|
+
function t(o) {
|
|
94
|
+
if (o === R) return "<>";
|
|
95
|
+
if (typeof o == "object" && o !== null && o.$$typeof === le)
|
|
95
96
|
return "<...>";
|
|
96
97
|
try {
|
|
97
|
-
var
|
|
98
|
-
return
|
|
98
|
+
var h = s(o);
|
|
99
|
+
return h ? "<" + h + ">" : "<...>";
|
|
99
100
|
} catch {
|
|
100
101
|
return "<...>";
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
|
-
function
|
|
104
|
-
var
|
|
105
|
-
return
|
|
104
|
+
function r() {
|
|
105
|
+
var o = ue.A;
|
|
106
|
+
return o === null ? null : o.getOwner();
|
|
106
107
|
}
|
|
107
|
-
function
|
|
108
|
+
function d() {
|
|
108
109
|
return Error("react-stack-top-frame");
|
|
109
110
|
}
|
|
110
|
-
function o
|
|
111
|
-
if (
|
|
112
|
-
var
|
|
113
|
-
if (
|
|
111
|
+
function c(o) {
|
|
112
|
+
if (Se.call(o, "key")) {
|
|
113
|
+
var h = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
114
|
+
if (h && h.isReactWarning) return !1;
|
|
114
115
|
}
|
|
115
|
-
return
|
|
116
|
+
return o.key !== void 0;
|
|
116
117
|
}
|
|
117
|
-
function
|
|
118
|
-
function
|
|
119
|
-
|
|
118
|
+
function i(o, h) {
|
|
119
|
+
function y() {
|
|
120
|
+
Ne || (Ne = !0, console.error(
|
|
120
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)",
|
|
121
|
-
|
|
122
|
+
h
|
|
122
123
|
));
|
|
123
124
|
}
|
|
124
|
-
|
|
125
|
-
get:
|
|
125
|
+
y.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
126
|
+
get: y,
|
|
126
127
|
configurable: !0
|
|
127
128
|
});
|
|
128
129
|
}
|
|
129
|
-
function
|
|
130
|
-
var
|
|
131
|
-
return
|
|
130
|
+
function l() {
|
|
131
|
+
var o = s(this.type);
|
|
132
|
+
return je[o] || (je[o] = !0, console.error(
|
|
132
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."
|
|
133
|
-
)),
|
|
134
|
-
}
|
|
135
|
-
function
|
|
136
|
-
var
|
|
137
|
-
return
|
|
138
|
-
$$typeof:
|
|
139
|
-
type:
|
|
140
|
-
key:
|
|
141
|
-
props:
|
|
142
|
-
_owner:
|
|
143
|
-
}, (
|
|
134
|
+
)), o = this.props.ref, o !== void 0 ? o : null;
|
|
135
|
+
}
|
|
136
|
+
function u(o, h, y, S, se, me) {
|
|
137
|
+
var N = y.ref;
|
|
138
|
+
return o = {
|
|
139
|
+
$$typeof: v,
|
|
140
|
+
type: o,
|
|
141
|
+
key: h,
|
|
142
|
+
props: y,
|
|
143
|
+
_owner: S
|
|
144
|
+
}, (N !== void 0 ? N : null) !== null ? Object.defineProperty(o, "ref", {
|
|
144
145
|
enumerable: !1,
|
|
145
|
-
get:
|
|
146
|
-
}) : Object.defineProperty(
|
|
146
|
+
get: l
|
|
147
|
+
}) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
147
148
|
configurable: !1,
|
|
148
149
|
enumerable: !1,
|
|
149
150
|
writable: !0,
|
|
150
151
|
value: 0
|
|
151
|
-
}), Object.defineProperty(
|
|
152
|
+
}), Object.defineProperty(o, "_debugInfo", {
|
|
152
153
|
configurable: !1,
|
|
153
154
|
enumerable: !1,
|
|
154
155
|
writable: !0,
|
|
155
156
|
value: null
|
|
156
|
-
}), Object.defineProperty(
|
|
157
|
+
}), Object.defineProperty(o, "_debugStack", {
|
|
157
158
|
configurable: !1,
|
|
158
159
|
enumerable: !1,
|
|
159
160
|
writable: !0,
|
|
160
|
-
value:
|
|
161
|
-
}), Object.defineProperty(
|
|
161
|
+
value: se
|
|
162
|
+
}), Object.defineProperty(o, "_debugTask", {
|
|
162
163
|
configurable: !1,
|
|
163
164
|
enumerable: !1,
|
|
164
165
|
writable: !0,
|
|
165
|
-
value:
|
|
166
|
-
}), Object.freeze && (Object.freeze(
|
|
167
|
-
}
|
|
168
|
-
function
|
|
169
|
-
var
|
|
170
|
-
if (
|
|
171
|
-
if (
|
|
172
|
-
if (
|
|
173
|
-
for (
|
|
174
|
-
|
|
175
|
-
Object.freeze && Object.freeze(
|
|
166
|
+
value: me
|
|
167
|
+
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
168
|
+
}
|
|
169
|
+
function m(o, h, y, S, se, me) {
|
|
170
|
+
var N = h.children;
|
|
171
|
+
if (N !== void 0)
|
|
172
|
+
if (S)
|
|
173
|
+
if (aa(N)) {
|
|
174
|
+
for (S = 0; S < N.length; S++)
|
|
175
|
+
b(N[S]);
|
|
176
|
+
Object.freeze && Object.freeze(N);
|
|
176
177
|
} else
|
|
177
178
|
console.error(
|
|
178
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."
|
|
179
180
|
);
|
|
180
|
-
else
|
|
181
|
-
if (
|
|
182
|
-
|
|
183
|
-
var
|
|
184
|
-
return
|
|
181
|
+
else b(N);
|
|
182
|
+
if (Se.call(h, "key")) {
|
|
183
|
+
N = s(o);
|
|
184
|
+
var D = Object.keys(h).filter(function(na) {
|
|
185
|
+
return na !== "key";
|
|
185
186
|
});
|
|
186
|
-
|
|
187
|
+
S = 0 < D.length ? "{key: someKey, " + D.join(": ..., ") + ": ...}" : "{key: someKey}", Te[N + S] || (D = 0 < D.length ? "{" + D.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
187
188
|
`A props object containing a "key" prop is being spread into JSX:
|
|
188
189
|
let props = %s;
|
|
189
190
|
<%s {...props} />
|
|
190
191
|
React keys must be passed directly to JSX without using spread:
|
|
191
192
|
let props = %s;
|
|
192
193
|
<%s key={someKey} {...props} />`,
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
),
|
|
194
|
+
S,
|
|
195
|
+
N,
|
|
196
|
+
D,
|
|
197
|
+
N
|
|
198
|
+
), Te[N + S] = !0);
|
|
198
199
|
}
|
|
199
|
-
if (
|
|
200
|
-
|
|
201
|
-
for (var
|
|
202
|
-
|
|
203
|
-
} else
|
|
204
|
-
return
|
|
205
|
-
|
|
206
|
-
typeof
|
|
207
|
-
),
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
200
|
+
if (N = null, y !== void 0 && (a(y), N = "" + y), c(h) && (a(h.key), N = "" + h.key), "key" in h) {
|
|
201
|
+
y = {};
|
|
202
|
+
for (var fe in h)
|
|
203
|
+
fe !== "key" && (y[fe] = h[fe]);
|
|
204
|
+
} else y = h;
|
|
205
|
+
return N && i(
|
|
206
|
+
y,
|
|
207
|
+
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
208
|
+
), u(
|
|
209
|
+
o,
|
|
210
|
+
N,
|
|
211
|
+
y,
|
|
212
|
+
r(),
|
|
213
|
+
se,
|
|
214
|
+
me
|
|
214
215
|
);
|
|
215
216
|
}
|
|
216
|
-
function
|
|
217
|
-
|
|
217
|
+
function b(o) {
|
|
218
|
+
x(o) ? o._store && (o._store.validated = 1) : typeof o == "object" && o !== null && o.$$typeof === le && (o._payload.status === "fulfilled" ? x(o._payload.value) && o._payload.value._store && (o._payload.value._store.validated = 1) : o._store && (o._store.validated = 1));
|
|
218
219
|
}
|
|
219
|
-
function
|
|
220
|
-
return typeof
|
|
220
|
+
function x(o) {
|
|
221
|
+
return typeof o == "object" && o !== null && o.$$typeof === v;
|
|
221
222
|
}
|
|
222
|
-
var
|
|
223
|
+
var p = ta, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), T = /* @__PURE__ */ Symbol.for("react.portal"), R = /* @__PURE__ */ Symbol.for("react.fragment"), g = /* @__PURE__ */ Symbol.for("react.strict_mode"), ie = /* @__PURE__ */ Symbol.for("react.profiler"), G = /* @__PURE__ */ Symbol.for("react.consumer"), w = /* @__PURE__ */ Symbol.for("react.context"), O = /* @__PURE__ */ Symbol.for("react.forward_ref"), ae = /* @__PURE__ */ Symbol.for("react.suspense"), ne = /* @__PURE__ */ Symbol.for("react.suspense_list"), te = /* @__PURE__ */ Symbol.for("react.memo"), le = /* @__PURE__ */ Symbol.for("react.lazy"), Qe = /* @__PURE__ */ Symbol.for("react.activity"), ea = /* @__PURE__ */ Symbol.for("react.client.reference"), ue = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Se = Object.prototype.hasOwnProperty, aa = Array.isArray, _e = console.createTask ? console.createTask : function() {
|
|
223
224
|
return null;
|
|
224
225
|
};
|
|
225
|
-
|
|
226
|
-
react_stack_bottom_frame: function(
|
|
227
|
-
return
|
|
226
|
+
p = {
|
|
227
|
+
react_stack_bottom_frame: function(o) {
|
|
228
|
+
return o();
|
|
228
229
|
}
|
|
229
230
|
};
|
|
230
|
-
var
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
)(),
|
|
234
|
-
|
|
235
|
-
var
|
|
236
|
-
return
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
231
|
+
var Ne, je = {}, ke = p.react_stack_bottom_frame.bind(
|
|
232
|
+
p,
|
|
233
|
+
d
|
|
234
|
+
)(), we = _e(t(d)), Te = {};
|
|
235
|
+
Y.Fragment = R, Y.jsx = function(o, h, y) {
|
|
236
|
+
var S = 1e4 > ue.recentlyCreatedOwnerStacks++;
|
|
237
|
+
return m(
|
|
238
|
+
o,
|
|
239
|
+
h,
|
|
240
|
+
y,
|
|
240
241
|
!1,
|
|
241
|
-
|
|
242
|
-
|
|
242
|
+
S ? Error("react-stack-top-frame") : ke,
|
|
243
|
+
S ? _e(t(o)) : we
|
|
243
244
|
);
|
|
244
|
-
},
|
|
245
|
-
var
|
|
246
|
-
return
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
245
|
+
}, Y.jsxs = function(o, h, y) {
|
|
246
|
+
var S = 1e4 > ue.recentlyCreatedOwnerStacks++;
|
|
247
|
+
return m(
|
|
248
|
+
o,
|
|
249
|
+
h,
|
|
250
|
+
y,
|
|
250
251
|
!0,
|
|
251
|
-
|
|
252
|
-
|
|
252
|
+
S ? Error("react-stack-top-frame") : ke,
|
|
253
|
+
S ? _e(t(o)) : we
|
|
253
254
|
);
|
|
254
255
|
};
|
|
255
|
-
})()),
|
|
256
|
+
})()), Y;
|
|
257
|
+
}
|
|
258
|
+
var Ce;
|
|
259
|
+
function ia() {
|
|
260
|
+
return Ce || (Ce = 1, process.env.NODE_ENV === "production" ? re.exports = da() : re.exports = ca()), re.exports;
|
|
256
261
|
}
|
|
257
|
-
var
|
|
258
|
-
function
|
|
259
|
-
return
|
|
262
|
+
var n = ia();
|
|
263
|
+
function _(...s) {
|
|
264
|
+
return s.filter(Boolean).join(" ");
|
|
260
265
|
}
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
"
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
266
|
+
const la = {
|
|
267
|
+
none: "0",
|
|
268
|
+
"2xs": "var(--sand-space-1)",
|
|
269
|
+
xs: "var(--sand-space-2)",
|
|
270
|
+
sm: "var(--sand-space-3)",
|
|
271
|
+
md: "var(--sand-space-4)",
|
|
272
|
+
lg: "var(--sand-space-5)",
|
|
273
|
+
xl: "var(--sand-space-6)",
|
|
274
|
+
"2xl": "var(--sand-space-7)",
|
|
275
|
+
"3xl": "var(--sand-space-8)"
|
|
276
|
+
}, ua = {
|
|
277
|
+
sm: "var(--radius-sm)",
|
|
278
|
+
md: "var(--radius-md)",
|
|
279
|
+
lg: "var(--radius-lg)",
|
|
280
|
+
xl: "var(--radius-xl)",
|
|
281
|
+
full: "var(--radius-full)"
|
|
268
282
|
};
|
|
269
|
-
function
|
|
270
|
-
|
|
283
|
+
function X(s) {
|
|
284
|
+
if (s !== void 0)
|
|
285
|
+
return typeof s == "number" ? `${s}px` : la[s] ?? s;
|
|
286
|
+
}
|
|
287
|
+
function ze(s) {
|
|
288
|
+
if (s !== void 0)
|
|
289
|
+
return typeof s == "number" ? `${s}px` : ua[s] ?? s;
|
|
290
|
+
}
|
|
291
|
+
function j(s, e, a) {
|
|
292
|
+
return a === void 0 ? s : {
|
|
293
|
+
...s,
|
|
294
|
+
[e]: a
|
|
295
|
+
};
|
|
271
296
|
}
|
|
272
|
-
function
|
|
297
|
+
function Be(s, e, a) {
|
|
298
|
+
if (a === void 0)
|
|
299
|
+
return s;
|
|
300
|
+
if (typeof a != "object" || a === null || Array.isArray(a))
|
|
301
|
+
return j(s, `--${e}`, String(a));
|
|
302
|
+
let t = s;
|
|
303
|
+
for (const [r, d] of Object.entries(a))
|
|
304
|
+
d !== void 0 && (t = j(t, `--${e}-${r}`, String(d)));
|
|
305
|
+
return t;
|
|
306
|
+
}
|
|
307
|
+
function _a(s) {
|
|
273
308
|
return Array.from(
|
|
274
|
-
|
|
309
|
+
s.querySelectorAll(
|
|
275
310
|
[
|
|
276
311
|
"a[href]",
|
|
277
312
|
"button:not([disabled])",
|
|
@@ -281,517 +316,923 @@ function ze(d) {
|
|
|
281
316
|
'[tabindex]:not([tabindex="-1"])'
|
|
282
317
|
].join(",")
|
|
283
318
|
)
|
|
284
|
-
).filter((
|
|
319
|
+
).filter((e) => !e.hasAttribute("disabled") && !e.getAttribute("aria-hidden"));
|
|
285
320
|
}
|
|
286
|
-
function
|
|
287
|
-
if (
|
|
288
|
-
switch (
|
|
321
|
+
function ce(s, e, a, t) {
|
|
322
|
+
if (a !== 0)
|
|
323
|
+
switch (s.key) {
|
|
289
324
|
case "ArrowRight":
|
|
290
325
|
case "ArrowDown":
|
|
291
|
-
|
|
326
|
+
s.preventDefault(), t((e + 1) % a);
|
|
292
327
|
break;
|
|
293
328
|
case "ArrowLeft":
|
|
294
329
|
case "ArrowUp":
|
|
295
|
-
|
|
330
|
+
s.preventDefault(), t((e - 1 + a) % a);
|
|
296
331
|
break;
|
|
297
332
|
case "Home":
|
|
298
|
-
|
|
333
|
+
s.preventDefault(), t(0);
|
|
299
334
|
break;
|
|
300
335
|
case "End":
|
|
301
|
-
|
|
336
|
+
s.preventDefault(), t(a - 1);
|
|
302
337
|
break;
|
|
303
338
|
}
|
|
304
339
|
}
|
|
305
|
-
const
|
|
306
|
-
|
|
307
|
-
|
|
340
|
+
const L = f(function({ icon: e, size: a, fill: t, className: r, style: d, ...c }, i) {
|
|
341
|
+
if (typeof e == "function") {
|
|
342
|
+
const l = e;
|
|
343
|
+
return /* @__PURE__ */ n.jsx(
|
|
344
|
+
l,
|
|
345
|
+
{
|
|
346
|
+
ref: i,
|
|
347
|
+
width: a ?? 18,
|
|
348
|
+
height: a ?? 18,
|
|
349
|
+
className: _(r),
|
|
350
|
+
...c
|
|
351
|
+
}
|
|
352
|
+
);
|
|
353
|
+
}
|
|
354
|
+
return /* @__PURE__ */ n.jsx(
|
|
308
355
|
"span",
|
|
309
356
|
{
|
|
310
|
-
ref:
|
|
311
|
-
className:
|
|
312
|
-
|
|
357
|
+
ref: i,
|
|
358
|
+
className: _("material-symbols-rounded", r),
|
|
359
|
+
style: {
|
|
360
|
+
fontSize: a,
|
|
361
|
+
fontVariationSettings: t ? "'FILL' 1" : void 0,
|
|
362
|
+
display: "inline-flex",
|
|
363
|
+
alignItems: "center",
|
|
364
|
+
justifyContent: "center",
|
|
365
|
+
...d
|
|
366
|
+
},
|
|
367
|
+
"aria-hidden": c["aria-label"] ? void 0 : !0,
|
|
368
|
+
...c,
|
|
369
|
+
children: e
|
|
370
|
+
}
|
|
371
|
+
);
|
|
372
|
+
});
|
|
373
|
+
L.displayName = "SandIcon";
|
|
374
|
+
const ma = "_alert_f8qp0_1", fa = "_icon_f8qp0_13", pa = "_content_f8qp0_25", ba = "_title_f8qp0_30", ha = "_description_f8qp0_35", W = {
|
|
375
|
+
alert: ma,
|
|
376
|
+
icon: fa,
|
|
377
|
+
content: pa,
|
|
378
|
+
title: ba,
|
|
379
|
+
description: ha
|
|
380
|
+
}, xa = {
|
|
381
|
+
info: {
|
|
382
|
+
icon: "info",
|
|
383
|
+
color: "var(--color-info)",
|
|
384
|
+
soft: "var(--color-info-soft)"
|
|
385
|
+
},
|
|
386
|
+
success: {
|
|
387
|
+
icon: "check_circle",
|
|
388
|
+
color: "var(--color-success)",
|
|
389
|
+
soft: "var(--color-success-soft)"
|
|
390
|
+
},
|
|
391
|
+
warning: {
|
|
392
|
+
icon: "warning",
|
|
393
|
+
color: "var(--color-warning)",
|
|
394
|
+
soft: "var(--color-warning-soft)"
|
|
395
|
+
},
|
|
396
|
+
error: {
|
|
397
|
+
icon: "error",
|
|
398
|
+
color: "var(--color-error)",
|
|
399
|
+
soft: "var(--color-error-soft)"
|
|
400
|
+
}
|
|
401
|
+
}, va = f(function({ status: e = "info", title: a, description: t, className: r, style: d, children: c, ...i }, l) {
|
|
402
|
+
const u = xa[e];
|
|
403
|
+
return /* @__PURE__ */ n.jsxs(
|
|
404
|
+
"div",
|
|
405
|
+
{
|
|
406
|
+
ref: l,
|
|
407
|
+
role: "status",
|
|
408
|
+
className: _(W.alert, r),
|
|
409
|
+
style: {
|
|
410
|
+
"--sand-alert-border": u.color,
|
|
411
|
+
"--sand-alert-bg": `color-mix(in srgb, ${u.soft} 74%, var(--theme-surface))`,
|
|
412
|
+
"--sand-alert-soft": u.soft,
|
|
413
|
+
"--sand-alert-color": u.color,
|
|
414
|
+
...d
|
|
415
|
+
},
|
|
416
|
+
...i,
|
|
417
|
+
children: [
|
|
418
|
+
/* @__PURE__ */ n.jsx("span", { className: W.icon, children: /* @__PURE__ */ n.jsx(L, { icon: u.icon, size: 20 }) }),
|
|
419
|
+
/* @__PURE__ */ n.jsxs("div", { className: W.content, children: [
|
|
420
|
+
a && /* @__PURE__ */ n.jsx("div", { className: W.title, children: a }),
|
|
421
|
+
t && /* @__PURE__ */ n.jsx("div", { className: W.description, children: t }),
|
|
422
|
+
c
|
|
423
|
+
] })
|
|
424
|
+
]
|
|
425
|
+
}
|
|
426
|
+
);
|
|
427
|
+
});
|
|
428
|
+
va.displayName = "SandAlert";
|
|
429
|
+
const ya = "_accordion_rsxio_1", ga = "_item_rsxio_7", Sa = "_trigger_rsxio_26", Na = "_triggerMain_rsxio_40", ja = "_itemIcon_rsxio_48", ka = "_triggerText_rsxio_67", wa = "_title_rsxio_74", Ta = "_description_rsxio_82", Ea = "_content_rsxio_90", $a = "_contentOpen_rsxio_96", Ca = "_contentInner_rsxio_100", Ra = "_chevron_rsxio_108", Ia = "_chevronOpen_rsxio_114", $ = {
|
|
430
|
+
accordion: ya,
|
|
431
|
+
item: ga,
|
|
432
|
+
trigger: Sa,
|
|
433
|
+
triggerMain: Na,
|
|
434
|
+
itemIcon: ja,
|
|
435
|
+
triggerText: ka,
|
|
436
|
+
title: wa,
|
|
437
|
+
description: Ta,
|
|
438
|
+
content: Ea,
|
|
439
|
+
contentOpen: $a,
|
|
440
|
+
contentInner: Ca,
|
|
441
|
+
chevron: Ra,
|
|
442
|
+
chevronOpen: Ia
|
|
443
|
+
}, Aa = f(function({ items: e, defaultOpen: a, className: t, ...r }, d) {
|
|
444
|
+
const [c, i] = V(a), l = I();
|
|
445
|
+
return /* @__PURE__ */ n.jsx("div", { ref: d, className: _($.accordion, t), ...r, children: e.map((u) => {
|
|
446
|
+
const m = c === u.id, b = `${l}-trigger-${u.id}`, x = `${l}-content-${u.id}`;
|
|
447
|
+
return /* @__PURE__ */ n.jsxs("div", { className: $.item, "data-state": m ? "open" : "closed", children: [
|
|
448
|
+
/* @__PURE__ */ n.jsxs(
|
|
449
|
+
"button",
|
|
450
|
+
{
|
|
451
|
+
id: b,
|
|
452
|
+
type: "button",
|
|
453
|
+
className: $.trigger,
|
|
454
|
+
"aria-expanded": m,
|
|
455
|
+
"aria-controls": x,
|
|
456
|
+
onClick: () => i((p) => p === u.id ? void 0 : u.id),
|
|
457
|
+
children: [
|
|
458
|
+
/* @__PURE__ */ n.jsxs("div", { className: $.triggerMain, children: [
|
|
459
|
+
u.icon && /* @__PURE__ */ n.jsx(L, { icon: u.icon, className: $.itemIcon, size: 24, "aria-hidden": "true" }),
|
|
460
|
+
/* @__PURE__ */ n.jsxs("div", { className: $.triggerText, children: [
|
|
461
|
+
/* @__PURE__ */ n.jsx("span", { className: $.title, children: u.title }),
|
|
462
|
+
u.description && /* @__PURE__ */ n.jsx("span", { className: $.description, children: u.description })
|
|
463
|
+
] })
|
|
464
|
+
] }),
|
|
465
|
+
/* @__PURE__ */ n.jsx(
|
|
466
|
+
L,
|
|
467
|
+
{
|
|
468
|
+
icon: "expand_more",
|
|
469
|
+
className: _($.chevron, m && $.chevronOpen),
|
|
470
|
+
size: 20,
|
|
471
|
+
"aria-hidden": "true"
|
|
472
|
+
}
|
|
473
|
+
)
|
|
474
|
+
]
|
|
475
|
+
}
|
|
476
|
+
),
|
|
477
|
+
/* @__PURE__ */ n.jsx(
|
|
478
|
+
"div",
|
|
479
|
+
{
|
|
480
|
+
id: x,
|
|
481
|
+
"aria-labelledby": b,
|
|
482
|
+
className: _($.content, m && $.contentOpen),
|
|
483
|
+
role: "region",
|
|
484
|
+
children: /* @__PURE__ */ n.jsx("div", { className: $.contentInner, children: u.content })
|
|
485
|
+
}
|
|
486
|
+
)
|
|
487
|
+
] }, u.id);
|
|
488
|
+
}) });
|
|
489
|
+
});
|
|
490
|
+
Aa.displayName = "SandAccordion";
|
|
491
|
+
const Re = {
|
|
492
|
+
"sand-badge": "_sand-badge_ezp2k_1",
|
|
493
|
+
"sand-badge-primary": "_sand-badge-primary_ezp2k_15",
|
|
494
|
+
"sand-badge-secondary": "_sand-badge-secondary_ezp2k_21",
|
|
495
|
+
"sand-badge-success": "_sand-badge-success_ezp2k_27",
|
|
496
|
+
"sand-badge-failed": "_sand-badge-failed_ezp2k_33"
|
|
497
|
+
}, Ma = f(function({ variant: e = "primary", className: a = "", ...t }, r) {
|
|
498
|
+
const d = C(() => Re[`sand-badge-${e}`], [e]);
|
|
499
|
+
return /* @__PURE__ */ n.jsx(
|
|
500
|
+
"span",
|
|
501
|
+
{
|
|
502
|
+
ref: r,
|
|
503
|
+
className: _(Re["sand-badge"], d, a),
|
|
504
|
+
...t
|
|
313
505
|
}
|
|
314
506
|
);
|
|
315
507
|
});
|
|
316
|
-
|
|
317
|
-
const
|
|
508
|
+
Ma.displayName = "SandBadge";
|
|
509
|
+
const K = {
|
|
318
510
|
"sand-breadcrumbs": "_sand-breadcrumbs_1uxir_1",
|
|
319
511
|
"sand-breadcrumb-item": "_sand-breadcrumb-item_1uxir_10",
|
|
320
512
|
"sand-breadcrumb-link": "_sand-breadcrumb-link_1uxir_17",
|
|
321
513
|
"sand-breadcrumb-current": "_sand-breadcrumb-current_1uxir_32",
|
|
322
514
|
"sand-breadcrumb-separator": "_sand-breadcrumb-separator_1uxir_37"
|
|
323
|
-
},
|
|
324
|
-
const
|
|
325
|
-
() =>
|
|
326
|
-
const
|
|
327
|
-
return /* @__PURE__ */
|
|
328
|
-
|
|
515
|
+
}, Oa = f(function({ items: e, className: a = "", "aria-label": t = "Breadcrumb", ...r }, d) {
|
|
516
|
+
const c = C(
|
|
517
|
+
() => e.map((i, l) => {
|
|
518
|
+
const u = l === e.length - 1;
|
|
519
|
+
return /* @__PURE__ */ n.jsxs("li", { className: K["sand-breadcrumb-item"], children: [
|
|
520
|
+
i.href && !u ? /* @__PURE__ */ n.jsx("a", { href: i.href, className: K["sand-breadcrumb-link"], children: i.label }) : /* @__PURE__ */ n.jsx(
|
|
329
521
|
"span",
|
|
330
522
|
{
|
|
331
|
-
"aria-current":
|
|
332
|
-
className:
|
|
333
|
-
children:
|
|
523
|
+
"aria-current": u ? "page" : void 0,
|
|
524
|
+
className: u ? K["sand-breadcrumb-current"] : void 0,
|
|
525
|
+
children: i.label
|
|
334
526
|
}
|
|
335
527
|
),
|
|
336
|
-
!
|
|
337
|
-
] }, `${String(
|
|
528
|
+
!u && /* @__PURE__ */ n.jsx("span", { className: _(K["sand-breadcrumb-separator"], "material-symbols-rounded"), "aria-hidden": "true", children: "chevron_right" })
|
|
529
|
+
] }, `${String(i.label)}-${l}`);
|
|
338
530
|
}),
|
|
339
|
-
[
|
|
531
|
+
[e]
|
|
340
532
|
);
|
|
341
|
-
return /* @__PURE__ */
|
|
342
|
-
});
|
|
343
|
-
|
|
344
|
-
const
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
533
|
+
return /* @__PURE__ */ n.jsx("nav", { ref: d, "aria-label": t, className: _(K["sand-breadcrumbs"], a), ...r, children: /* @__PURE__ */ n.jsx("ol", { children: c }) });
|
|
534
|
+
});
|
|
535
|
+
Oa.displayName = "SandBreadcrumbs";
|
|
536
|
+
const Pa = "_box_t20vf_1", Da = "_surface_t20vf_19", za = "_inline_t20vf_27", Z = {
|
|
537
|
+
box: Pa,
|
|
538
|
+
surface: Da,
|
|
539
|
+
inline: za
|
|
540
|
+
}, Ba = {
|
|
541
|
+
stretch: "stretch",
|
|
542
|
+
start: "flex-start",
|
|
543
|
+
center: "center",
|
|
544
|
+
end: "flex-end",
|
|
545
|
+
baseline: "baseline"
|
|
546
|
+
}, Fa = {
|
|
547
|
+
start: "flex-start",
|
|
548
|
+
center: "center",
|
|
549
|
+
end: "flex-end",
|
|
550
|
+
between: "space-between",
|
|
551
|
+
around: "space-around",
|
|
552
|
+
evenly: "space-evenly"
|
|
553
|
+
}, qa = f(function({
|
|
554
|
+
as: e,
|
|
555
|
+
padding: a,
|
|
556
|
+
margin: t,
|
|
557
|
+
gap: r,
|
|
558
|
+
align: d,
|
|
559
|
+
justify: c,
|
|
560
|
+
surface: i,
|
|
561
|
+
inline: l,
|
|
562
|
+
width: u,
|
|
563
|
+
radius: m,
|
|
564
|
+
shadow: b = "none",
|
|
565
|
+
className: x,
|
|
566
|
+
style: p,
|
|
567
|
+
...v
|
|
568
|
+
}, T) {
|
|
569
|
+
const R = e ?? "div";
|
|
570
|
+
let g = p;
|
|
571
|
+
return g = j(g, "--sand-padding", X(a)), g = j(g, "--sand-margin", X(t)), g = j(g, "--sand-gap", X(r)), g = j(g, "--sand-align", d ? Ba[d] : void 0), g = j(g, "--sand-justify", c ? Fa[c] : void 0), g = j(g, "--sand-width", typeof u == "number" ? `${u}px` : u), g = j(g, "--sand-box-radius", ze(m)), g = j(
|
|
572
|
+
g,
|
|
573
|
+
"--sand-box-shadow",
|
|
574
|
+
b === "none" ? "none" : `var(--shadow-${b})`
|
|
575
|
+
), /* @__PURE__ */ n.jsx(
|
|
576
|
+
R,
|
|
577
|
+
{
|
|
578
|
+
ref: T,
|
|
579
|
+
className: _(Z.box, i && Z.surface, l && Z.inline, x),
|
|
580
|
+
style: g,
|
|
581
|
+
...v
|
|
582
|
+
}
|
|
583
|
+
);
|
|
584
|
+
});
|
|
585
|
+
qa.displayName = "SandBox";
|
|
586
|
+
const Ie = {
|
|
587
|
+
"sand-btn": "_sand-btn_9p0tq_1",
|
|
588
|
+
"sand-btn-primary": "_sand-btn-primary_9p0tq_28",
|
|
589
|
+
"sand-btn-secondary": "_sand-btn-secondary_9p0tq_39",
|
|
590
|
+
"sand-btn-outline": "_sand-btn-outline_9p0tq_49",
|
|
591
|
+
"sand-btn-success": "_sand-btn-success_9p0tq_59",
|
|
592
|
+
"sand-btn-failed": "_sand-btn-failed_9p0tq_69"
|
|
593
|
+
}, La = f(function({ variant: e = "primary", className: a = "", type: t = "button", ...r }, d) {
|
|
594
|
+
const c = C(() => Ie[`sand-btn-${e}`], [e]);
|
|
595
|
+
return /* @__PURE__ */ n.jsx(
|
|
354
596
|
"button",
|
|
355
597
|
{
|
|
356
|
-
ref:
|
|
357
|
-
className:
|
|
358
|
-
type:
|
|
359
|
-
...
|
|
598
|
+
ref: d,
|
|
599
|
+
className: _(Ie["sand-btn"], c, a),
|
|
600
|
+
type: t,
|
|
601
|
+
...r
|
|
360
602
|
}
|
|
361
603
|
);
|
|
362
604
|
});
|
|
363
|
-
|
|
364
|
-
const
|
|
365
|
-
"sand-card": "_sand-
|
|
366
|
-
"sand-card-header": "_sand-card-
|
|
367
|
-
"sand-card-body": "_sand-card-
|
|
368
|
-
"sand-card-footer": "_sand-card-
|
|
369
|
-
},
|
|
370
|
-
return /* @__PURE__ */
|
|
371
|
-
|
|
372
|
-
/* @__PURE__ */
|
|
373
|
-
|
|
605
|
+
La.displayName = "SandButton";
|
|
606
|
+
const oe = {
|
|
607
|
+
"sand-card": "_sand-card_hf89l_1",
|
|
608
|
+
"sand-card-header": "_sand-card-header_hf89l_14",
|
|
609
|
+
"sand-card-body": "_sand-card-body_hf89l_22",
|
|
610
|
+
"sand-card-footer": "_sand-card-footer_hf89l_29"
|
|
611
|
+
}, Va = f(function({ header: e, footer: a, children: t, className: r = "", ...d }, c) {
|
|
612
|
+
return /* @__PURE__ */ n.jsxs("article", { ref: c, className: _(oe["sand-card"], r), ...d, children: [
|
|
613
|
+
e && /* @__PURE__ */ n.jsx("header", { className: oe["sand-card-header"], children: e }),
|
|
614
|
+
/* @__PURE__ */ n.jsx("div", { className: oe["sand-card-body"], children: t }),
|
|
615
|
+
a && /* @__PURE__ */ n.jsx("footer", { className: oe["sand-card-footer"], children: a })
|
|
374
616
|
] });
|
|
375
617
|
});
|
|
376
|
-
|
|
377
|
-
const
|
|
378
|
-
"sand-code-block": "_sand-code-
|
|
379
|
-
"sand-copy-btn": "_sand-copy-
|
|
380
|
-
"sand-code-tabs": "_sand-code-
|
|
381
|
-
"sand-tab-headers": "_sand-tab-
|
|
382
|
-
"sand-tab-btn": "_sand-tab-
|
|
383
|
-
active:
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
618
|
+
Va.displayName = "SandCard";
|
|
619
|
+
const Ga = "_active_1i66s_73", F = {
|
|
620
|
+
"sand-code-block": "_sand-code-block_1i66s_1",
|
|
621
|
+
"sand-copy-btn": "_sand-copy-btn_1i66s_20",
|
|
622
|
+
"sand-code-tabs": "_sand-code-tabs_1i66s_40",
|
|
623
|
+
"sand-tab-headers": "_sand-tab-headers_1i66s_51",
|
|
624
|
+
"sand-tab-btn": "_sand-tab-btn_1i66s_58",
|
|
625
|
+
active: Ga
|
|
626
|
+
};
|
|
627
|
+
function Ha(s) {
|
|
628
|
+
if (!s) return "";
|
|
629
|
+
let e = s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
630
|
+
const a = [], t = (r, d) => {
|
|
631
|
+
const c = `___TOKEN_${a.length}___`;
|
|
632
|
+
return a.push(`<span class="token-${d}">${r}</span>`), c;
|
|
633
|
+
};
|
|
634
|
+
return e = e.replace(/\/\/.*/g, (r) => t(r, "comment")), e = e.replace(/\/\*[\s\S]*?\*\//g, (r) => t(r, "comment")), e = e.replace(/(["'`])(?:\\.|[^\\])*?\1/g, (r) => t(r, "string")), e = e.replace(/\b(true|false|null|undefined)\b/g, (r) => t(r, "boolean")), e = e.replace(
|
|
635
|
+
/\b(const|let|var|function|return|if|else|for|while|import|export|from|default|class|extends|type|interface|enum|async|await|try|catch|finally|throw|new|this|super|public|private|protected|readonly|static|get|set|as|in|of|void|any|number|string|boolean|symbol|bigint)\b/g,
|
|
636
|
+
(r) => t(r, "keyword")
|
|
637
|
+
), e = e.replace(
|
|
638
|
+
/\b(React|useState|useEffect|useMemo|useCallback|useId|useRef|forwardRef|ComponentPropsWithoutRef|ReactNode|FC|HTMLAttributes)\b/g,
|
|
639
|
+
(r) => t(r, "class")
|
|
640
|
+
), e = e.replace(/\b([a-z_][a-z0-9_]*)(?=\s*\()/gi, (r) => t(r, "function")), e = e.replace(/<[A-Z][a-zA-Z0-9]*/g, (r) => t(r, "component")), e = e.replace(/<\/?[a-z][a-z0-9]*/g, (r) => t(r, "tag")), e = e.replace(/<\/[a-zA-Z0-9]+>/gi, (r) => t(r, "tag")), e = e.replace(/\b([a-z][a-zA-Z0-9]*)(?=\s*=\s*[{"])/g, (r) => t(r, "attr")), e = e.replace(/\b(\d+)\b/g, (r) => t(r, "number")), e = e.replace(/(=>|===|==|=|\+|-|\*|\/|&&|\|\||!)/g, (r) => t(r, "operator")), a.forEach((r, d) => {
|
|
641
|
+
e = e.replace(`___TOKEN_${d}___`, r);
|
|
642
|
+
}), e;
|
|
643
|
+
}
|
|
644
|
+
const Fe = f(function({ code: e, className: a = "", ...t }, r) {
|
|
645
|
+
const [d, c] = V(!1), i = q(() => {
|
|
646
|
+
navigator.clipboard.writeText(e).then(() => {
|
|
647
|
+
c(!0), setTimeout(() => c(!1), 2e3);
|
|
388
648
|
});
|
|
389
|
-
}, [
|
|
390
|
-
return /* @__PURE__ */
|
|
391
|
-
/* @__PURE__ */
|
|
649
|
+
}, [e]), l = C(() => Ha(e), [e]);
|
|
650
|
+
return /* @__PURE__ */ n.jsxs("pre", { ref: r, className: _(F["sand-code-block"], a), ...t, children: [
|
|
651
|
+
/* @__PURE__ */ n.jsx(
|
|
392
652
|
"button",
|
|
393
653
|
{
|
|
394
|
-
className:
|
|
395
|
-
onClick:
|
|
654
|
+
className: F["sand-copy-btn"],
|
|
655
|
+
onClick: i,
|
|
396
656
|
type: "button",
|
|
397
|
-
"aria-label":
|
|
398
|
-
children:
|
|
657
|
+
"aria-label": d ? "Code copied to clipboard" : "Copy code to clipboard",
|
|
658
|
+
children: d ? "Copied" : "Copy"
|
|
399
659
|
}
|
|
400
660
|
),
|
|
401
|
-
/* @__PURE__ */
|
|
661
|
+
/* @__PURE__ */ n.jsx("code", { dangerouslySetInnerHTML: { __html: l } })
|
|
402
662
|
] });
|
|
403
663
|
});
|
|
404
|
-
|
|
405
|
-
const
|
|
406
|
-
const [
|
|
407
|
-
(
|
|
408
|
-
|
|
664
|
+
Fe.displayName = "SandCodeBlock";
|
|
665
|
+
const Ya = f(function({ tabs: e, defaultTab: a = 0, className: t = "", onTabChange: r }, d) {
|
|
666
|
+
const [c, i] = V(a), l = I(), u = de([]), m = q(
|
|
667
|
+
(x) => {
|
|
668
|
+
i(x), r?.(x), u.current[x]?.focus();
|
|
409
669
|
},
|
|
410
|
-
[
|
|
411
|
-
),
|
|
412
|
-
return /* @__PURE__ */
|
|
413
|
-
/* @__PURE__ */
|
|
670
|
+
[r]
|
|
671
|
+
), b = C(() => e[c]?.code ?? "", [c, e]);
|
|
672
|
+
return /* @__PURE__ */ n.jsxs("div", { ref: d, className: _(F["sand-code-tabs"], t), children: [
|
|
673
|
+
/* @__PURE__ */ n.jsx("div", { className: F["sand-tab-headers"], role: "tablist", "aria-label": "Code examples", children: e.map((x, p) => /* @__PURE__ */ n.jsx(
|
|
414
674
|
"button",
|
|
415
675
|
{
|
|
416
|
-
ref: (
|
|
417
|
-
|
|
676
|
+
ref: (v) => {
|
|
677
|
+
u.current[p] = v;
|
|
418
678
|
},
|
|
419
|
-
className:
|
|
679
|
+
className: _(F["sand-tab-btn"], c === p && F.active),
|
|
420
680
|
type: "button",
|
|
421
681
|
role: "tab",
|
|
422
|
-
"aria-selected":
|
|
423
|
-
"aria-controls": `${
|
|
424
|
-
id: `${
|
|
425
|
-
tabIndex:
|
|
426
|
-
onClick: () =>
|
|
427
|
-
onKeyDown: (
|
|
428
|
-
children:
|
|
682
|
+
"aria-selected": c === p,
|
|
683
|
+
"aria-controls": `${l}-code-panel-${p}`,
|
|
684
|
+
id: `${l}-code-tab-${p}`,
|
|
685
|
+
tabIndex: c === p ? 0 : -1,
|
|
686
|
+
onClick: () => m(p),
|
|
687
|
+
onKeyDown: (v) => ce(v, p, e.length, (T) => m(T)),
|
|
688
|
+
children: x.name
|
|
429
689
|
},
|
|
430
|
-
|
|
690
|
+
p
|
|
431
691
|
)) }),
|
|
432
|
-
/* @__PURE__ */
|
|
692
|
+
/* @__PURE__ */ n.jsx(
|
|
433
693
|
"div",
|
|
434
694
|
{
|
|
435
695
|
role: "tabpanel",
|
|
436
|
-
id: `${
|
|
437
|
-
"aria-labelledby": `${
|
|
438
|
-
children: /* @__PURE__ */
|
|
696
|
+
id: `${l}-code-panel-${c}`,
|
|
697
|
+
"aria-labelledby": `${l}-code-tab-${c}`,
|
|
698
|
+
children: /* @__PURE__ */ n.jsx(Fe, { code: b })
|
|
439
699
|
}
|
|
440
700
|
)
|
|
441
701
|
] });
|
|
442
702
|
});
|
|
443
|
-
|
|
444
|
-
const
|
|
703
|
+
Ya.displayName = "SandCodeTabs";
|
|
704
|
+
const Wa = {
|
|
445
705
|
"sand-divider": "_sand-divider_svs0p_1"
|
|
446
|
-
},
|
|
447
|
-
return /* @__PURE__ */
|
|
448
|
-
});
|
|
449
|
-
|
|
450
|
-
const
|
|
451
|
-
"sand-feedback": "_sand-
|
|
452
|
-
"sand-feedback-toast": "_sand-feedback-
|
|
453
|
-
"sand-feedback-snackbar": "_sand-feedback-
|
|
454
|
-
"sand-feedback-row": "_sand-feedback-
|
|
455
|
-
"sand-feedback-icon": "_sand-feedback-
|
|
456
|
-
"sand-feedback-content": "_sand-feedback-
|
|
457
|
-
"sand-feedback-title": "_sand-feedback-
|
|
458
|
-
"sand-feedback-message": "_sand-feedback-
|
|
459
|
-
"sand-feedback-action": "_sand-feedback-
|
|
460
|
-
"sand-feedback-success": "_sand-feedback-
|
|
461
|
-
"sand-feedback-failed": "_sand-feedback-
|
|
462
|
-
"sand-feedback-info": "_sand-feedback-
|
|
463
|
-
},
|
|
706
|
+
}, Ka = f(function({ className: e = "", ...a }, t) {
|
|
707
|
+
return /* @__PURE__ */ n.jsx("hr", { ref: t, className: _(Wa["sand-divider"], e), ...a });
|
|
708
|
+
});
|
|
709
|
+
Ka.displayName = "SandDivider";
|
|
710
|
+
const A = {
|
|
711
|
+
"sand-feedback": "_sand-feedback_1fyl0_1",
|
|
712
|
+
"sand-feedback-toast": "_sand-feedback-toast_1fyl0_12",
|
|
713
|
+
"sand-feedback-snackbar": "_sand-feedback-snackbar_1fyl0_18",
|
|
714
|
+
"sand-feedback-row": "_sand-feedback-row_1fyl0_28",
|
|
715
|
+
"sand-feedback-icon": "_sand-feedback-icon_1fyl0_34",
|
|
716
|
+
"sand-feedback-content": "_sand-feedback-content_1fyl0_41",
|
|
717
|
+
"sand-feedback-title": "_sand-feedback-title_1fyl0_49",
|
|
718
|
+
"sand-feedback-message": "_sand-feedback-message_1fyl0_55",
|
|
719
|
+
"sand-feedback-action": "_sand-feedback-action_1fyl0_61",
|
|
720
|
+
"sand-feedback-success": "_sand-feedback-success_1fyl0_65",
|
|
721
|
+
"sand-feedback-failed": "_sand-feedback-failed_1fyl0_72",
|
|
722
|
+
"sand-feedback-info": "_sand-feedback-info_1fyl0_79"
|
|
723
|
+
}, Ua = {
|
|
464
724
|
info: "info",
|
|
465
725
|
success: "check_circle",
|
|
466
726
|
failed: "error"
|
|
467
|
-
},
|
|
468
|
-
const
|
|
469
|
-
return /* @__PURE__ */
|
|
727
|
+
}, qe = f(function({ heading: e, message: a, action: t, variant: r = "info", className: d = "", mode: c, ...i }, l) {
|
|
728
|
+
const u = C(() => Ua[r], [r]), m = r === "failed" ? "alert" : "status";
|
|
729
|
+
return /* @__PURE__ */ n.jsx(
|
|
470
730
|
"div",
|
|
471
731
|
{
|
|
472
|
-
ref:
|
|
473
|
-
role:
|
|
474
|
-
"aria-live":
|
|
475
|
-
className:
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
732
|
+
ref: l,
|
|
733
|
+
role: m,
|
|
734
|
+
"aria-live": r === "failed" ? "assertive" : "polite",
|
|
735
|
+
className: _(
|
|
736
|
+
A["sand-feedback"],
|
|
737
|
+
A[`sand-feedback-${c}`],
|
|
738
|
+
A[`sand-feedback-${r}`],
|
|
739
|
+
d
|
|
480
740
|
),
|
|
481
|
-
...
|
|
482
|
-
children: /* @__PURE__ */
|
|
483
|
-
/* @__PURE__ */
|
|
484
|
-
/* @__PURE__ */
|
|
485
|
-
|
|
486
|
-
/* @__PURE__ */
|
|
741
|
+
...i,
|
|
742
|
+
children: /* @__PURE__ */ n.jsxs("div", { className: A["sand-feedback-row"], children: [
|
|
743
|
+
/* @__PURE__ */ n.jsx("span", { className: _(A["sand-feedback-icon"], "material-symbols-rounded"), "aria-hidden": "true", children: u }),
|
|
744
|
+
/* @__PURE__ */ n.jsxs("div", { className: A["sand-feedback-content"], children: [
|
|
745
|
+
e && /* @__PURE__ */ n.jsx("span", { className: A["sand-feedback-title"], children: e }),
|
|
746
|
+
/* @__PURE__ */ n.jsx("span", { className: A["sand-feedback-message"], children: a })
|
|
487
747
|
] }),
|
|
488
|
-
|
|
748
|
+
t && /* @__PURE__ */ n.jsx("div", { className: A["sand-feedback-action"], children: t })
|
|
489
749
|
] })
|
|
490
750
|
}
|
|
491
751
|
);
|
|
492
|
-
}),
|
|
493
|
-
return /* @__PURE__ */
|
|
494
|
-
});
|
|
495
|
-
|
|
496
|
-
const
|
|
497
|
-
return /* @__PURE__ */
|
|
498
|
-
});
|
|
499
|
-
|
|
500
|
-
const
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
"sand-
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
752
|
+
}), Ja = f(function(e, a) {
|
|
753
|
+
return /* @__PURE__ */ n.jsx(qe, { ref: a, mode: "toast", ...e });
|
|
754
|
+
});
|
|
755
|
+
Ja.displayName = "SandToast";
|
|
756
|
+
const Xa = f(function(e, a) {
|
|
757
|
+
return /* @__PURE__ */ n.jsx(qe, { ref: a, mode: "snackbar", ...e });
|
|
758
|
+
});
|
|
759
|
+
Xa.displayName = "SandSnackbar";
|
|
760
|
+
const Za = "_grid_g8kr4_1", Qa = "_item_g8kr4_7", Le = {
|
|
761
|
+
grid: Za,
|
|
762
|
+
item: Qa
|
|
763
|
+
}, Ve = f(function({ columns: e = 12, gap: a = "md", className: t, style: r, ...d }, c) {
|
|
764
|
+
let i = r;
|
|
765
|
+
return i = Be(i, "sand-grid-columns", e), i = j(i, "--sand-grid-gap", X(a)), /* @__PURE__ */ n.jsx("div", { ref: c, className: _(Le.grid, t), style: i, ...d });
|
|
766
|
+
});
|
|
767
|
+
Ve.displayName = "SandGrid";
|
|
768
|
+
const Ge = f(function({ span: e = 1, className: a, style: t, ...r }, d) {
|
|
769
|
+
let c = t;
|
|
770
|
+
return c = Be(c, "sand-grid-span", e), /* @__PURE__ */ n.jsx("div", { ref: d, className: _(Le.item, a), style: c, ...r });
|
|
771
|
+
});
|
|
772
|
+
Ge.displayName = "SandGrid.Item";
|
|
773
|
+
const ft = Object.assign(Ve, {
|
|
774
|
+
Item: Ge
|
|
775
|
+
}), Q = {
|
|
776
|
+
"sand-form-group": "_sand-form-group_6kvlc_1",
|
|
777
|
+
"sand-label": "_sand-label_6kvlc_8",
|
|
778
|
+
"sand-input": "_sand-input_6kvlc_17",
|
|
779
|
+
"sand-input-error": "_sand-input-error_6kvlc_37",
|
|
780
|
+
"sand-helper-text-error": "_sand-helper-text-error_6kvlc_45"
|
|
781
|
+
}, He = f(function({ label: e, children: a, className: t = "", htmlFor: r, ...d }, c) {
|
|
782
|
+
return /* @__PURE__ */ n.jsxs("div", { ref: c, className: _(Q["sand-form-group"], t), ...d, children: [
|
|
783
|
+
e && /* @__PURE__ */ n.jsx("label", { className: Q["sand-label"], htmlFor: r, children: e }),
|
|
784
|
+
a
|
|
510
785
|
] });
|
|
511
786
|
});
|
|
512
|
-
|
|
513
|
-
const
|
|
514
|
-
return /* @__PURE__ */
|
|
787
|
+
He.displayName = "SandFormGroup";
|
|
788
|
+
const Ye = f(function({ error: e, className: a = "", ...t }, r) {
|
|
789
|
+
return /* @__PURE__ */ n.jsx(
|
|
515
790
|
"input",
|
|
516
791
|
{
|
|
517
|
-
ref:
|
|
518
|
-
className:
|
|
519
|
-
"aria-invalid":
|
|
520
|
-
...
|
|
792
|
+
ref: r,
|
|
793
|
+
className: _(Q["sand-input"], e && Q["sand-input-error"], a),
|
|
794
|
+
"aria-invalid": e || t["aria-invalid"],
|
|
795
|
+
...t
|
|
521
796
|
}
|
|
522
797
|
);
|
|
523
798
|
});
|
|
524
|
-
|
|
525
|
-
const
|
|
526
|
-
const
|
|
527
|
-
() => [
|
|
528
|
-
[
|
|
799
|
+
Ye.displayName = "SandInput";
|
|
800
|
+
const en = f(function({ label: e, helperText: a, error: t, groupClassName: r, className: d = "", "aria-describedby": c, ...i }, l) {
|
|
801
|
+
const u = I(), m = i.id ?? u, b = a ? `${m}-help` : void 0, x = C(
|
|
802
|
+
() => [c, b].filter(Boolean).join(" ") || void 0,
|
|
803
|
+
[c, b]
|
|
529
804
|
);
|
|
530
|
-
return /* @__PURE__ */
|
|
531
|
-
/* @__PURE__ */
|
|
532
|
-
|
|
805
|
+
return /* @__PURE__ */ n.jsxs(He, { label: e, className: r, htmlFor: m, children: [
|
|
806
|
+
/* @__PURE__ */ n.jsx(
|
|
807
|
+
Ye,
|
|
533
808
|
{
|
|
534
|
-
ref:
|
|
535
|
-
id:
|
|
536
|
-
error:
|
|
537
|
-
className:
|
|
538
|
-
"aria-describedby":
|
|
539
|
-
...
|
|
809
|
+
ref: l,
|
|
810
|
+
id: m,
|
|
811
|
+
error: t,
|
|
812
|
+
className: d,
|
|
813
|
+
"aria-describedby": x,
|
|
814
|
+
...i
|
|
540
815
|
}
|
|
541
816
|
),
|
|
542
|
-
|
|
817
|
+
a && /* @__PURE__ */ n.jsx("span", { id: b, className: t ? Q["sand-helper-text-error"] : "", children: a })
|
|
543
818
|
] });
|
|
544
819
|
});
|
|
545
|
-
|
|
546
|
-
const
|
|
820
|
+
en.displayName = "SandInputGroup";
|
|
821
|
+
const an = {
|
|
547
822
|
"sand-kbd": "_sand-kbd_mo78g_1"
|
|
548
|
-
},
|
|
549
|
-
return /* @__PURE__ */
|
|
823
|
+
}, nn = f(function({ className: e = "", ...a }, t) {
|
|
824
|
+
return /* @__PURE__ */ n.jsx("kbd", { ref: t, className: _(an["sand-kbd"], e), ...a });
|
|
550
825
|
});
|
|
551
|
-
|
|
552
|
-
const
|
|
826
|
+
nn.displayName = "SandKBD";
|
|
827
|
+
const tn = "_loader_1onos_1", sn = "_skeleton_1onos_10", We = {
|
|
828
|
+
loader: tn,
|
|
829
|
+
skeleton: sn
|
|
830
|
+
}, rn = f(function({ size: e = 40, className: a, style: t, ...r }, d) {
|
|
831
|
+
return /* @__PURE__ */ n.jsx(
|
|
832
|
+
"span",
|
|
833
|
+
{
|
|
834
|
+
ref: d,
|
|
835
|
+
className: _(We.loader, a),
|
|
836
|
+
style: { "--sand-loader-size": `${e}px`, ...t },
|
|
837
|
+
...r
|
|
838
|
+
}
|
|
839
|
+
);
|
|
840
|
+
});
|
|
841
|
+
rn.displayName = "SandLoader";
|
|
842
|
+
const on = f(function({ width: e = "100%", height: a = 16, radius: t = "md", className: r, style: d, ...c }, i) {
|
|
843
|
+
return /* @__PURE__ */ n.jsx(
|
|
844
|
+
"div",
|
|
845
|
+
{
|
|
846
|
+
ref: i,
|
|
847
|
+
"aria-hidden": "true",
|
|
848
|
+
className: _(We.skeleton, r),
|
|
849
|
+
style: {
|
|
850
|
+
width: e,
|
|
851
|
+
height: a,
|
|
852
|
+
"--sand-skeleton-radius": ze(t),
|
|
853
|
+
...d
|
|
854
|
+
},
|
|
855
|
+
...c
|
|
856
|
+
}
|
|
857
|
+
);
|
|
858
|
+
});
|
|
859
|
+
on.displayName = "SandSkeleton";
|
|
860
|
+
const ee = {
|
|
553
861
|
"sand-container": "_sand-container_174rd_1",
|
|
554
862
|
"sand-header": "_sand-header_174rd_7",
|
|
555
863
|
"sand-tool-layout": "_sand-tool-layout_174rd_17",
|
|
556
864
|
"sand-tool-panel": "_sand-tool-panel_174rd_24",
|
|
557
865
|
"sand-result-panel": "_sand-result-panel_174rd_34"
|
|
558
|
-
},
|
|
559
|
-
return /* @__PURE__ */
|
|
560
|
-
});
|
|
561
|
-
|
|
562
|
-
const
|
|
563
|
-
return /* @__PURE__ */
|
|
564
|
-
});
|
|
565
|
-
|
|
566
|
-
const
|
|
567
|
-
return /* @__PURE__ */
|
|
568
|
-
});
|
|
569
|
-
|
|
570
|
-
const
|
|
571
|
-
return /* @__PURE__ */
|
|
572
|
-
});
|
|
573
|
-
|
|
574
|
-
const
|
|
575
|
-
return /* @__PURE__ */
|
|
576
|
-
});
|
|
577
|
-
|
|
578
|
-
const
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
);
|
|
589
|
-
|
|
590
|
-
const
|
|
591
|
-
|
|
592
|
-
"sand-modal-backdrop": "_sand-modal-backdrop_uryk1_11",
|
|
593
|
-
"sand-modal-panel": "_sand-modal-panel_uryk1_18",
|
|
594
|
-
"sand-modal-header": "_sand-modal-header_uryk1_29",
|
|
595
|
-
"sand-modal-title": "_sand-modal-title_uryk1_38",
|
|
596
|
-
"sand-modal-description": "_sand-modal-description_uryk1_44",
|
|
597
|
-
"sand-modal-close": "_sand-modal-close_uryk1_51",
|
|
598
|
-
"sand-modal-body": "_sand-modal-body_uryk1_73",
|
|
599
|
-
"sand-modal-footer": "_sand-modal-footer_uryk1_77"
|
|
600
|
-
}, Ee = Me(null);
|
|
601
|
-
function we() {
|
|
602
|
-
const d = De(Ee);
|
|
603
|
-
if (!d)
|
|
866
|
+
}, dn = f(function({ className: e = "", ...a }, t) {
|
|
867
|
+
return /* @__PURE__ */ n.jsx("div", { ref: t, className: _(ee["sand-container"], e), ...a });
|
|
868
|
+
});
|
|
869
|
+
dn.displayName = "SandContainer";
|
|
870
|
+
const cn = f(function({ className: e = "", ...a }, t) {
|
|
871
|
+
return /* @__PURE__ */ n.jsx("header", { ref: t, className: _(ee["sand-header"], e), ...a });
|
|
872
|
+
});
|
|
873
|
+
cn.displayName = "SandHeader";
|
|
874
|
+
const ln = f(function({ className: e = "", ...a }, t) {
|
|
875
|
+
return /* @__PURE__ */ n.jsx("div", { ref: t, className: _(ee["sand-tool-layout"], e), ...a });
|
|
876
|
+
});
|
|
877
|
+
ln.displayName = "SandToolLayout";
|
|
878
|
+
const un = f(function({ className: e = "", ...a }, t) {
|
|
879
|
+
return /* @__PURE__ */ n.jsx("aside", { ref: t, className: _(ee["sand-tool-panel"], e), ...a });
|
|
880
|
+
});
|
|
881
|
+
un.displayName = "SandToolPanel";
|
|
882
|
+
const _n = f(function({ className: e = "", ...a }, t) {
|
|
883
|
+
return /* @__PURE__ */ n.jsx("main", { ref: t, className: _(ee["sand-result-panel"], e), ...a });
|
|
884
|
+
});
|
|
885
|
+
_n.displayName = "SandResultPanel";
|
|
886
|
+
const M = {
|
|
887
|
+
"sand-modal-root": "_sand-modal-root_1e60v_1",
|
|
888
|
+
"sand-modal-backdrop": "_sand-modal-backdrop_1e60v_11",
|
|
889
|
+
"sand-modal-panel": "_sand-modal-panel_1e60v_22",
|
|
890
|
+
"sand-modal-header": "_sand-modal-header_1e60v_36",
|
|
891
|
+
"sand-modal-title": "_sand-modal-title_1e60v_45",
|
|
892
|
+
"sand-modal-description": "_sand-modal-description_1e60v_52",
|
|
893
|
+
"sand-modal-close": "_sand-modal-close_1e60v_59",
|
|
894
|
+
"sand-modal-body": "_sand-modal-body_1e60v_78",
|
|
895
|
+
"sand-modal-footer": "_sand-modal-footer_1e60v_86"
|
|
896
|
+
}, Ke = Pe(null);
|
|
897
|
+
function Ue() {
|
|
898
|
+
const s = De(Ke);
|
|
899
|
+
if (!s)
|
|
604
900
|
throw new Error("SandModal sub-components must be used within SandModal.");
|
|
605
|
-
return
|
|
901
|
+
return s;
|
|
606
902
|
}
|
|
607
|
-
const
|
|
608
|
-
return /* @__PURE__ */
|
|
609
|
-
});
|
|
610
|
-
|
|
611
|
-
const
|
|
612
|
-
return /* @__PURE__ */
|
|
613
|
-
});
|
|
614
|
-
|
|
615
|
-
const
|
|
616
|
-
return /* @__PURE__ */
|
|
617
|
-
});
|
|
618
|
-
|
|
619
|
-
const
|
|
620
|
-
const { titleId:
|
|
621
|
-
return /* @__PURE__ */
|
|
622
|
-
});
|
|
623
|
-
|
|
624
|
-
const
|
|
625
|
-
const { descriptionId:
|
|
626
|
-
return /* @__PURE__ */
|
|
627
|
-
});
|
|
628
|
-
|
|
629
|
-
const
|
|
630
|
-
open:
|
|
631
|
-
onClose:
|
|
632
|
-
title:
|
|
633
|
-
description:
|
|
634
|
-
footer:
|
|
635
|
-
closeOnOverlay:
|
|
636
|
-
initialFocusRef:
|
|
637
|
-
children:
|
|
638
|
-
className:
|
|
639
|
-
...
|
|
640
|
-
},
|
|
641
|
-
const
|
|
642
|
-
() => ({ titleId:
|
|
643
|
-
[
|
|
644
|
-
),
|
|
645
|
-
(
|
|
646
|
-
|
|
903
|
+
const pe = f(function({ className: e = "", ...a }, t) {
|
|
904
|
+
return /* @__PURE__ */ n.jsx("div", { ref: t, className: _(M["sand-modal-header"], e), ...a });
|
|
905
|
+
});
|
|
906
|
+
pe.displayName = "SandModal.Header";
|
|
907
|
+
const be = f(function({ className: e = "", ...a }, t) {
|
|
908
|
+
return /* @__PURE__ */ n.jsx("div", { ref: t, className: _(M["sand-modal-body"], e), ...a });
|
|
909
|
+
});
|
|
910
|
+
be.displayName = "SandModal.Body";
|
|
911
|
+
const he = f(function({ className: e = "", ...a }, t) {
|
|
912
|
+
return /* @__PURE__ */ n.jsx("div", { ref: t, className: _(M["sand-modal-footer"], e), ...a });
|
|
913
|
+
});
|
|
914
|
+
he.displayName = "SandModal.Footer";
|
|
915
|
+
const xe = f(function({ className: e = "", ...a }, t) {
|
|
916
|
+
const { titleId: r } = Ue();
|
|
917
|
+
return /* @__PURE__ */ n.jsx("div", { ref: t, id: r, className: _(M["sand-modal-title"], e), ...a });
|
|
918
|
+
});
|
|
919
|
+
xe.displayName = "SandModal.Title";
|
|
920
|
+
const ve = f(function({ className: e = "", ...a }, t) {
|
|
921
|
+
const { descriptionId: r } = Ue();
|
|
922
|
+
return /* @__PURE__ */ n.jsx("div", { ref: t, id: r, className: _(M["sand-modal-description"], e), ...a });
|
|
923
|
+
});
|
|
924
|
+
ve.displayName = "SandModal.Description";
|
|
925
|
+
const Je = f(function({
|
|
926
|
+
open: e,
|
|
927
|
+
onClose: a,
|
|
928
|
+
title: t,
|
|
929
|
+
description: r,
|
|
930
|
+
footer: d,
|
|
931
|
+
closeOnOverlay: c = !0,
|
|
932
|
+
initialFocusRef: i,
|
|
933
|
+
children: l,
|
|
934
|
+
className: u = "",
|
|
935
|
+
...m
|
|
936
|
+
}, b) {
|
|
937
|
+
const x = I(), p = I(), v = de(null), T = de(null), R = de(null), g = C(
|
|
938
|
+
() => ({ titleId: x, descriptionId: p }),
|
|
939
|
+
[p, x]
|
|
940
|
+
), ie = q(
|
|
941
|
+
(w) => {
|
|
942
|
+
T.current = w, typeof b == "function" ? b(w) : b && (b.current = w);
|
|
647
943
|
},
|
|
648
|
-
[
|
|
649
|
-
),
|
|
650
|
-
(
|
|
651
|
-
if (
|
|
652
|
-
|
|
944
|
+
[b]
|
|
945
|
+
), G = q(
|
|
946
|
+
(w) => {
|
|
947
|
+
if (w.key === "Escape") {
|
|
948
|
+
w.preventDefault(), a();
|
|
653
949
|
return;
|
|
654
950
|
}
|
|
655
|
-
if (
|
|
951
|
+
if (w.key !== "Tab" || !T.current)
|
|
656
952
|
return;
|
|
657
|
-
const
|
|
658
|
-
if (
|
|
659
|
-
|
|
953
|
+
const O = _a(T.current);
|
|
954
|
+
if (O.length === 0) {
|
|
955
|
+
w.preventDefault(), T.current.focus();
|
|
660
956
|
return;
|
|
661
957
|
}
|
|
662
|
-
const
|
|
663
|
-
|
|
958
|
+
const ae = O[0], ne = O[O.length - 1], te = document.activeElement;
|
|
959
|
+
w.shiftKey && te === ae ? (w.preventDefault(), ne.focus()) : !w.shiftKey && te === ne && (w.preventDefault(), ae.focus());
|
|
664
960
|
},
|
|
665
|
-
[
|
|
961
|
+
[a]
|
|
666
962
|
);
|
|
667
|
-
return
|
|
668
|
-
if (!
|
|
669
|
-
|
|
963
|
+
return Oe(() => {
|
|
964
|
+
if (!e) {
|
|
965
|
+
R.current?.focus();
|
|
670
966
|
return;
|
|
671
967
|
}
|
|
672
|
-
|
|
673
|
-
const
|
|
674
|
-
return document.body.style.overflow = "hidden", (
|
|
675
|
-
document.body.style.overflow =
|
|
968
|
+
R.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
969
|
+
const w = document.body.style.overflow;
|
|
970
|
+
return document.body.style.overflow = "hidden", (i?.current ?? v.current ?? T.current)?.focus(), window.addEventListener("keydown", G), () => {
|
|
971
|
+
document.body.style.overflow = w, window.removeEventListener("keydown", G);
|
|
676
972
|
};
|
|
677
|
-
}, [
|
|
678
|
-
/* @__PURE__ */
|
|
973
|
+
}, [G, i, e]), e ? /* @__PURE__ */ n.jsxs("div", { className: M["sand-modal-root"], children: [
|
|
974
|
+
/* @__PURE__ */ n.jsx(
|
|
679
975
|
"button",
|
|
680
976
|
{
|
|
681
977
|
type: "button",
|
|
682
|
-
className:
|
|
978
|
+
className: M["sand-modal-backdrop"],
|
|
683
979
|
"aria-label": "Close dialog",
|
|
684
|
-
onClick:
|
|
980
|
+
onClick: c ? a : void 0
|
|
685
981
|
}
|
|
686
982
|
),
|
|
687
|
-
/* @__PURE__ */
|
|
983
|
+
/* @__PURE__ */ n.jsx(
|
|
688
984
|
"div",
|
|
689
985
|
{
|
|
690
|
-
ref:
|
|
986
|
+
ref: ie,
|
|
691
987
|
role: "dialog",
|
|
692
988
|
"aria-modal": "true",
|
|
693
|
-
"aria-labelledby":
|
|
694
|
-
"aria-describedby":
|
|
695
|
-
className:
|
|
989
|
+
"aria-labelledby": t ? x : void 0,
|
|
990
|
+
"aria-describedby": r ? p : void 0,
|
|
991
|
+
className: _(M["sand-modal-panel"], u),
|
|
696
992
|
tabIndex: -1,
|
|
697
|
-
...
|
|
698
|
-
children: /* @__PURE__ */
|
|
699
|
-
(
|
|
700
|
-
/* @__PURE__ */
|
|
701
|
-
|
|
702
|
-
|
|
993
|
+
...m,
|
|
994
|
+
children: /* @__PURE__ */ n.jsxs(Ke.Provider, { value: g, children: [
|
|
995
|
+
(t || r) && /* @__PURE__ */ n.jsxs(pe, { children: [
|
|
996
|
+
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
997
|
+
t && /* @__PURE__ */ n.jsx(xe, { children: t }),
|
|
998
|
+
r && /* @__PURE__ */ n.jsx(ve, { children: r })
|
|
703
999
|
] }),
|
|
704
|
-
/* @__PURE__ */
|
|
1000
|
+
/* @__PURE__ */ n.jsx(
|
|
705
1001
|
"button",
|
|
706
1002
|
{
|
|
707
|
-
ref:
|
|
1003
|
+
ref: v,
|
|
708
1004
|
type: "button",
|
|
709
|
-
className:
|
|
710
|
-
onClick:
|
|
1005
|
+
className: M["sand-modal-close"],
|
|
1006
|
+
onClick: a,
|
|
711
1007
|
"aria-label": "Close dialog",
|
|
712
|
-
children: /* @__PURE__ */
|
|
1008
|
+
children: /* @__PURE__ */ n.jsx("span", { className: "material-symbols-rounded", "aria-hidden": "true", children: "close" })
|
|
713
1009
|
}
|
|
714
1010
|
)
|
|
715
1011
|
] }),
|
|
716
|
-
/* @__PURE__ */
|
|
717
|
-
|
|
1012
|
+
/* @__PURE__ */ n.jsx(be, { children: l }),
|
|
1013
|
+
d && /* @__PURE__ */ n.jsx(he, { children: d })
|
|
718
1014
|
] })
|
|
719
1015
|
}
|
|
720
1016
|
)
|
|
721
1017
|
] }) : null;
|
|
722
1018
|
});
|
|
723
|
-
|
|
724
|
-
const
|
|
725
|
-
Header:
|
|
726
|
-
Body:
|
|
727
|
-
Footer:
|
|
728
|
-
Title:
|
|
729
|
-
Description:
|
|
730
|
-
}),
|
|
1019
|
+
Je.displayName = "SandModal";
|
|
1020
|
+
const pt = Object.assign(Je, {
|
|
1021
|
+
Header: pe,
|
|
1022
|
+
Body: be,
|
|
1023
|
+
Footer: he,
|
|
1024
|
+
Title: xe,
|
|
1025
|
+
Description: ve
|
|
1026
|
+
}), mn = "_navbar_ce3ap_1", fn = "_container_ce3ap_11", pn = "_brand_ce3ap_20", bn = "_links_ce3ap_30", hn = "_link_ce3ap_30", xn = "_linkActive_ce3ap_55", vn = "_mobileToggle_ce3ap_64", yn = "_overlay_ce3ap_86", gn = "_overlayVisible_ce3ap_97", Sn = "_drawer_ce3ap_102", Nn = "_drawerOpen_ce3ap_118", jn = "_drawerHeader_ce3ap_122", kn = "_drawerTitle_ce3ap_130", wn = "_drawerClose_ce3ap_136", Tn = "_drawerContent_ce3ap_150", E = {
|
|
1027
|
+
navbar: mn,
|
|
1028
|
+
container: fn,
|
|
1029
|
+
brand: pn,
|
|
1030
|
+
links: bn,
|
|
1031
|
+
link: hn,
|
|
1032
|
+
linkActive: xn,
|
|
1033
|
+
mobileToggle: vn,
|
|
1034
|
+
overlay: yn,
|
|
1035
|
+
overlayVisible: gn,
|
|
1036
|
+
drawer: Sn,
|
|
1037
|
+
drawerOpen: Nn,
|
|
1038
|
+
drawerHeader: jn,
|
|
1039
|
+
drawerTitle: kn,
|
|
1040
|
+
drawerClose: wn,
|
|
1041
|
+
drawerContent: Tn
|
|
1042
|
+
}, bt = f(function({ brand: e, items: a = [], onMenuClick: t, className: r, children: d, ...c }, i) {
|
|
1043
|
+
return /* @__PURE__ */ n.jsx("nav", { ref: i, className: _(E.navbar, r), ...c, children: /* @__PURE__ */ n.jsxs("div", { className: E.container, children: [
|
|
1044
|
+
/* @__PURE__ */ n.jsx("div", { className: E.brand, children: e }),
|
|
1045
|
+
/* @__PURE__ */ n.jsxs("div", { className: E.links, children: [
|
|
1046
|
+
a.map((l) => /* @__PURE__ */ n.jsx(
|
|
1047
|
+
"a",
|
|
1048
|
+
{
|
|
1049
|
+
href: l.href,
|
|
1050
|
+
className: _(E.link, l.active && E.linkActive),
|
|
1051
|
+
children: l.label
|
|
1052
|
+
},
|
|
1053
|
+
l.href
|
|
1054
|
+
)),
|
|
1055
|
+
d
|
|
1056
|
+
] }),
|
|
1057
|
+
/* @__PURE__ */ n.jsx(
|
|
1058
|
+
"button",
|
|
1059
|
+
{
|
|
1060
|
+
type: "button",
|
|
1061
|
+
className: E.mobileToggle,
|
|
1062
|
+
onClick: t,
|
|
1063
|
+
"aria-label": "Toggle menu",
|
|
1064
|
+
children: /* @__PURE__ */ n.jsx(L, { icon: "menu", size: 24 })
|
|
1065
|
+
}
|
|
1066
|
+
)
|
|
1067
|
+
] }) });
|
|
1068
|
+
}), ht = f(function({ open: e, onClose: a, title: t, children: r, className: d, ...c }, i) {
|
|
1069
|
+
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1070
|
+
/* @__PURE__ */ n.jsx(
|
|
1071
|
+
"div",
|
|
1072
|
+
{
|
|
1073
|
+
className: _(E.overlay, e && E.overlayVisible),
|
|
1074
|
+
onClick: a,
|
|
1075
|
+
"aria-hidden": "true"
|
|
1076
|
+
}
|
|
1077
|
+
),
|
|
1078
|
+
/* @__PURE__ */ n.jsxs(
|
|
1079
|
+
"div",
|
|
1080
|
+
{
|
|
1081
|
+
ref: i,
|
|
1082
|
+
className: _(E.drawer, e && E.drawerOpen, d),
|
|
1083
|
+
role: "dialog",
|
|
1084
|
+
"aria-modal": "true",
|
|
1085
|
+
...c,
|
|
1086
|
+
children: [
|
|
1087
|
+
/* @__PURE__ */ n.jsxs("div", { className: E.drawerHeader, children: [
|
|
1088
|
+
/* @__PURE__ */ n.jsx("div", { className: E.drawerTitle, children: t }),
|
|
1089
|
+
/* @__PURE__ */ n.jsx(
|
|
1090
|
+
"button",
|
|
1091
|
+
{
|
|
1092
|
+
type: "button",
|
|
1093
|
+
className: E.drawerClose,
|
|
1094
|
+
onClick: a,
|
|
1095
|
+
"aria-label": "Close menu",
|
|
1096
|
+
children: /* @__PURE__ */ n.jsx(L, { icon: "close", size: 24 })
|
|
1097
|
+
}
|
|
1098
|
+
)
|
|
1099
|
+
] }),
|
|
1100
|
+
/* @__PURE__ */ n.jsx("div", { className: E.drawerContent, children: r })
|
|
1101
|
+
]
|
|
1102
|
+
}
|
|
1103
|
+
)
|
|
1104
|
+
] });
|
|
1105
|
+
}), U = {
|
|
731
1106
|
"sand-pagination": "_sand-pagination_cizv5_1",
|
|
732
1107
|
"sand-page-btn": "_sand-page-btn_cizv5_8",
|
|
733
1108
|
"sand-page-btn-active": "_sand-page-btn-active_cizv5_36"
|
|
734
|
-
},
|
|
735
|
-
const
|
|
736
|
-
(
|
|
737
|
-
|
|
1109
|
+
}, En = f(function({ currentPage: e, totalPages: a, onPageChange: t, className: r = "", ...d }, c) {
|
|
1110
|
+
const i = C(() => Array.from({ length: a }, (m, b) => b + 1), [a]), l = q(
|
|
1111
|
+
(m) => {
|
|
1112
|
+
m < 1 || m > a || m === e || t?.(m);
|
|
738
1113
|
},
|
|
739
|
-
[
|
|
740
|
-
),
|
|
741
|
-
(
|
|
742
|
-
|
|
1114
|
+
[e, t, a]
|
|
1115
|
+
), u = q(
|
|
1116
|
+
(m) => {
|
|
1117
|
+
ce(m, e - 1, a, (b) => l(b + 1));
|
|
743
1118
|
},
|
|
744
|
-
[
|
|
1119
|
+
[e, l, a]
|
|
745
1120
|
);
|
|
746
|
-
return /* @__PURE__ */
|
|
1121
|
+
return /* @__PURE__ */ n.jsxs(
|
|
747
1122
|
"nav",
|
|
748
1123
|
{
|
|
749
|
-
ref:
|
|
1124
|
+
ref: c,
|
|
750
1125
|
"aria-label": "Pagination",
|
|
751
|
-
className:
|
|
752
|
-
onKeyDown:
|
|
753
|
-
...
|
|
1126
|
+
className: _(U["sand-pagination"], r),
|
|
1127
|
+
onKeyDown: u,
|
|
1128
|
+
...d,
|
|
754
1129
|
children: [
|
|
755
|
-
/* @__PURE__ */
|
|
1130
|
+
/* @__PURE__ */ n.jsx(
|
|
756
1131
|
"button",
|
|
757
1132
|
{
|
|
758
1133
|
type: "button",
|
|
759
|
-
className:
|
|
760
|
-
disabled:
|
|
1134
|
+
className: U["sand-page-btn"],
|
|
1135
|
+
disabled: e === 1,
|
|
761
1136
|
"aria-label": "Previous page",
|
|
762
|
-
onClick: () =>
|
|
763
|
-
children: /* @__PURE__ */
|
|
1137
|
+
onClick: () => l(e - 1),
|
|
1138
|
+
children: /* @__PURE__ */ n.jsx("span", { className: "material-symbols-rounded", "aria-hidden": "true", children: "chevron_left" })
|
|
764
1139
|
}
|
|
765
1140
|
),
|
|
766
|
-
|
|
1141
|
+
i.map((m) => /* @__PURE__ */ n.jsx(
|
|
767
1142
|
"button",
|
|
768
1143
|
{
|
|
769
1144
|
type: "button",
|
|
770
|
-
"aria-current":
|
|
771
|
-
"aria-label": `Page ${
|
|
772
|
-
className:
|
|
773
|
-
onClick: () =>
|
|
774
|
-
children:
|
|
1145
|
+
"aria-current": m === e ? "page" : void 0,
|
|
1146
|
+
"aria-label": `Page ${m}`,
|
|
1147
|
+
className: _(U["sand-page-btn"], m === e && U["sand-page-btn-active"]),
|
|
1148
|
+
onClick: () => l(m),
|
|
1149
|
+
children: m
|
|
775
1150
|
},
|
|
776
|
-
|
|
1151
|
+
m
|
|
777
1152
|
)),
|
|
778
|
-
/* @__PURE__ */
|
|
1153
|
+
/* @__PURE__ */ n.jsx(
|
|
779
1154
|
"button",
|
|
780
1155
|
{
|
|
781
1156
|
type: "button",
|
|
782
|
-
className:
|
|
783
|
-
disabled:
|
|
1157
|
+
className: U["sand-page-btn"],
|
|
1158
|
+
disabled: e === a,
|
|
784
1159
|
"aria-label": "Next page",
|
|
785
|
-
onClick: () =>
|
|
786
|
-
children: /* @__PURE__ */
|
|
1160
|
+
onClick: () => l(e + 1),
|
|
1161
|
+
children: /* @__PURE__ */ n.jsx("span", { className: "material-symbols-rounded", "aria-hidden": "true", children: "chevron_right" })
|
|
787
1162
|
}
|
|
788
1163
|
)
|
|
789
1164
|
]
|
|
790
1165
|
}
|
|
791
1166
|
);
|
|
792
1167
|
});
|
|
793
|
-
|
|
794
|
-
const
|
|
1168
|
+
En.displayName = "SandPagination";
|
|
1169
|
+
const $n = "_track_1b1ni_1", Cn = "_bar_1b1ni_8", Rn = "_ring_1b1ni_15", In = "_ringTrack_1b1ni_19", An = "_ringValue_1b1ni_24", Mn = "_label_1b1ni_32", z = {
|
|
1170
|
+
track: $n,
|
|
1171
|
+
bar: Cn,
|
|
1172
|
+
ring: Rn,
|
|
1173
|
+
ringTrack: In,
|
|
1174
|
+
ringValue: An,
|
|
1175
|
+
label: Mn
|
|
1176
|
+
};
|
|
1177
|
+
function On(s, e) {
|
|
1178
|
+
return Math.min(Math.max(s, 0), e);
|
|
1179
|
+
}
|
|
1180
|
+
const Pn = f(function({ value: e, max: a = 100, size: t = 96, thickness: r = 8, variant: d = "linear", showValue: c, className: i, style: l, ...u }, m) {
|
|
1181
|
+
const b = On(e, a), x = b / a * 100;
|
|
1182
|
+
if (d === "circular") {
|
|
1183
|
+
const p = (t - r) / 2, v = 2 * Math.PI * p, T = v - x / 100 * v;
|
|
1184
|
+
return /* @__PURE__ */ n.jsxs(
|
|
1185
|
+
"div",
|
|
1186
|
+
{
|
|
1187
|
+
ref: m,
|
|
1188
|
+
role: "progressbar",
|
|
1189
|
+
"aria-valuemin": 0,
|
|
1190
|
+
"aria-valuemax": a,
|
|
1191
|
+
"aria-valuenow": b,
|
|
1192
|
+
className: _(i),
|
|
1193
|
+
style: { position: "relative", width: t, height: t, ...l },
|
|
1194
|
+
...u,
|
|
1195
|
+
children: [
|
|
1196
|
+
/* @__PURE__ */ n.jsxs("svg", { className: z.ring, width: t, height: t, viewBox: `0 0 ${t} ${t}`, children: [
|
|
1197
|
+
/* @__PURE__ */ n.jsx("circle", { className: z.ringTrack, cx: t / 2, cy: t / 2, r: p, strokeWidth: r }),
|
|
1198
|
+
/* @__PURE__ */ n.jsx(
|
|
1199
|
+
"circle",
|
|
1200
|
+
{
|
|
1201
|
+
className: z.ringValue,
|
|
1202
|
+
cx: t / 2,
|
|
1203
|
+
cy: t / 2,
|
|
1204
|
+
r: p,
|
|
1205
|
+
strokeWidth: r,
|
|
1206
|
+
strokeDasharray: v,
|
|
1207
|
+
strokeDashoffset: T
|
|
1208
|
+
}
|
|
1209
|
+
)
|
|
1210
|
+
] }),
|
|
1211
|
+
c && /* @__PURE__ */ n.jsxs("span", { className: z.label, children: [
|
|
1212
|
+
Math.round(x),
|
|
1213
|
+
"%"
|
|
1214
|
+
] })
|
|
1215
|
+
]
|
|
1216
|
+
}
|
|
1217
|
+
);
|
|
1218
|
+
}
|
|
1219
|
+
return /* @__PURE__ */ n.jsx(
|
|
1220
|
+
"div",
|
|
1221
|
+
{
|
|
1222
|
+
ref: m,
|
|
1223
|
+
role: "progressbar",
|
|
1224
|
+
"aria-valuemin": 0,
|
|
1225
|
+
"aria-valuemax": a,
|
|
1226
|
+
"aria-valuenow": b,
|
|
1227
|
+
className: _(z.track, i),
|
|
1228
|
+
style: { height: r, ...l },
|
|
1229
|
+
...u,
|
|
1230
|
+
children: /* @__PURE__ */ n.jsx("div", { className: z.bar, style: { width: `${x}%` } })
|
|
1231
|
+
}
|
|
1232
|
+
);
|
|
1233
|
+
});
|
|
1234
|
+
Pn.displayName = "SandProgress";
|
|
1235
|
+
const k = {
|
|
795
1236
|
"sand-choice-group": "_sand-choice-group_viqgz_1",
|
|
796
1237
|
"sand-choice-row": "_sand-choice-row_viqgz_7",
|
|
797
1238
|
"sand-choice-input": "_sand-choice-input_viqgz_16",
|
|
@@ -803,73 +1244,331 @@ const x = {
|
|
|
803
1244
|
"sand-choice-content": "_sand-choice-content_viqgz_123",
|
|
804
1245
|
"sand-choice-label": "_sand-choice-label_viqgz_129",
|
|
805
1246
|
"sand-choice-description": "_sand-choice-description_viqgz_134"
|
|
806
|
-
},
|
|
807
|
-
/* @__PURE__ */
|
|
808
|
-
|
|
809
|
-
] }),
|
|
810
|
-
const
|
|
811
|
-
return /* @__PURE__ */
|
|
812
|
-
/* @__PURE__ */
|
|
813
|
-
/* @__PURE__ */
|
|
814
|
-
/* @__PURE__ */
|
|
1247
|
+
}, ye = ({ label: s, description: e }) => /* @__PURE__ */ n.jsxs("span", { className: k["sand-choice-content"], children: [
|
|
1248
|
+
/* @__PURE__ */ n.jsx("span", { className: k["sand-choice-label"], children: s }),
|
|
1249
|
+
e && /* @__PURE__ */ n.jsx("span", { className: k["sand-choice-description"], children: e })
|
|
1250
|
+
] }), Dn = f(function({ label: e, description: a, id: t, className: r = "", ...d }, c) {
|
|
1251
|
+
const i = I(), l = t ?? i;
|
|
1252
|
+
return /* @__PURE__ */ n.jsxs("label", { className: _(k["sand-choice-row"], r), htmlFor: l, children: [
|
|
1253
|
+
/* @__PURE__ */ n.jsx("input", { ref: c, id: l, type: "checkbox", className: k["sand-choice-input"], ...d }),
|
|
1254
|
+
/* @__PURE__ */ n.jsx("span", { className: _(k["sand-choice-control"], k["sand-checkbox"]), "aria-hidden": "true", children: /* @__PURE__ */ n.jsx("span", { className: _(k["sand-checkbox-icon"], "material-symbols-rounded"), children: "check" }) }),
|
|
1255
|
+
/* @__PURE__ */ n.jsx(ye, { label: e, description: a })
|
|
815
1256
|
] });
|
|
816
1257
|
});
|
|
817
|
-
|
|
818
|
-
const
|
|
819
|
-
const
|
|
820
|
-
if (
|
|
1258
|
+
Dn.displayName = "SandCheckbox";
|
|
1259
|
+
const zn = f(function({ label: e, description: a, id: t, className: r = "", onKeyDown: d, ...c }, i) {
|
|
1260
|
+
const l = I(), u = t ?? l, m = (b) => {
|
|
1261
|
+
if (d?.(b), b.defaultPrevented || !c.name)
|
|
821
1262
|
return;
|
|
822
|
-
const
|
|
823
|
-
document.querySelectorAll(`input[type="radio"][name="${
|
|
824
|
-
),
|
|
825
|
-
|
|
826
|
-
|
|
1263
|
+
const x = Array.from(
|
|
1264
|
+
document.querySelectorAll(`input[type="radio"][name="${c.name}"]`)
|
|
1265
|
+
), p = x.findIndex((v) => v.id === u);
|
|
1266
|
+
ce(b, p, x.length, (v) => {
|
|
1267
|
+
x[v]?.focus(), x[v]?.click();
|
|
827
1268
|
});
|
|
828
1269
|
};
|
|
829
|
-
return /* @__PURE__ */
|
|
830
|
-
/* @__PURE__ */
|
|
831
|
-
/* @__PURE__ */
|
|
832
|
-
/* @__PURE__ */
|
|
1270
|
+
return /* @__PURE__ */ n.jsxs("label", { className: _(k["sand-choice-row"], r), htmlFor: u, children: [
|
|
1271
|
+
/* @__PURE__ */ n.jsx("input", { ref: i, id: u, type: "radio", className: k["sand-choice-input"], onKeyDown: m, ...c }),
|
|
1272
|
+
/* @__PURE__ */ n.jsx("span", { className: _(k["sand-choice-control"], k["sand-radio"]), "aria-hidden": "true" }),
|
|
1273
|
+
/* @__PURE__ */ n.jsx(ye, { label: e, description: a })
|
|
833
1274
|
] });
|
|
834
1275
|
});
|
|
835
|
-
|
|
836
|
-
const
|
|
837
|
-
const
|
|
838
|
-
return /* @__PURE__ */
|
|
839
|
-
/* @__PURE__ */
|
|
840
|
-
/* @__PURE__ */
|
|
841
|
-
/* @__PURE__ */
|
|
1276
|
+
zn.displayName = "SandRadio";
|
|
1277
|
+
const Bn = f(function({ label: e, description: a, id: t, className: r = "", ...d }, c) {
|
|
1278
|
+
const i = I(), l = t ?? i;
|
|
1279
|
+
return /* @__PURE__ */ n.jsxs("label", { className: _(k["sand-choice-row"], r), htmlFor: l, children: [
|
|
1280
|
+
/* @__PURE__ */ n.jsx("input", { ref: c, id: l, type: "checkbox", role: "switch", className: k["sand-choice-input"], ...d }),
|
|
1281
|
+
/* @__PURE__ */ n.jsx("span", { className: _(k["sand-choice-control"], k["sand-switch"]), "aria-hidden": "true" }),
|
|
1282
|
+
/* @__PURE__ */ n.jsx(ye, { label: e, description: a })
|
|
842
1283
|
] });
|
|
843
1284
|
});
|
|
844
|
-
|
|
845
|
-
const
|
|
846
|
-
return /* @__PURE__ */
|
|
1285
|
+
Bn.displayName = "SandSwitch";
|
|
1286
|
+
const Fn = f(function({ className: e = "", label: a, ...t }, r) {
|
|
1287
|
+
return /* @__PURE__ */ n.jsx("div", { ref: r, role: "group", "aria-label": typeof a == "string" ? a : void 0, className: _(k["sand-choice-group"], e), ...t });
|
|
1288
|
+
});
|
|
1289
|
+
Fn.displayName = "SandChoiceGroup";
|
|
1290
|
+
const qn = f(function({ as: e, direction: a = "column", gap: t = "md", align: r, justify: d, wrap: c, surface: i, className: l, style: u, ...m }, b) {
|
|
1291
|
+
const x = e ?? "div";
|
|
1292
|
+
let p = u;
|
|
1293
|
+
return p = j(p, "--sand-display", "flex"), p = j(p, "--sand-gap", X(t)), p = j(p, "--sand-align", r), p = j(p, "--sand-justify", d), p = j(p, "--sand-stack-direction", a), p = j(p, "--sand-stack-wrap", c ? "wrap" : "nowrap"), /* @__PURE__ */ n.jsx(
|
|
1294
|
+
x,
|
|
1295
|
+
{
|
|
1296
|
+
ref: b,
|
|
1297
|
+
className: _(Z.box, i && Z.surface, l),
|
|
1298
|
+
style: {
|
|
1299
|
+
flexDirection: "var(--sand-stack-direction)",
|
|
1300
|
+
flexWrap: "var(--sand-stack-wrap)",
|
|
1301
|
+
...p
|
|
1302
|
+
},
|
|
1303
|
+
...m
|
|
1304
|
+
}
|
|
1305
|
+
);
|
|
1306
|
+
});
|
|
1307
|
+
qn.displayName = "SandStack";
|
|
1308
|
+
const Ln = "_wrapper_1142m_1", Vn = "_table_1142m_9", Gn = "_stickyHeader_1142m_36", Hn = "_striped_1142m_42", Yn = "_hoverable_1142m_50", J = {
|
|
1309
|
+
wrapper: Ln,
|
|
1310
|
+
table: Vn,
|
|
1311
|
+
stickyHeader: Gn,
|
|
1312
|
+
striped: Hn,
|
|
1313
|
+
hoverable: Yn
|
|
1314
|
+
}, Wn = f(function({ striped: e, hoverable: a = !0, stickyHeader: t, className: r, wrapperProps: d, ...c }, i) {
|
|
1315
|
+
return /* @__PURE__ */ n.jsx("div", { ...d, className: _(J.wrapper, d?.className), children: /* @__PURE__ */ n.jsx(
|
|
1316
|
+
"table",
|
|
1317
|
+
{
|
|
1318
|
+
ref: i,
|
|
1319
|
+
className: _(J.table, e && J.striped, a && J.hoverable, t && J.stickyHeader, r),
|
|
1320
|
+
...c
|
|
1321
|
+
}
|
|
1322
|
+
) });
|
|
847
1323
|
});
|
|
848
|
-
|
|
1324
|
+
Wn.displayName = "SandTable";
|
|
1325
|
+
const Kn = "_root_yi163_1", Un = "_list_yi163_6", Jn = "_trigger_yi163_18", Xn = "_active_yi163_41", Zn = "_indicator_yi163_45", Qn = "_panel_yi163_57", B = {
|
|
1326
|
+
root: Kn,
|
|
1327
|
+
list: Un,
|
|
1328
|
+
trigger: Jn,
|
|
1329
|
+
active: Xn,
|
|
1330
|
+
indicator: Zn,
|
|
1331
|
+
panel: Qn
|
|
1332
|
+
};
|
|
1333
|
+
function xt({ items: s, defaultValue: e, className: a, ...t }) {
|
|
1334
|
+
const r = I(), [d, c] = V(e ?? s[0]?.id), i = Math.max(s.findIndex((m) => m.id === d), 0), l = s[i], u = C(
|
|
1335
|
+
() => ({
|
|
1336
|
+
"--sand-tabs-left": `calc(4px + ${i} * (100% - 8px) / ${Math.max(s.length, 1)})`,
|
|
1337
|
+
"--sand-tabs-width": `calc((100% - 8px) / ${Math.max(s.length, 1)})`
|
|
1338
|
+
}),
|
|
1339
|
+
[i, s.length]
|
|
1340
|
+
);
|
|
1341
|
+
return /* @__PURE__ */ n.jsxs("div", { className: _(B.root, a), ...t, children: [
|
|
1342
|
+
/* @__PURE__ */ n.jsxs("div", { role: "tablist", "aria-label": "Tabs", className: B.list, style: u, children: [
|
|
1343
|
+
/* @__PURE__ */ n.jsx("span", { "aria-hidden": "true", className: B.indicator }),
|
|
1344
|
+
s.map((m, b) => {
|
|
1345
|
+
const x = `${r}-tab-${m.id}`, p = `${r}-panel-${m.id}`, v = m.id === d;
|
|
1346
|
+
return /* @__PURE__ */ n.jsx(
|
|
1347
|
+
"button",
|
|
1348
|
+
{
|
|
1349
|
+
id: x,
|
|
1350
|
+
role: "tab",
|
|
1351
|
+
type: "button",
|
|
1352
|
+
tabIndex: v ? 0 : -1,
|
|
1353
|
+
"aria-selected": v,
|
|
1354
|
+
"aria-controls": p,
|
|
1355
|
+
className: _(B.trigger, v && B.active),
|
|
1356
|
+
onClick: () => c(m.id),
|
|
1357
|
+
onKeyDown: (T) => ce(T, b, s.length, (R) => c(s[R].id)),
|
|
1358
|
+
children: m.label
|
|
1359
|
+
},
|
|
1360
|
+
m.id
|
|
1361
|
+
);
|
|
1362
|
+
})
|
|
1363
|
+
] }),
|
|
1364
|
+
l && /* @__PURE__ */ n.jsx(
|
|
1365
|
+
"div",
|
|
1366
|
+
{
|
|
1367
|
+
id: `${r}-panel-${l.id}`,
|
|
1368
|
+
role: "tabpanel",
|
|
1369
|
+
"aria-labelledby": `${r}-tab-${l.id}`,
|
|
1370
|
+
className: B.panel,
|
|
1371
|
+
children: l.content
|
|
1372
|
+
}
|
|
1373
|
+
)
|
|
1374
|
+
] });
|
|
1375
|
+
}
|
|
1376
|
+
const Xe = Pe(null);
|
|
1377
|
+
function Ae(s) {
|
|
1378
|
+
return s !== "system" ? s : typeof window > "u" || typeof window.matchMedia != "function" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
1379
|
+
}
|
|
1380
|
+
function et(s) {
|
|
1381
|
+
if (!s)
|
|
1382
|
+
return;
|
|
1383
|
+
const e = {};
|
|
1384
|
+
return s.accent && (e["--sand-accent"] = s.accent), s.accentDark && (e["--sand-accent-dark"] = s.accentDark), s.surface && (e["--theme-surface"] = s.surface), s.surfaceVariant && (e["--theme-surface-variant"] = s.surfaceVariant), s.text && (e["--theme-text"] = s.text), s.textMuted && (e["--theme-text-muted"] = s.textMuted), s.border && (e["--theme-border"] = s.border), s.shadowSm && (e["--shadow-sm"] = s.shadowSm), s.shadowMd && (e["--shadow-md"] = s.shadowMd), s.shadowLg && (e["--shadow-lg"] = s.shadowLg), e;
|
|
1385
|
+
}
|
|
1386
|
+
function vt({
|
|
1387
|
+
children: s,
|
|
1388
|
+
defaultTheme: e = "system",
|
|
1389
|
+
theme: a,
|
|
1390
|
+
tokens: t,
|
|
1391
|
+
className: r,
|
|
1392
|
+
root: d = !1
|
|
1393
|
+
}) {
|
|
1394
|
+
const [c, i] = V(e), l = a ?? c, u = Ae(l);
|
|
1395
|
+
Oe(() => {
|
|
1396
|
+
!d || typeof document > "u" || (document.documentElement.dataset.theme = u);
|
|
1397
|
+
}, [u, d]);
|
|
1398
|
+
const m = C(
|
|
1399
|
+
() => ({
|
|
1400
|
+
theme: l,
|
|
1401
|
+
resolvedTheme: u,
|
|
1402
|
+
setTheme: i,
|
|
1403
|
+
toggleTheme: () => i((b) => Ae(b) === "dark" ? "light" : "dark")
|
|
1404
|
+
}),
|
|
1405
|
+
[u, l]
|
|
1406
|
+
);
|
|
1407
|
+
return /* @__PURE__ */ n.jsx(Xe.Provider, { value: m, children: /* @__PURE__ */ n.jsx("div", { className: r, "data-theme": u, style: et(t), children: s }) });
|
|
1408
|
+
}
|
|
1409
|
+
function yt() {
|
|
1410
|
+
const s = De(Xe);
|
|
1411
|
+
if (!s)
|
|
1412
|
+
throw new Error("useSandTheme must be used within SandThemeProvider.");
|
|
1413
|
+
return s;
|
|
1414
|
+
}
|
|
1415
|
+
const at = "_title_huapx_1", nt = "_text_huapx_8", tt = "_code_huapx_14", st = "_gradient_huapx_25", rt = "_muted_huapx_31", P = {
|
|
1416
|
+
title: at,
|
|
1417
|
+
text: nt,
|
|
1418
|
+
code: tt,
|
|
1419
|
+
gradient: st,
|
|
1420
|
+
muted: rt
|
|
1421
|
+
}, ge = {
|
|
1422
|
+
regular: 400,
|
|
1423
|
+
medium: 500,
|
|
1424
|
+
semibold: 600,
|
|
1425
|
+
bold: 700
|
|
1426
|
+
}, ot = {
|
|
1427
|
+
xs: "1rem",
|
|
1428
|
+
sm: "1.25rem",
|
|
1429
|
+
md: "1.5rem",
|
|
1430
|
+
lg: "2rem",
|
|
1431
|
+
xl: "2.75rem",
|
|
1432
|
+
display: "clamp(3rem, 6vw, 4.75rem)"
|
|
1433
|
+
}, Ze = {
|
|
1434
|
+
xs: "0.75rem",
|
|
1435
|
+
sm: "0.875rem",
|
|
1436
|
+
md: "1rem",
|
|
1437
|
+
lg: "1.125rem",
|
|
1438
|
+
xl: "1.25rem"
|
|
1439
|
+
}, dt = f(function({ as: e, level: a = 2, size: t = "lg", weight: r = "semibold", gradient: d, muted: c, className: i, style: l, ...u }, m) {
|
|
1440
|
+
const b = e ?? `h${a}`;
|
|
1441
|
+
return /* @__PURE__ */ n.jsx(
|
|
1442
|
+
b,
|
|
1443
|
+
{
|
|
1444
|
+
ref: m,
|
|
1445
|
+
className: _(P.title, d && P.gradient, c && P.muted, i),
|
|
1446
|
+
style: { fontSize: ot[t], fontWeight: ge[r], ...l },
|
|
1447
|
+
...u
|
|
1448
|
+
}
|
|
1449
|
+
);
|
|
1450
|
+
});
|
|
1451
|
+
dt.displayName = "SandTitle";
|
|
1452
|
+
const ct = f(function({ as: e, size: a = "md", weight: t = "regular", gradient: r, muted: d, className: c, style: i, ...l }, u) {
|
|
1453
|
+
const m = e ?? "p";
|
|
1454
|
+
return /* @__PURE__ */ n.jsx(
|
|
1455
|
+
m,
|
|
1456
|
+
{
|
|
1457
|
+
ref: u,
|
|
1458
|
+
className: _(P.text, r && P.gradient, d && P.muted, c),
|
|
1459
|
+
style: { fontSize: Ze[a], fontWeight: ge[t], ...i },
|
|
1460
|
+
...l
|
|
1461
|
+
}
|
|
1462
|
+
);
|
|
1463
|
+
});
|
|
1464
|
+
ct.displayName = "SandText";
|
|
1465
|
+
const it = f(function({ as: e, block: a, size: t = "sm", weight: r = "medium", className: d, style: c, ...i }, l) {
|
|
1466
|
+
const u = e ?? (a ? "pre" : "code");
|
|
1467
|
+
return /* @__PURE__ */ n.jsx(
|
|
1468
|
+
u,
|
|
1469
|
+
{
|
|
1470
|
+
ref: l,
|
|
1471
|
+
className: _(P.code, d),
|
|
1472
|
+
style: {
|
|
1473
|
+
fontSize: Ze[t],
|
|
1474
|
+
fontWeight: ge[r],
|
|
1475
|
+
display: a ? "block" : void 0,
|
|
1476
|
+
whiteSpace: a ? "pre-wrap" : void 0,
|
|
1477
|
+
...c
|
|
1478
|
+
},
|
|
1479
|
+
...i
|
|
1480
|
+
}
|
|
1481
|
+
);
|
|
1482
|
+
});
|
|
1483
|
+
it.displayName = "SandCode";
|
|
1484
|
+
const lt = "_trigger_ehjfy_1", ut = "_content_ehjfy_5", Me = {
|
|
1485
|
+
trigger: lt,
|
|
1486
|
+
content: ut
|
|
1487
|
+
};
|
|
1488
|
+
function gt({ content: s, children: e }) {
|
|
1489
|
+
const a = I(), [t, r] = V(null);
|
|
1490
|
+
if (!sa(e))
|
|
1491
|
+
return null;
|
|
1492
|
+
const d = (i) => {
|
|
1493
|
+
const l = i.getBoundingClientRect();
|
|
1494
|
+
r({
|
|
1495
|
+
top: l.bottom + 10,
|
|
1496
|
+
left: l.left + l.width / 2
|
|
1497
|
+
});
|
|
1498
|
+
}, c = ra(e, {
|
|
1499
|
+
"aria-describedby": a,
|
|
1500
|
+
onMouseEnter: (i) => {
|
|
1501
|
+
d(i.currentTarget), e.props.onMouseEnter?.(i);
|
|
1502
|
+
},
|
|
1503
|
+
onMouseLeave: (i) => {
|
|
1504
|
+
r(null), e.props.onMouseLeave?.(i);
|
|
1505
|
+
},
|
|
1506
|
+
onFocus: (i) => {
|
|
1507
|
+
d(i.currentTarget), e.props.onFocus?.(i);
|
|
1508
|
+
},
|
|
1509
|
+
onBlur: (i) => {
|
|
1510
|
+
r(null), e.props.onBlur?.(i);
|
|
1511
|
+
}
|
|
1512
|
+
});
|
|
1513
|
+
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1514
|
+
/* @__PURE__ */ n.jsx("span", { className: Me.trigger, children: c }),
|
|
1515
|
+
t && typeof document < "u" ? oa(
|
|
1516
|
+
/* @__PURE__ */ n.jsx(
|
|
1517
|
+
"div",
|
|
1518
|
+
{
|
|
1519
|
+
id: a,
|
|
1520
|
+
role: "tooltip",
|
|
1521
|
+
className: Me.content,
|
|
1522
|
+
style: { top: t.top, left: t.left, transform: "translateX(-50%)" },
|
|
1523
|
+
children: s
|
|
1524
|
+
}
|
|
1525
|
+
),
|
|
1526
|
+
document.body
|
|
1527
|
+
) : null
|
|
1528
|
+
] });
|
|
1529
|
+
}
|
|
849
1530
|
export {
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
1531
|
+
Aa as SandAccordion,
|
|
1532
|
+
va as SandAlert,
|
|
1533
|
+
Ma as SandBadge,
|
|
1534
|
+
qa as SandBox,
|
|
1535
|
+
Oa as SandBreadcrumbs,
|
|
1536
|
+
La as SandButton,
|
|
1537
|
+
Va as SandCard,
|
|
1538
|
+
Dn as SandCheckbox,
|
|
1539
|
+
Fn as SandChoiceGroup,
|
|
1540
|
+
it as SandCode,
|
|
1541
|
+
Fe as SandCodeBlock,
|
|
1542
|
+
Ya as SandCodeTabs,
|
|
1543
|
+
dn as SandContainer,
|
|
1544
|
+
Ka as SandDivider,
|
|
1545
|
+
ht as SandDrawer,
|
|
1546
|
+
He as SandFormGroup,
|
|
1547
|
+
ft as SandGrid,
|
|
1548
|
+
cn as SandHeader,
|
|
1549
|
+
L as SandIcon,
|
|
1550
|
+
Ye as SandInput,
|
|
1551
|
+
en as SandInputGroup,
|
|
1552
|
+
nn as SandKBD,
|
|
1553
|
+
rn as SandLoader,
|
|
1554
|
+
pt as SandModal,
|
|
1555
|
+
bt as SandNavbar,
|
|
1556
|
+
En as SandPagination,
|
|
1557
|
+
Pn as SandProgress,
|
|
1558
|
+
zn as SandRadio,
|
|
1559
|
+
_n as SandResultPanel,
|
|
1560
|
+
on as SandSkeleton,
|
|
1561
|
+
Xa as SandSnackbar,
|
|
1562
|
+
qn as SandStack,
|
|
1563
|
+
Bn as SandSwitch,
|
|
1564
|
+
Wn as SandTable,
|
|
1565
|
+
xt as SandTabs,
|
|
1566
|
+
ct as SandText,
|
|
1567
|
+
vt as SandThemeProvider,
|
|
1568
|
+
dt as SandTitle,
|
|
1569
|
+
Ja as SandToast,
|
|
1570
|
+
ln as SandToolLayout,
|
|
1571
|
+
un as SandToolPanel,
|
|
1572
|
+
gt as SandTooltip,
|
|
1573
|
+
yt as useSandTheme
|
|
875
1574
|
};
|