analytica-frontend-lib 1.0.60 → 1.0.62
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/Card/index.d.mts +8 -3
- package/dist/Card/index.d.ts +8 -3
- package/dist/Card/index.js +22 -8
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +21 -7
- package/dist/Card/index.mjs.map +1 -1
- package/dist/CheckBox/index.d.mts +1 -1
- package/dist/CheckBox/index.d.ts +1 -1
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.js.map +1 -1
- package/dist/Menu/index.mjs +1 -1
- package/dist/Menu/index.mjs.map +1 -1
- package/dist/Radio/index.d.mts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/index.css +23 -8
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +23 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -8
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +23 -8
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
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
|
|
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"}
|
|
@@ -4035,7 +4035,7 @@ var ACTION_HEADER_CLASSES = {
|
|
|
4035
4035
|
error: "text-error-300",
|
|
4036
4036
|
info: "text-info-300"
|
|
4037
4037
|
};
|
|
4038
|
-
var
|
|
4038
|
+
var CardActivitiesResults = forwardRef12(
|
|
4039
4039
|
({
|
|
4040
4040
|
icon,
|
|
4041
4041
|
title,
|
|
@@ -4086,7 +4086,7 @@ var CardActivesResults = forwardRef12(
|
|
|
4086
4086
|
children: header
|
|
4087
4087
|
}
|
|
4088
4088
|
),
|
|
4089
|
-
/* @__PURE__ */ jsx26(
|
|
4089
|
+
/* @__PURE__ */ jsx26(Badge_default, { size: "large", action: "info", children: description })
|
|
4090
4090
|
] })
|
|
4091
4091
|
]
|
|
4092
4092
|
}
|
|
@@ -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
|
-
|
|
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(
|
|
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
|
-
|
|
4344
|
+
actionVariant == "caret" && /* @__PURE__ */ jsx26(
|
|
4331
4345
|
CaretRight2,
|
|
4332
4346
|
{
|
|
4333
4347
|
className: "size-4.5 text-text-800 cursor-pointer",
|
|
@@ -4973,7 +4987,7 @@ export {
|
|
|
4973
4987
|
Badge_default as Badge,
|
|
4974
4988
|
Button_default as Button,
|
|
4975
4989
|
Calendar_default as Calendar,
|
|
4976
|
-
|
|
4990
|
+
CardActivitiesResults,
|
|
4977
4991
|
CardPerformance,
|
|
4978
4992
|
CardProgress,
|
|
4979
4993
|
CardQuestions,
|