@eclass/ui-kit 1.4.3 → 1.5.1
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/atoms/Label/Label.d.ts +4 -0
- package/dist/atoms/Progress/Progress.d.ts +9 -1
- package/dist/atoms/Ripples/Ripples.d.ts +9 -0
- package/dist/components/TestVars.d.ts +6 -0
- package/dist/eclass-ui-kit.es.js +128 -86
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +6 -6
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/organisms/CourseList/CourseBox.d.ts +3 -3
- package/dist/organisms/CourseList/CourseList.d.ts +2 -6
- package/dist/organisms/CourseList/components/DateStatus.d.ts +1 -1
- package/dist/organisms/CourseList/components/IconSelection.d.ts +2 -3
- package/dist/organisms/CourseList/maxWidthCoursesList.d.ts +1 -1
- package/package.json +27 -21
|
@@ -6,6 +6,10 @@ export interface LabelProps {
|
|
|
6
6
|
size?: 'md' | 'sm';
|
|
7
7
|
m?: string;
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Componente Label
|
|
11
|
+
* @example <Label>Etiqueta</Label>
|
|
12
|
+
*/
|
|
9
13
|
export declare function Label({ children, bg, color, size, m, }: LabelProps): JSX.Element;
|
|
10
14
|
export declare namespace Label {
|
|
11
15
|
var displayName: string;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
interface ProgressProps {
|
|
3
|
+
value: number;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Componente Progress circular, valores permitidos entre 0 - 100
|
|
7
|
+
* @example <Progress value={35} />
|
|
8
|
+
*/
|
|
9
|
+
export declare function Progress({ value }: ProgressProps): JSX.Element;
|
|
3
10
|
export declare namespace Progress {
|
|
4
11
|
var displayName: string;
|
|
5
12
|
}
|
|
13
|
+
export {};
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* Componente Ripples se debe poner entre un Wrapper y su contenido
|
|
4
|
+
* @example
|
|
5
|
+
* <div>
|
|
6
|
+
* <Ripples>
|
|
7
|
+
* <p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
|
|
8
|
+
* </Ripples>
|
|
9
|
+
* </div>
|
|
10
|
+
*/
|
|
2
11
|
export declare function Ripples({ children, color }: any): JSX.Element;
|
|
3
12
|
export declare namespace Ripples {
|
|
4
13
|
var displayName: string;
|
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -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] +=
|
|
597
|
+
parsed[index] += identifierWithPointTracking(position$1 - 1, points, index);
|
|
582
598
|
break;
|
|
583
599
|
case 2:
|
|
584
600
|
parsed[index] += delimit(character2);
|
|
@@ -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")
|
|
@@ -10137,6 +10148,7 @@ function Header() {
|
|
|
10137
10148
|
bgPos: "center",
|
|
10138
10149
|
bgSize: "cover",
|
|
10139
10150
|
height: "8.75rem",
|
|
10151
|
+
borderBottom: `1px solid ${vars("colors-neutral-platinum")}`,
|
|
10140
10152
|
pos: "relative",
|
|
10141
10153
|
children: [/* @__PURE__ */ jsxs(Box, {
|
|
10142
10154
|
p: "1rem",
|
|
@@ -10180,12 +10192,13 @@ 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
|
|
10200
|
+
color: vars("colors-neutral-darkCharcoal"),
|
|
10201
|
+
m: "0",
|
|
10189
10202
|
children: date
|
|
10190
10203
|
});
|
|
10191
10204
|
}
|
|
@@ -10194,23 +10207,31 @@ function IconSelection({
|
|
|
10194
10207
|
type,
|
|
10195
10208
|
progressValue = 0
|
|
10196
10209
|
}) {
|
|
10197
|
-
|
|
10198
|
-
schedule:
|
|
10199
|
-
|
|
10200
|
-
|
|
10201
|
-
|
|
10202
|
-
|
|
10203
|
-
|
|
10204
|
-
|
|
10205
|
-
|
|
10206
|
-
|
|
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
|
+
}
|
|
10207
10226
|
}
|
|
10227
|
+
const ID_QUALIFIED = 7;
|
|
10208
10228
|
function Section() {
|
|
10209
10229
|
const {
|
|
10210
10230
|
name,
|
|
10211
10231
|
dateStatus,
|
|
10212
10232
|
information,
|
|
10213
|
-
progress
|
|
10233
|
+
progress,
|
|
10234
|
+
status
|
|
10214
10235
|
} = React__default.useContext(CourseBoxContext);
|
|
10215
10236
|
if (!progress) {
|
|
10216
10237
|
return null;
|
|
@@ -10221,9 +10242,10 @@ function Section() {
|
|
|
10221
10242
|
p: "0 .9375rem",
|
|
10222
10243
|
children: [(dateStatus == null ? void 0 : dateStatus.hasDates) && /* @__PURE__ */ jsxs(HStack, {
|
|
10223
10244
|
direction: "row",
|
|
10224
|
-
divider: dateStatus.init.length > 0 && dateStatus.end.length > 0 ? /* @__PURE__ */ jsx(
|
|
10245
|
+
divider: dateStatus.init !== void 0 && dateStatus.init.length > 0 && dateStatus.end !== void 0 && dateStatus.end.length > 0 ? /* @__PURE__ */ jsx(Box, {
|
|
10225
10246
|
h: ".5rem",
|
|
10226
|
-
|
|
10247
|
+
w: "1px",
|
|
10248
|
+
bg: vars("colors-neutral-silverSand"),
|
|
10227
10249
|
alignSelf: "center"
|
|
10228
10250
|
}) : /* @__PURE__ */ jsx(Fragment, {}),
|
|
10229
10251
|
children: [/* @__PURE__ */ jsx(DateStatus, {
|
|
@@ -10252,9 +10274,9 @@ function Section() {
|
|
|
10252
10274
|
lineHeight: "1.125rem",
|
|
10253
10275
|
children: progress == null ? void 0 : progress.label
|
|
10254
10276
|
})]
|
|
10255
|
-
}), (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, {
|
|
10256
10278
|
size: "sm",
|
|
10257
|
-
bg:
|
|
10279
|
+
bg: progress.isApproved ? vars("colors-alert-jadeGreen") : vars("colors-alert-red"),
|
|
10258
10280
|
color: vars("colors-neutral-white"),
|
|
10259
10281
|
children: progress == null ? void 0 : progress.finalGrade
|
|
10260
10282
|
})]
|
|
@@ -10262,42 +10284,45 @@ function Section() {
|
|
|
10262
10284
|
spacing: ".625rem",
|
|
10263
10285
|
paddingInlineStart: "0",
|
|
10264
10286
|
pt: ".625rem",
|
|
10265
|
-
|
|
10287
|
+
m: ".625rem 0 0",
|
|
10266
10288
|
lineHeight: ".875rem",
|
|
10267
|
-
borderTop:
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
|
|
10272
|
-
|
|
10273
|
-
|
|
10274
|
-
|
|
10275
|
-
|
|
10276
|
-
|
|
10277
|
-
|
|
10278
|
-
|
|
10279
|
-
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
|
|
10283
|
-
|
|
10284
|
-
|
|
10285
|
-
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10289
|
-
|
|
10290
|
-
|
|
10291
|
-
|
|
10289
|
+
borderTop: `1px solid ${vars("colors-neutral-platinum")}`,
|
|
10290
|
+
children: information.map((item, index) => {
|
|
10291
|
+
var _a;
|
|
10292
|
+
return /* @__PURE__ */ jsxs(ListItem, {
|
|
10293
|
+
display: "flex",
|
|
10294
|
+
children: [/* @__PURE__ */ jsx(IconSelection, {
|
|
10295
|
+
type: item.icon
|
|
10296
|
+
}), /* @__PURE__ */ jsx(Box, {
|
|
10297
|
+
display: "inline-block",
|
|
10298
|
+
ml: ".625rem",
|
|
10299
|
+
children: item.href !== void 0 && ((_a = item.href) == null ? void 0 : _a.length) > 0 ? /* @__PURE__ */ jsx(Link, {
|
|
10300
|
+
isExternal: true,
|
|
10301
|
+
href: item.href,
|
|
10302
|
+
color: vars("colors-main-deepSkyBlue"),
|
|
10303
|
+
textDecor: "underline",
|
|
10304
|
+
fontWeight: "500",
|
|
10305
|
+
fontSize: ".75rem",
|
|
10306
|
+
children: item.text
|
|
10307
|
+
}) : /* @__PURE__ */ jsx(Text, {
|
|
10308
|
+
m: "0",
|
|
10309
|
+
color: vars("colors-neutral-gray"),
|
|
10310
|
+
fontSize: ".75rem",
|
|
10311
|
+
children: item.text
|
|
10312
|
+
})
|
|
10313
|
+
})]
|
|
10314
|
+
}, index);
|
|
10315
|
+
})
|
|
10292
10316
|
})]
|
|
10293
10317
|
});
|
|
10294
10318
|
}
|
|
10295
10319
|
Section.displayName = "Section";
|
|
10296
10320
|
function Footer() {
|
|
10321
|
+
var _a;
|
|
10297
10322
|
const {
|
|
10298
10323
|
action
|
|
10299
10324
|
} = React.useContext(CourseBoxContext);
|
|
10300
|
-
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) {
|
|
10301
10326
|
return null;
|
|
10302
10327
|
}
|
|
10303
10328
|
return /* @__PURE__ */ jsx(Center, {
|
|
@@ -10315,13 +10340,14 @@ function Footer() {
|
|
|
10315
10340
|
lineHeight: "1.172rem",
|
|
10316
10341
|
isExternal: action.targetBlank,
|
|
10317
10342
|
children: action.text
|
|
10318
|
-
}), action.hasIcon && /* @__PURE__ */ jsx(ArrowRight, {
|
|
10343
|
+
}), action.hasIcon === true && /* @__PURE__ */ jsx(ArrowRight, {
|
|
10319
10344
|
color: vars("colors-main-deepSkyBlue")
|
|
10320
10345
|
})]
|
|
10321
10346
|
}) : /* @__PURE__ */ jsx(Text, {
|
|
10322
10347
|
fontWeight: "500",
|
|
10323
10348
|
lineHeight: "1.172rem",
|
|
10324
10349
|
color: vars("colors-neutral-spanishGrey"),
|
|
10350
|
+
m: "0",
|
|
10325
10351
|
children: action.text
|
|
10326
10352
|
})
|
|
10327
10353
|
});
|
|
@@ -10341,6 +10367,7 @@ function WithRipples({
|
|
|
10341
10367
|
function CourseBox({
|
|
10342
10368
|
data
|
|
10343
10369
|
}) {
|
|
10370
|
+
var _a, _b;
|
|
10344
10371
|
const cssActive = {
|
|
10345
10372
|
boxShadow: `0 2px 7px 0 ${vars("colors-neutral-silverSand")}`
|
|
10346
10373
|
};
|
|
@@ -10348,8 +10375,7 @@ function CourseBox({
|
|
|
10348
10375
|
value: data,
|
|
10349
10376
|
children: /* @__PURE__ */ jsx(LinkBox, {
|
|
10350
10377
|
as: "article",
|
|
10351
|
-
|
|
10352
|
-
borderColor: vars("colors-neutral-platinum"),
|
|
10378
|
+
border: `1px solid ${vars("colors-neutral-platinum")}`,
|
|
10353
10379
|
borderRadius: 10,
|
|
10354
10380
|
cursor: "pointer",
|
|
10355
10381
|
transition: "box-shadow .3s",
|
|
@@ -10358,7 +10384,7 @@ function CourseBox({
|
|
|
10358
10384
|
_focus: cssActive,
|
|
10359
10385
|
overflow: "hidden",
|
|
10360
10386
|
children: /* @__PURE__ */ jsx(WithRipples, {
|
|
10361
|
-
enabled: data.action.enabled,
|
|
10387
|
+
enabled: (_b = (_a = data.action) == null ? void 0 : _a.enabled) != null ? _b : false,
|
|
10362
10388
|
children: /* @__PURE__ */ jsxs(Flex, {
|
|
10363
10389
|
direction: "column",
|
|
10364
10390
|
justify: "space-between",
|
|
@@ -10378,7 +10404,7 @@ function CourseList({
|
|
|
10378
10404
|
courses,
|
|
10379
10405
|
m: m2 = "0 auto"
|
|
10380
10406
|
}) {
|
|
10381
|
-
if (courses.length === 0) {
|
|
10407
|
+
if ((courses == null ? void 0 : courses.length) === 0) {
|
|
10382
10408
|
return null;
|
|
10383
10409
|
}
|
|
10384
10410
|
return /* @__PURE__ */ jsx(Box, {
|
|
@@ -10387,20 +10413,21 @@ function CourseList({
|
|
|
10387
10413
|
gridRowGap: "1.75rem",
|
|
10388
10414
|
gridTemplateColumns: `repeat(auto-fill, minmax(${wCourse}rem, 1fr))`,
|
|
10389
10415
|
m: m2,
|
|
10390
|
-
|
|
10416
|
+
w: "100%",
|
|
10417
|
+
children: courses == null ? void 0 : courses.map((course) => /* @__PURE__ */ jsx(CourseBox, {
|
|
10391
10418
|
data: course
|
|
10392
10419
|
}, course.id))
|
|
10393
10420
|
});
|
|
10394
10421
|
}
|
|
10395
10422
|
CourseList.displayName = "CourseList";
|
|
10396
|
-
|
|
10423
|
+
function maxWidthCoursesList(nCols = 4) {
|
|
10397
10424
|
const maxWidth = nCols * wCourse + columnGap * (nCols - 1);
|
|
10398
10425
|
return {
|
|
10399
10426
|
px: `${maxWidth * 16}px`,
|
|
10400
10427
|
rem: `${maxWidth}rem`,
|
|
10401
10428
|
remValue: maxWidth
|
|
10402
10429
|
};
|
|
10403
|
-
}
|
|
10430
|
+
}
|
|
10404
10431
|
const dataBase = {
|
|
10405
10432
|
name: "Orientaci\xF3n en la prevenci\xF3n de contagio de COVID-19",
|
|
10406
10433
|
background: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT76y4DAhqWAlCspmGYWcbxSDnLw3p1FzJQKA&usqp=CAU",
|
|
@@ -10474,7 +10501,7 @@ const dataStates = {
|
|
|
10474
10501
|
information: [{
|
|
10475
10502
|
icon: "certificate",
|
|
10476
10503
|
text: "Certificado por ACHS",
|
|
10477
|
-
href:
|
|
10504
|
+
href: null
|
|
10478
10505
|
}],
|
|
10479
10506
|
action: __spreadProps(__spreadValues({}, dataBase.action), {
|
|
10480
10507
|
href: "#",
|
|
@@ -10483,6 +10510,8 @@ const dataStates = {
|
|
|
10483
10510
|
labels: []
|
|
10484
10511
|
}),
|
|
10485
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",
|
|
10486
10515
|
id: 2,
|
|
10487
10516
|
status: __spreadProps(__spreadValues({}, dataBase.status), {
|
|
10488
10517
|
id: 2,
|
|
@@ -10508,6 +10537,7 @@ const dataStates = {
|
|
|
10508
10537
|
}),
|
|
10509
10538
|
preInscripcion2: __spreadProps(__spreadValues({}, dataBase), {
|
|
10510
10539
|
id: 3,
|
|
10540
|
+
logo: "",
|
|
10511
10541
|
status: __spreadProps(__spreadValues({}, dataBase.status), {
|
|
10512
10542
|
id: 2,
|
|
10513
10543
|
name: "preInscripcion"
|
|
@@ -10531,6 +10561,7 @@ const dataStates = {
|
|
|
10531
10561
|
labels: []
|
|
10532
10562
|
}),
|
|
10533
10563
|
inscripcion: __spreadProps(__spreadValues({}, dataBase), {
|
|
10564
|
+
background: "https://cdn.eclass.com/img/cursos/default2.png",
|
|
10534
10565
|
id: 4,
|
|
10535
10566
|
status: __spreadProps(__spreadValues({}, dataBase.status), {
|
|
10536
10567
|
id: 3,
|
|
@@ -10559,10 +10590,6 @@ const dataStates = {
|
|
|
10559
10590
|
id: 3,
|
|
10560
10591
|
name: "inscripcion"
|
|
10561
10592
|
}),
|
|
10562
|
-
Profile: {
|
|
10563
|
-
id: 1,
|
|
10564
|
-
name: "Administrador"
|
|
10565
|
-
},
|
|
10566
10593
|
progress: __spreadProps(__spreadValues({}, dataBase.progress), {
|
|
10567
10594
|
label: "Tienes hasta el Lunes 16 de Enero para de 2022 inscribirte",
|
|
10568
10595
|
icon: "schedule"
|
|
@@ -10570,11 +10597,7 @@ const dataStates = {
|
|
|
10570
10597
|
dateStatus: __spreadProps(__spreadValues({}, dataBase.dateStatus), {
|
|
10571
10598
|
hasDates: true
|
|
10572
10599
|
}),
|
|
10573
|
-
information: [
|
|
10574
|
-
icon: "certificate",
|
|
10575
|
-
text: "Certificado por ACHS",
|
|
10576
|
-
href: ""
|
|
10577
|
-
}],
|
|
10600
|
+
information: [],
|
|
10578
10601
|
action: __spreadProps(__spreadValues({}, dataBase.action), {
|
|
10579
10602
|
text: "Inscr\xEDbete",
|
|
10580
10603
|
targetBlank: true
|
|
@@ -10589,6 +10612,8 @@ const dataStates = {
|
|
|
10589
10612
|
}),
|
|
10590
10613
|
noDisponible: __spreadProps(__spreadValues({}, dataBase), {
|
|
10591
10614
|
id: 6,
|
|
10615
|
+
logo: "",
|
|
10616
|
+
background: "https://cdn.eclass.com/img/cursos/default2.png",
|
|
10592
10617
|
status: __spreadProps(__spreadValues({}, dataBase.status), {
|
|
10593
10618
|
id: 4,
|
|
10594
10619
|
name: "no disponible"
|
|
@@ -10611,15 +10636,11 @@ const dataStates = {
|
|
|
10611
10636
|
text: "Ver informaci\xF3n del curso",
|
|
10612
10637
|
targetBlank: true
|
|
10613
10638
|
}),
|
|
10614
|
-
labels: [
|
|
10615
|
-
id: "OBLIGATORY",
|
|
10616
|
-
text: "Obligatorio"
|
|
10617
|
-
}, {
|
|
10618
|
-
id: "NEW",
|
|
10619
|
-
text: "Nuevo"
|
|
10620
|
-
}]
|
|
10639
|
+
labels: []
|
|
10621
10640
|
}),
|
|
10622
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",
|
|
10623
10644
|
id: 7,
|
|
10624
10645
|
status: __spreadProps(__spreadValues({}, dataBase.status), {
|
|
10625
10646
|
id: 4,
|
|
@@ -10640,8 +10661,7 @@ const dataStates = {
|
|
|
10640
10661
|
href: ""
|
|
10641
10662
|
}],
|
|
10642
10663
|
action: __spreadProps(__spreadValues({}, dataBase.action), {
|
|
10643
|
-
enabled: false
|
|
10644
|
-
text: "Ver informaci\xF3n del curso"
|
|
10664
|
+
enabled: false
|
|
10645
10665
|
}),
|
|
10646
10666
|
labels: []
|
|
10647
10667
|
}),
|
|
@@ -10679,6 +10699,7 @@ const dataStates = {
|
|
|
10679
10699
|
}),
|
|
10680
10700
|
sinEstudiar: __spreadProps(__spreadValues({}, dataBase), {
|
|
10681
10701
|
id: 9,
|
|
10702
|
+
logo: "",
|
|
10682
10703
|
status: __spreadProps(__spreadValues({}, dataBase.status), {
|
|
10683
10704
|
id: 6,
|
|
10684
10705
|
name: "sinEstudiar"
|
|
@@ -10711,6 +10732,7 @@ const dataStates = {
|
|
|
10711
10732
|
}),
|
|
10712
10733
|
sinEstudiar2: __spreadProps(__spreadValues({}, dataBase), {
|
|
10713
10734
|
id: 10,
|
|
10735
|
+
background: "https://cdn.eclass.com/img/cursos/default2.png",
|
|
10714
10736
|
status: __spreadProps(__spreadValues({}, dataBase.status), {
|
|
10715
10737
|
id: 6,
|
|
10716
10738
|
name: "sinEstudiar"
|
|
@@ -10843,6 +10865,7 @@ const dataStates = {
|
|
|
10843
10865
|
id: 7,
|
|
10844
10866
|
name: "continuar"
|
|
10845
10867
|
}),
|
|
10868
|
+
logo: "",
|
|
10846
10869
|
progress: __spreadProps(__spreadValues({}, dataBase.progress), {
|
|
10847
10870
|
label: "Has completado un 100% de tu curso",
|
|
10848
10871
|
icon: "progress",
|
|
@@ -10868,6 +10891,7 @@ const dataStates = {
|
|
|
10868
10891
|
labels: []
|
|
10869
10892
|
}),
|
|
10870
10893
|
pendiente: __spreadProps(__spreadValues({}, dataBase), {
|
|
10894
|
+
background: "https://cdn.eclass.com/img/cursos/default3.png",
|
|
10871
10895
|
id: 15,
|
|
10872
10896
|
status: __spreadProps(__spreadValues({}, dataBase.status), {
|
|
10873
10897
|
id: 8,
|
|
@@ -10928,7 +10952,12 @@ const dataStates = {
|
|
|
10928
10952
|
labels: []
|
|
10929
10953
|
}),
|
|
10930
10954
|
terminado2: __spreadProps(__spreadValues({}, dataBase), {
|
|
10955
|
+
logo: "https://cdn.eclass.com/img/productos/logos/logo-eclass-academy-square.jpg",
|
|
10931
10956
|
id: 17,
|
|
10957
|
+
Profile: {
|
|
10958
|
+
id: 1,
|
|
10959
|
+
name: "Administrador"
|
|
10960
|
+
},
|
|
10932
10961
|
status: __spreadProps(__spreadValues({}, dataBase.status), {
|
|
10933
10962
|
id: 9,
|
|
10934
10963
|
name: "terminado"
|
|
@@ -10960,6 +10989,7 @@ const dataStates = {
|
|
|
10960
10989
|
}),
|
|
10961
10990
|
terminado3: __spreadProps(__spreadValues({}, dataBase), {
|
|
10962
10991
|
id: 18,
|
|
10992
|
+
logo: "",
|
|
10963
10993
|
status: __spreadProps(__spreadValues({}, dataBase.status), {
|
|
10964
10994
|
id: 9,
|
|
10965
10995
|
name: "terminado"
|
|
@@ -11050,5 +11080,17 @@ const theme = extendTheme({
|
|
|
11050
11080
|
styles
|
|
11051
11081
|
});
|
|
11052
11082
|
const vars = (value) => `var(--chakra-${value})`;
|
|
11053
|
-
|
|
11083
|
+
const TestVars = ({
|
|
11084
|
+
color: color2 = "main.veryLightBlue"
|
|
11085
|
+
}) => {
|
|
11086
|
+
return /* @__PURE__ */ jsx(chakra.button, {
|
|
11087
|
+
px: "3",
|
|
11088
|
+
py: "2",
|
|
11089
|
+
bg: "main.deepSkyBlue",
|
|
11090
|
+
rounded: "md",
|
|
11091
|
+
color: color2,
|
|
11092
|
+
children: "Click me"
|
|
11093
|
+
});
|
|
11094
|
+
};
|
|
11095
|
+
export { CourseList, Label, Progress, Ripples, TestVars, dataFake, maxWidthCoursesList, theme, vars };
|
|
11054
11096
|
//# sourceMappingURL=eclass-ui-kit.es.js.map
|