@youversion/design-system-components 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/Box/Box.d.ts +44 -0
  3. package/dist/Box/Box.d.ts.map +1 -0
  4. package/dist/Box/index.d.ts +2 -0
  5. package/dist/Box/index.d.ts.map +1 -0
  6. package/dist/Button/Button.d.ts +62 -0
  7. package/dist/Button/Button.d.ts.map +1 -0
  8. package/dist/Button/index.d.ts +2 -0
  9. package/dist/Button/index.d.ts.map +1 -0
  10. package/dist/IconButton/IconButton.d.ts +27 -0
  11. package/dist/IconButton/IconButton.d.ts.map +1 -0
  12. package/dist/IconButton/index.d.ts +2 -0
  13. package/dist/IconButton/index.d.ts.map +1 -0
  14. package/dist/IconLinkButton/IconLinkButton.d.ts +34 -0
  15. package/dist/IconLinkButton/IconLinkButton.d.ts.map +1 -0
  16. package/dist/IconLinkButton/index.d.ts +2 -0
  17. package/dist/IconLinkButton/index.d.ts.map +1 -0
  18. package/dist/Input/Input.d.ts +47 -0
  19. package/dist/Input/Input.d.ts.map +1 -0
  20. package/dist/Input/index.d.ts +2 -0
  21. package/dist/Input/index.d.ts.map +1 -0
  22. package/dist/List/List.d.ts +32 -0
  23. package/dist/List/List.d.ts.map +1 -0
  24. package/dist/List/index.d.ts +2 -0
  25. package/dist/List/index.d.ts.map +1 -0
  26. package/dist/ListItem/ListItem.d.ts +35 -0
  27. package/dist/ListItem/ListItem.d.ts.map +1 -0
  28. package/dist/ListItem/index.d.ts +2 -0
  29. package/dist/ListItem/index.d.ts.map +1 -0
  30. package/dist/ListItemText/ListItemText.d.ts +34 -0
  31. package/dist/ListItemText/ListItemText.d.ts.map +1 -0
  32. package/dist/ListItemText/index.d.ts +2 -0
  33. package/dist/ListItemText/index.d.ts.map +1 -0
  34. package/dist/Tooltip/Tooltip.d.ts +34 -0
  35. package/dist/Tooltip/Tooltip.d.ts.map +1 -0
  36. package/dist/Tooltip/Tooltip.module.css.d.ts +6 -0
  37. package/dist/Tooltip/index.d.ts +2 -0
  38. package/dist/Tooltip/index.d.ts.map +1 -0
  39. package/dist/Typography/Heading/Heading.d.ts +30 -0
  40. package/dist/Typography/Heading/Heading.d.ts.map +1 -0
  41. package/dist/Typography/Heading/index.d.ts +2 -0
  42. package/dist/Typography/Heading/index.d.ts.map +1 -0
  43. package/dist/Typography/Text/Text.d.ts +19 -0
  44. package/dist/Typography/Text/Text.d.ts.map +1 -0
  45. package/dist/Typography/Text/index.d.ts +2 -0
  46. package/dist/Typography/Text/index.d.ts.map +1 -0
  47. package/dist/Typography/Typography.d.ts +44 -0
  48. package/dist/Typography/Typography.d.ts.map +1 -0
  49. package/dist/Typography/Variants.d.ts +5 -0
  50. package/dist/Typography/Variants.d.ts.map +1 -0
  51. package/dist/Typography/index.d.ts +3 -0
  52. package/dist/Typography/index.d.ts.map +1 -0
  53. package/dist/hooks/index.d.ts +2 -0
  54. package/dist/hooks/index.d.ts.map +1 -0
  55. package/dist/hooks/useCombinedRefs.d.ts +33 -0
  56. package/dist/hooks/useCombinedRefs.d.ts.map +1 -0
  57. package/dist/index.d.ts +10 -0
  58. package/dist/index.d.ts.map +1 -0
  59. package/dist/index.es.js +448 -403
  60. package/dist/index.umd.js +10 -10
  61. package/dist/utils/get-resolved-dark-mode-value.d.ts +25 -0
  62. package/dist/utils/get-resolved-dark-mode-value.d.ts.map +1 -0
  63. package/dist/utils/get-resolved-logical-property.d.ts +25 -0
  64. package/dist/utils/get-resolved-logical-property.d.ts.map +1 -0
  65. package/dist/utils/tailwind-types.d.ts +29 -0
  66. package/dist/utils/tailwind-types.d.ts.map +1 -0
  67. package/package.json +5 -2
