@eclass/ui-kit 1.60.3 → 1.60.4
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/eclass-ui-kit.es.js +7 -11
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +13 -13
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown/Components/EventsGroup.d.ts.map +1 -1
- package/dist/organisms/Calendar/EventsList/EventsList.d.ts +1 -2
- package/dist/organisms/Calendar/EventsList/EventsList.d.ts.map +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -10210,7 +10210,7 @@ const EventsGroup = ({
|
|
|
10210
10210
|
children: /* @__PURE__ */ jsx(MenuGroup, {
|
|
10211
10211
|
title,
|
|
10212
10212
|
children: events.map((event) => {
|
|
10213
|
-
var _a2
|
|
10213
|
+
var _a2;
|
|
10214
10214
|
const hasUrl = Boolean(event.url);
|
|
10215
10215
|
const eventOnClick = onClickEvent && hasUrl ? () => onClickEvent(event) : void 0;
|
|
10216
10216
|
return /* @__PURE__ */ jsx(Box, {
|
|
@@ -10240,8 +10240,7 @@ const EventsGroup = ({
|
|
|
10240
10240
|
hasNotification: event.isNew,
|
|
10241
10241
|
headquartersAddress: event.headquarters_address,
|
|
10242
10242
|
onClick: eventOnClick,
|
|
10243
|
-
showCourse: true
|
|
10244
|
-
url: (_b = event.url) != null ? _b : ""
|
|
10243
|
+
showCourse: true
|
|
10245
10244
|
}, event.id)
|
|
10246
10245
|
}, event.id);
|
|
10247
10246
|
})
|
|
@@ -10540,14 +10539,11 @@ const EventsList = ({
|
|
|
10540
10539
|
time,
|
|
10541
10540
|
text: text2,
|
|
10542
10541
|
type,
|
|
10543
|
-
unitName
|
|
10544
|
-
url
|
|
10542
|
+
unitName
|
|
10545
10543
|
}) => {
|
|
10546
10544
|
var _a, _b, _c;
|
|
10547
10545
|
const border = `1px solid ${(_a = vars("colors-neutral-platinum")) != null ? _a : "#E8E8E8"}`;
|
|
10548
10546
|
const hoverBg = (_b = vars("colors-neutral-cultured2")) != null ? _b : "#F8F8F8";
|
|
10549
|
-
const hasUrl = Boolean(url);
|
|
10550
|
-
const isClickable = Boolean(onClick) && hasUrl;
|
|
10551
10547
|
const isCpr = type === "cpr";
|
|
10552
10548
|
const showEventLocation = !isCpr || Boolean(headquartersAddress);
|
|
10553
10549
|
const showEventDuration = ["online", "in-person", "cpr"].includes(type) && duration !== void 0 && duration > 0;
|
|
@@ -10578,13 +10574,13 @@ const EventsList = ({
|
|
|
10578
10574
|
borderTop: border,
|
|
10579
10575
|
display: "flex",
|
|
10580
10576
|
gap: "12px",
|
|
10581
|
-
cursor:
|
|
10582
|
-
onClick
|
|
10577
|
+
cursor: "pointer",
|
|
10578
|
+
onClick,
|
|
10583
10579
|
p: "16px",
|
|
10584
10580
|
transition: "background-color 0.2s ease",
|
|
10585
|
-
_hover:
|
|
10581
|
+
_hover: {
|
|
10586
10582
|
bg: hoverBg
|
|
10587
|
-
}
|
|
10583
|
+
},
|
|
10588
10584
|
children: [/* @__PURE__ */ jsxs(Box, {
|
|
10589
10585
|
bg: color,
|
|
10590
10586
|
minW: "88px",
|