react-native-unistyles 3.0.0-nightly-20250127 → 3.0.0-nightly-20250129
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/android/src/main/cxx/NativeUnistylesModule.cpp +1 -1
- package/android/src/main/java/com/unistyles/NativePlatform+android.kt +1 -2
- package/android/src/main/java/com/unistyles/NativePlatform+insets.kt +4 -0
- package/android/src/main/java/com/unistyles/NativePlatform+listener.kt +2 -1
- package/android/src/main/java/com/unistyles/UnistylesModule.kt +0 -4
- package/components/native/Animated/package.json +5 -0
- package/cxx/core/UnistylesRegistry.cpp +24 -3
- package/cxx/core/UnistylesRegistry.h +1 -0
- package/cxx/hybridObjects/HybridShadowRegistry.cpp +7 -0
- package/lib/commonjs/components/native/Animated.js +23 -0
- package/lib/commonjs/components/native/Animated.js.map +1 -0
- package/lib/commonjs/components/native/ImageBackground.js +3 -1
- package/lib/commonjs/components/native/ImageBackground.js.map +1 -1
- package/lib/commonjs/components/native/Pressable.native.js +15 -2
- package/lib/commonjs/components/native/Pressable.native.js.map +1 -1
- package/lib/commonjs/core/createUnistylesElement.js +26 -22
- package/lib/commonjs/core/createUnistylesElement.js.map +1 -1
- package/lib/commonjs/core/createUnistylesElement.native.js +25 -21
- package/lib/commonjs/core/createUnistylesElement.native.js.map +1 -1
- package/lib/commonjs/core/createUnistylesImageBackground.js +34 -30
- package/lib/commonjs/core/createUnistylesImageBackground.js.map +1 -1
- package/lib/commonjs/utils.js +16 -1
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/commonjs/web/utils/unistyle.js +5 -1
- package/lib/commonjs/web/utils/unistyle.js.map +1 -1
- package/lib/module/components/native/Animated.js +19 -0
- package/lib/module/components/native/Animated.js.map +1 -0
- package/lib/module/components/native/ImageBackground.js +3 -1
- package/lib/module/components/native/ImageBackground.js.map +1 -1
- package/lib/module/components/native/Pressable.native.js +15 -2
- package/lib/module/components/native/Pressable.native.js.map +1 -1
- package/lib/module/core/createUnistylesElement.js +26 -22
- package/lib/module/core/createUnistylesElement.js.map +1 -1
- package/lib/module/core/createUnistylesElement.native.js +25 -21
- package/lib/module/core/createUnistylesElement.native.js.map +1 -1
- package/lib/module/core/createUnistylesImageBackground.js +34 -30
- package/lib/module/core/createUnistylesImageBackground.js.map +1 -1
- package/lib/module/utils.js +14 -0
- package/lib/module/utils.js.map +1 -1
- package/lib/module/web/utils/unistyle.js +5 -1
- package/lib/module/web/utils/unistyle.js.map +1 -1
- package/lib/typescript/src/components/native/ActivityIndicator.d.ts +1 -3
- package/lib/typescript/src/components/native/ActivityIndicator.d.ts.map +1 -1
- package/lib/typescript/src/components/native/Animated.d.ts +39 -0
- package/lib/typescript/src/components/native/Animated.d.ts.map +1 -0
- package/lib/typescript/src/components/native/FlatList.d.ts +1 -3
- package/lib/typescript/src/components/native/FlatList.d.ts.map +1 -1
- package/lib/typescript/src/components/native/Image.d.ts +1 -3
- package/lib/typescript/src/components/native/Image.d.ts.map +1 -1
- package/lib/typescript/src/components/native/ImageBackground.d.ts +1 -8
- package/lib/typescript/src/components/native/ImageBackground.d.ts.map +1 -1
- package/lib/typescript/src/components/native/ImageBackground.native.d.ts +1 -2
- package/lib/typescript/src/components/native/ImageBackground.native.d.ts.map +1 -1
- package/lib/typescript/src/components/native/KeyboardAvoidingView.d.ts +1 -3
- package/lib/typescript/src/components/native/KeyboardAvoidingView.d.ts.map +1 -1
- package/lib/typescript/src/components/native/Pressable.native.d.ts.map +1 -1
- package/lib/typescript/src/components/native/RefreshControl.d.ts +1 -3
- package/lib/typescript/src/components/native/RefreshControl.d.ts.map +1 -1
- package/lib/typescript/src/components/native/ScrollView.d.ts +1 -3
- package/lib/typescript/src/components/native/ScrollView.d.ts.map +1 -1
- package/lib/typescript/src/components/native/SectionList.d.ts +1 -3
- package/lib/typescript/src/components/native/SectionList.d.ts.map +1 -1
- package/lib/typescript/src/components/native/Switch.d.ts +1 -3
- package/lib/typescript/src/components/native/Switch.d.ts.map +1 -1
- package/lib/typescript/src/components/native/Text.d.ts +1 -3
- package/lib/typescript/src/components/native/Text.d.ts.map +1 -1
- package/lib/typescript/src/components/native/TextInput.d.ts +1 -3
- package/lib/typescript/src/components/native/TextInput.d.ts.map +1 -1
- package/lib/typescript/src/components/native/TouchableHighlight.d.ts +1 -3
- package/lib/typescript/src/components/native/TouchableHighlight.d.ts.map +1 -1
- package/lib/typescript/src/components/native/TouchableOpacity.d.ts +1 -3
- package/lib/typescript/src/components/native/TouchableOpacity.d.ts.map +1 -1
- package/lib/typescript/src/components/native/View.d.ts +1 -3
- package/lib/typescript/src/components/native/View.d.ts.map +1 -1
- package/lib/typescript/src/components/native/VirtualizedList.d.ts +1 -3
- package/lib/typescript/src/components/native/VirtualizedList.d.ts.map +1 -1
- package/lib/typescript/src/core/createUnistylesElement.d.ts +1 -7
- package/lib/typescript/src/core/createUnistylesElement.d.ts.map +1 -1
- package/lib/typescript/src/core/createUnistylesElement.native.d.ts +1 -2
- package/lib/typescript/src/core/createUnistylesElement.native.d.ts.map +1 -1
- package/lib/typescript/src/core/createUnistylesImageBackground.d.ts +2 -3
- package/lib/typescript/src/core/createUnistylesImageBackground.d.ts.map +1 -1
- package/lib/typescript/src/utils.d.ts +1 -0
- package/lib/typescript/src/utils.d.ts.map +1 -1
- package/lib/typescript/src/web/utils/unistyle.d.ts.map +1 -1
- package/package.json +3 -1
- package/plugin/consts.js +43 -0
- package/plugin/exotic.js +42 -0
- package/plugin/index.js +10 -30
- package/plugin/variants.js +1 -1
- package/src/components/native/Animated.tsx +17 -0
- package/src/components/native/ImageBackground.tsx +4 -1
- package/src/components/native/Pressable.native.tsx +20 -2
- package/src/core/createUnistylesElement.native.tsx +28 -23
- package/src/core/createUnistylesElement.tsx +34 -29
- package/src/core/createUnistylesImageBackground.tsx +38 -33
- package/src/utils.ts +17 -0
- package/src/web/utils/unistyle.ts +7 -1
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
import { Animated as RNAnimated } from 'react-native';
|
4
|
+
import { View } from './View';
|
5
|
+
import { Text } from './Text';
|
6
|
+
import { FlatList } from './FlatList';
|
7
|
+
import { Image } from './Image';
|
8
|
+
import { ScrollView } from './ScrollView';
|
9
|
+
import { SectionList } from './SectionList';
|
10
|
+
export const Animated = {
|
11
|
+
...RNAnimated,
|
12
|
+
View: RNAnimated.createAnimatedComponent(View),
|
13
|
+
Text: RNAnimated.createAnimatedComponent(Text),
|
14
|
+
FlatList: RNAnimated.createAnimatedComponent(FlatList),
|
15
|
+
Image: RNAnimated.createAnimatedComponent(Image),
|
16
|
+
ScrollView: RNAnimated.createAnimatedComponent(ScrollView),
|
17
|
+
SectionList: RNAnimated.createAnimatedComponent(SectionList)
|
18
|
+
};
|
19
|
+
//# sourceMappingURL=Animated.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["Animated","RNAnimated","View","Text","FlatList","Image","ScrollView","SectionList","createAnimatedComponent"],"sourceRoot":"../../../../src","sources":["components/native/Animated.tsx"],"mappings":";;AAAA,SAASA,QAAQ,IAAIC,UAAU,QAAQ,cAAc;AACrD,SAASC,IAAI,QAAQ,QAAQ;AAC7B,SAASC,IAAI,QAAQ,QAAQ;AAC7B,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAASC,KAAK,QAAQ,SAAS;AAC/B,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,WAAW,QAAQ,eAAe;AAE3C,OAAO,MAAMP,QAAQ,GAAG;EACpB,GAAGC,UAAU;EACbC,IAAI,EAAED,UAAU,CAACO,uBAAuB,CAACN,IAAI,CAAC;EAC9CC,IAAI,EAAEF,UAAU,CAACO,uBAAuB,CAACL,IAAI,CAAC;EAC9CC,QAAQ,EAAEH,UAAU,CAACO,uBAAuB,CAACJ,QAAQ,CAAC;EACtDC,KAAK,EAAEJ,UAAU,CAACO,uBAAuB,CAACH,KAAK,CAAC;EAChDC,UAAU,EAAEL,UAAU,CAACO,uBAAuB,CAACF,UAAU,CAAC;EAC1DC,WAAW,EAAEN,UAAU,CAACO,uBAAuB,CAACD,WAAW;AAC/D,CAAC","ignoreList":[]}
|
@@ -6,8 +6,9 @@ import { forwardRef } from 'react';
|
|
6
6
|
import { getClassName } from '../../core';
|
7
7
|
import { isServer } from '../../web/utils';
|
8
8
|
import { UnistylesShadowRegistry } from '../../web';
|
9
|
+
import { copyComponentProperties } from '../../utils';
|
9
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
10
|
-
|
11
|
+
const UnistylesImageBackground = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
11
12
|
let storedRef = null;
|
12
13
|
let storedImageRef = null;
|
13
14
|
const styleClassNames = getClassName(props.style);
|
@@ -46,4 +47,5 @@ export const ImageBackground = /*#__PURE__*/forwardRef((props, forwardedRef) =>
|
|
46
47
|
})
|
47
48
|
);
|
48
49
|
});
|
50
|
+
export const ImageBackground = copyComponentProperties(NativeImageBackground, UnistylesImageBackground);
|
49
51
|
//# sourceMappingURL=ImageBackground.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","ImageBackground","NativeImageBackground","forwardRef","getClassName","isServer","UnistylesShadowRegistry","jsx","_jsx","props","forwardedRef","storedRef","storedImageRef","styleClassNames","style","imageClassNames","imageStyle","ref","undefined","remove","hash","add","current","imageRef"],"sourceRoot":"../../../../src","sources":["components/native/ImageBackground.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,eAAe,IAAIC,qBAAqB,QAAQ,cAAc;AACvE,SAASC,UAAU,QAAQ,OAAO;AAElC,SAASC,YAAY,QAAQ,YAAY;AACzC,SAASC,QAAQ,QAAQ,iBAAiB;AAC1C,SAASC,uBAAuB,QAAQ,WAAW;AAAA,SAAAC,GAAA,IAAAC,IAAA;
|
1
|
+
{"version":3,"names":["React","ImageBackground","NativeImageBackground","forwardRef","getClassName","isServer","UnistylesShadowRegistry","copyComponentProperties","jsx","_jsx","UnistylesImageBackground","props","forwardedRef","storedRef","storedImageRef","styleClassNames","style","imageClassNames","imageStyle","ref","undefined","remove","hash","add","current","imageRef"],"sourceRoot":"../../../../src","sources":["components/native/ImageBackground.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,eAAe,IAAIC,qBAAqB,QAAQ,cAAc;AACvE,SAASC,UAAU,QAAQ,OAAO;AAElC,SAASC,YAAY,QAAQ,YAAY;AACzC,SAASC,QAAQ,QAAQ,iBAAiB;AAC1C,SAASC,uBAAuB,QAAQ,WAAW;AACnD,SAASC,uBAAuB,QAAQ,aAAa;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAOrD,MAAMC,wBAAwB,gBAAGP,UAAU,CAAiB,CAACQ,KAAK,EAAEC,YAAY,KAAK;EACjF,IAAIC,SAAuC,GAAG,IAAI;EAClD,IAAIC,cAA4C,GAAG,IAAI;EACvD,MAAMC,eAAe,GAAGX,YAAY,CAACO,KAAK,CAACK,KAAK,CAAC;EACjD,MAAMC,eAAe,GAAGb,YAAY,CAACO,KAAK,CAACO,UAAU,CAAC;EAEtD;IAAA;IACI;IACAT,IAAA,CAACP,qBAAqB;MAAA,GACdS,KAAK;MACTK,KAAK,EAAED,eAAgB;MACvBG,UAAU,EAAED,eAAgB;MAC5BE,GAAG,EAAEd,QAAQ,CAAC,CAAC,GAAGe,SAAS,GAAGD,GAAG,IAAI;QACjC,IAAI,CAACA,GAAG,EAAE;UACN;UACAb,uBAAuB,CAACe,MAAM,CAACR,SAAS,EAAEE,eAAe,EAAEO,IAAI,CAAC;QACpE;QAEAT,SAAS,GAAGM,GAAG;QACf;QACAb,uBAAuB,CAACiB,GAAG,CAACJ,GAAG,EAAEJ,eAAe,EAAEO,IAAI,CAAC;QAEvD,IAAI,OAAOV,YAAY,KAAK,UAAU,EAAE;UACpC,OAAOA,YAAY,CAACO,GAAG,CAAC;QAC5B;QAEA,IAAIP,YAAY,EAAE;UACdA,YAAY,CAACY,OAAO,GAAGL,GAAG;QAC9B;MACJ,CAAE;MACFM,QAAQ,EAAEpB,QAAQ,CAAC,CAAC,GAAGe,SAAS,GAAGD,GAAG,IAAI;QACtC,IAAI,CAACA,GAAG,EAAE;UACN;UACAb,uBAAuB,CAACe,MAAM,CAACP,cAAc,EAAEG,eAAe,EAAEK,IAAI,CAAC;QACzE;QAEAR,cAAc,GAAGK,GAAG;QACpB;QACAb,uBAAuB,CAACiB,GAAG,CAACJ,GAAG,EAAEF,eAAe,EAAEK,IAAI,CAAC;MAC3D;IAAE,CACL;EAAC;AAEV,CAAC,CAAC;AAEF,OAAO,MAAMrB,eAAe,GAAGM,uBAAuB,CAACL,qBAAqB,EAAEQ,wBAAwB,CAAC","ignoreList":[]}
|
@@ -5,6 +5,17 @@ import { Pressable as NativePressableReactNative } from 'react-native';
|
|
5
5
|
import { UnistylesShadowRegistry } from '../../specs';
|
6
6
|
import { passForwardedRef } from '../../core';
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
8
|
+
const getStyles = (styleProps = {}) => {
|
9
|
+
const unistyleKey = Object.keys(styleProps).find(key => key.startsWith('unistyles-'));
|
10
|
+
if (!unistyleKey) {
|
11
|
+
return styleProps;
|
12
|
+
}
|
13
|
+
return {
|
14
|
+
// styles without C++ state
|
15
|
+
...styleProps[unistyleKey].uni__getStyles(),
|
16
|
+
[unistyleKey]: styleProps[unistyleKey].uni__getStyles()
|
17
|
+
};
|
18
|
+
};
|
8
19
|
export const Pressable = /*#__PURE__*/forwardRef(({
|
9
20
|
variants,
|
10
21
|
style,
|
@@ -26,7 +37,7 @@ export const Pressable = /*#__PURE__*/forwardRef(({
|
|
26
37
|
pressed: false
|
27
38
|
}) : style;
|
28
39
|
|
29
|
-
// @ts-expect-error
|
40
|
+
// @ts-expect-error - this is hidden from TS
|
30
41
|
UnistylesShadowRegistry.add(ref, unistyles);
|
31
42
|
if (ref) {
|
32
43
|
storedRef.current = ref;
|
@@ -34,11 +45,13 @@ export const Pressable = /*#__PURE__*/forwardRef(({
|
|
34
45
|
return passForwardedRef(props, ref, forwardedRef);
|
35
46
|
},
|
36
47
|
style: state => {
|
37
|
-
const unistyles = typeof style === 'function' ? style(state) : style;
|
48
|
+
const unistyles = typeof style === 'function' ? style(state) : getStyles(style);
|
38
49
|
if (!storedRef.current) {
|
39
50
|
return unistyles;
|
40
51
|
}
|
41
52
|
|
53
|
+
// @ts-expect-error - this is hidden from TS
|
54
|
+
UnistylesShadowRegistry.remove(storedRef.current);
|
42
55
|
// @ts-expect-error - this is hidden from TS
|
43
56
|
UnistylesShadowRegistry.add(storedRef.current, unistyles);
|
44
57
|
return unistyles;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","forwardRef","useLayoutEffect","useRef","Pressable","NativePressableReactNative","UnistylesShadowRegistry","passForwardedRef","jsx","_jsx","variants","style","props","forwardedRef","storedRef","current","remove","ref","unistyles","pressed","add","state"],"sourceRoot":"../../../../src","sources":["components/native/Pressable.native.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,eAAe,EAAEC,MAAM,QAAQ,OAAO;AAClE,SAASC,SAAS,IAAIC,0BAA0B,QAAQ,cAAc;AAEtE,SAASC,uBAAuB,QAAQ,aAAa;AACrD,SAASC,gBAAgB,QAAQ,YAAY;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAM7C,OAAO,
|
1
|
+
{"version":3,"names":["React","forwardRef","useLayoutEffect","useRef","Pressable","NativePressableReactNative","UnistylesShadowRegistry","passForwardedRef","jsx","_jsx","getStyles","styleProps","unistyleKey","Object","keys","find","key","startsWith","uni__getStyles","variants","style","props","forwardedRef","storedRef","current","remove","ref","unistyles","pressed","add","state"],"sourceRoot":"../../../../src","sources":["components/native/Pressable.native.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,eAAe,EAAEC,MAAM,QAAQ,OAAO;AAClE,SAASC,SAAS,IAAIC,0BAA0B,QAAQ,cAAc;AAEtE,SAASC,uBAAuB,QAAQ,aAAa;AACrD,SA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EK,GAAG,EAAEJ,YAAY,CAAC;IACrD,CAAE;IACFF,KAAK,EAAEU,KAAK,IAAI;MACZ,MAAMH,SAAS,GAAG,OAAOP,KAAK,KAAK,UAAU,GACvCA,KAAK,CAACU,KAAK,CAAC,GACZpB,SAAS,CAACU,KAAuC,CAAC;MAExD,IAAI,CAACG,SAAS,CAACC,OAAO,EAAE;QACpB,OAAOG,SAAS;MACpB;;MAEA;MACArB,uBAAuB,CAACmB,MAAM,CAACF,SAAS,CAACC,OAAO,CAAC;MACjD;MACAlB,uBAAuB,CAACuB,GAAG,CAACN,SAAS,CAACC,OAAO,EAAEG,SAAS,CAAC;MAEzD,OAAOA,SAAS;IACpB;EAAE,CACL,CAAC;AAEV,CAAC,CAAC","ignoreList":[]}
|
@@ -5,30 +5,34 @@ import { getClassName } from './getClassname';
|
|
5
5
|
import { isServer } from '../web/utils';
|
6
6
|
import { UnistylesShadowRegistry } from '../web';
|
7
7
|
import { maybeWarnAboutMultipleUnistyles } from './warn';
|
8
|
+
import { copyComponentProperties } from '../utils';
|
8
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
9
|
-
export const createUnistylesElement = Component =>
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
10
|
+
export const createUnistylesElement = Component => {
|
11
|
+
const UnistylesComponent = /*#__PURE__*/React.forwardRef((props, forwardedRef) => {
|
12
|
+
let storedRef = null;
|
13
|
+
const classNames = getClassName(props.style);
|
14
|
+
return /*#__PURE__*/_jsx(Component, {
|
15
|
+
...props,
|
16
|
+
style: classNames,
|
17
|
+
ref: isServer() ? undefined : ref => {
|
18
|
+
// @ts-ignore we don't know the type of the component
|
19
|
+
maybeWarnAboutMultipleUnistyles(props.style, Component.displayName);
|
20
|
+
if (!ref) {
|
21
|
+
// @ts-expect-error hidden from TS
|
22
|
+
UnistylesShadowRegistry.remove(storedRef, classNames?.hash);
|
23
|
+
}
|
24
|
+
storedRef = ref;
|
19
25
|
// @ts-expect-error hidden from TS
|
20
|
-
UnistylesShadowRegistry.
|
26
|
+
UnistylesShadowRegistry.add(ref, classNames?.hash);
|
27
|
+
if (typeof forwardedRef === 'function') {
|
28
|
+
return forwardedRef(ref);
|
29
|
+
}
|
30
|
+
if (forwardedRef) {
|
31
|
+
forwardedRef.current = ref;
|
32
|
+
}
|
21
33
|
}
|
22
|
-
|
23
|
-
// @ts-expect-error hidden from TS
|
24
|
-
UnistylesShadowRegistry.add(ref, classNames?.hash);
|
25
|
-
if (typeof forwardedRef === 'function') {
|
26
|
-
return forwardedRef(ref);
|
27
|
-
}
|
28
|
-
if (forwardedRef) {
|
29
|
-
forwardedRef.current = ref;
|
30
|
-
}
|
31
|
-
}
|
34
|
+
});
|
32
35
|
});
|
33
|
-
|
36
|
+
return copyComponentProperties(Component, UnistylesComponent);
|
37
|
+
};
|
34
38
|
//# sourceMappingURL=createUnistylesElement.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","getClassName","isServer","UnistylesShadowRegistry","maybeWarnAboutMultipleUnistyles","jsx","_jsx","createUnistylesElement","Component","forwardRef","props","forwardedRef","storedRef","classNames","style","ref","undefined","displayName","remove","hash","add","current"],"sourceRoot":"../../../src","sources":["core/createUnistylesElement.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,uBAAuB,QAAQ,QAAQ;AAChD,SAASC,+BAA+B,QAAQ,QAAQ;AAAA,SAAAC,GAAA,IAAAC,IAAA;
|
1
|
+
{"version":3,"names":["React","getClassName","isServer","UnistylesShadowRegistry","maybeWarnAboutMultipleUnistyles","copyComponentProperties","jsx","_jsx","createUnistylesElement","Component","UnistylesComponent","forwardRef","props","forwardedRef","storedRef","classNames","style","ref","undefined","displayName","remove","hash","add","current"],"sourceRoot":"../../../src","sources":["core/createUnistylesElement.ts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ayoutEffect, useRef } from 'react';
|
|
4
4
|
import { UnistylesShadowRegistry } from '../specs';
|
5
5
|
import { passForwardedRef } from './passForwardRef';
|
6
6
|
import { maybeWarnAboutMultipleUnistyles } from './warn';
|
7
|
+
import { copyComponentProperties } from '../utils';
|
7
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
8
9
|
const getNativeRef = (Component, ref) => {
|
9
10
|
switch (Component.name) {
|
@@ -17,27 +18,30 @@ const getNativeRef = (Component, ref) => {
|
|
17
18
|
return ref;
|
18
19
|
}
|
19
20
|
};
|
20
|
-
export const createUnistylesElement = Component =>
|
21
|
-
const
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
21
|
+
export const createUnistylesElement = Component => {
|
22
|
+
const UnistylesComponent = /*#__PURE__*/React.forwardRef((props, forwardedRef) => {
|
23
|
+
const storedRef = useRef(null);
|
24
|
+
useLayoutEffect(() => {
|
25
|
+
return () => {
|
26
|
+
if (storedRef.current) {
|
27
|
+
// @ts-ignore
|
28
|
+
UnistylesShadowRegistry.remove(storedRef.current);
|
29
|
+
}
|
30
|
+
};
|
31
|
+
}, []);
|
32
|
+
return /*#__PURE__*/_jsx(Component, {
|
33
|
+
...props,
|
34
|
+
ref: ref => {
|
35
|
+
if (ref) {
|
36
|
+
storedRef.current = getNativeRef(Component, ref);
|
37
|
+
}
|
38
|
+
passForwardedRef(props, ref, forwardedRef);
|
37
39
|
|
38
|
-
|
39
|
-
|
40
|
-
|
40
|
+
// @ts-ignore we don't know the type of the component
|
41
|
+
maybeWarnAboutMultipleUnistyles(props.style, Component.displayName);
|
42
|
+
}
|
43
|
+
});
|
41
44
|
});
|
42
|
-
|
45
|
+
return copyComponentProperties(Component, UnistylesComponent);
|
46
|
+
};
|
43
47
|
//# sourceMappingURL=createUnistylesElement.native.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","useLayoutEffect","useRef","UnistylesShadowRegistry","passForwardedRef","maybeWarnAboutMultipleUnistyles","jsx","_jsx","getNativeRef","Component","ref","name","viewRef","current","getNativeScrollRef","getScrollRef","createUnistylesElement","forwardRef","props","forwardedRef","storedRef","remove","style","displayName"],"sourceRoot":"../../../src","sources":["core/createUnistylesElement.native.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,eAAe,EAAEC,MAAM,QAAQ,OAAO;AACtD,SAASC,uBAAuB,QAAQ,UAAU;AAClD,SAASC,gBAAgB,QAAQ,kBAAkB;AACnD,SAASC,+BAA+B,QAAQ,QAAQ;AAAA,SAAAC,GAAA,IAAAC,IAAA;
|
1
|
+
{"version":3,"names":["React","useLayoutEffect","useRef","UnistylesShadowRegistry","passForwardedRef","maybeWarnAboutMultipleUnistyles","copyComponentProperties","jsx","_jsx","getNativeRef","Component","ref","name","viewRef","current","getNativeScrollRef","getScrollRef","createUnistylesElement","UnistylesComponent","forwardRef","props","forwardedRef","storedRef","remove","style","displayName"],"sourceRoot":"../../../src","sources":["core/createUnistylesElement.native.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,eAAe,EAAEC,MAAM,QAAQ,OAAO;AACtD,SAASC,uBAAuB,QAAQ,UAAU;AAClD,SAASC,gBAAgB,QAAQ,kBAAkB;AACnD,SAASC,+BAA+B,QAAQ,QAAQ;AACxD,SAASC,uBAAuB,QAAQ,UAAU;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAElD,MAAMC,YAAY,GAAGA,CAACC,SAAc,EAAEC,GAAQ,KAAK;EAC/C,QAAQD,SAAS,CAACE,IAAI;IAClB,KAAK,sBAAsB;MACvB,OAAOD,GAAG,CAACE,OAAO,EAAEC,OAAO;IAC/B,KAAK,UAAU;MACX,OAAOH,GAAG,CAACI,kBAAkB,GAAG,CAAC;IACrC,KAAK,iBAAiB;MAClB,OAAOJ,GAAG,CAACK,YAAY,GAAG,CAAC;IAC/B;MACI,OAAOL,GAAG;EAClB;AACJ,CAAC;AAED,OAAO,MAAMM,sBAAsB,GAAIP,SAAc,IAAK;EACtD,MAAMQ,kBAAkB,gBAAGlB,KAAK,CAACmB,UAAU,CAAC,CAACC,KAAK,EAAEC,YAAY,KAAK;IACjE,MAAMC,SAAS,GAAGpB,MAAM,CAAU,IAAI,CAAC;IAEvCD,eAAe,CAAC,MAAM;MAClB,OAAO,MAAM;QACT,IAAIqB,SAAS,CAACR,OAAO,EAAE;UACnB;UACAX,uBAAuB,CAACoB,MAAM,CAACD,SAAS,CAACR,OAAO,CAAC;QACrD;MACJ,CAAC;IACL,CAAC,EAAE,EAAE,CAAC;IAEN,oBACIN,IAAA,CAACE,SAAS;MAAA,GACFU,KAAK;MACTT,GAAG,EAAGA,GAAY,IAAK;QACnB,IAAIA,GAAG,EAAE;UACLW,SAAS,CAACR,OAAO,GAAGL,YAAY,CAACC,SAAS,EAAEC,GAAG,CAAC;QACpD;QAEAP,gBAAgB,CAACgB,KAAK,EAAET,GAAG,EAAEU,YAAY,CAAC;;QAE1C;QACAhB,+BAA+B,CAACe,KAAK,CAACI,KAAK,EAAEd,SAAS,CAACe,WAAW,CAAC;MACvE;IAAE,CACL,CAAC;EAEV,CAAC,CAAC;EAEF,OAAOnB,uBAAuB,CAACI,SAAS,EAAEQ,kBAAkB,CAAC;AACjE,CAAC","ignoreList":[]}
|
@@ -4,39 +4,43 @@ import React, { useLayoutEffect, useRef } from 'react';
|
|
4
4
|
import { UnistylesShadowRegistry } from '../specs';
|
5
5
|
import { passForwardedRef } from './passForwardRef';
|
6
6
|
import { maybeWarnAboutMultipleUnistyles } from './warn';
|
7
|
+
import { copyComponentProperties } from '../utils';
|
7
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
8
|
-
export const createUnistylesImageBackground = Component =>
|
9
|
-
const
|
10
|
-
|
11
|
-
|
12
|
-
if (storedImageRef.current) {
|
13
|
-
// @ts-ignore
|
14
|
-
UnistylesShadowRegistry.remove(storedImageRef.current);
|
15
|
-
}
|
16
|
-
};
|
17
|
-
}, []);
|
18
|
-
|
19
|
-
// @ts-expect-error we don't know the type of the component
|
20
|
-
maybeWarnAboutMultipleUnistyles(props.style, 'ImageBackground');
|
21
|
-
// @ts-ignore we don't know the type of the component
|
22
|
-
maybeWarnAboutMultipleUnistyles(props.imageStyle, 'ImageBackground');
|
23
|
-
return /*#__PURE__*/_jsx(Component, {
|
24
|
-
...props,
|
25
|
-
ref: ref => {
|
26
|
-
passForwardedRef(props, ref, forwardedRef);
|
9
|
+
export const createUnistylesImageBackground = Component => {
|
10
|
+
const UnistylesImageBackground = /*#__PURE__*/React.forwardRef((props, forwardedRef) => {
|
11
|
+
const storedImageRef = useRef(null);
|
12
|
+
useLayoutEffect(() => {
|
27
13
|
return () => {
|
28
|
-
|
29
|
-
|
14
|
+
if (storedImageRef.current) {
|
15
|
+
// @ts-ignore
|
16
|
+
UnistylesShadowRegistry.remove(storedImageRef.current);
|
17
|
+
}
|
30
18
|
};
|
31
|
-
},
|
32
|
-
imageRef: ref => {
|
33
|
-
if (ref) {
|
34
|
-
storedImageRef.current = ref;
|
35
|
-
}
|
19
|
+
}, []);
|
36
20
|
|
37
|
-
|
38
|
-
|
39
|
-
|
21
|
+
// @ts-expect-error we don't know the type of the component
|
22
|
+
maybeWarnAboutMultipleUnistyles(props.style, 'ImageBackground');
|
23
|
+
// @ts-ignore we don't know the type of the component
|
24
|
+
maybeWarnAboutMultipleUnistyles(props.imageStyle, 'ImageBackground');
|
25
|
+
return /*#__PURE__*/_jsx(Component, {
|
26
|
+
...props,
|
27
|
+
ref: ref => {
|
28
|
+
passForwardedRef(props, ref, forwardedRef);
|
29
|
+
return () => {
|
30
|
+
// @ts-ignore
|
31
|
+
UnistylesShadowRegistry.remove(ref);
|
32
|
+
};
|
33
|
+
},
|
34
|
+
imageRef: ref => {
|
35
|
+
if (ref) {
|
36
|
+
storedImageRef.current = ref;
|
37
|
+
}
|
38
|
+
|
39
|
+
// @ts-expect-error web types are not compatible with RN styles
|
40
|
+
UnistylesShadowRegistry.add(ref, props.imageStyle);
|
41
|
+
}
|
42
|
+
});
|
40
43
|
});
|
41
|
-
|
44
|
+
return copyComponentProperties(Component, UnistylesImageBackground);
|
45
|
+
};
|
42
46
|
//# sourceMappingURL=createUnistylesImageBackground.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","useLayoutEffect","useRef","UnistylesShadowRegistry","passForwardedRef","maybeWarnAboutMultipleUnistyles","jsx","_jsx","createUnistylesImageBackground","Component","forwardRef","props","forwardedRef","storedImageRef","current","remove","style","imageStyle","ref","imageRef","add"],"sourceRoot":"../../../src","sources":["core/createUnistylesImageBackground.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,eAAe,EAAEC,MAAM,QAAQ,OAAO;AAEtD,SAASC,uBAAuB,QAAQ,UAAU;AAClD,SAASC,gBAAgB,QAAQ,kBAAkB;AACnD,SAASC,+BAA+B,QAAQ,QAAQ;AAAA,SAAAC,GAAA,IAAAC,IAAA;
|
1
|
+
{"version":3,"names":["React","useLayoutEffect","useRef","UnistylesShadowRegistry","passForwardedRef","maybeWarnAboutMultipleUnistyles","copyComponentProperties","jsx","_jsx","createUnistylesImageBackground","Component","UnistylesImageBackground","forwardRef","props","forwardedRef","storedImageRef","current","remove","style","imageStyle","ref","imageRef","add"],"sourceRoot":"../../../src","sources":["core/createUnistylesImageBackground.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,eAAe,EAAEC,MAAM,QAAQ,OAAO;AAEtD,SAASC,uBAAuB,QAAQ,UAAU;AAClD,SAASC,gBAAgB,QAAQ,kBAAkB;AACnD,SAASC,+BAA+B,QAAQ,QAAQ;AACxD,SAASC,uBAAuB,QAAQ,UAAU;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAElD,OAAO,MAAMC,8BAA8B,GAAIC,SAAiC,IAAK;EACjF,MAAMC,wBAAwB,gBAAGX,KAAK,CAACY,UAAU,CAAwC,CAACC,KAAK,EAAEC,YAAY,KAAK;IAC9G,MAAMC,cAAc,GAAGb,MAAM,CAAe,IAAI,CAAC;IAEjDD,eAAe,CAAC,MAAM;MAClB,OAAO,MAAM;QACT,IAAIc,cAAc,CAACC,OAAO,EAAE;UACxB;UACAb,uBAAuB,CAACc,MAAM,CAACF,cAAc,CAACC,OAAO,CAAC;QAC1D;MACJ,CAAC;IACL,CAAC,EAAE,EAAE,CAAC;;IAEN;IACAX,+BAA+B,CAACQ,KAAK,CAACK,KAAK,EAAE,iBAAiB,CAAC;IAC/D;IACAb,+BAA+B,CAACQ,KAAK,CAACM,UAAU,EAAE,iBAAiB,CAAC;IAEpE,oBACIX,IAAA,CAACE,SAAS;MAAA,GACFG,KAAK;MACTO,GAAG,EAAEA,GAAG,IAAI;QACRhB,gBAAgB,CAACS,KAAK,EAAEO,GAAG,EAAEN,YAAY,CAAC;QAE1C,OAAO,MAAM;UACT;UACAX,uBAAuB,CAACc,MAAM,CAACG,GAAG,CAAC;QACvC,CAAC;MACL,CAAE;MACFC,QAAQ,EAAED,GAAG,IAAI;QACb,IAAIA,GAAG,EAAE;UACLL,cAAc,CAACC,OAAO,GAAGI,GAAG;QAChC;;QAEA;QACAjB,uBAAuB,CAACmB,GAAG,CAACF,GAAG,EAAEP,KAAK,CAACM,UAAU,CAAC;MACtD;IAAE,CACL,CAAC;EAEV,CAAC,CAAC;EAEF,OAAOb,uBAAuB,CAACI,SAAS,EAAEC,wBAAwB,CAAC;AACvE,CAAC","ignoreList":[]}
|
package/lib/module/utils.js
CHANGED
@@ -19,4 +19,18 @@ export const deepMergeObjects = (...sources) => {
|
|
19
19
|
});
|
20
20
|
return target;
|
21
21
|
};
|
22
|
+
export const copyComponentProperties = (Component, UnistylesComponent) => {
|
23
|
+
Object.entries(Component).forEach(([key, value]) => {
|
24
|
+
// Filter out the keys we don't want to copy
|
25
|
+
if (['$$typeof', 'render'].includes(key)) {
|
26
|
+
return;
|
27
|
+
}
|
28
|
+
UnistylesComponent[key] = value;
|
29
|
+
});
|
30
|
+
|
31
|
+
// Those are not enumerable, so we need to copy them manually
|
32
|
+
UnistylesComponent.displayName = Component.displayName;
|
33
|
+
UnistylesComponent.name = Component.name;
|
34
|
+
return UnistylesComponent;
|
35
|
+
};
|
22
36
|
//# sourceMappingURL=utils.js.map
|
package/lib/module/utils.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["isDefined","value","undefined","deepMergeObjects","sources","target","filter","forEach","source","Object","keys","key","sourceValue","targetValue"],"sourceRoot":"../../src","sources":["utils.ts"],"mappings":";;AAAA,OAAO,MAAMA,SAAS,GAAOC,KAAQ,IAA8BA,KAAK,KAAKC,SAAS,IAAID,KAAK,KAAK,IAAI;AAExG,OAAO,MAAME,gBAAgB,GAAGA,CAAqC,GAAGC,OAAiB,KAAK;EAC1F,MAAMC,MAAM,GAAG,CAAC,CAAM;EAEtBD,OAAO,CACFE,MAAM,CAACN,SAAS,CAAC,CACjBO,OAAO,CAACC,MAAM,IAAI;IACfC,MAAM,CAACC,IAAI,CAACF,MAAM,CAAC,CAACD,OAAO,CAACI,GAAG,IAAI;MAC/B,MAAMC,WAAW,GAAGJ,MAAM,CAACG,GAAG,CAAC;MAC/B,MAAME,WAAW,GAAGR,MAAM,CAACM,GAAG,CAAC;MAE/B,IAAIF,MAAM,CAACG,WAAW,CAAC,KAAKA,WAAW,IAAIH,MAAM,CAACI,WAAW,CAAC,KAAKA,WAAW,EAAE;QAC5E;QACAR,MAAM,CAACM,GAAG,CAAC,GAAGR,gBAAgB,CAACU,WAAW,EAAED,WAAW,CAAC;QAExD;MACJ;;MAEA;MACAP,MAAM,CAACM,GAAG,CAAC,GAAGC,WAAW;IACjC,CAAC,CAAC;EACN,CAAC,CAAC;EAEF,OAAOP,MAAM;AACjB,CAAC","ignoreList":[]}
|
1
|
+
{"version":3,"names":["isDefined","value","undefined","deepMergeObjects","sources","target","filter","forEach","source","Object","keys","key","sourceValue","targetValue","copyComponentProperties","Component","UnistylesComponent","entries","includes","displayName","name"],"sourceRoot":"../../src","sources":["utils.ts"],"mappings":";;AAAA,OAAO,MAAMA,SAAS,GAAOC,KAAQ,IAA8BA,KAAK,KAAKC,SAAS,IAAID,KAAK,KAAK,IAAI;AAExG,OAAO,MAAME,gBAAgB,GAAGA,CAAqC,GAAGC,OAAiB,KAAK;EAC1F,MAAMC,MAAM,GAAG,CAAC,CAAM;EAEtBD,OAAO,CACFE,MAAM,CAACN,SAAS,CAAC,CACjBO,OAAO,CAACC,MAAM,IAAI;IACfC,MAAM,CAACC,IAAI,CAACF,MAAM,CAAC,CAACD,OAAO,CAACI,GAAG,IAAI;MAC/B,MAAMC,WAAW,GAAGJ,MAAM,CAACG,GAAG,CAAC;MAC/B,MAAME,WAAW,GAAGR,MAAM,CAACM,GAAG,CAAC;MAE/B,IAAIF,MAAM,CAACG,WAAW,CAAC,KAAKA,WAAW,IAAIH,MAAM,CAACI,WAAW,CAAC,KAAKA,WAAW,EAAE;QAC5E;QACAR,MAAM,CAACM,GAAG,CAAC,GAAGR,gBAAgB,CAACU,WAAW,EAAED,WAAW,CAAC;QAExD;MACJ;;MAEA;MACAP,MAAM,CAACM,GAAG,CAAC,GAAGC,WAAW;IACjC,CAAC,CAAC;EACN,CAAC,CAAC;EAEF,OAAOP,MAAM;AACjB,CAAC;AAED,OAAO,MAAMS,uBAAuB,GAAGA,CAACC,SAAc,EAAEC,kBAAuB,KAAK;EAChFP,MAAM,CAACQ,OAAO,CAACF,SAAS,CAAC,CAACR,OAAO,CAAC,CAAC,CAACI,GAAG,EAAEV,KAAK,CAAC,KAAK;IAChD;IACA,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAACiB,QAAQ,CAACP,GAAG,CAAC,EAAE;MACtC;IACJ;IAEAK,kBAAkB,CAACL,GAAG,CAAC,GAAGV,KAAK;EACnC,CAAC,CAAC;;EAEF;EACAe,kBAAkB,CAACG,WAAW,GAAGJ,SAAS,CAACI,WAAW;EACtDH,kBAAkB,CAACI,IAAI,GAAGL,SAAS,CAACK,IAAI;EAExC,OAAOJ,kBAAkB;AAC7B,CAAC","ignoreList":[]}
|
@@ -34,7 +34,11 @@ export const extractSecrets = object => {
|
|
34
34
|
if (!secrets) {
|
35
35
|
return undefined;
|
36
36
|
}
|
37
|
-
|
37
|
+
const hiddenSecrets = Object.getOwnPropertyDescriptors(secrets);
|
38
|
+
if (Object.keys(hiddenSecrets).length === 0) {
|
39
|
+
return undefined;
|
40
|
+
}
|
41
|
+
return reduceObject(hiddenSecrets, secret => secret.value);
|
38
42
|
};
|
39
43
|
export const removeInlineStyles = values => {
|
40
44
|
const returnValue = {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["ColorScheme","Orientation","isUnistylesMq","parseMq","keyInObject","reduceObject","UnistylesWeb","schemeToTheme","scheme","Dark","Light","assignSecrets","object","secrets","secretsId","Math","random","toString","slice","Object","defineProperties","secret","value","enumerable","configurable","extractSecrets","undefined","entries","find","key","startsWith","getOwnPropertyDescriptors","removeInlineStyles","values","returnValue","isInDocument","element","document","body","contains","getMediaQuery","query","allBreakpoints","includes","minWidth","maxWidth","minHeight","maxHeight","queries","filter","Boolean","join","breakpointValue","runtime","breakpoints","nextBreakpoint","b","map","sort","a","extractUnistyleDependencies","dependencies","uni__dependencies","Array","isArray"],"sourceRoot":"../../../../src","sources":["web/utils/unistyle.ts"],"mappings":";;AACA,SAASA,WAAW,EAAEC,WAAW,QAAQ,mBAAmB;AAE5D,SAASC,aAAa,EAAEC,OAAO,QAAQ,UAAU;AACjD,SAASC,WAAW,EAAEC,YAAY,QAAQ,UAAU;AAEpD,SAASC,YAAY,QAAQ,UAAU;AAEvC,OAAO,MAAMC,aAAa,GAAIC,MAAmB,IAAK;EAClD,QAAQA,MAAM;IACV,KAAKR,WAAW,CAACS,IAAI;MACjB,OAAO,MAAM;IACjB,KAAKT,WAAW,CAACU,KAAK;IACtB;MACI,OAAO,OAAO;EACtB;AACJ,CAAC;AASD,OAAO,MAAMC,aAAa,GAAGA,CAAIC,MAAS,EAAEC,OAAwB,KAAK;EACrE,MAAMC,SAAS,GAAGC,IAAI,CAACC,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,EAAE,CAAC,CAACC,KAAK,CAAC,CAAC,CAAC;;EAErD;EACAN,MAAM,CAAC,aAAaE,SAAS,EAAE,CAAC,GAAG,CAAC,CAAC;EACrC;EACAK,MAAM,CAACC,gBAAgB,CAACR,MAAM,CAAC,aAAaE,SAAS,EAAE,CAAC,EAAET,YAAY,CAACQ,OAAO,EAAEQ,MAAM,KAAK;IACvFC,KAAK,EAAED,MAAM;IACbE,UAAU,EAAE,KAAK;IACjBC,YAAY,EAAE;EAClB,CAAC,CAAC,CAAC,CAAC;EAEJ,OAAOZ,MAAM;AACjB,CAAC;AAED,OAAO,MAAMa,cAAc,GAAIb,MAAW,IAAK;EAC3C,IAAI,CAACA,MAAM,EAAE;IACT,OAAOc,SAAS;EACpB;EAEA,MAAM,GAAGb,OAAO,CAAC,GAAGM,MAAM,CAACQ,OAAO,CAACf,MAAM,CAAC,CAACgB,IAAI,CAAC,CAAC,CAACC,GAAG,CAAC,KAAKA,GAAG,CAACC,UAAU,CAAC,YAAY,CAAC,CAAC,IAAI,EAAE;EAE9F,IAAI,CAACjB,OAAO,EAAE;IACV,OAAOa,SAAS;EACpB;EAEA,
|
1
|
+
{"version":3,"names":["ColorScheme","Orientation","isUnistylesMq","parseMq","keyInObject","reduceObject","UnistylesWeb","schemeToTheme","scheme","Dark","Light","assignSecrets","object","secrets","secretsId","Math","random","toString","slice","Object","defineProperties","secret","value","enumerable","configurable","extractSecrets","undefined","entries","find","key","startsWith","hiddenSecrets","getOwnPropertyDescriptors","keys","length","removeInlineStyles","values","returnValue","isInDocument","element","document","body","contains","getMediaQuery","query","allBreakpoints","includes","minWidth","maxWidth","minHeight","maxHeight","queries","filter","Boolean","join","breakpointValue","runtime","breakpoints","nextBreakpoint","b","map","sort","a","extractUnistyleDependencies","dependencies","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ues | Array<import("../../types").UnistylesValues>;
|
3
|
-
} & import("react").RefAttributes<unknown>>;
|
1
|
+
export declare const ActivityIndicator: any;
|
4
2
|
//# sourceMappingURL=ActivityIndicator.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ActivityIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/components/native/ActivityIndicator.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB
|
1
|
+
{"version":3,"file":"ActivityIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/components/native/ActivityIndicator.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,KAAkD,CAAA"}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { Animated as RNAnimated } from 'react-native';
|
2
|
+
export declare const Animated: {
|
3
|
+
View: RNAnimated.AnimatedComponent<any>;
|
4
|
+
Text: RNAnimated.AnimatedComponent<any>;
|
5
|
+
FlatList: RNAnimated.AnimatedComponent<any>;
|
6
|
+
Image: RNAnimated.AnimatedComponent<any>;
|
7
|
+
ScrollView: RNAnimated.AnimatedComponent<any>;
|
8
|
+
SectionList: RNAnimated.AnimatedComponent<any>;
|
9
|
+
decay(value: RNAnimated.AnimatedValue | RNAnimated.AnimatedValueXY, config: RNAnimated.DecayAnimationConfig): RNAnimated.CompositeAnimation;
|
10
|
+
add<OutputT extends number | string>(a: RNAnimated.Animated, b: RNAnimated.Animated): RNAnimated.AnimatedAddition<OutputT>;
|
11
|
+
subtract<OutputT extends number | string>(a: RNAnimated.Animated, b: RNAnimated.Animated): RNAnimated.AnimatedSubtraction<OutputT>;
|
12
|
+
divide<OutputT extends number | string>(a: RNAnimated.Animated, b: RNAnimated.Animated): RNAnimated.AnimatedDivision<OutputT>;
|
13
|
+
multiply<OutputT extends number | string>(a: RNAnimated.Animated, b: RNAnimated.Animated): RNAnimated.AnimatedMultiplication<OutputT>;
|
14
|
+
modulo<OutputT extends number | string>(a: RNAnimated.Animated, modulus: number): RNAnimated.AnimatedModulo<OutputT>;
|
15
|
+
diffClamp<OutputT extends number | string>(a: RNAnimated.Animated, min: number, max: number): RNAnimated.AnimatedDiffClamp<OutputT>;
|
16
|
+
delay(time: number): RNAnimated.CompositeAnimation;
|
17
|
+
sequence(animations: Array<RNAnimated.CompositeAnimation>): RNAnimated.CompositeAnimation;
|
18
|
+
stagger(time: number, animations: Array<RNAnimated.CompositeAnimation>): RNAnimated.CompositeAnimation;
|
19
|
+
loop(animation: RNAnimated.CompositeAnimation, config?: RNAnimated.LoopAnimationConfig): RNAnimated.CompositeAnimation;
|
20
|
+
spring(value: RNAnimated.AnimatedValue | RNAnimated.AnimatedValueXY, config: RNAnimated.SpringAnimationConfig): RNAnimated.CompositeAnimation;
|
21
|
+
parallel(animations: Array<RNAnimated.CompositeAnimation>, config?: RNAnimated.ParallelConfig): RNAnimated.CompositeAnimation;
|
22
|
+
event<T>(argMapping: Array<RNAnimated.Mapping | null>, config?: RNAnimated.EventConfig<T>): (...args: any[]) => void;
|
23
|
+
createAnimatedComponent<T extends React.ComponentType<any>>(component: T, options?: RNAnimated.AnimatedComponentOptions): RNAnimated.AnimatedComponent<T>;
|
24
|
+
Animated: typeof RNAnimated.Animated;
|
25
|
+
AnimatedNode: typeof RNAnimated.AnimatedNode;
|
26
|
+
AnimatedWithChildren: typeof RNAnimated.AnimatedWithChildren;
|
27
|
+
AnimatedColor: typeof RNAnimated.AnimatedColor;
|
28
|
+
AnimatedInterpolation: typeof RNAnimated.AnimatedInterpolation;
|
29
|
+
Value: typeof RNAnimated.Value;
|
30
|
+
ValueXY: typeof RNAnimated.ValueXY;
|
31
|
+
timing: (value: RNAnimated.AnimatedValue | RNAnimated.AnimatedValueXY, config: RNAnimated.TimingAnimationConfig) => RNAnimated.CompositeAnimation;
|
32
|
+
AnimatedAddition: typeof RNAnimated.AnimatedAddition;
|
33
|
+
AnimatedSubtraction: typeof RNAnimated.AnimatedSubtraction;
|
34
|
+
AnimatedDivision: typeof RNAnimated.AnimatedDivision;
|
35
|
+
AnimatedMultiplication: typeof RNAnimated.AnimatedMultiplication;
|
36
|
+
AnimatedModulo: typeof RNAnimated.AnimatedModulo;
|
37
|
+
AnimatedDiffClamp: typeof RNAnimated.AnimatedDiffClamp;
|
38
|
+
};
|
39
|
+
//# sourceMappingURL=Animated.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Animated.d.ts","sourceRoot":"","sources":["../../../../../src/components/native/Animated.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,cAAc,CAAA;AAQrD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;iGAS0he,GAAG;sCAAuoD,MAAO,aAAa;;;;;;;;;;;;;;;CAD5shB,CAAA"}
|
@@ -1,4 +1,2 @@
|
|
1
|
-
export declare const FlatList:
|
2
|
-
style?: import("../../types").UnistylesValues | Array<import("../../types").UnistylesValues>;
|
3
|
-
} & import("react").RefAttributes<unknown>>;
|
1
|
+
export declare const FlatList: any;
|
4
2
|
//# sourceMappingURL=FlatList.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FlatList.d.ts","sourceRoot":"","sources":["../../../../../src/components/native/FlatList.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ
|
1
|
+
{"version":3,"file":"FlatList.d.ts","sourceRoot":"","sources":["../../../../../src/components/native/FlatList.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,KAAyC,CAAA"}
|
@@ -1,4 +1,2 @@
|
|
1
|
-
export declare const Image:
|
2
|
-
style?: import("../../types").UnistylesValues | Array<import("../../types").UnistylesValues>;
|
3
|
-
} & import("react").RefAttributes<unknown>>;
|
1
|
+
export declare const Image: any;
|
4
2
|
//# sourceMappingURL=Image.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../../../src/components/native/Image.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK
|
1
|
+
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../../../src/components/native/Image.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,KAAsC,CAAA"}
|
@@ -1,9 +1,2 @@
|
|
1
|
-
|
2
|
-
import type { UnistylesValues } from '../../types';
|
3
|
-
type Props = {
|
4
|
-
style?: UnistylesValues;
|
5
|
-
imageStyle?: UnistylesValues;
|
6
|
-
};
|
7
|
-
export declare const ImageBackground: React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>;
|
8
|
-
export {};
|
1
|
+
export declare const ImageBackground: any;
|
9
2
|
//# sourceMappingURL=ImageBackground.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ImageBackground.d.ts","sourceRoot":"","sources":["../../../../../src/components/native/ImageBackground.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"ImageBackground.d.ts","sourceRoot":"","sources":["../../../../../src/components/native/ImageBackground.tsx"],"names":[],"mappings":"AA0DA,eAAO,MAAM,eAAe,KAA2E,CAAA"}
|
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
export declare const ImageBackground: import("react").ForwardRefExoticComponent<import("react-native").ImageBackgroundProps & import("react").RefAttributes<NativeImageBackground>>;
|
1
|
+
export declare const ImageBackground: any;
|
3
2
|
//# sourceMappingURL=ImageBackground.native.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ImageBackground.native.d.ts","sourceRoot":"","sources":["../../../../../src/components/native/ImageBackground.native.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"ImageBackground.native.d.ts","sourceRoot":"","sources":["../../../../../src/components/native/ImageBackground.native.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,KAAwD,CAAA"}
|
@@ -1,4 +1,2 @@
|
|
1
|
-
export declare const KeyboardAvoidingView:
|
2
|
-
style?: import("../../types").UnistylesValues | Array<import("../../types").UnistylesValues>;
|
3
|
-
} & import("react").RefAttributes<unknown>>;
|
1
|
+
export declare const KeyboardAvoidingView: any;
|
4
2
|
//# sourceMappingURL=KeyboardAvoidingView.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"KeyboardAvoidingView.d.ts","sourceRoot":"","sources":["../../../../../src/components/native/KeyboardAvoidingView.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB
|
1
|
+
{"version":3,"file":"KeyboardAvoidingView.d.ts","sourceRoot":"","sources":["../../../../../src/components/native/KeyboardAvoidingView.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB,KAAqD,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Pressable.native.d.ts","sourceRoot":"","sources":["../../../../../src/components/native/Pressable.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAA;AAElE,OAAO,KAAK,EAAE,cAAc,IAAI,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;
|
1
|
+
{"version":3,"file":"Pressable.native.d.ts","sourceRoot":"","sources":["../../../../../src/components/native/Pressable.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAA;AAElE,OAAO,KAAK,EAAE,cAAc,IAAI,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAwBjE,eAAO,MAAM,SAAS;eAnBP,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;8BAkE7C,CAAA"}
|
@@ -1,4 +1,2 @@
|
|
1
|
-
export declare const RefreshControl:
|
2
|
-
style?: import("../../types").UnistylesValues | Array<import("../../types").UnistylesValues>;
|
3
|
-
} & import("react").RefAttributes<unknown>>;
|
1
|
+
export declare const RefreshControl: any;
|
4
2
|
//# sourceMappingURL=RefreshControl.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RefreshControl.d.ts","sourceRoot":"","sources":["../../../../../src/components/native/RefreshControl.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc
|
1
|
+
{"version":3,"file":"RefreshControl.d.ts","sourceRoot":"","sources":["../../../../../src/components/native/RefreshControl.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,KAA+C,CAAA"}
|
@@ -1,4 +1,2 @@
|
|
1
|
-
export declare const ScrollView:
|
2
|
-
style?: import("../../types").UnistylesValues | Array<import("../../types").UnistylesValues>;
|
3
|
-
} & import("react").RefAttributes<unknown>>;
|
1
|
+
export declare const ScrollView: any;
|
4
2
|
//# sourceMappingURL=ScrollView.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ScrollView.d.ts","sourceRoot":"","sources":["../../../../../src/components/native/ScrollView.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU
|
1
|
+
{"version":3,"file":"ScrollView.d.ts","sourceRoot":"","sources":["../../../../../src/components/native/ScrollView.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,KAA2C,CAAA"}
|
@@ -1,4 +1,2 @@
|
|
1
|
-
export declare const SectionList:
|
2
|
-
style?: import("../../types").UnistylesValues | Array<import("../../types").UnistylesValues>;
|
3
|
-
} & import("react").RefAttributes<unknown>>;
|
1
|
+
export declare const SectionList: any;
|
4
2
|
//# sourceMappingURL=SectionList.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SectionList.d.ts","sourceRoot":"","sources":["../../../../../src/components/native/SectionList.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW
|
1
|
+
{"version":3,"file":"SectionList.d.ts","sourceRoot":"","sources":["../../../../../src/components/native/SectionList.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,KAA4C,CAAA"}
|
@@ -1,4 +1,2 @@
|
|
1
|
-
export declare const Switch:
|
2
|
-
style?: import("../../types").UnistylesValues | Array<import("../../types").UnistylesValues>;
|
3
|
-
} & import("react").RefAttributes<unknown>>;
|
1
|
+
export declare const Switch: any;
|
4
2
|
//# sourceMappingURL=Switch.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../../src/components/native/Switch.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../../src/components/native/Switch.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,KAAuC,CAAA"}
|
@@ -1,4 +1,2 @@
|
|
1
|
-
export declare const Text:
|
2
|
-
style?: import("../../types").UnistylesValues | Array<import("../../types").UnistylesValues>;
|
3
|
-
} & import("react").RefAttributes<unknown>>;
|
1
|
+
export declare const Text: any;
|
4
2
|
//# sourceMappingURL=Text.d.ts.map
|