@rafal.lemieszewski/tide-ui 0.12.1 → 0.12.2

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.es.js CHANGED
@@ -21277,7 +21277,13 @@ const Ha = {
21277
21277
  children: [
21278
21278
  /* @__PURE__ */ k("p", { className: "text-body-sm font-medium mb-[var(--space-xsm)] text-[var(--color-text-primary)]", children: n }),
21279
21279
  t.map((a, o) => {
21280
- const i = typeof a.value == "number" ? a.value.toLocaleString() : a.value;
21280
+ const i = r[a.dataKey];
21281
+ let c;
21282
+ if (i?.type === "range-area" && a.payload) {
21283
+ const s = a.payload[a.dataKey];
21284
+ Array.isArray(s) && s.length === 2 ? c = `${s[0].toLocaleString()} – ${s[1].toLocaleString()}` : c = typeof a.value == "number" ? a.value.toLocaleString() : a.value;
21285
+ } else
21286
+ c = typeof a.value == "number" ? a.value.toLocaleString() : a.value;
21281
21287
  return /* @__PURE__ */ B("div", { className: "flex items-center gap-[var(--space-xsm)] text-body-sm", children: [
21282
21288
  /* @__PURE__ */ k(
21283
21289
  "div",
@@ -21288,10 +21294,10 @@ const Ha = {
21288
21294
  }
21289
21295
  ),
21290
21296
  /* @__PURE__ */ B("span", { className: "text-[var(--color-text-secondary)] min-w-0", children: [
21291
- r[a.dataKey]?.label || a.dataKey,
21297
+ i?.label || a.dataKey,
21292
21298
  ":"
21293
21299
  ] }),
21294
- /* @__PURE__ */ k("span", { className: "font-medium text-[var(--color-text-primary)] ml-auto", children: i })
21300
+ /* @__PURE__ */ k("span", { className: "font-medium text-[var(--color-text-primary)] ml-auto", children: c })
21295
21301
  ] }, o);
21296
21302
  })
21297
21303
  ]
@@ -21563,11 +21569,11 @@ function zve({
21563
21569
  name: n[L].label,
21564
21570
  stroke: P,
21565
21571
  strokeWidth: 2,
21566
- dot: {
21572
+ dot: n[L].showDots ? {
21567
21573
  fill: P,
21568
21574
  strokeWidth: 0,
21569
21575
  r: 3
21570
- },
21576
+ } : !1,
21571
21577
  activeDot: {
21572
21578
  r: 5,
21573
21579
  fill: P
@@ -21652,11 +21658,11 @@ function zve({
21652
21658
  name: n[L].label,
21653
21659
  stroke: P,
21654
21660
  strokeWidth: 2,
21655
- dot: {
21661
+ dot: n[L].showDots ? {
21656
21662
  fill: P,
21657
21663
  strokeWidth: 0,
21658
21664
  r: 3
21659
- },
21665
+ } : !1,
21660
21666
  activeDot: {
21661
21667
  r: 5,
21662
21668
  fill: P