@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
package/dist/web.esm.js
CHANGED
|
@@ -25626,7 +25626,7 @@ var _excluded$1o = ["children", "showRadialGradient", "views", "themeMode"],
|
|
|
25626
25626
|
_excluded7 = ["children", "src", "backgroundSize", "backgroundPosition", "backgroundRepeat", "backgroundAttachment", "imageOpacity", "overlay", "blendMode", "views", "themeMode"],
|
|
25627
25627
|
_excluded8 = ["children", "src", "autoPlay", "loop", "muted", "playsInline", "overlay", "blendMode", "views", "themeMode"],
|
|
25628
25628
|
_excluded9 = ["children"],
|
|
25629
|
-
_excluded10 = ["contentPosition"],
|
|
25629
|
+
_excluded10 = ["contentPosition", "backgroundColor"],
|
|
25630
25630
|
_excluded11 = ["children", "views"],
|
|
25631
25631
|
_excluded12 = ["children", "designProps", "shape", "decorationRotation", "decorationScale", "decorationOpacity", "views"];
|
|
25632
25632
|
// Background Context
|
|
@@ -26081,23 +26081,34 @@ var BackgroundGradient = _ref9 => {
|
|
|
26081
26081
|
*/
|
|
26082
26082
|
var BackgroundOverlay = _ref10 => {
|
|
26083
26083
|
var {
|
|
26084
|
-
contentPosition
|
|
26084
|
+
contentPosition,
|
|
26085
|
+
backgroundColor = 'color.black.900'
|
|
26085
26086
|
} = _ref10,
|
|
26086
26087
|
props = _objectWithoutPropertiesLoose(_ref10, _excluded10);
|
|
26087
26088
|
var getDefaultOverlay = () => {
|
|
26089
|
+
var ligthBackground = backgroundColor + ".100";
|
|
26090
|
+
var darkBackground = backgroundColor + ".900";
|
|
26091
|
+
var midBackground = backgroundColor + ".600";
|
|
26092
|
+
var midDarkBackground = backgroundColor + ".400";
|
|
26093
|
+
if (backgroundColor.indexOf('.') === -1) {
|
|
26094
|
+
ligthBackground = "color-mix(in srgb, " + backgroundColor + " 10%, transparent)";
|
|
26095
|
+
darkBackground = "color-mix(in srgb, " + backgroundColor + " 90%, transparent)";
|
|
26096
|
+
midBackground = "color-mix(in srgb, " + backgroundColor + " 70%, transparent)";
|
|
26097
|
+
midDarkBackground = "color-mix(in srgb, " + backgroundColor + " 50%, transparent)";
|
|
26098
|
+
}
|
|
26088
26099
|
switch (contentPosition) {
|
|
26089
26100
|
case 'left':
|
|
26090
|
-
return
|
|
26101
|
+
return "radial-gradient(circle at 70% 50%, " + ligthBackground + " 0%, " + ligthBackground + " 100%), linear-gradient(to right, " + darkBackground + " 0%, " + midBackground + " 65%, " + ligthBackground + " 100%)";
|
|
26091
26102
|
case 'right':
|
|
26092
|
-
return
|
|
26103
|
+
return "radial-gradient(circle at 30% 50%, " + ligthBackground + " 0%, " + ligthBackground + " 100%), linear-gradient(to left, " + darkBackground + " 0%, " + midBackground + " 65%, " + ligthBackground + " 100%)";
|
|
26093
26104
|
case 'top':
|
|
26094
|
-
return
|
|
26105
|
+
return "radial-gradient(circle at 50% 40%, " + ligthBackground + " 0%, " + ligthBackground + " 100%), linear-gradient(to bottom, " + darkBackground + " 0%, " + midBackground + " 60%, " + ligthBackground + " 100%)";
|
|
26095
26106
|
case 'bottom':
|
|
26096
|
-
return
|
|
26107
|
+
return "radial-gradient(circle at 50% 60%, " + ligthBackground + " 0%, " + ligthBackground + " 100%), linear-gradient(to top, " + darkBackground + " 0%, " + midBackground + " 60%, " + ligthBackground + " 100%)";
|
|
26097
26108
|
case 'center':
|
|
26098
|
-
return
|
|
26109
|
+
return "radial-gradient(circle at 50% 70%, " + darkBackground + " 0%, " + ligthBackground + " 100%)";
|
|
26099
26110
|
default:
|
|
26100
|
-
return
|
|
26111
|
+
return midDarkBackground;
|
|
26101
26112
|
}
|
|
26102
26113
|
};
|
|
26103
26114
|
var background = getDefaultOverlay();
|