react-native-css 3.0.0-nightly.4723140 → 3.0.0-nightly.61014be
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 +1233 -988
- 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 +2 -18
- 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 +1172 -992
- 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 +3 -3
- 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 +2 -3
- 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 +2 -3
- 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 +67 -13
- 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 +1789 -1971
- 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 +6 -5
- 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,168 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
import { isStyleDescriptorArray } from "../runtime/utils/style-value.js";
|
|
5
|
-
import { toRNProperty } from "./selectors.js";
|
|
6
|
-
export function buildAddFn(rule, collection, mapping) {
|
|
7
|
-
let staticDeclarations;
|
|
8
|
-
function add(type, property, value) {
|
|
9
|
-
if (value === undefined) {
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
let forceTuple = false;
|
|
13
|
-
switch (type) {
|
|
14
|
-
case "container":
|
|
15
|
-
{
|
|
16
|
-
rule.c ??= [];
|
|
17
|
-
const names = value.map(name => `c:${name}`);
|
|
18
|
-
rule.c.push(...names);
|
|
19
|
-
break;
|
|
20
|
-
}
|
|
21
|
-
case "animation":
|
|
22
|
-
{
|
|
23
|
-
value = value;
|
|
24
|
-
if (value === undefined) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// We cannot animate variables
|
|
29
|
-
if (property.startsWith("--")) {
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
property = toRNProperty(property);
|
|
33
|
-
const rename = mapping[property] ?? mapping["*"];
|
|
34
|
-
const [styleFunction, delayed, usesVariables] = postProcessStyleFunction(value);
|
|
35
|
-
rule.d ??= [];
|
|
36
|
-
rule.a = true;
|
|
37
|
-
if (delayed) {
|
|
38
|
-
rule.d.push([styleFunction, rename || property, 1]);
|
|
39
|
-
} else {
|
|
40
|
-
rule.d.push([styleFunction, rename || property]);
|
|
41
|
-
}
|
|
42
|
-
if (usesVariables) {
|
|
43
|
-
rule.dv = 1;
|
|
44
|
-
}
|
|
45
|
-
break;
|
|
46
|
-
}
|
|
47
|
-
// @ts-ignore
|
|
48
|
-
case "transition":
|
|
49
|
-
{
|
|
50
|
-
rule.a = true;
|
|
51
|
-
}
|
|
52
|
-
case "style":
|
|
53
|
-
{
|
|
54
|
-
value = value;
|
|
55
|
-
if (value === undefined) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
if (property.startsWith("--")) {
|
|
59
|
-
if (!property.startsWith("--__rn-css") && !collection.varUsageCount.has(property)) {
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
rule.v ??= [];
|
|
63
|
-
rule.v.push([property.slice(2), value]);
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
property = toRNProperty(property);
|
|
67
|
-
const rename = mapping[property] ?? mapping["*"];
|
|
68
|
-
if (Array.isArray(value) && !isStyleDescriptorArray(value)) {
|
|
69
|
-
rule.d ??= [];
|
|
70
|
-
const [styleFunction, delayed, usesVariables] = postProcessStyleFunction(value);
|
|
71
|
-
if (delayed) {
|
|
72
|
-
rule.d.push([styleFunction, rename || property, 1]);
|
|
73
|
-
} else {
|
|
74
|
-
rule.d.push([styleFunction, rename || property]);
|
|
75
|
-
}
|
|
76
|
-
if (usesVariables) {
|
|
77
|
-
rule.dv = 1;
|
|
78
|
-
}
|
|
79
|
-
} else if (forceTuple || rename && (rename.length > 1 || !rename[0].startsWith("^"))) {
|
|
80
|
-
rule.d ??= [];
|
|
81
|
-
rule.d.push([value, rename || property]);
|
|
82
|
-
} else {
|
|
83
|
-
if (rename) {
|
|
84
|
-
property = rename[0].slice(1);
|
|
85
|
-
}
|
|
86
|
-
if (!staticDeclarations) {
|
|
87
|
-
staticDeclarations = {};
|
|
88
|
-
rule.d ??= [];
|
|
89
|
-
rule.d.push(staticDeclarations);
|
|
90
|
-
}
|
|
91
|
-
staticDeclarations[property] = value;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
return add;
|
|
97
|
-
}
|
|
98
|
-
function postProcessStyleFunction(value) {
|
|
99
|
-
if (!Array.isArray(value)) {
|
|
100
|
-
return [value, false, false];
|
|
101
|
-
}
|
|
102
|
-
if (isStyleDescriptorArray(value)) {
|
|
103
|
-
let shouldDelay = false;
|
|
104
|
-
let usesVariables = false;
|
|
105
|
-
const results = [];
|
|
106
|
-
for (const v of value) {
|
|
107
|
-
let [result, delayed, variables] = postProcessStyleFunction(v);
|
|
108
|
-
shouldDelay ||= delayed;
|
|
109
|
-
usesVariables ||= variables;
|
|
110
|
-
results.push(result);
|
|
111
|
-
}
|
|
112
|
-
return [results, shouldDelay, usesVariables];
|
|
113
|
-
}
|
|
114
|
-
let [newArgs, shouldDelay, usesVariables] = postProcessStyleFunction(value[2]);
|
|
115
|
-
shouldDelay ||= value[3] === 1;
|
|
116
|
-
usesVariables ||= value[1] === "var";
|
|
117
|
-
if (shouldDelay) {
|
|
118
|
-
return [[value[0], value[1], newArgs], true, usesVariables];
|
|
119
|
-
}
|
|
120
|
-
return [value, false, false];
|
|
121
|
-
}
|
|
122
|
-
export const addAnimation_V2 = declarations => (addType, property, value) => {
|
|
123
|
-
if (value === undefined) return;
|
|
124
|
-
let forceTuple = false;
|
|
125
|
-
let staticDeclarations;
|
|
126
|
-
switch (addType) {
|
|
127
|
-
case "container":
|
|
128
|
-
return;
|
|
129
|
-
case "animation":
|
|
130
|
-
return;
|
|
131
|
-
case "transition":
|
|
132
|
-
case "style":
|
|
133
|
-
{
|
|
134
|
-
value = value;
|
|
135
|
-
property = toRNProperty(property);
|
|
136
|
-
|
|
137
|
-
// TODO: Support property mapping
|
|
138
|
-
|
|
139
|
-
// Animating variables not currently supported
|
|
140
|
-
if (property.startsWith("--")) {
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
if (Array.isArray(value)) {
|
|
144
|
-
const [strippedValue, delayed] = postProcessStyleFunction(value);
|
|
145
|
-
if (delayed) {
|
|
146
|
-
declarations.push([strippedValue, property, 1]);
|
|
147
|
-
} else {
|
|
148
|
-
declarations.push([strippedValue, property]);
|
|
149
|
-
}
|
|
150
|
-
} else if (forceTuple) {
|
|
151
|
-
declarations.push([value, property]);
|
|
152
|
-
} else {
|
|
153
|
-
if (!staticDeclarations) {
|
|
154
|
-
staticDeclarations = {};
|
|
155
|
-
declarations ??= [];
|
|
156
|
-
declarations.push(staticDeclarations);
|
|
157
|
-
}
|
|
158
|
-
staticDeclarations[property] = value;
|
|
159
|
-
}
|
|
160
|
-
break;
|
|
161
|
-
}
|
|
162
|
-
default:
|
|
163
|
-
{
|
|
164
|
-
addType;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
};
|
|
168
|
-
//# sourceMappingURL=add.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["isStyleDescriptorArray","toRNProperty","buildAddFn","rule","collection","mapping","staticDeclarations","add","type","property","value","undefined","forceTuple","c","names","map","name","push","startsWith","rename","styleFunction","delayed","usesVariables","postProcessStyleFunction","d","a","dv","varUsageCount","has","v","slice","Array","isArray","length","shouldDelay","results","result","variables","newArgs","addAnimation_V2","declarations","addType","strippedValue"],"sourceRoot":"../../../src","sources":["compiler/add.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { ActivityIndicator as RNActivityIndicator } from "react-native";
|
|
4
|
-
import { useCssElement } from "../runtime/index.js";
|
|
5
|
-
const mapping = {
|
|
6
|
-
className: {
|
|
7
|
-
target: "style",
|
|
8
|
-
nativeStyleMapping: {
|
|
9
|
-
color: "color"
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
export function ActivityIndicator(props) {
|
|
14
|
-
return useCssElement(RNActivityIndicator, props, mapping);
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=ActivityIndicator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ActivityIndicator","RNActivityIndicator","useCssElement","mapping","className","target","nativeStyleMapping","color","props"],"sourceRoot":"../../../src","sources":["components/ActivityIndicator.tsx"],"mappings":";;AAAA,SACEA,iBAAiB,IAAIC,mBAAmB,QAEnC,cAAc;AAErB,SAASC,aAAa,QAAkC,qBAAY;AAEpE,MAAMC,OAAwD,GAAG;EAC/DC,SAAS,EAAE;IACTC,MAAM,EAAE,OAAO;IACfC,kBAAkB,EAAE;MAClBC,KAAK,EAAE;IACT;EACF;AACF,CAAC;AAED,OAAO,SAASP,iBAAiBA,CAACQ,KAA6B,EAAE;EAC/D,OAAON,aAAa,CAACD,mBAAmB,EAAEO,KAAK,EAAEL,OAAO,CAAC;AAC3D","ignoreList":[]}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
import { useContext, useMemo } from "react";
|
|
5
|
-
import { SafeAreaProvider as RNSafeAreaProvider, useSafeAreaInsets } from "react-native-safe-area-context";
|
|
6
|
-
import { VariableContext } from "../../runtime/native/reactivity.js";
|
|
7
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
export function SafeAreaProvider({
|
|
9
|
-
children,
|
|
10
|
-
...props
|
|
11
|
-
}) {
|
|
12
|
-
return /*#__PURE__*/_jsx(RNSafeAreaProvider, {
|
|
13
|
-
...props,
|
|
14
|
-
children: /*#__PURE__*/_jsx(SafeAreaProviderEnv, {
|
|
15
|
-
children: children
|
|
16
|
-
})
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
function SafeAreaProviderEnv({
|
|
20
|
-
children
|
|
21
|
-
}) {
|
|
22
|
-
const insets = useSafeAreaInsets();
|
|
23
|
-
const parentVarContext = useContext(VariableContext);
|
|
24
|
-
const value = useMemo(() => ({
|
|
25
|
-
...parentVarContext,
|
|
26
|
-
"--react-native-css-safe-area-inset-bottom": insets.bottom,
|
|
27
|
-
"--react-native-css-safe-area-inset-left": insets.left,
|
|
28
|
-
"--react-native-css-safe-area-inset-right": insets.right,
|
|
29
|
-
"--react-native-css-safe-area-inset-top": insets.top
|
|
30
|
-
}), [parentVarContext, insets]);
|
|
31
|
-
return /*#__PURE__*/_jsx(VariableContext.Provider, {
|
|
32
|
-
value: value,
|
|
33
|
-
children: children
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useContext","useMemo","SafeAreaProvider","RNSafeAreaProvider","useSafeAreaInsets","VariableContext","jsx","_jsx","children","props","SafeAreaProviderEnv","insets","parentVarContext","value","bottom","left","right","top","Provider"],"sourceRoot":"../../../../src","sources":["components/SafeAreaProvider/index.tsx"],"mappings":";;AAAA;AACA,SACEA,UAAU,EACVC,OAAO,QAGF,OAAO;AAEd,SACEC,gBAAgB,IAAIC,kBAAkB,EACtCC,iBAAiB,QACZ,gCAAgC;AAEvC,SACEC,eAAe,QAEV,oCAAiC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEzC,OAAO,SAASL,gBAAgBA,CAAC;EAC/BM,QAAQ;EACR,GAAGC;AACsC,CAAC,EAAE;EAC5C,oBACEF,IAAA,CAACJ,kBAAkB;IAAA,GAAKM,KAAK;IAAAD,QAAA,eAC3BD,IAAA,CAACG,mBAAmB;MAAAF,QAAA,EAAEA;IAAQ,CAAsB;EAAC,CACnC,CAAC;AAEzB;AAEA,SAASE,mBAAmBA,CAAC;EAAEF;AAAqC,CAAC,EAAE;EACrE,MAAMG,MAAM,GAAGP,iBAAiB,CAAC,CAAC;EAClC,MAAMQ,gBAAgB,GAAGZ,UAAU,CAACK,eAAe,CAAC;EAEpD,MAAMQ,KAAK,GAAGZ,OAAO,CACnB,OAAO;IACL,GAAGW,gBAAgB;IACnB,2CAA2C,EAAED,MAAM,CAACG,MAAM;IAC1D,yCAAyC,EAAEH,MAAM,CAACI,IAAI;IACtD,0CAA0C,EAAEJ,MAAM,CAACK,KAAK;IACxD,wCAAwC,EAAEL,MAAM,CAACM;EACnD,CAAC,CAAC,EACF,CAACL,gBAAgB,EAAED,MAAM,CAC3B,CAAC;EAED,oBACEJ,IAAA,CAACF,eAAe,CAACa,QAAQ;IAACL,KAAK,EAAEA,KAAM;IAAAL,QAAA,EACpCA;EAAQ,CACe,CAAC;AAE/B","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["SafeAreaProvider"],"sourceRoot":"../../../../src","sources":["components/SafeAreaProvider/index.web.tsx"],"mappings":";;AAAA,SAASA,gBAAgB,QAAQ,gCAAgC","ignoreList":[]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { TextInput as RNTextInput } from "react-native";
|
|
4
|
-
import { useCssElement } from "../runtime/index.js";
|
|
5
|
-
const mapping = {
|
|
6
|
-
className: {
|
|
7
|
-
target: "style",
|
|
8
|
-
nativeStyleMapping: {
|
|
9
|
-
selectionColor: "selectionColor"
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
export function TextInput(props) {
|
|
14
|
-
return useCssElement(RNTextInput, props, mapping);
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=TextInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["TextInput","RNTextInput","useCssElement","mapping","className","target","nativeStyleMapping","selectionColor","props"],"sourceRoot":"../../../src","sources":["components/TextInput.tsx"],"mappings":";;AAAA,SAASA,SAAS,IAAIC,WAAW,QAA6B,cAAc;AAE5E,SACEC,aAAa,QAGR,qBAAY;AAEnB,MAAMC,OAAO,GAAG;EACdC,SAAS,EAAE;IACTC,MAAM,EAAE,OAAO;IACfC,kBAAkB,EAAE;MAClBC,cAAc,EAAE;IAClB;EACF;AACF,CAAmD;AAEnD,OAAO,SAASP,SAASA,CAACQ,KAAkD,EAAE;EAC5E,OAAON,aAAa,CAACD,WAAW,EAAEO,KAAK,EAAEL,OAAO,CAAC;AACnD","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { CompilerCollection, StyleDeclaration, StyleDescriptor, StyleRule, StyleRuleMapping } from "./compiler.types";
|
|
2
|
-
export type AddFn = ReturnType<typeof buildAddFn>;
|
|
3
|
-
export declare function buildAddFn(rule: StyleRule, collection: CompilerCollection, mapping: StyleRuleMapping): {
|
|
4
|
-
(type: "container", property: "container-name", value: string[] | false): void;
|
|
5
|
-
(type: "transition", property: string, value: StyleDescriptor): void;
|
|
6
|
-
(type: "style", property: string, value: StyleDescriptor): void;
|
|
7
|
-
(type: "animation", property: string, value: StyleDescriptor): void;
|
|
8
|
-
};
|
|
9
|
-
export declare const addAnimation_V2: (declarations: StyleDeclaration[]) => AddFn;
|
|
10
|
-
//# sourceMappingURL=add.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/add.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,kBAAkB,EAElB,gBAAgB,EAChB,eAAe,EAEf,SAAS,EACT,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAG1B,MAAM,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAElD,wBAAgB,UAAU,CACxB,IAAI,EAAE,SAAS,EACf,UAAU,EAAE,kBAAkB,EAC9B,OAAO,EAAE,gBAAgB;WAKjB,WAAW,YACP,gBAAgB,SACnB,MAAM,EAAE,GAAG,KAAK,GACtB,IAAI;WAEC,YAAY,YACR,MAAM,SACT,eAAe,GACrB,IAAI;WACY,OAAO,YAAY,MAAM,SAAS,eAAe,GAAG,IAAI;WAEnE,WAAW,YACP,MAAM,SACT,eAAe,GACrB,IAAI;EAwHR;AAgDD,eAAO,MAAM,eAAe,GACzB,cAAc,gBAAgB,EAAE,KAAG,KAkDnC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ActivityIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/components/ActivityIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,cAAc,CAAC;AAatB,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,0FAE9D"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type ComponentProps } from "react";
|
|
2
|
-
import { SafeAreaProvider as RNSafeAreaProvider } from "react-native-safe-area-context";
|
|
3
|
-
export declare function SafeAreaProvider({ children, ...props }: ComponentProps<typeof RNSafeAreaProvider>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SafeAreaProvider/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,cAAc,EAEpB,MAAM,OAAO,CAAC;AAEf,OAAO,EACL,gBAAgB,IAAI,kBAAkB,EAEvC,MAAM,gCAAgC,CAAC;AAOxC,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,kBAAkB,CAAC,2CAM3C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SafeAreaProvider/index.web.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type TextInputProps } from "react-native";
|
|
2
|
-
import { type StyledProps } from "../runtime";
|
|
3
|
-
declare const mapping: {
|
|
4
|
-
className: {
|
|
5
|
-
target: "style";
|
|
6
|
-
nativeStyleMapping: {
|
|
7
|
-
selectionColor: "selectionColor";
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export declare function TextInput(props: StyledProps<TextInputProps, typeof mapping>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=TextInput.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAE7E,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,YAAY,CAAC;AAEpB,QAAA,MAAM,OAAO;;;;;;;CAOsC,CAAC;AAEpD,wBAAgB,SAAS,CAAC,KAAK,EAAE,WAAW,CAAC,cAAc,EAAE,OAAO,OAAO,CAAC,0FAE3E"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { CompilerCollection, StyleDeclaration, StyleDescriptor, StyleRule, StyleRuleMapping } from "./compiler.types";
|
|
2
|
-
export type AddFn = ReturnType<typeof buildAddFn>;
|
|
3
|
-
export declare function buildAddFn(rule: StyleRule, collection: CompilerCollection, mapping: StyleRuleMapping): {
|
|
4
|
-
(type: "container", property: "container-name", value: string[] | false): void;
|
|
5
|
-
(type: "transition", property: string, value: StyleDescriptor): void;
|
|
6
|
-
(type: "style", property: string, value: StyleDescriptor): void;
|
|
7
|
-
(type: "animation", property: string, value: StyleDescriptor): void;
|
|
8
|
-
};
|
|
9
|
-
export declare const addAnimation_V2: (declarations: StyleDeclaration[]) => AddFn;
|
|
10
|
-
//# sourceMappingURL=add.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/add.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,kBAAkB,EAElB,gBAAgB,EAChB,eAAe,EAEf,SAAS,EACT,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAG1B,MAAM,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAElD,wBAAgB,UAAU,CACxB,IAAI,EAAE,SAAS,EACf,UAAU,EAAE,kBAAkB,EAC9B,OAAO,EAAE,gBAAgB;WAKjB,WAAW,YACP,gBAAgB,SACnB,MAAM,EAAE,GAAG,KAAK,GACtB,IAAI;WAEC,YAAY,YACR,MAAM,SACT,eAAe,GACrB,IAAI;WACY,OAAO,YAAY,MAAM,SAAS,eAAe,GAAG,IAAI;WAEnE,WAAW,YACP,MAAM,SACT,eAAe,GACrB,IAAI;EAwHR;AAgDD,eAAO,MAAM,eAAe,GACzB,cAAc,gBAAgB,EAAE,KAAG,KAkDnC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ActivityIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/components/ActivityIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,cAAc,CAAC;AAatB,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,0FAE9D"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type ComponentProps } from "react";
|
|
2
|
-
import { SafeAreaProvider as RNSafeAreaProvider } from "react-native-safe-area-context";
|
|
3
|
-
export declare function SafeAreaProvider({ children, ...props }: ComponentProps<typeof RNSafeAreaProvider>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SafeAreaProvider/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,cAAc,EAEpB,MAAM,OAAO,CAAC;AAEf,OAAO,EACL,gBAAgB,IAAI,kBAAkB,EAEvC,MAAM,gCAAgC,CAAC;AAOxC,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,kBAAkB,CAAC,2CAM3C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SafeAreaProvider/index.web.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type TextInputProps } from "react-native";
|
|
2
|
-
import { type StyledProps } from "../runtime";
|
|
3
|
-
declare const mapping: {
|
|
4
|
-
className: {
|
|
5
|
-
target: "style";
|
|
6
|
-
nativeStyleMapping: {
|
|
7
|
-
selectionColor: "selectionColor";
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export declare function TextInput(props: StyledProps<TextInputProps, typeof mapping>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=TextInput.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAE7E,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,YAAY,CAAC;AAEpB,QAAA,MAAM,OAAO;;;;;;;CAOsC,CAAC;AAEpD,wBAAgB,SAAS,CAAC,KAAK,EAAE,WAAW,CAAC,cAAc,EAAE,OAAO,OAAO,CAAC,0FAE3E"}
|
package/src/compiler/add.ts
DELETED
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import { isStyleDescriptorArray } from "../runtime/utils/style-value";
|
|
3
|
-
import type {
|
|
4
|
-
CompilerCollection,
|
|
5
|
-
EasingFunction,
|
|
6
|
-
StyleDeclaration,
|
|
7
|
-
StyleDescriptor,
|
|
8
|
-
StyleFunction,
|
|
9
|
-
StyleRule,
|
|
10
|
-
StyleRuleMapping,
|
|
11
|
-
} from "./compiler.types";
|
|
12
|
-
import { toRNProperty } from "./selectors";
|
|
13
|
-
|
|
14
|
-
export type AddFn = ReturnType<typeof buildAddFn>;
|
|
15
|
-
|
|
16
|
-
export function buildAddFn(
|
|
17
|
-
rule: StyleRule,
|
|
18
|
-
collection: CompilerCollection,
|
|
19
|
-
mapping: StyleRuleMapping,
|
|
20
|
-
) {
|
|
21
|
-
let staticDeclarations: Record<string, StyleDescriptor> | undefined;
|
|
22
|
-
|
|
23
|
-
function add(
|
|
24
|
-
type: "container",
|
|
25
|
-
property: "container-name",
|
|
26
|
-
value: string[] | false,
|
|
27
|
-
): void;
|
|
28
|
-
function add(
|
|
29
|
-
type: "transition",
|
|
30
|
-
property: string,
|
|
31
|
-
value: StyleDescriptor,
|
|
32
|
-
): void;
|
|
33
|
-
function add(type: "style", property: string, value: StyleDescriptor): void;
|
|
34
|
-
function add(
|
|
35
|
-
type: "animation",
|
|
36
|
-
property: string,
|
|
37
|
-
value: StyleDescriptor,
|
|
38
|
-
): void;
|
|
39
|
-
function add(
|
|
40
|
-
type: string,
|
|
41
|
-
property: string,
|
|
42
|
-
value: StyleDescriptor | EasingFunction[],
|
|
43
|
-
) {
|
|
44
|
-
if (value === undefined) {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
let forceTuple = false;
|
|
49
|
-
|
|
50
|
-
switch (type) {
|
|
51
|
-
case "container": {
|
|
52
|
-
rule.c ??= [];
|
|
53
|
-
const names = (value as string[]).map((name) => `c:${name}`);
|
|
54
|
-
rule.c.push(...names);
|
|
55
|
-
break;
|
|
56
|
-
}
|
|
57
|
-
case "animation": {
|
|
58
|
-
value = value as StyleDescriptor;
|
|
59
|
-
|
|
60
|
-
if (value === undefined) {
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// We cannot animate variables
|
|
65
|
-
if (property.startsWith("--")) {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
property = toRNProperty(property);
|
|
70
|
-
const rename = mapping[property] ?? mapping["*"];
|
|
71
|
-
|
|
72
|
-
const [styleFunction, delayed, usesVariables] =
|
|
73
|
-
postProcessStyleFunction(value);
|
|
74
|
-
|
|
75
|
-
rule.d ??= [];
|
|
76
|
-
rule.a = true;
|
|
77
|
-
|
|
78
|
-
if (delayed) {
|
|
79
|
-
rule.d.push([styleFunction as StyleFunction, rename || property, 1]);
|
|
80
|
-
} else {
|
|
81
|
-
rule.d.push([styleFunction as StyleFunction, rename || property]);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
if (usesVariables) {
|
|
85
|
-
rule.dv = 1;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
break;
|
|
89
|
-
}
|
|
90
|
-
// @ts-ignore
|
|
91
|
-
case "transition": {
|
|
92
|
-
rule.a = true;
|
|
93
|
-
}
|
|
94
|
-
case "style": {
|
|
95
|
-
value = value as StyleDescriptor;
|
|
96
|
-
|
|
97
|
-
if (value === undefined) {
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
if (property.startsWith("--")) {
|
|
102
|
-
if (
|
|
103
|
-
!property.startsWith("--__rn-css") &&
|
|
104
|
-
!collection.varUsageCount.has(property)
|
|
105
|
-
) {
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
rule.v ??= [];
|
|
109
|
-
rule.v.push([property.slice(2), value]);
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
property = toRNProperty(property);
|
|
114
|
-
|
|
115
|
-
const rename = mapping[property] ?? mapping["*"];
|
|
116
|
-
|
|
117
|
-
if (Array.isArray(value) && !isStyleDescriptorArray(value)) {
|
|
118
|
-
rule.d ??= [];
|
|
119
|
-
const [styleFunction, delayed, usesVariables] =
|
|
120
|
-
postProcessStyleFunction(value);
|
|
121
|
-
|
|
122
|
-
if (delayed) {
|
|
123
|
-
rule.d.push([
|
|
124
|
-
styleFunction as StyleFunction,
|
|
125
|
-
rename || property,
|
|
126
|
-
1,
|
|
127
|
-
]);
|
|
128
|
-
} else {
|
|
129
|
-
rule.d.push([styleFunction as StyleFunction, rename || property]);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
if (usesVariables) {
|
|
133
|
-
rule.dv = 1;
|
|
134
|
-
}
|
|
135
|
-
} else if (
|
|
136
|
-
forceTuple ||
|
|
137
|
-
(rename && (rename.length > 1 || !rename[0]!.startsWith("^")))
|
|
138
|
-
) {
|
|
139
|
-
rule.d ??= [];
|
|
140
|
-
rule.d.push([value, rename || property]);
|
|
141
|
-
} else {
|
|
142
|
-
if (rename) {
|
|
143
|
-
property = rename[0]!.slice(1);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
if (!staticDeclarations) {
|
|
147
|
-
staticDeclarations = {};
|
|
148
|
-
rule.d ??= [];
|
|
149
|
-
rule.d.push(staticDeclarations);
|
|
150
|
-
}
|
|
151
|
-
staticDeclarations[property] = value;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
return add;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
function postProcessStyleFunction(value: StyleDescriptor): [
|
|
161
|
-
// Function
|
|
162
|
-
StyleDescriptor,
|
|
163
|
-
// Should it be delayed
|
|
164
|
-
boolean,
|
|
165
|
-
// Does it use variables
|
|
166
|
-
boolean,
|
|
167
|
-
] {
|
|
168
|
-
if (!Array.isArray(value)) {
|
|
169
|
-
return [value, false, false];
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
if (isStyleDescriptorArray(value)) {
|
|
173
|
-
let shouldDelay = false;
|
|
174
|
-
let usesVariables = false;
|
|
175
|
-
const results: StyleDescriptor[] = [];
|
|
176
|
-
|
|
177
|
-
for (const v of value) {
|
|
178
|
-
let [result, delayed, variables] = postProcessStyleFunction(v);
|
|
179
|
-
|
|
180
|
-
shouldDelay ||= delayed;
|
|
181
|
-
usesVariables ||= variables;
|
|
182
|
-
results.push(result);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
return [results, shouldDelay, usesVariables];
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
let [newArgs, shouldDelay, usesVariables] = postProcessStyleFunction(
|
|
189
|
-
value[2],
|
|
190
|
-
);
|
|
191
|
-
|
|
192
|
-
shouldDelay ||= value[3] === 1;
|
|
193
|
-
usesVariables ||= value[1] === "var";
|
|
194
|
-
|
|
195
|
-
if (shouldDelay) {
|
|
196
|
-
return [
|
|
197
|
-
[value[0], value[1], newArgs as StyleDescriptor[]],
|
|
198
|
-
true,
|
|
199
|
-
usesVariables,
|
|
200
|
-
];
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
return [value, false, false];
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export const addAnimation_V2 =
|
|
207
|
-
(declarations: StyleDeclaration[]): AddFn =>
|
|
208
|
-
(addType, property, value) => {
|
|
209
|
-
if (value === undefined) return;
|
|
210
|
-
|
|
211
|
-
let forceTuple = false;
|
|
212
|
-
let staticDeclarations: Record<string, StyleDescriptor> | undefined;
|
|
213
|
-
|
|
214
|
-
switch (addType) {
|
|
215
|
-
case "container":
|
|
216
|
-
return;
|
|
217
|
-
case "animation":
|
|
218
|
-
return;
|
|
219
|
-
case "transition":
|
|
220
|
-
case "style": {
|
|
221
|
-
value = value as StyleDescriptor;
|
|
222
|
-
|
|
223
|
-
property = toRNProperty(property);
|
|
224
|
-
|
|
225
|
-
// TODO: Support property mapping
|
|
226
|
-
|
|
227
|
-
// Animating variables not currently supported
|
|
228
|
-
if (property.startsWith("--")) {
|
|
229
|
-
return;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
if (Array.isArray(value)) {
|
|
233
|
-
const [strippedValue, delayed] = postProcessStyleFunction(value);
|
|
234
|
-
|
|
235
|
-
if (delayed) {
|
|
236
|
-
declarations.push([strippedValue as StyleFunction, property, 1]);
|
|
237
|
-
} else {
|
|
238
|
-
declarations.push([strippedValue as StyleFunction, property]);
|
|
239
|
-
}
|
|
240
|
-
} else if (forceTuple) {
|
|
241
|
-
declarations.push([value, property]);
|
|
242
|
-
} else {
|
|
243
|
-
if (!staticDeclarations) {
|
|
244
|
-
staticDeclarations = {};
|
|
245
|
-
declarations ??= [];
|
|
246
|
-
declarations.push(staticDeclarations);
|
|
247
|
-
}
|
|
248
|
-
staticDeclarations[property] = value;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
break;
|
|
252
|
-
}
|
|
253
|
-
default: {
|
|
254
|
-
addType satisfies never;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
};
|