react-native-css 3.0.7 → 3.1.0-rc.1
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/CHANGELOG.md +21 -0
- package/README.md +24 -0
- package/dist/commonjs/babel/helpers.js +7 -0
- package/dist/commonjs/babel/helpers.js.map +1 -1
- package/dist/commonjs/babel/import-plugin.js +20 -8
- package/dist/commonjs/babel/import-plugin.js.map +1 -1
- package/dist/commonjs/babel/react-native-web.js +17 -4
- package/dist/commonjs/babel/react-native-web.js.map +1 -1
- package/dist/commonjs/babel/react-native.js +9 -4
- package/dist/commonjs/babel/react-native.js.map +1 -1
- package/dist/commonjs/compiler/atRules.js +35 -0
- package/dist/commonjs/compiler/atRules.js.map +1 -1
- package/dist/commonjs/compiler/compiler.js +44 -28
- package/dist/commonjs/compiler/compiler.js.map +1 -1
- package/dist/commonjs/compiler/container-query.js +6 -1
- package/dist/commonjs/compiler/container-query.js.map +1 -1
- package/dist/commonjs/compiler/declarations.js +103 -62
- package/dist/commonjs/compiler/declarations.js.map +1 -1
- package/dist/commonjs/compiler/lightningcss-loader.js +11 -8
- package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -1
- package/dist/commonjs/compiler/media-query.js +16 -6
- package/dist/commonjs/compiler/media-query.js.map +1 -1
- package/dist/commonjs/compiler/selector-builder.js +15 -4
- package/dist/commonjs/compiler/selector-builder.js.map +1 -1
- package/dist/commonjs/compiler/stylesheet.js +11 -3
- package/dist/commonjs/compiler/stylesheet.js.map +1 -1
- package/dist/commonjs/components/ImageBackground.js +2 -6
- package/dist/commonjs/components/ImageBackground.js.map +1 -1
- package/dist/commonjs/components/KeyboardAvoidingView.js +2 -3
- package/dist/commonjs/components/KeyboardAvoidingView.js.map +1 -1
- package/dist/commonjs/components/index.cjs +46 -1
- package/dist/commonjs/components/index.cjs.map +1 -1
- package/dist/commonjs/jest/index.js +1 -1
- package/dist/commonjs/jest/index.js.map +1 -1
- package/dist/commonjs/metro/cache-version.js +43 -0
- package/dist/commonjs/metro/cache-version.js.map +1 -0
- package/dist/commonjs/metro/index.js +2 -0
- package/dist/commonjs/metro/index.js.map +1 -1
- package/dist/commonjs/metro/metro-transformer.js +16 -3
- package/dist/commonjs/metro/metro-transformer.js.map +1 -1
- package/dist/commonjs/metro/typescript.js +26 -6
- package/dist/commonjs/metro/typescript.js.map +1 -1
- package/dist/commonjs/metro/warnings.js +135 -0
- package/dist/commonjs/metro/warnings.js.map +1 -0
- package/dist/commonjs/native/api.js +13 -9
- package/dist/commonjs/native/api.js.map +1 -1
- package/dist/commonjs/native/conditions/attributes.js +16 -9
- package/dist/commonjs/native/conditions/attributes.js.map +1 -1
- package/dist/commonjs/native/conditions/container-query.js +11 -11
- package/dist/commonjs/native/conditions/container-query.js.map +1 -1
- package/dist/commonjs/native/conditions/media-query.js +1 -1
- package/dist/commonjs/native/conditions/media-query.js.map +1 -1
- package/dist/commonjs/native/react/interaction.js +10 -5
- package/dist/commonjs/native/react/interaction.js.map +1 -1
- package/dist/commonjs/native/react/rules.js +12 -5
- package/dist/commonjs/native/react/rules.js.map +1 -1
- package/dist/commonjs/native/react/useNativeCss.js +60 -11
- package/dist/commonjs/native/react/useNativeCss.js.map +1 -1
- package/dist/commonjs/native/react/usePassthrough.js +5 -2
- package/dist/commonjs/native/react/usePassthrough.js.map +1 -1
- package/dist/commonjs/native/reactivity.js +61 -24
- package/dist/commonjs/native/reactivity.js.map +1 -1
- package/dist/commonjs/native/reanimated.js +15 -3
- package/dist/commonjs/native/reanimated.js.map +1 -1
- package/dist/commonjs/native/styles/functions/color-mix.js +43 -29
- package/dist/commonjs/native/styles/functions/color-mix.js.map +1 -1
- package/dist/commonjs/native/styles/functions/filters.js +14 -1
- package/dist/commonjs/native/styles/functions/filters.js.map +1 -1
- package/dist/commonjs/native/styles/functions/numeric-functions.js +4 -3
- package/dist/commonjs/native/styles/functions/numeric-functions.js.map +1 -1
- package/dist/commonjs/native/styles/functions/string-functions.js +16 -1
- package/dist/commonjs/native/styles/functions/string-functions.js.map +1 -1
- package/dist/commonjs/native/styles/functions/transform-functions.js +5 -4
- package/dist/commonjs/native/styles/functions/transform-functions.js.map +1 -1
- package/dist/commonjs/native/styles/index.js +95 -12
- package/dist/commonjs/native/styles/index.js.map +1 -1
- package/dist/commonjs/native/styles/resolve.js +10 -6
- package/dist/commonjs/native/styles/resolve.js.map +1 -1
- package/dist/commonjs/native/styles/scale-factor.js +13 -0
- package/dist/commonjs/native/styles/scale-factor.js.map +1 -0
- package/dist/commonjs/native/styles/shorthands/animation.js +6 -3
- package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -1
- package/dist/commonjs/native/styles/shorthands/index.js +11 -0
- package/dist/commonjs/native/styles/shorthands/index.js.map +1 -1
- package/dist/commonjs/native/styles/shorthands/logical-border-width.js +22 -0
- package/dist/commonjs/native/styles/shorthands/logical-border-width.js.map +1 -0
- package/dist/commonjs/native/styles/variables.js +55 -43
- package/dist/commonjs/native/styles/variables.js.map +1 -1
- package/dist/commonjs/native-internal/root.js +18 -7
- package/dist/commonjs/native-internal/root.js.map +1 -1
- package/dist/commonjs/native-internal/style-collection.js +1 -1
- package/dist/commonjs/native-internal/style-collection.js.map +1 -1
- package/dist/commonjs/native-internal/variables.js +1 -1
- package/dist/commonjs/native-internal/variables.js.map +1 -1
- package/dist/commonjs/utilities/dot-notation.types.js +4 -0
- package/dist/commonjs/utilities/style-descriptor.js +4 -9
- package/dist/commonjs/utilities/style-descriptor.js.map +1 -1
- package/dist/commonjs/web/api.js +1 -1
- package/dist/commonjs/web/api.js.map +1 -1
- package/dist/commonjs/web/assign-style.js +4 -1
- package/dist/commonjs/web/assign-style.js.map +1 -1
- package/dist/module/babel/helpers.js +6 -0
- package/dist/module/babel/helpers.js.map +1 -1
- package/dist/module/babel/import-plugin.js +22 -10
- package/dist/module/babel/import-plugin.js.map +1 -1
- package/dist/module/babel/react-native-web.js +16 -4
- package/dist/module/babel/react-native-web.js.map +1 -1
- package/dist/module/babel/react-native.js +9 -4
- package/dist/module/babel/react-native.js.map +1 -1
- package/dist/module/compiler/atRules.js +33 -0
- package/dist/module/compiler/atRules.js.map +1 -1
- package/dist/module/compiler/compiler.js +45 -29
- package/dist/module/compiler/compiler.js.map +1 -1
- package/dist/module/compiler/compiler.types.js +2 -0
- package/dist/module/compiler/compiler.types.js.map +1 -1
- package/dist/module/compiler/container-query.js +6 -1
- package/dist/module/compiler/container-query.js.map +1 -1
- package/dist/module/compiler/declarations.js +103 -62
- package/dist/module/compiler/declarations.js.map +1 -1
- package/dist/module/compiler/lightningcss-loader.js +10 -8
- package/dist/module/compiler/lightningcss-loader.js.map +1 -1
- package/dist/module/compiler/media-query.js +16 -6
- package/dist/module/compiler/media-query.js.map +1 -1
- package/dist/module/compiler/selector-builder.js +15 -4
- package/dist/module/compiler/selector-builder.js.map +1 -1
- package/dist/module/compiler/stylesheet.js +11 -3
- package/dist/module/compiler/stylesheet.js.map +1 -1
- package/dist/module/components/ImageBackground.js +2 -6
- package/dist/module/components/ImageBackground.js.map +1 -1
- package/dist/module/components/KeyboardAvoidingView.js +2 -3
- package/dist/module/components/KeyboardAvoidingView.js.map +1 -1
- package/dist/module/components/index.cjs +46 -1
- package/dist/module/components/index.cjs.map +1 -1
- package/dist/module/jest/index.js +1 -1
- package/dist/module/jest/index.js.map +1 -1
- package/dist/module/metro/cache-version.js +39 -0
- package/dist/module/metro/cache-version.js.map +1 -0
- package/dist/module/metro/index.js +2 -0
- package/dist/module/metro/index.js.map +1 -1
- package/dist/module/metro/metro-transformer.js +16 -3
- package/dist/module/metro/metro-transformer.js.map +1 -1
- package/dist/module/metro/typescript.js +26 -6
- package/dist/module/metro/typescript.js.map +1 -1
- package/dist/module/metro/warnings.js +131 -0
- package/dist/module/metro/warnings.js.map +1 -0
- package/dist/module/native/api.js +15 -11
- package/dist/module/native/api.js.map +1 -1
- package/dist/module/native/conditions/attributes.js +16 -9
- package/dist/module/native/conditions/attributes.js.map +1 -1
- package/dist/module/native/conditions/container-query.js +11 -11
- package/dist/module/native/conditions/container-query.js.map +1 -1
- package/dist/module/native/conditions/media-query.js +1 -1
- package/dist/module/native/conditions/media-query.js.map +1 -1
- package/dist/module/native/react/interaction.js +10 -5
- package/dist/module/native/react/interaction.js.map +1 -1
- package/dist/module/native/react/rules.js +13 -6
- package/dist/module/native/react/rules.js.map +1 -1
- package/dist/module/native/react/useNativeCss.js +63 -14
- package/dist/module/native/react/useNativeCss.js.map +1 -1
- package/dist/module/native/react/usePassthrough.js +5 -2
- package/dist/module/native/react/usePassthrough.js.map +1 -1
- package/dist/module/native/reactivity.js +55 -22
- package/dist/module/native/reactivity.js.map +1 -1
- package/dist/module/native/reanimated.js +15 -3
- package/dist/module/native/reanimated.js.map +1 -1
- package/dist/module/native/styles/functions/color-mix.js +43 -29
- package/dist/module/native/styles/functions/color-mix.js.map +1 -1
- package/dist/module/native/styles/functions/filters.js +12 -0
- package/dist/module/native/styles/functions/filters.js.map +1 -1
- package/dist/module/native/styles/functions/numeric-functions.js +4 -3
- package/dist/module/native/styles/functions/numeric-functions.js.map +1 -1
- package/dist/module/native/styles/functions/string-functions.js +13 -0
- package/dist/module/native/styles/functions/string-functions.js.map +1 -1
- package/dist/module/native/styles/functions/transform-functions.js +5 -4
- package/dist/module/native/styles/functions/transform-functions.js.map +1 -1
- package/dist/module/native/styles/index.js +95 -12
- package/dist/module/native/styles/index.js.map +1 -1
- package/dist/module/native/styles/resolve.js +10 -6
- package/dist/module/native/styles/resolve.js.map +1 -1
- package/dist/module/native/styles/scale-factor.js +9 -0
- package/dist/module/native/styles/scale-factor.js.map +1 -0
- package/dist/module/native/styles/shorthands/animation.js +6 -3
- package/dist/module/native/styles/shorthands/animation.js.map +1 -1
- package/dist/module/native/styles/shorthands/index.js +1 -0
- package/dist/module/native/styles/shorthands/index.js.map +1 -1
- package/dist/module/native/styles/shorthands/logical-border-width.js +18 -0
- package/dist/module/native/styles/shorthands/logical-border-width.js.map +1 -0
- package/dist/module/native/styles/variables.js +55 -43
- package/dist/module/native/styles/variables.js.map +1 -1
- package/dist/module/native-internal/root.js +18 -7
- package/dist/module/native-internal/root.js.map +1 -1
- package/dist/module/native-internal/style-collection.js +1 -1
- package/dist/module/native-internal/style-collection.js.map +1 -1
- package/dist/module/native-internal/variables.js +2 -2
- package/dist/module/native-internal/variables.js.map +1 -1
- package/dist/module/utilities/dot-notation.types.js +2 -0
- package/dist/module/utilities/style-descriptor.js +4 -9
- package/dist/module/utilities/style-descriptor.js.map +1 -1
- package/dist/module/web/api.js +1 -1
- package/dist/module/web/api.js.map +1 -1
- package/dist/module/web/assign-style.js +4 -1
- package/dist/module/web/assign-style.js.map +1 -1
- package/dist/typescript/commonjs/src/babel/helpers.d.ts +2 -1
- package/dist/typescript/commonjs/src/babel/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/babel/import-plugin.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/babel/react-native-web.d.ts +2 -1
- package/dist/typescript/commonjs/src/babel/react-native-web.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/babel/react-native.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/atRules.d.ts +4 -1
- package/dist/typescript/commonjs/src/compiler/atRules.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/compiler.d.ts +1 -5
- package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +6 -0
- package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts +2 -2
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/media-query.d.ts +1 -1
- package/dist/typescript/commonjs/src/compiler/media-query.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +6 -8
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts +1 -1
- package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/jest/index.d.ts +2 -10
- package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/cache-version.d.ts +8 -0
- package/dist/typescript/commonjs/src/metro/cache-version.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/index.d.ts +4 -0
- package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts +9 -4
- package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/typescript.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/warnings.d.ts +13 -0
- package/dist/typescript/commonjs/src/metro/warnings.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/api.d.ts +4 -8
- package/dist/typescript/commonjs/src/native/api.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/react/interaction.d.ts +1 -1
- package/dist/typescript/commonjs/src/native/react/interaction.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/react/rules.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/react/usePassthrough.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/reactivity.d.ts +14 -3
- package/dist/typescript/commonjs/src/native/reactivity.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/reanimated.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts +2 -0
- package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/functions/numeric-functions.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts +2 -0
- package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/functions/transform-functions.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/index.d.ts +2 -2
- package/dist/typescript/commonjs/src/native/styles/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/resolve.d.ts +1 -0
- package/dist/typescript/commonjs/src/native/styles/resolve.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/scale-factor.d.ts +2 -0
- package/dist/typescript/commonjs/src/native/styles/scale-factor.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/shorthands/logical-border-width.d.ts +4 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/logical-border-width.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/variables.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native-internal/root.d.ts +12 -0
- package/dist/typescript/commonjs/src/native-internal/root.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native-internal/variables.d.ts +1 -1
- package/dist/typescript/commonjs/src/native-internal/variables.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime.types.d.ts +11 -6
- package/dist/typescript/commonjs/src/runtime.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts +2 -1
- package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts +1 -1
- package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/web/api.d.ts +5 -5
- package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/web/assign-style.d.ts.map +1 -1
- package/dist/typescript/module/src/babel/helpers.d.ts +2 -1
- package/dist/typescript/module/src/babel/helpers.d.ts.map +1 -1
- package/dist/typescript/module/src/babel/import-plugin.d.ts +1 -1
- package/dist/typescript/module/src/babel/import-plugin.d.ts.map +1 -1
- package/dist/typescript/module/src/babel/react-native-web.d.ts +2 -1
- package/dist/typescript/module/src/babel/react-native-web.d.ts.map +1 -1
- package/dist/typescript/module/src/babel/react-native.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/atRules.d.ts +6 -3
- package/dist/typescript/module/src/compiler/atRules.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/compiler.d.ts +3 -7
- package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/compiler.types.d.ts +7 -1
- package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/container-query.d.ts +2 -2
- package/dist/typescript/module/src/compiler/container-query.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/declarations.d.ts +4 -4
- package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/index.d.ts +2 -2
- package/dist/typescript/module/src/compiler/index.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/inline-variables.d.ts +1 -1
- package/dist/typescript/module/src/compiler/inline-variables.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/keyframes.d.ts +2 -2
- package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/media-query.d.ts +3 -3
- package/dist/typescript/module/src/compiler/media-query.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/pseudo-elements.d.ts +1 -1
- package/dist/typescript/module/src/compiler/pseudo-elements.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/selector-builder.d.ts +1 -1
- package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/selectors.d.ts +2 -2
- package/dist/typescript/module/src/compiler/selectors.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/stylesheet.d.ts +6 -8
- package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
- package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -1
- package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -1
- package/dist/typescript/module/src/components/index.d.ts +16 -16
- package/dist/typescript/module/src/components/index.d.ts.map +1 -1
- package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts +1 -1
- package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
- package/dist/typescript/module/src/jest/index.d.ts +2 -10
- package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/cache-version.d.ts +8 -0
- package/dist/typescript/module/src/metro/cache-version.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/index.d.ts +5 -1
- package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/metro-transformer.d.ts +10 -5
- package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/typescript.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/warnings.d.ts +13 -0
- package/dist/typescript/module/src/metro/warnings.d.ts.map +1 -0
- package/dist/typescript/module/src/native/api.d.ts +5 -9
- package/dist/typescript/module/src/native/api.d.ts.map +1 -1
- package/dist/typescript/module/src/native/conditions/attributes.d.ts +1 -1
- package/dist/typescript/module/src/native/conditions/attributes.d.ts.map +1 -1
- package/dist/typescript/module/src/native/conditions/container-query.d.ts +2 -2
- package/dist/typescript/module/src/native/conditions/container-query.d.ts.map +1 -1
- package/dist/typescript/module/src/native/conditions/guards.d.ts +2 -2
- package/dist/typescript/module/src/native/conditions/guards.d.ts.map +1 -1
- package/dist/typescript/module/src/native/conditions/index.d.ts +3 -3
- package/dist/typescript/module/src/native/conditions/index.d.ts.map +1 -1
- package/dist/typescript/module/src/native/conditions/media-query.d.ts +1 -1
- package/dist/typescript/module/src/native/conditions/media-query.d.ts.map +1 -1
- package/dist/typescript/module/src/native/index.d.ts +3 -3
- package/dist/typescript/module/src/native/index.d.ts.map +1 -1
- package/dist/typescript/module/src/native/react/interaction.d.ts +2 -2
- package/dist/typescript/module/src/native/react/interaction.d.ts.map +1 -1
- package/dist/typescript/module/src/native/react/rules.d.ts +2 -2
- package/dist/typescript/module/src/native/react/rules.d.ts.map +1 -1
- package/dist/typescript/module/src/native/react/useNativeCss.d.ts +4 -4
- package/dist/typescript/module/src/native/react/useNativeCss.d.ts.map +1 -1
- package/dist/typescript/module/src/native/react/usePassthrough.d.ts +1 -1
- package/dist/typescript/module/src/native/react/usePassthrough.d.ts.map +1 -1
- package/dist/typescript/module/src/native/reactivity.d.ts +14 -3
- package/dist/typescript/module/src/native/reactivity.d.ts.map +1 -1
- package/dist/typescript/module/src/native/reanimated.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/calculate-props.d.ts +2 -2
- package/dist/typescript/module/src/native/styles/calculate-props.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/calc.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/functions/calc.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/filters.d.ts +3 -1
- package/dist/typescript/module/src/native/styles/functions/filters.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/index.d.ts +8 -8
- package/dist/typescript/module/src/native/styles/functions/index.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts +3 -1
- package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/index.d.ts +7 -7
- package/dist/typescript/module/src/native/styles/index.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/line-height.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/line-height.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/resolve.d.ts +4 -3
- package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/scale-factor.d.ts +2 -0
- package/dist/typescript/module/src/native/styles/scale-factor.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts +2 -2
- package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/border.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/border.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/index.d.ts +6 -5
- package/dist/typescript/module/src/native/styles/shorthands/index.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/logical-border-width.d.ts +4 -0
- package/dist/typescript/module/src/native/styles/shorthands/logical-border-width.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/units.d.ts +1 -1
- package/dist/typescript/module/src/native/styles/units.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/variables.d.ts +2 -2
- package/dist/typescript/module/src/native/styles/variables.d.ts.map +1 -1
- package/dist/typescript/module/src/native-internal/index.d.ts +3 -3
- package/dist/typescript/module/src/native-internal/index.d.ts.map +1 -1
- package/dist/typescript/module/src/native-internal/root.d.ts +13 -1
- package/dist/typescript/module/src/native-internal/root.d.ts.map +1 -1
- package/dist/typescript/module/src/native-internal/style-collection.d.ts +2 -2
- package/dist/typescript/module/src/native-internal/style-collection.d.ts.map +1 -1
- package/dist/typescript/module/src/native-internal/variables.d.ts +2 -2
- package/dist/typescript/module/src/native-internal/variables.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime.d.ts +1 -1
- package/dist/typescript/module/src/runtime.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime.native.d.ts +1 -1
- package/dist/typescript/module/src/runtime.native.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime.types.d.ts +11 -6
- package/dist/typescript/module/src/runtime.types.d.ts.map +1 -1
- package/dist/typescript/module/src/utilities/dot-notation.types.d.ts +2 -1
- package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -1
- package/dist/typescript/module/src/utilities/index.d.ts +3 -3
- package/dist/typescript/module/src/utilities/index.d.ts.map +1 -1
- package/dist/typescript/module/src/utilities/specificity.d.ts +2 -2
- package/dist/typescript/module/src/utilities/specificity.d.ts.map +1 -1
- package/dist/typescript/module/src/utilities/style-descriptor.d.ts +1 -1
- package/dist/typescript/module/src/utilities/style-descriptor.d.ts.map +1 -1
- package/dist/typescript/module/src/web/api.d.ts +5 -5
- package/dist/typescript/module/src/web/api.d.ts.map +1 -1
- package/dist/typescript/module/src/web/assign-style.d.ts.map +1 -1
- package/dist/typescript/module/src/web/index.d.ts +3 -3
- package/dist/typescript/module/src/web/index.d.ts.map +1 -1
- package/node/babel.mjs +4 -0
- package/node/compiler.mjs +2 -0
- package/node/metro.mjs +2 -0
- package/package.json +63 -28
- package/src/babel/helpers.ts +8 -1
- package/src/babel/import-plugin.ts +31 -16
- package/src/babel/react-native-web.ts +32 -4
- package/src/babel/react-native.ts +9 -4
- package/src/compiler/atRules.ts +44 -0
- package/src/compiler/compiler.ts +78 -47
- package/src/compiler/compiler.types.ts +9 -0
- package/src/compiler/container-query.ts +8 -3
- package/src/compiler/declarations.ts +190 -101
- package/src/compiler/lightningcss-loader.ts +16 -15
- package/src/compiler/media-query.ts +20 -9
- package/src/compiler/selector-builder.ts +31 -4
- package/src/compiler/stylesheet.ts +17 -10
- package/src/components/ImageBackground.tsx +2 -6
- package/src/components/KeyboardAvoidingView.tsx +2 -3
- package/src/components/index.cts +46 -1
- package/src/jest/index.ts +1 -1
- package/src/metro/cache-version.ts +48 -0
- package/src/metro/index.ts +7 -0
- package/src/metro/metro-transformer.ts +26 -8
- package/src/metro/typescript.ts +53 -6
- package/src/metro/warnings.ts +187 -0
- package/src/native/api.tsx +22 -17
- package/src/native/conditions/attributes.ts +26 -9
- package/src/native/conditions/container-query.ts +11 -9
- package/src/native/conditions/media-query.ts +1 -1
- package/src/native/react/interaction.ts +11 -6
- package/src/native/react/rules.ts +13 -5
- package/src/native/react/useNativeCss.ts +69 -14
- package/src/native/react/usePassthrough.ts +3 -2
- package/src/native/reactivity.ts +76 -24
- package/src/native/reanimated.ts +24 -5
- package/src/native/styles/functions/color-mix.ts +45 -39
- package/src/native/styles/functions/filters.ts +14 -0
- package/src/native/styles/functions/numeric-functions.ts +7 -6
- package/src/native/styles/functions/string-functions.ts +18 -0
- package/src/native/styles/functions/transform-functions.ts +5 -4
- package/src/native/styles/index.ts +100 -13
- package/src/native/styles/resolve.ts +15 -11
- package/src/native/styles/scale-factor.ts +6 -0
- package/src/native/styles/shorthands/animation.ts +8 -2
- package/src/native/styles/shorthands/index.ts +1 -0
- package/src/native/styles/shorthands/logical-border-width.ts +32 -0
- package/src/native/styles/variables.ts +48 -38
- package/src/native-internal/root.ts +40 -13
- package/src/native-internal/style-collection.ts +1 -1
- package/src/native-internal/variables.tsx +6 -4
- package/src/runtime.types.ts +17 -15
- package/src/utilities/dot-notation.types.ts +4 -3
- package/src/utilities/style-descriptor.ts +11 -16
- package/src/web/api.tsx +6 -11
- package/src/web/assign-style.ts +2 -1
- package/types.d.ts +0 -20
- package/dist/commonjs/compiler/inheritance.test.js +0 -78
- package/dist/commonjs/compiler/inheritance.test.js.map +0 -1
- package/dist/module/compiler/inheritance.test.js +0 -78
- package/dist/module/compiler/inheritance.test.js.map +0 -1
- package/dist/typescript/commonjs/.config/eslint.config.d.mts +0 -3
- package/dist/typescript/commonjs/.config/eslint.config.d.mts.map +0 -1
- package/dist/typescript/commonjs/eslint.config.d.mts +0 -2
- package/dist/typescript/commonjs/eslint.config.d.mts.map +0 -1
- package/dist/typescript/commonjs/example/app.config.d.ts +0 -4
- package/dist/typescript/commonjs/example/app.config.d.ts.map +0 -1
- package/dist/typescript/commonjs/example/index.d.ts +0 -2
- package/dist/typescript/commonjs/example/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/example/metro.config.d.ts +0 -3
- package/dist/typescript/commonjs/example/metro.config.d.ts.map +0 -1
- package/dist/typescript/commonjs/example/postcss.config.d.mts +0 -7
- package/dist/typescript/commonjs/example/postcss.config.d.mts.map +0 -1
- package/dist/typescript/commonjs/example/src/App.d.ts +0 -3
- package/dist/typescript/commonjs/example/src/App.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts +0 -2
- package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts.map +0 -1
- package/dist/typescript/module/.config/eslint.config.d.mts +0 -3
- package/dist/typescript/module/.config/eslint.config.d.mts.map +0 -1
- package/dist/typescript/module/eslint.config.d.mts +0 -2
- package/dist/typescript/module/eslint.config.d.mts.map +0 -1
- package/dist/typescript/module/example/app.config.d.ts +0 -4
- package/dist/typescript/module/example/app.config.d.ts.map +0 -1
- package/dist/typescript/module/example/index.d.ts +0 -2
- package/dist/typescript/module/example/index.d.ts.map +0 -1
- package/dist/typescript/module/example/metro.config.d.ts +0 -3
- package/dist/typescript/module/example/metro.config.d.ts.map +0 -1
- package/dist/typescript/module/example/postcss.config.d.mts +0 -7
- package/dist/typescript/module/example/postcss.config.d.mts.map +0 -1
- package/dist/typescript/module/example/src/App.d.ts +0 -3
- package/dist/typescript/module/example/src/App.d.ts.map +0 -1
- package/dist/typescript/module/src/compiler/inheritance.test.d.ts +0 -2
- package/dist/typescript/module/src/compiler/inheritance.test.d.ts.map +0 -1
- package/src/compiler/inheritance.test.ts +0 -121
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_nodeUtil","require","_debug","_atRules","_containerQuery","_declarations","_inlineVariables","_keyframes","_lightningcssLoader","_mediaQuery","_stylesheet","_supports","defaultLogger","debug","compile","code","options","logger","isLoggerEnabled","enabled","Boolean","features","Object","assign","selectorPrefix","startsWith","slice","JSON","stringify","process","env","NODE_ENV","toString","builder","StylesheetBuilder","lightningcss","Features","lightningcssLoader","vars","Map","effectiveRem","inlineRem","undefined","css","match","parseFloat","firstPassVisitor","remMultiplier","Length","length","unit","value","round","inlineVariables","exclusionList","exclude","Declaration","decl","property","name","includes","entry","get","count","type","set","StyleSheetExit","sheet","firstPass","TextEncoder","encode","include","DoublePositionGradients","ColorFunction","VendorPrefixes","visitor","filename","projectRoot","cwd","MAX_LOG_SIZE","subarray","customAtRules","body","Rule","rule","maybeMutateReactNativeOptions","rules","inspect","depth","colors","compact","extractRule","stylesheet","getNativeStyleSheet","warnings","getWarnings","mapping","extractKeyFrames","extractContainer","extractMedia","declarationBlock","declarations","newNestedRule","declaration","parseDeclaration","applyRuleToSelectors","importantDeclarations","important","parsePropAtRule","fork","selectors","newRule","nestedRule","layerRule","supportsConditionValid","condition","extractPropertyRule","mediaRule","media","mediaQuery","query","mediaQueries","mediaType","qualifier","push","m","parseMediaQuery","containerRule","parseContainerCondition","n","addContainerQuery","propertyRule","initialValue","varName","parsePropertyInitialValue","addRootVariable","component","parseLength","parseColor","parseAngle","reduceParseUnparsed","results","components","map","c","filter","v"],"sourceRoot":"../../../src","sources":["compiler/compiler.ts"],"mappings":";;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAYA,IAAAE,QAAA,GAAAF,OAAA;AAQA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AAQA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,WAAA,GAAAT,OAAA;AACA,IAAAU,SAAA,GAAAV,OAAA;AArCA;;AAuCA,MAAMW,aAAa,GAAG,IAAAC,YAAK,EAAC,2BAA2B,CAAC;;AAExD;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,OAAOA,CAACC,IAAqB,EAAEC,OAAwB,GAAG,CAAC,CAAC,EAAE;EAC5E,MAAM;IAAEC,MAAM,GAAGL;EAAc,CAAC,GAAGI,OAAO;EAE1C,MAAME,eAAe,GACnB,SAAS,IAAID,MAAM,GAAGA,MAAM,CAACE,OAAO,GAAGC,OAAO,CAACH,MAAM,CAAC;EAExD,MAAMI,QAAQ,GAAGC,MAAM,CAACC,MAAM,CAAC,CAA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AK,YAAY;MACf,OAAO,GAAG,IAAAC,mBAAK,EAACoF,SAAS,CAACrF,KAAK,GAAG,GAAG,CAAC,GAAG;IAC3C,KAAK,OAAO;MACV,OAAO,IAAAuF,wBAAU,EAACF,SAAS,CAACrF,KAAK,EAAElB,OAAO,CAAC;IAC7C,KAAK,OAAO;MACV,OAAO,IAAA0G,wBAAU,EAACH,SAAS,CAACrF,KAAK,EAAElB,OAAO,CAAC;IAC7C,KAAK,mBAAmB;MACtB,OAAO,IAAAwG,yBAAW,EAACD,SAAS,CAACrF,KAAK,EAAElB,OAAO,CAAC;IAC9C,KAAK,YAAY;MACf,OAAO,IAAA2G,iCAAmB,EACxBJ,SAAS,CAACrF,KAAK,EACflB,OAAO,EACP,WAAW,EACX,KACF,CAAC;IACH,KAAK,cAAc;IACnB,KAAK,SAAS;MACZ,OAAOuG,SAAS,CAACrF,KAAK;IACxB,KAAK,UAAU;MAAE;QACf,MAAM0F,OAAO,GAAGL,SAAS,CAACrF,KAAK,CAAC2F,UAAU,CACvCC,GAAG,CAAEC,CAAC,IAAKV,yBAAyB,CAACU,CAAC,EAAE/G,OAAO,CAAC,CAAC,CACjDgH,MAAM,CACJC,CAAC,IAAwCA,CAAC,KAAKxG,SAClD,CAAC;QACH;QACA;QACA;QACA,OAAOmG,OAAO,CAAC5F,MAAM,KAAK,CAAC,GAAG4F,OAAO,CAAC,CAAC,CAAC,GAAGA,OAAO;MACpD;IACA;MACE,OAAOnG,SAAS;EACpB;AACF","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_nodeUtil","require","_debug","_atRules","_containerQuery","_declarations","_inlineVariables","_keyframes","_lightningcssLoader","_mediaQuery","_stylesheet","_supports","defaultLogger","debug","OWN_AT_RULE_WARNING","reportSyntaxWarnings","builder","warnings","warning","message","addSyntaxWarning","compile","code","options","logger","isLoggerEnabled","enabled","Boolean","features","Object","assign","selectorPrefix","startsWith","slice","JSON","stringify","process","env","NODE_ENV","toString","StylesheetBuilder","lightningcss","Features","lightningcssLoader","vars","Map","effectiveRem","inlineRem","undefined","css","match","parseFloat","firstPassVisitor","Rule","rule","type","includes","value","name","Error","selectors","some","selector","part","kind","remMultiplier","Length","length","unit","round","inlineVariables","exclusionList","exclude","Declaration","decl","property","entry","get","count","set","StyleSheetExit","sheet","firstPass","firstPassWarnings","TextEncoder","encode","include","DoublePositionGradients","ColorFunction","VendorPrefixes","visitor","filename","projectRoot","cwd","MAX_LOG_SIZE","subarray","customAtRules","body","maybeMutateReactNativeOptions","rules","inspect","depth","colors","compact","extractRule","stylesheet","getNativeStyleSheet","getWarnings","mapping","extractKeyFrames","extractContainer","extractMedia","declarationBlock","declarations","newNestedRule","declaration","parseDeclaration","applyRuleToSelectors","importantDeclarations","important","parsePropAtRule","parsePropDeclarations","fork","newRule","nestedRule","layerRule","supportsConditionValid","condition","extractPropertyRule","mediaRule","mediaQuery","query","mediaQueries","queryBuilder","parseMediaQuery","containerRule","parseContainerCondition","m","n","addContainerQuery","propertyRule","initialValue","varName","parsePropertyInitialValue","addRootVariable","component","parseLength","parseColor","parseAngle","reduceParseUnparsed","results","components","map","c","filter","v"],"sourceRoot":"../../../src","sources":["compiler/compiler.ts"],"mappings":";;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAYA,IAAAE,QAAA,GAAAF,OAAA;AAYA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AAQA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,WAAA,GAAAT,OAAA;AACA,IAAAU,SAAA,GAAAV,OAAA;AAzCA;;AA2CA,MAAMW,aAAa,GAAG,IAAAC,YAAK,EAAC,2BAA2B,CAAC;;AAExD;AACA,MAAMC,mBAAmB,GAAG,iCAAiC;;AAE7D;AACA,SAASC,oBAA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;MACf,OAAO,GAAG,IAAAY,mBAAK,EAAC4E,SAAS,CAACxF,KAAK,GAAG,GAAG,CAAC,GAAG;IAC3C,KAAK,OAAO;MACV,OAAO,IAAA0F,wBAAU,EAACF,SAAS,CAACxF,KAAK,EAAEzC,OAAO,CAAC;IAC7C,KAAK,OAAO;MACV,OAAO,IAAAoI,wBAAU,EAACH,SAAS,CAACxF,KAAK,EAAEzC,OAAO,CAAC;IAC7C,KAAK,mBAAmB;MACtB,OAAO,IAAAkI,yBAAW,EAACD,SAAS,CAACxF,KAAK,EAAEzC,OAAO,CAAC;IAC9C,KAAK,YAAY;MACf,OAAO,IAAAqI,iCAAmB,EAACJ,SAAS,CAACxF,KAAK,EAAEzC,OAAO,EAAE,WAAW,EAAE,KAAK,CAAC;IAC1E,KAAK,cAAc;IACnB,KAAK,SAAS;MACZ,OAAOiI,SAAS,CAACxF,KAAK;IACxB,KAAK,UAAU;MAAE;QACf,MAAM6F,OAAO,GAAGL,SAAS,CAACxF,KAAK,CAAC8F,UAAU,CACvCC,GAAG,CAAEC,CAAC,IAAKV,yBAAyB,CAACU,CAAC,EAAEzI,OAAO,CAAC,CAAC,CACjD0I,MAAM,CAAEC,CAAC,IAAwCA,CAAC,KAAK3G,SAAS,CAAC;QACpE;QACA;QACA;QACA,OAAOsG,OAAO,CAACnF,MAAM,KAAK,CAAC,GAAGmF,OAAO,CAAC,CAAC,CAAC,GAAGA,OAAO;MACpD;IACA;MACE,OAAOtG,SAAS;EACpB;AACF","ignoreList":[]}
|
|
@@ -24,7 +24,12 @@ function parseContainerQueryCondition(condition, builder) {
|
|
|
24
24
|
const query = parseContainerCondition(condition.value, builder);
|
|
25
25
|
return query ? ["!", query] : undefined;
|
|
26
26
|
case "operation":
|
|
27
|
-
const
|
|
27
|
+
const parsed = condition.conditions.map(c => parseContainerCondition(c, builder));
|
|
28
|
+
if (condition.operator === "and" && parsed.some(c => !c)) {
|
|
29
|
+
// Dropping a conjunct would broaden the query to unrelated containers.
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const conditions = parsed.filter(c => !!c);
|
|
28
33
|
if (conditions.length === 0) {
|
|
29
34
|
return;
|
|
30
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_mediaQuery","require","parseContainerCondition","condition","builder","containerQuery","parseContainerQueryCondition","some","v","undefined","type","parseFeature","value","query","conditions","map","c","
|
|
1
|
+
{"version":3,"names":["_mediaQuery","require","parseContainerCondition","condition","builder","containerQuery","parseContainerQueryCondition","some","v","undefined","type","parseFeature","value","query","parsed","conditions","map","c","operator","filter","length","feature","name","parseMediaFeatureValue","parseMediaFeatureOperator","start","startOperator","end","endOperator"],"sourceRoot":"../../../src","sources":["compiler/container-query.ts"],"mappings":";;;;;;AAOA,IAAAA,WAAA,GAAAC,OAAA;AAPA;;AAaO,SAASC,uBAAuBA,CACrCC,SAAgC,EAChCC,OAA0B,EAC1B;EACA,IAAIC,cAAc,GAAGC,4BAA4B,CAACH,SAAS,EAAEC,OAAO,CAAC;;EAErE;EACA,IAAI,CAACC,cAAc,IAAIA,cAAc,CAACE,IAAI,CAAEC,CAAC,IAAKA,CAAC,KAAKC,SAAS,CAAC,EAAE;IAClE;EACF;EAEA,OAAOJ,cAAc;AACvB;AAEA,SAASC,4BAA4BA,CACnCH,SAAgC,EAChCC,OAA0B,EACE;EAC5B,QAAQD,SAAS,CAACO,IAAI;IACpB,KAAK,SAAS;MACZ,OAAOC,YAAY,CAACR,SAAS,CAACS,KAAK,EAAER,OAAO,CAAC;IAC/C,KAAK,KAAK;MACR,MAAMS,KAAK,GAAGX,uBAAuB,CAACC,SAAS,CAACS,KAAK,EAAER,OAAO,CAAC;MAC/D,OAAOS,KAAK,GAAG,CAAC,GAAG,EAAEA,KAAK,CAAC,GAAGJ,SAAS;IACzC,KAAK,WAAW;MACd,MAAMK,MAAM,GAAGX,SAAS,CAACY,UAAU,CAACC,GAAG,CAAEC,CAAC,IACxCf,uBAAuB,CAACe,CAAC,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AAAH,kCAAsB,EAACF,OAAO,CAACM,GAAG,EAAEvB,OAAO,CAAC,EAC5C,IAAAoB,qCAAyB,EAACH,OAAO,CAACO,WAAW,CAAC,CAC/C;IACH;MACEP,OAAO;MACP;EACJ;AACF","ignoreList":[]}
|
|
@@ -82,6 +82,7 @@ exports.round = round;
|
|
|
82
82
|
exports.unparsedFunction = unparsedFunction;
|
|
83
83
|
var _colorjs = _interopRequireDefault(require("colorjs.io"));
|
|
84
84
|
var _index = require("../utilities/index.js");
|
|
85
|
+
var _atRules = require("./atRules.js");
|
|
85
86
|
var _keyframes = require("./keyframes.js");
|
|
86
87
|
var _selectors = require("./selectors.js");
|
|
87
88
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -89,9 +90,23 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
89
90
|
|
|
90
91
|
const CommaSeparator = Symbol("CommaSeparator");
|
|
91
92
|
const propertyRename = {
|
|
92
|
-
"background-image": "experimental_backgroundImage"
|
|
93
|
+
"background-image": "experimental_backgroundImage",
|
|
94
|
+
// React Native has no border-inline-* props, but ships the equivalent
|
|
95
|
+
// RTL-aware border-start-* / border-end-* props
|
|
96
|
+
"border-inline-end-color": "border-end-color",
|
|
97
|
+
"border-inline-end-width": "border-end-width",
|
|
98
|
+
"border-inline-start-color": "border-start-color",
|
|
99
|
+
"border-inline-start-width": "border-start-width",
|
|
100
|
+
"border-block-start-width": "border-top-width",
|
|
101
|
+
"border-block-end-width": "border-bottom-width",
|
|
102
|
+
"font-variant-caps": "font-variant"
|
|
93
103
|
};
|
|
94
|
-
|
|
104
|
+
|
|
105
|
+
// React Native only supports a uniform borderStyle, so per-side border
|
|
106
|
+
// styles have no native equivalent and are dropped. "solid" is dropped
|
|
107
|
+
// silently as it matches React Native's default rendering.
|
|
108
|
+
const unsupportedLogicalStyles = new Set(["border-inline-style", "border-inline-start-style", "border-inline-end-style", "border-block-style", "border-block-start-style", "border-block-end-style"]);
|
|
109
|
+
const unparsedRuntimeParsing = new Set(["animation", "animation-name", "border", "border-block-width", "border-inline-width", "box-shadow", "filter", "line-height", "rotate", "scale", "text-shadow", "transform", "translate"]);
|
|
95
110
|
const parsers = {
|
|
96
111
|
"align-content": parseAlignContent,
|
|
97
112
|
"align-items": parseAlignItems,
|
|
@@ -115,10 +130,11 @@ const parsers = {
|
|
|
115
130
|
"border-block-color": parseBorderColor,
|
|
116
131
|
"border-block-end": parseBorderBlockEnd,
|
|
117
132
|
"border-block-end-color": parseColorDeclaration,
|
|
133
|
+
"border-block-end-style": parseBorderInlineStyle,
|
|
118
134
|
"border-block-end-width": parseBorderSideWidthDeclaration,
|
|
119
135
|
"border-block-start": parseBorderBlockStart,
|
|
120
136
|
"border-block-start-color": parseColorDeclaration,
|
|
121
|
-
"border-block-start-style":
|
|
137
|
+
"border-block-start-style": parseBorderInlineStyle,
|
|
122
138
|
"border-block-start-width": parseBorderSideWidthDeclaration,
|
|
123
139
|
"border-block-style": parseBorderBlockStyle,
|
|
124
140
|
"border-block-width": parseBorderBlockWidth,
|
|
@@ -321,8 +337,8 @@ function parseInsetInline({
|
|
|
321
337
|
value
|
|
322
338
|
}, builder) {
|
|
323
339
|
builder.addShorthand("inset-inline", {
|
|
324
|
-
"inset-
|
|
325
|
-
"inset-
|
|
340
|
+
"inset-inline-start": parseLengthPercentageOrAuto(value.inlineStart, builder),
|
|
341
|
+
"inset-inline-end": parseLengthPercentageOrAuto(value.inlineEnd, builder)
|
|
326
342
|
});
|
|
327
343
|
}
|
|
328
344
|
function parseInset({
|
|
@@ -356,14 +372,14 @@ function parseBorderColor(declaration, builder) {
|
|
|
356
372
|
} else {
|
|
357
373
|
const start = parseColor(declaration.value.start, builder);
|
|
358
374
|
const end = parseColor(declaration.value.end, builder);
|
|
359
|
-
if (
|
|
375
|
+
if (declaration.property === "border-inline-color") {
|
|
376
|
+
builder.addDescriptor("border-start-color", start);
|
|
377
|
+
builder.addDescriptor("border-end-color", end);
|
|
378
|
+
} else if (start === end) {
|
|
360
379
|
builder.addDescriptor(declaration.property, start);
|
|
361
|
-
} else
|
|
380
|
+
} else {
|
|
362
381
|
builder.addDescriptor("border-top-color", start);
|
|
363
382
|
builder.addDescriptor("border-bottom-color", end);
|
|
364
|
-
} else {
|
|
365
|
-
builder.addDescriptor("border-left-color", start);
|
|
366
|
-
builder.addDescriptor("border-right-color", end);
|
|
367
383
|
}
|
|
368
384
|
}
|
|
369
385
|
}
|
|
@@ -397,53 +413,65 @@ function parseBorderBlock({
|
|
|
397
413
|
value
|
|
398
414
|
}, builder) {
|
|
399
415
|
builder.addDescriptor("border-block-color", parseColor(value.color, builder));
|
|
400
|
-
|
|
401
|
-
builder.addDescriptor("border-
|
|
416
|
+
const width = parseBorderSideWidth(value.width, builder);
|
|
417
|
+
builder.addDescriptor("border-top-width", width);
|
|
418
|
+
builder.addDescriptor("border-bottom-width", width);
|
|
419
|
+
dropUnsupportedInlineStyle(parseBorderStyle(value.style, builder), builder, "border-block-style");
|
|
402
420
|
}
|
|
403
421
|
function parseBorderBlockStart({
|
|
404
422
|
value
|
|
405
423
|
}, builder) {
|
|
406
424
|
builder.addDescriptor("border-block-start-color", parseColor(value.color, builder));
|
|
407
|
-
builder.addDescriptor("border-
|
|
425
|
+
builder.addDescriptor("border-top-width", parseBorderSideWidth(value.width, builder));
|
|
426
|
+
dropUnsupportedInlineStyle(parseBorderStyle(value.style, builder), builder, "border-block-start-style");
|
|
408
427
|
}
|
|
409
428
|
function parseBorderBlockEnd({
|
|
410
429
|
value
|
|
411
430
|
}, builder) {
|
|
412
431
|
builder.addDescriptor("border-block-end-color", parseColor(value.color, builder));
|
|
413
|
-
builder.addDescriptor("border-
|
|
432
|
+
builder.addDescriptor("border-bottom-width", parseBorderSideWidth(value.width, builder));
|
|
433
|
+
dropUnsupportedInlineStyle(parseBorderStyle(value.style, builder), builder, "border-block-end-style");
|
|
414
434
|
}
|
|
415
435
|
function parseBorderInline({
|
|
416
436
|
value
|
|
417
437
|
}, builder) {
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
builder.addDescriptor("border-
|
|
438
|
+
const color = parseColor(value.color, builder);
|
|
439
|
+
const width = parseBorderSideWidth(value.width, builder);
|
|
440
|
+
builder.addDescriptor("border-start-color", color);
|
|
441
|
+
builder.addDescriptor("border-end-color", color);
|
|
442
|
+
builder.addDescriptor("border-start-width", width);
|
|
443
|
+
builder.addDescriptor("border-end-width", width);
|
|
444
|
+
dropUnsupportedInlineStyle(parseBorderStyle(value.style, builder), builder, "border-inline-style");
|
|
421
445
|
}
|
|
422
446
|
function parseBorderInlineStart({
|
|
423
447
|
value
|
|
424
448
|
}, builder) {
|
|
425
|
-
builder.addDescriptor("border-
|
|
426
|
-
builder.addDescriptor("border-
|
|
427
|
-
builder
|
|
449
|
+
builder.addDescriptor("border-start-color", parseColor(value.color, builder));
|
|
450
|
+
builder.addDescriptor("border-start-width", parseBorderSideWidth(value.width, builder));
|
|
451
|
+
dropUnsupportedInlineStyle(parseBorderStyle(value.style, builder), builder, "border-inline-start-style");
|
|
428
452
|
}
|
|
429
453
|
function parseBorderInlineEnd({
|
|
430
454
|
value
|
|
431
455
|
}, builder) {
|
|
432
|
-
builder.addDescriptor("border-
|
|
433
|
-
builder.addDescriptor("border-
|
|
434
|
-
builder
|
|
456
|
+
builder.addDescriptor("border-end-color", parseColor(value.color, builder));
|
|
457
|
+
builder.addDescriptor("border-end-width", parseBorderSideWidth(value.width, builder));
|
|
458
|
+
dropUnsupportedInlineStyle(parseBorderStyle(value.style, builder), builder, "border-inline-end-style");
|
|
435
459
|
}
|
|
436
460
|
function parseBorderInlineWidth(declaration, builder) {
|
|
437
|
-
builder.addDescriptor("border-
|
|
461
|
+
builder.addDescriptor("border-start-width", parseBorderSideWidth(declaration.value.start, builder));
|
|
462
|
+
builder.addDescriptor("border-end-width", parseBorderSideWidth(declaration.value.end, builder));
|
|
438
463
|
}
|
|
439
464
|
function parseBorderInlineStyle(declaration, builder) {
|
|
440
465
|
if (typeof declaration.value === "string") {
|
|
441
|
-
|
|
442
|
-
} else if (declaration.value.start === declaration.value.end) {
|
|
443
|
-
builder.addDescriptor(declaration.property, parseBorderStyle(declaration.value.start, builder));
|
|
466
|
+
dropUnsupportedInlineStyle(parseBorderStyle(declaration.value, builder), builder, declaration.property);
|
|
444
467
|
} else {
|
|
445
|
-
|
|
446
|
-
|
|
468
|
+
dropUnsupportedInlineStyle(parseBorderStyle(declaration.value.start, builder), builder, "border-inline-start-style");
|
|
469
|
+
dropUnsupportedInlineStyle(parseBorderStyle(declaration.value.end, builder), builder, "border-inline-end-style");
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
function dropUnsupportedInlineStyle(style, builder, property) {
|
|
473
|
+
if (style !== undefined && style !== "solid") {
|
|
474
|
+
builder.addWarning("style", property, style);
|
|
447
475
|
}
|
|
448
476
|
}
|
|
449
477
|
function parseFlexFlow({
|
|
@@ -609,7 +637,7 @@ function parseScale({
|
|
|
609
637
|
}
|
|
610
638
|
function parseScaleValue(translate, prop, builder) {
|
|
611
639
|
if (translate === "none") {
|
|
612
|
-
return
|
|
640
|
+
return 1;
|
|
613
641
|
}
|
|
614
642
|
return parseLength(translate[prop], builder);
|
|
615
643
|
}
|
|
@@ -659,6 +687,10 @@ function parseUnparsedDeclaration(declaration, builder) {
|
|
|
659
687
|
builder.addWarning("property", property);
|
|
660
688
|
return;
|
|
661
689
|
}
|
|
690
|
+
if (unsupportedLogicalStyles.has(property)) {
|
|
691
|
+
builder.addWarning("property", property);
|
|
692
|
+
return;
|
|
693
|
+
}
|
|
662
694
|
builder.setWarningProperty(property);
|
|
663
695
|
|
|
664
696
|
/**
|
|
@@ -695,7 +727,10 @@ function parseUnparsedDeclaration(declaration, builder) {
|
|
|
695
727
|
}
|
|
696
728
|
function parseCustomDeclaration(declaration, builder) {
|
|
697
729
|
const property = declaration.value.name;
|
|
698
|
-
if (
|
|
730
|
+
if ((0, _atRules.isMappingProperty)(property)) {
|
|
731
|
+
// Consumed before declarations so property order cannot affect mapping.
|
|
732
|
+
return;
|
|
733
|
+
} else if (property === "-webkit-line-clamp") {
|
|
699
734
|
builder.addDescriptor(property, parseUnparsed(declaration.value.value, builder, property));
|
|
700
735
|
} else if (property === "-rn-ripple-style") {
|
|
701
736
|
if (parseUnparsed(declaration.value.value, builder, property) === "borderless") {
|
|
@@ -716,6 +751,11 @@ function parseCustomDeclaration(declaration, builder) {
|
|
|
716
751
|
builder.addDescriptor(property, parseUnparsed(declaration.value.value, builder, property));
|
|
717
752
|
} else if (property === "corner-shape") {
|
|
718
753
|
parseCornerShape(declaration.value, builder);
|
|
754
|
+
} else if (property === "font-variant") {
|
|
755
|
+
const parsedFontVariant = parseFontVariantCaps(parseUnparsed(declaration.value.value, builder, property), builder);
|
|
756
|
+
if (parsedFontVariant !== undefined) {
|
|
757
|
+
builder.addDescriptor(property, parsedFontVariant);
|
|
758
|
+
}
|
|
719
759
|
} else if (validProperties.has(property) || property.startsWith("--") || property.startsWith("-rn-")) {
|
|
720
760
|
builder.addDescriptor(property, parseUnparsed(declaration.value.value, builder, property));
|
|
721
761
|
} else {
|
|
@@ -1168,7 +1208,19 @@ function parseFontColorDeclaration(declaration, builder) {
|
|
|
1168
1208
|
}
|
|
1169
1209
|
}
|
|
1170
1210
|
function parseColorDeclaration(declaration, builder) {
|
|
1171
|
-
builder.addDescriptor(declaration.property, parseColor(declaration.value, builder));
|
|
1211
|
+
builder.addDescriptor(propertyRename[declaration.property] ?? declaration.property, parseColor(declaration.value, builder));
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* Lab/LCH/OKLab/OKLCH channels can be `NaN` when lightningcss resolves a
|
|
1216
|
+
* degenerate `color-mix()` at compile time (e.g. mixing black with
|
|
1217
|
+
* `transparent` in oklab yields `NaN` for the a/b chromaticity channels).
|
|
1218
|
+
* Passing `NaN` to colorjs.io produces an invalid string such as
|
|
1219
|
+
* `#NaNNaNNaN80`, which React Native silently discards. Per CSS Color 4 a
|
|
1220
|
+
* missing component is treated as `0`, so coerce `NaN` to `0`.
|
|
1221
|
+
*/
|
|
1222
|
+
function nanToZero(value) {
|
|
1223
|
+
return Number.isNaN(value) ? 0 : value;
|
|
1172
1224
|
}
|
|
1173
1225
|
function parseColor(cssColor, builder) {
|
|
1174
1226
|
if (typeof cssColor === "string") {
|
|
@@ -1221,28 +1273,28 @@ function parseColor(cssColor, builder) {
|
|
|
1221
1273
|
case "lab":
|
|
1222
1274
|
color = new _colorjs.default({
|
|
1223
1275
|
space: cssColor.type,
|
|
1224
|
-
coords: [cssColor.l, cssColor.a, cssColor.b],
|
|
1276
|
+
coords: [nanToZero(cssColor.l), nanToZero(cssColor.a), nanToZero(cssColor.b)],
|
|
1225
1277
|
alpha: cssColor.alpha
|
|
1226
1278
|
});
|
|
1227
1279
|
break;
|
|
1228
1280
|
case "lch":
|
|
1229
1281
|
color = new _colorjs.default({
|
|
1230
1282
|
space: cssColor.type,
|
|
1231
|
-
coords: [cssColor.l, cssColor.c, cssColor.h],
|
|
1283
|
+
coords: [nanToZero(cssColor.l), nanToZero(cssColor.c), nanToZero(cssColor.h)],
|
|
1232
1284
|
alpha: cssColor.alpha
|
|
1233
1285
|
});
|
|
1234
1286
|
break;
|
|
1235
1287
|
case "oklab":
|
|
1236
1288
|
color = new _colorjs.default({
|
|
1237
1289
|
space: cssColor.type,
|
|
1238
|
-
coords: [cssColor.l, cssColor.a, cssColor.b],
|
|
1290
|
+
coords: [nanToZero(cssColor.l), nanToZero(cssColor.a), nanToZero(cssColor.b)],
|
|
1239
1291
|
alpha: cssColor.alpha
|
|
1240
1292
|
});
|
|
1241
1293
|
break;
|
|
1242
1294
|
case "oklch":
|
|
1243
1295
|
color = new _colorjs.default({
|
|
1244
1296
|
space: cssColor.type,
|
|
1245
|
-
coords: [cssColor.l, cssColor.c, cssColor.h],
|
|
1297
|
+
coords: [nanToZero(cssColor.l), nanToZero(cssColor.c), nanToZero(cssColor.h)],
|
|
1246
1298
|
alpha: cssColor.alpha
|
|
1247
1299
|
});
|
|
1248
1300
|
break;
|
|
@@ -1551,25 +1603,17 @@ function parseBorderStyle(value, builder) {
|
|
|
1551
1603
|
function parseBorderBlockWidth(declaration, builder) {
|
|
1552
1604
|
const start = parseBorderSideWidth(declaration.value.start, builder);
|
|
1553
1605
|
const end = parseBorderSideWidth(declaration.value.end, builder);
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
} else {
|
|
1557
|
-
builder.addDescriptor("border-block-start-width", start);
|
|
1558
|
-
builder.addDescriptor("border-block-end-width", end);
|
|
1559
|
-
}
|
|
1606
|
+
builder.addDescriptor("border-top-width", start);
|
|
1607
|
+
builder.addDescriptor("border-bottom-width", end);
|
|
1560
1608
|
}
|
|
1561
1609
|
function parseBorderBlockStyle(declaration, builder) {
|
|
1562
1610
|
const start = parseBorderStyle(declaration.value.start, builder);
|
|
1563
1611
|
const end = parseBorderStyle(declaration.value.end, builder);
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
} else {
|
|
1567
|
-
builder.addDescriptor("border-block-start-style", start);
|
|
1568
|
-
builder.addDescriptor("border-block-end-style", end);
|
|
1569
|
-
}
|
|
1612
|
+
dropUnsupportedInlineStyle(start, builder, "border-block-start-style");
|
|
1613
|
+
dropUnsupportedInlineStyle(end, builder, "border-block-end-style");
|
|
1570
1614
|
}
|
|
1571
1615
|
function parseBorderSideWidthDeclaration(declaration, builder) {
|
|
1572
|
-
builder.addDescriptor(declaration.property, parseBorderSideWidth(declaration.value, builder));
|
|
1616
|
+
builder.addDescriptor(propertyRename[declaration.property] ?? declaration.property, parseBorderSideWidth(declaration.value, builder));
|
|
1573
1617
|
}
|
|
1574
1618
|
function parseBorderSideWidth(value, builder) {
|
|
1575
1619
|
if (value.type === "length") {
|
|
@@ -1598,14 +1642,14 @@ function parseFontFamily({
|
|
|
1598
1642
|
return value[0];
|
|
1599
1643
|
}
|
|
1600
1644
|
function parseLineHeightDeclaration(declaration, builder) {
|
|
1601
|
-
builder.addDescriptor("line-height",
|
|
1645
|
+
builder.addDescriptor("line-height", parseLineHeight(declaration.value, builder));
|
|
1602
1646
|
}
|
|
1603
1647
|
function parseLineHeight(value, builder) {
|
|
1604
1648
|
switch (value.type) {
|
|
1605
1649
|
case "normal":
|
|
1606
1650
|
return undefined;
|
|
1607
1651
|
case "number":
|
|
1608
|
-
return [{}, "em",
|
|
1652
|
+
return [{}, "em", value.value, 1];
|
|
1609
1653
|
case "length":
|
|
1610
1654
|
{
|
|
1611
1655
|
const length = value.value;
|
|
@@ -1614,7 +1658,7 @@ function parseLineHeight(value, builder) {
|
|
|
1614
1658
|
return parseLength(length, builder);
|
|
1615
1659
|
case "percentage":
|
|
1616
1660
|
case "calc":
|
|
1617
|
-
builder.addWarning("style", "line-height", typeof length.value === "number" ? length.value : JSON.stringify(length.value));
|
|
1661
|
+
builder.addWarning("style", "line-height", typeof length.value === "number" ? String(length.value) : JSON.stringify(length.value));
|
|
1618
1662
|
return;
|
|
1619
1663
|
default:
|
|
1620
1664
|
{
|
|
@@ -1918,7 +1962,8 @@ function parseCalcFn(name, tokens, builder, property) {
|
|
|
1918
1962
|
return;
|
|
1919
1963
|
}
|
|
1920
1964
|
function parseColorMix(tokens, builder, property) {
|
|
1921
|
-
const [inToken, whitespace, colorSpace, comma, ...
|
|
1965
|
+
const [inToken, whitespace, colorSpace, comma, ...remaining] = tokens;
|
|
1966
|
+
const rest = remaining.filter(token => token.type !== "token" || !["white-space", "comment"].includes(token.value.type));
|
|
1922
1967
|
if (typeof inToken !== "object" || inToken.type !== "token" || inToken.value.type !== "ident" || inToken.value.value !== "in") {
|
|
1923
1968
|
return;
|
|
1924
1969
|
}
|
|
@@ -1948,10 +1993,6 @@ function parseColorMix(tokens, builder, property) {
|
|
|
1948
1993
|
}
|
|
1949
1994
|
nextToken = rest.shift();
|
|
1950
1995
|
const rightColorArg = parseUnparsed(nextToken, builder, property);
|
|
1951
|
-
if (rightColorArg === "transparent") {
|
|
1952
|
-
// Ignore the rest, treat as single color with alpha
|
|
1953
|
-
return [{}, "colorMix", [colorSpaceArg, leftColorArg, leftColorPercentage]];
|
|
1954
|
-
}
|
|
1955
1996
|
nextToken = rest.shift();
|
|
1956
1997
|
let rightColorPercentage;
|
|
1957
1998
|
if (nextToken?.type !== "token" || nextToken.value.type !== "comma") {
|
|
@@ -2219,7 +2260,7 @@ function kebabCase(str) {
|
|
|
2219
2260
|
return str.replace(/[A-Z]+(?![a-z])|[A-Z]/g, ($, ofs) => (ofs ? "-" : "") + $.toLowerCase());
|
|
2220
2261
|
}
|
|
2221
2262
|
function parseBackgroundImage(declaration, builder) {
|
|
2222
|
-
builder.addDescriptor("experimental_backgroundImage", declaration.value.flatMap(image => {
|
|
2263
|
+
builder.addDescriptor("experimental_backgroundImage", [{}, "join", [declaration.value.flatMap(image => {
|
|
2223
2264
|
switch (image.type) {
|
|
2224
2265
|
case "gradient":
|
|
2225
2266
|
{
|
|
@@ -2230,7 +2271,7 @@ function parseBackgroundImage(declaration, builder) {
|
|
|
2230
2271
|
return ["none"];
|
|
2231
2272
|
}
|
|
2232
2273
|
return [];
|
|
2233
|
-
}));
|
|
2274
|
+
}), ", "]]);
|
|
2234
2275
|
return;
|
|
2235
2276
|
}
|
|
2236
2277
|
function parseGradient(gradient, builder) {
|
|
@@ -2266,10 +2307,10 @@ function parseGradientItem(item, builder) {
|
|
|
2266
2307
|
if (item.position) {
|
|
2267
2308
|
args.push(parseLength(item.position, builder));
|
|
2268
2309
|
}
|
|
2269
|
-
return [{}, "
|
|
2310
|
+
return [{}, "colorStop", args, 1];
|
|
2270
2311
|
}
|
|
2271
2312
|
case "hint":
|
|
2272
|
-
return parseLength(item.value, builder);
|
|
2313
|
+
return [{}, "gradientPosition", parseLength(item.value, builder), 1];
|
|
2273
2314
|
}
|
|
2274
2315
|
}
|
|
2275
2316
|
function parseObjectFit(declaration, builder) {
|
|
@@ -2328,7 +2369,7 @@ function parseFilter(declaration, builder) {
|
|
|
2328
2369
|
};
|
|
2329
2370
|
case "hue-rotate":
|
|
2330
2371
|
return {
|
|
2331
|
-
[value.type]: parseAngle(value.value, builder)
|
|
2372
|
+
[(0, _selectors.toRNProperty)(value.type)]: parseAngle(value.value, builder)
|
|
2332
2373
|
};
|
|
2333
2374
|
case "drop-shadow":
|
|
2334
2375
|
return [{}, (0, _selectors.toRNProperty)(value.type), [parseLength(value.value.xOffset, builder), parseLength(value.value.yOffset, builder), parseLength(value.value.blur, builder), parseColor(value.value.color, builder)]];
|