@eclass/ui-kit 1.57.3 → 1.57.5
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 +20 -5
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +29 -29
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/organisms/CourseList/components/Header.d.ts.map +1 -1
- package/dist/organisms/CourseList/utils/dataFake.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
|
@@ -2052,6 +2052,14 @@ function UserWayCookie() {
|
|
|
2052
2052
|
});
|
|
2053
2053
|
}
|
|
2054
2054
|
const STUDENT = 4;
|
|
2055
|
+
const LABEL_STYLES = {
|
|
2056
|
+
ADMIN: {
|
|
2057
|
+
bg: vars("colors-main-linkWater")
|
|
2058
|
+
},
|
|
2059
|
+
NEW: {
|
|
2060
|
+
bg: vars("colors-secondary-pumpkin")
|
|
2061
|
+
}
|
|
2062
|
+
};
|
|
2055
2063
|
function Header$1() {
|
|
2056
2064
|
var _a;
|
|
2057
2065
|
const {
|
|
@@ -2099,10 +2107,13 @@ function Header$1() {
|
|
|
2099
2107
|
spacing: ".625rem",
|
|
2100
2108
|
wrap: "wrap",
|
|
2101
2109
|
zIndex: 2,
|
|
2102
|
-
children: labels.map((item, index2) =>
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2110
|
+
children: labels.map((item, index2) => {
|
|
2111
|
+
const labelStyle = LABEL_STYLES[item.id];
|
|
2112
|
+
return /* @__PURE__ */ jsx(Label, {
|
|
2113
|
+
bg: labelStyle == null ? void 0 : labelStyle.bg,
|
|
2114
|
+
children: item.text
|
|
2115
|
+
}, index2);
|
|
2116
|
+
})
|
|
2106
2117
|
}), (soonCourse == null ? void 0 : soonCourse.show) && (soonCourse == null ? void 0 : soonCourse.text) && /* @__PURE__ */ jsx(Stack, {
|
|
2107
2118
|
direction: "row",
|
|
2108
2119
|
spacing: ".625rem",
|
|
@@ -2560,6 +2571,10 @@ const dataStates = {
|
|
|
2560
2571
|
{
|
|
2561
2572
|
id: "NEW",
|
|
2562
2573
|
text: "Nuevo"
|
|
2574
|
+
},
|
|
2575
|
+
{
|
|
2576
|
+
id: "ADMIN",
|
|
2577
|
+
text: "Curso madre"
|
|
2563
2578
|
}
|
|
2564
2579
|
]
|
|
2565
2580
|
},
|
|
@@ -7298,7 +7313,7 @@ function FlashNotification({
|
|
|
7298
7313
|
},
|
|
7299
7314
|
children: message
|
|
7300
7315
|
}), {
|
|
7301
|
-
duration:
|
|
7316
|
+
duration: ["success", "info"].includes(state) ? handleTime(message) : Infinity,
|
|
7302
7317
|
id: alertStates[state].id
|
|
7303
7318
|
});
|
|
7304
7319
|
}, [message, state, m2]);
|