@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.js
CHANGED
|
@@ -2190,13 +2190,14 @@ function ITBentoWeekBars({
|
|
|
2190
2190
|
todayColor = "var(--color-warning, #f2c14e)"
|
|
2191
2191
|
}) {
|
|
2192
2192
|
const max = Math.max(1, ...items.map((i) => i.value));
|
|
2193
|
-
|
|
2193
|
+
const BAR_MAX_PX = 52;
|
|
2194
|
+
return /* @__PURE__ */ jsx12("div", { className: "mt-1 flex min-h-0 flex-1 items-end gap-1.5", children: items.map((item, i) => /* @__PURE__ */ jsxs6("div", { className: "flex flex-1 flex-col items-center justify-end gap-1 text-[10px]", style: { color: "var(--it-bento-muted)" }, children: [
|
|
2194
2195
|
/* @__PURE__ */ jsx12(
|
|
2195
2196
|
"i",
|
|
2196
2197
|
{
|
|
2197
2198
|
className: "w-full rounded-t-[5px] rounded-b-[2px] transition-[height] duration-700",
|
|
2198
2199
|
style: {
|
|
2199
|
-
height: `${Math.max(6, item.value / max *
|
|
2200
|
+
height: `${Math.max(6, Math.round(item.value / max * BAR_MAX_PX))}px`,
|
|
2200
2201
|
background: item.tone === "today" ? todayColor : item.tone === "future" ? "color-mix(in srgb, currentColor 14%, transparent)" : color,
|
|
2201
2202
|
transitionDelay: `${i * 60 + 150}ms`
|
|
2202
2203
|
}
|