@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.
@@ -25633,7 +25633,7 @@ var _excluded$1o = ["children", "showRadialGradient", "views", "themeMode"],
25633
25633
  _excluded7 = ["children", "src", "backgroundSize", "backgroundPosition", "backgroundRepeat", "backgroundAttachment", "imageOpacity", "overlay", "blendMode", "views", "themeMode"],
25634
25634
  _excluded8 = ["children", "src", "autoPlay", "loop", "muted", "playsInline", "overlay", "blendMode", "views", "themeMode"],
25635
25635
  _excluded9 = ["children"],
25636
- _excluded10 = ["contentPosition"],
25636
+ _excluded10 = ["contentPosition", "backgroundColor"],
25637
25637
  _excluded11 = ["children", "views"],
25638
25638
  _excluded12 = ["children", "designProps", "shape", "decorationRotation", "decorationScale", "decorationOpacity", "views"];
25639
25639
  // Background Context
@@ -26088,23 +26088,34 @@ var BackgroundGradient = _ref9 => {
26088
26088
  */
26089
26089
  var BackgroundOverlay = _ref10 => {
26090
26090
  var {
26091
- contentPosition
26091
+ contentPosition,
26092
+ backgroundColor = 'color.black.900'
26092
26093
  } = _ref10,
26093
26094
  props = _objectWithoutPropertiesLoose(_ref10, _excluded10);
26094
26095
  var getDefaultOverlay = () => {
26096
+ var ligthBackground = backgroundColor + ".100";
26097
+ var darkBackground = backgroundColor + ".900";
26098
+ var midBackground = backgroundColor + ".600";
26099
+ var midDarkBackground = backgroundColor + ".400";
26100
+ if (backgroundColor.indexOf('.') === -1) {
26101
+ ligthBackground = "color-mix(in srgb, " + backgroundColor + " 10%, transparent)";
26102
+ darkBackground = "color-mix(in srgb, " + backgroundColor + " 90%, transparent)";
26103
+ midBackground = "color-mix(in srgb, " + backgroundColor + " 70%, transparent)";
26104
+ midDarkBackground = "color-mix(in srgb, " + backgroundColor + " 50%, transparent)";
26105
+ }
26095
26106
  switch (contentPosition) {
26096
26107
  case 'left':
26097
- return 'radial-gradient(circle at 80% 50%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.1) 100%), linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0.2) 100%)';
26108
+ return "radial-gradient(circle at 70% 50%, " + ligthBackground + " 0%, " + ligthBackground + " 100%), linear-gradient(to right, " + darkBackground + " 0%, " + midBackground + " 65%, " + ligthBackground + " 100%)";
26098
26109
  case 'right':
26099
- return 'radial-gradient(circle at 20% 50%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.1) 100%), linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0.2) 100%)';
26110
+ return "radial-gradient(circle at 30% 50%, " + ligthBackground + " 0%, " + ligthBackground + " 100%), linear-gradient(to left, " + darkBackground + " 0%, " + midBackground + " 65%, " + ligthBackground + " 100%)";
26100
26111
  case 'top':
26101
- return 'radial-gradient(circle at 50% 80%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.1) 100%), linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0.1) 100%)';
26112
+ return "radial-gradient(circle at 50% 40%, " + ligthBackground + " 0%, " + ligthBackground + " 100%), linear-gradient(to bottom, " + darkBackground + " 0%, " + midBackground + " 60%, " + ligthBackground + " 100%)";
26102
26113
  case 'bottom':
26103
- return 'radial-gradient(circle at 50% 80%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.1) 100%), linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0.1) 100%)';
26114
+ return "radial-gradient(circle at 50% 60%, " + ligthBackground + " 0%, " + ligthBackground + " 100%), linear-gradient(to top, " + darkBackground + " 0%, " + midBackground + " 60%, " + ligthBackground + " 100%)";
26104
26115
  case 'center':
26105
- return 'radial-gradient(circle at 50% 70%, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%)';
26116
+ return "radial-gradient(circle at 50% 70%, " + darkBackground + " 0%, " + ligthBackground + " 100%)";
26106
26117
  default:
26107
- return 'rgba(0,0,0,0.5)';
26118
+ return midDarkBackground;
26108
26119
  }
26109
26120
  };
26110
26121
  var background = getDefaultOverlay();