react-native-css 0.0.0-nightly.08286a2 → 0.0.0-nightly.0b4380e
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 +35 -5
- package/dist/commonjs/babel/helpers.js +7 -0
- package/dist/commonjs/babel/helpers.js.map +1 -1
- package/dist/commonjs/babel/import-plugin.js +20 -8
- package/dist/commonjs/babel/import-plugin.js.map +1 -1
- package/dist/commonjs/babel/react-native-web.js +17 -4
- package/dist/commonjs/babel/react-native-web.js.map +1 -1
- package/dist/commonjs/babel/react-native.js +9 -4
- package/dist/commonjs/babel/react-native.js.map +1 -1
- package/dist/commonjs/compiler/atRules.js +49 -10
- package/dist/commonjs/compiler/atRules.js.map +1 -1
- package/dist/commonjs/compiler/compiler.js +188 -38
- package/dist/commonjs/compiler/compiler.js.map +1 -1
- package/dist/commonjs/compiler/container-query.js +6 -1
- package/dist/commonjs/compiler/container-query.js.map +1 -1
- package/dist/commonjs/compiler/declarations.js +159 -67
- package/dist/commonjs/compiler/declarations.js.map +1 -1
- package/dist/commonjs/compiler/inline-variables.js +47 -1
- package/dist/commonjs/compiler/inline-variables.js.map +1 -1
- package/dist/commonjs/compiler/keyframes.js +1 -1
- package/dist/commonjs/compiler/keyframes.js.map +1 -1
- package/dist/commonjs/compiler/lightningcss-loader.js +15 -2
- package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -1
- package/dist/commonjs/compiler/media-query.js +16 -6
- package/dist/commonjs/compiler/media-query.js.map +1 -1
- package/dist/commonjs/compiler/selector-builder.js +16 -4
- package/dist/commonjs/compiler/selector-builder.js.map +1 -1
- package/dist/commonjs/compiler/stylesheet.js +20 -8
- package/dist/commonjs/compiler/stylesheet.js.map +1 -1
- package/dist/commonjs/compiler/supports.js +2 -2
- package/dist/commonjs/compiler/supports.js.map +1 -1
- package/dist/commonjs/components/ActivityIndicator.js +6 -6
- package/dist/commonjs/components/ActivityIndicator.js.map +1 -1
- package/dist/commonjs/components/Button.js +6 -6
- package/dist/commonjs/components/Button.js.map +1 -1
- package/dist/commonjs/components/FlatList.js +7 -6
- package/dist/commonjs/components/FlatList.js.map +1 -1
- package/dist/commonjs/components/Image.js +6 -6
- package/dist/commonjs/components/Image.js.map +1 -1
- package/dist/commonjs/components/ImageBackground.js +8 -12
- package/dist/commonjs/components/ImageBackground.js.map +1 -1
- package/dist/commonjs/components/KeyboardAvoidingView.js +8 -9
- package/dist/commonjs/components/KeyboardAvoidingView.js.map +1 -1
- package/dist/commonjs/components/Pressable.js +6 -6
- package/dist/commonjs/components/Pressable.js.map +1 -1
- package/dist/commonjs/components/SafeAreaProvider.js +13 -0
- package/dist/commonjs/components/SafeAreaProvider.js.map +1 -0
- package/dist/commonjs/components/ScrollView.js +6 -6
- package/dist/commonjs/components/ScrollView.js.map +1 -1
- package/dist/commonjs/components/Switch.js +6 -6
- package/dist/commonjs/components/Switch.js.map +1 -1
- package/dist/commonjs/components/Text.js +6 -6
- package/dist/commonjs/components/Text.js.map +1 -1
- package/dist/commonjs/components/TextInput.js +6 -6
- package/dist/commonjs/components/TextInput.js.map +1 -1
- package/dist/commonjs/components/TouchableHighlight.js +6 -6
- package/dist/commonjs/components/TouchableHighlight.js.map +1 -1
- package/dist/commonjs/components/TouchableOpacity.js +6 -6
- package/dist/commonjs/components/TouchableOpacity.js.map +1 -1
- package/dist/commonjs/components/TouchableWithoutFeedback.js +6 -6
- package/dist/commonjs/components/TouchableWithoutFeedback.js.map +1 -1
- package/dist/commonjs/components/View.js +6 -6
- package/dist/commonjs/components/View.js.map +1 -1
- package/dist/commonjs/components/VirtualizedList.js +6 -6
- package/dist/commonjs/components/VirtualizedList.js.map +1 -1
- package/dist/commonjs/components/copyComponentProperties.js +19 -0
- package/dist/commonjs/components/copyComponentProperties.js.map +1 -0
- package/dist/commonjs/components/index.cjs +313 -0
- package/dist/commonjs/components/index.cjs.map +1 -0
- package/dist/commonjs/components/index.js.map +1 -1
- package/dist/commonjs/jest/index.js +4 -2
- package/dist/commonjs/jest/index.js.map +1 -1
- package/dist/commonjs/metro/cache-version.js +43 -0
- package/dist/commonjs/metro/cache-version.js.map +1 -0
- package/dist/commonjs/metro/index.js +10 -118
- package/dist/commonjs/metro/index.js.map +1 -1
- package/dist/commonjs/metro/metro-transformer.js +24 -4
- package/dist/commonjs/metro/metro-transformer.js.map +1 -1
- package/dist/commonjs/{native/metro.js → metro/override.js} +1 -1
- package/dist/commonjs/{native/metro.js.map → metro/override.js.map} +1 -1
- package/dist/commonjs/metro/resolver.js +15 -22
- package/dist/commonjs/metro/resolver.js.map +1 -1
- package/dist/commonjs/metro/typescript.js +26 -6
- package/dist/commonjs/metro/typescript.js.map +1 -1
- package/dist/commonjs/metro/warnings.js +135 -0
- package/dist/commonjs/metro/warnings.js.map +1 -0
- package/dist/commonjs/native/api.js +18 -10
- package/dist/commonjs/native/api.js.map +1 -1
- package/dist/commonjs/native/conditions/attributes.js +16 -9
- package/dist/commonjs/native/conditions/attributes.js.map +1 -1
- package/dist/commonjs/native/conditions/container-query.js +11 -11
- package/dist/commonjs/native/conditions/container-query.js.map +1 -1
- package/dist/commonjs/native/conditions/guards.js +7 -0
- package/dist/commonjs/native/conditions/guards.js.map +1 -1
- package/dist/commonjs/native/conditions/media-query.js +1 -1
- package/dist/commonjs/native/conditions/media-query.js.map +1 -1
- package/dist/commonjs/native/index.js +8 -8
- package/dist/commonjs/native/index.js.map +1 -1
- package/dist/commonjs/native/react/interaction.js +10 -5
- package/dist/commonjs/native/react/interaction.js.map +1 -1
- package/dist/commonjs/native/react/rules.js +45 -38
- package/dist/commonjs/native/react/rules.js.map +1 -1
- package/dist/commonjs/native/react/useNativeCss.js +80 -19
- package/dist/commonjs/native/react/useNativeCss.js.map +1 -1
- package/dist/commonjs/native/react/usePassthrough.js +5 -2
- package/dist/commonjs/native/react/usePassthrough.js.map +1 -1
- package/dist/commonjs/{poison.pill.js → native/react-native-css-metro-override.js} +1 -1
- package/dist/commonjs/native/react-native-css-metro-override.js.map +1 -0
- package/dist/commonjs/native/reactivity.js +64 -24
- package/dist/commonjs/native/reactivity.js.map +1 -1
- package/dist/commonjs/native/reanimated.js +15 -3
- package/dist/commonjs/native/reanimated.js.map +1 -1
- package/dist/commonjs/native/styles/calculate-props.js +1 -1
- package/dist/commonjs/native/styles/functions/color-mix.js +64 -0
- package/dist/commonjs/native/styles/functions/color-mix.js.map +1 -0
- package/dist/commonjs/native/styles/functions/filters.js +18 -5
- package/dist/commonjs/native/styles/functions/filters.js.map +1 -1
- package/dist/commonjs/native/styles/functions/index.js +11 -0
- package/dist/commonjs/native/styles/functions/index.js.map +1 -1
- package/dist/commonjs/native/styles/functions/numeric-functions.js +4 -3
- package/dist/commonjs/native/styles/functions/numeric-functions.js.map +1 -1
- package/dist/commonjs/native/styles/functions/string-functions.js +16 -1
- package/dist/commonjs/native/styles/functions/string-functions.js.map +1 -1
- package/dist/commonjs/native/styles/functions/transform-functions.js +5 -4
- package/dist/commonjs/native/styles/functions/transform-functions.js.map +1 -1
- package/dist/commonjs/native/styles/index.js +382 -28
- package/dist/commonjs/native/styles/index.js.map +1 -1
- package/dist/commonjs/native/styles/resolve.js +10 -7
- package/dist/commonjs/native/styles/resolve.js.map +1 -1
- package/dist/commonjs/native/styles/scale-factor.js +13 -0
- package/dist/commonjs/native/styles/scale-factor.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/_handler.js +10 -0
- package/dist/commonjs/native/styles/shorthands/_handler.js.map +1 -1
- package/dist/commonjs/native/styles/shorthands/animation.js +11 -4
- package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -1
- package/dist/commonjs/native/styles/shorthands/box-shadow.js +45 -12
- package/dist/commonjs/native/styles/shorthands/box-shadow.js.map +1 -1
- package/dist/commonjs/native/styles/shorthands/index.js +11 -0
- package/dist/commonjs/native/styles/shorthands/index.js.map +1 -1
- package/dist/commonjs/native/styles/shorthands/logical-border-width.js +22 -0
- package/dist/commonjs/native/styles/shorthands/logical-border-width.js.map +1 -0
- package/dist/commonjs/native/styles/variables.js +165 -48
- package/dist/commonjs/native/styles/variables.js.map +1 -1
- package/dist/commonjs/native-internal/root.js +46 -7
- package/dist/commonjs/native-internal/root.js.map +1 -1
- package/dist/commonjs/native-internal/style-collection.js +22 -37
- package/dist/commonjs/native-internal/style-collection.js.map +1 -1
- package/dist/commonjs/native-internal/variables.js +1 -1
- package/dist/commonjs/native-internal/variables.js.map +1 -1
- package/dist/commonjs/utilities/dot-notation.types.js +4 -0
- package/dist/commonjs/utilities/equality.js +41 -0
- package/dist/commonjs/utilities/equality.js.map +1 -0
- package/dist/commonjs/utilities/index.js +11 -0
- package/dist/commonjs/utilities/index.js.map +1 -1
- package/dist/commonjs/utilities/style-descriptor.js +4 -9
- package/dist/commonjs/utilities/style-descriptor.js.map +1 -1
- package/dist/commonjs/web/api.js +7 -4
- package/dist/commonjs/web/api.js.map +1 -1
- package/dist/commonjs/web/assign-style.js +4 -1
- package/dist/commonjs/web/assign-style.js.map +1 -1
- package/dist/module/babel/helpers.js +6 -0
- package/dist/module/babel/helpers.js.map +1 -1
- package/dist/module/babel/import-plugin.js +22 -10
- package/dist/module/babel/import-plugin.js.map +1 -1
- package/dist/module/babel/react-native-web.js +16 -4
- package/dist/module/babel/react-native-web.js.map +1 -1
- package/dist/module/babel/react-native.js +9 -4
- package/dist/module/babel/react-native.js.map +1 -1
- package/dist/module/compiler/atRules.js +47 -10
- package/dist/module/compiler/atRules.js.map +1 -1
- package/dist/module/compiler/compiler.js +190 -40
- package/dist/module/compiler/compiler.js.map +1 -1
- package/dist/module/compiler/compiler.types.js +2 -0
- package/dist/module/compiler/compiler.types.js.map +1 -1
- package/dist/module/compiler/container-query.js +6 -1
- package/dist/module/compiler/container-query.js.map +1 -1
- package/dist/module/compiler/declarations.js +158 -67
- package/dist/module/compiler/declarations.js.map +1 -1
- package/dist/module/compiler/inline-variables.js +47 -1
- package/dist/module/compiler/inline-variables.js.map +1 -1
- package/dist/module/compiler/keyframes.js +1 -1
- package/dist/module/compiler/keyframes.js.map +1 -1
- package/dist/module/compiler/lightningcss-loader.js +14 -2
- package/dist/module/compiler/lightningcss-loader.js.map +1 -1
- package/dist/module/compiler/media-query.js +16 -6
- package/dist/module/compiler/media-query.js.map +1 -1
- package/dist/module/compiler/selector-builder.js +16 -5
- package/dist/module/compiler/selector-builder.js.map +1 -1
- package/dist/module/compiler/stylesheet.js +20 -8
- package/dist/module/compiler/stylesheet.js.map +1 -1
- package/dist/module/compiler/supports.js +2 -2
- package/dist/module/compiler/supports.js.map +1 -1
- package/dist/module/components/ActivityIndicator.js +4 -3
- package/dist/module/components/ActivityIndicator.js.map +1 -1
- package/dist/module/components/Button.js +4 -3
- package/dist/module/components/Button.js.map +1 -1
- package/dist/module/components/FlatList.js +5 -3
- package/dist/module/components/FlatList.js.map +1 -1
- package/dist/module/components/Image.js +4 -3
- package/dist/module/components/Image.js.map +1 -1
- package/dist/module/components/ImageBackground.js +6 -9
- package/dist/module/components/ImageBackground.js.map +1 -1
- package/dist/module/components/KeyboardAvoidingView.js +6 -6
- package/dist/module/components/KeyboardAvoidingView.js.map +1 -1
- package/dist/module/components/Pressable.js +4 -3
- package/dist/module/components/Pressable.js.map +1 -1
- package/dist/module/components/SafeAreaProvider.js +4 -0
- package/dist/module/components/SafeAreaProvider.js.map +1 -0
- package/dist/module/components/ScrollView.js +4 -3
- package/dist/module/components/ScrollView.js.map +1 -1
- package/dist/module/components/Switch.js +4 -3
- package/dist/module/components/Switch.js.map +1 -1
- package/dist/module/components/Text.js +4 -3
- package/dist/module/components/Text.js.map +1 -1
- package/dist/module/components/TextInput.js +4 -3
- package/dist/module/components/TextInput.js.map +1 -1
- package/dist/module/components/TouchableHighlight.js +4 -3
- package/dist/module/components/TouchableHighlight.js.map +1 -1
- package/dist/module/components/TouchableOpacity.js +4 -3
- package/dist/module/components/TouchableOpacity.js.map +1 -1
- package/dist/module/components/TouchableWithoutFeedback.js +4 -3
- package/dist/module/components/TouchableWithoutFeedback.js.map +1 -1
- package/dist/module/components/View.js +4 -3
- package/dist/module/components/View.js.map +1 -1
- package/dist/module/components/VirtualizedList.js +4 -3
- package/dist/module/components/VirtualizedList.js.map +1 -1
- package/dist/module/components/copyComponentProperties.js +15 -0
- package/dist/module/components/copyComponentProperties.js.map +1 -0
- package/dist/module/components/index.cjs +313 -0
- package/dist/module/components/index.cjs.map +1 -0
- package/dist/module/components/index.js.map +1 -1
- package/dist/module/jest/index.js +4 -2
- package/dist/module/jest/index.js.map +1 -1
- package/dist/module/metro/cache-version.js +39 -0
- package/dist/module/metro/cache-version.js.map +1 -0
- package/dist/module/metro/index.js +10 -117
- package/dist/module/metro/index.js.map +1 -1
- package/dist/module/metro/metro-transformer.js +24 -4
- package/dist/module/metro/metro-transformer.js.map +1 -1
- package/dist/module/metro/override.js +4 -0
- package/dist/module/{native/metro.js.map → metro/override.js.map} +1 -1
- package/dist/module/metro/resolver.js +15 -22
- package/dist/module/metro/resolver.js.map +1 -1
- package/dist/module/metro/typescript.js +26 -6
- package/dist/module/metro/typescript.js.map +1 -1
- package/dist/module/metro/warnings.js +131 -0
- package/dist/module/metro/warnings.js.map +1 -0
- package/dist/module/native/api.js +19 -12
- package/dist/module/native/api.js.map +1 -1
- package/dist/module/native/conditions/attributes.js +16 -9
- package/dist/module/native/conditions/attributes.js.map +1 -1
- package/dist/module/native/conditions/container-query.js +11 -11
- package/dist/module/native/conditions/container-query.js.map +1 -1
- package/dist/module/native/conditions/guards.js +7 -0
- package/dist/module/native/conditions/guards.js.map +1 -1
- package/dist/module/native/conditions/media-query.js +1 -1
- package/dist/module/native/conditions/media-query.js.map +1 -1
- package/dist/module/native/index.js +1 -1
- package/dist/module/native/index.js.map +1 -1
- package/dist/module/native/react/interaction.js +10 -5
- package/dist/module/native/react/interaction.js.map +1 -1
- package/dist/module/native/react/rules.js +46 -39
- package/dist/module/native/react/rules.js.map +1 -1
- package/dist/module/native/react/useNativeCss.js +83 -22
- package/dist/module/native/react/useNativeCss.js.map +1 -1
- package/dist/module/native/react/usePassthrough.js +5 -2
- package/dist/module/native/react/usePassthrough.js.map +1 -1
- package/dist/module/{poison.pill.js → native/react-native-css-metro-override.js} +1 -1
- package/dist/module/native/react-native-css-metro-override.js.map +1 -0
- package/dist/module/native/reactivity.js +58 -22
- package/dist/module/native/reactivity.js.map +1 -1
- package/dist/module/native/reanimated.js +15 -3
- package/dist/module/native/reanimated.js.map +1 -1
- package/dist/module/native/styles/calculate-props.js +1 -1
- package/dist/module/native/styles/functions/color-mix.js +59 -0
- package/dist/module/native/styles/functions/color-mix.js.map +1 -0
- package/dist/module/native/styles/functions/filters.js +16 -4
- package/dist/module/native/styles/functions/filters.js.map +1 -1
- package/dist/module/native/styles/functions/index.js +1 -0
- package/dist/module/native/styles/functions/index.js.map +1 -1
- package/dist/module/native/styles/functions/numeric-functions.js +4 -3
- package/dist/module/native/styles/functions/numeric-functions.js.map +1 -1
- package/dist/module/native/styles/functions/string-functions.js +13 -0
- package/dist/module/native/styles/functions/string-functions.js.map +1 -1
- package/dist/module/native/styles/functions/transform-functions.js +5 -4
- package/dist/module/native/styles/functions/transform-functions.js.map +1 -1
- package/dist/module/native/styles/index.js +383 -28
- package/dist/module/native/styles/index.js.map +1 -1
- package/dist/module/native/styles/resolve.js +10 -7
- package/dist/module/native/styles/resolve.js.map +1 -1
- package/dist/module/native/styles/scale-factor.js +9 -0
- package/dist/module/native/styles/scale-factor.js.map +1 -0
- package/dist/module/native/styles/shorthands/_handler.js +11 -1
- package/dist/module/native/styles/shorthands/_handler.js.map +1 -1
- package/dist/module/native/styles/shorthands/animation.js +9 -3
- package/dist/module/native/styles/shorthands/animation.js.map +1 -1
- package/dist/module/native/styles/shorthands/box-shadow.js +46 -12
- package/dist/module/native/styles/shorthands/box-shadow.js.map +1 -1
- package/dist/module/native/styles/shorthands/index.js +1 -0
- package/dist/module/native/styles/shorthands/index.js.map +1 -1
- package/dist/module/native/styles/shorthands/logical-border-width.js +18 -0
- package/dist/module/native/styles/shorthands/logical-border-width.js.map +1 -0
- package/dist/module/native/styles/variables.js +166 -50
- package/dist/module/native/styles/variables.js.map +1 -1
- package/dist/module/native-internal/root.js +44 -7
- package/dist/module/native-internal/root.js.map +1 -1
- package/dist/module/native-internal/style-collection.js +10 -37
- package/dist/module/native-internal/style-collection.js.map +1 -1
- package/dist/module/native-internal/variables.js +2 -2
- package/dist/module/native-internal/variables.js.map +1 -1
- package/dist/module/utilities/dot-notation.types.js +2 -0
- package/dist/module/utilities/equality.js +37 -0
- package/dist/module/utilities/equality.js.map +1 -0
- package/dist/module/utilities/index.js +1 -0
- package/dist/module/utilities/index.js.map +1 -1
- package/dist/module/utilities/style-descriptor.js +4 -9
- package/dist/module/utilities/style-descriptor.js.map +1 -1
- package/dist/module/web/api.js +7 -4
- package/dist/module/web/api.js.map +1 -1
- package/dist/module/web/assign-style.js +4 -1
- package/dist/module/web/assign-style.js.map +1 -1
- package/dist/typescript/commonjs/src/babel/helpers.d.ts +2 -1
- package/dist/typescript/commonjs/src/babel/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/babel/import-plugin.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/babel/react-native-web.d.ts +2 -1
- package/dist/typescript/commonjs/src/babel/react-native-web.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/babel/react-native.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/atRules.d.ts +4 -1
- package/dist/typescript/commonjs/src/compiler/atRules.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/compiler.d.ts +1 -5
- package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +13 -0
- package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts +2 -1
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts +1 -1
- package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +1 -1
- package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/media-query.d.ts +1 -1
- package/dist/typescript/commonjs/src/compiler/media-query.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts +2 -1
- package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +8 -8
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Button.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/FlatList.d.ts +3 -3
- package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Image.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Pressable.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/SafeAreaProvider.d.ts +2 -0
- package/dist/typescript/commonjs/src/components/SafeAreaProvider.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/ScrollView.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Switch.d.ts +2 -6
- package/dist/typescript/commonjs/src/components/Switch.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Text.d.ts +2 -6
- package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/TextInput.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/View.d.ts +2 -6
- package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts +3 -3
- package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts +5 -0
- package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/index.d.cts +2 -0
- package/dist/typescript/commonjs/src/components/index.d.cts.map +1 -0
- package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts +1 -1
- package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/jest/index.d.ts +2 -10
- package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/cache-version.d.ts +8 -0
- package/dist/typescript/commonjs/src/metro/cache-version.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/index.d.ts +4 -0
- package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts +9 -4
- package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/override.d.ts +2 -0
- package/dist/typescript/commonjs/src/metro/override.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/typescript.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/warnings.d.ts +13 -0
- package/dist/typescript/commonjs/src/metro/warnings.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/api.d.ts +5 -9
- package/dist/typescript/commonjs/src/native/api.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/conditions/guards.d.ts +2 -1
- package/dist/typescript/commonjs/src/native/conditions/guards.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/index.d.ts +1 -1
- package/dist/typescript/commonjs/src/native/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/react/interaction.d.ts +1 -1
- package/dist/typescript/commonjs/src/native/react/interaction.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/react/rules.d.ts +7 -2
- package/dist/typescript/commonjs/src/native/react/rules.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts +1 -4
- package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/react/usePassthrough.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts +2 -0
- package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/reactivity.d.ts +15 -3
- package/dist/typescript/commonjs/src/native/reactivity.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/reanimated.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts +3 -0
- package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts +2 -0
- package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/functions/numeric-functions.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts +2 -0
- package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/functions/transform-functions.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/index.d.ts +5 -4
- package/dist/typescript/commonjs/src/native/styles/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/resolve.d.ts +1 -0
- package/dist/typescript/commonjs/src/native/styles/resolve.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/scale-factor.d.ts +2 -0
- package/dist/typescript/commonjs/src/native/styles/scale-factor.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/_handler.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/shorthands/box-shadow.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/shorthands/logical-border-width.d.ts +4 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/logical-border-width.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/variables.d.ts +3 -2
- package/dist/typescript/commonjs/src/native/styles/variables.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native-internal/root.d.ts +38 -0
- package/dist/typescript/commonjs/src/native-internal/root.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts +2 -2
- package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native-internal/variables.d.ts +1 -1
- package/dist/typescript/commonjs/src/native-internal/variables.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime.types.d.ts +11 -6
- package/dist/typescript/commonjs/src/runtime.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts +3 -2
- package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/utilities/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 +1 -0
- package/dist/typescript/commonjs/src/utilities/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts +1 -1
- package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/web/api.d.ts +5 -5
- package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/web/assign-style.d.ts.map +1 -1
- package/dist/typescript/module/src/babel/helpers.d.ts +2 -1
- package/dist/typescript/module/src/babel/helpers.d.ts.map +1 -1
- package/dist/typescript/module/src/babel/import-plugin.d.ts +1 -1
- package/dist/typescript/module/src/babel/import-plugin.d.ts.map +1 -1
- package/dist/typescript/module/src/babel/react-native-web.d.ts +2 -1
- package/dist/typescript/module/src/babel/react-native-web.d.ts.map +1 -1
- package/dist/typescript/module/src/babel/react-native.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/atRules.d.ts +6 -3
- package/dist/typescript/module/src/compiler/atRules.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/compiler.d.ts +3 -7
- package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/compiler.types.d.ts +14 -1
- package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/container-query.d.ts +2 -2
- package/dist/typescript/module/src/compiler/container-query.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/declarations.d.ts +4 -3
- package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/index.d.ts +2 -2
- package/dist/typescript/module/src/compiler/index.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/inline-variables.d.ts +2 -2
- package/dist/typescript/module/src/compiler/inline-variables.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/keyframes.d.ts +3 -3
- package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/media-query.d.ts +3 -3
- package/dist/typescript/module/src/compiler/media-query.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/pseudo-elements.d.ts +1 -1
- package/dist/typescript/module/src/compiler/pseudo-elements.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/selector-builder.d.ts +3 -2
- 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 +8 -8
- package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts +2 -4
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Button.d.ts +2 -4
- package/dist/typescript/module/src/components/Button.d.ts.map +1 -1
- package/dist/typescript/module/src/components/FlatList.d.ts +3 -3
- package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Image.d.ts +2 -4
- package/dist/typescript/module/src/components/Image.d.ts.map +1 -1
- package/dist/typescript/module/src/components/ImageBackground.d.ts +2 -4
- package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -1
- package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +2 -4
- package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Pressable.d.ts +2 -4
- package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -1
- package/dist/typescript/module/src/components/SafeAreaProvider.d.ts +2 -0
- package/dist/typescript/module/src/components/SafeAreaProvider.d.ts.map +1 -0
- package/dist/typescript/module/src/components/ScrollView.d.ts +2 -4
- package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Switch.d.ts +2 -6
- package/dist/typescript/module/src/components/Switch.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Text.d.ts +2 -6
- package/dist/typescript/module/src/components/Text.d.ts.map +1 -1
- package/dist/typescript/module/src/components/TextInput.d.ts +2 -4
- package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -1
- package/dist/typescript/module/src/components/TouchableHighlight.d.ts +2 -4
- package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -1
- package/dist/typescript/module/src/components/TouchableOpacity.d.ts +2 -4
- package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -1
- package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +2 -4
- package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -1
- package/dist/typescript/module/src/components/View.d.ts +2 -6
- package/dist/typescript/module/src/components/View.d.ts.map +1 -1
- package/dist/typescript/module/src/components/VirtualizedList.d.ts +3 -3
- package/dist/typescript/module/src/components/VirtualizedList.d.ts.map +1 -1
- package/dist/typescript/module/src/components/copyComponentProperties.d.ts +5 -0
- package/dist/typescript/module/src/components/copyComponentProperties.d.ts.map +1 -0
- package/dist/typescript/module/src/components/index.d.cts +2 -0
- package/dist/typescript/module/src/components/index.d.cts.map +1 -0
- package/dist/typescript/module/src/components/index.d.ts +16 -16
- package/dist/typescript/module/src/components/index.d.ts.map +1 -1
- package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts +1 -1
- package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
- package/dist/typescript/module/src/jest/index.d.ts +2 -10
- package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/cache-version.d.ts +8 -0
- package/dist/typescript/module/src/metro/cache-version.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/index.d.ts +5 -1
- package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/metro-transformer.d.ts +10 -5
- package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/override.d.ts +2 -0
- package/dist/typescript/module/src/metro/override.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/typescript.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/warnings.d.ts +13 -0
- package/dist/typescript/module/src/metro/warnings.d.ts.map +1 -0
- package/dist/typescript/module/src/native/api.d.ts +6 -10
- package/dist/typescript/module/src/native/api.d.ts.map +1 -1
- package/dist/typescript/module/src/native/conditions/attributes.d.ts +1 -1
- package/dist/typescript/module/src/native/conditions/attributes.d.ts.map +1 -1
- package/dist/typescript/module/src/native/conditions/container-query.d.ts +2 -2
- package/dist/typescript/module/src/native/conditions/container-query.d.ts.map +1 -1
- package/dist/typescript/module/src/native/conditions/guards.d.ts +4 -3
- package/dist/typescript/module/src/native/conditions/guards.d.ts.map +1 -1
- package/dist/typescript/module/src/native/conditions/index.d.ts +3 -3
- package/dist/typescript/module/src/native/conditions/index.d.ts.map +1 -1
- package/dist/typescript/module/src/native/conditions/media-query.d.ts +1 -1
- package/dist/typescript/module/src/native/conditions/media-query.d.ts.map +1 -1
- package/dist/typescript/module/src/native/index.d.ts +3 -3
- package/dist/typescript/module/src/native/index.d.ts.map +1 -1
- package/dist/typescript/module/src/native/react/interaction.d.ts +2 -2
- package/dist/typescript/module/src/native/react/interaction.d.ts.map +1 -1
- package/dist/typescript/module/src/native/react/rules.d.ts +9 -4
- package/dist/typescript/module/src/native/react/rules.d.ts.map +1 -1
- package/dist/typescript/module/src/native/react/useNativeCss.d.ts +5 -8
- package/dist/typescript/module/src/native/react/useNativeCss.d.ts.map +1 -1
- package/dist/typescript/module/src/native/react/usePassthrough.d.ts +1 -1
- package/dist/typescript/module/src/native/react/usePassthrough.d.ts.map +1 -1
- package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts +2 -0
- package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts.map +1 -0
- package/dist/typescript/module/src/native/reactivity.d.ts +15 -3
- package/dist/typescript/module/src/native/reactivity.d.ts.map +1 -1
- package/dist/typescript/module/src/native/reanimated.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/calculate-props.d.ts +2 -2
- package/dist/typescript/module/src/native/styles/calculate-props.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/calc.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/functions/calc.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts +3 -0
- package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/filters.d.ts +3 -1
- package/dist/typescript/module/src/native/styles/functions/filters.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/index.d.ts +8 -7
- package/dist/typescript/module/src/native/styles/functions/index.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts +3 -1
- package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/index.d.ts +9 -8
- package/dist/typescript/module/src/native/styles/index.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/line-height.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/line-height.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/resolve.d.ts +4 -3
- package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/scale-factor.d.ts +2 -0
- package/dist/typescript/module/src/native/styles/scale-factor.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts +3 -2
- package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/border.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/border.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/index.d.ts +6 -5
- package/dist/typescript/module/src/native/styles/shorthands/index.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/logical-border-width.d.ts +4 -0
- package/dist/typescript/module/src/native/styles/shorthands/logical-border-width.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/units.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/units.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/variables.d.ts +4 -3
- package/dist/typescript/module/src/native/styles/variables.d.ts.map +1 -1
- package/dist/typescript/module/src/native-internal/index.d.ts +3 -3
- package/dist/typescript/module/src/native-internal/index.d.ts.map +1 -1
- package/dist/typescript/module/src/native-internal/root.d.ts +39 -1
- package/dist/typescript/module/src/native-internal/root.d.ts.map +1 -1
- package/dist/typescript/module/src/native-internal/style-collection.d.ts +3 -3
- package/dist/typescript/module/src/native-internal/style-collection.d.ts.map +1 -1
- package/dist/typescript/module/src/native-internal/variables.d.ts +2 -2
- package/dist/typescript/module/src/native-internal/variables.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime.d.ts +1 -1
- package/dist/typescript/module/src/runtime.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime.native.d.ts +1 -1
- package/dist/typescript/module/src/runtime.native.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime.types.d.ts +11 -6
- package/dist/typescript/module/src/runtime.types.d.ts.map +1 -1
- package/dist/typescript/module/src/utilities/dot-notation.types.d.ts +3 -2
- package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -1
- package/dist/typescript/module/src/utilities/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 +4 -3
- package/dist/typescript/module/src/utilities/index.d.ts.map +1 -1
- package/dist/typescript/module/src/utilities/specificity.d.ts +2 -2
- package/dist/typescript/module/src/utilities/specificity.d.ts.map +1 -1
- package/dist/typescript/module/src/utilities/style-descriptor.d.ts +1 -1
- package/dist/typescript/module/src/utilities/style-descriptor.d.ts.map +1 -1
- package/dist/typescript/module/src/web/api.d.ts +5 -5
- package/dist/typescript/module/src/web/api.d.ts.map +1 -1
- package/dist/typescript/module/src/web/assign-style.d.ts.map +1 -1
- package/dist/typescript/module/src/web/index.d.ts +3 -3
- package/dist/typescript/module/src/web/index.d.ts.map +1 -1
- package/node/babel.mjs +4 -0
- package/node/compiler.mjs +2 -0
- package/node/metro.mjs +2 -0
- package/package.json +86 -39
- package/src/babel/helpers.ts +8 -1
- package/src/babel/import-plugin.ts +31 -16
- package/src/babel/react-native-web.ts +32 -4
- package/src/babel/react-native.ts +9 -4
- package/src/compiler/atRules.ts +60 -10
- package/src/compiler/compiler.ts +266 -49
- package/src/compiler/compiler.types.ts +17 -0
- package/src/compiler/container-query.ts +8 -3
- package/src/compiler/declarations.ts +290 -105
- package/src/compiler/inline-variables.ts +67 -0
- package/src/compiler/keyframes.ts +2 -2
- package/src/compiler/lightningcss-loader.ts +21 -1
- package/src/compiler/media-query.ts +20 -9
- package/src/compiler/selector-builder.ts +32 -5
- package/src/compiler/stylesheet.ts +38 -15
- package/src/compiler/supports.ts +2 -2
- package/src/components/ActivityIndicator.tsx +9 -6
- package/src/components/Button.tsx +9 -4
- package/src/components/FlatList.tsx +15 -5
- package/src/components/Image.tsx +9 -4
- package/src/components/ImageBackground.tsx +11 -12
- package/src/components/KeyboardAvoidingView.tsx +11 -9
- package/src/components/Pressable.tsx +9 -4
- package/src/components/SafeAreaProvider.tsx +1 -0
- package/src/components/ScrollView.tsx +9 -6
- package/src/components/Switch.tsx +9 -4
- package/src/components/Text.tsx +9 -4
- package/src/components/TextInput.tsx +9 -4
- package/src/components/TouchableHighlight.tsx +9 -6
- package/src/components/TouchableOpacity.tsx +9 -6
- package/src/components/TouchableWithoutFeedback.tsx +9 -6
- package/src/components/View.tsx +9 -4
- package/src/components/VirtualizedList.tsx +18 -6
- package/src/components/copyComponentProperties.ts +21 -0
- package/src/components/index.cts +311 -0
- package/src/components/{index.tsx → index.ts} +0 -1
- package/src/jest/index.ts +5 -2
- package/src/metro/cache-version.ts +48 -0
- package/src/metro/index.ts +15 -166
- package/src/metro/metro-transformer.ts +41 -9
- package/src/metro/override.ts +1 -0
- package/src/metro/resolver.ts +29 -28
- package/src/metro/typescript.ts +53 -6
- package/src/metro/warnings.ts +187 -0
- package/src/native/api.tsx +26 -17
- package/src/native/conditions/attributes.ts +26 -9
- package/src/native/conditions/container-query.ts +11 -9
- package/src/native/conditions/guards.ts +13 -1
- package/src/native/conditions/media-query.ts +1 -1
- package/src/native/index.ts +1 -2
- package/src/native/react/interaction.ts +11 -6
- package/src/native/react/rules.ts +58 -45
- package/src/native/react/useNativeCss.ts +95 -21
- package/src/native/react/usePassthrough.ts +3 -2
- package/src/native/reactivity.ts +79 -24
- package/src/native/reanimated.ts +24 -5
- package/src/native/styles/calculate-props.ts +1 -1
- package/src/native/styles/functions/color-mix.ts +74 -0
- package/src/native/styles/functions/filters.ts +20 -6
- package/src/native/styles/functions/index.ts +1 -0
- package/src/native/styles/functions/numeric-functions.ts +7 -6
- package/src/native/styles/functions/string-functions.ts +18 -0
- package/src/native/styles/functions/transform-functions.ts +5 -4
- package/src/native/styles/index.ts +444 -37
- package/src/native/styles/resolve.ts +15 -12
- package/src/native/styles/scale-factor.ts +6 -0
- package/src/native/styles/shorthands/_handler.ts +14 -1
- package/src/native/styles/shorthands/animation.ts +17 -3
- package/src/native/styles/shorthands/box-shadow.ts +50 -15
- package/src/native/styles/shorthands/index.ts +1 -0
- package/src/native/styles/shorthands/logical-border-width.ts +32 -0
- package/src/native/styles/variables.ts +242 -45
- package/src/native-internal/root.ts +83 -13
- package/src/native-internal/style-collection.ts +21 -46
- package/src/native-internal/variables.tsx +6 -4
- package/src/runtime.types.ts +17 -15
- package/src/utilities/dot-notation.types.ts +12 -4
- package/src/utilities/equality.ts +41 -0
- package/src/utilities/index.ts +1 -0
- package/src/utilities/style-descriptor.ts +11 -16
- package/src/web/api.tsx +13 -13
- package/src/web/assign-style.ts +2 -1
- package/types.d.ts +3 -20
- package/dist/commonjs/compiler/inheritance.test.js +0 -78
- package/dist/commonjs/compiler/inheritance.test.js.map +0 -1
- package/dist/commonjs/poison.pill.js.map +0 -1
- package/dist/commonjs/runtime/native/injection.js +0 -2
- package/dist/commonjs/runtime/native/injection.js.map +0 -1
- package/dist/module/compiler/inheritance.test.js +0 -78
- package/dist/module/compiler/inheritance.test.js.map +0 -1
- package/dist/module/native/metro.js +0 -5
- package/dist/module/poison.pill.js.map +0 -1
- package/dist/module/runtime/native/injection.js +0 -2
- package/dist/module/runtime/native/injection.js.map +0 -1
- package/dist/typescript/commonjs/example/app.config.d.ts +0 -4
- package/dist/typescript/commonjs/example/app.config.d.ts.map +0 -1
- package/dist/typescript/commonjs/example/src/App.d.ts +0 -2
- package/dist/typescript/commonjs/example/src/App.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts +0 -2
- package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/native/metro.d.ts +0 -2
- package/dist/typescript/commonjs/src/native/metro.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/poison.pill.d.ts +0 -2
- package/dist/typescript/commonjs/src/poison.pill.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/injection.d.ts +0 -1
- package/dist/typescript/commonjs/src/runtime/native/injection.d.ts.map +0 -1
- package/dist/typescript/module/example/app.config.d.ts +0 -4
- package/dist/typescript/module/example/app.config.d.ts.map +0 -1
- package/dist/typescript/module/example/src/App.d.ts +0 -2
- package/dist/typescript/module/example/src/App.d.ts.map +0 -1
- package/dist/typescript/module/src/compiler/inheritance.test.d.ts +0 -2
- package/dist/typescript/module/src/compiler/inheritance.test.d.ts.map +0 -1
- package/dist/typescript/module/src/native/metro.d.ts +0 -2
- package/dist/typescript/module/src/native/metro.d.ts.map +0 -1
- package/dist/typescript/module/src/poison.pill.d.ts +0 -2
- package/dist/typescript/module/src/poison.pill.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/injection.d.ts +0 -1
- package/dist/typescript/module/src/runtime/native/injection.d.ts.map +0 -1
- package/src/compiler/inheritance.test.ts +0 -121
- package/src/native/metro.ts +0 -2
- package/src/runtime/native/injection.ts +0 -0
- /package/src/{poison.pill.ts → native/react-native-css-metro-override.ts} +0 -0
|
@@ -2,16 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
|
+
import { isStyleDescriptorArray } from "react-native-css/utilities";
|
|
5
6
|
import { transformKeys } from "./defaults.js";
|
|
6
7
|
import * as functions from "./functions/index.js";
|
|
7
8
|
import { lineHeight } from "./line-height.js";
|
|
9
|
+
import { scaleFactor } from "./scale-factor.js";
|
|
8
10
|
import * as shorthands from "./shorthands/index.js";
|
|
9
11
|
import { em, rem, vh, vw } from "./units.js";
|
|
10
12
|
import { varResolver } from "./variables.js";
|
|
11
13
|
const functionResolvers = {
|
|
12
14
|
...shorthands,
|
|
13
15
|
...functions,
|
|
14
|
-
animationName: shorthands.animation,
|
|
15
16
|
lineHeight,
|
|
16
17
|
em,
|
|
17
18
|
rem,
|
|
@@ -38,7 +39,7 @@ export function resolveValue(value, get, options) {
|
|
|
38
39
|
return null;
|
|
39
40
|
} else if (value.endsWith("px")) {
|
|
40
41
|
// Inline vars() might set a value with a px suffix
|
|
41
|
-
return
|
|
42
|
+
return parseFloat(value.slice(0, -2));
|
|
42
43
|
} else {
|
|
43
44
|
return value;
|
|
44
45
|
}
|
|
@@ -48,7 +49,7 @@ export function resolveValue(value, get, options) {
|
|
|
48
49
|
if (!Array.isArray(value)) {
|
|
49
50
|
return value;
|
|
50
51
|
}
|
|
51
|
-
if (
|
|
52
|
+
if (isStyleDescriptorArray(value)) {
|
|
52
53
|
value = value.map(d => resolveValue(d, get, options)).filter(d => d !== undefined);
|
|
53
54
|
if (castToArray && !Array.isArray(value)) {
|
|
54
55
|
return [value];
|
|
@@ -70,8 +71,13 @@ export function resolveValue(value, get, options) {
|
|
|
70
71
|
value = fn(simpleResolve, value, get, options);
|
|
71
72
|
} else if (transformKeys.has(name)) {
|
|
72
73
|
// translate, rotate, scale, etc.
|
|
74
|
+
let resolved = simpleResolve(value[2], castToArray);
|
|
75
|
+
// CSS scale percentages describe a factor, unlike translation percentages.
|
|
76
|
+
if ((name === "scaleX" || name === "scaleY" || name === "scale") && typeof resolved === "string" && resolved.endsWith("%")) {
|
|
77
|
+
resolved = scaleFactor(resolved);
|
|
78
|
+
}
|
|
73
79
|
return {
|
|
74
|
-
[name]:
|
|
80
|
+
[name]: resolved
|
|
75
81
|
};
|
|
76
82
|
} else {
|
|
77
83
|
let args = simpleResolve(value[2], castToArray);
|
|
@@ -97,7 +103,4 @@ export function resolveValue(value, get, options) {
|
|
|
97
103
|
}
|
|
98
104
|
}
|
|
99
105
|
}
|
|
100
|
-
function isDescriptorArray(value) {
|
|
101
|
-
return Array.isArray(value) && typeof value[0] === "object" ? Array.isArray(value[0]) : true;
|
|
102
|
-
}
|
|
103
106
|
//# sourceMappingURL=resolve.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["transformKeys","functions","lineHeight","shorthands","em","rem","vh","vw","varResolver","functionResolvers","
|
|
1
|
+
{"version":3,"names":["isStyleDescriptorArray","transformKeys","functions","lineHeight","scaleFactor","shorthands","em","rem","vh","vw","varResolver","functionResolvers","resolveValue","value","get","options","castToArray","endsWith","parseFloat","slice","Array","isArray","map","d","filter","undefined","name","simpleResolve","fn","Error","has","resolved","args","joinedArgs","arg","flat","join","replace"],"sourceRoot":"../../../../src","sources":["native/styles/resolve.ts"],"mappings":";;AAAA;;AAOA,SAASA,sBAAsB,QAAQ,4BAA4B;AAKnE,SAASC,aAAa,QAAQ,eAAY;AAC1C,OAAO,KAAKC,SAAS,MAAM,sBAAa;AACxC,SAASC,UAAU,QAAQ,kBAAe;AAC1C,SAASC,WAAW,QAAQ,mBAAgB;AAC5C,OAAO,KAAKC,UAAU,MAAM,uBAAc;AAC1C,SAASC,EAAE,EAAEC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CAACW,IAAI,CAAC,EAAE;YAC9B,IAAIC,UAAU,GAAGD,IAAI,CAClBV,GAAG,CAAEY,GAAY,IAAK;cACrB,IAAId,KAAK,CAACC,OAAO,CAACa,GAAG,CAAC,EAAE;gBACtB,OAAOA,GAAG,CAACC,IAAI,CAAC,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;cAC7B;cACA,OAAOF,GAAG;YACZ,CAAC,CAAC,CACDV,MAAM,CAAEX,KAAK,IAAKA,KAAK,KAAK,GAAG,CAAC,CAChCuB,IAAI,CAAC,IAAI,CAAC;YAEb,IAAIV,IAAI,KAAK,iBAAiB,EAAE;cAC9B;cACAO,UAAU,GAAGA,UAAU,CAACI,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC;YACnD;YAEAxB,KAAK,GAAG,GAAGa,IAAI,IAAIO,UAAU,GAAG;UAClC,CAAC,MAAM;YACLpB,KAAK,GAAG,GAAGa,IAAI,IAAIM,IAAI,GAAG;UAC5B;QACF;QAEA,OAAOhB,WAAW,IAAIH,KAAK,IAAI,CAACO,KAAK,CAACC,OAAO,CAACR,KAAK,CAAC,GAAG,CAACA,KAAK,CAAC,GAAGA,KAAK;MACxE;EACF;AACF","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["scaleFactor","value","endsWith","Number","slice"],"sourceRoot":"../../../../src","sources":["native/styles/scale-factor.ts"],"mappings":";;AAAA,OAAO,SAASA,WAAWA,CAACC,KAAc,EAAE;EAC1C,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,CAACC,QAAQ,CAAC,GAAG,CAAC,EAAE;IACpD,OAAOC,MAAM,CAACF,KAAK,CAACG,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG;EACzC;EACA,OAAOH,KAAK;AACd","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import { isStyleDescriptorArray } from "react-native-css/utilities";
|
|
4
|
+
import { isStyleDescriptorArray, isStyleFunction } from "react-native-css/utilities";
|
|
5
5
|
import { setDeepPath } from "../../objects.js";
|
|
6
6
|
import { ShortHandSymbol } from "../constants.js";
|
|
7
7
|
import { defaultValues } from "../defaults.js";
|
|
@@ -24,6 +24,16 @@ export function shorthandHandler(mappings, defaults, returnType = "shorthandObje
|
|
|
24
24
|
if (Array.isArray(type)) {
|
|
25
25
|
return type.includes(value) || type.includes(typeof value);
|
|
26
26
|
}
|
|
27
|
+
|
|
28
|
+
// Style functions (var, calc, env, etc.) are unresolved at pattern-match
|
|
29
|
+
// time — their actual values won't be known until runtime variable
|
|
30
|
+
// resolution. Accepting them in any type slot makes pattern matching
|
|
31
|
+
// less strict when variables are involved, but rejecting them would
|
|
32
|
+
// break variable-based shadows entirely (e.g. box-shadow: var(--shadow)
|
|
33
|
+
// where --shadow resolves to "0 4px 6px -1px #000").
|
|
34
|
+
if (isStyleFunction(value)) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
27
37
|
switch (type) {
|
|
28
38
|
case "string":
|
|
29
39
|
case "number":
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["isStyleDescriptorArray","setDeepPath","ShortHandSymbol","defaultValues","shorthandHandler","mappings","defaults","returnType","resolve","value","__","castToArray","args","Array","isArray","flat","match","find","mapping","length","every","map","index","type","includes","endsWith","seenDefaults","Set","tuples","delete","from","target","prop"],"sourceRoot":"../../../../../src","sources":["native/styles/shorthands/_handler.ts"],"mappings":";;AAAA;AACA,
|
|
1
|
+
{"version":3,"names":["isStyleDescriptorArray","isStyleFunction","setDeepPath","ShortHandSymbol","defaultValues","shorthandHandler","mappings","defaults","returnType","resolve","value","__","castToArray","args","Array","isArray","flat","match","find","mapping","length","every","map","index","type","includes","endsWith","seenDefaults","Set","tuples","delete","from","target","prop"],"sourceRoot":"../../../../../src","sources":["native/styles/shorthands/_handler.ts"],"mappings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AAK,GAAG,CAACA,KAAK,CAAC;MACjB;MAEA,OAAO,CAACA,KAAK,EAAEY,GAAG,CAAC,CAAC,CAAC,CAAC;IACxB,CACF,CAAC,CACF;IAED,IAAId,UAAU,KAAK,iBAAiB,IAAIA,UAAU,KAAK,QAAQ,EAAE;MAC/D,MAAMwB,MAA+B,GACnCxB,UAAU,KAAK,iBAAiB,GAAG;QAAE,CAACL,eAAe,GAAG;MAAK,CAAC,GAAG,CAAC,CAAC;MAErE,KAAK,MAAM,CAACO,KAAK,EAAEuB,IAAI,CAAC,IAAIJ,MAAM,EAAE;QAClC,IAAI,OAAOI,IAAI,KAAK,QAAQ,EAAE;UAC5BD,MAAM,CAACC,IAAI,CAAC,GAAGvB,KAAK;QACtB,CAAC,MAAM;UACLR,WAAW,CAAC8B,MAAM,EAAEC,IAAI,EAAEvB,KAAK,CAAC;QAClC;MACF;MAEA,OAAOsB,MAAM;IACf,CAAC,MAAM;MACL,OAAOH,MAAM;IACf;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -12,18 +12,20 @@ const fill = ["animationFillMode", ["none", "forwards", "backwards", "both"], "n
|
|
|
12
12
|
const playState = ["animationPlayState", ["running", "paused"], "running"];
|
|
13
13
|
const direction = ["animationDirection", ["normal", "reverse", "alternate", "alternate-reverse"], "normal"];
|
|
14
14
|
const timingFunction = ["animationTimingFunction", ["linear", "ease", "ease-in", "ease-out", "ease-in-out", "object"], "ease"];
|
|
15
|
-
export const animationShorthand = shorthandHandler([[name], [duration, name], [name, duration], [name, duration, iteration], [name, duration, timingFunction, iteration], [duration, delay, name], [duration, delay, iteration, name], [duration, delay, iteration, timingFunction, name], [name, duration, timingFunction, delay, iteration, fill]], [name, delay, direction, duration, fill, iteration, playState, timingFunction], "tuples");
|
|
15
|
+
export const animationShorthand = shorthandHandler([[name], [duration, name], [name, duration], [name, duration, timingFunction], [duration, timingFunction, name], [name, duration, iteration], [name, duration, timingFunction, iteration], [duration, delay, name], [duration, delay, iteration, name], [duration, delay, iteration, timingFunction, name], [name, duration, timingFunction, delay, iteration, fill]], [name, delay, direction, duration, fill, iteration, playState, timingFunction], "tuples");
|
|
16
16
|
export const animation = (resolveValue, value, get, options) => {
|
|
17
|
-
const animationShortHandTuples = animationShorthand(resolveValue, value, get, options);
|
|
17
|
+
const animationShortHandTuples = animationShorthand(resolveValue, [value[2]], get, options);
|
|
18
18
|
if (!Array.isArray(animationShortHandTuples)) {
|
|
19
19
|
return;
|
|
20
20
|
}
|
|
21
|
-
animationShortHandTuples.pop();
|
|
22
21
|
const nameTuple = animationShortHandTuples.find(tuple => tuple[1] === "animationName");
|
|
23
22
|
const name = nameTuple?.[0];
|
|
24
23
|
if (!nameTuple || typeof name !== "string") {
|
|
25
24
|
return;
|
|
26
25
|
}
|
|
26
|
+
if (name === "none") {
|
|
27
|
+
return applyShorthand(animationShortHandTuples);
|
|
28
|
+
}
|
|
27
29
|
const keyframes = get(StyleCollection.keyframes(name));
|
|
28
30
|
const animation = {};
|
|
29
31
|
for (const [progress, declarations] of keyframes) {
|
|
@@ -48,4 +50,8 @@ export const animation = (resolveValue, value, get, options) => {
|
|
|
48
50
|
nameTuple[0] = animation;
|
|
49
51
|
return applyShorthand(animationShortHandTuples);
|
|
50
52
|
};
|
|
53
|
+
export const animationName = (resolveValue, value, get, options) => {
|
|
54
|
+
const shorthand = animation(resolveValue, value, get, options);
|
|
55
|
+
return shorthand?.animationName;
|
|
56
|
+
};
|
|
51
57
|
//# sourceMappingURL=animation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleCollection","applyShorthand","shorthandHandler","name","delay","duration","iteration","fill","playState","direction","timingFunction","animationShorthand","animation","resolveValue","value","get","options","animationShortHandTuples","Array","isArray","
|
|
1
|
+
{"version":3,"names":["StyleCollection","applyShorthand","shorthandHandler","name","delay","duration","iteration","fill","playState","direction","timingFunction","animationShorthand","animation","resolveValue","value","get","options","animationShortHandTuples","Array","isArray","nameTuple","find","tuple","keyframes","progress","declarations","props","calculateProps","s","d","renderGuards","inheritedVariables","inlineVariables","normal","Object","assign","important","style","animationName","shorthand"],"sourceRoot":"../../../../../src","sources":["native/styles/shorthands/animation.ts"],"mappings":";;AAAA;AACA,SAASA,eAAe,QAAQ,kCAAkC;AAElE,SAASC,cAAc,QAAQ,kBAAe;AAE9C,SAASC,gBAAgB,QAAQ,eAAY;AAE7C,MAAMC,IAAI,GAAG,CAAC,eAAe,EAAE,QAAQ,EAAE,MAAM,CAAU;AACzD,MAAMC,KAAK,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,CAAC,CAAU;AACtD,MAAMC,QAAQ,GAAG,CAAC,mBAAmB,EAAE,QAAQ,EAAE,CAAC,CAAU;AAC5D,MAAMC,SAAS,GAAG,CAChB,yBAAyB,EACzB,CAAC,QAAQ,EAAE,UAAU,CAAC,EACtB,CAAC,CACO;AACV,MAAMC,IAAI,GAAG,CACX,mBAAmB,EACnB,CAAC,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,CAAC,EACzC,MAAM,CACE;AACV,MAAMC,SAAS,GAAG,CAChB,oBAAoB,EACpB,CAAC,SAAS,EAAE,QAAQ,CAAC,EACrB,SAAS,CACD;AACV,MAAMC,SAAS,GAAG,CAChB,oBAAoB,EACpB,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,mBAAmB,CAAC,EACvD,QAAQ,CACA;AACV,MAAMC,cAAc,GAAG,CACrB,yBAAyB,EACzB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,CAAC,EAClE,MAAM,CACE;AAEV,OAAO,MAAMC,kBAAkB,GAAGT,gBAAgB,CAChD,CACE,CAACC,IAAI,CAAC,EACN,CAACE,QAAQ,EAAEF,IAAI,CAAC,EAChB,CAACA,IAAI,EAAEE,QAAQ,CAAC,EAChB,CAACF,IAAI,EAAEE,QAAQ,EAAEK,cAAc,CAAC,EAChC,CAACL,QAAQ,EAAEK,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|
import { shorthandHandler } from "./_handler.js";
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
// "color" type accepts both strings ("#fff") and objects (PlatformColor from currentcolor).
|
|
7
|
+
// Using "string" here would reject platform color objects and silently drop the shadow.
|
|
8
|
+
const color = ["color", "color"];
|
|
6
9
|
const offsetX = ["offsetX", "number"];
|
|
7
10
|
const offsetY = ["offsetY", "number"];
|
|
8
11
|
const blurRadius = ["blurRadius", "number"];
|
|
9
12
|
const spreadDistance = ["spreadDistance", "number"];
|
|
10
|
-
//
|
|
11
|
-
|
|
12
|
-
const handler = shorthandHandler([
|
|
13
|
+
// Match the literal string "inset" - the array type checks if value is in array
|
|
14
|
+
const inset = ["inset", ["inset"]];
|
|
15
|
+
const handler = shorthandHandler([
|
|
16
|
+
// Standard patterns (without inset)
|
|
17
|
+
[offsetX, offsetY, blurRadius, spreadDistance], [offsetX, offsetY, blurRadius, spreadDistance, color], [color, offsetX, offsetY], [color, offsetX, offsetY, blurRadius, spreadDistance], [offsetX, offsetY, color], [offsetX, offsetY, blurRadius, color],
|
|
18
|
+
// Inset patterns - "inset" keyword at the beginning
|
|
19
|
+
[inset, offsetX, offsetY, blurRadius, spreadDistance], [inset, offsetX, offsetY, blurRadius, spreadDistance, color], [inset, offsetX, offsetY, blurRadius, color], [inset, color, offsetX, offsetY, blurRadius, spreadDistance]], [], "object");
|
|
13
20
|
export const boxShadow = (resolveValue, func, get, options) => {
|
|
14
21
|
const args = resolveValue(func[2]);
|
|
15
22
|
if (!isStyleDescriptorArray(args)) {
|
|
16
23
|
return args;
|
|
17
|
-
} else {
|
|
18
|
-
return args.flatMap(flattenShadowDescriptor).map(shadows => {
|
|
19
|
-
if (shadows === undefined) {
|
|
20
|
-
return;
|
|
21
|
-
} else {
|
|
22
|
-
return omitTransparentShadows(handler(resolveValue, shadows, get, options));
|
|
23
|
-
}
|
|
24
|
-
}).filter(v => v !== undefined);
|
|
25
24
|
}
|
|
25
|
+
|
|
26
|
+
// A flat array of primitives (e.g. [0, 4, 6, -1, "#000"]) is a single shadow
|
|
27
|
+
// resolved from a runtime variable. Pass it directly to the pattern handler.
|
|
28
|
+
// A nested array (e.g. [[0, 4, 6, -1, "#000"], [...]]) is multiple shadows.
|
|
29
|
+
if (args.length > 0 && !Array.isArray(args[0])) {
|
|
30
|
+
const result = handler(resolveValue, args, get, options);
|
|
31
|
+
if (result === undefined) {
|
|
32
|
+
return [];
|
|
33
|
+
}
|
|
34
|
+
const filtered = omitTransparentShadows(result);
|
|
35
|
+
return filtered !== undefined ? [normalizeInsetValue(filtered)] : [];
|
|
36
|
+
}
|
|
37
|
+
return args.flatMap(flattenShadowDescriptor).map(shadows => {
|
|
38
|
+
if (shadows === undefined) {
|
|
39
|
+
return;
|
|
40
|
+
} else {
|
|
41
|
+
return normalizeInsetValue(omitTransparentShadows(handler(resolveValue, shadows, get, options)));
|
|
42
|
+
}
|
|
43
|
+
}).filter(v => v !== undefined);
|
|
26
44
|
};
|
|
27
45
|
function flattenShadowDescriptor(arg) {
|
|
28
46
|
if (isStyleDescriptorArray(arg) && isStyleDescriptorArray(arg[0])) {
|
|
@@ -40,4 +58,20 @@ function omitTransparentShadows(style) {
|
|
|
40
58
|
}
|
|
41
59
|
return style;
|
|
42
60
|
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Convert inset: "inset" to inset: true for React Native boxShadow.
|
|
64
|
+
*
|
|
65
|
+
* The shorthand handler matches the literal "inset" string and assigns it as the value.
|
|
66
|
+
* React Native's boxShadow expects inset to be a boolean.
|
|
67
|
+
*/
|
|
68
|
+
function normalizeInsetValue(style) {
|
|
69
|
+
if (typeof style === "object" && style && "inset" in style) {
|
|
70
|
+
return {
|
|
71
|
+
...style,
|
|
72
|
+
inset: true
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
return style;
|
|
76
|
+
}
|
|
43
77
|
//# sourceMappingURL=box-shadow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["isStyleDescriptorArray","shorthandHandler","color","offsetX","offsetY","blurRadius","spreadDistance","handler","boxShadow","resolveValue","func","get","options","args","
|
|
1
|
+
{"version":3,"names":["isStyleDescriptorArray","shorthandHandler","color","offsetX","offsetY","blurRadius","spreadDistance","inset","handler","boxShadow","resolveValue","func","get","options","args","length","Array","isArray","result","undefined","filtered","omitTransparentShadows","normalizeInsetValue","flatMap","flattenShadowDescriptor","map","shadows","filter","v","arg","style"],"sourceRoot":"../../../../../src","sources":["native/styles/shorthands/box-shadow.ts"],"mappings":";;AACA,SAASA,sBAAsB,QAAQ,4BAA4B;AAGnE,SAASC,gBAAgB,QAAQ,eAAY;;AAE7C;AACA;AACA,MAAMC,KAAK,GAAG,CAAC,OAAO,EAAE,OAAO,CAAU;AACzC,MAAMC,OAAO,GAAG,CAAC,SAAS,EAAE,QAAQ,CAAU;AAC9C,MAAMC,OAAO,GAAG,CAAC,SAAS,EAAE,QAAQ,CAAU;AAC9C,MAAMC,UAAU,GAAG,CAAC,YAAY,EAAE,QAAQ,CAAU;AACpD,MAAMC,cAAc,GAAG,CAAC,gBAAgB,EAAE,QAAQ,CAAU;AAC5D;AACA,MAAMC,KAAK,GAAG,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,CAAU;AAE3C,MAAMC,OAAO,GAAGP,gBAAgB,CAC9B;AACE;AACA,CAACE,OAAO,EAAEC,OAAO,EAAEC,UAAU,EAAEC,cAAc,CAAC,EAC9C,CAACH,OAAO,EAAEC,OAAO,EAAEC,UAAU,EAAEC,cAAc,EAAEJ,KAAK,CAAC,EACrD,CAACA,KAAK,EAAEC,OAAO,EAAEC,OAAO,CAAC,EACzB,CAACF,KAAK,EAAEC,OAAO,EAAEC,OAAO,EAAEC,UAAU,EAAEC,cAAc,CAAC,EACrD,CAACH,OAAO,EAAEC,OAAO,EAAEF,KAAK,CAAC,EACzB,CAACC,OAAO,EAAEC,OAAO,EAAEC,UAAU,EAAEH,KAAK,CAAC;AACrC;AACA,CAACK,KAAK,EAAEJ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OAAO,EAAEd,GAAG,EAAEC,OAAO,CAAC,CACrE,CAAC;IACH;EACF,CAAC,CAAC,CACDc,MAAM,CAAEC,CAAC,IAAKA,CAAC,KAAKT,SAAS,CAAC;AACnC,CAAC;AAED,SAASK,uBAAuBA,CAACK,GAAoB,EAAqB;EACxE,IAAI7B,sBAAsB,CAAC6B,GAAG,CAAC,IAAI7B,sBAAsB,CAAC6B,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE;IACjE,OAAOA,GAAG,CAACJ,GAAG,CAAEI,GAAG,IAAK;MACtB,OAAOL,uBAAuB,CAACK,GAAG,CAAC;IACrC,CAAC,CAAC;EACJ;EAEA,OAAO,CAACA,GAAG,CAAC;AACd;AAEA,SAASR,sBAAsBA,CAACS,KAAc,EAAE;EAC9C,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,IAAI,OAAO,IAAIA,KAAK,EAAE;IAC1D,IAAIA,KAAK,CAAC5B,KAAK,KAAK,OAAO,IAAI4B,KAAK,CAAC5B,KAAK,KAAK,aAAa,EAAE;MAC5D;IACF;EACF;EAEA,OAAO4B,KAAK;AACd;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAASR,mBAAmBA,CAACQ,KAAc,EAAE;EAC3C,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,IAAI,OAAO,IAAIA,KAAK,EAAE;IAC1D,OAAO;MAAE,GAAGA,KAAK;MAAEvB,KAAK,EAAE;IAAK,CAAC;EAClC;EAEA,OAAOuB,KAAK;AACd","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["native/styles/shorthands/index.ts"],"mappings":";;AAAA,cAAc,gBAAa;AAC3B,cAAc,aAAU;AACxB,cAAc,iBAAc;AAC5B,cAAc,kBAAe;AAC7B,cAAc,gBAAa","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["native/styles/shorthands/index.ts"],"mappings":";;AAAA,cAAc,gBAAa;AAC3B,cAAc,aAAU;AACxB,cAAc,2BAAwB;AACtC,cAAc,iBAAc;AAC5B,cAAc,kBAAe;AAC7B,cAAc,gBAAa","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { ShortHandSymbol } from "../constants.js";
|
|
4
|
+
function logicalWidth(start, end) {
|
|
5
|
+
return (resolve, descriptor) => {
|
|
6
|
+
const resolved = resolve(descriptor[2]);
|
|
7
|
+
const values = Array.isArray(resolved) ? resolved : [resolved];
|
|
8
|
+
if (values.length < 1 || values.length > 2 || !values.every(value => typeof value === "number" && Number.isFinite(value) && value >= 0)) return;
|
|
9
|
+
return {
|
|
10
|
+
[ShortHandSymbol]: true,
|
|
11
|
+
[start]: values[0],
|
|
12
|
+
[end]: values[1] ?? values[0]
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export const borderBlockWidth = logicalWidth("borderTopWidth", "borderBottomWidth");
|
|
17
|
+
export const borderInlineWidth = logicalWidth("borderStartWidth", "borderEndWidth");
|
|
18
|
+
//# sourceMappingURL=logical-border-width.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ShortHandSymbol","logicalWidth","start","end","resolve","descriptor","resolved","values","Array","isArray","length","every","value","Number","isFinite","borderBlockWidth","borderInlineWidth"],"sourceRoot":"../../../../../src","sources":["native/styles/shorthands/logical-border-width.ts"],"mappings":";;AAAA,SAASA,eAAe,QAAQ,iBAAc;AAG9C,SAASC,YAAYA,CAACC,KAAa,EAAEC,GAAW,EAAyB;EACvE,OAAO,CAACC,OAAO,EAAEC,UAAU,KAAK;IAC9B,MAAMC,QAAQ,GAAGF,OAAO,CAACC,UAAU,CAAC,CAAC,CAAC,CAAC;IACvC,MAAME,MAAiB,GAAGC,KAAK,CAACC,OAAO,CAACH,QAAQ,CAAC,GAAGA,QAAQ,GAAG,CAACA,QAAQ,CAAC;IACzE,IACEC,MAAM,CAACG,MAAM,GAAG,CAAC,IACjBH,MAAM,CAACG,MAAM,GAAG,CAAC,IACjB,CAACH,MAAM,CAACI,KAAK,CACVC,KAAK,IACJ,OAAOA,KAAK,KAAK,QAAQ,IAAIC,MAAM,CAACC,QAAQ,CAACF,KAAK,CAAC,IAAIA,KAAK,IAAI,CACpE,CAAC,EAED;IACF,OAAO;MACL,CAACZ,eAAe,GAAG,IAAI;MACvB,CAACE,KAAK,GAAGK,MAAM,CAAC,CAAC,CAAC;MAClB,CAACJ,GAAG,GAAGI,MAAM,CAAC,CAAC,CAAC,IAAIA,MAAM,CAAC,CAAC;IAC9B,CAAC;EACH,CAAC;AACH;AAEA,OAAO,MAAMQ,gBAAgB,GAAGd,YAAY,CAC1C,gBAAgB,EAChB,mBACF,CAAC;AACD,OAAO,MAAMe,iBAAiB,GAAGf,YAAY,CAC3C,kBAAkB,EAClB,gBACF,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { rootVariables, universalVariables } from "react-native-css/native-internal";
|
|
4
|
-
import { isStyleDescriptorArray } from "react-native-css/utilities";
|
|
3
|
+
import { registeredInheritance, registeredInitialValues, rootVariables, universalVariables } from "react-native-css/native-internal";
|
|
4
|
+
import { isDeepEqual, isStyleDescriptorArray, isStyleFunction } from "react-native-css/utilities";
|
|
5
5
|
import { VAR_SYMBOL } from "../reactivity.js";
|
|
6
6
|
export function varResolver(resolve, fn, get, options) {
|
|
7
7
|
const {
|
|
@@ -10,66 +10,182 @@ export function varResolver(resolve, fn, get, options) {
|
|
|
10
10
|
[VAR_SYMBOL]: true
|
|
11
11
|
},
|
|
12
12
|
inlineVariables,
|
|
13
|
-
variableHistory = new Set()
|
|
13
|
+
variableHistory = options.variableHistory ??= new Set(),
|
|
14
|
+
variableCycles = options.variableCycles ??= new Set()
|
|
14
15
|
} = options;
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
let fallback;
|
|
18
|
-
if (typeof args === "string") {
|
|
19
|
-
name = args;
|
|
20
|
-
} else {
|
|
21
|
-
const result = resolve(args);
|
|
22
|
-
if (isStyleDescriptorArray(result)) {
|
|
23
|
-
name = result[0];
|
|
24
|
-
fallback = result[1];
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
if (typeof name !== "string") {
|
|
16
|
+
const name = variableName(fn[2]);
|
|
17
|
+
if (name === undefined) {
|
|
28
18
|
return;
|
|
29
19
|
}
|
|
30
20
|
|
|
31
|
-
//
|
|
21
|
+
// Fallbacks are substituted only when needed, after reading the variable.
|
|
22
|
+
const fallback = variableFallback(fn[2]);
|
|
23
|
+
if (variableCycles.has(name)) return resolve(fallback);
|
|
24
|
+
|
|
25
|
+
// Share the active resolution path with recursive calls.
|
|
32
26
|
if (variableHistory.has(name)) {
|
|
27
|
+
markCycle(variableHistory, name, variableCycles);
|
|
33
28
|
return;
|
|
34
29
|
}
|
|
35
|
-
if (name in variables) {
|
|
36
|
-
renderGuards?.push(["v", name, variables[name]]);
|
|
37
|
-
return resolve(variables[name]);
|
|
38
|
-
}
|
|
39
30
|
variableHistory.add(name);
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
31
|
+
try {
|
|
32
|
+
let value = resolve(inlineVariables?.[name]);
|
|
33
|
+
if (variableCycles.has(name)) return resolve(fallback);
|
|
34
|
+
if (value !== undefined) {
|
|
35
|
+
options.inlineVariables ??= {
|
|
36
|
+
[VAR_SYMBOL]: "inline"
|
|
37
|
+
};
|
|
38
|
+
options.inlineVariables[name] = value;
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// A universal selector declares the variable on this element. It has lower
|
|
43
|
+
// specificity than the element's class declarations, but beats inheritance.
|
|
44
|
+
value = resolve(get(universalVariables(name)));
|
|
45
|
+
if (variableCycles.has(name)) return resolve(fallback);
|
|
46
|
+
if (value !== undefined) {
|
|
47
|
+
options.inlineVariables ??= {
|
|
48
|
+
[VAR_SYMBOL]: "inline"
|
|
49
|
+
};
|
|
50
|
+
options.inlineVariables[name] = value;
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// An ancestor's variables and :root reach an element only by inheritance, which a non-inheriting registration switches off
|
|
55
|
+
// Guards retain the ancestor's raw descriptor, matching the context value.
|
|
56
|
+
if (name in variables) {
|
|
57
|
+
if (inherits(name, get)) {
|
|
58
|
+
renderGuards?.push(["v", name, variables[name]]);
|
|
59
|
+
value = resolve(variables[name]);
|
|
60
|
+
// An ancestor's guaranteed-invalid value inherits as such, so the reader takes its own fallback
|
|
61
|
+
return value === undefined || variableCycles.has(name) ? resolve(fallback) : value;
|
|
62
|
+
}
|
|
63
|
+
renderGuards?.push(["n", name, variables[name]]);
|
|
64
|
+
}
|
|
65
|
+
const rootValue = get(rootVariables(name));
|
|
66
|
+
if (rootValue !== undefined && inherits(name, get)) {
|
|
67
|
+
value = resolve(Array.isArray(rootValue) ? substituteOwnValues(rootValue, reference => get(rootVariables(reference)), get) : rootValue);
|
|
68
|
+
if (variableCycles.has(name)) return resolve(fallback);
|
|
69
|
+
if (value !== undefined) {
|
|
70
|
+
options.inlineVariables ??= {
|
|
71
|
+
[VAR_SYMBOL]: "inline"
|
|
72
|
+
};
|
|
73
|
+
options.inlineVariables[name] = value;
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// A registered initial value applies only where no declaration reaches the element
|
|
79
|
+
value = resolve(get(registeredInitialValues(name)));
|
|
80
|
+
if (variableCycles.has(name)) return resolve(fallback);
|
|
81
|
+
if (value !== undefined) {
|
|
82
|
+
options.inlineVariables ??= {
|
|
83
|
+
[VAR_SYMBOL]: "inline"
|
|
84
|
+
};
|
|
85
|
+
options.inlineVariables[name] = value;
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
return resolve(fallback);
|
|
89
|
+
} finally {
|
|
90
|
+
variableHistory.delete(name);
|
|
47
91
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
92
|
+
}
|
|
93
|
+
function inherits(name, get) {
|
|
94
|
+
return get(registeredInheritance(name));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// A value that inherits is computed where it is declared, so its references to non-inheriting properties take that scope's own values
|
|
98
|
+
function substituteOwnValues(value, ownValue, get, history = new Set(), cycles = new Set()) {
|
|
99
|
+
if (!Array.isArray(value)) {
|
|
55
100
|
return value;
|
|
56
101
|
}
|
|
57
|
-
|
|
58
|
-
if (value
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
102
|
+
const substitute = descriptor => substituteOwnValues(descriptor, ownValue, get, history, cycles);
|
|
103
|
+
if (!isStyleFunction(value)) {
|
|
104
|
+
let substituted;
|
|
105
|
+
value.forEach((item, index) => {
|
|
106
|
+
const substitutedItem = substitute(item);
|
|
107
|
+
if (substitutedItem !== item) {
|
|
108
|
+
substituted ??= [...value];
|
|
109
|
+
substituted[index] = substitutedItem;
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
return substituted ?? value;
|
|
64
113
|
}
|
|
65
|
-
|
|
66
|
-
if (
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
114
|
+
const name = value[1] === "var" ? variableName(value[2]) : undefined;
|
|
115
|
+
if (name === undefined) {
|
|
116
|
+
const substitutedArguments = substitute(value[2]);
|
|
117
|
+
return substitutedArguments === value[2] ? value : withArguments(value, substitutedArguments);
|
|
118
|
+
}
|
|
119
|
+
const fallback = variableFallback(value[2]);
|
|
120
|
+
if (inherits(name, get)) {
|
|
121
|
+
const substitutedFallback = substitute(fallback);
|
|
122
|
+
return substitutedFallback === fallback ? value : withArguments(value, [name, substitutedFallback]);
|
|
123
|
+
}
|
|
124
|
+
if (cycles.has(name)) {
|
|
125
|
+
return substitute(fallback);
|
|
126
|
+
}
|
|
127
|
+
if (history.has(name)) {
|
|
128
|
+
markCycle(history, name, cycles);
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
history.add(name);
|
|
132
|
+
try {
|
|
133
|
+
const own = substitute(ownValue(name) ?? get(universalVariables(name)) ?? get(registeredInitialValues(name)));
|
|
134
|
+
return own === undefined || cycles.has(name) ? substitute(fallback) : own;
|
|
135
|
+
} finally {
|
|
136
|
+
history.delete(name);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// Returns whether a value the element publishes differs from the one it published last
|
|
141
|
+
export function substituteOwnReferences(variables, ruleVariableNames, inlineVariables, previous, get) {
|
|
142
|
+
// Only inheriting values are rewritten, so a non-inheriting one still reads as declared
|
|
143
|
+
const ownValue = name => ruleVariableNames.has(name) || declaresInline(inlineVariables, name) ? variables[name] : undefined;
|
|
144
|
+
let changed = false;
|
|
145
|
+
|
|
146
|
+
// An inline vars() value is a value, never a reference, so only the rules' variables need rewriting
|
|
147
|
+
for (const name of ruleVariableNames) {
|
|
148
|
+
// Read without subscribing: if a later stylesheet flips `inherits` on a name this element publishes, the change is
|
|
149
|
+
// picked up only when the element next updates for another reason. In practice that matters only during Fast Refresh.
|
|
150
|
+
if (registeredInheritance(name).get()) {
|
|
151
|
+
const declared = variables[name];
|
|
152
|
+
const value = substituteOwnValues(declared, ownValue, get);
|
|
153
|
+
if (value !== declared) {
|
|
154
|
+
// The previous descriptor keeps descendants' guards holding while nothing changed
|
|
155
|
+
variables[name] = previous && isDeepEqual(previous[name], value) ? previous[name] : value;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
changed ||= previous?.[name] !== variables[name];
|
|
159
|
+
}
|
|
160
|
+
return changed;
|
|
161
|
+
}
|
|
162
|
+
function declaresInline(inlineVariables, name) {
|
|
163
|
+
for (const inlineVariable of inlineVariables) {
|
|
164
|
+
if (name in inlineVariable) {
|
|
165
|
+
return true;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return false;
|
|
169
|
+
}
|
|
170
|
+
function withArguments(styleFunction, functionArguments) {
|
|
171
|
+
return styleFunction.length === 4 ? [styleFunction[0], styleFunction[1], functionArguments, styleFunction[3]] : [styleFunction[0], styleFunction[1], functionArguments];
|
|
172
|
+
}
|
|
173
|
+
function variableName(variableArguments) {
|
|
174
|
+
if (typeof variableArguments === "string") {
|
|
175
|
+
return variableArguments;
|
|
176
|
+
}
|
|
177
|
+
return isStyleDescriptorArray(variableArguments) && typeof variableArguments[0] === "string" ? variableArguments[0] : undefined;
|
|
178
|
+
}
|
|
179
|
+
function variableFallback(variableArguments) {
|
|
180
|
+
return isStyleDescriptorArray(variableArguments) ? variableArguments[1] : undefined;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// Marks only the actual cycle, so a variable that depends on it can still use its own fallback
|
|
184
|
+
function markCycle(history, name, cycles) {
|
|
185
|
+
let inCycle = false;
|
|
186
|
+
for (const dependency of history) {
|
|
187
|
+
if (dependency === name) inCycle = true;
|
|
188
|
+
if (inCycle) cycles.add(dependency);
|
|
72
189
|
}
|
|
73
|
-
return resolve(fallback);
|
|
74
190
|
}
|
|
75
191
|
//# sourceMappingURL=variables.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["rootVariables","universalVariables","isStyleDescriptorArray","VAR_SYMBOL","varResolver","resolve","fn","get","options","renderGuards","inheritedVariables","variables","inlineVariables","variableHistory","Set","
|
|
1
|
+
{"version":3,"names":["registeredInheritance","registeredInitialValues","rootVariables","universalVariables","isDeepEqual","isStyleDescriptorArray","isStyleFunction","VAR_SYMBOL","varResolver","resolve","fn","get","options","renderGuards","inheritedVariables","variables","inlineVariables","variableHistory","Set","variableCycles","name","variableName","undefined","fallback","variableFallback","has","markCycle","add","value","inherits","push","rootValue","Array","isArray","substituteOwnValues","reference","delete","ownValue","history","cycles","substitute","descriptor","substituted","forEach","item","index","substitutedItem","substitutedArguments","withArguments","substitutedFallback","own","substituteOwnReferences","ruleVariableNames","previous","declaresInline","changed","declared","inlineVariable","styleFunction","functionArguments","length","variableArguments","inCycle","dependency"],"sourceRoot":"../../../../src","sources":["native/styles/variables.ts"],"mappings":";;AAKA,SACEA,qBAAqB,EACrBC,uBAAuB,EACvBC,aAAa,EACbC,kBAAkB,QACb,kCAAkC;AACzC,SACEC,WAAW,EACXC,sBAAsB,EACtBC,eAAe,QACV,4BAA4B;AAEnC,SACEC,UAAU,QAGL,kBAAe;AAGtB,OAAO,SAASC,WAAWA,CACzBC,OAA2B,EAC3BC,EAAiB,EACjBC,GAAW,EACXC,OAA4B,EAC5B;EACA,MAAM;IACJC,YAAY;IACZC,kBAAkB,EAAEC,SAAS,GAAG;MAAE,CAACR,UAAU,GAAG;IAAK,CAAC;IACtDS,eAAe;IACfC,eAAe,GAAIL,OAAO,CAACK,eAAe,KAAK,IAAIC,GAAG,CAAC,CAAE;IACzDC,cAAc,GAAIP,OAAO,CAACO,cAAc,KAAK,IAAID,GAAG,CAAC;EACvD,CAAC,GAAGN,OAAO;EAEX,MAAMQ,IAAI,GAAGC,YAAY,CAACX,EAAE,CAAC,CAAC,CAAC,CAAC;EAChC,IAAIU,IAAI,KAAKE,SAAS,EAAE;IACtB;EACF;;EAEA;EACA,MAAMC,QAAQ,GAAGC,gBAAgB,CAACd,EAAE,CAAC,CAAC,CAAC,CAAC;EAExC,IAAIS,cAAc,CAACM,GAAG,CAACL,IAAI,CAAC,EAAE,OAAOX,OAAO,CAACc,QAAQ,CAAC;;EAEtD;EACA,IAAIN,eAAe,CAACQ,GAAG,CAACL,IAAI,CAAC,EAAE;IAC7BM,SAAS,CAACT,eAAe,EAAEG,IAAI,EAAED,cAAc,CAAC;IAChD;EACF;EAEAF,eAAe,CAACU,GAAG,CAACP,IAAI,CAAC;EAEzB,IAAI;IACF,IAAIQ,KAAK,GAAGnB,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