react-native-css 2.1.1 → 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 -45
- 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 -8
- package/.editorconfig +0 -17
- package/.eslintignore +0 -3
- package/.eslintrc +0 -39
- package/.npmignore +0 -7
- package/build/index.js +0 -294
- package/build/utils.js +0 -54
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ForwardRefSymbol","Symbol","for","getComponentType","component","$$typeof","prototype","isReactComponent"],"sourceRoot":"../../../../src","sources":["runtime/utils/components.ts"],"mappings":";;AAAA;AACA,MAAMA,gBAAgB,GAAGC,MAAM,CAACC,GAAG,CAAC,mBAAmB,CAAC;AACxD,OAAO,SAASC,gBAAgBA,CAACC,SAAc,EAAE;EAC/C,QAAQ,OAAOA,SAAS;IACtB,KAAK,UAAU;IACf,KAAK,QAAQ;MACX,OAAO,UAAU,IAAIA,SAAS,IAAIA,SAAS,CAACC,QAAQ,KAAKL,gBAAgB,GACrE,YAAY,GACZI,SAAS,CAACE,SAAS,EAAEC,gBAAgB,GACnC,OAAO,GACP,OAAOH,SAAS;IACxB;MACE,OAAO,SAAS;EACpB;AACF","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["runtime/utils/dot-notation.types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["runtime/utils/index.ts"],"mappings":";;AAAA,cAAc,cAAW;AACzB,cAAc,iBAAc;AAC5B,cAAc,kBAAe;AAC7B,cAAc,kBAAe;AAC7B,cAAc,kBAAe","ignoreList":[]}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { transformKeys } from "../native/styles/defaults.js";
|
|
5
|
+
import { ShortHandSymbol } from "../native/styles/shorthand.js";
|
|
6
|
+
export function getDeepPath(source, paths) {
|
|
7
|
+
if (!source) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (paths === false) {
|
|
11
|
+
return undefined;
|
|
12
|
+
}
|
|
13
|
+
if (Array.isArray(paths)) {
|
|
14
|
+
let target = source;
|
|
15
|
+
for (const path of paths) {
|
|
16
|
+
if (typeof target !== "object" || !target || !(path in target)) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
target = target[path];
|
|
20
|
+
}
|
|
21
|
+
return target;
|
|
22
|
+
} else {
|
|
23
|
+
return source?.[paths];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export function applyValue(target, prop, value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if (transformKeys.has(prop)) {
|
|
31
|
+
if (!Array.isArray(target.transform)) {
|
|
32
|
+
target.transform = [];
|
|
33
|
+
}
|
|
34
|
+
const transform = target.transform.find(t => t[prop] !== undefined);
|
|
35
|
+
if (transform) {
|
|
36
|
+
transform[prop] = value;
|
|
37
|
+
} else {
|
|
38
|
+
target.transform.push({
|
|
39
|
+
[prop]: value
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
return;
|
|
43
|
+
} else if (typeof value === "object" && value && ShortHandSymbol in value) {
|
|
44
|
+
for (const entry of value) {
|
|
45
|
+
setDeepPath(target, entry[1], entry[0]);
|
|
46
|
+
}
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
target[prop] = value;
|
|
50
|
+
}
|
|
51
|
+
export function setDeepPath(target, paths, value) {
|
|
52
|
+
if (typeof paths === "string") {
|
|
53
|
+
target[paths] = value;
|
|
54
|
+
return target;
|
|
55
|
+
}
|
|
56
|
+
for (let i = 0; i < paths.length - 1; i++) {
|
|
57
|
+
const path = paths[i];
|
|
58
|
+
target[path] ??= {};
|
|
59
|
+
target = target[path];
|
|
60
|
+
}
|
|
61
|
+
target[paths[paths.length - 1]] = value;
|
|
62
|
+
return target;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=objects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["transformKeys","ShortHandSymbol","getDeepPath","source","paths","undefined","Array","isArray","target","path","applyValue","prop","value","has","transform","find","t","push","entry","setDeepPath","i","length"],"sourceRoot":"../../../../src","sources":["runtime/utils/objects.ts"],"mappings":";;AAAA;AACA,SAASA,aAAa,QAAQ,8BAA2B;AACzD,SAASC,eAAe,QAAQ,+BAA4B;AAE5D,OAAO,SAASC,WAAWA,CAACC,MAAW,EAAEC,KAAgC,EAAE;EACzE,IAAI,CAACD,MAAM,EAAE;IACX;EACF;EAEA,IAAIC,KAAK,KAAK,KAAK,EAAE;IACnB,OAAOC,SAAS;EAClB;EAEA,IAAIC,KAAK,CAACC,OAAO,CAACH,KAAK,CAAC,EAAE;IACxB,IAAII,MAAM,GAAGL,MAAM;IAEnB,KAAK,MAAMM,IAAI,IAAIL,KAAK,EAAE;MACxB,IAAI,OAAOI,MAAM,KAAK,QAAQ,IAAI,CAACA,MAAM,IAAI,EAAEC,IAAI,IAAID,MAAM,CAAC,EAAE;QAC9D,OAAOH,SAAS;MAClB;MAEAG,MAAM,GAAGA,MAAM,CAACC,IAAI,CAAC;IACvB;IAEA,OAAOD,MAAM;EACf,CAAC,M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,EAAED,CAAC,EAAE,EAAE;IACzC,MAAMX,IAAI,GAAGL,KAAK,CAACgB,CAAC,CAAE;IACtBZ,MAAM,CAACC,IAAI,CAAC,KAAK,CAAC,CAAC;IACnBD,MAAM,GAAGA,MAAM,CAACC,IAAI,CAAC;EACvB;EAEAD,MAAM,CAACJ,KAAK,CAACA,KAAK,CAACiB,MAAM,GAAG,CAAC,CAAC,CAAE,GAAGT,KAAK;EAExC,OAAOJ,MAAM;AACf","ignoreList":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
export const Specificity = {
|
|
6
|
+
Order: 0,
|
|
7
|
+
ClassName: 1,
|
|
8
|
+
Important: 2,
|
|
9
|
+
Inline: 3,
|
|
10
|
+
PseudoElements: 4
|
|
11
|
+
// Id: 0, - We don't support ID yet
|
|
12
|
+
// StyleSheet: 0, - We don't support multiple stylesheets
|
|
13
|
+
};
|
|
14
|
+
const Important = Specificity.Important;
|
|
15
|
+
const Inline = Specificity.Inline;
|
|
16
|
+
const PseudoElements = Specificity.PseudoElements;
|
|
17
|
+
const ClassName = Specificity.ClassName;
|
|
18
|
+
const Order = Specificity.Order;
|
|
19
|
+
export const inlineSpecificity = [];
|
|
20
|
+
inlineSpecificity[Specificity.Inline] = 1;
|
|
21
|
+
export const specificityCompareFn = (a, b) => {
|
|
22
|
+
const aSpec = a.s ? a.s : inlineSpecificity;
|
|
23
|
+
const bSpec = b.s ? b.s : inlineSpecificity;
|
|
24
|
+
if (aSpec[Important] !== bSpec[Important]) {
|
|
25
|
+
return (aSpec[Important] || 0) - (bSpec[Important] || 0);
|
|
26
|
+
} else if (aSpec[Inline] !== bSpec[Inline]) {
|
|
27
|
+
return (aSpec[Inline] || 0) - (bSpec[Inline] || 0);
|
|
28
|
+
} else if (aSpec[PseudoElements] !== bSpec[PseudoElements]) {
|
|
29
|
+
return (aSpec[PseudoElements] || 0) - (bSpec[PseudoElements] || 0);
|
|
30
|
+
} else if (aSpec[ClassName] !== bSpec[ClassName]) {
|
|
31
|
+
return (aSpec[ClassName] || 0) - (bSpec[ClassName] || 0);
|
|
32
|
+
} else if (aSpec[Order] !== bSpec[Order]) {
|
|
33
|
+
return (aSpec[Order] || 0) - (bSpec[Order] || 0);
|
|
34
|
+
} else {
|
|
35
|
+
return 0;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=specificity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Specificity","Order","ClassName","Important","Inline","PseudoElements","inlineSpecificity","specificityCompareFn","a","b","aSpec","s","bSpec"],"sourceRoot":"../../../../src","sources":["runtime/utils/specificity.ts"],"mappings":";;AAAA;;AAIA,OAAO,MAAMA,WAAW,GAAG;EACzBC,KAAK,EAAE,CAAC;EACRC,SAAS,EAAE,CAAC;EACZC,SAAS,EAAE,CAAC;EACZC,MAAM,EAAE,CAAC;EACTC,cAAc,EAAE;EAChB;EACA;AACF,CAAC;AAED,MAAMF,SAAS,GAAGH,WAAW,CAACG,SAAS;AACvC,MAAMC,MAAM,GAAGJ,WAAW,CAACI,MAAM;AACjC,MAAMC,cAAc,GAAGL,WAAW,CAACK,cAAc;AACjD,MAAMH,SAAS,GAAGF,WAAW,CAACE,SAAS;AACvC,MAAMD,KAAK,GAAGD,WAAW,CAACC,KAAK;AAE/B,OAAO,MAAMK,iBAAmC,GAAG,EAAE;AACrDA,iBAAiB,CAACN,WAAW,CAACI,MAAM,CAAC,GAAG,CAAC;AAEzC,OAAO,MAAMG,oBAAoB,GAAGA,CAClCC,CAAgC,EAChCC,CAAgC,KAC7B;EACH,MAAMC,KAAK,GAAGF,CAAC,CAACG,CAAC,GAAGH,CAAC,CAACG,CAAC,GAAGL,iBAAiB;EAC3C,MAAMM,KAAK,GAAGH,CAAC,CAACE,CAAC,GAAGF,CAAC,CAACE,CAAC,GAAGL,iBAAiB;EAE3C,IAAII,KAAK,CAACP,SAAS,CAAC,KAAKS,KAAK,CAACT,SAAS,CAAC,EAAE;IACzC,OAAO,CAACO,KAAK,CAACP,SAAS,CAAC,IAAI,CAAC,KAAKS,KAAK,CAACT,SAAS,CAAC,IAAI,CAAC,CAAC;EAC1D,CAAC,MAAM,IAAIO,KAAK,CAACN,MAAM,CAAC,KAAKQ,KAAK,CAACR,MAAM,CAAC,EAAE;IAC1C,OAAO,CAACM,KAAK,CAACN,MAAM,CAAC,IAAI,CAAC,KAAKQ,KAAK,CAACR,MAAM,CAAC,IAAI,CAAC,CAAC;EACpD,CAAC,MAAM,IAAIM,KAAK,CAACL,cAAc,CAAC,KAAKO,KAAK,CAACP,cAAc,CAAC,EAAE;IAC1D,OAAO,CAACK,KAAK,CAACL,cAAc,CAAC,IAAI,CAAC,KAAKO,KAAK,CAACP,cAAc,CAAC,IAAI,CAAC,CAAC;EACpE,CAAC,MAAM,IAAIK,KAAK,CAACR,SAAS,CAAC,KAAKU,KAAK,CAACV,SAAS,CAAC,EAAE;IAChD,OAAO,CAACQ,KAAK,CAACR,SAAS,CAAC,IAAI,CAAC,KAAKU,KAAK,CAACV,SAAS,CAAC,IAAI,CAAC,CAAC;EAC1D,CAAC,MAAM,IAAIQ,KAAK,CAACT,KAAK,CAAC,KAAKW,KAAK,CAACX,KAAK,CAAC,EAAE;IACxC,OAAO,CAACS,KAAK,CAACT,KAAK,CAAC,IAAI,CAAC,KAAKW,KAAK,CAACX,KAAK,CAAC,IAAI,CAAC,CAAC;EAClD,CAAC,MAAM;IACL,OAAO,CAAC;EACV;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export function isStyleDescriptorArray(value) {
|
|
4
|
+
if (Array.isArray(value)) {
|
|
5
|
+
// If its an array and the first item is an object, the only allowed value is an array
|
|
6
|
+
return typeof value[0] === "object" ? Array.isArray(value[0]) : true;
|
|
7
|
+
}
|
|
8
|
+
return false;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=style-value.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["isStyleDescriptorArray","value","Array","isArray"],"sourceRoot":"../../../../src","sources":["runtime/utils/style-value.ts"],"mappings":";;AAEA,OAAO,SAASA,sBAAsBA,CACpCC,KAA0C,EACd;EAC5B,IAAIC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;IACxB;IACA,OAAO,OAAOA,KAAK,CAAC,CAAC,CAAC,KAAK,QAAQ,GAAGC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;EACtE;EAEA,OAAO,KAAK;AACd","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["runtime/utils/utils.types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createElement } from "react";
|
|
4
|
+
import { Appearance } from "react-native";
|
|
5
|
+
import { assignStyle } from "./assign-style.js";
|
|
6
|
+
export const styled = (baseComponent, mapping, _options) => {
|
|
7
|
+
return props => {
|
|
8
|
+
return useCssElement(baseComponent, mapping, props);
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export const useCssElement = (component, incomingProps, mapping) => {
|
|
12
|
+
let props = {
|
|
13
|
+
...incomingProps
|
|
14
|
+
};
|
|
15
|
+
for (const [key, value] of Object.entries(mapping)) {
|
|
16
|
+
const source = props[key];
|
|
17
|
+
if (!source) {
|
|
18
|
+
continue;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
|
22
|
+
delete props[key];
|
|
23
|
+
let target = typeof value === "object" ? value.target : value;
|
|
24
|
+
if (typeof target === "boolean") {
|
|
25
|
+
target = key;
|
|
26
|
+
}
|
|
27
|
+
props = assignStyle({
|
|
28
|
+
$$css: true,
|
|
29
|
+
[key]: source
|
|
30
|
+
}, target.split("."), props);
|
|
31
|
+
}
|
|
32
|
+
return /*#__PURE__*/createElement(component, props);
|
|
33
|
+
};
|
|
34
|
+
export const colorScheme = {
|
|
35
|
+
get() {
|
|
36
|
+
return Appearance.getColorScheme();
|
|
37
|
+
},
|
|
38
|
+
set(name) {
|
|
39
|
+
Appearance.setColorScheme(name);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
export function vars(variables) {
|
|
43
|
+
const $variables = {};
|
|
44
|
+
for (const [key, value] of Object.entries(variables)) {
|
|
45
|
+
if (key.startsWith("--")) {
|
|
46
|
+
$variables[key] = value.toString();
|
|
47
|
+
} else {
|
|
48
|
+
$variables[`--${key}`] = value.toString();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return $variables;
|
|
52
|
+
}
|
|
53
|
+
export const useNativeVariable = () => {
|
|
54
|
+
throw new Error("useNativeVariable is not supported in web");
|
|
55
|
+
};
|
|
56
|
+
export const useUnstableNativeVariable = () => {
|
|
57
|
+
throw new Error("useUnstableNativeVariable is not supported in web");
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createElement","Appearance","assignStyle","styled","baseComponent","mapping","_options","props","useCssElement","component","incomingProps","key","value","Object","entries","source","target","$$css","split","colorScheme","get","getColorScheme","set","name","setColorScheme","vars","variables","$variables","startsWith","toString","useNativeVariable","Error","useUnstableNativeVariable"],"sourceRoot":"../../../../src","sources":["runtime/web/api.ts"],"mappings":";;AAAA,SAASA,aAAa,QAA6B,OAAO;AAC1D,SAASC,UAAU,QAAQ,cAAc;AAUzC,SAASC,WAAW,QAAQ,mBAAgB;AAE5C,OAAO,MAAMC,MAAM,GAAGA,CAIpBC,aAAgB,EAChBC,OAAU,EACVC,QAAwB,KACrB;EACH,OAAQC,KAAwC,IAAK;IACnD,OAAO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ACpD,IAAIf,GAAG,CAACiB,UAAU,CAAC,IAAI,CAAC,EAAE;MACxBD,UAAU,CAAChB,GAAG,CAAC,GAAGC,KAAK,CAACiB,QAAQ,CAAC,CAAC;IACpC,CAAC,MAAM;MACLF,UAAU,CAAC,KAAKhB,GAAG,EAAE,CAAC,GAAGC,KAAK,CAACiB,QAAQ,CAAC,CAAC;IAC3C;EACF;EACA,OAAOF,UAAU;AACnB;AAEA,OAAO,MAAMG,iBAAiB,GAAGA,CAAA,KAAM;EACrC,MAAM,IAAIC,KAAK,CAAC,2CAA2C,CAAC;AAC9D,CAAC;AAED,OAAO,MAAMC,yBAAyB,GAAGA,CAAA,KAAM;EAC7C,MAAM,IAAID,KAAK,CAAC,mDAAmD,CAAC;AACtE,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export function assignStyle(value, targets, props) {
|
|
5
|
+
const target = targets.shift();
|
|
6
|
+
if (!target) return {};
|
|
7
|
+
if (targets.length === 0) {
|
|
8
|
+
if (typeof props[target] === "function") {
|
|
9
|
+
const cb = props[target];
|
|
10
|
+
props[target] = (...args) => {
|
|
11
|
+
return [cb(...args), value];
|
|
12
|
+
};
|
|
13
|
+
} else {
|
|
14
|
+
props[target] = [props[target], value];
|
|
15
|
+
}
|
|
16
|
+
return props;
|
|
17
|
+
} else {
|
|
18
|
+
props[target] ??= {};
|
|
19
|
+
assignStyle(value, targets, props[target]);
|
|
20
|
+
return props;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=assign-style.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["assignStyle","value","targets","props","target","shift","length","cb","args"],"sourceRoot":"../../../../src","sources":["runtime/web/assign-style.ts"],"mappings":";;AAAA;AACA,OAAO,SAASA,WAAWA,CACzBC,KAA0B,EAC1BC,OAAiB,EACjBC,KAA0B,EAC1B;EACA,MAAMC,MAAM,GAAGF,OAAO,CAACG,KAAK,CAAC,CAAC;EAE9B,IAAI,CAACD,MAAM,EAAE,OAAO,CAAC,CAAC;EAEtB,IAAIF,OAAO,CAACI,MAAM,KAAK,CAAC,EAAE;IACxB,IAAI,OAAOH,KAAK,CAACC,MAAM,CAAC,KAAK,UAAU,EAAE;MACvC,MAAMG,EAAE,GAAGJ,KAAK,CAACC,MAAM,CAAC;MACxBD,KAAK,CAACC,MAAM,CAAC,GAAG,CAAC,GAAGI,IAAW,KAAK;QAClC,OAAO,CAACD,EAAE,CAAC,GAAGC,IAAI,CAAC,EAAEP,KAAK,CAAC;MAC7B,CAAC;IACH,CAAC,MAAM;MACLE,KAAK,CAACC,MAAM,CAAC,GAAG,CAACD,KAAK,CAACC,MAAM,CAAC,EAAEH,KAAK,CAAC;IACxC;IACA,OAAOE,KAAK;EACd,CAAC,MAAM;IACLA,KAAK,CAACC,MAAM,CAAC,KAAK,CAAC,CAAC;IACpBJ,WAAW,CAACC,KAAK,EAAEC,OAAO,EAAEC,KAAK,CAACC,MAAM,CAAC,CAAC;IAC1C,OAAOD,KAAK;EACd;AACF","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["runtime/web/index.ts"],"mappings":";;AACA,cAAc,UAAO","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../../../example/src/App.tsx"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAC;AAEvB,MAAM,CAAC,OAAO,UAAU,GAAG,4CAM1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type NodePath } from "@babel/traverse";
|
|
2
|
+
import t from "@babel/types";
|
|
3
|
+
export type BabelTypes = typeof t;
|
|
4
|
+
export interface PluginOpts {
|
|
5
|
+
target?: string;
|
|
6
|
+
runtime?: string;
|
|
7
|
+
commonjs?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface PluginState {
|
|
10
|
+
opts?: PluginOpts;
|
|
11
|
+
filename: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const allowedModules: Set<string>;
|
|
14
|
+
export declare function isInsideModule(filename: string, module: string): boolean;
|
|
15
|
+
export declare function isPackageImport(path: NodePath<t.ImportDeclaration | t.ExportNamedDeclaration>): boolean;
|
|
16
|
+
export declare function shouldTransformImport(path: NodePath<t.ImportDeclaration | t.ExportNamedDeclaration>, filename: string): boolean | "" | undefined;
|
|
17
|
+
export declare function shouldTransformRequire(t: BabelTypes, node: t.VariableDeclaration, basePath: string): boolean | "" | undefined;
|
|
18
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/babel/helpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,CAAC,MAAM,cAAc,CAAC;AAE7B,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,CAAC;AAElC,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,cAAc,aAE1B,CAAC;AAoBF,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAqCxE;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,iBAAiB,GAAG,CAAC,CAAC,sBAAsB,CAAC,WAQ/D;AAED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,iBAAiB,GAAG,CAAC,CAAC,sBAAsB,CAAC,EAC9D,QAAQ,EAAE,MAAM,4BAcjB;AAuCD,wBAAgB,sBAAsB,CACpC,CAAC,EAAE,UAAU,EACb,IAAI,EAAE,CAAC,CAAC,mBAAmB,EAC3B,QAAQ,EAAE,MAAM,4BA+BjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import-plugin.d.ts","sourceRoot":"","sources":["../../../../../src/babel/import-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EACL,KAAK,UAAU,EACf,KAAK,WAAW,EAMjB,MAAM,WAAW,CAAC;AAEnB,MAAM,CAAC,OAAO,WAAW,EACvB,KAAK,EAAE,CAAC,GACT,EAAE;IACD,KAAK,EAAE,UAAU,CAAC;CACnB,GAAG,SAAS,CAAC,WAAW,CAAC,CAsKzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/babel/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CompilerCollection, StyleDeclaration, StyleDescriptor, StyleRule, StyleRuleMapping } from "./compiler.types";
|
|
2
|
+
export type AddFn = ReturnType<typeof buildAddFn>;
|
|
3
|
+
export declare function buildAddFn(rule: StyleRule, collection: CompilerCollection, mapping: StyleRuleMapping): {
|
|
4
|
+
(type: "container", property: "container-name", value: string[] | false): void;
|
|
5
|
+
(type: "transition", property: string, value: StyleDescriptor): void;
|
|
6
|
+
(type: "style", property: string, value: StyleDescriptor): void;
|
|
7
|
+
(type: "animation", property: string, value: StyleDescriptor): void;
|
|
8
|
+
};
|
|
9
|
+
export declare const addAnimation_V2: (declarations: StyleDeclaration[]) => AddFn;
|
|
10
|
+
//# sourceMappingURL=add.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/add.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,kBAAkB,EAElB,gBAAgB,EAChB,eAAe,EAEf,SAAS,EACT,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAG1B,MAAM,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAElD,wBAAgB,UAAU,CACxB,IAAI,EAAE,SAAS,EACf,UAAU,EAAE,kBAAkB,EAC9B,OAAO,EAAE,gBAAgB;WAKjB,WAAW,YACP,gBAAgB,SACnB,MAAM,EAAE,GAAG,KAAK,GACtB,IAAI;WAEC,YAAY,YACR,MAAM,SACT,eAAe,GACrB,IAAI;WACY,OAAO,YAAY,MAAM,SAAS,eAAe,GAAG,IAAI;WAEnE,WAAW,YACP,MAAM,SACT,eAAe,GACrB,IAAI;EAwHR;AAgDD,eAAO,MAAM,eAAe,GACzB,cAAc,gBAAgB,EAAE,KAAG,KAkDnC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CompilerOptions, ReactNativeCssStyleSheet } from "./compiler.types";
|
|
2
|
+
/**
|
|
3
|
+
* Converts a CSS file to a collection of style declarations that can be used with the StyleSheet API
|
|
4
|
+
*
|
|
5
|
+
* @param code - The CSS file contents
|
|
6
|
+
* @param options - Compiler options
|
|
7
|
+
* @returns A `ReactNativeCssStyleSheet` that can be passed to `StyleSheet.register` or used with a custom runtime
|
|
8
|
+
*/
|
|
9
|
+
export declare function compile(code: Buffer | string, { logger, ...options }?: CompilerOptions): ReactNativeCssStyleSheet;
|
|
10
|
+
//# sourceMappingURL=compiler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compiler.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/compiler.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAGV,eAAe,EAGf,wBAAwB,EAKzB,MAAM,kBAAkB,CAAC;AA0B1B;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,MAAM,GAAG,MAAM,EACrB,EAAE,MAAkC,EAAE,GAAG,OAAO,EAAE,GAAE,eAAoB,GACvE,wBAAwB,CA2G1B"}
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import type { AnimationDirection, AnimationFillMode, AnimationPlayState, MediaFeatureNameFor_MediaFeatureId } from "lightningcss";
|
|
2
|
+
import { VAR_SYMBOL } from "../runtime/native/reactivity";
|
|
3
|
+
export interface CompilerOptions {
|
|
4
|
+
inlineRem?: number | false;
|
|
5
|
+
grouping?: (string | RegExp)[];
|
|
6
|
+
selectorPrefix?: string;
|
|
7
|
+
stylesheetOrder?: number;
|
|
8
|
+
features?: FeatureFlagRecord;
|
|
9
|
+
logger?: (message: string) => void;
|
|
10
|
+
/** @internal */
|
|
11
|
+
ignorePropertyWarningRegex?: (string | RegExp)[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* A `react-native-css` StyleSheet
|
|
15
|
+
*/
|
|
16
|
+
export type ReactNativeCssStyleSheet = ReactNativeCssStyleSheet_V2;
|
|
17
|
+
export interface ReactNativeCssStyleSheet_V2 {
|
|
18
|
+
/** Feature flags */
|
|
19
|
+
f?: FeatureFlagRecord;
|
|
20
|
+
/** rem */
|
|
21
|
+
r?: number;
|
|
22
|
+
/** StyleRuleSets */
|
|
23
|
+
s?: [string, StyleRuleSet][];
|
|
24
|
+
/** KeyFrames */
|
|
25
|
+
k?: Animation_V2[];
|
|
26
|
+
/** Root Variables */
|
|
27
|
+
vr?: [string, LightDarkVariable][];
|
|
28
|
+
/** Universal Variables */
|
|
29
|
+
vu?: [string, LightDarkVariable][];
|
|
30
|
+
}
|
|
31
|
+
/******************************** Styles ********************************/
|
|
32
|
+
/**
|
|
33
|
+
* The JS representation of a style object
|
|
34
|
+
*
|
|
35
|
+
* This CSS rule is a single StyleRuleSet, made up of multiple StyleRules
|
|
36
|
+
*
|
|
37
|
+
* ```css
|
|
38
|
+
* .my-class {
|
|
39
|
+
* color: red;
|
|
40
|
+
* }
|
|
41
|
+
* ```
|
|
42
|
+
* Properties are split into normal and important properties, and then split
|
|
43
|
+
* into different StyleRules depending on their specificity, conditions, etc
|
|
44
|
+
*/
|
|
45
|
+
export type StyleRuleSet = StyleRule[];
|
|
46
|
+
export interface StyleRule {
|
|
47
|
+
/** Specificity */
|
|
48
|
+
s: SpecificityArray;
|
|
49
|
+
/** Declarations */
|
|
50
|
+
d?: StyleDeclaration[];
|
|
51
|
+
/** Variables */
|
|
52
|
+
v?: VariableDescriptor[];
|
|
53
|
+
/** Named Containers */
|
|
54
|
+
c?: string[];
|
|
55
|
+
/** Declarations use variables */
|
|
56
|
+
dv?: number;
|
|
57
|
+
target?: string | string[] | false;
|
|
58
|
+
/**
|
|
59
|
+
* Conditionals
|
|
60
|
+
*/
|
|
61
|
+
/** MediaQuery */
|
|
62
|
+
m?: MediaCondition[];
|
|
63
|
+
/** PseudoClassesQuery */
|
|
64
|
+
p?: PseudoClassesQuery;
|
|
65
|
+
/** Container Query */
|
|
66
|
+
cq?: ContainerQuery[];
|
|
67
|
+
/** Attribute Conditions */
|
|
68
|
+
aq?: AttributeQuery[];
|
|
69
|
+
/**
|
|
70
|
+
* Animations and Transitions
|
|
71
|
+
*/
|
|
72
|
+
/** Animations */
|
|
73
|
+
a?: boolean;
|
|
74
|
+
}
|
|
75
|
+
export type StyleDeclaration =
|
|
76
|
+
/** This is a static style object */
|
|
77
|
+
Record<string, StyleDescriptor>
|
|
78
|
+
/** A style that needs to be set */
|
|
79
|
+
| [StyleDescriptor, string | string[]]
|
|
80
|
+
/** A value that can only be computed at runtime */
|
|
81
|
+
| [StyleFunction, string | string[]]
|
|
82
|
+
/** A value that can only be computed at runtime, and only after styles have been calculated */
|
|
83
|
+
| [StyleFunction, string | string[], 1];
|
|
84
|
+
export type StyleDescriptor = string | number | boolean | undefined | StyleFunction | StyleDescriptor[];
|
|
85
|
+
export type StyleFunction = [
|
|
86
|
+
Record<never, never>,
|
|
87
|
+
string
|
|
88
|
+
] | [
|
|
89
|
+
Record<never, never>,
|
|
90
|
+
string,
|
|
91
|
+
// string
|
|
92
|
+
undefined | StyleDescriptor[]
|
|
93
|
+
] | [
|
|
94
|
+
Record<never, never>,
|
|
95
|
+
string,
|
|
96
|
+
// string
|
|
97
|
+
undefined | StyleDescriptor[],
|
|
98
|
+
1
|
|
99
|
+
];
|
|
100
|
+
/****************************** Variables *******************************/
|
|
101
|
+
export type VariableDescriptor = [string, StyleDescriptor];
|
|
102
|
+
export type VariableRecord = Record<string, LightDarkVariable>;
|
|
103
|
+
export type LightDarkVariable = [StyleDescriptor] | [StyleDescriptor, StyleDescriptor];
|
|
104
|
+
export type InlineVariable = {
|
|
105
|
+
[VAR_SYMBOL]: "inline";
|
|
106
|
+
[key: string]: StyleDescriptor | undefined;
|
|
107
|
+
};
|
|
108
|
+
/****************************** Animations V1 ******************************/
|
|
109
|
+
/**
|
|
110
|
+
* An animation with a fallback style value
|
|
111
|
+
*/
|
|
112
|
+
export type AnimationWithDefault_V1 = [AnimationRule_V1] | [AnimationRule_V1, StyleFunction];
|
|
113
|
+
/**
|
|
114
|
+
* A CSS Animation rule
|
|
115
|
+
*/
|
|
116
|
+
export interface AnimationRule_V1 {
|
|
117
|
+
/**
|
|
118
|
+
* The animation delay.
|
|
119
|
+
*/
|
|
120
|
+
de?: number[];
|
|
121
|
+
/**
|
|
122
|
+
* The direction of the animation.
|
|
123
|
+
*/
|
|
124
|
+
di?: AnimationDirection[];
|
|
125
|
+
/**
|
|
126
|
+
* The animation duration.
|
|
127
|
+
*/
|
|
128
|
+
du?: number[];
|
|
129
|
+
/**
|
|
130
|
+
* The animation fill mode.
|
|
131
|
+
*/
|
|
132
|
+
f?: AnimationFillMode[];
|
|
133
|
+
/**
|
|
134
|
+
* The number of times the animation will run.
|
|
135
|
+
*/
|
|
136
|
+
i?: number[];
|
|
137
|
+
/**
|
|
138
|
+
* The animation name.
|
|
139
|
+
*/
|
|
140
|
+
n?: string[];
|
|
141
|
+
/**
|
|
142
|
+
* The current play state of the animation.
|
|
143
|
+
*/
|
|
144
|
+
p?: AnimationPlayState[];
|
|
145
|
+
/**
|
|
146
|
+
* The animation timeline.
|
|
147
|
+
*/
|
|
148
|
+
t?: never[];
|
|
149
|
+
/**
|
|
150
|
+
* The easing function for the animation.
|
|
151
|
+
*/
|
|
152
|
+
e?: EasingFunction[];
|
|
153
|
+
}
|
|
154
|
+
export type AnimationKeyframes_V1 = [AnimationInterpolation_V1[]] | [AnimationInterpolation_V1[], AnimationEasing[]];
|
|
155
|
+
export type AnimationEasing = number | [number, EasingFunction];
|
|
156
|
+
export type AnimationInterpolation_V1 = [string, number[], StyleDescriptor[]] | [string, number[], StyleDescriptor[], number] | [string, number[], StyleDescriptor[], number, AnimationInterpolationType];
|
|
157
|
+
export type AnimationInterpolationType = "color" | "%" | undefined;
|
|
158
|
+
export type EasingFunction = "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | {
|
|
159
|
+
type: "cubic-bezier";
|
|
160
|
+
/**
|
|
161
|
+
* The x-position of the first point in the curve.
|
|
162
|
+
*/
|
|
163
|
+
x1: number;
|
|
164
|
+
/**
|
|
165
|
+
* The x-position of the second point in the curve.
|
|
166
|
+
*/
|
|
167
|
+
x2: number;
|
|
168
|
+
/**
|
|
169
|
+
* The y-position of the first point in the curve.
|
|
170
|
+
*/
|
|
171
|
+
y1: number;
|
|
172
|
+
/**
|
|
173
|
+
* The y-position of the second point in the curve.
|
|
174
|
+
*/
|
|
175
|
+
y2: number;
|
|
176
|
+
} | {
|
|
177
|
+
type: "steps";
|
|
178
|
+
/**
|
|
179
|
+
* The number of intervals in the function.
|
|
180
|
+
*/
|
|
181
|
+
c: number;
|
|
182
|
+
/**
|
|
183
|
+
* The step position.
|
|
184
|
+
*/
|
|
185
|
+
p?: "start" | "end" | "jump-none" | "jump-both";
|
|
186
|
+
};
|
|
187
|
+
/****************************** Animations V2 ******************************/
|
|
188
|
+
export type Animation_V2 = [string, AnimationKeyframes_V2[]];
|
|
189
|
+
export type AnimationKeyframes_V2 = [string | number, StyleDeclaration[]];
|
|
190
|
+
/****************************** Transitions *****************************/
|
|
191
|
+
export type TransitionRule = {
|
|
192
|
+
/**
|
|
193
|
+
* Delay before the transition starts in milliseconds.
|
|
194
|
+
*/
|
|
195
|
+
de?: number[];
|
|
196
|
+
/**
|
|
197
|
+
* Duration of the transition in milliseconds.
|
|
198
|
+
*/
|
|
199
|
+
du?: number[];
|
|
200
|
+
/**
|
|
201
|
+
* Property to transition.
|
|
202
|
+
*/
|
|
203
|
+
p?: string[];
|
|
204
|
+
/**
|
|
205
|
+
* Easing function for the transition.
|
|
206
|
+
*/
|
|
207
|
+
e?: EasingFunction[];
|
|
208
|
+
};
|
|
209
|
+
/****************************** Conditions ******************************/
|
|
210
|
+
export type MediaCondition = ["!!", MediaFeatureNameFor_MediaFeatureId] | ["!", MediaCondition] | ["&", MediaCondition[]] | ["|", MediaCondition[]] | [
|
|
211
|
+
MediaFeatureComparison,
|
|
212
|
+
MediaFeatureNameFor_MediaFeatureId | MediaFeatureNameFor_MediaFeatureId,
|
|
213
|
+
StyleDescriptor
|
|
214
|
+
] | [
|
|
215
|
+
"[]",
|
|
216
|
+
MediaFeatureNameFor_MediaFeatureId,
|
|
217
|
+
StyleDescriptor,
|
|
218
|
+
MediaFeatureComparison,
|
|
219
|
+
StyleDescriptor,
|
|
220
|
+
MediaFeatureComparison
|
|
221
|
+
];
|
|
222
|
+
export type MediaFeatureComparison = "=" | ">" | ">=" | "<" | "<=";
|
|
223
|
+
export interface PseudoClassesQuery {
|
|
224
|
+
/** Hover */
|
|
225
|
+
h?: 1;
|
|
226
|
+
/** Active */
|
|
227
|
+
a?: 1;
|
|
228
|
+
/** Focus */
|
|
229
|
+
f?: 1;
|
|
230
|
+
}
|
|
231
|
+
type AttributeQueryType = "a" | "d";
|
|
232
|
+
export type AttributeQuery = [AttributeQueryType, string] | [AttributeQueryType, string, "!"] | [AttributeQueryType, string, AttrSelectorOperator, string] | [AttributeQueryType, string, AttrSelectorOperator, string, "i" | "s"];
|
|
233
|
+
export type AttrSelectorOperator = "=" | "~=" | "|=" | "^=" | "$=" | "*=";
|
|
234
|
+
/****************************** Containers *****************************/
|
|
235
|
+
export interface ContainerQuery {
|
|
236
|
+
/** Name */
|
|
237
|
+
n?: string | null;
|
|
238
|
+
m?: MediaCondition;
|
|
239
|
+
p?: PseudoClassesQuery;
|
|
240
|
+
a?: AttributeQuery[];
|
|
241
|
+
}
|
|
242
|
+
/****************************** Specificity *****************************/
|
|
243
|
+
/**
|
|
244
|
+
* https://drafts.csswg.org/selectors/#specificity-rules
|
|
245
|
+
*
|
|
246
|
+
* This array is sorted by most common values when parsing a StyleSheet
|
|
247
|
+
*/
|
|
248
|
+
export type SpecificityArray = SpecificityValue[];
|
|
249
|
+
export type SpecificityValue = number | undefined;
|
|
250
|
+
/****************************** Compiler ********************************/
|
|
251
|
+
type FeatureFlags = never;
|
|
252
|
+
export type FeatureFlagRecord = Partial<Record<FeatureFlags, boolean>>;
|
|
253
|
+
/** @internal */
|
|
254
|
+
export type PathTokens = string | string[];
|
|
255
|
+
/** @internal */
|
|
256
|
+
export type StyleRuleMapping = Record<string, PathTokens | undefined>;
|
|
257
|
+
/**
|
|
258
|
+
* @internal
|
|
259
|
+
*/
|
|
260
|
+
export type LoggerOptions = {
|
|
261
|
+
logger: (message: string) => void;
|
|
262
|
+
};
|
|
263
|
+
/**
|
|
264
|
+
* @internal
|
|
265
|
+
*/
|
|
266
|
+
export interface CompilerCollection extends CompilerOptions {
|
|
267
|
+
features: FeatureFlagRecord;
|
|
268
|
+
rules: Map<string, StyleRule[]>;
|
|
269
|
+
keyframes: Map<string, AnimationKeyframes_V1 | AnimationKeyframes_V2[]>;
|
|
270
|
+
darkMode?: string | null;
|
|
271
|
+
rootVariables: VariableRecord;
|
|
272
|
+
universalVariables: VariableRecord;
|
|
273
|
+
selectorPrefix?: string;
|
|
274
|
+
appearanceOrder: number;
|
|
275
|
+
rem?: number | boolean;
|
|
276
|
+
varUsageCount: Map<string, number>;
|
|
277
|
+
}
|
|
278
|
+
export {};
|
|
279
|
+
//# sourceMappingURL=compiler.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compiler.types.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/compiler.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,kCAAkC,EACnC,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC3B,QAAQ,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,gBAAgB;IAChB,0BAA0B,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CAClD;AAED;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,2BAA2B,CAAC;AAEnE,MAAM,WAAW,2BAA2B;IAC1C,oBAAoB;IACpB,CAAC,CAAC,EAAE,iBAAiB,CAAC;IACtB,UAAU;IACV,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,oBAAoB;IACpB,CAAC,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC;IAC7B,gBAAgB;IAChB,CAAC,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