react-native-css 2.1.1 → 3.0.0-nightly.27bd5e2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{LICENSE.md → LICENSE} +6 -8
- package/README.md +177 -70
- package/dist/commonjs/babel/allowedModules.js +23 -0
- package/dist/commonjs/babel/allowedModules.js.map +1 -0
- package/dist/commonjs/babel/helpers.js +25 -0
- package/dist/commonjs/babel/helpers.js.map +1 -0
- package/dist/commonjs/babel/import-plugin.js +101 -0
- package/dist/commonjs/babel/import-plugin.js.map +1 -0
- package/dist/commonjs/babel/index.js +9 -0
- package/dist/commonjs/babel/index.js.map +1 -0
- package/dist/commonjs/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 +235 -0
- package/dist/commonjs/compiler/compiler.js.map +1 -0
- package/dist/commonjs/compiler/compiler.types.js +4 -0
- package/dist/commonjs/compiler/compiler.types.js.map +1 -0
- package/dist/commonjs/compiler/container-query.js +63 -0
- package/dist/commonjs/compiler/container-query.js.map +1 -0
- package/dist/commonjs/compiler/declarations.js +2088 -0
- package/dist/commonjs/compiler/declarations.js.map +1 -0
- package/dist/commonjs/compiler/functions-web.js +44 -0
- package/dist/commonjs/compiler/functions-web.js.map +1 -0
- package/dist/commonjs/compiler/functions.js +59 -0
- package/dist/commonjs/compiler/functions.js.map +1 -0
- package/dist/commonjs/compiler/index.js +17 -0
- package/dist/commonjs/compiler/index.js.map +1 -0
- package/dist/commonjs/compiler/inheritance.test.js +78 -0
- package/dist/commonjs/compiler/inheritance.test.js.map +1 -0
- package/dist/commonjs/compiler/keyframes.js +60 -0
- package/dist/commonjs/compiler/keyframes.js.map +1 -0
- package/dist/commonjs/compiler/media-query.js +172 -0
- package/dist/commonjs/compiler/media-query.js.map +1 -0
- package/dist/commonjs/compiler/selectors.js +410 -0
- package/dist/commonjs/compiler/selectors.js.map +1 -0
- 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 +374 -0
- package/dist/commonjs/compiler/stylesheet.js.map +1 -0
- package/dist/commonjs/components/Text.js +17 -0
- package/dist/commonjs/components/Text.js.map +1 -0
- package/dist/commonjs/components/View.js +17 -0
- package/dist/commonjs/components/View.js.map +1 -0
- package/dist/commonjs/components/index.js +36 -0
- package/dist/commonjs/components/index.js.map +1 -0
- package/dist/commonjs/doctor/index.js +6 -0
- package/dist/commonjs/doctor/index.js.map +1 -0
- package/dist/commonjs/index.js +28 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/jest/expect.d.js +2 -0
- package/dist/commonjs/jest/expect.d.js.map +1 -0
- package/dist/commonjs/jest/index.js +50 -0
- package/dist/commonjs/jest/index.js.map +1 -0
- package/dist/commonjs/jest/setup.js +3 -0
- package/dist/commonjs/jest/setup.js.map +1 -0
- package/dist/commonjs/jest/setupAfterEnv.js +15 -0
- package/dist/commonjs/jest/setupAfterEnv.js.map +1 -0
- package/dist/commonjs/metro/index.js +165 -0
- package/dist/commonjs/metro/index.js.map +1 -0
- package/dist/commonjs/metro/injection-code.js +32 -0
- package/dist/commonjs/metro/injection-code.js.map +1 -0
- package/dist/commonjs/metro/metro-transformer.js +21 -0
- package/dist/commonjs/metro/metro-transformer.js.map +1 -0
- package/dist/commonjs/metro/picocolors.js +71 -0
- package/dist/commonjs/metro/picocolors.js.map +1 -0
- package/dist/commonjs/metro/resolver.js +62 -0
- package/dist/commonjs/metro/resolver.js.map +1 -0
- package/dist/commonjs/metro/stringify.js +59 -0
- package/dist/commonjs/metro/stringify.js.map +1 -0
- package/dist/commonjs/metro/typescript.js +47 -0
- package/dist/commonjs/metro/typescript.js.map +1 -0
- package/dist/commonjs/package.json +1 -0
- package/dist/commonjs/poison.pill.js +36 -0
- package/dist/commonjs/poison.pill.js.map +1 -0
- package/dist/commonjs/runtime/index.js +17 -0
- package/dist/commonjs/runtime/index.js.map +1 -0
- package/dist/commonjs/runtime/native/api.js +90 -0
- package/dist/commonjs/runtime/native/api.js.map +1 -0
- package/dist/commonjs/runtime/native/conditions/container-query.js +116 -0
- package/dist/commonjs/runtime/native/conditions/container-query.js.map +1 -0
- package/dist/commonjs/runtime/native/conditions/guards.js +33 -0
- package/dist/commonjs/runtime/native/conditions/guards.js.map +1 -0
- package/dist/commonjs/runtime/native/conditions/index.js +74 -0
- package/dist/commonjs/runtime/native/conditions/index.js.map +1 -0
- package/dist/commonjs/runtime/native/conditions/media-query.js +93 -0
- package/dist/commonjs/runtime/native/conditions/media-query.js.map +1 -0
- package/dist/commonjs/runtime/native/index.js +28 -0
- package/dist/commonjs/runtime/native/index.js.map +1 -0
- package/dist/commonjs/runtime/native/injection.js +98 -0
- package/dist/commonjs/runtime/native/injection.js.map +1 -0
- package/dist/commonjs/runtime/native/metro.js +6 -0
- package/dist/commonjs/runtime/native/metro.js.map +1 -0
- package/dist/commonjs/runtime/native/react/interaction.js +63 -0
- package/dist/commonjs/runtime/native/react/interaction.js.map +1 -0
- package/dist/commonjs/runtime/native/react/rules.js +253 -0
- package/dist/commonjs/runtime/native/react/rules.js.map +1 -0
- package/dist/commonjs/runtime/native/react/useNativeCss.js +158 -0
- package/dist/commonjs/runtime/native/react/useNativeCss.js.map +1 -0
- package/dist/commonjs/runtime/native/react/usePassthrough.js +50 -0
- package/dist/commonjs/runtime/native/react/usePassthrough.js.map +1 -0
- package/dist/commonjs/runtime/native/reactivity.js +189 -0
- package/dist/commonjs/runtime/native/reactivity.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/animation.js +88 -0
- package/dist/commonjs/runtime/native/styles/animation.js.map +1 -0
- 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 +85 -0
- package/dist/commonjs/runtime/native/styles/calc.js.map +1 -0
- 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 +9 -0
- package/dist/commonjs/runtime/native/styles/constants.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/defaults.js +69 -0
- package/dist/commonjs/runtime/native/styles/defaults.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/filters.js +84 -0
- package/dist/commonjs/runtime/native/styles/filters.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/index.js +115 -0
- package/dist/commonjs/runtime/native/styles/index.js.map +1 -0
- 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 +129 -0
- package/dist/commonjs/runtime/native/styles/resolve.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/shorthand.js +79 -0
- package/dist/commonjs/runtime/native/styles/shorthand.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/text-shadow.js +13 -0
- package/dist/commonjs/runtime/native/styles/text-shadow.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/transform.js +23 -0
- package/dist/commonjs/runtime/native/styles/transform.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/units.js +49 -0
- package/dist/commonjs/runtime/native/styles/units.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/variables.js +78 -0
- package/dist/commonjs/runtime/native/styles/variables.js.map +1 -0
- package/dist/commonjs/runtime/runtime.js +17 -0
- package/dist/commonjs/runtime/runtime.js.map +1 -0
- package/dist/commonjs/runtime/runtime.native.js +17 -0
- package/dist/commonjs/runtime/runtime.native.js.map +1 -0
- package/dist/commonjs/runtime/runtime.types.js +6 -0
- package/dist/commonjs/runtime/runtime.types.js.map +1 -0
- package/dist/commonjs/runtime/utils/components.js +18 -0
- package/dist/commonjs/runtime/utils/components.js.map +1 -0
- package/dist/commonjs/runtime/utils/dot-notation.types.js +2 -0
- package/dist/commonjs/runtime/utils/dot-notation.types.js.map +1 -0
- package/dist/commonjs/runtime/utils/index.js +61 -0
- package/dist/commonjs/runtime/utils/index.js.map +1 -0
- package/dist/commonjs/runtime/utils/objects.js +84 -0
- package/dist/commonjs/runtime/utils/objects.js.map +1 -0
- package/dist/commonjs/runtime/utils/specificity.js +43 -0
- package/dist/commonjs/runtime/utils/specificity.js.map +1 -0
- package/dist/commonjs/runtime/utils/style-value.js +21 -0
- package/dist/commonjs/runtime/utils/style-value.js.map +1 -0
- package/dist/commonjs/runtime/utils/utils.types.js +6 -0
- package/dist/commonjs/runtime/utils/utils.types.js.map +1 -0
- package/dist/commonjs/runtime/web/api.js +68 -0
- package/dist/commonjs/runtime/web/api.js.map +1 -0
- package/dist/commonjs/runtime/web/assign-style.js +27 -0
- package/dist/commonjs/runtime/web/assign-style.js.map +1 -0
- package/dist/commonjs/runtime/web/index.js +18 -0
- package/dist/commonjs/runtime/web/index.js.map +1 -0
- 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 +21 -0
- package/dist/module/babel/helpers.js.map +1 -0
- package/dist/module/babel/import-plugin.js +97 -0
- package/dist/module/babel/import-plugin.js.map +1 -0
- package/dist/module/babel/index.js +9 -0
- package/dist/module/babel/index.js.map +1 -0
- package/dist/module/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 +230 -0
- package/dist/module/compiler/compiler.js.map +1 -0
- package/dist/module/compiler/compiler.types.js +60 -0
- package/dist/module/compiler/compiler.types.js.map +1 -0
- package/dist/module/compiler/container-query.js +59 -0
- package/dist/module/compiler/container-query.js.map +1 -0
- package/dist/module/compiler/declarations.js +2014 -0
- package/dist/module/compiler/declarations.js.map +1 -0
- package/dist/module/compiler/functions-web.js +32 -0
- package/dist/module/compiler/functions-web.js.map +1 -0
- package/dist/module/compiler/functions.js +47 -0
- package/dist/module/compiler/functions.js.map +1 -0
- package/dist/module/compiler/index.js +9 -0
- package/dist/module/compiler/index.js.map +1 -0
- package/dist/module/compiler/inheritance.test.js +78 -0
- package/dist/module/compiler/inheritance.test.js.map +1 -0
- package/dist/module/compiler/keyframes.js +54 -0
- package/dist/module/compiler/keyframes.js.map +1 -0
- package/dist/module/compiler/media-query.js +166 -0
- package/dist/module/compiler/media-query.js.map +1 -0
- package/dist/module/compiler/selectors.js +405 -0
- package/dist/module/compiler/selectors.js.map +1 -0
- 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 +369 -0
- package/dist/module/compiler/stylesheet.js.map +1 -0
- package/dist/module/components/Text.js +12 -0
- package/dist/module/components/Text.js.map +1 -0
- package/dist/module/components/View.js +12 -0
- package/dist/module/components/View.js.map +1 -0
- package/dist/module/components/index.js +6 -0
- package/dist/module/components/index.js.map +1 -0
- package/dist/module/doctor/index.js +4 -0
- package/dist/module/doctor/index.js.map +1 -0
- package/dist/module/index.js +5 -0
- package/dist/module/index.js.map +1 -0
- package/dist/module/jest/expect.d.js +2 -0
- package/dist/module/jest/expect.d.js.map +1 -0
- package/dist/module/jest/index.js +29 -0
- package/dist/module/jest/index.js.map +1 -0
- package/dist/module/jest/setup.js +3 -0
- package/dist/module/jest/setup.js.map +1 -0
- package/dist/module/jest/setupAfterEnv.js +15 -0
- package/dist/module/jest/setupAfterEnv.js.map +1 -0
- package/dist/module/metro/index.js +159 -0
- package/dist/module/metro/index.js.map +1 -0
- package/dist/module/metro/injection-code.js +27 -0
- package/dist/module/metro/injection-code.js.map +1 -0
- package/dist/module/metro/metro-transformer.js +17 -0
- package/dist/module/metro/metro-transformer.js.map +1 -0
- package/dist/module/metro/picocolors.js +67 -0
- package/dist/module/metro/picocolors.js.map +1 -0
- package/dist/module/metro/resolver.js +57 -0
- package/dist/module/metro/resolver.js.map +1 -0
- package/dist/module/metro/stringify.js +55 -0
- package/dist/module/metro/stringify.js.map +1 -0
- package/dist/module/metro/typescript.js +42 -0
- package/dist/module/metro/typescript.js.map +1 -0
- package/dist/module/package.json +1 -0
- package/dist/module/poison.pill.js +34 -0
- package/dist/module/poison.pill.js.map +1 -0
- package/dist/module/runtime/index.js +9 -0
- package/dist/module/runtime/index.js.map +1 -0
- package/dist/module/runtime/native/api.js +75 -0
- package/dist/module/runtime/native/api.js.map +1 -0
- package/dist/module/runtime/native/conditions/container-query.js +110 -0
- package/dist/module/runtime/native/conditions/container-query.js.map +1 -0
- package/dist/module/runtime/native/conditions/guards.js +29 -0
- package/dist/module/runtime/native/conditions/guards.js.map +1 -0
- package/dist/module/runtime/native/conditions/index.js +70 -0
- package/dist/module/runtime/native/conditions/index.js.map +1 -0
- package/dist/module/runtime/native/conditions/media-query.js +88 -0
- package/dist/module/runtime/native/conditions/media-query.js.map +1 -0
- package/dist/module/runtime/native/index.js +5 -0
- package/dist/module/runtime/native/index.js.map +1 -0
- package/dist/module/runtime/native/injection.js +93 -0
- package/dist/module/runtime/native/injection.js.map +1 -0
- package/dist/module/runtime/native/metro.js +5 -0
- package/dist/module/runtime/native/metro.js.map +1 -0
- package/dist/module/runtime/native/react/interaction.js +59 -0
- package/dist/module/runtime/native/react/interaction.js.map +1 -0
- package/dist/module/runtime/native/react/rules.js +246 -0
- package/dist/module/runtime/native/react/rules.js.map +1 -0
- package/dist/module/runtime/native/react/useNativeCss.js +152 -0
- package/dist/module/runtime/native/react/useNativeCss.js.map +1 -0
- package/dist/module/runtime/native/react/usePassthrough.js +45 -0
- package/dist/module/runtime/native/react/usePassthrough.js.map +1 -0
- package/dist/module/runtime/native/reactivity.js +177 -0
- package/dist/module/runtime/native/reactivity.js.map +1 -0
- package/dist/module/runtime/native/styles/animation.js +82 -0
- package/dist/module/runtime/native/styles/animation.js.map +1 -0
- 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 +79 -0
- package/dist/module/runtime/native/styles/calc.js.map +1 -0
- 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 +5 -0
- package/dist/module/runtime/native/styles/constants.js.map +1 -0
- package/dist/module/runtime/native/styles/defaults.js +65 -0
- package/dist/module/runtime/native/styles/defaults.js.map +1 -0
- package/dist/module/runtime/native/styles/filters.js +70 -0
- package/dist/module/runtime/native/styles/filters.js.map +1 -0
- package/dist/module/runtime/native/styles/index.js +110 -0
- package/dist/module/runtime/native/styles/index.js.map +1 -0
- 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 +125 -0
- package/dist/module/runtime/native/styles/resolve.js.map +1 -0
- package/dist/module/runtime/native/styles/shorthand.js +74 -0
- package/dist/module/runtime/native/styles/shorthand.js.map +1 -0
- package/dist/module/runtime/native/styles/text-shadow.js +9 -0
- package/dist/module/runtime/native/styles/text-shadow.js.map +1 -0
- package/dist/module/runtime/native/styles/transform.js +18 -0
- package/dist/module/runtime/native/styles/transform.js.map +1 -0
- package/dist/module/runtime/native/styles/units.js +40 -0
- package/dist/module/runtime/native/styles/units.js.map +1 -0
- package/dist/module/runtime/native/styles/variables.js +74 -0
- package/dist/module/runtime/native/styles/variables.js.map +1 -0
- package/dist/module/runtime/runtime.js +4 -0
- package/dist/module/runtime/runtime.js.map +1 -0
- package/dist/module/runtime/runtime.native.js +4 -0
- package/dist/module/runtime/runtime.native.js.map +1 -0
- package/dist/module/runtime/runtime.types.js +4 -0
- package/dist/module/runtime/runtime.types.js.map +1 -0
- package/dist/module/runtime/utils/components.js +14 -0
- package/dist/module/runtime/utils/components.js.map +1 -0
- package/dist/module/runtime/utils/dot-notation.types.js +2 -0
- package/dist/module/runtime/utils/dot-notation.types.js.map +1 -0
- package/dist/module/runtime/utils/index.js +8 -0
- package/dist/module/runtime/utils/index.js.map +1 -0
- package/dist/module/runtime/utils/objects.js +76 -0
- package/dist/module/runtime/utils/objects.js.map +1 -0
- package/dist/module/runtime/utils/specificity.js +38 -0
- package/dist/module/runtime/utils/specificity.js.map +1 -0
- package/dist/module/runtime/utils/style-value.js +16 -0
- package/dist/module/runtime/utils/style-value.js.map +1 -0
- package/dist/module/runtime/utils/utils.types.js +4 -0
- package/dist/module/runtime/utils/utils.types.js.map +1 -0
- package/dist/module/runtime/web/api.js +59 -0
- package/dist/module/runtime/web/api.js.map +1 -0
- package/dist/module/runtime/web/assign-style.js +23 -0
- package/dist/module/runtime/web/assign-style.js.map +1 -0
- package/dist/module/runtime/web/index.js +6 -0
- package/dist/module/runtime/web/index.js.map +1 -0
- package/dist/module/runtime/web/metro.js +5 -0
- package/dist/module/runtime/web/metro.js.map +1 -0
- package/dist/typescript/commonjs/example/src/App.d.ts +3 -0
- package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -0
- package/dist/typescript/commonjs/package.json +1 -0
- package/dist/typescript/commonjs/src/babel/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 +13 -0
- package/dist/typescript/commonjs/src/babel/helpers.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/babel/import-plugin.d.ts +6 -0
- package/dist/typescript/commonjs/src/babel/import-plugin.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/babel/index.d.ts +1 -0
- package/dist/typescript/commonjs/src/babel/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/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 +10 -0
- package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +198 -0
- package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/container-query.d.ts +5 -0
- package/dist/typescript/commonjs/src/compiler/container-query.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts +121 -0
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/functions-web.d.ts +11 -0
- package/dist/typescript/commonjs/src/compiler/functions-web.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/functions.d.ts +11 -0
- package/dist/typescript/commonjs/src/compiler/functions.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/index.d.ts +7 -0
- package/dist/typescript/commonjs/src/compiler/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/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 +7 -0
- package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/media-query.d.ts +7 -0
- package/dist/typescript/commonjs/src/compiler/media-query.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/selectors.d.ts +23 -0
- package/dist/typescript/commonjs/src/compiler/selectors.d.ts.map +1 -0
- 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 +50 -0
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/Text.d.ts +8 -0
- package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/View.d.ts +8 -0
- package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/index.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/doctor/index.d.ts +2 -0
- package/dist/typescript/commonjs/src/doctor/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/index.d.ts +3 -0
- package/dist/typescript/commonjs/src/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/jest/index.d.ts +14 -0
- package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/jest/setup.d.ts +1 -0
- package/dist/typescript/commonjs/src/jest/setup.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/jest/setupAfterEnv.d.ts +1 -0
- package/dist/typescript/commonjs/src/jest/setupAfterEnv.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/index.d.ts +11 -0
- package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/injection-code.d.ts +16 -0
- package/dist/typescript/commonjs/src/metro/injection-code.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts +3 -0
- package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/picocolors.d.ts +27 -0
- package/dist/typescript/commonjs/src/metro/picocolors.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/resolver.d.ts +4 -0
- package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/stringify.d.ts +7 -0
- package/dist/typescript/commonjs/src/metro/stringify.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/typescript.d.ts +2 -0
- package/dist/typescript/commonjs/src/metro/typescript.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/poison.pill.d.ts +2 -0
- package/dist/typescript/commonjs/src/poison.pill.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/index.d.ts +7 -0
- package/dist/typescript/commonjs/src/runtime/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/api.d.ts +17 -0
- package/dist/typescript/commonjs/src/runtime/native/api.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts +7 -0
- package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts +5 -0
- package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts +6 -0
- package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts +4 -0
- package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/index.d.ts +4 -0
- package/dist/typescript/commonjs/src/runtime/native/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/injection.d.ts +16 -0
- package/dist/typescript/commonjs/src/runtime/native/injection.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/metro.d.ts +2 -0
- package/dist/typescript/commonjs/src/runtime/native/metro.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts +6 -0
- package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts +7 -0
- package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts +37 -0
- package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts +4 -0
- package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts +63 -0
- package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/animation.d.ts +9 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/animation.d.ts.map +1 -0
- 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 +3 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/calc.d.ts.map +1 -0
- 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 +3 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts +3 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/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 +19 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts.map +1 -0
- 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 +18 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthand.d.ts +11 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthand.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/text-shadow.d.ts +2 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/text-shadow.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/transform.d.ts +7 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/transform.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts +6 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts +5 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/runtime.d.ts +2 -0
- package/dist/typescript/commonjs/src/runtime/runtime.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts +2 -0
- package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts +47 -0
- package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/utils/components.d.ts +2 -0
- package/dist/typescript/commonjs/src/runtime/utils/components.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts +23 -0
- package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/utils/index.d.ts +6 -0
- package/dist/typescript/commonjs/src/runtime/utils/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts +5 -0
- package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts +12 -0
- package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts +4 -0
- package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts +5 -0
- package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/web/api.d.ts +10 -0
- package/dist/typescript/commonjs/src/runtime/web/api.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts +2 -0
- package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/web/index.d.ts +4 -0
- package/dist/typescript/commonjs/src/runtime/web/index.d.ts.map +1 -0
- 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/src/App.d.ts +3 -0
- package/dist/typescript/module/example/src/App.d.ts.map +1 -0
- package/dist/typescript/module/package.json +1 -0
- package/dist/typescript/module/src/babel/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 +13 -0
- package/dist/typescript/module/src/babel/helpers.d.ts.map +1 -0
- package/dist/typescript/module/src/babel/import-plugin.d.ts +6 -0
- package/dist/typescript/module/src/babel/import-plugin.d.ts.map +1 -0
- package/dist/typescript/module/src/babel/index.d.ts +1 -0
- package/dist/typescript/module/src/babel/index.d.ts.map +1 -0
- package/dist/typescript/module/src/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 +10 -0
- package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/compiler.types.d.ts +198 -0
- package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/container-query.d.ts +5 -0
- package/dist/typescript/module/src/compiler/container-query.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/declarations.d.ts +121 -0
- package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/functions-web.d.ts +11 -0
- package/dist/typescript/module/src/compiler/functions-web.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/functions.d.ts +11 -0
- package/dist/typescript/module/src/compiler/functions.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/index.d.ts +7 -0
- package/dist/typescript/module/src/compiler/index.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/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 +7 -0
- package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/media-query.d.ts +7 -0
- package/dist/typescript/module/src/compiler/media-query.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/selectors.d.ts +23 -0
- package/dist/typescript/module/src/compiler/selectors.d.ts.map +1 -0
- 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 +50 -0
- package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -0
- package/dist/typescript/module/src/components/Text.d.ts +8 -0
- package/dist/typescript/module/src/components/Text.d.ts.map +1 -0
- package/dist/typescript/module/src/components/View.d.ts +8 -0
- package/dist/typescript/module/src/components/View.d.ts.map +1 -0
- package/dist/typescript/module/src/components/index.d.ts +4 -0
- package/dist/typescript/module/src/components/index.d.ts.map +1 -0
- package/dist/typescript/module/src/doctor/index.d.ts +2 -0
- package/dist/typescript/module/src/doctor/index.d.ts.map +1 -0
- package/dist/typescript/module/src/index.d.ts +3 -0
- package/dist/typescript/module/src/index.d.ts.map +1 -0
- package/dist/typescript/module/src/jest/index.d.ts +14 -0
- package/dist/typescript/module/src/jest/index.d.ts.map +1 -0
- package/dist/typescript/module/src/jest/setup.d.ts +1 -0
- package/dist/typescript/module/src/jest/setup.d.ts.map +1 -0
- package/dist/typescript/module/src/jest/setupAfterEnv.d.ts +1 -0
- package/dist/typescript/module/src/jest/setupAfterEnv.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/index.d.ts +11 -0
- package/dist/typescript/module/src/metro/index.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/injection-code.d.ts +16 -0
- package/dist/typescript/module/src/metro/injection-code.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/metro-transformer.d.ts +3 -0
- package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/picocolors.d.ts +27 -0
- package/dist/typescript/module/src/metro/picocolors.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/resolver.d.ts +4 -0
- package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/stringify.d.ts +7 -0
- package/dist/typescript/module/src/metro/stringify.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/typescript.d.ts +2 -0
- package/dist/typescript/module/src/metro/typescript.d.ts.map +1 -0
- package/dist/typescript/module/src/poison.pill.d.ts +2 -0
- package/dist/typescript/module/src/poison.pill.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/index.d.ts +7 -0
- package/dist/typescript/module/src/runtime/index.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/api.d.ts +17 -0
- package/dist/typescript/module/src/runtime/native/api.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts +7 -0
- package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts +5 -0
- package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/conditions/index.d.ts +6 -0
- package/dist/typescript/module/src/runtime/native/conditions/index.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts +4 -0
- package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/index.d.ts +4 -0
- package/dist/typescript/module/src/runtime/native/index.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/injection.d.ts +16 -0
- package/dist/typescript/module/src/runtime/native/injection.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/metro.d.ts +2 -0
- package/dist/typescript/module/src/runtime/native/metro.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/react/interaction.d.ts +6 -0
- package/dist/typescript/module/src/runtime/native/react/interaction.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/react/rules.d.ts +7 -0
- package/dist/typescript/module/src/runtime/native/react/rules.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts +37 -0
- package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts +4 -0
- package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/reactivity.d.ts +63 -0
- package/dist/typescript/module/src/runtime/native/reactivity.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/animation.d.ts +9 -0
- package/dist/typescript/module/src/runtime/native/styles/animation.d.ts.map +1 -0
- 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 +3 -0
- package/dist/typescript/module/src/runtime/native/styles/calc.d.ts.map +1 -0
- 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 +3 -0
- package/dist/typescript/module/src/runtime/native/styles/constants.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts +3 -0
- package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/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 +19 -0
- package/dist/typescript/module/src/runtime/native/styles/index.d.ts.map +1 -0
- 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 +18 -0
- package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthand.d.ts +11 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthand.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/text-shadow.d.ts +2 -0
- package/dist/typescript/module/src/runtime/native/styles/text-shadow.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/transform.d.ts +7 -0
- package/dist/typescript/module/src/runtime/native/styles/transform.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/units.d.ts +6 -0
- package/dist/typescript/module/src/runtime/native/styles/units.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/variables.d.ts +5 -0
- package/dist/typescript/module/src/runtime/native/styles/variables.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/runtime.d.ts +2 -0
- package/dist/typescript/module/src/runtime/runtime.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/runtime.native.d.ts +2 -0
- package/dist/typescript/module/src/runtime/runtime.native.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/runtime.types.d.ts +47 -0
- package/dist/typescript/module/src/runtime/runtime.types.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/utils/components.d.ts +2 -0
- package/dist/typescript/module/src/runtime/utils/components.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts +23 -0
- package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/utils/index.d.ts +6 -0
- package/dist/typescript/module/src/runtime/utils/index.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/utils/objects.d.ts +5 -0
- package/dist/typescript/module/src/runtime/utils/objects.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/utils/specificity.d.ts +12 -0
- package/dist/typescript/module/src/runtime/utils/specificity.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/utils/style-value.d.ts +4 -0
- package/dist/typescript/module/src/runtime/utils/style-value.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/utils/utils.types.d.ts +5 -0
- package/dist/typescript/module/src/runtime/utils/utils.types.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/web/api.d.ts +10 -0
- package/dist/typescript/module/src/runtime/web/api.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/web/assign-style.d.ts +2 -0
- package/dist/typescript/module/src/runtime/web/assign-style.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/web/index.d.ts +4 -0
- package/dist/typescript/module/src/runtime/web/index.d.ts.map +1 -0
- 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 +222 -45
- package/src/babel/allowedModules.ts +24 -0
- package/src/babel/helpers.ts +40 -0
- package/src/babel/import-plugin.ts +176 -0
- package/src/babel/index.ts +9 -0
- 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 +268 -0
- package/src/compiler/compiler.types.ts +267 -0
- package/src/compiler/container-query.ts +97 -0
- package/src/compiler/declarations.ts +2964 -0
- package/src/compiler/functions-web.ts +44 -0
- package/src/compiler/functions.ts +64 -0
- package/src/compiler/index.ts +7 -0
- package/src/compiler/inheritance.test.ts +121 -0
- package/src/compiler/keyframes.ts +86 -0
- package/src/compiler/media-query.ts +251 -0
- package/src/compiler/selectors.ts +491 -0
- package/src/compiler/split-by-delimiter.ts +19 -0
- package/src/compiler/stylesheet.ts +528 -0
- package/src/components/Text.tsx +17 -0
- package/src/components/View.tsx +17 -0
- package/src/components/index.tsx +4 -0
- package/src/doctor/index.ts +1 -0
- package/src/index.ts +3 -0
- package/src/jest/expect.d.ts +1 -0
- package/src/jest/index.ts +42 -0
- package/src/jest/setup.ts +1 -0
- package/src/jest/setupAfterEnv.ts +13 -0
- package/src/metro/index.ts +231 -0
- package/src/metro/injection-code.ts +38 -0
- package/src/metro/metro-transformer.ts +31 -0
- package/src/metro/picocolors.ts +77 -0
- package/src/metro/resolver.ts +89 -0
- package/src/metro/stringify.ts +59 -0
- package/src/metro/typescript.ts +73 -0
- package/src/poison.pill.ts +32 -0
- package/src/runtime/index.ts +7 -0
- package/src/runtime/native/api.ts +106 -0
- package/src/runtime/native/conditions/container-query.ts +157 -0
- package/src/runtime/native/conditions/guards.ts +45 -0
- package/src/runtime/native/conditions/index.ts +106 -0
- package/src/runtime/native/conditions/media-query.ts +94 -0
- package/src/runtime/native/index.ts +4 -0
- package/src/runtime/native/injection.ts +131 -0
- package/src/runtime/native/metro.ts +2 -0
- package/src/runtime/native/react/interaction.ts +90 -0
- package/src/runtime/native/react/rules.ts +326 -0
- package/src/runtime/native/react/useNativeCss.ts +200 -0
- package/src/runtime/native/react/usePassthrough.ts +51 -0
- package/src/runtime/native/reactivity.ts +262 -0
- package/src/runtime/native/styles/animation.ts +181 -0
- 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 +97 -0
- package/src/runtime/native/styles/calculate-props.ts +165 -0
- package/src/runtime/native/styles/constants.ts +2 -0
- package/src/runtime/native/styles/defaults.ts +78 -0
- package/src/runtime/native/styles/filters.ts +98 -0
- package/src/runtime/native/styles/index.ts +197 -0
- package/src/runtime/native/styles/platform-functions.ts +50 -0
- package/src/runtime/native/styles/resolve.ts +205 -0
- package/src/runtime/native/styles/shorthand.ts +121 -0
- package/src/runtime/native/styles/text-shadow.ts +17 -0
- package/src/runtime/native/styles/transform.ts +21 -0
- package/src/runtime/native/styles/units.ts +53 -0
- package/src/runtime/native/styles/variables.ts +88 -0
- package/src/runtime/runtime.native.ts +1 -0
- package/src/runtime/runtime.ts +1 -0
- package/src/runtime/runtime.types.ts +130 -0
- package/src/runtime/utils/components.ts +15 -0
- package/src/runtime/utils/dot-notation.types.ts +118 -0
- package/src/runtime/utils/index.ts +5 -0
- package/src/runtime/utils/objects.ts +97 -0
- package/src/runtime/utils/specificity.ts +44 -0
- package/src/runtime/utils/style-value.ts +24 -0
- package/src/runtime/utils/utils.types.ts +19 -0
- package/src/runtime/web/api.ts +88 -0
- package/src/runtime/web/assign-style.ts +26 -0
- package/src/runtime/web/index.ts +5 -0
- package/src/runtime/web/metro.ts +2 -0
- package/.babelrc +0 -8
- package/.editorconfig +0 -17
- package/.eslintignore +0 -3
- package/.eslintrc +0 -39
- package/.npmignore +0 -7
- package/build/index.js +0 -294
- package/build/utils.js +0 -54
- package/circle.yml +0 -31
- package/jsconfig.json +0 -9
- package/login.sh +0 -11
- package/src/index.js +0 -184
- package/src/utils.js +0 -32
- package/test/rnc.test.js +0 -258
- package/yarn.lock +0 -3333
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
import type {
|
|
4
|
+
InlineVariable,
|
|
5
|
+
StyleDescriptor,
|
|
6
|
+
StyleFunction,
|
|
7
|
+
} from "../../../compiler";
|
|
8
|
+
import type { RenderGuard } from "../conditions/guards";
|
|
9
|
+
import { type Getter, type VariableContextValue } from "../reactivity";
|
|
10
|
+
import { animation, timingFunctionResolver } from "./animation";
|
|
11
|
+
import { border } from "./border";
|
|
12
|
+
import { boxShadow } from "./box-shadow";
|
|
13
|
+
import { calc } from "./calc";
|
|
14
|
+
import type { calculateProps } from "./calculate-props";
|
|
15
|
+
import { transformKeys } from "./defaults";
|
|
16
|
+
import {
|
|
17
|
+
blur,
|
|
18
|
+
brightness,
|
|
19
|
+
contrast,
|
|
20
|
+
dropShadow,
|
|
21
|
+
grayscale,
|
|
22
|
+
hueRotate,
|
|
23
|
+
invert,
|
|
24
|
+
opacity,
|
|
25
|
+
saturate,
|
|
26
|
+
sepia,
|
|
27
|
+
} from "./filters";
|
|
28
|
+
import {
|
|
29
|
+
fontScale,
|
|
30
|
+
hairlineWidth,
|
|
31
|
+
pixelRatio,
|
|
32
|
+
pixelSizeForLayoutSize,
|
|
33
|
+
platformColor,
|
|
34
|
+
roundToNearestPixel,
|
|
35
|
+
} from "./platform-functions";
|
|
36
|
+
import { textShadow } from "./text-shadow";
|
|
37
|
+
import { transform } from "./transform";
|
|
38
|
+
import { em, rem, vh, vw } from "./units";
|
|
39
|
+
import { varResolver } from "./variables";
|
|
40
|
+
|
|
41
|
+
export type SimpleResolveValue = (
|
|
42
|
+
value: StyleDescriptor,
|
|
43
|
+
castToArray?: boolean,
|
|
44
|
+
) => unknown;
|
|
45
|
+
|
|
46
|
+
export type StyleFunctionResolver = (
|
|
47
|
+
resolveValue: SimpleResolveValue,
|
|
48
|
+
value: StyleFunction,
|
|
49
|
+
get: Getter,
|
|
50
|
+
options: ResolveValueOptions,
|
|
51
|
+
) => unknown;
|
|
52
|
+
|
|
53
|
+
export type StyleResolver = (
|
|
54
|
+
resolveValue: SimpleResolveValue,
|
|
55
|
+
value: StyleDescriptor,
|
|
56
|
+
get: Getter,
|
|
57
|
+
options: ResolveValueOptions,
|
|
58
|
+
) => unknown;
|
|
59
|
+
|
|
60
|
+
const functions: Record<string, StyleFunctionResolver> = {
|
|
61
|
+
"@animation": animation,
|
|
62
|
+
"@border": border,
|
|
63
|
+
"@boxShadow": boxShadow,
|
|
64
|
+
"@textShadow": textShadow,
|
|
65
|
+
"@transform": transform,
|
|
66
|
+
"animationName": animation,
|
|
67
|
+
"cubic-bezier": timingFunctionResolver,
|
|
68
|
+
"steps": timingFunctionResolver,
|
|
69
|
+
"hue-rotate": hueRotate,
|
|
70
|
+
"drop-shadow": dropShadow,
|
|
71
|
+
blur,
|
|
72
|
+
brightness,
|
|
73
|
+
calc,
|
|
74
|
+
contrast,
|
|
75
|
+
em,
|
|
76
|
+
fontScale,
|
|
77
|
+
grayscale,
|
|
78
|
+
hairlineWidth,
|
|
79
|
+
invert,
|
|
80
|
+
opacity,
|
|
81
|
+
pixelRatio,
|
|
82
|
+
pixelSizeForLayoutSize,
|
|
83
|
+
platformColor,
|
|
84
|
+
rem,
|
|
85
|
+
roundToNearestPixel,
|
|
86
|
+
saturate,
|
|
87
|
+
sepia,
|
|
88
|
+
vh,
|
|
89
|
+
vw,
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export type ResolveValueOptions = {
|
|
93
|
+
castToArray?: boolean;
|
|
94
|
+
inheritedVariables?: VariableContextValue;
|
|
95
|
+
inlineVariables?: InlineVariable | undefined;
|
|
96
|
+
renderGuards?: RenderGuard[];
|
|
97
|
+
variableHistory?: Set<string>;
|
|
98
|
+
/** Pass down to perform recursive calculations and avoid circular dependencies */
|
|
99
|
+
calculateProps?: typeof calculateProps;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export function resolveValue(
|
|
103
|
+
value: StyleDescriptor,
|
|
104
|
+
get: Getter,
|
|
105
|
+
options: ResolveValueOptions,
|
|
106
|
+
): any {
|
|
107
|
+
const { castToArray } = options;
|
|
108
|
+
|
|
109
|
+
switch (typeof value) {
|
|
110
|
+
case "bigint":
|
|
111
|
+
case "symbol":
|
|
112
|
+
case "undefined":
|
|
113
|
+
case "function":
|
|
114
|
+
// These types are not supported
|
|
115
|
+
return;
|
|
116
|
+
case "number":
|
|
117
|
+
case "boolean":
|
|
118
|
+
return value;
|
|
119
|
+
case "string":
|
|
120
|
+
return value.endsWith("px") // Inline vars() might set a value with a px suffix
|
|
121
|
+
? parseInt(value.slice(0, -2), 10)
|
|
122
|
+
: value;
|
|
123
|
+
case "object": {
|
|
124
|
+
if (!Array.isArray(value)) {
|
|
125
|
+
return value;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
if (isDescriptorArray(value)) {
|
|
129
|
+
value = value
|
|
130
|
+
.map((d) => resolveValue(d, get, options))
|
|
131
|
+
.filter((d) => d !== undefined);
|
|
132
|
+
|
|
133
|
+
if (castToArray && !Array.isArray(value)) {
|
|
134
|
+
return [value];
|
|
135
|
+
} else {
|
|
136
|
+
return value;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
const name = value[1];
|
|
141
|
+
|
|
142
|
+
const simpleResolve: SimpleResolveValue = (value) => {
|
|
143
|
+
return resolveValue(value, get, options);
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
if (name === "var") {
|
|
147
|
+
return varResolver(simpleResolve, value, get, options);
|
|
148
|
+
} else if (name in functions) {
|
|
149
|
+
const fn = functions[name];
|
|
150
|
+
|
|
151
|
+
if (typeof fn !== "function") {
|
|
152
|
+
throw new Error(`Unknown function: ${name}`);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
value = fn(
|
|
156
|
+
simpleResolve,
|
|
157
|
+
value as StyleFunction,
|
|
158
|
+
get,
|
|
159
|
+
options,
|
|
160
|
+
) as StyleDescriptor;
|
|
161
|
+
} else if (transformKeys.has(name)) {
|
|
162
|
+
// translate, rotate, scale, etc.
|
|
163
|
+
const args = value[2];
|
|
164
|
+
return simpleResolve(args, castToArray);
|
|
165
|
+
} else if (transformKeys.has(name.slice(1))) {
|
|
166
|
+
// @translate, @rotate, @scale, etc.
|
|
167
|
+
return { [name.slice(1)]: simpleResolve(value[2], castToArray) };
|
|
168
|
+
} else {
|
|
169
|
+
let args = simpleResolve(value[2], castToArray);
|
|
170
|
+
|
|
171
|
+
if (args === undefined) {
|
|
172
|
+
return;
|
|
173
|
+
} else if (Array.isArray(args)) {
|
|
174
|
+
let joinedArgs = args
|
|
175
|
+
.map((arg: unknown) => {
|
|
176
|
+
if (Array.isArray(arg)) {
|
|
177
|
+
return arg.flat().join(" ");
|
|
178
|
+
}
|
|
179
|
+
return arg;
|
|
180
|
+
})
|
|
181
|
+
.join(", ");
|
|
182
|
+
|
|
183
|
+
if (name === "radial-gradient") {
|
|
184
|
+
// Nativewind / Tailwind CSS hack which can force the 'in oklab' color space
|
|
185
|
+
joinedArgs = joinedArgs.replace("in oklab, ", "");
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
value = `${name}(${joinedArgs})`;
|
|
189
|
+
} else {
|
|
190
|
+
value = `${name}(${args})`;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
return castToArray && value && !Array.isArray(value) ? [value] : value;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
function isDescriptorArray(
|
|
200
|
+
value: StyleDescriptor | StyleDescriptor[],
|
|
201
|
+
): value is StyleDescriptor[] {
|
|
202
|
+
return Array.isArray(value) && typeof value[0] === "object"
|
|
203
|
+
? Array.isArray(value[0])
|
|
204
|
+
: true;
|
|
205
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { setDeepPath } from "../../utils/objects";
|
|
3
|
+
import { isStyleDescriptorArray } from "../../utils/style-value";
|
|
4
|
+
import { ShortHandSymbol } from "./constants";
|
|
5
|
+
import { defaultValues } from "./defaults";
|
|
6
|
+
import type { StyleResolver } from "./resolve";
|
|
7
|
+
|
|
8
|
+
type ShorthandType =
|
|
9
|
+
| "string"
|
|
10
|
+
| "number"
|
|
11
|
+
| "length"
|
|
12
|
+
| "color"
|
|
13
|
+
| Readonly<(string | Function)[]>;
|
|
14
|
+
|
|
15
|
+
type ShorthandRequiredValue =
|
|
16
|
+
| readonly [string | readonly string[], ShorthandType]
|
|
17
|
+
| ShorthandDefaultValue;
|
|
18
|
+
|
|
19
|
+
type ShorthandDefaultValue = readonly [
|
|
20
|
+
string | readonly string[],
|
|
21
|
+
ShorthandType,
|
|
22
|
+
any,
|
|
23
|
+
];
|
|
24
|
+
|
|
25
|
+
export function shorthandHandler(
|
|
26
|
+
mappings: ShorthandRequiredValue[][],
|
|
27
|
+
defaults: ShorthandDefaultValue[],
|
|
28
|
+
returnType: "shorthandObject" | "tuples" | "object" = "shorthandObject",
|
|
29
|
+
): StyleResolver {
|
|
30
|
+
return (resolve, value, __, { castToArray }) => {
|
|
31
|
+
let args = isStyleDescriptorArray(value)
|
|
32
|
+
? resolve(value)
|
|
33
|
+
: Array.isArray(value)
|
|
34
|
+
? resolve(value[2])
|
|
35
|
+
: value;
|
|
36
|
+
|
|
37
|
+
if (!Array.isArray(args)) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
args = args.flat();
|
|
42
|
+
|
|
43
|
+
if (!Array.isArray(args)) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const match = mappings.find((mapping) => {
|
|
48
|
+
return (
|
|
49
|
+
args.length === mapping.length &&
|
|
50
|
+
mapping.every((map, index) => {
|
|
51
|
+
const type = map[1];
|
|
52
|
+
const value = args[index];
|
|
53
|
+
|
|
54
|
+
if (Array.isArray(type)) {
|
|
55
|
+
return type.includes(value) || type.includes(typeof value);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
switch (type) {
|
|
59
|
+
case "string":
|
|
60
|
+
case "number":
|
|
61
|
+
return typeof value === type;
|
|
62
|
+
case "color":
|
|
63
|
+
return typeof value === "string" || typeof value === "object";
|
|
64
|
+
case "length":
|
|
65
|
+
return typeof value === "string"
|
|
66
|
+
? value.endsWith("%")
|
|
67
|
+
: typeof value === "number";
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return;
|
|
71
|
+
})
|
|
72
|
+
);
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
if (!match) return;
|
|
76
|
+
|
|
77
|
+
const seenDefaults = new Set(defaults);
|
|
78
|
+
|
|
79
|
+
const tuples = [
|
|
80
|
+
...match.map((map, index): [unknown, ShorthandRequiredValue[0]] => {
|
|
81
|
+
if (map.length === 3) {
|
|
82
|
+
seenDefaults.delete(map);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
let value = args[index];
|
|
86
|
+
if (castToArray && value && !Array.isArray(value)) {
|
|
87
|
+
value = [value];
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return [value, map[0]];
|
|
91
|
+
}),
|
|
92
|
+
...Array.from(seenDefaults).map(
|
|
93
|
+
(map): [unknown, ShorthandRequiredValue[0]] => {
|
|
94
|
+
let value = defaultValues[map[2]] ?? map[2];
|
|
95
|
+
if (castToArray && value && !Array.isArray(value)) {
|
|
96
|
+
value = [value];
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return [value, map[0]];
|
|
100
|
+
},
|
|
101
|
+
),
|
|
102
|
+
];
|
|
103
|
+
|
|
104
|
+
if (returnType === "shorthandObject" || returnType === "object") {
|
|
105
|
+
const target: Record<string, unknown> =
|
|
106
|
+
returnType === "shorthandObject" ? { [ShortHandSymbol]: true } : {};
|
|
107
|
+
|
|
108
|
+
for (const [value, prop] of tuples) {
|
|
109
|
+
if (typeof prop === "string") {
|
|
110
|
+
target[prop] = value;
|
|
111
|
+
} else {
|
|
112
|
+
setDeepPath(target, prop, value);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return target;
|
|
117
|
+
} else {
|
|
118
|
+
return tuples;
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { shorthandHandler } from "./shorthand";
|
|
2
|
+
|
|
3
|
+
const width = [["textShadowOffset", "width"], "number"] as const;
|
|
4
|
+
const height = [["textShadowOffset", "height"], "number"] as const;
|
|
5
|
+
const blur = ["textShadowRadius", "number", "textShadowRadius"] as const;
|
|
6
|
+
const color = ["textShadowColor", "color", "color"] as const;
|
|
7
|
+
|
|
8
|
+
export const textShadow = shorthandHandler(
|
|
9
|
+
[
|
|
10
|
+
[width, height, blur, color],
|
|
11
|
+
[color, width, height, blur],
|
|
12
|
+
[width, height, color],
|
|
13
|
+
[color, width, height],
|
|
14
|
+
[width, height],
|
|
15
|
+
],
|
|
16
|
+
[blur, color],
|
|
17
|
+
);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { StyleFunctionResolver } from "./resolve";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Handle the unparsable transform property by converting its values into StyleDeclarations
|
|
5
|
+
* Each value should be a StyleDescriptor function of the transform type
|
|
6
|
+
*/
|
|
7
|
+
export const transform: StyleFunctionResolver = (
|
|
8
|
+
resolveValue,
|
|
9
|
+
transformDescriptor,
|
|
10
|
+
) => {
|
|
11
|
+
const transforms = resolveValue(transformDescriptor[2]);
|
|
12
|
+
|
|
13
|
+
if (Array.isArray(transforms)) {
|
|
14
|
+
return transforms.filter((transform) => transform !== undefined) as unknown;
|
|
15
|
+
} else if (transforms) {
|
|
16
|
+
// If it's a single transform, wrap it in an array
|
|
17
|
+
return [transforms];
|
|
18
|
+
} else {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { rem as remObs, vh as vhObs, vw as vwObs } from "../reactivity";
|
|
3
|
+
import type { StyleFunctionResolver } from "./resolve";
|
|
4
|
+
|
|
5
|
+
export const em: StyleFunctionResolver = (resolve, func) => {
|
|
6
|
+
let value = func[2];
|
|
7
|
+
|
|
8
|
+
if (!value) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const emValue = resolve([{}, "var", ["__rn-css-em"]]);
|
|
13
|
+
|
|
14
|
+
if (typeof emValue !== "number") {
|
|
15
|
+
return undefined;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return round(Number(value) * emValue);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const vw: StyleFunctionResolver = (_, func, get) => {
|
|
22
|
+
const value = func[2];
|
|
23
|
+
|
|
24
|
+
if (typeof value !== "number") {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return round(get(vwObs) * (value / 100));
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export const vh: StyleFunctionResolver = (_, func, get) => {
|
|
32
|
+
const value = func[2];
|
|
33
|
+
|
|
34
|
+
if (typeof value !== "number") {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return round((value / 100) * get(vhObs));
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export const rem: StyleFunctionResolver = (_, func, get) => {
|
|
42
|
+
const value = func[2];
|
|
43
|
+
|
|
44
|
+
if (typeof value !== "number") {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return round(value * get(remObs));
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
function round(number: number) {
|
|
52
|
+
return Math.round((number + Number.EPSILON) * 100) / 100;
|
|
53
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { StyleDescriptor, StyleFunction } from "../../../compiler";
|
|
2
|
+
import { isStyleDescriptorArray } from "../../utils";
|
|
3
|
+
import {
|
|
4
|
+
rootVariables,
|
|
5
|
+
universalVariables,
|
|
6
|
+
VAR_SYMBOL,
|
|
7
|
+
type Getter,
|
|
8
|
+
} from "../reactivity";
|
|
9
|
+
import type { ResolveValueOptions, SimpleResolveValue } from "./resolve";
|
|
10
|
+
|
|
11
|
+
export function varResolver(
|
|
12
|
+
resolve: SimpleResolveValue,
|
|
13
|
+
fn: StyleFunction,
|
|
14
|
+
get: Getter,
|
|
15
|
+
options: ResolveValueOptions,
|
|
16
|
+
) {
|
|
17
|
+
const {
|
|
18
|
+
renderGuards,
|
|
19
|
+
inheritedVariables: variables = { [VAR_SYMBOL]: true },
|
|
20
|
+
inlineVariables,
|
|
21
|
+
variableHistory = new Set(),
|
|
22
|
+
} = options;
|
|
23
|
+
|
|
24
|
+
const args = fn[2];
|
|
25
|
+
|
|
26
|
+
let name: string | undefined;
|
|
27
|
+
let fallback: StyleDescriptor | undefined;
|
|
28
|
+
|
|
29
|
+
if (typeof args === "string") {
|
|
30
|
+
name = args;
|
|
31
|
+
} else {
|
|
32
|
+
const result = resolve(args);
|
|
33
|
+
|
|
34
|
+
if (isStyleDescriptorArray(result)) {
|
|
35
|
+
name = result[0] as string;
|
|
36
|
+
fallback = result[1];
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (typeof name !== "string") {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// If this recurses back to the same variable, we need to stop
|
|
45
|
+
if (variableHistory.has(name)) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (name in variables) {
|
|
50
|
+
renderGuards?.push(["v", name, variables[name]]);
|
|
51
|
+
return variables[name];
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
variableHistory.add(name);
|
|
55
|
+
|
|
56
|
+
let value = resolve(inlineVariables?.[name] as StyleDescriptor);
|
|
57
|
+
if (value !== undefined) {
|
|
58
|
+
options.inlineVariables ??= { [VAR_SYMBOL]: "inline" };
|
|
59
|
+
options.inlineVariables[name] = value;
|
|
60
|
+
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
|
|
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;
|
|
69
|
+
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
value = resolve(get(universalVariables(name)));
|
|
74
|
+
if (value !== undefined) {
|
|
75
|
+
options.inlineVariables ??= { [VAR_SYMBOL]: "inline" };
|
|
76
|
+
options.inlineVariables[name] = value;
|
|
77
|
+
return value;
|
|
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);
|
|
88
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./native";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./web";
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ComponentProps, ComponentType, ReactElement } from "react";
|
|
3
|
+
import type {
|
|
4
|
+
ColorSchemeName,
|
|
5
|
+
ImageStyle,
|
|
6
|
+
TextStyle,
|
|
7
|
+
ViewStyle,
|
|
8
|
+
} from "react-native";
|
|
9
|
+
|
|
10
|
+
import type { ComponentPropsDotNotation, ReactComponent } from "./utils";
|
|
11
|
+
import type { DotNotation, ResolveDotPath } from "./utils/dot-notation.types";
|
|
12
|
+
|
|
13
|
+
/******************************** API ********************************/
|
|
14
|
+
|
|
15
|
+
export type StyledReactElement<
|
|
16
|
+
C extends ReactComponent,
|
|
17
|
+
M extends StyledConfiguration<C>,
|
|
18
|
+
> = ReactElement<
|
|
19
|
+
ComponentProps<C> & {
|
|
20
|
+
[K in keyof M as K extends string
|
|
21
|
+
? M[K] extends undefined | false
|
|
22
|
+
? never
|
|
23
|
+
: M[K] extends true | string | object
|
|
24
|
+
? K
|
|
25
|
+
: never
|
|
26
|
+
: never]?: string;
|
|
27
|
+
}
|
|
28
|
+
>;
|
|
29
|
+
|
|
30
|
+
export type StyledProps<P, M extends StyledConfiguration<any>> = P & {
|
|
31
|
+
[K in keyof M as K extends string
|
|
32
|
+
? M[K] extends undefined | false
|
|
33
|
+
? never
|
|
34
|
+
: M[K] extends true | string | object
|
|
35
|
+
? K
|
|
36
|
+
: never
|
|
37
|
+
: never]?: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export type Styled = <
|
|
41
|
+
const C extends ReactComponent<any>,
|
|
42
|
+
const M extends StyledConfiguration<C>,
|
|
43
|
+
>(
|
|
44
|
+
component: C,
|
|
45
|
+
mapping: M & StyledConfiguration<C>,
|
|
46
|
+
options?: StyledOptions,
|
|
47
|
+
) => StyledComponent<C, M>;
|
|
48
|
+
|
|
49
|
+
type StyledComponent<
|
|
50
|
+
C extends ReactComponent<any>,
|
|
51
|
+
M extends StyledConfiguration<C>,
|
|
52
|
+
> = ComponentType<
|
|
53
|
+
ComponentProps<C> & {
|
|
54
|
+
[K in keyof M as K extends string
|
|
55
|
+
? M[K] extends undefined | false
|
|
56
|
+
? never
|
|
57
|
+
: M[K] extends true | string | object
|
|
58
|
+
? K
|
|
59
|
+
: never
|
|
60
|
+
: never]?: string;
|
|
61
|
+
}
|
|
62
|
+
>;
|
|
63
|
+
|
|
64
|
+
export type StyledConfiguration<
|
|
65
|
+
C extends ReactComponent<any>,
|
|
66
|
+
K extends string = string,
|
|
67
|
+
> = Record<
|
|
68
|
+
K,
|
|
69
|
+
| boolean
|
|
70
|
+
| ComponentPropsDotNotation<C>
|
|
71
|
+
| StyledConfigurationObject<C, ComponentPropsDotNotation<C> | false>
|
|
72
|
+
>;
|
|
73
|
+
|
|
74
|
+
type StyledConfigurationObject<
|
|
75
|
+
C extends ReactComponent<any>,
|
|
76
|
+
T extends ComponentPropsDotNotation<C> | false,
|
|
77
|
+
> = {
|
|
78
|
+
target: T;
|
|
79
|
+
nativeStyleMapping?: T extends false
|
|
80
|
+
? NativeStyleMapping<string, ComponentProps<C>>
|
|
81
|
+
: NativeStyleMapping<
|
|
82
|
+
ResolveDotPath<T, ComponentProps<C>>,
|
|
83
|
+
ComponentProps<C>
|
|
84
|
+
>;
|
|
85
|
+
/** @deprecated Please use nativeStyleMapping */
|
|
86
|
+
nativeStyleToProp?: NativeStyleMapping<
|
|
87
|
+
ResolveDotPath<T, ComponentProps<C>>,
|
|
88
|
+
ComponentProps<C>
|
|
89
|
+
>;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
type NativeStyleMapping<T, S> = T extends object
|
|
93
|
+
? {
|
|
94
|
+
[K in keyof T as K extends string ? K : never]: true | DotNotation<S>;
|
|
95
|
+
} & {
|
|
96
|
+
fill?: true | DotNotation<S>;
|
|
97
|
+
stroke?: true | DotNotation<S>;
|
|
98
|
+
}
|
|
99
|
+
: Record<string, true | DotNotation<S>>;
|
|
100
|
+
|
|
101
|
+
export type StyledOptions = {
|
|
102
|
+
passThrough?: boolean;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
/******************************** Styles ********************************/
|
|
106
|
+
|
|
107
|
+
export type InlineStyleRecord = Record<string, unknown> & {
|
|
108
|
+
// Used to differentiate between InlineStyleRecord and StyleRule
|
|
109
|
+
s?: never;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export type InlineStyle =
|
|
113
|
+
| InlineStyleRecord
|
|
114
|
+
| undefined
|
|
115
|
+
| null
|
|
116
|
+
| (Record<string, unknown> | undefined | null)[]
|
|
117
|
+
| (() => unknown);
|
|
118
|
+
|
|
119
|
+
/********************************* Misc *********************************/
|
|
120
|
+
|
|
121
|
+
export type Props = Record<string, any> | undefined | null;
|
|
122
|
+
export type Callback = () => void;
|
|
123
|
+
export type RNStyle = ViewStyle & TextStyle & ImageStyle;
|
|
124
|
+
|
|
125
|
+
/******************************** Globals ********************************/
|
|
126
|
+
|
|
127
|
+
export type ColorScheme = {
|
|
128
|
+
get: () => ColorSchemeName;
|
|
129
|
+
set: (value: ColorSchemeName) => void;
|
|
130
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
const ForwardRefSymbol = Symbol.for("react.forward_ref");
|
|
3
|
+
export function getComponentType(component: any) {
|
|
4
|
+
switch (typeof component) {
|
|
5
|
+
case "function":
|
|
6
|
+
case "object":
|
|
7
|
+
return "$$typeof" in component && component.$$typeof === ForwardRefSymbol
|
|
8
|
+
? "forwardRef"
|
|
9
|
+
: component.prototype?.isReactComponent
|
|
10
|
+
? "class"
|
|
11
|
+
: typeof component;
|
|
12
|
+
default:
|
|
13
|
+
return "unknown";
|
|
14
|
+
}
|
|
15
|
+
}
|