@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/package.json
CHANGED
|
@@ -267,14 +267,15 @@ export function ITBentoWeekBars({
|
|
|
267
267
|
todayColor = "var(--color-warning, #f2c14e)",
|
|
268
268
|
}: ITBentoWeekBarsProps) {
|
|
269
269
|
const max = Math.max(1, ...items.map((i) => i.value));
|
|
270
|
+
const BAR_MAX_PX = 52;
|
|
270
271
|
return (
|
|
271
272
|
<div className="mt-1 flex min-h-0 flex-1 items-end gap-1.5">
|
|
272
273
|
{items.map((item, i) => (
|
|
273
|
-
<div key={item.label} className="flex
|
|
274
|
+
<div key={item.label} className="flex flex-1 flex-col items-center justify-end gap-1 text-[10px]" style={{ color: "var(--it-bento-muted)" }}>
|
|
274
275
|
<i
|
|
275
276
|
className="w-full rounded-t-[5px] rounded-b-[2px] transition-[height] duration-700"
|
|
276
277
|
style={{
|
|
277
|
-
height: `${Math.max(6, (item.value / max) *
|
|
278
|
+
height: `${Math.max(6, Math.round((item.value / max) * BAR_MAX_PX))}px`,
|
|
278
279
|
background:
|
|
279
280
|
item.tone === "today" ? todayColor : item.tone === "future" ? "color-mix(in srgb, currentColor 14%, transparent)" : color,
|
|
280
281
|
transitionDelay: `${i * 60 + 150}ms`,
|