analytica-frontend-lib 1.1.18 → 1.1.20

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.
@@ -47,6 +47,7 @@ declare const QuizFooter: react.ForwardRefExoticComponent<{
47
47
  onGoToSimulated?: () => void;
48
48
  onDetailResult?: () => void;
49
49
  handleFinishSimulated?: () => void;
50
+ resultImageComponent?: ReactNode;
50
51
  } & react.RefAttributes<HTMLDivElement>>;
51
52
  declare const QuizResultHeaderTitle: react.ForwardRefExoticComponent<{
52
53
  className?: string;
@@ -47,6 +47,7 @@ declare const QuizFooter: react.ForwardRefExoticComponent<{
47
47
  onGoToSimulated?: () => void;
48
48
  onDetailResult?: () => void;
49
49
  handleFinishSimulated?: () => void;
50
+ resultImageComponent?: ReactNode;
50
51
  } & react.RefAttributes<HTMLDivElement>>;
51
52
  declare const QuizResultHeaderTitle: react.ForwardRefExoticComponent<{
52
53
  className?: string;
@@ -1719,9 +1719,6 @@ var Modal = ({
1719
1719
  };
1720
1720
  var Modal_default = Modal;
1721
1721
 
1722
- // src/assets/img/simulated-result.png
1723
- var simulated_result_default = "../simulated-result-QN5HCUY5.png";
1724
-
1725
1722
  // src/components/Select/Select.tsx
1726
1723
  var import_zustand3 = require("zustand");
1727
1724
  var import_react6 = require("react");
@@ -5498,6 +5495,7 @@ var QuizFooter = (0, import_react12.forwardRef)(
5498
5495
  onGoToSimulated,
5499
5496
  onDetailResult,
5500
5497
  handleFinishSimulated,
5498
+ resultImageComponent,
5501
5499
  ...props
5502
5500
  }, ref) => {
5503
5501
  const {
@@ -5671,14 +5669,7 @@ var QuizFooter = (0, import_react12.forwardRef)(
5671
5669
  hideCloseButton: true,
5672
5670
  size: "md",
5673
5671
  children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex flex-col w-full h-full items-center justify-center gap-4", children: [
5674
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
5675
- "img",
5676
- {
5677
- src: simulated_result_default,
5678
- alt: "Simulated Result",
5679
- className: "w-[282px] h-auto object-cover"
5680
- }
5681
- ),
5672
+ resultImageComponent ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "w-[282px] h-auto", children: resultImageComponent }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "w-[282px] h-[200px] bg-gray-100 rounded-md flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "text-gray-500 text-sm", children: "Imagem de resultado" }) }),
5682
5673
  /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex flex-col gap-2 text-center", children: [
5683
5674
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("h2", { className: "text-text-950 font-bold text-lg", children: "Voc\xEA concluiu o simulado!" }),
5684
5675
  /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("p", { className: "text-text-500 font-sm", children: [