react-native-css 3.0.0-nightly.4723140 → 3.0.0-nightly.75f8b74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +184 -1
- package/dist/commonjs/babel/allowedModules.js +23 -0
- package/dist/commonjs/babel/allowedModules.js.map +1 -0
- package/dist/commonjs/babel/helpers.js +18 -122
- package/dist/commonjs/babel/helpers.js.map +1 -1
- package/dist/commonjs/babel/import-plugin.js +62 -58
- package/dist/commonjs/babel/import-plugin.js.map +1 -1
- package/dist/commonjs/babel/react-native-web.js +118 -0
- package/dist/commonjs/babel/react-native-web.js.map +1 -0
- package/dist/commonjs/babel/react-native.js +118 -0
- package/dist/commonjs/babel/react-native.js.map +1 -0
- package/dist/commonjs/compiler/atRules.js +101 -0
- package/dist/commonjs/compiler/atRules.js.map +1 -0
- package/dist/commonjs/compiler/attributes.test.js +20 -0
- package/dist/commonjs/compiler/attributes.test.js.map +1 -0
- package/dist/commonjs/compiler/compiler.js +143 -344
- package/dist/commonjs/compiler/compiler.js.map +1 -1
- package/dist/commonjs/compiler/compiler.types.js.map +1 -1
- package/dist/commonjs/compiler/container-query.js +10 -10
- package/dist/commonjs/compiler/container-query.js.map +1 -1
- package/dist/commonjs/compiler/declarations.js +1239 -987
- package/dist/commonjs/compiler/declarations.js.map +1 -1
- package/dist/commonjs/compiler/inheritance.test.js +78 -0
- package/dist/commonjs/compiler/inheritance.test.js.map +1 -0
- package/dist/commonjs/compiler/keyframes.js +15 -24
- package/dist/commonjs/compiler/keyframes.js.map +1 -1
- package/dist/commonjs/compiler/media-query.js +22 -22
- package/dist/commonjs/compiler/media-query.js.map +1 -1
- package/dist/commonjs/compiler/selectors.js +264 -184
- package/dist/commonjs/compiler/selectors.js.map +1 -1
- package/dist/commonjs/compiler/split-by-delimiter.js +21 -0
- package/dist/commonjs/compiler/split-by-delimiter.js.map +1 -0
- package/dist/commonjs/compiler/stylesheet.js +385 -0
- package/dist/commonjs/compiler/stylesheet.js.map +1 -0
- package/dist/commonjs/components/Text.js +2 -0
- package/dist/commonjs/components/Text.js.map +1 -1
- package/dist/commonjs/components/View.js +2 -0
- package/dist/commonjs/components/View.js.map +1 -1
- package/dist/commonjs/index.js +11 -0
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/jest/index.js +12 -23
- package/dist/commonjs/jest/index.js.map +1 -1
- package/dist/commonjs/metro/index.js +111 -50
- package/dist/commonjs/metro/index.js.map +1 -1
- package/dist/commonjs/metro/injection-code.js +24 -4
- package/dist/commonjs/metro/injection-code.js.map +1 -1
- package/dist/commonjs/metro/resolver.js +62 -0
- package/dist/commonjs/metro/resolver.js.map +1 -0
- package/dist/commonjs/metro/typescript.js +1 -1
- package/dist/commonjs/poison.pill.js +36 -0
- package/dist/commonjs/poison.pill.js.map +1 -0
- package/dist/commonjs/runtime/native/conditions/guards.js +10 -4
- package/dist/commonjs/runtime/native/conditions/guards.js.map +1 -1
- package/dist/commonjs/runtime/native/conditions/media-query.js +2 -0
- package/dist/commonjs/runtime/native/conditions/media-query.js.map +1 -1
- package/dist/commonjs/runtime/native/index.js +11 -1
- package/dist/commonjs/runtime/native/index.js.map +1 -1
- package/dist/commonjs/runtime/native/injection.js +18 -0
- package/dist/commonjs/runtime/native/injection.js.map +1 -1
- package/dist/commonjs/runtime/native/react/rules.js +23 -27
- package/dist/commonjs/runtime/native/react/rules.js.map +1 -1
- package/dist/commonjs/runtime/native/reactivity.js +1 -5
- package/dist/commonjs/runtime/native/reactivity.js.map +1 -1
- package/dist/commonjs/runtime/native/styles/animation.js +70 -72
- package/dist/commonjs/runtime/native/styles/animation.js.map +1 -1
- package/dist/commonjs/runtime/native/styles/border.js +12 -0
- package/dist/commonjs/runtime/native/styles/border.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/box-shadow.js +40 -0
- package/dist/commonjs/runtime/native/styles/box-shadow.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/calc.js +33 -61
- package/dist/commonjs/runtime/native/styles/calc.js.map +1 -1
- package/dist/commonjs/runtime/native/styles/calculate-props.js +123 -0
- package/dist/commonjs/runtime/native/styles/calculate-props.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/constants.js +2 -1
- package/dist/commonjs/runtime/native/styles/constants.js.map +1 -1
- package/dist/commonjs/runtime/native/styles/filters.js +84 -0
- package/dist/commonjs/runtime/native/styles/filters.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/index.js +2 -110
- package/dist/commonjs/runtime/native/styles/index.js.map +1 -1
- package/dist/commonjs/runtime/native/styles/platform-functions.js +46 -0
- package/dist/commonjs/runtime/native/styles/platform-functions.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/resolve.js +46 -13
- package/dist/commonjs/runtime/native/styles/resolve.js.map +1 -1
- package/dist/commonjs/runtime/native/styles/shorthand.js +34 -17
- package/dist/commonjs/runtime/native/styles/shorthand.js.map +1 -1
- package/dist/commonjs/runtime/native/styles/transform.js +9 -3
- package/dist/commonjs/runtime/native/styles/transform.js.map +1 -1
- package/dist/commonjs/runtime/native/styles/units.js +7 -4
- package/dist/commonjs/runtime/native/styles/units.js.map +1 -1
- package/dist/commonjs/runtime/native/styles/variables.js +57 -36
- package/dist/commonjs/runtime/native/styles/variables.js.map +1 -1
- package/dist/commonjs/runtime/utils/objects.js +18 -5
- package/dist/commonjs/runtime/utils/objects.js.map +1 -1
- package/dist/commonjs/runtime/utils/style-value.js +7 -0
- package/dist/commonjs/runtime/utils/style-value.js.map +1 -1
- package/dist/commonjs/runtime/web/index.js +1 -0
- package/dist/commonjs/runtime/web/index.js.map +1 -1
- package/dist/commonjs/runtime/web/metro.js +6 -0
- package/dist/commonjs/runtime/web/metro.js.map +1 -0
- package/dist/module/babel/allowedModules.js +19 -0
- package/dist/module/babel/allowedModules.js.map +1 -0
- package/dist/module/babel/helpers.js +17 -116
- package/dist/module/babel/helpers.js.map +1 -1
- package/dist/module/babel/import-plugin.js +63 -59
- package/dist/module/babel/import-plugin.js.map +1 -1
- package/dist/module/babel/react-native-web.js +112 -0
- package/dist/module/babel/react-native-web.js.map +1 -0
- package/dist/module/babel/react-native.js +112 -0
- package/dist/module/babel/react-native.js.map +1 -0
- package/dist/module/compiler/atRules.js +97 -0
- package/dist/module/compiler/atRules.js.map +1 -0
- package/dist/module/compiler/attributes.test.js +20 -0
- package/dist/module/compiler/attributes.test.js.map +1 -0
- package/dist/module/compiler/compiler.js +144 -345
- package/dist/module/compiler/compiler.js.map +1 -1
- package/dist/module/compiler/compiler.types.js +0 -12
- package/dist/module/compiler/compiler.types.js.map +1 -1
- package/dist/module/compiler/container-query.js +10 -10
- package/dist/module/compiler/container-query.js.map +1 -1
- package/dist/module/compiler/declarations.js +1178 -991
- package/dist/module/compiler/declarations.js.map +1 -1
- package/dist/module/compiler/inheritance.test.js +78 -0
- package/dist/module/compiler/inheritance.test.js.map +1 -0
- package/dist/module/compiler/keyframes.js +15 -24
- package/dist/module/compiler/keyframes.js.map +1 -1
- package/dist/module/compiler/media-query.js +22 -22
- package/dist/module/compiler/media-query.js.map +1 -1
- package/dist/module/compiler/selectors.js +264 -184
- package/dist/module/compiler/selectors.js.map +1 -1
- package/dist/module/compiler/split-by-delimiter.js +17 -0
- package/dist/module/compiler/split-by-delimiter.js.map +1 -0
- package/dist/module/compiler/stylesheet.js +380 -0
- package/dist/module/compiler/stylesheet.js.map +1 -0
- package/dist/module/components/Text.js +1 -0
- package/dist/module/components/Text.js.map +1 -1
- package/dist/module/components/View.js +1 -0
- package/dist/module/components/View.js.map +1 -1
- package/dist/module/index.js +1 -0
- package/dist/module/index.js.map +1 -1
- package/dist/module/jest/index.js +12 -8
- package/dist/module/jest/index.js.map +1 -1
- package/dist/module/metro/index.js +111 -50
- package/dist/module/metro/index.js.map +1 -1
- package/dist/module/metro/injection-code.js +22 -3
- package/dist/module/metro/injection-code.js.map +1 -1
- package/dist/module/metro/resolver.js +57 -0
- package/dist/module/metro/resolver.js.map +1 -0
- package/dist/module/metro/typescript.js +1 -1
- package/dist/module/poison.pill.js +34 -0
- package/dist/module/poison.pill.js.map +1 -0
- package/dist/module/runtime/native/conditions/guards.js +10 -4
- package/dist/module/runtime/native/conditions/guards.js.map +1 -1
- package/dist/module/runtime/native/conditions/media-query.js +2 -0
- package/dist/module/runtime/native/conditions/media-query.js.map +1 -1
- package/dist/module/runtime/native/index.js +1 -2
- package/dist/module/runtime/native/index.js.map +1 -1
- package/dist/module/runtime/native/injection.js +18 -0
- package/dist/module/runtime/native/injection.js.map +1 -1
- package/dist/module/runtime/native/react/rules.js +22 -27
- package/dist/module/runtime/native/react/rules.js.map +1 -1
- package/dist/module/runtime/native/reactivity.js +1 -5
- package/dist/module/runtime/native/reactivity.js.map +1 -1
- package/dist/module/runtime/native/styles/animation.js +68 -71
- package/dist/module/runtime/native/styles/animation.js.map +1 -1
- package/dist/module/runtime/native/styles/border.js +8 -0
- package/dist/module/runtime/native/styles/border.js.map +1 -0
- package/dist/module/runtime/native/styles/box-shadow.js +35 -0
- package/dist/module/runtime/native/styles/box-shadow.js.map +1 -0
- package/dist/module/runtime/native/styles/calc.js +33 -62
- package/dist/module/runtime/native/styles/calc.js.map +1 -1
- package/dist/module/runtime/native/styles/calculate-props.js +118 -0
- package/dist/module/runtime/native/styles/calculate-props.js.map +1 -0
- package/dist/module/runtime/native/styles/constants.js +1 -0
- package/dist/module/runtime/native/styles/constants.js.map +1 -1
- package/dist/module/runtime/native/styles/filters.js +70 -0
- package/dist/module/runtime/native/styles/filters.js.map +1 -0
- package/dist/module/runtime/native/styles/index.js +2 -110
- package/dist/module/runtime/native/styles/index.js.map +1 -1
- package/dist/module/runtime/native/styles/platform-functions.js +36 -0
- package/dist/module/runtime/native/styles/platform-functions.js.map +1 -0
- package/dist/module/runtime/native/styles/resolve.js +47 -14
- package/dist/module/runtime/native/styles/resolve.js.map +1 -1
- package/dist/module/runtime/native/styles/shorthand.js +34 -17
- package/dist/module/runtime/native/styles/shorthand.js.map +1 -1
- package/dist/module/runtime/native/styles/transform.js +9 -3
- package/dist/module/runtime/native/styles/transform.js.map +1 -1
- package/dist/module/runtime/native/styles/units.js +7 -4
- package/dist/module/runtime/native/styles/units.js.map +1 -1
- package/dist/module/runtime/native/styles/variables.js +57 -36
- package/dist/module/runtime/native/styles/variables.js.map +1 -1
- package/dist/module/runtime/utils/objects.js +16 -4
- package/dist/module/runtime/utils/objects.js.map +1 -1
- package/dist/module/runtime/utils/style-value.js +6 -0
- package/dist/module/runtime/utils/style-value.js.map +1 -1
- package/dist/module/runtime/web/index.js +2 -0
- package/dist/module/runtime/web/index.js.map +1 -1
- package/dist/module/runtime/web/metro.js +5 -0
- package/dist/module/runtime/web/metro.js.map +1 -0
- package/dist/typescript/commonjs/example/app.config.d.ts +4 -0
- package/dist/typescript/commonjs/example/app.config.d.ts.map +1 -0
- package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/babel/allowedModules.d.ts +2 -0
- package/dist/typescript/commonjs/src/babel/allowedModules.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/babel/helpers.d.ts +3 -8
- package/dist/typescript/commonjs/src/babel/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/babel/import-plugin.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/babel/react-native-web.d.ts +8 -0
- package/dist/typescript/commonjs/src/babel/react-native-web.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/babel/react-native.d.ts +8 -0
- package/dist/typescript/commonjs/src/babel/react-native.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/atRules.d.ts +34 -0
- package/dist/typescript/commonjs/src/compiler/atRules.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/attributes.test.d.ts +2 -0
- package/dist/typescript/commonjs/src/compiler/attributes.test.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/compiler.d.ts +1 -1
- package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +27 -108
- package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/container-query.d.ts +2 -2
- package/dist/typescript/commonjs/src/compiler/container-query.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts +118 -25
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts +2 -0
- package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +5 -4
- package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/media-query.d.ts +4 -4
- package/dist/typescript/commonjs/src/compiler/media-query.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/selectors.d.ts +10 -5
- package/dist/typescript/commonjs/src/compiler/selectors.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/split-by-delimiter.d.ts +2 -0
- package/dist/typescript/commonjs/src/compiler/split-by-delimiter.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +54 -0
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/Text.d.ts +1 -1
- package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/View.d.ts +1 -1
- package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/index.d.ts +1 -0
- package/dist/typescript/commonjs/src/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/jest/index.d.ts +4 -5
- package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/index.d.ts +5 -4
- package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/injection-code.d.ts +15 -1
- package/dist/typescript/commonjs/src/metro/injection-code.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/resolver.d.ts +4 -0
- package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/poison.pill.d.ts +2 -0
- package/dist/typescript/commonjs/src/poison.pill.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/api.d.ts +1 -1
- package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/index.d.ts +1 -1
- package/dist/typescript/commonjs/src/runtime/native/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts +2 -1
- package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts +1 -1
- package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts +1 -1
- package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/animation.d.ts +3 -2
- package/dist/typescript/commonjs/src/runtime/native/styles/animation.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/border.d.ts +2 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/border.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/box-shadow.d.ts +3 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/box-shadow.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/calc.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts +10 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/filters.d.ts +12 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/filters.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts +3 -4
- package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/platform-functions.d.ts +8 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/platform-functions.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts +6 -2
- package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthand.d.ts +3 -4
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthand.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/text-shadow.d.ts +1 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/text-shadow.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/transform.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts +1 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts +0 -15
- package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/utils/components.d.ts +1 -1
- package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts +2 -1
- package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts +3 -2
- package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/web/index.d.ts +1 -0
- package/dist/typescript/commonjs/src/runtime/web/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/web/metro.d.ts +2 -0
- package/dist/typescript/commonjs/src/runtime/web/metro.d.ts.map +1 -0
- package/dist/typescript/module/example/app.config.d.ts +4 -0
- package/dist/typescript/module/example/app.config.d.ts.map +1 -0
- package/dist/typescript/module/example/src/App.d.ts.map +1 -1
- package/dist/typescript/module/src/babel/allowedModules.d.ts +2 -0
- package/dist/typescript/module/src/babel/allowedModules.d.ts.map +1 -0
- package/dist/typescript/module/src/babel/helpers.d.ts +3 -8
- package/dist/typescript/module/src/babel/helpers.d.ts.map +1 -1
- package/dist/typescript/module/src/babel/import-plugin.d.ts.map +1 -1
- package/dist/typescript/module/src/babel/react-native-web.d.ts +8 -0
- package/dist/typescript/module/src/babel/react-native-web.d.ts.map +1 -0
- package/dist/typescript/module/src/babel/react-native.d.ts +8 -0
- package/dist/typescript/module/src/babel/react-native.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/atRules.d.ts +34 -0
- package/dist/typescript/module/src/compiler/atRules.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/attributes.test.d.ts +2 -0
- package/dist/typescript/module/src/compiler/attributes.test.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/compiler.d.ts +1 -1
- package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/compiler.types.d.ts +27 -108
- package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/container-query.d.ts +2 -2
- package/dist/typescript/module/src/compiler/container-query.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/declarations.d.ts +118 -25
- package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/inheritance.test.d.ts +2 -0
- package/dist/typescript/module/src/compiler/inheritance.test.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/keyframes.d.ts +5 -4
- package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/media-query.d.ts +4 -4
- package/dist/typescript/module/src/compiler/media-query.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/selectors.d.ts +10 -5
- package/dist/typescript/module/src/compiler/selectors.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/split-by-delimiter.d.ts +2 -0
- package/dist/typescript/module/src/compiler/split-by-delimiter.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/stylesheet.d.ts +54 -0
- package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -0
- package/dist/typescript/module/src/components/Text.d.ts +1 -1
- package/dist/typescript/module/src/components/Text.d.ts.map +1 -1
- package/dist/typescript/module/src/components/View.d.ts +1 -1
- package/dist/typescript/module/src/components/View.d.ts.map +1 -1
- package/dist/typescript/module/src/index.d.ts +1 -0
- package/dist/typescript/module/src/index.d.ts.map +1 -1
- package/dist/typescript/module/src/jest/index.d.ts +4 -5
- package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/index.d.ts +5 -4
- package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/injection-code.d.ts +15 -1
- package/dist/typescript/module/src/metro/injection-code.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/resolver.d.ts +4 -0
- package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -0
- package/dist/typescript/module/src/poison.pill.d.ts +2 -0
- package/dist/typescript/module/src/poison.pill.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/api.d.ts +1 -1
- package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/index.d.ts +1 -1
- package/dist/typescript/module/src/runtime/native/index.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/react/rules.d.ts +2 -1
- package/dist/typescript/module/src/runtime/native/react/rules.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts +1 -1
- package/dist/typescript/module/src/runtime/native/reactivity.d.ts +1 -1
- package/dist/typescript/module/src/runtime/native/reactivity.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/styles/animation.d.ts +3 -2
- package/dist/typescript/module/src/runtime/native/styles/animation.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/styles/border.d.ts +2 -0
- package/dist/typescript/module/src/runtime/native/styles/border.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/box-shadow.d.ts +3 -0
- package/dist/typescript/module/src/runtime/native/styles/box-shadow.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/calc.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts +10 -0
- package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/constants.d.ts +1 -0
- package/dist/typescript/module/src/runtime/native/styles/constants.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/styles/filters.d.ts +12 -0
- package/dist/typescript/module/src/runtime/native/styles/filters.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/index.d.ts +3 -4
- package/dist/typescript/module/src/runtime/native/styles/index.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/styles/platform-functions.d.ts +8 -0
- package/dist/typescript/module/src/runtime/native/styles/platform-functions.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts +6 -2
- package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/styles/shorthand.d.ts +3 -4
- package/dist/typescript/module/src/runtime/native/styles/shorthand.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/styles/text-shadow.d.ts +1 -1
- package/dist/typescript/module/src/runtime/native/styles/text-shadow.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/styles/transform.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/styles/units.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/styles/variables.d.ts +1 -1
- package/dist/typescript/module/src/runtime/native/styles/variables.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/runtime.types.d.ts +0 -15
- package/dist/typescript/module/src/runtime/runtime.types.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/utils/components.d.ts +1 -1
- package/dist/typescript/module/src/runtime/utils/objects.d.ts +2 -1
- package/dist/typescript/module/src/runtime/utils/objects.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/utils/style-value.d.ts +3 -2
- package/dist/typescript/module/src/runtime/utils/style-value.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/web/index.d.ts +1 -0
- package/dist/typescript/module/src/runtime/web/index.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/web/metro.d.ts +2 -0
- package/dist/typescript/module/src/runtime/web/metro.d.ts.map +1 -0
- package/package.json +69 -14
- package/src/babel/allowedModules.ts +24 -0
- package/src/babel/helpers.ts +16 -158
- package/src/babel/import-plugin.ts +125 -132
- package/src/babel/react-native-web.ts +226 -0
- package/src/babel/react-native.ts +226 -0
- package/src/compiler/atRules.ts +144 -0
- package/src/compiler/attributes.test.ts +28 -0
- package/src/compiler/compiler.ts +154 -482
- package/src/compiler/compiler.types.ts +30 -135
- package/src/compiler/container-query.ts +12 -12
- package/src/compiler/declarations.ts +1803 -1967
- package/src/compiler/inheritance.test.ts +121 -0
- package/src/compiler/keyframes.ts +28 -42
- package/src/compiler/media-query.ts +27 -26
- package/src/compiler/selectors.ts +289 -271
- package/src/compiler/split-by-delimiter.ts +19 -0
- package/src/compiler/stylesheet.ts +546 -0
- package/src/components/Text.tsx +2 -0
- package/src/components/View.tsx +2 -0
- package/src/index.ts +2 -0
- package/src/jest/index.ts +19 -9
- package/src/metro/index.ts +161 -64
- package/src/metro/injection-code.ts +33 -3
- package/src/metro/resolver.ts +89 -0
- package/src/metro/typescript.ts +1 -1
- package/src/poison.pill.ts +32 -0
- package/src/runtime/native/conditions/guards.ts +12 -4
- package/src/runtime/native/conditions/media-query.ts +2 -0
- package/src/runtime/native/index.ts +1 -2
- package/src/runtime/native/injection.ts +30 -0
- package/src/runtime/native/react/rules.ts +26 -33
- package/src/runtime/native/reactivity.ts +3 -7
- package/src/runtime/native/styles/animation.ts +143 -104
- package/src/runtime/native/styles/border.ts +10 -0
- package/src/runtime/native/styles/box-shadow.ts +54 -0
- package/src/runtime/native/styles/calc.ts +37 -60
- package/src/runtime/native/styles/calculate-props.ts +165 -0
- package/src/runtime/native/styles/constants.ts +1 -0
- package/src/runtime/native/styles/filters.ts +98 -0
- package/src/runtime/native/styles/index.ts +2 -138
- package/src/runtime/native/styles/platform-functions.ts +50 -0
- package/src/runtime/native/styles/resolve.ts +91 -17
- package/src/runtime/native/styles/shorthand.ts +61 -41
- package/src/runtime/native/styles/transform.ts +10 -4
- package/src/runtime/native/styles/units.ts +9 -4
- package/src/runtime/native/styles/variables.ts +51 -35
- package/src/runtime/runtime.types.ts +0 -25
- package/src/runtime/utils/objects.ts +20 -5
- package/src/runtime/utils/style-value.ts +14 -2
- package/src/runtime/web/index.ts +3 -0
- package/src/runtime/web/metro.ts +2 -0
- package/types.d.ts +70 -0
- package/dist/commonjs/compiler/add.js +0 -175
- package/dist/commonjs/compiler/add.js.map +0 -1
- package/dist/commonjs/components/ActivityIndicator.js +0 -20
- package/dist/commonjs/components/ActivityIndicator.js.map +0 -1
- package/dist/commonjs/components/SafeAreaProvider/index.js +0 -41
- package/dist/commonjs/components/SafeAreaProvider/index.js.map +0 -1
- package/dist/commonjs/components/SafeAreaProvider/index.web.js +0 -13
- package/dist/commonjs/components/SafeAreaProvider/index.web.js.map +0 -1
- package/dist/commonjs/components/TextInput.js +0 -20
- package/dist/commonjs/components/TextInput.js.map +0 -1
- package/dist/module/compiler/add.js +0 -168
- package/dist/module/compiler/add.js.map +0 -1
- package/dist/module/components/ActivityIndicator.js +0 -16
- package/dist/module/components/ActivityIndicator.js.map +0 -1
- package/dist/module/components/SafeAreaProvider/index.js +0 -36
- package/dist/module/components/SafeAreaProvider/index.js.map +0 -1
- package/dist/module/components/SafeAreaProvider/index.web.js +0 -4
- package/dist/module/components/SafeAreaProvider/index.web.js.map +0 -1
- package/dist/module/components/TextInput.js +0 -16
- package/dist/module/components/TextInput.js.map +0 -1
- package/dist/typescript/commonjs/src/compiler/add.d.ts +0 -10
- package/dist/typescript/commonjs/src/compiler/add.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +0 -3
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/components/SafeAreaProvider/index.d.ts +0 -4
- package/dist/typescript/commonjs/src/components/SafeAreaProvider/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/components/SafeAreaProvider/index.web.d.ts +0 -2
- package/dist/typescript/commonjs/src/components/SafeAreaProvider/index.web.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/components/TextInput.d.ts +0 -13
- package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +0 -1
- package/dist/typescript/module/src/compiler/add.d.ts +0 -10
- package/dist/typescript/module/src/compiler/add.d.ts.map +0 -1
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts +0 -3
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +0 -1
- package/dist/typescript/module/src/components/SafeAreaProvider/index.d.ts +0 -4
- package/dist/typescript/module/src/components/SafeAreaProvider/index.d.ts.map +0 -1
- package/dist/typescript/module/src/components/SafeAreaProvider/index.web.d.ts +0 -2
- package/dist/typescript/module/src/components/SafeAreaProvider/index.web.d.ts.map +0 -1
- package/dist/typescript/module/src/components/TextInput.d.ts +0 -13
- package/dist/typescript/module/src/components/TextInput.d.ts.map +0 -1
- package/src/compiler/add.ts +0 -257
- package/src/components/ActivityIndicator.tsx +0 -19
- package/src/components/SafeAreaProvider/index.tsx +0 -50
- package/src/components/SafeAreaProvider/index.web.tsx +0 -1
- package/src/components/TextInput.tsx +0 -20
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import type { StyleDescriptor, StyleFunction } from "../../../compiler";
|
|
2
|
+
import { isStyleDescriptorArray } from "../../utils";
|
|
3
3
|
import {
|
|
4
4
|
rootVariables,
|
|
5
5
|
universalVariables,
|
|
@@ -21,52 +21,68 @@ export function varResolver(
|
|
|
21
21
|
variableHistory = new Set(),
|
|
22
22
|
} = options;
|
|
23
23
|
|
|
24
|
-
const
|
|
24
|
+
const args = fn[2];
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
let name: string | undefined;
|
|
27
|
+
let fallback: StyleDescriptor | undefined;
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
if (typeof args === "string") {
|
|
30
|
+
name = args;
|
|
31
|
+
} else {
|
|
32
|
+
const result = resolve(args);
|
|
30
33
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
if (isStyleDescriptorArray(result)) {
|
|
35
|
+
name = result[0] as string;
|
|
36
|
+
fallback = result[1];
|
|
34
37
|
}
|
|
38
|
+
}
|
|
35
39
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
+
if (typeof name !== "string") {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
40
43
|
|
|
41
|
-
|
|
44
|
+
// If this recurses back to the same variable, we need to stop
|
|
45
|
+
if (variableHistory.has(name)) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
42
48
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
49
|
+
if (name in variables) {
|
|
50
|
+
renderGuards?.push(["v", name, variables[name]]);
|
|
51
|
+
return variables[name];
|
|
52
|
+
}
|
|
46
53
|
|
|
47
|
-
|
|
48
|
-
}
|
|
54
|
+
variableHistory.add(name);
|
|
49
55
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
56
|
+
let value = resolve(inlineVariables?.[name] as StyleDescriptor);
|
|
57
|
+
if (value !== undefined) {
|
|
58
|
+
options.inlineVariables ??= { [VAR_SYMBOL]: "inline" };
|
|
59
|
+
options.inlineVariables[name] = value;
|
|
54
60
|
|
|
55
|
-
|
|
56
|
-
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
57
63
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
64
|
+
value = resolve(variables[name]);
|
|
65
|
+
if (value !== undefined) {
|
|
66
|
+
renderGuards?.push(["v", name, value]);
|
|
67
|
+
options.inlineVariables ??= { [VAR_SYMBOL]: "inline" };
|
|
68
|
+
options.inlineVariables[name] = value;
|
|
63
69
|
|
|
64
|
-
value
|
|
65
|
-
|
|
66
|
-
variables[name] = value;
|
|
67
|
-
return value;
|
|
68
|
-
}
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
69
72
|
|
|
73
|
+
value = resolve(get(universalVariables(name)));
|
|
74
|
+
if (value !== undefined) {
|
|
75
|
+
options.inlineVariables ??= { [VAR_SYMBOL]: "inline" };
|
|
76
|
+
options.inlineVariables[name] = value;
|
|
70
77
|
return value;
|
|
71
78
|
}
|
|
79
|
+
|
|
80
|
+
value = resolve(get(rootVariables(name)));
|
|
81
|
+
if (value !== undefined) {
|
|
82
|
+
options.inlineVariables ??= { [VAR_SYMBOL]: "inline" };
|
|
83
|
+
options.inlineVariables[name] = value;
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return resolve(fallback);
|
|
72
88
|
}
|
|
@@ -7,12 +7,6 @@ import type {
|
|
|
7
7
|
ViewStyle,
|
|
8
8
|
} from "react-native";
|
|
9
9
|
|
|
10
|
-
import type { makeMutable, SharedValue } from "react-native-reanimated";
|
|
11
|
-
|
|
12
|
-
import type {
|
|
13
|
-
AnimationInterpolation_V1,
|
|
14
|
-
AnimationKeyframes_V1,
|
|
15
|
-
} from "../compiler";
|
|
16
10
|
import type { ComponentPropsDotNotation, ReactComponent } from "./utils";
|
|
17
11
|
import type { DotNotation, ResolveDotPath } from "./utils/dot-notation.types";
|
|
18
12
|
|
|
@@ -122,25 +116,6 @@ export type InlineStyle =
|
|
|
122
116
|
| (Record<string, unknown> | undefined | null)[]
|
|
123
117
|
| (() => unknown);
|
|
124
118
|
|
|
125
|
-
/****************************** Animations ******************************/
|
|
126
|
-
|
|
127
|
-
export type Mutable<Value> = ReturnType<typeof makeMutable<Value>>;
|
|
128
|
-
export type AnimationMutable = Mutable<number>;
|
|
129
|
-
|
|
130
|
-
export interface KeyFramesWithStyles {
|
|
131
|
-
animation: AnimationKeyframes_V1;
|
|
132
|
-
baseStyles: Record<string, any>;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export type SharedValueInterpolation = [
|
|
136
|
-
SharedValue<number>,
|
|
137
|
-
AnimationInterpolation_V1[],
|
|
138
|
-
];
|
|
139
|
-
|
|
140
|
-
/****************************** Transitions *****************************/
|
|
141
|
-
|
|
142
|
-
export type Transition = [string | string[], Mutable<any>];
|
|
143
|
-
|
|
144
119
|
/********************************* Misc *********************************/
|
|
145
120
|
|
|
146
121
|
export type Props = Record<string, any> | undefined | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
+
import { ShortHandSymbol } from "../native/styles/constants";
|
|
2
3
|
import { transformKeys } from "../native/styles/defaults";
|
|
3
|
-
import { ShortHandSymbol } from "../native/styles/shorthand";
|
|
4
4
|
|
|
5
5
|
export function getDeepPath(source: any, paths: string | string[] | false) {
|
|
6
6
|
if (!source) {
|
|
@@ -28,6 +28,22 @@ export function getDeepPath(source: any, paths: string | string[] | false) {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
export function applyShorthand(value: any) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const target: Record<string, unknown> = { [ShortHandSymbol]: true };
|
|
37
|
+
|
|
38
|
+
const values = value as [unknown, string][];
|
|
39
|
+
|
|
40
|
+
for (const [value, prop] of values) {
|
|
41
|
+
target[prop] = value;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return target;
|
|
45
|
+
}
|
|
46
|
+
|
|
31
47
|
export function applyValue(
|
|
32
48
|
target: Record<string, any>,
|
|
33
49
|
prop: string,
|
|
@@ -51,9 +67,8 @@ export function applyValue(
|
|
|
51
67
|
}
|
|
52
68
|
return;
|
|
53
69
|
} else if (typeof value === "object" && value && ShortHandSymbol in value) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
70
|
+
delete value[ShortHandSymbol];
|
|
71
|
+
Object.assign(target, value);
|
|
57
72
|
return;
|
|
58
73
|
}
|
|
59
74
|
|
|
@@ -62,7 +77,7 @@ export function applyValue(
|
|
|
62
77
|
|
|
63
78
|
export function setDeepPath(
|
|
64
79
|
target: Record<string, any>,
|
|
65
|
-
paths: string | string[],
|
|
80
|
+
paths: string | string[] | readonly string[],
|
|
66
81
|
value: any,
|
|
67
82
|
) {
|
|
68
83
|
if (typeof paths === "string") {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { StyleDescriptor } from "../../compiler";
|
|
1
|
+
import type { StyleDescriptor, StyleFunction } from "../../compiler";
|
|
2
2
|
|
|
3
3
|
export function isStyleDescriptorArray(
|
|
4
|
-
value:
|
|
4
|
+
value: unknown,
|
|
5
5
|
): value is StyleDescriptor[] {
|
|
6
6
|
if (Array.isArray(value)) {
|
|
7
7
|
// If its an array and the first item is an object, the only allowed value is an array
|
|
@@ -10,3 +10,15 @@ export function isStyleDescriptorArray(
|
|
|
10
10
|
|
|
11
11
|
return false;
|
|
12
12
|
}
|
|
13
|
+
|
|
14
|
+
export function isStyleFunction(
|
|
15
|
+
value: StyleDescriptor,
|
|
16
|
+
): value is StyleFunction {
|
|
17
|
+
if (Array.isArray(value)) {
|
|
18
|
+
return typeof value[0] === "object"
|
|
19
|
+
? Object.keys(value[0]).length === 0
|
|
20
|
+
: false;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return false;
|
|
24
|
+
}
|
package/src/runtime/web/index.ts
CHANGED
package/types.d.ts
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
+
import type {
|
|
3
|
+
ScrollViewProps,
|
|
4
|
+
ScrollViewPropsAndroid,
|
|
5
|
+
ScrollViewPropsIOS,
|
|
6
|
+
Touchable,
|
|
7
|
+
VirtualizedListProps,
|
|
8
|
+
} from "react-native";
|
|
9
|
+
|
|
10
|
+
declare module "@react-native/virtualized-lists" {
|
|
11
|
+
export interface VirtualizedListWithoutRenderItemProps<ItemT>
|
|
12
|
+
extends ScrollViewProps {
|
|
13
|
+
ListFooterComponentClassName?: string;
|
|
14
|
+
ListHeaderComponentClassName?: string;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare module "react-native" {
|
|
19
|
+
interface ScrollViewProps
|
|
20
|
+
extends ViewProps,
|
|
21
|
+
ScrollViewPropsIOS,
|
|
22
|
+
ScrollViewPropsAndroid,
|
|
23
|
+
Touchable {
|
|
24
|
+
contentContainerClassName?: string;
|
|
25
|
+
indicatorClassName?: string;
|
|
26
|
+
}
|
|
27
|
+
interface FlatListProps<ItemT> extends VirtualizedListProps<ItemT> {
|
|
28
|
+
columnWrapperClassName?: string;
|
|
29
|
+
}
|
|
30
|
+
interface ImageBackgroundProps extends ImagePropsBase {
|
|
31
|
+
imageClassName?: string;
|
|
32
|
+
}
|
|
33
|
+
interface ImagePropsBase {
|
|
34
|
+
className?: string;
|
|
35
|
+
cssInterop?: boolean;
|
|
36
|
+
}
|
|
37
|
+
interface ViewProps {
|
|
38
|
+
className?: string;
|
|
39
|
+
cssInterop?: boolean;
|
|
40
|
+
}
|
|
41
|
+
interface TextInputProps {
|
|
42
|
+
placeholderClassName?: string;
|
|
43
|
+
}
|
|
44
|
+
interface TextProps {
|
|
45
|
+
className?: string;
|
|
46
|
+
cssInterop?: boolean;
|
|
47
|
+
}
|
|
48
|
+
interface SwitchProps {
|
|
49
|
+
className?: string;
|
|
50
|
+
cssInterop?: boolean;
|
|
51
|
+
}
|
|
52
|
+
interface InputAccessoryViewProps {
|
|
53
|
+
className?: string;
|
|
54
|
+
cssInterop?: boolean;
|
|
55
|
+
}
|
|
56
|
+
interface TouchableWithoutFeedbackProps {
|
|
57
|
+
className?: string;
|
|
58
|
+
cssInterop?: boolean;
|
|
59
|
+
}
|
|
60
|
+
interface StatusBarProps {
|
|
61
|
+
className?: string;
|
|
62
|
+
cssInterop?: boolean;
|
|
63
|
+
}
|
|
64
|
+
interface KeyboardAvoidingViewProps extends ViewProps {
|
|
65
|
+
contentContainerClassName?: string;
|
|
66
|
+
}
|
|
67
|
+
interface ModalBaseProps {
|
|
68
|
+
presentationClassName?: string;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.addAnimation_V2 = void 0;
|
|
7
|
-
exports.buildAddFn = buildAddFn;
|
|
8
|
-
var _styleValue = require("../runtime/utils/style-value.js");
|
|
9
|
-
var _selectors = require("./selectors.js");
|
|
10
|
-
/* eslint-disable */
|
|
11
|
-
|
|
12
|
-
function buildAddFn(rule, collection, mapping) {
|
|
13
|
-
let staticDeclarations;
|
|
14
|
-
function add(type, property, value) {
|
|
15
|
-
if (value === undefined) {
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
let forceTuple = false;
|
|
19
|
-
switch (type) {
|
|
20
|
-
case "container":
|
|
21
|
-
{
|
|
22
|
-
rule.c ??= [];
|
|
23
|
-
const names = value.map(name => `c:${name}`);
|
|
24
|
-
rule.c.push(...names);
|
|
25
|
-
break;
|
|
26
|
-
}
|
|
27
|
-
case "animation":
|
|
28
|
-
{
|
|
29
|
-
value = value;
|
|
30
|
-
if (value === undefined) {
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// We cannot animate variables
|
|
35
|
-
if (property.startsWith("--")) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
property = (0, _selectors.toRNProperty)(property);
|
|
39
|
-
const rename = mapping[property] ?? mapping["*"];
|
|
40
|
-
const [styleFunction, delayed, usesVariables] = postProcessStyleFunction(value);
|
|
41
|
-
rule.d ??= [];
|
|
42
|
-
rule.a = true;
|
|
43
|
-
if (delayed) {
|
|
44
|
-
rule.d.push([styleFunction, rename || property, 1]);
|
|
45
|
-
} else {
|
|
46
|
-
rule.d.push([styleFunction, rename || property]);
|
|
47
|
-
}
|
|
48
|
-
if (usesVariables) {
|
|
49
|
-
rule.dv = 1;
|
|
50
|
-
}
|
|
51
|
-
break;
|
|
52
|
-
}
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
case "transition":
|
|
55
|
-
{
|
|
56
|
-
rule.a = true;
|
|
57
|
-
}
|
|
58
|
-
case "style":
|
|
59
|
-
{
|
|
60
|
-
value = value;
|
|
61
|
-
if (value === undefined) {
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
if (property.startsWith("--")) {
|
|
65
|
-
if (!property.startsWith("--__rn-css") && !collection.varUsageCount.has(property)) {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
rule.v ??= [];
|
|
69
|
-
rule.v.push([property.slice(2), value]);
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
property = (0, _selectors.toRNProperty)(property);
|
|
73
|
-
const rename = mapping[property] ?? mapping["*"];
|
|
74
|
-
if (Array.isArray(value) && !(0, _styleValue.isStyleDescriptorArray)(value)) {
|
|
75
|
-
rule.d ??= [];
|
|
76
|
-
const [styleFunction, delayed, usesVariables] = postProcessStyleFunction(value);
|
|
77
|
-
if (delayed) {
|
|
78
|
-
rule.d.push([styleFunction, rename || property, 1]);
|
|
79
|
-
} else {
|
|
80
|
-
rule.d.push([styleFunction, rename || property]);
|
|
81
|
-
}
|
|
82
|
-
if (usesVariables) {
|
|
83
|
-
rule.dv = 1;
|
|
84
|
-
}
|
|
85
|
-
} else if (forceTuple || rename && (rename.length > 1 || !rename[0].startsWith("^"))) {
|
|
86
|
-
rule.d ??= [];
|
|
87
|
-
rule.d.push([value, rename || property]);
|
|
88
|
-
} else {
|
|
89
|
-
if (rename) {
|
|
90
|
-
property = rename[0].slice(1);
|
|
91
|
-
}
|
|
92
|
-
if (!staticDeclarations) {
|
|
93
|
-
staticDeclarations = {};
|
|
94
|
-
rule.d ??= [];
|
|
95
|
-
rule.d.push(staticDeclarations);
|
|
96
|
-
}
|
|
97
|
-
staticDeclarations[property] = value;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
return add;
|
|
103
|
-
}
|
|
104
|
-
function postProcessStyleFunction(value) {
|
|
105
|
-
if (!Array.isArray(value)) {
|
|
106
|
-
return [value, false, false];
|
|
107
|
-
}
|
|
108
|
-
if ((0, _styleValue.isStyleDescriptorArray)(value)) {
|
|
109
|
-
let shouldDelay = false;
|
|
110
|
-
let usesVariables = false;
|
|
111
|
-
const results = [];
|
|
112
|
-
for (const v of value) {
|
|
113
|
-
let [result, delayed, variables] = postProcessStyleFunction(v);
|
|
114
|
-
shouldDelay ||= delayed;
|
|
115
|
-
usesVariables ||= variables;
|
|
116
|
-
results.push(result);
|
|
117
|
-
}
|
|
118
|
-
return [results, shouldDelay, usesVariables];
|
|
119
|
-
}
|
|
120
|
-
let [newArgs, shouldDelay, usesVariables] = postProcessStyleFunction(value[2]);
|
|
121
|
-
shouldDelay ||= value[3] === 1;
|
|
122
|
-
usesVariables ||= value[1] === "var";
|
|
123
|
-
if (shouldDelay) {
|
|
124
|
-
return [[value[0], value[1], newArgs], true, usesVariables];
|
|
125
|
-
}
|
|
126
|
-
return [value, false, false];
|
|
127
|
-
}
|
|
128
|
-
const addAnimation_V2 = declarations => (addType, property, value) => {
|
|
129
|
-
if (value === undefined) return;
|
|
130
|
-
let forceTuple = false;
|
|
131
|
-
let staticDeclarations;
|
|
132
|
-
switch (addType) {
|
|
133
|
-
case "container":
|
|
134
|
-
return;
|
|
135
|
-
case "animation":
|
|
136
|
-
return;
|
|
137
|
-
case "transition":
|
|
138
|
-
case "style":
|
|
139
|
-
{
|
|
140
|
-
value = value;
|
|
141
|
-
property = (0, _selectors.toRNProperty)(property);
|
|
142
|
-
|
|
143
|
-
// TODO: Support property mapping
|
|
144
|
-
|
|
145
|
-
// Animating variables not currently supported
|
|
146
|
-
if (property.startsWith("--")) {
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
if (Array.isArray(value)) {
|
|
150
|
-
const [strippedValue, delayed] = postProcessStyleFunction(value);
|
|
151
|
-
if (delayed) {
|
|
152
|
-
declarations.push([strippedValue, property, 1]);
|
|
153
|
-
} else {
|
|
154
|
-
declarations.push([strippedValue, property]);
|
|
155
|
-
}
|
|
156
|
-
} else if (forceTuple) {
|
|
157
|
-
declarations.push([value, property]);
|
|
158
|
-
} else {
|
|
159
|
-
if (!staticDeclarations) {
|
|
160
|
-
staticDeclarations = {};
|
|
161
|
-
declarations ??= [];
|
|
162
|
-
declarations.push(staticDeclarations);
|
|
163
|
-
}
|
|
164
|
-
staticDeclarations[property] = value;
|
|
165
|
-
}
|
|
166
|
-
break;
|
|
167
|
-
}
|
|
168
|
-
default:
|
|
169
|
-
{
|
|
170
|
-
addType;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
exports.addAnimation_V2 = addAnimation_V2;
|
|
175
|
-
//# sourceMappingURL=add.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_styleValue","require","_selectors","buildAddFn","rule","collection","mapping","staticDeclarations","add","type","property","value","undefined","forceTuple","c","names","map","name","push","startsWith","toRNProperty","rename","styleFunction","delayed","usesVariables","postProcessStyleFunction","d","a","dv","varUsageCount","has","v","slice","Array","isArray","isStyleDescriptorArray","length","shouldDelay","results","result","variables","newArgs","addAnimation_V2","declarations","addType","strippedValue","exports"],"sourceRoot":"../../../src","sources":["compiler/add.ts"],"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O,CAAC,GAAGE,wBAAwB,CAACd,KAAK,CAAC;UAEhE,IAAIY,OAAO,EAAE;YACXoB,YAAY,CAACzB,IAAI,CAAC,CAAC2B,aAAa,EAAmBnC,QAAQ,EAAE,CAAC,CAAC,CAAC;UAClE,CAAC,MAAM;YACLiC,YAAY,CAACzB,IAAI,CAAC,CAAC2B,aAAa,EAAmBnC,QAAQ,CAAC,CAAC;UAC/D;QACF,CAAC,MAAM,IAAIG,UAAU,EAAE;UACrB8B,YAAY,CAACzB,IAAI,CAAC,CAACP,KAAK,EAAED,QAAQ,CAAC,CAAC;QACtC,CAAC,MAAM;UACL,IAAI,CAACH,kBAAkB,EAAE;YACvBA,kBAAkB,GAAG,CAAC,CAAC;YACvBoC,YAAY,KAAK,EAAE;YACnBA,YAAY,CAACzB,IAAI,CAACX,kBAAkB,CAAC;UACvC;UACAA,kBAAkB,CAACG,QAAQ,CAAC,GAAGC,KAAK;QACtC;QAEA;MACF;IACA;MAAS;QACPiC,OAAO;MACT;EACF;AACF,CAAC;AAACE,OAAA,CAAAJ,eAAA,GAAAA,eAAA","ignoreList":[]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ActivityIndicator = ActivityIndicator;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
var _index = require("../runtime/index.js");
|
|
9
|
-
const mapping = {
|
|
10
|
-
className: {
|
|
11
|
-
target: "style",
|
|
12
|
-
nativeStyleMapping: {
|
|
13
|
-
color: "color"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
function ActivityIndicator(props) {
|
|
18
|
-
return (0, _index.useCssElement)(_reactNative.ActivityIndicator, props, mapping);
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=ActivityIndicator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_index","mapping","className","target","nativeStyleMapping","color","ActivityIndicator","props","useCssElement","RNActivityIndicator"],"sourceRoot":"../../../src","sources":["components/ActivityIndicator.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,OAAwD,GAAG;EAC/DC,SAAS,EAAE;IACTC,MAAM,EAAE,OAAO;IACfC,kBAAkB,EAAE;MAClBC,KAAK,EAAE;IACT;EACF;AACF,CAAC;AAEM,SAASC,iBAAiBA,CAACC,KAA6B,EAAE;EAC/D,OAAO,IAAAC,oBAAa,EAACC,8BAAmB,EAAEF,KAAK,EAAEN,OAAO,CAAC;AAC3D","ignoreList":[]}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.SafeAreaProvider = SafeAreaProvider;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
9
|
-
var _reactivity = require("../../runtime/native/reactivity.js");
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
/* eslint-disable */
|
|
12
|
-
|
|
13
|
-
function SafeAreaProvider({
|
|
14
|
-
children,
|
|
15
|
-
...props
|
|
16
|
-
}) {
|
|
17
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSafeAreaContext.SafeAreaProvider, {
|
|
18
|
-
...props,
|
|
19
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(SafeAreaProviderEnv, {
|
|
20
|
-
children: children
|
|
21
|
-
})
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
function SafeAreaProviderEnv({
|
|
25
|
-
children
|
|
26
|
-
}) {
|
|
27
|
-
const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
|
|
28
|
-
const parentVarContext = (0, _react.useContext)(_reactivity.VariableContext);
|
|
29
|
-
const value = (0, _react.useMemo)(() => ({
|
|
30
|
-
...parentVarContext,
|
|
31
|
-
"--react-native-css-safe-area-inset-bottom": insets.bottom,
|
|
32
|
-
"--react-native-css-safe-area-inset-left": insets.left,
|
|
33
|
-
"--react-native-css-safe-area-inset-right": insets.right,
|
|
34
|
-
"--react-native-css-safe-area-inset-top": insets.top
|
|
35
|
-
}), [parentVarContext, insets]);
|
|
36
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactivity.VariableContext.Provider, {
|
|
37
|
-
value: value,
|
|
38
|
-
children: children
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeSafeAreaContext","_reactivity","_jsxRuntime","SafeAreaProvider","children","props","jsx","SafeAreaProviderEnv","insets","useSafeAreaInsets","parentVarContext","useContext","VariableContext","value","useMemo","bottom","left","right","top","Provider"],"sourceRoot":"../../../../src","sources":["components/SafeAreaProvider/index.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAOA,IAAAC,2BAAA,GAAAD,OAAA;AAKA,IAAAE,WAAA,GAAAF,OAAA;AAGyC,IAAAG,WAAA,GAAAH,OAAA;AAhBzC;;AAkBO,SAASI,gBAAgBA,CAAC;EAC/BC,QAAQ;EACR,GAAGC;AACsC,CAAC,EAAE;EAC5C,oBACE,IAAAH,WAAA,CAAAI,GAAA,EAACN,2BAAA,CAAAG,gBAAkB;IAAA,GAAKE,KAAK;IAAAD,QAAA,eAC3B,IAAAF,WAAA,CAAAI,GAAA,EAACC,mBAAmB;MAAAH,QAAA,EAAEA;IAAQ,CAAsB;EAAC,CACnC,CAAC;AAEzB;AAEA,SAASG,mBAAmBA,CAAC;EAAEH;AAAqC,CAAC,EAAE;EACrE,MAAMI,MAAM,GAAG,IAAAC,6CAAiB,EAAC,CAAC;EAClC,MAAMC,gBAAgB,GAAG,IAAAC,iBAAU,EAACC,2BAAe,CAAC;EAEpD,MAAMC,KAAK,GAAG,IAAAC,cAAO,EACnB,OAAO;IACL,GAAGJ,gBAAgB;IACnB,2CAA2C,EAAEF,MAAM,CAACO,MAAM;IAC1D,yCAAyC,EAAEP,MAAM,CAACQ,IAAI;IACtD,0CAA0C,EAAER,MAAM,CAACS,KAAK;IACxD,wCAAwC,EAAET,MAAM,CAACU;EACnD,CAAC,CAAC,EACF,CAACR,gBAAgB,EAAEF,MAAM,CAC3B,CAAC;EAED,oBACE,IAAAN,WAAA,CAAAI,GAAA,EAACL,WAAA,CAAAW,eAAe,CAACO,QAAQ;IAACN,KAAK,EAAEA,KAAM;IAAAT,QAAA,EACpCA;EAAQ,CACe,CAAC;AAE/B","ignoreList":[]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "SafeAreaProvider", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _reactNativeSafeAreaContext.SafeAreaProvider;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
13
|
-
//# sourceMappingURL=index.web.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeSafeAreaContext","require"],"sourceRoot":"../../../../src","sources":["components/SafeAreaProvider/index.web.tsx"],"mappings":";;;;;;;;;;;AAAA,IAAAA,2BAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.TextInput = TextInput;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
var _index = require("../runtime/index.js");
|
|
9
|
-
const mapping = {
|
|
10
|
-
className: {
|
|
11
|
-
target: "style",
|
|
12
|
-
nativeStyleMapping: {
|
|
13
|
-
selectionColor: "selectionColor"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
function TextInput(props) {
|
|
18
|
-
return (0, _index.useCssElement)(_reactNative.TextInput, props, mapping);
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=TextInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_index","mapping","className","target","nativeStyleMapping","selectionColor","TextInput","props","useCssElement","RNTextInput"],"sourceRoot":"../../../src","sources":["components/TextInput.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAMA,MAAME,OAAO,GAAG;EACdC,SAAS,EAAE;IACTC,MAAM,EAAE,OAAO;IACfC,kBAAkB,EAAE;MAClBC,cAAc,EAAE;IAClB;EACF;AACF,CAAmD;AAE5C,SAASC,SAASA,CAACC,KAAkD,EAAE;EAC5E,OAAO,IAAAC,oBAAa,EAACC,sBAAW,EAAEF,KAAK,EAAEN,OAAO,CAAC;AACnD","ignoreList":[]}
|