analytica-frontend-lib 1.2.7 → 1.2.8
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/Table/index.d.mts +51 -3
- package/dist/Table/index.d.ts +51 -3
- package/dist/Table/index.js +125 -22
- package/dist/Table/index.js.map +1 -1
- package/dist/Table/index.mjs +129 -22
- package/dist/Table/index.mjs.map +1 -1
- package/dist/index.css +55 -16
- package/dist/index.css.map +1 -1
- package/dist/index.js +118 -86
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +167 -130
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +55 -16
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6630,20 +6630,24 @@ var createNotificationsHook = (apiClient) => {
|
|
|
6630
6630
|
|
|
6631
6631
|
// src/components/Table/Table.tsx
|
|
6632
6632
|
var import_react23 = require("react");
|
|
6633
|
+
var import_phosphor_react16 = require("phosphor-react");
|
|
6633
6634
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
6634
6635
|
var Table = (0, import_react23.forwardRef)(
|
|
6635
6636
|
({ variant = "default", className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
6636
6637
|
"div",
|
|
6637
6638
|
{
|
|
6638
6639
|
className: cn(
|
|
6639
|
-
"relative w-full overflow-
|
|
6640
|
+
"relative w-full overflow-x-auto",
|
|
6640
6641
|
variant === "default" && "border border-border-200 rounded-xl"
|
|
6641
6642
|
),
|
|
6642
6643
|
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
6643
6644
|
"table",
|
|
6644
6645
|
{
|
|
6645
6646
|
ref,
|
|
6646
|
-
className: cn(
|
|
6647
|
+
className: cn(
|
|
6648
|
+
"analytica-table w-full caption-bottom text-sm border-separate border-spacing-0",
|
|
6649
|
+
className
|
|
6650
|
+
),
|
|
6647
6651
|
...props,
|
|
6648
6652
|
children: [
|
|
6649
6653
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("caption", { className: "sr-only", children: "My Table" }),
|
|
@@ -6665,15 +6669,11 @@ var TableHeader = (0, import_react23.forwardRef)(({ className, ...props }, ref)
|
|
|
6665
6669
|
));
|
|
6666
6670
|
TableHeader.displayName = "TableHeader";
|
|
6667
6671
|
var TableBody = (0, import_react23.forwardRef)(
|
|
6668
|
-
({
|
|
6672
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
6669
6673
|
"tbody",
|
|
6670
6674
|
{
|
|
6671
6675
|
ref,
|
|
6672
|
-
className: cn(
|
|
6673
|
-
"[&_tr:last-child]:border-0",
|
|
6674
|
-
variant === "default" && "border-t border-border-200",
|
|
6675
|
-
className
|
|
6676
|
-
),
|
|
6676
|
+
className: cn("[&_tr:last-child]:border-border-200", className),
|
|
6677
6677
|
...props
|
|
6678
6678
|
}
|
|
6679
6679
|
)
|
|
@@ -6696,7 +6696,7 @@ var TableFooter = (0, import_react23.forwardRef)(
|
|
|
6696
6696
|
TableFooter.displayName = "TableFooter";
|
|
6697
6697
|
var VARIANT_STATES_ROW = {
|
|
6698
6698
|
default: {
|
|
6699
|
-
default: "border
|
|
6699
|
+
default: "border border-border-200",
|
|
6700
6700
|
borderless: ""
|
|
6701
6701
|
},
|
|
6702
6702
|
selected: {
|
|
@@ -6713,7 +6713,13 @@ var VARIANT_STATES_ROW = {
|
|
|
6713
6713
|
}
|
|
6714
6714
|
};
|
|
6715
6715
|
var TableRow = (0, import_react23.forwardRef)(
|
|
6716
|
-
({
|
|
6716
|
+
({
|
|
6717
|
+
variant = "default",
|
|
6718
|
+
state = "default",
|
|
6719
|
+
clickable = false,
|
|
6720
|
+
className,
|
|
6721
|
+
...props
|
|
6722
|
+
}, ref) => {
|
|
6717
6723
|
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
6718
6724
|
"tr",
|
|
6719
6725
|
{
|
|
@@ -6721,6 +6727,7 @@ var TableRow = (0, import_react23.forwardRef)(
|
|
|
6721
6727
|
className: cn(
|
|
6722
6728
|
"transition-colors",
|
|
6723
6729
|
state !== "disabled" ? "hover:bg-muted/50" : "",
|
|
6730
|
+
clickable && state !== "disabled" ? "cursor-pointer" : "",
|
|
6724
6731
|
VARIANT_STATES_ROW[state][variant],
|
|
6725
6732
|
className
|
|
6726
6733
|
),
|
|
@@ -6731,24 +6738,49 @@ var TableRow = (0, import_react23.forwardRef)(
|
|
|
6731
6738
|
}
|
|
6732
6739
|
);
|
|
6733
6740
|
TableRow.displayName = "TableRow";
|
|
6734
|
-
var TableHead = (0, import_react23.forwardRef)(
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
),
|
|
6741
|
+
var TableHead = (0, import_react23.forwardRef)(
|
|
6742
|
+
({
|
|
6743
|
+
className,
|
|
6744
|
+
sortable = true,
|
|
6745
|
+
sortDirection = null,
|
|
6746
|
+
onSort,
|
|
6747
|
+
children,
|
|
6742
6748
|
...props
|
|
6749
|
+
}, ref) => {
|
|
6750
|
+
const handleClick = () => {
|
|
6751
|
+
if (sortable && onSort) {
|
|
6752
|
+
onSort();
|
|
6753
|
+
}
|
|
6754
|
+
};
|
|
6755
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
6756
|
+
"th",
|
|
6757
|
+
{
|
|
6758
|
+
ref,
|
|
6759
|
+
className: cn(
|
|
6760
|
+
"h-10 px-6 py-3.5 text-left align-middle font-bold text-base text-text-800 tracking-[0.2px] leading-none [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] whitespace-nowrap",
|
|
6761
|
+
sortable && "cursor-pointer select-none hover:bg-muted/30",
|
|
6762
|
+
className
|
|
6763
|
+
),
|
|
6764
|
+
onClick: handleClick,
|
|
6765
|
+
...props,
|
|
6766
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
6767
|
+
children,
|
|
6768
|
+
sortable && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex flex-col", children: [
|
|
6769
|
+
sortDirection === "asc" && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_phosphor_react16.CaretUp, { size: 16, weight: "fill", className: "text-text-800" }),
|
|
6770
|
+
sortDirection === "desc" && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_phosphor_react16.CaretDown, { size: 16, weight: "fill", className: "text-text-800" })
|
|
6771
|
+
] })
|
|
6772
|
+
] })
|
|
6773
|
+
}
|
|
6774
|
+
);
|
|
6743
6775
|
}
|
|
6744
|
-
)
|
|
6776
|
+
);
|
|
6745
6777
|
TableHead.displayName = "TableHead";
|
|
6746
6778
|
var TableCell = (0, import_react23.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
6747
6779
|
"td",
|
|
6748
6780
|
{
|
|
6749
6781
|
ref,
|
|
6750
6782
|
className: cn(
|
|
6751
|
-
"p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] text-
|
|
6783
|
+
"p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] text-base font-normal text-text-800 leading-[150%] tracking-normal px-6 py-3.5 whitespace-nowrap",
|
|
6752
6784
|
className
|
|
6753
6785
|
),
|
|
6754
6786
|
...props
|
|
@@ -6772,7 +6804,7 @@ var Table_default = Table;
|
|
|
6772
6804
|
// src/components/Select/Select.tsx
|
|
6773
6805
|
var import_zustand7 = require("zustand");
|
|
6774
6806
|
var import_react24 = require("react");
|
|
6775
|
-
var
|
|
6807
|
+
var import_phosphor_react17 = require("phosphor-react");
|
|
6776
6808
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
6777
6809
|
var VARIANT_CLASSES4 = {
|
|
6778
6810
|
outlined: "border-2 rounded-lg focus:border-primary-950",
|
|
@@ -6957,7 +6989,7 @@ var Select = ({
|
|
|
6957
6989
|
(helperText || errorMessage) && /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "mt-1.5 gap-1.5", children: [
|
|
6958
6990
|
helperText && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { className: "text-sm text-text-500", children: helperText }),
|
|
6959
6991
|
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("p", { className: "flex gap-1 items-center text-sm text-indicator-error", children: [
|
|
6960
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
6992
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_phosphor_react17.WarningCircle, { size: 16 }),
|
|
6961
6993
|
" ",
|
|
6962
6994
|
errorMessage
|
|
6963
6995
|
] })
|
|
@@ -7013,7 +7045,7 @@ var SelectTrigger = (0, import_react24.forwardRef)(
|
|
|
7013
7045
|
children: [
|
|
7014
7046
|
props.children,
|
|
7015
7047
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
7016
|
-
|
|
7048
|
+
import_phosphor_react17.CaretDown,
|
|
7017
7049
|
{
|
|
7018
7050
|
className: cn(
|
|
7019
7051
|
"h-[1em] w-[1em] opacity-50 transition-transform",
|
|
@@ -7104,7 +7136,7 @@ var SelectItem = (0, import_react24.forwardRef)(
|
|
|
7104
7136
|
tabIndex: disabled ? -1 : 0,
|
|
7105
7137
|
...props,
|
|
7106
7138
|
children: [
|
|
7107
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: selectedValue === value && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
7139
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: selectedValue === value && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_phosphor_react17.Check, { className: "" }) }),
|
|
7108
7140
|
children
|
|
7109
7141
|
]
|
|
7110
7142
|
}
|
|
@@ -7117,7 +7149,7 @@ var Select_default = Select;
|
|
|
7117
7149
|
// src/components/Menu/Menu.tsx
|
|
7118
7150
|
var import_zustand8 = require("zustand");
|
|
7119
7151
|
var import_react25 = require("react");
|
|
7120
|
-
var
|
|
7152
|
+
var import_phosphor_react18 = require("phosphor-react");
|
|
7121
7153
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
7122
7154
|
var createMenuStore = (onValueChange) => (0, import_zustand8.create)((set) => ({
|
|
7123
7155
|
value: "",
|
|
@@ -7316,7 +7348,7 @@ var MenuItem = (0, import_react25.forwardRef)(
|
|
|
7316
7348
|
}
|
|
7317
7349
|
),
|
|
7318
7350
|
separator && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
7319
|
-
|
|
7351
|
+
import_phosphor_react18.CaretRight,
|
|
7320
7352
|
{
|
|
7321
7353
|
size: 16,
|
|
7322
7354
|
className: "text-text-600",
|
|
@@ -7383,7 +7415,7 @@ var MenuOverflow = ({
|
|
|
7383
7415
|
className: "absolute left-0 top-1/2 -translate-y-1/2 z-10 flex h-8 w-8 items-center justify-center rounded-full bg-white shadow-md cursor-pointer",
|
|
7384
7416
|
"data-testid": "scroll-left-button",
|
|
7385
7417
|
children: [
|
|
7386
|
-
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
7418
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_phosphor_react18.CaretLeft, { size: 16 }),
|
|
7387
7419
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "sr-only", children: "Scroll left" })
|
|
7388
7420
|
]
|
|
7389
7421
|
}
|
|
@@ -7406,7 +7438,7 @@ var MenuOverflow = ({
|
|
|
7406
7438
|
className: "absolute right-0 top-1/2 -translate-y-1/2 z-10 flex h-8 w-8 items-center justify-center rounded-full bg-white shadow-md cursor-pointer",
|
|
7407
7439
|
"data-testid": "scroll-right-button",
|
|
7408
7440
|
children: [
|
|
7409
|
-
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
7441
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_phosphor_react18.CaretRight, { size: 16 }),
|
|
7410
7442
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "sr-only", children: "Scroll right" })
|
|
7411
7443
|
]
|
|
7412
7444
|
}
|
|
@@ -7428,7 +7460,7 @@ var Menu_default = Menu;
|
|
|
7428
7460
|
|
|
7429
7461
|
// src/components/Card/Card.tsx
|
|
7430
7462
|
var import_react27 = require("react");
|
|
7431
|
-
var
|
|
7463
|
+
var import_phosphor_react19 = require("phosphor-react");
|
|
7432
7464
|
|
|
7433
7465
|
// src/components/IconRender/IconRender.tsx
|
|
7434
7466
|
var import_react26 = require("react");
|
|
@@ -7883,7 +7915,7 @@ var CardPerformance = (0, import_react27.forwardRef)(
|
|
|
7883
7915
|
) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: "text-xs text-text-600 truncate", children: description }) })
|
|
7884
7916
|
] }),
|
|
7885
7917
|
actionVariant == "caret" && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
7886
|
-
|
|
7918
|
+
import_phosphor_react19.CaretRight,
|
|
7887
7919
|
{
|
|
7888
7920
|
className: "size-4.5 text-text-800 cursor-pointer",
|
|
7889
7921
|
"data-testid": "caret-icon"
|
|
@@ -7945,7 +7977,7 @@ var CardResults = (0, import_react27.forwardRef)(
|
|
|
7945
7977
|
action: "success",
|
|
7946
7978
|
variant: "solid",
|
|
7947
7979
|
size: "large",
|
|
7948
|
-
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
7980
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_phosphor_react19.CheckCircle, {}),
|
|
7949
7981
|
children: [
|
|
7950
7982
|
correct_answers,
|
|
7951
7983
|
" Corretas"
|
|
@@ -7958,7 +7990,7 @@ var CardResults = (0, import_react27.forwardRef)(
|
|
|
7958
7990
|
action: "error",
|
|
7959
7991
|
variant: "solid",
|
|
7960
7992
|
size: "large",
|
|
7961
|
-
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
7993
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_phosphor_react19.XCircle, {}),
|
|
7962
7994
|
children: [
|
|
7963
7995
|
incorrect_answers,
|
|
7964
7996
|
" Incorretas"
|
|
@@ -7969,7 +8001,7 @@ var CardResults = (0, import_react27.forwardRef)(
|
|
|
7969
8001
|
]
|
|
7970
8002
|
}
|
|
7971
8003
|
),
|
|
7972
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
8004
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_phosphor_react19.CaretRight, { className: "min-w-6 min-h-6 text-text-800" })
|
|
7973
8005
|
] })
|
|
7974
8006
|
]
|
|
7975
8007
|
}
|
|
@@ -7995,13 +8027,13 @@ var CardStatus = (0, import_react27.forwardRef)(
|
|
|
7995
8027
|
const getIconBadge = (status2) => {
|
|
7996
8028
|
switch (status2) {
|
|
7997
8029
|
case "correct":
|
|
7998
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
8030
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_phosphor_react19.CheckCircle, {});
|
|
7999
8031
|
case "incorrect":
|
|
8000
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
8032
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_phosphor_react19.XCircle, {});
|
|
8001
8033
|
case "pending":
|
|
8002
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
8034
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_phosphor_react19.Clock, {});
|
|
8003
8035
|
default:
|
|
8004
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
8036
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_phosphor_react19.XCircle, {});
|
|
8005
8037
|
}
|
|
8006
8038
|
};
|
|
8007
8039
|
const getActionBadge = (status2) => {
|
|
@@ -8040,7 +8072,7 @@ var CardStatus = (0, import_react27.forwardRef)(
|
|
|
8040
8072
|
),
|
|
8041
8073
|
label && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: "text-sm text-text-800", children: label })
|
|
8042
8074
|
] }),
|
|
8043
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
8075
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_phosphor_react19.CaretRight, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer flex-shrink-0 ml-2" })
|
|
8044
8076
|
] })
|
|
8045
8077
|
}
|
|
8046
8078
|
);
|
|
@@ -8063,7 +8095,7 @@ var CardSettings = (0, import_react27.forwardRef)(
|
|
|
8063
8095
|
children: [
|
|
8064
8096
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "[&>svg]:size-6", children: icon }),
|
|
8065
8097
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: "w-full text-sm truncate", children: header }),
|
|
8066
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
8098
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_phosphor_react19.CaretRight, { size: 24, className: "cursor-pointer" })
|
|
8067
8099
|
]
|
|
8068
8100
|
}
|
|
8069
8101
|
);
|
|
@@ -8097,7 +8129,7 @@ var CardSupport = (0, import_react27.forwardRef)(
|
|
|
8097
8129
|
]
|
|
8098
8130
|
}
|
|
8099
8131
|
),
|
|
8100
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
8132
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_phosphor_react19.CaretRight, { className: "text-text-800 cursor-pointer", size: 24 })
|
|
8101
8133
|
]
|
|
8102
8134
|
}
|
|
8103
8135
|
);
|
|
@@ -8156,7 +8188,7 @@ var CardForum = (0, import_react27.forwardRef)(
|
|
|
8156
8188
|
onClick: () => onClickComments?.(valueComments),
|
|
8157
8189
|
className: "text-text-600 flex flex-row gap-2 items-center",
|
|
8158
8190
|
children: [
|
|
8159
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
8191
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_phosphor_react19.ChatCircleText, { "aria-hidden": "true", size: 16 }),
|
|
8160
8192
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("p", { className: "text-xs", children: [
|
|
8161
8193
|
comments,
|
|
8162
8194
|
" respostas"
|
|
@@ -8260,12 +8292,12 @@ var CardAudio = (0, import_react27.forwardRef)(
|
|
|
8260
8292
|
};
|
|
8261
8293
|
const getVolumeIcon = () => {
|
|
8262
8294
|
if (volume === 0) {
|
|
8263
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
8295
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_phosphor_react19.SpeakerSimpleX, { size: 24 });
|
|
8264
8296
|
}
|
|
8265
8297
|
if (volume < 0.5) {
|
|
8266
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
8298
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_phosphor_react19.SpeakerLow, { size: 24 });
|
|
8267
8299
|
}
|
|
8268
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
8300
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_phosphor_react19.SpeakerHigh, { size: 24 });
|
|
8269
8301
|
};
|
|
8270
8302
|
(0, import_react27.useEffect)(() => {
|
|
8271
8303
|
const handleClickOutside = (event) => {
|
|
@@ -8338,7 +8370,7 @@ var CardAudio = (0, import_react27.forwardRef)(
|
|
|
8338
8370
|
children: isPlaying ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "w-6 h-6 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex gap-0.5", children: [
|
|
8339
8371
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "w-1 h-4 bg-current rounded-sm" }),
|
|
8340
8372
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "w-1 h-4 bg-current rounded-sm" })
|
|
8341
|
-
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
8373
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_phosphor_react19.Play, { size: 24 })
|
|
8342
8374
|
}
|
|
8343
8375
|
),
|
|
8344
8376
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: "text-text-800 text-md font-medium min-w-[2.5rem]", children: formatTime2(currentTime) }),
|
|
@@ -8439,7 +8471,7 @@ var CardAudio = (0, import_react27.forwardRef)(
|
|
|
8439
8471
|
onClick: toggleSpeedMenu,
|
|
8440
8472
|
className: "cursor-pointer text-text-950 hover:text-primary-600",
|
|
8441
8473
|
"aria-label": "Op\xE7\xF5es de velocidade",
|
|
8442
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
8474
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_phosphor_react19.DotsThreeVertical, { size: 24 })
|
|
8443
8475
|
}
|
|
8444
8476
|
),
|
|
8445
8477
|
showSpeedMenu && /* @__PURE__ */ (0, import_jsx_runtime43.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_runtime43.jsx)("div", { className: "flex flex-col gap-1", children: [
|
|
@@ -8492,14 +8524,14 @@ var CardSimulado = (0, import_react27.forwardRef)(
|
|
|
8492
8524
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Text_default, { size: "lg", weight: "bold", className: "text-text-950 truncate", children: title }),
|
|
8493
8525
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex items-center gap-4 text-text-700", children: [
|
|
8494
8526
|
duration && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
8495
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
8527
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_phosphor_react19.Clock, { size: 16, className: "flex-shrink-0" }),
|
|
8496
8528
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Text_default, { size: "sm", children: duration })
|
|
8497
8529
|
] }),
|
|
8498
8530
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Text_default, { size: "sm", className: "truncate", children: info })
|
|
8499
8531
|
] })
|
|
8500
8532
|
] }),
|
|
8501
8533
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
8502
|
-
|
|
8534
|
+
import_phosphor_react19.CaretRight,
|
|
8503
8535
|
{
|
|
8504
8536
|
size: 24,
|
|
8505
8537
|
className: "text-text-800 flex-shrink-0",
|
|
@@ -8567,7 +8599,7 @@ var CardTest = (0, import_react27.forwardRef)(
|
|
|
8567
8599
|
),
|
|
8568
8600
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex flex-row justify-start items-end gap-4 w-full", children: [
|
|
8569
8601
|
duration && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex flex-row items-center gap-1 flex-shrink-0", children: [
|
|
8570
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
8602
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_phosphor_react19.Clock, { size: 16, className: "text-text-700" }),
|
|
8571
8603
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
8572
8604
|
Text_default,
|
|
8573
8605
|
{
|
|
@@ -8608,7 +8640,7 @@ var CardTest = (0, import_react27.forwardRef)(
|
|
|
8608
8640
|
),
|
|
8609
8641
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex flex-row justify-start items-end gap-4 w-full", children: [
|
|
8610
8642
|
duration && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex flex-row items-center gap-1 flex-shrink-0", children: [
|
|
8611
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
8643
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_phosphor_react19.Clock, { size: 16, className: "text-text-700" }),
|
|
8612
8644
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
8613
8645
|
Text_default,
|
|
8614
8646
|
{
|
|
@@ -8718,7 +8750,7 @@ var CardSimulationHistory = (0, import_react27.forwardRef)(({ data, onSimulation
|
|
|
8718
8750
|
] })
|
|
8719
8751
|
] }),
|
|
8720
8752
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
8721
|
-
|
|
8753
|
+
import_phosphor_react19.CaretRight,
|
|
8722
8754
|
{
|
|
8723
8755
|
size: 24,
|
|
8724
8756
|
className: "text-text-800 flex-shrink-0",
|
|
@@ -8740,7 +8772,7 @@ var CardSimulationHistory = (0, import_react27.forwardRef)(({ data, onSimulation
|
|
|
8740
8772
|
});
|
|
8741
8773
|
|
|
8742
8774
|
// src/components/StatisticsCard/StatisticsCard.tsx
|
|
8743
|
-
var
|
|
8775
|
+
var import_phosphor_react20 = require("phosphor-react");
|
|
8744
8776
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
8745
8777
|
var VARIANT_STYLES = {
|
|
8746
8778
|
high: "bg-success-background",
|
|
@@ -8879,7 +8911,7 @@ var StatisticsCard = ({
|
|
|
8879
8911
|
action: "primary",
|
|
8880
8912
|
size: "small",
|
|
8881
8913
|
onClick: onEmptyStateButtonClick,
|
|
8882
|
-
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
8914
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_phosphor_react20.Plus, { size: 16, weight: "bold" }),
|
|
8883
8915
|
children: emptyStateButtonText
|
|
8884
8916
|
}
|
|
8885
8917
|
)
|
|
@@ -8993,11 +9025,11 @@ var NotFound_default = NotFound;
|
|
|
8993
9025
|
// src/components/VideoPlayer/VideoPlayer.tsx
|
|
8994
9026
|
var import_react29 = require("react");
|
|
8995
9027
|
var import_react_dom = require("react-dom");
|
|
8996
|
-
var
|
|
9028
|
+
var import_phosphor_react22 = require("phosphor-react");
|
|
8997
9029
|
|
|
8998
9030
|
// src/components/DownloadButton/DownloadButton.tsx
|
|
8999
9031
|
var import_react28 = require("react");
|
|
9000
|
-
var
|
|
9032
|
+
var import_phosphor_react21 = require("phosphor-react");
|
|
9001
9033
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
9002
9034
|
var getMimeType = (url) => {
|
|
9003
9035
|
const extension = getFileExtension(url);
|
|
@@ -9158,7 +9190,7 @@ var DownloadButton = ({
|
|
|
9158
9190
|
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: cn("flex items-center", className), children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
9159
9191
|
IconButton_default,
|
|
9160
9192
|
{
|
|
9161
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
9193
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_phosphor_react21.DownloadSimple, { size: 24 }),
|
|
9162
9194
|
onClick: handleDownload,
|
|
9163
9195
|
disabled: disabled || isDownloading,
|
|
9164
9196
|
"aria-label": (() => {
|
|
@@ -9221,7 +9253,7 @@ var VolumeControls = ({
|
|
|
9221
9253
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
9222
9254
|
IconButton_default,
|
|
9223
9255
|
{
|
|
9224
|
-
icon: isMuted ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
9256
|
+
icon: isMuted ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_phosphor_react22.SpeakerSlash, { size: iconSize }) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_phosphor_react22.SpeakerHigh, { size: iconSize }),
|
|
9225
9257
|
onClick: onToggleMute,
|
|
9226
9258
|
"aria-label": isMuted ? "Unmute" : "Mute",
|
|
9227
9259
|
className: "!bg-transparent !text-white hover:!bg-white/20"
|
|
@@ -9317,7 +9349,7 @@ var SpeedMenu = ({
|
|
|
9317
9349
|
IconButton_default,
|
|
9318
9350
|
{
|
|
9319
9351
|
ref: buttonRef,
|
|
9320
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
9352
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_phosphor_react22.DotsThreeVertical, { size: iconSize }),
|
|
9321
9353
|
onClick: onToggleMenu,
|
|
9322
9354
|
"aria-label": "Playback speed",
|
|
9323
9355
|
"aria-haspopup": "menu",
|
|
@@ -9924,7 +9956,7 @@ var VideoPlayer = ({
|
|
|
9924
9956
|
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
9925
9957
|
IconButton_default,
|
|
9926
9958
|
{
|
|
9927
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
9959
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_phosphor_react22.Play, { size: 32, weight: "regular", className: "ml-1" }),
|
|
9928
9960
|
onClick: togglePlayPause,
|
|
9929
9961
|
"aria-label": "Play video",
|
|
9930
9962
|
className: "!bg-transparent !text-white !w-auto !h-auto hover:!bg-transparent hover:!text-gray-200"
|
|
@@ -9942,7 +9974,7 @@ var VideoPlayer = ({
|
|
|
9942
9974
|
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
9943
9975
|
IconButton_default,
|
|
9944
9976
|
{
|
|
9945
|
-
icon: isFullscreen ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
9977
|
+
icon: isFullscreen ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_phosphor_react22.ArrowsInSimple, { size: 24 }) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_phosphor_react22.ArrowsOutSimple, { size: 24 }),
|
|
9946
9978
|
onClick: toggleFullscreen,
|
|
9947
9979
|
"aria-label": isFullscreen ? "Exit fullscreen" : "Enter fullscreen",
|
|
9948
9980
|
className: "!bg-transparent !text-white hover:!bg-white/20"
|
|
@@ -9980,7 +10012,7 @@ var VideoPlayer = ({
|
|
|
9980
10012
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
9981
10013
|
IconButton_default,
|
|
9982
10014
|
{
|
|
9983
|
-
icon: isPlaying ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
10015
|
+
icon: isPlaying ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_phosphor_react22.Pause, { size: getIconSize2() }) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_phosphor_react22.Play, { size: getIconSize2() }),
|
|
9984
10016
|
onClick: togglePlayPause,
|
|
9985
10017
|
"aria-label": isPlaying ? "Pause" : "Play",
|
|
9986
10018
|
className: "!bg-transparent !text-white hover:!bg-white/20"
|
|
@@ -10000,7 +10032,7 @@ var VideoPlayer = ({
|
|
|
10000
10032
|
groupedSubTitleValid && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
10001
10033
|
IconButton_default,
|
|
10002
10034
|
{
|
|
10003
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
10035
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_phosphor_react22.ClosedCaptioning, { size: getIconSize2() }),
|
|
10004
10036
|
onClick: toggleCaptions,
|
|
10005
10037
|
"aria-label": showCaptions ? "Hide captions" : "Show captions",
|
|
10006
10038
|
className: cn(
|
|
@@ -10042,7 +10074,7 @@ var VideoPlayer_default = VideoPlayer;
|
|
|
10042
10074
|
|
|
10043
10075
|
// src/components/Whiteboard/Whiteboard.tsx
|
|
10044
10076
|
var import_react30 = require("react");
|
|
10045
|
-
var
|
|
10077
|
+
var import_phosphor_react23 = require("phosphor-react");
|
|
10046
10078
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
10047
10079
|
var IMAGE_WIDTH = 225;
|
|
10048
10080
|
var IMAGE_HEIGHT = 90;
|
|
@@ -10140,7 +10172,7 @@ var Whiteboard = ({
|
|
|
10140
10172
|
className: "cursor-pointer absolute bottom-3 right-3 flex items-center justify-center bg-black/20 backdrop-blur-sm rounded hover:bg-black/30 transition-colors duration-200 group/button w-6 h-6",
|
|
10141
10173
|
"aria-label": `Download ${image.title || "imagem"}`,
|
|
10142
10174
|
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
10143
|
-
|
|
10175
|
+
import_phosphor_react23.ArrowsOut,
|
|
10144
10176
|
{
|
|
10145
10177
|
size: 24,
|
|
10146
10178
|
weight: "regular",
|
|
@@ -10333,7 +10365,7 @@ var getRootDomain = () => {
|
|
|
10333
10365
|
|
|
10334
10366
|
// src/components/Accordation/Accordation.tsx
|
|
10335
10367
|
var import_react32 = require("react");
|
|
10336
|
-
var
|
|
10368
|
+
var import_phosphor_react24 = require("phosphor-react");
|
|
10337
10369
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
10338
10370
|
var CardAccordation = (0, import_react32.forwardRef)(
|
|
10339
10371
|
({
|
|
@@ -10402,7 +10434,7 @@ var CardAccordation = (0, import_react32.forwardRef)(
|
|
|
10402
10434
|
children: [
|
|
10403
10435
|
trigger,
|
|
10404
10436
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
10405
|
-
|
|
10437
|
+
import_phosphor_react24.CaretRight,
|
|
10406
10438
|
{
|
|
10407
10439
|
size: 20,
|
|
10408
10440
|
className: cn(
|
|
@@ -10587,7 +10619,7 @@ var AccordionGroup = (0, import_react33.forwardRef)(
|
|
|
10587
10619
|
AccordionGroup.displayName = "AccordionGroup";
|
|
10588
10620
|
|
|
10589
10621
|
// src/components/Alternative/Alternative.tsx
|
|
10590
|
-
var
|
|
10622
|
+
var import_phosphor_react25 = require("phosphor-react");
|
|
10591
10623
|
var import_react34 = require("react");
|
|
10592
10624
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
10593
10625
|
var AlternativesList = ({
|
|
@@ -10620,9 +10652,9 @@ var AlternativesList = ({
|
|
|
10620
10652
|
const getStatusBadge2 = (status) => {
|
|
10621
10653
|
switch (status) {
|
|
10622
10654
|
case "correct":
|
|
10623
|
-
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Badge_default, { variant: "solid", action: "success", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
10655
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Badge_default, { variant: "solid", action: "success", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_phosphor_react25.CheckCircle, {}), children: "Resposta correta" });
|
|
10624
10656
|
case "incorrect":
|
|
10625
|
-
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Badge_default, { variant: "solid", action: "error", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
10657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Badge_default, { variant: "solid", action: "error", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_phosphor_react25.XCircle, {}), children: "Resposta incorreta" });
|
|
10626
10658
|
default:
|
|
10627
10659
|
return null;
|
|
10628
10660
|
}
|
|
@@ -11020,7 +11052,7 @@ function useApiConfig(api) {
|
|
|
11020
11052
|
}
|
|
11021
11053
|
|
|
11022
11054
|
// src/components/Quiz/Quiz.tsx
|
|
11023
|
-
var
|
|
11055
|
+
var import_phosphor_react28 = require("phosphor-react");
|
|
11024
11056
|
var import_react39 = require("react");
|
|
11025
11057
|
|
|
11026
11058
|
// src/components/Quiz/useQuizStore.ts
|
|
@@ -11627,7 +11659,7 @@ var import_react38 = require("react");
|
|
|
11627
11659
|
|
|
11628
11660
|
// src/components/MultipleChoice/MultipleChoice.tsx
|
|
11629
11661
|
var import_react37 = require("react");
|
|
11630
|
-
var
|
|
11662
|
+
var import_phosphor_react26 = require("phosphor-react");
|
|
11631
11663
|
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
11632
11664
|
var MultipleChoiceList = ({
|
|
11633
11665
|
disabled = false,
|
|
@@ -11645,9 +11677,9 @@ var MultipleChoiceList = ({
|
|
|
11645
11677
|
const getStatusBadge2 = (status) => {
|
|
11646
11678
|
switch (status) {
|
|
11647
11679
|
case "correct":
|
|
11648
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Badge_default, { variant: "solid", action: "success", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
11680
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Badge_default, { variant: "solid", action: "success", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_phosphor_react26.CheckCircle, {}), children: "Resposta correta" });
|
|
11649
11681
|
case "incorrect":
|
|
11650
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Badge_default, { variant: "solid", action: "error", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
11682
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Badge_default, { variant: "solid", action: "error", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_phosphor_react26.XCircle, {}), children: "Resposta incorreta" });
|
|
11651
11683
|
default:
|
|
11652
11684
|
return null;
|
|
11653
11685
|
}
|
|
@@ -11668,7 +11700,7 @@ var MultipleChoiceList = ({
|
|
|
11668
11700
|
isSelected ? "border-primary-950 bg-primary-950 text-text" : "border-border-400 bg-background",
|
|
11669
11701
|
isDisabled && "opacity-40 cursor-not-allowed"
|
|
11670
11702
|
);
|
|
11671
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: checkboxClasses, children: isSelected && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
11703
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: checkboxClasses, children: isSelected && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_phosphor_react26.Check, { size: 16, weight: "bold" }) });
|
|
11672
11704
|
};
|
|
11673
11705
|
if (mode === "readonly") {
|
|
11674
11706
|
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: cn("flex flex-col gap-2", className), children: choices.map((choice, i) => {
|
|
@@ -11759,7 +11791,7 @@ var MultipleChoiceList = ({
|
|
|
11759
11791
|
};
|
|
11760
11792
|
|
|
11761
11793
|
// src/components/Quiz/QuizContent.tsx
|
|
11762
|
-
var
|
|
11794
|
+
var import_phosphor_react27 = require("phosphor-react");
|
|
11763
11795
|
|
|
11764
11796
|
// src/assets/img/mock-image-question.png
|
|
11765
11797
|
var mock_image_question_default = "./mock-image-question-HEZCLFDL.png";
|
|
@@ -11769,9 +11801,9 @@ var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
|
11769
11801
|
var getStatusBadge = (status) => {
|
|
11770
11802
|
switch (status) {
|
|
11771
11803
|
case "correct":
|
|
11772
|
-
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Badge_default, { variant: "solid", action: "success", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
11804
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Badge_default, { variant: "solid", action: "success", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_phosphor_react27.CheckCircle, {}), children: "Resposta correta" });
|
|
11773
11805
|
case "incorrect":
|
|
11774
|
-
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Badge_default, { variant: "solid", action: "error", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
11806
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Badge_default, { variant: "solid", action: "error", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_phosphor_react27.XCircle, {}), children: "Resposta incorreta" });
|
|
11775
11807
|
default:
|
|
11776
11808
|
return null;
|
|
11777
11809
|
}
|
|
@@ -12291,7 +12323,7 @@ var QuizFill = ({ paddingBottom }) => {
|
|
|
12291
12323
|
);
|
|
12292
12324
|
if (!mockAnswer) return null;
|
|
12293
12325
|
const action = mockAnswer.isCorrect ? "success" : "error";
|
|
12294
|
-
const icon = mockAnswer.isCorrect ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
12326
|
+
const icon = mockAnswer.isCorrect ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_phosphor_react27.CheckCircle, {}) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_phosphor_react27.XCircle, {});
|
|
12295
12327
|
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
12296
12328
|
Badge_default,
|
|
12297
12329
|
{
|
|
@@ -12613,7 +12645,7 @@ var QuizTitle = (0, import_react39.forwardRef)(({ className, onBack, ...props },
|
|
|
12613
12645
|
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
12614
12646
|
IconButton_default,
|
|
12615
12647
|
{
|
|
12616
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
12648
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_phosphor_react28.CaretLeft, { size: 24 }),
|
|
12617
12649
|
size: "md",
|
|
12618
12650
|
"aria-label": "Voltar",
|
|
12619
12651
|
onClick: handleBackClick
|
|
@@ -12623,7 +12655,7 @@ var QuizTitle = (0, import_react39.forwardRef)(({ className, onBack, ...props },
|
|
|
12623
12655
|
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "text-text-950 font-bold text-md", children: quizTitle }),
|
|
12624
12656
|
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "text-text-600 text-xs", children: totalQuestions > 0 ? `${currentQuestionIndex + 1} de ${totalQuestions}` : "0 de 0" })
|
|
12625
12657
|
] }),
|
|
12626
|
-
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "flex flex-row items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Badge_default, { variant: "outlined", action: "info", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
12658
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "flex flex-row items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Badge_default, { variant: "outlined", action: "info", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_phosphor_react28.Clock, {}), children: isStarted ? formatTime2(timeElapsed) : "00:00" }) })
|
|
12627
12659
|
]
|
|
12628
12660
|
}
|
|
12629
12661
|
),
|
|
@@ -12721,7 +12753,7 @@ var QuizQuestionList = ({
|
|
|
12721
12753
|
Object.entries(filteredGroupedQuestions).map(
|
|
12722
12754
|
([subjectId, questions]) => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("section", { className: "flex flex-col gap-2", children: [
|
|
12723
12755
|
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("span", { className: "pt-6 pb-4 flex flex-row gap-2", children: [
|
|
12724
|
-
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "bg-primary-500 p-1 rounded-sm flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
12756
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "bg-primary-500 p-1 rounded-sm flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_phosphor_react28.BookOpen, { size: 17, className: "text-white" }) }),
|
|
12725
12757
|
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "text-text-800 font-bold text-lg", children: questions?.[0]?.knowledgeMatrix?.[0]?.subject?.name ?? "Sem mat\xE9ria" })
|
|
12726
12758
|
] }),
|
|
12727
12759
|
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("ul", { className: "flex flex-col gap-2", children: questions.map((question) => {
|
|
@@ -12849,7 +12881,7 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
12849
12881
|
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
12850
12882
|
IconButton_default,
|
|
12851
12883
|
{
|
|
12852
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
12884
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_phosphor_react28.SquaresFour, { size: 24, className: "text-text-950" }),
|
|
12853
12885
|
size: "md",
|
|
12854
12886
|
onClick: () => openModal("modalNavigate")
|
|
12855
12887
|
}
|
|
@@ -12871,7 +12903,7 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
12871
12903
|
size: "medium",
|
|
12872
12904
|
variant: "link",
|
|
12873
12905
|
action: "primary",
|
|
12874
|
-
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
12906
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_phosphor_react28.CaretLeft, { size: 18 }),
|
|
12875
12907
|
onClick: () => {
|
|
12876
12908
|
goToPreviousQuestion();
|
|
12877
12909
|
},
|
|
@@ -12907,7 +12939,7 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
12907
12939
|
size: "medium",
|
|
12908
12940
|
variant: "link",
|
|
12909
12941
|
action: "primary",
|
|
12910
|
-
iconRight: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
12942
|
+
iconRight: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_phosphor_react28.CaretRight, { size: 18 }),
|
|
12911
12943
|
disabled: !currentAnswer && !isCurrentQuestionSkipped,
|
|
12912
12944
|
onClick: () => {
|
|
12913
12945
|
goToNextQuestion();
|
|
@@ -13122,7 +13154,7 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
13122
13154
|
|
|
13123
13155
|
// src/components/Quiz/QuizResult.tsx
|
|
13124
13156
|
var import_react40 = require("react");
|
|
13125
|
-
var
|
|
13157
|
+
var import_phosphor_react29 = require("phosphor-react");
|
|
13126
13158
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
13127
13159
|
var QuizBadge = ({
|
|
13128
13160
|
subtype
|
|
@@ -13332,7 +13364,7 @@ var QuizResultPerformance = (0, import_react40.forwardRef)(({ showDetails = true
|
|
|
13332
13364
|
),
|
|
13333
13365
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "absolute inset-0 flex flex-col items-center justify-center", children: [
|
|
13334
13366
|
showDetails && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex items-center gap-1 mb-1", children: [
|
|
13335
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
13367
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_phosphor_react29.Clock, { size: 12, weight: "regular", className: "text-text-800" }),
|
|
13336
13368
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-2xs font-medium text-text-800", children: formatTime2(
|
|
13337
13369
|
(getQuestionResultStatistics()?.timeSpent ?? 0) * 60
|
|
13338
13370
|
) })
|