react-native-css 0.0.0-nightly.38ce466 → 0.0.0-nightly.4562bdf
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +171 -13
- 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/index.js +6 -2
- package/dist/commonjs/babel/index.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 +71 -42
- package/dist/commonjs/compiler/atRules.js.map +1 -1
- package/dist/commonjs/compiler/compiler.js +280 -64
- package/dist/commonjs/compiler/compiler.js.map +1 -1
- package/dist/commonjs/compiler/compiler.types.js +1 -1
- package/dist/commonjs/compiler/compiler.types.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 +414 -168
- package/dist/commonjs/compiler/declarations.js.map +1 -1
- package/dist/commonjs/compiler/individual-transforms.js +129 -0
- package/dist/commonjs/compiler/individual-transforms.js.map +1 -0
- package/dist/commonjs/compiler/inline-variables.js +188 -0
- package/dist/commonjs/compiler/inline-variables.js.map +1 -0
- package/dist/commonjs/compiler/keyframes.js +1 -1
- package/dist/commonjs/compiler/keyframes.js.map +1 -1
- package/dist/commonjs/compiler/lightningcss-loader.js +53 -0
- package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -0
- package/dist/commonjs/compiler/media-query.js +16 -6
- package/dist/commonjs/compiler/media-query.js.map +1 -1
- package/dist/commonjs/compiler/pseudo-elements.js +1 -1
- package/dist/commonjs/compiler/selector-builder.js +28 -13
- package/dist/commonjs/compiler/selector-builder.js.map +1 -1
- package/dist/commonjs/compiler/selectors.js +4 -4
- package/dist/commonjs/compiler/selectors.js.map +1 -1
- package/dist/commonjs/compiler/stylesheet.js +47 -21
- package/dist/commonjs/compiler/stylesheet.js.map +1 -1
- package/dist/commonjs/compiler/supports.js +2 -2
- package/dist/commonjs/compiler/supports.js.map +1 -1
- package/dist/commonjs/components/ActivityIndicator.js +6 -6
- package/dist/commonjs/components/ActivityIndicator.js.map +1 -1
- package/dist/commonjs/components/Button.js +6 -6
- package/dist/commonjs/components/Button.js.map +1 -1
- package/dist/commonjs/components/FlatList.js +11 -9
- package/dist/commonjs/components/FlatList.js.map +1 -1
- package/dist/commonjs/components/Image.js +6 -6
- package/dist/commonjs/components/Image.js.map +1 -1
- package/dist/commonjs/components/ImageBackground.js +18 -0
- package/dist/commonjs/components/ImageBackground.js.map +1 -0
- package/dist/commonjs/components/KeyboardAvoidingView.js +18 -0
- package/dist/commonjs/components/KeyboardAvoidingView.js.map +1 -0
- package/dist/commonjs/components/Pressable.js +17 -0
- package/dist/commonjs/components/Pressable.js.map +1 -0
- package/dist/commonjs/components/SafeAreaProvider.js +13 -0
- package/dist/commonjs/components/SafeAreaProvider.js.map +1 -0
- package/dist/commonjs/components/ScrollView.js +18 -0
- package/dist/commonjs/components/ScrollView.js.map +1 -0
- package/dist/commonjs/components/Switch.js +6 -6
- package/dist/commonjs/components/Switch.js.map +1 -1
- package/dist/commonjs/components/Text.js +6 -6
- package/dist/commonjs/components/Text.js.map +1 -1
- package/dist/commonjs/components/TextInput.js +12 -7
- package/dist/commonjs/components/TextInput.js.map +1 -1
- package/dist/commonjs/components/TouchableHighlight.js +17 -0
- package/dist/commonjs/components/TouchableHighlight.js.map +1 -0
- package/dist/commonjs/components/TouchableOpacity.js +17 -0
- package/dist/commonjs/components/TouchableOpacity.js.map +1 -0
- package/dist/commonjs/components/TouchableWithoutFeedback.js +17 -0
- package/dist/commonjs/components/TouchableWithoutFeedback.js.map +1 -0
- package/dist/commonjs/components/View.js +6 -6
- package/dist/commonjs/components/View.js.map +1 -1
- package/dist/commonjs/components/VirtualizedList.js +20 -0
- package/dist/commonjs/components/VirtualizedList.js.map +1 -0
- package/dist/commonjs/components/copyComponentProperties.js +19 -0
- package/dist/commonjs/components/copyComponentProperties.js.map +1 -0
- package/dist/commonjs/components/index.cjs +313 -0
- package/dist/commonjs/components/index.cjs.map +1 -0
- package/dist/commonjs/components/index.js +65 -1
- package/dist/commonjs/components/index.js.map +1 -1
- package/dist/commonjs/components/react-native-safe-area-context.native.js +13 -3
- package/dist/commonjs/components/react-native-safe-area-context.native.js.map +1 -1
- package/dist/commonjs/index.js +4 -15
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/jest/index.js +9 -8
- package/dist/commonjs/jest/index.js.map +1 -1
- package/dist/commonjs/metro/cache-version.js +43 -0
- package/dist/commonjs/metro/cache-version.js.map +1 -0
- package/dist/commonjs/metro/index.js +10 -118
- package/dist/commonjs/metro/index.js.map +1 -1
- package/dist/commonjs/metro/injection-code.js +1 -1
- package/dist/commonjs/metro/injection-code.js.map +1 -1
- package/dist/commonjs/metro/metro-transformer.js +24 -4
- package/dist/commonjs/metro/metro-transformer.js.map +1 -1
- package/dist/commonjs/metro/override.js +6 -0
- package/dist/commonjs/metro/override.js.map +1 -0
- package/dist/commonjs/metro/resolver.js +15 -22
- package/dist/commonjs/metro/resolver.js.map +1 -1
- package/dist/commonjs/metro/typescript.js +26 -6
- package/dist/commonjs/metro/typescript.js.map +1 -1
- package/dist/commonjs/metro/warnings.js +135 -0
- package/dist/commonjs/metro/warnings.js.map +1 -0
- package/dist/commonjs/native/api.js +122 -0
- package/dist/commonjs/native/api.js.map +1 -0
- package/dist/commonjs/native/conditions/attributes.js +51 -0
- package/dist/commonjs/native/conditions/attributes.js.map +1 -0
- package/dist/commonjs/native/conditions/container-query.js +123 -0
- package/dist/commonjs/native/conditions/container-query.js.map +1 -0
- package/dist/commonjs/native/conditions/guards.js +40 -0
- package/dist/commonjs/native/conditions/guards.js.map +1 -0
- package/dist/commonjs/native/conditions/index.js.map +1 -0
- package/dist/commonjs/native/conditions/media-query.js +98 -0
- package/dist/commonjs/native/conditions/media-query.js.map +1 -0
- package/dist/commonjs/native/index.js +28 -0
- package/dist/commonjs/native/index.js.map +1 -0
- package/dist/commonjs/native/objects.js +85 -0
- package/dist/commonjs/native/objects.js.map +1 -0
- package/dist/commonjs/native/react/interaction.js +68 -0
- package/dist/commonjs/native/react/interaction.js.map +1 -0
- package/dist/commonjs/native/react/rules.js +266 -0
- package/dist/commonjs/native/react/rules.js.map +1 -0
- package/dist/commonjs/native/react/useNativeCss.js +221 -0
- package/dist/commonjs/native/react/useNativeCss.js.map +1 -0
- package/dist/commonjs/native/react/usePassthrough.js +53 -0
- package/dist/commonjs/native/react/usePassthrough.js.map +1 -0
- package/dist/commonjs/native/react-native-css-metro-override.js +39 -0
- package/dist/commonjs/native/react-native-css-metro-override.js.map +1 -0
- package/dist/commonjs/native/reactivity.js +263 -0
- package/dist/commonjs/native/reactivity.js.map +1 -0
- package/dist/commonjs/native/reanimated.js +29 -0
- package/dist/commonjs/native/reanimated.js.map +1 -0
- package/dist/commonjs/native/styles/calculate-props.js +275 -0
- package/dist/commonjs/native/styles/calculate-props.js.map +1 -0
- package/dist/commonjs/native/styles/constants.js.map +1 -0
- package/dist/commonjs/native/styles/defaults.js.map +1 -0
- package/dist/commonjs/native/styles/functions/animation-timing.js +35 -0
- package/dist/commonjs/native/styles/functions/animation-timing.js.map +1 -0
- package/dist/commonjs/native/styles/functions/calc.js.map +1 -0
- package/dist/commonjs/native/styles/functions/color-mix.js +68 -0
- package/dist/commonjs/native/styles/functions/color-mix.js.map +1 -0
- package/dist/commonjs/native/styles/functions/filters.js +98 -0
- package/dist/commonjs/native/styles/functions/filters.js.map +1 -0
- package/dist/commonjs/native/styles/functions/index.js +94 -0
- package/dist/commonjs/native/styles/functions/index.js.map +1 -0
- package/dist/commonjs/native/styles/functions/numeric-functions.js +33 -0
- package/dist/commonjs/native/styles/functions/numeric-functions.js.map +1 -0
- package/dist/commonjs/native/styles/functions/platform-functions.js +47 -0
- package/dist/commonjs/native/styles/functions/platform-functions.js.map +1 -0
- package/dist/commonjs/native/styles/functions/string-functions.js +39 -0
- package/dist/commonjs/native/styles/functions/string-functions.js.map +1 -0
- package/dist/commonjs/native/styles/functions/transform-functions.js +111 -0
- package/dist/commonjs/native/styles/functions/transform-functions.js.map +1 -0
- package/dist/commonjs/native/styles/index.js +442 -0
- package/dist/commonjs/native/styles/index.js.map +1 -0
- package/dist/commonjs/native/styles/line-height.js +25 -0
- package/dist/commonjs/native/styles/line-height.js.map +1 -0
- package/dist/commonjs/native/styles/resolve.js +224 -0
- package/dist/commonjs/native/styles/resolve.js.map +1 -0
- package/dist/commonjs/native/styles/scale-factor.js +12 -0
- package/dist/commonjs/native/styles/scale-factor.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/_handler.js +89 -0
- package/dist/commonjs/native/styles/shorthands/_handler.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/animation.js +64 -0
- package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/border.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/box-shadow.js +69 -0
- package/dist/commonjs/native/styles/shorthands/box-shadow.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/index.js +72 -0
- package/dist/commonjs/native/styles/shorthands/index.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/logical-border-width.js +22 -0
- package/dist/commonjs/native/styles/shorthands/logical-border-width.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/text-shadow.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/transform.js +46 -0
- package/dist/commonjs/native/styles/shorthands/transform.js.map +1 -0
- package/dist/commonjs/native/styles/units.js +54 -0
- package/dist/commonjs/native/styles/units.js.map +1 -0
- package/dist/commonjs/native/styles/variables.js +204 -0
- package/dist/commonjs/native/styles/variables.js.map +1 -0
- package/dist/commonjs/native-internal/README.md +11 -0
- package/dist/commonjs/native-internal/index.js +39 -0
- package/dist/commonjs/native-internal/index.js.map +1 -0
- package/dist/commonjs/native-internal/root.js +73 -0
- package/dist/commonjs/native-internal/root.js.map +1 -0
- package/dist/commonjs/native-internal/style-collection.js +92 -0
- package/dist/commonjs/native-internal/style-collection.js.map +1 -0
- package/dist/commonjs/native-internal/variables.js +27 -0
- package/dist/commonjs/native-internal/variables.js.map +1 -0
- package/dist/commonjs/runtime.js.map +1 -0
- package/dist/commonjs/runtime.native.js.map +1 -0
- package/dist/commonjs/runtime.types.js.map +1 -0
- package/dist/commonjs/utilities/dot-notation.types.js +6 -0
- package/dist/commonjs/utilities/dot-notation.types.js.map +1 -0
- package/dist/commonjs/utilities/equality.js +41 -0
- package/dist/commonjs/utilities/equality.js.map +1 -0
- package/dist/commonjs/utilities/index.js +50 -0
- package/dist/commonjs/utilities/index.js.map +1 -0
- package/dist/commonjs/utilities/specificity.js +44 -0
- package/dist/commonjs/utilities/specificity.js.map +1 -0
- package/dist/commonjs/utilities/style-descriptor.js +45 -0
- package/dist/commonjs/utilities/style-descriptor.js.map +1 -0
- package/dist/commonjs/web/api.js +89 -0
- package/dist/commonjs/web/api.js.map +1 -0
- package/dist/commonjs/web/assign-style.js +30 -0
- package/dist/commonjs/web/assign-style.js.map +1 -0
- package/dist/commonjs/web/index.js.map +1 -0
- package/dist/commonjs/web/metro.js.map +1 -0
- 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/index.js +2 -2
- package/dist/module/babel/index.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 +69 -42
- package/dist/module/compiler/atRules.js.map +1 -1
- package/dist/module/compiler/compiler.js +281 -65
- package/dist/module/compiler/compiler.js.map +1 -1
- package/dist/module/compiler/compiler.types.js +5 -1
- 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 +408 -167
- package/dist/module/compiler/declarations.js.map +1 -1
- package/dist/module/compiler/individual-transforms.js +125 -0
- package/dist/module/compiler/individual-transforms.js.map +1 -0
- package/dist/module/compiler/inline-variables.js +184 -0
- package/dist/module/compiler/inline-variables.js.map +1 -0
- package/dist/module/compiler/keyframes.js +1 -1
- package/dist/module/compiler/keyframes.js.map +1 -1
- package/dist/module/compiler/lightningcss-loader.js +48 -0
- package/dist/module/compiler/lightningcss-loader.js.map +1 -0
- package/dist/module/compiler/media-query.js +16 -6
- package/dist/module/compiler/media-query.js.map +1 -1
- package/dist/module/compiler/pseudo-elements.js +1 -1
- package/dist/module/compiler/pseudo-elements.js.map +1 -1
- package/dist/module/compiler/selector-builder.js +28 -14
- package/dist/module/compiler/selector-builder.js.map +1 -1
- package/dist/module/compiler/selectors.js +1 -1
- package/dist/module/compiler/selectors.js.map +1 -1
- package/dist/module/compiler/stylesheet.js +47 -21
- package/dist/module/compiler/stylesheet.js.map +1 -1
- package/dist/module/compiler/supports.js +2 -2
- package/dist/module/compiler/supports.js.map +1 -1
- package/dist/module/components/ActivityIndicator.js +4 -3
- package/dist/module/components/ActivityIndicator.js.map +1 -1
- package/dist/module/components/Button.js +4 -3
- package/dist/module/components/Button.js.map +1 -1
- package/dist/module/components/FlatList.js +9 -6
- package/dist/module/components/FlatList.js.map +1 -1
- package/dist/module/components/Image.js +4 -3
- package/dist/module/components/Image.js.map +1 -1
- package/dist/module/components/ImageBackground.js +14 -0
- package/dist/module/components/ImageBackground.js.map +1 -0
- package/dist/module/components/KeyboardAvoidingView.js +14 -0
- package/dist/module/components/KeyboardAvoidingView.js.map +1 -0
- package/dist/module/components/Pressable.js +13 -0
- package/dist/module/components/Pressable.js.map +1 -0
- package/dist/module/components/SafeAreaProvider.js +4 -0
- package/dist/module/components/SafeAreaProvider.js.map +1 -0
- package/dist/module/components/ScrollView.js +14 -0
- package/dist/module/components/ScrollView.js.map +1 -0
- package/dist/module/components/Switch.js +4 -3
- package/dist/module/components/Switch.js.map +1 -1
- package/dist/module/components/Text.js +4 -3
- package/dist/module/components/Text.js.map +1 -1
- package/dist/module/components/TextInput.js +10 -4
- package/dist/module/components/TextInput.js.map +1 -1
- package/dist/module/components/TouchableHighlight.js +13 -0
- package/dist/module/components/TouchableHighlight.js.map +1 -0
- package/dist/module/components/TouchableOpacity.js +13 -0
- package/dist/module/components/TouchableOpacity.js.map +1 -0
- package/dist/module/components/TouchableWithoutFeedback.js +13 -0
- package/dist/module/components/TouchableWithoutFeedback.js.map +1 -0
- package/dist/module/components/View.js +4 -3
- package/dist/module/components/View.js.map +1 -1
- package/dist/module/components/VirtualizedList.js +16 -0
- package/dist/module/components/VirtualizedList.js.map +1 -0
- package/dist/module/components/copyComponentProperties.js +15 -0
- package/dist/module/components/copyComponentProperties.js.map +1 -0
- package/dist/module/components/index.cjs +313 -0
- package/dist/module/components/index.cjs.map +1 -0
- package/dist/module/components/index.js +8 -0
- package/dist/module/components/index.js.map +1 -1
- package/dist/module/components/react-native-safe-area-context.native.js +11 -3
- package/dist/module/components/react-native-safe-area-context.native.js.map +1 -1
- package/dist/module/index.js +1 -2
- package/dist/module/index.js.map +1 -1
- package/dist/module/jest/index.js +7 -6
- package/dist/module/jest/index.js.map +1 -1
- package/dist/module/metro/cache-version.js +39 -0
- package/dist/module/metro/cache-version.js.map +1 -0
- package/dist/module/metro/index.js +10 -117
- package/dist/module/metro/index.js.map +1 -1
- package/dist/module/metro/injection-code.js +1 -1
- package/dist/module/metro/injection-code.js.map +1 -1
- package/dist/module/metro/metro-transformer.js +24 -4
- package/dist/module/metro/metro-transformer.js.map +1 -1
- package/dist/module/metro/override.js +4 -0
- package/dist/module/metro/override.js.map +1 -0
- package/dist/module/metro/resolver.js +15 -22
- package/dist/module/metro/resolver.js.map +1 -1
- package/dist/module/metro/typescript.js +26 -6
- package/dist/module/metro/typescript.js.map +1 -1
- package/dist/module/metro/warnings.js +131 -0
- package/dist/module/metro/warnings.js.map +1 -0
- package/dist/module/native/api.js +90 -0
- package/dist/module/native/api.js.map +1 -0
- package/dist/module/native/conditions/attributes.js +47 -0
- package/dist/module/native/conditions/attributes.js.map +1 -0
- package/dist/module/native/conditions/container-query.js +117 -0
- package/dist/module/native/conditions/container-query.js.map +1 -0
- package/dist/module/native/conditions/guards.js +36 -0
- package/dist/module/native/conditions/guards.js.map +1 -0
- package/dist/module/native/conditions/index.js.map +1 -0
- package/dist/module/native/conditions/media-query.js +93 -0
- package/dist/module/native/conditions/media-query.js.map +1 -0
- package/dist/module/native/index.js +5 -0
- package/dist/module/native/index.js.map +1 -0
- package/dist/module/native/objects.js +77 -0
- package/dist/module/native/objects.js.map +1 -0
- package/dist/module/native/react/interaction.js +64 -0
- package/dist/module/native/react/interaction.js.map +1 -0
- package/dist/module/native/react/rules.js +259 -0
- package/dist/module/native/react/rules.js.map +1 -0
- package/dist/module/native/react/useNativeCss.js +215 -0
- package/dist/module/native/react/useNativeCss.js.map +1 -0
- package/dist/module/native/react/usePassthrough.js +48 -0
- package/dist/module/native/react/usePassthrough.js.map +1 -0
- package/dist/module/native/react-native-css-metro-override.js +37 -0
- package/dist/module/native/react-native-css-metro-override.js.map +1 -0
- package/dist/module/native/reactivity.js +234 -0
- package/dist/module/native/reactivity.js.map +1 -0
- package/dist/module/native/reanimated.js +25 -0
- package/dist/module/native/reanimated.js.map +1 -0
- package/dist/module/native/styles/calculate-props.js +270 -0
- package/dist/module/native/styles/calculate-props.js.map +1 -0
- package/dist/module/native/styles/constants.js.map +1 -0
- package/dist/module/native/styles/defaults.js.map +1 -0
- package/dist/module/native/styles/functions/animation-timing.js +31 -0
- package/dist/module/native/styles/functions/animation-timing.js.map +1 -0
- package/dist/module/native/styles/functions/calc.js.map +1 -0
- package/dist/module/native/styles/functions/color-mix.js +63 -0
- package/dist/module/native/styles/functions/color-mix.js.map +1 -0
- package/dist/module/native/styles/functions/filters.js +83 -0
- package/dist/module/native/styles/functions/filters.js.map +1 -0
- package/dist/module/native/styles/functions/index.js +11 -0
- package/dist/module/native/styles/functions/index.js.map +1 -0
- package/dist/module/native/styles/functions/numeric-functions.js +26 -0
- package/dist/module/native/styles/functions/numeric-functions.js.map +1 -0
- package/dist/module/native/styles/functions/platform-functions.js +37 -0
- package/dist/module/native/styles/functions/platform-functions.js.map +1 -0
- package/dist/module/native/styles/functions/string-functions.js +32 -0
- package/dist/module/native/styles/functions/string-functions.js.map +1 -0
- package/dist/module/native/styles/functions/transform-functions.js +103 -0
- package/dist/module/native/styles/functions/transform-functions.js.map +1 -0
- package/dist/module/native/styles/index.js +438 -0
- package/dist/module/native/styles/index.js.map +1 -0
- package/dist/module/native/styles/line-height.js +20 -0
- package/dist/module/native/styles/line-height.js.map +1 -0
- package/dist/module/native/styles/resolve.js +219 -0
- package/dist/module/native/styles/resolve.js.map +1 -0
- package/dist/module/native/styles/scale-factor.js +8 -0
- package/dist/module/native/styles/scale-factor.js.map +1 -0
- package/dist/module/native/styles/shorthands/_handler.js +84 -0
- package/dist/module/native/styles/shorthands/_handler.js.map +1 -0
- package/dist/module/native/styles/shorthands/animation.js +57 -0
- package/dist/module/native/styles/shorthands/animation.js.map +1 -0
- package/dist/module/native/styles/shorthands/border.js.map +1 -0
- package/dist/module/native/styles/shorthands/box-shadow.js +65 -0
- package/dist/module/native/styles/shorthands/box-shadow.js.map +1 -0
- package/dist/module/native/styles/shorthands/index.js +9 -0
- package/dist/module/native/styles/shorthands/index.js.map +1 -0
- package/dist/module/native/styles/shorthands/logical-border-width.js +18 -0
- package/dist/module/native/styles/shorthands/logical-border-width.js.map +1 -0
- package/dist/module/native/styles/shorthands/text-shadow.js.map +1 -0
- package/dist/module/native/styles/shorthands/transform.js +41 -0
- package/dist/module/native/styles/shorthands/transform.js.map +1 -0
- package/dist/module/native/styles/units.js +46 -0
- package/dist/module/native/styles/units.js.map +1 -0
- package/dist/module/native/styles/variables.js +199 -0
- package/dist/module/native/styles/variables.js.map +1 -0
- package/dist/module/native-internal/README.md +11 -0
- package/dist/module/native-internal/index.js +6 -0
- package/dist/module/native-internal/index.js.map +1 -0
- package/dist/module/native-internal/root.js +67 -0
- package/dist/module/native-internal/root.js.map +1 -0
- package/dist/module/native-internal/style-collection.js +65 -0
- package/dist/module/native-internal/style-collection.js.map +1 -0
- package/dist/module/native-internal/variables.js +22 -0
- package/dist/module/native-internal/variables.js.map +1 -0
- package/dist/module/runtime.js.map +1 -0
- package/dist/module/runtime.native.js.map +1 -0
- package/dist/module/runtime.types.js.map +1 -0
- package/dist/module/utilities/dot-notation.types.js +4 -0
- package/dist/module/utilities/dot-notation.types.js.map +1 -0
- package/dist/module/utilities/equality.js +37 -0
- package/dist/module/utilities/equality.js.map +1 -0
- package/dist/module/utilities/index.js +7 -0
- package/dist/module/utilities/index.js.map +1 -0
- package/dist/module/utilities/specificity.js +39 -0
- package/dist/module/utilities/specificity.js.map +1 -0
- package/dist/module/utilities/style-descriptor.js +38 -0
- package/dist/module/utilities/style-descriptor.js.map +1 -0
- package/dist/module/web/api.js +79 -0
- package/dist/module/web/api.js.map +1 -0
- package/dist/module/web/assign-style.js +26 -0
- package/dist/module/web/assign-style.js.map +1 -0
- package/dist/module/web/index.js.map +1 -0
- package/dist/module/web/metro.js.map +1 -0
- 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/index.d.ts +3 -0
- package/dist/typescript/commonjs/src/babel/index.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 +5 -2
- 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 +35 -17
- package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts +21 -10
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/individual-transforms.d.ts +10 -0
- package/dist/typescript/commonjs/src/compiler/individual-transforms.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts +4 -0
- package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +1 -1
- package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts +30 -0
- package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -0
- 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 +3 -2
- package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +12 -11
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +2 -11
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Button.d.ts +2 -11
- package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/FlatList.d.ts +4 -8
- package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Image.d.ts +2 -6
- package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/Pressable.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/SafeAreaProvider.d.ts +2 -0
- package/dist/typescript/commonjs/src/components/SafeAreaProvider.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/ScrollView.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/Switch.d.ts +2 -6
- package/dist/typescript/commonjs/src/components/Switch.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Text.d.ts +2 -6
- package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/TextInput.d.ts +2 -6
- package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/View.d.ts +2 -6
- package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts +5 -0
- package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/index.d.cts +2 -0
- package/dist/typescript/commonjs/src/components/index.d.cts.map +1 -0
- package/dist/typescript/commonjs/src/components/index.d.ts +8 -0
- package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts +2 -1
- package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/index.d.ts +0 -1
- package/dist/typescript/commonjs/src/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/jest/index.d.ts +4 -12
- package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/cache-version.d.ts +8 -0
- package/dist/typescript/commonjs/src/metro/cache-version.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/index.d.ts +9 -5
- package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts +9 -4
- package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/override.d.ts +2 -0
- package/dist/typescript/commonjs/src/metro/override.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/typescript.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/warnings.d.ts +13 -0
- package/dist/typescript/commonjs/src/metro/warnings.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/api.d.ts +22 -0
- package/dist/typescript/commonjs/src/native/api.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/conditions/attributes.d.ts +4 -0
- package/dist/typescript/commonjs/src/native/conditions/attributes.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts +7 -0
- package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/conditions/guards.d.ts +6 -0
- package/dist/typescript/commonjs/src/native/conditions/guards.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/conditions/index.d.ts +6 -0
- package/dist/typescript/commonjs/src/native/conditions/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/conditions/media-query.d.ts +4 -0
- package/dist/typescript/commonjs/src/native/conditions/media-query.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/index.d.ts +4 -0
- package/dist/typescript/commonjs/src/native/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/objects.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/react/interaction.d.ts +6 -0
- package/dist/typescript/commonjs/src/native/react/interaction.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/react/rules.d.ts +12 -0
- package/dist/typescript/commonjs/src/native/react/rules.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts +35 -0
- package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/react/usePassthrough.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts +2 -0
- package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/reactivity.d.ts +70 -0
- package/dist/typescript/commonjs/src/native/reactivity.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/reanimated.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts +19 -0
- package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/constants.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/defaults.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/animation-timing.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/calc.d.ts.map +1 -0
- 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 +14 -0
- package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts +9 -0
- package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/numeric-functions.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/platform-functions.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts +5 -0
- package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/transform-functions.d.ts +7 -0
- package/dist/typescript/commonjs/src/native/styles/functions/transform-functions.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/index.d.ts +31 -0
- package/dist/typescript/commonjs/src/native/styles/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/line-height.d.ts +3 -0
- package/dist/typescript/commonjs/src/native/styles/line-height.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/resolve.d.ts +21 -0
- package/dist/typescript/commonjs/src/native/styles/resolve.d.ts.map +1 -0
- 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 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts +5 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/border.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/box-shadow.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts +7 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/logical-border-width.d.ts +4 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/logical-border-width.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/text-shadow.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/transform.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/units.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/variables.d.ts +6 -0
- package/dist/typescript/commonjs/src/native/styles/variables.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native-internal/index.d.ts +4 -0
- package/dist/typescript/commonjs/src/native-internal/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native-internal/root.d.ts +56 -0
- package/dist/typescript/commonjs/src/native-internal/root.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts +16 -0
- package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native-internal/variables.d.ts +8 -0
- package/dist/typescript/commonjs/src/native-internal/variables.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime.native.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime.types.d.ts +54 -0
- package/dist/typescript/commonjs/src/runtime.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts +24 -0
- package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/utilities/equality.d.ts +2 -0
- package/dist/typescript/commonjs/src/utilities/equality.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/utilities/index.d.ts +5 -0
- package/dist/typescript/commonjs/src/utilities/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/utilities/specificity.d.ts +13 -0
- package/dist/typescript/commonjs/src/utilities/specificity.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts +17 -0
- package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/web/api.d.ts +16 -0
- package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/web/assign-style.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/web/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/web/metro.d.ts.map +1 -0
- 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/index.d.ts +3 -0
- package/dist/typescript/module/src/babel/index.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 +7 -4
- 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 +35 -17
- 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 +23 -12
- package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/index.d.ts +2 -2
- package/dist/typescript/module/src/compiler/index.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/individual-transforms.d.ts +10 -0
- package/dist/typescript/module/src/compiler/individual-transforms.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/inline-variables.d.ts +4 -0
- package/dist/typescript/module/src/compiler/inline-variables.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/keyframes.d.ts +3 -3
- package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts +30 -0
- package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -0
- 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 +4 -3
- 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 +12 -11
- package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts +2 -11
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Button.d.ts +2 -11
- package/dist/typescript/module/src/components/Button.d.ts.map +1 -1
- package/dist/typescript/module/src/components/FlatList.d.ts +4 -8
- package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Image.d.ts +2 -6
- package/dist/typescript/module/src/components/Image.d.ts.map +1 -1
- package/dist/typescript/module/src/components/ImageBackground.d.ts +4 -0
- package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -0
- package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +4 -0
- package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -0
- package/dist/typescript/module/src/components/Pressable.d.ts +4 -0
- package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -0
- package/dist/typescript/module/src/components/SafeAreaProvider.d.ts +2 -0
- package/dist/typescript/module/src/components/SafeAreaProvider.d.ts.map +1 -0
- package/dist/typescript/module/src/components/ScrollView.d.ts +4 -0
- package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -0
- package/dist/typescript/module/src/components/Switch.d.ts +2 -6
- package/dist/typescript/module/src/components/Switch.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Text.d.ts +2 -6
- package/dist/typescript/module/src/components/Text.d.ts.map +1 -1
- package/dist/typescript/module/src/components/TextInput.d.ts +2 -6
- package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -1
- package/dist/typescript/module/src/components/TouchableHighlight.d.ts +4 -0
- package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -0
- package/dist/typescript/module/src/components/TouchableOpacity.d.ts +4 -0
- package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -0
- package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +4 -0
- package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
- package/dist/typescript/module/src/components/View.d.ts +2 -6
- package/dist/typescript/module/src/components/View.d.ts.map +1 -1
- package/dist/typescript/module/src/components/VirtualizedList.d.ts +6 -0
- package/dist/typescript/module/src/components/VirtualizedList.d.ts.map +1 -0
- package/dist/typescript/module/src/components/copyComponentProperties.d.ts +5 -0
- package/dist/typescript/module/src/components/copyComponentProperties.d.ts.map +1 -0
- package/dist/typescript/module/src/components/index.d.cts +2 -0
- package/dist/typescript/module/src/components/index.d.cts.map +1 -0
- package/dist/typescript/module/src/components/index.d.ts +16 -8
- package/dist/typescript/module/src/components/index.d.ts.map +1 -1
- package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts +2 -1
- package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
- package/dist/typescript/module/src/index.d.ts +0 -1
- package/dist/typescript/module/src/index.d.ts.map +1 -1
- package/dist/typescript/module/src/jest/index.d.ts +4 -12
- package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/cache-version.d.ts +8 -0
- package/dist/typescript/module/src/metro/cache-version.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/index.d.ts +9 -5
- package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/metro-transformer.d.ts +10 -5
- package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/override.d.ts +2 -0
- package/dist/typescript/module/src/metro/override.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/typescript.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/warnings.d.ts +13 -0
- package/dist/typescript/module/src/metro/warnings.d.ts.map +1 -0
- package/dist/typescript/module/src/native/api.d.ts +22 -0
- package/dist/typescript/module/src/native/api.d.ts.map +1 -0
- package/dist/typescript/module/src/native/conditions/attributes.d.ts +4 -0
- package/dist/typescript/module/src/native/conditions/attributes.d.ts.map +1 -0
- package/dist/typescript/module/src/native/conditions/container-query.d.ts +7 -0
- package/dist/typescript/module/src/native/conditions/container-query.d.ts.map +1 -0
- package/dist/typescript/module/src/native/conditions/guards.d.ts +6 -0
- package/dist/typescript/module/src/native/conditions/guards.d.ts.map +1 -0
- package/dist/typescript/module/src/native/conditions/index.d.ts +6 -0
- package/dist/typescript/module/src/native/conditions/index.d.ts.map +1 -0
- package/dist/typescript/module/src/native/conditions/media-query.d.ts +4 -0
- package/dist/typescript/module/src/native/conditions/media-query.d.ts.map +1 -0
- package/dist/typescript/module/src/native/index.d.ts +4 -0
- package/dist/typescript/module/src/native/index.d.ts.map +1 -0
- package/dist/typescript/module/src/native/objects.d.ts.map +1 -0
- package/dist/typescript/module/src/native/react/interaction.d.ts +6 -0
- package/dist/typescript/module/src/native/react/interaction.d.ts.map +1 -0
- package/dist/typescript/module/src/native/react/rules.d.ts +12 -0
- package/dist/typescript/module/src/native/react/rules.d.ts.map +1 -0
- package/dist/typescript/module/src/native/react/useNativeCss.d.ts +35 -0
- package/dist/typescript/module/src/native/react/useNativeCss.d.ts.map +1 -0
- package/dist/typescript/module/src/native/react/usePassthrough.d.ts +4 -0
- package/dist/typescript/module/src/native/react/usePassthrough.d.ts.map +1 -0
- package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts +2 -0
- package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts.map +1 -0
- package/dist/typescript/module/src/native/reactivity.d.ts +70 -0
- package/dist/typescript/module/src/native/reactivity.d.ts.map +1 -0
- package/dist/typescript/module/src/native/reanimated.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/calculate-props.d.ts +19 -0
- package/dist/typescript/module/src/native/styles/calculate-props.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/constants.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/defaults.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts +4 -0
- package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/calc.d.ts +3 -0
- package/dist/typescript/module/src/native/styles/functions/calc.d.ts.map +1 -0
- 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 +14 -0
- package/dist/typescript/module/src/native/styles/functions/filters.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/index.d.ts +9 -0
- package/dist/typescript/module/src/native/styles/functions/index.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts +5 -0
- package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts +8 -0
- package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts +5 -0
- package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts +7 -0
- package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/index.d.ts +31 -0
- package/dist/typescript/module/src/native/styles/index.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/line-height.d.ts +3 -0
- package/dist/typescript/module/src/native/styles/line-height.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/resolve.d.ts +21 -0
- package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -0
- 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 +11 -0
- package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts +5 -0
- package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/border.d.ts +2 -0
- package/dist/typescript/module/src/native/styles/shorthands/border.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts +3 -0
- package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/index.d.ts +7 -0
- package/dist/typescript/module/src/native/styles/shorthands/index.d.ts.map +1 -0
- 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 +2 -0
- package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts +7 -0
- package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/units.d.ts +6 -0
- package/dist/typescript/module/src/native/styles/units.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/variables.d.ts +6 -0
- package/dist/typescript/module/src/native/styles/variables.d.ts.map +1 -0
- package/dist/typescript/module/src/native-internal/index.d.ts +4 -0
- package/dist/typescript/module/src/native-internal/index.d.ts.map +1 -0
- package/dist/typescript/module/src/native-internal/root.d.ts +56 -0
- package/dist/typescript/module/src/native-internal/root.d.ts.map +1 -0
- package/dist/typescript/module/src/native-internal/style-collection.d.ts +16 -0
- package/dist/typescript/module/src/native-internal/style-collection.d.ts.map +1 -0
- package/dist/typescript/module/src/native-internal/variables.d.ts +8 -0
- package/dist/typescript/module/src/native-internal/variables.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime.d.ts +2 -0
- package/dist/typescript/module/src/runtime.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime.native.d.ts +2 -0
- package/dist/typescript/module/src/runtime.native.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime.types.d.ts +54 -0
- package/dist/typescript/module/src/runtime.types.d.ts.map +1 -0
- package/dist/typescript/module/src/utilities/dot-notation.types.d.ts +24 -0
- package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -0
- package/dist/typescript/module/src/utilities/equality.d.ts +2 -0
- package/dist/typescript/module/src/utilities/equality.d.ts.map +1 -0
- package/dist/typescript/module/src/utilities/index.d.ts +5 -0
- package/dist/typescript/module/src/utilities/index.d.ts.map +1 -0
- package/dist/typescript/module/src/utilities/specificity.d.ts +13 -0
- package/dist/typescript/module/src/utilities/specificity.d.ts.map +1 -0
- package/dist/typescript/module/src/utilities/style-descriptor.d.ts +17 -0
- package/dist/typescript/module/src/utilities/style-descriptor.d.ts.map +1 -0
- package/dist/typescript/module/src/web/api.d.ts +16 -0
- package/dist/typescript/module/src/web/api.d.ts.map +1 -0
- package/dist/typescript/module/src/web/assign-style.d.ts.map +1 -0
- package/dist/typescript/module/src/web/index.d.ts +4 -0
- package/dist/typescript/module/src/web/index.d.ts.map +1 -0
- package/dist/typescript/module/src/web/metro.d.ts.map +1 -0
- package/node/babel.mjs +4 -0
- package/node/compiler.mjs +2 -0
- package/node/metro.mjs +2 -0
- package/package.json +154 -76
- package/src/babel/helpers.ts +8 -1
- package/src/babel/import-plugin.ts +31 -16
- package/src/babel/index.ts +2 -2
- package/src/babel/react-native-web.ts +32 -4
- package/src/babel/react-native.ts +9 -4
- package/src/compiler/atRules.ts +78 -43
- package/src/compiler/compiler.ts +382 -77
- package/src/compiler/compiler.types.ts +44 -17
- package/src/compiler/container-query.ts +8 -3
- package/src/compiler/declarations.ts +725 -356
- package/src/compiler/individual-transforms.ts +129 -0
- package/src/compiler/inline-variables.ts +276 -0
- package/src/compiler/keyframes.ts +2 -2
- package/src/compiler/lightningcss-loader.ts +60 -0
- package/src/compiler/media-query.ts +20 -9
- package/src/compiler/pseudo-elements.ts +1 -1
- package/src/compiler/selector-builder.ts +48 -15
- package/src/compiler/selectors.ts +1 -1
- package/src/compiler/stylesheet.ts +67 -32
- package/src/compiler/supports.ts +2 -2
- package/src/components/ActivityIndicator.tsx +11 -8
- package/src/components/Button.tsx +11 -6
- package/src/components/FlatList.tsx +21 -10
- package/src/components/Image.tsx +11 -6
- package/src/components/ImageBackground.tsx +26 -0
- package/src/components/KeyboardAvoidingView.tsx +26 -0
- package/src/components/Pressable.tsx +22 -0
- package/src/components/SafeAreaProvider.tsx +1 -0
- package/src/components/ScrollView.tsx +23 -0
- package/src/components/Switch.tsx +9 -4
- package/src/components/Text.tsx +9 -4
- package/src/components/TextInput.tsx +17 -7
- package/src/components/TouchableHighlight.tsx +25 -0
- package/src/components/TouchableOpacity.tsx +25 -0
- package/src/components/TouchableWithoutFeedback.tsx +25 -0
- package/src/components/View.tsx +9 -4
- package/src/components/VirtualizedList.tsx +37 -0
- package/src/components/copyComponentProperties.ts +21 -0
- package/src/components/index.cts +311 -0
- package/src/components/index.ts +17 -0
- package/src/components/react-native-safe-area-context.native.tsx +26 -2
- package/src/index.ts +0 -2
- package/src/jest/index.ts +12 -8
- package/src/metro/cache-version.ts +48 -0
- package/src/metro/index.ts +21 -170
- package/src/metro/injection-code.ts +1 -1
- package/src/metro/metro-transformer.ts +41 -9
- package/src/metro/override.ts +1 -0
- package/src/metro/resolver.ts +29 -28
- package/src/metro/typescript.ts +53 -6
- package/src/metro/warnings.ts +187 -0
- package/src/native/api.tsx +134 -0
- package/src/native/conditions/attributes.ts +71 -0
- package/src/native/conditions/container-query.ts +164 -0
- package/src/native/conditions/guards.ts +56 -0
- package/src/native/conditions/index.ts +55 -0
- package/src/native/conditions/media-query.ts +99 -0
- package/src/native/index.ts +3 -0
- package/src/native/objects.ts +99 -0
- package/src/native/react/interaction.ts +95 -0
- package/src/native/react/rules.ts +349 -0
- package/src/native/react/useNativeCss.ts +282 -0
- package/src/native/react/usePassthrough.ts +52 -0
- package/src/native/reactivity.ts +346 -0
- package/src/native/reanimated.ts +41 -0
- package/src/native/styles/calculate-props.ts +368 -0
- package/src/native/styles/functions/animation-timing.ts +46 -0
- package/src/native/styles/functions/color-mix.ts +82 -0
- package/src/native/styles/functions/filters.ts +114 -0
- package/src/native/styles/functions/index.ts +8 -0
- package/src/native/styles/functions/numeric-functions.ts +39 -0
- package/src/native/styles/functions/platform-functions.ts +52 -0
- package/src/native/styles/functions/string-functions.ts +42 -0
- package/src/native/styles/functions/transform-functions.ts +132 -0
- package/src/native/styles/index.ts +580 -0
- package/src/native/styles/line-height.ts +25 -0
- package/src/native/styles/resolve.ts +323 -0
- package/src/native/styles/scale-factor.ts +9 -0
- package/src/native/styles/shorthands/_handler.ts +135 -0
- package/src/native/styles/shorthands/animation.ts +137 -0
- package/src/native/styles/shorthands/box-shadow.ts +92 -0
- package/src/native/styles/shorthands/index.ts +6 -0
- package/src/native/styles/shorthands/logical-border-width.ts +32 -0
- package/src/native/styles/shorthands/transform.ts +48 -0
- package/src/native/styles/units.ts +62 -0
- package/src/native/styles/variables.ts +294 -0
- package/src/native-internal/README.md +11 -0
- package/src/native-internal/index.ts +3 -0
- package/src/native-internal/root.ts +114 -0
- package/src/native-internal/style-collection.ts +117 -0
- package/src/native-internal/variables.tsx +38 -0
- package/src/runtime.types.ts +159 -0
- package/src/utilities/dot-notation.types.ts +126 -0
- package/src/utilities/equality.ts +41 -0
- package/src/utilities/index.ts +4 -0
- package/src/utilities/specificity.ts +46 -0
- package/src/utilities/style-descriptor.ts +46 -0
- package/src/web/api.tsx +119 -0
- package/src/web/assign-style.ts +27 -0
- package/types.d.ts +14 -31
- package/dist/commonjs/compiler/inheritance.test.js +0 -78
- package/dist/commonjs/compiler/inheritance.test.js.map +0 -1
- package/dist/commonjs/poison.pill.js +0 -39
- package/dist/commonjs/poison.pill.js.map +0 -1
- package/dist/commonjs/runtime/index.js +0 -17
- package/dist/commonjs/runtime/index.js.map +0 -1
- package/dist/commonjs/runtime/native/api.js +0 -96
- package/dist/commonjs/runtime/native/api.js.map +0 -1
- package/dist/commonjs/runtime/native/conditions/attributes.js +0 -42
- package/dist/commonjs/runtime/native/conditions/attributes.js.map +0 -1
- package/dist/commonjs/runtime/native/conditions/container-query.js +0 -123
- package/dist/commonjs/runtime/native/conditions/container-query.js.map +0 -1
- package/dist/commonjs/runtime/native/conditions/guards.js +0 -33
- package/dist/commonjs/runtime/native/conditions/guards.js.map +0 -1
- package/dist/commonjs/runtime/native/conditions/index.js.map +0 -1
- package/dist/commonjs/runtime/native/conditions/media-query.js +0 -98
- package/dist/commonjs/runtime/native/conditions/media-query.js.map +0 -1
- package/dist/commonjs/runtime/native/index.js +0 -28
- package/dist/commonjs/runtime/native/index.js.map +0 -1
- package/dist/commonjs/runtime/native/metro.js.map +0 -1
- package/dist/commonjs/runtime/native/react/interaction.js +0 -63
- package/dist/commonjs/runtime/native/react/interaction.js.map +0 -1
- package/dist/commonjs/runtime/native/react/rules.js +0 -259
- package/dist/commonjs/runtime/native/react/rules.js.map +0 -1
- package/dist/commonjs/runtime/native/react/useNativeCss.js +0 -159
- package/dist/commonjs/runtime/native/react/useNativeCss.js.map +0 -1
- package/dist/commonjs/runtime/native/react/usePassthrough.js +0 -50
- package/dist/commonjs/runtime/native/react/usePassthrough.js.map +0 -1
- package/dist/commonjs/runtime/native/reactivity.js +0 -189
- package/dist/commonjs/runtime/native/reactivity.js.map +0 -1
- package/dist/commonjs/runtime/native/reanimated.js +0 -17
- package/dist/commonjs/runtime/native/reanimated.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/calculate-props.js +0 -148
- package/dist/commonjs/runtime/native/styles/calculate-props.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/constants.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/defaults.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/functions/animation-timing.js +0 -34
- package/dist/commonjs/runtime/native/styles/functions/animation-timing.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/functions/calc.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/functions/filters.js +0 -84
- package/dist/commonjs/runtime/native/styles/functions/filters.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/functions/index.js +0 -83
- package/dist/commonjs/runtime/native/styles/functions/index.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/functions/numeric-functions.js +0 -32
- package/dist/commonjs/runtime/native/styles/functions/numeric-functions.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/functions/platform-functions.js +0 -46
- package/dist/commonjs/runtime/native/styles/functions/platform-functions.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/functions/string-functions.js +0 -23
- package/dist/commonjs/runtime/native/styles/functions/string-functions.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/functions/transform-functions.js +0 -121
- package/dist/commonjs/runtime/native/styles/functions/transform-functions.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/index.js +0 -115
- package/dist/commonjs/runtime/native/styles/index.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/resolve.js +0 -106
- package/dist/commonjs/runtime/native/styles/resolve.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/shorthands/_handler.js +0 -79
- package/dist/commonjs/runtime/native/styles/shorthands/_handler.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/shorthands/animation.js +0 -57
- package/dist/commonjs/runtime/native/styles/shorthands/animation.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/shorthands/border.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js +0 -50
- package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/shorthands/index.js +0 -61
- package/dist/commonjs/runtime/native/styles/shorthands/index.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/shorthands/text-shadow.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/shorthands/transform.js +0 -23
- package/dist/commonjs/runtime/native/styles/shorthands/transform.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/units.js +0 -52
- package/dist/commonjs/runtime/native/styles/units.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/variables.js +0 -79
- package/dist/commonjs/runtime/native/styles/variables.js.map +0 -1
- package/dist/commonjs/runtime/runtime.js.map +0 -1
- package/dist/commonjs/runtime/runtime.native.js.map +0 -1
- package/dist/commonjs/runtime/runtime.types.js.map +0 -1
- package/dist/commonjs/runtime/utils/components.js +0 -18
- package/dist/commonjs/runtime/utils/components.js.map +0 -1
- package/dist/commonjs/runtime/utils/dot-notation.types.js +0 -2
- package/dist/commonjs/runtime/utils/dot-notation.types.js.map +0 -1
- package/dist/commonjs/runtime/utils/index.js +0 -61
- package/dist/commonjs/runtime/utils/index.js.map +0 -1
- package/dist/commonjs/runtime/utils/objects.js +0 -92
- package/dist/commonjs/runtime/utils/objects.js.map +0 -1
- package/dist/commonjs/runtime/utils/specificity.js +0 -44
- package/dist/commonjs/runtime/utils/specificity.js.map +0 -1
- package/dist/commonjs/runtime/utils/style-value.js +0 -21
- package/dist/commonjs/runtime/utils/style-value.js.map +0 -1
- package/dist/commonjs/runtime/utils/utils.types.js +0 -6
- package/dist/commonjs/runtime/utils/utils.types.js.map +0 -1
- package/dist/commonjs/runtime/web/api.js +0 -68
- package/dist/commonjs/runtime/web/api.js.map +0 -1
- package/dist/commonjs/runtime/web/assign-style.js +0 -27
- package/dist/commonjs/runtime/web/assign-style.js.map +0 -1
- package/dist/commonjs/runtime/web/index.js.map +0 -1
- package/dist/commonjs/runtime/web/metro.js +0 -6
- package/dist/commonjs/runtime/web/metro.js.map +0 -1
- package/dist/commonjs/style-collection/index.js +0 -110
- package/dist/commonjs/style-collection/index.js.map +0 -1
- package/dist/commonjs/style-collection/root.js +0 -28
- package/dist/commonjs/style-collection/root.js.map +0 -1
- package/dist/module/compiler/inheritance.test.js +0 -78
- package/dist/module/compiler/inheritance.test.js.map +0 -1
- package/dist/module/poison.pill.js +0 -37
- package/dist/module/poison.pill.js.map +0 -1
- package/dist/module/runtime/index.js +0 -9
- package/dist/module/runtime/index.js.map +0 -1
- package/dist/module/runtime/native/api.js +0 -76
- package/dist/module/runtime/native/api.js.map +0 -1
- package/dist/module/runtime/native/conditions/attributes.js +0 -38
- package/dist/module/runtime/native/conditions/attributes.js.map +0 -1
- package/dist/module/runtime/native/conditions/container-query.js +0 -117
- package/dist/module/runtime/native/conditions/container-query.js.map +0 -1
- package/dist/module/runtime/native/conditions/guards.js +0 -29
- package/dist/module/runtime/native/conditions/guards.js.map +0 -1
- package/dist/module/runtime/native/conditions/index.js.map +0 -1
- package/dist/module/runtime/native/conditions/media-query.js +0 -93
- package/dist/module/runtime/native/conditions/media-query.js.map +0 -1
- package/dist/module/runtime/native/index.js +0 -5
- package/dist/module/runtime/native/index.js.map +0 -1
- package/dist/module/runtime/native/metro.js.map +0 -1
- package/dist/module/runtime/native/react/interaction.js +0 -59
- package/dist/module/runtime/native/react/interaction.js.map +0 -1
- package/dist/module/runtime/native/react/rules.js +0 -251
- package/dist/module/runtime/native/react/rules.js.map +0 -1
- package/dist/module/runtime/native/react/useNativeCss.js +0 -153
- package/dist/module/runtime/native/react/useNativeCss.js.map +0 -1
- package/dist/module/runtime/native/react/usePassthrough.js +0 -45
- package/dist/module/runtime/native/react/usePassthrough.js.map +0 -1
- package/dist/module/runtime/native/reactivity.js +0 -177
- package/dist/module/runtime/native/reactivity.js.map +0 -1
- package/dist/module/runtime/native/reanimated.js +0 -13
- package/dist/module/runtime/native/reanimated.js.map +0 -1
- package/dist/module/runtime/native/styles/calculate-props.js +0 -143
- package/dist/module/runtime/native/styles/calculate-props.js.map +0 -1
- package/dist/module/runtime/native/styles/constants.js.map +0 -1
- package/dist/module/runtime/native/styles/defaults.js.map +0 -1
- package/dist/module/runtime/native/styles/functions/animation-timing.js +0 -30
- package/dist/module/runtime/native/styles/functions/animation-timing.js.map +0 -1
- package/dist/module/runtime/native/styles/functions/calc.js.map +0 -1
- package/dist/module/runtime/native/styles/functions/filters.js +0 -70
- package/dist/module/runtime/native/styles/functions/filters.js.map +0 -1
- package/dist/module/runtime/native/styles/functions/index.js +0 -10
- package/dist/module/runtime/native/styles/functions/index.js.map +0 -1
- package/dist/module/runtime/native/styles/functions/numeric-functions.js +0 -25
- package/dist/module/runtime/native/styles/functions/numeric-functions.js.map +0 -1
- package/dist/module/runtime/native/styles/functions/platform-functions.js +0 -36
- package/dist/module/runtime/native/styles/functions/platform-functions.js.map +0 -1
- package/dist/module/runtime/native/styles/functions/string-functions.js +0 -18
- package/dist/module/runtime/native/styles/functions/string-functions.js.map +0 -1
- package/dist/module/runtime/native/styles/functions/transform-functions.js +0 -114
- package/dist/module/runtime/native/styles/functions/transform-functions.js.map +0 -1
- package/dist/module/runtime/native/styles/index.js +0 -110
- package/dist/module/runtime/native/styles/index.js.map +0 -1
- package/dist/module/runtime/native/styles/resolve.js +0 -101
- package/dist/module/runtime/native/styles/resolve.js.map +0 -1
- package/dist/module/runtime/native/styles/shorthands/_handler.js +0 -74
- package/dist/module/runtime/native/styles/shorthands/_handler.js.map +0 -1
- package/dist/module/runtime/native/styles/shorthands/animation.js +0 -51
- package/dist/module/runtime/native/styles/shorthands/animation.js.map +0 -1
- package/dist/module/runtime/native/styles/shorthands/border.js.map +0 -1
- package/dist/module/runtime/native/styles/shorthands/box-shadow.js +0 -45
- package/dist/module/runtime/native/styles/shorthands/box-shadow.js.map +0 -1
- package/dist/module/runtime/native/styles/shorthands/index.js +0 -8
- package/dist/module/runtime/native/styles/shorthands/index.js.map +0 -1
- package/dist/module/runtime/native/styles/shorthands/text-shadow.js.map +0 -1
- package/dist/module/runtime/native/styles/shorthands/transform.js +0 -18
- package/dist/module/runtime/native/styles/shorthands/transform.js.map +0 -1
- package/dist/module/runtime/native/styles/units.js +0 -43
- package/dist/module/runtime/native/styles/units.js.map +0 -1
- package/dist/module/runtime/native/styles/variables.js +0 -75
- package/dist/module/runtime/native/styles/variables.js.map +0 -1
- package/dist/module/runtime/runtime.js.map +0 -1
- package/dist/module/runtime/runtime.native.js.map +0 -1
- package/dist/module/runtime/runtime.types.js.map +0 -1
- package/dist/module/runtime/utils/components.js +0 -14
- package/dist/module/runtime/utils/components.js.map +0 -1
- package/dist/module/runtime/utils/dot-notation.types.js +0 -2
- package/dist/module/runtime/utils/dot-notation.types.js.map +0 -1
- package/dist/module/runtime/utils/index.js +0 -8
- package/dist/module/runtime/utils/index.js.map +0 -1
- package/dist/module/runtime/utils/objects.js +0 -84
- package/dist/module/runtime/utils/objects.js.map +0 -1
- package/dist/module/runtime/utils/specificity.js +0 -39
- package/dist/module/runtime/utils/specificity.js.map +0 -1
- package/dist/module/runtime/utils/style-value.js +0 -16
- package/dist/module/runtime/utils/style-value.js.map +0 -1
- package/dist/module/runtime/utils/utils.types.js +0 -4
- package/dist/module/runtime/utils/utils.types.js.map +0 -1
- package/dist/module/runtime/web/api.js +0 -59
- package/dist/module/runtime/web/api.js.map +0 -1
- package/dist/module/runtime/web/assign-style.js +0 -23
- package/dist/module/runtime/web/assign-style.js.map +0 -1
- package/dist/module/runtime/web/index.js.map +0 -1
- package/dist/module/runtime/web/metro.js +0 -5
- package/dist/module/runtime/web/metro.js.map +0 -1
- package/dist/module/style-collection/index.js +0 -95
- package/dist/module/style-collection/index.js.map +0 -1
- package/dist/module/style-collection/root.js +0 -24
- package/dist/module/style-collection/root.js.map +0 -1
- package/dist/typescript/commonjs/example/app.config.d.ts +0 -4
- package/dist/typescript/commonjs/example/app.config.d.ts.map +0 -1
- package/dist/typescript/commonjs/example/src/App.d.ts +0 -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/commonjs/src/poison.pill.d.ts +0 -2
- package/dist/typescript/commonjs/src/poison.pill.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/index.d.ts +0 -7
- package/dist/typescript/commonjs/src/runtime/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/api.d.ts +0 -19
- package/dist/typescript/commonjs/src/runtime/native/api.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts +0 -5
- package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts +0 -7
- package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts +0 -5
- package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts +0 -6
- package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts +0 -4
- package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/index.d.ts +0 -4
- package/dist/typescript/commonjs/src/runtime/native/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/metro.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts +0 -6
- package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts +0 -7
- package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts +0 -38
- package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts +0 -55
- package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/reanimated.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts +0 -10
- package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/animation-timing.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/calc.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/filters.d.ts +0 -12
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/filters.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/index.d.ts +0 -8
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/numeric-functions.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/platform-functions.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/string-functions.d.ts +0 -3
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/string-functions.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/transform-functions.d.ts +0 -5
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/transform-functions.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts +0 -19
- package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts +0 -18
- package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/_handler.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts +0 -4
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/border.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/index.d.ts +0 -6
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/transform.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts +0 -5
- package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/runtime.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts +0 -47
- package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/utils/components.d.ts +0 -2
- package/dist/typescript/commonjs/src/runtime/utils/components.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts +0 -23
- package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/utils/index.d.ts +0 -6
- package/dist/typescript/commonjs/src/runtime/utils/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts +0 -13
- package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts +0 -4
- package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts +0 -5
- package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/web/api.d.ts +0 -10
- package/dist/typescript/commonjs/src/runtime/web/api.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/web/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/web/metro.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/style-collection/index.d.ts +0 -14
- package/dist/typescript/commonjs/src/style-collection/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/style-collection/root.d.ts +0 -11
- package/dist/typescript/commonjs/src/style-collection/root.d.ts.map +0 -1
- package/dist/typescript/module/example/app.config.d.ts +0 -4
- package/dist/typescript/module/example/app.config.d.ts.map +0 -1
- package/dist/typescript/module/example/src/App.d.ts +0 -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/dist/typescript/module/src/poison.pill.d.ts +0 -2
- package/dist/typescript/module/src/poison.pill.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/index.d.ts +0 -7
- package/dist/typescript/module/src/runtime/index.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/api.d.ts +0 -19
- package/dist/typescript/module/src/runtime/native/api.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts +0 -5
- package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts +0 -7
- package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts +0 -5
- package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/conditions/index.d.ts +0 -6
- package/dist/typescript/module/src/runtime/native/conditions/index.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts +0 -4
- package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/index.d.ts +0 -4
- package/dist/typescript/module/src/runtime/native/index.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/metro.d.ts +0 -2
- package/dist/typescript/module/src/runtime/native/metro.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/react/interaction.d.ts +0 -6
- package/dist/typescript/module/src/runtime/native/react/interaction.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/react/rules.d.ts +0 -7
- package/dist/typescript/module/src/runtime/native/react/rules.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts +0 -38
- package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts +0 -4
- package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/reactivity.d.ts +0 -55
- package/dist/typescript/module/src/runtime/native/reactivity.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/reanimated.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts +0 -10
- package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/constants.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/functions/animation-timing.d.ts +0 -4
- package/dist/typescript/module/src/runtime/native/styles/functions/animation-timing.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/functions/calc.d.ts +0 -3
- package/dist/typescript/module/src/runtime/native/styles/functions/calc.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/functions/filters.d.ts +0 -12
- package/dist/typescript/module/src/runtime/native/styles/functions/filters.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/functions/index.d.ts +0 -8
- package/dist/typescript/module/src/runtime/native/styles/functions/index.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/functions/numeric-functions.d.ts +0 -5
- package/dist/typescript/module/src/runtime/native/styles/functions/numeric-functions.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/functions/platform-functions.d.ts +0 -8
- package/dist/typescript/module/src/runtime/native/styles/functions/platform-functions.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/functions/string-functions.d.ts +0 -3
- package/dist/typescript/module/src/runtime/native/styles/functions/string-functions.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/functions/transform-functions.d.ts +0 -5
- package/dist/typescript/module/src/runtime/native/styles/functions/transform-functions.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/index.d.ts +0 -19
- package/dist/typescript/module/src/runtime/native/styles/index.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts +0 -18
- package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/shorthands/_handler.d.ts +0 -11
- package/dist/typescript/module/src/runtime/native/styles/shorthands/_handler.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts +0 -4
- package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/shorthands/border.d.ts +0 -2
- package/dist/typescript/module/src/runtime/native/styles/shorthands/border.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/shorthands/box-shadow.d.ts +0 -3
- package/dist/typescript/module/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/shorthands/index.d.ts +0 -6
- package/dist/typescript/module/src/runtime/native/styles/shorthands/index.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/shorthands/text-shadow.d.ts +0 -2
- package/dist/typescript/module/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/shorthands/transform.d.ts +0 -7
- package/dist/typescript/module/src/runtime/native/styles/shorthands/transform.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/units.d.ts +0 -6
- package/dist/typescript/module/src/runtime/native/styles/units.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/variables.d.ts +0 -5
- package/dist/typescript/module/src/runtime/native/styles/variables.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/runtime.d.ts +0 -2
- package/dist/typescript/module/src/runtime/runtime.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/runtime.native.d.ts +0 -2
- package/dist/typescript/module/src/runtime/runtime.native.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/runtime.types.d.ts +0 -47
- package/dist/typescript/module/src/runtime/runtime.types.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/utils/components.d.ts +0 -2
- package/dist/typescript/module/src/runtime/utils/components.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts +0 -23
- package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/utils/index.d.ts +0 -6
- package/dist/typescript/module/src/runtime/utils/index.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/utils/objects.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/utils/specificity.d.ts +0 -13
- package/dist/typescript/module/src/runtime/utils/specificity.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/utils/style-value.d.ts +0 -4
- package/dist/typescript/module/src/runtime/utils/style-value.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/utils/utils.types.d.ts +0 -5
- package/dist/typescript/module/src/runtime/utils/utils.types.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/web/api.d.ts +0 -10
- package/dist/typescript/module/src/runtime/web/api.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/web/assign-style.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/web/index.d.ts +0 -4
- package/dist/typescript/module/src/runtime/web/index.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/web/metro.d.ts +0 -2
- package/dist/typescript/module/src/runtime/web/metro.d.ts.map +0 -1
- package/dist/typescript/module/src/style-collection/index.d.ts +0 -14
- package/dist/typescript/module/src/style-collection/index.d.ts.map +0 -1
- package/dist/typescript/module/src/style-collection/root.d.ts +0 -11
- package/dist/typescript/module/src/style-collection/root.d.ts.map +0 -1
- package/src/compiler/inheritance.test.ts +0 -121
- package/src/components/index.tsx +0 -10
- package/src/runtime/index.ts +0 -7
- package/src/runtime/native/api.ts +0 -108
- package/src/runtime/native/conditions/attributes.ts +0 -52
- package/src/runtime/native/conditions/container-query.ts +0 -162
- package/src/runtime/native/conditions/guards.ts +0 -44
- package/src/runtime/native/conditions/index.ts +0 -54
- package/src/runtime/native/conditions/media-query.ts +0 -98
- package/src/runtime/native/index.ts +0 -4
- package/src/runtime/native/react/interaction.ts +0 -90
- package/src/runtime/native/react/rules.ts +0 -336
- package/src/runtime/native/react/useNativeCss.ts +0 -203
- package/src/runtime/native/react/usePassthrough.ts +0 -51
- package/src/runtime/native/reactivity.ts +0 -255
- package/src/runtime/native/reanimated.ts +0 -22
- package/src/runtime/native/styles/calculate-props.ts +0 -197
- package/src/runtime/native/styles/functions/animation-timing.ts +0 -44
- package/src/runtime/native/styles/functions/filters.ts +0 -98
- package/src/runtime/native/styles/functions/index.ts +0 -7
- package/src/runtime/native/styles/functions/numeric-functions.ts +0 -38
- package/src/runtime/native/styles/functions/platform-functions.ts +0 -50
- package/src/runtime/native/styles/functions/string-functions.ts +0 -22
- package/src/runtime/native/styles/functions/transform-functions.ts +0 -84
- package/src/runtime/native/styles/index.ts +0 -197
- package/src/runtime/native/styles/resolve.ts +0 -162
- package/src/runtime/native/styles/shorthands/_handler.ts +0 -121
- package/src/runtime/native/styles/shorthands/animation.ts +0 -123
- package/src/runtime/native/styles/shorthands/box-shadow.ts +0 -74
- package/src/runtime/native/styles/shorthands/index.ts +0 -5
- package/src/runtime/native/styles/shorthands/transform.ts +0 -23
- package/src/runtime/native/styles/units.ts +0 -57
- package/src/runtime/native/styles/variables.ts +0 -88
- package/src/runtime/runtime.types.ts +0 -130
- package/src/runtime/utils/components.ts +0 -15
- package/src/runtime/utils/dot-notation.types.ts +0 -118
- package/src/runtime/utils/index.ts +0 -5
- package/src/runtime/utils/objects.ts +0 -109
- package/src/runtime/utils/specificity.ts +0 -45
- package/src/runtime/utils/style-value.ts +0 -24
- package/src/runtime/utils/utils.types.ts +0 -19
- package/src/runtime/web/api.ts +0 -88
- package/src/runtime/web/assign-style.ts +0 -26
- package/src/runtime/web/metro.ts +0 -2
- package/src/style-collection/index.ts +0 -142
- package/src/style-collection/root.ts +0 -35
- /package/dist/commonjs/{runtime/native → native}/conditions/index.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/styles/constants.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/styles/defaults.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/styles/functions/calc.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/styles/shorthands/border.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/styles/shorthands/text-shadow.js +0 -0
- /package/dist/commonjs/{runtime/runtime.js → runtime.js} +0 -0
- /package/dist/commonjs/{runtime/runtime.native.js → runtime.native.js} +0 -0
- /package/dist/commonjs/{runtime/runtime.types.js → runtime.types.js} +0 -0
- /package/dist/commonjs/{runtime/web → web}/index.js +0 -0
- /package/dist/commonjs/{runtime/native → web}/metro.js +0 -0
- /package/dist/module/{runtime/native → native}/conditions/index.js +0 -0
- /package/dist/module/{runtime/native → native}/styles/constants.js +0 -0
- /package/dist/module/{runtime/native → native}/styles/defaults.js +0 -0
- /package/dist/module/{runtime/native → native}/styles/functions/calc.js +0 -0
- /package/dist/module/{runtime/native → native}/styles/shorthands/border.js +0 -0
- /package/dist/module/{runtime/native → native}/styles/shorthands/text-shadow.js +0 -0
- /package/dist/module/{runtime/runtime.js → runtime.js} +0 -0
- /package/dist/module/{runtime/runtime.native.js → runtime.native.js} +0 -0
- /package/dist/module/{runtime/runtime.types.js → runtime.types.js} +0 -0
- /package/dist/module/{runtime/web → web}/index.js +0 -0
- /package/dist/module/{runtime/native → web}/metro.js +0 -0
- /package/dist/typescript/commonjs/src/{runtime/utils → native}/objects.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/react/usePassthrough.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/reanimated.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/constants.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/defaults.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/animation-timing.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/calc.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/numeric-functions.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/platform-functions.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/_handler.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/border.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/box-shadow.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/text-shadow.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/transform.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/units.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/runtime.d.ts → runtime.d.ts} +0 -0
- /package/dist/typescript/commonjs/src/{runtime/runtime.native.d.ts → runtime.native.d.ts} +0 -0
- /package/dist/typescript/commonjs/src/{runtime/web → web}/assign-style.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/web → web}/index.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → web}/metro.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/utils → native}/objects.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/reanimated.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/styles/constants.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/styles/defaults.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/web → web}/assign-style.d.ts +0 -0
- /package/dist/typescript/{commonjs/src/runtime → module/src}/web/metro.d.ts +0 -0
- /package/src/{poison.pill.ts → native/react-native-css-metro-override.ts} +0 -0
- /package/src/{runtime/native → native}/styles/constants.ts +0 -0
- /package/src/{runtime/native → native}/styles/defaults.ts +0 -0
- /package/src/{runtime/native → native}/styles/functions/calc.ts +0 -0
- /package/src/{runtime/native → native}/styles/shorthands/border.ts +0 -0
- /package/src/{runtime/native → native}/styles/shorthands/text-shadow.ts +0 -0
- /package/src/{runtime/runtime.native.ts → runtime.native.ts} +0 -0
- /package/src/{runtime/runtime.ts → runtime.ts} +0 -0
- /package/src/{runtime/web → web}/index.ts +0 -0
- /package/src/{runtime/native → web}/metro.ts +0 -0
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { createContext } from "react";
|
|
5
|
+
import { Appearance, Dimensions } from "react-native";
|
|
6
|
+
export function observable(init, equality = Object.is) {
|
|
7
|
+
let value;
|
|
8
|
+
let isStatic = typeof init !== "function";
|
|
9
|
+
let didInit;
|
|
10
|
+
let lastArg;
|
|
11
|
+
if (typeof init !== "function") {
|
|
12
|
+
value = init;
|
|
13
|
+
didInit = true;
|
|
14
|
+
}
|
|
15
|
+
const observers = new Set();
|
|
16
|
+
const effect = {
|
|
17
|
+
observers: new Set(),
|
|
18
|
+
run: () => {
|
|
19
|
+
if (!isStatic) {
|
|
20
|
+
cleanupEffect(effect);
|
|
21
|
+
const nextValue = init(getter, lastArg);
|
|
22
|
+
if (equality(value, nextValue)) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
value = nextValue;
|
|
26
|
+
}
|
|
27
|
+
notify();
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const getter = observable => observable.get(observers.size > 0 ? effect : undefined);
|
|
31
|
+
function get(subscriber) {
|
|
32
|
+
if (subscriber) {
|
|
33
|
+
if (observers.size === 0 && !isStatic) didInit = false;
|
|
34
|
+
observers.add(subscriber);
|
|
35
|
+
subscriber.observers.add(obs);
|
|
36
|
+
}
|
|
37
|
+
if (!didInit) {
|
|
38
|
+
cleanupEffect(effect);
|
|
39
|
+
value = init(getter, lastArg);
|
|
40
|
+
didInit = observers.size > 0;
|
|
41
|
+
}
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
function set(arg) {
|
|
45
|
+
if (isStatic) {
|
|
46
|
+
if (equality(value, arg)) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
value = arg;
|
|
50
|
+
} else {
|
|
51
|
+
cleanupEffect(effect);
|
|
52
|
+
const nextValue = init(getter, arg);
|
|
53
|
+
didInit = observers.size > 0;
|
|
54
|
+
lastArg = arg;
|
|
55
|
+
if (equality(value, nextValue)) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
value = nextValue;
|
|
59
|
+
}
|
|
60
|
+
notify();
|
|
61
|
+
return obs;
|
|
62
|
+
}
|
|
63
|
+
function notify() {
|
|
64
|
+
Array.from(observers).forEach(observer => {
|
|
65
|
+
if (observableBatch.current) {
|
|
66
|
+
observableBatch.current.add(observer);
|
|
67
|
+
} else {
|
|
68
|
+
observer.run();
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
const obs = {
|
|
73
|
+
observers,
|
|
74
|
+
get,
|
|
75
|
+
set,
|
|
76
|
+
run: effect.run,
|
|
77
|
+
unsubscribe(subscriber) {
|
|
78
|
+
if (observers.delete(subscriber) && observers.size === 0 && !isStatic) {
|
|
79
|
+
cleanupEffect(effect);
|
|
80
|
+
didInit = false;
|
|
81
|
+
}
|
|
82
|
+
subscriber.observers.delete(obs);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
return obs;
|
|
86
|
+
}
|
|
87
|
+
export function cleanupEffect(effect) {
|
|
88
|
+
if (!effect) return;
|
|
89
|
+
const dependencies = effect.dependencies = Array.from(effect.observers);
|
|
90
|
+
// Snapshot before detaching so computed observables return cached values
|
|
91
|
+
effect.snapshots = dependencies.map(observable => [observable, observable.get()]);
|
|
92
|
+
effect.observers.clear();
|
|
93
|
+
for (const dep of dependencies) {
|
|
94
|
+
dep.unsubscribe(effect);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/** Whether any of the effect's dependencies changed since cleanupEffect() */
|
|
99
|
+
export function hasChangedDependencies(effect) {
|
|
100
|
+
const snapshots = effect.snapshots;
|
|
101
|
+
if (!snapshots) return false;
|
|
102
|
+
for (const [observable, value] of snapshots) {
|
|
103
|
+
if (!Object.is(observable.get(), value)) return true;
|
|
104
|
+
}
|
|
105
|
+
return false;
|
|
106
|
+
}
|
|
107
|
+
export function batch(update) {
|
|
108
|
+
const notified = new Set();
|
|
109
|
+
observableBatch.current = notified;
|
|
110
|
+
update();
|
|
111
|
+
|
|
112
|
+
// Deleted before it runs, so an effect notified again during the drain is re-added and runs again
|
|
113
|
+
for (const effect of notified) {
|
|
114
|
+
notified.delete(effect);
|
|
115
|
+
effect.run();
|
|
116
|
+
}
|
|
117
|
+
observableBatch.current = undefined;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/** Family Helpers ************************************************************/
|
|
121
|
+
|
|
122
|
+
export function family(fn) {
|
|
123
|
+
const map = new Map();
|
|
124
|
+
return Object.assign((key, args) => {
|
|
125
|
+
if (map.has(key)) return map.get(key);
|
|
126
|
+
const value = fn(key, args);
|
|
127
|
+
map.set(key, value);
|
|
128
|
+
return value;
|
|
129
|
+
}, {
|
|
130
|
+
delete(key) {
|
|
131
|
+
return map.delete(key);
|
|
132
|
+
},
|
|
133
|
+
deleteIf(key, value) {
|
|
134
|
+
return map.get(key) === value && map.delete(key);
|
|
135
|
+
},
|
|
136
|
+
size() {
|
|
137
|
+
return map.size;
|
|
138
|
+
},
|
|
139
|
+
clear() {
|
|
140
|
+
return map.clear();
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
export function weakFamily(fn) {
|
|
145
|
+
const map = new WeakMap();
|
|
146
|
+
return Object.assign((key, args) => {
|
|
147
|
+
if (map.has(key)) return map.get(key);
|
|
148
|
+
const value = fn(key, args);
|
|
149
|
+
map.set(key, value);
|
|
150
|
+
return value;
|
|
151
|
+
}, {
|
|
152
|
+
has: key => map.has(key)
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/********************************* Variables **********************************/
|
|
157
|
+
|
|
158
|
+
export const VAR_SYMBOL = Symbol.for("react-native-css.var");
|
|
159
|
+
// Variable lookup is presence-keyed, so an entry with no value produces no key rather than one that stops the cascade
|
|
160
|
+
export function toVariableRecord(variables) {
|
|
161
|
+
const record = {};
|
|
162
|
+
for (const [name, value] of Object.entries(variables)) {
|
|
163
|
+
if (value !== undefined) {
|
|
164
|
+
record[name.replace(/^--/, "")] = value;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return record;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/******************************* Process globals ******************************/
|
|
171
|
+
|
|
172
|
+
// The exports map sends import and require to two builds, so one app can evaluate this module twice; one pinned object keeps a single copy of every observable, context and listener
|
|
173
|
+
function createReactivityState() {
|
|
174
|
+
const observableBatch = {};
|
|
175
|
+
const dimensions = observable(Dimensions.get("window"));
|
|
176
|
+
const vw = observable((read, value) => value ?? read(dimensions)?.width);
|
|
177
|
+
const vh = observable((read, value) => value ?? read(dimensions)?.height);
|
|
178
|
+
Dimensions.addEventListener("change", ({
|
|
179
|
+
window
|
|
180
|
+
}) => {
|
|
181
|
+
batch(() => {
|
|
182
|
+
vw.set(window.width);
|
|
183
|
+
vh.set(window.height);
|
|
184
|
+
});
|
|
185
|
+
});
|
|
186
|
+
const colorScheme = observable(Appearance.getColorScheme());
|
|
187
|
+
Appearance.addChangeListener(event => colorScheme.set(event.colorScheme));
|
|
188
|
+
const containerLayoutFamily = weakFamily(() => {
|
|
189
|
+
return observable({
|
|
190
|
+
x: 0,
|
|
191
|
+
y: 0,
|
|
192
|
+
width: 0,
|
|
193
|
+
height: 0
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
return {
|
|
197
|
+
observableBatch,
|
|
198
|
+
hoverFamily: weakFamily(() => observable(false)),
|
|
199
|
+
activeFamily: weakFamily(() => observable(false)),
|
|
200
|
+
focusFamily: weakFamily(() => observable(false)),
|
|
201
|
+
dimensions,
|
|
202
|
+
vw,
|
|
203
|
+
vh,
|
|
204
|
+
colorScheme,
|
|
205
|
+
ContainerContext: /*#__PURE__*/createContext({}),
|
|
206
|
+
containerLayoutFamily,
|
|
207
|
+
containerWidthFamily: weakFamily(key => {
|
|
208
|
+
return observable(read => {
|
|
209
|
+
return read(containerLayoutFamily(key))?.width || 0;
|
|
210
|
+
});
|
|
211
|
+
}),
|
|
212
|
+
containerHeightFamily: weakFamily(key => {
|
|
213
|
+
return observable(read => {
|
|
214
|
+
return read(containerLayoutFamily(key))?.height || 0;
|
|
215
|
+
});
|
|
216
|
+
})
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
globalThis.__react_native_css_reactivity ??= createReactivityState();
|
|
220
|
+
export const {
|
|
221
|
+
observableBatch,
|
|
222
|
+
hoverFamily,
|
|
223
|
+
activeFamily,
|
|
224
|
+
focusFamily,
|
|
225
|
+
dimensions,
|
|
226
|
+
vw,
|
|
227
|
+
vh,
|
|
228
|
+
colorScheme,
|
|
229
|
+
ContainerContext,
|
|
230
|
+
containerLayoutFamily,
|
|
231
|
+
containerWidthFamily,
|
|
232
|
+
containerHeightFamily
|
|
233
|
+
} = globalThis.__react_native_css_reactivity;
|
|
234
|
+
//# sourceMappingURL=reactivity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createContext","Appearance","Dimensions","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","observableBatch","current","unsubscribe","delete","dependencies","snapshots","map","clear","dep","hasChangedDependencies","batch","update","notified","family","fn","Map","assign","key","args","has","deleteIf","weakFamily","WeakMap","VAR_SYMBOL","Symbol","for","toVariableRecord","variables","record","name","entries","replace","createReactivityState","dimensions","vw","read","width","vh","height","addEventListener","window","colorScheme","getColorScheme","addChangeListener","event","containerLayoutFamily","x","y","hoverFamily","activeFamily","focusFamily","ContainerContext","containerWidthFamily","containerHeightFamily","globalThis","__react_native_css_reactivity"],"sourceRoot":"../../../src","sources":["native/reactivity.ts"],"mappings":";;AAAA;AACA,SAASA,aAAa,QAAQ,OAAO;AACrC,SACEC,UAAU,EACVC,UAAU,QAGL,cAAc;AA2BrB,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;M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AAC,EAAEmB,KAAK,IAAI,CAAC;MACrD,CAAC,CAAC;IACJ,CAAC,CAAC;IACFiB,qBAAqB,EAAEhC,UAAU,CAAEJ,GAAY,IAAK;MAClD,OAAO9C,UAAU,CAAEgE,IAAI,IAAK;QAC1B,OAAOA,IAAI,CAACU,qBAAqB,CAAC5B,GAAG,CAAC,CAAC,EAAEqB,MAAM,IAAI,CAAC;MACtD,CAAC,CAAC;IACJ,CAAC;EACH,CAAC;AACH;AAQAgB,UAAU,CAACC,6BAA6B,KAAKvB,qBAAqB,CAAC,CAAC;AAEpE,OAAO,MAAM;EACXhC,eAAe;EACfgD,WAAW;EACXC,YAAY;EACZC,WAAW;EACXjB,UAAU;EACVC,EAAE;EACFG,EAAE;EACFI,WAAW;EACXU,gBAAgB;EAChBN,qBAAqB;EACrBO,oBAAoB;EACpBC;AACF,CAAC,GAAGC,UAAU,CAACC,6BAA6B","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { weakFamily } from "./reactivity.js";
|
|
4
|
+
export const animatedComponentFamily = weakFamily(component => {
|
|
5
|
+
if ("displayName" in component && component.displayName?.startsWith("Animated.")) {
|
|
6
|
+
return component;
|
|
7
|
+
}
|
|
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;
|
|
23
|
+
return createAnimatedComponent(component);
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=reanimated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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":[]}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Specificity as S } from "react-native-css/utilities";
|
|
6
|
+
import { applyValue, getDeepPath } from "../objects.js";
|
|
7
|
+
import { VAR_SYMBOL } from "../reactivity.js";
|
|
8
|
+
import { resolveValue } from "./resolve.js";
|
|
9
|
+
export function calculateProps(get, rules, guards = [], inheritedVariables = {
|
|
10
|
+
[VAR_SYMBOL]: true
|
|
11
|
+
}, inlineVariables = {
|
|
12
|
+
[VAR_SYMBOL]: "inline"
|
|
13
|
+
}) {
|
|
14
|
+
let normal;
|
|
15
|
+
let important;
|
|
16
|
+
const delayedStyles = [];
|
|
17
|
+
const transforms = [];
|
|
18
|
+
for (const rule of rules) {
|
|
19
|
+
if (VAR_SYMBOL in rule) {
|
|
20
|
+
if (typeof rule[VAR_SYMBOL] === "string") {
|
|
21
|
+
Object.assign(inlineVariables, rule);
|
|
22
|
+
} else {
|
|
23
|
+
Object.assign(inheritedVariables, rule);
|
|
24
|
+
}
|
|
25
|
+
continue;
|
|
26
|
+
}
|
|
27
|
+
if (rule.v) {
|
|
28
|
+
for (const variable of rule.v) {
|
|
29
|
+
inlineVariables[variable[0]] = variable[1];
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
if (rule.d) {
|
|
33
|
+
const isImportant = Boolean(rule.s?.[S.Important]);
|
|
34
|
+
let topLevelTarget = isImportant ? important ??= {} : normal ??= {};
|
|
35
|
+
let target = topLevelTarget;
|
|
36
|
+
const ruleTarget = rule.target || "style";
|
|
37
|
+
if (typeof ruleTarget === "string") {
|
|
38
|
+
target = target[ruleTarget] ??= {};
|
|
39
|
+
} else if (ruleTarget) {
|
|
40
|
+
for (const path of ruleTarget) {
|
|
41
|
+
target = target[path] ??= {};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
applyDeclarations(get, rule.d, inlineVariables, inheritedVariables, delayedStyles, transforms, guards, target, topLevelTarget, ruleTarget, isImportant);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
for (const delayedStyle of delayedStyles) {
|
|
48
|
+
delayedStyle();
|
|
49
|
+
}
|
|
50
|
+
if (transforms.length > 0) {
|
|
51
|
+
composeTransforms(transforms, value => resolveValue(value, get, {
|
|
52
|
+
inlineVariables,
|
|
53
|
+
inheritedVariables,
|
|
54
|
+
renderGuards: guards,
|
|
55
|
+
calculateProps
|
|
56
|
+
}));
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
normal,
|
|
60
|
+
guards,
|
|
61
|
+
important
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// css-transforms-2 §6: an element's transform is its `translate`, then its `rotate`, then its `scale`, then its `transform` list
|
|
66
|
+
const TRANSFORM_SLOTS = 4;
|
|
67
|
+
|
|
68
|
+
// A transform property's cascade slot in composition order, or -1. This runs for every dynamic declaration
|
|
69
|
+
function transformSlot(prop) {
|
|
70
|
+
switch (prop) {
|
|
71
|
+
case "translate":
|
|
72
|
+
return 0;
|
|
73
|
+
case "rotate":
|
|
74
|
+
return 1;
|
|
75
|
+
case "scale":
|
|
76
|
+
return 2;
|
|
77
|
+
case "transform":
|
|
78
|
+
return 3;
|
|
79
|
+
default:
|
|
80
|
+
return -1;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/** A transform property's declaration, kept until every rule has been walked */
|
|
85
|
+
|
|
86
|
+
/** One style target's slots: the normal ones, then the !important ones */
|
|
87
|
+
|
|
88
|
+
function samePath(a, b) {
|
|
89
|
+
if (a === b) return true;
|
|
90
|
+
if (typeof a === "string" || typeof b === "string") return false;
|
|
91
|
+
if (a.length !== b.length) return false;
|
|
92
|
+
for (let i = 0; i < a.length; i++) {
|
|
93
|
+
if (a[i] !== b[i]) return false;
|
|
94
|
+
}
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Each transform property of each style target is a cascade slot of its own,
|
|
100
|
+
* and the slots compose into one `transform`. Records arrive in cascade
|
|
101
|
+
* order, so a later one replaces an earlier one, and an !important slot
|
|
102
|
+
* replaces a normal one for the same path.
|
|
103
|
+
*/
|
|
104
|
+
function composeTransforms(records, resolve) {
|
|
105
|
+
// One declaration, the usual case, has nothing to compose with
|
|
106
|
+
if (records.length === 1) {
|
|
107
|
+
const record = records[0];
|
|
108
|
+
const resolved = resolve(record.value);
|
|
109
|
+
if (resolved !== undefined && resolved !== null) {
|
|
110
|
+
const composed = [];
|
|
111
|
+
pushEntries(composed, resolved);
|
|
112
|
+
record.target.transform = composed;
|
|
113
|
+
}
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// Almost always one group, so a scan beats keying a Map by path
|
|
118
|
+
const groups = [];
|
|
119
|
+
for (let r = 0; r < records.length; r++) {
|
|
120
|
+
const record = records[r];
|
|
121
|
+
let group;
|
|
122
|
+
for (let g = 0; g < groups.length; g++) {
|
|
123
|
+
if (samePath(groups[g].path, record.path)) {
|
|
124
|
+
group = groups[g];
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
if (group === undefined) {
|
|
129
|
+
group = {
|
|
130
|
+
path: record.path,
|
|
131
|
+
target: record.target,
|
|
132
|
+
slots: [undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined]
|
|
133
|
+
};
|
|
134
|
+
groups.push(group);
|
|
135
|
+
}
|
|
136
|
+
if (record.important) {
|
|
137
|
+
// The important target is merged over the normal one, so it takes the composed list
|
|
138
|
+
group.target = record.target;
|
|
139
|
+
group.slots[record.slot + TRANSFORM_SLOTS] = record.value;
|
|
140
|
+
} else {
|
|
141
|
+
group.slots[record.slot] = record.value;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
for (let g = 0; g < groups.length; g++) {
|
|
145
|
+
const group = groups[g];
|
|
146
|
+
let composed;
|
|
147
|
+
for (let slot = 0; slot < TRANSFORM_SLOTS; slot++) {
|
|
148
|
+
const important = group.slots[slot + TRANSFORM_SLOTS];
|
|
149
|
+
const value = important !== undefined ? important : group.slots[slot];
|
|
150
|
+
if (value === undefined) {
|
|
151
|
+
continue;
|
|
152
|
+
}
|
|
153
|
+
const resolved = resolve(value);
|
|
154
|
+
|
|
155
|
+
// A property that resolves to no value is `none` (css-variables-1 §3.1)
|
|
156
|
+
if (resolved !== undefined && resolved !== null) {
|
|
157
|
+
pushEntries(composed ??= [], resolved);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
if (composed !== undefined) {
|
|
161
|
+
group.target.transform = composed;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// A resolver returns a group for a two-axis function, so entries are spread into the list
|
|
167
|
+
function pushEntries(entries, value) {
|
|
168
|
+
if (Array.isArray(value)) {
|
|
169
|
+
for (let i = 0; i < value.length; i++) pushEntries(entries, value[i]);
|
|
170
|
+
} else {
|
|
171
|
+
entries.push(value);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
export function applyDeclarations(get, declarations, inlineVariables, inheritedVariables, delayedStyles = [], transforms = [], guards = [], target = {}, topLevelTarget = target, path = "style", important = false) {
|
|
175
|
+
const originalTarget = target;
|
|
176
|
+
for (const declaration of declarations) {
|
|
177
|
+
target = originalTarget;
|
|
178
|
+
if (!Array.isArray(declaration)) {
|
|
179
|
+
// Static styles
|
|
180
|
+
Object.assign(target, declaration);
|
|
181
|
+
} else {
|
|
182
|
+
// Dynamic styles
|
|
183
|
+
let value = declaration[0];
|
|
184
|
+
let propPath = declaration[1];
|
|
185
|
+
let prop;
|
|
186
|
+
if (Array.isArray(propPath)) {
|
|
187
|
+
const [first, ...rest] = propPath;
|
|
188
|
+
if (!first) {
|
|
189
|
+
continue;
|
|
190
|
+
}
|
|
191
|
+
const final = rest.pop();
|
|
192
|
+
if (final) {
|
|
193
|
+
if (first !== "&") {
|
|
194
|
+
topLevelTarget[first] ??= {};
|
|
195
|
+
target = topLevelTarget[first];
|
|
196
|
+
}
|
|
197
|
+
let previousProp = first;
|
|
198
|
+
let previousTarget = topLevelTarget;
|
|
199
|
+
for (prop of rest) {
|
|
200
|
+
if (prop.startsWith("[") && prop.endsWith("]")) {
|
|
201
|
+
prop = Number(prop.slice(1, -1));
|
|
202
|
+
if (!Array.isArray(previousTarget[previousProp])) {
|
|
203
|
+
previousTarget[previousProp] = [];
|
|
204
|
+
target = previousTarget[previousProp];
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
previousTarget = target;
|
|
208
|
+
previousProp = prop;
|
|
209
|
+
target[prop] ??= {};
|
|
210
|
+
target = target[prop];
|
|
211
|
+
}
|
|
212
|
+
prop = final;
|
|
213
|
+
} else {
|
|
214
|
+
target = topLevelTarget;
|
|
215
|
+
prop = first;
|
|
216
|
+
}
|
|
217
|
+
} else {
|
|
218
|
+
prop = propPath;
|
|
219
|
+
}
|
|
220
|
+
const slot = target === originalTarget ? transformSlot(prop) : -1;
|
|
221
|
+
if (slot !== -1) {
|
|
222
|
+
transforms.push({
|
|
223
|
+
target,
|
|
224
|
+
path,
|
|
225
|
+
important,
|
|
226
|
+
slot,
|
|
227
|
+
value
|
|
228
|
+
});
|
|
229
|
+
continue;
|
|
230
|
+
}
|
|
231
|
+
const shouldDelay = declaration[2];
|
|
232
|
+
if (shouldDelay) {
|
|
233
|
+
/**
|
|
234
|
+
* We need to delay the resolution of this value until after all
|
|
235
|
+
* styles have been calculated. But another style might override
|
|
236
|
+
* this value. So we set a placeholder value and only override
|
|
237
|
+
* if the placeholder is preserved
|
|
238
|
+
*
|
|
239
|
+
* This also ensures the props exist, so setValue will properly
|
|
240
|
+
* mutate the props object and not create a new one
|
|
241
|
+
*/
|
|
242
|
+
const originalValue = value;
|
|
243
|
+
value = {
|
|
244
|
+
[prop]: true
|
|
245
|
+
};
|
|
246
|
+
delayedStyles.push(() => {
|
|
247
|
+
if (getDeepPath(target, prop) === value) {
|
|
248
|
+
delete target[prop];
|
|
249
|
+
value = resolveValue(originalValue, get, {
|
|
250
|
+
inlineVariables,
|
|
251
|
+
inheritedVariables,
|
|
252
|
+
renderGuards: guards,
|
|
253
|
+
calculateProps
|
|
254
|
+
});
|
|
255
|
+
applyValue(target, prop, value);
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
} else {
|
|
259
|
+
value = resolveValue(value, get, {
|
|
260
|
+
inlineVariables,
|
|
261
|
+
inheritedVariables,
|
|
262
|
+
renderGuards: guards,
|
|
263
|
+
calculateProps
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
applyValue(target, prop, value);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
//# sourceMappingURL=calculate-props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Specificity","S","applyValue","getDeepPath","VAR_SYMBOL","resolveValue","calculateProps","get","rules","guards","inheritedVariables","inlineVariables","normal","important","delayedStyles","transforms","rule","Object","assign","v","variable","d","isImportant","Boolean","s","Important","topLevelTarget","target","ruleTarget","path","applyDeclarations","delayedStyle","length","composeTransforms","value","renderGuards","TRANSFORM_SLOTS","transformSlot","prop","samePath","a","b","i","records","resolve","record","resolved","undefined","composed","pushEntries","transform","groups","r","group","g","slots","push","slot","entries","Array","isArray","declarations","originalTarget","declaration","propPath","first","rest","final","pop","previousProp","previousTarget","startsWith","endsWith","Number","slice","shouldDelay","originalValue"],"sourceRoot":"../../../../src","sources":["native/styles/calculate-props.ts"],"mappings":";;AAAA;;AAOA,SAASA,WAAW,IAAIC,CAAC,QAAQ,4BAA4B;AAG7D,SAASC,UAAU,EAAEC,WAAW,QAAQ,eAAY;AACpD,SACEC,UAAU,QAGL,kBAAe;AACtB,SAASC,YAAY,QAAQ,cAAW;AAExC,OAAO,SAASC,cAAcA,CAC5BC,GAAW,EACXC,KAA4D,EAC5DC,MAAqB,GAAG,EAAE,EAC1BC,kBAAwC,GAAG;EACzC,CAACN,UAAU,GAAG;AAChB,CAAC,EACDO,eAA+B,GAAG;EAChC,CAACP,UAAU,GAAG;AAChB,CAAC,EACD;EACA,IAAIQ,MAAuC;EAC3C,IAAIC,SAA0C;EAE9C,MAAMC,aAA6B,GAAG,EAAE;EACxC,MAAMC,UAA6B,GAAG,EAAE;EAExC,KAAK,MAA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MC,aAAa,GAAG1C,KAAK;QAC3BA,KAAK,GAAG;UAAE,CAACI,IAAI,GAAG;QAAK,CAAC;QAExBxB,aAAa,CAAC0C,IAAI,CAAC,MAAM;UACvB,IAAIrD,WAAW,CAACwB,MAAM,EAAEW,IAAI,CAAC,KAAKJ,KAAK,EAAE;YACvC,OAAOP,MAAM,CAACW,IAAI,CAAC;YACnBJ,KAAK,GAAG7B,YAAY,CAACuE,aAAa,EAAErE,GAAG,EAAE;cACvCI,eAAe;cACfD,kBAAkB;cAClByB,YAAY,EAAE1B,MAAM;cACpBH;YACF,CAAC,CAAC;YACFJ,UAAU,CAACyB,MAAM,EAAEW,IAAI,EAAEJ,KAAK,CAAC;UACjC;QACF,CAAC,CAAC;MACJ,CAAC,MAAM;QACLA,KAAK,GAAG7B,YAAY,CAAC6B,KAAK,EAAE3B,GAAG,EAAE;UAC/BI,eAAe;UACfD,kBAAkB;UAClByB,YAAY,EAAE1B,MAAM;UACpBH;QACF,CAAC,CAAC;MACJ;MAEAJ,UAAU,CAACyB,MAAM,EAAEW,IAAI,EAAEJ,KAAK,CAAC;IACjC;EACF;AACF","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["emVariableName","ShortHandSymbol","Symbol"],"sourceRoot":"../../../../src","sources":["native/styles/constants.ts"],"mappings":";;AAAA,OAAO,MAAMA,cAAc,GAAG,aAAa;AAC3C,OAAO,MAAMC,eAAe,GAAGC,MAAM,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["transformKeys","Set","defaultValues","backgroundColor","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomWidth","borderColor","borderLeftColor","borderLeftWidth","borderRadius","borderRightColor","borderRightWidth","borderTopColor","borderTopWidth","borderWidth","bottom","color","flex","flexBasis","flexGrow","flexShrink","fontSize","fontWeight","gap","left","lineHeight","margin","marginBottom","marginLeft","marginRight","marginTop","maxHeight","maxWidth","minHeight","minWidth","opacity","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","perspective","right","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","skewX","skewY","textShadowRadius","top","transformOrigin","translateX","translateY","width","zIndex"],"sourceRoot":"../../../../src","sources":["native/styles/defaults.ts"],"mappings":";;AAAA;AACA,OAAO,MAAMA,aAAa,GAAG,IAAIC,GAAG,CAAC,CACnC,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAS,EACT,SAAS,EACT,OAAO,EACP,OAAO,EACP,aAAa,EACb,QAAQ,EACR,iBAAiB,CAClB,CAAC;AAEF,OAAO,MAAMC,aAAkC,GAAG;EAChDC,eAAe,EAAE,aAAa;EAC9BC,iBAAiB,EAAE,aAAa;EAChCC,sBAAsB,EAAE,CAAC;EACzBC,uBAAuB,EAAE,CAAC;EAC1BC,iBAAiB,EAAE,CAAC;EACpBC,WAAW,EAAE,aAAa;EAC1BC,eAAe,EAAE,aAAa;EAC9BC,eAAe,EAAE,CAAC;EAClBC,YAAY,EAAE,CAAC;EACfC,gBAAgB,EAAE,aAAa;EAC/BC,gBAAgB,EAAE,CAAC;EACnBC,cAAc,EAAE,aAAa;EAC7BC,cAAc,EAAE,CAAC;EACjBC,WAAW,EAAE,CAAC;EACdC,MAAM,EAAE,CAAC;EACTC,KAAK,EAAE,OAAO;EACdC,IAAI,EAAE,CAAC;EACPC,SAAS,EAAE,CAAC;EACZC,QAAQ,EAAE,CAAC;EACXC,UAAU,EAAE,CAAC;EACbC,QAAQ,EAAE,EAAE;EACZC,UAAU,EAAE,KAAK;EACjBC,GAAG,EAAE,CAAC;EACNC,IAAI,EAAE,CAAC;EACPC,UAAU,EAAE,EAAE;EACdC,MAAM,EAAE,CAAC;EACTC,YAAY,EAAE,CAAC;EACfC,UAAU,EAAE,CAAC;EACbC,WAAW,EAAE,CAAC;EACdC,SAAS,EAAE,CAAC;EACZC,SAAS,EAAE,KAAK;EAChBC,QAAQ,EAAE,KAAK;EACfC,SAAS,EAAE,CAAC;EACZC,QAAQ,EAAE,CAAC;EACXC,OAAO,EAAE,CAAC;EACVC,OAAO,EAAE,CAAC;EACVC,aAAa,EAAE,CAAC;EAChBC,WAAW,EAAE,CAAC;EACdC,YAAY,EAAE,CAAC;EACfC,UAAU,EAAE,CAAC;EACbC,WAAW,EAAE,CAAC;EACdC,KAAK,EAAE,CAAC;EACRC,MAAM,EAAE,MAAM;EACdC,OAAO,EAAE,MAAM;EACfC,OAAO,EAAE,MAAM;EACfC,OAAO,EAAE,MAAM;EACfC,KAAK,EAAE,CAAC;EACRC,MAAM,EAAE,CAAC;EACTC,MAAM,EAAE,CAAC;EACTC,KAAK,EAAE,MAAM;EACbC,KAAK,EAAE,MAAM;EACbC,gBAAgB,EAAE,CAAC;EACnBC,GAAG,EAAE,CAAC;EACNC,eAAe,EAAE,KAAK;EACtBC,UAAU,EAAE,CAAC;EACbC,UAAU,EAAE,CAAC;EACbC,KAAK,EAAE,CAAC;EACRC,MAAM,EAAE;AACV,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { commaListItems } from "react-native-css/utilities";
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
5
|
+
const advancedTimingFunctions = {
|
|
6
|
+
cubicBezier: () => {
|
|
7
|
+
return require("react-native-reanimated").cubicBezier;
|
|
8
|
+
},
|
|
9
|
+
steps: () => {
|
|
10
|
+
return require("react-native-reanimated").steps;
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const timingFunctionResolver = (resolveValue, value) => {
|
|
14
|
+
const name = value[1];
|
|
15
|
+
const resolver = advancedTimingFunctions[name];
|
|
16
|
+
if (!resolver) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
const args = commaListItems(resolveValue(value[2]));
|
|
20
|
+
if (!Array.isArray(args)) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const fn = resolver();
|
|
24
|
+
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
26
|
+
const result = fn(...args);
|
|
27
|
+
return result;
|
|
28
|
+
};
|
|
29
|
+
export const cubicBezier = timingFunctionResolver;
|
|
30
|
+
export const steps = timingFunctionResolver;
|
|
31
|
+
//# sourceMappingURL=animation-timing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["commaListItems","advancedTimingFunctions","cubicBezier","require","steps","timingFunctionResolver","resolveValue","value","name","resolver","args","Array","isArray","fn","result"],"sourceRoot":"../../../../../src","sources":["native/styles/functions/animation-timing.ts"],"mappings":";;AAAA,SAASA,cAAc,QAAQ,4BAA4B;AAI3D;AACA,MAAMC,uBAIL,GAAG;EACFC,WAAW,EAAEA,CAAA,KAAM;IACjB,OACEC,OAAO,CAAC,yBAAyB,CAAC,CAClCD,WAAW;EACf,CAAC;EACDE,KAAK,EAAEA,CAAA,KAAM;IACX,OACED,OAAO,CAAC,yBAAyB,CAAC,CAClCC,KAAK;EACT;AACF,CAAC;AAED,MAAMC,sBAA6C,GAAGA,CAACC,YAAY,EAAEC,KAAK,KAAK;EAC7E,MAAMC,IAAI,GAAGD,KAAK,CAAC,CAAC,CAAC;EACrB,MAAME,QAAQ,GAAGR,uBAAuB,CAACO,IAAI,CAAC;EAE9C,IAAI,CAACC,QAAQ,EAAE;IACb;EACF;EAEA,MAAMC,IAAI,GAAGV,cAAc,CAACM,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;EAEnD,IAAI,CAACI,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,EAAE;IACxB;EACF;EAEA,MAAMG,EAAE,GAAGJ,QAAQ,CAAC,CAAC;;EAErB;EACA,MAAMK,MAAM,GAAGD,EAAE,CAAC,GAAGH,IAAI,CAAC;EAE1B,OAAOI,MAAM;AACf,CAAC;AAED,OAAO,MAAMZ,WAAW,GAAGG,sBAAsB;AACjD,OAAO,MAAMD,KAAK,GAAGC,sBAAsB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["precedence","calc","resolveValue","func","tokens","Array","isArray","output","ops","t","push","value","round","isPercent","endsWith","num","parseFloat","slice","Number","isNaN","undefined","length","pop","op","stack","b","a","res","final","number","Math","EPSILON"],"sourceRoot":"../../../../../src","sources":["native/styles/functions/calc.ts"],"mappings":";;AAOA,MAAMA,UAAkC,GAAG;EAAE,GAAG,EAAE,CAAC;EAAE,GAAG,EAAE,CAAC;EAAE,GAAG,EAAE,CAAC;EAAE,GAAG,EAAE;AAAE,CAAC;AAE7E,OAAO,MAAMC,IAA2B,GAAGA,CAACC,YAAY,EAAEC,IAAI,KAAK;EACjE,MAAMC,MAAM,GAAGF,YAAY,CAACC,IAAI,CAAC,CAAC,CAAC,CAAC;EAEpC,IAAI,CAACE,KAAK,CAACC,OAAO,CAACF,MAAM,CAAC,EAAE;IAC1B,OAAOA,MAAM;EACf;;EAEA;EACA,MAAMG,MAA0B,GAAG,EAAE;EACrC,MAAMC,GAAa,GAAG,EAAE;EAExB,KAAK,MAAMC,CAAC,IAAIL,MAAM,EAAE;IACtB,IAAI,OAAOK,CAAC,KAAK,QAAQ,EAAE;MACzBF,MAAM,CAACG,IAAI,CAAC;QAAEC,KAAK,EAAEC,KAAK,CAACH,CAAC,CAAC;QAAEI,SAAS,EAAE;MAAM,CAAC,CAAC;IACpD,CAAC,MAAM,IAAI,OAAOJ,CAAC,KAAK,QAAQ,EAAE;MAChC,IAAIA,CAAC,CAACK,QAAQ,CAAC,GAAG,CAAC,EAAE;QACnB,MAAMC,GAAG,GAAGC,UAAU,CAACP,CAAC,CAACQ,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACtC,IAAIC,MAAM,CAACC,KAAK,CAACJ,GAAG,CAAC,EAAE,OAAOK,SAAS;QACvCb,MAAM,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