@eclass/ui-kit 1.12.0 → 1.13.1

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.
@@ -26980,8 +26980,8 @@ function Btn({
26980
26980
  className: onlyIcon,
26981
26981
  disabled: disabled2,
26982
26982
  height: "auto",
26983
+ minHeight: size2 === "regular" ? "2.813rem" : "2rem",
26983
26984
  lineHeight: "initial",
26984
- minHeight: size2 === "regular" ? "2.7rem" : "1.474rem",
26985
26985
  iconSpacing: vars("space-xs"),
26986
26986
  isActive: false,
26987
26987
  isLoading,
@@ -27009,6 +27009,9 @@ function Btn({
27009
27009
  cursor: "not-allowed"
27010
27010
  },
27011
27011
  _focus: {
27012
+ boxShadow: "none"
27013
+ },
27014
+ _focusVisible: {
27012
27015
  boxShadow: `inset 0 0 0 2px ${borderColorActive[0]}, inset 0 0 0 4px ${borderColorActive[1]}`
27013
27016
  },
27014
27017
  _hover: {
@@ -27325,6 +27328,30 @@ function IconSelection({
27325
27328
  }
27326
27329
  }
27327
27330
  const ID_QUALIFIED = 7;
27331
+ function CourseStatus({
27332
+ progress: progress2,
27333
+ status
27334
+ }) {
27335
+ return /* @__PURE__ */ jsxs(Fragment, {
27336
+ children: [/* @__PURE__ */ jsxs(Flex, {
27337
+ children: [/* @__PURE__ */ jsx(IconSelection, {
27338
+ type: progress2.icon,
27339
+ progressValue: progress2.progress
27340
+ }), /* @__PURE__ */ jsx(Text, {
27341
+ m: "0",
27342
+ ml: ".625rem",
27343
+ fontSize: ".875rem",
27344
+ lineHeight: "1.125rem",
27345
+ children: progress2 == null ? void 0 : progress2.label
27346
+ })]
27347
+ }), (status == null ? void 0 : status.id) === ID_QUALIFIED && (progress2 == null ? void 0 : progress2.finalGrade) && (progress2 == null ? void 0 : progress2.finalGrade.length) > 0 && /* @__PURE__ */ jsx(Label, {
27348
+ size: "sm",
27349
+ bg: progress2.isApproved ? vars("colors-alert-jadeGreen") : vars("colors-alert-red"),
27350
+ color: vars("colors-neutral-white"),
27351
+ children: progress2 == null ? void 0 : progress2.finalGrade
27352
+ })]
27353
+ });
27354
+ }
27328
27355
  function Section() {
27329
27356
  const {
27330
27357
  name,
@@ -27360,26 +27387,13 @@ function Section() {
27360
27387
  fontWeight: "700",
27361
27388
  lineHeight: "1.3",
27362
27389
  children: name
27363
- }), /* @__PURE__ */ jsxs(Flex, {
27390
+ }), /* @__PURE__ */ jsx(Flex, {
27364
27391
  mt: "1rem",
27365
27392
  justify: "space-between",
27366
- children: [/* @__PURE__ */ jsxs(Flex, {
27367
- children: [/* @__PURE__ */ jsx(IconSelection, {
27368
- type: progress2.icon,
27369
- progressValue: progress2.progress
27370
- }), /* @__PURE__ */ jsx(Text, {
27371
- m: "0",
27372
- ml: ".625rem",
27373
- fontSize: ".875rem",
27374
- lineHeight: "1.125rem",
27375
- children: progress2 == null ? void 0 : progress2.label
27376
- })]
27377
- }), (status == null ? void 0 : status.id) === ID_QUALIFIED && (progress2 == null ? void 0 : progress2.finalGrade) && (progress2 == null ? void 0 : progress2.finalGrade.length) > 0 && /* @__PURE__ */ jsx(Label, {
27378
- size: "sm",
27379
- bg: progress2.isApproved ? vars("colors-alert-jadeGreen") : vars("colors-alert-red"),
27380
- color: vars("colors-neutral-white"),
27381
- children: progress2 == null ? void 0 : progress2.finalGrade
27382
- })]
27393
+ children: /* @__PURE__ */ jsx(CourseStatus, {
27394
+ progress: progress2,
27395
+ status
27396
+ })
27383
27397
  }), information != null && (information == null ? void 0 : information.length) > 0 && /* @__PURE__ */ jsx(List, {
27384
27398
  spacing: ".625rem",
27385
27399
  paddingInlineStart: "0",
@@ -28401,5 +28415,5 @@ function CourseList({
28401
28415
  });
28402
28416
  }
28403
28417
  CourseList.displayName = "CourseList";
28404
- export { Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CourseList, Label, Progress, Ripples, TinyAlert, dataFake, maxWidthCoursesList, theme, vars };
28418
+ export { Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CourseList, CourseStatus, Label, Progress, Ripples, TinyAlert, dataFake, maxWidthCoursesList, theme, vars };
28405
28419
  //# sourceMappingURL=eclass-ui-kit.es.js.map