analytica-frontend-lib 1.0.60 → 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/Card/index.d.mts +5 -0
- package/dist/Card/index.d.ts +5 -0
- package/dist/Card/index.js +18 -4
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +18 -4
- package/dist/Card/index.mjs.map +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/index.css +23 -11
- package/dist/index.css.map +1 -1
- package/dist/index.js +19 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -5
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +23 -11
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3817,7 +3817,7 @@ var MenuItem = (0, import_react13.forwardRef)(
|
|
|
3817
3817
|
{
|
|
3818
3818
|
"data-variant": "menu",
|
|
3819
3819
|
className: `
|
|
3820
|
-
w-full flex flex-col gap-0.5
|
|
3820
|
+
w-full flex flex-col items-center justify-center gap-0.5 py-1 px-2 rounded-sm font-medium text-xs
|
|
3821
3821
|
[&>svg]:size-6 cursor-pointer hover:bg-primary-600 hover:text-text
|
|
3822
3822
|
focus:outline-none focus:border-indicator-info focus:border-2
|
|
3823
3823
|
${selectedValue === value ? "bg-primary-50 text-primary-950" : "text-text-950"}
|
|
@@ -4178,13 +4178,15 @@ var CardProgress = (0, import_react14.forwardRef)(
|
|
|
4178
4178
|
direction = "horizontal",
|
|
4179
4179
|
icon,
|
|
4180
4180
|
color = "#B7DFFF",
|
|
4181
|
+
progressVariant = "blue",
|
|
4182
|
+
showDates = true,
|
|
4181
4183
|
className,
|
|
4182
4184
|
...props
|
|
4183
4185
|
}, ref) => {
|
|
4184
4186
|
const isHorizontal = direction === "horizontal";
|
|
4185
4187
|
const contentComponent = {
|
|
4186
4188
|
horizontal: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
|
|
4187
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-row gap-6 items-center", children: [
|
|
4189
|
+
showDates && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-row gap-6 items-center", children: [
|
|
4188
4190
|
initialDate && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("span", { className: "flex flex-row gap-1 items-center text-2xs", children: [
|
|
4189
4191
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-text-800 font-semibold", children: "In\xEDcio" }),
|
|
4190
4192
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-text-600", children: initialDate })
|
|
@@ -4200,6 +4202,7 @@ var CardProgress = (0, import_react14.forwardRef)(
|
|
|
4200
4202
|
{
|
|
4201
4203
|
size: "small",
|
|
4202
4204
|
value: progress,
|
|
4205
|
+
variant: progressVariant,
|
|
4203
4206
|
"data-testid": "progress-bar"
|
|
4204
4207
|
}
|
|
4205
4208
|
),
|
|
@@ -4267,6 +4270,7 @@ var CardTopic = (0, import_react14.forwardRef)(
|
|
|
4267
4270
|
subHead,
|
|
4268
4271
|
progress,
|
|
4269
4272
|
showPercentage = false,
|
|
4273
|
+
progressVariant = "blue",
|
|
4270
4274
|
className = "",
|
|
4271
4275
|
...props
|
|
4272
4276
|
}, ref) => {
|
|
@@ -4292,6 +4296,7 @@ var CardTopic = (0, import_react14.forwardRef)(
|
|
|
4292
4296
|
{
|
|
4293
4297
|
size: "small",
|
|
4294
4298
|
value: progress,
|
|
4299
|
+
variant: progressVariant,
|
|
4295
4300
|
"data-testid": "progress-bar"
|
|
4296
4301
|
}
|
|
4297
4302
|
),
|
|
@@ -4318,6 +4323,8 @@ var CardPerformance = (0, import_react14.forwardRef)(
|
|
|
4318
4323
|
header,
|
|
4319
4324
|
progress,
|
|
4320
4325
|
description = "Sem dados ainda! Voc\xEA ainda n\xE3o fez um question\xE1rio neste assunto.",
|
|
4326
|
+
actionVariant = "button",
|
|
4327
|
+
progressVariant = "blue",
|
|
4321
4328
|
className = "",
|
|
4322
4329
|
onClickButton,
|
|
4323
4330
|
valueButton,
|
|
@@ -4337,7 +4344,7 @@ var CardPerformance = (0, import_react14.forwardRef)(
|
|
|
4337
4344
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "w-full flex flex-col justify-between gap-2", children: [
|
|
4338
4345
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-row justify-between items-center", children: [
|
|
4339
4346
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-lg font-bold text-text-950", children: header }),
|
|
4340
|
-
|
|
4347
|
+
actionVariant === "button" && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4341
4348
|
Button_default,
|
|
4342
4349
|
{
|
|
4343
4350
|
variant: "outline",
|
|
@@ -4347,9 +4354,16 @@ var CardPerformance = (0, import_react14.forwardRef)(
|
|
|
4347
4354
|
}
|
|
4348
4355
|
)
|
|
4349
4356
|
] }),
|
|
4350
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "w-full", children: hasProgress ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4357
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "w-full", children: hasProgress ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4358
|
+
ProgressBar_default,
|
|
4359
|
+
{
|
|
4360
|
+
value: progress,
|
|
4361
|
+
label: `${progress}% corretas`,
|
|
4362
|
+
variant: progressVariant
|
|
4363
|
+
}
|
|
4364
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-xs text-text-600", children: description }) })
|
|
4351
4365
|
] }),
|
|
4352
|
-
|
|
4366
|
+
actionVariant == "caret" && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4353
4367
|
import_phosphor_react13.CaretRight,
|
|
4354
4368
|
{
|
|
4355
4369
|
className: "size-4.5 text-text-800 cursor-pointer",
|