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/index.js CHANGED
@@ -4244,144 +4244,90 @@ var SIMULATION_TYPE_STYLES = {
4244
4244
  text: "Vestibular"
4245
4245
  }
4246
4246
  };
4247
- var CardSimulationHistory = (0, import_react11.forwardRef)(
4248
- ({
4249
- title = "Simulados",
4250
- activeTab = "history",
4251
- data,
4252
- onTabChange,
4253
- onSimulationClick,
4254
- className,
4255
- ...props
4256
- }, ref) => {
4257
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
4258
- "div",
4259
- {
4260
- ref,
4261
- className: `w-full max-w-[992px] h-auto ${className}`,
4262
- ...props,
4263
- children: [
4264
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex flex-row items-end justify-between gap-4 mb-4", children: [
4265
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Text_default, { size: "2xl", weight: "bold", className: "text-text-950 flex-1", children: title }),
4266
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex flex-row gap-2", children: [
4267
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
4268
- "button",
4269
- {
4270
- type: "button",
4271
- onClick: () => onTabChange?.("create"),
4272
- className: `
4273
- flex flex-row justify-center items-center px-4 py-3 gap-2 rounded-md relative
4274
- ${activeTab === "create" ? "text-text-950" : "text-text-950 hover:bg-background-50"}
4275
- `,
4276
- children: [
4277
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Text_default, { size: "xs", weight: "bold", className: "leading-4 tracking-wide", children: "Criar Simulado" }),
4278
- activeTab === "create" && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "absolute bottom-0 left-2 right-2 h-1 bg-primary-950 rounded-lg" })
4279
- ]
4280
- }
4281
- ),
4282
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
4283
- "button",
4284
- {
4285
- type: "button",
4286
- onClick: () => onTabChange?.("history"),
4287
- className: `
4288
- flex flex-row justify-center items-center px-4 py-3 gap-2 rounded-md relative
4289
- ${activeTab === "history" ? "text-text-950" : "text-text-950 hover:bg-background-50"}
4290
- `,
4291
- children: [
4292
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Text_default, { size: "xs", weight: "bold", className: "leading-4 tracking-wide", children: "Hist\xF3rico" }),
4293
- activeTab === "history" && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "absolute bottom-0 left-2 right-2 h-1 bg-primary-950 rounded-lg" })
4294
- ]
4295
- }
4296
- )
4297
- ] })
4298
- ] }),
4299
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex flex-col gap-0", children: [
4300
- data.map((section, sectionIndex) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "flex flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
4301
- "div",
4302
- {
4303
- className: `
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: `
4304
4259
  flex flex-row justify-center items-start px-4 py-6 gap-2 w-full bg-white
4305
4260
  ${sectionIndex === 0 ? "rounded-t-3xl" : ""}
4306
4261
  `,
4307
- children: [
4308
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4309
- Text_default,
4310
- {
4311
- size: "xs",
4312
- weight: "bold",
4313
- className: "text-text-800 w-11 flex-shrink-0",
4314
- children: section.date
4315
- }
4316
- ),
4317
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "flex flex-col gap-2 flex-1", children: section.simulations.map((simulation) => {
4318
- const typeStyles = SIMULATION_TYPE_STYLES[simulation.type];
4319
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4320
- CardBase,
4321
- {
4322
- layout: "horizontal",
4323
- padding: "medium",
4324
- minHeight: "none",
4325
- cursor: "pointer",
4326
- className: `
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: `
4327
4282
  ${typeStyles.background} rounded-xl hover:shadow-soft-shadow-2
4328
4283
  transition-shadow duration-200 h-auto min-h-[61px]
4329
4284
  `,
4330
- onClick: () => onSimulationClick?.(simulation),
4331
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex justify-between items-center w-full gap-2", children: [
4332
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
4333
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4334
- Text_default,
4335
- {
4336
- size: "lg",
4337
- weight: "bold",
4338
- className: "text-text-950 truncate",
4339
- children: simulation.title
4340
- }
4341
- ),
4342
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex items-center gap-2", children: [
4343
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4344
- Badge_default,
4345
- {
4346
- variant: "examsOutlined",
4347
- action: typeStyles.badge,
4348
- size: "medium",
4349
- children: typeStyles.text
4350
- }
4351
- ),
4352
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4353
- Text_default,
4354
- {
4355
- size: "sm",
4356
- className: "text-text-800 truncate",
4357
- children: simulation.info
4358
- }
4359
- )
4360
- ] })
4361
- ] }),
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: [
4362
4298
  /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4363
- import_phosphor_react10.CaretRight,
4299
+ Badge_default,
4364
4300
  {
4365
- size: 24,
4366
- className: "text-text-800 flex-shrink-0",
4367
- "data-testid": "caret-icon"
4301
+ variant: "examsOutlined",
4302
+ action: typeStyles.badge,
4303
+ size: "medium",
4304
+ children: typeStyles.text
4368
4305
  }
4369
- )
4306
+ ),
4307
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Text_default, { size: "sm", className: "text-text-800 truncate", children: simulation.info })
4370
4308
  ] })
4371
- },
4372
- simulation.id
4373
- );
4374
- }) })
4375
- ]
4376
- }
4377
- ) }, section.date)),
4378
- data.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "w-full h-6 bg-white rounded-b-3xl" })
4379
- ] })
4380
- ]
4381
- }
4382
- );
4383
- }
4384
- );
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
+ });
4385
4331
 
4386
4332
  // src/components/Accordation/Accordation.tsx
4387
4333
  var import_phosphor_react11 = require("phosphor-react");