react-native-css 0.0.0-nightly.d6f42ab → 0.0.0-nightly.df32ce3
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 +29 -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 +107 -32
- 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 +149 -57
- 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 +15 -4
- package/dist/commonjs/compiler/selector-builder.js.map +1 -1
- package/dist/commonjs/compiler/stylesheet.js +16 -3
- 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 +16 -3
- 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/metro/warnings.js +135 -0
- package/dist/commonjs/metro/warnings.js.map +1 -0
- package/dist/commonjs/native/api.js +13 -9
- 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 +61 -24
- package/dist/commonjs/native/reactivity.js.map +1 -1
- package/dist/commonjs/native/reanimated.js +15 -3
- package/dist/commonjs/native/reanimated.js.map +1 -1
- package/dist/commonjs/native/styles/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/root.js +18 -7
- package/dist/commonjs/native-internal/root.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/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/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/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 +109 -34
- package/dist/module/compiler/compiler.js.map +1 -1
- package/dist/module/compiler/compiler.types.js +2 -0
- package/dist/module/compiler/compiler.types.js.map +1 -1
- package/dist/module/compiler/container-query.js +6 -1
- package/dist/module/compiler/container-query.js.map +1 -1
- package/dist/module/compiler/declarations.js +148 -57
- 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 +15 -4
- package/dist/module/compiler/selector-builder.js.map +1 -1
- package/dist/module/compiler/stylesheet.js +16 -3
- 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 +16 -3
- 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/metro/warnings.js +131 -0
- package/dist/module/metro/warnings.js.map +1 -0
- package/dist/module/native/api.js +15 -11
- 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 +55 -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/root.js +18 -7
- package/dist/module/native-internal/root.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/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/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/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 +6 -0
- package/dist/typescript/commonjs/src/compiler/compiler.types.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 +7 -8
- 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/jest/index.d.ts +2 -10
- package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/cache-version.d.ts +8 -0
- package/dist/typescript/commonjs/src/metro/cache-version.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/index.d.ts +4 -0
- package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts +9 -4
- package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/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 +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 +14 -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/root.d.ts +12 -0
- package/dist/typescript/commonjs/src/native-internal/root.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/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 +7 -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 +7 -8
- 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/jest/index.d.ts +2 -10
- package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/cache-version.d.ts +8 -0
- package/dist/typescript/module/src/metro/cache-version.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/index.d.ts +5 -1
- package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/metro-transformer.d.ts +10 -5
- package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/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 +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 +14 -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 +13 -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/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 +159 -43
- package/src/compiler/compiler.types.ts +9 -0
- package/src/compiler/container-query.ts +8 -3
- package/src/compiler/declarations.ts +280 -95
- package/src/compiler/lightningcss-loader.ts +21 -1
- package/src/compiler/media-query.ts +20 -9
- package/src/compiler/selector-builder.ts +31 -4
- package/src/compiler/stylesheet.ts +23 -10
- 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 +7 -0
- package/src/metro/metro-transformer.ts +26 -8
- package/src/metro/typescript.ts +53 -6
- package/src/metro/warnings.ts +187 -0
- package/src/native/api.tsx +22 -17
- 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 +76 -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/root.ts +40 -13
- package/src/native-internal/style-collection.ts +1 -1
- package/src/native-internal/variables.tsx +6 -4
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["isStyleDescriptorArray","shorthandHandler","blur","resolveValue","value","args","Array","isArray","brightness","contrast","grayscale","hueRotate","invert","sepia","saturate","opacity","color","offsetX","offsetY","
|
|
1
|
+
{"version":3,"names":["isStyleDescriptorArray","shorthandHandler","blur","resolveValue","value","args","Array","isArray","brightness","contrast","grayscale","hueRotate","invert","sepia","saturate","opacity","color","offsetX","offsetY","standardDeviation","handler","dropShadow","func","get","options","undefined","filter","descriptor","filters","flat","Infinity","entry"],"sourceRoot":"../../../../../src","sources":["native/styles/functions/filters.ts"],"mappings":";;AAAA,SAASA,sBAAsB,QAAQ,4BAA4B;AAGnE,SAASC,gBAAgB,QAAQ,2BAAwB;AAEzD,OAAO,MAAMC,IAA2B,GAAGA,CAACC,YAAY,EAAEC,KAAK,KAAK;EAClE,MAAMC,IAAI,GAAGF,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EACnC,OAAO;IACLF,IAAI,EAAGI,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,GAAGA,IAAI,CAAC,CAAC,CAAC,GAAGA;EACzC,CAAC;AACH,CAAC;AAED,OAAO,MAAMG,UAAiC,GAAGA,CAACL,YAAY,EAAEC,KAAK,KAAK;EACxE,MAAMC,IAAI,GAAGF,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EACnC,OAAO;IACLI,UAAU,EAAGF,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,GAAGA,IAAI,CAAC,CAAC,CAAC,GAAGA;EAC/C,CAAC;AACH,CAAC;AAED,OAAO,MAAMI,QAA+B,GAAGA,CAACN,YAAY,EAAEC,KAAK,KAAK;EACtE,MAAMC,IAAI,GAAGF,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EACnC,OAAO;IACLK,QAAQ,EAAGH,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,GAAGA,IAAI,CAAC,CAAC,CAAC,GAAGA;EAC7C,CAAC;AACH,CAAC;AAED,OAAO,MAAMK,SAAgC,GAAGA,CAACP,YAAY,EAAEC,KAAK,KAAK;EACvE,MAAMC,IAAI,GAAGF,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EACnC,OAAO;IACLM,SAAS,EAAGJ,KAAK,CAACC,OAAO,CAACF,IAAI,CA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,IAAIrB,KAAK,CAACC,OAAO,CAACH,KAAK,CAAC,EAAE;IACxB,MAAMwB,OAAkB,GAAGxB,KAAK,CAACyB,IAAI,CAACC,QAAQ,CAAC;IAC/C,OAAOF,OAAO,CAACF,MAAM,CAClBK,KAAK,IAAKA,KAAK,KAAKN,SAAS,IAAIM,KAAK,KAAK,SAC9C,CAAC;EACH;EACA,IAAI3B,KAAK,KAAKqB,SAAS,IAAIrB,KAAK,KAAK,SAAS,EAAE;EAChD,IAAIA,KAAK,KAAK,MAAM,EAAE,OAAO,IAAI;EACjC,OAAO,OAAOA,KAAK,KAAK,QAAQ,GAAGA,KAAK,GAAG,CAACA,KAAK,CAAC;AACpD,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["native/styles/functions/index.ts"],"mappings":";;AAAA,cAAc,uBAAoB;AAClC,cAAc,WAAQ;AACtB,cAAc,cAAW;AACzB,cAAc,wBAAqB;AACnC,cAAc,yBAAsB;AACpC,cAAc,uBAAoB;AAClC,cAAc,0BAAuB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["native/styles/functions/index.ts"],"mappings":";;AAAA,cAAc,uBAAoB;AAClC,cAAc,WAAQ;AACtB,cAAc,cAAW;AACzB,cAAc,wBAAqB;AACnC,cAAc,yBAAsB;AACpC,cAAc,uBAAoB;AAClC,cAAc,0BAAuB;AACrC,cAAc,gBAAa","ignoreList":[]}
|
|
@@ -16,10 +16,11 @@ export const min = (resolveValue, value) => {
|
|
|
16
16
|
};
|
|
17
17
|
export const clamp = (resolveValue, value) => {
|
|
18
18
|
const args = resolveValue(value[2]);
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
if (!Array.isArray(args)) return;
|
|
20
|
+
const [minimum, preferred, maximum] = args;
|
|
21
|
+
if (typeof minimum !== "number" || typeof preferred !== "number" || typeof maximum !== "number") {
|
|
21
22
|
return;
|
|
22
23
|
}
|
|
23
|
-
return Math.
|
|
24
|
+
return Math.max(minimum, Math.min(preferred, maximum));
|
|
24
25
|
};
|
|
25
26
|
//# sourceMappingURL=numeric-functions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["max","resolveValue","value","args","Array","isArray","some","arg","Math","min","clamp","
|
|
1
|
+
{"version":3,"names":["max","resolveValue","value","args","Array","isArray","some","arg","Math","min","clamp","minimum","preferred","maximum"],"sourceRoot":"../../../../../src","sources":["native/styles/functions/numeric-functions.ts"],"mappings":";;AAEA,OAAO,MAAMA,GAA0B,GAAGA,CAACC,YAAY,EAAEC,KAAK,KAAK;EACjE,MAAMC,IAAI,GAAGF,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EAEnC,IAAI,CAACE,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,IAAIA,IAAI,CAACG,IAAI,CAAEC,GAAG,IAAK,OAAOA,GAAG,KAAK,QAAQ,CAAC,EAAE;IACvE;EACF;EAEA,OAAOC,IAAI,CAACR,GAAG,CAAC,GAAIG,IAAiB,CAAC;AACxC,CAAC;AAED,OAAO,MAAMM,GAA0B,GAAGA,CAACR,YAAY,EAAEC,KAAK,KAAK;EACjE,MAAMC,IAAI,GAAGF,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EAEnC,IAAI,CAACE,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,IAAIA,IAAI,CAACG,IAAI,CAAEC,GAAG,IAAK,OAAOA,GAAG,KAAK,QAAQ,CAAC,EAAE;IACvE;EACF;EAEA,OAAOC,IAAI,CAACC,GAAG,CAAC,GAAIN,IAAiB,CAAC;AACxC,CAAC;AAED,OAAO,MAAMO,KAA4B,GAAGA,CAACT,YAAY,EAAEC,KAAK,KAAK;EACnE,MAAMC,IAAI,GAAGF,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EAEnC,IAAI,CAACE,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,EAAE;EAE1B,MAAM,CAACQ,OAAO,EAAEC,SAAS,EAAEC,OAAO,CAAC,GAAGV,IAAiB;EAEvD,IACE,OAAOQ,OAAO,KAAK,QAAQ,IAC3B,OAAOC,SAAS,KAAK,QAAQ,IAC7B,OAAOC,OAAO,KAAK,QAAQ,EAC3B;IACA;EACF;EAEA,OAAOL,IAAI,CAACR,GAAG,CAACW,OAAO,EAAEH,IAAI,CAACC,GAAG,CAACG,SAAS,EAAEC,OAAO,CAAC,CAAC;AACxD,CAAC","ignoreList":[]}
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
export const gradientPosition = (resolveValue, value) => {
|
|
4
|
+
const position = resolveValue(value[2]);
|
|
5
|
+
return typeof position === "number" ? `${position}px` : position;
|
|
6
|
+
};
|
|
7
|
+
export const colorStop = (resolveValue, value) => {
|
|
8
|
+
const args = resolveValue(value[2]);
|
|
9
|
+
if (!Array.isArray(args)) return args;
|
|
10
|
+
const [color, position] = args;
|
|
11
|
+
if (typeof color !== "string") return;
|
|
12
|
+
if (position === undefined) return color;
|
|
13
|
+
if (typeof position !== "number" && typeof position !== "string") return;
|
|
14
|
+
return `${color} ${typeof position === "number" ? `${position}px` : position}`;
|
|
15
|
+
};
|
|
3
16
|
export const join = (resolveValue, value) => {
|
|
4
17
|
const args = resolveValue(value[2]);
|
|
5
18
|
if (!Array.isArray(args)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["gradientPosition","resolveValue","value","position","colorStop","args","Array","isArray","color","undefined","join","array","separator"],"sourceRoot":"../../../../../src","sources":["native/styles/functions/string-functions.ts"],"mappings":";;AAEA,OAAO,MAAMA,gBAAuC,GAAGA,CACrDC,YAAY,EACZC,KAAK,KACF;EACH,MAAMC,QAAQ,GAAGF,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EACvC,OAAO,OAAOC,QAAQ,KAAK,QAAQ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 -1,15 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { isStyleDescriptorArray } from "react-native-css/utilities";
|
|
4
|
+
import { scaleFactor } from "../scale-factor.js";
|
|
4
5
|
export const scale = (resolveValue, descriptor) => {
|
|
5
6
|
const args = descriptor[2];
|
|
6
7
|
if (!isStyleDescriptorArray(args)) {
|
|
7
8
|
return {
|
|
8
|
-
scale: resolveValue(args)
|
|
9
|
+
scale: scaleFactor(resolveValue(args))
|
|
9
10
|
};
|
|
10
11
|
}
|
|
11
|
-
const x = resolveValue(args[0]);
|
|
12
|
-
const y = resolveValue(args[1]);
|
|
12
|
+
const x = scaleFactor(resolveValue(args[0]));
|
|
13
|
+
const y = scaleFactor(resolveValue(args[1]));
|
|
13
14
|
const isXValid = typeof x === "string" || typeof x === "number";
|
|
14
15
|
const isYValid = typeof y === "string" || typeof y === "number";
|
|
15
16
|
if (isXValid && isYValid) {
|
|
@@ -22,7 +23,7 @@ export const scale = (resolveValue, descriptor) => {
|
|
|
22
23
|
}];
|
|
23
24
|
} else if (isXValid) {
|
|
24
25
|
return {
|
|
25
|
-
|
|
26
|
+
scale: x
|
|
26
27
|
};
|
|
27
28
|
} else if (isYValid) {
|
|
28
29
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["isStyleDescriptorArray","scale","resolveValue","descriptor","args","x","y","isXValid","isYValid","scaleX","scaleY","rotate","z","isZValid","rotateX","rotateY","rotateZ","translate","translateX","translateY"],"sourceRoot":"../../../../../src","sources":["native/styles/functions/transform-functions.ts"],"mappings":";;AAAA,SAASA,sBAAsB,QAAQ,4BAA4B;
|
|
1
|
+
{"version":3,"names":["isStyleDescriptorArray","scaleFactor","scale","resolveValue","descriptor","args","x","y","isXValid","isYValid","scaleX","scaleY","rotate","z","isZValid","rotateX","rotateY","rotateZ","translate","translateX","translateY"],"sourceRoot":"../../../../../src","sources":["native/styles/functions/transform-functions.ts"],"mappings":";;AAAA,SAASA,s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AAE,CAAC;EACvB,CAAC,MAAM,IAAIG,QAAQ,EAAE;IACnB,OAAO;MAAEO,OAAO,EAAET;IAAE,CAAC;EACvB,CAAC,MAAM,IAAIO,QAAQ,EAAE;IACnB,OAAO;MAAEG,OAAO,EAAEJ;IAAE,CAAC;EACvB;EAEA;AACF,CAAC;AAED,OAAO,MAAMK,SAAgC,GAAGA,CAACf,YAAY,EAAEC,UAAU,KAAK;EAC5E,MAAMC,IAAI,GAAGD,UAAU,CAAC,CAAC,CAAC;EAE1B,IAAI,CAACJ,sBAAsB,CAACK,IAAI,CAAC,EAAE;IACjC;EACF;EAEA,MAAMC,CAAC,GAAGH,YAAY,CAACE,IAAI,CAAC,CAAC,CAAC,CAAC;EAC/B,MAAME,CAAC,GAAGJ,YAAY,CAACE,IAAI,CAAC,CAAC,CAAC,CAAC;EAE/B,MAAMG,QAAQ,GAAG,OAAOF,CAAC,KAAK,QAAQ,IAAI,OAAOA,CAAC,KAAK,QAAQ;EAC/D,MAAMG,QAAQ,GAAG,OAAOF,CAAC,KAAK,QAAQ,IAAI,OAAOA,CAAC,KAAK,QAAQ;EAE/D,IAAIC,QAAQ,IAAIC,QAAQ,EAAE;IACxB,OAAO,CAAC;MAAEU,UAAU,EAAEb;IAAE,CAAC,EAAE;MAAEc,UAAU,EAAEb;IAAE,CAAC,CAAC;EAC/C,CAAC,MAAM,IAAIC,QAAQ,EAAE;IACnB,OAAO;MAAEW,UAAU,EAAEb;IAAE,CAAC;EAC1B,CAAC,MAAM,IAAIG,QAAQ,EAAE;IACnB,OAAO;MAAEW,UAAU,EAAEb;IAAE,CAAC;EAC1B;EAEA;AACF,CAAC","ignoreList":[]}
|
|
@@ -6,6 +6,127 @@ import { specificityCompareFn } from "react-native-css/utilities";
|
|
|
6
6
|
import { getInteractionHandler } from "../react/interaction.js";
|
|
7
7
|
import { activeFamily, containerLayoutFamily, family, focusFamily, hoverFamily, observable, VAR_SYMBOL } from "../reactivity.js";
|
|
8
8
|
import { calculateProps } from "./calculate-props.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Checks if the left style object has any properties that are not present in the right style object.
|
|
12
|
+
* This is used to determine if styles need to be preserved in an array or if right can completely override left.
|
|
13
|
+
*
|
|
14
|
+
* Note: This intentionally only checks one direction (left → right). We don't need to check if right has
|
|
15
|
+
* properties that left doesn't have, because right will always be applied/merged. The question we're
|
|
16
|
+
* answering is: "Does left have any properties that would be lost if we just used right?" If yes, we
|
|
17
|
+
* create a style array [left, right] to preserve both. If no, right can safely replace left entirely.
|
|
18
|
+
*
|
|
19
|
+
* @param left - The left style object to check
|
|
20
|
+
* @param right - The right style object to compare against
|
|
21
|
+
* @returns true if left has at least one property key that doesn't exist in right, false otherwise
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* hasNonOverlappingProperties({color: 'red', fontSize: 12}, {color: 'blue'}) // true - fontSize is not in right
|
|
25
|
+
* hasNonOverlappingProperties({color: 'red'}, {color: 'blue', fontSize: 12}) // false - all left keys exist in right
|
|
26
|
+
*/
|
|
27
|
+
function hasNonOverlappingProperties(left, right) {
|
|
28
|
+
// Null safety check
|
|
29
|
+
if (!left || !right) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Only check own properties to avoid prototype pollution
|
|
34
|
+
for (const key in left) {
|
|
35
|
+
if (Object.prototype.hasOwnProperty.call(left, key)) {
|
|
36
|
+
if (!Object.prototype.hasOwnProperty.call(right, key)) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Flattens a style array into a single object when possible, with rightmost values taking precedence.
|
|
46
|
+
* Returns the original array if it contains any non-plain objects, arrays, or CSS variable objects.
|
|
47
|
+
*
|
|
48
|
+
* Note: This function assumes the input array has already been filtered (e.g., by filterCssVariables),
|
|
49
|
+
* so empty arrays should not reach this function. If they do, they will be treated as non-flattenable.
|
|
50
|
+
*
|
|
51
|
+
* @param styleArray - The style array to potentially flatten
|
|
52
|
+
* @returns A single merged object if all items are plain objects, otherwise the original array
|
|
53
|
+
*/
|
|
54
|
+
function flattenStyleArray(styleArray) {
|
|
55
|
+
// Check if we can flatten to a single object (all items are plain objects)
|
|
56
|
+
for (const item of styleArray) {
|
|
57
|
+
// Use explicit null check instead of !item to allow falsy values like 0 or false
|
|
58
|
+
if (item == null || typeof item !== "object" || Array.isArray(item) || Object.prototype.hasOwnProperty.call(item, VAR_SYMBOL)) {
|
|
59
|
+
return styleArray;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Use reduce to avoid spread operator performance issues with large arrays
|
|
64
|
+
return styleArray.reduce((acc, item) => Object.assign(acc, item), {});
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Recursively filters out CSS variable objects (with VAR_SYMBOL) from style values.
|
|
69
|
+
* This prevents CSS variable runtime objects from leaking into React Native component props.
|
|
70
|
+
*
|
|
71
|
+
* @param value - The value to filter (can be any type: object, array, primitive, etc.)
|
|
72
|
+
* @param depth - Internal recursion depth counter to prevent stack overflow (max 100)
|
|
73
|
+
* @returns The filtered value with CSS variables removed, or `undefined` if the entire value
|
|
74
|
+
* should be filtered out (e.g., empty arrays, objects with only VAR_SYMBOL properties)
|
|
75
|
+
*
|
|
76
|
+
* Filtering behavior:
|
|
77
|
+
* - Objects with VAR_SYMBOL property: returns `undefined` (completely filtered)
|
|
78
|
+
* - Arrays: filters out VAR_SYMBOL objects, returns `undefined` if empty after filtering
|
|
79
|
+
* - Objects: recursively filters properties, returns `undefined` if no properties remain
|
|
80
|
+
* - Primitives (null, undefined, numbers, strings, booleans): returned as-is
|
|
81
|
+
* - Symbol properties: intentionally filtered out for React Native compatibility
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* filterCssVariables({fontSize: 16, color: {[VAR_SYMBOL]: true}}) // {fontSize: 16}
|
|
85
|
+
* filterCssVariables([{margin: 10}, {[VAR_SYMBOL]: true}]) // [{margin: 10}]
|
|
86
|
+
* filterCssVariables({color: {[VAR_SYMBOL]: true}}) // undefined (all props filtered)
|
|
87
|
+
*/
|
|
88
|
+
function filterCssVariables(value, depth = 0) {
|
|
89
|
+
// Prevent stack overflow on deeply nested structures
|
|
90
|
+
if (depth > 100) {
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
if (value === null || value === undefined) {
|
|
94
|
+
return value;
|
|
95
|
+
}
|
|
96
|
+
if (Array.isArray(value)) {
|
|
97
|
+
// Single-pass filter with map operation
|
|
98
|
+
const filtered = [];
|
|
99
|
+
for (const item of value) {
|
|
100
|
+
const filteredItem = filterCssVariables(item, depth + 1);
|
|
101
|
+
if (filteredItem !== undefined && !(typeof filteredItem === "object" && filteredItem !== null && Object.prototype.hasOwnProperty.call(filteredItem, VAR_SYMBOL))) {
|
|
102
|
+
filtered.push(filteredItem);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return filtered.length > 0 ? filtered : undefined;
|
|
106
|
+
}
|
|
107
|
+
if (typeof value === "object") {
|
|
108
|
+
// If the object itself has VAR_SYMBOL, filter it out (check own property only)
|
|
109
|
+
if (Object.prototype.hasOwnProperty.call(value, VAR_SYMBOL)) {
|
|
110
|
+
return undefined;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// Otherwise, filter VAR_SYMBOL properties from nested objects
|
|
114
|
+
const filtered = {};
|
|
115
|
+
let hasProperties = false;
|
|
116
|
+
|
|
117
|
+
// Use Object.keys to only iterate own string properties (not inherited, not Symbols)
|
|
118
|
+
// This intentionally filters out Symbol properties for React Native compatibility
|
|
119
|
+
for (const key of Object.keys(value)) {
|
|
120
|
+
const filteredValue = filterCssVariables(value[key], depth + 1);
|
|
121
|
+
if (filteredValue !== undefined) {
|
|
122
|
+
filtered[key] = filteredValue;
|
|
123
|
+
hasProperties = true;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return hasProperties ? filtered : undefined;
|
|
127
|
+
}
|
|
128
|
+
return value;
|
|
129
|
+
}
|
|
9
130
|
export const stylesFamily = family((hash, rules) => {
|
|
10
131
|
const sortedRules = Array.from(rules).sort(specificityCompareFn);
|
|
11
132
|
const obs = observable(read => calculateProps(read, sortedRules));
|
|
@@ -13,22 +134,45 @@ export const stylesFamily = family((hash, rules) => {
|
|
|
13
134
|
/**
|
|
14
135
|
* A family is a map, so we need to cleanup the observers when the the hash is no longer used
|
|
15
136
|
*/
|
|
137
|
+
const unsubscribe = obs.unsubscribe;
|
|
16
138
|
return Object.assign(obs, {
|
|
17
|
-
|
|
18
|
-
|
|
139
|
+
unsubscribe: effect => {
|
|
140
|
+
unsubscribe(effect);
|
|
19
141
|
if (obs.observers.size === 0) {
|
|
20
142
|
stylesFamily.delete(hash);
|
|
21
143
|
}
|
|
22
144
|
}
|
|
23
145
|
});
|
|
24
146
|
});
|
|
25
|
-
export function getStyledProps(state, inline) {
|
|
147
|
+
export function getStyledProps(state, inline, adaptProps = props => props) {
|
|
26
148
|
let result;
|
|
27
149
|
const styledProps = state.stylesObs?.get(state.styleEffect);
|
|
150
|
+
|
|
151
|
+
// Each config merges a complete props object. Preserve its full target path
|
|
152
|
+
// before the next config merges unrelated inline props over that object.
|
|
153
|
+
const computedTargets = [];
|
|
154
|
+
const consumedSources = [];
|
|
28
155
|
for (const config of state.configs) {
|
|
29
|
-
result = deepMergeConfig(config, styledProps?.normal, inline, true);
|
|
156
|
+
result = deepMergeConfig(config, nativeStyleMapping(config, adaptProps(styledProps?.normal)), inline, true);
|
|
30
157
|
if (styledProps?.important) {
|
|
31
|
-
result = deepMergeConfig(config, result, styledProps.important);
|
|
158
|
+
result = deepMergeConfig(config, result, nativeStyleMapping(config, adaptProps(styledProps.important)));
|
|
159
|
+
}
|
|
160
|
+
if (result && config.target) {
|
|
161
|
+
const path = Array.isArray(config.target) ? config.target : [config.target];
|
|
162
|
+
let target = result;
|
|
163
|
+
for (const key of path.slice(0, -1)) target = target?.[key];
|
|
164
|
+
const key = path[path.length - 1];
|
|
165
|
+
if (target && key && key in target) {
|
|
166
|
+
computedTargets.push({
|
|
167
|
+
path,
|
|
168
|
+
value: target[key]
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// Track consumed className sources for cleanup
|
|
174
|
+
if (config.source !== config.target) {
|
|
175
|
+
consumedSources.push(config.source);
|
|
32
176
|
}
|
|
33
177
|
|
|
34
178
|
// Apply the handlers
|
|
@@ -53,15 +197,156 @@ export function getStyledProps(state, inline) {
|
|
|
53
197
|
result.onLayout = getInteractionHandler(state.ruleEffectGetter, "onLayout", inline?.onLayout);
|
|
54
198
|
}
|
|
55
199
|
}
|
|
200
|
+
|
|
201
|
+
// Restore correctly-merged target props that may have been overwritten
|
|
202
|
+
// by later config iterations' Object.assign({}, left, right)
|
|
203
|
+
if (result) {
|
|
204
|
+
for (const {
|
|
205
|
+
path,
|
|
206
|
+
value
|
|
207
|
+
} of computedTargets) {
|
|
208
|
+
let target = result;
|
|
209
|
+
for (const key of path.slice(0, -1)) {
|
|
210
|
+
const existing = target[key];
|
|
211
|
+
target = target[key] = Array.isArray(existing) ? [...existing] : {
|
|
212
|
+
...existing
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
target[path[path.length - 1]] = value;
|
|
216
|
+
}
|
|
217
|
+
for (const source of consumedSources) {
|
|
218
|
+
delete result[source];
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return result;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Merges two prop objects, skipping keys from `right` whose value is `undefined`
|
|
226
|
+
* or an empty plain object.
|
|
227
|
+
*
|
|
228
|
+
* `Object.assign({}, left, right)` copies all enumerable own properties from `right`,
|
|
229
|
+
* including those with value `undefined` or `{}`. When a component passes
|
|
230
|
+
* `style={undefined}` or `contentContainerStyle={{}}`, the computed NativeWind
|
|
231
|
+
* style from `left` gets overwritten. This function prevents that by only copying
|
|
232
|
+
* values that carry meaningful style information.
|
|
233
|
+
*
|
|
234
|
+
* Empty object detection uses inline `for...in` instead of a separate function or
|
|
235
|
+
* `Object.keys().length` — avoids both function call overhead and intermediate array
|
|
236
|
+
* allocation on a hot path (called per-prop per-render). Consistent with how the
|
|
237
|
+
* `["style"]` target path handles this via `filterCssVariables({})` returning `undefined`.
|
|
238
|
+
*
|
|
239
|
+
* @param left - The computed NativeWind props (className-derived styles)
|
|
240
|
+
* @param right - The inline props from the component (guaranteed non-null by caller; may contain undefined values)
|
|
241
|
+
* @returns A new object with all properties from `left`, overridden only by meaningful values from `right`
|
|
242
|
+
*/
|
|
243
|
+
function mergeDefinedProps(left, right) {
|
|
244
|
+
const result = left ? {
|
|
245
|
+
...left
|
|
246
|
+
} : {};
|
|
247
|
+
for (const key in right) {
|
|
248
|
+
const value = right[key];
|
|
249
|
+
if (value === undefined) continue;
|
|
250
|
+
// Non-object values (strings, numbers, booleans, null, arrays): always assign
|
|
251
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
252
|
+
result[key] = value;
|
|
253
|
+
continue;
|
|
254
|
+
}
|
|
255
|
+
// Plain object: assign only if non-empty. An empty style object (e.g.,
|
|
256
|
+
// contentContainerStyle={{}}) has no properties to apply and should not
|
|
257
|
+
// overwrite computed className styles. The for...in loop only executes
|
|
258
|
+
// if the object has enumerable keys — empty objects are skipped.
|
|
259
|
+
for (const _ in value) {
|
|
260
|
+
result[key] = value;
|
|
261
|
+
break;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
56
264
|
return result;
|
|
57
265
|
}
|
|
58
266
|
function deepMergeConfig(config, left, right, rightIsInline = false) {
|
|
59
|
-
if (!
|
|
267
|
+
if (!right) {
|
|
60
268
|
return {
|
|
61
269
|
...left
|
|
62
270
|
};
|
|
63
271
|
}
|
|
64
|
-
|
|
272
|
+
|
|
273
|
+
// Handle style merging to support both className and inline style props
|
|
274
|
+
let result;
|
|
275
|
+
if (config.target) {
|
|
276
|
+
if (Array.isArray(config.target) && config.target.length === 1 && config.target[0] === "style") {
|
|
277
|
+
// Special handling for style target when we have inline styles
|
|
278
|
+
result = {
|
|
279
|
+
...left,
|
|
280
|
+
...right
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
// Handle null/undefined inline styles
|
|
284
|
+
if (right?.style === null || right?.style === undefined) {
|
|
285
|
+
if (left?.style) {
|
|
286
|
+
result.style = left.style;
|
|
287
|
+
}
|
|
288
|
+
} else if (rightIsInline && right?.style) {
|
|
289
|
+
// Filter inline styles if rightIsInline is true
|
|
290
|
+
const filteredRightStyle = filterCssVariables(right.style);
|
|
291
|
+
if (left?.style) {
|
|
292
|
+
if (!filteredRightStyle) {
|
|
293
|
+
// All inline styles were CSS variables, only use left
|
|
294
|
+
result.style = left.style;
|
|
295
|
+
} else {
|
|
296
|
+
const leftStyle = left.style;
|
|
297
|
+
|
|
298
|
+
// For arrays or objects, check if we need to create a style array
|
|
299
|
+
const leftIsObject = typeof leftStyle === "object" && !Array.isArray(leftStyle);
|
|
300
|
+
const rightIsObject = typeof filteredRightStyle === "object" && !Array.isArray(filteredRightStyle);
|
|
301
|
+
if (leftIsObject && rightIsObject) {
|
|
302
|
+
if (hasNonOverlappingProperties(leftStyle, filteredRightStyle)) {
|
|
303
|
+
result.style = [leftStyle, filteredRightStyle];
|
|
304
|
+
} else {
|
|
305
|
+
// All left properties are in right, right overrides
|
|
306
|
+
result.style = filteredRightStyle;
|
|
307
|
+
}
|
|
308
|
+
} else {
|
|
309
|
+
// One or both are arrays, merge them
|
|
310
|
+
result.style = [leftStyle, filteredRightStyle];
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
} else {
|
|
314
|
+
// No left style, just use filtered right
|
|
315
|
+
if (filteredRightStyle) {
|
|
316
|
+
result.style = filteredRightStyle;
|
|
317
|
+
} else {
|
|
318
|
+
// All filtered out, remove style prop
|
|
319
|
+
delete result.style;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
} else if (!rightIsInline && right?.style) {
|
|
323
|
+
// Merging non-inline styles (e.g., important styles)
|
|
324
|
+
if (left?.style) {
|
|
325
|
+
// If left.style is an array, append right.style
|
|
326
|
+
if (Array.isArray(left.style)) {
|
|
327
|
+
const combined = [...left.style, right.style];
|
|
328
|
+
result.style = flattenStyleArray(combined);
|
|
329
|
+
} else if (typeof left.style === "object" && typeof right.style === "object") {
|
|
330
|
+
// Both are objects, check for overlaps
|
|
331
|
+
if (hasNonOverlappingProperties(left.style, right.style)) {
|
|
332
|
+
result.style = flattenStyleArray([left.style, right.style]);
|
|
333
|
+
} else {
|
|
334
|
+
// All left properties are overridden by right
|
|
335
|
+
result.style = right.style;
|
|
336
|
+
}
|
|
337
|
+
} else {
|
|
338
|
+
// One or both are arrays/mixed types
|
|
339
|
+
const combined = [left.style, right.style];
|
|
340
|
+
result.style = flattenStyleArray(combined);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
} else {
|
|
345
|
+
result = mergeDefinedProps(left, right);
|
|
346
|
+
}
|
|
347
|
+
} else {
|
|
348
|
+
result = mergeDefinedProps(left, right);
|
|
349
|
+
}
|
|
65
350
|
if (right && rightIsInline && config.source in right && config.target !== config.source) {
|
|
66
351
|
delete result[config.source];
|
|
67
352
|
}
|
|
@@ -69,42 +354,112 @@ function deepMergeConfig(config, left, right, rightIsInline = false) {
|
|
|
69
354
|
/**
|
|
70
355
|
* If target is a path, deep merge until we get to the last key
|
|
71
356
|
*/
|
|
72
|
-
if (Array.isArray(config.target)
|
|
73
|
-
|
|
74
|
-
const key = config.target[
|
|
75
|
-
if (key === undefined) {
|
|
76
|
-
return result;
|
|
77
|
-
}
|
|
357
|
+
if (Array.isArray(config.target)) {
|
|
358
|
+
if (config.target.length > 1) {
|
|
359
|
+
const key = config.target[0];
|
|
78
360
|
result[key] = deepMergeConfig({
|
|
79
361
|
source: config.source,
|
|
80
|
-
target: config.target.slice(
|
|
362
|
+
target: config.target.slice(1)
|
|
81
363
|
}, left?.[key], right?.[key], rightIsInline);
|
|
82
364
|
}
|
|
365
|
+
|
|
366
|
+
// For length-1 array targets (e.g. ["contentContainerStyle"]), the loop
|
|
367
|
+
// above runs 0 iterations. Merge the target prop so inline styles don't
|
|
368
|
+
// silently overwrite className-computed styles (same as string target path).
|
|
369
|
+
const finalKey = config.target[config.target.length - 1];
|
|
370
|
+
if (config.target.length === 1 && finalKey && rightIsInline) {
|
|
371
|
+
let rightValue = right?.[finalKey];
|
|
372
|
+
if (rightValue !== undefined) {
|
|
373
|
+
rightValue = filterCssVariables(rightValue);
|
|
374
|
+
}
|
|
375
|
+
if (rightValue === undefined || rightValue === null) {
|
|
376
|
+
// Inline is empty or fully filtered — preserve className-computed value
|
|
377
|
+
if (left && finalKey in left) {
|
|
378
|
+
result[finalKey] = left[finalKey];
|
|
379
|
+
} else {
|
|
380
|
+
// No left value either — remove unfiltered inline value from result
|
|
381
|
+
delete result[finalKey];
|
|
382
|
+
}
|
|
383
|
+
} else if (left && finalKey in left) {
|
|
384
|
+
const leftValue = left[finalKey];
|
|
385
|
+
const leftIsObj = typeof leftValue === "object" && leftValue !== null && !Array.isArray(leftValue);
|
|
386
|
+
const rightIsObj = typeof rightValue === "object" && rightValue !== null && !Array.isArray(rightValue);
|
|
387
|
+
if (leftIsObj && rightIsObj) {
|
|
388
|
+
if (hasNonOverlappingProperties(leftValue, rightValue)) {
|
|
389
|
+
result[finalKey] = [leftValue, rightValue];
|
|
390
|
+
} else {
|
|
391
|
+
// All left keys are in right — use filtered right value
|
|
392
|
+
result[finalKey] = rightValue;
|
|
393
|
+
}
|
|
394
|
+
} else {
|
|
395
|
+
result[finalKey] = [leftValue, rightValue];
|
|
396
|
+
}
|
|
397
|
+
} else {
|
|
398
|
+
// No left value — use filtered right value (not the unfiltered one from mergeDefinedProps)
|
|
399
|
+
result[finalKey] = rightValue;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
83
402
|
return result;
|
|
84
403
|
}
|
|
85
|
-
const target =
|
|
86
|
-
if (target === undefined) {
|
|
404
|
+
const target = config.target;
|
|
405
|
+
if (target === undefined || target === false) {
|
|
87
406
|
return result;
|
|
88
407
|
}
|
|
89
408
|
let rightValue = right?.[target];
|
|
90
409
|
|
|
91
410
|
// Strip any inline variables from the target
|
|
92
|
-
if (rightIsInline && rightValue) {
|
|
93
|
-
|
|
94
|
-
rightValue = rightValue.filter(v => {
|
|
95
|
-
return typeof v !== "object" || !(v && VAR_SYMBOL in v);
|
|
96
|
-
});
|
|
97
|
-
if (rightValue.length === 0) {
|
|
98
|
-
rightValue = undefined;
|
|
99
|
-
}
|
|
100
|
-
} else if (typeof rightValue === "object" && rightValue && VAR_SYMBOL in rightValue) {
|
|
101
|
-
rightValue = undefined;
|
|
102
|
-
delete result[target][VAR_SYMBOL];
|
|
103
|
-
}
|
|
411
|
+
if (rightIsInline && rightValue !== undefined) {
|
|
412
|
+
rightValue = filterCssVariables(rightValue);
|
|
104
413
|
}
|
|
105
414
|
if (rightValue !== undefined) {
|
|
106
415
|
result[target] = left && target in left ? [left[target], rightValue] : rightValue;
|
|
107
416
|
}
|
|
108
417
|
return result;
|
|
109
418
|
}
|
|
419
|
+
function nativeStyleMapping(config, props) {
|
|
420
|
+
if (!props) {
|
|
421
|
+
return props;
|
|
422
|
+
}
|
|
423
|
+
if (!config.nativeStyleMapping) {
|
|
424
|
+
if (config.target === false) delete props.style;
|
|
425
|
+
return props;
|
|
426
|
+
}
|
|
427
|
+
let source;
|
|
428
|
+
if (typeof config.target === "string") {
|
|
429
|
+
source = props[config.target];
|
|
430
|
+
} else if (config.target === false) {
|
|
431
|
+
source = props["style"];
|
|
432
|
+
} else {
|
|
433
|
+
const tokens = [...config.target];
|
|
434
|
+
const lastToken = tokens.pop();
|
|
435
|
+
source = props;
|
|
436
|
+
for (const token of tokens) {
|
|
437
|
+
source = source[token];
|
|
438
|
+
if (!source) {
|
|
439
|
+
return props;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
source = source[lastToken];
|
|
443
|
+
}
|
|
444
|
+
if (!source) {
|
|
445
|
+
return props;
|
|
446
|
+
}
|
|
447
|
+
for (const [key, path] of Object.entries(config.nativeStyleMapping)) {
|
|
448
|
+
const styleValue = source[key];
|
|
449
|
+
delete source[key];
|
|
450
|
+
if (styleValue === undefined) {
|
|
451
|
+
continue;
|
|
452
|
+
}
|
|
453
|
+
let target = props;
|
|
454
|
+
const tokens = path.split(".");
|
|
455
|
+
const lastToken = tokens.pop();
|
|
456
|
+
for (const token of tokens) {
|
|
457
|
+
target[token] ??= {};
|
|
458
|
+
target = target[token];
|
|
459
|
+
}
|
|
460
|
+
target[lastToken] = styleValue;
|
|
461
|
+
}
|
|
462
|
+
if (config.target === false) delete props.style;
|
|
463
|
+
return props;
|
|
464
|
+
}
|
|
110
465
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["specificityCompareFn","getInteractionHandler","activeFamily","containerLayoutFamily","family","focusFamily","hoverFamily","observable","VAR_SYMBOL","calculateProps","stylesFamily","hash","rules","sortedRules","Array","from","sort","obs","read","Object","assign","cleanup","effect","observers","delete","size","getStyledProps","state","inline","result","styledProps","stylesObs","get","styleEffect","config","configs","deepMergeConfig","normal","important","has","ruleEffectGetter","onHoverIn","onHoverOut","onPress","onPressIn","onPressOut","onBlur","onFocus","onLayout","left","right","rightIsInline","target","source","isArray","length","i","key","undefined","slice","rightValue","filter","v"],"sourceRoot":"../../../../src","sources":["native/styles/index.ts"],"mappings":";;AAAA;;AAEA,SAASA,oBAAoB,QAAQ,4BAA4B;AAEjE,SAASC,qBAAqB,QAAQ,yBAAsB;AAE5D,SACEC,YAAY,EACZC,qBAAqB,EACrBC,MAAM,EACNC,WAAW,EACXC,WAAW,EACXC,UAAU,EACVC,UAAU,QAGL,kBAAe;AACtB,SAASC,cAAc,QAAQ,sBAAmB;AAElD,OAAO,MAAMC,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AACkB,MAAM,CAAC,CAAC,CAAC,GAChBlB,MAAM,CAACkB,MAAM;EAEjB,IAAIA,MAAM,KAAKM,SAAS,EAAE;IACxB,OAAO7B,MAAM;EACf;EAEA,IAAI+B,UAAU,GAAGV,KAAK,GAAGE,MAAM,CAAC;;EAEhC;EACA,IAAID,aAAa,IAAIS,UAAU,EAAE;IAC/B,IAAI9C,KAAK,CAACwC,OAAO,CAACM,UAAU,CAAC,EAAE;MAC7BA,UAAU,GAAGA,UAAU,CAACC,MAAM,CAAEC,CAAC,IAAK;QACpC,OAAO,OAAOA,CAAC,KAAK,QAAQ,IAAI,EAAEA,CAAC,IAAItD,UAAU,IAAIsD,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,IACVpD,UAAU,IAAIoD,UAAU,EACxB;MACAA,UAAU,GAAGF,SAAS;MACtB,OAAO7B,MAAM,CAACuB,MAAM,CAAC,CAAC5C,UAAU,CAAC;IACnC;EACF;EAEA,IAAIoD,UAAU,KAAKF,SAAS,EAAE;IAC5B7B,MAAM,CAACuB,MAAM,CAAC,GACZH,IAAI,IAAIG,MAAM,IAAIH,IAAI,GAAG,CAACA,IAAI,CAACG,MAAM,CAAC,EAAEQ,UAAU,CAAC,GAAGA,UAAU;EACpE;EAEA,OAAO/B,MAAM;AACf","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["specificityCompareFn","getInteractionHandler","activeFamily","containerLayoutFamily","family","focusFamily","hoverFamily","observable","VAR_SYMBOL","calculateProps","hasNonOverlappingProperties","left","right","key","Object","prototype","hasOwnProperty","call","flattenStyleArray","styleArray","item","Array","isArray","reduce","acc","assign","filterCssVariables","value","depth","undefined","filtered","filteredItem","push","length","hasProperties","keys","filteredValue","stylesFamily","hash","rules","sortedRules","from","sort","obs","read","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","has","ruleEffectGetter","onHoverIn","onHoverOut","onPress","onPressIn","onPressOut","onBlur","onFocus","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":";;AAAA;;AAEA,SAASA,oBAAoB,QAAQ,4BAA4B;AAEjE,SAASC,qBAAqB,QAAQ,yBAAsB;AAE5D,SACEC,YAAY,EACZC,qBAAqB,EACrBC,MAAM,EACNC,WAAW,EACXC,WAAW,EACXC,UAAU,EACVC,UAAU,QAGL,kBAAe;AACtB,SAASC,cAAc,QAAQ,sBAAmB;;AAElD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,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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