react-native-css 2.1.2 → 3.0.0-nightly.26b272f
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 +274 -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 +2167 -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/selector-builder.js +457 -0
- package/dist/commonjs/compiler/selector-builder.js.map +1 -0
- package/dist/commonjs/compiler/selectors.js +414 -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 +459 -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 +49 -0
- package/dist/commonjs/jest/index.js.map +1 -0
- package/dist/commonjs/jest/setup.js +3 -0
- package/dist/commonjs/jest/setup.js.map +1 -0
- package/dist/commonjs/jest/setupAfterEnv.js +15 -0
- package/dist/commonjs/jest/setupAfterEnv.js.map +1 -0
- package/dist/commonjs/metro/index.js +167 -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 +39 -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/attributes.js +42 -0
- package/dist/commonjs/runtime/native/conditions/attributes.js.map +1 -0
- package/dist/commonjs/runtime/native/conditions/container-query.js +123 -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 +38 -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 +99 -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 +159 -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 +178 -0
- package/dist/commonjs/runtime/native/reactivity.js.map +1 -0
- package/dist/commonjs/runtime/native/root.js +28 -0
- package/dist/commonjs/runtime/native/root.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 +128 -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 +52 -0
- package/dist/commonjs/runtime/native/styles/units.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/variables.js +79 -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 +44 -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 +269 -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 +2092 -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/selector-builder.js +452 -0
- package/dist/module/compiler/selector-builder.js.map +1 -0
- package/dist/module/compiler/selectors.js +409 -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 +454 -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 +44 -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 +161 -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 +37 -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/attributes.js +38 -0
- package/dist/module/runtime/native/conditions/attributes.js.map +1 -0
- package/dist/module/runtime/native/conditions/container-query.js +117 -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 +34 -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 +94 -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 +153 -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 +166 -0
- package/dist/module/runtime/native/reactivity.js.map +1 -0
- package/dist/module/runtime/native/root.js +24 -0
- package/dist/module/runtime/native/root.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 +123 -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 +43 -0
- package/dist/module/runtime/native/styles/units.js.map +1 -0
- package/dist/module/runtime/native/styles/variables.js +75 -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 +39 -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/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 +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 +17 -0
- package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +199 -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 +118 -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/selector-builder.d.ts +23 -0
- package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/selectors.d.ts +24 -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 +68 -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 +20 -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/attributes.d.ts +5 -0
- package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.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 +38 -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 +55 -0
- package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/root.d.ts +11 -0
- package/dist/typescript/commonjs/src/runtime/native/root.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 +13 -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/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 +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 +17 -0
- package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/compiler.types.d.ts +199 -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 +118 -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/selector-builder.d.ts +23 -0
- package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/selectors.d.ts +24 -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 +68 -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 +20 -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/attributes.d.ts +5 -0
- package/dist/typescript/module/src/runtime/native/conditions/attributes.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 +38 -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 +55 -0
- package/dist/typescript/module/src/runtime/native/reactivity.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/root.d.ts +11 -0
- package/dist/typescript/module/src/runtime/native/root.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 +13 -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 +246 -47
- 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 +298 -0
- package/src/compiler/compiler.types.ts +269 -0
- package/src/compiler/container-query.ts +97 -0
- package/src/compiler/declarations.ts +3124 -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/selector-builder.ts +531 -0
- package/src/compiler/selectors.ts +505 -0
- package/src/compiler/split-by-delimiter.ts +19 -0
- package/src/compiler/stylesheet.ts +655 -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 +65 -0
- package/src/jest/setup.ts +1 -0
- package/src/jest/setupAfterEnv.ts +13 -0
- package/src/metro/index.ts +237 -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 +36 -0
- package/src/runtime/index.ts +7 -0
- package/src/runtime/native/api.ts +106 -0
- package/src/runtime/native/conditions/attributes.ts +52 -0
- package/src/runtime/native/conditions/container-query.ts +162 -0
- package/src/runtime/native/conditions/guards.ts +44 -0
- package/src/runtime/native/conditions/index.ts +52 -0
- package/src/runtime/native/conditions/media-query.ts +92 -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 +203 -0
- package/src/runtime/native/react/usePassthrough.ts +51 -0
- package/src/runtime/native/reactivity.ts +243 -0
- package/src/runtime/native/root.ts +31 -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 +175 -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 +57 -0
- package/src/runtime/native/styles/variables.ts +84 -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 +45 -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/types.d.ts +70 -0
- package/.babelrc +0 -17
- package/.editorconfig +0 -17
- package/.eslintignore +0 -3
- package/.eslintrc +0 -39
- package/.npmignore +0 -7
- package/build/index.js +0 -299
- package/build/utils.js +0 -61
- package/circle.yml +0 -31
- package/jsconfig.json +0 -9
- package/login.sh +0 -11
- package/src/index.js +0 -184
- package/src/utils.js +0 -32
- package/test/rnc.test.js +0 -258
- package/yarn.lock +0 -3333
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { getDeepPath } from "../../utils/index.js";
|
|
6
|
+
import { testRule } from "../conditions/index.js";
|
|
7
|
+
import { DEFAULT_CONTAINER_NAME } from "../conditions/container-query.js";
|
|
8
|
+
import { StyleCollection } from "../injection.js";
|
|
9
|
+
import { activeFamily, containerLayoutFamily, focusFamily, hoverFamily, VAR_SYMBOL, weakFamily } from "../reactivity.js";
|
|
10
|
+
import { stylesFamily } from "../styles/index.js";
|
|
11
|
+
export const INLINE_RULE_SYMBOL = Symbol("react-native-css.inlineRule");
|
|
12
|
+
export function updateRules(state,
|
|
13
|
+
// Either update the state with new props or use the current props
|
|
14
|
+
currentProps = state.currentProps, inheritedVariables = state.inheritedVariables, inheritedContainers = state.inheritedContainers, forceUpdate = false, isRerender = true) {
|
|
15
|
+
const guards = [];
|
|
16
|
+
const rules = new Set();
|
|
17
|
+
if (forceUpdate) {
|
|
18
|
+
state = {
|
|
19
|
+
...state,
|
|
20
|
+
guards,
|
|
21
|
+
currentProps
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
let usesVariables = false;
|
|
25
|
+
let variables = state.variables ? inheritedVariables : undefined;
|
|
26
|
+
let containers = state.containers ? inheritedContainers : undefined;
|
|
27
|
+
const inlineVariables = new Set();
|
|
28
|
+
let animated = false;
|
|
29
|
+
for (const config of state.configs) {
|
|
30
|
+
const source = currentProps?.[config.source];
|
|
31
|
+
const shallowTarget = Array.isArray(config.target) ? config.target[0] : config.target;
|
|
32
|
+
guards.push(["a", config.source, source]);
|
|
33
|
+
if (shallowTarget) {
|
|
34
|
+
guards.push(["a", shallowTarget, currentProps?.[shallowTarget]]);
|
|
35
|
+
}
|
|
36
|
+
const styleRuleSet = [];
|
|
37
|
+
if (typeof source === "string") {
|
|
38
|
+
const classNames = source.split(/\s+/);
|
|
39
|
+
for (const className of classNames) {
|
|
40
|
+
styleRuleSet.push(...StyleCollection.styles(className).get(state.ruleEffect));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
const target = getDeepPath(currentProps, config.target);
|
|
44
|
+
if (target) {
|
|
45
|
+
if (Array.isArray(target)) {
|
|
46
|
+
for (const item of target) {
|
|
47
|
+
if (VAR_SYMBOL in item) {
|
|
48
|
+
inlineVariables.add(item);
|
|
49
|
+
} else if (INLINE_RULE_SYMBOL in item && typeof item[INLINE_RULE_SYMBOL] === "string") {
|
|
50
|
+
pushInlineRule(state, item, styleRuleSet);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
} else if (config.target && typeof target === "object" && target && VAR_SYMBOL in target) {
|
|
54
|
+
inlineVariables.add(target);
|
|
55
|
+
} else if (INLINE_RULE_SYMBOL in target && typeof target[INLINE_RULE_SYMBOL] === "string") {
|
|
56
|
+
pushInlineRule(state, target, styleRuleSet);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
for (let rule of styleRuleSet) {
|
|
60
|
+
// Even if a rule does not match, make sure we register that it could set
|
|
61
|
+
// a variable or container or be animated.
|
|
62
|
+
if (rule.v) usesVariables = true;
|
|
63
|
+
if (rule.c) containers ??= inheritedContainers;
|
|
64
|
+
if (rule.a) animated = true;
|
|
65
|
+
usesVariables ||= Boolean(rule.dv);
|
|
66
|
+
if (!testRule(rule, state.ruleEffectGetter, currentProps, guards, inheritedContainers)) {
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
if (rule.v) {
|
|
70
|
+
// We're going to set a value, so we need to create a new object
|
|
71
|
+
if (variables === inheritedVariables) {
|
|
72
|
+
variables = {
|
|
73
|
+
...inheritedVariables
|
|
74
|
+
};
|
|
75
|
+
} else {
|
|
76
|
+
variables ??= {
|
|
77
|
+
...inheritedVariables
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
for (const v of rule.v) {
|
|
81
|
+
variables[v[0]] = v[1];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
if (rule.c) {
|
|
85
|
+
// We're going to set a value, so we need to create a new object
|
|
86
|
+
if (containers === inheritedContainers) {
|
|
87
|
+
containers = {
|
|
88
|
+
...inheritedContainers,
|
|
89
|
+
// This container becomes the default container
|
|
90
|
+
[DEFAULT_CONTAINER_NAME]: state.ruleEffectGetter
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// This this component as the named container
|
|
95
|
+
for (const name of rule.c) {
|
|
96
|
+
containers[name] = state.ruleEffectGetter;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// Enable hover/active/focus/layout handlers
|
|
100
|
+
hoverFamily(state.ruleEffectGetter);
|
|
101
|
+
activeFamily(state.ruleEffectGetter);
|
|
102
|
+
focusFamily(state.ruleEffectGetter);
|
|
103
|
+
containerLayoutFamily(state.ruleEffectGetter);
|
|
104
|
+
}
|
|
105
|
+
if (rule.a) {
|
|
106
|
+
animated = true;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// Rules normally target style. If the target is not style, we need to create a new rule.
|
|
110
|
+
if (config.target !== "style") {
|
|
111
|
+
rule = getRuleVariation(rule)(config);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// Add the rule to the set and update the hash
|
|
115
|
+
rules.add(rule);
|
|
116
|
+
}
|
|
117
|
+
if (process.env.NODE_ENV !== "production") {
|
|
118
|
+
if (isRerender) {
|
|
119
|
+
let pressable = activeFamily.has(state.ruleEffectGetter);
|
|
120
|
+
if (Boolean(variables) !== Boolean(state.variables)) {
|
|
121
|
+
console.log(`ReactNativeCss: className '${source}' added or removed a variable after the initial render. This causes the components state to be reset and all children be re-mounted. Use the className 'will-change-variable' to avoid this warning. If this was caused by sibling components being added/removed, use a 'key' prop so React can track the component correctly.`);
|
|
122
|
+
} else if (Boolean(containers) !== Boolean(state.containers)) {
|
|
123
|
+
console.log(`ReactNativeCss: className '${source}' added or removed a container after the initial render. This causes the components state to be reset and all children be re-mounted. This will cause unexpected behavior. Use the className 'will-change-container' to avoid this warning. If this was caused by sibling components being added/removed, use a 'key' prop so React can track the component correctly.`);
|
|
124
|
+
} else if (animated !== state.animated) {
|
|
125
|
+
console.log(`ReactNativeCss: className '${source}' added or removed an animation after the initial render. This causes the components state to be reset and all children be re-mounted. This will cause unexpected behavior. Use the className 'will-change-animation' to avoid this warning. If this was caused by sibling components being added/removed, use a 'key' prop so React can track the component correctly.`);
|
|
126
|
+
} else if (pressable !== state.pressable) {
|
|
127
|
+
console.log(`ReactNativeCss: className '${source}' added or removed a pressable state after the initial render. This causes the components state to be reset and all children be re-mounted. This will cause unexpected behavior. Use the className 'will-change-pressable' to avoid this warning. If this was caused by sibling components being added/removed, use a 'key' prop so React can track the component correctly.`);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// We only track this in development
|
|
134
|
+
let pressable = process.env.NODE_ENV === "production" ? undefined : activeFamily.has(state.ruleEffectGetter);
|
|
135
|
+
if (!rules.size && !state.stylesObs && !inlineVariables.size) {
|
|
136
|
+
return {
|
|
137
|
+
...state,
|
|
138
|
+
currentProps,
|
|
139
|
+
guards,
|
|
140
|
+
animated,
|
|
141
|
+
pressable
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
if (usesVariables || variables) {
|
|
145
|
+
rules.add(inheritedVariables);
|
|
146
|
+
if (inlineVariables.size) {
|
|
147
|
+
variables = Object.assign({}, variables, inheritedVariables, ...Array.from(inlineVariables), {
|
|
148
|
+
[VAR_SYMBOL]: true
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
for (const variable of inlineVariables) {
|
|
152
|
+
rules.add(variable);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// Generate a StyleObservable for this unique set of rules / variables
|
|
157
|
+
const stylesObs = stylesFamily(generateStateHash(state, rules), rules);
|
|
158
|
+
|
|
159
|
+
// Get the guards without subscribing to the observable
|
|
160
|
+
// We will subscribe within the render using the StyleEffect
|
|
161
|
+
guards.push(...stylesObs.get().guards);
|
|
162
|
+
|
|
163
|
+
// If these are the same styles with no inline variables, we can skip the update
|
|
164
|
+
if (state.stylesObs === stylesObs && !inlineVariables.size) {
|
|
165
|
+
return state;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// Remove this component from the old observer
|
|
169
|
+
state.stylesObs?.cleanup(state.ruleEffect);
|
|
170
|
+
return {
|
|
171
|
+
...state,
|
|
172
|
+
currentProps,
|
|
173
|
+
stylesObs,
|
|
174
|
+
variables,
|
|
175
|
+
containers,
|
|
176
|
+
guards,
|
|
177
|
+
animated,
|
|
178
|
+
pressable
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Create variations of a style rule based on the config.
|
|
184
|
+
* Cache for reference equality.
|
|
185
|
+
*/
|
|
186
|
+
const getRuleVariation = weakFamily(rule => {
|
|
187
|
+
return weakFamily(config => {
|
|
188
|
+
return {
|
|
189
|
+
...rule,
|
|
190
|
+
target: config.target
|
|
191
|
+
};
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
function pushInlineRule(state, item, styleRuleSet) {
|
|
195
|
+
for (const className of item[INLINE_RULE_SYMBOL].split(/\s+/)) {
|
|
196
|
+
let inlineRuleSet = StyleCollection.styles(className).get(state.ruleEffect);
|
|
197
|
+
for (let rule of inlineRuleSet) {
|
|
198
|
+
styleRuleSet.push(rule);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Get a unique number for a weak key.
|
|
205
|
+
*/
|
|
206
|
+
let hashKeyCount = 0;
|
|
207
|
+
const hashKeyFamily = weakFamily(() => hashKeyCount++);
|
|
208
|
+
export function generateStateHash(state, iterableKeys, variables, inlineVars) {
|
|
209
|
+
if (!iterableKeys) {
|
|
210
|
+
return "";
|
|
211
|
+
}
|
|
212
|
+
const keys = [state.configs, ...iterableKeys];
|
|
213
|
+
if (variables) {
|
|
214
|
+
keys.push(variables);
|
|
215
|
+
}
|
|
216
|
+
if (inlineVars) {
|
|
217
|
+
keys.push(...inlineVars);
|
|
218
|
+
}
|
|
219
|
+
return generateHash(keys);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Quickly generate a unique hash for a set of numbers.
|
|
224
|
+
* This is not a cryptographic hash, but it is fast and has a low chance of collision.
|
|
225
|
+
*/
|
|
226
|
+
const MOD = 9007199254740871; // Largest prime within safe integer range 2^53
|
|
227
|
+
const PRIME = 31; // A smaller prime for mixing
|
|
228
|
+
export function generateHash(keys) {
|
|
229
|
+
let hash = 0;
|
|
230
|
+
let product = 1; // Used for mixing to enhance uniqueness
|
|
231
|
+
|
|
232
|
+
for (const key of keys) {
|
|
233
|
+
if (!key) continue; // Skip if key is undefined
|
|
234
|
+
|
|
235
|
+
const num = hashKeyFamily(key);
|
|
236
|
+
hash = (hash ^ num) % MOD; // XOR and modular arithmetic
|
|
237
|
+
product = product * (num + PRIME) % MOD; // Mix with multiplication
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
// Combine hash and product to form the final hash
|
|
241
|
+
hash = (hash + product) % MOD;
|
|
242
|
+
|
|
243
|
+
// Return the hash as a string
|
|
244
|
+
return hash.toString(36);
|
|
245
|
+
}
|
|
246
|
+
//# sourceMappingURL=rules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getDeepPath","testRule","DEFAULT_CONTAINER_NAME","StyleCollection","activeFamily","containerLayoutFamily","focusFamily","hoverFamily","VAR_SYMBOL","weakFamily","stylesFamily","INLINE_RULE_SYMBOL","Symbol","updateRules","state","currentProps","inheritedVariables","inheritedContainers","forceUpdate","isRerender","guards","rules","Set","usesVariables","variables","undefined","containers","inlineVariables","animated","config","configs","source","shallowTarget","Array","isArray","target","push","styleRuleSet","classNames","split","className","styles","get","ruleEffect","item","add","pushInlineRule","rule","v","c","a","Boolean","dv","ruleEffectGetter","name","getRuleVariation","process","env","NODE_ENV","pressable","has","console","log","size","stylesObs","Object","assign","from","variable","generateStateHash","cleanup","inlineRuleSet","hashKeyCount","hashKeyFamily","iterableKeys","inlineVars","keys","generateHash","MOD","PRIME","hash","product","key","num","toString"],"sourceRoot":"../../../../../src","sources":["runtime/native/react/rules.ts"],"mappings":";;AAAA;;AAEA,SAASA,WAAW,QAAQ,sBAAa;AACzC,SAASC,QAAQ,QAAQ,wBAAe;AACxC,SAASC,sBAAsB,QAAQ,kCAA+B;AAEtE,SAASC,eAAe,QAAQ,iBAAc;AAC9C,SACEC,YAAY,EACZC,qBAAqB,EACrBC,WAAW,EACXC,WAAW,EACXC,UAAU,EACVC,UAAU,QAEL,kBAAe;AACtB,SAASC,YAAY,QAAQ,oBAAW;AAGxC,OAAO,MAAMC,kBAAkB,GAAGC,MAAM,CAAC,6BAA6B,CAAC;AAEvE,OAAO,SAASC,WAAWA,CACzBC,KAAqB;AACrB;AACAC,YAAY,GAAGD,KA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SAAS,CAAC;;IAEpB,MAAMC,GAAG,GAAGV,aAAa,CAACS,GAAG,CAAC;IAC9BF,IAAI,GAAG,CAACA,IAAI,GAAGG,GAAG,IAAIL,GAAG,CAAC,CAAC;IAC3BG,OAAO,GAAIA,OAAO,IAAIE,GAAG,GAAGJ,KAAK,CAAC,GAAID,GAAG,CAAC,CAAC;EAC7C;;EAEA;EACAE,IAAI,GAAG,CAACA,IAAI,GAAGC,OAAO,IAAIH,GAAG;;EAE7B;EACA,OAAOE,IAAI,CAACI,QAAQ,CAAC,EAAE,CAAC;AAC1B","ignoreList":[]}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { createElement, Fragment, useContext, useEffect, useState } from "react";
|
|
5
|
+
import { Pressable, View } from "react-native";
|
|
6
|
+
import { testGuards } from "../conditions/guards.js";
|
|
7
|
+
import { cleanupEffect, ContainerContext, VariableContext } from "../reactivity.js";
|
|
8
|
+
import { getStyledProps } from "../styles/index.js";
|
|
9
|
+
import { animatedComponentFamily } from "../styles/animation.js";
|
|
10
|
+
import { updateRules } from "./rules.js";
|
|
11
|
+
/**
|
|
12
|
+
* useNativeCss is the native implementation of the useCssElement hook.
|
|
13
|
+
*/
|
|
14
|
+
export function useNativeCss(type, originalProps, configs = [{
|
|
15
|
+
source: "className",
|
|
16
|
+
target: "style"
|
|
17
|
+
}]) {
|
|
18
|
+
const inheritedVariables = useContext(VariableContext);
|
|
19
|
+
const inheritedContainers = useContext(ContainerContext);
|
|
20
|
+
const [state, setState] = useState(() => {
|
|
21
|
+
// Both effects share the same observers to improve memory usage
|
|
22
|
+
const observers = new Set();
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* When fired, this effect will force the rules to be re-evaluated.
|
|
26
|
+
* This will cause a re-render if there are different rules
|
|
27
|
+
*
|
|
28
|
+
* Use this when a rule condition changes, e.g FastRefresh or media queries
|
|
29
|
+
*/
|
|
30
|
+
const ruleEffect = {
|
|
31
|
+
observers,
|
|
32
|
+
run: () => setState(state => updateRules(state))
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* When fired, this effect will force a re-render of the component.
|
|
37
|
+
* This will cause a re-fetch of the styles.
|
|
38
|
+
*
|
|
39
|
+
* Use this when a value changes, e.g vm units or light / dark mode
|
|
40
|
+
*/
|
|
41
|
+
const styleEffect = {
|
|
42
|
+
observers,
|
|
43
|
+
run: () => setState(state => ({
|
|
44
|
+
...state
|
|
45
|
+
}))
|
|
46
|
+
};
|
|
47
|
+
return updateRules({
|
|
48
|
+
ruleEffect,
|
|
49
|
+
ruleEffectGetter: observable => observable.get(ruleEffect),
|
|
50
|
+
styleEffect,
|
|
51
|
+
configs,
|
|
52
|
+
inheritedContainers,
|
|
53
|
+
inheritedVariables,
|
|
54
|
+
pressable: type === View ? false : undefined
|
|
55
|
+
}, originalProps, inheritedVariables, inheritedContainers, false, false);
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
// Both effects share the same observers, so we only need to cleanup one of them
|
|
59
|
+
useEffect(() => () => cleanupEffect(state.ruleEffect), [state.ruleEffect]);
|
|
60
|
+
|
|
61
|
+
// Check if our derived state has changed (e.g the className prop)
|
|
62
|
+
if (testGuards(state, originalProps, inheritedVariables, inheritedContainers)) {
|
|
63
|
+
/**
|
|
64
|
+
* Get the new state
|
|
65
|
+
* Note, this might result in the same styles, but the guards will now be different
|
|
66
|
+
*/
|
|
67
|
+
setState(updateRules(state, originalProps, inheritedVariables, inheritedContainers, true));
|
|
68
|
+
|
|
69
|
+
// We can bail on rendering as the result of this render will be discarded
|
|
70
|
+
return /*#__PURE__*/createElement(Fragment);
|
|
71
|
+
}
|
|
72
|
+
let props = getStyledProps(state, originalProps);
|
|
73
|
+
if (type === View && props?.onPress) {
|
|
74
|
+
type = Pressable;
|
|
75
|
+
}
|
|
76
|
+
if (state.animated) {
|
|
77
|
+
type = animatedComponentFamily(type);
|
|
78
|
+
}
|
|
79
|
+
if (state.variables) {
|
|
80
|
+
props = {
|
|
81
|
+
value: state.variables,
|
|
82
|
+
children: /*#__PURE__*/createElement(type, props)
|
|
83
|
+
};
|
|
84
|
+
type = VariableContext.Provider;
|
|
85
|
+
}
|
|
86
|
+
if (state.containers) {
|
|
87
|
+
props = {
|
|
88
|
+
value: state.containers,
|
|
89
|
+
children: /*#__PURE__*/createElement(type, props)
|
|
90
|
+
};
|
|
91
|
+
type = ContainerContext.Provider;
|
|
92
|
+
}
|
|
93
|
+
return /*#__PURE__*/createElement(type, props);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Convert the styled() mapping to a config array
|
|
98
|
+
*/
|
|
99
|
+
export function mappingToConfig(mapping) {
|
|
100
|
+
return Object.entries(mapping).flatMap(([key, value]) => {
|
|
101
|
+
if (value === true) {
|
|
102
|
+
return {
|
|
103
|
+
source: key,
|
|
104
|
+
target: key
|
|
105
|
+
};
|
|
106
|
+
} else if (value === false) {
|
|
107
|
+
return {
|
|
108
|
+
source: key,
|
|
109
|
+
target: false
|
|
110
|
+
};
|
|
111
|
+
} else if (typeof value === "string") {
|
|
112
|
+
return {
|
|
113
|
+
source: key,
|
|
114
|
+
target: value.split(".")
|
|
115
|
+
};
|
|
116
|
+
} else if (typeof value === "object") {
|
|
117
|
+
if (Array.isArray(value)) {
|
|
118
|
+
return {
|
|
119
|
+
source: key,
|
|
120
|
+
target: value
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
if ("target" in value) {
|
|
124
|
+
if (value.target === false) {
|
|
125
|
+
return {
|
|
126
|
+
source: key,
|
|
127
|
+
target: false
|
|
128
|
+
};
|
|
129
|
+
} else if (typeof value.target === "string") {
|
|
130
|
+
const target = value.target.split(".");
|
|
131
|
+
if (target.length === 1) {
|
|
132
|
+
return {
|
|
133
|
+
source: key,
|
|
134
|
+
target: target[0]
|
|
135
|
+
};
|
|
136
|
+
} else {
|
|
137
|
+
return {
|
|
138
|
+
source: key,
|
|
139
|
+
target
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
} else if (Array.isArray(value.target)) {
|
|
143
|
+
return {
|
|
144
|
+
source: key,
|
|
145
|
+
target: value.target
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
throw new Error(`styled(): Invalid mapping for ${key}: ${value}`);
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=useNativeCss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createElement","Fragment","useContext","useEffect","useState","Pressable","View","testGuards","cleanupEffect","ContainerContext","VariableContext","getStyledProps","animatedComponentFamily","updateRules","useNativeCss","type","originalProps","configs","source","target","inheritedVariables","inheritedContainers","state","setState","observers","Set","ruleEffect","run","styleEffect","ruleEffectGetter","observable","get","pressable","undefined","props","onPress","animated","variables","value","children","Provider","containers","mappingToConfig","mapping","Object","entries","flatMap","key","split","Array","isArray","length","Error"],"sourceRoot":"../../../../../src","sources":["runtime/native/react/useNativeCss.ts"],"mappings":";;AAAA;AACA,SACEA,aAAa,EACbC,QAAQ,EACRC,UAAU,EACVC,SAAS,EACTC,QAAQ,QAEH,OAAO;AACd,SAASC,SAAS,EAAEC,IAAI,QAAQ,cAAc;AAG9C,SAASC,UAAU,QAA0B,yBAAsB;AACnE,SACEC,aAAa,EACbC,gBAAgB,EAChBC,eAAe,QAKV,kBAAe;AACtB,SAASC,cAAc,QAAsB,oBAAW;AACxD,SAASC,uBAAuB,QAAQ,wBAAqB;AAC7D,SAASC,WAAW,QAAQ,YAAS;AAkCrC;AACA;AACA;AACA,OAAO,SAASC,YAAYA,CAC1BC,IAAwB,EACxBC,aAAqD,EACrDC,OAAiB,GAAG,CAAC;EAAEC,MAAM,EAAE,WAAW;EAAEC,MAAM,EAAE;AAAQ,CAAC,CAAC,EAC9D;EACA,MAAMC,kBAAkB,GAAGlB,UAAU,CAACQ,eA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
import { createElement } from "react";
|
|
5
|
+
import { INLINE_RULE_SYMBOL } from "./rules.js";
|
|
6
|
+
const cache = new Map();
|
|
7
|
+
export function usePassthrough(type, {
|
|
8
|
+
...props
|
|
9
|
+
}, configs) {
|
|
10
|
+
for (const config of configs) {
|
|
11
|
+
let {
|
|
12
|
+
source,
|
|
13
|
+
target
|
|
14
|
+
} = config;
|
|
15
|
+
const classNames = props[source];
|
|
16
|
+
let styles = cache.get(source);
|
|
17
|
+
if (styles === undefined) {
|
|
18
|
+
styles = {
|
|
19
|
+
[INLINE_RULE_SYMBOL]: classNames
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
delete props[source];
|
|
23
|
+
if (classNames === undefined || target === false) {
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
let targetProps = props;
|
|
27
|
+
if (Array.isArray(target)) {
|
|
28
|
+
for (let i = 0; i < target.length - 1; i++) {
|
|
29
|
+
const prop = target[i];
|
|
30
|
+
props[prop] ??= {};
|
|
31
|
+
targetProps = props[prop];
|
|
32
|
+
}
|
|
33
|
+
target = target[target.length - 1];
|
|
34
|
+
}
|
|
35
|
+
if (Array.isArray(targetProps[target])) {
|
|
36
|
+
targetProps[target] = [...targetProps[target], styles];
|
|
37
|
+
} else if (targetProps[target]) {
|
|
38
|
+
targetProps[target] = [targetProps[target], styles];
|
|
39
|
+
} else {
|
|
40
|
+
targetProps[target] = styles;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return /*#__PURE__*/createElement(type, props);
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=usePassthrough.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createElement","INLINE_RULE_SYMBOL","cache","Map","usePassthrough","type","props","configs","config","source","target","classNames","styles","get","undefined","targetProps","Array","isArray","i","length","prop"],"sourceRoot":"../../../../../src","sources":["runtime/native/react/usePassthrough.ts"],"mappings":";;AAAA;AACA,SAASA,aAAa,QAA4B,OAAO;AA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,IAAIG,WAAW,CAACL,MAAM,CAAC,EAAE;MAC9BK,WAAW,CAACL,MAAM,CAAC,GAAG,CAACK,WAAW,CAACL,MAAM,CAAC,EAAEE,MAAM,CAAC;IACrD,CAAC,MAAM;MACLG,WAAW,CAACL,MAAM,CAAC,GAAGE,MAAM;IAC9B;EACF;EAEA,oBAAOZ,aAAa,CAACK,IAAI,EAAEC,KAAK,CAAC;AACnC","ignoreList":[]}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { createContext } from "react";
|
|
5
|
+
import { Appearance, Dimensions } from "react-native";
|
|
6
|
+
export const observableBatch = {};
|
|
7
|
+
export function observable(init, equality = Object.is) {
|
|
8
|
+
let value;
|
|
9
|
+
let isStatic = typeof init !== "function";
|
|
10
|
+
let didInit;
|
|
11
|
+
let lastArg;
|
|
12
|
+
if (typeof init !== "function") {
|
|
13
|
+
value = init;
|
|
14
|
+
didInit = true;
|
|
15
|
+
}
|
|
16
|
+
const observers = new Set();
|
|
17
|
+
const effect = {
|
|
18
|
+
observers,
|
|
19
|
+
run: () => {
|
|
20
|
+
if (!isStatic) {
|
|
21
|
+
const nextValue = init(getter, lastArg);
|
|
22
|
+
if (equality(value, nextValue)) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
value = nextValue;
|
|
26
|
+
}
|
|
27
|
+
notify();
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const getter = observable => observable.get(effect);
|
|
31
|
+
function get(effect) {
|
|
32
|
+
if (effect) {
|
|
33
|
+
observers.add(effect);
|
|
34
|
+
}
|
|
35
|
+
if (!didInit) {
|
|
36
|
+
value = init(getter, undefined);
|
|
37
|
+
}
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
function set(arg) {
|
|
41
|
+
if (isStatic) {
|
|
42
|
+
if (equality(value, arg)) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
value = arg;
|
|
46
|
+
} else {
|
|
47
|
+
const nextValue = init(getter, arg);
|
|
48
|
+
didInit = true;
|
|
49
|
+
lastArg = arg;
|
|
50
|
+
if (equality(value, nextValue)) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
value = nextValue;
|
|
54
|
+
}
|
|
55
|
+
notify();
|
|
56
|
+
return obs;
|
|
57
|
+
}
|
|
58
|
+
function notify() {
|
|
59
|
+
Array.from(observers).forEach(observer => {
|
|
60
|
+
if (observableBatch.current) {
|
|
61
|
+
observableBatch.current.add(observer);
|
|
62
|
+
} else {
|
|
63
|
+
observer.run();
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
const obs = {
|
|
68
|
+
observers,
|
|
69
|
+
get,
|
|
70
|
+
set,
|
|
71
|
+
run: effect.run
|
|
72
|
+
};
|
|
73
|
+
return obs;
|
|
74
|
+
}
|
|
75
|
+
export function cleanupEffect(effect) {
|
|
76
|
+
if (!effect) return;
|
|
77
|
+
for (const dep of effect.observers) {
|
|
78
|
+
dep.observers.delete(effect);
|
|
79
|
+
}
|
|
80
|
+
effect.observers.clear();
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** Family Helpers ************************************************************/
|
|
84
|
+
|
|
85
|
+
export function family(fn) {
|
|
86
|
+
const map = new Map();
|
|
87
|
+
return Object.assign((key, args) => {
|
|
88
|
+
let value = map.get(key);
|
|
89
|
+
if (!value) {
|
|
90
|
+
value = fn(key, args);
|
|
91
|
+
map.set(key, value);
|
|
92
|
+
}
|
|
93
|
+
return value;
|
|
94
|
+
}, {
|
|
95
|
+
delete(key) {
|
|
96
|
+
return map.delete(key);
|
|
97
|
+
},
|
|
98
|
+
clear() {
|
|
99
|
+
return map.clear();
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
export function weakFamily(fn) {
|
|
104
|
+
const map = new WeakMap();
|
|
105
|
+
return Object.assign((key, args) => {
|
|
106
|
+
let value = map.get(key);
|
|
107
|
+
if (!value) {
|
|
108
|
+
value = fn(key, args);
|
|
109
|
+
map.set(key, value);
|
|
110
|
+
}
|
|
111
|
+
return value;
|
|
112
|
+
}, {
|
|
113
|
+
has: key => map.has(key)
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/********************************* Variables **********************************/
|
|
118
|
+
|
|
119
|
+
export const VAR_SYMBOL = Symbol("react-native-css.var");
|
|
120
|
+
export const VariableContext = /*#__PURE__*/createContext({
|
|
121
|
+
[VAR_SYMBOL]: true
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
/** Units *********************************************************************/
|
|
125
|
+
|
|
126
|
+
export const rem = observable(14);
|
|
127
|
+
|
|
128
|
+
/** Pseudo Classes ************************************************************/
|
|
129
|
+
|
|
130
|
+
export const hoverFamily = weakFamily(() => observable(false));
|
|
131
|
+
export const activeFamily = weakFamily(() => observable(false));
|
|
132
|
+
export const focusFamily = weakFamily(() => observable(false));
|
|
133
|
+
|
|
134
|
+
/** Dimensions ****************************************************************/
|
|
135
|
+
|
|
136
|
+
export const dimensions = observable(Dimensions.get("window"));
|
|
137
|
+
export const vw = observable((read, value) => value ?? read(dimensions)?.width);
|
|
138
|
+
export const vh = observable((read, value) => value ?? read(dimensions)?.height);
|
|
139
|
+
|
|
140
|
+
/** Color Scheme **************************************************************/
|
|
141
|
+
|
|
142
|
+
export const colorScheme = observable(Appearance.getColorScheme());
|
|
143
|
+
Appearance.addChangeListener(event => colorScheme.set(event.colorScheme));
|
|
144
|
+
|
|
145
|
+
/** Containers ****************************************************************/
|
|
146
|
+
|
|
147
|
+
export const ContainerContext = /*#__PURE__*/createContext({});
|
|
148
|
+
export const containerLayoutFamily = weakFamily(() => {
|
|
149
|
+
return observable({
|
|
150
|
+
x: 0,
|
|
151
|
+
y: 0,
|
|
152
|
+
width: 0,
|
|
153
|
+
height: 0
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
export const containerWidthFamily = weakFamily(key => {
|
|
157
|
+
return observable(read => {
|
|
158
|
+
return read(containerLayoutFamily(key))?.width || 0;
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
export const containerHeightFamily = weakFamily(key => {
|
|
162
|
+
return observable(read => {
|
|
163
|
+
return read(containerLayoutFamily(key))?.width || 0;
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
//# sourceMappingURL=reactivity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createContext","Appearance","Dimensions","observableBatch","observable","init","equality","Object","is","value","isStatic","didInit","lastArg","observers","Set","effect","run","nextValue","getter","notify","get","add","undefined","set","arg","obs","Array","from","forEach","observer","current","cleanupEffect","dep","delete","clear","family","fn","map","Map","assign","key","args","weakFamily","WeakMap","has","VAR_SYMBOL","Symbol","VariableContext","rem","hoverFamily","activeFamily","focusFamily","dimensions","vw","read","width","vh","height","colorScheme","getColorScheme","addChangeListener","event","ContainerContext","containerLayoutFamily","x","y","containerWidthFamily","containerHeightFamily"],"sourceRoot":"../../../../src","sources":["runtime/native/reactivity.ts"],"mappings":";;AAAA;AACA,SAASA,aAAa,QAAQ,OAAO;AACrC,SACEC,UAAU,EACVC,UAAU,QAGL,cAAc;AAkBrB,OAAO,MAAMC,eAEZ,GAAG,CAAC,CAAC;AAEN,OAAO,SAASC,UAAUA,CACxBC,IAA8B,EAC9BC,QAAmD,GAAGC,MAAM,CAACC,EAAE,EAC/D;EACA,IAAIC,KAAY;EAChB,IAAIC,QAAQ,GAAG,OAAOL,IAAI,KAAK,UAAU;EACzC,IAAIM,OAA4B;EAChC,IAAIC,OAAwB;EAE5B,IAAI,OAAOP,IAAI,KAAK,UAAU,EAAE;IAC9BI,KAAK,GAAGJ,IAAI;IACZM,OAAO,GAAG,IAAI;EAChB;EAEA,MAAME,SAAS,GAAG,IAAIC,GAAG,CAAS,CAAC;EACnC,MAAMC,MAAc,GAAG;IACrBF,SAAS;IACTG,GAAG,EAAEA,CAAA,K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