@umituz/react-native-design-system 2.6.83 → 2.6.85

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-design-system",
3
- "version": "2.6.83",
3
+ "version": "2.6.85",
4
4
  "description": "Universal design system for React Native apps - Consolidated package with atoms, molecules, organisms, theme, typography, responsive and safe area utilities",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -66,4 +66,6 @@ export {
66
66
  type AtomicStatusBarProps,
67
67
  AtomicKeyboardAvoidingView,
68
68
  type AtomicKeyboardAvoidingViewProps,
69
+ GlassView,
70
+ type GlassViewProps,
69
71
  } from '../atoms';
@@ -163,4 +163,7 @@ export {
163
163
  type SplashColors,
164
164
  type UseSplashFlowOptions,
165
165
  type UseSplashFlowResult,
166
+ // GlowingCard
167
+ GlowingCard,
168
+ type GlowingCardProps,
166
169
  } from '../molecules';
@@ -33,16 +33,23 @@ export const GlowingCard: React.FC<GlowingCardProps> = ({
33
33
  shadowOpacity: 0.6 * intensity,
34
34
  shadowRadius: 10 * intensity,
35
35
  elevation: 8 * intensity, // Android elevation
36
- backgroundColor: tokens.colors.surface, // Ensure bg is solid or it looks weird
36
+ // We allow the style prop to override backgroundColor, default to surface if not provided
37
+ backgroundColor: tokens.colors.surface,
37
38
  borderRadius: tokens.borders.radius.md,
38
39
  borderColor: resolvedColor,
39
40
  borderWidth: 1,
40
41
  };
41
42
 
43
+ // Extract background color from style if present to override default
44
+ const styleObj = StyleSheet.flatten(style) || {};
45
+ const finalBackgroundColor = styleObj.backgroundColor || shadowStyle.backgroundColor;
46
+
42
47
  const containerStyle = [
43
48
  styles.container,
44
49
  shadowStyle,
45
50
  style,
51
+ // Ensure background color is consistent
52
+ { backgroundColor: finalBackgroundColor }
46
53
  ];
47
54
 
48
55
  if (onPress) {