analytica-frontend-lib 1.0.65 → 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/Card/index.js +30 -20
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +30 -20
- 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 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +34 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +34 -24
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +15 -0
- 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 border-b-4 border-transparent 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,
|
|
@@ -4475,10 +4485,10 @@ var CardStatus = (0, import_react14.forwardRef)(
|
|
|
4475
4485
|
"div",
|
|
4476
4486
|
{
|
|
4477
4487
|
className: `
|
|
4478
|
-
p-4 flex justify-between w-full h-full flex-row items-center
|
|
4488
|
+
p-4 flex justify-between w-full h-full flex-row items-center gap-2
|
|
4479
4489
|
`,
|
|
4480
4490
|
children: [
|
|
4481
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-sm font-bold text-text-950", children: header }),
|
|
4491
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
4482
4492
|
status && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("span", { className: "flex flex-row gap-1 items-center", children: [
|
|
4483
4493
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4484
4494
|
Badge_default,
|
|
@@ -4514,7 +4524,7 @@ var CardSettings = (0, import_react14.forwardRef)(
|
|
|
4514
4524
|
...props,
|
|
4515
4525
|
children: [
|
|
4516
4526
|
/* @__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 }),
|
|
4527
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "w-full text-sm truncate", children: header }),
|
|
4518
4528
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_phosphor_react13.CaretRight, { size: 24, className: "cursor-pointer" })
|
|
4519
4529
|
]
|
|
4520
4530
|
}
|
|
@@ -4540,7 +4550,7 @@ var CardSupport = (0, import_react14.forwardRef)(
|
|
|
4540
4550
|
w-full flex ${direction == "col" ? "flex-col" : "flex-row items-center"} gap-2
|
|
4541
4551
|
`,
|
|
4542
4552
|
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 }) }),
|
|
4553
|
+
/* @__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
4554
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "flex flex-row gap-1", children })
|
|
4545
4555
|
]
|
|
4546
4556
|
}
|
|
@@ -4585,7 +4595,7 @@ var CardForum = (0, import_react14.forwardRef)(
|
|
|
4585
4595
|
className: "min-w-8 h-8 rounded-full bg-background-950"
|
|
4586
4596
|
}
|
|
4587
4597
|
),
|
|
4588
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-col gap-2 flex-1", children: [
|
|
4598
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
|
|
4589
4599
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-row gap-1 items-center flex-wrap", children: [
|
|
4590
4600
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-xs font-semibold text-primary-700 truncate", children: title }),
|
|
4591
4601
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("p", { className: "text-xs text-text-600", children: [
|
|
@@ -4595,7 +4605,7 @@ var CardForum = (0, import_react14.forwardRef)(
|
|
|
4595
4605
|
hour
|
|
4596
4606
|
] })
|
|
4597
4607
|
] }),
|
|
4598
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-text-950 text-sm line-clamp-2", children: content }),
|
|
4608
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-text-950 text-sm line-clamp-2 truncate", children: content }),
|
|
4599
4609
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
4600
4610
|
"button",
|
|
4601
4611
|
{
|