tvuikit 0.1.0 → 0.2.1

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.
@@ -1,28 +1,28 @@
1
- import I, { Activity as fe, useState as K, useRef as G, useEffect as ge } from "react";
2
- const pe = {
1
+ import I, { Activity as ge, useState as Z, useRef as G, useEffect as pe } from "react";
2
+ const ye = {
3
3
  default: "#0A0A0A",
4
4
  component: "#00000065",
5
5
  smooth: "#111111"
6
- }, J = {
6
+ }, Q = {
7
7
  default: "#EDEDED",
8
8
  text: "#EDEDED",
9
9
  miniText: "#EDEDED40",
10
10
  card: "#27272780",
11
11
  component: "#272727"
12
- }, Z = {
13
- default: J.default,
12
+ }, ee = {
13
+ default: Q.default,
14
14
  primary: "#2AFF6A",
15
15
  danger: "#FF0000",
16
16
  secondary: "#000000",
17
17
  tetriary: "#000000"
18
- }, ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18
+ }, me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19
19
  __proto__: null,
20
- BACKGROUND: pe,
21
- BUTTONS: Z,
22
- FOREGROUND: J
20
+ BACKGROUND: ye,
21
+ BUTTONS: ee,
22
+ FOREGROUND: Q
23
23
  }, Symbol.toStringTag, { value: "Module" }));
24
- var R = /* @__PURE__ */ ((o) => (o.h1 = "36px", o.h2 = "32px", o.h3 = "24px", o.h4 = "20px", o.h5 = "18px", o.base = "16px", o.mini = "14px", o))(R || {});
25
- const me = {
24
+ var R = /* @__PURE__ */ ((a) => (a.h1 = "36px", a.h2 = "32px", a.h3 = "24px", a.h4 = "20px", a.h5 = "18px", a.base = "16px", a.mini = "14px", a))(R || {});
25
+ const he = {
26
26
  h1: "36px",
27
27
  h2: "32px",
28
28
  h3: "24px",
@@ -31,31 +31,22 @@ const me = {
31
31
  base: "16px",
32
32
  mini: "14px"
33
33
  /* mini */
34
- }, he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
34
+ }, ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
35
35
  __proto__: null,
36
- FONT_SIZE: me,
36
+ FONT_SIZE: he,
37
37
  FontSize: R
38
- }, Symbol.toStringTag, { value: "Module" })), Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
38
+ }, Symbol.toStringTag, { value: "Module" })), Ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39
39
  __proto__: null,
40
- COLORS: ye,
41
- FONTS: he
40
+ COLORS: me,
41
+ FONTS: ve
42
42
  }, Symbol.toStringTag, { value: "Module" }));
43
- var L = { exports: {} }, j = {};
44
- /**
45
- * @license React
46
- * react-jsx-runtime.production.js
47
- *
48
- * Copyright (c) Meta Platforms, Inc. and affiliates.
49
- *
50
- * This source code is licensed under the MIT license found in the
51
- * LICENSE file in the root directory of this source tree.
52
- */
43
+ var N = { exports: {} }, j = {};
53
44
  var V;
