analytica-frontend-lib 1.0.66 → 1.0.68
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.d.mts +8 -1
- package/dist/Card/index.d.ts +8 -1
- package/dist/Card/index.js +65 -30
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +65 -30
- package/dist/Card/index.mjs.map +1 -1
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.js.map +1 -1
- package/dist/Menu/index.mjs +1 -1
- package/dist/Menu/index.mjs.map +1 -1
- package/dist/index.css +137 -123
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +66 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +66 -31
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +137 -123
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3793,7 +3793,7 @@ var MenuItem = forwardRef11(
|
|
|
3793
3793
|
{
|
|
3794
3794
|
"data-variant": "menu2",
|
|
3795
3795
|
className: `
|
|
3796
|
-
w-full flex flex-col items-center px-2 pt-4 gap-3
|
|
3796
|
+
w-full flex flex-col items-center px-2 pt-4 gap-3 cursor-pointer focus:rounded-sm justify-center hover:bg-background-100 rounded-lg
|
|
3797
3797
|
focus:outline-none focus:border-indicator-info focus:border-2
|
|
3798
3798
|
${selectedValue === value ? "" : "pb-4"}
|
|
3799
3799
|
`,
|
|
@@ -3954,6 +3954,7 @@ import {
|
|
|
3954
3954
|
CaretRight as CaretRight2,
|
|
3955
3955
|
ChatCircleText,
|
|
3956
3956
|
CheckCircle as CheckCircle3,
|
|
3957
|
+
Clock,
|
|
3957
3958
|
DotsThreeVertical,
|
|
3958
3959
|
Play,
|
|
3959
3960
|
SpeakerHigh,
|
|
@@ -4450,42 +4451,32 @@ var CardResults = forwardRef12(
|
|
|
4450
4451
|
);
|
|
4451
4452
|
var CardStatus = forwardRef12(
|
|
4452
4453
|
({ header, className, status, ...props }, ref) => {
|
|
4453
|
-
return /* @__PURE__ */
|
|
4454
|
+
return /* @__PURE__ */ jsx26(
|
|
4454
4455
|
CardBase,
|
|
4455
4456
|
{
|
|
4456
4457
|
ref,
|
|
4457
4458
|
layout: "horizontal",
|
|
4458
|
-
padding: "
|
|
4459
|
+
padding: "medium",
|
|
4459
4460
|
minHeight: "medium",
|
|
4460
|
-
className: `items-center
|
|
4461
|
+
className: `items-center ${className}`,
|
|
4461
4462
|
...props,
|
|
4462
|
-
children: [
|
|
4463
|
-
/* @__PURE__ */
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
children: status == "correct" ? "Correta" : "Incorreta"
|
|
4480
|
-
}
|
|
4481
|
-
),
|
|
4482
|
-
/* @__PURE__ */ jsx26("p", { className: "text-sm text-text-800", children: "Respondida" })
|
|
4483
|
-
] })
|
|
4484
|
-
]
|
|
4485
|
-
}
|
|
4486
|
-
),
|
|
4487
|
-
/* @__PURE__ */ jsx26(CaretRight2, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer" })
|
|
4488
|
-
]
|
|
4463
|
+
children: /* @__PURE__ */ jsxs21("div", { className: "flex justify-between w-full h-full flex-row items-center gap-2", children: [
|
|
4464
|
+
/* @__PURE__ */ jsx26("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
4465
|
+
status && /* @__PURE__ */ jsxs21("span", { className: "flex flex-row gap-1 items-center flex-shrink-0", children: [
|
|
4466
|
+
/* @__PURE__ */ jsx26(
|
|
4467
|
+
Badge_default,
|
|
4468
|
+
{
|
|
4469
|
+
action: status == "correct" ? "success" : "error",
|
|
4470
|
+
variant: "solid",
|
|
4471
|
+
size: "medium",
|
|
4472
|
+
iconLeft: /* @__PURE__ */ jsx26(CheckCircle3, {}),
|
|
4473
|
+
children: status == "correct" ? "Correta" : "Incorreta"
|
|
4474
|
+
}
|
|
4475
|
+
),
|
|
4476
|
+
/* @__PURE__ */ jsx26("p", { className: "text-sm text-text-800", children: "Respondida" })
|
|
4477
|
+
] }),
|
|
4478
|
+
/* @__PURE__ */ jsx26(CaretRight2, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer flex-shrink-0 ml-2" })
|
|
4479
|
+
] })
|
|
4489
4480
|
}
|
|
4490
4481
|
);
|
|
4491
4482
|
}
|
|
@@ -4847,6 +4838,49 @@ var CardAudio = forwardRef12(
|
|
|
4847
4838
|
);
|
|
4848
4839
|
}
|
|
4849
4840
|
);
|
|
4841
|
+
var SIMULADO_BACKGROUND_CLASSES = {
|
|
4842
|
+
enem: "bg-exam-1",
|
|
4843
|
+
prova: "bg-exam-2",
|
|
4844
|
+
simuladao: "bg-exam-3",
|
|
4845
|
+
vestibular: "bg-exam-4"
|
|
4846
|
+
};
|
|
4847
|
+
var CardSimulado = forwardRef12(
|
|
4848
|
+
({ title, duration, info, backgroundColor, className, ...props }, ref) => {
|
|
4849
|
+
const backgroundClass = SIMULADO_BACKGROUND_CLASSES[backgroundColor];
|
|
4850
|
+
return /* @__PURE__ */ jsx26(
|
|
4851
|
+
CardBase,
|
|
4852
|
+
{
|
|
4853
|
+
ref,
|
|
4854
|
+
layout: "horizontal",
|
|
4855
|
+
padding: "medium",
|
|
4856
|
+
minHeight: "none",
|
|
4857
|
+
cursor: "pointer",
|
|
4858
|
+
className: `${backgroundClass} hover:shadow-soft-shadow-2 transition-shadow duration-200 ${className}`,
|
|
4859
|
+
...props,
|
|
4860
|
+
children: /* @__PURE__ */ jsxs21("div", { className: "flex justify-between items-center w-full gap-4", children: [
|
|
4861
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
4862
|
+
/* @__PURE__ */ jsx26(Text_default, { size: "lg", weight: "bold", className: "text-text-950 truncate", children: title }),
|
|
4863
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-4 text-text-700", children: [
|
|
4864
|
+
duration && /* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-1", children: [
|
|
4865
|
+
/* @__PURE__ */ jsx26(Clock, { size: 16, className: "flex-shrink-0" }),
|
|
4866
|
+
/* @__PURE__ */ jsx26(Text_default, { size: "sm", children: duration })
|
|
4867
|
+
] }),
|
|
4868
|
+
/* @__PURE__ */ jsx26(Text_default, { size: "sm", className: "truncate", children: info })
|
|
4869
|
+
] })
|
|
4870
|
+
] }),
|
|
4871
|
+
/* @__PURE__ */ jsx26(
|
|
4872
|
+
CaretRight2,
|
|
4873
|
+
{
|
|
4874
|
+
size: 24,
|
|
4875
|
+
className: "text-text-800 flex-shrink-0",
|
|
4876
|
+
"data-testid": "caret-icon"
|
|
4877
|
+
}
|
|
4878
|
+
)
|
|
4879
|
+
] })
|
|
4880
|
+
}
|
|
4881
|
+
);
|
|
4882
|
+
}
|
|
4883
|
+
);
|
|
4850
4884
|
|
|
4851
4885
|
// src/components/Skeleton/Skeleton.tsx
|
|
4852
4886
|
import { forwardRef as forwardRef13 } from "react";
|
|
@@ -5006,6 +5040,7 @@ export {
|
|
|
5006
5040
|
CardProgress,
|
|
5007
5041
|
CardQuestions,
|
|
5008
5042
|
CardResults,
|
|
5043
|
+
CardSimulado,
|
|
5009
5044
|
CardStatus,
|
|
5010
5045
|
CardTopic,
|
|
5011
5046
|
CheckBox_default as CheckBox,
|