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.mjs
CHANGED
|
@@ -708,7 +708,132 @@ import {
|
|
|
708
708
|
SpeakerSimpleX,
|
|
709
709
|
XCircle
|
|
710
710
|
} from "phosphor-react";
|
|
711
|
-
|
|
711
|
+
|
|
712
|
+
// src/components/IconRender/IconRender.tsx
|
|
713
|
+
import * as PhosphorIcons from "phosphor-react";
|
|
714
|
+
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
715
|
+
var ChatPT = ({ size, color }) => /* @__PURE__ */ jsxs4(
|
|
716
|
+
"svg",
|
|
717
|
+
{
|
|
718
|
+
width: size,
|
|
719
|
+
height: size,
|
|
720
|
+
viewBox: "0 0 32 32",
|
|
721
|
+
fill: "none",
|
|
722
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
723
|
+
children: [
|
|
724
|
+
/* @__PURE__ */ jsx5(
|
|
725
|
+
"path",
|
|
726
|
+
{
|
|
727
|
+
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",
|
|
728
|
+
fill: color
|
|
729
|
+
}
|
|
730
|
+
),
|
|
731
|
+
/* @__PURE__ */ jsx5(
|
|
732
|
+
"path",
|
|
733
|
+
{
|
|
734
|
+
d: "M21.1758 12V20.5312H19.7168V12H21.1758ZM23.8535 12V13.1719H17.0625V12H23.8535Z",
|
|
735
|
+
fill: color
|
|
736
|
+
}
|
|
737
|
+
),
|
|
738
|
+
/* @__PURE__ */ jsx5(
|
|
739
|
+
"path",
|
|
740
|
+
{
|
|
741
|
+
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",
|
|
742
|
+
fill: color
|
|
743
|
+
}
|
|
744
|
+
)
|
|
745
|
+
]
|
|
746
|
+
}
|
|
747
|
+
);
|
|
748
|
+
var ChatEN = ({ size, color }) => /* @__PURE__ */ jsxs4(
|
|
749
|
+
"svg",
|
|
750
|
+
{
|
|
751
|
+
width: size,
|
|
752
|
+
height: size,
|
|
753
|
+
viewBox: "0 0 32 32",
|
|
754
|
+
fill: "none",
|
|
755
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
756
|
+
children: [
|
|
757
|
+
/* @__PURE__ */ jsx5(
|
|
758
|
+
"path",
|
|
759
|
+
{
|
|
760
|
+
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",
|
|
761
|
+
fill: color
|
|
762
|
+
}
|
|
763
|
+
),
|
|
764
|
+
/* @__PURE__ */ jsx5(
|
|
765
|
+
"path",
|
|
766
|
+
{
|
|
767
|
+
d: "M22.5488 12V20.5312H21.0781L17.252 14.4199V20.5312H15.7812V12H17.252L21.0898 18.123V12H22.5488Z",
|
|
768
|
+
fill: color
|
|
769
|
+
}
|
|
770
|
+
),
|
|
771
|
+
/* @__PURE__ */ jsx5(
|
|
772
|
+
"path",
|
|
773
|
+
{
|
|
774
|
+
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",
|
|
775
|
+
fill: color
|
|
776
|
+
}
|
|
777
|
+
)
|
|
778
|
+
]
|
|
779
|
+
}
|
|
780
|
+
);
|
|
781
|
+
var ChatES = ({ size, color }) => /* @__PURE__ */ jsxs4(
|
|
782
|
+
"svg",
|
|
783
|
+
{
|
|
784
|
+
width: size,
|
|
785
|
+
height: size,
|
|
786
|
+
viewBox: "0 0 32 32",
|
|
787
|
+
fill: "none",
|
|
788
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
789
|
+
children: [
|
|
790
|
+
/* @__PURE__ */ jsx5(
|
|
791
|
+
"path",
|
|
792
|
+
{
|
|
793
|
+
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",
|
|
794
|
+
fill: color
|
|
795
|
+
}
|
|
796
|
+
),
|
|
797
|
+
/* @__PURE__ */ jsx5(
|
|
798
|
+
"path",
|
|
799
|
+
{
|
|
800
|
+
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",
|
|
801
|
+
fill: color
|
|
802
|
+
}
|
|
803
|
+
),
|
|
804
|
+
/* @__PURE__ */ jsx5(
|
|
805
|
+
"path",
|
|
806
|
+
{
|
|
807
|
+
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",
|
|
808
|
+
fill: color
|
|
809
|
+
}
|
|
810
|
+
)
|
|
811
|
+
]
|
|
812
|
+
}
|
|
813
|
+
);
|
|
814
|
+
var IconRender = ({
|
|
815
|
+
iconName,
|
|
816
|
+
color = "#000000",
|
|
817
|
+
size = 24,
|
|
818
|
+
weight = "regular"
|
|
819
|
+
}) => {
|
|
820
|
+
switch (iconName) {
|
|
821
|
+
case "Chat_PT":
|
|
822
|
+
return /* @__PURE__ */ jsx5(ChatPT, { size, color });
|
|
823
|
+
case "Chat_EN":
|
|
824
|
+
return /* @__PURE__ */ jsx5(ChatEN, { size, color });
|
|
825
|
+
case "Chat_ES":
|
|
826
|
+
return /* @__PURE__ */ jsx5(ChatES, { size, color });
|
|
827
|
+
default: {
|
|
828
|
+
const IconComponent = PhosphorIcons[iconName] || PhosphorIcons.Question;
|
|
829
|
+
return /* @__PURE__ */ jsx5(IconComponent, { size, color, weight });
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
};
|
|
833
|
+
var IconRender_default = IconRender;
|
|
834
|
+
|
|
835
|
+
// src/components/Card/Card.tsx
|
|
836
|
+
import { Fragment as Fragment3, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
712
837
|
var CARD_BASE_CLASSES = {
|
|
713
838
|
default: "w-full bg-background border border-border-50 rounded-xl",
|
|
714
839
|
compact: "w-full bg-background border border-border-50 rounded-lg",
|
|
@@ -758,7 +883,7 @@ var CardBase = forwardRef(
|
|
|
758
883
|
cursorClasses,
|
|
759
884
|
className
|
|
760
885
|
].filter(Boolean).join(" ");
|
|
761
|
-
return /* @__PURE__ */
|
|
886
|
+
return /* @__PURE__ */ jsx6("div", { ref, className: combinedClasses, ...props, children });
|
|
762
887
|
}
|
|
763
888
|
);
|
|
764
889
|
var ACTION_CARD_CLASSES = {
|
|
@@ -801,7 +926,7 @@ var CardActivitiesResults = forwardRef(
|
|
|
801
926
|
const actionIconClasses = ACTION_ICON_CLASSES[action];
|
|
802
927
|
const actionSubTitleClasses = ACTION_SUBTITLE_CLASSES[action];
|
|
803
928
|
const actionHeaderClasses = ACTION_HEADER_CLASSES[action];
|
|
804
|
-
return /* @__PURE__ */
|
|
929
|
+
return /* @__PURE__ */ jsxs5(
|
|
805
930
|
"div",
|
|
806
931
|
{
|
|
807
932
|
ref,
|
|
@@ -811,7 +936,7 @@ var CardActivitiesResults = forwardRef(
|
|
|
811
936
|
),
|
|
812
937
|
...props,
|
|
813
938
|
children: [
|
|
814
|
-
/* @__PURE__ */
|
|
939
|
+
/* @__PURE__ */ jsxs5(
|
|
815
940
|
"div",
|
|
816
941
|
{
|
|
817
942
|
className: cn(
|
|
@@ -820,7 +945,7 @@ var CardActivitiesResults = forwardRef(
|
|
|
820
945
|
extended ? "rounded-t-xl" : "rounded-xl"
|
|
821
946
|
),
|
|
822
947
|
children: [
|
|
823
|
-
/* @__PURE__ */
|
|
948
|
+
/* @__PURE__ */ jsx6(
|
|
824
949
|
"span",
|
|
825
950
|
{
|
|
826
951
|
className: cn(
|
|
@@ -830,7 +955,7 @@ var CardActivitiesResults = forwardRef(
|
|
|
830
955
|
children: icon
|
|
831
956
|
}
|
|
832
957
|
),
|
|
833
|
-
/* @__PURE__ */
|
|
958
|
+
/* @__PURE__ */ jsx6(
|
|
834
959
|
Text_default,
|
|
835
960
|
{
|
|
836
961
|
size: "2xs",
|
|
@@ -839,7 +964,7 @@ var CardActivitiesResults = forwardRef(
|
|
|
839
964
|
children: title
|
|
840
965
|
}
|
|
841
966
|
),
|
|
842
|
-
/* @__PURE__ */
|
|
967
|
+
/* @__PURE__ */ jsx6(
|
|
843
968
|
"p",
|
|
844
969
|
{
|
|
845
970
|
className: cn("text-lg font-bold truncate", actionSubTitleClasses),
|
|
@@ -849,8 +974,8 @@ var CardActivitiesResults = forwardRef(
|
|
|
849
974
|
]
|
|
850
975
|
}
|
|
851
976
|
),
|
|
852
|
-
extended && /* @__PURE__ */
|
|
853
|
-
/* @__PURE__ */
|
|
977
|
+
extended && /* @__PURE__ */ jsxs5("div", { className: "flex flex-col items-center gap-2.5 pb-9.5 pt-2.5", children: [
|
|
978
|
+
/* @__PURE__ */ jsx6(
|
|
854
979
|
"p",
|
|
855
980
|
{
|
|
856
981
|
className: cn(
|
|
@@ -860,7 +985,7 @@ var CardActivitiesResults = forwardRef(
|
|
|
860
985
|
children: header
|
|
861
986
|
}
|
|
862
987
|
),
|
|
863
|
-
/* @__PURE__ */
|
|
988
|
+
/* @__PURE__ */ jsx6(Badge_default, { size: "large", action: "info", children: description })
|
|
864
989
|
] })
|
|
865
990
|
]
|
|
866
991
|
}
|
|
@@ -879,7 +1004,7 @@ var CardQuestions = forwardRef(
|
|
|
879
1004
|
const isDone = state === "done";
|
|
880
1005
|
const stateLabel = isDone ? "Realizado" : "N\xE3o Realizado";
|
|
881
1006
|
const buttonLabel = isDone ? "Ver Quest\xE3o" : "Responder";
|
|
882
|
-
return /* @__PURE__ */
|
|
1007
|
+
return /* @__PURE__ */ jsxs5(
|
|
883
1008
|
CardBase,
|
|
884
1009
|
{
|
|
885
1010
|
ref,
|
|
@@ -889,10 +1014,10 @@ var CardQuestions = forwardRef(
|
|
|
889
1014
|
className: cn("justify-between gap-4", className),
|
|
890
1015
|
...props,
|
|
891
1016
|
children: [
|
|
892
|
-
/* @__PURE__ */
|
|
893
|
-
/* @__PURE__ */
|
|
894
|
-
/* @__PURE__ */
|
|
895
|
-
/* @__PURE__ */
|
|
1017
|
+
/* @__PURE__ */ jsxs5("section", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
1018
|
+
/* @__PURE__ */ jsx6("p", { className: "font-bold text-xs text-text-950 truncate", children: header }),
|
|
1019
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex flex-row gap-6 items-center", children: [
|
|
1020
|
+
/* @__PURE__ */ jsx6(
|
|
896
1021
|
Badge_default,
|
|
897
1022
|
{
|
|
898
1023
|
size: "medium",
|
|
@@ -901,13 +1026,13 @@ var CardQuestions = forwardRef(
|
|
|
901
1026
|
children: stateLabel
|
|
902
1027
|
}
|
|
903
1028
|
),
|
|
904
|
-
/* @__PURE__ */
|
|
1029
|
+
/* @__PURE__ */ jsxs5("span", { className: "flex flex-row items-center gap-1 text-text-700 text-xs", children: [
|
|
905
1030
|
isDone ? "Nota" : "Sem nota",
|
|
906
|
-
isDone && /* @__PURE__ */
|
|
1031
|
+
isDone && /* @__PURE__ */ jsx6(Badge_default, { size: "medium", action: "success", children: "00" })
|
|
907
1032
|
] })
|
|
908
1033
|
] })
|
|
909
1034
|
] }),
|
|
910
|
-
/* @__PURE__ */
|
|
1035
|
+
/* @__PURE__ */ jsx6("span", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx6(
|
|
911
1036
|
Button_default,
|
|
912
1037
|
{
|
|
913
1038
|
size: "extra-small",
|
|
@@ -938,19 +1063,19 @@ var CardProgress = forwardRef(
|
|
|
938
1063
|
}, ref) => {
|
|
939
1064
|
const isHorizontal = direction === "horizontal";
|
|
940
1065
|
const contentComponent = {
|
|
941
|
-
horizontal: /* @__PURE__ */
|
|
942
|
-
showDates && /* @__PURE__ */
|
|
943
|
-
initialDate && /* @__PURE__ */
|
|
944
|
-
/* @__PURE__ */
|
|
945
|
-
/* @__PURE__ */
|
|
1066
|
+
horizontal: /* @__PURE__ */ jsxs5(Fragment3, { children: [
|
|
1067
|
+
showDates && /* @__PURE__ */ jsxs5("div", { className: "flex flex-row gap-6 items-center", children: [
|
|
1068
|
+
initialDate && /* @__PURE__ */ jsxs5("span", { className: "flex flex-row gap-1 items-center text-2xs", children: [
|
|
1069
|
+
/* @__PURE__ */ jsx6("p", { className: "text-text-800 font-semibold", children: "In\xEDcio" }),
|
|
1070
|
+
/* @__PURE__ */ jsx6("p", { className: "text-text-600", children: initialDate })
|
|
946
1071
|
] }),
|
|
947
|
-
endDate && /* @__PURE__ */
|
|
948
|
-
/* @__PURE__ */
|
|
949
|
-
/* @__PURE__ */
|
|
1072
|
+
endDate && /* @__PURE__ */ jsxs5("span", { className: "flex flex-row gap-1 items-center text-2xs", children: [
|
|
1073
|
+
/* @__PURE__ */ jsx6("p", { className: "text-text-800 font-semibold", children: "Fim" }),
|
|
1074
|
+
/* @__PURE__ */ jsx6("p", { className: "text-text-600", children: endDate })
|
|
950
1075
|
] })
|
|
951
1076
|
] }),
|
|
952
|
-
/* @__PURE__ */
|
|
953
|
-
/* @__PURE__ */
|
|
1077
|
+
/* @__PURE__ */ jsxs5("span", { className: "grid grid-cols-[1fr_auto] items-center gap-2", children: [
|
|
1078
|
+
/* @__PURE__ */ jsx6(
|
|
954
1079
|
ProgressBar_default,
|
|
955
1080
|
{
|
|
956
1081
|
size: "small",
|
|
@@ -959,7 +1084,7 @@ var CardProgress = forwardRef(
|
|
|
959
1084
|
"data-testid": "progress-bar"
|
|
960
1085
|
}
|
|
961
1086
|
),
|
|
962
|
-
/* @__PURE__ */
|
|
1087
|
+
/* @__PURE__ */ jsxs5(
|
|
963
1088
|
Text_default,
|
|
964
1089
|
{
|
|
965
1090
|
size: "xs",
|
|
@@ -975,9 +1100,9 @@ var CardProgress = forwardRef(
|
|
|
975
1100
|
)
|
|
976
1101
|
] })
|
|
977
1102
|
] }),
|
|
978
|
-
vertical: /* @__PURE__ */
|
|
1103
|
+
vertical: /* @__PURE__ */ jsx6("p", { className: "text-sm text-text-800", children: subhead })
|
|
979
1104
|
};
|
|
980
|
-
return /* @__PURE__ */
|
|
1105
|
+
return /* @__PURE__ */ jsxs5(
|
|
981
1106
|
CardBase,
|
|
982
1107
|
{
|
|
983
1108
|
ref,
|
|
@@ -988,7 +1113,7 @@ var CardProgress = forwardRef(
|
|
|
988
1113
|
className: cn(isHorizontal ? "h-20" : "", className),
|
|
989
1114
|
...props,
|
|
990
1115
|
children: [
|
|
991
|
-
/* @__PURE__ */
|
|
1116
|
+
/* @__PURE__ */ jsx6(
|
|
992
1117
|
"div",
|
|
993
1118
|
{
|
|
994
1119
|
className: cn(
|
|
@@ -1001,7 +1126,7 @@ var CardProgress = forwardRef(
|
|
|
1001
1126
|
children: icon
|
|
1002
1127
|
}
|
|
1003
1128
|
),
|
|
1004
|
-
/* @__PURE__ */
|
|
1129
|
+
/* @__PURE__ */ jsxs5(
|
|
1005
1130
|
"div",
|
|
1006
1131
|
{
|
|
1007
1132
|
className: cn(
|
|
@@ -1009,7 +1134,7 @@ var CardProgress = forwardRef(
|
|
|
1009
1134
|
!isHorizontal && "gap-4"
|
|
1010
1135
|
),
|
|
1011
1136
|
children: [
|
|
1012
|
-
/* @__PURE__ */
|
|
1137
|
+
/* @__PURE__ */ jsx6(Text_default, { size: "sm", weight: "bold", className: "text-text-950 truncate", children: header }),
|
|
1013
1138
|
contentComponent[direction]
|
|
1014
1139
|
]
|
|
1015
1140
|
}
|
|
@@ -1029,7 +1154,7 @@ var CardTopic = forwardRef(
|
|
|
1029
1154
|
className = "",
|
|
1030
1155
|
...props
|
|
1031
1156
|
}, ref) => {
|
|
1032
|
-
return /* @__PURE__ */
|
|
1157
|
+
return /* @__PURE__ */ jsxs5(
|
|
1033
1158
|
CardBase,
|
|
1034
1159
|
{
|
|
1035
1160
|
ref,
|
|
@@ -1040,13 +1165,13 @@ var CardTopic = forwardRef(
|
|
|
1040
1165
|
className: cn("justify-center gap-2 py-2 px-4", className),
|
|
1041
1166
|
...props,
|
|
1042
1167
|
children: [
|
|
1043
|
-
subHead && /* @__PURE__ */
|
|
1044
|
-
/* @__PURE__ */
|
|
1045
|
-
index < subHead.length - 1 && /* @__PURE__ */
|
|
1168
|
+
subHead && /* @__PURE__ */ jsx6("span", { className: "text-text-600 text-2xs flex flex-row gap-1", children: subHead.map((text, index) => /* @__PURE__ */ jsxs5(Fragment2, { children: [
|
|
1169
|
+
/* @__PURE__ */ jsx6("p", { children: text }),
|
|
1170
|
+
index < subHead.length - 1 && /* @__PURE__ */ jsx6("p", { children: "\u2022" })
|
|
1046
1171
|
] }, `${text} - ${index}`)) }),
|
|
1047
|
-
/* @__PURE__ */
|
|
1048
|
-
/* @__PURE__ */
|
|
1049
|
-
/* @__PURE__ */
|
|
1172
|
+
/* @__PURE__ */ jsx6("p", { className: "text-sm text-text-950 font-bold truncate", children: header }),
|
|
1173
|
+
/* @__PURE__ */ jsxs5("span", { className: "grid grid-cols-[1fr_auto] items-center gap-2", children: [
|
|
1174
|
+
/* @__PURE__ */ jsx6(
|
|
1050
1175
|
ProgressBar_default,
|
|
1051
1176
|
{
|
|
1052
1177
|
size: "small",
|
|
@@ -1055,7 +1180,7 @@ var CardTopic = forwardRef(
|
|
|
1055
1180
|
"data-testid": "progress-bar"
|
|
1056
1181
|
}
|
|
1057
1182
|
),
|
|
1058
|
-
showPercentage && /* @__PURE__ */
|
|
1183
|
+
showPercentage && /* @__PURE__ */ jsxs5(
|
|
1059
1184
|
Text_default,
|
|
1060
1185
|
{
|
|
1061
1186
|
size: "xs",
|
|
@@ -1089,7 +1214,7 @@ var CardPerformance = forwardRef(
|
|
|
1089
1214
|
...props
|
|
1090
1215
|
}, ref) => {
|
|
1091
1216
|
const hasProgress = progress !== void 0;
|
|
1092
|
-
return /* @__PURE__ */
|
|
1217
|
+
return /* @__PURE__ */ jsxs5(
|
|
1093
1218
|
CardBase,
|
|
1094
1219
|
{
|
|
1095
1220
|
ref,
|
|
@@ -1103,10 +1228,10 @@ var CardPerformance = forwardRef(
|
|
|
1103
1228
|
onClick: () => actionVariant == "caret" && onClickButton?.(valueButton),
|
|
1104
1229
|
...props,
|
|
1105
1230
|
children: [
|
|
1106
|
-
/* @__PURE__ */
|
|
1107
|
-
/* @__PURE__ */
|
|
1108
|
-
/* @__PURE__ */
|
|
1109
|
-
actionVariant === "button" && /* @__PURE__ */
|
|
1231
|
+
/* @__PURE__ */ jsxs5("div", { className: "w-full flex flex-col justify-between gap-2", children: [
|
|
1232
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex flex-row justify-between items-center gap-2", children: [
|
|
1233
|
+
/* @__PURE__ */ jsx6("p", { className: "text-lg font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
1234
|
+
actionVariant === "button" && /* @__PURE__ */ jsx6(
|
|
1110
1235
|
Button_default,
|
|
1111
1236
|
{
|
|
1112
1237
|
variant: "outline",
|
|
@@ -1117,16 +1242,16 @@ var CardPerformance = forwardRef(
|
|
|
1117
1242
|
}
|
|
1118
1243
|
)
|
|
1119
1244
|
] }),
|
|
1120
|
-
/* @__PURE__ */
|
|
1245
|
+
/* @__PURE__ */ jsx6("div", { className: "w-full", children: hasProgress ? /* @__PURE__ */ jsx6(
|
|
1121
1246
|
ProgressBar_default,
|
|
1122
1247
|
{
|
|
1123
1248
|
value: progress,
|
|
1124
1249
|
label: `${progress}% ${labelProgress}`,
|
|
1125
1250
|
variant: progressVariant
|
|
1126
1251
|
}
|
|
1127
|
-
) : /* @__PURE__ */
|
|
1252
|
+
) : /* @__PURE__ */ jsx6("p", { className: "text-xs text-text-600 truncate", children: description }) })
|
|
1128
1253
|
] }),
|
|
1129
|
-
actionVariant == "caret" && /* @__PURE__ */
|
|
1254
|
+
actionVariant == "caret" && /* @__PURE__ */ jsx6(
|
|
1130
1255
|
CaretRight,
|
|
1131
1256
|
{
|
|
1132
1257
|
className: "size-4.5 text-text-800 cursor-pointer",
|
|
@@ -1150,7 +1275,7 @@ var CardResults = forwardRef(
|
|
|
1150
1275
|
...props
|
|
1151
1276
|
}, ref) => {
|
|
1152
1277
|
const isRow = direction == "row";
|
|
1153
|
-
return /* @__PURE__ */
|
|
1278
|
+
return /* @__PURE__ */ jsxs5(
|
|
1154
1279
|
CardBase,
|
|
1155
1280
|
{
|
|
1156
1281
|
ref,
|
|
@@ -1160,7 +1285,7 @@ var CardResults = forwardRef(
|
|
|
1160
1285
|
className: cn("items-center cursor-pointer pr-4", className),
|
|
1161
1286
|
...props,
|
|
1162
1287
|
children: [
|
|
1163
|
-
/* @__PURE__ */
|
|
1288
|
+
/* @__PURE__ */ jsx6(
|
|
1164
1289
|
"div",
|
|
1165
1290
|
{
|
|
1166
1291
|
className: cn(
|
|
@@ -1169,10 +1294,10 @@ var CardResults = forwardRef(
|
|
|
1169
1294
|
style: {
|
|
1170
1295
|
backgroundColor: color
|
|
1171
1296
|
},
|
|
1172
|
-
children: icon
|
|
1297
|
+
children: /* @__PURE__ */ jsx6(IconRender_default, { iconName: icon, color: "currentColor", size: 20 })
|
|
1173
1298
|
}
|
|
1174
1299
|
),
|
|
1175
|
-
/* @__PURE__ */
|
|
1300
|
+
/* @__PURE__ */ jsxs5(
|
|
1176
1301
|
"div",
|
|
1177
1302
|
{
|
|
1178
1303
|
className: cn(
|
|
@@ -1180,28 +1305,28 @@ var CardResults = forwardRef(
|
|
|
1180
1305
|
isRow ? "flex-row items-center gap-2" : "flex-col"
|
|
1181
1306
|
),
|
|
1182
1307
|
children: [
|
|
1183
|
-
/* @__PURE__ */
|
|
1184
|
-
/* @__PURE__ */
|
|
1185
|
-
/* @__PURE__ */
|
|
1308
|
+
/* @__PURE__ */ jsx6("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
1309
|
+
/* @__PURE__ */ jsxs5("span", { className: "flex flex-row gap-1 items-center", children: [
|
|
1310
|
+
/* @__PURE__ */ jsxs5(
|
|
1186
1311
|
Badge_default,
|
|
1187
1312
|
{
|
|
1188
1313
|
action: "success",
|
|
1189
1314
|
variant: "solid",
|
|
1190
1315
|
size: "large",
|
|
1191
|
-
iconLeft: /* @__PURE__ */
|
|
1316
|
+
iconLeft: /* @__PURE__ */ jsx6(CheckCircle, {}),
|
|
1192
1317
|
children: [
|
|
1193
1318
|
correct_answers,
|
|
1194
1319
|
" Corretas"
|
|
1195
1320
|
]
|
|
1196
1321
|
}
|
|
1197
1322
|
),
|
|
1198
|
-
/* @__PURE__ */
|
|
1323
|
+
/* @__PURE__ */ jsxs5(
|
|
1199
1324
|
Badge_default,
|
|
1200
1325
|
{
|
|
1201
1326
|
action: "error",
|
|
1202
1327
|
variant: "solid",
|
|
1203
1328
|
size: "large",
|
|
1204
|
-
iconLeft: /* @__PURE__ */
|
|
1329
|
+
iconLeft: /* @__PURE__ */ jsx6(XCircle, {}),
|
|
1205
1330
|
children: [
|
|
1206
1331
|
incorrect_answers,
|
|
1207
1332
|
" Incorretas"
|
|
@@ -1212,7 +1337,7 @@ var CardResults = forwardRef(
|
|
|
1212
1337
|
]
|
|
1213
1338
|
}
|
|
1214
1339
|
),
|
|
1215
|
-
/* @__PURE__ */
|
|
1340
|
+
/* @__PURE__ */ jsx6(CaretRight, { className: "min-w-6 min-h-6 text-text-800" })
|
|
1216
1341
|
]
|
|
1217
1342
|
}
|
|
1218
1343
|
);
|
|
@@ -1232,7 +1357,7 @@ var CardStatus = forwardRef(
|
|
|
1232
1357
|
return "Em branco";
|
|
1233
1358
|
}
|
|
1234
1359
|
};
|
|
1235
|
-
return /* @__PURE__ */
|
|
1360
|
+
return /* @__PURE__ */ jsx6(
|
|
1236
1361
|
CardBase,
|
|
1237
1362
|
{
|
|
1238
1363
|
ref,
|
|
@@ -1241,22 +1366,22 @@ var CardStatus = forwardRef(
|
|
|
1241
1366
|
minHeight: "medium",
|
|
1242
1367
|
className: cn("items-center cursor-pointer", className),
|
|
1243
1368
|
...props,
|
|
1244
|
-
children: /* @__PURE__ */
|
|
1245
|
-
/* @__PURE__ */
|
|
1246
|
-
/* @__PURE__ */
|
|
1247
|
-
status && /* @__PURE__ */
|
|
1369
|
+
children: /* @__PURE__ */ jsxs5("div", { className: "flex justify-between w-full h-full flex-row items-center gap-2", children: [
|
|
1370
|
+
/* @__PURE__ */ jsx6("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
1371
|
+
/* @__PURE__ */ jsxs5("span", { className: "flex flex-row gap-1 items-center flex-shrink-0", children: [
|
|
1372
|
+
status && /* @__PURE__ */ jsx6(
|
|
1248
1373
|
Badge_default,
|
|
1249
1374
|
{
|
|
1250
1375
|
action: status == "correct" ? "success" : "error",
|
|
1251
1376
|
variant: "solid",
|
|
1252
1377
|
size: "medium",
|
|
1253
|
-
iconLeft: status == "correct" ? /* @__PURE__ */
|
|
1378
|
+
iconLeft: status == "correct" ? /* @__PURE__ */ jsx6(CheckCircle, {}) : /* @__PURE__ */ jsx6(XCircle, {}),
|
|
1254
1379
|
children: getLabelBadge(status)
|
|
1255
1380
|
}
|
|
1256
1381
|
),
|
|
1257
|
-
label && /* @__PURE__ */
|
|
1382
|
+
label && /* @__PURE__ */ jsx6("p", { className: "text-sm text-text-800", children: label })
|
|
1258
1383
|
] }),
|
|
1259
|
-
/* @__PURE__ */
|
|
1384
|
+
/* @__PURE__ */ jsx6(CaretRight, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer flex-shrink-0 ml-2" })
|
|
1260
1385
|
] })
|
|
1261
1386
|
}
|
|
1262
1387
|
);
|
|
@@ -1264,7 +1389,7 @@ var CardStatus = forwardRef(
|
|
|
1264
1389
|
);
|
|
1265
1390
|
var CardSettings = forwardRef(
|
|
1266
1391
|
({ header, className, icon, ...props }, ref) => {
|
|
1267
|
-
return /* @__PURE__ */
|
|
1392
|
+
return /* @__PURE__ */ jsxs5(
|
|
1268
1393
|
CardBase,
|
|
1269
1394
|
{
|
|
1270
1395
|
ref,
|
|
@@ -1277,9 +1402,9 @@ var CardSettings = forwardRef(
|
|
|
1277
1402
|
),
|
|
1278
1403
|
...props,
|
|
1279
1404
|
children: [
|
|
1280
|
-
/* @__PURE__ */
|
|
1281
|
-
/* @__PURE__ */
|
|
1282
|
-
/* @__PURE__ */
|
|
1405
|
+
/* @__PURE__ */ jsx6("span", { className: "[&>svg]:size-6", children: icon }),
|
|
1406
|
+
/* @__PURE__ */ jsx6("p", { className: "w-full text-sm truncate", children: header }),
|
|
1407
|
+
/* @__PURE__ */ jsx6(CaretRight, { size: 24, className: "cursor-pointer" })
|
|
1283
1408
|
]
|
|
1284
1409
|
}
|
|
1285
1410
|
);
|
|
@@ -1287,7 +1412,7 @@ var CardSettings = forwardRef(
|
|
|
1287
1412
|
);
|
|
1288
1413
|
var CardSupport = forwardRef(
|
|
1289
1414
|
({ header, className, direction = "col", children, ...props }, ref) => {
|
|
1290
|
-
return /* @__PURE__ */
|
|
1415
|
+
return /* @__PURE__ */ jsxs5(
|
|
1291
1416
|
CardBase,
|
|
1292
1417
|
{
|
|
1293
1418
|
ref,
|
|
@@ -1300,7 +1425,7 @@ var CardSupport = forwardRef(
|
|
|
1300
1425
|
),
|
|
1301
1426
|
...props,
|
|
1302
1427
|
children: [
|
|
1303
|
-
/* @__PURE__ */
|
|
1428
|
+
/* @__PURE__ */ jsxs5(
|
|
1304
1429
|
"div",
|
|
1305
1430
|
{
|
|
1306
1431
|
className: cn(
|
|
@@ -1308,12 +1433,12 @@ var CardSupport = forwardRef(
|
|
|
1308
1433
|
direction == "col" ? "flex-col" : "flex-row items-center"
|
|
1309
1434
|
),
|
|
1310
1435
|
children: [
|
|
1311
|
-
/* @__PURE__ */
|
|
1312
|
-
/* @__PURE__ */
|
|
1436
|
+
/* @__PURE__ */ jsx6("span", { className: "w-full min-w-0", children: /* @__PURE__ */ jsx6("p", { className: "text-sm text-text-950 font-bold truncate", children: header }) }),
|
|
1437
|
+
/* @__PURE__ */ jsx6("span", { className: "flex flex-row gap-1", children })
|
|
1313
1438
|
]
|
|
1314
1439
|
}
|
|
1315
1440
|
),
|
|
1316
|
-
/* @__PURE__ */
|
|
1441
|
+
/* @__PURE__ */ jsx6(CaretRight, { className: "text-text-800 cursor-pointer", size: 24 })
|
|
1317
1442
|
]
|
|
1318
1443
|
}
|
|
1319
1444
|
);
|
|
@@ -1333,7 +1458,7 @@ var CardForum = forwardRef(
|
|
|
1333
1458
|
hour,
|
|
1334
1459
|
...props
|
|
1335
1460
|
}, ref) => {
|
|
1336
|
-
return /* @__PURE__ */
|
|
1461
|
+
return /* @__PURE__ */ jsxs5(
|
|
1337
1462
|
CardBase,
|
|
1338
1463
|
{
|
|
1339
1464
|
ref,
|
|
@@ -1344,7 +1469,7 @@ var CardForum = forwardRef(
|
|
|
1344
1469
|
className: cn("w-auto h-auto gap-3", className),
|
|
1345
1470
|
...props,
|
|
1346
1471
|
children: [
|
|
1347
|
-
/* @__PURE__ */
|
|
1472
|
+
/* @__PURE__ */ jsx6(
|
|
1348
1473
|
"button",
|
|
1349
1474
|
{
|
|
1350
1475
|
type: "button",
|
|
@@ -1353,18 +1478,18 @@ var CardForum = forwardRef(
|
|
|
1353
1478
|
className: "min-w-8 h-8 rounded-full bg-background-950"
|
|
1354
1479
|
}
|
|
1355
1480
|
),
|
|
1356
|
-
/* @__PURE__ */
|
|
1357
|
-
/* @__PURE__ */
|
|
1358
|
-
/* @__PURE__ */
|
|
1359
|
-
/* @__PURE__ */
|
|
1481
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
|
|
1482
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex flex-row gap-1 items-center flex-wrap", children: [
|
|
1483
|
+
/* @__PURE__ */ jsx6("p", { className: "text-xs font-semibold text-primary-700 truncate", children: title }),
|
|
1484
|
+
/* @__PURE__ */ jsxs5("p", { className: "text-xs text-text-600", children: [
|
|
1360
1485
|
"\u2022 ",
|
|
1361
1486
|
date,
|
|
1362
1487
|
" \u2022 ",
|
|
1363
1488
|
hour
|
|
1364
1489
|
] })
|
|
1365
1490
|
] }),
|
|
1366
|
-
/* @__PURE__ */
|
|
1367
|
-
/* @__PURE__ */
|
|
1491
|
+
/* @__PURE__ */ jsx6("p", { className: "text-text-950 text-sm line-clamp-2 truncate", children: content }),
|
|
1492
|
+
/* @__PURE__ */ jsxs5(
|
|
1368
1493
|
"button",
|
|
1369
1494
|
{
|
|
1370
1495
|
type: "button",
|
|
@@ -1372,8 +1497,8 @@ var CardForum = forwardRef(
|
|
|
1372
1497
|
onClick: () => onClickComments?.(valueComments),
|
|
1373
1498
|
className: "text-text-600 flex flex-row gap-2 items-center",
|
|
1374
1499
|
children: [
|
|
1375
|
-
/* @__PURE__ */
|
|
1376
|
-
/* @__PURE__ */
|
|
1500
|
+
/* @__PURE__ */ jsx6(ChatCircleText, { "aria-hidden": "true", size: 16 }),
|
|
1501
|
+
/* @__PURE__ */ jsxs5("p", { className: "text-xs", children: [
|
|
1377
1502
|
comments,
|
|
1378
1503
|
" respostas"
|
|
1379
1504
|
] })
|
|
@@ -1472,14 +1597,14 @@ var CardAudio = forwardRef(
|
|
|
1472
1597
|
};
|
|
1473
1598
|
const getVolumeIcon = () => {
|
|
1474
1599
|
if (volume === 0) {
|
|
1475
|
-
return /* @__PURE__ */
|
|
1600
|
+
return /* @__PURE__ */ jsx6(SpeakerSimpleX, {});
|
|
1476
1601
|
}
|
|
1477
1602
|
if (volume < 0.5) {
|
|
1478
|
-
return /* @__PURE__ */
|
|
1603
|
+
return /* @__PURE__ */ jsx6(SpeakerLow, {});
|
|
1479
1604
|
}
|
|
1480
|
-
return /* @__PURE__ */
|
|
1605
|
+
return /* @__PURE__ */ jsx6(SpeakerHigh, {});
|
|
1481
1606
|
};
|
|
1482
|
-
return /* @__PURE__ */
|
|
1607
|
+
return /* @__PURE__ */ jsxs5(
|
|
1483
1608
|
CardBase,
|
|
1484
1609
|
{
|
|
1485
1610
|
ref,
|
|
@@ -1489,7 +1614,7 @@ var CardAudio = forwardRef(
|
|
|
1489
1614
|
className: cn("w-auto h-14 items-center gap-2", className),
|
|
1490
1615
|
...props,
|
|
1491
1616
|
children: [
|
|
1492
|
-
/* @__PURE__ */
|
|
1617
|
+
/* @__PURE__ */ jsx6(
|
|
1493
1618
|
"audio",
|
|
1494
1619
|
{
|
|
1495
1620
|
ref: audioRef,
|
|
@@ -1501,7 +1626,7 @@ var CardAudio = forwardRef(
|
|
|
1501
1626
|
onEnded: handleEnded,
|
|
1502
1627
|
"data-testid": "audio-element",
|
|
1503
1628
|
"aria-label": title,
|
|
1504
|
-
children: tracks ? tracks.map((track) => /* @__PURE__ */
|
|
1629
|
+
children: tracks ? tracks.map((track) => /* @__PURE__ */ jsx6(
|
|
1505
1630
|
"track",
|
|
1506
1631
|
{
|
|
1507
1632
|
kind: track.kind,
|
|
@@ -1511,7 +1636,7 @@ var CardAudio = forwardRef(
|
|
|
1511
1636
|
default: track.default
|
|
1512
1637
|
},
|
|
1513
1638
|
track.src
|
|
1514
|
-
)) : /* @__PURE__ */
|
|
1639
|
+
)) : /* @__PURE__ */ jsx6(
|
|
1515
1640
|
"track",
|
|
1516
1641
|
{
|
|
1517
1642
|
kind: "captions",
|
|
@@ -1522,7 +1647,7 @@ var CardAudio = forwardRef(
|
|
|
1522
1647
|
)
|
|
1523
1648
|
}
|
|
1524
1649
|
),
|
|
1525
|
-
/* @__PURE__ */
|
|
1650
|
+
/* @__PURE__ */ jsx6(
|
|
1526
1651
|
"button",
|
|
1527
1652
|
{
|
|
1528
1653
|
type: "button",
|
|
@@ -1530,14 +1655,14 @@ var CardAudio = forwardRef(
|
|
|
1530
1655
|
disabled: !src,
|
|
1531
1656
|
className: "cursor-pointer text-text-950 hover:text-primary-600 disabled:text-text-400 disabled:cursor-not-allowed",
|
|
1532
1657
|
"aria-label": isPlaying ? "Pausar" : "Reproduzir",
|
|
1533
|
-
children: isPlaying ? /* @__PURE__ */
|
|
1534
|
-
/* @__PURE__ */
|
|
1535
|
-
/* @__PURE__ */
|
|
1536
|
-
] }) }) : /* @__PURE__ */
|
|
1658
|
+
children: isPlaying ? /* @__PURE__ */ jsx6("div", { className: "w-6 h-6 flex items-center justify-center", children: /* @__PURE__ */ jsxs5("div", { className: "flex gap-0.5", children: [
|
|
1659
|
+
/* @__PURE__ */ jsx6("div", { className: "w-1 h-4 bg-current rounded-sm" }),
|
|
1660
|
+
/* @__PURE__ */ jsx6("div", { className: "w-1 h-4 bg-current rounded-sm" })
|
|
1661
|
+
] }) }) : /* @__PURE__ */ jsx6(Play, { size: 24 })
|
|
1537
1662
|
}
|
|
1538
1663
|
),
|
|
1539
|
-
/* @__PURE__ */
|
|
1540
|
-
/* @__PURE__ */
|
|
1664
|
+
/* @__PURE__ */ jsx6("p", { className: "text-text-800 text-sm font-medium min-w-[2.5rem]", children: formatTime(currentTime) }),
|
|
1665
|
+
/* @__PURE__ */ jsx6("div", { className: "flex-1 relative", "data-testid": "progress-bar", children: /* @__PURE__ */ jsx6(
|
|
1541
1666
|
"button",
|
|
1542
1667
|
{
|
|
1543
1668
|
type: "button",
|
|
@@ -1552,7 +1677,7 @@ var CardAudio = forwardRef(
|
|
|
1552
1677
|
}
|
|
1553
1678
|
},
|
|
1554
1679
|
"aria-label": "Barra de progresso do \xE1udio",
|
|
1555
|
-
children: /* @__PURE__ */
|
|
1680
|
+
children: /* @__PURE__ */ jsx6(
|
|
1556
1681
|
"div",
|
|
1557
1682
|
{
|
|
1558
1683
|
className: "h-full bg-primary-600 rounded-full transition-all duration-100",
|
|
@@ -1563,19 +1688,19 @@ var CardAudio = forwardRef(
|
|
|
1563
1688
|
)
|
|
1564
1689
|
}
|
|
1565
1690
|
) }),
|
|
1566
|
-
/* @__PURE__ */
|
|
1567
|
-
/* @__PURE__ */
|
|
1568
|
-
/* @__PURE__ */
|
|
1691
|
+
/* @__PURE__ */ jsx6("p", { className: "text-text-800 text-sm font-medium min-w-[2.5rem]", children: formatTime(duration) }),
|
|
1692
|
+
/* @__PURE__ */ jsxs5("div", { className: "relative", children: [
|
|
1693
|
+
/* @__PURE__ */ jsx6(
|
|
1569
1694
|
"button",
|
|
1570
1695
|
{
|
|
1571
1696
|
type: "button",
|
|
1572
1697
|
onClick: toggleVolumeControl,
|
|
1573
1698
|
className: "cursor-pointer text-text-950 hover:text-primary-600",
|
|
1574
1699
|
"aria-label": "Controle de volume",
|
|
1575
|
-
children: /* @__PURE__ */
|
|
1700
|
+
children: /* @__PURE__ */ jsx6("div", { className: "w-6 h-6 flex items-center justify-center", children: getVolumeIcon() })
|
|
1576
1701
|
}
|
|
1577
1702
|
),
|
|
1578
|
-
showVolumeControl && /* @__PURE__ */
|
|
1703
|
+
showVolumeControl && /* @__PURE__ */ jsx6(
|
|
1579
1704
|
"button",
|
|
1580
1705
|
{
|
|
1581
1706
|
type: "button",
|
|
@@ -1585,7 +1710,7 @@ var CardAudio = forwardRef(
|
|
|
1585
1710
|
setShowVolumeControl(false);
|
|
1586
1711
|
}
|
|
1587
1712
|
},
|
|
1588
|
-
children: /* @__PURE__ */
|
|
1713
|
+
children: /* @__PURE__ */ jsx6(
|
|
1589
1714
|
"input",
|
|
1590
1715
|
{
|
|
1591
1716
|
type: "range",
|
|
@@ -1626,22 +1751,22 @@ var CardAudio = forwardRef(
|
|
|
1626
1751
|
}
|
|
1627
1752
|
)
|
|
1628
1753
|
] }),
|
|
1629
|
-
/* @__PURE__ */
|
|
1630
|
-
/* @__PURE__ */
|
|
1754
|
+
/* @__PURE__ */ jsxs5("div", { className: "relative", children: [
|
|
1755
|
+
/* @__PURE__ */ jsx6(
|
|
1631
1756
|
"button",
|
|
1632
1757
|
{
|
|
1633
1758
|
type: "button",
|
|
1634
1759
|
onClick: toggleSpeedMenu,
|
|
1635
1760
|
className: "cursor-pointer text-text-950 hover:text-primary-600",
|
|
1636
1761
|
"aria-label": "Op\xE7\xF5es de velocidade",
|
|
1637
|
-
children: /* @__PURE__ */
|
|
1762
|
+
children: /* @__PURE__ */ jsx6(DotsThreeVertical, { size: 24 })
|
|
1638
1763
|
}
|
|
1639
1764
|
),
|
|
1640
|
-
showSpeedMenu && /* @__PURE__ */
|
|
1765
|
+
showSpeedMenu && /* @__PURE__ */ jsx6("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__ */ jsx6("div", { className: "flex flex-col gap-1", children: [
|
|
1641
1766
|
{ speed: 1, label: "1x" },
|
|
1642
1767
|
{ speed: 1.5, label: "1.5x" },
|
|
1643
1768
|
{ speed: 2, label: "2x" }
|
|
1644
|
-
].map(({ speed, label }) => /* @__PURE__ */
|
|
1769
|
+
].map(({ speed, label }) => /* @__PURE__ */ jsx6(
|
|
1645
1770
|
"button",
|
|
1646
1771
|
{
|
|
1647
1772
|
type: "button",
|
|
@@ -1669,7 +1794,7 @@ var SIMULADO_BACKGROUND_CLASSES = {
|
|
|
1669
1794
|
var CardSimulado = forwardRef(
|
|
1670
1795
|
({ title, duration, info, backgroundColor, className, ...props }, ref) => {
|
|
1671
1796
|
const backgroundClass = SIMULADO_BACKGROUND_CLASSES[backgroundColor];
|
|
1672
|
-
return /* @__PURE__ */
|
|
1797
|
+
return /* @__PURE__ */ jsx6(
|
|
1673
1798
|
CardBase,
|
|
1674
1799
|
{
|
|
1675
1800
|
ref,
|
|
@@ -1682,18 +1807,18 @@ var CardSimulado = forwardRef(
|
|
|
1682
1807
|
className
|
|
1683
1808
|
),
|
|
1684
1809
|
...props,
|
|
1685
|
-
children: /* @__PURE__ */
|
|
1686
|
-
/* @__PURE__ */
|
|
1687
|
-
/* @__PURE__ */
|
|
1688
|
-
/* @__PURE__ */
|
|
1689
|
-
duration && /* @__PURE__ */
|
|
1690
|
-
/* @__PURE__ */
|
|
1691
|
-
/* @__PURE__ */
|
|
1810
|
+
children: /* @__PURE__ */ jsxs5("div", { className: "flex justify-between items-center w-full gap-4", children: [
|
|
1811
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
1812
|
+
/* @__PURE__ */ jsx6(Text_default, { size: "lg", weight: "bold", className: "text-text-950 truncate", children: title }),
|
|
1813
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-4 text-text-700", children: [
|
|
1814
|
+
duration && /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-1", children: [
|
|
1815
|
+
/* @__PURE__ */ jsx6(Clock, { size: 16, className: "flex-shrink-0" }),
|
|
1816
|
+
/* @__PURE__ */ jsx6(Text_default, { size: "sm", children: duration })
|
|
1692
1817
|
] }),
|
|
1693
|
-
/* @__PURE__ */
|
|
1818
|
+
/* @__PURE__ */ jsx6(Text_default, { size: "sm", className: "truncate", children: info })
|
|
1694
1819
|
] })
|
|
1695
1820
|
] }),
|
|
1696
|
-
/* @__PURE__ */
|
|
1821
|
+
/* @__PURE__ */ jsx6(
|
|
1697
1822
|
CaretRight,
|
|
1698
1823
|
{
|
|
1699
1824
|
size: 24,
|
|
@@ -1738,7 +1863,7 @@ var CardTest = forwardRef(
|
|
|
1738
1863
|
const interactiveClasses = isSelectable ? "cursor-pointer focus:outline-none focus:ring-2 focus:ring-primary-950 focus:ring-offset-2" : "";
|
|
1739
1864
|
const selectedClasses = selected ? "ring-2 ring-primary-950 ring-offset-2" : "";
|
|
1740
1865
|
if (isSelectable) {
|
|
1741
|
-
return /* @__PURE__ */
|
|
1866
|
+
return /* @__PURE__ */ jsx6(
|
|
1742
1867
|
"button",
|
|
1743
1868
|
{
|
|
1744
1869
|
ref,
|
|
@@ -1750,8 +1875,8 @@ var CardTest = forwardRef(
|
|
|
1750
1875
|
onKeyDown: handleKeyDown,
|
|
1751
1876
|
"aria-pressed": selected,
|
|
1752
1877
|
...props,
|
|
1753
|
-
children: /* @__PURE__ */
|
|
1754
|
-
/* @__PURE__ */
|
|
1878
|
+
children: /* @__PURE__ */ jsxs5("div", { className: "flex flex-col justify-between gap-[27px] flex-grow min-h-[67px] w-full min-w-0", children: [
|
|
1879
|
+
/* @__PURE__ */ jsx6(
|
|
1755
1880
|
Text_default,
|
|
1756
1881
|
{
|
|
1757
1882
|
size: "md",
|
|
@@ -1760,10 +1885,10 @@ var CardTest = forwardRef(
|
|
|
1760
1885
|
children: title
|
|
1761
1886
|
}
|
|
1762
1887
|
),
|
|
1763
|
-
/* @__PURE__ */
|
|
1764
|
-
duration && /* @__PURE__ */
|
|
1765
|
-
/* @__PURE__ */
|
|
1766
|
-
/* @__PURE__ */
|
|
1888
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex flex-row justify-start items-end gap-4 w-full", children: [
|
|
1889
|
+
duration && /* @__PURE__ */ jsxs5("div", { className: "flex flex-row items-center gap-1 flex-shrink-0", children: [
|
|
1890
|
+
/* @__PURE__ */ jsx6(Clock, { size: 16, className: "text-text-700" }),
|
|
1891
|
+
/* @__PURE__ */ jsx6(
|
|
1767
1892
|
Text_default,
|
|
1768
1893
|
{
|
|
1769
1894
|
size: "sm",
|
|
@@ -1772,7 +1897,7 @@ var CardTest = forwardRef(
|
|
|
1772
1897
|
}
|
|
1773
1898
|
)
|
|
1774
1899
|
] }),
|
|
1775
|
-
/* @__PURE__ */
|
|
1900
|
+
/* @__PURE__ */ jsx6(
|
|
1776
1901
|
Text_default,
|
|
1777
1902
|
{
|
|
1778
1903
|
size: "sm",
|
|
@@ -1785,14 +1910,14 @@ var CardTest = forwardRef(
|
|
|
1785
1910
|
}
|
|
1786
1911
|
);
|
|
1787
1912
|
}
|
|
1788
|
-
return /* @__PURE__ */
|
|
1913
|
+
return /* @__PURE__ */ jsx6(
|
|
1789
1914
|
"div",
|
|
1790
1915
|
{
|
|
1791
1916
|
ref,
|
|
1792
1917
|
className: cn(`${baseClasses} ${className}`.trim()),
|
|
1793
1918
|
...props,
|
|
1794
|
-
children: /* @__PURE__ */
|
|
1795
|
-
/* @__PURE__ */
|
|
1919
|
+
children: /* @__PURE__ */ jsxs5("div", { className: "flex flex-col justify-between gap-[27px] flex-grow min-h-[67px] w-full min-w-0", children: [
|
|
1920
|
+
/* @__PURE__ */ jsx6(
|
|
1796
1921
|
Text_default,
|
|
1797
1922
|
{
|
|
1798
1923
|
size: "md",
|
|
@@ -1801,10 +1926,10 @@ var CardTest = forwardRef(
|
|
|
1801
1926
|
children: title
|
|
1802
1927
|
}
|
|
1803
1928
|
),
|
|
1804
|
-
/* @__PURE__ */
|
|
1805
|
-
duration && /* @__PURE__ */
|
|
1806
|
-
/* @__PURE__ */
|
|
1807
|
-
/* @__PURE__ */
|
|
1929
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex flex-row justify-start items-end gap-4 w-full", children: [
|
|
1930
|
+
duration && /* @__PURE__ */ jsxs5("div", { className: "flex flex-row items-center gap-1 flex-shrink-0", children: [
|
|
1931
|
+
/* @__PURE__ */ jsx6(Clock, { size: 16, className: "text-text-700" }),
|
|
1932
|
+
/* @__PURE__ */ jsx6(
|
|
1808
1933
|
Text_default,
|
|
1809
1934
|
{
|
|
1810
1935
|
size: "sm",
|
|
@@ -1813,7 +1938,7 @@ var CardTest = forwardRef(
|
|
|
1813
1938
|
}
|
|
1814
1939
|
)
|
|
1815
1940
|
] }),
|
|
1816
|
-
/* @__PURE__ */
|
|
1941
|
+
/* @__PURE__ */ jsx6(
|
|
1817
1942
|
Text_default,
|
|
1818
1943
|
{
|
|
1819
1944
|
size: "sm",
|
|
@@ -1850,14 +1975,14 @@ var SIMULATION_TYPE_STYLES = {
|
|
|
1850
1975
|
}
|
|
1851
1976
|
};
|
|
1852
1977
|
var CardSimulationHistory = forwardRef(({ data, onSimulationClick, className, ...props }, ref) => {
|
|
1853
|
-
return /* @__PURE__ */
|
|
1978
|
+
return /* @__PURE__ */ jsx6(
|
|
1854
1979
|
"div",
|
|
1855
1980
|
{
|
|
1856
1981
|
ref,
|
|
1857
1982
|
className: cn("w-full max-w-[992px] h-auto", className),
|
|
1858
1983
|
...props,
|
|
1859
|
-
children: /* @__PURE__ */
|
|
1860
|
-
data.map((section, sectionIndex) => /* @__PURE__ */
|
|
1984
|
+
children: /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-0", children: [
|
|
1985
|
+
data.map((section, sectionIndex) => /* @__PURE__ */ jsx6("div", { className: "flex flex-col", children: /* @__PURE__ */ jsxs5(
|
|
1861
1986
|
"div",
|
|
1862
1987
|
{
|
|
1863
1988
|
className: cn(
|
|
@@ -1865,7 +1990,7 @@ var CardSimulationHistory = forwardRef(({ data, onSimulationClick, className, ..
|
|
|
1865
1990
|
sectionIndex === 0 ? "rounded-t-3xl" : ""
|
|
1866
1991
|
),
|
|
1867
1992
|
children: [
|
|
1868
|
-
/* @__PURE__ */
|
|
1993
|
+
/* @__PURE__ */ jsx6(
|
|
1869
1994
|
Text_default,
|
|
1870
1995
|
{
|
|
1871
1996
|
size: "xs",
|
|
@@ -1874,9 +1999,9 @@ var CardSimulationHistory = forwardRef(({ data, onSimulationClick, className, ..
|
|
|
1874
1999
|
children: section.date
|
|
1875
2000
|
}
|
|
1876
2001
|
),
|
|
1877
|
-
/* @__PURE__ */
|
|
2002
|
+
/* @__PURE__ */ jsx6("div", { className: "flex flex-col gap-2 flex-1", children: section.simulations.map((simulation) => {
|
|
1878
2003
|
const typeStyles = SIMULATION_TYPE_STYLES[simulation.type];
|
|
1879
|
-
return /* @__PURE__ */
|
|
2004
|
+
return /* @__PURE__ */ jsx6(
|
|
1880
2005
|
CardBase,
|
|
1881
2006
|
{
|
|
1882
2007
|
layout: "horizontal",
|
|
@@ -1888,9 +2013,9 @@ var CardSimulationHistory = forwardRef(({ data, onSimulationClick, className, ..
|
|
|
1888
2013
|
transition-shadow duration-200 h-auto min-h-[61px]`
|
|
1889
2014
|
),
|
|
1890
2015
|
onClick: () => onSimulationClick?.(simulation),
|
|
1891
|
-
children: /* @__PURE__ */
|
|
1892
|
-
/* @__PURE__ */
|
|
1893
|
-
/* @__PURE__ */
|
|
2016
|
+
children: /* @__PURE__ */ jsxs5("div", { className: "flex justify-between items-center w-full gap-2", children: [
|
|
2017
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex flex-wrap flex-col justify-between sm:flex-row gap-2 flex-1 min-w-0", children: [
|
|
2018
|
+
/* @__PURE__ */ jsx6(
|
|
1894
2019
|
Text_default,
|
|
1895
2020
|
{
|
|
1896
2021
|
size: "lg",
|
|
@@ -1899,8 +2024,8 @@ var CardSimulationHistory = forwardRef(({ data, onSimulationClick, className, ..
|
|
|
1899
2024
|
children: simulation.title
|
|
1900
2025
|
}
|
|
1901
2026
|
),
|
|
1902
|
-
/* @__PURE__ */
|
|
1903
|
-
/* @__PURE__ */
|
|
2027
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-2", children: [
|
|
2028
|
+
/* @__PURE__ */ jsx6(
|
|
1904
2029
|
Badge_default,
|
|
1905
2030
|
{
|
|
1906
2031
|
variant: "examsOutlined",
|
|
@@ -1909,10 +2034,10 @@ var CardSimulationHistory = forwardRef(({ data, onSimulationClick, className, ..
|
|
|
1909
2034
|
children: typeStyles.text
|
|
1910
2035
|
}
|
|
1911
2036
|
),
|
|
1912
|
-
/* @__PURE__ */
|
|
2037
|
+
/* @__PURE__ */ jsx6(Text_default, { size: "sm", className: "text-text-800 truncate", children: simulation.info })
|
|
1913
2038
|
] })
|
|
1914
2039
|
] }),
|
|
1915
|
-
/* @__PURE__ */
|
|
2040
|
+
/* @__PURE__ */ jsx6(
|
|
1916
2041
|
CaretRight,
|
|
1917
2042
|
{
|
|
1918
2043
|
size: 24,
|
|
@@ -1928,7 +2053,7 @@ var CardSimulationHistory = forwardRef(({ data, onSimulationClick, className, ..
|
|
|
1928
2053
|
]
|
|
1929
2054
|
}
|
|
1930
2055
|
) }, section.date)),
|
|
1931
|
-
data.length > 0 && /* @__PURE__ */
|
|
2056
|
+
data.length > 0 && /* @__PURE__ */ jsx6("div", { className: "w-full h-6 bg-white rounded-b-3xl" })
|
|
1932
2057
|
] })
|
|
1933
2058
|
}
|
|
1934
2059
|
);
|