@eclass/ui-kit 1.54.17 → 1.54.19

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.
@@ -3386,8 +3386,7 @@ function BoxTraditional({
3386
3386
  transition: "box-shadow .3s",
3387
3387
  overflow: "hidden",
3388
3388
  _hover: cssActive,
3389
- _active: cssActive,
3390
- _focusWithin: {
3389
+ _focusVisible: {
3391
3390
  boxShadow: `0 0 0 3px ${vars("colors-alert-deepSkyBlue")} inset`
3392
3391
  },
3393
3392
  tabIndex: 0,
@@ -3441,8 +3440,12 @@ function BoxImage({
3441
3440
  };
3442
3441
  return /* @__PURE__ */ jsx(WithRipples, {
3443
3442
  enabled: isCourseActive((_b = (_a = data == null ? void 0 : data.action) == null ? void 0 : _a.enabled) != null ? _b : false, (_c = data == null ? void 0 : data.Profile) == null ? void 0 : _c.id),
3444
- children: /* @__PURE__ */ jsxs(Box, {
3443
+ children: /* @__PURE__ */ jsxs(LinkBox, {
3445
3444
  className: "CourseList-ImageBox",
3445
+ _focusVisible: {
3446
+ boxShadow: `0 0 0 3px ${vars("colors-alert-deepSkyBlue")} inset`
3447
+ },
3448
+ tabIndex: 0,
3446
3449
  sx: {
3447
3450
  backgroundImage: `linear-gradient(to bottom, rgba(0,0,0,0) 35%, rgba(0,0,0,1) 100%), url(${backgroundImg})`,
3448
3451
  color: vars("colors-neutral-white"),
@@ -3457,11 +3460,17 @@ function BoxImage({
3457
3460
  flexDirection: "column",
3458
3461
  margin: m2,
3459
3462
  justifyContent: "end",
3460
- textAlign: "left"
3463
+ textAlign: "left",
3464
+ a: {
3465
+ "&:active": {
3466
+ boxShadow: "none"
3467
+ }
3468
+ }
3461
3469
  },
3462
3470
  children: [!(data == null ? void 0 : data.hasFinanzeFreezed) && isCourseActive((_e = (_d = data == null ? void 0 : data.action) == null ? void 0 : _d.enabled) != null ? _e : false, (_f = data == null ? void 0 : data.Profile) == null ? void 0 : _f.id) && /* @__PURE__ */ jsx(LinkOverlay, {
3463
3471
  href: (_g = data == null ? void 0 : data.action) == null ? void 0 : _g.href,
3464
- isExternal: (_h = data == null ? void 0 : data.action) == null ? void 0 : _h.targetBlank
3472
+ isExternal: (_h = data == null ? void 0 : data.action) == null ? void 0 : _h.targetBlank,
3473
+ tabIndex: -1
3465
3474
  }), /* @__PURE__ */ jsxs(Box, {
3466
3475
  className: "textBox",
3467
3476
  bottom: "20px",
@@ -4171,7 +4180,8 @@ const Modal = ({
4171
4180
  title,
4172
4181
  withoutMargin = false,
4173
4182
  scrollBehavior = "outside",
4174
- fixedButtons = false
4183
+ fixedButtons = false,
4184
+ autoFocus = false
4175
4185
  }) => {
4176
4186
  const py = "32px";
4177
4187
  const px = "24px";
@@ -4185,6 +4195,7 @@ const Modal = ({
4185
4195
  motionPreset: "scale",
4186
4196
  onClose,
4187
4197
  scrollBehavior: isInside ? "inside" : "outside",
4198
+ autoFocus,
4188
4199
  children: [/* @__PURE__ */ jsx(ModalOverlay, {}), /* @__PURE__ */ jsxs(ModalContent$1, {
4189
4200
  maxH: isInside ? "100dvh" : "auto",
4190
4201
  minH: isDesktop ? "300px" : "100dvh",
@@ -4337,6 +4348,7 @@ const Loading$1 = ({
4337
4348
  });
4338
4349
  };
4339
4350
  const ModalAlertNew = ({
4351
+ autoFocus = false,
4340
4352
  type,
4341
4353
  isOpen,
4342
4354
  onClose,
@@ -4353,6 +4365,7 @@ const ModalAlertNew = ({
4353
4365
  motionPreset: "scale",
4354
4366
  onClose,
4355
4367
  closeOnEsc: type !== "loading",
4368
+ autoFocus,
4356
4369
  children: [/* @__PURE__ */ jsx(ModalOverlay, {}), /* @__PURE__ */ jsxs(ModalContent$1, {
4357
4370
  borderRadius: "8px",
4358
4371
  p: 0,