react-native-css 0.0.0-nightly.2cfbf16 → 0.0.0-nightly.2e152c9
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/README.md +30 -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 +150 -50
- 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 +190 -101
- package/dist/commonjs/compiler/declarations.js.map +1 -1
- package/dist/commonjs/compiler/individual-transforms.js +129 -0
- package/dist/commonjs/compiler/individual-transforms.js.map +1 -0
- package/dist/commonjs/compiler/inline-variables.js +47 -1
- package/dist/commonjs/compiler/inline-variables.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 +16 -4
- package/dist/commonjs/compiler/selector-builder.js.map +1 -1
- package/dist/commonjs/compiler/stylesheet.js +32 -13
- 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 +49 -1
- package/dist/commonjs/components/index.cjs.map +1 -1
- package/dist/commonjs/components/react-native-safe-area-context.native.js +10 -0
- package/dist/commonjs/components/react-native-safe-area-context.native.js.map +1 -1
- package/dist/commonjs/jest/index.js +3 -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 +16 -11
- 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/guards.js +7 -0
- package/dist/commonjs/native/conditions/guards.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/objects.js +11 -18
- package/dist/commonjs/native/objects.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 +45 -38
- package/dist/commonjs/native/react/rules.js.map +1 -1
- package/dist/commonjs/native/react/useNativeCss.js +70 -15
- 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 +64 -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/calculate-props.js +139 -26
- package/dist/commonjs/native/styles/calculate-props.js.map +1 -1
- package/dist/commonjs/native/styles/functions/animation-timing.js +2 -1
- package/dist/commonjs/native/styles/functions/animation-timing.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 +15 -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/platform-functions.js +2 -1
- package/dist/commonjs/native/styles/functions/platform-functions.js.map +1 -1
- package/dist/commonjs/native/styles/functions/string-functions.js +22 -6
- package/dist/commonjs/native/styles/functions/string-functions.js.map +1 -1
- package/dist/commonjs/native/styles/functions/transform-functions.js +95 -105
- package/dist/commonjs/native/styles/functions/transform-functions.js.map +1 -1
- package/dist/commonjs/native/styles/index.js +182 -123
- package/dist/commonjs/native/styles/index.js.map +1 -1
- package/dist/commonjs/native/styles/resolve.js +136 -19
- package/dist/commonjs/native/styles/resolve.js.map +1 -1
- package/dist/commonjs/native/styles/scale-factor.js +12 -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/box-shadow.js +13 -25
- package/dist/commonjs/native/styles/shorthands/box-shadow.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/shorthands/transform.js +31 -8
- package/dist/commonjs/native/styles/shorthands/transform.js.map +1 -1
- package/dist/commonjs/native/styles/variables.js +165 -48
- package/dist/commonjs/native/styles/variables.js.map +1 -1
- package/dist/commonjs/native-internal/root.js +46 -7
- package/dist/commonjs/native-internal/root.js.map +1 -1
- package/dist/commonjs/native-internal/style-collection.js +22 -37
- 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/equality.js +41 -0
- package/dist/commonjs/utilities/equality.js.map +1 -0
- package/dist/commonjs/utilities/index.js +11 -0
- package/dist/commonjs/utilities/index.js.map +1 -1
- package/dist/commonjs/utilities/style-descriptor.js +32 -8
- 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 +151 -51
- 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 +190 -100
- package/dist/module/compiler/declarations.js.map +1 -1
- package/dist/module/compiler/individual-transforms.js +125 -0
- package/dist/module/compiler/individual-transforms.js.map +1 -0
- package/dist/module/compiler/inline-variables.js +47 -1
- package/dist/module/compiler/inline-variables.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 +16 -5
- package/dist/module/compiler/selector-builder.js.map +1 -1
- package/dist/module/compiler/stylesheet.js +32 -13
- 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 +49 -1
- package/dist/module/components/index.cjs.map +1 -1
- package/dist/module/components/react-native-safe-area-context.native.js +9 -1
- package/dist/module/components/react-native-safe-area-context.native.js.map +1 -1
- package/dist/module/jest/index.js +3 -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 +18 -13
- 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/guards.js +7 -0
- package/dist/module/native/conditions/guards.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/objects.js +11 -18
- package/dist/module/native/objects.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 +46 -39
- package/dist/module/native/react/rules.js.map +1 -1
- package/dist/module/native/react/useNativeCss.js +73 -18
- 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 +58 -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/calculate-props.js +139 -26
- package/dist/module/native/styles/calculate-props.js.map +1 -1
- package/dist/module/native/styles/functions/animation-timing.js +2 -1
- package/dist/module/native/styles/functions/animation-timing.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 +13 -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/platform-functions.js +2 -1
- package/dist/module/native/styles/functions/platform-functions.js.map +1 -1
- package/dist/module/native/styles/functions/string-functions.js +19 -5
- package/dist/module/native/styles/functions/string-functions.js.map +1 -1
- package/dist/module/native/styles/functions/transform-functions.js +93 -104
- package/dist/module/native/styles/functions/transform-functions.js.map +1 -1
- package/dist/module/native/styles/index.js +182 -123
- package/dist/module/native/styles/index.js.map +1 -1
- package/dist/module/native/styles/resolve.js +136 -19
- package/dist/module/native/styles/resolve.js.map +1 -1
- package/dist/module/native/styles/scale-factor.js +8 -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/box-shadow.js +14 -26
- package/dist/module/native/styles/shorthands/box-shadow.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/shorthands/transform.js +31 -8
- package/dist/module/native/styles/shorthands/transform.js.map +1 -1
- package/dist/module/native/styles/variables.js +166 -50
- package/dist/module/native/styles/variables.js.map +1 -1
- package/dist/module/native-internal/root.js +44 -7
- package/dist/module/native-internal/root.js.map +1 -1
- package/dist/module/native-internal/style-collection.js +10 -37
- 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/equality.js +37 -0
- package/dist/module/utilities/equality.js.map +1 -0
- package/dist/module/utilities/index.js +1 -0
- package/dist/module/utilities/index.js.map +1 -1
- package/dist/module/utilities/style-descriptor.js +30 -8
- 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 +13 -0
- package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts +2 -3
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/individual-transforms.d.ts +10 -0
- package/dist/typescript/commonjs/src/compiler/individual-transforms.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts +1 -1
- package/dist/typescript/commonjs/src/compiler/inline-variables.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 +2 -1
- package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +10 -11
- 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 +2 -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 +5 -9
- 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/conditions/guards.d.ts +2 -1
- package/dist/typescript/commonjs/src/native/conditions/guards.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/objects.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 +7 -2
- package/dist/typescript/commonjs/src/native/react/rules.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts +0 -3
- 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 +15 -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/calculate-props.d.ts +11 -2
- package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/functions/animation-timing.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/platform-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 +2 -0
- 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 +5 -4
- package/dist/typescript/commonjs/src/native/styles/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/resolve.d.ts +4 -1
- 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/box-shadow.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/shorthands/transform.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/variables.d.ts +3 -2
- package/dist/typescript/commonjs/src/native/styles/variables.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native-internal/root.d.ts +38 -0
- package/dist/typescript/commonjs/src/native-internal/root.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts +2 -2
- package/dist/typescript/commonjs/src/native-internal/style-collection.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/equality.d.ts +2 -0
- package/dist/typescript/commonjs/src/utilities/equality.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/utilities/index.d.ts +1 -0
- package/dist/typescript/commonjs/src/utilities/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts +14 -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 +14 -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 -5
- 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/individual-transforms.d.ts +10 -0
- package/dist/typescript/module/src/compiler/individual-transforms.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/inline-variables.d.ts +2 -2
- 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 +3 -2
- 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 +10 -11
- 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 +2 -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 +6 -10
- 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 +4 -3
- 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/objects.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 +9 -4
- package/dist/typescript/module/src/native/react/rules.d.ts.map +1 -1
- package/dist/typescript/module/src/native/react/useNativeCss.d.ts +4 -7
- 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 +15 -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 +13 -4
- 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 +3 -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 +9 -8
- 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 +7 -4
- 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 +4 -3
- 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 +39 -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 +3 -3
- 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/equality.d.ts +2 -0
- package/dist/typescript/module/src/utilities/equality.d.ts.map +1 -0
- package/dist/typescript/module/src/utilities/index.d.ts +4 -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 +14 -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 +61 -27
- 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 +216 -69
- package/src/compiler/compiler.types.ts +17 -0
- package/src/compiler/container-query.ts +8 -3
- package/src/compiler/declarations.ts +385 -247
- package/src/compiler/individual-transforms.ts +129 -0
- package/src/compiler/inline-variables.ts +67 -0
- package/src/compiler/lightningcss-loader.ts +16 -15
- package/src/compiler/media-query.ts +20 -9
- package/src/compiler/selector-builder.ts +32 -5
- package/src/compiler/stylesheet.ts +49 -19
- package/src/components/ImageBackground.tsx +2 -6
- package/src/components/KeyboardAvoidingView.tsx +2 -3
- package/src/components/index.cts +49 -1
- package/src/components/react-native-safe-area-context.native.tsx +20 -0
- package/src/jest/index.ts +3 -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 +26 -18
- package/src/native/conditions/attributes.ts +26 -9
- package/src/native/conditions/container-query.ts +11 -9
- package/src/native/conditions/guards.ts +13 -1
- package/src/native/conditions/media-query.ts +1 -1
- package/src/native/objects.ts +12 -22
- package/src/native/react/interaction.ts +11 -6
- package/src/native/react/rules.ts +58 -45
- package/src/native/react/useNativeCss.ts +85 -18
- package/src/native/react/usePassthrough.ts +3 -2
- package/src/native/reactivity.ts +79 -24
- package/src/native/reanimated.ts +24 -5
- package/src/native/styles/calculate-props.ts +179 -28
- package/src/native/styles/functions/animation-timing.ts +3 -1
- package/src/native/styles/functions/color-mix.ts +45 -39
- package/src/native/styles/functions/filters.ts +15 -0
- package/src/native/styles/functions/numeric-functions.ts +7 -6
- package/src/native/styles/functions/platform-functions.ts +3 -1
- package/src/native/styles/functions/string-functions.ts +25 -5
- package/src/native/styles/functions/transform-functions.ts +111 -64
- package/src/native/styles/index.ts +208 -144
- package/src/native/styles/resolve.ts +188 -29
- package/src/native/styles/scale-factor.ts +9 -0
- package/src/native/styles/shorthands/animation.ts +8 -2
- package/src/native/styles/shorthands/box-shadow.ts +20 -34
- package/src/native/styles/shorthands/index.ts +1 -0
- package/src/native/styles/shorthands/logical-border-width.ts +32 -0
- package/src/native/styles/shorthands/transform.ts +36 -11
- package/src/native/styles/variables.ts +242 -45
- package/src/native-internal/root.ts +83 -13
- package/src/native-internal/style-collection.ts +21 -46
- 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/equality.ts +41 -0
- package/src/utilities/index.ts +1 -0
- package/src/utilities/style-descriptor.ts +36 -14
- 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
|
@@ -8,7 +8,6 @@ exports.calculateProps = calculateProps;
|
|
|
8
8
|
var _utilities = require("react-native-css/utilities");
|
|
9
9
|
var _objects = require("../objects.js");
|
|
10
10
|
var _reactivity = require("../reactivity.js");
|
|
11
|
-
var _defaults = require("./defaults.js");
|
|
12
11
|
var _resolve = require("./resolve.js");
|
|
13
12
|
/* eslint-disable */
|
|
14
13
|
|
|
@@ -20,7 +19,7 @@ function calculateProps(get, rules, guards = [], inheritedVariables = {
|
|
|
20
19
|
let normal;
|
|
21
20
|
let important;
|
|
22
21
|
const delayedStyles = [];
|
|
23
|
-
const
|
|
22
|
+
const transforms = [];
|
|
24
23
|
for (const rule of rules) {
|
|
25
24
|
if (_reactivity.VAR_SYMBOL in rule) {
|
|
26
25
|
if (typeof rule[_reactivity.VAR_SYMBOL] === "string") {
|
|
@@ -36,7 +35,8 @@ function calculateProps(get, rules, guards = [], inheritedVariables = {
|
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
37
|
if (rule.d) {
|
|
39
|
-
|
|
38
|
+
const isImportant = Boolean(rule.s?.[_utilities.Specificity.Important]);
|
|
39
|
+
let topLevelTarget = isImportant ? important ??= {} : normal ??= {};
|
|
40
40
|
let target = topLevelTarget;
|
|
41
41
|
const ruleTarget = rule.target || "style";
|
|
42
42
|
if (typeof ruleTarget === "string") {
|
|
@@ -46,14 +46,19 @@ function calculateProps(get, rules, guards = [], inheritedVariables = {
|
|
|
46
46
|
target = target[path] ??= {};
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
applyDeclarations(get, rule.d, inlineVariables, inheritedVariables, delayedStyles,
|
|
49
|
+
applyDeclarations(get, rule.d, inlineVariables, inheritedVariables, delayedStyles, transforms, guards, target, topLevelTarget, ruleTarget, isImportant);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
for (const delayedStyle of delayedStyles) {
|
|
53
53
|
delayedStyle();
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
if (transforms.length > 0) {
|
|
56
|
+
composeTransforms(transforms, value => (0, _resolve.resolveValue)(value, get, {
|
|
57
|
+
inlineVariables,
|
|
58
|
+
inheritedVariables,
|
|
59
|
+
renderGuards: guards,
|
|
60
|
+
calculateProps
|
|
61
|
+
}));
|
|
57
62
|
}
|
|
58
63
|
return {
|
|
59
64
|
normal,
|
|
@@ -61,7 +66,117 @@ function calculateProps(get, rules, guards = [], inheritedVariables = {
|
|
|
61
66
|
important
|
|
62
67
|
};
|
|
63
68
|
}
|
|
64
|
-
|
|
69
|
+
|
|
70
|
+
// css-transforms-2 §6: an element's transform is its `translate`, then its `rotate`, then its `scale`, then its `transform` list
|
|
71
|
+
const TRANSFORM_SLOTS = 4;
|
|
72
|
+
|
|
73
|
+
// A transform property's cascade slot in composition order, or -1. This runs for every dynamic declaration
|
|
74
|
+
function transformSlot(prop) {
|
|
75
|
+
switch (prop) {
|
|
76
|
+
case "translate":
|
|
77
|
+
return 0;
|
|
78
|
+
case "rotate":
|
|
79
|
+
return 1;
|
|
80
|
+
case "scale":
|
|
81
|
+
return 2;
|
|
82
|
+
case "transform":
|
|
83
|
+
return 3;
|
|
84
|
+
default:
|
|
85
|
+
return -1;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** A transform property's declaration, kept until every rule has been walked */
|
|
90
|
+
|
|
91
|
+
/** One style target's slots: the normal ones, then the !important ones */
|
|
92
|
+
|
|
93
|
+
function samePath(a, b) {
|
|
94
|
+
if (a === b) return true;
|
|
95
|
+
if (typeof a === "string" || typeof b === "string") return false;
|
|
96
|
+
if (a.length !== b.length) return false;
|
|
97
|
+
for (let i = 0; i < a.length; i++) {
|
|
98
|
+
if (a[i] !== b[i]) return false;
|
|
99
|
+
}
|
|
100
|
+
return true;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Each transform property of each style target is a cascade slot of its own,
|
|
105
|
+
* and the slots compose into one `transform`. Records arrive in cascade
|
|
106
|
+
* order, so a later one replaces an earlier one, and an !important slot
|
|
107
|
+
* replaces a normal one for the same path.
|
|
108
|
+
*/
|
|
109
|
+
function composeTransforms(records, resolve) {
|
|
110
|
+
// One declaration, the usual case, has nothing to compose with
|
|
111
|
+
if (records.length === 1) {
|
|
112
|
+
const record = records[0];
|
|
113
|
+
const resolved = resolve(record.value);
|
|
114
|
+
if (resolved !== undefined && resolved !== null) {
|
|
115
|
+
const composed = [];
|
|
116
|
+
pushEntries(composed, resolved);
|
|
117
|
+
record.target.transform = composed;
|
|
118
|
+
}
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// Almost always one group, so a scan beats keying a Map by path
|
|
123
|
+
const groups = [];
|
|
124
|
+
for (let r = 0; r < records.length; r++) {
|
|
125
|
+
const record = records[r];
|
|
126
|
+
let group;
|
|
127
|
+
for (let g = 0; g < groups.length; g++) {
|
|
128
|
+
if (samePath(groups[g].path, record.path)) {
|
|
129
|
+
group = groups[g];
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
if (group === undefined) {
|
|
134
|
+
group = {
|
|
135
|
+
path: record.path,
|
|
136
|
+
target: record.target,
|
|
137
|
+
slots: [undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined]
|
|
138
|
+
};
|
|
139
|
+
groups.push(group);
|
|
140
|
+
}
|
|
141
|
+
if (record.important) {
|
|
142
|
+
// The important target is merged over the normal one, so it takes the composed list
|
|
143
|
+
group.target = record.target;
|
|
144
|
+
group.slots[record.slot + TRANSFORM_SLOTS] = record.value;
|
|
145
|
+
} else {
|
|
146
|
+
group.slots[record.slot] = record.value;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
for (let g = 0; g < groups.length; g++) {
|
|
150
|
+
const group = groups[g];
|
|
151
|
+
let composed;
|
|
152
|
+
for (let slot = 0; slot < TRANSFORM_SLOTS; slot++) {
|
|
153
|
+
const important = group.slots[slot + TRANSFORM_SLOTS];
|
|
154
|
+
const value = important !== undefined ? important : group.slots[slot];
|
|
155
|
+
if (value === undefined) {
|
|
156
|
+
continue;
|
|
157
|
+
}
|
|
158
|
+
const resolved = resolve(value);
|
|
159
|
+
|
|
160
|
+
// A property that resolves to no value is `none` (css-variables-1 §3.1)
|
|
161
|
+
if (resolved !== undefined && resolved !== null) {
|
|
162
|
+
pushEntries(composed ??= [], resolved);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
if (composed !== undefined) {
|
|
166
|
+
group.target.transform = composed;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// A resolver returns a group for a two-axis function, so entries are spread into the list
|
|
172
|
+
function pushEntries(entries, value) {
|
|
173
|
+
if (Array.isArray(value)) {
|
|
174
|
+
for (let i = 0; i < value.length; i++) pushEntries(entries, value[i]);
|
|
175
|
+
} else {
|
|
176
|
+
entries.push(value);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
function applyDeclarations(get, declarations, inlineVariables, inheritedVariables, delayedStyles = [], transforms = [], guards = [], target = {}, topLevelTarget = target, path = "style", important = false) {
|
|
65
180
|
const originalTarget = target;
|
|
66
181
|
for (const declaration of declarations) {
|
|
67
182
|
target = originalTarget;
|
|
@@ -107,8 +222,19 @@ function applyDeclarations(get, declarations, inlineVariables, inheritedVariable
|
|
|
107
222
|
} else {
|
|
108
223
|
prop = propPath;
|
|
109
224
|
}
|
|
225
|
+
const slot = target === originalTarget ? transformSlot(prop) : -1;
|
|
226
|
+
if (slot !== -1) {
|
|
227
|
+
transforms.push({
|
|
228
|
+
target,
|
|
229
|
+
path,
|
|
230
|
+
important,
|
|
231
|
+
slot,
|
|
232
|
+
value
|
|
233
|
+
});
|
|
234
|
+
continue;
|
|
235
|
+
}
|
|
110
236
|
const shouldDelay = declaration[2];
|
|
111
|
-
if (shouldDelay
|
|
237
|
+
if (shouldDelay) {
|
|
112
238
|
/**
|
|
113
239
|
* We need to delay the resolution of this value until after all
|
|
114
240
|
* styles have been calculated. But another style might override
|
|
@@ -119,12 +245,12 @@ function applyDeclarations(get, declarations, inlineVariables, inheritedVariable
|
|
|
119
245
|
* mutate the props object and not create a new one
|
|
120
246
|
*/
|
|
121
247
|
const originalValue = value;
|
|
122
|
-
// This needs to be a object with the [prop] so we can discover in transform arrays
|
|
123
248
|
value = {
|
|
124
249
|
[prop]: true
|
|
125
250
|
};
|
|
126
|
-
|
|
127
|
-
|
|
251
|
+
delayedStyles.push(() => {
|
|
252
|
+
if ((0, _objects.getDeepPath)(target, prop) === value) {
|
|
253
|
+
delete target[prop];
|
|
128
254
|
value = (0, _resolve.resolveValue)(originalValue, get, {
|
|
129
255
|
inlineVariables,
|
|
130
256
|
inheritedVariables,
|
|
@@ -132,21 +258,8 @@ function applyDeclarations(get, declarations, inlineVariables, inheritedVariable
|
|
|
132
258
|
calculateProps
|
|
133
259
|
});
|
|
134
260
|
(0, _objects.applyValue)(target, prop, value);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
delayedStyles.push(() => {
|
|
138
|
-
if ((0, _objects.getDeepPath)(target, prop) === value) {
|
|
139
|
-
delete target[prop];
|
|
140
|
-
value = (0, _resolve.resolveValue)(originalValue, get, {
|
|
141
|
-
inlineVariables,
|
|
142
|
-
inheritedVariables,
|
|
143
|
-
renderGuards: guards,
|
|
144
|
-
calculateProps
|
|
145
|
-
});
|
|
146
|
-
(0, _objects.applyValue)(target, prop, value);
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
}
|
|
261
|
+
}
|
|
262
|
+
});
|
|
150
263
|
} else {
|
|
151
264
|
value = (0, _resolve.resolveValue)(value, get, {
|
|
152
265
|
inlineVariables,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_utilities","require","_objects","_reactivity","
|
|
1
|
+
{"version":3,"names":["_utilities","require","_objects","_reactivity","_resolve","calculateProps","get","rules","guards","inheritedVariables","VAR_SYMBOL","inlineVariables","normal","important","delayedStyles","transforms","rule","Object","assign","v","variable","d","isImportant","Boolean","s","S","Important","topLevelTarget","target","ruleTarget","path","applyDeclarations","delayedStyle","length","composeTransforms","value","resolveValue","renderGuards","TRANSFORM_SLOTS","transformSlot","prop","samePath","a","b","i","records","resolve","record","resolved","undefined","composed","pushEntries","transform","groups","r","group","g","slots","push","slot","entries","Array","isArray","declarations","originalTarget","declaration","propPath","first","rest","final","pop","previousProp","previousTarget","startsWith","endsWith","Number","slice","shouldDelay","originalValue","getDeepPath","applyValue"],"sourceRoot":"../../../../src","sources":["native/styles/calculate-props.ts"],"mappings":";;;;;;;AAOA,IAAAA,UAAA,GAAAC,OAAA;AAGA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAKA,IAAAG,QAAA,GAAAH,OAAA;AAhBA;;AAkBO,SAASI,cAAcA,CAC5BC,GAAW,EACXC,KAA4D,EAC5DC,MAAqB,GAAG,EAAE,EAC1BC,kBAAwC,GAAG;EACzC,CAACC,sBAAU,GAAG;AAChB,CAAC,EACDC,eAA+B,GAAG;EAChC,CAACD,sBAAU,GAAG;AAChB,CAAC,EACD;EACA,IAAIE,MAAuC;EAC3C,IAAIC,SAA0C;EAE9C,MAAMC,aAA6B,GAAG,EAAE;EACxC,MAAMC,UAA6B,GAAG,EAAE;EAExC,KAAK,MAAMC,IAAI,IAAIT,KAAK,EAAE;IACxB,IAAIG,sBAAU,IAAIM,IAAI,EAAE;MACtB,IAAI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AK,CAAC;QAExB1B,aAAa,CAAC4C,IAAI,CAAC,MAAM;UACvB,IAAI,IAAAqB,oBAAW,EAACnD,MAAM,EAAEY,IAAI,CAAC,KAAKL,KAAK,EAAE;YACvC,OAAOP,MAAM,CAACY,IAAI,CAAC;YACnBL,KAAK,GAAG,IAAAC,qBAAY,EAAC0C,aAAa,EAAExE,GAAG,EAAE;cACvCK,eAAe;cACfF,kBAAkB;cAClB4B,YAAY,EAAE7B,MAAM;cACpBH;YACF,CAAC,CAAC;YACF,IAAA2E,mBAAU,EAACpD,MAAM,EAAEY,IAAI,EAAEL,KAAK,CAAC;UACjC;QACF,CAAC,CAAC;MACJ,CAAC,MAAM;QACLA,KAAK,GAAG,IAAAC,qBAAY,EAACD,KAAK,EAAE7B,GAAG,EAAE;UAC/BK,eAAe;UACfF,kBAAkB;UAClB4B,YAAY,EAAE7B,MAAM;UACpBH;QACF,CAAC,CAAC;MACJ;MAEA,IAAA2E,mBAAU,EAACpD,MAAM,EAAEY,IAAI,EAAEL,KAAK,CAAC;IACjC;EACF;AACF","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.steps = exports.cubicBezier = void 0;
|
|
7
|
+
var _utilities = require("react-native-css/utilities");
|
|
7
8
|
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
8
9
|
const advancedTimingFunctions = {
|
|
9
10
|
cubicBezier: () => {
|
|
@@ -19,7 +20,7 @@ const timingFunctionResolver = (resolveValue, value) => {
|
|
|
19
20
|
if (!resolver) {
|
|
20
21
|
return;
|
|
21
22
|
}
|
|
22
|
-
const args = resolveValue(value[2]);
|
|
23
|
+
const args = (0, _utilities.commaListItems)(resolveValue(value[2]));
|
|
23
24
|
if (!Array.isArray(args)) {
|
|
24
25
|
return;
|
|
25
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_utilities","require","advancedTimingFunctions","cubicBezier","steps","timingFunctionResolver","resolveValue","value","name","resolver","args","commaListItems","Array","isArray","fn","result","exports"],"sourceRoot":"../../../../../src","sources":["native/styles/functions/animation-timing.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAIA;AACA,MAAMC,uBAIL,GAAG;EACFC,WAAW,EAAEA,CAAA,KAAM;IACjB,OACEF,OAAO,CAAC,yBAAyB,CAAC,CAClCE,WAAW;EACf,CAAC;EACDC,KAAK,EAAEA,CAAA,KAAM;IACX,OACEH,OAAO,CAAC,yBAAyB,CAAC,CAClCG,KAAK;EACT;AACF,CAAC;AAED,MAAMC,sBAA6C,GAAGA,CAACC,YAAY,EAAEC,KAAK,KAAK;EAC7E,MAAMC,IAAI,GAAGD,KAAK,CAAC,CAAC,CAAC;EACrB,MAAME,QAAQ,GAAGP,uBAAuB,CAACM,IAAI,CAAC;EAE9C,IAAI,CAACC,QAAQ,EAAE;IACb;EACF;EAEA,MAAMC,IAAI,GAAG,IAAAC,yBAAc,EAACL,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;EAEnD,IAAI,CAACK,KAAK,CAACC,OAAO,CAACH,IAAI,CAAC,EAAE;IACxB;EACF;EAEA,MAAMI,EAAE,GAAGL,QAAQ,CAAC,CAAC;;EAErB;EACA,MAAMM,MAAM,GAAGD,EAAE,CAAC,GAAGJ,IAAI,CAAC;EAE1B,OAAOK,MAAM;AACf,CAAC;AAEM,MAAMZ,WAAW,GAAAa,OAAA,CAAAb,WAAA,GAAGE,sBAAsB;AAC1C,MAAMD,KAAK,GAAAY,OAAA,CAAAZ,KAAA,GAAGC,sBAAsB","ignoreList":[]}
|
|
@@ -5,42 +5,56 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.colorMix = void 0;
|
|
7
7
|
var _fn = require("colorjs.io/fn");
|
|
8
|
-
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
|
9
|
-
|
|
10
8
|
_fn.ColorSpace.register(_fn.sRGB);
|
|
11
9
|
_fn.ColorSpace.register(_fn.P3);
|
|
12
10
|
_fn.ColorSpace.register(_fn.OKLab);
|
|
13
11
|
const colorMix = (resolveValue, value) => {
|
|
14
|
-
const
|
|
15
|
-
if (!Array.isArray(
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
const resolved = resolveValue(value[2]);
|
|
13
|
+
if (!Array.isArray(resolved)) return;
|
|
14
|
+
|
|
15
|
+
// Resolved descriptors may be cached and shared by another styled component.
|
|
16
|
+
const args = [...resolved];
|
|
18
17
|
try {
|
|
19
18
|
const space = args.shift();
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
if (typeof
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
19
|
+
const leftValue = args.shift();
|
|
20
|
+
if (typeof space !== "string" || typeof leftValue !== "string") return;
|
|
21
|
+
_fn.ColorSpace.get(space);
|
|
22
|
+
const left = (0, _fn.parse)(leftValue);
|
|
23
|
+
const percentage = () => {
|
|
24
|
+
const next = args[0];
|
|
25
|
+
if (typeof next !== "string" || !next.endsWith("%")) return undefined;
|
|
26
|
+
args.shift();
|
|
27
|
+
return Number(next.slice(0, -1)) / 100;
|
|
28
|
+
};
|
|
29
|
+
let leftWeight = percentage();
|
|
30
|
+
const rightValue = args.shift();
|
|
31
|
+
if (typeof rightValue !== "string") return;
|
|
32
|
+
const right = (0, _fn.parse)(rightValue);
|
|
33
|
+
let rightWeight = percentage();
|
|
34
|
+
if (args.length) return;
|
|
35
|
+
|
|
36
|
+
// CSS Color 5: omitted weights are complementary, then both are normalized.
|
|
37
|
+
leftWeight ??= rightWeight === undefined ? 0.5 : 1 - rightWeight;
|
|
38
|
+
rightWeight ??= 1 - leftWeight;
|
|
39
|
+
if (![leftWeight, rightWeight].every(weight => Number.isFinite(weight) && weight >= 0 && weight <= 1)) return;
|
|
40
|
+
const sum = leftWeight + rightWeight;
|
|
41
|
+
if (sum === 0) return;
|
|
42
|
+
const alphaMultiplier = Math.min(sum, 1);
|
|
43
|
+
let result;
|
|
44
|
+
if (right.alpha === 0 || left.alpha === 0) {
|
|
45
|
+
// A transparent endpoint contributes no premultiplied channels.
|
|
46
|
+
const source = right.alpha === 0 ? left : right;
|
|
47
|
+
const weight = right.alpha === 0 ? leftWeight : rightWeight;
|
|
48
|
+
result = (0, _fn.to)(source, "srgb");
|
|
49
|
+
result.alpha = (source.alpha ?? 1) * weight / sum;
|
|
50
|
+
} else {
|
|
51
|
+
result = (0, _fn.mix)(left, right, rightWeight / sum, {
|
|
52
|
+
space,
|
|
53
|
+
outputSpace: "srgb",
|
|
54
|
+
premultiplied: true
|
|
55
|
+
});
|
|
39
56
|
}
|
|
40
|
-
|
|
41
|
-
space,
|
|
42
|
-
outputSpace: "srgb"
|
|
43
|
-
});
|
|
57
|
+
result.alpha = (result.alpha ?? 1) * alphaMultiplier;
|
|
44
58
|
return `rgba(${(result.coords[0] ?? 0) * 255}, ${(result.coords[1] ?? 0) * 255}, ${(result.coords[2] ?? 0) * 255}, ${result.alpha})`;
|
|
45
59
|
} catch {
|
|
46
60
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_fn","require","ColorSpace","register","sRGB","P3","OKLab","colorMix","resolveValue","value","
|
|
1
|
+
{"version":3,"names":["_fn","require","ColorSpace","register","sRGB","P3","OKLab","colorMix","resolveValue","value","resolved","Array","isArray","args","space","shift","leftValue","get","left","parse","percentage","next","endsWith","undefined","Number","slice","leftWeight","rightValue","right","rightWeight","length","every","weight","isFinite","sum","alphaMultiplier","Math","min","result","alpha","source","convert","mix","outputSpace","premultiplied","coords","exports"],"sourceRoot":"../../../../../src","sources":["native/styles/functions/color-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J;IACAN,MAAM,CAACC,KAAK,GAAG,CAACD,MAAM,CAACC,KAAK,IAAI,CAAC,IAAIJ,eAAe;IACpD,OAAO,QAAQ,CAACG,MAAM,CAACO,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,KAAK,CAACP,MAAM,CAACO,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,KAAK,CAACP,MAAM,CAACO,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,KAAKP,MAAM,CAACC,KAAK,GAAG;EACtI,CAAC,CAAC,MAAM;IACN;EACF;AACF,CAAC;AAACO,OAAA,CAAAvC,QAAA,GAAAA,QAAA","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.sepia = exports.saturate = exports.opacity = exports.invert = exports.hueRotate = exports.grayscale = exports.dropShadow = exports.contrast = exports.brightness = exports.blur = void 0;
|
|
6
|
+
exports.sepia = exports.saturate = exports.opacity = exports.invert = exports.hueRotate = exports.grayscale = exports.filter = exports.dropShadow = exports.contrast = exports.brightness = exports.blur = void 0;
|
|
7
7
|
var _utilities = require("react-native-css/utilities");
|
|
8
8
|
var _handler = require("../shorthands/_handler.js");
|
|
9
9
|
const blur = (resolveValue, value) => {
|
|
@@ -80,5 +80,19 @@ const dropShadow = (resolveValue, func, get, options) => {
|
|
|
80
80
|
dropShadow: handler(resolveValue, args, get, options)
|
|
81
81
|
} : undefined;
|
|
82
82
|
};
|
|
83
|
+
|
|
84
|
+
/** CSS variables may expand to multiple filters; native filter arrays must be flat. */
|
|
83
85
|
exports.dropShadow = dropShadow;
|
|
86
|
+
const filter = (resolveValue, descriptor) => {
|
|
87
|
+
const value = resolveValue(descriptor[2]);
|
|
88
|
+
if (Array.isArray(value)) {
|
|
89
|
+
// resolveValue splices a var() in, so only a comma-separated list nests
|
|
90
|
+
const filters = Array.isArray(value[0]) ? value.flat() : value;
|
|
91
|
+
return filters.filter(entry => entry !== undefined && entry !== "initial");
|
|
92
|
+
}
|
|
93
|
+
if (value === undefined || value === "initial") return;
|
|
94
|
+
if (value === "none") return null;
|
|
95
|
+
return typeof value === "string" ? value : [value];
|
|
96
|
+
};
|
|
97
|
+
exports.filter = filter;
|
|
84
98
|
//# sourceMappingURL=filters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_utilities","require","_handler","blur","resolveValue","value","args","Array","isArray","exports","brightness","contrast","grayscale","hueRotate","invert","sepia","saturate","opacity","color","offsetX","offsetY","standardDeviation","handler","shorthandHandler","dropShadow","func","get","options","isStyleDescriptorArray","undefined"],"sourceRoot":"../../../../../src","sources":["native/styles/functions/filters.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAGA,IAAAC,QAAA,GAAAD,OAAA;AAEO,MAAME,IAA2B,GAAGA,CAACC,YAAY,EAAEC,KAAK,KAAK;EAClE,MAAMC,IAAI,GAAGF,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EACnC,OAAO;IACLF,IAAI,EAAGI,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,GAAGA,IAAI,CAAC,CAAC,CAAC,GAAGA;EACzC,CAAC;AACH,CAAC;AAACG,OAAA,CAAAN,IAAA,GAAAA,IAAA;AAEK,MAAMO,UAAiC,GAAGA,CAACN,YAAY,EAAEC,KAAK,KAAK;EACxE,MAAMC,IAAI,GAAGF,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EACnC,OAAO;IACLK,UAAU,EAAGH,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,GAAGA,IAAI,CAAC,CAAC,CAAC,GAAGA;EAC/C,CAAC;AACH,CAAC;AAACG,OAAA,CAAAC,UAAA,GAAAA,UAAA;AAEK,MAAMC,QAA+B,GAAGA,CAACP,YAAY,EAAEC,KAAK,KAAK;EACtE,MAAMC,IA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AAC,EAC5C,CAACF,OAAO,EAAEC,OAAO,EAAEF,KAAK,CAAC,EACzB,CAACC,OAAO,EAAEC,OAAO,EAAEC,iBAAiB,EAAEH,KAAK,CAAC,CAC7C,EACD,EAAE,EACF,QACF,CAAC;AAEM,MAAMM,UAAiC,GAAGA,CAC/CpB,YAAY,EACZqB,IAAI,EACJC,GAAG,EACHC,OAAO,KACJ;EACH,MAAMrB,IAAI,GAAGF,YAAY,CAACqB,IAAI,CAAC,CAAC,CAAC,CAAC;EAElC,OAAO,IAAAG,iCAAsB,EAACtB,IAAI,CAAC,GAC/B;IACEkB,UAAU,EAAEF,OAAO,CAAClB,YAAY,EAAEE,IAAI,EAAEoB,GAAG,EAAEC,OAAO;EACtD,CAAC,GACDE,SAAS;AACf,CAAC;
|
|
1
|
+
{"version":3,"names":["_utilities","require","_handler","blur","resolveValue","value","args","Array","isArray","exports","brightness","contrast","grayscale","hueRotate","invert","sepia","saturate","opacity","color","offsetX","offsetY","standardDeviation","handler","shorthandHandler","dropShadow","func","get","options","isStyleDescriptorArray","undefined","filter","descriptor","filters","flat","entry"],"sourceRoot":"../../../../../src","sources":["native/styles/functions/filters.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAGA,IAAAC,QAAA,GAAAD,OAAA;AAEO,MAAME,IAA2B,GAAGA,CAACC,YAAY,EAAEC,KAAK,KAAK;EAClE,MAAMC,IAAI,GAAGF,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EACnC,OAAO;IACLF,IAAI,EAAGI,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,GAAGA,IAAI,CAAC,CAAC,CAAC,GAAGA;EACzC,CAAC;AACH,CAAC;AAACG,OAAA,CAAAN,IAAA,GAAAA,IAAA;AAEK,MAAMO,UAAiC,GAAGA,CAACN,YAAY,EAAEC,KAAK,KAAK;EACxE,MAAMC,IAAI,GAAGF,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EACnC,OAA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SAAS,IAAIxB,KAAK,KAAK,SAAS,EAAE;EAChD,IAAIA,KAAK,KAAK,MAAM,EAAE,OAAO,IAAI;EACjC,OAAO,OAAOA,KAAK,KAAK,QAAQ,GAAGA,KAAK,GAAG,CAACA,KAAK,CAAC;AACpD,CAAC;AAACI,OAAA,CAAAqB,MAAA,GAAAA,MAAA","ignoreList":[]}
|
|
@@ -22,11 +22,12 @@ const min = (resolveValue, value) => {
|
|
|
22
22
|
exports.min = min;
|
|
23
23
|
const clamp = (resolveValue, value) => {
|
|
24
24
|
const args = resolveValue(value[2]);
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
if (!Array.isArray(args)) return;
|
|
26
|
+
const [minimum, preferred, maximum] = args;
|
|
27
|
+
if (typeof minimum !== "number" || typeof preferred !== "number" || typeof maximum !== "number") {
|
|
27
28
|
return;
|
|
28
29
|
}
|
|
29
|
-
return Math.
|
|
30
|
+
return Math.max(minimum, Math.min(preferred, maximum));
|
|
30
31
|
};
|
|
31
32
|
exports.clamp = clamp;
|
|
32
33
|
//# sourceMappingURL=numeric-functions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["max","resolveValue","value","args","Array","isArray","some","arg","Math","exports","min","clamp","
|
|
1
|
+
{"version":3,"names":["max","resolveValue","value","args","Array","isArray","some","arg","Math","exports","min","clamp","minimum","preferred","maximum"],"sourceRoot":"../../../../../src","sources":["native/styles/functions/numeric-functions.ts"],"mappings":";;;;;;AAEO,MAAMA,GAA0B,GAAGA,CAACC,YAAY,EAAEC,KAAK,KAAK;EACjE,MAAMC,IAAI,GAAGF,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EAEnC,IAAI,CAACE,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,IAAIA,IAAI,CAACG,IAAI,CAAEC,GAAG,IAAK,OAAOA,GAAG,KAAK,QAAQ,CAAC,EAAE;IACvE;EACF;EAEA,OAAOC,IAAI,CAACR,GAAG,CAAC,GAAIG,IAAiB,CAAC;AACxC,CAAC;AAACM,OAAA,CAAAT,GAAA,GAAAA,GAAA;AAEK,MAAMU,GAA0B,GAAGA,CAACT,YAAY,EAAEC,KAAK,KAAK;EACjE,MAAMC,IAAI,GAAGF,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EAEnC,IAAI,CAACE,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,IAAIA,IAAI,CAACG,IAAI,CAAEC,GAAG,IAAK,OAAOA,GAAG,KAAK,QAAQ,CAAC,EAAE;IACvE;EACF;EAEA,OAAOC,IAAI,CAACE,GAAG,CAAC,GAAIP,IAAiB,CAAC;AACxC,CAAC;AAACM,OAAA,CAAAC,GAAA,GAAAA,GAAA;AAEK,MAAMC,KAA4B,GAAGA,CAACV,YAAY,EAAEC,KAAK,KAAK;EACnE,MAAMC,IAAI,GAAGF,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EAEnC,IAAI,CAACE,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,EAAE;EAE1B,MAAM,CAACS,OAAO,EAAEC,SAAS,EAAEC,OAAO,CAAC,GAAGX,IAAiB;EAEvD,IACE,OAAOS,OAAO,KAAK,QAAQ,IAC3B,OAAOC,SAAS,KAAK,QAAQ,IAC7B,OAAOC,OAAO,KAAK,QAAQ,EAC3B;IACA;EACF;EAEA,OAAON,IAAI,CAACR,GAAG,CAACY,OAAO,EAAEJ,IAAI,CAACE,GAAG,CAACG,SAAS,EAAEC,OAAO,CAAC,CAAC;AACxD,CAAC;AAACL,OAAA,CAAAE,KAAA,GAAAA,KAAA","ignoreList":[]}
|
|
@@ -5,8 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.roundToNearestPixel = exports.platformColor = exports.pixelRatio = exports.hairlineWidth = exports.getPixelSizeForLayoutSize = exports.fontScale = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
|
+
var _utilities = require("react-native-css/utilities");
|
|
8
9
|
const platformColor = (resolveValue, value) => {
|
|
9
|
-
const color = resolveValue(value[2]);
|
|
10
|
+
const color = (0, _utilities.commaListItems)(resolveValue(value[2]));
|
|
10
11
|
if (Array.isArray(color)) {
|
|
11
12
|
return (0, _reactNative.PlatformColor)(...color);
|
|
12
13
|
} else if (typeof color === "string") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","platformColor","resolveValue","value","color","Array","isArray","PlatformColor","exports","hairlineWidth","StyleSheet","pixelRatio","PixelRatio","get","fontScale","getFontScale","getPixelSizeForLayoutSize","size","roundToNearestPixel"],"sourceRoot":"../../../../../src","sources":["native/styles/functions/platform-functions.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAIO,
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_utilities","platformColor","resolveValue","value","color","commaListItems","Array","isArray","PlatformColor","exports","hairlineWidth","StyleSheet","pixelRatio","PixelRatio","get","fontScale","getFontScale","getPixelSizeForLayoutSize","size","roundToNearestPixel"],"sourceRoot":"../../../../../src","sources":["native/styles/functions/platform-functions.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAD,OAAA;AAIO,MAAME,aAAoC,GAAGA,CAACC,YAAY,EAAEC,KAAK,KAAK;EAC3E,MAAMC,KAAc,GAAG,IAAAC,yBAAc,EAACH,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;EAC7D,IAAIG,KAAK,CAACC,OAAO,CAACH,KAAK,CAAC,EAAE;IACxB,OAAO,IAAAI,0BAAa,EAAC,GAAIJ,KAAkB,CAAC;EAC9C,CAAC,MAAM,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IACpC,OAAO,IAAAI,0BAAa,EAACJ,KAAK,CAAC;EAC7B;EAEA;AACF,CAAC;AAACK,OAAA,CAAAR,aAAA,GAAAA,aAAA;AAEK,MAAMS,aAAoC,GAAGA,CAAA,KAAM;EACxD,OAAOC,uBAAU,CAACD,aAAa;AACjC,CAAC;AAACD,OAAA,CAAAC,aAAA,GAAAA,aAAA;AAEK,MAAME,UAAiC,GAAGA,CAAA,KAAM;EACrD,OAAOC,uBAAU,CAACC,GAAG,CAAC,CAAC;AACzB,CAAC;AAACL,OAAA,CAAAG,UAAA,GAAAA,UAAA;AAEK,MAAMG,SAAgC,GAAGA,CAAA,KAAM;EACpD,OAAOF,uBAAU,CAACG,YAAY,CAAC,CAAC;AAClC,CAAC;AAACP,OAAA,CAAAM,SAAA,GAAAA,SAAA;AAEK,MAAME,yBAAgD,GAAGA,CAC9Df,YAAY,EACZC,KAAK,KACF;EACH,MAAMe,IAAa,GAAGhB,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EAC5C,IAAI,OAAOe,IAAI,KAAK,QAAQ,EAAE;IAC5B,OAAOL,uBAAU,CAACI,yBAAyB,CAACC,IAAI,CAAC;EACnD;EAEA;AACF,CAAC;AAACT,OAAA,CAAAQ,yBAAA,GAAAA,yBAAA;AAEK,MAAME,mBAA0C,GAAGA,CACxDjB,YAAY,EACZC,KAAK,KACF;EACH,MAAMe,IAAa,GAAGhB,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EAC5C,IAAI,OAAOe,IAAI,KAAK,QAAQ,EAAE;IAC5B,OAAOL,uBAAU,CAACM,mBAAmB,CAACD,IAAI,CAAC;EAC7C;EAEA;AACF,CAAC;AAACT,OAAA,CAAAU,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -3,14 +3,30 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.join = void 0;
|
|
7
|
-
|
|
6
|
+
exports.join = exports.gradientPosition = exports.colorStop = void 0;
|
|
7
|
+
var _utilities = require("react-native-css/utilities");
|
|
8
|
+
const gradientPosition = (resolveValue, value) => {
|
|
9
|
+
const position = resolveValue(value[2]);
|
|
10
|
+
return typeof position === "number" ? `${position}px` : position;
|
|
11
|
+
};
|
|
12
|
+
exports.gradientPosition = gradientPosition;
|
|
13
|
+
const colorStop = (resolveValue, value) => {
|
|
8
14
|
const args = resolveValue(value[2]);
|
|
9
|
-
if (!Array.isArray(args))
|
|
10
|
-
|
|
15
|
+
if (!Array.isArray(args)) return args;
|
|
16
|
+
const [color, position] = args;
|
|
17
|
+
if (typeof color !== "string") return;
|
|
18
|
+
if (position === undefined) return color;
|
|
19
|
+
if (typeof position !== "number" && typeof position !== "string") return;
|
|
20
|
+
return `${color} ${typeof position === "number" ? `${position}px` : position}`;
|
|
21
|
+
};
|
|
22
|
+
exports.colorStop = colorStop;
|
|
23
|
+
const join = (resolveValue, value) => {
|
|
24
|
+
const args = value[2];
|
|
25
|
+
if (!(0, _utilities.isStyleDescriptorArray)(args)) {
|
|
26
|
+
return resolveValue(args);
|
|
11
27
|
}
|
|
12
|
-
const array = args[0];
|
|
13
|
-
const separator = args[1] ?? ",";
|
|
28
|
+
const array = resolveValue(args[0]);
|
|
29
|
+
const separator = resolveValue(args[1]) ?? ",";
|
|
14
30
|
if (!Array.isArray(array)) {
|
|
15
31
|
return array;
|
|
16
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_utilities","require","gradientPosition","resolveValue","value","position","exports","colorStop","args","Array","isArray","color","undefined","join","isStyleDescriptorArray","array","separator"],"sourceRoot":"../../../../../src","sources":["native/styles/functions/string-functions.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAIO,MAAMC,gBAAuC,GAAGA,CACrDC,YAAY,EACZC,KAAK,KACF;EACH,MAAMC,QAAQ,GAAGF,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EACvC,OAAO,OAAOC,QAAQ,KAAK,QAAQ,GAAG,GAAGA,QAAQ,IAAI,GAAGA,QAAQ;AAClE,CAAC;AAACC,OAAA,CAAAJ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