@gravitee/graphene-charts 2.44.0 → 2.45.0-monaco-base.11a7a3d

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,6 +3,11 @@ import * as React from 'react';
3
3
  export interface MetricTrend {
4
4
  value: number;
5
5
  direction: 'up' | 'down' | 'neutral';
6
+ /**
7
+ * Signals a zero-baseline trend: previous period was 0 and current > 0.
8
+ * When true, the UI renders "New" instead of a numeric percentage.
9
+ */
10
+ isNew?: boolean;
6
11
  }
7
12
  export type MetricTrendSentiment = 'higher-is-better' | 'lower-is-better' | 'neutral';
8
13
  export interface MetricProps extends React.ComponentProps<'div'> {
@@ -1 +1 @@
1
- {"version":3,"file":"Metric.d.ts","sourceRoot":"","sources":["../../../src/charts/Metric/Metric.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAQlE,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS,CAAC;CACtC;AAED,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,GAAG,iBAAiB,GAAG,SAAS,CAAC;AAEtF,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IAC9D,iDAAiD;IACjD,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yCAAyC;IACzC,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACnD,2BAA2B;IAC3B,KAAK,CAA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B,oBAAoB,CAAC,KAAK,EAAE,SAAS,eAAe,EAAE,GAAG,MAAM,CAM9E;AAED,+CAA+C;AAC/C,wBAAgB,UAAU,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,CAExD;AAID,+CAA+C;AAC/C,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,SAAS,CAS9F;AAQD,+CAA+C;AAC/C,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,eAAe,EAAE,EAAE,IAAI,EAAE,SAAS,GAAG,MAAM,CAkB7G;AAqKD,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,gBAAgB,qBAoFhG"}
package/dist/index.js CHANGED
@@ -869,7 +869,10 @@ var He = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
869
869
  }]]), $e = Y("chevron-right", [["path", {
870
870
  d: "m9 18 6-6-6-6",
871
871
  key: "mthhwq"
872
- }]]), et = Y("circle-x", [
872
+ }]]), et = Y("chevron-up", [["path", {
873
+ d: "m18 15-6-6-6 6",
874
+ key: "153udz"
875
+ }]]), tt = Y("circle-x", [
873
876
  ["circle", {
874
877
  cx: "12",
875
878
  cy: "12",
@@ -884,7 +887,7 @@ var He = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
884
887
  d: "m9 9 6 6",
885
888
  key: "z0biqf"
886
889
  }]
887
- ]), tt = Y("clock", [["circle", {
890
+ ]), nt = Y("clock", [["circle", {
888
891
  cx: "12",
889
892
  cy: "12",
890
893
  r: "10",
@@ -892,7 +895,7 @@ var He = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
892
895
  }], ["path", {
893
896
  d: "M12 6v6l4 2",
894
897
  key: "mmk7yg"
895
- }]]), nt = Y("server", [
898
+ }]]), rt = Y("server", [
896
899
  ["rect", {
897
900
  width: "20",
898
901
  height: "8",
@@ -925,19 +928,7 @@ var He = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
925
928
  y2: "18",
926
929
  key: "nzw8ys"
927
930
  }]
928
- ]), rt = Y("trending-down", [["path", {
929
- d: "M16 17h6v-6",
930
- key: "t6n2it"
931
- }], ["path", {
932
- d: "m22 17-8.5-8.5-5 5L2 7",
933
- key: "x473p"
934
- }]]), it = Y("trending-up", [["path", {
935
- d: "M16 7h6v6",
936
- key: "box55l"
937
- }], ["path", {
938
- d: "m22 7-8.5 8.5-5-5L2 17",
939
- key: "1t1m79"
940
- }]]), at = V((e, t) => /* @__PURE__ */ W("svg", {
931
+ ]), it = V((e, t) => /* @__PURE__ */ W("svg", {
941
932
  ref: t,
942
933
  xmlns: "http://www.w3.org/2000/svg",
943
934
  width: 24,
@@ -950,8 +941,8 @@ var He = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
950
941
  d: "M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"
951
942
  })
952
943
  }));
