@prefecthq/prefab-ui 0.14.1 → 0.15.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.
@@ -1,4 +1,4 @@
1
- import { a as Y, j as D, c as rt } from "./embed-DZKrLZHP.mjs";
1
+ import { a as Y, j as D, c as rt } from "./embed-CoEkwCbq.mjs";
2
2
  import { n as ca, g as ce, a as R, R as _ } from "./icons-CImNZgDa.mjs";
3
3
  var pu, Qh;
4
4
  function Ke() {
@@ -21250,14 +21250,14 @@ function cF({
21250
21250
  className: s
21251
21251
  }) {
21252
21252
  if (typeof e == "string") return null;
21253
- const f = oa(t);
21253
+ const f = R.useMemo(() => e, [JSON.stringify(e)]), l = oa(t);
21254
21254
  return /* @__PURE__ */ D.jsx(
21255
21255
  ir,
21256
21256
  {
21257
- config: f,
21257
+ config: l,
21258
21258
  className: s,
21259
21259
  style: { height: a, aspectRatio: "auto" },
21260
- children: /* @__PURE__ */ D.jsxs(zB, { children: [
21260
+ children: /* @__PURE__ */ D.jsxs(zB, { data: f, children: [
21261
21261
  c && /* @__PURE__ */ D.jsx(ra, {}),
21262
21262
  /* @__PURE__ */ D.jsx(
21263
21263
  pt,
@@ -21284,20 +21284,17 @@ function cF({
21284
21284
  i && /* @__PURE__ */ D.jsx(ia, { dataKey: i, type: "number", name: i, range: [40, 400] }),
21285
21285
  u && /* @__PURE__ */ D.jsx(Dr, { content: /* @__PURE__ */ D.jsx(ar, {}) }),
21286
21286
  o && /* @__PURE__ */ D.jsx(Bn, { content: /* @__PURE__ */ D.jsx(Nr, {}) }),
21287
- t.map((l) => {
21288
- const p = t.length === 1 ? e : e.filter(
21289
- (h) => h._series === l.dataKey
21290
- );
21291
- return /* @__PURE__ */ D.jsx(
21292
- aa,
21293
- {
21294
- name: l.label ?? l.dataKey,
21295
- data: p,
21296
- fill: `var(--color-${l.dataKey})`
21297
- },
21298
- l.dataKey
21299
- );
21300
- })
21287
+ t.map((p) => /* @__PURE__ */ D.jsx(
21288
+ aa,
21289
+ {
21290
+ name: p.label ?? p.dataKey,
21291
+ data: t.length === 1 ? f : f.filter(
21292
+ (h) => h._series === p.dataKey
21293
+ ),
21294
+ fill: `var(--color-${p.dataKey})`
21295
+ },
21296
+ p.dataKey
21297
+ ))
21301
21298
  ] })
21302
21299
  }
21303
21300
  );
@@ -1,4 +1,4 @@
1
- import { j as A, c as Y, b as lt, B as En, P as Fn, d as In, e as Bn } from "./embed-DZKrLZHP.mjs";
1
+ import { j as A, c as Y, b as lt, B as En, P as Fn, d as In, e as Bn } from "./embed-CoEkwCbq.mjs";
2
2
  import { R as m, a as x, f as jn, e as Hn, h as St, j as An } from "./icons-CImNZgDa.mjs";
3
3
  const pt = 6048e5, qn = 864e5, Ct = 6e4, xt = 36e5, ht = Symbol.for("constructDateFrom");
4
4
  function j(e, t) {
@@ -1,4 +1,4 @@
1
- import { j as ce, c as bi } from "./embed-DZKrLZHP.mjs";
1
+ import { j as ce, c as bi } from "./embed-CoEkwCbq.mjs";
2
2
  import { g as Zt, a as il } from "./icons-CImNZgDa.mjs";
3
3
  var kt, Cr;
4
4
  function ol() {