@axzydev/axzy_ui_system 1.8.2 → 1.8.4

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 CHANGED
@@ -2227,16 +2227,14 @@ function ITBentoTile({
2227
2227
  }
2228
2228
  } : void 0,
2229
2229
  children: [
2230
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("h3", { className: "it-bento-tile__label", children: [
2230
+ label !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("h3", { className: "it-bento-tile__label", children: [
2231
2231
  icon,
2232
2232
  label
2233
2233
  ] }),
2234
2234
  children,
2235
2235
  (value !== void 0 || caption || aside) && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "it-bento-tile__foot", children: [
2236
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex items-baseline gap-2", children: [
2237
- value !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "it-bento-tile__value", children: value }),
2238
- caption && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("small", { className: "it-bento-tile__caption", children: caption })
2239
- ] }),
2236
+ value !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "it-bento-tile__value", children: value }),
2237
+ caption && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("small", { className: "it-bento-tile__caption ml-auto", children: caption }),
2240
2238
  aside
2241
2239
  ] })
2242
2240
  ]
@@ -2358,13 +2356,14 @@ function ITBentoWeekBars({
2358
2356
  todayColor = "var(--color-warning, #f2c14e)"
2359
2357
  }) {
2360
2358
  const max = Math.max(1, ...items.map((i) => i.value));
2361
- 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 h-full flex-1 flex-col items-center justify-end gap-1 text-[10px]", style: { color: "var(--it-bento-muted)" }, children: [
2359
+ const BAR_MAX_PX = 52;
2360
+ 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
2361
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2363
2362
  "i",
2364
2363
  {
2365
2364
  className: "w-full rounded-t-[5px] rounded-b-[2px] transition-[height] duration-700",
2366
2365
  style: {
2367
- height: `${Math.max(6, item.value / max * 100)}%`,
2366
+ height: `${item.value === 0 ? 12 : Math.max(18, Math.round(item.value / max * BAR_MAX_PX))}px`,
2368
2367
  background: item.tone === "today" ? todayColor : item.tone === "future" ? "color-mix(in srgb, currentColor 14%, transparent)" : color,
2369
2368
  transitionDelay: `${i * 60 + 150}ms`
2370
2369
  }