@codeleap/mobile 5.8.21 → 6.1.2
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/dist/Registry.js.map +1 -1
- package/dist/components/ActionIcon/index.d.ts +2 -3
- package/dist/components/ActionIcon/index.js +5 -11
- package/dist/components/ActionIcon/index.js.map +1 -1
- package/dist/components/ActivityIndicator/index.d.ts +2 -2
- package/dist/components/ActivityIndicator/index.js +2 -2
- package/dist/components/ActivityIndicator/index.js.map +1 -1
- package/dist/components/ActivityIndicator/types.d.ts +0 -1
- package/dist/components/Autocomplete/index.d.ts +2 -3
- package/dist/components/Autocomplete/index.js +15 -18
- package/dist/components/Autocomplete/index.js.map +1 -1
- package/dist/components/Autocomplete/types.d.ts +1 -2
- package/dist/components/Avatar/components/Badge.d.ts +1 -2
- package/dist/components/Avatar/components/Badge.js +2 -2
- package/dist/components/Avatar/components/Badge.js.map +1 -1
- package/dist/components/Avatar/components/Content.d.ts +1 -1
- package/dist/components/Avatar/components/Content.js +3 -7
- package/dist/components/Avatar/components/Content.js.map +1 -1
- package/dist/components/Avatar/components/Illustration.d.ts +1 -2
- package/dist/components/Avatar/components/Illustration.js +2 -5
- package/dist/components/Avatar/components/Illustration.js.map +1 -1
- package/dist/components/Avatar/components/OverlayIcon.d.ts +1 -2
- package/dist/components/Avatar/components/OverlayIcon.js +2 -3
- package/dist/components/Avatar/components/OverlayIcon.js.map +1 -1
- package/dist/components/Avatar/components/Text.d.ts +1 -2
- package/dist/components/Avatar/components/Text.js +2 -1
- package/dist/components/Avatar/components/Text.js.map +1 -1
- package/dist/components/Avatar/components/Wrapper.d.ts +1 -2
- package/dist/components/Avatar/components/Wrapper.js +3 -6
- package/dist/components/Avatar/components/Wrapper.js.map +1 -1
- package/dist/components/Avatar/context.d.ts +108 -111
- package/dist/components/Avatar/context.js.map +1 -1
- package/dist/components/Avatar/index.d.ts +6 -7
- package/dist/components/Avatar/index.js +2 -6
- package/dist/components/Avatar/index.js.map +1 -1
- package/dist/components/AvatarGroup/index.d.ts +2 -3
- package/dist/components/AvatarGroup/index.js +2 -4
- package/dist/components/AvatarGroup/index.js.map +1 -1
- package/dist/components/Backdrop/index.d.ts +2 -3
- package/dist/components/Backdrop/index.js +4 -8
- package/dist/components/Backdrop/index.js.map +1 -1
- package/dist/components/Badge/index.d.ts +2 -3
- package/dist/components/Badge/index.js +5 -9
- package/dist/components/Badge/index.js.map +1 -1
- package/dist/components/Badge/types.d.ts +1 -2
- package/dist/components/Button/index.js +3 -9
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Calendar/index.d.ts +2 -3
- package/dist/components/Calendar/index.js +5 -4
- package/dist/components/Calendar/index.js.map +1 -1
- package/dist/components/CalendarInput/index.d.ts +2 -3
- package/dist/components/CalendarInput/index.js +11 -12
- package/dist/components/CalendarInput/index.js.map +1 -1
- package/dist/components/Checkbox/index.d.ts +2 -3
- package/dist/components/Checkbox/index.js +9 -15
- package/dist/components/Checkbox/index.js.map +1 -1
- package/dist/components/Collapse/index.d.ts +6 -0
- package/dist/components/Collapse/index.js +42 -0
- package/dist/components/Collapse/index.js.map +1 -0
- package/dist/components/Collapse/types.d.ts +14 -0
- package/dist/components/Collapse/types.js.map +1 -0
- package/dist/components/DatePickerModal/index.d.ts +2 -3
- package/dist/components/DatePickerModal/index.js +13 -21
- package/dist/components/DatePickerModal/index.js.map +1 -1
- package/dist/components/EmptyPlaceholder/components/Button.d.ts +1 -2
- package/dist/components/EmptyPlaceholder/components/Button.js +2 -2
- package/dist/components/EmptyPlaceholder/components/Button.js.map +1 -1
- package/dist/components/EmptyPlaceholder/components/Content.d.ts +1 -1
- package/dist/components/EmptyPlaceholder/components/Content.js +6 -8
- package/dist/components/EmptyPlaceholder/components/Content.js.map +1 -1
- package/dist/components/EmptyPlaceholder/components/Illustration.d.ts +1 -2
- package/dist/components/EmptyPlaceholder/components/Illustration.js +2 -5
- package/dist/components/EmptyPlaceholder/components/Illustration.js.map +1 -1
- package/dist/components/EmptyPlaceholder/components/Info.d.ts +1 -2
- package/dist/components/EmptyPlaceholder/components/Info.js +2 -5
- package/dist/components/EmptyPlaceholder/components/Info.js.map +1 -1
- package/dist/components/EmptyPlaceholder/components/Loading.d.ts +1 -2
- package/dist/components/EmptyPlaceholder/components/Loading.js +3 -4
- package/dist/components/EmptyPlaceholder/components/Loading.js.map +1 -1
- package/dist/components/EmptyPlaceholder/context.d.ts +4 -5
- package/dist/components/EmptyPlaceholder/context.js.map +1 -1
- package/dist/components/EmptyPlaceholder/index.d.ts +5 -6
- package/dist/components/EmptyPlaceholder/index.js +2 -6
- package/dist/components/EmptyPlaceholder/index.js.map +1 -1
- package/dist/components/FileInput/index.d.ts +1 -1
- package/dist/components/FileInput/index.js +1 -1
- package/dist/components/FileInput/index.js.map +1 -1
- package/dist/components/Grid/index.js +11 -10
- package/dist/components/Grid/index.js.map +1 -1
- package/dist/components/Grid/types.d.ts +0 -1
- package/dist/components/Icon/index.d.ts +1 -2
- package/dist/components/Icon/index.js +3 -5
- package/dist/components/Icon/index.js.map +1 -1
- package/dist/components/Image/index.js +9 -15
- package/dist/components/Image/index.js.map +1 -1
- package/dist/components/Image/types.d.ts +1 -2
- package/dist/components/ImageView/Spotlight.d.ts +4 -4
- package/dist/components/ImageView/Spotlight.js +4 -5
- package/dist/components/ImageView/Spotlight.js.map +1 -1
- package/dist/components/ImageView/component.d.ts +1 -2
- package/dist/components/ImageView/component.js +4 -2
- package/dist/components/ImageView/component.js.map +1 -1
- package/dist/components/InputBase/index.js +3 -16
- package/dist/components/InputBase/index.js.map +1 -1
- package/dist/components/InputBase/types.d.ts +3 -4
- package/dist/components/InputBase/useInputBase.d.ts +2 -3
- package/dist/components/InputBase/useInputBase.js +1 -1
- package/dist/components/InputBase/useInputBase.js.map +1 -1
- package/dist/components/InputBase/useInputBasePartialStyles.js.map +1 -1
- package/dist/components/InputOverlay/index.d.ts +3 -4
- package/dist/components/InputOverlay/index.js +6 -21
- package/dist/components/InputOverlay/index.js.map +1 -1
- package/dist/components/InputOverlay/store.js.map +1 -1
- package/dist/components/List/index.js +5 -4
- package/dist/components/List/index.js.map +1 -1
- package/dist/components/List/types.d.ts +0 -1
- package/dist/components/LoadingOverlay/index.d.ts +2 -3
- package/dist/components/LoadingOverlay/index.js +5 -7
- package/dist/components/LoadingOverlay/index.js.map +1 -1
- package/dist/components/Modal/index.d.ts +2 -3
- package/dist/components/Modal/index.js +13 -39
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Modal/types.d.ts +0 -1
- package/dist/components/NumberIncrement/index.js +5 -7
- package/dist/components/NumberIncrement/index.js.map +1 -1
- package/dist/components/NumberIncrement/useNumberIncrement.d.ts +3 -4
- package/dist/components/NumberIncrement/useNumberIncrement.js.map +1 -1
- package/dist/components/Pager/PagerDots.d.ts +1 -2
- package/dist/components/Pager/PagerDots.js +3 -6
- package/dist/components/Pager/PagerDots.js.map +1 -1
- package/dist/components/Pager/PagerItem.d.ts +1 -2
- package/dist/components/Pager/PagerItem.js +3 -2
- package/dist/components/Pager/PagerItem.js.map +1 -1
- package/dist/components/Pager/index.d.ts +2 -3
- package/dist/components/Pager/index.js +9 -16
- package/dist/components/Pager/index.js.map +1 -1
- package/dist/components/Pager/types.d.ts +2 -2
- package/dist/components/PaginationIndicator/index.d.ts +2 -3
- package/dist/components/PaginationIndicator/index.js +3 -3
- package/dist/components/PaginationIndicator/index.js.map +1 -1
- package/dist/components/PaginationIndicator/types.d.ts +2 -3
- package/dist/components/PlacesAutocomplete/index.d.ts +6 -7
- package/dist/components/PlacesAutocomplete/index.js +11 -17
- package/dist/components/PlacesAutocomplete/index.js.map +1 -1
- package/dist/components/PlacesAutocomplete/types.d.ts +3 -4
- package/dist/components/RadioInput/index.d.ts +2 -3
- package/dist/components/RadioInput/index.js +4 -22
- package/dist/components/RadioInput/index.js.map +1 -1
- package/dist/components/RefreshControl/index.d.ts +2 -3
- package/dist/components/RefreshControl/index.js +2 -2
- package/dist/components/RefreshControl/index.js.map +1 -1
- package/dist/components/Scroll/index.d.ts +2 -3
- package/dist/components/Scroll/index.js +9 -12
- package/dist/components/Scroll/index.js.map +1 -1
- package/dist/components/SearchInput/index.d.ts +7 -4
- package/dist/components/SearchInput/index.js +4 -3
- package/dist/components/SearchInput/index.js.map +1 -1
- package/dist/components/SectionFilters/context.d.ts +3 -24
- package/dist/components/SectionFilters/index.d.ts +1 -2
- package/dist/components/SectionFilters/index.js +5 -7
- package/dist/components/SectionFilters/index.js.map +1 -1
- package/dist/components/SectionFilters/useSectionFilters.js.map +1 -1
- package/dist/components/Sections/index.d.ts +2 -3
- package/dist/components/Sections/index.js +5 -4
- package/dist/components/Sections/index.js.map +1 -1
- package/dist/components/Sections/types.d.ts +0 -1
- package/dist/components/SegmentedControl/Option.d.ts +1 -1
- package/dist/components/SegmentedControl/Option.js +7 -13
- package/dist/components/SegmentedControl/Option.js.map +1 -1
- package/dist/components/SegmentedControl/index.js +16 -26
- package/dist/components/SegmentedControl/index.js.map +1 -1
- package/dist/components/SegmentedControl/types.d.ts +2 -3
- package/dist/components/Select/index.d.ts +2 -3
- package/dist/components/Select/index.js +20 -25
- package/dist/components/Select/index.js.map +1 -1
- package/dist/components/Select/types.d.ts +2 -3
- package/dist/components/Slider/index.d.ts +2 -3
- package/dist/components/Slider/index.js +23 -38
- package/dist/components/Slider/index.js.map +1 -1
- package/dist/components/Slider/types.d.ts +0 -1
- package/dist/components/SortablePhotos/index.d.ts +2 -3
- package/dist/components/SortablePhotos/index.js +7 -18
- package/dist/components/SortablePhotos/index.js.map +1 -1
- package/dist/components/SortablePhotos/useSortablePhotos.d.ts +0 -2
- package/dist/components/SortablePhotos/useSortablePhotos.js.map +1 -1
- package/dist/components/Switch/index.d.ts +2 -3
- package/dist/components/Switch/index.js +9 -13
- package/dist/components/Switch/index.js.map +1 -1
- package/dist/components/Tabs/Context.d.ts +2 -3
- package/dist/components/Tabs/Context.js +2 -1
- package/dist/components/Tabs/Context.js.map +1 -1
- package/dist/components/Tabs/Panel.d.ts +1 -1
- package/dist/components/Tabs/Panel.js +3 -5
- package/dist/components/Tabs/Panel.js.map +1 -1
- package/dist/components/Tabs/Tab.d.ts +1 -2
- package/dist/components/Tabs/Tab.js +12 -16
- package/dist/components/Tabs/Tab.js.map +1 -1
- package/dist/components/Tabs/TabList.d.ts +1 -2
- package/dist/components/Tabs/TabList.js +2 -1
- package/dist/components/Tabs/TabList.js.map +1 -1
- package/dist/components/Tabs/index.d.ts +197 -192
- package/dist/components/Tabs/index.js +2 -6
- package/dist/components/Tabs/index.js.map +1 -1
- package/dist/components/Text/index.js +5 -7
- package/dist/components/Text/index.js.map +1 -1
- package/dist/components/Text/types.d.ts +2 -2
- package/dist/components/TextInput/index.js +13 -14
- package/dist/components/TextInput/index.js.map +1 -1
- package/dist/components/TextInput/types.d.ts +0 -1
- package/dist/components/TextInput/useTextInput.d.ts +2 -3
- package/dist/components/TimeInput/index.d.ts +2 -3
- package/dist/components/TimeInput/index.js +8 -12
- package/dist/components/TimeInput/index.js.map +1 -1
- package/dist/components/Touchable/index.js +5 -10
- package/dist/components/Touchable/index.js.map +1 -1
- package/dist/components/Touchable/types.d.ts +0 -1
- package/dist/components/View/index.d.ts +4 -6
- package/dist/components/View/index.js +4 -3
- package/dist/components/View/index.js.map +1 -1
- package/dist/components/View/types.d.ts +2 -3
- package/dist/components/components.d.ts +1 -0
- package/dist/components/components.js +1 -0
- package/dist/components/components.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/modules/PressableRipple/ripple.d.ts +2 -2
- package/dist/modules/PressableRipple/ripple.js +4 -11
- package/dist/modules/PressableRipple/ripple.js.map +1 -1
- package/dist/modules/PressableRipple/styles.d.ts +5 -5
- package/dist/modules/backgroundTimer.js.map +1 -1
- package/dist/modules/reactNavigation.js.map +1 -1
- package/dist/modules/scroll.d.ts +3 -3
- package/dist/modules/scroll.js +3 -4
- package/dist/modules/scroll.js.map +1 -1
- package/dist/modules/textInputMask.d.ts +1 -2
- package/dist/types/index.d.ts +2 -3
- package/dist/types/utility.d.ts +2 -2
- package/dist/utils/NotificationManager/index.js.map +1 -1
- package/dist/utils/OSAlert.js.map +1 -1
- package/dist/utils/StorageManager.js.map +1 -1
- package/dist/utils/Subscription.js.map +1 -1
- package/dist/utils/hooks.d.ts +3 -3
- package/dist/utils/hooks.js.map +1 -1
- package/dist/utils/input.d.ts +1 -1
- package/dist/utils/input.js.map +1 -1
- package/dist/utils/misc.d.ts +0 -1
- package/dist/utils/misc.js.map +1 -1
- package/dist/utils/useQueryListRefresh.js.map +1 -1
- package/package.json +30 -32
- package/package.json.bak +14 -16
- package/src/components/Autocomplete/types.ts +1 -1
- package/src/components/Badge/types.ts +1 -1
- package/src/components/Collapse/index.tsx +70 -0
- package/src/components/Collapse/types.ts +16 -0
- package/src/components/FileInput/index.tsx +2 -2
- package/src/components/Image/types.ts +1 -1
- package/src/components/ImageView/Spotlight.tsx +2 -2
- package/src/components/ImageView/component.tsx +1 -0
- package/src/components/InputBase/types.ts +3 -3
- package/src/components/InputBase/useInputBase.ts +1 -1
- package/src/components/Pager/PagerItem.tsx +1 -1
- package/src/components/Pager/index.tsx +1 -0
- package/src/components/Pager/types.ts +1 -1
- package/src/components/PaginationIndicator/types.ts +2 -2
- package/src/components/PlacesAutocomplete/types.ts +3 -3
- package/src/components/Scroll/index.tsx +1 -1
- package/src/components/SearchInput/index.tsx +7 -3
- package/src/components/SectionFilters/index.tsx +1 -1
- package/src/components/SegmentedControl/types.ts +2 -2
- package/src/components/Select/types.ts +2 -2
- package/src/components/Slider/index.tsx +1 -0
- package/src/components/Text/types.ts +2 -2
- package/src/components/View/index.tsx +1 -1
- package/src/components/View/types.ts +2 -2
- package/src/components/components.ts +2 -1
- package/src/index.ts +0 -1
- package/src/modules/scroll.tsx +1 -1
- package/src/types/index.ts +2 -2
- package/src/types/utility.ts +2 -2
- package/src/utils/hooks.ts +3 -3
- package/dist/deprecated/index.d.ts +0 -2
- package/dist/deprecated/index.js +0 -5
- package/dist/deprecated/index.js.map +0 -1
- package/dist/deprecated/modals/Context.d.ts +0 -48
- package/dist/deprecated/modals/Context.js +0 -187
- package/dist/deprecated/modals/Context.js.map +0 -1
- package/dist/deprecated/modals/components.d.ts +0 -15
- package/dist/deprecated/modals/components.js +0 -53
- package/dist/deprecated/modals/components.js.map +0 -1
- package/dist/deprecated/modals/index.d.ts +0 -10
- package/dist/deprecated/modals/index.js +0 -9
- package/dist/deprecated/modals/index.js.map +0 -1
- package/dist/deprecated/permissions/Context.d.ts +0 -53
- package/dist/deprecated/permissions/Context.js +0 -208
- package/dist/deprecated/permissions/Context.js.map +0 -1
- package/dist/deprecated/permissions/index.d.ts +0 -5
- package/dist/deprecated/permissions/index.js +0 -4
- package/dist/deprecated/permissions/index.js.map +0 -1
- package/dist/deprecated/permissions/package/Manager.d.ts +0 -23
- package/dist/deprecated/permissions/package/Manager.js +0 -84
- package/dist/deprecated/permissions/package/Manager.js.map +0 -1
- package/dist/deprecated/permissions/package/Permission.d.ts +0 -19
- package/dist/deprecated/permissions/package/Permission.js +0 -65
- package/dist/deprecated/permissions/package/Permission.js.map +0 -1
- package/dist/deprecated/permissions/package/index.d.ts +0 -3
- package/dist/deprecated/permissions/package/index.js +0 -5
- package/dist/deprecated/permissions/package/index.js.map +0 -1
- package/dist/deprecated/permissions/package/types.d.ts +0 -31
- package/dist/deprecated/permissions/package/types.js +0 -2
- package/dist/deprecated/permissions/package/types.js.map +0 -1
- package/dist/deprecated/permissions/types.d.ts +0 -16
- package/dist/deprecated/permissions/types.js.map +0 -1
- package/mobile-packages.code-workspace +0 -27
- package/src/deprecated/index.ts +0 -2
- package/src/deprecated/modals/Context.tsx +0 -259
- package/src/deprecated/modals/components.tsx +0 -84
- package/src/deprecated/modals/index.ts +0 -13
- package/src/deprecated/permissions/Context.tsx +0 -316
- package/src/deprecated/permissions/index.ts +0 -16
- package/src/deprecated/permissions/package/Manager.ts +0 -123
- package/src/deprecated/permissions/package/Permission.ts +0 -79
- package/src/deprecated/permissions/package/index.ts +0 -3
- package/src/deprecated/permissions/package/types.ts +0 -43
- package/src/deprecated/permissions/types.ts +0 -27
- /package/dist/{deprecated/permissions → components/Collapse}/types.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subscription.js","sourceRoot":"","sources":["../../src/utils/Subscription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,MAAM,YAAY;IACT,WAAW,GAA6B,EAA8B,CAAA;IAErE,QAAQ,GAAQ,EAAE,CAAA;IAE1B,IAAI,OAAO;QACT,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IACrC,CAAC;IAED,SAAS,CAAC,GAAM,EAAE,EAAiB;QACjC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,EAAE,CAAA;QAE1B,OAAO,GAAG,EAAE;YACV,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAA;QAC9B,CAAC,CAAA;IACH,CAAC;IAED,aAAa,CAAC,GAAM;QAClB,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAA;IAC9B,CAAC;IAED,iBAAiB,CAAC,GAAM;QACtB,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAA;IAC9B,CAAC;IAED,kBAAkB;QAChB,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;IACtC,CAAC;IAED,MAAM,CAAC,CAAI;QACT,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;QAErB,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"Subscription.js","sourceRoot":"","sources":["../../src/utils/Subscription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,MAAM,YAAY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AAC,GAAG,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;IAE9D,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,OAAO,YAAY,CAAC,SAAS,CAAC,sBAAsB,EAAE,CAAC,CAAC,EAAE;YACxD,QAAQ,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,CAAA;QACzB,CAAC,CAAC,CAAA;IACJ,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,KAAK,CAAA;AACd,CAAC;AAED,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,CAAA"}
|
package/dist/utils/hooks.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Animated, ViewStyle, ImageStyle, TextStyle, StyleProp } from 'react-native';
|
|
2
|
-
import {
|
|
2
|
+
import { AnimatedStyle, EasingFunction } from 'react-native-reanimated';
|
|
3
3
|
import { PressableRippleProps } from '../modules/PressableRipple/type';
|
|
4
4
|
export declare function useAnimateColor(value: string, opts?: Partial<Animated.TimingAnimationConfig>): Animated.AnimatedInterpolation<string | number>;
|
|
5
5
|
type SelectProperties<T extends Record<string | number | symbol, any>, K extends keyof T> = {
|
|
@@ -10,13 +10,13 @@ type AnimatableProperties = 'scale' | 'scaleX' | 'scaleY' | 'translateX' | 'tran
|
|
|
10
10
|
type VariantTransitionConfig = {
|
|
11
11
|
type: 'timing';
|
|
12
12
|
duration?: number;
|
|
13
|
-
easing?:
|
|
13
|
+
easing?: EasingFunction;
|
|
14
14
|
};
|
|
15
15
|
export type TransitionConfig = Partial<Record<AnimatableProperties, VariantTransitionConfig>> | VariantTransitionConfig;
|
|
16
16
|
type UseAnimatedVariantStylesConfig<T extends Record<string | number | symbol, any>, K extends keyof T> = {
|
|
17
17
|
variantStyles: T;
|
|
18
18
|
animatedProperties: K[];
|
|
19
|
-
updater: (states: SelectProperties<T, K>) =>
|
|
19
|
+
updater: (states: SelectProperties<T, K>) => AnimatedStyle<ViewStyle | ImageStyle | TextStyle>;
|
|
20
20
|
transition?: TransitionConfig;
|
|
21
21
|
dependencies?: any[];
|
|
22
22
|
};
|
package/dist/utils/hooks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../src/utils/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAoC,UAAU,EAAa,MAAM,cAAc,CAAA;AACvH,OAAO,
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../src/utils/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAoC,UAAU,EAAa,MAAM,cAAc,CAAA;AACvH,OAAO,EAAiB,MAAM,EAAkB,gBAAgB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAE7G,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAEhD,MAAM,UAAU,eAAe,CAAC,KAAa,EAAE,IAA8C;IAC3F,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;IACvB,MAAM,CAAC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,aAAa,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;AACrG,CAAC"}
|
package/dist/utils/input.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare const mobileInputPresets: {
|
|
|
23
23
|
search: () => {
|
|
24
24
|
returnKeyType: "search";
|
|
25
25
|
};
|
|
26
|
-
redeemCode: (action?:
|
|
26
|
+
redeemCode: (action?: "join" | "obtain") => {
|
|
27
27
|
returnKeyType: "join";
|
|
28
28
|
textContentType: "oneTimeCode";
|
|
29
29
|
autoComplete: "sms-otp";
|
package/dist/utils/input.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../src/utils/input.ts"],"names":[],"mappings":"AAEA,MAAM,kBAAkB,GAAG,CAAuE,CAAG,EAAI,EAAE;IACzG,OAAO,CAAC,CAAA;AACV,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,kBAAkB,CAAC;IACnD,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;QACZ,YAAY,EAAE,eAAe;QAC7B,cAAc,EAAE,MAAM;QACtB,YAAY,EAAE,OAAO;QACrB,eAAe,EAAE,cAAc;KAEhC,CAAC;IACF,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;QACX,cAAc,EAAE,OAAO;QACvB,YAAY,EAAE,MAAM;QACpB,eAAe,EAAE,MAAM;KAExB,CAAC;IACF,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;QACX,aAAa,EAAE,MAAM;KAEtB,CAAC;IACF,QAAQ,EAAE,CAAC,OAAyB,EAAE,EAAE;QACtC,OAAO;YACL,cAAc,EAAE,MAAM;YACtB,YAAY,EAAE,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,UAAU;YACxD,eAAe,EAAE,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,UAAU;SAC3D,CA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AChC,IAAI,MAAM,EAAE,CAAC;YACX,OAAO;gBACL,aAAa,EAAE,MAAM;gBACrB,eAAe,EAAE,aAAa;gBAC9B,YAAY,EAAE,SAAS;aACxB,CAAA;QACH,CAAC;QACD,OAAO;YACL,aAAa,EAAE,MAAM;YACrB,eAAe,EAAE,aAAa;YAC9B,YAAY,EAAE,SAAS;SACxB,CAAA;IAEH,CAAC;CACF,CAAC,CAAA"}
|
package/dist/utils/misc.d.ts
CHANGED
package/dist/utils/misc.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../src/utils/misc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgD,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAEnD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,GAAW,EAAmB,EAAE;IAC3D,IAAI,CAAC,GAAG,EAAE;
|
|
1
|
+
{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../src/utils/misc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgD,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAEnD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,GAAW,EAAmB,EAAE;IAC3D,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,OAAO;YACL,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,IAAI;SACd,CAAA;IACH,CAAC;IACD,MAAM,QAAQ,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAA;IAEvC,MAAM,IAAI,GAAe;QACvB,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAC,SAAS;QACnC,IAAI,EAAE,IAAI;QACV,GAAG,EAAE,GAAG;QACR,WAAW,EAAE,GAAG;KACjB,CAAA;IAED,O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,IAAI,CAAA;oBAC3B,YAAY,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;oBAClC,YAAY,CAAC,OAAO,GAAG,IAAI,CAAA;gBAC7B,CAAC,EAAE,SAAS,CAAC,CAAA;YACf,CAAC;YAED,IAAI,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;gBAClC,MAAM,EAAE,EAAE,CAAA;YACZ,CAAC;QACH,CAAC,CAAA;IACH,CAAC,EAAE,EAAE,CAAC,CACP,CAAA;AACH,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codeleap/mobile",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.1.2",
|
|
4
4
|
"main": "src/index.ts",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -9,45 +9,43 @@
|
|
|
9
9
|
"directory": "packages/mobile"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@codeleap/types": "
|
|
13
|
-
"@codeleap/utils": "
|
|
14
|
-
"@codeleap/hooks": "
|
|
15
|
-
"@codeleap/form": "
|
|
16
|
-
"@codeleap/query": "
|
|
17
|
-
"@codeleap/logger": "
|
|
18
|
-
"@codeleap/config": "
|
|
19
|
-
"@codeleap/modals": "
|
|
12
|
+
"@codeleap/types": "6.1.2",
|
|
13
|
+
"@codeleap/utils": "6.1.2",
|
|
14
|
+
"@codeleap/hooks": "6.1.2",
|
|
15
|
+
"@codeleap/form": "6.1.2",
|
|
16
|
+
"@codeleap/query": "6.1.2",
|
|
17
|
+
"@codeleap/logger": "6.1.2",
|
|
18
|
+
"@codeleap/config": "6.1.2",
|
|
19
|
+
"@codeleap/modals": "6.1.2"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
22
|
"build": "tsc --build",
|
|
23
23
|
"lint": "eslint -c .eslintrc.js --fix \"./src/**/*.{ts,tsx,js,jsx}\""
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@codeleap/types": "
|
|
27
|
-
"@codeleap/utils": "
|
|
28
|
-
"@codeleap/hooks": "
|
|
29
|
-
"@codeleap/form": "
|
|
30
|
-
"@codeleap/query": "
|
|
31
|
-
"@codeleap/logger": "
|
|
32
|
-
"@codeleap/styles": "
|
|
33
|
-
"@codeleap/modals": "
|
|
34
|
-
"@d11/react-native-fast-image": "8.
|
|
35
|
-
"@react-native-firebase/messaging": "
|
|
36
|
-
"@react-navigation/bottom-tabs": "7.
|
|
37
|
-
"@react-navigation/native": "7.1.
|
|
38
|
-
"@react-navigation/native-stack": "7.3.
|
|
39
|
-
"react": "
|
|
40
|
-
"react-native": "0.
|
|
41
|
-
"react-native-calendars": "1.
|
|
26
|
+
"@codeleap/types": "6.1.2",
|
|
27
|
+
"@codeleap/utils": "6.1.2",
|
|
28
|
+
"@codeleap/hooks": "6.1.2",
|
|
29
|
+
"@codeleap/form": "6.1.2",
|
|
30
|
+
"@codeleap/query": "6.1.2",
|
|
31
|
+
"@codeleap/logger": "6.1.2",
|
|
32
|
+
"@codeleap/styles": "6.1.2",
|
|
33
|
+
"@codeleap/modals": "6.1.2",
|
|
34
|
+
"@d11/react-native-fast-image": "8.12.0",
|
|
35
|
+
"@react-native-firebase/messaging": "23.4.1",
|
|
36
|
+
"@react-navigation/bottom-tabs": "7.4.9",
|
|
37
|
+
"@react-navigation/native": "7.1.18",
|
|
38
|
+
"@react-navigation/native-stack": "7.3.28",
|
|
39
|
+
"react": "19.1.0",
|
|
40
|
+
"react-native": "0.81.5",
|
|
41
|
+
"react-native-calendars": "1.1313.0",
|
|
42
42
|
"react-native-date-picker": "5.0.10",
|
|
43
|
-
"react-native-device-info": "14.
|
|
44
|
-
"react-native-gesture-handler": "2.
|
|
45
|
-
"react-native-image-crop-picker": "0.
|
|
43
|
+
"react-native-device-info": "14.1.1",
|
|
44
|
+
"react-native-gesture-handler": "2.28.0",
|
|
45
|
+
"react-native-image-crop-picker": "0.51.0",
|
|
46
46
|
"react-native-image-viewing": "0.2.2",
|
|
47
|
-
"react-native-localize": "3.
|
|
48
|
-
"react-native-mmkv": "3.
|
|
49
|
-
"react-native-progress": "5.0.0",
|
|
50
|
-
"react-native-push-notification": "8.1.1",
|
|
47
|
+
"react-native-localize": "3.5.2",
|
|
48
|
+
"react-native-mmkv": "3.3.3",
|
|
51
49
|
"react-native-super-grid": "4.6.1",
|
|
52
50
|
"typescript": "5.5.2"
|
|
53
51
|
},
|
package/package.json.bak
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codeleap/mobile",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.1.2",
|
|
4
4
|
"main": "src/index.ts",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -31,23 +31,21 @@
|
|
|
31
31
|
"@codeleap/logger": "workspace:*",
|
|
32
32
|
"@codeleap/styles": "workspace:*",
|
|
33
33
|
"@codeleap/modals": "workspace:*",
|
|
34
|
-
"@d11/react-native-fast-image": "8.
|
|
35
|
-
"@react-native-firebase/messaging": "
|
|
36
|
-
"@react-navigation/bottom-tabs": "7.
|
|
37
|
-
"@react-navigation/native": "7.1.
|
|
38
|
-
"@react-navigation/native-stack": "7.3.
|
|
39
|
-
"react": "
|
|
40
|
-
"react-native": "0.
|
|
41
|
-
"react-native-calendars": "1.
|
|
34
|
+
"@d11/react-native-fast-image": "8.12.0",
|
|
35
|
+
"@react-native-firebase/messaging": "23.4.1",
|
|
36
|
+
"@react-navigation/bottom-tabs": "7.4.9",
|
|
37
|
+
"@react-navigation/native": "7.1.18",
|
|
38
|
+
"@react-navigation/native-stack": "7.3.28",
|
|
39
|
+
"react": "19.1.0",
|
|
40
|
+
"react-native": "0.81.5",
|
|
41
|
+
"react-native-calendars": "1.1313.0",
|
|
42
42
|
"react-native-date-picker": "5.0.10",
|
|
43
|
-
"react-native-device-info": "14.
|
|
44
|
-
"react-native-gesture-handler": "2.
|
|
45
|
-
"react-native-image-crop-picker": "0.
|
|
43
|
+
"react-native-device-info": "14.1.1",
|
|
44
|
+
"react-native-gesture-handler": "2.28.0",
|
|
45
|
+
"react-native-image-crop-picker": "0.51.0",
|
|
46
46
|
"react-native-image-viewing": "0.2.2",
|
|
47
|
-
"react-native-localize": "3.
|
|
48
|
-
"react-native-mmkv": "3.
|
|
49
|
-
"react-native-progress": "5.0.0",
|
|
50
|
-
"react-native-push-notification": "8.1.1",
|
|
47
|
+
"react-native-localize": "3.5.2",
|
|
48
|
+
"react-native-mmkv": "3.3.3",
|
|
51
49
|
"react-native-super-grid": "4.6.1",
|
|
52
50
|
"typescript": "5.5.2"
|
|
53
51
|
},
|
|
@@ -19,7 +19,7 @@ export type AutocompleteRenderFNProps<T> = {
|
|
|
19
19
|
iconProps?: Partial<PropsOf<typeof Icon>>
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
export type AutocompleteRenderFN<T> = (props: AutocompleteRenderFNProps<T>) =>
|
|
22
|
+
export type AutocompleteRenderFN<T> = (props: AutocompleteRenderFNProps<T>) => React.ReactElement
|
|
23
23
|
|
|
24
24
|
export type AutocompleteValue<T, Multi extends boolean = false> = Multi extends true ? T[] : T
|
|
25
25
|
|
|
@@ -14,7 +14,7 @@ export type BadgeProps =
|
|
|
14
14
|
innerWrapperProps?: Partial<PropsOf<typeof View>>
|
|
15
15
|
textProps?: Partial<PropsOf<typeof Text>>
|
|
16
16
|
getBadgeContent?: (props: BadgeContent) => string
|
|
17
|
-
renderBadgeContent?: (props: BadgeContent & { content: string }) =>
|
|
17
|
+
renderBadgeContent?: (props: BadgeContent & { content: string }) => React.ReactElement
|
|
18
18
|
disabled?: boolean
|
|
19
19
|
badge?: number | boolean
|
|
20
20
|
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React, { useCallback, useEffect } from 'react'
|
|
2
|
+
import { LayoutChangeEvent, View } from 'react-native'
|
|
3
|
+
import { CollapseAnimationConfig, CollapseProps } from './types'
|
|
4
|
+
import Animated, {
|
|
5
|
+
Easing,
|
|
6
|
+
useSharedValue,
|
|
7
|
+
useAnimatedStyle,
|
|
8
|
+
withTiming,
|
|
9
|
+
} from 'react-native-reanimated'
|
|
10
|
+
|
|
11
|
+
export * from './types'
|
|
12
|
+
|
|
13
|
+
export const Collapse = (props: CollapseProps) => {
|
|
14
|
+
const {
|
|
15
|
+
open,
|
|
16
|
+
children,
|
|
17
|
+
style,
|
|
18
|
+
contentContainerStyle,
|
|
19
|
+
animationConfig,
|
|
20
|
+
...rest
|
|
21
|
+
} = {
|
|
22
|
+
...Collapse.defaultProps,
|
|
23
|
+
...props,
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const height = useSharedValue(0)
|
|
27
|
+
const animatedHeight = useSharedValue(0)
|
|
28
|
+
|
|
29
|
+
const onLayout = useCallback((event: LayoutChangeEvent) => {
|
|
30
|
+
const measuredHeight = event.nativeEvent.layout.height
|
|
31
|
+
|
|
32
|
+
if (height.value != 0) return
|
|
33
|
+
|
|
34
|
+
if (measuredHeight) {
|
|
35
|
+
height.value = measuredHeight
|
|
36
|
+
|
|
37
|
+
if (open) {
|
|
38
|
+
animatedHeight.value = withTiming(measuredHeight, animationConfig)
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}, [open])
|
|
42
|
+
|
|
43
|
+
const animatedStyle = useAnimatedStyle(() => {
|
|
44
|
+
return {
|
|
45
|
+
maxHeight: height.value === 0 ? 'auto' : animatedHeight.value,
|
|
46
|
+
overflow: 'hidden',
|
|
47
|
+
}
|
|
48
|
+
})
|
|
49
|
+
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
animatedHeight.value = withTiming(open ? height.value : 0, animationConfig)
|
|
52
|
+
}, [open])
|
|
53
|
+
|
|
54
|
+
return (
|
|
55
|
+
<Animated.View {...rest} style={[animatedStyle, style]}>
|
|
56
|
+
<View onLayout={onLayout} style={contentContainerStyle}>
|
|
57
|
+
{children}
|
|
58
|
+
</View>
|
|
59
|
+
</Animated.View>
|
|
60
|
+
)
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const defaultAnimationConfig: CollapseAnimationConfig = {
|
|
64
|
+
duration: 300,
|
|
65
|
+
easing: Easing.inOut(Easing.quad),
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
Collapse.defaultProps = {
|
|
69
|
+
animationConfig: defaultAnimationConfig,
|
|
70
|
+
} as CollapseProps
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react'
|
|
2
|
+
import { ViewProps, ViewStyle } from 'react-native'
|
|
3
|
+
import type { AnimatedProps, ReduceMotion, EasingFunction, EasingFunctionFactory } from 'react-native-reanimated'
|
|
4
|
+
|
|
5
|
+
export type CollapseAnimationConfig = {
|
|
6
|
+
duration?: number
|
|
7
|
+
reduceMotion?: ReduceMotion
|
|
8
|
+
easing?: EasingFunction | EasingFunctionFactory
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type CollapseProps = AnimatedProps<ViewProps> & {
|
|
12
|
+
open?: boolean
|
|
13
|
+
contentContainerStyle?: ViewStyle
|
|
14
|
+
children: ReactNode
|
|
15
|
+
animationConfig?: CollapseAnimationConfig
|
|
16
|
+
}
|
|
@@ -42,7 +42,7 @@ const _FileInput = forwardRef<FileInputRef, FileInputProps>((fileInputProps, ref
|
|
|
42
42
|
...FileInput.defaultProps,
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
const resolveWithFile = useRef<(file: FileResult[]) => any>()
|
|
45
|
+
const resolveWithFile = useRef<(file: FileResult[]) => any>(undefined)
|
|
46
46
|
|
|
47
47
|
const handleResolve = (files: Array<FileResult>) => {
|
|
48
48
|
if (resolveWithFile.current) {
|
|
@@ -128,7 +128,7 @@ const _FileInput = forwardRef<FileInputRef, FileInputProps>((fileInputProps, ref
|
|
|
128
128
|
return null
|
|
129
129
|
})
|
|
130
130
|
|
|
131
|
-
export const FileInput = _FileInput as unknown as ((props: FileInputProps) =>
|
|
131
|
+
export const FileInput = _FileInput as unknown as ((props: FileInputProps) => React.ReactElement) & { defaultProps: Partial<FileInputProps> }
|
|
132
132
|
|
|
133
133
|
FileInput.defaultProps = {}
|
|
134
134
|
|
|
@@ -12,6 +12,6 @@ export type ImageProps =
|
|
|
12
12
|
resizeMode?: keyof typeof FastImage.resizeMode
|
|
13
13
|
spotlight?: string
|
|
14
14
|
maintainAspectRatio?: boolean
|
|
15
|
-
withLoadingOverlay?: boolean | ((props: LoadingOverlayProps) =>
|
|
15
|
+
withLoadingOverlay?: boolean | ((props: LoadingOverlayProps) => React.ReactElement)
|
|
16
16
|
touchProps?: Partial<TouchableProps>
|
|
17
17
|
}
|
|
@@ -161,8 +161,8 @@ type FooterComponentProps = SpotlightHeaderComponent
|
|
|
161
161
|
|
|
162
162
|
export type SpotlightProps = {
|
|
163
163
|
name?: string
|
|
164
|
-
HeaderComponent?: (props: SpotlightHeaderComponent) =>
|
|
165
|
-
FooterComponent?: (props: FooterComponentProps) =>
|
|
164
|
+
HeaderComponent?: (props: SpotlightHeaderComponent) => React.ReactElement
|
|
165
|
+
FooterComponent?: (props: FooterComponentProps) => React.ReactElement
|
|
166
166
|
showFooter?: boolean
|
|
167
167
|
} & ImageViewProps
|
|
168
168
|
|
|
@@ -6,16 +6,16 @@ import { View, ViewProps } from 'react-native'
|
|
|
6
6
|
type ActionIconProps = PropsOf<typeof ActionIcon>
|
|
7
7
|
|
|
8
8
|
type OrderedParts = 'label' | 'description' | 'innerWrapper' | 'error'
|
|
9
|
-
type IconProp = Partial<ActionIconProps> |
|
|
9
|
+
type IconProp = Partial<ActionIconProps> | React.ReactElement
|
|
10
10
|
|
|
11
11
|
export type InputBaseProps = React.PropsWithChildren<{
|
|
12
12
|
label?: React.ReactNode
|
|
13
13
|
error?: React.ReactNode
|
|
14
14
|
leftIcon?: IconProp
|
|
15
15
|
rightIcon?: IconProp
|
|
16
|
-
wrapper?: (props: any) =>
|
|
16
|
+
wrapper?: (props: any) => React.ReactElement
|
|
17
17
|
wrapperProps?: any
|
|
18
|
-
innerWrapper?: (props: any) =>
|
|
18
|
+
innerWrapper?: (props: any) => React.ReactElement
|
|
19
19
|
innerWrapperProps?: any
|
|
20
20
|
description?: React.ReactNode
|
|
21
21
|
debugName?: string
|
|
@@ -15,7 +15,7 @@ export function useInputBase<V, T extends Field<V, any, any, unknown> = Field<V
|
|
|
15
15
|
|
|
16
16
|
const hasInternalState = useMemo(() => TypeGuards.isFunction(onValueChange) && !TypeGuards.isNil(value), [])
|
|
17
17
|
|
|
18
|
-
const wrapperRef = useRef<View>()
|
|
18
|
+
const wrapperRef = useRef<View>(null)
|
|
19
19
|
|
|
20
20
|
const innerInputRef = useRef<TextInput>(null)
|
|
21
21
|
|
|
@@ -3,7 +3,7 @@ import { PageProps } from './types'
|
|
|
3
3
|
import { TypeGuards } from '@codeleap/types'
|
|
4
4
|
|
|
5
5
|
type PagerItemComponentProps = PageProps<any> & {
|
|
6
|
-
renderItem: (props: any) =>
|
|
6
|
+
renderItem: (props: any) => React.ReactElement
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
function PagerItemComponent(props: PagerItemComponentProps) {
|
|
@@ -13,7 +13,7 @@ export type PageProps<T> = CarouselRenderItemInfo<T> & {
|
|
|
13
13
|
|
|
14
14
|
export type PagerProps<T> = Partial<Omit<TCarouselProps<T>, 'data' | 'renderItem'>> & {
|
|
15
15
|
pages: TCarouselProps<T>['data']
|
|
16
|
-
renderItem?: (props: PageProps<T>) =>
|
|
16
|
+
renderItem?: (props: PageProps<T>) => React.ReactElement
|
|
17
17
|
page?: number
|
|
18
18
|
onChangePage?: (page: number) => void
|
|
19
19
|
initialPage?: number
|
|
@@ -3,8 +3,8 @@ import { PaginationIndicatorComposition } from './styles'
|
|
|
3
3
|
|
|
4
4
|
export type PaginationIndicatorProps = {
|
|
5
5
|
isFetching?: boolean
|
|
6
|
-
noMoreItemsText:
|
|
6
|
+
noMoreItemsText: React.ReactElement | string | number
|
|
7
7
|
hasMore?: boolean
|
|
8
|
-
activityIndicator?:
|
|
8
|
+
activityIndicator?: React.ReactElement
|
|
9
9
|
style?: StyledProp<PaginationIndicatorComposition>
|
|
10
10
|
}
|
|
@@ -8,10 +8,10 @@ import { PlaceAddress, PlaceLatLng } from '@codeleap/types'
|
|
|
8
8
|
|
|
9
9
|
export type CustomData = {
|
|
10
10
|
item?: Partial<PlaceAddress> & Partial<PlaceLatLng>
|
|
11
|
-
content?:
|
|
11
|
+
content?: React.ReactElement
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export type PlaceItem = PlaceAddress & PlaceLatLng & { content?:
|
|
14
|
+
export type PlaceItem = PlaceAddress & PlaceLatLng & { content?: React.ReactElement }
|
|
15
15
|
|
|
16
16
|
export type PlaceRowProps = {
|
|
17
17
|
item?: PlaceItem
|
|
@@ -21,7 +21,7 @@ export type PlaceRowProps = {
|
|
|
21
21
|
|
|
22
22
|
export type PlacesAutocompleteProps = {
|
|
23
23
|
style?: StyledProp<PlacesAutocompleteComposition>
|
|
24
|
-
itemRow?: (props: any) =>
|
|
24
|
+
itemRow?: (props: any) => React.ReactElement
|
|
25
25
|
textInputProps?: TextInputProps
|
|
26
26
|
emptyPlaceholderProps?: EmptyPlaceholderProps
|
|
27
27
|
listProps?: FlatListProps
|
|
@@ -28,7 +28,7 @@ export const Scroll = (scrollProps: ScrollProps) => {
|
|
|
28
28
|
|
|
29
29
|
const Component = keyboardAware ? KeyboardAwareScrollView : ScrollView
|
|
30
30
|
|
|
31
|
-
const _scrollRef = useRef<ScrollView>()
|
|
31
|
+
const _scrollRef = useRef<ScrollView>(null)
|
|
32
32
|
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
const { ref: scrollRef, emit } = useScrollPubSub(_scrollRef)
|
|
@@ -6,7 +6,7 @@ import { TypeGuards } from '@codeleap/types'
|
|
|
6
6
|
import { TextInput as RNTextInput } from 'react-native'
|
|
7
7
|
|
|
8
8
|
export type SearchInputProps = {
|
|
9
|
-
onTypingChange
|
|
9
|
+
onTypingChange?: (isTyping: boolean) => void
|
|
10
10
|
onSearchChange: (search: string) => void
|
|
11
11
|
onValueChange?: (search: string) => void
|
|
12
12
|
onClear?: () => void
|
|
@@ -18,7 +18,11 @@ export type SearchInputProps = {
|
|
|
18
18
|
placeholder?: string
|
|
19
19
|
} & Partial<TextInputProps>
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
type Component = React.ForwardRefExoticComponent<SearchInputProps> & {
|
|
22
|
+
defaultProps?: Partial<SearchInputProps>
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const SearchInput: Component = forwardRef((props: SearchInputProps, ref) => {
|
|
22
26
|
const {
|
|
23
27
|
debugName,
|
|
24
28
|
onClear,
|
|
@@ -80,7 +84,7 @@ export const SearchInput: ForwardRefComponentWithDefaultProps<SearchInputProps,
|
|
|
80
84
|
leftIcon={{
|
|
81
85
|
name: searchIcon,
|
|
82
86
|
}}
|
|
83
|
-
ref={ref}
|
|
87
|
+
ref={ref as any}
|
|
84
88
|
{...others}
|
|
85
89
|
/>
|
|
86
90
|
)
|
|
@@ -11,7 +11,7 @@ export * from './types'
|
|
|
11
11
|
export * from './context'
|
|
12
12
|
export * from './useSectionFilters'
|
|
13
13
|
|
|
14
|
-
const SectionComponent = memoBy((props: SectionComponentProps<TSectionFilterItem> & { renderWith: (props: SectionFilterComponentProps<TSectionFilterItem>) =>
|
|
14
|
+
const SectionComponent = memoBy((props: SectionComponentProps<TSectionFilterItem> & { renderWith: (props: SectionFilterComponentProps<TSectionFilterItem>) => React.ReactElement }) => {
|
|
15
15
|
const { renderWith: Component, index } = props
|
|
16
16
|
|
|
17
17
|
const handle = useSectionFiltersContext()
|
|
@@ -24,8 +24,8 @@ export type SegmentedControlProps<T = string> =
|
|
|
24
24
|
textProps?: Partial<TextProps>
|
|
25
25
|
touchableProps?: Partial<TouchableProps>
|
|
26
26
|
label?: string
|
|
27
|
-
renderOption?: (props: SegmentedControlOptionProps) =>
|
|
28
|
-
renderBubble?: (props: Partial<SegmentedControlProps>) =>
|
|
27
|
+
renderOption?: (props: SegmentedControlOptionProps) => React.ReactElement
|
|
28
|
+
renderBubble?: (props: Partial<SegmentedControlProps>) => React.ReactElement
|
|
29
29
|
getItemWidth?: (item: { label: string; value: T }, idx: number, arr: { label: string; value: T }[]) => number
|
|
30
30
|
scrollToCurrentOptionOnMount?: boolean
|
|
31
31
|
style?: StyledProp<SegmentedControlComposition>
|
|
@@ -25,7 +25,7 @@ export type SelectRenderFNProps<T> = {
|
|
|
25
25
|
text?: string
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
export type SelectRenderFN<T> = (props: SelectRenderFNProps<T>) =>
|
|
28
|
+
export type SelectRenderFN<T> = (props: SelectRenderFNProps<T>) => React.ReactElement
|
|
29
29
|
|
|
30
30
|
type SelectModalProps = Omit<ModalProps, 'style'>
|
|
31
31
|
|
|
@@ -41,7 +41,7 @@ export type SelectOuterInputProps<T extends string | number = any, Multi extends
|
|
|
41
41
|
clearIcon?: Partial<ActionIconProps>
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
type OuterInputComponent<T extends string | number, Multi extends boolean> = (props: SelectOuterInputProps<T, Multi>) =>
|
|
44
|
+
type OuterInputComponent<T extends string | number, Multi extends boolean> = (props: SelectOuterInputProps<T, Multi>) => React.ReactElement
|
|
45
45
|
|
|
46
46
|
export type ValueBoundSelectProps<
|
|
47
47
|
T extends string | number,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StyledProp } from '@codeleap/styles'
|
|
2
2
|
import { ReactNode } from 'react'
|
|
3
3
|
import { TextProps as RNTextProps, Animated, ViewStyle, ImageStyle, TextStyle, Text as NativeText } from 'react-native'
|
|
4
|
-
import {
|
|
4
|
+
import { AnimatedStyle } from 'react-native-reanimated'
|
|
5
5
|
import { TextComposition } from './styles'
|
|
6
6
|
|
|
7
7
|
export type TextProps =
|
|
@@ -14,6 +14,6 @@ export type TextProps =
|
|
|
14
14
|
debounce?: number
|
|
15
15
|
pressDisabled?: boolean
|
|
16
16
|
style?: StyledProp<TextComposition>
|
|
17
|
-
animatedStyle?:
|
|
17
|
+
animatedStyle?: AnimatedStyle<ViewStyle | ImageStyle | TextStyle>
|
|
18
18
|
ref?: React.ForwardedRef<NativeText>
|
|
19
19
|
}
|