react-native-css 3.0.0-nightly.df0f885 → 3.0.0-preview.0
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/dist/commonjs/compiler/atRules.js +16 -3
- package/dist/commonjs/compiler/atRules.js.map +1 -1
- package/dist/commonjs/compiler/compiler.js +13 -8
- package/dist/commonjs/compiler/compiler.js.map +1 -1
- package/dist/commonjs/compiler/declarations.js +238 -154
- package/dist/commonjs/compiler/declarations.js.map +1 -1
- package/dist/commonjs/compiler/inheritance.test.js +12 -12
- package/dist/commonjs/compiler/inheritance.test.js.map +1 -1
- package/dist/commonjs/compiler/keyframes.js +1 -1
- package/dist/commonjs/compiler/keyframes.js.map +1 -1
- package/dist/commonjs/compiler/pseudo-elements.js +49 -0
- package/dist/commonjs/compiler/pseudo-elements.js.map +1 -0
- package/dist/commonjs/compiler/selector-builder.js +501 -0
- package/dist/commonjs/compiler/selector-builder.js.map +1 -0
- package/dist/commonjs/compiler/selectors.js +10 -6
- package/dist/commonjs/compiler/selectors.js.map +1 -1
- package/dist/commonjs/compiler/stylesheet.js +100 -43
- package/dist/commonjs/compiler/stylesheet.js.map +1 -1
- package/dist/commonjs/compiler/supports.js +27 -0
- package/dist/commonjs/compiler/supports.js.map +1 -0
- package/dist/commonjs/components/ActivityIndicator.js +22 -0
- package/dist/commonjs/components/ActivityIndicator.js.map +1 -0
- package/dist/commonjs/components/Button.js +22 -0
- package/dist/commonjs/components/Button.js.map +1 -0
- package/dist/commonjs/components/FlatList.js +19 -0
- package/dist/commonjs/components/FlatList.js.map +1 -0
- package/dist/commonjs/components/Image.js +17 -0
- package/dist/commonjs/components/Image.js.map +1 -0
- package/dist/commonjs/components/Switch.js +17 -0
- package/dist/commonjs/components/Switch.js.map +1 -0
- package/dist/commonjs/components/TextInput.js +17 -0
- package/dist/commonjs/components/TextInput.js.map +1 -0
- package/dist/commonjs/components/index.js +48 -0
- package/dist/commonjs/components/index.js.map +1 -1
- package/dist/commonjs/components/react-native-safe-area-context.js +17 -0
- package/dist/commonjs/components/react-native-safe-area-context.js.map +1 -0
- package/dist/commonjs/components/react-native-safe-area-context.native.js +53 -0
- package/dist/commonjs/components/react-native-safe-area-context.native.js.map +1 -0
- package/dist/commonjs/jest/index.js +24 -17
- package/dist/commonjs/jest/index.js.map +1 -1
- package/dist/commonjs/metro/index.js +7 -4
- package/dist/commonjs/metro/index.js.map +1 -1
- package/dist/commonjs/metro/injection-code.js +5 -10
- package/dist/commonjs/metro/injection-code.js.map +1 -1
- package/dist/commonjs/metro/metro-transformer.js +18 -8
- package/dist/commonjs/metro/metro-transformer.js.map +1 -1
- package/dist/commonjs/metro/resolver.js +3 -0
- package/dist/commonjs/metro/resolver.js.map +1 -1
- package/dist/commonjs/poison.pill.js +10 -10
- package/dist/commonjs/runtime/native/api.js +8 -2
- package/dist/commonjs/runtime/native/api.js.map +1 -1
- package/dist/commonjs/runtime/native/conditions/attributes.js +42 -0
- package/dist/commonjs/runtime/native/conditions/attributes.js.map +1 -0
- package/dist/commonjs/runtime/native/conditions/container-query.js +7 -0
- package/dist/commonjs/runtime/native/conditions/container-query.js.map +1 -1
- package/dist/commonjs/runtime/native/conditions/index.js +6 -40
- package/dist/commonjs/runtime/native/conditions/index.js.map +1 -1
- package/dist/commonjs/runtime/native/conditions/media-query.js +16 -11
- package/dist/commonjs/runtime/native/conditions/media-query.js.map +1 -1
- package/dist/commonjs/runtime/native/react/rules.js +26 -20
- package/dist/commonjs/runtime/native/react/rules.js.map +1 -1
- package/dist/commonjs/runtime/native/react/useNativeCss.js +2 -2
- package/dist/commonjs/runtime/native/react/useNativeCss.js.map +1 -1
- package/dist/commonjs/runtime/native/reactivity.js +12 -21
- package/dist/commonjs/runtime/native/reactivity.js.map +1 -1
- package/dist/commonjs/runtime/native/reanimated.js +17 -0
- package/dist/commonjs/runtime/native/reanimated.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/calculate-props.js +63 -38
- package/dist/commonjs/runtime/native/styles/calculate-props.js.map +1 -1
- package/dist/commonjs/runtime/native/styles/defaults.js +1 -1
- package/dist/commonjs/runtime/native/styles/defaults.js.map +1 -1
- package/dist/commonjs/runtime/native/styles/functions/animation-timing.js +34 -0
- package/dist/commonjs/runtime/native/styles/functions/animation-timing.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/functions/calc.js +125 -0
- package/dist/commonjs/runtime/native/styles/functions/calc.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/{filters.js → functions/filters.js} +3 -3
- package/dist/commonjs/runtime/native/styles/functions/filters.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/functions/index.js +83 -0
- package/dist/commonjs/runtime/native/styles/functions/index.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/functions/numeric-functions.js +32 -0
- package/dist/commonjs/runtime/native/styles/functions/numeric-functions.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/{platform-functions.js → functions/platform-functions.js} +3 -3
- package/dist/commonjs/runtime/native/styles/functions/platform-functions.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/functions/string-functions.js +23 -0
- package/dist/commonjs/runtime/native/styles/functions/string-functions.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/functions/transform-functions.js +121 -0
- package/dist/commonjs/runtime/native/styles/functions/transform-functions.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/resolve.js +21 -44
- package/dist/commonjs/runtime/native/styles/resolve.js.map +1 -1
- package/dist/commonjs/runtime/native/styles/{shorthand.js → shorthands/_handler.js} +5 -5
- package/dist/commonjs/runtime/native/styles/shorthands/_handler.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/{animation.js → shorthands/animation.js} +6 -37
- package/dist/commonjs/runtime/native/styles/shorthands/animation.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/{border.js → shorthands/border.js} +2 -2
- package/dist/commonjs/runtime/native/styles/shorthands/border.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js +50 -0
- package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/shorthands/index.js +61 -0
- package/dist/commonjs/runtime/native/styles/shorthands/index.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/{text-shadow.js → shorthands/text-shadow.js} +2 -2
- package/dist/commonjs/runtime/native/styles/shorthands/text-shadow.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/{transform.js → shorthands/transform.js} +1 -1
- package/dist/commonjs/runtime/native/styles/shorthands/transform.js.map +1 -0
- package/dist/commonjs/runtime/native/styles/units.js +7 -4
- package/dist/commonjs/runtime/native/styles/units.js.map +1 -1
- package/dist/commonjs/runtime/native/styles/variables.js +3 -2
- package/dist/commonjs/runtime/native/styles/variables.js.map +1 -1
- package/dist/commonjs/runtime/utils/objects.js +14 -6
- package/dist/commonjs/runtime/utils/objects.js.map +1 -1
- package/dist/commonjs/runtime/utils/specificity.js +2 -1
- package/dist/commonjs/runtime/utils/specificity.js.map +1 -1
- package/dist/commonjs/runtime/web/api.js.map +1 -1
- package/dist/commonjs/style-collection/index.js +110 -0
- package/dist/commonjs/style-collection/index.js.map +1 -0
- package/dist/commonjs/style-collection/root.js +28 -0
- package/dist/commonjs/style-collection/root.js.map +1 -0
- package/dist/module/compiler/atRules.js +16 -3
- package/dist/module/compiler/atRules.js.map +1 -1
- package/dist/module/compiler/compiler.js +13 -8
- package/dist/module/compiler/compiler.js.map +1 -1
- package/dist/module/compiler/compiler.types.js +1 -1
- package/dist/module/compiler/compiler.types.js.map +1 -1
- package/dist/module/compiler/declarations.js +234 -150
- package/dist/module/compiler/declarations.js.map +1 -1
- package/dist/module/compiler/inheritance.test.js +12 -12
- package/dist/module/compiler/inheritance.test.js.map +1 -1
- package/dist/module/compiler/keyframes.js +1 -1
- package/dist/module/compiler/keyframes.js.map +1 -1
- package/dist/module/compiler/pseudo-elements.js +44 -0
- package/dist/module/compiler/pseudo-elements.js.map +1 -0
- package/dist/module/compiler/selector-builder.js +496 -0
- package/dist/module/compiler/selector-builder.js.map +1 -0
- package/dist/module/compiler/selectors.js +10 -6
- package/dist/module/compiler/selectors.js.map +1 -1
- package/dist/module/compiler/stylesheet.js +99 -42
- package/dist/module/compiler/stylesheet.js.map +1 -1
- package/dist/module/compiler/supports.js +23 -0
- package/dist/module/compiler/supports.js.map +1 -0
- package/dist/module/components/ActivityIndicator.js +17 -0
- package/dist/module/components/ActivityIndicator.js.map +1 -0
- package/dist/module/components/Button.js +17 -0
- package/dist/module/components/Button.js.map +1 -0
- package/dist/module/components/FlatList.js +14 -0
- package/dist/module/components/FlatList.js.map +1 -0
- package/dist/module/components/Image.js +12 -0
- package/dist/module/components/Image.js.map +1 -0
- package/dist/module/components/Switch.js +12 -0
- package/dist/module/components/Switch.js.map +1 -0
- package/dist/module/components/TextInput.js +12 -0
- package/dist/module/components/TextInput.js.map +1 -0
- package/dist/module/components/index.js +6 -0
- package/dist/module/components/index.js.map +1 -1
- package/dist/module/components/react-native-safe-area-context.js +4 -0
- package/dist/module/components/react-native-safe-area-context.js.map +1 -0
- package/dist/module/components/react-native-safe-area-context.native.js +36 -0
- package/dist/module/components/react-native-safe-area-context.native.js.map +1 -0
- package/dist/module/jest/index.js +22 -16
- package/dist/module/jest/index.js.map +1 -1
- package/dist/module/metro/index.js +7 -4
- package/dist/module/metro/index.js.map +1 -1
- package/dist/module/metro/injection-code.js +5 -10
- package/dist/module/metro/injection-code.js.map +1 -1
- package/dist/module/metro/metro-transformer.js +18 -8
- package/dist/module/metro/metro-transformer.js.map +1 -1
- package/dist/module/metro/resolver.js +3 -0
- package/dist/module/metro/resolver.js.map +1 -1
- package/dist/module/poison.pill.js +10 -10
- package/dist/module/runtime/native/api.js +2 -1
- package/dist/module/runtime/native/api.js.map +1 -1
- package/dist/module/runtime/native/conditions/attributes.js +38 -0
- package/dist/module/runtime/native/conditions/attributes.js.map +1 -0
- package/dist/module/runtime/native/conditions/container-query.js +7 -0
- package/dist/module/runtime/native/conditions/container-query.js.map +1 -1
- package/dist/module/runtime/native/conditions/index.js +6 -40
- package/dist/module/runtime/native/conditions/index.js.map +1 -1
- package/dist/module/runtime/native/conditions/media-query.js +17 -12
- package/dist/module/runtime/native/conditions/media-query.js.map +1 -1
- package/dist/module/runtime/native/react/rules.js +24 -19
- package/dist/module/runtime/native/react/rules.js.map +1 -1
- package/dist/module/runtime/native/react/useNativeCss.js +1 -1
- package/dist/module/runtime/native/react/useNativeCss.js.map +1 -1
- package/dist/module/runtime/native/reactivity.js +11 -20
- package/dist/module/runtime/native/reactivity.js.map +1 -1
- package/dist/module/runtime/native/reanimated.js +13 -0
- package/dist/module/runtime/native/reanimated.js.map +1 -0
- package/dist/module/runtime/native/styles/calculate-props.js +64 -39
- package/dist/module/runtime/native/styles/calculate-props.js.map +1 -1
- package/dist/module/runtime/native/styles/defaults.js +1 -1
- package/dist/module/runtime/native/styles/defaults.js.map +1 -1
- package/dist/module/runtime/native/styles/functions/animation-timing.js +30 -0
- package/dist/module/runtime/native/styles/functions/animation-timing.js.map +1 -0
- package/dist/module/runtime/native/styles/functions/calc.js +120 -0
- package/dist/module/runtime/native/styles/functions/calc.js.map +1 -0
- package/dist/module/runtime/native/styles/{filters.js → functions/filters.js} +2 -2
- package/dist/module/runtime/native/styles/functions/filters.js.map +1 -0
- package/dist/module/runtime/native/styles/functions/index.js +10 -0
- package/dist/module/runtime/native/styles/functions/index.js.map +1 -0
- package/dist/module/runtime/native/styles/functions/numeric-functions.js +25 -0
- package/dist/module/runtime/native/styles/functions/numeric-functions.js.map +1 -0
- package/dist/module/runtime/native/styles/{platform-functions.js → functions/platform-functions.js} +1 -1
- package/dist/module/runtime/native/styles/functions/platform-functions.js.map +1 -0
- package/dist/module/runtime/native/styles/functions/string-functions.js +18 -0
- package/dist/module/runtime/native/styles/functions/string-functions.js.map +1 -0
- package/dist/module/runtime/native/styles/functions/transform-functions.js +114 -0
- package/dist/module/runtime/native/styles/functions/transform-functions.js.map +1 -0
- package/dist/module/runtime/native/styles/resolve.js +20 -44
- package/dist/module/runtime/native/styles/resolve.js.map +1 -1
- package/dist/module/runtime/native/styles/{shorthand.js → shorthands/_handler.js} +5 -5
- package/dist/module/runtime/native/styles/shorthands/_handler.js.map +1 -0
- package/dist/module/runtime/native/styles/{animation.js → shorthands/animation.js} +3 -34
- package/dist/module/runtime/native/styles/shorthands/animation.js.map +1 -0
- package/dist/module/runtime/native/styles/{border.js → shorthands/border.js} +1 -1
- package/dist/module/runtime/native/styles/shorthands/border.js.map +1 -0
- package/dist/module/runtime/native/styles/{box-shadow.js → shorthands/box-shadow.js} +16 -6
- package/dist/module/runtime/native/styles/shorthands/box-shadow.js.map +1 -0
- package/dist/module/runtime/native/styles/shorthands/index.js +8 -0
- package/dist/module/runtime/native/styles/shorthands/index.js.map +1 -0
- package/dist/module/runtime/native/styles/{text-shadow.js → shorthands/text-shadow.js} +1 -1
- package/dist/module/runtime/native/styles/shorthands/text-shadow.js.map +1 -0
- package/dist/module/runtime/native/styles/{transform.js → shorthands/transform.js} +1 -1
- package/dist/module/runtime/native/styles/shorthands/transform.js.map +1 -0
- package/dist/module/runtime/native/styles/units.js +7 -4
- package/dist/module/runtime/native/styles/units.js.map +1 -1
- package/dist/module/runtime/native/styles/variables.js +2 -1
- package/dist/module/runtime/native/styles/variables.js.map +1 -1
- package/dist/module/runtime/utils/objects.js +14 -6
- package/dist/module/runtime/utils/objects.js.map +1 -1
- package/dist/module/runtime/utils/specificity.js +2 -1
- package/dist/module/runtime/utils/specificity.js.map +1 -1
- package/dist/module/runtime/web/api.js.map +1 -1
- package/dist/module/style-collection/index.js +95 -0
- package/dist/module/style-collection/index.js.map +1 -0
- package/dist/module/style-collection/root.js +24 -0
- package/dist/module/style-collection/root.js.map +1 -0
- package/dist/typescript/commonjs/src/compiler/atRules.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/compiler.d.ts +4 -4
- package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +11 -13
- package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts +16 -18
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/pseudo-elements.d.ts +4 -0
- package/dist/typescript/commonjs/src/compiler/pseudo-elements.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts +24 -0
- package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/selectors.d.ts +3 -2
- package/dist/typescript/commonjs/src/compiler/selectors.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +16 -12
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/supports.d.ts +3 -0
- package/dist/typescript/commonjs/src/compiler/supports.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +13 -0
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/Button.d.ts +13 -0
- package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/FlatList.d.ts +10 -0
- package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/Image.d.ts +8 -0
- package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/Switch.d.ts +8 -0
- package/dist/typescript/commonjs/src/components/Switch.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/TextInput.d.ts +8 -0
- package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/index.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/react-native-safe-area-context.d.ts +2 -0
- package/dist/typescript/commonjs/src/components/react-native-safe-area-context.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts +4 -0
- package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/jest/index.d.ts +16 -6
- package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/injection-code.d.ts +4 -7
- package/dist/typescript/commonjs/src/metro/injection-code.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts +4 -1
- package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/api.d.ts +3 -1
- package/dist/typescript/commonjs/src/runtime/native/api.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts +5 -0
- package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts +2 -2
- package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts +1 -9
- package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/reanimated.d.ts +5 -0
- package/dist/typescript/commonjs/src/runtime/native/reanimated.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts +1 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/animation-timing.d.ts +4 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/animation-timing.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/calc.d.ts +3 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/calc.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/{filters.d.ts → functions/filters.d.ts} +1 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/filters.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/index.d.ts +8 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/numeric-functions.d.ts +5 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/numeric-functions.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/{platform-functions.d.ts → functions/platform-functions.d.ts} +2 -2
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/platform-functions.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/string-functions.d.ts +3 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/string-functions.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/transform-functions.d.ts +5 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/functions/transform-functions.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/{shorthand.d.ts → shorthands/_handler.d.ts} +2 -2
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/_handler.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts +4 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/border.d.ts +2 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/border.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/box-shadow.d.ts +3 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/index.d.ts +6 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/text-shadow.d.ts +2 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/{transform.d.ts → shorthands/transform.d.ts} +1 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/transform.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts +1 -0
- package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/runtime/web/api.d.ts +1 -1
- package/dist/typescript/commonjs/src/runtime/web/api.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/style-collection/index.d.ts +14 -0
- package/dist/typescript/commonjs/src/style-collection/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/style-collection/root.d.ts +11 -0
- package/dist/typescript/commonjs/src/style-collection/root.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/atRules.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/compiler.d.ts +4 -4
- package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/compiler.types.d.ts +11 -13
- package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/declarations.d.ts +16 -18
- package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/pseudo-elements.d.ts +4 -0
- package/dist/typescript/module/src/compiler/pseudo-elements.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/selector-builder.d.ts +24 -0
- package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/selectors.d.ts +3 -2
- package/dist/typescript/module/src/compiler/selectors.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/stylesheet.d.ts +16 -12
- package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/supports.d.ts +3 -0
- package/dist/typescript/module/src/compiler/supports.d.ts.map +1 -0
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts +13 -0
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -0
- package/dist/typescript/module/src/components/Button.d.ts +13 -0
- package/dist/typescript/module/src/components/Button.d.ts.map +1 -0
- package/dist/typescript/module/src/components/FlatList.d.ts +10 -0
- package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -0
- package/dist/typescript/module/src/components/Image.d.ts +8 -0
- package/dist/typescript/module/src/components/Image.d.ts.map +1 -0
- package/dist/typescript/module/src/components/Switch.d.ts +8 -0
- package/dist/typescript/module/src/components/Switch.d.ts.map +1 -0
- package/dist/typescript/module/src/components/TextInput.d.ts +8 -0
- package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -0
- package/dist/typescript/module/src/components/index.d.ts +6 -0
- package/dist/typescript/module/src/components/index.d.ts.map +1 -1
- package/dist/typescript/module/src/components/react-native-safe-area-context.d.ts +2 -0
- package/dist/typescript/module/src/components/react-native-safe-area-context.d.ts.map +1 -0
- package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts +4 -0
- package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts.map +1 -0
- package/dist/typescript/module/src/jest/index.d.ts +16 -6
- package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/injection-code.d.ts +4 -7
- package/dist/typescript/module/src/metro/injection-code.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/metro-transformer.d.ts +4 -1
- package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/api.d.ts +3 -1
- package/dist/typescript/module/src/runtime/native/api.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts +5 -0
- package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/conditions/index.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/react/rules.d.ts +2 -2
- package/dist/typescript/module/src/runtime/native/react/rules.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/reactivity.d.ts +1 -9
- package/dist/typescript/module/src/runtime/native/reactivity.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/reanimated.d.ts +5 -0
- package/dist/typescript/module/src/runtime/native/reanimated.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts +1 -1
- package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/styles/functions/animation-timing.d.ts +4 -0
- package/dist/typescript/module/src/runtime/native/styles/functions/animation-timing.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/functions/calc.d.ts +3 -0
- package/dist/typescript/module/src/runtime/native/styles/functions/calc.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/{filters.d.ts → functions/filters.d.ts} +1 -1
- package/dist/typescript/module/src/runtime/native/styles/functions/filters.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/functions/index.d.ts +8 -0
- package/dist/typescript/module/src/runtime/native/styles/functions/index.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/functions/numeric-functions.d.ts +5 -0
- package/dist/typescript/module/src/runtime/native/styles/functions/numeric-functions.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/{platform-functions.d.ts → functions/platform-functions.d.ts} +2 -2
- package/dist/typescript/module/src/runtime/native/styles/functions/platform-functions.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/functions/string-functions.d.ts +3 -0
- package/dist/typescript/module/src/runtime/native/styles/functions/string-functions.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/functions/transform-functions.d.ts +5 -0
- package/dist/typescript/module/src/runtime/native/styles/functions/transform-functions.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/styles/{shorthand.d.ts → shorthands/_handler.d.ts} +2 -2
- package/dist/typescript/module/src/runtime/native/styles/shorthands/_handler.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts +4 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthands/border.d.ts +2 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthands/border.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthands/box-shadow.d.ts +3 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthands/index.d.ts +6 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthands/index.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthands/text-shadow.d.ts +2 -0
- package/dist/typescript/module/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/{transform.d.ts → shorthands/transform.d.ts} +1 -1
- package/dist/typescript/module/src/runtime/native/styles/shorthands/transform.d.ts.map +1 -0
- package/dist/typescript/module/src/runtime/native/styles/units.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/native/styles/variables.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/utils/objects.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/utils/specificity.d.ts +1 -0
- package/dist/typescript/module/src/runtime/utils/specificity.d.ts.map +1 -1
- package/dist/typescript/module/src/runtime/web/api.d.ts +1 -1
- package/dist/typescript/module/src/runtime/web/api.d.ts.map +1 -1
- package/dist/typescript/module/src/style-collection/index.d.ts +14 -0
- package/dist/typescript/module/src/style-collection/index.d.ts.map +1 -0
- package/dist/typescript/module/src/style-collection/root.d.ts +11 -0
- package/dist/typescript/module/src/style-collection/root.d.ts.map +1 -0
- package/package.json +31 -15
- package/src/compiler/atRules.ts +17 -3
- package/src/compiler/compiler.ts +12 -10
- package/src/compiler/compiler.types.ts +11 -14
- package/src/compiler/declarations.ts +423 -194
- package/src/compiler/inheritance.test.ts +10 -10
- package/src/compiler/keyframes.ts +1 -1
- package/src/compiler/pseudo-elements.ts +54 -0
- package/src/compiler/selector-builder.ts +586 -0
- package/src/compiler/selectors.ts +20 -6
- package/src/compiler/stylesheet.ts +145 -57
- package/src/compiler/supports.ts +26 -0
- package/src/components/ActivityIndicator.tsx +27 -0
- package/src/components/Button.tsx +22 -0
- package/src/components/FlatList.tsx +21 -0
- package/src/components/Image.tsx +17 -0
- package/src/components/Switch.tsx +17 -0
- package/src/components/TextInput.tsx +17 -0
- package/src/components/index.tsx +6 -0
- package/src/components/react-native-safe-area-context.native.tsx +40 -0
- package/src/components/react-native-safe-area-context.tsx +1 -0
- package/src/jest/index.ts +25 -15
- package/src/metro/index.ts +12 -7
- package/src/metro/injection-code.ts +6 -10
- package/src/metro/metro-transformer.ts +27 -10
- package/src/metro/resolver.ts +8 -0
- package/src/poison.pill.ts +10 -10
- package/src/runtime/native/api.ts +3 -1
- package/src/runtime/native/conditions/attributes.ts +52 -0
- package/src/runtime/native/conditions/container-query.ts +5 -0
- package/src/runtime/native/conditions/index.ts +7 -59
- package/src/runtime/native/conditions/media-query.ts +18 -12
- package/src/runtime/native/react/rules.ts +27 -17
- package/src/runtime/native/react/useNativeCss.ts +1 -1
- package/src/runtime/native/reactivity.ts +13 -29
- package/src/runtime/native/reanimated.ts +22 -0
- package/src/runtime/native/styles/calculate-props.ts +71 -39
- package/src/runtime/native/styles/defaults.ts +1 -0
- package/src/runtime/native/styles/functions/animation-timing.ts +44 -0
- package/src/runtime/native/styles/functions/calc.ts +121 -0
- package/src/runtime/native/styles/{filters.ts → functions/filters.ts} +3 -3
- package/src/runtime/native/styles/functions/index.ts +7 -0
- package/src/runtime/native/styles/functions/numeric-functions.ts +38 -0
- package/src/runtime/native/styles/{platform-functions.ts → functions/platform-functions.ts} +2 -2
- package/src/runtime/native/styles/functions/string-functions.ts +22 -0
- package/src/runtime/native/styles/functions/transform-functions.ts +84 -0
- package/src/runtime/native/styles/resolve.ts +20 -63
- package/src/runtime/native/styles/{shorthand.ts → shorthands/_handler.ts} +5 -5
- package/src/runtime/native/styles/{animation.ts → shorthands/animation.ts} +4 -62
- package/src/runtime/native/styles/{border.ts → shorthands/border.ts} +1 -1
- package/src/runtime/native/styles/shorthands/box-shadow.ts +74 -0
- package/src/runtime/native/styles/shorthands/index.ts +5 -0
- package/src/runtime/native/styles/{text-shadow.ts → shorthands/text-shadow.ts} +1 -1
- package/src/runtime/native/styles/{transform.ts → shorthands/transform.ts} +4 -2
- package/src/runtime/native/styles/units.ts +8 -4
- package/src/runtime/native/styles/variables.ts +5 -5
- package/src/runtime/utils/objects.ts +16 -4
- package/src/runtime/utils/specificity.ts +1 -0
- package/src/runtime/web/api.ts +1 -1
- package/src/style-collection/index.ts +142 -0
- package/src/style-collection/root.ts +35 -0
- package/dist/commonjs/compiler/attributes.test.js +0 -20
- package/dist/commonjs/compiler/attributes.test.js.map +0 -1
- package/dist/commonjs/doctor/index.js +0 -6
- package/dist/commonjs/doctor/index.js.map +0 -1
- package/dist/commonjs/runtime/native/injection.js +0 -98
- package/dist/commonjs/runtime/native/injection.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/animation.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/border.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/box-shadow.js +0 -40
- package/dist/commonjs/runtime/native/styles/box-shadow.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/calc.js +0 -85
- package/dist/commonjs/runtime/native/styles/calc.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/filters.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/platform-functions.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/shorthand.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/text-shadow.js.map +0 -1
- package/dist/commonjs/runtime/native/styles/transform.js.map +0 -1
- package/dist/module/compiler/attributes.test.js +0 -20
- package/dist/module/compiler/attributes.test.js.map +0 -1
- package/dist/module/doctor/index.js +0 -4
- package/dist/module/doctor/index.js.map +0 -1
- package/dist/module/runtime/native/injection.js +0 -93
- package/dist/module/runtime/native/injection.js.map +0 -1
- package/dist/module/runtime/native/styles/animation.js.map +0 -1
- package/dist/module/runtime/native/styles/border.js.map +0 -1
- package/dist/module/runtime/native/styles/box-shadow.js.map +0 -1
- package/dist/module/runtime/native/styles/calc.js +0 -79
- package/dist/module/runtime/native/styles/calc.js.map +0 -1
- package/dist/module/runtime/native/styles/filters.js.map +0 -1
- package/dist/module/runtime/native/styles/platform-functions.js.map +0 -1
- package/dist/module/runtime/native/styles/shorthand.js.map +0 -1
- package/dist/module/runtime/native/styles/text-shadow.js.map +0 -1
- package/dist/module/runtime/native/styles/transform.js.map +0 -1
- package/dist/typescript/commonjs/src/compiler/attributes.test.d.ts +0 -2
- package/dist/typescript/commonjs/src/compiler/attributes.test.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/doctor/index.d.ts +0 -2
- package/dist/typescript/commonjs/src/doctor/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/injection.d.ts +0 -16
- package/dist/typescript/commonjs/src/runtime/native/injection.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/animation.d.ts +0 -9
- package/dist/typescript/commonjs/src/runtime/native/styles/animation.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/border.d.ts +0 -2
- package/dist/typescript/commonjs/src/runtime/native/styles/border.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/box-shadow.d.ts +0 -3
- package/dist/typescript/commonjs/src/runtime/native/styles/box-shadow.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/calc.d.ts +0 -3
- package/dist/typescript/commonjs/src/runtime/native/styles/calc.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/filters.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/platform-functions.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/shorthand.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/text-shadow.d.ts +0 -2
- package/dist/typescript/commonjs/src/runtime/native/styles/text-shadow.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/styles/transform.d.ts.map +0 -1
- package/dist/typescript/module/src/compiler/attributes.test.d.ts +0 -2
- package/dist/typescript/module/src/compiler/attributes.test.d.ts.map +0 -1
- package/dist/typescript/module/src/doctor/index.d.ts +0 -2
- package/dist/typescript/module/src/doctor/index.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/injection.d.ts +0 -16
- package/dist/typescript/module/src/runtime/native/injection.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/animation.d.ts +0 -9
- package/dist/typescript/module/src/runtime/native/styles/animation.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/border.d.ts +0 -2
- package/dist/typescript/module/src/runtime/native/styles/border.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/box-shadow.d.ts +0 -3
- package/dist/typescript/module/src/runtime/native/styles/box-shadow.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/calc.d.ts +0 -3
- package/dist/typescript/module/src/runtime/native/styles/calc.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/filters.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/platform-functions.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/shorthand.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/text-shadow.d.ts +0 -2
- package/dist/typescript/module/src/runtime/native/styles/text-shadow.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/styles/transform.d.ts.map +0 -1
- package/src/compiler/attributes.test.ts +0 -28
- package/src/doctor/index.ts +0 -1
- package/src/runtime/native/injection.ts +0 -131
- package/src/runtime/native/styles/box-shadow.ts +0 -54
- package/src/runtime/native/styles/calc.ts +0 -97
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
import
|
|
2
|
+
import { StyleCollection } from "react-native-css/style-collection";
|
|
3
3
|
|
|
4
|
-
import { applyShorthand } from "
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import type { StyleFunctionResolver } from "./resolve";
|
|
8
|
-
import { shorthandHandler } from "./shorthand";
|
|
4
|
+
import { applyShorthand } from "../../../utils";
|
|
5
|
+
import type { StyleFunctionResolver } from "../resolve";
|
|
6
|
+
import { shorthandHandler } from "./_handler";
|
|
9
7
|
|
|
10
8
|
const name = ["animationName", "string", "none"] as const;
|
|
11
9
|
const delay = ["animationDelay", "number", 0] as const;
|
|
@@ -61,22 +59,6 @@ export const animationShorthand = shorthandHandler(
|
|
|
61
59
|
"tuples",
|
|
62
60
|
);
|
|
63
61
|
|
|
64
|
-
export const animatedComponentFamily = weakFamily(
|
|
65
|
-
(component: ComponentType) => {
|
|
66
|
-
if (
|
|
67
|
-
"displayName" in component &&
|
|
68
|
-
component.displayName?.startsWith("Animated.")
|
|
69
|
-
) {
|
|
70
|
-
return component;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
const createAnimatedComponent =
|
|
74
|
-
require("react-native-reanimated").createAnimatedComponent;
|
|
75
|
-
|
|
76
|
-
return createAnimatedComponent(component);
|
|
77
|
-
},
|
|
78
|
-
);
|
|
79
|
-
|
|
80
62
|
export const animation: StyleFunctionResolver = (
|
|
81
63
|
resolveValue,
|
|
82
64
|
value,
|
|
@@ -139,43 +121,3 @@ export const animation: StyleFunctionResolver = (
|
|
|
139
121
|
|
|
140
122
|
return applyShorthand(animationShortHandTuples);
|
|
141
123
|
};
|
|
142
|
-
|
|
143
|
-
const advancedTimingFunctions: Record<
|
|
144
|
-
string,
|
|
145
|
-
() => (...args: any[]) => unknown
|
|
146
|
-
> = {
|
|
147
|
-
"cubic-bezier": () => {
|
|
148
|
-
return (
|
|
149
|
-
require("react-native-reanimated") as typeof import("react-native-reanimated")
|
|
150
|
-
).cubicBezier;
|
|
151
|
-
},
|
|
152
|
-
"steps": () => {
|
|
153
|
-
return (
|
|
154
|
-
require("react-native-reanimated") as typeof import("react-native-reanimated")
|
|
155
|
-
).steps;
|
|
156
|
-
},
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
export const timingFunctionResolver: StyleFunctionResolver = (
|
|
160
|
-
resolveValue,
|
|
161
|
-
value,
|
|
162
|
-
) => {
|
|
163
|
-
const name = value[1];
|
|
164
|
-
const resolver = advancedTimingFunctions[name];
|
|
165
|
-
|
|
166
|
-
if (!resolver) {
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
const args = resolveValue(value[2]);
|
|
171
|
-
|
|
172
|
-
if (!Array.isArray(args)) {
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
const fn = resolver();
|
|
177
|
-
|
|
178
|
-
const result = fn(...args);
|
|
179
|
-
|
|
180
|
-
return result;
|
|
181
|
-
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { isStyleDescriptorArray } from "../../../utils";
|
|
2
|
+
import type { StyleFunctionResolver } from "../resolve";
|
|
3
|
+
import { shorthandHandler } from "./_handler";
|
|
4
|
+
|
|
5
|
+
const color = ["color", "string"] as const;
|
|
6
|
+
const offsetX = ["offsetX", "number"] as const;
|
|
7
|
+
const offsetY = ["offsetY", "number"] as const;
|
|
8
|
+
const blurRadius = ["blurRadius", "number"] as const;
|
|
9
|
+
const spreadDistance = ["spreadDistance", "number"] as const;
|
|
10
|
+
// const inset = ["inset", "string"] as const;
|
|
11
|
+
|
|
12
|
+
const handler = shorthandHandler(
|
|
13
|
+
[
|
|
14
|
+
[offsetX, offsetY, blurRadius, spreadDistance, color],
|
|
15
|
+
[color, offsetX, offsetY],
|
|
16
|
+
[color, offsetX, offsetY, blurRadius],
|
|
17
|
+
[color, offsetX, offsetY, blurRadius, spreadDistance],
|
|
18
|
+
[offsetX, offsetY, color],
|
|
19
|
+
[offsetX, offsetY, blurRadius, color],
|
|
20
|
+
],
|
|
21
|
+
[],
|
|
22
|
+
"object",
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
export const boxShadow: StyleFunctionResolver = (
|
|
26
|
+
resolveValue,
|
|
27
|
+
func,
|
|
28
|
+
get,
|
|
29
|
+
options,
|
|
30
|
+
) => {
|
|
31
|
+
const args = resolveValue(func[2]);
|
|
32
|
+
|
|
33
|
+
if (!isStyleDescriptorArray(args)) {
|
|
34
|
+
return args;
|
|
35
|
+
} else {
|
|
36
|
+
return args
|
|
37
|
+
.flatMap((shadows) => {
|
|
38
|
+
if (shadows === undefined) {
|
|
39
|
+
return [];
|
|
40
|
+
} else if (isStyleDescriptorArray(shadows)) {
|
|
41
|
+
if (shadows.length === 0) {
|
|
42
|
+
return [];
|
|
43
|
+
} else if (Array.isArray(shadows[0])) {
|
|
44
|
+
return shadows
|
|
45
|
+
.map((shadow) => {
|
|
46
|
+
return omitTransparentShadows(
|
|
47
|
+
handler(resolveValue, shadow, get, options),
|
|
48
|
+
);
|
|
49
|
+
})
|
|
50
|
+
.filter((v) => v !== undefined);
|
|
51
|
+
} else {
|
|
52
|
+
return omitTransparentShadows(
|
|
53
|
+
handler(resolveValue, shadows, get, options),
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
} else {
|
|
57
|
+
return omitTransparentShadows(
|
|
58
|
+
handler(resolveValue, shadows, get, options),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
})
|
|
62
|
+
.filter((v) => v !== undefined);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
function omitTransparentShadows(style: unknown) {
|
|
67
|
+
if (typeof style === "object" && style && "color" in style) {
|
|
68
|
+
if (style.color === "#0000" || style.color === "transparent") {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return style;
|
|
74
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StyleFunctionResolver } from "
|
|
1
|
+
import type { StyleFunctionResolver } from "../resolve";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Handle the unparsable transform property by converting its values into StyleDeclarations
|
|
@@ -11,7 +11,9 @@ export const transform: StyleFunctionResolver = (
|
|
|
11
11
|
const transforms = resolveValue(transformDescriptor[2]);
|
|
12
12
|
|
|
13
13
|
if (Array.isArray(transforms)) {
|
|
14
|
-
return transforms.filter(
|
|
14
|
+
return transforms.filter(
|
|
15
|
+
(transform) => transform !== undefined && transform !== "initial",
|
|
16
|
+
) as unknown;
|
|
15
17
|
} else if (transforms) {
|
|
16
18
|
// If it's a single transform, wrap it in an array
|
|
17
19
|
return [transforms];
|
|
@@ -2,17 +2,21 @@
|
|
|
2
2
|
import { rem as remObs, vh as vhObs, vw as vwObs } from "../reactivity";
|
|
3
3
|
import type { StyleFunctionResolver } from "./resolve";
|
|
4
4
|
|
|
5
|
-
export const em: StyleFunctionResolver = (resolve, func) => {
|
|
5
|
+
export const em: StyleFunctionResolver = (resolve, func, get) => {
|
|
6
6
|
let value = func[2];
|
|
7
7
|
|
|
8
|
-
if (
|
|
8
|
+
if (typeof value !== "number") {
|
|
9
9
|
return;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
let emValue = resolve([{}, "var", ["__rn-css-em"]]);
|
|
13
13
|
|
|
14
14
|
if (typeof emValue !== "number") {
|
|
15
|
-
|
|
15
|
+
emValue = get(remObs);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if (typeof emValue !== "number") {
|
|
19
|
+
return;
|
|
16
20
|
}
|
|
17
21
|
|
|
18
22
|
return round(Number(value) * emValue);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { StyleDescriptor, StyleFunction } from "../../../compiler";
|
|
2
|
-
import { isStyleDescriptorArray } from "../../utils";
|
|
3
1
|
import {
|
|
4
2
|
rootVariables,
|
|
5
3
|
universalVariables,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "
|
|
4
|
+
} from "react-native-css/style-collection";
|
|
5
|
+
|
|
6
|
+
import type { StyleDescriptor, StyleFunction } from "../../../compiler";
|
|
7
|
+
import { isStyleDescriptorArray } from "../../utils";
|
|
8
|
+
import { VAR_SYMBOL, type Getter } from "../reactivity";
|
|
9
9
|
import type { ResolveValueOptions, SimpleResolveValue } from "./resolve";
|
|
10
10
|
|
|
11
11
|
export function varResolver(
|
|
@@ -23,6 +23,10 @@ export function getDeepPath(source: any, paths: string | string[] | false) {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
return target;
|
|
26
|
+
} else if (transformKeys.has(paths)) {
|
|
27
|
+
return Array.isArray(source?.transform)
|
|
28
|
+
? source.transform.find((t: any) => t[paths] !== undefined)
|
|
29
|
+
: source.transform;
|
|
26
30
|
} else {
|
|
27
31
|
return source?.[paths];
|
|
28
32
|
}
|
|
@@ -49,8 +53,13 @@ export function applyValue(
|
|
|
49
53
|
prop: string,
|
|
50
54
|
value: any,
|
|
51
55
|
) {
|
|
56
|
+
// This is confusing.
|
|
57
|
+
// An undefined value means "don't set anything" (something failed while parsing)
|
|
58
|
+
// While a null value means "remove this value", which in React Native means "set to undefined"
|
|
52
59
|
if (value === undefined) {
|
|
53
60
|
return;
|
|
61
|
+
} else if (value === null) {
|
|
62
|
+
value = undefined;
|
|
54
63
|
}
|
|
55
64
|
|
|
56
65
|
if (transformKeys.has(prop)) {
|
|
@@ -58,12 +67,15 @@ export function applyValue(
|
|
|
58
67
|
target.transform = [];
|
|
59
68
|
}
|
|
60
69
|
|
|
61
|
-
const
|
|
70
|
+
const transformArray: Record<string, unknown>[] = target.transform;
|
|
62
71
|
|
|
63
|
-
|
|
64
|
-
|
|
72
|
+
// Remove any existing values
|
|
73
|
+
target.transform = transformArray.filter((t) => !(prop in t));
|
|
74
|
+
|
|
75
|
+
if (Array.isArray(value)) {
|
|
76
|
+
target.transform.push(...value);
|
|
65
77
|
} else {
|
|
66
|
-
target.transform.push(
|
|
78
|
+
target.transform.push(value);
|
|
67
79
|
}
|
|
68
80
|
return;
|
|
69
81
|
} else if (typeof value === "object" && value && ShortHandSymbol in value) {
|
package/src/runtime/web/api.ts
CHANGED
|
@@ -66,7 +66,7 @@ export const colorScheme: ColorScheme = {
|
|
|
66
66
|
},
|
|
67
67
|
};
|
|
68
68
|
|
|
69
|
-
export function vars(variables: Record
|
|
69
|
+
export function vars(variables: Record<string, string | number>) {
|
|
70
70
|
const $variables: Record<string, string> = {};
|
|
71
71
|
|
|
72
72
|
for (const [key, value] of Object.entries(variables)) {
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
Animation,
|
|
3
|
+
ReactNativeCssStyleSheet,
|
|
4
|
+
StyleRuleSet,
|
|
5
|
+
} from "react-native-css/compiler";
|
|
6
|
+
|
|
7
|
+
import { DEFAULT_CONTAINER_NAME } from "../runtime/native/conditions/container-query";
|
|
8
|
+
import {
|
|
9
|
+
family,
|
|
10
|
+
observable,
|
|
11
|
+
observableBatch,
|
|
12
|
+
type Observable,
|
|
13
|
+
} from "../runtime/native/reactivity";
|
|
14
|
+
import { rootVariables, universalVariables } from "./root";
|
|
15
|
+
|
|
16
|
+
export { rootVariables, universalVariables };
|
|
17
|
+
|
|
18
|
+
interface StyleCollectionType {
|
|
19
|
+
styles: ReturnType<typeof family<string, Observable<StyleRuleSet>>>;
|
|
20
|
+
keyframes: ReturnType<typeof family<string, Observable<Animation[1]>>>;
|
|
21
|
+
inject: (options: ReactNativeCssStyleSheet) => void;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare global {
|
|
25
|
+
var __react_native_css_style_collection: StyleCollectionType | undefined;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
globalThis.__react_native_css_style_collection ??= {
|
|
29
|
+
styles: family<string, Observable<StyleRuleSet>>(() => {
|
|
30
|
+
return observable([], isDeepEqual);
|
|
31
|
+
}),
|
|
32
|
+
keyframes: family<string, Observable<Animation[1]>>(() => {
|
|
33
|
+
return observable([], isDeepEqual);
|
|
34
|
+
}),
|
|
35
|
+
inject: function (options: ReactNativeCssStyleSheet) {
|
|
36
|
+
observableBatch.current = new Set();
|
|
37
|
+
|
|
38
|
+
StyleCollection.styles("will-change-variable").set([
|
|
39
|
+
{
|
|
40
|
+
s: [0],
|
|
41
|
+
v: [],
|
|
42
|
+
},
|
|
43
|
+
]);
|
|
44
|
+
|
|
45
|
+
StyleCollection.styles("will-change-container").set([
|
|
46
|
+
{
|
|
47
|
+
s: [0],
|
|
48
|
+
c: [DEFAULT_CONTAINER_NAME],
|
|
49
|
+
},
|
|
50
|
+
]);
|
|
51
|
+
|
|
52
|
+
StyleCollection.styles("will-change-animation").set([
|
|
53
|
+
{
|
|
54
|
+
s: [0],
|
|
55
|
+
a: true,
|
|
56
|
+
},
|
|
57
|
+
]);
|
|
58
|
+
|
|
59
|
+
StyleCollection.styles("will-change-pressable").set([
|
|
60
|
+
{
|
|
61
|
+
s: [0],
|
|
62
|
+
p: {
|
|
63
|
+
h: 1,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
]);
|
|
67
|
+
|
|
68
|
+
if (options.s) {
|
|
69
|
+
for (const style of options.s) {
|
|
70
|
+
StyleCollection.styles(style[0]).set(style[1]);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (options.k) {
|
|
75
|
+
for (const keyframes of options.k) {
|
|
76
|
+
StyleCollection.keyframes(keyframes[0]).set(keyframes[1]);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (options.vr) {
|
|
81
|
+
for (const entry of options.vr) {
|
|
82
|
+
rootVariables(entry[0]).set(entry[1]);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (options.vu) {
|
|
87
|
+
for (const entry of options.vu) {
|
|
88
|
+
rootVariables(entry[0]).set(entry[1]);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
for (const effect of observableBatch.current) {
|
|
93
|
+
effect.run();
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
observableBatch.current = undefined;
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export const StyleCollection = globalThis.__react_native_css_style_collection;
|
|
101
|
+
|
|
102
|
+
function isDeepEqual(a: unknown, b: unknown): boolean {
|
|
103
|
+
const aArray = Array.isArray(a);
|
|
104
|
+
const bArray = Array.isArray(b);
|
|
105
|
+
const requiresKeyComparison =
|
|
106
|
+
typeof a === "object" && typeof b === "object" && aArray === bArray;
|
|
107
|
+
|
|
108
|
+
// Only compare keys when both are an object or array
|
|
109
|
+
// This does not account for complex types like Date/Regex, because we don't use them
|
|
110
|
+
if (!requiresKeyComparison) return a === b;
|
|
111
|
+
|
|
112
|
+
// Make either are not null
|
|
113
|
+
if (!a || !b) {
|
|
114
|
+
return a === b;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// Shortcut for arrays
|
|
118
|
+
if (aArray && bArray && a.length !== b.length) {
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// Compare a to b
|
|
123
|
+
for (const key in a) {
|
|
124
|
+
if (
|
|
125
|
+
!isDeepEqual(
|
|
126
|
+
(a as Record<string, unknown>)[key],
|
|
127
|
+
(b as Record<string, unknown>)[key],
|
|
128
|
+
)
|
|
129
|
+
) {
|
|
130
|
+
return false;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// Compare b to a
|
|
135
|
+
for (const key in b) {
|
|
136
|
+
if (!(key in a)) {
|
|
137
|
+
return false;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return true;
|
|
142
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { StyleDescriptor, VariableValue } from "react-native-css/compiler";
|
|
2
|
+
|
|
3
|
+
import { testMediaQuery } from "../runtime/native/conditions/media-query";
|
|
4
|
+
import {
|
|
5
|
+
family,
|
|
6
|
+
observable,
|
|
7
|
+
type Observable,
|
|
8
|
+
} from "../runtime/native/reactivity";
|
|
9
|
+
|
|
10
|
+
const rootVariableFamily = () => {
|
|
11
|
+
return family<string, Observable<StyleDescriptor, VariableValue[]>>(() => {
|
|
12
|
+
const obs = observable<StyleDescriptor, VariableValue[]>(
|
|
13
|
+
(read, variableValue) => {
|
|
14
|
+
if (!variableValue) return undefined;
|
|
15
|
+
|
|
16
|
+
for (const [value, mediaQuery] of variableValue) {
|
|
17
|
+
if (!mediaQuery) {
|
|
18
|
+
return value;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (testMediaQuery(mediaQuery, read)) {
|
|
22
|
+
return value;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return undefined;
|
|
27
|
+
},
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
return obs;
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export const rootVariables = rootVariableFamily();
|
|
35
|
+
export const universalVariables = rootVariableFamily();
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _index = require("../compiler/index.js");
|
|
4
|
-
test("multiple classes", () => {
|
|
5
|
-
const compiled = (0, _index.compile)(`
|
|
6
|
-
.my-class.test {
|
|
7
|
-
color: red;
|
|
8
|
-
}`);
|
|
9
|
-
expect(compiled.stylesheet()).toStrictEqual({
|
|
10
|
-
s: [["test", [{
|
|
11
|
-
aq: [["a", "className", "*=", "my-class"]],
|
|
12
|
-
d: [{
|
|
13
|
-
color: "#f00"
|
|
14
|
-
}],
|
|
15
|
-
s: [1, 2],
|
|
16
|
-
v: [["__rn-css-color", "#f00"]]
|
|
17
|
-
}]]]
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
//# sourceMappingURL=attributes.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_index","require","test","compiled","compile","expect","stylesheet","toStrictEqual","s","aq","d","color","v"],"sourceRoot":"../../../src","sources":["compiler/attributes.test.ts"],"mappings":";;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEAC,IAAI,CAAC,kBAAkB,EAAE,MAAM;EAC7B,MAAMC,QAAQ,GAAG,IAAAC,cAAO,EAAC;AAC3B;AACA;AACA,EAAE,CAAC;EAEDC,MAAM,CAACF,QAAQ,CAACG,UAAU,CAAC,CAAC,CAAC,CAACC,aAAa,CAAC;IAC1CC,CAAC,EAAE,CACD,CACE,MAAM,EACN,CACE;MACEC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC;MAC1CC,CAAC,EAAE,CACD;QACEC,KAAK,EAAE;MACT,CAAC,CACF;MACDH,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;MACTI,CAAC,EAAE,CAAC,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAChC,CAAC,CACF,CACF;EAEL,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["doctor/index.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.StyleCollection = StyleCollection;
|
|
7
|
-
exports.inlineStylesMap = void 0;
|
|
8
|
-
var _reactivity = require("./reactivity.js");
|
|
9
|
-
function StyleCollection() {
|
|
10
|
-
return null;
|
|
11
|
-
}
|
|
12
|
-
const inlineStylesMap = exports.inlineStylesMap = new WeakMap();
|
|
13
|
-
StyleCollection.styles = (0, _reactivity.family)(() => {
|
|
14
|
-
return (0, _reactivity.observable)([], isDeepEqual);
|
|
15
|
-
});
|
|
16
|
-
StyleCollection.keyframes = (0, _reactivity.family)(() => {
|
|
17
|
-
return (0, _reactivity.observable)([], isDeepEqual);
|
|
18
|
-
});
|
|
19
|
-
StyleCollection.inject = function (options) {
|
|
20
|
-
_reactivity.observableBatch.current = new Set();
|
|
21
|
-
if (options.s) {
|
|
22
|
-
for (const style of options.s) {
|
|
23
|
-
StyleCollection.styles(style[0]).set(style[1]);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
if (options.k) {
|
|
27
|
-
for (const keyframes of options.k) {
|
|
28
|
-
StyleCollection.keyframes(keyframes[0]).set(keyframes[1]);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
if (options.vr) {
|
|
32
|
-
for (const entry of options.vr) {
|
|
33
|
-
(0, _reactivity.rootVariables)(entry[0]).set(entry[1]);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
if (options.vu) {
|
|
37
|
-
for (const entry of options.vu) {
|
|
38
|
-
(0, _reactivity.rootVariables)(entry[0]).set(entry[1]);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
for (const effect of _reactivity.observableBatch.current) {
|
|
42
|
-
effect.run();
|
|
43
|
-
}
|
|
44
|
-
_reactivity.observableBatch.current = undefined;
|
|
45
|
-
};
|
|
46
|
-
function isDeepEqual(a, b) {
|
|
47
|
-
const aArray = Array.isArray(a);
|
|
48
|
-
const bArray = Array.isArray(b);
|
|
49
|
-
const requiresKeyComparison = typeof a === "object" && typeof b === "object" && aArray === bArray;
|
|
50
|
-
|
|
51
|
-
// Only compare keys when both are an object or array
|
|
52
|
-
// This does not account for complex types like Date/Regex, because we don't use them
|
|
53
|
-
if (!requiresKeyComparison) return a === b;
|
|
54
|
-
|
|
55
|
-
// Make either are not null
|
|
56
|
-
if (!a || !b) {
|
|
57
|
-
return a === b;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// Shortcut for arrays
|
|
61
|
-
if (aArray && bArray && a.length !== b.length) {
|
|
62
|
-
return false;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
// Compare a to b
|
|
66
|
-
for (const key in a) {
|
|
67
|
-
if (!isDeepEqual(a[key], b[key])) {
|
|
68
|
-
return false;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// Compare b to a
|
|
73
|
-
for (const key in b) {
|
|
74
|
-
if (!(key in a)) {
|
|
75
|
-
return false;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
return true;
|
|
79
|
-
}
|
|
80
|
-
StyleCollection.styles("will-change-variable").set([{
|
|
81
|
-
s: [0],
|
|
82
|
-
v: []
|
|
83
|
-
}]);
|
|
84
|
-
StyleCollection.styles("will-change-container").set([{
|
|
85
|
-
s: [0],
|
|
86
|
-
c: []
|
|
87
|
-
}]);
|
|
88
|
-
StyleCollection.styles("will-change-animation").set([{
|
|
89
|
-
s: [0],
|
|
90
|
-
a: true
|
|
91
|
-
}]);
|
|
92
|
-
StyleCollection.styles("will-change-pressable").set([{
|
|
93
|
-
s: [0],
|
|
94
|
-
p: {
|
|
95
|
-
h: 1
|
|
96
|
-
}
|
|
97
|
-
}]);
|
|
98
|
-
//# sourceMappingURL=injection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactivity","require","StyleCollection","inlineStylesMap","exports","WeakMap","styles","family","observable","isDeepEqual","keyframes","inject","options","observableBatch","current","Set","s","style","set","k","vr","entry","rootVariables","vu","effect","run","undefined","a","b","aArray","Array","isArray","bArray","requiresKeyComparison","length","key","v","c","p","h"],"sourceRoot":"../../../../src","sources":["runtime/native/injection.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_index","require","_injection","_reactivity","_shorthand","name","delay","duration","iteration","fill","playState","direction","timingFunction","animationShorthand","exports","shorthandHandler","animatedComponentFamily","weakFamily","component","displayName","startsWith","createAnimatedComponent","animation","resolveValue","value","get","options","animationShortHandTuples","Array","isArray","pop","nameTuple","find","tuple","keyframes","StyleCollection","progress","declarations","props","calculateProps","s","d","renderGuards","inheritedVariables","inlineVariables","normal","Object","assign","important","style","applyShorthand","advancedTimingFunctions","cubic-bezier","cubicBezier","steps","timingFunctionResolver","resolver","args","fn","result"],"sourceRoot":"../../../../../src","sources":["runtime/native/styles/animation.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_shorthand","require","width","style","color","border","exports","shorthandHandler"],"sourceRoot":"../../../../../src","sources":["runtime/native/styles/border.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,MAAMC,KAAK,GAAG,CAAC,aAAa,EAAE,QAAQ,CAAU;AAChD,MAAMC,KAAK,GAAG,CAAC,aAAa,EAAE,QAAQ,CAAU;AAChD,MAAMC,KAAK,GAAG,CAAC,aAAa,EAAE,OAAO,EAAE,OAAO,CAAU;AAEjD,MAAMC,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG,IAAAE,2BAAgB,EACpC,CAAC,CAACL,KAAK,EAAEC,KAAK,EAAEC,KAAK,CAAC,EAAE,CAACD,KAAK,EAAEC,KAAK,CAAC,EAAE,CAACF,KAAK,EAAEC,KAAK,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC,EAChE,EACF,CAAC","ignoreList":[]}
|