54
45
  function _e() {
55
46
  if (V) return j;
56
47
  V = 1;
57
- var o = Symbol.for("react.transitional.element"), g = Symbol.for("react.fragment");
58
- function d(s, l, p) {
48
+ var a = /* @__PURE__ */ Symbol.for("react.transitional.element"), d = /* @__PURE__ */ Symbol.for("react.fragment");
49
+ function f(c, l, p) {
59
50
  var y = null;
60
51
  if (p !== void 0 && (y = "" + p), l.key !== void 0 && (y = "" + l.key), "key" in l) {
61
52
  p = {};
@@ -63,45 +54,36 @@ function _e() {
63
54
  h !== "key" && (p[h] = l[h]);
64
55
  } else p = l;
65
56
  return l = p.ref, {
66
- $$typeof: o,
67
- type: s,
57
+ $$typeof: a,
58
+ type: c,
68
59
  key: y,
69
60
  ref: l !== void 0 ? l : null,
70
61
  props: p
71
62
  };
72
63
  }
73
- return j.Fragment = g, j.jsx = d, j.jsxs = d, j;
64
+ return j.Fragment = d, j.jsx = f, j.jsxs = f, j;
74
65
  }
75
- var w = {};
76
- /**
77
- * @license React
78
- * react-jsx-runtime.development.js
79
- *
80
- * Copyright (c) Meta Platforms, Inc. and affiliates.
81
- *
82
- * This source code is licensed under the MIT license found in the
83
- * LICENSE file in the root directory of this source tree.
84
- */
66
+ var D = {};
85
67
  var W;
86
- function ve() {
87
- return W || (W = 1, process.env.NODE_ENV !== "production" && function() {
88
- function o(t) {
68
+ function be() {
69
+ return W || (W = 1, process.env.NODE_ENV !== "production" && (function() {
70
+ function a(t) {
89
71
  if (t == null) return null;
90
72
  if (typeof t == "function")
91
- return t.$$typeof === le ? null : t.displayName || t.name || null;
73
+ return t.$$typeof === ue ? null : t.displayName || t.name || null;
92
74
  if (typeof t == "string") return t;
93
75
  switch (t) {
94
76
  case T:
95
77
  return "Fragment";
96
- case re:
78
+ case te:
97
79
  return "Profiler";
98
- case ee:
80
+ case re:
99
81
  return "StrictMode";
100
- case oe:
101
- return "Suspense";
102
82
  case ie:
83
+ return "Suspense";
84
+ case se:
103
85
  return "SuspenseList";
104
- case ce:
86
+ case le:
105
87
  return "Activity";
106
88
  }
107
89
  if (typeof t == "object")
@@ -110,57 +92,57 @@ function ve() {
110
92
  ), t.$$typeof) {
111
93
  case x:
112
94
  return "Portal";
113
- case ne:
95
+ case ae:
114
96
  return t.displayName || "Context";
115
- case te:
97
+ case ne:
116
98
  return (t._context.displayName || "Context") + ".Consumer";
117
- case ae:
99
+ case oe:
118
100
  var u = t.render;
119
101
  return t = t.displayName, t || (t = u.displayName || u.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
120
- case se:
121
- return u = t.displayName || null, u !== null ? u : o(t.type) || "Memo";
122
- case N:
102
+ case ce:
103
+ return u = t.displayName || null, u !== null ? u : a(t.type) || "Memo";
104
+ case k:
123
105
  u = t._payload, t = t._init;
124
106
  try {
125
- return o(t(u));
107
+ return a(t(u));
126
108
  } catch {
127
109
  }
128
110
  }
129
111
  return null;
130
112
  }
131
- function g(t) {
113
+ function d(t) {
132
114
  return "" + t;
133
115
  }
134
- function d(t) {
116
+ function f(t) {
135
117
  try {
136
- g(t);
118
+ d(t);
137
119
  var u = !1;
138
120
  } catch {
139
121
  u = !0;
140
122
  }
141
123
  if (u) {
142
124
  u = console;
143
- var m = u.error, _ = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
125
+ var m = u.error, v = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
144
126
  return m.call(
145
127
  u,
146
128
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
147
- _
148
- ), g(t);
129
+ v
130
+ ), d(t);
149
131
  }
150
132
  }
151
- function s(t) {
133
+ function c(t) {
152
134
  if (t === T) return "<>";
153
- if (typeof t == "object" && t !== null && t.$$typeof === N)
135
+ if (typeof t == "object" && t !== null && t.$$typeof === k)
154
136
  return "<...>";
155
137
  try {
156
- var u = o(t);
138
+ var u = a(t);
157
139
  return u ? "<" + u + ">" : "<...>";
158
140
  } catch {
159
141
  return "<...>";
160
142
  }
161
143
  }
162
144
  function l() {
163
- var t = A.A;
145
+ var t = P.A;
164
146
  return t === null ? null : t.getOwner();
165
147
  }
166
148
  function p() {
@@ -185,23 +167,23 @@ function ve() {
185
167
  configurable: !0
186
168
  });
187
169
  }
188
- function a() {
189
- var t = o(this.type);
170
+ function o() {
171
+ var t = a(this.type);
190
172
  return U[t] || (U[t] = !0, console.error(
191
173
  "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."
192
174
  )), t = this.props.ref, t !== void 0 ? t : null;
193
175
  }
194
- function r(t, u, m, _, D, P) {
195
- var v = m.ref;
176
+ function r(t, u, m, v, w, C) {
177
+ var _ = m.ref;
196
178
  return t = {
197
179
  $$typeof: b,
198
180
  type: t,
199
181
  key: u,
200
182
  props: m,
201
- _owner: _
202
- }, (v !== void 0 ? v : null) !== null ? Object.defineProperty(t, "ref", {
183
+ _owner: v
184
+ }, (_ !== void 0 ? _ : null) !== null ? Object.defineProperty(t, "ref", {
203
185
  enumerable: !1,
204
- get: a
186
+ get: o
205
187
  }) : Object.defineProperty(t, "ref", { enumerable: !1, value: null }), t._store = {}, Object.defineProperty(t._store, "validated", {
206
188
  configurable: !1,
207
189
  enumerable: !1,
@@ -216,69 +198,69 @@ function ve() {
216
198
  configurable: !1,
217
199
  enumerable: !1,
218
200
  writable: !0,
219
- value: D
201
+ value: w
220
202
  }), Object.defineProperty(t, "_debugTask", {
221
203
  configurable: !1,
222
204
  enumerable: !1,
223
205
  writable: !0,
224
- value: P
206
+ value: C
225
207
  }), Object.freeze && (Object.freeze(t.props), Object.freeze(t)), t;
226
208
  }
227
- function f(t, u, m, _, D, P) {
228
- var v = u.children;
229
- if (v !== void 0)
230
- if (_)
231
- if (ue(v)) {
232
- for (_ = 0; _ < v.length; _++)
233
- n(v[_]);
234
- Object.freeze && Object.freeze(v);
209
+ function g(t, u, m, v, w, C) {
210
+ var _ = u.children;
211
+ if (_ !== void 0)
212
+ if (v)
213
+ if (de(_)) {
214
+ for (v = 0; v < _.length; v++)
215
+ n(_[v]);
216
+ Object.freeze && Object.freeze(_);
235
217
  } else
236
218
  console.error(
237
219
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
238
220
  );
239
- else n(v);
221
+ else n(_);
240
222
  if (F.call(u, "key")) {
241
- v = o(t);
242
- var S = Object.keys(u).filter(function(de) {
243
- return de !== "key";
223
+ _ = a(t);
224
+ var S = Object.keys(u).filter(function(fe) {
225
+ return fe !== "key";
244
226
  });
245
- _ = 0 < S.length ? "{key: someKey, " + S.join(": ..., ") + ": ...}" : "{key: someKey}", B[v + _] || (S = 0 < S.length ? "{" + S.join(": ..., ") + ": ...}" : "{}", console.error(
227
+ v = 0 < S.length ? "{key: someKey, " + S.join(": ..., ") + ": ...}" : "{key: someKey}", B[_ + v] || (S = 0 < S.length ? "{" + S.join(": ..., ") + ": ...}" : "{}", console.error(
246
228
  `A props object containing a "key" prop is being spread into JSX:
247
229
  let props = %s;
248
230
  <%s {...props} />
249
231
  React keys must be passed directly to JSX without using spread:
250
232
  let props = %s;
251
233
  <%s key={someKey} {...props} />`,
252
- _,
253
234
  v,
235
+ _,
254
236
  S,
255
- v
256
- ), B[v + _] = !0);
237
+ _
238
+ ), B[_ + v] = !0);
257
239
  }
258
- if (v = null, m !== void 0 && (d(m), v = "" + m), y(u) && (d(u.key), v = "" + u.key), "key" in u) {
240
+ if (_ = null, m !== void 0 && (f(m), _ = "" + m), y(u) && (f(u.key), _ = "" + u.key), "key" in u) {
259
241
  m = {};
260
- for (var M in u)
261
- M !== "key" && (m[M] = u[M]);
242
+ for (var L in u)
243
+ L !== "key" && (m[L] = u[L]);
262
244
  } else m = u;
263
- return v && h(
245
+ return _ && h(
264
246
  m,
265
247
  typeof t == "function" ? t.displayName || t.name || "Unknown" : t
266
248
  ), r(
267
249
  t,
268
- v,
250
+ _,
269
251
  m,
270
252
  l(),
271
- D,
272
- P
253
+ w,
254
+ C
273
255
  );
274
256
  }
275
257
  function n(t) {
276
- e(t) ? t._store && (t._store.validated = 1) : typeof t == "object" && t !== null && t.$$typeof === N && (t._payload.status === "fulfilled" ? e(t._payload.value) && t._payload.value._store && (t._payload.value._store.validated = 1) : t._store && (t._store.validated = 1));
258
+ e(t) ? t._store && (t._store.validated = 1) : typeof t == "object" && t !== null && t.$$typeof === k && (t._payload.status === "fulfilled" ? e(t._payload.value) && t._payload.value._store && (t._payload.value._store.validated = 1) : t._store && (t._store.validated = 1));
277
259
  }
278
260
  function e(t) {
279
261
  return typeof t == "object" && t !== null && t.$$typeof === b;
280
262
  }
281
- var i = I, b = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), ee = Symbol.for("react.strict_mode"), re = Symbol.for("react.profiler"), te = Symbol.for("react.consumer"), ne = Symbol.for("react.context"), ae = Symbol.for("react.forward_ref"), oe = Symbol.for("react.suspense"), ie = Symbol.for("react.suspense_list"), se = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), ce = Symbol.for("react.activity"), le = Symbol.for("react.client.reference"), A = i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, ue = Array.isArray, k = console.createTask ? console.createTask : function() {
263
+ var i = I, b = /* @__PURE__ */ Symbol.for("react.transitional.element"), x = /* @__PURE__ */ Symbol.for("react.portal"), T = /* @__PURE__ */ Symbol.for("react.fragment"), re = /* @__PURE__ */ Symbol.for("react.strict_mode"), te = /* @__PURE__ */ Symbol.for("react.profiler"), ne = /* @__PURE__ */ Symbol.for("react.consumer"), ae = /* @__PURE__ */ Symbol.for("react.context"), oe = /* @__PURE__ */ Symbol.for("react.forward_ref"), ie = /* @__PURE__ */ Symbol.for("react.suspense"), se = /* @__PURE__ */ Symbol.for("react.suspense_list"), ce = /* @__PURE__ */ Symbol.for("react.memo"), k = /* @__PURE__ */ Symbol.for("react.lazy"), le = /* @__PURE__ */ Symbol.for("react.activity"), ue = /* @__PURE__ */ Symbol.for("react.client.reference"), P = i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, de = Array.isArray, M = console.createTask ? console.createTask : function() {
282
264
  return null;
283
265
  };
284
266
  i = {
@@ -289,44 +271,66 @@ React keys must be passed directly to JSX without using spread:
289
271
  var $, U = {}, Y = i.react_stack_bottom_frame.bind(
290
272
  i,
291
273
  p
292
- )(), H = k(s(p)), B = {};
293
- w.Fragment = T, w.jsx = function(t, u, m) {
294
- var _ = 1e4 > A.recentlyCreatedOwnerStacks++;
295
- return f(
274
+ )(), H = M(c(p)), B = {};
275
+ D.Fragment = T, D.jsx = function(t, u, m) {
276
+ var v = 1e4 > P.recentlyCreatedOwnerStacks++;
277
+ return g(
296
278
  t,
297
279
  u,
298
280
  m,
299
281
  !1,
300
- _ ? Error("react-stack-top-frame") : Y,
301
- _ ? k(s(t)) : H
282
+ v ? Error("react-stack-top-frame") : Y,
283
+ v ? M(c(t)) : H
302
284
  );
303
- }, w.jsxs = function(t, u, m) {
304
- var _ = 1e4 > A.recentlyCreatedOwnerStacks++;
305
- return f(
285
+ }, D.jsxs = function(t, u, m) {
286
+ var v = 1e4 > P.recentlyCreatedOwnerStacks++;
287
+ return g(
306
288
  t,
307
289
  u,
308
290
  m,
309
291
  !0,
310
- _ ? Error("react-stack-top-frame") : Y,
311
- _ ? k(s(t)) : H
292
+ v ? Error("react-stack-top-frame") : Y,
293
+ v ? M(c(t)) : H
312
294
  );
313
295
  };
314
- }()), w;
296
+ })()), D;
315
297
  }
316
- process.env.NODE_ENV === "production" ? L.exports = _e() : L.exports = ve();
317
- var c = L.exports;
318
- const q = ({
319
- variant: o = "default",
320
- children: g,
321
- className: d,
322
- ...s
298
+ var q;
299
+ function Oe() {
300
+ return q || (q = 1, process.env.NODE_ENV === "production" ? N.exports = _e() : N.exports = be()), N.exports;
301
+ }
302
+ var s = Oe();
303
+ const Fe = ({ actived: a, children: d, name: f }) => /* @__PURE__ */ s.jsx(ge, { name: f, mode: a ? "visible" : "hidden", children: d }), $e = ({
304
+ style: a,
305
+ imageVar: d,
306
+ className: f = "",
307
+ ...c
308
+ }) => {
309
+ const l = `bg-(image:${d})`;
310
+ return /* @__PURE__ */ s.jsx(
311
+ "div",
312
+ {
313
+ ...c,
314
+ className: [f, l].join(" "),
315
+ style: {
316
+ ...a,
317
+ backgroundSize: "cover",
318
+ backgroundRepeat: "no-repeat"
319
+ }
320
+ }
321
+ );
322
+ }, z = ({
323
+ variant: a = "default",
324
+ children: d,
325
+ className: f,
326
+ ...c
323
327
  }) => {
324
328
  const l = {
325
- diabled: s.disabled ? "bg-(--bg-smooth) text-(--fg-mini-text)" : `bg-(--bg-card) color-${o} cursor-pointer`,
326
- "hover:disabled": s.disabled ? "" : "hover:px-5 hover:py-3",
327
- "active:disabled": s.disabled ? "" : "active:px-3 active:py-1 active:bg-(--fg-component) active:opacity-[0.7]"
329
+ diabled: c.disabled ? "bg-(--bg-smooth) text-(--fg-mini-text)" : `bg-(--bg-card) color-${a} cursor-pointer`,
330
+ "hover:disabled": c.disabled ? "" : "hover:px-5 hover:py-3",
331
+ "active:disabled": c.disabled ? "" : "active:px-3 active:py-1 active:bg-(--fg-component) active:opacity-[0.7]"
328
332
  };
329
- return /* @__PURE__ */ c.jsx(
333
+ return /* @__PURE__ */ s.jsx(
330
334
  "button",
331
335
  {
332
336
  className: [
@@ -334,181 +338,218 @@ const q = ({
334
338
  l.diabled,
335
339
  l["hover:disabled"],
336
340
  l["active:disabled"],
337
- d
341
+ f
338
342
  ].join(" "),
339
- ...s,
340
- children: g
343
+ ...c,
344
+ children: d
341
345
  }
342
346
  );
343
- }, Le = ({
344
- style: o,
345
- imageVar: g,
346
- className: d = "",
347
- ...s
347
+ }, Ee = ({ size: a, ref: d, className: f }) => /* @__PURE__ */ s.jsx(
348
+ "svg",
349
+ {
350
+ ref: d,
351
+ width: a,
352
+ height: a,
353
+ viewBox: "0 0 24 24",
354
+ fill: "none",
355
+ className: f,
356
+ xmlns: "http://www.w3.org/2000/svg",
357
+ children: /* @__PURE__ */ s.jsx("g", { transform: "translate(4 6)", children: /* @__PURE__ */ s.jsx(
358
+ "path",
359
+ {
360
+ d: "M1 6L6 11L16 1",
361
+ stroke: "#EDEDED",
362
+ strokeWidth: "2",
363
+ strokeLinecap: "round",
364
+ strokeLinejoin: "round"
365
+ }
366
+ ) })
367
+ }
368
+ ), xe = ({ size: a, ref: d, className: f }) => /* @__PURE__ */ s.jsx(
369
+ "svg",
370
+ {
371
+ ref: d,
372
+ width: a,
373
+ height: a,
374
+ viewBox: "0 0 12 12",
375
+ fill: "none",
376
+ className: f,
377
+ xmlns: "http://www.w3.org/2000/svg",
378
+ children: /* @__PURE__ */ s.jsx("circle", { cx: "6", cy: "6", r: "6", fill: "#EDEDED" })
379
+ }
380
+ ), Te = 8, Re = 1, Se = (Te + Re) * 2, je = ({
381
+ inputName: a,
382
+ inputId: d,
383
+ className: f,
384
+ style: c,
385
+ onClick: l,
386
+ size: p = 24,
387
+ checked: y = !1,
388
+ type: h,
389
+ ...o
348
390
  }) => {
349
- const l = `bg-(image:${g})`;
350
- return /* @__PURE__ */ c.jsx(
391
+ const [r, g] = Z(y), n = G(null), e = G(null), i = `${p + Se}px`;
392
+ return pe(() => {
393
+ n.current && (e.current && (e.current.checked = r), r ? n.current.style.display = c?.display || "block" : n.current.style.opacity = "0", setTimeout(() => {
394
+ n.current && (r ? n.current.style.opacity = "1" : n.current.style.display = "none");
395
+ }, 100));
396
+ }, [r, c?.display]), /* @__PURE__ */ s.jsxs(
351
397
  "div",
352
398
  {
353
- ...s,
354
- className: [d, l].join(" "),
399
+ className: [
400
+ "bg-(--bg-card) border-(--fg-mini-text) border-1 p-[8px] cursor-pointer duration-300",
401
+ h === "checkbox" ? "rounded-[20%]" : "rounded-[100%]",
402
+ "hover:bg-(--fg-card)",
403
+ f
404
+ ].join(" "),
355
405
  style: {
356
- ...o,
357
- backgroundSize: "cover",
358
- backgroundRepeat: "no-repeat"
359
- }
406
+ height: i,
407
+ width: i,
408
+ ...c
409
+ },
410
+ onClick: (b) => {
411
+ l?.(b), g(!r);
412
+ },
413
+ ...o,
414
+ children: [
415
+ h === "checkbox" ? /* @__PURE__ */ s.jsx(Ee, { className: "duration-300", ref: n, size: p }) : /* @__PURE__ */ s.jsx(xe, { className: "duration-300", ref: n, size: p }),
416
+ /* @__PURE__ */ s.jsx(
417
+ "input",
418
+ {
419
+ ref: e,
420
+ name: a,
421
+ id: d,
422
+ type: "checkbox",
423
+ style: { display: "none" }
424
+ }
425
+ )
426
+ ]
360
427
  }
361
428
  );
362
- }, Ce = ({ className: o, ...g }) => /* @__PURE__ */ c.jsx(
429
+ }, Ue = (a) => /* @__PURE__ */ s.jsx(je, { type: "checkbox", ...a }), Ye = ({ className: a, ...d }) => /* @__PURE__ */ s.jsx(
363
430
  "input",
364
431
  {
365
432
  placeholder: "input here...",
366
- ...g,
433
+ ...d,
367
434
  className: [
368
- o || "",
435
+ a || "",
369
436
  "bg-(--bg-card) px-4 py-2 rounded-lg min-w-30 max-w-60"
370
437
  ].join(" ")
371
438
  }
372
- ), Ie = ({ className: o, ...g }) => /* @__PURE__ */ c.jsx(
439
+ ), He = ({ className: a, ...d }) => /* @__PURE__ */ s.jsx(
373
440
  "textarea",
374
441
  {
375
442
  placeholder: "write here...",
376
- ...g,
443
+ ...d,
377
444
  className: [
378
- o || "",
445
+ a || "",
379
446
  "bg-(--bg-card) px-4 py-2 rounded-lg min-w-30 max-w-150 min-h-10 resize"
380
447
  ].join(" ")
381
448
  }
382
- ), Fe = ({
383
- flexDirection: o = "row",
384
- className: g,
385
- ...d
386
- }) => {
387
- const s = o === "col" ? "flex-col" : "flex-row";
388
- return /* @__PURE__ */ c.jsx(
389
- "div",
390
- {
391
- ...d,
392
- className: [
393
- g || "",
394
- s,
395
- "bg-(image:--image-bg) flex gap-8 px-12 py-4 rounded-lg page"
396
- ].join(" ")
397
- }
398
- );
399
- };
400
- var C = { exports: {} }, O = {};
401
- /**
402
- * @license React
403
- * react-dom.production.js
404
- *
405
- * Copyright (c) Meta Platforms, Inc. and affiliates.
406
- *
407
- * This source code is licensed under the MIT license found in the
408
- * LICENSE file in the root directory of this source tree.
409
- */
410
- var z;
411
- function be() {
412
- if (z) return O;
413
- z = 1;
414
- var o = I;
415
- function g(a) {
416
- var r = "https://react.dev/errors/" + a;
449
+ );
450
+ var A = { exports: {} }, O = {};
451
+ var X;
452
+ function De() {
453
+ if (X) return O;
454
+ X = 1;
455
+ var a = I;
456
+ function d(o) {
457
+ var r = "https://react.dev/errors/" + o;
417
458
  if (1 < arguments.length) {
418
459
  r += "?args[]=" + encodeURIComponent(arguments[1]);
419
- for (var f = 2; f < arguments.length; f++)
420
- r += "&args[]=" + encodeURIComponent(arguments[f]);
460
+ for (var g = 2; g < arguments.length; g++)
461
+ r += "&args[]=" + encodeURIComponent(arguments[g]);
421
462
  }
422
- return "Minified React error #" + a + "; visit " + r + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
463
+ return "Minified React error #" + o + "; visit " + r + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
423
464
  }
424
- function d() {
465
+ function f() {
425
466
  }
426
- var s = {
467
+ var c = {
427
468
  d: {
428
- f: d,
469
+ f,
429
470
  r: function() {
430
- throw Error(g(522));
471
+ throw Error(d(522));
431
472
  },
432
- D: d,
433
- C: d,
434
- L: d,
435
- m: d,
436
- X: d,
437
- S: d,
438
- M: d
473
+ D: f,
474
+ C: f,
475
+ L: f,
476
+ m: f,
477
+ X: f,
478
+ S: f,
479
+ M: f
439
480
  },
440
481
  p: 0,
441
482
  findDOMNode: null
442
- }, l = Symbol.for("react.portal");
443
- function p(a, r, f) {
483
+ }, l = /* @__PURE__ */ Symbol.for("react.portal");
484
+ function p(o, r, g) {
444
485
  var n = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
445
486
  return {
446
487
  $$typeof: l,
447
488
  key: n == null ? null : "" + n,
448
- children: a,
489
+ children: o,
449
490
  containerInfo: r,
450
- implementation: f
491
+ implementation: g
451
492
  };
452
493
  }
453
- var y = o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
454
- function h(a, r) {
455
- if (a === "font") return "";
494
+ var y = a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
495
+ function h(o, r) {
496
+ if (o === "font") return "";
456
497
  if (typeof r == "string")
457
498
  return r === "use-credentials" ? r : "";
458
499
  }
459
- return O.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = s, O.createPortal = function(a, r) {
460
- var f = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
500
+ return O.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = c, O.createPortal = function(o, r) {
501
+ var g = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
461
502
  if (!r || r.nodeType !== 1 && r.nodeType !== 9 && r.nodeType !== 11)
462
- throw Error(g(299));
463
- return p(a, r, null, f);
464
- }, O.flushSync = function(a) {
465
- var r = y.T, f = s.p;
503
+ throw Error(d(299));
504
+ return p(o, r, null, g);
505
+ }, O.flushSync = function(o) {
506
+ var r = y.T, g = c.p;
466
507
  try {
467
- if (y.T = null, s.p = 2, a) return a();
508
+ if (y.T = null, c.p = 2, o) return o();
468
509
  } finally {
469
- y.T = r, s.p = f, s.d.f();
510
+ y.T = r, c.p = g, c.d.f();
470
511
  }
471
- }, O.preconnect = function(a, r) {
472
- typeof a == "string" && (r ? (r = r.crossOrigin, r = typeof r == "string" ? r === "use-credentials" ? r : "" : void 0) : r = null, s.d.C(a, r));
473
- }, O.prefetchDNS = function(a) {
474
- typeof a == "string" && s.d.D(a);
475
- }, O.preinit = function(a, r) {
476
- if (typeof a == "string" && r && typeof r.as == "string") {
477
- var f = r.as, n = h(f, r.crossOrigin), e = typeof r.integrity == "string" ? r.integrity : void 0, i = typeof r.fetchPriority == "string" ? r.fetchPriority : void 0;
478
- f === "style" ? s.d.S(
479
- a,
512
+ }, O.preconnect = function(o, r) {
513
+ typeof o == "string" && (r ? (r = r.crossOrigin, r = typeof r == "string" ? r === "use-credentials" ? r : "" : void 0) : r = null, c.d.C(o, r));
514
+ }, O.prefetchDNS = function(o) {
515
+ typeof o == "string" && c.d.D(o);
516
+ }, O.preinit = function(o, r) {
517
+ if (typeof o == "string" && r && typeof r.as == "string") {
518
+ var g = r.as, n = h(g, r.crossOrigin), e = typeof r.integrity == "string" ? r.integrity : void 0, i = typeof r.fetchPriority == "string" ? r.fetchPriority : void 0;
519
+ g === "style" ? c.d.S(
520
+ o,
480
521
  typeof r.precedence == "string" ? r.precedence : void 0,
481
522
  {
482
523
  crossOrigin: n,
483
524
  integrity: e,
484
525
  fetchPriority: i
485
526
  }
486
- ) : f === "script" && s.d.X(a, {
527
+ ) : g === "script" && c.d.X(o, {
487
528
  crossOrigin: n,
488
529
  integrity: e,
489
530
  fetchPriority: i,
490
531
  nonce: typeof r.nonce == "string" ? r.nonce : void 0
491
532
  });
492
533
  }
493
- }, O.preinitModule = function(a, r) {
494
- if (typeof a == "string")
534
+ }, O.preinitModule = function(o, r) {
535
+ if (typeof o == "string")
495
536
  if (typeof r == "object" && r !== null) {
496
537
  if (r.as == null || r.as === "script") {
497
- var f = h(
538
+ var g = h(
498
539
  r.as,
499
540
  r.crossOrigin
500
541
  );
501
- s.d.M(a, {
502
- crossOrigin: f,
542
+ c.d.M(o, {
543
+ crossOrigin: g,
503
544
  integrity: typeof r.integrity == "string" ? r.integrity : void 0,
504
545
  nonce: typeof r.nonce == "string" ? r.nonce : void 0
505
546
  });
506
547
  }
507
- } else r == null && s.d.M(a);
508
- }, O.preload = function(a, r) {
509
- if (typeof a == "string" && typeof r == "object" && r !== null && typeof r.as == "string") {
510
- var f = r.as, n = h(f, r.crossOrigin);
511
- s.d.L(a, f, {
548
+ } else r == null && c.d.M(o);
549
+ }, O.preload = function(o, r) {
550
+ if (typeof o == "string" && typeof r == "object" && r !== null && typeof r.as == "string") {
551
+ var g = r.as, n = h(g, r.crossOrigin);
552
+ c.d.L(o, g, {
512
553
  crossOrigin: n,
513
554
  integrity: typeof r.integrity == "string" ? r.integrity : void 0,
514
555
  nonce: typeof r.nonce == "string" ? r.nonce : void 0,
@@ -520,48 +561,39 @@ function be() {
520
561
  media: typeof r.media == "string" ? r.media : void 0
521
562
  });
522
563
  }
523
- }, O.preloadModule = function(a, r) {
524
- if (typeof a == "string")
564
+ }, O.preloadModule = function(o, r) {
565
+ if (typeof o == "string")
525
566
  if (r) {
526
- var f = h(r.as, r.crossOrigin);
527
- s.d.m(a, {
567
+ var g = h(r.as, r.crossOrigin);
568
+ c.d.m(o, {
528
569
  as: typeof r.as == "string" && r.as !== "script" ? r.as : void 0,
529
- crossOrigin: f,
570
+ crossOrigin: g,
530
571
  integrity: typeof r.integrity == "string" ? r.integrity : void 0
531
572
  });
532
- } else s.d.m(a);
533
- }, O.requestFormReset = function(a) {
534
- s.d.r(a);
535
- }, O.unstable_batchedUpdates = function(a, r) {
536
- return a(r);
537
- }, O.useFormState = function(a, r, f) {
538
- return y.H.useFormState(a, r, f);
573
+ } else c.d.m(o);
574
+ }, O.requestFormReset = function(o) {
575
+ c.d.r(o);
576
+ }, O.unstable_batchedUpdates = function(o, r) {
577
+ return o(r);
578
+ }, O.useFormState = function(o, r, g) {
579
+ return y.H.useFormState(o, r, g);
539
580
  }, O.useFormStatus = function() {
540
581
  return y.H.useHostTransitionStatus();
541
582
  }, O.version = "19.2.3", O;
542
583
  }
543
584
  var E = {};
544
- /**
545
- * @license React
546
- * react-dom.development.js
547
- *
548
- * Copyright (c) Meta Platforms, Inc. and affiliates.
549
- *
550
- * This source code is licensed under the MIT license found in the
551
- * LICENSE file in the root directory of this source tree.
552
- */
553
- var X;
554
- function Oe() {
555
- return X || (X = 1, process.env.NODE_ENV !== "production" && function() {
556
- function o() {
585
+ var J;
586
+ function we() {
587
+ return J || (J = 1, process.env.NODE_ENV !== "production" && (function() {
588
+ function a() {
557
589
  }
558
- function g(n) {
590
+ function d(n) {
559
591
  return "" + n;
560
592
  }
561
- function d(n, e, i) {
593
+ function f(n, e, i) {
562
594
  var b = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
563
595
  try {
564
- g(b);
596
+ d(b);
565
597
  var x = !1;
566
598
  } catch {
567
599
  x = !0;
@@ -569,7 +601,7 @@ function Oe() {
569
601
  return x && (console.error(
570
602
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
571
603
  typeof Symbol == "function" && Symbol.toStringTag && b[Symbol.toStringTag] || b.constructor.name || "Object"
572
- ), g(b)), {
604
+ ), d(b)), {
573
605
  $$typeof: r,
574
606
  key: b == null ? null : "" + b,
575
607
  children: n,
@@ -577,7 +609,7 @@ function Oe() {
577
609
  implementation: i
578
610
  };
579
611
  }
580
- function s(n, e) {
612
+ function c(n, e) {
581
613
  if (n === "font") return "";
582
614
  if (typeof e == "string")
583
615
  return e === "use-credentials" ? e : "";
@@ -589,7 +621,7 @@ function Oe() {
589
621
  return n === null ? "`null`" : n === void 0 ? "`undefined`" : n === "" ? "an empty string" : typeof n == "string" ? JSON.stringify(n) : typeof n == "number" ? "`" + n + "`" : 'something with type "' + typeof n + '"';
590
622
  }
591
623
  function y() {
592
- var n = f.H;
624
+ var n = g.H;
593
625
  return n === null && console.error(
594
626
  `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
595
627
  1. You might have mismatching versions of React and the renderer (such as React DOM)
@@ -599,39 +631,39 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
599
631
  ), n;
600
632
  }
601
633
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
602
- var h = I, a = {
634
+ var h = I, o = {
603
635
  d: {
604
- f: o,
636
+ f: a,
605
637
  r: function() {
606
638
  throw Error(
607
639
  "Invalid form element. requestFormReset must be passed a form that was rendered by React."
608
640
  );
609
641
  },
610
- D: o,
611
- C: o,
612
- L: o,
613
- m: o,
614
- X: o,
615
- S: o,
616
- M: o
642
+ D: a,
643
+ C: a,
644
+ L: a,
645
+ m: a,
646
+ X: a,
647
+ S: a,
648
+ M: a
617
649
  },
618
650
  p: 0,
619
651
  findDOMNode: null
620
- }, r = Symbol.for("react.portal"), f = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
652
+ }, r = /* @__PURE__ */ Symbol.for("react.portal"), g = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
621
653
  typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error(
622
654
  "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
623
- ), E.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = a, E.createPortal = function(n, e) {
655
+ ), E.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = o, E.createPortal = function(n, e) {
624
656
  var i = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
625
657
  if (!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11)
626
658
  throw Error("Target container is not a DOM element.");
627
- return d(n, e, null, i);
659
+ return f(n, e, null, i);
628
660
  }, E.flushSync = function(n) {
629
- var e = f.T, i = a.p;
661
+ var e = g.T, i = o.p;
630
662
  try {
631
- if (f.T = null, a.p = 2, n)
663
+ if (g.T = null, o.p = 2, n)
632
664
  return n();
633
665
  } finally {
634
- f.T = e, a.p = i, a.d.f() && console.error(
666
+ g.T = e, o.p = i, o.d.f() && console.error(
635
667
  "flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
636
668
  );
637
669
  }
@@ -645,7 +677,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
645
677
  ) : console.error(
646
678
  "ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
647
679
  l(n)
648
- ), typeof n == "string" && (e ? (e = e.crossOrigin, e = typeof e == "string" ? e === "use-credentials" ? e : "" : void 0) : e = null, a.d.C(n, e));
680
+ ), typeof n == "string" && (e ? (e = e.crossOrigin, e = typeof e == "string" ? e === "use-credentials" ? e : "" : void 0) : e = null, o.d.C(n, e));
649
681
  }, E.prefetchDNS = function(n) {
650
682
  if (typeof n != "string" || !n)
651
683
  console.error(
@@ -662,7 +694,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
662
694
  p(e)
663
695
  );
664
696
  }
665
- typeof n == "string" && a.d.D(n);
697
+ typeof n == "string" && o.d.D(n);
666
698
  }, E.preinit = function(n, e) {
667
699
  if (typeof n == "string" && n ? e == null || typeof e != "object" ? console.error(
668
700
  "ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
@@ -674,8 +706,8 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
674
706
  "ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
675
707
  l(n)
676
708
  ), typeof n == "string" && e && typeof e.as == "string") {
677
- var i = e.as, b = s(i, e.crossOrigin), x = typeof e.integrity == "string" ? e.integrity : void 0, T = typeof e.fetchPriority == "string" ? e.fetchPriority : void 0;
678
- i === "style" ? a.d.S(
709
+ var i = e.as, b = c(i, e.crossOrigin), x = typeof e.integrity == "string" ? e.integrity : void 0, T = typeof e.fetchPriority == "string" ? e.fetchPriority : void 0;
710
+ i === "style" ? o.d.S(
679
711
  n,
680
712
  typeof e.precedence == "string" ? e.precedence : void 0,
681
713
  {
@@ -683,7 +715,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
683
715
  integrity: x,
684
716
  fetchPriority: T
685
717
  }
686
- ) : i === "script" && a.d.X(n, {
718
+ ) : i === "script" && o.d.X(n, {
687
719
  crossOrigin: b,
688
720
  integrity: x,
689
721
  fetchPriority: T,
@@ -692,30 +724,21 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
692
724
  }
693
725
  }, E.preinitModule = function(n, e) {
694
726
  var i = "";
695
- if (typeof n == "string" && n || (i += " The `href` argument encountered was " + l(n) + "."), e !== void 0 && typeof e != "object" ? i += " The `options` argument encountered was " + l(e) + "." : e && "as" in e && e.as !== "script" && (i += " The `as` option encountered was " + p(e.as) + "."), i)
696
- console.error(
697
- "ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
698
- i
699
- );
700
- else
701
- switch (i = e && typeof e.as == "string" ? e.as : "script", i) {
702
- case "script":
703
- break;
704
- default:
705
- i = p(i), console.error(
706
- 'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
707
- i,
708
- n
709
- );
710
- }
711
- typeof n == "string" && (typeof e == "object" && e !== null ? (e.as == null || e.as === "script") && (i = s(
727
+ typeof n == "string" && n || (i += " The `href` argument encountered was " + l(n) + "."), e !== void 0 && typeof e != "object" ? i += " The `options` argument encountered was " + l(e) + "." : e && "as" in e && e.as !== "script" && (i += " The `as` option encountered was " + p(e.as) + "."), i ? console.error(
728
+ "ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
729
+ i
730
+ ) : (i = e && typeof e.as == "string" ? e.as : "script", i) === "script" || (i = p(i), console.error(
731
+ 'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
732
+ i,
733
+ n
734
+ )), typeof n == "string" && (typeof e == "object" && e !== null ? (e.as == null || e.as === "script") && (i = c(
712
735
  e.as,
713
736
  e.crossOrigin
714
- ), a.d.M(n, {
737
+ ), o.d.M(n, {
715
738
  crossOrigin: i,
716
739
  integrity: typeof e.integrity == "string" ? e.integrity : void 0,
717
740
  nonce: typeof e.nonce == "string" ? e.nonce : void 0
718
- })) : e == null && a.d.M(n));
741
+ })) : e == null && o.d.M(n));
719
742
  }, E.preload = function(n, e) {
720
743
  var i = "";
721
744
  if (typeof n == "string" && n || (i += " The `href` argument encountered was " + l(n) + "."), e == null || typeof e != "object" ? i += " The `options` argument encountered was " + l(e) + "." : typeof e.as == "string" && e.as || (i += " The `as` option encountered was " + l(e.as) + "."), i && console.error(
@@ -723,11 +746,11 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
723
746
  i
724
747
  ), typeof n == "string" && typeof e == "object" && e !== null && typeof e.as == "string") {
725
748
  i = e.as;
726
- var b = s(
749
+ var b = c(
727
750
  i,
728
751
  e.crossOrigin
729
752
  );
730
- a.d.L(n, i, {
753
+ o.d.L(n, i, {
731
754
  crossOrigin: b,
732
755
  integrity: typeof e.integrity == "string" ? e.integrity : void 0,
733
756
  nonce: typeof e.nonce == "string" ? e.nonce : void 0,
@@ -744,16 +767,16 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
744
767
  typeof n == "string" && n || (i += " The `href` argument encountered was " + l(n) + "."), e !== void 0 && typeof e != "object" ? i += " The `options` argument encountered was " + l(e) + "." : e && "as" in e && typeof e.as != "string" && (i += " The `as` option encountered was " + l(e.as) + "."), i && console.error(
745
768
  'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
746
769
  i
747
- ), typeof n == "string" && (e ? (i = s(
770
+ ), typeof n == "string" && (e ? (i = c(
748
771
  e.as,
749
772
  e.crossOrigin
750
- ), a.d.m(n, {
773
+ ), o.d.m(n, {
751
774
  as: typeof e.as == "string" && e.as !== "script" ? e.as : void 0,
752
775
  crossOrigin: i,
753
776
  integrity: typeof e.integrity == "string" ? e.integrity : void 0
754
- })) : a.d.m(n));
777
+ })) : o.d.m(n));
755
778
  }, E.requestFormReset = function(n) {
756
- a.d.r(n);
779
+ o.d.r(n);
757
780
  }, E.unstable_batchedUpdates = function(n, e) {
758
781
  return n(e);
759
782
  }, E.useFormState = function(n, e, i) {
@@ -761,155 +784,78 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
761
784
  }, E.useFormStatus = function() {
762
785
  return y().useHostTransitionStatus();
763
786
  }, E.version = "19.2.3", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
764
- }()), E;
787
+ })()), E;
765
788
  }
766
- function Q() {
767
- if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
768
- if (process.env.NODE_ENV !== "production")
769
- throw new Error("^_^");
770
- try {
771
- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Q);
772
- } catch (o) {
773
- console.error(o);
789
+ var K;
790
+ function Ne() {
791
+ if (K) return A.exports;
792
+ K = 1;
793
+ function a() {
794
+ if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
795
+ if (process.env.NODE_ENV !== "production")
796
+ throw new Error("^_^");
797
+ try {
798
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a);
799
+ } catch (d) {
800
+ console.error(d);
801
+ }
774
802
  }
775
803
  }
804
+ return process.env.NODE_ENV === "production" ? (a(), A.exports = De()) : A.exports = we(), A.exports;
776
805
  }
777
- process.env.NODE_ENV === "production" ? (Q(), C.exports = be()) : C.exports = Oe();
778
- var Ee = C.exports;
779
- const $e = ({
780
- container: o,
781
- children: g,
782
- portalKey: d,
783
- className: s = "",
806
+ var Ae = Ne();
807
+ const Be = ({
808
+ container: a,
809
+ children: d,
810
+ portalKey: f,
811
+ className: c = "",
784
812
  zIndex: l,
785
813
  style: p,
786
814
  ...y
787
815
  }) => {
788
816
  const h = l ? "" : "z-100";
789
- return Ee.createPortal(
790
- /* @__PURE__ */ c.jsx(
817
+ return Ae.createPortal(
818
+ /* @__PURE__ */ s.jsx(
791
819
  "div",
792
820
  {
793
821
  className: [
794
822
  "fixed top-0 h-screen w-screen",
795
823
  h,
796
- s
824
+ c
797
825
  ].join(" "),
798
826
  ...y,
799
827
  style: {
800
828
  zIndex: l,
801
829
  ...p
802
830
  },
803
- children: g
831
+ children: d
804
832
  }
805
833
  ),
806
- o,
807
- d
834
+ a,
835
+ f
808
836
  );
809
- }, Ue = ({ actived: o, children: g, name: d }) => /* @__PURE__ */ c.jsx(fe, { name: d, mode: o ? "visible" : "hidden", children: g }), xe = ({ size: o, ref: g, className: d }) => /* @__PURE__ */ c.jsx(
810
- "svg",
811
- {
812
- ref: g,
813
- width: o,
814
- height: o,
815
- viewBox: "0 0 24 24",
816
- fill: "none",
817
- className: d,
818
- xmlns: "http://www.w3.org/2000/svg",
819
- children: /* @__PURE__ */ c.jsx("g", { transform: "translate(4 6)", children: /* @__PURE__ */ c.jsx(
820
- "path",
821
- {
822
- d: "M1 6L6 11L16 1",
823
- stroke: "#EDEDED",
824
- strokeWidth: "2",
825
- strokeLinecap: "round",
826
- strokeLinejoin: "round"
827
- }
828
- ) })
829
- }
830
- ), Te = ({ size: o, ref: g, className: d }) => /* @__PURE__ */ c.jsx(
831
- "svg",
832
- {
833
- ref: g,
834
- width: o,
835
- height: o,
836
- viewBox: "0 0 12 12",
837
- fill: "none",
838
- className: d,
839
- xmlns: "http://www.w3.org/2000/svg",
840
- children: /* @__PURE__ */ c.jsx("circle", { cx: "6", cy: "6", r: "6", fill: "#EDEDED" })
841
- }
842
- ), Re = 8, Se = 1, je = (Re + Se) * 2, we = ({
843
- inputName: o,
844
- inputId: g,
845
- className: d,
846
- style: s,
847
- onClick: l,
848
- size: p = 24,
849
- checked: y = !1,
850
- type: h,
851
- ...a
852
- }) => {
853
- const [r, f] = K(y), n = G(null), e = G(null), i = `${p + je}px`;
854
- return ge(() => {
855
- n.current && (e.current && (e.current.checked = r), r ? n.current.style.display = (s == null ? void 0 : s.display) || "block" : n.current.style.opacity = "0", setTimeout(() => {
856
- n.current && (r ? n.current.style.opacity = "1" : n.current.style.display = "none");
857
- }, 100));
858
- }, [r, s == null ? void 0 : s.display]), /* @__PURE__ */ c.jsxs(
859
- "div",
860
- {
861
- className: [
862
- "bg-(--bg-card) border-(--fg-mini-text) border-1 p-[8px] cursor-pointer duration-300",
863
- h === "checkbox" ? "rounded-[20%]" : "rounded-[100%]",
864
- "hover:bg-(--fg-card)",
865
- d
866
- ].join(" "),
867
- style: {
868
- height: i,
869
- width: i,
870
- ...s
871
- },
872
- onClick: (b) => {
873
- l == null || l(b), f(!r);
874
- },
875
- ...a,
876
- children: [
877
- h === "checkbox" ? /* @__PURE__ */ c.jsx(xe, { className: "duration-300", ref: n, size: p }) : /* @__PURE__ */ c.jsx(Te, { className: "duration-300", ref: n, size: p }),
878
- /* @__PURE__ */ c.jsx(
879
- "input",
880
- {
881
- ref: e,
882
- name: o,
883
- id: g,
884
- type: "checkbox",
885
- style: { display: "none" }
886
- }
887
- )
888
- ]
889
- }
890
- );
891
- }, Ye = (o) => /* @__PURE__ */ c.jsx(we, { type: "checkbox", ...o }), De = 12, Ne = 8, He = ({
892
- inputId: o,
893
- inputName: g,
894
- dangerousDisableError: d = !1,
895
- style: s,
837
+ }, ke = 12, Pe = 8, Ge = ({
838
+ inputId: a,
839
+ inputName: d,
840
+ dangerousDisableError: f = !1,
841
+ style: c,
896
842
  className: l,
897
843
  onClick: p,
898
844
  radioSize: y = 24,
899
845
  checked: h = !1,
900
- ...a
846
+ ...o
901
847
  }) => {
902
- const [r, f] = K(h);
903
- y < De && !d && console.error(
848
+ const [r, g] = Z(h);
849
+ y < ke && !f && console.error(
904
850
  "radio size less than minimal, set radioSize = 12 or more too resolve"
905
851
  );
906
- const n = y * 4, e = n - Ne * 2 - y, i = r ? "bg-(--bg-card)" : "bg-(--bg-section)", b = r ? "bg-(--fg-default)" : "bg-(--fg-mini-text)", x = r ? e : 0;
907
- return /* @__PURE__ */ c.jsxs(
852
+ const n = y * 4, e = n - Pe * 2 - y, i = r ? "bg-(--bg-card)" : "bg-(--bg-section)", b = r ? "bg-(--fg-default)" : "bg-(--fg-mini-text)", x = r ? e : 0;
853
+ return /* @__PURE__ */ s.jsxs(
908
854
  "div",
909
855
  {
910
856
  style: {
911
857
  width: `${n}px`,
912
- ...s
858
+ ...c
913
859
  },
914
860
  className: [
915
861
  "rounded-[200px] py-[6px] px-[8px] cursor-pointer duration-300",
@@ -918,11 +864,11 @@ const $e = ({
918
864
  l
919
865
  ].join(" "),
920
866
  onClick: (T) => {
921
- f(!r), p == null || p(T);
867
+ g(!r), p?.(T);
922
868
  },
923
- ...a,
869
+ ...o,
924
870
  children: [
925
- /* @__PURE__ */ c.jsx(
871
+ /* @__PURE__ */ s.jsx(
926
872
  "div",
927
873
  {
928
874
  className: [
@@ -936,11 +882,11 @@ const $e = ({
936
882
  }
937
883
  }
938
884
  ),
939
- /* @__PURE__ */ c.jsx(
885
+ /* @__PURE__ */ s.jsx(
940
886
  "input",
941
887
  {
942
- name: g,
943
- id: o,
888
+ name: d,
889
+ id: a,
944
890
  type: "checkbox",
945
891
  style: { display: "none" }
946
892
  }
@@ -948,77 +894,94 @@ const $e = ({
948
894
  ]
949
895
  }
950
896
  );
951
- }, Ae = () => /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col justify-center gap-4", children: [
952
- Object.keys(Z).map((o) => /* @__PURE__ */ c.jsxs(q, { variant: o, children: [
897
+ }, Ve = ({
898
+ flexDirection: a = "row",
899
+ className: d,
900
+ ...f
901
+ }) => {
902
+ const c = a === "col" ? "flex-col" : "flex-row";
903
+ return /* @__PURE__ */ s.jsx(
904
+ "div",
905
+ {
906
+ ...f,
907
+ className: [
908
+ d || "",
909
+ c,
910
+ "bg-(image:--image-bg) flex gap-8 px-12 py-4 rounded-lg page"
911
+ ].join(" ")
912
+ }
913
+ );
914
+ }, Me = () => /* @__PURE__ */ s.jsxs("div", { className: "flex flex-col justify-center gap-4", children: [
915
+ Object.keys(ee).map((a) => /* @__PURE__ */ s.jsxs(z, { variant: a, children: [
953
916
  "Button ",
954
- o
955
- ] }, o)),
956
- /* @__PURE__ */ c.jsx(q, { disabled: !0, children: "Button Disabled" })
957
- ] }), ke = () => /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col gap-2 rounded-lg", children: [
958
- /* @__PURE__ */ c.jsxs("div", { children: [
959
- /* @__PURE__ */ c.jsxs("h1", { children: [
917
+ a
918
+ ] }, a)),
919
+ /* @__PURE__ */ s.jsx(z, { disabled: !0, children: "Button Disabled" })
920
+ ] }), Ce = () => /* @__PURE__ */ s.jsxs("div", { className: "flex flex-col gap-2 rounded-lg", children: [
921
+ /* @__PURE__ */ s.jsxs("div", { children: [
922
+ /* @__PURE__ */ s.jsxs("h1", { children: [
960
923
  "H1 text, ",
961
924
  R.h1
962
925
  ] }),
963
- /* @__PURE__ */ c.jsx("span", { children: "Пока не знаю" })
926
+ /* @__PURE__ */ s.jsx("span", { children: "Пока не знаю" })
964
927
  ] }),
965
- /* @__PURE__ */ c.jsxs("div", { children: [
966
- /* @__PURE__ */ c.jsxs("h2", { children: [
928
+ /* @__PURE__ */ s.jsxs("div", { children: [
929
+ /* @__PURE__ */ s.jsxs("h2", { children: [
967
930
  "H2 text, ",
968
931
  R.h2
969
932
  ] }),
970
- /* @__PURE__ */ c.jsx("span", { children: "Пока не знаю" })
933
+ /* @__PURE__ */ s.jsx("span", { children: "Пока не знаю" })
971
934
  ] }),
972
- /* @__PURE__ */ c.jsxs("div", { children: [
973
- /* @__PURE__ */ c.jsxs("h3", { children: [
935
+ /* @__PURE__ */ s.jsxs("div", { children: [
936
+ /* @__PURE__ */ s.jsxs("h3", { children: [
974
937
  "H3 text, ",
975
938
  R.h3
976
939
  ] }),
977
- /* @__PURE__ */ c.jsx("span", { children: "Пока не знаю" })
940
+ /* @__PURE__ */ s.jsx("span", { children: "Пока не знаю" })
978
941
  ] }),
979
- /* @__PURE__ */ c.jsxs("div", { children: [
980
- /* @__PURE__ */ c.jsxs("h4", { children: [
942
+ /* @__PURE__ */ s.jsxs("div", { children: [
943
+ /* @__PURE__ */ s.jsxs("h4", { children: [
981
944
  "H4 text, ",
982
945
  R.h4
983
946
  ] }),
984
- /* @__PURE__ */ c.jsx("span", { children: "Пока не знаю" })
947
+ /* @__PURE__ */ s.jsx("span", { children: "Пока не знаю" })
985
948
  ] }),
986
- /* @__PURE__ */ c.jsxs("div", { children: [
987
- /* @__PURE__ */ c.jsxs("h5", { children: [
949
+ /* @__PURE__ */ s.jsxs("div", { children: [
950
+ /* @__PURE__ */ s.jsxs("h5", { children: [
988
951
  "H5 text, ",
989
952
  R.h5
990
953
  ] }),
991
- /* @__PURE__ */ c.jsx("span", { children: "Пока не знаю" })
954
+ /* @__PURE__ */ s.jsx("span", { children: "Пока не знаю" })
992
955
  ] }),
993
- /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col", children: [
994
- /* @__PURE__ */ c.jsxs("span", { children: [
956
+ /* @__PURE__ */ s.jsxs("div", { className: "flex flex-col", children: [
957
+ /* @__PURE__ */ s.jsxs("span", { children: [
995
958
  "Base text, ",
996
959
  R.base
997
960
  ] }),
998
- /* @__PURE__ */ c.jsx("span", { children: "Пока не знаю" })
961
+ /* @__PURE__ */ s.jsx("span", { children: "Пока не знаю" })
999
962
  ] }),
1000
- /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col", children: [
1001
- /* @__PURE__ */ c.jsxs("span", { className: "text-mini", children: [
963
+ /* @__PURE__ */ s.jsxs("div", { className: "flex flex-col", children: [
964
+ /* @__PURE__ */ s.jsxs("span", { className: "text-mini", children: [
1002
965
  "Mini text, ",
1003
966
  R.mini
1004
967
  ] }),
1005
- /* @__PURE__ */ c.jsx("span", { children: "Пока не знаю" })
968
+ /* @__PURE__ */ s.jsx("span", { children: "Пока не знаю" })
1006
969
  ] })
1007
- ] }), Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
970
+ ] }), We = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1008
971
  __proto__: null,
1009
- Button: Ae,
1010
- Text: ke
972
+ Button: Me,
973
+ Text: Ce
1011
974
  }, Symbol.toStringTag, { value: "Module" }));
1012
975
  export {
1013
- Ue as Active,
1014
- Le as Background,
1015
- q as Button,
1016
- Ye as Checkbox,
1017
- Be as Guildline,
1018
- Ce as Input,
1019
- $e as Modal,
1020
- He as Switch,
1021
- Ie as Textarea,
1022
- Me as VARIABLES,
1023
- Fe as Wrapper
976
+ Fe as Active,
977
+ $e as Background,
978
+ z as Button,
979
+ Ue as Checkbox,
980
+ We as Guildline,
981
+ Ye as Input,
982
+ Be as Modal,
983
+ Ge as Switch,
984
+ He as Textarea,
985
+ Ie as VARIABLES,
986
+ Ve as Wrapper
1024
987
  };