@axzydev/axzy_ui_system 1.8.8 → 1.8.10
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 +8 -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 +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +8 -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 +7 -1
- package/src/index.css +86 -27
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
|
|
@@ -412,6 +412,8 @@ export interface ITBentoStatItem {
|
|
|
412
412
|
caption?: ReactNode;
|
|
413
413
|
/** Color del punto y del segmento de la barra. */
|
|
414
414
|
color?: string;
|
|
415
|
+
/** Tono del mosaico (fondo tintado), como las tarjetas del inicio. */
|
|
416
|
+
tone?: "plain" | "sea" | "lavender" | "mint" | "sun" | "rose";
|
|
415
417
|
}
|
|
416
418
|
|
|
417
419
|
export interface ITBentoStatStripProps {
|
|
@@ -452,7 +454,11 @@ export function ITBentoStatStrip({ items, activeId, onSelect, stack = false, sta
|
|
|
452
454
|
<Tag
|
|
453
455
|
key={item.id}
|
|
454
456
|
type={clickable ? "button" : undefined}
|
|
455
|
-
className={clsx(
|
|
457
|
+
className={clsx(
|
|
458
|
+
"it-bento-statstrip__item",
|
|
459
|
+
item.tone && item.tone !== "plain" && `it-bento-statstrip__item--${item.tone}`,
|
|
460
|
+
on && "is-on",
|
|
461
|
+
)}
|
|
456
462
|
style={{ ["--it-bento-c" as string]: item.color ?? "currentColor" } as CSSProperties}
|
|
457
463
|
onClick={clickable ? () => onSelect?.(item.id) : undefined}
|
|
458
464
|
onMouseEnter={() => setHovered(item.id)}
|
package/src/index.css
CHANGED
|
@@ -879,59 +879,118 @@
|
|
|
879
879
|
/* Tira de cifras del bento: una tarjeta con N bloques clicables separados por
|
|
880
880
|
línea fina y, opcionalmente, la barra apilada del mismo dato. */
|
|
881
881
|
.it-bento-statstrip {
|
|
882
|
-
background:
|
|
883
|
-
border-radius:
|
|
884
|
-
overflow:
|
|
885
|
-
box-shadow:
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
.dark .it-bento-statstrip {
|
|
889
|
-
box-shadow: inset 0 0 0 1px rgb(229 240 243 / 0.09);
|
|
882
|
+
background: transparent;
|
|
883
|
+
border-radius: 0;
|
|
884
|
+
overflow: visible;
|
|
885
|
+
box-shadow: none;
|
|
890
886
|
}
|
|
891
887
|
|
|
892
888
|
.it-bento-statstrip__grid {
|
|
893
889
|
display: grid;
|
|
894
890
|
grid-template-columns: repeat(var(--it-bento-cols, 4), minmax(0, 1fr));
|
|
891
|
+
gap: 10px;
|
|
895
892
|
}
|
|
896
893
|
|
|
897
894
|
.it-bento-statstrip__item {
|
|
898
895
|
position: relative;
|
|
899
896
|
display: block;
|
|
900
897
|
min-width: 0;
|
|
901
|
-
padding:
|
|
898
|
+
padding: 13px 16px 14px;
|
|
902
899
|
border: 0;
|
|
903
|
-
|
|
900
|
+
border-radius: 18px;
|
|
901
|
+
background: var(--it-card-bg, #ffffff);
|
|
902
|
+
box-shadow: inset 0 0 0 1px rgb(15 23 42 / 0.06);
|
|
904
903
|
text-align: left;
|
|
905
904
|
color: inherit;
|
|
906
905
|
cursor: pointer;
|
|
907
|
-
transition: background 0.2s;
|
|
906
|
+
transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
|
|
908
907
|
}
|
|
909
908
|
|
|
910
909
|
.it-bento-statstrip__item:hover {
|
|
911
|
-
|
|
910
|
+
transform: translateY(-1px);
|
|
911
|
+
box-shadow: inset 0 0 0 1px rgb(15 23 42 / 0.1), 0 8px 18px -12px rgb(13 47 64 / 0.5);
|
|
912
912
|
}
|
|
913
913
|
|
|
914
914
|
.it-bento-statstrip__item.is-on {
|
|
915
|
-
|
|
916
|
-
|
|
915
|
+
box-shadow:
|
|
916
|
+
inset 0 0 0 2px var(--it-bento-c, currentColor),
|
|
917
|
+
0 10px 22px -16px rgb(13 47 64 / 0.55);
|
|
917
918
|
}
|
|
918
919
|
|
|
919
920
|
.it-bento-statstrip__item:focus-visible {
|
|
920
921
|
outline: 2px solid var(--color-primary);
|
|
921
|
-
outline-offset:
|
|
922
|
+
outline-offset: 2px;
|
|
922
923
|
}
|
|
923
924
|
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
925
|
+
/* Tonos del mosaico: el mismo lenguaje que las tarjetas del inicio. */
|
|
926
|
+
.it-bento-statstrip__item--sea {
|
|
927
|
+
background: #0c3b52;
|
|
928
|
+
color: #eaf6f8;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
.it-bento-statstrip__item--sea .it-bento-statstrip__label,
|
|
932
|
+
.it-bento-statstrip__item--sea .it-bento-statstrip__caption {
|
|
933
|
+
color: rgb(234 246 248 / 0.78);
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
.it-bento-statstrip__item--lavender {
|
|
937
|
+
background: #ece7fa;
|
|
938
|
+
color: #1c1340;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
.it-bento-statstrip__item--lavender .it-bento-statstrip__label,
|
|
942
|
+
.it-bento-statstrip__item--lavender .it-bento-statstrip__caption {
|
|
943
|
+
color: rgb(28 19 64 / 0.7);
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
.it-bento-statstrip__item--mint {
|
|
947
|
+
background: #e2f3ec;
|
|
948
|
+
color: #0f2e25;
|
|
931
949
|
}
|
|
932
950
|
|
|
933
|
-
.
|
|
934
|
-
|
|
951
|
+
.it-bento-statstrip__item--mint .it-bento-statstrip__label,
|
|
952
|
+
.it-bento-statstrip__item--mint .it-bento-statstrip__caption {
|
|
953
|
+
color: rgb(15 46 37 / 0.7);
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
.it-bento-statstrip__item--sun {
|
|
957
|
+
background: #fbf1d8;
|
|
958
|
+
color: #3a2a06;
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
.it-bento-statstrip__item--sun .it-bento-statstrip__label,
|
|
962
|
+
.it-bento-statstrip__item--sun .it-bento-statstrip__caption {
|
|
963
|
+
color: rgb(58 42 6 / 0.72);
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
.it-bento-statstrip__item--rose {
|
|
967
|
+
background: #fbe6e2;
|
|
968
|
+
color: #4a1d15;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
.it-bento-statstrip__item--rose .it-bento-statstrip__label,
|
|
972
|
+
.it-bento-statstrip__item--rose .it-bento-statstrip__caption {
|
|
973
|
+
color: rgb(74 29 21 / 0.72);
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
.dark .it-bento-statstrip__item--lavender {
|
|
977
|
+
background: #241f3d;
|
|
978
|
+
color: #efeaff;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
.dark .it-bento-statstrip__item--mint {
|
|
982
|
+
background: #12302b;
|
|
983
|
+
color: #dcf5ea;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
.dark .it-bento-statstrip__item--sun {
|
|
987
|
+
background: #352d17;
|
|
988
|
+
color: #ffeec4;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
.dark .it-bento-statstrip__item--rose {
|
|
992
|
+
background: #3a1e1b;
|
|
993
|
+
color: #ffd9d2;
|
|
935
994
|
}
|
|
936
995
|
|
|
937
996
|
.it-bento-statstrip__label {
|
|
@@ -954,12 +1013,12 @@
|
|
|
954
1013
|
display: flex;
|
|
955
1014
|
align-items: baseline;
|
|
956
1015
|
gap: 8px;
|
|
957
|
-
margin-top:
|
|
1016
|
+
margin-top: 6px;
|
|
958
1017
|
min-width: 0;
|
|
959
1018
|
}
|
|
960
1019
|
|
|
961
1020
|
.it-bento-statstrip__value {
|
|
962
|
-
font-size:
|
|
1021
|
+
font-size: 34px;
|
|
963
1022
|
font-weight: 800;
|
|
964
1023
|
letter-spacing: -0.04em;
|
|
965
1024
|
line-height: 1;
|
|
@@ -979,7 +1038,7 @@
|
|
|
979
1038
|
display: flex;
|
|
980
1039
|
gap: 2px;
|
|
981
1040
|
height: 9px;
|
|
982
|
-
margin:
|
|
1041
|
+
margin: 12px 0 0;
|
|
983
1042
|
border-radius: 6px;
|
|
984
1043
|
overflow: hidden;
|
|
985
1044
|
}
|