react-native-css 0.0.0-nightly.d6f42ab → 0.0.0-nightly.eda2b28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/commonjs/babel/import-plugin.js +9 -3
- package/dist/commonjs/babel/import-plugin.js.map +1 -1
- package/dist/commonjs/babel/react-native-web.js +16 -3
- package/dist/commonjs/babel/react-native-web.js.map +1 -1
- package/dist/commonjs/babel/react-native.js +7 -2
- 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 +92 -31
- 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 +148 -56
- package/dist/commonjs/compiler/declarations.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 +13 -3
- package/dist/commonjs/compiler/selector-builder.js.map +1 -1
- package/dist/commonjs/compiler/stylesheet.js +5 -0
- 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/FlatList.js +1 -0
- package/dist/commonjs/components/FlatList.js.map +1 -1
- package/dist/commonjs/components/ImageBackground.js +2 -6
- package/dist/commonjs/components/ImageBackground.js.map +1 -1
- package/dist/commonjs/components/KeyboardAvoidingView.js +2 -3
- package/dist/commonjs/components/KeyboardAvoidingView.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/index.cjs +46 -1
- package/dist/commonjs/components/index.cjs.map +1 -1
- package/dist/commonjs/jest/index.js +1 -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 +1 -1
- package/dist/commonjs/metro/metro-transformer.js.map +1 -1
- package/dist/commonjs/metro/typescript.js +26 -6
- package/dist/commonjs/metro/typescript.js.map +1 -1
- package/dist/commonjs/native/api.js +12 -8
- 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/media-query.js +1 -1
- package/dist/commonjs/native/conditions/media-query.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 +12 -5
- package/dist/commonjs/native/react/rules.js.map +1 -1
- package/dist/commonjs/native/react/useNativeCss.js +70 -15
- 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 +47 -23
- 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/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 -6
- 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 +6 -3
- 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 +55 -43
- package/dist/commonjs/native/styles/variables.js.map +1 -1
- package/dist/commonjs/native-internal/style-collection.js +1 -1
- package/dist/commonjs/native-internal/style-collection.js.map +1 -1
- package/dist/commonjs/utilities/dot-notation.types.js +4 -0
- 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 +2 -2
- 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/import-plugin.js +11 -5
- 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 +7 -2
- 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 +94 -33
- package/dist/module/compiler/compiler.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 +147 -56
- package/dist/module/compiler/declarations.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 +13 -3
- package/dist/module/compiler/selector-builder.js.map +1 -1
- package/dist/module/compiler/stylesheet.js +5 -0
- 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/FlatList.js +1 -0
- package/dist/module/components/FlatList.js.map +1 -1
- package/dist/module/components/ImageBackground.js +2 -6
- package/dist/module/components/ImageBackground.js.map +1 -1
- package/dist/module/components/KeyboardAvoidingView.js +2 -3
- package/dist/module/components/KeyboardAvoidingView.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/index.cjs +46 -1
- package/dist/module/components/index.cjs.map +1 -1
- package/dist/module/jest/index.js +1 -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 +1 -1
- package/dist/module/metro/metro-transformer.js.map +1 -1
- package/dist/module/metro/typescript.js +26 -6
- package/dist/module/metro/typescript.js.map +1 -1
- package/dist/module/native/api.js +14 -10
- 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/media-query.js +1 -1
- package/dist/module/native/conditions/media-query.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 +13 -6
- package/dist/module/native/react/rules.js.map +1 -1
- package/dist/module/native/react/useNativeCss.js +73 -18
- 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 +44 -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/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 -6
- 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 +6 -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 +55 -43
- package/dist/module/native/styles/variables.js.map +1 -1
- package/dist/module/native-internal/style-collection.js +1 -1
- package/dist/module/native-internal/style-collection.js.map +1 -1
- package/dist/module/utilities/dot-notation.types.js +2 -0
- 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 +2 -2
- 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/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.map +1 -1
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts +3 -2
- package/dist/typescript/commonjs/src/compiler/declarations.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.map +1 -1
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +1 -0
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.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/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/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.map +1 -1
- package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts +5 -3
- package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/typescript.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/api.d.ts +4 -8
- 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/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.map +1 -1
- 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 +13 -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 +2 -2
- 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.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.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 +2 -1
- package/dist/typescript/commonjs/src/utilities/dot-notation.types.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/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 +2 -2
- package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/compiler.types.d.ts +1 -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 +5 -4
- 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 +1 -1
- 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 +1 -1
- 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 +2 -1
- package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
- package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -1
- package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -1
- package/dist/typescript/module/src/components/KeyboardAvoidingView.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/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/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 +1 -1
- package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/metro-transformer.d.ts +6 -4
- package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/typescript.d.ts.map +1 -1
- package/dist/typescript/module/src/native/api.d.ts +5 -9
- 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 +2 -2
- 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 +2 -2
- package/dist/typescript/module/src/native/react/rules.d.ts.map +1 -1
- package/dist/typescript/module/src/native/react/useNativeCss.d.ts +4 -4
- 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 +13 -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 +7 -7
- 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 +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 +2 -2
- 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 +1 -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 +2 -2
- 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 +2 -1
- package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -1
- package/dist/typescript/module/src/utilities/index.d.ts +3 -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 +78 -29
- package/src/babel/import-plugin.ts +15 -4
- package/src/babel/react-native-web.ts +32 -3
- package/src/babel/react-native.ts +7 -1
- package/src/compiler/atRules.ts +44 -0
- package/src/compiler/compiler.ts +140 -42
- package/src/compiler/container-query.ts +8 -3
- package/src/compiler/declarations.ts +279 -94
- package/src/compiler/lightningcss-loader.ts +21 -1
- package/src/compiler/media-query.ts +20 -9
- package/src/compiler/selector-builder.ts +29 -3
- package/src/compiler/stylesheet.ts +6 -0
- package/src/compiler/supports.ts +2 -2
- package/src/components/FlatList.tsx +1 -0
- package/src/components/ImageBackground.tsx +2 -6
- package/src/components/KeyboardAvoidingView.tsx +2 -3
- package/src/components/SafeAreaProvider.tsx +1 -0
- package/src/components/index.cts +46 -1
- package/src/jest/index.ts +1 -1
- package/src/metro/cache-version.ts +48 -0
- package/src/metro/index.ts +2 -0
- package/src/metro/metro-transformer.ts +9 -6
- package/src/metro/typescript.ts +53 -6
- package/src/native/api.tsx +20 -14
- package/src/native/conditions/attributes.ts +26 -9
- package/src/native/conditions/container-query.ts +11 -9
- package/src/native/conditions/media-query.ts +1 -1
- package/src/native/react/interaction.ts +11 -6
- package/src/native/react/rules.ts +13 -5
- package/src/native/react/useNativeCss.ts +79 -17
- package/src/native/react/usePassthrough.ts +3 -2
- package/src/native/reactivity.ts +61 -24
- package/src/native/reanimated.ts +24 -5
- 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 +443 -36
- package/src/native/styles/resolve.ts +15 -11
- 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 +8 -2
- 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 +48 -38
- package/src/native-internal/style-collection.ts +1 -1
- package/src/runtime.types.ts +17 -15
- package/src/utilities/dot-notation.types.ts +4 -3
- package/src/utilities/style-descriptor.ts +11 -16
- package/src/web/api.tsx +7 -12
- 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/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
|
@@ -11,6 +11,126 @@ var _reactivity = require("../reactivity.js");
|
|
|
11
11
|
var _calculateProps = require("./calculate-props.js");
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* Checks if the left style object has any properties that are not present in the right style object.
|
|
16
|
+
* This is used to determine if styles need to be preserved in an array or if right can completely override left.
|
|
17
|
+
*
|
|
18
|
+
* Note: This intentionally only checks one direction (left → right). We don't need to check if right has
|
|
19
|
+
* properties that left doesn't have, because right will always be applied/merged. The question we're
|
|
20
|
+
* answering is: "Does left have any properties that would be lost if we just used right?" If yes, we
|
|
21
|
+
* create a style array [left, right] to preserve both. If no, right can safely replace left entirely.
|
|
22
|
+
*
|
|
23
|
+
* @param left - The left style object to check
|
|
24
|
+
* @param right - The right style object to compare against
|
|
25
|
+
* @returns true if left has at least one property key that doesn't exist in right, false otherwise
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* hasNonOverlappingProperties({color: 'red', fontSize: 12}, {color: 'blue'}) // true - fontSize is not in right
|
|
29
|
+
* hasNonOverlappingProperties({color: 'red'}, {color: 'blue', fontSize: 12}) // false - all left keys exist in right
|
|
30
|
+
*/
|
|
31
|
+
function hasNonOverlappingProperties(left, right) {
|
|
32
|
+
// Null safety check
|
|
33
|
+
if (!left || !right) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Only check own properties to avoid prototype pollution
|
|
38
|
+
for (const key in left) {
|
|
39
|
+
if (Object.prototype.hasOwnProperty.call(left, key)) {
|
|
40
|
+
if (!Object.prototype.hasOwnProperty.call(right, key)) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Flattens a style array into a single object when possible, with rightmost values taking precedence.
|
|
50
|
+
* Returns the original array if it contains any non-plain objects, arrays, or CSS variable objects.
|
|
51
|
+
*
|
|
52
|
+
* Note: This function assumes the input array has already been filtered (e.g., by filterCssVariables),
|
|
53
|
+
* so empty arrays should not reach this function. If they do, they will be treated as non-flattenable.
|
|
54
|
+
*
|
|
55
|
+
* @param styleArray - The style array to potentially flatten
|
|
56
|
+
* @returns A single merged object if all items are plain objects, otherwise the original array
|
|
57
|
+
*/
|
|
58
|
+
function flattenStyleArray(styleArray) {
|
|
59
|
+
// Check if we can flatten to a single object (all items are plain objects)
|
|
60
|
+
for (const item of styleArray) {
|
|
61
|
+
// Use explicit null check instead of !item to allow falsy values like 0 or false
|
|
62
|
+
if (item == null || typeof item !== "object" || Array.isArray(item) || Object.prototype.hasOwnProperty.call(item, _reactivity.VAR_SYMBOL)) {
|
|
63
|
+
return styleArray;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// Use reduce to avoid spread operator performance issues with large arrays
|
|
68
|
+
return styleArray.reduce((acc, item) => Object.assign(acc, item), {});
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Recursively filters out CSS variable objects (with VAR_SYMBOL) from style values.
|
|
73
|
+
* This prevents CSS variable runtime objects from leaking into React Native component props.
|
|
74
|
+
*
|
|
75
|
+
* @param value - The value to filter (can be any type: object, array, primitive, etc.)
|
|
76
|
+
* @param depth - Internal recursion depth counter to prevent stack overflow (max 100)
|
|
77
|
+
* @returns The filtered value with CSS variables removed, or `undefined` if the entire value
|
|
78
|
+
* should be filtered out (e.g., empty arrays, objects with only VAR_SYMBOL properties)
|
|
79
|
+
*
|
|
80
|
+
* Filtering behavior:
|
|
81
|
+
* - Objects with VAR_SYMBOL property: returns `undefined` (completely filtered)
|
|
82
|
+
* - Arrays: filters out VAR_SYMBOL objects, returns `undefined` if empty after filtering
|
|
83
|
+
* - Objects: recursively filters properties, returns `undefined` if no properties remain
|
|
84
|
+
* - Primitives (null, undefined, numbers, strings, booleans): returned as-is
|
|
85
|
+
* - Symbol properties: intentionally filtered out for React Native compatibility
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* filterCssVariables({fontSize: 16, color: {[VAR_SYMBOL]: true}}) // {fontSize: 16}
|
|
89
|
+
* filterCssVariables([{margin: 10}, {[VAR_SYMBOL]: true}]) // [{margin: 10}]
|
|
90
|
+
* filterCssVariables({color: {[VAR_SYMBOL]: true}}) // undefined (all props filtered)
|
|
91
|
+
*/
|
|
92
|
+
function filterCssVariables(value, depth = 0) {
|
|
93
|
+
// Prevent stack overflow on deeply nested structures
|
|
94
|
+
if (depth > 100) {
|
|
95
|
+
return value;
|
|
96
|
+
}
|
|
97
|
+
if (value === null || value === undefined) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
if (Array.isArray(value)) {
|
|
101
|
+
// Single-pass filter with map operation
|
|
102
|
+
const filtered = [];
|
|
103
|
+
for (const item of value) {
|
|
104
|
+
const filteredItem = filterCssVariables(item, depth + 1);
|
|
105
|
+
if (filteredItem !== undefined && !(typeof filteredItem === "object" && filteredItem !== null && Object.prototype.hasOwnProperty.call(filteredItem, _reactivity.VAR_SYMBOL))) {
|
|
106
|
+
filtered.push(filteredItem);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return filtered.length > 0 ? filtered : undefined;
|
|
110
|
+
}
|
|
111
|
+
if (typeof value === "object") {
|
|
112
|
+
// If the object itself has VAR_SYMBOL, filter it out (check own property only)
|
|
113
|
+
if (Object.prototype.hasOwnProperty.call(value, _reactivity.VAR_SYMBOL)) {
|
|
114
|
+
return undefined;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// Otherwise, filter VAR_SYMBOL properties from nested objects
|
|
118
|
+
const filtered = {};
|
|
119
|
+
let hasProperties = false;
|
|
120
|
+
|
|
121
|
+
// Use Object.keys to only iterate own string properties (not inherited, not Symbols)
|
|
122
|
+
// This intentionally filters out Symbol properties for React Native compatibility
|
|
123
|
+
for (const key of Object.keys(value)) {
|
|
124
|
+
const filteredValue = filterCssVariables(value[key], depth + 1);
|
|
125
|
+
if (filteredValue !== undefined) {
|
|
126
|
+
filtered[key] = filteredValue;
|
|
127
|
+
hasProperties = true;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return hasProperties ? filtered : undefined;
|
|
131
|
+
}
|
|
132
|
+
return value;
|
|
133
|
+
}
|
|
14
134
|
const stylesFamily = exports.stylesFamily = (0, _reactivity.family)((hash, rules) => {
|
|
15
135
|
const sortedRules = Array.from(rules).sort(_utilities.specificityCompareFn);
|
|
16
136
|
const obs = (0, _reactivity.observable)(read => (0, _calculateProps.calculateProps)(read, sortedRules));
|
|
@@ -18,22 +138,45 @@ const stylesFamily = exports.stylesFamily = (0, _reactivity.family)((hash, rules
|
|
|
18
138
|
/**
|
|
19
139
|
* A family is a map, so we need to cleanup the observers when the the hash is no longer used
|
|
20
140
|
*/
|
|
141
|
+
const unsubscribe = obs.unsubscribe;
|
|
21
142
|
return Object.assign(obs, {
|
|
22
|
-
|
|
23
|
-
|
|
143
|
+
unsubscribe: effect => {
|
|
144
|
+
unsubscribe(effect);
|
|
24
145
|
if (obs.observers.size === 0) {
|
|
25
146
|
stylesFamily.delete(hash);
|
|
26
147
|
}
|
|
27
148
|
}
|
|
28
149
|
});
|
|
29
150
|
});
|
|
30
|
-
function getStyledProps(state, inline) {
|
|
151
|
+
function getStyledProps(state, inline, adaptProps = props => props) {
|
|
31
152
|
let result;
|
|
32
153
|
const styledProps = state.stylesObs?.get(state.styleEffect);
|
|
154
|
+
|
|
155
|
+
// Each config merges a complete props object. Preserve its full target path
|
|
156
|
+
// before the next config merges unrelated inline props over that object.
|
|
157
|
+
const computedTargets = [];
|
|
158
|
+
const consumedSources = [];
|
|
33
159
|
for (const config of state.configs) {
|
|
34
|
-
result = deepMergeConfig(config, styledProps?.normal, inline, true);
|
|
160
|
+
result = deepMergeConfig(config, nativeStyleMapping(config, adaptProps(styledProps?.normal)), inline, true);
|
|
35
161
|
if (styledProps?.important) {
|
|
36
|
-
result = deepMergeConfig(config, result, styledProps.important);
|
|
162
|
+
result = deepMergeConfig(config, result, nativeStyleMapping(config, adaptProps(styledProps.important)));
|
|
163
|
+
}
|
|
164
|
+
if (result && config.target) {
|
|
165
|
+
const path = Array.isArray(config.target) ? config.target : [config.target];
|
|
166
|
+
let target = result;
|
|
167
|
+
for (const key of path.slice(0, -1)) target = target?.[key];
|
|
168
|
+
const key = path[path.length - 1];
|
|
169
|
+
if (target && key && key in target) {
|
|
170
|
+
computedTargets.push({
|
|
171
|
+
path,
|
|
172
|
+
value: target[key]
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// Track consumed className sources for cleanup
|
|
178
|
+
if (config.source !== config.target) {
|
|
179
|
+
consumedSources.push(config.source);
|
|
37
180
|
}
|
|
38
181
|
|
|
39
182
|
// Apply the handlers
|
|
@@ -58,15 +201,156 @@ function getStyledProps(state, inline) {
|
|
|
58
201
|
result.onLayout = (0, _interaction.getInteractionHandler)(state.ruleEffectGetter, "onLayout", inline?.onLayout);
|
|
59
202
|
}
|
|
60
203
|
}
|
|
204
|
+
|
|
205
|
+
// Restore correctly-merged target props that may have been overwritten
|
|
206
|
+
// by later config iterations' Object.assign({}, left, right)
|
|
207
|
+
if (result) {
|
|
208
|
+
for (const {
|
|
209
|
+
path,
|
|
210
|
+
value
|
|
211
|
+
} of computedTargets) {
|
|
212
|
+
let target = result;
|
|
213
|
+
for (const key of path.slice(0, -1)) {
|
|
214
|
+
const existing = target[key];
|
|
215
|
+
target = target[key] = Array.isArray(existing) ? [...existing] : {
|
|
216
|
+
...existing
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
target[path[path.length - 1]] = value;
|
|
220
|
+
}
|
|
221
|
+
for (const source of consumedSources) {
|
|
222
|
+
delete result[source];
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
return result;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Merges two prop objects, skipping keys from `right` whose value is `undefined`
|
|
230
|
+
* or an empty plain object.
|
|
231
|
+
*
|
|
232
|
+
* `Object.assign({}, left, right)` copies all enumerable own properties from `right`,
|
|
233
|
+
* including those with value `undefined` or `{}`. When a component passes
|
|
234
|
+
* `style={undefined}` or `contentContainerStyle={{}}`, the computed NativeWind
|
|
235
|
+
* style from `left` gets overwritten. This function prevents that by only copying
|
|
236
|
+
* values that carry meaningful style information.
|
|
237
|
+
*
|
|
238
|
+
* Empty object detection uses inline `for...in` instead of a separate function or
|
|
239
|
+
* `Object.keys().length` — avoids both function call overhead and intermediate array
|
|
240
|
+
* allocation on a hot path (called per-prop per-render). Consistent with how the
|
|
241
|
+
* `["style"]` target path handles this via `filterCssVariables({})` returning `undefined`.
|
|
242
|
+
*
|
|
243
|
+
* @param left - The computed NativeWind props (className-derived styles)
|
|
244
|
+
* @param right - The inline props from the component (guaranteed non-null by caller; may contain undefined values)
|
|
245
|
+
* @returns A new object with all properties from `left`, overridden only by meaningful values from `right`
|
|
246
|
+
*/
|
|
247
|
+
function mergeDefinedProps(left, right) {
|
|
248
|
+
const result = left ? {
|
|
249
|
+
...left
|
|
250
|
+
} : {};
|
|
251
|
+
for (const key in right) {
|
|
252
|
+
const value = right[key];
|
|
253
|
+
if (value === undefined) continue;
|
|
254
|
+
// Non-object values (strings, numbers, booleans, null, arrays): always assign
|
|
255
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
256
|
+
result[key] = value;
|
|
257
|
+
continue;
|
|
258
|
+
}
|
|
259
|
+
// Plain object: assign only if non-empty. An empty style object (e.g.,
|
|
260
|
+
// contentContainerStyle={{}}) has no properties to apply and should not
|
|
261
|
+
// overwrite computed className styles. The for...in loop only executes
|
|
262
|
+
// if the object has enumerable keys — empty objects are skipped.
|
|
263
|
+
for (const _ in value) {
|
|
264
|
+
result[key] = value;
|
|
265
|
+
break;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
61
268
|
return result;
|
|
62
269
|
}
|
|
63
270
|
function deepMergeConfig(config, left, right, rightIsInline = false) {
|
|
64
|
-
if (!
|
|
271
|
+
if (!right) {
|
|
65
272
|
return {
|
|
66
273
|
...left
|
|
67
274
|
};
|
|
68
275
|
}
|
|
69
|
-
|
|
276
|
+
|
|
277
|
+
// Handle style merging to support both className and inline style props
|
|
278
|
+
let result;
|
|
279
|
+
if (config.target) {
|
|
280
|
+
if (Array.isArray(config.target) && config.target.length === 1 && config.target[0] === "style") {
|
|
281
|
+
// Special handling for style target when we have inline styles
|
|
282
|
+
result = {
|
|
283
|
+
...left,
|
|
284
|
+
...right
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
// Handle null/undefined inline styles
|
|
288
|
+
if (right?.style === null || right?.style === undefined) {
|
|
289
|
+
if (left?.style) {
|
|
290
|
+
result.style = left.style;
|
|
291
|
+
}
|
|
292
|
+
} else if (rightIsInline && right?.style) {
|
|
293
|
+
// Filter inline styles if rightIsInline is true
|
|
294
|
+
const filteredRightStyle = filterCssVariables(right.style);
|
|
295
|
+
if (left?.style) {
|
|
296
|
+
if (!filteredRightStyle) {
|
|
297
|
+
// All inline styles were CSS variables, only use left
|
|
298
|
+
result.style = left.style;
|
|
299
|
+
} else {
|
|
300
|
+
const leftStyle = left.style;
|
|
301
|
+
|
|
302
|
+
// For arrays or objects, check if we need to create a style array
|
|
303
|
+
const leftIsObject = typeof leftStyle === "object" && !Array.isArray(leftStyle);
|
|
304
|
+
const rightIsObject = typeof filteredRightStyle === "object" && !Array.isArray(filteredRightStyle);
|
|
305
|
+
if (leftIsObject && rightIsObject) {
|
|
306
|
+
if (hasNonOverlappingProperties(leftStyle, filteredRightStyle)) {
|
|
307
|
+
result.style = [leftStyle, filteredRightStyle];
|
|
308
|
+
} else {
|
|
309
|
+
// All left properties are in right, right overrides
|
|
310
|
+
result.style = filteredRightStyle;
|
|
311
|
+
}
|
|
312
|
+
} else {
|
|
313
|
+
// One or both are arrays, merge them
|
|
314
|
+
result.style = [leftStyle, filteredRightStyle];
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
} else {
|
|
318
|
+
// No left style, just use filtered right
|
|
319
|
+
if (filteredRightStyle) {
|
|
320
|
+
result.style = filteredRightStyle;
|
|
321
|
+
} else {
|
|
322
|
+
// All filtered out, remove style prop
|
|
323
|
+
delete result.style;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
} else if (!rightIsInline && right?.style) {
|
|
327
|
+
// Merging non-inline styles (e.g., important styles)
|
|
328
|
+
if (left?.style) {
|
|
329
|
+
// If left.style is an array, append right.style
|
|
330
|
+
if (Array.isArray(left.style)) {
|
|
331
|
+
const combined = [...left.style, right.style];
|
|
332
|
+
result.style = flattenStyleArray(combined);
|
|
333
|
+
} else if (typeof left.style === "object" && typeof right.style === "object") {
|
|
334
|
+
// Both are objects, check for overlaps
|
|
335
|
+
if (hasNonOverlappingProperties(left.style, right.style)) {
|
|
336
|
+
result.style = flattenStyleArray([left.style, right.style]);
|
|
337
|
+
} else {
|
|
338
|
+
// All left properties are overridden by right
|
|
339
|
+
result.style = right.style;
|
|
340
|
+
}
|
|
341
|
+
} else {
|
|
342
|
+
// One or both are arrays/mixed types
|
|
343
|
+
const combined = [left.style, right.style];
|
|
344
|
+
result.style = flattenStyleArray(combined);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
} else {
|
|
349
|
+
result = mergeDefinedProps(left, right);
|
|
350
|
+
}
|
|
351
|
+
} else {
|
|
352
|
+
result = mergeDefinedProps(left, right);
|
|
353
|
+
}
|
|
70
354
|
if (right && rightIsInline && config.source in right && config.target !== config.source) {
|
|
71
355
|
delete result[config.source];
|
|
72
356
|
}
|
|
@@ -74,42 +358,112 @@ function deepMergeConfig(config, left, right, rightIsInline = false) {
|
|
|
74
358
|
/**
|
|
75
359
|
* If target is a path, deep merge until we get to the last key
|
|
76
360
|
*/
|
|
77
|
-
if (Array.isArray(config.target)
|
|
78
|
-
|
|
79
|
-
const key = config.target[
|
|
80
|
-
if (key === undefined) {
|
|
81
|
-
return result;
|
|
82
|
-
}
|
|
361
|
+
if (Array.isArray(config.target)) {
|
|
362
|
+
if (config.target.length > 1) {
|
|
363
|
+
const key = config.target[0];
|
|
83
364
|
result[key] = deepMergeConfig({
|
|
84
365
|
source: config.source,
|
|
85
|
-
target: config.target.slice(
|
|
366
|
+
target: config.target.slice(1)
|
|
86
367
|
}, left?.[key], right?.[key], rightIsInline);
|
|
87
368
|
}
|
|
369
|
+
|
|
370
|
+
// For length-1 array targets (e.g. ["contentContainerStyle"]), the loop
|
|
371
|
+
// above runs 0 iterations. Merge the target prop so inline styles don't
|
|
372
|
+
// silently overwrite className-computed styles (same as string target path).
|
|
373
|
+
const finalKey = config.target[config.target.length - 1];
|
|
374
|
+
if (config.target.length === 1 && finalKey && rightIsInline) {
|
|
375
|
+
let rightValue = right?.[finalKey];
|
|
376
|
+
if (rightValue !== undefined) {
|
|
377
|
+
rightValue = filterCssVariables(rightValue);
|
|
378
|
+
}
|
|
379
|
+
if (rightValue === undefined || rightValue === null) {
|
|
380
|
+
// Inline is empty or fully filtered — preserve className-computed value
|
|
381
|
+
if (left && finalKey in left) {
|
|
382
|
+
result[finalKey] = left[finalKey];
|
|
383
|
+
} else {
|
|
384
|
+
// No left value either — remove unfiltered inline value from result
|
|
385
|
+
delete result[finalKey];
|
|
386
|
+
}
|
|
387
|
+
} else if (left && finalKey in left) {
|
|
388
|
+
const leftValue = left[finalKey];
|
|
389
|
+
const leftIsObj = typeof leftValue === "object" && leftValue !== null && !Array.isArray(leftValue);
|
|
390
|
+
const rightIsObj = typeof rightValue === "object" && rightValue !== null && !Array.isArray(rightValue);
|
|
391
|
+
if (leftIsObj && rightIsObj) {
|
|
392
|
+
if (hasNonOverlappingProperties(leftValue, rightValue)) {
|
|
393
|
+
result[finalKey] = [leftValue, rightValue];
|
|
394
|
+
} else {
|
|
395
|
+
// All left keys are in right — use filtered right value
|
|
396
|
+
result[finalKey] = rightValue;
|
|
397
|
+
}
|
|
398
|
+
} else {
|
|
399
|
+
result[finalKey] = [leftValue, rightValue];
|
|
400
|
+
}
|
|
401
|
+
} else {
|
|
402
|
+
// No left value — use filtered right value (not the unfiltered one from mergeDefinedProps)
|
|
403
|
+
result[finalKey] = rightValue;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
88
406
|
return result;
|
|
89
407
|
}
|
|
90
|
-
const target =
|
|
91
|
-
if (target === undefined) {
|
|
408
|
+
const target = config.target;
|
|
409
|
+
if (target === undefined || target === false) {
|
|
92
410
|
return result;
|
|
93
411
|
}
|
|
94
412
|
let rightValue = right?.[target];
|
|
95
413
|
|
|
96
414
|
// Strip any inline variables from the target
|
|
97
|
-
if (rightIsInline && rightValue) {
|
|
98
|
-
|
|
99
|
-
rightValue = rightValue.filter(v => {
|
|
100
|
-
return typeof v !== "object" || !(v && _reactivity.VAR_SYMBOL in v);
|
|
101
|
-
});
|
|
102
|
-
if (rightValue.length === 0) {
|
|
103
|
-
rightValue = undefined;
|
|
104
|
-
}
|
|
105
|
-
} else if (typeof rightValue === "object" && rightValue && _reactivity.VAR_SYMBOL in rightValue) {
|
|
106
|
-
rightValue = undefined;
|
|
107
|
-
delete result[target][_reactivity.VAR_SYMBOL];
|
|
108
|
-
}
|
|
415
|
+
if (rightIsInline && rightValue !== undefined) {
|
|
416
|
+
rightValue = filterCssVariables(rightValue);
|
|
109
417
|
}
|
|
110
418
|
if (rightValue !== undefined) {
|
|
111
419
|
result[target] = left && target in left ? [left[target], rightValue] : rightValue;
|
|
112
420
|
}
|
|
113
421
|
return result;
|
|
114
422
|
}
|
|
423
|
+
function nativeStyleMapping(config, props) {
|
|
424
|
+
if (!props) {
|
|
425
|
+
return props;
|
|
426
|
+
}
|
|
427
|
+
if (!config.nativeStyleMapping) {
|
|
428
|
+
if (config.target === false) delete props.style;
|
|
429
|
+
return props;
|
|
430
|
+
}
|
|
431
|
+
let source;
|
|
432
|
+
if (typeof config.target === "string") {
|
|
433
|
+
source = props[config.target];
|
|
434
|
+
} else if (config.target === false) {
|
|
435
|
+
source = props["style"];
|
|
436
|
+
} else {
|
|
437
|
+
const tokens = [...config.target];
|
|
438
|
+
const lastToken = tokens.pop();
|
|
439
|
+
source = props;
|
|
440
|
+
for (const token of tokens) {
|
|
441
|
+
source = source[token];
|
|
442
|
+
if (!source) {
|
|
443
|
+
return props;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
source = source[lastToken];
|
|
447
|
+
}
|
|
448
|
+
if (!source) {
|
|
449
|
+
return props;
|
|
450
|
+
}
|
|
451
|
+
for (const [key, path] of Object.entries(config.nativeStyleMapping)) {
|
|
452
|
+
const styleValue = source[key];
|
|
453
|
+
delete source[key];
|
|
454
|
+
if (styleValue === undefined) {
|
|
455
|
+
continue;
|
|
456
|
+
}
|
|
457
|
+
let target = props;
|
|
458
|
+
const tokens = path.split(".");
|
|
459
|
+
const lastToken = tokens.pop();
|
|
460
|
+
for (const token of tokens) {
|
|
461
|
+
target[token] ??= {};
|
|
462
|
+
target = target[token];
|
|
463
|
+
}
|
|
464
|
+
target[lastToken] = styleValue;
|
|
465
|
+
}
|
|
466
|
+
if (config.target === false) delete props.style;
|
|
467
|
+
return props;
|
|
468
|
+
}
|
|
115
469
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_utilities","require","_interaction","_reactivity","_calculateProps","stylesFamily","exports","family","hash","rules","sortedRules","Array","from","sort","specificityCompareFn","obs","observable","read","calculateProps","Object","assign","cleanup","effect","observers","delete","size","getStyledProps","state","inline","result","styledProps","stylesObs","get","styleEffect","config","configs","deepMergeConfig","normal","important","hoverFamily","has","ruleEffectGetter","onHoverIn","getInteractionHandler","onHoverOut","activeFamily","onPress","onPressIn","onPressOut","focusFamily","onBlur","onFocus","containerLayoutFamily","onLayout","left","right","rightIsInline","target","source","isArray","length","i","key","undefined","slice","rightValue","filter","v","VAR_SYMBOL"],"sourceRoot":"../../../../src","sources":["native/styles/index.ts"],"mappings":";;;;;;;AAEA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,WAAA,GAAAF,OAAA;AAWA,IAAAG,eAAA,GAAAH,OAAA;AAjBA;;AAmBO,MAAMI,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG,IAAAE,kBAAM,EAChC,CACEC,IAAY,EACZC,KAA6D,KAC1D;EACH,MAAMC,WAAW,GAAGC,KAAK,CAACC,IAAI,CAACH,KAAK,CAAC,CAACI,IAAI,CAACC,+BAAoB,CAAC;EAEhE,MAAMC,GAAG,GAA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AAU,GAAGV,KAAK,GAAGE,MAAM,CAAC;;EAEhC;EACA,IAAID,aAAa,IAAIS,UAAU,EAAE;IAC/B,IAAItD,KAAK,CAACgD,OAAO,CAACM,UAAU,CAAC,EAAE;MAC7BA,UAAU,GAAGA,UAAU,CAACC,MAAM,CAAEC,CAAC,IAAK;QACpC,OAAO,OAAOA,CAAC,KAAK,QAAQ,IAAI,EAAEA,CAAC,IAAIC,sBAAU,IAAID,CAAC,CAAC;MACzD,CAAC,CAAC;MAEF,IAAIF,UAAU,CAACL,MAAM,KAAK,CAAC,EAAE;QAC3BK,UAAU,GAAGF,SAAS;MACxB;IACF,CAAC,MAAM,IACL,OAAOE,UAAU,KAAK,QAAQ,IAC9BA,UAAU,IACVG,sBAAU,IAAIH,UAAU,EACxB;MACAA,UAAU,GAAGF,SAAS;MACtB,OAAOlC,MAAM,CAAC4B,MAAM,CAAC,CAACW,sBAAU,CAAC;IACnC;EACF;EAEA,IAAIH,UAAU,KAAKF,SAAS,EAAE;IAC5BlC,MAAM,CAAC4B,MAAM,CAAC,GACZH,IAAI,IAAIG,MAAM,IAAIH,IAAI,GAAG,CAACA,IAAI,CAACG,MAAM,CAAC,EAAEQ,UAAU,CAAC,GAAGA,UAAU;EACpE;EAEA,OAAOpC,MAAM;AACf","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_utilities","require","_interaction","_reactivity","_calculateProps","hasNonOverlappingProperties","left","right","key","Object","prototype","hasOwnProperty","call","flattenStyleArray","styleArray","item","Array","isArray","VAR_SYMBOL","reduce","acc","assign","filterCssVariables","value","depth","undefined","filtered","filteredItem","push","length","hasProperties","keys","filteredValue","stylesFamily","exports","family","hash","rules","sortedRules","from","sort","specificityCompareFn","obs","observable","read","calculateProps","unsubscribe","effect","observers","size","delete","getStyledProps","state","inline","adaptProps","props","result","styledProps","stylesObs","get","styleEffect","computedTargets","consumedSources","config","configs","deepMergeConfig","nativeStyleMapping","normal","important","target","path","slice","source","hoverFamily","has","ruleEffectGetter","onHoverIn","getInteractionHandler","onHoverOut","activeFamily","onPress","onPressIn","onPressOut","focusFamily","onBlur","onFocus","containerLayoutFamily","onLayout","existing","mergeDefinedProps","_","rightIsInline","style","filteredRightStyle","leftStyle","leftIsObject","rightIsObject","combined","finalKey","rightValue","leftValue","leftIsObj","rightIsObj","tokens","lastToken","pop","token","entries","styleValue","split"],"sourceRoot":"../../../../src","sources":["native/styles/index.ts"],"mappings":";;;;;;;AAEA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,WAAA,GAAAF,OAAA;AAWA,IAAAG,eAAA,GAAAH,OAAA;AAjBA;;AAmBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASI,2BAA2BA,CAClCC,IAAyB,EACzBC,KAA0B,EACjB;EACT;EACA,IAAI,CAACD,IAAI,IAAI,CAACC,KAAK,EAAE;IACnB,OAAO,KAAK;EACd;;EAEA;EACA,KAAK,MAAMC,GAAG,IAAIF,IAAI,EAAE;IACtB,IAAIG,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACN,IAAI,EAAEE,GAAG,CAAC,EAAE;MACnD,IAAI,CAACC,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACL,KAAK,EAAEC,GAAG,CAAC,EAAE;QACrD,OAAO,IAAI;MACb;IACF;EACF;EACA,OAAO,KAAK;AACd;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASK,iBAAiBA,CAACC,UAAiB,EAAO;EACjD;EACA,KAAK,MAAMC,IAAI,IAAID,UAAU,EAAE;IAC7B;IACA,IACEC,IAAI,IAAI,IAAI,IACZ,OAAOA,IAAI,KAAK,QAAQ,IACxBC,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,IACnBN,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACG,IAAI,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C,KAAK,CAAC,CAAC;MACpBrC,MAAM,GAAGA,MAAM,CAACqC,KAAK,CAAC;IACxB;IAEArC,MAAM,CAACmC,SAAS,CAAE,GAAGI,UAAU;EACjC;EAEA,IAAI7C,MAAM,CAACM,MAAM,KAAK,KAAK,EAAE,OAAOd,KAAK,CAACqC,KAAK;EAC/C,OAAOrC,KAAK;AACd","ignoreList":[]}
|
|
@@ -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");
|
|
@@ -42,7 +44,7 @@ function resolveValue(value, get, options) {
|
|
|
42
44
|
return null;
|
|
43
45
|
} else if (value.endsWith("px")) {
|
|
44
46
|
// Inline vars() might set a value with a px suffix
|
|
45
|
-
return
|
|
47
|
+
return parseFloat(value.slice(0, -2));
|
|
46
48
|
} else {
|
|
47
49
|
return value;
|
|
48
50
|
}
|
|
@@ -52,7 +54,7 @@ function resolveValue(value, get, options) {
|
|
|
52
54
|
if (!Array.isArray(value)) {
|
|
53
55
|
return value;
|
|
54
56
|
}
|
|
55
|
-
if (
|
|
57
|
+
if ((0, _utilities.isStyleDescriptorArray)(value)) {
|
|
56
58
|
value = value.map(d => resolveValue(d, get, options)).filter(d => d !== undefined);
|
|
57
59
|
if (castToArray && !Array.isArray(value)) {
|
|
58
60
|
return [value];
|
|
@@ -74,8 +76,13 @@ function resolveValue(value, get, options) {
|
|
|
74
76
|
value = fn(simpleResolve, value, get, options);
|
|
75
77
|
} else if (_defaults.transformKeys.has(name)) {
|
|
76
78
|
// translate, rotate, scale, etc.
|
|
79
|
+
let resolved = simpleResolve(value[2], castToArray);
|
|
80
|
+
// CSS scale percentages describe a factor, unlike translation percentages.
|
|
81
|
+
if ((name === "scaleX" || name === "scaleY" || name === "scale") && typeof resolved === "string" && resolved.endsWith("%")) {
|
|
82
|
+
resolved = (0, _scaleFactor.scaleFactor)(resolved);
|
|
83
|
+
}
|
|
77
84
|
return {
|
|
78
|
-
[name]:
|
|
85
|
+
[name]: resolved
|
|
79
86
|
};
|
|
80
87
|
} else {
|
|
81
88
|
let args = simpleResolve(value[2], castToArray);
|
|
@@ -101,7 +108,4 @@ function resolveValue(value, get, options) {
|
|
|
101
108
|
}
|
|
102
109
|
}
|
|
103
110
|
}
|
|
104
|
-
function isDescriptorArray(value) {
|
|
105
|
-
return Array.isArray(value) && typeof value[0] === "object" ? Array.isArray(value[0]) : true;
|
|
106
|
-
}
|
|
107
111
|
//# 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","castToArray","endsWith","parseFloat","slice","Array","isArray","isStyleDescriptorArray","map","d","filter","undefined","name","simpleResolve","varResolver","fn","Error","transformKeys","resolved","scaleFactor","args","joinedArgs","arg","flat","join","replace"],"sourceRoot":"../../../../src","sources":["native/styles/resolve.ts"],"mappings":";;;;;;AAOA,IAAAA,UAAA,GAAAC,OAAA;AAKA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAC,uBAAA,CAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OA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AAE;gBACtB,OAAOA,GAAG,CAACC,IAAI,CAAC,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;cAC7B;cACA,OAAOF,GAAG;YACZ,CAAC,CAAC,CACDZ,MAAM,CAAEX,KAAK,IAAKA,KAAK,KAAK,GAAG,CAAC,CAChCyB,IAAI,CAAC,IAAI,CAAC;YAEb,IAAIZ,IAAI,KAAK,iBAAiB,EAAE;cAC9B;cACAS,UAAU,GAAGA,UAAU,CAACI,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC;YACnD;YAEA1B,KAAK,GAAG,GAAGa,IAAI,IAAIS,UAAU,GAAG;UAClC,CAAC,MAAM;YACLtB,KAAK,GAAG,GAAGa,IAAI,IAAIQ,IAAI,GAAG;UAC5B;QACF;QAEA,OAAOnB,WAAW,IAAIF,KAAK,IAAI,CAACM,KAAK,CAACC,OAAO,CAACP,KAAK,CAAC,GAAG,CAACA,KAAK,CAAC,GAAGA,KAAK;MACxE;EACF;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.scaleFactor = scaleFactor;
|
|
7
|
+
function scaleFactor(value) {
|
|
8
|
+
if (typeof value === "string" && value.endsWith("%")) {
|
|
9
|
+
return Number(value.slice(0, -1)) / 100;
|
|
10
|
+
}
|
|
11
|
+
return value;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=scale-factor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["scaleFactor","value","endsWith","Number","slice"],"sourceRoot":"../../../../src","sources":["native/styles/scale-factor.ts"],"mappings":";;;;;;AAAO,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":[]}
|
|
@@ -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"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