react-native-css 0.0.0-nightly.416840c → 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 +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 +35 -0
- package/dist/commonjs/compiler/atRules.js.map +1 -1
- package/dist/commonjs/compiler/compiler.js +198 -39
- 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 +248 -96
- 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 +47 -1
- package/dist/commonjs/compiler/inline-variables.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 +18 -6
- package/dist/commonjs/compiler/selector-builder.js.map +1 -1
- package/dist/commonjs/compiler/stylesheet.js +33 -9
- 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 +4 -4
- package/dist/commonjs/components/ActivityIndicator.js.map +1 -1
- package/dist/commonjs/components/Button.js +4 -4
- package/dist/commonjs/components/Button.js.map +1 -1
- package/dist/commonjs/components/FlatList.js +5 -4
- package/dist/commonjs/components/FlatList.js.map +1 -1
- package/dist/commonjs/components/Image.js +4 -4
- package/dist/commonjs/components/Image.js.map +1 -1
- package/dist/commonjs/components/ImageBackground.js +6 -10
- package/dist/commonjs/components/ImageBackground.js.map +1 -1
- package/dist/commonjs/components/KeyboardAvoidingView.js +6 -7
- package/dist/commonjs/components/KeyboardAvoidingView.js.map +1 -1
- package/dist/commonjs/components/Pressable.js +4 -4
- 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 +4 -4
- package/dist/commonjs/components/ScrollView.js.map +1 -1
- package/dist/commonjs/components/Switch.js +4 -4
- package/dist/commonjs/components/Switch.js.map +1 -1
- package/dist/commonjs/components/Text.js +4 -4
- package/dist/commonjs/components/Text.js.map +1 -1
- package/dist/commonjs/components/TextInput.js +4 -4
- package/dist/commonjs/components/TextInput.js.map +1 -1
- package/dist/commonjs/components/TouchableHighlight.js +4 -4
- package/dist/commonjs/components/TouchableHighlight.js.map +1 -1
- package/dist/commonjs/components/TouchableOpacity.js +4 -4
- package/dist/commonjs/components/TouchableOpacity.js.map +1 -1
- package/dist/commonjs/components/TouchableWithoutFeedback.js +4 -4
- package/dist/commonjs/components/TouchableWithoutFeedback.js.map +1 -1
- package/dist/commonjs/components/View.js +4 -4
- package/dist/commonjs/components/View.js.map +1 -1
- package/dist/commonjs/components/VirtualizedList.js +4 -4
- 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 +52 -4
- package/dist/commonjs/components/index.cjs.map +1 -1
- package/dist/commonjs/components/react-native-safe-area-context.native.js +10 -0
- package/dist/commonjs/components/react-native-safe-area-context.native.js.map +1 -1
- package/dist/commonjs/jest/index.js +3 -1
- 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 +2 -0
- package/dist/commonjs/metro/index.js.map +1 -1
- package/dist/commonjs/metro/metro-transformer.js +16 -3
- package/dist/commonjs/metro/metro-transformer.js.map +1 -1
- package/dist/commonjs/metro/resolver.js +5 -3
- 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 +21 -12
- 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/objects.js +11 -18
- package/dist/commonjs/native/objects.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/native/reactivity.js +150 -68
- 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 +139 -26
- package/dist/commonjs/native/styles/calculate-props.js.map +1 -1
- package/dist/commonjs/native/styles/functions/animation-timing.js +2 -1
- package/dist/commonjs/native/styles/functions/animation-timing.js.map +1 -1
- 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 +19 -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/platform-functions.js +2 -1
- package/dist/commonjs/native/styles/functions/platform-functions.js.map +1 -1
- package/dist/commonjs/native/styles/functions/string-functions.js +22 -6
- package/dist/commonjs/native/styles/functions/string-functions.js.map +1 -1
- package/dist/commonjs/native/styles/functions/transform-functions.js +95 -105
- package/dist/commonjs/native/styles/functions/transform-functions.js.map +1 -1
- package/dist/commonjs/native/styles/index.js +361 -34
- package/dist/commonjs/native/styles/index.js.map +1 -1
- package/dist/commonjs/native/styles/resolve.js +136 -19
- package/dist/commonjs/native/styles/resolve.js.map +1 -1
- 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 +10 -0
- package/dist/commonjs/native/styles/shorthands/_handler.js.map +1 -1
- package/dist/commonjs/native/styles/shorthands/animation.js +6 -3
- package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -1
- package/dist/commonjs/native/styles/shorthands/box-shadow.js +41 -20
- 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/shorthands/transform.js +31 -8
- package/dist/commonjs/native/styles/shorthands/transform.js.map +1 -1
- package/dist/commonjs/native/styles/variables.js +173 -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 +56 -74
- 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/specificity.js +12 -12
- package/dist/commonjs/utilities/specificity.js.map +1 -1
- package/dist/commonjs/utilities/style-descriptor.js +32 -8
- 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 +33 -0
- package/dist/module/compiler/atRules.js.map +1 -1
- package/dist/module/compiler/compiler.js +200 -41
- package/dist/module/compiler/compiler.js.map +1 -1
- package/dist/module/compiler/compiler.types.js +4 -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 +247 -95
- 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 +47 -1
- package/dist/module/compiler/inline-variables.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 +18 -7
- package/dist/module/compiler/selector-builder.js.map +1 -1
- package/dist/module/compiler/stylesheet.js +33 -9
- 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 +3 -2
- package/dist/module/components/ActivityIndicator.js.map +1 -1
- package/dist/module/components/Button.js +3 -2
- package/dist/module/components/Button.js.map +1 -1
- package/dist/module/components/FlatList.js +4 -2
- package/dist/module/components/FlatList.js.map +1 -1
- package/dist/module/components/Image.js +3 -2
- package/dist/module/components/Image.js.map +1 -1
- package/dist/module/components/ImageBackground.js +5 -8
- package/dist/module/components/ImageBackground.js.map +1 -1
- package/dist/module/components/KeyboardAvoidingView.js +5 -5
- package/dist/module/components/KeyboardAvoidingView.js.map +1 -1
- package/dist/module/components/Pressable.js +3 -2
- 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 +3 -2
- package/dist/module/components/ScrollView.js.map +1 -1
- package/dist/module/components/Switch.js +3 -2
- package/dist/module/components/Switch.js.map +1 -1
- package/dist/module/components/Text.js +3 -2
- package/dist/module/components/Text.js.map +1 -1
- package/dist/module/components/TextInput.js +3 -2
- package/dist/module/components/TextInput.js.map +1 -1
- package/dist/module/components/TouchableHighlight.js +3 -2
- package/dist/module/components/TouchableHighlight.js.map +1 -1
- package/dist/module/components/TouchableOpacity.js +3 -2
- package/dist/module/components/TouchableOpacity.js.map +1 -1
- package/dist/module/components/TouchableWithoutFeedback.js +3 -2
- package/dist/module/components/TouchableWithoutFeedback.js.map +1 -1
- package/dist/module/components/View.js +3 -2
- package/dist/module/components/View.js.map +1 -1
- package/dist/module/components/VirtualizedList.js +3 -2
- 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 +52 -4
- package/dist/module/components/index.cjs.map +1 -1
- package/dist/module/components/react-native-safe-area-context.native.js +9 -1
- package/dist/module/components/react-native-safe-area-context.native.js.map +1 -1
- package/dist/module/jest/index.js +3 -1
- 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 +2 -0
- package/dist/module/metro/index.js.map +1 -1
- package/dist/module/metro/metro-transformer.js +16 -3
- package/dist/module/metro/metro-transformer.js.map +1 -1
- package/dist/module/metro/resolver.js +5 -3
- 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 +22 -14
- 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/objects.js +11 -18
- package/dist/module/native/objects.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/native/reactivity.js +131 -66
- 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 +139 -26
- package/dist/module/native/styles/calculate-props.js.map +1 -1
- package/dist/module/native/styles/functions/animation-timing.js +2 -1
- package/dist/module/native/styles/functions/animation-timing.js.map +1 -1
- 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 +17 -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/platform-functions.js +2 -1
- package/dist/module/native/styles/functions/platform-functions.js.map +1 -1
- package/dist/module/native/styles/functions/string-functions.js +19 -5
- package/dist/module/native/styles/functions/string-functions.js.map +1 -1
- package/dist/module/native/styles/functions/transform-functions.js +93 -104
- package/dist/module/native/styles/functions/transform-functions.js.map +1 -1
- package/dist/module/native/styles/index.js +362 -34
- package/dist/module/native/styles/index.js.map +1 -1
- package/dist/module/native/styles/resolve.js +136 -19
- package/dist/module/native/styles/resolve.js.map +1 -1
- 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 +11 -1
- package/dist/module/native/styles/shorthands/_handler.js.map +1 -1
- package/dist/module/native/styles/shorthands/animation.js +6 -3
- package/dist/module/native/styles/shorthands/animation.js.map +1 -1
- package/dist/module/native/styles/shorthands/box-shadow.js +43 -21
- 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/shorthands/transform.js +31 -8
- package/dist/module/native/styles/shorthands/transform.js.map +1 -1
- package/dist/module/native/styles/variables.js +174 -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 +45 -75
- 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/specificity.js +12 -12
- package/dist/module/utilities/specificity.js.map +1 -1
- package/dist/module/utilities/style-descriptor.js +30 -8
- 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 +26 -12
- package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts +3 -3
- 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 +1 -1
- package/dist/typescript/commonjs/src/compiler/inline-variables.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 +10 -10
- 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 +2 -2
- 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 +2 -2
- 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/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/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 +8 -4
- 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/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/objects.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/reactivity.d.ts +36 -18
- 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/calculate-props.d.ts +11 -2
- package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/functions/animation-timing.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/platform-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 +2 -0
- 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 +16 -4
- package/dist/typescript/commonjs/src/native/styles/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/resolve.d.ts +4 -1
- 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.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/shorthands/transform.d.ts.map +1 -1
- 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 +45 -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 +20 -15
- 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/specificity.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts +14 -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 +27 -13
- 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 +5 -5
- 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 +2 -2
- package/dist/typescript/module/src/compiler/inline-variables.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/keyframes.d.ts +2 -2
- 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 +10 -10
- 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 +2 -2
- 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 +2 -2
- 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.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 +2 -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 +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/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/objects.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/reactivity.d.ts +36 -18
- 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 +13 -4
- 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 +3 -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 +20 -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 +7 -4
- 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 +2 -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 +46 -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 +20 -15
- 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 +14 -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 +81 -33
- 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 +44 -0
- package/src/compiler/compiler.ts +282 -50
- package/src/compiler/compiler.types.ts +30 -12
- package/src/compiler/container-query.ts +8 -3
- package/src/compiler/declarations.ts +499 -241
- package/src/compiler/individual-transforms.ts +129 -0
- package/src/compiler/inline-variables.ts +67 -0
- package/src/compiler/lightningcss-loader.ts +21 -1
- package/src/compiler/media-query.ts +20 -9
- package/src/compiler/selector-builder.ts +34 -7
- package/src/compiler/stylesheet.ts +51 -15
- package/src/compiler/supports.ts +2 -2
- package/src/components/ActivityIndicator.tsx +8 -5
- package/src/components/Button.tsx +8 -3
- package/src/components/FlatList.tsx +14 -4
- package/src/components/Image.tsx +8 -3
- package/src/components/ImageBackground.tsx +10 -11
- package/src/components/KeyboardAvoidingView.tsx +10 -8
- package/src/components/Pressable.tsx +8 -3
- package/src/components/SafeAreaProvider.tsx +1 -0
- package/src/components/ScrollView.tsx +8 -5
- package/src/components/Switch.tsx +8 -3
- package/src/components/Text.tsx +8 -3
- package/src/components/TextInput.tsx +8 -3
- package/src/components/TouchableHighlight.tsx +8 -5
- package/src/components/TouchableOpacity.tsx +8 -5
- package/src/components/TouchableWithoutFeedback.tsx +8 -5
- package/src/components/View.tsx +8 -3
- package/src/components/VirtualizedList.tsx +17 -5
- package/src/components/copyComponentProperties.ts +21 -0
- package/src/components/index.cts +52 -4
- package/src/components/react-native-safe-area-context.native.tsx +20 -0
- package/src/jest/index.ts +7 -3
- package/src/metro/cache-version.ts +48 -0
- package/src/metro/index.ts +11 -4
- package/src/metro/metro-transformer.ts +26 -8
- package/src/metro/resolver.ts +10 -3
- package/src/metro/typescript.ts +53 -6
- package/src/metro/warnings.ts +187 -0
- package/src/native/api.tsx +32 -18
- 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/objects.ts +12 -22
- package/src/native/react/interaction.ts +11 -6
- package/src/native/react/rules.ts +58 -45
- package/src/native/react/useNativeCss.ts +100 -22
- package/src/native/react/usePassthrough.ts +3 -2
- package/src/native/reactivity.ts +169 -71
- package/src/native/reanimated.ts +24 -5
- package/src/native/styles/calculate-props.ts +179 -28
- package/src/native/styles/functions/animation-timing.ts +3 -1
- package/src/native/styles/functions/color-mix.ts +82 -0
- package/src/native/styles/functions/filters.ts +21 -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/platform-functions.ts +3 -1
- package/src/native/styles/functions/string-functions.ts +25 -5
- package/src/native/styles/functions/transform-functions.ts +111 -64
- package/src/native/styles/index.ts +425 -43
- package/src/native/styles/resolve.ts +188 -29
- package/src/native/styles/scale-factor.ts +9 -0
- package/src/native/styles/shorthands/_handler.ts +14 -1
- package/src/native/styles/shorthands/animation.ts +8 -2
- package/src/native/styles/shorthands/box-shadow.ts +46 -25
- package/src/native/styles/shorthands/index.ts +1 -0
- package/src/native/styles/shorthands/logical-border-width.ts +32 -0
- package/src/native/styles/shorthands/transform.ts +36 -11
- package/src/native/styles/variables.ts +251 -45
- package/src/native-internal/root.ts +83 -13
- package/src/native-internal/style-collection.ts +64 -95
- package/src/native-internal/variables.tsx +6 -4
- package/src/runtime.types.ts +38 -29
- 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/specificity.ts +13 -12
- package/src/utilities/style-descriptor.ts +36 -14
- package/src/web/api.tsx +17 -13
- package/src/web/assign-style.ts +2 -1
- 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/module/compiler/inheritance.test.js +0 -78
- package/dist/module/compiler/inheritance.test.js.map +0 -1
- package/dist/typescript/commonjs/.config/eslint.config.d.mts +0 -3
- package/dist/typescript/commonjs/.config/eslint.config.d.mts.map +0 -1
- package/dist/typescript/commonjs/eslint.config.d.mts +0 -2
- package/dist/typescript/commonjs/eslint.config.d.mts.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/index.d.ts +0 -2
- package/dist/typescript/commonjs/example/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/example/metro.config.d.ts +0 -3
- package/dist/typescript/commonjs/example/metro.config.d.ts.map +0 -1
- package/dist/typescript/commonjs/example/postcss.config.d.mts +0 -7
- package/dist/typescript/commonjs/example/postcss.config.d.mts.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/module/.config/eslint.config.d.mts +0 -3
- package/dist/typescript/module/.config/eslint.config.d.mts.map +0 -1
- package/dist/typescript/module/eslint.config.d.mts +0 -2
- package/dist/typescript/module/eslint.config.d.mts.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/index.d.ts +0 -2
- package/dist/typescript/module/example/index.d.ts.map +0 -1
- package/dist/typescript/module/example/metro.config.d.ts +0 -3
- package/dist/typescript/module/example/metro.config.d.ts.map +0 -1
- package/dist/typescript/module/example/postcss.config.d.mts +0 -7
- package/dist/typescript/module/example/postcss.config.d.mts.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/src/compiler/inheritance.test.ts +0 -121
|
@@ -4,9 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.resolveValue = resolveValue;
|
|
7
|
+
var _utilities = require("react-native-css/utilities");
|
|
7
8
|
var _defaults = require("./defaults.js");
|
|
8
9
|
var functions = _interopRequireWildcard(require("./functions/index.js"));
|
|
9
10
|
var _lineHeight = require("./line-height.js");
|
|
11
|
+
var _scaleFactor = require("./scale-factor.js");
|
|
10
12
|
var shorthands = _interopRequireWildcard(require("./shorthands/index.js"));
|
|
11
13
|
var _units = require("./units.js");
|
|
12
14
|
var _variables = require("./variables.js");
|
|
@@ -22,7 +24,8 @@ const functionResolvers = {
|
|
|
22
24
|
vh: _units.vh,
|
|
23
25
|
vw: _units.vw
|
|
24
26
|
};
|
|
25
|
-
function resolveValue(value, get, options
|
|
27
|
+
function resolveValue(value, get, options, /** The caller has already found value to be a style function */
|
|
28
|
+
isFunction) {
|
|
26
29
|
const {
|
|
27
30
|
castToArray
|
|
28
31
|
} = options;
|
|
@@ -42,7 +45,7 @@ function resolveValue(value, get, options) {
|
|
|
42
45
|
return null;
|
|
43
46
|
} else if (value.endsWith("px")) {
|
|
44
47
|
// Inline vars() might set a value with a px suffix
|
|
45
|
-
return
|
|
48
|
+
return parseFloat(value.slice(0, -2));
|
|
46
49
|
} else {
|
|
47
50
|
return value;
|
|
48
51
|
}
|
|
@@ -52,13 +55,8 @@ function resolveValue(value, get, options) {
|
|
|
52
55
|
if (!Array.isArray(value)) {
|
|
53
56
|
return value;
|
|
54
57
|
}
|
|
55
|
-
if (
|
|
56
|
-
|
|
57
|
-
if (castToArray && !Array.isArray(value)) {
|
|
58
|
-
return [value];
|
|
59
|
-
} else {
|
|
60
|
-
return value;
|
|
61
|
-
}
|
|
58
|
+
if (!isFunction && (0, _utilities.isStyleDescriptorArray)(value)) {
|
|
59
|
+
return resolveList(value, get, options);
|
|
62
60
|
}
|
|
63
61
|
const name = value[1];
|
|
64
62
|
const simpleResolve = value => {
|
|
@@ -74,20 +72,18 @@ function resolveValue(value, get, options) {
|
|
|
74
72
|
value = fn(simpleResolve, value, get, options);
|
|
75
73
|
} else if (_defaults.transformKeys.has(name)) {
|
|
76
74
|
// translate, rotate, scale, etc.
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
const resolved = simpleResolve(value[2], castToArray);
|
|
76
|
+
// CSS scale percentages describe a factor, unlike translation percentages.
|
|
77
|
+
const component = name === "scaleX" || name === "scaleY" || name === "scale" ? (0, _scaleFactor.scaleFactor)(resolved) : resolved;
|
|
78
|
+
return component === undefined || component === null ? null : {
|
|
79
|
+
[name]: component
|
|
79
80
|
};
|
|
80
81
|
} else {
|
|
81
82
|
let args = simpleResolve(value[2], castToArray);
|
|
82
83
|
if (args === undefined) {
|
|
83
84
|
return;
|
|
84
85
|
} else if (Array.isArray(args)) {
|
|
85
|
-
let joinedArgs = args.map(
|
|
86
|
-
if (Array.isArray(arg)) {
|
|
87
|
-
return arg.flat().join(" ");
|
|
88
|
-
}
|
|
89
|
-
return arg;
|
|
90
|
-
}).filter(value => value !== "/").join(", ");
|
|
86
|
+
let joinedArgs = (0, _utilities.isCommaList)(args) ? args.map(item => item.join(" ")).join(", ") : args.join(" ");
|
|
91
87
|
if (name === "radial-gradient") {
|
|
92
88
|
// Nativewind / Tailwind CSS hack which can force the 'in oklab' color space
|
|
93
89
|
joinedArgs = joinedArgs.replace("in oklab, ", "");
|
|
@@ -101,7 +97,128 @@ function resolveValue(value, get, options) {
|
|
|
101
97
|
}
|
|
102
98
|
}
|
|
103
99
|
}
|
|
104
|
-
|
|
105
|
-
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Resolves a list descriptor. A comma-separated list holds each item as the
|
|
103
|
+
* array of its tokens; anything else is a space-separated list of tokens.
|
|
104
|
+
*
|
|
105
|
+
* A token that resolves to a list is substituted by its tokens, as
|
|
106
|
+
* css-variables-1 §3 substitutes a var(): a space-separated list joins the
|
|
107
|
+
* current item, and a comma-separated one splits it.
|
|
108
|
+
*
|
|
109
|
+
* Resolved values are resolved again (variables cache them), so the result
|
|
110
|
+
* keeps the same shape: a flat array for a space-separated list, an array of
|
|
111
|
+
* arrays for a comma-separated one.
|
|
112
|
+
*/
|
|
113
|
+
function resolveList(list, get, options) {
|
|
114
|
+
// Classify the first entry once: a style function is a token, any other
|
|
115
|
+
// array is an item of a comma-separated list. Only an array led by a plain
|
|
116
|
+
// object needs isStyleFunction's Object.keys, and resolveValue is told the
|
|
117
|
+
// answer so it does not pay for it twice.
|
|
118
|
+
const first = list[0];
|
|
119
|
+
let isCommaSeparated = false;
|
|
120
|
+
let firstIsFunction = false;
|
|
121
|
+
if (Array.isArray(first)) {
|
|
122
|
+
const lead = first[0];
|
|
123
|
+
if (typeof lead === "object" && lead !== null && !Array.isArray(lead) && (0, _utilities.isStyleFunction)(first)) {
|
|
124
|
+
firstIsFunction = true;
|
|
125
|
+
} else {
|
|
126
|
+
isCommaSeparated = true;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
if (!isCommaSeparated && list.length === 1) {
|
|
130
|
+
// Fast path for a lone token: its list, if it resolves to one, is the value
|
|
131
|
+
const resolved = resolveValue(first, get, options, firstIsFunction);
|
|
132
|
+
return Array.isArray(resolved) ? resolved : resolved === undefined ? [] : [resolved];
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// Allocated only once the list turns out to be comma-separated
|
|
136
|
+
let items = isCommaSeparated ? [] : undefined;
|
|
137
|
+
let item = [];
|
|
138
|
+
|
|
139
|
+
// Indexed loops and the inlined common case of appendList: this runs for
|
|
140
|
+
// every list on every render, and Hermes pays for iterators and calls
|
|
141
|
+
for (let index = 0; index < list.length; index++) {
|
|
142
|
+
const entry = list[index];
|
|
143
|
+
if (isCommaSeparated && (index === 0 || isItem(entry))) {
|
|
144
|
+
const tokens = entry;
|
|
145
|
+
|
|
146
|
+
// In a comma-separated list the item is empty here, as each entry closes it
|
|
147
|
+
if (tokens.length === 1) {
|
|
148
|
+
// Fast path for a one-token item, as most are: no item to build and reset
|
|
149
|
+
const resolved = resolveValue(tokens[0], get, options);
|
|
150
|
+
if (!Array.isArray(resolved)) {
|
|
151
|
+
if (resolved !== undefined) items.push([resolved]);
|
|
152
|
+
continue;
|
|
153
|
+
}
|
|
154
|
+
item = appendList(resolved, item, items ??= []);
|
|
155
|
+
} else {
|
|
156
|
+
for (let tokenIndex = 0; tokenIndex < tokens.length; tokenIndex++) {
|
|
157
|
+
const resolved = resolveValue(tokens[tokenIndex], get, options);
|
|
158
|
+
if (!Array.isArray(resolved)) {
|
|
159
|
+
if (resolved !== undefined) item.push(resolved);
|
|
160
|
+
} else {
|
|
161
|
+
item = appendList(resolved, item, items ??= []);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
} else {
|
|
166
|
+
// A lone token in an item's place, or a space-separated list's token
|
|
167
|
+
const resolved = resolveValue(entry, get, options, index === 0 && firstIsFunction);
|
|
168
|
+
if (!Array.isArray(resolved)) {
|
|
169
|
+
if (resolved !== undefined) item.push(resolved);
|
|
170
|
+
} else {
|
|
171
|
+
item = appendList(resolved, item, items ??= []);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
if (isCommaSeparated && item.length > 0) {
|
|
175
|
+
items.push(item);
|
|
176
|
+
item = [];
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
if (items === undefined || items.length === 0) {
|
|
180
|
+
return item;
|
|
181
|
+
}
|
|
182
|
+
if (item.length > 0) items.push(item);
|
|
183
|
+
return items;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Whether an entry after the first of a comma-separated list is an item, an
|
|
188
|
+
* array of tokens, rather than a lone token in an item's place. Only a style
|
|
189
|
+
* function, `[{}, name]`, is an array led by a plain object, so the full
|
|
190
|
+
* check runs only for one of those or for a resolved item led by an object,
|
|
191
|
+
* such as `[{ rotate }, "x"]`.
|
|
192
|
+
*/
|
|
193
|
+
function isItem(entry) {
|
|
194
|
+
if (!Array.isArray(entry)) return false;
|
|
195
|
+
const lead = entry[0];
|
|
196
|
+
return typeof lead !== "object" || lead === null || Array.isArray(lead) || !(0, _utilities.isStyleFunction)(entry);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Substitutes a resolved list into the current item and returns the item
|
|
201
|
+
* later tokens join. A resolved value holds no style functions, so a list led
|
|
202
|
+
* by an array is comma-separated: its first item continues the current one
|
|
203
|
+
* and each later item starts its own. Any other list joins the current item.
|
|
204
|
+
*/
|
|
205
|
+
function appendList(resolved, item, items) {
|
|
206
|
+
if (!Array.isArray(resolved[0])) {
|
|
207
|
+
for (let index = 0; index < resolved.length; index++) {
|
|
208
|
+
item.push(resolved[index]);
|
|
209
|
+
}
|
|
210
|
+
return item;
|
|
211
|
+
}
|
|
212
|
+
for (let index = 0; index < resolved.length; index++) {
|
|
213
|
+
if (index > 0) {
|
|
214
|
+
items.push(item);
|
|
215
|
+
item = [];
|
|
216
|
+
}
|
|
217
|
+
const group = resolved[index];
|
|
218
|
+
for (let valueIndex = 0; valueIndex < group.length; valueIndex++) {
|
|
219
|
+
item.push(group[valueIndex]);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
return item;
|
|
106
223
|
}
|
|
107
224
|
//# sourceMappingURL=resolve.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_utilities","require","_defaults","functions","_interopRequireWildcard","_lineHeight","_scaleFactor","shorthands","_units","_variables","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","functionResolvers","lineHeight","em","rem","vh","vw","resolveValue","value","options","isFunction","castToArray","endsWith","parseFloat","slice","Array","isArray","isStyleDescriptorArray","resolveList","name","simpleResolve","varResolver","fn","Error","transformKeys","resolved","component","scaleFactor","undefined","args","joinedArgs","isCommaList","map","item","join","replace","list","first","isCommaSeparated","firstIsFunction","lead","isStyleFunction","length","items","index","entry","isItem","tokens","push","appendList","tokenIndex","group","valueIndex"],"sourceRoot":"../../../../src","sources":["native/styles/resolve.ts"],"mappings":";;;;;;AAOA,IAAAA,UAAA,GAAAC,OAAA;AASA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAC,uBAAA,CAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAH,uBAAA,CAAAH,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AAA0C,SAAAG,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,CAAAM,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAA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EAAE,EAAE;IACpD,IAAIA,KAAK,GAAG,CAAC,EAAE;MACbD,KAAK,CAACK,IAAI,CAACf,IAAI,CAAC;MAChBA,IAAI,GAAG,EAAE;IACX;IACA,MAAMkB,KAAK,GAAG1B,QAAQ,CAACmB,KAAK,CAAc;IAC1C,KAAK,IAAIQ,UAAU,GAAG,CAAC,EAAEA,UAAU,GAAGD,KAAK,CAACT,MAAM,EAAEU,UAAU,EAAE,EAAE;MAChEnB,IAAI,CAACe,IAAI,CAACG,KAAK,CAACC,UAAU,CAAC,CAAC;IAC9B;EACF;EAEA,OAAOnB,IAAI;AACb","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.scaleFactor = scaleFactor;
|
|
7
|
+
// React Native takes a scale only as a number, and its transform validator throws on anything else
|
|
8
|
+
function scaleFactor(value) {
|
|
9
|
+
const factor = typeof value === "string" && value.endsWith("%") ? Number(value.slice(0, -1)) / 100 : value;
|
|
10
|
+
return typeof factor === "number" ? factor : null;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=scale-factor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["scaleFactor","value","factor","endsWith","Number","slice"],"sourceRoot":"../../../../src","sources":["native/styles/scale-factor.ts"],"mappings":";;;;;;AAAA;AACO,SAASA,WAAWA,CAACC,KAAc,EAAiB;EACzD,MAAMC,MAAM,GACV,OAAOD,KAAK,KAAK,QAAQ,IAAIA,KAAK,CAACE,QAAQ,CAAC,GAAG,CAAC,GAC5CC,MAAM,CAACH,KAAK,CAACI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,GAChCJ,KAAK;EAEX,OAAO,OAAOC,MAAM,KAAK,QAAQ,GAAGA,MAAM,GAAG,IAAI;AACnD","ignoreList":[]}
|
|
@@ -29,6 +29,16 @@ function shorthandHandler(mappings, defaults, returnType = "shorthandObject") {
|
|
|
29
29
|
if (Array.isArray(type)) {
|
|
30
30
|
return type.includes(value) || type.includes(typeof value);
|
|
31
31
|
}
|
|
32
|
+
|
|
33
|
+
// Style functions (var, calc, env, etc.) are unresolved at pattern-match
|
|
34
|
+
// time — their actual values won't be known until runtime variable
|
|
35
|
+
// resolution. Accepting them in any type slot makes pattern matching
|
|
36
|
+
// less strict when variables are involved, but rejecting them would
|
|
37
|
+
// break variable-based shadows entirely (e.g. box-shadow: var(--shadow)
|
|
38
|
+
// where --shadow resolves to "0 4px 6px -1px #000").
|
|
39
|
+
if ((0, _utilities.isStyleFunction)(value)) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
32
42
|
switch (type) {
|
|
33
43
|
case "string":
|
|
34
44
|
case "number":
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_utilities","require","_objects","_constants","_defaults","shorthandHandler","mappings","defaults","returnType","resolve","value","__","castToArray","args","isStyleDescriptorArray","Array","isArray","flat","match","find","mapping","length","every","map","index","type","includes","endsWith","seenDefaults","Set","tuples","delete","from","defaultValues","target","ShortHandSymbol","prop","setDeepPath"],"sourceRoot":"../../../../../src","sources":["native/styles/shorthands/_handler.ts"],"mappings":";;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;
|
|
1
|
+
{"version":3,"names":["_utilities","require","_objects","_constants","_defaults","shorthandHandler","mappings","defaults","returnType","resolve","value","__","castToArray","args","isStyleDescriptorArray","Array","isArray","flat","match","find","mapping","length","every","map","index","type","includes","isStyleFunction","endsWith","seenDefaults","Set","tuples","delete","from","defaultValues","target","ShortHandSymbol","prop","setDeepPath"],"sourceRoot":"../../../../../src","sources":["native/styles/shorthands/_handler.ts"],"mappings":";;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAKA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,S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IAED,IAAIf,UAAU,KAAK,iBAAiB,IAAIA,UAAU,KAAK,QAAQ,EAAE;MAC/D,MAAM2B,MAA+B,GACnC3B,UAAU,KAAK,iBAAiB,GAAG;QAAE,CAAC4B,0BAAe,GAAG;MAAK,CAAC,GAAG,CAAC,CAAC;MAErE,KAAK,MAAM,CAAC1B,KAAK,EAAE2B,IAAI,CAAC,IAAIN,MAAM,EAAE;QAClC,IAAI,OAAOM,IAAI,KAAK,QAAQ,EAAE;UAC5BF,MAAM,CAACE,IAAI,CAAC,GAAG3B,KAAK;QACtB,CAAC,MAAM;UACL,IAAA4B,oBAAW,EAACH,MAAM,EAAEE,IAAI,EAAE3B,KAAK,CAAC;QAClC;MACF;MAEA,OAAOyB,MAAM;IACf,CAAC,MAAM;MACL,OAAOJ,MAAM;IACf;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -17,9 +17,9 @@ const fill = ["animationFillMode", ["none", "forwards", "backwards", "both"], "n
|
|
|
17
17
|
const playState = ["animationPlayState", ["running", "paused"], "running"];
|
|
18
18
|
const direction = ["animationDirection", ["normal", "reverse", "alternate", "alternate-reverse"], "normal"];
|
|
19
19
|
const timingFunction = ["animationTimingFunction", ["linear", "ease", "ease-in", "ease-out", "ease-in-out", "object"], "ease"];
|
|
20
|
-
const animationShorthand = exports.animationShorthand = (0, _handler.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");
|
|
20
|
+
const animationShorthand = exports.animationShorthand = (0, _handler.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");
|
|
21
21
|
const animation = (resolveValue, value, get, options) => {
|
|
22
|
-
const animationShortHandTuples = animationShorthand(resolveValue, value, get, options);
|
|
22
|
+
const animationShortHandTuples = animationShorthand(resolveValue, [value[2]], get, options);
|
|
23
23
|
if (!Array.isArray(animationShortHandTuples)) {
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
@@ -28,6 +28,9 @@ const animation = (resolveValue, value, get, options) => {
|
|
|
28
28
|
if (!nameTuple || typeof name !== "string") {
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
|
+
if (name === "none") {
|
|
32
|
+
return (0, _objects.applyShorthand)(animationShortHandTuples);
|
|
33
|
+
}
|
|
31
34
|
const keyframes = get(_nativeInternal.StyleCollection.keyframes(name));
|
|
32
35
|
const animation = {};
|
|
33
36
|
for (const [progress, declarations] of keyframes) {
|
|
@@ -55,7 +58,7 @@ const animation = (resolveValue, value, get, options) => {
|
|
|
55
58
|
exports.animation = animation;
|
|
56
59
|
const animationName = (resolveValue, value, get, options) => {
|
|
57
60
|
const shorthand = animation(resolveValue, value, get, options);
|
|
58
|
-
return shorthand
|
|
61
|
+
return shorthand?.animationName;
|
|
59
62
|
};
|
|
60
63
|
exports.animationName = animationName;
|
|
61
64
|
//# sourceMappingURL=animation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_nativeInternal","require","_objects","_handler","name","delay","duration","iteration","fill","playState","direction","timingFunction","animationShorthand","exports","shorthandHandler","animation","resolveValue","value","get","options","animationShortHandTuples","Array","isArray","nameTuple","find","tuple","keyframes","StyleCollection","progress","declarations","props","calculateProps","s","d","renderGuards","inheritedVariables","inlineVariables","normal","Object","assign","important","style","
|
|
1
|
+
{"version":3,"names":["_nativeInternal","require","_objects","_handler","name","delay","duration","iteration","fill","playState","direction","timingFunction","animationShorthand","exports","shorthandHandler","animation","resolveValue","value","get","options","animationShortHandTuples","Array","isArray","nameTuple","find","tuple","applyShorthand","keyframes","StyleCollection","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":";;;;;;AACA,IAAAA,eAAA,GAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAD,OAAA;AAEA,IAAAE,QAAA,GAAAF,OAAA;AALA;;AAOA,MAAMG,IAAI,GAAG,CAAC,eAAe,EAAE,QAAQ,EAAE,MAAM,CAAU;AACzD,MAAMC,KAAK,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,CAAC,CAAU;AACtD,MAAMC,QAAQ,GAAG,CAAC,mBAAmB,EAAE,QAAQ,EAAE,CAAC,CAAU;AAC5D,MAAMC,SAAS,GAAG,CAChB,yBAAyB,EACzB,CAAC,QAAQ,EAAE,UAAU,CAAC,EACtB,CAAC,CACO;AACV,MAAMC,IAAI,GAAG,CACX,mBAAmB,EACnB,CAAC,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,CAAC,EACzC,MAAM,CACE;AACV,MAAMC,SAAS,GAAG,CAChB,oBAAoB,EACpB,CAAC,SAAS,EAAE,QAAQ,CAAC,EACrB,SAAS,CACD;AACV,MAAMC,SAAS,GAAG,CAChB,oBAAoB,EACpB,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,mBAAmB,CAAC,EACvD,QAAQ,CACA;AACV,MAAMC,cAAc,GAAG,CACrB,yBAAyB,EACzB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,CAAC,EAClE,MAAM,CACE;AAEH,MAAMC,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,IAAAE,yBAAgB,EAChD,CACE,CAACV,IAAI,CAAC,EACN,CAACE,QAAQ,EAAEF,IAAI,CAAC,EAChB,CAACA,IAAI,EAAEE,QAAQ,CAAC,EAChB,CAACF,IAAI,EAAEE,QAAQ,EAAEK,cA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,aAAA,GAAAA,aAAA","ignoreList":[]}
|
|
@@ -6,37 +6,42 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.boxShadow = void 0;
|
|
7
7
|
var _utilities = require("react-native-css/utilities");
|
|
8
8
|
var _handler = require("./_handler.js");
|
|
9
|
-
|
|
9
|
+
// "color" type accepts both strings ("#fff") and objects (PlatformColor from currentcolor).
|
|
10
|
+
// Using "string" here would reject platform color objects and silently drop the shadow.
|
|
11
|
+
const color = ["color", "color"];
|
|
10
12
|
const offsetX = ["offsetX", "number"];
|
|
11
13
|
const offsetY = ["offsetY", "number"];
|
|
12
14
|
const blurRadius = ["blurRadius", "number"];
|
|
13
15
|
const spreadDistance = ["spreadDistance", "number"];
|
|
14
|
-
//
|
|
15
|
-
|
|
16
|
-
const handler = (0, _handler.shorthandHandler)([
|
|
16
|
+
// Match the literal string "inset" - the array type checks if value is in array
|
|
17
|
+
const inset = ["inset", ["inset"]];
|
|
18
|
+
const handler = (0, _handler.shorthandHandler)([
|
|
19
|
+
// Standard patterns (without inset)
|
|
20
|
+
[offsetX, offsetY, blurRadius, spreadDistance], [offsetX, offsetY, blurRadius, spreadDistance, color], [color, offsetX, offsetY], [color, offsetX, offsetY, blurRadius, spreadDistance], [offsetX, offsetY, color], [offsetX, offsetY, blurRadius, color],
|
|
21
|
+
// Inset patterns - "inset" keyword at the beginning
|
|
22
|
+
[inset, offsetX, offsetY, blurRadius, spreadDistance], [inset, offsetX, offsetY, blurRadius, spreadDistance, color], [inset, offsetX, offsetY, blurRadius, color], [inset, color, offsetX, offsetY, blurRadius, spreadDistance]], [], "object");
|
|
23
|
+
const alreadyResolved = value => value;
|
|
17
24
|
const boxShadow = (resolveValue, func, get, options) => {
|
|
18
25
|
const args = resolveValue(func[2]);
|
|
19
26
|
if (!(0, _utilities.isStyleDescriptorArray)(args)) {
|
|
20
27
|
return args;
|
|
21
|
-
} else {
|
|
22
|
-
return args.flatMap(flattenShadowDescriptor).map(shadows => {
|
|
23
|
-
if (shadows === undefined) {
|
|
24
|
-
return;
|
|
25
|
-
} else {
|
|
26
|
-
return omitTransparentShadows(handler(resolveValue, shadows, get, options));
|
|
27
|
-
}
|
|
28
|
-
}).filter(v => v !== undefined);
|
|
29
28
|
}
|
|
29
|
+
|
|
30
|
+
// A flat array of tokens (e.g. [0, 4, 6, -1, "#000"]) is a single shadow,
|
|
31
|
+
// written out or substituted from a variable. An array of arrays
|
|
32
|
+
// (e.g. [[0, 4, 6, -1, "#000"], [...]]) is a comma-separated list, one
|
|
33
|
+
// shadow per item. The compiler keeps the separator via the nested array.
|
|
34
|
+
const shadows = (0, _utilities.isCommaList)(args) ? args : [args];
|
|
35
|
+
const result = [];
|
|
36
|
+
for (const shadow of shadows) {
|
|
37
|
+
const value = normalizeInsetValue(
|
|
38
|
+
// alreadyResolved rather than resolveValue: don't walk through tokens and resolve all shadows when we've already resolved this one
|
|
39
|
+
omitTransparentShadows(handler(alreadyResolved, shadow, get, options)));
|
|
40
|
+
if (value !== undefined) result.push(value);
|
|
41
|
+
}
|
|
42
|
+
return result;
|
|
30
43
|
};
|
|
31
44
|
exports.boxShadow = boxShadow;
|
|
32
|
-
function flattenShadowDescriptor(arg) {
|
|
33
|
-
if ((0, _utilities.isStyleDescriptorArray)(arg) && (0, _utilities.isStyleDescriptorArray)(arg[0])) {
|
|
34
|
-
return arg.map(arg => {
|
|
35
|
-
return flattenShadowDescriptor(arg);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
return [arg];
|
|
39
|
-
}
|
|
40
45
|
function omitTransparentShadows(style) {
|
|
41
46
|
if (typeof style === "object" && style && "color" in style) {
|
|
42
47
|
if (style.color === "#0000" || style.color === "transparent") {
|
|
@@ -45,4 +50,20 @@ function omitTransparentShadows(style) {
|
|
|
45
50
|
}
|
|
46
51
|
return style;
|
|
47
52
|
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Convert inset: "inset" to inset: true for React Native boxShadow.
|
|
56
|
+
*
|
|
57
|
+
* The shorthand handler matches the literal "inset" string and assigns it as the value.
|
|
58
|
+
* React Native's boxShadow expects inset to be a boolean.
|
|
59
|
+
*/
|
|
60
|
+
function normalizeInsetValue(style) {
|
|
61
|
+
if (typeof style === "object" && style && "inset" in style) {
|
|
62
|
+
return {
|
|
63
|
+
...style,
|
|
64
|
+
inset: true
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
return style;
|
|
68
|
+
}
|
|
48
69
|
//# sourceMappingURL=box-shadow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_utilities","require","_handler","color","offsetX","offsetY","blurRadius","spreadDistance","handler","shorthandHandler","boxShadow","resolveValue","func","get","options","args","isStyleDescriptorArray","
|
|
1
|
+
{"version":3,"names":["_utilities","require","_handler","color","offsetX","offsetY","blurRadius","spreadDistance","inset","handler","shorthandHandler","alreadyResolved","value","boxShadow","resolveValue","func","get","options","args","isStyleDescriptorArray","shadows","isCommaList","result","shadow","normalizeInsetValue","omitTransparentShadows","undefined","push","exports","style"],"sourceRoot":"../../../../../src","sources":["native/styles/shorthands/box-shadow.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAMA,IAAAC,QAAA,GAAAD,OAAA;AAEA;AACA;AACA,MAAME,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,GAAG,IAAAC,yBAAgB,EAC9B;AACE;AACA,CAACN,OAAO,EAAEC,OAAO,EAAE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AAmB;IAC/B;IACAC,sBAAsB,CAAChB,OAAO,CAACE,eAAe,EAAEY,MAAM,EAAEP,GAAG,EAAEC,OAAO,CAAC,CACvE,CAAC;IACD,IAAIL,KAAK,KAAKc,SAAS,EAAEJ,MAAM,CAACK,IAAI,CAACf,KAAK,CAAC;EAC7C;EAEA,OAAOU,MAAM;AACf,CAAC;AAACM,OAAA,CAAAf,SAAA,GAAAA,SAAA;AAEF,SAASY,sBAAsBA,CAACI,KAAc,EAAE;EAC9C,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,IAAI,OAAO,IAAIA,KAAK,EAAE;IAC1D,IAAIA,KAAK,CAAC1B,KAAK,KAAK,OAAO,IAAI0B,KAAK,CAAC1B,KAAK,KAAK,aAAa,EAAE;MAC5D;IACF;EACF;EAEA,OAAO0B,KAAK;AACd;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAASL,mBAAmBA,CAACK,KAAc,EAAE;EAC3C,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,IAAI,OAAO,IAAIA,KAAK,EAAE;IAC1D,OAAO;MAAE,GAAGA,KAAK;MAAErB,KAAK,EAAE;IAAK,CAAC;EAClC;EAEA,OAAOqB,KAAK;AACd","ignoreList":[]}
|
|
@@ -25,6 +25,17 @@ Object.keys(_border).forEach(function (key) {
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
|
+
var _logicalBorderWidth = require("./logical-border-width.js");
|
|
29
|
+
Object.keys(_logicalBorderWidth).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _logicalBorderWidth[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _logicalBorderWidth[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
28
39
|
var _boxShadow = require("./box-shadow.js");
|
|
29
40
|
Object.keys(_boxShadow).forEach(function (key) {
|
|
30
41
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_animation","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_border","_boxShadow","_textShadow","_transform"],"sourceRoot":"../../../../../src","sources":["native/styles/shorthands/index.ts"],"mappings":";;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,UAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,UAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,UAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,OAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,OAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,OAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,OAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,
|
|
1
|
+
{"version":3,"names":["_animation","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_border","_logicalBorderWidth","_boxShadow","_textShadow","_transform"],"sourceRoot":"../../../../../src","sources":["native/styles/shorthands/index.ts"],"mappings":";;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,UAAA,EAAAI,OAAA,WAAAC,GAAA;EAA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D,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,UAAA,CAAAP,GAAA;IAAA;EAAA;AAAA;AACA,IAAAQ,WAAA,GAAAZ,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAU,WAAA,EAAAT,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAQ,WAAA,CAAAR,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAI,WAAA,CAAAR,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,UAAA,GAAAb,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAW,UAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAS,UAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAK,UAAA,CAAAT,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.borderInlineWidth = exports.borderBlockWidth = void 0;
|
|
7
|
+
var _constants = require("../constants.js");
|
|
8
|
+
function logicalWidth(start, end) {
|
|
9
|
+
return (resolve, descriptor) => {
|
|
10
|
+
const resolved = resolve(descriptor[2]);
|
|
11
|
+
const values = Array.isArray(resolved) ? resolved : [resolved];
|
|
12
|
+
if (values.length < 1 || values.length > 2 || !values.every(value => typeof value === "number" && Number.isFinite(value) && value >= 0)) return;
|
|
13
|
+
return {
|
|
14
|
+
[_constants.ShortHandSymbol]: true,
|
|
15
|
+
[start]: values[0],
|
|
16
|
+
[end]: values[1] ?? values[0]
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
const borderBlockWidth = exports.borderBlockWidth = logicalWidth("borderTopWidth", "borderBottomWidth");
|
|
21
|
+
const borderInlineWidth = exports.borderInlineWidth = logicalWidth("borderStartWidth", "borderEndWidth");
|
|
22
|
+
//# sourceMappingURL=logical-border-width.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_constants","require","logicalWidth","start","end","resolve","descriptor","resolved","values","Array","isArray","length","every","value","Number","isFinite","ShortHandSymbol","borderBlockWidth","exports","borderInlineWidth"],"sourceRoot":"../../../../../src","sources":["native/styles/shorthands/logical-border-width.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAGA,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,CAACG,0BAAe,GAAG,IAAI;MACvB,CAACb,KAAK,GAAGK,MAAM,CAAC,CAAC,CAAC;MAClB,CAACJ,GAAG,GAAGI,MAAM,CAAC,CAAC,CAAC,IAAIA,MAAM,CAAC,CAAC;IAC9B,CAAC;EACH,CAAC;AACH;AAEO,MAAMS,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAGf,YAAY,CAC1C,gBAAgB,EAChB,mBACF,CAAC;AACM,MAAMiB,iBAAiB,GAAAD,OAAA,CAAAC,iBAAA,GAAGjB,YAAY,CAC3C,kBAAkB,EAClB,gBACF,CAAC","ignoreList":[]}
|
|
@@ -4,20 +4,43 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.transform = void 0;
|
|
7
|
+
var _utilities = require("react-native-css/utilities");
|
|
7
8
|
/**
|
|
8
9
|
* Handle the unparsable transform property by converting its values into StyleDeclarations
|
|
9
10
|
* Each value should be a StyleDescriptor function of the transform type
|
|
10
11
|
*/
|
|
11
12
|
const transform = (resolveValue, transformDescriptor) => {
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return [
|
|
18
|
-
}
|
|
19
|
-
|
|
13
|
+
const args = transformDescriptor[2];
|
|
14
|
+
const entries = [];
|
|
15
|
+
|
|
16
|
+
// Anything but a transform entry, null included, leaves the declaration invalid at computed-value time, so the transform is none (css-variables-1 §3.1)
|
|
17
|
+
if (!(0, _utilities.isStyleDescriptorArray)(args)) {
|
|
18
|
+
return appendEntries(entries, resolveValue(args)) ? entries : [];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Each function in turn, rather than resolving the list into an array to copy again
|
|
22
|
+
for (const arg of args) {
|
|
23
|
+
if (!appendEntries(entries, resolveValue(arg))) return [];
|
|
20
24
|
}
|
|
25
|
+
return entries;
|
|
21
26
|
};
|
|
27
|
+
|
|
28
|
+
// A group from a resolver and the list a var() fallback holds each nest a level, while React Native takes a flat list of single-key objects. Returns false for anything but an entry
|
|
22
29
|
exports.transform = transform;
|
|
30
|
+
function appendEntries(entries, value) {
|
|
31
|
+
if (Array.isArray(value)) {
|
|
32
|
+
for (const item of value) {
|
|
33
|
+
if (!appendEntries(entries, item)) return false;
|
|
34
|
+
}
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
if (value === undefined || value === "initial") {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
if (typeof value === "object" && value !== null) {
|
|
41
|
+
entries.push(value);
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
23
46
|
//# sourceMappingURL=transform.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["transform","resolveValue","transformDescriptor","
|
|
1
|
+
{"version":3,"names":["_utilities","require","transform","resolveValue","transformDescriptor","args","entries","isStyleDescriptorArray","appendEntries","arg","exports","value","Array","isArray","item","undefined","push"],"sourceRoot":"../../../../../src","sources":["native/styles/shorthands/transform.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAIA;AACA;AACA;AACA;AACO,MAAMC,SAAgC,GAAGA,CAC9CC,YAAY,EACZC,mBAAmB,KAChB;EACH,MAAMC,IAAI,GAAGD,mBAAmB,CAAC,CAAC,CAAC;EACnC,MAAME,OAAkB,GAAG,EAAE;;EAE7B;EACA,IAAI,CAAC,IAAAC,iCAAsB,EAACF,IAAI,CAAC,EAAE;IACjC,OAAOG,aAAa,CAACF,OAAO,EAAEH,YAAY,CAACE,IAAI,CAAC,CAAC,GAAGC,OAAO,GAAG,EAAE;EAClE;;EAEA;EACA,KAAK,MAAMG,GAAG,IAAIJ,IAAI,EAAE;IACtB,IAAI,CAACG,aAAa,CAACF,OAAO,EAAEH,YAAY,CAACM,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE;EAC3D;EAEA,OAAOH,OAAO;AAChB,CAAC;;AAED;AAAAI,OAAA,CAAAR,SAAA,GAAAA,SAAA;AACA,SAASM,aAAaA,CAACF,OAAkB,EAAEK,KAAc,EAAW;EAClE,IAAIC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;IACxB,KAAK,MAAMG,IAAI,IAAIH,KAAK,EAAe;MACrC,IAAI,CAACH,aAAa,CAACF,OAAO,EAAEQ,IAAI,CAAC,EAAE,OAAO,KAAK;IACjD;IACA,OAAO,IAAI;EACb;EAEA,IAAIH,KAAK,KAAKI,SAAS,IAAIJ,KAAK,KAAK,SAAS,EAAE;IAC9C,OAAO,IAAI;EACb;EAEA,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,KAAK,IAAI,EAAE;IAC/CL,OAAO,CAACU,IAAI,CAACL,KAAK,CAAC;IACnB,OAAO,IAAI;EACb;EAEA,OAAO,KAAK;AACd","ignoreList":[]}
|