@prefecthq/prefab-ui-docs 0.17.0 → 0.18.0

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 { e as V, j as D, c as Fe } from "./embed-BCPaWfQN.mjs";
1
+ import { e as V, j as D, c as Fe } from "./embed-hOWEFnqe.mjs";
2
2
  import { d as Si, g as re, r as M, R as P } from "./icons-w8tvN_30.mjs";
3
3
  import { w as Qg, n as eb, b as pe, M as Ef, S as v0, T as h0, l as tb, t as $a, d as Ze, p as il, s as Ni, a as rb, F as y0, G as m0, H as g0, I as b0, J as x0, K as O0, L as A0, N as w0, O as P0, c as S0, P as _0, Q as j0 } from "./string-kGvNrjOo.mjs";
4
4
  import { b as al, p as Pn } from "./band-TE_TbDmh.mjs";
@@ -18751,21 +18751,22 @@ function LN({
18751
18751
  barRadius: o = 4,
18752
18752
  showLegend: u = !1,
18753
18753
  showTooltip: c = !0,
18754
- showGrid: s = !0,
18755
- showYAxis: f = !0,
18756
- yAxisFormat: l = "auto",
18757
- className: p
18754
+ animate: s = !0,
18755
+ showGrid: f = !0,
18756
+ showYAxis: l = !0,
18757
+ yAxisFormat: p = "auto",
18758
+ className: d
18758
18759
  }) {
18759
18760
  if (typeof t == "string") return null;
18760
- const d = Ai(e);
18761
+ const y = Ai(e);
18761
18762
  return /* @__PURE__ */ D.jsx(
18762
18763
  kt,
18763
18764
  {
18764
- config: d,
18765
- className: p,
18765
+ config: y,
18766
+ className: d,
18766
18767
  style: { height: n, aspectRatio: "auto" },
18767
18768
  children: /* @__PURE__ */ D.jsxs(vN, { data: t, layout: a ? "vertical" : "horizontal", children: [
18768
- s && /* @__PURE__ */ D.jsx(gi, { vertical: a, horizontal: !a }),
18769
+ f && /* @__PURE__ */ D.jsx(gi, { vertical: a, horizontal: !a }),
18769
18770
  a && r && /* @__PURE__ */ D.jsx(
18770
18771
  Ye,
18771
18772
  {
@@ -18786,26 +18787,27 @@ function LN({
18786
18787
  tickMargin: 8
18787
18788
  }
18788
18789
  ),
18789
- !a && f && /* @__PURE__ */ D.jsx(
18790
+ !a && l && /* @__PURE__ */ D.jsx(
18790
18791
  Ye,
18791
18792
  {
18792
18793
  tickLine: !1,
18793
18794
  axisLine: !1,
18794
18795
  tickMargin: 8,
18795
- tickFormatter: l === "compact" ? gp : void 0
18796
+ tickFormatter: p === "compact" ? gp : void 0
18796
18797
  }
18797
18798
  ),
18798
18799
  c && /* @__PURE__ */ D.jsx(cr, { content: /* @__PURE__ */ D.jsx(Mt, {}) }),
18799
18800
  u && /* @__PURE__ */ D.jsx(sn, { content: /* @__PURE__ */ D.jsx(sr, {}) }),
18800
- e.map((y) => /* @__PURE__ */ D.jsx(
18801
+ e.map((h) => /* @__PURE__ */ D.jsx(
18801
18802
  or,
18802
18803
  {
18803
- dataKey: y.dataKey,
18804
- fill: `var(--color-${y.dataKey})`,
18804
+ isAnimationActive: s,
18805
+ dataKey: h.dataKey,
18806
+ fill: `var(--color-${h.dataKey})`,
18805
18807
  radius: o,
18806
18808
  stackId: i ? "stack" : void 0
18807
18809
  },
18808
- y.dataKey
18810
+ h.dataKey
18809
18811
  ))
18810
18812
  ] })
18811
18813
  }
@@ -18825,21 +18827,22 @@ function qN({
18825
18827
  showDots: a = !1,
18826
18828
  showLegend: o = !1,
18827
18829
  showTooltip: u = !0,
18828
- showGrid: c = !0,
18829
- showYAxis: s = !0,
18830
- yAxisFormat: f = "auto",
18831
- className: l
18830
+ animate: c = !0,
18831
+ showGrid: s = !0,
18832
+ showYAxis: f = !0,
18833
+ yAxisFormat: l = "auto",
18834
+ className: p
18832
18835
  }) {
18833
18836
  if (typeof t == "string") return null;
18834
- const p = Ai(e);
18837
+ const d = Ai(e);
18835
18838
  return /* @__PURE__ */ D.jsx(
18836
18839
  kt,
18837
18840
  {
18838
- config: p,
18839
- className: l,
18841
+ config: d,
18842
+ className: p,
18840
18843
  style: { height: n, aspectRatio: "auto" },
18841
18844
  children: /* @__PURE__ */ D.jsxs(dN, { data: t, children: [
18842
- c && /* @__PURE__ */ D.jsx(gi, { vertical: !1 }),
18845
+ s && /* @__PURE__ */ D.jsx(gi, { vertical: !1 }),
18843
18846
  r && /* @__PURE__ */ D.jsx(
18844
18847
  Xe,
18845
18848
  {
@@ -18849,27 +18852,28 @@ function qN({
18849
18852
  tickMargin: 8
18850
18853
  }
18851
18854
  ),
18852
- s && /* @__PURE__ */ D.jsx(
18855
+ f && /* @__PURE__ */ D.jsx(
18853
18856
  Ye,
18854
18857
  {
18855
18858
  tickLine: !1,
18856
18859
  axisLine: !1,
18857
18860
  tickMargin: 8,
18858
- tickFormatter: f === "compact" ? gp : void 0
18861
+ tickFormatter: l === "compact" ? gp : void 0
18859
18862
  }
18860
18863
  ),
18861
18864
  u && /* @__PURE__ */ D.jsx(cr, { content: /* @__PURE__ */ D.jsx(Mt, {}) }),
18862
18865
  o && /* @__PURE__ */ D.jsx(sn, { content: /* @__PURE__ */ D.jsx(sr, {}) }),
18863
- e.map((d) => /* @__PURE__ */ D.jsx(
18866
+ e.map((y) => /* @__PURE__ */ D.jsx(
18864
18867
  bi,
18865
18868
  {
18866
- dataKey: d.dataKey,
18869
+ isAnimationActive: c,
18870
+ dataKey: y.dataKey,
18867
18871
  type: d0[i] ?? i,
18868
- stroke: `var(--color-${d.dataKey})`,
18872
+ stroke: `var(--color-${y.dataKey})`,
18869
18873
  strokeWidth: 2,
18870
18874
  dot: a
18871
18875
  },
18872
- d.dataKey
18876
+ y.dataKey
18873
18877
  ))
18874
18878
  ] })
18875
18879
  }
@@ -18885,21 +18889,22 @@ function BN({
18885
18889
  showDots: o = !1,
18886
18890
  showLegend: u = !1,
18887
18891
  showTooltip: c = !0,
18888
- showGrid: s = !0,
18889
- showYAxis: f = !0,
18890
- yAxisFormat: l = "auto",
18891
- className: p
18892
+ animate: s = !0,
18893
+ showGrid: f = !0,
18894
+ showYAxis: l = !0,
18895
+ yAxisFormat: p = "auto",
18896
+ className: d
18892
18897
  }) {
18893
18898
  if (typeof t == "string") return null;
18894
- const d = Ai(e);
18899
+ const y = Ai(e);
18895
18900
  return /* @__PURE__ */ D.jsx(
18896
18901
  kt,
18897
18902
  {
18898
- config: d,
18899
- className: p,
18903
+ config: y,
18904
+ className: d,
18900
18905
  style: { height: n, aspectRatio: "auto" },
18901
18906
  children: /* @__PURE__ */ D.jsxs(gN, { data: t, children: [
18902
- s && /* @__PURE__ */ D.jsx(gi, { vertical: !1 }),
18907
+ f && /* @__PURE__ */ D.jsx(gi, { vertical: !1 }),
18903
18908
  r && /* @__PURE__ */ D.jsx(
18904
18909
  Xe,
18905
18910
  {
@@ -18909,29 +18914,30 @@ function BN({
18909
18914
  tickMargin: 8
18910
18915
  }
18911
18916
  ),
18912
- f && /* @__PURE__ */ D.jsx(
18917
+ l && /* @__PURE__ */ D.jsx(
18913
18918
  Ye,
18914
18919
  {
18915
18920
  tickLine: !1,
18916
18921
  axisLine: !1,
18917
18922
  tickMargin: 8,
18918
- tickFormatter: l === "compact" ? gp : void 0
18923
+ tickFormatter: p === "compact" ? gp : void 0
18919
18924
  }
18920
18925
  ),
18921
18926
  c && /* @__PURE__ */ D.jsx(cr, { content: /* @__PURE__ */ D.jsx(Mt, {}) }),
18922
18927
  u && /* @__PURE__ */ D.jsx(sn, { content: /* @__PURE__ */ D.jsx(sr, {}) }),
18923
- e.map((y) => /* @__PURE__ */ D.jsx(
18928
+ e.map((h) => /* @__PURE__ */ D.jsx(
18924
18929
  Rt,
18925
18930
  {
18926
- dataKey: y.dataKey,
18931
+ isAnimationActive: s,
18932
+ dataKey: h.dataKey,
18927
18933
  type: d0[a] ?? a,
18928
- fill: `var(--color-${y.dataKey})`,
18929
- stroke: `var(--color-${y.dataKey})`,
18934
+ fill: `var(--color-${h.dataKey})`,
18935
+ stroke: `var(--color-${h.dataKey})`,
18930
18936
  fillOpacity: 0.4,
18931
18937
  dot: o,
18932
18938
  stackId: i ? "stack" : void 0
18933
18939
  },
18934
- y.dataKey
18940
+ h.dataKey
18935
18941
  ))
18936
18942
  ] })
18937
18943
  }
@@ -18947,29 +18953,31 @@ function FN({
18947
18953
  paddingAngle: o = 0,
18948
18954
  showLegend: u = !1,
18949
18955
  showTooltip: c = !0,
18950
- className: s
18956
+ animate: s = !0,
18957
+ className: f
18951
18958
  }) {
18952
18959
  if (typeof t == "string") return null;
18953
- const f = p0(t, r), l = t.map((h, v) => ({
18954
- ...h,
18955
- fill: jt[v % jt.length]
18956
- })), p = a ? "60%" : "80%", d = i > 0 ? `${Math.round(i / 100 * (a ? 60 : 80))}%` : 0, y = u ? n - 36 : n;
18957
- return /* @__PURE__ */ D.jsxs("div", { className: s, children: [
18960
+ const l = p0(t, r), p = t.map((v, g) => ({
18961
+ ...v,
18962
+ fill: jt[g % jt.length]
18963
+ })), d = a ? "60%" : "80%", y = i > 0 ? `${Math.round(i / 100 * (a ? 60 : 80))}%` : 0, h = u ? n - 36 : n;
18964
+ return /* @__PURE__ */ D.jsxs("div", { className: f, children: [
18958
18965
  /* @__PURE__ */ D.jsx(
18959
18966
  kt,
18960
18967
  {
18961
- config: f,
18962
- style: { height: y, aspectRatio: "auto" },
18968
+ config: l,
18969
+ style: { height: h, aspectRatio: "auto" },
18963
18970
  children: /* @__PURE__ */ D.jsxs(hN, { children: [
18964
18971
  c && /* @__PURE__ */ D.jsx(cr, { content: /* @__PURE__ */ D.jsx(Mt, { nameKey: r }) }),
18965
18972
  /* @__PURE__ */ D.jsx(
18966
18973
  bt,
18967
18974
  {
18968
- data: l,
18975
+ isAnimationActive: s,
18976
+ data: p,
18969
18977
  dataKey: e,
18970
18978
  nameKey: r,
18971
- innerRadius: d,
18972
- outerRadius: p,
18979
+ innerRadius: y,
18980
+ outerRadius: d,
18973
18981
  label: a,
18974
18982
  paddingAngle: o
18975
18983
  }
@@ -18988,7 +18996,7 @@ function FN({
18988
18996
  paddingTop: "8px",
18989
18997
  fontSize: "12px"
18990
18998
  },
18991
- children: l.map((h, v) => /* @__PURE__ */ D.jsxs(
18999
+ children: p.map((v, g) => /* @__PURE__ */ D.jsxs(
18992
19000
  "div",
18993
19001
  {
18994
19002
  style: { display: "flex", alignItems: "center", gap: "6px" },
@@ -19000,15 +19008,15 @@ function FN({
19000
19008
  width: "8px",
19001
19009
  height: "8px",
19002
19010
  borderRadius: "2px",
19003
- backgroundColor: h.fill,
19011
+ backgroundColor: v.fill,
19004
19012
  flexShrink: 0
19005
19013
  }
19006
19014
  }
19007
19015
  ),
19008
- String(h[r] ?? "")
19016
+ String(v[r] ?? "")
19009
19017
  ]
19010
19018
  },
19011
- v
19019
+ g
19012
19020
  ))
19013
19021
  }
19014
19022
  )
@@ -19023,33 +19031,35 @@ function zN({
19023
19031
  showDots: a = !1,
19024
19032
  showLegend: o = !1,
19025
19033
  showTooltip: u = !0,
19026
- showGrid: c = !0,
19027
- className: s
19034
+ animate: c = !0,
19035
+ showGrid: s = !0,
19036
+ className: f
19028
19037
  }) {
19029
19038
  if (typeof t == "string") return null;
19030
- const f = Ai(e);
19039
+ const l = Ai(e);
19031
19040
  return /* @__PURE__ */ D.jsx(
19032
19041
  kt,
19033
19042
  {
19034
- config: f,
19035
- className: s,
19043
+ config: l,
19044
+ className: f,
19036
19045
  style: { height: n, aspectRatio: "auto" },
19037
19046
  children: /* @__PURE__ */ D.jsxs(yN, { data: t, children: [
19038
- c && /* @__PURE__ */ D.jsx(tO, {}),
19047
+ s && /* @__PURE__ */ D.jsx(tO, {}),
19039
19048
  r && /* @__PURE__ */ D.jsx(ar, { dataKey: r }),
19040
19049
  u && /* @__PURE__ */ D.jsx(cr, { content: /* @__PURE__ */ D.jsx(Mt, {}) }),
19041
19050
  o && /* @__PURE__ */ D.jsx(sn, { content: /* @__PURE__ */ D.jsx(sr, {}) }),
19042
- e.map((l) => /* @__PURE__ */ D.jsx(
19051
+ e.map((p) => /* @__PURE__ */ D.jsx(
19043
19052
  yi,
19044
19053
  {
19045
- dataKey: l.dataKey,
19046
- fill: `var(--color-${l.dataKey})`,
19054
+ isAnimationActive: c,
19055
+ dataKey: p.dataKey,
19056
+ fill: `var(--color-${p.dataKey})`,
19047
19057
  fillOpacity: i ? 0.3 : 0,
19048
- stroke: `var(--color-${l.dataKey})`,
19058
+ stroke: `var(--color-${p.dataKey})`,
19049
19059
  strokeWidth: 2,
19050
19060
  dot: a
19051
19061
  },
19052
- l.dataKey
19062
+ p.dataKey
19053
19063
  ))
19054
19064
  ] })
19055
19065
  }
@@ -19065,30 +19075,31 @@ function KN({
19065
19075
  endAngle: o = 0,
19066
19076
  showLegend: u = !1,
19067
19077
  showTooltip: c = !0,
19068
- className: s
19078
+ animate: s = !0,
19079
+ className: f
19069
19080
  }) {
19070
19081
  if (typeof t == "string") return null;
19071
- const f = p0(t, r), l = t.map((p, d) => ({
19072
- ...p,
19073
- fill: jt[d % jt.length]
19082
+ const l = p0(t, r), p = t.map((d, y) => ({
19083
+ ...d,
19084
+ fill: jt[y % jt.length]
19074
19085
  }));
19075
19086
  return /* @__PURE__ */ D.jsx(
19076
19087
  kt,
19077
19088
  {
19078
- config: f,
19079
- className: s,
19089
+ config: l,
19090
+ className: f,
19080
19091
  style: { height: n, aspectRatio: "auto" },
19081
19092
  children: /* @__PURE__ */ D.jsxs(
19082
19093
  bN,
19083
19094
  {
19084
- data: l,
19095
+ data: p,
19085
19096
  innerRadius: i,
19086
19097
  startAngle: a,
19087
19098
  endAngle: o,
19088
19099
  children: [
19089
19100
  c && /* @__PURE__ */ D.jsx(cr, { content: /* @__PURE__ */ D.jsx(Mt, { nameKey: r }) }),
19090
19101
  u && /* @__PURE__ */ D.jsx(sn, { content: /* @__PURE__ */ D.jsx(sr, { nameKey: r }) }),
19091
- /* @__PURE__ */ D.jsx(mi, { dataKey: e })
19102
+ /* @__PURE__ */ D.jsx(mi, { isAnimationActive: s, dataKey: e })
19092
19103
  ]
19093
19104
  }
19094
19105
  )
@@ -19104,19 +19115,20 @@ function WN({
19104
19115
  height: a = 300,
19105
19116
  showLegend: o = !1,
19106
19117
  showTooltip: u = !0,
19107
- showGrid: c = !0,
19108
- className: s
19118
+ animate: c = !0,
19119
+ showGrid: s = !0,
19120
+ className: f
19109
19121
  }) {
19110
19122
  if (typeof t == "string") return null;
19111
- const f = M.useMemo(() => t, [JSON.stringify(t)]), l = Ai(e);
19123
+ const l = M.useMemo(() => t, [JSON.stringify(t)]), p = Ai(e);
19112
19124
  return /* @__PURE__ */ D.jsx(
19113
19125
  kt,
19114
19126
  {
19115
- config: l,
19116
- className: s,
19127
+ config: p,
19128
+ className: f,
19117
19129
  style: { height: a, aspectRatio: "auto" },
19118
- children: /* @__PURE__ */ D.jsxs(mN, { data: f, children: [
19119
- c && /* @__PURE__ */ D.jsx(gi, {}),
19130
+ children: /* @__PURE__ */ D.jsxs(mN, { data: l, children: [
19131
+ s && /* @__PURE__ */ D.jsx(gi, {}),
19120
19132
  /* @__PURE__ */ D.jsx(
19121
19133
  Xe,
19122
19134
  {
@@ -19142,16 +19154,17 @@ function WN({
19142
19154
  i && /* @__PURE__ */ D.jsx(xi, { dataKey: i, type: "number", name: i, range: [40, 400] }),
19143
19155
  u && /* @__PURE__ */ D.jsx(cr, { content: /* @__PURE__ */ D.jsx(Mt, {}) }),
19144
19156
  o && /* @__PURE__ */ D.jsx(sn, { content: /* @__PURE__ */ D.jsx(sr, {}) }),
19145
- e.map((p) => /* @__PURE__ */ D.jsx(
19157
+ e.map((d) => /* @__PURE__ */ D.jsx(
19146
19158
  Oi,
19147
19159
  {
19148
- name: p.label ?? p.dataKey,
19149
- data: e.length === 1 ? f : f.filter(
19150
- (d) => d._series === p.dataKey
19160
+ isAnimationActive: c,
19161
+ name: d.label ?? d.dataKey,
19162
+ data: e.length === 1 ? l : l.filter(
19163
+ (y) => y._series === d.dataKey
19151
19164
  ),
19152
- fill: `var(--color-${p.dataKey})`
19165
+ fill: `var(--color-${d.dataKey})`
19153
19166
  },
19154
- p.dataKey
19167
+ d.dataKey
19155
19168
  ))
19156
19169
  ] })
19157
19170
  }
@@ -1,4 +1,4 @@
1
- import { j as A, c as Y, b as lt, B as En, P as Fn, a as In, d as Bn } from "./embed-BCPaWfQN.mjs";
1
+ import { j as A, c as Y, b as lt, B as En, P as Fn, a as In, d as Bn } from "./embed-hOWEFnqe.mjs";
2
2
  import { R as m, r as x, C as jn, a as Hn, b as St, c as An } from "./icons-w8tvN_30.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-BCPaWfQN.mjs";
1
+ import { j as ce, c as bi } from "./embed-hOWEFnqe.mjs";
2
2
  import { g as Zt, r as il } from "./icons-w8tvN_30.mjs";
3
3
  var kt, Cr;
4
4
  function ol() {