react-native-css 3.0.0-preview.2 → 3.0.0-preview.4
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 +138 -10
- package/dist/commonjs/compiler/atRules.js +33 -41
- package/dist/commonjs/compiler/atRules.js.map +1 -1
- package/dist/commonjs/compiler/compiler.js +96 -39
- 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/declarations.js +66 -51
- package/dist/commonjs/compiler/declarations.js.map +1 -1
- package/dist/commonjs/compiler/inline-variables.js +142 -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 +40 -0
- package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -0
- package/dist/commonjs/compiler/pseudo-elements.js +1 -1
- package/dist/commonjs/compiler/selector-builder.js +10 -7
- 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 +9 -12
- package/dist/commonjs/compiler/stylesheet.js.map +1 -1
- package/dist/commonjs/components/ActivityIndicator.js +2 -2
- package/dist/commonjs/components/ActivityIndicator.js.map +1 -1
- package/dist/commonjs/components/Button.js +2 -2
- package/dist/commonjs/components/Button.js.map +1 -1
- package/dist/commonjs/components/FlatList.js +6 -5
- package/dist/commonjs/components/FlatList.js.map +1 -1
- package/dist/commonjs/components/Image.js +2 -2
- package/dist/commonjs/components/Image.js.map +1 -1
- package/dist/commonjs/components/ImageBackground.js +22 -0
- package/dist/commonjs/components/ImageBackground.js.map +1 -0
- package/dist/commonjs/components/KeyboardAvoidingView.js +19 -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/ScrollView.js +18 -0
- package/dist/commonjs/components/ScrollView.js.map +1 -0
- package/dist/commonjs/components/Switch.js +2 -2
- package/dist/commonjs/components/Switch.js.map +1 -1
- package/dist/commonjs/components/Text.js +2 -2
- package/dist/commonjs/components/Text.js.map +1 -1
- package/dist/commonjs/components/TextInput.js +8 -3
- 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 +2 -2
- 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/index.cjs +265 -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 +3 -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 +6 -6
- package/dist/commonjs/jest/index.js.map +1 -1
- package/dist/commonjs/metro/index.js +8 -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 +8 -1
- 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 +11 -20
- package/dist/commonjs/metro/resolver.js.map +1 -1
- package/dist/commonjs/native/api.js +113 -0
- package/dist/commonjs/native/api.js.map +1 -0
- package/dist/commonjs/native/conditions/attributes.js +44 -0
- package/dist/commonjs/native/conditions/attributes.js.map +1 -0
- package/dist/commonjs/native/conditions/container-query.js.map +1 -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.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.map +1 -0
- package/dist/commonjs/native/react/interaction.js.map +1 -0
- package/dist/commonjs/native/react/rules.js +259 -0
- package/dist/commonjs/native/react/rules.js.map +1 -0
- package/dist/commonjs/native/react/useNativeCss.js +160 -0
- package/dist/commonjs/native/react/useNativeCss.js.map +1 -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 +181 -0
- package/dist/commonjs/native/reactivity.js.map +1 -0
- package/dist/commonjs/native/reanimated.js.map +1 -0
- package/dist/commonjs/native/styles/calculate-props.js +162 -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.map +1 -0
- package/dist/commonjs/native/styles/functions/calc.js.map +1 -0
- package/dist/commonjs/native/styles/functions/filters.js +84 -0
- package/dist/commonjs/native/styles/functions/filters.js.map +1 -0
- package/dist/commonjs/native/styles/functions/index.js.map +1 -0
- package/dist/commonjs/native/styles/functions/numeric-functions.js.map +1 -0
- package/dist/commonjs/native/styles/functions/platform-functions.js.map +1 -0
- package/dist/commonjs/native/styles/functions/string-functions.js.map +1 -0
- package/dist/commonjs/native/styles/functions/transform-functions.js +121 -0
- package/dist/commonjs/native/styles/functions/transform-functions.js.map +1 -0
- package/dist/commonjs/native/styles/index.js +115 -0
- package/dist/commonjs/native/styles/index.js.map +1 -0
- package/dist/commonjs/native/styles/line-height.js.map +1 -0
- package/dist/commonjs/native/styles/resolve.js +107 -0
- package/dist/commonjs/native/styles/resolve.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/_handler.js +79 -0
- package/dist/commonjs/native/styles/shorthands/_handler.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/animation.js +61 -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 +48 -0
- package/dist/commonjs/native/styles/shorthands/box-shadow.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/index.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/text-shadow.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/transform.js.map +1 -0
- package/dist/commonjs/native/styles/units.js.map +1 -0
- package/dist/commonjs/native/styles/variables.js +79 -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 +34 -0
- package/dist/commonjs/native-internal/root.js.map +1 -0
- package/dist/commonjs/native-internal/style-collection.js +110 -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.map +1 -0
- package/dist/commonjs/utilities/index.js +39 -0
- package/dist/commonjs/utilities/index.js.map +1 -0
- package/dist/commonjs/utilities/specificity.js.map +1 -0
- package/dist/commonjs/utilities/style-descriptor.js +21 -0
- package/dist/commonjs/utilities/style-descriptor.js.map +1 -0
- package/dist/commonjs/web/api.js.map +1 -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/compiler/atRules.js +33 -41
- package/dist/module/compiler/atRules.js.map +1 -1
- package/dist/module/compiler/compiler.js +96 -39
- package/dist/module/compiler/compiler.js.map +1 -1
- package/dist/module/compiler/compiler.types.js +1 -1
- package/dist/module/compiler/compiler.types.js.map +1 -1
- package/dist/module/compiler/declarations.js +66 -51
- package/dist/module/compiler/declarations.js.map +1 -1
- package/dist/module/compiler/inline-variables.js +138 -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 +36 -0
- package/dist/module/compiler/lightningcss-loader.js.map +1 -0
- 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 +10 -7
- 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 +9 -12
- package/dist/module/compiler/stylesheet.js.map +1 -1
- package/dist/module/components/ActivityIndicator.js +1 -1
- package/dist/module/components/ActivityIndicator.js.map +1 -1
- package/dist/module/components/Button.js +1 -1
- package/dist/module/components/Button.js.map +1 -1
- package/dist/module/components/FlatList.js +5 -4
- package/dist/module/components/FlatList.js.map +1 -1
- package/dist/module/components/Image.js +1 -1
- package/dist/module/components/Image.js.map +1 -1
- package/dist/module/components/ImageBackground.js +17 -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 +12 -0
- package/dist/module/components/Pressable.js.map +1 -0
- package/dist/module/components/ScrollView.js +13 -0
- package/dist/module/components/ScrollView.js.map +1 -0
- package/dist/module/components/Switch.js +1 -1
- package/dist/module/components/Switch.js.map +1 -1
- package/dist/module/components/Text.js +1 -1
- package/dist/module/components/Text.js.map +1 -1
- package/dist/module/components/TextInput.js +7 -2
- package/dist/module/components/TextInput.js.map +1 -1
- package/dist/module/components/TouchableHighlight.js +12 -0
- package/dist/module/components/TouchableHighlight.js.map +1 -0
- package/dist/module/components/TouchableOpacity.js +12 -0
- package/dist/module/components/TouchableOpacity.js.map +1 -0
- package/dist/module/components/TouchableWithoutFeedback.js +12 -0
- package/dist/module/components/TouchableWithoutFeedback.js.map +1 -0
- package/dist/module/components/View.js +1 -1
- package/dist/module/components/View.js.map +1 -1
- package/dist/module/components/VirtualizedList.js +15 -0
- package/dist/module/components/VirtualizedList.js.map +1 -0
- package/dist/module/components/index.cjs +265 -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 +2 -2
- 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 +4 -4
- package/dist/module/jest/index.js.map +1 -1
- package/dist/module/metro/index.js +8 -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 +8 -1
- 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 +11 -20
- package/dist/module/metro/resolver.js.map +1 -1
- package/dist/module/native/api.js +82 -0
- package/dist/module/native/api.js.map +1 -0
- package/dist/module/native/conditions/attributes.js +40 -0
- package/dist/module/native/conditions/attributes.js.map +1 -0
- package/dist/module/native/conditions/container-query.js.map +1 -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.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.map +1 -0
- package/dist/module/native/react/interaction.js.map +1 -0
- package/dist/module/native/react/rules.js +252 -0
- package/dist/module/native/react/rules.js.map +1 -0
- package/dist/module/native/react/useNativeCss.js +154 -0
- package/dist/module/native/react/useNativeCss.js.map +1 -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 +169 -0
- package/dist/module/native/reactivity.js.map +1 -0
- package/dist/module/native/reanimated.js.map +1 -0
- package/dist/module/native/styles/calculate-props.js +157 -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.map +1 -0
- package/dist/module/native/styles/functions/calc.js.map +1 -0
- package/dist/module/native/styles/functions/filters.js +70 -0
- package/dist/module/native/styles/functions/filters.js.map +1 -0
- package/dist/module/native/styles/functions/index.js.map +1 -0
- package/dist/module/native/styles/functions/numeric-functions.js.map +1 -0
- package/dist/module/native/styles/functions/platform-functions.js.map +1 -0
- package/dist/module/native/styles/functions/string-functions.js.map +1 -0
- package/dist/module/native/styles/functions/transform-functions.js +114 -0
- package/dist/module/native/styles/functions/transform-functions.js.map +1 -0
- package/dist/module/native/styles/index.js +110 -0
- package/dist/module/native/styles/index.js.map +1 -0
- package/dist/module/native/styles/line-height.js.map +1 -0
- package/dist/module/native/styles/resolve.js +102 -0
- package/dist/module/native/styles/resolve.js.map +1 -0
- package/dist/module/native/styles/shorthands/_handler.js +74 -0
- package/dist/module/native/styles/shorthands/_handler.js.map +1 -0
- package/dist/module/native/styles/shorthands/animation.js +54 -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 +43 -0
- package/dist/module/native/styles/shorthands/box-shadow.js.map +1 -0
- package/dist/module/native/styles/shorthands/index.js.map +1 -0
- package/dist/module/native/styles/shorthands/text-shadow.js.map +1 -0
- package/dist/module/native/styles/shorthands/transform.js.map +1 -0
- package/dist/module/native/styles/units.js.map +1 -0
- package/dist/module/native/styles/variables.js +75 -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 +30 -0
- package/dist/module/native-internal/root.js.map +1 -0
- package/dist/module/native-internal/style-collection.js +95 -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.map +1 -0
- package/dist/module/utilities/index.js +6 -0
- package/dist/module/utilities/index.js.map +1 -0
- package/dist/module/utilities/specificity.js.map +1 -0
- package/dist/module/utilities/style-descriptor.js +16 -0
- package/dist/module/utilities/style-descriptor.js.map +1 -0
- package/dist/module/web/api.js.map +1 -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/.config/eslint.config.d.mts +3 -0
- package/dist/typescript/commonjs/.config/eslint.config.d.mts.map +1 -0
- package/dist/typescript/commonjs/eslint.config.d.mts +2 -0
- package/dist/typescript/commonjs/eslint.config.d.mts.map +1 -0
- package/dist/typescript/commonjs/example/app.config.d.ts.map +1 -1
- package/dist/typescript/commonjs/example/index.d.ts +2 -0
- package/dist/typescript/commonjs/example/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/example/metro.config.d.ts +3 -0
- package/dist/typescript/commonjs/example/metro.config.d.ts.map +1 -0
- package/dist/typescript/commonjs/example/postcss.config.d.mts +7 -0
- package/dist/typescript/commonjs/example/postcss.config.d.mts.map +1 -0
- package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/atRules.d.ts +1 -1
- package/dist/typescript/commonjs/src/compiler/atRules.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +11 -7
- package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts +6 -6
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
- 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/selector-builder.d.ts +1 -1
- package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +2 -1
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +3 -10
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Button.d.ts +3 -10
- package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/FlatList.d.ts +3 -7
- package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Image.d.ts +3 -5
- package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/Pressable.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/ScrollView.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/Text.d.ts +2 -2
- package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/TextInput.d.ts +3 -5
- package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/View.d.ts +2 -2
- 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/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.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 +1 -1
- package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/index.d.ts +1 -1
- package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
- 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/native/api.d.ts +26 -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.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.map +1 -0
- package/dist/typescript/commonjs/src/native/react/rules.d.ts.map +1 -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 +52 -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 +10 -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/filters.d.ts.map +1 -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.map +1 -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 +19 -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.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/resolve.d.ts +18 -0
- package/dist/typescript/commonjs/src/native/styles/resolve.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.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 +5 -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 +11 -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 +49 -0
- package/dist/typescript/commonjs/src/runtime.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/utilities/index.d.ts +4 -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 +4 -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/.config/eslint.config.d.mts +3 -0
- package/dist/typescript/module/.config/eslint.config.d.mts.map +1 -0
- package/dist/typescript/module/eslint.config.d.mts +2 -0
- package/dist/typescript/module/eslint.config.d.mts.map +1 -0
- package/dist/typescript/module/example/app.config.d.ts.map +1 -1
- package/dist/typescript/module/example/index.d.ts +2 -0
- package/dist/typescript/module/example/index.d.ts.map +1 -0
- package/dist/typescript/module/example/metro.config.d.ts +3 -0
- package/dist/typescript/module/example/metro.config.d.ts.map +1 -0
- package/dist/typescript/module/example/postcss.config.d.mts +7 -0
- package/dist/typescript/module/example/postcss.config.d.mts.map +1 -0
- package/dist/typescript/module/example/src/App.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/atRules.d.ts +1 -1
- package/dist/typescript/module/src/compiler/atRules.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/compiler.types.d.ts +11 -7
- package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/declarations.d.ts +6 -6
- package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -1
- 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 +1 -1
- 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/selector-builder.d.ts +1 -1
- package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/stylesheet.d.ts +2 -1
- package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts +3 -10
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Button.d.ts +3 -10
- package/dist/typescript/module/src/components/Button.d.ts.map +1 -1
- package/dist/typescript/module/src/components/FlatList.d.ts +3 -7
- package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Image.d.ts +3 -5
- package/dist/typescript/module/src/components/Image.d.ts.map +1 -1
- package/dist/typescript/module/src/components/ImageBackground.d.ts +6 -0
- package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -0
- package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +6 -0
- package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -0
- package/dist/typescript/module/src/components/Pressable.d.ts +6 -0
- package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -0
- package/dist/typescript/module/src/components/ScrollView.d.ts +6 -0
- package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -0
- package/dist/typescript/module/src/components/Text.d.ts +2 -2
- package/dist/typescript/module/src/components/Text.d.ts.map +1 -1
- package/dist/typescript/module/src/components/TextInput.d.ts +3 -5
- package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -1
- package/dist/typescript/module/src/components/TouchableHighlight.d.ts +6 -0
- package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -0
- package/dist/typescript/module/src/components/TouchableOpacity.d.ts +6 -0
- package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -0
- package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +6 -0
- package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
- package/dist/typescript/module/src/components/View.d.ts +2 -2
- 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/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 +8 -0
- 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.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 +1 -1
- package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/index.d.ts +1 -1
- package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/metro-transformer.d.ts.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/native/api.d.ts +26 -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.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.map +1 -0
- package/dist/typescript/module/src/native/react/rules.d.ts.map +1 -0
- package/dist/typescript/module/src/native/react/useNativeCss.d.ts.map +1 -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 +52 -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 +10 -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.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/calc.d.ts.map +1 -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.map +1 -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.map +1 -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.map +1 -0
- package/dist/typescript/module/src/native/styles/index.d.ts +19 -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.map +1 -0
- package/dist/typescript/module/src/native/styles/resolve.d.ts +18 -0
- package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -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.map +1 -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.map +1 -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.map +1 -0
- package/dist/typescript/module/src/native/styles/units.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/variables.d.ts +5 -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 +11 -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.map +1 -0
- package/dist/typescript/module/src/runtime.native.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime.types.d.ts +49 -0
- package/dist/typescript/module/src/runtime.types.d.ts.map +1 -0
- package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -0
- package/dist/typescript/module/src/utilities/index.d.ts +4 -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 +4 -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.map +1 -0
- package/dist/typescript/module/src/web/metro.d.ts.map +1 -0
- package/package.json +84 -55
- package/src/compiler/atRules.ts +32 -43
- package/src/compiler/compiler.ts +115 -42
- package/src/compiler/compiler.types.ts +16 -7
- package/src/compiler/declarations.ts +88 -87
- package/src/compiler/inline-variables.ts +209 -0
- package/src/compiler/keyframes.ts +2 -2
- package/src/compiler/lightningcss-loader.ts +40 -0
- package/src/compiler/pseudo-elements.ts +1 -1
- package/src/compiler/selector-builder.ts +14 -8
- package/src/compiler/selectors.ts +1 -1
- package/src/compiler/stylesheet.ts +10 -17
- package/src/components/ActivityIndicator.tsx +2 -2
- package/src/components/Button.tsx +2 -2
- package/src/components/FlatList.tsx +6 -5
- package/src/components/Image.tsx +2 -2
- package/src/components/ImageBackground.tsx +27 -0
- package/src/components/KeyboardAvoidingView.tsx +24 -0
- package/src/components/Pressable.tsx +17 -0
- package/src/components/ScrollView.tsx +20 -0
- package/src/components/Text.tsx +1 -1
- package/src/components/TextInput.tsx +8 -3
- package/src/components/TouchableHighlight.tsx +22 -0
- package/src/components/TouchableOpacity.tsx +22 -0
- package/src/components/TouchableWithoutFeedback.tsx +22 -0
- package/src/components/View.tsx +1 -1
- package/src/components/VirtualizedList.tsx +25 -0
- package/src/components/index.cts +263 -0
- package/src/components/index.ts +17 -0
- package/src/components/react-native-safe-area-context.native.tsx +7 -3
- package/src/index.ts +0 -2
- package/src/jest/index.ts +6 -5
- package/src/metro/index.ts +10 -166
- package/src/metro/injection-code.ts +1 -1
- package/src/metro/metro-transformer.ts +15 -1
- package/src/metro/override.ts +1 -0
- package/src/metro/resolver.ts +20 -26
- package/src/native/api.tsx +120 -0
- package/src/native/conditions/attributes.ts +54 -0
- package/src/native/conditions/container-query.ts +162 -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/react/rules.ts +336 -0
- package/src/native/react/useNativeCss.ts +204 -0
- package/src/native/reactivity.ts +248 -0
- package/src/native/styles/calculate-props.ts +217 -0
- package/src/native/styles/functions/filters.ts +99 -0
- package/src/native/styles/functions/transform-functions.ts +85 -0
- package/src/native/styles/index.ts +198 -0
- package/src/native/styles/resolve.ts +164 -0
- package/src/native/styles/shorthands/_handler.ts +122 -0
- package/src/native/styles/shorthands/animation.ts +131 -0
- package/src/native/styles/shorthands/box-shadow.ts +71 -0
- package/src/native/styles/variables.ts +88 -0
- package/src/native-internal/README.md +11 -0
- package/src/native-internal/index.ts +3 -0
- package/src/native-internal/root.ts +44 -0
- package/src/native-internal/style-collection.ts +148 -0
- package/src/native-internal/variables.tsx +36 -0
- package/src/runtime.types.ts +150 -0
- package/src/utilities/index.ts +3 -0
- package/src/utilities/specificity.ts +45 -0
- package/src/utilities/style-descriptor.ts +24 -0
- package/src/web/api.tsx +115 -0
- 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 -115
- 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.map +0 -1
- 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.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.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.map +0 -1
- package/dist/commonjs/runtime/native/reactivity.js +0 -185
- package/dist/commonjs/runtime/native/reactivity.js.map +0 -1
- 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.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.map +0 -1
- package/dist/commonjs/runtime/native/styles/functions/numeric-functions.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/functions/platform-functions.js.map +0 -1
- 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/line-height.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/resolve.js +0 -108
- 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 -58
- package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js.map +0 -1
- 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.map +0 -1
- 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.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.map +0 -1
- 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.map +0 -1
- 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 -29
- package/dist/commonjs/style-collection/root.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 -94
- 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.map +0 -1
- 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.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.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.map +0 -1
- package/dist/module/runtime/native/reactivity.js +0 -173
- package/dist/module/runtime/native/reactivity.js.map +0 -1
- 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.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.map +0 -1
- package/dist/module/runtime/native/styles/functions/numeric-functions.js.map +0 -1
- package/dist/module/runtime/native/styles/functions/platform-functions.js.map +0 -1
- 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/line-height.js.map +0 -1
- package/dist/module/runtime/native/styles/resolve.js +0 -103
- 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 -53
- package/dist/module/runtime/native/styles/shorthands/box-shadow.js.map +0 -1
- 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.map +0 -1
- 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.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.map +0 -1
- 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.map +0 -1
- 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 -25
- package/dist/module/style-collection/root.js.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 -31
- 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.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.map +0 -1
- 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.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 -53
- 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.map +0 -1
- 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.map +0 -1
- 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/line-height.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.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.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 -16
- 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/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 -31
- 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.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.map +0 -1
- 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.map +0 -1
- 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 -53
- 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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- 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/line-height.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.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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- 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.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 -16
- 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.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/components/index.tsx +0 -10
- package/src/runtime/index.ts +0 -7
- package/src/runtime/native/api.tsx +0 -135
- package/src/runtime/native/conditions/attributes.ts +0 -52
- package/src/runtime/native/conditions/container-query.ts +0 -162
- 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/rules.ts +0 -336
- package/src/runtime/native/react/useNativeCss.ts +0 -203
- package/src/runtime/native/reactivity.ts +0 -251
- package/src/runtime/native/styles/calculate-props.ts +0 -197
- package/src/runtime/native/styles/functions/filters.ts +0 -98
- 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 -164
- 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 -80
- 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/index.ts +0 -5
- 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.tsx +0 -114
- package/src/runtime/web/metro.ts +0 -2
- package/src/style-collection/index.ts +0 -142
- package/src/style-collection/root.ts +0 -37
- /package/dist/commonjs/{runtime/native → native}/conditions/container-query.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/conditions/guards.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/conditions/index.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/conditions/media-query.js +0 -0
- /package/dist/commonjs/{runtime/utils → native}/objects.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/react/interaction.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/react/usePassthrough.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/reanimated.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/animation-timing.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/styles/functions/calc.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/styles/functions/index.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/styles/functions/numeric-functions.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/styles/functions/platform-functions.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/styles/functions/string-functions.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/styles/line-height.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/styles/shorthands/border.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/styles/shorthands/index.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/styles/shorthands/text-shadow.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/styles/shorthands/transform.js +0 -0
- /package/dist/commonjs/{runtime/native → native}/styles/units.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/utils → utilities}/dot-notation.types.js +0 -0
- /package/dist/commonjs/{runtime/utils → utilities}/specificity.js +0 -0
- /package/dist/commonjs/{runtime/web → web}/api.js +0 -0
- /package/dist/commonjs/{runtime/web → web}/assign-style.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/container-query.js +0 -0
- /package/dist/module/{runtime/native → native}/conditions/guards.js +0 -0
- /package/dist/module/{runtime/native → native}/conditions/index.js +0 -0
- /package/dist/module/{runtime/native → native}/conditions/media-query.js +0 -0
- /package/dist/module/{runtime/utils → native}/objects.js +0 -0
- /package/dist/module/{runtime/native → native}/react/interaction.js +0 -0
- /package/dist/module/{runtime/native → native}/react/usePassthrough.js +0 -0
- /package/dist/module/{runtime/native → native}/reanimated.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/animation-timing.js +0 -0
- /package/dist/module/{runtime/native → native}/styles/functions/calc.js +0 -0
- /package/dist/module/{runtime/native → native}/styles/functions/index.js +0 -0
- /package/dist/module/{runtime/native → native}/styles/functions/numeric-functions.js +0 -0
- /package/dist/module/{runtime/native → native}/styles/functions/platform-functions.js +0 -0
- /package/dist/module/{runtime/native → native}/styles/functions/string-functions.js +0 -0
- /package/dist/module/{runtime/native → native}/styles/line-height.js +0 -0
- /package/dist/module/{runtime/native → native}/styles/shorthands/border.js +0 -0
- /package/dist/module/{runtime/native → native}/styles/shorthands/index.js +0 -0
- /package/dist/module/{runtime/native → native}/styles/shorthands/text-shadow.js +0 -0
- /package/dist/module/{runtime/native → native}/styles/shorthands/transform.js +0 -0
- /package/dist/module/{runtime/native → native}/styles/units.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/utils → utilities}/dot-notation.types.js +0 -0
- /package/dist/module/{runtime/utils → utilities}/specificity.js +0 -0
- /package/dist/module/{runtime/web → web}/api.js +0 -0
- /package/dist/module/{runtime/web → web}/assign-style.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/native → native}/conditions/guards.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/utils → native}/objects.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/react/interaction.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/react/rules.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/react/useNativeCss.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/filters.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/index.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/functions/string-functions.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/transform-functions.d.ts +0 -0
- /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/line-height.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/index.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/utils → utilities}/dot-notation.types.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/native → native}/conditions/guards.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}/react/interaction.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/react/rules.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/react/useNativeCss.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/react/usePassthrough.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/native → native}/styles/functions/animation-timing.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/calc.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/filters.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/index.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/numeric-functions.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/platform-functions.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/string-functions.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/transform-functions.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/styles/line-height.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/_handler.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/border.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/box-shadow.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/index.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/text-shadow.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/transform.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/native → native}/styles/units.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/runtime.d.ts → runtime.d.ts} +0 -0
- /package/dist/typescript/module/src/{runtime/runtime.native.d.ts → runtime.native.d.ts} +0 -0
- /package/dist/typescript/module/src/{runtime/utils → utilities}/dot-notation.types.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/web → web}/assign-style.d.ts +0 -0
- /package/dist/typescript/module/src/{runtime/web → web}/index.d.ts +0 -0
- /package/dist/typescript/{commonjs/src/runtime → module/src}/web/metro.d.ts +0 -0
- /package/src/{runtime/native → native}/conditions/guards.ts +0 -0
- /package/src/{runtime/utils → native}/objects.ts +0 -0
- /package/src/{runtime/native → native}/react/interaction.ts +0 -0
- /package/src/{runtime/native → native}/react/usePassthrough.ts +0 -0
- /package/src/{poison.pill.ts → native/react-native-css-metro-override.ts} +0 -0
- /package/src/{runtime/native → native}/reanimated.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/animation-timing.ts +0 -0
- /package/src/{runtime/native → native}/styles/functions/calc.ts +0 -0
- /package/src/{runtime/native → native}/styles/functions/index.ts +0 -0
- /package/src/{runtime/native → native}/styles/functions/numeric-functions.ts +0 -0
- /package/src/{runtime/native → native}/styles/functions/platform-functions.ts +0 -0
- /package/src/{runtime/native → native}/styles/functions/string-functions.ts +0 -0
- /package/src/{runtime/native → native}/styles/line-height.ts +0 -0
- /package/src/{runtime/native → native}/styles/shorthands/border.ts +0 -0
- /package/src/{runtime/native → native}/styles/shorthands/index.ts +0 -0
- /package/src/{runtime/native → native}/styles/shorthands/text-shadow.ts +0 -0
- /package/src/{runtime/native → native}/styles/shorthands/transform.ts +0 -0
- /package/src/{runtime/native → native}/styles/units.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/utils → utilities}/dot-notation.types.ts +0 -0
- /package/src/{runtime/web → web}/assign-style.ts +0 -0
- /package/src/{runtime/web → web}/index.ts +0 -0
- /package/src/{runtime/native → web}/metro.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-css",
|
|
3
|
-
"version": "3.0.0-preview.
|
|
3
|
+
"version": "3.0.0-preview.4",
|
|
4
4
|
"description": "A CSS polyfill for React Native",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -14,40 +14,48 @@
|
|
|
14
14
|
"default": "./dist/commonjs/index.js"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
|
-
"./
|
|
18
|
-
"
|
|
17
|
+
"./compiler": {
|
|
18
|
+
"source": "./src/compiler/index.ts",
|
|
19
|
+
"import": {
|
|
20
|
+
"types": "./dist/typescript/module/src/compiler/index.d.ts",
|
|
21
|
+
"default": "./dist/module/compiler/index.js"
|
|
22
|
+
},
|
|
23
|
+
"require": {
|
|
24
|
+
"types": "./dist/typescript/commonjs/src/compiler/index.d.ts",
|
|
25
|
+
"default": "./dist/commonjs/compiler/index.js"
|
|
26
|
+
}
|
|
19
27
|
},
|
|
20
|
-
"./
|
|
21
|
-
"source": "./src/
|
|
28
|
+
"./babel": {
|
|
29
|
+
"source": "./src/babel/index.ts",
|
|
22
30
|
"import": {
|
|
23
|
-
"types": "./dist/typescript/module/src/
|
|
24
|
-
"default": "./dist/module/
|
|
31
|
+
"types": "./dist/typescript/module/src/babel/index.d.ts",
|
|
32
|
+
"default": "./dist/module/babel/index.js"
|
|
25
33
|
},
|
|
26
34
|
"require": {
|
|
27
|
-
"types": "./dist/typescript/commonjs/src/
|
|
28
|
-
"default": "./dist/commonjs/
|
|
35
|
+
"types": "./dist/typescript/commonjs/src/babel/index.d.ts",
|
|
36
|
+
"default": "./dist/commonjs/babel/index.js"
|
|
29
37
|
}
|
|
30
38
|
},
|
|
31
|
-
"./
|
|
32
|
-
"source": "./src/
|
|
39
|
+
"./components": {
|
|
40
|
+
"source": "./src/components/index.cts",
|
|
41
|
+
"types": "./src/components/index.d.ts",
|
|
33
42
|
"import": {
|
|
34
|
-
"
|
|
35
|
-
"default": "./dist/module/metro/index.js"
|
|
43
|
+
"default": "./dist/module/components/index.cjs"
|
|
36
44
|
},
|
|
37
45
|
"require": {
|
|
38
|
-
"
|
|
39
|
-
"default": "./dist/commonjs/metro/index.js"
|
|
46
|
+
"default": "./dist/commonjs/components/index.cjs"
|
|
40
47
|
}
|
|
41
48
|
},
|
|
42
|
-
"./
|
|
43
|
-
"source": "./src/
|
|
49
|
+
"./components/*": {
|
|
50
|
+
"source": "./src/components/*.ts",
|
|
51
|
+
"react-native": "./src/components/*.tsx",
|
|
44
52
|
"import": {
|
|
45
|
-
"types": "./dist/typescript/module/src/
|
|
46
|
-
"default": "./dist/module/
|
|
53
|
+
"types": "./dist/typescript/module/src/components/*.d.ts",
|
|
54
|
+
"default": "./dist/module/components/*.js"
|
|
47
55
|
},
|
|
48
56
|
"require": {
|
|
49
|
-
"types": "./dist/typescript/commonjs/src/
|
|
50
|
-
"default": "./dist/commonjs/
|
|
57
|
+
"types": "./dist/typescript/commonjs/src/components/*.d.ts",
|
|
58
|
+
"default": "./dist/commonjs/components/*.js"
|
|
51
59
|
}
|
|
52
60
|
},
|
|
53
61
|
"./jest": {
|
|
@@ -62,49 +70,73 @@
|
|
|
62
70
|
"default": "./dist/commonjs/jest/index.js"
|
|
63
71
|
}
|
|
64
72
|
},
|
|
65
|
-
"./
|
|
66
|
-
"source": "./src/
|
|
73
|
+
"./metro": {
|
|
74
|
+
"source": "./src/metro/index.ts",
|
|
67
75
|
"import": {
|
|
68
|
-
"types": "./dist/typescript/module/src/
|
|
69
|
-
"default": "./dist/module/
|
|
76
|
+
"types": "./dist/typescript/module/src/metro/index.d.ts",
|
|
77
|
+
"default": "./dist/module/metro/index.js"
|
|
70
78
|
},
|
|
71
79
|
"require": {
|
|
72
|
-
"types": "./dist/typescript/commonjs/src/
|
|
73
|
-
"default": "./dist/commonjs/
|
|
80
|
+
"types": "./dist/typescript/commonjs/src/metro/index.d.ts",
|
|
81
|
+
"default": "./dist/commonjs/metro/index.js"
|
|
74
82
|
}
|
|
75
83
|
},
|
|
76
|
-
"./
|
|
77
|
-
"source": "./src/
|
|
78
|
-
"react-native": "./src/components/index.tsx",
|
|
84
|
+
"./native": {
|
|
85
|
+
"source": "./src/native/index.ts",
|
|
79
86
|
"import": {
|
|
80
|
-
"types": "./dist/typescript/module/src/
|
|
81
|
-
"default": "./dist/module/
|
|
87
|
+
"types": "./dist/typescript/module/src/native/index.d.ts",
|
|
88
|
+
"default": "./dist/module/native/index.js"
|
|
82
89
|
},
|
|
83
90
|
"require": {
|
|
84
|
-
"types": "./dist/typescript/commonjs/src/
|
|
85
|
-
"default": "./dist/commonjs/
|
|
91
|
+
"types": "./dist/typescript/commonjs/src/native/index.d.ts",
|
|
92
|
+
"default": "./dist/commonjs/native/index.js"
|
|
86
93
|
}
|
|
87
94
|
},
|
|
88
|
-
"./
|
|
89
|
-
"source": "./src/
|
|
90
|
-
"react-native": "./src/components/*.tsx",
|
|
95
|
+
"./native-internal": {
|
|
96
|
+
"source": "./src/native-internal/index.ts",
|
|
91
97
|
"import": {
|
|
92
|
-
"types": "./dist/typescript/module/src/
|
|
93
|
-
"default": "./dist/module/
|
|
98
|
+
"types": "./dist/typescript/module/src/native-internal/index.d.ts",
|
|
99
|
+
"default": "./dist/module/native-internal/index.js"
|
|
94
100
|
},
|
|
95
101
|
"require": {
|
|
96
|
-
"types": "./dist/typescript/commonjs/src/
|
|
97
|
-
"default": "./dist/commonjs/
|
|
102
|
+
"types": "./dist/typescript/commonjs/src/native-internal/index.d.ts",
|
|
103
|
+
"default": "./dist/commonjs/native-internal/index.js"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"./package.json": "./package.json",
|
|
107
|
+
"./types": {
|
|
108
|
+
"types": "./types.d.ts"
|
|
109
|
+
},
|
|
110
|
+
"./utilities": {
|
|
111
|
+
"source": "./src/utilities/index.ts",
|
|
112
|
+
"import": {
|
|
113
|
+
"types": "./dist/typescript/module/src/utilities/index.d.ts",
|
|
114
|
+
"default": "./dist/module/utilities/index.js"
|
|
115
|
+
},
|
|
116
|
+
"require": {
|
|
117
|
+
"types": "./dist/typescript/commonjs/src/utilities/index.d.ts",
|
|
118
|
+
"default": "./dist/commonjs/utilities/index.js"
|
|
98
119
|
}
|
|
99
120
|
},
|
|
100
|
-
"./
|
|
121
|
+
"./web": {
|
|
122
|
+
"source": "./src/web/index.ts",
|
|
123
|
+
"import": {
|
|
124
|
+
"types": "./dist/typescript/module/src/web/index.d.ts",
|
|
125
|
+
"default": "./dist/module/web/index.js"
|
|
126
|
+
},
|
|
127
|
+
"require": {
|
|
128
|
+
"types": "./dist/typescript/commonjs/src/web/index.d.ts",
|
|
129
|
+
"default": "./dist/commonjs/web/index.js"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
101
132
|
},
|
|
102
133
|
"main": "./dist/commonjs/index.js",
|
|
103
134
|
"module": "./dist/module/index.js",
|
|
104
135
|
"types": "./dist/typescript/commonjs/src/index.d.ts",
|
|
105
136
|
"workspaces": [
|
|
106
137
|
"example",
|
|
107
|
-
"configs"
|
|
138
|
+
"configs",
|
|
139
|
+
"."
|
|
108
140
|
],
|
|
109
141
|
"scripts": {
|
|
110
142
|
"build": "bob build",
|
|
@@ -152,56 +184,53 @@
|
|
|
152
184
|
"!**/__mocks__"
|
|
153
185
|
],
|
|
154
186
|
"dependencies": {
|
|
155
|
-
"@expo/metro-runtime": "~6.1.1",
|
|
156
187
|
"babel-plugin-react-compiler": "^19.1.0-rc.2",
|
|
157
188
|
"colorjs.io": "0.6.0-alpha.1",
|
|
158
189
|
"comment-json": "^4.2.5",
|
|
159
190
|
"debug": "^4.4.1"
|
|
160
191
|
},
|
|
161
192
|
"peerDependencies": {
|
|
162
|
-
"expo": "54
|
|
163
|
-
"
|
|
164
|
-
"react": "
|
|
165
|
-
"react-native": "0.81.0"
|
|
193
|
+
"@expo/metro-config": ">=54",
|
|
194
|
+
"react": ">=19",
|
|
195
|
+
"react-native": ">=0.81"
|
|
166
196
|
},
|
|
167
197
|
"devDependencies": {
|
|
168
198
|
"@babel/core": "^7.28.0",
|
|
169
199
|
"@commitlint/config-conventional": "^19.8.1",
|
|
170
200
|
"@eslint/js": "^9.30.1",
|
|
201
|
+
"@expo/metro-config": "~54.0.5",
|
|
171
202
|
"@ianvs/prettier-plugin-sort-imports": "^4.4.2",
|
|
172
203
|
"@tailwindcss/postcss": "^4.1.12",
|
|
173
204
|
"@testing-library/react-native": "^13.3.3",
|
|
174
205
|
"@tsconfig/react-native": "^3.0.6",
|
|
175
206
|
"@types/babel__core": "^7",
|
|
176
|
-
"@types/connect": "^3.4.38",
|
|
177
207
|
"@types/debug": "^4.1.12",
|
|
178
208
|
"@types/jest": "^30.0.0",
|
|
179
209
|
"@types/react": "^19.1.10",
|
|
180
|
-
"@types/react-refresh": "^0",
|
|
181
210
|
"@types/react-test-renderer": "^19",
|
|
182
211
|
"babel-plugin-tester": "^12.0.0",
|
|
183
|
-
"babel-preset-expo": "~
|
|
212
|
+
"babel-preset-expo": "~54.0.3",
|
|
184
213
|
"commitlint": "^19.8.1",
|
|
185
214
|
"eas-build-cache-provider": "^16.4.2",
|
|
186
215
|
"eslint": "^9.30.1",
|
|
187
216
|
"eslint-config-prettier": "^10.1.5",
|
|
188
217
|
"eslint-plugin-prettier": "^5.5.1",
|
|
189
|
-
"expo": "54.0.
|
|
218
|
+
"expo": "54.0.10",
|
|
190
219
|
"jest": "^29.7.0",
|
|
191
|
-
"jest-expo": "~54.0.
|
|
220
|
+
"jest-expo": "~54.0.12",
|
|
192
221
|
"lefthook": "^1.12.3",
|
|
193
222
|
"lightningcss": "^1.30.1",
|
|
194
223
|
"metro-runtime": "^0.83.0",
|
|
195
224
|
"postcss": "^8.5.6",
|
|
196
225
|
"prettier": "^3.6.2",
|
|
197
226
|
"react": "19.1.0",
|
|
198
|
-
"react-native": "0.81.
|
|
227
|
+
"react-native": "0.81.4",
|
|
199
228
|
"react-native-builder-bob": "^0.40.13",
|
|
200
229
|
"react-native-reanimated": "~4.1.0",
|
|
201
230
|
"react-native-safe-area-context": "5.6.1",
|
|
202
231
|
"react-native-worklets": "~0.5.0",
|
|
203
232
|
"react-refresh": "^0.17.0",
|
|
204
|
-
"react-test-renderer": "
|
|
233
|
+
"react-test-renderer": "19.1.0",
|
|
205
234
|
"release-it": "^19.0.4",
|
|
206
235
|
"tailwindcss": "^4.1.12",
|
|
207
236
|
"tailwindcss-safe-area": "^1.1.0",
|
package/src/compiler/atRules.ts
CHANGED
|
@@ -37,45 +37,21 @@ export interface ReactNativeAtRule {
|
|
|
37
37
|
|
|
38
38
|
export function maybeMutateReactNativeOptions(
|
|
39
39
|
rule: Rule | ReactNativeAtRule,
|
|
40
|
-
|
|
40
|
+
_builder: StylesheetBuilder,
|
|
41
41
|
) {
|
|
42
42
|
if (rule.type !== "custom" || rule.value?.name !== "react-native") {
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
if (!declarations) return;
|
|
48
|
-
|
|
49
|
-
for (const declaration of declarations) {
|
|
50
|
-
if (declaration.property !== "custom") continue;
|
|
51
|
-
|
|
52
|
-
switch (declaration.value.name) {
|
|
53
|
-
case "preserve-variables": {
|
|
54
|
-
declaration.value.value.forEach((token) => {
|
|
55
|
-
if (token.type !== "dashed-ident") {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
if (token.value !== "true" && token.value !== "false") {
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
builder.setOptions("preserveVariables", token.value === "true");
|
|
64
|
-
});
|
|
65
|
-
break;
|
|
66
|
-
}
|
|
67
|
-
default:
|
|
68
|
-
break;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
46
|
+
// TODO: Add inline options
|
|
71
47
|
}
|
|
72
48
|
|
|
73
49
|
/***********************************************
|
|
74
|
-
* @
|
|
50
|
+
* @nativeMapping *
|
|
75
51
|
***********************************************/
|
|
76
52
|
|
|
77
|
-
function
|
|
78
|
-
return rule.type === "unknown" && rule.value.name === "
|
|
53
|
+
function isNativeMappingAtRule(rule: Rule | PropAtRule): rule is PropAtRule {
|
|
54
|
+
return rule.type === "unknown" && rule.value.name === "nativeMapping";
|
|
79
55
|
}
|
|
80
56
|
|
|
81
57
|
export function parsePropAtRule(rules?: (Rule | PropAtRule)[]) {
|
|
@@ -95,14 +71,14 @@ export function parsePropAtRule(rules?: (Rule | PropAtRule)[]) {
|
|
|
95
71
|
if (!rules) return mapping;
|
|
96
72
|
|
|
97
73
|
for (const rule of rules) {
|
|
98
|
-
if (!
|
|
74
|
+
if (!isNativeMappingAtRule(rule)) continue;
|
|
99
75
|
|
|
100
76
|
if (rule.value.prelude.length > 0) {
|
|
101
77
|
const prelude = rule.value.prelude.filter((item) => {
|
|
102
78
|
return item.value.type !== "white-space";
|
|
103
79
|
});
|
|
104
80
|
|
|
105
|
-
|
|
81
|
+
nativeMappingAtRuleBlock(prelude, mapping);
|
|
106
82
|
} else if (rule.value.block) {
|
|
107
83
|
// Remove all whitespace tokens
|
|
108
84
|
const blocks = rule.value.block.filter((item) => {
|
|
@@ -115,7 +91,7 @@ export function parsePropAtRule(rules?: (Rule | PropAtRule)[]) {
|
|
|
115
91
|
});
|
|
116
92
|
|
|
117
93
|
for (const block of blockRules) {
|
|
118
|
-
|
|
94
|
+
nativeMappingAtRuleBlock(block, mapping);
|
|
119
95
|
}
|
|
120
96
|
}
|
|
121
97
|
}
|
|
@@ -123,38 +99,51 @@ export function parsePropAtRule(rules?: (Rule | PropAtRule)[]) {
|
|
|
123
99
|
return mapping;
|
|
124
100
|
}
|
|
125
101
|
|
|
126
|
-
function
|
|
102
|
+
function nativeMappingAtRuleBlock(
|
|
127
103
|
token: Extract<TokenOrValue, { type: "token" }>[],
|
|
128
104
|
mapping: StyleRuleMapping = {},
|
|
129
105
|
): StyleRuleMapping {
|
|
130
|
-
|
|
106
|
+
let [from, to] = splitByDelimiter(token, (item) => {
|
|
131
107
|
return item.value.type === "colon";
|
|
132
108
|
});
|
|
133
109
|
|
|
134
|
-
|
|
135
|
-
|
|
110
|
+
// @nativeMapping <to>; (has no from value)
|
|
111
|
+
if (!to) {
|
|
112
|
+
to = from;
|
|
113
|
+
from = [
|
|
114
|
+
{
|
|
115
|
+
type: "token",
|
|
116
|
+
value: { type: "ident", value: "*" },
|
|
117
|
+
},
|
|
118
|
+
];
|
|
136
119
|
}
|
|
137
120
|
|
|
138
|
-
|
|
139
|
-
if (!
|
|
121
|
+
// We can only map from a single property
|
|
122
|
+
if (!from || from.length !== 1 || !to) {
|
|
140
123
|
return mapping;
|
|
141
124
|
}
|
|
142
125
|
|
|
143
|
-
|
|
144
|
-
|
|
126
|
+
const fromToken = from[0];
|
|
127
|
+
if (!fromToken || fromToken.value.type !== "ident") {
|
|
145
128
|
return mapping;
|
|
146
129
|
}
|
|
147
130
|
|
|
148
|
-
|
|
131
|
+
let value: string | string[] = to.flatMap((item, index) => {
|
|
149
132
|
switch (item.value.type) {
|
|
150
133
|
case "delim":
|
|
151
|
-
return index === 0 && item.value.value === "
|
|
134
|
+
return index === 0 && item.value.value === "&" ? ["&"] : [];
|
|
152
135
|
case "ident":
|
|
153
|
-
return
|
|
136
|
+
return item.value.value.split(".").map((part) => toRNProperty(part));
|
|
154
137
|
default:
|
|
155
138
|
return [];
|
|
156
139
|
}
|
|
157
140
|
});
|
|
158
141
|
|
|
142
|
+
if (value.length === 2 && value[0] === "&" && value[1]) {
|
|
143
|
+
value = value[1];
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
mapping[toRNProperty(fromToken.value.value)] = value;
|
|
147
|
+
|
|
159
148
|
return mapping;
|
|
160
149
|
}
|
package/src/compiler/compiler.ts
CHANGED
|
@@ -3,21 +3,26 @@ import { inspect } from "node:util";
|
|
|
3
3
|
|
|
4
4
|
import { debug } from "debug";
|
|
5
5
|
import {
|
|
6
|
-
transform as lightningcss,
|
|
7
6
|
type ContainerRule,
|
|
8
7
|
type MediaQuery as CSSMediaQuery,
|
|
9
8
|
type CustomAtRules,
|
|
10
9
|
type MediaRule,
|
|
11
10
|
type Rule,
|
|
12
|
-
type TokenOrValue,
|
|
13
11
|
type Visitor,
|
|
14
12
|
} from "lightningcss";
|
|
15
13
|
|
|
16
14
|
import { maybeMutateReactNativeOptions, parsePropAtRule } from "./atRules";
|
|
17
|
-
import type {
|
|
15
|
+
import type {
|
|
16
|
+
CompilerOptions,
|
|
17
|
+
ContainerQuery,
|
|
18
|
+
StyleRuleMapping,
|
|
19
|
+
UniqueVarInfo,
|
|
20
|
+
} from "./compiler.types";
|
|
18
21
|
import { parseContainerCondition } from "./container-query";
|
|
19
|
-
import { parseDeclaration } from "./declarations";
|
|
22
|
+
import { parseDeclaration, round } from "./declarations";
|
|
23
|
+
import { inlineVariables } from "./inline-variables";
|
|
20
24
|
import { extractKeyFrames } from "./keyframes";
|
|
25
|
+
import { lightningcssLoader } from "./lightningcss-loader";
|
|
21
26
|
import { parseMediaQuery } from "./media-query";
|
|
22
27
|
import { StylesheetBuilder } from "./stylesheet";
|
|
23
28
|
import { supportsConditionValid } from "./supports";
|
|
@@ -33,6 +38,7 @@ const defaultLogger = debug("react-native-css:compiler");
|
|
|
33
38
|
*/
|
|
34
39
|
export function compile(code: Buffer | string, options: CompilerOptions = {}) {
|
|
35
40
|
const { logger = defaultLogger } = options;
|
|
41
|
+
|
|
36
42
|
const isLoggerEnabled =
|
|
37
43
|
"enabled" in logger ? logger.enabled : Boolean(logger);
|
|
38
44
|
|
|
@@ -52,7 +58,85 @@ export function compile(code: Buffer | string, options: CompilerOptions = {}) {
|
|
|
52
58
|
|
|
53
59
|
const builder = new StylesheetBuilder(options);
|
|
54
60
|
|
|
55
|
-
|
|
61
|
+
const { lightningcss, Features } = lightningcssLoader();
|
|
62
|
+
|
|
63
|
+
logger(`Lightningcss first pass`);
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Use the lightningcss library to traverse the CSS AST and extract style declarations and animations
|
|
67
|
+
*
|
|
68
|
+
* devongovett on Aug 20, 2023
|
|
69
|
+
* > calc simplification happens during the initial parse phase, which is before custom visitors run. Currently there is not an additional simplification pass done after transforms, resulting in the output you see here.
|
|
70
|
+
* https://github.com/parcel-bundler/lightningcss/issues/554#issuecomment-1685143494
|
|
71
|
+
*
|
|
72
|
+
* Due to the above issue, we run lightningcss twice
|
|
73
|
+
*/
|
|
74
|
+
|
|
75
|
+
const vars = new Map<string, UniqueVarInfo>();
|
|
76
|
+
|
|
77
|
+
const firstPassVisitor: Visitor<CustomAtRules> = {};
|
|
78
|
+
|
|
79
|
+
if (options.inlineRem !== false) {
|
|
80
|
+
firstPassVisitor.Length = (length) => {
|
|
81
|
+
if (length.unit !== "rem" || options.inlineRem === false) {
|
|
82
|
+
return length;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
unit: "px",
|
|
87
|
+
value: round(length.value * (options.inlineRem ?? 14)),
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (options.inlineVariables !== false) {
|
|
93
|
+
const exclusionList: string[] = options.inlineVariables?.exclude ?? [];
|
|
94
|
+
|
|
95
|
+
firstPassVisitor.Declaration = (decl) => {
|
|
96
|
+
if (
|
|
97
|
+
decl.property === "custom" &&
|
|
98
|
+
decl.value.name.startsWith("--") &&
|
|
99
|
+
!exclusionList.includes(decl.value.name)
|
|
100
|
+
) {
|
|
101
|
+
const entry = vars.get(decl.value.name) ?? {
|
|
102
|
+
count: 0,
|
|
103
|
+
value: [
|
|
104
|
+
...decl.value.value,
|
|
105
|
+
{ type: "token", value: { type: "white-space", value: " " } },
|
|
106
|
+
],
|
|
107
|
+
};
|
|
108
|
+
entry.count++;
|
|
109
|
+
vars.set(decl.value.name, entry);
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
firstPassVisitor.StyleSheetExit = (sheet) => {
|
|
113
|
+
return inlineVariables(sheet, vars);
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const { code: firstPass } = lightningcss({
|
|
118
|
+
code: typeof code === "string" ? new TextEncoder().encode(code) : code,
|
|
119
|
+
include: Features.DoublePositionGradients | Features.ColorFunction,
|
|
120
|
+
exclude: Features.VendorPrefixes,
|
|
121
|
+
visitor: firstPassVisitor,
|
|
122
|
+
filename: options.filename ?? "style.css",
|
|
123
|
+
projectRoot: options.projectRoot ?? process.cwd(),
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
if (isLoggerEnabled) {
|
|
127
|
+
const MAX_LOG_SIZE = 100 * 1024; // 100KB
|
|
128
|
+
if (firstPass.length <= MAX_LOG_SIZE) {
|
|
129
|
+
logger(firstPass.toString());
|
|
130
|
+
} else {
|
|
131
|
+
logger(
|
|
132
|
+
`firstPass buffer too large to log in full (${firstPass.length} bytes). Preview: ` +
|
|
133
|
+
firstPass.subarray(0, 1024).toString() +
|
|
134
|
+
"...",
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
logger(`Lightningcss second pass`);
|
|
56
140
|
|
|
57
141
|
const customAtRules: CustomAtRules = {
|
|
58
142
|
"react-native": {
|
|
@@ -63,6 +147,7 @@ export function compile(code: Buffer | string, options: CompilerOptions = {}) {
|
|
|
63
147
|
const visitor: Visitor<typeof customAtRules> = {
|
|
64
148
|
Rule(rule) {
|
|
65
149
|
maybeMutateReactNativeOptions(rule, builder);
|
|
150
|
+
return rule;
|
|
66
151
|
},
|
|
67
152
|
StyleSheetExit(sheet) {
|
|
68
153
|
if (isLoggerEnabled) {
|
|
@@ -79,33 +164,12 @@ export function compile(code: Buffer | string, options: CompilerOptions = {}) {
|
|
|
79
164
|
}
|
|
80
165
|
|
|
81
166
|
logger(`Exiting lightningcss`);
|
|
167
|
+
return sheet;
|
|
82
168
|
},
|
|
83
169
|
};
|
|
84
170
|
|
|
85
|
-
if (options.stripUnusedVariables) {
|
|
86
|
-
const onVarUsage = (token: TokenOrValue) => {
|
|
87
|
-
if (token.type === "function") {
|
|
88
|
-
token.value.arguments.forEach((token) => onVarUsage(token));
|
|
89
|
-
} else if (token.type === "var") {
|
|
90
|
-
builder.varUsage.add(token.value.name.ident);
|
|
91
|
-
if (token.value.fallback) {
|
|
92
|
-
const fallbackValues = token.value.fallback;
|
|
93
|
-
fallbackValues.forEach((varObj) => onVarUsage(varObj));
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
visitor.Declaration = (decl) => {
|
|
99
|
-
if (decl.property === "unparsed" || decl.property === "custom") {
|
|
100
|
-
decl.value.value.forEach((token) => onVarUsage(token));
|
|
101
|
-
}
|
|
102
|
-
return decl;
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
// Use the lightningcss library to traverse the CSS AST and extract style declarations and animations
|
|
107
171
|
lightningcss({
|
|
108
|
-
code:
|
|
172
|
+
code: firstPass,
|
|
109
173
|
visitor,
|
|
110
174
|
filename: options.filename ?? "style.css",
|
|
111
175
|
projectRoot: options.projectRoot ?? process.cwd(),
|
|
@@ -120,7 +184,11 @@ export function compile(code: Buffer | string, options: CompilerOptions = {}) {
|
|
|
120
184
|
/**
|
|
121
185
|
* Extracts style declarations and animations from a given CSS rule, based on its type.
|
|
122
186
|
*/
|
|
123
|
-
function extractRule(
|
|
187
|
+
function extractRule(
|
|
188
|
+
rule: Rule,
|
|
189
|
+
builder: StylesheetBuilder,
|
|
190
|
+
mapping: StyleRuleMapping = {},
|
|
191
|
+
) {
|
|
124
192
|
// Check the rule's type to determine which extraction function to call
|
|
125
193
|
switch (rule.type) {
|
|
126
194
|
case "keyframes": {
|
|
@@ -130,12 +198,12 @@ function extractRule(rule: Rule, builder: StylesheetBuilder) {
|
|
|
130
198
|
}
|
|
131
199
|
case "container": {
|
|
132
200
|
// If the rule is a container, extract it with the `extractedContainer` function
|
|
133
|
-
extractContainer(rule.value, builder);
|
|
201
|
+
extractContainer(rule.value, builder, mapping);
|
|
134
202
|
break;
|
|
135
203
|
}
|
|
136
204
|
case "media": {
|
|
137
205
|
// If the rule is a media query, extract it with the `extractMedia` function
|
|
138
|
-
extractMedia(rule.value, builder);
|
|
206
|
+
extractMedia(rule.value, builder, mapping);
|
|
139
207
|
break;
|
|
140
208
|
}
|
|
141
209
|
case "nested-declarations": {
|
|
@@ -144,7 +212,7 @@ function extractRule(rule: Rule, builder: StylesheetBuilder) {
|
|
|
144
212
|
const declarationBlock = value.declarations;
|
|
145
213
|
if (declarationBlock) {
|
|
146
214
|
if (declarationBlock.declarations?.length) {
|
|
147
|
-
builder.newNestedRule();
|
|
215
|
+
builder.newNestedRule({ mapping });
|
|
148
216
|
for (const declaration of declarationBlock.declarations) {
|
|
149
217
|
parseDeclaration(declaration, builder);
|
|
150
218
|
}
|
|
@@ -152,7 +220,7 @@ function extractRule(rule: Rule, builder: StylesheetBuilder) {
|
|
|
152
220
|
}
|
|
153
221
|
|
|
154
222
|
if (declarationBlock.importantDeclarations?.length) {
|
|
155
|
-
builder.newNestedRule({ important: true });
|
|
223
|
+
builder.newNestedRule({ mapping, important: true });
|
|
156
224
|
for (const declaration of declarationBlock.importantDeclarations) {
|
|
157
225
|
parseDeclaration(declaration, builder);
|
|
158
226
|
}
|
|
@@ -165,13 +233,13 @@ function extractRule(rule: Rule, builder: StylesheetBuilder) {
|
|
|
165
233
|
const value = rule.value;
|
|
166
234
|
|
|
167
235
|
const declarationBlock = value.declarations;
|
|
168
|
-
|
|
236
|
+
mapping = { ...mapping, ...parsePropAtRule(value.rules) };
|
|
169
237
|
|
|
170
238
|
// If the rule is a style declaration, extract it with the `getExtractedStyle` function and store it in the `declarations` map
|
|
171
239
|
builder = builder.fork("style", value.selectors);
|
|
172
240
|
|
|
173
241
|
if (declarationBlock) {
|
|
174
|
-
if (declarationBlock.declarations) {
|
|
242
|
+
if (declarationBlock.declarations?.length) {
|
|
175
243
|
builder.newRule(mapping);
|
|
176
244
|
for (const declaration of declarationBlock.declarations) {
|
|
177
245
|
parseDeclaration(declaration, builder);
|
|
@@ -179,7 +247,7 @@ function extractRule(rule: Rule, builder: StylesheetBuilder) {
|
|
|
179
247
|
builder.applyRuleToSelectors();
|
|
180
248
|
}
|
|
181
249
|
|
|
182
|
-
if (declarationBlock.importantDeclarations) {
|
|
250
|
+
if (declarationBlock.importantDeclarations?.length) {
|
|
183
251
|
builder.newRule(mapping, { important: true });
|
|
184
252
|
for (const declaration of declarationBlock.importantDeclarations) {
|
|
185
253
|
parseDeclaration(declaration, builder);
|
|
@@ -190,7 +258,7 @@ function extractRule(rule: Rule, builder: StylesheetBuilder) {
|
|
|
190
258
|
|
|
191
259
|
if (value.rules) {
|
|
192
260
|
for (const nestedRule of value.rules) {
|
|
193
|
-
extractRule(nestedRule, builder);
|
|
261
|
+
extractRule(nestedRule, builder, mapping);
|
|
194
262
|
}
|
|
195
263
|
}
|
|
196
264
|
|
|
@@ -198,13 +266,13 @@ function extractRule(rule: Rule, builder: StylesheetBuilder) {
|
|
|
198
266
|
}
|
|
199
267
|
case "layer-block":
|
|
200
268
|
for (const layerRule of rule.value.rules) {
|
|
201
|
-
extractRule(layerRule, builder);
|
|
269
|
+
extractRule(layerRule, builder, mapping);
|
|
202
270
|
}
|
|
203
271
|
break;
|
|
204
272
|
case "supports":
|
|
205
273
|
if (supportsConditionValid(rule.value.condition)) {
|
|
206
274
|
for (const layerRule of rule.value.rules) {
|
|
207
|
-
extractRule(layerRule, builder);
|
|
275
|
+
extractRule(layerRule, builder, mapping);
|
|
208
276
|
}
|
|
209
277
|
}
|
|
210
278
|
break;
|
|
@@ -241,7 +309,11 @@ function extractRule(rule: Rule, builder: StylesheetBuilder) {
|
|
|
241
309
|
*
|
|
242
310
|
* @returns undefined if no screen media queries are found in the mediaRule, else it returns the extracted styles.
|
|
243
311
|
*/
|
|
244
|
-
function extractMedia(
|
|
312
|
+
function extractMedia(
|
|
313
|
+
mediaRule: MediaRule,
|
|
314
|
+
builder: StylesheetBuilder,
|
|
315
|
+
mapping: StyleRuleMapping,
|
|
316
|
+
) {
|
|
245
317
|
builder = builder.fork("media");
|
|
246
318
|
|
|
247
319
|
// Initialize an empty array to store screen media queries
|
|
@@ -274,7 +346,7 @@ function extractMedia(mediaRule: MediaRule, builder: StylesheetBuilder) {
|
|
|
274
346
|
|
|
275
347
|
// Iterate over all rules in the mediaRule and extract their styles using the updated CompilerCollection
|
|
276
348
|
for (const rule of mediaRule.rules) {
|
|
277
|
-
extractRule(rule, builder);
|
|
349
|
+
extractRule(rule, builder, mapping);
|
|
278
350
|
}
|
|
279
351
|
}
|
|
280
352
|
|
|
@@ -286,6 +358,7 @@ function extractMedia(mediaRule: MediaRule, builder: StylesheetBuilder) {
|
|
|
286
358
|
function extractContainer(
|
|
287
359
|
containerRule: ContainerRule,
|
|
288
360
|
builder: StylesheetBuilder,
|
|
361
|
+
mapping: StyleRuleMapping,
|
|
289
362
|
) {
|
|
290
363
|
builder = builder.fork("container");
|
|
291
364
|
|
|
@@ -301,6 +374,6 @@ function extractContainer(
|
|
|
301
374
|
builder.addContainerQuery(query);
|
|
302
375
|
|
|
303
376
|
for (const rule of containerRule.rules) {
|
|
304
|
-
extractRule(rule, builder);
|
|
377
|
+
extractRule(rule, builder, mapping);
|
|
305
378
|
}
|
|
306
379
|
}
|