@idealyst/components 1.2.52 → 1.2.53

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.52",
3
+ "version": "1.2.53",
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.52",
59
+ "@idealyst/theme": "^1.2.53",
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.52",
110
+ "@idealyst/theme": "^1.2.53",
111
111
  "@idealyst/tooling": "^1.2.30",
112
112
  "@mdi/react": "^1.6.1",
113
113
  "@types/react": "^19.1.0",
@@ -193,7 +193,7 @@ const Dialog = forwardRef<View, DialogProps>(({
193
193
  const dialogContainer = (
194
194
  <Animated.View ref={ref as any} style={[dialogContainerStyle, style, containerAnimatedStyle]} nativeID={id} {...nativeA11yProps}>
195
195
  {(title || showCloseButton) && (
196
- <View style={headerStyle}>
196
+ <View style={[headerStyle, { flexShrink: 0 }]}>
197
197
  {title && (
198
198
  <Text style={titleStyle}>
199
199
  {title}
@@ -211,7 +211,7 @@ const Dialog = forwardRef<View, DialogProps>(({
211
211
  )}
212
212
  </View>
213
213
  )}
214
- <View style={contentPadding > 0 ? { padding: contentPadding } : undefined}>
214
+ <View style={[{ flex: 1, minHeight: 0 }, contentPadding > 0 ? { padding: contentPadding } : undefined]}>
215
215
  {children}
216
216
  </View>
217
217
  </Animated.View>
@@ -115,4 +115,10 @@ export interface DialogProps extends BaseProps, InteractiveAccessibilityProps {
115
115
  * @default 24
116
116
  */
117
117
  contentPadding?: number;
118
+
119
+ /**
120
+ * Padding around the dialog container
121
+ * @default 20
122
+ */
123
+ padding?: number;
118
124
  }
@@ -94,9 +94,13 @@ export const textInputStyles = defineStyle('TextInput', (theme: Theme) => ({
94
94
  input: (_props: TextInputDynamicProps) => ({
95
95
  flex: 1,
96
96
  minWidth: 0,
97
+ height: '100%',
98
+ padding: 0,
99
+ margin: 0,
97
100
  backgroundColor: 'transparent' as const,
98
101
  color: theme.colors.text.primary,
99
102
  fontWeight: '400' as const,
103
+ textAlignVertical: 'center' as const,
100
104
  variants: {
101
105
  size: {
102
106
  fontSize: theme.sizes.$input.fontSize,
@@ -106,6 +110,9 @@ export const textInputStyles = defineStyle('TextInput', (theme: Theme) => ({
106
110
  border: 'none',
107
111
  outline: 'none',
108
112
  fontFamily: 'inherit',
113
+ height: '100%',
114
+ padding: 0,
115
+ margin: 0,
109
116
  },
110
117
  }),
111
118