@abumble/design-system 0.0.3 → 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.
@@ -24,9 +24,9 @@ function Be() {
24
24
  return te.Fragment = o, te.jsx = r, te.jsxs = r, te;
25
25
  }
26
26
  var oe = {};
27
- var ke;
27
+ var xe;
28
28
  function qe() {
29
- return ke || (ke = 1, process.env.NODE_ENV !== "production" && (function() {
29
+ return xe || (xe = 1, process.env.NODE_ENV !== "production" && (function() {
30
30
  function e(n) {
31
31
  if (n == null) return null;
32
32
  if (typeof n == "function")
@@ -50,7 +50,7 @@ function qe() {
50
50
  switch (typeof n.tag == "number" && console.error(
51
51
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
52
52
  ), n.$$typeof) {
53
- case _:
53
+ case E:
54
54
  return "Portal";
55
55
  case L:
56
56
  return n.displayName || "Context";
@@ -166,19 +166,19 @@ function qe() {
166
166
  value: q
167
167
  }), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
168
168
  }
169
- function k(n, b, h, y, I, q) {
169
+ function x(n, b, h, y, I, q) {
170
170
  var v = b.children;
171
171
  if (v !== void 0)
172
172
  if (y)
173
173
  if (K(v)) {
174
174
  for (y = 0; y < v.length; y++)
175
- x(v[y]);
175
+ k(v[y]);
176
176
  Object.freeze && Object.freeze(v);
177
177
  } else
178
178
  console.error(
179
179
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
180
180
  );
181
- else x(v);
181
+ else k(v);
182
182
  if (Q.call(b, "key")) {
183
183
  v = e(n);
184
184
  var M = Object.keys(b).filter(function(J) {
@@ -214,13 +214,13 @@ React keys must be passed directly to JSX without using spread:
214
214
  q
215
215
  );
216
216
  }
217
- function x(n) {
217
+ function k(n) {
218
218
  R(n) ? n._store && (n._store.validated = 1) : typeof n == "object" && n !== null && n.$$typeof === A && (n._payload.status === "fulfilled" ? R(n._payload.value) && n._payload.value._store && (n._payload.value._store.validated = 1) : n._store && (n._store.validated = 1));
219
219
  }
220
220
  function R(n) {
221
221
  return typeof n == "object" && n !== null && n.$$typeof === T;
222
222
  }
223
- var C = Ue, T = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), B = Symbol.for("react.profiler"), Y = Symbol.for("react.consumer"), L = Symbol.for("react.context"), G = Symbol.for("react.forward_ref"), N = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), se = Symbol.for("react.activity"), ae = Symbol.for("react.client.reference"), F = C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Q = Object.prototype.hasOwnProperty, K = Array.isArray, z = console.createTask ? console.createTask : function() {
223
+ var C = Ue, T = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), B = Symbol.for("react.profiler"), Y = Symbol.for("react.consumer"), L = Symbol.for("react.context"), G = Symbol.for("react.forward_ref"), N = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), se = Symbol.for("react.activity"), ae = Symbol.for("react.client.reference"), F = C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Q = Object.prototype.hasOwnProperty, K = Array.isArray, z = console.createTask ? console.createTask : function() {
224
224
  return null;
225
225
  };
226
226
  C = {
@@ -234,7 +234,7 @@ React keys must be passed directly to JSX without using spread:
234
234
  )(), ee = z(t(a)), re = {};
235
235
  oe.Fragment = w, oe.jsx = function(n, b, h) {
236
236
  var y = 1e4 > F.recentlyCreatedOwnerStacks++;
237
- return k(
237
+ return x(
238
238
  n,
239
239
  b,
240
240
  h,
@@ -244,7 +244,7 @@ React keys must be passed directly to JSX without using spread:
244
244
  );
245
245
  }, oe.jsxs = function(n, b, h) {
246
246
  var y = 1e4 > F.recentlyCreatedOwnerStacks++;
247
- return k(
247
+ return x(
248
248
  n,
249
249
  b,
250
250
  h,
@@ -255,9 +255,9 @@ React keys must be passed directly to JSX without using spread:
255
255
  };
256
256
  })()), oe;
257
257
  }
258
- var xe;
258
+ var ke;
259
259
  function Je() {
260
- return xe || (xe = 1, process.env.NODE_ENV === "production" ? le.exports = Be() : le.exports = qe()), le.exports;
260
+ return ke || (ke = 1, process.env.NODE_ENV === "production" ? le.exports = Be() : le.exports = qe()), le.exports;
261
261
  }
262
262
  var ge = Je();
263
263
  function we(e, o) {
@@ -295,8 +295,8 @@ function Qe(e) {
295
295
  Pe(a) && typeof ue == "function" && (a = ue(a._payload));
296
296
  const u = S.Children.toArray(a), d = u.find(tr);
297
297
  if (d) {
298
- const f = d.props.children, k = u.map((x) => x === d ? S.Children.count(f) > 1 ? S.Children.only(null) : S.isValidElement(f) ? f.props.children : null : x);
299
- return /* @__PURE__ */ ge.jsx(o, { ...i, ref: s, children: S.isValidElement(f) ? S.cloneElement(f, void 0, k) : null });
298
+ const f = d.props.children, x = u.map((k) => k === d ? S.Children.count(f) > 1 ? S.Children.only(null) : S.isValidElement(f) ? f.props.children : null : k);
299
+ return /* @__PURE__ */ ge.jsx(o, { ...i, ref: s, children: S.isValidElement(f) ? S.cloneElement(f, void 0, x) : null });
300
300
  }
301
301
  return /* @__PURE__ */ ge.jsx(o, { ...i, ref: s, children: a });
302
302
  });
@@ -347,35 +347,35 @@ function Oe() {
347
347
  for (var e, o, r = 0, t = "", s = arguments.length; r < s; r++) (e = arguments[r]) && (o = ze(e)) && (t && (t += " "), t += o);
348
348
  return t;
349
349
  }
350
- const Re = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = Oe, sr = (e, o) => (r) => {
350
+ const Re = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, _e = Oe, sr = (e, o) => (r) => {
351
351
  var t;
352
- if (o?.variants == null) return Ee(e, r?.class, r?.className);
352
+ if (o?.variants == null) return _e(e, r?.class, r?.className);
353
353
  const { variants: s, defaultVariants: a } = o, i = Object.keys(s).map((f) => {
354
- const k = r?.[f], x = a?.[f];
355
- if (k === null) return null;
356
- const R = Re(k) || Re(x);
354
+ const x = r?.[f], k = a?.[f];
355
+ if (x === null) return null;
356
+ const R = Re(x) || Re(k);
357
357
  return s[f][R];
358
- }), u = r && Object.entries(r).reduce((f, k) => {
359
- let [x, R] = k;
360
- return R === void 0 || (f[x] = R), f;
361
- }, {}), d = o == null || (t = o.compoundVariants) === null || t === void 0 ? void 0 : t.reduce((f, k) => {
362
- let { class: x, className: R, ...C } = k;
358
+ }), u = r && Object.entries(r).reduce((f, x) => {
359
+ let [k, R] = x;
360
+ return R === void 0 || (f[k] = R), f;
361
+ }, {}), d = o == null || (t = o.compoundVariants) === null || t === void 0 ? void 0 : t.reduce((f, x) => {
362
+ let { class: k, className: R, ...C } = x;
363
363
  return Object.entries(C).every((T) => {
364
- let [_, w] = T;
364
+ let [E, w] = T;
365
365
  return Array.isArray(w) ? w.includes({
366
366
  ...a,
367
367
  ...u
368
- }[_]) : {
368
+ }[E]) : {
369
369
  ...a,
370
370
  ...u
371
- }[_] === w;
371
+ }[E] === w;
372
372
  }) ? [
373
373
  ...f,
374
- x,
374
+ k,
375
375
  R
376
376
  ] : f;
377
377
  }, []);
378
- return Ee(e, i, d, r?.class, r?.className);
378
+ return _e(e, i, d, r?.class, r?.className);
379
379
  }, ar = (e, o) => {
380
380
  const r = new Array(e.length + o.length);
381
381
  for (let t = 0; t < e.length; t++)
@@ -390,7 +390,7 @@ const Re = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = Oe, s
390
390
  nextPart: e,
391
391
  validators: o,
392
392
  classGroupId: r
393
- }), me = "-", _e = [], lr = "arbitrary..", cr = (e) => {
393
+ }), me = "-", Ee = [], lr = "arbitrary..", cr = (e) => {
394
394
  const o = ur(e), {
395
395
  conflictingClassGroups: r,
396
396
  conflictingClassGroupModifiers: t
@@ -405,9 +405,9 @@ const Re = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = Oe, s
405
405
  getConflictingClassGroupIds: (i, u) => {
406
406
  if (u) {
407
407
  const d = t[i], f = r[i];
408
- return d ? f ? ar(f, d) : d : f || _e;
408
+ return d ? f ? ar(f, d) : d : f || Ee;
409
409
  }
410
- return r[i] || _e;
410
+ return r[i] || Ee;
411
411
  }
412
412
  };
413
413
  }, Ne = (e, o, r) => {
@@ -423,9 +423,9 @@ const Re = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = Oe, s
423
423
  return;
424
424
  const u = o === 0 ? e.join(me) : e.slice(o).join(me), d = i.length;
425
425
  for (let f = 0; f < d; f++) {
426
- const k = i[f];
427
- if (k.validator(u))
428
- return k.classGroupId;
426
+ const x = i[f];
427
+ if (x.validator(u))
428
+ return x.classGroupId;
429
429
  }
430
430
  }, dr = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
431
431
  const o = e.slice(1, -1), r = o.indexOf(":"), t = o.slice(0, r);
@@ -513,7 +513,7 @@ const Re = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = Oe, s
513
513
  baseClassName: r,
514
514
  maybePostfixModifierPosition: t,
515
515
  isExternal: s
516
- }), kr = (e) => {
516
+ }), xr = (e) => {
517
517
  const {
518
518
  prefix: o,
519
519
  experimentalParseClassName: r
@@ -521,29 +521,29 @@ const Re = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = Oe, s
521
521
  let t = (s) => {
522
522
  const a = [];
523
523
  let i = 0, u = 0, d = 0, f;
524
- const k = s.length;
525
- for (let _ = 0; _ < k; _++) {
526
- const w = s[_];
524
+ const x = s.length;
525
+ for (let E = 0; E < x; E++) {
526
+ const w = s[E];
527
527
  if (i === 0 && u === 0) {
528
528
  if (w === Se) {
529
- a.push(s.slice(d, _)), d = _ + 1;
529
+ a.push(s.slice(d, E)), d = E + 1;
530
530
  continue;
531
531
  }
532
532
  if (w === "/") {
533
- f = _;
533
+ f = E;
534
534
  continue;
535
535
  }
536
536
  }
537
537
  w === "[" ? i++ : w === "]" ? i-- : w === "(" ? u++ : w === ")" && u--;
538
538
  }
539
- const x = a.length === 0 ? s : s.slice(d);
540
- let R = x, C = !1;
541
- x.endsWith(he) ? (R = x.slice(0, -1), C = !0) : (
539
+ const k = a.length === 0 ? s : s.slice(d);
540
+ let R = k, C = !1;
541
+ k.endsWith(he) ? (R = k.slice(0, -1), C = !0) : (
542
542
  /**
543
543
  * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
544
544
  * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
545
545
  */
546
- x.startsWith(he) && (R = x.slice(1), C = !0)
546
+ k.startsWith(he) && (R = k.slice(1), C = !0)
547
547
  );
548
548
  const T = f && f > d ? f - d : void 0;
549
549
  return Ce(a, C, R, T);
@@ -560,7 +560,7 @@ const Re = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = Oe, s
560
560
  });
561
561
  }
562
562
  return t;
563
- }, xr = (e) => {
563
+ }, kr = (e) => {
564
564
  const o = /* @__PURE__ */ new Map();
565
565
  return e.orderSensitiveModifiers.forEach((r, t) => {
566
566
  o.set(r, 1e6 + t);
@@ -575,10 +575,10 @@ const Re = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = Oe, s
575
575
  };
576
576
  }, wr = (e) => ({
577
577
  cache: vr(e.cacheSize),
578
- parseClassName: kr(e),
579
- sortModifiers: xr(e),
578
+ parseClassName: xr(e),
579
+ sortModifiers: kr(e),
580
580
  ...cr(e)
581
- }), Rr = /\s+/, Er = (e, o) => {
581
+ }), Rr = /\s+/, _r = (e, o) => {
582
582
  const {
583
583
  parseClassName: r,
584
584
  getClassGroupId: t,
@@ -587,25 +587,25 @@ const Re = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = Oe, s
587
587
  } = o, i = [], u = e.trim().split(Rr);
588
588
  let d = "";
589
589
  for (let f = u.length - 1; f >= 0; f -= 1) {
590
- const k = u[f], {
591
- isExternal: x,
590
+ const x = u[f], {
591
+ isExternal: k,
592
592
  modifiers: R,
593
593
  hasImportantModifier: C,
594
594
  baseClassName: T,
595
- maybePostfixModifierPosition: _
596
- } = r(k);
597
- if (x) {
598
- d = k + (d.length > 0 ? " " + d : d);
595
+ maybePostfixModifierPosition: E
596
+ } = r(x);
597
+ if (k) {
598
+ d = x + (d.length > 0 ? " " + d : d);
599
599
  continue;
600
600
  }
601
- let w = !!_, j = t(w ? T.substring(0, _) : T);
601
+ let w = !!E, j = t(w ? T.substring(0, E) : T);
602
602
  if (!j) {
603
603
  if (!w) {
604
- d = k + (d.length > 0 ? " " + d : d);
604
+ d = x + (d.length > 0 ? " " + d : d);
605
605
  continue;
606
606
  }
607
607
  if (j = t(T), !j) {
608
- d = k + (d.length > 0 ? " " + d : d);
608
+ d = x + (d.length > 0 ? " " + d : d);
609
609
  continue;
610
610
  }
611
611
  w = !1;
@@ -619,10 +619,10 @@ const Re = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = Oe, s
619
619
  const D = G[N];
620
620
  i.push(Y + D);
621
621
  }
622
- d = k + (d.length > 0 ? " " + d : d);
622
+ d = x + (d.length > 0 ? " " + d : d);
623
623
  }
624
624
  return d;
625
- }, _r = (...e) => {
625
+ }, Er = (...e) => {
626
626
  let o = 0, r, t, s = "";
627
627
  for (; o < e.length; )
628
628
  (r = e[o++]) && (t = Me(r)) && (s && (s += " "), s += t);
@@ -637,17 +637,17 @@ const Re = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = Oe, s
637
637
  }, Sr = (e, ...o) => {
638
638
  let r, t, s, a;
639
639
  const i = (d) => {
640
- const f = o.reduce((k, x) => x(k), e());
640
+ const f = o.reduce((x, k) => k(x), e());
641
641
  return r = wr(f), t = r.cache.get, s = r.cache.set, a = u, u(d);
642
642
  }, u = (d) => {
643
643
  const f = t(d);
644
644
  if (f)
645
645
  return f;
646
- const k = Er(d, r);
647
- return s(d, k), k;
646
+ const x = _r(d, r);
647
+ return s(d, x), x;
648
648
  };
649
- return a = i, (...d) => a(_r(...d));
650
- }, Cr = [], E = (e) => {
649
+ return a = i, (...d) => a(Er(...d));
650
+ }, Cr = [], _ = (e) => {
651
651
  const o = (r) => r[e] || Cr;
652
652
  return o.isThemeGetter = !0, o;
653
653
  }, Ve = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Le = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ar = /^\d+\/\d+$/, Tr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Pr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, zr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Or = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, jr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, X = (e) => Ar.test(e), g = (e) => !!e && !Number.isNaN(Number(e)), W = (e) => !!e && Number.isInteger(Number(e)), pe = (e) => e.endsWith("%") && g(e.slice(0, -1)), V = (e) => Tr.test(e), Nr = () => !0, Ir = (e) => (
@@ -662,7 +662,7 @@ const Re = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = Oe, s
662
662
  const t = Le.exec(e);
663
663
  return t ? t[1] ? o(t[1]) : r : !1;
664
664
  }, Fe = (e) => e === "position" || e === "percentage", $e = (e) => e === "image" || e === "url", We = (e) => e === "length" || e === "size" || e === "bg-size", Ye = (e) => e === "length", Dr = (e) => e === "number", Ur = (e) => e === "family-name", De = (e) => e === "shadow", Br = () => {
665
- const e = E("color"), o = E("font"), r = E("text"), t = E("font-weight"), s = E("tracking"), a = E("leading"), i = E("breakpoint"), u = E("container"), d = E("spacing"), f = E("radius"), k = E("shadow"), x = E("inset-shadow"), R = E("text-shadow"), C = E("drop-shadow"), T = E("blur"), _ = E("perspective"), w = E("aspect"), j = E("ease"), B = E("animate"), Y = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], L = () => [
665
+ const e = _("color"), o = _("font"), r = _("text"), t = _("font-weight"), s = _("tracking"), a = _("leading"), i = _("breakpoint"), u = _("container"), d = _("spacing"), f = _("radius"), x = _("shadow"), k = _("inset-shadow"), R = _("text-shadow"), C = _("drop-shadow"), T = _("blur"), E = _("perspective"), w = _("aspect"), j = _("ease"), B = _("animate"), Y = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], L = () => [
666
666
  "center",
667
667
  "top",
668
668
  "bottom",
@@ -2052,7 +2052,7 @@ const Re = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = Oe, s
2052
2052
  // Deprecated since Tailwind CSS v4.0.0
2053
2053
  "",
2054
2054
  "none",
2055
- k,
2055
+ x,
2056
2056
  de,
2057
2057
  ce
2058
2058
  ]
@@ -2069,7 +2069,7 @@ const Re = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = Oe, s
2069
2069
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
2070
2070
  */
2071
2071
  "inset-shadow": [{
2072
- "inset-shadow": ["none", x, de, ce]
2072
+ "inset-shadow": ["none", k, de, ce]
2073
2073
  }],
2074
2074
  /**
2075
2075
  * Inset Box Shadow Color
@@ -2636,7 +2636,7 @@ const Re = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = Oe, s
2636
2636
  * @see https://tailwindcss.com/docs/perspective
2637
2637
  */
2638
2638
  perspective: [{
2639
- perspective: [_, c, l]
2639
+ perspective: [E, c, l]
2640
2640
  }],
2641
2641
  /**
2642
2642
  * Perspective Origin
@@ -3179,8 +3179,37 @@ function Zr({
3179
3179
  }
3180
3180
  );
3181
3181
  }
3182
+ const Qr = {
3183
+ darkMode: ["class"],
3184
+ content: [
3185
+ "./index.html",
3186
+ "./src/**/*.{js,ts,jsx,tsx}",
3187
+ "./.storybook/**/*.{js,ts,jsx,tsx}"
3188
+ ],
3189
+ theme: {
3190
+ extend: {
3191
+ colors: {
3192
+ "opac-white": "white"
3193
+ },
3194
+ textShadow: {
3195
+ sm: "1px 1px 1px var(--tw-shadow-color)",
3196
+ md: "2px 2px 4px var(--tw-shadow-color)",
3197
+ lg: "4px 4px 8px var(--tw-shadow-color)",
3198
+ none: "none"
3199
+ },
3200
+ listStyleType: {
3201
+ square: "square",
3202
+ roman: "upper-roman"
3203
+ }
3204
+ }
3205
+ },
3206
+ safelist: [
3207
+ "opac-white"
3208
+ ]
3209
+ };
3182
3210
  export {
3183
3211
  Zr as Button,
3184
- Xr as buttonVariants
3212
+ Xr as buttonVariants,
3213
+ Qr as dsConfig
3185
3214
  };
3186
3215
  //# sourceMappingURL=design-system.es.js.map