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.
- package/dist/Card/index.js +48 -48
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +48 -48
- package/dist/Card/index.mjs.map +1 -1
- package/dist/Menu/index.js +4 -4
- package/dist/Menu/index.js.map +1 -1
- package/dist/Menu/index.mjs +4 -4
- package/dist/Menu/index.mjs.map +1 -1
- package/dist/index.css +15 -4
- package/dist/index.css.map +1 -1
- package/dist/index.js +52 -52
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +52 -52
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +15 -4
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/Card/index.js
CHANGED
|
@@ -788,8 +788,16 @@ var CardActivitiesResults = (0, import_react.forwardRef)(
|
|
|
788
788
|
children: icon
|
|
789
789
|
}
|
|
790
790
|
),
|
|
791
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
792
|
-
|
|
791
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
792
|
+
Text_default,
|
|
793
|
+
{
|
|
794
|
+
size: "2xs",
|
|
795
|
+
weight: "medium",
|
|
796
|
+
className: "text-text-800 uppercase truncate",
|
|
797
|
+
children: title
|
|
798
|
+
}
|
|
799
|
+
),
|
|
800
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: `text-lg font-bold truncate ${actionSubTitleClasses}`, children: subTitle })
|
|
793
801
|
]
|
|
794
802
|
}
|
|
795
803
|
),
|
|
@@ -797,7 +805,7 @@ var CardActivitiesResults = (0, import_react.forwardRef)(
|
|
|
797
805
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
798
806
|
"p",
|
|
799
807
|
{
|
|
800
|
-
className: `text-2xs font-medium uppercase ${actionHeaderClasses}`,
|
|
808
|
+
className: `text-2xs font-medium uppercase truncate ${actionHeaderClasses}`,
|
|
801
809
|
children: header
|
|
802
810
|
}
|
|
803
811
|
),
|
|
@@ -830,8 +838,8 @@ var CardQuestions = (0, import_react.forwardRef)(
|
|
|
830
838
|
className: `justify-between gap-4 ${className}`,
|
|
831
839
|
...props,
|
|
832
840
|
children: [
|
|
833
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("section", { className: "flex flex-col gap-1", children: [
|
|
834
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "font-bold text-xs text-text-950", children: header }),
|
|
841
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("section", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
842
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "font-bold text-xs text-text-950 truncate", children: header }),
|
|
835
843
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-row gap-6 items-center", children: [
|
|
836
844
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
837
845
|
Badge_default,
|
|
@@ -848,11 +856,12 @@ var CardQuestions = (0, import_react.forwardRef)(
|
|
|
848
856
|
] })
|
|
849
857
|
] })
|
|
850
858
|
] }),
|
|
851
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
859
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "flex-shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
852
860
|
Button_default,
|
|
853
861
|
{
|
|
854
862
|
size: "extra-small",
|
|
855
863
|
onClick: () => onClickButton?.(valueButton),
|
|
864
|
+
className: "min-w-fit",
|
|
856
865
|
children: buttonLabel
|
|
857
866
|
}
|
|
858
867
|
) })
|
|
@@ -947,7 +956,7 @@ var CardProgress = (0, import_react.forwardRef)(
|
|
|
947
956
|
${!isHorizontal && "gap-4"}
|
|
948
957
|
`,
|
|
949
958
|
children: [
|
|
950
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text_default, { size: "sm", weight: "bold", className: "text-text-950", children: header }),
|
|
959
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text_default, { size: "sm", weight: "bold", className: "text-text-950 truncate", children: header }),
|
|
951
960
|
contentComponent[direction]
|
|
952
961
|
]
|
|
953
962
|
}
|
|
@@ -982,7 +991,7 @@ var CardTopic = (0, import_react.forwardRef)(
|
|
|
982
991
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { children: text }),
|
|
983
992
|
index < subHead.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { children: "\u2022" })
|
|
984
993
|
] }, `${text} - ${index}`)) }),
|
|
985
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-sm text-text-950 font-bold", children: header }),
|
|
994
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-sm text-text-950 font-bold truncate", children: header }),
|
|
986
995
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: "grid grid-cols-[1fr_auto] items-center gap-2", children: [
|
|
987
996
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
988
997
|
ProgressBar_default,
|
|
@@ -1037,14 +1046,15 @@ var CardPerformance = (0, import_react.forwardRef)(
|
|
|
1037
1046
|
...props,
|
|
1038
1047
|
children: [
|
|
1039
1048
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "w-full flex flex-col justify-between gap-2", children: [
|
|
1040
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-row justify-between items-center", children: [
|
|
1041
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-lg font-bold text-text-950", children: header }),
|
|
1049
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-row justify-between items-center gap-2", children: [
|
|
1050
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-lg font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
1042
1051
|
actionVariant === "button" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1043
1052
|
Button_default,
|
|
1044
1053
|
{
|
|
1045
1054
|
variant: "outline",
|
|
1046
1055
|
size: "extra-small",
|
|
1047
1056
|
onClick: () => onClickButton?.(valueButton),
|
|
1057
|
+
className: "min-w-fit flex-shrink-0",
|
|
1048
1058
|
children: "Ver Aula"
|
|
1049
1059
|
}
|
|
1050
1060
|
)
|
|
@@ -1056,7 +1066,7 @@ var CardPerformance = (0, import_react.forwardRef)(
|
|
|
1056
1066
|
label: `${progress}% ${labelProgress}`,
|
|
1057
1067
|
variant: progressVariant
|
|
1058
1068
|
}
|
|
1059
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-xs text-text-600", children: description }) })
|
|
1069
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-xs text-text-600 truncate", children: description }) })
|
|
1060
1070
|
] }),
|
|
1061
1071
|
actionVariant == "caret" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1062
1072
|
import_phosphor_react2.CaretRight,
|
|
@@ -1096,7 +1106,7 @@ var CardResults = (0, import_react.forwardRef)(
|
|
|
1096
1106
|
"div",
|
|
1097
1107
|
{
|
|
1098
1108
|
className: `
|
|
1099
|
-
flex justify-center items-center [&>svg]:size-8 text-text-950 min-w-20 max-w-20 h-full rounded-l-xl
|
|
1109
|
+
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
|
|
1100
1110
|
`,
|
|
1101
1111
|
style: {
|
|
1102
1112
|
backgroundColor: color
|
|
@@ -1109,10 +1119,10 @@ var CardResults = (0, import_react.forwardRef)(
|
|
|
1109
1119
|
{
|
|
1110
1120
|
className: `
|
|
1111
1121
|
p-4 flex justify-between w-full h-full
|
|
1112
|
-
${isRow ? "flex-row items-center" : "flex-col"}
|
|
1122
|
+
${isRow ? "flex-row items-center gap-2" : "flex-col"}
|
|
1113
1123
|
`,
|
|
1114
1124
|
children: [
|
|
1115
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-sm font-bold text-text-950", children: header }),
|
|
1125
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
1116
1126
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: "flex flex-row gap-1 items-center", children: [
|
|
1117
1127
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
1118
1128
|
Badge_default,
|
|
@@ -1152,42 +1162,32 @@ var CardResults = (0, import_react.forwardRef)(
|
|
|
1152
1162
|
);
|
|
1153
1163
|
var CardStatus = (0, import_react.forwardRef)(
|
|
1154
1164
|
({ header, className, status, ...props }, ref) => {
|
|
1155
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.
|
|
1165
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1156
1166
|
CardBase,
|
|
1157
1167
|
{
|
|
1158
1168
|
ref,
|
|
1159
1169
|
layout: "horizontal",
|
|
1160
|
-
padding: "
|
|
1170
|
+
padding: "medium",
|
|
1161
1171
|
minHeight: "medium",
|
|
1162
|
-
className: `items-center
|
|
1172
|
+
className: `items-center ${className}`,
|
|
1163
1173
|
...props,
|
|
1164
|
-
children: [
|
|
1165
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
children: status == "correct" ? "Correta" : "Incorreta"
|
|
1182
|
-
}
|
|
1183
|
-
),
|
|
1184
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-sm text-text-800", children: "Respondida" })
|
|
1185
|
-
] })
|
|
1186
|
-
]
|
|
1187
|
-
}
|
|
1188
|
-
),
|
|
1189
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react2.CaretRight, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer" })
|
|
1190
|
-
]
|
|
1174
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex justify-between w-full h-full flex-row items-center gap-2", children: [
|
|
1175
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
1176
|
+
status && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: "flex flex-row gap-1 items-center flex-shrink-0", children: [
|
|
1177
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1178
|
+
Badge_default,
|
|
1179
|
+
{
|
|
1180
|
+
action: status == "correct" ? "success" : "error",
|
|
1181
|
+
variant: "solid",
|
|
1182
|
+
size: "medium",
|
|
1183
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react2.CheckCircle, {}),
|
|
1184
|
+
children: status == "correct" ? "Correta" : "Incorreta"
|
|
1185
|
+
}
|
|
1186
|
+
),
|
|
1187
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-sm text-text-800", children: "Respondida" })
|
|
1188
|
+
] }),
|
|
1189
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react2.CaretRight, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer flex-shrink-0 ml-2" })
|
|
1190
|
+
] })
|
|
1191
1191
|
}
|
|
1192
1192
|
);
|
|
1193
1193
|
}
|
|
@@ -1205,7 +1205,7 @@ var CardSettings = (0, import_react.forwardRef)(
|
|
|
1205
1205
|
...props,
|
|
1206
1206
|
children: [
|
|
1207
1207
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "[&>svg]:size-6", children: icon }),
|
|
1208
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "w-full text-sm", children: header }),
|
|
1208
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "w-full text-sm truncate", children: header }),
|
|
1209
1209
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react2.CaretRight, { size: 24, className: "cursor-pointer" })
|
|
1210
1210
|
]
|
|
1211
1211
|
}
|
|
@@ -1231,7 +1231,7 @@ var CardSupport = (0, import_react.forwardRef)(
|
|
|
1231
1231
|
w-full flex ${direction == "col" ? "flex-col" : "flex-row items-center"} gap-2
|
|
1232
1232
|
`,
|
|
1233
1233
|
children: [
|
|
1234
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "w-full", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-sm text-text-950 font-bold", children: header }) }),
|
|
1234
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "w-full min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-sm text-text-950 font-bold truncate", children: header }) }),
|
|
1235
1235
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "flex flex-row gap-1", children })
|
|
1236
1236
|
]
|
|
1237
1237
|
}
|
|
@@ -1276,7 +1276,7 @@ var CardForum = (0, import_react.forwardRef)(
|
|
|
1276
1276
|
className: "min-w-8 h-8 rounded-full bg-background-950"
|
|
1277
1277
|
}
|
|
1278
1278
|
),
|
|
1279
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col gap-2 flex-1", children: [
|
|
1279
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
|
|
1280
1280
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-row gap-1 items-center flex-wrap", children: [
|
|
1281
1281
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-xs font-semibold text-primary-700 truncate", children: title }),
|
|
1282
1282
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("p", { className: "text-xs text-text-600", children: [
|
|
@@ -1286,7 +1286,7 @@ var CardForum = (0, import_react.forwardRef)(
|
|
|
1286
1286
|
hour
|
|
1287
1287
|
] })
|
|
1288
1288
|
] }),
|
|
1289
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-text-950 text-sm line-clamp-2", children: content }),
|
|
1289
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-text-950 text-sm line-clamp-2 truncate", children: content }),
|
|
1290
1290
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
1291
1291
|
"button",
|
|
1292
1292
|
{
|