analytica-frontend-lib 1.0.64 → 1.0.66

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 border-b-4 border-transparent 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
  ) })
@@ -4220,10 +4229,10 @@ var CardProgress = forwardRef12(
4220
4229
  className: `
4221
4230
  flex justify-center items-center [&>svg]:size-6 text-text-950
4222
4231
  ${isHorizontal ? "min-w-[80px] min-h-[80px] rounded-l-xl" : "min-h-[50px] w-full rounded-t-xl"}
4232
+ ${!color.startsWith("#") ? `bg-${color}` : ""}
4223
4233
  `,
4224
- style: {
4225
- backgroundColor: color
4226
- },
4234
+ style: color.startsWith("#") ? { backgroundColor: color } : void 0,
4235
+ "data-testid": "icon-container",
4227
4236
  children: icon
4228
4237
  }
4229
4238
  ),
@@ -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,
@@ -4454,10 +4464,10 @@ var CardStatus = forwardRef12(
4454
4464
  "div",
4455
4465
  {
4456
4466
  className: `
4457
- p-4 flex justify-between w-full h-full flex-row items-center
4467
+ p-4 flex justify-between w-full h-full flex-row items-center gap-2
4458
4468
  `,
4459
4469
  children: [
4460
- /* @__PURE__ */ jsx26("p", { className: "text-sm font-bold text-text-950", children: header }),
4470
+ /* @__PURE__ */ jsx26("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
4461
4471
  status && /* @__PURE__ */ jsxs21("span", { className: "flex flex-row gap-1 items-center", children: [
4462
4472
  /* @__PURE__ */ jsx26(
4463
4473
  Badge_default,
@@ -4493,7 +4503,7 @@ var CardSettings = forwardRef12(
4493
4503
  ...props,
4494
4504
  children: [
4495
4505
  /* @__PURE__ */ jsx26("span", { className: "[&>svg]:size-6", children: icon }),
4496
- /* @__PURE__ */ jsx26("p", { className: "w-full text-sm", children: header }),
4506
+ /* @__PURE__ */ jsx26("p", { className: "w-full text-sm truncate", children: header }),
4497
4507
  /* @__PURE__ */ jsx26(CaretRight2, { size: 24, className: "cursor-pointer" })
4498
4508
  ]
4499
4509
  }
@@ -4519,7 +4529,7 @@ var CardSupport = forwardRef12(
4519
4529
  w-full flex ${direction == "col" ? "flex-col" : "flex-row items-center"} gap-2
4520
4530
  `,
4521
4531
  children: [
4522
- /* @__PURE__ */ jsx26("span", { className: "w-full", children: /* @__PURE__ */ jsx26("p", { className: "text-sm text-text-950 font-bold", children: header }) }),
4532
+ /* @__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
4533
  /* @__PURE__ */ jsx26("span", { className: "flex flex-row gap-1", children })
4524
4534
  ]
4525
4535
  }
@@ -4564,7 +4574,7 @@ var CardForum = forwardRef12(
4564
4574
  className: "min-w-8 h-8 rounded-full bg-background-950"
4565
4575
  }
4566
4576
  ),
4567
- /* @__PURE__ */ jsxs21("div", { className: "flex flex-col gap-2 flex-1", children: [
4577
+ /* @__PURE__ */ jsxs21("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
4568
4578
  /* @__PURE__ */ jsxs21("div", { className: "flex flex-row gap-1 items-center flex-wrap", children: [
4569
4579
  /* @__PURE__ */ jsx26("p", { className: "text-xs font-semibold text-primary-700 truncate", children: title }),
4570
4580
  /* @__PURE__ */ jsxs21("p", { className: "text-xs text-text-600", children: [
@@ -4574,7 +4584,7 @@ var CardForum = forwardRef12(
4574
4584
  hour
4575
4585
  ] })
4576
4586
  ] }),
4577
- /* @__PURE__ */ jsx26("p", { className: "text-text-950 text-sm line-clamp-2", children: content }),
4587
+ /* @__PURE__ */ jsx26("p", { className: "text-text-950 text-sm line-clamp-2 truncate", children: content }),
4578
4588
  /* @__PURE__ */ jsxs21(
4579
4589
  "button",
4580
4590
  {