@maskingtech/designsystem 0.0.2 → 0.0.4
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 +2 -2
- package/dist/mtds.css +1 -1
- package/dist/mtds.d.ts +194 -98
- package/dist/mtds.js +247 -439
- package/package.json +11 -10
package/dist/mtds.js
CHANGED
|
@@ -1,495 +1,303 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
W = 1;
|
|
7
|
-
var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
8
|
-
function n(a, s, l) {
|
|
9
|
-
var i = null;
|
|
10
|
-
if (l !== void 0 && (i = "" + l), s.key !== void 0 && (i = "" + s.key), "key" in s) {
|
|
11
|
-
l = {};
|
|
12
|
-
for (var f in s)
|
|
13
|
-
f !== "key" && (l[f] = s[f]);
|
|
14
|
-
} else l = s;
|
|
15
|
-
return s = l.ref, {
|
|
16
|
-
$$typeof: t,
|
|
17
|
-
type: a,
|
|
18
|
-
key: i,
|
|
19
|
-
ref: s !== void 0 ? s : null,
|
|
20
|
-
props: l
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
return T.Fragment = r, T.jsx = n, T.jsxs = n, T;
|
|
24
|
-
}
|
|
25
|
-
var N = {};
|
|
26
|
-
var U;
|
|
27
|
-
function le() {
|
|
28
|
-
return U || (U = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
29
|
-
function t(e) {
|
|
30
|
-
if (e == null) return null;
|
|
31
|
-
if (typeof e == "function")
|
|
32
|
-
return e.$$typeof === te ? null : e.displayName || e.name || null;
|
|
33
|
-
if (typeof e == "string") return e;
|
|
34
|
-
switch (e) {
|
|
35
|
-
case g:
|
|
36
|
-
return "Fragment";
|
|
37
|
-
case G:
|
|
38
|
-
return "Profiler";
|
|
39
|
-
case A:
|
|
40
|
-
return "StrictMode";
|
|
41
|
-
case Z:
|
|
42
|
-
return "Suspense";
|
|
43
|
-
case H:
|
|
44
|
-
return "SuspenseList";
|
|
45
|
-
case ee:
|
|
46
|
-
return "Activity";
|
|
47
|
-
}
|
|
48
|
-
if (typeof e == "object")
|
|
49
|
-
switch (typeof e.tag == "number" && console.error(
|
|
50
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
51
|
-
), e.$$typeof) {
|
|
52
|
-
case S:
|
|
53
|
-
return "Portal";
|
|
54
|
-
case X:
|
|
55
|
-
return e.displayName || "Context";
|
|
56
|
-
case B:
|
|
57
|
-
return (e._context.displayName || "Context") + ".Consumer";
|
|
58
|
-
case K:
|
|
59
|
-
var c = e.render;
|
|
60
|
-
return e = e.displayName, e || (e = c.displayName || c.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
61
|
-
case Q:
|
|
62
|
-
return c = e.displayName || null, c !== null ? c : t(e.type) || "Memo";
|
|
63
|
-
case O:
|
|
64
|
-
c = e._payload, e = e._init;
|
|
65
|
-
try {
|
|
66
|
-
return t(e(c));
|
|
67
|
-
} catch {
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return null;
|
|
71
|
-
}
|
|
72
|
-
function r(e) {
|
|
73
|
-
return "" + e;
|
|
74
|
-
}
|
|
75
|
-
function n(e) {
|
|
76
|
-
try {
|
|
77
|
-
r(e);
|
|
78
|
-
var c = !1;
|
|
79
|
-
} catch {
|
|
80
|
-
c = !0;
|
|
81
|
-
}
|
|
82
|
-
if (c) {
|
|
83
|
-
c = console;
|
|
84
|
-
var u = c.error, d = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
85
|
-
return u.call(
|
|
86
|
-
c,
|
|
87
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
88
|
-
d
|
|
89
|
-
), r(e);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
function a(e) {
|
|
93
|
-
if (e === g) return "<>";
|
|
94
|
-
if (typeof e == "object" && e !== null && e.$$typeof === O)
|
|
95
|
-
return "<...>";
|
|
96
|
-
try {
|
|
97
|
-
var c = t(e);
|
|
98
|
-
return c ? "<" + c + ">" : "<...>";
|
|
99
|
-
} catch {
|
|
100
|
-
return "<...>";
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
function s() {
|
|
104
|
-
var e = P.A;
|
|
105
|
-
return e === null ? null : e.getOwner();
|
|
106
|
-
}
|
|
107
|
-
function l() {
|
|
108
|
-
return Error("react-stack-top-frame");
|
|
109
|
-
}
|
|
110
|
-
function i(e) {
|
|
111
|
-
if (I.call(e, "key")) {
|
|
112
|
-
var c = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
113
|
-
if (c && c.isReactWarning) return !1;
|
|
114
|
-
}
|
|
115
|
-
return e.key !== void 0;
|
|
116
|
-
}
|
|
117
|
-
function f(e, c) {
|
|
118
|
-
function u() {
|
|
119
|
-
z || (z = !0, console.error(
|
|
120
|
-
"%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
|
-
c
|
|
122
|
-
));
|
|
123
|
-
}
|
|
124
|
-
u.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
125
|
-
get: u,
|
|
126
|
-
configurable: !0
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
function x() {
|
|
130
|
-
var e = t(this.type);
|
|
131
|
-
return D[e] || (D[e] = !0, console.error(
|
|
132
|
-
"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
|
-
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
134
|
-
}
|
|
135
|
-
function v(e, c, u, d, h, C) {
|
|
136
|
-
var p = u.ref;
|
|
137
|
-
return e = {
|
|
138
|
-
$$typeof: j,
|
|
139
|
-
type: e,
|
|
140
|
-
key: c,
|
|
141
|
-
props: u,
|
|
142
|
-
_owner: d
|
|
143
|
-
}, (p !== void 0 ? p : null) !== null ? Object.defineProperty(e, "ref", {
|
|
144
|
-
enumerable: !1,
|
|
145
|
-
get: x
|
|
146
|
-
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
147
|
-
configurable: !1,
|
|
148
|
-
enumerable: !1,
|
|
149
|
-
writable: !0,
|
|
150
|
-
value: 0
|
|
151
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
152
|
-
configurable: !1,
|
|
153
|
-
enumerable: !1,
|
|
154
|
-
writable: !0,
|
|
155
|
-
value: null
|
|
156
|
-
}), Object.defineProperty(e, "_debugStack", {
|
|
157
|
-
configurable: !1,
|
|
158
|
-
enumerable: !1,
|
|
159
|
-
writable: !0,
|
|
160
|
-
value: h
|
|
161
|
-
}), Object.defineProperty(e, "_debugTask", {
|
|
162
|
-
configurable: !1,
|
|
163
|
-
enumerable: !1,
|
|
164
|
-
writable: !0,
|
|
165
|
-
value: C
|
|
166
|
-
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
167
|
-
}
|
|
168
|
-
function m(e, c, u, d, h, C) {
|
|
169
|
-
var p = c.children;
|
|
170
|
-
if (p !== void 0)
|
|
171
|
-
if (d)
|
|
172
|
-
if (re(p)) {
|
|
173
|
-
for (d = 0; d < p.length; d++)
|
|
174
|
-
E(p[d]);
|
|
175
|
-
Object.freeze && Object.freeze(p);
|
|
176
|
-
} else
|
|
177
|
-
console.error(
|
|
178
|
-
"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
|
-
else E(p);
|
|
181
|
-
if (I.call(c, "key")) {
|
|
182
|
-
p = t(e);
|
|
183
|
-
var R = Object.keys(c).filter(function(ne) {
|
|
184
|
-
return ne !== "key";
|
|
185
|
-
});
|
|
186
|
-
d = 0 < R.length ? "{key: someKey, " + R.join(": ..., ") + ": ...}" : "{key: someKey}", M[p + d] || (R = 0 < R.length ? "{" + R.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
187
|
-
`A props object containing a "key" prop is being spread into JSX:
|
|
188
|
-
let props = %s;
|
|
189
|
-
<%s {...props} />
|
|
190
|
-
React keys must be passed directly to JSX without using spread:
|
|
191
|
-
let props = %s;
|
|
192
|
-
<%s key={someKey} {...props} />`,
|
|
193
|
-
d,
|
|
194
|
-
p,
|
|
195
|
-
R,
|
|
196
|
-
p
|
|
197
|
-
), M[p + d] = !0);
|
|
198
|
-
}
|
|
199
|
-
if (p = null, u !== void 0 && (n(u), p = "" + u), i(c) && (n(c.key), p = "" + c.key), "key" in c) {
|
|
200
|
-
u = {};
|
|
201
|
-
for (var Y in c)
|
|
202
|
-
Y !== "key" && (u[Y] = c[Y]);
|
|
203
|
-
} else u = c;
|
|
204
|
-
return p && f(
|
|
205
|
-
u,
|
|
206
|
-
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
207
|
-
), v(
|
|
208
|
-
e,
|
|
209
|
-
p,
|
|
210
|
-
u,
|
|
211
|
-
s(),
|
|
212
|
-
h,
|
|
213
|
-
C
|
|
214
|
-
);
|
|
215
|
-
}
|
|
216
|
-
function E(e) {
|
|
217
|
-
_(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === O && (e._payload.status === "fulfilled" ? _(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
218
|
-
}
|
|
219
|
-
function _(e) {
|
|
220
|
-
return typeof e == "object" && e !== null && e.$$typeof === j;
|
|
221
|
-
}
|
|
222
|
-
var b = ae, j = Symbol.for("react.transitional.element"), S = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), G = Symbol.for("react.profiler"), B = Symbol.for("react.consumer"), X = Symbol.for("react.context"), K = Symbol.for("react.forward_ref"), Z = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), Q = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), ee = Symbol.for("react.activity"), te = Symbol.for("react.client.reference"), P = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, I = Object.prototype.hasOwnProperty, re = Array.isArray, $ = console.createTask ? console.createTask : function() {
|
|
223
|
-
return null;
|
|
224
|
-
};
|
|
225
|
-
b = {
|
|
226
|
-
react_stack_bottom_frame: function(e) {
|
|
227
|
-
return e();
|
|
228
|
-
}
|
|
229
|
-
};
|
|
230
|
-
var z, D = {}, L = b.react_stack_bottom_frame.bind(
|
|
231
|
-
b,
|
|
232
|
-
l
|
|
233
|
-
)(), F = $(a(l)), M = {};
|
|
234
|
-
N.Fragment = g, N.jsx = function(e, c, u) {
|
|
235
|
-
var d = 1e4 > P.recentlyCreatedOwnerStacks++;
|
|
236
|
-
return m(
|
|
237
|
-
e,
|
|
238
|
-
c,
|
|
239
|
-
u,
|
|
240
|
-
!1,
|
|
241
|
-
d ? Error("react-stack-top-frame") : L,
|
|
242
|
-
d ? $(a(e)) : F
|
|
243
|
-
);
|
|
244
|
-
}, N.jsxs = function(e, c, u) {
|
|
245
|
-
var d = 1e4 > P.recentlyCreatedOwnerStacks++;
|
|
246
|
-
return m(
|
|
247
|
-
e,
|
|
248
|
-
c,
|
|
249
|
-
u,
|
|
250
|
-
!0,
|
|
251
|
-
d ? Error("react-stack-top-frame") : L,
|
|
252
|
-
d ? $(a(e)) : F
|
|
253
|
-
);
|
|
254
|
-
};
|
|
255
|
-
})()), N;
|
|
256
|
-
}
|
|
257
|
-
var q;
|
|
258
|
-
function ie() {
|
|
259
|
-
return q || (q = 1, process.env.NODE_ENV === "production" ? y.exports = ce() : y.exports = le()), y.exports;
|
|
260
|
-
}
|
|
261
|
-
var o = ie();
|
|
262
|
-
function fe({ children: t }) {
|
|
263
|
-
return /* @__PURE__ */ o.jsx("div", { className: "mtds", children: t });
|
|
264
|
-
}
|
|
265
|
-
function me({ options: t, selected: r, onChange: n }) {
|
|
266
|
-
const a = r ?? [...t.keys()][0], s = t.get(a) ?? "", [l, i] = k(a), [f, x] = k(s), [v, m] = k(!1), E = () => {
|
|
267
|
-
m(!v);
|
|
268
|
-
}, _ = (b) => {
|
|
269
|
-
const j = b.target, S = l, g = j.getAttribute("data-key") ?? a, A = t.get(g) ?? s;
|
|
270
|
-
i(g), x(A), m(!1), n && n(S, g);
|
|
271
|
-
};
|
|
272
|
-
return /* @__PURE__ */ o.jsxs("div", { className: "dropdown", children: [
|
|
273
|
-
/* @__PURE__ */ o.jsx("div", { className: v ? "text active" : "text", onClick: E, children: f }),
|
|
274
|
-
v && /* @__PURE__ */ o.jsx("div", { className: "options", children: Array.from(t).map(([b, j]) => /* @__PURE__ */ o.jsx("div", { className: "option", "data-key": b, onClick: _, children: j }, b)) })
|
|
275
|
-
] });
|
|
276
|
-
}
|
|
277
|
-
function de({ children: t }) {
|
|
278
|
-
return /* @__PURE__ */ o.jsx("div", { className: "ds-tabs-tab", children: t });
|
|
279
|
-
}
|
|
280
|
-
function pe({ separator: t, selectedId: r, children: n, onChange: a }) {
|
|
281
|
-
const [s, l] = k(r ?? ""), i = V(() => Array.isArray(n) ? n : [n], [n]), f = V(() => {
|
|
282
|
-
const m = {};
|
|
283
|
-
return i.forEach((E) => {
|
|
284
|
-
const _ = E.props.id;
|
|
285
|
-
m[_] = E;
|
|
286
|
-
}), m;
|
|
287
|
-
}, [i]), x = se((m) => {
|
|
288
|
-
const E = i[0]?.props.id;
|
|
289
|
-
l(m ?? E);
|
|
290
|
-
});
|
|
291
|
-
J(() => {
|
|
292
|
-
x(r);
|
|
293
|
-
}, [r, i]);
|
|
294
|
-
const v = (m) => {
|
|
295
|
-
a !== void 0 && a(m, s), l(m);
|
|
296
|
-
};
|
|
297
|
-
return /* @__PURE__ */ o.jsxs("div", { className: "tabs", children: [
|
|
298
|
-
/* @__PURE__ */ o.jsx("div", { className: "nav", children: i.map((m) => {
|
|
299
|
-
const E = m.props.id, _ = `tab-${E}`, b = E === s ? "active" : "inactive", j = () => v(m.props.id);
|
|
300
|
-
return /* @__PURE__ */ o.jsx("div", { className: "item " + b, onClick: j, children: m.props.title }, _);
|
|
301
|
-
}) }),
|
|
302
|
-
t !== void 0 ? /* @__PURE__ */ o.jsx("div", { className: "separator", children: t }) : null,
|
|
303
|
-
/* @__PURE__ */ o.jsx("div", { className: "content", children: f[s] })
|
|
304
|
-
] });
|
|
305
|
-
}
|
|
306
|
-
function Ee({ source: t, title: r, alt: n = "Avatar", width: a, height: s, fit: l = "contain" }) {
|
|
307
|
-
const i = "avatar fit-" + l, f = { width: a, height: s };
|
|
308
|
-
return /* @__PURE__ */ o.jsx(
|
|
1
|
+
import { jsx as a, jsxs as N } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as f, useRef as x, useEffect as y, useState as E, useMemo as v, useEffectEvent as w } from "react";
|
|
3
|
+
function $({ source: e, title: t, alt: n = "Avatar", width: r, height: s, fit: c = "contain" }) {
|
|
4
|
+
const i = "avatar fit-" + c;
|
|
5
|
+
return /* @__PURE__ */ a(
|
|
309
6
|
"img",
|
|
310
7
|
{
|
|
311
8
|
className: i,
|
|
312
|
-
title:
|
|
9
|
+
title: t,
|
|
313
10
|
alt: n,
|
|
314
|
-
style:
|
|
315
|
-
src:
|
|
11
|
+
style: { width: r, height: s },
|
|
12
|
+
src: e
|
|
316
13
|
}
|
|
317
14
|
);
|
|
318
15
|
}
|
|
319
|
-
function
|
|
320
|
-
const s = "border type-" +
|
|
321
|
-
return /* @__PURE__ */
|
|
16
|
+
function M({ type: e = "normal", size: t = "large", padding: n = "large", children: r }) {
|
|
17
|
+
const s = "border type-" + e + " size-" + t + " padding-" + n;
|
|
18
|
+
return /* @__PURE__ */ a("div", { className: s, children: r });
|
|
322
19
|
}
|
|
323
|
-
function
|
|
324
|
-
const
|
|
325
|
-
return /* @__PURE__ */
|
|
20
|
+
function D({ type: e = "primary", border: t = "small", size: n = "medium", text: r, onClick: s }) {
|
|
21
|
+
const c = "button type-" + e + " border-" + t + " size-" + n;
|
|
22
|
+
return /* @__PURE__ */ a("input", { type: e === "submit" ? "submit" : "button", onClick: s, className: c, disabled: e === "disabled", value: r });
|
|
326
23
|
}
|
|
327
|
-
function
|
|
328
|
-
const n = "cell sizing-" +
|
|
329
|
-
return /* @__PURE__ */
|
|
24
|
+
function I({ sizing: e = "fluid", children: t }) {
|
|
25
|
+
const n = "cell sizing-" + e;
|
|
26
|
+
return /* @__PURE__ */ a("div", { className: n, children: t });
|
|
330
27
|
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
28
|
+
const j = f(function({ name: t, label: n, defaultChecked: r, checked: s, value: c, required: i, onChange: u }, m) {
|
|
29
|
+
return /* @__PURE__ */ N("label", { className: "checkbox", children: [
|
|
30
|
+
/* @__PURE__ */ a(
|
|
31
|
+
"input",
|
|
32
|
+
{
|
|
33
|
+
type: "checkbox",
|
|
34
|
+
defaultChecked: r,
|
|
35
|
+
checked: s,
|
|
36
|
+
value: c,
|
|
37
|
+
name: t,
|
|
38
|
+
ref: m,
|
|
39
|
+
required: i,
|
|
40
|
+
onChange: u
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
n
|
|
44
|
+
] });
|
|
45
|
+
});
|
|
46
|
+
function F({ padding: e = "none", onClick: t, children: n }) {
|
|
47
|
+
const r = "clickarea padding-" + e;
|
|
48
|
+
return /* @__PURE__ */ a("div", { className: r, onClick: t, children: n });
|
|
334
49
|
}
|
|
335
|
-
function
|
|
336
|
-
const
|
|
337
|
-
return /* @__PURE__ */
|
|
50
|
+
function P({ alignX: e = "left", alignY: t = "top", gap: n = "medium", wrap: r = "nowrap", children: s }) {
|
|
51
|
+
const c = "column align-x-" + e + " align-y-" + t + " gap-" + n + " wrap-" + r;
|
|
52
|
+
return /* @__PURE__ */ a("div", { className: c, children: s });
|
|
338
53
|
}
|
|
339
|
-
const
|
|
340
|
-
const
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
54
|
+
const G = f(function({ name: t, defaultValue: n, value: r, title: s, type: c = "datetime", border: i = "small", size: u = "medium", required: m, onChange: d }, o) {
|
|
55
|
+
const l = "datetime border-" + i + " size-" + u;
|
|
56
|
+
return /* @__PURE__ */ a(
|
|
57
|
+
"input",
|
|
58
|
+
{
|
|
59
|
+
className: l,
|
|
60
|
+
type: c,
|
|
61
|
+
name: t,
|
|
62
|
+
defaultValue: n,
|
|
63
|
+
value: r,
|
|
64
|
+
title: s,
|
|
65
|
+
ref: o,
|
|
66
|
+
required: m,
|
|
67
|
+
onChange: d
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
}), q = f(function({ children: t, submitHandler: n }, r) {
|
|
71
|
+
return /* @__PURE__ */ a("form", { onSubmit: (c) => {
|
|
72
|
+
c.preventDefault(), n && n(c.target);
|
|
73
|
+
}, className: "form", ref: r, children: t });
|
|
344
74
|
});
|
|
345
|
-
function
|
|
346
|
-
const
|
|
347
|
-
return /* @__PURE__ */
|
|
75
|
+
function H({ layout: e, gap: t = "medium", children: n }) {
|
|
76
|
+
const r = "grid layout-" + e + " gap-" + t;
|
|
77
|
+
return /* @__PURE__ */ a("div", { className: r, children: n });
|
|
348
78
|
}
|
|
349
|
-
function
|
|
350
|
-
return /* @__PURE__ */
|
|
79
|
+
function J({ type: e }) {
|
|
80
|
+
return /* @__PURE__ */ a("span", { className: "icon " + e });
|
|
351
81
|
}
|
|
352
|
-
function
|
|
353
|
-
const i = "image fit-" +
|
|
354
|
-
return /* @__PURE__ */
|
|
82
|
+
function K({ source: e, title: t, alt: n, width: r, height: s, fit: c = "contain" }) {
|
|
83
|
+
const i = "image fit-" + c;
|
|
84
|
+
return /* @__PURE__ */ a(
|
|
355
85
|
"img",
|
|
356
86
|
{
|
|
357
87
|
className: i,
|
|
358
|
-
title:
|
|
88
|
+
title: t,
|
|
359
89
|
alt: n,
|
|
360
|
-
style:
|
|
361
|
-
src:
|
|
90
|
+
style: { width: r, height: s },
|
|
91
|
+
src: e
|
|
362
92
|
}
|
|
363
93
|
);
|
|
364
94
|
}
|
|
365
|
-
function
|
|
366
|
-
return /* @__PURE__ */
|
|
367
|
-
|
|
368
|
-
|
|
95
|
+
function O({ label: e, element: t }) {
|
|
96
|
+
return /* @__PURE__ */ N("div", { className: "input", children: [
|
|
97
|
+
e,
|
|
98
|
+
t
|
|
369
99
|
] });
|
|
370
100
|
}
|
|
371
|
-
function
|
|
372
|
-
return /* @__PURE__ */
|
|
101
|
+
function Q({ value: e }) {
|
|
102
|
+
return /* @__PURE__ */ a("label", { className: "label", children: e });
|
|
373
103
|
}
|
|
374
|
-
function
|
|
375
|
-
return /* @__PURE__ */
|
|
104
|
+
function U({ url: e, target: t, children: n }) {
|
|
105
|
+
return /* @__PURE__ */ a("a", { className: "link", href: e, target: t, children: n });
|
|
376
106
|
}
|
|
377
|
-
function
|
|
378
|
-
const
|
|
379
|
-
return
|
|
380
|
-
|
|
381
|
-
}, [
|
|
107
|
+
function V({ open: e = !0, sizing: t = "content", children: n }) {
|
|
108
|
+
const r = x(null), s = "modal sizing-" + t;
|
|
109
|
+
return y(() => {
|
|
110
|
+
e ? r.current?.showModal() : r.current?.close();
|
|
111
|
+
}, [e]), /* @__PURE__ */ a("dialog", { ref: r, className: s, children: n });
|
|
382
112
|
}
|
|
383
|
-
function
|
|
384
|
-
const
|
|
385
|
-
return /* @__PURE__ */
|
|
113
|
+
function W({ type: e = "normal", padding: t = "large", children: n }) {
|
|
114
|
+
const r = "panel type-" + e + " padding-" + t;
|
|
115
|
+
return /* @__PURE__ */ a("div", { className: r, children: n });
|
|
386
116
|
}
|
|
387
|
-
function
|
|
388
|
-
const n = "paragraph size-" +
|
|
389
|
-
return /* @__PURE__ */
|
|
117
|
+
function X({ size: e = "medium", children: t }) {
|
|
118
|
+
const n = "paragraph size-" + e;
|
|
119
|
+
return /* @__PURE__ */ a("p", { className: n, children: t });
|
|
390
120
|
}
|
|
391
|
-
function
|
|
392
|
-
const
|
|
393
|
-
return /* @__PURE__ */
|
|
121
|
+
function Y({ alignX: e = "left", alignY: t = "top", gap: n = "medium", wrap: r = "nowrap", children: s }) {
|
|
122
|
+
const c = "row align-x-" + e + " align-y-" + t + " gap-" + n + " wrap-" + r;
|
|
123
|
+
return /* @__PURE__ */ a("div", { className: c, children: s });
|
|
394
124
|
}
|
|
395
|
-
function
|
|
396
|
-
const n = "ruler direction-" +
|
|
397
|
-
return /* @__PURE__ */
|
|
125
|
+
function Z({ direction: e, size: t = "medium" }) {
|
|
126
|
+
const n = "ruler direction-" + e + " size-" + t;
|
|
127
|
+
return /* @__PURE__ */ a("div", { className: n });
|
|
398
128
|
}
|
|
399
|
-
const
|
|
400
|
-
const
|
|
401
|
-
return /* @__PURE__ */
|
|
129
|
+
const _ = f(function({ name: t, options: n, defaultValue: r, value: s, border: c = "small", size: i = "medium", onChange: u }, m) {
|
|
130
|
+
const d = "select border-" + c + " size-" + i;
|
|
131
|
+
return /* @__PURE__ */ a(
|
|
402
132
|
"select",
|
|
403
133
|
{
|
|
404
|
-
className:
|
|
405
|
-
name:
|
|
406
|
-
defaultValue:
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
134
|
+
className: d,
|
|
135
|
+
name: t,
|
|
136
|
+
defaultValue: r,
|
|
137
|
+
value: s,
|
|
138
|
+
onChange: u,
|
|
139
|
+
ref: m,
|
|
140
|
+
children: Array.from(n).map(([o, l]) => /* @__PURE__ */ a("option", { value: o, children: l }, o))
|
|
410
141
|
}
|
|
411
142
|
);
|
|
412
143
|
});
|
|
413
|
-
function
|
|
414
|
-
const
|
|
415
|
-
return /* @__PURE__ */
|
|
144
|
+
function ee({ active: e = !0 }) {
|
|
145
|
+
const t = "spinner" + (e ? " active" : "");
|
|
146
|
+
return /* @__PURE__ */ a("div", { className: t });
|
|
147
|
+
}
|
|
148
|
+
function z({ children: e }) {
|
|
149
|
+
return /* @__PURE__ */ a("thead", { children: e });
|
|
150
|
+
}
|
|
151
|
+
function S({ border: e = "medium", children: t }) {
|
|
152
|
+
const n = "border-" + e;
|
|
153
|
+
return /* @__PURE__ */ a("tbody", { className: n, children: t });
|
|
416
154
|
}
|
|
417
|
-
function
|
|
418
|
-
|
|
419
|
-
return /* @__PURE__ */ o.jsx("span", { className: l, children: t });
|
|
155
|
+
function T({ children: e }) {
|
|
156
|
+
return /* @__PURE__ */ a("tfoot", { children: e });
|
|
420
157
|
}
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
158
|
+
function k({ children: e }) {
|
|
159
|
+
return /* @__PURE__ */ a("tr", { children: e });
|
|
160
|
+
}
|
|
161
|
+
function C({ colspan: e, rowspan: t, alignX: n = "left", alignY: r = "center", size: s = "fit", children: c }) {
|
|
162
|
+
const i = "align-x-" + n + " align-y-" + r + " size-" + s;
|
|
163
|
+
return /* @__PURE__ */ a("td", { className: i, colSpan: e, rowSpan: t, children: c });
|
|
164
|
+
}
|
|
165
|
+
function b({ padding: e = "medium", children: t }) {
|
|
166
|
+
const n = "table padding-" + e;
|
|
167
|
+
return /* @__PURE__ */ a("table", { className: n, children: t });
|
|
168
|
+
}
|
|
169
|
+
b.Header = z;
|
|
170
|
+
b.Body = S;
|
|
171
|
+
b.Footer = T;
|
|
172
|
+
b.Row = k;
|
|
173
|
+
b.Cell = C;
|
|
174
|
+
function te({ value: e, type: t = "primary", size: n = "medium", weight: r = "normal", wrap: s = "none" }) {
|
|
175
|
+
const c = "text type-" + t + " size-" + n + " weight-" + r + " wrap-" + s;
|
|
176
|
+
return /* @__PURE__ */ a("span", { className: c, children: e });
|
|
177
|
+
}
|
|
178
|
+
const ne = f(function({ name: t, placeholder: n, defaultValue: r, value: s, border: c = "small", size: i = "medium", rows: u, limit: m, onChange: d }, o) {
|
|
179
|
+
const l = "textarea border-" + c + " size-" + i;
|
|
180
|
+
return /* @__PURE__ */ a(
|
|
424
181
|
"textarea",
|
|
425
182
|
{
|
|
426
|
-
className:
|
|
427
|
-
name:
|
|
183
|
+
className: l,
|
|
184
|
+
name: t,
|
|
428
185
|
placeholder: n,
|
|
429
|
-
defaultValue:
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
186
|
+
defaultValue: r,
|
|
187
|
+
value: s,
|
|
188
|
+
rows: u,
|
|
189
|
+
ref: o,
|
|
190
|
+
maxLength: m,
|
|
191
|
+
onChange: d
|
|
434
192
|
}
|
|
435
193
|
);
|
|
436
|
-
}),
|
|
437
|
-
const
|
|
438
|
-
return /* @__PURE__ */
|
|
194
|
+
}), ae = f(function({ name: t, placeholder: n, defaultValue: r, value: s, limit: c, pattern: i, title: u, type: m = "text", border: d = "small", size: o = "medium", required: l, onChange: p }, h) {
|
|
195
|
+
const g = "textbox border-" + d + " size-" + o;
|
|
196
|
+
return /* @__PURE__ */ a(
|
|
439
197
|
"input",
|
|
440
198
|
{
|
|
441
|
-
className:
|
|
442
|
-
type:
|
|
443
|
-
name:
|
|
199
|
+
className: g,
|
|
200
|
+
type: m,
|
|
201
|
+
name: t,
|
|
444
202
|
placeholder: n,
|
|
445
|
-
defaultValue:
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
203
|
+
defaultValue: r,
|
|
204
|
+
value: s,
|
|
205
|
+
maxLength: c,
|
|
206
|
+
pattern: i,
|
|
207
|
+
title: u,
|
|
208
|
+
ref: h,
|
|
209
|
+
required: l,
|
|
210
|
+
onChange: p
|
|
452
211
|
}
|
|
453
212
|
);
|
|
454
213
|
});
|
|
455
|
-
function
|
|
456
|
-
const n = "title size-" +
|
|
457
|
-
switch (
|
|
214
|
+
function re({ size: e = "large", children: t }) {
|
|
215
|
+
const n = "title size-" + e;
|
|
216
|
+
switch (e) {
|
|
458
217
|
case "large":
|
|
459
|
-
return /* @__PURE__ */
|
|
218
|
+
return /* @__PURE__ */ a("h1", { className: n, children: t });
|
|
460
219
|
case "medium":
|
|
461
|
-
return /* @__PURE__ */
|
|
220
|
+
return /* @__PURE__ */ a("h2", { className: n, children: t });
|
|
462
221
|
case "small":
|
|
463
|
-
return /* @__PURE__ */
|
|
222
|
+
return /* @__PURE__ */ a("h3", { className: n, children: t });
|
|
464
223
|
}
|
|
465
224
|
}
|
|
225
|
+
function A({ children: e }) {
|
|
226
|
+
return /* @__PURE__ */ a("div", { className: "tab", children: e });
|
|
227
|
+
}
|
|
228
|
+
function L({ separator: e, selectedId: t, children: n, onChange: r }) {
|
|
229
|
+
const [s, c] = E(t ?? ""), i = v(() => Array.isArray(n) ? n : [n], [n]), u = v(() => {
|
|
230
|
+
const o = {};
|
|
231
|
+
return i.forEach((l) => {
|
|
232
|
+
const p = l.props.id;
|
|
233
|
+
o[p] = l;
|
|
234
|
+
}), o;
|
|
235
|
+
}, [i]), m = w((o) => {
|
|
236
|
+
const l = i[0]?.props.id;
|
|
237
|
+
c(o ?? l);
|
|
238
|
+
});
|
|
239
|
+
y(() => {
|
|
240
|
+
m(t);
|
|
241
|
+
}, [t, i]);
|
|
242
|
+
const d = (o) => {
|
|
243
|
+
r !== void 0 && r(o, s), c(o);
|
|
244
|
+
};
|
|
245
|
+
return /* @__PURE__ */ N("div", { className: "tabs", children: [
|
|
246
|
+
/* @__PURE__ */ a("div", { className: "nav", children: i.map((o) => {
|
|
247
|
+
const l = o.props.id, p = `tab-${l}`, h = l === s ? "active" : "inactive", g = () => d(o.props.id);
|
|
248
|
+
return /* @__PURE__ */ a("div", { className: "item " + h, onClick: g, children: o.props.title }, p);
|
|
249
|
+
}) }),
|
|
250
|
+
e !== void 0 ? /* @__PURE__ */ a("div", { className: "separator", children: e }) : null,
|
|
251
|
+
/* @__PURE__ */ a("div", { className: "content", children: u[s] })
|
|
252
|
+
] });
|
|
253
|
+
}
|
|
254
|
+
L.Tab = A;
|
|
255
|
+
function se({ children: e }) {
|
|
256
|
+
return /* @__PURE__ */ a("main", { className: "layout-centered", children: /* @__PURE__ */ a("div", { className: "content", children: e }) });
|
|
257
|
+
}
|
|
258
|
+
function ce({ header: e, footer: t, sidebar: n, children: r }) {
|
|
259
|
+
return /* @__PURE__ */ N("div", { className: "layout-sidebar", children: [
|
|
260
|
+
/* @__PURE__ */ a("header", { children: e }),
|
|
261
|
+
/* @__PURE__ */ N("div", { className: "content", children: [
|
|
262
|
+
/* @__PURE__ */ a("div", { className: "left", children: /* @__PURE__ */ a("aside", { children: n }) }),
|
|
263
|
+
/* @__PURE__ */ a("div", { className: "right", children: /* @__PURE__ */ a("main", { children: r }) })
|
|
264
|
+
] }),
|
|
265
|
+
/* @__PURE__ */ a("footer", { children: t })
|
|
266
|
+
] });
|
|
267
|
+
}
|
|
268
|
+
function ie({ children: e }) {
|
|
269
|
+
return /* @__PURE__ */ a("div", { className: "mtds", children: e });
|
|
270
|
+
}
|
|
466
271
|
export {
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
272
|
+
$ as Avatar,
|
|
273
|
+
M as Border,
|
|
274
|
+
D as Button,
|
|
275
|
+
I as Cell,
|
|
276
|
+
se as CenteredLayout,
|
|
277
|
+
j as CheckBox,
|
|
278
|
+
F as ClickArea,
|
|
279
|
+
P as Column,
|
|
280
|
+
G as DateTime,
|
|
281
|
+
ie as DesignSystem,
|
|
282
|
+
q as Form,
|
|
283
|
+
H as Grid,
|
|
284
|
+
J as Icon,
|
|
285
|
+
K as Image,
|
|
286
|
+
O as Input,
|
|
287
|
+
Q as Label,
|
|
288
|
+
U as Link,
|
|
289
|
+
V as Modal,
|
|
290
|
+
W as Panel,
|
|
291
|
+
X as Paragraph,
|
|
292
|
+
Y as Row,
|
|
293
|
+
Z as Ruler,
|
|
294
|
+
_ as Select,
|
|
295
|
+
ce as SidebarLayout,
|
|
296
|
+
ee as Spinner,
|
|
297
|
+
b as Table,
|
|
298
|
+
L as Tabs,
|
|
299
|
+
te as Text,
|
|
300
|
+
ne as TextArea,
|
|
301
|
+
ae as TextBox,
|
|
302
|
+
re as Title
|
|
495
303
|
};
|