1mpacto-react-ui 0.0.60 → 0.0.61

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.mjs CHANGED
@@ -1576,12 +1576,17 @@ const u4 = (e, t, n) => {
1576
1576
  }, s4 = (e, t) => e.reduce((n, r) => {
1577
1577
  const a = String(r[t]);
1578
1578
  return n[a] || (n[a] = []), n[a].push(r), n;
1579
- }, {}), yS = (e, t, n) => {
1580
- const r = e.map((a) => ({
1581
- ...a,
1582
- [t]: u4(a.date, n ?? "dd/MM/yyyy")
1579
+ }, {}), yS = ({
1580
+ value: e,
1581
+ keyDate: t = "date",
1582
+ keyFormat: n = "formatDate",
1583
+ format: r = "dd/MM/yyyy"
1584
+ }) => {
1585
+ const a = e.map((o) => ({
1586
+ ...o,
1587
+ [n]: u4(o[t], r)
1583
1588
  }));
1584
- return s4(r, t);
1589
+ return s4(a, n);
1585
1590
  }, l4 = (e, t = 2) => {
1586
1591
  let n = parseFloat(fs(e) ? e : 0);
1587
1592
  return n = (+(Math.round(n + "e" + t) + "e-" + t)).toFixed(t), n = Number(n), n;