@axzydev/axzy_ui_system 1.8.3 → 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 +4 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/organisms/bento/bento.tsx +11 -10
package/package.json
CHANGED
|
@@ -6,7 +6,8 @@ import clsx from "clsx";
|
|
|
6
6
|
export type ITBentoTone = "plain" | "sea" | "lavender" | "mint" | "sun";
|
|
7
7
|
|
|
8
8
|
export interface ITBentoTileProps {
|
|
9
|
-
|
|
9
|
+
/** Etiqueta superior; si se omite, la tarjeta se maqueta con `children`. */
|
|
10
|
+
label?: ReactNode;
|
|
10
11
|
/** Ícono de línea a la izquierda de la etiqueta. */
|
|
11
12
|
icon?: ReactNode;
|
|
12
13
|
/** Cuántas columnas del mosaico ocupa (1–12). */
|
|
@@ -75,17 +76,17 @@ export function ITBentoTile({
|
|
|
75
76
|
: undefined
|
|
76
77
|
}
|
|
77
78
|
>
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
{label !== undefined && (
|
|
80
|
+
<h3 className="it-bento-tile__label">
|
|
81
|
+
{icon}
|
|
82
|
+
{label}
|
|
83
|
+
</h3>
|
|
84
|
+
)}
|
|
82
85
|
{children}
|
|
83
86
|
{(value !== undefined || caption || aside) && (
|
|
84
87
|
<div className="it-bento-tile__foot">
|
|
85
|
-
<div className="
|
|
86
|
-
|
|
87
|
-
{caption && <small className="it-bento-tile__caption">{caption}</small>}
|
|
88
|
-
</div>
|
|
88
|
+
{value !== undefined && <div className="it-bento-tile__value">{value}</div>}
|
|
89
|
+
{caption && <small className="it-bento-tile__caption ml-auto">{caption}</small>}
|
|
89
90
|
{aside}
|
|
90
91
|
</div>
|
|
91
92
|
)}
|
|
@@ -275,7 +276,7 @@ export function ITBentoWeekBars({
|
|
|
275
276
|
<i
|
|
276
277
|
className="w-full rounded-t-[5px] rounded-b-[2px] transition-[height] duration-700"
|
|
277
278
|
style={{
|
|
278
|
-
height: `${Math.max(
|
|
279
|
+
height: `${item.value === 0 ? 12 : Math.max(18, Math.round((item.value / max) * BAR_MAX_PX))}px`,
|
|
279
280
|
background:
|
|
280
281
|
item.tone === "today" ? todayColor : item.tone === "future" ? "color-mix(in srgb, currentColor 14%, transparent)" : color,
|
|
281
282
|
transitionDelay: `${i * 60 + 150}ms`,
|