levannta-ui 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
- import xe, { forwardRef as vr } from "react";
2
- var re = { exports: {} }, $ = {};
1
+ import ke, { forwardRef as br } from "react";
2
+ var te = { exports: {} }, W = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.min.js
@@ -9,25 +9,25 @@ var re = { exports: {} }, $ = {};
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
- var Se;
12
+ var Ce;
13
13
  function pr() {
14
- if (Se)
15
- return $;
16
- Se = 1;
17
- var l = xe, f = Symbol.for("react.element"), i = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, R = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, T = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function P(O, y, b) {
19
- var v, g = {}, _ = null, x = null;
20
- b !== void 0 && (_ = "" + b), y.key !== void 0 && (_ = "" + y.key), y.ref !== void 0 && (x = y.ref);
21
- for (v in y)
22
- c.call(y, v) && !T.hasOwnProperty(v) && (g[v] = y[v]);
23
- if (O && O.defaultProps)
24
- for (v in y = O.defaultProps, y)
25
- g[v] === void 0 && (g[v] = y[v]);
26
- return { $$typeof: f, type: O, key: _, ref: x, props: g, _owner: R.current };
14
+ if (Ce)
15
+ return W;
16
+ Ce = 1;
17
+ var l = ke, f = Symbol.for("react.element"), i = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, T = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, O = { key: !0, ref: !0, __self: !0, __source: !0 };
18
+ function j(E, v, b) {
19
+ var d, y = {}, h = null, S = null;
20
+ b !== void 0 && (h = "" + b), v.key !== void 0 && (h = "" + v.key), v.ref !== void 0 && (S = v.ref);
21
+ for (d in v)
22
+ c.call(v, d) && !O.hasOwnProperty(d) && (y[d] = v[d]);
23
+ if (E && E.defaultProps)
24
+ for (d in v = E.defaultProps, v)
25
+ y[d] === void 0 && (y[d] = v[d]);
26
+ return { $$typeof: f, type: E, key: h, ref: S, props: y, _owner: T.current };
27
27
  }
28
- return $.Fragment = i, $.jsx = P, $.jsxs = P, $;
28
+ return W.Fragment = i, W.jsx = j, W.jsxs = j, W;
29
29
  }
30
- var W = {};
30
+ var Y = {};
31
31
  /**
32
32
  * @license React
33
33
  * react-jsx-runtime.development.js
@@ -37,25 +37,25 @@ var W = {};
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
39
  */
40
- var Pe;
41
- function yr() {
42
- return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && function() {
43
- var l = xe, f = Symbol.for("react.element"), i = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), P = Symbol.for("react.provider"), O = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), Y = Symbol.iterator, L = "@@iterator";
40
+ var Se;
41
+ function mr() {
42
+ return Se || (Se = 1, process.env.NODE_ENV !== "production" && function() {
43
+ var l = ke, f = Symbol.for("react.element"), i = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), O = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), E = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), L = Symbol.iterator, U = "@@iterator";
44
44
  function F(e) {
45
45
  if (e === null || typeof e != "object")
46
46
  return null;
47
- var r = Y && e[Y] || e[L];
47
+ var r = L && e[L] || e[U];
48
48
  return typeof r == "function" ? r : null;
49
49
  }
50
50
  var k = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
- function m(e) {
51
+ function g(e) {
52
52
  {
53
53
  for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
54
54
  t[n - 1] = arguments[n];
55
- Ae("error", e, t);
55
+ Ne("error", e, t);
56
56
  }
57
57
  }
58
- function Ae(e, r, t) {
58
+ function Ne(e, r, t) {
59
59
  {
60
60
  var n = k.ReactDebugCurrentFrame, u = n.getStackAddendum();
61
61
  u !== "" && (r += "%s", t = t.concat([u]));
@@ -65,29 +65,29 @@ function yr() {
65
65
  s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
66
66
  }
67
67
  }
68
- var De = !1, Fe = !1, Ne = !1, Ie = !1, Ve = !1, te;
69
- te = Symbol.for("react.module.reference");
70
- function $e(e) {
71
- return !!(typeof e == "string" || typeof e == "function" || e === c || e === T || Ve || e === R || e === b || e === v || Ie || e === x || De || Fe || Ne || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === g || e.$$typeof === P || e.$$typeof === O || e.$$typeof === y || // This needs to include all possible module reference object
68
+ var De = !1, Fe = !1, Ie = !1, Ve = !1, $e = !1, ne;
69
+ ne = Symbol.for("react.module.reference");
70
+ function We(e) {
71
+ return !!(typeof e == "string" || typeof e == "function" || e === c || e === O || $e || e === T || e === b || e === d || Ve || e === S || De || Fe || Ie || typeof e == "object" && e !== null && (e.$$typeof === h || e.$$typeof === y || e.$$typeof === j || e.$$typeof === E || e.$$typeof === v || // This needs to include all possible module reference object
72
72
  // types supported by any Flight configuration anywhere since
73
73
  // we don't know which Flight build this will end up being used
74
74
  // with.
75
- e.$$typeof === te || e.getModuleId !== void 0));
75
+ e.$$typeof === ne || e.getModuleId !== void 0));
76
76
  }
77
- function We(e, r, t) {
77
+ function Ye(e, r, t) {
78
78
  var n = e.displayName;
79
79
  if (n)
80
80
  return n;
81
81
  var u = r.displayName || r.name || "";
82
82
  return u !== "" ? t + "(" + u + ")" : t;
83
83
  }
84
- function ne(e) {
84
+ function ae(e) {
85
85
  return e.displayName || "Context";
86
86
  }
87
- function S(e) {
87
+ function C(e) {
88
88
  if (e == null)
89
89
  return null;
90
- if (typeof e.tag == "number" && m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
90
+ 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")
91
91
  return e.displayName || e.name || null;
92
92
  if (typeof e == "string")
93
93
  return e;
@@ -96,32 +96,32 @@ function yr() {
96
96
  return "Fragment";
97
97
  case i:
98
98
  return "Portal";
99
- case T:
99
+ case O:
100
100
  return "Profiler";
101
- case R:
101
+ case T:
102
102
  return "StrictMode";
103
103
  case b:
104
104
  return "Suspense";
105
- case v:
105
+ case d:
106
106
  return "SuspenseList";
107
107
  }
108
108
  if (typeof e == "object")
109
109
  switch (e.$$typeof) {
110
- case O:
110
+ case E:
111
111
  var r = e;
112
- return ne(r) + ".Consumer";
113
- case P:
112
+ return ae(r) + ".Consumer";
113
+ case j:
114
114
  var t = e;
115
- return ne(t._context) + ".Provider";
115
+ return ae(t._context) + ".Provider";
116
+ case v:
117
+ return Ye(e, e.render, "ForwardRef");
116
118
  case y:
117
- return We(e, e.render, "ForwardRef");
118
- case g:
119
119
  var n = e.displayName || null;
120
- return n !== null ? n : S(e.type) || "Memo";
121
- case _: {
120
+ return n !== null ? n : C(e.type) || "Memo";
121
+ case h: {
122
122
  var u = e, s = u._payload, o = u._init;
123
123
  try {
124
- return S(o(s));
124
+ return C(o(s));
125
125
  } catch {
126
126
  return null;
127
127
  }
@@ -129,18 +129,18 @@ function yr() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var w = Object.assign, N = 0, ae, oe, ie, ue, le, se, ce;
133
- function fe() {
132
+ var P = Object.assign, I = 0, oe, ie, ue, le, se, ce, fe;
133
+ function de() {
134
134
  }
135
- fe.__reactDisabledLog = !0;
136
- function Ye() {
135
+ de.__reactDisabledLog = !0;
136
+ function Le() {
137
137
  {
138
- if (N === 0) {
139
- ae = console.log, oe = console.info, ie = console.warn, ue = console.error, le = console.group, se = console.groupCollapsed, ce = console.groupEnd;
138
+ if (I === 0) {
139
+ oe = console.log, ie = console.info, ue = console.warn, le = console.error, se = console.group, ce = console.groupCollapsed, fe = console.groupEnd;
140
140
  var e = {
141
141
  configurable: !0,
142
142
  enumerable: !0,
143
- value: fe,
143
+ value: de,
144
144
  writable: !0
145
145
  };
146
146
  Object.defineProperties(console, {
@@ -153,77 +153,77 @@ function yr() {
153
153
  groupEnd: e
154
154
  });
155
155
  }
156
- N++;
156
+ I++;
157
157
  }
158
158
  }
159
- function Le() {
159
+ function Ue() {
160
160
  {
161
- if (N--, N === 0) {
161
+ if (I--, I === 0) {
162
162
  var e = {
163
163
  configurable: !0,
164
164
  enumerable: !0,
165
165
  writable: !0
166
166
  };
167
167
  Object.defineProperties(console, {
168
- log: w({}, e, {
169
- value: ae
170
- }),
171
- info: w({}, e, {
168
+ log: P({}, e, {
172
169
  value: oe
173
170
  }),
174
- warn: w({}, e, {
171
+ info: P({}, e, {
175
172
  value: ie
176
173
  }),
177
- error: w({}, e, {
174
+ warn: P({}, e, {
178
175
  value: ue
179
176
  }),
180
- group: w({}, e, {
177
+ error: P({}, e, {
181
178
  value: le
182
179
  }),
183
- groupCollapsed: w({}, e, {
180
+ group: P({}, e, {
184
181
  value: se
185
182
  }),
186
- groupEnd: w({}, e, {
183
+ groupCollapsed: P({}, e, {
187
184
  value: ce
185
+ }),
186
+ groupEnd: P({}, e, {
187
+ value: fe
188
188
  })
189
189
  });
190
190
  }
191
- N < 0 && m("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ I < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
192
  }
193
193
  }
194
- var J = k.ReactCurrentDispatcher, K;
195
- function U(e, r, t) {
194
+ var K = k.ReactCurrentDispatcher, q;
195
+ function M(e, r, t) {
196
196
  {
197
- if (K === void 0)
197
+ if (q === void 0)
198
198
  try {
199
199
  throw Error();
200
200
  } catch (u) {
201
201
  var n = u.stack.trim().match(/\n( *(at )?)/);
202
- K = n && n[1] || "";
202
+ q = n && n[1] || "";
203
203
  }
204
204
  return `
205
- ` + K + e;
205
+ ` + q + e;
206
206
  }
207
207
  }
208
- var q = !1, M;
208
+ var G = !1, B;
209
209
  {
210
- var Ue = typeof WeakMap == "function" ? WeakMap : Map;
211
- M = new Ue();
210
+ var Me = typeof WeakMap == "function" ? WeakMap : Map;
211
+ B = new Me();
212
212
  }
213
- function de(e, r) {
214
- if (!e || q)
213
+ function ve(e, r) {
214
+ if (!e || G)
215
215
  return "";
216
216
  {
217
- var t = M.get(e);
217
+ var t = B.get(e);
218
218
  if (t !== void 0)
219
219
  return t;
220
220
  }
221
221
  var n;
222
- q = !0;
222
+ G = !0;
223
223
  var u = Error.prepareStackTrace;
224
224
  Error.prepareStackTrace = void 0;
225
225
  var s;
226
- s = J.current, J.current = null, Ye();
226
+ s = K.current, K.current = null, Le();
227
227
  try {
228
228
  if (r) {
229
229
  var o = function() {
@@ -236,171 +236,171 @@ function yr() {
236
236
  }), typeof Reflect == "object" && Reflect.construct) {
237
237
  try {
238
238
  Reflect.construct(o, []);
239
- } catch (E) {
240
- n = E;
239
+ } catch (R) {
240
+ n = R;
241
241
  }
242
242
  Reflect.construct(e, [], o);
243
243
  } else {
244
244
  try {
245
245
  o.call();
246
- } catch (E) {
247
- n = E;
246
+ } catch (R) {
247
+ n = R;
248
248
  }
249
249
  e.call(o.prototype);
250
250
  }
251
251
  } else {
252
252
  try {
253
253
  throw Error();
254
- } catch (E) {
255
- n = E;
254
+ } catch (R) {
255
+ n = R;
256
256
  }
257
257
  e();
258
258
  }
259
- } catch (E) {
260
- if (E && n && typeof E.stack == "string") {
261
- for (var a = E.stack.split(`
262
- `), h = n.stack.split(`
263
- `), d = a.length - 1, p = h.length - 1; d >= 1 && p >= 0 && a[d] !== h[p]; )
264
- p--;
265
- for (; d >= 1 && p >= 0; d--, p--)
266
- if (a[d] !== h[p]) {
267
- if (d !== 1 || p !== 1)
259
+ } catch (R) {
260
+ if (R && n && typeof R.stack == "string") {
261
+ for (var a = R.stack.split(`
262
+ `), _ = n.stack.split(`
263
+ `), p = a.length - 1, m = _.length - 1; p >= 1 && m >= 0 && a[p] !== _[m]; )
264
+ m--;
265
+ for (; p >= 1 && m >= 0; p--, m--)
266
+ if (a[p] !== _[m]) {
267
+ if (p !== 1 || m !== 1)
268
268
  do
269
- if (d--, p--, p < 0 || a[d] !== h[p]) {
270
- var C = `
271
- ` + a[d].replace(" at new ", " at ");
272
- return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, C), C;
269
+ if (p--, m--, m < 0 || a[p] !== _[m]) {
270
+ var w = `
271
+ ` + a[p].replace(" at new ", " at ");
272
+ return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && B.set(e, w), w;
273
273
  }
274
- while (d >= 1 && p >= 0);
274
+ while (p >= 1 && m >= 0);
275
275
  break;
276
276
  }
277
277
  }
278
278
  } finally {
279
- q = !1, J.current = s, Le(), Error.prepareStackTrace = u;
279
+ G = !1, K.current = s, Ue(), Error.prepareStackTrace = u;
280
280
  }
281
- var D = e ? e.displayName || e.name : "", j = D ? U(D) : "";
282
- return typeof e == "function" && M.set(e, j), j;
281
+ var N = e ? e.displayName || e.name : "", x = N ? M(N) : "";
282
+ return typeof e == "function" && B.set(e, x), x;
283
283
  }
284
- function Me(e, r, t) {
285
- return de(e, !1);
284
+ function Be(e, r, t) {
285
+ return ve(e, !1);
286
286
  }
287
- function Be(e) {
287
+ function ze(e) {
288
288
  var r = e.prototype;
289
289
  return !!(r && r.isReactComponent);
290
290
  }
291
- function B(e, r, t) {
291
+ function z(e, r, t) {
292
292
  if (e == null)
293
293
  return "";
294
294
  if (typeof e == "function")
295
- return de(e, Be(e));
295
+ return ve(e, ze(e));
296
296
  if (typeof e == "string")
297
- return U(e);
297
+ return M(e);
298
298
  switch (e) {
299
299
  case b:
300
- return U("Suspense");
301
- case v:
302
- return U("SuspenseList");
300
+ return M("Suspense");
301
+ case d:
302
+ return M("SuspenseList");
303
303
  }
304
304
  if (typeof e == "object")
305
305
  switch (e.$$typeof) {
306
+ case v:
307
+ return Be(e.render);
306
308
  case y:
307
- return Me(e.render);
308
- case g:
309
- return B(e.type, r, t);
310
- case _: {
309
+ return z(e.type, r, t);
310
+ case h: {
311
311
  var n = e, u = n._payload, s = n._init;
312
312
  try {
313
- return B(s(u), r, t);
313
+ return z(s(u), r, t);
314
314
  } catch {
315
315
  }
316
316
  }
317
317
  }
318
318
  return "";
319
319
  }
320
- var I = Object.prototype.hasOwnProperty, ve = {}, pe = k.ReactDebugCurrentFrame;
321
- function z(e) {
320
+ var V = Object.prototype.hasOwnProperty, be = {}, pe = k.ReactDebugCurrentFrame;
321
+ function J(e) {
322
322
  if (e) {
323
- var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
323
+ var r = e._owner, t = z(e.type, e._source, r ? r.type : null);
324
324
  pe.setExtraStackFrame(t);
325
325
  } else
326
326
  pe.setExtraStackFrame(null);
327
327
  }
328
- function ze(e, r, t, n, u) {
328
+ function Je(e, r, t, n, u) {
329
329
  {
330
- var s = Function.call.bind(I);
330
+ var s = Function.call.bind(V);
331
331
  for (var o in e)
332
332
  if (s(e, o)) {
333
333
  var a = void 0;
334
334
  try {
335
335
  if (typeof e[o] != "function") {
336
- var h = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
- throw h.name = "Invariant Violation", h;
336
+ var _ = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
+ throw _.name = "Invariant Violation", _;
338
338
  }
339
339
  a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
- } catch (d) {
341
- a = d;
340
+ } catch (p) {
341
+ a = p;
342
342
  }
343
- a && !(a instanceof Error) && (z(u), m("%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", t, o, typeof a), z(null)), a instanceof Error && !(a.message in ve) && (ve[a.message] = !0, z(u), m("Failed %s type: %s", t, a.message), z(null));
343
+ a && !(a instanceof Error) && (J(u), 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).", n || "React class", t, o, typeof a), J(null)), a instanceof Error && !(a.message in be) && (be[a.message] = !0, J(u), g("Failed %s type: %s", t, a.message), J(null));
344
344
  }
345
345
  }
346
346
  }
347
- var Je = Array.isArray;
348
- function G(e) {
349
- return Je(e);
347
+ var Ke = Array.isArray;
348
+ function X(e) {
349
+ return Ke(e);
350
350
  }
351
- function Ke(e) {
351
+ function qe(e) {
352
352
  {
353
353
  var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
354
354
  return t;
355
355
  }
356
356
  }
357
- function qe(e) {
357
+ function Ge(e) {
358
358
  try {
359
- return ye(e), !1;
359
+ return me(e), !1;
360
360
  } catch {
361
361
  return !0;
362
362
  }
363
363
  }
364
- function ye(e) {
364
+ function me(e) {
365
365
  return "" + e;
366
366
  }
367
- function be(e) {
368
- if (qe(e))
369
- return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), ye(e);
367
+ function ye(e) {
368
+ if (Ge(e))
369
+ return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), me(e);
370
370
  }
371
- var V = k.ReactCurrentOwner, Ge = {
371
+ var $ = k.ReactCurrentOwner, Xe = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
375
375
  __source: !0
376
- }, me, ge, X;
377
- X = {};
378
- function Xe(e) {
379
- if (I.call(e, "ref")) {
376
+ }, he, ge, H;
377
+ H = {};
378
+ function He(e) {
379
+ if (V.call(e, "ref")) {
380
380
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
381
381
  if (r && r.isReactWarning)
382
382
  return !1;
383
383
  }
384
384
  return e.ref !== void 0;
385
385
  }
386
- function He(e) {
387
- if (I.call(e, "key")) {
386
+ function Ze(e) {
387
+ if (V.call(e, "key")) {
388
388
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
389
389
  if (r && r.isReactWarning)
390
390
  return !1;
391
391
  }
392
392
  return e.key !== void 0;
393
393
  }
394
- function Ze(e, r) {
395
- if (typeof e.ref == "string" && V.current && r && V.current.stateNode !== r) {
396
- var t = S(V.current.type);
397
- X[t] || (m('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', S(V.current.type), e.ref), X[t] = !0);
394
+ function Qe(e, r) {
395
+ if (typeof e.ref == "string" && $.current && r && $.current.stateNode !== r) {
396
+ var t = C($.current.type);
397
+ H[t] || (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', C($.current.type), e.ref), H[t] = !0);
398
398
  }
399
399
  }
400
- function Qe(e, r) {
400
+ function er(e, r) {
401
401
  {
402
402
  var t = function() {
403
- me || (me = !0, m("%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)", r));
403
+ he || (he = !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)", r));
404
404
  };
405
405
  t.isReactWarning = !0, Object.defineProperty(e, "key", {
406
406
  get: t,
@@ -408,10 +408,10 @@ function yr() {
408
408
  });
409
409
  }
410
410
  }
411
- function er(e, r) {
411
+ function rr(e, r) {
412
412
  {
413
413
  var t = function() {
414
- ge || (ge = !0, m("%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)", r));
414
+ ge || (ge = !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)", r));
415
415
  };
416
416
  t.isReactWarning = !0, Object.defineProperty(e, "ref", {
417
417
  get: t,
@@ -419,7 +419,7 @@ function yr() {
419
419
  });
420
420
  }
421
421
  }
422
- var rr = function(e, r, t, n, u, s, o) {
422
+ var tr = function(e, r, t, n, u, s, o) {
423
423
  var a = {
424
424
  // This tag allows us to uniquely identify this as a React Element
425
425
  $$typeof: f,
@@ -448,41 +448,41 @@ function yr() {
448
448
  value: u
449
449
  }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
450
450
  };
451
- function tr(e, r, t, n, u) {
451
+ function nr(e, r, t, n, u) {
452
452
  {
453
- var s, o = {}, a = null, h = null;
454
- t !== void 0 && (be(t), a = "" + t), He(r) && (be(r.key), a = "" + r.key), Xe(r) && (h = r.ref, Ze(r, u));
453
+ var s, o = {}, a = null, _ = null;
454
+ t !== void 0 && (ye(t), a = "" + t), Ze(r) && (ye(r.key), a = "" + r.key), He(r) && (_ = r.ref, Qe(r, u));
455
455
  for (s in r)
456
- I.call(r, s) && !Ge.hasOwnProperty(s) && (o[s] = r[s]);
456
+ V.call(r, s) && !Xe.hasOwnProperty(s) && (o[s] = r[s]);
457
457
  if (e && e.defaultProps) {
458
- var d = e.defaultProps;
459
- for (s in d)
460
- o[s] === void 0 && (o[s] = d[s]);
458
+ var p = e.defaultProps;
459
+ for (s in p)
460
+ o[s] === void 0 && (o[s] = p[s]);
461
461
  }
462
- if (a || h) {
463
- var p = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
- a && Qe(o, p), h && er(o, p);
462
+ if (a || _) {
463
+ var m = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
+ a && er(o, m), _ && rr(o, m);
465
465
  }
466
- return rr(e, a, h, u, n, V.current, o);
466
+ return tr(e, a, _, u, n, $.current, o);
467
467
  }
468
468
  }
469
- var H = k.ReactCurrentOwner, he = k.ReactDebugCurrentFrame;
469
+ var Z = k.ReactCurrentOwner, _e = k.ReactDebugCurrentFrame;
470
470
  function A(e) {
471
471
  if (e) {
472
- var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
473
- he.setExtraStackFrame(t);
472
+ var r = e._owner, t = z(e.type, e._source, r ? r.type : null);
473
+ _e.setExtraStackFrame(t);
474
474
  } else
475
- he.setExtraStackFrame(null);
475
+ _e.setExtraStackFrame(null);
476
476
  }
477
- var Z;
478
- Z = !1;
479
- function Q(e) {
477
+ var Q;
478
+ Q = !1;
479
+ function ee(e) {
480
480
  return typeof e == "object" && e !== null && e.$$typeof === f;
481
481
  }
482
- function _e() {
482
+ function Ee() {
483
483
  {
484
- if (H.current) {
485
- var e = S(H.current.type);
484
+ if (Z.current) {
485
+ var e = C(Z.current.type);
486
486
  if (e)
487
487
  return `
488
488
 
@@ -491,7 +491,7 @@ Check the render method of \`` + e + "`.";
491
491
  return "";
492
492
  }
493
493
  }
494
- function nr(e) {
494
+ function ar(e) {
495
495
  {
496
496
  if (e !== void 0) {
497
497
  var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
@@ -502,10 +502,10 @@ Check your code at ` + r + ":" + t + ".";
502
502
  return "";
503
503
  }
504
504
  }
505
- var Ee = {};
506
- function ar(e) {
505
+ var Re = {};
506
+ function or(e) {
507
507
  {
508
- var r = _e();
508
+ var r = Ee();
509
509
  if (!r) {
510
510
  var t = typeof e == "string" ? e : e.displayName || e.name;
511
511
  t && (r = `
@@ -515,39 +515,39 @@ Check the top-level render call using <` + t + ">.");
515
515
  return r;
516
516
  }
517
517
  }
518
- function Re(e, r) {
518
+ function Te(e, r) {
519
519
  {
520
520
  if (!e._store || e._store.validated || e.key != null)
521
521
  return;
522
522
  e._store.validated = !0;
523
- var t = ar(r);
524
- if (Ee[t])
523
+ var t = or(r);
524
+ if (Re[t])
525
525
  return;
526
- Ee[t] = !0;
526
+ Re[t] = !0;
527
527
  var n = "";
528
- e && e._owner && e._owner !== H.current && (n = " It was passed a child from " + S(e._owner.type) + "."), A(e), m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), A(null);
528
+ e && e._owner && e._owner !== Z.current && (n = " It was passed a child from " + C(e._owner.type) + "."), A(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.', t, n), A(null);
529
529
  }
530
530
  }
531
- function Te(e, r) {
531
+ function Oe(e, r) {
532
532
  {
533
533
  if (typeof e != "object")
534
534
  return;
535
- if (G(e))
535
+ if (X(e))
536
536
  for (var t = 0; t < e.length; t++) {
537
537
  var n = e[t];
538
- Q(n) && Re(n, r);
538
+ ee(n) && Te(n, r);
539
539
  }
540
- else if (Q(e))
540
+ else if (ee(e))
541
541
  e._store && (e._store.validated = !0);
542
542
  else if (e) {
543
543
  var u = F(e);
544
544
  if (typeof u == "function" && u !== e.entries)
545
545
  for (var s = u.call(e), o; !(o = s.next()).done; )
546
- Q(o.value) && Re(o.value, r);
546
+ ee(o.value) && Te(o.value, r);
547
547
  }
548
548
  }
549
549
  }
550
- function or(e) {
550
+ function ir(e) {
551
551
  {
552
552
  var r = e.type;
553
553
  if (r == null || typeof r == "string")
@@ -555,144 +555,144 @@ Check the top-level render call using <` + t + ">.");
555
555
  var t;
556
556
  if (typeof r == "function")
557
557
  t = r.propTypes;
558
- else if (typeof r == "object" && (r.$$typeof === y || // Note: Memo only checks outer props here.
558
+ else if (typeof r == "object" && (r.$$typeof === v || // Note: Memo only checks outer props here.
559
559
  // Inner props are checked in the reconciler.
560
- r.$$typeof === g))
560
+ r.$$typeof === y))
561
561
  t = r.propTypes;
562
562
  else
563
563
  return;
564
564
  if (t) {
565
- var n = S(r);
566
- ze(t, e.props, "prop", n, e);
567
- } else if (r.PropTypes !== void 0 && !Z) {
568
- Z = !0;
569
- var u = S(r);
570
- m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
565
+ var n = C(r);
566
+ Je(t, e.props, "prop", n, e);
567
+ } else if (r.PropTypes !== void 0 && !Q) {
568
+ Q = !0;
569
+ var u = C(r);
570
+ g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
571
571
  }
572
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
572
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
573
573
  }
574
574
  }
575
- function ir(e) {
575
+ function ur(e) {
576
576
  {
577
577
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
578
578
  var n = r[t];
579
579
  if (n !== "children" && n !== "key") {
580
- A(e), m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), A(null);
580
+ A(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), A(null);
581
581
  break;
582
582
  }
583
583
  }
584
- e.ref !== null && (A(e), m("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
584
+ e.ref !== null && (A(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
585
585
  }
586
586
  }
587
- var Oe = {};
588
- function Ce(e, r, t, n, u, s) {
587
+ var we = {};
588
+ function je(e, r, t, n, u, s) {
589
589
  {
590
- var o = $e(e);
590
+ var o = We(e);
591
591
  if (!o) {
592
592
  var a = "";
593
593
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
594
- var h = nr(u);
595
- h ? a += h : a += _e();
596
- var d;
597
- e === null ? d = "null" : G(e) ? d = "array" : e !== void 0 && e.$$typeof === f ? (d = "<" + (S(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, a);
594
+ var _ = ar(u);
595
+ _ ? a += _ : a += Ee();
596
+ var p;
597
+ e === null ? p = "null" : X(e) ? p = "array" : e !== void 0 && e.$$typeof === f ? (p = "<" + (C(e.type) || "Unknown") + " />", a = " 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, a);
598
598
  }
599
- var p = tr(e, r, t, u, s);
600
- if (p == null)
601
- return p;
599
+ var m = nr(e, r, t, u, s);
600
+ if (m == null)
601
+ return m;
602
602
  if (o) {
603
- var C = r.children;
604
- if (C !== void 0)
603
+ var w = r.children;
604
+ if (w !== void 0)
605
605
  if (n)
606
- if (G(C)) {
607
- for (var D = 0; D < C.length; D++)
608
- Te(C[D], e);
609
- Object.freeze && Object.freeze(C);
606
+ if (X(w)) {
607
+ for (var N = 0; N < w.length; N++)
608
+ Oe(w[N], e);
609
+ Object.freeze && Object.freeze(w);
610
610
  } else
611
- m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
611
+ 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.");
612
612
  else
613
- Te(C, e);
613
+ Oe(w, e);
614
614
  }
615
- if (I.call(r, "key")) {
616
- var j = S(e), E = Object.keys(r).filter(function(dr) {
617
- return dr !== "key";
618
- }), ee = E.length > 0 ? "{key: someKey, " + E.join(": ..., ") + ": ...}" : "{key: someKey}";
619
- if (!Oe[j + ee]) {
620
- var fr = E.length > 0 ? "{" + E.join(": ..., ") + ": ...}" : "{}";
621
- m(`A props object containing a "key" prop is being spread into JSX:
615
+ if (V.call(r, "key")) {
616
+ var x = C(e), R = Object.keys(r).filter(function(vr) {
617
+ return vr !== "key";
618
+ }), re = R.length > 0 ? "{key: someKey, " + R.join(": ..., ") + ": ...}" : "{key: someKey}";
619
+ if (!we[x + re]) {
620
+ var dr = R.length > 0 ? "{" + R.join(": ..., ") + ": ...}" : "{}";
621
+ g(`A props object containing a "key" prop is being spread into JSX:
622
622
  let props = %s;
623
623
  <%s {...props} />
624
624
  React keys must be passed directly to JSX without using spread:
625
625
  let props = %s;
626
- <%s key={someKey} {...props} />`, ee, j, fr, j), Oe[j + ee] = !0;
626
+ <%s key={someKey} {...props} />`, re, x, dr, x), we[x + re] = !0;
627
627
  }
628
628
  }
629
- return e === c ? ir(p) : or(p), p;
629
+ return e === c ? ur(m) : ir(m), m;
630
630
  }
631
631
  }
632
- function ur(e, r, t) {
633
- return Ce(e, r, t, !0);
634
- }
635
632
  function lr(e, r, t) {
636
- return Ce(e, r, t, !1);
633
+ return je(e, r, t, !0);
634
+ }
635
+ function sr(e, r, t) {
636
+ return je(e, r, t, !1);
637
637
  }
638
- var sr = lr, cr = ur;
639
- W.Fragment = c, W.jsx = sr, W.jsxs = cr;
640
- }()), W;
638
+ var cr = sr, fr = lr;
639
+ Y.Fragment = c, Y.jsx = cr, Y.jsxs = fr;
640
+ }()), Y;
641
641
  }
642
- process.env.NODE_ENV === "production" ? re.exports = pr() : re.exports = yr();
643
- var br = re.exports;
644
- function ke(l) {
642
+ process.env.NODE_ENV === "production" ? te.exports = pr() : te.exports = mr();
643
+ var D = te.exports;
644
+ function Ae(l) {
645
645
  var f, i, c = "";
646
646
  if (typeof l == "string" || typeof l == "number")
647
647
  c += l;
648
648
  else if (typeof l == "object")
649
649
  if (Array.isArray(l)) {
650
- var R = l.length;
651
- for (f = 0; f < R; f++)
652
- l[f] && (i = ke(l[f])) && (c && (c += " "), c += i);
650
+ var T = l.length;
651
+ for (f = 0; f < T; f++)
652
+ l[f] && (i = Ae(l[f])) && (c && (c += " "), c += i);
653
653
  } else
654
654
  for (i in l)
655
655
  l[i] && (c && (c += " "), c += i);
656
656
  return c;
657
657
  }
658
- function mr() {
659
- for (var l, f, i = 0, c = "", R = arguments.length; i < R; i++)
660
- (l = arguments[i]) && (f = ke(l)) && (c && (c += " "), c += f);
658
+ function yr() {
659
+ for (var l, f, i = 0, c = "", T = arguments.length; i < T; i++)
660
+ (l = arguments[i]) && (f = Ae(l)) && (c && (c += " "), c += f);
661
661
  return c;
662
662
  }
663
- const we = (l) => typeof l == "boolean" ? `${l}` : l === 0 ? "0" : l, je = mr, gr = (l, f) => (i) => {
663
+ const Pe = (l) => typeof l == "boolean" ? `${l}` : l === 0 ? "0" : l, xe = yr, hr = (l, f) => (i) => {
664
664
  var c;
665
665
  if ((f == null ? void 0 : f.variants) == null)
666
- return je(l, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
667
- const { variants: R, defaultVariants: T } = f, P = Object.keys(R).map((b) => {
668
- const v = i == null ? void 0 : i[b], g = T == null ? void 0 : T[b];
669
- if (v === null)
666
+ return xe(l, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
667
+ const { variants: T, defaultVariants: O } = f, j = Object.keys(T).map((b) => {
668
+ const d = i == null ? void 0 : i[b], y = O == null ? void 0 : O[b];
669
+ if (d === null)
670
670
  return null;
671
- const _ = we(v) || we(g);
672
- return R[b][_];
673
- }), O = i && Object.entries(i).reduce((b, v) => {
674
- let [g, _] = v;
675
- return _ === void 0 || (b[g] = _), b;
676
- }, {}), y = f == null || (c = f.compoundVariants) === null || c === void 0 ? void 0 : c.reduce((b, v) => {
677
- let { class: g, className: _, ...x } = v;
678
- return Object.entries(x).every((Y) => {
679
- let [L, F] = Y;
671
+ const h = Pe(d) || Pe(y);
672
+ return T[b][h];
673
+ }), E = i && Object.entries(i).reduce((b, d) => {
674
+ let [y, h] = d;
675
+ return h === void 0 || (b[y] = h), b;
676
+ }, {}), v = f == null || (c = f.compoundVariants) === null || c === void 0 ? void 0 : c.reduce((b, d) => {
677
+ let { class: y, className: h, ...S } = d;
678
+ return Object.entries(S).every((L) => {
679
+ let [U, F] = L;
680
680
  return Array.isArray(F) ? F.includes({
681
- ...T,
682
- ...O
683
- }[L]) : {
684
- ...T,
685
- ...O
686
- }[L] === F;
681
+ ...O,
682
+ ...E
683
+ }[U]) : {
684
+ ...O,
685
+ ...E
686
+ }[U] === F;
687
687
  }) ? [
688
688
  ...b,
689
- g,
690
- _
689
+ y,
690
+ h
691
691
  ] : b;
692
692
  }, []);
693
- return je(l, P, y, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
693
+ return xe(l, j, v, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
694
694
  };
695
- const hr = gr("button", {
695
+ const gr = hr("button", {
696
696
  variants: {
697
697
  variant: {
698
698
  outlined: "button-outlined",
@@ -716,6 +716,21 @@ const hr = gr("button", {
716
716
  },
717
717
  active: {
718
718
  true: "button-active"
719
+ },
720
+ iconLeft: {
721
+ true: "button-with-icon-left"
722
+ },
723
+ iconRight: {
724
+ true: "button-with-icon-right"
725
+ },
726
+ iconLeftJustified: {
727
+ true: "button-with-icon-left button-with-icon-left-justified"
728
+ },
729
+ iconRightJustified: {
730
+ true: "button-with-icon-right button-with-icon-right-justified"
731
+ },
732
+ iconOnly: {
733
+ true: "button-icon-only"
719
734
  }
720
735
  },
721
736
  defaultVariants: {
@@ -738,19 +753,52 @@ const hr = gr("button", {
738
753
  { variant: "icon", color: "error", className: "button-icon-error" },
739
754
  { variant: "icon", color: "clear", className: "button-icon-clear" }
740
755
  ]
741
- }), _r = vr(
742
- ({ className: l, variant: f, color: i, size: c, pill: R, active: T, ...P }, O) => /* @__PURE__ */ br.jsx(
756
+ }), _r = br(
757
+ ({
758
+ className: l,
759
+ variant: f,
760
+ color: i,
761
+ size: c,
762
+ pill: T,
763
+ active: O,
764
+ iconLeft: j,
765
+ iconRight: E,
766
+ iconLeftJustified: v,
767
+ iconRightJustified: b,
768
+ iconOnly: d,
769
+ children: y,
770
+ ...h
771
+ }, S) => /* @__PURE__ */ D.jsxs(
743
772
  "button",
744
773
  {
745
- className: hr({ variant: f, color: i, size: c, pill: R, active: T, className: l }),
746
- ref: O,
747
- ...P
774
+ className: gr({
775
+ variant: f,
776
+ color: i,
777
+ size: c,
778
+ pill: T,
779
+ active: O,
780
+ iconLeft: !!j,
781
+ iconRight: !!E,
782
+ iconLeftJustified: !!v,
783
+ iconRightJustified: !!b,
784
+ iconOnly: !!d,
785
+ className: l
786
+ }),
787
+ ref: S,
788
+ ...h,
789
+ children: [
790
+ j && /* @__PURE__ */ D.jsx("span", { className: "button-icon-left", children: j }),
791
+ v && /* @__PURE__ */ D.jsx("span", { className: "button-icon-left", children: v }),
792
+ d ? /* @__PURE__ */ D.jsx("span", { children: d }) : y,
793
+ E && /* @__PURE__ */ D.jsx("span", { className: "button-icon-right", children: E }),
794
+ b && /* @__PURE__ */ D.jsx("span", { className: "button-icon-right", children: b })
795
+ ]
748
796
  }
749
797
  )
750
798
  );
751
799
  _r.displayName = "Button";
752
800
  export {
753
801
  _r as Button,
754
- hr as buttonVariants
802
+ gr as buttonVariants
755
803
  };
756
804
  //# sourceMappingURL=index.esm.js.map