vpt-sebraeds 0.0.93 → 0.0.95

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.
@@ -26,6 +26,8 @@ const BottomSheet = ({
26
26
  tall = false,
27
27
  headerIcon = null,
28
28
  headerAlignment = 'left',
29
+ showsVerticalScrollIndicator = true,
30
+ footer,
29
31
  }) => {
30
32
  const insets = useSafeAreaInsets();
31
33
 
@@ -119,7 +121,7 @@ const BottomSheet = ({
119
121
  )}
120
122
 
121
123
  <ScrollView
122
- showsVerticalScrollIndicator={true}
124
+ showsVerticalScrollIndicator={showsVerticalScrollIndicator}
123
125
  contentContainerStyle={styles.scrollContent}
124
126
  style={scrollViewStyle}
125
127
  keyboardShouldPersistTaps="handled"
@@ -130,6 +132,12 @@ const BottomSheet = ({
130
132
  >
131
133
  <View style={styles.contentContainer}>{children}</View>
132
134
  </ScrollView>
135
+
136
+ {footer != null && (
137
+ <View style={{ paddingBottom: insets.bottom }}>
138
+ {footer}
139
+ </View>
140
+ )}
133
141
  </View>
134
142
  </View>
135
143
  </View>
@@ -334,7 +334,7 @@ const styles = StyleSheet.create({
334
334
  title: {
335
335
  fontSize: 16,
336
336
  lineHeight: 24,
337
- marginBottom: 4,
337
+ marginBottom: 12,
338
338
  },
339
339
  subtitle: {
340
340
  fontSize: 14,
@@ -1,5 +1,5 @@
1
1
  export default BottomSheet;
2
- declare function BottomSheet({ isOpen, setIsOpen, children, title, subtitle, showHeader, fullScreen, tall, headerIcon, headerAlignment, }: {
2
+ declare function BottomSheet({ isOpen, setIsOpen, children, title, subtitle, showHeader, fullScreen, tall, headerIcon, headerAlignment, showsVerticalScrollIndicator, footer, }: {
3
3
  isOpen?: boolean | undefined;
4
4
  setIsOpen?: (() => void) | undefined;
5
5
  children: any;
@@ -10,6 +10,8 @@ declare function BottomSheet({ isOpen, setIsOpen, children, title, subtitle, sho
10
10
  tall?: boolean | undefined;
11
11
  headerIcon?: null | undefined;
12
12
  headerAlignment?: string | undefined;
13
+ showsVerticalScrollIndicator?: boolean | undefined;
14
+ footer: any;
13
15
  }): React.JSX.Element;
14
16
  import React from 'react';
15
17
  //# sourceMappingURL=BottomSheet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../components/BottomSheet/BottomSheet.jsx"],"names":[],"mappings":";AAiBA;;;;;;;;;;;sBAyHC;kBA1IiB,OAAO"}
1
+ {"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../components/BottomSheet/BottomSheet.jsx"],"names":[],"mappings":";AAiBA;;;;;;;;;;;;;sBAiIC;kBAlJiB,OAAO"}
@@ -4,7 +4,7 @@ import { useSafeAreaInsets } from 'react-native-safe-area-context';
4
4
  import Icon from '../Icon';
5
5
  import SEText from '../Typography/SEText';
6
6
  const { height: screenHeight, width: screenWidth } = Dimensions.get('window');
7
- const BottomSheet = ({ isOpen = false, setIsOpen = () => { }, children, title, subtitle, showHeader = true, fullScreen = false, tall = false, headerIcon = null, headerAlignment = 'left', }) => {
7
+ const BottomSheet = ({ isOpen = false, setIsOpen = () => { }, children, title, subtitle, showHeader = true, fullScreen = false, tall = false, headerIcon = null, headerAlignment = 'left', showsVerticalScrollIndicator = true, footer, }) => {
8
8
  const insets = useSafeAreaInsets();
9
9
  const isHeaderCentered = headerAlignment === 'center';
10
10
  const validTitle = title && typeof title === 'string' ? title : '';
@@ -73,9 +73,13 @@ const BottomSheet = ({ isOpen = false, setIsOpen = () => { }, children, title, s
73
73
  </SEText>)}
74
74
  </View>)}
75
75
 
76
- <ScrollView showsVerticalScrollIndicator={true} contentContainerStyle={styles.scrollContent} style={scrollViewStyle} keyboardShouldPersistTaps="handled" bounces={Platform.OS === 'ios'} nestedScrollEnabled scrollEventThrottle={16} keyboardDismissMode="on-drag">
76
+ <ScrollView showsVerticalScrollIndicator={showsVerticalScrollIndicator} contentContainerStyle={styles.scrollContent} style={scrollViewStyle} keyboardShouldPersistTaps="handled" bounces={Platform.OS === 'ios'} nestedScrollEnabled scrollEventThrottle={16} keyboardDismissMode="on-drag">
77
77
  <View style={styles.contentContainer}>{children}</View>
78
78
  </ScrollView>
79
+
80
+ {footer != null && (<View style={{ paddingBottom: insets.bottom }}>
81
+ {footer}
82
+ </View>)}
79
83
  </View>
80
84
  </View>
81
85
  </View>
@@ -220,7 +220,7 @@ const styles = StyleSheet.create({
220
220
  title: {
221
221
  fontSize: 16,
222
222
  lineHeight: 24,
223
- marginBottom: 4,
223
+ marginBottom: 12,
224
224
  },
225
225
  subtitle: {
226
226
  fontSize: 14,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vpt-sebraeds",
3
- "version": "0.0.93",
3
+ "version": "0.0.95",
4
4
  "description": "Biblioteca de componentes React Native do Sebrae",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",