@jamadd/react-native-template-ui 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/module/components/button/AnimatedThemedPressable.js +5 -17
- package/lib/module/components/button/AnimatedThemedPressable.js.map +1 -1
- package/lib/module/components/button/ThemedButton.js +20 -75
- package/lib/module/components/button/ThemedButton.js.map +1 -1
- package/lib/module/components/button/ThemedIconButton.js +16 -62
- package/lib/module/components/button/ThemedIconButton.js.map +1 -1
- package/lib/module/components/button/ThemedIconTextButton.js +29 -118
- package/lib/module/components/button/ThemedIconTextButton.js.map +1 -1
- package/lib/module/components/button/ThemedPressable.js +5 -17
- package/lib/module/components/button/ThemedPressable.js.map +1 -1
- package/lib/module/components/icon/ThemedIcon.js +15 -56
- package/lib/module/components/icon/ThemedIcon.js.map +1 -1
- package/lib/module/components/list/List.js +39 -131
- package/lib/module/components/list/List.js.map +1 -1
- package/lib/module/components/loading/ThemedLoading.js +13 -50
- package/lib/module/components/loading/ThemedLoading.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheet.js +19 -64
- package/lib/module/components/overlay/actionSheet/ActionSheet.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js +8 -19
- package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js +31 -87
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js +25 -66
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js +14 -39
- package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptList.js +25 -58
- package/lib/module/components/overlay/actionSheet/ActionSheetOptList.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptListItem.js +21 -45
- package/lib/module/components/overlay/actionSheet/ActionSheetOptListItem.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOpts.js +30 -72
- package/lib/module/components/overlay/actionSheet/ActionSheetOpts.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js +28 -69
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js +18 -45
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js +31 -139
- package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js.map +1 -1
- package/lib/module/components/overlay/alert/Alert.js +47 -125
- package/lib/module/components/overlay/alert/Alert.js.map +1 -1
- package/lib/module/components/overlay/alert/AlertButton.js +26 -62
- package/lib/module/components/overlay/alert/AlertButton.js.map +1 -1
- package/lib/module/components/overlay/alert/AlertButtons.js +23 -58
- package/lib/module/components/overlay/alert/AlertButtons.js.map +1 -1
- package/lib/module/components/overlay/alert/AlertContent.js +15 -45
- package/lib/module/components/overlay/alert/AlertContent.js.map +1 -1
- package/lib/module/components/overlay/alert/AlertWrap.js +45 -132
- package/lib/module/components/overlay/alert/AlertWrap.js.map +1 -1
- package/lib/module/components/overlay/modal/ThemedLoadingModal.js +21 -96
- package/lib/module/components/overlay/modal/ThemedLoadingModal.js.map +1 -1
- package/lib/module/components/overlay/modal/ThemedModal.js +23 -75
- package/lib/module/components/overlay/modal/ThemedModal.js.map +1 -1
- package/lib/module/components/overlay/toast/ThemedToast.js +86 -319
- package/lib/module/components/overlay/toast/ThemedToast.js.map +1 -1
- package/lib/module/components/provider/GestureProvider.js +3 -15
- package/lib/module/components/provider/GestureProvider.js.map +1 -1
- package/lib/module/components/provider/InsetsProvider.js +3 -15
- package/lib/module/components/provider/InsetsProvider.js.map +1 -1
- package/lib/module/components/provider/ReactNativeTemplateProviders.js +11 -23
- package/lib/module/components/provider/ReactNativeTemplateProviders.js.map +1 -1
- package/lib/module/components/provider/ThemeProvider.js +3 -15
- package/lib/module/components/provider/ThemeProvider.js.map +1 -1
- package/lib/module/components/separator/ThemedSeparator.js +14 -53
- package/lib/module/components/separator/ThemedSeparator.js.map +1 -1
- package/lib/module/components/switch/ThemedSwitch.js +21 -89
- package/lib/module/components/switch/ThemedSwitch.js.map +1 -1
- package/lib/module/components/text/ThemedIconText.js +35 -124
- package/lib/module/components/text/ThemedIconText.js.map +1 -1
- package/lib/module/components/text/ThemedText.js +3 -15
- package/lib/module/components/text/ThemedText.js.map +1 -1
- package/lib/module/components/view/AnimatedThemedView.js +10 -33
- package/lib/module/components/view/AnimatedThemedView.js.map +1 -1
- package/lib/module/components/view/ThemedScreenWrap.js +32 -110
- package/lib/module/components/view/ThemedScreenWrap.js.map +1 -1
- package/lib/module/components/view/ThemedScreenWrap.web.js +32 -111
- package/lib/module/components/view/ThemedScreenWrap.web.js.map +1 -1
- package/lib/module/components/view/ThemedScrollView.js +38 -126
- package/lib/module/components/view/ThemedScrollView.js.map +1 -1
- package/lib/module/components/view/ThemedView.js +10 -33
- package/lib/module/components/view/ThemedView.js.map +1 -1
- package/lib/module/hooks/button.js +54 -158
- package/lib/module/hooks/button.js.map +1 -1
- package/lib/module/hooks/list.js +10 -50
- package/lib/module/hooks/list.js.map +1 -1
- package/lib/module/hooks/overlay.js +170 -528
- package/lib/module/hooks/overlay.js.map +1 -1
- package/lib/module/hooks/reanimated.js.map +1 -1
- package/lib/module/hooks/style.js +18 -43
- package/lib/module/hooks/style.js.map +1 -1
- package/lib/module/hooks/switch.js +44 -182
- package/lib/module/hooks/switch.js.map +1 -1
- package/lib/module/hooks/theme.js +8 -17
- package/lib/module/hooks/theme.js.map +1 -1
- package/lib/module/hooks/view.js.map +1 -1
- package/lib/module/utils/reanimated/func.js +10 -60
- package/lib/module/utils/reanimated/func.js.map +1 -1
- package/lib/typescript/src/components/button/AnimatedPressable.d.ts.map +1 -0
- package/lib/typescript/src/components/button/AnimatedThemedPressable.d.ts.map +1 -0
- package/lib/typescript/src/components/button/ThemedButton.d.ts.map +1 -0
- package/lib/typescript/src/components/button/ThemedIconButton.d.ts.map +1 -0
- package/lib/typescript/src/components/button/ThemedIconTextButton.d.ts.map +1 -0
- package/lib/typescript/src/components/button/ThemedPressable.d.ts.map +1 -0
- package/lib/typescript/src/components/icon/ThemedIcon.d.ts.map +1 -0
- package/lib/typescript/src/components/list/List.d.ts.map +1 -0
- package/lib/typescript/src/components/loading/ThemedLoading.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptList.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptListItem.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOpts.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/alert/Alert.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/alert/AlertButton.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/alert/AlertButtons.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/alert/AlertContent.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/alert/AlertWrap.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/modal/ThemedLoadingModal.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/modal/ThemedModal.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/toast/ThemedToast.d.ts.map +1 -0
- package/lib/typescript/src/components/provider/GestureProvider.d.ts.map +1 -0
- package/lib/typescript/src/components/provider/InsetsProvider.d.ts.map +1 -0
- package/lib/typescript/src/components/provider/ReactNativeTemplateProviders.d.ts.map +1 -0
- package/lib/typescript/src/components/provider/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/src/components/separator/ThemedSeparator.d.ts.map +1 -0
- package/lib/typescript/src/components/switch/ThemedSwitch.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → src}/components/text/Text.d.ts.map +1 -1
- package/lib/typescript/src/components/text/ThemedIconText.d.ts.map +1 -0
- package/lib/typescript/src/components/text/ThemedText.d.ts.map +1 -0
- package/lib/typescript/{module/src → src}/components/view/AnimatedBox.d.ts.map +1 -1
- package/lib/typescript/src/components/view/AnimatedThemedView.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → src}/components/view/Box.d.ts.map +1 -1
- package/lib/typescript/src/components/view/ThemedScreenWrap.d.ts.map +1 -0
- package/lib/typescript/src/components/view/ThemedScreenWrap.web.d.ts.map +1 -0
- package/lib/typescript/src/components/view/ThemedScrollView.d.ts.map +1 -0
- package/lib/typescript/src/components/view/ThemedView.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → src}/hooks/button.d.ts.map +1 -1
- package/lib/typescript/src/hooks/list.d.ts.map +1 -0
- package/lib/typescript/src/hooks/overlay.d.ts.map +1 -0
- package/lib/typescript/src/hooks/reanimated.d.ts.map +1 -0
- package/lib/typescript/src/hooks/separator.d.ts.map +1 -0
- package/lib/typescript/src/hooks/style.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → src}/hooks/switch.d.ts.map +1 -1
- package/lib/typescript/src/hooks/theme.d.ts.map +1 -0
- package/lib/typescript/src/hooks/view.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/test/utils/const.d.ts.map +1 -0
- package/lib/typescript/src/test/utils/func.d.ts.map +1 -0
- package/lib/typescript/src/test/utils/testingLib.d.ts.map +1 -0
- package/lib/typescript/src/types/button.d.ts.map +1 -0
- package/lib/typescript/src/types/icon.d.ts.map +1 -0
- package/lib/typescript/src/types/list.d.ts.map +1 -0
- package/lib/typescript/src/types/loading.d.ts.map +1 -0
- package/lib/typescript/src/types/overlay.d.ts.map +1 -0
- package/lib/typescript/src/types/provider.d.ts.map +1 -0
- package/lib/typescript/src/types/react.d.ts.map +1 -0
- package/lib/typescript/src/types/reanimated.d.ts.map +1 -0
- package/lib/typescript/src/types/separator.d.ts.map +1 -0
- package/lib/typescript/src/types/style.d.ts.map +1 -0
- package/lib/typescript/src/types/switch.d.ts.map +1 -0
- package/lib/typescript/src/types/text.d.ts.map +1 -0
- package/lib/typescript/src/types/theme.d.ts.map +1 -0
- package/lib/typescript/src/types/view.d.ts.map +1 -0
- package/lib/typescript/src/utils/button/const.d.ts.map +1 -0
- package/lib/typescript/src/utils/overlay/const.d.ts.map +1 -0
- package/lib/typescript/src/utils/overlay/func.d.ts.map +1 -0
- package/lib/typescript/src/utils/reanimated/func.d.ts.map +1 -0
- package/lib/typescript/src/utils/style/const.d.ts.map +1 -0
- package/lib/typescript/src/utils/style/func.d.ts.map +1 -0
- package/lib/typescript/src/utils/switch/const.d.ts.map +1 -0
- package/lib/typescript/src/utils/theme/const.d.ts.map +1 -0
- package/lib/typescript/src/utils/theme/restyle.d.ts.map +1 -0
- package/package.json +57 -78
- package/lib/commonjs/components/button/AnimatedPressable.js +0 -14
- package/lib/commonjs/components/button/AnimatedPressable.js.map +0 -1
- package/lib/commonjs/components/button/AnimatedThemedPressable.js +0 -36
- package/lib/commonjs/components/button/AnimatedThemedPressable.js.map +0 -1
- package/lib/commonjs/components/button/ThemedButton.js +0 -97
- package/lib/commonjs/components/button/ThemedButton.js.map +0 -1
- package/lib/commonjs/components/button/ThemedIconButton.js +0 -81
- package/lib/commonjs/components/button/ThemedIconButton.js.map +0 -1
- package/lib/commonjs/components/button/ThemedIconTextButton.js +0 -146
- package/lib/commonjs/components/button/ThemedIconTextButton.js.map +0 -1
- package/lib/commonjs/components/button/ThemedPressable.js +0 -35
- package/lib/commonjs/components/button/ThemedPressable.js.map +0 -1
- package/lib/commonjs/components/icon/ThemedIcon.js +0 -71
- package/lib/commonjs/components/icon/ThemedIcon.js.map +0 -1
- package/lib/commonjs/components/list/List.js +0 -144
- package/lib/commonjs/components/list/List.js.map +0 -1
- package/lib/commonjs/components/loading/ThemedLoading.js +0 -64
- package/lib/commonjs/components/loading/ThemedLoading.js.map +0 -1
- package/lib/commonjs/components/overlay/actionSheet/ActionSheet.js +0 -80
- package/lib/commonjs/components/overlay/actionSheet/ActionSheet.js.map +0 -1
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetContentGesture.js +0 -34
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetContentGesture.js.map +0 -1
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetHeader.js +0 -119
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetHeader.js.map +0 -1
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetListView.js +0 -84
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetListView.js.map +0 -1
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetListViewContent.js +0 -57
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetListViewContent.js.map +0 -1
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetOptList.js +0 -82
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetOptList.js.map +0 -1
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetOptListItem.js +0 -67
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetOptListItem.js.map +0 -1
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetOpts.js +0 -92
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetOpts.js.map +0 -1
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetScrollView.js +0 -89
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetScrollView.js.map +0 -1
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetScrollViewContent.js +0 -64
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetScrollViewContent.js.map +0 -1
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetWrap.js +0 -167
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetWrap.js.map +0 -1
- package/lib/commonjs/components/overlay/alert/Alert.js +0 -160
- package/lib/commonjs/components/overlay/alert/Alert.js.map +0 -1
- package/lib/commonjs/components/overlay/alert/AlertButton.js +0 -82
- package/lib/commonjs/components/overlay/alert/AlertButton.js.map +0 -1
- package/lib/commonjs/components/overlay/alert/AlertButtons.js +0 -71
- package/lib/commonjs/components/overlay/alert/AlertButtons.js.map +0 -1
- package/lib/commonjs/components/overlay/alert/AlertContent.js +0 -61
- package/lib/commonjs/components/overlay/alert/AlertContent.js.map +0 -1
- package/lib/commonjs/components/overlay/alert/AlertWrap.js +0 -157
- package/lib/commonjs/components/overlay/alert/AlertWrap.js.map +0 -1
- package/lib/commonjs/components/overlay/modal/ThemedLoadingModal.js +0 -122
- package/lib/commonjs/components/overlay/modal/ThemedLoadingModal.js.map +0 -1
- package/lib/commonjs/components/overlay/modal/ThemedModal.js +0 -94
- package/lib/commonjs/components/overlay/modal/ThemedModal.js.map +0 -1
- package/lib/commonjs/components/overlay/toast/ThemedToast.js +0 -357
- package/lib/commonjs/components/overlay/toast/ThemedToast.js.map +0 -1
- package/lib/commonjs/components/provider/GestureProvider.js +0 -25
- package/lib/commonjs/components/provider/GestureProvider.js.map +0 -1
- package/lib/commonjs/components/provider/InsetsProvider.js +0 -25
- package/lib/commonjs/components/provider/InsetsProvider.js.map +0 -1
- package/lib/commonjs/components/provider/ReactNativeTemplateProviders.js +0 -38
- package/lib/commonjs/components/provider/ReactNativeTemplateProviders.js.map +0 -1
- package/lib/commonjs/components/provider/ThemeProvider.js +0 -25
- package/lib/commonjs/components/provider/ThemeProvider.js.map +0 -1
- package/lib/commonjs/components/separator/ThemedSeparator.js +0 -66
- package/lib/commonjs/components/separator/ThemedSeparator.js.map +0 -1
- package/lib/commonjs/components/switch/ThemedSwitch.js +0 -114
- package/lib/commonjs/components/switch/ThemedSwitch.js.map +0 -1
- package/lib/commonjs/components/text/Text.js +0 -12
- package/lib/commonjs/components/text/Text.js.map +0 -1
- package/lib/commonjs/components/text/ThemedIconText.js +0 -143
- package/lib/commonjs/components/text/ThemedIconText.js.map +0 -1
- package/lib/commonjs/components/text/ThemedText.js +0 -26
- package/lib/commonjs/components/text/ThemedText.js.map +0 -1
- package/lib/commonjs/components/view/AnimatedBox.js +0 -14
- package/lib/commonjs/components/view/AnimatedBox.js.map +0 -1
- package/lib/commonjs/components/view/AnimatedThemedView.js +0 -45
- package/lib/commonjs/components/view/AnimatedThemedView.js.map +0 -1
- package/lib/commonjs/components/view/Box.js +0 -12
- package/lib/commonjs/components/view/Box.js.map +0 -1
- package/lib/commonjs/components/view/ThemedScreenWrap.js +0 -124
- package/lib/commonjs/components/view/ThemedScreenWrap.js.map +0 -1
- package/lib/commonjs/components/view/ThemedScreenWrap.web.js +0 -126
- package/lib/commonjs/components/view/ThemedScreenWrap.web.js.map +0 -1
- package/lib/commonjs/components/view/ThemedScrollView.js +0 -141
- package/lib/commonjs/components/view/ThemedScrollView.js.map +0 -1
- package/lib/commonjs/components/view/ThemedView.js +0 -45
- package/lib/commonjs/components/view/ThemedView.js.map +0 -1
- package/lib/commonjs/hooks/button.js +0 -203
- package/lib/commonjs/hooks/button.js.map +0 -1
- package/lib/commonjs/hooks/list.js +0 -66
- package/lib/commonjs/hooks/list.js.map +0 -1
- package/lib/commonjs/hooks/overlay.js +0 -703
- package/lib/commonjs/hooks/overlay.js.map +0 -1
- package/lib/commonjs/hooks/reanimated.js +0 -11
- package/lib/commonjs/hooks/reanimated.js.map +0 -1
- package/lib/commonjs/hooks/separator.js +0 -22
- package/lib/commonjs/hooks/separator.js.map +0 -1
- package/lib/commonjs/hooks/style.js +0 -92
- package/lib/commonjs/hooks/style.js.map +0 -1
- package/lib/commonjs/hooks/switch.js +0 -209
- package/lib/commonjs/hooks/switch.js.map +0 -1
- package/lib/commonjs/hooks/theme.js +0 -70
- package/lib/commonjs/hooks/theme.js.map +0 -1
- package/lib/commonjs/hooks/view.js +0 -11
- package/lib/commonjs/hooks/view.js.map +0 -1
- package/lib/commonjs/index.js +0 -533
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/package.json +0 -1
- package/lib/commonjs/test/utils/const.js +0 -19
- package/lib/commonjs/test/utils/const.js.map +0 -1
- package/lib/commonjs/test/utils/func.js +0 -60
- package/lib/commonjs/test/utils/func.js.map +0 -1
- package/lib/commonjs/test/utils/testingLib.js +0 -38
- package/lib/commonjs/test/utils/testingLib.js.map +0 -1
- package/lib/commonjs/types/button.js +0 -6
- package/lib/commonjs/types/button.js.map +0 -1
- package/lib/commonjs/types/global.d.js +0 -6
- package/lib/commonjs/types/global.d.js.map +0 -1
- package/lib/commonjs/types/icon.js +0 -6
- package/lib/commonjs/types/icon.js.map +0 -1
- package/lib/commonjs/types/list.js +0 -6
- package/lib/commonjs/types/list.js.map +0 -1
- package/lib/commonjs/types/loading.js +0 -6
- package/lib/commonjs/types/loading.js.map +0 -1
- package/lib/commonjs/types/overlay.js +0 -6
- package/lib/commonjs/types/overlay.js.map +0 -1
- package/lib/commonjs/types/provider.js +0 -6
- package/lib/commonjs/types/provider.js.map +0 -1
- package/lib/commonjs/types/react.js +0 -6
- package/lib/commonjs/types/react.js.map +0 -1
- package/lib/commonjs/types/reanimated.js +0 -6
- package/lib/commonjs/types/reanimated.js.map +0 -1
- package/lib/commonjs/types/separator.js +0 -6
- package/lib/commonjs/types/separator.js.map +0 -1
- package/lib/commonjs/types/style.js +0 -6
- package/lib/commonjs/types/style.js.map +0 -1
- package/lib/commonjs/types/switch.js +0 -6
- package/lib/commonjs/types/switch.js.map +0 -1
- package/lib/commonjs/types/text.js +0 -6
- package/lib/commonjs/types/text.js.map +0 -1
- package/lib/commonjs/types/theme.js +0 -6
- package/lib/commonjs/types/theme.js.map +0 -1
- package/lib/commonjs/types/view.js +0 -6
- package/lib/commonjs/types/view.js.map +0 -1
- package/lib/commonjs/utils/button/const.js +0 -17
- package/lib/commonjs/utils/button/const.js.map +0 -1
- package/lib/commonjs/utils/overlay/const.js +0 -73
- package/lib/commonjs/utils/overlay/const.js.map +0 -1
- package/lib/commonjs/utils/overlay/func.js +0 -63
- package/lib/commonjs/utils/overlay/func.js.map +0 -1
- package/lib/commonjs/utils/reanimated/func.js +0 -77
- package/lib/commonjs/utils/reanimated/func.js.map +0 -1
- package/lib/commonjs/utils/style/const.js +0 -12
- package/lib/commonjs/utils/style/const.js.map +0 -1
- package/lib/commonjs/utils/style/func.js +0 -39
- package/lib/commonjs/utils/style/func.js.map +0 -1
- package/lib/commonjs/utils/switch/const.js +0 -9
- package/lib/commonjs/utils/switch/const.js.map +0 -1
- package/lib/commonjs/utils/theme/const.js +0 -188
- package/lib/commonjs/utils/theme/const.js.map +0 -1
- package/lib/commonjs/utils/theme/restyle.js +0 -22
- package/lib/commonjs/utils/theme/restyle.js.map +0 -1
- package/lib/typescript/commonjs/package.json +0 -1
- package/lib/typescript/commonjs/src/components/button/AnimatedPressable.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/button/AnimatedThemedPressable.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/button/ThemedButton.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/button/ThemedIconButton.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/button/ThemedIconTextButton.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/button/ThemedPressable.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/icon/ThemedIcon.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/list/List.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/loading/ThemedLoading.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/overlay/actionSheet/ActionSheet.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/overlay/actionSheet/ActionSheetHeader.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/overlay/actionSheet/ActionSheetListView.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/overlay/actionSheet/ActionSheetOptList.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/overlay/actionSheet/ActionSheetOptListItem.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/overlay/actionSheet/ActionSheetOpts.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/overlay/actionSheet/ActionSheetWrap.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/overlay/alert/Alert.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/overlay/alert/AlertButton.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/overlay/alert/AlertButtons.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/overlay/alert/AlertContent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/overlay/alert/AlertWrap.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/overlay/modal/ThemedLoadingModal.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/overlay/modal/ThemedModal.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/overlay/toast/ThemedToast.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/provider/GestureProvider.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/provider/InsetsProvider.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/provider/ReactNativeTemplateProviders.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/provider/ThemeProvider.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/separator/ThemedSeparator.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/switch/ThemedSwitch.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/text/ThemedIconText.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/text/ThemedText.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/view/AnimatedBox.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/view/AnimatedThemedView.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/view/ThemedScreenWrap.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/view/ThemedScreenWrap.web.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/view/ThemedScrollView.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/view/ThemedView.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/hooks/list.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/hooks/overlay.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/hooks/reanimated.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/hooks/separator.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/hooks/style.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/hooks/theme.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/hooks/view.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/test/utils/const.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/test/utils/func.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/test/utils/testingLib.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/button.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/list.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/loading.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/overlay.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/provider.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/react.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/reanimated.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/separator.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/style.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/switch.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/text.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/theme.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/view.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/button/const.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/overlay/const.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/overlay/func.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/reanimated/func.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/style/const.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/style/func.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/switch/const.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/theme/const.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/theme/restyle.d.ts.map +0 -1
- package/lib/typescript/module/src/components/button/AnimatedPressable.d.ts +0 -3
- package/lib/typescript/module/src/components/button/AnimatedPressable.d.ts.map +0 -1
- package/lib/typescript/module/src/components/button/AnimatedThemedPressable.d.ts +0 -5
- package/lib/typescript/module/src/components/button/AnimatedThemedPressable.d.ts.map +0 -1
- package/lib/typescript/module/src/components/button/ThemedButton.d.ts +0 -5
- package/lib/typescript/module/src/components/button/ThemedButton.d.ts.map +0 -1
- package/lib/typescript/module/src/components/button/ThemedIconButton.d.ts +0 -5
- package/lib/typescript/module/src/components/button/ThemedIconButton.d.ts.map +0 -1
- package/lib/typescript/module/src/components/button/ThemedIconTextButton.d.ts +0 -5
- package/lib/typescript/module/src/components/button/ThemedIconTextButton.d.ts.map +0 -1
- package/lib/typescript/module/src/components/button/ThemedPressable.d.ts +0 -5
- package/lib/typescript/module/src/components/button/ThemedPressable.d.ts.map +0 -1
- package/lib/typescript/module/src/components/icon/ThemedIcon.d.ts +0 -5
- package/lib/typescript/module/src/components/icon/ThemedIcon.d.ts.map +0 -1
- package/lib/typescript/module/src/components/list/List.d.ts +0 -4
- package/lib/typescript/module/src/components/list/List.d.ts.map +0 -1
- package/lib/typescript/module/src/components/loading/ThemedLoading.d.ts +0 -5
- package/lib/typescript/module/src/components/loading/ThemedLoading.d.ts.map +0 -1
- package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheet.d.ts +0 -5
- package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheet.d.ts.map +0 -1
- package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts +0 -4
- package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts.map +0 -1
- package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetHeader.d.ts +0 -4
- package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetHeader.d.ts.map +0 -1
- package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetListView.d.ts +0 -5
- package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetListView.d.ts.map +0 -1
- package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts +0 -5
- package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetOptList.d.ts +0 -4
- package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetOptList.d.ts.map +0 -1
- package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetOptListItem.d.ts +0 -5
- package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetOptListItem.d.ts.map +0 -1
- package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetOpts.d.ts +0 -4
- package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetOpts.d.ts.map +0 -1
- package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts +0 -4
- package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts.map +0 -1
- package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts +0 -5
- package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetWrap.d.ts +0 -4
- package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetWrap.d.ts.map +0 -1
- package/lib/typescript/module/src/components/overlay/alert/Alert.d.ts +0 -5
- package/lib/typescript/module/src/components/overlay/alert/Alert.d.ts.map +0 -1
- package/lib/typescript/module/src/components/overlay/alert/AlertButton.d.ts +0 -5
- package/lib/typescript/module/src/components/overlay/alert/AlertButton.d.ts.map +0 -1
- package/lib/typescript/module/src/components/overlay/alert/AlertButtons.d.ts +0 -5
- package/lib/typescript/module/src/components/overlay/alert/AlertButtons.d.ts.map +0 -1
- package/lib/typescript/module/src/components/overlay/alert/AlertContent.d.ts +0 -5
- package/lib/typescript/module/src/components/overlay/alert/AlertContent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/overlay/alert/AlertWrap.d.ts +0 -12
- package/lib/typescript/module/src/components/overlay/alert/AlertWrap.d.ts.map +0 -1
- package/lib/typescript/module/src/components/overlay/modal/ThemedLoadingModal.d.ts +0 -5
- package/lib/typescript/module/src/components/overlay/modal/ThemedLoadingModal.d.ts.map +0 -1
- package/lib/typescript/module/src/components/overlay/modal/ThemedModal.d.ts +0 -5
- package/lib/typescript/module/src/components/overlay/modal/ThemedModal.d.ts.map +0 -1
- package/lib/typescript/module/src/components/overlay/toast/ThemedToast.d.ts +0 -5
- package/lib/typescript/module/src/components/overlay/toast/ThemedToast.d.ts.map +0 -1
- package/lib/typescript/module/src/components/provider/GestureProvider.d.ts +0 -5
- package/lib/typescript/module/src/components/provider/GestureProvider.d.ts.map +0 -1
- package/lib/typescript/module/src/components/provider/InsetsProvider.d.ts +0 -5
- package/lib/typescript/module/src/components/provider/InsetsProvider.d.ts.map +0 -1
- package/lib/typescript/module/src/components/provider/ReactNativeTemplateProviders.d.ts +0 -5
- package/lib/typescript/module/src/components/provider/ReactNativeTemplateProviders.d.ts.map +0 -1
- package/lib/typescript/module/src/components/provider/ThemeProvider.d.ts +0 -5
- package/lib/typescript/module/src/components/provider/ThemeProvider.d.ts.map +0 -1
- package/lib/typescript/module/src/components/separator/ThemedSeparator.d.ts +0 -5
- package/lib/typescript/module/src/components/separator/ThemedSeparator.d.ts.map +0 -1
- package/lib/typescript/module/src/components/switch/ThemedSwitch.d.ts +0 -5
- package/lib/typescript/module/src/components/switch/ThemedSwitch.d.ts.map +0 -1
- package/lib/typescript/module/src/components/text/Text.d.ts +0 -1987
- package/lib/typescript/module/src/components/text/Text.d.ts.map +0 -1
- package/lib/typescript/module/src/components/text/ThemedIconText.d.ts +0 -5
- package/lib/typescript/module/src/components/text/ThemedIconText.d.ts.map +0 -1
- package/lib/typescript/module/src/components/text/ThemedText.d.ts +0 -5
- package/lib/typescript/module/src/components/text/ThemedText.d.ts.map +0 -1
- package/lib/typescript/module/src/components/view/AnimatedBox.d.ts +0 -1023
- package/lib/typescript/module/src/components/view/AnimatedThemedView.d.ts +0 -5
- package/lib/typescript/module/src/components/view/AnimatedThemedView.d.ts.map +0 -1
- package/lib/typescript/module/src/components/view/Box.d.ts +0 -2045
- package/lib/typescript/module/src/components/view/Box.d.ts.map +0 -1
- package/lib/typescript/module/src/components/view/ThemedScreenWrap.d.ts +0 -5
- package/lib/typescript/module/src/components/view/ThemedScreenWrap.d.ts.map +0 -1
- package/lib/typescript/module/src/components/view/ThemedScreenWrap.web.d.ts +0 -5
- package/lib/typescript/module/src/components/view/ThemedScreenWrap.web.d.ts.map +0 -1
- package/lib/typescript/module/src/components/view/ThemedScrollView.d.ts +0 -5
- package/lib/typescript/module/src/components/view/ThemedScrollView.d.ts.map +0 -1
- package/lib/typescript/module/src/components/view/ThemedView.d.ts +0 -5
- package/lib/typescript/module/src/components/view/ThemedView.d.ts.map +0 -1
- package/lib/typescript/module/src/hooks/button.d.ts +0 -1647
- package/lib/typescript/module/src/hooks/button.d.ts.map +0 -1
- package/lib/typescript/module/src/hooks/list.d.ts +0 -4
- package/lib/typescript/module/src/hooks/list.d.ts.map +0 -1
- package/lib/typescript/module/src/hooks/overlay.d.ts +0 -16
- package/lib/typescript/module/src/hooks/overlay.d.ts.map +0 -1
- package/lib/typescript/module/src/hooks/reanimated.d.ts +0 -3
- package/lib/typescript/module/src/hooks/reanimated.d.ts.map +0 -1
- package/lib/typescript/module/src/hooks/separator.d.ts +0 -5
- package/lib/typescript/module/src/hooks/separator.d.ts.map +0 -1
- package/lib/typescript/module/src/hooks/style.d.ts +0 -11
- package/lib/typescript/module/src/hooks/style.d.ts.map +0 -1
- package/lib/typescript/module/src/hooks/switch.d.ts +0 -2
- package/lib/typescript/module/src/hooks/switch.d.ts.map +0 -1
- package/lib/typescript/module/src/hooks/theme.d.ts +0 -329
- package/lib/typescript/module/src/hooks/theme.d.ts.map +0 -1
- package/lib/typescript/module/src/hooks/view.d.ts +0 -3
- package/lib/typescript/module/src/hooks/view.d.ts.map +0 -1
- package/lib/typescript/module/src/index.d.ts +0 -53
- package/lib/typescript/module/src/index.d.ts.map +0 -1
- package/lib/typescript/module/src/test/utils/const.d.ts +0 -4
- package/lib/typescript/module/src/test/utils/const.d.ts.map +0 -1
- package/lib/typescript/module/src/test/utils/func.d.ts +0 -108
- package/lib/typescript/module/src/test/utils/func.d.ts.map +0 -1
- package/lib/typescript/module/src/test/utils/testingLib.d.ts +0 -6
- package/lib/typescript/module/src/test/utils/testingLib.d.ts.map +0 -1
- package/lib/typescript/module/src/types/button.d.ts +0 -32
- package/lib/typescript/module/src/types/button.d.ts.map +0 -1
- package/lib/typescript/module/src/types/icon.d.ts +0 -19
- package/lib/typescript/module/src/types/icon.d.ts.map +0 -1
- package/lib/typescript/module/src/types/list.d.ts +0 -29
- package/lib/typescript/module/src/types/list.d.ts.map +0 -1
- package/lib/typescript/module/src/types/loading.d.ts +0 -12
- package/lib/typescript/module/src/types/loading.d.ts.map +0 -1
- package/lib/typescript/module/src/types/overlay.d.ts +0 -106
- package/lib/typescript/module/src/types/overlay.d.ts.map +0 -1
- package/lib/typescript/module/src/types/provider.d.ts +0 -6
- package/lib/typescript/module/src/types/provider.d.ts.map +0 -1
- package/lib/typescript/module/src/types/react.d.ts +0 -6
- package/lib/typescript/module/src/types/react.d.ts.map +0 -1
- package/lib/typescript/module/src/types/reanimated.d.ts +0 -5
- package/lib/typescript/module/src/types/reanimated.d.ts.map +0 -1
- package/lib/typescript/module/src/types/separator.d.ts +0 -7
- package/lib/typescript/module/src/types/separator.d.ts.map +0 -1
- package/lib/typescript/module/src/types/style.d.ts +0 -18
- package/lib/typescript/module/src/types/style.d.ts.map +0 -1
- package/lib/typescript/module/src/types/switch.d.ts +0 -27
- package/lib/typescript/module/src/types/switch.d.ts.map +0 -1
- package/lib/typescript/module/src/types/text.d.ts +0 -19
- package/lib/typescript/module/src/types/text.d.ts.map +0 -1
- package/lib/typescript/module/src/types/theme.d.ts +0 -15
- package/lib/typescript/module/src/types/theme.d.ts.map +0 -1
- package/lib/typescript/module/src/types/view.d.ts +0 -22
- package/lib/typescript/module/src/types/view.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/button/const.d.ts +0 -9
- package/lib/typescript/module/src/utils/button/const.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/overlay/const.d.ts +0 -24
- package/lib/typescript/module/src/utils/overlay/const.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/overlay/func.d.ts +0 -11
- package/lib/typescript/module/src/utils/overlay/func.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/reanimated/func.d.ts +0 -2
- package/lib/typescript/module/src/utils/reanimated/func.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/style/const.d.ts +0 -5
- package/lib/typescript/module/src/utils/style/const.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/style/func.d.ts +0 -10
- package/lib/typescript/module/src/utils/style/func.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/switch/const.d.ts +0 -2
- package/lib/typescript/module/src/utils/switch/const.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/theme/const.d.ts +0 -173
- package/lib/typescript/module/src/utils/theme/const.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/theme/restyle.d.ts +0 -1196
- package/lib/typescript/module/src/utils/theme/restyle.d.ts.map +0 -1
- /package/lib/typescript/{module/package.json → package.json} +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/button/AnimatedPressable.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/button/AnimatedThemedPressable.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/button/ThemedButton.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/button/ThemedIconButton.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/button/ThemedIconTextButton.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/button/ThemedPressable.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/icon/ThemedIcon.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/list/List.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/loading/ThemedLoading.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/overlay/actionSheet/ActionSheet.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/overlay/actionSheet/ActionSheetContentGesture.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/overlay/actionSheet/ActionSheetHeader.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/overlay/actionSheet/ActionSheetListView.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/overlay/actionSheet/ActionSheetListViewContent.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/overlay/actionSheet/ActionSheetOptList.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/overlay/actionSheet/ActionSheetOptListItem.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/overlay/actionSheet/ActionSheetOpts.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/overlay/actionSheet/ActionSheetScrollView.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/overlay/actionSheet/ActionSheetWrap.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/overlay/alert/Alert.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/overlay/alert/AlertButton.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/overlay/alert/AlertButtons.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/overlay/alert/AlertContent.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/overlay/alert/AlertWrap.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/overlay/modal/ThemedLoadingModal.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/overlay/modal/ThemedModal.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/overlay/toast/ThemedToast.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/provider/GestureProvider.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/provider/InsetsProvider.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/provider/ReactNativeTemplateProviders.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/provider/ThemeProvider.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/separator/ThemedSeparator.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/switch/ThemedSwitch.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/text/Text.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/text/ThemedIconText.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/text/ThemedText.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/view/AnimatedBox.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/view/AnimatedThemedView.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/view/Box.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/view/ThemedScreenWrap.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/view/ThemedScreenWrap.web.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/view/ThemedScrollView.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/components/view/ThemedView.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/hooks/button.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/hooks/list.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/hooks/overlay.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/hooks/reanimated.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/hooks/separator.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/hooks/style.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/hooks/switch.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/hooks/theme.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/hooks/view.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/test/utils/const.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/test/utils/func.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/test/utils/testingLib.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/types/button.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/types/icon.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/types/list.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/types/loading.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/types/overlay.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/types/provider.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/types/react.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/types/reanimated.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/types/separator.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/types/style.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/types/switch.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/types/text.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/types/theme.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/types/view.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/button/const.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/overlay/const.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/overlay/func.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/reanimated/func.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/style/const.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/style/func.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/switch/const.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/theme/const.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/theme/restyle.d.ts +0 -0
|
@@ -1,47 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { c as _c } from "react/compiler-runtime";
|
|
4
3
|
import { useRestyle } from '@shopify/restyle';
|
|
5
4
|
import { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
6
5
|
import { OnPressDelayType } from "../utils/button/const.js";
|
|
7
6
|
import { composeStyles } from "../utils/style/func.js";
|
|
8
7
|
import { themedPressableRestyleFuncs } from "../utils/theme/restyle.js";
|
|
9
8
|
export function useDelayedOnPress(onPress, onPressDelayConfig) {
|
|
10
|
-
const $ = _c(9);
|
|
11
9
|
const onPressTimestamp = useRef(0);
|
|
12
10
|
const debounceTimeout = useRef(undefined);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
$[0] = t0;
|
|
21
|
-
} else {
|
|
22
|
-
t0 = $[0];
|
|
23
|
-
}
|
|
24
|
-
const clearDebounceTimeout = t0;
|
|
25
|
-
let t1;
|
|
26
|
-
let t2;
|
|
27
|
-
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
28
|
-
t1 = () => () => {
|
|
11
|
+
const clearDebounceTimeout = useCallback(() => {
|
|
12
|
+
if (debounceTimeout.current) {
|
|
13
|
+
clearTimeout(debounceTimeout.current);
|
|
14
|
+
}
|
|
15
|
+
}, [debounceTimeout]);
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
return () => {
|
|
29
18
|
clearDebounceTimeout();
|
|
30
19
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
t2 = $[2];
|
|
37
|
-
}
|
|
38
|
-
useEffect(t1, t2);
|
|
39
|
-
let t3;
|
|
40
|
-
bb0: {
|
|
41
|
-
const tempOnPress = onPress ?? _temp;
|
|
20
|
+
}, []);
|
|
21
|
+
return useMemo(() => {
|
|
22
|
+
const tempOnPress = onPress ?? (() => {
|
|
23
|
+
console.warn('onPress is not defined');
|
|
24
|
+
});
|
|
42
25
|
if (!onPressDelayConfig) {
|
|
43
|
-
|
|
44
|
-
break bb0;
|
|
26
|
+
return tempOnPress;
|
|
45
27
|
}
|
|
46
28
|
const {
|
|
47
29
|
type,
|
|
@@ -49,150 +31,64 @@ export function useDelayedOnPress(onPress, onPressDelayConfig) {
|
|
|
49
31
|
} = onPressDelayConfig;
|
|
50
32
|
switch (type) {
|
|
51
33
|
case OnPressDelayType.Debounce:
|
|
52
|
-
{
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
tempOnPress(event_0);
|
|
59
|
-
}, wait);
|
|
60
|
-
};
|
|
61
|
-
$[3] = tempOnPress;
|
|
62
|
-
$[4] = wait;
|
|
63
|
-
$[5] = t4;
|
|
64
|
-
} else {
|
|
65
|
-
t4 = $[5];
|
|
66
|
-
}
|
|
67
|
-
t3 = t4;
|
|
68
|
-
break bb0;
|
|
69
|
-
}
|
|
34
|
+
return event => {
|
|
35
|
+
clearDebounceTimeout();
|
|
36
|
+
debounceTimeout.current = setTimeout(() => {
|
|
37
|
+
tempOnPress(event);
|
|
38
|
+
}, wait);
|
|
39
|
+
};
|
|
70
40
|
case OnPressDelayType.Throttle:
|
|
71
|
-
{
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
t4 = event => {
|
|
75
|
-
if (onPressTimestamp.current > Date.now()) {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
tempOnPress(event);
|
|
79
|
-
onPressTimestamp.current = Date.now() + wait;
|
|
80
|
-
};
|
|
81
|
-
$[6] = tempOnPress;
|
|
82
|
-
$[7] = wait;
|
|
83
|
-
$[8] = t4;
|
|
84
|
-
} else {
|
|
85
|
-
t4 = $[8];
|
|
41
|
+
return event => {
|
|
42
|
+
if (onPressTimestamp.current > Date.now()) {
|
|
43
|
+
return;
|
|
86
44
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
45
|
+
tempOnPress(event);
|
|
46
|
+
onPressTimestamp.current = Date.now() + wait;
|
|
47
|
+
};
|
|
90
48
|
default:
|
|
91
|
-
|
|
92
|
-
t3 = tempOnPress;
|
|
93
|
-
}
|
|
49
|
+
return tempOnPress;
|
|
94
50
|
}
|
|
95
|
-
}
|
|
96
|
-
return t3;
|
|
51
|
+
}, [onPress, onPressDelayConfig, onPressTimestamp, debounceTimeout, clearDebounceTimeout]);
|
|
97
52
|
}
|
|
98
|
-
function
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
({
|
|
108
|
-
onPress,
|
|
109
|
-
onPressDelayConfig,
|
|
110
|
-
...props
|
|
111
|
-
} = t0);
|
|
112
|
-
$[0] = t0;
|
|
113
|
-
$[1] = onPress;
|
|
114
|
-
$[2] = onPressDelayConfig;
|
|
115
|
-
$[3] = props;
|
|
116
|
-
} else {
|
|
117
|
-
onPress = $[1];
|
|
118
|
-
onPressDelayConfig = $[2];
|
|
119
|
-
props = $[3];
|
|
120
|
-
}
|
|
121
|
-
const animated = t1 === undefined ? false : t1;
|
|
122
|
-
let t2;
|
|
123
|
-
if ($[4] !== props) {
|
|
53
|
+
export function useThemedPressable({
|
|
54
|
+
onPress,
|
|
55
|
+
onPressDelayConfig,
|
|
56
|
+
...props
|
|
57
|
+
}, animated = false) {
|
|
58
|
+
const {
|
|
59
|
+
themedPressableProps,
|
|
60
|
+
scaleRatio
|
|
61
|
+
} = useMemo(() => {
|
|
124
62
|
const tempThemedPressableProps = {
|
|
125
63
|
...props
|
|
126
64
|
};
|
|
127
65
|
let tempScaleRatio;
|
|
128
|
-
if (
|
|
66
|
+
if ('scaleRatio' in tempThemedPressableProps) {
|
|
129
67
|
tempScaleRatio = tempThemedPressableProps.scaleRatio;
|
|
130
68
|
delete tempThemedPressableProps.scaleRatio;
|
|
131
69
|
}
|
|
132
|
-
|
|
70
|
+
return {
|
|
133
71
|
themedPressableProps: tempThemedPressableProps,
|
|
134
72
|
scaleRatio: tempScaleRatio
|
|
135
73
|
};
|
|
136
|
-
|
|
137
|
-
$[5] = t2;
|
|
138
|
-
} else {
|
|
139
|
-
t2 = $[5];
|
|
140
|
-
}
|
|
74
|
+
}, [props]);
|
|
141
75
|
const {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
} =
|
|
145
|
-
const t3 = useRestyle(themedPressableRestyleFuncs, themedPressableProps);
|
|
146
|
-
let restyle;
|
|
147
|
-
let style;
|
|
148
|
-
if ($[6] !== t3) {
|
|
149
|
-
({
|
|
150
|
-
style,
|
|
151
|
-
...restyle
|
|
152
|
-
} = t3);
|
|
153
|
-
$[6] = t3;
|
|
154
|
-
$[7] = restyle;
|
|
155
|
-
$[8] = style;
|
|
156
|
-
} else {
|
|
157
|
-
restyle = $[7];
|
|
158
|
-
style = $[8];
|
|
159
|
-
}
|
|
76
|
+
style,
|
|
77
|
+
...restyle
|
|
78
|
+
} = useRestyle(themedPressableRestyleFuncs, themedPressableProps);
|
|
160
79
|
const pressableOnPress = useDelayedOnPress(onPress ?? undefined, onPressDelayConfig);
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
$[9] = animated;
|
|
174
|
-
$[10] = scaleRatio;
|
|
175
|
-
$[11] = style;
|
|
176
|
-
$[12] = t4;
|
|
177
|
-
} else {
|
|
178
|
-
t4 = $[12];
|
|
179
|
-
}
|
|
180
|
-
const styleCb = t4;
|
|
181
|
-
let t5;
|
|
182
|
-
if ($[13] !== pressableOnPress || $[14] !== restyle || $[15] !== styleCb) {
|
|
183
|
-
t5 = {
|
|
184
|
-
onPress: pressableOnPress,
|
|
185
|
-
style: styleCb,
|
|
186
|
-
restyle
|
|
187
|
-
};
|
|
188
|
-
$[13] = pressableOnPress;
|
|
189
|
-
$[14] = restyle;
|
|
190
|
-
$[15] = styleCb;
|
|
191
|
-
$[16] = t5;
|
|
192
|
-
} else {
|
|
193
|
-
t5 = $[16];
|
|
194
|
-
}
|
|
195
|
-
const themedPressable = t5;
|
|
80
|
+
const styleCb = scaleRatio && !animated ? ({
|
|
81
|
+
pressed
|
|
82
|
+
}) => composeStyles({
|
|
83
|
+
transform: [{
|
|
84
|
+
scale: pressed ? scaleRatio : 1
|
|
85
|
+
}]
|
|
86
|
+
}, style) : style;
|
|
87
|
+
const themedPressable = {
|
|
88
|
+
onPress: pressableOnPress,
|
|
89
|
+
style: styleCb,
|
|
90
|
+
restyle
|
|
91
|
+
};
|
|
196
92
|
return themedPressable;
|
|
197
93
|
}
|
|
198
94
|
//# sourceMappingURL=button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useRestyle","useCallback","useEffect","useMemo","useRef","OnPressDelayType","composeStyles","themedPressableRestyleFuncs","useDelayedOnPress","onPress","onPressDelayConfig","
|
|
1
|
+
{"version":3,"names":["useRestyle","useCallback","useEffect","useMemo","useRef","OnPressDelayType","composeStyles","themedPressableRestyleFuncs","useDelayedOnPress","onPress","onPressDelayConfig","onPressTimestamp","debounceTimeout","undefined","clearDebounceTimeout","current","clearTimeout","tempOnPress","console","warn","type","wait","Debounce","event","setTimeout","Throttle","Date","now","useThemedPressable","props","animated","themedPressableProps","scaleRatio","tempThemedPressableProps","tempScaleRatio","style","restyle","pressableOnPress","styleCb","pressed","transform","scale","themedPressable"],"sourceRoot":"../../../src","sources":["hooks/button.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,kBAAkB;AAC7C,SAASC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AAU/D,SAA2BC,gBAAgB,QAAQ,0BAAuB;AAC1E,SAASC,aAAa,QAAQ,wBAAqB;AACnD,SAASC,2BAA2B,QAAQ,2BAAwB;AAEpE,OAAO,SAASC,iBAAiBA,CAC/BC,OAAwC,EACxCC,kBAAuC,EACvC;EACA,MAAMC,gBAAgB,GAAGP,MAAM,CAAC,CAAC,CAAC;EAClC,MAAMQ,eAAe,GAAGR,MAAM,CAAUS,SAAS,CAAC;EAClD,MAAMC,oBAAoB,GAAGb,WAAW,CAAC,MAAM;IAC7C,IAAIW,eAAe,CAACG,OAAO,EAAE;MAC3BC,YAAY,CAACJ,eAAe,CAACG,OAAO,CAAC;IACvC;EACF,CAAC,EAAE,CAACH,eAAe,CAAC,CAAC;EACrBV,SAAS,CAAC,MAAM;IACd,OAAO,MAAM;MACXY,oBAAoB,CAAC,CAAC;IACxB,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,OAAOX,OAAO,CAAmB,MAAM;IACrC,MAAMc,WAAW,GACfR,OAAO,KACN,MAAM;MACLS,OAAO,CAACC,IAAI,CAAC,wBAAwB,CAAC;IACxC,CAAC,CAAC;IACJ,IAAI,CAACT,kBAAkB,EAAE;MACvB,OAAOO,WAAW;IACpB;IAEA,MAAM;MAAEG,IAAI;MAAEC;IAAK,CAAC,GAAGX,kBAAkB;IACzC,QAAQU,IAAI;MACV,KAAKf,gBAAgB,CAACiB,QAAQ;QAC5B,OAAQC,KAAK,IAAK;UAChBT,oBAAoB,CAAC,CAAC;UACtBF,eAAe,CAACG,OAAO,GAAGS,UAAU,CAAC,MAAM;YACzCP,WAAW,CAACM,KAAK,CAAC;UACpB,CAAC,EAAEF,IAAI,CAAC;QACV,CAAC;MACH,KAAKhB,gBAAgB,CAACoB,QAAQ;QAC5B,OAAQF,KAAK,IAAK;UAChB,IAAIZ,gBAAgB,CAACI,OAAO,GAAGW,IAAI,CAACC,GAAG,CAAC,CAAC,EAAE;YACzC;UACF;UAEAV,WAAW,CAACM,KAAK,CAAC;UAClBZ,gBAAgB,CAACI,OAAO,GAAGW,IAAI,CAACC,GAAG,CAAC,CAAC,GAAGN,IAAI;QAC9C,CAAC;MACH;QACE,OAAOJ,WAAW;IACtB;EACF,CAAC,EAAE,CACDR,OAAO,EACPC,kBAAkB,EAClBC,gBAAgB,EAChBC,eAAe,EACfE,oBAAoB,CACrB,CAAC;AACJ;AAEA,OAAO,SAASc,kBAAkBA,CAChC;EACEnB,OAAO;EACPC,kBAAkB;EAClB,GAAGmB;AACgD,CAAC,EACtDC,QAAQ,GAAG,KAAK,EAChB;EACA,MAAM;IAAEC,oBAAoB;IAAEC;EAAW,CAAC,GAAG7B,OAAO,CAAC,MAAM;IACzD,MAAM8B,wBAAwB,GAAG;MAAE,GAAGJ;IAAM,CAAC;IAC7C,IAAIK,cAA4C;IAChD,IAAI,YAAY,IAAID,wBAAwB,EAAE;MAC5CC,cAAc,GAAGD,wBAAwB,CAACD,UAAU;MACpD,OAAOC,wBAAwB,CAACD,UAAU;IAC5C;IAEA,OAAO;MACLD,oBAAoB,EAAEE,wBAAwB;MAC9CD,UAAU,EAAEE;IACd,CAAC;EACH,CAAC,EAAE,CAACL,KAAK,CAAC,CAAC;EACX,MAAM;IAAEM,KAAK;IAAE,GAAGC;EAAQ,CAAC,GAAGpC,UAAU,CACtCO,2BAA2B,EAC3BwB,oBACF,CAAC;EACD,MAAMM,gBAAgB,GAAG7B,iBAAiB,CACxCC,OAAO,IAAII,SAAS,EACpBH,kBACF,CAAC;EAED,MAAM4B,OAAuB,GAC3BN,UAAU,IAAI,CAACF,QAAQ,GACnB,CAAC;IAAES;EAAQ,CAAC,KACVjC,aAAa,CACX;IAAEkC,SAAS,EAAE,CAAC;MAAEC,KAAK,EAAEF,OAAO,GAAGP,UAAU,GAAG;IAAE,CAAC;EAAE,CAAC,EACpDG,KACF,CAAC,GACHA,KAAK;EACX,MAAMO,eAAe,GAAG;IACtBjC,OAAO,EAAE4B,gBAAgB;IACzBF,KAAK,EAAEG,OAAO;IACdF;EACF,CAAC;EAED,OAAOM,eAAe;AACxB","ignoreList":[]}
|
package/lib/module/hooks/list.js
CHANGED
|
@@ -1,61 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { c as _c } from "react/compiler-runtime";
|
|
4
3
|
import { useRef } from 'react';
|
|
5
4
|
import { useThemedSeparator } from "./separator.js";
|
|
6
5
|
export function useListRef() {
|
|
7
6
|
return useRef(null);
|
|
8
7
|
}
|
|
9
|
-
export function useListItemSeparatorComponent(
|
|
10
|
-
const $ = _c(10);
|
|
11
|
-
let t3;
|
|
12
|
-
if ($[0] !== t0) {
|
|
13
|
-
t3 = t0 === undefined ? {} : t0;
|
|
14
|
-
$[0] = t0;
|
|
15
|
-
$[1] = t3;
|
|
16
|
-
} else {
|
|
17
|
-
t3 = $[1];
|
|
18
|
-
}
|
|
19
|
-
const props = t3;
|
|
20
|
-
let t4;
|
|
21
|
-
if ($[2] !== t1) {
|
|
22
|
-
t4 = t1 === undefined ? [] : t1;
|
|
23
|
-
$[2] = t1;
|
|
24
|
-
$[3] = t4;
|
|
25
|
-
} else {
|
|
26
|
-
t4 = $[3];
|
|
27
|
-
}
|
|
28
|
-
const hideForLeadingItemTypes = t4;
|
|
29
|
-
let t5;
|
|
30
|
-
if ($[4] !== t2) {
|
|
31
|
-
t5 = t2 === undefined ? [] : t2;
|
|
32
|
-
$[4] = t2;
|
|
33
|
-
$[5] = t5;
|
|
34
|
-
} else {
|
|
35
|
-
t5 = $[5];
|
|
36
|
-
}
|
|
37
|
-
const hideForTrailingItemTypes = t5;
|
|
8
|
+
export function useListItemSeparatorComponent(props = {}, hideForLeadingItemTypes = [], hideForTrailingItemTypes = []) {
|
|
38
9
|
const ThemedSeparator = useThemedSeparator(props.size, props.vertical, props.backgroundColor, props.style);
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
return ThemedSeparator;
|
|
50
|
-
};
|
|
51
|
-
$[6] = ThemedSeparator;
|
|
52
|
-
$[7] = hideForLeadingItemTypes;
|
|
53
|
-
$[8] = hideForTrailingItemTypes;
|
|
54
|
-
$[9] = t6;
|
|
55
|
-
} else {
|
|
56
|
-
t6 = $[9];
|
|
57
|
-
}
|
|
58
|
-
const ListItemSeparatorComponent = t6;
|
|
10
|
+
const ListItemSeparatorComponent = ({
|
|
11
|
+
leadingItem,
|
|
12
|
+
trailingItem
|
|
13
|
+
}) => {
|
|
14
|
+
if (typeof leadingItem === 'object' && hideForLeadingItemTypes.includes(leadingItem.type) || typeof trailingItem === 'object' && hideForTrailingItemTypes.includes(trailingItem.type)) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
return ThemedSeparator;
|
|
18
|
+
};
|
|
59
19
|
return ListItemSeparatorComponent;
|
|
60
20
|
}
|
|
61
21
|
//# sourceMappingURL=list.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useRef","useThemedSeparator","useListRef","useListItemSeparatorComponent","
|
|
1
|
+
{"version":3,"names":["useRef","useThemedSeparator","useListRef","useListItemSeparatorComponent","props","hideForLeadingItemTypes","hideForTrailingItemTypes","ThemedSeparator","size","vertical","backgroundColor","style","ListItemSeparatorComponent","leadingItem","trailingItem","includes","type"],"sourceRoot":"../../../src","sources":["hooks/list.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,OAAO;AAM9B,SAASC,kBAAkB,QAAQ,gBAAa;AAEhD,OAAO,SAASC,UAAUA,CAAA,EAAM;EAC9B,OAAOF,MAAM,CAAa,IAAI,CAAC;AACjC;AAEA,OAAO,SAASG,6BAA6BA,CAC3CC,KAA6B,GAAG,CAAC,CAAC,EAClCC,uBAAiC,GAAG,EAAE,EACtCC,wBAAkC,GAAG,EAAE,EACvC;EACA,MAAMC,eAAe,GAAGN,kBAAkB,CACxCG,KAAK,CAACI,IAAI,EACVJ,KAAK,CAACK,QAAQ,EACdL,KAAK,CAACM,eAAe,EACrBN,KAAK,CAACO,KACR,CAAC;EAED,MAAMC,0BAAsD,GAAGA,CAAC;IAC9DC,WAAW;IACXC;EACF,CAAC,KAAK;IACJ,IACG,OAAOD,WAAW,KAAK,QAAQ,IAC9BR,uBAAuB,CAACU,QAAQ,CAACF,WAAW,CAACG,IAAI,CAAC,IACnD,OAAOF,YAAY,KAAK,QAAQ,IAC/BR,wBAAwB,CAACS,QAAQ,CAACD,YAAY,CAACE,IAAI,CAAE,EACvD;MACA,OAAO,IAAI;IACb;IAEA,OAAOT,eAAe;EACxB,CAAC;EAED,OAAOK,0BAA0B;AACnC","ignoreList":[]}
|