analytica-frontend-lib 1.0.80 → 1.0.82
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 +106 -0
- package/dist/Accordation/index.js.map +1 -1
- package/dist/Accordation/index.mjs +106 -0
- package/dist/Accordation/index.mjs.map +1 -1
- package/dist/Card/index.d.mts +16 -1
- package/dist/Card/index.d.ts +16 -1
- package/dist/Card/index.js +108 -0
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +107 -0
- package/dist/Card/index.mjs.map +1 -1
- package/dist/CheckBox/index.d.mts +1 -1
- package/dist/CheckBox/index.d.ts +1 -1
- package/dist/Radio/index.d.mts +2 -2
- package/dist/Radio/index.d.ts +2 -2
- package/dist/index.css +32 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +108 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +107 -0
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +32 -0
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -27,7 +27,7 @@ export { AlertDialog } from './AlertDialog/index.mjs';
|
|
|
27
27
|
export { default as DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, MenuLabel, ProfileMenuFooter, ProfileMenuHeader, ProfileMenuSection, ProfileMenuTrigger } from './DropdownMenu/index.mjs';
|
|
28
28
|
export { default as Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from './Select/index.mjs';
|
|
29
29
|
export { default as Menu, MenuContent, MenuItem, MenuOverflow } from './Menu/index.mjs';
|
|
30
|
-
export { CardActivitiesResults, CardPerformance, CardProgress, CardQuestions, CardResults, CardSimulado, CardStatus, CardTest, CardTopic } from './Card/index.mjs';
|
|
30
|
+
export { CardActivitiesResults, CardPerformance, CardProgress, CardQuestions, CardResults, CardSimulado, CardSimulationHistory, CardStatus, CardTest, CardTopic } from './Card/index.mjs';
|
|
31
31
|
export { Skeleton, SkeletonCard, SkeletonCircle, SkeletonList, SkeletonRectangle, SkeletonRounded, SkeletonTable, SkeletonText } from './Skeleton/index.mjs';
|
|
32
32
|
export { default as NotFound } from './NotFound/index.mjs';
|
|
33
33
|
export { AuthProvider, ProtectedRoute, PublicRoute, getRootDomain, useAuth, useAuthGuard, useRouteAuth, withAuth } from './Auth/index.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export { AlertDialog } from './AlertDialog/index.js';
|
|
|
27
27
|
export { default as DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, MenuLabel, ProfileMenuFooter, ProfileMenuHeader, ProfileMenuSection, ProfileMenuTrigger } from './DropdownMenu/index.js';
|
|
28
28
|
export { default as Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from './Select/index.js';
|
|
29
29
|
export { default as Menu, MenuContent, MenuItem, MenuOverflow } from './Menu/index.js';
|
|
30
|
-
export { CardActivitiesResults, CardPerformance, CardProgress, CardQuestions, CardResults, CardSimulado, CardStatus, CardTest, CardTopic } from './Card/index.js';
|
|
30
|
+
export { CardActivitiesResults, CardPerformance, CardProgress, CardQuestions, CardResults, CardSimulado, CardSimulationHistory, CardStatus, CardTest, CardTopic } from './Card/index.js';
|
|
31
31
|
export { Skeleton, SkeletonCard, SkeletonCircle, SkeletonList, SkeletonRectangle, SkeletonRounded, SkeletonTable, SkeletonText } from './Skeleton/index.js';
|
|
32
32
|
export { default as NotFound } from './NotFound/index.js';
|
|
33
33
|
export { AuthProvider, ProtectedRoute, PublicRoute, getRootDomain, useAuth, useAuthGuard, useRouteAuth, withAuth } from './Auth/index.js';
|
package/dist/index.js
CHANGED
|
@@ -34,6 +34,7 @@ __export(src_exports, {
|
|
|
34
34
|
CardQuestions: () => CardQuestions,
|
|
35
35
|
CardResults: () => CardResults,
|
|
36
36
|
CardSimulado: () => CardSimulado,
|
|
37
|
+
CardSimulationHistory: () => CardSimulationHistory,
|
|
37
38
|
CardStatus: () => CardStatus,
|
|
38
39
|
CardTest: () => CardTest,
|
|
39
40
|
CardTopic: () => CardTopic,
|
|
@@ -4221,6 +4222,112 @@ var CardTest = (0, import_react11.forwardRef)(
|
|
|
4221
4222
|
);
|
|
4222
4223
|
}
|
|
4223
4224
|
);
|
|
4225
|
+
var SIMULATION_TYPE_STYLES = {
|
|
4226
|
+
enem: {
|
|
4227
|
+
background: "bg-exam-1",
|
|
4228
|
+
badge: "exam1",
|
|
4229
|
+
text: "Enem"
|
|
4230
|
+
},
|
|
4231
|
+
prova: {
|
|
4232
|
+
background: "bg-exam-2",
|
|
4233
|
+
badge: "exam2",
|
|
4234
|
+
text: "Prova"
|
|
4235
|
+
},
|
|
4236
|
+
simulado: {
|
|
4237
|
+
background: "bg-exam-3",
|
|
4238
|
+
badge: "exam3",
|
|
4239
|
+
text: "Simulado"
|
|
4240
|
+
},
|
|
4241
|
+
vestibular: {
|
|
4242
|
+
background: "bg-exam-4",
|
|
4243
|
+
badge: "exam4",
|
|
4244
|
+
text: "Vestibular"
|
|
4245
|
+
}
|
|
4246
|
+
};
|
|
4247
|
+
var CardSimulationHistory = (0, import_react11.forwardRef)(({ data, onSimulationClick, className, ...props }, ref) => {
|
|
4248
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4249
|
+
"div",
|
|
4250
|
+
{
|
|
4251
|
+
ref,
|
|
4252
|
+
className: `w-full max-w-[992px] h-auto ${className}`,
|
|
4253
|
+
...props,
|
|
4254
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex flex-col gap-0", children: [
|
|
4255
|
+
data.map((section, sectionIndex) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "flex flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
4256
|
+
"div",
|
|
4257
|
+
{
|
|
4258
|
+
className: `
|
|
4259
|
+
flex flex-row justify-center items-start px-4 py-6 gap-2 w-full bg-white
|
|
4260
|
+
${sectionIndex === 0 ? "rounded-t-3xl" : ""}
|
|
4261
|
+
`,
|
|
4262
|
+
children: [
|
|
4263
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4264
|
+
Text_default,
|
|
4265
|
+
{
|
|
4266
|
+
size: "xs",
|
|
4267
|
+
weight: "bold",
|
|
4268
|
+
className: "text-text-800 w-11 flex-shrink-0",
|
|
4269
|
+
children: section.date
|
|
4270
|
+
}
|
|
4271
|
+
),
|
|
4272
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "flex flex-col gap-2 flex-1", children: section.simulations.map((simulation) => {
|
|
4273
|
+
const typeStyles = SIMULATION_TYPE_STYLES[simulation.type];
|
|
4274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4275
|
+
CardBase,
|
|
4276
|
+
{
|
|
4277
|
+
layout: "horizontal",
|
|
4278
|
+
padding: "medium",
|
|
4279
|
+
minHeight: "none",
|
|
4280
|
+
cursor: "pointer",
|
|
4281
|
+
className: `
|
|
4282
|
+
${typeStyles.background} rounded-xl hover:shadow-soft-shadow-2
|
|
4283
|
+
transition-shadow duration-200 h-auto min-h-[61px]
|
|
4284
|
+
`,
|
|
4285
|
+
onClick: () => onSimulationClick?.(simulation),
|
|
4286
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex justify-between items-center w-full gap-2", children: [
|
|
4287
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
|
|
4288
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4289
|
+
Text_default,
|
|
4290
|
+
{
|
|
4291
|
+
size: "lg",
|
|
4292
|
+
weight: "bold",
|
|
4293
|
+
className: "text-text-950 truncate",
|
|
4294
|
+
children: simulation.title
|
|
4295
|
+
}
|
|
4296
|
+
),
|
|
4297
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
4298
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4299
|
+
Badge_default,
|
|
4300
|
+
{
|
|
4301
|
+
variant: "examsOutlined",
|
|
4302
|
+
action: typeStyles.badge,
|
|
4303
|
+
size: "medium",
|
|
4304
|
+
children: typeStyles.text
|
|
4305
|
+
}
|
|
4306
|
+
),
|
|
4307
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Text_default, { size: "sm", className: "text-text-800 truncate", children: simulation.info })
|
|
4308
|
+
] })
|
|
4309
|
+
] }),
|
|
4310
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4311
|
+
import_phosphor_react10.CaretRight,
|
|
4312
|
+
{
|
|
4313
|
+
size: 24,
|
|
4314
|
+
className: "text-text-800 flex-shrink-0",
|
|
4315
|
+
"data-testid": "caret-icon"
|
|
4316
|
+
}
|
|
4317
|
+
)
|
|
4318
|
+
] })
|
|
4319
|
+
},
|
|
4320
|
+
simulation.id
|
|
4321
|
+
);
|
|
4322
|
+
}) })
|
|
4323
|
+
]
|
|
4324
|
+
}
|
|
4325
|
+
) }, section.date)),
|
|
4326
|
+
data.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "w-full h-6 bg-white rounded-b-3xl" })
|
|
4327
|
+
] })
|
|
4328
|
+
}
|
|
4329
|
+
);
|
|
4330
|
+
});
|
|
4224
4331
|
|
|
4225
4332
|
// src/components/Accordation/Accordation.tsx
|
|
4226
4333
|
var import_phosphor_react11 = require("phosphor-react");
|
|
@@ -6176,6 +6283,7 @@ function useApiConfig(api) {
|
|
|
6176
6283
|
CardQuestions,
|
|
6177
6284
|
CardResults,
|
|
6178
6285
|
CardSimulado,
|
|
6286
|
+
CardSimulationHistory,
|
|
6179
6287
|
CardStatus,
|
|
6180
6288
|
CardTest,
|
|
6181
6289
|
CardTopic,
|