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/Card/index.js +48 -48
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +48 -48
- package/dist/Card/index.mjs.map +1 -1
- package/dist/Menu/index.js +4 -4
- package/dist/Menu/index.js.map +1 -1
- package/dist/Menu/index.mjs +4 -4
- package/dist/Menu/index.mjs.map +1 -1
- package/dist/index.css +15 -4
- package/dist/index.css.map +1 -1
- package/dist/index.js +52 -52
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +52 -52
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +15 -4
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3714,7 +3714,7 @@ var useMenuStore = (externalStore) => {
|
|
|
3714
3714
|
return externalStore;
|
|
3715
3715
|
};
|
|
3716
3716
|
var VARIANT_CLASSES5 = {
|
|
3717
|
-
menu: "bg-background shadow-soft-shadow-1",
|
|
3717
|
+
menu: "bg-background shadow-soft-shadow-1 px-6",
|
|
3718
3718
|
menu2: "",
|
|
3719
3719
|
breadcrumb: ""
|
|
3720
3720
|
};
|
|
@@ -3735,7 +3735,7 @@ var Menu = (0, import_react13.forwardRef)(
|
|
|
3735
3735
|
(0, import_react13.useEffect)(() => {
|
|
3736
3736
|
setValue(propValue ?? defaultValue);
|
|
3737
3737
|
}, [defaultValue, propValue, setValue]);
|
|
3738
|
-
const baseClasses = "w-full py-2
|
|
3738
|
+
const baseClasses = "w-full py-2 flex flex-row items-center justify-center";
|
|
3739
3739
|
const variantClasses = VARIANT_CLASSES5[variant];
|
|
3740
3740
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3741
3741
|
"div",
|
|
@@ -3829,7 +3829,7 @@ var MenuItem = (0, import_react13.forwardRef)(
|
|
|
3829
3829
|
{
|
|
3830
3830
|
"data-variant": "menu2",
|
|
3831
3831
|
className: `
|
|
3832
|
-
w-full flex flex-col items-center px-
|
|
3832
|
+
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
|
|
3833
3833
|
focus:outline-none focus:border-indicator-info focus:border-2
|
|
3834
3834
|
${selectedValue === value ? "" : "pb-4"}
|
|
3835
3835
|
`,
|
|
@@ -3838,7 +3838,7 @@ var MenuItem = (0, import_react13.forwardRef)(
|
|
|
3838
3838
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3839
3839
|
"span",
|
|
3840
3840
|
{
|
|
3841
|
-
className: `flex flex-row items-center gap-2 px-
|
|
3841
|
+
className: `flex flex-row items-center gap-2 px-4 text-text-950 text-xs font-bold ${className ?? ""}`,
|
|
3842
3842
|
children
|
|
3843
3843
|
}
|
|
3844
3844
|
),
|
|
@@ -4097,8 +4097,16 @@ var CardActivitiesResults = (0, import_react14.forwardRef)(
|
|
|
4097
4097
|
children: icon
|
|
4098
4098
|
}
|
|
4099
4099
|
),
|
|
4100
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4101
|
-
|
|
4100
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4101
|
+
Text_default,
|
|
4102
|
+
{
|
|
4103
|
+
size: "2xs",
|
|
4104
|
+
weight: "medium",
|
|
4105
|
+
className: "text-text-800 uppercase truncate",
|
|
4106
|
+
children: title
|
|
4107
|
+
}
|
|
4108
|
+
),
|
|
4109
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: `text-lg font-bold truncate ${actionSubTitleClasses}`, children: subTitle })
|
|
4102
4110
|
]
|
|
4103
4111
|
}
|
|
4104
4112
|
),
|
|
@@ -4106,7 +4114,7 @@ var CardActivitiesResults = (0, import_react14.forwardRef)(
|
|
|
4106
4114
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4107
4115
|
"p",
|
|
4108
4116
|
{
|
|
4109
|
-
className: `text-2xs font-medium uppercase ${actionHeaderClasses}`,
|
|
4117
|
+
className: `text-2xs font-medium uppercase truncate ${actionHeaderClasses}`,
|
|
4110
4118
|
children: header
|
|
4111
4119
|
}
|
|
4112
4120
|
),
|
|
@@ -4139,8 +4147,8 @@ var CardQuestions = (0, import_react14.forwardRef)(
|
|
|
4139
4147
|
className: `justify-between gap-4 ${className}`,
|
|
4140
4148
|
...props,
|
|
4141
4149
|
children: [
|
|
4142
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("section", { className: "flex flex-col gap-1", children: [
|
|
4143
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "font-bold text-xs text-text-950", children: header }),
|
|
4150
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("section", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
4151
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "font-bold text-xs text-text-950 truncate", children: header }),
|
|
4144
4152
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-row gap-6 items-center", children: [
|
|
4145
4153
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4146
4154
|
Badge_default,
|
|
@@ -4157,11 +4165,12 @@ var CardQuestions = (0, import_react14.forwardRef)(
|
|
|
4157
4165
|
] })
|
|
4158
4166
|
] })
|
|
4159
4167
|
] }),
|
|
4160
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4168
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "flex-shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4161
4169
|
Button_default,
|
|
4162
4170
|
{
|
|
4163
4171
|
size: "extra-small",
|
|
4164
4172
|
onClick: () => onClickButton?.(valueButton),
|
|
4173
|
+
className: "min-w-fit",
|
|
4165
4174
|
children: buttonLabel
|
|
4166
4175
|
}
|
|
4167
4176
|
) })
|
|
@@ -4256,7 +4265,7 @@ var CardProgress = (0, import_react14.forwardRef)(
|
|
|
4256
4265
|
${!isHorizontal && "gap-4"}
|
|
4257
4266
|
`,
|
|
4258
4267
|
children: [
|
|
4259
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Text_default, { size: "sm", weight: "bold", className: "text-text-950", children: header }),
|
|
4268
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Text_default, { size: "sm", weight: "bold", className: "text-text-950 truncate", children: header }),
|
|
4260
4269
|
contentComponent[direction]
|
|
4261
4270
|
]
|
|
4262
4271
|
}
|
|
@@ -4291,7 +4300,7 @@ var CardTopic = (0, import_react14.forwardRef)(
|
|
|
4291
4300
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { children: text }),
|
|
4292
4301
|
index < subHead.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { children: "\u2022" })
|
|
4293
4302
|
] }, `${text} - ${index}`)) }),
|
|
4294
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-sm text-text-950 font-bold", children: header }),
|
|
4303
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-sm text-text-950 font-bold truncate", children: header }),
|
|
4295
4304
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("span", { className: "grid grid-cols-[1fr_auto] items-center gap-2", children: [
|
|
4296
4305
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4297
4306
|
ProgressBar_default,
|
|
@@ -4346,14 +4355,15 @@ var CardPerformance = (0, import_react14.forwardRef)(
|
|
|
4346
4355
|
...props,
|
|
4347
4356
|
children: [
|
|
4348
4357
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "w-full flex flex-col justify-between gap-2", children: [
|
|
4349
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-row justify-between items-center", children: [
|
|
4350
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-lg font-bold text-text-950", children: header }),
|
|
4358
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-row justify-between items-center gap-2", children: [
|
|
4359
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-lg font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
4351
4360
|
actionVariant === "button" && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4352
4361
|
Button_default,
|
|
4353
4362
|
{
|
|
4354
4363
|
variant: "outline",
|
|
4355
4364
|
size: "extra-small",
|
|
4356
4365
|
onClick: () => onClickButton?.(valueButton),
|
|
4366
|
+
className: "min-w-fit flex-shrink-0",
|
|
4357
4367
|
children: "Ver Aula"
|
|
4358
4368
|
}
|
|
4359
4369
|
)
|
|
@@ -4365,7 +4375,7 @@ var CardPerformance = (0, import_react14.forwardRef)(
|
|
|
4365
4375
|
label: `${progress}% ${labelProgress}`,
|
|
4366
4376
|
variant: progressVariant
|
|
4367
4377
|
}
|
|
4368
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-xs text-text-600", children: description }) })
|
|
4378
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-xs text-text-600 truncate", children: description }) })
|
|
4369
4379
|
] }),
|
|
4370
4380
|
actionVariant == "caret" && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4371
4381
|
import_phosphor_react13.CaretRight,
|
|
@@ -4405,7 +4415,7 @@ var CardResults = (0, import_react14.forwardRef)(
|
|
|
4405
4415
|
"div",
|
|
4406
4416
|
{
|
|
4407
4417
|
className: `
|
|
4408
|
-
flex justify-center items-center [&>svg]:size-8 text-text-950 min-w-20 max-w-20 h-full rounded-l-xl
|
|
4418
|
+
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
|
|
4409
4419
|
`,
|
|
4410
4420
|
style: {
|
|
4411
4421
|
backgroundColor: color
|
|
@@ -4418,10 +4428,10 @@ var CardResults = (0, import_react14.forwardRef)(
|
|
|
4418
4428
|
{
|
|
4419
4429
|
className: `
|
|
4420
4430
|
p-4 flex justify-between w-full h-full
|
|
4421
|
-
${isRow ? "flex-row items-center" : "flex-col"}
|
|
4431
|
+
${isRow ? "flex-row items-center gap-2" : "flex-col"}
|
|
4422
4432
|
`,
|
|
4423
4433
|
children: [
|
|
4424
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-sm font-bold text-text-950", children: header }),
|
|
4434
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
4425
4435
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("span", { className: "flex flex-row gap-1 items-center", children: [
|
|
4426
4436
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
4427
4437
|
Badge_default,
|
|
@@ -4461,42 +4471,32 @@ var CardResults = (0, import_react14.forwardRef)(
|
|
|
4461
4471
|
);
|
|
4462
4472
|
var CardStatus = (0, import_react14.forwardRef)(
|
|
4463
4473
|
({ header, className, status, ...props }, ref) => {
|
|
4464
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.
|
|
4474
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4465
4475
|
CardBase,
|
|
4466
4476
|
{
|
|
4467
4477
|
ref,
|
|
4468
4478
|
layout: "horizontal",
|
|
4469
|
-
padding: "
|
|
4479
|
+
padding: "medium",
|
|
4470
4480
|
minHeight: "medium",
|
|
4471
|
-
className: `items-center
|
|
4481
|
+
className: `items-center ${className}`,
|
|
4472
4482
|
...props,
|
|
4473
|
-
children: [
|
|
4474
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
children: status == "correct" ? "Correta" : "Incorreta"
|
|
4491
|
-
}
|
|
4492
|
-
),
|
|
4493
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-sm text-text-800", children: "Respondida" })
|
|
4494
|
-
] })
|
|
4495
|
-
]
|
|
4496
|
-
}
|
|
4497
|
-
),
|
|
4498
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_phosphor_react13.CaretRight, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer" })
|
|
4499
|
-
]
|
|
4483
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex justify-between w-full h-full flex-row items-center gap-2", children: [
|
|
4484
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
4485
|
+
status && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("span", { className: "flex flex-row gap-1 items-center flex-shrink-0", children: [
|
|
4486
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4487
|
+
Badge_default,
|
|
4488
|
+
{
|
|
4489
|
+
action: status == "correct" ? "success" : "error",
|
|
4490
|
+
variant: "solid",
|
|
4491
|
+
size: "medium",
|
|
4492
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_phosphor_react13.CheckCircle, {}),
|
|
4493
|
+
children: status == "correct" ? "Correta" : "Incorreta"
|
|
4494
|
+
}
|
|
4495
|
+
),
|
|
4496
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-sm text-text-800", children: "Respondida" })
|
|
4497
|
+
] }),
|
|
4498
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_phosphor_react13.CaretRight, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer flex-shrink-0 ml-2" })
|
|
4499
|
+
] })
|
|
4500
4500
|
}
|
|
4501
4501
|
);
|
|
4502
4502
|
}
|
|
@@ -4514,7 +4514,7 @@ var CardSettings = (0, import_react14.forwardRef)(
|
|
|
4514
4514
|
...props,
|
|
4515
4515
|
children: [
|
|
4516
4516
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "[&>svg]:size-6", children: icon }),
|
|
4517
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "w-full text-sm", children: header }),
|
|
4517
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "w-full text-sm truncate", children: header }),
|
|
4518
4518
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_phosphor_react13.CaretRight, { size: 24, className: "cursor-pointer" })
|
|
4519
4519
|
]
|
|
4520
4520
|
}
|
|
@@ -4540,7 +4540,7 @@ var CardSupport = (0, import_react14.forwardRef)(
|
|
|
4540
4540
|
w-full flex ${direction == "col" ? "flex-col" : "flex-row items-center"} gap-2
|
|
4541
4541
|
`,
|
|
4542
4542
|
children: [
|
|
4543
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "w-full", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-sm text-text-950 font-bold", children: header }) }),
|
|
4543
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "w-full min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-sm text-text-950 font-bold truncate", children: header }) }),
|
|
4544
4544
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "flex flex-row gap-1", children })
|
|
4545
4545
|
]
|
|
4546
4546
|
}
|
|
@@ -4585,7 +4585,7 @@ var CardForum = (0, import_react14.forwardRef)(
|
|
|
4585
4585
|
className: "min-w-8 h-8 rounded-full bg-background-950"
|
|
4586
4586
|
}
|
|
4587
4587
|
),
|
|
4588
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-col gap-2 flex-1", children: [
|
|
4588
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
|
|
4589
4589
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-row gap-1 items-center flex-wrap", children: [
|
|
4590
4590
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-xs font-semibold text-primary-700 truncate", children: title }),
|
|
4591
4591
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("p", { className: "text-xs text-text-600", children: [
|
|
@@ -4595,7 +4595,7 @@ var CardForum = (0, import_react14.forwardRef)(
|
|
|
4595
4595
|
hour
|
|
4596
4596
|
] })
|
|
4597
4597
|
] }),
|
|
4598
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-text-950 text-sm line-clamp-2", children: content }),
|
|
4598
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-text-950 text-sm line-clamp-2 truncate", children: content }),
|
|
4599
4599
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
4600
4600
|
"button",
|
|
4601
4601
|
{
|