@eclass/ui-kit 1.54.8 → 1.54.9

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.
@@ -1870,6 +1870,11 @@ const NavBarButton = ({
1870
1870
  className: "nav-bar-button",
1871
1871
  id: isAccessibility ? "UserWayButton" : "",
1872
1872
  onClick: isAccessibility ? triggerWidget : onClick,
1873
+ _focusVisible: {
1874
+ outline: `3px solid ${vars("colors-alert-deepSkyBlue")}`,
1875
+ borderRadius: "2px"
1876
+ },
1877
+ tabIndex: 0,
1873
1878
  sx: {
1874
1879
  alignItems: "center",
1875
1880
  background: "none !important",
@@ -1918,9 +1923,11 @@ const NavBarButton = ({
1918
1923
  },
1919
1924
  children: [/* @__PURE__ */ jsx(Box, {
1920
1925
  className: "nav-bar-icon",
1926
+ tabIndex: -1,
1921
1927
  children: buttonType[type].icon
1922
1928
  }), !isMobile && /* @__PURE__ */ jsx(Box, {
1923
1929
  className: "nav-bar-text",
1930
+ tabIndex: -1,
1924
1931
  children: buttonType[type].text
1925
1932
  })]
1926
1933
  });
@@ -3280,11 +3287,8 @@ function Footer({
3280
3287
  p: "1rem",
3281
3288
  borderTop: "1px solid",
3282
3289
  borderTopColor: vars("colors-neutral-platinum"),
3283
- tabIndex: 0,
3284
- className: "footerButtonBox",
3285
3290
  children: [isCourseActive(action.enabled, Profile2 == null ? void 0 : Profile2.id) ? /* @__PURE__ */ jsxs(Fragment, {
3286
3291
  children: [hasFinanzeFreezed && modalPaymentText ? /* @__PURE__ */ jsx(Box, {
3287
- className: "uno",
3288
3292
  color: vars("colors-main-deepSkyBlue"),
3289
3293
  backgroundColor: "transparent",
3290
3294
  fontWeight: "500",
@@ -3300,7 +3304,6 @@ function Footer({
3300
3304
  fontSize: "1rem !important",
3301
3305
  children: action.text
3302
3306
  }) : /* @__PURE__ */ jsx(Text, {
3303
- className: "dos",
3304
3307
  color: vars("colors-main-deepSkyBlue"),
3305
3308
  fontWeight: "500",
3306
3309
  mr: action.hasIcon ? "1.5rem" : "0",
@@ -3312,7 +3315,6 @@ function Footer({
3312
3315
  color: vars("colors-main-deepSkyBlue")
3313
3316
  })]
3314
3317
  }) : /* @__PURE__ */ jsx(Text, {
3315
- className: "tres",
3316
3318
  fontWeight: "500",
3317
3319
  lineHeight: "1.172rem",
3318
3320
  color: vars("colors-neutral-spanishGrey"),
@@ -3343,37 +3345,39 @@ function BoxTraditional({
3343
3345
  data,
3344
3346
  modalPaymentText
3345
3347
  }) {
3346
- var _a, _b, _c, _d, _e, _f, _g, _h;
3348
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
3349
+ const isClickable = isCourseActive((_b = (_a = data.action) == null ? void 0 : _a.enabled) != null ? _b : false, (_c = data.Profile) == null ? void 0 : _c.id);
3350
+ const hasHref = !!((_d = data.action) == null ? void 0 : _d.href);
3347
3351
  const cssActive = {
3348
3352
  boxShadow: `0 2px 7px 0 ${vars("colors-neutral-silverSand")}`
3349
3353
  };
3350
3354
  return /* @__PURE__ */ jsx(CourseBoxContext.Provider, {
3351
3355
  value: data,
3352
3356
  children: /* @__PURE__ */ jsx(LinkBox, {
3353
- className: "linkBoxTraditional",
3354
3357
  as: "article",
3355
3358
  border: vars("borders-light"),
3356
3359
  borderRadius: vars("radii-big"),
3357
- cursor: "pointer",
3360
+ cursor: isClickable ? "pointer" : "default",
3358
3361
  transition: "box-shadow .3s",
3359
- _active: cssActive,
3360
- _hover: cssActive,
3361
3362
  overflow: "hidden",
3362
- tabIndex: 0,
3363
+ _hover: cssActive,
3364
+ _active: cssActive,
3365
+ _focusWithin: {
3366
+ boxShadow: `0 0 0 3px ${vars("colors-alert-deepSkyBlue")} inset`
3367
+ },
3368
+ tabIndex: !hasHref && isClickable ? 0 : void 0,
3363
3369
  role: "link",
3364
3370
  children: /* @__PURE__ */ jsx(WithRipples$1, {
3365
- enabled: isCourseActive((_b = (_a = data.action) == null ? void 0 : _a.enabled) != null ? _b : false, (_c = data.Profile) == null ? void 0 : _c.id),
3371
+ enabled: isCourseActive((_f = (_e = data.action) == null ? void 0 : _e.enabled) != null ? _f : false, (_g = data.Profile) == null ? void 0 : _g.id),
3366
3372
  children: /* @__PURE__ */ jsxs(Flex, {
3367
3373
  direction: "column",
3368
3374
  justify: "space-between",
3369
3375
  h: "100%",
3370
3376
  children: [/* @__PURE__ */ jsxs(Box, {
3371
3377
  className: "CourseList-TraditionalBox",
3372
- children: [!data.hasFinanzeFreezed && isCourseActive((_e = (_d = data.action) == null ? void 0 : _d.enabled) != null ? _e : false, (_f = data.Profile) == null ? void 0 : _f.id) && /* @__PURE__ */ jsx(LinkOverlay, {
3373
- href: (_g = data.action) == null ? void 0 : _g.href,
3374
- isExternal: (_h = data.action) == null ? void 0 : _h.targetBlank,
3375
- tabIndex: -1,
3376
- className: "linkOverlay"
3378
+ children: [isClickable && hasHref && /* @__PURE__ */ jsx(LinkOverlay, {
3379
+ href: (_h = data.action) == null ? void 0 : _h.href,
3380
+ isExternal: (_i = data.action) == null ? void 0 : _i.targetBlank
3377
3381
  }), /* @__PURE__ */ jsx(Header$1, {}), /* @__PURE__ */ jsx(Section, {})]
3378
3382
  }), /* @__PURE__ */ jsx(Footer, {
3379
3383
  modalPaymentText