@symbo.ls/uikit 2.11.86 → 2.11.88
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/index.cjs.js +42 -55
- package/dist/index.cjs.js.map +2 -2
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -641,7 +641,7 @@ var require_cjs = __commonJS({
|
|
|
641
641
|
};
|
|
642
642
|
var merge5 = (element, obj, excludeFrom = []) => {
|
|
643
643
|
for (const e in obj) {
|
|
644
|
-
if (excludeFrom.includes(e) || e.
|
|
644
|
+
if (excludeFrom.includes(e) || e.startsWith("__"))
|
|
645
645
|
continue;
|
|
646
646
|
const elementProp = element[e];
|
|
647
647
|
const objProp = obj[e];
|
|
@@ -653,7 +653,7 @@ var require_cjs = __commonJS({
|
|
|
653
653
|
};
|
|
654
654
|
var deepMerge3 = (element, extend, excludeFrom = []) => {
|
|
655
655
|
for (const e in extend) {
|
|
656
|
-
if (excludeFrom.includes(e) || e.
|
|
656
|
+
if (excludeFrom.includes(e) || e.startsWith("__"))
|
|
657
657
|
continue;
|
|
658
658
|
const elementProp = element[e];
|
|
659
659
|
const extendProp = extend[e];
|
|
@@ -668,7 +668,7 @@ var require_cjs = __commonJS({
|
|
|
668
668
|
var clone = (obj, excludeFrom = []) => {
|
|
669
669
|
const o = {};
|
|
670
670
|
for (const prop in obj) {
|
|
671
|
-
if (excludeFrom.includes(prop) || prop.
|
|
671
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
672
672
|
continue;
|
|
673
673
|
o[prop] = obj[prop];
|
|
674
674
|
}
|
|
@@ -680,7 +680,7 @@ var require_cjs = __commonJS({
|
|
|
680
680
|
}
|
|
681
681
|
const o = {};
|
|
682
682
|
for (const k in obj) {
|
|
683
|
-
if (excludeFrom.includes(k) || k.
|
|
683
|
+
if (excludeFrom.includes(k) || k.startsWith("__"))
|
|
684
684
|
continue;
|
|
685
685
|
let v = obj[k];
|
|
686
686
|
if (k === "extend" && (0, import_types.isArray)(v)) {
|
|
@@ -701,7 +701,7 @@ var require_cjs = __commonJS({
|
|
|
701
701
|
var deepClone22 = (obj, excludeFrom = []) => {
|
|
702
702
|
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
703
703
|
for (const prop in obj) {
|
|
704
|
-
if (excludeFrom.includes(prop) || prop.
|
|
704
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
705
705
|
continue;
|
|
706
706
|
let objProp = obj[prop];
|
|
707
707
|
if (prop === "extend" && (0, import_types.isArray)(objProp)) {
|
|
@@ -899,7 +899,7 @@ var require_cjs = __commonJS({
|
|
|
899
899
|
const { ref } = element;
|
|
900
900
|
const changes = {};
|
|
901
901
|
for (const e in params) {
|
|
902
|
-
if (excludeFrom.includes(e) || e.
|
|
902
|
+
if (excludeFrom.includes(e) || e.startsWith("__"))
|
|
903
903
|
continue;
|
|
904
904
|
const elementProp = element[e];
|
|
905
905
|
const paramsProp = params[e];
|
|
@@ -912,7 +912,7 @@ var require_cjs = __commonJS({
|
|
|
912
912
|
};
|
|
913
913
|
var overwriteShallow4 = (obj, params, excludeFrom = []) => {
|
|
914
914
|
for (const e in params) {
|
|
915
|
-
if (excludeFrom.includes(e) || e.
|
|
915
|
+
if (excludeFrom.includes(e) || e.startsWith("__"))
|
|
916
916
|
continue;
|
|
917
917
|
obj[e] = params[e];
|
|
918
918
|
}
|
|
@@ -920,7 +920,7 @@ var require_cjs = __commonJS({
|
|
|
920
920
|
};
|
|
921
921
|
var overwriteDeep2 = (obj, params, excludeFrom = []) => {
|
|
922
922
|
for (const e in params) {
|
|
923
|
-
if (excludeFrom.includes(e) || e.
|
|
923
|
+
if (excludeFrom.includes(e) || e.startsWith("__"))
|
|
924
924
|
continue;
|
|
925
925
|
const objProp = obj[e];
|
|
926
926
|
const paramsProp = params[e];
|
|
@@ -3419,7 +3419,7 @@ var require_object = __commonJS({
|
|
|
3419
3419
|
};
|
|
3420
3420
|
var merge5 = (element, obj, excludeFrom = []) => {
|
|
3421
3421
|
for (const e in obj) {
|
|
3422
|
-
if (excludeFrom.includes(e) || e.
|
|
3422
|
+
if (excludeFrom.includes(e) || e.startsWith("__"))
|
|
3423
3423
|
continue;
|
|
3424
3424
|
const elementProp = element[e];
|
|
3425
3425
|
const objProp = obj[e];
|
|
@@ -3431,7 +3431,7 @@ var require_object = __commonJS({
|
|
|
3431
3431
|
};
|
|
3432
3432
|
var deepMerge = (element, extend, excludeFrom = []) => {
|
|
3433
3433
|
for (const e in extend) {
|
|
3434
|
-
if (excludeFrom.includes(e) || e.
|
|
3434
|
+
if (excludeFrom.includes(e) || e.startsWith("__"))
|
|
3435
3435
|
continue;
|
|
3436
3436
|
const elementProp = element[e];
|
|
3437
3437
|
const extendProp = extend[e];
|
|
@@ -3446,7 +3446,7 @@ var require_object = __commonJS({
|
|
|
3446
3446
|
var clone = (obj, excludeFrom = []) => {
|
|
3447
3447
|
const o = {};
|
|
3448
3448
|
for (const prop in obj) {
|
|
3449
|
-
if (excludeFrom.includes(prop) || prop.
|
|
3449
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
3450
3450
|
continue;
|
|
3451
3451
|
o[prop] = obj[prop];
|
|
3452
3452
|
}
|
|
@@ -3458,7 +3458,7 @@ var require_object = __commonJS({
|
|
|
3458
3458
|
}
|
|
3459
3459
|
const o = {};
|
|
3460
3460
|
for (const k in obj) {
|
|
3461
|
-
if (excludeFrom.includes(k) || k.
|
|
3461
|
+
if (excludeFrom.includes(k) || k.startsWith("__"))
|
|
3462
3462
|
continue;
|
|
3463
3463
|
let v = obj[k];
|
|
3464
3464
|
if (k === "extend" && (0, import_types.isArray)(v)) {
|
|
@@ -3479,7 +3479,7 @@ var require_object = __commonJS({
|
|
|
3479
3479
|
var deepClone4 = (obj, excludeFrom = []) => {
|
|
3480
3480
|
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
3481
3481
|
for (const prop in obj) {
|
|
3482
|
-
if (excludeFrom.includes(prop) || prop.
|
|
3482
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
3483
3483
|
continue;
|
|
3484
3484
|
let objProp = obj[prop];
|
|
3485
3485
|
if (prop === "extend" && (0, import_types.isArray)(objProp)) {
|
|
@@ -3677,7 +3677,7 @@ var require_object = __commonJS({
|
|
|
3677
3677
|
const { ref } = element;
|
|
3678
3678
|
const changes = {};
|
|
3679
3679
|
for (const e in params) {
|
|
3680
|
-
if (excludeFrom.includes(e) || e.
|
|
3680
|
+
if (excludeFrom.includes(e) || e.startsWith("__"))
|
|
3681
3681
|
continue;
|
|
3682
3682
|
const elementProp = element[e];
|
|
3683
3683
|
const paramsProp = params[e];
|
|
@@ -3690,7 +3690,7 @@ var require_object = __commonJS({
|
|
|
3690
3690
|
};
|
|
3691
3691
|
var overwriteShallow4 = (obj, params, excludeFrom = []) => {
|
|
3692
3692
|
for (const e in params) {
|
|
3693
|
-
if (excludeFrom.includes(e) || e.
|
|
3693
|
+
if (excludeFrom.includes(e) || e.startsWith("__"))
|
|
3694
3694
|
continue;
|
|
3695
3695
|
obj[e] = params[e];
|
|
3696
3696
|
}
|
|
@@ -3698,7 +3698,7 @@ var require_object = __commonJS({
|
|
|
3698
3698
|
};
|
|
3699
3699
|
var overwriteDeep = (obj, params, excludeFrom = []) => {
|
|
3700
3700
|
for (const e in params) {
|
|
3701
|
-
if (excludeFrom.includes(e) || e.
|
|
3701
|
+
if (excludeFrom.includes(e) || e.startsWith("__"))
|
|
3702
3702
|
continue;
|
|
3703
3703
|
const objProp = obj[e];
|
|
3704
3704
|
const paramsProp = params[e];
|
|
@@ -12325,7 +12325,7 @@ var keySetters = {
|
|
|
12325
12325
|
isSubtree ? result : result && result.selector,
|
|
12326
12326
|
element
|
|
12327
12327
|
),
|
|
12328
|
-
"&": (key, props7, result, element, isSubtree) =>
|
|
12328
|
+
"&": (key, props7, result, element, isSubtree) => applyEndProps(
|
|
12329
12329
|
key,
|
|
12330
12330
|
props7,
|
|
12331
12331
|
isSubtree ? result : result && result.selector,
|
|
@@ -12397,10 +12397,14 @@ var applyMediaProps = (key, props7, result, element) => {
|
|
|
12397
12397
|
return (0, import_utils.merge)(result, generatedClass);
|
|
12398
12398
|
return;
|
|
12399
12399
|
}
|
|
12400
|
-
const mediaKey = `@media screen and ${mediaName}
|
|
12400
|
+
const mediaKey = mediaName ? `@media screen and ${mediaName}` : key;
|
|
12401
12401
|
result[mediaKey] = generatedClass;
|
|
12402
12402
|
return result[mediaKey];
|
|
12403
12403
|
};
|
|
12404
|
+
var applyEndProps = (key, props7, result, element) => {
|
|
12405
|
+
result[key] = convertPropsToClass(props7, result, element);
|
|
12406
|
+
return result[key];
|
|
12407
|
+
};
|
|
12404
12408
|
var applySelectorProps = (key, props7, result, element) => {
|
|
12405
12409
|
const selectorKey = `&${key}`;
|
|
12406
12410
|
result[selectorKey] = convertPropsToClass(props7, result, element);
|
|
@@ -12429,61 +12433,44 @@ var applyConditionalFalsyProps = (key, props7, result, element) => {
|
|
|
12429
12433
|
};
|
|
12430
12434
|
var applyTrueProps = (props7, result, element) => (0, import_utils.merge)(result, convertPropsToClass(props7, result, element));
|
|
12431
12435
|
var beforeClassAssign = (element, s) => {
|
|
12432
|
-
const { props: props7, class: className } = element;
|
|
12436
|
+
const { props: props7, class: className, context } = element;
|
|
12433
12437
|
const CLASS_NAMES = {
|
|
12434
12438
|
media: {},
|
|
12435
12439
|
selector: {},
|
|
12436
12440
|
case: {}
|
|
12437
12441
|
};
|
|
12438
|
-
for (const key in props7) {
|
|
12439
|
-
const setter = keySetters[key.slice(0, 1)];
|
|
12440
|
-
if (setter)
|
|
12441
|
-
setter(key, props7[key], CLASS_NAMES, element);
|
|
12442
|
-
}
|
|
12443
|
-
(0, import_utils.overwriteShallow)(className, CLASS_NAMES);
|
|
12444
|
-
};
|
|
12445
|
-
var initUpdate = (changes, element) => {
|
|
12446
|
-
const { props: props7, context, class: className } = element;
|
|
12447
12442
|
if (!context)
|
|
12448
12443
|
return;
|
|
12449
12444
|
const globalTheme = context.designSystem.globalTheme;
|
|
12450
|
-
const
|
|
12451
|
-
|
|
12452
|
-
|
|
12453
|
-
spacingRatio: parentProps.spacingRatio,
|
|
12454
|
-
inheritSpacingRatio: true
|
|
12455
|
-
}, {
|
|
12456
|
-
preventRecursive: true,
|
|
12457
|
-
preventInitUpdateListener: true
|
|
12458
|
-
});
|
|
12459
|
-
}
|
|
12460
|
-
if (globalTheme) {
|
|
12461
|
-
const CLASS_NAMES = {
|
|
12462
|
-
media: {},
|
|
12463
|
-
selector: {},
|
|
12464
|
-
case: {}
|
|
12465
|
-
};
|
|
12466
|
-
for (const key in props7) {
|
|
12467
|
-
const setter = keySetters[key.slice(0, 1)];
|
|
12445
|
+
for (const key in props7) {
|
|
12446
|
+
const setter = keySetters[key.slice(0, 1)];
|
|
12447
|
+
if (globalTheme) {
|
|
12468
12448
|
if (key === "theme") {
|
|
12469
12449
|
props7.update({
|
|
12470
12450
|
themeModifier: globalTheme
|
|
12471
12451
|
}, {
|
|
12472
12452
|
preventRecursive: true,
|
|
12473
|
-
|
|
12453
|
+
isForced: true,
|
|
12474
12454
|
preventDefineUpdate: true
|
|
12475
12455
|
});
|
|
12476
12456
|
} else if (key === "true")
|
|
12477
12457
|
applyTrueProps(props7[key], CLASS_NAMES, element);
|
|
12478
|
-
if (setter)
|
|
12479
|
-
setter(key, props7[key], CLASS_NAMES, element);
|
|
12480
|
-
}
|
|
12481
|
-
if (Object.keys(CLASS_NAMES.media).length) {
|
|
12482
|
-
className.media = CLASS_NAMES.media;
|
|
12483
12458
|
}
|
|
12484
|
-
|
|
12485
|
-
|
|
12459
|
+
if (setter)
|
|
12460
|
+
setter(key, props7[key], CLASS_NAMES, element);
|
|
12486
12461
|
}
|
|
12462
|
+
const parentProps = element.parent.props;
|
|
12463
|
+
if (parentProps && parentProps.spacingRatio && parentProps.inheritSpacingRatio) {
|
|
12464
|
+
element.setProps({
|
|
12465
|
+
spacingRatio: parentProps.spacingRatio,
|
|
12466
|
+
inheritSpacingRatio: true
|
|
12467
|
+
}, {
|
|
12468
|
+
preventRecursive: true,
|
|
12469
|
+
isForced: true,
|
|
12470
|
+
preventDefineUpdate: true
|
|
12471
|
+
});
|
|
12472
|
+
}
|
|
12473
|
+
(0, import_utils.overwriteShallow)(className, CLASS_NAMES);
|
|
12487
12474
|
};
|
|
12488
12475
|
var Media = {
|
|
12489
12476
|
class: {
|
|
@@ -12493,7 +12480,7 @@ var Media = {
|
|
|
12493
12480
|
};
|
|
12494
12481
|
}
|
|
12495
12482
|
},
|
|
12496
|
-
on: { beforeClassAssign
|
|
12483
|
+
on: { beforeClassAssign }
|
|
12497
12484
|
};
|
|
12498
12485
|
|
|
12499
12486
|
// Atoms/Iframe.js
|