@eclass/ui-kit 1.14.0 → 1.15.0
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/index.d.ts
CHANGED
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -123,8 +123,8 @@ function replace(value, pattern, replacement) {
|
|
|
123
123
|
function indexof(value, search) {
|
|
124
124
|
return value.indexOf(search);
|
|
125
125
|
}
|
|
126
|
-
function charat(value,
|
|
127
|
-
return value.charCodeAt(
|
|
126
|
+
function charat(value, index2) {
|
|
127
|
+
return value.charCodeAt(index2) | 0;
|
|
128
128
|
}
|
|
129
129
|
function substr(value, begin, end) {
|
|
130
130
|
return value.slice(begin, end);
|
|
@@ -226,11 +226,11 @@ function whitespace(type) {
|
|
|
226
226
|
break;
|
|
227
227
|
return token(type) > 2 || token(character) > 3 ? "" : " ";
|
|
228
228
|
}
|
|
229
|
-
function escaping(
|
|
229
|
+
function escaping(index2, count) {
|
|
230
230
|
while (--count && next())
|
|
231
231
|
if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
|
|
232
232
|
break;
|
|
233
|
-
return slice(
|
|
233
|
+
return slice(index2, caret() + (count < 6 && peek() == 32 && next() == 32));
|
|
234
234
|
}
|
|
235
235
|
function delimiter(type) {
|
|
236
236
|
while (next())
|
|
@@ -252,24 +252,24 @@ function delimiter(type) {
|
|
|
252
252
|
}
|
|
253
253
|
return position$1;
|
|
254
254
|
}
|
|
255
|
-
function commenter(type,
|
|
255
|
+
function commenter(type, index2) {
|
|
256
256
|
while (next())
|
|
257
257
|
if (type + character === 47 + 10)
|
|
258
258
|
break;
|
|
259
259
|
else if (type + character === 42 + 42 && peek() === 47)
|
|
260
260
|
break;
|
|
261
|
-
return "/*" + slice(
|
|
261
|
+
return "/*" + slice(index2, position$1 - 1) + "*" + from(type === 47 ? type : next());
|
|
262
262
|
}
|
|
263
|
-
function identifier(
|
|
263
|
+
function identifier(index2) {
|
|
264
264
|
while (!token(peek()))
|
|
265
265
|
next();
|
|
266
|
-
return slice(
|
|
266
|
+
return slice(index2, position$1);
|
|
267
267
|
}
|
|
268
268
|
function compile(value) {
|
|
269
269
|
return dealloc(parse$2("", null, null, null, [""], value = alloc(value), 0, [0], value));
|
|
270
270
|
}
|
|
271
271
|
function parse$2(value, root2, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
272
|
-
var
|
|
272
|
+
var index2 = 0;
|
|
273
273
|
var offset = 0;
|
|
274
274
|
var length2 = pseudo;
|
|
275
275
|
var atrule = 0;
|
|
@@ -317,7 +317,7 @@ function parse$2(value, root2, parent, rule, rules, rulesets, pseudo, points, de
|
|
|
317
317
|
}
|
|
318
318
|
break;
|
|
319
319
|
case 123 * variable:
|
|
320
|
-
points[
|
|
320
|
+
points[index2++] = strlen(characters2) * ampersand;
|
|
321
321
|
case 125 * variable:
|
|
322
322
|
case 59:
|
|
323
323
|
case 0:
|
|
@@ -332,7 +332,7 @@ function parse$2(value, root2, parent, rule, rules, rulesets, pseudo, points, de
|
|
|
332
332
|
case 59:
|
|
333
333
|
characters2 += ";";
|
|
334
334
|
default:
|
|
335
|
-
append(reference = ruleset(characters2, root2, parent,
|
|
335
|
+
append(reference = ruleset(characters2, root2, parent, index2, offset, rules, points, type, props = [], children = [], length2), rulesets);
|
|
336
336
|
if (character2 === 123)
|
|
337
337
|
if (offset === 0)
|
|
338
338
|
parse$2(characters2, root2, reference, reference, props, rulesets, length2, points, children);
|
|
@@ -347,7 +347,7 @@ function parse$2(value, root2, parent, rule, rules, rulesets, pseudo, points, de
|
|
|
347
347
|
parse$2(characters2, reference, reference, reference, [""], children, 0, points, children);
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
|
|
350
|
+
index2 = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
|
|
351
351
|
break;
|
|
352
352
|
case 58:
|
|
353
353
|
length2 = 1 + strlen(characters2), property = previous;
|
|
@@ -363,7 +363,7 @@ function parse$2(value, root2, parent, rule, rules, rulesets, pseudo, points, de
|
|
|
363
363
|
ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
|
|
364
364
|
break;
|
|
365
365
|
case 44:
|
|
366
|
-
points[
|
|
366
|
+
points[index2++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
|
|
367
367
|
break;
|
|
368
368
|
case 64:
|
|
369
369
|
if (peek() === 45)
|
|
@@ -377,11 +377,11 @@ function parse$2(value, root2, parent, rule, rules, rulesets, pseudo, points, de
|
|
|
377
377
|
}
|
|
378
378
|
return rulesets;
|
|
379
379
|
}
|
|
380
|
-
function ruleset(value, root2, parent,
|
|
380
|
+
function ruleset(value, root2, parent, index2, offset, rules, points, type, props, children, length2) {
|
|
381
381
|
var post = offset - 1;
|
|
382
382
|
var rule = offset === 0 ? rules : [""];
|
|
383
383
|
var size2 = sizeof(rule);
|
|
384
|
-
for (var i = 0, j = 0, k2 = 0; i <
|
|
384
|
+
for (var i = 0, j = 0, k2 = 0; i < index2; ++i)
|
|
385
385
|
for (var x2 = 0, y2 = substr(value, post + 1, post = abs(j = points[i])), z2 = value; x2 < size2; ++x2)
|
|
386
386
|
if (z2 = trim(j > 0 ? rule[x2] + " " + y2 : replace(y2, /&\f/g, rule[x2])))
|
|
387
387
|
props[k2++] = z2;
|
|
@@ -514,7 +514,7 @@ function serialize(children, callback) {
|
|
|
514
514
|
output += callback(children[i], i, children, callback) || "";
|
|
515
515
|
return output;
|
|
516
516
|
}
|
|
517
|
-
function stringify(element,
|
|
517
|
+
function stringify(element, index2, children, callback) {
|
|
518
518
|
switch (element.type) {
|
|
519
519
|
case IMPORT:
|
|
520
520
|
case DECLARATION:
|
|
@@ -530,10 +530,10 @@ function stringify(element, index, children, callback) {
|
|
|
530
530
|
}
|
|
531
531
|
function middleware(collection) {
|
|
532
532
|
var length2 = sizeof(collection);
|
|
533
|
-
return function(element,
|
|
533
|
+
return function(element, index2, children, callback) {
|
|
534
534
|
var output = "";
|
|
535
535
|
for (var i = 0; i < length2; i++)
|
|
536
|
-
output += collection[i](element,
|
|
536
|
+
output += collection[i](element, index2, children, callback) || "";
|
|
537
537
|
return output;
|
|
538
538
|
};
|
|
539
539
|
}
|
|
@@ -545,7 +545,7 @@ function rulesheet(callback) {
|
|
|
545
545
|
}
|
|
546
546
|
};
|
|
547
547
|
}
|
|
548
|
-
function prefixer(element,
|
|
548
|
+
function prefixer(element, index2, children, callback) {
|
|
549
549
|
if (element.length > -1) {
|
|
550
550
|
if (!element.return)
|
|
551
551
|
switch (element.type) {
|
|
@@ -592,14 +592,14 @@ function memoize$1(fn) {
|
|
|
592
592
|
return cache[arg];
|
|
593
593
|
};
|
|
594
594
|
}
|
|
595
|
-
var identifierWithPointTracking = function identifierWithPointTracking2(begin, points,
|
|
595
|
+
var identifierWithPointTracking = function identifierWithPointTracking2(begin, points, index2) {
|
|
596
596
|
var previous = 0;
|
|
597
597
|
var character2 = 0;
|
|
598
598
|
while (true) {
|
|
599
599
|
previous = character2;
|
|
600
600
|
character2 = peek();
|
|
601
601
|
if (previous === 38 && character2 === 12) {
|
|
602
|
-
points[
|
|
602
|
+
points[index2] = 1;
|
|
603
603
|
}
|
|
604
604
|
if (token(character2)) {
|
|
605
605
|
break;
|
|
@@ -609,27 +609,27 @@ var identifierWithPointTracking = function identifierWithPointTracking2(begin, p
|
|
|
609
609
|
return slice(begin, position$1);
|
|
610
610
|
};
|
|
611
611
|
var toRules = function toRules2(parsed, points) {
|
|
612
|
-
var
|
|
612
|
+
var index2 = -1;
|
|
613
613
|
var character2 = 44;
|
|
614
614
|
do {
|
|
615
615
|
switch (token(character2)) {
|
|
616
616
|
case 0:
|
|
617
617
|
if (character2 === 38 && peek() === 12) {
|
|
618
|
-
points[
|
|
618
|
+
points[index2] = 1;
|
|
619
619
|
}
|
|
620
|
-
parsed[
|
|
620
|
+
parsed[index2] += identifierWithPointTracking(position$1 - 1, points, index2);
|
|
621
621
|
break;
|
|
622
622
|
case 2:
|
|
623
|
-
parsed[
|
|
623
|
+
parsed[index2] += delimit(character2);
|
|
624
624
|
break;
|
|
625
625
|
case 4:
|
|
626
626
|
if (character2 === 44) {
|
|
627
|
-
parsed[++
|
|
628
|
-
points[
|
|
627
|
+
parsed[++index2] = peek() === 58 ? "&\f" : "";
|
|
628
|
+
points[index2] = parsed[index2].length;
|
|
629
629
|
break;
|
|
630
630
|
}
|
|
631
631
|
default:
|
|
632
|
-
parsed[
|
|
632
|
+
parsed[index2] += from(character2);
|
|
633
633
|
}
|
|
634
634
|
} while (character2 = next());
|
|
635
635
|
return parsed;
|
|
@@ -1560,9 +1560,9 @@ var lodash_mergewith = { exports: {} };
|
|
|
1560
1560
|
return func.apply(thisArg, args);
|
|
1561
1561
|
}
|
|
1562
1562
|
function baseTimes(n2, iteratee) {
|
|
1563
|
-
var
|
|
1564
|
-
while (++
|
|
1565
|
-
result[
|
|
1563
|
+
var index2 = -1, result = Array(n2);
|
|
1564
|
+
while (++index2 < n2) {
|
|
1565
|
+
result[index2] = iteratee(index2);
|
|
1566
1566
|
}
|
|
1567
1567
|
return result;
|
|
1568
1568
|
}
|
|
@@ -1618,10 +1618,10 @@ var lodash_mergewith = { exports: {} };
|
|
|
1618
1618
|
};
|
|
1619
1619
|
}();
|
|
1620
1620
|
function Hash(entries) {
|
|
1621
|
-
var
|
|
1621
|
+
var index2 = -1, length2 = entries == null ? 0 : entries.length;
|
|
1622
1622
|
this.clear();
|
|
1623
|
-
while (++
|
|
1624
|
-
var entry = entries[
|
|
1623
|
+
while (++index2 < length2) {
|
|
1624
|
+
var entry = entries[index2];
|
|
1625
1625
|
this.set(entry[0], entry[1]);
|
|
1626
1626
|
}
|
|
1627
1627
|
}
|
|
@@ -1658,10 +1658,10 @@ var lodash_mergewith = { exports: {} };
|
|
|
1658
1658
|
Hash.prototype.has = hashHas;
|
|
1659
1659
|
Hash.prototype.set = hashSet;
|
|
1660
1660
|
function ListCache(entries) {
|
|
1661
|
-
var
|
|
1661
|
+
var index2 = -1, length2 = entries == null ? 0 : entries.length;
|
|
1662
1662
|
this.clear();
|
|
1663
|
-
while (++
|
|
1664
|
-
var entry = entries[
|
|
1663
|
+
while (++index2 < length2) {
|
|
1664
|
+
var entry = entries[index2];
|
|
1665
1665
|
this.set(entry[0], entry[1]);
|
|
1666
1666
|
}
|
|
1667
1667
|
}
|
|
@@ -1670,33 +1670,33 @@ var lodash_mergewith = { exports: {} };
|
|
|
1670
1670
|
this.size = 0;
|
|
1671
1671
|
}
|
|
1672
1672
|
function listCacheDelete(key) {
|
|
1673
|
-
var data = this.__data__,
|
|
1674
|
-
if (
|
|
1673
|
+
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
1674
|
+
if (index2 < 0) {
|
|
1675
1675
|
return false;
|
|
1676
1676
|
}
|
|
1677
1677
|
var lastIndex = data.length - 1;
|
|
1678
|
-
if (
|
|
1678
|
+
if (index2 == lastIndex) {
|
|
1679
1679
|
data.pop();
|
|
1680
1680
|
} else {
|
|
1681
|
-
splice.call(data,
|
|
1681
|
+
splice.call(data, index2, 1);
|
|
1682
1682
|
}
|
|
1683
1683
|
--this.size;
|
|
1684
1684
|
return true;
|
|
1685
1685
|
}
|
|
1686
1686
|
function listCacheGet(key) {
|
|
1687
|
-
var data = this.__data__,
|
|
1688
|
-
return
|
|
1687
|
+
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
1688
|
+
return index2 < 0 ? void 0 : data[index2][1];
|
|
1689
1689
|
}
|
|
1690
1690
|
function listCacheHas(key) {
|
|
1691
1691
|
return assocIndexOf(this.__data__, key) > -1;
|
|
1692
1692
|
}
|
|
1693
1693
|
function listCacheSet(key, value) {
|
|
1694
|
-
var data = this.__data__,
|
|
1695
|
-
if (
|
|
1694
|
+
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
1695
|
+
if (index2 < 0) {
|
|
1696
1696
|
++this.size;
|
|
1697
1697
|
data.push([key, value]);
|
|
1698
1698
|
} else {
|
|
1699
|
-
data[
|
|
1699
|
+
data[index2][1] = value;
|
|
1700
1700
|
}
|
|
1701
1701
|
return this;
|
|
1702
1702
|
}
|
|
@@ -1706,10 +1706,10 @@ var lodash_mergewith = { exports: {} };
|
|
|
1706
1706
|
ListCache.prototype.has = listCacheHas;
|
|
1707
1707
|
ListCache.prototype.set = listCacheSet;
|
|
1708
1708
|
function MapCache(entries) {
|
|
1709
|
-
var
|
|
1709
|
+
var index2 = -1, length2 = entries == null ? 0 : entries.length;
|
|
1710
1710
|
this.clear();
|
|
1711
|
-
while (++
|
|
1712
|
-
var entry = entries[
|
|
1711
|
+
while (++index2 < length2) {
|
|
1712
|
+
var entry = entries[index2];
|
|
1713
1713
|
this.set(entry[0], entry[1]);
|
|
1714
1714
|
}
|
|
1715
1715
|
}
|
|
@@ -1944,19 +1944,19 @@ var lodash_mergewith = { exports: {} };
|
|
|
1944
1944
|
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
1945
1945
|
}
|
|
1946
1946
|
function copyArray(source, array) {
|
|
1947
|
-
var
|
|
1947
|
+
var index2 = -1, length2 = source.length;
|
|
1948
1948
|
array || (array = Array(length2));
|
|
1949
|
-
while (++
|
|
1950
|
-
array[
|
|
1949
|
+
while (++index2 < length2) {
|
|
1950
|
+
array[index2] = source[index2];
|
|
1951
1951
|
}
|
|
1952
1952
|
return array;
|
|
1953
1953
|
}
|
|
1954
1954
|
function copyObject(source, props, object, customizer) {
|
|
1955
1955
|
var isNew = !object;
|
|
1956
1956
|
object || (object = {});
|
|
1957
|
-
var
|
|
1958
|
-
while (++
|
|
1959
|
-
var key = props[
|
|
1957
|
+
var index2 = -1, length2 = props.length;
|
|
1958
|
+
while (++index2 < length2) {
|
|
1959
|
+
var key = props[index2];
|
|
1960
1960
|
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
1961
1961
|
if (newValue === void 0) {
|
|
1962
1962
|
newValue = source[key];
|
|
@@ -1971,17 +1971,17 @@ var lodash_mergewith = { exports: {} };
|
|
|
1971
1971
|
}
|
|
1972
1972
|
function createAssigner(assigner) {
|
|
1973
1973
|
return baseRest(function(object, sources) {
|
|
1974
|
-
var
|
|
1974
|
+
var index2 = -1, length2 = sources.length, customizer = length2 > 1 ? sources[length2 - 1] : void 0, guard = length2 > 2 ? sources[2] : void 0;
|
|
1975
1975
|
customizer = assigner.length > 3 && typeof customizer == "function" ? (length2--, customizer) : void 0;
|
|
1976
1976
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
1977
1977
|
customizer = length2 < 3 ? void 0 : customizer;
|
|
1978
1978
|
length2 = 1;
|
|
1979
1979
|
}
|
|
1980
1980
|
object = Object(object);
|
|
1981
|
-
while (++
|
|
1982
|
-
var source = sources[
|
|
1981
|
+
while (++index2 < length2) {
|
|
1982
|
+
var source = sources[index2];
|
|
1983
1983
|
if (source) {
|
|
1984
|
-
assigner(object, source,
|
|
1984
|
+
assigner(object, source, index2, customizer);
|
|
1985
1985
|
}
|
|
1986
1986
|
}
|
|
1987
1987
|
return object;
|
|
@@ -1989,9 +1989,9 @@ var lodash_mergewith = { exports: {} };
|
|
|
1989
1989
|
}
|
|
1990
1990
|
function createBaseFor(fromRight) {
|
|
1991
1991
|
return function(object, iteratee, keysFunc) {
|
|
1992
|
-
var
|
|
1992
|
+
var index2 = -1, iterable = Object(object), props = keysFunc(object), length2 = props.length;
|
|
1993
1993
|
while (length2--) {
|
|
1994
|
-
var key = props[fromRight ? length2 : ++
|
|
1994
|
+
var key = props[fromRight ? length2 : ++index2];
|
|
1995
1995
|
if (iteratee(iterable[key], key, iterable) === false) {
|
|
1996
1996
|
break;
|
|
1997
1997
|
}
|
|
@@ -2032,13 +2032,13 @@ var lodash_mergewith = { exports: {} };
|
|
|
2032
2032
|
length2 = length2 == null ? MAX_SAFE_INTEGER : length2;
|
|
2033
2033
|
return !!length2 && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length2);
|
|
2034
2034
|
}
|
|
2035
|
-
function isIterateeCall(value,
|
|
2035
|
+
function isIterateeCall(value, index2, object) {
|
|
2036
2036
|
if (!isObject2(object)) {
|
|
2037
2037
|
return false;
|
|
2038
2038
|
}
|
|
2039
|
-
var type = typeof
|
|
2040
|
-
if (type == "number" ? isArrayLike(object) && isIndex(
|
|
2041
|
-
return eq(object[
|
|
2039
|
+
var type = typeof index2;
|
|
2040
|
+
if (type == "number" ? isArrayLike(object) && isIndex(index2, object.length) : type == "string" && index2 in object) {
|
|
2041
|
+
return eq(object[index2], value);
|
|
2042
2042
|
}
|
|
2043
2043
|
return false;
|
|
2044
2044
|
}
|
|
@@ -2068,14 +2068,14 @@ var lodash_mergewith = { exports: {} };
|
|
|
2068
2068
|
function overRest(func, start, transform10) {
|
|
2069
2069
|
start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
|
|
2070
2070
|
return function() {
|
|
2071
|
-
var args = arguments,
|
|
2072
|
-
while (++
|
|
2073
|
-
array[
|
|
2071
|
+
var args = arguments, index2 = -1, length2 = nativeMax(args.length - start, 0), array = Array(length2);
|
|
2072
|
+
while (++index2 < length2) {
|
|
2073
|
+
array[index2] = args[start + index2];
|
|
2074
2074
|
}
|
|
2075
|
-
|
|
2075
|
+
index2 = -1;
|
|
2076
2076
|
var otherArgs = Array(start + 1);
|
|
2077
|
-
while (++
|
|
2078
|
-
otherArgs[
|
|
2077
|
+
while (++index2 < start) {
|
|
2078
|
+
otherArgs[index2] = args[index2];
|
|
2079
2079
|
}
|
|
2080
2080
|
otherArgs[start] = transform10(array);
|
|
2081
2081
|
return apply(func, this, otherArgs);
|
|
@@ -2235,18 +2235,18 @@ function pick(object, keys2) {
|
|
|
2235
2235
|
});
|
|
2236
2236
|
return result;
|
|
2237
2237
|
}
|
|
2238
|
-
function get(obj, path, fallback,
|
|
2238
|
+
function get(obj, path, fallback, index2) {
|
|
2239
2239
|
var key = typeof path === "string" ? path.split(".") : [path];
|
|
2240
|
-
for (
|
|
2240
|
+
for (index2 = 0; index2 < key.length; index2 += 1) {
|
|
2241
2241
|
if (!obj)
|
|
2242
2242
|
break;
|
|
2243
|
-
obj = obj[key[
|
|
2243
|
+
obj = obj[key[index2]];
|
|
2244
2244
|
}
|
|
2245
2245
|
return obj === void 0 ? fallback : obj;
|
|
2246
2246
|
}
|
|
2247
2247
|
var memoize = function memoize2(fn) {
|
|
2248
2248
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
2249
|
-
var memoizedFn = function memoizedFn2(obj, path, fallback,
|
|
2249
|
+
var memoizedFn = function memoizedFn2(obj, path, fallback, index2) {
|
|
2250
2250
|
if (typeof obj === "undefined") {
|
|
2251
2251
|
return fn(obj, path, fallback);
|
|
2252
2252
|
}
|
|
@@ -2257,7 +2257,7 @@ var memoize = function memoize2(fn) {
|
|
|
2257
2257
|
if (map.has(path)) {
|
|
2258
2258
|
return map.get(path);
|
|
2259
2259
|
}
|
|
2260
|
-
var value = fn(obj, path, fallback,
|
|
2260
|
+
var value = fn(obj, path, fallback, index2);
|
|
2261
2261
|
map.set(path, value);
|
|
2262
2262
|
return value;
|
|
2263
2263
|
};
|
|
@@ -2343,10 +2343,10 @@ function analyzeBreakpoints(breakpoints2) {
|
|
|
2343
2343
|
return null;
|
|
2344
2344
|
breakpoints2.base = (_breakpoints$base = breakpoints2.base) != null ? _breakpoints$base : "0px";
|
|
2345
2345
|
var normalized = normalize(breakpoints2);
|
|
2346
|
-
var queries2 = Object.entries(breakpoints2).sort(sortByBreakpointValue).map(function(_ref2,
|
|
2346
|
+
var queries2 = Object.entries(breakpoints2).sort(sortByBreakpointValue).map(function(_ref2, index2, entry) {
|
|
2347
2347
|
var _entry;
|
|
2348
2348
|
var breakpoint = _ref2[0], minW = _ref2[1];
|
|
2349
|
-
var _ref22 = (_entry = entry[
|
|
2349
|
+
var _ref22 = (_entry = entry[index2 + 1]) != null ? _entry : [], maxW = _ref22[1];
|
|
2350
2350
|
maxW = parseFloat(maxW) > 0 ? subtract(maxW) : void 0;
|
|
2351
2351
|
return {
|
|
2352
2352
|
breakpoint,
|
|
@@ -2391,8 +2391,8 @@ function analyzeBreakpoints(breakpoints2) {
|
|
|
2391
2391
|
if (!Array.isArray(test2)) {
|
|
2392
2392
|
throw new Error("toObjectValue: value must be an array");
|
|
2393
2393
|
}
|
|
2394
|
-
return test2.reduce(function(acc, value,
|
|
2395
|
-
var key = _keysArr[
|
|
2394
|
+
return test2.reduce(function(acc, value, index2) {
|
|
2395
|
+
var key = _keysArr[index2];
|
|
2396
2396
|
if (key != null && value != null)
|
|
2397
2397
|
acc[key] = value;
|
|
2398
2398
|
return acc;
|
|
@@ -11010,17 +11010,17 @@ var expandResponsive = function expandResponsive2(styles2) {
|
|
|
11010
11010
|
continue;
|
|
11011
11011
|
}
|
|
11012
11012
|
var queries2 = value.slice(0, medias.length).length;
|
|
11013
|
-
for (var
|
|
11014
|
-
var media = medias == null ? void 0 : medias[
|
|
11013
|
+
for (var index2 = 0; index2 < queries2; index2 += 1) {
|
|
11014
|
+
var media = medias == null ? void 0 : medias[index2];
|
|
11015
11015
|
if (!media) {
|
|
11016
|
-
computedStyles[key] = value[
|
|
11016
|
+
computedStyles[key] = value[index2];
|
|
11017
11017
|
continue;
|
|
11018
11018
|
}
|
|
11019
11019
|
computedStyles[media] = computedStyles[media] || {};
|
|
11020
|
-
if (value[
|
|
11020
|
+
if (value[index2] == null) {
|
|
11021
11021
|
continue;
|
|
11022
11022
|
}
|
|
11023
|
-
computedStyles[media][key] = value[
|
|
11023
|
+
computedStyles[media][key] = value[index2];
|
|
11024
11024
|
}
|
|
11025
11025
|
}
|
|
11026
11026
|
return computedStyles;
|
|
@@ -13208,15 +13208,15 @@ function randomColorFromString(str) {
|
|
|
13208
13208
|
return color2;
|
|
13209
13209
|
}
|
|
13210
13210
|
function randomColorFromList(str, list2) {
|
|
13211
|
-
var
|
|
13211
|
+
var index2 = 0;
|
|
13212
13212
|
if (str.length === 0)
|
|
13213
13213
|
return list2[0];
|
|
13214
13214
|
for (var i = 0; i < str.length; i += 1) {
|
|
13215
|
-
|
|
13216
|
-
|
|
13215
|
+
index2 = str.charCodeAt(i) + ((index2 << 5) - index2);
|
|
13216
|
+
index2 = index2 & index2;
|
|
13217
13217
|
}
|
|
13218
|
-
|
|
13219
|
-
return list2[
|
|
13218
|
+
index2 = (index2 % list2.length + list2.length) % list2.length;
|
|
13219
|
+
return list2[index2];
|
|
13220
13220
|
}
|
|
13221
13221
|
function randomFromList(list2) {
|
|
13222
13222
|
return list2[Math.floor(Math.random() * list2.length)];
|
|
@@ -16906,9 +16906,9 @@ function createRenderStep$1(runNextFrame2) {
|
|
|
16906
16906
|
return callback;
|
|
16907
16907
|
},
|
|
16908
16908
|
cancel: (callback) => {
|
|
16909
|
-
const
|
|
16910
|
-
if (
|
|
16911
|
-
toRunNextFrame.splice(
|
|
16909
|
+
const index2 = toRunNextFrame.indexOf(callback);
|
|
16910
|
+
if (index2 !== -1)
|
|
16911
|
+
toRunNextFrame.splice(index2, 1);
|
|
16912
16912
|
toKeepAlive.delete(callback);
|
|
16913
16913
|
},
|
|
16914
16914
|
process: (frameData) => {
|
|
@@ -17641,9 +17641,9 @@ function createRenderStep(runNextFrame2) {
|
|
|
17641
17641
|
return callback;
|
|
17642
17642
|
},
|
|
17643
17643
|
cancel: (callback) => {
|
|
17644
|
-
const
|
|
17645
|
-
if (
|
|
17646
|
-
toRunNextFrame.splice(
|
|
17644
|
+
const index2 = toRunNextFrame.indexOf(callback);
|
|
17645
|
+
if (index2 !== -1)
|
|
17646
|
+
toRunNextFrame.splice(index2, 1);
|
|
17647
17647
|
toKeepAlive.delete(callback);
|
|
17648
17648
|
},
|
|
17649
17649
|
process: (frameData) => {
|
|
@@ -17964,8 +17964,8 @@ function addUniqueItem(arr, item) {
|
|
|
17964
17964
|
arr.indexOf(item) === -1 && arr.push(item);
|
|
17965
17965
|
}
|
|
17966
17966
|
function removeItem(arr, item) {
|
|
17967
|
-
var
|
|
17968
|
-
|
|
17967
|
+
var index2 = arr.indexOf(item);
|
|
17968
|
+
index2 > -1 && arr.splice(index2, 1);
|
|
17969
17969
|
}
|
|
17970
17970
|
var SubscriptionManager = function() {
|
|
17971
17971
|
function SubscriptionManager2() {
|
|
@@ -20309,8 +20309,8 @@ function makeLatestValues(props, context, presenceContext, scrapeMotionValues) {
|
|
|
20309
20309
|
for (var key2 in target) {
|
|
20310
20310
|
var valueTarget = target[key2];
|
|
20311
20311
|
if (Array.isArray(valueTarget)) {
|
|
20312
|
-
var
|
|
20313
|
-
valueTarget = valueTarget[
|
|
20312
|
+
var index2 = initialAnimationIsBlocked ? valueTarget.length - 1 : 0;
|
|
20313
|
+
valueTarget = valueTarget[index2];
|
|
20314
20314
|
}
|
|
20315
20315
|
if (valueTarget !== null) {
|
|
20316
20316
|
values[key2] = valueTarget;
|
|
@@ -23756,9 +23756,9 @@ var Stack = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
23756
23756
|
var hasDivider = !!divider2;
|
|
23757
23757
|
var shouldUseChildren = !shouldWrapChildren && !hasDivider;
|
|
23758
23758
|
var validChildren = getValidChildren(children);
|
|
23759
|
-
var clones = shouldUseChildren ? validChildren : validChildren.map(function(child,
|
|
23760
|
-
var key = typeof child.key !== "undefined" ? child.key :
|
|
23761
|
-
var isLast =
|
|
23759
|
+
var clones = shouldUseChildren ? validChildren : validChildren.map(function(child, index2) {
|
|
23760
|
+
var key = typeof child.key !== "undefined" ? child.key : index2;
|
|
23761
|
+
var isLast = index2 + 1 === validChildren.length;
|
|
23762
23762
|
var wrappedChild = /* @__PURE__ */ React.createElement(StackItem, {
|
|
23763
23763
|
key
|
|
23764
23764
|
}, child);
|
|
@@ -24291,8 +24291,8 @@ function withSideEffect(reducePropsToState2, handleStateChangeOnClient2) {
|
|
|
24291
24291
|
emitChange();
|
|
24292
24292
|
};
|
|
24293
24293
|
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
24294
|
-
var
|
|
24295
|
-
mountedInstances.splice(
|
|
24294
|
+
var index2 = mountedInstances.indexOf(this);
|
|
24295
|
+
mountedInstances.splice(index2, 1);
|
|
24296
24296
|
emitChange();
|
|
24297
24297
|
};
|
|
24298
24298
|
_proto.render = function render() {
|
|
@@ -24328,8 +24328,8 @@ var filterNested = function(nodes) {
|
|
|
24328
24328
|
}
|
|
24329
24329
|
}
|
|
24330
24330
|
}
|
|
24331
|
-
return nodes.filter(function(_,
|
|
24332
|
-
return !contained.has(
|
|
24331
|
+
return nodes.filter(function(_, index2) {
|
|
24332
|
+
return !contained.has(index2);
|
|
24333
24333
|
});
|
|
24334
24334
|
};
|
|
24335
24335
|
var getTopParent = function(node2) {
|
|
@@ -24391,10 +24391,10 @@ var tabSort = function(a2, b2) {
|
|
|
24391
24391
|
return tabDiff || indexDiff;
|
|
24392
24392
|
};
|
|
24393
24393
|
var orderByTabIndex = function(nodes, filterNegative, keepGuards) {
|
|
24394
|
-
return toArray(nodes).map(function(node2,
|
|
24394
|
+
return toArray(nodes).map(function(node2, index2) {
|
|
24395
24395
|
return {
|
|
24396
24396
|
node: node2,
|
|
24397
|
-
index,
|
|
24397
|
+
index: index2,
|
|
24398
24398
|
tabIndex: keepGuards && node2.tabIndex === -1 ? (node2.dataset || {}).focusGuard ? 0 : -1 : node2.tabIndex
|
|
24399
24399
|
};
|
|
24400
24400
|
}).filter(function(data) {
|
|
@@ -24510,10 +24510,10 @@ var getFocusabledIn = function(topNode) {
|
|
|
24510
24510
|
return node2;
|
|
24511
24511
|
});
|
|
24512
24512
|
return outerNodes.map(function(_a) {
|
|
24513
|
-
var node2 = _a.node,
|
|
24513
|
+
var node2 = _a.node, index2 = _a.index;
|
|
24514
24514
|
return {
|
|
24515
24515
|
node: node2,
|
|
24516
|
-
index,
|
|
24516
|
+
index: index2,
|
|
24517
24517
|
lockItem: innerElements.indexOf(node2) >= 0,
|
|
24518
24518
|
guard: isGuard(node2)
|
|
24519
24519
|
};
|
|
@@ -24572,11 +24572,11 @@ var pickFirstFocus = function(nodes) {
|
|
|
24572
24572
|
}
|
|
24573
24573
|
return nodes[0];
|
|
24574
24574
|
};
|
|
24575
|
-
var pickFocusable = function(nodes,
|
|
24575
|
+
var pickFocusable = function(nodes, index2) {
|
|
24576
24576
|
if (nodes.length > 1) {
|
|
24577
|
-
return nodes.indexOf(correctNode(nodes[
|
|
24577
|
+
return nodes.indexOf(correctNode(nodes[index2], nodes));
|
|
24578
24578
|
}
|
|
24579
|
-
return
|
|
24579
|
+
return index2;
|
|
24580
24580
|
};
|
|
24581
24581
|
var NEW_FOCUS = "NEW_FOCUS";
|
|
24582
24582
|
var newFocus = function(innerNodes, outerNodes, activeElement, lastNode) {
|
|
@@ -26850,6 +26850,31 @@ function TextBubble(props) {
|
|
|
26850
26850
|
}));
|
|
26851
26851
|
}
|
|
26852
26852
|
TextBubble.displayName = "TextBubble";
|
|
26853
|
+
var index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
26854
|
+
__proto__: null,
|
|
26855
|
+
AcademicRecord,
|
|
26856
|
+
AlertInfo,
|
|
26857
|
+
ArrowRight,
|
|
26858
|
+
Certificate,
|
|
26859
|
+
CircularCheck,
|
|
26860
|
+
CircularInformation,
|
|
26861
|
+
Download,
|
|
26862
|
+
GoAhead,
|
|
26863
|
+
GoBack,
|
|
26864
|
+
Multimedia,
|
|
26865
|
+
Loader,
|
|
26866
|
+
Profile,
|
|
26867
|
+
Schedule,
|
|
26868
|
+
TinyAlertInfo,
|
|
26869
|
+
TinyAlertError,
|
|
26870
|
+
TinyAlertWarning,
|
|
26871
|
+
TinyAlertSuccess,
|
|
26872
|
+
Password,
|
|
26873
|
+
Pen,
|
|
26874
|
+
PlusSign,
|
|
26875
|
+
TrashCan,
|
|
26876
|
+
TextBubble
|
|
26877
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
26853
26878
|
function TinyAlert({
|
|
26854
26879
|
status,
|
|
26855
26880
|
text,
|
|
@@ -26991,9 +27016,10 @@ function Btn({
|
|
|
26991
27016
|
borderRadius,
|
|
26992
27017
|
color: color2,
|
|
26993
27018
|
className: onlyIcon,
|
|
26994
|
-
disabled: disabled2,
|
|
27019
|
+
disabled: disabled2 && isLoading ? false : disabled2,
|
|
26995
27020
|
height: "auto",
|
|
26996
27021
|
minHeight: size2 === "regular" ? "2.813rem" : "2rem",
|
|
27022
|
+
minWidth: size2 === "regular" ? "9rem" : "auto",
|
|
26997
27023
|
lineHeight: "initial",
|
|
26998
27024
|
iconSpacing: vars("space-xs"),
|
|
26999
27025
|
isActive: false,
|
|
@@ -27280,10 +27306,10 @@ function Header() {
|
|
|
27280
27306
|
direction: "row",
|
|
27281
27307
|
spacing: ".625rem",
|
|
27282
27308
|
wrap: "wrap",
|
|
27283
|
-
children: labels.map((item,
|
|
27309
|
+
children: labels.map((item, index2) => /* @__PURE__ */ jsx(Label, {
|
|
27284
27310
|
bg: item.id === "NEW" ? vars("colors-secondary-pumpkin") : void 0,
|
|
27285
27311
|
children: item.text
|
|
27286
|
-
},
|
|
27312
|
+
}, index2))
|
|
27287
27313
|
})]
|
|
27288
27314
|
}), logo !== void 0 && logo.length > 0 && /* @__PURE__ */ jsx(Center, {
|
|
27289
27315
|
pos: "absolute",
|
|
@@ -27417,7 +27443,7 @@ function Section() {
|
|
|
27417
27443
|
m: ".625rem 0 0",
|
|
27418
27444
|
lineHeight: ".875rem",
|
|
27419
27445
|
borderTop: vars("borders-light"),
|
|
27420
|
-
children: information.map((item,
|
|
27446
|
+
children: information.map((item, index2) => {
|
|
27421
27447
|
var _a;
|
|
27422
27448
|
return /* @__PURE__ */ jsxs(ListItem, {
|
|
27423
27449
|
display: "flex",
|
|
@@ -27441,7 +27467,7 @@ function Section() {
|
|
|
27441
27467
|
children: item.text
|
|
27442
27468
|
})
|
|
27443
27469
|
})]
|
|
27444
|
-
},
|
|
27470
|
+
}, index2);
|
|
27445
27471
|
})
|
|
27446
27472
|
})]
|
|
27447
27473
|
});
|
|
@@ -28431,5 +28457,5 @@ function CourseList({
|
|
|
28431
28457
|
});
|
|
28432
28458
|
}
|
|
28433
28459
|
CourseList.displayName = "CourseList";
|
|
28434
|
-
export { Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CourseList, CourseStatus, Label, Progress, Ripples, TinyAlert, dataFake, maxWidthCoursesList, theme, vars };
|
|
28460
|
+
export { Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CourseList, CourseStatus, index as Icons, Label, Progress, Ripples, TinyAlert, dataFake, maxWidthCoursesList, theme, vars };
|
|
28435
28461
|
//# sourceMappingURL=eclass-ui-kit.es.js.map
|