analytica-frontend-lib 1.0.59 → 1.0.61

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
@@ -3780,7 +3780,7 @@ var MenuItem = forwardRef11(
3780
3780
  {
3781
3781
  "data-variant": "menu",
3782
3782
  className: `
3783
- w-full flex flex-col gap-0.5 items-center py-1 px-2 rounded-sm font-medium text-xs
3783
+ w-full flex flex-col items-center justify-center gap-0.5 py-1 px-2 rounded-sm font-medium text-xs
3784
3784
  [&>svg]:size-6 cursor-pointer hover:bg-primary-600 hover:text-text
3785
3785
  focus:outline-none focus:border-indicator-info focus:border-2
3786
3786
  ${selectedValue === value ? "bg-primary-50 text-primary-950" : "text-text-950"}
@@ -4156,13 +4156,15 @@ var CardProgress = forwardRef12(
4156
4156
  direction = "horizontal",
4157
4157
  icon,
4158
4158
  color = "#B7DFFF",
4159
+ progressVariant = "blue",
4160
+ showDates = true,
4159
4161
  className,
4160
4162
  ...props
4161
4163
  }, ref) => {
4162
4164
  const isHorizontal = direction === "horizontal";
4163
4165
  const contentComponent = {
4164
4166
  horizontal: /* @__PURE__ */ jsxs21(Fragment5, { children: [
4165
- /* @__PURE__ */ jsxs21("div", { className: "flex flex-row gap-6 items-center", children: [
4167
+ showDates && /* @__PURE__ */ jsxs21("div", { className: "flex flex-row gap-6 items-center", children: [
4166
4168
  initialDate && /* @__PURE__ */ jsxs21("span", { className: "flex flex-row gap-1 items-center text-2xs", children: [
4167
4169
  /* @__PURE__ */ jsx26("p", { className: "text-text-800 font-semibold", children: "In\xEDcio" }),
4168
4170
  /* @__PURE__ */ jsx26("p", { className: "text-text-600", children: initialDate })
@@ -4178,6 +4180,7 @@ var CardProgress = forwardRef12(
4178
4180
  {
4179
4181
  size: "small",
4180
4182
  value: progress,
4183
+ variant: progressVariant,
4181
4184
  "data-testid": "progress-bar"
4182
4185
  }
4183
4186
  ),
@@ -4245,6 +4248,7 @@ var CardTopic = forwardRef12(
4245
4248
  subHead,
4246
4249
  progress,
4247
4250
  showPercentage = false,
4251
+ progressVariant = "blue",
4248
4252
  className = "",
4249
4253
  ...props
4250
4254
  }, ref) => {
@@ -4270,6 +4274,7 @@ var CardTopic = forwardRef12(
4270
4274
  {
4271
4275
  size: "small",
4272
4276
  value: progress,
4277
+ variant: progressVariant,
4273
4278
  "data-testid": "progress-bar"
4274
4279
  }
4275
4280
  ),
@@ -4296,6 +4301,8 @@ var CardPerformance = forwardRef12(
4296
4301
  header,
4297
4302
  progress,
4298
4303
  description = "Sem dados ainda! Voc\xEA ainda n\xE3o fez um question\xE1rio neste assunto.",
4304
+ actionVariant = "button",
4305
+ progressVariant = "blue",
4299
4306
  className = "",
4300
4307
  onClickButton,
4301
4308
  valueButton,
@@ -4315,7 +4322,7 @@ var CardPerformance = forwardRef12(
4315
4322
  /* @__PURE__ */ jsxs21("div", { className: "w-full flex flex-col justify-between gap-2", children: [
4316
4323
  /* @__PURE__ */ jsxs21("div", { className: "flex flex-row justify-between items-center", children: [
4317
4324
  /* @__PURE__ */ jsx26("p", { className: "text-lg font-bold text-text-950", children: header }),
4318
- hasProgress && /* @__PURE__ */ jsx26(
4325
+ actionVariant === "button" && /* @__PURE__ */ jsx26(
4319
4326
  Button_default,
4320
4327
  {
4321
4328
  variant: "outline",
@@ -4325,9 +4332,16 @@ var CardPerformance = forwardRef12(
4325
4332
  }
4326
4333
  )
4327
4334
  ] }),
4328
- /* @__PURE__ */ jsx26("div", { className: "w-full", children: hasProgress ? /* @__PURE__ */ jsx26(ProgressBar_default, { value: progress, label: `${progress}% corretas` }) : /* @__PURE__ */ jsx26("p", { className: "text-xs text-text-600", children: description }) })
4335
+ /* @__PURE__ */ jsx26("div", { className: "w-full", children: hasProgress ? /* @__PURE__ */ jsx26(
4336
+ ProgressBar_default,
4337
+ {
4338
+ value: progress,
4339
+ label: `${progress}% corretas`,
4340
+ variant: progressVariant
4341
+ }
4342
+ ) : /* @__PURE__ */ jsx26("p", { className: "text-xs text-text-600", children: description }) })
4329
4343
  ] }),
4330
- !hasProgress && /* @__PURE__ */ jsx26(
4344
+ actionVariant == "caret" && /* @__PURE__ */ jsx26(
4331
4345
  CaretRight2,
4332
4346
  {
4333
4347
  className: "size-4.5 text-text-800 cursor-pointer",