react-native-css 2.1.2 → 3.0.0-nightly.4723140
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.md → LICENSE} +6 -8
- package/README.md +10 -86
- package/dist/commonjs/babel/helpers.js +129 -0
- package/dist/commonjs/babel/helpers.js.map +1 -0
- package/dist/commonjs/babel/import-plugin.js +97 -0
- package/dist/commonjs/babel/import-plugin.js.map +1 -0
- package/dist/commonjs/babel/index.js +9 -0
- package/dist/commonjs/babel/index.js.map +1 -0
- package/dist/commonjs/compiler/add.js +175 -0
- package/dist/commonjs/compiler/add.js.map +1 -0
- package/dist/commonjs/compiler/compiler.js +466 -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 +1843 -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/keyframes.js +69 -0
- package/dist/commonjs/compiler/keyframes.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/selectors.js +330 -0
- package/dist/commonjs/compiler/selectors.js.map +1 -0
- package/dist/commonjs/components/ActivityIndicator.js +20 -0
- package/dist/commonjs/components/ActivityIndicator.js.map +1 -0
- package/dist/commonjs/components/SafeAreaProvider/index.js +41 -0
- package/dist/commonjs/components/SafeAreaProvider/index.js.map +1 -0
- package/dist/commonjs/components/SafeAreaProvider/index.web.js +13 -0
- package/dist/commonjs/components/SafeAreaProvider/index.web.js.map +1 -0
- package/dist/commonjs/components/Text.js +15 -0
- package/dist/commonjs/components/Text.js.map +1 -0
- package/dist/commonjs/components/TextInput.js +20 -0
- package/dist/commonjs/components/TextInput.js.map +1 -0
- package/dist/commonjs/components/View.js +15 -0
- package/dist/commonjs/components/View.js.map +1 -0
- package/dist/commonjs/components/index.js +36 -0
- package/dist/commonjs/components/index.js.map +1 -0
- package/dist/commonjs/doctor/index.js +6 -0
- package/dist/commonjs/doctor/index.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 +49 -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 +106 -0
- package/dist/commonjs/metro/index.js.map +1 -0
- package/dist/commonjs/metro/injection-code.js +12 -0
- package/dist/commonjs/metro/injection-code.js.map +1 -0
- package/dist/commonjs/metro/metro-transformer.js +21 -0
- package/dist/commonjs/metro/metro-transformer.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/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/package.json +1 -0
- package/dist/commonjs/runtime/index.js +17 -0
- package/dist/commonjs/runtime/index.js.map +1 -0
- package/dist/commonjs/runtime/native/api.js +90 -0
- package/dist/commonjs/runtime/native/api.js.map +1 -0
- package/dist/commonjs/runtime/native/conditions/container-query.js +116 -0
- package/dist/commonjs/runtime/native/conditions/container-query.js.map +1 -0
- package/dist/commonjs/runtime/native/conditions/guards.js +27 -0
- package/dist/commonjs/runtime/native/conditions/guards.js.map +1 -0
- package/dist/commonjs/runtime/native/conditions/index.js +74 -0
- package/dist/commonjs/runtime/native/conditions/index.js.map +1 -0
- package/dist/commonjs/runtime/native/conditions/media-query.js +91 -0
- package/dist/commonjs/runtime/native/conditions/media-query.js.map +1 -0
- package/dist/commonjs/runtime/native/index.js +18 -0
- package/dist/commonjs/runtime/native/index.js.map +1 -0
- package/dist/commonjs/runtime/native/injection.js +80 -0
- package/dist/commonjs/runtime/native/injection.js.map +1 -0
- package/dist/commonjs/runtime/native/metro.js +6 -0
- package/dist/commonjs/runtime/native/metro.js.map +1 -0
- package/dist/commonjs/runtime/native/react/interaction.js +63 -0
- package/dist/commonjs/runtime/native/react/interaction.js.map +1 -0
- package/dist/commonjs/runtime/native/react/rules.js +257 -0
- package/dist/commonjs/runtime/native/react/rules.js.map +1 -0
- package/dist/commonjs/runtime/native/react/useNativeCss.js +158 -0
- package/dist/commonjs/runtime/native/react/useNativeCss.js.map +1 -0
- package/dist/commonjs/runtime/native/react/usePassthrough.js +50 -0
- package/dist/commonjs/runtime/native/react/usePassthrough.js.map +1 -0
- package/dist/commonjs/runtime/native/reactivity.js +193 -0
- package/dist/commonjs/runtime/native/reactivity.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/animation.js +90 -0
- package/dist/commonjs/runtime/native/styles/animation.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/calc.js +113 -0
- package/dist/commonjs/runtime/native/styles/calc.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/constants.js +8 -0
- package/dist/commonjs/runtime/native/styles/constants.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/defaults.js +69 -0
- package/dist/commonjs/runtime/native/styles/defaults.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/index.js +223 -0
- package/dist/commonjs/runtime/native/styles/index.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/resolve.js +96 -0
- package/dist/commonjs/runtime/native/styles/resolve.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/shorthand.js +62 -0
- package/dist/commonjs/runtime/native/styles/shorthand.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/text-shadow.js +13 -0
- package/dist/commonjs/runtime/native/styles/text-shadow.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/transform.js +17 -0
- package/dist/commonjs/runtime/native/styles/transform.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/units.js +46 -0
- package/dist/commonjs/runtime/native/styles/units.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/variables.js +57 -0
- package/dist/commonjs/runtime/native/styles/variables.js.map +1 -0
- package/dist/commonjs/runtime/runtime.js +17 -0
- package/dist/commonjs/runtime/runtime.js.map +1 -0
- package/dist/commonjs/runtime/runtime.native.js +17 -0
- package/dist/commonjs/runtime/runtime.native.js.map +1 -0
- package/dist/commonjs/runtime/runtime.types.js +6 -0
- package/dist/commonjs/runtime/runtime.types.js.map +1 -0
- package/dist/commonjs/runtime/utils/components.js +18 -0
- package/dist/commonjs/runtime/utils/components.js.map +1 -0
- package/dist/commonjs/runtime/utils/dot-notation.types.js +2 -0
- package/dist/commonjs/runtime/utils/dot-notation.types.js.map +1 -0
- package/dist/commonjs/runtime/utils/index.js +61 -0
- package/dist/commonjs/runtime/utils/index.js.map +1 -0
- package/dist/commonjs/runtime/utils/objects.js +71 -0
- package/dist/commonjs/runtime/utils/objects.js.map +1 -0
- package/dist/commonjs/runtime/utils/specificity.js +43 -0
- package/dist/commonjs/runtime/utils/specificity.js.map +1 -0
- package/dist/commonjs/runtime/utils/style-value.js +14 -0
- package/dist/commonjs/runtime/utils/style-value.js.map +1 -0
- package/dist/commonjs/runtime/utils/utils.types.js +6 -0
- package/dist/commonjs/runtime/utils/utils.types.js.map +1 -0
- package/dist/commonjs/runtime/web/api.js +68 -0
- package/dist/commonjs/runtime/web/api.js.map +1 -0
- package/dist/commonjs/runtime/web/assign-style.js +27 -0
- package/dist/commonjs/runtime/web/assign-style.js.map +1 -0
- package/dist/commonjs/runtime/web/index.js +17 -0
- package/dist/commonjs/runtime/web/index.js.map +1 -0
- package/dist/module/babel/helpers.js +120 -0
- package/dist/module/babel/helpers.js.map +1 -0
- package/dist/module/babel/import-plugin.js +93 -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/compiler/add.js +168 -0
- package/dist/module/compiler/add.js.map +1 -0
- package/dist/module/compiler/compiler.js +461 -0
- package/dist/module/compiler/compiler.js.map +1 -0
- package/dist/module/compiler/compiler.types.js +72 -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 +1834 -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/keyframes.js +63 -0
- package/dist/module/compiler/keyframes.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/selectors.js +325 -0
- package/dist/module/compiler/selectors.js.map +1 -0
- package/dist/module/components/ActivityIndicator.js +16 -0
- package/dist/module/components/ActivityIndicator.js.map +1 -0
- package/dist/module/components/SafeAreaProvider/index.js +36 -0
- package/dist/module/components/SafeAreaProvider/index.js.map +1 -0
- package/dist/module/components/SafeAreaProvider/index.web.js +4 -0
- package/dist/module/components/SafeAreaProvider/index.web.js.map +1 -0
- package/dist/module/components/Text.js +11 -0
- package/dist/module/components/Text.js.map +1 -0
- package/dist/module/components/TextInput.js +16 -0
- package/dist/module/components/TextInput.js.map +1 -0
- package/dist/module/components/View.js +11 -0
- package/dist/module/components/View.js.map +1 -0
- package/dist/module/components/index.js +6 -0
- package/dist/module/components/index.js.map +1 -0
- package/dist/module/doctor/index.js +4 -0
- package/dist/module/doctor/index.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 +28 -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 +100 -0
- package/dist/module/metro/index.js.map +1 -0
- package/dist/module/metro/injection-code.js +8 -0
- package/dist/module/metro/injection-code.js.map +1 -0
- package/dist/module/metro/metro-transformer.js +17 -0
- package/dist/module/metro/metro-transformer.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/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/package.json +1 -0
- package/dist/module/runtime/index.js +9 -0
- package/dist/module/runtime/index.js.map +1 -0
- package/dist/module/runtime/native/api.js +75 -0
- package/dist/module/runtime/native/api.js.map +1 -0
- package/dist/module/runtime/native/conditions/container-query.js +110 -0
- package/dist/module/runtime/native/conditions/container-query.js.map +1 -0
- package/dist/module/runtime/native/conditions/guards.js +23 -0
- package/dist/module/runtime/native/conditions/guards.js.map +1 -0
- package/dist/module/runtime/native/conditions/index.js +70 -0
- package/dist/module/runtime/native/conditions/index.js.map +1 -0
- package/dist/module/runtime/native/conditions/media-query.js +86 -0
- package/dist/module/runtime/native/conditions/media-query.js.map +1 -0
- package/dist/module/runtime/native/index.js +6 -0
- package/dist/module/runtime/native/index.js.map +1 -0
- package/dist/module/runtime/native/injection.js +75 -0
- package/dist/module/runtime/native/injection.js.map +1 -0
- package/dist/module/runtime/native/metro.js +5 -0
- package/dist/module/runtime/native/metro.js.map +1 -0
- package/dist/module/runtime/native/react/interaction.js +59 -0
- package/dist/module/runtime/native/react/interaction.js.map +1 -0
- package/dist/module/runtime/native/react/rules.js +251 -0
- package/dist/module/runtime/native/react/rules.js.map +1 -0
- package/dist/module/runtime/native/react/useNativeCss.js +152 -0
- package/dist/module/runtime/native/react/useNativeCss.js.map +1 -0
- package/dist/module/runtime/native/react/usePassthrough.js +45 -0
- package/dist/module/runtime/native/react/usePassthrough.js.map +1 -0
- package/dist/module/runtime/native/reactivity.js +181 -0
- package/dist/module/runtime/native/reactivity.js.map +1 -0
- package/dist/module/runtime/native/styles/animation.js +85 -0
- package/dist/module/runtime/native/styles/animation.js.map +1 -0
- package/dist/module/runtime/native/styles/calc.js +108 -0
- package/dist/module/runtime/native/styles/calc.js.map +1 -0
- package/dist/module/runtime/native/styles/constants.js +4 -0
- package/dist/module/runtime/native/styles/constants.js.map +1 -0
- package/dist/module/runtime/native/styles/defaults.js +65 -0
- package/dist/module/runtime/native/styles/defaults.js.map +1 -0
- package/dist/module/runtime/native/styles/index.js +218 -0
- package/dist/module/runtime/native/styles/index.js.map +1 -0
- package/dist/module/runtime/native/styles/resolve.js +92 -0
- package/dist/module/runtime/native/styles/resolve.js.map +1 -0
- package/dist/module/runtime/native/styles/shorthand.js +57 -0
- package/dist/module/runtime/native/styles/shorthand.js.map +1 -0
- package/dist/module/runtime/native/styles/text-shadow.js +9 -0
- package/dist/module/runtime/native/styles/text-shadow.js.map +1 -0
- package/dist/module/runtime/native/styles/transform.js +12 -0
- package/dist/module/runtime/native/styles/transform.js.map +1 -0
- package/dist/module/runtime/native/styles/units.js +37 -0
- package/dist/module/runtime/native/styles/units.js.map +1 -0
- package/dist/module/runtime/native/styles/variables.js +53 -0
- package/dist/module/runtime/native/styles/variables.js.map +1 -0
- package/dist/module/runtime/runtime.js +4 -0
- package/dist/module/runtime/runtime.js.map +1 -0
- package/dist/module/runtime/runtime.native.js +4 -0
- package/dist/module/runtime/runtime.native.js.map +1 -0
- package/dist/module/runtime/runtime.types.js +4 -0
- package/dist/module/runtime/runtime.types.js.map +1 -0
- package/dist/module/runtime/utils/components.js +14 -0
- package/dist/module/runtime/utils/components.js.map +1 -0
- package/dist/module/runtime/utils/dot-notation.types.js +2 -0
- package/dist/module/runtime/utils/dot-notation.types.js.map +1 -0
- package/dist/module/runtime/utils/index.js +8 -0
- package/dist/module/runtime/utils/index.js.map +1 -0
- package/dist/module/runtime/utils/objects.js +64 -0
- package/dist/module/runtime/utils/objects.js.map +1 -0
- package/dist/module/runtime/utils/specificity.js +38 -0
- package/dist/module/runtime/utils/specificity.js.map +1 -0
- package/dist/module/runtime/utils/style-value.js +10 -0
- package/dist/module/runtime/utils/style-value.js.map +1 -0
- package/dist/module/runtime/utils/utils.types.js +4 -0
- package/dist/module/runtime/utils/utils.types.js.map +1 -0
- package/dist/module/runtime/web/api.js +59 -0
- package/dist/module/runtime/web/api.js.map +1 -0
- package/dist/module/runtime/web/assign-style.js +23 -0
- package/dist/module/runtime/web/assign-style.js.map +1 -0
- package/dist/module/runtime/web/index.js +4 -0
- package/dist/module/runtime/web/index.js.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/helpers.d.ts +18 -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 +1 -0
- package/dist/typescript/commonjs/src/babel/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/add.d.ts +10 -0
- package/dist/typescript/commonjs/src/compiler/add.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/compiler.d.ts +10 -0
- package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +279 -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 +28 -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/keyframes.d.ts +6 -0
- package/dist/typescript/commonjs/src/compiler/keyframes.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/selectors.d.ts +18 -0
- package/dist/typescript/commonjs/src/compiler/selectors.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +3 -0
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/SafeAreaProvider/index.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/SafeAreaProvider/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/SafeAreaProvider/index.web.d.ts +2 -0
- package/dist/typescript/commonjs/src/components/SafeAreaProvider/index.web.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/Text.d.ts +8 -0
- package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/TextInput.d.ts +13 -0
- package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/View.d.ts +8 -0
- package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/index.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/doctor/index.d.ts +2 -0
- package/dist/typescript/commonjs/src/doctor/index.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 +14 -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 +10 -0
- package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/injection-code.d.ts +2 -0
- package/dist/typescript/commonjs/src/metro/injection-code.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts +3 -0
- package/dist/typescript/commonjs/src/metro/metro-transformer.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/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/runtime/index.d.ts +7 -0
- package/dist/typescript/commonjs/src/runtime/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/api.d.ts +17 -0
- package/dist/typescript/commonjs/src/runtime/native/api.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts +7 -0
- package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts +5 -0
- package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts +6 -0
- package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts +4 -0
- package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/index.d.ts +4 -0
- package/dist/typescript/commonjs/src/runtime/native/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/injection.d.ts +16 -0
- package/dist/typescript/commonjs/src/runtime/native/injection.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/metro.d.ts +2 -0
- package/dist/typescript/commonjs/src/runtime/native/metro.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts +6 -0
- package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts +6 -0
- package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts +37 -0
- package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts +4 -0
- package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts +63 -0
- package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/animation.d.ts +8 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/animation.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/calc.d.ts +3 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/calc.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts +2 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts +3 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts +20 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts +14 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthand.d.ts +12 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthand.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/text-shadow.d.ts +2 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/text-shadow.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/transform.d.ts +7 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/transform.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts +6 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts +5 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/runtime.d.ts +2 -0
- package/dist/typescript/commonjs/src/runtime/runtime.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts +2 -0
- package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts +62 -0
- package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/utils/components.d.ts +2 -0
- package/dist/typescript/commonjs/src/runtime/utils/components.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts +23 -0
- package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/utils/index.d.ts +6 -0
- package/dist/typescript/commonjs/src/runtime/utils/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts +4 -0
- package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts +12 -0
- package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts +3 -0
- package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts +5 -0
- package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/web/api.d.ts +10 -0
- package/dist/typescript/commonjs/src/runtime/web/api.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts +2 -0
- package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/web/index.d.ts +3 -0
- package/dist/typescript/commonjs/src/runtime/web/index.d.ts.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/helpers.d.ts +18 -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 +1 -0
- package/dist/typescript/module/src/babel/index.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/add.d.ts +10 -0
- package/dist/typescript/module/src/compiler/add.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/compiler.d.ts +10 -0
- package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/compiler.types.d.ts +279 -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 +28 -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/keyframes.d.ts +6 -0
- package/dist/typescript/module/src/compiler/keyframes.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/selectors.d.ts +18 -0
- package/dist/typescript/module/src/compiler/selectors.d.ts.map +1 -0
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts +3 -0
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -0
- package/dist/typescript/module/src/components/SafeAreaProvider/index.d.ts +4 -0
- package/dist/typescript/module/src/components/SafeAreaProvider/index.d.ts.map +1 -0
- package/dist/typescript/module/src/components/SafeAreaProvider/index.web.d.ts +2 -0
- package/dist/typescript/module/src/components/SafeAreaProvider/index.web.d.ts.map +1 -0
- package/dist/typescript/module/src/components/Text.d.ts +8 -0
- package/dist/typescript/module/src/components/Text.d.ts.map +1 -0
- package/dist/typescript/module/src/components/TextInput.d.ts +13 -0
- package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -0
- package/dist/typescript/module/src/components/View.d.ts +8 -0
- package/dist/typescript/module/src/components/View.d.ts.map +1 -0
- package/dist/typescript/module/src/components/index.d.ts +4 -0
- package/dist/typescript/module/src/components/index.d.ts.map +1 -0
- package/dist/typescript/module/src/doctor/index.d.ts +2 -0
- package/dist/typescript/module/src/doctor/index.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 +14 -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 +10 -0
- package/dist/typescript/module/src/metro/index.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/injection-code.d.ts +2 -0
- package/dist/typescript/module/src/metro/injection-code.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/metro-transformer.d.ts +3 -0
- package/dist/typescript/module/src/metro/metro-transformer.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/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/runtime/index.d.ts +7 -0
- package/dist/typescript/module/src/runtime/index.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/api.d.ts +17 -0
- package/dist/typescript/module/src/runtime/native/api.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts +7 -0
- package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts +5 -0
- package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/conditions/index.d.ts +6 -0
- package/dist/typescript/module/src/runtime/native/conditions/index.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts +4 -0
- package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/index.d.ts +4 -0
- package/dist/typescript/module/src/runtime/native/index.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/injection.d.ts +16 -0
- package/dist/typescript/module/src/runtime/native/injection.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/metro.d.ts +2 -0
- package/dist/typescript/module/src/runtime/native/metro.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/react/interaction.d.ts +6 -0
- package/dist/typescript/module/src/runtime/native/react/interaction.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/react/rules.d.ts +6 -0
- package/dist/typescript/module/src/runtime/native/react/rules.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts +37 -0
- package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts +4 -0
- package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/reactivity.d.ts +63 -0
- package/dist/typescript/module/src/runtime/native/reactivity.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/animation.d.ts +8 -0
- package/dist/typescript/module/src/runtime/native/styles/animation.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/calc.d.ts +3 -0
- package/dist/typescript/module/src/runtime/native/styles/calc.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/constants.d.ts +2 -0
- package/dist/typescript/module/src/runtime/native/styles/constants.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts +3 -0
- package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/index.d.ts +20 -0
- package/dist/typescript/module/src/runtime/native/styles/index.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts +14 -0
- package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthand.d.ts +12 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthand.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/text-shadow.d.ts +2 -0
- package/dist/typescript/module/src/runtime/native/styles/text-shadow.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/transform.d.ts +7 -0
- package/dist/typescript/module/src/runtime/native/styles/transform.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/units.d.ts +6 -0
- package/dist/typescript/module/src/runtime/native/styles/units.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/variables.d.ts +5 -0
- package/dist/typescript/module/src/runtime/native/styles/variables.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/runtime.d.ts +2 -0
- package/dist/typescript/module/src/runtime/runtime.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/runtime.native.d.ts +2 -0
- package/dist/typescript/module/src/runtime/runtime.native.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/runtime.types.d.ts +62 -0
- package/dist/typescript/module/src/runtime/runtime.types.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/utils/components.d.ts +2 -0
- package/dist/typescript/module/src/runtime/utils/components.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts +23 -0
- package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/utils/index.d.ts +6 -0
- package/dist/typescript/module/src/runtime/utils/index.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/utils/objects.d.ts +4 -0
- package/dist/typescript/module/src/runtime/utils/objects.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/utils/specificity.d.ts +12 -0
- package/dist/typescript/module/src/runtime/utils/specificity.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/utils/style-value.d.ts +3 -0
- package/dist/typescript/module/src/runtime/utils/style-value.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/utils/utils.types.d.ts +5 -0
- package/dist/typescript/module/src/runtime/utils/utils.types.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/web/api.d.ts +10 -0
- package/dist/typescript/module/src/runtime/web/api.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/web/assign-style.d.ts +2 -0
- package/dist/typescript/module/src/runtime/web/assign-style.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/web/index.d.ts +3 -0
- package/dist/typescript/module/src/runtime/web/index.d.ts.map +1 -0
- package/package.json +191 -47
- package/src/babel/helpers.ts +182 -0
- package/src/babel/import-plugin.ts +183 -0
- package/src/babel/index.ts +9 -0
- package/src/compiler/add.ts +257 -0
- package/src/compiler/compiler.ts +627 -0
- package/src/compiler/compiler.types.ts +372 -0
- package/src/compiler/container-query.ts +97 -0
- package/src/compiler/declarations.ts +3146 -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/keyframes.ts +100 -0
- package/src/compiler/media-query.ts +250 -0
- package/src/compiler/selectors.ts +473 -0
- package/src/components/ActivityIndicator.tsx +19 -0
- package/src/components/SafeAreaProvider/index.tsx +50 -0
- package/src/components/SafeAreaProvider/index.web.tsx +1 -0
- package/src/components/Text.tsx +15 -0
- package/src/components/TextInput.tsx +20 -0
- package/src/components/View.tsx +15 -0
- package/src/components/index.tsx +4 -0
- package/src/doctor/index.ts +1 -0
- package/src/index.ts +1 -0
- package/src/jest/expect.d.ts +1 -0
- package/src/jest/index.ts +40 -0
- package/src/jest/setup.ts +1 -0
- package/src/jest/setupAfterEnv.ts +13 -0
- package/src/metro/index.ts +137 -0
- package/src/metro/injection-code.ts +8 -0
- package/src/metro/metro-transformer.ts +31 -0
- package/src/metro/picocolors.ts +77 -0
- package/src/metro/stringify.ts +59 -0
- package/src/metro/typescript.ts +73 -0
- package/src/runtime/index.ts +7 -0
- package/src/runtime/native/api.ts +106 -0
- package/src/runtime/native/conditions/container-query.ts +157 -0
- package/src/runtime/native/conditions/guards.ts +37 -0
- package/src/runtime/native/conditions/index.ts +106 -0
- package/src/runtime/native/conditions/media-query.ts +92 -0
- package/src/runtime/native/index.ts +5 -0
- package/src/runtime/native/injection.ts +101 -0
- package/src/runtime/native/metro.ts +2 -0
- package/src/runtime/native/react/interaction.ts +90 -0
- package/src/runtime/native/react/rules.ts +333 -0
- package/src/runtime/native/react/useNativeCss.ts +200 -0
- package/src/runtime/native/react/usePassthrough.ts +51 -0
- package/src/runtime/native/reactivity.ts +266 -0
- package/src/runtime/native/styles/animation.ts +142 -0
- package/src/runtime/native/styles/calc.ts +120 -0
- package/src/runtime/native/styles/constants.ts +1 -0
- package/src/runtime/native/styles/defaults.ts +78 -0
- package/src/runtime/native/styles/index.ts +333 -0
- package/src/runtime/native/styles/resolve.ts +131 -0
- package/src/runtime/native/styles/shorthand.ts +101 -0
- package/src/runtime/native/styles/text-shadow.ts +17 -0
- package/src/runtime/native/styles/transform.ts +15 -0
- package/src/runtime/native/styles/units.ts +48 -0
- package/src/runtime/native/styles/variables.ts +72 -0
- package/src/runtime/runtime.native.ts +1 -0
- package/src/runtime/runtime.ts +1 -0
- package/src/runtime/runtime.types.ts +155 -0
- package/src/runtime/utils/components.ts +15 -0
- package/src/runtime/utils/dot-notation.types.ts +118 -0
- package/src/runtime/utils/index.ts +5 -0
- package/src/runtime/utils/objects.ts +82 -0
- package/src/runtime/utils/specificity.ts +44 -0
- package/src/runtime/utils/style-value.ts +12 -0
- package/src/runtime/utils/utils.types.ts +19 -0
- package/src/runtime/web/api.ts +88 -0
- package/src/runtime/web/assign-style.ts +26 -0
- package/src/runtime/web/index.ts +2 -0
- package/.babelrc +0 -17
- package/.editorconfig +0 -17
- package/.eslintignore +0 -3
- package/.eslintrc +0 -39
- package/.npmignore +0 -7
- package/build/index.js +0 -299
- package/build/utils.js +0 -61
- package/circle.yml +0 -31
- package/jsconfig.json +0 -9
- package/login.sh +0 -11
- package/src/index.js +0 -184
- package/src/utils.js +0 -32
- package/test/rnc.test.js +0 -258
- package/yarn.lock +0 -3333
package/{LICENSE.md → LICENSE}
RENAMED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
===============
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2016 Sabeur Thabti
|
|
1
|
+
MIT License
|
|
5
2
|
|
|
3
|
+
Copyright (c) 2025 Mark Lawlor
|
|
6
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
5
|
of this software and associated documentation files (the "Software"), to deal
|
|
8
6
|
in the Software without restriction, including without limitation the rights
|
|
@@ -10,13 +8,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
10
8
|
copies of the Software, and to permit persons to whom the Software is
|
|
11
9
|
furnished to do so, subject to the following conditions:
|
|
12
10
|
|
|
13
|
-
The above copyright notice and this permission notice shall be included in
|
|
14
|
-
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
copies or substantial portions of the Software.
|
|
15
13
|
|
|
16
14
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
15
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
16
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
17
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
18
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
-
|
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,95 +1,19 @@
|
|
|
1
|
+
# react-native-css
|
|
1
2
|
|
|
2
|
-
|
|
3
|
-
The awesome @danilosterrapid7 create a babel-plugin for React-native-css:
|
|
3
|
+
A CSS polyfill for React Native's native platforms
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Installation
|
|
6
6
|
|
|
7
|
+
## Usage
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
## Contributing
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
|
|
11
12
|
|
|
12
|
-
##
|
|
13
|
-
With version 2 come new changes:
|
|
13
|
+
## License
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
- No CLI, we believe that this is an unnecessary context switch
|
|
17
|
-
- NO I/O, no longer writing files, we do everything at runtime.
|
|
15
|
+
MIT
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
---
|
|
20
18
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
yarn add react-native-css
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
npm install react-native-css --save
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
# Example
|
|
33
|
-
|
|
34
|
-
Given the following CSS:
|
|
35
|
-
|
|
36
|
-
``` js
|
|
37
|
-
import RNC from 'react-native-css';
|
|
38
|
-
|
|
39
|
-
RNC`
|
|
40
|
-
description {
|
|
41
|
-
margin-bottom: 20px;
|
|
42
|
-
font-size: 18px;
|
|
43
|
-
text-align: center;
|
|
44
|
-
color: #656656;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
container {
|
|
48
|
-
padding: 30px;
|
|
49
|
-
margin-top: 65px;
|
|
50
|
-
align-items: center;
|
|
51
|
-
display: block;
|
|
52
|
-
}
|
|
53
|
-
`
|
|
54
|
-
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
React-native-css will generate to the following:
|
|
58
|
-
|
|
59
|
-
``` javascript
|
|
60
|
-
{"description":{"marginBottom":20,"fontSize":18,"textAlign":"center","color":"#656656"},"container":{"padding":30,"marginTop":65,"alignItems":"center"}}
|
|
61
|
-
```
|
|
62
|
-
# Usage
|
|
63
|
-
```js
|
|
64
|
-
import RNC from 'react-native-css';
|
|
65
|
-
|
|
66
|
-
class SearchPage extends Component {
|
|
67
|
-
render() {
|
|
68
|
-
const { color, fontSize } = this.props;
|
|
69
|
-
const styles = RNC`
|
|
70
|
-
description {
|
|
71
|
-
margin-bottom: 20px;
|
|
72
|
-
font-size: ${fontSize}
|
|
73
|
-
text-align: center;
|
|
74
|
-
color: ${color}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
container {
|
|
78
|
-
padding: 30px;
|
|
79
|
-
margin-top: 65px;
|
|
80
|
-
align-items: center;
|
|
81
|
-
display: block;
|
|
82
|
-
}
|
|
83
|
-
`;
|
|
84
|
-
|
|
85
|
-
return (
|
|
86
|
-
<View style={styles.container}>
|
|
87
|
-
<Text style={styles.description}>
|
|
88
|
-
Search!
|
|
89
|
-
</Text>
|
|
90
|
-
</View>
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
```
|
|
19
|
+
Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.allowedModules = void 0;
|
|
7
|
+
exports.isInsideModule = isInsideModule;
|
|
8
|
+
exports.isPackageImport = isPackageImport;
|
|
9
|
+
exports.shouldTransformImport = shouldTransformImport;
|
|
10
|
+
exports.shouldTransformRequire = shouldTransformRequire;
|
|
11
|
+
var _fs = require("fs");
|
|
12
|
+
var _path = require("path");
|
|
13
|
+
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
14
|
+
|
|
15
|
+
const allowedModules = exports.allowedModules = new Set(getFilesWithoutExtension((0, _path.join)(__dirname, "../components")));
|
|
16
|
+
function getFilesWithoutExtension(dirPath) {
|
|
17
|
+
// Read all files and directories inside dirPath synchronously
|
|
18
|
+
const entries = (0, _fs.readdirSync)(dirPath, {
|
|
19
|
+
withFileTypes: true
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
// Filter only files (ignore directories)
|
|
23
|
+
const files = entries.filter(entry => entry.isFile() && /\.[jt]sx$/.exec(entry.name) && !/index\.[jt]sx$/.exec(entry.name));
|
|
24
|
+
|
|
25
|
+
// For each file, get the filename without extension
|
|
26
|
+
const filesWithoutExt = files.map(file => (0, _path.parse)(file.name).name);
|
|
27
|
+
return filesWithoutExt;
|
|
28
|
+
}
|
|
29
|
+
function isInsideModule(filename, module) {
|
|
30
|
+
const normalized = (0, _path.normalize)(filename);
|
|
31
|
+
|
|
32
|
+
// Match exact module name
|
|
33
|
+
if (normalized === module) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Absolute posix paths
|
|
38
|
+
if (normalized.startsWith(`${module}/`)) {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Check for our local development structure
|
|
43
|
+
if (normalized.includes(`${_path.sep}${module}${_path.sep}src${_path.sep}`)) {
|
|
44
|
+
// Ignore the test files
|
|
45
|
+
return !normalized.includes("__tests__");
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Match classic node_modules
|
|
49
|
+
if (normalized.includes(`${_path.sep}node_modules${_path.sep}${module}${_path.sep}`)) {
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Match Yarn PnP .zip-style paths (e.g., .zip/node_modules/${module}/)
|
|
54
|
+
if (normalized.includes(`${_path.sep}.zip${_path.sep}node_modules${_path.sep}${module}${_path.sep}`)) {
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// Match Yarn .yarn/cache/${module}/*
|
|
59
|
+
if (normalized.includes(`${_path.sep}.yarn${_path.sep}cache${_path.sep}${module}${_path.sep}`)) {
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
function isPackageImport(path) {
|
|
65
|
+
const source = path.node.source?.value;
|
|
66
|
+
if (!source) {
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
return source === "react-native" || source === "react-native-web";
|
|
70
|
+
}
|
|
71
|
+
function shouldTransformImport(path, filename) {
|
|
72
|
+
let source = path.node.source?.value;
|
|
73
|
+
if (!source) {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
if (source.startsWith(".")) {
|
|
77
|
+
source = (0, _path.resolve)((0, _path.dirname)(filename), source);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
81
|
+
return isReactNativeSource(source) || isReactNativeWebSource(source);
|
|
82
|
+
}
|
|
83
|
+
function isReactNativeSource(source) {
|
|
84
|
+
if (source === "react-native") return true;
|
|
85
|
+
const components = source.split(`react-native${_path.sep}Libraries${_path.sep}Components${_path.sep}`);
|
|
86
|
+
if (components.length > 1) {
|
|
87
|
+
const component = components[1]?.split(_path.sep)[0];
|
|
88
|
+
return component && allowedModules.has(component);
|
|
89
|
+
}
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
function isReactNativeWebSource(source) {
|
|
93
|
+
if (source === "react-native-web") return true;
|
|
94
|
+
let components = source.split(`react-native-web${_path.sep}dist${_path.sep}commonjs${_path.sep}exports${_path.sep}`);
|
|
95
|
+
if (components.length > 1) {
|
|
96
|
+
const component = components[1]?.split(_path.sep)[0];
|
|
97
|
+
return component && allowedModules.has(component);
|
|
98
|
+
}
|
|
99
|
+
components = source.split(`react-native-web${_path.sep}dist${_path.sep}module${_path.sep}exports${_path.sep}`);
|
|
100
|
+
if (components.length > 1) {
|
|
101
|
+
const component = components[1]?.split(_path.sep)[0];
|
|
102
|
+
return component && allowedModules.has(component);
|
|
103
|
+
}
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
function shouldTransformRequire(t, node, basePath) {
|
|
107
|
+
const {
|
|
108
|
+
declarations
|
|
109
|
+
} = node;
|
|
110
|
+
const declaration = declarations[0];
|
|
111
|
+
if (declarations.length > 1 || !declaration) {
|
|
112
|
+
return false;
|
|
113
|
+
}
|
|
114
|
+
const {
|
|
115
|
+
id,
|
|
116
|
+
init
|
|
117
|
+
} = declaration;
|
|
118
|
+
let source = (t.isObjectPattern(id) || t.isIdentifier(id)) && t.isCallExpression(init) && t.isIdentifier(init.callee) && init.callee.name === "require" && init.arguments.length === 1 && "value" in init.arguments[0] && typeof init.arguments[0].value === "string" && init.arguments[0].value;
|
|
119
|
+
if (!source) {
|
|
120
|
+
return false;
|
|
121
|
+
}
|
|
122
|
+
if (source.startsWith(".")) {
|
|
123
|
+
source = (0, _path.resolve)(basePath, source);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
127
|
+
return isReactNativeSource(source) || isReactNativeWebSource(source);
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_fs","require","_path","allowedModules","exports","Set","getFilesWithoutExtension","join","__dirname","dirPath","entries","readdirSync","withFileTypes","files","filter","entry","isFile","exec","name","filesWithoutExt","map","file","parse","isInsideModule","filename","module","normalized","normalize","startsWith","includes","sep","isPackageImport","path","source","node","value","shouldTransformImport","resolve","dirname","isReactNativeSource","isReactNativeWebSource","components","split","length","component","has","shouldTransformRequire","t","basePath","declarations","declaration","id","init","isObjectPattern","isIdentifier","isCallExpression","callee","arguments"],"sourceRoot":"../../../src","sources":["babel/helpers.ts"],"mappings":";;;;;;;;;;AACA,IAAAA,GAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAFA;;AAoBO,MAAME,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,IAAIE,GAAG,CACnCC,wBAAwB,CAAC,IAAAC,UAAI,EAACC,SAAS,EAAE,eAAe,CAAC,CAC3D,CAAC;AAED,SAASF,wBAAwBA,CAACG,OAAe,EAAE;EACjD;EACA,MAAMC,OAAO,GAAG,IAAAC,eAAW,EAACF,OAAO,EAAE;IAAEG,aAAa,EAAE;EAAK,CAAC,CAAC;;EAE7D;EACA,MAAMC,KAAK,GAAGH,OAAO,CAACI,MAAM,CACzBC,KAAK,IACJA,KAAK,CAACC,MAAM,CAAC,CAAC,IACd,WAAW,CAACC,IAAI,CAACF,KAAK,CAACG,IAAI,CAAC,IAC5B,CAAC,gBAAgB,CAACD,IAAI,CAACF,KAAK,CAACG,IAAI,CACrC,CAAC;;EAED;EACA,MAAMC,eAAe,GAAGN,KAAK,CAACO,GAAG,CAAEC,IAAI,IAAK,IAAAC,WAAK,EAACD,IAAI,CAACH,IAAI,CAAC,CAACA,IAAI,CAAC;EAElE,OAAOC,eAAe;AACxB;AAEO,S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AAIA,MAAM,CAACL,UAAU,CAAC,GAAG,CAAC,EAAE;IAC1BK,MAAM,GAAG,IAAAI,aAAO,EAACW,QAAQ,EAAEf,MAAM,CAAC;EACpC;;EAEA;EACA,OAAOM,mBAAmB,CAACN,MAAM,CAAC,IAAIO,sBAAsB,CAACP,MAAM,CAAC;AACtE","ignoreList":[]}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = _default;
|
|
7
|
+
var _helpers = require("./helpers.js");
|
|
8
|
+
function _default({
|
|
9
|
+
types: t
|
|
10
|
+
}) {
|
|
11
|
+
const processed = new WeakSet();
|
|
12
|
+
function importDeclaration(...args) {
|
|
13
|
+
const declaration = t.importDeclaration(...args);
|
|
14
|
+
processed.add(declaration);
|
|
15
|
+
return declaration;
|
|
16
|
+
}
|
|
17
|
+
function requireDeclaration(...args) {
|
|
18
|
+
const declaration = t.variableDeclaration(...args);
|
|
19
|
+
processed.add(declaration);
|
|
20
|
+
return declaration;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
name: "Rewrite react-native to react-native-css",
|
|
24
|
+
visitor: {
|
|
25
|
+
ImportDeclaration(path, state) {
|
|
26
|
+
if (processed.has(path) || processed.has(path.node)) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const {
|
|
30
|
+
specifiers,
|
|
31
|
+
source
|
|
32
|
+
} = path.node;
|
|
33
|
+
if ((0, _helpers.isInsideModule)(state.filename, "react-native-css") || !(0, _helpers.shouldTransformImport)(path, state.filename)) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
if (specifiers.length === 0) {
|
|
37
|
+
path.replaceWith(importDeclaration([], t.stringLiteral("react-native-css/components")));
|
|
38
|
+
path.scope.registerDeclaration(path);
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const imports = specifiers.map(specifier => {
|
|
42
|
+
if (t.isImportDefaultSpecifier(specifier)) {
|
|
43
|
+
const name = specifier.local.name;
|
|
44
|
+
if ((0, _helpers.isPackageImport)(path)) {
|
|
45
|
+
return importDeclaration([t.importDefaultSpecifier(specifier.local)], t.stringLiteral("react-native-css/components"));
|
|
46
|
+
} else if (_helpers.allowedModules.has(name)) {
|
|
47
|
+
return importDeclaration([t.importSpecifier(specifier.local, specifier.local)], t.stringLiteral(`react-native-css/components/${name}`));
|
|
48
|
+
} else {
|
|
49
|
+
return importDeclaration([specifier], source);
|
|
50
|
+
}
|
|
51
|
+
} else if (t.isImportNamespaceSpecifier(specifier)) {
|
|
52
|
+
return importDeclaration([specifier], t.stringLiteral("react-native-css/components"));
|
|
53
|
+
} else {
|
|
54
|
+
const localName = t.isStringLiteral(specifier.imported) ? specifier.imported.value : specifier.imported.name;
|
|
55
|
+
return _helpers.allowedModules.has(localName) ? importDeclaration([t.importSpecifier(specifier.local, specifier.imported)], t.stringLiteral(`react-native-css/components/${localName}`)) : importDeclaration([specifier], source);
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
path.replaceInline(imports).map(importPath => {
|
|
59
|
+
path.scope.registerDeclaration(importPath);
|
|
60
|
+
});
|
|
61
|
+
},
|
|
62
|
+
VariableDeclaration(path, state) {
|
|
63
|
+
if (processed.has(path) || processed.has(path.node)) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
if ((0, _helpers.isInsideModule)(state.filename, "react-native-css") || !(0, _helpers.shouldTransformRequire)(t, path.node, state.filename)) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
71
|
+
const {
|
|
72
|
+
id,
|
|
73
|
+
init
|
|
74
|
+
} = path.node.declarations[0];
|
|
75
|
+
if (!t.isObjectPattern(id) || !init) {
|
|
76
|
+
path.replaceWith(requireDeclaration(path.node.kind, [t.variableDeclarator(id, t.callExpression(t.identifier("require"), [t.stringLiteral(`react-native-css/components`)]))]));
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const imports = id.properties.map(identifier => {
|
|
80
|
+
if (t.isRestElement(identifier)) {
|
|
81
|
+
return requireDeclaration(path.node.kind, [t.variableDeclarator(identifier, init)]);
|
|
82
|
+
}
|
|
83
|
+
if (!t.isIdentifier(identifier.key)) {
|
|
84
|
+
return requireDeclaration(path.node.kind, [t.variableDeclarator(t.objectPattern([identifier]), init)]);
|
|
85
|
+
}
|
|
86
|
+
const name = identifier.key.name;
|
|
87
|
+
if (!_helpers.allowedModules.has(name)) {
|
|
88
|
+
return requireDeclaration(path.node.kind, [t.variableDeclarator(t.objectPattern([t.objectProperty(t.identifier(name), t.identifier(name), false, true)]), init)]);
|
|
89
|
+
}
|
|
90
|
+
return requireDeclaration(path.node.kind, [t.variableDeclarator(t.objectPattern([t.objectProperty(t.identifier(name), t.identifier(name), false, true)]), t.callExpression(t.identifier("require"), [t.stringLiteral(`react-native-css/components/${name}`)]))]);
|
|
91
|
+
});
|
|
92
|
+
path.replaceWithMultiple(imports);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=import-plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_helpers","require","_default","types","t","processed","WeakSet","importDeclaration","args","declaration","add","requireDeclaration","variableDeclaration","name","visitor","ImportDeclaration","path","state","has","node","specifiers","source","isInsideModule","filename","shouldTransformImport","length","replaceWith","stringLiteral","scope","registerDeclaration","imports","map","specifier","isImportDefaultSpecifier","local","isPackageImport","importDefaultSpecifier","allowedModules","importSpecifier","isImportNamespaceSpecifier","localName","isStringLiteral","imported","value","replaceInline","importPath","VariableDeclaration","shouldTransformRequire","id","init","declarations","isObjectPattern","kind","variableDeclarator","callExpression","identifier","properties","isRestElement","isIdentifier","key","objectPattern","objectProperty","replaceWithMultiple"],"sourceRoot":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,IACF,CAAC,CACF,CAAC,EACFT,CAAC,CAACkD,cAAc,CAAClD,CAAC,CAACmD,UAAU,CAAC,SAAS,CAAC,EAAE,CACxCnD,CAAC,CAACuB,aAAa,CAAC,+BAA+Bd,IAAI,EAAE,CAAC,CACvD,CACH,CAAC,CACF,CAAC;QACJ,CAAC,CAAC;QAEFG,IAAI,CAAC8C,mBAAmB,CAAChC,OAAO,CAAC;MACnC;IACF;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["module","exports","plugins","require","default"],"sourceRoot":"../../../src","sources":["babel/index.ts"],"mappings":";;AAAA;AACAA,MAAM,CAACC,OAAO,GAAG,YAAY;EAC3B,OAAO;IACLC,OAAO,EAAE,CACPC,OAAO,CAAC,iBAAiB,CAAC,CAACC,OAAO,EAClC,8BAA8B;EAElC,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.addAnimation_V2 = void 0;
|
|
7
|
+
exports.buildAddFn = buildAddFn;
|
|
8
|
+
var _styleValue = require("../runtime/utils/style-value.js");
|
|
9
|
+
var _selectors = require("./selectors.js");
|
|
10
|
+
/* eslint-disable */
|
|
11
|
+
|
|
12
|
+
function buildAddFn(rule, collection, mapping) {
|
|
13
|
+
let staticDeclarations;
|
|
14
|
+
function add(type, property, value) {
|
|
15
|
+
if (value === undefined) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
let forceTuple = false;
|
|
19
|
+
switch (type) {
|
|
20
|
+
case "container":
|
|
21
|
+
{
|
|
22
|
+
rule.c ??= [];
|
|
23
|
+
const names = value.map(name => `c:${name}`);
|
|
24
|
+
rule.c.push(...names);
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
case "animation":
|
|
28
|
+
{
|
|
29
|
+
value = value;
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// We cannot animate variables
|
|
35
|
+
if (property.startsWith("--")) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
property = (0, _selectors.toRNProperty)(property);
|
|
39
|
+
const rename = mapping[property] ?? mapping["*"];
|
|
40
|
+
const [styleFunction, delayed, usesVariables] = postProcessStyleFunction(value);
|
|
41
|
+
rule.d ??= [];
|
|
42
|
+
rule.a = true;
|
|
43
|
+
if (delayed) {
|
|
44
|
+
rule.d.push([styleFunction, rename || property, 1]);
|
|
45
|
+
} else {
|
|
46
|
+
rule.d.push([styleFunction, rename || property]);
|
|
47
|
+
}
|
|
48
|
+
if (usesVariables) {
|
|
49
|
+
rule.dv = 1;
|
|
50
|
+
}
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
// @ts-ignore
|
|
54
|
+
case "transition":
|
|
55
|
+
{
|
|
56
|
+
rule.a = true;
|
|
57
|
+
}
|
|
58
|
+
case "style":
|
|
59
|
+
{
|
|
60
|
+
value = value;
|
|
61
|
+
if (value === undefined) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (property.startsWith("--")) {
|
|
65
|
+
if (!property.startsWith("--__rn-css") && !collection.varUsageCount.has(property)) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
rule.v ??= [];
|
|
69
|
+
rule.v.push([property.slice(2), value]);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
property = (0, _selectors.toRNProperty)(property);
|
|
73
|
+
const rename = mapping[property] ?? mapping["*"];
|
|
74
|
+
if (Array.isArray(value) && !(0, _styleValue.isStyleDescriptorArray)(value)) {
|
|
75
|
+
rule.d ??= [];
|
|
76
|
+
const [styleFunction, delayed, usesVariables] = postProcessStyleFunction(value);
|
|
77
|
+
if (delayed) {
|
|
78
|
+
rule.d.push([styleFunction, rename || property, 1]);
|
|
79
|
+
} else {
|
|
80
|
+
rule.d.push([styleFunction, rename || property]);
|
|
81
|
+
}
|
|
82
|
+
if (usesVariables) {
|
|
83
|
+
rule.dv = 1;
|
|
84
|
+
}
|
|
85
|
+
} else if (forceTuple || rename && (rename.length > 1 || !rename[0].startsWith("^"))) {
|
|
86
|
+
rule.d ??= [];
|
|
87
|
+
rule.d.push([value, rename || property]);
|
|
88
|
+
} else {
|
|
89
|
+
if (rename) {
|
|
90
|
+
property = rename[0].slice(1);
|
|
91
|
+
}
|
|
92
|
+
if (!staticDeclarations) {
|
|
93
|
+
staticDeclarations = {};
|
|
94
|
+
rule.d ??= [];
|
|
95
|
+
rule.d.push(staticDeclarations);
|
|
96
|
+
}
|
|
97
|
+
staticDeclarations[property] = value;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return add;
|
|
103
|
+
}
|
|
104
|
+
function postProcessStyleFunction(value) {
|
|
105
|
+
if (!Array.isArray(value)) {
|
|
106
|
+
return [value, false, false];
|
|
107
|
+
}
|
|
108
|
+
if ((0, _styleValue.isStyleDescriptorArray)(value)) {
|
|
109
|
+
let shouldDelay = false;
|
|
110
|
+
let usesVariables = false;
|
|
111
|
+
const results = [];
|
|
112
|
+
for (const v of value) {
|
|
113
|
+
let [result, delayed, variables] = postProcessStyleFunction(v);
|
|
114
|
+
shouldDelay ||= delayed;
|
|
115
|
+
usesVariables ||= variables;
|
|
116
|
+
results.push(result);
|
|
117
|
+
}
|
|
118
|
+
return [results, shouldDelay, usesVariables];
|
|
119
|
+
}
|
|
120
|
+
let [newArgs, shouldDelay, usesVariables] = postProcessStyleFunction(value[2]);
|
|
121
|
+
shouldDelay ||= value[3] === 1;
|
|
122
|
+
usesVariables ||= value[1] === "var";
|
|
123
|
+
if (shouldDelay) {
|
|
124
|
+
return [[value[0], value[1], newArgs], true, usesVariables];
|
|
125
|
+
}
|
|
126
|
+
return [value, false, false];
|
|
127
|
+
}
|
|
128
|
+
const addAnimation_V2 = declarations => (addType, property, value) => {
|
|
129
|
+
if (value === undefined) return;
|
|
130
|
+
let forceTuple = false;
|
|
131
|
+
let staticDeclarations;
|
|
132
|
+
switch (addType) {
|
|
133
|
+
case "container":
|
|
134
|
+
return;
|
|
135
|
+
case "animation":
|
|
136
|
+
return;
|
|
137
|
+
case "transition":
|
|
138
|
+
case "style":
|
|
139
|
+
{
|
|
140
|
+
value = value;
|
|
141
|
+
property = (0, _selectors.toRNProperty)(property);
|
|
142
|
+
|
|
143
|
+
// TODO: Support property mapping
|
|
144
|
+
|
|
145
|
+
// Animating variables not currently supported
|
|
146
|
+
if (property.startsWith("--")) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
if (Array.isArray(value)) {
|
|
150
|
+
const [strippedValue, delayed] = postProcessStyleFunction(value);
|
|
151
|
+
if (delayed) {
|
|
152
|
+
declarations.push([strippedValue, property, 1]);
|
|
153
|
+
} else {
|
|
154
|
+
declarations.push([strippedValue, property]);
|
|
155
|
+
}
|
|
156
|
+
} else if (forceTuple) {
|
|
157
|
+
declarations.push([value, property]);
|
|
158
|
+
} else {
|
|
159
|
+
if (!staticDeclarations) {
|
|
160
|
+
staticDeclarations = {};
|
|
161
|
+
declarations ??= [];
|
|
162
|
+
declarations.push(staticDeclarations);
|
|
163
|
+
}
|
|
164
|
+
staticDeclarations[property] = value;
|
|
165
|
+
}
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
default:
|
|
169
|
+
{
|
|
170
|
+
addType;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
exports.addAnimation_V2 = addAnimation_V2;
|
|
175
|
+
//# sourceMappingURL=add.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_styleValue","require","_selectors","buildAddFn","rule","collection","mapping","staticDeclarations","add","type","property","value","undefined","forceTuple","c","names","map","name","push","startsWith","toRNProperty","rename","styleFunction","delayed","usesVariables","postProcessStyleFunction","d","a","dv","varUsageCount","has","v","slice","Array","isArray","isStyleDescriptorArray","length","shouldDelay","results","result","variables","newArgs","addAnimation_V2","declarations","addType","strippedValue","exports"],"sourceRoot":"../../../src","sources":["compiler/add.ts"],"mappings":";;;;;;;AACA,IAAAA,WAAA,GAAAC,OAAA;AAUA,IAAAC,UAAA,GAAAD,OAAA;AAXA;;AAeO,SAASE,UAAUA,CACxBC,IAAe,EACfC,UAA8B,EAC9BC,OAAyB,EACzB;EACA,IAAIC,kBAA+D;EAkBnE,SAASC,GAAGA,CACVC,IAAY,EACZC,QAAgB,EAChBC,KAAyC,EACzC;IACA,IAAIA,KAAK,KAAKC,SAAS,EAAE;MACvB;IACF;IAEA,IAAIC,UAAU,GAAG,KAAK;IAEtB,QAAQJ,IAAI;MACV,KAAK,WAAW;QAAE;UAChBL,IAAI,CAACU,CAAC,KAAK,EAAE;UACb,MAAMC,KAAK,GAAIJ,KAAK,CAAcK,GAAG,CAAEC,IAAI,IAAK,KAAKA,IAAI,EAAE,CAAC;UAC5Db,IAAI,CAACU,CAAC,CAACI,IAAI,CAAC,GAAGH,KAAK,CAAC;UACrB;QACF;MACA,KAAK,WAAW;QAAE;UAChBJ,KAAK,GAAGA,KAAwB;UAEhC,IAAIA,KAAK,KAAKC,SAAS,EAAE;YACvB;UACF;;UAEA;UACA,IAAIF,QAAQ,CAACS,UAAU,CAAC,IAAI,CAAC,EAAE;YAC7B;UACF;UAEAT,QAAQ,GAAG,IAAAU,uBAAY,EAACV,QAAQ,CAAC;UACjC,MAAMW,MAAM,GAAGf,OAAO,CAACI,QAAQ,CAAC,IAAIJ,OAAO,CAAC,GAAG,CAAC;UAEhD,MAAM,CAACgB,aAAa,EAAEC,OAAO,EAAEC,aAAa,CAAC,GAC3CC,wBAAwB,CAACd,KAAK,CAAC;UAEjCP,IAAI,CAACsB,CAAC,KAAK,EAAE;UACbtB,IAAI,CAACuB,CAAC,GAAG,IAAI;UAEb,IAAIJ,OAAO,EAAE;YACX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