analytica-frontend-lib 1.0.81 → 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 +74 -128
- package/dist/Accordation/index.js.map +1 -1
- package/dist/Accordation/index.mjs +74 -128
- package/dist/Accordation/index.mjs.map +1 -1
- package/dist/Card/index.d.mts +0 -3
- package/dist/Card/index.d.ts +0 -3
- package/dist/Card/index.js +74 -128
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +74 -128
- package/dist/Card/index.mjs.map +1 -1
- package/dist/index.css +0 -6
- package/dist/index.css.map +1 -1
- package/dist/index.js +74 -128
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +74 -128
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +0 -6
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4189,144 +4189,90 @@ var SIMULATION_TYPE_STYLES = {
|
|
|
4189
4189
|
text: "Vestibular"
|
|
4190
4190
|
}
|
|
4191
4191
|
};
|
|
4192
|
-
var CardSimulationHistory = forwardRef9(
|
|
4193
|
-
(
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
{
|
|
4205
|
-
ref,
|
|
4206
|
-
className: `w-full max-w-[992px] h-auto ${className}`,
|
|
4207
|
-
...props,
|
|
4208
|
-
children: [
|
|
4209
|
-
/* @__PURE__ */ jsxs18("div", { className: "flex flex-row items-end justify-between gap-4 mb-4", children: [
|
|
4210
|
-
/* @__PURE__ */ jsx23(Text_default, { size: "2xl", weight: "bold", className: "text-text-950 flex-1", children: title }),
|
|
4211
|
-
/* @__PURE__ */ jsxs18("div", { className: "flex flex-row gap-2", children: [
|
|
4212
|
-
/* @__PURE__ */ jsxs18(
|
|
4213
|
-
"button",
|
|
4214
|
-
{
|
|
4215
|
-
type: "button",
|
|
4216
|
-
onClick: () => onTabChange?.("create"),
|
|
4217
|
-
className: `
|
|
4218
|
-
flex flex-row justify-center items-center px-4 py-3 gap-2 rounded-md relative
|
|
4219
|
-
${activeTab === "create" ? "text-text-950" : "text-text-950 hover:bg-background-50"}
|
|
4220
|
-
`,
|
|
4221
|
-
children: [
|
|
4222
|
-
/* @__PURE__ */ jsx23(Text_default, { size: "xs", weight: "bold", className: "leading-4 tracking-wide", children: "Criar Simulado" }),
|
|
4223
|
-
activeTab === "create" && /* @__PURE__ */ jsx23("div", { className: "absolute bottom-0 left-2 right-2 h-1 bg-primary-950 rounded-lg" })
|
|
4224
|
-
]
|
|
4225
|
-
}
|
|
4226
|
-
),
|
|
4227
|
-
/* @__PURE__ */ jsxs18(
|
|
4228
|
-
"button",
|
|
4229
|
-
{
|
|
4230
|
-
type: "button",
|
|
4231
|
-
onClick: () => onTabChange?.("history"),
|
|
4232
|
-
className: `
|
|
4233
|
-
flex flex-row justify-center items-center px-4 py-3 gap-2 rounded-md relative
|
|
4234
|
-
${activeTab === "history" ? "text-text-950" : "text-text-950 hover:bg-background-50"}
|
|
4235
|
-
`,
|
|
4236
|
-
children: [
|
|
4237
|
-
/* @__PURE__ */ jsx23(Text_default, { size: "xs", weight: "bold", className: "leading-4 tracking-wide", children: "Hist\xF3rico" }),
|
|
4238
|
-
activeTab === "history" && /* @__PURE__ */ jsx23("div", { className: "absolute bottom-0 left-2 right-2 h-1 bg-primary-950 rounded-lg" })
|
|
4239
|
-
]
|
|
4240
|
-
}
|
|
4241
|
-
)
|
|
4242
|
-
] })
|
|
4243
|
-
] }),
|
|
4244
|
-
/* @__PURE__ */ jsxs18("div", { className: "flex flex-col gap-0", children: [
|
|
4245
|
-
data.map((section, sectionIndex) => /* @__PURE__ */ jsx23("div", { className: "flex flex-col", children: /* @__PURE__ */ jsxs18(
|
|
4246
|
-
"div",
|
|
4247
|
-
{
|
|
4248
|
-
className: `
|
|
4192
|
+
var CardSimulationHistory = forwardRef9(({ data, onSimulationClick, className, ...props }, ref) => {
|
|
4193
|
+
return /* @__PURE__ */ jsx23(
|
|
4194
|
+
"div",
|
|
4195
|
+
{
|
|
4196
|
+
ref,
|
|
4197
|
+
className: `w-full max-w-[992px] h-auto ${className}`,
|
|
4198
|
+
...props,
|
|
4199
|
+
children: /* @__PURE__ */ jsxs18("div", { className: "flex flex-col gap-0", children: [
|
|
4200
|
+
data.map((section, sectionIndex) => /* @__PURE__ */ jsx23("div", { className: "flex flex-col", children: /* @__PURE__ */ jsxs18(
|
|
4201
|
+
"div",
|
|
4202
|
+
{
|
|
4203
|
+
className: `
|
|
4249
4204
|
flex flex-row justify-center items-start px-4 py-6 gap-2 w-full bg-white
|
|
4250
4205
|
${sectionIndex === 0 ? "rounded-t-3xl" : ""}
|
|
4251
4206
|
`,
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4207
|
+
children: [
|
|
4208
|
+
/* @__PURE__ */ jsx23(
|
|
4209
|
+
Text_default,
|
|
4210
|
+
{
|
|
4211
|
+
size: "xs",
|
|
4212
|
+
weight: "bold",
|
|
4213
|
+
className: "text-text-800 w-11 flex-shrink-0",
|
|
4214
|
+
children: section.date
|
|
4215
|
+
}
|
|
4216
|
+
),
|
|
4217
|
+
/* @__PURE__ */ jsx23("div", { className: "flex flex-col gap-2 flex-1", children: section.simulations.map((simulation) => {
|
|
4218
|
+
const typeStyles = SIMULATION_TYPE_STYLES[simulation.type];
|
|
4219
|
+
return /* @__PURE__ */ jsx23(
|
|
4220
|
+
CardBase,
|
|
4221
|
+
{
|
|
4222
|
+
layout: "horizontal",
|
|
4223
|
+
padding: "medium",
|
|
4224
|
+
minHeight: "none",
|
|
4225
|
+
cursor: "pointer",
|
|
4226
|
+
className: `
|
|
4272
4227
|
${typeStyles.background} rounded-xl hover:shadow-soft-shadow-2
|
|
4273
4228
|
transition-shadow duration-200 h-auto min-h-[61px]
|
|
4274
4229
|
`,
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
/* @__PURE__ */ jsx23(
|
|
4289
|
-
Badge_default,
|
|
4290
|
-
{
|
|
4291
|
-
variant: "examsOutlined",
|
|
4292
|
-
action: typeStyles.badge,
|
|
4293
|
-
size: "medium",
|
|
4294
|
-
children: typeStyles.text
|
|
4295
|
-
}
|
|
4296
|
-
),
|
|
4297
|
-
/* @__PURE__ */ jsx23(
|
|
4298
|
-
Text_default,
|
|
4299
|
-
{
|
|
4300
|
-
size: "sm",
|
|
4301
|
-
className: "text-text-800 truncate",
|
|
4302
|
-
children: simulation.info
|
|
4303
|
-
}
|
|
4304
|
-
)
|
|
4305
|
-
] })
|
|
4306
|
-
] }),
|
|
4230
|
+
onClick: () => onSimulationClick?.(simulation),
|
|
4231
|
+
children: /* @__PURE__ */ jsxs18("div", { className: "flex justify-between items-center w-full gap-2", children: [
|
|
4232
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
|
|
4233
|
+
/* @__PURE__ */ jsx23(
|
|
4234
|
+
Text_default,
|
|
4235
|
+
{
|
|
4236
|
+
size: "lg",
|
|
4237
|
+
weight: "bold",
|
|
4238
|
+
className: "text-text-950 truncate",
|
|
4239
|
+
children: simulation.title
|
|
4240
|
+
}
|
|
4241
|
+
),
|
|
4242
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-2", children: [
|
|
4307
4243
|
/* @__PURE__ */ jsx23(
|
|
4308
|
-
|
|
4244
|
+
Badge_default,
|
|
4309
4245
|
{
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4246
|
+
variant: "examsOutlined",
|
|
4247
|
+
action: typeStyles.badge,
|
|
4248
|
+
size: "medium",
|
|
4249
|
+
children: typeStyles.text
|
|
4313
4250
|
}
|
|
4314
|
-
)
|
|
4251
|
+
),
|
|
4252
|
+
/* @__PURE__ */ jsx23(Text_default, { size: "sm", className: "text-text-800 truncate", children: simulation.info })
|
|
4315
4253
|
] })
|
|
4316
|
-
},
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
)
|
|
4254
|
+
] }),
|
|
4255
|
+
/* @__PURE__ */ jsx23(
|
|
4256
|
+
CaretRight,
|
|
4257
|
+
{
|
|
4258
|
+
size: 24,
|
|
4259
|
+
className: "text-text-800 flex-shrink-0",
|
|
4260
|
+
"data-testid": "caret-icon"
|
|
4261
|
+
}
|
|
4262
|
+
)
|
|
4263
|
+
] })
|
|
4264
|
+
},
|
|
4265
|
+
simulation.id
|
|
4266
|
+
);
|
|
4267
|
+
}) })
|
|
4268
|
+
]
|
|
4269
|
+
}
|
|
4270
|
+
) }, section.date)),
|
|
4271
|
+
data.length > 0 && /* @__PURE__ */ jsx23("div", { className: "w-full h-6 bg-white rounded-b-3xl" })
|
|
4272
|
+
] })
|
|
4273
|
+
}
|
|
4274
|
+
);
|
|
4275
|
+
});
|
|
4330
4276
|
|
|
4331
4277
|
// src/components/Accordation/Accordation.tsx
|
|
4332
4278
|
import { CaretRight as CaretRight2 } from "phosphor-react";
|