@app-studio/web 0.9.65 → 0.9.67

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.
@@ -8,7 +8,7 @@ interface SlideEffectProps {
8
8
  textStyle?: React.CSSProperties;
9
9
  as?: React.ElementType;
10
10
  wordProps?: any;
11
- bgColor?: string;
11
+ backgroundColor?: string;
12
12
  textComponent?: any;
13
13
  [key: string]: any;
14
14
  }
@@ -3100,14 +3100,14 @@ var AlertView = _ref => {
3100
3100
  ,
3101
3101
  lineHeight: "24px",
3102
3102
  color: themes[variant].content.color,
3103
- bgColor: themes[variant].container.backgroundColor
3103
+ backgroundColor: themes[variant].container.backgroundColor
3104
3104
  }, views == null ? void 0 : views.title), title), /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
3105
3105
  fontSize: "14px",
3106
3106
  fontWeight: "400" // Regular
3107
3107
  ,
3108
3108
  lineHeight: "20px",
3109
3109
  color: themes[variant].content.color,
3110
- bgColor: themes[variant].container.backgroundColor
3110
+ backgroundColor: themes[variant].container.backgroundColor
3111
3111
  }, views == null ? void 0 : views.description), description || children)));
3112
3112
  };
3113
3113
 
@@ -3430,16 +3430,16 @@ var MessageView = _ref => {
3430
3430
  }, /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
3431
3431
  size: "md",
3432
3432
  weight: "semiBold",
3433
- bgColor: Theme[variant].container.backgroundColor
3433
+ backgroundColor: Theme[variant].container.backgroundColor
3434
3434
  }, views == null ? void 0 : views.title), title), subtitle && (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
3435
3435
  size: "sm",
3436
- bgColor: Theme[variant].container.backgroundColor
3436
+ backgroundColor: Theme[variant].container.backgroundColor
3437
3437
  }, views == null ? void 0 : views.subtitle), subtitle))), showAction && (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
3438
3438
  marginRight: 10,
3439
3439
  onClick: action,
3440
3440
  padding: "6px 10px",
3441
3441
  whiteSpace: "nowrap",
3442
- bgColor: Theme[variant].container.backgroundColor
3442
+ backgroundColor: Theme[variant].container.backgroundColor
3443
3443
  }, containerStyle, views == null ? void 0 : views.actionText), actionText)), isClosable && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
3444
3444
  position: "absolute",
3445
3445
  zIndex: 10000,
@@ -4842,17 +4842,17 @@ var Loader = LoaderComponent;
4842
4842
  */
4843
4843
  var ButtonFontSize = {
4844
4844
  xs: 10,
4845
- sm: 14,
4846
- md: 16,
4847
- lg: 18,
4845
+ sm: 12,
4846
+ md: 14,
4847
+ lg: 16,
4848
4848
  xl: 20
4849
4849
  };
4850
4850
  var ButtonLineHeight = {
4851
- xs: 14,
4852
- sm: 20,
4853
- md: 24,
4854
- lg: 28,
4855
- xl: 32
4851
+ xs: 12,
4852
+ sm: 16,
4853
+ md: 20,
4854
+ lg: 24,
4855
+ xl: 28
4856
4856
  };
4857
4857
  var getButtonSize = size => {
4858
4858
  return {
@@ -9714,7 +9714,7 @@ var SelectorView = _ref => {
9714
9714
  var isSelected = value === option.value;
9715
9715
  var borderColor = getColor('color.gray.200');
9716
9716
  var textColor = getColor('color.gray.500');
9717
- var bgColor = 'transparent';
9717
+ var backgroundColor = 'transparent';
9718
9718
  if (isSelected) {
9719
9719
  if (option.color) {
9720
9720
  // We need a way to get related colors (50, 500, 700 etc) from a base color if we want full fidelity.
@@ -9725,13 +9725,13 @@ var SelectorView = _ref => {
9725
9725
  // Simplification: if color provided, use it for border/text.
9726
9726
  // Background is hard to derive without more specific props.
9727
9727
  // Let's try to use a very light opacity of the color for background.
9728
- bgColor = 'rgba(0,0,0,0.05)'; // Generic active background
9728
+ backgroundColor = 'rgba(0,0,0,0.05)'; // Generic active background
9729
9729
  } else {
9730
9730
  // Default active style
9731
9731
  var primary = getColor('theme.primary');
9732
9732
  borderColor = primary;
9733
9733
  textColor = primary;
9734
- bgColor = 'color.gray.50';
9734
+ backgroundColor = 'color.gray.50';
9735
9735
  }
9736
9736
  // Specific overrides based on user request "ComplexitySelector" style
9737
9737
  // If the values match 'High', 'Medium', 'Low' we can hardcode for *demo* fidelity if generic logic fails.
@@ -9741,12 +9741,12 @@ var SelectorView = _ref => {
9741
9741
  // Fallback for customized options
9742
9742
  borderColor = getColor(option.color);
9743
9743
  textColor = getColor(option.color);
9744
- bgColor = 'transparent';
9744
+ backgroundColor = 'transparent';
9745
9745
  } else {
9746
9746
  // Default fallback
9747
9747
  borderColor = getColor('theme.primary');
9748
9748
  textColor = getColor('theme.primary');
9749
- bgColor = 'transparent';
9749
+ backgroundColor = 'transparent';
9750
9750
  }
9751
9751
  }
9752
9752
  return /*#__PURE__*/React__default.createElement(Button, Object.assign({
@@ -9766,7 +9766,7 @@ var SelectorView = _ref => {
9766
9766
  borderBottom: "1px solid " + (isSelected ? borderColor : getColor('color.gray.200')),
9767
9767
  borderLeft: "1px solid " + (isSelected ? borderColor : getColor('color.gray.200')),
9768
9768
  borderRight: index === arr.length - 1 || isSelected ? "1px solid " + (isSelected ? borderColor : getColor('color.gray.200')) : 'none',
9769
- backgroundColor: bgColor,
9769
+ backgroundColor: backgroundColor,
9770
9770
  color: textColor,
9771
9771
  borderRadius: index === 0 ? '6px 0 0 6px' : index === arr.length - 1 ? '0 6px 6px 0' : '0',
9772
9772
  zIndex: isSelected ? 1 : 0,
@@ -26281,13 +26281,13 @@ var ToastView = _ref => {
26281
26281
  fontWeight: "600" // Semi-bold for better readability
26282
26282
  ,
26283
26283
  color: Theme[variant].content.color,
26284
- bgColor: Theme[variant].container.backgroundColor
26284
+ backgroundColor: Theme[variant].container.backgroundColor
26285
26285
  }, views == null ? void 0 : views.title), title), description && (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
26286
26286
  size: "sm",
26287
26287
  color: Theme[variant].content.color,
26288
26288
  fontWeight: "400" // Regular weight
26289
26289
  ,
26290
- bgColor: Theme[variant].container.backgroundColor
26290
+ backgroundColor: Theme[variant].container.backgroundColor
26291
26291
  }, views == null ? void 0 : views.description), description)), action && actionText && (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
26292
26292
  size: "sm",
26293
26293
  fontWeight: "600" // Semi-bold for better readability
@@ -26296,7 +26296,7 @@ var ToastView = _ref => {
26296
26296
  ,
26297
26297
  cursor: "pointer",
26298
26298
  color: Theme[variant].content.color,
26299
- bgColor: Theme[variant].container.backgroundColor,
26299
+ backgroundColor: Theme[variant].container.backgroundColor,
26300
26300
  onClick: e => {
26301
26301
  e.stopPropagation();
26302
26302
  action();