react-native-css 3.0.0 → 3.0.2
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/declarations.js +51 -0
- package/dist/commonjs/compiler/declarations.js.map +1 -1
- package/dist/commonjs/compiler/lightningcss-loader.js +12 -2
- package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -1
- package/dist/commonjs/compiler/supports.js +3 -1
- package/dist/commonjs/compiler/supports.js.map +1 -1
- package/dist/commonjs/components/ActivityIndicator.js +4 -4
- package/dist/commonjs/components/ActivityIndicator.js.map +1 -1
- package/dist/commonjs/components/Button.js +4 -4
- package/dist/commonjs/components/Button.js.map +1 -1
- package/dist/commonjs/components/FlatList.js +4 -4
- package/dist/commonjs/components/FlatList.js.map +1 -1
- package/dist/commonjs/components/Image.js +4 -4
- package/dist/commonjs/components/Image.js.map +1 -1
- package/dist/commonjs/components/ImageBackground.js +4 -4
- package/dist/commonjs/components/ImageBackground.js.map +1 -1
- package/dist/commonjs/components/KeyboardAvoidingView.js +4 -4
- package/dist/commonjs/components/KeyboardAvoidingView.js.map +1 -1
- package/dist/commonjs/components/Pressable.js +4 -4
- package/dist/commonjs/components/Pressable.js.map +1 -1
- package/dist/commonjs/components/ScrollView.js +4 -4
- package/dist/commonjs/components/ScrollView.js.map +1 -1
- package/dist/commonjs/components/Switch.js +4 -4
- package/dist/commonjs/components/Switch.js.map +1 -1
- package/dist/commonjs/components/Text.js +4 -4
- package/dist/commonjs/components/Text.js.map +1 -1
- package/dist/commonjs/components/TextInput.js +4 -4
- package/dist/commonjs/components/TextInput.js.map +1 -1
- package/dist/commonjs/components/TouchableHighlight.js +4 -4
- package/dist/commonjs/components/TouchableHighlight.js.map +1 -1
- package/dist/commonjs/components/TouchableOpacity.js +4 -4
- package/dist/commonjs/components/TouchableOpacity.js.map +1 -1
- package/dist/commonjs/components/TouchableWithoutFeedback.js +4 -4
- package/dist/commonjs/components/TouchableWithoutFeedback.js.map +1 -1
- package/dist/commonjs/components/View.js +4 -4
- package/dist/commonjs/components/View.js.map +1 -1
- package/dist/commonjs/components/VirtualizedList.js +4 -4
- package/dist/commonjs/components/VirtualizedList.js.map +1 -1
- package/dist/commonjs/components/copyComponentProperties.js +19 -0
- package/dist/commonjs/components/copyComponentProperties.js.map +1 -0
- package/dist/commonjs/components/index.cjs +3 -3
- package/dist/commonjs/components/index.cjs.map +1 -1
- package/dist/commonjs/metro/resolver.js +5 -3
- package/dist/commonjs/metro/resolver.js.map +1 -1
- package/dist/commonjs/native/api.js +5 -1
- package/dist/commonjs/native/api.js.map +1 -1
- package/dist/commonjs/native/react/useNativeCss.js +11 -5
- package/dist/commonjs/native/react/useNativeCss.js.map +1 -1
- package/dist/commonjs/native/styles/functions/color-mix.js +50 -0
- package/dist/commonjs/native/styles/functions/color-mix.js.map +1 -0
- package/dist/commonjs/native/styles/functions/index.js +11 -0
- package/dist/commonjs/native/styles/functions/index.js.map +1 -1
- package/dist/commonjs/native/styles/index.js +249 -19
- package/dist/commonjs/native/styles/index.js.map +1 -1
- package/dist/commonjs/web/api.js +5 -2
- package/dist/commonjs/web/api.js.map +1 -1
- package/dist/module/compiler/declarations.js +50 -0
- package/dist/module/compiler/declarations.js.map +1 -1
- package/dist/module/compiler/lightningcss-loader.js +12 -2
- package/dist/module/compiler/lightningcss-loader.js.map +1 -1
- package/dist/module/compiler/supports.js +3 -1
- package/dist/module/compiler/supports.js.map +1 -1
- package/dist/module/components/ActivityIndicator.js +3 -2
- package/dist/module/components/ActivityIndicator.js.map +1 -1
- package/dist/module/components/Button.js +3 -2
- package/dist/module/components/Button.js.map +1 -1
- package/dist/module/components/FlatList.js +3 -2
- package/dist/module/components/FlatList.js.map +1 -1
- package/dist/module/components/Image.js +3 -2
- package/dist/module/components/Image.js.map +1 -1
- package/dist/module/components/ImageBackground.js +3 -2
- package/dist/module/components/ImageBackground.js.map +1 -1
- package/dist/module/components/KeyboardAvoidingView.js +3 -2
- package/dist/module/components/KeyboardAvoidingView.js.map +1 -1
- package/dist/module/components/Pressable.js +3 -2
- package/dist/module/components/Pressable.js.map +1 -1
- package/dist/module/components/ScrollView.js +3 -2
- package/dist/module/components/ScrollView.js.map +1 -1
- package/dist/module/components/Switch.js +3 -2
- package/dist/module/components/Switch.js.map +1 -1
- package/dist/module/components/Text.js +3 -2
- package/dist/module/components/Text.js.map +1 -1
- package/dist/module/components/TextInput.js +3 -2
- package/dist/module/components/TextInput.js.map +1 -1
- package/dist/module/components/TouchableHighlight.js +3 -2
- package/dist/module/components/TouchableHighlight.js.map +1 -1
- package/dist/module/components/TouchableOpacity.js +3 -2
- package/dist/module/components/TouchableOpacity.js.map +1 -1
- package/dist/module/components/TouchableWithoutFeedback.js +3 -2
- package/dist/module/components/TouchableWithoutFeedback.js.map +1 -1
- package/dist/module/components/View.js +3 -2
- package/dist/module/components/View.js.map +1 -1
- package/dist/module/components/VirtualizedList.js +3 -2
- package/dist/module/components/VirtualizedList.js.map +1 -1
- package/dist/module/components/copyComponentProperties.js +15 -0
- package/dist/module/components/copyComponentProperties.js.map +1 -0
- package/dist/module/components/index.cjs +3 -3
- package/dist/module/components/index.cjs.map +1 -1
- package/dist/module/metro/resolver.js +5 -3
- package/dist/module/metro/resolver.js.map +1 -1
- package/dist/module/native/api.js +4 -1
- package/dist/module/native/api.js.map +1 -1
- package/dist/module/native/react/useNativeCss.js +11 -5
- package/dist/module/native/react/useNativeCss.js.map +1 -1
- package/dist/module/native/styles/functions/color-mix.js +45 -0
- package/dist/module/native/styles/functions/color-mix.js.map +1 -0
- package/dist/module/native/styles/functions/index.js +1 -0
- package/dist/module/native/styles/functions/index.js.map +1 -1
- package/dist/module/native/styles/index.js +250 -19
- package/dist/module/native/styles/index.js.map +1 -1
- package/dist/module/web/api.js +5 -2
- package/dist/module/web/api.js.map +1 -1
- package/dist/typescript/commonjs/.config/eslint.config.d.mts +1 -1
- package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts +1 -0
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Button.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/FlatList.d.ts +2 -2
- package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Image.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Pressable.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/ScrollView.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Switch.d.ts +2 -6
- package/dist/typescript/commonjs/src/components/Switch.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Text.d.ts +2 -6
- package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/TextInput.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +2 -4
- package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/View.d.ts +2 -6
- package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts +2 -2
- package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts +5 -0
- package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/api.d.ts +1 -1
- package/dist/typescript/commonjs/src/native/api.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts +3 -0
- package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts +1 -0
- package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts +1 -1
- package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/web/api.d.ts +2 -2
- package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -1
- package/dist/typescript/module/.config/eslint.config.d.mts +1 -1
- package/dist/typescript/module/example/src/App.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/declarations.d.ts +1 -0
- package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -1
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts +2 -4
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Button.d.ts +2 -4
- package/dist/typescript/module/src/components/Button.d.ts.map +1 -1
- package/dist/typescript/module/src/components/FlatList.d.ts +2 -2
- package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Image.d.ts +2 -4
- package/dist/typescript/module/src/components/Image.d.ts.map +1 -1
- package/dist/typescript/module/src/components/ImageBackground.d.ts +2 -4
- package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -1
- package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +2 -4
- package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Pressable.d.ts +2 -4
- package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -1
- package/dist/typescript/module/src/components/ScrollView.d.ts +2 -4
- package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Switch.d.ts +2 -6
- package/dist/typescript/module/src/components/Switch.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Text.d.ts +2 -6
- package/dist/typescript/module/src/components/Text.d.ts.map +1 -1
- package/dist/typescript/module/src/components/TextInput.d.ts +2 -4
- package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -1
- package/dist/typescript/module/src/components/TouchableHighlight.d.ts +2 -4
- package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -1
- package/dist/typescript/module/src/components/TouchableOpacity.d.ts +2 -4
- package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -1
- package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +2 -4
- package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -1
- package/dist/typescript/module/src/components/View.d.ts +2 -6
- package/dist/typescript/module/src/components/View.d.ts.map +1 -1
- package/dist/typescript/module/src/components/VirtualizedList.d.ts +2 -2
- package/dist/typescript/module/src/components/VirtualizedList.d.ts.map +1 -1
- package/dist/typescript/module/src/components/copyComponentProperties.d.ts +5 -0
- package/dist/typescript/module/src/components/copyComponentProperties.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -1
- package/dist/typescript/module/src/native/api.d.ts +1 -1
- package/dist/typescript/module/src/native/api.d.ts.map +1 -1
- package/dist/typescript/module/src/native/react/useNativeCss.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts +3 -0
- package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/functions/index.d.ts +1 -0
- package/dist/typescript/module/src/native/styles/functions/index.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/index.d.ts.map +1 -1
- package/dist/typescript/module/src/utilities/dot-notation.types.d.ts +1 -1
- package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -1
- package/dist/typescript/module/src/web/api.d.ts +2 -2
- package/dist/typescript/module/src/web/api.d.ts.map +1 -1
- package/package.json +4 -3
- package/src/compiler/declarations.ts +96 -0
- package/src/compiler/lightningcss-loader.ts +20 -1
- package/src/compiler/supports.ts +2 -0
- package/src/components/ActivityIndicator.tsx +8 -5
- package/src/components/Button.tsx +8 -3
- package/src/components/FlatList.tsx +13 -4
- package/src/components/Image.tsx +8 -3
- package/src/components/ImageBackground.tsx +8 -5
- package/src/components/KeyboardAvoidingView.tsx +8 -5
- package/src/components/Pressable.tsx +8 -3
- package/src/components/ScrollView.tsx +8 -5
- package/src/components/Switch.tsx +8 -3
- package/src/components/Text.tsx +8 -3
- package/src/components/TextInput.tsx +8 -3
- package/src/components/TouchableHighlight.tsx +8 -5
- package/src/components/TouchableOpacity.tsx +8 -5
- package/src/components/TouchableWithoutFeedback.tsx +8 -5
- package/src/components/View.tsx +8 -3
- package/src/components/VirtualizedList.tsx +17 -5
- package/src/components/copyComponentProperties.ts +21 -0
- package/src/components/index.cts +3 -3
- package/src/metro/resolver.ts +10 -3
- package/src/native/api.tsx +6 -2
- package/src/native/react/useNativeCss.ts +13 -6
- package/src/native/styles/functions/color-mix.ts +68 -0
- package/src/native/styles/functions/index.ts +1 -0
- package/src/native/styles/index.ts +302 -26
- package/src/utilities/dot-notation.types.ts +10 -3
- package/src/web/api.tsx +9 -4
- package/types.d.ts +3 -0
|
@@ -6,6 +6,127 @@ import { specificityCompareFn } from "react-native-css/utilities";
|
|
|
6
6
|
import { getInteractionHandler } from "../react/interaction.js";
|
|
7
7
|
import { activeFamily, containerLayoutFamily, family, focusFamily, hoverFamily, observable, VAR_SYMBOL } from "../reactivity.js";
|
|
8
8
|
import { calculateProps } from "./calculate-props.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Checks if the left style object has any properties that are not present in the right style object.
|
|
12
|
+
* This is used to determine if styles need to be preserved in an array or if right can completely override left.
|
|
13
|
+
*
|
|
14
|
+
* Note: This intentionally only checks one direction (left → right). We don't need to check if right has
|
|
15
|
+
* properties that left doesn't have, because right will always be applied/merged. The question we're
|
|
16
|
+
* answering is: "Does left have any properties that would be lost if we just used right?" If yes, we
|
|
17
|
+
* create a style array [left, right] to preserve both. If no, right can safely replace left entirely.
|
|
18
|
+
*
|
|
19
|
+
* @param left - The left style object to check
|
|
20
|
+
* @param right - The right style object to compare against
|
|
21
|
+
* @returns true if left has at least one property key that doesn't exist in right, false otherwise
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* hasNonOverlappingProperties({color: 'red', fontSize: 12}, {color: 'blue'}) // true - fontSize is not in right
|
|
25
|
+
* hasNonOverlappingProperties({color: 'red'}, {color: 'blue', fontSize: 12}) // false - all left keys exist in right
|
|
26
|
+
*/
|
|
27
|
+
function hasNonOverlappingProperties(left, right) {
|
|
28
|
+
// Null safety check
|
|
29
|
+
if (!left || !right) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Only check own properties to avoid prototype pollution
|
|
34
|
+
for (const key in left) {
|
|
35
|
+
if (Object.prototype.hasOwnProperty.call(left, key)) {
|
|
36
|
+
if (!Object.prototype.hasOwnProperty.call(right, key)) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Flattens a style array into a single object when possible, with rightmost values taking precedence.
|
|
46
|
+
* Returns the original array if it contains any non-plain objects, arrays, or CSS variable objects.
|
|
47
|
+
*
|
|
48
|
+
* Note: This function assumes the input array has already been filtered (e.g., by filterCssVariables),
|
|
49
|
+
* so empty arrays should not reach this function. If they do, they will be treated as non-flattenable.
|
|
50
|
+
*
|
|
51
|
+
* @param styleArray - The style array to potentially flatten
|
|
52
|
+
* @returns A single merged object if all items are plain objects, otherwise the original array
|
|
53
|
+
*/
|
|
54
|
+
function flattenStyleArray(styleArray) {
|
|
55
|
+
// Check if we can flatten to a single object (all items are plain objects)
|
|
56
|
+
for (const item of styleArray) {
|
|
57
|
+
// Use explicit null check instead of !item to allow falsy values like 0 or false
|
|
58
|
+
if (item == null || typeof item !== "object" || Array.isArray(item) || Object.prototype.hasOwnProperty.call(item, VAR_SYMBOL)) {
|
|
59
|
+
return styleArray;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Use reduce to avoid spread operator performance issues with large arrays
|
|
64
|
+
return styleArray.reduce((acc, item) => Object.assign(acc, item), {});
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Recursively filters out CSS variable objects (with VAR_SYMBOL) from style values.
|
|
69
|
+
* This prevents CSS variable runtime objects from leaking into React Native component props.
|
|
70
|
+
*
|
|
71
|
+
* @param value - The value to filter (can be any type: object, array, primitive, etc.)
|
|
72
|
+
* @param depth - Internal recursion depth counter to prevent stack overflow (max 100)
|
|
73
|
+
* @returns The filtered value with CSS variables removed, or `undefined` if the entire value
|
|
74
|
+
* should be filtered out (e.g., empty arrays, objects with only VAR_SYMBOL properties)
|
|
75
|
+
*
|
|
76
|
+
* Filtering behavior:
|
|
77
|
+
* - Objects with VAR_SYMBOL property: returns `undefined` (completely filtered)
|
|
78
|
+
* - Arrays: filters out VAR_SYMBOL objects, returns `undefined` if empty after filtering
|
|
79
|
+
* - Objects: recursively filters properties, returns `undefined` if no properties remain
|
|
80
|
+
* - Primitives (null, undefined, numbers, strings, booleans): returned as-is
|
|
81
|
+
* - Symbol properties: intentionally filtered out for React Native compatibility
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* filterCssVariables({fontSize: 16, color: {[VAR_SYMBOL]: true}}) // {fontSize: 16}
|
|
85
|
+
* filterCssVariables([{margin: 10}, {[VAR_SYMBOL]: true}]) // [{margin: 10}]
|
|
86
|
+
* filterCssVariables({color: {[VAR_SYMBOL]: true}}) // undefined (all props filtered)
|
|
87
|
+
*/
|
|
88
|
+
function filterCssVariables(value, depth = 0) {
|
|
89
|
+
// Prevent stack overflow on deeply nested structures
|
|
90
|
+
if (depth > 100) {
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
if (value === null || value === undefined) {
|
|
94
|
+
return value;
|
|
95
|
+
}
|
|
96
|
+
if (Array.isArray(value)) {
|
|
97
|
+
// Single-pass filter with map operation
|
|
98
|
+
const filtered = [];
|
|
99
|
+
for (const item of value) {
|
|
100
|
+
const filteredItem = filterCssVariables(item, depth + 1);
|
|
101
|
+
if (filteredItem !== undefined && !(typeof filteredItem === "object" && filteredItem !== null && Object.prototype.hasOwnProperty.call(filteredItem, VAR_SYMBOL))) {
|
|
102
|
+
filtered.push(filteredItem);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return filtered.length > 0 ? filtered : undefined;
|
|
106
|
+
}
|
|
107
|
+
if (typeof value === "object") {
|
|
108
|
+
// If the object itself has VAR_SYMBOL, filter it out (check own property only)
|
|
109
|
+
if (Object.prototype.hasOwnProperty.call(value, VAR_SYMBOL)) {
|
|
110
|
+
return undefined;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// Otherwise, filter VAR_SYMBOL properties from nested objects
|
|
114
|
+
const filtered = {};
|
|
115
|
+
let hasProperties = false;
|
|
116
|
+
|
|
117
|
+
// Use Object.keys to only iterate own string properties (not inherited, not Symbols)
|
|
118
|
+
// This intentionally filters out Symbol properties for React Native compatibility
|
|
119
|
+
for (const key of Object.keys(value)) {
|
|
120
|
+
const filteredValue = filterCssVariables(value[key], depth + 1);
|
|
121
|
+
if (filteredValue !== undefined) {
|
|
122
|
+
filtered[key] = filteredValue;
|
|
123
|
+
hasProperties = true;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return hasProperties ? filtered : undefined;
|
|
127
|
+
}
|
|
128
|
+
return value;
|
|
129
|
+
}
|
|
9
130
|
export const stylesFamily = family((hash, rules) => {
|
|
10
131
|
const sortedRules = Array.from(rules).sort(specificityCompareFn);
|
|
11
132
|
const obs = observable(read => calculateProps(read, sortedRules));
|
|
@@ -26,9 +147,9 @@ export function getStyledProps(state, inline) {
|
|
|
26
147
|
let result;
|
|
27
148
|
const styledProps = state.stylesObs?.get(state.styleEffect);
|
|
28
149
|
for (const config of state.configs) {
|
|
29
|
-
result = deepMergeConfig(config, styledProps?.normal, inline, true);
|
|
150
|
+
result = deepMergeConfig(config, nativeStyleMapping(config, styledProps?.normal), inline, true);
|
|
30
151
|
if (styledProps?.important) {
|
|
31
|
-
result = deepMergeConfig(config, result, styledProps.important);
|
|
152
|
+
result = deepMergeConfig(config, result, nativeStyleMapping(config, styledProps.important));
|
|
32
153
|
}
|
|
33
154
|
|
|
34
155
|
// Apply the handlers
|
|
@@ -56,12 +177,91 @@ export function getStyledProps(state, inline) {
|
|
|
56
177
|
return result;
|
|
57
178
|
}
|
|
58
179
|
function deepMergeConfig(config, left, right, rightIsInline = false) {
|
|
59
|
-
if (!
|
|
180
|
+
if (!right) {
|
|
60
181
|
return {
|
|
61
182
|
...left
|
|
62
183
|
};
|
|
63
184
|
}
|
|
64
|
-
|
|
185
|
+
|
|
186
|
+
// Handle style merging to support both className and inline style props
|
|
187
|
+
let result;
|
|
188
|
+
if (config.target) {
|
|
189
|
+
if (Array.isArray(config.target) && config.target.length === 1 && config.target[0] === "style") {
|
|
190
|
+
// Special handling for style target when we have inline styles
|
|
191
|
+
result = {
|
|
192
|
+
...left,
|
|
193
|
+
...right
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
// Handle null/undefined inline styles
|
|
197
|
+
if (right?.style === null || right?.style === undefined) {
|
|
198
|
+
if (left?.style) {
|
|
199
|
+
result.style = left.style;
|
|
200
|
+
}
|
|
201
|
+
} else if (rightIsInline && right?.style) {
|
|
202
|
+
// Filter inline styles if rightIsInline is true
|
|
203
|
+
const filteredRightStyle = filterCssVariables(right.style);
|
|
204
|
+
if (left?.style) {
|
|
205
|
+
if (!filteredRightStyle) {
|
|
206
|
+
// All inline styles were CSS variables, only use left
|
|
207
|
+
result.style = left.style;
|
|
208
|
+
} else {
|
|
209
|
+
const leftStyle = left.style;
|
|
210
|
+
|
|
211
|
+
// For arrays or objects, check if we need to create a style array
|
|
212
|
+
const leftIsObject = typeof leftStyle === "object" && !Array.isArray(leftStyle);
|
|
213
|
+
const rightIsObject = typeof filteredRightStyle === "object" && !Array.isArray(filteredRightStyle);
|
|
214
|
+
if (leftIsObject && rightIsObject) {
|
|
215
|
+
if (hasNonOverlappingProperties(leftStyle, filteredRightStyle)) {
|
|
216
|
+
result.style = [leftStyle, filteredRightStyle];
|
|
217
|
+
} else {
|
|
218
|
+
// All left properties are in right, right overrides
|
|
219
|
+
result.style = filteredRightStyle;
|
|
220
|
+
}
|
|
221
|
+
} else {
|
|
222
|
+
// One or both are arrays, merge them
|
|
223
|
+
result.style = [leftStyle, filteredRightStyle];
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
} else {
|
|
227
|
+
// No left style, just use filtered right
|
|
228
|
+
if (filteredRightStyle) {
|
|
229
|
+
result.style = filteredRightStyle;
|
|
230
|
+
} else {
|
|
231
|
+
// All filtered out, remove style prop
|
|
232
|
+
delete result.style;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
} else if (!rightIsInline && right?.style) {
|
|
236
|
+
// Merging non-inline styles (e.g., important styles)
|
|
237
|
+
if (left?.style) {
|
|
238
|
+
// If left.style is an array, append right.style
|
|
239
|
+
if (Array.isArray(left.style)) {
|
|
240
|
+
const combined = [...left.style, right.style];
|
|
241
|
+
result.style = flattenStyleArray(combined);
|
|
242
|
+
} else if (typeof left.style === "object" && typeof right.style === "object") {
|
|
243
|
+
// Both are objects, check for overlaps
|
|
244
|
+
if (hasNonOverlappingProperties(left.style, right.style)) {
|
|
245
|
+
result.style = flattenStyleArray([left.style, right.style]);
|
|
246
|
+
} else {
|
|
247
|
+
// All left properties are overridden by right
|
|
248
|
+
result.style = right.style;
|
|
249
|
+
}
|
|
250
|
+
} else {
|
|
251
|
+
// One or both are arrays/mixed types
|
|
252
|
+
const combined = [left.style, right.style];
|
|
253
|
+
result.style = flattenStyleArray(combined);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
} else {
|
|
258
|
+
result = Object.assign({}, left, right);
|
|
259
|
+
}
|
|
260
|
+
} else {
|
|
261
|
+
result = {
|
|
262
|
+
...left
|
|
263
|
+
};
|
|
264
|
+
}
|
|
65
265
|
if (right && rightIsInline && config.source in right && config.target !== config.source) {
|
|
66
266
|
delete result[config.source];
|
|
67
267
|
}
|
|
@@ -69,7 +269,7 @@ function deepMergeConfig(config, left, right, rightIsInline = false) {
|
|
|
69
269
|
/**
|
|
70
270
|
* If target is a path, deep merge until we get to the last key
|
|
71
271
|
*/
|
|
72
|
-
if (Array.isArray(config.target)
|
|
272
|
+
if (Array.isArray(config.target)) {
|
|
73
273
|
for (let i = 0; i < config.target.length - 1; i++) {
|
|
74
274
|
const key = config.target[i];
|
|
75
275
|
if (key === undefined) {
|
|
@@ -82,29 +282,60 @@ function deepMergeConfig(config, left, right, rightIsInline = false) {
|
|
|
82
282
|
}
|
|
83
283
|
return result;
|
|
84
284
|
}
|
|
85
|
-
const target =
|
|
86
|
-
if (target === undefined) {
|
|
285
|
+
const target = config.target;
|
|
286
|
+
if (target === undefined || target === false) {
|
|
87
287
|
return result;
|
|
88
288
|
}
|
|
89
289
|
let rightValue = right?.[target];
|
|
90
290
|
|
|
91
291
|
// Strip any inline variables from the target
|
|
92
|
-
if (rightIsInline && rightValue) {
|
|
93
|
-
|
|
94
|
-
rightValue = rightValue.filter(v => {
|
|
95
|
-
return typeof v !== "object" || !(v && VAR_SYMBOL in v);
|
|
96
|
-
});
|
|
97
|
-
if (rightValue.length === 0) {
|
|
98
|
-
rightValue = undefined;
|
|
99
|
-
}
|
|
100
|
-
} else if (typeof rightValue === "object" && rightValue && VAR_SYMBOL in rightValue) {
|
|
101
|
-
rightValue = undefined;
|
|
102
|
-
delete result[target][VAR_SYMBOL];
|
|
103
|
-
}
|
|
292
|
+
if (rightIsInline && rightValue !== undefined) {
|
|
293
|
+
rightValue = filterCssVariables(rightValue);
|
|
104
294
|
}
|
|
105
295
|
if (rightValue !== undefined) {
|
|
106
296
|
result[target] = left && target in left ? [left[target], rightValue] : rightValue;
|
|
107
297
|
}
|
|
108
298
|
return result;
|
|
109
299
|
}
|
|
300
|
+
function nativeStyleMapping(config, props) {
|
|
301
|
+
if (!config.nativeStyleMapping || !props) {
|
|
302
|
+
return props;
|
|
303
|
+
}
|
|
304
|
+
let source;
|
|
305
|
+
if (typeof config.target === "string") {
|
|
306
|
+
source = props[config.target];
|
|
307
|
+
} else if (config.target === false) {
|
|
308
|
+
source = props["style"];
|
|
309
|
+
} else {
|
|
310
|
+
const tokens = [...config.target];
|
|
311
|
+
const lastToken = tokens.pop();
|
|
312
|
+
source = props;
|
|
313
|
+
for (const token of tokens) {
|
|
314
|
+
source = source[token];
|
|
315
|
+
if (!source) {
|
|
316
|
+
return props;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
source = source[lastToken];
|
|
320
|
+
}
|
|
321
|
+
if (!source) {
|
|
322
|
+
return props;
|
|
323
|
+
}
|
|
324
|
+
for (const [key, path] of Object.entries(config.nativeStyleMapping)) {
|
|
325
|
+
const styleValue = source[key];
|
|
326
|
+
delete source[key];
|
|
327
|
+
if (styleValue === undefined) {
|
|
328
|
+
continue;
|
|
329
|
+
}
|
|
330
|
+
let target = props;
|
|
331
|
+
const tokens = path.split(".");
|
|
332
|
+
const lastToken = tokens.pop();
|
|
333
|
+
for (const token of tokens) {
|
|
334
|
+
target[token] ??= {};
|
|
335
|
+
target = target[token];
|
|
336
|
+
}
|
|
337
|
+
target[lastToken] = styleValue;
|
|
338
|
+
}
|
|
339
|
+
return props;
|
|
340
|
+
}
|
|
110
341
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["specificityCompareFn","getInteractionHandler","activeFamily","containerLayoutFamily","family","focusFamily","hoverFamily","observable","VAR_SYMBOL","calculateProps","stylesFamily","hash","rules","sortedRules","Array","from","sort","obs","read","Object","assign","cleanup","effect","observers","delete","size","getStyledProps","state","inline","result","styledProps","stylesObs","get","styleEffect","config","configs","deepMergeConfig","normal","important","has","ruleEffectGetter","onHoverIn","onHoverOut","onPress","onPressIn","onPressOut","onBlur","onFocus","onLayout","left","right","rightIsInline","target","source","isArray","length","i","key","undefined","slice","rightValue","filter","v"],"sourceRoot":"../../../../src","sources":["native/styles/index.ts"],"mappings":";;AAAA;;AAEA,SAASA,oBAAoB,QAAQ,4BAA4B;AAEjE,SAASC,qBAAqB,QAAQ,yBAAsB;AAE5D,SACEC,YAAY,EACZC,qBAAqB,EACrBC,MAAM,EACNC,WAAW,EACXC,WAAW,EACXC,UAAU,EACVC,UAAU,QAGL,kBAAe;AACtB,SAASC,cAAc,QAAQ,sBAAmB;AAElD,OAAO,MAAMC,YAAY,GAAGN,MAAM,CAChC,CACEO,IAAY,EACZC,KAA6D,KAC1D;EACH,MAAMC,WAAW,GAAGC,KAAK,CAACC,IAAI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xB,OAAO7B,MAAM;EACf;EAEA,IAAI+B,UAAU,GAAGV,KAAK,GAAGE,MAAM,CAAC;;EAEhC;EACA,IAAID,aAAa,IAAIS,UAAU,EAAE;IAC/B,IAAI9C,KAAK,CAACwC,OAAO,CAACM,UAAU,CAAC,EAAE;MAC7BA,UAAU,GAAGA,UAAU,CAACC,MAAM,CAAEC,CAAC,IAAK;QACpC,OAAO,OAAOA,CAAC,KAAK,QAAQ,IAAI,EAAEA,CAAC,IAAItD,UAAU,IAAIsD,CAAC,CAAC;MACzD,CAAC,CAAC;MAEF,IAAIF,UAAU,CAACL,MAAM,KAAK,CAAC,EAAE;QAC3BK,UAAU,GAAGF,SAAS;MACxB;IACF,CAAC,MAAM,IACL,OAAOE,UAAU,KAAK,QAAQ,IAC9BA,UAAU,IACVpD,UAAU,IAAIoD,UAAU,EACxB;MACAA,UAAU,GAAGF,SAAS;MACtB,OAAO7B,MAAM,CAACuB,MAAM,CAAC,CAAC5C,UAAU,CAAC;IACnC;EACF;EAEA,IAAIoD,UAAU,KAAKF,SAAS,EAAE;IAC5B7B,MAAM,CAACuB,MAAM,CAAC,GACZH,IAAI,IAAIG,MAAM,IAAIH,IAAI,GAAG,CAACA,IAAI,CAACG,MAAM,CAAC,EAAEQ,UAAU,CAAC,GAAGA,UAAU;EACpE;EAEA,OAAO/B,MAAM;AACf","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["specificityCompareFn","getInteractionHandler","activeFamily","containerLayoutFamily","family","focusFamily","hoverFamily","observable","VAR_SYMBOL","calculateProps","hasNonOverlappingProperties","left","right","key","Object","prototype","hasOwnProperty","call","flattenStyleArray","styleArray","item","Array","isArray","reduce","acc","assign","filterCssVariables","value","depth","undefined","filtered","filteredItem","push","length","hasProperties","keys","filteredValue","stylesFamily","hash","rules","sortedRules","from","sort","obs","read","cleanup","effect","observers","delete","size","getStyledProps","state","inline","result","styledProps","stylesObs","get","styleEffect","config","configs","deepMergeConfig","nativeStyleMapping","normal","important","has","ruleEffectGetter","onHoverIn","onHoverOut","onPress","onPressIn","onPressOut","onBlur","onFocus","onLayout","rightIsInline","target","style","filteredRightStyle","leftStyle","leftIsObject","rightIsObject","combined","source","i","slice","rightValue","props","tokens","lastToken","pop","token","path","entries","styleValue","split"],"sourceRoot":"../../../../src","sources":["native/styles/index.ts"],"mappings":";;AAAA;;AAEA,SAASA,oBAAoB,QAAQ,4BAA4B;AAEjE,SAASC,qBAAqB,QAAQ,yBAAsB;AAE5D,SACEC,YAAY,EACZC,qBAAqB,EACrBC,MAAM,EACNC,WAAW,EACXC,WAAW,EACXC,UAAU,EACVC,UAAU,QAGL,kBAAe;AACtB,SAASC,cAAc,QAAQ,sBAAmB;;AAElD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,2BAA2BA,CAClCC,IAAyB,EACzBC,KAA0B,EACjB;EACT;EACA,IAAI,CAACD,IAAI,IAAI,CAACC,KAAK,EAAE;IACnB,OAAO,KAAK;EACd;;EAEA;EACA,KAAK,MAAMC,GAAG,IAAIF,IAAI,EAAE;IACtB,IAAIG,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACN,IAAI,EAAEE,GAAG,CAAC,EAAE;MACnD,IAAI,CAACC,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACL,KAAK,EAAEC,GAAG,CAAC,EAAE;QACrD,OAAO,IAAI;MACb;IACF;EACF;EACA,OAAO,KAAK;AACd;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASK,iBAAiBA,CAACC,UAAiB,EAAO;EACjD;EACA,KAAK,MAAMC,IAAI,IAAID,UAAU,EAAE;IAC7B;IACA,IACEC,IAAI,IAAI,IAAI,IACZ,OAAOA,IAAI,KAAK,QAAQ,IACxBC,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,IACnBN,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,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GAAGA,MAAM,CAACe,KAAK,CAAC;IACxB;IAEAf,MAAM,CAACa,SAAS,CAAE,GAAGK,UAAU;EACjC;EAEA,OAAOP,KAAK;AACd","ignoreList":[]}
|
package/dist/module/web/api.js
CHANGED
|
@@ -4,7 +4,10 @@ import { createElement, useMemo } from "react";
|
|
|
4
4
|
import { Appearance } from "react-native";
|
|
5
5
|
import { assignStyle } from "./assign-style.js";
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
const defaultMapping = {
|
|
8
|
+
className: "style"
|
|
9
|
+
};
|
|
10
|
+
export const styled = (baseComponent, mapping = defaultMapping, _options) => {
|
|
8
11
|
return props => {
|
|
9
12
|
return useCssElement(baseComponent, mapping, props);
|
|
10
13
|
};
|
|
@@ -58,7 +61,7 @@ export function vars(variables) {
|
|
|
58
61
|
export function VariableContextProvider(props) {
|
|
59
62
|
const style = useMemo(() => {
|
|
60
63
|
return {
|
|
61
|
-
display: "
|
|
64
|
+
display: "contents",
|
|
62
65
|
...Object.fromEntries(Object.entries(props.value).map(([key, value]) => [key.startsWith("--") ? key : `--${key}`, value]))
|
|
63
66
|
};
|
|
64
67
|
}, [props.value]);
|
|
@@ -1 +1 @@
|
|
|
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":["web/api.tsx"],"mappings":";;AAAA,SACEA,aAAa,EACbC,OAAO,
|
|
1
|
+
{"version":3,"names":["createElement","useMemo","Appearance","assignStyle","jsx","_jsx","defaultMapping","className","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":["web/api.tsx"],"mappings":";;AAAA,SACEA,aAAa,EACbC,OAAO,QAIF,OAAO;AACd,SAASC,UAAU,QAAQ,cAAc;AAWzC,SAASC,WAAW,QAAQ,mBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE7C,MAAMC,cAAsE,GAAG;EAC7EC,SAAS,EAAE;AACb,CAAC;AAED,OAAO,MAAMC,MAAM,GAAGA,CAIpBC,aAAgB,EAChBC,OAAU,GAAGJ,cAAmB,EAChCK,QAAwB,KACrB;EACH,OAAQC,KAA+C,IAAK;IAC1D,OAAOC,aAAa,CAACJ,aAAa,EAAEC,OAAO,EAAEE,KAAK,CAAC;EACrD,CAAC;AACH,CAAC;AAED,OAAO,MAAMC,aAAa,GAAGA,CAC3BC,SAAY,EACZC,aAAoB,EACpBL,OAA+B,KAC5B;EACH,IAAIE,KAAK,GAAG;IAAE,GAAGG;EAAc,CAAC;EAEhC,KAAK,MAAM,CAACC,GAAG,EAAEC,KAAK,CAAC,IAAIC,MAAM,CAACC,OAAO,CAACT,OAAO,CAAC,EAAE;IAClD,MAAMU,MAAe,GAAGR,KAAK,CAACI,GAAG,CAAC;IAClC,IAAI,CAACI,MAAM,EAAE;MACX;IACF;;IAEA;IACA,OAAOR,KAAK,CAACI,GAAG,CAAC;IAEjB,IAAIK,MAAwB,GAC1B,OAAOJ,KAAK,KAAK,QAAQ,GAAGA,KAAK,CAACI,MAAM,GAAGJ,KAAK;IAElD,IAAI,OAAOI,MAAM,KAAK,SAAS,EAAE;MAC/BA,MAAM,GAAGL,GAAG;IACd;IAEAJ,KAAK,GAAGT,WAAW,CACjB;MAAEmB,KAAK,EAAE,IAAI;MAAE,CAACN,GAAG,GAAGI;IAAO,CAAC,EAC9BC,MAAM,CAACE,KAAK,CAAC,GAAG,CAAC,EACjBX,KACF,CAAC;EACH;EA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AK,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":[]}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,4CAU1B"}
|
|
@@ -110,6 +110,7 @@ export declare function round(number: number): number;
|
|
|
110
110
|
export declare function parseDimensionPercentageFor_LengthValue(value: DimensionPercentageFor_LengthValue, builder: StylesheetBuilder): StyleDescriptor;
|
|
111
111
|
export declare function parseEnv(value: EnvironmentVariable, builder: StylesheetBuilder): StyleFunction | undefined;
|
|
112
112
|
export declare function parseCalcFn(name: string, tokens: TokenOrValue[], builder: StylesheetBuilder, property: string): StyleDescriptor;
|
|
113
|
+
export declare function parseColorMix(tokens: TokenOrValue[], builder: StylesheetBuilder, property: string): StyleDescriptor;
|
|
113
114
|
export declare function parseCalcArguments([...args]: TokenOrValue[], builder: StylesheetBuilder, property: string): StyleDescriptor[] | undefined;
|
|
114
115
|
export declare function parseTranslateProp(value: Translate, prop: keyof Extract<Translate, object>, builder: StylesheetBuilder): StyleDescriptor;
|
|
115
116
|
export declare function parseUnresolvedColor(color: UnresolvedColor, builder: StylesheetBuilder, property: string, allowAuto: boolean): StyleDescriptor;
|
|
@@ -1 +1 @@
|
|
|
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;AAGtB,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,EAAE,CAAC,CAAA;CAAE,CAChB,CAAC;AA+MF,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,iBAAiB,QAuB3B;AAsPD,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,eAAe,CAAC,qBAAqB,CAAC,EACnD,OAAO,EAAE,iBAAiB,QAM3B;AAED,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,eAAe,CACxB,qBAAqB,GACrB,2BAA2B,GAC3B,yBAAyB,CAC5B,EACD,OAAO,EAAE,iBAAiB,QAsB3B;AAyQD,wBAAgB,eAAe,CAC7B,SAAS,EAAE,KAAK,EAChB,IAAI,EAAE,MAAM,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,EAClC,OAAO,EAAE,iBAAiB,GACzB,eAAe,CAMjB;AA+DD,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE;IAAE,QAAQ,EAAE,UAAU,CAAA;CAAE,CAAC,EAC3D,OAAO,EAAE,iBAAiB,QAmD3B;AAED,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAC,EACzD,OAAO,EAAE,iBAAiB,QA+C3B;AAED,wBAAgB,mBAAmB,CACjC,aAAa,EAAE,YAAY,EAAE,EAC7B,OAAO,EAAE,iBAAiB,EAC1B,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,OAAO,GACjB,eAAe,CAyDjB;AAED,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,EAClD,OAAO,EAAE,iBAAiB,EAC1B,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,OAAO,GACjB,aAAa,CAMf;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,YAAY,EACR,YAAY,GACZ,YAAY,EAAE,GACd,MAAM,GACN,MAAM,GACN,SAAS,GACT,IAAI,EACR,OAAO,EAAE,iBAAiB,EAC1B,QAAQ,EAAE,MAAM,EAChB,SAAS,UAAoC,GAC5C,eAAe,
|
|
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,eA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AAG,MAAM,EAAE,OAAO,EAAE,WAI5C;AACD,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,WA0B3C;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,UAEnC;AAED,wBAAgB,yCAAyC,CACvD,WAAW,EAAE;IAAE,KAAK,EAAE,4CAA4C,CAAA;CAAE,EACpE,OAAO,EAAE,iBAAiB,mBAG3B;AAED,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,4CAA4C,EACnD,OAAO,EAAE,iBAAiB,mBAG3B;AAED,wBAAgB,kBAAkB,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lightningcss-loader.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/lightningcss-loader.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lightningcss-loader.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/lightningcss-loader.ts"],"names":[],"mappings":"AACA,wBAAgB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyDjC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { ActivityIndicator as RNActivityIndicator
|
|
2
|
-
|
|
3
|
-
declare const mapping: StyledConfiguration<typeof RNActivityIndicator>;
|
|
4
|
-
export declare function ActivityIndicator(props: StyledProps<ActivityIndicatorProps, typeof mapping>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
1
|
+
import { ActivityIndicator as RNActivityIndicator } from "react-native";
|
|
2
|
+
export declare const ActivityIndicator: typeof RNActivityIndicator;
|
|
5
3
|
export default ActivityIndicator;
|
|
6
4
|
//# sourceMappingURL=ActivityIndicator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActivityIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/components/ActivityIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,IAAI,mBAAmB,
|
|
1
|
+
{"version":3,"file":"ActivityIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/components/ActivityIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,IAAI,mBAAmB,EAEzC,MAAM,cAAc,CAAC;AAmBtB,eAAO,MAAM,iBAAiB,4BAK7B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { Button as RNButton
|
|
2
|
-
|
|
3
|
-
declare const mapping: StyledConfiguration<typeof RNButton>;
|
|
4
|
-
export declare function Button(props: StyledProps<ButtonProps, typeof mapping>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
1
|
+
import { Button as RNButton } from "react-native";
|
|
2
|
+
export declare const Button: typeof RNButton;
|
|
5
3
|
export default Button;
|
|
6
4
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,QAAQ,EAAoB,MAAM,cAAc,CAAC;AAmBpE,eAAO,MAAM,MAAM,iBAKlB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
1
2
|
import { FlatList as RNFlatList, type FlatListProps } from "react-native";
|
|
2
3
|
import { type StyledConfiguration, type StyledProps } from "react-native-css";
|
|
3
|
-
declare const
|
|
4
|
-
export declare function FlatList<ItemT>(props: StyledProps<FlatListProps<ItemT>, typeof mapping>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
4
|
+
export declare const FlatList: typeof RNFlatList & (<ItemT>(props: StyledProps<FlatListProps<ItemT>, StyledConfiguration<typeof RNFlatList>>) => ReactNode);
|
|
5
5
|
export default FlatList;
|
|
6
6
|
//# sourceMappingURL=FlatList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlatList.d.ts","sourceRoot":"","sources":["../../../../../src/components/FlatList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAE1E,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,WAAW,EACjB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"FlatList.d.ts","sourceRoot":"","sources":["../../../../../src/components/FlatList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAE1E,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,WAAW,EACjB,MAAM,kBAAkB,CAAC;AAW1B,eAAO,MAAM,QAAQ,EAIJ,OAAO,UAAU,GAChC,CAAC,CAAC,KAAK,EACL,KAAK,EAAE,WAAW,CAChB,aAAa,CAAC,KAAK,CAAC,EACpB,mBAAmB,CAAC,OAAO,UAAU,CAAC,CACvC,KACE,SAAS,CAAC,CAAC;AAElB,eAAe,QAAQ,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { Image as RNImage
|
|
2
|
-
|
|
3
|
-
declare const mapping: StyledConfiguration<typeof RNImage>;
|
|
4
|
-
export declare function Image(props: StyledProps<ImageProps, typeof mapping>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
1
|
+
import { Image as RNImage } from "react-native";
|
|
2
|
+
export declare const Image: typeof RNImage;
|
|
5
3
|
export default Image;
|
|
6
4
|
//# sourceMappingURL=Image.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../../../src/components/Image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,OAAO,
|
|
1
|
+
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../../../src/components/Image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,OAAO,EAAmB,MAAM,cAAc,CAAC;AAcjE,eAAO,MAAM,KAAK,gBAKjB,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { ImageBackground as RNImageBackground
|
|
2
|
-
|
|
3
|
-
declare const mapping: StyledConfiguration<typeof RNImageBackground>;
|
|
4
|
-
export declare function ImageBackground(props: StyledProps<ImageBackgroundProps, typeof mapping>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
1
|
+
import { ImageBackground as RNImageBackground } from "react-native";
|
|
2
|
+
export declare const ImageBackground: typeof RNImageBackground;
|
|
5
3
|
export default ImageBackground;
|
|
6
4
|
//# sourceMappingURL=ImageBackground.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageBackground.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,IAAI,iBAAiB,
|
|
1
|
+
{"version":3,"file":"ImageBackground.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,IAAI,iBAAiB,EAErC,MAAM,cAAc,CAAC;AAmBtB,eAAO,MAAM,eAAe,0BAK3B,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { KeyboardAvoidingView as RNKeyboardAvoidingView
|
|
2
|
-
|
|
3
|
-
declare const mapping: StyledConfiguration<typeof RNKeyboardAvoidingView>;
|
|
4
|
-
export declare function KeyboardAvoidingView(props: StyledProps<KeyboardAvoidingViewProps, typeof mapping>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
1
|
+
import { KeyboardAvoidingView as RNKeyboardAvoidingView } from "react-native";
|
|
2
|
+
export declare const KeyboardAvoidingView: typeof RNKeyboardAvoidingView;
|
|
5
3
|
export default KeyboardAvoidingView;
|
|
6
4
|
//# sourceMappingURL=KeyboardAvoidingView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardAvoidingView.d.ts","sourceRoot":"","sources":["../../../../../src/components/KeyboardAvoidingView.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,IAAI,sBAAsB,
|
|
1
|
+
{"version":3,"file":"KeyboardAvoidingView.d.ts","sourceRoot":"","sources":["../../../../../src/components/KeyboardAvoidingView.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,IAAI,sBAAsB,EAE/C,MAAM,cAAc,CAAC;AAgBtB,eAAO,MAAM,oBAAoB,+BAKhC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const mapping: StyledConfiguration<typeof RNPressable>;
|
|
4
|
-
export declare function Pressable(props: StyledProps<PressableProps, typeof mapping>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
1
|
+
import { type PressableProps } from "react-native";
|
|
2
|
+
export declare const Pressable: import("react").ForwardRefExoticComponent<PressableProps & import("react").RefAttributes<import("react-native").View>>;
|
|
5
3
|
export default Pressable;
|
|
6
4
|
//# sourceMappingURL=Pressable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../../../../../src/components/Pressable.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../../../../../src/components/Pressable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAc7E,eAAO,MAAM,SAAS,wHAKrB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { ScrollView as RNScrollView
|
|
2
|
-
|
|
3
|
-
declare const mapping: StyledConfiguration<typeof RNScrollView>;
|
|
4
|
-
export declare function ScrollView(props: StyledProps<ScrollViewProps, typeof mapping>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
1
|
+
import { ScrollView as RNScrollView } from "react-native";
|
|
2
|
+
export declare const ScrollView: typeof RNScrollView;
|
|
5
3
|
export default ScrollView;
|
|
6
4
|
//# sourceMappingURL=ScrollView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollView.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScrollView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,YAAY,
|
|
1
|
+
{"version":3,"file":"ScrollView.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScrollView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,YAAY,EAAwB,MAAM,cAAc,CAAC;AAehF,eAAO,MAAM,UAAU,qBAKtB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const mapping: {
|
|
4
|
-
className: "style";
|
|
5
|
-
};
|
|
6
|
-
export declare function Switch(props: StyledProps<SwitchProps, typeof mapping>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
1
|
+
import { Switch as RNSwitch } from "react-native";
|
|
2
|
+
export declare const Switch: typeof RNSwitch;
|
|
7
3
|
export default Switch;
|
|
8
4
|
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../../src/components/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../../src/components/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,QAAQ,EAAoB,MAAM,cAAc,CAAC;AAcpE,eAAO,MAAM,MAAM,iBAKlB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|