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