analytica-frontend-lib 1.0.65 → 1.0.66
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 +30 -20
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +30 -20
- 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 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +34 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +34 -24
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +15 -0
- 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,
|
|
@@ -1166,10 +1176,10 @@ var CardStatus = (0, import_react.forwardRef)(
|
|
|
1166
1176
|
"div",
|
|
1167
1177
|
{
|
|
1168
1178
|
className: `
|
|
1169
|
-
p-4 flex justify-between w-full h-full flex-row items-center
|
|
1179
|
+
p-4 flex justify-between w-full h-full flex-row items-center gap-2
|
|
1170
1180
|
`,
|
|
1171
1181
|
children: [
|
|
1172
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-sm font-bold text-text-950", children: header }),
|
|
1182
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
1173
1183
|
status && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: "flex flex-row gap-1 items-center", children: [
|
|
1174
1184
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1175
1185
|
Badge_default,
|
|
@@ -1205,7 +1215,7 @@ var CardSettings = (0, import_react.forwardRef)(
|
|
|
1205
1215
|
...props,
|
|
1206
1216
|
children: [
|
|
1207
1217
|
/* @__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 }),
|
|
1218
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "w-full text-sm truncate", children: header }),
|
|
1209
1219
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react2.CaretRight, { size: 24, className: "cursor-pointer" })
|
|
1210
1220
|
]
|
|
1211
1221
|
}
|
|
@@ -1231,7 +1241,7 @@ var CardSupport = (0, import_react.forwardRef)(
|
|
|
1231
1241
|
w-full flex ${direction == "col" ? "flex-col" : "flex-row items-center"} gap-2
|
|
1232
1242
|
`,
|
|
1233
1243
|
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 }) }),
|
|
1244
|
+
/* @__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
1245
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "flex flex-row gap-1", children })
|
|
1236
1246
|
]
|
|
1237
1247
|
}
|
|
@@ -1276,7 +1286,7 @@ var CardForum = (0, import_react.forwardRef)(
|
|
|
1276
1286
|
className: "min-w-8 h-8 rounded-full bg-background-950"
|
|
1277
1287
|
}
|
|
1278
1288
|
),
|
|
1279
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col gap-2 flex-1", children: [
|
|
1289
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
|
|
1280
1290
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-row gap-1 items-center flex-wrap", children: [
|
|
1281
1291
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-xs font-semibold text-primary-700 truncate", children: title }),
|
|
1282
1292
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("p", { className: "text-xs text-text-600", children: [
|
|
@@ -1286,7 +1296,7 @@ var CardForum = (0, import_react.forwardRef)(
|
|
|
1286
1296
|
hour
|
|
1287
1297
|
] })
|
|
1288
1298
|
] }),
|
|
1289
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-text-950 text-sm line-clamp-2", children: content }),
|
|
1299
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-text-950 text-sm line-clamp-2 truncate", children: content }),
|
|
1290
1300
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
1291
1301
|
"button",
|
|
1292
1302
|
{
|