@niibase/uniwind 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -0
- package/dist/common/components/index.js +314 -0
- package/dist/common/components/native/ActivityIndicator.js +21 -0
- package/dist/common/components/native/Button.js +18 -0
- package/dist/common/components/native/FlatList.js +30 -0
- package/dist/common/components/native/Image.js +21 -0
- package/dist/common/components/native/ImageBackground.js +23 -0
- package/dist/common/components/native/InputAccessoryView.js +21 -0
- package/dist/common/components/native/KeyboardAvoidingView.js +20 -0
- package/dist/common/components/native/Modal.js +21 -0
- package/dist/common/components/native/Pressable.js +29 -0
- package/dist/common/components/native/RefreshControl.js +27 -0
- package/dist/common/components/native/SafeAreaView.js +18 -0
- package/dist/common/components/native/ScrollView.js +23 -0
- package/dist/common/components/native/SectionList.js +27 -0
- package/dist/common/components/native/Switch.js +32 -0
- package/dist/common/components/native/Text.js +36 -0
- package/dist/common/components/native/TextInput.js +53 -0
- package/dist/common/components/native/TouchableHighlight.js +35 -0
- package/dist/common/components/native/TouchableNativeFeedback.js +32 -0
- package/dist/common/components/native/TouchableOpacity.js +32 -0
- package/dist/common/components/native/TouchableWithoutFeedback.js +32 -0
- package/dist/common/components/native/View.js +18 -0
- package/dist/common/components/native/VirtualizedList.js +27 -0
- package/dist/common/components/native/useStyle.js +29 -0
- package/dist/common/components/utils.js +18 -0
- package/dist/common/components/web/ActivityIndicator.js +20 -0
- package/dist/common/components/web/Button.js +18 -0
- package/dist/common/components/web/FlatList.js +22 -0
- package/dist/common/components/web/Image.js +20 -0
- package/dist/common/components/web/ImageBackground.js +21 -0
- package/dist/common/components/web/KeyboardAvoidingView.js +18 -0
- package/dist/common/components/web/Modal.js +17 -0
- package/dist/common/components/web/Pressable.js +17 -0
- package/dist/common/components/web/RefreshControl.js +17 -0
- package/dist/common/components/web/SafeAreaView.js +17 -0
- package/dist/common/components/web/ScrollView.js +18 -0
- package/dist/common/components/web/SectionList.js +20 -0
- package/dist/common/components/web/Switch.js +26 -0
- package/dist/common/components/web/Text.js +17 -0
- package/dist/common/components/web/TextInput.js +17 -0
- package/dist/common/components/web/TouchableHighlight.js +20 -0
- package/dist/common/components/web/TouchableNativeFeedback.js +13 -0
- package/dist/common/components/web/TouchableOpacity.js +17 -0
- package/dist/common/components/web/TouchableWithoutFeedback.js +17 -0
- package/dist/common/components/web/View.js +17 -0
- package/dist/common/components/web/VirtualizedList.js +20 -0
- package/dist/common/components/web/index.js +187 -0
- package/dist/common/components/web/metro-injected.js +1 -0
- package/dist/common/components/web/rnw.js +42 -0
- package/dist/common/core/config/config.common.js +80 -0
- package/dist/common/core/config/config.js +51 -0
- package/dist/common/core/config/config.native.js +67 -0
- package/dist/common/core/config/index.js +16 -0
- package/dist/common/core/index.js +16 -0
- package/dist/common/core/listener.js +51 -0
- package/dist/common/core/logger.js +18 -0
- package/dist/common/core/native/index.js +27 -0
- package/dist/common/core/native/native-utils.js +36 -0
- package/dist/common/core/native/parsers/boxShadow.js +10 -0
- package/dist/common/core/native/parsers/fontVariant.js +8 -0
- package/dist/common/core/native/parsers/gradient.js +31 -0
- package/dist/common/core/native/parsers/index.js +60 -0
- package/dist/common/core/native/parsers/textShadow.js +39 -0
- package/dist/common/core/native/parsers/transforms.js +44 -0
- package/dist/common/core/native/runtime.js +34 -0
- package/dist/common/core/native/store.js +181 -0
- package/dist/common/core/types.js +1 -0
- package/dist/common/core/web/cssListener.js +146 -0
- package/dist/common/core/web/formatColor.js +15 -0
- package/dist/common/core/web/getWebStyles.js +51 -0
- package/dist/common/core/web/index.js +49 -0
- package/dist/common/core/web/parseCSSValue.js +15 -0
- package/dist/common/css/index.js +26 -0
- package/dist/common/css/insets.js +64 -0
- package/dist/common/css/processFunctions.js +54 -0
- package/dist/common/css/themes.js +95 -0
- package/dist/common/css/variants.js +16 -0
- package/dist/common/hoc/index.js +16 -0
- package/dist/common/hoc/types.js +1 -0
- package/dist/common/hoc/withUniwind.js +95 -0
- package/dist/common/hoc/withUniwind.native.js +106 -0
- package/dist/common/hoc/withUniwindUtils.js +16 -0
- package/dist/common/hooks/index.js +49 -0
- package/dist/common/hooks/useCSSVariable/getVariableValue.js +19 -0
- package/dist/common/hooks/useCSSVariable/getVariableValue.native.js +9 -0
- package/dist/common/hooks/useCSSVariable/index.js +16 -0
- package/dist/common/hooks/useCSSVariable/useCSSVariable.js +58 -0
- package/dist/common/hooks/useResolveClassNames.js +22 -0
- package/dist/common/hooks/useResolveClassNames.native.js +29 -0
- package/dist/common/hooks/useUniwind.js +28 -0
- package/dist/common/hooks/useUniwindAccent.js +13 -0
- package/dist/common/hooks/useUniwindAccent.native.js +12 -0
- package/dist/common/index.js +38 -0
- package/dist/common/types.js +28 -0
- package/dist/common/utils/buildDtsFile.js +18 -0
- package/dist/common/utils/stringifyThemes.js +8 -0
- package/dist/common/vite/index.d.ts +9 -0
- package/dist/common/vite/index.js +16 -0
- package/dist/common/vite/vite.js +72 -0
- package/dist/metro/index.cjs +166 -0
- package/dist/metro/index.d.ts +15 -0
- package/dist/metro/index.mjs +158 -0
- package/dist/metro/metro-transformer.cjs +1565 -0
- package/dist/metro/metro-transformer.mjs +1558 -0
- package/dist/module/components/index.d.ts +0 -0
- package/dist/module/components/index.js +312 -0
- package/dist/module/components/native/ActivityIndicator.d.ts +3 -0
- package/dist/module/components/native/ActivityIndicator.js +18 -0
- package/dist/module/components/native/Button.d.ts +3 -0
- package/dist/module/components/native/Button.js +15 -0
- package/dist/module/components/native/FlatList.d.ts +3 -0
- package/dist/module/components/native/FlatList.js +27 -0
- package/dist/module/components/native/Image.d.ts +3 -0
- package/dist/module/components/native/Image.js +18 -0
- package/dist/module/components/native/ImageBackground.d.ts +3 -0
- package/dist/module/components/native/ImageBackground.js +20 -0
- package/dist/module/components/native/InputAccessoryView.d.ts +3 -0
- package/dist/module/components/native/InputAccessoryView.js +21 -0
- package/dist/module/components/native/KeyboardAvoidingView.d.ts +3 -0
- package/dist/module/components/native/KeyboardAvoidingView.js +17 -0
- package/dist/module/components/native/Modal.d.ts +3 -0
- package/dist/module/components/native/Modal.js +18 -0
- package/dist/module/components/native/Pressable.d.ts +3 -0
- package/dist/module/components/native/Pressable.js +29 -0
- package/dist/module/components/native/RefreshControl.d.ts +3 -0
- package/dist/module/components/native/RefreshControl.js +24 -0
- package/dist/module/components/native/SafeAreaView.d.ts +3 -0
- package/dist/module/components/native/SafeAreaView.js +15 -0
- package/dist/module/components/native/ScrollView.d.ts +3 -0
- package/dist/module/components/native/ScrollView.js +20 -0
- package/dist/module/components/native/SectionList.d.ts +3 -0
- package/dist/module/components/native/SectionList.js +24 -0
- package/dist/module/components/native/Switch.d.ts +3 -0
- package/dist/module/components/native/Switch.js +26 -0
- package/dist/module/components/native/Text.d.ts +3 -0
- package/dist/module/components/native/Text.js +33 -0
- package/dist/module/components/native/TextInput.d.ts +3 -0
- package/dist/module/components/native/TextInput.js +50 -0
- package/dist/module/components/native/TouchableHighlight.d.ts +3 -0
- package/dist/module/components/native/TouchableHighlight.js +32 -0
- package/dist/module/components/native/TouchableNativeFeedback.d.ts +3 -0
- package/dist/module/components/native/TouchableNativeFeedback.js +29 -0
- package/dist/module/components/native/TouchableOpacity.d.ts +3 -0
- package/dist/module/components/native/TouchableOpacity.js +29 -0
- package/dist/module/components/native/TouchableWithoutFeedback.d.ts +3 -0
- package/dist/module/components/native/TouchableWithoutFeedback.js +29 -0
- package/dist/module/components/native/View.d.ts +3 -0
- package/dist/module/components/native/View.js +15 -0
- package/dist/module/components/native/VirtualizedList.d.ts +3 -0
- package/dist/module/components/native/VirtualizedList.js +24 -0
- package/dist/module/components/native/useStyle.d.ts +2 -0
- package/dist/module/components/native/useStyle.js +22 -0
- package/dist/module/components/utils.d.ts +1 -0
- package/dist/module/components/utils.js +11 -0
- package/dist/module/components/web/ActivityIndicator.d.ts +3 -0
- package/dist/module/components/web/ActivityIndicator.js +17 -0
- package/dist/module/components/web/Button.d.ts +3 -0
- package/dist/module/components/web/Button.js +15 -0
- package/dist/module/components/web/FlatList.d.ts +3 -0
- package/dist/module/components/web/FlatList.js +19 -0
- package/dist/module/components/web/Image.d.ts +3 -0
- package/dist/module/components/web/Image.js +17 -0
- package/dist/module/components/web/ImageBackground.d.ts +3 -0
- package/dist/module/components/web/ImageBackground.js +18 -0
- package/dist/module/components/web/KeyboardAvoidingView.d.ts +3 -0
- package/dist/module/components/web/KeyboardAvoidingView.js +15 -0
- package/dist/module/components/web/Modal.d.ts +3 -0
- package/dist/module/components/web/Modal.js +14 -0
- package/dist/module/components/web/Pressable.d.ts +3 -0
- package/dist/module/components/web/Pressable.js +14 -0
- package/dist/module/components/web/RefreshControl.d.ts +3 -0
- package/dist/module/components/web/RefreshControl.js +14 -0
- package/dist/module/components/web/SafeAreaView.d.ts +3 -0
- package/dist/module/components/web/SafeAreaView.js +14 -0
- package/dist/module/components/web/ScrollView.d.ts +3 -0
- package/dist/module/components/web/ScrollView.js +15 -0
- package/dist/module/components/web/SectionList.d.ts +3 -0
- package/dist/module/components/web/SectionList.js +17 -0
- package/dist/module/components/web/Switch.d.ts +3 -0
- package/dist/module/components/web/Switch.js +20 -0
- package/dist/module/components/web/Text.d.ts +3 -0
- package/dist/module/components/web/Text.js +14 -0
- package/dist/module/components/web/TextInput.d.ts +3 -0
- package/dist/module/components/web/TextInput.js +14 -0
- package/dist/module/components/web/TouchableHighlight.d.ts +3 -0
- package/dist/module/components/web/TouchableHighlight.js +17 -0
- package/dist/module/components/web/TouchableNativeFeedback.d.ts +2 -0
- package/dist/module/components/web/TouchableNativeFeedback.js +2 -0
- package/dist/module/components/web/TouchableOpacity.d.ts +3 -0
- package/dist/module/components/web/TouchableOpacity.js +14 -0
- package/dist/module/components/web/TouchableWithoutFeedback.d.ts +3 -0
- package/dist/module/components/web/TouchableWithoutFeedback.js +14 -0
- package/dist/module/components/web/View.d.ts +3 -0
- package/dist/module/components/web/View.js +14 -0
- package/dist/module/components/web/VirtualizedList.d.ts +3 -0
- package/dist/module/components/web/VirtualizedList.js +17 -0
- package/dist/module/components/web/index.d.ts +22 -0
- package/dist/module/components/web/index.js +22 -0
- package/dist/module/components/web/metro-injected.d.ts +0 -0
- package/dist/module/components/web/metro-injected.js +0 -0
- package/dist/module/components/web/rnw.d.ts +2 -0
- package/dist/module/components/web/rnw.js +35 -0
- package/dist/module/core/config/config.common.d.ts +18 -0
- package/dist/module/core/config/config.common.js +74 -0
- package/dist/module/core/config/config.d.ts +11 -0
- package/dist/module/core/config/config.js +48 -0
- package/dist/module/core/config/config.native.d.ts +12 -0
- package/dist/module/core/config/config.native.js +61 -0
- package/dist/module/core/config/index.d.ts +1 -0
- package/dist/module/core/config/index.js +1 -0
- package/dist/module/core/index.d.ts +1 -0
- package/dist/module/core/index.js +1 -0
- package/dist/module/core/listener.d.ts +12 -0
- package/dist/module/core/listener.js +45 -0
- package/dist/module/core/logger.d.ts +5 -0
- package/dist/module/core/logger.js +11 -0
- package/dist/module/core/native/index.d.ts +2 -0
- package/dist/module/core/native/index.js +2 -0
- package/dist/module/core/native/native-utils.d.ts +4 -0
- package/dist/module/core/native/native-utils.js +27 -0
- package/dist/module/core/native/parsers/boxShadow.d.ts +1 -0
- package/dist/module/core/native/parsers/boxShadow.js +3 -0
- package/dist/module/core/native/parsers/fontVariant.d.ts +1 -0
- package/dist/module/core/native/parsers/fontVariant.js +1 -0
- package/dist/module/core/native/parsers/gradient.d.ts +8 -0
- package/dist/module/core/native/parsers/gradient.js +26 -0
- package/dist/module/core/native/parsers/index.d.ts +5 -0
- package/dist/module/core/native/parsers/index.js +5 -0
- package/dist/module/core/native/parsers/textShadow.d.ts +1 -0
- package/dist/module/core/native/parsers/textShadow.js +32 -0
- package/dist/module/core/native/parsers/transforms.d.ts +1 -0
- package/dist/module/core/native/parsers/transforms.js +48 -0
- package/dist/module/core/native/runtime.d.ts +2 -0
- package/dist/module/core/native/runtime.js +28 -0
- package/dist/module/core/native/store.d.ts +19 -0
- package/dist/module/core/native/store.js +172 -0
- package/dist/module/core/types.d.ts +73 -0
- package/dist/module/core/types.js +0 -0
- package/dist/module/core/web/cssListener.d.ts +19 -0
- package/dist/module/core/web/cssListener.js +137 -0
- package/dist/module/core/web/formatColor.d.ts +1 -0
- package/dist/module/core/web/formatColor.js +8 -0
- package/dist/module/core/web/getWebStyles.d.ts +2 -0
- package/dist/module/core/web/getWebStyles.js +49 -0
- package/dist/module/core/web/index.d.ts +4 -0
- package/dist/module/core/web/index.js +4 -0
- package/dist/module/core/web/parseCSSValue.d.ts +1 -0
- package/dist/module/core/web/parseCSSValue.js +8 -0
- package/dist/module/css/index.d.ts +1 -0
- package/dist/module/css/index.js +25 -0
- package/dist/module/css/insets.d.ts +1 -0
- package/dist/module/css/insets.js +63 -0
- package/dist/module/css/processFunctions.d.ts +2 -0
- package/dist/module/css/processFunctions.js +36 -0
- package/dist/module/css/themes.d.ts +1 -0
- package/dist/module/css/themes.js +97 -0
- package/dist/module/css/variants.d.ts +1 -0
- package/dist/module/css/variants.js +9 -0
- package/dist/module/hoc/index.d.ts +1 -0
- package/dist/module/hoc/index.js +1 -0
- package/dist/module/hoc/types.d.ts +27 -0
- package/dist/module/hoc/types.js +0 -0
- package/dist/module/hoc/withUniwind.d.ts +2 -0
- package/dist/module/hoc/withUniwind.js +76 -0
- package/dist/module/hoc/withUniwind.native.d.ts +2 -0
- package/dist/module/hoc/withUniwind.native.js +81 -0
- package/dist/module/hoc/withUniwindUtils.d.ts +5 -0
- package/dist/module/hoc/withUniwindUtils.js +5 -0
- package/dist/module/hooks/index.d.ts +4 -0
- package/dist/module/hooks/index.js +4 -0
- package/dist/module/hooks/useCSSVariable/getVariableValue.d.ts +1 -0
- package/dist/module/hooks/useCSSVariable/getVariableValue.js +12 -0
- package/dist/module/hooks/useCSSVariable/getVariableValue.native.d.ts +1 -0
- package/dist/module/hooks/useCSSVariable/getVariableValue.native.js +2 -0
- package/dist/module/hooks/useCSSVariable/index.d.ts +1 -0
- package/dist/module/hooks/useCSSVariable/index.js +1 -0
- package/dist/module/hooks/useCSSVariable/useCSSVariable.d.ts +13 -0
- package/dist/module/hooks/useCSSVariable/useCSSVariable.js +56 -0
- package/dist/module/hooks/useResolveClassNames.d.ts +2 -0
- package/dist/module/hooks/useResolveClassNames.js +18 -0
- package/dist/module/hooks/useResolveClassNames.native.d.ts +2 -0
- package/dist/module/hooks/useResolveClassNames.native.js +22 -0
- package/dist/module/hooks/useUniwind.d.ts +5 -0
- package/dist/module/hooks/useUniwind.js +21 -0
- package/dist/module/hooks/useUniwindAccent.d.ts +1 -0
- package/dist/module/hooks/useUniwindAccent.js +6 -0
- package/dist/module/hooks/useUniwindAccent.native.d.ts +2 -0
- package/dist/module/hooks/useUniwindAccent.native.js +5 -0
- package/dist/module/index.d.ts +5 -0
- package/dist/module/index.js +3 -0
- package/dist/module/types.d.ts +21 -0
- package/dist/module/types.js +22 -0
- package/dist/module/utils/buildDtsFile.d.ts +1 -0
- package/dist/module/utils/buildDtsFile.js +22 -0
- package/dist/module/utils/stringifyThemes.d.ts +1 -0
- package/dist/module/utils/stringifyThemes.js +1 -0
- package/dist/module/vite/index.d.ts +9 -0
- package/dist/module/vite/index.js +1 -0
- package/dist/module/vite/vite.d.ts +8 -0
- package/dist/module/vite/vite.js +73 -0
- package/dist/shared/uniwind.BZIuaszw.cjs +11 -0
- package/dist/shared/uniwind.BgZDHdUR.cjs +81 -0
- package/dist/shared/uniwind.Bt3kqZo6.mjs +290 -0
- package/dist/shared/uniwind.CyoRUwOj.mjs +9 -0
- package/dist/shared/uniwind.D3fvrgEG.mjs +68 -0
- package/dist/shared/uniwind.D_6s2EM-.cjs +301 -0
- package/dist/vite/index.cjs +80 -0
- package/dist/vite/index.d.ts +9 -0
- package/dist/vite/index.mjs +74 -0
- package/metro/package.json +3 -0
- package/package.json +106 -0
- package/readme.md +71 -0
- package/src/components/index.ts +313 -0
- package/src/components/native/ActivityIndicator.tsx +19 -0
- package/src/components/native/Button.tsx +16 -0
- package/src/components/native/FlatList.tsx +28 -0
- package/src/components/native/Image.tsx +19 -0
- package/src/components/native/ImageBackground.tsx +21 -0
- package/src/components/native/InputAccessoryView.tsx +23 -0
- package/src/components/native/KeyboardAvoidingView.tsx +18 -0
- package/src/components/native/Modal.tsx +19 -0
- package/src/components/native/Pressable.tsx +31 -0
- package/src/components/native/RefreshControl.tsx +25 -0
- package/src/components/native/SafeAreaView.tsx +16 -0
- package/src/components/native/ScrollView.tsx +21 -0
- package/src/components/native/SectionList.tsx +25 -0
- package/src/components/native/Switch.tsx +28 -0
- package/src/components/native/Text.tsx +39 -0
- package/src/components/native/TextInput.tsx +52 -0
- package/src/components/native/TouchableHighlight.tsx +34 -0
- package/src/components/native/TouchableNativeFeedback.tsx +31 -0
- package/src/components/native/TouchableOpacity.tsx +31 -0
- package/src/components/native/TouchableWithoutFeedback.tsx +31 -0
- package/src/components/native/View.tsx +16 -0
- package/src/components/native/VirtualizedList.tsx +25 -0
- package/src/components/native/useStyle.ts +33 -0
- package/src/components/utils.ts +16 -0
- package/src/components/web/ActivityIndicator.tsx +18 -0
- package/src/components/web/Button.tsx +16 -0
- package/src/components/web/FlatList.tsx +20 -0
- package/src/components/web/Image.tsx +18 -0
- package/src/components/web/ImageBackground.tsx +19 -0
- package/src/components/web/KeyboardAvoidingView.tsx +15 -0
- package/src/components/web/Modal.tsx +14 -0
- package/src/components/web/Pressable.tsx +14 -0
- package/src/components/web/RefreshControl.tsx +14 -0
- package/src/components/web/SafeAreaView.tsx +14 -0
- package/src/components/web/ScrollView.tsx +15 -0
- package/src/components/web/SectionList.tsx +17 -0
- package/src/components/web/Switch.tsx +21 -0
- package/src/components/web/Text.tsx +14 -0
- package/src/components/web/TextInput.tsx +14 -0
- package/src/components/web/TouchableHighlight.tsx +18 -0
- package/src/components/web/TouchableNativeFeedback.tsx +2 -0
- package/src/components/web/TouchableOpacity.tsx +14 -0
- package/src/components/web/TouchableWithoutFeedback.tsx +14 -0
- package/src/components/web/View.tsx +14 -0
- package/src/components/web/VirtualizedList.tsx +17 -0
- package/src/components/web/index.ts +22 -0
- package/src/components/web/metro-injected.ts +1 -0
- package/src/components/web/rnw.ts +52 -0
- package/src/core/config/config.common.ts +98 -0
- package/src/core/config/config.native.ts +79 -0
- package/src/core/config/config.ts +64 -0
- package/src/core/config/index.ts +1 -0
- package/src/core/index.ts +1 -0
- package/src/core/listener.ts +59 -0
- package/src/core/logger.ts +15 -0
- package/src/core/native/index.ts +2 -0
- package/src/core/native/native-utils.ts +41 -0
- package/src/core/native/parsers/boxShadow.ts +7 -0
- package/src/core/native/parsers/fontVariant.ts +3 -0
- package/src/core/native/parsers/gradient.ts +39 -0
- package/src/core/native/parsers/index.ts +5 -0
- package/src/core/native/parsers/textShadow.ts +37 -0
- package/src/core/native/parsers/transforms.ts +64 -0
- package/src/core/native/runtime.ts +32 -0
- package/src/core/native/store.ts +238 -0
- package/src/core/types.ts +92 -0
- package/src/core/web/cssListener.ts +185 -0
- package/src/core/web/formatColor.ts +13 -0
- package/src/core/web/getWebStyles.ts +76 -0
- package/src/core/web/index.ts +4 -0
- package/src/core/web/parseCSSValue.ts +10 -0
- package/src/css/index.ts +32 -0
- package/src/css/insets.ts +73 -0
- package/src/css/processFunctions.ts +39 -0
- package/src/css/themes.ts +130 -0
- package/src/css/variants.ts +11 -0
- package/src/hoc/index.ts +1 -0
- package/src/hoc/types.ts +45 -0
- package/src/hoc/withUniwind.native.tsx +118 -0
- package/src/hoc/withUniwind.tsx +115 -0
- package/src/hoc/withUniwindUtils.ts +10 -0
- package/src/hooks/index.ts +4 -0
- package/src/hooks/useCSSVariable/getVariableValue.native.ts +3 -0
- package/src/hooks/useCSSVariable/getVariableValue.ts +19 -0
- package/src/hooks/useCSSVariable/index.ts +1 -0
- package/src/hooks/useCSSVariable/useCSSVariable.ts +89 -0
- package/src/hooks/useResolveClassNames.native.ts +29 -0
- package/src/hooks/useResolveClassNames.ts +26 -0
- package/src/hooks/useUniwind.ts +26 -0
- package/src/hooks/useUniwindAccent.native.ts +8 -0
- package/src/hooks/useUniwindAccent.ts +10 -0
- package/src/index.ts +5 -0
- package/src/metro/addMetaToStylesTemplate.ts +152 -0
- package/src/metro/compileVirtual.ts +74 -0
- package/src/metro/index.d.ts +15 -0
- package/src/metro/index.ts +1 -0
- package/src/metro/injectThemes.ts +23 -0
- package/src/metro/logger.ts +44 -0
- package/src/metro/metro-css-patches.ts +57 -0
- package/src/metro/metro-transformer.ts +99 -0
- package/src/metro/polyfillWeb.ts +14 -0
- package/src/metro/processor/color.ts +76 -0
- package/src/metro/processor/css.ts +541 -0
- package/src/metro/processor/functions.ts +199 -0
- package/src/metro/processor/index.ts +1 -0
- package/src/metro/processor/mq.ts +82 -0
- package/src/metro/processor/processor.ts +249 -0
- package/src/metro/processor/rn.ts +277 -0
- package/src/metro/processor/units.ts +58 -0
- package/src/metro/processor/var.ts +18 -0
- package/src/metro/resolvers.ts +101 -0
- package/src/metro/types.ts +74 -0
- package/src/metro/utils/common.ts +103 -0
- package/src/metro/utils/index.ts +2 -0
- package/src/metro/utils/serialize.ts +116 -0
- package/src/metro/withUniwindConfig.ts +60 -0
- package/src/types.ts +24 -0
- package/src/utils/buildDtsFile.ts +27 -0
- package/src/utils/stringifyThemes.ts +1 -0
- package/src/vite/index.d.ts +9 -0
- package/src/vite/index.ts +1 -0
- package/src/vite/vite.ts +86 -0
- package/types.d.ts +109 -0
- package/uniwind.css +262 -0
- package/vite/package.json +3 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Uniwind
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
in the Software without restriction, including without limitation the rights
|
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
SOFTWARE.
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
get ActivityIndicator() {
|
|
5
|
+
return require("./native/ActivityIndicator").ActivityIndicator;
|
|
6
|
+
},
|
|
7
|
+
get Button() {
|
|
8
|
+
return require("./native/Button").Button;
|
|
9
|
+
},
|
|
10
|
+
get FlatList() {
|
|
11
|
+
return require("./native/FlatList").FlatList;
|
|
12
|
+
},
|
|
13
|
+
get Image() {
|
|
14
|
+
return require("./native/Image").Image;
|
|
15
|
+
},
|
|
16
|
+
get ImageBackground() {
|
|
17
|
+
return require("./native/ImageBackground").ImageBackground;
|
|
18
|
+
},
|
|
19
|
+
get InputAccessoryView() {
|
|
20
|
+
return require("./native/InputAccessoryView").InputAccessoryView;
|
|
21
|
+
},
|
|
22
|
+
get KeyboardAvoidingView() {
|
|
23
|
+
return require("./native/KeyboardAvoidingView").KeyboardAvoidingView;
|
|
24
|
+
},
|
|
25
|
+
get Modal() {
|
|
26
|
+
return require("./native/Modal").Modal;
|
|
27
|
+
},
|
|
28
|
+
get Pressable() {
|
|
29
|
+
return require("./native/Pressable").Pressable;
|
|
30
|
+
},
|
|
31
|
+
get RefreshControl() {
|
|
32
|
+
return require("./native/RefreshControl").RefreshControl;
|
|
33
|
+
},
|
|
34
|
+
get SafeAreaView() {
|
|
35
|
+
return require("./native/SafeAreaView").SafeAreaView;
|
|
36
|
+
},
|
|
37
|
+
get ScrollView() {
|
|
38
|
+
return require("./native/ScrollView").ScrollView;
|
|
39
|
+
},
|
|
40
|
+
get SectionList() {
|
|
41
|
+
return require("./native/SectionList").SectionList;
|
|
42
|
+
},
|
|
43
|
+
get Switch() {
|
|
44
|
+
return require("./native/Switch").Switch;
|
|
45
|
+
},
|
|
46
|
+
get Text() {
|
|
47
|
+
return require("./native/Text").Text;
|
|
48
|
+
},
|
|
49
|
+
get TextInput() {
|
|
50
|
+
return require("./native/TextInput").TextInput;
|
|
51
|
+
},
|
|
52
|
+
get TouchableHighlight() {
|
|
53
|
+
return require("./native/TouchableHighlight").TouchableHighlight;
|
|
54
|
+
},
|
|
55
|
+
get TouchableNativeFeedback() {
|
|
56
|
+
return require("./native/TouchableNativeFeedback").TouchableNativeFeedback;
|
|
57
|
+
},
|
|
58
|
+
get TouchableOpacity() {
|
|
59
|
+
return require("./native/TouchableOpacity").TouchableOpacity;
|
|
60
|
+
},
|
|
61
|
+
get TouchableWithoutFeedback() {
|
|
62
|
+
return require("./native/TouchableWithoutFeedback").TouchableWithoutFeedback;
|
|
63
|
+
},
|
|
64
|
+
get View() {
|
|
65
|
+
return require("./native/View").View;
|
|
66
|
+
},
|
|
67
|
+
get VirtualizedList() {
|
|
68
|
+
return require("./native/VirtualizedList").VirtualizedList;
|
|
69
|
+
},
|
|
70
|
+
// Unsupported
|
|
71
|
+
get DrawerLayoutAndroid() {
|
|
72
|
+
return require("react-native").DrawerLayoutAndroid;
|
|
73
|
+
},
|
|
74
|
+
get experimental_LayoutConformance() {
|
|
75
|
+
return require("react-native").experimental_LayoutConformance;
|
|
76
|
+
},
|
|
77
|
+
get ProgressBarAndroid() {
|
|
78
|
+
return require("react-native").ProgressBarAndroid;
|
|
79
|
+
},
|
|
80
|
+
get StatusBar() {
|
|
81
|
+
return require("react-native").StatusBar;
|
|
82
|
+
},
|
|
83
|
+
get unstable_TextAncestorContext() {
|
|
84
|
+
return require("react-native").unstable_TextAncestorContext;
|
|
85
|
+
},
|
|
86
|
+
get Touchable() {
|
|
87
|
+
return require("react-native").Touchable;
|
|
88
|
+
},
|
|
89
|
+
get VirtualizedSectionList() {
|
|
90
|
+
return require("react-native").VirtualizedSectionList;
|
|
91
|
+
},
|
|
92
|
+
get unstable_VirtualView() {
|
|
93
|
+
return require("react-native").unstable_VirtualView;
|
|
94
|
+
},
|
|
95
|
+
get AccessibilityInfo() {
|
|
96
|
+
return require("react-native").AccessibilityInfo;
|
|
97
|
+
},
|
|
98
|
+
get ActionSheetIOS() {
|
|
99
|
+
return require("react-native").ActionSheetIOS;
|
|
100
|
+
},
|
|
101
|
+
get Alert() {
|
|
102
|
+
return require("react-native").Alert;
|
|
103
|
+
},
|
|
104
|
+
get Animated() {
|
|
105
|
+
return require("react-native").Animated;
|
|
106
|
+
},
|
|
107
|
+
get Appearance() {
|
|
108
|
+
return require("react-native").Appearance;
|
|
109
|
+
},
|
|
110
|
+
get AppRegistry() {
|
|
111
|
+
return require("react-native").AppRegistry;
|
|
112
|
+
},
|
|
113
|
+
get AppState() {
|
|
114
|
+
return require("react-native").AppState;
|
|
115
|
+
},
|
|
116
|
+
get BackHandler() {
|
|
117
|
+
return require("react-native").BackHandler;
|
|
118
|
+
},
|
|
119
|
+
get Clipboard() {
|
|
120
|
+
return require("react-native").Clipboard;
|
|
121
|
+
},
|
|
122
|
+
get codegenNativeCommands() {
|
|
123
|
+
return require("react-native").codegenNativeCommands;
|
|
124
|
+
},
|
|
125
|
+
get codegenNativeComponent() {
|
|
126
|
+
return require("react-native").codegenNativeComponent;
|
|
127
|
+
},
|
|
128
|
+
get DeviceEventEmitter() {
|
|
129
|
+
return require("react-native").DeviceEventEmitter;
|
|
130
|
+
},
|
|
131
|
+
get DeviceInfo() {
|
|
132
|
+
return require("react-native").DeviceInfo;
|
|
133
|
+
},
|
|
134
|
+
get DevMenu() {
|
|
135
|
+
return require("react-native").DevMenu;
|
|
136
|
+
},
|
|
137
|
+
get DevSettings() {
|
|
138
|
+
return require("react-native").DevSettings;
|
|
139
|
+
},
|
|
140
|
+
get Dimensions() {
|
|
141
|
+
return require("react-native").Dimensions;
|
|
142
|
+
},
|
|
143
|
+
get DynamicColorIOS() {
|
|
144
|
+
return require("react-native").DynamicColorIOS;
|
|
145
|
+
},
|
|
146
|
+
get Easing() {
|
|
147
|
+
return require("react-native").Easing;
|
|
148
|
+
},
|
|
149
|
+
get findNodeHandle() {
|
|
150
|
+
return require("react-native").findNodeHandle;
|
|
151
|
+
},
|
|
152
|
+
get I18nManager() {
|
|
153
|
+
return require("react-native").I18nManager;
|
|
154
|
+
},
|
|
155
|
+
get InteractionManager() {
|
|
156
|
+
return require("react-native").InteractionManager;
|
|
157
|
+
},
|
|
158
|
+
get Keyboard() {
|
|
159
|
+
return require("react-native").Keyboard;
|
|
160
|
+
},
|
|
161
|
+
get LayoutAnimation() {
|
|
162
|
+
return require("react-native").LayoutAnimation;
|
|
163
|
+
},
|
|
164
|
+
get Linking() {
|
|
165
|
+
return require("react-native").Linking;
|
|
166
|
+
},
|
|
167
|
+
get LogBox() {
|
|
168
|
+
return require("react-native").LogBox;
|
|
169
|
+
},
|
|
170
|
+
get NativeAppEventEmitter() {
|
|
171
|
+
return require("react-native").NativeAppEventEmitter;
|
|
172
|
+
},
|
|
173
|
+
get NativeDialogManagerAndroid() {
|
|
174
|
+
return require("react-native").NativeDialogManagerAndroid;
|
|
175
|
+
},
|
|
176
|
+
get NativeEventEmitter() {
|
|
177
|
+
return require("react-native").NativeEventEmitter;
|
|
178
|
+
},
|
|
179
|
+
get NativeModules() {
|
|
180
|
+
return require("react-native").NativeModules;
|
|
181
|
+
},
|
|
182
|
+
get Networking() {
|
|
183
|
+
return require("react-native").Networking;
|
|
184
|
+
},
|
|
185
|
+
get PanResponder() {
|
|
186
|
+
return require("react-native").PanResponder;
|
|
187
|
+
},
|
|
188
|
+
get PermissionsAndroid() {
|
|
189
|
+
return require("react-native").PermissionsAndroid;
|
|
190
|
+
},
|
|
191
|
+
get PixelRatio() {
|
|
192
|
+
return require("react-native").PixelRatio;
|
|
193
|
+
},
|
|
194
|
+
get Platform() {
|
|
195
|
+
return require("react-native").Platform;
|
|
196
|
+
},
|
|
197
|
+
get PlatformColor() {
|
|
198
|
+
return require("react-native").PlatformColor;
|
|
199
|
+
},
|
|
200
|
+
get PushNotificationIOS() {
|
|
201
|
+
return require("react-native").PushNotificationIOS;
|
|
202
|
+
},
|
|
203
|
+
get processColor() {
|
|
204
|
+
return require("react-native").processColor;
|
|
205
|
+
},
|
|
206
|
+
get registerCallableModule() {
|
|
207
|
+
return require("react-native").registerCallableModule;
|
|
208
|
+
},
|
|
209
|
+
get requireNativeComponent() {
|
|
210
|
+
return require("react-native").requireNativeComponent;
|
|
211
|
+
},
|
|
212
|
+
get RootTagContext() {
|
|
213
|
+
return require("react-native").RootTagContext;
|
|
214
|
+
},
|
|
215
|
+
get Settings() {
|
|
216
|
+
return require("react-native").Settings;
|
|
217
|
+
},
|
|
218
|
+
get Share() {
|
|
219
|
+
return require("react-native").Share;
|
|
220
|
+
},
|
|
221
|
+
get StyleSheet() {
|
|
222
|
+
return require("react-native").StyleSheet;
|
|
223
|
+
},
|
|
224
|
+
get Systrace() {
|
|
225
|
+
return require("react-native").Systrace;
|
|
226
|
+
},
|
|
227
|
+
get ToastAndroid() {
|
|
228
|
+
return require("react-native").ToastAndroid;
|
|
229
|
+
},
|
|
230
|
+
get TurboModuleRegistry() {
|
|
231
|
+
return require("react-native").TurboModuleRegistry;
|
|
232
|
+
},
|
|
233
|
+
get UIManager() {
|
|
234
|
+
return require("react-native").UIManager;
|
|
235
|
+
},
|
|
236
|
+
get unstable_batchedUpdates() {
|
|
237
|
+
return require("react-native").unstable_batchedUpdates;
|
|
238
|
+
},
|
|
239
|
+
get useAnimatedValue() {
|
|
240
|
+
return require("react-native").useAnimatedValue;
|
|
241
|
+
},
|
|
242
|
+
get useColorScheme() {
|
|
243
|
+
return require("react-native").useColorScheme;
|
|
244
|
+
},
|
|
245
|
+
get useWindowDimensions() {
|
|
246
|
+
return require("react-native").useWindowDimensions;
|
|
247
|
+
},
|
|
248
|
+
get UTFSequence() {
|
|
249
|
+
return require("react-native").UTFSequence;
|
|
250
|
+
},
|
|
251
|
+
get Vibration() {
|
|
252
|
+
return require("react-native").Vibration;
|
|
253
|
+
},
|
|
254
|
+
get VirtualViewMode() {
|
|
255
|
+
return require("react-native").VirtualViewMode;
|
|
256
|
+
},
|
|
257
|
+
get NativeComponentRegistry() {
|
|
258
|
+
return require("react-native").NativeComponentRegistry;
|
|
259
|
+
},
|
|
260
|
+
get ReactNativeVersion() {
|
|
261
|
+
return require("react-native").ReactNativeVersion;
|
|
262
|
+
},
|
|
263
|
+
get TVEventControl() {
|
|
264
|
+
return require("react-native").TVEventControl;
|
|
265
|
+
},
|
|
266
|
+
get TVEventHandler() {
|
|
267
|
+
return require("react-native").TVEventHandler;
|
|
268
|
+
},
|
|
269
|
+
get useTVEventHandler() {
|
|
270
|
+
return require("react-native").useTVEventHandler;
|
|
271
|
+
},
|
|
272
|
+
get TVFocusGuideView() {
|
|
273
|
+
return require("react-native").TVFocusGuideView;
|
|
274
|
+
},
|
|
275
|
+
get TVMenuControl() {
|
|
276
|
+
return require("react-native").TVMenuControl;
|
|
277
|
+
},
|
|
278
|
+
get TVTextScrollView() {
|
|
279
|
+
return require("react-native").TVTextScrollView;
|
|
280
|
+
},
|
|
281
|
+
get DynamicColorMacOS() {
|
|
282
|
+
return require("react-native").DynamicColorMacOS;
|
|
283
|
+
},
|
|
284
|
+
get ColorWithSystemEffectMacOS() {
|
|
285
|
+
return require("react-native").ColorWithSystemEffectMacOS;
|
|
286
|
+
},
|
|
287
|
+
get Flyout() {
|
|
288
|
+
return require("react-native").Flyout;
|
|
289
|
+
},
|
|
290
|
+
get Glyph() {
|
|
291
|
+
return require("react-native").Glyph;
|
|
292
|
+
},
|
|
293
|
+
get Popup() {
|
|
294
|
+
return require("react-native").Popup;
|
|
295
|
+
},
|
|
296
|
+
get supportKeyboard() {
|
|
297
|
+
return require("react-native").supportKeyboard;
|
|
298
|
+
},
|
|
299
|
+
get EventPhase() {
|
|
300
|
+
return require("react-native").EventPhase;
|
|
301
|
+
},
|
|
302
|
+
get HandledEventPhase() {
|
|
303
|
+
return require("react-native").HandledEventPhase;
|
|
304
|
+
},
|
|
305
|
+
get ViewWindows() {
|
|
306
|
+
return require("react-native").ViewWindows;
|
|
307
|
+
},
|
|
308
|
+
get AppTheme() {
|
|
309
|
+
return require("react-native").AppTheme;
|
|
310
|
+
},
|
|
311
|
+
get XamlHost() {
|
|
312
|
+
return require("react-native").XamlHost;
|
|
313
|
+
}
|
|
314
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
module.exports = exports.ActivityIndicator = void 0;
|
|
7
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _hooks = require("../../hooks");
|
|
10
|
+
var _utils = require("../utils");
|
|
11
|
+
var _useStyle = require("./useStyle");
|
|
12
|
+
const ActivityIndicator = exports.ActivityIndicator = (0, _utils.copyComponentProperties)(_reactNative.ActivityIndicator, props => {
|
|
13
|
+
const style = (0, _useStyle.useStyle)(props.className);
|
|
14
|
+
const color = (0, _hooks.useUniwindAccent)(props.colorClassName);
|
|
15
|
+
return /* @__PURE__ */(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
16
|
+
...props,
|
|
17
|
+
style: [style, props.style],
|
|
18
|
+
color: props.color ?? color
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
module.exports = ActivityIndicator;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
module.exports = exports.Button = void 0;
|
|
7
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _hooks = require("../../hooks");
|
|
10
|
+
var _utils = require("../utils");
|
|
11
|
+
const Button = exports.Button = (0, _utils.copyComponentProperties)(_reactNative.Button, props => {
|
|
12
|
+
const color = (0, _hooks.useUniwindAccent)(props.colorClassName);
|
|
13
|
+
return /* @__PURE__ */(0, _jsxRuntime.jsx)(_reactNative.Button, {
|
|
14
|
+
...props,
|
|
15
|
+
color: props.color ?? color
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
module.exports = Button;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
module.exports = exports.FlatList = void 0;
|
|
7
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _hooks = require("../../hooks");
|
|
10
|
+
var _utils = require("../utils");
|
|
11
|
+
var _useStyle = require("./useStyle");
|
|
12
|
+
const FlatList = exports.FlatList = (0, _utils.copyComponentProperties)(_reactNative.FlatList, props => {
|
|
13
|
+
const style = (0, _useStyle.useStyle)(props.className);
|
|
14
|
+
const styleColumnWrapper = (0, _useStyle.useStyle)(props.columnWrapperClassName);
|
|
15
|
+
const styleContentContainer = (0, _useStyle.useStyle)(props.contentContainerClassName);
|
|
16
|
+
const styleListFooterComponent = (0, _useStyle.useStyle)(props.ListFooterComponentClassName);
|
|
17
|
+
const styleListHeaderComponent = (0, _useStyle.useStyle)(props.ListHeaderComponentClassName);
|
|
18
|
+
const endFillColor = (0, _hooks.useUniwindAccent)(props.endFillColorClassName);
|
|
19
|
+
const hasSingleColumn = !("numColumns" in props) || props.numColumns === 1;
|
|
20
|
+
return /* @__PURE__ */(0, _jsxRuntime.jsx)(_reactNative.FlatList, {
|
|
21
|
+
...props,
|
|
22
|
+
style: [style, props.style],
|
|
23
|
+
columnWrapperStyle: hasSingleColumn ? void 0 : [styleColumnWrapper, props.columnWrapperStyle],
|
|
24
|
+
contentContainerStyle: [styleContentContainer, props.contentContainerStyle],
|
|
25
|
+
ListFooterComponentStyle: [styleListFooterComponent, props.ListFooterComponentStyle],
|
|
26
|
+
ListHeaderComponentStyle: [styleListHeaderComponent, props.ListHeaderComponentStyle],
|
|
27
|
+
endFillColor: props.endFillColor ?? endFillColor
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
module.exports = FlatList;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
module.exports = exports.Image = void 0;
|
|
7
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _hooks = require("../../hooks");
|
|
10
|
+
var _utils = require("../utils");
|
|
11
|
+
var _useStyle = require("./useStyle");
|
|
12
|
+
const Image = exports.Image = (0, _utils.copyComponentProperties)(_reactNative.Image, props => {
|
|
13
|
+
const style = (0, _useStyle.useStyle)(props.className);
|
|
14
|
+
const tintColor = (0, _hooks.useUniwindAccent)(props.tintColorClassName);
|
|
15
|
+
return /* @__PURE__ */(0, _jsxRuntime.jsx)(_reactNative.Image, {
|
|
16
|
+
...props,
|
|
17
|
+
style: [style, props.style],
|
|
18
|
+
tintColor: props.tintColor ?? tintColor
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
module.exports = Image;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
module.exports = exports.ImageBackground = void 0;
|
|
7
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _hooks = require("../../hooks");
|
|
10
|
+
var _utils = require("../utils");
|
|
11
|
+
var _useStyle = require("./useStyle");
|
|
12
|
+
const ImageBackground = exports.ImageBackground = (0, _utils.copyComponentProperties)(_reactNative.ImageBackground, props => {
|
|
13
|
+
const style = (0, _useStyle.useStyle)(props.className);
|
|
14
|
+
const imageStyle = (0, _useStyle.useStyle)(props.imageClassName);
|
|
15
|
+
const tintColor = (0, _hooks.useUniwindAccent)(props.tintColorClassName);
|
|
16
|
+
return /* @__PURE__ */(0, _jsxRuntime.jsx)(_reactNative.ImageBackground, {
|
|
17
|
+
...props,
|
|
18
|
+
style: [style, props.style],
|
|
19
|
+
imageStyle: [imageStyle, props.imageStyle],
|
|
20
|
+
tintColor: props.tintColor ?? tintColor
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
module.exports = ImageBackground;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
module.exports = exports.InputAccessoryView = void 0;
|
|
7
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _hooks = require("../../hooks");
|
|
10
|
+
var _utils = require("../utils");
|
|
11
|
+
var _useStyle = require("./useStyle");
|
|
12
|
+
const InputAccessoryView = exports.InputAccessoryView = (0, _utils.copyComponentProperties)(_reactNative.InputAccessoryView, props => {
|
|
13
|
+
const style = (0, _useStyle.useStyle)(props.className);
|
|
14
|
+
const backgroundColor = (0, _hooks.useUniwindAccent)(props.backgroundColorClassName);
|
|
15
|
+
return /* @__PURE__ */(0, _jsxRuntime.jsx)(_reactNative.InputAccessoryView, {
|
|
16
|
+
...props,
|
|
17
|
+
backgroundColor: props.backgroundColor ?? backgroundColor,
|
|
18
|
+
style: [style, props.style]
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
module.exports = InputAccessoryView;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
module.exports = exports.KeyboardAvoidingView = void 0;
|
|
7
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _utils = require("../utils");
|
|
10
|
+
var _useStyle = require("./useStyle");
|
|
11
|
+
const KeyboardAvoidingView = exports.KeyboardAvoidingView = (0, _utils.copyComponentProperties)(_reactNative.KeyboardAvoidingView, props => {
|
|
12
|
+
const style = (0, _useStyle.useStyle)(props.className);
|
|
13
|
+
const contentContainerStyle = (0, _useStyle.useStyle)(props.contentContainerClassName);
|
|
14
|
+
return /* @__PURE__ */(0, _jsxRuntime.jsx)(_reactNative.KeyboardAvoidingView, {
|
|
15
|
+
...props,
|
|
16
|
+
style: [style, props.style],
|
|
17
|
+
contentContainerStyle: [contentContainerStyle, props.contentContainerStyle]
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
module.exports = KeyboardAvoidingView;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
module.exports = exports.Modal = void 0;
|
|
7
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _hooks = require("../../hooks");
|
|
10
|
+
var _utils = require("../utils");
|
|
11
|
+
var _useStyle = require("./useStyle");
|
|
12
|
+
const Modal = exports.Modal = (0, _utils.copyComponentProperties)(_reactNative.Modal, props => {
|
|
13
|
+
const style = (0, _useStyle.useStyle)(props.className);
|
|
14
|
+
const backdropColor = (0, _hooks.useUniwindAccent)(props.backdropColorClassName);
|
|
15
|
+
return /* @__PURE__ */(0, _jsxRuntime.jsx)(_reactNative.Modal, {
|
|
16
|
+
...props,
|
|
17
|
+
style: [style, props.style],
|
|
18
|
+
backdropColor: props.backdropColor ?? backdropColor
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
module.exports = Modal;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
module.exports = exports.Pressable = void 0;
|
|
7
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _native = require("../../core/native");
|
|
10
|
+
var _utils = require("../utils");
|
|
11
|
+
var _useStyle = require("./useStyle");
|
|
12
|
+
const Pressable = exports.Pressable = (0, _utils.copyComponentProperties)(_reactNative.Pressable, props => {
|
|
13
|
+
const style = (0, _useStyle.useStyle)(props.className, {
|
|
14
|
+
isDisabled: Boolean(props.disabled)
|
|
15
|
+
});
|
|
16
|
+
return /* @__PURE__ */(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
17
|
+
...props,
|
|
18
|
+
style: state => {
|
|
19
|
+
if (state.pressed) {
|
|
20
|
+
return [_native.UniwindStore.getStyles(props.className, {
|
|
21
|
+
isDisabled: Boolean(props.disabled),
|
|
22
|
+
isPressed: true
|
|
23
|
+
}).styles, typeof props.style === "function" ? props.style(state) : props.style];
|
|
24
|
+
}
|
|
25
|
+
return [style, typeof props.style === "function" ? props.style(state) : props.style];
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
module.exports = Pressable;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
module.exports = exports.RefreshControl = void 0;
|
|
7
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _hooks = require("../../hooks");
|
|
10
|
+
var _utils = require("../utils");
|
|
11
|
+
var _useStyle = require("./useStyle");
|
|
12
|
+
const RefreshControl = exports.RefreshControl = (0, _utils.copyComponentProperties)(_reactNative.RefreshControl, props => {
|
|
13
|
+
const style = (0, _useStyle.useStyle)(props.className);
|
|
14
|
+
const color = (0, _hooks.useUniwindAccent)(props.colorsClassName);
|
|
15
|
+
const tintColor = (0, _hooks.useUniwindAccent)(props.tintColorClassName);
|
|
16
|
+
const titleColor = (0, _hooks.useUniwindAccent)(props.titleColorClassName);
|
|
17
|
+
const progressBackgroundColor = (0, _hooks.useUniwindAccent)(props.progressBackgroundColorClassName);
|
|
18
|
+
return /* @__PURE__ */(0, _jsxRuntime.jsx)(_reactNative.RefreshControl, {
|
|
19
|
+
...props,
|
|
20
|
+
style: [style, props.style],
|
|
21
|
+
colors: props.colors ?? (color !== void 0 ? [color] : void 0),
|
|
22
|
+
tintColor: props.tintColor ?? tintColor,
|
|
23
|
+
titleColor: props.titleColor ?? titleColor,
|
|
24
|
+
progressBackgroundColor: props.progressBackgroundColor ?? progressBackgroundColor
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
module.exports = RefreshControl;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
module.exports = exports.SafeAreaView = void 0;
|
|
7
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _utils = require("../utils");
|
|
10
|
+
var _useStyle = require("./useStyle");
|
|
11
|
+
const SafeAreaView = exports.SafeAreaView = (0, _utils.copyComponentProperties)(_reactNative.SafeAreaView, props => {
|
|
12
|
+
const style = (0, _useStyle.useStyle)(props.className);
|
|
13
|
+
return /* @__PURE__ */(0, _jsxRuntime.jsx)(_reactNative.SafeAreaView, {
|
|
14
|
+
...props,
|
|
15
|
+
style: [style, props.style]
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
module.exports = SafeAreaView;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
module.exports = exports.ScrollView = void 0;
|
|
7
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _hooks = require("../../hooks");
|
|
10
|
+
var _utils = require("../utils");
|
|
11
|
+
var _useStyle = require("./useStyle");
|
|
12
|
+
const ScrollView = exports.ScrollView = (0, _utils.copyComponentProperties)(_reactNative.ScrollView, props => {
|
|
13
|
+
const style = (0, _useStyle.useStyle)(props.className);
|
|
14
|
+
const contentContainerStyle = (0, _useStyle.useStyle)(props.contentContainerClassName);
|
|
15
|
+
const endFillColor = (0, _hooks.useUniwindAccent)(props.endFillColorClassName);
|
|
16
|
+
return /* @__PURE__ */(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
|
|
17
|
+
...props,
|
|
18
|
+
style: [style, props.style],
|
|
19
|
+
contentContainerStyle: [contentContainerStyle, props.contentContainerStyle],
|
|
20
|
+
endFillColor: props.endFillColor ?? endFillColor
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
module.exports = ScrollView;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
module.exports = exports.SectionList = void 0;
|
|
7
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _hooks = require("../../hooks");
|
|
10
|
+
var _utils = require("../utils");
|
|
11
|
+
var _useStyle = require("./useStyle");
|
|
12
|
+
const SectionList = exports.SectionList = (0, _utils.copyComponentProperties)(_reactNative.SectionList, props => {
|
|
13
|
+
const style = (0, _useStyle.useStyle)(props.className);
|
|
14
|
+
const contentContainerStyle = (0, _useStyle.useStyle)(props.contentContainerClassName);
|
|
15
|
+
const listFooterComponentStyle = (0, _useStyle.useStyle)(props.ListFooterComponentClassName);
|
|
16
|
+
const listHeaderComponentStyle = (0, _useStyle.useStyle)(props.ListHeaderComponentClassName);
|
|
17
|
+
const endFillColor = (0, _hooks.useUniwindAccent)(props.endFillColorClassName);
|
|
18
|
+
return /* @__PURE__ */(0, _jsxRuntime.jsx)(_reactNative.SectionList, {
|
|
19
|
+
...props,
|
|
20
|
+
style: [style, props.style],
|
|
21
|
+
contentContainerStyle: [contentContainerStyle, props.contentContainerStyle],
|
|
22
|
+
ListFooterComponentStyle: [listFooterComponentStyle, props.ListFooterComponentStyle],
|
|
23
|
+
ListHeaderComponentStyle: [listHeaderComponentStyle, props.ListHeaderComponentStyle],
|
|
24
|
+
endFillColor: props.endFillColor ?? endFillColor
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
module.exports = SectionList;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
module.exports = exports.Switch = void 0;
|
|
7
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _useUniwindAccent = require("../../hooks/useUniwindAccent.native");
|
|
10
|
+
var _utils = require("../utils");
|
|
11
|
+
var _useStyle = require("./useStyle");
|
|
12
|
+
const Switch = exports.Switch = (0, _utils.copyComponentProperties)(_reactNative.Switch, props => {
|
|
13
|
+
const state = {
|
|
14
|
+
isDisabled: Boolean(props.disabled)
|
|
15
|
+
};
|
|
16
|
+
const style = (0, _useStyle.useStyle)(props.className, state);
|
|
17
|
+
const trackColorOn = (0, _useUniwindAccent.useUniwindAccent)(props.trackColorOnClassName, state);
|
|
18
|
+
const trackColorOff = (0, _useUniwindAccent.useUniwindAccent)(props.trackColorOffClassName, state);
|
|
19
|
+
const thumbColor = (0, _useUniwindAccent.useUniwindAccent)(props.thumbColorClassName, state);
|
|
20
|
+
const ios_backgroundColor = (0, _useUniwindAccent.useUniwindAccent)(props.ios_backgroundColorClassName, state);
|
|
21
|
+
return /* @__PURE__ */(0, _jsxRuntime.jsx)(_reactNative.Switch, {
|
|
22
|
+
...props,
|
|
23
|
+
style: [style, props.style],
|
|
24
|
+
thumbColor: props.thumbColor ?? thumbColor,
|
|
25
|
+
trackColor: {
|
|
26
|
+
true: props.trackColor?.true ?? trackColorOn,
|
|
27
|
+
false: props.trackColor?.false ?? trackColorOff
|
|
28
|
+
},
|
|
29
|
+
ios_backgroundColor: props.ios_backgroundColor ?? ios_backgroundColor
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
module.exports = Switch;
|