@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/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "packageManager": "pnpm@10.34.0",
5
5
  "private": false,
6
6
  "license": "MIT",
7
- "version": "1.8.2",
7
+ "version": "1.8.3",
8
8
  "type": "module",
9
9
  "sideEffects": [
10
10
  "*.css"
@@ -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 h-full flex-1 flex-col items-center justify-end gap-1 text-[10px]" style={{ color: "var(--it-bento-muted)" }}>
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) * 100)}%`,
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`,