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 @@
|
|
|
1
|
+
{"version":3,"names":["useMemo","useState","Image","StyleSheet","Text","TouchableOpacity","View","DropDownBottomSheet","DropDownList","DropDownListModal","dropdownStyles","findSelectedOption","normalizeListItems","jsx","_jsx","jsxs","_jsxs","CustomDropDown","mode","label","selectedText","listItems","onSelect","isSelected","disabled","placeholder","maxListHeight","itemImageAlign","itemImageGap","toggleImageAlign","itemImageStyle","toggleImageStyle","styleDropdown","labelTextStyle","dropdownTextStyles","listStyle","itemTextStyle","closeImage","isOpen","setIsOpen","normalizedItems","selectedOption","displayText","hasSelection","Boolean","isOverlayOpen","resolvedToggleImageAlign","rotation","textStyle","selectedTextActive","close","toggle","current","handleSelect","item","index","listContainerStyle","anchoredList","inlineList","listProps","data","maxHeight","renderToggleImage","image","resizeMode","source","style","toggleImage","renderToggleLabel","numberOfLines","children","container","toggleWrapperOpen","labelText","toggleWrapper","activeOpacity","dropDown","dropDownDisabled","styles","toggleOpen","onPress","accessibilityRole","accessibilityState","expanded","itemRow","flex","gap","itemRowImageRight","arrow","transform","rotate","containerStyle","visible","title","undefined","onClose","create","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,KAAM;MACf5B,QAAQ,EAAE+B;IAAa,CACxB,CACF;EAAA,CACG,CAAC;AAEX,CAAC;AAED,eAAepC,cAAc;AAS7B,MAAM6D,MAAM,GAAG3E,UAAU,CAAC6F,MAAM,CAAC;EAC/BjB,UAAU,EAAE;IACVkB,WAAW,EAAE;EACf;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet } from 'react-native';
|
|
4
|
+
export const dropdownStyles = StyleSheet.create({
|
|
5
|
+
container: {
|
|
6
|
+
justifyContent: 'center',
|
|
7
|
+
width: '100%',
|
|
8
|
+
marginBottom: 15
|
|
9
|
+
},
|
|
10
|
+
labelText: {
|
|
11
|
+
marginBottom: 10,
|
|
12
|
+
fontSize: 14,
|
|
13
|
+
fontWeight: '600',
|
|
14
|
+
color: '#212529'
|
|
15
|
+
},
|
|
16
|
+
toggleWrapper: {
|
|
17
|
+
position: 'relative',
|
|
18
|
+
zIndex: 1
|
|
19
|
+
},
|
|
20
|
+
toggleWrapperOpen: {
|
|
21
|
+
zIndex: 20
|
|
22
|
+
},
|
|
23
|
+
dropDown: {
|
|
24
|
+
flexDirection: 'row',
|
|
25
|
+
borderWidth: 1,
|
|
26
|
+
borderColor: '#e0e0e0',
|
|
27
|
+
borderRadius: 8,
|
|
28
|
+
justifyContent: 'space-between',
|
|
29
|
+
alignItems: 'center',
|
|
30
|
+
paddingVertical: 15,
|
|
31
|
+
paddingHorizontal: 15,
|
|
32
|
+
backgroundColor: '#fff'
|
|
33
|
+
},
|
|
34
|
+
dropDownDisabled: {
|
|
35
|
+
backgroundColor: '#f8f9fa',
|
|
36
|
+
opacity: 0.7
|
|
37
|
+
},
|
|
38
|
+
selectedText: {
|
|
39
|
+
flex: 1,
|
|
40
|
+
fontSize: 14,
|
|
41
|
+
fontWeight: '700',
|
|
42
|
+
color: '#6c757d'
|
|
43
|
+
},
|
|
44
|
+
selectedTextActive: {
|
|
45
|
+
color: '#000'
|
|
46
|
+
},
|
|
47
|
+
arrow: {
|
|
48
|
+
fontSize: 12,
|
|
49
|
+
color: '#495057',
|
|
50
|
+
marginLeft: 8
|
|
51
|
+
},
|
|
52
|
+
list: {
|
|
53
|
+
borderWidth: 1,
|
|
54
|
+
borderColor: '#e0e0e0',
|
|
55
|
+
borderRadius: 8,
|
|
56
|
+
backgroundColor: '#fff',
|
|
57
|
+
overflow: 'hidden'
|
|
58
|
+
},
|
|
59
|
+
inlineList: {
|
|
60
|
+
marginTop: 4
|
|
61
|
+
},
|
|
62
|
+
anchoredList: {
|
|
63
|
+
position: 'absolute',
|
|
64
|
+
top: '100%',
|
|
65
|
+
left: 0,
|
|
66
|
+
right: 0,
|
|
67
|
+
marginTop: 4,
|
|
68
|
+
shadowColor: '#000',
|
|
69
|
+
shadowOffset: {
|
|
70
|
+
width: 0,
|
|
71
|
+
height: 4
|
|
72
|
+
},
|
|
73
|
+
shadowOpacity: 0.12,
|
|
74
|
+
shadowRadius: 8,
|
|
75
|
+
elevation: 6
|
|
76
|
+
},
|
|
77
|
+
listItem: {
|
|
78
|
+
paddingVertical: 14,
|
|
79
|
+
paddingHorizontal: 15,
|
|
80
|
+
borderBottomWidth: 1,
|
|
81
|
+
borderBottomColor: '#f1f3f5'
|
|
82
|
+
},
|
|
83
|
+
listItemLast: {
|
|
84
|
+
borderBottomWidth: 0
|
|
85
|
+
},
|
|
86
|
+
itemRow: {
|
|
87
|
+
flexDirection: 'row',
|
|
88
|
+
alignItems: 'center'
|
|
89
|
+
},
|
|
90
|
+
itemRowImageRight: {
|
|
91
|
+
justifyContent: 'space-between'
|
|
92
|
+
},
|
|
93
|
+
itemImage: {
|
|
94
|
+
width: 28,
|
|
95
|
+
height: 28
|
|
96
|
+
},
|
|
97
|
+
toggleImage: {
|
|
98
|
+
width: 24,
|
|
99
|
+
height: 24
|
|
100
|
+
},
|
|
101
|
+
itemText: {
|
|
102
|
+
flex: 1,
|
|
103
|
+
fontSize: 14,
|
|
104
|
+
fontWeight: '400',
|
|
105
|
+
color: '#212529'
|
|
106
|
+
},
|
|
107
|
+
itemTextWithRightImage: {
|
|
108
|
+
flex: 1,
|
|
109
|
+
marginRight: 4
|
|
110
|
+
},
|
|
111
|
+
itemTextSelected: {
|
|
112
|
+
fontWeight: '700',
|
|
113
|
+
color: '#0d6efd'
|
|
114
|
+
},
|
|
115
|
+
modalContainer: {
|
|
116
|
+
flex: 1,
|
|
117
|
+
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
118
|
+
justifyContent: 'center',
|
|
119
|
+
alignItems: 'center'
|
|
120
|
+
},
|
|
121
|
+
modalContent: {
|
|
122
|
+
width: '88%',
|
|
123
|
+
maxWidth: 400,
|
|
124
|
+
maxHeight: '70%',
|
|
125
|
+
backgroundColor: '#fff',
|
|
126
|
+
borderRadius: 12,
|
|
127
|
+
paddingHorizontal: 16,
|
|
128
|
+
paddingTop: 16,
|
|
129
|
+
paddingBottom: 12,
|
|
130
|
+
overflow: 'hidden'
|
|
131
|
+
},
|
|
132
|
+
modalHeader: {
|
|
133
|
+
flexDirection: 'row',
|
|
134
|
+
alignItems: 'center',
|
|
135
|
+
justifyContent: 'space-between',
|
|
136
|
+
marginBottom: 12,
|
|
137
|
+
gap: 12
|
|
138
|
+
},
|
|
139
|
+
modalTitle: {
|
|
140
|
+
flex: 1,
|
|
141
|
+
fontSize: 16,
|
|
142
|
+
fontWeight: '700',
|
|
143
|
+
color: '#212529'
|
|
144
|
+
},
|
|
145
|
+
modalCloseButton: {
|
|
146
|
+
position: 'relative',
|
|
147
|
+
top: 0,
|
|
148
|
+
right: 0
|
|
149
|
+
},
|
|
150
|
+
modalList: {
|
|
151
|
+
borderWidth: 0,
|
|
152
|
+
borderRadius: 8
|
|
153
|
+
},
|
|
154
|
+
bottomSheetBackdrop: {
|
|
155
|
+
flex: 1,
|
|
156
|
+
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
157
|
+
justifyContent: 'flex-end'
|
|
158
|
+
},
|
|
159
|
+
bottomSheetContent: {
|
|
160
|
+
backgroundColor: '#fff',
|
|
161
|
+
borderTopLeftRadius: 16,
|
|
162
|
+
borderTopRightRadius: 16,
|
|
163
|
+
paddingTop: 12,
|
|
164
|
+
paddingBottom: 24,
|
|
165
|
+
paddingHorizontal: 20,
|
|
166
|
+
maxHeight: '70%'
|
|
167
|
+
},
|
|
168
|
+
bottomSheetHandle: {
|
|
169
|
+
alignSelf: 'center',
|
|
170
|
+
width: 40,
|
|
171
|
+
height: 4,
|
|
172
|
+
borderRadius: 2,
|
|
173
|
+
backgroundColor: '#dee2e6',
|
|
174
|
+
marginBottom: 16
|
|
175
|
+
},
|
|
176
|
+
bottomSheetTitle: {
|
|
177
|
+
fontSize: 16,
|
|
178
|
+
fontWeight: '700',
|
|
179
|
+
color: '#212529',
|
|
180
|
+
marginBottom: 12
|
|
181
|
+
},
|
|
182
|
+
bottomSheetList: {
|
|
183
|
+
borderWidth: 0
|
|
184
|
+
},
|
|
185
|
+
backdropDismiss: {
|
|
186
|
+
...StyleSheet.absoluteFill
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","dropdownStyles","create","container","justifyContent","width","marginBottom","labelText","fontSize","fontWeight","color","toggleWrapper","position","zIndex","toggleWrapperOpen","dropDown","flexDirection","borderWidth","borderColor","borderRadius","alignItems","paddingVertical","paddingHorizontal","backgroundColor","dropDownDisabled","opacity","selectedText","flex","selectedTextActive","arrow","marginLeft","list","overflow","inlineList","marginTop","anchoredList","top","left","right","shadowColor","shadowOffset","height","shadowOpacity","shadowRadius","elevation","listItem","borderBottomWidth","borderBottomColor","listItemLast","itemRow","itemRowImageRight","itemImage","toggleImage","itemText","itemTextWithRightImage","marginRight","itemTextSelected","modalContainer","modalContent","maxWidth","maxHeight","paddingTop","paddingBottom","modalHeader","gap","modalTitle","modalCloseButton","modalList","bottomSheetBackdrop","bottomSheetContent","borderTopLeftRadius","borderTopRightRadius","bottomSheetHandle","alignSelf","bottomSheetTitle","bottomSheetList","backdropDismiss","absoluteFill"],"sourceRoot":"../../../../src","sources":["components/customDropDown/styles.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,OAAO,MAAMC,cAAc,GAAGD,UAAU,CAACE,MAAM,CAAC;EAC9CC,SAAS,EAAE;IACTC,cAAc,EAAE,QAAQ;IACxBC,KAAK,EAAE,MAAM;IACbC,YAAY,EAAE;EAChB,CAAC;EACDC,SAAS,EAAE;IACTD,YAAY,EAAE,EAAE;IAChBE,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAE;EACT,CAAC;EACDC,aAAa,EAAE;IACbC,QAAQ,EAAE,UAAU;IACpBC,MAAM,EAAE;EACV,CAAC;EACDC,iBAAiB,EAAE;IACjBD,MAAM,EAAE;EACV,CAAC;EACDE,QAAQ,EAAE;IACRC,aAAa,EAAE,KAAK;IACpBC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE,SAAS;IACtBC,YAAY,EAAE,CAAC;IACff,cAAc,EAAE,eAAe;IAC/BgB,UAAU,EAAE,QAAQ;IACpBC,eAAe,EAAE,EAAE;IACnBC,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE;EACnB,CAAC;EACDC,gBAAgB,EAAE;IAChBD,eAAe,EAAE,SAAS;IAC1BE,OAAO,EAAE;EACX,CAAC;EACDC,YAAY,EAAE;IACZC,IAAI,EAAE,CAAC;IACPnB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAE;EACT,CAAC;EACDkB,kBAAkB,EAAE;IAClBlB,KAAK,EAAE;EACT,CAAC;EACDmB,KAAK,EAAE;IACLrB,QAAQ,EAAE,EAAE;IACZE,KAAK,EAAE,SAAS;IAChBoB,UAAU,EAAE;EACd,CAAC;EACDC,IAAI,E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;IACnBpE,KAAK,EAAE,EAAE;IACToC,MAAM,EAAE,CAAC;IACTtB,YAAY,EAAE,CAAC;IACfI,eAAe,EAAE,SAAS;IAC1BjB,YAAY,EAAE;EAChB,CAAC;EACDoE,gBAAgB,EAAE;IAChBlE,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAE,SAAS;IAChBJ,YAAY,EAAE;EAChB,CAAC;EACDqE,eAAe,EAAE;IACf1D,WAAW,EAAE;EACf,CAAC;EACD2D,eAAe,EAAE;IACf,GAAG5E,UAAU,CAAC6E;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/customDropDown/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export const normalizeListItems = items => items.map(item => {
|
|
4
|
+
if (typeof item === 'string') {
|
|
5
|
+
return {
|
|
6
|
+
label: item,
|
|
7
|
+
value: item
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
return {
|
|
11
|
+
label: item.label,
|
|
12
|
+
value: item.value ?? item.label,
|
|
13
|
+
image: item.image
|
|
14
|
+
};
|
|
15
|
+
});
|
|
16
|
+
export const findSelectedOption = (items, selectedText) => items.find(item => item.label === selectedText || item.value === selectedText);
|
|
17
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["normalizeListItems","items","map","item","label","value","image","findSelectedOption","selectedText","find"],"sourceRoot":"../../../../src","sources":["components/customDropDown/utils.ts"],"mappings":";;AAEA,OAAO,MAAMA,kBAAkB,GAC7BC,KAAyB,IAEzBA,KAAK,CAACC,GAAG,CAAEC,IAAI,IAAK;EAClB,IAAI,OAAOA,IAAI,KAAK,QAAQ,EAAE;IAC5B,OAAO;MAAEC,KAAK,EAAED,IAAI;MAAEE,KAAK,EAAEF;IAAK,CAAC;EACrC;EAEA,OAAO;IACLC,KAAK,EAAED,IAAI,CAACC,KAAK;IACjBC,KAAK,EAAEF,IAAI,CAACE,KAAK,IAAIF,IAAI,CAACC,KAAK;IAC/BE,KAAK,EAAEH,IAAI,CAACG;EACd,CAAC;AACH,CAAC,CAAC;AAEJ,OAAO,MAAMC,kBAAkB,GAAGA,CAChCN,KAAiC,EACjCO,YAAqB,KAErBP,KAAK,CAACQ,IAAI,CACPN,IAAI,IAAKA,IAAI,CAACC,KAAK,KAAKI,YAAY,IAAIL,IAAI,CAACE,KAAK,KAAKG,YAC1D,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { ActivityIndicator, Text, View } from 'react-native';
|
|
4
|
+
import { listStyles } from "./styles.js";
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
const ListEmpty = ({
|
|
7
|
+
loading = false,
|
|
8
|
+
title = 'No items found',
|
|
9
|
+
description = 'There is nothing to show in this list yet.',
|
|
10
|
+
icon
|
|
11
|
+
}) => {
|
|
12
|
+
if (loading) {
|
|
13
|
+
return /*#__PURE__*/_jsx(View, {
|
|
14
|
+
style: listStyles.initialLoader,
|
|
15
|
+
children: /*#__PURE__*/_jsx(ActivityIndicator, {
|
|
16
|
+
size: "large",
|
|
17
|
+
color: "#0d6efd"
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
22
|
+
style: listStyles.emptyContainer,
|
|
23
|
+
children: [icon, /*#__PURE__*/_jsx(Text, {
|
|
24
|
+
style: listStyles.emptyTitle,
|
|
25
|
+
children: title
|
|
26
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
27
|
+
style: listStyles.emptyDescription,
|
|
28
|
+
children: description
|
|
29
|
+
})]
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
export default ListEmpty;
|
|
33
|
+
//# sourceMappingURL=ListEmpty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ActivityIndicator","Text","View","listStyles","jsx","_jsx","jsxs","_jsxs","ListEmpty","loading","title","description","icon","style","initialLoader","children","size","color","emptyContainer","emptyTitle","emptyDescription"],"sourceRoot":"../../../../src","sources":["components/customList/ListEmpty.tsx"],"mappings":";;AACA,SAASA,iBAAiB,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAE5D,SAASC,UAAU,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAStC,MAAMC,SAAS,GAAGA,CAAC;EACjBC,OAAO,GAAG,KAAK;EACfC,KAAK,GAAG,gBAAgB;EACxBC,WAAW,GAAG,4CAA4C;EAC1DC;AACc,CAAC,KAAK;EACpB,IAAIH,OAAO,EAAE;IACX,oBACEJ,IAAA,CAACH,IAAI;MAACW,KAAK,EAAEV,UAAU,CAACW,aAAc;MAAAC,QAAA,eACpCV,IAAA,CAACL,iBAAiB;QAACgB,IAAI,EAAC,OAAO;QAACC,KAAK,EAAC;MAAS,CAAE;IAAC,CAC9C,CAAC;EAEX;EAEA,oBACEV,KAAA,CAACL,IAAI;IAACW,KAAK,EAAEV,UAAU,CAACe,cAAe;IAAAH,QAAA,GACpCH,IAAI,eACLP,IAAA,CAACJ,IAAI;MAACY,KAAK,EAAEV,UAAU,CAACgB,UAAW;MAAAJ,QAAA,EAAEL;IAAK,CAAO,CAAC,eAClDL,IAAA,CAACJ,IAAI;MAACY,KAAK,EAAEV,UAAU,CAACiB,gBAAiB;MAAAL,QAAA,EAAEJ;IAAW,CAAO,CAAC;EAAA,CAC1D,CAAC;AAEX,CAAC;AAED,eAAeH,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { ActivityIndicator, View } from 'react-native';
|
|
4
|
+
import { listStyles } from "./styles.js";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
const ListFooterLoader = () => /*#__PURE__*/_jsx(View, {
|
|
7
|
+
style: listStyles.footerLoader,
|
|
8
|
+
children: /*#__PURE__*/_jsx(ActivityIndicator, {
|
|
9
|
+
size: "small",
|
|
10
|
+
color: "#0d6efd"
|
|
11
|
+
})
|
|
12
|
+
});
|
|
13
|
+
export default ListFooterLoader;
|
|
14
|
+
//# sourceMappingURL=ListFooterLoader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ActivityIndicator","View","listStyles","jsx","_jsx","ListFooterLoader","style","footerLoader","children","size","color"],"sourceRoot":"../../../../src","sources":["components/customList/ListFooterLoader.tsx"],"mappings":";;AAAA,SAASA,iBAAiB,EAAEC,IAAI,QAAQ,cAAc;AAEtD,SAASC,UAAU,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEtC,MAAMC,gBAAgB,GAAGA,CAAA,kBACvBD,IAAA,CAACH,IAAI;EAACK,KAAK,EAAEJ,UAAU,CAACK,YAAa;EAAAC,QAAA,eACnCJ,IAAA,CAACJ,iBAAiB;IAACS,IAAI,EAAC,OAAO;IAACC,KAAK,EAAC;EAAS,CAAE;AAAC,CAC9C,CACP;AAED,eAAeL,gBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["defaultKeyExtractor","item","index","String","id"],"sourceRoot":"../../../../src","sources":["components/customList/defaultKeyExtractor.ts"],"mappings":";;AAAA,OAAO,MAAMA,mBAAmB,GAAGA,CAAIC,IAAO,EAAEC,KAAa,KAAK;EAChE,IAAID,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,IAAI,IAAIA,IAAI,EAAE;IACpD,OAAOE,MAAM,CAAEF,IAAI,CAAqBG,EAAE,CAAC;EAC7C;EAEA,OAAOD,MAAM,CAACD,KAAK,CAAC;AACtB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
let cachedFlashList;
|
|
4
|
+
export const getFlashList = () => {
|
|
5
|
+
if (cachedFlashList !== undefined) {
|
|
6
|
+
return cachedFlashList;
|
|
7
|
+
}
|
|
8
|
+
try {
|
|
9
|
+
// Optional peer dependency — only required when engine="flashList"
|
|
10
|
+
|
|
11
|
+
const module = require('@shopify/flash-list');
|
|
12
|
+
cachedFlashList = module.FlashList;
|
|
13
|
+
} catch {
|
|
14
|
+
cachedFlashList = null;
|
|
15
|
+
}
|
|
16
|
+
return cachedFlashList;
|
|
17
|
+
};
|
|
18
|
+
export const isFlashListAvailable = () => getFlashList() !== null;
|
|
19
|
+
//# sourceMappingURL=getFlashList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["cachedFlashList","getFlashList","undefined","module","require","FlashList","isFlashListAvailable"],"sourceRoot":"../../../../src","sources":["components/customList/getFlashList.ts"],"mappings":";;AAIA,IAAIA,eAAsD;AAE1D,OAAO,MAAMC,YAAY,GAAGA,CAAA,KAAiC;EAC3D,IAAID,eAAe,KAAKE,SAAS,EAAE;IACjC,OAAOF,eAAe;EACxB;EAEA,IAAI;IACF;;IAEA,MAAMG,MAAM,GAAGC,OAAO,CAAC,qBAAqB,CAE3C;IACDJ,eAAe,GAAGG,MAAM,CAACE,SAAS;EACpC,CAAC,CAAC,MAAM;IACNL,eAAe,GAAG,IAAI;EACxB;EAEA,OAAOA,eAAe;AACxB,CAAC;AAED,OAAO,MAAMM,oBAAoB,GAAGA,CAAA,KAAML,YAAY,CAAC,CAAC,KAAK,IAAI","ignoreList":[]}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef, useMemo } from 'react';
|
|
4
|
+
import { FlatList, View } from 'react-native';
|
|
5
|
+
import { defaultKeyExtractor } from "./defaultKeyExtractor.js";
|
|
6
|
+
import { getFlashList } from "./getFlashList.js";
|
|
7
|
+
import ListEmpty from "./ListEmpty.js";
|
|
8
|
+
import ListFooterLoader from "./ListFooterLoader.js";
|
|
9
|
+
import { listStyles } from "./styles.js";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const DEFAULT_ESTIMATED_ITEM_SIZE = 72;
|
|
12
|
+
const ItemSeparator = () => /*#__PURE__*/_jsx(View, {
|
|
13
|
+
style: listStyles.separator
|
|
14
|
+
});
|
|
15
|
+
function CustomListInner({
|
|
16
|
+
data,
|
|
17
|
+
renderItem,
|
|
18
|
+
engine = 'flatList',
|
|
19
|
+
keyExtractor = defaultKeyExtractor,
|
|
20
|
+
horizontal = false,
|
|
21
|
+
numColumns = 1,
|
|
22
|
+
loading = false,
|
|
23
|
+
loadingMore = false,
|
|
24
|
+
refreshing = false,
|
|
25
|
+
onRefresh,
|
|
26
|
+
onEndReached,
|
|
27
|
+
onEndReachedThreshold = 0.4,
|
|
28
|
+
estimatedItemSize = DEFAULT_ESTIMATED_ITEM_SIZE,
|
|
29
|
+
emptyTitle,
|
|
30
|
+
emptyDescription,
|
|
31
|
+
emptyIcon,
|
|
32
|
+
showSeparator = false,
|
|
33
|
+
separatorStyle,
|
|
34
|
+
ListHeaderComponent,
|
|
35
|
+
ListFooterComponent,
|
|
36
|
+
ListEmptyComponent,
|
|
37
|
+
ItemSeparatorComponent,
|
|
38
|
+
contentContainerStyle,
|
|
39
|
+
style,
|
|
40
|
+
showsVerticalScrollIndicator = false,
|
|
41
|
+
showsHorizontalScrollIndicator = false,
|
|
42
|
+
...rest
|
|
43
|
+
}, ref) {
|
|
44
|
+
const resolvedSeparator = useMemo(() => {
|
|
45
|
+
if (ItemSeparatorComponent) {
|
|
46
|
+
return ItemSeparatorComponent;
|
|
47
|
+
}
|
|
48
|
+
if (!showSeparator || horizontal) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
if (separatorStyle) {
|
|
52
|
+
return () => /*#__PURE__*/_jsx(View, {
|
|
53
|
+
style: [listStyles.separator, separatorStyle]
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
return ItemSeparator;
|
|
57
|
+
}, [ItemSeparatorComponent, showSeparator, horizontal, separatorStyle]);
|
|
58
|
+
const resolvedEmpty = useMemo(() => {
|
|
59
|
+
if (ListEmptyComponent) {
|
|
60
|
+
return ListEmptyComponent;
|
|
61
|
+
}
|
|
62
|
+
return /*#__PURE__*/_jsx(ListEmpty, {
|
|
63
|
+
loading: loading,
|
|
64
|
+
title: emptyTitle,
|
|
65
|
+
description: emptyDescription,
|
|
66
|
+
icon: emptyIcon
|
|
67
|
+
});
|
|
68
|
+
}, [ListEmptyComponent, loading, emptyTitle, emptyDescription, emptyIcon]);
|
|
69
|
+
const resolvedFooter = useMemo(() => {
|
|
70
|
+
if (loadingMore) {
|
|
71
|
+
return ListFooterComponent ?? /*#__PURE__*/_jsx(ListFooterLoader, {});
|
|
72
|
+
}
|
|
73
|
+
return ListFooterComponent;
|
|
74
|
+
}, [ListFooterComponent, loadingMore]);
|
|
75
|
+
const commonProps = {
|
|
76
|
+
data: loading && data.length === 0 ? [] : data,
|
|
77
|
+
renderItem,
|
|
78
|
+
keyExtractor,
|
|
79
|
+
horizontal,
|
|
80
|
+
numColumns: horizontal ? 1 : numColumns,
|
|
81
|
+
refreshing,
|
|
82
|
+
onRefresh,
|
|
83
|
+
onEndReached,
|
|
84
|
+
onEndReachedThreshold,
|
|
85
|
+
ListHeaderComponent,
|
|
86
|
+
ListFooterComponent: resolvedFooter,
|
|
87
|
+
ListEmptyComponent: resolvedEmpty,
|
|
88
|
+
ItemSeparatorComponent: resolvedSeparator,
|
|
89
|
+
contentContainerStyle: [data.length === 0 && listStyles.emptyContainer, contentContainerStyle],
|
|
90
|
+
style: [listStyles.list, style],
|
|
91
|
+
showsVerticalScrollIndicator,
|
|
92
|
+
showsHorizontalScrollIndicator,
|
|
93
|
+
...rest
|
|
94
|
+
};
|
|
95
|
+
if (engine === 'flashList') {
|
|
96
|
+
const FlashListComponent = getFlashList();
|
|
97
|
+
if (!FlashListComponent) {
|
|
98
|
+
console.warn('[CustomList] @shopify/flash-list is not installed. Falling back to FlatList.');
|
|
99
|
+
} else {
|
|
100
|
+
const flashEstimatedSize = horizontal ? Math.max(estimatedItemSize, 120) : estimatedItemSize;
|
|
101
|
+
return /*#__PURE__*/_jsx(FlashListComponent, {
|
|
102
|
+
...commonProps,
|
|
103
|
+
ref: ref,
|
|
104
|
+
estimatedItemSize: flashEstimatedSize
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return /*#__PURE__*/_jsx(FlatList, {
|
|
109
|
+
...commonProps,
|
|
110
|
+
ref: ref
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
const CustomList = /*#__PURE__*/forwardRef(CustomListInner);
|
|
114
|
+
export default CustomList;
|
|
115
|
+
export { defaultKeyExtractor } from "./defaultKeyExtractor.js";
|
|
116
|
+
export { getFlashList, isFlashListAvailable } from "./getFlashList.js";
|
|
117
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","useMemo","FlatList","View","defaultKeyExtractor","getFlashList","ListEmpty","ListFooterLoader","listStyles","jsx","_jsx","DEFAULT_ESTIMATED_ITEM_SIZE","ItemSeparator","style","separator","CustomListInner","data","renderItem","engine","keyExtractor","horizontal","numColumns","loading","loadingMore","refreshing","onRefresh","onEndReached","onEndReachedThreshold","estimatedItemSize","emptyTitle","emptyDescription","emptyIcon","showSeparator","separatorStyle","ListHeaderComponent","ListFooterComponent","ListEmptyComponent","ItemSeparatorComponent","contentContainerStyle","showsVerticalScrollIndicator","showsHorizontalScrollIndicator","rest","ref","resolvedSeparator","undefined","resolvedEmpty","title","description","icon","resolvedFooter","commonProps","length","emptyContainer","list","FlashListComponent","console","warn","flashEstimatedSize","Math","max","CustomList","isFlashListAvailable"],"sourceRoot":"../../../../src","sources":["components/customList/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,OAAO,QAA2B,OAAO;AAC9D,SAASC,QAAQ,EAAEC,IAAI,QAA4B,cAAc;AAEjE,SAASC,mBAAmB,QAAQ,0BAAuB;AAC3D,SAASC,YAAY,QAAQ,mBAAgB;AAC7C,OAAOC,SAAS,MAAM,gBAAa;AACnC,OAAOC,gBAAgB,MAAM,uBAAoB;AACjD,SAASC,UAAU,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGtC,MAAMC,2BAA2B,GAAG,EAAE;AAEtC,MAAMC,aAAa,GAAGA,CAAA,kBAAMF,IAAA,CAACP,IAAI;EAACU,KAAK,EAAEL,UAAU,CAACM;AAAU,CAAE,CAAC;AAEjE,SAASC,eAAeA,CACtB;EACEC,IAAI;EACJC,UAAU;EACVC,MAAM,GAAG,UAAU;EACnBC,YAAY,GAAGf,mBAAmB;EAClCgB,UAAU,GAAG,KAAK;EAClBC,UAAU,GAAG,CAAC;EACdC,OAAO,GAAG,KAAK;EACfC,WAAW,GAAG,KAAK;EACnBC,UAAU,GAAG,KAAK;EAClBC,SAAS;EACTC,YAAY;EACZC,qBAAqB,GAAG,GAAG;EAC3BC,iBAAiB,GAAGjB,2BAA2B;EAC/CkB,UAAU;EACVC,gBAAgB;EAChBC,SAAS;EACTC,aAAa,GAAG,KAAK;EACrBC,cAAc;EACdC,mBAAmB;EACnBC,mBAAmB;EACnBC,kBAAkB;EAClBC,sBAAsB;EACtBC,qBAAqB;EACrBzB,KAAK;EACL0B,4BAA4B,GAAG,KAAK;EACpCC,8BAA8B,GAAG,KAAK;EACtC,GAAGC;AACe,CAAC,EACrBC,GAA2B,EAC3B;EACA,MAAMC,iBAAiB,GAAG1C,OAAO,CAAC,MAAM;IACtC,IAAIoC,sBAAsB,EAAE;MAC1B,OAAOA,sBAAsB;IAC/B;IAEA,IAAI,CAACL,aAAa,IAAIZ,UAAU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M,iBAAiB;IACzCL,qBAAqB,EAAE,CACrBtB,IAAI,CAACmC,MAAM,KAAK,CAAC,IAAI3C,UAAU,CAAC4C,cAAc,EAC9Cd,qBAAqB,CACtB;IACDzB,KAAK,EAAE,CAACL,UAAU,CAAC6C,IAAI,EAAExC,KAAK,CAAC;IAC/B0B,4BAA4B;IAC5BC,8BAA8B;IAC9B,GAAGC;EACL,CAAqC;EAErC,IAAIvB,MAAM,KAAK,WAAW,EAAE;IAC1B,MAAMoC,kBAAkB,GAAGjD,YAAY,CAAC,CAAC;IAEzC,IAAI,CAACiD,kBAAkB,EAAE;MACvBC,OAAO,CAACC,IAAI,CACV,8EACF,CAAC;IACH,CAAC,MAAM;MACL,MAAMC,kBAAkB,GAAGrC,UAAU,GACjCsC,IAAI,CAACC,GAAG,CAAC/B,iBAAiB,EAAE,GAAG,CAAC,GAChCA,iBAAiB;MAErB,oBACElB,IAAA,CAAC4C,kBAAkB;QAAA,GACbJ,WAAW;QACfR,GAAG,EAAEA,GAAa;QAClBd,iBAAiB,EAAE6B;MAAmB,CACvC,CAAC;IAEN;EACF;EAEA,oBAAO/C,IAAA,CAACR,QAAQ;IAAA,GAAKgD,WAAW;IAAER,GAAG,EAAEA;EAAI,CAAE,CAAC;AAChD;AAEA,MAAMkB,UAAU,gBAAG5D,UAAU,CAACe,eAAe,CAE5B;AAEjB,eAAe6C,UAAU;AACzB,SAASxD,mBAAmB,QAAQ,0BAAuB;AAC3D,SAASC,YAAY,EAAEwD,oBAAoB,QAAQ,mBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet } from 'react-native';
|
|
4
|
+
export const listStyles = StyleSheet.create({
|
|
5
|
+
list: {
|
|
6
|
+
flex: 1
|
|
7
|
+
},
|
|
8
|
+
separator: {
|
|
9
|
+
height: 1,
|
|
10
|
+
backgroundColor: '#e9ecef',
|
|
11
|
+
marginHorizontal: 16
|
|
12
|
+
},
|
|
13
|
+
emptyContainer: {
|
|
14
|
+
flexGrow: 1,
|
|
15
|
+
alignItems: 'center',
|
|
16
|
+
justifyContent: 'center',
|
|
17
|
+
paddingHorizontal: 24,
|
|
18
|
+
paddingVertical: 48,
|
|
19
|
+
gap: 8
|
|
20
|
+
},
|
|
21
|
+
emptyTitle: {
|
|
22
|
+
fontSize: 16,
|
|
23
|
+
fontWeight: '600',
|
|
24
|
+
color: '#212529',
|
|
25
|
+
textAlign: 'center'
|
|
26
|
+
},
|
|
27
|
+
emptyDescription: {
|
|
28
|
+
fontSize: 14,
|
|
29
|
+
lineHeight: 20,
|
|
30
|
+
color: '#6c757d',
|
|
31
|
+
textAlign: 'center'
|
|
32
|
+
},
|
|
33
|
+
footerLoader: {
|
|
34
|
+
paddingVertical: 16,
|
|
35
|
+
alignItems: 'center',
|
|
36
|
+
justifyContent: 'center'
|
|
37
|
+
},
|
|
38
|
+
initialLoader: {
|
|
39
|
+
flex: 1,
|
|
40
|
+
alignItems: 'center',
|
|
41
|
+
justifyContent: 'center',
|
|
42
|
+
paddingVertical: 48
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","listStyles","create","list","flex","separator","height","backgroundColor","marginHorizontal","emptyContainer","flexGrow","alignItems","justifyContent","paddingHorizontal","paddingVertical","gap","emptyTitle","fontSize","fontWeight","color","textAlign","emptyDescription","lineHeight","footerLoader","initialLoader"],"sourceRoot":"../../../../src","sources":["components/customList/styles.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,OAAO,MAAMC,UAAU,GAAGD,UAAU,CAACE,MAAM,CAAC;EAC1CC,IAAI,EAAE;IACJC,IAAI,EAAE;EACR,CAAC;EACDC,SAAS,EAAE;IACTC,MAAM,EAAE,CAAC;IACTC,eAAe,EAAE,SAAS;IAC1BC,gBAAgB,EAAE;EACpB,CAAC;EACDC,cAAc,EAAE;IACdC,QAAQ,EAAE,CAAC;IACXC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE,EAAE;IACnBC,GAAG,EAAE;EACP,CAAC;EACDC,UAAU,EAAE;IACVC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAE,SAAS;IAChBC,SAAS,EAAE;EACb,CAAC;EACDC,gBAAgB,EAAE;IAChBJ,QAAQ,EAAE,EAAE;IACZK,UAAU,EAAE,EAAE;IACdH,KAAK,EAAE,SAAS;IAChBC,SAAS,EAAE;EACb,CAAC;EACDG,YAAY,EAAE;IACZT,eAAe,EAAE,EAAE;IACnBH,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDY,aAAa,EAAE;IACbpB,IAAI,EAAE,CAAC;IACPO,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBE,eAAe,EAAE;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/customList/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { View } from 'react-native';
|
|
4
|
+
import CustomButton from "../customButton/index.js";
|
|
5
|
+
import { styles } from "./styles.js";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
const ModalFooter = ({
|
|
8
|
+
footer,
|
|
9
|
+
primaryAction,
|
|
10
|
+
secondaryAction,
|
|
11
|
+
footerStyle
|
|
12
|
+
}) => {
|
|
13
|
+
if (footer) {
|
|
14
|
+
return /*#__PURE__*/_jsx(View, {
|
|
15
|
+
style: [styles.footer, footerStyle],
|
|
16
|
+
children: footer
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
if (!primaryAction && !secondaryAction) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
23
|
+
style: [styles.footer, footerStyle],
|
|
24
|
+
children: [secondaryAction && /*#__PURE__*/_jsx(CustomButton, {
|
|
25
|
+
text: secondaryAction.label,
|
|
26
|
+
variant: secondaryAction.variant ?? 'outline',
|
|
27
|
+
disabled: secondaryAction.disabled,
|
|
28
|
+
isLoading: secondaryAction.isLoading,
|
|
29
|
+
borderRadius: 8,
|
|
30
|
+
buttonStyles: styles.footerButton,
|
|
31
|
+
onPress: secondaryAction.onPress
|
|
32
|
+
}), primaryAction && /*#__PURE__*/_jsx(CustomButton, {
|
|
33
|
+
text: primaryAction.label,
|
|
34
|
+
variant: primaryAction.variant ?? 'primary',
|
|
35
|
+
disabled: primaryAction.disabled,
|
|
36
|
+
isLoading: primaryAction.isLoading,
|
|
37
|
+
borderRadius: 8,
|
|
38
|
+
buttonStyles: styles.footerButton,
|
|
39
|
+
onPress: primaryAction.onPress
|
|
40
|
+
})]
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
export default ModalFooter;
|
|
44
|
+
//# sourceMappingURL=ModalFooter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["View","CustomButton","styles","jsx","_jsx","jsxs","_jsxs","ModalFooter","footer","primaryAction","secondaryAction","footerStyle","style","children","text","label","variant","disabled","isLoading","borderRadius","buttonStyles","footerButton","onPress"],"sourceRoot":"../../../../src","sources":["components/customModal/ModalFooter.tsx"],"mappings":";;AACA,SAASA,IAAI,QAAwC,cAAc;AAEnE,OAAOC,YAAY,MAAM,0BAAiB;AAC1C,SAASC,MAAM,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAUlC,MAAMC,WAAW,GAAGA,CAAC;EACnBC,MAAM;EACNC,aAAa;EACbC,eAAe;EACfC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