react-native-css 3.0.0-preview.3 → 3.0.0-preview.5
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 +30 -16
- package/dist/commonjs/compiler/atRules.js.map +1 -1
- package/dist/commonjs/compiler/compiler.js +29 -19
- package/dist/commonjs/compiler/compiler.js.map +1 -1
- package/dist/commonjs/compiler/declarations.js +10 -10
- package/dist/commonjs/compiler/declarations.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/lightningcss-loader.js +40 -0
- package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -0
- package/dist/commonjs/compiler/selector-builder.js +3 -2
- package/dist/commonjs/compiler/selector-builder.js.map +1 -1
- package/dist/commonjs/compiler/stylesheet.js +5 -7
- package/dist/commonjs/compiler/stylesheet.js.map +1 -1
- package/dist/commonjs/components/ActivityIndicator.js.map +1 -1
- package/dist/commonjs/components/Button.js.map +1 -1
- package/dist/commonjs/components/FlatList.js +4 -3
- package/dist/commonjs/components/FlatList.js.map +1 -1
- package/dist/commonjs/components/Image.js.map +1 -1
- package/dist/commonjs/components/ImageBackground.js +22 -0
- package/dist/commonjs/components/ImageBackground.js.map +1 -0
- package/dist/commonjs/components/KeyboardAvoidingView.js +19 -0
- package/dist/commonjs/components/KeyboardAvoidingView.js.map +1 -0
- package/dist/commonjs/components/Pressable.js +17 -0
- package/dist/commonjs/components/Pressable.js.map +1 -0
- package/dist/commonjs/components/ScrollView.js +18 -0
- package/dist/commonjs/components/ScrollView.js.map +1 -0
- package/dist/commonjs/components/TextInput.js +6 -1
- package/dist/commonjs/components/TextInput.js.map +1 -1
- package/dist/commonjs/components/TouchableHighlight.js +17 -0
- package/dist/commonjs/components/TouchableHighlight.js.map +1 -0
- package/dist/commonjs/components/TouchableOpacity.js +17 -0
- package/dist/commonjs/components/TouchableOpacity.js.map +1 -0
- package/dist/commonjs/components/TouchableWithoutFeedback.js +17 -0
- package/dist/commonjs/components/TouchableWithoutFeedback.js.map +1 -0
- package/dist/commonjs/components/VirtualizedList.js +20 -0
- package/dist/commonjs/components/VirtualizedList.js.map +1 -0
- package/dist/commonjs/components/index.cjs +265 -0
- package/dist/commonjs/components/index.cjs.map +1 -0
- package/dist/commonjs/components/index.js +65 -1
- package/dist/commonjs/components/index.js.map +1 -1
- package/dist/commonjs/index.js +0 -11
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/jest/index.js +1 -1
- package/dist/commonjs/jest/index.js.map +1 -1
- package/dist/commonjs/metro/index.js +7 -117
- package/dist/commonjs/metro/index.js.map +1 -1
- package/dist/commonjs/metro/metro-transformer.js +8 -1
- package/dist/commonjs/metro/metro-transformer.js.map +1 -1
- package/dist/commonjs/{native/metro.js → metro/override.js} +1 -1
- package/dist/commonjs/{native/metro.js.map → metro/override.js.map} +1 -1
- package/dist/commonjs/metro/resolver.js +11 -20
- package/dist/commonjs/metro/resolver.js.map +1 -1
- package/dist/commonjs/native/index.js +8 -8
- package/dist/commonjs/native/index.js.map +1 -1
- package/dist/commonjs/{poison.pill.js → native/react-native-css-metro-override.js} +1 -1
- package/dist/commonjs/native/react-native-css-metro-override.js.map +1 -0
- package/dist/commonjs/native/styles/calculate-props.js +1 -1
- package/dist/commonjs/native/styles/resolve.js +0 -1
- package/dist/commonjs/native/styles/resolve.js.map +1 -1
- package/dist/commonjs/native/styles/shorthands/animation.js +6 -2
- package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -1
- package/dist/module/compiler/atRules.js +30 -16
- package/dist/module/compiler/atRules.js.map +1 -1
- package/dist/module/compiler/compiler.js +25 -15
- package/dist/module/compiler/compiler.js.map +1 -1
- package/dist/module/compiler/declarations.js +10 -10
- package/dist/module/compiler/declarations.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/lightningcss-loader.js +36 -0
- package/dist/module/compiler/lightningcss-loader.js.map +1 -0
- package/dist/module/compiler/selector-builder.js +3 -2
- package/dist/module/compiler/selector-builder.js.map +1 -1
- package/dist/module/compiler/stylesheet.js +5 -7
- package/dist/module/compiler/stylesheet.js.map +1 -1
- package/dist/module/components/ActivityIndicator.js.map +1 -1
- package/dist/module/components/Button.js.map +1 -1
- package/dist/module/components/FlatList.js +4 -3
- package/dist/module/components/FlatList.js.map +1 -1
- package/dist/module/components/Image.js.map +1 -1
- package/dist/module/components/ImageBackground.js +17 -0
- package/dist/module/components/ImageBackground.js.map +1 -0
- package/dist/module/components/KeyboardAvoidingView.js +14 -0
- package/dist/module/components/KeyboardAvoidingView.js.map +1 -0
- package/dist/module/components/Pressable.js +12 -0
- package/dist/module/components/Pressable.js.map +1 -0
- package/dist/module/components/ScrollView.js +13 -0
- package/dist/module/components/ScrollView.js.map +1 -0
- package/dist/module/components/TextInput.js +6 -1
- package/dist/module/components/TextInput.js.map +1 -1
- package/dist/module/components/TouchableHighlight.js +12 -0
- package/dist/module/components/TouchableHighlight.js.map +1 -0
- package/dist/module/components/TouchableOpacity.js +12 -0
- package/dist/module/components/TouchableOpacity.js.map +1 -0
- package/dist/module/components/TouchableWithoutFeedback.js +12 -0
- package/dist/module/components/TouchableWithoutFeedback.js.map +1 -0
- package/dist/module/components/VirtualizedList.js +15 -0
- package/dist/module/components/VirtualizedList.js.map +1 -0
- package/dist/module/components/index.cjs +265 -0
- package/dist/module/components/index.cjs.map +1 -0
- package/dist/module/components/index.js +8 -0
- package/dist/module/components/index.js.map +1 -1
- package/dist/module/index.js +0 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/jest/index.js +1 -1
- package/dist/module/jest/index.js.map +1 -1
- package/dist/module/metro/index.js +7 -116
- package/dist/module/metro/index.js.map +1 -1
- package/dist/module/metro/metro-transformer.js +8 -1
- package/dist/module/metro/metro-transformer.js.map +1 -1
- package/dist/module/metro/override.js +4 -0
- package/dist/module/{native/metro.js.map → metro/override.js.map} +1 -1
- package/dist/module/metro/resolver.js +11 -20
- package/dist/module/metro/resolver.js.map +1 -1
- package/dist/module/native/index.js +1 -1
- package/dist/module/native/index.js.map +1 -1
- package/dist/module/{poison.pill.js → native/react-native-css-metro-override.js} +1 -1
- package/dist/module/native/react-native-css-metro-override.js.map +1 -0
- package/dist/module/native/styles/calculate-props.js +1 -1
- package/dist/module/native/styles/resolve.js +0 -1
- package/dist/module/native/styles/resolve.js.map +1 -1
- package/dist/module/native/styles/shorthands/animation.js +4 -1
- package/dist/module/native/styles/shorthands/animation.js.map +1 -1
- package/dist/typescript/commonjs/.config/eslint.config.d.mts +3 -0
- package/dist/typescript/commonjs/.config/eslint.config.d.mts.map +1 -0
- package/dist/typescript/commonjs/eslint.config.d.mts +2 -0
- package/dist/typescript/commonjs/eslint.config.d.mts.map +1 -0
- package/dist/typescript/commonjs/example/app.config.d.ts.map +1 -1
- package/dist/typescript/commonjs/example/index.d.ts +2 -0
- package/dist/typescript/commonjs/example/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/example/metro.config.d.ts +3 -0
- package/dist/typescript/commonjs/example/metro.config.d.ts.map +1 -0
- package/dist/typescript/commonjs/example/postcss.config.d.mts +7 -0
- package/dist/typescript/commonjs/example/postcss.config.d.mts.map +1 -0
- package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts +1 -1
- package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +1 -1
- package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts +30 -0
- package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +2 -1
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +3 -10
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Button.d.ts +3 -10
- package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/FlatList.d.ts +3 -7
- package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Image.d.ts +3 -5
- package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/Pressable.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/ScrollView.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/TextInput.d.ts +3 -5
- package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/index.d.cts +2 -0
- package/dist/typescript/commonjs/src/components/index.d.cts.map +1 -0
- package/dist/typescript/commonjs/src/components/index.d.ts +8 -0
- package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/index.d.ts +0 -1
- package/dist/typescript/commonjs/src/index.d.ts.map +1 -1
- 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/metro-transformer.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/override.d.ts +2 -0
- package/dist/typescript/commonjs/src/metro/override.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/index.d.ts +1 -1
- package/dist/typescript/commonjs/src/native/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts +2 -0
- package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/resolve.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts.map +1 -1
- package/dist/typescript/module/.config/eslint.config.d.mts +3 -0
- package/dist/typescript/module/.config/eslint.config.d.mts.map +1 -0
- package/dist/typescript/module/eslint.config.d.mts +2 -0
- package/dist/typescript/module/eslint.config.d.mts.map +1 -0
- package/dist/typescript/module/example/app.config.d.ts.map +1 -1
- package/dist/typescript/module/example/index.d.ts +2 -0
- package/dist/typescript/module/example/index.d.ts.map +1 -0
- package/dist/typescript/module/example/metro.config.d.ts +3 -0
- package/dist/typescript/module/example/metro.config.d.ts.map +1 -0
- package/dist/typescript/module/example/postcss.config.d.mts +7 -0
- package/dist/typescript/module/example/postcss.config.d.mts.map +1 -0
- package/dist/typescript/module/example/src/App.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/declarations.d.ts +1 -1
- package/dist/typescript/module/src/compiler/keyframes.d.ts +1 -1
- package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts +30 -0
- package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/stylesheet.d.ts +2 -1
- package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts +3 -10
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Button.d.ts +3 -10
- package/dist/typescript/module/src/components/Button.d.ts.map +1 -1
- package/dist/typescript/module/src/components/FlatList.d.ts +3 -7
- package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Image.d.ts +3 -5
- package/dist/typescript/module/src/components/Image.d.ts.map +1 -1
- package/dist/typescript/module/src/components/ImageBackground.d.ts +6 -0
- package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -0
- package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +6 -0
- package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -0
- package/dist/typescript/module/src/components/Pressable.d.ts +6 -0
- package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -0
- package/dist/typescript/module/src/components/ScrollView.d.ts +6 -0
- package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -0
- package/dist/typescript/module/src/components/TextInput.d.ts +3 -5
- package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -1
- package/dist/typescript/module/src/components/TouchableHighlight.d.ts +6 -0
- package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -0
- package/dist/typescript/module/src/components/TouchableOpacity.d.ts +6 -0
- package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -0
- package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +6 -0
- package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
- package/dist/typescript/module/src/components/VirtualizedList.d.ts +6 -0
- package/dist/typescript/module/src/components/VirtualizedList.d.ts.map +1 -0
- package/dist/typescript/module/src/components/index.d.cts +2 -0
- package/dist/typescript/module/src/components/index.d.cts.map +1 -0
- package/dist/typescript/module/src/components/index.d.ts +8 -0
- package/dist/typescript/module/src/components/index.d.ts.map +1 -1
- package/dist/typescript/module/src/index.d.ts +0 -1
- package/dist/typescript/module/src/index.d.ts.map +1 -1
- 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/metro-transformer.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/override.d.ts +2 -0
- package/dist/typescript/module/src/metro/override.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -1
- package/dist/typescript/module/src/native/index.d.ts +1 -1
- package/dist/typescript/module/src/native/index.d.ts.map +1 -1
- package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts +2 -0
- package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -1
- package/package.json +14 -16
- package/src/compiler/atRules.ts +30 -17
- package/src/compiler/compiler.ts +27 -16
- package/src/compiler/declarations.ts +10 -10
- package/src/compiler/keyframes.ts +2 -2
- package/src/compiler/lightningcss-loader.ts +40 -0
- package/src/compiler/selector-builder.ts +6 -2
- package/src/compiler/stylesheet.ts +5 -7
- package/src/components/ActivityIndicator.tsx +2 -2
- package/src/components/Button.tsx +2 -2
- package/src/components/FlatList.tsx +6 -5
- package/src/components/Image.tsx +2 -2
- package/src/components/ImageBackground.tsx +27 -0
- package/src/components/KeyboardAvoidingView.tsx +24 -0
- package/src/components/Pressable.tsx +17 -0
- package/src/components/ScrollView.tsx +20 -0
- package/src/components/TextInput.tsx +8 -3
- package/src/components/TouchableHighlight.tsx +22 -0
- package/src/components/TouchableOpacity.tsx +22 -0
- package/src/components/TouchableWithoutFeedback.tsx +22 -0
- package/src/components/VirtualizedList.tsx +25 -0
- package/src/components/index.cts +263 -0
- package/src/components/index.ts +17 -0
- package/src/index.ts +0 -2
- package/src/jest/index.ts +2 -1
- package/src/metro/index.ts +7 -165
- package/src/metro/metro-transformer.ts +15 -1
- package/src/metro/override.ts +1 -0
- package/src/metro/resolver.ts +20 -26
- package/src/native/index.ts +1 -2
- package/src/native/styles/calculate-props.ts +1 -1
- package/src/native/styles/resolve.ts +0 -1
- package/src/native/styles/shorthands/animation.ts +10 -2
- package/dist/commonjs/poison.pill.js.map +0 -1
- package/dist/commonjs/runtime/native/injection.js +0 -2
- package/dist/commonjs/runtime/native/injection.js.map +0 -1
- package/dist/module/native/metro.js +0 -5
- package/dist/module/poison.pill.js.map +0 -1
- package/dist/module/runtime/native/injection.js +0 -2
- package/dist/module/runtime/native/injection.js.map +0 -1
- package/dist/typescript/commonjs/src/native/metro.d.ts +0 -2
- package/dist/typescript/commonjs/src/native/metro.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/poison.pill.d.ts +0 -2
- package/dist/typescript/commonjs/src/poison.pill.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/injection.d.ts +0 -1
- package/dist/typescript/commonjs/src/runtime/native/injection.d.ts.map +0 -1
- package/dist/typescript/module/src/native/metro.d.ts +0 -2
- package/dist/typescript/module/src/native/metro.d.ts.map +0 -1
- package/dist/typescript/module/src/poison.pill.d.ts +0 -2
- package/dist/typescript/module/src/poison.pill.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/injection.d.ts +0 -1
- package/dist/typescript/module/src/runtime/native/injection.d.ts.map +0 -1
- package/src/components/index.tsx +0 -10
- package/src/native/metro.ts +0 -2
- package/src/runtime/native/injection.ts +0 -0
- /package/src/{poison.pill.ts → native/react-native-css-metro-override.ts} +0 -0
|
@@ -12,7 +12,7 @@ beforeEach(() => {
|
|
|
12
12
|
Appearance.setColorScheme(null);
|
|
13
13
|
colorScheme.set(null);
|
|
14
14
|
});
|
|
15
|
-
const debugDefault = Boolean(process.env.REACT_NATIVE_CSS_TEST_DEBUG && process.env.NODE_OPTIONS
|
|
15
|
+
const debugDefault = Boolean(process.env.REACT_NATIVE_CSS_TEST_DEBUG && typeof process.env.NODE_OPTIONS === "string" && process.env.NODE_OPTIONS.includes("--inspect"));
|
|
16
16
|
export function registerCSS(css, options = {}) {
|
|
17
17
|
const {
|
|
18
18
|
debug = debugDefault
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Appearance","Dimensions","inspect","compile","StyleCollection","colorScheme","dimensions","testID","beforeEach","styles","clear","set","get","setColorScheme","debugDefault","Boolean","process","env","REACT_NATIVE_CSS_TEST_DEBUG","NODE_OPTIONS","includes","registerCSS","css","options","debug","compiled","compileWithAutoDebug","console","log","stylesheet","warnings","depth","colors","compact","inject","logger","text","startsWith","undefined"],"sourceRoot":"../../../src","sources":["jest/index.ts"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,UAAU,QAAQ,cAAc;AAErD,SAASC,OAAO,QAAQ,WAAW;AAEnC,SAASC,OAAO,QAA8B,2BAA2B;AACzE,SAASC,eAAe,QAAQ,yBAAyB;AAEzD,SAASC,WAAW,EAAEC,UAAU,QAAQ,yBAAsB;AAW9D,OAAO,MAAMC,MAAM,GAAG,kBAAkB;AAExCC,UAAU,CAAC,MAAM;EACfJ,eAAe,CAACK,MAAM,CAACC,KAAK,CAAC,CAAC;EAC9BJ,UAAU,CAACK,GAAG,CAACV,UAAU,CAACW,GAAG,CAAC,QAAQ,CAAC,CAAC;EACxCZ,UAAU,CAACa,cAAc,CAAC,IAAI,CAAC;EAC/BR,WAAW,CAACM,GAAG,CAAC,IAAI,CAAC;AACvB,CAAC,CAAC;AAEF,MAAMG,YAAY,GAAGC,OAAO,CAC1BC,OAAO,CAACC,GAAG,CAACC,2BAA2B,
|
|
1
|
+
{"version":3,"names":["Appearance","Dimensions","inspect","compile","StyleCollection","colorScheme","dimensions","testID","beforeEach","styles","clear","set","get","setColorScheme","debugDefault","Boolean","process","env","REACT_NATIVE_CSS_TEST_DEBUG","NODE_OPTIONS","includes","registerCSS","css","options","debug","compiled","compileWithAutoDebug","console","log","stylesheet","warnings","depth","colors","compact","inject","logger","text","startsWith","undefined"],"sourceRoot":"../../../src","sources":["jest/index.ts"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,UAAU,QAAQ,cAAc;AAErD,SAASC,OAAO,QAAQ,WAAW;AAEnC,SAASC,OAAO,QAA8B,2BAA2B;AACzE,SAASC,eAAe,QAAQ,yBAAyB;AAEzD,SAASC,WAAW,EAAEC,UAAU,QAAQ,yBAAsB;AAW9D,OAAO,MAAMC,MAAM,GAAG,kBAAkB;AAExCC,UAAU,CAAC,MAAM;EACfJ,eAAe,CAACK,MAAM,CAACC,KAAK,CAAC,CAAC;EAC9BJ,UAAU,CAACK,GAAG,CAACV,UAAU,CAACW,GAAG,CAAC,QAAQ,CAAC,CAAC;EACxCZ,UAAU,CAACa,cAAc,CAAC,IAAI,CAAC;EAC/BR,WAAW,CAACM,GAAG,CAAC,IAAI,CAAC;AACvB,CAAC,CAAC;AAEF,MAAMG,YAAY,GAAGC,OAAO,CAC1BC,OAAO,CAACC,GAAG,CAACC,2BAA2B,IACrC,OAAOF,OAAO,CAACC,GAAG,CAACE,YAAY,KAAK,QAAQ,IAC5CH,OAAO,CAACC,GAAG,CAACE,YAAY,CAACC,QAAQ,CAAC,WAAW,CACjD,CAAC;AAED,OAAO,SAASC,WAAWA,CACzBC,GAAW,EACXC,OAA8C,GAAG,CAAC,CAAC,EACnD;EACA,MAAM;IAAEC,KAAK,GAAGV;EAAa,CAAC,GAAGS,OAAO;EACxC,MAAME,QAAQ,GAAGC,oBAAoB,CAACJ,GAAG,EAAEC,OAAO,CAAC;EAEnD,IAAIC,KAAK,EAAE;IACTG,OAAO,CAACC,GAAG,CACT,mBAAmB1B,OAAO,CACxB;MACE2B,UAAU,EAAEJ,QAAQ,CAACI,UAAU,CAAC,CAAC;MACjCC,QAAQ,EAAEL,QAAQ,CAACK,QAAQ,CAAC;IAC9B,CAAC,EACD;MAAEC,KAAK,EAAE,IAAI;MAAEC,MAAM,EAAE,IAAI;MAAEC,OAAO,EAAE;IAAM,CAC9C,CAAC,EACH,CAAC;EACH;EAEA7B,eAAe,CAAC8B,MAAM,CAACT,QAAQ,CAACI,UAAU,CAAC,CAAC,CAAC;EAE7C,OAAOJ,QAAQ;AACjB;AAEA,OAAO,SAASC,oBAAoBA,CAClCJ,GAAW,EACX;EACEE,KAAK,GAAGV,YAAY;EACpB,GAAGS;AAC8C,CAAC,GAAG,CAAC,CAAC,EACzD;EACA,MAAMY,MAAM,GAAGX,KAAK,GACfY,IAAY,IAAK;IAChB;IACA,IAAIA,IAAI,CAACC,UAAU,CAAC,GAAG,CAAC,IAAIb,KAAK,KAAK,SAAS,EAAE;MAC/CG,OAAO,CAACC,GAAG,CAAC,gBAAgBQ,IAAI,EAAE,CAAC;IACrC;EACF,CAAC,GACDE,SAAS;EAEb,OAAOnC,OAAO,CAACmB,GAAG,EAAE;IAAE,GAAGC,OAAO;IAAEY;EAAO,CAAC,CAAC;AAC7C","ignoreList":[]}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import { dirname, relative, sep } from "node:path";
|
|
5
4
|
import { versions } from "node:process";
|
|
6
|
-
import debug from "debug";
|
|
7
|
-
import { compile } from "../compiler/index.js";
|
|
8
|
-
import { getNativeInjectionCode, getWebInjectionCode } from "./injection-code.js";
|
|
9
5
|
import { nativeResolver, webResolver } from "./resolver.js";
|
|
10
6
|
import { setupTypeScript } from "./typescript.js";
|
|
11
|
-
const
|
|
7
|
+
const metroOverrideResolution = {
|
|
8
|
+
type: "sourceFile",
|
|
9
|
+
filePath: require.resolve("./override")
|
|
10
|
+
};
|
|
12
11
|
export function withReactNativeCSS(config, options) {
|
|
13
12
|
if (typeof config === "function") {
|
|
14
13
|
return async () => {
|
|
@@ -21,10 +20,8 @@ export function withReactNativeCSS(config, options) {
|
|
|
21
20
|
const {
|
|
22
21
|
disableTypeScriptGeneration,
|
|
23
22
|
typescriptEnvPath,
|
|
24
|
-
globalClassNamePolyfill = false
|
|
25
|
-
logger = defaultLogger
|
|
23
|
+
globalClassNamePolyfill = false
|
|
26
24
|
} = options || {};
|
|
27
|
-
const loggerEnabled = "enabled" in logger ? logger.enabled : true;
|
|
28
25
|
if (disableTypeScriptGeneration !== true) {
|
|
29
26
|
setupTypeScript(typescriptEnvPath);
|
|
30
27
|
}
|
|
@@ -39,10 +36,8 @@ export function withReactNativeCSS(config, options) {
|
|
|
39
36
|
...config.resolver,
|
|
40
37
|
sourceExts: [...(config?.resolver?.sourceExts || []), "css"],
|
|
41
38
|
resolveRequest: (context, moduleName, platform) => {
|
|
42
|
-
if (moduleName.includes("
|
|
43
|
-
return
|
|
44
|
-
type: "empty"
|
|
45
|
-
};
|
|
39
|
+
if (moduleName.includes("react-native-css-metro-override")) {
|
|
40
|
+
return metroOverrideResolution;
|
|
46
41
|
}
|
|
47
42
|
const parentResolver = config.resolver?.resolveRequest ?? context.resolveRequest;
|
|
48
43
|
|
|
@@ -54,110 +49,6 @@ export function withReactNativeCSS(config, options) {
|
|
|
54
49
|
const resolved = resolver(parentResolver, context, moduleName, platform);
|
|
55
50
|
return resolved;
|
|
56
51
|
}
|
|
57
|
-
},
|
|
58
|
-
server: {
|
|
59
|
-
...config.server,
|
|
60
|
-
enhanceMiddleware(metroMiddleware, metroServer) {
|
|
61
|
-
const bundler = metroServer.getBundler().getBundler();
|
|
62
|
-
if (!bundler.__react_native_css__patched) {
|
|
63
|
-
bundler.__react_native_css__patched = true;
|
|
64
|
-
const nativeCSSFiles = new Map();
|
|
65
|
-
const webCSSFiles = new Set();
|
|
66
|
-
const nativeInjectionPath = require.resolve("../native/metro");
|
|
67
|
-
const nativeInjectionFilepaths = [
|
|
68
|
-
// CommonJS
|
|
69
|
-
nativeInjectionPath,
|
|
70
|
-
// ES Module
|
|
71
|
-
nativeInjectionPath.replace(`dist${sep}commonjs`, `dist${sep}module`),
|
|
72
|
-
// TypeScript
|
|
73
|
-
nativeInjectionPath.replace(`dist${sep}commonjs`, `src`).replace(".js", ".ts")];
|
|
74
|
-
const webInjectionPath = require.resolve("../web/metro");
|
|
75
|
-
const webInjectionFilepaths = [
|
|
76
|
-
// CommonJS
|
|
77
|
-
webInjectionPath,
|
|
78
|
-
// ES Module
|
|
79
|
-
webInjectionPath.replace(`dist${sep}commonjs`, `dist${sep}module`),
|
|
80
|
-
// TypeScript
|
|
81
|
-
webInjectionPath.replace(`dist${sep}commonjs`, `src`).replace(".js", ".ts")];
|
|
82
|
-
|
|
83
|
-
// Keep the original
|
|
84
|
-
const transformFile = bundler.transformFile.bind(bundler);
|
|
85
|
-
const watcher = bundler.getWatcher();
|
|
86
|
-
|
|
87
|
-
// Patch with our functionality
|
|
88
|
-
bundler.transformFile = async function (filePath, transformOptions, fileBuffer) {
|
|
89
|
-
const isCss = /\.(s?css|sass)$/.test(filePath);
|
|
90
|
-
if (transformOptions.platform === "web") {
|
|
91
|
-
if (isCss) {
|
|
92
|
-
webCSSFiles.add(filePath);
|
|
93
|
-
} else if (webInjectionFilepaths.includes(filePath)) {
|
|
94
|
-
fileBuffer = getWebInjectionCode(Array.from(webCSSFiles));
|
|
95
|
-
}
|
|
96
|
-
return transformFile(filePath, transformOptions, fileBuffer);
|
|
97
|
-
} else {
|
|
98
|
-
// Handle CSS files on native platforms
|
|
99
|
-
if (isCss) {
|
|
100
|
-
const webTransform = await transformFile(filePath, {
|
|
101
|
-
...transformOptions,
|
|
102
|
-
// Force the platform to web for CSS files
|
|
103
|
-
platform: "web",
|
|
104
|
-
// Let the transformer know that we will handle compilation
|
|
105
|
-
customTransformOptions: {
|
|
106
|
-
...transformOptions.customTransformOptions,
|
|
107
|
-
reactNativeCSS: options
|
|
108
|
-
}
|
|
109
|
-
}, fileBuffer);
|
|
110
|
-
const lastTransform = nativeCSSFiles.get(filePath);
|
|
111
|
-
const last = lastTransform?.[0];
|
|
112
|
-
const next = webTransform.output[0].data.css.code.toString();
|
|
113
|
-
|
|
114
|
-
// The CSS file has changed, we need to recompile the injection file
|
|
115
|
-
if (next !== last) {
|
|
116
|
-
nativeCSSFiles.set(filePath, [next, compile(next, {
|
|
117
|
-
hexColors: options?.hexColors
|
|
118
|
-
}).stylesheet()]);
|
|
119
|
-
watcher.emit("change", {
|
|
120
|
-
eventsQueue: nativeInjectionFilepaths.map(filePath => ({
|
|
121
|
-
filePath,
|
|
122
|
-
metadata: {
|
|
123
|
-
modifiedTime: Date.now(),
|
|
124
|
-
size: 1,
|
|
125
|
-
// Can be anything
|
|
126
|
-
type: "virtual" // Can be anything
|
|
127
|
-
},
|
|
128
|
-
type: "change"
|
|
129
|
-
}))
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
const nativeTransform = await transformFile(filePath, transformOptions, fileBuffer);
|
|
133
|
-
|
|
134
|
-
// Tell Expo to skip caching this file
|
|
135
|
-
nativeTransform.output[0].data.css = {
|
|
136
|
-
skipCache: true,
|
|
137
|
-
// Expo requires a `code` property
|
|
138
|
-
code: ""
|
|
139
|
-
};
|
|
140
|
-
return nativeTransform;
|
|
141
|
-
} else if (nativeInjectionFilepaths.includes(filePath)) {
|
|
142
|
-
// If this is the injection file, we to swap its content with the
|
|
143
|
-
// compiled CSS files
|
|
144
|
-
fileBuffer = getNativeInjectionCode(Array.from(nativeCSSFiles.keys()).map(key => relative(dirname(filePath), key)), Array.from(nativeCSSFiles.values()).map(([, value]) => value));
|
|
145
|
-
if (loggerEnabled && fileBuffer) {
|
|
146
|
-
logger(`Transformed ${filePath}`);
|
|
147
|
-
logger(fileBuffer?.toString());
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
return transformFile(filePath, transformOptions, fileBuffer);
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* We don't modify the middleware, we just use this function to get the metroServer
|
|
157
|
-
* So simply return the existing middleware
|
|
158
|
-
*/
|
|
159
|
-
return config.server?.enhanceMiddleware?.(metroMiddleware, metroServer) ?? metroMiddleware;
|
|
160
|
-
}
|
|
161
52
|
}
|
|
162
53
|
};
|
|
163
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["versions","nativeResolver","webResolver","setupTypeScript","metroOverrideResolution","type","filePath","require","resolve","withReactNativeCSS","config","options","Number","node","split","Error","disableTypeScriptGeneration","typescriptEnvPath","globalClassNamePolyfill","transformerPath","transformer","reactNativeCSS","resolver","sourceExts","resolveRequest","context","moduleName","platform","includes","parentResolver","resolved"],"sourceRoot":"../../../src","sources":["metro/index.ts"],"mappings":";;AAAA;AACA,SAASA,QAAQ,QAAQ,cAAc;AAKvC,SAASC,cAAc,EAAEC,WAAW,QAAQ,eAAY;AACxD,SAASC,eAAe,QAAQ,iBAAc;AAY9C,MAAMC,uBAAuB,GAAG;EAC9BC,IAAI,EAAE,YAAY;EAClBC,QAAQ,EAAEC,OAAO,CAACC,OAAO,CAAC,YAAY;AACxC,CAAC;AAED,OAAO,SAASC,kBAAkBA,CAEhCC,MAAS,EAAEC,OAAmC,EAAK;EACnD,IAAI,OAAOD,MAAM,KAAK,UAAU,EAAE;IAChC,OAAQ,YAAY;MAClB,OAAOD,kBAAkB,CAAC,MAAMC,MAAM,CAAC,CAAC,EAAEC,OAAO,CAAC;IACpD,CAAC;EACH;EAEA,IAAIC,MAAM,CAACZ,QAAQ,CAACa,IAAI,CAACC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC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
|
|
22
22
|
projectRoot: projectRoot
|
|
23
23
|
}).stylesheet();
|
|
24
24
|
data = Buffer.from(getNativeInjectionCode([], [productionJS]));
|
|
25
|
-
|
|
25
|
+
const transform = await worker.transform(config, projectRoot, `${filePath}.js`, data, options);
|
|
26
|
+
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
|
|
28
|
+
transform.output[0].data.css = {
|
|
29
|
+
skipCache: true,
|
|
30
|
+
code: ""
|
|
31
|
+
};
|
|
32
|
+
return transform;
|
|
26
33
|
}
|
|
27
34
|
//# sourceMappingURL=metro-transformer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["unstable_transformerPath","compile","getNativeInjectionCode","worker","require","transform","config","projectRoot","filePath","data","options","isCss","type","test","platform","cssFile","css","output","code","toString","productionJS","reactNativeCSS","filename","stylesheet","Buffer","from"],"sourceRoot":"../../../src","sources":["metro/metro-transformer.ts"],"mappings":";;AAAA,SAASA,wBAAwB,QAAQ,oBAAoB;AAO7D,SAASC,OAAO,QAA8B,sBAAa;AAC3D,SAASC,sBAAsB,QAAQ,qBAAkB;AAEzD,MAAMC,MAAM;AACV;AACAC,OAAO,CAACJ,wBAAwB,CAA4C;AAE9E,OAAO,eAAeK,SAASA,CAC7BC,MAA2B,EAC3BC,WAAmB,EACnBC,QAAgB,EAChBC,IAAY,EACZC,OAEC,EAC2B;EAC5B,MAAMC,KAAK,GAAGD,OAAO,CAACE,IAAI,KAAK,OAAO,IAAI,iBAAiB,CAACC,IAAI,CAACL,QAAQ,CAAC;EAE1E,IAAIE,OAAO,CAACI,QAAQ,KAAK,KAAK,IAAI,CAACH,KAAK,EAAE;IACxC,OAAOR,MAAM,CAACE,SAAS,CAACC,MAAM,EAAEC,WAAW,EAAEC,QAAQ,EAAEC,IAAI,EAAEC,OAAO,CAAC;EACvE;EAEA,MAAMK,OAAO,GAAI,MAAMZ,MAAM,CAACE,SAAS,CAACC,MAAM,EAAEC,WAAW,EAAEC,QAAQ,EAAEC,IAAI,EAAE;IAC3E,GAAGC,OAAO;IACVI,QAAQ,EAAE;EACZ,CAAC,CAEA;EAED,MAAME,GAAG,GAAGD,OAAO,CAACE,MAAM,CAAC,CAAC,CAAC,CAACR,IAAI,CAACO,GAAG,CAACE,IAAI,CAACC,QAAQ,CAAC,CAAC;EAEtD,MAAMC,YAAY,GAAGnB,OAAO,CAACe,GAAG,EAAE;IAChC,GAAGN,OAAO,CAACW,cAAc;IACzBC,QAAQ,EAAEd,QAAQ;IAClBD,WAAW,EAAEA;EACf,CAAC,CAAC,CAACgB,UAAU,CAAC,CAAC;EAEfd,IAAI,GAAGe,MAAM,CAACC,IAAI,CAACvB,sBAAsB,CAAC,EAAE,EAAE,CAACkB,YAAY,CAAC,CAAC,CAAC;EAE9D,
|
|
1
|
+
{"version":3,"names":["unstable_transformerPath","compile","getNativeInjectionCode","worker","require","transform","config","projectRoot","filePath","data","options","isCss","type","test","platform","cssFile","css","output","code","toString","productionJS","reactNativeCSS","filename","stylesheet","Buffer","from","skipCache"],"sourceRoot":"../../../src","sources":["metro/metro-transformer.ts"],"mappings":";;AAAA,SAASA,wBAAwB,QAAQ,oBAAoB;AAO7D,SAASC,OAAO,QAA8B,sBAAa;AAC3D,SAASC,sBAAsB,QAAQ,qBAAkB;AAEzD,MAAMC,MAAM;AACV;AACAC,OAAO,CAACJ,wBAAwB,CAA4C;AAE9E,OAAO,eAAeK,SAASA,CAC7BC,MAA2B,EAC3BC,WAAmB,EACnBC,QAAgB,EAChBC,IAAY,EACZC,OAEC,EAC2B;EAC5B,MAAMC,KAAK,GAAGD,OAAO,CAACE,IAAI,KAAK,OAAO,IAAI,iBAAiB,CAACC,IAAI,CAACL,QAAQ,CAAC;EAE1E,IAAIE,OAAO,CAACI,QAAQ,KAAK,KAAK,IAAI,CAACH,KAAK,EAAE;IACxC,OAAOR,MAAM,CAACE,SAAS,CAACC,MAAM,EAAEC,WAAW,EAAEC,QAAQ,EAAEC,IAAI,EAAEC,OAAO,CAAC;EACvE;EAEA,MAAMK,OAAO,GAAI,MAAMZ,MAAM,CAACE,SAAS,CAACC,MAAM,EAAEC,WAAW,EAAEC,QAAQ,EAAEC,IAAI,EAAE;IAC3E,GAAGC,OAAO;IACVI,QAAQ,EAAE;EACZ,CAAC,CAEA;EAED,MAAME,GAAG,GAAGD,OAAO,CAACE,MAAM,CAAC,CAAC,CAAC,CAACR,IAAI,CAACO,GAAG,CAACE,IAAI,CAACC,QAAQ,CAAC,CAAC;EAEtD,MAAMC,YAAY,GAAGnB,OAAO,CAACe,GAAG,EAAE;IAChC,GAAGN,OAAO,CAACW,cAAc;IACzBC,QAAQ,EAAEd,QAAQ;IAClBD,WAAW,EAAEA;EACf,CAAC,CAAC,CAACgB,UAAU,CAAC,CAAC;EAEfd,IAAI,GAAGe,MAAM,CAACC,IAAI,CAACvB,sBAAsB,CAAC,EAAE,EAAE,CAACkB,YAAY,CAAC,CAAC,CAAC;EAE9D,MAAMf,SAAS,GAAG,MAAMF,MAAM,CAACE,SAAS,CACtCC,MAAM,EACNC,WAAW,EACX,GAAGC,QAAQ,KAAK,EAChBC,IAAI,EACJC,OACF,CAAC;;EAED;EACCL,SAAS,CAASY,MAAM,CAAC,CAAC,CAAC,CAACR,IAAI,CAACO,GAAG,GAAG;IACtCU,SAAS,EAAE,IAAI;IACfR,IAAI,EAAE;EACR,CAAC;EAED,OAAOb,SAAS;AAClB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["metro/override.ts"],"mappings":";;AAAA","ignoreList":[]}
|
|
@@ -9,32 +9,23 @@ function isFromThisModule(filename) {
|
|
|
9
9
|
}
|
|
10
10
|
export function nativeResolver(resolver, context, moduleName, platform) {
|
|
11
11
|
const resolution = resolver(context, moduleName, platform);
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
// Only operate on source files
|
|
16
|
-
resolution.type !== "sourceFile" ||
|
|
17
|
-
// Skip the React Native barrel file to prevent infinite recursion
|
|
18
|
-
context.originModulePath.endsWith("react-native/index.js") ||
|
|
19
|
-
// Skip anything that isn't importing a React Native component
|
|
20
|
-
!(moduleName.startsWith("react-native") || moduleName.startsWith("react-native/"))) {
|
|
12
|
+
const isInternal = isFromThisModule(context.originModulePath);
|
|
13
|
+
const isReactNativeIndex = context.originModulePath.endsWith(`react-native${sep}index.js`);
|
|
14
|
+
if (isInternal || resolution.type !== "sourceFile" || isReactNativeIndex) {
|
|
21
15
|
return resolution;
|
|
22
16
|
}
|
|
23
17
|
if (moduleName === "react-native") {
|
|
24
18
|
return resolver(context, `react-native-css/components`, platform);
|
|
25
|
-
}
|
|
26
|
-
if (moduleName === "react-native-safe-area-context") {
|
|
19
|
+
} else if (moduleName === "react-native-safe-area-context") {
|
|
27
20
|
return resolver(context, `react-native-css/components/react-native-safe-area-context`, platform);
|
|
21
|
+
} else if (resolution.filePath.includes(`${sep}react-native${sep}Libraries${sep}`)) {
|
|
22
|
+
const filename = basename(resolution.filePath.split(sep).at(-1) ?? "");
|
|
23
|
+
const module = filename.split(".").at(0);
|
|
24
|
+
if (module && allowedModules.has(module)) {
|
|
25
|
+
return resolver(context, `react-native-css/components/${module}`, platform);
|
|
26
|
+
}
|
|
28
27
|
}
|
|
29
|
-
|
|
30
|
-
// We only care about `react-native/Library/Components/<module>.js` components
|
|
31
|
-
const segments = resolution.filePath.split(sep);
|
|
32
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
33
|
-
const module = basename(segments.at(-1)).split(".")[0];
|
|
34
|
-
if (!module || !allowedModules.has(module)) {
|
|
35
|
-
return resolution;
|
|
36
|
-
}
|
|
37
|
-
return resolver(context, `react-native-css/components/${module}`, platform);
|
|
28
|
+
return resolution;
|
|
38
29
|
}
|
|
39
30
|
export function webResolver(resolver, context, moduleName, platform) {
|
|
40
31
|
const resolution = resolver(context, moduleName, platform);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["basename","resolve","sep","allowedModules","thisModuleDist","__dirname","thisModuleSrc","isFromThisModule","filename","startsWith","nativeResolver","resolver","context","moduleName","platform","resolution","originModulePath","
|
|
1
|
+
{"version":3,"names":["basename","resolve","sep","allowedModules","thisModuleDist","__dirname","thisModuleSrc","isFromThisModule","filename","startsWith","nativeResolver","resolver","context","moduleName","platform","resolution","isInternal","originModulePath","isReactNativeIndex","endsWith","type","filePath","includes","split","at","module","has","webResolver","segments","isIndex"],"sourceRoot":"../../../src","sources":["metro/resolver.ts"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,OAAO,EAAEC,GAAG,QAAQ,WAAW;AAQlD,SAASC,cAAc,QAAQ,4BAAyB;AAExD,MAAMC,cAAc,GAAGH,OAAO,CAACI,SAAS,EAAE,eAAe,CAAC;AAC1D,MAAMC,aAAa,GAAGL,OAAO,CAACI,SAAS,EAAE,cAAc,CAAC;AAExD,SAASE,gBAAgBA,CAACC,QAAgB,EAAW;EACnD,OACEA,QAAQ,CAACC,UAAU,CAACL,cAAc,CAAC,IAAII,QAAQ,CAACC,UAAU,CAACH,aAAa,CAAC;AAE7E;AAEA,OAAO,SAASI,cAAcA,CAC5BC,QAAwB,EACxBC,OAAgC,EAChCC,UAAkB,EAClBC,QAAuB,EACX;EACZ,MAAMC,UAAU,GAAGJ,QAAQ,CAACC,OAAO,EAAEC,UAAU,EAAEC,QAAQ,CAAC;EAC1D,MAAME,UAAU,GAAGT,gBAAgB,CAACK,OAAO,CAACK,gBAAgB,CAAC;EAC7D,MAAMC,kBAAkB,GAAGN,OAAO,CAACK,gBAAgB,CAACE,QAAQ,CAC1D,eAAejB,GAAG,UACpB,CAAC;EAED,IAAIc,UAAU,IAAID,UAAU,CAACK,IAAI,KAAK,YAAY,IAAIF,kBAAkB,EAAE;IACxE,OAAOH,UAAU;EACnB;EAEA,IAAIF,UAAU,KAAK,cAAc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2B,OAAO,GAAGD,QAAQ,CAACJ,EAAE,CAAC,CAAC,CAAC,CAAC,EAAEf,UAAU,CAAC,QAAQ,CAAC;EACrD,MAAMgB,MAAM,GAAGG,QAAQ,CAACJ,EAAE,CAAC,CAAC,CAAC,CAAC;EAE9B,IAAI,CAACK,OAAO,IAAI,CAACJ,MAAM,IAAI,CAACtB,cAAc,CAACuB,GAAG,CAACD,MAAM,CAAC,EAAE;IACtD,OAAOV,UAAU;EACnB;EAEA,OAAOJ,QAAQ,CAACC,OAAO,EAAE,+BAA+Ba,MAAM,EAAE,EAAEX,QAAQ,CAAC;AAC7E","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["native/index.ts"],"mappings":";;AAAA,cAAc,
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["native/index.ts"],"mappings":";;AAAA,cAAc,UAAO;AAErB,cAAc,sCAAmC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["canWarn","process","env","NODE_ENV","Error"],"sourceRoot":"../../../src","sources":["native/react-native-css-metro-override.ts"],"mappings":";;AAAA,MAAMA,OAAO,GAAGC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,MAAM;AAE/C,IAAIH,OAAO,EAAE;EACX,MAAM,IAAII,KAAK,CAAC;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC;AACF;AAEA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["transformKeys","functions","lineHeight","shorthands","em","rem","vh","vw","varResolver","functionResolvers","
|
|
1
|
+
{"version":3,"names":["transformKeys","functions","lineHeight","shorthands","em","rem","vh","vw","varResolver","functionResolvers","resolveValue","value","get","options","castToArray","endsWith","parseInt","slice","Array","isArray","isDescriptorArray","map","d","filter","undefined","name","simpleResolve","fn","Error","has","args","joinedArgs","arg","flat","join","replace"],"sourceRoot":"../../../../src","sources":["native/styles/resolve.ts"],"mappings":";;AAAA;;AAWA,SAASA,aAAa,QAAQ,eAAY;AAC1C,OAAO,KAAKC,SAAS,MAAM,sBAAa;AACxC,SAASC,UAAU,QAAQ,kBAAe;AAC1C,OAAO,KAAKC,UAAU,MAAM,uBAAc;AAC1C,SAASC,EAAE,EAAEC,GAAG,EAAEC,EAAE,EAAEC,EAAE,QAAQ,YAAS;AACzC,SAASC,WAAW,QAAQ,gBAAa;AAqBzC,MAAMC,iBAAiB,GAAG;EACxB,GAAGN,UAAU;EACb,GAAGF,SAAS;EACZC,UAAU;EACVE,EAAE;EACFC,GAAG;EACHC,EAAE;EACFC;AACF,CAAC;AAYD,OAAO,SAASG,YAAYA,CAC1BC,KAAsB,EACtBC,GAAW,EACXC,OAA4B,EACvB;EACL,MAAM;IAAEC;EAAY,CAAC,GAAGD,OAAO;EAE/B,QAAQ,OAAOF,KAAK;IAClB,KAAK,QAAQ;IACb,KAAK,QAAQ;IACb,KAAK,WAAW;IAChB,KAAK,UAAU;MACb;MACA;IACF,KAAK,QAAQ;IACb,KAAK,SAAS;MACZ,OAAOA,KAAK;IACd,KAAK,QAAQ;MAAE;QACb,IAAIA,KAAK,KAAK,OAAO,EAAE;UACrB,OAAO,IAAI;QACb,CAAC,MAAM,IAAIA,KAAK,CAACI,QAAQ,CAAC,IAAI,CAAC,EAAE;UAC/B;UACA,OAAOC,QAAQ,CAACL,KAAK,CAACM,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACzC,CAAC,MAAM;UACL,OAAON,KAAK;QACd;MACF;IACA,KAAK,QAAQ;MAAE;QACb,IAAI,CAACO,KAAK,CAACC,OAAO,CAACR,KAAK,CAAC,EAAE;UACzB,OAAOA,KAAK;QACd;QAEA,IAAIS,iBAAiB,CA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,KAAKN,SAAS,EAAE;YACtB;UACF,CAAC,MAAM,IAAIN,KAAK,CAACC,OAAO,CAACW,IAAI,CAAC,EAAE;YAC9B,IAAIC,UAAU,GAAGD,IAAI,CAClBT,GAAG,CAAEW,GAAY,IAAK;cACrB,IAAId,KAAK,CAACC,OAAO,CAACa,GAAG,CAAC,EAAE;gBACtB,OAAOA,GAAG,CAACC,IAAI,CAAC,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;cAC7B;cACA,OAAOF,GAAG;YACZ,CAAC,CAAC,CACDT,MAAM,CAAEZ,KAAK,IAAKA,KAAK,KAAK,GAAG,CAAC,CAChCuB,IAAI,CAAC,IAAI,CAAC;YAEb,IAAIT,IAAI,KAAK,iBAAiB,EAAE;cAC9B;cACAM,UAAU,GAAGA,UAAU,CAACI,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC;YACnD;YAEAxB,KAAK,GAAG,GAAGc,IAAI,IAAIM,UAAU,GAAG;UAClC,CAAC,MAAM;YACLpB,KAAK,GAAG,GAAGc,IAAI,IAAIK,IAAI,GAAG;UAC5B;QACF;QAEA,OAAOhB,WAAW,IAAIH,KAAK,IAAI,CAACO,KAAK,CAACC,OAAO,CAACR,KAAK,CAAC,GAAG,CAACA,KAAK,CAAC,GAAGA,KAAK;MACxE;EACF;AACF;AAEA,SAASS,iBAAiBA,CACxBT,KAA0C,EACd;EAC5B,OAAOO,KAAK,CAACC,OAAO,CAACR,KAAK,CAAC,IAAI,OAAOA,KAAK,CAAC,CAAC,CAAC,KAAK,QAAQ,GACvDO,KAAK,CAACC,OAAO,CAACR,KAAK,CAAC,CAAC,CAAC,CAAC,GACvB,IAAI;AACV","ignoreList":[]}
|
|
@@ -18,7 +18,6 @@ export const animation = (resolveValue, value, get, options) => {
|
|
|
18
18
|
if (!Array.isArray(animationShortHandTuples)) {
|
|
19
19
|
return;
|
|
20
20
|
}
|
|
21
|
-
animationShortHandTuples.pop();
|
|
22
21
|
const nameTuple = animationShortHandTuples.find(tuple => tuple[1] === "animationName");
|
|
23
22
|
const name = nameTuple?.[0];
|
|
24
23
|
if (!nameTuple || typeof name !== "string") {
|
|
@@ -48,4 +47,8 @@ export const animation = (resolveValue, value, get, options) => {
|
|
|
48
47
|
nameTuple[0] = animation;
|
|
49
48
|
return applyShorthand(animationShortHandTuples);
|
|
50
49
|
};
|
|
50
|
+
export const animationName = (resolveValue, value, get, options) => {
|
|
51
|
+
const shorthand = animation(resolveValue, value, get, options);
|
|
52
|
+
return shorthand.animationName;
|
|
53
|
+
};
|
|
51
54
|
//# sourceMappingURL=animation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleCollection","applyShorthand","shorthandHandler","name","delay","duration","iteration","fill","playState","direction","timingFunction","animationShorthand","animation","resolveValue","value","get","options","animationShortHandTuples","Array","isArray","
|
|
1
|
+
{"version":3,"names":["StyleCollection","applyShorthand","shorthandHandler","name","delay","duration","iteration","fill","playState","direction","timingFunction","animationShorthand","animation","resolveValue","value","get","options","animationShortHandTuples","Array","isArray","nameTuple","find","tuple","keyframes","progress","declarations","props","calculateProps","s","d","renderGuards","inheritedVariables","inlineVariables","normal","Object","assign","important","style","animationName","shorthand"],"sourceRoot":"../../../../../src","sources":["native/styles/shorthands/animation.ts"],"mappings":";;AAAA;AACA,SAASA,eAAe,QAAQ,kCAAkC;AAElE,SAASC,cAAc,QAAQ,kBAAe;AAE9C,SAASC,gBAAgB,QAAQ,eAAY;AAE7C,MAAMC,IAAI,GAAG,CAAC,eAAe,EAAE,QAAQ,EAAE,MAAM,CAAU;AACzD,MAAMC,KAAK,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,CAAC,CAAU;AACtD,MAAMC,QAAQ,GAAG,CAAC,mBAAmB,EAAE,QAAQ,EAAE,CAAC,CAAU;AAC5D,MAAMC,SAAS,GAAG,CAChB,yBAAyB,EACzB,CAAC,QAAQ,EAAE,UAAU,CAAC,EACtB,CAAC,CACO;AACV,MAAMC,IAAI,GAAG,C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CAAC,CAACa,KAAK;EACjD;EAEAjB,SAAS,CAAC,CAAC,CAAC,GAAGR,SAAS;EAExB,OAAOX,cAAc,CAACgB,wBAAwB,CAAC;AACjD,CAAC;AAED,OAAO,MAAMqB,aAAoC,GAAGA,CAClDzB,YAAY,EACZC,KAAK,EACLC,GAAG,EACHC,OAAO,KACJ;EACH,MAAMuB,SAAc,GAAG3B,SAAS,CAACC,YAAY,EAAEC,KAAK,EAAEC,GAAG,EAAEC,OAAO,CAAC;EACnE,OAAOuB,SAAS,CAACD,aAAa;AAChC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eslint.config.d.mts","sourceRoot":"","sources":["../../../../.config/eslint.config.mjs"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eslint.config.d.mts","sourceRoot":"","sources":["../../../eslint.config.mjs"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.config.d.ts","sourceRoot":"","sources":["../../../../example/app.config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;yBAE7C,YAAY,aAAa,KAAG,UAAU;AAAtD,
|
|
1
|
+
{"version":3,"file":"app.config.d.ts","sourceRoot":"","sources":["../../../../example/app.config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;yBAE7C,YAAY,aAAa,KAAG,UAAU;AAAtD,wBAoBE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../example/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metro.config.d.ts","sourceRoot":"","sources":["../../../../example/metro.config.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postcss.config.d.mts","sourceRoot":"","sources":["../../../../example/postcss.config.mjs"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../../../example/src/App.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../../../example/src/App.tsx"],"names":[],"mappings":"AAIA,OAAO,eAAe,CAAC;AAEvB,MAAM,CAAC,OAAO,UAAU,GAAG,4CAO1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compiler.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/compiler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compiler.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/compiler.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACV,eAAe,EAIhB,MAAM,kBAAkB,CAAC;AAY1B;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,OAAO,GAAE,eAAoB;;;;;;;EA+I3E"}
|
|
@@ -36,7 +36,7 @@ export declare function parseSizeWithAutoDeclaration(declaration: {
|
|
|
36
36
|
}, builder: StylesheetBuilder): StyleDescriptor;
|
|
37
37
|
export declare function parsePointerEvents({ value }: {
|
|
38
38
|
value: string;
|
|
39
|
-
}, builder: StylesheetBuilder): "
|
|
39
|
+
}, builder: StylesheetBuilder): "auto" | "none" | "box-none" | "box-only" | undefined;
|
|
40
40
|
export declare function parseSize(size: Size | MaxSize, builder: StylesheetBuilder, options?: {
|
|
41
41
|
allowAuto?: boolean;
|
|
42
42
|
}): StyleDescriptor;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AnimationIterationCount, EasingFunction as CSSEasingFunction, KeyframesRule } from "lightningcss";
|
|
2
2
|
import type { StyleDescriptor } from "./compiler.types";
|
|
3
3
|
import type { StylesheetBuilder } from "./stylesheet";
|
|
4
|
-
export declare function parseIterationCount(value: AnimationIterationCount[]): number[];
|
|
4
|
+
export declare function parseIterationCount(value: AnimationIterationCount[]): (number | "infinite")[];
|
|
5
5
|
export declare function parseEasingFunction(value: CSSEasingFunction[]): StyleDescriptor;
|
|
6
6
|
export declare function extractKeyFrames(keyframes: KeyframesRule, builder: StylesheetBuilder): void;
|
|
7
7
|
//# sourceMappingURL=keyframes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyframes.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/keyframes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,cAAc,IAAI,iBAAiB,EACnC,aAAa,EACd,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,uBAAuB,EAAE,GAC/B,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"keyframes.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/keyframes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,cAAc,IAAI,iBAAiB,EACnC,aAAa,EACd,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,uBAAuB,EAAE,GAC/B,CAAC,MAAM,GAAG,UAAU,CAAC,EAAE,CAIzB;AAED,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,iBAAiB,EAAE,GACzB,eAAe,CAwBjB;AAED,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,aAAa,EACxB,OAAO,EAAE,iBAAiB,QAqC3B"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare function lightningcssLoader(): {
|
|
2
|
+
lightningcss: typeof import("lightningcss").transform;
|
|
3
|
+
Features: {
|
|
4
|
+
Nesting: 1;
|
|
5
|
+
NotSelectorList: 2;
|
|
6
|
+
DirSelector: 4;
|
|
7
|
+
LangSelectorList: 8;
|
|
8
|
+
IsSelector: 16;
|
|
9
|
+
TextDecorationThicknessPercent: 32;
|
|
10
|
+
MediaIntervalSyntax: 64;
|
|
11
|
+
MediaRangeSyntax: 128;
|
|
12
|
+
CustomMediaQueries: 256;
|
|
13
|
+
ClampFunction: 512;
|
|
14
|
+
ColorFunction: 1024;
|
|
15
|
+
OklabColors: 2048;
|
|
16
|
+
LabColors: 4096;
|
|
17
|
+
P3Colors: 8192;
|
|
18
|
+
HexAlphaColors: 16384;
|
|
19
|
+
SpaceSeparatedColorNotation: 32768;
|
|
20
|
+
FontFamilySystemUi: 65536;
|
|
21
|
+
DoublePositionGradients: 131072;
|
|
22
|
+
VendorPrefixes: 262144;
|
|
23
|
+
LogicalProperties: 524288;
|
|
24
|
+
LightDark: 1048576;
|
|
25
|
+
Selectors: 31;
|
|
26
|
+
MediaQueries: 448;
|
|
27
|
+
Colors: 1113088;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=lightningcss-loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lightningcss-loader.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/lightningcss-loader.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuCjC"}
|
|
@@ -1 +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,mDAgC9B;
|
|
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,mDAgC9B;AAgfD,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"}
|
|
@@ -47,8 +47,9 @@ export declare class StylesheetBuilder {
|
|
|
47
47
|
important?: boolean | undefined;
|
|
48
48
|
}): void;
|
|
49
49
|
/** Used by nested declarations (for example @media inside a RuleSet) */
|
|
50
|
-
newNestedRule({ important }?: {
|
|
50
|
+
newNestedRule({ important, mapping }?: {
|
|
51
51
|
important?: boolean | undefined;
|
|
52
|
+
mapping?: StyleRuleMapping | undefined;
|
|
52
53
|
}): void;
|
|
53
54
|
/** Hack for light-dark, which requires adding a new rule without changing the current rule */
|
|
54
55
|
addExtraRule(rule: Partial<StyleRule>): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stylesheet.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/stylesheet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EA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IAUvE,OAAO,CAAC,cAAc;IAqDtB,oBAAoB,CAAC,YAAY,eAAiB,GAAG,IAAI;IA4IzD,iBAAiB,CAAC,KAAK,EAAE,cAAc;IAKvC,kBAAkB,CAAC,IAAI,EAAE,MAAM;IAU/B,iBAAiB,CAAC,QAAQ,EAAE,MAAM;CAUnC"}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import { type ActivityIndicatorProps } from "react-native";
|
|
2
|
-
import { type StyledProps } from "../runtime";
|
|
3
|
-
declare const mapping:
|
|
4
|
-
className: {
|
|
5
|
-
target: "style";
|
|
6
|
-
nativeStyleMapping: {
|
|
7
|
-
color: "color";
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
};
|
|
1
|
+
import { ActivityIndicator as RNActivityIndicator, type ActivityIndicatorProps } from "react-native";
|
|
2
|
+
import { type StyledConfiguration, type StyledProps } from "../runtime";
|
|
3
|
+
declare const mapping: StyledConfiguration<typeof RNActivityIndicator>;
|
|
11
4
|
export declare function ActivityIndicator(props: StyledProps<ActivityIndicatorProps, typeof mapping>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
12
5
|
export default ActivityIndicator;
|
|
13
6
|
//# sourceMappingURL=ActivityIndicator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActivityIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/components/ActivityIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ActivityIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/components/ActivityIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,IAAI,mBAAmB,EACxC,KAAK,sBAAsB,EAC5B,MAAM,cAAc,CAAC;AAEtB,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,WAAW,EACjB,MAAM,YAAY,CAAC;AAEpB,QAAA,MAAM,OAAO,EAAE,mBAAmB,CAAC,OAAO,mBAAmB,CAO5D,CAAC;AAEF,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,WAAW,CAAC,sBAAsB,EAAE,OAAO,OAAO,CAAC,0FAG3D;AAED,eAAe,iBAAiB,CAAC"}
|