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,231 @@
|
|
|
1
|
+
import { type TextStyle, type ViewStyle } from 'react-native';
|
|
2
|
+
import type { ButtonContentAlign, ButtonSize, ButtonVariant } from './types';
|
|
3
|
+
export declare const sizeStyles: Record<ButtonSize, ViewStyle>;
|
|
4
|
+
export declare const iconOnlySizeStyles: Record<ButtonSize, {
|
|
5
|
+
button: ViewStyle;
|
|
6
|
+
iconSize: number;
|
|
7
|
+
imageSize: number;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const variantTheme: Record<ButtonVariant, {
|
|
10
|
+
button: ViewStyle;
|
|
11
|
+
text: TextStyle;
|
|
12
|
+
imageTint?: string;
|
|
13
|
+
loaderColor: string;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const contentAlignStyles: Record<ButtonContentAlign, {
|
|
16
|
+
container: ViewStyle;
|
|
17
|
+
text: TextStyle;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const styles: Readonly<{
|
|
20
|
+
button: Readonly<Omit<Readonly<Omit<Readonly<{
|
|
21
|
+
display?: "none" | "flex" | "contents";
|
|
22
|
+
width?: import("react-native").DimensionValue;
|
|
23
|
+
height?: import("react-native").DimensionValue;
|
|
24
|
+
bottom?: import("react-native").DimensionValue;
|
|
25
|
+
end?: import("react-native").DimensionValue;
|
|
26
|
+
left?: import("react-native").DimensionValue;
|
|
27
|
+
right?: import("react-native").DimensionValue;
|
|
28
|
+
start?: import("react-native").DimensionValue;
|
|
29
|
+
top?: import("react-native").DimensionValue;
|
|
30
|
+
inset?: import("react-native").DimensionValue;
|
|
31
|
+
insetBlock?: import("react-native").DimensionValue;
|
|
32
|
+
insetBlockEnd?: import("react-native").DimensionValue;
|
|
33
|
+
insetBlockStart?: import("react-native").DimensionValue;
|
|
34
|
+
insetInline?: import("react-native").DimensionValue;
|
|
35
|
+
insetInlineEnd?: import("react-native").DimensionValue;
|
|
36
|
+
insetInlineStart?: import("react-native").DimensionValue;
|
|
37
|
+
minWidth?: import("react-native").DimensionValue;
|
|
38
|
+
maxWidth?: import("react-native").DimensionValue;
|
|
39
|
+
minHeight?: import("react-native").DimensionValue;
|
|
40
|
+
maxHeight?: import("react-native").DimensionValue;
|
|
41
|
+
margin?: import("react-native").DimensionValue;
|
|
42
|
+
marginBlock?: import("react-native").DimensionValue;
|
|
43
|
+
marginBlockEnd?: import("react-native").DimensionValue;
|
|
44
|
+
marginBlockStart?: import("react-native").DimensionValue;
|
|
45
|
+
marginBottom?: import("react-native").DimensionValue;
|
|
46
|
+
marginEnd?: import("react-native").DimensionValue;
|
|
47
|
+
marginHorizontal?: import("react-native").DimensionValue;
|
|
48
|
+
marginInline?: import("react-native").DimensionValue;
|
|
49
|
+
marginInlineEnd?: import("react-native").DimensionValue;
|
|
50
|
+
marginInlineStart?: import("react-native").DimensionValue;
|
|
51
|
+
marginLeft?: import("react-native").DimensionValue;
|
|
52
|
+
marginRight?: import("react-native").DimensionValue;
|
|
53
|
+
marginStart?: import("react-native").DimensionValue;
|
|
54
|
+
marginTop?: import("react-native").DimensionValue;
|
|
55
|
+
marginVertical?: import("react-native").DimensionValue;
|
|
56
|
+
padding?: import("react-native").DimensionValue;
|
|
57
|
+
paddingBlock?: import("react-native").DimensionValue;
|
|
58
|
+
paddingBlockEnd?: import("react-native").DimensionValue;
|
|
59
|
+
paddingBlockStart?: import("react-native").DimensionValue;
|
|
60
|
+
paddingBottom?: import("react-native").DimensionValue;
|
|
61
|
+
paddingEnd?: import("react-native").DimensionValue;
|
|
62
|
+
paddingHorizontal?: import("react-native").DimensionValue;
|
|
63
|
+
paddingInline?: import("react-native").DimensionValue;
|
|
64
|
+
paddingInlineEnd?: import("react-native").DimensionValue;
|
|
65
|
+
paddingInlineStart?: import("react-native").DimensionValue;
|
|
66
|
+
paddingLeft?: import("react-native").DimensionValue;
|
|
67
|
+
paddingRight?: import("react-native").DimensionValue;
|
|
68
|
+
paddingStart?: import("react-native").DimensionValue;
|
|
69
|
+
paddingTop?: import("react-native").DimensionValue;
|
|
70
|
+
paddingVertical?: import("react-native").DimensionValue;
|
|
71
|
+
borderWidth?: number;
|
|
72
|
+
borderBottomWidth?: number;
|
|
73
|
+
borderEndWidth?: number;
|
|
74
|
+
borderLeftWidth?: number;
|
|
75
|
+
borderRightWidth?: number;
|
|
76
|
+
borderStartWidth?: number;
|
|
77
|
+
borderTopWidth?: number;
|
|
78
|
+
position?: "absolute" | "relative" | "static";
|
|
79
|
+
flexDirection?: "row" | "row-reverse" | "column" | "column-reverse";
|
|
80
|
+
flexWrap?: "wrap" | "nowrap" | "wrap-reverse";
|
|
81
|
+
justifyContent?: "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly";
|
|
82
|
+
alignItems?: "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
83
|
+
alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
84
|
+
alignContent?: "flex-start" | "flex-end" | "center" | "stretch" | "space-between" | "space-around" | "space-evenly";
|
|
85
|
+
overflow?: "visible" | "hidden" | "scroll";
|
|
86
|
+
flex?: number;
|
|
87
|
+
flexGrow?: number;
|
|
88
|
+
flexShrink?: number;
|
|
89
|
+
flexBasis?: number | string;
|
|
90
|
+
aspectRatio?: number | string;
|
|
91
|
+
boxSizing?: "border-box" | "content-box";
|
|
92
|
+
zIndex?: number;
|
|
93
|
+
direction?: "inherit" | "ltr" | "rtl";
|
|
94
|
+
rowGap?: number | string;
|
|
95
|
+
columnGap?: number | string;
|
|
96
|
+
gap?: number | string;
|
|
97
|
+
}>, "filter" | "shadowColor" | "shadowOffset" | "shadowOpacity" | "shadowRadius" | "transform" | "transformOrigin" | "backfaceVisibility" | "backgroundColor" | "borderColor" | "borderCurve" | "borderBottomColor" | "borderEndColor" | "borderLeftColor" | "borderRightColor" | "borderStartColor" | "borderTopColor" | "borderBlockColor" | "borderBlockEndColor" | "borderBlockStartColor" | "borderRadius" | "borderBottomEndRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStartRadius" | "borderEndEndRadius" | "borderEndStartRadius" | "borderStartEndRadius" | "borderStartStartRadius" | "borderTopEndRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStartRadius" | "borderStyle" | "borderWidth" | "borderBottomWidth" | "borderEndWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStartWidth" | "borderTopWidth" | "opacity" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "elevation" | "pointerEvents" | "cursor" | "boxShadow" | "mixBlendMode" | "experimental_backgroundImage" | "experimental_backgroundSize" | "experimental_backgroundPosition" | "experimental_backgroundRepeat" | "isolation"> & Omit<Readonly<Omit<Readonly<{
|
|
98
|
+
shadowColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
99
|
+
shadowOffset?: Readonly<{
|
|
100
|
+
width?: number;
|
|
101
|
+
height?: number;
|
|
102
|
+
}>;
|
|
103
|
+
shadowOpacity?: number;
|
|
104
|
+
shadowRadius?: number;
|
|
105
|
+
}>, never> & Omit<Readonly<{}>, never>>, "filter" | "transform" | "transformOrigin" | "backfaceVisibility" | "backgroundColor" | "borderColor" | "borderCurve" | "borderBottomColor" | "borderEndColor" | "borderLeftColor" | "borderRightColor" | "borderStartColor" | "borderTopColor" | "borderBlockColor" | "borderBlockEndColor" | "borderBlockStartColor" | "borderRadius" | "borderBottomEndRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStartRadius" | "borderEndEndRadius" | "borderEndStartRadius" | "borderStartEndRadius" | "borderStartStartRadius" | "borderTopEndRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStartRadius" | "borderStyle" | "borderWidth" | "borderBottomWidth" | "borderEndWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStartWidth" | "borderTopWidth" | "opacity" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "elevation" | "pointerEvents" | "cursor" | "boxShadow" | "mixBlendMode" | "experimental_backgroundImage" | "experimental_backgroundSize" | "experimental_backgroundPosition" | "experimental_backgroundRepeat" | "isolation"> & Omit<Readonly<{
|
|
106
|
+
transform?: ReadonlyArray<Readonly<import("react-native/types_generated/Libraries/StyleSheet/private/_TransformStyle").MaximumOneOf<import("react-native/types_generated/Libraries/StyleSheet/private/_TransformStyle").MergeUnion<{
|
|
107
|
+
readonly perspective: number | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
108
|
+
} | {
|
|
109
|
+
readonly rotate: string | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
110
|
+
} | {
|
|
111
|
+
readonly rotateX: string | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
112
|
+
} | {
|
|
113
|
+
readonly rotateY: string | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
114
|
+
} | {
|
|
115
|
+
readonly rotateZ: string | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
116
|
+
} | {
|
|
117
|
+
readonly scale: number | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
118
|
+
} | {
|
|
119
|
+
readonly scaleX: number | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
120
|
+
} | {
|
|
121
|
+
readonly scaleY: number | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
122
|
+
} | {
|
|
123
|
+
readonly translateX: number | string | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
124
|
+
} | {
|
|
125
|
+
readonly translateY: number | string | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
126
|
+
} | {
|
|
127
|
+
readonly translate: [number | string | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node, number | string | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node] | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
128
|
+
} | {
|
|
129
|
+
readonly skewX: string | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
130
|
+
} | {
|
|
131
|
+
readonly skewY: string | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
132
|
+
} | {
|
|
133
|
+
readonly matrix: ReadonlyArray<number | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node> | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
134
|
+
}>>>> | string;
|
|
135
|
+
transformOrigin?: [string | number, string | number, string | number] | string;
|
|
136
|
+
}>, "filter" | "backfaceVisibility" | "backgroundColor" | "borderColor" | "borderCurve" | "borderBottomColor" | "borderEndColor" | "borderLeftColor" | "borderRightColor" | "borderStartColor" | "borderTopColor" | "borderBlockColor" | "borderBlockEndColor" | "borderBlockStartColor" | "borderRadius" | "borderBottomEndRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStartRadius" | "borderEndEndRadius" | "borderEndStartRadius" | "borderStartEndRadius" | "borderStartStartRadius" | "borderTopEndRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStartRadius" | "borderStyle" | "borderWidth" | "borderBottomWidth" | "borderEndWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStartWidth" | "borderTopWidth" | "opacity" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "elevation" | "pointerEvents" | "cursor" | "boxShadow" | "mixBlendMode" | "experimental_backgroundImage" | "experimental_backgroundSize" | "experimental_backgroundPosition" | "experimental_backgroundRepeat" | "isolation"> & Omit<Readonly<{
|
|
137
|
+
backfaceVisibility?: "visible" | "hidden";
|
|
138
|
+
backgroundColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
139
|
+
borderColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
140
|
+
borderCurve?: "circular" | "continuous";
|
|
141
|
+
borderBottomColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
142
|
+
borderEndColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
143
|
+
borderLeftColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
144
|
+
borderRightColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
145
|
+
borderStartColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
146
|
+
borderTopColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
147
|
+
borderBlockColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
148
|
+
borderBlockEndColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
149
|
+
borderBlockStartColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
150
|
+
borderRadius?: number | string;
|
|
151
|
+
borderBottomEndRadius?: number | string;
|
|
152
|
+
borderBottomLeftRadius?: number | string;
|
|
153
|
+
borderBottomRightRadius?: number | string;
|
|
154
|
+
borderBottomStartRadius?: number | string;
|
|
155
|
+
borderEndEndRadius?: number | string;
|
|
156
|
+
borderEndStartRadius?: number | string;
|
|
157
|
+
borderStartEndRadius?: number | string;
|
|
158
|
+
borderStartStartRadius?: number | string;
|
|
159
|
+
borderTopEndRadius?: number | string;
|
|
160
|
+
borderTopLeftRadius?: number | string;
|
|
161
|
+
borderTopRightRadius?: number | string;
|
|
162
|
+
borderTopStartRadius?: number | string;
|
|
163
|
+
borderStyle?: "solid" | "dotted" | "dashed";
|
|
164
|
+
borderWidth?: number;
|
|
165
|
+
borderBottomWidth?: number;
|
|
166
|
+
borderEndWidth?: number;
|
|
167
|
+
borderLeftWidth?: number;
|
|
168
|
+
borderRightWidth?: number;
|
|
169
|
+
borderStartWidth?: number;
|
|
170
|
+
borderTopWidth?: number;
|
|
171
|
+
opacity?: number;
|
|
172
|
+
outlineColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
173
|
+
outlineOffset?: number;
|
|
174
|
+
outlineStyle?: "solid" | "dotted" | "dashed";
|
|
175
|
+
outlineWidth?: number;
|
|
176
|
+
elevation?: number;
|
|
177
|
+
pointerEvents?: "auto" | "none" | "box-none" | "box-only";
|
|
178
|
+
cursor?: import("react-native").CursorValue;
|
|
179
|
+
boxShadow?: ReadonlyArray<import("react-native").BoxShadowValue> | string;
|
|
180
|
+
filter?: ReadonlyArray<import("react-native").FilterFunction> | string;
|
|
181
|
+
mixBlendMode?: "color" | "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "hard-light" | "soft-light" | "difference" | "exclusion" | "hue" | "saturation" | "luminosity";
|
|
182
|
+
experimental_backgroundImage?: ReadonlyArray<import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").BackgroundImageValue> | string;
|
|
183
|
+
experimental_backgroundSize?: ReadonlyArray<import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").BackgroundSizeValue> | string;
|
|
184
|
+
experimental_backgroundPosition?: ReadonlyArray<import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").BackgroundPositionValue> | string;
|
|
185
|
+
experimental_backgroundRepeat?: ReadonlyArray<import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").BackgroundRepeatValue> | string;
|
|
186
|
+
isolation?: "auto" | "isolate";
|
|
187
|
+
}>, never>>, never> & Omit<Readonly<{}>, never>>;
|
|
188
|
+
container: {
|
|
189
|
+
flexDirection: "row";
|
|
190
|
+
alignItems: "center";
|
|
191
|
+
justifyContent: "center";
|
|
192
|
+
gap: number;
|
|
193
|
+
};
|
|
194
|
+
iconOnlyContainer: {
|
|
195
|
+
gap: number;
|
|
196
|
+
};
|
|
197
|
+
text: {};
|
|
198
|
+
leftImage: {
|
|
199
|
+
height: number;
|
|
200
|
+
width: number;
|
|
201
|
+
marginRight: number;
|
|
202
|
+
};
|
|
203
|
+
rightImage: {
|
|
204
|
+
height: number;
|
|
205
|
+
width: number;
|
|
206
|
+
marginLeft: number;
|
|
207
|
+
};
|
|
208
|
+
disabledButton: {
|
|
209
|
+
opacity: number;
|
|
210
|
+
};
|
|
211
|
+
disabledText: {
|
|
212
|
+
opacity: number;
|
|
213
|
+
};
|
|
214
|
+
countContainer: {
|
|
215
|
+
position: "absolute";
|
|
216
|
+
top: number;
|
|
217
|
+
right: number;
|
|
218
|
+
height: number;
|
|
219
|
+
width: number;
|
|
220
|
+
borderRadius: number;
|
|
221
|
+
backgroundColor: string;
|
|
222
|
+
justifyContent: "center";
|
|
223
|
+
alignItems: "center";
|
|
224
|
+
zIndex: number;
|
|
225
|
+
};
|
|
226
|
+
countText: {
|
|
227
|
+
color: string;
|
|
228
|
+
fontWeight: "600";
|
|
229
|
+
};
|
|
230
|
+
}>;
|
|
231
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/customButton/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAU7E,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,SAAS,CAUpD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,MAAM,CACrC,UAAU,EACV;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAmC3D,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,MAAM,CAC/B,aAAa,EACb;IACE,MAAM,EAAE,SAAS,CAAC;IAClB,IAAI,EAAE,SAAS,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB,CAkGF,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,MAAM,CACrC,kBAAkB,EAClB;IAAE,SAAS,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,SAAS,CAAA;CAAE,CA4B1C,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6Cs8oB,CAAC;kBAAoB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAD7+oB,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import type { ImageSourcePropType, ImageStyle, StyleProp, TextStyle, TouchableOpacityProps, ViewStyle } from 'react-native';
|
|
3
|
+
export type ButtonVariant = 'default' | 'primary' | 'danger' | 'warning' | 'info' | 'success' | 'secondary' | 'light' | 'dark' | 'link' | 'outline' | 'ghost' | 'text';
|
|
4
|
+
export type ButtonSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
export type ButtonContentAlign = 'left' | 'center' | 'right';
|
|
6
|
+
export type IconOnlyShape = 'square' | 'circle';
|
|
7
|
+
export type IconComponent = ComponentType<{
|
|
8
|
+
size?: number;
|
|
9
|
+
color?: string;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}>;
|
|
12
|
+
export type CustomButtonProps = Omit<TouchableOpacityProps, 'children'> & {
|
|
13
|
+
variant?: ButtonVariant;
|
|
14
|
+
size?: ButtonSize;
|
|
15
|
+
contentAlign?: ButtonContentAlign;
|
|
16
|
+
/** Square icon-only button — requires LeftIcon/RightIcon/leftImage/rightImage and accessibilityLabel */
|
|
17
|
+
iconOnly?: boolean;
|
|
18
|
+
iconOnlyShape?: IconOnlyShape;
|
|
19
|
+
text?: string;
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
rightImage?: ImageSourcePropType;
|
|
22
|
+
leftImage?: ImageSourcePropType;
|
|
23
|
+
buttonStyles?: StyleProp<ViewStyle>;
|
|
24
|
+
imageOuterStyle?: StyleProp<ViewStyle>;
|
|
25
|
+
textStyles?: StyleProp<TextStyle>;
|
|
26
|
+
opacity?: number;
|
|
27
|
+
onPress?: () => void;
|
|
28
|
+
imageStyles?: StyleProp<ImageStyle>;
|
|
29
|
+
rotateRight?: string;
|
|
30
|
+
rotateLeft?: string;
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
isLoading?: boolean;
|
|
33
|
+
itemCount?: number;
|
|
34
|
+
showCount?: boolean;
|
|
35
|
+
isCapital?: boolean;
|
|
36
|
+
borderRadius?: number;
|
|
37
|
+
RightIcon?: IconComponent;
|
|
38
|
+
LeftIcon?: IconComponent;
|
|
39
|
+
rightIconColor?: string;
|
|
40
|
+
leftIconColor?: string;
|
|
41
|
+
rightIconSize?: number;
|
|
42
|
+
leftIconSize?: number;
|
|
43
|
+
rightIconProps?: Record<string, unknown>;
|
|
44
|
+
leftIconProps?: Record<string, unknown>;
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/customButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EACV,mBAAmB,EACnB,UAAU,EACV,SAAS,EACT,SAAS,EACT,qBAAqB,EACrB,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,aAAa,GACrB,SAAS,GACT,SAAS,GACT,QAAQ,GACR,SAAS,GACT,MAAM,GACN,SAAS,GACT,WAAW,GACX,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACT,OAAO,GACP,MAAM,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE5C,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE7D,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEhD,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,qBAAqB,EAAE,UAAU,CAAC,GAAG;IACxE,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,wGAAwG;IACxG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAChC,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACpC,eAAe,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACvC,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ImageStyle, StyleProp, TextStyle } from 'react-native';
|
|
2
|
+
import type { DropDownItemImageAlign, DropDownListItem } from './types';
|
|
3
|
+
type DropDownBottomSheetProps = {
|
|
4
|
+
data: DropDownListItem[];
|
|
5
|
+
visible: boolean;
|
|
6
|
+
title?: string;
|
|
7
|
+
selectedText?: string;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
onSelect: (item: string, index: number) => void;
|
|
10
|
+
maxListHeight?: number;
|
|
11
|
+
itemImageAlign?: DropDownItemImageAlign;
|
|
12
|
+
itemImageGap?: number;
|
|
13
|
+
itemTextStyle?: StyleProp<TextStyle>;
|
|
14
|
+
itemImageStyle?: StyleProp<ImageStyle>;
|
|
15
|
+
};
|
|
16
|
+
declare const DropDownBottomSheet: ({ data, visible, title, selectedText, onClose, onSelect, maxListHeight, itemImageAlign, itemImageGap, itemTextStyle, itemImageStyle, }: DropDownBottomSheetProps) => import("react").JSX.Element;
|
|
17
|
+
export default DropDownBottomSheet;
|
|
18
|
+
//# sourceMappingURL=DropDownBottomSheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropDownBottomSheet.d.ts","sourceRoot":"","sources":["../../../../../src/components/customDropDown/DropDownBottomSheet.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIrE,OAAO,KAAK,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAExE,KAAK,wBAAwB,GAAG;IAC9B,IAAI,EAAE,gBAAgB,EAAE,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,sBAAsB,CAAC;IACxC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACrC,cAAc,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;CACxC,CAAC;AAEF,QAAA,MAAM,mBAAmB,GAAI,wIAY1B,wBAAwB,gCAkC1B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ImageStyle, type StyleProp, type TextStyle, type ViewStyle } from 'react-native';
|
|
2
|
+
import type { DropDownItemImageAlign, DropDownListItem as DropDownListItemType } from './types';
|
|
3
|
+
type DropDownListProps = {
|
|
4
|
+
data: DropDownListItemType[];
|
|
5
|
+
selectedText?: string;
|
|
6
|
+
onSelect: (item: string, index: number) => void;
|
|
7
|
+
maxHeight?: number;
|
|
8
|
+
itemImageAlign?: DropDownItemImageAlign;
|
|
9
|
+
itemImageGap?: number;
|
|
10
|
+
listStyle?: StyleProp<ViewStyle>;
|
|
11
|
+
itemTextStyle?: StyleProp<TextStyle>;
|
|
12
|
+
itemImageStyle?: StyleProp<ImageStyle>;
|
|
13
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
14
|
+
};
|
|
15
|
+
declare const DropDownList: ({ data, selectedText, onSelect, maxHeight, itemImageAlign, itemImageGap, listStyle, itemTextStyle, itemImageStyle, containerStyle, }: DropDownListProps) => import("react").JSX.Element;
|
|
16
|
+
export default DropDownList;
|
|
17
|
+
//# sourceMappingURL=DropDownList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropDownList.d.ts","sourceRoot":"","sources":["../../../../../src/components/customDropDown/DropDownList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAKtB,OAAO,KAAK,EACV,sBAAsB,EACtB,gBAAgB,IAAI,oBAAoB,EACzC,MAAM,SAAS,CAAC;AAGjB,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,oBAAoB,EAAE,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,sBAAsB,CAAC;IACxC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACjC,aAAa,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACrC,cAAc,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACvC,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACvC,CAAC;AAEF,QAAA,MAAM,YAAY,GAAI,sIAWnB,iBAAiB,gCAqCnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ImageStyle, type StyleProp, type TextStyle } from 'react-native';
|
|
2
|
+
import type { DropDownItemImageAlign, NormalizedDropDownOption } from './types';
|
|
3
|
+
type DropDownListItemProps = {
|
|
4
|
+
item: NormalizedDropDownOption;
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
isLast: boolean;
|
|
7
|
+
imageAlign: DropDownItemImageAlign;
|
|
8
|
+
imageGap: number;
|
|
9
|
+
itemTextStyle?: StyleProp<TextStyle>;
|
|
10
|
+
itemImageStyle?: StyleProp<ImageStyle>;
|
|
11
|
+
onPress: () => void;
|
|
12
|
+
};
|
|
13
|
+
declare const DropDownListItem: ({ item, isSelected, isLast, imageAlign, imageGap, itemTextStyle, itemImageStyle, onPress, }: DropDownListItemProps) => import("react").JSX.Element;
|
|
14
|
+
export default DropDownListItem;
|
|
15
|
+
//# sourceMappingURL=DropDownListItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropDownListItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/customDropDown/DropDownListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEhF,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,wBAAwB,CAAC;IAC/B,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,sBAAsB,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACrC,cAAc,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACvC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,gBAAgB,GAAI,6FASvB,qBAAqB,gCAsCvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ImageSourcePropType, type ImageStyle, type StyleProp, type TextStyle } from 'react-native';
|
|
2
|
+
import type { DropDownItemImageAlign, DropDownListItem } from './types';
|
|
3
|
+
type DropDownListModalProps = {
|
|
4
|
+
data: DropDownListItem[];
|
|
5
|
+
visible: boolean;
|
|
6
|
+
title?: string;
|
|
7
|
+
selectedText?: string;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
onSelect: (item: string, index: number) => void;
|
|
10
|
+
maxListHeight?: number;
|
|
11
|
+
itemImageAlign?: DropDownItemImageAlign;
|
|
12
|
+
itemImageGap?: number;
|
|
13
|
+
itemTextStyle?: StyleProp<TextStyle>;
|
|
14
|
+
itemImageStyle?: StyleProp<ImageStyle>;
|
|
15
|
+
closeImage?: ImageSourcePropType;
|
|
16
|
+
};
|
|
17
|
+
declare const DropDownListModal: ({ data, visible, title, selectedText, onClose, onSelect, maxListHeight, itemImageAlign, itemImageGap, itemTextStyle, itemImageStyle, closeImage, }: DropDownListModalProps) => import("react").JSX.Element;
|
|
18
|
+
export default DropDownListModal;
|
|
19
|
+
//# sourceMappingURL=DropDownListModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropDownListModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/customDropDown/DropDownListModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAKtB,OAAO,KAAK,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAExE,KAAK,sBAAsB,GAAG;IAC5B,IAAI,EAAE,gBAAgB,EAAE,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,sBAAsB,CAAC;IACxC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACrC,cAAc,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACvC,UAAU,CAAC,EAAE,mBAAmB,CAAC;CAClC,CAAC;AAEF,QAAA,MAAM,iBAAiB,GAAI,oJAaxB,sBAAsB,gCAuCxB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CustomDropDownProps } from './types';
|
|
2
|
+
declare const CustomDropDown: ({ mode, label, selectedText, listItems, onSelect, isSelected, disabled, placeholder, maxListHeight, itemImageAlign, itemImageGap, toggleImageAlign, itemImageStyle, toggleImageStyle, styleDropdown, labelTextStyle, dropdownTextStyles, listStyle, itemTextStyle, closeImage, }: CustomDropDownProps) => import("react").JSX.Element;
|
|
3
|
+
export default CustomDropDown;
|
|
4
|
+
export type { CustomDropDownProps, DropDownItemImageAlign, DropDownListItem, DropDownMode, DropDownOption, } from './types';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/customDropDown/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAGnD,QAAA,MAAM,cAAc,GAAI,kRAqBrB,mBAAmB,gCAsKrB,CAAC;AAEF,eAAe,cAAc,CAAC;AAC9B,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,YAAY,EACZ,cAAc,GACf,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
export declare const dropdownStyles: Readonly<{
|
|
2
|
+
container: {
|
|
3
|
+
justifyContent: "center";
|
|
4
|
+
width: string;
|
|
5
|
+
marginBottom: number;
|
|
6
|
+
};
|
|
7
|
+
labelText: {
|
|
8
|
+
marginBottom: number;
|
|
9
|
+
fontSize: number;
|
|
10
|
+
fontWeight: "600";
|
|
11
|
+
color: string;
|
|
12
|
+
};
|
|
13
|
+
toggleWrapper: {
|
|
14
|
+
position: "relative";
|
|
15
|
+
zIndex: number;
|
|
16
|
+
};
|
|
17
|
+
toggleWrapperOpen: {
|
|
18
|
+
zIndex: number;
|
|
19
|
+
};
|
|
20
|
+
dropDown: {
|
|
21
|
+
flexDirection: "row";
|
|
22
|
+
borderWidth: number;
|
|
23
|
+
borderColor: string;
|
|
24
|
+
borderRadius: number;
|
|
25
|
+
justifyContent: "space-between";
|
|
26
|
+
alignItems: "center";
|
|
27
|
+
paddingVertical: number;
|
|
28
|
+
paddingHorizontal: number;
|
|
29
|
+
backgroundColor: string;
|
|
30
|
+
};
|
|
31
|
+
dropDownDisabled: {
|
|
32
|
+
backgroundColor: string;
|
|
33
|
+
opacity: number;
|
|
34
|
+
};
|
|
35
|
+
selectedText: {
|
|
36
|
+
flex: number;
|
|
37
|
+
fontSize: number;
|
|
38
|
+
fontWeight: "700";
|
|
39
|
+
color: string;
|
|
40
|
+
};
|
|
41
|
+
selectedTextActive: {
|
|
42
|
+
color: string;
|
|
43
|
+
};
|
|
44
|
+
arrow: {
|
|
45
|
+
fontSize: number;
|
|
46
|
+
color: string;
|
|
47
|
+
marginLeft: number;
|
|
48
|
+
};
|
|
49
|
+
list: {
|
|
50
|
+
borderWidth: number;
|
|
51
|
+
borderColor: string;
|
|
52
|
+
borderRadius: number;
|
|
53
|
+
backgroundColor: string;
|
|
54
|
+
overflow: "hidden";
|
|
55
|
+
};
|
|
56
|
+
inlineList: {
|
|
57
|
+
marginTop: number;
|
|
58
|
+
};
|
|
59
|
+
anchoredList: {
|
|
60
|
+
position: "absolute";
|
|
61
|
+
top: string;
|
|
62
|
+
left: number;
|
|
63
|
+
right: number;
|
|
64
|
+
marginTop: number;
|
|
65
|
+
shadowColor: string;
|
|
66
|
+
shadowOffset: {
|
|
67
|
+
width: number;
|
|
68
|
+
height: number;
|
|
69
|
+
};
|
|
70
|
+
shadowOpacity: number;
|
|
71
|
+
shadowRadius: number;
|
|
72
|
+
elevation: number;
|
|
73
|
+
};
|
|
74
|
+
listItem: {
|
|
75
|
+
paddingVertical: number;
|
|
76
|
+
paddingHorizontal: number;
|
|
77
|
+
borderBottomWidth: number;
|
|
78
|
+
borderBottomColor: string;
|
|
79
|
+
};
|
|
80
|
+
listItemLast: {
|
|
81
|
+
borderBottomWidth: number;
|
|
82
|
+
};
|
|
83
|
+
itemRow: {
|
|
84
|
+
flexDirection: "row";
|
|
85
|
+
alignItems: "center";
|
|
86
|
+
};
|
|
87
|
+
itemRowImageRight: {
|
|
88
|
+
justifyContent: "space-between";
|
|
89
|
+
};
|
|
90
|
+
itemImage: {
|
|
91
|
+
width: number;
|
|
92
|
+
height: number;
|
|
93
|
+
};
|
|
94
|
+
toggleImage: {
|
|
95
|
+
width: number;
|
|
96
|
+
height: number;
|
|
97
|
+
};
|
|
98
|
+
itemText: {
|
|
99
|
+
flex: number;
|
|
100
|
+
fontSize: number;
|
|
101
|
+
fontWeight: "400";
|
|
102
|
+
color: string;
|
|
103
|
+
};
|
|
104
|
+
itemTextWithRightImage: {
|
|
105
|
+
flex: number;
|
|
106
|
+
marginRight: number;
|
|
107
|
+
};
|
|
108
|
+
itemTextSelected: {
|
|
109
|
+
fontWeight: "700";
|
|
110
|
+
color: string;
|
|
111
|
+
};
|
|
112
|
+
modalContainer: {
|
|
113
|
+
flex: number;
|
|
114
|
+
backgroundColor: string;
|
|
115
|
+
justifyContent: "center";
|
|
116
|
+
alignItems: "center";
|
|
117
|
+
};
|
|
118
|
+
modalContent: {
|
|
119
|
+
width: string;
|
|
120
|
+
maxWidth: number;
|
|
121
|
+
maxHeight: string;
|
|
122
|
+
backgroundColor: string;
|
|
123
|
+
borderRadius: number;
|
|
124
|
+
paddingHorizontal: number;
|
|
125
|
+
paddingTop: number;
|
|
126
|
+
paddingBottom: number;
|
|
127
|
+
overflow: "hidden";
|
|
128
|
+
};
|
|
129
|
+
modalHeader: {
|
|
130
|
+
flexDirection: "row";
|
|
131
|
+
alignItems: "center";
|
|
132
|
+
justifyContent: "space-between";
|
|
133
|
+
marginBottom: number;
|
|
134
|
+
gap: number;
|
|
135
|
+
};
|
|
136
|
+
modalTitle: {
|
|
137
|
+
flex: number;
|
|
138
|
+
fontSize: number;
|
|
139
|
+
fontWeight: "700";
|
|
140
|
+
color: string;
|
|
141
|
+
};
|
|
142
|
+
modalCloseButton: {
|
|
143
|
+
position: "relative";
|
|
144
|
+
top: number;
|
|
145
|
+
right: number;
|
|
146
|
+
};
|
|
147
|
+
modalList: {
|
|
148
|
+
borderWidth: number;
|
|
149
|
+
borderRadius: number;
|
|
150
|
+
};
|
|
151
|
+
bottomSheetBackdrop: {
|
|
152
|
+
flex: number;
|
|
153
|
+
backgroundColor: string;
|
|
154
|
+
justifyContent: "flex-end";
|
|
155
|
+
};
|
|
156
|
+
bottomSheetContent: {
|
|
157
|
+
backgroundColor: string;
|
|
158
|
+
borderTopLeftRadius: number;
|
|
159
|
+
borderTopRightRadius: number;
|
|
160
|
+
paddingTop: number;
|
|
161
|
+
paddingBottom: number;
|
|
162
|
+
paddingHorizontal: number;
|
|
163
|
+
maxHeight: string;
|
|
164
|
+
};
|
|
165
|
+
bottomSheetHandle: {
|
|
166
|
+
alignSelf: "center";
|
|
167
|
+
width: number;
|
|
168
|
+
height: number;
|
|
169
|
+
borderRadius: number;
|
|
170
|
+
backgroundColor: string;
|
|
171
|
+
marginBottom: number;
|
|
172
|
+
};
|
|
173
|
+
bottomSheetTitle: {
|
|
174
|
+
fontSize: number;
|
|
175
|
+
fontWeight: "700";
|
|
176
|
+
color: string;
|
|
177
|
+
marginBottom: number;
|
|
178
|
+
};
|
|
179
|
+
bottomSheetList: {
|
|
180
|
+
borderWidth: number;
|
|
181
|
+
};
|
|
182
|
+
backdropDismiss: {
|
|
183
|
+
position: "absolute";
|
|
184
|
+
left: 0;
|
|
185
|
+
right: 0;
|
|
186
|
+
top: 0;
|
|
187
|
+
bottom: 0;
|
|
188
|
+
};
|
|
189
|
+
}>;
|
|
190
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/customDropDown/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqLzB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { ImageSourcePropType, ImageStyle, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
export type DropDownMode = 'modal' | 'inline' | 'anchored' | 'bottomSheet';
|
|
3
|
+
export type DropDownItemImageAlign = 'left' | 'right';
|
|
4
|
+
export interface DropDownOption {
|
|
5
|
+
label: string;
|
|
6
|
+
value?: string;
|
|
7
|
+
image?: ImageSourcePropType;
|
|
8
|
+
}
|
|
9
|
+
export type DropDownListItem = string | DropDownOption;
|
|
10
|
+
export interface CustomDropDownProps {
|
|
11
|
+
mode?: DropDownMode;
|
|
12
|
+
label?: string;
|
|
13
|
+
selectedText: string;
|
|
14
|
+
listItems: DropDownListItem[];
|
|
15
|
+
onSelect: (item: string, index: number) => void;
|
|
16
|
+
isSelected?: boolean;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
maxListHeight?: number;
|
|
20
|
+
itemImageAlign?: DropDownItemImageAlign;
|
|
21
|
+
itemImageGap?: number;
|
|
22
|
+
toggleImageAlign?: DropDownItemImageAlign;
|
|
23
|
+
itemImageStyle?: StyleProp<ImageStyle>;
|
|
24
|
+
toggleImageStyle?: StyleProp<ImageStyle>;
|
|
25
|
+
styleDropdown?: StyleProp<ViewStyle>;
|
|
26
|
+
labelTextStyle?: StyleProp<TextStyle>;
|
|
27
|
+
dropdownTextStyles?: StyleProp<TextStyle>;
|
|
28
|
+
listStyle?: StyleProp<ViewStyle>;
|
|
29
|
+
itemTextStyle?: StyleProp<TextStyle>;
|
|
30
|
+
closeImage?: ImageSourcePropType;
|
|
31
|
+
}
|
|
32
|
+
export type NormalizedDropDownOption = {
|
|
33
|
+
label: string;
|
|
34
|
+
value: string;
|
|
35
|
+
image?: ImageSourcePropType;
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/customDropDown/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,UAAU,EACV,SAAS,EACT,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,aAAa,CAAC;AAE3E,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,OAAO,CAAC;AAEtD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,mBAAmB,CAAC;CAC7B;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,cAAc,CAAC;AAEvD,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,gBAAgB,EAAE,CAAC;IAC9B,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,sBAAsB,CAAC;IACxC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAC1C,cAAc,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACvC,gBAAgB,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACzC,aAAa,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACrC,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,kBAAkB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC1C,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACjC,aAAa,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACrC,UAAU,CAAC,EAAE,mBAAmB,CAAC;CAClC;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,mBAAmB,CAAC;CAC7B,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { DropDownListItem, NormalizedDropDownOption } from './types';
|
|
2
|
+
export declare const normalizeListItems: (items: DropDownListItem[]) => NormalizedDropDownOption[];
|
|
3
|
+
export declare const findSelectedOption: (items: NormalizedDropDownOption[], selectedText?: string) => NormalizedDropDownOption | undefined;
|
|
4
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/customDropDown/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAE1E,eAAO,MAAM,kBAAkB,GAC7B,OAAO,gBAAgB,EAAE,KACxB,wBAAwB,EAWvB,CAAC;AAEL,eAAO,MAAM,kBAAkB,GAC7B,OAAO,wBAAwB,EAAE,EACjC,eAAe,MAAM,yCAIpB,CAAC"}
|