package/dist/index.es.js CHANGED
@@ -1,69 +1,69 @@
1
- import m from "clsx";
2
- import W, { forwardRef as B, createElement as Ge, useEffect as Rt, useRef as wt } from "react";
3
- const fe = (n) => {
4
- if (n) {
5
- if (typeof n != "string" && n)
6
- return m(n.lightMode, n.darkMode);
7
- if (typeof n == "string")
8
- return n;
1
+ import v from "clsx";
2
+ import $, { forwardRef as D, createElement as te, useEffect as Rt, useRef as Ct } from "react";
3
+ const fe = (a) => {
4
+ if (a) {
5
+ if (typeof a != "string" && a)
6
+ return v(a.lightMode, a.darkMode);
7
+ if (typeof a == "string")
8
+ return a;
9
9
  }
10
- }, Le = (n) => {
11
- if (n) {
12
- if (typeof n != "string" && n)
13
- return m(n.block, n.blockEnd, n.blockStart, n.inline, n.inlineEnd, n.inlineStart);
14
- if (typeof n == "string")
15
- return n;
10
+ }, Be = (a) => {
11
+ if (a) {
12
+ if (typeof a != "string" && a)
13
+ return v(a.block, a.blockEnd, a.blockStart, a.inline, a.inlineEnd, a.inlineStart);
14
+ if (typeof a == "string")
15
+ return a;
16
16
  }
17
17
  }, Tt = ({
18
- background: n,
19
- borderColor: l,
18
+ background: a,
19
+ borderColor: s,
20
20
  borderRadius: u,
21
- borderWidth: f,
22
- className: h,
23
- component: w = "div",
24
- color: k,
25
- elevation: b = 0,
26
- height: d,
27
- margin: y,
28
- padding: v,
29
- width: T,
21
+ borderWidth: d,
22
+ className: p,
23
+ component: y = "div",
24
+ color: _,
25
+ elevation: h = 0,
26
+ height: f,
27
+ margin: k,
28
+ padding: g,
29
+ width: C,
30
30
  ...S
31
31
  }, N) => {
32
- const E = {
32
+ const w = {
33
33
  0: "",
34
34
  1: "shadow-light-1 dark:shadow-dark-1",
35
35
  2: "shadow-light-2 dark:shadow-dark-2",
36
36
  4: "shadow-light-4 dark:shadow-dark-4",
37
37
  8: "shadow-light-8 dark:shadow-dark-8",
38
38
  12: "shadow-light-12 dark:shadow-dark-12"
39
- }, $ = fe(k), D = fe(n), O = fe(l), g = Le(v), Y = Le(y), I = m(
39
+ }, Y = fe(_), I = fe(a), O = fe(s), x = Be(g), M = Be(k), A = v(
40
40
  u,
41
- f,
42
- E[b],
41
+ d,
42
+ w[h],
43
+ M,
44
+ x,
43
45
  Y,
44
- g,
45
- $,
46
- D,
46
+ I,
47
47
  O,
48
- T,
49
- d,
50
- h
48
+ C,
49
+ f,
50
+ p
51
51
  );
52
- return Ge(w, {
53
- className: I,
52
+ return te(y, {
53
+ className: A,
54
54
  ...S,
55
55
  ref: N
56
56
  });
57
- }, He = B(Tt);
58
- He.displayName = "Box";
59
- var te = {}, Ct = {
57
+ }, Ke = D(Tt);
58
+ Ke.displayName = "Box";
59
+ var re = {}, St = {
60
60
  get exports() {
61
- return te;
61
+ return re;
62
62
  },
63
- set exports(n) {
64
- te = n;
63
+ set exports(a) {
64
+ re = a;
65
65
  }
66
- }, q = {};
66
+ }, J = {};
67
67
  /**
68
68
  * @license React
69
69
  * react-jsx-runtime.production.min.js
@@ -74,24 +74,24 @@ var te = {}, Ct = {
74
74
  * LICENSE file in the root directory of this source tree.
75
75
  */
76
76
  var Ve;
77
- function St() {
77
+ function Ot() {
78
78
  if (Ve)
79
- return q;
79
+ return J;
80
80
  Ve = 1;
81
- var n = W, l = Symbol.for("react.element"), u = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, h = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, w = { key: !0, ref: !0, __self: !0, __source: !0 };
82
- function k(b, d, y) {
83
- var v, T = {}, S = null, N = null;
84
- y !== void 0 && (S = "" + y), d.key !== void 0 && (S = "" + d.key), d.ref !== void 0 && (N = d.ref);
85
- for (v in d)
86
- f.call(d, v) && !w.hasOwnProperty(v) && (T[v] = d[v]);
87
- if (b && b.defaultProps)
88
- for (v in d = b.defaultProps, d)
89
- T[v] === void 0 && (T[v] = d[v]);
90
- return { $$typeof: l, type: b, key: S, ref: N, props: T, _owner: h.current };
81
+ var a = $, s = Symbol.for("react.element"), u = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, p = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
82
+ function _(h, f, k) {
83
+ var g, C = {}, S = null, N = null;
84
+ k !== void 0 && (S = "" + k), f.key !== void 0 && (S = "" + f.key), f.ref !== void 0 && (N = f.ref);
85
+ for (g in f)
86
+ d.call(f, g) && !y.hasOwnProperty(g) && (C[g] = f[g]);
87
+ if (h && h.defaultProps)
88
+ for (g in f = h.defaultProps, f)
89
+ C[g] === void 0 && (C[g] = f[g]);
90
+ return { $$typeof: s, type: h, key: S, ref: N, props: C, _owner: p.current };
91
91
  }
92
- return q.Fragment = u, q.jsx = k, q.jsxs = k, q;
92
+ return J.Fragment = u, J.jsx = _, J.jsxs = _, J;
93
93
  }
94
- var J = {};
94
+ var G = {};
95
95
  /**
96
96
  * @license React
97
97
  * react-jsx-runtime.development.js
@@ -102,88 +102,88 @@ var J = {};
102
102
  * LICENSE file in the root directory of this source tree.
103
103
  */
104
104
  var We;
105
- function Ot() {
105
+ function Pt() {
106
106
  return We || (We = 1, process.env.NODE_ENV !== "production" && function() {
107
- var n = W, l = Symbol.for("react.element"), u = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), b = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), E = Symbol.iterator, $ = "@@iterator";
108
- function D(e) {
107
+ var a = $, s = Symbol.for("react.element"), u = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), h = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), w = Symbol.iterator, Y = "@@iterator";
108
+ function I(e) {
109
109
  if (e === null || typeof e != "object")
110
110
  return null;
111
- var t = E && e[E] || e[$];
111
+ var t = w && e[w] || e[Y];
112
112
  return typeof t == "function" ? t : null;
113
113
  }
114
- var O = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
115
- function g(e) {
114
+ var O = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
115
+ function x(e) {
116
116
  {
117
- for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
118
- r[a - 1] = arguments[a];
119
- Y("error", e, r);
117
+ for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
118
+ r[n - 1] = arguments[n];
119
+ M("error", e, r);
120
120
  }
121
121
  }
122
- function Y(e, t, r) {
122
+ function M(e, t, r) {
123
123
  {
124
- var a = O.ReactDebugCurrentFrame, s = a.getStackAddendum();
125
- s !== "" && (t += "%s", r = r.concat([s]));
124
+ var n = O.ReactDebugCurrentFrame, l = n.getStackAddendum();
125
+ l !== "" && (t += "%s", r = r.concat([l]));
126
126
  var c = r.map(function(i) {
127
127
  return String(i);
128
128
  });
129
129
  c.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, c);
130
130
  }
131
131
  }
132
- var I = !1, re = !1, A = !1, H = !1, Xe = !1, ve;
133
- ve = Symbol.for("react.module.reference");
134
- function Ze(e) {
135
- return !!(typeof e == "string" || typeof e == "function" || e === f || e === w || Xe || e === h || e === y || e === v || H || e === N || I || re || A || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === T || e.$$typeof === k || e.$$typeof === b || e.$$typeof === d || // This needs to include all possible module reference object
132
+ var A = !1, ae = !1, L = !1, H = !1, Ze = !1, pe;
133
+ pe = Symbol.for("react.module.reference");
134
+ function Qe(e) {
135
+ return !!(typeof e == "string" || typeof e == "function" || e === d || e === y || Ze || e === p || e === k || e === g || H || e === N || A || ae || L || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === C || e.$$typeof === _ || e.$$typeof === h || e.$$typeof === f || // This needs to include all possible module reference object
136
136
  // types supported by any Flight configuration anywhere since
137
137
  // we don't know which Flight build this will end up being used
138
138
  // with.
139
- e.$$typeof === ve || e.getModuleId !== void 0));
139
+ e.$$typeof === pe || e.getModuleId !== void 0));
140
140
  }
141
- function Qe(e, t, r) {
142
- var a = e.displayName;
143
- if (a)
144
- return a;
145
- var s = t.displayName || t.name || "";
146
- return s !== "" ? r + "(" + s + ")" : r;
141
+ function ze(e, t, r) {
142
+ var n = e.displayName;
143
+ if (n)
144
+ return n;
145
+ var l = t.displayName || t.name || "";
146
+ return l !== "" ? r + "(" + l + ")" : r;
147
147
  }
148
- function pe(e) {
148
+ function ve(e) {
149
149
  return e.displayName || "Context";
150
150
  }
151
151
  function P(e) {
152
152
  if (e == null)
153
153
  return null;
154
- if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
154
+ if (typeof e.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
155
155
  return e.displayName || e.name || null;
156
156
  if (typeof e == "string")
157
157
  return e;
158
158
  switch (e) {
159
- case f:
159
+ case d:
160
160
  return "Fragment";
161
161
  case u:
162
162
  return "Portal";
163
- case w:
163
+ case y:
164
164
  return "Profiler";
165
- case h:
165
+ case p:
166
166
  return "StrictMode";
167
- case y:
167
+ case k:
168
168
  return "Suspense";
169
- case v:
169
+ case g:
170
170
  return "SuspenseList";
171
171
  }
172
172
  if (typeof e == "object")
173
173
  switch (e.$$typeof) {
174
- case b:
174
+ case h:
175
175
  var t = e;
176
- return pe(t) + ".Consumer";
177
- case k:
176
+ return ve(t) + ".Consumer";
177
+ case _:
178
178
  var r = e;
179
- return pe(r._context) + ".Provider";
180
- case d:
181
- return Qe(e, e.render, "ForwardRef");
182
- case T:
183
- var a = e.displayName || null;
184
- return a !== null ? a : P(e.type) || "Memo";
179
+ return ve(r._context) + ".Provider";
180
+ case f:
181
+ return ze(e, e.render, "ForwardRef");
182
+ case C:
183
+ var n = e.displayName || null;
184
+ return n !== null ? n : P(e.type) || "Memo";
185
185
  case S: {
186
- var s = e, c = s._payload, i = s._init;
186
+ var l = e, c = l._payload, i = l._init;
187
187
  try {
188
188
  return P(i(c));
189
189
  } catch {
@@ -193,14 +193,14 @@ function Ot() {
193
193
  }
194
194
  return null;
195
195
  }
196
- var F = Object.assign, M = 0, me, ge, xe, he, be, ye, Ee;
196
+ var F = Object.assign, U = 0, be, xe, me, he, ye, ke, Ee;
197
197
  function _e() {
198
198
  }
199
199
  _e.__reactDisabledLog = !0;
200
- function ze() {
200
+ function et() {
201
201
  {
202
- if (M === 0) {
203
- me = console.log, ge = console.info, xe = console.warn, he = console.error, be = console.group, ye = console.groupCollapsed, Ee = console.groupEnd;
202
+ if (U === 0) {
203
+ be = console.log, xe = console.info, me = console.warn, he = console.error, ye = console.group, ke = console.groupCollapsed, Ee = console.groupEnd;
204
204
  var e = {
205
205
  configurable: !0,
206
206
  enumerable: !0,
@@ -217,12 +217,12 @@ function Ot() {
217
217
  groupEnd: e
218
218
  });
219
219
  }
220
- M++;
220
+ U++;
221
221
  }
222
222
  }
223
- function et() {
223
+ function tt() {
224
224
  {
225
- if (M--, M === 0) {
225
+ if (U--, U === 0) {
226
226
  var e = {
227
227
  configurable: !0,
228
228
  enumerable: !0,
@@ -230,64 +230,64 @@ function Ot() {
230
230
  };
231
231
  Object.defineProperties(console, {
232
232
  log: F({}, e, {
233
- value: me
233
+ value: be
234
234
  }),
235
235
  info: F({}, e, {
236
- value: ge
236
+ value: xe
237
237
  }),
238
238
  warn: F({}, e, {
239
- value: xe
239
+ value: me
240
240
  }),
241
241
  error: F({}, e, {
242
242
  value: he
243
243
  }),
244
244
  group: F({}, e, {
245
- value: be
245
+ value: ye
246
246
  }),
247
247
  groupCollapsed: F({}, e, {
248
- value: ye
248
+ value: ke
249
249
  }),
250
250
  groupEnd: F({}, e, {
251
251
  value: Ee
252
252
  })
253
253
  });
254
254
  }
255
- M < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
255
+ U < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
256
256
  }
257
257
  }
258
- var ne = O.ReactCurrentDispatcher, ae;
258
+ var ne = O.ReactCurrentDispatcher, oe;
259
259
  function K(e, t, r) {
260
260
  {
261
- if (ae === void 0)
261
+ if (oe === void 0)
262
262
  try {
263
263
  throw Error();
264
- } catch (s) {
265
- var a = s.stack.trim().match(/\n( *(at )?)/);
266
- ae = a && a[1] || "";
264
+ } catch (l) {
265
+ var n = l.stack.trim().match(/\n( *(at )?)/);
266
+ oe = n && n[1] || "";
267
267
  }
268
268
  return `
269
- ` + ae + e;
269
+ ` + oe + e;
270
270
  }
271
271
  }
272
- var oe = !1, X;
272
+ var ie = !1, X;
273
273
  {
274
- var tt = typeof WeakMap == "function" ? WeakMap : Map;
275
- X = new tt();
274
+ var rt = typeof WeakMap == "function" ? WeakMap : Map;
275
+ X = new rt();
276
276
  }
277
- function ke(e, t) {
278
- if (!e || oe)
277
+ function we(e, t) {
278
+ if (!e || ie)
279
279
  return "";
280
280
  {
281
281
  var r = X.get(e);
282
282
  if (r !== void 0)
283
283
  return r;
284
284
  }
285
- var a;
286
- oe = !0;
287
- var s = Error.prepareStackTrace;
285
+ var n;
286
+ ie = !0;
287
+ var l = Error.prepareStackTrace;
288
288
  Error.prepareStackTrace = void 0;
289
289
  var c;
290
- c = ne.current, ne.current = null, ze();
290
+ c = ne.current, ne.current = null, et();
291
291
  try {
292
292
  if (t) {
293
293
  var i = function() {
@@ -301,14 +301,14 @@ function Ot() {
301
301
  try {
302
302
  Reflect.construct(i, []);
303
303
  } catch (j) {
304
- a = j;
304
+ n = j;
305
305
  }
306
306
  Reflect.construct(e, [], i);
307
307
  } else {
308
308
  try {
309
309
  i.call();
310
310
  } catch (j) {
311
- a = j;
311
+ n = j;
312
312
  }
313
313
  e.call(i.prototype);
314
314
  }
@@ -316,37 +316,37 @@ function Ot() {
316
316
  try {
317
317
  throw Error();
318
318
  } catch (j) {
319
- a = j;
319
+ n = j;
320
320
  }
321
321
  e();
322
322
  }
323
323
  } catch (j) {
324
- if (j && a && typeof j.stack == "string") {
324
+ if (j && n && typeof j.stack == "string") {
325
325
  for (var o = j.stack.split(`
326
- `), _ = a.stack.split(`
327
- `), p = o.length - 1, x = _.length - 1; p >= 1 && x >= 0 && o[p] !== _[x]; )
328
- x--;
329
- for (; p >= 1 && x >= 0; p--, x--)
330
- if (o[p] !== _[x]) {
331
- if (p !== 1 || x !== 1)
326
+ `), R = n.stack.split(`
327
+ `), b = o.length - 1, m = R.length - 1; b >= 1 && m >= 0 && o[b] !== R[m]; )
328
+ m--;
329
+ for (; b >= 1 && m >= 0; b--, m--)
330
+ if (o[b] !== R[m]) {
331
+ if (b !== 1 || m !== 1)
332
332
  do
333
- if (p--, x--, x < 0 || o[p] !== _[x]) {
334
- var C = `
335
- ` + o[p].replace(" at new ", " at ");
336
- return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, C), C;
333
+ if (b--, m--, m < 0 || o[b] !== R[m]) {
334
+ var T = `
335
+ ` + o[b].replace(" at new ", " at ");
336
+ return e.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, T), T;
337
337
  }
338
- while (p >= 1 && x >= 0);
338
+ while (b >= 1 && m >= 0);
339
339
  break;
340
340
  }
341
341
  }
342
342
  } finally {
343
- oe = !1, ne.current = c, et(), Error.prepareStackTrace = s;
343
+ ie = !1, ne.current = c, tt(), Error.prepareStackTrace = l;
344
344
  }
345
- var V = e ? e.displayName || e.name : "", Ae = V ? K(V) : "";
346
- return typeof e == "function" && X.set(e, Ae), Ae;
345
+ var V = e ? e.displayName || e.name : "", Le = V ? K(V) : "";
346
+ return typeof e == "function" && X.set(e, Le), Le;
347
347
  }
348
- function rt(e, t, r) {
349
- return ke(e, !1);
348
+ function at(e, t, r) {
349
+ return we(e, !1);
350
350
  }
351
351
  function nt(e) {
352
352
  var t = e.prototype;
@@ -356,40 +356,40 @@ function Ot() {
356
356
  if (e == null)
357
357
  return "";
358
358
  if (typeof e == "function")
359
- return ke(e, nt(e));
359
+ return we(e, nt(e));
360
360
  if (typeof e == "string")
361
361
  return K(e);
362
362
  switch (e) {
363
- case y:
363
+ case k:
364
364
  return K("Suspense");
365
- case v:
365
+ case g:
366
366
  return K("SuspenseList");
367
367
  }
368
368
  if (typeof e == "object")
369
369
  switch (e.$$typeof) {
370
- case d:
371
- return rt(e.render);
372
- case T:
370
+ case f:
371
+ return at(e.render);
372
+ case C:
373
373
  return Z(e.type, t, r);
374
374
  case S: {
375
- var a = e, s = a._payload, c = a._init;
375
+ var n = e, l = n._payload, c = n._init;
376
376
  try {
377
- return Z(c(s), t, r);
377
+ return Z(c(l), t, r);
378
378
  } catch {
379
379
  }
380
380
  }
381
381
  }
382
382
  return "";
383
383
  }
384
- var Q = Object.prototype.hasOwnProperty, Re = {}, we = O.ReactDebugCurrentFrame;
384
+ var Q = Object.prototype.hasOwnProperty, Re = {}, Ce = O.ReactDebugCurrentFrame;
385
385
  function z(e) {
386
386
  if (e) {
387
387
  var t = e._owner, r = Z(e.type, e._source, t ? t.type : null);
388
- we.setExtraStackFrame(r);
388
+ Ce.setExtraStackFrame(r);
389
389
  } else
390
- we.setExtraStackFrame(null);
390
+ Ce.setExtraStackFrame(null);
391
391
  }
392
- function at(e, t, r, a, s) {
392
+ function ot(e, t, r, n, l) {
393
393
  {
394
394
  var c = Function.call.bind(Q);
395
395
  for (var i in e)
@@ -397,28 +397,28 @@ function Ot() {
397
397
  var o = void 0;
398
398
  try {
399
399
  if (typeof e[i] != "function") {
400
- var _ = Error((a || "React class") + ": " + r + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
401
- throw _.name = "Invariant Violation", _;
400
+ var R = Error((n || "React class") + ": " + r + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
401
+ throw R.name = "Invariant Violation", R;
402
402
  }
403
- o = e[i](t, i, a, r, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
404
- } catch (p) {
405
- o = p;
403
+ o = e[i](t, i, n, r, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
404
+ } catch (b) {
405
+ o = b;
406
406
  }
407
- o && !(o instanceof Error) && (z(s), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", r, i, typeof o), z(null)), o instanceof Error && !(o.message in Re) && (Re[o.message] = !0, z(s), g("Failed %s type: %s", r, o.message), z(null));
407
+ o && !(o instanceof Error) && (z(l), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", r, i, typeof o), z(null)), o instanceof Error && !(o.message in Re) && (Re[o.message] = !0, z(l), x("Failed %s type: %s", r, o.message), z(null));
408
408
  }
409
409
  }
410
410
  }
411
- var ot = Array.isArray;
412
- function ie(e) {
413
- return ot(e);
411
+ var it = Array.isArray;
412
+ function se(e) {
413
+ return it(e);
414
414
  }
415
- function it(e) {
415
+ function st(e) {
416
416
  {
417
417
  var t = typeof Symbol == "function" && Symbol.toStringTag, r = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
418
418
  return r;
419
419
  }
420
420
  }
421
- function st(e) {
421
+ function lt(e) {
422
422
  try {
423
423
  return Te(e), !1;
424
424
  } catch {
@@ -428,18 +428,18 @@ function Ot() {
428
428
  function Te(e) {
429
429
  return "" + e;
430
430
  }
431
- function Ce(e) {
432
- if (st(e))
433
- return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", it(e)), Te(e);
431
+ function Se(e) {
432
+ if (lt(e))
433
+ return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", st(e)), Te(e);
434
434
  }
435
- var U = O.ReactCurrentOwner, lt = {
435
+ var q = O.ReactCurrentOwner, ut = {
436
436
  key: !0,
437
437
  ref: !0,
438
438
  __self: !0,
439
439
  __source: !0
440
- }, Se, Oe, se;
441
- se = {};
442
- function ut(e) {
440
+ }, Oe, Pe, le;
441
+ le = {};
442
+ function dt(e) {
443
443
  if (Q.call(e, "ref")) {
444
444
  var t = Object.getOwnPropertyDescriptor(e, "ref").get;
445
445
  if (t && t.isReactWarning)
@@ -456,15 +456,15 @@ function Ot() {
456
456
  return e.key !== void 0;
457
457
  }
458
458
  function ft(e, t) {
459
- if (typeof e.ref == "string" && U.current && t && U.current.stateNode !== t) {
460
- var r = P(U.current.type);
461
- se[r] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', P(U.current.type), e.ref), se[r] = !0);
459
+ if (typeof e.ref == "string" && q.current && t && q.current.stateNode !== t) {
460
+ var r = P(q.current.type);
461
+ le[r] || (x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', P(q.current.type), e.ref), le[r] = !0);
462
462
  }
463
463
  }
464
- function dt(e, t) {
464
+ function gt(e, t) {
465
465
  {
466
466
  var r = function() {
467
- Se || (Se = !0, g("%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://reactjs.org/link/special-props)", t));
467
+ Oe || (Oe = !0, x("%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://reactjs.org/link/special-props)", t));
468
468
  };
469
469
  r.isReactWarning = !0, Object.defineProperty(e, "key", {
470
470
  get: r,
@@ -472,10 +472,10 @@ function Ot() {
472
472
  });
473
473
  }
474
474
  }
475
- function vt(e, t) {
475
+ function pt(e, t) {
476
476
  {
477
477
  var r = function() {
478
- Oe || (Oe = !0, g("%s: `ref` 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://reactjs.org/link/special-props)", t));
478
+ Pe || (Pe = !0, x("%s: `ref` 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://reactjs.org/link/special-props)", t));
479
479
  };
480
480
  r.isReactWarning = !0, Object.defineProperty(e, "ref", {
481
481
  get: r,
@@ -483,10 +483,10 @@ function Ot() {
483
483
  });
484
484
  }
485
485
  }
486
- var pt = function(e, t, r, a, s, c, i) {
486
+ var vt = function(e, t, r, n, l, c, i) {
487
487
  var o = {
488
488
  // This tag allows us to uniquely identify this as a React Element
489
- $$typeof: l,
489
+ $$typeof: s,
490
490
  // Built-in properties that belong on the element
491
491
  type: e,
492
492
  key: t,
@@ -504,49 +504,49 @@ function Ot() {
504
504
  configurable: !1,
505
505
  enumerable: !1,
506
506
  writable: !1,
507
- value: a
507
+ value: n
508
508
  }), Object.defineProperty(o, "_source", {
509
509
  configurable: !1,
510
510
  enumerable: !1,
511
511
  writable: !1,
512
- value: s
512
+ value: l
513
513
  }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
514
514
  };
515
- function mt(e, t, r, a, s) {
515
+ function bt(e, t, r, n, l) {
516
516
  {
517
- var c, i = {}, o = null, _ = null;
518
- r !== void 0 && (Ce(r), o = "" + r), ct(t) && (Ce(t.key), o = "" + t.key), ut(t) && (_ = t.ref, ft(t, s));
517
+ var c, i = {}, o = null, R = null;
518
+ r !== void 0 && (Se(r), o = "" + r), ct(t) && (Se(t.key), o = "" + t.key), dt(t) && (R = t.ref, ft(t, l));
519
519
  for (c in t)
520
- Q.call(t, c) && !lt.hasOwnProperty(c) && (i[c] = t[c]);
520
+ Q.call(t, c) && !ut.hasOwnProperty(c) && (i[c] = t[c]);
521
521
  if (e && e.defaultProps) {
522
- var p = e.defaultProps;
523
- for (c in p)
524
- i[c] === void 0 && (i[c] = p[c]);
522
+ var b = e.defaultProps;
523
+ for (c in b)
524
+ i[c] === void 0 && (i[c] = b[c]);
525
525
  }
526
- if (o || _) {
527
- var x = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
528
- o && dt(i, x), _ && vt(i, x);
526
+ if (o || R) {
527
+ var m = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
528
+ o && gt(i, m), R && pt(i, m);
529
529
  }
530
- return pt(e, o, _, s, a, U.current, i);
530
+ return vt(e, o, R, l, n, q.current, i);
531
531
  }
532
532
  }
533
- var le = O.ReactCurrentOwner, Pe = O.ReactDebugCurrentFrame;
534
- function L(e) {
533
+ var ue = O.ReactCurrentOwner, je = O.ReactDebugCurrentFrame;
534
+ function B(e) {
535
535
  if (e) {
536
536
  var t = e._owner, r = Z(e.type, e._source, t ? t.type : null);
537
- Pe.setExtraStackFrame(r);
537
+ je.setExtraStackFrame(r);
538
538
  } else
539
- Pe.setExtraStackFrame(null);
539
+ je.setExtraStackFrame(null);
540
540
  }
541
- var ue;
542
- ue = !1;
541
+ var de;
542
+ de = !1;
543
543
  function ce(e) {
544
- return typeof e == "object" && e !== null && e.$$typeof === l;
544
+ return typeof e == "object" && e !== null && e.$$typeof === s;
545
545
  }
546
- function je() {
546
+ function Ne() {
547
547
  {
548
- if (le.current) {
549
- var e = P(le.current.type);
548
+ if (ue.current) {
549
+ var e = P(ue.current.type);
550
550
  if (e)
551
551
  return `
552
552
 
@@ -555,7 +555,7 @@ Check the render method of \`` + e + "`.";
555
555
  return "";
556
556
  }
557
557
  }
558
- function gt(e) {
558
+ function xt(e) {
559
559
  {
560
560
  if (e !== void 0) {
561
561
  var t = e.fileName.replace(/^.*[\\\/]/, ""), r = e.lineNumber;
@@ -566,10 +566,10 @@ Check your code at ` + t + ":" + r + ".";
566
566
  return "";
567
567
  }
568
568
  }
569
- var Ne = {};
570
- function xt(e) {
569
+ var Fe = {};
570
+ function mt(e) {
571
571
  {
572
- var t = je();
572
+ var t = Ne();
573
573
  if (!t) {
574
574
  var r = typeof e == "string" ? e : e.displayName || e.name;
575
575
  r && (t = `
@@ -579,35 +579,35 @@ Check the top-level render call using <` + r + ">.");
579
579
  return t;
580
580
  }
581
581
  }
582
- function Fe(e, t) {
582
+ function De(e, t) {
583
583
  {
584
584
  if (!e._store || e._store.validated || e.key != null)
585
585
  return;
586
586
  e._store.validated = !0;
587
- var r = xt(t);
588
- if (Ne[r])
587
+ var r = mt(t);
588
+ if (Fe[r])
589
589
  return;
590
- Ne[r] = !0;
591
- var a = "";
592
- e && e._owner && e._owner !== le.current && (a = " It was passed a child from " + P(e._owner.type) + "."), L(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', r, a), L(null);
590
+ Fe[r] = !0;
591
+ var n = "";
592
+ e && e._owner && e._owner !== ue.current && (n = " It was passed a child from " + P(e._owner.type) + "."), B(e), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', r, n), B(null);
593
593
  }
594
594
  }
595
- function De(e, t) {
595
+ function Ie(e, t) {
596
596
  {
597
597
  if (typeof e != "object")
598
598
  return;
599
- if (ie(e))
599
+ if (se(e))
600
600
  for (var r = 0; r < e.length; r++) {
601
- var a = e[r];
602
- ce(a) && Fe(a, t);
601
+ var n = e[r];
602
+ ce(n) && De(n, t);
603
603
  }
604
604
  else if (ce(e))
605
605
  e._store && (e._store.validated = !0);
606
606
  else if (e) {
607
- var s = D(e);
608
- if (typeof s == "function" && s !== e.entries)
609
- for (var c = s.call(e), i; !(i = c.next()).done; )
610
- ce(i.value) && Fe(i.value, t);
607
+ var l = I(e);
608
+ if (typeof l == "function" && l !== e.entries)
609
+ for (var c = l.call(e), i; !(i = c.next()).done; )
610
+ ce(i.value) && De(i.value, t);
611
611
  }
612
612
  }
613
613
  }
@@ -619,227 +619,268 @@ Check the top-level render call using <` + r + ">.");
619
619
  var r;
620
620
  if (typeof t == "function")
621
621
  r = t.propTypes;
622
- else if (typeof t == "object" && (t.$$typeof === d || // Note: Memo only checks outer props here.
622
+ else if (typeof t == "object" && (t.$$typeof === f || // Note: Memo only checks outer props here.
623
623
  // Inner props are checked in the reconciler.
624
- t.$$typeof === T))
624
+ t.$$typeof === C))
625
625
  r = t.propTypes;
626
626
  else
627
627
  return;
628
628
  if (r) {
629
- var a = P(t);
630
- at(r, e.props, "prop", a, e);
631
- } else if (t.PropTypes !== void 0 && !ue) {
632
- ue = !0;
633
- var s = P(t);
634
- g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
629
+ var n = P(t);
630
+ ot(r, e.props, "prop", n, e);
631
+ } else if (t.PropTypes !== void 0 && !de) {
632
+ de = !0;
633
+ var l = P(t);
634
+ x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", l || "Unknown");
635
635
  }
636
- typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
636
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
637
637
  }
638
638
  }
639
- function bt(e) {
639
+ function yt(e) {
640
640
  {
641
641
  for (var t = Object.keys(e.props), r = 0; r < t.length; r++) {
642
- var a = t[r];
643
- if (a !== "children" && a !== "key") {
644
- L(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), L(null);
642
+ var n = t[r];
643
+ if (n !== "children" && n !== "key") {
644
+ B(e), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), B(null);
645
645
  break;
646
646
  }
647
647
  }
648
- e.ref !== null && (L(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), L(null));
648
+ e.ref !== null && (B(e), x("Invalid attribute `ref` supplied to `React.Fragment`."), B(null));
649
649
  }
650
650
  }
651
- function Ie(e, t, r, a, s, c) {
651
+ function Ae(e, t, r, n, l, c) {
652
652
  {
653
- var i = Ze(e);
653
+ var i = Qe(e);
654
654
  if (!i) {
655
655
  var o = "";
656
656
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
657
- var _ = gt(s);
658
- _ ? o += _ : o += je();
659
- var p;
660
- e === null ? p = "null" : ie(e) ? p = "array" : e !== void 0 && e.$$typeof === l ? (p = "<" + (P(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : p = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", p, o);
657
+ var R = xt(l);
658
+ R ? o += R : o += Ne();
659
+ var b;
660
+ e === null ? b = "null" : se(e) ? b = "array" : e !== void 0 && e.$$typeof === s ? (b = "<" + (P(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, o);
661
661
  }
662
- var x = mt(e, t, r, s, c);
663
- if (x == null)
664
- return x;
662
+ var m = bt(e, t, r, l, c);
663
+ if (m == null)
664
+ return m;
665
665
  if (i) {
666
- var C = t.children;
667
- if (C !== void 0)
668
- if (a)
669
- if (ie(C)) {
670
- for (var V = 0; V < C.length; V++)
671
- De(C[V], e);
672
- Object.freeze && Object.freeze(C);
666
+ var T = t.children;
667
+ if (T !== void 0)
668
+ if (n)
669
+ if (se(T)) {
670
+ for (var V = 0; V < T.length; V++)
671
+ Ie(T[V], e);
672
+ Object.freeze && Object.freeze(T);
673
673
  } else
674
- g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
674
+ x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
675
675
  else
676
- De(C, e);
676
+ Ie(T, e);
677
677
  }
678
- return e === f ? bt(x) : ht(x), x;
678
+ return e === d ? yt(m) : ht(m), m;
679
679
  }
680
680
  }
681
- function yt(e, t, r) {
682
- return Ie(e, t, r, !0);
681
+ function kt(e, t, r) {
682
+ return Ae(e, t, r, !0);
683
683
  }
684
684
  function Et(e, t, r) {
685
- return Ie(e, t, r, !1);
685
+ return Ae(e, t, r, !1);
686
686
  }
687
- var _t = Et, kt = yt;
688
- J.Fragment = f, J.jsx = _t, J.jsxs = kt;
689
- }()), J;
687
+ var _t = Et, wt = kt;
688
+ G.Fragment = d, G.jsx = _t, G.jsxs = wt;
689
+ }()), G;
690
690
  }
691
- (function(n) {
692
- process.env.NODE_ENV === "production" ? n.exports = St() : n.exports = Ot();
693
- })(Ct);
694
- const R = te.jsx, G = te.jsxs, Pt = ({ children: n, className: l, disabled: u, ...f }, h) => /* @__PURE__ */ R(
691
+ (function(a) {
692
+ process.env.NODE_ENV === "production" ? a.exports = Ot() : a.exports = Pt();
693
+ })(St);
694
+ const E = re.jsx, W = re.jsxs, jt = {
695
+ lg: "rounded-4 text-19 px-4 py-2",
696
+ md: "rounded-3 text-xs px-3 py-1.5",
697
+ sm: "rounded-3 text-13 px-3 py-1.5",
698
+ xl: "rounded-4 text-23 px-4 py-2",
699
+ xs: "rounded-3 text-11 px-2 py-1"
700
+ }, $e = {
701
+ lg: 30,
702
+ md: 24,
703
+ sm: 18,
704
+ xl: 36,
705
+ xs: 12
706
+ }, Nt = {
707
+ // bgColor, outlineColor, disabled, fontColor, hover, pressed, disabled, textTransform
708
+ all_caps: "bg-transparent text-gray-50 dark:text-white hover:text-info-light dark:hover:text-info-dark active:text-blue-40 dark:active:text-blue-20 disabled:opacity-50 disabled:text-gray-50 dark:disabled:text-white uppercase",
709
+ borderless: "bg-transparent text-gray-50 dark:text-white hover:bg-gray-10 dark:hover:bg-gray-40 disabled:opacity-50 dark:disabled:bg-transparent",
710
+ brand: "bg-yv-red dark:bg-yv-red-dark text-white disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white",
711
+ primary: "bg-gray-50 dark:bg-gray-10 text-white dark:text-gray-50 hover:bg-gray-40 active:bg-gray-50 disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white",
712
+ risk: "bg-orange-30 dark:bg-alert-dark text-white disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white",
713
+ secondary: "bg-gray-10 dark:bg-gray-40 text-gray-50 dark:text-white hover:bg-gray-40 dark:hover:bg-gray-10 hover:text-white dark:hover:text-gray-50 active:bg-gray-50 disabled:opacity-50 disabled:bg-gray-10 disabled:text-gray-50",
714
+ stroked: "bg-transparent outline outline-2 outline-gray-50 dark:outline-white text-gray-50 dark:text-white hover:bg-gray-40 dark:hover:bg-gray-10 hover:text-white dark:hover:text-gray-50 active:bg-gray-50 disabled:opacity-50 disabled:bg-transparent dark:disabled:bg-transparent disabled:text-gray-50 dark:disabled:text-white"
715
+ }, Ft = ({ className: a, children: s, disabled: u, icon: d, iconPosition: p, variant: y = "md", theme: _ = "primary", ...h }, f) => {
716
+ const k = v(
717
+ "items-center leading-default font-bold ease-in-out duration-100 focus:outline-2 focus:outline-info-light dark:focus:outline-info-dark flex w-full max-w-fit",
718
+ jt[y],
719
+ Nt[_],
720
+ a
721
+ );
722
+ return /* @__PURE__ */ W("button", { ...h, className: k, disabled: u, ref: f, children: [
723
+ /* @__PURE__ */ E("span", { children: p === "start" && d !== void 0 && te(d, {
724
+ className: "mr-0.5",
725
+ size: $e[y]
726
+ }) }),
727
+ /* @__PURE__ */ E("span", { className: "truncate", children: s }),
728
+ /* @__PURE__ */ E("span", { children: p === "end" && d !== void 0 && te(d, {
729
+ className: "ml-0.5",
730
+ size: $e[y]
731
+ }) })
732
+ ] });
733
+ }, Dt = D(Ft);
734
+ Dt.displayName = "Button";
735
+ const It = ({ children: a, className: s, disabled: u, ...d }, p) => /* @__PURE__ */ E(
695
736
  "button",
696
737
  {
697
- className: m([
738
+ className: v([
698
739
  "rounded-full hover:bg-gray-10 dark:hover:bg-gray-40 text-text-light dark:text-white inline-flex justify-center items-center p-1 focus-visible:outline-2 focus-visible:outline focus-visible:outline-info dark:focus-visible:outline-info-dark outline-offset-0 disabled:text-text-muted-light dark:disabled:text-text-muted-dark",
699
- l
740
+ s
700
741
  ]),
701
742
  disabled: u,
702
- ref: h,
703
- ...f,
704
- children: n
743
+ ref: p,
744
+ ...d,
745
+ children: a
705
746
  }
706
- ), jt = B(Pt);
707
- jt.displayName = "IconButton";
708
- const Nt = ({ className: n, children: l, component: u = "a", ...f }, h) => Ge(
747
+ ), At = D(It);
748
+ At.displayName = "IconButton";
749
+ const Lt = ({ className: a, children: s, component: u = "a", ...d }, p) => te(
709
750
  u,
710
751
  {
711
- ...f,
712
- className: m([
752
+ ...d,
753
+ className: v([
713
754
  "rounded-full hover:bg-gray-10 dark:hover:bg-gray-40 text-text-light dark:text-white inline-flex justify-center items-center p-1 focus-visible:outline-2 focus-visible:outline focus-visible:outline-info dark:focus-visible:outline-info-dark outline-offset-0",
714
- n
755
+ a
715
756
  ]),
716
- ref: h
757
+ ref: p
717
758
  },
718
- l
719
- ), Ft = B(Nt);
720
- Ft.displayName = "IconLinkButton";
721
- const Dt = ({ innerRef: n, forwardedRef: l }) => (Rt(() => {
722
- [n, l].forEach((u) => {
723
- u && (typeof u == "function" ? u(n.current || null) : u.current = n.current || null);
759
+ s
760
+ ), Bt = D(Lt);
761
+ Bt.displayName = "IconLinkButton";
762
+ const Vt = ({ innerRef: a, forwardedRef: s }) => (Rt(() => {
763
+ [a, s].forEach((u) => {
764
+ u && (typeof u == "function" ? u(a.current || null) : u.current = a.current || null);
724
765
  });
725
- }, [n, l]), n), It = ({
726
- className: n,
727
- disabled: l,
766
+ }, [a, s]), a), Wt = ({
767
+ className: a,
768
+ disabled: s,
728
769
  endIcon: u,
729
- error: f,
730
- hint: h,
731
- label: w,
732
- name: k,
733
- onChange: b,
734
- placeholder: d,
735
- startIcon: y,
736
- value: v,
737
- ...T
770
+ error: d,
771
+ hint: p,
772
+ label: y,
773
+ name: _,
774
+ onChange: h,
775
+ placeholder: f,
776
+ startIcon: k,
777
+ value: g,
778
+ ...C
738
779
  }, S) => {
739
- const N = wt(null), E = Dt({ forwardedRef: S, innerRef: N }), [$, D] = W.useState(Boolean(v)), [O, g] = W.useState(!1);
740
- W.useEffect(() => {
741
- var A;
742
- D(Boolean((A = E == null ? void 0 : E.current) == null ? void 0 : A.value) || Boolean(v || d));
743
- }, [v, d, E]);
744
- const Y = (A) => {
780
+ const N = Ct(null), w = Vt({ forwardedRef: S, innerRef: N }), [Y, I] = $.useState(Boolean(g)), [O, x] = $.useState(!1);
781
+ $.useEffect(() => {
782
+ var L;
783
+ I(Boolean((L = w == null ? void 0 : w.current) == null ? void 0 : L.value) || Boolean(g || f));
784
+ }, [g, f, w]);
785
+ const M = (L) => {
745
786
  var H;
746
- D(Boolean((H = E == null ? void 0 : E.current) == null ? void 0 : H.value) || Boolean(v || d)), b && b(A);
747
- }, I = () => {
748
- l || !E.current || (E.current.focus(), g(!0));
749
- }, re = () => {
750
- g(!1);
787
+ I(Boolean((H = w == null ? void 0 : w.current) == null ? void 0 : H.value) || Boolean(g || f)), h && h(L);
788
+ }, A = () => {
789
+ s || !w.current || (w.current.focus(), x(!0));
790
+ }, ae = () => {
791
+ x(!1);
751
792
  };
752
- return /* @__PURE__ */ G("div", { className: "flex items-start flex-col gap-0.5", children: [
753
- /* @__PURE__ */ G(
793
+ return /* @__PURE__ */ W("div", { className: "flex items-start flex-col gap-0.5", children: [
794
+ /* @__PURE__ */ W(
754
795
  "div",
755
796
  {
756
- className: m([
797
+ className: v([
757
798
  "items-center self-stretch rounded-1 border-small border-solid cursor-text flex flex-row relative focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",
758
- l ? "bg-gray-10 dark:bg-gray-40" : null,
759
- f ? "border-alert dark:border-alert-dark" : "border-tertiary-light dark:border-tertiary-dark"
799
+ s ? "bg-gray-10 dark:bg-gray-40" : null,
800
+ d ? "border-alert dark:border-alert-dark" : "border-tertiary-light dark:border-tertiary-dark"
760
801
  ]),
761
- onClick: I,
762
- onFocus: I,
802
+ onClick: A,
803
+ onFocus: A,
763
804
  children: [
764
- y ? /* @__PURE__ */ R("div", { className: "text-text-muted-light dark:text-text-muted-dark pis-1.5", children: y }) : null,
765
- /* @__PURE__ */ G("span", { className: "relative flex flex-1 overflow-hidden", children: [
766
- /* @__PURE__ */ R(
805
+ k ? /* @__PURE__ */ E("div", { className: "text-text-muted-light dark:text-text-muted-dark pis-1.5", children: k }) : null,
806
+ /* @__PURE__ */ W("span", { className: "relative flex flex-1 overflow-hidden", children: [
807
+ /* @__PURE__ */ E(
767
808
  "input",
768
809
  {
769
- className: m([
810
+ className: v([
770
811
  "self-stretch bg-transparent flex-auto outline-none overflow-hidden pbs-3 pbe-1",
771
- y ? "pis-1" : "pis-2",
812
+ k ? "pis-1" : "pis-2",
772
813
  u ? "pie-1" : "pie-2",
773
- n
814
+ a
774
815
  ]),
775
- disabled: l,
776
- id: k,
777
- onBlur: re,
778
- onChange: Y,
779
- placeholder: d,
780
- ref: E,
781
- value: v,
782
- ...T
816
+ disabled: s,
817
+ id: _,
818
+ onBlur: ae,
819
+ onChange: M,
820
+ placeholder: f,
821
+ ref: w,
822
+ value: g,
823
+ ...C
783
824
  }
784
825
  ),
785
- /* @__PURE__ */ R(
826
+ /* @__PURE__ */ E(
786
827
  "label",
787
828
  {
788
- className: m(
829
+ className: v(
789
830
  "items-center text-text-muted-light dark:text-text-muted-dark flex font-regular leading-loose pointer-events-none absolute top-2 select-none",
790
- y ? "left-1 rtl:right-1" : "left-2 rtl:right-2",
791
- O || $ ? "text-13 -translate-y-1.5" : "text-16"
831
+ k ? "left-1 rtl:right-1" : "left-2 rtl:right-2",
832
+ O || Y ? "text-13 -translate-y-1.5" : "text-16"
792
833
  ),
793
- htmlFor: k,
794
- children: w
834
+ htmlFor: _,
835
+ children: y
795
836
  }
796
837
  )
797
838
  ] }),
798
- u ? /* @__PURE__ */ R("div", { className: "text-text-muted-light dark:text-text-muted-dark pie-1.5", children: u }) : null
839
+ u ? /* @__PURE__ */ E("div", { className: "text-text-muted-light dark:text-text-muted-dark pie-1.5", children: u }) : null
799
840
  ]
800
841
  }
801
842
  ),
802
- f || h ? /* @__PURE__ */ G("div", { className: "flex flex-col", children: [
803
- f ? /* @__PURE__ */ R("span", { className: "text-alert dark:text-alert-dark", children: f }) : null,
804
- h ? /* @__PURE__ */ R("span", { className: "text-text-muted-light dark:text-text-muted-dark text-13 leading-default", children: h }) : null
843
+ d || p ? /* @__PURE__ */ W("div", { className: "flex flex-col", children: [
844
+ d ? /* @__PURE__ */ E("span", { className: "text-alert dark:text-alert-dark", children: d }) : null,
845
+ p ? /* @__PURE__ */ E("span", { className: "text-text-muted-light dark:text-text-muted-dark text-13 leading-default", children: p }) : null
805
846
  ] }) : null
806
847
  ] });
807
- }, At = W.forwardRef(It);
808
- At.displayName = "Input";
809
- const Lt = ({ children: n, className: l, ...u }, f) => /* @__PURE__ */ R(
848
+ }, $t = $.forwardRef(Wt);
849
+ $t.displayName = "Input";
850
+ const Yt = ({ children: a, className: s, ...u }, d) => /* @__PURE__ */ E(
810
851
  "ul",
811
852
  {
812
- className: m([
853
+ className: v([
813
854
  "w-fit bg-canvas-light dark:bg-canvas-dark shadow-light-8 dark:shadow-dark-8 rounded-1 py-0.5",
814
- l
855
+ s
815
856
  ]),
816
- ref: f,
857
+ ref: d,
817
858
  ...u,
818
- children: n
859
+ children: a
819
860
  }
820
- ), Vt = B(Lt);
821
- Vt.displayName = "List";
822
- const Wt = ({ children: n, className: l, divider: u, endIcon: f, onClick: h, startIcon: w, ...k }, b) => /* @__PURE__ */ G(
861
+ ), Mt = D(Yt);
862
+ Mt.displayName = "List";
863
+ const Ut = ({ children: a, className: s, divider: u, endIcon: d, onClick: p, startIcon: y, ..._ }, h) => /* @__PURE__ */ W(
823
864
  "li",
824
865
  {
825
- className: m([
866
+ className: v([
826
867
  "flex items-center gap-x-2 px-2 py-2 box-border relative",
827
868
  u ? "after:last:content-none after:absolute after:inset-x-0 after:bottom-0 after:mx-2 after:bg-gray-10 after:dark:bg-gray-40 after:h-px" : null,
828
- h ? "cursor-pointer hover:bg-gray-10 hover:dark:bg-gray-40" : null,
829
- l
869
+ p ? "cursor-pointer hover:bg-gray-10 hover:dark:bg-gray-40" : null,
870
+ s
830
871
  ]),
831
- onClick: h,
832
- ref: b,
833
- ...k,
872
+ onClick: p,
873
+ ref: h,
874
+ ..._,
834
875
  children: [
835
- w ? /* @__PURE__ */ R("div", { children: w }) : null,
836
- n,
837
- f ? /* @__PURE__ */ R("div", { children: f }) : null
876
+ y ? /* @__PURE__ */ E("div", { children: y }) : null,
877
+ a,
878
+ d ? /* @__PURE__ */ E("div", { children: d }) : null
838
879
  ]
839
880
  }
840
- ), Bt = B(Wt);
841
- Bt.displayName = "ListItem";
842
- const Be = {
881
+ ), qt = D(Ut);
882
+ qt.displayName = "ListItem";
883
+ const Ye = {
843
884
  base: "font-bold",
844
885
  xs: "text-16 md:text-19 leading-default",
845
886
  sm: "text-19 md:text-23 leading-default md:leading-comfy",
@@ -855,86 +896,90 @@ const Be = {
855
896
  md: "text-16",
856
897
  lg: "text-19",
857
898
  xl: "text-23 md:text-28 tracking-tight"
858
- }, de = {
899
+ }, ge = {
859
900
  ...ee,
860
901
  base: "font-regular leading-loose",
861
902
  xl: "text-23 md:text-28"
862
- }, $e = {
903
+ }, Me = {
863
904
  base: "font-medium leading-default tracking-wider uppercase text-text-muted-light dark:text-text-muted-dark",
864
905
  xs: "text-11",
865
906
  sm: "text-13",
866
907
  md: "text-16",
867
908
  lg: "text-19",
868
909
  xl: "text-23"
869
- }, Ye = {
910
+ }, Ue = {
870
911
  base: "font-regular leading-default text-text-muted-light dark:text-text-muted-dark",
871
912
  sm: "text-11",
872
913
  md: "text-13",
873
914
  lg: "text-16"
874
- }, Me = {
915
+ }, qe = {
875
916
  base: "font-bold leading-default",
876
917
  xs: "text-11",
877
918
  sm: "text-13",
878
919
  md: "text-16",
879
920
  lg: "text-19"
880
- }, Ue = {
921
+ }, Je = {
881
922
  base: "font-medium leading-default text-text-muted-light dark:text-text-muted-dark",
882
923
  sm: "text-11",
883
924
  md: "text-13",
884
925
  lg: "text-16"
885
- }, qe = {
926
+ }, Ge = {
886
927
  base: "font-regular leading-loose",
887
928
  md: "text-16",
888
929
  lg: "text-19"
889
- }, $t = ({ size: n, variant: l }) => {
890
- switch (l) {
930
+ }, Jt = ({ size: a, variant: s }) => {
931
+ switch (s) {
891
932
  case "headline":
892
- return m(Be.base, Be[n]);
933
+ return v(Ye.base, Ye[a]);
893
934
  case "label":
894
- return m(ee.base, n ? ee[n] : ee.default);
935
+ return v(ee.base, a ? ee[a] : ee.default);
895
936
  case "paragraph":
896
- return m(de.base, n ? de[n] : de.default);
937
+ return v(ge.base, a ? ge[a] : ge.default);
897
938
  case "eyebrow":
898
- return m($e.base, $e[n]);
939
+ return v(Me.base, Me[a]);
899
940
  case "caption":
900
- return m(Ye.base, Ye[n]);
941
+ return v(Ue.base, Ue[a]);
901
942
  case "buttonLabel":
902
- return m(Me.base, Me[n]);
943
+ return v(qe.base, qe[a]);
903
944
  case "fieldLabel":
904
- return m(Ue.base, Ue[n]);
945
+ return v(Je.base, Je[a]);
905
946
  case "fieldTextInput":
906
- return m(qe.base, qe[n]);
947
+ return v(Ge.base, Ge[a]);
907
948
  default:
908
- return n;
949
+ return a;
909
950
  }
910
- }, Yt = {
951
+ }, Gt = {
911
952
  primary: "font-aktiv-grotesk",
912
953
  secondary: "font-untitled-serif"
913
- }, Mt = ({ className: n, component: l = "p", children: u, font: f = "primary", size: h, variant: w, ...k }, b) => {
914
- const d = "text-text-light dark:text-text-dark", y = Yt[f], v = $t({ size: h, variant: w });
915
- return /* @__PURE__ */ R(
916
- He,
954
+ }, Ht = ({ className: a, component: s = "p", children: u, font: d = "primary", size: p, variant: y, ..._ }, h) => {
955
+ const f = "text-text-light dark:text-text-dark", k = Gt[d], g = Jt({ size: p, variant: y });
956
+ return /* @__PURE__ */ E(
957
+ Ke,
917
958
  {
918
- className: m(d, v, y, n),
919
- component: l,
920
- ref: b,
921
- ...k,
959
+ className: v(f, g, k, a),
960
+ component: s,
961
+ ref: h,
962
+ ..._,
922
963
  children: u
923
964
  }
924
965
  );
925
- }, Ke = B(Mt);
926
- Ke.displayName = "Text";
927
- const Ht = ({ children: n, className: l, size: u = "sm" }) => /* @__PURE__ */ R(Ke, { className: m(["flex-grow", l]), size: u, variant: "label", children: n }), Ut = "_tooltipWrapper_qu88w_1", qt = "_tooltipContent_qu88w_18", Je = {
928
- tooltipWrapper: Ut,
929
- tooltipContent: qt
930
- }, Kt = ({ content: n, className: l, ...u }) => /* @__PURE__ */ R("div", { className: m(Je.tooltipWrapper, l), ...u, children: /* @__PURE__ */ R("span", { className: Je.tooltipContent, children: n }) });
966
+ }, Xe = D(Ht);
967
+ Xe.displayName = "Text";
968
+ const zt = ({ children: a, className: s, size: u = "sm" }) => /* @__PURE__ */ E(Xe, { className: v(["flex-grow", s]), size: u, variant: "label", children: a }), Kt = "_tooltipWrapper_qu88w_1", Xt = "_tooltipContent_qu88w_18", He = {
969
+ tooltipWrapper: Kt,
970
+ tooltipContent: Xt
971
+ }, er = ({ content: a, className: s, ...u }) => /* @__PURE__ */ E("div", { className: v(He.tooltipWrapper, s), ...u, children: /* @__PURE__ */ E("span", { className: He.tooltipContent, children: a }) });
931
972
  export {
932
- He as Box,
933
- jt as IconButton,
934
- Ft as IconLinkButton,
935
- At as Input,
936
- Vt as List,
937
- Bt as ListItem,
938
- Ht as ListItemText,
939
- Kt as Tooltip
973
+ Ke as Box,
974
+ Dt as Button,
975
+ Ft as ButtonComponent,
976
+ At as IconButton,
977
+ Bt as IconLinkButton,
978
+ $t as Input,
979
+ Mt as List,
980
+ qt as ListItem,
981
+ zt as ListItemText,
982
+ er as Tooltip,
983
+ Nt as themeClasses,
984
+ jt as variantClasses
940
985
  };