@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 +6 -7
- 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 +6 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/organisms/bento/bento.tsx +13 -11
package/dist/index.d.cts
CHANGED
|
@@ -391,7 +391,8 @@ declare function ITAccordion({ items, allowMultiple, defaultOpenIds, openIds, on
|
|
|
391
391
|
/** Tono de superficie del mosaico: blanco por defecto o uno de marca. */
|
|
392
392
|
type ITBentoTone = "plain" | "sea" | "lavender" | "mint" | "sun";
|
|
393
393
|
interface ITBentoTileProps {
|
|
394
|
-
|
|
394
|
+
/** Etiqueta superior; si se omite, la tarjeta se maqueta con `children`. */
|
|
395
|
+
label?: ReactNode;
|
|
395
396
|
/** Ícono de línea a la izquierda de la etiqueta. */
|
|
396
397
|
icon?: ReactNode;
|
|
397
398
|
/** Cuántas columnas del mosaico ocupa (1–12). */
|
package/dist/index.d.ts
CHANGED
|
@@ -391,7 +391,8 @@ declare function ITAccordion({ items, allowMultiple, defaultOpenIds, openIds, on
|
|
|
391
391
|
/** Tono de superficie del mosaico: blanco por defecto o uno de marca. */
|
|
392
392
|
type ITBentoTone = "plain" | "sea" | "lavender" | "mint" | "sun";
|
|
393
393
|
interface ITBentoTileProps {
|
|
394
|
-
|
|
394
|
+
/** Etiqueta superior; si se omite, la tarjeta se maqueta con `children`. */
|
|
395
|
+
label?: ReactNode;
|
|
395
396
|
/** Ícono de línea a la izquierda de la etiqueta. */
|
|
396
397
|
icon?: ReactNode;
|
|
397
398
|
/** Cuántas columnas del mosaico ocupa (1–12). */
|
package/dist/index.js
CHANGED
|
@@ -2059,16 +2059,14 @@ function ITBentoTile({
|
|
|
2059
2059
|
}
|
|
2060
2060
|
} : void 0,
|
|
2061
2061
|
children: [
|
|
2062
|
-
/* @__PURE__ */ jsxs6("h3", { className: "it-bento-tile__label", children: [
|
|
2062
|
+
label !== void 0 && /* @__PURE__ */ jsxs6("h3", { className: "it-bento-tile__label", children: [
|
|
2063
2063
|
icon,
|
|
2064
2064
|
label
|
|
2065
2065
|
] }),
|
|
2066
2066
|
children,
|
|
2067
2067
|
(value !== void 0 || caption || aside) && /* @__PURE__ */ jsxs6("div", { className: "it-bento-tile__foot", children: [
|
|
2068
|
-
/* @__PURE__ */
|
|
2069
|
-
|
|
2070
|
-
caption && /* @__PURE__ */ jsx12("small", { className: "it-bento-tile__caption", children: caption })
|
|
2071
|
-
] }),
|
|
2068
|
+
value !== void 0 && /* @__PURE__ */ jsx12("div", { className: "it-bento-tile__value", children: value }),
|
|
2069
|
+
caption && /* @__PURE__ */ jsx12("small", { className: "it-bento-tile__caption ml-auto", children: caption }),
|
|
2072
2070
|
aside
|
|
2073
2071
|
] })
|
|
2074
2072
|
]
|
|
@@ -2190,13 +2188,14 @@ function ITBentoWeekBars({
|
|
|
2190
2188
|
todayColor = "var(--color-warning, #f2c14e)"
|
|
2191
2189
|
}) {
|
|
2192
2190
|
const max = Math.max(1, ...items.map((i) => i.value));
|
|
2193
|
-
|
|
2191
|
+
const BAR_MAX_PX = 52;
|
|
2192
|
+
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
2193
|
/* @__PURE__ */ jsx12(
|
|
2195
2194
|
"i",
|
|
2196
2195
|
{
|
|
2197
2196
|
className: "w-full rounded-t-[5px] rounded-b-[2px] transition-[height] duration-700",
|
|
2198
2197
|
style: {
|
|
2199
|
-
height: `${Math.max(
|
|
2198
|
+
height: `${item.value === 0 ? 12 : Math.max(18, Math.round(item.value / max * BAR_MAX_PX))}px`,
|
|
2200
2199
|
background: item.tone === "today" ? todayColor : item.tone === "future" ? "color-mix(in srgb, currentColor 14%, transparent)" : color,
|
|
2201
2200
|
transitionDelay: `${i * 60 + 150}ms`
|
|
2202
2201
|
}
|