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
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { createContext } from "react";
|
|
3
|
+
import {
|
|
4
|
+
Appearance,
|
|
5
|
+
Dimensions,
|
|
6
|
+
type ColorSchemeName,
|
|
7
|
+
type LayoutRectangle,
|
|
8
|
+
} from "react-native";
|
|
9
|
+
|
|
10
|
+
import type { LightDarkVariable, StyleDescriptor } from "../../compiler";
|
|
11
|
+
|
|
12
|
+
export type Effect = {
|
|
13
|
+
observers: Set<Effect>;
|
|
14
|
+
run(): void;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type Observable<Value, Arg = Value> = {
|
|
18
|
+
observers: Set<Effect>;
|
|
19
|
+
get: (effect?: Effect) => Value;
|
|
20
|
+
set: (arg: Arg) => void;
|
|
21
|
+
run: () => void;
|
|
22
|
+
};
|
|
23
|
+
type Read<Value, Arg> = (get: Getter, arg?: Arg) => Value;
|
|
24
|
+
export type Getter = <Value>(observable: Observable<Value, any>) => Value;
|
|
25
|
+
|
|
26
|
+
export const observableBatch: {
|
|
27
|
+
current?: Set<Effect>;
|
|
28
|
+
} = {};
|
|
29
|
+
|
|
30
|
+
export function observable<Value, Arg = Value>(
|
|
31
|
+
init: Value | Read<Value, Arg>,
|
|
32
|
+
equality = Object.is,
|
|
33
|
+
) {
|
|
34
|
+
let value: Value;
|
|
35
|
+
let isStatic = typeof init !== "function";
|
|
36
|
+
let didInit: boolean | undefined;
|
|
37
|
+
let lastArg: Arg | undefined;
|
|
38
|
+
|
|
39
|
+
if (typeof init !== "function") {
|
|
40
|
+
value = init;
|
|
41
|
+
didInit = true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const observers = new Set<Effect>();
|
|
45
|
+
const effect: Effect = {
|
|
46
|
+
observers,
|
|
47
|
+
run: () => {
|
|
48
|
+
if (!isStatic) {
|
|
49
|
+
const nextValue = (init as Read<Value, Arg>)(getter, lastArg);
|
|
50
|
+
if (equality(value, nextValue)) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
value = nextValue;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
notify();
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
const getter: Getter = (observable) => observable.get(effect);
|
|
61
|
+
|
|
62
|
+
function get(effect?: Effect) {
|
|
63
|
+
if (effect) {
|
|
64
|
+
observers.add(effect);
|
|
65
|
+
}
|
|
66
|
+
if (!didInit) {
|
|
67
|
+
value = (init as Read<Value, Arg>)(getter, undefined);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function set(arg: Arg) {
|
|
74
|
+
if (isStatic) {
|
|
75
|
+
if (equality(value, arg)) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
value = arg as unknown as Value;
|
|
79
|
+
} else {
|
|
80
|
+
const nextValue = (init as Read<Value, Arg>)(getter, arg);
|
|
81
|
+
|
|
82
|
+
didInit = true;
|
|
83
|
+
lastArg = arg;
|
|
84
|
+
|
|
85
|
+
if (equality(value, nextValue)) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
value = nextValue;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
notify();
|
|
92
|
+
|
|
93
|
+
return obs;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function notify() {
|
|
97
|
+
Array.from(observers).forEach((observer) => {
|
|
98
|
+
if (observableBatch.current) {
|
|
99
|
+
observableBatch.current.add(observer);
|
|
100
|
+
} else {
|
|
101
|
+
observer.run();
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
const obs: Observable<Value, Arg> = {
|
|
107
|
+
observers,
|
|
108
|
+
get,
|
|
109
|
+
set,
|
|
110
|
+
run: effect.run,
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
return obs;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function cleanupEffect(effect: Effect) {
|
|
117
|
+
if (!effect) return;
|
|
118
|
+
for (const dep of effect.observers) {
|
|
119
|
+
dep.observers.delete(effect);
|
|
120
|
+
}
|
|
121
|
+
effect.observers.clear();
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/** Family Helpers ************************************************************/
|
|
125
|
+
|
|
126
|
+
export function family<Key, Result = Key, Args extends any = void>(
|
|
127
|
+
fn: (key: Key, args: Args) => Result,
|
|
128
|
+
) {
|
|
129
|
+
const map = new Map<Key, Result>();
|
|
130
|
+
return Object.assign(
|
|
131
|
+
(key: Key, args: Args) => {
|
|
132
|
+
let value = map.get(key);
|
|
133
|
+
if (!value) {
|
|
134
|
+
value = fn(key, args);
|
|
135
|
+
map.set(key, value);
|
|
136
|
+
}
|
|
137
|
+
return value;
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
delete(key: Key) {
|
|
141
|
+
return map.delete(key);
|
|
142
|
+
},
|
|
143
|
+
clear() {
|
|
144
|
+
return map.clear();
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
type WeakFamilyFn<Key, Args = undefined, Result = Key> = ((
|
|
151
|
+
key: Key,
|
|
152
|
+
args: Args,
|
|
153
|
+
) => Result) & {
|
|
154
|
+
has(key: Key): boolean;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
export function weakFamily<Key extends WeakKey, Result = Key>(
|
|
158
|
+
fn: (key: Key) => Result,
|
|
159
|
+
): WeakFamilyFn<Key, void, Result>;
|
|
160
|
+
export function weakFamily<Key extends WeakKey, Args = undefined, Result = Key>(
|
|
161
|
+
fn: (key: Key, args: Args) => Result,
|
|
162
|
+
): WeakFamilyFn<Key, Args, Result>;
|
|
163
|
+
export function weakFamily<Key extends WeakKey, Args = undefined, Result = Key>(
|
|
164
|
+
fn: (key: Key, args: Args) => Result,
|
|
165
|
+
): WeakFamilyFn<Key, Args, Result> {
|
|
166
|
+
const map = new WeakMap<Key, Result>();
|
|
167
|
+
return Object.assign(
|
|
168
|
+
(key: Key, args: Args) => {
|
|
169
|
+
let value = map.get(key);
|
|
170
|
+
if (!value) {
|
|
171
|
+
value = fn(key, args);
|
|
172
|
+
map.set(key, value);
|
|
173
|
+
}
|
|
174
|
+
return value;
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
has: (key: Key) => map.has(key),
|
|
178
|
+
},
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/********************************* Variables **********************************/
|
|
183
|
+
|
|
184
|
+
export const VAR_SYMBOL = Symbol("react-native-css.var");
|
|
185
|
+
export type VariableContextValue = Record<string, StyleDescriptor> & {
|
|
186
|
+
[VAR_SYMBOL]: true;
|
|
187
|
+
};
|
|
188
|
+
export const VariableContext = createContext<VariableContextValue>({
|
|
189
|
+
[VAR_SYMBOL]: true,
|
|
190
|
+
});
|
|
191
|
+
|
|
192
|
+
const lightDarkFamily = () => {
|
|
193
|
+
return family<string, Observable<StyleDescriptor, LightDarkVariable>>(() => {
|
|
194
|
+
const obs = observable<StyleDescriptor, LightDarkVariable>(
|
|
195
|
+
(read, lightDark = [undefined, undefined]) => {
|
|
196
|
+
const colorSchemeName =
|
|
197
|
+
read(colorScheme) ?? Appearance.getColorScheme() ?? "light";
|
|
198
|
+
|
|
199
|
+
return colorSchemeName === "dark"
|
|
200
|
+
? (lightDark[1] ?? lightDark[0])
|
|
201
|
+
: lightDark[0];
|
|
202
|
+
},
|
|
203
|
+
);
|
|
204
|
+
|
|
205
|
+
return obs;
|
|
206
|
+
});
|
|
207
|
+
};
|
|
208
|
+
export const rootVariables = lightDarkFamily();
|
|
209
|
+
export const universalVariables = lightDarkFamily();
|
|
210
|
+
|
|
211
|
+
/** Units *********************************************************************/
|
|
212
|
+
|
|
213
|
+
export const rem = observable(14);
|
|
214
|
+
|
|
215
|
+
/** Pseudo Classes ************************************************************/
|
|
216
|
+
|
|
217
|
+
export const hoverFamily = weakFamily(() => observable(false));
|
|
218
|
+
export const activeFamily = weakFamily(() => observable<boolean>(false));
|
|
219
|
+
export const focusFamily = weakFamily(() => observable<boolean>(false));
|
|
220
|
+
|
|
221
|
+
/** Dimensions ****************************************************************/
|
|
222
|
+
|
|
223
|
+
export const dimensions = observable(Dimensions.get("window"));
|
|
224
|
+
export const vw = observable<number>(
|
|
225
|
+
(read, value) => value ?? read(dimensions)?.width,
|
|
226
|
+
);
|
|
227
|
+
export const vh = observable<number>(
|
|
228
|
+
(read, value) => value ?? read(dimensions)?.height,
|
|
229
|
+
);
|
|
230
|
+
|
|
231
|
+
/** Color Scheme **************************************************************/
|
|
232
|
+
|
|
233
|
+
export const colorScheme = observable<ColorSchemeName>(
|
|
234
|
+
Appearance.getColorScheme(),
|
|
235
|
+
);
|
|
236
|
+
colorScheme.set(Appearance.getColorScheme());
|
|
237
|
+
colorScheme.get({
|
|
238
|
+
observers: new Set(),
|
|
239
|
+
run: () => Appearance.setColorScheme(colorScheme.get()),
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
/** Containers ****************************************************************/
|
|
243
|
+
|
|
244
|
+
export type ContainerContextValue = Record<string, Effect>;
|
|
245
|
+
export const ContainerContext = createContext<ContainerContextValue>({});
|
|
246
|
+
|
|
247
|
+
export const containerLayoutFamily = weakFamily(() => {
|
|
248
|
+
return observable<LayoutRectangle>({
|
|
249
|
+
x: 0,
|
|
250
|
+
y: 0,
|
|
251
|
+
width: 0,
|
|
252
|
+
height: 0,
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
|
|
256
|
+
export const containerWidthFamily = weakFamily((key) => {
|
|
257
|
+
return observable((read) => {
|
|
258
|
+
return read(containerLayoutFamily(key))?.width || 0;
|
|
259
|
+
});
|
|
260
|
+
});
|
|
261
|
+
|
|
262
|
+
export const containerHeightFamily = weakFamily((key) => {
|
|
263
|
+
return observable((read) => {
|
|
264
|
+
return read(containerLayoutFamily(key))?.width || 0;
|
|
265
|
+
});
|
|
266
|
+
});
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ComponentType } from "react";
|
|
3
|
+
|
|
4
|
+
import type { StyleDescriptor } from "../../../compiler";
|
|
5
|
+
import { StyleCollection } from "../injection";
|
|
6
|
+
import { observable, weakFamily, type Getter } from "../reactivity";
|
|
7
|
+
import type { SimpleResolveValue, StyleFunctionResolver } from "./resolve";
|
|
8
|
+
import { shorthandHandler } from "./shorthand";
|
|
9
|
+
|
|
10
|
+
const name = ["n", "string", "none"] as const;
|
|
11
|
+
const delay = ["de", "number", 0] as const;
|
|
12
|
+
const duration = ["du", "number", 0] as const;
|
|
13
|
+
const fill = ["f", ["none", "forwards", "backwards", "both"], "none"] as const;
|
|
14
|
+
const iteration = ["i", "number", 1] as const;
|
|
15
|
+
const playState = ["p", ["running", "paused"], "running"] as const;
|
|
16
|
+
const direction = [
|
|
17
|
+
"di",
|
|
18
|
+
["normal", "reverse", "alternate", "alternate-reverse"],
|
|
19
|
+
"normal",
|
|
20
|
+
] as const;
|
|
21
|
+
const easing = [
|
|
22
|
+
"e",
|
|
23
|
+
["linear", "ease", "ease-in", "ease-out", "ease-in-out"],
|
|
24
|
+
"ease",
|
|
25
|
+
] as const;
|
|
26
|
+
|
|
27
|
+
export const animationShorthand = shorthandHandler(
|
|
28
|
+
[
|
|
29
|
+
[name],
|
|
30
|
+
[duration, name],
|
|
31
|
+
[name, duration],
|
|
32
|
+
[duration, delay, name],
|
|
33
|
+
[duration, delay, iteration, name],
|
|
34
|
+
[duration, delay, iteration, easing, name],
|
|
35
|
+
[name, duration, easing, delay, iteration, fill],
|
|
36
|
+
],
|
|
37
|
+
[name, delay, direction, duration, fill, iteration, playState, easing],
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
export const animation: StyleFunctionResolver = (
|
|
41
|
+
resolveValue,
|
|
42
|
+
value,
|
|
43
|
+
get,
|
|
44
|
+
{ inheritedVariables },
|
|
45
|
+
) => {
|
|
46
|
+
const name = resolveValue(value[2]);
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Get a stable reference to the StyleProp observer.
|
|
50
|
+
* We can use that as a WeakKey
|
|
51
|
+
*/
|
|
52
|
+
return get(
|
|
53
|
+
animationFamily(get, {
|
|
54
|
+
name,
|
|
55
|
+
resolveValue,
|
|
56
|
+
inheritedVariables,
|
|
57
|
+
}),
|
|
58
|
+
);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
type AnimationFamilyOptions = {
|
|
62
|
+
name: StyleDescriptor;
|
|
63
|
+
resolveValue: SimpleResolveValue;
|
|
64
|
+
inheritedVariables: any;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
const animationFamily = weakFamily(
|
|
68
|
+
(_: Getter, options: AnimationFamilyOptions) => {
|
|
69
|
+
const { name: nameDescriptor, resolveValue } = options;
|
|
70
|
+
|
|
71
|
+
return observable((get) => {
|
|
72
|
+
const names = resolveValue(nameDescriptor);
|
|
73
|
+
|
|
74
|
+
if (!Array.isArray(names)) {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return names.map((name: string) => {
|
|
79
|
+
const keyframes = get(StyleCollection.keyframes(name));
|
|
80
|
+
|
|
81
|
+
const animation: Record<string, any> = {};
|
|
82
|
+
|
|
83
|
+
for (const [progress, declarations] of keyframes) {
|
|
84
|
+
const result: Record<string, any> = {};
|
|
85
|
+
|
|
86
|
+
// This code needs to match calculateProps
|
|
87
|
+
// TODO: Refactor this to use the same code
|
|
88
|
+
for (const declaration of declarations) {
|
|
89
|
+
let target = result;
|
|
90
|
+
|
|
91
|
+
if (!Array.isArray(declaration)) {
|
|
92
|
+
// Static styles
|
|
93
|
+
Object.assign(target, declaration);
|
|
94
|
+
} else {
|
|
95
|
+
// Dynamic styles
|
|
96
|
+
let value: any = declaration[0];
|
|
97
|
+
let propPath = declaration[1];
|
|
98
|
+
let prop: string | undefined = "";
|
|
99
|
+
|
|
100
|
+
if (typeof propPath === "string") {
|
|
101
|
+
prop = propPath;
|
|
102
|
+
} else {
|
|
103
|
+
prop = propPath[0];
|
|
104
|
+
|
|
105
|
+
for (
|
|
106
|
+
let i = 0;
|
|
107
|
+
i < propPath.length - 2 && typeof prop === "string";
|
|
108
|
+
i++
|
|
109
|
+
) {
|
|
110
|
+
target = target[prop] ??= {};
|
|
111
|
+
prop = propPath[i + 1];
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
value = resolveValue(value);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
animation[progress] = result;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return animation;
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
},
|
|
126
|
+
);
|
|
127
|
+
|
|
128
|
+
export const animatedComponentFamily = weakFamily(
|
|
129
|
+
(component: ComponentType) => {
|
|
130
|
+
if (
|
|
131
|
+
"displayName" in component &&
|
|
132
|
+
component.displayName?.startsWith("Animated.")
|
|
133
|
+
) {
|
|
134
|
+
return component;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
const createAnimatedComponent =
|
|
138
|
+
require("react-native-reanimated").createAnimatedComponent;
|
|
139
|
+
|
|
140
|
+
return createAnimatedComponent(component);
|
|
141
|
+
},
|
|
142
|
+
);
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { StyleFunctionResolver } from "./resolve";
|
|
3
|
+
|
|
4
|
+
const calcPrecedence: Record<string, number> = {
|
|
5
|
+
"+": 1,
|
|
6
|
+
"-": 1,
|
|
7
|
+
"*": 2,
|
|
8
|
+
"/": 2,
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const calc: StyleFunctionResolver = (resolveValue, func) => {
|
|
12
|
+
let mode: "number" | "percentage" | undefined;
|
|
13
|
+
const values: number[] = [];
|
|
14
|
+
const ops: string[] = [];
|
|
15
|
+
|
|
16
|
+
const args = func[2];
|
|
17
|
+
if (!args) return;
|
|
18
|
+
|
|
19
|
+
for (let token of args) {
|
|
20
|
+
switch (typeof token) {
|
|
21
|
+
case "undefined":
|
|
22
|
+
// Fail on an undefined value
|
|
23
|
+
return;
|
|
24
|
+
case "number":
|
|
25
|
+
if (!mode) mode = "number";
|
|
26
|
+
if (mode !== "number") return;
|
|
27
|
+
values.push(token);
|
|
28
|
+
continue;
|
|
29
|
+
case "object": {
|
|
30
|
+
// All values should resolve to a numerical value
|
|
31
|
+
const value = resolveValue(token);
|
|
32
|
+
switch (typeof value) {
|
|
33
|
+
case "number": {
|
|
34
|
+
if (!mode) mode = "number";
|
|
35
|
+
if (mode !== "number") return;
|
|
36
|
+
values.push(value);
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
case "string": {
|
|
40
|
+
if (!value.endsWith("%")) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (!mode) mode = "percentage";
|
|
44
|
+
if (mode !== "percentage") return;
|
|
45
|
+
values.push(Number.parseFloat(value.slice(0, -1)));
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
default:
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
case "string": {
|
|
53
|
+
if (token === "(") {
|
|
54
|
+
ops.push(token);
|
|
55
|
+
} else if (token === ")") {
|
|
56
|
+
// Resolve all values within the brackets
|
|
57
|
+
while (ops.length && ops[ops.length - 1] !== "(") {
|
|
58
|
+
applyCalcOperator(ops.pop()!, values.pop()!, values.pop()!, values);
|
|
59
|
+
}
|
|
60
|
+
ops.pop();
|
|
61
|
+
} else if (token.endsWith("%")) {
|
|
62
|
+
if (!mode) mode = "percentage";
|
|
63
|
+
if (mode !== "percentage") return;
|
|
64
|
+
values.push(Number.parseFloat(token.slice(0, -1)));
|
|
65
|
+
} else {
|
|
66
|
+
// This means we have an operator
|
|
67
|
+
while (
|
|
68
|
+
ops.length &&
|
|
69
|
+
ops[ops.length - 1] &&
|
|
70
|
+
// @ts-ignore
|
|
71
|
+
calcPrecedence[ops[ops.length - 1]] >= calcPrecedence[token]
|
|
72
|
+
) {
|
|
73
|
+
applyCalcOperator(ops.pop()!, values.pop()!, values.pop()!, values);
|
|
74
|
+
}
|
|
75
|
+
ops.push(token);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
while (ops.length) {
|
|
82
|
+
applyCalcOperator(ops.pop()!, values.pop()!, values.pop()!, values);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if (!mode) return;
|
|
86
|
+
|
|
87
|
+
const num = values[0];
|
|
88
|
+
|
|
89
|
+
if (typeof num !== "number") {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const value = Math.round((num + Number.EPSILON) * 100) / 100;
|
|
94
|
+
|
|
95
|
+
if (mode === "percentage") {
|
|
96
|
+
return `${value}%`;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return value;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
function applyCalcOperator(
|
|
103
|
+
operator: string,
|
|
104
|
+
b: number, // These are reversed because we pop them off the stack
|
|
105
|
+
a: number,
|
|
106
|
+
values: number[],
|
|
107
|
+
) {
|
|
108
|
+
switch (operator) {
|
|
109
|
+
case "+":
|
|
110
|
+
return values.push(a + b);
|
|
111
|
+
case "-":
|
|
112
|
+
return values.push(a - b);
|
|
113
|
+
case "*":
|
|
114
|
+
return values.push(a * b);
|
|
115
|
+
case "/":
|
|
116
|
+
return values.push(a / b);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const emVariableName = "__rn-css-em";
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
export const transformKeys = new Set([
|
|
3
|
+
"translateX",
|
|
4
|
+
"translateY",
|
|
5
|
+
"scale",
|
|
6
|
+
"scaleX",
|
|
7
|
+
"scaleY",
|
|
8
|
+
"rotate",
|
|
9
|
+
"rotateX",
|
|
10
|
+
"rotateY",
|
|
11
|
+
"rotateZ",
|
|
12
|
+
"skewX",
|
|
13
|
+
"skewY",
|
|
14
|
+
"perspective",
|
|
15
|
+
"matrix",
|
|
16
|
+
"transformOrigin",
|
|
17
|
+
]);
|
|
18
|
+
|
|
19
|
+
export const defaultValues: Record<string, any> = {
|
|
20
|
+
backgroundColor: "transparent",
|
|
21
|
+
borderBottomColor: "transparent",
|
|
22
|
+
borderBottomLeftRadius: 0,
|
|
23
|
+
borderBottomRightRadius: 0,
|
|
24
|
+
borderBottomWidth: 0,
|
|
25
|
+
borderColor: "transparent",
|
|
26
|
+
borderLeftColor: "transparent",
|
|
27
|
+
borderLeftWidth: 0,
|
|
28
|
+
borderRadius: 0,
|
|
29
|
+
borderRightColor: "transparent",
|
|
30
|
+
borderRightWidth: 0,
|
|
31
|
+
borderTopColor: "transparent",
|
|
32
|
+
borderTopWidth: 0,
|
|
33
|
+
borderWidth: 0,
|
|
34
|
+
bottom: 0,
|
|
35
|
+
color: "black",
|
|
36
|
+
flex: 1,
|
|
37
|
+
flexBasis: 1,
|
|
38
|
+
flexGrow: 1,
|
|
39
|
+
flexShrink: 0,
|
|
40
|
+
fontSize: 14,
|
|
41
|
+
fontWeight: "400",
|
|
42
|
+
gap: 0,
|
|
43
|
+
left: 0,
|
|
44
|
+
lineHeight: 14,
|
|
45
|
+
margin: 0,
|
|
46
|
+
marginBottom: 0,
|
|
47
|
+
marginLeft: 0,
|
|
48
|
+
marginRight: 0,
|
|
49
|
+
marginTop: 0,
|
|
50
|
+
maxHeight: 99999,
|
|
51
|
+
maxWidth: 99999,
|
|
52
|
+
minHeight: 0,
|
|
53
|
+
minWidth: 0,
|
|
54
|
+
opacity: 1,
|
|
55
|
+
padding: 0,
|
|
56
|
+
paddingBottom: 0,
|
|
57
|
+
paddingLeft: 0,
|
|
58
|
+
paddingRight: 0,
|
|
59
|
+
paddingTop: 0,
|
|
60
|
+
perspective: 1,
|
|
61
|
+
right: 0,
|
|
62
|
+
rotate: "0deg",
|
|
63
|
+
rotateX: "0deg",
|
|
64
|
+
rotateY: "0deg",
|
|
65
|
+
rotateZ: "0deg",
|
|
66
|
+
scale: 1,
|
|
67
|
+
scaleX: 1,
|
|
68
|
+
scaleY: 1,
|
|
69
|
+
skewX: "0deg",
|
|
70
|
+
skewY: "0deg",
|
|
71
|
+
textShadowRadius: 0,
|
|
72
|
+
top: 0,
|
|
73
|
+
transformOrigin: "50%",
|
|
74
|
+
translateX: 0,
|
|
75
|
+
translateY: 0,
|
|
76
|
+
width: 0,
|
|
77
|
+
zIndex: 0,
|
|
78
|
+
};
|