@idealyst/components 11.2.120 → 11.2.121

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": "@idealyst/components",
3
- "version": "11.2.120",
3
+ "version": "11.2.121",
4
4
  "description": "Shared component library for React and React Native",
5
5
  "documentation": "https://github.com/IdealystIO/idealyst-framework/tree/main/packages/components#readme",
6
6
  "readme": "README.md",
@@ -56,7 +56,7 @@
56
56
  "publish:npm": "npm publish"
57
57
  },
58
58
  "peerDependencies": {
59
- "@idealyst/theme": "^11.2.120",
59
+ "@idealyst/theme": "^11.2.121",
60
60
  "@mdi/js": ">=7.0.0",
61
61
  "@mdi/react": ">=1.0.0",
62
62
  "@react-native-vector-icons/common": ">=12.0.0",
@@ -107,8 +107,8 @@
107
107
  },
108
108
  "devDependencies": {
109
109
  "@idealyst/blur": "^1.2.40",
110
- "@idealyst/theme": "^11.2.120",
111
- "@idealyst/tooling": "^11.2.120",
110
+ "@idealyst/theme": "^11.2.121",
111
+ "@idealyst/tooling": "^11.2.121",
112
112
  "@mdi/react": "^1.6.1",
113
113
  "@types/react": "^19.1.0",
114
114
  "react": "^19.1.0",
@@ -204,6 +204,10 @@ const Dialog = forwardRef<View, DialogProps>(({
204
204
  flex: undefined,
205
205
  };
206
206
 
207
+ // Only apply flex: 1 to content when the dialog has a definite height to flex against.
208
+ // Without a definite height, flex: 1 collapses content instead of wrapping naturally.
209
+ const hasDefiniteHeight = Boolean(resolvedHeight || maxContentHeight);
210
+
207
211
  const dialogContainer = (
208
212
  <Animated.View ref={ref as any} style={[dialogContainerStyle, style, containerAnimatedStyle]} nativeID={id} {...nativeA11yProps}>
209
213
  {(title || showCloseButton) && (
@@ -225,7 +229,7 @@ const Dialog = forwardRef<View, DialogProps>(({
225
229
  )}
226
230
  </View>
227
231
  )}
228
- <View style={[{ flex: 1, minHeight: 0 }, contentPadding > 0 ? { padding: contentPadding } : undefined, contentStyle]}>
232
+ <View style={[hasDefiniteHeight && { flex: 1, minHeight: 0 }, contentPadding > 0 ? { padding: contentPadding } : undefined, contentStyle]}>
229
233
  {children}
230
234
  </View>
231
235
  </Animated.View>