@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.
@@ -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) => /* @__PURE__ */ jsx(Label, {
2103
- bg: item.id === "NEW" ? vars("colors-secondary-pumpkin") : void 0,
2104
- children: item.text
2105
- }, index2))
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: state === "success" ? handleTime(message) : Infinity,
7316
+ duration: ["success", "info"].includes(state) ? handleTime(message) : Infinity,
7302
7317
  id: alertStates[state].id
7303
7318
  });
7304
7319
  }, [message, state, m2]);