react-native-css 0.0.0-nightly.da5ce0f → 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/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 +102 -61
- package/dist/commonjs/compiler/declarations.js.map +1 -1
- package/dist/commonjs/compiler/lightningcss-loader.js +11 -8
- 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 +1 -3
- 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/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 +60 -11
- 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 +43 -29
- package/dist/commonjs/native/styles/functions/color-mix.js.map +1 -1
- 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/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 +140 -14
- 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 +1 -1
- 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 +102 -61
- package/dist/module/compiler/declarations.js.map +1 -1
- package/dist/module/compiler/lightningcss-loader.js +10 -8
- 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 +1 -3
- 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/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 +63 -14
- 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 +43 -29
- package/dist/module/native/styles/functions/color-mix.js.map +1 -1
- 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/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 +140 -14
- 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 +1 -1
- 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 +2 -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/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.map +1 -1
- 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/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 +4 -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/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 +1 -1
- package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts.map +1 -1
- 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 -8
- 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 +65 -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 +189 -100
- package/src/compiler/lightningcss-loader.ts +16 -15
- 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 +1 -3
- package/src/components/FlatList.tsx +1 -0
- package/src/components/ImageBackground.tsx +2 -6
- package/src/components/KeyboardAvoidingView.tsx +2 -3
- 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 +69 -14
- 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 +45 -39
- package/src/native/styles/functions/filters.ts +20 -6
- 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 +146 -15
- 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 +6 -11
- package/src/web/assign-style.ts +2 -1
- package/types.d.ts +0 -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
|
@@ -15,9 +15,10 @@ export function observable(init, equality = Object.is) {
|
|
|
15
15
|
}
|
|
16
16
|
const observers = new Set();
|
|
17
17
|
const effect = {
|
|
18
|
-
observers,
|
|
18
|
+
observers: new Set(),
|
|
19
19
|
run: () => {
|
|
20
20
|
if (!isStatic) {
|
|
21
|
+
cleanupEffect(effect);
|
|
21
22
|
const nextValue = init(getter, lastArg);
|
|
22
23
|
if (equality(value, nextValue)) {
|
|
23
24
|
return;
|
|
@@ -27,13 +28,17 @@ export function observable(init, equality = Object.is) {
|
|
|
27
28
|
notify();
|
|
28
29
|
}
|
|
29
30
|
};
|
|
30
|
-
const getter = observable => observable.get(effect);
|
|
31
|
-
function get(
|
|
32
|
-
if (
|
|
33
|
-
observers.
|
|
31
|
+
const getter = observable => observable.get(observers.size > 0 ? effect : undefined);
|
|
32
|
+
function get(subscriber) {
|
|
33
|
+
if (subscriber) {
|
|
34
|
+
if (observers.size === 0 && !isStatic) didInit = false;
|
|
35
|
+
observers.add(subscriber);
|
|
36
|
+
subscriber.observers.add(obs);
|
|
34
37
|
}
|
|
35
38
|
if (!didInit) {
|
|
36
|
-
|
|
39
|
+
cleanupEffect(effect);
|
|
40
|
+
value = init(getter, lastArg);
|
|
41
|
+
didInit = observers.size > 0;
|
|
37
42
|
}
|
|
38
43
|
return value;
|
|
39
44
|
}
|
|
@@ -44,8 +49,9 @@ export function observable(init, equality = Object.is) {
|
|
|
44
49
|
}
|
|
45
50
|
value = arg;
|
|
46
51
|
} else {
|
|
52
|
+
cleanupEffect(effect);
|
|
47
53
|
const nextValue = init(getter, arg);
|
|
48
|
-
didInit =
|
|
54
|
+
didInit = observers.size > 0;
|
|
49
55
|
lastArg = arg;
|
|
50
56
|
if (equality(value, nextValue)) {
|
|
51
57
|
return;
|
|
@@ -68,16 +74,36 @@ export function observable(init, equality = Object.is) {
|
|
|
68
74
|
observers,
|
|
69
75
|
get,
|
|
70
76
|
set,
|
|
71
|
-
run: effect.run
|
|
77
|
+
run: effect.run,
|
|
78
|
+
unsubscribe(subscriber) {
|
|
79
|
+
if (observers.delete(subscriber) && observers.size === 0 && !isStatic) {
|
|
80
|
+
cleanupEffect(effect);
|
|
81
|
+
didInit = false;
|
|
82
|
+
}
|
|
83
|
+
subscriber.observers.delete(obs);
|
|
84
|
+
}
|
|
72
85
|
};
|
|
73
86
|
return obs;
|
|
74
87
|
}
|
|
75
88
|
export function cleanupEffect(effect) {
|
|
76
89
|
if (!effect) return;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
90
|
+
const dependencies = effect.dependencies = Array.from(effect.observers);
|
|
91
|
+
// Snapshot before detaching so computed observables return cached values
|
|
92
|
+
effect.snapshots = dependencies.map(observable => [observable, observable.get()]);
|
|
80
93
|
effect.observers.clear();
|
|
94
|
+
for (const dep of dependencies) {
|
|
95
|
+
dep.unsubscribe(effect);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/** Whether any of the effect's dependencies changed since cleanupEffect() */
|
|
100
|
+
export function hasChangedDependencies(effect) {
|
|
101
|
+
const snapshots = effect.snapshots;
|
|
102
|
+
if (!snapshots) return false;
|
|
103
|
+
for (const [observable, value] of snapshots) {
|
|
104
|
+
if (!Object.is(observable.get(), value)) return true;
|
|
105
|
+
}
|
|
106
|
+
return false;
|
|
81
107
|
}
|
|
82
108
|
|
|
83
109
|
/** Family Helpers ************************************************************/
|
|
@@ -85,11 +111,9 @@ export function cleanupEffect(effect) {
|
|
|
85
111
|
export function family(fn) {
|
|
86
112
|
const map = new Map();
|
|
87
113
|
return Object.assign((key, args) => {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
map.set(key, value);
|
|
92
|
-
}
|
|
114
|
+
if (map.has(key)) return map.get(key);
|
|
115
|
+
const value = fn(key, args);
|
|
116
|
+
map.set(key, value);
|
|
93
117
|
return value;
|
|
94
118
|
}, {
|
|
95
119
|
delete(key) {
|
|
@@ -103,11 +127,9 @@ export function family(fn) {
|
|
|
103
127
|
export function weakFamily(fn) {
|
|
104
128
|
const map = new WeakMap();
|
|
105
129
|
return Object.assign((key, args) => {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
map.set(key, value);
|
|
110
|
-
}
|
|
130
|
+
if (map.has(key)) return map.get(key);
|
|
131
|
+
const value = fn(key, args);
|
|
132
|
+
map.set(key, value);
|
|
111
133
|
return value;
|
|
112
134
|
}, {
|
|
113
135
|
has: key => map.has(key)
|
|
@@ -163,7 +185,7 @@ export const containerWidthFamily = weakFamily(key => {
|
|
|
163
185
|
});
|
|
164
186
|
export const containerHeightFamily = weakFamily(key => {
|
|
165
187
|
return observable(read => {
|
|
166
|
-
return read(containerLayoutFamily(key))?.
|
|
188
|
+
return read(containerLayoutFamily(key))?.height || 0;
|
|
167
189
|
});
|
|
168
190
|
});
|
|
169
191
|
//# sourceMappingURL=reactivity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createContext","Appearance","Dimensions","observableBatch","observable","init","equality","Object","is","value","isStatic","didInit","lastArg","observers","Set","effect","run","nextValue","getter","notify","get","
|
|
1
|
+
{"version":3,"names":["createContext","Appearance","Dimensions","observableBatch","observable","init","equality","Object","is","value","isStatic","didInit","lastArg","observers","Set","effect","run","cleanupEffect","nextValue","getter","notify","get","size","undefined","subscriber","add","obs","set","arg","Array","from","forEach","observer","current","unsubscribe","delete","dependencies","snapshots","map","clear","dep","hasChangedDependencies","family","fn","Map","assign","key","args","has","weakFamily","WeakMap","VAR_SYMBOL","Symbol","for","hoverFamily","activeFamily","focusFamily","dimensions","vw","read","width","vh","height","addEventListener","window","colorScheme","getColorScheme","addChangeListener","event","ContainerContext","containerLayoutFamily","x","y","containerWidthFamily","containerHeightFamily"],"sourceRoot":"../../../src","sources":["native/reactivity.ts"],"mappings":";;AAAA;AACA,SAASA,aAAa,QAAQ,OAAO;AACrC,SACEC,UAAU,EACVC,UAAU,QAGL,cAAc;AAuBrB,OAAO,MAAMC,eAEZ,GAAG,CAAC,CAAC;AAEN,OAAO,SAASC,UAAUA,CACxBC,IAA8B,EAC9BC,QAAmD,GAAGC,MAAM,CAACC,EAAE,EAC/D;EACA,IAAIC,KAAY;EAChB,IAAIC,QAAQ,GAAG,OAAOL,IAAI,KAAK,UAAU;EACzC,IAAIM,OAA4B;EAChC,IAAIC,OAAwB;EAE5B,IAAI,OAAOP,IAAI,KAAK,UAAU,EAAE;IAC9BI,KAAK,GAAGJ,IAAI;IACZM,OAAO,GAAG,IAAI;EAChB;EAEA,MAAME,SAAS,GAAG,IAAIC,GAAG,CAAS,CAAC;EACnC,MAAMC,MAAc,GAAG;IACrBF,SAAS,EAAE,IAAIC,GAAG,CAAC,CAAC;IACpBE,GAAG,EAAEA,CAAA,KAAM;MACT,IAAI,CAACN,QAAQ,EAAE;QACbO,aAAa,CAACF,MAAM,CAAC;QACrB,MAAMG,SAAS,GAAIb,IAAI,CAAsBc,MAAM,EAAEP,OAAO,CAAC;QAC7D,IAAIN,QAAQ,CAACG,KAAK,EAAES,SAAS,CAAC,EAAE;UAC9B;QACF;QACAT,KAAK,GAAGS,SAAS;MACnB;MAEAE,MAAM,CAAC,CAAC;IACV;EACF,CAAC;EAED,MAAMD,MAAc,GAAIf,UAAU,IAChCA,UAAU,CAACiB,GAAG,CAACR,SAAS,CAACS,IAAI,GAAG,CAAC,GAAGP,MAAM,GAAGQ,SAAS,CAAC;EAEzD,SAASF,GAAGA,CAACG,UAAmB,EAAE;IAChC,IAAIA,UAAU,EAAE;MACd,IAAIX,SAAS,CAACS,IAAI,KAAK,CAAC,IAAI,CAACZ,QAAQ,EAAEC,OAAO,GAAG,KAAK;MACtDE,SAAS,CAACY,GAAG,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AGrB,UAAU,CAAC,MAAM;EACpD,OAAO7C,UAAU,CAAkB;IACjCmE,CAAC,EAAE,CAAC;IACJC,CAAC,EAAE,CAAC;IACJZ,KAAK,EAAE,CAAC;IACRE,MAAM,EAAE;EACV,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,MAAMW,oBAAoB,GAAGxB,UAAU,CAAEH,GAAG,IAAK;EACtD,OAAO1C,UAAU,CAAEuD,IAAI,IAAK;IAC1B,OAAOA,IAAI,CAACW,qBAAqB,CAACxB,GAAG,CAAC,CAAC,EAAEc,KAAK,IAAI,CAAC;EACrD,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,MAAMc,qBAAqB,GAAGzB,UAAU,CAAEH,GAAG,IAAK;EACvD,OAAO1C,UAAU,CAAEuD,IAAI,IAAK;IAC1B,OAAOA,IAAI,CAACW,qBAAqB,CAACxB,GAAG,CAAC,CAAC,EAAEgB,MAAM,IAAI,CAAC;EACtD,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -5,9 +5,21 @@ export const animatedComponentFamily = weakFamily(component => {
|
|
|
5
5
|
if ("displayName" in component && component.displayName?.startsWith("Animated.")) {
|
|
6
6
|
return component;
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
//
|
|
10
|
-
|
|
8
|
+
|
|
9
|
+
// Reanimated 4.5 keeps the original component display name. Compare its
|
|
10
|
+
// public built-in components by identity instead of interpreting that name.
|
|
11
|
+
const reanimated =
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
13
|
+
require("react-native-reanimated");
|
|
14
|
+
const animated = reanimated.default;
|
|
15
|
+
if ([animated.View, animated.Text, animated.Image, animated.ScrollView, animated.FlatList].some(value => value === component)) {
|
|
16
|
+
return component;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// This public constructor remains supported for arbitrary components; only
|
|
20
|
+
// its FlatList-specific overload is deprecated by Reanimated.
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
22
|
+
const createAnimatedComponent = reanimated.createAnimatedComponent;
|
|
11
23
|
return createAnimatedComponent(component);
|
|
12
24
|
});
|
|
13
25
|
//# sourceMappingURL=reanimated.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["weakFamily","animatedComponentFamily","component","displayName","startsWith","
|
|
1
|
+
{"version":3,"names":["weakFamily","animatedComponentFamily","component","displayName","startsWith","reanimated","require","animated","default","View","Text","Image","ScrollView","FlatList","some","value","createAnimatedComponent"],"sourceRoot":"../../../src","sources":["native/reanimated.ts"],"mappings":";;AAEA,SAASA,UAAU,QAAQ,iBAAc;AAEzC,OAAO,MAAMC,uBAAuB,GAAGD,UAAU,CAC9CE,SAAwB,IAAK;EAC5B,IACE,aAAa,IAAIA,SAAS,IAC1BA,SAAS,CAACC,WAAW,EAAEC,UAAU,CAAC,WAAW,CAAC,EAC9C;IACA,OAAOF,SAAS;EAClB;;EAEA;EACA;EACA,MAAMG,UAAU;EACd;EACAC,OAAO,CAAC,yBAAyB,CAA6C;EAChF,MAAMC,QAAQ,GAAGF,UAAU,CAACG,OAAO;EACnC,IACE,CACED,QAAQ,CAACE,IAAI,EACbF,QAAQ,CAACG,IAAI,EACbH,QAAQ,CAACI,KAAK,EACdJ,QAAQ,CAACK,UAAU,EACnBL,QAAQ,CAACM,QAAQ,CAClB,CAACC,IAAI,CAAEC,KAAK,IAAKA,KAAK,KAAKb,SAAS,CAAC,EACtC;IACA,OAAOA,SAAS;EAClB;;EAEA;EACA;EACA;EACA,MAAMc,uBAAuB,GAAGX,UAAU,CAACW,uBAEzB;EAElB,OAAOA,uBAAuB,CAACd,SAAS,CAAC;AAC3C,CACF,CAAC","ignoreList":[]}
|
|
@@ -1,42 +1,56 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
|
4
|
-
|
|
5
3
|
import { ColorSpace, to as convert, mix, OKLab, P3, parse, sRGB } from "colorjs.io/fn";
|
|
6
4
|
ColorSpace.register(sRGB);
|
|
7
5
|
ColorSpace.register(P3);
|
|
8
6
|
ColorSpace.register(OKLab);
|
|
9
7
|
export const colorMix = (resolveValue, value) => {
|
|
10
|
-
const
|
|
11
|
-
if (!Array.isArray(
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
const resolved = resolveValue(value[2]);
|
|
9
|
+
if (!Array.isArray(resolved)) return;
|
|
10
|
+
|
|
11
|
+
// Resolved descriptors may be cached and shared by another styled component.
|
|
12
|
+
const args = [...resolved];
|
|
14
13
|
try {
|
|
15
14
|
const space = args.shift();
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
if (typeof
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
15
|
+
const leftValue = args.shift();
|
|
16
|
+
if (typeof space !== "string" || typeof leftValue !== "string") return;
|
|
17
|
+
ColorSpace.get(space);
|
|
18
|
+
const left = parse(leftValue);
|
|
19
|
+
const percentage = () => {
|
|
20
|
+
const next = args[0];
|
|
21
|
+
if (typeof next !== "string" || !next.endsWith("%")) return undefined;
|
|
22
|
+
args.shift();
|
|
23
|
+
return Number(next.slice(0, -1)) / 100;
|
|
24
|
+
};
|
|
25
|
+
let leftWeight = percentage();
|
|
26
|
+
const rightValue = args.shift();
|
|
27
|
+
if (typeof rightValue !== "string") return;
|
|
28
|
+
const right = parse(rightValue);
|
|
29
|
+
let rightWeight = percentage();
|
|
30
|
+
if (args.length) return;
|
|
31
|
+
|
|
32
|
+
// CSS Color 5: omitted weights are complementary, then both are normalized.
|
|
33
|
+
leftWeight ??= rightWeight === undefined ? 0.5 : 1 - rightWeight;
|
|
34
|
+
rightWeight ??= 1 - leftWeight;
|
|
35
|
+
if (![leftWeight, rightWeight].every(weight => Number.isFinite(weight) && weight >= 0 && weight <= 1)) return;
|
|
36
|
+
const sum = leftWeight + rightWeight;
|
|
37
|
+
if (sum === 0) return;
|
|
38
|
+
const alphaMultiplier = Math.min(sum, 1);
|
|
39
|
+
let result;
|
|
40
|
+
if (right.alpha === 0 || left.alpha === 0) {
|
|
41
|
+
// A transparent endpoint contributes no premultiplied channels.
|
|
42
|
+
const source = right.alpha === 0 ? left : right;
|
|
43
|
+
const weight = right.alpha === 0 ? leftWeight : rightWeight;
|
|
44
|
+
result = convert(source, "srgb");
|
|
45
|
+
result.alpha = (source.alpha ?? 1) * weight / sum;
|
|
46
|
+
} else {
|
|
47
|
+
result = mix(left, right, rightWeight / sum, {
|
|
48
|
+
space,
|
|
49
|
+
outputSpace: "srgb",
|
|
50
|
+
premultiplied: true
|
|
51
|
+
});
|
|
35
52
|
}
|
|
36
|
-
|
|
37
|
-
space,
|
|
38
|
-
outputSpace: "srgb"
|
|
39
|
-
});
|
|
53
|
+
result.alpha = (result.alpha ?? 1) * alphaMultiplier;
|
|
40
54
|
return `rgba(${(result.coords[0] ?? 0) * 255}, ${(result.coords[1] ?? 0) * 255}, ${(result.coords[2] ?? 0) * 255}, ${result.alpha})`;
|
|
41
55
|
} catch {
|
|
42
56
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ColorSpace","to","convert","mix","OKLab","P3","parse","sRGB","register","colorMix","resolveValue","value","
|
|
1
|
+
{"version":3,"names":["ColorSpace","to","convert","mix","OKLab","P3","parse","sRGB","register","colorMix","resolveValue","value","resolved","Array","isArray","args","space","shift","leftValue","get","left","percentage","next","endsWith","undefined","Number","slice","leftWeight","rightValue","right","rightWeight","length","every","weight","isFinite","sum","alphaMultiplier","Math","min","result","alpha","source","outputSpace","premultiplied","coords"],"sourceRoot":"../../../../../src","sources":["native/styles/functions/color-mix.ts"],"mappings":";;AAAA,SACEA,UAAU,EACVC,EAAE,IAAIC,O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AC,CAAC;IACJ;IACAJ,MAAM,CAACC,KAAK,GAAG,CAACD,MAAM,CAACC,KAAK,IAAI,CAAC,IAAIJ,eAAe;IACpD,OAAO,QAAQ,CAACG,MAAM,CAACK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,KAAK,CAACL,MAAM,CAACK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,KAAK,CAACL,MAAM,CAACK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,KAAKL,MAAM,CAACC,KAAK,GAAG;EACtI,CAAC,CAAC,MAAM;IACN;EACF;AACF,CAAC","ignoreList":[]}
|
|
@@ -53,18 +53,30 @@ export const saturate = (resolveValue, value) => {
|
|
|
53
53
|
export const opacity = (resolveValue, value) => {
|
|
54
54
|
const args = resolveValue(value[2]);
|
|
55
55
|
return {
|
|
56
|
-
|
|
56
|
+
opacity: Array.isArray(args) ? args[0] : args
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
|
-
const color = ["color", "
|
|
59
|
+
const color = ["color", "color"];
|
|
60
60
|
const offsetX = ["offsetX", "number"];
|
|
61
61
|
const offsetY = ["offsetY", "number"];
|
|
62
|
-
const
|
|
63
|
-
const handler = shorthandHandler([[offsetX, offsetY,
|
|
62
|
+
const standardDeviation = ["standardDeviation", "number"];
|
|
63
|
+
const handler = shorthandHandler([[offsetX, offsetY, standardDeviation, color], [color, offsetX, offsetY], [color, offsetX, offsetY, standardDeviation], [offsetX, offsetY, color], [offsetX, offsetY, standardDeviation, color]], [], "object");
|
|
64
64
|
export const dropShadow = (resolveValue, func, get, options) => {
|
|
65
65
|
const args = resolveValue(func[2]);
|
|
66
66
|
return isStyleDescriptorArray(args) ? {
|
|
67
67
|
dropShadow: handler(resolveValue, args, get, options)
|
|
68
68
|
} : undefined;
|
|
69
69
|
};
|
|
70
|
+
|
|
71
|
+
/** CSS variables may expand to multiple filters; native filter arrays must be flat. */
|
|
72
|
+
export const filter = (resolveValue, descriptor) => {
|
|
73
|
+
const value = resolveValue(descriptor[2]);
|
|
74
|
+
if (Array.isArray(value)) {
|
|
75
|
+
const filters = value.flat(Infinity);
|
|
76
|
+
return filters.filter(entry => entry !== undefined && entry !== "initial");
|
|
77
|
+
}
|
|
78
|
+
if (value === undefined || value === "initial") return;
|
|
79
|
+
if (value === "none") return null;
|
|
80
|
+
return typeof value === "string" ? value : [value];
|
|
81
|
+
};
|
|
70
82
|
//# sourceMappingURL=filters.js.map
|
|
@@ -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,GAA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H,KAAK,CAAC,CAC7C,EACD,EAAE,EACF,QACF,CAAC;AAED,OAAO,MAAMK,UAAiC,GAAGA,CAC/ClB,YAAY,EACZmB,IAAI,EACJC,GAAG,EACHC,OAAO,KACJ;EACH,MAAMnB,IAAI,GAAGF,YAAY,CAACmB,IAAI,CAAC,CAAC,CAAC,CAAC;EAElC,OAAOtB,sBAAsB,CAACK,IAAI,CAAC,GAC/B;IACEgB,UAAU,EAAED,OAAO,CAACjB,YAAY,EAAEE,IAAI,EAAEkB,GAAG,EAAEC,OAAO;EACtD,CAAC,GACDC,SAAS;AACf,CAAC;;AAED;AACA,OAAO,MAAMC,MAA6B,GAAGA,CAACvB,YAAY,EAAEwB,UAAU,KAAK;EACzE,MAAMvB,KAAc,GAAGD,YAAY,CAACwB,UAAU,CAAC,CAAC,CAAC,CAAC;EAClD,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":[]}
|
|
@@ -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,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,CAAC","ignoreList":[]}
|
|
@@ -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.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