@axzydev/axzy_ui_system 1.8.6 → 1.8.7

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.d.cts CHANGED
@@ -528,6 +528,11 @@ interface ITBentoStatStripProps {
528
528
  onSelect?: (id: string) => void;
529
529
  /** Dibuja la barra apilada con la proporción de cada cifra. */
530
530
  stack?: boolean;
531
+ /**
532
+ * Cifras que forman la barra, cuando no todas las de la tira se suman
533
+ * (p. ej. «sin asignar» es un subconjunto de «abiertos»). Por defecto usa `items`.
534
+ */
535
+ stackItems?: ITBentoStatItem[];
531
536
  className?: string;
532
537
  }
533
538
  /**
@@ -535,7 +540,7 @@ interface ITBentoStatStripProps {
535
540
  * por línea fina y, si se pide, la barra apilada con la proporción de cada uno.
536
541
  * Al pasar el cursor por un bloque se resalta su segmento de la barra.
537
542
  */
538
- declare function ITBentoStatStrip({ items, activeId, onSelect, stack, className }: ITBentoStatStripProps): react_jsx_runtime.JSX.Element;
543
+ declare function ITBentoStatStrip({ items, activeId, onSelect, stack, stackItems, className }: ITBentoStatStripProps): react_jsx_runtime.JSX.Element;
539
544
  interface ITBentoPillProps {
540
545
  /** Contenido de la píldora (texto corto). */
541
546
  children: ReactNode;
package/dist/index.d.ts CHANGED
@@ -528,6 +528,11 @@ interface ITBentoStatStripProps {
528
528
  onSelect?: (id: string) => void;
529
529
  /** Dibuja la barra apilada con la proporción de cada cifra. */
530
530
  stack?: boolean;
531
+ /**
532
+ * Cifras que forman la barra, cuando no todas las de la tira se suman
533
+ * (p. ej. «sin asignar» es un subconjunto de «abiertos»). Por defecto usa `items`.
534
+ */
535
+ stackItems?: ITBentoStatItem[];
531
536
  className?: string;
532
537
  }
533
538
  /**
@@ -535,7 +540,7 @@ interface ITBentoStatStripProps {
535
540
  * por línea fina y, si se pide, la barra apilada con la proporción de cada uno.
536
541
  * Al pasar el cursor por un bloque se resalta su segmento de la barra.
537
542
  */
538
- declare function ITBentoStatStrip({ items, activeId, onSelect, stack, className }: ITBentoStatStripProps): react_jsx_runtime.JSX.Element;
543
+ declare function ITBentoStatStrip({ items, activeId, onSelect, stack, stackItems, className }: ITBentoStatStripProps): react_jsx_runtime.JSX.Element;
539
544
  interface ITBentoPillProps {
540
545
  /** Contenido de la píldora (texto corto). */
541
546
  children: ReactNode;
package/dist/index.js CHANGED
@@ -2265,10 +2265,11 @@ function ITBentoFeed({ groups, onItemClick, maxHeight = 330 }) {
2265
2265
  ) }, item.id)) })
2266
2266
  ] }, group.key)) });
2267
2267
  }
2268
- function ITBentoStatStrip({ items, activeId, onSelect, stack = false, className }) {
2268
+ function ITBentoStatStrip({ items, activeId, onSelect, stack = false, stackItems, className }) {
2269
2269
  const [hovered, setHovered] = useState8(null);
2270
2270
  const focus = hovered ?? activeId ?? null;
2271
- const total = items.reduce((acc, item) => acc + (typeof item.value === "number" ? item.value : 0), 0);
2271
+ const parts = stackItems ?? items;
2272
+ const total = parts.reduce((acc, item) => acc + (typeof item.value === "number" ? item.value : 0), 0);
2272
2273
  const clickable = typeof onSelect === "function";
2273
2274
  return /* @__PURE__ */ jsxs6("div", { className: clsx9("it-bento-statstrip", className), children: [
2274
2275
  /* @__PURE__ */ jsx12("div", { className: "it-bento-statstrip__grid", style: { ["--it-bento-cols"]: Math.min(items.length, 4) }, children: items.map((item) => {
@@ -2297,7 +2298,7 @@ function ITBentoStatStrip({ items, activeId, onSelect, stack = false, className
2297
2298
  item.id
2298
2299
  );
2299
2300
  }) }),
2300
- stack && total > 0 && /* @__PURE__ */ jsx12("div", { className: clsx9("it-bento-statstrip__stack", focus && "is-dim"), "aria-hidden": true, children: items.filter((item) => typeof item.value === "number" && item.value > 0).map((item) => /* @__PURE__ */ jsx12(
2301
+ stack && total > 0 && /* @__PURE__ */ jsx12("div", { className: clsx9("it-bento-statstrip__stack", focus && "is-dim"), "aria-hidden": true, children: parts.filter((item) => typeof item.value === "number" && item.value > 0).map((item) => /* @__PURE__ */ jsx12(
2301
2302
  "i",
2302
2303
  {
2303
2304
  className: clsx9(item.id === focus && "is-on"),