@axzydev/axzy_ui_system 1.8.9 → 1.8.11
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 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/layered.css +1 -1
- package/package.json +1 -1
- package/src/components/molecules/card/card.props.ts +2 -0
- package/src/components/molecules/card/card.tsx +3 -1
- package/src/components/organisms/bento/bento.tsx +1 -1
- package/src/index.css +8 -0
package/package.json
CHANGED
|
@@ -27,6 +27,8 @@ export interface ITCardProps {
|
|
|
27
27
|
actions?: React.ReactNode;
|
|
28
28
|
/** Additional CSS class names for the card container. */
|
|
29
29
|
className?: string;
|
|
30
|
+
/** Inline styles for the card container (alturas calculadas, gradientes de datos). */
|
|
31
|
+
style?: React.CSSProperties;
|
|
30
32
|
/** Additional CSS class names for the image element. */
|
|
31
33
|
imageClassName?: string;
|
|
32
34
|
/** Additional CSS class names for the title element. */
|
|
@@ -36,6 +36,7 @@ export default function ITCard({
|
|
|
36
36
|
contentClassName,
|
|
37
37
|
actionClassName,
|
|
38
38
|
onClick,
|
|
39
|
+
style,
|
|
39
40
|
}: ITCardProps) {
|
|
40
41
|
const { t } = useITTranslation();
|
|
41
42
|
const [isHovered, setIsHovered] = useState(false);
|
|
@@ -117,7 +118,8 @@ export default function ITCard({
|
|
|
117
118
|
: undefined
|
|
118
119
|
}
|
|
119
120
|
className={clsx("overflow-hidden flex flex-col", className)}
|
|
120
|
-
style
|
|
121
|
+
// `style` del consumidor se suma al tono calculado (alturas, gradientes de datos).
|
|
122
|
+
style={style ? { ...containerStyle, ...style } : containerStyle}
|
|
121
123
|
>
|
|
122
124
|
{image && (
|
|
123
125
|
<img
|
|
@@ -446,7 +446,7 @@ export function ITBentoStatStrip({ items, activeId, onSelect, stack = false, sta
|
|
|
446
446
|
|
|
447
447
|
return (
|
|
448
448
|
<div className={clsx("it-bento-statstrip", className)}>
|
|
449
|
-
<div className="it-bento-statstrip__grid" style={{ ["--it-bento-cols" as string]: Math.min(items.length,
|
|
449
|
+
<div className="it-bento-statstrip__grid" style={{ ["--it-bento-cols" as string]: Math.min(items.length, 6) }}>
|
|
450
450
|
{items.map((item) => {
|
|
451
451
|
const on = item.id === activeId;
|
|
452
452
|
const Tag = clickable ? "button" : "div";
|
package/src/index.css
CHANGED
|
@@ -1058,6 +1058,14 @@
|
|
|
1058
1058
|
opacity: 1;
|
|
1059
1059
|
}
|
|
1060
1060
|
|
|
1061
|
+
/* Cinco o seis cifras caben en una fila en escritorio; en pantallas medianas se
|
|
1062
|
+
acomodan de tres y de dos, para que nunca quede una sola tarjeta colgando. */
|
|
1063
|
+
@media (max-width: 1400px) {
|
|
1064
|
+
.it-bento-statstrip__grid {
|
|
1065
|
+
grid-template-columns: repeat(min(var(--it-bento-cols, 4), 3), minmax(0, 1fr));
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1061
1069
|
@media (max-width: 760px) {
|
|
1062
1070
|
.it-bento-statstrip__grid {
|
|
1063
1071
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|