react-native-css 0.0.0-nightly.38ce466 → 0.0.0-nightly.4562bdf
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 +171 -13
- package/dist/commonjs/babel/helpers.js +7 -0
- package/dist/commonjs/babel/helpers.js.map +1 -1
- package/dist/commonjs/babel/import-plugin.js +20 -8
- package/dist/commonjs/babel/import-plugin.js.map +1 -1
- package/dist/commonjs/babel/index.js +6 -2
- package/dist/commonjs/babel/index.js.map +1 -1
- package/dist/commonjs/babel/react-native-web.js +17 -4
- package/dist/commonjs/babel/react-native-web.js.map +1 -1
- package/dist/commonjs/babel/react-native.js +9 -4
- package/dist/commonjs/babel/react-native.js.map +1 -1
- package/dist/commonjs/compiler/atRules.js +71 -42
- package/dist/commonjs/compiler/atRules.js.map +1 -1
- package/dist/commonjs/compiler/compiler.js +280 -64
- package/dist/commonjs/compiler/compiler.js.map +1 -1
- package/dist/commonjs/compiler/compiler.types.js +1 -1
- package/dist/commonjs/compiler/compiler.types.js.map +1 -1
- package/dist/commonjs/compiler/container-query.js +6 -1
- package/dist/commonjs/compiler/container-query.js.map +1 -1
- package/dist/commonjs/compiler/declarations.js +414 -168
- package/dist/commonjs/compiler/declarations.js.map +1 -1
- package/dist/commonjs/compiler/individual-transforms.js +129 -0
- package/dist/commonjs/compiler/individual-transforms.js.map +1 -0
- package/dist/commonjs/compiler/inline-variables.js +188 -0
- package/dist/commonjs/compiler/inline-variables.js.map +1 -0
- package/dist/commonjs/compiler/keyframes.js +1 -1
- package/dist/commonjs/compiler/keyframes.js.map +1 -1
- package/dist/commonjs/compiler/lightningcss-loader.js +53 -0
- package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -0
- package/dist/commonjs/compiler/media-query.js +16 -6
- package/dist/commonjs/compiler/media-query.js.map +1 -1
- package/dist/commonjs/compiler/pseudo-elements.js +1 -1
- package/dist/commonjs/compiler/selector-builder.js +28 -13
- package/dist/commonjs/compiler/selector-builder.js.map +1 -1
- package/dist/commonjs/compiler/selectors.js +4 -4
- package/dist/commonjs/compiler/selectors.js.map +1 -1
- package/dist/commonjs/compiler/stylesheet.js +47 -21
- package/dist/commonjs/compiler/stylesheet.js.map +1 -1
- package/dist/commonjs/compiler/supports.js +2 -2
- package/dist/commonjs/compiler/supports.js.map +1 -1
- package/dist/commonjs/components/ActivityIndicator.js +6 -6
- package/dist/commonjs/components/ActivityIndicator.js.map +1 -1
- package/dist/commonjs/components/Button.js +6 -6
- package/dist/commonjs/components/Button.js.map +1 -1
- package/dist/commonjs/components/FlatList.js +11 -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 +18 -0
- package/dist/commonjs/components/ImageBackground.js.map +1 -0
- package/dist/commonjs/components/KeyboardAvoidingView.js +18 -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/SafeAreaProvider.js +13 -0
- package/dist/commonjs/components/SafeAreaProvider.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 +313 -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/components/react-native-safe-area-context.native.js +13 -3
- package/dist/commonjs/components/react-native-safe-area-context.native.js.map +1 -1
- package/dist/commonjs/index.js +4 -15
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/jest/index.js +9 -8
- package/dist/commonjs/jest/index.js.map +1 -1
- package/dist/commonjs/metro/cache-version.js +43 -0
- package/dist/commonjs/metro/cache-version.js.map +1 -0
- package/dist/commonjs/metro/index.js +10 -118
- package/dist/commonjs/metro/index.js.map +1 -1
- package/dist/commonjs/metro/injection-code.js +1 -1
- package/dist/commonjs/metro/injection-code.js.map +1 -1
- package/dist/commonjs/metro/metro-transformer.js +24 -4
- package/dist/commonjs/metro/metro-transformer.js.map +1 -1
- package/dist/commonjs/metro/override.js +6 -0
- package/dist/commonjs/metro/override.js.map +1 -0
- package/dist/commonjs/metro/resolver.js +15 -22
- package/dist/commonjs/metro/resolver.js.map +1 -1
- package/dist/commonjs/metro/typescript.js +26 -6
- package/dist/commonjs/metro/typescript.js.map +1 -1
- package/dist/commonjs/metro/warnings.js +135 -0
- package/dist/commonjs/metro/warnings.js.map +1 -0
- package/dist/commonjs/native/api.js +122 -0
- package/dist/commonjs/native/api.js.map +1 -0
- package/dist/commonjs/native/conditions/attributes.js +51 -0
- package/dist/commonjs/native/conditions/attributes.js.map +1 -0
- package/dist/commonjs/native/conditions/container-query.js +123 -0
- package/dist/commonjs/native/conditions/container-query.js.map +1 -0
- package/dist/commonjs/native/conditions/guards.js +40 -0
- package/dist/commonjs/native/conditions/guards.js.map +1 -0
- package/dist/commonjs/native/conditions/index.js.map +1 -0
- package/dist/commonjs/native/conditions/media-query.js +98 -0
- package/dist/commonjs/native/conditions/media-query.js.map +1 -0
- package/dist/commonjs/native/index.js +28 -0
- package/dist/commonjs/native/index.js.map +1 -0
- package/dist/commonjs/native/objects.js +85 -0
- package/dist/commonjs/native/objects.js.map +1 -0
- package/dist/commonjs/native/react/interaction.js +68 -0
- package/dist/commonjs/native/react/interaction.js.map +1 -0
- package/dist/commonjs/native/react/rules.js +266 -0
- package/dist/commonjs/native/react/rules.js.map +1 -0
- package/dist/commonjs/native/react/useNativeCss.js +221 -0
- package/dist/commonjs/native/react/useNativeCss.js.map +1 -0
- package/dist/commonjs/native/react/usePassthrough.js +53 -0
- package/dist/commonjs/native/react/usePassthrough.js.map +1 -0
- package/dist/commonjs/native/react-native-css-metro-override.js +39 -0
- package/dist/commonjs/native/react-native-css-metro-override.js.map +1 -0
- package/dist/commonjs/native/reactivity.js +263 -0
- package/dist/commonjs/native/reactivity.js.map +1 -0
- package/dist/commonjs/native/reanimated.js +29 -0
- package/dist/commonjs/native/reanimated.js.map +1 -0
- package/dist/commonjs/native/styles/calculate-props.js +275 -0
- package/dist/commonjs/native/styles/calculate-props.js.map +1 -0
- package/dist/commonjs/native/styles/constants.js.map +1 -0
- package/dist/commonjs/native/styles/defaults.js.map +1 -0
- package/dist/commonjs/native/styles/functions/animation-timing.js +35 -0
- package/dist/commonjs/native/styles/functions/animation-timing.js.map +1 -0
- package/dist/commonjs/native/styles/functions/calc.js.map +1 -0
- package/dist/commonjs/native/styles/functions/color-mix.js +68 -0
- package/dist/commonjs/native/styles/functions/color-mix.js.map +1 -0
- package/dist/commonjs/native/styles/functions/filters.js +98 -0
- package/dist/commonjs/native/styles/functions/filters.js.map +1 -0
- package/dist/commonjs/native/styles/functions/index.js +94 -0
- package/dist/commonjs/native/styles/functions/index.js.map +1 -0
- package/dist/commonjs/native/styles/functions/numeric-functions.js +33 -0
- package/dist/commonjs/native/styles/functions/numeric-functions.js.map +1 -0
- package/dist/commonjs/native/styles/functions/platform-functions.js +47 -0
- package/dist/commonjs/native/styles/functions/platform-functions.js.map +1 -0
- package/dist/commonjs/native/styles/functions/string-functions.js +39 -0
- package/dist/commonjs/native/styles/functions/string-functions.js.map +1 -0
- package/dist/commonjs/native/styles/functions/transform-functions.js +111 -0
- package/dist/commonjs/native/styles/functions/transform-functions.js.map +1 -0
- package/dist/commonjs/native/styles/index.js +442 -0
- package/dist/commonjs/native/styles/index.js.map +1 -0
- package/dist/commonjs/native/styles/line-height.js +25 -0
- package/dist/commonjs/native/styles/line-height.js.map +1 -0
- package/dist/commonjs/native/styles/resolve.js +224 -0
- package/dist/commonjs/native/styles/resolve.js.map +1 -0
- package/dist/commonjs/native/styles/scale-factor.js +12 -0
- package/dist/commonjs/native/styles/scale-factor.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/_handler.js +89 -0
- package/dist/commonjs/native/styles/shorthands/_handler.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/animation.js +64 -0
- package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/border.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/box-shadow.js +69 -0
- package/dist/commonjs/native/styles/shorthands/box-shadow.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/index.js +72 -0
- package/dist/commonjs/native/styles/shorthands/index.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/logical-border-width.js +22 -0
- package/dist/commonjs/native/styles/shorthands/logical-border-width.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/text-shadow.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/transform.js +46 -0
- package/dist/commonjs/native/styles/shorthands/transform.js.map +1 -0
- package/dist/commonjs/native/styles/units.js +54 -0
- package/dist/commonjs/native/styles/units.js.map +1 -0
- package/dist/commonjs/native/styles/variables.js +204 -0
- package/dist/commonjs/native/styles/variables.js.map +1 -0
- package/dist/commonjs/native-internal/README.md +11 -0
- package/dist/commonjs/native-internal/index.js +39 -0
- package/dist/commonjs/native-internal/index.js.map +1 -0
- package/dist/commonjs/native-internal/root.js +73 -0
- package/dist/commonjs/native-internal/root.js.map +1 -0
- package/dist/commonjs/native-internal/style-collection.js +92 -0
- package/dist/commonjs/native-internal/style-collection.js.map +1 -0
- package/dist/commonjs/native-internal/variables.js +27 -0
- package/dist/commonjs/native-internal/variables.js.map +1 -0
- package/dist/commonjs/runtime.js.map +1 -0
- package/dist/commonjs/runtime.native.js.map +1 -0
- package/dist/commonjs/runtime.types.js.map +1 -0
- package/dist/commonjs/utilities/dot-notation.types.js +6 -0
- package/dist/commonjs/utilities/dot-notation.types.js.map +1 -0
- package/dist/commonjs/utilities/equality.js +41 -0
- package/dist/commonjs/utilities/equality.js.map +1 -0
- package/dist/commonjs/utilities/index.js +50 -0
- package/dist/commonjs/utilities/index.js.map +1 -0
- package/dist/commonjs/utilities/specificity.js +44 -0
- package/dist/commonjs/utilities/specificity.js.map +1 -0
- package/dist/commonjs/utilities/style-descriptor.js +45 -0
- package/dist/commonjs/utilities/style-descriptor.js.map +1 -0
- package/dist/commonjs/web/api.js +89 -0
- package/dist/commonjs/web/api.js.map +1 -0
- package/dist/commonjs/web/assign-style.js +30 -0
- package/dist/commonjs/web/assign-style.js.map +1 -0
- package/dist/commonjs/web/index.js.map +1 -0
- package/dist/commonjs/web/metro.js.map +1 -0
- package/dist/module/babel/helpers.js +6 -0
- package/dist/module/babel/helpers.js.map +1 -1
- package/dist/module/babel/import-plugin.js +22 -10
- package/dist/module/babel/import-plugin.js.map +1 -1
- package/dist/module/babel/index.js +2 -2
- package/dist/module/babel/index.js.map +1 -1
- package/dist/module/babel/react-native-web.js +16 -4
- package/dist/module/babel/react-native-web.js.map +1 -1
- package/dist/module/babel/react-native.js +9 -4
- package/dist/module/babel/react-native.js.map +1 -1
- package/dist/module/compiler/atRules.js +69 -42
- package/dist/module/compiler/atRules.js.map +1 -1
- package/dist/module/compiler/compiler.js +281 -65
- package/dist/module/compiler/compiler.js.map +1 -1
- package/dist/module/compiler/compiler.types.js +5 -1
- package/dist/module/compiler/compiler.types.js.map +1 -1
- package/dist/module/compiler/container-query.js +6 -1
- package/dist/module/compiler/container-query.js.map +1 -1
- package/dist/module/compiler/declarations.js +408 -167
- package/dist/module/compiler/declarations.js.map +1 -1
- package/dist/module/compiler/individual-transforms.js +125 -0
- package/dist/module/compiler/individual-transforms.js.map +1 -0
- package/dist/module/compiler/inline-variables.js +184 -0
- package/dist/module/compiler/inline-variables.js.map +1 -0
- package/dist/module/compiler/keyframes.js +1 -1
- package/dist/module/compiler/keyframes.js.map +1 -1
- package/dist/module/compiler/lightningcss-loader.js +48 -0
- package/dist/module/compiler/lightningcss-loader.js.map +1 -0
- package/dist/module/compiler/media-query.js +16 -6
- package/dist/module/compiler/media-query.js.map +1 -1
- package/dist/module/compiler/pseudo-elements.js +1 -1
- package/dist/module/compiler/pseudo-elements.js.map +1 -1
- package/dist/module/compiler/selector-builder.js +28 -14
- package/dist/module/compiler/selector-builder.js.map +1 -1
- package/dist/module/compiler/selectors.js +1 -1
- package/dist/module/compiler/selectors.js.map +1 -1
- package/dist/module/compiler/stylesheet.js +47 -21
- package/dist/module/compiler/stylesheet.js.map +1 -1
- package/dist/module/compiler/supports.js +2 -2
- package/dist/module/compiler/supports.js.map +1 -1
- package/dist/module/components/ActivityIndicator.js +4 -3
- package/dist/module/components/ActivityIndicator.js.map +1 -1
- package/dist/module/components/Button.js +4 -3
- package/dist/module/components/Button.js.map +1 -1
- package/dist/module/components/FlatList.js +9 -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 +14 -0
- package/dist/module/components/ImageBackground.js.map +1 -0
- package/dist/module/components/KeyboardAvoidingView.js +14 -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/SafeAreaProvider.js +4 -0
- package/dist/module/components/SafeAreaProvider.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 +313 -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/components/react-native-safe-area-context.native.js +11 -3
- package/dist/module/components/react-native-safe-area-context.native.js.map +1 -1
- package/dist/module/index.js +1 -2
- package/dist/module/index.js.map +1 -1
- package/dist/module/jest/index.js +7 -6
- package/dist/module/jest/index.js.map +1 -1
- package/dist/module/metro/cache-version.js +39 -0
- package/dist/module/metro/cache-version.js.map +1 -0
- package/dist/module/metro/index.js +10 -117
- package/dist/module/metro/index.js.map +1 -1
- package/dist/module/metro/injection-code.js +1 -1
- package/dist/module/metro/injection-code.js.map +1 -1
- package/dist/module/metro/metro-transformer.js +24 -4
- package/dist/module/metro/metro-transformer.js.map +1 -1
- package/dist/module/metro/override.js +4 -0
- package/dist/module/metro/override.js.map +1 -0
- package/dist/module/metro/resolver.js +15 -22
- package/dist/module/metro/resolver.js.map +1 -1
- package/dist/module/metro/typescript.js +26 -6
- package/dist/module/metro/typescript.js.map +1 -1
- package/dist/module/metro/warnings.js +131 -0
- package/dist/module/metro/warnings.js.map +1 -0
- package/dist/module/native/api.js +90 -0
- package/dist/module/native/api.js.map +1 -0
- package/dist/module/native/conditions/attributes.js +47 -0
- package/dist/module/native/conditions/attributes.js.map +1 -0
- package/dist/module/native/conditions/container-query.js +117 -0
- package/dist/module/native/conditions/container-query.js.map +1 -0
- package/dist/module/native/conditions/guards.js +36 -0
- package/dist/module/native/conditions/guards.js.map +1 -0
- package/dist/module/native/conditions/index.js.map +1 -0
- package/dist/module/native/conditions/media-query.js +93 -0
- package/dist/module/native/conditions/media-query.js.map +1 -0
- package/dist/module/native/index.js +5 -0
- package/dist/module/native/index.js.map +1 -0
- package/dist/module/native/objects.js +77 -0
- package/dist/module/native/objects.js.map +1 -0
- package/dist/module/native/react/interaction.js +64 -0
- package/dist/module/native/react/interaction.js.map +1 -0
- package/dist/module/native/react/rules.js +259 -0
- package/dist/module/native/react/rules.js.map +1 -0
- package/dist/module/native/react/useNativeCss.js +215 -0
- package/dist/module/native/react/useNativeCss.js.map +1 -0
- package/dist/module/native/react/usePassthrough.js +48 -0
- package/dist/module/native/react/usePassthrough.js.map +1 -0
- package/dist/module/native/react-native-css-metro-override.js +37 -0
- package/dist/module/native/react-native-css-metro-override.js.map +1 -0
- package/dist/module/native/reactivity.js +234 -0
- package/dist/module/native/reactivity.js.map +1 -0
- package/dist/module/native/reanimated.js +25 -0
- package/dist/module/native/reanimated.js.map +1 -0
- package/dist/module/native/styles/calculate-props.js +270 -0
- package/dist/module/native/styles/calculate-props.js.map +1 -0
- package/dist/module/native/styles/constants.js.map +1 -0
- package/dist/module/native/styles/defaults.js.map +1 -0
- package/dist/module/native/styles/functions/animation-timing.js +31 -0
- package/dist/module/native/styles/functions/animation-timing.js.map +1 -0
- package/dist/module/native/styles/functions/calc.js.map +1 -0
- package/dist/module/native/styles/functions/color-mix.js +63 -0
- package/dist/module/native/styles/functions/color-mix.js.map +1 -0
- package/dist/module/native/styles/functions/filters.js +83 -0
- package/dist/module/native/styles/functions/filters.js.map +1 -0
- package/dist/module/native/styles/functions/index.js +11 -0
- package/dist/module/native/styles/functions/index.js.map +1 -0
- package/dist/module/native/styles/functions/numeric-functions.js +26 -0
- package/dist/module/native/styles/functions/numeric-functions.js.map +1 -0
- package/dist/module/native/styles/functions/platform-functions.js +37 -0
- package/dist/module/native/styles/functions/platform-functions.js.map +1 -0
- package/dist/module/native/styles/functions/string-functions.js +32 -0
- package/dist/module/native/styles/functions/string-functions.js.map +1 -0
- package/dist/module/native/styles/functions/transform-functions.js +103 -0
- package/dist/module/native/styles/functions/transform-functions.js.map +1 -0
- package/dist/module/native/styles/index.js +438 -0
- package/dist/module/native/styles/index.js.map +1 -0
- package/dist/module/native/styles/line-height.js +20 -0
- package/dist/module/native/styles/line-height.js.map +1 -0
- package/dist/module/native/styles/resolve.js +219 -0
- package/dist/module/native/styles/resolve.js.map +1 -0
- package/dist/module/native/styles/scale-factor.js +8 -0
- package/dist/module/native/styles/scale-factor.js.map +1 -0
- package/dist/module/native/styles/shorthands/_handler.js +84 -0
- package/dist/module/native/styles/shorthands/_handler.js.map +1 -0
- package/dist/module/native/styles/shorthands/animation.js +57 -0
- package/dist/module/native/styles/shorthands/animation.js.map +1 -0
- package/dist/module/native/styles/shorthands/border.js.map +1 -0
- package/dist/module/native/styles/shorthands/box-shadow.js +65 -0
- package/dist/module/native/styles/shorthands/box-shadow.js.map +1 -0
- package/dist/module/native/styles/shorthands/index.js +9 -0
- package/dist/module/native/styles/shorthands/index.js.map +1 -0
- package/dist/module/native/styles/shorthands/logical-border-width.js +18 -0
- package/dist/module/native/styles/shorthands/logical-border-width.js.map +1 -0
- package/dist/module/native/styles/shorthands/text-shadow.js.map +1 -0
- package/dist/module/native/styles/shorthands/transform.js +41 -0
- package/dist/module/native/styles/shorthands/transform.js.map +1 -0
- package/dist/module/native/styles/units.js +46 -0
- package/dist/module/native/styles/units.js.map +1 -0
- package/dist/module/native/styles/variables.js +199 -0
- package/dist/module/native/styles/variables.js.map +1 -0
- package/dist/module/native-internal/README.md +11 -0
- package/dist/module/native-internal/index.js +6 -0
- package/dist/module/native-internal/index.js.map +1 -0
- package/dist/module/native-internal/root.js +67 -0
- package/dist/module/native-internal/root.js.map +1 -0
- package/dist/module/native-internal/style-collection.js +65 -0
- package/dist/module/native-internal/style-collection.js.map +1 -0
- package/dist/module/native-internal/variables.js +22 -0
- package/dist/module/native-internal/variables.js.map +1 -0
- package/dist/module/runtime.js.map +1 -0
- package/dist/module/runtime.native.js.map +1 -0
- package/dist/module/runtime.types.js.map +1 -0
- package/dist/module/utilities/dot-notation.types.js +4 -0
- package/dist/module/utilities/dot-notation.types.js.map +1 -0
- package/dist/module/utilities/equality.js +37 -0
- package/dist/module/utilities/equality.js.map +1 -0
- package/dist/module/utilities/index.js +7 -0
- package/dist/module/utilities/index.js.map +1 -0
- package/dist/module/utilities/specificity.js +39 -0
- package/dist/module/utilities/specificity.js.map +1 -0
- package/dist/module/utilities/style-descriptor.js +38 -0
- package/dist/module/utilities/style-descriptor.js.map +1 -0
- package/dist/module/web/api.js +79 -0
- package/dist/module/web/api.js.map +1 -0
- package/dist/module/web/assign-style.js +26 -0
- package/dist/module/web/assign-style.js.map +1 -0
- package/dist/module/web/index.js.map +1 -0
- package/dist/module/web/metro.js.map +1 -0
- package/dist/typescript/commonjs/src/babel/helpers.d.ts +2 -1
- package/dist/typescript/commonjs/src/babel/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/babel/import-plugin.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/babel/index.d.ts +3 -0
- package/dist/typescript/commonjs/src/babel/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/babel/react-native-web.d.ts +2 -1
- package/dist/typescript/commonjs/src/babel/react-native-web.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/babel/react-native.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/atRules.d.ts +5 -2
- package/dist/typescript/commonjs/src/compiler/atRules.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/compiler.d.ts +1 -5
- package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +35 -17
- package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts +21 -10
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/individual-transforms.d.ts +10 -0
- package/dist/typescript/commonjs/src/compiler/individual-transforms.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts +4 -0
- package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts.map +1 -0
- 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/media-query.d.ts +1 -1
- package/dist/typescript/commonjs/src/compiler/media-query.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts +3 -2
- package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +12 -11
- 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/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 +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/components/react-native-safe-area-context.native.d.ts +2 -1
- package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.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 +4 -12
- package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/cache-version.d.ts +8 -0
- package/dist/typescript/commonjs/src/metro/cache-version.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/index.d.ts +9 -5
- package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts +9 -4
- package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/override.d.ts +2 -0
- package/dist/typescript/commonjs/src/metro/override.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/typescript.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/warnings.d.ts +13 -0
- package/dist/typescript/commonjs/src/metro/warnings.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/api.d.ts +22 -0
- package/dist/typescript/commonjs/src/native/api.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/conditions/attributes.d.ts +4 -0
- package/dist/typescript/commonjs/src/native/conditions/attributes.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts +7 -0
- package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/conditions/guards.d.ts +6 -0
- package/dist/typescript/commonjs/src/native/conditions/guards.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/conditions/index.d.ts +6 -0
- package/dist/typescript/commonjs/src/native/conditions/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/conditions/media-query.d.ts +4 -0
- package/dist/typescript/commonjs/src/native/conditions/media-query.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/index.d.ts +4 -0
- package/dist/typescript/commonjs/src/native/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/objects.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/react/interaction.d.ts +6 -0
- package/dist/typescript/commonjs/src/native/react/interaction.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/react/rules.d.ts +12 -0
- package/dist/typescript/commonjs/src/native/react/rules.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts +35 -0
- package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/react/usePassthrough.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts +2 -0
- package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/reactivity.d.ts +70 -0
- package/dist/typescript/commonjs/src/native/reactivity.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/reanimated.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts +19 -0
- package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/constants.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/defaults.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/animation-timing.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/calc.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/filters.d.ts +14 -0
- package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts +9 -0
- package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/numeric-functions.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/platform-functions.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts +5 -0
- package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/transform-functions.d.ts +7 -0
- package/dist/typescript/commonjs/src/native/styles/functions/transform-functions.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/index.d.ts +31 -0
- package/dist/typescript/commonjs/src/native/styles/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/line-height.d.ts +3 -0
- package/dist/typescript/commonjs/src/native/styles/line-height.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/resolve.d.ts +21 -0
- package/dist/typescript/commonjs/src/native/styles/resolve.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/scale-factor.d.ts +2 -0
- package/dist/typescript/commonjs/src/native/styles/scale-factor.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/_handler.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts +5 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/border.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/box-shadow.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts +7 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/logical-border-width.d.ts +4 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/logical-border-width.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/text-shadow.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/transform.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/units.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/variables.d.ts +6 -0
- package/dist/typescript/commonjs/src/native/styles/variables.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native-internal/index.d.ts +4 -0
- package/dist/typescript/commonjs/src/native-internal/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native-internal/root.d.ts +56 -0
- package/dist/typescript/commonjs/src/native-internal/root.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts +16 -0
- package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native-internal/variables.d.ts +8 -0
- package/dist/typescript/commonjs/src/native-internal/variables.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime.native.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime.types.d.ts +54 -0
- package/dist/typescript/commonjs/src/runtime.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts +24 -0
- package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/utilities/equality.d.ts +2 -0
- package/dist/typescript/commonjs/src/utilities/equality.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/utilities/index.d.ts +5 -0
- package/dist/typescript/commonjs/src/utilities/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/utilities/specificity.d.ts +13 -0
- package/dist/typescript/commonjs/src/utilities/specificity.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts +17 -0
- package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/web/api.d.ts +16 -0
- package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/web/assign-style.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/web/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/web/metro.d.ts.map +1 -0
- package/dist/typescript/module/src/babel/helpers.d.ts +2 -1
- package/dist/typescript/module/src/babel/helpers.d.ts.map +1 -1
- package/dist/typescript/module/src/babel/import-plugin.d.ts +1 -1
- package/dist/typescript/module/src/babel/import-plugin.d.ts.map +1 -1
- package/dist/typescript/module/src/babel/index.d.ts +3 -0
- package/dist/typescript/module/src/babel/index.d.ts.map +1 -1
- package/dist/typescript/module/src/babel/react-native-web.d.ts +2 -1
- package/dist/typescript/module/src/babel/react-native-web.d.ts.map +1 -1
- package/dist/typescript/module/src/babel/react-native.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/atRules.d.ts +7 -4
- package/dist/typescript/module/src/compiler/atRules.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/compiler.d.ts +3 -7
- package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/compiler.types.d.ts +35 -17
- package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/container-query.d.ts +2 -2
- package/dist/typescript/module/src/compiler/container-query.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/declarations.d.ts +23 -12
- package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/index.d.ts +2 -2
- package/dist/typescript/module/src/compiler/index.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/individual-transforms.d.ts +10 -0
- package/dist/typescript/module/src/compiler/individual-transforms.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/inline-variables.d.ts +4 -0
- package/dist/typescript/module/src/compiler/inline-variables.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/keyframes.d.ts +3 -3
- package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts +30 -0
- package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/media-query.d.ts +3 -3
- package/dist/typescript/module/src/compiler/media-query.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/pseudo-elements.d.ts +1 -1
- package/dist/typescript/module/src/compiler/pseudo-elements.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/selector-builder.d.ts +4 -3
- package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/selectors.d.ts +2 -2
- package/dist/typescript/module/src/compiler/selectors.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/stylesheet.d.ts +12 -11
- 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/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 +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 +16 -8
- package/dist/typescript/module/src/components/index.d.ts.map +1 -1
- package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts +2 -1
- package/dist/typescript/module/src/components/react-native-safe-area-context.native.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 +4 -12
- package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/cache-version.d.ts +8 -0
- package/dist/typescript/module/src/metro/cache-version.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/index.d.ts +9 -5
- package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/metro-transformer.d.ts +10 -5
- package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/override.d.ts +2 -0
- package/dist/typescript/module/src/metro/override.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/typescript.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/warnings.d.ts +13 -0
- package/dist/typescript/module/src/metro/warnings.d.ts.map +1 -0
- package/dist/typescript/module/src/native/api.d.ts +22 -0
- package/dist/typescript/module/src/native/api.d.ts.map +1 -0
- package/dist/typescript/module/src/native/conditions/attributes.d.ts +4 -0
- package/dist/typescript/module/src/native/conditions/attributes.d.ts.map +1 -0
- package/dist/typescript/module/src/native/conditions/container-query.d.ts +7 -0
- package/dist/typescript/module/src/native/conditions/container-query.d.ts.map +1 -0
- package/dist/typescript/module/src/native/conditions/guards.d.ts +6 -0
- package/dist/typescript/module/src/native/conditions/guards.d.ts.map +1 -0
- package/dist/typescript/module/src/native/conditions/index.d.ts +6 -0
- package/dist/typescript/module/src/native/conditions/index.d.ts.map +1 -0
- package/dist/typescript/module/src/native/conditions/media-query.d.ts +4 -0
- package/dist/typescript/module/src/native/conditions/media-query.d.ts.map +1 -0
- package/dist/typescript/module/src/native/index.d.ts +4 -0
- package/dist/typescript/module/src/native/index.d.ts.map +1 -0
- package/dist/typescript/module/src/native/objects.d.ts.map +1 -0
- package/dist/typescript/module/src/native/react/interaction.d.ts +6 -0
- package/dist/typescript/module/src/native/react/interaction.d.ts.map +1 -0
- package/dist/typescript/module/src/native/react/rules.d.ts +12 -0
- package/dist/typescript/module/src/native/react/rules.d.ts.map +1 -0
- package/dist/typescript/module/src/native/react/useNativeCss.d.ts +35 -0
- package/dist/typescript/module/src/native/react/useNativeCss.d.ts.map +1 -0
- package/dist/typescript/module/src/native/react/usePassthrough.d.ts +4 -0
- package/dist/typescript/module/src/native/react/usePassthrough.d.ts.map +1 -0
- package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts +2 -0
- package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts.map +1 -0
- package/dist/typescript/module/src/native/reactivity.d.ts +70 -0
- package/dist/typescript/module/src/native/reactivity.d.ts.map +1 -0
- package/dist/typescript/module/src/native/reanimated.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/calculate-props.d.ts +19 -0
- package/dist/typescript/module/src/native/styles/calculate-props.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/constants.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/defaults.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts +4 -0
- package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/calc.d.ts +3 -0
- package/dist/typescript/module/src/native/styles/functions/calc.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/filters.d.ts +14 -0
- package/dist/typescript/module/src/native/styles/functions/filters.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/index.d.ts +9 -0
- package/dist/typescript/module/src/native/styles/functions/index.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts +5 -0
- package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts +8 -0
- package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts +5 -0
- package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts +7 -0
- package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/index.d.ts +31 -0
- package/dist/typescript/module/src/native/styles/index.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/line-height.d.ts +3 -0
- package/dist/typescript/module/src/native/styles/line-height.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/resolve.d.ts +21 -0
- package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/scale-factor.d.ts +2 -0
- package/dist/typescript/module/src/native/styles/scale-factor.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts +11 -0
- package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts +5 -0
- package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/border.d.ts +2 -0
- package/dist/typescript/module/src/native/styles/shorthands/border.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts +3 -0
- package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/index.d.ts +7 -0
- package/dist/typescript/module/src/native/styles/shorthands/index.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/logical-border-width.d.ts +4 -0
- package/dist/typescript/module/src/native/styles/shorthands/logical-border-width.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts +2 -0
- package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts +7 -0
- package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/units.d.ts +6 -0
- package/dist/typescript/module/src/native/styles/units.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/variables.d.ts +6 -0
- package/dist/typescript/module/src/native/styles/variables.d.ts.map +1 -0
- package/dist/typescript/module/src/native-internal/index.d.ts +4 -0
- package/dist/typescript/module/src/native-internal/index.d.ts.map +1 -0
- package/dist/typescript/module/src/native-internal/root.d.ts +56 -0
- package/dist/typescript/module/src/native-internal/root.d.ts.map +1 -0
- package/dist/typescript/module/src/native-internal/style-collection.d.ts +16 -0
- package/dist/typescript/module/src/native-internal/style-collection.d.ts.map +1 -0
- package/dist/typescript/module/src/native-internal/variables.d.ts +8 -0
- package/dist/typescript/module/src/native-internal/variables.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime.d.ts +2 -0
- package/dist/typescript/module/src/runtime.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime.native.d.ts +2 -0
- package/dist/typescript/module/src/runtime.native.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime.types.d.ts +54 -0
- package/dist/typescript/module/src/runtime.types.d.ts.map +1 -0
- package/dist/typescript/module/src/utilities/dot-notation.types.d.ts +24 -0
- package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -0
- package/dist/typescript/module/src/utilities/equality.d.ts +2 -0
- package/dist/typescript/module/src/utilities/equality.d.ts.map +1 -0
- package/dist/typescript/module/src/utilities/index.d.ts +5 -0
- package/dist/typescript/module/src/utilities/index.d.ts.map +1 -0
- package/dist/typescript/module/src/utilities/specificity.d.ts +13 -0
- package/dist/typescript/module/src/utilities/specificity.d.ts.map +1 -0
- package/dist/typescript/module/src/utilities/style-descriptor.d.ts +17 -0
- package/dist/typescript/module/src/utilities/style-descriptor.d.ts.map +1 -0
- package/dist/typescript/module/src/web/api.d.ts +16 -0
- package/dist/typescript/module/src/web/api.d.ts.map +1 -0
- package/dist/typescript/module/src/web/assign-style.d.ts.map +1 -0
- package/dist/typescript/module/src/web/index.d.ts +4 -0
- package/dist/typescript/module/src/web/index.d.ts.map +1 -0
- package/dist/typescript/module/src/web/metro.d.ts.map +1 -0
- package/node/babel.mjs +4 -0
- package/node/compiler.mjs +2 -0
- package/node/metro.mjs +2 -0
- package/package.json +154 -76
- package/src/babel/helpers.ts +8 -1
- package/src/babel/import-plugin.ts +31 -16
- package/src/babel/index.ts +2 -2
- package/src/babel/react-native-web.ts +32 -4
- package/src/babel/react-native.ts +9 -4
- package/src/compiler/atRules.ts +78 -43
- package/src/compiler/compiler.ts +382 -77
- package/src/compiler/compiler.types.ts +44 -17
- package/src/compiler/container-query.ts +8 -3
- package/src/compiler/declarations.ts +725 -356
- package/src/compiler/individual-transforms.ts +129 -0
- package/src/compiler/inline-variables.ts +276 -0
- package/src/compiler/keyframes.ts +2 -2
- package/src/compiler/lightningcss-loader.ts +60 -0
- package/src/compiler/media-query.ts +20 -9
- package/src/compiler/pseudo-elements.ts +1 -1
- package/src/compiler/selector-builder.ts +48 -15
- package/src/compiler/selectors.ts +1 -1
- package/src/compiler/stylesheet.ts +67 -32
- package/src/compiler/supports.ts +2 -2
- package/src/components/ActivityIndicator.tsx +11 -8
- package/src/components/Button.tsx +11 -6
- package/src/components/FlatList.tsx +21 -10
- package/src/components/Image.tsx +11 -6
- package/src/components/ImageBackground.tsx +26 -0
- package/src/components/KeyboardAvoidingView.tsx +26 -0
- package/src/components/Pressable.tsx +22 -0
- package/src/components/SafeAreaProvider.tsx +1 -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 +311 -0
- package/src/components/index.ts +17 -0
- package/src/components/react-native-safe-area-context.native.tsx +26 -2
- package/src/index.ts +0 -2
- package/src/jest/index.ts +12 -8
- package/src/metro/cache-version.ts +48 -0
- package/src/metro/index.ts +21 -170
- package/src/metro/injection-code.ts +1 -1
- package/src/metro/metro-transformer.ts +41 -9
- package/src/metro/override.ts +1 -0
- package/src/metro/resolver.ts +29 -28
- package/src/metro/typescript.ts +53 -6
- package/src/metro/warnings.ts +187 -0
- package/src/native/api.tsx +134 -0
- package/src/native/conditions/attributes.ts +71 -0
- package/src/native/conditions/container-query.ts +164 -0
- package/src/native/conditions/guards.ts +56 -0
- package/src/native/conditions/index.ts +55 -0
- package/src/native/conditions/media-query.ts +99 -0
- package/src/native/index.ts +3 -0
- package/src/native/objects.ts +99 -0
- package/src/native/react/interaction.ts +95 -0
- package/src/native/react/rules.ts +349 -0
- package/src/native/react/useNativeCss.ts +282 -0
- package/src/native/react/usePassthrough.ts +52 -0
- package/src/native/reactivity.ts +346 -0
- package/src/native/reanimated.ts +41 -0
- package/src/native/styles/calculate-props.ts +368 -0
- package/src/native/styles/functions/animation-timing.ts +46 -0
- package/src/native/styles/functions/color-mix.ts +82 -0
- package/src/native/styles/functions/filters.ts +114 -0
- package/src/native/styles/functions/index.ts +8 -0
- package/src/native/styles/functions/numeric-functions.ts +39 -0
- package/src/native/styles/functions/platform-functions.ts +52 -0
- package/src/native/styles/functions/string-functions.ts +42 -0
- package/src/native/styles/functions/transform-functions.ts +132 -0
- package/src/native/styles/index.ts +580 -0
- package/src/native/styles/line-height.ts +25 -0
- package/src/native/styles/resolve.ts +323 -0
- package/src/native/styles/scale-factor.ts +9 -0
- package/src/native/styles/shorthands/_handler.ts +135 -0
- package/src/native/styles/shorthands/animation.ts +137 -0
- package/src/native/styles/shorthands/box-shadow.ts +92 -0
- package/src/native/styles/shorthands/index.ts +6 -0
- package/src/native/styles/shorthands/logical-border-width.ts +32 -0
- package/src/native/styles/shorthands/transform.ts +48 -0
- package/src/native/styles/units.ts +62 -0
- package/src/native/styles/variables.ts +294 -0
- package/src/native-internal/README.md +11 -0
- package/src/native-internal/index.ts +3 -0
- package/src/native-internal/root.ts +114 -0
- package/src/native-internal/style-collection.ts +117 -0
- package/src/native-internal/variables.tsx +38 -0
- package/src/runtime.types.ts +159 -0
- package/src/utilities/dot-notation.types.ts +126 -0
- package/src/utilities/equality.ts +41 -0
- package/src/utilities/index.ts +4 -0
- package/src/utilities/specificity.ts +46 -0
- package/src/utilities/style-descriptor.ts +46 -0
- package/src/web/api.tsx +119 -0
- package/src/web/assign-style.ts +27 -0
- package/types.d.ts +14 -31
- package/dist/commonjs/compiler/inheritance.test.js +0 -78
- package/dist/commonjs/compiler/inheritance.test.js.map +0 -1
- package/dist/commonjs/poison.pill.js +0 -39
- package/dist/commonjs/poison.pill.js.map +0 -1
- package/dist/commonjs/runtime/index.js +0 -17
- package/dist/commonjs/runtime/index.js.map +0 -1
- package/dist/commonjs/runtime/native/api.js +0 -96
- package/dist/commonjs/runtime/native/api.js.map +0 -1
- package/dist/commonjs/runtime/native/conditions/attributes.js +0 -42
- package/dist/commonjs/runtime/native/conditions/attributes.js.map +0 -1
- package/dist/commonjs/runtime/native/conditions/container-query.js +0 -123
- package/dist/commonjs/runtime/native/conditions/container-query.js.map +0 -1
- package/dist/commonjs/runtime/native/conditions/guards.js +0 -33
- package/dist/commonjs/runtime/native/conditions/guards.js.map +0 -1
- package/dist/commonjs/runtime/native/conditions/index.js.map +0 -1
- package/dist/commonjs/runtime/native/conditions/media-query.js +0 -98
- package/dist/commonjs/runtime/native/conditions/media-query.js.map +0 -1
- package/dist/commonjs/runtime/native/index.js +0 -28
- package/dist/commonjs/runtime/native/index.js.map +0 -1
- package/dist/commonjs/runtime/native/metro.js.map +0 -1
- package/dist/commonjs/runtime/native/react/interaction.js +0 -63
- package/dist/commonjs/runtime/native/react/interaction.js.map +0 -1
- package/dist/commonjs/runtime/native/react/rules.js +0 -259
- package/dist/commonjs/runtime/native/react/rules.js.map +0 -1
- package/dist/commonjs/runtime/native/react/useNativeCss.js +0 -159
- package/dist/commonjs/runtime/native/react/useNativeCss.js.map +0 -1
- package/dist/commonjs/runtime/native/react/usePassthrough.js +0 -50
- package/dist/commonjs/runtime/native/react/usePassthrough.js.map +0 -1
- package/dist/commonjs/runtime/native/reactivity.js +0 -189
- package/dist/commonjs/runtime/native/reactivity.js.map +0 -1
- package/dist/commonjs/runtime/native/reanimated.js +0 -17
- package/dist/commonjs/runtime/native/reanimated.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/calculate-props.js +0 -148
- package/dist/commonjs/runtime/native/styles/calculate-props.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/constants.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/defaults.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/functions/animation-timing.js +0 -34
- package/dist/commonjs/runtime/native/styles/functions/animation-timing.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/functions/calc.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/functions/filters.js +0 -84
- package/dist/commonjs/runtime/native/styles/functions/filters.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/functions/index.js +0 -83
- package/dist/commonjs/runtime/native/styles/functions/index.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/functions/numeric-functions.js +0 -32
- package/dist/commonjs/runtime/native/styles/functions/numeric-functions.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/functions/platform-functions.js +0 -46
- package/dist/commonjs/runtime/native/styles/functions/platform-functions.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/functions/string-functions.js +0 -23
- package/dist/commonjs/runtime/native/styles/functions/string-functions.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/functions/transform-functions.js +0 -121
- package/dist/commonjs/runtime/native/styles/functions/transform-functions.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/index.js +0 -115
- package/dist/commonjs/runtime/native/styles/index.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/resolve.js +0 -106
- package/dist/commonjs/runtime/native/styles/resolve.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/shorthands/_handler.js +0 -79
- package/dist/commonjs/runtime/native/styles/shorthands/_handler.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/shorthands/animation.js +0 -57
- package/dist/commonjs/runtime/native/styles/shorthands/animation.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/shorthands/border.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js +0 -50
- package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/shorthands/index.js +0 -61
- package/dist/commonjs/runtime/native/styles/shorthands/index.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/shorthands/text-shadow.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/shorthands/transform.js +0 -23
- package/dist/commonjs/runtime/native/styles/shorthands/transform.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/units.js +0 -52
- package/dist/commonjs/runtime/native/styles/units.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/variables.js +0 -79
- package/dist/commonjs/runtime/native/styles/variables.js.map +0 -1
- package/dist/commonjs/runtime/runtime.js.map +0 -1
- package/dist/commonjs/runtime/runtime.native.js.map +0 -1
- package/dist/commonjs/runtime/runtime.types.js.map +0 -1
- package/dist/commonjs/runtime/utils/components.js +0 -18
- package/dist/commonjs/runtime/utils/components.js.map +0 -1
- package/dist/commonjs/runtime/utils/dot-notation.types.js +0 -2
- package/dist/commonjs/runtime/utils/dot-notation.types.js.map +0 -1
- package/dist/commonjs/runtime/utils/index.js +0 -61
- package/dist/commonjs/runtime/utils/index.js.map +0 -1
- package/dist/commonjs/runtime/utils/objects.js +0 -92
- package/dist/commonjs/runtime/utils/objects.js.map +0 -1
- package/dist/commonjs/runtime/utils/specificity.js +0 -44
- package/dist/commonjs/runtime/utils/specificity.js.map +0 -1
- package/dist/commonjs/runtime/utils/style-value.js +0 -21
- package/dist/commonjs/runtime/utils/style-value.js.map +0 -1
- package/dist/commonjs/runtime/utils/utils.types.js +0 -6
- package/dist/commonjs/runtime/utils/utils.types.js.map +0 -1
- package/dist/commonjs/runtime/web/api.js +0 -68
- package/dist/commonjs/runtime/web/api.js.map +0 -1
- package/dist/commonjs/runtime/web/assign-style.js +0 -27
- package/dist/commonjs/runtime/web/assign-style.js.map +0 -1
- package/dist/commonjs/runtime/web/index.js.map +0 -1
- package/dist/commonjs/runtime/web/metro.js +0 -6
- package/dist/commonjs/runtime/web/metro.js.map +0 -1
- package/dist/commonjs/style-collection/index.js +0 -110
- package/dist/commonjs/style-collection/index.js.map +0 -1
- package/dist/commonjs/style-collection/root.js +0 -28
- package/dist/commonjs/style-collection/root.js.map +0 -1
- package/dist/module/compiler/inheritance.test.js +0 -78
- package/dist/module/compiler/inheritance.test.js.map +0 -1
- package/dist/module/poison.pill.js +0 -37
- package/dist/module/poison.pill.js.map +0 -1
- package/dist/module/runtime/index.js +0 -9
- package/dist/module/runtime/index.js.map +0 -1
- package/dist/module/runtime/native/api.js +0 -76
- package/dist/module/runtime/native/api.js.map +0 -1
- package/dist/module/runtime/native/conditions/attributes.js +0 -38
- package/dist/module/runtime/native/conditions/attributes.js.map +0 -1
- package/dist/module/runtime/native/conditions/container-query.js +0 -117
- package/dist/module/runtime/native/conditions/container-query.js.map +0 -1
- package/dist/module/runtime/native/conditions/guards.js +0 -29
- package/dist/module/runtime/native/conditions/guards.js.map +0 -1
- package/dist/module/runtime/native/conditions/index.js.map +0 -1
- package/dist/module/runtime/native/conditions/media-query.js +0 -93
- package/dist/module/runtime/native/conditions/media-query.js.map +0 -1
- package/dist/module/runtime/native/index.js +0 -5
- package/dist/module/runtime/native/index.js.map +0 -1
- package/dist/module/runtime/native/metro.js.map +0 -1
- package/dist/module/runtime/native/react/interaction.js +0 -59
- package/dist/module/runtime/native/react/interaction.js.map +0 -1
- package/dist/module/runtime/native/react/rules.js +0 -251
- package/dist/module/runtime/native/react/rules.js.map +0 -1
- package/dist/module/runtime/native/react/useNativeCss.js +0 -153
- package/dist/module/runtime/native/react/useNativeCss.js.map +0 -1
- package/dist/module/runtime/native/react/usePassthrough.js +0 -45
- package/dist/module/runtime/native/react/usePassthrough.js.map +0 -1
- package/dist/module/runtime/native/reactivity.js +0 -177
- package/dist/module/runtime/native/reactivity.js.map +0 -1
- package/dist/module/runtime/native/reanimated.js +0 -13
- package/dist/module/runtime/native/reanimated.js.map +0 -1
- package/dist/module/runtime/native/styles/calculate-props.js +0 -143
- package/dist/module/runtime/native/styles/calculate-props.js.map +0 -1
- package/dist/module/runtime/native/styles/constants.js.map +0 -1
- package/dist/module/runtime/native/styles/defaults.js.map +0 -1
- package/dist/module/runtime/native/styles/functions/animation-timing.js +0 -30
- package/dist/module/runtime/native/styles/functions/animation-timing.js.map +0 -1
- package/dist/module/runtime/native/styles/functions/calc.js.map +0 -1
- package/dist/module/runtime/native/styles/functions/filters.js +0 -70
- package/dist/module/runtime/native/styles/functions/filters.js.map +0 -1
- package/dist/module/runtime/native/styles/functions/index.js +0 -10
- package/dist/module/runtime/native/styles/functions/index.js.map +0 -1
- package/dist/module/runtime/native/styles/functions/numeric-functions.js +0 -25
- package/dist/module/runtime/native/styles/functions/numeric-functions.js.map +0 -1
- package/dist/module/runtime/native/styles/functions/platform-functions.js +0 -36
- package/dist/module/runtime/native/styles/functions/platform-functions.js.map +0 -1
- package/dist/module/runtime/native/styles/functions/string-functions.js +0 -18
- package/dist/module/runtime/native/styles/functions/string-functions.js.map +0 -1
- package/dist/module/runtime/native/styles/functions/transform-functions.js +0 -114
- package/dist/module/runtime/native/styles/functions/transform-functions.js.map +0 -1
- package/dist/module/runtime/native/styles/index.js +0 -110
- package/dist/module/runtime/native/styles/index.js.map +0 -1
- package/dist/module/runtime/native/styles/resolve.js +0 -101
- package/dist/module/runtime/native/styles/resolve.js.map +0 -1
- package/dist/module/runtime/native/styles/shorthands/_handler.js +0 -74
- package/dist/module/runtime/native/styles/shorthands/_handler.js.map +0 -1
- package/dist/module/runtime/native/styles/shorthands/animation.js +0 -51
- package/dist/module/runtime/native/styles/shorthands/animation.js.map +0 -1
- package/dist/module/runtime/native/styles/shorthands/border.js.map +0 -1
- package/dist/module/runtime/native/styles/shorthands/box-shadow.js +0 -45
- package/dist/module/runtime/native/styles/shorthands/box-shadow.js.map +0 -1
- package/dist/module/runtime/native/styles/shorthands/index.js +0 -8
- package/dist/module/runtime/native/styles/shorthands/index.js.map +0 -1
- package/dist/module/runtime/native/styles/shorthands/text-shadow.js.map +0 -1
- package/dist/module/runtime/native/styles/shorthands/transform.js +0 -18
- package/dist/module/runtime/native/styles/shorthands/transform.js.map +0 -1
- package/dist/module/runtime/native/styles/units.js +0 -43
- package/dist/module/runtime/native/styles/units.js.map +0 -1
- package/dist/module/runtime/native/styles/variables.js +0 -75
- package/dist/module/runtime/native/styles/variables.js.map +0 -1
- package/dist/module/runtime/runtime.js.map +0 -1
- package/dist/module/runtime/runtime.native.js.map +0 -1
- package/dist/module/runtime/runtime.types.js.map +0 -1
- package/dist/module/runtime/utils/components.js +0 -14
- package/dist/module/runtime/utils/components.js.map +0 -1
- package/dist/module/runtime/utils/dot-notation.types.js +0 -2
- package/dist/module/runtime/utils/dot-notation.types.js.map +0 -1
- package/dist/module/runtime/utils/index.js +0 -8
- package/dist/module/runtime/utils/index.js.map +0 -1
- package/dist/module/runtime/utils/objects.js +0 -84
- package/dist/module/runtime/utils/objects.js.map +0 -1
- package/dist/module/runtime/utils/specificity.js +0 -39
- package/dist/module/runtime/utils/specificity.js.map +0 -1
- package/dist/module/runtime/utils/style-value.js +0 -16
- package/dist/module/runtime/utils/style-value.js.map +0 -1
- package/dist/module/runtime/utils/utils.types.js +0 -4
- package/dist/module/runtime/utils/utils.types.js.map +0 -1
- package/dist/module/runtime/web/api.js +0 -59
- package/dist/module/runtime/web/api.js.map +0 -1
- package/dist/module/runtime/web/assign-style.js +0 -23
- package/dist/module/runtime/web/assign-style.js.map +0 -1
- package/dist/module/runtime/web/index.js.map +0 -1
- package/dist/module/runtime/web/metro.js +0 -5
- package/dist/module/runtime/web/metro.js.map +0 -1
- package/dist/module/style-collection/index.js +0 -95
- package/dist/module/style-collection/index.js.map +0 -1
- package/dist/module/style-collection/root.js +0 -24
- package/dist/module/style-collection/root.js.map +0 -1
- package/dist/typescript/commonjs/example/app.config.d.ts +0 -4
- package/dist/typescript/commonjs/example/app.config.d.ts.map +0 -1
- package/dist/typescript/commonjs/example/src/App.d.ts +0 -3
- package/dist/typescript/commonjs/example/src/App.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts +0 -2
- package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/poison.pill.d.ts +0 -2
- package/dist/typescript/commonjs/src/poison.pill.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/index.d.ts +0 -7
- package/dist/typescript/commonjs/src/runtime/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/api.d.ts +0 -19
- package/dist/typescript/commonjs/src/runtime/native/api.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts +0 -5
- package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts +0 -7
- package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts +0 -5
- package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts +0 -6
- package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts +0 -4
- package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/index.d.ts +0 -4
- package/dist/typescript/commonjs/src/runtime/native/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/metro.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts +0 -6
- package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts +0 -7
- package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts +0 -38
- package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts +0 -55
- package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/reanimated.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts +0 -10
- package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/animation-timing.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/calc.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/filters.d.ts +0 -12
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/filters.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/index.d.ts +0 -8
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/numeric-functions.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/platform-functions.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/string-functions.d.ts +0 -3
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/string-functions.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/transform-functions.d.ts +0 -5
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/transform-functions.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts +0 -19
- package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts +0 -18
- package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/_handler.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts +0 -4
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/border.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/index.d.ts +0 -6
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/transform.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts +0 -5
- package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/runtime.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts +0 -47
- package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/utils/components.d.ts +0 -2
- package/dist/typescript/commonjs/src/runtime/utils/components.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts +0 -23
- package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/utils/index.d.ts +0 -6
- package/dist/typescript/commonjs/src/runtime/utils/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts +0 -13
- package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts +0 -4
- package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts +0 -5
- package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/web/api.d.ts +0 -10
- package/dist/typescript/commonjs/src/runtime/web/api.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/web/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/web/metro.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/style-collection/index.d.ts +0 -14
- package/dist/typescript/commonjs/src/style-collection/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/style-collection/root.d.ts +0 -11
- package/dist/typescript/commonjs/src/style-collection/root.d.ts.map +0 -1
- package/dist/typescript/module/example/app.config.d.ts +0 -4
- package/dist/typescript/module/example/app.config.d.ts.map +0 -1
- package/dist/typescript/module/example/src/App.d.ts +0 -3
- package/dist/typescript/module/example/src/App.d.ts.map +0 -1
- package/dist/typescript/module/src/compiler/inheritance.test.d.ts +0 -2
- package/dist/typescript/module/src/compiler/inheritance.test.d.ts.map +0 -1
- package/dist/typescript/module/src/poison.pill.d.ts +0 -2
- package/dist/typescript/module/src/poison.pill.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/index.d.ts +0 -7
- package/dist/typescript/module/src/runtime/index.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/api.d.ts +0 -19
- package/dist/typescript/module/src/runtime/native/api.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts +0 -5
- package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts +0 -7
- package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts +0 -5
- package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/conditions/index.d.ts +0 -6
- package/dist/typescript/module/src/runtime/native/conditions/index.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts +0 -4
- package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/index.d.ts +0 -4
- package/dist/typescript/module/src/runtime/native/index.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/metro.d.ts +0 -2
- package/dist/typescript/module/src/runtime/native/metro.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/react/interaction.d.ts +0 -6
- package/dist/typescript/module/src/runtime/native/react/interaction.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/react/rules.d.ts +0 -7
- package/dist/typescript/module/src/runtime/native/react/rules.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts +0 -38
- package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts +0 -4
- package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/reactivity.d.ts +0 -55
- package/dist/typescript/module/src/runtime/native/reactivity.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/reanimated.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts +0 -10
- package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/constants.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/functions/animation-timing.d.ts +0 -4
- package/dist/typescript/module/src/runtime/native/styles/functions/animation-timing.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/functions/calc.d.ts +0 -3
- package/dist/typescript/module/src/runtime/native/styles/functions/calc.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/functions/filters.d.ts +0 -12
- package/dist/typescript/module/src/runtime/native/styles/functions/filters.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/functions/index.d.ts +0 -8
- package/dist/typescript/module/src/runtime/native/styles/functions/index.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/functions/numeric-functions.d.ts +0 -5
- package/dist/typescript/module/src/runtime/native/styles/functions/numeric-functions.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/functions/platform-functions.d.ts +0 -8
- package/dist/typescript/module/src/runtime/native/styles/functions/platform-functions.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/functions/string-functions.d.ts +0 -3
- package/dist/typescript/module/src/runtime/native/styles/functions/string-functions.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/functions/transform-functions.d.ts +0 -5
- package/dist/typescript/module/src/runtime/native/styles/functions/transform-functions.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/index.d.ts +0 -19
- package/dist/typescript/module/src/runtime/native/styles/index.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts +0 -18
- package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/shorthands/_handler.d.ts +0 -11
- package/dist/typescript/module/src/runtime/native/styles/shorthands/_handler.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts +0 -4
- package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/shorthands/border.d.ts +0 -2
- package/dist/typescript/module/src/runtime/native/styles/shorthands/border.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/shorthands/box-shadow.d.ts +0 -3
- package/dist/typescript/module/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/shorthands/index.d.ts +0 -6
- package/dist/typescript/module/src/runtime/native/styles/shorthands/index.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/shorthands/text-shadow.d.ts +0 -2
- package/dist/typescript/module/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/shorthands/transform.d.ts +0 -7
- package/dist/typescript/module/src/runtime/native/styles/shorthands/transform.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/units.d.ts +0 -6
- package/dist/typescript/module/src/runtime/native/styles/units.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/variables.d.ts +0 -5
- package/dist/typescript/module/src/runtime/native/styles/variables.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/runtime.d.ts +0 -2
- package/dist/typescript/module/src/runtime/runtime.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/runtime.native.d.ts +0 -2
- package/dist/typescript/module/src/runtime/runtime.native.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/runtime.types.d.ts +0 -47
- package/dist/typescript/module/src/runtime/runtime.types.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/utils/components.d.ts +0 -2
- package/dist/typescript/module/src/runtime/utils/components.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts +0 -23
- package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/utils/index.d.ts +0 -6
- package/dist/typescript/module/src/runtime/utils/index.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/utils/objects.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/utils/specificity.d.ts +0 -13
- package/dist/typescript/module/src/runtime/utils/specificity.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/utils/style-value.d.ts +0 -4
- package/dist/typescript/module/src/runtime/utils/style-value.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/utils/utils.types.d.ts +0 -5
- package/dist/typescript/module/src/runtime/utils/utils.types.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/web/api.d.ts +0 -10
- package/dist/typescript/module/src/runtime/web/api.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/web/assign-style.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/web/index.d.ts +0 -4
- package/dist/typescript/module/src/runtime/web/index.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/web/metro.d.ts +0 -2
- package/dist/typescript/module/src/runtime/web/metro.d.ts.map +0 -1
- package/dist/typescript/module/src/style-collection/index.d.ts +0 -14
- package/dist/typescript/module/src/style-collection/index.d.ts.map +0 -1
- package/dist/typescript/module/src/style-collection/root.d.ts +0 -11
- package/dist/typescript/module/src/style-collection/root.d.ts.map +0 -1
- package/src/compiler/inheritance.test.ts +0 -121
- package/src/components/index.tsx +0 -10
- package/src/runtime/index.ts +0 -7
- package/src/runtime/native/api.ts +0 -108
- package/src/runtime/native/conditions/attributes.ts +0 -52
- package/src/runtime/native/conditions/container-query.ts +0 -162
- package/src/runtime/native/conditions/guards.ts +0 -44
- package/src/runtime/native/conditions/index.ts +0 -54
- package/src/runtime/native/conditions/media-query.ts +0 -98
- package/src/runtime/native/index.ts +0 -4
- package/src/runtime/native/react/interaction.ts +0 -90
- package/src/runtime/native/react/rules.ts +0 -336
- package/src/runtime/native/react/useNativeCss.ts +0 -203
- package/src/runtime/native/react/usePassthrough.ts +0 -51
- package/src/runtime/native/reactivity.ts +0 -255
- package/src/runtime/native/reanimated.ts +0 -22
- package/src/runtime/native/styles/calculate-props.ts +0 -197
- package/src/runtime/native/styles/functions/animation-timing.ts +0 -44
- package/src/runtime/native/styles/functions/filters.ts +0 -98
- package/src/runtime/native/styles/functions/index.ts +0 -7
- package/src/runtime/native/styles/functions/numeric-functions.ts +0 -38
- package/src/runtime/native/styles/functions/platform-functions.ts +0 -50
- package/src/runtime/native/styles/functions/string-functions.ts +0 -22
- package/src/runtime/native/styles/functions/transform-functions.ts +0 -84
- package/src/runtime/native/styles/index.ts +0 -197
- package/src/runtime/native/styles/resolve.ts +0 -162
- package/src/runtime/native/styles/shorthands/_handler.ts +0 -121
- package/src/runtime/native/styles/shorthands/animation.ts +0 -123
- package/src/runtime/native/styles/shorthands/box-shadow.ts +0 -74
- package/src/runtime/native/styles/shorthands/index.ts +0 -5
- package/src/runtime/native/styles/shorthands/transform.ts +0 -23
- package/src/runtime/native/styles/units.ts +0 -57
- package/src/runtime/native/styles/variables.ts +0 -88
- package/src/runtime/runtime.types.ts +0 -130
- package/src/runtime/utils/components.ts +0 -15
- package/src/runtime/utils/dot-notation.types.ts +0 -118
- package/src/runtime/utils/index.ts +0 -5
- package/src/runtime/utils/objects.ts +0 -109
- package/src/runtime/utils/specificity.ts +0 -45
- package/src/runtime/utils/style-value.ts +0 -24
- package/src/runtime/utils/utils.types.ts +0 -19
- package/src/runtime/web/api.ts +0 -88
- package/src/runtime/web/assign-style.ts +0 -26
- package/src/runtime/web/metro.ts +0 -2
- package/src/style-collection/index.ts +0 -142
- package/src/style-collection/root.ts +0 -35
- /package/dist/commonjs/{runtime/native → native}/conditions/index.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/styles/constants.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/styles/defaults.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/styles/functions/calc.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/styles/shorthands/border.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/styles/shorthands/text-shadow.js +0 -0
- /package/dist/commonjs/{runtime/runtime.js → runtime.js} +0 -0
- /package/dist/commonjs/{runtime/runtime.native.js → runtime.native.js} +0 -0
- /package/dist/commonjs/{runtime/runtime.types.js → runtime.types.js} +0 -0
- /package/dist/commonjs/{runtime/web → web}/index.js +0 -0
- /package/dist/commonjs/{runtime/native → web}/metro.js +0 -0
- /package/dist/module/{runtime/native → native}/conditions/index.js +0 -0
- /package/dist/module/{runtime/native → native}/styles/constants.js +0 -0
- /package/dist/module/{runtime/native → native}/styles/defaults.js +0 -0
- /package/dist/module/{runtime/native → native}/styles/functions/calc.js +0 -0
- /package/dist/module/{runtime/native → native}/styles/shorthands/border.js +0 -0
- /package/dist/module/{runtime/native → native}/styles/shorthands/text-shadow.js +0 -0
- /package/dist/module/{runtime/runtime.js → runtime.js} +0 -0
- /package/dist/module/{runtime/runtime.native.js → runtime.native.js} +0 -0
- /package/dist/module/{runtime/runtime.types.js → runtime.types.js} +0 -0
- /package/dist/module/{runtime/web → web}/index.js +0 -0
- /package/dist/module/{runtime/native → web}/metro.js +0 -0
- /package/dist/typescript/commonjs/src/{runtime/utils → native}/objects.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/react/usePassthrough.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/reanimated.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/constants.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/defaults.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/animation-timing.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/calc.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/numeric-functions.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/platform-functions.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/_handler.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/border.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/box-shadow.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/text-shadow.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/transform.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/units.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/runtime.d.ts → runtime.d.ts} +0 -0
- /package/dist/typescript/commonjs/src/{runtime/runtime.native.d.ts → runtime.native.d.ts} +0 -0
- /package/dist/typescript/commonjs/src/{runtime/web → web}/assign-style.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/web → web}/index.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → web}/metro.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/utils → native}/objects.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/reanimated.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/styles/constants.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/styles/defaults.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/web → web}/assign-style.d.ts +0 -0
- /package/dist/typescript/{commonjs/src/runtime → module/src}/web/metro.d.ts +0 -0
- /package/src/{poison.pill.ts → native/react-native-css-metro-override.ts} +0 -0
- /package/src/{runtime/native → native}/styles/constants.ts +0 -0
- /package/src/{runtime/native → native}/styles/defaults.ts +0 -0
- /package/src/{runtime/native → native}/styles/functions/calc.ts +0 -0
- /package/src/{runtime/native → native}/styles/shorthands/border.ts +0 -0
- /package/src/{runtime/native → native}/styles/shorthands/text-shadow.ts +0 -0
- /package/src/{runtime/runtime.native.ts → runtime.native.ts} +0 -0
- /package/src/{runtime/runtime.ts → runtime.ts} +0 -0
- /package/src/{runtime/web → web}/index.ts +0 -0
- /package/src/{runtime/native → web}/metro.ts +0 -0
|
@@ -13,6 +13,7 @@ exports.parseAlignItems = parseAlignItems;
|
|
|
13
13
|
exports.parseAlignSelf = parseAlignSelf;
|
|
14
14
|
exports.parseAngle = parseAngle;
|
|
15
15
|
exports.parseAspectRatio = parseAspectRatio;
|
|
16
|
+
exports.parseBackfaceVisibility = parseBackfaceVisibility;
|
|
16
17
|
exports.parseBorderBlockWidth = parseBorderBlockWidth;
|
|
17
18
|
exports.parseBorderInlineStyle = parseBorderInlineStyle;
|
|
18
19
|
exports.parseBorderInlineWidth = parseBorderInlineWidth;
|
|
@@ -21,15 +22,18 @@ exports.parseBorderSideWidthDeclaration = parseBorderSideWidthDeclaration;
|
|
|
21
22
|
exports.parseBorderStyle = parseBorderStyle;
|
|
22
23
|
exports.parseBorderStyleDeclaration = parseBorderStyleDeclaration;
|
|
23
24
|
exports.parseBoxShadow = parseBoxShadow;
|
|
25
|
+
exports.parseBoxSizing = parseBoxSizing;
|
|
24
26
|
exports.parseCalcArguments = parseCalcArguments;
|
|
25
27
|
exports.parseCalcFn = parseCalcFn;
|
|
26
28
|
exports.parseColor = parseColor;
|
|
27
29
|
exports.parseColorDeclaration = parseColorDeclaration;
|
|
30
|
+
exports.parseColorMix = parseColorMix;
|
|
28
31
|
exports.parseColorOrAutoDeclaration = parseColorOrAutoDeclaration;
|
|
29
32
|
exports.parseCustomDeclaration = parseCustomDeclaration;
|
|
30
33
|
exports.parseDeclaration = parseDeclaration;
|
|
31
34
|
exports.parseDimension = parseDimension;
|
|
32
35
|
exports.parseDimensionPercentageFor_LengthValue = parseDimensionPercentageFor_LengthValue;
|
|
36
|
+
exports.parseDirection = parseDirection;
|
|
33
37
|
exports.parseDisplay = parseDisplay;
|
|
34
38
|
exports.parseEnv = parseEnv;
|
|
35
39
|
exports.parseFontColorDeclaration = parseFontColorDeclaration;
|
|
@@ -45,7 +49,7 @@ exports.parseGap = parseGap;
|
|
|
45
49
|
exports.parseJustifyContent = parseJustifyContent;
|
|
46
50
|
exports.parseLength = parseLength;
|
|
47
51
|
exports.parseLengthDeclaration = parseLengthDeclaration;
|
|
48
|
-
exports.
|
|
52
|
+
exports.parseLengthPercentageDeclaration = parseLengthPercentageDeclaration;
|
|
49
53
|
exports.parseLengthPercentageOrAuto = parseLengthPercentageOrAuto;
|
|
50
54
|
exports.parseLengthPercentageOrAutoDeclaration = parseLengthPercentageOrAutoDeclaration;
|
|
51
55
|
exports.parseLineHeight = parseLineHeight;
|
|
@@ -59,6 +63,7 @@ exports.parseSize = parseSize;
|
|
|
59
63
|
exports.parseSize2DDimensionPercentage = parseSize2DDimensionPercentage;
|
|
60
64
|
exports.parseSize2DDimensionPercentageDeclaration = parseSize2DDimensionPercentageDeclaration;
|
|
61
65
|
exports.parseSizeDeclaration = parseSizeDeclaration;
|
|
66
|
+
exports.parseSizeWithAutoDeclaration = parseSizeWithAutoDeclaration;
|
|
62
67
|
exports.parseTextAlign = parseTextAlign;
|
|
63
68
|
exports.parseTextDecorationLine = parseTextDecorationLine;
|
|
64
69
|
exports.parseTextDecorationLineDeclaration = parseTextDecorationLineDeclaration;
|
|
@@ -75,18 +80,46 @@ exports.reduceParseUnparsed = reduceParseUnparsed;
|
|
|
75
80
|
exports.round = round;
|
|
76
81
|
exports.unparsedFunction = unparsedFunction;
|
|
77
82
|
var _colorjs = _interopRequireDefault(require("colorjs.io"));
|
|
83
|
+
var _index = require("../utilities/index.js");
|
|
84
|
+
var _atRules = require("./atRules.js");
|
|
78
85
|
var _keyframes = require("./keyframes.js");
|
|
79
86
|
var _selectors = require("./selectors.js");
|
|
80
87
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
81
|
-
// cSpell:ignore rcap,vmin,svmin,lvmin,dvmin,cqmin,vmax,svmax,lvmax,dvmax,cqmax,currentcolor,oklab,oklch,prophoto
|
|
88
|
+
// cSpell:ignore rcap,vmin,svmin,lvmin,dvmin,cqmin,vmax,svmax,lvmax,dvmax,cqmax,currentcolor,oklab,oklch,prophoto,squircle,oldstyle,nums
|
|
82
89
|
|
|
83
90
|
const CommaSeparator = Symbol("CommaSeparator");
|
|
84
91
|
const propertyRename = {
|
|
85
|
-
"background-image": "experimental_backgroundImage"
|
|
92
|
+
"background-image": "experimental_backgroundImage",
|
|
93
|
+
// React Native has no border-inline-* props, but ships the equivalent
|
|
94
|
+
// RTL-aware border-start-* / border-end-* props
|
|
95
|
+
"border-inline-end-color": "border-end-color",
|
|
96
|
+
"border-inline-end-width": "border-end-width",
|
|
97
|
+
"border-inline-start-color": "border-start-color",
|
|
98
|
+
"border-inline-start-width": "border-start-width",
|
|
99
|
+
"border-block-start-width": "border-top-width",
|
|
100
|
+
"border-block-end-width": "border-bottom-width",
|
|
101
|
+
"font-variant-caps": "font-variant",
|
|
102
|
+
// React Native maps paddingBlock/paddingInline to the same Yoga edges as
|
|
103
|
+
// paddingVertical/paddingHorizontal, but Android's TextInput only sees the
|
|
104
|
+
// latter and otherwise keeps its theme padding
|
|
105
|
+
"padding-block": "padding-vertical",
|
|
106
|
+
"padding-inline": "padding-horizontal"
|
|
86
107
|
};
|
|
87
108
|
|
|
88
|
-
//
|
|
89
|
-
|
|
109
|
+
// React Native only supports a uniform borderStyle, so per-side border
|
|
110
|
+
// styles have no native equivalent and are dropped. "solid" is dropped
|
|
111
|
+
// silently as it matches React Native's default rendering.
|
|
112
|
+
const unsupportedLogicalStyles = new Set(["border-inline-style", "border-inline-start-style", "border-inline-end-style", "border-block-style", "border-block-start-style", "border-block-end-style"]);
|
|
113
|
+
|
|
114
|
+
// One key set per property, so a later declaration replaces an earlier one; Android and iOS rank borderBlockColor against borderTopColor oppositely
|
|
115
|
+
const blockColorEdges = ["border-top-color", "border-bottom-color"];
|
|
116
|
+
|
|
117
|
+
// React Native has no borderInlineColor, so the RTL-aware pair is the inline axis's only target
|
|
118
|
+
const inlineColorEdges = ["border-start-color", "border-end-color"];
|
|
119
|
+
const unparsedRuntimeParsing = new Set(["animation", "animation-name", "border", "border-block-width", "border-inline-width", "box-shadow", "filter", "line-height", "rotate", "scale", "text-shadow", "transform", "translate"]);
|
|
120
|
+
|
|
121
|
+
// css-transforms-2 §3: the translate and scale properties take an optional z, which the functions of the same name do not
|
|
122
|
+
const INDIVIDUAL_TRANSFORM_RESOLVERS = new Map([["scale", "individualScale"], ["translate", "individualTranslate"]]);
|
|
90
123
|
const parsers = {
|
|
91
124
|
"align-content": parseAlignContent,
|
|
92
125
|
"align-items": parseAlignItems,
|
|
@@ -101,6 +134,7 @@ const parsers = {
|
|
|
101
134
|
"animation-play-state": addAnimationValue,
|
|
102
135
|
"animation-timing-function": addAnimationValue,
|
|
103
136
|
"aspect-ratio": parseAspectRatio,
|
|
137
|
+
"backface-visibility": parseBackfaceVisibility,
|
|
104
138
|
"background-color": parseColorDeclaration,
|
|
105
139
|
"background-image": parseBackgroundImage,
|
|
106
140
|
"block-size": parseSizeDeclaration,
|
|
@@ -109,10 +143,11 @@ const parsers = {
|
|
|
109
143
|
"border-block-color": parseBorderColor,
|
|
110
144
|
"border-block-end": parseBorderBlockEnd,
|
|
111
145
|
"border-block-end-color": parseColorDeclaration,
|
|
146
|
+
"border-block-end-style": parseBorderInlineStyle,
|
|
112
147
|
"border-block-end-width": parseBorderSideWidthDeclaration,
|
|
113
148
|
"border-block-start": parseBorderBlockStart,
|
|
114
149
|
"border-block-start-color": parseColorDeclaration,
|
|
115
|
-
"border-block-start-style":
|
|
150
|
+
"border-block-start-style": parseBorderInlineStyle,
|
|
116
151
|
"border-block-start-width": parseBorderSideWidthDeclaration,
|
|
117
152
|
"border-block-style": parseBorderBlockStyle,
|
|
118
153
|
"border-block-width": parseBorderBlockWidth,
|
|
@@ -156,8 +191,9 @@ const parsers = {
|
|
|
156
191
|
"border-top-style": parseBorderStyleDeclaration,
|
|
157
192
|
"border-top-width": parseBorderSideWidthDeclaration,
|
|
158
193
|
"border-width": parseBorderWidth,
|
|
159
|
-
"bottom":
|
|
194
|
+
"bottom": parseSizeWithAutoDeclaration,
|
|
160
195
|
"box-shadow": parseBoxShadow,
|
|
196
|
+
"box-sizing": parseBoxSizing,
|
|
161
197
|
"caret-color": parseColorOrAutoDeclaration,
|
|
162
198
|
"color": parseFontColorDeclaration,
|
|
163
199
|
"column-gap": parseGap,
|
|
@@ -165,10 +201,11 @@ const parsers = {
|
|
|
165
201
|
"container-name": parseContainerName,
|
|
166
202
|
"container-type": parseContainerType,
|
|
167
203
|
"display": parseDisplay,
|
|
204
|
+
"direction": parseDirection,
|
|
168
205
|
"fill": parseSVGPaint,
|
|
169
206
|
"filter": parseFilter,
|
|
170
207
|
"flex": parseFlex,
|
|
171
|
-
"flex-basis":
|
|
208
|
+
"flex-basis": parseLengthPercentageDeclaration,
|
|
172
209
|
"flex-direction": ({
|
|
173
210
|
value
|
|
174
211
|
}) => value,
|
|
@@ -189,30 +226,30 @@ const parsers = {
|
|
|
189
226
|
"font-variant-caps": parseFontVariantCapsDeclaration,
|
|
190
227
|
"font-weight": parseFontWeightDeclaration,
|
|
191
228
|
"gap": parseGap,
|
|
192
|
-
"height":
|
|
193
|
-
"inline-size":
|
|
229
|
+
"height": parseSizeWithAutoDeclaration,
|
|
230
|
+
"inline-size": parseSizeWithAutoDeclaration,
|
|
194
231
|
"inset": parseInset,
|
|
195
232
|
"inset-block": parseInsetBlock,
|
|
196
|
-
"inset-block-end":
|
|
197
|
-
"inset-block-start":
|
|
233
|
+
"inset-block-end": parseLengthPercentageDeclaration,
|
|
234
|
+
"inset-block-start": parseLengthPercentageDeclaration,
|
|
198
235
|
"inset-inline": parseInsetInline,
|
|
199
|
-
"inset-inline-end":
|
|
200
|
-
"inset-inline-start":
|
|
236
|
+
"inset-inline-end": parseLengthPercentageDeclaration,
|
|
237
|
+
"inset-inline-start": parseLengthPercentageDeclaration,
|
|
201
238
|
"justify-content": parseJustifyContent,
|
|
202
|
-
"left":
|
|
239
|
+
"left": parseSizeWithAutoDeclaration,
|
|
203
240
|
"letter-spacing": parseLetterSpacing,
|
|
204
241
|
"line-height": parseLineHeightDeclaration,
|
|
205
242
|
"margin": parseMargin,
|
|
206
243
|
"margin-block": parseMarginBlock,
|
|
207
244
|
"margin-block-end": parseLengthPercentageOrAutoDeclaration,
|
|
208
245
|
"margin-block-start": parseLengthPercentageOrAutoDeclaration,
|
|
209
|
-
"margin-bottom":
|
|
246
|
+
"margin-bottom": parseSizeWithAutoDeclaration,
|
|
210
247
|
"margin-inline": parseMarginInline,
|
|
211
248
|
"margin-inline-end": parseLengthPercentageOrAutoDeclaration,
|
|
212
249
|
"margin-inline-start": parseLengthPercentageOrAutoDeclaration,
|
|
213
|
-
"margin-left":
|
|
214
|
-
"margin-right":
|
|
215
|
-
"margin-top":
|
|
250
|
+
"margin-left": parseSizeWithAutoDeclaration,
|
|
251
|
+
"margin-right": parseSizeWithAutoDeclaration,
|
|
252
|
+
"margin-top": parseSizeWithAutoDeclaration,
|
|
216
253
|
"max-block-size": parseSizeDeclaration,
|
|
217
254
|
"max-height": parseSizeDeclaration,
|
|
218
255
|
"max-inline-size": parseSizeDeclaration,
|
|
@@ -223,21 +260,24 @@ const parsers = {
|
|
|
223
260
|
"min-width": parseSizeDeclaration,
|
|
224
261
|
"opacity": ({
|
|
225
262
|
value
|
|
226
|
-
}) => value,
|
|
263
|
+
}) => round(value),
|
|
264
|
+
"outline-color": parseColorDeclaration,
|
|
265
|
+
"outline-style": parseOutlineStyle,
|
|
266
|
+
"outline-width": parseBorderSideWidthDeclaration,
|
|
227
267
|
"overflow": parseOverflow,
|
|
228
268
|
"padding": parsePadding,
|
|
229
269
|
"padding-block": parsePaddingBlock,
|
|
230
|
-
"padding-block-end":
|
|
231
|
-
"padding-block-start":
|
|
270
|
+
"padding-block-end": parseLengthPercentageDeclaration,
|
|
271
|
+
"padding-block-start": parseLengthPercentageDeclaration,
|
|
232
272
|
"padding-bottom": parseSizeDeclaration,
|
|
233
273
|
"padding-inline": parsePaddingInline,
|
|
234
|
-
"padding-inline-end":
|
|
235
|
-
"padding-inline-start":
|
|
274
|
+
"padding-inline-end": parseLengthPercentageDeclaration,
|
|
275
|
+
"padding-inline-start": parseLengthPercentageDeclaration,
|
|
236
276
|
"padding-left": parseSizeDeclaration,
|
|
237
277
|
"padding-right": parseSizeDeclaration,
|
|
238
278
|
"padding-top": parseSizeDeclaration,
|
|
239
279
|
"position": parsePosition,
|
|
240
|
-
"right":
|
|
280
|
+
"right": parseSizeWithAutoDeclaration,
|
|
241
281
|
"rotate": parseRotate,
|
|
242
282
|
"row-gap": parseGap,
|
|
243
283
|
"scale": parseScale,
|
|
@@ -252,7 +292,7 @@ const parsers = {
|
|
|
252
292
|
"text-transform": ({
|
|
253
293
|
value
|
|
254
294
|
}) => value.case,
|
|
255
|
-
"top":
|
|
295
|
+
"top": parseSizeWithAutoDeclaration,
|
|
256
296
|
"transform": parseTransform,
|
|
257
297
|
"transition": addTransitionValue,
|
|
258
298
|
"transition-delay": addTransitionValue,
|
|
@@ -263,7 +303,7 @@ const parsers = {
|
|
|
263
303
|
"user-select": parseUserSelect,
|
|
264
304
|
"vertical-align": parseVerticalAlign,
|
|
265
305
|
"visibility": parseVisibility,
|
|
266
|
-
"width":
|
|
306
|
+
"width": parseSizeWithAutoDeclaration,
|
|
267
307
|
"z-index": parseZIndex
|
|
268
308
|
};
|
|
269
309
|
|
|
@@ -288,7 +328,7 @@ function parseDeclaration(declaration, builder) {
|
|
|
288
328
|
function parseWithParser(declaration, builder) {
|
|
289
329
|
if (declaration.property in parsers) {
|
|
290
330
|
const parser = parsers[declaration.property];
|
|
291
|
-
builder.
|
|
331
|
+
builder.descriptorProperties = [declaration.property];
|
|
292
332
|
builder.setWarningProperty(declaration.property);
|
|
293
333
|
const value = parser(declaration, builder, declaration.property);
|
|
294
334
|
if (value !== undefined) {
|
|
@@ -310,8 +350,8 @@ function parseInsetInline({
|
|
|
310
350
|
value
|
|
311
351
|
}, builder) {
|
|
312
352
|
builder.addShorthand("inset-inline", {
|
|
313
|
-
"inset-
|
|
314
|
-
"inset-
|
|
353
|
+
"inset-inline-start": parseLengthPercentageOrAuto(value.inlineStart, builder),
|
|
354
|
+
"inset-inline-end": parseLengthPercentageOrAuto(value.inlineEnd, builder)
|
|
315
355
|
});
|
|
316
356
|
}
|
|
317
357
|
function parseInset({
|
|
@@ -334,24 +374,25 @@ function parseBorderRadius({
|
|
|
334
374
|
"border-top-right-radius": parseSize2DDimensionPercentage(value.topRight, builder)
|
|
335
375
|
});
|
|
336
376
|
}
|
|
377
|
+
|
|
378
|
+
// light-dark() addresses its dark half to descriptorProperties, so a parser that expands onto other properties names them
|
|
379
|
+
function parseColorFor(targets, cssColor, builder) {
|
|
380
|
+
builder.descriptorProperties = targets;
|
|
381
|
+
return parseColor(cssColor, builder);
|
|
382
|
+
}
|
|
337
383
|
function parseBorderColor(declaration, builder) {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
break;
|
|
351
|
-
case "border-inline-color":
|
|
352
|
-
builder.addDescriptor("border-left-color", parseColor(declaration.value.start, builder));
|
|
353
|
-
builder.addDescriptor("border-right-color", parseColor(declaration.value.end, builder));
|
|
354
|
-
break;
|
|
384
|
+
if (declaration.property === "border-color") {
|
|
385
|
+
builder.addShorthand("border-color", {
|
|
386
|
+
"border-top-color": parseColor(declaration.value.top, builder),
|
|
387
|
+
"border-bottom-color": parseColor(declaration.value.bottom, builder),
|
|
388
|
+
"border-left-color": parseColor(declaration.value.left, builder),
|
|
389
|
+
"border-right-color": parseColor(declaration.value.right, builder)
|
|
390
|
+
});
|
|
391
|
+
} else {
|
|
392
|
+
// Each edge parses its own colour, so a light-dark() component opens its dark rule over the edge it feeds
|
|
393
|
+
const [startProperty, endProperty] = declaration.property === "border-inline-color" ? inlineColorEdges : blockColorEdges;
|
|
394
|
+
builder.addDescriptor(startProperty, parseColorFor([startProperty], declaration.value.start, builder));
|
|
395
|
+
builder.addDescriptor(endProperty, parseColorFor([endProperty], declaration.value.end, builder));
|
|
355
396
|
}
|
|
356
397
|
}
|
|
357
398
|
function parseBorderWidth({
|
|
@@ -383,54 +424,68 @@ function parseBorderSide({
|
|
|
383
424
|
function parseBorderBlock({
|
|
384
425
|
value
|
|
385
426
|
}, builder) {
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
builder.addDescriptor(
|
|
427
|
+
const color = parseColorFor(blockColorEdges, value.color, builder);
|
|
428
|
+
const width = parseBorderSideWidth(value.width, builder);
|
|
429
|
+
builder.addDescriptor(blockColorEdges[0], color);
|
|
430
|
+
builder.addDescriptor(blockColorEdges[1], color);
|
|
431
|
+
builder.addDescriptor("border-top-width", width);
|
|
432
|
+
builder.addDescriptor("border-bottom-width", width);
|
|
433
|
+
dropUnsupportedInlineStyle(parseBorderStyle(value.style, builder), builder, "border-block-style");
|
|
389
434
|
}
|
|
390
435
|
function parseBorderBlockStart({
|
|
391
436
|
value
|
|
392
437
|
}, builder) {
|
|
393
438
|
builder.addDescriptor("border-block-start-color", parseColor(value.color, builder));
|
|
394
|
-
builder.addDescriptor("border-
|
|
439
|
+
builder.addDescriptor("border-top-width", parseBorderSideWidth(value.width, builder));
|
|
440
|
+
dropUnsupportedInlineStyle(parseBorderStyle(value.style, builder), builder, "border-block-start-style");
|
|
395
441
|
}
|
|
396
442
|
function parseBorderBlockEnd({
|
|
397
443
|
value
|
|
398
444
|
}, builder) {
|
|
399
445
|
builder.addDescriptor("border-block-end-color", parseColor(value.color, builder));
|
|
400
|
-
builder.addDescriptor("border-
|
|
446
|
+
builder.addDescriptor("border-bottom-width", parseBorderSideWidth(value.width, builder));
|
|
447
|
+
dropUnsupportedInlineStyle(parseBorderStyle(value.style, builder), builder, "border-block-end-style");
|
|
401
448
|
}
|
|
402
449
|
function parseBorderInline({
|
|
403
450
|
value
|
|
404
451
|
}, builder) {
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
builder.addDescriptor("border-
|
|
452
|
+
const color = parseColor(value.color, builder);
|
|
453
|
+
const width = parseBorderSideWidth(value.width, builder);
|
|
454
|
+
builder.addDescriptor("border-start-color", color);
|
|
455
|
+
builder.addDescriptor("border-end-color", color);
|
|
456
|
+
builder.addDescriptor("border-start-width", width);
|
|
457
|
+
builder.addDescriptor("border-end-width", width);
|
|
458
|
+
dropUnsupportedInlineStyle(parseBorderStyle(value.style, builder), builder, "border-inline-style");
|
|
408
459
|
}
|
|
409
460
|
function parseBorderInlineStart({
|
|
410
461
|
value
|
|
411
462
|
}, builder) {
|
|
412
|
-
builder.addDescriptor("border-
|
|
413
|
-
builder.addDescriptor("border-
|
|
414
|
-
builder
|
|
463
|
+
builder.addDescriptor("border-start-color", parseColor(value.color, builder));
|
|
464
|
+
builder.addDescriptor("border-start-width", parseBorderSideWidth(value.width, builder));
|
|
465
|
+
dropUnsupportedInlineStyle(parseBorderStyle(value.style, builder), builder, "border-inline-start-style");
|
|
415
466
|
}
|
|
416
467
|
function parseBorderInlineEnd({
|
|
417
468
|
value
|
|
418
469
|
}, builder) {
|
|
419
|
-
builder.addDescriptor("border-
|
|
420
|
-
builder.addDescriptor("border-
|
|
421
|
-
builder
|
|
470
|
+
builder.addDescriptor("border-end-color", parseColor(value.color, builder));
|
|
471
|
+
builder.addDescriptor("border-end-width", parseBorderSideWidth(value.width, builder));
|
|
472
|
+
dropUnsupportedInlineStyle(parseBorderStyle(value.style, builder), builder, "border-inline-end-style");
|
|
422
473
|
}
|
|
423
474
|
function parseBorderInlineWidth(declaration, builder) {
|
|
424
|
-
builder.addDescriptor("border-
|
|
475
|
+
builder.addDescriptor("border-start-width", parseBorderSideWidth(declaration.value.start, builder));
|
|
476
|
+
builder.addDescriptor("border-end-width", parseBorderSideWidth(declaration.value.end, builder));
|
|
425
477
|
}
|
|
426
478
|
function parseBorderInlineStyle(declaration, builder) {
|
|
427
479
|
if (typeof declaration.value === "string") {
|
|
428
|
-
|
|
429
|
-
} else if (declaration.value.start === declaration.value.end) {
|
|
430
|
-
builder.addDescriptor(declaration.property, parseBorderStyle(declaration.value.start, builder));
|
|
480
|
+
dropUnsupportedInlineStyle(parseBorderStyle(declaration.value, builder), builder, declaration.property);
|
|
431
481
|
} else {
|
|
432
|
-
|
|
433
|
-
|
|
482
|
+
dropUnsupportedInlineStyle(parseBorderStyle(declaration.value.start, builder), builder, "border-inline-start-style");
|
|
483
|
+
dropUnsupportedInlineStyle(parseBorderStyle(declaration.value.end, builder), builder, "border-inline-end-style");
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
function dropUnsupportedInlineStyle(style, builder, property) {
|
|
487
|
+
if (style !== undefined && style !== "solid") {
|
|
488
|
+
builder.addWarning("style", property, style);
|
|
434
489
|
}
|
|
435
490
|
}
|
|
436
491
|
function parseFlexFlow({
|
|
@@ -468,16 +523,24 @@ function parseMarginBlock({
|
|
|
468
523
|
value
|
|
469
524
|
}, builder) {
|
|
470
525
|
builder.addShorthand("margin-block", {
|
|
471
|
-
"margin-block-start": parseLengthPercentageOrAuto(value.blockStart, builder
|
|
472
|
-
|
|
526
|
+
"margin-block-start": parseLengthPercentageOrAuto(value.blockStart, builder, {
|
|
527
|
+
allowAuto: true
|
|
528
|
+
}),
|
|
529
|
+
"margin-block-end": parseLengthPercentageOrAuto(value.blockEnd, builder, {
|
|
530
|
+
allowAuto: true
|
|
531
|
+
})
|
|
473
532
|
});
|
|
474
533
|
}
|
|
475
534
|
function parseMarginInline({
|
|
476
535
|
value
|
|
477
536
|
}, builder) {
|
|
478
537
|
builder.addShorthand("margin-inline", {
|
|
479
|
-
"margin-inline-start": parseLengthPercentageOrAuto(value.inlineStart, builder
|
|
480
|
-
|
|
538
|
+
"margin-inline-start": parseLengthPercentageOrAuto(value.inlineStart, builder, {
|
|
539
|
+
allowAuto: true
|
|
540
|
+
}),
|
|
541
|
+
"margin-inline-end": parseLengthPercentageOrAuto(value.inlineEnd, builder, {
|
|
542
|
+
allowAuto: true
|
|
543
|
+
})
|
|
481
544
|
});
|
|
482
545
|
}
|
|
483
546
|
function parsePadding({
|
|
@@ -493,7 +556,7 @@ function parsePadding({
|
|
|
493
556
|
function parsePaddingBlock({
|
|
494
557
|
value
|
|
495
558
|
}, builder) {
|
|
496
|
-
builder.addShorthand("padding-
|
|
559
|
+
builder.addShorthand("padding-vertical", {
|
|
497
560
|
"padding-block-start": parseLengthPercentageOrAuto(value.blockStart, builder),
|
|
498
561
|
"padding-block-end": parseLengthPercentageOrAuto(value.blockEnd, builder)
|
|
499
562
|
});
|
|
@@ -501,7 +564,7 @@ function parsePaddingBlock({
|
|
|
501
564
|
function parsePaddingInline({
|
|
502
565
|
value
|
|
503
566
|
}, builder) {
|
|
504
|
-
builder.addShorthand("padding-
|
|
567
|
+
builder.addShorthand("padding-horizontal", {
|
|
505
568
|
"padding-inline-start": parseLengthPercentageOrAuto(value.inlineStart, builder),
|
|
506
569
|
"padding-inline-end": parseLengthPercentageOrAuto(value.inlineEnd, builder)
|
|
507
570
|
});
|
|
@@ -516,19 +579,23 @@ function parseFont({
|
|
|
516
579
|
builder.addDescriptor("font-variant-caps", parseFontVariantCaps(value.variantCaps, builder));
|
|
517
580
|
builder.addDescriptor("font-weight", parseFontWeight(value.weight, builder));
|
|
518
581
|
}
|
|
582
|
+
// An argument React Native has no equivalent for leaves the declaration invalid there, and an invalid declaration is ignored (CSS 2.2 §4.2)
|
|
583
|
+
function hasUnconvertibleArgument(functions) {
|
|
584
|
+
return functions.some(([,, argument]) => argument === undefined);
|
|
585
|
+
}
|
|
519
586
|
function parseTransform({
|
|
520
587
|
value
|
|
521
588
|
}, builder) {
|
|
522
|
-
|
|
589
|
+
const functions = value.flatMap(t => {
|
|
523
590
|
switch (t.type) {
|
|
524
591
|
case "perspective":
|
|
525
592
|
return [[{}, "perspective", parseLength(t.value, builder)]];
|
|
526
593
|
case "translate":
|
|
527
|
-
return [[{}, "translateX",
|
|
594
|
+
return [[{}, "translateX", parseLength(t.value[0], builder)], [{}, "translateY", parseLength(t.value[1], builder)]];
|
|
528
595
|
case "translateX":
|
|
529
|
-
return [[{}, "translateX",
|
|
596
|
+
return [[{}, "translateX", parseLength(t.value, builder)]];
|
|
530
597
|
case "translateY":
|
|
531
|
-
return [[{}, "translateY",
|
|
598
|
+
return [[{}, "translateY", parseLength(t.value, builder)]];
|
|
532
599
|
case "rotate":
|
|
533
600
|
return [[{}, "rotate", parseAngle(t.value, builder)]];
|
|
534
601
|
case "rotateX":
|
|
@@ -556,39 +623,50 @@ function parseTransform({
|
|
|
556
623
|
case "rotate3d":
|
|
557
624
|
case "matrix":
|
|
558
625
|
case "matrix3d":
|
|
559
|
-
return [
|
|
626
|
+
return [];
|
|
560
627
|
}
|
|
561
|
-
})
|
|
562
|
-
|
|
628
|
+
});
|
|
629
|
+
if (hasUnconvertibleArgument(functions)) {
|
|
630
|
+
return;
|
|
631
|
+
}
|
|
632
|
+
builder.addDescriptor("transform", [{}, "transform", functions]);
|
|
563
633
|
}
|
|
564
634
|
function parseTranslate({
|
|
565
635
|
value
|
|
566
636
|
}, builder) {
|
|
567
|
-
|
|
568
|
-
|
|
637
|
+
const translations = [[{}, "translateX", parseTranslateProp(value, "x", builder)], [{}, "translateY", parseTranslateProp(value, "y", builder)]];
|
|
638
|
+
if (hasUnconvertibleArgument(translations)) {
|
|
639
|
+
return;
|
|
640
|
+
}
|
|
641
|
+
builder.addDescriptor("translate", translations);
|
|
569
642
|
}
|
|
570
643
|
function parseRotate({
|
|
571
644
|
value
|
|
572
645
|
}, builder) {
|
|
646
|
+
const angle = parseAngle(value.angle, builder);
|
|
647
|
+
const rotations = [];
|
|
573
648
|
if (value.x) {
|
|
574
|
-
|
|
649
|
+
rotations.push([{}, "rotateX", angle]);
|
|
575
650
|
}
|
|
576
651
|
if (value.y) {
|
|
577
|
-
|
|
652
|
+
rotations.push([{}, "rotateY", angle]);
|
|
578
653
|
}
|
|
579
654
|
if (value.z) {
|
|
580
|
-
|
|
655
|
+
rotations.push([{}, "rotateZ", angle]);
|
|
656
|
+
}
|
|
657
|
+
if (hasUnconvertibleArgument(rotations)) {
|
|
658
|
+
return;
|
|
581
659
|
}
|
|
660
|
+
builder.addDescriptor("rotate", rotations.length === 1 ? rotations[0] : rotations);
|
|
582
661
|
}
|
|
583
662
|
function parseScale({
|
|
584
663
|
value
|
|
585
664
|
}, builder) {
|
|
586
|
-
builder.addDescriptor("
|
|
587
|
-
builder.addDescriptor("scaleY", [{}, "scaleY", parseScaleValue(value, "y", builder)]);
|
|
665
|
+
builder.addDescriptor("scale", [[{}, "scaleX", parseScaleValue(value, "x", builder)], [{}, "scaleY", parseScaleValue(value, "y", builder)]]);
|
|
588
666
|
}
|
|
589
667
|
function parseScaleValue(translate, prop, builder) {
|
|
590
668
|
if (translate === "none") {
|
|
591
|
-
return
|
|
669
|
+
return 1;
|
|
592
670
|
}
|
|
593
671
|
return parseLength(translate[prop], builder);
|
|
594
672
|
}
|
|
@@ -598,11 +676,7 @@ function parseLetterSpacing({
|
|
|
598
676
|
if (value.type === "normal") {
|
|
599
677
|
return;
|
|
600
678
|
}
|
|
601
|
-
|
|
602
|
-
if (Array.isArray(descriptor) && descriptor[1] === "em" && typeof descriptor[2] === "number") {
|
|
603
|
-
return descriptor[2];
|
|
604
|
-
}
|
|
605
|
-
return descriptor;
|
|
679
|
+
return parseLength(value.value, builder);
|
|
606
680
|
}
|
|
607
681
|
function parseTextDecoration({
|
|
608
682
|
value
|
|
@@ -642,6 +716,10 @@ function parseUnparsedDeclaration(declaration, builder) {
|
|
|
642
716
|
builder.addWarning("property", property);
|
|
643
717
|
return;
|
|
644
718
|
}
|
|
719
|
+
if (unsupportedLogicalStyles.has(property)) {
|
|
720
|
+
builder.addWarning("property", property);
|
|
721
|
+
return;
|
|
722
|
+
}
|
|
645
723
|
builder.setWarningProperty(property);
|
|
646
724
|
|
|
647
725
|
/**
|
|
@@ -652,16 +730,27 @@ function parseUnparsedDeclaration(declaration, builder) {
|
|
|
652
730
|
property = rename;
|
|
653
731
|
}
|
|
654
732
|
|
|
733
|
+
// A var() axis colour lands on its edge pair as two declarations, so a later edge colour replaces it in cascade order
|
|
734
|
+
const edges = property === "border-inline-color" ? inlineColorEdges : property === "border-block-color" ? blockColorEdges : undefined;
|
|
735
|
+
if (edges) {
|
|
736
|
+
builder.descriptorProperties = edges;
|
|
737
|
+
const value = parseUnparsed(declaration.value.value, builder, property);
|
|
738
|
+
const pair = Array.isArray(value) && !(0, _index.isStyleFunction)(value) && value.length === 2;
|
|
739
|
+
builder.addDescriptor(edges[0], pair ? value[0] : value);
|
|
740
|
+
builder.addDescriptor(edges[1], pair ? value[1] : value);
|
|
741
|
+
return;
|
|
742
|
+
}
|
|
743
|
+
|
|
655
744
|
/**
|
|
656
745
|
* Unparsed shorthand properties need to be parsed at runtime
|
|
657
746
|
*/
|
|
658
|
-
builder.
|
|
747
|
+
builder.descriptorProperties = [property];
|
|
659
748
|
if (unparsedRuntimeParsing.has(property)) {
|
|
660
749
|
const args = parseUnparsed(declaration.value.value, builder, property);
|
|
661
750
|
if (property === "animation") {
|
|
662
751
|
builder.addDescriptor("animation", [{}, property, args]);
|
|
663
752
|
} else {
|
|
664
|
-
builder.addDescriptor(property, [{}, (0, _selectors.toRNProperty)(property), args, 1]);
|
|
753
|
+
builder.addDescriptor(property, [{}, INDIVIDUAL_TRANSFORM_RESOLVERS.get(property) ?? (0, _selectors.toRNProperty)(property), args, 1]);
|
|
665
754
|
}
|
|
666
755
|
} else {
|
|
667
756
|
const value = parseUnparsed(declaration.value.value, builder, property);
|
|
@@ -670,28 +759,56 @@ function parseUnparsedDeclaration(declaration, builder) {
|
|
|
670
759
|
builder.addDescriptor("--__rn-css-em", value);
|
|
671
760
|
}
|
|
672
761
|
if (property === "color") {
|
|
673
|
-
|
|
762
|
+
if (!(0, _index.isStyleFunction)(value) || value[1] !== "var" || value[2] !== "-css-color") {
|
|
763
|
+
builder.addDescriptor("--__rn-css-color", value);
|
|
764
|
+
}
|
|
674
765
|
}
|
|
675
766
|
}
|
|
676
767
|
}
|
|
677
768
|
function parseCustomDeclaration(declaration, builder) {
|
|
678
769
|
const property = declaration.value.name;
|
|
679
|
-
if (
|
|
770
|
+
if ((0, _atRules.isMappingProperty)(property)) {
|
|
771
|
+
// Consumed before declarations so property order cannot affect mapping.
|
|
772
|
+
return;
|
|
773
|
+
} else if (property === "-webkit-line-clamp") {
|
|
680
774
|
builder.addDescriptor(property, parseUnparsed(declaration.value.value, builder, property));
|
|
681
775
|
} else if (property === "-rn-ripple-style") {
|
|
682
|
-
|
|
776
|
+
if (parseUnparsed(declaration.value.value, builder, property) === "borderless") {
|
|
777
|
+
builder.addDescriptor(property, true);
|
|
778
|
+
}
|
|
779
|
+
} else if (property === "-rn-ripple-layer") {
|
|
780
|
+
if (parseUnparsed(declaration.value.value, builder, property) === "foreground") {
|
|
781
|
+
builder.addDescriptor(property, true);
|
|
782
|
+
}
|
|
683
783
|
} else if (property === "object-fit") {
|
|
684
784
|
// https://github.com/parcel-bundler/lightningcss/issues/1046
|
|
685
785
|
parseObjectFit(declaration.value, builder);
|
|
686
786
|
} else if (property === "object-position") {
|
|
687
787
|
// https://github.com/parcel-bundler/lightningcss/issues/1047
|
|
688
788
|
parseObjectPosition(declaration.value, builder);
|
|
789
|
+
} else if (property === "outline-offset") {
|
|
790
|
+
// https://github.com/parcel-bundler/lightningcss/issues/1048
|
|
791
|
+
builder.addDescriptor(property, parseUnparsed(declaration.value.value, builder, property));
|
|
792
|
+
} else if (property === "corner-shape") {
|
|
793
|
+
parseCornerShape(declaration.value, builder);
|
|
794
|
+
} else if (property === "font-variant") {
|
|
795
|
+
const parsedFontVariant = parseFontVariantCaps(parseUnparsed(declaration.value.value, builder, property), builder);
|
|
796
|
+
if (parsedFontVariant !== undefined) {
|
|
797
|
+
builder.addDescriptor(property, parsedFontVariant);
|
|
798
|
+
}
|
|
799
|
+
} else if (property.startsWith("--") && isSoleInitial(declaration.value.value)) {
|
|
800
|
+
// css-variables-1 §2.2: the guaranteed-invalid value, which still overrides an earlier declaration
|
|
801
|
+
builder.addDescriptor(property, [{}, "initial"]);
|
|
689
802
|
} else if (validProperties.has(property) || property.startsWith("--") || property.startsWith("-rn-")) {
|
|
690
803
|
builder.addDescriptor(property, parseUnparsed(declaration.value.value, builder, property));
|
|
691
804
|
} else {
|
|
692
805
|
builder.addWarning("property", declaration.value.name);
|
|
693
806
|
}
|
|
694
807
|
}
|
|
808
|
+
function isSoleInitial(tokens) {
|
|
809
|
+
const value = tokens.filter(token => token.type !== "token" || token.value.type !== "white-space");
|
|
810
|
+
return value.length === 1 && value[0]?.type === "token" && value[0].value.type === "ident" && value[0].value.value.toLowerCase() === "initial";
|
|
811
|
+
}
|
|
695
812
|
function reduceParseUnparsed(tokenOrValues, builder, property, allowAuto) {
|
|
696
813
|
const result = tokenOrValues.map(tokenOrValue => parseUnparsed(tokenOrValue, builder, property, allowAuto)).filter(v => v !== undefined);
|
|
697
814
|
if (result.length === 0) {
|
|
@@ -708,8 +825,9 @@ function reduceParseUnparsed(tokenOrValues, builder, property, allowAuto) {
|
|
|
708
825
|
}
|
|
709
826
|
}
|
|
710
827
|
|
|
711
|
-
// Groups are the tokens grouped together by comma location
|
|
712
|
-
//
|
|
828
|
+
// Groups are the tokens grouped together by comma location. Each stays an
|
|
829
|
+
// array, so a one-token item of a comma-separated list stays distinct from
|
|
830
|
+
// a token of a space-separated one (css-variables-1 §2.1)
|
|
713
831
|
groups = groups.flatMap(group => {
|
|
714
832
|
if (!Array.isArray(group)) {
|
|
715
833
|
return [];
|
|
@@ -721,18 +839,24 @@ function reduceParseUnparsed(tokenOrValues, builder, property, allowAuto) {
|
|
|
721
839
|
if (first === undefined) {
|
|
722
840
|
return [];
|
|
723
841
|
} else {
|
|
724
|
-
return [first];
|
|
842
|
+
return [[first]];
|
|
725
843
|
}
|
|
726
844
|
} else if (
|
|
727
845
|
// This is a special case for <ratio> values
|
|
728
846
|
group.includes("/") && group.every(item => typeof item === "string" && item === "/" ? item : typeof item === "number")) {
|
|
729
847
|
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
730
|
-
return [group.join(" ")];
|
|
848
|
+
return [[group.join(" ")]];
|
|
731
849
|
} else {
|
|
732
850
|
return [group];
|
|
733
851
|
}
|
|
734
852
|
});
|
|
735
|
-
|
|
853
|
+
if (groups.length !== 1) {
|
|
854
|
+
return groups;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
// A lone group is the value, and a lone token the group
|
|
858
|
+
const group = groups[0];
|
|
859
|
+
return group.length === 1 ? group[0] : group;
|
|
736
860
|
}
|
|
737
861
|
function unparsedFunction(token, builder, property, allowAuto) {
|
|
738
862
|
return [{}, (0, _selectors.toRNProperty)(token.value.name), reduceParseUnparsed(token.value.arguments, builder, property, allowAuto)];
|
|
@@ -752,7 +876,7 @@ function parseUnparsed(tokenOrValue, builder, property, allowAuto = allowAutoPro
|
|
|
752
876
|
} else if (tokenOrValue === "false") {
|
|
753
877
|
return false;
|
|
754
878
|
} else if (tokenOrValue === "currentcolor") {
|
|
755
|
-
return [{}, "var", "__rn-css-
|
|
879
|
+
return [{}, "var", "__rn-css-color"];
|
|
756
880
|
} else {
|
|
757
881
|
return tokenOrValue;
|
|
758
882
|
}
|
|
@@ -763,8 +887,13 @@ function parseUnparsed(tokenOrValue, builder, property, allowAuto = allowAutoPro
|
|
|
763
887
|
if (Array.isArray(tokenOrValue)) {
|
|
764
888
|
const args = reduceParseUnparsed(tokenOrValue, builder, property, allowAuto);
|
|
765
889
|
if (!args) return;
|
|
766
|
-
if (Array.isArray(args) && args.length === 1)
|
|
767
|
-
|
|
890
|
+
if (Array.isArray(args) && args.length === 1) {
|
|
891
|
+
return args[0];
|
|
892
|
+
} else if ((property === "filter" || property === "transform") && (0, _index.isStyleFunction)(args)) {
|
|
893
|
+
return [args];
|
|
894
|
+
} else {
|
|
895
|
+
return args;
|
|
896
|
+
}
|
|
768
897
|
}
|
|
769
898
|
switch (tokenOrValue.type) {
|
|
770
899
|
case "unresolved-color":
|
|
@@ -828,6 +957,8 @@ function parseUnparsed(tokenOrValue, builder, property, allowAuto = allowAutoPro
|
|
|
828
957
|
case "min":
|
|
829
958
|
case "clamp":
|
|
830
959
|
return parseCalcFn(tokenOrValue.value.name, tokenOrValue.value.arguments, builder, property);
|
|
960
|
+
case "color-mix":
|
|
961
|
+
return parseColorMix(tokenOrValue.value.arguments, builder, property);
|
|
831
962
|
default:
|
|
832
963
|
{
|
|
833
964
|
builder.addWarning("value", `${tokenOrValue.value.name}()`);
|
|
@@ -853,7 +984,7 @@ function parseUnparsed(tokenOrValue, builder, property, allowAuto = allowAutoPro
|
|
|
853
984
|
builder.addWarning("value", value);
|
|
854
985
|
return;
|
|
855
986
|
} else if (value === "currentcolor") {
|
|
856
|
-
return [{}, "var", "__rn-css-
|
|
987
|
+
return [{}, "var", "__rn-css-color"];
|
|
857
988
|
}
|
|
858
989
|
if (value === "true") {
|
|
859
990
|
return true;
|
|
@@ -948,9 +1079,9 @@ function parseLength(length, builder) {
|
|
|
948
1079
|
case "px":
|
|
949
1080
|
{
|
|
950
1081
|
if (length.value === Infinity) {
|
|
951
|
-
return
|
|
1082
|
+
return Number.MAX_SAFE_INTEGER;
|
|
952
1083
|
} else if (length.value === -Infinity) {
|
|
953
|
-
return
|
|
1084
|
+
return Number.MIN_SAFE_INTEGER;
|
|
954
1085
|
} else {
|
|
955
1086
|
// Normalize large values to safe integers, e.g. `calc(infinity * 1px)`
|
|
956
1087
|
const value = Math.max(Math.min(length.value, Number.MAX_SAFE_INTEGER), Number.MIN_SAFE_INTEGER);
|
|
@@ -1023,6 +1154,7 @@ function parseLength(length, builder) {
|
|
|
1023
1154
|
case "calc":
|
|
1024
1155
|
{
|
|
1025
1156
|
// TODO: Add the calc polyfill
|
|
1157
|
+
builder.addWarning("value", "calc()");
|
|
1026
1158
|
return undefined;
|
|
1027
1159
|
}
|
|
1028
1160
|
case "number":
|
|
@@ -1058,6 +1190,11 @@ function parseAngle(angle, builder) {
|
|
|
1058
1190
|
function parseSizeDeclaration(declaration, builder) {
|
|
1059
1191
|
return parseSize(declaration.value, builder);
|
|
1060
1192
|
}
|
|
1193
|
+
function parseSizeWithAutoDeclaration(declaration, builder) {
|
|
1194
|
+
return parseSize(declaration.value, builder, {
|
|
1195
|
+
allowAuto: true
|
|
1196
|
+
});
|
|
1197
|
+
}
|
|
1061
1198
|
function parsePointerEvents({
|
|
1062
1199
|
value
|
|
1063
1200
|
}, builder) {
|
|
@@ -1121,10 +1258,24 @@ function parseColorOrAutoDeclaration({
|
|
|
1121
1258
|
}
|
|
1122
1259
|
function parseFontColorDeclaration(declaration, builder) {
|
|
1123
1260
|
parseColorDeclaration(declaration, builder);
|
|
1124
|
-
|
|
1261
|
+
if (typeof declaration.value !== "object" || declaration.value.type !== "currentcolor") {
|
|
1262
|
+
builder.addDescriptor("--__rn-css-color", parseColor(declaration.value, builder));
|
|
1263
|
+
}
|
|
1125
1264
|
}
|
|
1126
1265
|
function parseColorDeclaration(declaration, builder) {
|
|
1127
|
-
builder.addDescriptor(declaration.property, parseColor(declaration.value, builder));
|
|
1266
|
+
builder.addDescriptor(propertyRename[declaration.property] ?? declaration.property, parseColor(declaration.value, builder));
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
/**
|
|
1270
|
+
* Lab/LCH/OKLab/OKLCH channels can be `NaN` when lightningcss resolves a
|
|
1271
|
+
* degenerate `color-mix()` at compile time (e.g. mixing black with
|
|
1272
|
+
* `transparent` in oklab yields `NaN` for the a/b chromaticity channels).
|
|
1273
|
+
* Passing `NaN` to colorjs.io produces an invalid string such as
|
|
1274
|
+
* `#NaNNaNNaN80`, which React Native silently discards. Per CSS Color 4 a
|
|
1275
|
+
* missing component is treated as `0`, so coerce `NaN` to `0`.
|
|
1276
|
+
*/
|
|
1277
|
+
function nanToZero(value) {
|
|
1278
|
+
return Number.isNaN(value) ? 0 : value;
|
|
1128
1279
|
}
|
|
1129
1280
|
function parseColor(cssColor, builder) {
|
|
1130
1281
|
if (typeof cssColor === "string") {
|
|
@@ -1140,7 +1291,7 @@ function parseColor(cssColor, builder) {
|
|
|
1140
1291
|
} = builder.getOptions();
|
|
1141
1292
|
switch (cssColor.type) {
|
|
1142
1293
|
case "currentcolor":
|
|
1143
|
-
return [{}, "var", "__rn-css-
|
|
1294
|
+
return [{}, "var", "__rn-css-color"];
|
|
1144
1295
|
case "light-dark":
|
|
1145
1296
|
{
|
|
1146
1297
|
const extraRule = {
|
|
@@ -1177,28 +1328,28 @@ function parseColor(cssColor, builder) {
|
|
|
1177
1328
|
case "lab":
|
|
1178
1329
|
color = new _colorjs.default({
|
|
1179
1330
|
space: cssColor.type,
|
|
1180
|
-
coords: [cssColor.l, cssColor.a, cssColor.b],
|
|
1331
|
+
coords: [nanToZero(cssColor.l), nanToZero(cssColor.a), nanToZero(cssColor.b)],
|
|
1181
1332
|
alpha: cssColor.alpha
|
|
1182
1333
|
});
|
|
1183
1334
|
break;
|
|
1184
1335
|
case "lch":
|
|
1185
1336
|
color = new _colorjs.default({
|
|
1186
1337
|
space: cssColor.type,
|
|
1187
|
-
coords: [cssColor.l, cssColor.c, cssColor.h],
|
|
1338
|
+
coords: [nanToZero(cssColor.l), nanToZero(cssColor.c), nanToZero(cssColor.h)],
|
|
1188
1339
|
alpha: cssColor.alpha
|
|
1189
1340
|
});
|
|
1190
1341
|
break;
|
|
1191
1342
|
case "oklab":
|
|
1192
1343
|
color = new _colorjs.default({
|
|
1193
1344
|
space: cssColor.type,
|
|
1194
|
-
coords: [cssColor.l, cssColor.a, cssColor.b],
|
|
1345
|
+
coords: [nanToZero(cssColor.l), nanToZero(cssColor.a), nanToZero(cssColor.b)],
|
|
1195
1346
|
alpha: cssColor.alpha
|
|
1196
1347
|
});
|
|
1197
1348
|
break;
|
|
1198
1349
|
case "oklch":
|
|
1199
1350
|
color = new _colorjs.default({
|
|
1200
1351
|
space: cssColor.type,
|
|
1201
|
-
coords: [cssColor.l, cssColor.c, cssColor.h],
|
|
1352
|
+
coords: [nanToZero(cssColor.l), nanToZero(cssColor.c), nanToZero(cssColor.h)],
|
|
1202
1353
|
alpha: cssColor.alpha
|
|
1203
1354
|
});
|
|
1204
1355
|
break;
|
|
@@ -1268,14 +1419,24 @@ function parseColor(cssColor, builder) {
|
|
|
1268
1419
|
precision: colorPrecision ?? 3
|
|
1269
1420
|
});
|
|
1270
1421
|
} else {
|
|
1271
|
-
|
|
1422
|
+
// Clip out-of-gamut channels, as React Native and every browser do, so a
|
|
1423
|
+
// folded color matches the same color resolved at runtime. toString()
|
|
1424
|
+
// alone would gamut map it with the CSS Color 4 algorithm instead.
|
|
1425
|
+
return color?.to("srgb").toGamut({
|
|
1426
|
+
method: "clip"
|
|
1427
|
+
}).toString({
|
|
1272
1428
|
format: "hex"
|
|
1273
1429
|
});
|
|
1274
1430
|
}
|
|
1275
1431
|
}
|
|
1276
|
-
function
|
|
1432
|
+
function parseLengthPercentageDeclaration(value, builder) {
|
|
1277
1433
|
return parseLengthPercentageOrAuto(value.value, builder);
|
|
1278
1434
|
}
|
|
1435
|
+
function parseLengthPercentageOrAutoDeclaration(value, builder) {
|
|
1436
|
+
return parseLengthPercentageOrAuto(value.value, builder, {
|
|
1437
|
+
allowAuto: true
|
|
1438
|
+
});
|
|
1439
|
+
}
|
|
1279
1440
|
function parseLengthPercentageOrAuto(lengthPercentageOrAuto, builder, {
|
|
1280
1441
|
allowAuto = false
|
|
1281
1442
|
} = {}) {
|
|
@@ -1321,7 +1482,7 @@ function parseJustifyContent(declaration, builder) {
|
|
|
1321
1482
|
return value;
|
|
1322
1483
|
}
|
|
1323
1484
|
function parseAlignContent(declaration, builder) {
|
|
1324
|
-
const allowed = new Set(["flex-start", "flex-end", "center", "stretch", "space-between", "space-around"]);
|
|
1485
|
+
const allowed = new Set(["flex-start", "flex-end", "center", "stretch", "space-between", "space-around", "space-evenly"]);
|
|
1325
1486
|
let value;
|
|
1326
1487
|
switch (declaration.value.type) {
|
|
1327
1488
|
case "normal":
|
|
@@ -1405,7 +1566,7 @@ function parseFontWeight(fontWeight, builder) {
|
|
|
1405
1566
|
switch (fontWeight.type) {
|
|
1406
1567
|
case "absolute":
|
|
1407
1568
|
if (fontWeight.value.type === "weight") {
|
|
1408
|
-
return fontWeight.value.value
|
|
1569
|
+
return fontWeight.value.value;
|
|
1409
1570
|
} else {
|
|
1410
1571
|
return fontWeight.value.type;
|
|
1411
1572
|
}
|
|
@@ -1426,8 +1587,8 @@ function parseTextShadow(declaration, builder) {
|
|
|
1426
1587
|
return;
|
|
1427
1588
|
}
|
|
1428
1589
|
builder.addDescriptor("textShadowColor", parseColor(textShadow.color, builder));
|
|
1429
|
-
builder.addDescriptor("textShadowOffset.width", parseLength(textShadow.xOffset, builder));
|
|
1430
|
-
builder.addDescriptor("textShadowOffset.height", parseLength(textShadow.yOffset, builder));
|
|
1590
|
+
builder.addDescriptor("&.textShadowOffset.width", parseLength(textShadow.xOffset, builder));
|
|
1591
|
+
builder.addDescriptor("&.textShadowOffset.height", parseLength(textShadow.yOffset, builder));
|
|
1431
1592
|
builder.addDescriptor("textShadowRadius", parseLength(textShadow.blur, builder));
|
|
1432
1593
|
}
|
|
1433
1594
|
function parseTextDecorationStyle(declaration, builder) {
|
|
@@ -1465,7 +1626,7 @@ function parseTextDecorationLine(value, builder) {
|
|
|
1465
1626
|
function parsePosition({
|
|
1466
1627
|
value
|
|
1467
1628
|
}, builder) {
|
|
1468
|
-
if (value.type === "absolute" || value.type === "relative") {
|
|
1629
|
+
if (value.type === "absolute" || value.type === "relative" || value.type === "static") {
|
|
1469
1630
|
return value.type;
|
|
1470
1631
|
}
|
|
1471
1632
|
builder.addWarning("value", value.type);
|
|
@@ -1502,25 +1663,17 @@ function parseBorderStyle(value, builder) {
|
|
|
1502
1663
|
function parseBorderBlockWidth(declaration, builder) {
|
|
1503
1664
|
const start = parseBorderSideWidth(declaration.value.start, builder);
|
|
1504
1665
|
const end = parseBorderSideWidth(declaration.value.end, builder);
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
} else {
|
|
1508
|
-
builder.addDescriptor("border-block-start-width", start);
|
|
1509
|
-
builder.addDescriptor("border-block-end-width", end);
|
|
1510
|
-
}
|
|
1666
|
+
builder.addDescriptor("border-top-width", start);
|
|
1667
|
+
builder.addDescriptor("border-bottom-width", end);
|
|
1511
1668
|
}
|
|
1512
1669
|
function parseBorderBlockStyle(declaration, builder) {
|
|
1513
1670
|
const start = parseBorderStyle(declaration.value.start, builder);
|
|
1514
1671
|
const end = parseBorderStyle(declaration.value.end, builder);
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
} else {
|
|
1518
|
-
builder.addDescriptor("border-block-start-style", start);
|
|
1519
|
-
builder.addDescriptor("border-block-end-style", end);
|
|
1520
|
-
}
|
|
1672
|
+
dropUnsupportedInlineStyle(start, builder, "border-block-start-style");
|
|
1673
|
+
dropUnsupportedInlineStyle(end, builder, "border-block-end-style");
|
|
1521
1674
|
}
|
|
1522
1675
|
function parseBorderSideWidthDeclaration(declaration, builder) {
|
|
1523
|
-
builder.addDescriptor(declaration.property, parseBorderSideWidth(declaration.value, builder));
|
|
1676
|
+
builder.addDescriptor(propertyRename[declaration.property] ?? declaration.property, parseBorderSideWidth(declaration.value, builder));
|
|
1524
1677
|
}
|
|
1525
1678
|
function parseBorderSideWidth(value, builder) {
|
|
1526
1679
|
if (value.type === "length") {
|
|
@@ -1549,14 +1702,14 @@ function parseFontFamily({
|
|
|
1549
1702
|
return value[0];
|
|
1550
1703
|
}
|
|
1551
1704
|
function parseLineHeightDeclaration(declaration, builder) {
|
|
1552
|
-
|
|
1705
|
+
builder.addDescriptor("line-height", parseLineHeight(declaration.value, builder));
|
|
1553
1706
|
}
|
|
1554
1707
|
function parseLineHeight(value, builder) {
|
|
1555
1708
|
switch (value.type) {
|
|
1556
1709
|
case "normal":
|
|
1557
1710
|
return undefined;
|
|
1558
1711
|
case "number":
|
|
1559
|
-
return [{}, "em",
|
|
1712
|
+
return [{}, "em", value.value, 1];
|
|
1560
1713
|
case "length":
|
|
1561
1714
|
{
|
|
1562
1715
|
const length = value.value;
|
|
@@ -1565,7 +1718,7 @@ function parseLineHeight(value, builder) {
|
|
|
1565
1718
|
return parseLength(length, builder);
|
|
1566
1719
|
case "percentage":
|
|
1567
1720
|
case "calc":
|
|
1568
|
-
builder.addWarning("style", "line-height", typeof length.value === "number" ? length.value : JSON.stringify(length.value));
|
|
1721
|
+
builder.addWarning("style", "line-height", typeof length.value === "number" ? String(length.value) : JSON.stringify(length.value));
|
|
1569
1722
|
return;
|
|
1570
1723
|
default:
|
|
1571
1724
|
{
|
|
@@ -1630,21 +1783,22 @@ function parseFontVariantCaps(value, builder) {
|
|
|
1630
1783
|
builder.addWarning("value", value);
|
|
1631
1784
|
return undefined;
|
|
1632
1785
|
}
|
|
1633
|
-
function parseLengthOrCoercePercentageToRuntime(value, builder) {
|
|
1634
|
-
return parseLength(value, builder);
|
|
1635
|
-
}
|
|
1636
1786
|
function parseGap(declaration, builder) {
|
|
1637
1787
|
if ("column" in declaration.value) {
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1788
|
+
const row = parseGapValue(declaration.value.row, builder);
|
|
1789
|
+
const column = parseGapValue(declaration.value.column, builder);
|
|
1790
|
+
if (row !== column) {
|
|
1791
|
+
builder.addDescriptor("row-gap", row);
|
|
1792
|
+
builder.addDescriptor("column-gap", column);
|
|
1793
|
+
} else {
|
|
1794
|
+
builder.addDescriptor("gap", row);
|
|
1645
1795
|
}
|
|
1796
|
+
} else if (declaration.value.type === "normal") {
|
|
1797
|
+
builder.addWarning("value", declaration.value.type);
|
|
1798
|
+
} else {
|
|
1646
1799
|
return parseLength(declaration.value.value, builder);
|
|
1647
1800
|
}
|
|
1801
|
+
return;
|
|
1648
1802
|
}
|
|
1649
1803
|
function parseGapValue(value, builder) {
|
|
1650
1804
|
if (value.type === "normal") {
|
|
@@ -1667,19 +1821,26 @@ function parseBoxShadow({
|
|
|
1667
1821
|
value
|
|
1668
1822
|
}, builder) {
|
|
1669
1823
|
for (const [index, shadow] of value.entries()) {
|
|
1670
|
-
builder.addDescriptor(
|
|
1671
|
-
builder.addDescriptor(
|
|
1672
|
-
builder.addDescriptor(
|
|
1673
|
-
builder.addDescriptor(
|
|
1674
|
-
builder.addDescriptor(
|
|
1675
|
-
builder.addDescriptor(
|
|
1824
|
+
builder.addDescriptor(`&.boxShadow.[${index}].color`, parseColor(shadow.color, builder));
|
|
1825
|
+
builder.addDescriptor(`&.boxShadow.[${index}].offsetX`, parseLength(shadow.xOffset, builder));
|
|
1826
|
+
builder.addDescriptor(`&.boxShadow.[${index}].offsetY`, parseLength(shadow.yOffset, builder));
|
|
1827
|
+
builder.addDescriptor(`&.boxShadow.[${index}].blurRadius`, parseLength(shadow.blur, builder));
|
|
1828
|
+
builder.addDescriptor(`&.boxShadow.[${index}].spreadDistance`, parseLength(shadow.spread, builder));
|
|
1829
|
+
builder.addDescriptor(`&.boxShadow.[${index}].inset`, shadow.inset ? true : undefined);
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
function parseBoxSizing(declaration, builder) {
|
|
1833
|
+
if (["border-box", "content-box"].includes(declaration.value)) {
|
|
1834
|
+
return declaration.value;
|
|
1676
1835
|
}
|
|
1836
|
+
builder.addWarning("value", declaration.value);
|
|
1837
|
+
return undefined;
|
|
1677
1838
|
}
|
|
1678
1839
|
function parseDisplay({
|
|
1679
1840
|
value
|
|
1680
1841
|
}, builder) {
|
|
1681
1842
|
if (value.type === "keyword") {
|
|
1682
|
-
if (value.value === "none") {
|
|
1843
|
+
if (value.value === "none" || value.value === "contents") {
|
|
1683
1844
|
return value.value;
|
|
1684
1845
|
} else {
|
|
1685
1846
|
builder.addWarning("value", value.value);
|
|
@@ -1730,6 +1891,14 @@ function parseDisplay({
|
|
|
1730
1891
|
}
|
|
1731
1892
|
}
|
|
1732
1893
|
}
|
|
1894
|
+
function parseDirection(declaration, builder) {
|
|
1895
|
+
if (["ltr", "rtl"].includes(declaration.value)) {
|
|
1896
|
+
builder.addDescriptor("direction", declaration.value);
|
|
1897
|
+
builder.addDescriptor("--__rn-css-direction", declaration.value);
|
|
1898
|
+
}
|
|
1899
|
+
builder.addWarning("value", declaration.value);
|
|
1900
|
+
return;
|
|
1901
|
+
}
|
|
1733
1902
|
function parseAspectRatio({
|
|
1734
1903
|
value
|
|
1735
1904
|
}) {
|
|
@@ -1746,6 +1915,16 @@ function parseAspectRatio({
|
|
|
1746
1915
|
}
|
|
1747
1916
|
}
|
|
1748
1917
|
}
|
|
1918
|
+
function parseBackfaceVisibility({
|
|
1919
|
+
value
|
|
1920
|
+
}, builder) {
|
|
1921
|
+
if (["visible", "hidden"].includes(value)) {
|
|
1922
|
+
return value;
|
|
1923
|
+
} else {
|
|
1924
|
+
builder.addWarning("value", value);
|
|
1925
|
+
return;
|
|
1926
|
+
}
|
|
1927
|
+
}
|
|
1749
1928
|
function parseDimension({
|
|
1750
1929
|
unit,
|
|
1751
1930
|
value
|
|
@@ -1815,7 +1994,10 @@ function parseEnv(value, builder) {
|
|
|
1815
1994
|
case "safe-area-inset-right":
|
|
1816
1995
|
case "safe-area-inset-bottom":
|
|
1817
1996
|
case "safe-area-inset-left":
|
|
1818
|
-
|
|
1997
|
+
{
|
|
1998
|
+
const fallback = parseUnparsed(value.fallback, builder, value.name.value);
|
|
1999
|
+
return fallback ? [{}, "var", [`react-native-css-${value.name.value}`, fallback], 1] : [{}, "var", [`react-native-css-${value.name.value}`], 1];
|
|
2000
|
+
}
|
|
1819
2001
|
case "viewport-segment-width":
|
|
1820
2002
|
case "viewport-segment-height":
|
|
1821
2003
|
case "viewport-segment-top":
|
|
@@ -1836,6 +2018,54 @@ function parseCalcFn(name, tokens, builder, property) {
|
|
|
1836
2018
|
}
|
|
1837
2019
|
return;
|
|
1838
2020
|
}
|
|
2021
|
+
function parseColorMix(tokens, builder, property) {
|
|
2022
|
+
const [inToken, whitespace, colorSpace, comma, ...remaining] = tokens;
|
|
2023
|
+
const rest = remaining.filter(token => token.type !== "token" || !["white-space", "comment"].includes(token.value.type));
|
|
2024
|
+
if (typeof inToken !== "object" || inToken.type !== "token" || inToken.value.type !== "ident" || inToken.value.value !== "in") {
|
|
2025
|
+
return;
|
|
2026
|
+
}
|
|
2027
|
+
if (typeof whitespace !== "object" || whitespace.type !== "token" || whitespace.value.type !== "white-space") {
|
|
2028
|
+
return;
|
|
2029
|
+
}
|
|
2030
|
+
if (typeof comma !== "object" || comma.type !== "token" || comma.value.type !== "comma") {
|
|
2031
|
+
return;
|
|
2032
|
+
}
|
|
2033
|
+
const colorSpaceArg = parseUnparsed(colorSpace, builder, property);
|
|
2034
|
+
if (typeof colorSpaceArg !== "string") {
|
|
2035
|
+
return;
|
|
2036
|
+
}
|
|
2037
|
+
let nextToken = rest.shift();
|
|
2038
|
+
const leftColorArg = parseUnparsed(nextToken, builder, property);
|
|
2039
|
+
if (!leftColorArg) {
|
|
2040
|
+
return;
|
|
2041
|
+
}
|
|
2042
|
+
nextToken = rest.shift();
|
|
2043
|
+
let leftColorPercentage;
|
|
2044
|
+
if (nextToken?.type !== "token" || nextToken.value.type !== "comma") {
|
|
2045
|
+
leftColorPercentage = parseUnparsed(nextToken, builder, property);
|
|
2046
|
+
nextToken = rest.shift();
|
|
2047
|
+
}
|
|
2048
|
+
if (typeof nextToken !== "object" || nextToken.type !== "token" || nextToken.value.type !== "comma") {
|
|
2049
|
+
return;
|
|
2050
|
+
}
|
|
2051
|
+
nextToken = rest.shift();
|
|
2052
|
+
const rightColorArg = parseUnparsed(nextToken, builder, property);
|
|
2053
|
+
nextToken = rest.shift();
|
|
2054
|
+
let rightColorPercentage;
|
|
2055
|
+
if (nextToken?.type !== "token" || nextToken.value.type !== "comma") {
|
|
2056
|
+
rightColorPercentage = parseUnparsed(nextToken, builder, property);
|
|
2057
|
+
nextToken = rest.shift();
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
// We should have expired all tokens now
|
|
2061
|
+
if (nextToken) {
|
|
2062
|
+
return;
|
|
2063
|
+
}
|
|
2064
|
+
return [{}, "colorMix",
|
|
2065
|
+
// Omitted weights must not leave holes: Metro serializes them as null,
|
|
2066
|
+
// which the native resolver rejects.
|
|
2067
|
+
[colorSpaceArg, leftColorArg, leftColorPercentage, rightColorArg, rightColorPercentage].filter(arg => arg !== undefined)];
|
|
2068
|
+
}
|
|
1839
2069
|
function parseCalcArguments([...args], builder, property) {
|
|
1840
2070
|
const parsed = [];
|
|
1841
2071
|
for (const arg of args) {
|
|
@@ -1939,9 +2169,9 @@ function parseTranslateProp(value, prop, builder) {
|
|
|
1939
2169
|
function parseUnresolvedColor(color, builder, property, allowAuto) {
|
|
1940
2170
|
switch (color.type) {
|
|
1941
2171
|
case "rgb":
|
|
1942
|
-
return [{}, "rgba", [round(color.r * 255), round(color.g * 255), round(color.b * 255), parseUnparsed(color.alpha, builder, property)]];
|
|
2172
|
+
return [{}, "rgba", [[round(color.r * 255)], [round(color.g * 255)], [round(color.b * 255)], [parseUnparsed(color.alpha, builder, property)]]];
|
|
1943
2173
|
case "hsl":
|
|
1944
|
-
return [{}, color.type, [color.h, color.s, color.l, parseUnparsed(color.alpha, builder, property)]];
|
|
2174
|
+
return [{}, color.type, [[color.h], [color.s], [color.l], [parseUnparsed(color.alpha, builder, property)]]];
|
|
1945
2175
|
case "light-dark":
|
|
1946
2176
|
{
|
|
1947
2177
|
const extraRule = builder.extendRule({
|
|
@@ -1982,7 +2212,7 @@ function equal(a, b) {
|
|
|
1982
2212
|
return false;
|
|
1983
2213
|
}
|
|
1984
2214
|
function parseTime(time) {
|
|
1985
|
-
return time.type === "milliseconds" ? time.value : time.value * 1000;
|
|
2215
|
+
return round(time.type === "milliseconds" ? time.value : time.value * 1000);
|
|
1986
2216
|
}
|
|
1987
2217
|
function parseSize2DDimensionPercentageDeclaration(declaration, builder) {
|
|
1988
2218
|
return parseSize2DDimensionPercentage(declaration.value, builder);
|
|
@@ -2090,7 +2320,7 @@ function kebabCase(str) {
|
|
|
2090
2320
|
return str.replace(/[A-Z]+(?![a-z])|[A-Z]/g, ($, ofs) => (ofs ? "-" : "") + $.toLowerCase());
|
|
2091
2321
|
}
|
|
2092
2322
|
function parseBackgroundImage(declaration, builder) {
|
|
2093
|
-
builder.addDescriptor("experimental_backgroundImage", declaration.value.flatMap(image => {
|
|
2323
|
+
builder.addDescriptor("experimental_backgroundImage", [{}, "join", [declaration.value.flatMap(image => {
|
|
2094
2324
|
switch (image.type) {
|
|
2095
2325
|
case "gradient":
|
|
2096
2326
|
{
|
|
@@ -2101,14 +2331,14 @@ function parseBackgroundImage(declaration, builder) {
|
|
|
2101
2331
|
return ["none"];
|
|
2102
2332
|
}
|
|
2103
2333
|
return [];
|
|
2104
|
-
}));
|
|
2334
|
+
}), ", "]]);
|
|
2105
2335
|
return;
|
|
2106
2336
|
}
|
|
2107
2337
|
function parseGradient(gradient, builder) {
|
|
2108
2338
|
switch (gradient.type) {
|
|
2109
2339
|
case "linear":
|
|
2110
2340
|
{
|
|
2111
|
-
return [{}, "linear-gradient", [parseLineDirection(gradient.direction, builder), ...gradient.items.map(item => parseGradientItem(item, builder))]];
|
|
2341
|
+
return [{}, "linear-gradient", [[parseLineDirection(gradient.direction, builder)], ...gradient.items.map(item => [parseGradientItem(item, builder)])]];
|
|
2112
2342
|
}
|
|
2113
2343
|
}
|
|
2114
2344
|
return;
|
|
@@ -2137,24 +2367,32 @@ function parseGradientItem(item, builder) {
|
|
|
2137
2367
|
if (item.position) {
|
|
2138
2368
|
args.push(parseLength(item.position, builder));
|
|
2139
2369
|
}
|
|
2140
|
-
return [{}, "
|
|
2370
|
+
return [{}, "colorStop", args, 1];
|
|
2141
2371
|
}
|
|
2142
2372
|
case "hint":
|
|
2143
|
-
return parseLength(item.value, builder);
|
|
2373
|
+
return [{}, "gradientPosition", parseLength(item.value, builder), 1];
|
|
2144
2374
|
}
|
|
2145
2375
|
}
|
|
2146
2376
|
function parseObjectFit(declaration, builder) {
|
|
2147
2377
|
builder.addMapping({
|
|
2148
|
-
"object-fit": "contentFit"
|
|
2378
|
+
"object-fit": ["contentFit"]
|
|
2149
2379
|
});
|
|
2150
2380
|
builder.addDescriptor("object-fit", parseUnparsed(declaration.value, builder, "object-fit"));
|
|
2151
2381
|
}
|
|
2152
2382
|
function parseObjectPosition(declaration, builder) {
|
|
2153
2383
|
builder.addMapping({
|
|
2154
|
-
"object-position": "contentPosition"
|
|
2384
|
+
"object-position": ["contentPosition"]
|
|
2155
2385
|
});
|
|
2156
2386
|
builder.addDescriptor("object-position", [{}, "join", [parseUnparsed(declaration.value, builder, "object-position"), " "]]);
|
|
2157
2387
|
}
|
|
2388
|
+
function parseCornerShape(declaration, builder) {
|
|
2389
|
+
const shape = parseUnparsed(declaration.value, builder, "corner-shape");
|
|
2390
|
+
if (shape === "round") {
|
|
2391
|
+
builder.addDescriptor("borderCurve", "circular");
|
|
2392
|
+
} else if (shape === "squircle") {
|
|
2393
|
+
builder.addDescriptor("borderCurve", "continuous");
|
|
2394
|
+
}
|
|
2395
|
+
}
|
|
2158
2396
|
function parseVisibility(declaration, builder) {
|
|
2159
2397
|
if (declaration.value === "visible") {
|
|
2160
2398
|
builder.addDescriptor("opacity", 1);
|
|
@@ -2164,6 +2402,14 @@ function parseVisibility(declaration, builder) {
|
|
|
2164
2402
|
builder.addWarning("value", declaration.value);
|
|
2165
2403
|
}
|
|
2166
2404
|
}
|
|
2405
|
+
function parseOutlineStyle(declaration, builder) {
|
|
2406
|
+
const allowed = ["solid", "dotted", "dashed"];
|
|
2407
|
+
if (declaration.value.type !== "auto" && allowed.includes(declaration.value.value)) {
|
|
2408
|
+
builder.addDescriptor("outlineStyle", declaration.value.value);
|
|
2409
|
+
} else {
|
|
2410
|
+
builder.addWarning("value", declaration.value.type === "auto" ? "auto" : declaration.value.value);
|
|
2411
|
+
}
|
|
2412
|
+
}
|
|
2167
2413
|
function parseFilter(declaration, builder) {
|
|
2168
2414
|
if (declaration.value.type === "none") {
|
|
2169
2415
|
return "unset";
|
|
@@ -2183,7 +2429,7 @@ function parseFilter(declaration, builder) {
|
|
|
2183
2429
|
};
|
|
2184
2430
|
case "hue-rotate":
|
|
2185
2431
|
return {
|
|
2186
|
-
[value.type]: parseAngle(value.value, builder)
|
|
2432
|
+
[(0, _selectors.toRNProperty)(value.type)]: parseAngle(value.value, builder)
|
|
2187
2433
|
};
|
|
2188
2434
|
case "drop-shadow":
|
|
2189
2435
|
return [{}, (0, _selectors.toRNProperty)(value.type), [parseLength(value.value.xOffset, builder), parseLength(value.value.yOffset, builder), parseLength(value.value.blur, builder), parseColor(value.value.color, builder)]];
|