rn-custom-ui 1.0.0
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/LICENSE +20 -0
- package/README.md +477 -0
- package/lib/module/assets/images/close.png +0 -0
- package/lib/module/components/CustomCheckbox/index.js +99 -0
- package/lib/module/components/CustomCheckbox/index.js.map +1 -0
- package/lib/module/components/CustomCheckbox/styles.js +213 -0
- package/lib/module/components/CustomCheckbox/styles.js.map +1 -0
- package/lib/module/components/CustomCheckbox/types.js +4 -0
- package/lib/module/components/CustomCheckbox/types.js.map +1 -0
- package/lib/module/components/closeButton/index.js +45 -0
- package/lib/module/components/closeButton/index.js.map +1 -0
- package/lib/module/components/closeButton/types.js +4 -0
- package/lib/module/components/closeButton/types.js.map +1 -0
- package/lib/module/components/customButton/index.js +176 -0
- package/lib/module/components/customButton/index.js.map +1 -0
- package/lib/module/components/customButton/styles.js +282 -0
- package/lib/module/components/customButton/styles.js.map +1 -0
- package/lib/module/components/customButton/types.js +4 -0
- package/lib/module/components/customButton/types.js.map +1 -0
- package/lib/module/components/customDropDown/DropDownBottomSheet.js +57 -0
- package/lib/module/components/customDropDown/DropDownBottomSheet.js.map +1 -0
- package/lib/module/components/customDropDown/DropDownList.js +51 -0
- package/lib/module/components/customDropDown/DropDownList.js.map +1 -0
- package/lib/module/components/customDropDown/DropDownListItem.js +38 -0
- package/lib/module/components/customDropDown/DropDownListItem.js.map +1 -0
- package/lib/module/components/customDropDown/DropDownListModal.js +63 -0
- package/lib/module/components/customDropDown/DropDownListModal.js.map +1 -0
- package/lib/module/components/customDropDown/index.js +143 -0
- package/lib/module/components/customDropDown/index.js.map +1 -0
- package/lib/module/components/customDropDown/styles.js +189 -0
- package/lib/module/components/customDropDown/styles.js.map +1 -0
- package/lib/module/components/customDropDown/types.js +4 -0
- package/lib/module/components/customDropDown/types.js.map +1 -0
- package/lib/module/components/customDropDown/utils.js +17 -0
- package/lib/module/components/customDropDown/utils.js.map +1 -0
- package/lib/module/components/customList/ListEmpty.js +33 -0
- package/lib/module/components/customList/ListEmpty.js.map +1 -0
- package/lib/module/components/customList/ListFooterLoader.js +14 -0
- package/lib/module/components/customList/ListFooterLoader.js.map +1 -0
- package/lib/module/components/customList/defaultKeyExtractor.js +9 -0
- package/lib/module/components/customList/defaultKeyExtractor.js.map +1 -0
- package/lib/module/components/customList/getFlashList.js +19 -0
- package/lib/module/components/customList/getFlashList.js.map +1 -0
- package/lib/module/components/customList/index.js +117 -0
- package/lib/module/components/customList/index.js.map +1 -0
- package/lib/module/components/customList/styles.js +45 -0
- package/lib/module/components/customList/styles.js.map +1 -0
- package/lib/module/components/customList/types.js +4 -0
- package/lib/module/components/customList/types.js.map +1 -0
- package/lib/module/components/customModal/ModalFooter.js +44 -0
- package/lib/module/components/customModal/ModalFooter.js.map +1 -0
- package/lib/module/components/customModal/index.js +132 -0
- package/lib/module/components/customModal/index.js.map +1 -0
- package/lib/module/components/customModal/styles.js +123 -0
- package/lib/module/components/customModal/styles.js.map +1 -0
- package/lib/module/components/customModal/types.js +4 -0
- package/lib/module/components/customModal/types.js.map +1 -0
- package/lib/module/components/customModal/useCustomModal.js +23 -0
- package/lib/module/components/customModal/useCustomModal.js.map +1 -0
- package/lib/module/components/customNumberPad/NumberPadKey.js +39 -0
- package/lib/module/components/customNumberPad/NumberPadKey.js.map +1 -0
- package/lib/module/components/customNumberPad/index.js +156 -0
- package/lib/module/components/customNumberPad/index.js.map +1 -0
- package/lib/module/components/customNumberPad/styles.js +131 -0
- package/lib/module/components/customNumberPad/styles.js.map +1 -0
- package/lib/module/components/customNumberPad/types.js +4 -0
- package/lib/module/components/customNumberPad/types.js.map +1 -0
- package/lib/module/components/customNumberPad/useNumberPadInput.js +44 -0
- package/lib/module/components/customNumberPad/useNumberPadInput.js.map +1 -0
- package/lib/module/components/customNumberPad/utils.js +38 -0
- package/lib/module/components/customNumberPad/utils.js.map +1 -0
- package/lib/module/components/customSlideTabs/AnimatedTabIndicator.js +66 -0
- package/lib/module/components/customSlideTabs/AnimatedTabIndicator.js.map +1 -0
- package/lib/module/components/customSlideTabs/TabBarItem.js +61 -0
- package/lib/module/components/customSlideTabs/TabBarItem.js.map +1 -0
- package/lib/module/components/customSlideTabs/TabScene.js +88 -0
- package/lib/module/components/customSlideTabs/TabScene.js.map +1 -0
- package/lib/module/components/customSlideTabs/index.js +277 -0
- package/lib/module/components/customSlideTabs/index.js.map +1 -0
- package/lib/module/components/customSlideTabs/styles.js +132 -0
- package/lib/module/components/customSlideTabs/styles.js.map +1 -0
- package/lib/module/components/customSlideTabs/tabBarScroll.js +65 -0
- package/lib/module/components/customSlideTabs/tabBarScroll.js.map +1 -0
- package/lib/module/components/customSlideTabs/types.js +4 -0
- package/lib/module/components/customSlideTabs/types.js.map +1 -0
- package/lib/module/components/loading/index.js +34 -0
- package/lib/module/components/loading/index.js.map +1 -0
- package/lib/module/customFunctions/array.js +61 -0
- package/lib/module/customFunctions/array.js.map +1 -0
- package/lib/module/customFunctions/async.js +62 -0
- package/lib/module/customFunctions/async.js.map +1 -0
- package/lib/module/customFunctions/date.js +109 -0
- package/lib/module/customFunctions/date.js.map +1 -0
- package/lib/module/customFunctions/general.js +29 -0
- package/lib/module/customFunctions/general.js.map +1 -0
- package/lib/module/customFunctions/id.js +20 -0
- package/lib/module/customFunctions/id.js.map +1 -0
- package/lib/module/customFunctions/index.js +29 -0
- package/lib/module/customFunctions/index.js.map +1 -0
- package/lib/module/customFunctions/number.js +94 -0
- package/lib/module/customFunctions/number.js.map +1 -0
- package/lib/module/customFunctions/object.js +39 -0
- package/lib/module/customFunctions/object.js.map +1 -0
- package/lib/module/customFunctions/string.js +63 -0
- package/lib/module/customFunctions/string.js.map +1 -0
- package/lib/module/customFunctions/types.js +2 -0
- package/lib/module/customFunctions/types.js.map +1 -0
- package/lib/module/customFunctions/validation.js +34 -0
- package/lib/module/customFunctions/validation.js.map +1 -0
- package/lib/module/customHooks/errors.js +61 -0
- package/lib/module/customHooks/errors.js.map +1 -0
- package/lib/module/customHooks/fetchJson.js +36 -0
- package/lib/module/customHooks/fetchJson.js.map +1 -0
- package/lib/module/customHooks/index.js +10 -0
- package/lib/module/customHooks/index.js.map +1 -0
- package/lib/module/customHooks/internal.js +49 -0
- package/lib/module/customHooks/internal.js.map +1 -0
- package/lib/module/customHooks/types.js +2 -0
- package/lib/module/customHooks/types.js.map +1 -0
- package/lib/module/customHooks/useApi.js +91 -0
- package/lib/module/customHooks/useApi.js.map +1 -0
- package/lib/module/customHooks/useLazyApi.js +80 -0
- package/lib/module/customHooks/useLazyApi.js.map +1 -0
- package/lib/module/customHooks/useMutation.js +69 -0
- package/lib/module/customHooks/useMutation.js.map +1 -0
- package/lib/module/customHooks/usePaginatedApi.js +127 -0
- package/lib/module/customHooks/usePaginatedApi.js.map +1 -0
- package/lib/module/customHooks/usePollingApi.js +37 -0
- package/lib/module/customHooks/usePollingApi.js.map +1 -0
- package/lib/module/index.js +13 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/multiply.js +6 -0
- package/lib/module/multiply.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/components/CustomCheckbox/index.d.ts +5 -0
- package/lib/typescript/src/components/CustomCheckbox/index.d.ts.map +1 -0
- package/lib/typescript/src/components/CustomCheckbox/styles.d.ts +67 -0
- package/lib/typescript/src/components/CustomCheckbox/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/CustomCheckbox/types.d.ts +28 -0
- package/lib/typescript/src/components/CustomCheckbox/types.d.ts.map +1 -0
- package/lib/typescript/src/components/closeButton/index.d.ts +4 -0
- package/lib/typescript/src/components/closeButton/index.d.ts.map +1 -0
- package/lib/typescript/src/components/closeButton/types.d.ts +8 -0
- package/lib/typescript/src/components/closeButton/types.d.ts.map +1 -0
- package/lib/typescript/src/components/customButton/index.d.ts +5 -0
- package/lib/typescript/src/components/customButton/index.d.ts.map +1 -0
- package/lib/typescript/src/components/customButton/styles.d.ts +231 -0
- package/lib/typescript/src/components/customButton/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/customButton/types.d.ts +46 -0
- package/lib/typescript/src/components/customButton/types.d.ts.map +1 -0
- package/lib/typescript/src/components/customDropDown/DropDownBottomSheet.d.ts +18 -0
- package/lib/typescript/src/components/customDropDown/DropDownBottomSheet.d.ts.map +1 -0
- package/lib/typescript/src/components/customDropDown/DropDownList.d.ts +17 -0
- package/lib/typescript/src/components/customDropDown/DropDownList.d.ts.map +1 -0
- package/lib/typescript/src/components/customDropDown/DropDownListItem.d.ts +15 -0
- package/lib/typescript/src/components/customDropDown/DropDownListItem.d.ts.map +1 -0
- package/lib/typescript/src/components/customDropDown/DropDownListModal.d.ts +19 -0
- package/lib/typescript/src/components/customDropDown/DropDownListModal.d.ts.map +1 -0
- package/lib/typescript/src/components/customDropDown/index.d.ts +5 -0
- package/lib/typescript/src/components/customDropDown/index.d.ts.map +1 -0
- package/lib/typescript/src/components/customDropDown/styles.d.ts +190 -0
- package/lib/typescript/src/components/customDropDown/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/customDropDown/types.d.ts +37 -0
- package/lib/typescript/src/components/customDropDown/types.d.ts.map +1 -0
- package/lib/typescript/src/components/customDropDown/utils.d.ts +4 -0
- package/lib/typescript/src/components/customDropDown/utils.d.ts.map +1 -0
- package/lib/typescript/src/components/customList/ListEmpty.d.ts +10 -0
- package/lib/typescript/src/components/customList/ListEmpty.d.ts.map +1 -0
- package/lib/typescript/src/components/customList/ListFooterLoader.d.ts +3 -0
- package/lib/typescript/src/components/customList/ListFooterLoader.d.ts.map +1 -0
- package/lib/typescript/src/components/customList/defaultKeyExtractor.d.ts +2 -0
- package/lib/typescript/src/components/customList/defaultKeyExtractor.d.ts.map +1 -0
- package/lib/typescript/src/components/customList/getFlashList.d.ts +6 -0
- package/lib/typescript/src/components/customList/getFlashList.d.ts.map +1 -0
- package/lib/typescript/src/components/customList/index.d.ts +11 -0
- package/lib/typescript/src/components/customList/index.d.ts.map +1 -0
- package/lib/typescript/src/components/customList/styles.d.ts +42 -0
- package/lib/typescript/src/components/customList/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/customList/types.d.ts +33 -0
- package/lib/typescript/src/components/customList/types.d.ts.map +1 -0
- package/lib/typescript/src/components/customModal/ModalFooter.d.ts +12 -0
- package/lib/typescript/src/components/customModal/ModalFooter.d.ts.map +1 -0
- package/lib/typescript/src/components/customModal/index.d.ts +6 -0
- package/lib/typescript/src/components/customModal/index.d.ts.map +1 -0
- package/lib/typescript/src/components/customModal/styles.d.ts +83 -0
- package/lib/typescript/src/components/customModal/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/customModal/types.d.ts +36 -0
- package/lib/typescript/src/components/customModal/types.d.ts.map +1 -0
- package/lib/typescript/src/components/customModal/useCustomModal.d.ts +8 -0
- package/lib/typescript/src/components/customModal/useCustomModal.d.ts.map +1 -0
- package/lib/typescript/src/components/customNumberPad/NumberPadKey.d.ts +23 -0
- package/lib/typescript/src/components/customNumberPad/NumberPadKey.d.ts.map +1 -0
- package/lib/typescript/src/components/customNumberPad/index.d.ts +7 -0
- package/lib/typescript/src/components/customNumberPad/index.d.ts.map +1 -0
- package/lib/typescript/src/components/customNumberPad/styles.d.ts +37 -0
- package/lib/typescript/src/components/customNumberPad/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/customNumberPad/types.d.ts +47 -0
- package/lib/typescript/src/components/customNumberPad/types.d.ts.map +1 -0
- package/lib/typescript/src/components/customNumberPad/useNumberPadInput.d.ts +16 -0
- package/lib/typescript/src/components/customNumberPad/useNumberPadInput.d.ts.map +1 -0
- package/lib/typescript/src/components/customNumberPad/utils.d.ts +4 -0
- package/lib/typescript/src/components/customNumberPad/utils.d.ts.map +1 -0
- package/lib/typescript/src/components/customSlideTabs/AnimatedTabIndicator.d.ts +16 -0
- package/lib/typescript/src/components/customSlideTabs/AnimatedTabIndicator.d.ts.map +1 -0
- package/lib/typescript/src/components/customSlideTabs/TabBarItem.d.ts +23 -0
- package/lib/typescript/src/components/customSlideTabs/TabBarItem.d.ts.map +1 -0
- package/lib/typescript/src/components/customSlideTabs/TabScene.d.ts +21 -0
- package/lib/typescript/src/components/customSlideTabs/TabScene.d.ts.map +1 -0
- package/lib/typescript/src/components/customSlideTabs/index.d.ts +5 -0
- package/lib/typescript/src/components/customSlideTabs/index.d.ts.map +1 -0
- package/lib/typescript/src/components/customSlideTabs/styles.d.ts +130 -0
- package/lib/typescript/src/components/customSlideTabs/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/customSlideTabs/tabBarScroll.d.ts +15 -0
- package/lib/typescript/src/components/customSlideTabs/tabBarScroll.d.ts.map +1 -0
- package/lib/typescript/src/components/customSlideTabs/types.d.ts +68 -0
- package/lib/typescript/src/components/customSlideTabs/types.d.ts.map +1 -0
- package/lib/typescript/src/components/loading/index.d.ts +7 -0
- package/lib/typescript/src/components/loading/index.d.ts.map +1 -0
- package/lib/typescript/src/customFunctions/array.d.ts +7 -0
- package/lib/typescript/src/customFunctions/array.d.ts.map +1 -0
- package/lib/typescript/src/customFunctions/async.d.ts +9 -0
- package/lib/typescript/src/customFunctions/async.d.ts.map +1 -0
- package/lib/typescript/src/customFunctions/date.d.ts +18 -0
- package/lib/typescript/src/customFunctions/date.d.ts.map +1 -0
- package/lib/typescript/src/customFunctions/general.d.ts +7 -0
- package/lib/typescript/src/customFunctions/general.d.ts.map +1 -0
- package/lib/typescript/src/customFunctions/id.d.ts +4 -0
- package/lib/typescript/src/customFunctions/id.d.ts.map +1 -0
- package/lib/typescript/src/customFunctions/index.d.ts +26 -0
- package/lib/typescript/src/customFunctions/index.d.ts.map +1 -0
- package/lib/typescript/src/customFunctions/number.d.ts +15 -0
- package/lib/typescript/src/customFunctions/number.d.ts.map +1 -0
- package/lib/typescript/src/customFunctions/object.d.ts +6 -0
- package/lib/typescript/src/customFunctions/object.d.ts.map +1 -0
- package/lib/typescript/src/customFunctions/string.d.ts +20 -0
- package/lib/typescript/src/customFunctions/string.d.ts.map +1 -0
- package/lib/typescript/src/customFunctions/types.d.ts +22 -0
- package/lib/typescript/src/customFunctions/types.d.ts.map +1 -0
- package/lib/typescript/src/customFunctions/validation.d.ts +11 -0
- package/lib/typescript/src/customFunctions/validation.d.ts.map +1 -0
- package/lib/typescript/src/customHooks/errors.d.ts +16 -0
- package/lib/typescript/src/customHooks/errors.d.ts.map +1 -0
- package/lib/typescript/src/customHooks/fetchJson.d.ts +5 -0
- package/lib/typescript/src/customHooks/fetchJson.d.ts.map +1 -0
- package/lib/typescript/src/customHooks/index.d.ts +9 -0
- package/lib/typescript/src/customHooks/index.d.ts.map +1 -0
- package/lib/typescript/src/customHooks/internal.d.ts +12 -0
- package/lib/typescript/src/customHooks/internal.d.ts.map +1 -0
- package/lib/typescript/src/customHooks/types.d.ts +49 -0
- package/lib/typescript/src/customHooks/types.d.ts.map +1 -0
- package/lib/typescript/src/customHooks/useApi.d.ts +13 -0
- package/lib/typescript/src/customHooks/useApi.d.ts.map +1 -0
- package/lib/typescript/src/customHooks/useLazyApi.d.ts +14 -0
- package/lib/typescript/src/customHooks/useLazyApi.d.ts.map +1 -0
- package/lib/typescript/src/customHooks/useMutation.d.ts +15 -0
- package/lib/typescript/src/customHooks/useMutation.d.ts.map +1 -0
- package/lib/typescript/src/customHooks/usePaginatedApi.d.ts +19 -0
- package/lib/typescript/src/customHooks/usePaginatedApi.d.ts.map +1 -0
- package/lib/typescript/src/customHooks/usePollingApi.d.ts +13 -0
- package/lib/typescript/src/customHooks/usePollingApi.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +11 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/multiply.d.ts +2 -0
- package/lib/typescript/src/multiply.d.ts.map +1 -0
- package/package.json +181 -0
- package/src/assets/images/close.png +0 -0
- package/src/components/CustomCheckbox/index.tsx +143 -0
- package/src/components/CustomCheckbox/styles.ts +146 -0
- package/src/components/CustomCheckbox/types.ts +33 -0
- package/src/components/closeButton/index.tsx +40 -0
- package/src/components/closeButton/types.ts +13 -0
- package/src/components/customButton/index.tsx +288 -0
- package/src/components/customButton/styles.ts +247 -0
- package/src/components/customButton/types.ts +71 -0
- package/src/components/customDropDown/DropDownBottomSheet.tsx +70 -0
- package/src/components/customDropDown/DropDownList.tsx +88 -0
- package/src/components/customDropDown/DropDownListItem.tsx +74 -0
- package/src/components/customDropDown/DropDownListModal.tsx +86 -0
- package/src/components/customDropDown/index.tsx +213 -0
- package/src/components/customDropDown/styles.ts +184 -0
- package/src/components/customDropDown/types.ts +48 -0
- package/src/components/customDropDown/utils.ts +24 -0
- package/src/components/customList/ListEmpty.tsx +36 -0
- package/src/components/customList/ListFooterLoader.tsx +11 -0
- package/src/components/customList/defaultKeyExtractor.ts +7 -0
- package/src/components/customList/getFlashList.ts +26 -0
- package/src/components/customList/index.tsx +142 -0
- package/src/components/customList/styles.ts +43 -0
- package/src/components/customList/types.ts +60 -0
- package/src/components/customModal/ModalFooter.tsx +57 -0
- package/src/components/customModal/index.tsx +166 -0
- package/src/components/customModal/styles.ts +131 -0
- package/src/components/customModal/types.ts +48 -0
- package/src/components/customModal/useCustomModal.ts +25 -0
- package/src/components/customNumberPad/NumberPadKey.tsx +81 -0
- package/src/components/customNumberPad/index.tsx +204 -0
- package/src/components/customNumberPad/styles.ts +146 -0
- package/src/components/customNumberPad/types.ts +53 -0
- package/src/components/customNumberPad/useNumberPadInput.ts +56 -0
- package/src/components/customNumberPad/utils.ts +54 -0
- package/src/components/customSlideTabs/AnimatedTabIndicator.tsx +103 -0
- package/src/components/customSlideTabs/TabBarItem.tsx +118 -0
- package/src/components/customSlideTabs/TabScene.tsx +136 -0
- package/src/components/customSlideTabs/index.tsx +385 -0
- package/src/components/customSlideTabs/styles.ts +136 -0
- package/src/components/customSlideTabs/tabBarScroll.ts +92 -0
- package/src/components/customSlideTabs/types.ts +87 -0
- package/src/components/loading/index.tsx +34 -0
- package/src/customFunctions/array.ts +83 -0
- package/src/customFunctions/async.ts +85 -0
- package/src/customFunctions/date.ts +158 -0
- package/src/customFunctions/general.ts +35 -0
- package/src/customFunctions/id.ts +25 -0
- package/src/customFunctions/index.ts +91 -0
- package/src/customFunctions/number.ts +139 -0
- package/src/customFunctions/object.ts +59 -0
- package/src/customFunctions/string.ts +119 -0
- package/src/customFunctions/types.ts +25 -0
- package/src/customFunctions/validation.ts +49 -0
- package/src/customHooks/errors.ts +87 -0
- package/src/customHooks/fetchJson.ts +49 -0
- package/src/customHooks/index.ts +20 -0
- package/src/customHooks/internal.ts +67 -0
- package/src/customHooks/types.ts +71 -0
- package/src/customHooks/useApi.ts +107 -0
- package/src/customHooks/useLazyApi.ts +92 -0
- package/src/customHooks/useMutation.ts +97 -0
- package/src/customHooks/usePaginatedApi.ts +168 -0
- package/src/customHooks/usePollingApi.ts +48 -0
- package/src/index.tsx +63 -0
- package/src/multiply.tsx +3 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type ListEmptyProps = {
|
|
3
|
+
loading?: boolean;
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
declare const ListEmpty: ({ loading, title, description, icon, }: ListEmptyProps) => import("react").JSX.Element;
|
|
9
|
+
export default ListEmpty;
|
|
10
|
+
//# sourceMappingURL=ListEmpty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListEmpty.d.ts","sourceRoot":"","sources":["../../../../../src/components/customList/ListEmpty.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,KAAK,cAAc,GAAG;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,QAAA,MAAM,SAAS,GAAI,wCAKhB,cAAc,gCAgBhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListFooterLoader.d.ts","sourceRoot":"","sources":["../../../../../src/components/customList/ListFooterLoader.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,gBAAgB,mCAIrB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultKeyExtractor.d.ts","sourceRoot":"","sources":["../../../../../src/components/customList/defaultKeyExtractor.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,GAAI,CAAC,EAAE,MAAM,CAAC,EAAE,OAAO,MAAM,WAM5D,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
type FlashListComponent = ComponentType<Record<string, unknown>>;
|
|
3
|
+
export declare const getFlashList: () => FlashListComponent | null;
|
|
4
|
+
export declare const isFlashListAvailable: () => boolean;
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=getFlashList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFlashList.d.ts","sourceRoot":"","sources":["../../../../../src/components/customList/getFlashList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,KAAK,kBAAkB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAIjE,eAAO,MAAM,YAAY,QAAO,kBAAkB,GAAG,IAiBpD,CAAC;AAEF,eAAO,MAAM,oBAAoB,eAAgC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
import { FlatList } from 'react-native';
|
|
3
|
+
import type { CustomListProps } from './types';
|
|
4
|
+
declare const CustomList: <T>(props: CustomListProps<T> & {
|
|
5
|
+
ref?: React.Ref<FlatList<T>>;
|
|
6
|
+
}) => ReactElement;
|
|
7
|
+
export default CustomList;
|
|
8
|
+
export { defaultKeyExtractor } from './defaultKeyExtractor';
|
|
9
|
+
export { getFlashList, isFlashListAvailable } from './getFlashList';
|
|
10
|
+
export type { CustomListProps, ListEngine } from './types';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/customList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAA4B,MAAM,cAAc,CAAC;AAOlE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AA8H/C,QAAA,MAAM,UAAU,EAAkC,CAAC,CAAC,EAClD,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAA;CAAE,KACzD,YAAY,CAAC;AAElB,eAAe,UAAU,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACpE,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare const listStyles: Readonly<{
|
|
2
|
+
list: {
|
|
3
|
+
flex: number;
|
|
4
|
+
};
|
|
5
|
+
separator: {
|
|
6
|
+
height: number;
|
|
7
|
+
backgroundColor: string;
|
|
8
|
+
marginHorizontal: number;
|
|
9
|
+
};
|
|
10
|
+
emptyContainer: {
|
|
11
|
+
flexGrow: number;
|
|
12
|
+
alignItems: "center";
|
|
13
|
+
justifyContent: "center";
|
|
14
|
+
paddingHorizontal: number;
|
|
15
|
+
paddingVertical: number;
|
|
16
|
+
gap: number;
|
|
17
|
+
};
|
|
18
|
+
emptyTitle: {
|
|
19
|
+
fontSize: number;
|
|
20
|
+
fontWeight: "600";
|
|
21
|
+
color: string;
|
|
22
|
+
textAlign: "center";
|
|
23
|
+
};
|
|
24
|
+
emptyDescription: {
|
|
25
|
+
fontSize: number;
|
|
26
|
+
lineHeight: number;
|
|
27
|
+
color: string;
|
|
28
|
+
textAlign: "center";
|
|
29
|
+
};
|
|
30
|
+
footerLoader: {
|
|
31
|
+
paddingVertical: number;
|
|
32
|
+
alignItems: "center";
|
|
33
|
+
justifyContent: "center";
|
|
34
|
+
};
|
|
35
|
+
initialLoader: {
|
|
36
|
+
flex: number;
|
|
37
|
+
alignItems: "center";
|
|
38
|
+
justifyContent: "center";
|
|
39
|
+
paddingVertical: number;
|
|
40
|
+
};
|
|
41
|
+
}>;
|
|
42
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/customList/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwCrB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ReactNode, Ref } from 'react';
|
|
2
|
+
import type { FlatList, FlatListProps, ListRenderItem, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
export type ListEngine = 'flatList' | 'flashList';
|
|
4
|
+
export type CustomListProps<T> = {
|
|
5
|
+
data: T[];
|
|
6
|
+
renderItem: ListRenderItem<T>;
|
|
7
|
+
engine?: ListEngine;
|
|
8
|
+
keyExtractor?: (item: T, index: number) => string;
|
|
9
|
+
horizontal?: boolean;
|
|
10
|
+
numColumns?: number;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
loadingMore?: boolean;
|
|
13
|
+
refreshing?: boolean;
|
|
14
|
+
onRefresh?: () => void;
|
|
15
|
+
onEndReached?: () => void;
|
|
16
|
+
onEndReachedThreshold?: number;
|
|
17
|
+
estimatedItemSize?: number;
|
|
18
|
+
emptyTitle?: string;
|
|
19
|
+
emptyDescription?: string;
|
|
20
|
+
emptyIcon?: ReactNode;
|
|
21
|
+
showSeparator?: boolean;
|
|
22
|
+
separatorStyle?: StyleProp<ViewStyle>;
|
|
23
|
+
ListHeaderComponent?: FlatListProps<T>['ListHeaderComponent'];
|
|
24
|
+
ListFooterComponent?: FlatListProps<T>['ListFooterComponent'];
|
|
25
|
+
ListEmptyComponent?: FlatListProps<T>['ListEmptyComponent'];
|
|
26
|
+
ItemSeparatorComponent?: FlatListProps<T>['ItemSeparatorComponent'];
|
|
27
|
+
contentContainerStyle?: StyleProp<ViewStyle>;
|
|
28
|
+
style?: StyleProp<ViewStyle>;
|
|
29
|
+
showsVerticalScrollIndicator?: boolean;
|
|
30
|
+
showsHorizontalScrollIndicator?: boolean;
|
|
31
|
+
} & Omit<FlatListProps<T>, 'data' | 'renderItem' | 'keyExtractor' | 'horizontal' | 'numColumns' | 'refreshing' | 'onRefresh' | 'onEndReached' | 'onEndReachedThreshold' | 'ListHeaderComponent' | 'ListFooterComponent' | 'ListEmptyComponent' | 'ItemSeparatorComponent' | 'contentContainerStyle' | 'style' | 'showsVerticalScrollIndicator' | 'showsHorizontalScrollIndicator'>;
|
|
32
|
+
export type CustomListRef<T> = Ref<FlatList<T>>;
|
|
33
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/customList/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EACV,QAAQ,EACR,aAAa,EACb,cAAc,EACd,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,WAAW,CAAC;AAElD,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI;IAC/B,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;IAC9B,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAClD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,mBAAmB,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC;IAC9D,mBAAmB,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC;IAC9D,kBAAkB,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC;IAC5D,sBAAsB,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC;IACpE,qBAAqB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7C,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,8BAA8B,CAAC,EAAE,OAAO,CAAC;CAC1C,GAAG,IAAI,CACN,aAAa,CAAC,CAAC,CAAC,EACd,MAAM,GACN,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,cAAc,GACd,uBAAuB,GACvB,qBAAqB,GACrB,qBAAqB,GACrB,oBAAoB,GACpB,wBAAwB,GACxB,uBAAuB,GACvB,OAAO,GACP,8BAA8B,GAC9B,gCAAgC,CACnC,CAAC;AAEF,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import type { ModalAction } from './types';
|
|
4
|
+
type ModalFooterProps = {
|
|
5
|
+
footer?: ReactNode;
|
|
6
|
+
primaryAction?: ModalAction;
|
|
7
|
+
secondaryAction?: ModalAction;
|
|
8
|
+
footerStyle?: StyleProp<ViewStyle>;
|
|
9
|
+
};
|
|
10
|
+
declare const ModalFooter: ({ footer, primaryAction, secondaryAction, footerStyle, }: ModalFooterProps) => import("react").JSX.Element | null;
|
|
11
|
+
export default ModalFooter;
|
|
12
|
+
//# sourceMappingURL=ModalFooter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalFooter.d.ts","sourceRoot":"","sources":["../../../../../src/components/customModal/ModalFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAIpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,KAAK,gBAAgB,GAAG;IACtB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,aAAa,CAAC,EAAE,WAAW,CAAC;IAC5B,eAAe,CAAC,EAAE,WAAW,CAAC;IAC9B,WAAW,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACpC,CAAC;AAEF,QAAA,MAAM,WAAW,GAAI,0DAKlB,gBAAgB,uCAmClB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CustomModalProps } from './types';
|
|
2
|
+
declare const CustomModal: ({ visible, onClose, title, description, children, presentation, showCloseButton, closeOnBackdropPress, animationType, scrollable, containerStyle, backdropStyle, contentStyle, headerStyle, titleStyle, descriptionStyle, bodyStyle, footerStyle, footer, primaryAction, secondaryAction, closeImage, supportedOrientations, statusBarTranslucent, testID, }: CustomModalProps) => import("react").JSX.Element;
|
|
3
|
+
export default CustomModal;
|
|
4
|
+
export { useCustomModal } from './useCustomModal';
|
|
5
|
+
export type { CustomModalProps, ModalAction, ModalPresentation } from './types';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/customModal/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,QAAA,MAAM,WAAW,GAAI,8VA0BlB,gBAAgB,gCA+HlB,CAAC;AAEF,eAAe,WAAW,CAAC;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { type ViewStyle } from 'react-native';
|
|
2
|
+
import type { ModalPresentation } from './types';
|
|
3
|
+
export declare const presentationStyles: Record<ModalPresentation, {
|
|
4
|
+
backdrop: ViewStyle;
|
|
5
|
+
content: ViewStyle;
|
|
6
|
+
animationType: 'none' | 'slide' | 'fade';
|
|
7
|
+
}>;
|
|
8
|
+
export declare const styles: Readonly<{
|
|
9
|
+
backdropDismiss: {
|
|
10
|
+
position: "absolute";
|
|
11
|
+
left: 0;
|
|
12
|
+
right: 0;
|
|
13
|
+
top: 0;
|
|
14
|
+
bottom: 0;
|
|
15
|
+
};
|
|
16
|
+
contentInner: {
|
|
17
|
+
paddingHorizontal: number;
|
|
18
|
+
paddingTop: number;
|
|
19
|
+
paddingBottom: number;
|
|
20
|
+
};
|
|
21
|
+
bottomContentInner: {
|
|
22
|
+
paddingHorizontal: number;
|
|
23
|
+
paddingTop: number;
|
|
24
|
+
paddingBottom: number;
|
|
25
|
+
};
|
|
26
|
+
fullscreenContentInner: {
|
|
27
|
+
flex: number;
|
|
28
|
+
paddingHorizontal: number;
|
|
29
|
+
paddingTop: number;
|
|
30
|
+
paddingBottom: number;
|
|
31
|
+
};
|
|
32
|
+
handle: {
|
|
33
|
+
alignSelf: "center";
|
|
34
|
+
width: number;
|
|
35
|
+
height: number;
|
|
36
|
+
borderRadius: number;
|
|
37
|
+
backgroundColor: string;
|
|
38
|
+
marginTop: number;
|
|
39
|
+
marginBottom: number;
|
|
40
|
+
};
|
|
41
|
+
header: {
|
|
42
|
+
flexDirection: "row";
|
|
43
|
+
alignItems: "flex-start";
|
|
44
|
+
justifyContent: "space-between";
|
|
45
|
+
gap: number;
|
|
46
|
+
marginBottom: number;
|
|
47
|
+
};
|
|
48
|
+
headerText: {
|
|
49
|
+
flex: number;
|
|
50
|
+
gap: number;
|
|
51
|
+
};
|
|
52
|
+
title: {
|
|
53
|
+
fontSize: number;
|
|
54
|
+
fontWeight: "700";
|
|
55
|
+
color: string;
|
|
56
|
+
};
|
|
57
|
+
description: {
|
|
58
|
+
fontSize: number;
|
|
59
|
+
color: string;
|
|
60
|
+
lineHeight: number;
|
|
61
|
+
};
|
|
62
|
+
closeButton: {
|
|
63
|
+
position: "relative";
|
|
64
|
+
top: number;
|
|
65
|
+
right: number;
|
|
66
|
+
};
|
|
67
|
+
body: {
|
|
68
|
+
flexGrow: number;
|
|
69
|
+
};
|
|
70
|
+
scrollBody: {
|
|
71
|
+
maxHeight: number;
|
|
72
|
+
};
|
|
73
|
+
footer: {
|
|
74
|
+
flexDirection: "row";
|
|
75
|
+
gap: number;
|
|
76
|
+
marginTop: number;
|
|
77
|
+
};
|
|
78
|
+
footerButton: {
|
|
79
|
+
flex: number;
|
|
80
|
+
alignSelf: "auto";
|
|
81
|
+
};
|
|
82
|
+
}>;
|
|
83
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/customModal/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,eAAO,MAAM,kBAAkB,EAAE,MAAM,CACrC,iBAAiB,EACjB;IACE,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,SAAS,CAAC;IACnB,aAAa,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;CAC1C,CAgDF,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsEjB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ImageSourcePropType, ModalProps, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
+
import type { ButtonVariant } from '../customButton/types';
|
|
4
|
+
export type ModalPresentation = 'center' | 'bottom' | 'fullscreen';
|
|
5
|
+
export type ModalAction = {
|
|
6
|
+
label: string;
|
|
7
|
+
onPress: () => void;
|
|
8
|
+
variant?: ButtonVariant;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export type CustomModalProps = Pick<ModalProps, 'supportedOrientations' | 'statusBarTranslucent' | 'testID'> & {
|
|
13
|
+
visible: boolean;
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
title?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
presentation?: ModalPresentation;
|
|
19
|
+
showCloseButton?: boolean;
|
|
20
|
+
closeOnBackdropPress?: boolean;
|
|
21
|
+
animationType?: ModalProps['animationType'];
|
|
22
|
+
scrollable?: boolean;
|
|
23
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
24
|
+
backdropStyle?: StyleProp<ViewStyle>;
|
|
25
|
+
contentStyle?: StyleProp<ViewStyle>;
|
|
26
|
+
headerStyle?: StyleProp<ViewStyle>;
|
|
27
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
28
|
+
descriptionStyle?: StyleProp<TextStyle>;
|
|
29
|
+
bodyStyle?: StyleProp<ViewStyle>;
|
|
30
|
+
footerStyle?: StyleProp<ViewStyle>;
|
|
31
|
+
footer?: ReactNode;
|
|
32
|
+
primaryAction?: ModalAction;
|
|
33
|
+
secondaryAction?: ModalAction;
|
|
34
|
+
closeImage?: ImageSourcePropType;
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/customModal/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EACV,mBAAmB,EACnB,UAAU,EACV,SAAS,EACT,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,GAAG,YAAY,CAAC;AAEnE,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,UAAU,EACV,uBAAuB,GAAG,sBAAsB,GAAG,QAAQ,CAC5D,GAAG;IACF,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,aAAa,CAAC,EAAE,UAAU,CAAC,eAAe,CAAC,CAAC;IAC5C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,aAAa,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACrC,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACpC,WAAW,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACnC,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,gBAAgB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACxC,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACjC,WAAW,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACnC,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,aAAa,CAAC,EAAE,WAAW,CAAC;IAC5B,eAAe,CAAC,EAAE,WAAW,CAAC;IAC9B,UAAU,CAAC,EAAE,mBAAmB,CAAC;CAClC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const useCustomModal: (initialVisible?: boolean) => {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
setVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
4
|
+
open: () => void;
|
|
5
|
+
close: () => void;
|
|
6
|
+
toggle: () => void;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=useCustomModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCustomModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/customModal/useCustomModal.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,GAAI,wBAAsB;;;;;;CAsBpD,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type StyleProp, type TextStyle, type ViewStyle } from 'react-native';
|
|
2
|
+
import type { NumberPadKeyConfig } from './types';
|
|
3
|
+
type NumberPadKeyProps = {
|
|
4
|
+
config: NumberPadKeyConfig;
|
|
5
|
+
onPress: () => void;
|
|
6
|
+
keyStyle?: StyleProp<ViewStyle>;
|
|
7
|
+
keyTextStyle?: StyleProp<TextStyle>;
|
|
8
|
+
theme: {
|
|
9
|
+
key: ViewStyle;
|
|
10
|
+
keyPressed: ViewStyle;
|
|
11
|
+
keyText: TextStyle;
|
|
12
|
+
keyTextMuted: TextStyle;
|
|
13
|
+
keyDisabled: ViewStyle;
|
|
14
|
+
};
|
|
15
|
+
sizeStyle: {
|
|
16
|
+
key: ViewStyle;
|
|
17
|
+
keyText: TextStyle;
|
|
18
|
+
};
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
};
|
|
21
|
+
declare const NumberPadKey: ({ config, onPress, keyStyle, keyTextStyle, theme, sizeStyle, disabled, }: NumberPadKeyProps) => import("react").JSX.Element;
|
|
22
|
+
export default NumberPadKey;
|
|
23
|
+
//# sourceMappingURL=NumberPadKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberPadKey.d.ts","sourceRoot":"","sources":["../../../../../src/components/customNumberPad/NumberPadKey.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAChC,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACpC,KAAK,EAAE;QACL,GAAG,EAAE,SAAS,CAAC;QACf,UAAU,EAAE,SAAS,CAAC;QACtB,OAAO,EAAE,SAAS,CAAC;QACnB,YAAY,EAAE,SAAS,CAAC;QACxB,WAAW,EAAE,SAAS,CAAC;KACxB,CAAC;IACF,SAAS,EAAE;QACT,GAAG,EAAE,SAAS,CAAC;QACf,OAAO,EAAE,SAAS,CAAC;KACpB,CAAC;IACF,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,YAAY,GAAI,0EAQnB,iBAAiB,gCAuCnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CustomNumberPadProps } from './types';
|
|
2
|
+
declare const CustomNumberPad: ({ onKeyPress, onBackspace, value, onChange, maxLength, allowDecimal, decimalPlaces, variant, size, disabled, containerStyle, rowStyle, keyStyle, keyTextStyle, backspaceLabel, bottomLeftKey, renderKey, }: CustomNumberPadProps) => import("react").JSX.Element;
|
|
3
|
+
export default CustomNumberPad;
|
|
4
|
+
export { applyNumberPadKey, NUMBER_PAD_ROWS } from './utils';
|
|
5
|
+
export { useNumberPadInput } from './useNumberPadInput';
|
|
6
|
+
export type { CustomNumberPadProps, NumberPadBottomLeftKey, NumberPadKeyConfig, NumberPadKeyType, NumberPadSize, NumberPadVariant, UseNumberPadInputOptions, } from './types';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/customNumberPad/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAsB,MAAM,SAAS,CAAC;AAGxE,QAAA,MAAM,eAAe,GAAI,4MAkBtB,oBAAoB,gCAoKtB,CAAC;AAEF,eAAe,eAAe,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EACV,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type TextStyle, type ViewStyle } from 'react-native';
|
|
2
|
+
import type { NumberPadSize, NumberPadVariant } from './types';
|
|
3
|
+
export declare const sizeStyles: Record<NumberPadSize, {
|
|
4
|
+
key: ViewStyle;
|
|
5
|
+
keyText: TextStyle;
|
|
6
|
+
gap: number;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const variantTheme: Record<NumberPadVariant, {
|
|
9
|
+
container: ViewStyle;
|
|
10
|
+
key: ViewStyle;
|
|
11
|
+
keyPressed: ViewStyle;
|
|
12
|
+
keyText: TextStyle;
|
|
13
|
+
keyTextMuted: TextStyle;
|
|
14
|
+
keyDisabled: ViewStyle;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const styles: Readonly<{
|
|
17
|
+
container: {
|
|
18
|
+
padding: number;
|
|
19
|
+
borderRadius: number;
|
|
20
|
+
};
|
|
21
|
+
row: {
|
|
22
|
+
flexDirection: "row";
|
|
23
|
+
alignItems: "stretch";
|
|
24
|
+
};
|
|
25
|
+
key: {
|
|
26
|
+
flex: number;
|
|
27
|
+
alignItems: "center";
|
|
28
|
+
justifyContent: "center";
|
|
29
|
+
};
|
|
30
|
+
keyText: {
|
|
31
|
+
textAlign: "center";
|
|
32
|
+
};
|
|
33
|
+
spacer: {
|
|
34
|
+
flex: number;
|
|
35
|
+
};
|
|
36
|
+
}>;
|
|
37
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/customNumberPad/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1E,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE/D,eAAO,MAAM,UAAU,EAAE,MAAM,CAC7B,aAAa,EACb;IAAE,GAAG,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,SAAS,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAgCpD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,MAAM,CAC/B,gBAAgB,EAChB;IACE,SAAS,EAAE,SAAS,CAAC;IACrB,GAAG,EAAE,SAAS,CAAC;IACf,UAAU,EAAE,SAAS,CAAC;IACtB,OAAO,EAAE,SAAS,CAAC;IACnB,YAAY,EAAE,SAAS,CAAC;IACxB,WAAW,EAAE,SAAS,CAAC;CACxB,CA0EF,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;EAoBjB,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
+
export type NumberPadVariant = 'default' | 'primary' | 'dark';
|
|
4
|
+
export type NumberPadSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
export type NumberPadKeyType = 'digit' | 'decimal' | 'backspace' | 'custom';
|
|
6
|
+
export type NumberPadKeyConfig = {
|
|
7
|
+
id: string;
|
|
8
|
+
label: ReactNode;
|
|
9
|
+
value?: string;
|
|
10
|
+
type: NumberPadKeyType;
|
|
11
|
+
flex?: number;
|
|
12
|
+
onPress?: () => void;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
accessibilityLabel?: string;
|
|
15
|
+
};
|
|
16
|
+
export type NumberPadBottomLeftKey = {
|
|
17
|
+
label: ReactNode;
|
|
18
|
+
onPress: () => void;
|
|
19
|
+
accessibilityLabel?: string;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
};
|
|
22
|
+
export type CustomNumberPadProps = {
|
|
23
|
+
onKeyPress?: (key: string) => void;
|
|
24
|
+
onBackspace?: () => void;
|
|
25
|
+
value?: string;
|
|
26
|
+
onChange?: (value: string) => void;
|
|
27
|
+
maxLength?: number;
|
|
28
|
+
allowDecimal?: boolean;
|
|
29
|
+
decimalPlaces?: number;
|
|
30
|
+
variant?: NumberPadVariant;
|
|
31
|
+
size?: NumberPadSize;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
34
|
+
rowStyle?: StyleProp<ViewStyle>;
|
|
35
|
+
keyStyle?: StyleProp<ViewStyle>;
|
|
36
|
+
keyTextStyle?: StyleProp<TextStyle>;
|
|
37
|
+
backspaceLabel?: ReactNode;
|
|
38
|
+
bottomLeftKey?: NumberPadBottomLeftKey;
|
|
39
|
+
renderKey?: (key: NumberPadKeyConfig, onPress: () => void) => ReactNode;
|
|
40
|
+
};
|
|
41
|
+
export type UseNumberPadInputOptions = {
|
|
42
|
+
initialValue?: string;
|
|
43
|
+
maxLength?: number;
|
|
44
|
+
allowDecimal?: boolean;
|
|
45
|
+
decimalPlaces?: number;
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/customNumberPad/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;AAE9D,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE/C,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;AAE5E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,gBAAgB,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAChC,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACpC,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC;CACzE,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { UseNumberPadInputOptions } from './types';
|
|
2
|
+
export declare const useNumberPadInput: ({ initialValue, maxLength, allowDecimal, decimalPlaces, }?: UseNumberPadInputOptions) => {
|
|
3
|
+
value: string;
|
|
4
|
+
setValue: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
5
|
+
clear: () => void;
|
|
6
|
+
handleChange: (nextValue: string) => void;
|
|
7
|
+
handleKeyPress: (key: string) => void;
|
|
8
|
+
numberPadProps: {
|
|
9
|
+
value: string;
|
|
10
|
+
onChange: (nextValue: string) => void;
|
|
11
|
+
maxLength: number | undefined;
|
|
12
|
+
allowDecimal: boolean;
|
|
13
|
+
decimalPlaces: number | undefined;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=useNumberPadInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNumberPadInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/customNumberPad/useNumberPadInput.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAExD,eAAO,MAAM,iBAAiB,GAAI,4DAK/B,wBAA6B;;;;8BAGe,MAAM;0BAK3C,MAAM;;;8BAL+B,MAAM;;;;;CA0CpD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { UseNumberPadInputOptions } from './types';
|
|
2
|
+
export declare const NUMBER_PAD_ROWS: readonly [readonly ["1", "2", "3"], readonly ["4", "5", "6"], readonly ["7", "8", "9"]];
|
|
3
|
+
export declare const applyNumberPadKey: (value: string, key: string, options?: Pick<UseNumberPadInputOptions, "maxLength" | "allowDecimal" | "decimalPlaces">) => string | null;
|
|
4
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/customNumberPad/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAExD,eAAO,MAAM,eAAe,yFAIlB,CAAC;AAEX,eAAO,MAAM,iBAAiB,GAC5B,OAAO,MAAM,EACb,KAAK,MAAM,EACX,UAAS,IAAI,CACX,wBAAwB,EACxB,WAAW,GAAG,cAAc,GAAG,eAAe,CAC1C,KACL,MAAM,GAAG,IAsCX,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Animated, type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
+
import { type TabLayoutMetric } from './tabBarScroll';
|
|
3
|
+
type AnimatedTabIndicatorProps = {
|
|
4
|
+
metrics: TabLayoutMetric[];
|
|
5
|
+
pagerScrollX: Animated.Value;
|
|
6
|
+
tabBarScrollX: Animated.Value;
|
|
7
|
+
pageWidth: number;
|
|
8
|
+
initialScrollX?: number;
|
|
9
|
+
showPill?: boolean;
|
|
10
|
+
showUnderline?: boolean;
|
|
11
|
+
pillStyle?: StyleProp<ViewStyle>;
|
|
12
|
+
underlineStyle?: StyleProp<ViewStyle>;
|
|
13
|
+
};
|
|
14
|
+
declare const AnimatedTabIndicator: ({ metrics, pagerScrollX, tabBarScrollX, pageWidth, initialScrollX, showPill, showUnderline, pillStyle, underlineStyle, }: AnimatedTabIndicatorProps) => import("react").JSX.Element | null;
|
|
15
|
+
export default AnimatedTabIndicator;
|
|
16
|
+
//# sourceMappingURL=AnimatedTabIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnimatedTabIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/components/customSlideTabs/AnimatedTabIndicator.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGxE,OAAO,EAA0B,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE9E,KAAK,yBAAyB,GAAG;IAC/B,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC;IAC7B,aAAa,EAAE,QAAQ,CAAC,KAAK,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACjC,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACvC,CAAC;AAEF,QAAA,MAAM,oBAAoB,GAAI,0HAU3B,yBAAyB,uCAwE3B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type ImageStyle, type StyleProp, type TextStyle, type ViewStyle } from 'react-native';
|
|
3
|
+
import type { SlideTabItem } from './types';
|
|
4
|
+
type TabBarItemProps = {
|
|
5
|
+
item: SlideTabItem;
|
|
6
|
+
index: number;
|
|
7
|
+
isActive: boolean;
|
|
8
|
+
showUnderline?: boolean;
|
|
9
|
+
useAnimatedIndicator?: boolean;
|
|
10
|
+
onPress: (index: number) => void;
|
|
11
|
+
onMeasure?: (index: number, width: number) => void;
|
|
12
|
+
renderTab?: (tab: SlideTabItem, index: number, isActive: boolean) => ReactNode;
|
|
13
|
+
tabStyle?: StyleProp<ViewStyle>;
|
|
14
|
+
activeTabStyle?: StyleProp<ViewStyle>;
|
|
15
|
+
tabTextStyle?: StyleProp<TextStyle>;
|
|
16
|
+
activeTabTextStyle?: StyleProp<TextStyle>;
|
|
17
|
+
tabImageStyle?: StyleProp<ImageStyle>;
|
|
18
|
+
activeTabImageStyle?: StyleProp<ImageStyle>;
|
|
19
|
+
underlineStyle?: StyleProp<ViewStyle>;
|
|
20
|
+
};
|
|
21
|
+
declare const TabBarItem: ({ item, index, isActive, showUnderline, useAnimatedIndicator, onPress, onMeasure, renderTab, tabStyle, activeTabStyle, tabTextStyle, activeTabTextStyle, tabImageStyle, activeTabImageStyle, underlineStyle, }: TabBarItemProps) => import("react").JSX.Element;
|
|
22
|
+
export default TabBarItem;
|
|
23
|
+
//# sourceMappingURL=TabBarItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TabBarItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/customSlideTabs/TabBarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAKL,KAAK,UAAU,EAEf,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,SAAS,CAAC,EAAE,CACV,GAAG,EAAE,YAAY,EACjB,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,OAAO,KACd,SAAS,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAChC,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACpC,kBAAkB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC1C,aAAa,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACtC,mBAAmB,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAC5C,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACvC,CAAC;AAEF,QAAA,MAAM,UAAU,GAAI,gNAgBjB,eAAe,gCA6DjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { CustomSlideTabsProps, SlideTabItem } from './types';
|
|
2
|
+
type TabSceneProps<TData, TError> = {
|
|
3
|
+
tab: SlideTabItem;
|
|
4
|
+
index: number;
|
|
5
|
+
isActive: boolean;
|
|
6
|
+
shouldMount: boolean;
|
|
7
|
+
fetchSceneData?: CustomSlideTabsProps<TData, TError>['fetchSceneData'];
|
|
8
|
+
fetchWhenActive: boolean;
|
|
9
|
+
refetchOnRevisit: boolean;
|
|
10
|
+
keepPreviousSceneData: boolean;
|
|
11
|
+
renderScene: CustomSlideTabsProps<TData, TError>['renderScene'];
|
|
12
|
+
renderSceneHeader?: CustomSlideTabsProps<TData, TError>['renderSceneHeader'];
|
|
13
|
+
showSceneHeading?: boolean;
|
|
14
|
+
sceneStyle?: CustomSlideTabsProps<TData, TError>['sceneStyle'];
|
|
15
|
+
sceneHeaderStyle?: CustomSlideTabsProps<TData, TError>['sceneHeaderStyle'];
|
|
16
|
+
sceneHeadingStyle?: CustomSlideTabsProps<TData, TError>['sceneHeadingStyle'];
|
|
17
|
+
sceneSubtitleStyle?: CustomSlideTabsProps<TData, TError>['sceneSubtitleStyle'];
|
|
18
|
+
};
|
|
19
|
+
declare const TabScene: <TData, TError = unknown>({ tab, index, isActive, shouldMount, fetchSceneData, fetchWhenActive, refetchOnRevisit, keepPreviousSceneData, renderScene, renderSceneHeader, showSceneHeading, sceneStyle, sceneHeaderStyle, sceneHeadingStyle, sceneSubtitleStyle, }: TabSceneProps<TData, TError>) => import("react").JSX.Element;
|
|
20
|
+
export default TabScene;
|
|
21
|
+
//# sourceMappingURL=TabScene.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TabScene.d.ts","sourceRoot":"","sources":["../../../../../src/components/customSlideTabs/TabScene.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,oBAAoB,EACpB,YAAY,EAEb,MAAM,SAAS,CAAC;AAEjB,KAAK,aAAa,CAAC,KAAK,EAAE,MAAM,IAAI;IAClC,GAAG,EAAE,YAAY,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,gBAAgB,CAAC,CAAC;IACvE,eAAe,EAAE,OAAO,CAAC;IACzB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,WAAW,EAAE,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC;IAChE,iBAAiB,CAAC,EAAE,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,mBAAmB,CAAC,CAAC;IAC7E,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,UAAU,CAAC,EAAE,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,YAAY,CAAC,CAAC;IAC/D,gBAAgB,CAAC,EAAE,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,kBAAkB,CAAC,CAAC;IAC3E,iBAAiB,CAAC,EAAE,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,mBAAmB,CAAC,CAAC;IAC7E,kBAAkB,CAAC,EAAE,oBAAoB,CACvC,KAAK,EACL,MAAM,CACP,CAAC,oBAAoB,CAAC,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,QAAQ,GAAI,KAAK,EAAE,MAAM,GAAG,OAAO,EAAE,yOAgBxC,aAAa,CAAC,KAAK,EAAE,MAAM,CAAC,gCAqF9B,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CustomSlideTabsProps } from './types';
|
|
2
|
+
declare const CustomSlideTabs: <TData = unknown, TError = unknown>({ tabs, renderScene, fetchSceneData, initialIndex, lazy, fetchWhenActive, refetchOnRevisit, keepPreviousSceneData, onTabChange, renderTab, renderSceneHeader, showSceneHeading, animatedIndicator, showUnderline, tabBarStyle, tabStyle, activeTabStyle, tabTextStyle, activeTabTextStyle, tabImageStyle, activeTabImageStyle, underlineStyle, indicatorPillStyle, sceneHeadingStyle, sceneSubtitleStyle, sceneHeaderStyle, sceneContainerStyle, sceneStyle, pageWidth, }: CustomSlideTabsProps<TData, TError>) => import("react").JSX.Element;
|
|
3
|
+
export default CustomSlideTabs;
|
|
4
|
+
export type { CustomSlideTabsProps, SlideTabItem, SlideTabSceneState, SlideTabFetcher, SlideTabIconComponent, } from './types';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/customSlideTabs/index.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,oBAAoB,EAAgB,MAAM,SAAS,CAAC;AAElE,QAAA,MAAM,eAAe,GAAI,KAAK,GAAG,OAAO,EAAE,MAAM,GAAG,OAAO,EAAE,2cA8BzD,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,gCAiUrC,CAAC;AAEF,eAAe,eAAe,CAAC;AAC/B,YAAY,EACV,oBAAoB,EACpB,YAAY,EACZ,kBAAkB,EAClB,eAAe,EACf,qBAAqB,GACtB,MAAM,SAAS,CAAC"}
|