@compsych/mobile-ui 1.0.17 → 1.0.19

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": "@compsych/mobile-ui",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "ComPsych React Native Design System — 19 mobile UI components with self-contained design tokens",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -184,9 +184,9 @@ export function Input({
184
184
  style={{
185
185
  flex: 1,
186
186
  fontSize: s.fontSize,
187
- lineHeight: s.lineHeight,
188
187
  color: textColor,
189
188
  includeFontPadding: false,
189
+ textAlignVertical: 'center',
190
190
  // Reset RN TextInput default padding/margin
191
191
  padding: 0,
192
192
  margin: 0,
@@ -6,6 +6,7 @@ import { useTheme } from '../../theme';
6
6
 
7
7
  export interface ScreenContainerProps extends ScrollViewProps {
8
8
  children?: React.ReactNode;
9
+ noPadding?: boolean;
9
10
  }
10
11
 
11
12
  /**
@@ -21,7 +22,7 @@ export const ScreenContainer = React.forwardRef<
21
22
  ScrollView,
22
23
  ScreenContainerProps
23
24
  >(function ScreenContainer(
24
- { children, style, contentContainerStyle, ...rest },
25
+ { children, style, contentContainerStyle, noPadding = false, ...rest },
25
26
  ref,
26
27
  ) {
27
28
  const { dimensions: dim, colorRoles: cr } = useTheme();
@@ -37,10 +38,12 @@ export const ScreenContainer = React.forwardRef<
37
38
  style,
38
39
  ]}
39
40
  contentContainerStyle={[
40
- {
41
- paddingHorizontal: dim.spacing.padding.sysPadding16,
42
- paddingVertical: dim.spacing.padding.sysPadding8,
43
- },
41
+ noPadding
42
+ ? undefined
43
+ : {
44
+ paddingHorizontal: dim.spacing.padding.sysPadding16,
45
+ paddingVertical: dim.spacing.padding.sysPadding8,
46
+ },
44
47
  contentContainerStyle,
45
48
  ]}
46
49
  {...rest}