@chem-po/react-native 0.0.30 → 0.0.32
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/lib/commonjs/components/button/DeleteButton.js +7 -8
- package/lib/commonjs/components/button/DeleteButton.js.map +1 -1
- package/lib/commonjs/components/button/LoadingButton.js +3 -3
- package/lib/commonjs/components/button/LoadingButton.js.map +1 -1
- package/lib/commonjs/components/button/Toggle.js +2 -1
- package/lib/commonjs/components/button/Toggle.js.map +1 -1
- package/lib/commonjs/components/form/Form.js +30 -4
- package/lib/commonjs/components/form/Form.js.map +1 -1
- package/lib/commonjs/components/form/FormFooter.js +3 -2
- package/lib/commonjs/components/form/FormFooter.js.map +1 -1
- package/lib/commonjs/components/form/input/Editable.js +4 -6
- package/lib/commonjs/components/form/input/Editable.js.map +1 -1
- package/lib/commonjs/components/form/input/common/InputClearButton.js +2 -1
- package/lib/commonjs/components/form/input/common/InputClearButton.js.map +1 -1
- package/lib/commonjs/components/form/input/date/index.js +23 -10
- package/lib/commonjs/components/form/input/date/index.js.map +1 -1
- package/lib/commonjs/components/form/input/datetime/index.js +27 -11
- package/lib/commonjs/components/form/input/datetime/index.js.map +1 -1
- package/lib/commonjs/components/form/input/file/index.js +31 -28
- package/lib/commonjs/components/form/input/file/index.js.map +1 -1
- package/lib/commonjs/components/form/input/hooks/useInputStyles.js +5 -6
- package/lib/commonjs/components/form/input/hooks/useInputStyles.js.map +1 -1
- package/lib/commonjs/components/form/input/input.js +3 -3
- package/lib/commonjs/components/form/input/input.js.map +1 -1
- package/lib/commonjs/components/form/input/multipleSelect/index.js +35 -23
- package/lib/commonjs/components/form/input/multipleSelect/index.js.map +1 -1
- package/lib/commonjs/components/form/input/socialMedia/index.js +3 -2
- package/lib/commonjs/components/form/input/socialMedia/index.js.map +1 -1
- package/lib/commonjs/components/form/input/text/AutoResizeTextarea.js +1 -6
- package/lib/commonjs/components/form/input/text/AutoResizeTextarea.js.map +1 -1
- package/lib/commonjs/components/form/input/text/index.js +2 -1
- package/lib/commonjs/components/form/input/text/index.js.map +1 -1
- package/lib/commonjs/components/form/input/text/textarea.js +2 -1
- package/lib/commonjs/components/form/input/text/textarea.js.map +1 -1
- package/lib/commonjs/components/form/input/text/useWebAutoResize.js +4 -4
- package/lib/commonjs/components/form/input/text/useWebAutoResize.js.map +1 -1
- package/lib/commonjs/components/form/input/time/index.js +2 -1
- package/lib/commonjs/components/form/input/time/index.js.map +1 -1
- package/lib/commonjs/components/form/view/select.js +6 -2
- package/lib/commonjs/components/form/view/select.js.map +1 -1
- package/lib/commonjs/components/image/ImageViewModal.js +22 -16
- package/lib/commonjs/components/image/ImageViewModal.js.map +1 -1
- package/lib/commonjs/components/layout/CollapseHorizontal.js +23 -11
- package/lib/commonjs/components/layout/CollapseHorizontal.js.map +1 -1
- package/lib/commonjs/components/loading/LoadingImage.js +20 -13
- package/lib/commonjs/components/loading/LoadingImage.js.map +1 -1
- package/lib/commonjs/components/theme/colorMode/DarkModeToggle.js +2 -1
- package/lib/commonjs/components/theme/colorMode/DarkModeToggle.js.map +1 -1
- package/lib/commonjs/utils/downloadFile.js +36 -26
- package/lib/commonjs/utils/downloadFile.js.map +1 -1
- package/lib/module/components/button/DeleteButton.js +8 -9
- package/lib/module/components/button/DeleteButton.js.map +1 -1
- package/lib/module/components/button/LoadingButton.js +4 -4
- package/lib/module/components/button/LoadingButton.js.map +1 -1
- package/lib/module/components/button/Toggle.js +3 -2
- package/lib/module/components/button/Toggle.js.map +1 -1
- package/lib/module/components/form/Form.js +31 -5
- package/lib/module/components/form/Form.js.map +1 -1
- package/lib/module/components/form/FormFooter.js +4 -3
- package/lib/module/components/form/FormFooter.js.map +1 -1
- package/lib/module/components/form/input/Editable.js +5 -7
- package/lib/module/components/form/input/Editable.js.map +1 -1
- package/lib/module/components/form/input/common/InputClearButton.js +3 -2
- package/lib/module/components/form/input/common/InputClearButton.js.map +1 -1
- package/lib/module/components/form/input/date/index.js +24 -11
- package/lib/module/components/form/input/date/index.js.map +1 -1
- package/lib/module/components/form/input/datetime/index.js +29 -13
- package/lib/module/components/form/input/datetime/index.js.map +1 -1
- package/lib/module/components/form/input/file/index.js +33 -30
- package/lib/module/components/form/input/file/index.js.map +1 -1
- package/lib/module/components/form/input/hooks/useInputStyles.js +5 -6
- package/lib/module/components/form/input/hooks/useInputStyles.js.map +1 -1
- package/lib/module/components/form/input/input.js +3 -3
- package/lib/module/components/form/input/input.js.map +1 -1
- package/lib/module/components/form/input/multipleSelect/index.js +35 -23
- package/lib/module/components/form/input/multipleSelect/index.js.map +1 -1
- package/lib/module/components/form/input/socialMedia/index.js +4 -3
- package/lib/module/components/form/input/socialMedia/index.js.map +1 -1
- package/lib/module/components/form/input/text/AutoResizeTextarea.js +1 -6
- package/lib/module/components/form/input/text/AutoResizeTextarea.js.map +1 -1
- package/lib/module/components/form/input/text/index.js +3 -2
- package/lib/module/components/form/input/text/index.js.map +1 -1
- package/lib/module/components/form/input/text/textarea.js +2 -1
- package/lib/module/components/form/input/text/textarea.js.map +1 -1
- package/lib/module/components/form/input/text/useWebAutoResize.js +4 -4
- package/lib/module/components/form/input/text/useWebAutoResize.js.map +1 -1
- package/lib/module/components/form/input/time/index.js +3 -2
- package/lib/module/components/form/input/time/index.js.map +1 -1
- package/lib/module/components/form/view/select.js +6 -2
- package/lib/module/components/form/view/select.js.map +1 -1
- package/lib/module/components/image/ImageViewModal.js +24 -18
- package/lib/module/components/image/ImageViewModal.js.map +1 -1
- package/lib/module/components/layout/CollapseHorizontal.js +24 -12
- package/lib/module/components/layout/CollapseHorizontal.js.map +1 -1
- package/lib/module/components/loading/LoadingImage.js +21 -14
- package/lib/module/components/loading/LoadingImage.js.map +1 -1
- package/lib/module/components/theme/colorMode/DarkModeToggle.js +3 -2
- package/lib/module/components/theme/colorMode/DarkModeToggle.js.map +1 -1
- package/lib/module/utils/downloadFile.js +35 -25
- package/lib/module/utils/downloadFile.js.map +1 -1
- package/lib/typescript/components/button/DeleteButton.d.ts.map +1 -1
- package/lib/typescript/components/button/LoadingButton.d.ts.map +1 -1
- package/lib/typescript/components/button/Toggle.d.ts.map +1 -1
- package/lib/typescript/components/form/Form.d.ts.map +1 -1
- package/lib/typescript/components/form/FormFooter.d.ts.map +1 -1
- package/lib/typescript/components/form/input/Editable.d.ts.map +1 -1
- package/lib/typescript/components/form/input/common/InputClearButton.d.ts.map +1 -1
- package/lib/typescript/components/form/input/date/index.d.ts.map +1 -1
- package/lib/typescript/components/form/input/datetime/index.d.ts.map +1 -1
- package/lib/typescript/components/form/input/file/index.d.ts +2 -1
- package/lib/typescript/components/form/input/file/index.d.ts.map +1 -1
- package/lib/typescript/components/form/input/hooks/useInputStyles.d.ts +3 -6
- package/lib/typescript/components/form/input/hooks/useInputStyles.d.ts.map +1 -1
- package/lib/typescript/components/form/input/multipleSelect/index.d.ts.map +1 -1
- package/lib/typescript/components/form/input/socialMedia/index.d.ts.map +1 -1
- package/lib/typescript/components/form/input/text/AutoResizeTextarea.d.ts.map +1 -1
- package/lib/typescript/components/form/input/text/index.d.ts.map +1 -1
- package/lib/typescript/components/form/input/text/useWebAutoResize.d.ts +2 -3
- package/lib/typescript/components/form/input/text/useWebAutoResize.d.ts.map +1 -1
- package/lib/typescript/components/form/input/time/index.d.ts.map +1 -1
- package/lib/typescript/components/form/view/select.d.ts.map +1 -1
- package/lib/typescript/components/image/ImageViewModal.d.ts.map +1 -1
- package/lib/typescript/components/layout/CollapseHorizontal.d.ts.map +1 -1
- package/lib/typescript/components/loading/LoadingImage.d.ts +4 -1
- package/lib/typescript/components/loading/LoadingImage.d.ts.map +1 -1
- package/lib/typescript/components/theme/colorMode/DarkModeToggle.d.ts.map +1 -1
- package/lib/typescript/utils/downloadFile.d.ts +2 -2
- package/lib/typescript/utils/downloadFile.d.ts.map +1 -1
- package/package.json +5 -4
- package/src/components/button/DeleteButton.tsx +12 -25
- package/src/components/button/LoadingButton.tsx +4 -5
- package/src/components/button/Toggle.tsx +4 -3
- package/src/components/form/Form.tsx +31 -11
- package/src/components/form/FormFooter.tsx +6 -5
- package/src/components/form/input/Editable.tsx +8 -9
- package/src/components/form/input/common/InputClearButton.tsx +4 -3
- package/src/components/form/input/date/index.tsx +24 -11
- package/src/components/form/input/datetime/index.tsx +33 -16
- package/src/components/form/input/file/index.tsx +38 -36
- package/src/components/form/input/hooks/useInputStyles.ts +10 -7
- package/src/components/form/input/input.tsx +2 -2
- package/src/components/form/input/multipleSelect/index.tsx +35 -35
- package/src/components/form/input/socialMedia/index.tsx +6 -5
- package/src/components/form/input/text/AutoResizeTextarea.tsx +1 -5
- package/src/components/form/input/text/index.tsx +4 -3
- package/src/components/form/input/text/textarea.tsx +1 -1
- package/src/components/form/input/text/useWebAutoResize.tsx +6 -4
- package/src/components/form/input/time/index.tsx +4 -3
- package/src/components/form/view/select.tsx +5 -1
- package/src/components/image/ImageViewModal.tsx +60 -51
- package/src/components/layout/CollapseHorizontal.tsx +20 -10
- package/src/components/loading/LoadingImage.tsx +19 -19
- package/src/components/theme/colorMode/DarkModeToggle.tsx +4 -3
- package/src/utils/downloadFile.ts +41 -31
|
@@ -1,35 +1,45 @@
|
|
|
1
1
|
import * as FileSystem from 'expo-file-system';
|
|
2
|
+
import { downloadAsync } from 'expo-file-system';
|
|
3
|
+
import { shareAsync } from 'expo-sharing';
|
|
4
|
+
import { Platform } from 'react-native';
|
|
2
5
|
export const downloadFile = async (uri, filename, fileType) => {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
if (Platform.OS === 'android') {
|
|
7
|
+
const permissions = await FileSystem.StorageAccessFramework.requestDirectoryPermissionsAsync();
|
|
8
|
+
if (!permissions.granted) {
|
|
9
|
+
throw new Error('Permission not granted');
|
|
10
|
+
}
|
|
7
11
|
|
|
8
|
-
|
|
9
|
-
|
|
12
|
+
// Download to temporary location first
|
|
13
|
+
const tempFileUri = `${FileSystem.cacheDirectory}${filename}`;
|
|
10
14
|
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
// Download the file to temporary location
|
|
16
|
+
await FileSystem.downloadAsync(uri, tempFileUri);
|
|
13
17
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
// Read the temporary file as base64
|
|
19
|
+
const base64Content = await FileSystem.readAsStringAsync(tempFileUri, {
|
|
20
|
+
encoding: FileSystem.EncodingType.Base64
|
|
21
|
+
});
|
|
18
22
|
|
|
19
|
-
|
|
20
|
-
|
|
23
|
+
// Create a file within the selected directory using SAF
|
|
24
|
+
const fileUri = await FileSystem.StorageAccessFramework.createFileAsync(permissions.directoryUri, filename, fileType);
|
|
21
25
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
// Write the content to the SAF file
|
|
27
|
+
await FileSystem.StorageAccessFramework.writeAsStringAsync(fileUri, base64Content, {
|
|
28
|
+
encoding: FileSystem.EncodingType.Base64
|
|
29
|
+
});
|
|
26
30
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
// Clean up temporary file
|
|
32
|
+
await FileSystem.deleteAsync(tempFileUri, {
|
|
33
|
+
idempotent: true
|
|
34
|
+
});
|
|
35
|
+
return {
|
|
36
|
+
uri: fileUri
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
if (!FileSystem.documentDirectory) {
|
|
40
|
+
throw new Error('Document directory not found');
|
|
41
|
+
}
|
|
42
|
+
const result = await downloadAsync(uri, FileSystem.documentDirectory + filename);
|
|
43
|
+
return shareAsync(result.uri);
|
|
34
44
|
};
|
|
35
45
|
//# sourceMappingURL=downloadFile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["FileSystem","downloadFile","uri","filename","fileType","permissions","StorageAccessFramework","requestDirectoryPermissionsAsync","granted","
|
|
1
|
+
{"version":3,"names":["FileSystem","downloadAsync","shareAsync","Platform","downloadFile","uri","filename","fileType","OS","permissions","StorageAccessFramework","requestDirectoryPermissionsAsync","granted","Error","tempFileUri","cacheDirectory","base64Content","readAsStringAsync","encoding","EncodingType","Base64","fileUri","createFileAsync","directoryUri","writeAsStringAsync","deleteAsync","idempotent","documentDirectory","result"],"sourceRoot":"..\\..\\..\\src","sources":["utils/downloadFile.ts"],"mappings":"AAAA,OAAO,KAAKA,UAAU,MAAM,kBAAkB;AAC9C,SAASC,aAAa,QAAQ,kBAAkB;AAChD,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,QAAQ,QAAQ,cAAc;AAEvC,OAAO,MAAMC,YAAY,GAAG,MAAAA,CAAOC,GAAW,EAAEC,QAAgB,EAAEC,QAAgB,KAAK;EACrF,IAAIJ,QAAQ,CAACK,EAAE,KAAK,SAAS,EAAE;IAC7B,MAAMC,WAAW,GAAG,MAAMT,UAAU,CAACU,sBAAsB,CAACC,gCAAgC,CAAC,CAAC;IAC9F,IAAI,CAACF,WAAW,CAACG,OAAO,EAAE;MACxB,MAAM,IAAIC,KAAK,CAAC,wBAAwB,CAAC;IAC3C;;IAEA;IACA,MAAMC,WAAW,GAAG,GAAGd,UAAU,CAACe,cAAc,GAAGT,QAAQ,EAAE;;IAE7D;IACA,MAAMN,UAAU,CAACC,aAAa,CAACI,GAAG,EAAES,WAAW,CAAC;;IAEhD;IACA,MAAME,aAAa,GAAG,MAAMhB,UAAU,CAACiB,iBAAiB,CAACH,WAAW,EAAE;MACpEI,QAAQ,EAAElB,UAAU,CAACmB,YAAY,CAACC;IACpC,CAAC,CAAC;;IAEF;IACA,MAAMC,OAAO,GAAG,MAAMrB,UAAU,CAACU,sBAAsB,CAACY,eAAe,CACrEb,WAAW,CAACc,YAAY,EACxBjB,QAAQ,EACRC,QACF,CAAC;;IAED;IACA,MAAMP,UAAU,CAACU,sBAAsB,CAACc,kBAAkB,CAACH,OAAO,EAAEL,aAAa,EAAE;MACjFE,QAAQ,EAAElB,UAAU,CAACmB,YAAY,CAACC;IACpC,CAAC,CAAC;;IAEF;IACA,MAAMpB,UAAU,CAACyB,WAAW,CAACX,WAAW,EAAE;MAAEY,UAAU,EAAE;IAAK,CAAC,CAAC;IAE/D,OAAO;MAAErB,GAAG,EAAEgB;IAAQ,CAAC;EACzB;EACA,IAAI,CAACrB,UAAU,CAAC2B,iBAAiB,EAAE;IACjC,MAAM,IAAId,KAAK,CAAC,8BAA8B,CAAC;EACjD;EACA,MAAMe,MAAM,GAAG,MAAM3B,aAAa,CAACI,GAAG,EAAEL,UAAU,CAAC2B,iBAAiB,GAAGrB,QAAQ,CAAC;EAChF,OAAOJ,UAAU,CAAC0B,MAAM,CAACvB,GAAG,CAAC;AAC/B,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteButton.d.ts","sourceRoot":"","sources":["../../../../src/components/button/DeleteButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,SAAS,EAA4C,MAAM,OAAO,CAAA;AAClF,OAAO,
|
|
1
|
+
{"version":3,"file":"DeleteButton.d.ts","sourceRoot":"","sources":["../../../../src/components/button/DeleteButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,SAAS,EAA4C,MAAM,OAAO,CAAA;AAClF,OAAO,EAA8D,SAAS,EAAE,MAAM,cAAc,CAAA;AAMpG,eAAO,MAAM,kBAAkB,GAAI,oFAQhC;IACD,aAAa,EAAE,OAAO,CAAA;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;CACjB,sBA6BA,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC;IAClC,QAAQ,EAAE,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,CAAA;IAC7C,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB,CA+GA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingButton.d.ts","sourceRoot":"","sources":["../../../../src/components/button/LoadingButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAqD,MAAM,OAAO,CAAA;AAC3F,OAAO,EAKL,SAAS,
|
|
1
|
+
{"version":3,"file":"LoadingButton.d.ts","sourceRoot":"","sources":["../../../../src/components/button/LoadingButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAqD,MAAM,OAAO,CAAA;AAC3F,OAAO,EAKL,SAAS,EAET,SAAS,EACV,MAAM,cAAc,CAAA;AAGrB,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,CAAA;IAC5C,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE;QACL,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAA;QACnD,IAAI,CAAC,EAAE,MAAM,CAAA;KACd,CAAA;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA8FtD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../../src/components/button/Toggle.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,GAAG,EAAwB,MAAM,OAAO,CAAA;AACxD,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../../src/components/button/Toggle.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,GAAG,EAAwB,MAAM,OAAO,CAAA;AACxD,OAAO,EAAE,SAAS,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAA;AAGrE,MAAM,WAAW,YAAY,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM;IAC1D,EAAE,EAAE,MAAM,CAAA;IACV,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,MAAM,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,GAAG,CAAC,OAAO,CAAA;CAC3C;AAED,MAAM,WAAW,WAAW,CAAC,MAAM,SAAS,MAAM;IAChD,OAAO,EAAE,YAAY,CAAC,MAAM,CAAC,EAAE,CAAA;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IACjD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAC5B,WAAW,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CACnC;AA+CD,eAAO,MAAM,MAAM,GAAI,MAAM,SAAS,MAAM,EAAE,yDAO3C,WAAW,CAAC,MAAM,CAAC,gBAmBrB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../src/components/form/Form.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAwB,MAAM,eAAe,CAAA;AAC/D,OAAO,EAEL,aAAa,EAEb,KAAK,EACL,cAAc,EACd,QAAQ,EACR,iBAAiB,EAGjB,SAAS,EACT,YAAY,EACZ,SAAS,EAMV,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,EAAE,EAAE,EAAqB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../src/components/form/Form.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAwB,MAAM,eAAe,CAAA;AAC/D,OAAO,EAEL,aAAa,EAEb,KAAK,EACL,cAAc,EACd,QAAQ,EACR,iBAAiB,EAGjB,SAAS,EACT,YAAY,EACZ,SAAS,EAMV,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,EAAE,EAAE,EAAqB,MAAM,OAAO,CAAA;AAkHpD,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC;IAC9B,KAAK,EAAE,SAAS,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,SAAS,CAAA;CAChB,CA2CA,CAAA;AAED,eAAO,MAAM,WAAW,GAAI,wBAIzB;IACD,KAAK,EAAE,YAAY,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,SAAS,CAAA;CAChB,sBA6CA,CAAA;AAwED,eAAO,MAAM,QAAQ,GAAI,6EAStB,aAAa,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,sBAgDnC,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,QAAQ,EAAE,gGAS9C,iBAAiB,CAAC,CAAC,CAAC,sBAwBtB,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,KAAK,GAAG,SAAS,EAAE,4CAMpD,cAAc,CAAC,CAAC,CAAC,sBAYnB,CAAA;AAED,eAAO,MAAM,IAAI,GAAI,CAAC,SAAS,YAAY,EAAE,qCAK1C,SAAS,CAAC,CAAC,CAAC,sBAmBd,CAAA;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormFooter.d.ts","sourceRoot":"","sources":["../../../../src/components/form/FormFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,YAAY,EAIb,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,EAAE,EAAE,EAAE,iBAAiB,EAA8B,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"FormFooter.d.ts","sourceRoot":"","sources":["../../../../src/components/form/FormFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,YAAY,EAIb,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,EAAE,EAAE,EAAE,iBAAiB,EAA8B,MAAM,OAAO,CAAA;AAgFhF,eAAO,MAAM,YAAY,EAAE,EAAE,CAC3B,iBAAiB,CAAC;IAAE,aAAa,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAAC,UAAU,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC,CAsC/F,CAAA;AAQD,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,YAAY,EAAE,0CAGhD,eAAe,CAAC,CAAC,CAAC,sBA0BpB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editable.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/input/Editable.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,aAAa,EACb,KAAK,EAKN,MAAM,gBAAgB,CAAA;AAEvB,OAAO,KAAwD,MAAM,OAAO,CAAA;AAC5E,OAAO,EAAc,SAAS,
|
|
1
|
+
{"version":3,"file":"Editable.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/input/Editable.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,aAAa,EACb,KAAK,EAKN,MAAM,gBAAgB,CAAA;AAEvB,OAAO,KAAwD,MAAM,OAAO,CAAA;AAC5E,OAAO,EAAc,SAAS,EAAQ,SAAS,EAAE,MAAM,cAAc,CAAA;AASrE,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,KAAK,EAAE,oIAYvC,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC,sBA+HxC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputClearButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/input/common/InputClearButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"InputClearButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/input/common/InputClearButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,eAAO,MAAM,gBAAgB,GAAI,2CAK9B;IACD,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;CACb,sBAgBA,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAI,8BAIlC;IACD,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;CACb,sBAEA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/input/date/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,QAAQ,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,SAAS,EAAgB,MAAM,gBAAgB,CAAA;AAExD,OAAO,KAAmD,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/input/date/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,QAAQ,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,SAAS,EAAgB,MAAM,gBAAgB,CAAA;AAExD,OAAO,KAAmD,MAAM,OAAO,CAAA;AAMvE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAYxC,eAAO,MAAM,SAAS,wFA+ErB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/input/datetime/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAgB,MAAM,gBAAgB,CAAA;AAE5D,OAAO,KAA0E,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/input/datetime/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAgB,MAAM,gBAAgB,CAAA;AAE5D,OAAO,KAA0E,MAAM,OAAO,CAAA;AAM9F,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAKxC,eAAO,MAAM,aAAa,4FA6IzB,CAAA"}
|
|
@@ -3,13 +3,14 @@ import { FileField } from '@chem-po/react';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
5
5
|
import { FieldProps } from '../../types';
|
|
6
|
-
export declare const FileView: ({ value, hasUpload, imageOptions, withFullView, nonImageContainerStyle, withDownload, }: {
|
|
6
|
+
export declare const FileView: ({ value, hasUpload, imageOptions, withFullView, nonImageContainerStyle, withDownload, onUploadPress, }: {
|
|
7
7
|
value?: FileValue | null;
|
|
8
8
|
hasUpload?: boolean;
|
|
9
9
|
imageOptions?: ImageViewOptions;
|
|
10
10
|
withFullView?: boolean;
|
|
11
11
|
nonImageContainerStyle?: StyleProp<ViewStyle>;
|
|
12
12
|
withDownload?: boolean;
|
|
13
|
+
onUploadPress?: () => void;
|
|
13
14
|
}) => React.JSX.Element;
|
|
14
15
|
export declare const FileComponent: React.ForwardRefExoticComponent<FieldProps<FileField> & React.RefAttributes<InputRef>>;
|
|
15
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/input/file/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,QAAQ,EAAkB,MAAM,eAAe,CAAA;AACrF,OAAO,EACL,SAAS,EAQV,MAAM,gBAAgB,CAAA;AAIvB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/input/file/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,QAAQ,EAAkB,MAAM,eAAe,CAAA;AACrF,OAAO,EACL,SAAS,EAQV,MAAM,gBAAgB,CAAA;AAIvB,OAAO,KAAgE,MAAM,OAAO,CAAA;AACpF,OAAO,EAAY,SAAS,EAA0B,SAAS,EAAE,MAAM,cAAc,CAAA;AAIrF,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AA+BxC,eAAO,MAAM,QAAQ,GAAI,wGAQtB;IACD,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,CAAC,EAAE,gBAAgB,CAAA;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,sBAAsB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAC7C,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;CAC3B,sBAmFA,CAAA;AAED,eAAO,MAAM,aAAa,wFAyFzB,CAAA"}
|
|
@@ -12,18 +12,15 @@ export declare const inputStyles: {
|
|
|
12
12
|
borderRadius: number;
|
|
13
13
|
};
|
|
14
14
|
inputSmall: {
|
|
15
|
-
|
|
16
|
-
paddingHorizontal: number;
|
|
15
|
+
padding: number;
|
|
17
16
|
borderRadius: number;
|
|
18
17
|
};
|
|
19
18
|
inputMedium: {
|
|
20
|
-
|
|
21
|
-
paddingHorizontal: number;
|
|
19
|
+
padding: number;
|
|
22
20
|
borderRadius: number;
|
|
23
21
|
};
|
|
24
22
|
inputLarge: {
|
|
25
|
-
|
|
26
|
-
paddingHorizontal: number;
|
|
23
|
+
padding: number;
|
|
27
24
|
borderRadius: number;
|
|
28
25
|
};
|
|
29
26
|
inputTextSmall: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInputStyles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/input/hooks/useInputStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAGzC,OAAO,EAAE,SAAS,EAAc,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE1E,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"useInputStyles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/input/hooks/useInputStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAGzC,OAAO,EAAE,SAAS,EAAc,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE1E,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CtB,CAAA;AAsCF,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,SAAS,CAAA;IACf,SAAS,EAAE,SAAS,CAAA;IACpB,IAAI,EAAE,SAAS,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CACtC;AACD,eAAO,MAAM,cAAc,GACzB,YAAY,OAAO,GAAG,SAAS,EAC/B,MAAM,SAAS,GAAG,SAAS,EAC3B,WAAU,SAAgB,KACzB,cA0BF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/input/multipleSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA2B,MAAM,eAAe,CAAA;AACjE,OAAO,EACL,mBAAmB,EAQpB,MAAM,gBAAgB,CAAA;AAEvB,OAAO,KAAK,EAAE,EAGZ,iBAAiB,EAIlB,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,SAAS,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAA;AAGrE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAIxC,eAAO,MAAM,uBAAuB,GAAI,sBAGrC,iBAAiB,CAAC;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAAE,CAAC,sBAQnE,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/input/multipleSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA2B,MAAM,eAAe,CAAA;AACjE,OAAO,EACL,mBAAmB,EAQpB,MAAM,gBAAgB,CAAA;AAEvB,OAAO,KAAK,EAAE,EAGZ,iBAAiB,EAIlB,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,SAAS,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAA;AAGrE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAIxC,eAAO,MAAM,uBAAuB,GAAI,sBAGrC,iBAAiB,CAAC;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAAE,CAAC,sBAQnE,CAAA;AAoJD,eAAO,MAAM,uBAAuB,kGAA0C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/input/socialMedia/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,QAAQ,EAAoB,MAAM,eAAe,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,KAQN,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/input/socialMedia/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,QAAQ,EAAoB,MAAM,eAAe,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,KAQN,MAAM,OAAO,CAAA;AAGd,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAiExC,eAAO,MAAM,oBAAoB,+FA+EhC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoResizeTextarea.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/input/text/AutoResizeTextarea.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,SAAS,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAIpE,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"AutoResizeTextarea.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/input/text/AutoResizeTextarea.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,SAAS,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAIpE,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,eAAO,MAAM,kBAAkB,kFAoB9B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/input/text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,SAAS,EAAqC,MAAM,gBAAgB,CAAA;AAE7E,OAAO,KAA4D,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/input/text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,SAAS,EAAqC,MAAM,gBAAgB,CAAA;AAE7E,OAAO,KAA4D,MAAM,OAAO,CAAA;AAGhF,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAIxC,eAAO,MAAM,aAAa,wFAgEzB,CAAA"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { StyleProp, TextStyle } from 'react-native';
|
|
2
2
|
export declare const useWebAutoResize: (onChangeText: ((e: string) => void) | undefined, style: StyleProp<TextStyle> | undefined) => {
|
|
3
|
-
getWebTextHeight: (text: string, spanRef: React.RefObject<HTMLSpanElement | null>) => number | null;
|
|
4
3
|
handleChange: ((e: string) => void) | undefined;
|
|
5
|
-
height: number;
|
|
6
|
-
setHeight: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
4
|
+
height: number | "auto";
|
|
5
|
+
setHeight: import("react").Dispatch<import("react").SetStateAction<number | "auto">>;
|
|
7
6
|
};
|
|
8
7
|
//# sourceMappingURL=useWebAutoResize.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWebAutoResize.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/input/text/useWebAutoResize.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,SAAS,EAAc,SAAS,EAAE,MAAM,cAAc,CAAA;AAmCzE,eAAO,MAAM,gBAAgB,GAC3B,cAAc,CAAC,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,EAC/C,OAAO,SAAS,CAAC,SAAS,CAAC,GAAG,SAAS;
|
|
1
|
+
{"version":3,"file":"useWebAutoResize.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/input/text/useWebAutoResize.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,SAAS,EAAc,SAAS,EAAE,MAAM,cAAc,CAAA;AAmCzE,eAAO,MAAM,gBAAgB,GAC3B,cAAc,CAAC,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,EAC/C,OAAO,SAAS,CAAC,SAAS,CAAC,GAAG,SAAS;uBADpB,MAAM,KAAK,IAAI;;;CAmCnC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/input/time/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAY,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,SAAS,EAAgB,MAAM,gBAAgB,CAAA;AAExD,OAAO,KAA6D,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/input/time/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAY,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,SAAS,EAAgB,MAAM,gBAAgB,CAAA;AAExD,OAAO,KAA6D,MAAM,OAAO,CAAA;AAKjF,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAKxC,eAAO,MAAM,SAAS,wFA6FrB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/view/select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACpF,OAAO,EAAE,WAAW,EAAqC,MAAM,gBAAgB,CAAA;AAC/E,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAA0B,SAAS,EAAE,MAAM,cAAc,CAAA;AAiBhE,eAAO,MAAM,mBAAmB,GAC9B,KAAK,GAAG,MAAM,EACd,MAAM,SAAS,gBAAgB,CAAC,KAAK,CAAC,GAAG,gBAAgB,CAAC,KAAK,CAAC,EAChE,aAEC,uBAAuB,CAAC,KAAK,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/view/select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACpF,OAAO,EAAE,WAAW,EAAqC,MAAM,gBAAgB,CAAA;AAC/E,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAA0B,SAAS,EAAE,MAAM,cAAc,CAAA;AAiBhE,eAAO,MAAM,mBAAmB,GAC9B,KAAK,GAAG,MAAM,EACd,MAAM,SAAS,gBAAgB,CAAC,KAAK,CAAC,GAAG,gBAAgB,CAAC,KAAK,CAAC,EAChE,aAEC,uBAAuB,CAAC,KAAK,EAAE,MAAM,CAAC,sBAMxC,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,+DAO7B;IACD,KAAK,EAAE,WAAW,CAAA;IAClB,KAAK,EAAE,GAAG,CAAA;IACV,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,sBA2BA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageViewModal.d.ts","sourceRoot":"","sources":["../../../../src/components/image/ImageViewModal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAoD,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"ImageViewModal.d.ts","sourceRoot":"","sources":["../../../../src/components/image/ImageViewModal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAoD,MAAM,OAAO,CAAA;AAYxE,UAAU,mBAAmB;IAC3B,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA+OxD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapseHorizontal.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/CollapseHorizontal.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"CollapseHorizontal.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/CollapseHorizontal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAA;AAC7E,OAAO,EAAqB,SAAS,EAAQ,SAAS,EAAE,MAAM,cAAc,CAAA;AAQ5E,eAAO,MAAM,kBAAkB,GAAI,0CAKhC;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,EAAE,EAAE,OAAO,CAAA;IACX,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAC7B,sBAwEA,CAAA"}
|
|
@@ -3,7 +3,10 @@ import { DimensionValue, ViewStyle } from 'react-native';
|
|
|
3
3
|
export interface LoadingImageProps {
|
|
4
4
|
src?: string | null;
|
|
5
5
|
loadingOverride?: boolean;
|
|
6
|
-
onLoad?: (
|
|
6
|
+
onLoad?: (dims: {
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
}) => void;
|
|
7
10
|
filename?: string;
|
|
8
11
|
fileType?: string;
|
|
9
12
|
withFullView?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingImage.d.ts","sourceRoot":"","sources":["../../../../src/components/loading/LoadingImage.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4D,MAAM,OAAO,CAAA;AAChF,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"LoadingImage.d.ts","sourceRoot":"","sources":["../../../../src/components/loading/LoadingImage.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4D,MAAM,OAAO,CAAA;AAChF,OAAO,EAAE,cAAc,EAA2B,SAAS,EAAE,MAAM,cAAc,CAAA;AAKjF,MAAM,WAAW,iBAAiB;IAChC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,KAAK,CAAC,EAAE,cAAc,CAAA;IACtB,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAKD,eAAO,MAAM,YAAY,GAAI,yHAY1B,iBAAiB,sBA2FnB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DarkModeToggle.d.ts","sourceRoot":"","sources":["../../../../../src/components/theme/colorMode/DarkModeToggle.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"DarkModeToggle.d.ts","sourceRoot":"","sources":["../../../../../src/components/theme/colorMode/DarkModeToggle.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,eAAO,MAAM,cAAc,yBAmB1B,CAAA;AAED,eAAO,MAAM,sBAAsB,yBAIlC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const downloadFile: (uri: string, filename: string, fileType: string) => Promise<{
|
|
1
|
+
export declare const downloadFile: (uri: string, filename: string, fileType: string) => Promise<void | {
|
|
2
2
|
uri: string;
|
|
3
|
-
}
|
|
3
|
+
}>;
|
|
4
4
|
//# sourceMappingURL=downloadFile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"downloadFile.d.ts","sourceRoot":"","sources":["../../../src/utils/downloadFile.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"downloadFile.d.ts","sourceRoot":"","sources":["../../../src/utils/downloadFile.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY,GAAU,KAAK,MAAM,EAAE,UAAU,MAAM,EAAE,UAAU,MAAM;;EAwCjF,CAAA"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@chem-po/react-native",
|
|
3
3
|
"author": "Elan Canfield",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.32",
|
|
6
6
|
"main": "lib/commonjs/index.js",
|
|
7
7
|
"types": "lib/typescript/index.d.ts",
|
|
8
8
|
"source": "src/index.ts",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"expo-document-picker": "~13.1.6",
|
|
39
39
|
"expo-file-system": "~18.1.11",
|
|
40
40
|
"expo-image-picker": "~16.1.4",
|
|
41
|
+
"expo-sharing": "~13.1.5",
|
|
41
42
|
"lottie-react-native": "7.2.2",
|
|
42
43
|
"nested-property": "^4.0.0",
|
|
43
44
|
"react": "19.0.0",
|
|
@@ -51,8 +52,8 @@
|
|
|
51
52
|
"react-native-paper-dates": "^0.22.42",
|
|
52
53
|
"react-native-svg": "15.11.2",
|
|
53
54
|
"zustand": "^4.3.3",
|
|
54
|
-
"@chem-po/core": "0.0.
|
|
55
|
-
"@chem-po/react": "0.0.
|
|
55
|
+
"@chem-po/core": "0.0.32",
|
|
56
|
+
"@chem-po/react": "0.0.32"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|
|
58
59
|
"@babel/core": "^7.26.0",
|
|
@@ -68,7 +69,7 @@
|
|
|
68
69
|
"vite": "^6.2.2"
|
|
69
70
|
},
|
|
70
71
|
"peerDependencies": {
|
|
71
|
-
"expo": "~53.0.
|
|
72
|
+
"expo": "~53.0.22",
|
|
72
73
|
"react": "19.0.0",
|
|
73
74
|
"react-dom": "19.0.0",
|
|
74
75
|
"react-native": "0.79.4"
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
import { useToast } from '@chem-po/react'
|
|
2
2
|
import { Ionicons } from '@expo/vector-icons'
|
|
3
3
|
import React, { ReactNode, useCallback, useEffect, useRef, useState } from 'react'
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
Animated,
|
|
7
|
-
Modal,
|
|
8
|
-
StyleSheet,
|
|
9
|
-
Text,
|
|
10
|
-
TouchableOpacity,
|
|
11
|
-
View,
|
|
12
|
-
ViewStyle,
|
|
13
|
-
} from 'react-native'
|
|
4
|
+
import { ActivityIndicator, Animated, Modal, StyleSheet, Text, View, ViewStyle } from 'react-native'
|
|
5
|
+
import { Pressable } from 'react-native-gesture-handler'
|
|
14
6
|
import { Txt } from '../text/Txt'
|
|
15
7
|
|
|
16
8
|
const defaultAlertBodyText = "Are you sure? You can't undo this action afterwards."
|
|
@@ -45,19 +37,16 @@ export const DeleteConfirmAlert = ({
|
|
|
45
37
|
</Txt>
|
|
46
38
|
{typeof body === 'string' ? <Txt style={styles.alertBody}>{body}</Txt> : body}
|
|
47
39
|
<View style={styles.buttonContainer}>
|
|
48
|
-
<
|
|
40
|
+
<Pressable style={styles.cancelButton} onPress={onCancel}>
|
|
49
41
|
<Txt style={styles.cancelText}>Cancel</Txt>
|
|
50
|
-
</
|
|
51
|
-
<
|
|
52
|
-
style={styles.confirmButton}
|
|
53
|
-
onPress={onConfirm}
|
|
54
|
-
disabled={actionLoading}>
|
|
42
|
+
</Pressable>
|
|
43
|
+
<Pressable style={styles.confirmButton} onPress={onConfirm} disabled={actionLoading}>
|
|
55
44
|
{actionLoading ? (
|
|
56
45
|
<ActivityIndicator color="#fff" />
|
|
57
46
|
) : (
|
|
58
47
|
<Txt style={[styles.buttonText, styles.confirmButtonText]}>{actionName}</Txt>
|
|
59
48
|
)}
|
|
60
|
-
</
|
|
49
|
+
</Pressable>
|
|
61
50
|
</View>
|
|
62
51
|
</View>
|
|
63
52
|
</View>
|
|
@@ -132,10 +121,9 @@ export const DeleteButton: React.FC<{
|
|
|
132
121
|
return (
|
|
133
122
|
<>
|
|
134
123
|
{text ? (
|
|
135
|
-
<
|
|
124
|
+
<Pressable
|
|
136
125
|
style={[styles.button, style]}
|
|
137
|
-
onPress={
|
|
138
|
-
e.stopPropagation()
|
|
126
|
+
onPress={() => {
|
|
139
127
|
if (noConfirm) handleDelete()
|
|
140
128
|
else setConfirmActive(true)
|
|
141
129
|
}}
|
|
@@ -150,12 +138,11 @@ export const DeleteButton: React.FC<{
|
|
|
150
138
|
<ActivityIndicator color="#ff0000" size="small" />
|
|
151
139
|
</Animated.View>
|
|
152
140
|
</View>
|
|
153
|
-
</
|
|
141
|
+
</Pressable>
|
|
154
142
|
) : (
|
|
155
|
-
<
|
|
143
|
+
<Pressable
|
|
156
144
|
style={[styles.iconButton, style]}
|
|
157
|
-
onPress={
|
|
158
|
-
e.stopPropagation()
|
|
145
|
+
onPress={() => {
|
|
159
146
|
if (noConfirm) handleDelete()
|
|
160
147
|
else setConfirmActive(true)
|
|
161
148
|
}}
|
|
@@ -169,7 +156,7 @@ export const DeleteButton: React.FC<{
|
|
|
169
156
|
<ActivityIndicator color="#ff0000" size="small" />
|
|
170
157
|
</Animated.View>
|
|
171
158
|
</View>
|
|
172
|
-
</
|
|
159
|
+
</Pressable>
|
|
173
160
|
)}
|
|
174
161
|
{noConfirm ? null : (
|
|
175
162
|
<DeleteConfirmAlert
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
StyleSheet,
|
|
8
8
|
Text,
|
|
9
9
|
TextStyle,
|
|
10
|
-
TouchableOpacity,
|
|
11
10
|
View,
|
|
12
11
|
ViewStyle,
|
|
13
12
|
} from 'react-native'
|
|
13
|
+
import { Pressable } from 'react-native-gesture-handler'
|
|
14
14
|
|
|
15
15
|
export interface LoadingButtonProps {
|
|
16
16
|
onPress: (() => Promise<any>) | (() => void)
|
|
@@ -89,14 +89,13 @@ export const LoadingButton: React.FC<LoadingButtonProps> = ({
|
|
|
89
89
|
const fallbackColor = useTextColor()
|
|
90
90
|
const color = useMemo(() => colorProp ?? fallbackColor, [colorProp, fallbackColor])
|
|
91
91
|
return (
|
|
92
|
-
<
|
|
92
|
+
<Pressable
|
|
93
93
|
style={[
|
|
94
94
|
styles.button,
|
|
95
95
|
{ borderColor: color, backgroundColor: disabled ? '#f0f0f0' : 'transparent' },
|
|
96
96
|
style,
|
|
97
97
|
]}
|
|
98
|
-
onPress={
|
|
99
|
-
e.stopPropagation()
|
|
98
|
+
onPress={() => {
|
|
100
99
|
handlePress()
|
|
101
100
|
}}
|
|
102
101
|
disabled={loading || disabled}>
|
|
@@ -119,7 +118,7 @@ export const LoadingButton: React.FC<LoadingButtonProps> = ({
|
|
|
119
118
|
<ActivityIndicator color={color} size="small" />
|
|
120
119
|
</Animated.View>
|
|
121
120
|
</View>
|
|
122
|
-
</
|
|
121
|
+
</Pressable>
|
|
123
122
|
)
|
|
124
123
|
}
|
|
125
124
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useBackgroundColor, useBorderColor, useThemeValue, useToast } from '@chem-po/react'
|
|
2
2
|
import React, { JSX, useCallback, useMemo } from 'react'
|
|
3
|
-
import { StyleProp, StyleSheet,
|
|
3
|
+
import { StyleProp, StyleSheet, View, ViewStyle } from 'react-native'
|
|
4
|
+
import { Pressable } from 'react-native-gesture-handler'
|
|
4
5
|
|
|
5
6
|
export interface ToggleOption<Option extends string = string> {
|
|
6
7
|
id: Option
|
|
@@ -43,7 +44,7 @@ const ToggleButton = <Option extends string>({
|
|
|
43
44
|
const [width, height] = useMemo(() => (typeof size === 'number' ? [size, size] : size), [size])
|
|
44
45
|
const body = (
|
|
45
46
|
<View style={[styles.buttonContainer, { width, height, opacity: !disabledMessage ? 1 : 0.6 }]}>
|
|
46
|
-
<
|
|
47
|
+
<Pressable
|
|
47
48
|
style={[
|
|
48
49
|
styles.button,
|
|
49
50
|
{
|
|
@@ -55,7 +56,7 @@ const ToggleButton = <Option extends string>({
|
|
|
55
56
|
onPress={handlePress}
|
|
56
57
|
disabled={!!disabledMessage}>
|
|
57
58
|
{Render(selected)}
|
|
58
|
-
</
|
|
59
|
+
</Pressable>
|
|
59
60
|
</View>
|
|
60
61
|
)
|
|
61
62
|
|
|
@@ -20,7 +20,8 @@ import {
|
|
|
20
20
|
} from '@chem-po/react'
|
|
21
21
|
import React, { FC, useMemo, useState } from 'react'
|
|
22
22
|
import { useFieldArray, useFormContext } from 'react-hook-form'
|
|
23
|
-
import { StyleSheet, Text,
|
|
23
|
+
import { StyleSheet, Text, View } from 'react-native'
|
|
24
|
+
import { Pressable } from 'react-native-gesture-handler'
|
|
24
25
|
import { Expandable } from '../box/Expandable'
|
|
25
26
|
import { DeleteButton } from '../button/DeleteButton'
|
|
26
27
|
import { Condition } from './Condition'
|
|
@@ -108,6 +109,27 @@ const styles = StyleSheet.create({
|
|
|
108
109
|
paddingHorizontal: 16,
|
|
109
110
|
paddingVertical: 8,
|
|
110
111
|
},
|
|
112
|
+
submitButton: {
|
|
113
|
+
paddingVertical: 10,
|
|
114
|
+
paddingHorizontal: 20,
|
|
115
|
+
borderRadius: 8,
|
|
116
|
+
alignItems: 'center',
|
|
117
|
+
justifyContent: 'center',
|
|
118
|
+
},
|
|
119
|
+
submitButtonText: {
|
|
120
|
+
fontSize: 16,
|
|
121
|
+
fontWeight: 'bold',
|
|
122
|
+
},
|
|
123
|
+
editButtonText: {
|
|
124
|
+
fontSize: 16,
|
|
125
|
+
fontWeight: 'bold',
|
|
126
|
+
color: '#4a5568',
|
|
127
|
+
},
|
|
128
|
+
cancelButtonText: {
|
|
129
|
+
fontSize: 16,
|
|
130
|
+
fontWeight: 'bold',
|
|
131
|
+
color: '#4a5568',
|
|
132
|
+
},
|
|
111
133
|
})
|
|
112
134
|
|
|
113
135
|
export const ListFieldInput: FC<{
|
|
@@ -150,11 +172,11 @@ export const ListFieldInput: FC<{
|
|
|
150
172
|
<Text style={styles.emptyListText}>No items</Text>
|
|
151
173
|
)}
|
|
152
174
|
</View>
|
|
153
|
-
<
|
|
175
|
+
<Pressable
|
|
154
176
|
style={[styles.newButton, { backgroundColor: buttonColor }]}
|
|
155
177
|
onPress={() => append(emptyData)}>
|
|
156
178
|
<Text style={styles.newButtonText}>+ NEW</Text>
|
|
157
|
-
</
|
|
179
|
+
</Pressable>
|
|
158
180
|
</View>
|
|
159
181
|
)
|
|
160
182
|
}
|
|
@@ -306,15 +328,13 @@ export const DataView = ({
|
|
|
306
328
|
<Text style={styles.dataViewTitle}>{fieldName}</Text>
|
|
307
329
|
<View style={styles.dataViewActions}>
|
|
308
330
|
{onDelete && <DeleteButton onDelete={onDelete} itemName={itemName ?? 'item'} />}
|
|
309
|
-
{
|
|
310
|
-
<
|
|
311
|
-
|
|
312
|
-
</TouchableOpacity>
|
|
313
|
-
)}
|
|
331
|
+
<Pressable onPress={() => setIsEditing(true)}>
|
|
332
|
+
<Text style={styles.editButtonText}>Edit</Text>
|
|
333
|
+
</Pressable>
|
|
314
334
|
{onClose && (
|
|
315
|
-
<
|
|
316
|
-
<Text>
|
|
317
|
-
</
|
|
335
|
+
<Pressable onPress={onClose}>
|
|
336
|
+
<Text style={styles.cancelButtonText}>Cancel</Text>
|
|
337
|
+
</Pressable>
|
|
318
338
|
)}
|
|
319
339
|
</View>
|
|
320
340
|
</View>
|
|
@@ -7,7 +7,8 @@ import {
|
|
|
7
7
|
} from '@chem-po/react'
|
|
8
8
|
import React, { FC, PropsWithChildren, useEffect, useMemo, useRef } from 'react'
|
|
9
9
|
import { useFormContext, useFormState } from 'react-hook-form'
|
|
10
|
-
import { ActivityIndicator, Animated, StyleSheet, Text,
|
|
10
|
+
import { ActivityIndicator, Animated, StyleSheet, Text, View } from 'react-native'
|
|
11
|
+
import { Pressable } from 'react-native-gesture-handler'
|
|
11
12
|
import { UploadProgress } from './UploadProgress'
|
|
12
13
|
|
|
13
14
|
const buttonTextColor = '#ffffff'
|
|
@@ -75,12 +76,12 @@ const CancelButton = ({
|
|
|
75
76
|
const placeholderColor = usePlaceholderColor()
|
|
76
77
|
const borderColor = useBorderColor()
|
|
77
78
|
return (
|
|
78
|
-
<
|
|
79
|
+
<Pressable
|
|
79
80
|
disabled={submitting}
|
|
80
81
|
style={[styles.cancelButton, { borderColor }]}
|
|
81
82
|
onPress={onBack}>
|
|
82
83
|
<Text style={[styles.cancelButtonText, { color: placeholderColor }]}>{children}</Text>
|
|
83
|
-
</
|
|
84
|
+
</Pressable>
|
|
84
85
|
)
|
|
85
86
|
}
|
|
86
87
|
|
|
@@ -109,7 +110,7 @@ export const SubmitButton: FC<
|
|
|
109
110
|
styles.submitButtonContainer,
|
|
110
111
|
{ opacity: animatedOpacity, backgroundColor: buttonBg },
|
|
111
112
|
]}>
|
|
112
|
-
<
|
|
113
|
+
<Pressable
|
|
113
114
|
style={styles.submitButton}
|
|
114
115
|
onPress={() => {
|
|
115
116
|
onSubmitClick()
|
|
@@ -120,7 +121,7 @@ export const SubmitButton: FC<
|
|
|
120
121
|
) : (
|
|
121
122
|
<Text style={[styles.submitButtonText, { textShadowColor }]}>{children}</Text>
|
|
122
123
|
)}
|
|
123
|
-
</
|
|
124
|
+
</Pressable>
|
|
124
125
|
</Animated.View>
|
|
125
126
|
)
|
|
126
127
|
}
|