react-native-css 0.0.0-nightly.008d479
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/LICENSE +20 -0
- package/README.md +330 -0
- package/dist/commonjs/babel/allowedModules.js +23 -0
- package/dist/commonjs/babel/allowedModules.js.map +1 -0
- package/dist/commonjs/babel/helpers.js +25 -0
- package/dist/commonjs/babel/helpers.js.map +1 -0
- package/dist/commonjs/babel/import-plugin.js +101 -0
- package/dist/commonjs/babel/import-plugin.js.map +1 -0
- package/dist/commonjs/babel/index.js +13 -0
- package/dist/commonjs/babel/index.js.map +1 -0
- package/dist/commonjs/babel/react-native-web.js +118 -0
- package/dist/commonjs/babel/react-native-web.js.map +1 -0
- package/dist/commonjs/babel/react-native.js +118 -0
- package/dist/commonjs/babel/react-native.js.map +1 -0
- package/dist/commonjs/compiler/atRules.js +108 -0
- package/dist/commonjs/compiler/atRules.js.map +1 -0
- package/dist/commonjs/compiler/compiler.js +338 -0
- package/dist/commonjs/compiler/compiler.js.map +1 -0
- package/dist/commonjs/compiler/compiler.types.js +4 -0
- package/dist/commonjs/compiler/compiler.types.js.map +1 -0
- package/dist/commonjs/compiler/container-query.js +63 -0
- package/dist/commonjs/compiler/container-query.js.map +1 -0
- package/dist/commonjs/compiler/declarations.js +2341 -0
- package/dist/commonjs/compiler/declarations.js.map +1 -0
- package/dist/commonjs/compiler/functions-web.js +44 -0
- package/dist/commonjs/compiler/functions-web.js.map +1 -0
- package/dist/commonjs/compiler/functions.js +59 -0
- package/dist/commonjs/compiler/functions.js.map +1 -0
- package/dist/commonjs/compiler/index.js +17 -0
- package/dist/commonjs/compiler/index.js.map +1 -0
- package/dist/commonjs/compiler/inheritance.test.js +78 -0
- package/dist/commonjs/compiler/inheritance.test.js.map +1 -0
- 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 +60 -0
- package/dist/commonjs/compiler/keyframes.js.map +1 -0
- package/dist/commonjs/compiler/lightningcss-loader.js +50 -0
- package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -0
- package/dist/commonjs/compiler/media-query.js +172 -0
- package/dist/commonjs/compiler/media-query.js.map +1 -0
- package/dist/commonjs/compiler/pseudo-elements.js +49 -0
- package/dist/commonjs/compiler/pseudo-elements.js.map +1 -0
- package/dist/commonjs/compiler/selector-builder.js +504 -0
- package/dist/commonjs/compiler/selector-builder.js.map +1 -0
- package/dist/commonjs/compiler/selectors.js +414 -0
- package/dist/commonjs/compiler/selectors.js.map +1 -0
- package/dist/commonjs/compiler/split-by-delimiter.js +21 -0
- package/dist/commonjs/compiler/split-by-delimiter.js.map +1 -0
- package/dist/commonjs/compiler/stylesheet.js +478 -0
- package/dist/commonjs/compiler/stylesheet.js.map +1 -0
- package/dist/commonjs/compiler/supports.js +29 -0
- package/dist/commonjs/compiler/supports.js.map +1 -0
- package/dist/commonjs/components/ActivityIndicator.js +22 -0
- package/dist/commonjs/components/ActivityIndicator.js.map +1 -0
- package/dist/commonjs/components/Button.js +22 -0
- package/dist/commonjs/components/Button.js.map +1 -0
- package/dist/commonjs/components/FlatList.js +20 -0
- package/dist/commonjs/components/FlatList.js.map +1 -0
- package/dist/commonjs/components/Image.js +17 -0
- package/dist/commonjs/components/Image.js.map +1 -0
- 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 +17 -0
- package/dist/commonjs/components/Switch.js.map +1 -0
- package/dist/commonjs/components/Text.js +17 -0
- package/dist/commonjs/components/Text.js.map +1 -0
- package/dist/commonjs/components/TextInput.js +22 -0
- package/dist/commonjs/components/TextInput.js.map +1 -0
- 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 +17 -0
- package/dist/commonjs/components/View.js.map +1 -0
- package/dist/commonjs/components/VirtualizedList.js +20 -0
- package/dist/commonjs/components/VirtualizedList.js.map +1 -0
- package/dist/commonjs/components/copyComponentProperties.js +19 -0
- package/dist/commonjs/components/copyComponentProperties.js.map +1 -0
- package/dist/commonjs/components/index.cjs +265 -0
- package/dist/commonjs/components/index.cjs.map +1 -0
- package/dist/commonjs/components/index.js +148 -0
- package/dist/commonjs/components/index.js.map +1 -0
- package/dist/commonjs/components/react-native-safe-area-context.js +17 -0
- package/dist/commonjs/components/react-native-safe-area-context.js.map +1 -0
- package/dist/commonjs/components/react-native-safe-area-context.native.js +53 -0
- package/dist/commonjs/components/react-native-safe-area-context.native.js.map +1 -0
- package/dist/commonjs/index.js +17 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/jest/expect.d.js +2 -0
- package/dist/commonjs/jest/expect.d.js.map +1 -0
- package/dist/commonjs/jest/index.js +55 -0
- package/dist/commonjs/jest/index.js.map +1 -0
- package/dist/commonjs/jest/setup.js +3 -0
- package/dist/commonjs/jest/setup.js.map +1 -0
- package/dist/commonjs/jest/setupAfterEnv.js +15 -0
- package/dist/commonjs/jest/setupAfterEnv.js.map +1 -0
- package/dist/commonjs/metro/index.js +60 -0
- package/dist/commonjs/metro/index.js.map +1 -0
- package/dist/commonjs/metro/injection-code.js +27 -0
- package/dist/commonjs/metro/injection-code.js.map +1 -0
- package/dist/commonjs/metro/metro-transformer.js +38 -0
- package/dist/commonjs/metro/metro-transformer.js.map +1 -0
- package/dist/commonjs/metro/override.js +6 -0
- package/dist/commonjs/metro/override.js.map +1 -0
- package/dist/commonjs/metro/picocolors.js +71 -0
- package/dist/commonjs/metro/picocolors.js.map +1 -0
- package/dist/commonjs/metro/resolver.js +58 -0
- package/dist/commonjs/metro/resolver.js.map +1 -0
- package/dist/commonjs/metro/stringify.js +59 -0
- package/dist/commonjs/metro/stringify.js.map +1 -0
- package/dist/commonjs/metro/typescript.js +47 -0
- package/dist/commonjs/metro/typescript.js.map +1 -0
- package/dist/commonjs/native/api.js +117 -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 +123 -0
- package/dist/commonjs/native/conditions/container-query.js.map +1 -0
- package/dist/commonjs/native/conditions/guards.js +33 -0
- package/dist/commonjs/native/conditions/guards.js.map +1 -0
- package/dist/commonjs/native/conditions/index.js +40 -0
- package/dist/commonjs/native/conditions/index.js.map +1 -0
- package/dist/commonjs/native/conditions/media-query.js +98 -0
- package/dist/commonjs/native/conditions/media-query.js.map +1 -0
- package/dist/commonjs/native/index.js +28 -0
- package/dist/commonjs/native/index.js.map +1 -0
- package/dist/commonjs/native/objects.js +92 -0
- package/dist/commonjs/native/objects.js.map +1 -0
- package/dist/commonjs/native/react/interaction.js +63 -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 +166 -0
- package/dist/commonjs/native/react/useNativeCss.js.map +1 -0
- package/dist/commonjs/native/react/usePassthrough.js +50 -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 +17 -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 +9 -0
- package/dist/commonjs/native/styles/constants.js.map +1 -0
- package/dist/commonjs/native/styles/defaults.js +69 -0
- package/dist/commonjs/native/styles/defaults.js.map +1 -0
- package/dist/commonjs/native/styles/functions/animation-timing.js +34 -0
- package/dist/commonjs/native/styles/functions/animation-timing.js.map +1 -0
- package/dist/commonjs/native/styles/functions/calc.js +125 -0
- package/dist/commonjs/native/styles/functions/calc.js.map +1 -0
- package/dist/commonjs/native/styles/functions/color-mix.js +50 -0
- package/dist/commonjs/native/styles/functions/color-mix.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 +94 -0
- package/dist/commonjs/native/styles/functions/index.js.map +1 -0
- package/dist/commonjs/native/styles/functions/numeric-functions.js +32 -0
- package/dist/commonjs/native/styles/functions/numeric-functions.js.map +1 -0
- package/dist/commonjs/native/styles/functions/platform-functions.js +46 -0
- package/dist/commonjs/native/styles/functions/platform-functions.js.map +1 -0
- package/dist/commonjs/native/styles/functions/string-functions.js +23 -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 +345 -0
- package/dist/commonjs/native/styles/index.js.map +1 -0
- package/dist/commonjs/native/styles/line-height.js +25 -0
- package/dist/commonjs/native/styles/line-height.js.map +1 -0
- package/dist/commonjs/native/styles/resolve.js +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 +12 -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 +61 -0
- package/dist/commonjs/native/styles/shorthands/index.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/text-shadow.js +13 -0
- package/dist/commonjs/native/styles/shorthands/text-shadow.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/transform.js +23 -0
- package/dist/commonjs/native/styles/shorthands/transform.js.map +1 -0
- package/dist/commonjs/native/styles/units.js +54 -0
- package/dist/commonjs/native/styles/units.js.map +1 -0
- package/dist/commonjs/native/styles/variables.js +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/package.json +1 -0
- package/dist/commonjs/runtime.js +17 -0
- package/dist/commonjs/runtime.js.map +1 -0
- package/dist/commonjs/runtime.native.js +17 -0
- package/dist/commonjs/runtime.native.js.map +1 -0
- package/dist/commonjs/runtime.types.js +6 -0
- package/dist/commonjs/runtime.types.js.map +1 -0
- package/dist/commonjs/utilities/dot-notation.types.js +2 -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 +44 -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 +89 -0
- package/dist/commonjs/web/api.js.map +1 -0
- package/dist/commonjs/web/assign-style.js +27 -0
- package/dist/commonjs/web/assign-style.js.map +1 -0
- package/dist/commonjs/web/index.js +18 -0
- package/dist/commonjs/web/index.js.map +1 -0
- package/dist/commonjs/web/metro.js +6 -0
- package/dist/commonjs/web/metro.js.map +1 -0
- package/dist/module/babel/allowedModules.js +19 -0
- package/dist/module/babel/allowedModules.js.map +1 -0
- package/dist/module/babel/helpers.js +21 -0
- package/dist/module/babel/helpers.js.map +1 -0
- package/dist/module/babel/import-plugin.js +97 -0
- package/dist/module/babel/import-plugin.js.map +1 -0
- package/dist/module/babel/index.js +9 -0
- package/dist/module/babel/index.js.map +1 -0
- package/dist/module/babel/react-native-web.js +112 -0
- package/dist/module/babel/react-native-web.js.map +1 -0
- package/dist/module/babel/react-native.js +112 -0
- package/dist/module/babel/react-native.js.map +1 -0
- package/dist/module/compiler/atRules.js +104 -0
- package/dist/module/compiler/atRules.js.map +1 -0
- package/dist/module/compiler/compiler.js +333 -0
- package/dist/module/compiler/compiler.js.map +1 -0
- package/dist/module/compiler/compiler.types.js +60 -0
- package/dist/module/compiler/compiler.types.js.map +1 -0
- package/dist/module/compiler/container-query.js +59 -0
- package/dist/module/compiler/container-query.js.map +1 -0
- package/dist/module/compiler/declarations.js +2260 -0
- package/dist/module/compiler/declarations.js.map +1 -0
- package/dist/module/compiler/functions-web.js +32 -0
- package/dist/module/compiler/functions-web.js.map +1 -0
- package/dist/module/compiler/functions.js +47 -0
- package/dist/module/compiler/functions.js.map +1 -0
- package/dist/module/compiler/index.js +9 -0
- package/dist/module/compiler/index.js.map +1 -0
- package/dist/module/compiler/inheritance.test.js +78 -0
- package/dist/module/compiler/inheritance.test.js.map +1 -0
- 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 +54 -0
- package/dist/module/compiler/keyframes.js.map +1 -0
- package/dist/module/compiler/lightningcss-loader.js +46 -0
- package/dist/module/compiler/lightningcss-loader.js.map +1 -0
- package/dist/module/compiler/media-query.js +166 -0
- package/dist/module/compiler/media-query.js.map +1 -0
- package/dist/module/compiler/pseudo-elements.js +44 -0
- package/dist/module/compiler/pseudo-elements.js.map +1 -0
- package/dist/module/compiler/selector-builder.js +499 -0
- package/dist/module/compiler/selector-builder.js.map +1 -0
- package/dist/module/compiler/selectors.js +409 -0
- package/dist/module/compiler/selectors.js.map +1 -0
- package/dist/module/compiler/split-by-delimiter.js +17 -0
- package/dist/module/compiler/split-by-delimiter.js.map +1 -0
- package/dist/module/compiler/stylesheet.js +473 -0
- package/dist/module/compiler/stylesheet.js.map +1 -0
- package/dist/module/compiler/supports.js +25 -0
- package/dist/module/compiler/supports.js.map +1 -0
- package/dist/module/components/ActivityIndicator.js +18 -0
- package/dist/module/components/ActivityIndicator.js.map +1 -0
- package/dist/module/components/Button.js +18 -0
- package/dist/module/components/Button.js.map +1 -0
- package/dist/module/components/FlatList.js +16 -0
- package/dist/module/components/FlatList.js.map +1 -0
- package/dist/module/components/Image.js +13 -0
- package/dist/module/components/Image.js.map +1 -0
- package/dist/module/components/ImageBackground.js +18 -0
- package/dist/module/components/ImageBackground.js.map +1 -0
- package/dist/module/components/KeyboardAvoidingView.js +15 -0
- package/dist/module/components/KeyboardAvoidingView.js.map +1 -0
- package/dist/module/components/Pressable.js +13 -0
- package/dist/module/components/Pressable.js.map +1 -0
- package/dist/module/components/ScrollView.js +14 -0
- package/dist/module/components/ScrollView.js.map +1 -0
- package/dist/module/components/Switch.js +13 -0
- package/dist/module/components/Switch.js.map +1 -0
- package/dist/module/components/Text.js +13 -0
- package/dist/module/components/Text.js.map +1 -0
- package/dist/module/components/TextInput.js +18 -0
- package/dist/module/components/TextInput.js.map +1 -0
- package/dist/module/components/TouchableHighlight.js +13 -0
- package/dist/module/components/TouchableHighlight.js.map +1 -0
- package/dist/module/components/TouchableOpacity.js +13 -0
- package/dist/module/components/TouchableOpacity.js.map +1 -0
- package/dist/module/components/TouchableWithoutFeedback.js +13 -0
- package/dist/module/components/TouchableWithoutFeedback.js.map +1 -0
- package/dist/module/components/View.js +13 -0
- package/dist/module/components/View.js.map +1 -0
- package/dist/module/components/VirtualizedList.js +16 -0
- package/dist/module/components/VirtualizedList.js.map +1 -0
- package/dist/module/components/copyComponentProperties.js +15 -0
- package/dist/module/components/copyComponentProperties.js.map +1 -0
- package/dist/module/components/index.cjs +265 -0
- package/dist/module/components/index.cjs.map +1 -0
- package/dist/module/components/index.js +20 -0
- package/dist/module/components/index.js.map +1 -0
- package/dist/module/components/react-native-safe-area-context.js +4 -0
- package/dist/module/components/react-native-safe-area-context.js.map +1 -0
- package/dist/module/components/react-native-safe-area-context.native.js +36 -0
- package/dist/module/components/react-native-safe-area-context.native.js.map +1 -0
- package/dist/module/index.js +4 -0
- package/dist/module/index.js.map +1 -0
- package/dist/module/jest/expect.d.js +2 -0
- package/dist/module/jest/expect.d.js.map +1 -0
- package/dist/module/jest/index.js +49 -0
- package/dist/module/jest/index.js.map +1 -0
- package/dist/module/jest/setup.js +3 -0
- package/dist/module/jest/setup.js.map +1 -0
- package/dist/module/jest/setupAfterEnv.js +15 -0
- package/dist/module/jest/setupAfterEnv.js.map +1 -0
- package/dist/module/metro/index.js +55 -0
- package/dist/module/metro/index.js.map +1 -0
- package/dist/module/metro/injection-code.js +22 -0
- package/dist/module/metro/injection-code.js.map +1 -0
- package/dist/module/metro/metro-transformer.js +34 -0
- package/dist/module/metro/metro-transformer.js.map +1 -0
- package/dist/module/metro/override.js +4 -0
- package/dist/module/metro/override.js.map +1 -0
- package/dist/module/metro/picocolors.js +67 -0
- package/dist/module/metro/picocolors.js.map +1 -0
- package/dist/module/metro/resolver.js +53 -0
- package/dist/module/metro/resolver.js.map +1 -0
- package/dist/module/metro/stringify.js +55 -0
- package/dist/module/metro/stringify.js.map +1 -0
- package/dist/module/metro/typescript.js +42 -0
- package/dist/module/metro/typescript.js.map +1 -0
- package/dist/module/native/api.js +85 -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 +117 -0
- package/dist/module/native/conditions/container-query.js.map +1 -0
- package/dist/module/native/conditions/guards.js +29 -0
- package/dist/module/native/conditions/guards.js.map +1 -0
- package/dist/module/native/conditions/index.js +36 -0
- package/dist/module/native/conditions/index.js.map +1 -0
- package/dist/module/native/conditions/media-query.js +93 -0
- package/dist/module/native/conditions/media-query.js.map +1 -0
- package/dist/module/native/index.js +5 -0
- package/dist/module/native/index.js.map +1 -0
- package/dist/module/native/objects.js +84 -0
- package/dist/module/native/objects.js.map +1 -0
- package/dist/module/native/react/interaction.js +59 -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 +160 -0
- package/dist/module/native/react/useNativeCss.js.map +1 -0
- package/dist/module/native/react/usePassthrough.js +45 -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 +13 -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 +5 -0
- package/dist/module/native/styles/constants.js.map +1 -0
- package/dist/module/native/styles/defaults.js +65 -0
- package/dist/module/native/styles/defaults.js.map +1 -0
- package/dist/module/native/styles/functions/animation-timing.js +30 -0
- package/dist/module/native/styles/functions/animation-timing.js.map +1 -0
- package/dist/module/native/styles/functions/calc.js +120 -0
- package/dist/module/native/styles/functions/calc.js.map +1 -0
- package/dist/module/native/styles/functions/color-mix.js +45 -0
- package/dist/module/native/styles/functions/color-mix.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 +11 -0
- package/dist/module/native/styles/functions/index.js.map +1 -0
- package/dist/module/native/styles/functions/numeric-functions.js +25 -0
- package/dist/module/native/styles/functions/numeric-functions.js.map +1 -0
- package/dist/module/native/styles/functions/platform-functions.js +36 -0
- package/dist/module/native/styles/functions/platform-functions.js.map +1 -0
- package/dist/module/native/styles/functions/string-functions.js +18 -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 +341 -0
- package/dist/module/native/styles/index.js.map +1 -0
- package/dist/module/native/styles/line-height.js +20 -0
- package/dist/module/native/styles/line-height.js.map +1 -0
- package/dist/module/native/styles/resolve.js +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 +8 -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 +8 -0
- package/dist/module/native/styles/shorthands/index.js.map +1 -0
- package/dist/module/native/styles/shorthands/text-shadow.js +9 -0
- package/dist/module/native/styles/shorthands/text-shadow.js.map +1 -0
- package/dist/module/native/styles/shorthands/transform.js +18 -0
- package/dist/module/native/styles/shorthands/transform.js.map +1 -0
- package/dist/module/native/styles/units.js +46 -0
- package/dist/module/native/styles/units.js.map +1 -0
- package/dist/module/native/styles/variables.js +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/package.json +1 -0
- package/dist/module/runtime.js +4 -0
- package/dist/module/runtime.js.map +1 -0
- package/dist/module/runtime.native.js +4 -0
- package/dist/module/runtime.native.js.map +1 -0
- package/dist/module/runtime.types.js +4 -0
- package/dist/module/runtime.types.js.map +1 -0
- package/dist/module/utilities/dot-notation.types.js +2 -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 +39 -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 +79 -0
- package/dist/module/web/api.js.map +1 -0
- package/dist/module/web/assign-style.js +23 -0
- package/dist/module/web/assign-style.js.map +1 -0
- package/dist/module/web/index.js +6 -0
- package/dist/module/web/index.js.map +1 -0
- package/dist/module/web/metro.js +5 -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 +4 -0
- package/dist/typescript/commonjs/example/app.config.d.ts.map +1 -0
- 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 +3 -0
- package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -0
- package/dist/typescript/commonjs/package.json +1 -0
- package/dist/typescript/commonjs/src/babel/allowedModules.d.ts +2 -0
- package/dist/typescript/commonjs/src/babel/allowedModules.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/babel/helpers.d.ts +13 -0
- package/dist/typescript/commonjs/src/babel/helpers.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/babel/import-plugin.d.ts +6 -0
- package/dist/typescript/commonjs/src/babel/import-plugin.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/babel/index.d.ts +4 -0
- package/dist/typescript/commonjs/src/babel/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/babel/react-native-web.d.ts +8 -0
- package/dist/typescript/commonjs/src/babel/react-native-web.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/babel/react-native.d.ts +8 -0
- package/dist/typescript/commonjs/src/babel/react-native.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/atRules.d.ts +34 -0
- package/dist/typescript/commonjs/src/compiler/atRules.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/compiler.d.ts +17 -0
- package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +201 -0
- package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/container-query.d.ts +5 -0
- package/dist/typescript/commonjs/src/compiler/container-query.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts +132 -0
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/functions-web.d.ts +11 -0
- package/dist/typescript/commonjs/src/compiler/functions-web.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/functions.d.ts +11 -0
- package/dist/typescript/commonjs/src/compiler/functions.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/index.d.ts +7 -0
- package/dist/typescript/commonjs/src/compiler/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts +2 -0
- package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts +4 -0
- package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +7 -0
- package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts +30 -0
- package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/media-query.d.ts +7 -0
- package/dist/typescript/commonjs/src/compiler/media-query.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/pseudo-elements.d.ts +4 -0
- package/dist/typescript/commonjs/src/compiler/pseudo-elements.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts +24 -0
- package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/selectors.d.ts +24 -0
- package/dist/typescript/commonjs/src/compiler/selectors.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/split-by-delimiter.d.ts +2 -0
- package/dist/typescript/commonjs/src/compiler/split-by-delimiter.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +69 -0
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/supports.d.ts +3 -0
- package/dist/typescript/commonjs/src/compiler/supports.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/Button.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/FlatList.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/Image.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/Pressable.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/ScrollView.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/Switch.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/Switch.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/Text.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/TextInput.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/View.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts +5 -0
- package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/index.d.cts +2 -0
- package/dist/typescript/commonjs/src/components/index.d.cts.map +1 -0
- package/dist/typescript/commonjs/src/components/index.d.ts +18 -0
- package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/react-native-safe-area-context.d.ts +2 -0
- package/dist/typescript/commonjs/src/components/react-native-safe-area-context.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/index.d.ts +2 -0
- package/dist/typescript/commonjs/src/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/jest/index.d.ts +30 -0
- package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/jest/setup.d.ts +1 -0
- package/dist/typescript/commonjs/src/jest/setup.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/jest/setupAfterEnv.d.ts +1 -0
- package/dist/typescript/commonjs/src/jest/setupAfterEnv.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/index.d.ts +11 -0
- package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/injection-code.d.ts +13 -0
- package/dist/typescript/commonjs/src/metro/injection-code.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts +6 -0
- package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -0
- 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/picocolors.d.ts +27 -0
- package/dist/typescript/commonjs/src/metro/picocolors.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/resolver.d.ts +4 -0
- package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/stringify.d.ts +7 -0
- package/dist/typescript/commonjs/src/metro/stringify.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/typescript.d.ts +2 -0
- package/dist/typescript/commonjs/src/metro/typescript.d.ts.map +1 -0
- 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 +5 -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 +5 -0
- package/dist/typescript/commonjs/src/native/objects.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/react/interaction.d.ts +6 -0
- package/dist/typescript/commonjs/src/native/react/interaction.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/react/rules.d.ts +7 -0
- package/dist/typescript/commonjs/src/native/react/rules.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts +38 -0
- package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/react/usePassthrough.d.ts +4 -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 +5 -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 +3 -0
- package/dist/typescript/commonjs/src/native/styles/constants.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/defaults.d.ts +3 -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 +4 -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 +3 -0
- package/dist/typescript/commonjs/src/native/styles/functions/calc.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts +3 -0
- package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts +12 -0
- package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts +9 -0
- package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/numeric-functions.d.ts +5 -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 +8 -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 +3 -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 +5 -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 +3 -0
- package/dist/typescript/commonjs/src/native/styles/line-height.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/resolve.d.ts +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 +11 -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 +2 -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 +3 -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 +6 -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 +2 -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 +7 -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 +6 -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 +2 -0
- package/dist/typescript/commonjs/src/runtime.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime.native.d.ts +2 -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 +23 -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 +2 -0
- package/dist/typescript/commonjs/src/web/assign-style.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/web/index.d.ts +4 -0
- package/dist/typescript/commonjs/src/web/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/web/metro.d.ts +2 -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 +4 -0
- package/dist/typescript/module/example/app.config.d.ts.map +1 -0
- 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 +3 -0
- package/dist/typescript/module/example/src/App.d.ts.map +1 -0
- package/dist/typescript/module/package.json +1 -0
- package/dist/typescript/module/src/babel/allowedModules.d.ts +2 -0
- package/dist/typescript/module/src/babel/allowedModules.d.ts.map +1 -0
- package/dist/typescript/module/src/babel/helpers.d.ts +13 -0
- package/dist/typescript/module/src/babel/helpers.d.ts.map +1 -0
- package/dist/typescript/module/src/babel/import-plugin.d.ts +6 -0
- package/dist/typescript/module/src/babel/import-plugin.d.ts.map +1 -0
- package/dist/typescript/module/src/babel/index.d.ts +4 -0
- package/dist/typescript/module/src/babel/index.d.ts.map +1 -0
- package/dist/typescript/module/src/babel/react-native-web.d.ts +8 -0
- package/dist/typescript/module/src/babel/react-native-web.d.ts.map +1 -0
- package/dist/typescript/module/src/babel/react-native.d.ts +8 -0
- package/dist/typescript/module/src/babel/react-native.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/atRules.d.ts +34 -0
- package/dist/typescript/module/src/compiler/atRules.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/compiler.d.ts +17 -0
- package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/compiler.types.d.ts +201 -0
- package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/container-query.d.ts +5 -0
- package/dist/typescript/module/src/compiler/container-query.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/declarations.d.ts +132 -0
- package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/functions-web.d.ts +11 -0
- package/dist/typescript/module/src/compiler/functions-web.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/functions.d.ts +11 -0
- package/dist/typescript/module/src/compiler/functions.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/index.d.ts +7 -0
- package/dist/typescript/module/src/compiler/index.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/inheritance.test.d.ts +2 -0
- package/dist/typescript/module/src/compiler/inheritance.test.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/inline-variables.d.ts +4 -0
- package/dist/typescript/module/src/compiler/inline-variables.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/keyframes.d.ts +7 -0
- package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts +30 -0
- package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/media-query.d.ts +7 -0
- package/dist/typescript/module/src/compiler/media-query.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/pseudo-elements.d.ts +4 -0
- package/dist/typescript/module/src/compiler/pseudo-elements.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/selector-builder.d.ts +24 -0
- package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/selectors.d.ts +24 -0
- package/dist/typescript/module/src/compiler/selectors.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/split-by-delimiter.d.ts +2 -0
- package/dist/typescript/module/src/compiler/split-by-delimiter.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/stylesheet.d.ts +69 -0
- package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/supports.d.ts +3 -0
- package/dist/typescript/module/src/compiler/supports.d.ts.map +1 -0
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts +4 -0
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -0
- package/dist/typescript/module/src/components/Button.d.ts +4 -0
- package/dist/typescript/module/src/components/Button.d.ts.map +1 -0
- package/dist/typescript/module/src/components/FlatList.d.ts +6 -0
- package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -0
- package/dist/typescript/module/src/components/Image.d.ts +4 -0
- package/dist/typescript/module/src/components/Image.d.ts.map +1 -0
- package/dist/typescript/module/src/components/ImageBackground.d.ts +4 -0
- package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -0
- package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +4 -0
- package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -0
- package/dist/typescript/module/src/components/Pressable.d.ts +4 -0
- package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -0
- package/dist/typescript/module/src/components/ScrollView.d.ts +4 -0
- package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -0
- package/dist/typescript/module/src/components/Switch.d.ts +4 -0
- package/dist/typescript/module/src/components/Switch.d.ts.map +1 -0
- package/dist/typescript/module/src/components/Text.d.ts +4 -0
- package/dist/typescript/module/src/components/Text.d.ts.map +1 -0
- package/dist/typescript/module/src/components/TextInput.d.ts +4 -0
- package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -0
- package/dist/typescript/module/src/components/TouchableHighlight.d.ts +4 -0
- package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -0
- package/dist/typescript/module/src/components/TouchableOpacity.d.ts +4 -0
- package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -0
- package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +4 -0
- package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
- package/dist/typescript/module/src/components/View.d.ts +4 -0
- package/dist/typescript/module/src/components/View.d.ts.map +1 -0
- package/dist/typescript/module/src/components/VirtualizedList.d.ts +6 -0
- package/dist/typescript/module/src/components/VirtualizedList.d.ts.map +1 -0
- package/dist/typescript/module/src/components/copyComponentProperties.d.ts +5 -0
- package/dist/typescript/module/src/components/copyComponentProperties.d.ts.map +1 -0
- package/dist/typescript/module/src/components/index.d.cts +2 -0
- package/dist/typescript/module/src/components/index.d.cts.map +1 -0
- package/dist/typescript/module/src/components/index.d.ts +18 -0
- package/dist/typescript/module/src/components/index.d.ts.map +1 -0
- package/dist/typescript/module/src/components/react-native-safe-area-context.d.ts +2 -0
- package/dist/typescript/module/src/components/react-native-safe-area-context.d.ts.map +1 -0
- package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts +4 -0
- package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts.map +1 -0
- package/dist/typescript/module/src/index.d.ts +2 -0
- package/dist/typescript/module/src/index.d.ts.map +1 -0
- package/dist/typescript/module/src/jest/index.d.ts +30 -0
- package/dist/typescript/module/src/jest/index.d.ts.map +1 -0
- package/dist/typescript/module/src/jest/setup.d.ts +1 -0
- package/dist/typescript/module/src/jest/setup.d.ts.map +1 -0
- package/dist/typescript/module/src/jest/setupAfterEnv.d.ts +1 -0
- package/dist/typescript/module/src/jest/setupAfterEnv.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/index.d.ts +11 -0
- package/dist/typescript/module/src/metro/index.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/injection-code.d.ts +13 -0
- package/dist/typescript/module/src/metro/injection-code.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/metro-transformer.d.ts +6 -0
- package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -0
- 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/picocolors.d.ts +27 -0
- package/dist/typescript/module/src/metro/picocolors.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/resolver.d.ts +4 -0
- package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/stringify.d.ts +7 -0
- package/dist/typescript/module/src/metro/stringify.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/typescript.d.ts +2 -0
- package/dist/typescript/module/src/metro/typescript.d.ts.map +1 -0
- 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 +5 -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 +5 -0
- package/dist/typescript/module/src/native/objects.d.ts.map +1 -0
- package/dist/typescript/module/src/native/react/interaction.d.ts +6 -0
- package/dist/typescript/module/src/native/react/interaction.d.ts.map +1 -0
- package/dist/typescript/module/src/native/react/rules.d.ts +7 -0
- package/dist/typescript/module/src/native/react/rules.d.ts.map +1 -0
- package/dist/typescript/module/src/native/react/useNativeCss.d.ts +38 -0
- package/dist/typescript/module/src/native/react/useNativeCss.d.ts.map +1 -0
- package/dist/typescript/module/src/native/react/usePassthrough.d.ts +4 -0
- package/dist/typescript/module/src/native/react/usePassthrough.d.ts.map +1 -0
- package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts +2 -0
- package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts.map +1 -0
- package/dist/typescript/module/src/native/reactivity.d.ts +52 -0
- package/dist/typescript/module/src/native/reactivity.d.ts.map +1 -0
- package/dist/typescript/module/src/native/reanimated.d.ts +5 -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 +3 -0
- package/dist/typescript/module/src/native/styles/constants.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/defaults.d.ts +3 -0
- package/dist/typescript/module/src/native/styles/defaults.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts +4 -0
- package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/calc.d.ts +3 -0
- package/dist/typescript/module/src/native/styles/functions/calc.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts +3 -0
- package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/filters.d.ts +12 -0
- package/dist/typescript/module/src/native/styles/functions/filters.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/index.d.ts +9 -0
- package/dist/typescript/module/src/native/styles/functions/index.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts +5 -0
- package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts +8 -0
- package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts +3 -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 +5 -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 +3 -0
- package/dist/typescript/module/src/native/styles/line-height.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/resolve.d.ts +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 +11 -0
- package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts +5 -0
- package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/border.d.ts +2 -0
- package/dist/typescript/module/src/native/styles/shorthands/border.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts +3 -0
- package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/index.d.ts +6 -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 +2 -0
- package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts +7 -0
- package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/units.d.ts +6 -0
- package/dist/typescript/module/src/native/styles/units.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/variables.d.ts +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 +2 -0
- package/dist/typescript/module/src/runtime.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime.native.d.ts +2 -0
- package/dist/typescript/module/src/runtime.native.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime.types.d.ts +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 +23 -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 +2 -0
- package/dist/typescript/module/src/web/assign-style.d.ts.map +1 -0
- package/dist/typescript/module/src/web/index.d.ts +4 -0
- package/dist/typescript/module/src/web/index.d.ts.map +1 -0
- package/dist/typescript/module/src/web/metro.d.ts +2 -0
- package/dist/typescript/module/src/web/metro.d.ts.map +1 -0
- package/package.json +304 -0
- package/src/babel/allowedModules.ts +24 -0
- package/src/babel/helpers.ts +40 -0
- package/src/babel/import-plugin.ts +176 -0
- package/src/babel/index.ts +9 -0
- package/src/babel/react-native-web.ts +226 -0
- package/src/babel/react-native.ts +226 -0
- package/src/compiler/atRules.ts +149 -0
- package/src/compiler/compiler.ts +379 -0
- package/src/compiler/compiler.types.ts +275 -0
- package/src/compiler/container-query.ts +97 -0
- package/src/compiler/declarations.ts +3444 -0
- package/src/compiler/functions-web.ts +44 -0
- package/src/compiler/functions.ts +64 -0
- package/src/compiler/index.ts +7 -0
- package/src/compiler/inheritance.test.ts +121 -0
- package/src/compiler/inline-variables.ts +209 -0
- package/src/compiler/keyframes.ts +86 -0
- package/src/compiler/lightningcss-loader.ts +59 -0
- package/src/compiler/media-query.ts +251 -0
- package/src/compiler/pseudo-elements.ts +54 -0
- package/src/compiler/selector-builder.ts +592 -0
- package/src/compiler/selectors.ts +505 -0
- package/src/compiler/split-by-delimiter.ts +19 -0
- package/src/compiler/stylesheet.ts +680 -0
- package/src/compiler/supports.ts +28 -0
- package/src/components/ActivityIndicator.tsx +30 -0
- package/src/components/Button.tsx +27 -0
- package/src/components/FlatList.tsx +31 -0
- package/src/components/Image.tsx +22 -0
- package/src/components/ImageBackground.tsx +30 -0
- package/src/components/KeyboardAvoidingView.tsx +27 -0
- package/src/components/Pressable.tsx +22 -0
- package/src/components/ScrollView.tsx +23 -0
- package/src/components/Switch.tsx +22 -0
- package/src/components/Text.tsx +22 -0
- package/src/components/TextInput.tsx +27 -0
- package/src/components/TouchableHighlight.tsx +25 -0
- package/src/components/TouchableOpacity.tsx +25 -0
- package/src/components/TouchableWithoutFeedback.tsx +25 -0
- package/src/components/View.tsx +22 -0
- package/src/components/VirtualizedList.tsx +37 -0
- package/src/components/copyComponentProperties.ts +21 -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 +44 -0
- package/src/components/react-native-safe-area-context.tsx +1 -0
- package/src/index.ts +1 -0
- package/src/jest/expect.d.ts +1 -0
- package/src/jest/index.ts +75 -0
- package/src/jest/setup.ts +1 -0
- package/src/jest/setupAfterEnv.ts +13 -0
- package/src/metro/index.ts +83 -0
- package/src/metro/injection-code.ts +34 -0
- package/src/metro/metro-transformer.ts +62 -0
- package/src/metro/override.ts +1 -0
- package/src/metro/picocolors.ts +77 -0
- package/src/metro/resolver.ts +98 -0
- package/src/metro/stringify.ts +59 -0
- package/src/metro/typescript.ts +73 -0
- package/src/native/api.tsx +124 -0
- package/src/native/conditions/attributes.ts +54 -0
- package/src/native/conditions/container-query.ts +162 -0
- package/src/native/conditions/guards.ts +44 -0
- package/src/native/conditions/index.ts +55 -0
- package/src/native/conditions/media-query.ts +99 -0
- package/src/native/index.ts +3 -0
- package/src/native/objects.ts +109 -0
- package/src/native/react/interaction.ts +90 -0
- package/src/native/react/rules.ts +336 -0
- package/src/native/react/useNativeCss.ts +211 -0
- package/src/native/react/usePassthrough.ts +51 -0
- package/src/native/react-native-css-metro-override.ts +36 -0
- package/src/native/reactivity.ts +248 -0
- package/src/native/reanimated.ts +22 -0
- package/src/native/styles/calculate-props.ts +217 -0
- package/src/native/styles/constants.ts +2 -0
- package/src/native/styles/defaults.ts +79 -0
- package/src/native/styles/functions/animation-timing.ts +44 -0
- package/src/native/styles/functions/calc.ts +121 -0
- package/src/native/styles/functions/color-mix.ts +68 -0
- package/src/native/styles/functions/filters.ts +99 -0
- package/src/native/styles/functions/index.ts +8 -0
- package/src/native/styles/functions/numeric-functions.ts +38 -0
- package/src/native/styles/functions/platform-functions.ts +50 -0
- package/src/native/styles/functions/string-functions.ts +22 -0
- package/src/native/styles/functions/transform-functions.ts +85 -0
- package/src/native/styles/index.ts +474 -0
- package/src/native/styles/line-height.ts +25 -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/border.ts +10 -0
- package/src/native/styles/shorthands/box-shadow.ts +71 -0
- package/src/native/styles/shorthands/index.ts +5 -0
- package/src/native/styles/shorthands/text-shadow.ts +17 -0
- package/src/native/styles/shorthands/transform.ts +23 -0
- package/src/native/styles/units.ts +62 -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.native.ts +1 -0
- package/src/runtime.ts +1 -0
- package/src/runtime.types.ts +150 -0
- package/src/utilities/dot-notation.types.ts +125 -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 +120 -0
- package/src/web/assign-style.ts +26 -0
- package/src/web/index.ts +5 -0
- package/src/web/metro.ts +2 -0
- package/types.d.ts +73 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.handleReactNativeIdentifierRequire = handleReactNativeIdentifierRequire;
|
|
7
|
+
exports.handleReactNativeImport = handleReactNativeImport;
|
|
8
|
+
exports.handleReactNativeObjectPatternRequire = handleReactNativeObjectPatternRequire;
|
|
9
|
+
var _path = require("path");
|
|
10
|
+
var _allowedModules = require("./allowedModules.js");
|
|
11
|
+
function parseReactNativeSource(source, filename) {
|
|
12
|
+
if (source.startsWith(".")) {
|
|
13
|
+
source = (0, _path.resolve)((0, _path.dirname)(filename), source);
|
|
14
|
+
const internalPath = source.split("react-native/Libraries/Components/")[1];
|
|
15
|
+
if (!internalPath) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Strip the absolute system filepath
|
|
20
|
+
source = `react-native/Libraries/Components/${internalPath}`;
|
|
21
|
+
}
|
|
22
|
+
if (source === "react-native") {
|
|
23
|
+
return {
|
|
24
|
+
source: "react-native-css/components"
|
|
25
|
+
};
|
|
26
|
+
} else if (source.startsWith("react-native/")) {
|
|
27
|
+
const name = source.split("/").at(-1);
|
|
28
|
+
if (!name || !_allowedModules.allowedModules.has(name)) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
source: `react-native-css/components/${name}`,
|
|
33
|
+
name
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
function handleReactNativeImport(declaration, t, filename) {
|
|
39
|
+
const {
|
|
40
|
+
specifiers,
|
|
41
|
+
source
|
|
42
|
+
} = declaration;
|
|
43
|
+
const rnwSource = parseReactNativeSource(source.value, filename);
|
|
44
|
+
if (!rnwSource) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
if (specifiers.length === 0) {
|
|
48
|
+
return [t.importDeclaration([], t.stringLiteral("react-native-css/components"))];
|
|
49
|
+
}
|
|
50
|
+
const statements = [];
|
|
51
|
+
for (const specifier of specifiers) {
|
|
52
|
+
if (t.isImportDefaultSpecifier(specifier)) {
|
|
53
|
+
const {
|
|
54
|
+
source: newSource,
|
|
55
|
+
name
|
|
56
|
+
} = rnwSource;
|
|
57
|
+
if (!name) {
|
|
58
|
+
statements.push(t.importDeclaration([t.importDefaultSpecifier(specifier.local)], t.stringLiteral(newSource)));
|
|
59
|
+
} else {
|
|
60
|
+
statements.push(t.importDeclaration([t.importSpecifier(specifier.local, specifier.local)], t.stringLiteral(`react-native-css/components/${name}`)));
|
|
61
|
+
}
|
|
62
|
+
} else if (t.isImportNamespaceSpecifier(specifier)) {
|
|
63
|
+
statements.push(t.importDeclaration([specifier], t.stringLiteral("react-native-css/components")));
|
|
64
|
+
} else {
|
|
65
|
+
const localName = t.isStringLiteral(specifier.imported) ? specifier.imported.value : specifier.imported.name;
|
|
66
|
+
if (!_allowedModules.allowedModules.has(localName)) {
|
|
67
|
+
statements.push(t.importDeclaration([specifier], source));
|
|
68
|
+
} else {
|
|
69
|
+
statements.push(t.importDeclaration([t.importSpecifier(specifier.local, specifier.imported)], t.stringLiteral(`react-native-css/components/${localName}`)));
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return statements;
|
|
74
|
+
}
|
|
75
|
+
function handleReactNativeIdentifierRequire(path, t, id, source, filename) {
|
|
76
|
+
const parsedSource = parseReactNativeSource(source, filename);
|
|
77
|
+
if (!parsedSource) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const {
|
|
81
|
+
source: newSource,
|
|
82
|
+
name
|
|
83
|
+
} = parsedSource;
|
|
84
|
+
if (name) {
|
|
85
|
+
return [t.variableDeclaration(path.node.kind, [t.variableDeclarator(t.objectPattern([name === id ? t.objectProperty(t.identifier(name), t.identifier(id), false, true) : t.objectProperty(t.identifier(name), t.identifier(id))]), t.callExpression(t.identifier("require"), [t.stringLiteral(newSource)]))])];
|
|
86
|
+
} else {
|
|
87
|
+
return [t.variableDeclaration(path.node.kind, [t.variableDeclarator(t.identifier(id), t.callExpression(t.identifier("require"), [t.stringLiteral(newSource)]))])];
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
function handleReactNativeObjectPatternRequire(path, t, id, source, filename) {
|
|
91
|
+
const parsedSource = parseReactNativeSource(source, filename);
|
|
92
|
+
|
|
93
|
+
// Don't handle `const { Text } = require('react-native/Libraries/Text/Text');` - we only handle package exports
|
|
94
|
+
if (!parsedSource || parsedSource.name) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
const statements = [];
|
|
98
|
+
for (const identifier of id.properties) {
|
|
99
|
+
if (t.isRestElement(identifier)) {
|
|
100
|
+
// Bail out on `const { ...rest } = require('react-native');`
|
|
101
|
+
// We need to exit as we do not handle `const { Text, ...rest } = require('react-native');`
|
|
102
|
+
return;
|
|
103
|
+
} else if (!(t.isIdentifier(identifier.value) && t.isIdentifier(identifier.key))) {
|
|
104
|
+
// Bail out on anything that isn't `const { <key>: <identifier> } = require('react-native');`
|
|
105
|
+
return;
|
|
106
|
+
} else {
|
|
107
|
+
const name = identifier.key.name;
|
|
108
|
+
if (!_allowedModules.allowedModules.has(name)) {
|
|
109
|
+
statements.push(t.variableDeclaration(path.node.kind, [t.variableDeclarator(t.objectPattern([identifier]), t.callExpression(t.identifier("require"), [t.stringLiteral(source)]))]));
|
|
110
|
+
} else {
|
|
111
|
+
const newSourceWithName = `react-native-css/components/${name}`;
|
|
112
|
+
statements.push(t.variableDeclaration(path.node.kind, [t.variableDeclarator(t.objectPattern([t.objectProperty(t.identifier(name), t.identifier(identifier.value.name), false, true)]), t.callExpression(t.identifier("require"), [t.stringLiteral(newSourceWithName)]))]));
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return statements;
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=react-native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_path","require","_allowedModules","parseReactNativeSource","source","filename","startsWith","resolve","dirname","internalPath","split","name","at","allowedModules","has","handleReactNativeImport","declaration","t","specifiers","rnwSource","value","length","importDeclaration","stringLiteral","statements","specifier","isImportDefaultSpecifier","newSource","push","importDefaultSpecifier","local","importSpecifier","isImportNamespaceSpecifier","localName","isStringLiteral","imported","handleReactNativeIdentifierRequire","path","id","parsedSource","variableDeclaration","node","kind","variableDeclarator","objectPattern","objectProperty","identifier","callExpression","handleReactNativeObjectPatternRequire","properties","isRestElement","isIdentifier","key","newS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AClB1B,CAAC,CAAC2B,aAAa,CAAC,CAACE,UAAU,CAAC,CAAC,EAC7B7B,CAAC,CAAC8B,cAAc,CAAC9B,CAAC,CAAC6B,UAAU,CAAC,SAAS,CAAC,EAAE,CACxC7B,CAAC,CAACM,aAAa,CAACnB,MAAM,CAAC,CACxB,CACH,CAAC,CACF,CACH,CAAC;MACH,CAAC,MAAM;QACL,MAAMiD,iBAAiB,GAAG,+BAA+B1C,IAAI,EAAE;QAE/Da,UAAU,CAACI,IAAI,CACbX,CAAC,CAACuB,mBAAmB,CAACH,IAAI,CAACI,IAAI,CAACC,IAAI,EAAE,CACpCzB,CAAC,CAAC0B,kBAAkB,CAClB1B,CAAC,CAAC2B,aAAa,CAAC,CACd3B,CAAC,CAAC4B,cAAc,CACd5B,CAAC,CAAC6B,UAAU,CAACnC,IAAI,CAAC,EAClBM,CAAC,CAAC6B,UAAU,CAACA,UAAU,CAAC1B,KAAK,CAACT,IAAI,CAAC,EACnC,KAAK,EACL,IACF,CAAC,CACF,CAAC,EACFM,CAAC,CAAC8B,cAAc,CAAC9B,CAAC,CAAC6B,UAAU,CAAC,SAAS,CAAC,EAAE,CACxC7B,CAAC,CAACM,aAAa,CAAC8B,iBAAiB,CAAC,CACnC,CACH,CAAC,CACF,CACH,CAAC;MACH;IACF;EACF;EAEA,OAAO7B,UAAU;AACnB","ignoreList":[]}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.maybeMutateReactNativeOptions = maybeMutateReactNativeOptions;
|
|
7
|
+
exports.parsePropAtRule = parsePropAtRule;
|
|
8
|
+
var _selectors = require("./selectors.js");
|
|
9
|
+
var _splitByDelimiter = require("./split-by-delimiter.js");
|
|
10
|
+
/***********************************************
|
|
11
|
+
* @react-native *
|
|
12
|
+
***********************************************/
|
|
13
|
+
|
|
14
|
+
function maybeMutateReactNativeOptions(rule, _builder) {
|
|
15
|
+
if (rule.type !== "custom" || rule.value?.name !== "react-native") {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// TODO: Add inline options
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/***********************************************
|
|
23
|
+
* @nativeMapping *
|
|
24
|
+
***********************************************/
|
|
25
|
+
|
|
26
|
+
function isNativeMappingAtRule(rule) {
|
|
27
|
+
return rule.type === "unknown" && rule.value.name === "nativeMapping";
|
|
28
|
+
}
|
|
29
|
+
function parsePropAtRule(rules) {
|
|
30
|
+
// Include any default mapping here
|
|
31
|
+
const mapping = {
|
|
32
|
+
"caret-color": ["cursorColor"],
|
|
33
|
+
"fill": ["fill"],
|
|
34
|
+
"stroke": ["stroke"],
|
|
35
|
+
"stroke-width": ["strokeWidth"],
|
|
36
|
+
"-webkit-line-clamp": ["numberOfLines"],
|
|
37
|
+
"-rn-ripple-color": ["android_ripple", "color"],
|
|
38
|
+
"-rn-ripple-style": ["android_ripple", "borderless"],
|
|
39
|
+
"-rn-ripple-radius": ["android_ripple", "radius"],
|
|
40
|
+
"-rn-ripple-layer": ["android_ripple", "foreground"]
|
|
41
|
+
};
|
|
42
|
+
if (!rules) return mapping;
|
|
43
|
+
for (const rule of rules) {
|
|
44
|
+
if (!isNativeMappingAtRule(rule)) continue;
|
|
45
|
+
if (rule.value.prelude.length > 0) {
|
|
46
|
+
const prelude = rule.value.prelude.filter(item => {
|
|
47
|
+
return item.value.type !== "white-space";
|
|
48
|
+
});
|
|
49
|
+
nativeMappingAtRuleBlock(prelude, mapping);
|
|
50
|
+
} else if (rule.value.block) {
|
|
51
|
+
// Remove all whitespace tokens
|
|
52
|
+
const blocks = rule.value.block.filter(item => {
|
|
53
|
+
return item.value.type !== "white-space";
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
// Separate each rule, delimited by a semicolon
|
|
57
|
+
const blockRules = (0, _splitByDelimiter.splitByDelimiter)(blocks, item => {
|
|
58
|
+
return item.value.type === "semicolon";
|
|
59
|
+
});
|
|
60
|
+
for (const block of blockRules) {
|
|
61
|
+
nativeMappingAtRuleBlock(block, mapping);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return mapping;
|
|
66
|
+
}
|
|
67
|
+
function nativeMappingAtRuleBlock(token, mapping = {}) {
|
|
68
|
+
let [from, to] = (0, _splitByDelimiter.splitByDelimiter)(token, item => {
|
|
69
|
+
return item.value.type === "colon";
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
// @nativeMapping <to>; (has no from value)
|
|
73
|
+
if (!to) {
|
|
74
|
+
to = from;
|
|
75
|
+
from = [{
|
|
76
|
+
type: "token",
|
|
77
|
+
value: {
|
|
78
|
+
type: "ident",
|
|
79
|
+
value: "*"
|
|
80
|
+
}
|
|
81
|
+
}];
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// We can only map from a single property
|
|
85
|
+
if (!from || from.length !== 1 || !to) {
|
|
86
|
+
return mapping;
|
|
87
|
+
}
|
|
88
|
+
const fromToken = from[0];
|
|
89
|
+
if (!fromToken || fromToken.value.type !== "ident") {
|
|
90
|
+
return mapping;
|
|
91
|
+
}
|
|
92
|
+
let value = to.flatMap((item, index) => {
|
|
93
|
+
switch (item.value.type) {
|
|
94
|
+
case "delim":
|
|
95
|
+
return index === 0 && item.value.value === "&" ? ["&"] : [];
|
|
96
|
+
case "ident":
|
|
97
|
+
return item.value.value.split(".").map(part => (0, _selectors.toRNProperty)(part));
|
|
98
|
+
default:
|
|
99
|
+
return [];
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
if (value.length === 2 && value[0] === "&" && value[1]) {
|
|
103
|
+
value = value[1];
|
|
104
|
+
}
|
|
105
|
+
mapping[(0, _selectors.toRNProperty)(fromToken.value.value)] = value;
|
|
106
|
+
return mapping;
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=atRules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_selectors","require","_splitByDelimiter","maybeMutateReactNativeOptions","rule","_builder","type","value","name","isNativeMappingAtRule","parsePropAtRule","rules","mapping","prelude","length","filter","item","nativeMappingAtRuleBlock","block","blocks","blockRules","splitByDelimiter","token","from","to","fromToken","flatMap","index","split","map","part","toRNProperty"],"sourceRoot":"../../../src","sources":["compiler/atRules.ts"],"mappings":";;;;;;;AAQA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AAYA;AACA;AACA;;AAcO,SAASE,6BAA6BA,CAC3CC,IAA8B,EAC9BC,QAA2B,EAC3B;EACA,IAAID,IAAI,CAACE,IAAI,KAAK,QAAQ,IAAIF,IAAI,CAACG,KAAK,EAAEC,IAAI,KAAK,cAAc,EAAE;IACjE;EACF;;EAEA;AACF;;AAEA;AACA;AACA;;AAEA,SAASC,qBAAqBA,CAACL,IAAuB,EAAsB;EAC1E,OAAOA,IAAI,CAACE,IAAI,KAAK,SAAS,IAAIF,IAAI,CAACG,KAAK,CAACC,IAAI,KAAK,eAAe;AACvE;AAEO,SAASE,eAAeA,CAACC,KAA6B,EAAE;EAC7D;EACA,MAAMC,OAAyB,GAAG;IAChC,aAAa,EAAE,CAAC,aAAa,CAAC;IAC9B,MAAM,EAAE,CAAC,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,QAAQ,CAAC;IACpB,cAAc,EAAE,CAAC,aAAa,CAAC;IAC/B,oBAAoB,EAAE,CAAC,eAAe,CAAC;IACvC,kBAAkB,EAAE,CAAC,gBAAgB,EAAE,OAAO,CAAC;IAC/C,kBAAkB,EAAE,CAAC,gBAAgB,EAAE,YAAY,CAAC;IACpD,mBAAmB,EAAE,CAAC,gBAAgB,EAAE,QAAQ,CAAC;IACjD,kBAAkB,EAAE,CAAC,gBAAgB,EAAE,YAAY;EACrD,CAAC;EAED,IAAI,CAACD,KAAK,EAAE,OAAOC,OAAO;EAE1B,KAAK,MAAMR,IAAI,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{
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.compile = compile;
|
|
7
|
+
var _nodeUtil = require("node:util");
|
|
8
|
+
var _debug = require("debug");
|
|
9
|
+
var _atRules = require("./atRules.js");
|
|
10
|
+
var _containerQuery = require("./container-query.js");
|
|
11
|
+
var _declarations = require("./declarations.js");
|
|
12
|
+
var _inlineVariables = require("./inline-variables.js");
|
|
13
|
+
var _keyframes = require("./keyframes.js");
|
|
14
|
+
var _lightningcssLoader = require("./lightningcss-loader.js");
|
|
15
|
+
var _mediaQuery = require("./media-query.js");
|
|
16
|
+
var _stylesheet = require("./stylesheet.js");
|
|
17
|
+
var _supports = require("./supports.js");
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
|
|
20
|
+
const defaultLogger = (0, _debug.debug)("react-native-css:compiler");
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Converts a CSS file to a collection of style declarations that can be used with the StyleSheet API
|
|
24
|
+
*
|
|
25
|
+
* @param code - The CSS file contents
|
|
26
|
+
* @param options - Compiler options
|
|
27
|
+
* @returns A `ReactNativeCssStyleSheet` that can be passed to `StyleSheet.register` or used with a custom runtime
|
|
28
|
+
*/
|
|
29
|
+
function compile(code, options = {}) {
|
|
30
|
+
const {
|
|
31
|
+
logger = defaultLogger
|
|
32
|
+
} = options;
|
|
33
|
+
const isLoggerEnabled = "enabled" in logger ? logger.enabled : Boolean(logger);
|
|
34
|
+
const features = Object.assign({}, options.features);
|
|
35
|
+
if (options.selectorPrefix && options.selectorPrefix.startsWith(".")) {
|
|
36
|
+
options.selectorPrefix = options.selectorPrefix.slice(1);
|
|
37
|
+
}
|
|
38
|
+
logger(`Features ${JSON.stringify(features)}`);
|
|
39
|
+
if (process.env.NODE_ENV !== "production") {
|
|
40
|
+
if (defaultLogger.enabled) {
|
|
41
|
+
defaultLogger(code.toString());
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
const builder = new _stylesheet.StylesheetBuilder(options);
|
|
45
|
+
const {
|
|
46
|
+
lightningcss,
|
|
47
|
+
Features
|
|
48
|
+
} = (0, _lightningcssLoader.lightningcssLoader)();
|
|
49
|
+
logger(`Lightningcss first pass`);
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Use the lightningcss library to traverse the CSS AST and extract style declarations and animations
|
|
53
|
+
*
|
|
54
|
+
* devongovett on Aug 20, 2023
|
|
55
|
+
* > 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.
|
|
56
|
+
* https://github.com/parcel-bundler/lightningcss/issues/554#issuecomment-1685143494
|
|
57
|
+
*
|
|
58
|
+
* Due to the above issue, we run lightningcss twice
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
const vars = new Map();
|
|
62
|
+
const firstPassVisitor = {};
|
|
63
|
+
if (options.inlineRem !== false) {
|
|
64
|
+
firstPassVisitor.Length = length => {
|
|
65
|
+
if (length.unit !== "rem" || options.inlineRem === false) {
|
|
66
|
+
return length;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
unit: "px",
|
|
70
|
+
value: (0, _declarations.round)(length.value * (options.inlineRem ?? 14))
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
if (options.inlineVariables !== false) {
|
|
75
|
+
const exclusionList = options.inlineVariables?.exclude ?? [];
|
|
76
|
+
firstPassVisitor.Declaration = decl => {
|
|
77
|
+
if (decl.property === "custom" && decl.value.name.startsWith("--") && !exclusionList.includes(decl.value.name)) {
|
|
78
|
+
const entry = vars.get(decl.value.name) ?? {
|
|
79
|
+
count: 0,
|
|
80
|
+
value: [...decl.value.value, {
|
|
81
|
+
type: "token",
|
|
82
|
+
value: {
|
|
83
|
+
type: "white-space",
|
|
84
|
+
value: " "
|
|
85
|
+
}
|
|
86
|
+
}]
|
|
87
|
+
};
|
|
88
|
+
entry.count++;
|
|
89
|
+
vars.set(decl.value.name, entry);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
firstPassVisitor.StyleSheetExit = sheet => {
|
|
93
|
+
return (0, _inlineVariables.inlineVariables)(sheet, vars);
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
const {
|
|
97
|
+
code: firstPass
|
|
98
|
+
} = lightningcss({
|
|
99
|
+
code: typeof code === "string" ? new TextEncoder().encode(code) : code,
|
|
100
|
+
include: Features.DoublePositionGradients | Features.ColorFunction,
|
|
101
|
+
exclude: Features.VendorPrefixes,
|
|
102
|
+
visitor: firstPassVisitor,
|
|
103
|
+
filename: options.filename ?? "style.css",
|
|
104
|
+
projectRoot: options.projectRoot ?? process.cwd()
|
|
105
|
+
});
|
|
106
|
+
if (isLoggerEnabled) {
|
|
107
|
+
const MAX_LOG_SIZE = 100 * 1024; // 100KB
|
|
108
|
+
if (firstPass.length <= MAX_LOG_SIZE) {
|
|
109
|
+
logger(firstPass.toString());
|
|
110
|
+
} else {
|
|
111
|
+
logger(`firstPass buffer too large to log in full (${firstPass.length} bytes). Preview: ` + firstPass.subarray(0, 1024).toString() + "...");
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
logger(`Lightningcss second pass`);
|
|
115
|
+
const customAtRules = {
|
|
116
|
+
"react-native": {
|
|
117
|
+
body: "declaration-list"
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
const visitor = {
|
|
121
|
+
Rule(rule) {
|
|
122
|
+
(0, _atRules.maybeMutateReactNativeOptions)(rule, builder);
|
|
123
|
+
return rule;
|
|
124
|
+
},
|
|
125
|
+
StyleSheetExit(sheet) {
|
|
126
|
+
if (isLoggerEnabled) {
|
|
127
|
+
logger(`Found ${sheet.rules.length} rules to process`);
|
|
128
|
+
logger((0, _nodeUtil.inspect)(sheet.rules, {
|
|
129
|
+
depth: null,
|
|
130
|
+
colors: true,
|
|
131
|
+
compact: false
|
|
132
|
+
}));
|
|
133
|
+
}
|
|
134
|
+
for (const rule of sheet.rules) {
|
|
135
|
+
// Extract the style declarations and animations from the current rule
|
|
136
|
+
extractRule(rule, builder);
|
|
137
|
+
// We have processed this rule, so now delete it from the AST
|
|
138
|
+
}
|
|
139
|
+
logger(`Exiting lightningcss`);
|
|
140
|
+
return sheet;
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
lightningcss({
|
|
144
|
+
code: firstPass,
|
|
145
|
+
visitor,
|
|
146
|
+
filename: options.filename ?? "style.css",
|
|
147
|
+
projectRoot: options.projectRoot ?? process.cwd()
|
|
148
|
+
});
|
|
149
|
+
return {
|
|
150
|
+
stylesheet: () => builder.getNativeStyleSheet(),
|
|
151
|
+
warnings: () => builder.getWarnings()
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Extracts style declarations and animations from a given CSS rule, based on its type.
|
|
157
|
+
*/
|
|
158
|
+
function extractRule(rule, builder, mapping = {}) {
|
|
159
|
+
// Check the rule's type to determine which extraction function to call
|
|
160
|
+
switch (rule.type) {
|
|
161
|
+
case "keyframes":
|
|
162
|
+
{
|
|
163
|
+
// If the rule is a keyframe animation, extract it with the `extractKeyFrames` function
|
|
164
|
+
(0, _keyframes.extractKeyFrames)(rule.value, builder);
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
case "container":
|
|
168
|
+
{
|
|
169
|
+
// If the rule is a container, extract it with the `extractedContainer` function
|
|
170
|
+
extractContainer(rule.value, builder, mapping);
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
case "media":
|
|
174
|
+
{
|
|
175
|
+
// If the rule is a media query, extract it with the `extractMedia` function
|
|
176
|
+
extractMedia(rule.value, builder, mapping);
|
|
177
|
+
break;
|
|
178
|
+
}
|
|
179
|
+
case "nested-declarations":
|
|
180
|
+
{
|
|
181
|
+
const value = rule.value;
|
|
182
|
+
const declarationBlock = value.declarations;
|
|
183
|
+
if (declarationBlock) {
|
|
184
|
+
if (declarationBlock.declarations?.length) {
|
|
185
|
+
builder.newNestedRule({
|
|
186
|
+
mapping
|
|
187
|
+
});
|
|
188
|
+
for (const declaration of declarationBlock.declarations) {
|
|
189
|
+
(0, _declarations.parseDeclaration)(declaration, builder);
|
|
190
|
+
}
|
|
191
|
+
builder.applyRuleToSelectors();
|
|
192
|
+
}
|
|
193
|
+
if (declarationBlock.importantDeclarations?.length) {
|
|
194
|
+
builder.newNestedRule({
|
|
195
|
+
mapping,
|
|
196
|
+
important: true
|
|
197
|
+
});
|
|
198
|
+
for (const declaration of declarationBlock.importantDeclarations) {
|
|
199
|
+
(0, _declarations.parseDeclaration)(declaration, builder);
|
|
200
|
+
}
|
|
201
|
+
builder.applyRuleToSelectors();
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
break;
|
|
205
|
+
}
|
|
206
|
+
case "style":
|
|
207
|
+
{
|
|
208
|
+
const value = rule.value;
|
|
209
|
+
const declarationBlock = value.declarations;
|
|
210
|
+
mapping = {
|
|
211
|
+
...mapping,
|
|
212
|
+
...(0, _atRules.parsePropAtRule)(value.rules)
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
// If the rule is a style declaration, extract it with the `getExtractedStyle` function and store it in the `declarations` map
|
|
216
|
+
builder = builder.fork("style", value.selectors);
|
|
217
|
+
if (declarationBlock) {
|
|
218
|
+
if (declarationBlock.declarations?.length) {
|
|
219
|
+
builder.newRule(mapping);
|
|
220
|
+
for (const declaration of declarationBlock.declarations) {
|
|
221
|
+
(0, _declarations.parseDeclaration)(declaration, builder);
|
|
222
|
+
}
|
|
223
|
+
builder.applyRuleToSelectors();
|
|
224
|
+
}
|
|
225
|
+
if (declarationBlock.importantDeclarations?.length) {
|
|
226
|
+
builder.newRule(mapping, {
|
|
227
|
+
important: true
|
|
228
|
+
});
|
|
229
|
+
for (const declaration of declarationBlock.importantDeclarations) {
|
|
230
|
+
(0, _declarations.parseDeclaration)(declaration, builder);
|
|
231
|
+
}
|
|
232
|
+
builder.applyRuleToSelectors();
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
if (value.rules) {
|
|
236
|
+
for (const nestedRule of value.rules) {
|
|
237
|
+
extractRule(nestedRule, builder, mapping);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
break;
|
|
241
|
+
}
|
|
242
|
+
case "layer-block":
|
|
243
|
+
for (const layerRule of rule.value.rules) {
|
|
244
|
+
extractRule(layerRule, builder, mapping);
|
|
245
|
+
}
|
|
246
|
+
break;
|
|
247
|
+
case "supports":
|
|
248
|
+
if ((0, _supports.supportsConditionValid)(rule.value.condition)) {
|
|
249
|
+
for (const layerRule of rule.value.rules) {
|
|
250
|
+
extractRule(layerRule, builder, mapping);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
break;
|
|
254
|
+
case "custom":
|
|
255
|
+
case "font-face":
|
|
256
|
+
case "font-palette-values":
|
|
257
|
+
case "font-feature-values":
|
|
258
|
+
case "namespace":
|
|
259
|
+
case "layer-statement":
|
|
260
|
+
case "property":
|
|
261
|
+
case "view-transition":
|
|
262
|
+
case "ignored":
|
|
263
|
+
case "unknown":
|
|
264
|
+
case "import":
|
|
265
|
+
case "page":
|
|
266
|
+
case "counter-style":
|
|
267
|
+
case "moz-document":
|
|
268
|
+
case "nesting":
|
|
269
|
+
case "viewport":
|
|
270
|
+
case "custom-media":
|
|
271
|
+
case "scope":
|
|
272
|
+
case "starting-style":
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* This function takes in a MediaRule object, an CompilerCollection object and a CssToReactNativeRuntimeOptions object,
|
|
279
|
+
* and returns an array of MediaQuery objects representing styles extracted from screen media queries.
|
|
280
|
+
*
|
|
281
|
+
* @param mediaRule - The MediaRule object containing the media query and its rules.
|
|
282
|
+
* @param collection - The CompilerCollection object to use when extracting styles.
|
|
283
|
+
* @param parseOptions - The CssToReactNativeRuntimeOptions object to use when parsing styles.
|
|
284
|
+
*
|
|
285
|
+
* @returns undefined if no screen media queries are found in the mediaRule, else it returns the extracted styles.
|
|
286
|
+
*/
|
|
287
|
+
function extractMedia(mediaRule, builder, mapping) {
|
|
288
|
+
builder = builder.fork("media");
|
|
289
|
+
|
|
290
|
+
// Initialize an empty array to store screen media queries
|
|
291
|
+
const media = [];
|
|
292
|
+
|
|
293
|
+
// Iterate over all media queries in the mediaRule
|
|
294
|
+
for (const mediaQuery of mediaRule.query.mediaQueries) {
|
|
295
|
+
if (
|
|
296
|
+
// If this is only a media query
|
|
297
|
+
mediaQuery.mediaType === "print" && mediaQuery.qualifier !== "not" ||
|
|
298
|
+
// If this is a @media not print {}
|
|
299
|
+
// We can only do this if there are no conditions, as @media not print and (min-width: 100px) could be valid
|
|
300
|
+
mediaQuery.mediaType !== "print" && mediaQuery.qualifier === "not" && mediaQuery.condition === null) {
|
|
301
|
+
continue;
|
|
302
|
+
}
|
|
303
|
+
media.push(mediaQuery);
|
|
304
|
+
}
|
|
305
|
+
if (media.length === 0) {
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
for (const m of media) {
|
|
309
|
+
(0, _mediaQuery.parseMediaQuery)(m, builder);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
// Iterate over all rules in the mediaRule and extract their styles using the updated CompilerCollection
|
|
313
|
+
for (const rule of mediaRule.rules) {
|
|
314
|
+
extractRule(rule, builder, mapping);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* @param containerRule - The ContainerRule object containing the container query and its rules.
|
|
320
|
+
* @param collection - The CompilerCollection object to use when extracting styles.
|
|
321
|
+
* @param parseOptions - The CssToReactNativeRuntimeOptions object to use when parsing styles.
|
|
322
|
+
*/
|
|
323
|
+
function extractContainer(containerRule, builder, mapping) {
|
|
324
|
+
builder = builder.fork("container");
|
|
325
|
+
|
|
326
|
+
// Iterate over all rules inside the containerRule and extract their styles using the updated CompilerCollection
|
|
327
|
+
const query = {
|
|
328
|
+
m: (0, _containerQuery.parseContainerCondition)(containerRule.condition, builder)
|
|
329
|
+
};
|
|
330
|
+
if (containerRule.name) {
|
|
331
|
+
query.n = `c:${containerRule.name}`;
|
|
332
|
+
}
|
|
333
|
+
builder.addContainerQuery(query);
|
|
334
|
+
for (const rule of containerRule.rules) {
|
|
335
|
+
extractRule(rule, builder, mapping);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
//# sourceMappingURL=compiler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_nodeUtil","require","_debug","_atRules","_containerQuery","_declarations","_inlineVariables","_keyframes","_lightningcssLoader","_mediaQuery","_stylesheet","_supports","defaultLogger","debug","compile","code","options","logger","isLoggerEnabled","enabled","Boolean","features","Object","assign","selectorPrefix","startsWith","slice","JSON","stringify","process","env","NODE_ENV","toString","builder","StylesheetBuilder","lightningcss","Features","lightningcssLoader","vars","Map","firstPassVisitor","inlineRem","Length","length","unit","value","round","inlineVariables","exclusionList","exclude","Declaration","decl","property","name","includes","entry","get","count","type","set","StyleSheetExit","sheet","firstPass","TextEncoder","encode","include","DoublePositionGradients","ColorFunction","VendorPrefixes","visitor","filename","projectRoot","cwd","MAX_LOG_SIZE","subarray","customAtRules","body","Rule","rule","maybeMutateReactNativeOptions","rules","inspect","depth","colors","compact","extractRule","stylesheet","getNativeStyleSheet","warnings","getWarnings","mapping","extractKeyFrames","extractContainer","extractMedia","declarationBlock","declarations","newNestedRule","declaration","parseDeclaration","applyRuleToSelectors","importantDeclarations","important","parsePropAtRule","fork","selectors","newRule","nestedRule","layerRule","supportsConditionValid","condition","mediaRule","media","mediaQuery","query","mediaQueries","mediaType","qualifier","push","m","parseMediaQuery","containerRule","parseContainerCondition","n","addContainerQuery"],"sourceRoot":"../../../src","sources":["compiler/compiler.ts"],"mappings":";;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAUA,IAAAE,QAAA,GAAAF,OAAA;AAOA,IAAAG,eAAA,GAAAH,OAAA;AACA,I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AAK,EAAE;IAClCK,WAAW,CAACP,IAAI,EAAE7C,OAAO,EAAEyD,OAAO,CAAC;EACrC;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASE,gBAAgBA,CACvB4B,aAA4B,EAC5BvF,OAA0B,EAC1ByD,OAAyB,EACzB;EACAzD,OAAO,GAAGA,OAAO,CAACsE,IAAI,CAAC,WAAW,CAAC;;EAEnC;EACA,MAAMU,KAAqB,GAAG;IAC5BK,CAAC,EAAE,IAAAG,uCAAuB,EAACD,aAAa,CAACX,SAAS,EAAE5E,OAAO;EAC7D,CAAC;EAED,IAAIuF,aAAa,CAACnE,IAAI,EAAE;IACtB4D,KAAK,CAACS,CAAC,GAAG,KAAKF,aAAa,CAACnE,IAAI,EAAE;EACrC;EAEApB,OAAO,CAAC0F,iBAAiB,CAACV,KAAK,CAAC;EAEhC,KAAK,MAAMnC,IAAI,IAAI0C,aAAa,CAACxC,KAAK,EAAE;IACtCK,WAAW,CAACP,IAAI,EAAE7C,OAAO,EAAEyD,OAAO,CAAC;EACrC;AACF","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactivity","require"],"sourceRoot":"../../../src","sources":["compiler/compiler.types.ts"],"mappings":";;AAOA,IAAAA,WAAA,GAAAC,OAAA","ignoreList":[]}
|