react-native-boxes 1.4.2 → 1.4.4
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 +1 -1
- package/src/List.tsx +5 -1
- package/src/Message.tsx +3 -2
- package/src/Modal.tsx +8 -4
package/package.json
CHANGED
package/src/List.tsx
CHANGED
|
@@ -101,9 +101,13 @@ export function SimpleDatatlistViewItem(props: SimpleDatatableViewItemProps & Vi
|
|
|
101
101
|
}}>{props.title}</Subtitle>)}
|
|
102
102
|
{props.subtitle && (<TextView style={{
|
|
103
103
|
marginTop: 0,
|
|
104
|
+
padding: 0,
|
|
104
105
|
paddingTop: theme.dimens.space.sm,
|
|
105
106
|
}}>{props.subtitle}</TextView>)}
|
|
106
|
-
{props.body && (<Caption
|
|
107
|
+
{props.body && (<Caption style={{
|
|
108
|
+
margin: 0,
|
|
109
|
+
padding: 0
|
|
110
|
+
}} >{props.body}</Caption>)}
|
|
107
111
|
</VBox>
|
|
108
112
|
<Box style={{
|
|
109
113
|
alignItems: 'flex-end',
|
package/src/Message.tsx
CHANGED
|
@@ -12,6 +12,7 @@ export function AlertMessage(props:
|
|
|
12
12
|
ViewProps & {
|
|
13
13
|
text: string,
|
|
14
14
|
type?: 'info' | 'success' | 'warning' | 'critical',
|
|
15
|
+
color?: string,
|
|
15
16
|
onDismiss?: Function
|
|
16
17
|
|
|
17
18
|
}) {
|
|
@@ -63,11 +64,11 @@ export function AlertMessage(props:
|
|
|
63
64
|
}}
|
|
64
65
|
name={icon}
|
|
65
66
|
size={theme.dimens.icon.md}
|
|
66
|
-
color={theme.colors.invert.text} />
|
|
67
|
+
color={props.color || theme.colors.invert.text} />
|
|
67
68
|
<TextView style={{
|
|
68
69
|
flexShrink: 1,
|
|
69
70
|
padding: 0,
|
|
70
|
-
color: theme.colors.invert.text,
|
|
71
|
+
color: props.color || theme.colors.invert.text,
|
|
71
72
|
}}>{props.text}
|
|
72
73
|
</TextView>
|
|
73
74
|
</HBox>
|
package/src/Modal.tsx
CHANGED
|
@@ -481,10 +481,14 @@ export function ConfirmationDialog(props: ConfirmationDialogProps) {
|
|
|
481
481
|
props.onDismiss && props.onDismiss()
|
|
482
482
|
props.onConfirm && props.onConfirm()
|
|
483
483
|
}} />
|
|
484
|
-
<TertiaryButtonView
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
484
|
+
<TertiaryButtonView
|
|
485
|
+
style={{
|
|
486
|
+
marginTop: 0
|
|
487
|
+
}}
|
|
488
|
+
text={cancelText as string} onPress={() => {
|
|
489
|
+
props.onDismiss && props.onDismiss()
|
|
490
|
+
props.onCancel && props.onCancel()
|
|
491
|
+
}} />
|
|
488
492
|
</VBox>
|
|
489
493
|
|
|
490
494
|
</BottomSheet>
|