@app-studio/web 0.9.77 → 0.9.78
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/web.cjs.development.js +19 -8
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +19 -8
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +19 -8
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -25593,7 +25593,7 @@
|
|
|
25593
25593
|
_excluded7 = ["children", "src", "backgroundSize", "backgroundPosition", "backgroundRepeat", "backgroundAttachment", "imageOpacity", "overlay", "blendMode", "views", "themeMode"],
|
|
25594
25594
|
_excluded8 = ["children", "src", "autoPlay", "loop", "muted", "playsInline", "overlay", "blendMode", "views", "themeMode"],
|
|
25595
25595
|
_excluded9 = ["children"],
|
|
25596
|
-
_excluded10 = ["contentPosition"],
|
|
25596
|
+
_excluded10 = ["contentPosition", "backgroundColor"],
|
|
25597
25597
|
_excluded11 = ["children", "views"],
|
|
25598
25598
|
_excluded12 = ["children", "designProps", "shape", "decorationRotation", "decorationScale", "decorationOpacity", "views"];
|
|
25599
25599
|
// Background Context
|
|
@@ -26048,23 +26048,34 @@
|
|
|
26048
26048
|
*/
|
|
26049
26049
|
var BackgroundOverlay = _ref10 => {
|
|
26050
26050
|
var {
|
|
26051
|
-
contentPosition
|
|
26051
|
+
contentPosition,
|
|
26052
|
+
backgroundColor = 'color.black.900'
|
|
26052
26053
|
} = _ref10,
|
|
26053
26054
|
props = _objectWithoutPropertiesLoose(_ref10, _excluded10);
|
|
26054
26055
|
var getDefaultOverlay = () => {
|
|
26056
|
+
var ligthBackground = backgroundColor + ".100";
|
|
26057
|
+
var darkBackground = backgroundColor + ".900";
|
|
26058
|
+
var midBackground = backgroundColor + ".600";
|
|
26059
|
+
var midDarkBackground = backgroundColor + ".400";
|
|
26060
|
+
if (backgroundColor.indexOf('.') === -1) {
|
|
26061
|
+
ligthBackground = "color-mix(in srgb, " + backgroundColor + " 10%, transparent)";
|
|
26062
|
+
darkBackground = "color-mix(in srgb, " + backgroundColor + " 90%, transparent)";
|
|
26063
|
+
midBackground = "color-mix(in srgb, " + backgroundColor + " 70%, transparent)";
|
|
26064
|
+
midDarkBackground = "color-mix(in srgb, " + backgroundColor + " 50%, transparent)";
|
|
26065
|
+
}
|
|
26055
26066
|
switch (contentPosition) {
|
|
26056
26067
|
case 'left':
|
|
26057
|
-
return
|
|
26068
|
+
return "radial-gradient(circle at 70% 50%, " + ligthBackground + " 0%, " + ligthBackground + " 100%), linear-gradient(to right, " + darkBackground + " 0%, " + midBackground + " 65%, " + ligthBackground + " 100%)";
|
|
26058
26069
|
case 'right':
|
|
26059
|
-
return
|
|
26070
|
+
return "radial-gradient(circle at 30% 50%, " + ligthBackground + " 0%, " + ligthBackground + " 100%), linear-gradient(to left, " + darkBackground + " 0%, " + midBackground + " 65%, " + ligthBackground + " 100%)";
|
|
26060
26071
|
case 'top':
|
|
26061
|
-
return
|
|
26072
|
+
return "radial-gradient(circle at 50% 40%, " + ligthBackground + " 0%, " + ligthBackground + " 100%), linear-gradient(to bottom, " + darkBackground + " 0%, " + midBackground + " 60%, " + ligthBackground + " 100%)";
|
|
26062
26073
|
case 'bottom':
|
|
26063
|
-
return
|
|
26074
|
+
return "radial-gradient(circle at 50% 60%, " + ligthBackground + " 0%, " + ligthBackground + " 100%), linear-gradient(to top, " + darkBackground + " 0%, " + midBackground + " 60%, " + ligthBackground + " 100%)";
|
|
26064
26075
|
case 'center':
|
|
26065
|
-
return
|
|
26076
|
+
return "radial-gradient(circle at 50% 70%, " + darkBackground + " 0%, " + ligthBackground + " 100%)";
|
|
26066
26077
|
default:
|
|
26067
|
-
return
|
|
26078
|
+
return midDarkBackground;
|
|
26068
26079
|
}
|
|
26069
26080
|
};
|
|
26070
26081
|
var background = getDefaultOverlay();
|