analytica-frontend-lib 1.0.78 → 1.0.80
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/Accordation/index.js +13 -7
- package/dist/Accordation/index.js.map +1 -1
- package/dist/Accordation/index.mjs +13 -7
- package/dist/Accordation/index.mjs.map +1 -1
- package/dist/Alternative/index.js +10 -4
- package/dist/Alternative/index.js.map +1 -1
- package/dist/Alternative/index.mjs +10 -4
- package/dist/Alternative/index.mjs.map +1 -1
- package/dist/Badge/index.d.mts +1 -1
- package/dist/Badge/index.d.ts +1 -1
- package/dist/Badge/index.js +6 -0
- package/dist/Badge/index.js.map +1 -1
- package/dist/Badge/index.mjs +6 -0
- package/dist/Badge/index.mjs.map +1 -1
- package/dist/Card/index.d.mts +1 -0
- package/dist/Card/index.d.ts +1 -0
- package/dist/Card/index.js +13 -7
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +13 -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/Radio/index.d.mts +2 -2
- package/dist/Radio/index.d.ts +2 -2
- package/dist/index.js +17 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -232,6 +232,12 @@ var VARIANT_ACTION_CLASSES2 = {
|
|
|
232
232
|
exam3: "bg-exam-3 text-typography-2 focus-visible:outline-none",
|
|
233
233
|
exam4: "bg-exam-4 text-success-700 focus-visible:outline-none"
|
|
234
234
|
},
|
|
235
|
+
examsOutlined: {
|
|
236
|
+
exam1: "bg-exam-1 text-info-700 border border-info-700 focus-visible:outline-none",
|
|
237
|
+
exam2: "bg-exam-2 text-typography-1 border border-typography-1 focus-visible:outline-none",
|
|
238
|
+
exam3: "bg-exam-3 text-typography-2 border border-typography-2 focus-visible:outline-none",
|
|
239
|
+
exam4: "bg-exam-4 text-success-700 border border-success-700 focus-visible:outline-none"
|
|
240
|
+
},
|
|
235
241
|
resultStatus: {
|
|
236
242
|
negative: "bg-error text-error-800 focus-visible:outline-none",
|
|
237
243
|
positive: "bg-success text-success-800 focus-visible:outline-none"
|
|
@@ -3603,7 +3609,7 @@ var CardResults = (0, import_react11.forwardRef)(
|
|
|
3603
3609
|
layout: "horizontal",
|
|
3604
3610
|
padding: "none",
|
|
3605
3611
|
minHeight: "medium",
|
|
3606
|
-
className: `items-center pr-4 ${className}`,
|
|
3612
|
+
className: `items-center cursor-pointer pr-4 ${className}`,
|
|
3607
3613
|
...props,
|
|
3608
3614
|
children: [
|
|
3609
3615
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
@@ -3633,7 +3639,7 @@ var CardResults = (0, import_react11.forwardRef)(
|
|
|
3633
3639
|
{
|
|
3634
3640
|
action: "success",
|
|
3635
3641
|
variant: "solid",
|
|
3636
|
-
size: "
|
|
3642
|
+
size: "large",
|
|
3637
3643
|
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_phosphor_react10.CheckCircle, {}),
|
|
3638
3644
|
children: [
|
|
3639
3645
|
correct_answers,
|
|
@@ -3646,7 +3652,7 @@ var CardResults = (0, import_react11.forwardRef)(
|
|
|
3646
3652
|
{
|
|
3647
3653
|
action: "error",
|
|
3648
3654
|
variant: "solid",
|
|
3649
|
-
size: "
|
|
3655
|
+
size: "large",
|
|
3650
3656
|
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_phosphor_react10.XCircle, {}),
|
|
3651
3657
|
children: [
|
|
3652
3658
|
incorrect_answers,
|
|
@@ -3658,14 +3664,14 @@ var CardResults = (0, import_react11.forwardRef)(
|
|
|
3658
3664
|
]
|
|
3659
3665
|
}
|
|
3660
3666
|
),
|
|
3661
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_phosphor_react10.CaretRight, { className: "min-w-6 min-h-6 text-text-800
|
|
3667
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_phosphor_react10.CaretRight, { className: "min-w-6 min-h-6 text-text-800" })
|
|
3662
3668
|
]
|
|
3663
3669
|
}
|
|
3664
3670
|
);
|
|
3665
3671
|
}
|
|
3666
3672
|
);
|
|
3667
3673
|
var CardStatus = (0, import_react11.forwardRef)(
|
|
3668
|
-
({ header, className, status, ...props }, ref) => {
|
|
3674
|
+
({ header, className, status, label, ...props }, ref) => {
|
|
3669
3675
|
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3670
3676
|
CardBase,
|
|
3671
3677
|
{
|
|
@@ -3673,7 +3679,7 @@ var CardStatus = (0, import_react11.forwardRef)(
|
|
|
3673
3679
|
layout: "horizontal",
|
|
3674
3680
|
padding: "medium",
|
|
3675
3681
|
minHeight: "medium",
|
|
3676
|
-
className: `items-center ${className}`,
|
|
3682
|
+
className: `items-center cursor-pointer ${className}`,
|
|
3677
3683
|
...props,
|
|
3678
3684
|
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex justify-between w-full h-full flex-row items-center gap-2", children: [
|
|
3679
3685
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
@@ -3688,7 +3694,7 @@ var CardStatus = (0, import_react11.forwardRef)(
|
|
|
3688
3694
|
children: status == "correct" ? "Correta" : "Incorreta"
|
|
3689
3695
|
}
|
|
3690
3696
|
),
|
|
3691
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-sm text-text-800", children:
|
|
3697
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-sm text-text-800", children: label })
|
|
3692
3698
|
] }),
|
|
3693
3699
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_phosphor_react10.CaretRight, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer flex-shrink-0 ml-2" })
|
|
3694
3700
|
] })
|
|
@@ -4367,7 +4373,7 @@ var AlternativesList = ({
|
|
|
4367
4373
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4368
4374
|
"p",
|
|
4369
4375
|
{
|
|
4370
|
-
className: `block font-medium ${selectedValue === alternative.value || statusBadge ? "text-
|
|
4376
|
+
className: `block font-medium ${selectedValue === alternative.value || statusBadge ? "text-text-950" : "text-text-600"}`,
|
|
4371
4377
|
children: alternative.label
|
|
4372
4378
|
}
|
|
4373
4379
|
),
|
|
@@ -4390,7 +4396,7 @@ var AlternativesList = ({
|
|
|
4390
4396
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4391
4397
|
"span",
|
|
4392
4398
|
{
|
|
4393
|
-
className: `flex-1 ${selectedValue === alternative.value || statusBadge ? "text-
|
|
4399
|
+
className: `flex-1 ${selectedValue === alternative.value || statusBadge ? "text-text-950" : "text-text-600"}`,
|
|
4394
4400
|
children: alternative.label
|
|
4395
4401
|
}
|
|
4396
4402
|
)
|
|
@@ -4450,7 +4456,7 @@ var AlternativesList = ({
|
|
|
4450
4456
|
{
|
|
4451
4457
|
htmlFor: alternativeId,
|
|
4452
4458
|
className: `block font-medium
|
|
4453
|
-
${actualValue === alternative.value ? "text-
|
|
4459
|
+
${actualValue === alternative.value ? "text-text-950" : "text-text-600"}
|
|
4454
4460
|
${alternative.disabled ? "cursor-not-allowed" : "cursor-pointer"}`,
|
|
4455
4461
|
children: alternative.label
|
|
4456
4462
|
}
|
|
@@ -4483,7 +4489,7 @@ var AlternativesList = ({
|
|
|
4483
4489
|
{
|
|
4484
4490
|
htmlFor: alternativeId,
|
|
4485
4491
|
className: `flex-1
|
|
4486
|
-
${actualValue === alternative.value ? "text-
|
|
4492
|
+
${actualValue === alternative.value ? "text-text-950" : "text-text-600"}
|
|
4487
4493
|
${alternative.disabled ? "cursor-not-allowed" : "cursor-pointer"}`,
|
|
4488
4494
|
children: alternative.label
|
|
4489
4495
|
}
|