@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/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 le() {
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, c) {
8
+ function n(a, s, l) {
9
9
  var i = null;
10
- if (c !== void 0 && (i = "" + c), s.key !== void 0 && (i = "" + s.key), "key" in s) {
11
- c = {};
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" && (c[f] = s[f]);
14
- } else c = s;
15
- return s = c.ref, {
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: c
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 ce() {
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 R:
35
+ case g:
36
36
  return "Fragment";
37
37
  case G:
38
38
  return "Profiler";
39
- case S:
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 A:
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 o = e.render;
60
- return e = e.displayName, e || (e = o.displayName || o.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), 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 o = e.displayName || null, o !== null ? o : t(e.type) || "Memo";
62
+ return c = e.displayName || null, c !== null ? c : t(e.type) || "Memo";
63
63
  case O:
64
- o = e._payload, e = e._init;
64
+ c = e._payload, e = e._init;
65
65
  try {
66
- return t(e(o));
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 o = !1;
78
+ var c = !1;
79
79
  } catch {
80
- o = !0;
80
+ c = !0;
81
81
  }
82
- if (o) {
83
- o = console;
84
- var u = o.error, d = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
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
- o,
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 === R) return "<>";
93
+ if (e === g) return "<>";
94
94
  if (typeof e == "object" && e !== null && e.$$typeof === O)
95
95
  return "<...>";
96
96
  try {
97
- var o = t(e);
98
- return o ? "<" + o + ">" : "<...>";
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 c() {
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 o = Object.getOwnPropertyDescriptor(e, "key").get;
113
- if (o && o.isReactWarning) return !1;
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, o) {
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
- o
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 L[e] || (L[e] = !0, console.error(
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, o, u, d, h, C) {
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: o,
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, o, u, d, h, C) {
169
- var p = o.children;
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(o, "key")) {
181
+ if (I.call(c, "key")) {
182
182
  p = t(e);
183
- var g = Object.keys(o).filter(function(ne) {
183
+ var R = Object.keys(c).filter(function(ne) {
184
184
  return ne !== "key";
185
185
  });
186
- d = 0 < g.length ? "{key: someKey, " + g.join(": ..., ") + ": ...}" : "{key: someKey}", M[p + d] || (g = 0 < g.length ? "{" + g.join(": ..., ") + ": ...}" : "{}", console.error(
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
- g,
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(o) && (n(o.key), p = "" + o.key), "key" in o) {
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 o)
202
- Y !== "key" && (u[Y] = o[Y]);
203
- } else u = o;
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"), A = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), S = 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() {
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, L = {}, D = b.react_stack_bottom_frame.bind(
230
+ var z, D = {}, L = b.react_stack_bottom_frame.bind(
231
231
  b,
232
- c
233
- )(), F = $(a(c)), M = {};
234
- N.Fragment = R, N.jsx = function(e, o, u) {
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
- o,
238
+ c,
239
239
  u,
240
240
  !1,
241
- d ? Error("react-stack-top-frame") : D,
241
+ d ? Error("react-stack-top-frame") : L,
242
242
  d ? $(a(e)) : F
243
243
  );
244
- }, N.jsxs = function(e, o, u) {
244
+ }, N.jsxs = function(e, c, u) {
245
245
  var d = 1e4 > P.recentlyCreatedOwnerStacks++;
246
246
  return m(
247
247
  e,
248
- o,
248
+ c,
249
249
  u,
250
250
  !0,
251
- d ? Error("react-stack-top-frame") : D,
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 = le() : y.exports = ce()), 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
- var l = ie();
262
- function fe({ options: t, selected: r, onChange: n }) {
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, A = c, R = j.getAttribute("data-key") ?? a, S = t.get(R) ?? s;
267
- i(R), x(S), m(!1), n && n(A, R);
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__ */ l.jsxs("div", { className: "selection", children: [
270
- /* @__PURE__ */ l.jsx("div", { className: v ? "text active" : "text", onClick: E, children: f }),
271
- v && /* @__PURE__ */ l.jsx("div", { className: "options", children: Array.from(t).map(([b, j]) => /* @__PURE__ */ l.jsx("div", { className: "option", "data-key": b, onClick: _, children: j }, b)) })
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 me({ children: t }) {
275
- return /* @__PURE__ */ l.jsx("div", { className: "ds-tabs-tab", children: t });
277
+ function de({ children: t }) {
278
+ return /* @__PURE__ */ o.jsx("div", { className: "ds-tabs-tab", children: t });
276
279
  }
277
- function de({ separator: t, selectedId: r, children: n, onChange: a }) {
278
- const [s, c] = k(r ?? ""), i = V(() => Array.isArray(n) ? n : [n], [n]), f = V(() => {
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
- c(m ?? E);
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), c(m);
295
+ a !== void 0 && a(m, s), l(m);
293
296
  };
294
- return /* @__PURE__ */ l.jsxs("div", { className: "tabs", children: [
295
- /* @__PURE__ */ l.jsx("div", { className: "nav", children: i.map((m) => {
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__ */ l.jsx("div", { className: "item " + b, onClick: j, children: m.props.title }, _);
300
+ return /* @__PURE__ */ o.jsx("div", { className: "item " + b, onClick: j, children: m.props.title }, _);
298
301
  }) }),
299
- t !== void 0 ? /* @__PURE__ */ l.jsx("div", { className: "separator", children: t }) : null,
300
- /* @__PURE__ */ l.jsx("div", { className: "content", children: f[s] })
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 pe({ source: t, title: r, alt: n = "Avatar", width: a, height: s, fit: c = "contain" }) {
304
- const i = "avatar fit-" + c, f = { width: a, height: s };
305
- return /* @__PURE__ */ l.jsx(
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 Ee({ type: t = "normal", size: r = "large", padding: n = "large", children: a }) {
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__ */ l.jsx("div", { className: s, children: a });
321
+ return /* @__PURE__ */ o.jsx("div", { className: s, children: a });
319
322
  }
320
- function ve({ type: t = "primary", size: r = "medium", text: n, onClick: a }) {
321
- const s = "button type-" + t + " size-" + r, c = t === "disabled", i = t === "submit" ? "submit" : "button";
322
- return /* @__PURE__ */ l.jsx("input", { type: i, onClick: a, className: s, disabled: c, value: n });
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 xe({ sizing: t = "fluid", children: r }) {
327
+ function be({ sizing: t = "fluid", children: r }) {
325
328
  const n = "cell sizing-" + t;
326
- return /* @__PURE__ */ l.jsx("div", { className: n, children: r });
329
+ return /* @__PURE__ */ o.jsx("div", { className: n, children: r });
327
330
  }
328
- function be({ padding: t = "none", onClick: r, children: n }) {
331
+ function _e({ padding: t = "none", onClick: r, children: n }) {
329
332
  const a = "clickarea padding-" + t;
330
- return /* @__PURE__ */ l.jsx("div", { className: a, onClick: r, children: n });
333
+ return /* @__PURE__ */ o.jsx("div", { className: a, onClick: r, children: n });
331
334
  }
332
- function _e({ alignX: t = "left", alignY: r = "top", gap: n = "medium", wrap: a = "nowrap", children: s }) {
333
- const c = "column align-x-" + t + " align-y-" + r + " gap-" + n + " wrap-" + a;
334
- return /* @__PURE__ */ l.jsx("div", { className: c, children: s });
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 je = w(function({ children: r, submitHandler: n }, a) {
337
- const s = (c) => {
338
- c.preventDefault(), n && n(c.target);
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__ */ l.jsx("form", { onSubmit: s, className: "form", ref: a, children: r });
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__ */ l.jsx("div", { className: a, children: n });
347
+ return /* @__PURE__ */ o.jsx("div", { className: a, children: n });
345
348
  }
346
- function ge({ type: t }) {
347
- return /* @__PURE__ */ l.jsx("span", { className: "icon " + t });
349
+ function Te({ type: t }) {
350
+ return /* @__PURE__ */ o.jsx("span", { className: "icon " + t });
348
351
  }
349
- function Te({ source: t, title: r, alt: n, width: a, height: s, fit: c = "contain" }) {
350
- const i = "image fit-" + c, f = { width: a, height: s };
351
- return /* @__PURE__ */ l.jsx(
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 Ne({ label: t, element: r }) {
363
- return /* @__PURE__ */ l.jsxs("div", { className: "input", children: [
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 he({ value: t }) {
369
- return /* @__PURE__ */ l.jsx("label", { className: "label", children: t });
371
+ function ye({ value: t }) {
372
+ return /* @__PURE__ */ o.jsx("label", { className: "label", children: t });
370
373
  }
371
- function ye({ url: t, target: r, children: n }) {
372
- return /* @__PURE__ */ l.jsx("a", { className: "link", href: t, target: r, children: n });
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 ke({ open: t, sizing: r = "content", children: n }) {
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__ */ l.jsx("dialog", { ref: a, className: s, children: /* @__PURE__ */ l.jsx("form", { method: "dialog", children: n }) });
381
+ }, [t]), /* @__PURE__ */ o.jsx("dialog", { ref: a, className: s, children: /* @__PURE__ */ o.jsx("form", { method: "dialog", children: n }) });
379
382
  }
380
- function we({ type: t = "normal", padding: r = "large", children: n }) {
383
+ function Se({ type: t = "normal", padding: r = "large", children: n }) {
381
384
  const a = "panel type-" + t + " padding-" + r;
382
- return /* @__PURE__ */ l.jsx("div", { className: a, children: n });
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__ */ l.jsx("p", { className: n, children: r });
389
+ return /* @__PURE__ */ o.jsx("p", { className: n, children: r });
387
390
  }
388
- function Se({ alignX: t = "left", alignY: r = "top", gap: n = "medium", wrap: a = "nowrap", children: s }) {
389
- const c = "row align-x-" + t + " align-y-" + r + " gap-" + n + " wrap-" + a;
390
- return /* @__PURE__ */ l.jsx("div", { className: c, children: s });
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 Oe({ direction: t, size: r = "medium" }) {
395
+ function Pe({ direction: t, size: r = "medium" }) {
393
396
  const n = "ruler direction-" + t + " size-" + r;
394
- return /* @__PURE__ */ l.jsx("div", { className: n });
397
+ return /* @__PURE__ */ o.jsx("div", { className: n });
395
398
  }
396
- const Pe = w(function({ name: r, options: n, value: a, size: s = "medium", onChange: c }, i) {
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__ */ l.jsx(
401
+ return /* @__PURE__ */ o.jsx(
399
402
  "select",
400
403
  {
401
404
  className: f,
402
405
  name: r,
403
406
  defaultValue: a,
404
- onChange: c,
407
+ onChange: l,
405
408
  ref: i,
406
- children: Array.from(n).map(([x, v]) => /* @__PURE__ */ l.jsx("option", { value: x, children: v }, x))
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 $e({ active: t = !0 }) {
413
+ function Ce({ active: t = !0 }) {
411
414
  const r = "spinner" + (t ? " active" : "");
412
- return /* @__PURE__ */ l.jsx("div", { className: r });
415
+ return /* @__PURE__ */ o.jsx("div", { className: r });
413
416
  }
414
- function Ce({ value: t, type: r = "primary", size: n = "medium", weight: a = "normal", wrap: s = "none" }) {
415
- const c = "text type-" + r + " size-" + n + " weight-" + a + " wrap-" + s;
416
- return /* @__PURE__ */ l.jsx("span", { className: c, children: t });
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 Ye = w(function({ name: r, placeholder: n, value: a, size: s = "medium", rows: c, limit: i, onChange: f }, x) {
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__ */ l.jsx(
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: c,
430
+ rows: l,
428
431
  ref: x,
429
432
  maxLength: i,
430
433
  onChange: f
431
434
  }
432
435
  );
433
- }), Ie = w(function({ name: r, placeholder: n, value: a, limit: s, pattern: c, title: i, size: f = "medium", required: x, onChange: v }, m) {
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__ */ l.jsx(
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: c,
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 ze({ size: t = "large", children: r }) {
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__ */ l.jsx("h1", { className: n, children: r });
459
+ return /* @__PURE__ */ o.jsx("h1", { className: n, children: r });
457
460
  case "medium":
458
- return /* @__PURE__ */ l.jsx("h2", { className: n, children: r });
461
+ return /* @__PURE__ */ o.jsx("h2", { className: n, children: r });
459
462
  case "small":
460
- return /* @__PURE__ */ l.jsx("h3", { className: n, children: r });
463
+ return /* @__PURE__ */ o.jsx("h3", { className: n, children: r });
461
464
  }
462
465
  }
463
466
  export {
464
- pe as Avatar,
465
- Ee as Border,
466
- ve as Button,
467
- xe as Cell,
468
- be as ClickArea,
469
- _e as Column,
470
- fe as Dropdown,
471
- je as Form,
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
- ge as Icon,
474
- Te as Image,
475
- Ne as Input,
476
- he as Label,
477
- ye as Link,
478
- ke as Modal,
479
- we as Panel,
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
- Se as Row,
482
- Oe as Ruler,
483
- Pe as Select,
484
- $e as Spinner,
485
- me as Tab,
486
- de as Tabs,
487
- Ce as Text,
488
- Ye as TextArea,
489
- Ie as TextBox,
490
- ze as Title
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
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maskingtech/designsystem",
3
3
  "private": false,
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "vite build",