analytica-frontend-lib 1.0.65 → 1.0.67

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.
@@ -768,8 +768,16 @@ var CardActivitiesResults = forwardRef(
768
768
  children: icon
769
769
  }
770
770
  ),
771
- /* @__PURE__ */ jsx5(Text_default, { size: "2xs", weight: "medium", className: "text-text-800 uppercase", children: title }),
772
- /* @__PURE__ */ jsx5("p", { className: `text-lg font-bold ${actionSubTitleClasses}`, children: subTitle })
771
+ /* @__PURE__ */ jsx5(
772
+ Text_default,
773
+ {
774
+ size: "2xs",
775
+ weight: "medium",
776
+ className: "text-text-800 uppercase truncate",
777
+ children: title
778
+ }
779
+ ),
780
+ /* @__PURE__ */ jsx5("p", { className: `text-lg font-bold truncate ${actionSubTitleClasses}`, children: subTitle })
773
781
  ]
774
782
  }
775
783
  ),
@@ -777,7 +785,7 @@ var CardActivitiesResults = forwardRef(
777
785
  /* @__PURE__ */ jsx5(
778
786
  "p",
779
787
  {
780
- className: `text-2xs font-medium uppercase ${actionHeaderClasses}`,
788
+ className: `text-2xs font-medium uppercase truncate ${actionHeaderClasses}`,
781
789
  children: header
782
790
  }
783
791
  ),
@@ -810,8 +818,8 @@ var CardQuestions = forwardRef(
810
818
  className: `justify-between gap-4 ${className}`,
811
819
  ...props,
812
820
  children: [
813
- /* @__PURE__ */ jsxs4("section", { className: "flex flex-col gap-1", children: [
814
- /* @__PURE__ */ jsx5("p", { className: "font-bold text-xs text-text-950", children: header }),
821
+ /* @__PURE__ */ jsxs4("section", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
822
+ /* @__PURE__ */ jsx5("p", { className: "font-bold text-xs text-text-950 truncate", children: header }),
815
823
  /* @__PURE__ */ jsxs4("div", { className: "flex flex-row gap-6 items-center", children: [
816
824
  /* @__PURE__ */ jsx5(
817
825
  Badge_default,
@@ -828,11 +836,12 @@ var CardQuestions = forwardRef(
828
836
  ] })
829
837
  ] })
830
838
  ] }),
831
- /* @__PURE__ */ jsx5("span", { children: /* @__PURE__ */ jsx5(
839
+ /* @__PURE__ */ jsx5("span", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx5(
832
840
  Button_default,
833
841
  {
834
842
  size: "extra-small",
835
843
  onClick: () => onClickButton?.(valueButton),
844
+ className: "min-w-fit",
836
845
  children: buttonLabel
837
846
  }
838
847
  ) })
@@ -927,7 +936,7 @@ var CardProgress = forwardRef(
927
936
  ${!isHorizontal && "gap-4"}
928
937
  `,
929
938
  children: [
930
- /* @__PURE__ */ jsx5(Text_default, { size: "sm", weight: "bold", className: "text-text-950", children: header }),
939
+ /* @__PURE__ */ jsx5(Text_default, { size: "sm", weight: "bold", className: "text-text-950 truncate", children: header }),
931
940
  contentComponent[direction]
932
941
  ]
933
942
  }
@@ -962,7 +971,7 @@ var CardTopic = forwardRef(
962
971
  /* @__PURE__ */ jsx5("p", { children: text }),
963
972
  index < subHead.length - 1 && /* @__PURE__ */ jsx5("p", { children: "\u2022" })
964
973
  ] }, `${text} - ${index}`)) }),
965
- /* @__PURE__ */ jsx5("p", { className: "text-sm text-text-950 font-bold", children: header }),
974
+ /* @__PURE__ */ jsx5("p", { className: "text-sm text-text-950 font-bold truncate", children: header }),
966
975
  /* @__PURE__ */ jsxs4("span", { className: "grid grid-cols-[1fr_auto] items-center gap-2", children: [
967
976
  /* @__PURE__ */ jsx5(
968
977
  ProgressBar_default,
@@ -1017,14 +1026,15 @@ var CardPerformance = forwardRef(
1017
1026
  ...props,
1018
1027
  children: [
1019
1028
  /* @__PURE__ */ jsxs4("div", { className: "w-full flex flex-col justify-between gap-2", children: [
1020
- /* @__PURE__ */ jsxs4("div", { className: "flex flex-row justify-between items-center", children: [
1021
- /* @__PURE__ */ jsx5("p", { className: "text-lg font-bold text-text-950", children: header }),
1029
+ /* @__PURE__ */ jsxs4("div", { className: "flex flex-row justify-between items-center gap-2", children: [
1030
+ /* @__PURE__ */ jsx5("p", { className: "text-lg font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
1022
1031
  actionVariant === "button" && /* @__PURE__ */ jsx5(
1023
1032
  Button_default,
1024
1033
  {
1025
1034
  variant: "outline",
1026
1035
  size: "extra-small",
1027
1036
  onClick: () => onClickButton?.(valueButton),
1037
+ className: "min-w-fit flex-shrink-0",
1028
1038
  children: "Ver Aula"
1029
1039
  }
1030
1040
  )
@@ -1036,7 +1046,7 @@ var CardPerformance = forwardRef(
1036
1046
  label: `${progress}% ${labelProgress}`,
1037
1047
  variant: progressVariant
1038
1048
  }
1039
- ) : /* @__PURE__ */ jsx5("p", { className: "text-xs text-text-600", children: description }) })
1049
+ ) : /* @__PURE__ */ jsx5("p", { className: "text-xs text-text-600 truncate", children: description }) })
1040
1050
  ] }),
1041
1051
  actionVariant == "caret" && /* @__PURE__ */ jsx5(
1042
1052
  CaretRight,
@@ -1076,7 +1086,7 @@ var CardResults = forwardRef(
1076
1086
  "div",
1077
1087
  {
1078
1088
  className: `
1079
- flex justify-center items-center [&>svg]:size-8 text-text-950 min-w-20 max-w-20 h-full rounded-l-xl
1089
+ flex justify-center items-center [&>svg]:size-8 text-text-950 min-w-20 max-w-20 min-h-20 h-full rounded-l-xl
1080
1090
  `,
1081
1091
  style: {
1082
1092
  backgroundColor: color
@@ -1089,10 +1099,10 @@ var CardResults = forwardRef(
1089
1099
  {
1090
1100
  className: `
1091
1101
  p-4 flex justify-between w-full h-full
1092
- ${isRow ? "flex-row items-center" : "flex-col"}
1102
+ ${isRow ? "flex-row items-center gap-2" : "flex-col"}
1093
1103
  `,
1094
1104
  children: [
1095
- /* @__PURE__ */ jsx5("p", { className: "text-sm font-bold text-text-950", children: header }),
1105
+ /* @__PURE__ */ jsx5("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
1096
1106
  /* @__PURE__ */ jsxs4("span", { className: "flex flex-row gap-1 items-center", children: [
1097
1107
  /* @__PURE__ */ jsxs4(
1098
1108
  Badge_default,
@@ -1132,42 +1142,32 @@ var CardResults = forwardRef(
1132
1142
  );
1133
1143
  var CardStatus = forwardRef(
1134
1144
  ({ header, className, status, ...props }, ref) => {
1135
- return /* @__PURE__ */ jsxs4(
1145
+ return /* @__PURE__ */ jsx5(
1136
1146
  CardBase,
1137
1147
  {
1138
1148
  ref,
1139
1149
  layout: "horizontal",
1140
- padding: "none",
1150
+ padding: "medium",
1141
1151
  minHeight: "medium",
1142
- className: `items-center pr-4 ${className}`,
1152
+ className: `items-center ${className}`,
1143
1153
  ...props,
1144
- children: [
1145
- /* @__PURE__ */ jsxs4(
1146
- "div",
1147
- {
1148
- className: `
1149
- p-4 flex justify-between w-full h-full flex-row items-center
1150
- `,
1151
- children: [
1152
- /* @__PURE__ */ jsx5("p", { className: "text-sm font-bold text-text-950", children: header }),
1153
- status && /* @__PURE__ */ jsxs4("span", { className: "flex flex-row gap-1 items-center", children: [
1154
- /* @__PURE__ */ jsx5(
1155
- Badge_default,
1156
- {
1157
- action: status == "correct" ? "success" : "error",
1158
- variant: "solid",
1159
- size: "medium",
1160
- iconLeft: /* @__PURE__ */ jsx5(CheckCircle, {}),
1161
- children: status == "correct" ? "Correta" : "Incorreta"
1162
- }
1163
- ),
1164
- /* @__PURE__ */ jsx5("p", { className: "text-sm text-text-800", children: "Respondida" })
1165
- ] })
1166
- ]
1167
- }
1168
- ),
1169
- /* @__PURE__ */ jsx5(CaretRight, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer" })
1170
- ]
1154
+ children: /* @__PURE__ */ jsxs4("div", { className: "flex justify-between w-full h-full flex-row items-center gap-2", children: [
1155
+ /* @__PURE__ */ jsx5("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
1156
+ status && /* @__PURE__ */ jsxs4("span", { className: "flex flex-row gap-1 items-center flex-shrink-0", children: [
1157
+ /* @__PURE__ */ jsx5(
1158
+ Badge_default,
1159
+ {
1160
+ action: status == "correct" ? "success" : "error",
1161
+ variant: "solid",
1162
+ size: "medium",
1163
+ iconLeft: /* @__PURE__ */ jsx5(CheckCircle, {}),
1164
+ children: status == "correct" ? "Correta" : "Incorreta"
1165
+ }
1166
+ ),
1167
+ /* @__PURE__ */ jsx5("p", { className: "text-sm text-text-800", children: "Respondida" })
1168
+ ] }),
1169
+ /* @__PURE__ */ jsx5(CaretRight, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer flex-shrink-0 ml-2" })
1170
+ ] })
1171
1171
  }
1172
1172
  );
1173
1173
  }
@@ -1185,7 +1185,7 @@ var CardSettings = forwardRef(
1185
1185
  ...props,
1186
1186
  children: [
1187
1187
  /* @__PURE__ */ jsx5("span", { className: "[&>svg]:size-6", children: icon }),
1188
- /* @__PURE__ */ jsx5("p", { className: "w-full text-sm", children: header }),
1188
+ /* @__PURE__ */ jsx5("p", { className: "w-full text-sm truncate", children: header }),
1189
1189
  /* @__PURE__ */ jsx5(CaretRight, { size: 24, className: "cursor-pointer" })
1190
1190
  ]
1191
1191
  }
@@ -1211,7 +1211,7 @@ var CardSupport = forwardRef(
1211
1211
  w-full flex ${direction == "col" ? "flex-col" : "flex-row items-center"} gap-2
1212
1212
  `,
1213
1213
  children: [
1214
- /* @__PURE__ */ jsx5("span", { className: "w-full", children: /* @__PURE__ */ jsx5("p", { className: "text-sm text-text-950 font-bold", children: header }) }),
1214
+ /* @__PURE__ */ jsx5("span", { className: "w-full min-w-0", children: /* @__PURE__ */ jsx5("p", { className: "text-sm text-text-950 font-bold truncate", children: header }) }),
1215
1215
  /* @__PURE__ */ jsx5("span", { className: "flex flex-row gap-1", children })
1216
1216
  ]
1217
1217
  }
@@ -1256,7 +1256,7 @@ var CardForum = forwardRef(
1256
1256
  className: "min-w-8 h-8 rounded-full bg-background-950"
1257
1257
  }
1258
1258
  ),
1259
- /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-2 flex-1", children: [
1259
+ /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
1260
1260
  /* @__PURE__ */ jsxs4("div", { className: "flex flex-row gap-1 items-center flex-wrap", children: [
1261
1261
  /* @__PURE__ */ jsx5("p", { className: "text-xs font-semibold text-primary-700 truncate", children: title }),
1262
1262
  /* @__PURE__ */ jsxs4("p", { className: "text-xs text-text-600", children: [
@@ -1266,7 +1266,7 @@ var CardForum = forwardRef(
1266
1266
  hour
1267
1267
  ] })
1268
1268
  ] }),
1269
- /* @__PURE__ */ jsx5("p", { className: "text-text-950 text-sm line-clamp-2", children: content }),
1269
+ /* @__PURE__ */ jsx5("p", { className: "text-text-950 text-sm line-clamp-2 truncate", children: content }),
1270
1270
  /* @__PURE__ */ jsxs4(
1271
1271
  "button",
1272
1272
  {