@axzydev/axzy_ui_system 1.8.2 → 1.8.3
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.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/organisms/bento/bento.tsx +3 -2
package/dist/index.cjs
CHANGED
|
@@ -2358,13 +2358,14 @@ function ITBentoWeekBars({
|
|
|
2358
2358
|
todayColor = "var(--color-warning, #f2c14e)"
|
|
2359
2359
|
}) {
|
|
2360
2360
|
const max = Math.max(1, ...items.map((i) => i.value));
|
|
2361
|
-
|
|
2361
|
+
const BAR_MAX_PX = 52;
|
|
2362
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "mt-1 flex min-h-0 flex-1 items-end gap-1.5", children: items.map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-1 flex-col items-center justify-end gap-1 text-[10px]", style: { color: "var(--it-bento-muted)" }, children: [
|
|
2362
2363
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2363
2364
|
"i",
|
|
2364
2365
|
{
|
|
2365
2366
|
className: "w-full rounded-t-[5px] rounded-b-[2px] transition-[height] duration-700",
|
|
2366
2367
|
style: {
|
|
2367
|
-
height: `${Math.max(6, item.value / max *
|
|
2368
|
+
height: `${Math.max(6, Math.round(item.value / max * BAR_MAX_PX))}px`,
|
|
2368
2369
|
background: item.tone === "today" ? todayColor : item.tone === "future" ? "color-mix(in srgb, currentColor 14%, transparent)" : color,
|
|
2369
2370
|
transitionDelay: `${i * 60 + 150}ms`
|
|
2370
2371
|
}
|