analytica-frontend-lib 1.1.30 → 1.1.32
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/Accordation/index.js +294 -159
- package/dist/Accordation/index.js.map +1 -1
- package/dist/Accordation/index.mjs +285 -160
- package/dist/Accordation/index.mjs.map +1 -1
- package/dist/Card/index.d.mts +1 -1
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +288 -153
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +279 -154
- package/dist/Card/index.mjs.map +1 -1
- package/dist/Quiz/index.js +561 -369
- package/dist/Quiz/index.js.map +1 -1
- package/dist/Quiz/index.mjs +552 -371
- package/dist/Quiz/index.mjs.map +1 -1
- package/dist/Quiz/useQuizStore/index.d.mts +12 -1
- package/dist/Quiz/useQuizStore/index.d.ts +12 -1
- package/dist/Quiz/useQuizStore/index.js +42 -0
- package/dist/Quiz/useQuizStore/index.js.map +1 -1
- package/dist/Quiz/useQuizStore/index.mjs +41 -0
- package/dist/Quiz/useQuizStore/index.mjs.map +1 -1
- package/dist/Select/index.js +3 -5
- package/dist/Select/index.js.map +1 -1
- package/dist/Select/index.mjs +3 -5
- package/dist/Select/index.mjs.map +1 -1
- package/dist/index.js +408 -349
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +409 -351
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/Card/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
|
|
20
30
|
// src/components/Card/Card.tsx
|
|
@@ -730,7 +740,132 @@ var ProgressBar_default = ProgressBar;
|
|
|
730
740
|
|
|
731
741
|
// src/components/Card/Card.tsx
|
|
732
742
|
var import_phosphor_react2 = require("phosphor-react");
|
|
743
|
+
|
|
744
|
+
// src/components/IconRender/IconRender.tsx
|
|
745
|
+
var PhosphorIcons = __toESM(require("phosphor-react"));
|
|
733
746
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
747
|
+
var ChatPT = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
748
|
+
"svg",
|
|
749
|
+
{
|
|
750
|
+
width: size,
|
|
751
|
+
height: size,
|
|
752
|
+
viewBox: "0 0 32 32",
|
|
753
|
+
fill: "none",
|
|
754
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
755
|
+
children: [
|
|
756
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
757
|
+
"path",
|
|
758
|
+
{
|
|
759
|
+
d: "M27 6H5.00004C4.4696 6 3.9609 6.21071 3.58582 6.58579C3.21075 6.96086 3.00004 7.46957 3.00004 8V28C2.99773 28.3814 3.10562 28.7553 3.31074 29.0768C3.51585 29.3984 3.80947 29.6538 4.15629 29.8125C4.42057 29.9356 4.7085 29.9995 5.00004 30C5.46954 29.9989 5.92347 29.8315 6.28129 29.5275L6.29254 29.5187L10.375 26H27C27.5305 26 28.0392 25.7893 28.4142 25.4142C28.7893 25.0391 29 24.5304 29 24V8C29 7.46957 28.7893 6.96086 28.4142 6.58579C28.0392 6.21071 27.5305 6 27 6ZM27 24H10C9.75992 24.0001 9.52787 24.0866 9.34629 24.2437L5.00004 28V8H27V24Z",
|
|
760
|
+
fill: color
|
|
761
|
+
}
|
|
762
|
+
),
|
|
763
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
764
|
+
"path",
|
|
765
|
+
{
|
|
766
|
+
d: "M21.1758 12V20.5312H19.7168V12H21.1758ZM23.8535 12V13.1719H17.0625V12H23.8535Z",
|
|
767
|
+
fill: color
|
|
768
|
+
}
|
|
769
|
+
),
|
|
770
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
771
|
+
"path",
|
|
772
|
+
{
|
|
773
|
+
d: "M13.2402 17.3496H11.0195V16.1836H13.2402C13.627 16.1836 13.9395 16.1211 14.1777 15.9961C14.416 15.8711 14.5898 15.6992 14.6992 15.4805C14.8125 15.2578 14.8691 15.0039 14.8691 14.7188C14.8691 14.4492 14.8125 14.1973 14.6992 13.9629C14.5898 13.7246 14.416 13.5332 14.1777 13.3887C13.9395 13.2441 13.627 13.1719 13.2402 13.1719H11.4707V20.5312H10V12H13.2402C13.9004 12 14.4609 12.1172 14.9219 12.3516C15.3867 12.582 15.7402 12.9023 15.9824 13.3125C16.2246 13.7188 16.3457 14.1836 16.3457 14.707C16.3457 15.2578 16.2246 15.7305 15.9824 16.125C15.7402 16.5195 15.3867 16.8223 14.9219 17.0332C14.4609 17.2441 13.9004 17.3496 13.2402 17.3496Z",
|
|
774
|
+
fill: color
|
|
775
|
+
}
|
|
776
|
+
)
|
|
777
|
+
]
|
|
778
|
+
}
|
|
779
|
+
);
|
|
780
|
+
var ChatEN = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
781
|
+
"svg",
|
|
782
|
+
{
|
|
783
|
+
width: size,
|
|
784
|
+
height: size,
|
|
785
|
+
viewBox: "0 0 32 32",
|
|
786
|
+
fill: "none",
|
|
787
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
788
|
+
children: [
|
|
789
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
790
|
+
"path",
|
|
791
|
+
{
|
|
792
|
+
d: "M27 6H5.00004C4.4696 6 3.9609 6.21071 3.58582 6.58579C3.21075 6.96086 3.00004 7.46957 3.00004 8V28C2.99773 28.3814 3.10562 28.7553 3.31074 29.0768C3.51585 29.3984 3.80947 29.6538 4.15629 29.8125C4.42057 29.9356 4.7085 29.9995 5.00004 30C5.46954 29.9989 5.92347 29.8315 6.28129 29.5275L6.29254 29.5187L10.375 26H27C27.5305 26 28.0392 25.7893 28.4142 25.4142C28.7893 25.0391 29 24.5304 29 24V8C29 7.46957 28.7893 6.96086 28.4142 6.58579C28.0392 6.21071 27.5305 6 27 6ZM27 24H10C9.75992 24.0001 9.52787 24.0866 9.34629 24.2437L5.00004 28V8H27V24Z",
|
|
793
|
+
fill: color
|
|
794
|
+
}
|
|
795
|
+
),
|
|
796
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
797
|
+
"path",
|
|
798
|
+
{
|
|
799
|
+
d: "M22.5488 12V20.5312H21.0781L17.252 14.4199V20.5312H15.7812V12H17.252L21.0898 18.123V12H22.5488Z",
|
|
800
|
+
fill: color
|
|
801
|
+
}
|
|
802
|
+
),
|
|
803
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
804
|
+
"path",
|
|
805
|
+
{
|
|
806
|
+
d: "M14.584 19.3652V20.5312H10.0547V19.3652H14.584ZM10.4707 12V20.5312H9V12H10.4707ZM13.9922 15.5625V16.7109H10.0547V15.5625H13.9922ZM14.5547 12V13.1719H10.0547V12H14.5547Z",
|
|
807
|
+
fill: color
|
|
808
|
+
}
|
|
809
|
+
)
|
|
810
|
+
]
|
|
811
|
+
}
|
|
812
|
+
);
|
|
813
|
+
var ChatES = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
814
|
+
"svg",
|
|
815
|
+
{
|
|
816
|
+
width: size,
|
|
817
|
+
height: size,
|
|
818
|
+
viewBox: "0 0 32 32",
|
|
819
|
+
fill: "none",
|
|
820
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
821
|
+
children: [
|
|
822
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
823
|
+
"path",
|
|
824
|
+
{
|
|
825
|
+
d: "M27 6H5.00004C4.4696 6 3.9609 6.21071 3.58582 6.58579C3.21075 6.96086 3.00004 7.46957 3.00004 8V28C2.99773 28.3814 3.10562 28.7553 3.31074 29.0768C3.51585 29.3984 3.80947 29.6538 4.15629 29.8125C4.42057 29.9356 4.7085 29.9995 5.00004 30C5.46954 29.9989 5.92347 29.8315 6.28129 29.5275L6.29254 29.5187L10.375 26H27C27.5305 26 28.0392 25.7893 28.4142 25.4142C28.7893 25.0391 29 24.5304 29 24V8C29 7.46957 28.7893 6.96086 28.4142 6.58579C28.0392 6.21071 27.5305 6 27 6ZM27 24H10C9.75992 24.0001 9.52787 24.0866 9.34629 24.2437L5.00004 28V8H27V24Z",
|
|
826
|
+
fill: color
|
|
827
|
+
}
|
|
828
|
+
),
|
|
829
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
830
|
+
"path",
|
|
831
|
+
{
|
|
832
|
+
d: "M21.1426 17.8027C21.1426 17.627 21.1152 17.4707 21.0605 17.334C21.0098 17.1973 20.918 17.0723 20.7852 16.959C20.6523 16.8457 20.4648 16.7363 20.2227 16.6309C19.9844 16.5215 19.6797 16.4102 19.3086 16.2969C18.9023 16.1719 18.5273 16.0332 18.1836 15.8809C17.8438 15.7246 17.5469 15.5449 17.293 15.3418C17.0391 15.1348 16.8418 14.8984 16.7012 14.6328C16.5605 14.3633 16.4902 14.0527 16.4902 13.7012C16.4902 13.3535 16.5625 13.0371 16.707 12.752C16.8555 12.4668 17.0645 12.2207 17.334 12.0137C17.6074 11.8027 17.9297 11.6406 18.3008 11.5273C18.6719 11.4102 19.082 11.3516 19.5312 11.3516C20.1641 11.3516 20.709 11.4688 21.166 11.7031C21.627 11.9375 21.9805 12.252 22.2266 12.6465C22.4766 13.041 22.6016 13.4766 22.6016 13.9531H21.1426C21.1426 13.6719 21.082 13.4238 20.9609 13.209C20.8438 12.9902 20.6641 12.8184 20.4219 12.6934C20.1836 12.5684 19.8809 12.5059 19.5137 12.5059C19.166 12.5059 18.877 12.5586 18.6465 12.6641C18.416 12.7695 18.2441 12.9121 18.1309 13.0918C18.0176 13.2715 17.9609 13.4746 17.9609 13.7012C17.9609 13.8613 17.998 14.0078 18.0723 14.1406C18.1465 14.2695 18.2598 14.3906 18.4121 14.5039C18.5645 14.6133 18.7559 14.7168 18.9863 14.8145C19.2168 14.9121 19.4883 15.0059 19.8008 15.0957C20.2734 15.2363 20.6855 15.3926 21.0371 15.5645C21.3887 15.7324 21.6816 15.9238 21.916 16.1387C22.1504 16.3535 22.3262 16.5977 22.4434 16.8711C22.5605 17.1406 22.6191 17.4473 22.6191 17.791C22.6191 18.1504 22.5469 18.4746 22.4023 18.7637C22.2578 19.0488 22.0508 19.293 21.7812 19.4961C21.5156 19.6953 21.1953 19.8496 20.8203 19.959C20.4492 20.0645 20.0352 20.1172 19.5781 20.1172C19.168 20.1172 18.7637 20.0625 18.3652 19.9531C17.9707 19.8438 17.6113 19.6777 17.2871 19.4551C16.9629 19.2285 16.7051 18.9473 16.5137 18.6113C16.3223 18.2715 16.2266 17.875 16.2266 17.4219H17.6973C17.6973 17.6992 17.7441 17.9355 17.8379 18.1309C17.9355 18.3262 18.0703 18.4863 18.2422 18.6113C18.4141 18.7324 18.6133 18.8223 18.8398 18.8809C19.0703 18.9395 19.3164 18.9688 19.5781 18.9688C19.9219 18.9688 20.209 18.9199 20.4395 18.8223C20.6738 18.7246 20.8496 18.5879 20.9668 18.4121C21.084 18.2363 21.1426 18.0332 21.1426 17.8027Z",
|
|
833
|
+
fill: color
|
|
834
|
+
}
|
|
835
|
+
),
|
|
836
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
837
|
+
"path",
|
|
838
|
+
{
|
|
839
|
+
d: "M15.4512 18.834V20H10.9219V18.834H15.4512ZM11.3379 11.4688V20H9.86719V11.4688H11.3379ZM14.8594 15.0312V16.1797H10.9219V15.0312H14.8594ZM15.4219 11.4688V12.6406H10.9219V11.4688H15.4219Z",
|
|
840
|
+
fill: color
|
|
841
|
+
}
|
|
842
|
+
)
|
|
843
|
+
]
|
|
844
|
+
}
|
|
845
|
+
);
|
|
846
|
+
var IconRender = ({
|
|
847
|
+
iconName,
|
|
848
|
+
color = "#000000",
|
|
849
|
+
size = 24,
|
|
850
|
+
weight = "regular"
|
|
851
|
+
}) => {
|
|
852
|
+
switch (iconName) {
|
|
853
|
+
case "Chat_PT":
|
|
854
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ChatPT, { size, color });
|
|
855
|
+
case "Chat_EN":
|
|
856
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ChatEN, { size, color });
|
|
857
|
+
case "Chat_ES":
|
|
858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ChatES, { size, color });
|
|
859
|
+
default: {
|
|
860
|
+
const IconComponent = PhosphorIcons[iconName] || PhosphorIcons.Question;
|
|
861
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(IconComponent, { size, color, weight });
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
};
|
|
865
|
+
var IconRender_default = IconRender;
|
|
866
|
+
|
|
867
|
+
// src/components/Card/Card.tsx
|
|
868
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
734
869
|
var CARD_BASE_CLASSES = {
|
|
735
870
|
default: "w-full bg-background border border-border-50 rounded-xl",
|
|
736
871
|
compact: "w-full bg-background border border-border-50 rounded-lg",
|
|
@@ -780,7 +915,7 @@ var CardBase = (0, import_react.forwardRef)(
|
|
|
780
915
|
cursorClasses,
|
|
781
916
|
className
|
|
782
917
|
].filter(Boolean).join(" ");
|
|
783
|
-
return /* @__PURE__ */ (0,
|
|
918
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ref, className: combinedClasses, ...props, children });
|
|
784
919
|
}
|
|
785
920
|
);
|
|
786
921
|
var ACTION_CARD_CLASSES = {
|
|
@@ -823,7 +958,7 @@ var CardActivitiesResults = (0, import_react.forwardRef)(
|
|
|
823
958
|
const actionIconClasses = ACTION_ICON_CLASSES[action];
|
|
824
959
|
const actionSubTitleClasses = ACTION_SUBTITLE_CLASSES[action];
|
|
825
960
|
const actionHeaderClasses = ACTION_HEADER_CLASSES[action];
|
|
826
|
-
return /* @__PURE__ */ (0,
|
|
961
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
827
962
|
"div",
|
|
828
963
|
{
|
|
829
964
|
ref,
|
|
@@ -833,7 +968,7 @@ var CardActivitiesResults = (0, import_react.forwardRef)(
|
|
|
833
968
|
),
|
|
834
969
|
...props,
|
|
835
970
|
children: [
|
|
836
|
-
/* @__PURE__ */ (0,
|
|
971
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
837
972
|
"div",
|
|
838
973
|
{
|
|
839
974
|
className: cn(
|
|
@@ -842,7 +977,7 @@ var CardActivitiesResults = (0, import_react.forwardRef)(
|
|
|
842
977
|
extended ? "rounded-t-xl" : "rounded-xl"
|
|
843
978
|
),
|
|
844
979
|
children: [
|
|
845
|
-
/* @__PURE__ */ (0,
|
|
980
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
846
981
|
"span",
|
|
847
982
|
{
|
|
848
983
|
className: cn(
|
|
@@ -852,7 +987,7 @@ var CardActivitiesResults = (0, import_react.forwardRef)(
|
|
|
852
987
|
children: icon
|
|
853
988
|
}
|
|
854
989
|
),
|
|
855
|
-
/* @__PURE__ */ (0,
|
|
990
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
856
991
|
Text_default,
|
|
857
992
|
{
|
|
858
993
|
size: "2xs",
|
|
@@ -861,7 +996,7 @@ var CardActivitiesResults = (0, import_react.forwardRef)(
|
|
|
861
996
|
children: title
|
|
862
997
|
}
|
|
863
998
|
),
|
|
864
|
-
/* @__PURE__ */ (0,
|
|
999
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
865
1000
|
"p",
|
|
866
1001
|
{
|
|
867
1002
|
className: cn("text-lg font-bold truncate", actionSubTitleClasses),
|
|
@@ -871,8 +1006,8 @@ var CardActivitiesResults = (0, import_react.forwardRef)(
|
|
|
871
1006
|
]
|
|
872
1007
|
}
|
|
873
1008
|
),
|
|
874
|
-
extended && /* @__PURE__ */ (0,
|
|
875
|
-
/* @__PURE__ */ (0,
|
|
1009
|
+
extended && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col items-center gap-2.5 pb-9.5 pt-2.5", children: [
|
|
1010
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
876
1011
|
"p",
|
|
877
1012
|
{
|
|
878
1013
|
className: cn(
|
|
@@ -882,7 +1017,7 @@ var CardActivitiesResults = (0, import_react.forwardRef)(
|
|
|
882
1017
|
children: header
|
|
883
1018
|
}
|
|
884
1019
|
),
|
|
885
|
-
/* @__PURE__ */ (0,
|
|
1020
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Badge_default, { size: "large", action: "info", children: description })
|
|
886
1021
|
] })
|
|
887
1022
|
]
|
|
888
1023
|
}
|
|
@@ -901,7 +1036,7 @@ var CardQuestions = (0, import_react.forwardRef)(
|
|
|
901
1036
|
const isDone = state === "done";
|
|
902
1037
|
const stateLabel = isDone ? "Realizado" : "N\xE3o Realizado";
|
|
903
1038
|
const buttonLabel = isDone ? "Ver Quest\xE3o" : "Responder";
|
|
904
|
-
return /* @__PURE__ */ (0,
|
|
1039
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
905
1040
|
CardBase,
|
|
906
1041
|
{
|
|
907
1042
|
ref,
|
|
@@ -911,10 +1046,10 @@ var CardQuestions = (0, import_react.forwardRef)(
|
|
|
911
1046
|
className: cn("justify-between gap-4", className),
|
|
912
1047
|
...props,
|
|
913
1048
|
children: [
|
|
914
|
-
/* @__PURE__ */ (0,
|
|
915
|
-
/* @__PURE__ */ (0,
|
|
916
|
-
/* @__PURE__ */ (0,
|
|
917
|
-
/* @__PURE__ */ (0,
|
|
1049
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("section", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
1050
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "font-bold text-xs text-text-950 truncate", children: header }),
|
|
1051
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-row gap-6 items-center", children: [
|
|
1052
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
918
1053
|
Badge_default,
|
|
919
1054
|
{
|
|
920
1055
|
size: "medium",
|
|
@@ -923,13 +1058,13 @@ var CardQuestions = (0, import_react.forwardRef)(
|
|
|
923
1058
|
children: stateLabel
|
|
924
1059
|
}
|
|
925
1060
|
),
|
|
926
|
-
/* @__PURE__ */ (0,
|
|
1061
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "flex flex-row items-center gap-1 text-text-700 text-xs", children: [
|
|
927
1062
|
isDone ? "Nota" : "Sem nota",
|
|
928
|
-
isDone && /* @__PURE__ */ (0,
|
|
1063
|
+
isDone && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Badge_default, { size: "medium", action: "success", children: "00" })
|
|
929
1064
|
] })
|
|
930
1065
|
] })
|
|
931
1066
|
] }),
|
|
932
|
-
/* @__PURE__ */ (0,
|
|
1067
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "flex-shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
933
1068
|
Button_default,
|
|
934
1069
|
{
|
|
935
1070
|
size: "extra-small",
|
|
@@ -960,19 +1095,19 @@ var CardProgress = (0, import_react.forwardRef)(
|
|
|
960
1095
|
}, ref) => {
|
|
961
1096
|
const isHorizontal = direction === "horizontal";
|
|
962
1097
|
const contentComponent = {
|
|
963
|
-
horizontal: /* @__PURE__ */ (0,
|
|
964
|
-
showDates && /* @__PURE__ */ (0,
|
|
965
|
-
initialDate && /* @__PURE__ */ (0,
|
|
966
|
-
/* @__PURE__ */ (0,
|
|
967
|
-
/* @__PURE__ */ (0,
|
|
1098
|
+
horizontal: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1099
|
+
showDates && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-row gap-6 items-center", children: [
|
|
1100
|
+
initialDate && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "flex flex-row gap-1 items-center text-2xs", children: [
|
|
1101
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-text-800 font-semibold", children: "In\xEDcio" }),
|
|
1102
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-text-600", children: initialDate })
|
|
968
1103
|
] }),
|
|
969
|
-
endDate && /* @__PURE__ */ (0,
|
|
970
|
-
/* @__PURE__ */ (0,
|
|
971
|
-
/* @__PURE__ */ (0,
|
|
1104
|
+
endDate && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "flex flex-row gap-1 items-center text-2xs", children: [
|
|
1105
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-text-800 font-semibold", children: "Fim" }),
|
|
1106
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-text-600", children: endDate })
|
|
972
1107
|
] })
|
|
973
1108
|
] }),
|
|
974
|
-
/* @__PURE__ */ (0,
|
|
975
|
-
/* @__PURE__ */ (0,
|
|
1109
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "grid grid-cols-[1fr_auto] items-center gap-2", children: [
|
|
1110
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
976
1111
|
ProgressBar_default,
|
|
977
1112
|
{
|
|
978
1113
|
size: "small",
|
|
@@ -981,7 +1116,7 @@ var CardProgress = (0, import_react.forwardRef)(
|
|
|
981
1116
|
"data-testid": "progress-bar"
|
|
982
1117
|
}
|
|
983
1118
|
),
|
|
984
|
-
/* @__PURE__ */ (0,
|
|
1119
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
985
1120
|
Text_default,
|
|
986
1121
|
{
|
|
987
1122
|
size: "xs",
|
|
@@ -997,9 +1132,9 @@ var CardProgress = (0, import_react.forwardRef)(
|
|
|
997
1132
|
)
|
|
998
1133
|
] })
|
|
999
1134
|
] }),
|
|
1000
|
-
vertical: /* @__PURE__ */ (0,
|
|
1135
|
+
vertical: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-sm text-text-800", children: subhead })
|
|
1001
1136
|
};
|
|
1002
|
-
return /* @__PURE__ */ (0,
|
|
1137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
1003
1138
|
CardBase,
|
|
1004
1139
|
{
|
|
1005
1140
|
ref,
|
|
@@ -1010,7 +1145,7 @@ var CardProgress = (0, import_react.forwardRef)(
|
|
|
1010
1145
|
className: cn(isHorizontal ? "h-20" : "", className),
|
|
1011
1146
|
...props,
|
|
1012
1147
|
children: [
|
|
1013
|
-
/* @__PURE__ */ (0,
|
|
1148
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1014
1149
|
"div",
|
|
1015
1150
|
{
|
|
1016
1151
|
className: cn(
|
|
@@ -1023,7 +1158,7 @@ var CardProgress = (0, import_react.forwardRef)(
|
|
|
1023
1158
|
children: icon
|
|
1024
1159
|
}
|
|
1025
1160
|
),
|
|
1026
|
-
/* @__PURE__ */ (0,
|
|
1161
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
1027
1162
|
"div",
|
|
1028
1163
|
{
|
|
1029
1164
|
className: cn(
|
|
@@ -1031,7 +1166,7 @@ var CardProgress = (0, import_react.forwardRef)(
|
|
|
1031
1166
|
!isHorizontal && "gap-4"
|
|
1032
1167
|
),
|
|
1033
1168
|
children: [
|
|
1034
|
-
/* @__PURE__ */ (0,
|
|
1169
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Text_default, { size: "sm", weight: "bold", className: "text-text-950 truncate", children: header }),
|
|
1035
1170
|
contentComponent[direction]
|
|
1036
1171
|
]
|
|
1037
1172
|
}
|
|
@@ -1051,7 +1186,7 @@ var CardTopic = (0, import_react.forwardRef)(
|
|
|
1051
1186
|
className = "",
|
|
1052
1187
|
...props
|
|
1053
1188
|
}, ref) => {
|
|
1054
|
-
return /* @__PURE__ */ (0,
|
|
1189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
1055
1190
|
CardBase,
|
|
1056
1191
|
{
|
|
1057
1192
|
ref,
|
|
@@ -1062,13 +1197,13 @@ var CardTopic = (0, import_react.forwardRef)(
|
|
|
1062
1197
|
className: cn("justify-center gap-2 py-2 px-4", className),
|
|
1063
1198
|
...props,
|
|
1064
1199
|
children: [
|
|
1065
|
-
subHead && /* @__PURE__ */ (0,
|
|
1066
|
-
/* @__PURE__ */ (0,
|
|
1067
|
-
index < subHead.length - 1 && /* @__PURE__ */ (0,
|
|
1200
|
+
subHead && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-text-600 text-2xs flex flex-row gap-1", children: subHead.map((text, index) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_react.Fragment, { children: [
|
|
1201
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { children: text }),
|
|
1202
|
+
index < subHead.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { children: "\u2022" })
|
|
1068
1203
|
] }, `${text} - ${index}`)) }),
|
|
1069
|
-
/* @__PURE__ */ (0,
|
|
1070
|
-
/* @__PURE__ */ (0,
|
|
1071
|
-
/* @__PURE__ */ (0,
|
|
1204
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-sm text-text-950 font-bold truncate", children: header }),
|
|
1205
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "grid grid-cols-[1fr_auto] items-center gap-2", children: [
|
|
1206
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1072
1207
|
ProgressBar_default,
|
|
1073
1208
|
{
|
|
1074
1209
|
size: "small",
|
|
@@ -1077,7 +1212,7 @@ var CardTopic = (0, import_react.forwardRef)(
|
|
|
1077
1212
|
"data-testid": "progress-bar"
|
|
1078
1213
|
}
|
|
1079
1214
|
),
|
|
1080
|
-
showPercentage && /* @__PURE__ */ (0,
|
|
1215
|
+
showPercentage && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
1081
1216
|
Text_default,
|
|
1082
1217
|
{
|
|
1083
1218
|
size: "xs",
|
|
@@ -1111,7 +1246,7 @@ var CardPerformance = (0, import_react.forwardRef)(
|
|
|
1111
1246
|
...props
|
|
1112
1247
|
}, ref) => {
|
|
1113
1248
|
const hasProgress = progress !== void 0;
|
|
1114
|
-
return /* @__PURE__ */ (0,
|
|
1249
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
1115
1250
|
CardBase,
|
|
1116
1251
|
{
|
|
1117
1252
|
ref,
|
|
@@ -1125,10 +1260,10 @@ var CardPerformance = (0, import_react.forwardRef)(
|
|
|
1125
1260
|
onClick: () => actionVariant == "caret" && onClickButton?.(valueButton),
|
|
1126
1261
|
...props,
|
|
1127
1262
|
children: [
|
|
1128
|
-
/* @__PURE__ */ (0,
|
|
1129
|
-
/* @__PURE__ */ (0,
|
|
1130
|
-
/* @__PURE__ */ (0,
|
|
1131
|
-
actionVariant === "button" && /* @__PURE__ */ (0,
|
|
1263
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "w-full flex flex-col justify-between gap-2", children: [
|
|
1264
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-row justify-between items-center gap-2", children: [
|
|
1265
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-lg font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
1266
|
+
actionVariant === "button" && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1132
1267
|
Button_default,
|
|
1133
1268
|
{
|
|
1134
1269
|
variant: "outline",
|
|
@@ -1139,16 +1274,16 @@ var CardPerformance = (0, import_react.forwardRef)(
|
|
|
1139
1274
|
}
|
|
1140
1275
|
)
|
|
1141
1276
|
] }),
|
|
1142
|
-
/* @__PURE__ */ (0,
|
|
1277
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "w-full", children: hasProgress ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1143
1278
|
ProgressBar_default,
|
|
1144
1279
|
{
|
|
1145
1280
|
value: progress,
|
|
1146
1281
|
label: `${progress}% ${labelProgress}`,
|
|
1147
1282
|
variant: progressVariant
|
|
1148
1283
|
}
|
|
1149
|
-
) : /* @__PURE__ */ (0,
|
|
1284
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-xs text-text-600 truncate", children: description }) })
|
|
1150
1285
|
] }),
|
|
1151
|
-
actionVariant == "caret" && /* @__PURE__ */ (0,
|
|
1286
|
+
actionVariant == "caret" && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1152
1287
|
import_phosphor_react2.CaretRight,
|
|
1153
1288
|
{
|
|
1154
1289
|
className: "size-4.5 text-text-800 cursor-pointer",
|
|
@@ -1172,7 +1307,7 @@ var CardResults = (0, import_react.forwardRef)(
|
|
|
1172
1307
|
...props
|
|
1173
1308
|
}, ref) => {
|
|
1174
1309
|
const isRow = direction == "row";
|
|
1175
|
-
return /* @__PURE__ */ (0,
|
|
1310
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
1176
1311
|
CardBase,
|
|
1177
1312
|
{
|
|
1178
1313
|
ref,
|
|
@@ -1182,7 +1317,7 @@ var CardResults = (0, import_react.forwardRef)(
|
|
|
1182
1317
|
className: cn("items-center cursor-pointer pr-4", className),
|
|
1183
1318
|
...props,
|
|
1184
1319
|
children: [
|
|
1185
|
-
/* @__PURE__ */ (0,
|
|
1320
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1186
1321
|
"div",
|
|
1187
1322
|
{
|
|
1188
1323
|
className: cn(
|
|
@@ -1191,10 +1326,10 @@ var CardResults = (0, import_react.forwardRef)(
|
|
|
1191
1326
|
style: {
|
|
1192
1327
|
backgroundColor: color
|
|
1193
1328
|
},
|
|
1194
|
-
children: icon
|
|
1329
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(IconRender_default, { iconName: icon, color: "currentColor", size: 20 })
|
|
1195
1330
|
}
|
|
1196
1331
|
),
|
|
1197
|
-
/* @__PURE__ */ (0,
|
|
1332
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
1198
1333
|
"div",
|
|
1199
1334
|
{
|
|
1200
1335
|
className: cn(
|
|
@@ -1202,28 +1337,28 @@ var CardResults = (0, import_react.forwardRef)(
|
|
|
1202
1337
|
isRow ? "flex-row items-center gap-2" : "flex-col"
|
|
1203
1338
|
),
|
|
1204
1339
|
children: [
|
|
1205
|
-
/* @__PURE__ */ (0,
|
|
1206
|
-
/* @__PURE__ */ (0,
|
|
1207
|
-
/* @__PURE__ */ (0,
|
|
1340
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
1341
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "flex flex-row gap-1 items-center", children: [
|
|
1342
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
1208
1343
|
Badge_default,
|
|
1209
1344
|
{
|
|
1210
1345
|
action: "success",
|
|
1211
1346
|
variant: "solid",
|
|
1212
1347
|
size: "large",
|
|
1213
|
-
iconLeft: /* @__PURE__ */ (0,
|
|
1348
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_phosphor_react2.CheckCircle, {}),
|
|
1214
1349
|
children: [
|
|
1215
1350
|
correct_answers,
|
|
1216
1351
|
" Corretas"
|
|
1217
1352
|
]
|
|
1218
1353
|
}
|
|
1219
1354
|
),
|
|
1220
|
-
/* @__PURE__ */ (0,
|
|
1355
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
1221
1356
|
Badge_default,
|
|
1222
1357
|
{
|
|
1223
1358
|
action: "error",
|
|
1224
1359
|
variant: "solid",
|
|
1225
1360
|
size: "large",
|
|
1226
|
-
iconLeft: /* @__PURE__ */ (0,
|
|
1361
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_phosphor_react2.XCircle, {}),
|
|
1227
1362
|
children: [
|
|
1228
1363
|
incorrect_answers,
|
|
1229
1364
|
" Incorretas"
|
|
@@ -1234,7 +1369,7 @@ var CardResults = (0, import_react.forwardRef)(
|
|
|
1234
1369
|
]
|
|
1235
1370
|
}
|
|
1236
1371
|
),
|
|
1237
|
-
/* @__PURE__ */ (0,
|
|
1372
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_phosphor_react2.CaretRight, { className: "min-w-6 min-h-6 text-text-800" })
|
|
1238
1373
|
]
|
|
1239
1374
|
}
|
|
1240
1375
|
);
|
|
@@ -1254,7 +1389,7 @@ var CardStatus = (0, import_react.forwardRef)(
|
|
|
1254
1389
|
return "Em branco";
|
|
1255
1390
|
}
|
|
1256
1391
|
};
|
|
1257
|
-
return /* @__PURE__ */ (0,
|
|
1392
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1258
1393
|
CardBase,
|
|
1259
1394
|
{
|
|
1260
1395
|
ref,
|
|
@@ -1263,22 +1398,22 @@ var CardStatus = (0, import_react.forwardRef)(
|
|
|
1263
1398
|
minHeight: "medium",
|
|
1264
1399
|
className: cn("items-center cursor-pointer", className),
|
|
1265
1400
|
...props,
|
|
1266
|
-
children: /* @__PURE__ */ (0,
|
|
1267
|
-
/* @__PURE__ */ (0,
|
|
1268
|
-
/* @__PURE__ */ (0,
|
|
1269
|
-
status && /* @__PURE__ */ (0,
|
|
1401
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex justify-between w-full h-full flex-row items-center gap-2", children: [
|
|
1402
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
1403
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "flex flex-row gap-1 items-center flex-shrink-0", children: [
|
|
1404
|
+
status && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1270
1405
|
Badge_default,
|
|
1271
1406
|
{
|
|
1272
1407
|
action: status == "correct" ? "success" : "error",
|
|
1273
1408
|
variant: "solid",
|
|
1274
1409
|
size: "medium",
|
|
1275
|
-
iconLeft: status == "correct" ? /* @__PURE__ */ (0,
|
|
1410
|
+
iconLeft: status == "correct" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_phosphor_react2.CheckCircle, {}) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_phosphor_react2.XCircle, {}),
|
|
1276
1411
|
children: getLabelBadge(status)
|
|
1277
1412
|
}
|
|
1278
1413
|
),
|
|
1279
|
-
label && /* @__PURE__ */ (0,
|
|
1414
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-sm text-text-800", children: label })
|
|
1280
1415
|
] }),
|
|
1281
|
-
/* @__PURE__ */ (0,
|
|
1416
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_phosphor_react2.CaretRight, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer flex-shrink-0 ml-2" })
|
|
1282
1417
|
] })
|
|
1283
1418
|
}
|
|
1284
1419
|
);
|
|
@@ -1286,7 +1421,7 @@ var CardStatus = (0, import_react.forwardRef)(
|
|
|
1286
1421
|
);
|
|
1287
1422
|
var CardSettings = (0, import_react.forwardRef)(
|
|
1288
1423
|
({ header, className, icon, ...props }, ref) => {
|
|
1289
|
-
return /* @__PURE__ */ (0,
|
|
1424
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
1290
1425
|
CardBase,
|
|
1291
1426
|
{
|
|
1292
1427
|
ref,
|
|
@@ -1299,9 +1434,9 @@ var CardSettings = (0, import_react.forwardRef)(
|
|
|
1299
1434
|
),
|
|
1300
1435
|
...props,
|
|
1301
1436
|
children: [
|
|
1302
|
-
/* @__PURE__ */ (0,
|
|
1303
|
-
/* @__PURE__ */ (0,
|
|
1304
|
-
/* @__PURE__ */ (0,
|
|
1437
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "[&>svg]:size-6", children: icon }),
|
|
1438
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "w-full text-sm truncate", children: header }),
|
|
1439
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_phosphor_react2.CaretRight, { size: 24, className: "cursor-pointer" })
|
|
1305
1440
|
]
|
|
1306
1441
|
}
|
|
1307
1442
|
);
|
|
@@ -1309,7 +1444,7 @@ var CardSettings = (0, import_react.forwardRef)(
|
|
|
1309
1444
|
);
|
|
1310
1445
|
var CardSupport = (0, import_react.forwardRef)(
|
|
1311
1446
|
({ header, className, direction = "col", children, ...props }, ref) => {
|
|
1312
|
-
return /* @__PURE__ */ (0,
|
|
1447
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
1313
1448
|
CardBase,
|
|
1314
1449
|
{
|
|
1315
1450
|
ref,
|
|
@@ -1322,7 +1457,7 @@ var CardSupport = (0, import_react.forwardRef)(
|
|
|
1322
1457
|
),
|
|
1323
1458
|
...props,
|
|
1324
1459
|
children: [
|
|
1325
|
-
/* @__PURE__ */ (0,
|
|
1460
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
1326
1461
|
"div",
|
|
1327
1462
|
{
|
|
1328
1463
|
className: cn(
|
|
@@ -1330,12 +1465,12 @@ var CardSupport = (0, import_react.forwardRef)(
|
|
|
1330
1465
|
direction == "col" ? "flex-col" : "flex-row items-center"
|
|
1331
1466
|
),
|
|
1332
1467
|
children: [
|
|
1333
|
-
/* @__PURE__ */ (0,
|
|
1334
|
-
/* @__PURE__ */ (0,
|
|
1468
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "w-full min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-sm text-text-950 font-bold truncate", children: header }) }),
|
|
1469
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "flex flex-row gap-1", children })
|
|
1335
1470
|
]
|
|
1336
1471
|
}
|
|
1337
1472
|
),
|
|
1338
|
-
/* @__PURE__ */ (0,
|
|
1473
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_phosphor_react2.CaretRight, { className: "text-text-800 cursor-pointer", size: 24 })
|
|
1339
1474
|
]
|
|
1340
1475
|
}
|
|
1341
1476
|
);
|
|
@@ -1355,7 +1490,7 @@ var CardForum = (0, import_react.forwardRef)(
|
|
|
1355
1490
|
hour,
|
|
1356
1491
|
...props
|
|
1357
1492
|
}, ref) => {
|
|
1358
|
-
return /* @__PURE__ */ (0,
|
|
1493
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
1359
1494
|
CardBase,
|
|
1360
1495
|
{
|
|
1361
1496
|
ref,
|
|
@@ -1366,7 +1501,7 @@ var CardForum = (0, import_react.forwardRef)(
|
|
|
1366
1501
|
className: cn("w-auto h-auto gap-3", className),
|
|
1367
1502
|
...props,
|
|
1368
1503
|
children: [
|
|
1369
|
-
/* @__PURE__ */ (0,
|
|
1504
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1370
1505
|
"button",
|
|
1371
1506
|
{
|
|
1372
1507
|
type: "button",
|
|
@@ -1375,18 +1510,18 @@ var CardForum = (0, import_react.forwardRef)(
|
|
|
1375
1510
|
className: "min-w-8 h-8 rounded-full bg-background-950"
|
|
1376
1511
|
}
|
|
1377
1512
|
),
|
|
1378
|
-
/* @__PURE__ */ (0,
|
|
1379
|
-
/* @__PURE__ */ (0,
|
|
1380
|
-
/* @__PURE__ */ (0,
|
|
1381
|
-
/* @__PURE__ */ (0,
|
|
1513
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
|
|
1514
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-row gap-1 items-center flex-wrap", children: [
|
|
1515
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-xs font-semibold text-primary-700 truncate", children: title }),
|
|
1516
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("p", { className: "text-xs text-text-600", children: [
|
|
1382
1517
|
"\u2022 ",
|
|
1383
1518
|
date,
|
|
1384
1519
|
" \u2022 ",
|
|
1385
1520
|
hour
|
|
1386
1521
|
] })
|
|
1387
1522
|
] }),
|
|
1388
|
-
/* @__PURE__ */ (0,
|
|
1389
|
-
/* @__PURE__ */ (0,
|
|
1523
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-text-950 text-sm line-clamp-2 truncate", children: content }),
|
|
1524
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
1390
1525
|
"button",
|
|
1391
1526
|
{
|
|
1392
1527
|
type: "button",
|
|
@@ -1394,8 +1529,8 @@ var CardForum = (0, import_react.forwardRef)(
|
|
|
1394
1529
|
onClick: () => onClickComments?.(valueComments),
|
|
1395
1530
|
className: "text-text-600 flex flex-row gap-2 items-center",
|
|
1396
1531
|
children: [
|
|
1397
|
-
/* @__PURE__ */ (0,
|
|
1398
|
-
/* @__PURE__ */ (0,
|
|
1532
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_phosphor_react2.ChatCircleText, { "aria-hidden": "true", size: 16 }),
|
|
1533
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("p", { className: "text-xs", children: [
|
|
1399
1534
|
comments,
|
|
1400
1535
|
" respostas"
|
|
1401
1536
|
] })
|
|
@@ -1494,14 +1629,14 @@ var CardAudio = (0, import_react.forwardRef)(
|
|
|
1494
1629
|
};
|
|
1495
1630
|
const getVolumeIcon = () => {
|
|
1496
1631
|
if (volume === 0) {
|
|
1497
|
-
return /* @__PURE__ */ (0,
|
|
1632
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_phosphor_react2.SpeakerSimpleX, {});
|
|
1498
1633
|
}
|
|
1499
1634
|
if (volume < 0.5) {
|
|
1500
|
-
return /* @__PURE__ */ (0,
|
|
1635
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_phosphor_react2.SpeakerLow, {});
|
|
1501
1636
|
}
|
|
1502
|
-
return /* @__PURE__ */ (0,
|
|
1637
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_phosphor_react2.SpeakerHigh, {});
|
|
1503
1638
|
};
|
|
1504
|
-
return /* @__PURE__ */ (0,
|
|
1639
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
1505
1640
|
CardBase,
|
|
1506
1641
|
{
|
|
1507
1642
|
ref,
|
|
@@ -1511,7 +1646,7 @@ var CardAudio = (0, import_react.forwardRef)(
|
|
|
1511
1646
|
className: cn("w-auto h-14 items-center gap-2", className),
|
|
1512
1647
|
...props,
|
|
1513
1648
|
children: [
|
|
1514
|
-
/* @__PURE__ */ (0,
|
|
1649
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1515
1650
|
"audio",
|
|
1516
1651
|
{
|
|
1517
1652
|
ref: audioRef,
|
|
@@ -1523,7 +1658,7 @@ var CardAudio = (0, import_react.forwardRef)(
|
|
|
1523
1658
|
onEnded: handleEnded,
|
|
1524
1659
|
"data-testid": "audio-element",
|
|
1525
1660
|
"aria-label": title,
|
|
1526
|
-
children: tracks ? tracks.map((track) => /* @__PURE__ */ (0,
|
|
1661
|
+
children: tracks ? tracks.map((track) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1527
1662
|
"track",
|
|
1528
1663
|
{
|
|
1529
1664
|
kind: track.kind,
|
|
@@ -1533,7 +1668,7 @@ var CardAudio = (0, import_react.forwardRef)(
|
|
|
1533
1668
|
default: track.default
|
|
1534
1669
|
},
|
|
1535
1670
|
track.src
|
|
1536
|
-
)) : /* @__PURE__ */ (0,
|
|
1671
|
+
)) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1537
1672
|
"track",
|
|
1538
1673
|
{
|
|
1539
1674
|
kind: "captions",
|
|
@@ -1544,7 +1679,7 @@ var CardAudio = (0, import_react.forwardRef)(
|
|
|
1544
1679
|
)
|
|
1545
1680
|
}
|
|
1546
1681
|
),
|
|
1547
|
-
/* @__PURE__ */ (0,
|
|
1682
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1548
1683
|
"button",
|
|
1549
1684
|
{
|
|
1550
1685
|
type: "button",
|
|
@@ -1552,14 +1687,14 @@ var CardAudio = (0, import_react.forwardRef)(
|
|
|
1552
1687
|
disabled: !src,
|
|
1553
1688
|
className: "cursor-pointer text-text-950 hover:text-primary-600 disabled:text-text-400 disabled:cursor-not-allowed",
|
|
1554
1689
|
"aria-label": isPlaying ? "Pausar" : "Reproduzir",
|
|
1555
|
-
children: isPlaying ? /* @__PURE__ */ (0,
|
|
1556
|
-
/* @__PURE__ */ (0,
|
|
1557
|
-
/* @__PURE__ */ (0,
|
|
1558
|
-
] }) }) : /* @__PURE__ */ (0,
|
|
1690
|
+
children: isPlaying ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "w-6 h-6 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex gap-0.5", children: [
|
|
1691
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "w-1 h-4 bg-current rounded-sm" }),
|
|
1692
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "w-1 h-4 bg-current rounded-sm" })
|
|
1693
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_phosphor_react2.Play, { size: 24 })
|
|
1559
1694
|
}
|
|
1560
1695
|
),
|
|
1561
|
-
/* @__PURE__ */ (0,
|
|
1562
|
-
/* @__PURE__ */ (0,
|
|
1696
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-text-800 text-sm font-medium min-w-[2.5rem]", children: formatTime(currentTime) }),
|
|
1697
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex-1 relative", "data-testid": "progress-bar", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1563
1698
|
"button",
|
|
1564
1699
|
{
|
|
1565
1700
|
type: "button",
|
|
@@ -1574,7 +1709,7 @@ var CardAudio = (0, import_react.forwardRef)(
|
|
|
1574
1709
|
}
|
|
1575
1710
|
},
|
|
1576
1711
|
"aria-label": "Barra de progresso do \xE1udio",
|
|
1577
|
-
children: /* @__PURE__ */ (0,
|
|
1712
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1578
1713
|
"div",
|
|
1579
1714
|
{
|
|
1580
1715
|
className: "h-full bg-primary-600 rounded-full transition-all duration-100",
|
|
@@ -1585,19 +1720,19 @@ var CardAudio = (0, import_react.forwardRef)(
|
|
|
1585
1720
|
)
|
|
1586
1721
|
}
|
|
1587
1722
|
) }),
|
|
1588
|
-
/* @__PURE__ */ (0,
|
|
1589
|
-
/* @__PURE__ */ (0,
|
|
1590
|
-
/* @__PURE__ */ (0,
|
|
1723
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-text-800 text-sm font-medium min-w-[2.5rem]", children: formatTime(duration) }),
|
|
1724
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "relative", children: [
|
|
1725
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1591
1726
|
"button",
|
|
1592
1727
|
{
|
|
1593
1728
|
type: "button",
|
|
1594
1729
|
onClick: toggleVolumeControl,
|
|
1595
1730
|
className: "cursor-pointer text-text-950 hover:text-primary-600",
|
|
1596
1731
|
"aria-label": "Controle de volume",
|
|
1597
|
-
children: /* @__PURE__ */ (0,
|
|
1732
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "w-6 h-6 flex items-center justify-center", children: getVolumeIcon() })
|
|
1598
1733
|
}
|
|
1599
1734
|
),
|
|
1600
|
-
showVolumeControl && /* @__PURE__ */ (0,
|
|
1735
|
+
showVolumeControl && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1601
1736
|
"button",
|
|
1602
1737
|
{
|
|
1603
1738
|
type: "button",
|
|
@@ -1607,7 +1742,7 @@ var CardAudio = (0, import_react.forwardRef)(
|
|
|
1607
1742
|
setShowVolumeControl(false);
|
|
1608
1743
|
}
|
|
1609
1744
|
},
|
|
1610
|
-
children: /* @__PURE__ */ (0,
|
|
1745
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1611
1746
|
"input",
|
|
1612
1747
|
{
|
|
1613
1748
|
type: "range",
|
|
@@ -1648,22 +1783,22 @@ var CardAudio = (0, import_react.forwardRef)(
|
|
|
1648
1783
|
}
|
|
1649
1784
|
)
|
|
1650
1785
|
] }),
|
|
1651
|
-
/* @__PURE__ */ (0,
|
|
1652
|
-
/* @__PURE__ */ (0,
|
|
1786
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "relative", children: [
|
|
1787
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1653
1788
|
"button",
|
|
1654
1789
|
{
|
|
1655
1790
|
type: "button",
|
|
1656
1791
|
onClick: toggleSpeedMenu,
|
|
1657
1792
|
className: "cursor-pointer text-text-950 hover:text-primary-600",
|
|
1658
1793
|
"aria-label": "Op\xE7\xF5es de velocidade",
|
|
1659
|
-
children: /* @__PURE__ */ (0,
|
|
1794
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_phosphor_react2.DotsThreeVertical, { size: 24 })
|
|
1660
1795
|
}
|
|
1661
1796
|
),
|
|
1662
|
-
showSpeedMenu && /* @__PURE__ */ (0,
|
|
1797
|
+
showSpeedMenu && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "absolute bottom-full right-0 mb-2 p-2 bg-background border border-border-100 rounded-lg shadow-lg min-w-24 z-10", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex flex-col gap-1", children: [
|
|
1663
1798
|
{ speed: 1, label: "1x" },
|
|
1664
1799
|
{ speed: 1.5, label: "1.5x" },
|
|
1665
1800
|
{ speed: 2, label: "2x" }
|
|
1666
|
-
].map(({ speed, label }) => /* @__PURE__ */ (0,
|
|
1801
|
+
].map(({ speed, label }) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1667
1802
|
"button",
|
|
1668
1803
|
{
|
|
1669
1804
|
type: "button",
|
|
@@ -1691,7 +1826,7 @@ var SIMULADO_BACKGROUND_CLASSES = {
|
|
|
1691
1826
|
var CardSimulado = (0, import_react.forwardRef)(
|
|
1692
1827
|
({ title, duration, info, backgroundColor, className, ...props }, ref) => {
|
|
1693
1828
|
const backgroundClass = SIMULADO_BACKGROUND_CLASSES[backgroundColor];
|
|
1694
|
-
return /* @__PURE__ */ (0,
|
|
1829
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1695
1830
|
CardBase,
|
|
1696
1831
|
{
|
|
1697
1832
|
ref,
|
|
@@ -1704,18 +1839,18 @@ var CardSimulado = (0, import_react.forwardRef)(
|
|
|
1704
1839
|
className
|
|
1705
1840
|
),
|
|
1706
1841
|
...props,
|
|
1707
|
-
children: /* @__PURE__ */ (0,
|
|
1708
|
-
/* @__PURE__ */ (0,
|
|
1709
|
-
/* @__PURE__ */ (0,
|
|
1710
|
-
/* @__PURE__ */ (0,
|
|
1711
|
-
duration && /* @__PURE__ */ (0,
|
|
1712
|
-
/* @__PURE__ */ (0,
|
|
1713
|
-
/* @__PURE__ */ (0,
|
|
1842
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex justify-between items-center w-full gap-4", children: [
|
|
1843
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
1844
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Text_default, { size: "lg", weight: "bold", className: "text-text-950 truncate", children: title }),
|
|
1845
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex items-center gap-4 text-text-700", children: [
|
|
1846
|
+
duration && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
1847
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_phosphor_react2.Clock, { size: 16, className: "flex-shrink-0" }),
|
|
1848
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Text_default, { size: "sm", children: duration })
|
|
1714
1849
|
] }),
|
|
1715
|
-
/* @__PURE__ */ (0,
|
|
1850
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Text_default, { size: "sm", className: "truncate", children: info })
|
|
1716
1851
|
] })
|
|
1717
1852
|
] }),
|
|
1718
|
-
/* @__PURE__ */ (0,
|
|
1853
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1719
1854
|
import_phosphor_react2.CaretRight,
|
|
1720
1855
|
{
|
|
1721
1856
|
size: 24,
|
|
@@ -1760,7 +1895,7 @@ var CardTest = (0, import_react.forwardRef)(
|
|
|
1760
1895
|
const interactiveClasses = isSelectable ? "cursor-pointer focus:outline-none focus:ring-2 focus:ring-primary-950 focus:ring-offset-2" : "";
|
|
1761
1896
|
const selectedClasses = selected ? "ring-2 ring-primary-950 ring-offset-2" : "";
|
|
1762
1897
|
if (isSelectable) {
|
|
1763
|
-
return /* @__PURE__ */ (0,
|
|
1898
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1764
1899
|
"button",
|
|
1765
1900
|
{
|
|
1766
1901
|
ref,
|
|
@@ -1772,8 +1907,8 @@ var CardTest = (0, import_react.forwardRef)(
|
|
|
1772
1907
|
onKeyDown: handleKeyDown,
|
|
1773
1908
|
"aria-pressed": selected,
|
|
1774
1909
|
...props,
|
|
1775
|
-
children: /* @__PURE__ */ (0,
|
|
1776
|
-
/* @__PURE__ */ (0,
|
|
1910
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col justify-between gap-[27px] flex-grow min-h-[67px] w-full min-w-0", children: [
|
|
1911
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1777
1912
|
Text_default,
|
|
1778
1913
|
{
|
|
1779
1914
|
size: "md",
|
|
@@ -1782,10 +1917,10 @@ var CardTest = (0, import_react.forwardRef)(
|
|
|
1782
1917
|
children: title
|
|
1783
1918
|
}
|
|
1784
1919
|
),
|
|
1785
|
-
/* @__PURE__ */ (0,
|
|
1786
|
-
duration && /* @__PURE__ */ (0,
|
|
1787
|
-
/* @__PURE__ */ (0,
|
|
1788
|
-
/* @__PURE__ */ (0,
|
|
1920
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-row justify-start items-end gap-4 w-full", children: [
|
|
1921
|
+
duration && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-row items-center gap-1 flex-shrink-0", children: [
|
|
1922
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_phosphor_react2.Clock, { size: 16, className: "text-text-700" }),
|
|
1923
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1789
1924
|
Text_default,
|
|
1790
1925
|
{
|
|
1791
1926
|
size: "sm",
|
|
@@ -1794,7 +1929,7 @@ var CardTest = (0, import_react.forwardRef)(
|
|
|
1794
1929
|
}
|
|
1795
1930
|
)
|
|
1796
1931
|
] }),
|
|
1797
|
-
/* @__PURE__ */ (0,
|
|
1932
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1798
1933
|
Text_default,
|
|
1799
1934
|
{
|
|
1800
1935
|
size: "sm",
|
|
@@ -1807,14 +1942,14 @@ var CardTest = (0, import_react.forwardRef)(
|
|
|
1807
1942
|
}
|
|
1808
1943
|
);
|
|
1809
1944
|
}
|
|
1810
|
-
return /* @__PURE__ */ (0,
|
|
1945
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1811
1946
|
"div",
|
|
1812
1947
|
{
|
|
1813
1948
|
ref,
|
|
1814
1949
|
className: cn(`${baseClasses} ${className}`.trim()),
|
|
1815
1950
|
...props,
|
|
1816
|
-
children: /* @__PURE__ */ (0,
|
|
1817
|
-
/* @__PURE__ */ (0,
|
|
1951
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col justify-between gap-[27px] flex-grow min-h-[67px] w-full min-w-0", children: [
|
|
1952
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1818
1953
|
Text_default,
|
|
1819
1954
|
{
|
|
1820
1955
|
size: "md",
|
|
@@ -1823,10 +1958,10 @@ var CardTest = (0, import_react.forwardRef)(
|
|
|
1823
1958
|
children: title
|
|
1824
1959
|
}
|
|
1825
1960
|
),
|
|
1826
|
-
/* @__PURE__ */ (0,
|
|
1827
|
-
duration && /* @__PURE__ */ (0,
|
|
1828
|
-
/* @__PURE__ */ (0,
|
|
1829
|
-
/* @__PURE__ */ (0,
|
|
1961
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-row justify-start items-end gap-4 w-full", children: [
|
|
1962
|
+
duration && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-row items-center gap-1 flex-shrink-0", children: [
|
|
1963
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_phosphor_react2.Clock, { size: 16, className: "text-text-700" }),
|
|
1964
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1830
1965
|
Text_default,
|
|
1831
1966
|
{
|
|
1832
1967
|
size: "sm",
|
|
@@ -1835,7 +1970,7 @@ var CardTest = (0, import_react.forwardRef)(
|
|
|
1835
1970
|
}
|
|
1836
1971
|
)
|
|
1837
1972
|
] }),
|
|
1838
|
-
/* @__PURE__ */ (0,
|
|
1973
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1839
1974
|
Text_default,
|
|
1840
1975
|
{
|
|
1841
1976
|
size: "sm",
|
|
@@ -1872,14 +2007,14 @@ var SIMULATION_TYPE_STYLES = {
|
|
|
1872
2007
|
}
|
|
1873
2008
|
};
|
|
1874
2009
|
var CardSimulationHistory = (0, import_react.forwardRef)(({ data, onSimulationClick, className, ...props }, ref) => {
|
|
1875
|
-
return /* @__PURE__ */ (0,
|
|
2010
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1876
2011
|
"div",
|
|
1877
2012
|
{
|
|
1878
2013
|
ref,
|
|
1879
2014
|
className: cn("w-full max-w-[992px] h-auto", className),
|
|
1880
2015
|
...props,
|
|
1881
|
-
children: /* @__PURE__ */ (0,
|
|
1882
|
-
data.map((section, sectionIndex) => /* @__PURE__ */ (0,
|
|
2016
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col gap-0", children: [
|
|
2017
|
+
data.map((section, sectionIndex) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
1883
2018
|
"div",
|
|
1884
2019
|
{
|
|
1885
2020
|
className: cn(
|
|
@@ -1887,7 +2022,7 @@ var CardSimulationHistory = (0, import_react.forwardRef)(({ data, onSimulationCl
|
|
|
1887
2022
|
sectionIndex === 0 ? "rounded-t-3xl" : ""
|
|
1888
2023
|
),
|
|
1889
2024
|
children: [
|
|
1890
|
-
/* @__PURE__ */ (0,
|
|
2025
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1891
2026
|
Text_default,
|
|
1892
2027
|
{
|
|
1893
2028
|
size: "xs",
|
|
@@ -1896,9 +2031,9 @@ var CardSimulationHistory = (0, import_react.forwardRef)(({ data, onSimulationCl
|
|
|
1896
2031
|
children: section.date
|
|
1897
2032
|
}
|
|
1898
2033
|
),
|
|
1899
|
-
/* @__PURE__ */ (0,
|
|
2034
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex flex-col gap-2 flex-1", children: section.simulations.map((simulation) => {
|
|
1900
2035
|
const typeStyles = SIMULATION_TYPE_STYLES[simulation.type];
|
|
1901
|
-
return /* @__PURE__ */ (0,
|
|
2036
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1902
2037
|
CardBase,
|
|
1903
2038
|
{
|
|
1904
2039
|
layout: "horizontal",
|
|
@@ -1910,9 +2045,9 @@ var CardSimulationHistory = (0, import_react.forwardRef)(({ data, onSimulationCl
|
|
|
1910
2045
|
transition-shadow duration-200 h-auto min-h-[61px]`
|
|
1911
2046
|
),
|
|
1912
2047
|
onClick: () => onSimulationClick?.(simulation),
|
|
1913
|
-
children: /* @__PURE__ */ (0,
|
|
1914
|
-
/* @__PURE__ */ (0,
|
|
1915
|
-
/* @__PURE__ */ (0,
|
|
2048
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex justify-between items-center w-full gap-2", children: [
|
|
2049
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-wrap flex-col justify-between sm:flex-row gap-2 flex-1 min-w-0", children: [
|
|
2050
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1916
2051
|
Text_default,
|
|
1917
2052
|
{
|
|
1918
2053
|
size: "lg",
|
|
@@ -1921,8 +2056,8 @@ var CardSimulationHistory = (0, import_react.forwardRef)(({ data, onSimulationCl
|
|
|
1921
2056
|
children: simulation.title
|
|
1922
2057
|
}
|
|
1923
2058
|
),
|
|
1924
|
-
/* @__PURE__ */ (0,
|
|
1925
|
-
/* @__PURE__ */ (0,
|
|
2059
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
2060
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1926
2061
|
Badge_default,
|
|
1927
2062
|
{
|
|
1928
2063
|
variant: "examsOutlined",
|
|
@@ -1931,10 +2066,10 @@ var CardSimulationHistory = (0, import_react.forwardRef)(({ data, onSimulationCl
|
|
|
1931
2066
|
children: typeStyles.text
|
|
1932
2067
|
}
|
|
1933
2068
|
),
|
|
1934
|
-
/* @__PURE__ */ (0,
|
|
2069
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Text_default, { size: "sm", className: "text-text-800 truncate", children: simulation.info })
|
|
1935
2070
|
] })
|
|
1936
2071
|
] }),
|
|
1937
|
-
/* @__PURE__ */ (0,
|
|
2072
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1938
2073
|
import_phosphor_react2.CaretRight,
|
|
1939
2074
|
{
|
|
1940
2075
|
size: 24,
|
|
@@ -1950,7 +2085,7 @@ var CardSimulationHistory = (0, import_react.forwardRef)(({ data, onSimulationCl
|
|
|
1950
2085
|
]
|
|
1951
2086
|
}
|
|
1952
2087
|
) }, section.date)),
|
|
1953
|
-
data.length > 0 && /* @__PURE__ */ (0,
|
|
2088
|
+
data.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "w-full h-6 bg-white rounded-b-3xl" })
|
|
1954
2089
|
] })
|
|
1955
2090
|
}
|
|
1956
2091
|
);
|