953
- at.displayName = "AnthropicIcon";
954
- var ot = V((e, t) => /* @__PURE__ */ G("svg", {
944
+ it.displayName = "AnthropicIcon";
945
+ var at = V((e, t) => /* @__PURE__ */ G("svg", {
955
946
  ref: t,
956
947
  xmlns: "http://www.w3.org/2000/svg",
957
948
  width: 24,
@@ -971,8 +962,8 @@ var ot = V((e, t) => /* @__PURE__ */ G("svg", {
971
962
  clipRule: "evenodd"
972
963
  })]
973
964
  }));
974
- ot.displayName = "ApigeeIcon";
975
- var st = V((e, t) => /* @__PURE__ */ G("svg", {
965
+ at.displayName = "ApigeeIcon";
966
+ var ot = V((e, t) => /* @__PURE__ */ G("svg", {
976
967
  ref: t,
977
968
  xmlns: "http://www.w3.org/2000/svg",
978
969
  width: 24,
@@ -999,8 +990,8 @@ var st = V((e, t) => /* @__PURE__ */ G("svg", {
999
990
  })
1000
991
  ]
1001
992
  }));
1002
- st.displayName = "AwsIcon";
1003
- var ct = V((e, t) => /* @__PURE__ */ W("svg", {
993
+ ot.displayName = "AwsIcon";
994
+ var st = V((e, t) => /* @__PURE__ */ W("svg", {
1004
995
  ref: t,
1005
996
  xmlns: "http://www.w3.org/2000/svg",
1006
997
  width: 24,
@@ -1013,8 +1004,8 @@ var ct = V((e, t) => /* @__PURE__ */ W("svg", {
1013
1004
  d: "M16.043 20.561a1.391 1.391 0 0 0 .003-.92l.003.01L10.405 2.93h5.184c.203 0 .376.13.439.311v.004l5.638 16.705a.463.463 0 0 1-.287.586l-.004.001-5.332.025Zm-3.988-9.838 3.114 9.226a.464.464 0 0 1-.438.613h-.026a.46.46 0 0 1-.277-.093h.001l-7.978-5.928h4.17l1.434-3.818Zm9.172 10.766h.001a1.391 1.391 0 0 0 1.315-1.848l.003.01v.002l-5.64-16.706A1.394 1.394 0 0 0 15.588 2H9.03c-.61 0-1.127.393-1.315.938l-.003.01-5.64 16.704A1.391 1.391 0 0 0 3.39 21.49h4.075a1.39 1.39 0 0 0 1.315-.938l.003-.01.84-2.484 4.25 3.157c.229.172.517.275.83.275h6.523Z"
1014
1005
  })
1015
1006
  }));
1016
- ct.displayName = "AzureIcon";
1017
- var lt = V((e, t) => /* @__PURE__ */ W("svg", {
1007
+ st.displayName = "AzureIcon";
1008
+ var ct = V((e, t) => /* @__PURE__ */ W("svg", {
1018
1009
  ref: t,
1019
1010
  xmlns: "http://www.w3.org/2000/svg",
1020
1011
  width: 24,
@@ -1029,8 +1020,8 @@ var lt = V((e, t) => /* @__PURE__ */ W("svg", {
1029
1020
  clipRule: "evenodd"
1030
1021
  })
1031
1022
  }));
1032
- lt.displayName = "BitbucketIcon";
1033
- var ut = V((e, t) => /* @__PURE__ */ G("svg", {
1023
+ ct.displayName = "BitbucketIcon";
1024
+ var lt = V((e, t) => /* @__PURE__ */ G("svg", {
1034
1025
  ref: t,
1035
1026
  xmlns: "http://www.w3.org/2000/svg",
1036
1027
  width: 24,
@@ -1057,8 +1048,8 @@ var ut = V((e, t) => /* @__PURE__ */ G("svg", {
1057
1048
  })
1058
1049
  ]
1059
1050
  }));
1060
- ut.displayName = "CohereIcon";
1061
- var dt = V((e, t) => /* @__PURE__ */ W("svg", {
1051
+ lt.displayName = "CohereIcon";
1052
+ var ut = V((e, t) => /* @__PURE__ */ W("svg", {
1062
1053
  ref: t,
1063
1054
  xmlns: "http://www.w3.org/2000/svg",
1064
1055
  width: 24,
@@ -1068,8 +1059,8 @@ var dt = V((e, t) => /* @__PURE__ */ W("svg", {
1068
1059
  ...e,
1069
1060
  children: /* @__PURE__ */ W("path", { d: "M6.973 3 4.098 8.188l1.469 2.624L8.442 6h10.25l-1.688-3H6.973Zm8.75 4 2.969 4.906L13.629 21h3.375l5-9-2.781-5h-3.5Zm-3.719 1c-2.207 0-4 1.793-4 4s1.793 4 4 4 4-1.793 4-4-1.793-4-4-4ZM3.535 9.219 2.005 12l4.968 9h5.531l1.656-3H8.41L3.535 9.219Zm8.47.781c1.1 0 2 .898 2 2 0 1.102-.9 2-2 2-1.102 0-2-.898-2-2 0-1.102.898-2 2-2Z" })
1070
1061
  }));
1071
- dt.displayName = "GcpIcon";
1072
- var ft = V((e, t) => /* @__PURE__ */ W("svg", {
1062
+ ut.displayName = "GcpIcon";
1063
+ var dt = V((e, t) => /* @__PURE__ */ W("svg", {
1073
1064
  ref: t,
1074
1065
  xmlns: "http://www.w3.org/2000/svg",
1075
1066
  width: 24,
@@ -1085,8 +1076,8 @@ var ft = V((e, t) => /* @__PURE__ */ W("svg", {
1085
1076
  d: "M9.357 19.48c-4.553 1.484-4.553-2.65-6.353-3.18m12.706 5.3v-3.71c0-1.06.106-1.485-.53-2.12 2.965-.319 5.824-1.485 5.824-6.361a4.88 4.88 0 0 0-1.376-3.393 4.46 4.46 0 0 0-.106-3.392s-1.165-.318-3.706 1.378a13.008 13.008 0 0 0-6.565 0C6.71 2.306 5.545 2.624 5.545 2.624a4.458 4.458 0 0 0-.106 3.392A4.88 4.88 0 0 0 4.063 9.41c0 4.876 2.859 6.042 5.824 6.36-.636.636-.636 1.272-.53 2.12v3.71"
1086
1077
  })
1087
1078
  }));
1088
- ft.displayName = "GithubIcon";
1089
- var pt = V((e, t) => /* @__PURE__ */ W("svg", {
1079
+ dt.displayName = "GithubIcon";
1080
+ var ft = V((e, t) => /* @__PURE__ */ W("svg", {
1090
1081
  ref: t,
1091
1082
  xmlns: "http://www.w3.org/2000/svg",
1092
1083
  width: 24,
@@ -1102,8 +1093,8 @@ var pt = V((e, t) => /* @__PURE__ */ W("svg", {
1102
1093
  d: "m22.004 13.29-3.33-10a.42.42 0 0 0-.14-.18.38.38 0 0 0-.22-.11.39.39 0 0 0-.37.25l-2.26 6.67h-7.36l-2.22-6.66a.42.42 0 0 0-.1-.18.38.38 0 0 0-.26-.08.39.39 0 0 0-.37.25l-3.37 10.04a.74.74 0 0 0 .27.83l9.73 6.88 9.69-6.88a.71.71 0 0 0 .31-.83v0Z"
1103
1094
  })
1104
1095
  }));
1105
- pt.displayName = "GitlabIcon";
1106
- var mt = V((e, t) => /* @__PURE__ */ W("svg", {
1096
+ ft.displayName = "GitlabIcon";
1097
+ var pt = V((e, t) => /* @__PURE__ */ W("svg", {
1107
1098
  ref: t,
1108
1099
  xmlns: "http://www.w3.org/2000/svg",
1109
1100
  width: 24,
@@ -1116,8 +1107,8 @@ var mt = V((e, t) => /* @__PURE__ */ W("svg", {
1116
1107
  d: "M15.748 13.131c-.821 0-1.558.363-2.063.933l-1.293-.91a3.51 3.51 0 0 0 .216-1.203c0-.415-.076-.812-.209-1.183l1.29-.9a2.75 2.75 0 0 0 2.06.927A2.748 2.748 0 0 0 18.5 8.058a2.748 2.748 0 0 0-2.752-2.738 2.748 2.748 0 0 0-2.751 2.738c0 .27.041.53.115.777l-1.291.902a3.556 3.556 0 0 0-2.2-1.273V6.916a2.745 2.745 0 0 0 2.185-2.678A2.748 2.748 0 0 0 9.054 1.5a2.748 2.748 0 0 0-2.752 2.738c0 1.298.915 2.387 2.137 2.666v1.568C6.772 8.762 5.5 10.21 5.5 11.95c0 1.75 1.284 3.202 2.963 3.483v1.656a2.744 2.744 0 0 0-2.16 2.672 2.748 2.748 0 0 0 2.75 2.739 2.748 2.748 0 0 0 2.752-2.738 2.745 2.745 0 0 0-2.161-2.672v-1.656c.867-.145 1.63-.6 2.163-1.252l1.302.917a2.71 2.71 0 0 0-.113.77 2.748 2.748 0 0 0 2.752 2.738 2.748 2.748 0 0 0 2.751-2.738 2.748 2.748 0 0 0-2.752-2.738Zm0-6.4c.736 0 1.335.595 1.335 1.327 0 .731-.599 1.327-1.334 1.327a1.332 1.332 0 0 1-1.335-1.327c0-.732.599-1.328 1.335-1.328ZM7.72 4.237c0-.732.598-1.328 1.334-1.328.736 0 1.334.596 1.334 1.328 0 .731-.598 1.327-1.334 1.327A1.332 1.332 0 0 1 7.72 4.238Zm2.668 15.524c0 .732-.598 1.328-1.334 1.328a1.332 1.332 0 0 1-1.334-1.328c0-.731.598-1.327 1.334-1.327.736 0 1.334.596 1.334 1.327Zm-1.334-5.96c-1.026 0-1.86-.83-1.86-1.851 0-1.02.834-1.851 1.86-1.851 1.026 0 1.86.83 1.86 1.851 0 1.02-.834 1.851-1.86 1.851Zm6.694 3.394a1.332 1.332 0 0 1-1.334-1.327c0-.732.599-1.327 1.335-1.327.735 0 1.333.595 1.333 1.327s-.598 1.327-1.334 1.327Z"
1117
1108
  })
1118
1109
  }));
1119
- mt.displayName = "KafkaIcon";
1120
- var ht = V((e, t) => /* @__PURE__ */ W("svg", {
1110
+ pt.displayName = "KafkaIcon";
1111
+ var mt = V((e, t) => /* @__PURE__ */ W("svg", {
1121
1112
  ref: t,
1122
1113
  xmlns: "http://www.w3.org/2000/svg",
1123
1114
  width: 24,
@@ -1130,8 +1121,8 @@ var ht = V((e, t) => /* @__PURE__ */ W("svg", {
1130
1121
  d: "m23 14.095-2.748-.63a8.18 8.18 0 0 0-1.269-5.53l2.113-1.692-1.037-1.306-2.112 1.69a8.282 8.282 0 0 0-5.115-2.48V1.6h-1.664v2.548a8.282 8.282 0 0 0-5.115 2.48L3.941 4.937 2.903 6.243l2.114 1.691a8.194 8.194 0 0 0-1.269 5.532L1 14.096l.37 1.627 2.744-.629a8.374 8.374 0 0 0 3.55 4.474l-1.106 2.308 1.5.724 1.105-2.306a8.134 8.134 0 0 0 5.675 0l1.105 2.306 1.5-.725-1.107-2.307a8.374 8.374 0 0 0 3.55-4.474l2.744.629.37-1.628Zm-4.345-1.64c0 .215-.012.427-.032.637l-4.16-.953a2.482 2.482 0 0 0-.114-.496l3.325-2.661a6.648 6.648 0 0 1 .981 3.473Zm-7.487 0a.837.837 0 0 1 .514-.771.829.829 0 0 1 1.134.608.839.839 0 0 1-.354.857.83.83 0 0 1-1.05-.104.837.837 0 0 1-.244-.59Zm5.47-4.78-3.324 2.66a2.49 2.49 0 0 0-.482-.231V5.833a6.625 6.625 0 0 1 3.806 1.841Zm-5.47-1.842v4.27a2.49 2.49 0 0 0-.482.232l-3.324-2.66a6.626 6.626 0 0 1 3.806-1.842Zm-5.823 6.622c0-1.226.34-2.429.981-3.473l3.325 2.66a2.485 2.485 0 0 0-.115.497l-4.16.953a6.763 6.763 0 0 1-.031-.637Zm.402 2.265 4.139-.949c.098.162.213.313.345.448l-1.842 3.84a6.701 6.701 0 0 1-2.642-3.339ZM12 19.135a6.607 6.607 0 0 1-2.113-.35l1.847-3.852c.088.014.177.023.266.027.089-.004.178-.013.265-.027l1.848 3.852c-.68.23-1.394.35-2.113.35Zm3.611-1.077-1.842-3.839c.132-.136.247-.286.345-.448l4.139.949a6.701 6.701 0 0 1-2.642 3.338Z"
1131
1122
  })
1132
1123
  }));
1133
- ht.displayName = "KubernetesIcon";
1134
- var gt = V((e, t) => /* @__PURE__ */ G("svg", {
1124
+ mt.displayName = "KubernetesIcon";
1125
+ var ht = V((e, t) => /* @__PURE__ */ G("svg", {
1135
1126
  ref: t,
1136
1127
  xmlns: "http://www.w3.org/2000/svg",
1137
1128
  width: 24,
@@ -1182,8 +1173,8 @@ var gt = V((e, t) => /* @__PURE__ */ G("svg", {
1182
1173
  })
1183
1174
  ]
1184
1175
  }));
1185
- gt.displayName = "MistralIcon";
1186
- var _t = V((e, t) => /* @__PURE__ */ W("svg", {
1176
+ ht.displayName = "MistralIcon";
1177
+ var gt = V((e, t) => /* @__PURE__ */ W("svg", {
1187
1178
  ref: t,
1188
1179
  xmlns: "http://www.w3.org/2000/svg",
1189
1180
  width: 24,
@@ -1196,8 +1187,8 @@ var _t = V((e, t) => /* @__PURE__ */ W("svg", {
1196
1187
  d: "M304.246 294.611V249.028c0-3.839 1.441-6.719 4.798-8.636l91.648-52.78c12.475-7.197 27.35-10.554 42.702-10.554 57.577 0 94.046 44.624 94.046 92.124 0 3.358 0 7.197-.481 11.036l-95.005-55.66c-5.757-3.357-11.517-3.357-17.274 0l-120.434 70.053ZM518.245 472.145V363.224c0-6.719-2.881-11.517-8.637-14.875l-120.434-70.053 39.345-22.553c3.358-1.917 6.238-1.917 9.596 0l91.647 52.78c26.392 15.356 44.143 47.982 44.143 79.648 0 36.465-21.59 70.054-55.66 83.97v.004ZM275.937 376.182l-39.345-23.03c-3.357-1.917-4.798-4.798-4.798-8.637V238.956c0-51.339 39.345-90.207 92.606-90.207 20.155 0 38.864 6.719 54.702 18.714l-94.524 54.701c-5.756 3.357-8.636 8.155-8.636 14.875v139.147l-.005-.004ZM360.626 425.122 304.246 393.455v-67.172l56.38-31.667 56.376 31.667v67.172l-56.376 31.667ZM396.852 570.989c-20.154 0-38.863-6.719-54.701-18.713l94.523-54.702c5.757-3.357 8.637-8.155 8.637-14.875V343.552l39.827 23.03c3.357 1.917 4.798 4.797 4.798 8.637v105.559c0 51.339-39.827 90.207-93.084 90.207v.004ZM283.134 463.99l-91.648-52.779c-26.392-15.357-44.143-47.982-44.143-79.649 0-36.946 22.072-70.053 56.137-83.969v109.398c0 6.719 2.881 11.517 8.637 14.875l119.957 69.571-39.345 22.553c-3.357 1.917-6.238 1.917-9.595 0ZM277.859 542.68c-54.22 0-94.046-40.785-94.046-91.166 0-3.839.481-7.678.958-11.517l94.524 54.701c5.756 3.358 11.517 3.358 17.273 0L417.002 425.127v45.583c0 3.839-1.44 6.719-4.798 8.636l-91.647 52.78c-12.476 7.197-27.351 10.554-42.703 10.554h.005ZM396.852 599.776c58.059 0 106.518-41.263 117.558-95.964 53.739-13.916 88.286-64.297 88.286-115.636 0-33.589-14.393-66.214-40.304-89.726 2.399-10.077 3.839-20.154 3.839-30.226 0-68.613-55.66-119.957-119.957-119.957-12.952 0-25.428 1.917-37.904 6.238-21.595-21.113-51.344-34.547-83.97-34.547-58.058 0-106.517 41.262-117.557 95.963-53.739 13.916-88.286 64.297-88.286 115.636 0 33.589 14.393 66.214 40.304 89.726-2.399 10.077-3.839 20.154-3.839 30.227 0 68.613 55.66 119.956 119.956 119.956 12.953 0 25.429-1.917 37.905-6.238 21.59 21.113 51.339 34.548 83.969 34.548Z"
1197
1188
  })
1198
1189
  }));
1199
- _t.displayName = "OpenAIIcon";
1200
- var vt = V((e, t) => {
1190
+ gt.displayName = "OpenAIIcon";
1191
+ var _t = V((e, t) => {
1201
1192
  let n = H();
1202
1193
  return /* @__PURE__ */ G("svg", {
1203
1194
  ref: t,
@@ -1422,8 +1413,8 @@ var vt = V((e, t) => {
1422
1413
  })]
1423
1414
  });
1424
1415
  });
1425
- vt.displayName = "GioAgentManagementIcon";
1426
- var yt = V((e, t) => {
1416
+ _t.displayName = "GioAgentManagementIcon";
1417
+ var vt = V((e, t) => {
1427
1418
  let n = H();
1428
1419
  return /* @__PURE__ */ G("svg", {
1429
1420
  ref: t,
@@ -1661,8 +1652,8 @@ var yt = V((e, t) => {
1661
1652
  })]
1662
1653
  });
1663
1654
  });
1664
- yt.displayName = "GioApiManagementIcon";
1665
- var bt = V((e, t) => {
1655
+ vt.displayName = "GioApiManagementIcon";
1656
+ var yt = V((e, t) => {
1666
1657
  let n = H();
1667
1658
  return /* @__PURE__ */ G("svg", {
1668
1659
  ref: t,
@@ -1789,8 +1780,8 @@ var bt = V((e, t) => {
1789
1780
  })]
1790
1781
  });
1791
1782
  });
1792
- bt.displayName = "GioAuthorizationIcon";
1793
- var xt = V((e, t) => {
1783
+ yt.displayName = "GioAuthorizationIcon";
1784
+ var bt = V((e, t) => {
1794
1785
  let n = H();
1795
1786
  return /* @__PURE__ */ G("svg", {
1796
1787
  ref: t,
@@ -1977,8 +1968,8 @@ var xt = V((e, t) => {
1977
1968
  })]
1978
1969
  });
1979
1970
  });
1980
- xt.displayName = "GioCatalogIcon";
1981
- var St = V((e, t) => {
1971
+ bt.displayName = "GioCatalogIcon";
1972
+ var xt = V((e, t) => {
1982
1973
  let n = H();
1983
1974
  return /* @__PURE__ */ G("svg", {
1984
1975
  ref: t,
@@ -2203,8 +2194,8 @@ var St = V((e, t) => {
2203
2194
  })]
2204
2195
  });
2205
2196
  });
2206
- St.displayName = "GioDeveloperPortalIcon";
2207
- var Ct = V((e, t) => {
2197
+ xt.displayName = "GioDeveloperPortalIcon";
2198
+ var St = V((e, t) => {
2208
2199
  let n = H();
2209
2200
  return /* @__PURE__ */ G("svg", {
2210
2201
  ref: t,
@@ -2391,8 +2382,8 @@ var Ct = V((e, t) => {
2391
2382
  })]
2392
2383
  });
2393
2384
  });
2394
- Ct.displayName = "GioEventApiManagementIcon";
2395
- var wt = V((e, t) => {
2385
+ St.displayName = "GioEventApiManagementIcon";
2386
+ var Ct = V((e, t) => {
2396
2387
  let n = H();
2397
2388
  return /* @__PURE__ */ G("svg", {
2398
2389
  ref: t,
@@ -2633,8 +2624,8 @@ var wt = V((e, t) => {
2633
2624
  })]
2634
2625
  });
2635
2626
  });
2636
- wt.displayName = "GioGammaIcon";
2637
- var Tt = V((e, t) => {
2627
+ Ct.displayName = "GioGammaIcon";
2628
+ var wt = V((e, t) => {
2638
2629
  let n = H();
2639
2630
  return /* @__PURE__ */ G("svg", {
2640
2631
  ref: t,
@@ -2875,8 +2866,8 @@ var Tt = V((e, t) => {
2875
2866
  })]
2876
2867
  });
2877
2868
  });
2878
- Tt.displayName = "GioHomeIcon";
2879
- var Et = V((e, t) => {
2869
+ wt.displayName = "GioHomeIcon";
2870
+ var Tt = V((e, t) => {
2880
2871
  let n = H();
2881
2872
  return /* @__PURE__ */ G("svg", {
2882
2873
  ref: t,
@@ -3171,8 +3162,8 @@ var Et = V((e, t) => {
3171
3162
  })]
3172
3163
  });
3173
3164
  });
3174
- Et.displayName = "GioIamIcon";
3175
- var Dt = V((e, t) => {
3165
+ Tt.displayName = "GioIamIcon";
3166
+ var Et = V((e, t) => {
3176
3167
  let n = H();
3177
3168
  return /* @__PURE__ */ G("svg", {
3178
3169
  ref: t,
@@ -3397,8 +3388,8 @@ var Dt = V((e, t) => {
3397
3388
  })]
3398
3389
  });
3399
3390
  });
3400
- Dt.displayName = "GioObservabilityIcon";
3401
- var Ot = V((e, t) => {
3391
+ Et.displayName = "GioObservabilityIcon";
3392
+ var Dt = V((e, t) => {
3402
3393
  let n = H();
3403
3394
  return /* @__PURE__ */ G("svg", {
3404
3395
  ref: t,
@@ -3517,8 +3508,8 @@ var Ot = V((e, t) => {
3517
3508
  })]
3518
3509
  });
3519
3510
  });
3520
- Ot.displayName = "GioObserveIcon";
3521
- var kt = V((e, t) => {
3511
+ Dt.displayName = "GioObserveIcon";
3512
+ var Ot = V((e, t) => {
3522
3513
  let n = H();
3523
3514
  return /* @__PURE__ */ G("svg", {
3524
3515
  ref: t,
@@ -3849,8 +3840,8 @@ var kt = V((e, t) => {
3849
3840
  })]
3850
3841
  });
3851
3842
  });
3852
- kt.displayName = "GioPlatformIcon";
3853
- var At = V((e, t) => {
3843
+ Ot.displayName = "GioPlatformIcon";
3844
+ var kt = V((e, t) => {
3854
3845
  let n = H();
3855
3846
  return /* @__PURE__ */ G("svg", {
3856
3847
  ref: t,
@@ -3969,8 +3960,8 @@ var At = V((e, t) => {
3969
3960
  })]
3970
3961
  });
3971
3962
  });
3972
- At.displayName = "GioProductizeIcon";
3973
- var jt = V((e, t) => {
3963
+ kt.displayName = "GioProductizeIcon";
3964
+ var At = V((e, t) => {
3974
3965
  let n = H();
3975
3966
  return /* @__PURE__ */ G("svg", {
3976
3967
  ref: t,
@@ -4097,10 +4088,10 @@ var jt = V((e, t) => {
4097
4088
  })]
4098
4089
  });
4099
4090
  });
4100
- jt.displayName = "GioSecureIcon";
4091
+ At.displayName = "GioSecureIcon";
4101
4092
  //#endregion
4102
4093
  //#region src/lib/useContainerSize.ts
4103
- function Mt() {
4094
+ function jt() {
4104
4095
  let [e, t] = ce({
4105
4096
  width: 0,
4106
4097
  height: 0
@@ -4125,44 +4116,44 @@ function Mt() {
4125
4116
  }
4126
4117
  //#endregion
4127
4118
  //#region src/charts/Metric/Metric.tsx
4128
- var Nt = {
4119
+ var Mt = {
4129
4120
  positive: "text-success",
4130
4121
  negative: "text-destructive",
4131
4122
  neutral: "text-muted-foreground"
4132
4123
  };
4133
- function Pt(e, t) {
4124
+ function Nt(e, t) {
4134
4125
  return e === "neutral" || t === "neutral" ? "neutral" : t === "higher-is-better" ? e === "up" ? "positive" : "negative" : e === "up" ? "negative" : "positive";
4135
4126
  }
4136
- var Ft = 56;
4137
- function It(e, t) {
4127
+ var Pt = 56;
4128
+ function Ft(e, t) {
4138
4129
  let n = Math.min(t > 0 ? t : 100, (e > 0 ? e : 200) * .65);
4139
4130
  return Math.max(18, Math.min(96, Math.round(n * .22)));
4140
4131
  }
4141
- function Lt(e) {
4132
+ function It(e) {
4142
4133
  return Math.max(10, Math.round(e * .22));
4143
4134
  }
4144
- function Rt(e) {
4135
+ function Lt(e) {
4145
4136
  return e < 80 ? "text-sm font-semibold leading-tight" : e < 110 ? "text-base font-semibold leading-tight" : e < 150 ? "text-lg font-semibold leading-tight" : "text-xl font-semibold leading-tight";
4146
4137
  }
4147
- function zt(e) {
4138
+ function Rt(e) {
4148
4139
  return e < 50 ? "text-[9px]" : e < 80 ? "text-[10px]" : e < 120 ? "text-xs" : "text-sm";
4149
4140
  }
4150
- function Bt(e) {
4141
+ function zt(e) {
4151
4142
  return e < 60 ? {
4152
4143
  text: "text-[9px]",
4153
- icon: "size-2"
4144
+ icon: "size-2 stroke-[2.5]"
4154
4145
  } : e < 100 ? {
4155
4146
  text: "text-[10px]",
4156
- icon: "size-2.5"
4147
+ icon: "size-2.5 stroke-[2.5]"
4157
4148
  } : e < 140 ? {
4158
4149
  text: "text-xs",
4159
- icon: "size-3"
4150
+ icon: "size-3 stroke-[2.5]"
4160
4151
  } : {
4161
4152
  text: "text-sm",
4162
- icon: "size-3.5"
4153
+ icon: "size-3.5 stroke-[2.5]"
4163
4154
  };
4164
4155
  }
4165
- function Vt({ data: t, color: n, colorClass: r }) {
4156
+ function Bt({ data: t, color: n, colorClass: r }) {
4166
4157
  let i = R.useRef(null), [a, o] = R.useState({
4167
4158
  width: 0,
4168
4159
  height: 0
@@ -4214,18 +4205,14 @@ function Vt({ data: t, color: n, colorClass: r }) {
4214
4205
  ] })
4215
4206
  });
4216
4207
  }
4217
- function Ht({ trend: t, sentiment: n, trendClass: r }) {
4218
- let i = t.direction === "down" ? rt : it;
4208
+ function Vt({ trend: t, sentiment: n, trendClass: r }) {
4209
+ let i = t.direction === "down" ? Qe : et;
4219
4210
  return /* @__PURE__ */ G("span", {
4220
- className: e("inline-flex items-center gap-1 font-medium", r.text, Nt[n]),
4221
- children: [
4222
- t.direction !== "neutral" && /* @__PURE__ */ W(i, { className: r.icon }),
4223
- t.value,
4224
- "%"
4225
- ]
4211
+ className: e("inline-flex items-center gap-1 font-medium", r.text, Mt[n]),
4212
+ children: [t.direction !== "neutral" && /* @__PURE__ */ W(i, { className: r.icon }), t.isNew ? "New" : `${t.value}%`]
4226
4213
  });
4227
4214
  }
4228
- function Ut({ className: t, ...n }) {
4215
+ function Ht({ className: t, ...n }) {
4229
4216
  return /* @__PURE__ */ G("div", {
4230
4217
  role: "img",
4231
4218
  "aria-busy": "true",
@@ -4244,15 +4231,15 @@ function Ut({ className: t, ...n }) {
4244
4231
  }), /* @__PURE__ */ W(_, { className: "min-h-5 w-full flex-1" })]
4245
4232
  });
4246
4233
  }
4247
- function Wt({ value: t, label: n, state: r, description: i, icon: a, trend: o, trendSentiment: s = "higher-is-better", centered: c = !1, sparklineData: l, sparklineColor: u, className: d, ...f }) {
4248
- let { ref: p, width: m, height: h } = Mt();
4249
- if (r === "loading") return /* @__PURE__ */ W(Ut, {
4234
+ function Ut({ value: t, label: n, state: r, description: i, icon: a, trend: o, trendSentiment: s = "higher-is-better", centered: c = !1, sparklineData: l, sparklineColor: u, className: d, ...f }) {
4235
+ let { ref: p, width: m, height: h } = jt();
4236
+ if (r === "loading") return /* @__PURE__ */ W(Ht, {
4250
4237
  className: d,
4251
4238
  ...f
4252
4239
  });
4253
- let g = r === "empty" ? "—" : t, _ = r === "empty" ? void 0 : o, v = r === "empty" ? void 0 : l, y = _ ? Pt(_.direction, s) : void 0, b = !u && y ? Nt[y] : void 0, x = u ?? (y ? void 0 : "var(--chart-1)"), S = v != null && v.length >= 2 && h >= Ft && !c, C = c || !S, w = Rt(h), T = zt(h), E = Bt(h), D = n && h > 50, O = !!(_ && y && (S || h > 40));
4240
+ let g = r === "empty" ? "—" : t, _ = r === "empty" ? void 0 : o, v = r === "empty" ? void 0 : l, y = _ ? Nt(_.direction, s) : void 0, b = !u && y ? Mt[y] : void 0, x = u ?? (y ? void 0 : "var(--chart-1)"), S = v != null && v.length >= 2 && h >= Pt && !c, C = c || !S, w = Lt(h), T = Rt(h), E = zt(h), D = n && h > 50, O = !!(_ && y && (S || h > 40));
4254
4241
  if (C) {
4255
- let t = It(m, h), r = Lt(t);
4242
+ let t = Ft(m, h), r = It(t);
4256
4243
  return /* @__PURE__ */ G("div", {
4257
4244
  ref: p,
4258
4245
  className: e("flex h-full flex-col items-center justify-center gap-1 text-center", d),
@@ -4268,7 +4255,7 @@ function Wt({ value: t, label: n, state: r, description: i, icon: a, trend: o, t
4268
4255
  style: { fontSize: r },
4269
4256
  children: n
4270
4257
  }),
4271
- O && _ && y && /* @__PURE__ */ W(Ht, {
4258
+ O && _ && y && /* @__PURE__ */ W(Vt, {
4272
4259
  trend: _,
4273
4260
  sentiment: y,
4274
4261
  trendClass: E
@@ -4292,7 +4279,7 @@ function Wt({ value: t, label: n, state: r, description: i, icon: a, trend: o, t
4292
4279
  }),
4293
4280
  O && _ && y && /* @__PURE__ */ G("span", {
4294
4281
  className: "flex shrink-0 items-center gap-1",
4295
- children: [/* @__PURE__ */ W(Ht, {
4282
+ children: [/* @__PURE__ */ W(Vt, {
4296
4283
  trend: _,
4297
4284
  sentiment: y,
4298
4285
  trendClass: E
@@ -4312,7 +4299,7 @@ function Wt({ value: t, label: n, state: r, description: i, icon: a, trend: o, t
4312
4299
  ]
4313
4300
  }), /* @__PURE__ */ W("div", {
4314
4301
  className: "min-h-0 flex-1 pt-1",
4315
- children: /* @__PURE__ */ W(Vt, {
4302
+ children: /* @__PURE__ */ W(Bt, {
4316
4303
  data: v,
4317
4304
  color: x,
4318
4305
  colorClass: b
@@ -4325,40 +4312,40 @@ function Wt({ value: t, label: n, state: r, description: i, icon: a, trend: o, t
4325
4312
  function X(e) {
4326
4313
  return "category" in e && "metrics" in e;
4327
4314
  }
4328
- var Gt = {
4315
+ var Wt = {
4329
4316
  positive: "text-success",
4330
4317
  negative: "text-destructive",
4331
4318
  neutral: "text-muted-foreground"
4332
4319
  };
4333
- function Kt(e) {
4320
+ function Gt(e) {
4334
4321
  let t = 0;
4335
4322
  for (let n of e) t += X(n) ? n.metrics.length : 1;
4336
4323
  return t;
4337
4324
  }
4338
- function qt(e) {
4325
+ function Kt(e) {
4339
4326
  return X(e) ? e.metrics.length : 1;
4340
4327
  }
4341
- var Jt = [
4328
+ var qt = [
4342
4329
  "xs",
4343
4330
  "sm",
4344
4331
  "md",
4345
4332
  "lg"
4346
4333
  ];
4347
- function Yt(e, t, n) {
4334
+ function Jt(e, t, n) {
4348
4335
  let r = e / Math.max(n, 1), i = r < 40 ? "xs" : r < 70 ? "sm" : r < 110 ? "md" : "lg", a = t < 25 ? "xs" : t < 40 ? "sm" : t < 60 ? "md" : "lg";
4349
- return Jt[Math.min(Jt.indexOf(i), Jt.indexOf(a))];
4336
+ return qt[Math.min(qt.indexOf(i), qt.indexOf(a))];
4350
4337
  }
4351
- var Xt = {
4338
+ var Yt = {
4352
4339
  xs: 40,
4353
4340
  sm: 55,
4354
4341
  md: 75,
4355
4342
  lg: 100
4356
- }, Zt = 40, Qt = 80;
4357
- function $t(e, t, n) {
4358
- if (e < Qt) return 0;
4359
- let r = Xt[n], i = 0, a = 0;
4343
+ }, Xt = 40, Zt = 80;
4344
+ function Qt(e, t, n) {
4345
+ if (e < Zt) return 0;
4346
+ let r = Yt[n], i = 0, a = 0;
4360
4347
  for (let n = 0; n < t.length; n++) {
4361
- let o = r * qt(t[n]), s = t.length - (n + 1) > 0 ? Zt : 0;
4348
+ let o = r * Kt(t[n]), s = t.length - (n + 1) > 0 ? Xt : 0;
4362
4349
  if (a + o + s > e) break;
4363
4350
  a += o, i++;
4364
4351
  }
@@ -4390,10 +4377,10 @@ var Z = {
4390
4377
  lg: "text-xs"
4391
4378
  },
4392
4379
  trendIcon: {
4393
- xs: "size-2",
4394
- sm: "size-2.5",
4395
- md: "size-3",
4396
- lg: "size-3.5"
4380
+ xs: "size-2 stroke-[2.5]",
4381
+ sm: "size-2.5 stroke-[2.5]",
4382
+ md: "size-3 stroke-[2.5]",
4383
+ lg: "size-3.5 stroke-[2.5]"
4397
4384
  },
4398
4385
  cellPadding: {
4399
4386
  xs: "px-1",
@@ -4402,47 +4389,46 @@ var Z = {
4402
4389
  lg: "px-5"
4403
4390
  }
4404
4391
  };
4405
- function en({ trend: t, sentiment: n, size: r }) {
4406
- let i = t.direction === "down" ? rt : it;
4407
- return /* @__PURE__ */ G("span", {
4408
- className: e("inline-flex items-center gap-px font-medium", Z.trend[r], Gt[n]),
4409
- children: [
4410
- t.direction !== "neutral" && /* @__PURE__ */ W(i, { className: Z.trendIcon[r] }),
4411
- t.value,
4412
- "%"
4413
- ]
4392
+ function $t({ trend: t, sentiment: n, size: r }) {
4393
+ let i = t.direction === "down" ? Qe : et, a = r === "xs" || r === "sm";
4394
+ return a && t.direction === "neutral" ? null : /* @__PURE__ */ G("span", {
4395
+ className: e("inline-flex items-center gap-px font-medium", Z.trend[r], Wt[n]),
4396
+ children: [t.direction !== "neutral" && /* @__PURE__ */ W(i, { className: Z.trendIcon[r] }), !a && (t.isNew ? "New" : `${t.value}%`)]
4414
4397
  });
4415
4398
  }
4416
- function tn({ item: t, size: n, labelVisible: r }) {
4417
- let i = t.trend ? Pt(t.trend.direction, t.trendSentiment ?? "higher-is-better") : void 0, a = r && t.label, o = /* @__PURE__ */ G("div", {
4418
- className: "flex min-w-0 flex-col items-center text-center",
4399
+ function en({ item: t, size: n, labelVisible: r }) {
4400
+ let i = t.trend ? Nt(t.trend.direction, t.trendSentiment ?? "higher-is-better") : void 0, a = r && t.label, o = /* @__PURE__ */ G("div", {
4401
+ className: "flex w-full min-w-0 flex-col",
4419
4402
  children: [/* @__PURE__ */ G("div", {
4420
- className: "flex items-baseline gap-0.5",
4403
+ className: "flex items-baseline justify-between gap-1",
4421
4404
  children: [/* @__PURE__ */ W("span", {
4422
4405
  className: e("truncate tracking-tight text-foreground", Z.value[n]),
4423
4406
  children: t.value
4424
- }), t.trend && i && /* @__PURE__ */ W(en, {
4425
- trend: t.trend,
4426
- sentiment: i,
4427
- size: n
4407
+ }), t.trend && i && !(t.trend.direction === "neutral" && (n === "xs" || n === "sm")) && /* @__PURE__ */ W("span", {
4408
+ className: "shrink-0",
4409
+ children: /* @__PURE__ */ W($t, {
4410
+ trend: t.trend,
4411
+ sentiment: i,
4412
+ size: n
4413
+ })
4428
4414
  })]
4429
4415
  }), a && /* @__PURE__ */ W("span", {
4430
- className: e("max-w-full truncate text-muted-foreground", Z.label[n]),
4416
+ className: e("truncate text-muted-foreground", Z.label[n]),
4431
4417
  children: t.label
4432
4418
  })]
4433
4419
  });
4434
4420
  return !a && t.label ? /* @__PURE__ */ G(ne, { children: [/* @__PURE__ */ W(ie, {
4435
4421
  asChild: !0,
4436
4422
  children: /* @__PURE__ */ W("div", {
4437
- className: "flex min-w-0 flex-1 cursor-default justify-center",
4423
+ className: "flex min-w-0 flex-1 cursor-default",
4438
4424
  children: o
4439
4425
  })
4440
4426
  }), /* @__PURE__ */ W(re, { children: t.label })] }) : /* @__PURE__ */ W("div", {
4441
- className: "flex min-w-0 flex-1 justify-center",
4427
+ className: "flex min-w-0 flex-1",
4442
4428
  children: o
4443
4429
  });
4444
4430
  }
4445
- function nn({ count: t, size: n }) {
4431
+ function tn({ count: t, size: n }) {
4446
4432
  let r = `${t} more ${t === 1 ? "metric" : "metrics"} hidden`;
4447
4433
  return /* @__PURE__ */ G(ne, { children: [/* @__PURE__ */ W(ie, {
4448
4434
  asChild: !0,
@@ -4454,7 +4440,7 @@ function nn({ count: t, size: n }) {
4454
4440
  })
4455
4441
  }), /* @__PURE__ */ W(re, { children: r })] });
4456
4442
  }
4457
- function rn({ count: t, className: n, ...r }) {
4443
+ function nn({ count: t, className: n, ...r }) {
4458
4444
  return /* @__PURE__ */ W("div", {
4459
4445
  role: "img",
4460
4446
  "aria-busy": "true",
@@ -4467,10 +4453,10 @@ function rn({ count: t, className: n, ...r }) {
4467
4453
  }, t))
4468
4454
  });
4469
4455
  }
4470
- function an({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
4471
- let { ref: o, width: s, height: c } = Mt();
4472
- if (n === "loading") return /* @__PURE__ */ W(rn, {
4473
- count: t.length > 0 ? Kt(t) : r ?? 5,
4456
+ function rn({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
4457
+ let { ref: o, width: s, height: c } = jt();
4458
+ if (n === "loading") return /* @__PURE__ */ W(nn, {
4459
+ count: t.length > 0 ? Gt(t) : r ?? 5,
4474
4460
  className: i,
4475
4461
  ...a
4476
4462
  });
@@ -4485,7 +4471,7 @@ function an({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
4485
4471
  ...e,
4486
4472
  value: "—",
4487
4473
  trend: void 0
4488
- }) : t, u = Kt(l), d = s > 0 ? Yt(s, c, u) : "md", f = c >= 50, p = s > 0 ? $t(s, l, d) : l.length, m = l.slice(0, p), h = l.length - p, g = p === 0;
4474
+ }) : t, u = Gt(l), d = s > 0 ? Jt(s, c, u) : "md", f = c >= 50, p = s > 0 ? Qt(s, l, d) : l.length, m = l.slice(0, p), h = l.length - p, g = p === 0;
4489
4475
  return /* @__PURE__ */ W(L, {
4490
4476
  delayDuration: 300,
4491
4477
  children: /* @__PURE__ */ G("div", {
@@ -4497,19 +4483,19 @@ function an({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
4497
4483
  children: [s > 0 && !g && m.map((t) => {
4498
4484
  let n = X(t) ? t.category : `${t.value}-${t.label ?? ""}`;
4499
4485
  return /* @__PURE__ */ W("div", {
4500
- style: { flex: qt(t) },
4501
- className: e("flex min-w-0 flex-col items-center justify-center overflow-x-hidden", Z.cellPadding[d]),
4486
+ style: { flex: Kt(t) },
4487
+ className: e("flex min-w-0 flex-col justify-center overflow-x-hidden", Z.cellPadding[d]),
4502
4488
  children: X(t) ? /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("span", {
4503
4489
  className: e("mb-0.5 font-medium tracking-wider text-muted-foreground uppercase", Z.category[d]),
4504
4490
  children: t.category
4505
4491
  }), /* @__PURE__ */ W("div", {
4506
- className: "flex w-full min-w-0 items-end justify-evenly",
4507
- children: t.metrics.map((e) => /* @__PURE__ */ W(tn, {
4492
+ className: "flex w-full min-w-0 items-stretch gap-3",
4493
+ children: t.metrics.map((e) => /* @__PURE__ */ W(en, {
4508
4494
  item: e,
4509
4495
  size: d,
4510
4496
  labelVisible: f
4511
4497
  }, `${e.value}-${e.label ?? ""}`))
4512
- })] }) : /* @__PURE__ */ W(tn, {
4498
+ })] }) : /* @__PURE__ */ W(en, {
4513
4499
  item: t,
4514
4500
  size: d,
4515
4501
  labelVisible: f
@@ -4517,7 +4503,7 @@ function an({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
4517
4503
  }, n);
4518
4504
  }), s > 0 && h > 0 && /* @__PURE__ */ W("div", {
4519
4505
  className: e("flex shrink-0 items-center", g ? "" : "px-2"),
4520
- children: /* @__PURE__ */ W(nn, {
4506
+ children: /* @__PURE__ */ W(tn, {
4521
4507
  count: h,
4522
4508
  size: d
4523
4509
  })
@@ -4527,7 +4513,7 @@ function an({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
4527
4513
  }
4528
4514
  //#endregion
4529
4515
  //#region src/charts/LineChart/LineChart.tsx
4530
- function on({ data: e, dataKeys: n, state: r, curveType: i = "monotone", showDots: a = !1, showGrid: s = !0, showCategoryAxis: c = !0, showValueAxis: l = !0, connectNulls: u = !1, valueTickFormatter: d, categoryTickFormatter: f, animated: h = !0, onPointHover: _, onPointLeave: v, ariaLabel: y, margin: b, className: S, children: C, ...w }) {
4516
+ function an({ data: e, dataKeys: n, state: r, curveType: i = "monotone", showDots: a = !1, showGrid: s = !0, showCategoryAxis: c = !0, showValueAxis: l = !0, connectNulls: u = !1, valueTickFormatter: d, categoryTickFormatter: f, animated: h = !0, onPointHover: _, onPointLeave: v, ariaLabel: y, margin: b, className: S, children: C, ...w }) {
4531
4517
  let { config: T } = t(), E = n ?? Ne(e, Object.keys(T));
4532
4518
  return r === "loading" ? /* @__PURE__ */ W(x, {
4533
4519
  ariaLabel: y,
@@ -4562,7 +4548,7 @@ function on({ data: e, dataKeys: n, state: r, curveType: i = "monotone", showDot
4562
4548
  }
4563
4549
  //#endregion
4564
4550
  //#region src/charts/AreaChart/AreaChart.tsx
4565
- function sn({ data: e, dataKeys: n, state: r, curveType: i = "monotone", stacked: a = !0, gradient: s = !0, fillOpacity: c = .2, showGrid: l = !0, showCategoryAxis: u = !0, showValueAxis: d = !0, connectNulls: f = !1, animated: h = !0, ariaLabel: _, margin: v, valueTickFormatter: y, categoryTickFormatter: x, onPointHover: S, onPointLeave: C, className: w, children: T, ...E }) {
4551
+ function on({ data: e, dataKeys: n, state: r, curveType: i = "monotone", stacked: a = !0, gradient: s = !0, fillOpacity: c = .2, showGrid: l = !0, showCategoryAxis: u = !0, showValueAxis: d = !0, connectNulls: f = !1, animated: h = !0, ariaLabel: _, margin: v, valueTickFormatter: y, categoryTickFormatter: x, onPointHover: S, onPointLeave: C, className: w, children: T, ...E }) {
4566
4552
  let { config: D } = t(), O = n ?? Ne(e, Object.keys(D)), k = a ? "default" : void 0;
4567
4553
  return r === "loading" ? /* @__PURE__ */ W(b, {
4568
4554
  ariaLabel: _,
@@ -4597,7 +4583,7 @@ function sn({ data: e, dataKeys: n, state: r, curveType: i = "monotone", stacked
4597
4583
  ]
4598
4584
  });
4599
4585
  }
4600
- function cn(e) {
4586
+ function sn(e) {
4601
4587
  if (e === 0) return "0ns";
4602
4588
  if (e < 1e3) return `${Math.round(e)}ns`;
4603
4589
  let t = e / 1e3;
@@ -4609,7 +4595,7 @@ function cn(e) {
4609
4595
  let i = Math.floor(r / 60), a = r % 60;
4610
4596
  return `${i}m ${Math.round(a)}s`;
4611
4597
  }
4612
- function ln(e) {
4598
+ function cn(e) {
4613
4599
  let t = 0;
4614
4600
  for (let n of e) {
4615
4601
  let e = n.startOffsetNs + n.durationNs;
@@ -4617,7 +4603,7 @@ function ln(e) {
4617
4603
  }
4618
4604
  return t > 0 ? t : 1;
4619
4605
  }
4620
- function un(e, t, n, r) {
4606
+ function ln(e, t, n, r) {
4621
4607
  if (r <= 0 || n <= 0) return {
4622
4608
  x: 0,
4623
4609
  width: 0
@@ -4628,18 +4614,18 @@ function un(e, t, n, r) {
4628
4614
  width: a
4629
4615
  };
4630
4616
  }
4631
- function dn(e, t) {
4617
+ function un(e, t) {
4632
4618
  if (t === 0 || e === 0) return "0%";
4633
4619
  let n = e / t * 100;
4634
4620
  return n < .1 ? "<0.1%" : n >= 100 ? "100%" : `${n < 1 ? n.toFixed(1) : Math.round(n)}%`;
4635
4621
  }
4636
- var fn = 6, pn = 80;
4637
- function mn(e) {
4622
+ var dn = 6, fn = 80;
4623
+ function pn(e) {
4638
4624
  if (e <= 0) return 0;
4639
- let t = Math.floor(e / pn) + 1;
4640
- return Math.max(2, Math.min(t, fn));
4625
+ let t = Math.floor(e / fn) + 1;
4626
+ return Math.max(2, Math.min(t, dn));
4641
4627
  }
4642
- function hn(e, t = 5) {
4628
+ function mn(e, t = 5) {
4643
4629
  if (e <= 0) return [0];
4644
4630
  if (t <= 1) return [0, e];
4645
4631
  let n = e / (t - 1);
@@ -4647,13 +4633,13 @@ function hn(e, t = 5) {
4647
4633
  }
4648
4634
  //#endregion
4649
4635
  //#region src/charts/TraceWaterfall/TraceWaterfall.tsx
4650
- var gn = 280, _n = .45, vn = 36, Q = 20, yn = 20, bn = 4, $ = 12, xn = 48, Sn = 32, Cn = 3, wn = {
4636
+ var hn = 280, gn = .45, _n = 36, Q = 20, vn = 20, yn = 4, $ = 12, bn = 48, xn = 32, Sn = 3, Cn = {
4651
4637
  internal: "INTERNAL",
4652
4638
  server: "SERVER",
4653
4639
  client: "CLIENT",
4654
4640
  producer: "PRODUCER",
4655
4641
  consumer: "CONSUMER"
4656
- }, Tn = [
4642
+ }, wn = [
4657
4643
  "bg-chart-1",
4658
4644
  "bg-chart-2",
4659
4645
  "bg-chart-3",
@@ -4663,21 +4649,21 @@ var gn = 280, _n = .45, vn = 36, Q = 20, yn = 20, bn = 4, $ = 12, xn = 48, Sn =
4663
4649
  "bg-chart-7",
4664
4650
  "bg-chart-8"
4665
4651
  ];
4666
- function En(e) {
4652
+ function Tn(e) {
4667
4653
  let t = /* @__PURE__ */ new Map(), n = 0;
4668
- for (let r of e) t.has(r.serviceName) || (t.set(r.serviceName, Tn[n % Tn.length]), n++);
4654
+ for (let r of e) t.has(r.serviceName) || (t.set(r.serviceName, wn[n % wn.length]), n++);
4669
4655
  return t;
4670
4656
  }
4671
- var Dn = { error: "bg-destructive" }, On = {
4657
+ var En = { error: "bg-destructive" }, Dn = {
4672
4658
  ok: "success",
4673
4659
  error: "destructive",
4674
4660
  unset: "secondary"
4675
- }, kn = {
4661
+ }, On = {
4676
4662
  ok: "OK",
4677
4663
  error: "Error",
4678
4664
  unset: "Unset"
4679
4665
  };
4680
- function An({ icon: e, label: t, children: n }) {
4666
+ function kn({ icon: e, label: t, children: n }) {
4681
4667
  return /* @__PURE__ */ G("div", {
4682
4668
  className: "flex items-center justify-between gap-4",
4683
4669
  children: [/* @__PURE__ */ G("div", {
@@ -4689,7 +4675,7 @@ function An({ icon: e, label: t, children: n }) {
4689
4675
  })]
4690
4676
  });
4691
4677
  }
4692
- function jn({ span: t, serviceColor: n, traceDurationNs: r }) {
4678
+ function An({ span: t, serviceColor: n, traceDurationNs: r }) {
4693
4679
  return /* @__PURE__ */ G(U, { children: [
4694
4680
  /* @__PURE__ */ G("div", {
4695
4681
  className: "space-y-1 px-2.5 pt-2 pb-1.5",
@@ -4702,13 +4688,13 @@ function jn({ span: t, serviceColor: n, traceDurationNs: r }) {
4702
4688
  }), /* @__PURE__ */ G("div", {
4703
4689
  className: "flex items-center gap-1.5 pl-[14px]",
4704
4690
  children: [/* @__PURE__ */ W(O, {
4705
- variant: On[t.status],
4691
+ variant: Dn[t.status],
4706
4692
  className: "h-4 text-[9px]",
4707
- children: kn[t.status]
4693
+ children: On[t.status]
4708
4694
  }), /* @__PURE__ */ W(O, {
4709
4695
  variant: "outline",
4710
4696
  className: "h-4 text-[9px]",
4711
- children: wn[t.kind]
4697
+ children: Cn[t.kind]
4712
4698
  })]
4713
4699
  })]
4714
4700
  }),
@@ -4716,25 +4702,25 @@ function jn({ span: t, serviceColor: n, traceDurationNs: r }) {
4716
4702
  /* @__PURE__ */ G("div", {
4717
4703
  className: "space-y-1 px-2.5 py-1.5 text-[11px]",
4718
4704
  children: [
4719
- /* @__PURE__ */ W(An, {
4720
- icon: nt,
4705
+ /* @__PURE__ */ W(kn, {
4706
+ icon: rt,
4721
4707
  label: "Service",
4722
4708
  children: t.serviceName
4723
4709
  }),
4724
- /* @__PURE__ */ W(An, {
4725
- icon: tt,
4710
+ /* @__PURE__ */ W(kn, {
4711
+ icon: nt,
4726
4712
  label: "Duration",
4727
4713
  children: /* @__PURE__ */ W("span", {
4728
4714
  className: "font-mono tabular-nums",
4729
- children: cn(t.durationNs)
4715
+ children: sn(t.durationNs)
4730
4716
  })
4731
4717
  }),
4732
- /* @__PURE__ */ W(An, {
4718
+ /* @__PURE__ */ W(kn, {
4733
4719
  icon: Ze,
4734
4720
  label: "% of trace",
4735
4721
  children: /* @__PURE__ */ W("span", {
4736
4722
  className: "font-mono tabular-nums",
4737
- children: dn(t.durationNs, r)
4723
+ children: un(t.durationNs, r)
4738
4724
  })
4739
4725
  })
4740
4726
  ]
@@ -4748,7 +4734,7 @@ function jn({ span: t, serviceColor: n, traceDurationNs: r }) {
4748
4734
  })
4749
4735
  ] });
4750
4736
  }
4751
- function Mn({ span: e, serviceColor: t, traceDurationNs: n, renderTooltip: r, children: i }) {
4737
+ function jn({ span: e, serviceColor: t, traceDurationNs: n, renderTooltip: r, children: i }) {
4752
4738
  return /* @__PURE__ */ G(P, {
4753
4739
  openDelay: 250,
4754
4740
  closeDelay: 0,
@@ -4760,7 +4746,7 @@ function Mn({ span: e, serviceColor: t, traceDurationNs: n, renderTooltip: r, ch
4760
4746
  align: "start",
4761
4747
  sideOffset: 4,
4762
4748
  className: "w-56 p-0",
4763
- children: r ? r(e) : /* @__PURE__ */ W(jn, {
4749
+ children: r ? r(e) : /* @__PURE__ */ W(An, {
4764
4750
  span: e,
4765
4751
  serviceColor: t,
4766
4752
  traceDurationNs: n
@@ -4768,7 +4754,7 @@ function Mn({ span: e, serviceColor: t, traceDurationNs: n, renderTooltip: r, ch
4768
4754
  })]
4769
4755
  });
4770
4756
  }
4771
- function Nn({ depth: e }) {
4757
+ function Mn({ depth: e }) {
4772
4758
  return e === 0 ? null : /* @__PURE__ */ W("span", {
4773
4759
  className: "pointer-events-none relative shrink-0",
4774
4760
  style: { width: e * Q },
@@ -4792,12 +4778,12 @@ function Nn({ depth: e }) {
4792
4778
  })
4793
4779
  });
4794
4780
  }
4795
- function Pn(e) {
4781
+ function Nn(e) {
4796
4782
  let t = /* @__PURE__ */ new Set(), n = new Set(e.map((e) => e.spanId));
4797
4783
  for (let r of e) r.parentSpanId && n.has(r.parentSpanId) && t.add(r.parentSpanId);
4798
4784
  return t;
4799
4785
  }
4800
- function Fn(e, t) {
4786
+ function Pn(e, t) {
4801
4787
  if (t.size === 0) return e;
4802
4788
  let n = /* @__PURE__ */ new Set();
4803
4789
  for (let r = 0; r < e.length; r++) {
@@ -4809,7 +4795,7 @@ function Fn(e, t) {
4809
4795
  }
4810
4796
  return e.filter((e) => !n.has(e.spanId));
4811
4797
  }
4812
- function In(e) {
4798
+ function Fn(e) {
4813
4799
  let t = /* @__PURE__ */ new Map(), n = [];
4814
4800
  for (let r = e.length - 1; r >= 0; r--) {
4815
4801
  let i = e[r].depth;
@@ -4819,11 +4805,11 @@ function In(e) {
4819
4805
  }
4820
4806
  return t;
4821
4807
  }
4822
- function Ln({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, serviceColor: a, selected: o, hasChildren: s, collapsed: c, collapsedCount: l, onSelect: u, onToggle: d, onHover: f, onLeave: p, renderTooltip: m }) {
4823
- let { x: h, width: g } = un(t.startOffsetNs, t.durationNs, n, i), _ = t.status === "error" ? Dn.error : a, v = cn(t.durationNs), y = g >= 56, b = !y;
4808
+ function In({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, serviceColor: a, selected: o, hasChildren: s, collapsed: c, collapsedCount: l, onSelect: u, onToggle: d, onHover: f, onLeave: p, renderTooltip: m }) {
4809
+ let { x: h, width: g } = ln(t.startOffsetNs, t.durationNs, n, i), _ = t.status === "error" ? En.error : a, v = sn(t.durationNs), y = g >= 56, b = !y;
4824
4810
  return /* @__PURE__ */ G("div", {
4825
4811
  className: e("group flex w-full cursor-pointer transition-colors", o ? "bg-accent/50" : "hover:bg-muted/30"),
4826
- style: { height: vn },
4812
+ style: { height: _n },
4827
4813
  onClick: () => u?.(t),
4828
4814
  onKeyDown: (e) => {
4829
4815
  e.key === "Enter" || e.key === " " ? (e.preventDefault(), u?.(t)) : (e.key === "ArrowRight" && s && c || e.key === "ArrowLeft" && s && !c) && (e.preventDefault(), d?.(t.spanId));
@@ -4838,7 +4824,7 @@ function Ln({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
4838
4824
  className: e("w-[3px] shrink-0 transition-colors", o ? "bg-primary" : "bg-transparent"),
4839
4825
  "aria-hidden": "true"
4840
4826
  }),
4841
- /* @__PURE__ */ W(Mn, {
4827
+ /* @__PURE__ */ W(jn, {
4842
4828
  span: t,
4843
4829
  serviceColor: a,
4844
4830
  traceDurationNs: n,
@@ -4847,7 +4833,7 @@ function Ln({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
4847
4833
  className: "flex shrink-0 items-center gap-1 overflow-hidden border-r border-border/30 px-1.5",
4848
4834
  style: { width: r },
4849
4835
  children: [
4850
- /* @__PURE__ */ W(Nn, { depth: t.depth }),
4836
+ /* @__PURE__ */ W(Mn, { depth: t.depth }),
4851
4837
  s ? /* @__PURE__ */ W("button", {
4852
4838
  type: "button",
4853
4839
  tabIndex: -1,
@@ -4869,7 +4855,7 @@ function Ln({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
4869
4855
  className: "truncate text-[13px] leading-tight font-medium text-foreground",
4870
4856
  children: t.name
4871
4857
  }),
4872
- t.status === "error" && /* @__PURE__ */ W(et, { className: "size-3.5 shrink-0 text-destructive" }),
4858
+ t.status === "error" && /* @__PURE__ */ W(tt, { className: "size-3.5 shrink-0 text-destructive" }),
4873
4859
  c && /* @__PURE__ */ W(O, {
4874
4860
  variant: "secondary",
4875
4861
  className: "h-4 shrink-0 text-[9px]",
@@ -4888,7 +4874,7 @@ function Ln({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
4888
4874
  className: "relative flex-1 overflow-hidden",
4889
4875
  style: {
4890
4876
  paddingLeft: $,
4891
- paddingRight: xn
4877
+ paddingRight: bn
4892
4878
  },
4893
4879
  "aria-label": `${t.name}: ${v}`,
4894
4880
  children: [
@@ -4897,8 +4883,8 @@ function Ln({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
4897
4883
  style: {
4898
4884
  left: $ + h,
4899
4885
  width: Math.max(g, 3),
4900
- height: yn,
4901
- borderRadius: bn
4886
+ height: vn,
4887
+ borderRadius: yn
4902
4888
  }
4903
4889
  }),
4904
4890
  y && /* @__PURE__ */ W("span", {
@@ -4919,14 +4905,14 @@ function Ln({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
4919
4905
  ]
4920
4906
  });
4921
4907
  }
4922
- function Rn({ traceDurationNs: e, labelWidth: t, usableWidth: n, hasCollapsible: r, isAllCollapsed: i, onExpandAll: a, onCollapseAll: o }) {
4923
- let s = hn(e, mn(n)), c = K().domain([0, e]).range([0, n]);
4908
+ function Ln({ traceDurationNs: e, labelWidth: t, usableWidth: n, hasCollapsible: r, isAllCollapsed: i, onExpandAll: a, onCollapseAll: o }) {
4909
+ let s = mn(e, pn(n)), c = K().domain([0, e]).range([0, n]);
4924
4910
  return /* @__PURE__ */ G("div", {
4925
4911
  className: "flex shrink-0 items-end border-b border-border bg-muted/30",
4926
- style: { height: Sn },
4912
+ style: { height: xn },
4927
4913
  children: [/* @__PURE__ */ G("div", {
4928
4914
  className: "flex shrink-0 items-center justify-between border-r border-border/30 px-3 pb-2",
4929
- style: { width: t + Cn },
4915
+ style: { width: t + Sn },
4930
4916
  children: [/* @__PURE__ */ W("span", {
4931
4917
  className: "truncate text-[11px] font-semibold tracking-wider text-muted-foreground uppercase",
4932
4918
  children: "Service & Operation"
@@ -4941,7 +4927,7 @@ function Rn({ traceDurationNs: e, labelWidth: t, usableWidth: n, hasCollapsible:
4941
4927
  className: "relative flex-1 pb-2",
4942
4928
  style: {
4943
4929
  paddingLeft: $,
4944
- paddingRight: xn
4930
+ paddingRight: bn
4945
4931
  },
4946
4932
  children: s.map((e, t) => {
4947
4933
  let n = t === 0, r = t === s.length - 1;
@@ -4951,18 +4937,18 @@ function Rn({ traceDurationNs: e, labelWidth: t, usableWidth: n, hasCollapsible:
4951
4937
  left: $ + c(e),
4952
4938
  transform: n ? "none" : r ? "translateX(-100%)" : "translateX(-50%)"
4953
4939
  },
4954
- children: cn(e)
4940
+ children: sn(e)
4955
4941
  }, e);
4956
4942
  })
4957
4943
  })]
4958
4944
  });
4959
4945
  }
4960
- function zn({ traceDurationNs: e, labelWidth: t, usableWidth: n, rowCount: r }) {
4961
- let i = hn(e, mn(n)), a = K().domain([0, e]).range([0, n]), o = r * vn;
4946
+ function Rn({ traceDurationNs: e, labelWidth: t, usableWidth: n, rowCount: r }) {
4947
+ let i = mn(e, pn(n)), a = K().domain([0, e]).range([0, n]), o = r * _n;
4962
4948
  return /* @__PURE__ */ W("svg", {
4963
4949
  className: "pointer-events-none absolute top-0",
4964
4950
  style: {
4965
- left: t + Cn + $,
4951
+ left: t + Sn + $,
4966
4952
  width: n,
4967
4953
  height: o
4968
4954
  },
@@ -4978,7 +4964,7 @@ function zn({ traceDurationNs: e, labelWidth: t, usableWidth: n, rowCount: r })
4978
4964
  }, e))
4979
4965
  });
4980
4966
  }
4981
- var Bn = [
4967
+ var zn = [
4982
4968
  {
4983
4969
  indent: 0,
4984
4970
  labelPct: 60,
@@ -5010,7 +4996,7 @@ var Bn = [
5010
4996
  barPct: 65
5011
4997
  }
5012
4998
  ];
5013
- function Vn({ ariaLabel: t, className: n, ...r }) {
4999
+ function Bn({ ariaLabel: t, className: n, ...r }) {
5014
5000
  return /* @__PURE__ */ G("div", {
5015
5001
  role: "img",
5016
5002
  "aria-busy": "true",
@@ -5019,13 +5005,13 @@ function Vn({ ariaLabel: t, className: n, ...r }) {
5019
5005
  ...r,
5020
5006
  children: [/* @__PURE__ */ W("div", {
5021
5007
  className: "flex shrink-0 items-center border-b border-border bg-muted/30 px-3",
5022
- style: { height: Sn },
5008
+ style: { height: xn },
5023
5009
  children: /* @__PURE__ */ W(_, { className: "h-3 w-1/3 max-w-32" })
5024
5010
  }), /* @__PURE__ */ W("div", {
5025
5011
  className: "flex-1",
5026
- children: Bn.map((e, t) => /* @__PURE__ */ G("div", {
5012
+ children: zn.map((e, t) => /* @__PURE__ */ G("div", {
5027
5013
  className: "flex items-center gap-2 px-2",
5028
- style: { height: vn },
5014
+ style: { height: _n },
5029
5015
  children: [/* @__PURE__ */ G("div", {
5030
5016
  className: "flex shrink-0 items-center gap-1.5",
5031
5017
  style: { paddingLeft: e.indent * 12 },
@@ -5043,7 +5029,7 @@ function Vn({ ariaLabel: t, className: n, ...r }) {
5043
5029
  className: "rounded-sm",
5044
5030
  style: {
5045
5031
  width: `${e.barPct}%`,
5046
- height: yn
5032
+ height: vn
5047
5033
  }
5048
5034
  })
5049
5035
  })]
@@ -5051,14 +5037,14 @@ function Vn({ ariaLabel: t, className: n, ...r }) {
5051
5037
  })]
5052
5038
  });
5053
5039
  }
5054
- function Hn({ spans: t, state: n, selectedSpanId: r, onSpanSelect: i, onSpanHover: a, onSpanLeave: o, defaultCollapsed: s = !1, renderTooltip: c, ariaLabel: l = "Trace waterfall timeline", className: u, ...d }) {
5040
+ function Vn({ spans: t, state: n, selectedSpanId: r, onSpanSelect: i, onSpanHover: a, onSpanLeave: o, defaultCollapsed: s = !1, renderTooltip: c, ariaLabel: l = "Trace waterfall timeline", className: u, ...d }) {
5055
5041
  let f = h(n, t.length), [p, m] = R.useState({
5056
- labelWidth: gn,
5042
+ labelWidth: hn,
5057
5043
  timelineWidth: 0
5058
- }), g = R.useRef(null), _ = R.useMemo(() => Pn(t), [t]), [y, b] = R.useState(() => s ? new Set(Pn(t)) : /* @__PURE__ */ new Set()), x = R.useCallback((e) => {
5044
+ }), g = R.useRef(null), _ = R.useMemo(() => Nn(t), [t]), [y, b] = R.useState(() => s ? new Set(Nn(t)) : /* @__PURE__ */ new Set()), x = R.useCallback((e) => {
5059
5045
  if (g.current &&= (g.current.disconnect(), null), e) {
5060
5046
  let t = new ResizeObserver(([e]) => {
5061
- let t = Math.round(e.contentRect.width), n = Math.min(gn, Math.round(t * _n)), r = t - n - Cn - $ - xn;
5047
+ let t = Math.round(e.contentRect.width), n = Math.min(hn, Math.round(t * gn)), r = t - n - Sn - $ - bn;
5062
5048
  m({
5063
5049
  labelWidth: n,
5064
5050
  timelineWidth: Math.max(r, 0)
@@ -5066,13 +5052,13 @@ function Hn({ spans: t, state: n, selectedSpanId: r, onSpanSelect: i, onSpanHove
5066
5052
  });
5067
5053
  t.observe(e), g.current = t;
5068
5054
  }
5069
- }, []), S = R.useMemo(() => ln(t), [t]), C = R.useMemo(() => En(t), [t]), w = R.useMemo(() => In(t), [t]), T = R.useMemo(() => Fn(t, y), [t, y]), E = R.useCallback((e) => {
5055
+ }, []), S = R.useMemo(() => cn(t), [t]), C = R.useMemo(() => Tn(t), [t]), w = R.useMemo(() => Fn(t), [t]), T = R.useMemo(() => Pn(t, y), [t, y]), E = R.useCallback((e) => {
5070
5056
  b((t) => {
5071
5057
  let n = new Set(t);
5072
5058
  return n.has(e) ? n.delete(e) : n.add(e), n;
5073
5059
  });
5074
5060
  }, []), D = R.useCallback(() => b(/* @__PURE__ */ new Set()), []), O = R.useCallback(() => b(new Set(_)), [_]), k = y.size > 0;
5075
- return f === "loading" ? /* @__PURE__ */ W(Vn, {
5061
+ return f === "loading" ? /* @__PURE__ */ W(Bn, {
5076
5062
  ariaLabel: l,
5077
5063
  className: u,
5078
5064
  ...d
@@ -5086,7 +5072,7 @@ function Hn({ spans: t, state: n, selectedSpanId: r, onSpanSelect: i, onSpanHove
5086
5072
  role: "treegrid",
5087
5073
  "aria-label": l,
5088
5074
  ...d,
5089
- children: [/* @__PURE__ */ W(Rn, {
5075
+ children: [/* @__PURE__ */ W(Ln, {
5090
5076
  traceDurationNs: S,
5091
5077
  labelWidth: p.labelWidth,
5092
5078
  usableWidth: p.timelineWidth,
@@ -5098,17 +5084,17 @@ function Hn({ spans: t, state: n, selectedSpanId: r, onSpanSelect: i, onSpanHove
5098
5084
  className: "min-h-0 flex-1",
5099
5085
  children: /* @__PURE__ */ G("div", {
5100
5086
  className: "relative",
5101
- children: [/* @__PURE__ */ W(zn, {
5087
+ children: [/* @__PURE__ */ W(Rn, {
5102
5088
  traceDurationNs: S,
5103
5089
  labelWidth: p.labelWidth,
5104
5090
  usableWidth: p.timelineWidth,
5105
5091
  rowCount: T.length
5106
- }), T.map((e) => /* @__PURE__ */ W(Ln, {
5092
+ }), T.map((e) => /* @__PURE__ */ W(In, {
5107
5093
  span: e,
5108
5094
  traceDurationNs: S,
5109
5095
  labelWidth: p.labelWidth,
5110
5096
  usableWidth: p.timelineWidth,
5111
- serviceColor: C.get(e.serviceName) ?? Tn[0],
5097
+ serviceColor: C.get(e.serviceName) ?? wn[0],
5112
5098
  selected: e.spanId === r,
5113
5099
  hasChildren: _.has(e.spanId),
5114
5100
  collapsed: y.has(e.spanId),
@@ -5124,4 +5110,4 @@ function Hn({ spans: t, state: n, selectedSpanId: r, onSpanSelect: i, onSpanHove
5124
5110
  });
5125
5111
  }
5126
5112
  //#endregion
5127
- export { sn as AreaChart, Me as AreaSeries, Fe as BarChart, Ae as BarSeries, a as CHART_THEMES, m as CartesianChart, g as CategoryAxis, g as XAxis, he as ChartCard, E as ChartContainer, Te as ChartLegend, we as ChartLegendContent, i as ChartStyle, Se as ChartTooltip, xe as ChartTooltipContent, r as DEFAULT_MARGIN, Be as DoughnutChart, o as Grid, on as LineChart, Oe as LineSeries, Wt as Metric, an as MetricGroup, f as ReferenceLine, Hn as TraceWaterfall, p as ValueAxis, p as YAxis, hn as buildTimeAxisTicks, e as cn, n as compactTick, un as computeBarGeometry, ln as computeTraceDurationNs, cn as formatDurationNs, dn as formatTracePercent, Pt as resolveSentiment, t as useChartConfig };
5113
+ export { on as AreaChart, Me as AreaSeries, Fe as BarChart, Ae as BarSeries, a as CHART_THEMES, m as CartesianChart, g as CategoryAxis, g as XAxis, he as ChartCard, E as ChartContainer, Te as ChartLegend, we as ChartLegendContent, i as ChartStyle, Se as ChartTooltip, xe as ChartTooltipContent, r as DEFAULT_MARGIN, Be as DoughnutChart, o as Grid, an as LineChart, Oe as LineSeries, Ut as Metric, rn as MetricGroup, f as ReferenceLine, Vn as TraceWaterfall, p as ValueAxis, p as YAxis, mn as buildTimeAxisTicks, e as cn, n as compactTick, ln as computeBarGeometry, cn as computeTraceDurationNs, sn as formatDurationNs, un as formatTracePercent, Nt as resolveSentiment, t as useChartConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravitee/graphene-charts",
3
- "version": "2.44.0",
3
+ "version": "2.45.0-monaco-base.11a7a3d",
4
4
  "type": "module",
5
5
  "description": "Theme-compliant data visualization components for the Graphene design system. Built on D3, styled with Tailwind, and designed to inherit the Graphene token system out of the box.",
6
6
  "keywords": [
@@ -64,7 +64,7 @@
64
64
  "d3-shape": "3.2.0"
65
65
  },
66
66
  "peerDependencies": {
67
- "@gravitee/graphene-core": "^2.31.0",
67
+ "@gravitee/graphene-core": "2.45.0-monaco-base.11a7a3d",
68
68
  "@xyflow/react": "^12.0.0",
69
69
  "react": "^19.0.0",
70
70
  "react-dom": "^19.0.0",