@eclass/ui-kit 1.57.4 → 1.57.6

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 {
@@ -2088,7 +2096,6 @@ function Header$1() {
2088
2096
  zIndex: 2,
2089
2097
  children: [(profile == null ? void 0 : profile.id) !== STUDENT && /* @__PURE__ */ jsx(Label, {
2090
2098
  bg: vars("colors-neutral-white"),
2091
- m: "0 0 .625rem 0",
2092
2099
  children: /* @__PURE__ */ jsxs(Flex, {
2093
2100
  children: [/* @__PURE__ */ jsx(Profile, {
2094
2101
  m: "0 .25rem 0 0"
@@ -2099,10 +2106,13 @@ function Header$1() {
2099
2106
  spacing: ".625rem",
2100
2107
  wrap: "wrap",
2101
2108
  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))
2109
+ children: labels.map((item, index2) => {
2110
+ const labelStyle = LABEL_STYLES[item.id];
2111
+ return /* @__PURE__ */ jsx(Label, {
2112
+ bg: labelStyle == null ? void 0 : labelStyle.bg,
2113
+ children: item.text
2114
+ }, index2);
2115
+ })
2106
2116
  }), (soonCourse == null ? void 0 : soonCourse.show) && (soonCourse == null ? void 0 : soonCourse.text) && /* @__PURE__ */ jsx(Stack, {
2107
2117
  direction: "row",
2108
2118
  spacing: ".625rem",
@@ -2560,6 +2570,10 @@ const dataStates = {
2560
2570
  {
2561
2571
  id: "NEW",
2562
2572
  text: "Nuevo"
2573
+ },
2574
+ {
2575
+ id: "ADMIN",
2576
+ text: "Curso madre"
2563
2577
  }
2564
2578
  ]
2565
2579
  },