react-native-css 0.0.0-nightly.d11bf3f → 0.0.0-nightly.d6f42ab
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/dist/commonjs/compiler/atRules.js +30 -16
- package/dist/commonjs/compiler/atRules.js.map +1 -1
- package/dist/commonjs/compiler/compiler.js +29 -19
- package/dist/commonjs/compiler/compiler.js.map +1 -1
- package/dist/commonjs/compiler/declarations.js +10 -10
- 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 +40 -0
- package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -0
- package/dist/commonjs/compiler/selector-builder.js +3 -2
- package/dist/commonjs/compiler/selector-builder.js.map +1 -1
- package/dist/commonjs/compiler/stylesheet.js +5 -7
- package/dist/commonjs/compiler/stylesheet.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 +10 -9
- 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 +22 -0
- package/dist/commonjs/components/ImageBackground.js.map +1 -0
- package/dist/commonjs/components/KeyboardAvoidingView.js +19 -0
- package/dist/commonjs/components/KeyboardAvoidingView.js.map +1 -0
- package/dist/commonjs/components/Pressable.js +17 -0
- package/dist/commonjs/components/Pressable.js.map +1 -0
- package/dist/commonjs/components/ScrollView.js +18 -0
- package/dist/commonjs/components/ScrollView.js.map +1 -0
- 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 +12 -7
- package/dist/commonjs/components/TextInput.js.map +1 -1
- package/dist/commonjs/components/TouchableHighlight.js +17 -0
- package/dist/commonjs/components/TouchableHighlight.js.map +1 -0
- package/dist/commonjs/components/TouchableOpacity.js +17 -0
- package/dist/commonjs/components/TouchableOpacity.js.map +1 -0
- package/dist/commonjs/components/TouchableWithoutFeedback.js +17 -0
- package/dist/commonjs/components/TouchableWithoutFeedback.js.map +1 -0
- package/dist/commonjs/components/View.js +6 -6
- package/dist/commonjs/components/View.js.map +1 -1
- package/dist/commonjs/components/VirtualizedList.js +20 -0
- package/dist/commonjs/components/VirtualizedList.js.map +1 -0
- package/dist/commonjs/components/copyComponentProperties.js +19 -0
- package/dist/commonjs/components/copyComponentProperties.js.map +1 -0
- package/dist/commonjs/components/index.cjs +265 -0
- package/dist/commonjs/components/index.cjs.map +1 -0
- package/dist/commonjs/components/index.js +65 -1
- package/dist/commonjs/components/index.js.map +1 -1
- package/dist/commonjs/index.js +0 -11
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/jest/index.js +1 -1
- package/dist/commonjs/jest/index.js.map +1 -1
- package/dist/commonjs/metro/index.js +7 -117
- package/dist/commonjs/metro/index.js.map +1 -1
- package/dist/commonjs/metro/metro-transformer.js +8 -1
- 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/native/api.js +5 -1
- package/dist/commonjs/native/api.js.map +1 -1
- package/dist/commonjs/native/index.js +8 -8
- package/dist/commonjs/native/index.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/styles/calculate-props.js +1 -1
- package/dist/commonjs/native/styles/resolve.js +0 -1
- package/dist/commonjs/native/styles/resolve.js.map +1 -1
- package/dist/commonjs/native/styles/shorthands/animation.js +6 -2
- package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -1
- package/dist/commonjs/web/api.js +5 -2
- package/dist/commonjs/web/api.js.map +1 -1
- package/dist/module/compiler/atRules.js +30 -16
- package/dist/module/compiler/atRules.js.map +1 -1
- package/dist/module/compiler/compiler.js +25 -15
- package/dist/module/compiler/compiler.js.map +1 -1
- package/dist/module/compiler/declarations.js +10 -10
- 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 +36 -0
- package/dist/module/compiler/lightningcss-loader.js.map +1 -0
- package/dist/module/compiler/selector-builder.js +3 -2
- package/dist/module/compiler/selector-builder.js.map +1 -1
- package/dist/module/compiler/stylesheet.js +5 -7
- package/dist/module/compiler/stylesheet.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 +8 -6
- 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 +18 -0
- package/dist/module/components/ImageBackground.js.map +1 -0
- package/dist/module/components/KeyboardAvoidingView.js +15 -0
- package/dist/module/components/KeyboardAvoidingView.js.map +1 -0
- package/dist/module/components/Pressable.js +13 -0
- package/dist/module/components/Pressable.js.map +1 -0
- package/dist/module/components/ScrollView.js +14 -0
- package/dist/module/components/ScrollView.js.map +1 -0
- 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 +10 -4
- package/dist/module/components/TextInput.js.map +1 -1
- package/dist/module/components/TouchableHighlight.js +13 -0
- package/dist/module/components/TouchableHighlight.js.map +1 -0
- package/dist/module/components/TouchableOpacity.js +13 -0
- package/dist/module/components/TouchableOpacity.js.map +1 -0
- package/dist/module/components/TouchableWithoutFeedback.js +13 -0
- package/dist/module/components/TouchableWithoutFeedback.js.map +1 -0
- package/dist/module/components/View.js +4 -3
- package/dist/module/components/View.js.map +1 -1
- package/dist/module/components/VirtualizedList.js +16 -0
- package/dist/module/components/VirtualizedList.js.map +1 -0
- package/dist/module/components/copyComponentProperties.js +15 -0
- package/dist/module/components/copyComponentProperties.js.map +1 -0
- package/dist/module/components/index.cjs +265 -0
- package/dist/module/components/index.cjs.map +1 -0
- package/dist/module/components/index.js +8 -0
- package/dist/module/components/index.js.map +1 -1
- package/dist/module/index.js +0 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/jest/index.js +1 -1
- package/dist/module/jest/index.js.map +1 -1
- package/dist/module/metro/index.js +7 -116
- package/dist/module/metro/index.js.map +1 -1
- package/dist/module/metro/metro-transformer.js +8 -1
- 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/native/api.js +4 -1
- package/dist/module/native/api.js.map +1 -1
- package/dist/module/native/index.js +1 -1
- package/dist/module/native/index.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/styles/calculate-props.js +1 -1
- package/dist/module/native/styles/resolve.js +0 -1
- package/dist/module/native/styles/resolve.js.map +1 -1
- package/dist/module/native/styles/shorthands/animation.js +4 -1
- package/dist/module/native/styles/shorthands/animation.js.map +1 -1
- package/dist/module/web/api.js +5 -2
- package/dist/module/web/api.js.map +1 -1
- package/dist/typescript/commonjs/.config/eslint.config.d.mts +3 -0
- package/dist/typescript/commonjs/.config/eslint.config.d.mts.map +1 -0
- package/dist/typescript/commonjs/eslint.config.d.mts +2 -0
- package/dist/typescript/commonjs/eslint.config.d.mts.map +1 -0
- package/dist/typescript/commonjs/example/app.config.d.ts.map +1 -1
- package/dist/typescript/commonjs/example/index.d.ts +2 -0
- package/dist/typescript/commonjs/example/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/example/metro.config.d.ts +3 -0
- package/dist/typescript/commonjs/example/metro.config.d.ts.map +1 -0
- package/dist/typescript/commonjs/example/postcss.config.d.mts +7 -0
- package/dist/typescript/commonjs/example/postcss.config.d.mts.map +1 -0
- package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts +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 +30 -0
- package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +2 -1
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +2 -11
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Button.d.ts +2 -11
- package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/FlatList.d.ts +4 -8
- package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Image.d.ts +2 -6
- package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/Pressable.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/ScrollView.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -0
- 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 -6
- package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
- 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 +6 -0
- package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts.map +1 -0
- 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 +8 -0
- package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/index.d.ts +0 -1
- package/dist/typescript/commonjs/src/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
- 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/native/api.d.ts +1 -1
- package/dist/typescript/commonjs/src/native/api.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-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/styles/resolve.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/utilities/dot-notation.types.d.ts +1 -1
- package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/web/api.d.ts +2 -2
- package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -1
- package/dist/typescript/module/.config/eslint.config.d.mts +3 -0
- package/dist/typescript/module/.config/eslint.config.d.mts.map +1 -0
- package/dist/typescript/module/eslint.config.d.mts +2 -0
- package/dist/typescript/module/eslint.config.d.mts.map +1 -0
- package/dist/typescript/module/example/app.config.d.ts.map +1 -1
- package/dist/typescript/module/example/index.d.ts +2 -0
- package/dist/typescript/module/example/index.d.ts.map +1 -0
- package/dist/typescript/module/example/metro.config.d.ts +3 -0
- package/dist/typescript/module/example/metro.config.d.ts.map +1 -0
- package/dist/typescript/module/example/postcss.config.d.mts +7 -0
- package/dist/typescript/module/example/postcss.config.d.mts.map +1 -0
- package/dist/typescript/module/example/src/App.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/declarations.d.ts +1 -1
- package/dist/typescript/module/src/compiler/keyframes.d.ts +1 -1
- package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts +30 -0
- package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/stylesheet.d.ts +2 -1
- package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts +2 -11
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Button.d.ts +2 -11
- package/dist/typescript/module/src/components/Button.d.ts.map +1 -1
- package/dist/typescript/module/src/components/FlatList.d.ts +4 -8
- package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Image.d.ts +2 -6
- package/dist/typescript/module/src/components/Image.d.ts.map +1 -1
- package/dist/typescript/module/src/components/ImageBackground.d.ts +4 -0
- package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -0
- package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +4 -0
- package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -0
- package/dist/typescript/module/src/components/Pressable.d.ts +4 -0
- package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -0
- package/dist/typescript/module/src/components/ScrollView.d.ts +4 -0
- package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -0
- 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 -6
- package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -1
- package/dist/typescript/module/src/components/TouchableHighlight.d.ts +4 -0
- package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -0
- package/dist/typescript/module/src/components/TouchableOpacity.d.ts +4 -0
- package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -0
- package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +4 -0
- package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
- 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 +6 -0
- package/dist/typescript/module/src/components/VirtualizedList.d.ts.map +1 -0
- 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 +8 -0
- package/dist/typescript/module/src/components/index.d.ts.map +1 -1
- package/dist/typescript/module/src/index.d.ts +0 -1
- package/dist/typescript/module/src/index.d.ts.map +1 -1
- package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
- 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/native/api.d.ts +1 -1
- package/dist/typescript/module/src/native/api.d.ts.map +1 -1
- package/dist/typescript/module/src/native/index.d.ts +1 -1
- package/dist/typescript/module/src/native/index.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/styles/resolve.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -1
- package/dist/typescript/module/src/utilities/dot-notation.types.d.ts +1 -1
- package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -1
- package/dist/typescript/module/src/web/api.d.ts +2 -2
- package/dist/typescript/module/src/web/api.d.ts.map +1 -1
- package/package.json +16 -18
- package/src/compiler/atRules.ts +30 -17
- package/src/compiler/compiler.ts +27 -16
- package/src/compiler/declarations.ts +10 -10
- package/src/compiler/keyframes.ts +2 -2
- package/src/compiler/lightningcss-loader.ts +40 -0
- package/src/compiler/selector-builder.ts +6 -2
- package/src/compiler/stylesheet.ts +5 -7
- package/src/components/ActivityIndicator.tsx +11 -8
- package/src/components/Button.tsx +11 -6
- package/src/components/FlatList.tsx +20 -10
- package/src/components/Image.tsx +11 -6
- package/src/components/ImageBackground.tsx +30 -0
- package/src/components/KeyboardAvoidingView.tsx +27 -0
- package/src/components/Pressable.tsx +22 -0
- package/src/components/ScrollView.tsx +23 -0
- package/src/components/Switch.tsx +9 -4
- package/src/components/Text.tsx +9 -4
- package/src/components/TextInput.tsx +17 -7
- package/src/components/TouchableHighlight.tsx +25 -0
- package/src/components/TouchableOpacity.tsx +25 -0
- package/src/components/TouchableWithoutFeedback.tsx +25 -0
- package/src/components/View.tsx +9 -4
- package/src/components/VirtualizedList.tsx +37 -0
- package/src/components/copyComponentProperties.ts +21 -0
- package/src/components/index.cts +263 -0
- package/src/components/index.ts +17 -0
- package/src/index.ts +0 -2
- package/src/jest/index.ts +2 -1
- package/src/metro/index.ts +7 -165
- package/src/metro/metro-transformer.ts +15 -1
- package/src/metro/override.ts +1 -0
- package/src/metro/resolver.ts +29 -28
- package/src/native/api.tsx +6 -2
- package/src/native/index.ts +1 -2
- package/src/native/styles/calculate-props.ts +1 -1
- package/src/native/styles/resolve.ts +0 -1
- package/src/native/styles/shorthands/animation.ts +10 -2
- package/src/utilities/dot-notation.types.ts +10 -3
- package/src/web/api.tsx +9 -4
- 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/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/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/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/components/index.tsx +0 -10
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["metro/override.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -14,32 +14,23 @@ function isFromThisModule(filename) {
|
|
|
14
14
|
}
|
|
15
15
|
function nativeResolver(resolver, context, moduleName, platform) {
|
|
16
16
|
const resolution = resolver(context, moduleName, platform);
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
// Only operate on source files
|
|
21
|
-
resolution.type !== "sourceFile" ||
|
|
22
|
-
// Skip the React Native barrel file to prevent infinite recursion
|
|
23
|
-
context.originModulePath.endsWith("react-native/index.js") ||
|
|
24
|
-
// Skip anything that isn't importing a React Native component
|
|
25
|
-
!(moduleName.startsWith("react-native") || moduleName.startsWith("react-native/"))) {
|
|
17
|
+
const isInternal = isFromThisModule(context.originModulePath);
|
|
18
|
+
const isReactNativeIndex = context.originModulePath.endsWith(`${_nodePath.sep}react-native${_nodePath.sep}index.js`);
|
|
19
|
+
if (isInternal || resolution.type !== "sourceFile" || isReactNativeIndex) {
|
|
26
20
|
return resolution;
|
|
27
21
|
}
|
|
28
22
|
if (moduleName === "react-native") {
|
|
29
23
|
return resolver(context, `react-native-css/components`, platform);
|
|
30
|
-
}
|
|
31
|
-
if (moduleName === "react-native-safe-area-context") {
|
|
24
|
+
} else if (moduleName === "react-native-safe-area-context") {
|
|
32
25
|
return resolver(context, `react-native-css/components/react-native-safe-area-context`, platform);
|
|
26
|
+
} else if (resolution.filePath.includes(`${_nodePath.sep}react-native${_nodePath.sep}Libraries${_nodePath.sep}`)) {
|
|
27
|
+
const filename = (0, _nodePath.basename)(resolution.filePath.split(_nodePath.sep).at(-1) ?? "");
|
|
28
|
+
const module = filename.split(".").at(0);
|
|
29
|
+
if (module && _allowedModules.allowedModules.has(module)) {
|
|
30
|
+
return resolver(context, `react-native-css/components/${module}`, platform);
|
|
31
|
+
}
|
|
33
32
|
}
|
|
34
|
-
|
|
35
|
-
// We only care about `react-native/Library/Components/<module>.js` components
|
|
36
|
-
const segments = resolution.filePath.split(_nodePath.sep);
|
|
37
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
38
|
-
const module = (0, _nodePath.basename)(segments.at(-1)).split(".")[0];
|
|
39
|
-
if (!module || !_allowedModules.allowedModules.has(module)) {
|
|
40
|
-
return resolution;
|
|
41
|
-
}
|
|
42
|
-
return resolver(context, `react-native-css/components/${module}`, platform);
|
|
33
|
+
return resolution;
|
|
43
34
|
}
|
|
44
35
|
function webResolver(resolver, context, moduleName, platform) {
|
|
45
36
|
const resolution = resolver(context, moduleName, platform);
|
|
@@ -49,7 +40,9 @@ function webResolver(resolver, context, moduleName, platform) {
|
|
|
49
40
|
// Only operate on source files
|
|
50
41
|
resolution.type !== "sourceFile" ||
|
|
51
42
|
// Skip anything that isn't importing from `react-native-web`
|
|
52
|
-
!resolution.filePath.includes(`${_nodePath.sep}react-native-web${_nodePath.sep}`)
|
|
43
|
+
!resolution.filePath.includes(`${_nodePath.sep}react-native-web${_nodePath.sep}`) ||
|
|
44
|
+
// Skip internal react-native-web files
|
|
45
|
+
resolution.filePath.includes(`${_nodePath.sep}react-native-web${_nodePath.sep}dist${_nodePath.sep}vendor`)) {
|
|
53
46
|
return resolution;
|
|
54
47
|
}
|
|
55
48
|
|
|
@@ -57,7 +50,7 @@ function webResolver(resolver, context, moduleName, platform) {
|
|
|
57
50
|
const segments = resolution.filePath.split(_nodePath.sep);
|
|
58
51
|
const isIndex = segments.at(-1)?.startsWith("index.");
|
|
59
52
|
const module = segments.at(-2);
|
|
60
|
-
if (!isIndex || !module || !_allowedModules.allowedModules.has(module)) {
|
|
53
|
+
if (!isIndex || !module || !_allowedModules.allowedModules.has(module) || module === "VirtualizedList") {
|
|
61
54
|
return resolution;
|
|
62
55
|
}
|
|
63
56
|
return resolver(context, `react-native-css/components/${module}`, platform);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_nodePath","require","_allowedModules","thisModuleDist","resolve","__dirname","thisModuleSrc","isFromThisModule","filename","startsWith","nativeResolver","resolver","context","moduleName","platform","resolution","originModulePath","
|
|
1
|
+
{"version":3,"names":["_nodePath","require","_allowedModules","thisModuleDist","resolve","__dirname","thisModuleSrc","isFromThisModule","filename","startsWith","nativeResolver","resolver","context","moduleName","platform","resolution","isInternal","originModulePath","isReactNativeIndex","endsWith","sep","type","filePath","includes","basename","split","at","module","allowedModules","has","webResolver","segments","isIndex"],"sourceRoot":"../../../src","sources":["metro/resolver.ts"],"mappings":";;;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAQA,IAAAC,eAAA,GAAAD,OAAA;AAEA,MAAME,cAAc,GAAG,IAAAC,iBAAO,EAACC,SAAS,EAAE,eAAe,CAAC;AAC1D,MAAMC,aAAa,GAAG,IAAAF,iBAAO,EAACC,SAAS,EAAE,cAAc,CAAC;AAExD,SAASE,gBAAgBA,CAACC,QAAgB,EAAW;EACnD,OACEA,QAAQ,CAACC,UAAU,CAACN,cAAc,CAAC,IAAIK,QAAQ,CAACC,UAAU,CAACH,aAAa,CAAC;AAE7E;AAEO,SAASI,cAAcA,CAC5BC,QAAwB,EACxBC,OAAgC,EAChCC,UAAkB,EAClBC,QAAuB,EACX;EACZ,MAAMC,UAAU,GAAGJ,QAAQ,CAACC,OAAO,EAAEC,UAAU,EAAEC,QAAQ,CAAC;EAC1D,MAAME,UAAU,GAAGT,gBAAgB,CAACK,OAAO,CAACK,gBAAgB,CAAC;EAC7D,MAAMC,kBAAkB,GAAGN,OAAO,CAACK,gBAAgB,CAACE,QAAQ,CAC1D,GAAGC,aAAG,eAAeA,aAAG,UAC1B,CAAC;EAED,IAAIJ,UAAU,IAAID,UAAU,CAACM,IAAI,KAAK,YAAY,IAAIH,kBAAkB,EAAE;IACxE,OAAOH,UAAU;EACnB;EAEA,IAAIF,UAAU,KAAK,cAAc,EAAE;IACjC,OAAOF,QAAQ,CAACC,OAAO,EAAE,6BAA6B,EAAEE,QAAQ,CAAC;EACnE,CAAC,MAAM,IAAID,UAAU,KAAK,gCAAgC,EAAE;IAC1D,OAAOF,QAAQ,CACbC,OAAO,EACP,4DAA4D,EAC5DE,QACF,CAAC;EACH,CAAC,MAAM,IACLC,UAAU,CAACO,QAAQ,CAACC,QAAQ,CAAC,GAAGH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,CAAC,CAAC;EAE9B,IACE,CAACM,OAAO,IACR,CAACL,MAAM,IACP,CAACC,8BAAc,CAACC,GAAG,CAACF,MAAM,CAAC,IAC3BA,MAAM,KAAK,iBAAiB,EAC5B;IACA,OAAOZ,UAAU;EACnB;EAEA,OAAOJ,QAAQ,CAACC,OAAO,EAAE,+BAA+Be,MAAM,EAAE,EAAEb,QAAQ,CAAC;AAC7E","ignoreList":[]}
|
|
@@ -40,13 +40,17 @@ var _reactivity = require("./reactivity.js");
|
|
|
40
40
|
var _resolve = require("./styles/resolve.js");
|
|
41
41
|
/* eslint-disable */
|
|
42
42
|
|
|
43
|
+
const defaultMapping = {
|
|
44
|
+
className: "style"
|
|
45
|
+
};
|
|
46
|
+
|
|
43
47
|
/**
|
|
44
48
|
* Generates a new Higher-Order component the wraps the base component and applies the styles.
|
|
45
49
|
* This is added to the `interopComponents` map so that it can be used in the `wrapJSX` function
|
|
46
50
|
* @param baseComponent
|
|
47
51
|
* @param mapping
|
|
48
52
|
*/
|
|
49
|
-
const styled = (baseComponent, mapping, options) => {
|
|
53
|
+
const styled = (baseComponent, mapping = defaultMapping, options) => {
|
|
50
54
|
let component;
|
|
51
55
|
// const type = getComponentType(baseComponent);
|
|
52
56
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_nativeInternal","_useNativeCss","_usePassthrough","_reactivity","_resolve","styled","baseComponent","mapping","options","component","configs","mappingToConfig","passThrough","props","usePassthrough","useNativeCss","name","displayName","exports","colorScheme","get","colorSchemeObs","Appearance","getColorScheme","set","value","useUnstableNativeVariable","useNativeVariable","useCssElement","incomingProps","config","useState","startsWith","slice","inheritedVariables","useContext","VariableContext","effect","setState","observers","Set","run","state","observable","resolveValue","vars","variables","Object","assign","VAR_SYMBOL","fromEntries","entries","map","k","v","replace"],"sourceRoot":"../../../src","sources":["native/api.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,eAAA,GAAAF,OAAA;AASA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AAMA,IAAAM,QAAA,GAAAN,OAAA;AAtBA;;AAgCA;AACA;AACA;AACA;AACA;AACA;AACO,
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_nativeInternal","_useNativeCss","_usePassthrough","_reactivity","_resolve","defaultMapping","className","styled","baseComponent","mapping","options","component","configs","mappingToConfig","passThrough","props","usePassthrough","useNativeCss","name","displayName","exports","colorScheme","get","colorSchemeObs","Appearance","getColorScheme","set","value","useUnstableNativeVariable","useNativeVariable","useCssElement","incomingProps","config","useState","startsWith","slice","inheritedVariables","useContext","VariableContext","effect","setState","observers","Set","run","state","observable","resolveValue","vars","variables","Object","assign","VAR_SYMBOL","fromEntries","entries","map","k","v","replace"],"sourceRoot":"../../../src","sources":["native/api.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,eAAA,GAAAF,OAAA;AASA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AAMA,IAAAM,QAAA,GAAAN,OAAA;AAtBA;;AAgCA,MAAMO,cAAsE,GAAG;EAC7EC,SAAS,EAAE;AACb,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,MAAM,GAAGA,CAIpBC,aAAgB,EAChBC,OAAU,GAAGJ,cAAmB,EAChCK,OAAuB,KACpB;EACH,IAAIC,SAAc;EAClB;;EAEA,MAAMC,OAAO,GAAG,IAAAC,6BAAe,EAACJ,OAAO,CAAC;EAExC,IAAIC,OAAO,EAAEI,WAAW,EAAE;IACxBH,SAAS,GAA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AK,CAAC,CAAC,CAAC;EACtB;EAEA,MAAMC,kBAAkB,GAAG,IAAAC,iBAAU,EAACC,+BAAe,CAAC;EACtD,MAAM,CAACC,MAAM,EAAEC,QAAQ,CAAC,GAAG,IAAAP,eAAQ,EAAC,MAAM;IACxC,MAAMM,MAAc,GAAG;MACrBE,SAAS,EAAE,IAAIC,GAAG,CAAC,CAAC;MACpBC,GAAG,EAAEA,CAAA,KAAMH,QAAQ,CAAEI,KAAK,KAAM;QAAE,GAAGA;MAAM,CAAC,CAAC;IAC/C,CAAC;IAED,MAAMtB,GAAW,GAAIuB,UAAU,IAAKA,UAAU,CAACvB,GAAG,CAACiB,MAAM,CAAC;IAE1D,OAAO;MAAE,GAAGA,MAAM;MAAEjB;IAAI,CAAC;EAC3B,CAAC,CAAC;EAEF,OAAO,IAAAwB,qBAAY,EAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC5B,IAAI,CAAC,CAAC,EAAEqB,MAAM,CAACjB,GAAG,EAAE;IAAEc;EAAmB,CAAC,CAAC;AAC9E;;AAEA;AACA;AACA;AACO,SAASW,IAAIA,CAACC,SAA0C,EAAE;EAC/D,OAAOC,MAAM,CAACC,MAAM,CAClB;IAAE,CAACC,sBAAU,GAAG;EAAS,CAAC,EAC1BF,MAAM,CAACG,WAAW,CAChBH,MAAM,CAACI,OAAO,CAACL,SAAS,CAAC,CAACM,GAAG,CAAC,CAAC,CAACC,CAAC,EAAEC,CAAC,CAAC,KAAK,CAACD,CAAC,CAACE,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,EAAED,CAAC,CAAC,CACrE,CACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -3,25 +3,25 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var
|
|
7
|
-
Object.keys(
|
|
6
|
+
var _api = require("./api.js");
|
|
7
|
+
Object.keys(_api).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] ===
|
|
9
|
+
if (key in exports && exports[key] === _api[key]) return;
|
|
10
10
|
Object.defineProperty(exports, key, {
|
|
11
11
|
enumerable: true,
|
|
12
12
|
get: function () {
|
|
13
|
-
return
|
|
13
|
+
return _api[key];
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
|
-
var
|
|
18
|
-
Object.keys(
|
|
17
|
+
var _reactNativeCssMetroOverride = require("./react-native-css-metro-override.js");
|
|
18
|
+
Object.keys(_reactNativeCssMetroOverride).forEach(function (key) {
|
|
19
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] ===
|
|
20
|
+
if (key in exports && exports[key] === _reactNativeCssMetroOverride[key]) return;
|
|
21
21
|
Object.defineProperty(exports, key, {
|
|
22
22
|
enumerable: true,
|
|
23
23
|
get: function () {
|
|
24
|
-
return
|
|
24
|
+
return _reactNativeCssMetroOverride[key];
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_api","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_reactNativeCssMetroOverride"],"sourceRoot":"../../../src","sources":["native/index.ts"],"mappings":";;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,IAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,IAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,IAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AAEA,IAAAK,4BAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,4BAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,4BAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,4BAAA,CAAAL,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -36,4 +36,4 @@ If you are using NativeWind follow the Metro instructions above but use 'withNat
|
|
|
36
36
|
If you are using another bundler (Vite, Webpack, etc), or non-Metro framework (Next.js, Remix, etc), please ensure you have included 'react-native-css/babel' as a babel preset.
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
|
-
//# sourceMappingURL=
|
|
39
|
+
//# sourceMappingURL=react-native-css-metro-override.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["canWarn","process","env","NODE_ENV","Error"],"sourceRoot":"../../../src","sources":["native/react-native-css-metro-override.ts"],"mappings":";;;;;AAAA,MAAMA,OAAO,GAAGC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,MAAM;AAE/C,IAAIH,OAAO,EAAE;EACX,MAAM,IAAII,KAAK,CAAC;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC;AACF","ignoreList":[]}
|
|
@@ -16,7 +16,6 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
16
16
|
const functionResolvers = {
|
|
17
17
|
...shorthands,
|
|
18
18
|
...functions,
|
|
19
|
-
animationName: shorthands.animation,
|
|
20
19
|
lineHeight: _lineHeight.lineHeight,
|
|
21
20
|
em: _units.em,
|
|
22
21
|
rem: _units.rem,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_defaults","require","functions","_interopRequireWildcard","_lineHeight","shorthands","_units","_variables","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","functionResolvers","
|
|
1
|
+
{"version":3,"names":["_defaults","require","functions","_interopRequireWildcard","_lineHeight","shorthands","_units","_variables","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","functionResolvers","lineHeight","em","rem","vh","vw","resolveValue","value","options","castToArray","endsWith","parseInt","slice","Array","isArray","isDescriptorArray","map","d","filter","undefined","name","simpleResolve","varResolver","fn","Error","transformKeys","args","joinedArgs","arg","flat","join","replace"],"sourceRoot":"../../../../src","sources":["native/styles/resolve.ts"],"mappings":";;;;;;AAWA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAF,uBAAA,CAAAF,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AAA0C,SAAAE,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAA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List":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.animationShorthand = exports.animation = void 0;
|
|
6
|
+
exports.animationShorthand = exports.animationName = exports.animation = void 0;
|
|
7
7
|
var _nativeInternal = require("react-native-css/native-internal");
|
|
8
8
|
var _objects = require("../../objects.js");
|
|
9
9
|
var _handler = require("./_handler.js");
|
|
@@ -23,7 +23,6 @@ const animation = (resolveValue, value, get, options) => {
|
|
|
23
23
|
if (!Array.isArray(animationShortHandTuples)) {
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
|
-
animationShortHandTuples.pop();
|
|
27
26
|
const nameTuple = animationShortHandTuples.find(tuple => tuple[1] === "animationName");
|
|
28
27
|
const name = nameTuple?.[0];
|
|
29
28
|
if (!nameTuple || typeof name !== "string") {
|
|
@@ -54,4 +53,9 @@ const animation = (resolveValue, value, get, options) => {
|
|
|
54
53
|
return (0, _objects.applyShorthand)(animationShortHandTuples);
|
|
55
54
|
};
|
|
56
55
|
exports.animation = animation;
|
|
56
|
+
const animationName = (resolveValue, value, get, options) => {
|
|
57
|
+
const shorthand = animation(resolveValue, value, get, options);
|
|
58
|
+
return shorthand.animationName;
|
|
59
|
+
};
|
|
60
|
+
exports.animationName = animationName;
|
|
57
61
|
//# sourceMappingURL=animation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_nativeInternal","require","_objects","_handler","name","delay","duration","iteration","fill","playState","direction","timingFunction","animationShorthand","exports","shorthandHandler","animation","resolveValue","value","get","options","animationShortHandTuples","Array","isArray","
|
|
1
|
+
{"version":3,"names":["_nativeInternal","require","_objects","_handler","name","delay","duration","iteration","fill","playState","direction","timingFunction","animationShorthand","exports","shorthandHandler","animation","resolveValue","value","get","options","animationShortHandTuples","Array","isArray","nameTuple","find","tuple","keyframes","StyleCollection","progress","declarations","props","calculateProps","s","d","renderGuards","inheritedVariables","inlineVariables","normal","Object","assign","important","style","applyShorthand","animationName","shorthand"],"sourceRoot":"../../../../../src","sources":["native/styles/shorthands/animation.ts"],"mappings":";;;;;;AACA,IAAAA,eAAA,GAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAD,OAAA;AAEA,IAAAE,QAAA,GAAAF,OAAA;AALA;;AAOA,MAAMG,IAAI,GAAG,CAAC,eAAe,EAAE,QAAQ,EAAE,MAAM,CAAU;AACzD,MAAMC,KAAK,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,CAAC,CAAU;AACtD,MAAMC,QAAQ,GAAG,CAAC,mBAAmB,EAAE,QAAQ,EAAE,CAAC,CAAU;AAC5D,MAAMC,SAAS,GAAG,CAChB,yBAAyB,EACzB,CAAC,QAAQ,EAAE,UAAU,CAAC,EACtB,CAAC,CACO;AACV,MAAMC,IAAI,GAAG,CACX,mBAAmB,EACnB,CAAC,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,CAAC,EACzC,MAAM,CACE;AACV,MAAMC,SAAS,GAAG,CAChB,oBAAoB,EACpB,CAAC,SAAS,EAAE,QAAQ,CAAC,EACrB,SAAS,CACD;AACV,MAAMC,SAAS,GAAG,CAChB,oBAAoB,EACpB,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,mBAAmB,CAAC,EACvD,QAAQ,CACA;AACV,MAAMC,cAAc,GAAG,CACrB,yBAAyB,EACzB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,CAAC,EAClE,MAAM,CACE;AAEH,MAAMC,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,IAAAE,yBAAgB,EAChD,CACE,CAACV,IAAI,CAAC,EACN,CAACE,QAAQ,EAAEF,IAAI,CAAC,EAChB,CAACA,IAAI,EAAEE,QAAQ,CAAC,EAChB,CAACF,IAAI,EAAEE,QAAQ,EAAEC,SAAS,CAAC,EAC3B,CAACH,IAAI,EAAEE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,GAClCb,GAAG;IACH;IACA,CAAC;MAAEc,CAAC,EAAE,CAAC,CAAC,CAAC;MAAEC,CAAC,EAAEJ;IAAa,CAAC,CAAC,EAC7BV,OAAO,CAACe,YAAY,EACpBf,OAAO,CAACgB,kBAAkB,EAC1BhB,OAAO,CAACiB,eACV,CAAC;IAED,IAAI,CAACN,KAAK,EAAE;MACV;IACF;IAEA,IAAIA,KAAK,CAACO,MAAM,EAAE;MAChBC,MAAM,CAACC,MAAM,CAACxB,SAAS,CAACa,QAAQ,CAAC,EAAEE,KAAK,CAACO,MAAM,CAAC;IAClD;IACA,IAAIP,KAAK,CAACU,SAAS,EAAE;MACnBF,MAAM,CAACC,MAAM,CAACxB,SAAS,CAACa,QAAQ,CAAC,EAAEE,KAAK,CAACU,SAAS,CAAC;IACrD;IAEAzB,SAAS,CAACa,QAAQ,CAAC,GAAGb,SAAS,CAACa,QAAQ,CAAC,CAACa,KAAK;EACjD;EAEAlB,SAAS,CAAC,CAAC,CAAC,GAAGR,SAAS;EAExB,OAAO,IAAA2B,uBAAc,EAACtB,wBAAwB,CAAC;AACjD,CAAC;AAACP,OAAA,CAAAE,SAAA,GAAAA,SAAA;AAEK,MAAM4B,aAAoC,GAAGA,CAClD3B,YAAY,EACZC,KAAK,EACLC,GAAG,EACHC,OAAO,KACJ;EACH,MAAMyB,SAAc,GAAG7B,SAAS,CAACC,YAAY,EAAEC,KAAK,EAAEC,GAAG,EAAEC,OAAO,CAAC;EACnE,OAAOyB,SAAS,CAACD,aAAa;AAChC,CAAC;AAAC9B,OAAA,CAAA8B,aAAA,GAAAA,aAAA","ignoreList":[]}
|
package/dist/commonjs/web/api.js
CHANGED
|
@@ -10,7 +10,10 @@ var _react = require("react");
|
|
|
10
10
|
var _reactNative = require("react-native");
|
|
11
11
|
var _assignStyle = require("./assign-style.js");
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
const
|
|
13
|
+
const defaultMapping = {
|
|
14
|
+
className: "style"
|
|
15
|
+
};
|
|
16
|
+
const styled = (baseComponent, mapping = defaultMapping, _options) => {
|
|
14
17
|
return props => {
|
|
15
18
|
return useCssElement(baseComponent, mapping, props);
|
|
16
19
|
};
|
|
@@ -66,7 +69,7 @@ function vars(variables) {
|
|
|
66
69
|
function VariableContextProvider(props) {
|
|
67
70
|
const style = (0, _react.useMemo)(() => {
|
|
68
71
|
return {
|
|
69
|
-
display: "
|
|
72
|
+
display: "contents",
|
|
70
73
|
...Object.fromEntries(Object.entries(props.value).map(([key, value]) => [key.startsWith("--") ? key : `--${key}`, value]))
|
|
71
74
|
};
|
|
72
75
|
}, [props.value]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_assignStyle","_jsxRuntime","styled","baseComponent","mapping","_options","props","useCssElement","exports","component","incomingProps","key","value","Object","entries","source","target","assignStyle","$$css","split","createElement","colorScheme","get","Appearance","getColorScheme","set","name","setColorScheme","vars","variables","$variables","startsWith","toString","VariableContextProvider","style","useMemo","display","fromEntries","map","jsx","children","useNativeVariable","Error","useUnstableNativeVariable"],"sourceRoot":"../../../src","sources":["web/api.tsx"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_assignStyle","_jsxRuntime","defaultMapping","className","styled","baseComponent","mapping","_options","props","useCssElement","exports","component","incomingProps","key","value","Object","entries","source","target","assignStyle","$$css","split","createElement","colorScheme","get","Appearance","getColorScheme","set","name","setColorScheme","vars","variables","$variables","startsWith","toString","VariableContextProvider","style","useMemo","display","fromEntries","map","jsx","children","useNativeVariable","Error","useUnstableNativeVariable"],"sourceRoot":"../../../src","sources":["web/api.tsx"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAOA,IAAAC,YAAA,GAAAD,OAAA;AAWA,IAAAE,YAAA,GAAAF,OAAA;AAA6C,IAAAG,WAAA,GAAAH,OAAA;AAE7C,MAAMI,cAAsE,G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C;AAAClC,OAAA,CAAAiC,iBAAA,GAAAA,iBAAA;AAEK,MAAME,yBAAyB,GAAGA,CAAA,KAAM;EAC7C,MAAM,IAAID,KAAK,CAAC,mDAAmD,CAAC;AACtE,CAAC;AAAClC,OAAA,CAAAmC,yBAAA,GAAAA,yBAAA","ignoreList":[]}
|
|
@@ -16,11 +16,11 @@ export function maybeMutateReactNativeOptions(rule, _builder) {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/***********************************************
|
|
19
|
-
* @
|
|
19
|
+
* @nativeMapping *
|
|
20
20
|
***********************************************/
|
|
21
21
|
|
|
22
|
-
function
|
|
23
|
-
return rule.type === "unknown" && rule.value.name === "
|
|
22
|
+
function isNativeMappingAtRule(rule) {
|
|
23
|
+
return rule.type === "unknown" && rule.value.name === "nativeMapping";
|
|
24
24
|
}
|
|
25
25
|
export function parsePropAtRule(rules) {
|
|
26
26
|
// Include any default mapping here
|
|
@@ -37,12 +37,12 @@ export function parsePropAtRule(rules) {
|
|
|
37
37
|
};
|
|
38
38
|
if (!rules) return mapping;
|
|
39
39
|
for (const rule of rules) {
|
|
40
|
-
if (!
|
|
40
|
+
if (!isNativeMappingAtRule(rule)) continue;
|
|
41
41
|
if (rule.value.prelude.length > 0) {
|
|
42
42
|
const prelude = rule.value.prelude.filter(item => {
|
|
43
43
|
return item.value.type !== "white-space";
|
|
44
44
|
});
|
|
45
|
-
|
|
45
|
+
nativeMappingAtRuleBlock(prelude, mapping);
|
|
46
46
|
} else if (rule.value.block) {
|
|
47
47
|
// Remove all whitespace tokens
|
|
48
48
|
const blocks = rule.value.block.filter(item => {
|
|
@@ -54,37 +54,51 @@ export function parsePropAtRule(rules) {
|
|
|
54
54
|
return item.value.type === "semicolon";
|
|
55
55
|
});
|
|
56
56
|
for (const block of blockRules) {
|
|
57
|
-
|
|
57
|
+
nativeMappingAtRuleBlock(block, mapping);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
return mapping;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
|
|
63
|
+
function nativeMappingAtRuleBlock(token, mapping = {}) {
|
|
64
|
+
let [from, to] = splitByDelimiter(token, item => {
|
|
65
65
|
return item.value.type === "colon";
|
|
66
66
|
});
|
|
67
|
-
|
|
67
|
+
|
|
68
|
+
// @nativeMapping <to>; (has no from value)
|
|
69
|
+
if (!to) {
|
|
70
|
+
to = from;
|
|
71
|
+
from = [{
|
|
72
|
+
type: "token",
|
|
73
|
+
value: {
|
|
74
|
+
type: "ident",
|
|
75
|
+
value: "*"
|
|
76
|
+
}
|
|
77
|
+
}];
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// We can only map from a single property
|
|
81
|
+
if (!from || from.length !== 1 || !to) {
|
|
68
82
|
return mapping;
|
|
69
83
|
}
|
|
70
84
|
const fromToken = from[0];
|
|
71
85
|
if (!fromToken || fromToken.value.type !== "ident") {
|
|
72
86
|
return mapping;
|
|
73
87
|
}
|
|
74
|
-
|
|
75
|
-
mapping["*"] = toRNProperty(fromToken.value.value);
|
|
76
|
-
return mapping;
|
|
77
|
-
}
|
|
78
|
-
mapping[toRNProperty(fromToken.value.value)] = to.flatMap((item, index) => {
|
|
88
|
+
let value = to.flatMap((item, index) => {
|
|
79
89
|
switch (item.value.type) {
|
|
80
90
|
case "delim":
|
|
81
|
-
return index === 0 && item.value.value === "
|
|
91
|
+
return index === 0 && item.value.value === "&" ? ["&"] : [];
|
|
82
92
|
case "ident":
|
|
83
|
-
return
|
|
93
|
+
return item.value.value.split(".").map(part => toRNProperty(part));
|
|
84
94
|
default:
|
|
85
95
|
return [];
|
|
86
96
|
}
|
|
87
97
|
});
|
|
98
|
+
if (value.length === 2 && value[0] === "&" && value[1]) {
|
|
99
|
+
value = value[1];
|
|
100
|
+
}
|
|
101
|
+
mapping[toRNProperty(fromToken.value.value)] = value;
|
|
88
102
|
return mapping;
|
|
89
103
|
}
|
|
90
104
|
//# sourceMappingURL=atRules.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["toRNProperty","splitByDelimiter","maybeMutateReactNativeOptions","rule","_builder","type","value","name","
|
|
1
|
+
{"version":3,"names":["toRNProperty","splitByDelimiter","maybeMutateReactNativeOptions","rule","_builder","type","value","name","isNativeMappingAtRule","parsePropAtRule","rules","mapping","prelude","length","filter","item","nativeMappingAtRuleBlock","block","blocks","blockRules","token","from","to","fromToken","flatMap","index","split","map","part"],"sourceRoot":"../../../src","sources":["compiler/atRules.ts"],"mappings":";;AAQA,SAASA,YAAY,QAAQ,gBAAa;AAC1C,SAASC,gBAAgB,QAAQ,yBAAsB;;AAYvD;AACA;AACA;;AAcA,OAAO,SAASC,6BAA6BA,CAC3CC,IAA8B,EAC9BC,QAA2B,EAC3B;EACA,IAAID,IAAI,CAACE,IAAI,KAAK,QAAQ,IAAIF,IAAI,CAACG,KAAK,EAAEC,IAAI,KAAK,cAAc,EAAE;IACjE;EACF;;EAEA;AACF;;AAEA;AACA;AACA;;AAEA,SAASC,qBAAqBA,CAACL,IAAuB,EAAsB;EAC1E,OAAOA,IAAI,CAACE,IAAI,KAAK,SAAS,IAAIF,IAAI,CAACG,KAAK,CAACC,IAAI,KAAK,eAAe;AACvE;AAEA,OAAO,SAASE,eAAeA,CAACC,KAA6B,EAAE;EAC7D;EACA,MAAMC,OAAyB,GAAG;IAChC,aAAa,EAAE,CAAC,aAAa,CAAC;IAC9B,MAAM,EAAE,CAAC,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,QAAQ,CAAC;IACpB,cAAc,EAAE,CAAC,aAAa,CAAC;IAC/B,oBAAoB,EAAE,CAAC,eAAe,CAAC;IACvC,kBAAkB,EAAE,CAAC,gBAAgB,EAAE,OAAO,CAAC;IAC/C,kBAAkB,EAAE,CAAC,gBAAgB,EAAE,YAAY,CAAC;IACpD,mBAAmB,EAAE,CAAC,gBAAgB,EAAE,QAAQ,CAAC;IACjD,kBAAkB,EAAE,CAAC,gBAAgB,EAAE,YAAY;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3
|
/* eslint-disable */
|
|
4
4
|
import { inspect } from "node:util";
|
|
5
5
|
import { debug } from "debug";
|
|
6
|
-
import { Features, transform as lightningcss } from "lightningcss";
|
|
7
6
|
import { maybeMutateReactNativeOptions, parsePropAtRule } from "./atRules.js";
|
|
8
7
|
import { parseContainerCondition } from "./container-query.js";
|
|
9
8
|
import { parseDeclaration, round } from "./declarations.js";
|
|
10
9
|
import { inlineVariables } from "./inline-variables.js";
|
|
11
10
|
import { extractKeyFrames } from "./keyframes.js";
|
|
11
|
+
import { lightningcssLoader } from "./lightningcss-loader.js";
|
|
12
12
|
import { parseMediaQuery } from "./media-query.js";
|
|
13
13
|
import { StylesheetBuilder } from "./stylesheet.js";
|
|
14
14
|
import { supportsConditionValid } from "./supports.js";
|
|
@@ -37,6 +37,10 @@ export function compile(code, options = {}) {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
const builder = new StylesheetBuilder(options);
|
|
40
|
+
const {
|
|
41
|
+
lightningcss,
|
|
42
|
+
Features
|
|
43
|
+
} = lightningcssLoader();
|
|
40
44
|
logger(`Lightningcss first pass`);
|
|
41
45
|
|
|
42
46
|
/**
|
|
@@ -146,7 +150,7 @@ export function compile(code, options = {}) {
|
|
|
146
150
|
/**
|
|
147
151
|
* Extracts style declarations and animations from a given CSS rule, based on its type.
|
|
148
152
|
*/
|
|
149
|
-
function extractRule(rule, builder) {
|
|
153
|
+
function extractRule(rule, builder, mapping = {}) {
|
|
150
154
|
// Check the rule's type to determine which extraction function to call
|
|
151
155
|
switch (rule.type) {
|
|
152
156
|
case "keyframes":
|
|
@@ -158,13 +162,13 @@ function extractRule(rule, builder) {
|
|
|
158
162
|
case "container":
|
|
159
163
|
{
|
|
160
164
|
// If the rule is a container, extract it with the `extractedContainer` function
|
|
161
|
-
extractContainer(rule.value, builder);
|
|
165
|
+
extractContainer(rule.value, builder, mapping);
|
|
162
166
|
break;
|
|
163
167
|
}
|
|
164
168
|
case "media":
|
|
165
169
|
{
|
|
166
170
|
// If the rule is a media query, extract it with the `extractMedia` function
|
|
167
|
-
extractMedia(rule.value, builder);
|
|
171
|
+
extractMedia(rule.value, builder, mapping);
|
|
168
172
|
break;
|
|
169
173
|
}
|
|
170
174
|
case "nested-declarations":
|
|
@@ -173,7 +177,9 @@ function extractRule(rule, builder) {
|
|
|
173
177
|
const declarationBlock = value.declarations;
|
|
174
178
|
if (declarationBlock) {
|
|
175
179
|
if (declarationBlock.declarations?.length) {
|
|
176
|
-
builder.newNestedRule(
|
|
180
|
+
builder.newNestedRule({
|
|
181
|
+
mapping
|
|
182
|
+
});
|
|
177
183
|
for (const declaration of declarationBlock.declarations) {
|
|
178
184
|
parseDeclaration(declaration, builder);
|
|
179
185
|
}
|
|
@@ -181,6 +187,7 @@ function extractRule(rule, builder) {
|
|
|
181
187
|
}
|
|
182
188
|
if (declarationBlock.importantDeclarations?.length) {
|
|
183
189
|
builder.newNestedRule({
|
|
190
|
+
mapping,
|
|
184
191
|
important: true
|
|
185
192
|
});
|
|
186
193
|
for (const declaration of declarationBlock.importantDeclarations) {
|
|
@@ -195,19 +202,22 @@ function extractRule(rule, builder) {
|
|
|
195
202
|
{
|
|
196
203
|
const value = rule.value;
|
|
197
204
|
const declarationBlock = value.declarations;
|
|
198
|
-
|
|
205
|
+
mapping = {
|
|
206
|
+
...mapping,
|
|
207
|
+
...parsePropAtRule(value.rules)
|
|
208
|
+
};
|
|
199
209
|
|
|
200
210
|
// If the rule is a style declaration, extract it with the `getExtractedStyle` function and store it in the `declarations` map
|
|
201
211
|
builder = builder.fork("style", value.selectors);
|
|
202
212
|
if (declarationBlock) {
|
|
203
|
-
if (declarationBlock.declarations) {
|
|
213
|
+
if (declarationBlock.declarations?.length) {
|
|
204
214
|
builder.newRule(mapping);
|
|
205
215
|
for (const declaration of declarationBlock.declarations) {
|
|
206
216
|
parseDeclaration(declaration, builder);
|
|
207
217
|
}
|
|
208
218
|
builder.applyRuleToSelectors();
|
|
209
219
|
}
|
|
210
|
-
if (declarationBlock.importantDeclarations) {
|
|
220
|
+
if (declarationBlock.importantDeclarations?.length) {
|
|
211
221
|
builder.newRule(mapping, {
|
|
212
222
|
important: true
|
|
213
223
|
});
|
|
@@ -219,20 +229,20 @@ function extractRule(rule, builder) {
|
|
|
219
229
|
}
|
|
220
230
|
if (value.rules) {
|
|
221
231
|
for (const nestedRule of value.rules) {
|
|
222
|
-
extractRule(nestedRule, builder);
|
|
232
|
+
extractRule(nestedRule, builder, mapping);
|
|
223
233
|
}
|
|
224
234
|
}
|
|
225
235
|
break;
|
|
226
236
|
}
|
|
227
237
|
case "layer-block":
|
|
228
238
|
for (const layerRule of rule.value.rules) {
|
|
229
|
-
extractRule(layerRule, builder);
|
|
239
|
+
extractRule(layerRule, builder, mapping);
|
|
230
240
|
}
|
|
231
241
|
break;
|
|
232
242
|
case "supports":
|
|
233
243
|
if (supportsConditionValid(rule.value.condition)) {
|
|
234
244
|
for (const layerRule of rule.value.rules) {
|
|
235
|
-
extractRule(layerRule, builder);
|
|
245
|
+
extractRule(layerRule, builder, mapping);
|
|
236
246
|
}
|
|
237
247
|
}
|
|
238
248
|
break;
|
|
@@ -269,7 +279,7 @@ function extractRule(rule, builder) {
|
|
|
269
279
|
*
|
|
270
280
|
* @returns undefined if no screen media queries are found in the mediaRule, else it returns the extracted styles.
|
|
271
281
|
*/
|
|
272
|
-
function extractMedia(mediaRule, builder) {
|
|
282
|
+
function extractMedia(mediaRule, builder, mapping) {
|
|
273
283
|
builder = builder.fork("media");
|
|
274
284
|
|
|
275
285
|
// Initialize an empty array to store screen media queries
|
|
@@ -296,7 +306,7 @@ function extractMedia(mediaRule, builder) {
|
|
|
296
306
|
|
|
297
307
|
// Iterate over all rules in the mediaRule and extract their styles using the updated CompilerCollection
|
|
298
308
|
for (const rule of mediaRule.rules) {
|
|
299
|
-
extractRule(rule, builder);
|
|
309
|
+
extractRule(rule, builder, mapping);
|
|
300
310
|
}
|
|
301
311
|
}
|
|
302
312
|
|
|
@@ -305,7 +315,7 @@ function extractMedia(mediaRule, builder) {
|
|
|
305
315
|
* @param collection - The CompilerCollection object to use when extracting styles.
|
|
306
316
|
* @param parseOptions - The CssToReactNativeRuntimeOptions object to use when parsing styles.
|
|
307
317
|
*/
|
|
308
|
-
function extractContainer(containerRule, builder) {
|
|
318
|
+
function extractContainer(containerRule, builder, mapping) {
|
|
309
319
|
builder = builder.fork("container");
|
|
310
320
|
|
|
311
321
|
// Iterate over all rules inside the containerRule and extract their styles using the updated CompilerCollection
|
|
@@ -317,7 +327,7 @@ function extractContainer(containerRule, builder) {
|
|
|
317
327
|
}
|
|
318
328
|
builder.addContainerQuery(query);
|
|
319
329
|
for (const rule of containerRule.rules) {
|
|
320
|
-
extractRule(rule, builder);
|
|
330
|
+
extractRule(rule, builder, mapping);
|
|
321
331
|
}
|
|
322
332
|
}
|
|
323
333
|
//# sourceMappingURL=compiler.js.map
|