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,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { ShortHandSymbol } from "../native/styles/constants.js";
|
|
5
|
+
import { transformKeys } from "../native/styles/defaults.js";
|
|
6
|
+
export function getDeepPath(source, paths) {
|
|
7
|
+
if (!source) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (paths === false) {
|
|
11
|
+
return undefined;
|
|
12
|
+
}
|
|
13
|
+
if (Array.isArray(paths)) {
|
|
14
|
+
let target = source;
|
|
15
|
+
for (const path of paths) {
|
|
16
|
+
if (typeof target !== "object" || !target || !(path in target)) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
target = target[path];
|
|
20
|
+
}
|
|
21
|
+
return target;
|
|
22
|
+
} else {
|
|
23
|
+
return source?.[paths];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export function applyShorthand(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const target = {
|
|
31
|
+
[ShortHandSymbol]: true
|
|
32
|
+
};
|
|
33
|
+
const values = value;
|
|
34
|
+
for (const [value, prop] of values) {
|
|
35
|
+
target[prop] = value;
|
|
36
|
+
}
|
|
37
|
+
return target;
|
|
38
|
+
}
|
|
39
|
+
export function applyValue(target, prop, value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (transformKeys.has(prop)) {
|
|
44
|
+
if (!Array.isArray(target.transform)) {
|
|
45
|
+
target.transform = [];
|
|
46
|
+
}
|
|
47
|
+
const transform = target.transform.find(t => t[prop] !== undefined);
|
|
48
|
+
if (transform) {
|
|
49
|
+
transform[prop] = value;
|
|
50
|
+
} else {
|
|
51
|
+
target.transform.push({
|
|
52
|
+
[prop]: value
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
return;
|
|
56
|
+
} else if (typeof value === "object" && value && ShortHandSymbol in value) {
|
|
57
|
+
delete value[ShortHandSymbol];
|
|
58
|
+
Object.assign(target, value);
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
target[prop] = value;
|
|
62
|
+
}
|
|
63
|
+
export function setDeepPath(target, paths, value) {
|
|
64
|
+
if (typeof paths === "string") {
|
|
65
|
+
target[paths] = value;
|
|
66
|
+
return target;
|
|
67
|
+
}
|
|
68
|
+
for (let i = 0; i < paths.length - 1; i++) {
|
|
69
|
+
const path = paths[i];
|
|
70
|
+
target[path] ??= {};
|
|
71
|
+
target = target[path];
|
|
72
|
+
}
|
|
73
|
+
target[paths[paths.length - 1]] = value;
|
|
74
|
+
return target;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=objects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ShortHandSymbol","transformKeys","getDeepPath","source","paths","undefined","Array","isArray","target","path","applyShorthand","value","values","prop","applyValue","has","transform","find","t","push","Object","assign","setDeepPath","i","length"],"sourceRoot":"../../../../src","sources":["runtime/utils/objects.ts"],"mappings":";;AAAA;AACA,SAASA,eAAe,QAAQ,+BAA4B;AAC5D,SAASC,aAAa,QAAQ,8BAA2B;AAEzD,OAAO,SAASC,WAAWA,CAACC,MAAW,EAAEC,KAAgC,EAAE;EACzE,IAAI,CAACD,MAAM,EAAE;IACX;EACF;EAEA,IAAIC,KAAK,KAAK,KAAK,EAAE;IACnB,OAAOC,SAAS;EAClB;EAEA,IAAIC,KAAK,CAACC,OAAO,CAACH,KAAK,CAAC,EAAE;IACxB,IAAII,MAAM,GAAGL,MAAM;IAEnB,KAAK,MAAMM,IAAI,IAAIL,KAAK,EAAE;MACxB,IAAI,OAAOI,MAAM,KAAK,QAAQ,IAAI,CAACA,MAAM,IAAI,EAAEC,IAAI,IAAID,MAAM,CAAC,EAAE;QAC9D,OAAOH,SAAS;MAClB;MAEAG,MAAM,GAAGA,MAAM,CAACC,IAAI,CAAC;IACvB;IAEA,OAAOD,MAAM;EACf,CAAC,MAAM;IACL,OAAOL,MAAM,GAAGC,KAAK,CAAC;EACxB;AACF;AAEA,OAAO,SAASM,cAAcA,CAACC,KAAU,EAAE;EACzC,IAAIA,KAAK,KAAKN,SAAS,EAAE;IACvB;EACF;EAEA,MAAMG,MAA+B,GAAG;IAAE,CAACR,eAAe,GAAG;EAAK,CAAC;EAEnE,MAAMY,MAAM,GAAGD,KAA4B;EAE3C,KAAK,MAAM,CAACA,KAAK,EAAEE,IAAI,CAAC,IAAID,MAAM,EAAE;IAClCJ,MAAM,CAACK,IAAI,CAAC,GAAGF,KAAK;EACtB;EAEA,OAAOH,MAAM;AACf;AAEA,OAAO,SAASM,UAAUA,CACxBN,MAA2B,EAC3BK,IAAY,EACZF,KAAU,EACV;EACA,IAAIA,KAAK,KAAKN,SAAS,EAAE;IACvB;EACF;EAEA,IAAIJ,aAAa,CAACc,GAAG,CAACF,IAAI,CAAC,EAAE;IAC3B,IAAI,CAACP,KAAK,CAACC,OAAO,CAACC,MAAM,CAACQ,SAAS,CAAC,EAAE;MACpCR,MAAM,CAACQ,SAAS,GAAG,EAAE;IACvB;IAEA,MAAMA,SAAS,GAAGR,MAAM,CAACQ,SAAS,CAACC,IAAI,CAAEC,CAAM,IAAKA,CAAC,CAACL,IAAI,CAAC,KAAKR,SAAS,CAAC;IAE1E,IAAIW,SAAS,EAAE;MACbA,SAAS,CAACH,IAAI,CAAC,GAAGF,KAAK;IACzB,CAAC,MAAM;MACLH,MAAM,CAACQ,SAAS,CAACG,IAAI,CAAC;QAAE,CAACN,IAAI,GAAGF;MAAM,CAAC,CAAC;IAC1C;IACA;EACF,CAAC,MAAM,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,IAAIX,eAAe,IAAIW,KAAK,EAAE;IACzE,OAAOA,KAAK,CAACX,eAAe,CAAC;IAC7BoB,MAAM,CAACC,MAAM,CAACb,MAAM,EAAEG,KAAK,CAAC;IAC5B;EACF;EAEAH,MAAM,CAACK,IAAI,CAAC,GAAGF,KAAK;AACtB;AAEA,OAAO,SAASW,WAAWA,CACzBd,MAA2B,EAC3BJ,KAA4C,EAC5CO,KAAU,EACV;EACA,IAAI,OAAOP,KAAK,KAAK,QAAQ,EAAE;IAC7BI,MAAM,CAACJ,KAAK,CAAC,GAAGO,KAAK;IACrB,OAAOH,MAAM;EACf;EAEA,KAAK,IAAIe,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGnB,KAAK,CAACoB,MAAM,GAAG,CAAC,EAAED,CAAC,EAAE,EAAE;IACzC,MAAMd,IAAI,GAAGL,KAAK,CAACmB,CAAC,CAAE;IACtBf,MAAM,CAACC,IAAI,CAAC,KAAK,CAAC,CAAC;IACnBD,MAAM,GAAGA,MAAM,CAACC,IAAI,CAAC;EACvB;EAEAD,MAAM,CAACJ,KAAK,CAACA,KAAK,CAACoB,MAAM,GAAG,CAAC,CAAC,CAAE,GAAGb,KAAK;EAExC,OAAOH,MAAM;AACf","ignoreList":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
export const Specificity = {
|
|
6
|
+
Order: 0,
|
|
7
|
+
ClassName: 1,
|
|
8
|
+
Important: 2,
|
|
9
|
+
Inline: 3,
|
|
10
|
+
PseudoElements: 4,
|
|
11
|
+
PseudoClass: 1
|
|
12
|
+
// Id: 0, - We don't support ID yet
|
|
13
|
+
// StyleSheet: 0, - We don't support multiple stylesheets
|
|
14
|
+
};
|
|
15
|
+
const Important = Specificity.Important;
|
|
16
|
+
const Inline = Specificity.Inline;
|
|
17
|
+
const PseudoElements = Specificity.PseudoElements;
|
|
18
|
+
const ClassName = Specificity.ClassName;
|
|
19
|
+
const Order = Specificity.Order;
|
|
20
|
+
export const inlineSpecificity = [];
|
|
21
|
+
inlineSpecificity[Specificity.Inline] = 1;
|
|
22
|
+
export const specificityCompareFn = (a, b) => {
|
|
23
|
+
const aSpec = a.s ? a.s : inlineSpecificity;
|
|
24
|
+
const bSpec = b.s ? b.s : inlineSpecificity;
|
|
25
|
+
if (aSpec[Important] !== bSpec[Important]) {
|
|
26
|
+
return (aSpec[Important] || 0) - (bSpec[Important] || 0);
|
|
27
|
+
} else if (aSpec[Inline] !== bSpec[Inline]) {
|
|
28
|
+
return (aSpec[Inline] || 0) - (bSpec[Inline] || 0);
|
|
29
|
+
} else if (aSpec[PseudoElements] !== bSpec[PseudoElements]) {
|
|
30
|
+
return (aSpec[PseudoElements] || 0) - (bSpec[PseudoElements] || 0);
|
|
31
|
+
} else if (aSpec[ClassName] !== bSpec[ClassName]) {
|
|
32
|
+
return (aSpec[ClassName] || 0) - (bSpec[ClassName] || 0);
|
|
33
|
+
} else if (aSpec[Order] !== bSpec[Order]) {
|
|
34
|
+
return (aSpec[Order] || 0) - (bSpec[Order] || 0);
|
|
35
|
+
} else {
|
|
36
|
+
return 0;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=specificity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Specificity","Order","ClassName","Important","Inline","PseudoElements","PseudoClass","inlineSpecificity","specificityCompareFn","a","b","aSpec","s","bSpec"],"sourceRoot":"../../../../src","sources":["runtime/utils/specificity.ts"],"mappings":";;AAAA;;AAIA,OAAO,MAAMA,WAAW,GAAG;EACzBC,KAAK,EAAE,CAAC;EACRC,SAAS,EAAE,CAAC;EACZC,SAAS,EAAE,CAAC;EACZC,MAAM,EAAE,CAAC;EACTC,cAAc,EAAE,CAAC;EACjBC,WAAW,EAAE;EACb;EACA;AACF,CAAC;AAED,MAAMH,SAAS,GAAGH,WAAW,CAACG,SAAS;AACvC,MAAMC,MAAM,GAAGJ,WAAW,CAACI,MAAM;AACjC,MAAMC,cAAc,GAAGL,WAAW,CAACK,cAAc;AACjD,MAAMH,SAAS,GAAGF,WAAW,CAACE,SAAS;AACvC,MAAMD,KAAK,GAAGD,WAAW,CAACC,KAAK;AAE/B,OAAO,MAAMM,iBAAmC,GAAG,EAAE;AACrDA,iBAAiB,CAACP,WAAW,CAACI,MAAM,CAAC,GAAG,CAAC;AAEzC,OAAO,MAAMI,oBAAoB,GAAGA,CAClCC,CAAgC,EAChCC,CAAgC,KAC7B;EACH,MAAMC,KAAK,GAAGF,CAAC,CAACG,CAAC,GAAGH,CAAC,CAACG,CAAC,GAAGL,iBAAiB;EAC3C,MAAMM,KAAK,GAAGH,CAAC,CAACE,CAAC,GAAGF,CAAC,CAACE,CAAC,GAAGL,iBAAiB;EAE3C,IAAII,KAAK,CAACR,SAAS,CAAC,KAAKU,KAAK,CAACV,SAAS,CAAC,EAAE;IACzC,OAAO,CAACQ,KAAK,CAACR,SAAS,CAAC,IAAI,CAAC,KAAKU,KAAK,CAACV,SAAS,CAAC,IAAI,CAAC,CAAC;EAC1D,CAAC,MAAM,IAAIQ,KAAK,CAACP,MAAM,CAAC,KAAKS,KAAK,CAACT,MAAM,CAAC,EAAE;IAC1C,OAAO,CAACO,KAAK,CAACP,MAAM,CAAC,IAAI,CAAC,KAAKS,KAAK,CAACT,MAAM,CAAC,IAAI,CAAC,CAAC;EACpD,CAAC,MAAM,IAAIO,KAAK,CAACN,cAAc,CAAC,KAAKQ,KAAK,CAACR,cAAc,CAAC,EAAE;IAC1D,OAAO,CAACM,KAAK,CAACN,cAAc,CAAC,IAAI,CAAC,KAAKQ,KAAK,CAACR,cAAc,CAAC,IAAI,CAAC,CAAC;EACpE,CAAC,MAAM,IAAIM,KAAK,CAACT,SAAS,CAAC,KAAKW,KAAK,CAACX,SAAS,CAAC,EAAE;IAChD,OAAO,CAACS,KAAK,CAACT,SAAS,CAAC,IAAI,CAAC,KAAKW,KAAK,CAACX,SAAS,CAAC,IAAI,CAAC,CAAC;EAC1D,CAAC,MAAM,IAAIS,KAAK,CAACV,KAAK,CAAC,KAAKY,KAAK,CAACZ,KAAK,CAAC,EAAE;IACxC,OAAO,CAACU,KAAK,CAACV,KAAK,CAAC,IAAI,CAAC,KAAKY,KAAK,CAACZ,KAAK,CAAC,IAAI,CAAC,CAAC;EAClD,CAAC,MAAM;IACL,OAAO,CAAC;EACV;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export function isStyleDescriptorArray(value) {
|
|
4
|
+
if (Array.isArray(value)) {
|
|
5
|
+
// If its an array and the first item is an object, the only allowed value is an array
|
|
6
|
+
return typeof value[0] === "object" ? Array.isArray(value[0]) : true;
|
|
7
|
+
}
|
|
8
|
+
return false;
|
|
9
|
+
}
|
|
10
|
+
export function isStyleFunction(value) {
|
|
11
|
+
if (Array.isArray(value)) {
|
|
12
|
+
return typeof value[0] === "object" ? Object.keys(value[0]).length === 0 : false;
|
|
13
|
+
}
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=style-value.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["isStyleDescriptorArray","value","Array","isArray","isStyleFunction","Object","keys","length"],"sourceRoot":"../../../../src","sources":["runtime/utils/style-value.ts"],"mappings":";;AAEA,OAAO,SAASA,sBAAsBA,CACpCC,KAAc,EACc;EAC5B,IAAIC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;IACxB;IACA,OAAO,OAAOA,KAAK,CAAC,CAAC,CAAC,KAAK,QAAQ,GAAGC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;EACtE;EAEA,OAAO,KAAK;AACd;AAEA,OAAO,SAASG,eAAeA,CAC7BH,KAAsB,EACE;EACxB,IAAIC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;IACxB,OAAO,OAAOA,KAAK,CAAC,CAAC,CAAC,KAAK,QAAQ,GAC/BI,MAAM,CAACC,IAAI,CAACL,KAAK,CAAC,CAAC,CAAC,CAAC,CAACM,MAAM,KAAK,CAAC,GAClC,KAAK;EACX;EAEA,OAAO,KAAK;AACd","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["runtime/utils/utils.types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createElement } from "react";
|
|
4
|
+
import { Appearance } from "react-native";
|
|
5
|
+
import { assignStyle } from "./assign-style.js";
|
|
6
|
+
export const styled = (baseComponent, mapping, _options) => {
|
|
7
|
+
return props => {
|
|
8
|
+
return useCssElement(baseComponent, mapping, props);
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export const useCssElement = (component, incomingProps, mapping) => {
|
|
12
|
+
let props = {
|
|
13
|
+
...incomingProps
|
|
14
|
+
};
|
|
15
|
+
for (const [key, value] of Object.entries(mapping)) {
|
|
16
|
+
const source = props[key];
|
|
17
|
+
if (!source) {
|
|
18
|
+
continue;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
|
22
|
+
delete props[key];
|
|
23
|
+
let target = typeof value === "object" ? value.target : value;
|
|
24
|
+
if (typeof target === "boolean") {
|
|
25
|
+
target = key;
|
|
26
|
+
}
|
|
27
|
+
props = assignStyle({
|
|
28
|
+
$$css: true,
|
|
29
|
+
[key]: source
|
|
30
|
+
}, target.split("."), props);
|
|
31
|
+
}
|
|
32
|
+
return /*#__PURE__*/createElement(component, props);
|
|
33
|
+
};
|
|
34
|
+
export const colorScheme = {
|
|
35
|
+
get() {
|
|
36
|
+
return Appearance.getColorScheme();
|
|
37
|
+
},
|
|
38
|
+
set(name) {
|
|
39
|
+
Appearance.setColorScheme(name);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
export function vars(variables) {
|
|
43
|
+
const $variables = {};
|
|
44
|
+
for (const [key, value] of Object.entries(variables)) {
|
|
45
|
+
if (key.startsWith("--")) {
|
|
46
|
+
$variables[key] = value.toString();
|
|
47
|
+
} else {
|
|
48
|
+
$variables[`--${key}`] = value.toString();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return $variables;
|
|
52
|
+
}
|
|
53
|
+
export const useNativeVariable = () => {
|
|
54
|
+
throw new Error("useNativeVariable is not supported in web");
|
|
55
|
+
};
|
|
56
|
+
export const useUnstableNativeVariable = () => {
|
|
57
|
+
throw new Error("useUnstableNativeVariable is not supported in web");
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createElement","Appearance","assignStyle","styled","baseComponent","mapping","_options","props","useCssElement","component","incomingProps","key","value","Object","entries","source","target","$$css","split","colorScheme","get","getColorScheme","set","name","setColorScheme","vars","variables","$variables","startsWith","toString","useNativeVariable","Error","useUnstableNativeVariable"],"sourceRoot":"../../../../src","sources":["runtime/web/api.ts"],"mappings":";;AAAA,SAASA,aAAa,QAA6B,OAAO;AAC1D,SAASC,UAAU,QAAQ,cAAc;AAUzC,SAASC,WAAW,QAAQ,mBAAgB;AAE5C,OAAO,MAAMC,MAAM,GAAGA,CAIpBC,aAAgB,EAChBC,OAAU,EACVC,QAAwB,KACrB;EACH,OAAQC,KAAwC,IAAK;IACnD,OAAOC,aAAa,CAACJ,aAAa,EAAEC,OAAO,EAAEE,KAAK,CAAC;EACrD,CAAC;AACH,CAAC;AAED,OAAO,MAAMC,aAAa,GAAGA,CAC3BC,SAAY,EACZC,aAAoB,EACpBL,OAA+B,KAC5B;EACH,IAAIE,KAAK,GAAG;IAAE,GAAGG;EAAc,CAAC;EAEhC,KAAK,MAAM,CAACC,GAAG,EAAEC,KAAK,CAAC,IAAIC,MAAM,CAACC,OAAO,CAACT,OAAO,CAAC,EAAE;IAClD,MAAMU,MAAe,GAAGR,KAAK,CAACI,GAAG,CAAC;IAClC,IAAI,CAACI,MAAM,EAAE;MACX;IACF;;IAEA;IACA,OAAOR,KAAK,CAACI,GAAG,CAAC;IAEjB,IAAIK,MAAwB,GAC1B,OAAOJ,KAAK,KAAK,QAAQ,GAAGA,KAAK,CAACI,MAAM,GAAGJ,KAAK;IAElD,IAAI,OAAOI,MAAM,KAAK,SAAS,EAAE;MAC/BA,MAAM,GAAGL,GAAG;IACd;IAEAJ,KAAK,GAAGL,WAAW,CACjB;MAAEe,KAAK,EAAE,IAAI;MAAE,CAACN,GAAG,GAAGI;IAAO,CAAC,EAC9BC,MAAM,CAACE,KAAK,CAAC,GAAG,CAAC,EACjBX,KACF,CAAC;EACH;EAEA,oBAAOP,aAAa,CAACS,SAAS,EAAEF,KAAK,CAAC;AACxC,CAAC;AAED,OAAO,MAAMY,WAAwB,GAAG;EACtCC,GAAGA,CAAA,EAAG;IACJ,OAAOnB,UAAU,CAACoB,cAAc,CAAC,CAAC;EACpC,CAAC;EACDC,GAAGA,CAACC,IAAI,EAAE;IACRtB,UAAU,CAACuB,cAAc,CAACD,IAAI,CAAC;EACjC;AACF,CAAC;AAED,OAAO,SAASE,IAAIA,CAACC,SAAiD,EAAE;EACtE,MAAMC,UAAkC,GAAG,CAAC,CAAC;EAE7C,KAAK,MAAM,CAAChB,GAAG,EAAEC,KAAK,CAAC,IAAIC,MAAM,CAACC,OAAO,CAACY,SAAS,CAAC,EAAE;IACpD,IAAIf,GAAG,CAACiB,UAAU,CAAC,IAAI,CAAC,EAAE;MACxBD,UAAU,CAAChB,GAAG,CAAC,GAAGC,KAAK,CAACiB,QAAQ,CAAC,CAAC;IACpC,CAAC,MAAM;MACLF,UAAU,CAAC,KAAKhB,GAAG,EAAE,CAAC,GAAGC,KAAK,CAACiB,QAAQ,CAAC,CAAC;IAC3C;EACF;EACA,OAAOF,UAAU;AACnB;AAEA,OAAO,MAAMG,iBAAiB,GAAGA,CAAA,KAAM;EACrC,MAAM,IAAIC,KAAK,CAAC,2CAA2C,CAAC;AAC9D,CAAC;AAED,OAAO,MAAMC,yBAAyB,GAAGA,CAAA,KAAM;EAC7C,MAAM,IAAID,KAAK,CAAC,mDAAmD,CAAC;AACtE,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export function assignStyle(value, targets, props) {
|
|
5
|
+
const target = targets.shift();
|
|
6
|
+
if (!target) return {};
|
|
7
|
+
if (targets.length === 0) {
|
|
8
|
+
if (typeof props[target] === "function") {
|
|
9
|
+
const cb = props[target];
|
|
10
|
+
props[target] = (...args) => {
|
|
11
|
+
return [cb(...args), value];
|
|
12
|
+
};
|
|
13
|
+
} else {
|
|
14
|
+
props[target] = [props[target], value];
|
|
15
|
+
}
|
|
16
|
+
return props;
|
|
17
|
+
} else {
|
|
18
|
+
props[target] ??= {};
|
|
19
|
+
assignStyle(value, targets, props[target]);
|
|
20
|
+
return props;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=assign-style.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["assignStyle","value","targets","props","target","shift","length","cb","args"],"sourceRoot":"../../../../src","sources":["runtime/web/assign-style.ts"],"mappings":";;AAAA;AACA,OAAO,SAASA,WAAWA,CACzBC,KAA0B,EAC1BC,OAAiB,EACjBC,KAA0B,EAC1B;EACA,MAAMC,MAAM,GAAGF,OAAO,CAACG,KAAK,CAAC,CAAC;EAE9B,IAAI,CAACD,MAAM,EAAE,OAAO,CAAC,CAAC;EAEtB,IAAIF,OAAO,CAACI,MAAM,KAAK,CAAC,EAAE;IACxB,IAAI,OAAOH,KAAK,CAACC,MAAM,CAAC,KAAK,UAAU,EAAE;MACvC,MAAMG,EAAE,GAAGJ,KAAK,CAACC,MAAM,CAAC;MACxBD,KAAK,CAACC,MAAM,CAAC,GAAG,CAAC,GAAGI,IAAW,KAAK;QAClC,OAAO,CAACD,EAAE,CAAC,GAAGC,IAAI,CAAC,EAAEP,KAAK,CAAC;MAC7B,CAAC;IACH,CAAC,MAAM;MACLE,KAAK,CAACC,MAAM,CAAC,GAAG,CAACD,KAAK,CAACC,MAAM,CAAC,EAAEH,KAAK,CAAC;IACxC;IACA,OAAOE,KAAK;EACd,CAAC,MAAM;IACLA,KAAK,CAACC,MAAM,CAAC,KAAK,CAAC,CAAC;IACpBJ,WAAW,CAACC,KAAK,EAAEC,OAAO,EAAEC,KAAK,CAACC,MAAM,CAAC,CAAC;IAC1C,OAAOD,KAAK;EACd;AACF","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["runtime/web/index.ts"],"mappings":";;AAAA;AACA,OAAO,YAAS;AAGhB,cAAc,UAAO","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["runtime/web/metro.ts"],"mappings":";;AAAA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.config.d.ts","sourceRoot":"","sources":["../../../../example/app.config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;yBAE7C,YAAY,aAAa,KAAG,UAAU;AAAtD,wBAqBE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../../../example/src/App.tsx"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAC;AAEvB,MAAM,CAAC,OAAO,UAAU,GAAG,4CAQ1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allowedModules.d.ts","sourceRoot":"","sources":["../../../../../src/babel/allowedModules.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,cAAc,aAE1B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import tBabelTypes, { type CallExpression } from "@babel/types";
|
|
2
|
+
export type BabelTypes = typeof tBabelTypes;
|
|
3
|
+
export interface PluginOpts {
|
|
4
|
+
target?: string;
|
|
5
|
+
runtime?: string;
|
|
6
|
+
commonjs?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface PluginState {
|
|
9
|
+
opts?: PluginOpts;
|
|
10
|
+
filename: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function getInteropRequireDefaultSource(init: CallExpression, t: BabelTypes): string | undefined;
|
|
13
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/babel/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,EAAE,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAEhE,MAAM,MAAM,UAAU,GAAG,OAAO,WAAW,CAAC;AAE5C,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,cAAc,EACpB,CAAC,EAAE,UAAU,sBAsBd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import-plugin.d.ts","sourceRoot":"","sources":["../../../../../src/babel/import-plugin.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,WAAW,EACjB,MAAM,WAAW,CAAC;AAYnB,MAAM,CAAC,OAAO,WAAW,EACvB,KAAK,EAAE,CAAC,GACT,EAAE;IACD,KAAK,EAAE,UAAU,CAAC;CACnB,GAAG,SAAS,CAAC,WAAW,CAAC,CAsJzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/babel/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type NodePath } from "@babel/traverse";
|
|
2
|
+
import tBabelTypes, { type ImportDeclaration, type ObjectPattern, type Statement, type VariableDeclaration } from "@babel/types";
|
|
3
|
+
type BabelTypes = typeof tBabelTypes;
|
|
4
|
+
export declare function handleReactNativeWebImport(declaration: ImportDeclaration, t: BabelTypes, filename: string): Statement[] | undefined;
|
|
5
|
+
export declare function handleReactNativeWebIdentifierRequire(path: NodePath<VariableDeclaration>, t: BabelTypes, id: string, source: string, filename: string): tBabelTypes.VariableDeclaration[] | undefined;
|
|
6
|
+
export declare function handleReactNativeWebObjectPatternRequire(path: NodePath<VariableDeclaration>, t: BabelTypes, id: ObjectPattern, source: string, filename: string): tBabelTypes.Statement[] | undefined;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=react-native-web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-native-web.d.ts","sourceRoot":"","sources":["../../../../../src/babel/react-native-web.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,WAAW,EAAE,EAClB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,mBAAmB,EACzB,MAAM,cAAc,CAAC;AAItB,KAAK,UAAU,GAAG,OAAO,WAAW,CAAC;AAgCrC,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,iBAAiB,EAC9B,CAAC,EAAE,UAAU,EACb,QAAQ,EAAE,MAAM,GACf,SAAS,EAAE,GAAG,SAAS,CA6DzB;AAED,wBAAgB,qCAAqC,CACnD,IAAI,EAAE,QAAQ,CAAC,mBAAmB,CAAC,EACnC,CAAC,EAAE,UAAU,EACb,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,iDA0CjB;AAED,wBAAgB,wCAAwC,CACtD,IAAI,EAAE,QAAQ,CAAC,mBAAmB,CAAC,EACnC,CAAC,EAAE,UAAU,EACb,EAAE,EAAE,aAAa,EACjB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,uCA4DjB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type NodePath } from "@babel/traverse";
|
|
2
|
+
import tBabelTypes, { type ImportDeclaration, type ObjectPattern, type Statement, type VariableDeclaration } from "@babel/types";
|
|
3
|
+
type BabelTypes = typeof tBabelTypes;
|
|
4
|
+
export declare function handleReactNativeImport(declaration: ImportDeclaration, t: BabelTypes, filename: string): Statement[] | undefined;
|
|
5
|
+
export declare function handleReactNativeIdentifierRequire(path: NodePath<VariableDeclaration>, t: BabelTypes, id: string, source: string, filename: string): tBabelTypes.VariableDeclaration[] | undefined;
|
|
6
|
+
export declare function handleReactNativeObjectPatternRequire(path: NodePath<VariableDeclaration>, t: BabelTypes, id: ObjectPattern, source: string, filename: string): tBabelTypes.Statement[] | undefined;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=react-native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-native.d.ts","sourceRoot":"","sources":["../../../../../src/babel/react-native.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,WAAW,EAAE,EAClB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,mBAAmB,EACzB,MAAM,cAAc,CAAC;AAItB,KAAK,UAAU,GAAG,OAAO,WAAW,CAAC;AAgCrC,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,iBAAiB,EAC9B,CAAC,EAAE,UAAU,EACb,QAAQ,EAAE,MAAM,GACf,SAAS,EAAE,GAAG,SAAS,CA6DzB;AAED,wBAAgB,kCAAkC,CAChD,IAAI,EAAE,QAAQ,CAAC,mBAAmB,CAAC,EACnC,CAAC,EAAE,UAAU,EACb,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,iDA0CjB;AAED,wBAAgB,qCAAqC,CACnD,IAAI,EAAE,QAAQ,CAAC,mBAAmB,CAAC,EACnC,CAAC,EAAE,UAAU,EACb,EAAE,EAAE,aAAa,EACjB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,uCA4DjB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { DeclarationBlock, ParsedComponent, Rule, TokenOrValue } from "lightningcss";
|
|
2
|
+
import type { StyleRuleMapping } from "./compiler.types";
|
|
3
|
+
import type { StylesheetBuilder } from "./stylesheet";
|
|
4
|
+
export interface PropAtRule {
|
|
5
|
+
type: "unknown";
|
|
6
|
+
value: {
|
|
7
|
+
name: "prop";
|
|
8
|
+
prelude: Extract<TokenOrValue, {
|
|
9
|
+
type: "token";
|
|
10
|
+
}>[];
|
|
11
|
+
block: Extract<TokenOrValue, {
|
|
12
|
+
type: "token";
|
|
13
|
+
}>[] | null;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/***********************************************
|
|
17
|
+
* @react-native *
|
|
18
|
+
***********************************************/
|
|
19
|
+
export interface ReactNativeAtRule {
|
|
20
|
+
type: "custom";
|
|
21
|
+
value: {
|
|
22
|
+
name: "react-native";
|
|
23
|
+
prelude: null | Extract<ParsedComponent, {
|
|
24
|
+
type: "repeated";
|
|
25
|
+
}>;
|
|
26
|
+
body: {
|
|
27
|
+
type: "declaration-list";
|
|
28
|
+
value: Pick<DeclarationBlock, "declarations">;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export declare function maybeMutateReactNativeOptions(rule: Rule | ReactNativeAtRule, builder: StylesheetBuilder): void;
|
|
33
|
+
export declare function parsePropAtRule(rules?: (Rule | PropAtRule)[]): StyleRuleMapping;
|
|
34
|
+
//# sourceMappingURL=atRules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"atRules.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/atRules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EACf,IAAI,EACJ,YAAY,EACb,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,OAAO,CAAC,YAAY,EAAE;YAAE,IAAI,EAAE,OAAO,CAAA;SAAE,CAAC,EAAE,CAAC;QACpD,KAAK,EAAE,OAAO,CAAC,YAAY,EAAE;YAAE,IAAI,EAAE,OAAO,CAAA;SAAE,CAAC,EAAE,GAAG,IAAI,CAAC;KAC1D,CAAC;CACH;AAED;;iDAEiD;AAEjD,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE;QACL,IAAI,EAAE,cAAc,CAAC;QACrB,OAAO,EAAE,IAAI,GAAG,OAAO,CAAC,eAAe,EAAE;YAAE,IAAI,EAAE,UAAU,CAAA;SAAE,CAAC,CAAC;QAC/D,IAAI,EAAE;YACJ,IAAI,EAAE,kBAAkB,CAAC;YACzB,KAAK,EAAE,IAAI,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC;SAC/C,CAAC;KACH,CAAC;CACH;AAED,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,IAAI,GAAG,iBAAiB,EAC9B,OAAO,EAAE,iBAAiB,QA+B3B;AAUD,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,GAAG,UAAU,CAAC,EAAE,oBAgC5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attributes.test.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/attributes.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CompilerOptions } from "./compiler.types";
|
|
2
|
+
/**
|
|
3
|
+
* Converts a CSS file to a collection of style declarations that can be used with the StyleSheet API
|
|
4
|
+
*
|
|
5
|
+
* @param code - The CSS file contents
|
|
6
|
+
* @param options - Compiler options
|
|
7
|
+
* @returns A `ReactNativeCssStyleSheet` that can be passed to `StyleSheet.register` or used with a custom runtime
|
|
8
|
+
*/
|
|
9
|
+
export declare function compile(code: Buffer | string, options?: CompilerOptions): {
|
|
10
|
+
stylesheet: () => import("./compiler.types").ReactNativeCssStyleSheet_V2;
|
|
11
|
+
warnings: () => {
|
|
12
|
+
properties?: string[];
|
|
13
|
+
values?: Record<string, unknown[]>;
|
|
14
|
+
functions?: string[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=compiler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compiler.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/compiler.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,eAAe,EAAkB,MAAM,kBAAkB,CAAC;AASxE;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,OAAO,GAAE,eAAoB;;;;;;;EAmF3E"}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import type { Debugger } from "debug";
|
|
2
|
+
import type { MediaFeatureNameFor_MediaFeatureId } from "lightningcss";
|
|
3
|
+
import { VAR_SYMBOL } from "../runtime/native/reactivity";
|
|
4
|
+
export interface CompilerOptions {
|
|
5
|
+
inlineRem?: number | false;
|
|
6
|
+
grouping?: (string | RegExp)[];
|
|
7
|
+
selectorPrefix?: string;
|
|
8
|
+
stylesheetOrder?: number;
|
|
9
|
+
features?: FeatureFlagRecord;
|
|
10
|
+
logger?: (message: string) => void | Debugger;
|
|
11
|
+
/** Strip unused variables declarations. Defaults: false */
|
|
12
|
+
stripUnusedVariables?: boolean;
|
|
13
|
+
/** @internal */
|
|
14
|
+
ignorePropertyWarningRegex?: (string | RegExp)[];
|
|
15
|
+
preserveVariables?: boolean;
|
|
16
|
+
hexColors?: boolean;
|
|
17
|
+
colorPrecision?: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A `react-native-css` StyleSheet
|
|
21
|
+
*/
|
|
22
|
+
export type ReactNativeCssStyleSheet = ReactNativeCssStyleSheet_V2;
|
|
23
|
+
export interface ReactNativeCssStyleSheet_V2 {
|
|
24
|
+
/** Feature flags */
|
|
25
|
+
f?: FeatureFlagRecord;
|
|
26
|
+
/** rem */
|
|
27
|
+
r?: number;
|
|
28
|
+
/** StyleRuleSets */
|
|
29
|
+
s?: (readonly [string, StyleRuleSet])[];
|
|
30
|
+
/** KeyFrames */
|
|
31
|
+
k?: Animation_V2[];
|
|
32
|
+
/** Root Variables */
|
|
33
|
+
vr?: RootVariables;
|
|
34
|
+
/** Universal Variables */
|
|
35
|
+
vu?: RootVariables;
|
|
36
|
+
}
|
|
37
|
+
/******************************** Styles ********************************/
|
|
38
|
+
/**
|
|
39
|
+
* The JS representation of a style object
|
|
40
|
+
*
|
|
41
|
+
* This CSS rule is a single StyleRuleSet, made up of multiple StyleRules
|
|
42
|
+
*
|
|
43
|
+
* ```css
|
|
44
|
+
* .my-class {
|
|
45
|
+
* color: red;
|
|
46
|
+
* }
|
|
47
|
+
* ```
|
|
48
|
+
* Properties are split into normal and important properties, and then split
|
|
49
|
+
* into different StyleRules depending on their specificity, conditions, etc
|
|
50
|
+
*/
|
|
51
|
+
export type StyleRuleSet = StyleRule[];
|
|
52
|
+
export interface StyleRule {
|
|
53
|
+
/** Specificity */
|
|
54
|
+
s: SpecificityArray;
|
|
55
|
+
/** Declarations */
|
|
56
|
+
d?: StyleDeclaration[];
|
|
57
|
+
/** Variables */
|
|
58
|
+
v?: VariableDescriptor[];
|
|
59
|
+
/** Named Containers */
|
|
60
|
+
c?: string[];
|
|
61
|
+
/** Declarations use variables */
|
|
62
|
+
dv?: number;
|
|
63
|
+
target?: string | string[] | false;
|
|
64
|
+
/**
|
|
65
|
+
* Conditionals
|
|
66
|
+
*/
|
|
67
|
+
/** MediaQuery */
|
|
68
|
+
m?: MediaCondition[];
|
|
69
|
+
/** PseudoClassesQuery */
|
|
70
|
+
p?: PseudoClassesQuery;
|
|
71
|
+
/** Container Query */
|
|
72
|
+
cq?: ContainerQuery[];
|
|
73
|
+
/** Attribute Conditions */
|
|
74
|
+
aq?: AttributeQuery[];
|
|
75
|
+
/**
|
|
76
|
+
* Animations and Transitions
|
|
77
|
+
*/
|
|
78
|
+
/** Animations */
|
|
79
|
+
a?: boolean;
|
|
80
|
+
}
|
|
81
|
+
export type StyleDeclaration =
|
|
82
|
+
/** This is a static style object */
|
|
83
|
+
Record<string, StyleDescriptor>
|
|
84
|
+
/** A style that needs to be set */
|
|
85
|
+
| [StyleDescriptor, string | string[]]
|
|
86
|
+
/** A value that can only be computed at runtime */
|
|
87
|
+
| [StyleFunction, string | string[]]
|
|
88
|
+
/** A value that can only be computed at runtime, and only after styles have been calculated */
|
|
89
|
+
| [StyleFunction, string | string[], 1];
|
|
90
|
+
export type StyleDescriptor = string | number | boolean | undefined | StyleFunction | StyleDescriptor[];
|
|
91
|
+
export type StyleFunction = [
|
|
92
|
+
Record<never, never>,
|
|
93
|
+
string
|
|
94
|
+
] | readonly [
|
|
95
|
+
Record<never, never>,
|
|
96
|
+
string
|
|
97
|
+
] | [
|
|
98
|
+
Record<never, never>,
|
|
99
|
+
string,
|
|
100
|
+
StyleDescriptor
|
|
101
|
+
] | readonly [
|
|
102
|
+
Record<never, never>,
|
|
103
|
+
string,
|
|
104
|
+
StyleDescriptor
|
|
105
|
+
] | [
|
|
106
|
+
Record<never, never>,
|
|
107
|
+
string,
|
|
108
|
+
StyleDescriptor,
|
|
109
|
+
1
|
|
110
|
+
] | readonly [
|
|
111
|
+
Record<never, never>,
|
|
112
|
+
string,
|
|
113
|
+
StyleDescriptor,
|
|
114
|
+
1
|
|
115
|
+
];
|
|
116
|
+
/****************************** Variables *******************************/
|
|
117
|
+
export type VariableDescriptor = [string, StyleDescriptor];
|
|
118
|
+
export type VariableRecord = Record<string, VariableValue[]>;
|
|
119
|
+
export type VariableValue = [StyleDescriptor] | [StyleDescriptor, MediaCondition[]];
|
|
120
|
+
export type RootVariables = [string, VariableValue[]][];
|
|
121
|
+
export type InlineVariable = {
|
|
122
|
+
[VAR_SYMBOL]: "inline";
|
|
123
|
+
[key: string]: unknown | undefined;
|
|
124
|
+
};
|
|
125
|
+
/****************************** Animations V2 ******************************/
|
|
126
|
+
export type Animation_V2 = [string, AnimationKeyframes_V2[]];
|
|
127
|
+
export type AnimationRecord = Record<string, AnimationKeyframes_V2[]>;
|
|
128
|
+
export type AnimationKeyframes_V2 = [string | number, StyleDeclaration[]];
|
|
129
|
+
/****************************** Conditions ******************************/
|
|
130
|
+
export type MediaCondition = ["!!", MediaFeatureNameFor_MediaFeatureId] | ["!", MediaCondition] | ["&", MediaCondition[]] | ["|", MediaCondition[]] | [
|
|
131
|
+
MediaFeatureComparison,
|
|
132
|
+
MediaFeatureNameFor_MediaFeatureId | MediaFeatureNameFor_MediaFeatureId,
|
|
133
|
+
StyleDescriptor
|
|
134
|
+
] | [
|
|
135
|
+
"[]",
|
|
136
|
+
MediaFeatureNameFor_MediaFeatureId,
|
|
137
|
+
StyleDescriptor,
|
|
138
|
+
MediaFeatureComparison,
|
|
139
|
+
StyleDescriptor,
|
|
140
|
+
MediaFeatureComparison
|
|
141
|
+
];
|
|
142
|
+
export type MediaFeatureComparison = "=" | ">" | ">=" | "<" | "<=";
|
|
143
|
+
export interface PseudoClassesQuery {
|
|
144
|
+
/** Hover */
|
|
145
|
+
h?: 1;
|
|
146
|
+
/** Active */
|
|
147
|
+
a?: 1;
|
|
148
|
+
/** Focus */
|
|
149
|
+
f?: 1;
|
|
150
|
+
}
|
|
151
|
+
type AttributeQueryType = "a" | "d";
|
|
152
|
+
export type AttributeQuery = [AttributeQueryType, string] | [AttributeQueryType, string, "!"] | [AttributeQueryType, string, AttrSelectorOperator, string] | [AttributeQueryType, string, AttrSelectorOperator, string, "i" | "s"];
|
|
153
|
+
export type AttrSelectorOperator = "=" | "~=" | "|=" | "^=" | "$=" | "*=";
|
|
154
|
+
/****************************** Containers *****************************/
|
|
155
|
+
export interface ContainerQuery {
|
|
156
|
+
/** Name */
|
|
157
|
+
n?: string | null;
|
|
158
|
+
m?: MediaCondition;
|
|
159
|
+
p?: PseudoClassesQuery;
|
|
160
|
+
a?: AttributeQuery[];
|
|
161
|
+
}
|
|
162
|
+
/****************************** Specificity *****************************/
|
|
163
|
+
/**
|
|
164
|
+
* https://drafts.csswg.org/selectors/#specificity-rules
|
|
165
|
+
*
|
|
166
|
+
* This array is sorted by most common values when parsing a StyleSheet
|
|
167
|
+
*/
|
|
168
|
+
export type SpecificityArray = SpecificityValue[];
|
|
169
|
+
export type SpecificityValue = number | undefined;
|
|
170
|
+
/****************************** Compiler ********************************/
|
|
171
|
+
type FeatureFlags = never;
|
|
172
|
+
export type FeatureFlagRecord = Partial<Record<FeatureFlags, boolean>>;
|
|
173
|
+
/** @internal */
|
|
174
|
+
export type PathTokens = string | string[];
|
|
175
|
+
/** @internal */
|
|
176
|
+
export type StyleRuleMapping = Record<string, PathTokens>;
|
|
177
|
+
/**
|
|
178
|
+
* @internal
|
|
179
|
+
*/
|
|
180
|
+
export type LoggerOptions = {
|
|
181
|
+
logger: (message: string) => void;
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* @internal
|
|
185
|
+
*/
|
|
186
|
+
export interface CompilerCollection extends CompilerOptions {
|
|
187
|
+
features: FeatureFlagRecord;
|
|
188
|
+
rules: Map<string, StyleRule[]>;
|
|
189
|
+
keyframes: Map<string, AnimationKeyframes_V2[]>;
|
|
190
|
+
darkMode?: string | null;
|
|
191
|
+
rootVariables: VariableRecord;
|
|
192
|
+
universalVariables: VariableRecord;
|
|
193
|
+
selectorPrefix?: string;
|
|
194
|
+
appearanceOrder: number;
|
|
195
|
+
rem?: number | boolean;
|
|
196
|
+
varUsageCount: Map<string, number>;
|
|
197
|
+
}
|
|
198
|
+
export {};
|
|
199
|
+
//# sourceMappingURL=compiler.types.d.ts.map
|