@jamadd/react-native-template-ui 0.8.7 → 0.9.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/README.md +8 -0
- package/lib/module/components/accordion/ThemedAccordion.js +270 -0
- package/lib/module/components/accordion/ThemedAccordion.js.map +1 -0
- package/lib/module/components/button/AnimatedPressable.js +6 -0
- package/lib/module/components/button/AnimatedPressable.js.map +1 -1
- package/lib/module/components/button/AnimatedThemedPressable.js +15 -0
- package/lib/module/components/button/AnimatedThemedPressable.js.map +1 -1
- package/lib/module/components/button/ThemedButton.js +15 -0
- package/lib/module/components/button/ThemedButton.js.map +1 -1
- package/lib/module/components/button/ThemedIconButton.js +15 -0
- package/lib/module/components/button/ThemedIconButton.js.map +1 -1
- package/lib/module/components/button/ThemedIconTextButton.js +16 -0
- package/lib/module/components/button/ThemedIconTextButton.js.map +1 -1
- package/lib/module/components/button/ThemedPressable.js +15 -0
- package/lib/module/components/button/ThemedPressable.js.map +1 -1
- package/lib/module/components/icon/ThemedIcon.js +14 -0
- package/lib/module/components/icon/ThemedIcon.js.map +1 -1
- package/lib/module/components/list/List.js +15 -0
- package/lib/module/components/list/List.js.map +1 -1
- package/lib/module/components/loading/ThemedLoading.js +13 -0
- package/lib/module/components/loading/ThemedLoading.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheet.js +32 -3
- package/lib/module/components/overlay/actionSheet/ActionSheet.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js +4 -0
- package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js +17 -2
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js +7 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js +6 -0
- package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionList.js +6 -0
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionList.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionListItem.js +6 -0
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionListItem.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js +7 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js +7 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js +6 -0
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js +8 -2
- package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js.map +1 -1
- package/lib/module/components/overlay/alert/Alert.js +19 -0
- package/lib/module/components/overlay/alert/Alert.js.map +1 -1
- package/lib/module/components/overlay/alert/AlertButton.js +6 -0
- package/lib/module/components/overlay/alert/AlertButton.js.map +1 -1
- package/lib/module/components/overlay/alert/AlertButtons.js +6 -0
- package/lib/module/components/overlay/alert/AlertButtons.js.map +1 -1
- package/lib/module/components/overlay/alert/AlertContent.js +6 -0
- package/lib/module/components/overlay/alert/AlertContent.js.map +1 -1
- package/lib/module/components/overlay/alert/AlertWrap.js +7 -1
- package/lib/module/components/overlay/alert/AlertWrap.js.map +1 -1
- package/lib/module/components/overlay/modal/ThemedLoadingModal.js +15 -0
- package/lib/module/components/overlay/modal/ThemedLoadingModal.js.map +1 -1
- package/lib/module/components/overlay/modal/ThemedModal.js +18 -0
- package/lib/module/components/overlay/modal/ThemedModal.js.map +1 -1
- package/lib/module/components/overlay/toast/ThemedToast.js +17 -2
- package/lib/module/components/overlay/toast/ThemedToast.js.map +1 -1
- package/lib/module/components/provider/GestureProvider.js +11 -0
- package/lib/module/components/provider/GestureProvider.js.map +1 -1
- package/lib/module/components/provider/InsetsProvider.js +12 -0
- package/lib/module/components/provider/InsetsProvider.js.map +1 -1
- package/lib/module/components/provider/ReactNativeTemplateProviders.js +12 -0
- package/lib/module/components/provider/ReactNativeTemplateProviders.js.map +1 -1
- package/lib/module/components/provider/ThemeProvider.js +11 -0
- package/lib/module/components/provider/ThemeProvider.js.map +1 -1
- package/lib/module/components/separator/ThemedSeparator.js +19 -0
- package/lib/module/components/separator/ThemedSeparator.js.map +1 -1
- package/lib/module/components/slider/Slider.js +162 -213
- package/lib/module/components/slider/Slider.js.map +1 -1
- package/lib/module/components/slider/ThemedSlider.js +24 -2
- package/lib/module/components/slider/ThemedSlider.js.map +1 -1
- package/lib/module/components/slider/ThemedSliderStepIndicator.js +6 -0
- package/lib/module/components/slider/ThemedSliderStepIndicator.js.map +1 -1
- package/lib/module/components/switch/ThemedSwitch.js +14 -0
- package/lib/module/components/switch/ThemedSwitch.js.map +1 -1
- package/lib/module/components/text/Text.js +5 -0
- package/lib/module/components/text/Text.js.map +1 -1
- package/lib/module/components/text/ThemedIconText.js +22 -0
- package/lib/module/components/text/ThemedIconText.js.map +1 -1
- package/lib/module/components/text/ThemedText.js +15 -0
- package/lib/module/components/text/ThemedText.js.map +1 -1
- package/lib/module/components/view/AnimatedThemedView.js +16 -0
- package/lib/module/components/view/AnimatedThemedView.js.map +1 -1
- package/lib/module/components/view/AnimatedView.js +6 -0
- package/lib/module/components/view/AnimatedView.js.map +1 -1
- package/lib/module/components/view/Box.js +5 -0
- package/lib/module/components/view/Box.js.map +1 -1
- package/lib/module/components/view/ThemedScreenWrap.js +79 -88
- package/lib/module/components/view/ThemedScreenWrap.js.map +1 -1
- package/lib/module/components/view/ThemedScreenWrap.web.js +84 -59
- package/lib/module/components/view/ThemedScreenWrap.web.js.map +1 -1
- package/lib/module/components/view/ThemedScrollView.js +17 -0
- package/lib/module/components/view/ThemedScrollView.js.map +1 -1
- package/lib/module/components/view/ThemedView.js +16 -0
- package/lib/module/components/view/ThemedView.js.map +1 -1
- package/lib/module/hooks/button.js +46 -0
- package/lib/module/hooks/button.js.map +1 -1
- package/lib/module/hooks/list.js +29 -0
- package/lib/module/hooks/list.js.map +1 -1
- package/lib/module/hooks/react.js +41 -0
- package/lib/module/hooks/react.js.map +1 -1
- package/lib/module/hooks/reanimated.js +10 -0
- package/lib/module/hooks/reanimated.js.map +1 -1
- package/lib/module/hooks/separator.js +18 -1
- package/lib/module/hooks/separator.js.map +1 -1
- package/lib/module/hooks/style.js +72 -0
- package/lib/module/hooks/style.js.map +1 -1
- package/lib/module/hooks/theme.js +93 -0
- package/lib/module/hooks/theme.js.map +1 -1
- package/lib/module/hooks/view.js +122 -1
- package/lib/module/hooks/view.js.map +1 -1
- package/lib/module/index.js +4 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/types/accordion.js +4 -0
- package/lib/module/types/accordion.js.map +1 -0
- package/lib/module/utils/button/const.js +28 -0
- package/lib/module/utils/button/const.js.map +1 -1
- package/lib/module/utils/overlay/const.js +72 -0
- package/lib/module/utils/overlay/const.js.map +1 -1
- package/lib/module/utils/overlay/func.js +101 -0
- package/lib/module/utils/overlay/func.js.map +1 -1
- package/lib/module/utils/slider/const.js +52 -0
- package/lib/module/utils/slider/const.js.map +1 -1
- package/lib/module/utils/style/const.js +14 -0
- package/lib/module/utils/style/const.js.map +1 -1
- package/lib/module/utils/style/func.js +102 -0
- package/lib/module/utils/style/func.js.map +1 -1
- package/lib/module/utils/theme/const.js +180 -0
- package/lib/module/utils/theme/const.js.map +1 -1
- package/lib/module/utils/theme/restyle.js +124 -0
- package/lib/module/utils/theme/restyle.js.map +1 -1
- package/lib/typescript/src/components/accordion/ThemedAccordion.d.ts +20 -0
- package/lib/typescript/src/components/accordion/ThemedAccordion.d.ts.map +1 -0
- package/lib/typescript/src/components/button/AnimatedPressable.d.ts +0 -1
- package/lib/typescript/src/components/button/AnimatedPressable.d.ts.map +1 -1
- package/lib/typescript/src/components/button/AnimatedThemedPressable.d.ts +14 -0
- package/lib/typescript/src/components/button/AnimatedThemedPressable.d.ts.map +1 -1
- package/lib/typescript/src/components/button/ThemedButton.d.ts +14 -0
- package/lib/typescript/src/components/button/ThemedButton.d.ts.map +1 -1
- package/lib/typescript/src/components/button/ThemedIconButton.d.ts +14 -0
- package/lib/typescript/src/components/button/ThemedIconButton.d.ts.map +1 -1
- package/lib/typescript/src/components/button/ThemedIconTextButton.d.ts +15 -0
- package/lib/typescript/src/components/button/ThemedIconTextButton.d.ts.map +1 -1
- package/lib/typescript/src/components/button/ThemedPressable.d.ts +15 -0
- package/lib/typescript/src/components/button/ThemedPressable.d.ts.map +1 -1
- package/lib/typescript/src/components/icon/ThemedIcon.d.ts +13 -0
- package/lib/typescript/src/components/icon/ThemedIcon.d.ts.map +1 -1
- package/lib/typescript/src/components/list/List.d.ts +14 -0
- package/lib/typescript/src/components/list/List.d.ts.map +1 -1
- package/lib/typescript/src/components/loading/ThemedLoading.d.ts +12 -0
- package/lib/typescript/src/components/loading/ThemedLoading.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.d.ts +18 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts +0 -3
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts +0 -3
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/Alert.d.ts +18 -0
- package/lib/typescript/src/components/overlay/alert/Alert.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertButton.d.ts +0 -3
- package/lib/typescript/src/components/overlay/alert/AlertButton.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertButtons.d.ts +0 -3
- package/lib/typescript/src/components/overlay/alert/AlertButtons.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertContent.d.ts +0 -3
- package/lib/typescript/src/components/overlay/alert/AlertContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertWrap.d.ts +0 -8
- package/lib/typescript/src/components/overlay/alert/AlertWrap.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/modal/ThemedLoadingModal.d.ts +14 -0
- package/lib/typescript/src/components/overlay/modal/ThemedLoadingModal.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/modal/ThemedModal.d.ts +17 -0
- package/lib/typescript/src/components/overlay/modal/ThemedModal.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/toast/ThemedToast.d.ts +14 -0
- package/lib/typescript/src/components/overlay/toast/ThemedToast.d.ts.map +1 -1
- package/lib/typescript/src/components/provider/GestureProvider.d.ts +11 -0
- package/lib/typescript/src/components/provider/GestureProvider.d.ts.map +1 -1
- package/lib/typescript/src/components/provider/InsetsProvider.d.ts +11 -0
- package/lib/typescript/src/components/provider/InsetsProvider.d.ts.map +1 -1
- package/lib/typescript/src/components/provider/ReactNativeTemplateProviders.d.ts +11 -0
- package/lib/typescript/src/components/provider/ReactNativeTemplateProviders.d.ts.map +1 -1
- package/lib/typescript/src/components/provider/ThemeProvider.d.ts +11 -0
- package/lib/typescript/src/components/provider/ThemeProvider.d.ts.map +1 -1
- package/lib/typescript/src/components/separator/ThemedSeparator.d.ts +18 -0
- package/lib/typescript/src/components/separator/ThemedSeparator.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/Slider.d.ts +20 -0
- package/lib/typescript/src/components/slider/Slider.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/ThemedSlider.d.ts +15 -0
- package/lib/typescript/src/components/slider/ThemedSlider.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts +0 -2
- package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts.map +1 -1
- package/lib/typescript/src/components/switch/ThemedSwitch.d.ts +13 -0
- package/lib/typescript/src/components/switch/ThemedSwitch.d.ts.map +1 -1
- package/lib/typescript/src/components/text/Text.d.ts +0 -2021
- package/lib/typescript/src/components/text/Text.d.ts.map +1 -1
- package/lib/typescript/src/components/text/ThemedIconText.d.ts +21 -0
- package/lib/typescript/src/components/text/ThemedIconText.d.ts.map +1 -1
- package/lib/typescript/src/components/text/ThemedText.d.ts +14 -0
- package/lib/typescript/src/components/text/ThemedText.d.ts.map +1 -1
- package/lib/typescript/src/components/view/AnimatedThemedView.d.ts +15 -0
- package/lib/typescript/src/components/view/AnimatedThemedView.d.ts.map +1 -1
- package/lib/typescript/src/components/view/AnimatedView.d.ts +0 -1
- package/lib/typescript/src/components/view/AnimatedView.d.ts.map +1 -1
- package/lib/typescript/src/components/view/Box.d.ts +0 -2071
- package/lib/typescript/src/components/view/Box.d.ts.map +1 -1
- package/lib/typescript/src/components/view/ThemedScreenWrap.d.ts +16 -0
- package/lib/typescript/src/components/view/ThemedScreenWrap.d.ts.map +1 -1
- package/lib/typescript/src/components/view/ThemedScreenWrap.web.d.ts +14 -0
- package/lib/typescript/src/components/view/ThemedScreenWrap.web.d.ts.map +1 -1
- package/lib/typescript/src/components/view/ThemedScrollView.d.ts +16 -0
- package/lib/typescript/src/components/view/ThemedScrollView.d.ts.map +1 -1
- package/lib/typescript/src/components/view/ThemedView.d.ts +15 -0
- package/lib/typescript/src/components/view/ThemedView.d.ts.map +1 -1
- package/lib/typescript/src/hooks/button.d.ts +41 -0
- package/lib/typescript/src/hooks/button.d.ts.map +1 -1
- package/lib/typescript/src/hooks/list.d.ts +27 -0
- package/lib/typescript/src/hooks/list.d.ts.map +1 -1
- package/lib/typescript/src/hooks/react.d.ts +38 -0
- package/lib/typescript/src/hooks/react.d.ts.map +1 -1
- package/lib/typescript/src/hooks/reanimated.d.ts +10 -0
- package/lib/typescript/src/hooks/reanimated.d.ts.map +1 -1
- package/lib/typescript/src/hooks/separator.d.ts +16 -0
- package/lib/typescript/src/hooks/separator.d.ts.map +1 -1
- package/lib/typescript/src/hooks/style.d.ts +65 -0
- package/lib/typescript/src/hooks/style.d.ts.map +1 -1
- package/lib/typescript/src/hooks/theme.d.ts +82 -0
- package/lib/typescript/src/hooks/theme.d.ts.map +1 -1
- package/lib/typescript/src/hooks/view.d.ts +40 -2
- package/lib/typescript/src/hooks/view.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +2 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types/accordion.d.ts +42 -0
- package/lib/typescript/src/types/accordion.d.ts.map +1 -0
- package/lib/typescript/src/types/button.d.ts +92 -0
- package/lib/typescript/src/types/button.d.ts.map +1 -1
- package/lib/typescript/src/types/icon.d.ts +43 -0
- package/lib/typescript/src/types/icon.d.ts.map +1 -1
- package/lib/typescript/src/types/list.d.ts +84 -0
- package/lib/typescript/src/types/list.d.ts.map +1 -1
- package/lib/typescript/src/types/loading.d.ts +38 -0
- package/lib/typescript/src/types/loading.d.ts.map +1 -1
- package/lib/typescript/src/types/overlay.d.ts +222 -0
- package/lib/typescript/src/types/overlay.d.ts.map +1 -1
- package/lib/typescript/src/types/provider.d.ts +21 -0
- package/lib/typescript/src/types/provider.d.ts.map +1 -1
- package/lib/typescript/src/types/react.d.ts +32 -0
- package/lib/typescript/src/types/react.d.ts.map +1 -1
- package/lib/typescript/src/types/reanimated.d.ts +32 -1
- package/lib/typescript/src/types/reanimated.d.ts.map +1 -1
- package/lib/typescript/src/types/separator.d.ts +26 -0
- package/lib/typescript/src/types/separator.d.ts.map +1 -1
- package/lib/typescript/src/types/slider.d.ts +88 -0
- package/lib/typescript/src/types/slider.d.ts.map +1 -1
- package/lib/typescript/src/types/style.d.ts +43 -0
- package/lib/typescript/src/types/style.d.ts.map +1 -1
- package/lib/typescript/src/types/switch.d.ts +50 -0
- package/lib/typescript/src/types/switch.d.ts.map +1 -1
- package/lib/typescript/src/types/text.d.ts +72 -0
- package/lib/typescript/src/types/text.d.ts.map +1 -1
- package/lib/typescript/src/types/theme.d.ts +111 -0
- package/lib/typescript/src/types/theme.d.ts.map +1 -1
- package/lib/typescript/src/types/view.d.ts +137 -0
- package/lib/typescript/src/types/view.d.ts.map +1 -1
- package/lib/typescript/src/utils/button/const.d.ts +27 -0
- package/lib/typescript/src/utils/button/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/overlay/const.d.ts +67 -0
- package/lib/typescript/src/utils/overlay/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/overlay/func.d.ts +93 -0
- package/lib/typescript/src/utils/overlay/func.d.ts.map +1 -1
- package/lib/typescript/src/utils/slider/const.d.ts +47 -0
- package/lib/typescript/src/utils/slider/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/style/const.d.ts +14 -0
- package/lib/typescript/src/utils/style/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/style/func.d.ts +95 -0
- package/lib/typescript/src/utils/style/func.d.ts.map +1 -1
- package/lib/typescript/src/utils/theme/const.d.ts +170 -0
- package/lib/typescript/src/utils/theme/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/theme/restyle.d.ts +1 -1977
- package/lib/typescript/src/utils/theme/restyle.d.ts.map +1 -1
- package/package.json +4 -4
- package/lib/module/components/overlay/actionSheet/ActionSheet.web.js +0 -76
- package/lib/module/components/overlay/actionSheet/ActionSheet.web.js.map +0 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.web.js +0 -113
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.web.js.map +0 -1
- package/lib/module/components/slider/ThemedSlider.web.js +0 -206
- package/lib/module/components/slider/ThemedSlider.web.js.map +0 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.web.d.ts +0 -5
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.web.d.ts.map +0 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.web.d.ts +0 -4
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.web.d.ts.map +0 -1
- package/lib/typescript/src/components/slider/ThemedSlider.web.d.ts +0 -5
- package/lib/typescript/src/components/slider/ThemedSlider.web.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/Box.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/Box.tsx"],"names":[],"mappings":"AAWA,eAAe,GAAG,CAAC"}
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
2
|
import type { ThemedScreenWrapProps } from '../../types/view';
|
|
3
|
+
/**
|
|
4
|
+
* A themed screen wrapper component for full-screen layouts with lifecycle hooks.
|
|
5
|
+
* Provides a flex:1 container with safe area inset support and optional setup/cleanup effects.
|
|
6
|
+
* Ideal for wrapping entire screen content with consistent spacing and lifecycle management.
|
|
7
|
+
* @param props - Component props of type ThemedScreenWrapProps
|
|
8
|
+
* @returns JSX element rendering a full-screen themed container
|
|
9
|
+
* @example
|
|
10
|
+
* <ThemedScreenWrap
|
|
11
|
+
* insetTop={true}
|
|
12
|
+
* insetBottom={true}
|
|
13
|
+
* effectSetup={() => console.log('screen mounted')}
|
|
14
|
+
* effectCleanup={() => console.log('screen unmounted')}
|
|
15
|
+
* >
|
|
16
|
+
* <ThemedText>Screen content</ThemedText>
|
|
17
|
+
* </ThemedScreenWrap>
|
|
18
|
+
*/
|
|
3
19
|
declare const ThemedScreenWrap: FC<ThemedScreenWrapProps>;
|
|
4
20
|
export default ThemedScreenWrap;
|
|
5
21
|
//# sourceMappingURL=ThemedScreenWrap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemedScreenWrap.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/ThemedScreenWrap.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ThemedScreenWrap.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/ThemedScreenWrap.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAG9D;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAmC/C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import type { ThemedScreenWrapProps } from '../../types/view';
|
|
3
|
+
/**
|
|
4
|
+
* A themed screen wrapper component for full-screen layouts on web platforms.
|
|
5
|
+
* Provides a height-constrained container with safe area inset support.
|
|
6
|
+
* Automatically adjusts to window dimensions for consistent web layout.
|
|
7
|
+
* @param props - Component props of type ThemedScreenWrapProps
|
|
8
|
+
* @returns JSX element rendering a full-screen themed container
|
|
9
|
+
* @example
|
|
10
|
+
* <ThemedScreenWrap
|
|
11
|
+
* insetTop={true}
|
|
12
|
+
* insetBottom={true}
|
|
13
|
+
* >
|
|
14
|
+
* <ThemedText>Screen content</ThemedText>
|
|
15
|
+
* </ThemedScreenWrap>
|
|
16
|
+
*/
|
|
3
17
|
declare const ThemedScreenWrap: FC<ThemedScreenWrapProps>;
|
|
4
18
|
export default ThemedScreenWrap;
|
|
5
19
|
//# sourceMappingURL=ThemedScreenWrap.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemedScreenWrap.web.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/ThemedScreenWrap.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"ThemedScreenWrap.web.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/ThemedScreenWrap.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAG9D;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAoC/C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import type { ThemedScrollViewProps } from '../../types/view';
|
|
3
|
+
/**
|
|
4
|
+
* A themed scroll view component with safe area inset support.
|
|
5
|
+
* Wraps React Native's ScrollView with theme-aware styling and automatic inset handling.
|
|
6
|
+
* Provides smooth scrolling with optional bottom padding for safe areas.
|
|
7
|
+
* @param props - Component props of type ThemedScrollViewProps
|
|
8
|
+
* @returns JSX element rendering a themed scrollable container
|
|
9
|
+
* @example
|
|
10
|
+
* <ThemedScrollView
|
|
11
|
+
* insetBottom={true}
|
|
12
|
+
* insetPaddingBottom="m"
|
|
13
|
+
* >
|
|
14
|
+
* <ThemedView>
|
|
15
|
+
* <ThemedText>Scrollable content</ThemedText>
|
|
16
|
+
* </ThemedView>
|
|
17
|
+
* </ThemedScrollView>
|
|
18
|
+
*/
|
|
3
19
|
declare const ThemedScrollView: FC<ThemedScrollViewProps>;
|
|
4
20
|
export default ThemedScrollView;
|
|
5
21
|
//# sourceMappingURL=ThemedScrollView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemedScrollView.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/ThemedScrollView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAI9D,QAAA,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA2C/C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"ThemedScrollView.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/ThemedScrollView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAI9D;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA2C/C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import type { ThemedViewProps } from '../../types/view';
|
|
3
|
+
/**
|
|
4
|
+
* A themed view component that provides theme-aware container styling.
|
|
5
|
+
* Serves as the foundation for layout and composition with automatic theme integration.
|
|
6
|
+
* Supports all standard view props plus theme-based colors, spacing, and layout properties.
|
|
7
|
+
* @param props - Component props of type ThemedViewProps
|
|
8
|
+
* @returns JSX element rendering a themed view container
|
|
9
|
+
* @example
|
|
10
|
+
* <ThemedView
|
|
11
|
+
* backgroundColor="background"
|
|
12
|
+
* padding="l"
|
|
13
|
+
* flexDirection="row"
|
|
14
|
+
* >
|
|
15
|
+
* <ThemedText>Content</ThemedText>
|
|
16
|
+
* </ThemedView>
|
|
17
|
+
*/
|
|
3
18
|
declare const ThemedView: FC<ThemedViewProps>;
|
|
4
19
|
export default ThemedView;
|
|
5
20
|
//# sourceMappingURL=ThemedView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemedView.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/ThemedView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGxD,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAYnC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"ThemedView.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/ThemedView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGxD;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAYnC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,6 +1,47 @@
|
|
|
1
1
|
import type { AnimatedThemedPressableProps, OnPressDelayConfig, PressableOnPress, ThemedPressableProps } from '../types/button';
|
|
2
|
+
/**
|
|
3
|
+
* Hook to wrap an onPress handler with debounce or throttle behavior.
|
|
4
|
+
* @param onPress - The press handler function to be delayed
|
|
5
|
+
* @param onPressDelayConfig - Configuration for delay type (debounce/throttle) and wait time
|
|
6
|
+
* @returns A memoized onPress handler with the configured delay behavior
|
|
7
|
+
* @example
|
|
8
|
+
* const delayedPress = useDelayedOnPress(
|
|
9
|
+
* () => console.log('Pressed'),
|
|
10
|
+
* { type: OnPressDelayType.Debounce, wait: 500 }
|
|
11
|
+
* );
|
|
12
|
+
*/
|
|
2
13
|
export declare function useDelayedOnPress(onPress: PressableOnPress | null, onPressDelayConfig?: OnPressDelayConfig): PressableOnPress;
|
|
14
|
+
/**
|
|
15
|
+
* Hook to create themed pressable props with restyle support, scale animation, and delayed press handling.
|
|
16
|
+
* @param props - Themed pressable properties including theme props, onPress, scaleRatio, and onPressDelayConfig
|
|
17
|
+
* @returns Object containing all pressable props with applied theme styles and behaviors
|
|
18
|
+
* @example
|
|
19
|
+
* const pressableProps = useThemedPressable({
|
|
20
|
+
* backgroundColor: 'themePri',
|
|
21
|
+
* padding: 'm',
|
|
22
|
+
* borderRadius: 'm',
|
|
23
|
+
* onPress: () => console.log('Pressed'),
|
|
24
|
+
* scaleRatio: ButtonScaleRatio.Small,
|
|
25
|
+
* onPressDelayConfig: { type: OnPressDelayType.Debounce, wait: 300 }
|
|
26
|
+
* });
|
|
27
|
+
*/
|
|
3
28
|
export declare function useThemedPressable({ onPress, scaleRatio, onPressDelayConfig, ...props }: ThemedPressableProps): ThemedPressableProps;
|
|
29
|
+
/**
|
|
30
|
+
* Hook to create animated themed pressable props with reanimated support and delayed press handling.
|
|
31
|
+
* @param props - Animated themed pressable properties including theme props, onPress, animatedStyle, and onPressDelayConfig
|
|
32
|
+
* @returns Object containing all animated pressable props with applied theme styles, animations, and behaviors
|
|
33
|
+
* @example
|
|
34
|
+
* const animatedStyle = useAnimatedStyle(() => ({
|
|
35
|
+
* opacity: interpolate(progress.value, [0, 1], [0.5, 1])
|
|
36
|
+
* }));
|
|
37
|
+
* const pressableProps = useAnimatedThemedPressable({
|
|
38
|
+
* backgroundColor: 'themePri',
|
|
39
|
+
* padding: 'm',
|
|
40
|
+
* animatedStyle,
|
|
41
|
+
* onPress: () => console.log('Pressed'),
|
|
42
|
+
* onPressDelayConfig: { type: OnPressDelayType.Throttle, wait: 1000 }
|
|
43
|
+
* });
|
|
44
|
+
*/
|
|
4
45
|
export declare function useAnimatedThemedPressable({ onPress, onPressDelayConfig, animatedStyle, ...props }: AnimatedThemedPressableProps): Omit<Omit<import("react-native-reanimated").AnimatedProps<Readonly<import("react-native").PressableProps & import("react").RefAttributes<import("react-native").View>>>, "ref"> & {
|
|
5
46
|
ref?: (import("react-native-reanimated").AnimatedRef | import("react").Ref<import("react-native").View> | import("react-native-reanimated").AnimatedRef<import("react").ForwardRefExoticComponent<import("react-native").PressableProps & import("react").RefAttributes<import("react-native").View>>>) | undefined;
|
|
6
47
|
}, "key">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/hooks/button.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,4BAA4B,EAC5B,kBAAkB,EAClB,gBAAgB,EAEhB,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AASzB,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,gBAAgB,GAAG,IAAI,EAChC,kBAAkB,CAAC,EAAE,kBAAkB,oBAqDxC;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/hooks/button.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,4BAA4B,EAC5B,kBAAkB,EAClB,gBAAgB,EAEhB,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AASzB;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,gBAAgB,GAAG,IAAI,EAChC,kBAAkB,CAAC,EAAE,kBAAkB,oBAqDxC;AAiCD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,UAAU,EACV,kBAAkB,EAClB,GAAG,KAAK,EACT,EAAE,oBAAoB,wBAetB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,0BAA0B,CAAC,EACzC,OAAO,EACP,kBAAkB,EAClB,aAAa,EACb,GAAG,KAAK,EACT,EAAE,4BAA4B;;UAmB9B"}
|
|
@@ -1,4 +1,31 @@
|
|
|
1
1
|
import type { ListItemSeparatorComponent, ListItemSeparatorProps, ListRef } from '../types/list';
|
|
2
|
+
/**
|
|
3
|
+
* Hook to create a ref for a FlatList or SectionList component.
|
|
4
|
+
* @template T - The type of items in the list
|
|
5
|
+
* @returns A mutable ref object for accessing the list instance
|
|
6
|
+
* @example
|
|
7
|
+
* const listRef = useListRef<MyItemType>();
|
|
8
|
+
* <FlatList ref={listRef} />
|
|
9
|
+
* // Later: listRef.current?.scrollToEnd()
|
|
10
|
+
*/
|
|
2
11
|
export declare function useListRef<T>(): import("react").RefObject<ListRef<T> | null>;
|
|
12
|
+
/**
|
|
13
|
+
* Hook to create a customizable list item separator component with conditional rendering.
|
|
14
|
+
* @param props - Configuration for the separator appearance
|
|
15
|
+
* @param props.size - The size/thickness of the separator
|
|
16
|
+
* @param props.vertical - Whether the separator is vertical (default: false)
|
|
17
|
+
* @param props.backgroundColor - The background color of the separator
|
|
18
|
+
* @param props.style - Additional styles for the separator
|
|
19
|
+
* @param hideForLeadingItemTypes - Array of item type strings to hide separator after
|
|
20
|
+
* @param hideForTrailingItemTypes - Array of item type strings to hide separator before
|
|
21
|
+
* @returns A ListItemSeparatorComponent that renders conditionally based on adjacent items
|
|
22
|
+
* @example
|
|
23
|
+
* const ItemSeparator = useListItemSeparatorComponent(
|
|
24
|
+
* { size: BorderSize.S, backgroundColor: 'separator' },
|
|
25
|
+
* ['header'],
|
|
26
|
+
* ['footer']
|
|
27
|
+
* );
|
|
28
|
+
* <FlatList ItemSeparatorComponent={ItemSeparator} />
|
|
29
|
+
*/
|
|
3
30
|
export declare function useListItemSeparatorComponent(props?: ListItemSeparatorProps, hideForLeadingItemTypes?: string[], hideForTrailingItemTypes?: string[]): ListItemSeparatorComponent;
|
|
4
31
|
//# sourceMappingURL=list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/hooks/list.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,0BAA0B,EAC1B,sBAAsB,EACtB,OAAO,EACR,MAAM,eAAe,CAAC;AAGvB,wBAAgB,UAAU,CAAC,CAAC,kDAE3B;AAED,wBAAgB,6BAA6B,CAC3C,KAAK,GAAE,sBAA2B,EAClC,uBAAuB,GAAE,MAAM,EAAO,EACtC,wBAAwB,GAAE,MAAM,EAAO,8BA0BxC"}
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/hooks/list.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,0BAA0B,EAC1B,sBAAsB,EACtB,OAAO,EACR,MAAM,eAAe,CAAC;AAGvB;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,CAAC,kDAE3B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,6BAA6B,CAC3C,KAAK,GAAE,sBAA2B,EAClC,uBAAuB,GAAE,MAAM,EAAO,EACtC,wBAAwB,GAAE,MAAM,EAAO,8BA0BxC"}
|
|
@@ -1,11 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook to manage a timeout with automatic cleanup.
|
|
3
|
+
* @returns Object containing timeoutRef and clearTimeoutRef function
|
|
4
|
+
* @returns timeoutRef - Ref to store the timeout ID
|
|
5
|
+
* @returns clearTimeoutRef - Function to clear the timeout
|
|
6
|
+
* @example
|
|
7
|
+
* const { timeoutRef, clearTimeoutRef } = useTimeout();
|
|
8
|
+
* timeoutRef.current = setTimeout(() => {
|
|
9
|
+
* console.log('Delayed action');
|
|
10
|
+
* }, 1000);
|
|
11
|
+
* // Cleanup happens automatically on unmount
|
|
12
|
+
*/
|
|
1
13
|
export declare function useTimeout(): {
|
|
2
14
|
timeoutRef: import("react").RefObject<number | null>;
|
|
3
15
|
clearTimeoutRef: () => void;
|
|
4
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* Hook to manage an interval with automatic cleanup.
|
|
19
|
+
* @returns Object containing intervalRef and clearIntervalRef function
|
|
20
|
+
* @returns intervalRef - Ref to store the interval ID
|
|
21
|
+
* @returns clearIntervalRef - Function to clear the interval
|
|
22
|
+
* @example
|
|
23
|
+
* const { intervalRef, clearIntervalRef } = useInterval();
|
|
24
|
+
* intervalRef.current = setInterval(() => {
|
|
25
|
+
* console.log('Repeating action');
|
|
26
|
+
* }, 1000);
|
|
27
|
+
* // Cleanup happens automatically on unmount
|
|
28
|
+
*/
|
|
5
29
|
export declare function useInterval(): {
|
|
6
30
|
intervalRef: import("react").RefObject<number | null>;
|
|
7
31
|
clearIntervalRef: () => void;
|
|
8
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* Hook to manage state with a deferred version for performance optimization.
|
|
35
|
+
* @template T - The type of the state value
|
|
36
|
+
* @param initialState - Initial state value
|
|
37
|
+
* @returns Object containing state, setState, and deferredState
|
|
38
|
+
* @returns state - The current state value
|
|
39
|
+
* @returns setState - Function to update the state
|
|
40
|
+
* @returns deferredState - Deferred version of state that updates after urgent updates
|
|
41
|
+
* @example
|
|
42
|
+
* const { state, setState, deferredState } = useDeferredState('');
|
|
43
|
+
* // Use state for input control, deferredState for expensive operations
|
|
44
|
+
* <TextInput value={state} onChangeText={setState} />
|
|
45
|
+
* <ExpensiveList filter={deferredState} />
|
|
46
|
+
*/
|
|
9
47
|
export declare function useDeferredState<T>(initialState?: T): {
|
|
10
48
|
state: T | undefined;
|
|
11
49
|
setState: import("react").Dispatch<import("react").SetStateAction<T | undefined>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../../src/hooks/react.ts"],"names":[],"mappings":"AAEA,wBAAgB,UAAU;;;EAWzB;AAED,wBAAgB,WAAW;;;EAW1B;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,YAAY,CAAC,EAAE,CAAC;;;;EAKnD"}
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../../src/hooks/react.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU;;;EAWzB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW;;;EAW1B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,YAAY,CAAC,EAAE,CAAC;;;;EAKnD"}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
import type { AnimationValue } from '../types/reanimated';
|
|
2
|
+
/**
|
|
3
|
+
* Hook to create a shared value for animations initialized to 0.
|
|
4
|
+
* @returns A shared value initialized to 0, used for controlling animations
|
|
5
|
+
* @example
|
|
6
|
+
* const animValue = useAnimationSharedVal();
|
|
7
|
+
* const animatedStyle = useAnimatedStyle(() => ({
|
|
8
|
+
* opacity: animValue.value
|
|
9
|
+
* }));
|
|
10
|
+
* // Later: animValue.value = withTiming(1);
|
|
11
|
+
*/
|
|
2
12
|
export declare function useAnimationSharedVal(): import("react-native-reanimated").SharedValue<AnimationValue>;
|
|
3
13
|
//# sourceMappingURL=reanimated.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reanimated.d.ts","sourceRoot":"","sources":["../../../../src/hooks/reanimated.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,wBAAgB,qBAAqB,kEAEpC"}
|
|
1
|
+
{"version":3,"file":"reanimated.d.ts","sourceRoot":"","sources":["../../../../src/hooks/reanimated.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,kEAEpC"}
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
import type { ThemedSeparatorProps } from '../types/separator';
|
|
2
2
|
import type { ThemeColors } from '../types/theme';
|
|
3
3
|
import { BorderSize } from '../utils/theme/const';
|
|
4
|
+
/**
|
|
5
|
+
* Hook to create a themed separator element with customizable appearance.
|
|
6
|
+
* @param size - The thickness of the separator (default: BorderSize.S)
|
|
7
|
+
* @param vertical - Whether the separator is vertical (default: false)
|
|
8
|
+
* @param backgroundColor - The background color from theme colors (default: 'separator')
|
|
9
|
+
* @param style - Additional style properties to apply
|
|
10
|
+
* @returns A React element representing the separator
|
|
11
|
+
* @example
|
|
12
|
+
* const separator = useThemedSeparator(
|
|
13
|
+
* BorderSize.M,
|
|
14
|
+
* false,
|
|
15
|
+
* 'themePri',
|
|
16
|
+
* { marginVertical: 'm' }
|
|
17
|
+
* );
|
|
18
|
+
* // Use in JSX: {separator}
|
|
19
|
+
*/
|
|
4
20
|
export declare function useThemedSeparator(size?: BorderSize, vertical?: boolean, backgroundColor?: ThemeColors, style?: Omit<ThemedSeparatorProps, 'size' | 'vertical' | 'backgroundColor' | 'bg'>): import("react").FunctionComponentElement<ThemedSeparatorProps>;
|
|
5
21
|
//# sourceMappingURL=separator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../../src/hooks/separator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAKlD,wBAAgB,kBAAkB,CAChC,IAAI,aAAe,EACnB,QAAQ,UAAQ,EAChB,eAAe,GAAE,WAAyB,EAC1C,KAAK,GAAE,IAAI,CACT,oBAAoB,EACpB,MAAM,GAAG,UAAU,GAAG,iBAAiB,GAAG,IAAI,CAC1C,kEAaP"}
|
|
1
|
+
{"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../../src/hooks/separator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAKlD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,aAAe,EACnB,QAAQ,UAAQ,EAChB,eAAe,GAAE,WAAyB,EAC1C,KAAK,GAAE,IAAI,CACT,oBAAoB,EACpB,MAAM,GAAG,UAAU,GAAG,iBAAiB,GAAG,IAAI,CAC1C,kEAaP"}
|
|
@@ -1,11 +1,76 @@
|
|
|
1
1
|
import { type ViewStyle } from 'react-native';
|
|
2
2
|
import type { InsetsStyleConfig } from '../types/style';
|
|
3
3
|
import { Orientation } from '../utils/style/const';
|
|
4
|
+
/**
|
|
5
|
+
* Hook to calculate padding styles based on safe area insets.
|
|
6
|
+
* @param config - Configuration object specifying which insets to apply and optional padding values
|
|
7
|
+
* @param config.insets - If true, applies all insets (top, bottom, left, right)
|
|
8
|
+
* @param config.insetTop - If true, applies top inset
|
|
9
|
+
* @param config.insetBottom - If true, applies bottom inset
|
|
10
|
+
* @param config.insetLeft - If true, applies left inset
|
|
11
|
+
* @param config.insetRight - If true, applies right inset
|
|
12
|
+
* @param config.insetsPadding - Additional padding to apply to all insets
|
|
13
|
+
* @param config.insetPaddingTop - Additional padding to apply to top inset
|
|
14
|
+
* @param config.insetPaddingBottom - Additional padding to apply to bottom inset
|
|
15
|
+
* @param config.insetPaddingLeft - Additional padding to apply to left inset
|
|
16
|
+
* @param config.insetPaddingRight - Additional padding to apply to right inset
|
|
17
|
+
* @returns ViewStyle object with calculated padding values for safe areas
|
|
18
|
+
* @example
|
|
19
|
+
* const insetsStyle = useInsetsStyle({
|
|
20
|
+
* insets: true,
|
|
21
|
+
* insetsPadding: 'm'
|
|
22
|
+
* });
|
|
23
|
+
* // Returns: { paddingTop: 44 + 16, paddingBottom: 34 + 16, ... }
|
|
24
|
+
*/
|
|
4
25
|
export declare function useInsetsStyle({ insets, insetTop, insetBottom, insetLeft, insetRight, insetsPadding, insetPaddingTop, insetPaddingBottom, insetPaddingLeft, insetPaddingRight, }: InsetsStyleConfig): Pick<ViewStyle, "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft">;
|
|
26
|
+
/**
|
|
27
|
+
* Hook to get the window dimensions including width, height, scale, and fontScale.
|
|
28
|
+
* @returns Object containing window dimensions { width, height, scale, fontScale }
|
|
29
|
+
* @example
|
|
30
|
+
* const { width, height } = useWindowDimensions();
|
|
31
|
+
* console.log(`Screen size: ${width}x${height}`);
|
|
32
|
+
*/
|
|
5
33
|
export declare function useWindowDimensions(): import("react-native").ScaledSize;
|
|
34
|
+
/**
|
|
35
|
+
* Hook to get the current window width in pixels.
|
|
36
|
+
* @returns The width of the window in pixels
|
|
37
|
+
* @example
|
|
38
|
+
* const width = useWindowDimensionsWidth();
|
|
39
|
+
* console.log(`Window width: ${width}px`);
|
|
40
|
+
*/
|
|
6
41
|
export declare function useWindowDimensionsWidth(): number;
|
|
42
|
+
/**
|
|
43
|
+
* Hook to get the current window height in pixels.
|
|
44
|
+
* @returns The height of the window in pixels
|
|
45
|
+
* @example
|
|
46
|
+
* const height = useWindowDimensionsHeight();
|
|
47
|
+
* console.log(`Window height: ${height}px`);
|
|
48
|
+
*/
|
|
7
49
|
export declare function useWindowDimensionsHeight(): number;
|
|
50
|
+
/**
|
|
51
|
+
* Hook to get the pixel density scale of the device.
|
|
52
|
+
* @returns The scale factor (e.g., 2 for @2x, 3 for @3x displays)
|
|
53
|
+
* @example
|
|
54
|
+
* const scale = useWindowDimensionsScale();
|
|
55
|
+
* console.log(`Device scale: ${scale}x`);
|
|
56
|
+
*/
|
|
8
57
|
export declare function useWindowDimensionsScale(): number;
|
|
58
|
+
/**
|
|
59
|
+
* Hook to get the font scaling factor set by the user in device settings.
|
|
60
|
+
* @returns The font scale factor (1.0 is default, >1.0 means larger text is enabled)
|
|
61
|
+
* @example
|
|
62
|
+
* const fontScale = useWindowDimensionsFontScale();
|
|
63
|
+
* const adjustedFontSize = 16 * fontScale;
|
|
64
|
+
*/
|
|
9
65
|
export declare function useWindowDimensionsFontScale(): number;
|
|
66
|
+
/**
|
|
67
|
+
* Hook to determine the current device orientation.
|
|
68
|
+
* @returns The current orientation ('portrait' or 'landscape')
|
|
69
|
+
* @example
|
|
70
|
+
* const orientation = useOrientation();
|
|
71
|
+
* if (orientation === Orientation.Landscape) {
|
|
72
|
+
* // Render landscape layout
|
|
73
|
+
* }
|
|
74
|
+
*/
|
|
10
75
|
export declare function useOrientation(): Orientation;
|
|
11
76
|
//# sourceMappingURL=style.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/hooks/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGnD,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,QAAQ,EACR,WAAW,EACX,SAAS,EACT,UAAU,EACV,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,GAClB,EAAE,iBAAiB,oFA6BnB;AAED,wBAAgB,mBAAmB,sCAElC;AAED,wBAAgB,wBAAwB,WAEvC;AAED,wBAAgB,yBAAyB,WAExC;AAED,wBAAgB,wBAAwB,WAEvC;AAED,wBAAgB,4BAA4B,WAE3C;AAED,wBAAgB,cAAc,gBAO7B"}
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/hooks/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGnD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,QAAQ,EACR,WAAW,EACX,SAAS,EACT,UAAU,EACV,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,GAClB,EAAE,iBAAiB,oFA6BnB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,sCAElC;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,WAEvC;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,WAExC;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,WAEvC;AAED;;;;;;GAMG;AACH,wBAAgB,4BAA4B,WAE3C;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,gBAO7B"}
|
|
@@ -1,16 +1,98 @@
|
|
|
1
1
|
import { type PropValue, type ResponsiveValue } from '@shopify/restyle';
|
|
2
2
|
import { type ColorSchemeName } from 'react-native';
|
|
3
3
|
import type { Theme, ThemeBreakpoints } from '../types/theme';
|
|
4
|
+
/**
|
|
5
|
+
* Hook to access the current theme object.
|
|
6
|
+
* @returns The current theme configuration including colors, spacing, breakpoints, etc.
|
|
7
|
+
* @example
|
|
8
|
+
* const theme = useTheme();
|
|
9
|
+
* console.log(theme.colors.themePri);
|
|
10
|
+
*/
|
|
4
11
|
export declare function useTheme(): Theme;
|
|
12
|
+
/**
|
|
13
|
+
* Hook to access the theme's color palette.
|
|
14
|
+
* @returns Object containing all theme colors (themePri, themeSec, background, text, etc.).
|
|
15
|
+
* @example
|
|
16
|
+
* const colors = useThemeColors();
|
|
17
|
+
* console.log(colors.themePri); // '#7ccf6b'
|
|
18
|
+
*/
|
|
5
19
|
export declare function useThemeColors(): Theme['colors'];
|
|
20
|
+
/**
|
|
21
|
+
* Hook to access the theme's spacing scale.
|
|
22
|
+
* @returns Object containing spacing values (none, xxxs, xxs, xs, s, m, l, xl, xxl, xxxl).
|
|
23
|
+
* @example
|
|
24
|
+
* const spacing = useThemeSpacing();
|
|
25
|
+
* console.log(spacing.m); // 16
|
|
26
|
+
*/
|
|
6
27
|
export declare function useThemeSpacing(): Theme['spacing'];
|
|
28
|
+
/**
|
|
29
|
+
* Hook to access the theme's responsive breakpoints.
|
|
30
|
+
* @returns Object containing breakpoint values (smallPhone, phone, smallTablet, tablet, desktop).
|
|
31
|
+
* @example
|
|
32
|
+
* const breakpoints = useThemeBreakpoints();
|
|
33
|
+
* console.log(breakpoints.tablet); // 900
|
|
34
|
+
*/
|
|
7
35
|
export declare function useThemeBreakpoints(): Theme['breakpoints'];
|
|
36
|
+
/**
|
|
37
|
+
* Hook to resolve a responsive prop value based on the current breakpoint.
|
|
38
|
+
* @template T - The type of the prop value
|
|
39
|
+
* @param propValue - A responsive value object with breakpoint keys
|
|
40
|
+
* @returns The resolved value for the current breakpoint
|
|
41
|
+
* @example
|
|
42
|
+
* const fontSize = useThemeBreakpointValues({ phone: 14, tablet: 16, desktop: 18 });
|
|
43
|
+
*/
|
|
8
44
|
export declare function useThemeBreakpointValues<T extends PropValue>(propValue: ResponsiveValue<T, Theme['breakpoints']>): T | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Hook to get the current active breakpoint name.
|
|
47
|
+
* @returns The name of the current breakpoint ('smallPhone' | 'phone' | 'smallTablet' | 'tablet' | 'desktop')
|
|
48
|
+
* @example
|
|
49
|
+
* const breakpoint = useThemeBreakpoint();
|
|
50
|
+
* if (breakpoint === 'phone') {
|
|
51
|
+
* // Render mobile layout
|
|
52
|
+
* }
|
|
53
|
+
*/
|
|
9
54
|
export declare function useThemeBreakpoint(): ThemeBreakpoints;
|
|
55
|
+
/**
|
|
56
|
+
* Hook to access the theme's z-index scale.
|
|
57
|
+
* @returns Object containing z-index values (base, bottom, middle, top).
|
|
58
|
+
* @example
|
|
59
|
+
* const zIndices = useThemeZIndices();
|
|
60
|
+
* console.log(zIndices.top); // 3
|
|
61
|
+
*/
|
|
10
62
|
export declare function useThemeZIndices(): Theme['zIndices'];
|
|
63
|
+
/**
|
|
64
|
+
* Hook to access the theme's border radius scale.
|
|
65
|
+
* @returns Object containing border radius values (none, s, m, l, round).
|
|
66
|
+
* @example
|
|
67
|
+
* const borderRadii = useThemeBorderRadii();
|
|
68
|
+
* console.log(borderRadii.m); // 24
|
|
69
|
+
*/
|
|
11
70
|
export declare function useThemeBorderRadii(): Theme['borderRadii'];
|
|
71
|
+
/**
|
|
72
|
+
* Hook to access the theme's text style variants.
|
|
73
|
+
* @returns Object containing text variant definitions (textXS, textS, textM, textL, textXL and their bold versions).
|
|
74
|
+
* @example
|
|
75
|
+
* const textVariants = useThemeTextVariants();
|
|
76
|
+
* console.log(textVariants.textM);
|
|
77
|
+
*/
|
|
12
78
|
export declare function useThemeTextVariants(): Theme['textVariants'];
|
|
79
|
+
/**
|
|
80
|
+
* Hook to determine if the current color scheme is dark mode.
|
|
81
|
+
* @param overrideColorScheme - Optional color scheme to override the system's color scheme
|
|
82
|
+
* @returns True if the color scheme is 'dark', false otherwise
|
|
83
|
+
* @example
|
|
84
|
+
* const isDark = useIsDarkColorScheme();
|
|
85
|
+
* const backgroundColor = isDark ? '#000' : '#fff';
|
|
86
|
+
*/
|
|
13
87
|
export declare function useIsDarkColorScheme(overrideColorScheme?: ColorSchemeName): boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Hook to get the appropriate theme (light or dark) based on the current color scheme.
|
|
90
|
+
* @param overrideColorScheme - Optional color scheme to override the system's color scheme
|
|
91
|
+
* @returns The dark theme if in dark mode, otherwise the light theme
|
|
92
|
+
* @example
|
|
93
|
+
* const theme = useColorSchemeTheme();
|
|
94
|
+
* // Returns darkTheme or lightTheme based on system preference
|
|
95
|
+
*/
|
|
14
96
|
export declare function useColorSchemeTheme(overrideColorScheme?: ColorSchemeName): {
|
|
15
97
|
colors: {
|
|
16
98
|
transparent: import("..").Palette;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/hooks/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,eAAe,EACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAG9D,wBAAgB,QAAQ,IAAI,KAAK,CAEhC;AAED,wBAAgB,cAAc,IAAI,KAAK,CAAC,QAAQ,CAAC,CAEhD;AAED,wBAAgB,eAAe,IAAI,KAAK,CAAC,SAAS,CAAC,CAElD;AAED,wBAAgB,mBAAmB,IAAI,KAAK,CAAC,aAAa,CAAC,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,SAAS,EAC1D,SAAS,EAAE,eAAe,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,iBAGpD;AAED,wBAAgB,kBAAkB,IASkB,gBAAgB,CACnE;AAED,wBAAgB,gBAAgB,IAAI,KAAK,CAAC,UAAU,CAAC,CAEpD;AAED,wBAAgB,mBAAmB,IAAI,KAAK,CAAC,aAAa,CAAC,CAE1D;AAED,wBAAgB,oBAAoB,IAAI,KAAK,CAAC,cAAc,CAAC,C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K,CAAC,cAAc,CAAC,CAE5D;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,mBAAmB,CAAC,EAAE,eAAe,WAIzE;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,mBAAmB,CAAC,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAExE"}
|
|
@@ -1,7 +1,45 @@
|
|
|
1
|
-
import type { View } from 'react-native';
|
|
2
|
-
import type {
|
|
1
|
+
import type { View, ViewStyle } from 'react-native';
|
|
2
|
+
import type { InsetsStyleConfig } from '../types/style';
|
|
3
|
+
import type { AnimatedThemedViewProps, ThemedScreenWrapProps } from '../types/view';
|
|
4
|
+
/**
|
|
5
|
+
* Hook to create a ref for a View component.
|
|
6
|
+
* @returns A mutable ref object for accessing the View instance
|
|
7
|
+
* @example
|
|
8
|
+
* const viewRef = useViewRef();
|
|
9
|
+
* <View ref={viewRef} />
|
|
10
|
+
* // Later: viewRef.current?.measure(...)
|
|
11
|
+
*/
|
|
3
12
|
export declare function useViewRef(): import("react").RefObject<View | null>;
|
|
13
|
+
/**
|
|
14
|
+
* Hook to create animated themed view props with reanimated support.
|
|
15
|
+
* @param props - Animated themed view properties including theme props and animatedStyle
|
|
16
|
+
* @param props.animatedStyle - Reanimated style object to apply to the view
|
|
17
|
+
* @returns Object containing all animated view props with applied theme styles and animations
|
|
18
|
+
* @example
|
|
19
|
+
* const animatedStyle = useAnimatedStyle(() => ({
|
|
20
|
+
* transform: [{ translateX: progress.value * 100 }]
|
|
21
|
+
* }));
|
|
22
|
+
* const viewProps = useAnimatedThemedView({
|
|
23
|
+
* backgroundColor: 'themePri',
|
|
24
|
+
* padding: 'm',
|
|
25
|
+
* borderRadius: 'm',
|
|
26
|
+
* animatedStyle
|
|
27
|
+
* });
|
|
28
|
+
*/
|
|
4
29
|
export declare function useAnimatedThemedView({ animatedStyle, ...props }: AnimatedThemedViewProps): Omit<import("react-native-reanimated").AnimatedProps<Readonly<import("react-native").ViewProps>>, "ref"> & {
|
|
5
30
|
ref?: (import("react-native-reanimated").AnimatedRef | import("react").Ref<View> | import("react-native-reanimated").AnimatedRef<typeof View>) | undefined;
|
|
6
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* Hook to create themed screen wrap styles with safe area inset support and effect management.
|
|
34
|
+
* @param props - Themed screen wrap properties including effect setup/cleanup and inset styles
|
|
35
|
+
* @returns Style object combining themed screen wrap styles with calculated inset styles
|
|
36
|
+
* @example
|
|
37
|
+
* const style = useThemedScreenWrap({
|
|
38
|
+
* effectSetup: () => console.log('Mounted'),
|
|
39
|
+
* effectCleanup: () => console.log('Unmounted'),
|
|
40
|
+
* insets: true,
|
|
41
|
+
* insetPaddingTop: 'm',
|
|
42
|
+
* });
|
|
43
|
+
*/
|
|
44
|
+
export declare function useThemedScreenWrap({ effectSetup, effectCleanup, effectDependencies, style: themedScreenWrapStyle, insets, insetTop, insetBottom, insetLeft, insetRight, insetsPadding, insetPaddingTop, insetPaddingBottom, insetPaddingLeft, insetPaddingRight, }: Pick<ThemedScreenWrapProps, 'effectSetup' | 'effectCleanup' | 'effectDependencies' | 'style' | keyof InsetsStyleConfig>): import("react-native").StyleProp<ViewStyle>;
|
|
7
45
|
//# sourceMappingURL=view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../../src/hooks/view.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../../src/hooks/view.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,KAAK,EACV,uBAAuB,EAEvB,qBAAqB,EACtB,MAAM,eAAe,CAAC;AAKvB;;;;;;;GAOG;AACH,wBAAgB,UAAU,2CAEzB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,aAAa,EACb,GAAG,KAAK,EACT,EAAE,uBAAuB;;EAczB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,WAAW,EACX,aAAa,EACb,kBAAuB,EACvB,KAAK,EAAE,qBAAqB,EAC5B,MAAM,EACN,QAAQ,EACR,WAAW,EACX,SAAS,EACT,UAAU,EACV,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,GAClB,EAAE,IAAI,CACL,qBAAqB,EACnB,aAAa,GACb,eAAe,GACf,oBAAoB,GACpB,OAAO,GACP,MAAM,iBAAiB,CAC1B,+CAoBA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { default as ThemedAccordion } from './components/accordion/ThemedAccordion';
|
|
1
2
|
export { default as AnimatedThemedPressable } from './components/button/AnimatedThemedPressable';
|
|
2
3
|
export { default as ThemedButton } from './components/button/ThemedButton';
|
|
3
4
|
export { default as ThemedIconButton } from './components/button/ThemedIconButton';
|
|
@@ -33,6 +34,7 @@ export * from './hooks/separator';
|
|
|
33
34
|
export * from './hooks/style';
|
|
34
35
|
export * from './hooks/theme';
|
|
35
36
|
export * from './hooks/view';
|
|
37
|
+
export * from './types/accordion';
|
|
36
38
|
export * from './types/button';
|
|
37
39
|
export * from './types/icon';
|
|
38
40
|
export * from './types/list';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MA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AqB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { BorderSize } from '../utils/theme/const';
|
|
2
|
+
import type { ThemedPressableProps } from './button';
|
|
3
|
+
import type { CustomThemedIconProps } from './icon';
|
|
4
|
+
import type { CustomThemedTextProps } from './text';
|
|
5
|
+
import type { ThemeColors } from './theme';
|
|
6
|
+
import type { AnimatedThemedViewProps, PropsWithRequiredChildren, ThemedViewProps } from './view';
|
|
7
|
+
/**
|
|
8
|
+
* Props for ThemedAccordion component.
|
|
9
|
+
*
|
|
10
|
+
* An accordion component that can expand and collapse content with animated transitions.
|
|
11
|
+
* Supports customizable header text, icons, borders, and content areas.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* <ThemedAccordion
|
|
16
|
+
* text="Section Title"
|
|
17
|
+
* iconNameOpened="chevron-up"
|
|
18
|
+
* iconNameClosed="chevron-down"
|
|
19
|
+
* borderWidth="sm"
|
|
20
|
+
* borderColor="border"
|
|
21
|
+
* >
|
|
22
|
+
* <Text>Accordion content goes here</Text>
|
|
23
|
+
* </ThemedAccordion>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export type ThemedAccordionProps = PropsWithRequiredChildren<Partial<CustomThemedTextProps> & Omit<CustomThemedIconProps, 'iconName'> & {
|
|
27
|
+
/** Border width for the accordion container */
|
|
28
|
+
borderWidth?: BorderSize;
|
|
29
|
+
/** Border color from theme colors */
|
|
30
|
+
borderColor?: ThemeColors;
|
|
31
|
+
/** Props for the outer animated container wrapper */
|
|
32
|
+
wrapProps?: AnimatedThemedViewProps;
|
|
33
|
+
/** Props for the pressable header area that toggles the accordion */
|
|
34
|
+
headerWrapProps?: ThemedPressableProps;
|
|
35
|
+
/** Icon name to display when the accordion is opened/expanded */
|
|
36
|
+
iconNameOpened?: CustomThemedIconProps['iconName'];
|
|
37
|
+
/** Icon name to display when the accordion is closed/collapsed */
|
|
38
|
+
iconNameClosed?: CustomThemedIconProps['iconName'];
|
|
39
|
+
/** Props for the content container wrapper */
|
|
40
|
+
contentWrapProps?: ThemedViewProps;
|
|
41
|
+
}>;
|
|
42
|
+
//# sourceMappingURL=accordion.d.ts.map
|