react-native-css 0.0.0-nightly.99fdf44 → 0.0.0-nightly.9e1cae4
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 +5 -5
- package/dist/commonjs/compiler/atRules.js +17 -17
- package/dist/commonjs/compiler/atRules.js.map +1 -1
- package/dist/commonjs/compiler/declarations.js +61 -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 +12 -2
- package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -1
- package/dist/commonjs/compiler/stylesheet.js +2 -5
- package/dist/commonjs/compiler/stylesheet.js.map +1 -1
- package/dist/commonjs/compiler/supports.js +3 -1
- 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 +6 -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 +6 -6
- package/dist/commonjs/components/ImageBackground.js.map +1 -1
- package/dist/commonjs/components/KeyboardAvoidingView.js +6 -6
- 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 +265 -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 +1 -1
- package/dist/commonjs/jest/index.js.map +1 -1
- package/dist/commonjs/metro/index.js +8 -118
- 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/native/react/useNativeCss.js +11 -5
- package/dist/commonjs/native/react/useNativeCss.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/functions/color-mix.js +50 -0
- package/dist/commonjs/native/styles/functions/color-mix.js.map +1 -0
- 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/index.js +249 -19
- package/dist/commonjs/native/styles/index.js.map +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 +6 -3
- package/dist/commonjs/web/api.js.map +1 -1
- package/dist/module/compiler/atRules.js +17 -17
- package/dist/module/compiler/atRules.js.map +1 -1
- package/dist/module/compiler/declarations.js +60 -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 +12 -2
- package/dist/module/compiler/lightningcss-loader.js.map +1 -1
- package/dist/module/compiler/stylesheet.js +2 -5
- package/dist/module/compiler/stylesheet.js.map +1 -1
- package/dist/module/compiler/supports.js +3 -1
- 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 +4 -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 +4 -3
- package/dist/module/components/ImageBackground.js.map +1 -1
- package/dist/module/components/KeyboardAvoidingView.js +4 -3
- 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 +265 -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 +1 -1
- package/dist/module/jest/index.js.map +1 -1
- package/dist/module/metro/index.js +8 -117
- 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/native/react/useNativeCss.js +11 -5
- package/dist/module/native/react/useNativeCss.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/functions/color-mix.js +45 -0
- package/dist/module/native/styles/functions/color-mix.js.map +1 -0
- 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/index.js +250 -19
- package/dist/module/native/styles/index.js.map +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 +6 -3
- 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/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 +1 -0
- package/dist/typescript/commonjs/example/src/App.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/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/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 +2 -2
- 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/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-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/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/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/index.d.ts.map +1 -1
- 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/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 +1 -0
- package/dist/typescript/module/example/src/App.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/declarations.d.ts +2 -1
- package/dist/typescript/module/src/compiler/declarations.d.ts.map +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.map +1 -1
- 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.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 +2 -2
- 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/useNativeCss.d.ts +1 -1
- package/dist/typescript/module/src/native/react/useNativeCss.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/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/index.d.ts +1 -0
- package/dist/typescript/module/src/native/styles/functions/index.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/index.d.ts.map +1 -1
- 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 +26 -14
- package/src/compiler/atRules.ts +19 -18
- package/src/compiler/declarations.ts +106 -10
- package/src/compiler/keyframes.ts +2 -2
- package/src/compiler/lightningcss-loader.ts +20 -1
- package/src/compiler/stylesheet.ts +3 -5
- package/src/compiler/supports.ts +2 -0
- package/src/components/ActivityIndicator.tsx +9 -6
- package/src/components/Button.tsx +9 -4
- package/src/components/FlatList.tsx +14 -5
- package/src/components/Image.tsx +9 -4
- package/src/components/ImageBackground.tsx +9 -6
- package/src/components/KeyboardAvoidingView.tsx +9 -6
- 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 +263 -0
- package/src/components/{index.tsx → index.ts} +0 -1
- package/src/jest/index.ts +2 -1
- package/src/metro/index.ts +8 -166
- 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/react/useNativeCss.ts +13 -6
- package/src/native/styles/calculate-props.ts +1 -1
- package/src/native/styles/functions/color-mix.ts +68 -0
- package/src/native/styles/functions/index.ts +1 -0
- package/src/native/styles/index.ts +302 -26
- 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 +10 -5
- package/types.d.ts +3 -0
- 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/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":["_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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,iBAAiB,EAAE;cAC9B;cACAO,UAAU,GAAGA,UAAU,CAACI,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC;YACnD;YAEAxB,KAAK,GAAG,GAAGa,IAAI,IAAIO,UAAU,GAAG;UAClC,CAAC,MAAM;YACLpB,KAAK,GAAG,GAAGa,IAAI,IAAIM,IAAI,GAAG;UAC5B;QACF;QAEA,OAAOjB,WAAW,IAAIF,KAAK,IAAI,CAACM,KAAK,CAACC,OAAO,CAACP,KAAK,CAAC,GAAG,CAACA,KAAK,CAAC,GAAGA,KAAK;MACxE;EACF;AACF;AAEA,SAASQ,iBAAiBA,CACxBR,KAA0C,EACd;EAC5B,OAAOM,KAAK,CAACC,OAAO,CAACP,KAAK,CAAC,IAAI,OAAOA,KAAK,CAAC,CAAC,CAAC,KAAK,QAAQ,GACvDM,KAAK,CAACC,OAAO,CAACP,KAAK,CAAC,CAAC,CAAC,CAAC,GACvB,IAAI;AACV","ignoreList":[]}
|
|
@@ -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,SAA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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,9 +10,12 @@ 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
|
-
return useCssElement(baseComponent,
|
|
18
|
+
return useCssElement(baseComponent, props, mapping);
|
|
16
19
|
};
|
|
17
20
|
};
|
|
18
21
|
exports.styled = styled;
|
|
@@ -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,GAAG;EAC7EC,SAAS,EAAE;AACb,CAAC;AAEM,MAAMC,MAAM,GAAGA,CAIpBC,aAAgB,EAChBC,OAAU,GAAGJ,cAAmB,EAChCK,QAAwB,KACrB;EACH,OAAQC,KAA+C,IAAK;IAC1D,OAAOC,aAAa,CAACJ,aAAa,EAAEG,KAAK,EAAEF,OAAO,CAAC;EACrD,CAAC;AACH,CAAC;AAACI,OAAA,CAAAN,MAAA,GAAAA,MAAA;AAEK,MAAMK,aAAa,GAAGA,CAC3BE,SAAY,EACZC,aAAoB,EACpBN,OAA+B,KAC5B;EACH,IAAIE,KAAK,GAAG;IAAE,GAAGI;EAAc,CAAC;EAEhC,KAAK,MAAM,CAACC,GAAG,EAAEC,KAAK,CAAC,IAAIC,MAAM,CAACC,OAAO,CAACV,OAAO,CAAC,EAAE;IAClD,MAAMW,MAAe,GAAGT,KAAK,CAACK,GAAG,CAAC;IAClC,IAAI,CAACI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C3B,KAA2E,EAC3E;EACA,MAAM4B,KAAK,GAAG,IAAAC,cAAO,EAAC,MAAM;IAC1B,OAAO;MACLC,OAAO,EAAE,UAAU;MACnB,GAAGvB,MAAM,CAACwB,WAAW,CACnBxB,MAAM,CAACC,OAAO,CAACR,KAAK,CAACM,KAAK,CAAC,CAAC0B,GAAG,CAAC,CAAC,CAAC3B,GAAG,EAAEC,KAAK,CAAC,KAAK,CAChDD,GAAG,CAACoB,UAAU,CAAC,IAAI,CAAC,GAAGpB,GAAG,GAAG,KAAKA,GAAG,EAAE,EACvCC,KAAK,CACN,CACH;IACF,CAAC;EACH,CAAC,EAAE,CAACN,KAAK,CAACM,KAAK,CAAC,CAAC;EAEjB,oBAAO,IAAAb,WAAA,CAAAwC,GAAA;IAAKL,KAAK,EAAEA,KAAM;IAAAM,QAAA,EAAElC,KAAK,CAACkC;EAAQ,CAAM,CAAC;AAClD;AAEO,MAAMC,iBAAiB,GAAGA,CAAA,KAAM;EACrC,MAAM,IAAIC,KAAK,CAAC,2CAA2C,CAAC;AAC9D,CAAC;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,19 +54,19 @@ 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
|
|
63
|
+
function nativeMappingAtRuleBlock(token, mapping = {}) {
|
|
64
64
|
let [from, to] = splitByDelimiter(token, item => {
|
|
65
65
|
return item.value.type === "colon";
|
|
66
66
|
});
|
|
67
67
|
|
|
68
|
-
// @
|
|
69
|
-
if (!to
|
|
68
|
+
// @nativeMapping <to>; (has no from value)
|
|
69
|
+
if (!to) {
|
|
70
70
|
to = from;
|
|
71
71
|
from = [{
|
|
72
72
|
type: "token",
|
|
@@ -78,27 +78,27 @@ function propAtRuleBlock(token, mapping = {}) {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
// We can only map from a single property
|
|
81
|
-
if (!from || from.length !== 1) {
|
|
81
|
+
if (!from || from.length !== 1 || !to) {
|
|
82
82
|
return mapping;
|
|
83
83
|
}
|
|
84
84
|
const fromToken = from[0];
|
|
85
85
|
if (!fromToken || fromToken.value.type !== "ident") {
|
|
86
86
|
return mapping;
|
|
87
87
|
}
|
|
88
|
-
|
|
89
|
-
mapping["*"] = toRNProperty(fromToken.value.value);
|
|
90
|
-
return mapping;
|
|
91
|
-
}
|
|
92
|
-
mapping[toRNProperty(fromToken.value.value)] = to.flatMap((item, index) => {
|
|
88
|
+
let value = to.flatMap((item, index) => {
|
|
93
89
|
switch (item.value.type) {
|
|
94
90
|
case "delim":
|
|
95
|
-
return index === 0 && item.value.value === "
|
|
91
|
+
return index === 0 && item.value.value === "&" ? ["&"] : [];
|
|
96
92
|
case "ident":
|
|
97
|
-
return
|
|
93
|
+
return item.value.value.split(".").map(part => toRNProperty(part));
|
|
98
94
|
default:
|
|
99
95
|
return [];
|
|
100
96
|
}
|
|
101
97
|
});
|
|
98
|
+
if (value.length === 2 && value[0] === "&" && value[1]) {
|
|
99
|
+
value = value[1];
|
|
100
|
+
}
|
|
101
|
+
mapping[toRNProperty(fromToken.value.value)] = value;
|
|
102
102
|
return mapping;
|
|
103
103
|
}
|
|
104
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,cA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AK,OAAO;QACV,OAAOoB,KAAK,KAAK,CAAC,IAAIV,IAAI,CAACT,KAAK,CAACA,KAAK,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE;MAC7D,KAAK,OAAO;QACV,OAAOS,IAAI,CAACT,KAAK,CAACA,KAAK,CAACoB,KAAK,CAAC,GAAG,CAAC,CAACC,GAAG,CAAEC,IAAI,IAAK5B,YAAY,CAAC4B,IAAI,CAAC,CAAC;MACtE;QACE,OAAO,EAAE;IACb;EACF,CAAC,CAAC;EAEF,IAAItB,KAAK,CAACO,MAAM,KAAK,CAAC,IAAIP,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,IAAIA,KAAK,CAAC,CAAC,CAAC,EAAE;IACtDA,KAAK,GAAGA,KAAK,CAAC,CAAC,CAAC;EAClB;EAEAK,OAAO,CAACX,YAAY,CAACuB,SAAS,CAACjB,KAAK,CAACA,KAAK,CAAC,CAAC,GAAGA,KAAK;EAEpD,OAAOK,OAAO;AAChB","ignoreList":[]}
|
|
@@ -782,6 +782,8 @@ export function parseUnparsed(tokenOrValue, builder, property, allowAuto = allow
|
|
|
782
782
|
case "min":
|
|
783
783
|
case "clamp":
|
|
784
784
|
return parseCalcFn(tokenOrValue.value.name, tokenOrValue.value.arguments, builder, property);
|
|
785
|
+
case "color-mix":
|
|
786
|
+
return parseColorMix(tokenOrValue.value.arguments, builder, property);
|
|
785
787
|
default:
|
|
786
788
|
{
|
|
787
789
|
builder.addWarning("value", `${tokenOrValue.value.name}()`);
|
|
@@ -1392,8 +1394,8 @@ export function parseTextShadow(declaration, builder) {
|
|
|
1392
1394
|
return;
|
|
1393
1395
|
}
|
|
1394
1396
|
builder.addDescriptor("textShadowColor", parseColor(textShadow.color, builder));
|
|
1395
|
-
builder.addDescriptor("
|
|
1396
|
-
builder.addDescriptor("
|
|
1397
|
+
builder.addDescriptor("&.textShadowOffset.width", parseLength(textShadow.xOffset, builder));
|
|
1398
|
+
builder.addDescriptor("&.textShadowOffset.height", parseLength(textShadow.yOffset, builder));
|
|
1397
1399
|
builder.addDescriptor("textShadowRadius", parseLength(textShadow.blur, builder));
|
|
1398
1400
|
}
|
|
1399
1401
|
export function parseTextDecorationStyle(declaration, builder) {
|
|
@@ -1637,12 +1639,12 @@ export function parseBoxShadow({
|
|
|
1637
1639
|
value
|
|
1638
1640
|
}, builder) {
|
|
1639
1641
|
for (const [index, shadow] of value.entries()) {
|
|
1640
|
-
builder.addDescriptor(
|
|
1641
|
-
builder.addDescriptor(
|
|
1642
|
-
builder.addDescriptor(
|
|
1643
|
-
builder.addDescriptor(
|
|
1644
|
-
builder.addDescriptor(
|
|
1645
|
-
builder.addDescriptor(
|
|
1642
|
+
builder.addDescriptor(`&.boxShadow.[${index}].color`, parseColor(shadow.color, builder));
|
|
1643
|
+
builder.addDescriptor(`&.boxShadow.[${index}].offsetX`, parseLength(shadow.xOffset, builder));
|
|
1644
|
+
builder.addDescriptor(`&.boxShadow.[${index}].offsetY`, parseLength(shadow.yOffset, builder));
|
|
1645
|
+
builder.addDescriptor(`&.boxShadow.[${index}].blurRadius`, parseLength(shadow.blur, builder));
|
|
1646
|
+
builder.addDescriptor(`&.boxShadow.[${index}].spreadDistance`, parseLength(shadow.spread, builder));
|
|
1647
|
+
builder.addDescriptor(`&.boxShadow.[${index}].inset`, shadow.inset ? true : undefined);
|
|
1646
1648
|
}
|
|
1647
1649
|
}
|
|
1648
1650
|
export function parseBoxSizing(declaration, builder) {
|
|
@@ -1834,6 +1836,54 @@ export function parseCalcFn(name, tokens, builder, property) {
|
|
|
1834
1836
|
}
|
|
1835
1837
|
return;
|
|
1836
1838
|
}
|
|
1839
|
+
export function parseColorMix(tokens, builder, property) {
|
|
1840
|
+
const [inToken, whitespace, colorSpace, comma, ...rest] = tokens;
|
|
1841
|
+
if (typeof inToken !== "object" || inToken.type !== "token" || inToken.value.type !== "ident" || inToken.value.value !== "in") {
|
|
1842
|
+
return;
|
|
1843
|
+
}
|
|
1844
|
+
if (typeof whitespace !== "object" || whitespace.type !== "token" || whitespace.value.type !== "white-space") {
|
|
1845
|
+
return;
|
|
1846
|
+
}
|
|
1847
|
+
if (typeof comma !== "object" || comma.type !== "token" || comma.value.type !== "comma") {
|
|
1848
|
+
return;
|
|
1849
|
+
}
|
|
1850
|
+
const colorSpaceArg = parseUnparsed(colorSpace, builder, property);
|
|
1851
|
+
if (typeof colorSpaceArg !== "string") {
|
|
1852
|
+
return;
|
|
1853
|
+
}
|
|
1854
|
+
let nextToken = rest.shift();
|
|
1855
|
+
const leftColorArg = parseUnparsed(nextToken, builder, property);
|
|
1856
|
+
if (!leftColorArg) {
|
|
1857
|
+
return;
|
|
1858
|
+
}
|
|
1859
|
+
nextToken = rest.shift();
|
|
1860
|
+
let leftColorPercentage;
|
|
1861
|
+
if (nextToken?.type !== "token" || nextToken.value.type !== "comma") {
|
|
1862
|
+
leftColorPercentage = parseUnparsed(nextToken, builder, property);
|
|
1863
|
+
nextToken = rest.shift();
|
|
1864
|
+
}
|
|
1865
|
+
if (typeof nextToken !== "object" || nextToken.type !== "token" || nextToken.value.type !== "comma") {
|
|
1866
|
+
return;
|
|
1867
|
+
}
|
|
1868
|
+
nextToken = rest.shift();
|
|
1869
|
+
const rightColorArg = parseUnparsed(nextToken, builder, property);
|
|
1870
|
+
if (rightColorArg === "transparent") {
|
|
1871
|
+
// Ignore the rest, treat as single color with alpha
|
|
1872
|
+
return [{}, "colorMix", [colorSpaceArg, leftColorArg, leftColorPercentage]];
|
|
1873
|
+
}
|
|
1874
|
+
nextToken = rest.shift();
|
|
1875
|
+
let rightColorPercentage;
|
|
1876
|
+
if (nextToken?.type !== "token" || nextToken.value.type !== "comma") {
|
|
1877
|
+
rightColorPercentage = parseUnparsed(nextToken, builder, property);
|
|
1878
|
+
nextToken = rest.shift();
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
// We should have expired all tokens now
|
|
1882
|
+
if (nextToken) {
|
|
1883
|
+
return;
|
|
1884
|
+
}
|
|
1885
|
+
return [{}, "colorMix", [colorSpaceArg, leftColorArg, leftColorPercentage, rightColorArg, rightColorPercentage]];
|
|
1886
|
+
}
|
|
1837
1887
|
export function parseCalcArguments([...args], builder, property) {
|
|
1838
1888
|
const parsed = [];
|
|
1839
1889
|
for (const arg of args) {
|
|
@@ -2143,13 +2193,13 @@ function parseGradientItem(item, builder) {
|
|
|
2143
2193
|
}
|
|
2144
2194
|
function parseObjectFit(declaration, builder) {
|
|
2145
2195
|
builder.addMapping({
|
|
2146
|
-
"object-fit": "contentFit"
|
|
2196
|
+
"object-fit": ["contentFit"]
|
|
2147
2197
|
});
|
|
2148
2198
|
builder.addDescriptor("object-fit", parseUnparsed(declaration.value, builder, "object-fit"));
|
|
2149
2199
|
}
|
|
2150
2200
|
function parseObjectPosition(declaration, builder) {
|
|
2151
2201
|
builder.addMapping({
|
|
2152
|
-
"object-position": "contentPosition"
|
|
2202
|
+
"object-position": ["contentPosition"]
|
|
2153
2203
|
});
|
|
2154
2204
|
builder.addDescriptor("object-position", [{}, "join", [parseUnparsed(declaration.value, builder, "object-position"), " "]]);
|
|
2155
2205
|
}
|