|
|
@@ -1,6 +1,12 @@
|
|
|
import {
|
|
|
- type ForwardRefRenderFunction
|
|
|
+ type ForwardRefRenderFunction,
|
|
|
+ type CSSProperties
|
|
|
} from "react";
|
|
|
+import type {
|
|
|
+ ImageStyle,
|
|
|
+ TextStyle,
|
|
|
+ ViewStyle
|
|
|
+} from "react-native";
|
|
|
import {
|
|
|
type INCoreUIKitIconCallbackProps
|
|
|
} from "./icon";
|
|
|
@@ -57,6 +63,16 @@ export type {
|
|
|
ThemeType
|
|
|
};
|
|
|
|
|
|
+export type PureRNStyles = Omit<ViewStyle & TextStyle & ImageStyle, "position" | "cursor" | "filter">;
|
|
|
+
|
|
|
+export type PureWebStyles = Omit<CSSProperties, "position" | "cursor" | "filter">;
|
|
|
+
|
|
|
+export type AllStyles = PureRNStyles & PureWebStyles & {
|
|
|
+ position?: CSSProperties["position"];
|
|
|
+ cursor?: CSSProperties["cursor"];
|
|
|
+ filter?: string;
|
|
|
+};
|
|
|
+
|
|
|
export type RecursiveRecord = {
|
|
|
[key: string]: string | RecursiveRecord;
|
|
|
};
|