@teamturing/react-native-kit 1.2.1 → 1.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/commonjs/component/AnimatedNumber.js +16 -16
- package/lib/commonjs/component/AnimatedNumber.js.map +1 -1
- package/lib/commonjs/component/Animation/etc/LeftAndRight.js +2 -2
- package/lib/commonjs/component/Animation/etc/LeftAndRight.js.map +1 -1
- package/lib/commonjs/component/Animation/etc/UpAndDown.js +2 -2
- package/lib/commonjs/component/Animation/etc/UpAndDown.js.map +1 -1
- package/lib/commonjs/component/Animation/implicit/OpacityAnimatedView.js +2 -2
- package/lib/commonjs/component/Animation/implicit/OpacityAnimatedView.js.map +1 -1
- package/lib/commonjs/component/Badge.js +2 -2
- package/lib/commonjs/component/Badge.js.map +1 -1
- package/lib/commonjs/component/Banner/BannerItem.js +14 -12
- package/lib/commonjs/component/Banner/BannerItem.js.map +1 -1
- package/lib/commonjs/component/Btn/BaseBtn.js +80 -76
- package/lib/commonjs/component/Btn/BaseBtn.js.map +1 -1
- package/lib/commonjs/component/Btn/FixedBottomCTABtn.js.map +1 -1
- package/lib/commonjs/component/Btn/IconBtn.js +88 -86
- package/lib/commonjs/component/Btn/IconBtn.js.map +1 -1
- package/lib/commonjs/component/Btn/InteractiveToggledIconBtn.js +19 -18
- package/lib/commonjs/component/Btn/InteractiveToggledIconBtn.js.map +1 -1
- package/lib/commonjs/component/Carousel.js +6 -5
- package/lib/commonjs/component/Carousel.js.map +1 -1
- package/lib/commonjs/component/Chip.js +30 -27
- package/lib/commonjs/component/Chip.js.map +1 -1
- package/lib/commonjs/component/CloneWithGlobalPositionView.js +5 -4
- package/lib/commonjs/component/CloneWithGlobalPositionView.js.map +1 -1
- package/lib/commonjs/component/DialogHandler.js +3 -3
- package/lib/commonjs/component/DialogHandler.js.map +1 -1
- package/lib/commonjs/component/Dot.js +5 -5
- package/lib/commonjs/component/Dot.js.map +1 -1
- package/lib/commonjs/component/DotLoadingIndicator.js +6 -5
- package/lib/commonjs/component/DotLoadingIndicator.js.map +1 -1
- package/lib/commonjs/component/EmptyState.js +14 -11
- package/lib/commonjs/component/EmptyState.js.map +1 -1
- package/lib/commonjs/component/FloatingRoundChip.js +12 -13
- package/lib/commonjs/component/FloatingRoundChip.js.map +1 -1
- package/lib/commonjs/component/GradientBorderContainer.js +4 -3
- package/lib/commonjs/component/GradientBorderContainer.js.map +1 -1
- package/lib/commonjs/component/GradientBorderContainer.web.js +2 -2
- package/lib/commonjs/component/GradientBorderContainer.web.js.map +1 -1
- package/lib/commonjs/component/GradientCollection.js +2 -2
- package/lib/commonjs/component/GradientCollection.js.map +1 -1
- package/lib/commonjs/component/GradientMask.js +2 -2
- package/lib/commonjs/component/GradientMask.js.map +1 -1
- package/lib/commonjs/component/GradientMask.web.js +5 -5
- package/lib/commonjs/component/GradientMask.web.js.map +1 -1
- package/lib/commonjs/component/Header/Header.js +24 -21
- package/lib/commonjs/component/Header/Header.js.map +1 -1
- package/lib/commonjs/component/Icon/Icons.js +219 -219
- package/lib/commonjs/component/Icon/Icons.js.map +1 -1
- package/lib/commonjs/component/Icon/index.js +2 -2
- package/lib/commonjs/component/Icon/index.js.map +1 -1
- package/lib/commonjs/component/IconCheckbox.js +14 -12
- package/lib/commonjs/component/IconCheckbox.js.map +1 -1
- package/lib/commonjs/component/Layout/FixedBottomLayout.js +8 -7
- package/lib/commonjs/component/Layout/FixedBottomLayout.js.map +1 -1
- package/lib/commonjs/component/Layout/ItemList.js +4 -3
- package/lib/commonjs/component/Layout/ItemList.js.map +1 -1
- package/lib/commonjs/component/Layout/Layout/LayoutProvider.js +4 -3
- package/lib/commonjs/component/Layout/Layout/LayoutProvider.js.map +1 -1
- package/lib/commonjs/component/Layout/Layout/WindowSizeClass.js +4 -4
- package/lib/commonjs/component/Layout/Layout/WindowSizeClass.js.map +1 -1
- package/lib/commonjs/component/Layout/Layout/useDynamicDimensions.js +4 -4
- package/lib/commonjs/component/Layout/Layout/useDynamicDimensions.js.map +1 -1
- package/lib/commonjs/component/Layout/SectionLayout/SectionLayout.js +4 -4
- package/lib/commonjs/component/Layout/SectionLayout/SectionLayout.js.map +1 -1
- package/lib/commonjs/component/Layout/WhiteGradientFixedBottomLayout.js +7 -4
- package/lib/commonjs/component/Layout/WhiteGradientFixedBottomLayout.js.map +1 -1
- package/lib/commonjs/component/LiText.js +2 -2
- package/lib/commonjs/component/LiText.js.map +1 -1
- package/lib/commonjs/component/LineDivider.js +4 -3
- package/lib/commonjs/component/LineDivider.js.map +1 -1
- package/lib/commonjs/component/LoadingFallbackView.js +2 -2
- package/lib/commonjs/component/LoadingFallbackView.js.map +1 -1
- package/lib/commonjs/component/LoadingIndicator.js +4 -3
- package/lib/commonjs/component/LoadingIndicator.js.map +1 -1
- package/lib/commonjs/component/LoadingIndicatorView.js +5 -3
- package/lib/commonjs/component/LoadingIndicatorView.js.map +1 -1
- package/lib/commonjs/component/Lottie/index.js +4 -4
- package/lib/commonjs/component/Lottie/index.js.map +1 -1
- package/lib/commonjs/component/MarqueeView.js +5 -4
- package/lib/commonjs/component/MarqueeView.js.map +1 -1
- package/lib/commonjs/component/NumberBadge.js +9 -7
- package/lib/commonjs/component/NumberBadge.js.map +1 -1
- package/lib/commonjs/component/OnMountEvent.js +2 -2
- package/lib/commonjs/component/OnMountEvent.js.map +1 -1
- package/lib/commonjs/component/PaginatedFlashList.js +8 -7
- package/lib/commonjs/component/PaginatedFlashList.js.map +1 -1
- package/lib/commonjs/component/PaginatedFlatList.js +8 -7
- package/lib/commonjs/component/PaginatedFlatList.js.map +1 -1
- package/lib/commonjs/component/PieChart.js +4 -3
- package/lib/commonjs/component/PieChart.js.map +1 -1
- package/lib/commonjs/component/Pressable/LoadingIndicatorTouchable.js +2 -2
- package/lib/commonjs/component/Pressable/LoadingIndicatorTouchable.js.map +1 -1
- package/lib/commonjs/component/Pressable/Touch.js +7 -6
- package/lib/commonjs/component/Pressable/Touch.js.map +1 -1
- package/lib/commonjs/component/Pressable/useDisabilityAwareDebouncer.js +5 -5
- package/lib/commonjs/component/Pressable/useDisabilityAwareDebouncer.js.map +1 -1
- package/lib/commonjs/component/RadioButton.js +2 -2
- package/lib/commonjs/component/RadioButton.js.map +1 -1
- package/lib/commonjs/component/ReadMoreText.js +8 -5
- package/lib/commonjs/component/ReadMoreText.js.map +1 -1
- package/lib/commonjs/component/ReadMoreText.web.js +2 -2
- package/lib/commonjs/component/ReadMoreText.web.js.map +1 -1
- package/lib/commonjs/component/RefreshControlEx.js +3 -3
- package/lib/commonjs/component/RefreshControlEx.js.map +1 -1
- package/lib/commonjs/component/Switch.js +5 -5
- package/lib/commonjs/component/Switch.js.map +1 -1
- package/lib/commonjs/component/Tab/BaseTab.js +2 -2
- package/lib/commonjs/component/Tab/BaseTab.js.map +1 -1
- package/lib/commonjs/component/Tab/IndicatorTab.js +9 -7
- package/lib/commonjs/component/Tab/IndicatorTab.js.map +1 -1
- package/lib/commonjs/component/Tab/RoundTab.js +44 -41
- package/lib/commonjs/component/Tab/RoundTab.js.map +1 -1
- package/lib/commonjs/component/Tag.js +32 -30
- package/lib/commonjs/component/Tag.js.map +1 -1
- package/lib/commonjs/component/TagHorizontalList.js +13 -11
- package/lib/commonjs/component/TagHorizontalList.js.map +1 -1
- package/lib/commonjs/component/TextField/BaseTextField.js +33 -28
- package/lib/commonjs/component/TextField/BaseTextField.js.map +1 -1
- package/lib/commonjs/component/TextField/CoreTextField.js +11 -9
- package/lib/commonjs/component/TextField/CoreTextField.js.map +1 -1
- package/lib/commonjs/component/TextField/textFieldNumericFormatUtils.js +2 -2
- package/lib/commonjs/component/TextField/textFieldNumericFormatUtils.js.map +1 -1
- package/lib/commonjs/component/ToolTip/BaseToolTip.js +12 -10
- package/lib/commonjs/component/ToolTip/BaseToolTip.js.map +1 -1
- package/lib/commonjs/component/dialog/CommonBottomSheetDialog.js +19 -14
- package/lib/commonjs/component/dialog/CommonBottomSheetDialog.js.map +1 -1
- package/lib/commonjs/component/dialog/CommonDialog.js +26 -20
- package/lib/commonjs/component/dialog/CommonDialog.js.map +1 -1
- package/lib/commonjs/component/dialog/ItemSelectBottomSheetDialog.js +22 -17
- package/lib/commonjs/component/dialog/ItemSelectBottomSheetDialog.js.map +1 -1
- package/lib/commonjs/component/dialog/LottieDialog.js +7 -5
- package/lib/commonjs/component/dialog/LottieDialog.js.map +1 -1
- package/lib/commonjs/component/dialog/ToastDialog.js +21 -15
- package/lib/commonjs/component/dialog/ToastDialog.js.map +1 -1
- package/lib/commonjs/component/dialog/base/BottomSheetDialog.js +2 -2
- package/lib/commonjs/component/dialog/base/BottomSheetDialog.js.map +1 -1
- package/lib/commonjs/component/dialog/base/Dialog.js +8 -6
- package/lib/commonjs/component/dialog/base/Dialog.js.map +1 -1
- package/lib/commonjs/hook/useFloatingKeyboard.js +4 -4
- package/lib/commonjs/hook/useFloatingKeyboard.js.map +1 -1
- package/lib/commonjs/hook/useIntervalCallback.js +1 -1
- package/lib/commonjs/hook/useIntervalCallback.js.map +1 -1
- package/lib/commonjs/hook/useTimeoutHandler.test.js +7 -7
- package/lib/commonjs/hook/useTimeoutHandler.test.js.map +1 -1
- package/lib/commonjs/util/StyleUtil.js +2 -2
- package/lib/commonjs/util/StyleUtil.js.map +1 -1
- package/lib/module/component/AnimatedNumber.js +1 -1
- package/lib/module/component/AnimatedNumber.js.map +1 -1
- package/lib/module/component/Animation/etc/LeftAndRight.js +1 -1
- package/lib/module/component/Animation/etc/LeftAndRight.js.map +1 -1
- package/lib/module/component/Animation/etc/UpAndDown.js +1 -1
- package/lib/module/component/Animation/etc/UpAndDown.js.map +1 -1
- package/lib/module/component/Animation/implicit/OpacityAnimatedView.js +1 -1
- package/lib/module/component/Animation/implicit/OpacityAnimatedView.js.map +1 -1
- package/lib/module/component/Badge.js +1 -1
- package/lib/module/component/Badge.js.map +1 -1
- package/lib/module/component/Banner/BannerItem.js +5 -3
- package/lib/module/component/Banner/BannerItem.js.map +1 -1
- package/lib/module/component/Btn/BaseBtn.js +6 -2
- package/lib/module/component/Btn/BaseBtn.js.map +1 -1
- package/lib/module/component/Btn/FixedBottomCTABtn.js.map +1 -1
- package/lib/module/component/Btn/IconBtn.js +3 -1
- package/lib/module/component/Btn/IconBtn.js.map +1 -1
- package/lib/module/component/Btn/InteractiveToggledIconBtn.js +2 -1
- package/lib/module/component/Btn/InteractiveToggledIconBtn.js.map +1 -1
- package/lib/module/component/Carousel.js +2 -1
- package/lib/module/component/Carousel.js.map +1 -1
- package/lib/module/component/Chip.js +4 -1
- package/lib/module/component/Chip.js.map +1 -1
- package/lib/module/component/CloneWithGlobalPositionView.js +2 -1
- package/lib/module/component/CloneWithGlobalPositionView.js.map +1 -1
- package/lib/module/component/DialogHandler.js +1 -1
- package/lib/module/component/DialogHandler.js.map +1 -1
- package/lib/module/component/Dot.js +1 -1
- package/lib/module/component/Dot.js.map +1 -1
- package/lib/module/component/DotLoadingIndicator.js +3 -2
- package/lib/module/component/DotLoadingIndicator.js.map +1 -1
- package/lib/module/component/EmptyState.js +4 -1
- package/lib/module/component/EmptyState.js.map +1 -1
- package/lib/module/component/FloatingRoundChip.js +2 -3
- package/lib/module/component/FloatingRoundChip.js.map +1 -1
- package/lib/module/component/GradientBorderContainer.js +2 -1
- package/lib/module/component/GradientBorderContainer.js.map +1 -1
- package/lib/module/component/GradientBorderContainer.web.js +1 -1
- package/lib/module/component/GradientBorderContainer.web.js.map +1 -1
- package/lib/module/component/GradientCollection.js +1 -1
- package/lib/module/component/GradientCollection.js.map +1 -1
- package/lib/module/component/GradientMask.js +1 -1
- package/lib/module/component/GradientMask.js.map +1 -1
- package/lib/module/component/GradientMask.web.js +1 -1
- package/lib/module/component/GradientMask.web.js.map +1 -1
- package/lib/module/component/Header/Header.js +4 -1
- package/lib/module/component/Header/Header.js.map +1 -1
- package/lib/module/component/Icon/Icons.js +219 -219
- package/lib/module/component/Icon/Icons.js.map +1 -1
- package/lib/module/component/Icon/index.js +1 -1
- package/lib/module/component/Icon/index.js.map +1 -1
- package/lib/module/component/IconCheckbox.js +3 -1
- package/lib/module/component/IconCheckbox.js.map +1 -1
- package/lib/module/component/Layout/FixedBottomLayout.js +3 -2
- package/lib/module/component/Layout/FixedBottomLayout.js.map +1 -1
- package/lib/module/component/Layout/ItemList.js +2 -1
- package/lib/module/component/Layout/ItemList.js.map +1 -1
- package/lib/module/component/Layout/Layout/LayoutProvider.js +2 -1
- package/lib/module/component/Layout/Layout/LayoutProvider.js.map +1 -1
- package/lib/module/component/Layout/Layout/WindowSizeClass.js +1 -1
- package/lib/module/component/Layout/Layout/WindowSizeClass.js.map +1 -1
- package/lib/module/component/Layout/Layout/useDynamicDimensions.js +1 -1
- package/lib/module/component/Layout/Layout/useDynamicDimensions.js.map +1 -1
- package/lib/module/component/Layout/SectionLayout/SectionLayout.js +1 -1
- package/lib/module/component/Layout/SectionLayout/SectionLayout.js.map +1 -1
- package/lib/module/component/Layout/WhiteGradientFixedBottomLayout.js +4 -1
- package/lib/module/component/Layout/WhiteGradientFixedBottomLayout.js.map +1 -1
- package/lib/module/component/LiText.js +1 -1
- package/lib/module/component/LiText.js.map +1 -1
- package/lib/module/component/LineDivider.js +2 -1
- package/lib/module/component/LineDivider.js.map +1 -1
- package/lib/module/component/LoadingFallbackView.js +1 -1
- package/lib/module/component/LoadingFallbackView.js.map +1 -1
- package/lib/module/component/LoadingIndicator.js +2 -1
- package/lib/module/component/LoadingIndicator.js.map +1 -1
- package/lib/module/component/LoadingIndicatorView.js +3 -1
- package/lib/module/component/LoadingIndicatorView.js.map +1 -1
- package/lib/module/component/Lottie/index.js +1 -1
- package/lib/module/component/Lottie/index.js.map +1 -1
- package/lib/module/component/MarqueeView.js +2 -1
- package/lib/module/component/MarqueeView.js.map +1 -1
- package/lib/module/component/NumberBadge.js +3 -1
- package/lib/module/component/NumberBadge.js.map +1 -1
- package/lib/module/component/OnMountEvent.js +1 -1
- package/lib/module/component/OnMountEvent.js.map +1 -1
- package/lib/module/component/PaginatedFlashList.js +2 -1
- package/lib/module/component/PaginatedFlashList.js.map +1 -1
- package/lib/module/component/PaginatedFlatList.js +2 -1
- package/lib/module/component/PaginatedFlatList.js.map +1 -1
- package/lib/module/component/PieChart.js +2 -1
- package/lib/module/component/PieChart.js.map +1 -1
- package/lib/module/component/Pressable/LoadingIndicatorTouchable.js +1 -1
- package/lib/module/component/Pressable/LoadingIndicatorTouchable.js.map +1 -1
- package/lib/module/component/Pressable/Touch.js +2 -1
- package/lib/module/component/Pressable/Touch.js.map +1 -1
- package/lib/module/component/Pressable/useDisabilityAwareDebouncer.js +1 -1
- package/lib/module/component/Pressable/useDisabilityAwareDebouncer.js.map +1 -1
- package/lib/module/component/RadioButton.js +1 -1
- package/lib/module/component/RadioButton.js.map +1 -1
- package/lib/module/component/ReadMoreText.js +4 -1
- package/lib/module/component/ReadMoreText.js.map +1 -1
- package/lib/module/component/ReadMoreText.web.js +1 -1
- package/lib/module/component/ReadMoreText.web.js.map +1 -1
- package/lib/module/component/RefreshControlEx.js +1 -1
- package/lib/module/component/RefreshControlEx.js.map +1 -1
- package/lib/module/component/Switch.js +1 -1
- package/lib/module/component/Switch.js.map +1 -1
- package/lib/module/component/Tab/BaseTab.js +1 -1
- package/lib/module/component/Tab/BaseTab.js.map +1 -1
- package/lib/module/component/Tab/IndicatorTab.js +3 -1
- package/lib/module/component/Tab/IndicatorTab.js.map +1 -1
- package/lib/module/component/Tab/RoundTab.js +4 -1
- package/lib/module/component/Tab/RoundTab.js.map +1 -1
- package/lib/module/component/Tag.js +3 -1
- package/lib/module/component/Tag.js.map +1 -1
- package/lib/module/component/TagHorizontalList.js +3 -1
- package/lib/module/component/TagHorizontalList.js.map +1 -1
- package/lib/module/component/TextField/BaseTextField.js +6 -1
- package/lib/module/component/TextField/BaseTextField.js.map +1 -1
- package/lib/module/component/TextField/CoreTextField.js +3 -1
- package/lib/module/component/TextField/CoreTextField.js.map +1 -1
- package/lib/module/component/TextField/textFieldNumericFormatUtils.js +1 -1
- package/lib/module/component/TextField/textFieldNumericFormatUtils.js.map +1 -1
- package/lib/module/component/ToolTip/BaseToolTip.js +3 -1
- package/lib/module/component/ToolTip/BaseToolTip.js.map +1 -1
- package/lib/module/component/dialog/CommonBottomSheetDialog.js +6 -1
- package/lib/module/component/dialog/CommonBottomSheetDialog.js.map +1 -1
- package/lib/module/component/dialog/CommonDialog.js +7 -1
- package/lib/module/component/dialog/CommonDialog.js.map +1 -1
- package/lib/module/component/dialog/ItemSelectBottomSheetDialog.js +6 -1
- package/lib/module/component/dialog/ItemSelectBottomSheetDialog.js.map +1 -1
- package/lib/module/component/dialog/LottieDialog.js +3 -1
- package/lib/module/component/dialog/LottieDialog.js.map +1 -1
- package/lib/module/component/dialog/ToastDialog.js +7 -1
- package/lib/module/component/dialog/ToastDialog.js.map +1 -1
- package/lib/module/component/dialog/base/BottomSheetDialog.js +1 -1
- package/lib/module/component/dialog/base/BottomSheetDialog.js.map +1 -1
- package/lib/module/component/dialog/base/Dialog.js +3 -1
- package/lib/module/component/dialog/base/Dialog.js.map +1 -1
- package/lib/module/hook/useFloatingKeyboard.js +2 -2
- package/lib/module/hook/useFloatingKeyboard.js.map +1 -1
- package/lib/module/hook/useIntervalCallback.js +1 -1
- package/lib/module/hook/useIntervalCallback.js.map +1 -1
- package/lib/module/hook/useTimeoutHandler.test.js +1 -1
- package/lib/module/hook/useTimeoutHandler.test.js.map +1 -1
- package/lib/module/util/StyleUtil.js +1 -1
- package/lib/module/util/StyleUtil.js.map +1 -1
- package/lib/typescript/commonjs/src/component/AnimatedNumber.d.ts +1 -1
- package/lib/typescript/commonjs/src/component/AnimatedNumber.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Animation/etc/LeftAndRight.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Animation/etc/UpAndDown.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Animation/implicit/OpacityAnimatedView.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Badge.d.ts +1 -1
- package/lib/typescript/commonjs/src/component/Badge.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Banner/BannerItem.d.ts +1 -1
- package/lib/typescript/commonjs/src/component/Banner/BannerItem.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Box/index.d.ts +237 -237
- package/lib/typescript/commonjs/src/component/Btn/BaseBtn.d.ts +1 -1
- package/lib/typescript/commonjs/src/component/Btn/BaseBtn.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Btn/FixedBottomCTABtn.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Btn/IconBtn.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Btn/InteractiveToggledIconBtn.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Carousel.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Chip.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/CloneWithGlobalPositionView.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/DialogHandler.d.ts +1 -1
- package/lib/typescript/commonjs/src/component/DialogHandler.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Dot.d.ts +1 -1
- package/lib/typescript/commonjs/src/component/Dot.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/DotLoadingIndicator.d.ts +1 -1
- package/lib/typescript/commonjs/src/component/DotLoadingIndicator.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/EmptyState.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/FloatingRoundChip.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/GradientBorderContainer.d.ts +1 -1
- package/lib/typescript/commonjs/src/component/GradientBorderContainer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/GradientBorderContainer.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/GradientCollection.d.ts +1 -1
- package/lib/typescript/commonjs/src/component/GradientCollection.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/GradientMask.d.ts +1 -1
- package/lib/typescript/commonjs/src/component/GradientMask.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/GradientMask.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Header/Header.d.ts +1 -1
- package/lib/typescript/commonjs/src/component/Header/Header.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Icon/Icons.d.ts +219 -219
- package/lib/typescript/commonjs/src/component/Icon/Icons.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Icon/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/component/Icon/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/IconCheckbox.d.ts +2 -1
- package/lib/typescript/commonjs/src/component/IconCheckbox.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Layout/FixedBottomLayout.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Layout/ItemList.d.ts +1 -1
- package/lib/typescript/commonjs/src/component/Layout/ItemList.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Layout/Layout/LayoutProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Layout/Layout/useDynamicDimensions.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Layout/SectionLayout/SectionLayout.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Layout/WhiteGradientFixedBottomLayout.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/LiText.d.ts +1 -1
- package/lib/typescript/commonjs/src/component/LiText.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/LineDivider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/LoadingFallbackView.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/LoadingIndicator.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/LoadingIndicatorView.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Lottie/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/MarqueeView.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/NumberBadge.d.ts +1 -1
- package/lib/typescript/commonjs/src/component/NumberBadge.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/OnMountEvent.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/PaginatedFlashList.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/PaginatedFlatList.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/PieChart.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Pressable/LoadingIndicatorTouchable.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Pressable/Touch.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Pressable/useDisabilityAwareDebouncer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/RadioButton.d.ts +1 -1
- package/lib/typescript/commonjs/src/component/RadioButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/ReadMoreText.d.ts +1 -1
- package/lib/typescript/commonjs/src/component/ReadMoreText.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/ReadMoreText.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/RefreshControlEx.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Switch.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Tab/BaseTab.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Tab/IndicatorTab.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Tab/RoundTab.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/Tag.d.ts +1 -1
- package/lib/typescript/commonjs/src/component/Tag.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/TagHorizontalList.d.ts +1 -1
- package/lib/typescript/commonjs/src/component/TagHorizontalList.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/TextField/BaseTextField.d.ts +2 -2
- package/lib/typescript/commonjs/src/component/TextField/BaseTextField.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/TextField/CoreTextField.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/ToolTip/BaseToolTip.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/dialog/CommonBottomSheetDialog.d.ts +2 -1
- package/lib/typescript/commonjs/src/component/dialog/CommonBottomSheetDialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/dialog/CommonDialog.d.ts +3 -1
- package/lib/typescript/commonjs/src/component/dialog/CommonDialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/dialog/ItemSelectBottomSheetDialog.d.ts +1 -1
- package/lib/typescript/commonjs/src/component/dialog/ItemSelectBottomSheetDialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/dialog/LottieDialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/dialog/ToastDialog.d.ts +1 -1
- package/lib/typescript/commonjs/src/component/dialog/ToastDialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/dialog/base/BottomSheetDialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/component/dialog/base/Dialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/util/StyleUtil.d.ts.map +1 -1
- package/lib/typescript/module/src/component/AnimatedNumber.d.ts +1 -1
- package/lib/typescript/module/src/component/AnimatedNumber.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Animation/etc/LeftAndRight.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Animation/etc/UpAndDown.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Animation/implicit/OpacityAnimatedView.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Badge.d.ts +1 -1
- package/lib/typescript/module/src/component/Badge.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Banner/BannerItem.d.ts +1 -1
- package/lib/typescript/module/src/component/Banner/BannerItem.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Box/index.d.ts +237 -237
- package/lib/typescript/module/src/component/Btn/BaseBtn.d.ts +1 -1
- package/lib/typescript/module/src/component/Btn/BaseBtn.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Btn/FixedBottomCTABtn.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Btn/IconBtn.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Btn/InteractiveToggledIconBtn.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Carousel.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Chip.d.ts.map +1 -1
- package/lib/typescript/module/src/component/CloneWithGlobalPositionView.d.ts.map +1 -1
- package/lib/typescript/module/src/component/DialogHandler.d.ts +1 -1
- package/lib/typescript/module/src/component/DialogHandler.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Dot.d.ts +1 -1
- package/lib/typescript/module/src/component/Dot.d.ts.map +1 -1
- package/lib/typescript/module/src/component/DotLoadingIndicator.d.ts +1 -1
- package/lib/typescript/module/src/component/DotLoadingIndicator.d.ts.map +1 -1
- package/lib/typescript/module/src/component/EmptyState.d.ts.map +1 -1
- package/lib/typescript/module/src/component/FloatingRoundChip.d.ts.map +1 -1
- package/lib/typescript/module/src/component/GradientBorderContainer.d.ts +1 -1
- package/lib/typescript/module/src/component/GradientBorderContainer.d.ts.map +1 -1
- package/lib/typescript/module/src/component/GradientBorderContainer.web.d.ts.map +1 -1
- package/lib/typescript/module/src/component/GradientCollection.d.ts +1 -1
- package/lib/typescript/module/src/component/GradientCollection.d.ts.map +1 -1
- package/lib/typescript/module/src/component/GradientMask.d.ts +1 -1
- package/lib/typescript/module/src/component/GradientMask.d.ts.map +1 -1
- package/lib/typescript/module/src/component/GradientMask.web.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Header/Header.d.ts +1 -1
- package/lib/typescript/module/src/component/Header/Header.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Icon/Icons.d.ts +219 -219
- package/lib/typescript/module/src/component/Icon/Icons.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Icon/index.d.ts +1 -1
- package/lib/typescript/module/src/component/Icon/index.d.ts.map +1 -1
- package/lib/typescript/module/src/component/IconCheckbox.d.ts +2 -1
- package/lib/typescript/module/src/component/IconCheckbox.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Layout/FixedBottomLayout.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Layout/ItemList.d.ts +1 -1
- package/lib/typescript/module/src/component/Layout/ItemList.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Layout/Layout/LayoutProvider.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Layout/Layout/useDynamicDimensions.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Layout/SectionLayout/SectionLayout.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Layout/WhiteGradientFixedBottomLayout.d.ts.map +1 -1
- package/lib/typescript/module/src/component/LiText.d.ts +1 -1
- package/lib/typescript/module/src/component/LiText.d.ts.map +1 -1
- package/lib/typescript/module/src/component/LineDivider.d.ts.map +1 -1
- package/lib/typescript/module/src/component/LoadingFallbackView.d.ts.map +1 -1
- package/lib/typescript/module/src/component/LoadingIndicator.d.ts.map +1 -1
- package/lib/typescript/module/src/component/LoadingIndicatorView.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Lottie/index.d.ts.map +1 -1
- package/lib/typescript/module/src/component/MarqueeView.d.ts.map +1 -1
- package/lib/typescript/module/src/component/NumberBadge.d.ts +1 -1
- package/lib/typescript/module/src/component/NumberBadge.d.ts.map +1 -1
- package/lib/typescript/module/src/component/OnMountEvent.d.ts.map +1 -1
- package/lib/typescript/module/src/component/PaginatedFlashList.d.ts.map +1 -1
- package/lib/typescript/module/src/component/PaginatedFlatList.d.ts.map +1 -1
- package/lib/typescript/module/src/component/PieChart.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Pressable/LoadingIndicatorTouchable.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Pressable/Touch.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Pressable/useDisabilityAwareDebouncer.d.ts.map +1 -1
- package/lib/typescript/module/src/component/RadioButton.d.ts +1 -1
- package/lib/typescript/module/src/component/RadioButton.d.ts.map +1 -1
- package/lib/typescript/module/src/component/ReadMoreText.d.ts +1 -1
- package/lib/typescript/module/src/component/ReadMoreText.d.ts.map +1 -1
- package/lib/typescript/module/src/component/ReadMoreText.web.d.ts.map +1 -1
- package/lib/typescript/module/src/component/RefreshControlEx.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Switch.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Tab/BaseTab.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Tab/IndicatorTab.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Tab/RoundTab.d.ts.map +1 -1
- package/lib/typescript/module/src/component/Tag.d.ts +1 -1
- package/lib/typescript/module/src/component/Tag.d.ts.map +1 -1
- package/lib/typescript/module/src/component/TagHorizontalList.d.ts +1 -1
- package/lib/typescript/module/src/component/TagHorizontalList.d.ts.map +1 -1
- package/lib/typescript/module/src/component/TextField/BaseTextField.d.ts +2 -2
- package/lib/typescript/module/src/component/TextField/BaseTextField.d.ts.map +1 -1
- package/lib/typescript/module/src/component/TextField/CoreTextField.d.ts.map +1 -1
- package/lib/typescript/module/src/component/ToolTip/BaseToolTip.d.ts.map +1 -1
- package/lib/typescript/module/src/component/dialog/CommonBottomSheetDialog.d.ts +2 -1
- package/lib/typescript/module/src/component/dialog/CommonBottomSheetDialog.d.ts.map +1 -1
- package/lib/typescript/module/src/component/dialog/CommonDialog.d.ts +3 -1
- package/lib/typescript/module/src/component/dialog/CommonDialog.d.ts.map +1 -1
- package/lib/typescript/module/src/component/dialog/ItemSelectBottomSheetDialog.d.ts +1 -1
- package/lib/typescript/module/src/component/dialog/ItemSelectBottomSheetDialog.d.ts.map +1 -1
- package/lib/typescript/module/src/component/dialog/LottieDialog.d.ts.map +1 -1
- package/lib/typescript/module/src/component/dialog/ToastDialog.d.ts +1 -1
- package/lib/typescript/module/src/component/dialog/ToastDialog.d.ts.map +1 -1
- package/lib/typescript/module/src/component/dialog/base/BottomSheetDialog.d.ts.map +1 -1
- package/lib/typescript/module/src/component/dialog/base/Dialog.d.ts.map +1 -1
- package/lib/typescript/module/src/util/StyleUtil.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/component/AnimatedNumber.tsx +1 -1
- package/src/component/Animation/etc/LeftAndRight.tsx +2 -1
- package/src/component/Animation/etc/UpAndDown.tsx +2 -1
- package/src/component/Animation/implicit/OpacityAnimatedView.tsx +2 -1
- package/src/component/Badge.tsx +3 -2
- package/src/component/Banner/BannerItem.tsx +5 -3
- package/src/component/Btn/BaseBtn.tsx +7 -3
- package/src/component/Btn/FixedBottomCTABtn.tsx +3 -1
- package/src/component/Btn/IconBtn.tsx +3 -1
- package/src/component/Btn/InteractiveToggledIconBtn.tsx +2 -1
- package/src/component/Carousel.tsx +3 -1
- package/src/component/Chip.tsx +5 -2
- package/src/component/CloneWithGlobalPositionView.tsx +3 -1
- package/src/component/DialogHandler.tsx +2 -5
- package/src/component/Dot.tsx +2 -1
- package/src/component/DotLoadingIndicator.tsx +4 -2
- package/src/component/EmptyState.tsx +5 -1
- package/src/component/FloatingRoundChip.tsx +3 -3
- package/src/component/GradientBorderContainer.tsx +5 -1
- package/src/component/GradientBorderContainer.web.tsx +2 -1
- package/src/component/GradientCollection.tsx +3 -1
- package/src/component/GradientMask.tsx +2 -1
- package/src/component/GradientMask.web.tsx +2 -1
- package/src/component/Header/Header.tsx +4 -1
- package/src/component/Icon/Icons.tsx +219 -219
- package/src/component/Icon/index.tsx +2 -1
- package/src/component/IconCheckbox.tsx +4 -1
- package/src/component/Layout/FixedBottomLayout.tsx +3 -2
- package/src/component/Layout/ItemList.tsx +3 -1
- package/src/component/Layout/Layout/LayoutProvider.tsx +3 -1
- package/src/component/Layout/Layout/WindowSizeClass.ts +1 -1
- package/src/component/Layout/Layout/useDynamicDimensions.ts +2 -1
- package/src/component/Layout/SectionLayout/SectionLayout.tsx +1 -1
- package/src/component/Layout/WhiteGradientFixedBottomLayout.tsx +5 -1
- package/src/component/LiText.tsx +2 -1
- package/src/component/LineDivider.tsx +3 -1
- package/src/component/LoadingFallbackView.tsx +2 -1
- package/src/component/LoadingIndicator.tsx +3 -1
- package/src/component/LoadingIndicatorView.tsx +4 -1
- package/src/component/Lottie/index.tsx +1 -1
- package/src/component/MarqueeView.tsx +4 -1
- package/src/component/NumberBadge.tsx +5 -1
- package/src/component/OnMountEvent.tsx +2 -1
- package/src/component/PaginatedFlashList.tsx +3 -1
- package/src/component/PaginatedFlatList.tsx +3 -1
- package/src/component/PieChart.tsx +3 -1
- package/src/component/Pressable/LoadingIndicatorTouchable.tsx +2 -1
- package/src/component/Pressable/Touch.tsx +3 -1
- package/src/component/Pressable/useDisabilityAwareDebouncer.ts +2 -1
- package/src/component/RadioButton.tsx +3 -2
- package/src/component/ReadMoreText.tsx +6 -1
- package/src/component/ReadMoreText.web.tsx +1 -2
- package/src/component/RefreshControlEx.tsx +2 -1
- package/src/component/Switch.tsx +2 -1
- package/src/component/Tab/BaseTab.tsx +2 -1
- package/src/component/Tab/IndicatorTab.tsx +4 -1
- package/src/component/Tab/RoundTab.tsx +4 -1
- package/src/component/Tag.tsx +5 -9
- package/src/component/TagHorizontalList.tsx +3 -1
- package/src/component/TextField/BaseTextField.tsx +6 -10
- package/src/component/TextField/CoreTextField.tsx +4 -1
- package/src/component/TextField/textFieldNumericFormatUtils.ts +1 -1
- package/src/component/ToolTip/BaseToolTip.tsx +4 -1
- package/src/component/dialog/CommonBottomSheetDialog.tsx +6 -12
- package/src/component/dialog/CommonDialog.tsx +8 -16
- package/src/component/dialog/ItemSelectBottomSheetDialog.tsx +8 -13
- package/src/component/dialog/LottieDialog.tsx +5 -1
- package/src/component/dialog/ToastDialog.tsx +8 -14
- package/src/component/dialog/base/BottomSheetDialog.tsx +2 -1
- package/src/component/dialog/base/Dialog.tsx +4 -1
- package/src/hook/useFloatingKeyboard.ts +2 -2
- package/src/hook/useIntervalCallback.tsx +1 -1
- package/src/hook/useTimeoutHandler.test.ts +2 -1
- package/src/util/StyleUtil.ts +2 -1
- package/lib/commonjs/assets/icons/bookmark_animation.svg +0 -3
- package/lib/commonjs/assets/icons/chat_bubble_question_animation.svg +0 -3
- package/lib/module/assets/icons/bookmark_animation.svg +0 -3
- package/lib/module/assets/icons/chat_bubble_question_animation.svg +0 -3
- package/src/assets/icons/bookmark_animation.svg +0 -3
- package/src/assets/icons/chat_bubble_question_animation.svg +0 -3
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { useKeyboard, is, GradientCollection, palette } from '@teamturing/react-native-kit';
|
|
2
1
|
import type { PropsWithChildren } from 'react';
|
|
3
2
|
import { StyleSheet } from 'react-native';
|
|
4
3
|
|
|
4
|
+
import { useKeyboard } from '../../hook';
|
|
5
|
+
import { palette } from '../../theme';
|
|
6
|
+
import { is } from '../../util';
|
|
7
|
+
import { GradientCollection } from '../GradientCollection';
|
|
8
|
+
|
|
5
9
|
import type { FixedBottomLayoutProps } from './FixedBottomLayout';
|
|
6
10
|
import { FixedBottomLayout } from './FixedBottomLayout';
|
|
7
11
|
|
package/src/component/LiText.tsx
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { type TextConfigProp, Txt } from '@teamturing/react-native-kit';
|
|
2
1
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
2
|
import { View } from 'react-native';
|
|
4
3
|
|
|
4
|
+
import { type TextConfigProp, Txt } from './Txt';
|
|
5
|
+
|
|
5
6
|
type Props = {
|
|
6
7
|
text?: string;
|
|
7
8
|
style?: StyleProp<ViewStyle>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { palette, flatStyle } from '@teamturing/react-native-kit';
|
|
2
1
|
import type { ColorValue, StyleProp, ViewStyle } from 'react-native';
|
|
3
2
|
import { View } from 'react-native';
|
|
4
3
|
|
|
4
|
+
import { palette } from '../theme';
|
|
5
|
+
import { flatStyle } from '../util';
|
|
6
|
+
|
|
5
7
|
type Props = {
|
|
6
8
|
style?: StyleProp<ViewStyle>;
|
|
7
9
|
color?: ColorValue;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { SxProps } from '@react-native-styled-system/core';
|
|
2
2
|
import { useSx } from '@react-native-styled-system/core';
|
|
3
|
-
import { palette, is } from '@teamturing/react-native-kit';
|
|
4
3
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
5
4
|
import { ActivityIndicator } from 'react-native';
|
|
6
5
|
|
|
6
|
+
import { palette } from '../theme';
|
|
7
|
+
import { is } from '../util';
|
|
8
|
+
|
|
7
9
|
export type MathKingIndicatorProps = {
|
|
8
10
|
testID?: string;
|
|
9
11
|
size?: number;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { palette, applyOpacity, Box } from '@teamturing/react-native-kit';
|
|
2
1
|
import type { ViewProps } from 'react-native';
|
|
3
2
|
import { View } from 'react-native';
|
|
4
3
|
|
|
4
|
+
import { palette } from '../theme';
|
|
5
|
+
import { applyOpacity } from '../util';
|
|
6
|
+
|
|
7
|
+
import { Box } from './Box';
|
|
5
8
|
import { LoadingIndicator } from './LoadingIndicator';
|
|
6
9
|
|
|
7
10
|
export const LoadingIndicatorView = ({ isLoading, children, ...rest }: { isLoading: boolean } & ViewProps) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { is } from '@teamturing/react-native-kit';
|
|
2
1
|
import type { LottieViewProps as BaseLottieProps } from 'lottie-react-native';
|
|
3
2
|
import BaseLottie from 'lottie-react-native';
|
|
4
3
|
import { useState, useEffect, forwardRef, type ForwardedRef, type MutableRefObject } from 'react';
|
|
5
4
|
import { AppState, Platform, StyleSheet } from 'react-native';
|
|
6
5
|
|
|
6
|
+
import { is } from '../../util';
|
|
7
7
|
import { Box } from '../Box';
|
|
8
8
|
|
|
9
9
|
type Props = {
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { is, Txt } from '@teamturing/react-native-kit';
|
|
2
1
|
import React, { useEffect, useRef, useState } from 'react';
|
|
3
2
|
import type { LayoutRectangle, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
4
3
|
import { Animated, Easing, ScrollView } from 'react-native';
|
|
5
4
|
|
|
5
|
+
import { is } from '../util';
|
|
6
|
+
|
|
7
|
+
import { Txt } from './Txt';
|
|
8
|
+
|
|
6
9
|
export type MarqueeViewProps = {
|
|
7
10
|
textStyle?: StyleProp<TextStyle>;
|
|
8
11
|
style?: StyleProp<ViewStyle>;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { type PaletteColor, is, palette, spacing, Txt } from '@teamturing/react-native-kit';
|
|
2
1
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
2
|
import { View } from 'react-native';
|
|
4
3
|
|
|
4
|
+
import { type PaletteColor, palette, spacing } from '../theme';
|
|
5
|
+
import { is } from '../util';
|
|
6
|
+
|
|
7
|
+
import { Txt } from './Txt';
|
|
8
|
+
|
|
5
9
|
type Props = {
|
|
6
10
|
count?: number;
|
|
7
11
|
maxCount?: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { useMount } from '@teamturing/react-native-kit';
|
|
2
1
|
import type { EffectCallback, ReactElement } from 'react';
|
|
3
2
|
|
|
3
|
+
import { useMount } from '../hook';
|
|
4
|
+
|
|
4
5
|
type Props = { onMount: EffectCallback; children?: ReactElement | null };
|
|
5
6
|
const OnMountEvent = ({ onMount, children = null }: Props) => {
|
|
6
7
|
useMount(onMount);
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { type FlashListProps, FlashList } from '@shopify/flash-list';
|
|
2
|
-
import { useStableCallback, is, useScrollViewOnEndReachedConfig } from '@teamturing/react-native-kit';
|
|
3
2
|
import { useImperativeHandle, useRef, useState, forwardRef } from 'react';
|
|
4
3
|
import type { FlatListProps, ScrollViewProps } from 'react-native';
|
|
5
4
|
import { View } from 'react-native';
|
|
6
5
|
|
|
6
|
+
import { useStableCallback, useScrollViewOnEndReachedConfig } from '../hook';
|
|
7
|
+
import { is } from '../util';
|
|
8
|
+
|
|
7
9
|
import { LoadingIndicator } from './LoadingIndicator';
|
|
8
10
|
|
|
9
11
|
export type PaginatedFlashListProps<T> = Omit<FlashListProps<T>, 'maintainVisibleContentPosition'> & {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { useStableCallback, is, useScrollViewOnEndReachedConfig } from '@teamturing/react-native-kit';
|
|
2
1
|
import React, { useImperativeHandle, useRef, useState } from 'react';
|
|
3
2
|
import type { FlatListProps, ScrollViewProps } from 'react-native';
|
|
4
3
|
import { FlatList as FlatList, View } from 'react-native';
|
|
5
4
|
|
|
5
|
+
import { useStableCallback, useScrollViewOnEndReachedConfig } from '../hook';
|
|
6
|
+
import { is } from '../util';
|
|
7
|
+
|
|
6
8
|
import { LoadingIndicator } from './LoadingIndicator';
|
|
7
9
|
|
|
8
10
|
export type PaginatedFlatListProps<T> = Omit<FlatListProps<T>, 'maintainVisibleContentPosition'> & {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { LoadingIndicator } from '@teamturing/react-native-kit';
|
|
2
1
|
import { StyleSheet } from 'react-native';
|
|
3
2
|
|
|
3
|
+
import { LoadingIndicator } from '../LoadingIndicator';
|
|
4
|
+
|
|
4
5
|
import { type TouchProps, Touch } from './Touch';
|
|
5
6
|
|
|
6
7
|
type Props = { isLoading: boolean } & TouchProps;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { SxProps } from '@react-native-styled-system/core';
|
|
2
2
|
import { useSx } from '@react-native-styled-system/core';
|
|
3
|
-
import { spacing, is } from '@teamturing/react-native-kit';
|
|
4
3
|
import type { PropsWithChildren, Ref } from 'react';
|
|
5
4
|
import { forwardRef } from 'react';
|
|
6
5
|
import type { TouchableOpacityProps } from 'react-native';
|
|
7
6
|
import { TouchableOpacity } from 'react-native';
|
|
8
7
|
|
|
8
|
+
import { spacing } from '../../theme';
|
|
9
|
+
import { is } from '../../util';
|
|
10
|
+
|
|
9
11
|
import { type UseDisabilityAwareDebouncerParams, useDisabilityAwareDebouncer } from './useDisabilityAwareDebouncer';
|
|
10
12
|
|
|
11
13
|
type Props = {} & TouchableOpacityProps & UseDisabilityAwareDebouncerParams & SxProps;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { is, isTestEnvironment, isNewArch } from '@teamturing/react-native-kit';
|
|
2
1
|
import { useCallback, useEffect, useRef } from 'react';
|
|
3
2
|
import { Platform } from 'react-native';
|
|
4
3
|
|
|
4
|
+
import { isNewArch, is, isTestEnvironment } from '../../util';
|
|
5
|
+
|
|
5
6
|
const DELAY_AFTER_EVENT = 500; /* 0.5sec */
|
|
6
7
|
const DELAY_AFTER_ENABLED = 800; /* 0.8sec */
|
|
7
8
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { palette } from '@teamturing/react-native-kit';
|
|
2
1
|
import type { PressableProps } from 'react-native';
|
|
3
2
|
import { Pressable, View } from 'react-native';
|
|
4
3
|
|
|
5
|
-
import
|
|
4
|
+
import { palette } from '../theme';
|
|
5
|
+
|
|
6
|
+
import type { LayoutStyle } from './Layout';
|
|
6
7
|
|
|
7
8
|
type Props = { layout?: LayoutStyle; value: boolean } & PressableProps;
|
|
8
9
|
const RadioButton = ({ layout, value, ...props }: Props) => {
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { useLayout } from '@react-native-community/hooks';
|
|
2
|
-
import { Txt, is, palette, Touch } from '@teamturing/react-native-kit';
|
|
3
2
|
import { useEffect, useState } from 'react';
|
|
4
3
|
|
|
4
|
+
import { palette } from '../theme';
|
|
5
|
+
import { is } from '../util';
|
|
6
|
+
|
|
7
|
+
import { Touch } from './Pressable';
|
|
8
|
+
import { Txt } from './Txt';
|
|
9
|
+
|
|
5
10
|
type Props = { onlyMore?: boolean; TxtComponent?: Txt; text: string; numberOfLines?: number };
|
|
6
11
|
|
|
7
12
|
const ReadMoreText = ({ onlyMore = true, TxtComponent = Txt.M, text, numberOfLines = 3 }: Props) => {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { palette } from '@teamturing/react-native-kit';
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import type { RefreshControlProps } from 'react-native';
|
|
4
3
|
import { RefreshControl } from 'react-native';
|
|
5
4
|
|
|
5
|
+
import { palette } from '../theme';
|
|
6
|
+
|
|
6
7
|
type Props = {} & RefreshControlProps;
|
|
7
8
|
const RefreshControlEx: React.FC<Props> = ({ ...rest }: Props) => {
|
|
8
9
|
return (
|
package/src/component/Switch.tsx
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { palette } from '@teamturing/react-native-kit';
|
|
2
1
|
import { useEffect, useRef } from 'react';
|
|
3
2
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
3
|
import { Animated, TouchableOpacity } from 'react-native';
|
|
5
4
|
|
|
5
|
+
import { palette } from '../theme';
|
|
6
|
+
|
|
6
7
|
const AnimatedTouchableOpacity = Animated.createAnimatedComponent(TouchableOpacity);
|
|
7
8
|
|
|
8
9
|
type SwitchProps = {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { palette, Txt, spacing, Badge } from '@teamturing/react-native-kit';
|
|
2
1
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
2
|
import { View } from 'react-native';
|
|
4
3
|
|
|
4
|
+
import { palette, spacing } from '../../theme';
|
|
5
|
+
import { Badge } from '../Badge';
|
|
6
|
+
import { Txt } from '../Txt';
|
|
7
|
+
|
|
5
8
|
import { type BaseTabPropsWithoutRenderProps, BaseTab } from './BaseTab';
|
|
6
9
|
|
|
7
10
|
type Props = {
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { Txt, FontWeight, spacing, palette, is, Dot, px } from '@teamturing/react-native-kit';
|
|
2
1
|
import type { ColorValue, ViewStyle } from 'react-native';
|
|
3
2
|
|
|
3
|
+
import { palette, spacing } from '../../theme';
|
|
4
|
+
import { is, px } from '../../util';
|
|
4
5
|
import { Box } from '../Box';
|
|
6
|
+
import { Dot } from '../Dot';
|
|
5
7
|
import type { IconName, IconProps } from '../Icon';
|
|
6
8
|
import { Icon } from '../Icon';
|
|
7
9
|
import { Row, RowCenter } from '../Layout';
|
|
10
|
+
import { Txt, FontWeight } from '../Txt';
|
|
8
11
|
|
|
9
12
|
import { type BaseTabPropsWithoutRenderProps, BaseTab } from './BaseTab';
|
|
10
13
|
|
package/src/component/Tag.tsx
CHANGED
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import type { SxProps } from '@react-native-styled-system/core';
|
|
2
2
|
import { useSx } from '@react-native-styled-system/core';
|
|
3
|
-
import {
|
|
4
|
-
Txt,
|
|
5
|
-
type TextConfig,
|
|
6
|
-
palette,
|
|
7
|
-
spacing,
|
|
8
|
-
gradient,
|
|
9
|
-
type LayoutStyle,
|
|
10
|
-
Touch,
|
|
11
|
-
} from '@teamturing/react-native-kit';
|
|
12
3
|
import React from 'react';
|
|
13
4
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
14
5
|
import { StyleSheet } from 'react-native';
|
|
15
6
|
|
|
7
|
+
import { palette, spacing, gradient } from '../theme';
|
|
8
|
+
|
|
16
9
|
import { type GradientCollecitonProps, GradientCollection } from './GradientCollection';
|
|
17
10
|
import { type IconName, type IconProps, Icon } from './Icon';
|
|
11
|
+
import type { LayoutStyle } from './Layout';
|
|
12
|
+
import { Touch } from './Pressable';
|
|
13
|
+
import { Txt, type TextConfig } from './Txt';
|
|
18
14
|
|
|
19
15
|
export type TagSize = 'm' | 's';
|
|
20
16
|
export type TagVariant = 'gray-900' | 'violet-500' | 'outlined' | 'gradient1' | 'plain';
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import type { SxProps } from '@react-native-styled-system/core';
|
|
2
2
|
import { useSx } from '@react-native-styled-system/core';
|
|
3
|
-
import { type TagProps, Tag, useTimeoutHandlers, spacing } from '@teamturing/react-native-kit';
|
|
4
3
|
import type { Ref } from 'react';
|
|
5
4
|
import { useRef, forwardRef, useImperativeHandle, useCallback } from 'react';
|
|
6
5
|
import type { ScrollView } from 'react-native';
|
|
7
6
|
import { View } from 'react-native';
|
|
8
7
|
|
|
8
|
+
import { useTimeoutHandlers } from '../hook';
|
|
9
|
+
import { spacing } from '../theme';
|
|
9
10
|
import { is } from '../util';
|
|
10
11
|
|
|
11
12
|
import { useDynamicLayout, RowCenter } from './Layout';
|
|
12
13
|
import { StyledScrollView } from './StyledScrollView';
|
|
14
|
+
import { type TagProps, Tag } from './Tag';
|
|
13
15
|
|
|
14
16
|
type Props = {
|
|
15
17
|
tags: (TagProps & { key: string | number })[];
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
is,
|
|
3
|
-
palette,
|
|
4
|
-
spacing,
|
|
5
|
-
Txt,
|
|
6
|
-
Grid,
|
|
7
|
-
Shake,
|
|
8
|
-
type ImperativeAnimationRef,
|
|
9
|
-
Touch,
|
|
10
|
-
} from '@teamturing/react-native-kit';
|
|
11
1
|
import React, { useEffect, useRef, forwardRef } from 'react';
|
|
12
2
|
import { type TextInput, type StyleProp, type ViewStyle, type ColorValue, type TextStyle, View } from 'react-native';
|
|
13
3
|
|
|
4
|
+
import { palette, spacing } from '../../theme';
|
|
5
|
+
import { is } from '../../util';
|
|
6
|
+
import { type ImperativeAnimationRef, Shake } from '../Animation';
|
|
14
7
|
import { IconBtn } from '../Btn';
|
|
15
8
|
import { type IconName, Icon } from '../Icon';
|
|
9
|
+
import { Grid } from '../Layout';
|
|
10
|
+
import { Touch } from '../Pressable';
|
|
11
|
+
import { Txt } from '../Txt';
|
|
16
12
|
|
|
17
13
|
import type { CoreTextFieldProps } from './CoreTextField';
|
|
18
14
|
import { CoreTextField } from './CoreTextField';
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { FontWeight, is, palette, spacing } from '@teamturing/react-native-kit';
|
|
2
1
|
import React, { useState, useEffect, forwardRef } from 'react';
|
|
3
2
|
import type { TextInputProps, StyleProp, TextStyle } from 'react-native';
|
|
4
3
|
import { TextInput } from 'react-native';
|
|
5
4
|
|
|
5
|
+
import { palette, spacing } from '../../theme';
|
|
6
|
+
import { is } from '../../util';
|
|
7
|
+
import { FontWeight } from '../Txt';
|
|
8
|
+
|
|
6
9
|
import type { NumericFormatType } from './textFieldNumericFormatUtils';
|
|
7
10
|
import { TextFieldNumericFormatUtil } from './textFieldNumericFormatUtils';
|
|
8
11
|
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { SxProps } from '@react-native-styled-system/core';
|
|
2
2
|
import { useSx } from '@react-native-styled-system/core';
|
|
3
|
-
import { spacing, palette, is, RowCenter, Column } from '@teamturing/react-native-kit';
|
|
4
3
|
import type { ReactElement } from 'react';
|
|
5
4
|
import type { StyleProp, ViewStyle, ColorValue } from 'react-native';
|
|
6
5
|
import { View } from 'react-native';
|
|
7
6
|
import Svg, { Path } from 'react-native-svg';
|
|
8
7
|
|
|
8
|
+
import { palette, spacing } from '../../theme';
|
|
9
|
+
import { is } from '../../util';
|
|
10
|
+
import { RowCenter, Column } from '../Layout';
|
|
11
|
+
|
|
9
12
|
type Props = {
|
|
10
13
|
triangleDirection?:
|
|
11
14
|
| 'top-left'
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
import { useBackHandler } from '@react-native-community/hooks';
|
|
2
|
-
import {
|
|
3
|
-
type ImgSource,
|
|
4
|
-
type IconName,
|
|
5
|
-
type IconProps,
|
|
6
|
-
Box,
|
|
7
|
-
Img,
|
|
8
|
-
Icon,
|
|
9
|
-
Txt,
|
|
10
|
-
Btn,
|
|
11
|
-
runAfterFlushMacroQueue,
|
|
12
|
-
is,
|
|
13
|
-
} from '@teamturing/react-native-kit';
|
|
14
2
|
import { forwardRef, useCallback, useImperativeHandle, useRef, useState } from 'react';
|
|
15
3
|
|
|
4
|
+
import { is, runAfterFlushMacroQueue } from '../../util';
|
|
5
|
+
import { Box } from '../Box';
|
|
6
|
+
import { Btn } from '../Btn';
|
|
16
7
|
import { type BaseBtnProps } from '../Btn/BaseBtn';
|
|
8
|
+
import { type IconName, type IconProps, Icon } from '../Icon';
|
|
9
|
+
import { type ImgSource, Img } from '../Img';
|
|
10
|
+
import { Txt } from '../Txt';
|
|
17
11
|
|
|
18
12
|
import { useDialogContext } from './DialogProvider';
|
|
19
13
|
import { type DialogRef, BottomSheetDialog } from './base';
|
|
@@ -1,23 +1,15 @@
|
|
|
1
1
|
import { useBackHandler } from '@react-native-community/hooks';
|
|
2
|
-
import {
|
|
3
|
-
type IconName,
|
|
4
|
-
type IconProps,
|
|
5
|
-
type ImgSource,
|
|
6
|
-
type ChipProps,
|
|
7
|
-
type BtnProps,
|
|
8
|
-
is,
|
|
9
|
-
Icon,
|
|
10
|
-
palette,
|
|
11
|
-
Img,
|
|
12
|
-
spacing,
|
|
13
|
-
Chip,
|
|
14
|
-
Txt,
|
|
15
|
-
Btn,
|
|
16
|
-
runAfterFlushMacroQueue,
|
|
17
|
-
} from '@teamturing/react-native-kit';
|
|
18
2
|
import { forwardRef, useCallback, useImperativeHandle, useRef, useState } from 'react';
|
|
19
3
|
import { View } from 'react-native';
|
|
20
4
|
|
|
5
|
+
import { palette, spacing } from '../../theme';
|
|
6
|
+
import { is, runAfterFlushMacroQueue } from '../../util';
|
|
7
|
+
import { type BtnProps, Btn } from '../Btn';
|
|
8
|
+
import { type ChipProps, Chip } from '../Chip';
|
|
9
|
+
import { type IconName, type IconProps, Icon } from '../Icon';
|
|
10
|
+
import { type ImgSource, Img } from '../Img';
|
|
11
|
+
import { Txt } from '../Txt';
|
|
12
|
+
|
|
21
13
|
import { useDialogContext } from './DialogProvider';
|
|
22
14
|
import { type DialogRef, Dialog } from './base';
|
|
23
15
|
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Box,
|
|
3
|
-
useDynamicLayout,
|
|
4
|
-
ItemList,
|
|
5
|
-
palette,
|
|
6
|
-
Txt,
|
|
7
|
-
RowCenter,
|
|
8
|
-
FontWeight,
|
|
9
|
-
Icon,
|
|
10
|
-
spacing,
|
|
11
|
-
is,
|
|
12
|
-
} from '@teamturing/react-native-kit';
|
|
13
1
|
import React, { useRef, useImperativeHandle, useMemo } from 'react';
|
|
14
2
|
import { ScrollView, TouchableHighlight } from 'react-native';
|
|
15
3
|
|
|
16
|
-
import {
|
|
4
|
+
import { spacing, palette } from '../../theme';
|
|
5
|
+
import { is } from '../../util';
|
|
6
|
+
import { Box } from '../Box';
|
|
7
|
+
import { Icon } from '../Icon';
|
|
8
|
+
import { ItemList, useDynamicLayout, RowCenter } from '../Layout';
|
|
9
|
+
import { Txt, FontWeight } from '../Txt';
|
|
10
|
+
|
|
17
11
|
import type { DialogRef } from './base';
|
|
12
|
+
import { type BottomSheetDialogProps, BottomSheetDialog } from './base/BottomSheetDialog';
|
|
18
13
|
|
|
19
14
|
type Option<T> = Readonly<{ id: T; value: string; description?: string; disabled?: boolean; chevron?: boolean }>;
|
|
20
15
|
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { Lottie, useDialogContext, useAppState, useStableCallback } from '@teamturing/react-native-kit';
|
|
2
1
|
import type LottieView from 'lottie-react-native';
|
|
3
2
|
import React, { useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react';
|
|
4
3
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
5
4
|
import { Animated, StyleSheet } from 'react-native';
|
|
6
5
|
|
|
6
|
+
import { useStableCallback, useAppState } from '../../hook';
|
|
7
|
+
import { Lottie } from '../Lottie';
|
|
8
|
+
|
|
9
|
+
import { useDialogContext } from './DialogProvider';
|
|
10
|
+
|
|
7
11
|
export type LottieDialogShowParams = {
|
|
8
12
|
source: any;
|
|
9
13
|
lottieStyle?: StyleProp<ViewStyle>;
|
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type IconName,
|
|
3
|
-
palette,
|
|
4
|
-
type IconProps,
|
|
5
|
-
useDynamicLayout,
|
|
6
|
-
type ImperativeAnimationRef,
|
|
7
|
-
useAppState,
|
|
8
|
-
FadeInOut,
|
|
9
|
-
SlideInOut,
|
|
10
|
-
spacing,
|
|
11
|
-
Icon,
|
|
12
|
-
Txt,
|
|
13
|
-
useDialogContext,
|
|
14
|
-
} from '@teamturing/react-native-kit';
|
|
15
1
|
import React, { useImperativeHandle, useRef, useState } from 'react';
|
|
16
2
|
import { View } from 'react-native';
|
|
17
3
|
|
|
4
|
+
import { useAppState } from '../../hook';
|
|
5
|
+
import { palette, spacing } from '../../theme';
|
|
18
6
|
import { useAppEventListener } from '../../util/AppEvent';
|
|
7
|
+
import { type ImperativeAnimationRef, FadeInOut, SlideInOut } from '../Animation';
|
|
8
|
+
import { type IconName, type IconProps, Icon } from '../Icon';
|
|
9
|
+
import { useDynamicLayout } from '../Layout';
|
|
10
|
+
import { Txt } from '../Txt';
|
|
11
|
+
|
|
12
|
+
import { useDialogContext } from './DialogProvider';
|
|
19
13
|
|
|
20
14
|
export type ToastType = 'success' | 'warning';
|
|
21
15
|
const ToastParamsByType: Record<ToastType, Pick<ToastDialogParams, 'iconName' | 'iconFill'>> = {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { is } from '@mj-studio/js-util';
|
|
2
2
|
import { useSx } from '@react-native-styled-system/core';
|
|
3
|
-
import { useDynamicLayout } from '@teamturing/react-native-kit';
|
|
4
3
|
import React, { forwardRef } from 'react';
|
|
5
4
|
import { StyleSheet } from 'react-native';
|
|
6
5
|
|
|
6
|
+
import { useDynamicLayout } from '../../Layout';
|
|
7
|
+
|
|
7
8
|
import type { DialogRef, DialogProps } from './Dialog';
|
|
8
9
|
import { Dialog } from './Dialog';
|
|
9
10
|
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { SxProps } from '@react-native-styled-system/core';
|
|
2
2
|
import { useSx } from '@react-native-styled-system/core';
|
|
3
|
-
import { useDynamicLayout, px, is, Portal, runAfterFlushMacroQueue } from '@teamturing/react-native-kit';
|
|
4
3
|
import React, { useCallback, useImperativeHandle, useRef, forwardRef } from 'react';
|
|
5
4
|
import { Easing } from 'react-native';
|
|
6
5
|
|
|
6
|
+
import { px, runAfterFlushMacroQueue, is } from '../../../util';
|
|
7
|
+
import { useDynamicLayout } from '../../Layout';
|
|
8
|
+
import { Portal } from '../../Portal';
|
|
9
|
+
|
|
7
10
|
import type { ModalBoxProps } from './ModalBox';
|
|
8
11
|
import { ModalBox } from './ModalBox';
|
|
9
12
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { is } from '@teamturing/react-native-kit';
|
|
2
1
|
import { useEffect, useState } from 'react';
|
|
3
2
|
import type { KeyboardEvent } from 'react-native';
|
|
4
3
|
import { Keyboard } from 'react-native';
|
|
5
4
|
|
|
6
|
-
import { useDynamicLayout } from '../component
|
|
5
|
+
import { useDynamicLayout } from '../component';
|
|
6
|
+
import { is } from '../util';
|
|
7
7
|
|
|
8
8
|
/* Return true if keyboard width is not same with screen width */
|
|
9
9
|
export function useIsIPadFloatingKeyboard() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { setIntervalWithTimeout } from '@mj-studio/js-util';
|
|
1
2
|
import { useRef, useEffect } from 'react';
|
|
2
3
|
|
|
3
4
|
import { useMount } from './useMount';
|
|
4
|
-
import { setIntervalWithTimeout } from '@mj-studio/js-util';
|
|
5
5
|
|
|
6
6
|
export function useIntervalCallback(callback: () => void, intervalSec = 1, doImmediately = false) {
|
|
7
7
|
const ref = useRef<Function>();
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { useTimeoutHandler, useTimeoutHandlers } from '@teamturing/react-native-kit';
|
|
2
1
|
import { renderHook } from '@testing-library/react-native';
|
|
3
2
|
|
|
4
3
|
import { waitRealTime } from '../../test/util/RealTimerUtil';
|
|
5
4
|
|
|
5
|
+
import { useTimeoutHandler, useTimeoutHandlers } from './useTimeoutHandler';
|
|
6
|
+
|
|
6
7
|
jest.useRealTimers();
|
|
7
8
|
describe('useTimeoutHandler', () => {
|
|
8
9
|
it('callback is invoked before unmount', async () => {
|
package/src/util/StyleUtil.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { is } from '@teamturing/react-native-kit';
|
|
2
1
|
import type { ImageStyle, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
2
|
import { StyleSheet } from 'react-native';
|
|
4
3
|
|
|
4
|
+
import { is } from '..';
|
|
5
|
+
|
|
5
6
|
export function flatStyle<S extends ViewStyle | ImageStyle | TextStyle>(style?: StyleProp<S>): S {
|
|
6
7
|
return (StyleSheet.flatten(style) || {}) as S;
|
|
7
8
|
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.5 3.4C3.5 2.7 4 2.2 4.7 2.2H19.3C20 2.2 20.5 2.7 20.5 3.4V20.7C20.5 21.2 20 21.5 19.6 21.2L12.6 17.2C12.2 17 11.8 17 11.4 17.2L4.4 21.2C4 21.4 3.5 21.1 3.5 20.7V3.4Z" fill="currentColor"/>
|
|
3
|
-
</svg>
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 0.921997C18.065 0.921997 23 5.407 23 10.922C23 16.436 18.065 20.922 12 20.922C10.795 20.922 9.491 20.801 9.047 20.756L5.479 22.674C5.3674 22.7339 5.24162 22.7624 5.11508 22.7565C4.98855 22.7506 4.86599 22.7104 4.76048 22.6403C4.65497 22.5702 4.57046 22.4728 4.51596 22.3585C4.46146 22.2441 4.43901 22.1171 4.451 21.991L4.778 18.568C1.999 16.494 1 13.28 1 10.922C1 5.407 5.935 0.921997 12 0.921997ZM12.072 13.972C11.7541 13.9723 11.4493 14.0987 11.2245 14.3235C10.9997 14.5483 10.8733 14.8531 10.873 15.171C10.8726 15.4085 10.9427 15.6407 11.0743 15.8383C11.206 16.036 11.3933 16.1901 11.6126 16.2812C11.8319 16.3723 12.0733 16.3963 12.3062 16.3501C12.5392 16.304 12.7532 16.1897 12.9212 16.0219C13.0892 15.854 13.2036 15.6401 13.2499 15.4072C13.2963 15.1743 13.2725 14.9329 13.1816 14.7135C13.0906 14.4942 12.9367 14.3067 12.7392 14.1749C12.5417 14.0431 12.3095 13.9728 12.072 13.973V13.972ZM12.057 5.5C11.1996 5.50106 10.3776 5.84212 9.77139 6.44838C9.16512 7.05465 8.82406 7.87661 8.823 8.734C8.83537 8.93419 8.92362 9.12214 9.06976 9.25952C9.21589 9.39691 9.40892 9.4734 9.6095 9.4734C9.81008 9.4734 10.0031 9.39691 10.1492 9.25952C10.2954 9.12214 10.3836 8.93419 10.396 8.734C10.396 7.818 11.141 7.073 12.057 7.073C12.621 7.073 13.193 7.333 13.514 7.735C13.759 8.043 13.835 8.41 13.738 8.826C13.629 9.306 13.348 9.505 12.814 9.846C12.164 10.263 11.271 10.834 11.271 12.281C11.2783 12.4847 11.3643 12.6777 11.511 12.8193C11.6577 12.9608 11.8536 13.0399 12.0575 13.0399C12.2614 13.0399 12.4573 12.9608 12.604 12.8193C12.7507 12.6777 12.8367 12.4847 12.844 12.281C12.844 11.716 13.081 11.542 13.664 11.17C14.234 10.805 15.014 10.306 15.271 9.178C15.474 8.298 15.287 7.438 14.743 6.754C14.127 5.981 13.098 5.5 12.057 5.5Z" fill="currentColor"/>
|
|
3
|
-
</svg>
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.5 3.4C3.5 2.7 4 2.2 4.7 2.2H19.3C20 2.2 20.5 2.7 20.5 3.4V20.7C20.5 21.2 20 21.5 19.6 21.2L12.6 17.2C12.2 17 11.8 17 11.4 17.2L4.4 21.2C4 21.4 3.5 21.1 3.5 20.7V3.4Z" fill="currentColor"/>
|
|
3
|
-
</svg>
|