@axzydev/axzy_ui_system 1.8.4 → 1.8.5

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.4",
7
+ "version": "1.8.5",
8
8
  "type": "module",
9
9
  "sideEffects": [
10
10
  "*.css"
@@ -404,6 +404,40 @@ export function ITBentoFeed({ groups, onItemClick, maxHeight = 330 }: ITBentoFee
404
404
  );
405
405
  }
406
406
 
407
+ export interface ITBentoPillProps {
408
+ /** Contenido de la píldora (texto corto). */
409
+ children: ReactNode;
410
+ /** Punto de color a la izquierda; si se omite, no se dibuja. */
411
+ dot?: string;
412
+ /** Color del texto (por defecto hereda el de la tarjeta). */
413
+ color?: string;
414
+ className?: string;
415
+ }
416
+
417
+ /**
418
+ * Píldora de dato dentro de una tarjeta bento: fondo traslúcido del color del
419
+ * texto y, opcionalmente, un punto de color. Reemplaza los `<span class="…">`
420
+ * hechos a mano en los héroes (no usa clases sueltas ni estilos por pantalla).
421
+ */
422
+ export function ITBentoPill({ children, dot, color, className }: ITBentoPillProps) {
423
+ return (
424
+ <span className={clsx("it-bento-pill", className)} style={color ? { color } : undefined}>
425
+ {dot && <i className="it-bento-pill__dot" style={{ background: dot }} aria-hidden />}
426
+ <span className="it-bento-pill__text">{children}</span>
427
+ </span>
428
+ );
429
+ }
430
+
431
+ export interface ITBentoPillRowProps {
432
+ children: ReactNode;
433
+ className?: string;
434
+ }
435
+
436
+ /** Fila que acomoda las píldoras de una tarjeta y las deja bajar de línea. */
437
+ export function ITBentoPillRow({ children, className }: ITBentoPillRowProps) {
438
+ return <div className={clsx("flex flex-wrap items-center gap-1.5", className)}>{children}</div>;
439
+ }
440
+
407
441
  export interface ITBentoLiveProps {
408
442
  label: string;
409
443
  className?: string;
package/src/index.css CHANGED
@@ -845,3 +845,33 @@
845
845
  transition: none !important;
846
846
  }
847
847
  }
848
+
849
+ /* Píldoras de datos del mosaico bento: chips traslúcidos que heredan el color de
850
+ la tarjeta (funcionan igual sobre tarjeta oscura o clara) con un punto de color. */
851
+ .it-bento-pill {
852
+ display: inline-flex;
853
+ align-items: center;
854
+ gap: 6px;
855
+ max-width: 100%;
856
+ padding: 4px 10px;
857
+ border-radius: 999px;
858
+ font-size: 11.5px;
859
+ font-weight: 600;
860
+ line-height: 1.2;
861
+ background: color-mix(in srgb, currentColor 12%, transparent);
862
+ }
863
+
864
+ .it-bento-pill__dot {
865
+ display: inline-block;
866
+ flex: none;
867
+ width: 7px;
868
+ height: 7px;
869
+ border-radius: 999px;
870
+ }
871
+
872
+ .it-bento-pill__text {
873
+ min-width: 0;
874
+ overflow: hidden;
875
+ text-overflow: ellipsis;
876
+ white-space: nowrap;
877
+ }
package/src/index.ts CHANGED
@@ -20,6 +20,8 @@ import {
20
20
  ITBentoWeekBars,
21
21
  ITBentoDonut,
22
22
  ITBentoFeed,
23
+ ITBentoPill,
24
+ ITBentoPillRow,
23
25
  ITBentoLive,
24
26
  useITBentoCountUp,
25
27
  } from "./components/organisms/bento/bento";
@@ -265,7 +267,7 @@ export {
265
267
  // Components
266
268
  ITAccordion,
267
269
  ITBentoGrid, ITBentoTile, ITBentoGauge, ITBentoWaves, ITBentoSpark, ITBentoSegments,
268
- ITBentoWeekBars, ITBentoDonut, ITBentoFeed, ITBentoLive, useITBentoCountUp,
270
+ ITBentoWeekBars, ITBentoDonut, ITBentoFeed, ITBentoPill, ITBentoPillRow, ITBentoLive, useITBentoCountUp,
269
271
  ITAlert, ITAvatar, ITBadget, ITBreadcrumbs, ITButton,
270
272
  ITCalendar,
271
273
  ITCard, ITCheckbox, ITChip, ITChipInput, ITConfirmDialog, ITDataTable, ITDatePicker,