@idealyst/components 1.2.53 → 1.2.54
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": "1.2.
|
|
3
|
+
"version": "1.2.54",
|
|
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": "^1.2.
|
|
59
|
+
"@idealyst/theme": "^1.2.54",
|
|
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,7 +107,7 @@
|
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
109
|
"@idealyst/blur": "^1.2.40",
|
|
110
|
-
"@idealyst/theme": "^1.2.
|
|
110
|
+
"@idealyst/theme": "^1.2.54",
|
|
111
111
|
"@idealyst/tooling": "^1.2.30",
|
|
112
112
|
"@mdi/react": "^1.6.1",
|
|
113
113
|
"@types/react": "^19.1.0",
|
|
@@ -20,6 +20,7 @@ const Dialog = forwardRef<View, DialogProps>(({
|
|
|
20
20
|
padding: paddingProp = 20,
|
|
21
21
|
maxContentHeight,
|
|
22
22
|
contentPadding = 24,
|
|
23
|
+
contentStyle,
|
|
23
24
|
style,
|
|
24
25
|
testID,
|
|
25
26
|
id,
|
|
@@ -211,7 +212,7 @@ const Dialog = forwardRef<View, DialogProps>(({
|
|
|
211
212
|
)}
|
|
212
213
|
</View>
|
|
213
214
|
)}
|
|
214
|
-
<View style={[
|
|
215
|
+
<View style={[contentPadding > 0 ? { padding: contentPadding } : undefined, contentStyle]}>
|
|
215
216
|
{children}
|
|
216
217
|
</View>
|
|
217
218
|
</Animated.View>
|
package/src/Dialog/types.ts
CHANGED
|
@@ -116,6 +116,13 @@ export interface DialogProps extends BaseProps, InteractiveAccessibilityProps {
|
|
|
116
116
|
*/
|
|
117
117
|
contentPadding?: number;
|
|
118
118
|
|
|
119
|
+
/**
|
|
120
|
+
* Style for the content wrapper.
|
|
121
|
+
* Use { flex: 1 } to make content fill available space.
|
|
122
|
+
* By default, content wraps to its implicit height.
|
|
123
|
+
*/
|
|
124
|
+
contentStyle?: StyleProp<ViewStyle>;
|
|
125
|
+
|
|
119
126
|
/**
|
|
120
127
|
* Padding around the dialog container
|
|
121
128
|
* @default 20
|