@alfadocs/ui-kit 0.32.0 → 0.32.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ import { forwardRef as Q, useId as X, useCallback as L, useRef as Z, useMemo as
3
3
  import { c as V } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as U } from "react-i18next";
5
5
  import { u as et } from "./use-count-up-BLLetaZ8.js";
6
- const O = V("ds:flex ds:flex-col", {
6
+ const O = V("ds:flex ds:flex-col ds:h-full", {
7
7
  variants: {
8
8
  variant: {
9
9
  default: "ds:gap-[var(--spacing-xs)]",
@@ -108,13 +108,13 @@ function nt({
108
108
  deltaFormat: c = "decimal",
109
109
  locale: a
110
110
  }) {
111
- const { t: e, i18n: o } = U(), l = typeof t == "string" ? t : new Intl.NumberFormat(a ?? o.language, {
111
+ const { t: e, i18n: l } = U(), o = typeof t == "string" ? t : new Intl.NumberFormat(a ?? l.language, {
112
112
  style: c === "percent" ? "percent" : "decimal"
113
113
  }).format(c === "percent" ? t / 100 : t);
114
114
  return /* @__PURE__ */ z("span", { className: st({ trend: d }), children: [
115
115
  /* @__PURE__ */ i("span", { "aria-hidden": "true", children: rt[d] }),
116
116
  /* @__PURE__ */ i("span", { className: "ds:sr-only", children: e(at[d]) }),
117
- l
117
+ o
118
118
  ] });
119
119
  }
120
120
  function it(d, t) {
@@ -122,9 +122,9 @@ function it(d, t) {
122
122
  if (c === "") return null;
123
123
  let a = "", e = c;
124
124
  e.startsWith("+") ? (a = "+", e = e.slice(1).trimStart()) : (e.startsWith("-") || e.startsWith("−")) && (a = "-", e = e.slice(1).trimStart());
125
- let o = "";
126
- const l = e.match(/[KMB]$/i);
127
- l && (o = l[0], e = e.slice(0, -1).trimEnd());
125
+ let l = "";
126
+ const o = e.match(/[KMB]$/i);
127
+ o && (l = o[0], e = e.slice(0, -1).trimEnd());
128
128
  let m = "", u = ".";
129
129
  try {
130
130
  const b = new Intl.NumberFormat(t).formatToParts(12345.6);
@@ -136,12 +136,12 @@ function it(d, t) {
136
136
  if (g && !(g[2].length === 3 && m === ".")) {
137
137
  const n = Number.parseFloat(e);
138
138
  if (Number.isFinite(n))
139
- return { target: n, sign: a, suffix: o };
139
+ return { target: n, sign: a, suffix: l };
140
140
  }
141
141
  let s = e;
142
142
  m !== "" && (s = s.split(m).join("")), u !== "." && (s = s.split(u).join(".")), s = s.replace(/[\s\u00A0\u202F]/g, "");
143
143
  const v = Number.parseFloat(s);
144
- return Number.isFinite(v) ? { target: v, sign: a, suffix: o } : null;
144
+ return Number.isFinite(v) ? { target: v, sign: a, suffix: l } : null;
145
145
  }
146
146
  const dt = Q(
147
147
  ({
@@ -150,8 +150,8 @@ const dt = Q(
150
150
  format: c,
151
151
  currency: a,
152
152
  locale: e,
153
- trend: o,
154
- delta: l,
153
+ trend: l,
154
+ delta: o,
155
155
  deltaFormat: m = "decimal",
156
156
  icon: u,
157
157
  loading: g = !1,
@@ -296,11 +296,11 @@ const dt = Q(
296
296
  }
297
297
  )
298
298
  ) : /* @__PURE__ */ i("span", { className: P({ size: y, variant: x }), children: K }),
299
- o != null && l != null && /* @__PURE__ */ i(
299
+ l != null && o != null && /* @__PURE__ */ i(
300
300
  nt,
301
301
  {
302
- trend: o,
303
- delta: l,
302
+ trend: l,
303
+ delta: o,
304
304
  deltaFormat: m,
305
305
  locale: e
306
306
  }
@@ -314,4 +314,4 @@ dt.displayName = "Stat";
314
314
  export {
315
315
  dt as S
316
316
  };
317
- //# sourceMappingURL=stat-CYEx8sIR.js.map
317
+ //# sourceMappingURL=stat-EC2Papj7.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "0.32.0",
3
+ "packageVersion": "0.32.1",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -1,4 +1,4 @@
1
- import { S as o } from "../../_chunks/stat-CYEx8sIR.js";
1
+ import { S as o } from "../../_chunks/stat-EC2Papj7.js";
2
2
  export {
3
3
  o as Stat
4
4
  };
package/dist/index.js CHANGED
@@ -60,7 +60,7 @@ import { M as vr } from "./_chunks/map-view-knHSNLoe.js";
60
60
  import { R as Wr } from "./_chunks/rating-BRD7O74e.js";
61
61
  import { S as Ur } from "./_chunks/skeleton-CZbwyJAA.js";
62
62
  import { S as Yr, s as jr, u as zr } from "./_chunks/sparkline-DEROcSl0.js";
63
- import { S as Qr } from "./_chunks/stat-CYEx8sIR.js";
63
+ import { S as Qr } from "./_chunks/stat-EC2Papj7.js";
64
64
  import { T as Xr } from "./_chunks/tag-CyoaEmf_.js";
65
65
  import { T as $r, t as ao } from "./_chunks/timeline-DQa5Tyz4.js";
66
66
  import { T as ro } from "./_chunks/timestamp-BV2lC-wV.js";