react-native-css 0.0.0-nightly.99fdf44 → 0.0.0-nightly.a37903f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -5
- package/dist/commonjs/babel/helpers.js +7 -0
- package/dist/commonjs/babel/helpers.js.map +1 -1
- package/dist/commonjs/babel/import-plugin.js +20 -8
- package/dist/commonjs/babel/import-plugin.js.map +1 -1
- package/dist/commonjs/babel/react-native-web.js +17 -4
- package/dist/commonjs/babel/react-native-web.js.map +1 -1
- package/dist/commonjs/babel/react-native.js +9 -4
- package/dist/commonjs/babel/react-native.js.map +1 -1
- package/dist/commonjs/compiler/atRules.js +52 -17
- package/dist/commonjs/compiler/atRules.js.map +1 -1
- package/dist/commonjs/compiler/compiler.js +107 -32
- package/dist/commonjs/compiler/compiler.js.map +1 -1
- package/dist/commonjs/compiler/container-query.js +6 -1
- package/dist/commonjs/compiler/container-query.js.map +1 -1
- package/dist/commonjs/compiler/declarations.js +159 -67
- package/dist/commonjs/compiler/declarations.js.map +1 -1
- package/dist/commonjs/compiler/keyframes.js +1 -1
- package/dist/commonjs/compiler/keyframes.js.map +1 -1
- package/dist/commonjs/compiler/lightningcss-loader.js +15 -2
- package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -1
- package/dist/commonjs/compiler/media-query.js +16 -6
- package/dist/commonjs/compiler/media-query.js.map +1 -1
- package/dist/commonjs/compiler/selector-builder.js +15 -4
- package/dist/commonjs/compiler/selector-builder.js.map +1 -1
- package/dist/commonjs/compiler/stylesheet.js +18 -8
- package/dist/commonjs/compiler/stylesheet.js.map +1 -1
- package/dist/commonjs/compiler/supports.js +2 -2
- package/dist/commonjs/compiler/supports.js.map +1 -1
- package/dist/commonjs/components/ActivityIndicator.js +6 -6
- package/dist/commonjs/components/ActivityIndicator.js.map +1 -1
- package/dist/commonjs/components/Button.js +6 -6
- package/dist/commonjs/components/Button.js.map +1 -1
- package/dist/commonjs/components/FlatList.js +7 -6
- package/dist/commonjs/components/FlatList.js.map +1 -1
- package/dist/commonjs/components/Image.js +6 -6
- package/dist/commonjs/components/Image.js.map +1 -1
- package/dist/commonjs/components/ImageBackground.js +8 -12
- package/dist/commonjs/components/ImageBackground.js.map +1 -1
- package/dist/commonjs/components/KeyboardAvoidingView.js +8 -9
- package/dist/commonjs/components/KeyboardAvoidingView.js.map +1 -1
- package/dist/commonjs/components/Pressable.js +6 -6
- package/dist/commonjs/components/Pressable.js.map +1 -1
- package/dist/commonjs/components/SafeAreaProvider.js +13 -0
- package/dist/commonjs/components/SafeAreaProvider.js.map +1 -0
- package/dist/commonjs/components/ScrollView.js +6 -6
- package/dist/commonjs/components/ScrollView.js.map +1 -1
- package/dist/commonjs/components/Switch.js +6 -6
- package/dist/commonjs/components/Switch.js.map +1 -1
- package/dist/commonjs/components/Text.js +6 -6
- package/dist/commonjs/components/Text.js.map +1 -1
- package/dist/commonjs/components/TextInput.js +6 -6
- package/dist/commonjs/components/TextInput.js.map +1 -1
- package/dist/commonjs/components/TouchableHighlight.js +6 -6
- package/dist/commonjs/components/TouchableHighlight.js.map +1 -1
- package/dist/commonjs/components/TouchableOpacity.js +6 -6
- package/dist/commonjs/components/TouchableOpacity.js.map +1 -1
- package/dist/commonjs/components/TouchableWithoutFeedback.js +6 -6
- package/dist/commonjs/components/TouchableWithoutFeedback.js.map +1 -1
- package/dist/commonjs/components/View.js +6 -6
- package/dist/commonjs/components/View.js.map +1 -1
- package/dist/commonjs/components/VirtualizedList.js +6 -6
- package/dist/commonjs/components/VirtualizedList.js.map +1 -1
- package/dist/commonjs/components/copyComponentProperties.js +19 -0
- package/dist/commonjs/components/copyComponentProperties.js.map +1 -0
- package/dist/commonjs/components/index.cjs +310 -0
- package/dist/commonjs/components/index.cjs.map +1 -0
- package/dist/commonjs/components/index.js.map +1 -1
- package/dist/commonjs/jest/index.js +2 -2
- package/dist/commonjs/jest/index.js.map +1 -1
- package/dist/commonjs/metro/cache-version.js +43 -0
- package/dist/commonjs/metro/cache-version.js.map +1 -0
- package/dist/commonjs/metro/index.js +10 -118
- package/dist/commonjs/metro/index.js.map +1 -1
- package/dist/commonjs/metro/metro-transformer.js +24 -4
- package/dist/commonjs/metro/metro-transformer.js.map +1 -1
- package/dist/commonjs/{native/metro.js → metro/override.js} +1 -1
- package/dist/commonjs/{native/metro.js.map → metro/override.js.map} +1 -1
- package/dist/commonjs/metro/resolver.js +15 -22
- package/dist/commonjs/metro/resolver.js.map +1 -1
- package/dist/commonjs/metro/typescript.js +26 -6
- package/dist/commonjs/metro/typescript.js.map +1 -1
- package/dist/commonjs/metro/warnings.js +135 -0
- package/dist/commonjs/metro/warnings.js.map +1 -0
- package/dist/commonjs/native/api.js +18 -10
- package/dist/commonjs/native/api.js.map +1 -1
- package/dist/commonjs/native/conditions/attributes.js +16 -9
- package/dist/commonjs/native/conditions/attributes.js.map +1 -1
- package/dist/commonjs/native/conditions/container-query.js +11 -11
- package/dist/commonjs/native/conditions/container-query.js.map +1 -1
- package/dist/commonjs/native/conditions/media-query.js +1 -1
- package/dist/commonjs/native/conditions/media-query.js.map +1 -1
- package/dist/commonjs/native/index.js +8 -8
- package/dist/commonjs/native/index.js.map +1 -1
- package/dist/commonjs/native/react/interaction.js +10 -5
- package/dist/commonjs/native/react/interaction.js.map +1 -1
- package/dist/commonjs/native/react/rules.js +12 -5
- package/dist/commonjs/native/react/rules.js.map +1 -1
- package/dist/commonjs/native/react/useNativeCss.js +70 -15
- package/dist/commonjs/native/react/useNativeCss.js.map +1 -1
- package/dist/commonjs/native/react/usePassthrough.js +5 -2
- package/dist/commonjs/native/react/usePassthrough.js.map +1 -1
- package/dist/commonjs/{poison.pill.js → native/react-native-css-metro-override.js} +1 -1
- package/dist/commonjs/native/react-native-css-metro-override.js.map +1 -0
- package/dist/commonjs/native/reactivity.js +61 -24
- package/dist/commonjs/native/reactivity.js.map +1 -1
- package/dist/commonjs/native/reanimated.js +15 -3
- package/dist/commonjs/native/reanimated.js.map +1 -1
- package/dist/commonjs/native/styles/calculate-props.js +1 -1
- package/dist/commonjs/native/styles/functions/color-mix.js +64 -0
- package/dist/commonjs/native/styles/functions/color-mix.js.map +1 -0
- package/dist/commonjs/native/styles/functions/filters.js +18 -5
- package/dist/commonjs/native/styles/functions/filters.js.map +1 -1
- package/dist/commonjs/native/styles/functions/index.js +11 -0
- package/dist/commonjs/native/styles/functions/index.js.map +1 -1
- package/dist/commonjs/native/styles/functions/numeric-functions.js +4 -3
- package/dist/commonjs/native/styles/functions/numeric-functions.js.map +1 -1
- package/dist/commonjs/native/styles/functions/string-functions.js +16 -1
- package/dist/commonjs/native/styles/functions/string-functions.js.map +1 -1
- package/dist/commonjs/native/styles/functions/transform-functions.js +5 -4
- package/dist/commonjs/native/styles/functions/transform-functions.js.map +1 -1
- package/dist/commonjs/native/styles/index.js +382 -28
- package/dist/commonjs/native/styles/index.js.map +1 -1
- package/dist/commonjs/native/styles/resolve.js +10 -7
- package/dist/commonjs/native/styles/resolve.js.map +1 -1
- package/dist/commonjs/native/styles/scale-factor.js +13 -0
- package/dist/commonjs/native/styles/scale-factor.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/_handler.js +10 -0
- package/dist/commonjs/native/styles/shorthands/_handler.js.map +1 -1
- package/dist/commonjs/native/styles/shorthands/animation.js +11 -4
- package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -1
- package/dist/commonjs/native/styles/shorthands/box-shadow.js +45 -12
- package/dist/commonjs/native/styles/shorthands/box-shadow.js.map +1 -1
- package/dist/commonjs/native/styles/shorthands/index.js +11 -0
- package/dist/commonjs/native/styles/shorthands/index.js.map +1 -1
- package/dist/commonjs/native/styles/shorthands/logical-border-width.js +22 -0
- package/dist/commonjs/native/styles/shorthands/logical-border-width.js.map +1 -0
- package/dist/commonjs/native/styles/variables.js +55 -43
- package/dist/commonjs/native/styles/variables.js.map +1 -1
- package/dist/commonjs/native-internal/root.js +18 -7
- package/dist/commonjs/native-internal/root.js.map +1 -1
- package/dist/commonjs/native-internal/style-collection.js +1 -1
- package/dist/commonjs/native-internal/style-collection.js.map +1 -1
- package/dist/commonjs/native-internal/variables.js +1 -1
- package/dist/commonjs/native-internal/variables.js.map +1 -1
- package/dist/commonjs/utilities/dot-notation.types.js +4 -0
- package/dist/commonjs/utilities/style-descriptor.js +4 -9
- package/dist/commonjs/utilities/style-descriptor.js.map +1 -1
- package/dist/commonjs/web/api.js +7 -4
- package/dist/commonjs/web/api.js.map +1 -1
- package/dist/commonjs/web/assign-style.js +4 -1
- package/dist/commonjs/web/assign-style.js.map +1 -1
- package/dist/module/babel/helpers.js +6 -0
- package/dist/module/babel/helpers.js.map +1 -1
- package/dist/module/babel/import-plugin.js +22 -10
- package/dist/module/babel/import-plugin.js.map +1 -1
- package/dist/module/babel/react-native-web.js +16 -4
- package/dist/module/babel/react-native-web.js.map +1 -1
- package/dist/module/babel/react-native.js +9 -4
- package/dist/module/babel/react-native.js.map +1 -1
- package/dist/module/compiler/atRules.js +50 -17
- package/dist/module/compiler/atRules.js.map +1 -1
- package/dist/module/compiler/compiler.js +109 -34
- package/dist/module/compiler/compiler.js.map +1 -1
- package/dist/module/compiler/compiler.types.js +2 -0
- package/dist/module/compiler/compiler.types.js.map +1 -1
- package/dist/module/compiler/container-query.js +6 -1
- package/dist/module/compiler/container-query.js.map +1 -1
- package/dist/module/compiler/declarations.js +158 -67
- package/dist/module/compiler/declarations.js.map +1 -1
- package/dist/module/compiler/keyframes.js +1 -1
- package/dist/module/compiler/keyframes.js.map +1 -1
- package/dist/module/compiler/lightningcss-loader.js +14 -2
- package/dist/module/compiler/lightningcss-loader.js.map +1 -1
- package/dist/module/compiler/media-query.js +16 -6
- package/dist/module/compiler/media-query.js.map +1 -1
- package/dist/module/compiler/selector-builder.js +15 -4
- package/dist/module/compiler/selector-builder.js.map +1 -1
- package/dist/module/compiler/stylesheet.js +18 -8
- package/dist/module/compiler/stylesheet.js.map +1 -1
- package/dist/module/compiler/supports.js +2 -2
- package/dist/module/compiler/supports.js.map +1 -1
- package/dist/module/components/ActivityIndicator.js +4 -3
- package/dist/module/components/ActivityIndicator.js.map +1 -1
- package/dist/module/components/Button.js +4 -3
- package/dist/module/components/Button.js.map +1 -1
- package/dist/module/components/FlatList.js +5 -3
- package/dist/module/components/FlatList.js.map +1 -1
- package/dist/module/components/Image.js +4 -3
- package/dist/module/components/Image.js.map +1 -1
- package/dist/module/components/ImageBackground.js +6 -9
- package/dist/module/components/ImageBackground.js.map +1 -1
- package/dist/module/components/KeyboardAvoidingView.js +6 -6
- package/dist/module/components/KeyboardAvoidingView.js.map +1 -1
- package/dist/module/components/Pressable.js +4 -3
- package/dist/module/components/Pressable.js.map +1 -1
- package/dist/module/components/SafeAreaProvider.js +4 -0
- package/dist/module/components/SafeAreaProvider.js.map +1 -0
- package/dist/module/components/ScrollView.js +4 -3
- package/dist/module/components/ScrollView.js.map +1 -1
- package/dist/module/components/Switch.js +4 -3
- package/dist/module/components/Switch.js.map +1 -1
- package/dist/module/components/Text.js +4 -3
- package/dist/module/components/Text.js.map +1 -1
- package/dist/module/components/TextInput.js +4 -3
- package/dist/module/components/TextInput.js.map +1 -1
- package/dist/module/components/TouchableHighlight.js +4 -3
- package/dist/module/components/TouchableHighlight.js.map +1 -1
- package/dist/module/components/TouchableOpacity.js +4 -3
- package/dist/module/components/TouchableOpacity.js.map +1 -1
- package/dist/module/components/TouchableWithoutFeedback.js +4 -3
- package/dist/module/components/TouchableWithoutFeedback.js.map +1 -1
- package/dist/module/components/View.js +4 -3
- package/dist/module/components/View.js.map +1 -1
- package/dist/module/components/VirtualizedList.js +4 -3
- package/dist/module/components/VirtualizedList.js.map +1 -1
- package/dist/module/components/copyComponentProperties.js +15 -0
- package/dist/module/components/copyComponentProperties.js.map +1 -0
- package/dist/module/components/index.cjs +310 -0
- package/dist/module/components/index.cjs.map +1 -0
- package/dist/module/components/index.js.map +1 -1
- package/dist/module/jest/index.js +2 -2
- package/dist/module/jest/index.js.map +1 -1
- package/dist/module/metro/cache-version.js +39 -0
- package/dist/module/metro/cache-version.js.map +1 -0
- package/dist/module/metro/index.js +10 -117
- package/dist/module/metro/index.js.map +1 -1
- package/dist/module/metro/metro-transformer.js +24 -4
- package/dist/module/metro/metro-transformer.js.map +1 -1
- package/dist/module/metro/override.js +4 -0
- package/dist/module/{native/metro.js.map → metro/override.js.map} +1 -1
- package/dist/module/metro/resolver.js +15 -22
- package/dist/module/metro/resolver.js.map +1 -1
- package/dist/module/metro/typescript.js +26 -6
- package/dist/module/metro/typescript.js.map +1 -1
- package/dist/module/metro/warnings.js +131 -0
- package/dist/module/metro/warnings.js.map +1 -0
- package/dist/module/native/api.js +19 -12
- package/dist/module/native/api.js.map +1 -1
- package/dist/module/native/conditions/attributes.js +16 -9
- package/dist/module/native/conditions/attributes.js.map +1 -1
- package/dist/module/native/conditions/container-query.js +11 -11
- package/dist/module/native/conditions/container-query.js.map +1 -1
- package/dist/module/native/conditions/media-query.js +1 -1
- package/dist/module/native/conditions/media-query.js.map +1 -1
- package/dist/module/native/index.js +1 -1
- package/dist/module/native/index.js.map +1 -1
- package/dist/module/native/react/interaction.js +10 -5
- package/dist/module/native/react/interaction.js.map +1 -1
- package/dist/module/native/react/rules.js +13 -6
- package/dist/module/native/react/rules.js.map +1 -1
- package/dist/module/native/react/useNativeCss.js +73 -18
- package/dist/module/native/react/useNativeCss.js.map +1 -1
- package/dist/module/native/react/usePassthrough.js +5 -2
- package/dist/module/native/react/usePassthrough.js.map +1 -1
- package/dist/module/{poison.pill.js → native/react-native-css-metro-override.js} +1 -1
- package/dist/module/native/react-native-css-metro-override.js.map +1 -0
- package/dist/module/native/reactivity.js +55 -22
- package/dist/module/native/reactivity.js.map +1 -1
- package/dist/module/native/reanimated.js +15 -3
- package/dist/module/native/reanimated.js.map +1 -1
- package/dist/module/native/styles/calculate-props.js +1 -1
- package/dist/module/native/styles/functions/color-mix.js +59 -0
- package/dist/module/native/styles/functions/color-mix.js.map +1 -0
- package/dist/module/native/styles/functions/filters.js +16 -4
- package/dist/module/native/styles/functions/filters.js.map +1 -1
- package/dist/module/native/styles/functions/index.js +1 -0
- package/dist/module/native/styles/functions/index.js.map +1 -1
- package/dist/module/native/styles/functions/numeric-functions.js +4 -3
- package/dist/module/native/styles/functions/numeric-functions.js.map +1 -1
- package/dist/module/native/styles/functions/string-functions.js +13 -0
- package/dist/module/native/styles/functions/string-functions.js.map +1 -1
- package/dist/module/native/styles/functions/transform-functions.js +5 -4
- package/dist/module/native/styles/functions/transform-functions.js.map +1 -1
- package/dist/module/native/styles/index.js +383 -28
- package/dist/module/native/styles/index.js.map +1 -1
- package/dist/module/native/styles/resolve.js +10 -7
- package/dist/module/native/styles/resolve.js.map +1 -1
- package/dist/module/native/styles/scale-factor.js +9 -0
- package/dist/module/native/styles/scale-factor.js.map +1 -0
- package/dist/module/native/styles/shorthands/_handler.js +11 -1
- package/dist/module/native/styles/shorthands/_handler.js.map +1 -1
- package/dist/module/native/styles/shorthands/animation.js +9 -3
- package/dist/module/native/styles/shorthands/animation.js.map +1 -1
- package/dist/module/native/styles/shorthands/box-shadow.js +46 -12
- package/dist/module/native/styles/shorthands/box-shadow.js.map +1 -1
- package/dist/module/native/styles/shorthands/index.js +1 -0
- package/dist/module/native/styles/shorthands/index.js.map +1 -1
- package/dist/module/native/styles/shorthands/logical-border-width.js +18 -0
- package/dist/module/native/styles/shorthands/logical-border-width.js.map +1 -0
- package/dist/module/native/styles/variables.js +55 -43
- package/dist/module/native/styles/variables.js.map +1 -1
- package/dist/module/native-internal/root.js +18 -7
- package/dist/module/native-internal/root.js.map +1 -1
- package/dist/module/native-internal/style-collection.js +1 -1
- package/dist/module/native-internal/style-collection.js.map +1 -1
- package/dist/module/native-internal/variables.js +2 -2
- package/dist/module/native-internal/variables.js.map +1 -1
- package/dist/module/utilities/dot-notation.types.js +2 -0
- package/dist/module/utilities/style-descriptor.js +4 -9
- package/dist/module/utilities/style-descriptor.js.map +1 -1
- package/dist/module/web/api.js +7 -4
- package/dist/module/web/api.js.map +1 -1
- package/dist/module/web/assign-style.js +4 -1
- package/dist/module/web/assign-style.js.map +1 -1
- package/dist/typescript/commonjs/src/babel/helpers.d.ts +2 -1
- package/dist/typescript/commonjs/src/babel/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/babel/import-plugin.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/babel/react-native-web.d.ts +2 -1
- package/dist/typescript/commonjs/src/babel/react-native-web.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/babel/react-native.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/atRules.d.ts +4 -1
- package/dist/typescript/commonjs/src/compiler/atRules.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/compiler.d.ts +1 -5
- package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +6 -0
- package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts +2 -1
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +1 -1
- package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/media-query.d.ts +1 -1
- package/dist/typescript/commonjs/src/compiler/media-query.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +7 -8
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Button.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/FlatList.d.ts +3 -3
- package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Image.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Pressable.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/SafeAreaProvider.d.ts +2 -0
- package/dist/typescript/commonjs/src/components/SafeAreaProvider.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/ScrollView.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Switch.d.ts +2 -6
- package/dist/typescript/commonjs/src/components/Switch.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Text.d.ts +2 -6
- package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/TextInput.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/View.d.ts +2 -6
- package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts +3 -3
- package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts +5 -0
- package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/index.d.cts +2 -0
- package/dist/typescript/commonjs/src/components/index.d.cts.map +1 -0
- package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts +1 -1
- package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/jest/index.d.ts +2 -10
- package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/cache-version.d.ts +8 -0
- package/dist/typescript/commonjs/src/metro/cache-version.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/index.d.ts +4 -0
- package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts +9 -4
- package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/override.d.ts +2 -0
- package/dist/typescript/commonjs/src/metro/override.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/typescript.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/warnings.d.ts +13 -0
- package/dist/typescript/commonjs/src/metro/warnings.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/api.d.ts +5 -9
- package/dist/typescript/commonjs/src/native/api.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/index.d.ts +1 -1
- package/dist/typescript/commonjs/src/native/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/react/interaction.d.ts +1 -1
- package/dist/typescript/commonjs/src/native/react/interaction.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/react/rules.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts +1 -1
- package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/react/usePassthrough.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts +2 -0
- package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/reactivity.d.ts +14 -3
- package/dist/typescript/commonjs/src/native/reactivity.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/reanimated.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts +3 -0
- package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts +2 -0
- package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/functions/numeric-functions.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts +2 -0
- package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/functions/transform-functions.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/index.d.ts +2 -2
- package/dist/typescript/commonjs/src/native/styles/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/resolve.d.ts +1 -0
- package/dist/typescript/commonjs/src/native/styles/resolve.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/scale-factor.d.ts +2 -0
- package/dist/typescript/commonjs/src/native/styles/scale-factor.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/_handler.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/shorthands/box-shadow.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/shorthands/logical-border-width.d.ts +4 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/logical-border-width.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/variables.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native-internal/root.d.ts +12 -0
- package/dist/typescript/commonjs/src/native-internal/root.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native-internal/variables.d.ts +1 -1
- package/dist/typescript/commonjs/src/native-internal/variables.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime.types.d.ts +11 -6
- package/dist/typescript/commonjs/src/runtime.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts +3 -2
- package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts +1 -1
- package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/web/api.d.ts +5 -5
- package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/web/assign-style.d.ts.map +1 -1
- package/dist/typescript/module/src/babel/helpers.d.ts +2 -1
- package/dist/typescript/module/src/babel/helpers.d.ts.map +1 -1
- package/dist/typescript/module/src/babel/import-plugin.d.ts +1 -1
- package/dist/typescript/module/src/babel/import-plugin.d.ts.map +1 -1
- package/dist/typescript/module/src/babel/react-native-web.d.ts +2 -1
- package/dist/typescript/module/src/babel/react-native-web.d.ts.map +1 -1
- package/dist/typescript/module/src/babel/react-native.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/atRules.d.ts +6 -3
- package/dist/typescript/module/src/compiler/atRules.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/compiler.d.ts +3 -7
- package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/compiler.types.d.ts +7 -1
- package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/container-query.d.ts +2 -2
- package/dist/typescript/module/src/compiler/container-query.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/declarations.d.ts +4 -3
- package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/index.d.ts +2 -2
- package/dist/typescript/module/src/compiler/index.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/inline-variables.d.ts +1 -1
- package/dist/typescript/module/src/compiler/inline-variables.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/keyframes.d.ts +3 -3
- package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/media-query.d.ts +3 -3
- package/dist/typescript/module/src/compiler/media-query.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/pseudo-elements.d.ts +1 -1
- package/dist/typescript/module/src/compiler/pseudo-elements.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/selector-builder.d.ts +1 -1
- package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/selectors.d.ts +2 -2
- package/dist/typescript/module/src/compiler/selectors.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/stylesheet.d.ts +7 -8
- package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts +2 -4
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Button.d.ts +2 -4
- package/dist/typescript/module/src/components/Button.d.ts.map +1 -1
- package/dist/typescript/module/src/components/FlatList.d.ts +3 -3
- package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Image.d.ts +2 -4
- package/dist/typescript/module/src/components/Image.d.ts.map +1 -1
- package/dist/typescript/module/src/components/ImageBackground.d.ts +2 -4
- package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -1
- package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +2 -4
- package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Pressable.d.ts +2 -4
- package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -1
- package/dist/typescript/module/src/components/SafeAreaProvider.d.ts +2 -0
- package/dist/typescript/module/src/components/SafeAreaProvider.d.ts.map +1 -0
- package/dist/typescript/module/src/components/ScrollView.d.ts +2 -4
- package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Switch.d.ts +2 -6
- package/dist/typescript/module/src/components/Switch.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Text.d.ts +2 -6
- package/dist/typescript/module/src/components/Text.d.ts.map +1 -1
- package/dist/typescript/module/src/components/TextInput.d.ts +2 -4
- package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -1
- package/dist/typescript/module/src/components/TouchableHighlight.d.ts +2 -4
- package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -1
- package/dist/typescript/module/src/components/TouchableOpacity.d.ts +2 -4
- package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -1
- package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +2 -4
- package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -1
- package/dist/typescript/module/src/components/View.d.ts +2 -6
- package/dist/typescript/module/src/components/View.d.ts.map +1 -1
- package/dist/typescript/module/src/components/VirtualizedList.d.ts +3 -3
- package/dist/typescript/module/src/components/VirtualizedList.d.ts.map +1 -1
- package/dist/typescript/module/src/components/copyComponentProperties.d.ts +5 -0
- package/dist/typescript/module/src/components/copyComponentProperties.d.ts.map +1 -0
- package/dist/typescript/module/src/components/index.d.cts +2 -0
- package/dist/typescript/module/src/components/index.d.cts.map +1 -0
- package/dist/typescript/module/src/components/index.d.ts +16 -16
- package/dist/typescript/module/src/components/index.d.ts.map +1 -1
- package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts +1 -1
- package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
- package/dist/typescript/module/src/jest/index.d.ts +2 -10
- package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/cache-version.d.ts +8 -0
- package/dist/typescript/module/src/metro/cache-version.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/index.d.ts +5 -1
- package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/metro-transformer.d.ts +10 -5
- package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/override.d.ts +2 -0
- package/dist/typescript/module/src/metro/override.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/typescript.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/warnings.d.ts +13 -0
- package/dist/typescript/module/src/metro/warnings.d.ts.map +1 -0
- package/dist/typescript/module/src/native/api.d.ts +6 -10
- package/dist/typescript/module/src/native/api.d.ts.map +1 -1
- package/dist/typescript/module/src/native/conditions/attributes.d.ts +1 -1
- package/dist/typescript/module/src/native/conditions/attributes.d.ts.map +1 -1
- package/dist/typescript/module/src/native/conditions/container-query.d.ts +2 -2
- package/dist/typescript/module/src/native/conditions/container-query.d.ts.map +1 -1
- package/dist/typescript/module/src/native/conditions/guards.d.ts +2 -2
- package/dist/typescript/module/src/native/conditions/guards.d.ts.map +1 -1
- package/dist/typescript/module/src/native/conditions/index.d.ts +3 -3
- package/dist/typescript/module/src/native/conditions/index.d.ts.map +1 -1
- package/dist/typescript/module/src/native/conditions/media-query.d.ts +1 -1
- package/dist/typescript/module/src/native/conditions/media-query.d.ts.map +1 -1
- package/dist/typescript/module/src/native/index.d.ts +3 -3
- package/dist/typescript/module/src/native/index.d.ts.map +1 -1
- package/dist/typescript/module/src/native/react/interaction.d.ts +2 -2
- package/dist/typescript/module/src/native/react/interaction.d.ts.map +1 -1
- package/dist/typescript/module/src/native/react/rules.d.ts +2 -2
- package/dist/typescript/module/src/native/react/rules.d.ts.map +1 -1
- package/dist/typescript/module/src/native/react/useNativeCss.d.ts +5 -5
- package/dist/typescript/module/src/native/react/useNativeCss.d.ts.map +1 -1
- package/dist/typescript/module/src/native/react/usePassthrough.d.ts +1 -1
- package/dist/typescript/module/src/native/react/usePassthrough.d.ts.map +1 -1
- package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts +2 -0
- package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts.map +1 -0
- package/dist/typescript/module/src/native/reactivity.d.ts +14 -3
- package/dist/typescript/module/src/native/reactivity.d.ts.map +1 -1
- package/dist/typescript/module/src/native/reanimated.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/calculate-props.d.ts +2 -2
- package/dist/typescript/module/src/native/styles/calculate-props.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/calc.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/functions/calc.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts +3 -0
- package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/filters.d.ts +3 -1
- package/dist/typescript/module/src/native/styles/functions/filters.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/index.d.ts +8 -7
- package/dist/typescript/module/src/native/styles/functions/index.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts +3 -1
- package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/index.d.ts +7 -7
- package/dist/typescript/module/src/native/styles/index.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/line-height.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/line-height.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/resolve.d.ts +4 -3
- package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/scale-factor.d.ts +2 -0
- package/dist/typescript/module/src/native/styles/scale-factor.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts +3 -2
- package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/border.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/border.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/index.d.ts +6 -5
- package/dist/typescript/module/src/native/styles/shorthands/index.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/logical-border-width.d.ts +4 -0
- package/dist/typescript/module/src/native/styles/shorthands/logical-border-width.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/units.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/units.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/variables.d.ts +2 -2
- package/dist/typescript/module/src/native/styles/variables.d.ts.map +1 -1
- package/dist/typescript/module/src/native-internal/index.d.ts +3 -3
- package/dist/typescript/module/src/native-internal/index.d.ts.map +1 -1
- package/dist/typescript/module/src/native-internal/root.d.ts +13 -1
- package/dist/typescript/module/src/native-internal/root.d.ts.map +1 -1
- package/dist/typescript/module/src/native-internal/style-collection.d.ts +2 -2
- package/dist/typescript/module/src/native-internal/style-collection.d.ts.map +1 -1
- package/dist/typescript/module/src/native-internal/variables.d.ts +2 -2
- package/dist/typescript/module/src/native-internal/variables.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime.d.ts +1 -1
- package/dist/typescript/module/src/runtime.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime.native.d.ts +1 -1
- package/dist/typescript/module/src/runtime.native.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime.types.d.ts +11 -6
- package/dist/typescript/module/src/runtime.types.d.ts.map +1 -1
- package/dist/typescript/module/src/utilities/dot-notation.types.d.ts +3 -2
- package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -1
- package/dist/typescript/module/src/utilities/index.d.ts +3 -3
- package/dist/typescript/module/src/utilities/index.d.ts.map +1 -1
- package/dist/typescript/module/src/utilities/specificity.d.ts +2 -2
- package/dist/typescript/module/src/utilities/specificity.d.ts.map +1 -1
- package/dist/typescript/module/src/utilities/style-descriptor.d.ts +1 -1
- package/dist/typescript/module/src/utilities/style-descriptor.d.ts.map +1 -1
- package/dist/typescript/module/src/web/api.d.ts +5 -5
- package/dist/typescript/module/src/web/api.d.ts.map +1 -1
- package/dist/typescript/module/src/web/assign-style.d.ts.map +1 -1
- package/dist/typescript/module/src/web/index.d.ts +3 -3
- package/dist/typescript/module/src/web/index.d.ts.map +1 -1
- package/node/babel.mjs +4 -0
- package/node/compiler.mjs +2 -0
- package/node/metro.mjs +2 -0
- package/package.json +87 -39
- package/src/babel/helpers.ts +8 -1
- package/src/babel/import-plugin.ts +31 -16
- package/src/babel/react-native-web.ts +32 -4
- package/src/babel/react-native.ts +9 -4
- package/src/compiler/atRules.ts +63 -18
- package/src/compiler/compiler.ts +159 -43
- package/src/compiler/compiler.types.ts +9 -0
- package/src/compiler/container-query.ts +8 -3
- package/src/compiler/declarations.ts +290 -105
- package/src/compiler/keyframes.ts +2 -2
- package/src/compiler/lightningcss-loader.ts +21 -1
- package/src/compiler/media-query.ts +20 -9
- package/src/compiler/selector-builder.ts +31 -4
- package/src/compiler/stylesheet.ts +26 -15
- package/src/compiler/supports.ts +2 -2
- package/src/components/ActivityIndicator.tsx +9 -6
- package/src/components/Button.tsx +9 -4
- package/src/components/FlatList.tsx +15 -5
- package/src/components/Image.tsx +9 -4
- package/src/components/ImageBackground.tsx +11 -12
- package/src/components/KeyboardAvoidingView.tsx +11 -9
- package/src/components/Pressable.tsx +9 -4
- package/src/components/SafeAreaProvider.tsx +1 -0
- package/src/components/ScrollView.tsx +9 -6
- package/src/components/Switch.tsx +9 -4
- package/src/components/Text.tsx +9 -4
- package/src/components/TextInput.tsx +9 -4
- package/src/components/TouchableHighlight.tsx +9 -6
- package/src/components/TouchableOpacity.tsx +9 -6
- package/src/components/TouchableWithoutFeedback.tsx +9 -6
- package/src/components/View.tsx +9 -4
- package/src/components/VirtualizedList.tsx +18 -6
- package/src/components/copyComponentProperties.ts +21 -0
- package/src/components/index.cts +308 -0
- package/src/components/{index.tsx → index.ts} +0 -1
- package/src/jest/index.ts +3 -2
- package/src/metro/cache-version.ts +48 -0
- package/src/metro/index.ts +15 -166
- package/src/metro/metro-transformer.ts +41 -9
- package/src/metro/override.ts +1 -0
- package/src/metro/resolver.ts +29 -28
- package/src/metro/typescript.ts +53 -6
- package/src/metro/warnings.ts +187 -0
- package/src/native/api.tsx +26 -17
- package/src/native/conditions/attributes.ts +26 -9
- package/src/native/conditions/container-query.ts +11 -9
- package/src/native/conditions/media-query.ts +1 -1
- package/src/native/index.ts +1 -2
- package/src/native/react/interaction.ts +11 -6
- package/src/native/react/rules.ts +13 -5
- package/src/native/react/useNativeCss.ts +79 -17
- package/src/native/react/usePassthrough.ts +3 -2
- package/src/native/reactivity.ts +76 -24
- package/src/native/reanimated.ts +24 -5
- package/src/native/styles/calculate-props.ts +1 -1
- package/src/native/styles/functions/color-mix.ts +74 -0
- package/src/native/styles/functions/filters.ts +20 -6
- package/src/native/styles/functions/index.ts +1 -0
- package/src/native/styles/functions/numeric-functions.ts +7 -6
- package/src/native/styles/functions/string-functions.ts +18 -0
- package/src/native/styles/functions/transform-functions.ts +5 -4
- package/src/native/styles/index.ts +443 -36
- package/src/native/styles/resolve.ts +15 -12
- package/src/native/styles/scale-factor.ts +6 -0
- package/src/native/styles/shorthands/_handler.ts +14 -1
- package/src/native/styles/shorthands/animation.ts +17 -3
- package/src/native/styles/shorthands/box-shadow.ts +50 -15
- package/src/native/styles/shorthands/index.ts +1 -0
- package/src/native/styles/shorthands/logical-border-width.ts +32 -0
- package/src/native/styles/variables.ts +48 -38
- package/src/native-internal/root.ts +40 -13
- package/src/native-internal/style-collection.ts +1 -1
- package/src/native-internal/variables.tsx +6 -4
- package/src/runtime.types.ts +17 -15
- package/src/utilities/dot-notation.types.ts +12 -4
- package/src/utilities/style-descriptor.ts +11 -16
- package/src/web/api.tsx +13 -13
- package/src/web/assign-style.ts +2 -1
- package/types.d.ts +3 -20
- package/dist/commonjs/compiler/inheritance.test.js +0 -78
- package/dist/commonjs/compiler/inheritance.test.js.map +0 -1
- package/dist/commonjs/poison.pill.js.map +0 -1
- package/dist/commonjs/runtime/native/injection.js +0 -2
- package/dist/commonjs/runtime/native/injection.js.map +0 -1
- package/dist/module/compiler/inheritance.test.js +0 -78
- package/dist/module/compiler/inheritance.test.js.map +0 -1
- package/dist/module/native/metro.js +0 -5
- package/dist/module/poison.pill.js.map +0 -1
- package/dist/module/runtime/native/injection.js +0 -2
- package/dist/module/runtime/native/injection.js.map +0 -1
- package/dist/typescript/commonjs/example/app.config.d.ts +0 -4
- package/dist/typescript/commonjs/example/app.config.d.ts.map +0 -1
- package/dist/typescript/commonjs/example/src/App.d.ts +0 -2
- package/dist/typescript/commonjs/example/src/App.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts +0 -2
- package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/native/metro.d.ts +0 -2
- package/dist/typescript/commonjs/src/native/metro.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/poison.pill.d.ts +0 -2
- package/dist/typescript/commonjs/src/poison.pill.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/injection.d.ts +0 -1
- package/dist/typescript/commonjs/src/runtime/native/injection.d.ts.map +0 -1
- package/dist/typescript/module/example/app.config.d.ts +0 -4
- package/dist/typescript/module/example/app.config.d.ts.map +0 -1
- package/dist/typescript/module/example/src/App.d.ts +0 -2
- package/dist/typescript/module/example/src/App.d.ts.map +0 -1
- package/dist/typescript/module/src/compiler/inheritance.test.d.ts +0 -2
- package/dist/typescript/module/src/compiler/inheritance.test.d.ts.map +0 -1
- package/dist/typescript/module/src/native/metro.d.ts +0 -2
- package/dist/typescript/module/src/native/metro.d.ts.map +0 -1
- package/dist/typescript/module/src/poison.pill.d.ts +0 -2
- package/dist/typescript/module/src/poison.pill.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/injection.d.ts +0 -1
- package/dist/typescript/module/src/runtime/native/injection.d.ts.map +0 -1
- package/src/compiler/inheritance.test.ts +0 -121
- package/src/native/metro.ts +0 -2
- package/src/runtime/native/injection.ts +0 -0
- /package/src/{poison.pill.ts → native/react-native-css-metro-override.ts} +0 -0
|
@@ -10,9 +10,9 @@ import type { StylesheetBuilder } from "./stylesheet";
|
|
|
10
10
|
|
|
11
11
|
export function parseIterationCount(
|
|
12
12
|
value: AnimationIterationCount[],
|
|
13
|
-
): number[] {
|
|
13
|
+
): (number | "infinite")[] {
|
|
14
14
|
return value.map((value) => {
|
|
15
|
-
return value.type === "infinite" ?
|
|
15
|
+
return value.type === "infinite" ? value.type : value.value;
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
+
import { dirname, resolve } from "node:path";
|
|
3
|
+
|
|
1
4
|
export function lightningcssLoader() {
|
|
2
5
|
let lightningcssPath: string | undefined;
|
|
3
6
|
|
|
@@ -28,11 +31,28 @@ export function lightningcssLoader() {
|
|
|
28
31
|
);
|
|
29
32
|
}
|
|
30
33
|
|
|
31
|
-
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
32
34
|
const { transform: lightningcss, Features } = require(
|
|
33
35
|
lightningcssPath,
|
|
34
36
|
) as typeof import("lightningcss");
|
|
35
37
|
|
|
38
|
+
let version: unknown;
|
|
39
|
+
try {
|
|
40
|
+
// Lightning CSS keeps its entry in node/ and does not export package.json.
|
|
41
|
+
// Resolve relative to the selected copy, not the consumer or this loader.
|
|
42
|
+
const packageJSON = require(
|
|
43
|
+
resolve(dirname(lightningcssPath), "../package.json"),
|
|
44
|
+
) as Record<string, unknown>;
|
|
45
|
+
version = packageJSON.version;
|
|
46
|
+
} catch {
|
|
47
|
+
// Some bundlers do not retain package metadata. Loading remains supported.
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (version === "1.30.2") {
|
|
51
|
+
throw new Error(
|
|
52
|
+
"[react-native-css] lightningcss version 1.30.2 has a critical bug that breaks compilation. Please pin the version of lightningcss to 1.30.1; or try upgrading.",
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
36
56
|
return {
|
|
37
57
|
lightningcss,
|
|
38
58
|
Features,
|
|
@@ -24,9 +24,10 @@ export function parseMediaQuery(
|
|
|
24
24
|
let condition: MediaCondition | undefined;
|
|
25
25
|
|
|
26
26
|
if (query.mediaType) {
|
|
27
|
-
//
|
|
27
|
+
// Native screens never match print. Negating that media type matches
|
|
28
|
+
// regardless of the remaining feature tests in the same conjunction.
|
|
28
29
|
if (query.mediaType === "print") {
|
|
29
|
-
return;
|
|
30
|
+
return query.qualifier === "not";
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
// These all/screen are not conditions, they always apply
|
|
@@ -40,7 +41,7 @@ export function parseMediaQuery(
|
|
|
40
41
|
|
|
41
42
|
// If any of these are undefined, the media query is invalid
|
|
42
43
|
if (!condition || condition.some((v) => v === undefined)) {
|
|
43
|
-
return;
|
|
44
|
+
return false;
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
|
|
@@ -50,7 +51,8 @@ export function parseMediaQuery(
|
|
|
50
51
|
: platformCondition || condition;
|
|
51
52
|
|
|
52
53
|
if (!mediaQuery) {
|
|
53
|
-
|
|
54
|
+
// Unqualified all/screen apply; not all and not screen do not.
|
|
55
|
+
return query.qualifier !== "not";
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
if (query.qualifier === "not") {
|
|
@@ -58,6 +60,7 @@ export function parseMediaQuery(
|
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
builder.addMediaQuery(mediaQuery);
|
|
63
|
+
return true;
|
|
61
64
|
}
|
|
62
65
|
|
|
63
66
|
function parseMediaQueryCondition(
|
|
@@ -65,15 +68,23 @@ function parseMediaQueryCondition(
|
|
|
65
68
|
builder: StylesheetBuilder,
|
|
66
69
|
): MediaCondition | undefined {
|
|
67
70
|
switch (query.type) {
|
|
68
|
-
case "feature":
|
|
69
|
-
|
|
71
|
+
case "feature": {
|
|
72
|
+
const feature = parseFeature(query.value, builder);
|
|
73
|
+
return feature?.some((value) => value === undefined)
|
|
74
|
+
? undefined
|
|
75
|
+
: feature;
|
|
76
|
+
}
|
|
70
77
|
case "not":
|
|
71
78
|
const mediaQuery = parseMediaQueryCondition(query.value, builder);
|
|
72
79
|
return mediaQuery ? ["!", mediaQuery] : undefined;
|
|
73
80
|
case "operation":
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
81
|
+
const parsed = query.conditions.map((c) =>
|
|
82
|
+
parseMediaQueryCondition(c, builder),
|
|
83
|
+
);
|
|
84
|
+
if (query.operator === "and" && parsed.some((c) => !c)) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
const mediaQueries = parsed.filter((v): v is MediaCondition => !!v);
|
|
77
88
|
|
|
78
89
|
if (mediaQueries.length === 0) {
|
|
79
90
|
return;
|
|
@@ -63,9 +63,10 @@ export function getClassNameSelectors(
|
|
|
63
63
|
} else if (isUniversalSelector(selector)) {
|
|
64
64
|
return [{ type: "universalVariables" }];
|
|
65
65
|
} else {
|
|
66
|
+
// A nested rule reads its parent's selector list again, so the list is never reversed in place
|
|
66
67
|
return (
|
|
67
68
|
parseComponents(
|
|
68
|
-
selector.
|
|
69
|
+
selector.toReversed(),
|
|
69
70
|
options,
|
|
70
71
|
root,
|
|
71
72
|
root,
|
|
@@ -260,7 +261,12 @@ function parseComponents(
|
|
|
260
261
|
? // [data-*] are turned into `dataSet` queries
|
|
261
262
|
["d", toRNProperty(component.name.replace("data-", ""))]
|
|
262
263
|
: // Everything else is turned into `attribute` queries
|
|
263
|
-
[
|
|
264
|
+
[
|
|
265
|
+
"a",
|
|
266
|
+
component.name.startsWith("aria-")
|
|
267
|
+
? component.name
|
|
268
|
+
: toRNProperty(component.name),
|
|
269
|
+
];
|
|
264
270
|
if (component.operation) {
|
|
265
271
|
let operator: AttrSelectorOperator | undefined;
|
|
266
272
|
switch (component.operation.operator) {
|
|
@@ -289,6 +295,15 @@ function parseComponents(
|
|
|
289
295
|
if (operator) {
|
|
290
296
|
// Append the operator onto the attribute query
|
|
291
297
|
attributeQuery.push(operator, component.operation.value);
|
|
298
|
+
if (
|
|
299
|
+
component.operation.caseSensitivity === "ascii-case-insensitive"
|
|
300
|
+
) {
|
|
301
|
+
attributeQuery.push("i");
|
|
302
|
+
} else if (
|
|
303
|
+
component.operation.caseSensitivity === "explicit-case-sensitive"
|
|
304
|
+
) {
|
|
305
|
+
attributeQuery.push("s");
|
|
306
|
+
}
|
|
292
307
|
}
|
|
293
308
|
}
|
|
294
309
|
getAttributeQuery(ref).push(attributeQuery);
|
|
@@ -311,7 +326,7 @@ function parseComponents(
|
|
|
311
326
|
getAttributeQuery(ref).unshift([
|
|
312
327
|
"a",
|
|
313
328
|
"className",
|
|
314
|
-
"
|
|
329
|
+
"~=",
|
|
315
330
|
component.name,
|
|
316
331
|
]);
|
|
317
332
|
} else {
|
|
@@ -464,11 +479,23 @@ function parseIsWhereComponents(
|
|
|
464
479
|
? // [data-*] are turned into `dataSet` queries
|
|
465
480
|
["d", toRNProperty(component.name.replace("data-", ""))]
|
|
466
481
|
: // Everything else is turned into `attribute` queries
|
|
467
|
-
[
|
|
482
|
+
[
|
|
483
|
+
"a",
|
|
484
|
+
component.name.startsWith("aria-")
|
|
485
|
+
? component.name
|
|
486
|
+
: toRNProperty(component.name),
|
|
487
|
+
];
|
|
468
488
|
if (component.operation) {
|
|
469
489
|
const operator = operatorMap[component.operation.operator];
|
|
470
490
|
// Append the operator onto the attribute query
|
|
471
491
|
attributeQuery.push(operator, component.operation.value);
|
|
492
|
+
if (component.operation.caseSensitivity === "ascii-case-insensitive") {
|
|
493
|
+
attributeQuery.push("i");
|
|
494
|
+
} else if (
|
|
495
|
+
component.operation.caseSensitivity === "explicit-case-sensitive"
|
|
496
|
+
) {
|
|
497
|
+
attributeQuery.push("s");
|
|
498
|
+
}
|
|
472
499
|
}
|
|
473
500
|
queries ??= [{ specificity: [] }];
|
|
474
501
|
for (const query of queries) {
|
|
@@ -9,6 +9,7 @@ import type {
|
|
|
9
9
|
AnimationKeyframes,
|
|
10
10
|
AnimationRecord,
|
|
11
11
|
CompilerOptions,
|
|
12
|
+
CompilerWarnings,
|
|
12
13
|
ContainerQuery,
|
|
13
14
|
MediaCondition,
|
|
14
15
|
ReactNativeCssStyleSheet,
|
|
@@ -56,7 +57,7 @@ export class StylesheetBuilder {
|
|
|
56
57
|
private ruleTemplate: StyleRule = {
|
|
57
58
|
s: [],
|
|
58
59
|
},
|
|
59
|
-
// Any default mapping should be included in the @
|
|
60
|
+
// Any default mapping should be included in the @nativeMapping parsing
|
|
60
61
|
private mapping: StyleRuleMapping = {},
|
|
61
62
|
public descriptorProperty?: string,
|
|
62
63
|
private shared: {
|
|
@@ -68,8 +69,9 @@ export class StylesheetBuilder {
|
|
|
68
69
|
ruleOrder: number;
|
|
69
70
|
warningProperty?: string;
|
|
70
71
|
warningProperties: string[];
|
|
71
|
-
warningValues: Record<string,
|
|
72
|
+
warningValues: Record<string, string[]>;
|
|
72
73
|
warningFunctions: string[];
|
|
74
|
+
syntaxWarnings: Set<string>;
|
|
73
75
|
} = {
|
|
74
76
|
ruleSets: {},
|
|
75
77
|
rem: 14,
|
|
@@ -77,6 +79,7 @@ export class StylesheetBuilder {
|
|
|
77
79
|
warningProperties: [],
|
|
78
80
|
warningValues: {},
|
|
79
81
|
warningFunctions: [],
|
|
82
|
+
syntaxWarnings: new Set(),
|
|
80
83
|
},
|
|
81
84
|
private selectors: SelectorList = [],
|
|
82
85
|
) {}
|
|
@@ -198,18 +201,17 @@ export class StylesheetBuilder {
|
|
|
198
201
|
}
|
|
199
202
|
|
|
200
203
|
addWarning(type: "property" | "value", property: string): void;
|
|
201
|
-
addWarning(type: "style", property: string, value:
|
|
204
|
+
addWarning(type: "style", property: string, value: string): void;
|
|
202
205
|
addWarning(
|
|
203
206
|
type: "property" | "style" | "value",
|
|
204
207
|
property: string,
|
|
205
|
-
value
|
|
208
|
+
value: string = property,
|
|
206
209
|
): void {
|
|
207
210
|
switch (type) {
|
|
208
211
|
case "property":
|
|
209
212
|
this.shared.warningProperties.push(property);
|
|
210
213
|
break;
|
|
211
214
|
case "value": {
|
|
212
|
-
value = property;
|
|
213
215
|
property = this.shared.warningProperty ?? "";
|
|
214
216
|
|
|
215
217
|
if (!property) {
|
|
@@ -227,12 +229,13 @@ export class StylesheetBuilder {
|
|
|
227
229
|
}
|
|
228
230
|
}
|
|
229
231
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
232
|
+
// A lightningcss message carries no position, so a repeated mistake is one entry
|
|
233
|
+
addSyntaxWarning(message: string): void {
|
|
234
|
+
this.shared.syntaxWarnings.add(message);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
getWarnings(): CompilerWarnings {
|
|
238
|
+
const result: CompilerWarnings = {};
|
|
236
239
|
|
|
237
240
|
if (this.shared.warningProperties.length) {
|
|
238
241
|
result.properties = this.shared.warningProperties;
|
|
@@ -246,6 +249,10 @@ export class StylesheetBuilder {
|
|
|
246
249
|
result.functions = this.shared.warningFunctions;
|
|
247
250
|
}
|
|
248
251
|
|
|
252
|
+
if (this.shared.syntaxWarnings.size) {
|
|
253
|
+
result.syntax = [...this.shared.syntaxWarnings];
|
|
254
|
+
}
|
|
255
|
+
|
|
249
256
|
return result;
|
|
250
257
|
}
|
|
251
258
|
|
|
@@ -403,12 +410,10 @@ export class StylesheetBuilder {
|
|
|
403
410
|
} else {
|
|
404
411
|
forceTuple = true;
|
|
405
412
|
}
|
|
406
|
-
} else if (propPath) {
|
|
407
|
-
forceTuple = true;
|
|
408
|
-
} else {
|
|
409
|
-
propPath = property;
|
|
410
413
|
}
|
|
411
414
|
|
|
415
|
+
propPath ??= property;
|
|
416
|
+
|
|
412
417
|
if (forceTuple && !Array.isArray(propPath)) {
|
|
413
418
|
propPath = [propPath];
|
|
414
419
|
}
|
|
@@ -579,6 +584,12 @@ export class StylesheetBuilder {
|
|
|
579
584
|
this.ruleTemplate.cq.push(query);
|
|
580
585
|
}
|
|
581
586
|
|
|
587
|
+
addRootVariable(name: string, value: StyleDescriptor) {
|
|
588
|
+
this.shared.rootVariables ??= {};
|
|
589
|
+
this.shared.rootVariables[name] ??= [];
|
|
590
|
+
this.shared.rootVariables[name].push([value]);
|
|
591
|
+
}
|
|
592
|
+
|
|
582
593
|
newAnimationFrames(name: string) {
|
|
583
594
|
this.shared.animations ??= {};
|
|
584
595
|
|
package/src/compiler/supports.ts
CHANGED
|
@@ -21,6 +21,6 @@ export function supportsConditionValid(condition: SupportsCondition): boolean {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const declarations: Record<string, string[]> = {
|
|
24
|
-
//
|
|
25
|
-
|
|
24
|
+
// Special text used by TailwindCSS. We should probably change this to all color-mix
|
|
25
|
+
color: ["color-mix(in lab, red, red)"],
|
|
26
26
|
};
|
|
@@ -7,7 +7,9 @@ import {
|
|
|
7
7
|
useCssElement,
|
|
8
8
|
type StyledConfiguration,
|
|
9
9
|
type StyledProps,
|
|
10
|
-
} from "
|
|
10
|
+
} from "react-native-css";
|
|
11
|
+
|
|
12
|
+
import { copyComponentProperties } from "./copyComponentProperties";
|
|
11
13
|
|
|
12
14
|
const mapping: StyledConfiguration<typeof RNActivityIndicator> = {
|
|
13
15
|
className: {
|
|
@@ -18,10 +20,11 @@ const mapping: StyledConfiguration<typeof RNActivityIndicator> = {
|
|
|
18
20
|
},
|
|
19
21
|
};
|
|
20
22
|
|
|
21
|
-
export
|
|
22
|
-
|
|
23
|
-
) {
|
|
24
|
-
|
|
25
|
-
}
|
|
23
|
+
export const ActivityIndicator = copyComponentProperties(
|
|
24
|
+
RNActivityIndicator,
|
|
25
|
+
(props: StyledProps<ActivityIndicatorProps, typeof mapping>) => {
|
|
26
|
+
return useCssElement(RNActivityIndicator, props, mapping);
|
|
27
|
+
},
|
|
28
|
+
);
|
|
26
29
|
|
|
27
30
|
export default ActivityIndicator;
|
|
@@ -4,7 +4,9 @@ import {
|
|
|
4
4
|
useCssElement,
|
|
5
5
|
type StyledConfiguration,
|
|
6
6
|
type StyledProps,
|
|
7
|
-
} from "
|
|
7
|
+
} from "react-native-css";
|
|
8
|
+
|
|
9
|
+
import { copyComponentProperties } from "./copyComponentProperties";
|
|
8
10
|
|
|
9
11
|
const mapping: StyledConfiguration<typeof RNButton> = {
|
|
10
12
|
className: {
|
|
@@ -15,8 +17,11 @@ const mapping: StyledConfiguration<typeof RNButton> = {
|
|
|
15
17
|
},
|
|
16
18
|
};
|
|
17
19
|
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
export const Button = copyComponentProperties(
|
|
21
|
+
RNButton,
|
|
22
|
+
(props: StyledProps<ButtonProps, typeof mapping>) => {
|
|
23
|
+
return useCssElement(RNButton, props, mapping);
|
|
24
|
+
},
|
|
25
|
+
);
|
|
21
26
|
|
|
22
27
|
export default Button;
|
|
@@ -1,22 +1,32 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
1
2
|
import { FlatList as RNFlatList, type FlatListProps } from "react-native";
|
|
2
3
|
|
|
3
4
|
import {
|
|
4
5
|
useCssElement,
|
|
5
6
|
type StyledConfiguration,
|
|
6
7
|
type StyledProps,
|
|
7
|
-
} from "
|
|
8
|
+
} from "react-native-css";
|
|
9
|
+
|
|
10
|
+
import { copyComponentProperties } from "./copyComponentProperties";
|
|
8
11
|
|
|
9
12
|
const mapping: StyledConfiguration<typeof RNFlatList> = {
|
|
13
|
+
className: "style",
|
|
10
14
|
ListFooterComponentClassName: "ListFooterComponentStyle",
|
|
11
15
|
ListHeaderComponentClassName: "ListHeaderComponentStyle",
|
|
12
16
|
columnWrapperClassName: "columnWrapperStyle",
|
|
13
17
|
contentContainerClassName: "contentContainerStyle",
|
|
14
18
|
};
|
|
15
19
|
|
|
16
|
-
export function
|
|
17
|
-
|
|
18
|
-
) {
|
|
20
|
+
export const FlatList = copyComponentProperties(RNFlatList, function <
|
|
21
|
+
ItemT,
|
|
22
|
+
>(props: StyledProps<FlatListProps<ItemT>, typeof mapping>) {
|
|
19
23
|
return useCssElement(RNFlatList, props, mapping);
|
|
20
|
-
}
|
|
24
|
+
}) as unknown as typeof RNFlatList &
|
|
25
|
+
(<ItemT>(
|
|
26
|
+
props: StyledProps<
|
|
27
|
+
FlatListProps<ItemT>,
|
|
28
|
+
StyledConfiguration<typeof RNFlatList>
|
|
29
|
+
>,
|
|
30
|
+
) => ReactNode);
|
|
21
31
|
|
|
22
32
|
export default FlatList;
|
package/src/components/Image.tsx
CHANGED
|
@@ -4,14 +4,19 @@ import {
|
|
|
4
4
|
useCssElement,
|
|
5
5
|
type StyledConfiguration,
|
|
6
6
|
type StyledProps,
|
|
7
|
-
} from "
|
|
7
|
+
} from "react-native-css";
|
|
8
|
+
|
|
9
|
+
import { copyComponentProperties } from "./copyComponentProperties";
|
|
8
10
|
|
|
9
11
|
const mapping: StyledConfiguration<typeof RNImage> = {
|
|
10
12
|
className: "style",
|
|
11
13
|
};
|
|
12
14
|
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
export const Image = copyComponentProperties(
|
|
16
|
+
RNImage,
|
|
17
|
+
(props: StyledProps<ImageProps, typeof mapping>) => {
|
|
18
|
+
return useCssElement(RNImage, props, mapping);
|
|
19
|
+
},
|
|
20
|
+
);
|
|
16
21
|
|
|
17
22
|
export default Image;
|
|
@@ -7,21 +7,20 @@ import {
|
|
|
7
7
|
useCssElement,
|
|
8
8
|
type StyledConfiguration,
|
|
9
9
|
type StyledProps,
|
|
10
|
-
} from "
|
|
10
|
+
} from "react-native-css";
|
|
11
|
+
|
|
12
|
+
import { copyComponentProperties } from "./copyComponentProperties";
|
|
11
13
|
|
|
12
14
|
const mapping: StyledConfiguration<typeof RNImageBackground> = {
|
|
13
|
-
className:
|
|
14
|
-
|
|
15
|
-
nativeStyleMapping: {
|
|
16
|
-
backgroundColor: true,
|
|
17
|
-
},
|
|
18
|
-
},
|
|
15
|
+
className: "style",
|
|
16
|
+
imageClassName: "imageStyle",
|
|
19
17
|
};
|
|
20
18
|
|
|
21
|
-
export
|
|
22
|
-
|
|
23
|
-
) {
|
|
24
|
-
|
|
25
|
-
}
|
|
19
|
+
export const ImageBackground = copyComponentProperties(
|
|
20
|
+
RNImageBackground,
|
|
21
|
+
(props: StyledProps<ImageBackgroundProps, typeof mapping>) => {
|
|
22
|
+
return useCssElement(RNImageBackground, props, mapping);
|
|
23
|
+
},
|
|
24
|
+
);
|
|
26
25
|
|
|
27
26
|
export default ImageBackground;
|
|
@@ -7,18 +7,20 @@ import {
|
|
|
7
7
|
useCssElement,
|
|
8
8
|
type StyledConfiguration,
|
|
9
9
|
type StyledProps,
|
|
10
|
-
} from "
|
|
10
|
+
} from "react-native-css";
|
|
11
|
+
|
|
12
|
+
import { copyComponentProperties } from "./copyComponentProperties";
|
|
11
13
|
|
|
12
14
|
const mapping: StyledConfiguration<typeof RNKeyboardAvoidingView> = {
|
|
13
|
-
className:
|
|
14
|
-
|
|
15
|
-
},
|
|
15
|
+
className: "style",
|
|
16
|
+
contentContainerClassName: "contentContainerStyle",
|
|
16
17
|
};
|
|
17
18
|
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
) {
|
|
21
|
-
|
|
22
|
-
}
|
|
19
|
+
export const KeyboardAvoidingView = copyComponentProperties(
|
|
20
|
+
RNKeyboardAvoidingView,
|
|
21
|
+
(props: StyledProps<KeyboardAvoidingViewProps, typeof mapping>) => {
|
|
22
|
+
return useCssElement(RNKeyboardAvoidingView, props, mapping);
|
|
23
|
+
},
|
|
24
|
+
);
|
|
23
25
|
|
|
24
26
|
export default KeyboardAvoidingView;
|
|
@@ -4,14 +4,19 @@ import {
|
|
|
4
4
|
useCssElement,
|
|
5
5
|
type StyledConfiguration,
|
|
6
6
|
type StyledProps,
|
|
7
|
-
} from "
|
|
7
|
+
} from "react-native-css";
|
|
8
|
+
|
|
9
|
+
import { copyComponentProperties } from "./copyComponentProperties";
|
|
8
10
|
|
|
9
11
|
const mapping: StyledConfiguration<typeof RNPressable> = {
|
|
10
12
|
className: "style",
|
|
11
13
|
};
|
|
12
14
|
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
export const Pressable = copyComponentProperties(
|
|
16
|
+
RNPressable,
|
|
17
|
+
(props: StyledProps<PressableProps, typeof mapping>) => {
|
|
18
|
+
return useCssElement(RNPressable, props, mapping);
|
|
19
|
+
},
|
|
20
|
+
);
|
|
16
21
|
|
|
17
22
|
export default Pressable;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SafeAreaProvider } from "react-native-css/components/react-native-safe-area-context";
|
|
@@ -4,17 +4,20 @@ import {
|
|
|
4
4
|
useCssElement,
|
|
5
5
|
type StyledConfiguration,
|
|
6
6
|
type StyledProps,
|
|
7
|
-
} from "
|
|
7
|
+
} from "react-native-css";
|
|
8
|
+
|
|
9
|
+
import { copyComponentProperties } from "./copyComponentProperties";
|
|
8
10
|
|
|
9
11
|
const mapping: StyledConfiguration<typeof RNScrollView> = {
|
|
10
12
|
className: "style",
|
|
11
13
|
contentContainerClassName: "contentContainerStyle",
|
|
12
14
|
};
|
|
13
15
|
|
|
14
|
-
export
|
|
15
|
-
|
|
16
|
-
) {
|
|
17
|
-
|
|
18
|
-
}
|
|
16
|
+
export const ScrollView = copyComponentProperties(
|
|
17
|
+
RNScrollView,
|
|
18
|
+
(props: StyledProps<ScrollViewProps, typeof mapping>) => {
|
|
19
|
+
return useCssElement(RNScrollView, props, mapping);
|
|
20
|
+
},
|
|
21
|
+
);
|
|
19
22
|
|
|
20
23
|
export default ScrollView;
|
|
@@ -4,14 +4,19 @@ import {
|
|
|
4
4
|
useCssElement,
|
|
5
5
|
type StyledConfiguration,
|
|
6
6
|
type StyledProps,
|
|
7
|
-
} from "
|
|
7
|
+
} from "react-native-css";
|
|
8
|
+
|
|
9
|
+
import { copyComponentProperties } from "./copyComponentProperties";
|
|
8
10
|
|
|
9
11
|
const mapping = {
|
|
10
12
|
className: "style",
|
|
11
13
|
} satisfies StyledConfiguration<typeof RNSwitch>;
|
|
12
14
|
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
export const Switch = copyComponentProperties(
|
|
16
|
+
RNSwitch,
|
|
17
|
+
(props: StyledProps<SwitchProps, typeof mapping>) => {
|
|
18
|
+
return useCssElement(RNSwitch, props, mapping);
|
|
19
|
+
},
|
|
20
|
+
);
|
|
16
21
|
|
|
17
22
|
export default Switch;
|
package/src/components/Text.tsx
CHANGED
|
@@ -4,14 +4,19 @@ import {
|
|
|
4
4
|
useCssElement,
|
|
5
5
|
type StyledConfiguration,
|
|
6
6
|
type StyledProps,
|
|
7
|
-
} from "react-native-css
|
|
7
|
+
} from "react-native-css";
|
|
8
|
+
|
|
9
|
+
import { copyComponentProperties } from "./copyComponentProperties";
|
|
8
10
|
|
|
9
11
|
const mapping = {
|
|
10
12
|
className: "style",
|
|
11
13
|
} satisfies StyledConfiguration<typeof RNText>;
|
|
12
14
|
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
export const Text = copyComponentProperties(
|
|
16
|
+
RNText,
|
|
17
|
+
(props: StyledProps<TextProps, typeof mapping>) => {
|
|
18
|
+
return useCssElement(RNText, props, mapping);
|
|
19
|
+
},
|
|
20
|
+
);
|
|
16
21
|
|
|
17
22
|
export default Text;
|
|
@@ -4,7 +4,9 @@ import {
|
|
|
4
4
|
useCssElement,
|
|
5
5
|
type StyledConfiguration,
|
|
6
6
|
type StyledProps,
|
|
7
|
-
} from "
|
|
7
|
+
} from "react-native-css";
|
|
8
|
+
|
|
9
|
+
import { copyComponentProperties } from "./copyComponentProperties";
|
|
8
10
|
|
|
9
11
|
const mapping: StyledConfiguration<typeof RNTextInput> = {
|
|
10
12
|
className: {
|
|
@@ -15,8 +17,11 @@ const mapping: StyledConfiguration<typeof RNTextInput> = {
|
|
|
15
17
|
},
|
|
16
18
|
};
|
|
17
19
|
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
export const TextInput = copyComponentProperties(
|
|
21
|
+
RNTextInput,
|
|
22
|
+
(props: StyledProps<TextInputProps, typeof mapping>) => {
|
|
23
|
+
return useCssElement(RNTextInput, props, mapping);
|
|
24
|
+
},
|
|
25
|
+
);
|
|
21
26
|
|
|
22
27
|
export default TextInput;
|
|
@@ -7,16 +7,19 @@ import {
|
|
|
7
7
|
useCssElement,
|
|
8
8
|
type StyledConfiguration,
|
|
9
9
|
type StyledProps,
|
|
10
|
-
} from "
|
|
10
|
+
} from "react-native-css";
|
|
11
|
+
|
|
12
|
+
import { copyComponentProperties } from "./copyComponentProperties";
|
|
11
13
|
|
|
12
14
|
const mapping: StyledConfiguration<typeof RNTouchableHighlight> = {
|
|
13
15
|
className: "style",
|
|
14
16
|
};
|
|
15
17
|
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
) {
|
|
19
|
-
|
|
20
|
-
}
|
|
18
|
+
export const TouchableHighlight = copyComponentProperties(
|
|
19
|
+
RNTouchableHighlight,
|
|
20
|
+
(props: StyledProps<TouchableHighlightProps, typeof mapping>) => {
|
|
21
|
+
return useCssElement(RNTouchableHighlight, props, mapping);
|
|
22
|
+
},
|
|
23
|
+
);
|
|
21
24
|
|
|
22
25
|
export default TouchableHighlight;
|