@herca/rn-kit 0.1.100 → 0.1.102
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/module/Icon/Icon.js +17 -1
- package/lib/module/Icon/Icon.js.map +1 -1
- package/lib/module/Icon/icons/BarCode.js +22 -0
- package/lib/module/Icon/icons/BarCode.js.map +1 -0
- package/lib/module/Icon/icons/BoxSearchOutline.js +22 -0
- package/lib/module/Icon/icons/BoxSearchOutline.js.map +1 -0
- package/lib/module/Icon/icons/CubeScan.js +34 -0
- package/lib/module/Icon/icons/CubeScan.js.map +1 -0
- package/lib/module/Icon/icons/Devices.js +27 -0
- package/lib/module/Icon/icons/Devices.js.map +1 -0
- package/lib/module/Icon/icons/Global.js +46 -0
- package/lib/module/Icon/icons/Global.js.map +1 -0
- package/lib/module/Icon/icons/Hierarchy3.js +31 -0
- package/lib/module/Icon/icons/Hierarchy3.js.map +1 -0
- package/lib/module/Icon/icons/ScanQr.js +22 -0
- package/lib/module/Icon/icons/ScanQr.js.map +1 -0
- package/lib/module/Icon/icons/UserSquareOutline.js +25 -0
- package/lib/module/Icon/icons/UserSquareOutline.js.map +1 -0
- package/lib/module/Input/InputFile.js +178 -68
- package/lib/module/Input/InputFile.js.map +1 -1
- package/lib/module/Input/README_INPUT_FILE.md +179 -105
- package/lib/module/Input/TextArea.js +2 -0
- package/lib/module/Input/TextArea.js.map +1 -1
- package/lib/module/Input/helpers/uploadFile.js +60 -0
- package/lib/module/Input/helpers/uploadFile.js.map +1 -0
- package/lib/module/Input/partials/InputFile/CardTriggerSmall.js +1 -0
- package/lib/module/Input/partials/InputFile/CardTriggerSmall.js.map +1 -1
- package/lib/module/Input/partials/InputFile/ItemPreview.js +15 -4
- package/lib/module/Input/partials/InputFile/ItemPreview.js.map +1 -1
- package/lib/module/Tab/Tab.js +3 -1
- package/lib/module/Tab/Tab.js.map +1 -1
- package/lib/typescript/src/Icon/Icon.d.ts.map +1 -1
- package/lib/typescript/src/Icon/icons/BarCode.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/BarCode.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/BoxSearchOutline.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/BoxSearchOutline.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/CubeScan.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/CubeScan.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/Devices.d.ts +8 -0
- package/lib/typescript/src/Icon/icons/Devices.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/Global.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/Global.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/Hierarchy3.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/Hierarchy3.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/ScanQr.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/ScanQr.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/UserSquareOutline.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/UserSquareOutline.d.ts.map +1 -0
- package/lib/typescript/src/Icon/type.d.ts +1 -1
- package/lib/typescript/src/Icon/type.d.ts.map +1 -1
- package/lib/typescript/src/Input/InputFile.d.ts +3 -48
- package/lib/typescript/src/Input/InputFile.d.ts.map +1 -1
- package/lib/typescript/src/Input/TextArea.d.ts +1 -1
- package/lib/typescript/src/Input/TextArea.d.ts.map +1 -1
- package/lib/typescript/src/Input/helpers/uploadFile.d.ts +3 -0
- package/lib/typescript/src/Input/helpers/uploadFile.d.ts.map +1 -0
- package/lib/typescript/src/Input/partials/InputFile/CardTriggerSmall.d.ts.map +1 -1
- package/lib/typescript/src/Input/partials/InputFile/ItemPreview.d.ts +4 -2
- package/lib/typescript/src/Input/partials/InputFile/ItemPreview.d.ts.map +1 -1
- package/lib/typescript/src/Input/type.d.ts +91 -0
- package/lib/typescript/src/Input/type.d.ts.map +1 -1
- package/lib/typescript/src/Tab/Tab.d.ts.map +1 -1
- package/lib/typescript/src/Tab/type.d.ts +2 -0
- package/lib/typescript/src/Tab/type.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Icon/Icon.tsx +16 -0
- package/src/Icon/icons/BarCode.tsx +19 -0
- package/src/Icon/icons/BoxSearchOutline.tsx +23 -0
- package/src/Icon/icons/CubeScan.tsx +35 -0
- package/src/Icon/icons/Devices.tsx +26 -0
- package/src/Icon/icons/Global.tsx +55 -0
- package/src/Icon/icons/Hierarchy3.tsx +31 -0
- package/src/Icon/icons/ScanQr.tsx +19 -0
- package/src/Icon/icons/UserSquareOutline.tsx +27 -0
- package/src/Icon/type.tsx +9 -1
- package/src/Input/InputFile.tsx +235 -111
- package/src/Input/README_INPUT_FILE.md +179 -105
- package/src/Input/TextArea.tsx +2 -1
- package/src/Input/helpers/uploadFile.ts +77 -0
- package/src/Input/partials/InputFile/CardTriggerSmall.tsx +1 -0
- package/src/Input/partials/InputFile/ItemPreview.tsx +25 -4
- package/src/Input/type.tsx +105 -0
- package/src/Tab/Tab.tsx +2 -0
- package/src/Tab/type.tsx +5 -0
package/src/Tab/Tab.tsx
CHANGED
|
@@ -17,6 +17,7 @@ const Tab: React.FC<TabProps> = ({
|
|
|
17
17
|
current = 0,
|
|
18
18
|
onChangeTab,
|
|
19
19
|
renderHeader,
|
|
20
|
+
refreshControl,
|
|
20
21
|
}) => {
|
|
21
22
|
const items = Children.toArray(children).filter(
|
|
22
23
|
isValidElement
|
|
@@ -124,6 +125,7 @@ const Tab: React.FC<TabProps> = ({
|
|
|
124
125
|
<View style={styles.container}>
|
|
125
126
|
{renderHeader ? (
|
|
126
127
|
<ScrollView
|
|
128
|
+
refreshControl={refreshControl}
|
|
127
129
|
stickyHeaderIndices={[renderHeader ? 1 : 0]} // bikin tabBar sticky
|
|
128
130
|
contentContainerStyle={styles.scrollViewContainer}
|
|
129
131
|
showsVerticalScrollIndicator={false}
|
package/src/Tab/type.tsx
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { type ReactElement } from 'react';
|
|
2
|
+
import type { RefreshControlProps } from 'react-native';
|
|
2
3
|
|
|
3
4
|
export type TabItemProps =
|
|
4
5
|
| {
|
|
@@ -19,4 +20,8 @@ export interface TabProps {
|
|
|
19
20
|
current?: number;
|
|
20
21
|
renderHeader?: React.ReactElement;
|
|
21
22
|
onChangeTab?: (e: any) => void;
|
|
23
|
+
refreshControl?: React.ReactElement<
|
|
24
|
+
RefreshControlProps,
|
|
25
|
+
string | React.JSXElementConstructor<any>
|
|
26
|
+
>;
|
|
22
27
|
}
|