react-native-css 2.1.2 → 3.0.0-nightly.19372e8
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 +114 -0
- package/dist/commonjs/compiler/atRules.js.map +1 -0
- package/dist/commonjs/compiler/compiler.js +281 -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 +2166 -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/pseudo-elements.js +49 -0
- package/dist/commonjs/compiler/pseudo-elements.js.map +1 -0
- package/dist/commonjs/compiler/selector-builder.js +501 -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 +476 -0
- package/dist/commonjs/compiler/stylesheet.js.map +1 -0
- package/dist/commonjs/compiler/supports.js +27 -0
- package/dist/commonjs/compiler/supports.js.map +1 -0
- package/dist/commonjs/components/ActivityIndicator.js +22 -0
- package/dist/commonjs/components/ActivityIndicator.js.map +1 -0
- package/dist/commonjs/components/Button.js +22 -0
- package/dist/commonjs/components/Button.js.map +1 -0
- package/dist/commonjs/components/FlatList.js +19 -0
- package/dist/commonjs/components/FlatList.js.map +1 -0
- package/dist/commonjs/components/Image.js +17 -0
- package/dist/commonjs/components/Image.js.map +1 -0
- package/dist/commonjs/components/Switch.js +17 -0
- package/dist/commonjs/components/Switch.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/TextInput.js +17 -0
- package/dist/commonjs/components/TextInput.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 +84 -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 +56 -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 +40 -0
- package/dist/commonjs/runtime/native/conditions/index.js.map +1 -0
- package/dist/commonjs/runtime/native/conditions/media-query.js +98 -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 +100 -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 +255 -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/reanimated.js +17 -0
- package/dist/commonjs/runtime/native/reanimated.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/calculate-props.js +148 -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/functions/animation-timing.js +34 -0
- package/dist/commonjs/runtime/native/styles/functions/animation-timing.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/functions/calc.js +125 -0
- package/dist/commonjs/runtime/native/styles/functions/calc.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/functions/filters.js +84 -0
- package/dist/commonjs/runtime/native/styles/functions/filters.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/functions/index.js +61 -0
- package/dist/commonjs/runtime/native/styles/functions/index.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/functions/platform-functions.js +46 -0
- package/dist/commonjs/runtime/native/styles/functions/platform-functions.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/functions/transform-functions.js +121 -0
- package/dist/commonjs/runtime/native/styles/functions/transform-functions.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/resolve.js +106 -0
- package/dist/commonjs/runtime/native/styles/resolve.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/shorthands/_handler.js +79 -0
- package/dist/commonjs/runtime/native/styles/shorthands/_handler.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/shorthands/animation.js +57 -0
- package/dist/commonjs/runtime/native/styles/shorthands/animation.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/shorthands/border.js +12 -0
- package/dist/commonjs/runtime/native/styles/shorthands/border.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js +40 -0
- package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/shorthands/index.js +61 -0
- package/dist/commonjs/runtime/native/styles/shorthands/index.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/shorthands/text-shadow.js +13 -0
- package/dist/commonjs/runtime/native/styles/shorthands/text-shadow.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/shorthands/transform.js +23 -0
- package/dist/commonjs/runtime/native/styles/shorthands/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 +92 -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 +110 -0
- package/dist/module/compiler/atRules.js.map +1 -0
- package/dist/module/compiler/compiler.js +276 -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 +2091 -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/pseudo-elements.js +44 -0
- package/dist/module/compiler/pseudo-elements.js.map +1 -0
- package/dist/module/compiler/selector-builder.js +496 -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 +471 -0
- package/dist/module/compiler/stylesheet.js.map +1 -0
- package/dist/module/compiler/supports.js +23 -0
- package/dist/module/compiler/supports.js.map +1 -0
- package/dist/module/components/ActivityIndicator.js +17 -0
- package/dist/module/components/ActivityIndicator.js.map +1 -0
- package/dist/module/components/Button.js +17 -0
- package/dist/module/components/Button.js.map +1 -0
- package/dist/module/components/FlatList.js +14 -0
- package/dist/module/components/FlatList.js.map +1 -0
- package/dist/module/components/Image.js +12 -0
- package/dist/module/components/Image.js.map +1 -0
- package/dist/module/components/Switch.js +12 -0
- package/dist/module/components/Switch.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/TextInput.js +12 -0
- package/dist/module/components/TextInput.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 +12 -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 +50 -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 +36 -0
- package/dist/module/runtime/native/conditions/index.js.map +1 -0
- package/dist/module/runtime/native/conditions/media-query.js +93 -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 +95 -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 +248 -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/reanimated.js +13 -0
- package/dist/module/runtime/native/reanimated.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/calculate-props.js +143 -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/functions/animation-timing.js +30 -0
- package/dist/module/runtime/native/styles/functions/animation-timing.js.map +1 -0
- package/dist/module/runtime/native/styles/functions/calc.js +120 -0
- package/dist/module/runtime/native/styles/functions/calc.js.map +1 -0
- package/dist/module/runtime/native/styles/functions/filters.js +70 -0
- package/dist/module/runtime/native/styles/functions/filters.js.map +1 -0
- package/dist/module/runtime/native/styles/functions/index.js +8 -0
- package/dist/module/runtime/native/styles/functions/index.js.map +1 -0
- package/dist/module/runtime/native/styles/functions/platform-functions.js +36 -0
- package/dist/module/runtime/native/styles/functions/platform-functions.js.map +1 -0
- package/dist/module/runtime/native/styles/functions/transform-functions.js +114 -0
- package/dist/module/runtime/native/styles/functions/transform-functions.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/resolve.js +101 -0
- package/dist/module/runtime/native/styles/resolve.js.map +1 -0
- package/dist/module/runtime/native/styles/shorthands/_handler.js +74 -0
- package/dist/module/runtime/native/styles/shorthands/_handler.js.map +1 -0
- package/dist/module/runtime/native/styles/shorthands/animation.js +51 -0
- package/dist/module/runtime/native/styles/shorthands/animation.js.map +1 -0
- package/dist/module/runtime/native/styles/shorthands/border.js +8 -0
- package/dist/module/runtime/native/styles/shorthands/border.js.map +1 -0
- package/dist/module/runtime/native/styles/shorthands/box-shadow.js +35 -0
- package/dist/module/runtime/native/styles/shorthands/box-shadow.js.map +1 -0
- package/dist/module/runtime/native/styles/shorthands/index.js +8 -0
- package/dist/module/runtime/native/styles/shorthands/index.js.map +1 -0
- package/dist/module/runtime/native/styles/shorthands/text-shadow.js +9 -0
- package/dist/module/runtime/native/styles/shorthands/text-shadow.js.map +1 -0
- package/dist/module/runtime/native/styles/shorthands/transform.js +18 -0
- package/dist/module/runtime/native/styles/shorthands/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 +84 -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/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 +197 -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/pseudo-elements.d.ts +4 -0
- package/dist/typescript/commonjs/src/compiler/pseudo-elements.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts +24 -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/compiler/supports.d.ts +3 -0
- package/dist/typescript/commonjs/src/compiler/supports.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +13 -0
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/Button.d.ts +13 -0
- package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/FlatList.d.ts +10 -0
- package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/Image.d.ts +8 -0
- package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/Switch.d.ts +8 -0
- package/dist/typescript/commonjs/src/components/Switch.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/Text.d.ts +8 -0
- package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/TextInput.d.ts +8 -0
- package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/View.d.ts +8 -0
- package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/index.d.ts +10 -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 +30 -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/reanimated.d.ts +5 -0
- package/dist/typescript/commonjs/src/runtime/native/reanimated.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/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/functions/animation-timing.d.ts +4 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/animation-timing.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/calc.d.ts +3 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/calc.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/filters.d.ts +12 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/filters.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/index.d.ts +6 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/platform-functions.d.ts +8 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/platform-functions.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/transform-functions.d.ts +5 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/transform-functions.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/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/shorthands/_handler.d.ts +11 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/_handler.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts +4 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/border.d.ts +2 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/border.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/box-shadow.d.ts +3 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/index.d.ts +6 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/text-shadow.d.ts +2 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/transform.d.ts +7 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/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/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 +197 -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/pseudo-elements.d.ts +4 -0
- package/dist/typescript/module/src/compiler/pseudo-elements.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/selector-builder.d.ts +24 -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/compiler/supports.d.ts +3 -0
- package/dist/typescript/module/src/compiler/supports.d.ts.map +1 -0
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts +13 -0
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -0
- package/dist/typescript/module/src/components/Button.d.ts +13 -0
- package/dist/typescript/module/src/components/Button.d.ts.map +1 -0
- package/dist/typescript/module/src/components/FlatList.d.ts +10 -0
- package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -0
- package/dist/typescript/module/src/components/Image.d.ts +8 -0
- package/dist/typescript/module/src/components/Image.d.ts.map +1 -0
- package/dist/typescript/module/src/components/Switch.d.ts +8 -0
- package/dist/typescript/module/src/components/Switch.d.ts.map +1 -0
- package/dist/typescript/module/src/components/Text.d.ts +8 -0
- package/dist/typescript/module/src/components/Text.d.ts.map +1 -0
- package/dist/typescript/module/src/components/TextInput.d.ts +8 -0
- package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -0
- package/dist/typescript/module/src/components/View.d.ts +8 -0
- package/dist/typescript/module/src/components/View.d.ts.map +1 -0
- package/dist/typescript/module/src/components/index.d.ts +10 -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 +30 -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/reanimated.d.ts +5 -0
- package/dist/typescript/module/src/runtime/native/reanimated.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/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/functions/animation-timing.d.ts +4 -0
- package/dist/typescript/module/src/runtime/native/styles/functions/animation-timing.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/functions/calc.d.ts +3 -0
- package/dist/typescript/module/src/runtime/native/styles/functions/calc.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/functions/filters.d.ts +12 -0
- package/dist/typescript/module/src/runtime/native/styles/functions/filters.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/functions/index.d.ts +6 -0
- package/dist/typescript/module/src/runtime/native/styles/functions/index.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/functions/platform-functions.d.ts +8 -0
- package/dist/typescript/module/src/runtime/native/styles/functions/platform-functions.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/functions/transform-functions.d.ts +5 -0
- package/dist/typescript/module/src/runtime/native/styles/functions/transform-functions.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/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/shorthands/_handler.d.ts +11 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthands/_handler.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts +4 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthands/border.d.ts +2 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthands/border.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthands/box-shadow.d.ts +3 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthands/index.d.ts +6 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthands/index.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthands/text-shadow.d.ts +2 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthands/transform.d.ts +7 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthands/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 +248 -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 +158 -0
- package/src/compiler/compiler.ts +305 -0
- package/src/compiler/compiler.types.ts +267 -0
- package/src/compiler/container-query.ts +97 -0
- package/src/compiler/declarations.ts +3177 -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/pseudo-elements.ts +54 -0
- package/src/compiler/selector-builder.ts +586 -0
- package/src/compiler/selectors.ts +505 -0
- package/src/compiler/split-by-delimiter.ts +19 -0
- package/src/compiler/stylesheet.ts +681 -0
- package/src/compiler/supports.ts +26 -0
- package/src/components/ActivityIndicator.tsx +27 -0
- package/src/components/Button.tsx +22 -0
- package/src/components/FlatList.tsx +21 -0
- package/src/components/Image.tsx +17 -0
- package/src/components/Switch.tsx +17 -0
- package/src/components/Text.tsx +17 -0
- package/src/components/TextInput.tsx +17 -0
- package/src/components/View.tsx +17 -0
- package/src/components/index.tsx +10 -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 +74 -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 +54 -0
- package/src/runtime/native/conditions/media-query.ts +98 -0
- package/src/runtime/native/index.ts +4 -0
- package/src/runtime/native/injection.ts +132 -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 +330 -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/reanimated.ts +22 -0
- package/src/runtime/native/root.ts +31 -0
- package/src/runtime/native/styles/calculate-props.ts +197 -0
- package/src/runtime/native/styles/constants.ts +2 -0
- package/src/runtime/native/styles/defaults.ts +79 -0
- package/src/runtime/native/styles/functions/animation-timing.ts +44 -0
- package/src/runtime/native/styles/functions/calc.ts +121 -0
- package/src/runtime/native/styles/functions/filters.ts +98 -0
- package/src/runtime/native/styles/functions/index.ts +5 -0
- package/src/runtime/native/styles/functions/platform-functions.ts +50 -0
- package/src/runtime/native/styles/functions/transform-functions.ts +84 -0
- package/src/runtime/native/styles/index.ts +197 -0
- package/src/runtime/native/styles/resolve.ts +162 -0
- package/src/runtime/native/styles/shorthands/_handler.ts +121 -0
- package/src/runtime/native/styles/shorthands/animation.ts +122 -0
- package/src/runtime/native/styles/shorthands/border.ts +10 -0
- package/src/runtime/native/styles/shorthands/box-shadow.ts +54 -0
- package/src/runtime/native/styles/shorthands/index.ts +5 -0
- package/src/runtime/native/styles/shorthands/text-shadow.ts +17 -0
- package/src/runtime/native/styles/shorthands/transform.ts +23 -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 +109 -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 @@
|
|
|
1
|
+
{"version":3,"names":["existsSync","readFileSync","writeFileSync","CommentArray","parse","stringify","bold","cyan","setupTypeScript","envPath","name","ts","require","configFileName","findConfigFile","sys","fileExists","userConfig","encoding","Array","isArray","output","updatedConfig","push","include","includes","length","console","log","join"],"sourceRoot":"../../../src","sources":["metro/typescript.ts"],"mappings":";;AAAA;AACA,SAASA,UAAU,EAAEC,YAAY,EAAEC,aAAa,QAAQ,IAAI;AAE5D,SAASC,YAAY,EAAEC,KAAK,EAAEC,SAAS,QAAQ,cAAc;AAE7D,SAASC,IAAI,EAAEC,IAAI,QAAQ,iBAAc;AAEzC,OAAO,SAASC,eAAeA,CAC7BC,OAAO,GAAG,2BAA2B,EACrCC,IAAI,GAAG,kBAAkB,EACzB;EACA,IAAI;IACF,MAAMC,EAAE,GAAGC,OAAO,CAAC,YAAY,CAAC;IAChC,IAAI,CAACD,EAAE,EAAE;MACP;IACF;IAEA,MAAME,cAAc,GAAGF,EAAE,CAACG,cAAc,CACtC,IAAI,EACJH,EAAE,CAACI,GAAG,CAACC,UAAU,EACjB,eACF,CAAC;IAED,MAAMC,UAAU,GAAGb,KAAK,CACtBH,YAAY,CAACY,cAAc,EAAE;MAC3BK,QAAQ,EAAE;IACZ,CAAC,CACH,CAAC;IAED,IACE,OAAOD,UAAU,KAAK,QAAQ,IAC9B,CAACA,UAAU,IACXE,KAAK,CAACC,OAAO,CAACH,UAAU,CAAC,EACzB;MACA;IACF;IAEA,MAAMI,MAAgB,GAAG,EAAE;IAC3B,IAAIC,aAAa,GAAG,KAAK;IAEzB,IAAI,CAACtB,UAAU,CAACS,OAAO,CAAC,EAAE;MACxBP,aAAa,CACXO,OAAO,EACP;AACR;AACA,4GAA4GC,IAAI,2EAC1G,CAAC;MACDW,MAAM,CAACE,IAAI,CAAC,WAAWhB,IAAI,CAACE,OAAO,CAAC,EAAE,CAAC;IACzC;IAEAQ,UAAU,CAACO,OAAO,KAAK,IAAIrB,YAAY,CAACM,OAAO,CAAC;IAChD,IACEU,KAAK,CAACC,OAAO,CAACH,UAAU,CAACO,OAAO,CAAC,IACjC,CAACP,UAAU,CAACO,OAAO,CAACC,QAAQ,CAAChB,OAAO,CAAC,EACrC;MACAQ,UAAU,CAACO,OAAO,CAACD,IAAI,CAACd,OAAO,CAAC;MAChCa,aAAa,GAAG,IAAI;MACpBD,MAAM,CAACE,IAAI,CACT,WAAWV,cAAc,mBAAmBN,IAAI,CAACE,OAAO,CAAC,OAC3D,CAAC;IACH;IAEA,IAAIa,aAAa,EAAE;MACjBpB,aAAa,CAACW,cAAc,EAAER,SAAS,CAACY,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAC/D;IAEA,IAAII,MAAM,CAACK,MAAM,EAAE;MACjBC,OAAO,CAACC,GAAG,CACT,GAAGrB,IAAI,CAACD,IAAI,CAAC,YAAY,CAAC,CAAC,2EAA2Ee,MAAM,CAACQ,IAAI,CAAC,QAAQ,CAAC,EAC7H,CAAC;IACH;EACF,CAAC,CAAC,MAAM,CAAC;AACX","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const canWarn = process.env.NODE_ENV !== "test";
|
|
4
|
+
if (canWarn) {
|
|
5
|
+
throw new Error(`react-native-css has encountered a setup error.
|
|
6
|
+
|
|
7
|
+
┌─────-─┐
|
|
8
|
+
| Metro |
|
|
9
|
+
└─────-─┘
|
|
10
|
+
|
|
11
|
+
Either your metro.config.js is missing the 'withReactNativeCSS' wrapper OR
|
|
12
|
+
the resolver.resolveRequest function of your config is being overridden, and not calling the parent resolver.
|
|
13
|
+
|
|
14
|
+
When using 3rd party libraries, please use withReactNativeCSS as the innermost function when composing Metro configs.
|
|
15
|
+
|
|
16
|
+
\`\`\`ts
|
|
17
|
+
const config = getDefaultConfig(__dirname);
|
|
18
|
+
module.exports = with3rdPartyPlugin(
|
|
19
|
+
withReactNativeCSS(config)
|
|
20
|
+
)
|
|
21
|
+
\`\`\`
|
|
22
|
+
|
|
23
|
+
┌─────------─┐
|
|
24
|
+
| NativeWind |
|
|
25
|
+
└─────------─┘
|
|
26
|
+
|
|
27
|
+
If you are using NativeWind with the 'withNativeWind' function, follow the Metro instructions above, but use 'withNativeWind' instead of 'withReactNativeCSS'.
|
|
28
|
+
|
|
29
|
+
┌─────----------─┐
|
|
30
|
+
| Other bundlers |
|
|
31
|
+
└─────----------─┘
|
|
32
|
+
|
|
33
|
+
If you are using another bundler (Vite, Webpack, etc), or non-Metro framework (Next.js, Remix, etc), please ensure you have included 'react-native-css/babel' as a babel preset.
|
|
34
|
+
`);
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=poison.pill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["canWarn","process","env","NODE_ENV","Error"],"sourceRoot":"../../src","sources":["poison.pill.ts"],"mappings":";;AAAA,MAAMA,OAAO,GAAGC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,MAAM;AAE/C,IAAIH,OAAO,EAAE;EACX,MAAM,IAAII,KAAK,CAAC;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC;AACF;AAEA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["runtime/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,cAAc,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { useContext, useState } from "react";
|
|
5
|
+
import { Appearance } from "react-native";
|
|
6
|
+
import { mappingToConfig, useNativeCss } from "./react/useNativeCss.js";
|
|
7
|
+
import { usePassthrough } from "./react/usePassthrough.js";
|
|
8
|
+
import { colorScheme as colorSchemeObs, VAR_SYMBOL, VariableContext } from "./reactivity.js";
|
|
9
|
+
import { resolveValue } from "./styles/resolve.js";
|
|
10
|
+
export { StyleCollection } from "./injection.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Generates a new Higher-Order component the wraps the base component and applies the styles.
|
|
14
|
+
* This is added to the `interopComponents` map so that it can be used in the `wrapJSX` function
|
|
15
|
+
* @param baseComponent
|
|
16
|
+
* @param mapping
|
|
17
|
+
*/
|
|
18
|
+
export const styled = (baseComponent, mapping, options) => {
|
|
19
|
+
let component;
|
|
20
|
+
// const type = getComponentType(baseComponent);
|
|
21
|
+
|
|
22
|
+
const configs = mappingToConfig(mapping);
|
|
23
|
+
if (options?.passThrough) {
|
|
24
|
+
component = props => {
|
|
25
|
+
return usePassthrough(baseComponent, props, configs);
|
|
26
|
+
};
|
|
27
|
+
} else {
|
|
28
|
+
component = props => {
|
|
29
|
+
return useNativeCss(baseComponent, props, configs);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
const name = baseComponent.displayName ?? baseComponent.name ?? "unknown";
|
|
33
|
+
component.displayName = `CssInterop.${name}`;
|
|
34
|
+
return component;
|
|
35
|
+
};
|
|
36
|
+
export const colorScheme = {
|
|
37
|
+
get() {
|
|
38
|
+
return colorSchemeObs.get() ?? Appearance.getColorScheme() ?? "light";
|
|
39
|
+
},
|
|
40
|
+
set(value) {
|
|
41
|
+
return colorSchemeObs.set(value);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
export const useUnstableNativeVariable = useNativeVariable;
|
|
45
|
+
export const useCssElement = (component, incomingProps, mapping) => {
|
|
46
|
+
const [config] = useState(() => mappingToConfig(mapping));
|
|
47
|
+
return useNativeCss(component, incomingProps, config);
|
|
48
|
+
};
|
|
49
|
+
export function useNativeVariable(name) {
|
|
50
|
+
if (name.startsWith("--")) {
|
|
51
|
+
name = name.slice(2);
|
|
52
|
+
}
|
|
53
|
+
const inheritedVariables = useContext(VariableContext);
|
|
54
|
+
const [effect, setState] = useState(() => {
|
|
55
|
+
const effect = {
|
|
56
|
+
observers: new Set(),
|
|
57
|
+
run: () => setState(state => ({
|
|
58
|
+
...state
|
|
59
|
+
}))
|
|
60
|
+
};
|
|
61
|
+
const get = observable => observable.get(effect);
|
|
62
|
+
return {
|
|
63
|
+
...effect,
|
|
64
|
+
get
|
|
65
|
+
};
|
|
66
|
+
});
|
|
67
|
+
return resolveValue([{}, "var", [name]], effect.get, {
|
|
68
|
+
inheritedVariables
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
export function vars(variables) {
|
|
72
|
+
variables[VAR_SYMBOL] = "inline";
|
|
73
|
+
return variables;
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useContext","useState","Appearance","mappingToConfig","useNativeCss","usePassthrough","colorScheme","colorSchemeObs","VAR_SYMBOL","VariableContext","resolveValue","StyleCollection","styled","baseComponent","mapping","options","component","configs","passThrough","props","name","displayName","get","getColorScheme","set","value","useUnstableNativeVariable","useNativeVariable","useCssElement","incomingProps","config","startsWith","slice","inheritedVariables","effect","setState","observers","Set","run","state","observable","vars","variables"],"sourceRoot":"../../../../src","sources":["runtime/native/api.ts"],"mappings":";;AAAA;AACA,SAASA,UAAU,EAAEC,QAAQ,QAAQ,OAAO;AAC5C,SAASC,UAAU,QAAQ,cAAc;AAUzC,SAASC,eAAe,EAAEC,YAAY,QAAQ,yBAAsB;AACpE,SAASC,cAAc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MAAME,eAAe,CAACW,OAAO,CAAC,CAAC;EACzD,OAAOV,YAAY,CAACY,SAAS,EAAEa,aAAa,EAAEC,MAAM,CAAC;AACvD,CAAC;AAED,OAAO,SAASH,iBAAiBA,CAACP,IAAY,EAAE;EAC9C,IAAIA,IAAI,CAACW,UAAU,CAAC,IAAI,CAAC,EAAE;IACzBX,IAAI,GAAGA,IAAI,CAACY,KAAK,CAAC,CAAC,CAAC;EACtB;EAEA,MAAMC,kBAAkB,GAAGjC,UAAU,CAACS,eAAe,CAAC;EACtD,MAAM,CAACyB,MAAM,EAAEC,QAAQ,CAAC,GAAGlC,QAAQ,CAAC,MAAM;IACxC,MAAMiC,MAAc,GAAG;MACrBE,SAAS,EAAE,IAAIC,GAAG,CAAC,CAAC;MACpBC,GAAG,EAAEA,CAAA,KAAMH,QAAQ,CAAEI,KAAK,KAAM;QAAE,GAAGA;MAAM,CAAC,CAAC;IAC/C,CAAC;IAED,MAAMjB,GAAW,GAAIkB,UAAU,IAAKA,UAAU,CAAClB,GAAG,CAACY,MAAM,CAAC;IAE1D,OAAO;MAAE,GAAGA,MAAM;MAAEZ;IAAI,CAAC;EAC3B,CAAC,CAAC;EAEF,OAAOZ,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAACU,IAAI,CAAC,CAAC,EAAEc,MAAM,CAACZ,GAAG,EAAE;IAAEW;EAAmB,CAAC,CAAC;AAC9E;AAEA,OAAO,SAASQ,IAAIA,CAACC,SAA0C,EAAE;EAC9DA,SAAS,CAAoBlC,UAAU,CAAC,GAAG,QAAQ;EACpD,OAAOkC,SAAS;AAClB","ignoreList":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export function testAttributes(queries, props, guards) {
|
|
4
|
+
return queries.every(query => testAttribute(query, props, guards));
|
|
5
|
+
}
|
|
6
|
+
function testAttribute([type, prop, operator, testValue], props, guards) {
|
|
7
|
+
let value;
|
|
8
|
+
if (type === "a") {
|
|
9
|
+
value = props?.[prop];
|
|
10
|
+
} else {
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
12
|
+
value = props?.dataSet?.[prop];
|
|
13
|
+
}
|
|
14
|
+
guards.push([type, prop, value]);
|
|
15
|
+
if (!operator) {
|
|
16
|
+
return value !== undefined && value !== null && value !== false;
|
|
17
|
+
}
|
|
18
|
+
switch (operator) {
|
|
19
|
+
case "!":
|
|
20
|
+
return !value;
|
|
21
|
+
case "=":
|
|
22
|
+
return value == testValue;
|
|
23
|
+
case "~=":
|
|
24
|
+
return testValue && value?.toString().split(" ").includes(testValue);
|
|
25
|
+
case "|=":
|
|
26
|
+
return testValue && value?.toString().startsWith(testValue + "-");
|
|
27
|
+
case "^=":
|
|
28
|
+
return testValue && value?.toString().startsWith(testValue);
|
|
29
|
+
case "$=":
|
|
30
|
+
return testValue && value?.toString().endsWith(testValue);
|
|
31
|
+
case "*=":
|
|
32
|
+
return testValue && value?.toString().includes(testValue);
|
|
33
|
+
default:
|
|
34
|
+
operator;
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=attributes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["testAttributes","queries","props","guards","every","query","testAttribute","type","prop","operator","testValue","value","dataSet","push","undefined","toString","split","includes","startsWith","endsWith"],"sourceRoot":"../../../../../src","sources":["runtime/native/conditions/attributes.ts"],"mappings":";;AAIA,OAAO,SAASA,cAAcA,CAC5BC,OAAyB,EACzBC,KAAY,EACZC,MAAqB,EACrB;EACA,OAAOF,OAAO,CAACG,KAAK,CAAEC,KAAK,IAAKC,aAAa,CAACD,KAAK,EAAEH,KAAK,EAAEC,MAAM,CAAC,CAAC;AACtE;AAEA,SAASG,aAAaA,CACpB,CAACC,IAAI,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,SAAS,CAAiB,EACjDR,KAAY,EACZC,MAAqB,EACrB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
|
|
5
|
+
import { activeFamily, containerHeightFamily, containerWidthFamily, focusFamily, hoverFamily } from "../reactivity.js";
|
|
6
|
+
// import { testAttributes } from "./attributes";
|
|
7
|
+
|
|
8
|
+
export const DEFAULT_CONTAINER_NAME = "c:___default___";
|
|
9
|
+
export function testContainerQueries(queries, inheritedContainers, guards, get) {
|
|
10
|
+
return queries.every(query => {
|
|
11
|
+
return testContainerQuery(query, inheritedContainers, guards, get);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
export function testContainerQuery(query, inheritedContainers, guards, get) {
|
|
15
|
+
const name = query.n ?? DEFAULT_CONTAINER_NAME;
|
|
16
|
+
const container = inheritedContainers[name];
|
|
17
|
+
guards.push(["c", name, container]);
|
|
18
|
+
if (!container) {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// if (query.a && !testAttributes(query.a, container.props, guards)) {
|
|
23
|
+
// return false;
|
|
24
|
+
// }
|
|
25
|
+
|
|
26
|
+
if (query.m && !testContainerMediaCondition(query.m, container, get)) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
if (query.p && !testContainerPseudoCondition(query.p, container, get)) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function testContainerPseudoCondition(query, containerKey, get) {
|
|
35
|
+
if (query.h && !get(hoverFamily(containerKey))) {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
if (query.a && !get(activeFamily(containerKey))) {
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
if (query.f && !get(focusFamily(containerKey))) {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function testContainerMediaCondition(condition, containerKey, get) {
|
|
47
|
+
switch (condition[0]) {
|
|
48
|
+
case "!":
|
|
49
|
+
return !testContainerMediaCondition(condition[1], containerKey, get);
|
|
50
|
+
case "&":
|
|
51
|
+
return condition[1].every(query => {
|
|
52
|
+
return testContainerMediaCondition(query, containerKey, get);
|
|
53
|
+
});
|
|
54
|
+
case "|":
|
|
55
|
+
return condition[1].some(query => {
|
|
56
|
+
return testContainerMediaCondition(query, containerKey, get);
|
|
57
|
+
});
|
|
58
|
+
case "!!":
|
|
59
|
+
return false;
|
|
60
|
+
case "[]":
|
|
61
|
+
return false;
|
|
62
|
+
case ">":
|
|
63
|
+
case ">=":
|
|
64
|
+
case "<":
|
|
65
|
+
case "<=":
|
|
66
|
+
case "=":
|
|
67
|
+
{
|
|
68
|
+
const left = getContainerFeatureValue(condition[1], containerKey, get);
|
|
69
|
+
const right = condition[2];
|
|
70
|
+
if (condition[0] === "=") {
|
|
71
|
+
return left === right;
|
|
72
|
+
}
|
|
73
|
+
if (typeof left !== "number" || typeof right !== "number") {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
switch (condition[0]) {
|
|
77
|
+
case ">":
|
|
78
|
+
return left > right;
|
|
79
|
+
case ">=":
|
|
80
|
+
return left > right;
|
|
81
|
+
case "<":
|
|
82
|
+
return left > right;
|
|
83
|
+
case "<=":
|
|
84
|
+
return left > right;
|
|
85
|
+
default:
|
|
86
|
+
condition[0];
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
default:
|
|
91
|
+
condition;
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
function getContainerFeatureValue(name, containerKey, get) {
|
|
96
|
+
switch (name) {
|
|
97
|
+
case "width":
|
|
98
|
+
return get(containerWidthFamily(containerKey));
|
|
99
|
+
case "height":
|
|
100
|
+
return get(containerHeightFamily(containerKey));
|
|
101
|
+
case "aspect-ratio":
|
|
102
|
+
{
|
|
103
|
+
const width = get(containerWidthFamily(containerKey));
|
|
104
|
+
const height = get(containerHeightFamily(containerKey));
|
|
105
|
+
return width / height;
|
|
106
|
+
}
|
|
107
|
+
case "orientation":
|
|
108
|
+
const width = get(containerWidthFamily(containerKey));
|
|
109
|
+
const height = get(containerHeightFamily(containerKey));
|
|
110
|
+
return width > height ? "landscape" : "portrait";
|
|
111
|
+
case "inline-size":
|
|
112
|
+
case "block-size":
|
|
113
|
+
default:
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=container-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["activeFamily","containerHeightFamily","containerWidthFamily","focusFamily","hoverFamily","DEFAULT_CONTAINER_NAME","testContainerQueries","queries","inheritedContainers","guards","get","every","query","testContainerQuery","name","n","container","push","m","testContainerMediaCondition","p","testContainerPseudoCondition","containerKey","h","a","f","condition","some","left","getContainerFeatureValue","right","width","height"],"sourceRoot":"../../../../../src","sources":["runtime/native/conditions/container-query.ts"],"mappings":";;AAAA;;AASA,SACEA,YAAY,EACZC,qBAAqB,EACrBC,oBAAoB,EACpBC,WAAW,EACXC,WAAW,QAGN,kBAAe;AACtB;;AAGA,OAAO,MAAMC,sBAAsB,GAAG,iBAAiB;AAEvD,OAAO,SAASC,oBAAoBA,CAClCC,OAAyB,EACzBC,mBAA0C,EAC1CC,MAAqB,EACrBC,GAAW,EACX;EACA,OAAOH,OAAO,CAACI,KAAK,CAAEC,KAAK,IAAK;IAC9B,OAAOC,kBAAkB,CAACD,KAAK,EAAEJ,mBAAmB,EAAEC,MAAM,EAAEC,GAAG,CAAC;EACpE,CAAC,CAAC;AACJ;AAEA,OAAO,SAASG,kBAAkBA,CAChCD,KAAqB,EACrBJ,mBAA0C,EAC1CC,MAAqB,EACrBC,GAAW,EACF;EACT,MAAMI,IAAI,GAAGF,KAAK,CAACG,CAAC,IAAIV,sBAAsB;EAC9C,MAAMW,SAAS,GAAGR,mBAAmB,CAACM,IAAI,CAAE;EAE5CL,MAAM,CAACQ,IAAI,CAAC,CAAC,GAAG,EAAEH,IAAI,EAAEE,SAAS,CAAC,CAAC;EAEnC,IAAI,CAACA,SAAS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Ac;MAAE;QACnB,MAAMS,KAAK,GAAGrB,GAAG,CAACR,oBAAoB,CAACoB,YAAY,CAAC,CAAC;QACrD,MAAMU,MAAM,GAAGtB,GAAG,CAACT,qBAAqB,CAACqB,YAAY,CAAC,CAAC;QACvD,OAAOS,KAAK,GAAGC,MAAM;MACvB;IACA,KAAK,aAAa;MAChB,MAAMD,KAAK,GAAGrB,GAAG,CAACR,oBAAoB,CAACoB,YAAY,CAAC,CAAC;MACrD,MAAMU,MAAM,GAAGtB,GAAG,CAACT,qBAAqB,CAACqB,YAAY,CAAC,CAAC;MACvD,OAAOS,KAAK,GAAGC,MAAM,GAAG,WAAW,GAAG,UAAU;IAClD,KAAK,aAAa;IAClB,KAAK,YAAY;IACjB;MACE;EACJ;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
export function testGuards(state, currentProps, inheritedVariables, inheritedContainers) {
|
|
6
|
+
return state.guards?.some(guard => {
|
|
7
|
+
let result = false;
|
|
8
|
+
switch (guard[0]) {
|
|
9
|
+
case "a":
|
|
10
|
+
// Attribute
|
|
11
|
+
result = currentProps?.[guard[1]] !== guard[2];
|
|
12
|
+
break;
|
|
13
|
+
case "d":
|
|
14
|
+
// DataSet
|
|
15
|
+
result = currentProps?.dataSet?.[guard[1]] !== guard[2];
|
|
16
|
+
break;
|
|
17
|
+
case "v":
|
|
18
|
+
// Variables
|
|
19
|
+
result = inheritedVariables[guard[1]] !== guard[2];
|
|
20
|
+
break;
|
|
21
|
+
case "c":
|
|
22
|
+
// Containers
|
|
23
|
+
result = inheritedContainers[guard[1]] !== guard[2];
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
return result;
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=guards.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["testGuards","state","currentProps","inheritedVariables","inheritedContainers","guards","some","guard","result","dataSet"],"sourceRoot":"../../../../../src","sources":["runtime/native/conditions/guards.ts"],"mappings":";;AAAA;;AAaA,OAAO,SAASA,UAAUA,CACxBC,KAAqB,EACrBC,YAAiB,EACjBC,kBAAwC,EACxCC,mBAA0C,EAC1C;EACA,OAAOH,KAAK,CAACI,MAAM,EAAEC,IAAI,CAAEC,KAAK,IAAK;IACnC,IAAIC,MAAM,GAAG,KAAK;IAElB,QAAQD,KAAK,CAAC,CAAC,CAAC;MACd,KAAK,GAAG;QACN;QACAC,MAAM,GAAGN,YAAY,GAAGK,KAAK,CAAC,CAAC,CAAC,CAAC,KAAKA,KAAK,CAAC,CAAC,CAAC;QAC9C;MACF,KAAK,GAAG;QACN;QACAC,MAAM,GAAGN,YAAY,EAAEO,OAAO,GAAGF,KAAK,CAAC,CAAC,CAAC,CAAC,KAAKA,KAAK,CAAC,CAAC,CAAC;QACvD;MACF,KAAK,GAAG;QACN;QACAC,MAAM,GAAGL,kBAAkB,CAACI,KAAK,CAAC,CAAC,CAAC,CAAC,KAAKA,KAAK,CAAC,CAAC,CAAC;QAClD;MACF,KAAK,GAAG;QACN;QACAC,MAAM,GAAGJ,mBAAmB,CAACG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAKA,KAAK,CAAC,CAAC,CAAC;QACnD;IACJ;IAEA,OAAOC,MAAM;EACf,CAAC,CAAC;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { activeFamily, focusFamily, hoverFamily } from "../reactivity.js";
|
|
4
|
+
import { testAttributes } from "./attributes.js";
|
|
5
|
+
import { testContainerQueries } from "./container-query.js";
|
|
6
|
+
import { testMediaQuery } from "./media-query.js";
|
|
7
|
+
export function testRule(rule, get, props, guards, containerContext) {
|
|
8
|
+
if (rule.p && !pseudoClasses(rule.p, get)) {
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
if (rule.m && !testMediaQuery(rule.m, get)) {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
if (rule.aq && !testAttributes(rule.aq, props, guards)) {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
if (rule.cq && !testContainerQueries(rule.cq, containerContext, guards, get)) {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
function pseudoClasses(query, get) {
|
|
23
|
+
// IMPORTANT: active needs: to be first. Modifies a global value
|
|
24
|
+
// that we use to determine if the component should be a pressable
|
|
25
|
+
if (query.a && !get(activeFamily(get))) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
if (query.h && !get(hoverFamily(get))) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
if (query.f && !get(focusFamily(get))) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["activeFamily","focusFamily","hoverFamily","testAttributes","testContainerQueries","testMediaQuery","testRule","rule","get","props","guards","containerContext","p","pseudoClasses","m","aq","cq","query","a","h","f"],"sourceRoot":"../../../../../src","sources":["runtime/native/conditions/index.ts"],"mappings":";;AAEA,SACEA,YAAY,EACZC,WAAW,EACXC,WAAW,QAGN,kBAAe;AACtB,SAASC,cAAc,QAAQ,iBAAc;AAC7C,SAASC,oBAAoB,QAAQ,sBAAmB;AAExD,SAASC,cAAc,QAAQ,kBAAe;AAE9C,OAAO,SAASC,QAAQA,CACtBC,IAAe,EACfC,GAAW,EACXC,KAAY,EACZC,MAAqB,EACrBC,gBAAuC,EACvC;EACA,IAAIJ,IAAI,CAACK,CAAC,IAAI,CAACC,aAAa,CAACN,IAAI,CAACK,CAAC,EAAEJ,GAAG,CAAC,EAAE;IACzC,OAAO,KAAK;EACd;EACA,IAAID,IAAI,CAACO,CAAC,IAAI,CAACT,cAAc,CAACE,IAAI,CAACO,CAAC,EAAEN,GAAG,CAAC,EAAE;IAC1C,OAAO,KAAK;EACd;EACA,IAAID,IAAI,CAACQ,EAAE,IAAI,CAACZ,cAAc,CAACI,IAAI,CAACQ,EAAE,EAAEN,KAAK,EAAEC,MAAM,CAAC,EAAE;IACtD,OAAO,KAAK;EACd;EACA,IACEH,IAAI,CAACS,EAAE,IACP,CAACZ,oBAAoB,CAACG,IAAI,CAACS,EAAE,EAAEL,gBAAgB,EAAED,MAAM,EAAEF,GAAG,CAAC,EAC7D;IACA,OAAO,KAAK;EACd;EAEA,OAAO,IAAI;AACb;AAEA,SAASK,aAAaA,CAACI,KAAyB,EAAET,GAAW,EAAE;EAC7D;EACA;EACA,IAAIS,KAAK,CAACC,CAAC,IAAI,CAACV,GAAG,CAACR,YAAY,CAACQ,GAAG,CAAC,CAAC,EAAE;IACtC,OAAO,KAAK;EACd;EACA,IAAIS,KAAK,CAACE,CAAC,IAAI,CAACX,GAAG,CAACN,WAAW,CAACM,GAAG,CAAC,CAAC,EAAE;IACrC,OAAO,KAAK;EACd;EACA,IAAIS,KAAK,CAACG,CAAC,IAAI,CAACZ,GAAG,CAACP,WAAW,CAACO,GAAG,CAAC,CAAC,EAAE;IACrC,OAAO,KAAK;EACd;EACA,OAAO,IAAI;AACb","ignoreList":[]}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { I18nManager, PixelRatio, Platform } from "react-native";
|
|
5
|
+
import { colorScheme, vh, vw } from "../reactivity.js";
|
|
6
|
+
export function testMediaQuery(mediaQueries, get) {
|
|
7
|
+
return mediaQueries.every(query => test(query, get));
|
|
8
|
+
}
|
|
9
|
+
function test(mediaQuery, get) {
|
|
10
|
+
switch (mediaQuery[0]) {
|
|
11
|
+
case "[]":
|
|
12
|
+
case "!!":
|
|
13
|
+
return false;
|
|
14
|
+
case "!":
|
|
15
|
+
return !test(mediaQuery[1], get);
|
|
16
|
+
case "&":
|
|
17
|
+
return mediaQuery[1].every(query => {
|
|
18
|
+
return test(query, get);
|
|
19
|
+
});
|
|
20
|
+
case "|":
|
|
21
|
+
return mediaQuery[1].some(query => {
|
|
22
|
+
return test(query, get);
|
|
23
|
+
});
|
|
24
|
+
case ">":
|
|
25
|
+
case ">=":
|
|
26
|
+
case "<":
|
|
27
|
+
case "<=":
|
|
28
|
+
case "=":
|
|
29
|
+
{
|
|
30
|
+
return testComparison(mediaQuery, get);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function testComparison(mediaQuery, get) {
|
|
35
|
+
const value = mediaQuery[2];
|
|
36
|
+
switch (mediaQuery[1]) {
|
|
37
|
+
case "dir":
|
|
38
|
+
return I18nManager.isRTL && value === "rtl" || value === "ltr";
|
|
39
|
+
case "hover":
|
|
40
|
+
return true;
|
|
41
|
+
case "platform":
|
|
42
|
+
return value === "native" || value === Platform.OS;
|
|
43
|
+
case "prefers-color-scheme":
|
|
44
|
+
{
|
|
45
|
+
return value === get(colorScheme);
|
|
46
|
+
}
|
|
47
|
+
case "display-mode":
|
|
48
|
+
return value === "native" || Platform.OS === value;
|
|
49
|
+
case "min-width":
|
|
50
|
+
return typeof value === "number" && get(vw) >= value;
|
|
51
|
+
case "max-width":
|
|
52
|
+
return typeof value === "number" && get(vw) <= value;
|
|
53
|
+
case "min-height":
|
|
54
|
+
return typeof value === "number" && get(vh) >= value;
|
|
55
|
+
case "max-height":
|
|
56
|
+
return typeof value === "number" && get(vh) <= value;
|
|
57
|
+
case "orientation":
|
|
58
|
+
return value === "landscape" ? get(vh) < get(vw) : get(vh) >= get(vw);
|
|
59
|
+
}
|
|
60
|
+
if (typeof value !== "number") {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
let left;
|
|
64
|
+
const right = value;
|
|
65
|
+
switch (mediaQuery[1]) {
|
|
66
|
+
case "width":
|
|
67
|
+
left = get(vw);
|
|
68
|
+
break;
|
|
69
|
+
case "height":
|
|
70
|
+
left = get(vh);
|
|
71
|
+
break;
|
|
72
|
+
case "resolution":
|
|
73
|
+
left = PixelRatio.get();
|
|
74
|
+
break;
|
|
75
|
+
default:
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
switch (mediaQuery[0]) {
|
|
79
|
+
case "=":
|
|
80
|
+
return left === right;
|
|
81
|
+
case ">":
|
|
82
|
+
return left > right;
|
|
83
|
+
case ">=":
|
|
84
|
+
return left >= right;
|
|
85
|
+
case "<":
|
|
86
|
+
return left < right;
|
|
87
|
+
case "<=":
|
|
88
|
+
return left <= right;
|
|
89
|
+
default:
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=media-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["I18nManager","PixelRatio","Platform","colorScheme","vh","vw","testMediaQuery","mediaQueries","get","every","query","test","mediaQuery","some","testComparison","value","isRTL","OS","left","right"],"sourceRoot":"../../../../../src","sources":["runtime/native/conditions/media-query.ts"],"mappings":";;AAAA;AACA,SAASA,WAAW,EAAEC,UAAU,EAAEC,QAAQ,QAAQ,cAAc;AAGhE,SAASC,WAAW,EAAEC,EAAE,EAAEC,EAAE,QAAqB,kBAAe;AAEhE,OAAO,SAASC,cAAcA,CAACC,YAA8B,EAAEC,GAAW,EAAE;EAC1E,OAAOD,YAAY,CAACE,KAAK,CAAEC,KAAK,IAAKC,IAAI,CAACD,KAAK,EAAEF,GAAG,CAAC,CAAC;AACxD;AAEA,SAASG,IAAIA,CAACC,UAA0B,EAAEJ,GAAW,EAAW;EAC9D,QAAQI,UAAU,CAAC,CAAC,CAAC;IACnB,KAAK,IAAI;IACT,KAAK,IAAI;MACP,OAAO,KAAK;IACd,KAAK,GAAG;MACN,OAAO,CAACD,IAAI,CAACC,UAAU,CAAC,CAAC,CAAC,EAAEJ,GAAG,CAAC;I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AAOA,KAAK,KAAK,QAAQ,IAAIP,GAAG,CAACJ,EAAE,CAAC,IAAIW,KAAK;IACtD,KAAK,YAAY;MACf,OAAO,OAAOA,KAAK,KAAK,QAAQ,IAAIP,GAAG,CAACJ,EAAE,CAAC,IAAIW,KAAK;IACtD,KAAK,aAAa;MAChB,OAAOA,KAAK,KAAK,WAAW,GAAGP,GAAG,CAACJ,EAAE,CAAC,GAAGI,GAAG,CAACH,EAAE,CAAC,GAAGG,GAAG,CAACJ,EAAE,CAAC,IAAII,GAAG,CAACH,EAAE,CAAC;EACzE;EAEA,IAAI,OAAOU,KAAK,KAAK,QAAQ,EAAE;IAC7B,OAAO,KAAK;EACd;EAEA,IAAIG,IAAwB;EAC5B,MAAMC,KAAK,GAAGJ,KAAK;EAEnB,QAAQH,UAAU,CAAC,CAAC,CAAC;IACnB,KAAK,OAAO;MACVM,IAAI,GAAGV,GAAG,CAACH,EAAE,CAAC;MACd;IACF,KAAK,QAAQ;MACXa,IAAI,GAAGV,GAAG,CAACJ,EAAE,CAAC;MACd;IACF,KAAK,YAAY;MACfc,IAAI,GAAGjB,UAAU,CAACO,GAAG,CAAC,CAAC;MACvB;IACF;MACE,OAAO,KAAK;EAChB;EAEA,QAAQI,UAAU,CAAC,CAAC,CAAC;IACnB,KAAK,GAAG;MACN,OAAOM,IAAI,KAAKC,KAAK;IACvB,KAAK,GAAG;MACN,OAAOD,IAAI,GAAGC,KAAK;IACrB,KAAK,IAAI;MACP,OAAOD,IAAI,IAAIC,KAAK;IACtB,KAAK,GAAG;MACN,OAAOD,IAAI,GAAGC,KAAK;IACrB,KAAK,IAAI;MACP,OAAOD,IAAI,IAAIC,KAAK;IACtB;MACE,OAAO,KAAK;EAChB;AACF","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["runtime/native/index.ts"],"mappings":";;AAAA,cAAc,YAAS;AAEvB,cAAc,UAAO","ignoreList":[]}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { DEFAULT_CONTAINER_NAME } from "./conditions/container-query.js";
|
|
4
|
+
import { family, observable, observableBatch } from "./reactivity.js";
|
|
5
|
+
import { rootVariables } from "./root.js";
|
|
6
|
+
export function StyleCollection() {
|
|
7
|
+
return null;
|
|
8
|
+
}
|
|
9
|
+
export const inlineStylesMap = new WeakMap();
|
|
10
|
+
StyleCollection.styles = family(() => {
|
|
11
|
+
return observable([], isDeepEqual);
|
|
12
|
+
});
|
|
13
|
+
StyleCollection.keyframes = family(() => {
|
|
14
|
+
return observable([], isDeepEqual);
|
|
15
|
+
});
|
|
16
|
+
StyleCollection.inject = function (options) {
|
|
17
|
+
observableBatch.current = new Set();
|
|
18
|
+
StyleCollection.styles("will-change-variable").set([{
|
|
19
|
+
s: [0],
|
|
20
|
+
v: []
|
|
21
|
+
}]);
|
|
22
|
+
StyleCollection.styles("will-change-container").set([{
|
|
23
|
+
s: [0],
|
|
24
|
+
c: [DEFAULT_CONTAINER_NAME]
|
|
25
|
+
}]);
|
|
26
|
+
StyleCollection.styles("will-change-animation").set([{
|
|
27
|
+
s: [0],
|
|
28
|
+
a: true
|
|
29
|
+
}]);
|
|
30
|
+
StyleCollection.styles("will-change-pressable").set([{
|
|
31
|
+
s: [0],
|
|
32
|
+
p: {
|
|
33
|
+
h: 1
|
|
34
|
+
}
|
|
35
|
+
}]);
|
|
36
|
+
if (options.s) {
|
|
37
|
+
for (const style of options.s) {
|
|
38
|
+
StyleCollection.styles(style[0]).set(style[1]);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
if (options.k) {
|
|
42
|
+
for (const keyframes of options.k) {
|
|
43
|
+
StyleCollection.keyframes(keyframes[0]).set(keyframes[1]);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
if (options.vr) {
|
|
47
|
+
for (const entry of options.vr) {
|
|
48
|
+
rootVariables(entry[0]).set(entry[1]);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
if (options.vu) {
|
|
52
|
+
for (const entry of options.vu) {
|
|
53
|
+
rootVariables(entry[0]).set(entry[1]);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
for (const effect of observableBatch.current) {
|
|
57
|
+
effect.run();
|
|
58
|
+
}
|
|
59
|
+
observableBatch.current = undefined;
|
|
60
|
+
};
|
|
61
|
+
function isDeepEqual(a, b) {
|
|
62
|
+
const aArray = Array.isArray(a);
|
|
63
|
+
const bArray = Array.isArray(b);
|
|
64
|
+
const requiresKeyComparison = typeof a === "object" && typeof b === "object" && aArray === bArray;
|
|
65
|
+
|
|
66
|
+
// Only compare keys when both are an object or array
|
|
67
|
+
// This does not account for complex types like Date/Regex, because we don't use them
|
|
68
|
+
if (!requiresKeyComparison) return a === b;
|
|
69
|
+
|
|
70
|
+
// Make either are not null
|
|
71
|
+
if (!a || !b) {
|
|
72
|
+
return a === b;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Shortcut for arrays
|
|
76
|
+
if (aArray && bArray && a.length !== b.length) {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Compare a to b
|
|
81
|
+
for (const key in a) {
|
|
82
|
+
if (!isDeepEqual(a[key], b[key])) {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Compare b to a
|
|
88
|
+
for (const key in b) {
|
|
89
|
+
if (!(key in a)) {
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return true;
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=injection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DEFAULT_CONTAINER_NAME","family","observable","observableBatch","rootVariables","StyleCollection","inlineStylesMap","WeakMap","styles","isDeepEqual","keyframes","inject","options","current","Set","set","s","v","c","a","p","h","style","k","vr","entry","vu","effect","run","undefined","b","aArray","Array","isArray","bArray","requiresKeyComparison","length","key"],"sourceRoot":"../../../../src","sources":["runtime/native/injection.ts"],"mappings":";;AAKA,SAASA,sBAAsB,QAAQ,iCAA8B;AACrE,SACEC,MAAM,EACNC,UAAU,EACVC,eAAe,QAEV,iBAAc;AACrB,SAASC,aAAa,QAAQ,WAAQ;AAEtC,OAAO,SAASC,eAAeA,CAAA,EAAG;EAChC,OAAO,IAAI;AACb;AAEA,OAAO,MAAMC,eAAe,GAAG,IAAIC,OAAO,CAAC,CAAC;AAE5CF,eAAe,CAACG,MAAM,GAAGP,MAAM,CAAmC,MAAM;EACtE,OAAOC,UAAU,CAAC,EAAE,EAAEO,WAAW,CAAC;AACpC,CAAC,CAAC;AACFJ,eAAe,CAACK,SAAS,GAAGT,MAAM,CAAsC,MAAM;EAC5E,OAAOC,UAAU,CAAC,EAAE,EAAEO,WAAW,CAAC;AACpC,CAAC,CAAC;AAEFJ,eAAe,CAACM,MAAM,GAAG,UAAUC,OAAiC,EAAE;EACpET,eAAe,CAACU,OAAO,GAAG,IAAIC,GAAG,CAAC,CAAC;EAEnCT,eAAe,CAACG,MAAM,CAAC,sBAAsB,CAAC,CAACO,GAAG,CAAC,CACjD;IACEC,CAAC,EAAE,CAAC,CAAC,CAAC;IACNC,CAAC,EAAE;EACL,CAAC,CACF,CAAC;EAEFZ,eAAe,CAACG,MAAM,CAAC,uBAAuB,CAAC,CAACO,GAAG,CAAC,CAClD;IACEC,CAAC,EAAE,CAAC,CAAC,CAAC;IACNE,CAAC,EAAE,CAAClB,sBAAsB;EAC5B,CAAC,CACF,CAAC;EAEFK,eAAe,CAACG,MAAM,CAAC,uBAAuB,CAAC,CAACO,GAAG,CAAC,CAClD;IACEC,CAAC,EAAE,CAAC,CAAC,CAAC;IACNG,CAAC,EAAE;EACL,CAAC,CACF,CAAC;EAEFd,eAAe,CAACG,MAAM,CAAC,uBAAuB,CAAC,CAACO,GAAG,CAAC,CAClD;IACEC,CAAC,EAAE,CAAC,C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AC,CAAC;EAC/B,MAAMK,qBAAqB,GACzB,OAAOhB,CAAC,KAAK,QAAQ,IAAI,OAAOW,CAAC,KAAK,QAAQ,IAAIC,MAAM,KAAKG,MAAM;;EAErE;EACA;EACA,IAAI,CAACC,qBAAqB,EAAE,OAAOhB,CAAC,KAAKW,CAAC;;EAE1C;EACA,IAAI,CAACX,CAAC,IAAI,CAACW,CAAC,EAAE;IACZ,OAAOX,CAAC,KAAKW,CAAC;EAChB;;EAEA;EACA,IAAIC,MAAM,IAAIG,MAAM,IAAIf,CAAC,CAACiB,MAAM,KAAKN,CAAC,CAACM,MAAM,EAAE;IAC7C,OAAO,KAAK;EACd;;EAEA;EACA,KAAK,MAAMC,GAAG,IAAIlB,CAAC,EAAE;IACnB,IACE,CAACV,WAAW,CACTU,CAAC,CAA6BkB,GAAG,CAAC,EAClCP,CAAC,CAA6BO,GAAG,CACpC,CAAC,EACD;MACA,OAAO,KAAK;IACd;EACF;;EAEA;EACA,KAAK,MAAMA,GAAG,IAAIP,CAAC,EAAE;IACnB,IAAI,EAAEO,GAAG,IAAIlB,CAAC,CAAC,EAAE;MACf,OAAO,KAAK;IACd;EACF;EAEA,OAAO,IAAI;AACb","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["runtime/native/metro.ts"],"mappings":";;AAAA;AACA","ignoreList":[]}
|