@ambuj.bhaskar/react-component-library 0.28.6-alpha → 0.28.7-alpha
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/assets/index.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +78 -63
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -970,6 +970,8 @@ export declare type HeatmapProps = {
|
|
|
970
970
|
labelTextColor?: Color;
|
|
971
971
|
className?: string;
|
|
972
972
|
cellClassName?: string;
|
|
973
|
+
xLabelFontSize?: CSSstring;
|
|
974
|
+
yLabelFontSize?: CSSstring;
|
|
973
975
|
};
|
|
974
976
|
|
|
975
977
|
declare type HTMLButtonProps = ComponentProps<"button">;
|
package/dist/index.js
CHANGED
|
@@ -83341,7 +83341,7 @@ const DDe = (e, t, n) => {
|
|
|
83341
83341
|
width: r,
|
|
83342
83342
|
height: o,
|
|
83343
83343
|
showLegend: i = !0,
|
|
83344
|
-
transformCellData: a = (
|
|
83344
|
+
transformCellData: a = (E) => E.value,
|
|
83345
83345
|
cellWidth: s,
|
|
83346
83346
|
cellHeight: c,
|
|
83347
83347
|
yLabelWidth: u = "4rem",
|
|
@@ -83352,10 +83352,12 @@ const DDe = (e, t, n) => {
|
|
|
83352
83352
|
cellBorderColor: A,
|
|
83353
83353
|
borderColor: v,
|
|
83354
83354
|
className: p,
|
|
83355
|
-
cellClassName: _
|
|
83355
|
+
cellClassName: _,
|
|
83356
|
+
xLabelFontSize: w,
|
|
83357
|
+
yLabelFontSize: x
|
|
83356
83358
|
}) => {
|
|
83357
|
-
var
|
|
83358
|
-
return i || (h = "0rem"), !s && r && (s = `calc((${r} - ${u})/${(
|
|
83359
|
+
var E, S, M, H;
|
|
83360
|
+
return i || (h = "0rem"), !s && r && (s = `calc((${r} - ${u})/${(E = e == null ? void 0 : e.xlabels) == null ? void 0 : E.length})`), !c && o && (c = `calc((${o} - ${h} - ${d})/${(S = e == null ? void 0 : e.ylabels) == null ? void 0 : S.length})`), /* @__PURE__ */ z.jsx(
|
|
83359
83361
|
"div",
|
|
83360
83362
|
{
|
|
83361
83363
|
className: `heatmap ${p || ""}`,
|
|
@@ -83366,8 +83368,8 @@ const DDe = (e, t, n) => {
|
|
|
83366
83368
|
"--c_border": v
|
|
83367
83369
|
},
|
|
83368
83370
|
children: /* @__PURE__ */ z.jsxs("table", { children: [
|
|
83369
|
-
(
|
|
83370
|
-
var
|
|
83371
|
+
(M = e == null ? void 0 : e.ylabels) == null ? void 0 : M.map((B, R) => {
|
|
83372
|
+
var k, P;
|
|
83371
83373
|
return /* @__PURE__ */ z.jsxs(
|
|
83372
83374
|
"tr",
|
|
83373
83375
|
{
|
|
@@ -83380,50 +83382,53 @@ const DDe = (e, t, n) => {
|
|
|
83380
83382
|
"th",
|
|
83381
83383
|
{
|
|
83382
83384
|
className: "y_axis_label",
|
|
83383
|
-
title:
|
|
83385
|
+
title: B,
|
|
83384
83386
|
style: {
|
|
83385
83387
|
width: u,
|
|
83386
83388
|
maxWidth: u,
|
|
83387
83389
|
minWidth: u,
|
|
83388
|
-
color: m
|
|
83390
|
+
color: m,
|
|
83391
|
+
fontSize: x
|
|
83389
83392
|
},
|
|
83390
|
-
children:
|
|
83393
|
+
children: B
|
|
83391
83394
|
}
|
|
83392
83395
|
),
|
|
83393
|
-
(
|
|
83394
|
-
|
|
83395
|
-
|
|
83396
|
-
|
|
83397
|
-
|
|
83398
|
-
|
|
83399
|
-
|
|
83400
|
-
|
|
83401
|
-
|
|
83402
|
-
|
|
83403
|
-
|
|
83404
|
-
|
|
83405
|
-
|
|
83406
|
-
|
|
83407
|
-
|
|
83408
|
-
(
|
|
83409
|
-
|
|
83410
|
-
|
|
83411
|
-
|
|
83412
|
-
|
|
83396
|
+
(P = (k = e == null ? void 0 : e.datasets) == null ? void 0 : k[B]) == null ? void 0 : P.map(
|
|
83397
|
+
(D, V) => /* @__PURE__ */ z.jsx(
|
|
83398
|
+
"td",
|
|
83399
|
+
{
|
|
83400
|
+
className: `heatmap_cell ${_ || ""}`,
|
|
83401
|
+
style: { width: s, height: "100%" },
|
|
83402
|
+
children: /* @__PURE__ */ z.jsx(
|
|
83403
|
+
eu,
|
|
83404
|
+
{
|
|
83405
|
+
content: /* @__PURE__ */ z.jsx("div", { className: "heatmap_cell_tooltip", children: D == null ? void 0 : D.hoverContent }),
|
|
83406
|
+
trigger: "hover",
|
|
83407
|
+
children: /* @__PURE__ */ z.jsx(
|
|
83408
|
+
"div",
|
|
83409
|
+
{
|
|
83410
|
+
style: {
|
|
83411
|
+
backgroundColor: (D == null ? void 0 : D.color) ?? DDe(
|
|
83412
|
+
(D == null ? void 0 : D.value) ?? 0,
|
|
83413
|
+
n,
|
|
83414
|
+
t
|
|
83415
|
+
),
|
|
83416
|
+
color: C
|
|
83417
|
+
},
|
|
83418
|
+
className: "heatmap_cell_inner",
|
|
83419
|
+
children: a(D)
|
|
83413
83420
|
},
|
|
83414
|
-
|
|
83415
|
-
|
|
83416
|
-
|
|
83417
|
-
|
|
83418
|
-
|
|
83419
|
-
|
|
83420
|
-
|
|
83421
|
-
|
|
83422
|
-
`${P}-${H}-${k == null ? void 0 : k.value}`
|
|
83423
|
-
))
|
|
83421
|
+
`${V}-${R}-${D == null ? void 0 : D.value}`
|
|
83422
|
+
)
|
|
83423
|
+
}
|
|
83424
|
+
)
|
|
83425
|
+
},
|
|
83426
|
+
`${V}-${R}-${D == null ? void 0 : D.value}`
|
|
83427
|
+
)
|
|
83428
|
+
)
|
|
83424
83429
|
]
|
|
83425
83430
|
},
|
|
83426
|
-
`${
|
|
83431
|
+
`${R}-${B}`
|
|
83427
83432
|
);
|
|
83428
83433
|
}),
|
|
83429
83434
|
/* @__PURE__ */ z.jsxs("tr", { children: [
|
|
@@ -83438,7 +83443,7 @@ const DDe = (e, t, n) => {
|
|
|
83438
83443
|
}
|
|
83439
83444
|
}
|
|
83440
83445
|
),
|
|
83441
|
-
(
|
|
83446
|
+
(H = e == null ? void 0 : e.xlabels) == null ? void 0 : H.map((B, R) => /* @__PURE__ */ z.jsx(
|
|
83442
83447
|
"th",
|
|
83443
83448
|
{
|
|
83444
83449
|
className: "x_axis_label font_secondary",
|
|
@@ -83449,32 +83454,42 @@ const DDe = (e, t, n) => {
|
|
|
83449
83454
|
height: d,
|
|
83450
83455
|
maxHeight: d,
|
|
83451
83456
|
minHeight: d,
|
|
83452
|
-
color: m
|
|
83457
|
+
color: m,
|
|
83458
|
+
fontSize: w
|
|
83453
83459
|
},
|
|
83454
|
-
title:
|
|
83455
|
-
children:
|
|
83460
|
+
title: B,
|
|
83461
|
+
children: B
|
|
83456
83462
|
},
|
|
83457
|
-
`${
|
|
83463
|
+
`${R}-${B}`
|
|
83458
83464
|
))
|
|
83459
83465
|
] }, "x_axis_labels"),
|
|
83460
|
-
i ? /* @__PURE__ */ z.jsxs(
|
|
83461
|
-
|
|
83462
|
-
|
|
83463
|
-
|
|
83464
|
-
|
|
83465
|
-
|
|
83466
|
-
|
|
83467
|
-
|
|
83468
|
-
|
|
83469
|
-
|
|
83470
|
-
|
|
83471
|
-
|
|
83472
|
-
|
|
83473
|
-
|
|
83474
|
-
|
|
83475
|
-
|
|
83476
|
-
|
|
83477
|
-
|
|
83466
|
+
i ? /* @__PURE__ */ z.jsxs(
|
|
83467
|
+
"tr",
|
|
83468
|
+
{
|
|
83469
|
+
className: "heatmap_legend_container",
|
|
83470
|
+
style: {
|
|
83471
|
+
width: `calc( 100% - ${u})`,
|
|
83472
|
+
marginLeft: u,
|
|
83473
|
+
height: h
|
|
83474
|
+
},
|
|
83475
|
+
children: [
|
|
83476
|
+
/* @__PURE__ */ z.jsx("p", { children: n == null ? void 0 : n[0] }),
|
|
83477
|
+
/* @__PURE__ */ z.jsx(
|
|
83478
|
+
"div",
|
|
83479
|
+
{
|
|
83480
|
+
className: "heatmap_legend",
|
|
83481
|
+
title: `${n == null ? void 0 : n[0]} - ${n == null ? void 0 : n[1]}`,
|
|
83482
|
+
style: {
|
|
83483
|
+
backgroundImage: `linear-gradient(to right, ${t.join(
|
|
83484
|
+
","
|
|
83485
|
+
)})`
|
|
83486
|
+
}
|
|
83487
|
+
}
|
|
83488
|
+
),
|
|
83489
|
+
/* @__PURE__ */ z.jsx("p", { children: n == null ? void 0 : n[1] })
|
|
83490
|
+
]
|
|
83491
|
+
}
|
|
83492
|
+
) : /* @__PURE__ */ z.jsx(z.Fragment, {})
|
|
83478
83493
|
] })
|
|
83479
83494
|
}
|
|
83480
83495
|
);
|