@eclass/ui-kit 1.4.4 → 1.5.2

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.
@@ -83,7 +83,7 @@ var StyleSheet = /* @__PURE__ */ function() {
83
83
  };
84
84
  _proto.flush = function flush() {
85
85
  this.tags.forEach(function(tag) {
86
- return tag.parentNode.removeChild(tag);
86
+ return tag.parentNode && tag.parentNode.removeChild(tag);
87
87
  });
88
88
  this.tags = [];
89
89
  this.ctr = 0;
@@ -569,6 +569,22 @@ function memoize$1(fn) {
569
569
  return cache[arg];
570
570
  };
571
571
  }
572
+ var identifierWithPointTracking = function identifierWithPointTracking2(begin, points, index) {
573
+ var previous = 0;
574
+ var character2 = 0;
575
+ while (true) {
576
+ previous = character2;
577
+ character2 = peek();
578
+ if (previous === 38 && character2 === 12) {
579
+ points[index] = 1;
580
+ }
581
+ if (token(character2)) {
582
+ break;
583
+ }
584
+ next();
585
+ }
586
+ return slice(begin, position$1);
587
+ };
572
588
  var toRules = function toRules2(parsed, points) {
573
589
  var index = -1;
574
590
  var character2 = 44;
@@ -578,7 +594,7 @@ var toRules = function toRules2(parsed, points) {
578
594
  if (character2 === 38 && peek() === 12) {
579
595
  points[index] = 1;
580
596
  }
581
- parsed[index] += identifier(position$1 - 1);
597
+ parsed[index] += identifierWithPointTracking(position$1 - 1, points, index);
582
598
  break;
583
599
  case 2:
584
600
  parsed[index] += delimit(character2);
@@ -2970,7 +2986,7 @@ var transition$2 = {
2970
2986
  transitionProperty: t.prop("transitionProperty", "transition.property"),
2971
2987
  transitionTimingFunction: t.prop("transitionTimingFunction", "transition.easing")
2972
2988
  };
2973
- var typography$2 = {
2989
+ var typography$3 = {
2974
2990
  fontFamily: t.prop("fontFamily", "fonts"),
2975
2991
  fontSize: t.prop("fontSize", "fontSizes", transformFunctions.px),
2976
2992
  fontWeight: t.prop("fontWeight", "fontWeights"),
@@ -3084,7 +3100,7 @@ function _extends$p() {
3084
3100
  };
3085
3101
  return _extends$p.apply(this, arguments);
3086
3102
  }
3087
- var systemProps = mergeWith({}, background, border, color, flexbox, layout, filter, ring, interactivity, grid, others, position, effect, space, typography$2, textDecoration, transform, list, transition$2);
3103
+ var systemProps = mergeWith({}, background, border, color, flexbox, layout, filter, ring, interactivity, grid, others, position, effect, space, typography$3, textDecoration, transform, list, transition$2);
3088
3104
  var layoutSystem = Object.assign({}, space, layout, flexbox, grid, position);
3089
3105
  objectKeys(layoutSystem);
3090
3106
  var propNames = [...objectKeys(systemProps), ...pseudoPropNames];
@@ -6894,7 +6910,7 @@ var Modal = {
6894
6910
  sizes: sizes$d,
6895
6911
  defaultProps: defaultProps$c
6896
6912
  };
6897
- var typography = {
6913
+ var typography$1 = {
6898
6914
  letterSpacings: {
6899
6915
  tighter: "-0.05em",
6900
6916
  tight: "-0.025em",
@@ -6952,7 +6968,7 @@ var typography = {
6952
6968
  "9xl": "8rem"
6953
6969
  }
6954
6970
  };
6955
- var typography$1 = typography;
6971
+ var typography$2 = typography$1;
6956
6972
  var _Input$baseStyle$fiel, _Input$baseStyle;
6957
6973
  function _extends$j() {
6958
6974
  _extends$j = Object.assign || function(target) {
@@ -7013,7 +7029,7 @@ function getSize(size2) {
7013
7029
  xs: "sm"
7014
7030
  };
7015
7031
  var _fontSize = (_sizeStyle$field$font = (_sizeStyle$field = sizeStyle.field) == null ? void 0 : _sizeStyle$field.fontSize) != null ? _sizeStyle$field$font : "md";
7016
- var fontSize = typography$1.fontSizes[_fontSize.toString()];
7032
+ var fontSize = typography$2.fontSizes[_fontSize.toString()];
7017
7033
  return {
7018
7034
  field: _extends$j({}, sizeStyle.field, {
7019
7035
  paddingInlineEnd: $inputPadding.reference,
@@ -8377,14 +8393,14 @@ var components = {
8377
8393
  Tooltip,
8378
8394
  FormError
8379
8395
  };
8380
- var borders = {
8396
+ var borders$1 = {
8381
8397
  none: 0,
8382
8398
  "1px": "1px solid",
8383
8399
  "2px": "2px solid",
8384
8400
  "4px": "4px solid",
8385
8401
  "8px": "8px solid"
8386
8402
  };
8387
- var borders$1 = borders;
8403
+ var borders$2 = borders$1;
8388
8404
  var breakpoints = createBreakpoints({
8389
8405
  sm: "30em",
8390
8406
  md: "48em",
@@ -8616,7 +8632,7 @@ var colors$1 = {
8616
8632
  }
8617
8633
  };
8618
8634
  var colors$2 = colors$1;
8619
- var radii = {
8635
+ var radii$1 = {
8620
8636
  none: "0",
8621
8637
  sm: "0.125rem",
8622
8638
  base: "0.25rem",
@@ -8627,7 +8643,7 @@ var radii = {
8627
8643
  "3xl": "1.5rem",
8628
8644
  full: "9999px"
8629
8645
  };
8630
- var radii$1 = radii;
8646
+ var radii$2 = radii$1;
8631
8647
  var shadows = {
8632
8648
  xs: "0 0 0 1px rgba(0, 0, 0, 0.05)",
8633
8649
  sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
@@ -8713,14 +8729,14 @@ function _extends$b() {
8713
8729
  var foundations = _extends$b({
8714
8730
  breakpoints: breakpoints$1,
8715
8731
  zIndices: zIndices$1,
8716
- radii: radii$1,
8732
+ radii: radii$2,
8717
8733
  blur: blur$1,
8718
8734
  colors: colors$2
8719
- }, typography$1, {
8735
+ }, typography$2, {
8720
8736
  sizes: sizes$m,
8721
8737
  shadows: shadows$1,
8722
8738
  space: spacing,
8723
- borders: borders$1,
8739
+ borders: borders$2,
8724
8740
  transition: transition$1
8725
8741
  });
8726
8742
  var foundations$1 = foundations;
@@ -8857,7 +8873,7 @@ var fallbackIcon = {
8857
8873
  })),
8858
8874
  viewBox: "0 0 24 24"
8859
8875
  };
8860
- var Icon$1 = /* @__PURE__ */ forwardRef((props, ref) => {
8876
+ var Icon = /* @__PURE__ */ forwardRef((props, ref) => {
8861
8877
  var {
8862
8878
  as: element,
8863
8879
  viewBox,
@@ -9338,17 +9354,6 @@ function _extends$3() {
9338
9354
  };
9339
9355
  return _extends$3.apply(this, arguments);
9340
9356
  }
9341
- var StackDivider = (props) => /* @__PURE__ */ React.createElement(chakra.div, _extends$3({
9342
- className: "chakra-stack__divider"
9343
- }, props, {
9344
- __css: _extends$3({}, props["__css"], {
9345
- borderWidth: 0,
9346
- alignSelf: "stretch",
9347
- borderColor: "inherit",
9348
- width: "auto",
9349
- height: "auto"
9350
- })
9351
- }));
9352
9357
  var StackItem = (props) => /* @__PURE__ */ React.createElement(chakra.div, _extends$3({
9353
9358
  className: "chakra-stack__item"
9354
9359
  }, props, {
@@ -9810,9 +9815,15 @@ Label.displayName = "Label";
9810
9815
  function Progress({
9811
9816
  value = 0
9812
9817
  }) {
9818
+ let limitedValue = value;
9819
+ if (value > 100) {
9820
+ limitedValue = 100;
9821
+ } else if (value < 0) {
9822
+ limitedValue = 0;
9823
+ }
9813
9824
  return /* @__PURE__ */ jsx(CircularProgress, {
9814
9825
  size: "1rem",
9815
- value,
9826
+ value: limitedValue,
9816
9827
  thickness: "1rem",
9817
9828
  color: vars("colors-main-deepSkyBlue"),
9818
9829
  trackColor: vars("colors-neutral-platinum")
@@ -9990,7 +10001,7 @@ function Ripples({
9990
10001
  });
9991
10002
  }
9992
10003
  Ripples.displayName = "Ripples";
9993
- function Icon({
10004
+ function Base({
9994
10005
  w: w2 = "1rem",
9995
10006
  h = "1rem",
9996
10007
  color: color2 = vars("colors-main-ziggurat"),
@@ -9998,7 +10009,7 @@ function Icon({
9998
10009
  viewBox = "0 0 16 16",
9999
10010
  children
10000
10011
  }) {
10001
- return /* @__PURE__ */ jsx(Icon$1, {
10012
+ return /* @__PURE__ */ jsx(Icon, {
10002
10013
  w: w2,
10003
10014
  h,
10004
10015
  viewBox,
@@ -10008,7 +10019,7 @@ function Icon({
10008
10019
  });
10009
10020
  }
10010
10021
  function ArrowRight(props) {
10011
- return /* @__PURE__ */ jsxs(Icon, __spreadProps(__spreadValues({}, props), {
10022
+ return /* @__PURE__ */ jsxs(Base, __spreadProps(__spreadValues({}, props), {
10012
10023
  children: [/* @__PURE__ */ jsxs("g", {
10013
10024
  clipPath: "url(#clip0)",
10014
10025
  children: [/* @__PURE__ */ jsx("mask", {
@@ -10046,7 +10057,7 @@ function ArrowRight(props) {
10046
10057
  }
10047
10058
  ArrowRight.displayName = "ArrowRight";
10048
10059
  function Certificate(props) {
10049
- return /* @__PURE__ */ jsxs(Icon, __spreadProps(__spreadValues({}, props), {
10060
+ return /* @__PURE__ */ jsxs(Base, __spreadProps(__spreadValues({}, props), {
10050
10061
  children: [/* @__PURE__ */ jsx("path", {
10051
10062
  fill: "currentColor",
10052
10063
  d: "M7 4H9V6H7z"
@@ -10060,7 +10071,7 @@ function Certificate(props) {
10060
10071
  }
10061
10072
  Certificate.displayName = "Certificate";
10062
10073
  function CircularCheck(props) {
10063
- return /* @__PURE__ */ jsx(Icon, __spreadProps(__spreadValues({}, props), {
10074
+ return /* @__PURE__ */ jsx(Base, __spreadProps(__spreadValues({}, props), {
10064
10075
  children: /* @__PURE__ */ jsx("path", {
10065
10076
  fill: "currentColor",
10066
10077
  fillRule: "evenodd",
@@ -10071,7 +10082,7 @@ function CircularCheck(props) {
10071
10082
  }
10072
10083
  CircularCheck.displayName = "CircularCheck";
10073
10084
  function CircularInformation(props) {
10074
- return /* @__PURE__ */ jsx(Icon, __spreadProps(__spreadValues({}, props), {
10085
+ return /* @__PURE__ */ jsx(Base, __spreadProps(__spreadValues({}, props), {
10075
10086
  children: /* @__PURE__ */ jsx("path", {
10076
10087
  fill: "currentColor",
10077
10088
  fillRule: "evenodd",
@@ -10082,7 +10093,7 @@ function CircularInformation(props) {
10082
10093
  }
10083
10094
  CircularInformation.displayName = "CircularInformation";
10084
10095
  function Profile(props) {
10085
- return /* @__PURE__ */ jsx(Icon, __spreadProps(__spreadValues({}, props), {
10096
+ return /* @__PURE__ */ jsx(Base, __spreadProps(__spreadValues({}, props), {
10086
10097
  viewBox: "0 0 12 12",
10087
10098
  w: ".625rem",
10088
10099
  h: ".75rem",
@@ -10094,7 +10105,7 @@ function Profile(props) {
10094
10105
  }
10095
10106
  Profile.displayName = "Profile";
10096
10107
  function Schedule(props) {
10097
- return /* @__PURE__ */ jsxs(Icon, __spreadProps(__spreadValues({}, props), {
10108
+ return /* @__PURE__ */ jsxs(Base, __spreadProps(__spreadValues({}, props), {
10098
10109
  children: [/* @__PURE__ */ jsx("path", {
10099
10110
  fill: "currentColor",
10100
10111
  fillRule: "evenodd",
@@ -10137,6 +10148,7 @@ function Header() {
10137
10148
  bgPos: "center",
10138
10149
  bgSize: "cover",
10139
10150
  height: "8.75rem",
10151
+ borderBottom: vars("borders-light"),
10140
10152
  pos: "relative",
10141
10153
  children: [/* @__PURE__ */ jsxs(Box, {
10142
10154
  p: "1rem",
@@ -10163,10 +10175,10 @@ function Header() {
10163
10175
  left: ".9375rem",
10164
10176
  transform: "translateY(30%)",
10165
10177
  h: "3.5rem",
10166
- border: `1px solid ${vars("colors-neutral-platinum")}`,
10178
+ border: vars("borders-light"),
10167
10179
  bg: vars("colors-neutral-white"),
10168
10180
  overflow: "hidden",
10169
- borderRadius: "0.25em",
10181
+ borderRadius: vars("radii-small"),
10170
10182
  w: "6.25rem",
10171
10183
  children: /* @__PURE__ */ jsx(Image$1, {
10172
10184
  src: logo,
@@ -10180,12 +10192,12 @@ Header.displayName = "Header";
10180
10192
  function DateStatus({
10181
10193
  date
10182
10194
  }) {
10183
- if (date.length === 0) {
10195
+ if (!date || date.length === 0) {
10184
10196
  return null;
10185
10197
  }
10186
10198
  return /* @__PURE__ */ jsx(Text, {
10187
10199
  fontSize: ".75rem",
10188
- color: "neutral.darkCharcoal",
10200
+ color: vars("colors-neutral-darkCharcoal"),
10189
10201
  m: "0",
10190
10202
  children: date
10191
10203
  });
@@ -10195,23 +10207,31 @@ function IconSelection({
10195
10207
  type,
10196
10208
  progressValue = 0
10197
10209
  }) {
10198
- const all = {
10199
- schedule: /* @__PURE__ */ jsx(Schedule, {}),
10200
- certificate: /* @__PURE__ */ jsx(Certificate, {}),
10201
- circularCheck: /* @__PURE__ */ jsx(CircularCheck, {}),
10202
- progress: /* @__PURE__ */ jsx(Progress, {
10203
- value: progressValue
10204
- }),
10205
- circularInformation: /* @__PURE__ */ jsx(CircularInformation, {})
10206
- };
10207
- return all[type];
10210
+ switch (type) {
10211
+ case "schedule":
10212
+ return /* @__PURE__ */ jsx(Schedule, {});
10213
+ case "certificate":
10214
+ return /* @__PURE__ */ jsx(Certificate, {});
10215
+ case "circularCheck":
10216
+ return /* @__PURE__ */ jsx(CircularCheck, {});
10217
+ case "progress":
10218
+ return /* @__PURE__ */ jsx(Progress, {
10219
+ value: progressValue
10220
+ });
10221
+ case "circularInformation":
10222
+ return /* @__PURE__ */ jsx(CircularInformation, {});
10223
+ default:
10224
+ return null;
10225
+ }
10208
10226
  }
10227
+ const ID_QUALIFIED = 7;
10209
10228
  function Section() {
10210
10229
  const {
10211
10230
  name,
10212
10231
  dateStatus,
10213
10232
  information,
10214
- progress
10233
+ progress,
10234
+ status
10215
10235
  } = React__default.useContext(CourseBoxContext);
10216
10236
  if (!progress) {
10217
10237
  return null;
@@ -10222,11 +10242,11 @@ function Section() {
10222
10242
  p: "0 .9375rem",
10223
10243
  children: [(dateStatus == null ? void 0 : dateStatus.hasDates) && /* @__PURE__ */ jsxs(HStack, {
10224
10244
  direction: "row",
10225
- divider: dateStatus.init.length > 0 && dateStatus.end.length > 0 ? /* @__PURE__ */ jsx(StackDivider, {
10245
+ divider: dateStatus.init !== void 0 && dateStatus.init.length > 0 && dateStatus.end !== void 0 && dateStatus.end.length > 0 ? /* @__PURE__ */ jsx(Box, {
10226
10246
  h: ".5rem",
10227
- borderColor: vars("colors-neutral-silverSand"),
10228
- alignSelf: "center",
10229
- variant: "solid"
10247
+ w: "1px",
10248
+ bg: vars("colors-neutral-silverSand"),
10249
+ alignSelf: "center"
10230
10250
  }) : /* @__PURE__ */ jsx(Fragment, {}),
10231
10251
  children: [/* @__PURE__ */ jsx(DateStatus, {
10232
10252
  date: dateStatus.init
@@ -10254,9 +10274,9 @@ function Section() {
10254
10274
  lineHeight: "1.125rem",
10255
10275
  children: progress == null ? void 0 : progress.label
10256
10276
  })]
10257
- }), (progress == null ? void 0 : progress.finalGrade.length) > 0 && /* @__PURE__ */ jsx(Label, {
10277
+ }), (status == null ? void 0 : status.id) === ID_QUALIFIED && (progress == null ? void 0 : progress.finalGrade.length) > 0 && /* @__PURE__ */ jsx(Label, {
10258
10278
  size: "sm",
10259
- bg: (progress == null ? void 0 : progress.isApproved) ? vars("colors-alert-jadeGreen") : vars("colors-alert-red"),
10279
+ bg: progress.isApproved ? vars("colors-alert-jadeGreen") : vars("colors-alert-red"),
10260
10280
  color: vars("colors-neutral-white"),
10261
10281
  children: progress == null ? void 0 : progress.finalGrade
10262
10282
  })]
@@ -10264,10 +10284,9 @@ function Section() {
10264
10284
  spacing: ".625rem",
10265
10285
  paddingInlineStart: "0",
10266
10286
  pt: ".625rem",
10267
- mt: ".625rem",
10287
+ m: ".625rem 0 0",
10268
10288
  lineHeight: ".875rem",
10269
- borderTop: "1px solid",
10270
- borderTopColor: vars("colors-neutral-platinum"),
10289
+ borderTop: vars("borders-light"),
10271
10290
  children: information.map((item, index) => {
10272
10291
  var _a;
10273
10292
  return /* @__PURE__ */ jsxs(ListItem, {
@@ -10277,7 +10296,7 @@ function Section() {
10277
10296
  }), /* @__PURE__ */ jsx(Box, {
10278
10297
  display: "inline-block",
10279
10298
  ml: ".625rem",
10280
- children: ((_a = item.href) == null ? void 0 : _a.length) > 0 ? /* @__PURE__ */ jsx(Link, {
10299
+ children: item.href !== void 0 && ((_a = item.href) == null ? void 0 : _a.length) > 0 ? /* @__PURE__ */ jsx(Link, {
10281
10300
  isExternal: true,
10282
10301
  href: item.href,
10283
10302
  color: vars("colors-main-deepSkyBlue"),
@@ -10299,10 +10318,11 @@ function Section() {
10299
10318
  }
10300
10319
  Section.displayName = "Section";
10301
10320
  function Footer() {
10321
+ var _a;
10302
10322
  const {
10303
10323
  action
10304
10324
  } = React.useContext(CourseBoxContext);
10305
- if (action === void 0 || (action == null ? void 0 : action.enabled) && action.href.length === 0) {
10325
+ if (action === void 0 || (action == null ? void 0 : action.enabled) && ((_a = action.href) == null ? void 0 : _a.length) === 0) {
10306
10326
  return null;
10307
10327
  }
10308
10328
  return /* @__PURE__ */ jsx(Center, {
@@ -10320,13 +10340,14 @@ function Footer() {
10320
10340
  lineHeight: "1.172rem",
10321
10341
  isExternal: action.targetBlank,
10322
10342
  children: action.text
10323
- }), action.hasIcon && /* @__PURE__ */ jsx(ArrowRight, {
10343
+ }), action.hasIcon === true && /* @__PURE__ */ jsx(ArrowRight, {
10324
10344
  color: vars("colors-main-deepSkyBlue")
10325
10345
  })]
10326
10346
  }) : /* @__PURE__ */ jsx(Text, {
10327
10347
  fontWeight: "500",
10328
10348
  lineHeight: "1.172rem",
10329
10349
  color: vars("colors-neutral-spanishGrey"),
10350
+ m: "0",
10330
10351
  children: action.text
10331
10352
  })
10332
10353
  });
@@ -10346,6 +10367,7 @@ function WithRipples({
10346
10367
  function CourseBox({
10347
10368
  data
10348
10369
  }) {
10370
+ var _a, _b;
10349
10371
  const cssActive = {
10350
10372
  boxShadow: `0 2px 7px 0 ${vars("colors-neutral-silverSand")}`
10351
10373
  };
@@ -10353,8 +10375,8 @@ function CourseBox({
10353
10375
  value: data,
10354
10376
  children: /* @__PURE__ */ jsx(LinkBox, {
10355
10377
  as: "article",
10356
- border: `1px solid ${vars("colors-neutral-platinum")}`,
10357
- borderRadius: 10,
10378
+ border: vars("borders-light"),
10379
+ borderRadius: vars("radii-big"),
10358
10380
  cursor: "pointer",
10359
10381
  transition: "box-shadow .3s",
10360
10382
  _active: cssActive,
@@ -10362,7 +10384,7 @@ function CourseBox({
10362
10384
  _focus: cssActive,
10363
10385
  overflow: "hidden",
10364
10386
  children: /* @__PURE__ */ jsx(WithRipples, {
10365
- enabled: data.action.enabled,
10387
+ enabled: (_b = (_a = data.action) == null ? void 0 : _a.enabled) != null ? _b : false,
10366
10388
  children: /* @__PURE__ */ jsxs(Flex, {
10367
10389
  direction: "column",
10368
10390
  justify: "space-between",
@@ -10382,7 +10404,7 @@ function CourseList({
10382
10404
  courses,
10383
10405
  m: m2 = "0 auto"
10384
10406
  }) {
10385
- if (courses.length === 0) {
10407
+ if (courses === void 0) {
10386
10408
  return null;
10387
10409
  }
10388
10410
  return /* @__PURE__ */ jsx(Box, {
@@ -10392,20 +10414,20 @@ function CourseList({
10392
10414
  gridTemplateColumns: `repeat(auto-fill, minmax(${wCourse}rem, 1fr))`,
10393
10415
  m: m2,
10394
10416
  w: "100%",
10395
- children: courses.map((course) => /* @__PURE__ */ jsx(CourseBox, {
10417
+ children: courses == null ? void 0 : courses.map((course) => /* @__PURE__ */ jsx(CourseBox, {
10396
10418
  data: course
10397
10419
  }, course.id))
10398
10420
  });
10399
10421
  }
10400
10422
  CourseList.displayName = "CourseList";
10401
- const maxWidthCoursesList = (nCols = 4) => {
10423
+ function maxWidthCoursesList(nCols = 4) {
10402
10424
  const maxWidth = nCols * wCourse + columnGap * (nCols - 1);
10403
10425
  return {
10404
10426
  px: `${maxWidth * 16}px`,
10405
10427
  rem: `${maxWidth}rem`,
10406
10428
  remValue: maxWidth
10407
10429
  };
10408
- };
10430
+ }
10409
10431
  const dataBase = {
10410
10432
  name: "Orientaci\xF3n en la prevenci\xF3n de contagio de COVID-19",
10411
10433
  background: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT76y4DAhqWAlCspmGYWcbxSDnLw3p1FzJQKA&usqp=CAU",
@@ -10488,6 +10510,8 @@ const dataStates = {
10488
10510
  labels: []
10489
10511
  }),
10490
10512
  preInscripcion: __spreadProps(__spreadValues({}, dataBase), {
10513
+ logo: "https://cdn.eclass.com/img/productos/logos/logo-utec-square.jpg",
10514
+ background: "https://cdn.eclass.com/img/cursos/default1.png",
10491
10515
  id: 2,
10492
10516
  status: __spreadProps(__spreadValues({}, dataBase.status), {
10493
10517
  id: 2,
@@ -10513,6 +10537,7 @@ const dataStates = {
10513
10537
  }),
10514
10538
  preInscripcion2: __spreadProps(__spreadValues({}, dataBase), {
10515
10539
  id: 3,
10540
+ logo: "",
10516
10541
  status: __spreadProps(__spreadValues({}, dataBase.status), {
10517
10542
  id: 2,
10518
10543
  name: "preInscripcion"
@@ -10536,6 +10561,7 @@ const dataStates = {
10536
10561
  labels: []
10537
10562
  }),
10538
10563
  inscripcion: __spreadProps(__spreadValues({}, dataBase), {
10564
+ background: "https://cdn.eclass.com/img/cursos/default2.png",
10539
10565
  id: 4,
10540
10566
  status: __spreadProps(__spreadValues({}, dataBase.status), {
10541
10567
  id: 3,
@@ -10564,10 +10590,6 @@ const dataStates = {
10564
10590
  id: 3,
10565
10591
  name: "inscripcion"
10566
10592
  }),
10567
- Profile: {
10568
- id: 1,
10569
- name: "Administrador"
10570
- },
10571
10593
  progress: __spreadProps(__spreadValues({}, dataBase.progress), {
10572
10594
  label: "Tienes hasta el Lunes 16 de Enero para de 2022 inscribirte",
10573
10595
  icon: "schedule"
@@ -10575,11 +10597,7 @@ const dataStates = {
10575
10597
  dateStatus: __spreadProps(__spreadValues({}, dataBase.dateStatus), {
10576
10598
  hasDates: true
10577
10599
  }),
10578
- information: [{
10579
- icon: "certificate",
10580
- text: "Certificado por ACHS",
10581
- href: ""
10582
- }],
10600
+ information: [],
10583
10601
  action: __spreadProps(__spreadValues({}, dataBase.action), {
10584
10602
  text: "Inscr\xEDbete",
10585
10603
  targetBlank: true
@@ -10594,6 +10612,8 @@ const dataStates = {
10594
10612
  }),
10595
10613
  noDisponible: __spreadProps(__spreadValues({}, dataBase), {
10596
10614
  id: 6,
10615
+ logo: "",
10616
+ background: "https://cdn.eclass.com/img/cursos/default2.png",
10597
10617
  status: __spreadProps(__spreadValues({}, dataBase.status), {
10598
10618
  id: 4,
10599
10619
  name: "no disponible"
@@ -10616,15 +10636,11 @@ const dataStates = {
10616
10636
  text: "Ver informaci\xF3n del curso",
10617
10637
  targetBlank: true
10618
10638
  }),
10619
- labels: [{
10620
- id: "OBLIGATORY",
10621
- text: "Obligatorio"
10622
- }, {
10623
- id: "NEW",
10624
- text: "Nuevo"
10625
- }]
10639
+ labels: []
10626
10640
  }),
10627
10641
  noDisponible2: __spreadProps(__spreadValues({}, dataBase), {
10642
+ background: "https://cdn.eclass.com/img/cursos/default3.png",
10643
+ logo: "https://cdn.eclass.com/img/productos/logos/logo-eclass-academy-square.jpg",
10628
10644
  id: 7,
10629
10645
  status: __spreadProps(__spreadValues({}, dataBase.status), {
10630
10646
  id: 4,
@@ -10645,8 +10661,7 @@ const dataStates = {
10645
10661
  href: ""
10646
10662
  }],
10647
10663
  action: __spreadProps(__spreadValues({}, dataBase.action), {
10648
- enabled: false,
10649
- text: "Ver informaci\xF3n del curso"
10664
+ enabled: false
10650
10665
  }),
10651
10666
  labels: []
10652
10667
  }),
@@ -10684,6 +10699,7 @@ const dataStates = {
10684
10699
  }),
10685
10700
  sinEstudiar: __spreadProps(__spreadValues({}, dataBase), {
10686
10701
  id: 9,
10702
+ logo: "",
10687
10703
  status: __spreadProps(__spreadValues({}, dataBase.status), {
10688
10704
  id: 6,
10689
10705
  name: "sinEstudiar"
@@ -10716,6 +10732,7 @@ const dataStates = {
10716
10732
  }),
10717
10733
  sinEstudiar2: __spreadProps(__spreadValues({}, dataBase), {
10718
10734
  id: 10,
10735
+ background: "https://cdn.eclass.com/img/cursos/default2.png",
10719
10736
  status: __spreadProps(__spreadValues({}, dataBase.status), {
10720
10737
  id: 6,
10721
10738
  name: "sinEstudiar"
@@ -10848,6 +10865,7 @@ const dataStates = {
10848
10865
  id: 7,
10849
10866
  name: "continuar"
10850
10867
  }),
10868
+ logo: "",
10851
10869
  progress: __spreadProps(__spreadValues({}, dataBase.progress), {
10852
10870
  label: "Has completado un 100% de tu curso",
10853
10871
  icon: "progress",
@@ -10873,6 +10891,7 @@ const dataStates = {
10873
10891
  labels: []
10874
10892
  }),
10875
10893
  pendiente: __spreadProps(__spreadValues({}, dataBase), {
10894
+ background: "https://cdn.eclass.com/img/cursos/default3.png",
10876
10895
  id: 15,
10877
10896
  status: __spreadProps(__spreadValues({}, dataBase.status), {
10878
10897
  id: 8,
@@ -10933,7 +10952,12 @@ const dataStates = {
10933
10952
  labels: []
10934
10953
  }),
10935
10954
  terminado2: __spreadProps(__spreadValues({}, dataBase), {
10955
+ logo: "https://cdn.eclass.com/img/productos/logos/logo-eclass-academy-square.jpg",
10936
10956
  id: 17,
10957
+ Profile: {
10958
+ id: 1,
10959
+ name: "Administrador"
10960
+ },
10937
10961
  status: __spreadProps(__spreadValues({}, dataBase.status), {
10938
10962
  id: 9,
10939
10963
  name: "terminado"
@@ -10965,6 +10989,7 @@ const dataStates = {
10965
10989
  }),
10966
10990
  terminado3: __spreadProps(__spreadValues({}, dataBase), {
10967
10991
  id: 18,
10992
+ logo: "",
10968
10993
  status: __spreadProps(__spreadValues({}, dataBase.status), {
10969
10994
  id: 9,
10970
10995
  name: "terminado"
@@ -10994,16 +11019,13 @@ const dataStates = {
10994
11019
  })
10995
11020
  };
10996
11021
  const dataFake = Object.keys(dataStates).map((key) => dataStates[key]);
10997
- var _700 = "";
10998
- var _500 = "";
10999
- var _400$1 = "";
11000
- var _300 = "";
11001
- var _400 = "";
11002
11022
  const main = {
11003
- blueGrey: "#60798E",
11004
11023
  deepSkyBlue: "#0189FF",
11005
- ziggurat: "#B0CFE0",
11006
- veryLightBlue: "#E0EEFA"
11024
+ azureRadiance: "#017BE5",
11025
+ blueGrey: "#60798E",
11026
+ veryLightBlue: "#E0EEFA",
11027
+ linkWater: "#C7DEF2",
11028
+ ziggurat: "#B0CFE0"
11007
11029
  };
11008
11030
  const colors = {
11009
11031
  main,
@@ -11047,13 +11069,39 @@ const styles = {
11047
11069
  }
11048
11070
  })
11049
11071
  };
11050
- const theme = extendTheme({
11051
- colors,
11072
+ const base = "solid 1px";
11073
+ const borders = {
11074
+ normal: `${base} ${colors.neutral.silverSand}`,
11075
+ light: `${base} ${colors.neutral.platinum}`,
11076
+ active: `${base} ${colors.main.deepSkyBlue}`,
11077
+ success: `${base} ${colors.alert.jadeGreen}`,
11078
+ error: `${base} ${colors.alert.red}`
11079
+ };
11080
+ const radii = {
11081
+ small: ".25rem",
11082
+ big: ".5rem",
11083
+ rounded: "50%"
11084
+ };
11085
+ const utils = {
11086
+ borders,
11087
+ radii
11088
+ };
11089
+ var _700 = "";
11090
+ var _500 = "";
11091
+ var _400$1 = "";
11092
+ var _300 = "";
11093
+ var _400 = "";
11094
+ const typography = {
11052
11095
  fonts: {
11053
- body: "roboto"
11054
- },
11096
+ body: "Roboto",
11097
+ outstanding: "Lora"
11098
+ }
11099
+ };
11100
+ const theme = extendTheme(__spreadProps(__spreadValues(__spreadValues({
11101
+ colors
11102
+ }, utils), typography), {
11055
11103
  styles
11056
- });
11104
+ }));
11057
11105
  const vars = (value) => `var(--chakra-${value})`;
11058
11106
  export { CourseList, Label, Progress, Ripples, dataFake, maxWidthCoursesList, theme, vars };
11059
11107
  //# sourceMappingURL=eclass-ui-kit.es.js.map