related-ui-components 1.9.8 → 1.9.9

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.
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { StyleSheet } from 'react-native';
5
+ import { Image } from 'expo-image';
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ const CustomIcon = ({
8
+ source,
9
+ size = 24,
10
+ color,
11
+ style
12
+ }) => {
13
+ const combinedStyle = StyleSheet.flatten([{
14
+ width: size,
15
+ height: size
16
+ }, color && {
17
+ tintColor: color
18
+ }, style]);
19
+ return /*#__PURE__*/_jsx(Image, {
20
+ source: source,
21
+ style: combinedStyle,
22
+ contentFit: "contain",
23
+ accessibilityRole: "image"
24
+ });
25
+ };
26
+ export default CustomIcon;
27
+ //# sourceMappingURL=CustomIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","StyleSheet","Image","jsx","_jsx","CustomIcon","source","size","color","style","combinedStyle","flatten","width","height","tintColor","contentFit","accessibilityRole"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/CustomIcon/CustomIcon.tsx"],"mappings":";;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,cAAc;AAEzC,SAASC,KAAK,QAAmB,YAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAS9C,MAAMC,UAAqC,GAAGA,CAAC;EAC7CC,MAAM;EACNC,IAAI,GAAG,EAAE;EACTC,KAAK;EACLC;AACF,CAAC,KAAK;EACJ,MAAMC,aAAa,GAAGT,UAAU,CAACU,OAAO,CAAC,CACvC;IACEC,KAAK,EAAEL,IAAI;IACXM,MAAM,EAAEN;EACV,CAAC,EACDC,KAAK,IAAI;IAACM,SAAS,EAAEN;EAAK,CAAC,EAC3BC,KAAK,CACN,CAAC;EAEF,oBACEL,IAAA,CAACF,KAAK;IACJI,MAAM,EAAEA,MAAO;IACfG,KAAK,EAAEC,aAAc;IACrBK,UAAU,EAAC,SAAS;IACpBC,iBAAiB,EAAC;EAAO,CAC1B,CAAC;AAEN,CAAC;AAED,eAAeX,UAAU","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ export { default as CustomIcon } from "./CustomIcon.js";
4
+ export * from "./CustomIcon.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["default","CustomIcon"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/CustomIcon/index.ts"],"mappings":";;AAAA,SAASA,OAAO,IAAIC,UAAU,QAAO,iBAAc;AACnD,cAAc,iBAAc","ignoreList":[]}
@@ -18,4 +18,5 @@ export * from "./Marquee/index.js";
18
18
  export * from "./RedeemedVoucher/index.js";
19
19
  export * from "./Button/index.js";
20
20
  export * from "./Skeleton/index.js";
21
+ export * from "./CustomIcon/index.js";
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"..\\..\\..\\src","sources":["components/index.ts"],"mappings":";;AAAA,cAAc,iBAAQ;AACtB,cAAc,wBAAe;AAC7B,cAAe,mBAAU;AACzB,cAAc,mBAAU;AACxB,cAAc,sBAAa;AAC3B,cAAc,oBAAW;AACzB,cAAc,kBAAS;AACvB,cAAc,wBAAe;AAC7B,cAAc,kBAAS;AACvB,cAAc,6BAAoB;AAClC,cAAc,wBAAe;AAC7B,cAAc,0BAAiB;AAC/B,cAAc,kBAAS;AACvB,cAAc,sBAAa;AAC3B,cAAc,oBAAW;AACzB,cAAc,4BAAmB;AACjC,cAAc,mBAAU;AACxB,cAAc,qBAAY","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"..\\..\\..\\src","sources":["components/index.ts"],"mappings":";;AAAA,cAAc,iBAAQ;AACtB,cAAc,wBAAe;AAC7B,cAAe,mBAAU;AACzB,cAAc,mBAAU;AACxB,cAAc,sBAAa;AAC3B,cAAc,oBAAW;AACzB,cAAc,kBAAS;AACvB,cAAc,wBAAe;AAC7B,cAAc,kBAAS;AACvB,cAAc,6BAAoB;AAClC,cAAc,wBAAe;AAC7B,cAAc,0BAAiB;AAC/B,cAAc,kBAAS;AACvB,cAAc,sBAAa;AAC3B,cAAc,oBAAW;AACzB,cAAc,4BAAmB;AACjC,cAAc,mBAAU;AACxB,cAAc,qBAAY;AAC1B,cAAc,uBAAc","ignoreList":[]}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { ImageSourcePropType, StyleProp } from 'react-native';
3
+ import { ImageStyle } from 'expo-image';
4
+ interface CustomIconProps {
5
+ source: ImageSourcePropType;
6
+ size?: number;
7
+ color?: string;
8
+ style?: StyleProp<ImageStyle>;
9
+ }
10
+ declare const CustomIcon: React.FC<CustomIconProps>;
11
+ export default CustomIcon;
12
+ //# sourceMappingURL=CustomIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/CustomIcon/CustomIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,EAAS,UAAU,EAAC,MAAM,YAAY,CAAC;AAE9C,UAAU,eAAe;IACvB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;CAC/B;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAuBzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as CustomIcon } from "./CustomIcon";
2
+ export * from "./CustomIcon";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CustomIcon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAC,MAAM,cAAc,CAAC;AACpD,cAAc,cAAc,CAAC"}
@@ -16,4 +16,5 @@ export * from "./Marquee";
16
16
  export * from "./RedeemedVoucher";
17
17
  export * from "./Button";
18
18
  export * from "./Skeleton";
19
+ export * from "./CustomIcon";
19
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAe,UAAU,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAe,UAAU,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "related-ui-components",
3
- "version": "1.9.8",
3
+ "version": "1.9.9",
4
4
  "main": "./lib\\module\\index.js",
5
5
  "scripts": {
6
6
  "start": "expo start",
@@ -0,0 +1,40 @@
1
+
2
+ import React from 'react';
3
+ import { StyleSheet } from 'react-native';
4
+ import type { ImageSourcePropType, StyleProp } from 'react-native';
5
+ import { Image, ImageStyle} from 'expo-image';
6
+
7
+ interface CustomIconProps {
8
+ source: ImageSourcePropType;
9
+ size?: number;
10
+ color?: string;
11
+ style?: StyleProp<ImageStyle>;
12
+ }
13
+
14
+ const CustomIcon: React.FC<CustomIconProps> = ({
15
+ source,
16
+ size = 24,
17
+ color,
18
+ style,
19
+ }) => {
20
+ const combinedStyle = StyleSheet.flatten([
21
+ {
22
+ width: size,
23
+ height: size,
24
+ },
25
+ color && {tintColor: color},
26
+ style,
27
+ ]);
28
+
29
+ return (
30
+ <Image
31
+ source={source}
32
+ style={combinedStyle}
33
+ contentFit="contain"
34
+ accessibilityRole="image"
35
+ />
36
+ );
37
+ };
38
+
39
+ export default CustomIcon;
40
+
@@ -0,0 +1,2 @@
1
+ export { default as CustomIcon} from "./CustomIcon";
2
+ export * from "./CustomIcon";
@@ -15,4 +15,5 @@ export * from "./CloseIcon";
15
15
  export * from "./Marquee";
16
16
  export * from "./RedeemedVoucher";
17
17
  export * from "./Button";
18
- export * from "./Skeleton";
18
+ export * from "./Skeleton";
19
+ export * from "./CustomIcon"