react-native-css 3.0.0-nightly.fa5e95b → 3.0.0-preview.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/compiler/atRules.js +15 -2
- 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 +323 -176
- 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 +63 -25
- 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 -18
- 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 +29 -4
- 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 -25
- 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 +29 -9
- 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 +11 -9
- 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 +18 -0
- 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 +29 -0
- package/dist/commonjs/style-collection/root.js.map +1 -0
- package/dist/module/compiler/atRules.js +15 -2
- 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 +314 -172
- 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 +61 -23
- 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 +23 -18
- 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 +23 -4
- 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 -24
- 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 +30 -10
- 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 +12 -9
- 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 +18 -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 +25 -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 +1 -1
- 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 +26 -17
- 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 +7 -7
- 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 +13 -3
- 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 +16 -2
- 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 -11
- 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 +9 -3
- 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 +1 -1
- 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 +26 -17
- 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 +7 -7
- 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 +13 -3
- 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 +16 -2
- 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 -11
- 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 +9 -3
- 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 +30 -15
- package/src/compiler/atRules.ts +16 -2
- package/src/compiler/compiler.ts +12 -10
- package/src/compiler/compiler.types.ts +11 -14
- package/src/compiler/declarations.ts +518 -215
- 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 +93 -33
- 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 +26 -17
- 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 → api.tsx} +34 -5
- 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 -33
- package/src/runtime/native/reanimated.ts +22 -0
- package/src/runtime/native/styles/calculate-props.ts +30 -8
- 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 +14 -9
- 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 → api.tsx} +29 -3
- package/src/style-collection/index.ts +142 -0
- package/src/style-collection/root.ts +37 -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 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Specificity","Order","ClassName","Important","Inline","PseudoElements","inlineSpecificity","specificityCompareFn","a","b","aSpec","s","bSpec"],"sourceRoot":"../../../../src","sources":["runtime/utils/specificity.ts"],"mappings":";;AAAA;;AAIA,OAAO,MAAMA,WAAW,GAAG;EACzBC,KAAK,EAAE,CAAC;EACRC,SAAS,EAAE,CAAC;EACZC,SAAS,EAAE,CAAC;EACZC,MAAM,EAAE,CAAC;EACTC,cAAc,EAAE;
|
|
1
|
+
{"version":3,"names":["Specificity","Order","ClassName","Important","Inline","PseudoElements","PseudoClass","inlineSpecificity","specificityCompareFn","a","b","aSpec","s","bSpec"],"sourceR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AKQ,KAAK,CAACR,cAAc,CAAC,EAAE;IAC1D,OAAO,CAACM,KAAK,CAACN,cAAc,CAAC,IAAI,CAAC,KAAKQ,KAAK,CAACR,cAAc,CAAC,IAAI,CAAC,CAAC;EACpE,CAAC,MAAM,IAAIM,KAAK,CAACT,SAAS,CAAC,KAAKW,KAAK,CAACX,SAAS,CAAC,EAAE;IAChD,OAAO,CAACS,KAAK,CAACT,SAAS,CAAC,IAAI,CAAC,KAAKW,KAAK,CAACX,SAAS,CAAC,IAAI,CAAC,CAAC;EAC1D,CAAC,MAAM,IAAIS,KAAK,CAACV,KAAK,CAAC,KAAKY,KAAK,CAACZ,KAAK,CAAC,EAAE;IACxC,OAAO,CAACU,KAAK,CAACV,KAAK,CAAC,IAAI,CAAC,KAAKY,KAAK,CAACZ,KAAK,CAAC,IAAI,CAAC,CAAC;EAClD,CAAC,MAAM;IACL,OAAO,CAAC;EACV;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { createElement } from "react";
|
|
3
|
+
import { createElement, useMemo } from "react";
|
|
4
4
|
import { Appearance } from "react-native";
|
|
5
5
|
import { assignStyle } from "./assign-style.js";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
7
|
export const styled = (baseComponent, mapping, _options) => {
|
|
7
8
|
return props => {
|
|
8
9
|
return useCssElement(baseComponent, mapping, props);
|
|
@@ -39,6 +40,10 @@ export const colorScheme = {
|
|
|
39
40
|
Appearance.setColorScheme(name);
|
|
40
41
|
}
|
|
41
42
|
};
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated Use `<VariableContextProvider />` instead.
|
|
46
|
+
*/
|
|
42
47
|
export function vars(variables) {
|
|
43
48
|
const $variables = {};
|
|
44
49
|
for (const [key, value] of Object.entries(variables)) {
|
|
@@ -50,6 +55,18 @@ export function vars(variables) {
|
|
|
50
55
|
}
|
|
51
56
|
return $variables;
|
|
52
57
|
}
|
|
58
|
+
export function VariableContextProvider(props) {
|
|
59
|
+
const style = useMemo(() => {
|
|
60
|
+
return {
|
|
61
|
+
display: "content",
|
|
62
|
+
...Object.fromEntries(Object.entries(props.value).map(([key, value]) => [key.startsWith("--") ? key : `--${key}`, value]))
|
|
63
|
+
};
|
|
64
|
+
}, [props.value]);
|
|
65
|
+
return /*#__PURE__*/_jsx("div", {
|
|
66
|
+
style: style,
|
|
67
|
+
children: props.children
|
|
68
|
+
});
|
|
69
|
+
}
|
|
53
70
|
export const useNativeVariable = () => {
|
|
54
71
|
throw new Error("useNativeVariable is not supported in web");
|
|
55
72
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createElement","Appearance","assignStyle","styled","baseComponent","mapping","_options","props","useCssElement","component","incomingProps","key","value","Object","entries","source","target","$$css","split","colorScheme","get","getColorScheme","set","name","setColorScheme","vars","variables","$variables","startsWith","toString","useNativeVariable","Error","useUnstableNativeVariable"],"sourceRoot":"../../../../src","sources":["runtime/web/api.
|
|
1
|
+
{"version":3,"names":["createElement","useMemo","Appearance","assignStyle","jsx","_jsx","styled","baseComponent","mapping","_options","props","useCssElement","component","incomingProps","key","value","Object","entries","source","target","$$css","split","colorScheme","get","getColorScheme","set","name","setColorScheme","vars","variables","$variables","startsWith","toString","VariableContextProvider","style","display","fromEntries","map","children","useNativeVariable","Error","useUnstableNativeVariable"],"sourceRoot":"../../../../src","sources":["runtime/web/api.tsx"],"mappings":";;AAAA,SACEA,aAAa,EACbC,OAAO,QAGF,OAAO;AACd,SAASC,UAAU,QAAQ,cAAc;AAUzC,SAASC,WAAW,QAAQ,mBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE7C,OAAO,MAAMC,MAAM,GAAGA,CAIpBC,aAAgB,EAChBC,OAAU,EACVC,QAAwB,KACrB;EACH,OAAQC,KAAwC,IAAK;IACnD,OAAOC,aAAa,CAACJ,aAAa,EAAEC,OAAO,EAAEE,KAAK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U,CAAC,IAAI,CAAC,EAAE;MACxBD,UAAU,CAAChB,GAAG,CAAC,GAAGC,KAAK,CAACiB,QAAQ,CAAC,CAAC;IACpC,CAAC,MAAM;MACLF,UAAU,CAAC,KAAKhB,GAAG,EAAE,CAAC,GAAGC,KAAK,CAACiB,QAAQ,CAAC,CAAC;IAC3C;EACF;EACA,OAAOF,UAAU;AACnB;AAEA,OAAO,SAASG,uBAAuBA,CACrCvB,KAAkE,EAClE;EACA,MAAMwB,KAAK,GAAGjC,OAAO,CAAC,MAAM;IAC1B,OAAO;MACLkC,OAAO,EAAE,SAAS;MAClB,GAAGnB,MAAM,CAACoB,WAAW,CACnBpB,MAAM,CAACC,OAAO,CAACP,KAAK,CAACK,KAAK,CAAC,CAACsB,GAAG,CAAC,CAAC,CAACvB,GAAG,EAAEC,KAAK,CAAC,KAAK,CAChDD,GAAG,CAACiB,UAAU,CAAC,IAAI,CAAC,GAAGjB,GAAG,GAAG,KAAKA,GAAG,EAAE,EACvCC,KAAK,CACN,CACH;IACF,CAAC;EACH,CAAC,EAAE,CAACL,KAAK,CAACK,KAAK,CAAC,CAAC;EAEjB,oBAAOV,IAAA;IAAK6B,KAAK,EAAEA,KAAM;IAAAI,QAAA,EAAE5B,KAAK,CAAC4B;EAAQ,CAAM,CAAC;AAClD;AAEA,OAAO,MAAMC,iBAAiB,GAAGA,CAAA,KAAM;EACrC,MAAM,IAAIC,KAAK,CAAC,2CAA2C,CAAC;AAC9D,CAAC;AAED,OAAO,MAAMC,yBAAyB,GAAGA,CAAA,KAAM;EAC7C,MAAM,IAAID,KAAK,CAAC,mDAAmD,CAAC;AACtE,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { DEFAULT_CONTAINER_NAME } from "../runtime/native/conditions/container-query.js";
|
|
4
|
+
import { family, observable, observableBatch } from "../runtime/native/reactivity.js";
|
|
5
|
+
import { rootVariables, universalVariables } from "./root.js";
|
|
6
|
+
export { rootVariables, universalVariables };
|
|
7
|
+
globalThis.__react_native_css_style_collection ??= {
|
|
8
|
+
styles: family(() => {
|
|
9
|
+
return observable([], isDeepEqual);
|
|
10
|
+
}),
|
|
11
|
+
keyframes: family(() => {
|
|
12
|
+
return observable([], isDeepEqual);
|
|
13
|
+
}),
|
|
14
|
+
inject: function (options) {
|
|
15
|
+
observableBatch.current = new Set();
|
|
16
|
+
StyleCollection.styles("will-change-variable").set([{
|
|
17
|
+
s: [0],
|
|
18
|
+
v: []
|
|
19
|
+
}]);
|
|
20
|
+
StyleCollection.styles("will-change-container").set([{
|
|
21
|
+
s: [0],
|
|
22
|
+
c: [DEFAULT_CONTAINER_NAME]
|
|
23
|
+
}]);
|
|
24
|
+
StyleCollection.styles("will-change-animation").set([{
|
|
25
|
+
s: [0],
|
|
26
|
+
a: true
|
|
27
|
+
}]);
|
|
28
|
+
StyleCollection.styles("will-change-pressable").set([{
|
|
29
|
+
s: [0],
|
|
30
|
+
p: {
|
|
31
|
+
h: 1
|
|
32
|
+
}
|
|
33
|
+
}]);
|
|
34
|
+
if (options.s) {
|
|
35
|
+
for (const style of options.s) {
|
|
36
|
+
StyleCollection.styles(style[0]).set(style[1]);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
if (options.k) {
|
|
40
|
+
for (const keyframes of options.k) {
|
|
41
|
+
StyleCollection.keyframes(keyframes[0]).set(keyframes[1]);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
if (options.vr) {
|
|
45
|
+
for (const entry of options.vr) {
|
|
46
|
+
rootVariables(entry[0]).set(entry[1]);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
if (options.vu) {
|
|
50
|
+
for (const entry of options.vu) {
|
|
51
|
+
rootVariables(entry[0]).set(entry[1]);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
for (const effect of observableBatch.current) {
|
|
55
|
+
effect.run();
|
|
56
|
+
}
|
|
57
|
+
observableBatch.current = undefined;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
export const StyleCollection = globalThis.__react_native_css_style_collection;
|
|
61
|
+
function isDeepEqual(a, b) {
|
|
62
|
+
const aArray = Array.isArray(a);
|
|
63
|
+
const bArray = Array.isArray(b);
|
|
64
|
+
const requiresKeyComparison = typeof a === "object" && typeof b === "object" && aArray === bArray;
|
|
65
|
+
|
|
66
|
+
// Only compare keys when both are an object or array
|
|
67
|
+
// This does not account for complex types like Date/Regex, because we don't use them
|
|
68
|
+
if (!requiresKeyComparison) return a === b;
|
|
69
|
+
|
|
70
|
+
// Make either are not null
|
|
71
|
+
if (!a || !b) {
|
|
72
|
+
return a === b;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Shortcut for arrays
|
|
76
|
+
if (aArray && bArray && a.length !== b.length) {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Compare a to b
|
|
81
|
+
for (const key in a) {
|
|
82
|
+
if (!isDeepEqual(a[key], b[key])) {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Compare b to a
|
|
88
|
+
for (const key in b) {
|
|
89
|
+
if (!(key in a)) {
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return true;
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DEFAULT_CONTAINER_NAME","family","observable","observableBatch","rootVariables","universalVariables","globalThis","__react_native_css_style_collection","styles","isDeepEqual","keyframes","inject","options","current","Set","StyleCollection","set","s","v","c","a","p","h","style","k","vr","entry","vu","effect","run","undefined","b","aArray","Array","isArray","bArray","requiresKeyComparison","length","key"],"sourceRoot":"../../../src","sources":["style-collection/index.ts"],"mappings":";;AAMA,SAASA,sBAAsB,QAAQ,iDAA8C;AACrF,SACEC,MAAM,EACNC,UAAU,EACVC,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,OAAOhB,CAAC,KAAKW,CAAC;;EAE1C;EACA,IAAI,CAACX,CAAC,IAAI,CAACW,CAAC,EAAE;IACZ,OAAOX,CAAC,KAAKW,CAAC;EAChB;;EAEA;EACA,IAAIC,MAAM,IAAIG,MAAM,IAAIf,CAAC,CAACiB,MAAM,KAAKN,CAAC,CAACM,MAAM,EAAE;IAC7C,OAAO,KAAK;EACd;;EAEA;EACA,KAAK,MAAMC,GAAG,IAAIlB,CAAC,EAAE;IACnB,IACE,CAACX,WAAW,CACTW,CAAC,CAA6BkB,GAAG,CAAC,EAClCP,CAAC,CAA6BO,GAAG,CACpC,CAAC,EACD;MACA,OAAO,KAAK;IACd;EACF;;EAEA;EACA,KAAK,MAAMA,GAAG,IAAIP,CAAC,EAAE;IACnB,IAAI,EAAEO,GAAG,IAAIlB,CAAC,CAAC,EAAE;MACf,OAAO,KAAK;IACd;EACF;EAEA,OAAO,IAAI;AACb","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { testMediaQuery } from "../runtime/native/conditions/media-query.js";
|
|
4
|
+
import { family, observable } from "../runtime/native/reactivity.js";
|
|
5
|
+
const rootVariableFamily = () => {
|
|
6
|
+
return family(() => {
|
|
7
|
+
const obs = observable((read, variableValue) => {
|
|
8
|
+
if (!variableValue) return undefined;
|
|
9
|
+
for (const [value, mediaQuery] of variableValue) {
|
|
10
|
+
if (!mediaQuery) {
|
|
11
|
+
return value;
|
|
12
|
+
}
|
|
13
|
+
if (testMediaQuery(mediaQuery, read)) {
|
|
14
|
+
return value;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return undefined;
|
|
18
|
+
});
|
|
19
|
+
return obs;
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
export const rootVariables = rootVariableFamily();
|
|
23
|
+
export const universalVariables = rootVariableFamily();
|
|
24
|
+
rootVariables("__rn-css-rem").set([[14]]);
|
|
25
|
+
//# sourceMappingURL=root.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["testMediaQuery","family","observable","rootVariableFamily","obs","read","variableValue","undefined","value","mediaQuery","rootVariables","universalVariables","set"],"sourceRoot":"../../../src","sources":["style-collection/root.ts"],"mappings":";;AAEA,SAASA,cAAc,QAAQ,6CAA0C;AACzE,SACEC,MAAM,EACNC,UAAU,QAEL,iCAA8B;AAErC,MAAMC,kBAAkB,GAAGA,CAAA,KAAM;EAC/B,OAAOF,MAAM,CAAuD,MAAM;IACxE,MAAMG,GAAG,GAAGF,UAAU,CACpB,CAACG,IAAI,EAAEC,aAAa,KAAK;MACvB,IAAI,CAACA,aAAa,EAAE,OAAOC,SAAS;MAEpC,KAAK,MAAM,CAACC,KAAK,EAAEC,UAAU,CAAC,IAAIH,aAAa,EAAE;QAC/C,IAAI,CAACG,UAAU,EAAE;UACf,OAAOD,KAAK;QACd;QAEA,IAAIR,cAAc,CAACS,UAAU,EAAEJ,IAAI,CAAC,EAAE;UACpC,OAAOG,KAAK;QACd;MACF;MAEA,OAAOD,SAAS;IAClB,CACF,CAAC;IAED,OAAOH,GAAG;EACZ,CAAC,CAAC;AACJ,CAAC;AAED,OAAO,MAAMM,aAAa,GAAGP,kBAAkB,CAAC,CAAC;AACjD,OAAO,MAAMQ,kBAAkB,GAAGR,kBAAkB,CAAC,CAAC;AAEtDO,aAAa,CAAC,cAAc,CAAC,CAACE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atRules.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/atRules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EACf,IAAI,EACJ,YAAY,EACb,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGzD,OAAO,KAAK,EAAE,iBAAiB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AS,CAAC;IAChB,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,OAAO,CAAC,YAAY,EAAE;YAAE,IAAI,EAAE,OAAO,CAAA;SAAE,CAAC,EAAE,CAAC;QACpD,KAAK,EAAE,OAAO,CAAC,YAAY,EAAE;YAAE,IAAI,EAAE,OAAO,CAAA;SAAE,CAAC,EAAE,GAAG,IAAI,CAAC;KAC1D,CAAC;CACH;AAED;;iDAEiD;AAEjD,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE;QACL,IAAI,EAAE,cAAc,CAAC;QACrB,OAAO,EAAE,IAAI,GAAG,OAAO,CAAC,eAAe,EAAE;YAAE,IAAI,EAAE,UAAU,CAAA;SAAE,CAAC,CAAC;QAC/D,IAAI,EAAE;YACJ,IAAI,EAAE,kBAAkB,CAAC;YACzB,KAAK,EAAE,IAAI,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC;SAC/C,CAAC;KACH,CAAC;CACH;AAED,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,IAAI,GAAG,iBAAiB,EAC9B,OAAO,EAAE,iBAAiB,QA+B3B;AAUD,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,GAAG,UAAU,CAAC,EAAE,oBAyC5D"}
|
|
@@ -7,7 +7,7 @@ import type { CompilerOptions } from "./compiler.types";
|
|
|
7
7
|
* @returns A `ReactNativeCssStyleSheet` that can be passed to `StyleSheet.register` or used with a custom runtime
|
|
8
8
|
*/
|
|
9
9
|
export declare function compile(code: Buffer | string, options?: CompilerOptions): {
|
|
10
|
-
stylesheet: () => import("./compiler.types").
|
|
10
|
+
stylesheet: () => import("./compiler.types").ReactNativeCssStyleSheet;
|
|
11
11
|
warnings: () => {
|
|
12
12
|
properties?: string[];
|
|
13
13
|
values?: Record<string, unknown[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compiler.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/compiler.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,eAAe,EAAkB,MAAM,kBAAkB,CAAC;AAUxE;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,OAAO,GAAE,eAAoB;;;;;;;
|
|
1
|
+
{"version":3,"file":"compiler.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/compiler.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,eAAe,EAAkB,MAAM,kBAAkB,CAAC;AAUxE;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,OAAO,GAAE,eAAoB;;;;;;;EAoF3E"}
|
|
@@ -2,8 +2,9 @@ import type { Debugger } from "debug";
|
|
|
2
2
|
import type { MediaFeatureNameFor_MediaFeatureId } from "lightningcss";
|
|
3
3
|
import { VAR_SYMBOL } from "../runtime/native/reactivity";
|
|
4
4
|
export interface CompilerOptions {
|
|
5
|
+
filename?: string;
|
|
6
|
+
projectRoot?: string;
|
|
5
7
|
inlineRem?: number | false;
|
|
6
|
-
grouping?: (string | RegExp)[];
|
|
7
8
|
selectorPrefix?: string;
|
|
8
9
|
stylesheetOrder?: number;
|
|
9
10
|
features?: FeatureFlagRecord;
|
|
@@ -19,8 +20,7 @@ export interface CompilerOptions {
|
|
|
19
20
|
/**
|
|
20
21
|
* A `react-native-css` StyleSheet
|
|
21
22
|
*/
|
|
22
|
-
export
|
|
23
|
-
export interface ReactNativeCssStyleSheet_V2 {
|
|
23
|
+
export interface ReactNativeCssStyleSheet {
|
|
24
24
|
/** Feature flags */
|
|
25
25
|
f?: FeatureFlagRecord;
|
|
26
26
|
/** rem */
|
|
@@ -28,7 +28,7 @@ export interface ReactNativeCssStyleSheet_V2 {
|
|
|
28
28
|
/** StyleRuleSets */
|
|
29
29
|
s?: (readonly [string, StyleRuleSet])[];
|
|
30
30
|
/** KeyFrames */
|
|
31
|
-
k?:
|
|
31
|
+
k?: Animation[];
|
|
32
32
|
/** Root Variables */
|
|
33
33
|
vr?: RootVariables;
|
|
34
34
|
/** Universal Variables */
|
|
@@ -83,10 +83,8 @@ export type StyleDeclaration =
|
|
|
83
83
|
Record<string, StyleDescriptor>
|
|
84
84
|
/** A style that needs to be set */
|
|
85
85
|
| [StyleDescriptor, string | string[]]
|
|
86
|
-
/** A value that can only be computed at runtime */
|
|
87
|
-
| [StyleFunction, string | string[]]
|
|
88
86
|
/** A value that can only be computed at runtime, and only after styles have been calculated */
|
|
89
|
-
| [
|
|
87
|
+
| [StyleDescriptor, string | string[], 1];
|
|
90
88
|
export type StyleDescriptor = string | number | boolean | undefined | StyleFunction | StyleDescriptor[];
|
|
91
89
|
export type StyleFunction = [
|
|
92
90
|
Record<never, never>,
|
|
@@ -122,14 +120,14 @@ export type InlineVariable = {
|
|
|
122
120
|
[VAR_SYMBOL]: "inline";
|
|
123
121
|
[key: string]: unknown | undefined;
|
|
124
122
|
};
|
|
125
|
-
/****************************** Animations
|
|
126
|
-
export type
|
|
127
|
-
export type AnimationRecord = Record<string,
|
|
128
|
-
export type
|
|
123
|
+
/****************************** Animations ******************************/
|
|
124
|
+
export type Animation = [string, AnimationKeyframes[]];
|
|
125
|
+
export type AnimationRecord = Record<string, AnimationKeyframes[]>;
|
|
126
|
+
export type AnimationKeyframes = [string | number, StyleDeclaration[]];
|
|
129
127
|
/****************************** Conditions ******************************/
|
|
130
128
|
export type MediaCondition = ["!!", MediaFeatureNameFor_MediaFeatureId] | ["!", MediaCondition] | ["&", MediaCondition[]] | ["|", MediaCondition[]] | [
|
|
131
129
|
MediaFeatureComparison,
|
|
132
|
-
MediaFeatureNameFor_MediaFeatureId |
|
|
130
|
+
MediaFeatureNameFor_MediaFeatureId | "dir",
|
|
133
131
|
StyleDescriptor
|
|
134
132
|
] | [
|
|
135
133
|
"[]",
|
|
@@ -186,7 +184,7 @@ export type LoggerOptions = {
|
|
|
186
184
|
export interface CompilerCollection extends CompilerOptions {
|
|
187
185
|
features: FeatureFlagRecord;
|
|
188
186
|
rules: Map<string, StyleRule[]>;
|
|
189
|
-
keyframes: Map<string,
|
|
187
|
+
keyframes: Map<string, AnimationKeyframes[]>;
|
|
190
188
|
darkMode?: string | null;
|
|
191
189
|
rootVariables: VariableRecord;
|
|
192
190
|
universalVariables: VariableRecord;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compiler.types.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/compiler.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,cAAc,CAAC;AAEvE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,MAAM,WAAW,eAAe;IAC9B,
|
|
1
|
+
{"version":3,"file":"compiler.types.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/compiler.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,cAAc,CAAC;AAEvE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAAG,QAAQ,CAAC;IAC9C,2DAA2D;IAC3D,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB;IAChB,0B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S,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAC7C,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,aAAa,EAAE,cAAc,CAAC;IAC9B,kBAAkB,EAAE,cAAc,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Angle,
|
|
1
|
+
import type { Angle, BorderSideWidth, BorderStyle, ColorOrAuto, CssColor, Declaration, DimensionPercentageFor_LengthValue, EnvironmentVariable, FontSize, FontStyle, FontVariantCaps, FontWeight, Length, LengthPercentageOrAuto, LengthValue, LineHeight, LineStyle, MaxSize, NumberOrPercentage, Scale, Size, Size2DFor_DimensionPercentageFor_LengthValue, Time, Token, TokenOrValue, Translate, UnresolvedColor } from "lightningcss";
|
|
2
2
|
import type { StyleDescriptor, StyleFunction } from "./compiler.types";
|
|
3
3
|
import type { StylesheetBuilder } from "./stylesheet";
|
|
4
4
|
type DeclarationType<P extends Declaration["property"]> = Extract<Declaration, {
|
|
@@ -6,22 +6,23 @@ type DeclarationType<P extends Declaration["property"]> = Extract<Declaration, {
|
|
|
6
6
|
}>;
|
|
7
7
|
export declare function parseDeclaration(declaration: Declaration, builder: StylesheetBuilder): void;
|
|
8
8
|
export declare function parseBorderInlineWidth(declaration: DeclarationType<"border-inline-width">, builder: StylesheetBuilder): void;
|
|
9
|
+
export declare function parseBorderInlineStyle(declaration: DeclarationType<"border-inline-style" | "border-inline-start-style" | "border-inline-end-style">, builder: StylesheetBuilder): void;
|
|
9
10
|
export declare function parseScaleValue(translate: Scale, prop: keyof Extract<Scale, object>, builder: StylesheetBuilder): StyleDescriptor;
|
|
10
|
-
export declare function
|
|
11
|
+
export declare function parseUnparsedDeclaration(declaration: Extract<Declaration, {
|
|
11
12
|
property: "unparsed";
|
|
12
13
|
}>, builder: StylesheetBuilder): void;
|
|
13
|
-
export declare function
|
|
14
|
+
export declare function parseCustomDeclaration(declaration: Extract<Declaration, {
|
|
14
15
|
property: "custom";
|
|
15
16
|
}>, builder: StylesheetBuilder): void;
|
|
16
|
-
export declare function reduceParseUnparsed(tokenOrValues: TokenOrValue[], builder: StylesheetBuilder): StyleDescriptor;
|
|
17
|
+
export declare function reduceParseUnparsed(tokenOrValues: TokenOrValue[], builder: StylesheetBuilder, property: string, allowAuto: boolean): StyleDescriptor;
|
|
17
18
|
export declare function unparsedFunction(token: Extract<TokenOrValue, {
|
|
18
19
|
type: "function";
|
|
19
|
-
}>, builder: StylesheetBuilder): StyleFunction;
|
|
20
|
+
}>, builder: StylesheetBuilder, property: string, allowAuto: boolean): StyleFunction;
|
|
20
21
|
/**
|
|
21
22
|
* When the CSS cannot be parsed (often due to a runtime condition like a CSS variable)
|
|
22
23
|
* This export function best efforts parsing it into a export function that we can evaluate at runtime
|
|
23
24
|
*/
|
|
24
|
-
export declare function parseUnparsed(tokenOrValue: TokenOrValue | TokenOrValue[] | string | number | undefined | null, builder: StylesheetBuilder, allowAuto?: boolean): StyleDescriptor;
|
|
25
|
+
export declare function parseUnparsed(tokenOrValue: TokenOrValue | TokenOrValue[] | string | number | undefined | null, builder: StylesheetBuilder, property: string, allowAuto?: boolean): StyleDescriptor;
|
|
25
26
|
export declare function parseLengthDeclaration(declaration: {
|
|
26
27
|
value: number | Length | DimensionPercentageFor_LengthValue | NumberOrPercentage | LengthValue;
|
|
27
28
|
}, builder: StylesheetBuilder): StyleDescriptor;
|
|
@@ -30,6 +31,9 @@ export declare function parseAngle(angle: Angle | number, builder: StylesheetBui
|
|
|
30
31
|
export declare function parseSizeDeclaration(declaration: {
|
|
31
32
|
value: Size | MaxSize;
|
|
32
33
|
}, builder: StylesheetBuilder): StyleDescriptor;
|
|
34
|
+
export declare function parseSizeWithAutoDeclaration(declaration: {
|
|
35
|
+
value: Size | MaxSize;
|
|
36
|
+
}, builder: StylesheetBuilder): StyleDescriptor;
|
|
33
37
|
export declare function parsePointerEvents({ value }: {
|
|
34
38
|
value: string;
|
|
35
39
|
}, builder: StylesheetBuilder): "none" | "auto" | "box-none" | "box-only" | undefined;
|
|
@@ -39,7 +43,7 @@ export declare function parseSize(size: Size | MaxSize, builder: StylesheetBuild
|
|
|
39
43
|
export declare function parseSize(size: Size | MaxSize, builder: StylesheetBuilder, property: string, options?: {
|
|
40
44
|
allowAuto?: boolean;
|
|
41
45
|
}): StyleDescriptor;
|
|
42
|
-
export declare function
|
|
46
|
+
export declare function parseColorOrAutoDeclaration({ value }: {
|
|
43
47
|
value: ColorOrAuto;
|
|
44
48
|
}, builder: StylesheetBuilder): string | readonly [{}, "var", "__rn-css-current-color"] | undefined;
|
|
45
49
|
export declare function parseFontColorDeclaration(declaration: Extract<Declaration, {
|
|
@@ -49,6 +53,9 @@ export declare function parseColorDeclaration(declaration: Extract<Declaration,
|
|
|
49
53
|
value: CssColor;
|
|
50
54
|
}>, builder: StylesheetBuilder): void;
|
|
51
55
|
export declare function parseColor(cssColor: CssColor, builder: StylesheetBuilder): string | readonly [{}, "var", "__rn-css-current-color"] | undefined;
|
|
56
|
+
export declare function parseLengthPercentageDeclaration(value: {
|
|
57
|
+
value: LengthPercentageOrAuto;
|
|
58
|
+
}, builder: StylesheetBuilder): StyleDescriptor;
|
|
52
59
|
export declare function parseLengthPercentageOrAutoDeclaration(value: {
|
|
53
60
|
value: LengthPercentageOrAuto;
|
|
54
61
|
}, builder: StylesheetBuilder): StyleDescriptor;
|
|
@@ -67,15 +74,14 @@ export declare function parseTextDecorationLineDeclaration(declaration: Declarat
|
|
|
67
74
|
export declare function parseTextDecorationLine(value: DeclarationType<"text-decoration-line">["value"], builder: StylesheetBuilder): "none" | "underline" | "line-through" | "underline line-through" | undefined;
|
|
68
75
|
export declare function parsePosition({ value }: DeclarationType<"position">, builder: StylesheetBuilder): "absolute" | "relative" | undefined;
|
|
69
76
|
export declare function parseOverflow({ value }: DeclarationType<"overflow">, builder: StylesheetBuilder): import("lightningcss").OverflowKeyword | undefined;
|
|
70
|
-
export declare function parseBorderStyleDeclaration(declaration: DeclarationType<"
|
|
77
|
+
export declare function parseBorderStyleDeclaration(declaration: Extract<DeclarationType<Declaration["property"]>, {
|
|
78
|
+
value: LineStyle | BorderStyle;
|
|
79
|
+
}>, builder: StylesheetBuilder): LineStyle | undefined;
|
|
71
80
|
export declare function parseBorderStyle(value: BorderStyle | LineStyle, builder: StylesheetBuilder): LineStyle | undefined;
|
|
72
|
-
export declare function parseBorderBlockColor({ value }: {
|
|
73
|
-
value: BorderBlockColor;
|
|
74
|
-
}, builder: StylesheetBuilder): void;
|
|
75
81
|
export declare function parseBorderBlockWidth(declaration: DeclarationType<"border-block-width">, builder: StylesheetBuilder): void;
|
|
76
|
-
export declare function parseBorderSideWidthDeclaration(declaration: {
|
|
82
|
+
export declare function parseBorderSideWidthDeclaration(declaration: Extract<Declaration, {
|
|
77
83
|
value: BorderSideWidth;
|
|
78
|
-
}
|
|
84
|
+
}>, builder: StylesheetBuilder): void;
|
|
79
85
|
export declare function parseBorderSideWidth(value: BorderSideWidth, builder: StylesheetBuilder): StyleDescriptor;
|
|
80
86
|
export declare function parseVerticalAlign({ value }: DeclarationType<"vertical-align">, builder: StylesheetBuilder): import("lightningcss").VerticalAlignKeyword | undefined;
|
|
81
87
|
export declare function parseLineHeightDeclaration(declaration: DeclarationType<"line-height">, builder: StylesheetBuilder): StyleDescriptor;
|
|
@@ -90,20 +96,23 @@ export declare function parseLengthOrCoercePercentageToRuntime(value: Length | D
|
|
|
90
96
|
export declare function parseGap(declaration: DeclarationType<"gap" | "column-gap" | "row-gap">, builder: StylesheetBuilder): StyleDescriptor;
|
|
91
97
|
export declare function parseTextAlign({ value }: DeclarationType<"text-align">, builder: StylesheetBuilder): import("lightningcss").TextAlign | undefined;
|
|
92
98
|
export declare function parseBoxShadow({ value }: DeclarationType<"box-shadow">, builder: StylesheetBuilder): void;
|
|
99
|
+
export declare function parseBoxSizing(declaration: DeclarationType<"box-sizing">, builder: StylesheetBuilder): import("lightningcss").BoxSizing | undefined;
|
|
93
100
|
export declare function parseDisplay({ value }: DeclarationType<"display">, builder: StylesheetBuilder): "flex" | "none" | undefined;
|
|
101
|
+
export declare function parseDirection(declaration: DeclarationType<"direction">, builder: StylesheetBuilder): void;
|
|
94
102
|
export declare function parseAspectRatio({ value, }: DeclarationType<"aspect-ratio">): StyleDescriptor;
|
|
103
|
+
export declare function parseBackfaceVisibility({ value }: DeclarationType<"backface-visibility">, builder: StylesheetBuilder): StyleDescriptor;
|
|
95
104
|
export declare function parseDimension({ unit, value }: Extract<Token, {
|
|
96
105
|
type: "dimension";
|
|
97
106
|
}>, builder: StylesheetBuilder): StyleDescriptor;
|
|
98
107
|
export declare function parseUserSelect({ value }: DeclarationType<"user-select">, builder: StylesheetBuilder): import("lightningcss").UserSelect | undefined;
|
|
99
|
-
export declare function parseSVGPaint({ value }: DeclarationType<"fill" | "stroke">, builder: StylesheetBuilder):
|
|
108
|
+
export declare function parseSVGPaint({ value, property }: DeclarationType<"fill" | "stroke">, builder: StylesheetBuilder): void;
|
|
100
109
|
export declare function round(number: number): number;
|
|
101
110
|
export declare function parseDimensionPercentageFor_LengthValue(value: DimensionPercentageFor_LengthValue, builder: StylesheetBuilder): StyleDescriptor;
|
|
102
111
|
export declare function parseEnv(value: EnvironmentVariable, builder: StylesheetBuilder): StyleFunction | undefined;
|
|
103
|
-
export declare function parseCalcFn(name: string, tokens: TokenOrValue[], builder: StylesheetBuilder): StyleDescriptor;
|
|
104
|
-
export declare function parseCalcArguments([...args]: TokenOrValue[], builder: StylesheetBuilder): StyleDescriptor[] | undefined;
|
|
112
|
+
export declare function parseCalcFn(name: string, tokens: TokenOrValue[], builder: StylesheetBuilder, property: string): StyleDescriptor;
|
|
113
|
+
export declare function parseCalcArguments([...args]: TokenOrValue[], builder: StylesheetBuilder, property: string): StyleDescriptor[] | undefined;
|
|
105
114
|
export declare function parseTranslateProp(value: Translate, prop: keyof Extract<Translate, object>, builder: StylesheetBuilder): StyleDescriptor;
|
|
106
|
-
export declare function parseUnresolvedColor(color: UnresolvedColor, builder: StylesheetBuilder): StyleDescriptor;
|
|
115
|
+
export declare function parseUnresolvedColor(color: UnresolvedColor, builder: StylesheetBuilder, property: string, allowAuto: boolean): StyleDescriptor;
|
|
107
116
|
export declare function allEqual(...params: unknown[]): boolean;
|
|
108
117
|
export declare function equal(a: unknown, b: unknown): boolean;
|
|
109
118
|
export declare function parseTime(time: Time): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declarations.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/declarations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,KAAK,EACL,
|
|
1
|
+
{"version":3,"file":"declarations.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/declarations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,KAAK,EACL,eAAe,EACf,WAAW,EACX,WAAW,EACX,QAAQ,EAER,WAAW,EACX,kCAAkC,EAClC,mBAAmB,EACnB,QAAQ,EACR,SAAS,EACT,eAAe,EACf,UAAU,EAIV,MAAM,EACN,sBAAsB,EACtB,WAAW,EAEX,UAAU,EACV,SAAS,EACT,OAAO,EACP,kBAAkB,EAClB,KAAK,EACL,IAAI,EACJ,4CAA4C,EAC5C,IAAI,EACJ,KAAK,EACL,YAAY,EACZ,SAAS,EACT,eAAe,EAChB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EAEd,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAItD,KAAK,eAAe,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,CAAC,IAAI,OAAO,CAC/D,WAAW,EACX;IAAE,QAAQ,EA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,CAChC,WAAW,EAAE,OAAO,CAClB,WAAW,EACX;IAAE,QAAQ,EAAE,aAAa,MAAM,EAAE,GAAG,YAAY,CAAA;CAAE,CACnD,EACD,OAAO,EAAE,iBAAiB,QA6D3B;AAED,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,OAAO,CAClB,WAAW,EACX;IAAE,QAAQ,EAAE,YAAY,MAAM,EAAE,GAAG,WAAW,CAAA;CAAE,CACjD,EACD,OAAO,EAAE,iBAAiB,QA+E3B;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,UAKpC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { StyleRule } from "./compiler.types";
|
|
2
|
+
export declare function modifyRuleForSelection(rule: StyleRule): StyleRule | undefined;
|
|
3
|
+
export declare function modifyRuleForPlaceholder(rule: StyleRule): StyleRule | undefined;
|
|
4
|
+
//# sourceMappingURL=pseudo-elements.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pseudo-elements.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/pseudo-elements.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAoB,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEpE,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAU7E;AAED,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,SAAS,GACd,SAAS,GAAG,SAAS,CAUvB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { SelectorList } from "lightningcss";
|
|
2
|
+
import type { AttributeQuery, CompilerOptions, ContainerQuery, MediaCondition, PseudoClassesQuery, SpecificityArray } from "./compiler.types";
|
|
3
|
+
interface ReactNativeClassNameSelector {
|
|
4
|
+
type: "className";
|
|
5
|
+
specificity: SpecificityArray;
|
|
6
|
+
className: string;
|
|
7
|
+
mediaQuery?: MediaCondition[];
|
|
8
|
+
containerQuery?: ContainerQuery[];
|
|
9
|
+
pseudoClassesQuery?: PseudoClassesQuery;
|
|
10
|
+
attributeQuery?: AttributeQuery[];
|
|
11
|
+
pseudoElementQuery?: string[];
|
|
12
|
+
}
|
|
13
|
+
interface ReactNativeGlobalSelector {
|
|
14
|
+
type: "rootVariables" | "universalVariables";
|
|
15
|
+
}
|
|
16
|
+
type PartialSelector = Partial<ReactNativeClassNameSelector> & {
|
|
17
|
+
type: "className";
|
|
18
|
+
specificity: SpecificityArray;
|
|
19
|
+
};
|
|
20
|
+
export declare function getClassNameSelectors(selectors: SelectorList, options?: CompilerOptions, specificity?: SpecificityArray, root?: PartialSelector): (ReactNativeGlobalSelector | PartialSelector)[];
|
|
21
|
+
export declare function toRNProperty<T extends string>(str: T): CamelCase<T>;
|
|
22
|
+
type CamelCase<S extends string> = S extends `${infer P1}-${infer P2}${infer P3}` ? `${Lowercase<P1>}${Uppercase<P2>}${CamelCase<P3>}` : Lowercase<S>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=selector-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selector-builder.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/selector-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA2B,YAAY,EAAE,MAAM,cAAc,CAAC;AAG1E,OAAO,KAAK,EACV,cAAc,EAEd,eAAe,EACf,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAE1B,UAAU,4BAA4B;IACpC,IAAI,EAAE,WAAW,CAAC;IAClB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,cAAc,EAAE,CAAC;IAC9B,cAAc,CAAC,EAAE,cAAc,EAAE,CAAC;IAClC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,cAAc,CAAC,EAAE,cAAc,EAAE,CAAC;IAClC,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC/B;AAED,UAAU,yBAAyB;IACjC,IAAI,EAAE,eAAe,GAAG,oBAAoB,CAAC;CAC9C;AAED,KAAK,eAAe,GAAG,OAAO,CAAC,4BAA4B,CAAC,GAAG;IAC7D,IAAI,EAAE,WAAW,CAAC;IAClB,WAAW,EAAE,gBAAgB,CAAC;CAC/B,CAAC;AAYF,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,YAAY,EACvB,OAAO,GAAE,eAAoB,EAC7B,WAAW,GAAE,gBAAsB,EACnC,IAAI,GAAE,eAGL,mDAyBF;AA4eD,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC,GAGI,SAAS,CAAC,CAAC,CAAC,CACpE;AAED,KAAK,SAAS,CAAC,CAAC,SAAS,MAAM,IAC7B,CAAC,SAAS,GAAG,MAAM,EAAE,IAAI,MAAM,EAAE,GAAG,MAAM,EAAE,EAAE,GAC1C,GAAG,SAAS,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE,GAClD,SAAS,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { SelectorList } from "lightningcss";
|
|
2
|
-
import type { AttributeQuery,
|
|
2
|
+
import type { AttributeQuery, ContainerQuery, MediaCondition, PseudoClassesQuery, SpecificityArray } from "./compiler.types";
|
|
3
|
+
import { StylesheetBuilder } from "./stylesheet";
|
|
3
4
|
export type NormalizeSelector = ClassNameSelector | {
|
|
4
5
|
type: "rootVariables" | "universalVariables";
|
|
5
6
|
subtype: "light" | "dark";
|
|
@@ -16,7 +17,7 @@ type ClassNameSelector = {
|
|
|
16
17
|
/**
|
|
17
18
|
* Turns a CSS selector into a `react-native-css` selector.
|
|
18
19
|
*/
|
|
19
|
-
export declare function getSelectors(selectorList: SelectorList, isDarkMode: boolean,
|
|
20
|
+
export declare function getSelectors(selectorList: SelectorList, isDarkMode: boolean, builder: StylesheetBuilder, selectors?: NormalizeSelector[]): NormalizeSelector[];
|
|
20
21
|
export declare function toRNProperty<T extends string>(str: T): CamelCase<T>;
|
|
21
22
|
type CamelCase<S extends string> = S extends `${infer P1}-${infer P2}${infer P3}` ? `${Lowercase<P1>}${Uppercase<P2>}${CamelCase<P3>}` : Lowercase<S>;
|
|
22
23
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/selectors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAY,YAAY,EAAE,MAAM,cAAc,CAAC;AAG3D,OAAO,KAAK,EACV,cAAc,
|
|
1
|
+
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/selectors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAY,YAAY,EAAE,MAAM,cAAc,CAAC;AAG3D,OAAO,KAAK,EACV,cAAc,EAGd,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,MAAM,iBAAiB,GACzB,iBAAiB,GACjB;IACE,IAAI,EAAE,eAAe,GAAG,oBAAoB,CAAC;IAC7C,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3B,CAAC;AAEN,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,WAAW,CAAC;IAClB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,cAAc,EAAE,CAAC;IAC9B,cAAc,CAAC,EAAE,cAAc,EAAE,CAAC;IAClC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,cAAc,CAAC,EAAE,cAAc,EAAE,CAAC;CACnC,CAAC;AAEF;;GAEG;AACH,wBAAgB,YAAY,CAC1B,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,OAAO,EACnB,OAAO,EAAE,iBAAiB,EAC1B,SAAS,GAAE,iBAAiB,EAAO,uBAqFpC;AAmXD,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC,GAGF,SAAS,CAAC,CAAC,CAAC,CAC9D;AAED,KAAK,SAAS,CAAC,CAAC,SAAS,MAAM,IAC7B,CAAC,SAAS,GAAG,MAAM,EAAE,IAAI,MAAM,EAAE,GAAG,MAAM,EAAE,EAAE,GAC1C,GAAG,SAAS,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE,GAClD,SAAS,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
1
|
+
import type { SelectorList } from "lightningcss";
|
|
2
|
+
import type { AnimationKeyframes, AnimationRecord, CompilerOptions, ContainerQuery, MediaCondition, ReactNativeCssStyleSheet, StyleDeclaration, StyleDescriptor, StyleRule, StyleRuleMapping, StyleRuleSet, VariableRecord } from "./compiler.types";
|
|
3
3
|
type BuilderMode = "style" | "media" | "container" | "keyframes";
|
|
4
4
|
export declare class StylesheetBuilder {
|
|
5
5
|
private options;
|
|
@@ -8,8 +8,8 @@ export declare class StylesheetBuilder {
|
|
|
8
8
|
private mapping;
|
|
9
9
|
descriptorProperty?: string | undefined;
|
|
10
10
|
private shared;
|
|
11
|
-
private selectors
|
|
12
|
-
animationFrames?:
|
|
11
|
+
private selectors;
|
|
12
|
+
animationFrames?: AnimationKeyframes[];
|
|
13
13
|
animationDeclarations: StyleDeclaration[];
|
|
14
14
|
stylesheet: ReactNativeCssStyleSheet;
|
|
15
15
|
varUsage: Set<string>;
|
|
@@ -25,8 +25,8 @@ export declare class StylesheetBuilder {
|
|
|
25
25
|
warningProperties: string[];
|
|
26
26
|
warningValues: Record<string, unknown[]>;
|
|
27
27
|
warningFunctions: string[];
|
|
28
|
-
}, selectors?:
|
|
29
|
-
fork(mode?: BuilderMode, selectors?:
|
|
28
|
+
}, selectors?: SelectorList);
|
|
29
|
+
fork(mode?: BuilderMode, selectors?: SelectorList): StylesheetBuilder;
|
|
30
30
|
cloneRule({ ...rule }?: StyleRule): StyleRule;
|
|
31
31
|
private createRuleFromPartial;
|
|
32
32
|
extendRule(rule: Partial<StyleRule>): StyleRule;
|
|
@@ -59,7 +59,7 @@ export declare class StylesheetBuilder {
|
|
|
59
59
|
addDescriptor(property: string, value: StyleDescriptor, forceTuple?: boolean, rule?: StyleRule): void;
|
|
60
60
|
addShorthand(property: string, options: Record<string, StyleDescriptor>): void;
|
|
61
61
|
private pushDescriptor;
|
|
62
|
-
applyRuleToSelectors(selectorList?:
|
|
62
|
+
applyRuleToSelectors(selectorList?: SelectorList): void;
|
|
63
63
|
addContainerQuery(query: ContainerQuery): void;
|
|
64
64
|
newAnimationFrames(name: string): void;
|
|
65
65
|
newAnimationFrame(progress: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stylesheet.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/stylesheet.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stylesheet.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/stylesheet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAOjD,OAAO,KAAK,EACV,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,cAAc,EACd,cAAc,EACd,wBAAwB,EACxB,gBAAgB,EAChB,eAAe,EAEf,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,cAAc,EAEf,MAAM,kBAAkB,CAAC;AAO1B,KAAK,WAAW,GAAG,OAAO,GAAG,OAAO,GAAG,WAAW,GAAG,WAAW,CAAC;AAWjE,qBAAa,iBAAiB;IAa1B,OAAO,CAAC,OAAO;IACR,IAAI,EAAE,WAAW;IACx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