analytica-frontend-lib 1.0.65 → 1.0.67

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.mjs CHANGED
@@ -3678,7 +3678,7 @@ var useMenuStore = (externalStore) => {
3678
3678
  return externalStore;
3679
3679
  };
3680
3680
  var VARIANT_CLASSES5 = {
3681
- menu: "bg-background shadow-soft-shadow-1",
3681
+ menu: "bg-background shadow-soft-shadow-1 px-6",
3682
3682
  menu2: "",
3683
3683
  breadcrumb: ""
3684
3684
  };
@@ -3699,7 +3699,7 @@ var Menu = forwardRef11(
3699
3699
  useEffect5(() => {
3700
3700
  setValue(propValue ?? defaultValue);
3701
3701
  }, [defaultValue, propValue, setValue]);
3702
- const baseClasses = "w-full py-2 px-6 flex flex-row items-center justify-center";
3702
+ const baseClasses = "w-full py-2 flex flex-row items-center justify-center";
3703
3703
  const variantClasses = VARIANT_CLASSES5[variant];
3704
3704
  return /* @__PURE__ */ jsx25(
3705
3705
  "div",
@@ -3793,7 +3793,7 @@ var MenuItem = forwardRef11(
3793
3793
  {
3794
3794
  "data-variant": "menu2",
3795
3795
  className: `
3796
- w-full flex flex-col items-center px-4 pt-4 gap-3 border-b-4 border-transparent cursor-pointer focus:rounded-sm justify-center hover:bg-background-100 rounded-lg
3796
+ w-full flex flex-col items-center px-2 pt-4 gap-3 cursor-pointer focus:rounded-sm justify-center hover:bg-background-100 rounded-lg
3797
3797
  focus:outline-none focus:border-indicator-info focus:border-2
3798
3798
  ${selectedValue === value ? "" : "pb-4"}
3799
3799
  `,
@@ -3802,7 +3802,7 @@ var MenuItem = forwardRef11(
3802
3802
  /* @__PURE__ */ jsx25(
3803
3803
  "span",
3804
3804
  {
3805
- className: `flex flex-row items-center gap-2 px-2 text-text-950 text-xs font-bold ${className ?? ""}`,
3805
+ className: `flex flex-row items-center gap-2 px-4 text-text-950 text-xs font-bold ${className ?? ""}`,
3806
3806
  children
3807
3807
  }
3808
3808
  ),
@@ -4076,8 +4076,16 @@ var CardActivitiesResults = forwardRef12(
4076
4076
  children: icon
4077
4077
  }
4078
4078
  ),
4079
- /* @__PURE__ */ jsx26(Text_default, { size: "2xs", weight: "medium", className: "text-text-800 uppercase", children: title }),
4080
- /* @__PURE__ */ jsx26("p", { className: `text-lg font-bold ${actionSubTitleClasses}`, children: subTitle })
4079
+ /* @__PURE__ */ jsx26(
4080
+ Text_default,
4081
+ {
4082
+ size: "2xs",
4083
+ weight: "medium",
4084
+ className: "text-text-800 uppercase truncate",
4085
+ children: title
4086
+ }
4087
+ ),
4088
+ /* @__PURE__ */ jsx26("p", { className: `text-lg font-bold truncate ${actionSubTitleClasses}`, children: subTitle })
4081
4089
  ]
4082
4090
  }
4083
4091
  ),
@@ -4085,7 +4093,7 @@ var CardActivitiesResults = forwardRef12(
4085
4093
  /* @__PURE__ */ jsx26(
4086
4094
  "p",
4087
4095
  {
4088
- className: `text-2xs font-medium uppercase ${actionHeaderClasses}`,
4096
+ className: `text-2xs font-medium uppercase truncate ${actionHeaderClasses}`,
4089
4097
  children: header
4090
4098
  }
4091
4099
  ),
@@ -4118,8 +4126,8 @@ var CardQuestions = forwardRef12(
4118
4126
  className: `justify-between gap-4 ${className}`,
4119
4127
  ...props,
4120
4128
  children: [
4121
- /* @__PURE__ */ jsxs21("section", { className: "flex flex-col gap-1", children: [
4122
- /* @__PURE__ */ jsx26("p", { className: "font-bold text-xs text-text-950", children: header }),
4129
+ /* @__PURE__ */ jsxs21("section", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
4130
+ /* @__PURE__ */ jsx26("p", { className: "font-bold text-xs text-text-950 truncate", children: header }),
4123
4131
  /* @__PURE__ */ jsxs21("div", { className: "flex flex-row gap-6 items-center", children: [
4124
4132
  /* @__PURE__ */ jsx26(
4125
4133
  Badge_default,
@@ -4136,11 +4144,12 @@ var CardQuestions = forwardRef12(
4136
4144
  ] })
4137
4145
  ] })
4138
4146
  ] }),
4139
- /* @__PURE__ */ jsx26("span", { children: /* @__PURE__ */ jsx26(
4147
+ /* @__PURE__ */ jsx26("span", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx26(
4140
4148
  Button_default,
4141
4149
  {
4142
4150
  size: "extra-small",
4143
4151
  onClick: () => onClickButton?.(valueButton),
4152
+ className: "min-w-fit",
4144
4153
  children: buttonLabel
4145
4154
  }
4146
4155
  ) })
@@ -4235,7 +4244,7 @@ var CardProgress = forwardRef12(
4235
4244
  ${!isHorizontal && "gap-4"}
4236
4245
  `,
4237
4246
  children: [
4238
- /* @__PURE__ */ jsx26(Text_default, { size: "sm", weight: "bold", className: "text-text-950", children: header }),
4247
+ /* @__PURE__ */ jsx26(Text_default, { size: "sm", weight: "bold", className: "text-text-950 truncate", children: header }),
4239
4248
  contentComponent[direction]
4240
4249
  ]
4241
4250
  }
@@ -4270,7 +4279,7 @@ var CardTopic = forwardRef12(
4270
4279
  /* @__PURE__ */ jsx26("p", { children: text }),
4271
4280
  index < subHead.length - 1 && /* @__PURE__ */ jsx26("p", { children: "\u2022" })
4272
4281
  ] }, `${text} - ${index}`)) }),
4273
- /* @__PURE__ */ jsx26("p", { className: "text-sm text-text-950 font-bold", children: header }),
4282
+ /* @__PURE__ */ jsx26("p", { className: "text-sm text-text-950 font-bold truncate", children: header }),
4274
4283
  /* @__PURE__ */ jsxs21("span", { className: "grid grid-cols-[1fr_auto] items-center gap-2", children: [
4275
4284
  /* @__PURE__ */ jsx26(
4276
4285
  ProgressBar_default,
@@ -4325,14 +4334,15 @@ var CardPerformance = forwardRef12(
4325
4334
  ...props,
4326
4335
  children: [
4327
4336
  /* @__PURE__ */ jsxs21("div", { className: "w-full flex flex-col justify-between gap-2", children: [
4328
- /* @__PURE__ */ jsxs21("div", { className: "flex flex-row justify-between items-center", children: [
4329
- /* @__PURE__ */ jsx26("p", { className: "text-lg font-bold text-text-950", children: header }),
4337
+ /* @__PURE__ */ jsxs21("div", { className: "flex flex-row justify-between items-center gap-2", children: [
4338
+ /* @__PURE__ */ jsx26("p", { className: "text-lg font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
4330
4339
  actionVariant === "button" && /* @__PURE__ */ jsx26(
4331
4340
  Button_default,
4332
4341
  {
4333
4342
  variant: "outline",
4334
4343
  size: "extra-small",
4335
4344
  onClick: () => onClickButton?.(valueButton),
4345
+ className: "min-w-fit flex-shrink-0",
4336
4346
  children: "Ver Aula"
4337
4347
  }
4338
4348
  )
@@ -4344,7 +4354,7 @@ var CardPerformance = forwardRef12(
4344
4354
  label: `${progress}% ${labelProgress}`,
4345
4355
  variant: progressVariant
4346
4356
  }
4347
- ) : /* @__PURE__ */ jsx26("p", { className: "text-xs text-text-600", children: description }) })
4357
+ ) : /* @__PURE__ */ jsx26("p", { className: "text-xs text-text-600 truncate", children: description }) })
4348
4358
  ] }),
4349
4359
  actionVariant == "caret" && /* @__PURE__ */ jsx26(
4350
4360
  CaretRight2,
@@ -4384,7 +4394,7 @@ var CardResults = forwardRef12(
4384
4394
  "div",
4385
4395
  {
4386
4396
  className: `
4387
- flex justify-center items-center [&>svg]:size-8 text-text-950 min-w-20 max-w-20 h-full rounded-l-xl
4397
+ flex justify-center items-center [&>svg]:size-8 text-text-950 min-w-20 max-w-20 min-h-20 h-full rounded-l-xl
4388
4398
  `,
4389
4399
  style: {
4390
4400
  backgroundColor: color
@@ -4397,10 +4407,10 @@ var CardResults = forwardRef12(
4397
4407
  {
4398
4408
  className: `
4399
4409
  p-4 flex justify-between w-full h-full
4400
- ${isRow ? "flex-row items-center" : "flex-col"}
4410
+ ${isRow ? "flex-row items-center gap-2" : "flex-col"}
4401
4411
  `,
4402
4412
  children: [
4403
- /* @__PURE__ */ jsx26("p", { className: "text-sm font-bold text-text-950", children: header }),
4413
+ /* @__PURE__ */ jsx26("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
4404
4414
  /* @__PURE__ */ jsxs21("span", { className: "flex flex-row gap-1 items-center", children: [
4405
4415
  /* @__PURE__ */ jsxs21(
4406
4416
  Badge_default,
@@ -4440,42 +4450,32 @@ var CardResults = forwardRef12(
4440
4450
  );
4441
4451
  var CardStatus = forwardRef12(
4442
4452
  ({ header, className, status, ...props }, ref) => {
4443
- return /* @__PURE__ */ jsxs21(
4453
+ return /* @__PURE__ */ jsx26(
4444
4454
  CardBase,
4445
4455
  {
4446
4456
  ref,
4447
4457
  layout: "horizontal",
4448
- padding: "none",
4458
+ padding: "medium",
4449
4459
  minHeight: "medium",
4450
- className: `items-center pr-4 ${className}`,
4460
+ className: `items-center ${className}`,
4451
4461
  ...props,
4452
- children: [
4453
- /* @__PURE__ */ jsxs21(
4454
- "div",
4455
- {
4456
- className: `
4457
- p-4 flex justify-between w-full h-full flex-row items-center
4458
- `,
4459
- children: [
4460
- /* @__PURE__ */ jsx26("p", { className: "text-sm font-bold text-text-950", children: header }),
4461
- status && /* @__PURE__ */ jsxs21("span", { className: "flex flex-row gap-1 items-center", children: [
4462
- /* @__PURE__ */ jsx26(
4463
- Badge_default,
4464
- {
4465
- action: status == "correct" ? "success" : "error",
4466
- variant: "solid",
4467
- size: "medium",
4468
- iconLeft: /* @__PURE__ */ jsx26(CheckCircle3, {}),
4469
- children: status == "correct" ? "Correta" : "Incorreta"
4470
- }
4471
- ),
4472
- /* @__PURE__ */ jsx26("p", { className: "text-sm text-text-800", children: "Respondida" })
4473
- ] })
4474
- ]
4475
- }
4476
- ),
4477
- /* @__PURE__ */ jsx26(CaretRight2, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer" })
4478
- ]
4462
+ children: /* @__PURE__ */ jsxs21("div", { className: "flex justify-between w-full h-full flex-row items-center gap-2", children: [
4463
+ /* @__PURE__ */ jsx26("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
4464
+ status && /* @__PURE__ */ jsxs21("span", { className: "flex flex-row gap-1 items-center flex-shrink-0", children: [
4465
+ /* @__PURE__ */ jsx26(
4466
+ Badge_default,
4467
+ {
4468
+ action: status == "correct" ? "success" : "error",
4469
+ variant: "solid",
4470
+ size: "medium",
4471
+ iconLeft: /* @__PURE__ */ jsx26(CheckCircle3, {}),
4472
+ children: status == "correct" ? "Correta" : "Incorreta"
4473
+ }
4474
+ ),
4475
+ /* @__PURE__ */ jsx26("p", { className: "text-sm text-text-800", children: "Respondida" })
4476
+ ] }),
4477
+ /* @__PURE__ */ jsx26(CaretRight2, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer flex-shrink-0 ml-2" })
4478
+ ] })
4479
4479
  }
4480
4480
  );
4481
4481
  }
@@ -4493,7 +4493,7 @@ var CardSettings = forwardRef12(
4493
4493
  ...props,
4494
4494
  children: [
4495
4495
  /* @__PURE__ */ jsx26("span", { className: "[&>svg]:size-6", children: icon }),
4496
- /* @__PURE__ */ jsx26("p", { className: "w-full text-sm", children: header }),
4496
+ /* @__PURE__ */ jsx26("p", { className: "w-full text-sm truncate", children: header }),
4497
4497
  /* @__PURE__ */ jsx26(CaretRight2, { size: 24, className: "cursor-pointer" })
4498
4498
  ]
4499
4499
  }
@@ -4519,7 +4519,7 @@ var CardSupport = forwardRef12(
4519
4519
  w-full flex ${direction == "col" ? "flex-col" : "flex-row items-center"} gap-2
4520
4520
  `,
4521
4521
  children: [
4522
- /* @__PURE__ */ jsx26("span", { className: "w-full", children: /* @__PURE__ */ jsx26("p", { className: "text-sm text-text-950 font-bold", children: header }) }),
4522
+ /* @__PURE__ */ jsx26("span", { className: "w-full min-w-0", children: /* @__PURE__ */ jsx26("p", { className: "text-sm text-text-950 font-bold truncate", children: header }) }),
4523
4523
  /* @__PURE__ */ jsx26("span", { className: "flex flex-row gap-1", children })
4524
4524
  ]
4525
4525
  }
@@ -4564,7 +4564,7 @@ var CardForum = forwardRef12(
4564
4564
  className: "min-w-8 h-8 rounded-full bg-background-950"
4565
4565
  }
4566
4566
  ),
4567
- /* @__PURE__ */ jsxs21("div", { className: "flex flex-col gap-2 flex-1", children: [
4567
+ /* @__PURE__ */ jsxs21("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
4568
4568
  /* @__PURE__ */ jsxs21("div", { className: "flex flex-row gap-1 items-center flex-wrap", children: [
4569
4569
  /* @__PURE__ */ jsx26("p", { className: "text-xs font-semibold text-primary-700 truncate", children: title }),
4570
4570
  /* @__PURE__ */ jsxs21("p", { className: "text-xs text-text-600", children: [
@@ -4574,7 +4574,7 @@ var CardForum = forwardRef12(
4574
4574
  hour
4575
4575
  ] })
4576
4576
  ] }),
4577
- /* @__PURE__ */ jsx26("p", { className: "text-text-950 text-sm line-clamp-2", children: content }),
4577
+ /* @__PURE__ */ jsx26("p", { className: "text-text-950 text-sm line-clamp-2 truncate", children: content }),
4578
4578
  /* @__PURE__ */ jsxs21(
4579
4579
  "button",
4580
4580
  {