@teamturing/react-native-kit 1.2.3 → 1.3.0

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.
Files changed (96) hide show
  1. package/lib/commonjs/component/Animation/implicit/OpacityAnimatedView.js +8 -5
  2. package/lib/commonjs/component/Animation/implicit/OpacityAnimatedView.js.map +1 -1
  3. package/lib/commonjs/component/ProfilePhoto/LightProfilePhoto.js +48 -0
  4. package/lib/commonjs/component/ProfilePhoto/LightProfilePhoto.js.map +1 -0
  5. package/lib/commonjs/component/ProfilePhoto/ProfileImageGroup.js +78 -0
  6. package/lib/commonjs/component/ProfilePhoto/ProfileImageGroup.js.map +1 -0
  7. package/lib/commonjs/component/ProfilePhoto/ProfilePhoto.js +68 -0
  8. package/lib/commonjs/component/ProfilePhoto/ProfilePhoto.js.map +1 -0
  9. package/lib/commonjs/component/ProfilePhoto/ProfilePhotoWithBorderGradient.js +53 -0
  10. package/lib/commonjs/component/ProfilePhoto/ProfilePhotoWithBorderGradient.js.map +1 -0
  11. package/lib/commonjs/component/ProfilePhoto/index.js +50 -0
  12. package/lib/commonjs/component/ProfilePhoto/index.js.map +1 -0
  13. package/lib/commonjs/component/ProfilePhoto/profile_outline_gray_90.png +0 -0
  14. package/lib/commonjs/component/ProfilePhoto/profile_outline_gray_90@2x.png +0 -0
  15. package/lib/commonjs/component/ProfilePhoto/profile_outline_gray_90@3x.png +0 -0
  16. package/lib/commonjs/component/index.js +11 -0
  17. package/lib/commonjs/component/index.js.map +1 -1
  18. package/lib/commonjs/util/WebImageUrlEnricher.js +27 -0
  19. package/lib/commonjs/util/WebImageUrlEnricher.js.map +1 -0
  20. package/lib/commonjs/util/WebImageUrlEnricher.test.js +22 -0
  21. package/lib/commonjs/util/WebImageUrlEnricher.test.js.map +1 -0
  22. package/lib/commonjs/util/index.js +11 -0
  23. package/lib/commonjs/util/index.js.map +1 -1
  24. package/lib/module/component/Animation/implicit/OpacityAnimatedView.js +9 -6
  25. package/lib/module/component/Animation/implicit/OpacityAnimatedView.js.map +1 -1
  26. package/lib/module/component/ProfilePhoto/LightProfilePhoto.js +44 -0
  27. package/lib/module/component/ProfilePhoto/LightProfilePhoto.js.map +1 -0
  28. package/lib/module/component/ProfilePhoto/ProfileImageGroup.js +74 -0
  29. package/lib/module/component/ProfilePhoto/ProfileImageGroup.js.map +1 -0
  30. package/lib/module/component/ProfilePhoto/ProfilePhoto.js +64 -0
  31. package/lib/module/component/ProfilePhoto/ProfilePhoto.js.map +1 -0
  32. package/lib/module/component/ProfilePhoto/ProfilePhotoWithBorderGradient.js +50 -0
  33. package/lib/module/component/ProfilePhoto/ProfilePhotoWithBorderGradient.js.map +1 -0
  34. package/lib/module/component/ProfilePhoto/index.js +7 -0
  35. package/lib/module/component/ProfilePhoto/index.js.map +1 -0
  36. package/lib/module/component/ProfilePhoto/profile_outline_gray_90.png +0 -0
  37. package/lib/module/component/ProfilePhoto/profile_outline_gray_90@2x.png +0 -0
  38. package/lib/module/component/ProfilePhoto/profile_outline_gray_90@3x.png +0 -0
  39. package/lib/module/component/index.js +1 -0
  40. package/lib/module/component/index.js.map +1 -1
  41. package/lib/module/util/WebImageUrlEnricher.js +23 -0
  42. package/lib/module/util/WebImageUrlEnricher.js.map +1 -0
  43. package/lib/module/util/WebImageUrlEnricher.test.js +22 -0
  44. package/lib/module/util/WebImageUrlEnricher.test.js.map +1 -0
  45. package/lib/module/util/index.js +1 -0
  46. package/lib/module/util/index.js.map +1 -1
  47. package/lib/typescript/commonjs/src/component/ProfilePhoto/LightProfilePhoto.d.ts +11 -0
  48. package/lib/typescript/commonjs/src/component/ProfilePhoto/LightProfilePhoto.d.ts.map +1 -0
  49. package/lib/typescript/commonjs/src/component/ProfilePhoto/ProfileImageGroup.d.ts +20 -0
  50. package/lib/typescript/commonjs/src/component/ProfilePhoto/ProfileImageGroup.d.ts.map +1 -0
  51. package/lib/typescript/commonjs/src/component/ProfilePhoto/ProfilePhoto.d.ts +14 -0
  52. package/lib/typescript/commonjs/src/component/ProfilePhoto/ProfilePhoto.d.ts.map +1 -0
  53. package/lib/typescript/commonjs/src/component/ProfilePhoto/ProfilePhotoWithBorderGradient.d.ts +10 -0
  54. package/lib/typescript/commonjs/src/component/ProfilePhoto/ProfilePhotoWithBorderGradient.d.ts.map +1 -0
  55. package/lib/typescript/commonjs/src/component/ProfilePhoto/index.d.ts +5 -0
  56. package/lib/typescript/commonjs/src/component/ProfilePhoto/index.d.ts.map +1 -0
  57. package/lib/typescript/commonjs/src/component/index.d.ts +1 -0
  58. package/lib/typescript/commonjs/src/component/index.d.ts.map +1 -1
  59. package/lib/typescript/commonjs/src/util/WebImageUrlEnricher.d.ts +12 -0
  60. package/lib/typescript/commonjs/src/util/WebImageUrlEnricher.d.ts.map +1 -0
  61. package/lib/typescript/commonjs/src/util/WebImageUrlEnricher.test.d.ts +2 -0
  62. package/lib/typescript/commonjs/src/util/WebImageUrlEnricher.test.d.ts.map +1 -0
  63. package/lib/typescript/commonjs/src/util/index.d.ts +1 -0
  64. package/lib/typescript/commonjs/src/util/index.d.ts.map +1 -1
  65. package/lib/typescript/module/src/component/ProfilePhoto/LightProfilePhoto.d.ts +11 -0
  66. package/lib/typescript/module/src/component/ProfilePhoto/LightProfilePhoto.d.ts.map +1 -0
  67. package/lib/typescript/module/src/component/ProfilePhoto/ProfileImageGroup.d.ts +20 -0
  68. package/lib/typescript/module/src/component/ProfilePhoto/ProfileImageGroup.d.ts.map +1 -0
  69. package/lib/typescript/module/src/component/ProfilePhoto/ProfilePhoto.d.ts +14 -0
  70. package/lib/typescript/module/src/component/ProfilePhoto/ProfilePhoto.d.ts.map +1 -0
  71. package/lib/typescript/module/src/component/ProfilePhoto/ProfilePhotoWithBorderGradient.d.ts +10 -0
  72. package/lib/typescript/module/src/component/ProfilePhoto/ProfilePhotoWithBorderGradient.d.ts.map +1 -0
  73. package/lib/typescript/module/src/component/ProfilePhoto/index.d.ts +5 -0
  74. package/lib/typescript/module/src/component/ProfilePhoto/index.d.ts.map +1 -0
  75. package/lib/typescript/module/src/component/index.d.ts +1 -0
  76. package/lib/typescript/module/src/component/index.d.ts.map +1 -1
  77. package/lib/typescript/module/src/util/WebImageUrlEnricher.d.ts +12 -0
  78. package/lib/typescript/module/src/util/WebImageUrlEnricher.d.ts.map +1 -0
  79. package/lib/typescript/module/src/util/WebImageUrlEnricher.test.d.ts +2 -0
  80. package/lib/typescript/module/src/util/WebImageUrlEnricher.test.d.ts.map +1 -0
  81. package/lib/typescript/module/src/util/index.d.ts +1 -0
  82. package/lib/typescript/module/src/util/index.d.ts.map +1 -1
  83. package/package.json +5 -3
  84. package/src/component/Animation/implicit/OpacityAnimatedView.tsx +6 -6
  85. package/src/component/ProfilePhoto/LightProfilePhoto.tsx +59 -0
  86. package/src/component/ProfilePhoto/ProfileImageGroup.tsx +98 -0
  87. package/src/component/ProfilePhoto/ProfilePhoto.tsx +81 -0
  88. package/src/component/ProfilePhoto/ProfilePhotoWithBorderGradient.tsx +39 -0
  89. package/src/component/ProfilePhoto/index.ts +4 -0
  90. package/src/component/ProfilePhoto/profile_outline_gray_90.png +0 -0
  91. package/src/component/ProfilePhoto/profile_outline_gray_90@2x.png +0 -0
  92. package/src/component/ProfilePhoto/profile_outline_gray_90@3x.png +0 -0
  93. package/src/component/index.ts +1 -1
  94. package/src/util/WebImageUrlEnricher.test.ts +14 -0
  95. package/src/util/WebImageUrlEnricher.ts +31 -0
  96. package/src/util/index.ts +1 -0
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { useRef, useEffect, useState } from 'react';
4
4
  import { Animated } from 'react-native';
5
- import { useTimeoutHandler } from "../../../hook/index.js";
5
+ import { useTimeoutHandlers } from "../../../hook/index.js";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  const OpacityAnimatedView = ({
8
8
  opacity,
@@ -13,10 +13,13 @@ const OpacityAnimatedView = ({
13
13
  ...rest
14
14
  }) => {
15
15
  const opacityValue = useRef(new Animated.Value(opacity)).current;
16
- const timeoutHandler = useTimeoutHandler();
16
+ const {
17
+ clearAllTimers,
18
+ setAutoClearTimeout
19
+ } = useTimeoutHandlers();
17
20
  const [dropChildren, setDropChildren] = useState(!!(dropChildrenWhenInvisible && opacity === 0));
18
21
  useEffect(() => {
19
- clearTimeout(timeoutHandler.current);
22
+ clearAllTimers();
20
23
  const anim = Animated.timing(opacityValue, {
21
24
  useNativeDriver: true,
22
25
  toValue: opacity,
@@ -24,15 +27,15 @@ const OpacityAnimatedView = ({
24
27
  });
25
28
  anim.start();
26
29
  if (opacity <= 0 && dropChildrenWhenInvisible) {
27
- timeoutHandler.current = setTimeout(() => setDropChildren(true), duration);
30
+ setAutoClearTimeout(() => setDropChildren(true), duration);
28
31
  } else {
29
32
  setDropChildren(false);
30
33
  }
31
34
  return () => {
32
- clearTimeout(timeoutHandler.current);
35
+ clearAllTimers();
33
36
  anim.stop();
34
37
  };
35
- }, [opacity, duration, opacityValue, dropChildrenWhenInvisible, timeoutHandler]);
38
+ }, [opacity, duration, opacityValue, dropChildrenWhenInvisible, clearAllTimers, setAutoClearTimeout]);
36
39
  return /*#__PURE__*/_jsx(Animated.View, {
37
40
  style: [style, {
38
41
  opacity: opacityValue
@@ -1 +1 @@
1
- {"version":3,"names":["useRef","useEffect","useState","Animated","useTimeoutHandler","jsx","_jsx","OpacityAnimatedView","opacity","duration","style","dropChildrenWhenInvisible","children","rest","opacityValue","Value","current","timeoutHandler","dropChildren","setDropChildren","clearTimeout","anim","timing","useNativeDriver","toValue","start","setTimeout","stop","View"],"sourceRoot":"../../../../../src","sources":["component/Animation/implicit/OpacityAnimatedView.tsx"],"mappings":";;AACA,SAASA,MAAM,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAEnD,SAASC,QAAQ,QAAQ,cAAc;AAEvC,SAASC,iBAAiB,QAAQ,wBAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGlD,MAAMC,mBAAmB,GAAGA,CAAC;EAC3BC,OAAO;EACPC,QAAQ,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,CAAC;AAEpB,CAAC;AAED,SAASL,mBAAmB","ignoreList":[]}
1
+ {"version":3,"names":["useRef","useEffect","useState","Animated","useTimeoutHandlers","jsx","_jsx","OpacityAnimatedView","opacity","duration","style","dropChildrenWhenInvisible","children","rest","opacityValue","Value","current","clearAllTimers","setAutoClearTimeout","dropChildren","setDropChildren","anim","timing","useNativeDriver","toValue","start","stop","View"],"sourceRoot":"../../../../../src","sources":["component/Animation/implicit/OpacityAnimatedView.tsx"],"mappings":";;AACA,SAASA,MAAM,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAEnD,SAASC,QAAQ,QAAQ,cAAc;AAEvC,SAASC,kBAAkB,QAAQ,wBAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGnD,MAAMC,mBAAmB,GAAGA,CAAC;EAC3BC,OAAO;EACPC,QAAQ,GAAG,GAAG;EACdC,KAAK;EACLC,yBAAyB,GAAG,KAAK;EACjCC,QAAQ;EACR,GAAGC;AACqB,CAAC,KAAK;EAC9B,MAAMC,YAAY,GAAGd,MAAM,CAAC,IAAIG,QAAQ,CAACY,KAAK,CAACP,OAAO,CAAC,CAAC,CAACQ,OAAO;EAChE,MAAM;IAAEC,cAAc;IAAEC;EAAoB,CAAC,GAAGd,kBAAkB,CAAC,CAAC;EACpE,MAAM,CAACe,YAAY,EAAEC,eAAe,CAAC,GAAGlB,QAAQ,CAAC,CAAC,EAAES,yBAAyB,IAAIH,OAAO,KAAK,CAAC,CAAC,CAAC;EAChGP,SAAS,CAAC,MAAM;IACdgB,cAAc,CAAC,CAAC;IAChB,MAAMI,IAAI,GAAGlB,QAAQ,CAACmB,MAAM,CAACR,YAAY,EAAE;MAAES,eAAe,EAAE,IAAI;MAAEC,OAAO,EAAEhB,OAAO;MAAEC;IAAS,CAAC,CAAC;IACjGY,IAAI,CAACI,KAAK,CAAC,CAAC;IACZ,IAAIjB,OAAO,IAAI,CAAC,IAAIG,yBAAyB,EAAE;MAC7CO,mBAAmB,CAAC,MAAME,eAAe,CAAC,IAAI,CAAC,EAAEX,QAAQ,CAAC;IAC5D,CAAC,MAAM;MACLW,eAAe,CAAC,KAAK,CAAC;IACxB;IACA,OAAO,MAAM;MACXH,cAAc,CAAC,CAAC;MAChBI,IAAI,CAACK,IAAI,CAAC,CAAC;IACb,CAAC;EACH,CAAC,EAAE,CAAClB,OAAO,EAAEC,QAAQ,EAAEK,YAAY,EAAEH,yBAAyB,EAAEM,cAAc,EAAEC,mBAAmB,CAAC,CAAC;EAErG,oBACEZ,IAAA,CAACH,QAAQ,CAACwB,IAAI;IAACjB,KAAK,EAAE,CAACA,KAAK,EAAE;MAAEF,OAAO,EAAEM;IAAa,CAAC,CAAE;IAAA,GAAKD,IAAI;IAAAD,QAAA,EAC/DO,YAAY,GAAG,IAAI,GAAGP;EAAQ,CAClB,CAAC;AAEpB,CAAC;AAED,SAASL,mBAAmB","ignoreList":[]}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+
3
+ import { View } from 'react-native';
4
+ import { is, appendImageSizeQueryParams } from "../../util/index.js";
5
+ import { Img } from "../Img/index.js";
6
+ import defaultImage from './profile_outline_gray_90.png';
7
+
8
+ // this is used for just rendering character image in light component like list item(shouldn't be heavy)
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ const LightProfilePhoto = ({
11
+ profileImageUrl,
12
+ style,
13
+ size: _size,
14
+ borderColor,
15
+ borderWidth = 0,
16
+ optimize = true
17
+ }) => {
18
+ const size = _size || 56;
19
+ return /*#__PURE__*/_jsx(View, {
20
+ style: [{
21
+ alignItems: 'center',
22
+ justifyContent: 'center'
23
+ }, style, {
24
+ width: size,
25
+ height: size,
26
+ borderRadius: 9999,
27
+ borderWidth: 0
28
+ }],
29
+ children: Img.render(is.notEmptyString(profileImageUrl) ? optimize ? appendImageSizeQueryParams({
30
+ url: profileImageUrl,
31
+ desiredWidth: size
32
+ }) : profileImageUrl : defaultImage, {
33
+ width: size,
34
+ height: size,
35
+ style: {
36
+ borderWidth,
37
+ borderColor,
38
+ borderRadius: 999
39
+ }
40
+ })
41
+ }, profileImageUrl);
42
+ };
43
+ export { LightProfilePhoto };
44
+ //# sourceMappingURL=LightProfilePhoto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["View","is","appendImageSizeQueryParams","Img","defaultImage","jsx","_jsx","LightProfilePhoto","profileImageUrl","style","size","_size","borderColor","borderWidth","optimize","alignItems","justifyContent","width","height","borderRadius","children","render","notEmptyString","url","desiredWidth"],"sourceRoot":"../../../../src","sources":["component/ProfilePhoto/LightProfilePhoto.tsx"],"mappings":";;AACA,SAASA,IAAI,QAAQ,cAAc;AAEnC,SAASC,EAAE,EAAEC,0BAA0B,QAAQ,qBAAY;AAC3D,SAASC,GAAG,QAAQ,iBAAQ;AAE5B,OAAOC,YAAY,MAAM,+BAA+B;;AAExD;AAAA,SAAAC,GAAA,IAAAC,IAAA;AACA,MAAMC,iBAAiB,GAAGA,CAAC;EACzBC,eAAe;EACfC,KAAK;EACLC,IAAI,EAAEC,KAAK;EACXC,WAAW;EACXC,WAAW,GAAG,CAAC;EACfC,QAAQ,GAAG;AAQb,CAAC,KAAK;EACJ,MAAMJ,IAAI,GAAGC,KAAK,IAAI,EAAE;EACxB,oBACEL,IAAA,CAACN,IAAI;IAEHS,KAAK,EAAE,CACL;MACEM,UAAU,EAAE,QAAQ;MACpBC,cAAc,EAAE;IAClB,CAAC,EACDP,KAAK,EACL;MACEQ,KAAK,EAAEP,IAAI;MACXQ,MAAM,EAAER,IAAI;MACZS,YAAY,EAAE,IAAI;MAClBN,WAAW,EAAE;IACf,CAAC,CACD;IAAAO,QAAA,EAEDjB,GAAG,CAACkB,MAAM,CACTpB,EAAE,CAACqB,cAAc,CAACd,eAAe,CAAC,GAC9BM,QAAQ,GACNZ,0BAA0B,CAAC;MAAEqB,GAAG,EAAEf,eAAe;MAAEgB,YAAY,EAAEd;IAAK,CAAC,CAAC,GACxEF,eAAe,GACjBJ,YAAY,EAChB;MACEa,KAAK,EAAEP,IAAI;MACXQ,MAAM,EAAER,IAAI;MACZD,KAAK,EAAE;QAAEI,WAAW;QAAED,WAAW;QAAEO,YAAY,EAAE;MAAI;IACvD,CACF;EAAC,GA1BIX,eA2BD,CAAC;AAEX,CAAC;AAED,SAASD,iBAAiB","ignoreList":[]}
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+
3
+ import { toKoreanNumberUnitString } from '@teamturing/utils';
4
+ import { View } from 'react-native';
5
+ import { palette, spacing } from "../../theme/index.js";
6
+ import { is, appendImageSizeQueryParams, applyOpacity } from "../../util/index.js";
7
+ import { Img } from "../Img/index.js";
8
+ import { RowCenter } from "../Layout/index.js";
9
+ import { Txt } from "../Txt/index.js";
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
+ const ProfileImageGroup = ({
12
+ count: countProp,
13
+ imageUrls: _imageUrls,
14
+ stackDirection = 'right',
15
+ size = 36,
16
+ backgroundColor = palette.gray100,
17
+ showBorder = true,
18
+ maxCircleCount = 3,
19
+ showsMoreCount = true,
20
+ borderWidth = 1,
21
+ borderPadding = spacing[0.5],
22
+ borderColor = palette.gray200,
23
+ resizeNetworkImage = true,
24
+ imageBorderWidth = 2,
25
+ imageBorderColor = backgroundColor
26
+ }) => {
27
+ const isReverse = stackDirection === 'left';
28
+ const imageUrls = isReverse ? [..._imageUrls].reverse() : _imageUrls;
29
+ const totalCount = countProp ?? imageUrls.length;
30
+ const visibleProfileCount = Math.min(imageUrls.length, maxCircleCount);
31
+ return /*#__PURE__*/_jsxs(RowCenter, {
32
+ reverse: isReverse,
33
+ style: showBorder ? {
34
+ borderRadius: 999,
35
+ borderWidth: borderWidth,
36
+ padding: borderPadding,
37
+ borderColor
38
+ } : {},
39
+ children: [imageUrls.slice(0, maxCircleCount).map((url, index) => Img.render(resizeNetworkImage && is.string(url) ? appendImageSizeQueryParams({
40
+ url,
41
+ desiredWidth: size
42
+ }) : url, {
43
+ key: index,
44
+ width: size,
45
+ height: size,
46
+ style: [{
47
+ borderColor: imageBorderColor,
48
+ borderRadius: 999,
49
+ borderWidth: imageBorderWidth
50
+ }, stackDirection === 'right' ? {
51
+ marginLeft: index !== 0 ? -size / 2 : 0
52
+ } : {
53
+ marginRight: index !== 0 ? -size / 2 : 0
54
+ }]
55
+ })), showsMoreCount && totalCount > visibleProfileCount ? /*#__PURE__*/_jsx(View, {
56
+ style: [{
57
+ width: size - 4,
58
+ height: size - 4,
59
+ position: 'absolute',
60
+ backgroundColor: applyOpacity(palette.black, 60),
61
+ borderRadius: 999,
62
+ alignItems: 'center',
63
+ justifyContent: 'center'
64
+ }, stackDirection === 'right' ? {
65
+ right: spacing[showBorder ? 1 : 0]
66
+ } : {
67
+ left: spacing[showBorder ? 1 : 0]
68
+ }],
69
+ children: Txt.XXS.Bold.White.render(`+${toKoreanNumberUnitString(totalCount - (maxCircleCount - 1))}`)
70
+ }) : null]
71
+ });
72
+ };
73
+ export { ProfileImageGroup };
74
+ //# sourceMappingURL=ProfileImageGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["toKoreanNumberUnitString","View","palette","spacing","is","appendImageSizeQueryParams","applyOpacity","Img","RowCenter","Txt","jsx","_jsx","jsxs","_jsxs","ProfileImageGroup","count","countProp","imageUrls","_imageUrls","stackDirection","size","backgroundColor","gray100","showBorder","maxCircleCount","showsMoreCount","borderWidth","borderPadding","borderColor","gray200","resizeNetworkImage","imageBorderWidth","imageBorderColor","isReverse","reverse","totalCount","length","visibleProfileCount","Math","min","style","borderRadius","padding","children","slice","map","url","index","render","string","desiredWidth","key","width","height","marginLeft","marginRight","position","black","alignItems","justifyContent","right","left","XXS","Bold","White"],"sourceRoot":"../../../../src","sources":["component/ProfilePhoto/ProfileImageGroup.tsx"],"mappings":";;AAAA,SAASA,wBAAwB,QAAQ,mBAAmB;AAE5D,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,OAAO,EAAEC,OAAO,QAAQ,sBAAa;AAC9C,SAASC,EAAE,EAAEC,0BAA0B,EA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MAAAoB,QAAA,EAEDlC,GAAG,CAACqD,GAAG,CAACC,IAAI,CAACC,KAAK,CAAChB,MAAM,CAAC,IAAIhD,wBAAwB,CAACmC,UAAU,IAAIX,cAAc,GAAG,CAAC,CAAC,CAAC,EAAE;IAAC,CACzF,CAAC,GACL,IAAI;EAAA,CACC,CAAC;AAEhB,CAAC;AAED,SAASV,iBAAiB","ignoreList":[]}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+
3
+ import { View } from 'react-native';
4
+ import { palette } from "../../theme/index.js";
5
+ import { is } from "../../util/index.js";
6
+ import { Icon } from "../Icon/index.js";
7
+ import { Touch } from "../Pressable/index.js";
8
+ import { LightProfilePhoto } from "./LightProfilePhoto.js";
9
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
+ const defaultLength = 90;
11
+ const ProfilePhoto = ({
12
+ style,
13
+ onPress,
14
+ showIcon,
15
+ pressable = false,
16
+ length: _length,
17
+ testID,
18
+ profileImageUrl
19
+ }) => {
20
+ const length = is.number(_length) ? _length : defaultLength;
21
+ return /*#__PURE__*/_jsx(View, {
22
+ style: [style, {
23
+ justifyContent: 'center',
24
+ alignItems: 'center',
25
+ width: length,
26
+ height: length
27
+ }],
28
+ children: /*#__PURE__*/_jsxs(Touch, {
29
+ testID: testID || 'profile_photo_button',
30
+ style: {
31
+ borderRadius: 9999,
32
+ width: '100%',
33
+ height: '100%'
34
+ },
35
+ onPress: onPress,
36
+ disabled: !pressable,
37
+ children: [/*#__PURE__*/_jsx(LightProfilePhoto, {
38
+ profileImageUrl: profileImageUrl || '',
39
+ size: length
40
+ }), showIcon ? /*#__PURE__*/_jsx(View, {
41
+ style: {
42
+ width: 32,
43
+ height: 32,
44
+ borderRadius: 16,
45
+ backgroundColor: palette.gray200,
46
+ alignItems: 'center',
47
+ justifyContent: 'center',
48
+ borderWidth: 2,
49
+ borderColor: palette.white,
50
+ position: 'absolute',
51
+ right: -6,
52
+ bottom: -6
53
+ },
54
+ pointerEvents: 'none',
55
+ children: /*#__PURE__*/_jsx(Icon, {
56
+ name: 'pen',
57
+ size: 16
58
+ })
59
+ }) : null]
60
+ })
61
+ });
62
+ };
63
+ export { ProfilePhoto };
64
+ //# sourceMappingURL=ProfilePhoto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["View","palette","is","Icon","Touch","LightProfilePhoto","jsx","_jsx","jsxs","_jsxs","defaultLength","ProfilePhoto","style","onPress","showIcon","pressable","length","_length","testID","profileImageUrl","number","justifyContent","alignItems","width","height","children","borderRadius","disabled","size","backgroundColor","gray200","borderWidth","borderColor","white","position","right","bottom","pointerEvents","name"],"sourceRoot":"../../../../src","sources":["component/ProfilePhoto/ProfilePhoto.tsx"],"mappings":";;AACA,SAAyCA,IAAI,QAAQ,cAAc;AAEnE,SAASC,OAAO,QAAQ,sBAAa;AACrC,SAASC,EAAE,QAAQ,qBAAY;AAC/B,SAASC,IAAI,QAAQ,kBAAS;AAC9B,SAASC,KAAK,QAAQ,uBAAc;AAEpC,SAASC,iBAAiB,QAAQ,wBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAExD,MAAMC,aAAa,GAAG,EAAE;AAWxB,MAAMC,YAAY,GAAGA,CAAC;EACpBC,KAAK;EACLC,OAAO;EACPC,QAAQ;EACRC,SAAS,GAAG,KAAK;EACjBC,MAAM,EAAEC,OAAO;EACfC,MAAM;EACNC;AACK,CAAC,KAAmB;EACzB,MAAMH,MAAM,GAAGd,EAAE,CAACkB,MAAM,CAACH,OAAO,CAAC,GAAGA,OAAO,GAAGP,aAAa;EAE3D,oBACEH,IAAA,CAACP,IAAI;IACHY,KAAK,EAAE,CACLA,KAAK,EACL;MACES,cAAc,EAAE,QAAQ;MACxBC,UAAU,EAAE,QAAQ;MACpBC,KAAK,EAAEP,MAAM;MACbQ,MAAM,EAAER;IACV,CAAC,CACD;IAAAS,QAAA,eAEFhB,KAAA,CAACL,KAAK;MACJc,MAAM,EAAEA,MAAM,IAAI,sBAAuB;MACzCN,KAAK,EAAE;QACLc,YAAY,EAAE,IAAI;QAClBH,KAAK,EAAE,MAAM;QACbC,MAAM,EAAE;MACV,CAAE;MACFX,OAAO,EAAEA,OAAQ;MACjBc,QAAQ,EAAE,CAACZ,SAAU;MAAAU,QAAA,gBAErBlB,IAAA,CAACF,iBAAiB;QAACc,eAAe,EAAEA,eAAe,IAAI,EAAG;QAACS,IAAI,EAAEZ;MAAO,CAAE,CAAC,EAC1EF,QAAQ,gBACPP,IAAA,CAACP,IAAI;QACHY,KAAK,EAAE;UACLW,KAAK,EAAE,EAAE;UACTC,MAAM,EAAE,EAAE;UACVE,YAAY,EAAE,EAAE;UAChBG,eAAe,EAAE5B,OAAO,CAAC6B,OAAO;UAChCR,UAAU,EAAE,QAAQ;UACpBD,cAAc,EAAE,QAAQ;UACxBU,WAAW,EAAE,CAAC;UACdC,WAAW,EAAE/B,OAAO,CAACgC,KAAK;UAC1BC,QAAQ,EAAE,UAAU;UACpBC,KAAK,EAAE,CAAC,CAAC;UACTC,MAAM,EAAE,CAAC;QACX,CAAE;QACFC,aAAa,EAAE,MAAO;QAAAZ,QAAA,eAEtBlB,IAAA,CAACJ,IAAI;UAACmC,IAAI,EAAE,KAAM;UAACV,IAAI,EAAE;QAAG,CAAE;MAAC,CAC3B,CAAC,GACL,IAAI;IAAA,CACH;EAAC,CACJ,CAAC;AAEX,CAAC;AAED,SAASjB,YAAY","ignoreList":[]}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+
3
+ import { memo } from 'react';
4
+ import { View } from 'react-native';
5
+ import { Circle, Defs, RadialGradient, Stop, Svg } from 'react-native-svg';
6
+ import { is } from "../../util/index.js";
7
+ import { LightProfilePhoto } from "./LightProfilePhoto.js";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
+ const ProfilePhotoWithBorderGradient = /*#__PURE__*/memo(({
10
+ profileImageUrl,
11
+ size,
12
+ borderGradientColor,
13
+ optimize
14
+ }) => /*#__PURE__*/_jsxs(View, {
15
+ children: [/*#__PURE__*/_jsx(LightProfilePhoto, {
16
+ profileImageUrl: profileImageUrl,
17
+ size: size,
18
+ optimize: optimize
19
+ }), is.string(borderGradientColor) ? /*#__PURE__*/_jsxs(Svg, {
20
+ height: size,
21
+ width: size,
22
+ style: {
23
+ position: 'absolute'
24
+ },
25
+ children: [/*#__PURE__*/_jsx(Defs, {
26
+ children: /*#__PURE__*/_jsxs(RadialGradient, {
27
+ id: 'grad',
28
+ cx: size / 2,
29
+ cy: size / 2,
30
+ gradientUnits: 'userSpaceOnUse',
31
+ children: [/*#__PURE__*/_jsx(Stop, {
32
+ offset: '0.66',
33
+ stopColor: borderGradientColor,
34
+ stopOpacity: 0
35
+ }), /*#__PURE__*/_jsx(Stop, {
36
+ offset: '1',
37
+ stopColor: borderGradientColor,
38
+ stopOpacity: 1
39
+ })]
40
+ })
41
+ }), /*#__PURE__*/_jsx(Circle, {
42
+ r: size / 2 + 1,
43
+ cx: size / 2,
44
+ cy: size / 2,
45
+ fill: 'url(#grad)'
46
+ })]
47
+ }) : null]
48
+ }));
49
+ export { ProfilePhotoWithBorderGradient };
50
+ //# sourceMappingURL=ProfilePhotoWithBorderGradient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["memo","View","Circle","Defs","RadialGradient","Stop","Svg","is","LightProfilePhoto","jsx","_jsx","jsxs","_jsxs","ProfilePhotoWithBorderGradient","profileImageUrl","size","borderGradientColor","optimize","children","string","height","width","style","position","id","cx","cy","gradientUnits","offset","stopColor","stopOpacity","r","fill"],"sourceRoot":"../../../../src","sources":["component/ProfilePhoto/ProfilePhotoWithBorderGradient.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,OAAO;AAE5B,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,MAAM,EAAEC,IAAI,EAAEC,cAAc,EAAEC,IAAI,EAAEC,GAAG,QAAQ,kBAAkB;AAE1E,SAASC,EAAE,QAAQ,qBAAY;AAE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AA,CACJ,CAEV,CAAC;AAED,SAASnB,8BAA8B","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ export * from "./LightProfilePhoto.js";
4
+ export * from "./ProfileImageGroup.js";
5
+ export * from "./ProfilePhoto.js";
6
+ export * from "./ProfilePhotoWithBorderGradient.js";
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["component/ProfilePhoto/index.ts"],"mappings":";;AAAA,cAAc,wBAAqB;AACnC,cAAc,wBAAqB;AACnC,cAAc,mBAAgB;AAC9B,cAAc,qCAAkC","ignoreList":[]}
@@ -57,4 +57,5 @@ export * from "./Btn/index.js";
57
57
  export * from "./Box/index.js";
58
58
  export * from "./Banner/index.js";
59
59
  export * from "./Animation/index.js";
60
+ export * from "./ProfilePhoto/index.js";
60
61
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../src","sources":["component/index.ts"],"mappings":";;AAAA,cAAc,wBAAqB;AACnC,cAAc,UAAO;AACrB,cAAc,gBAAO;AACrB,cAAc,eAAY;AAC1B,cAAc,aAAU;AACxB,cAAc,uBAAoB;AAClC,cAAc,gBAAgB;AAC9B,cAAc,kBAAe;AAC7B,cAAc,eAAY;AAC1B,cAAc,sBAAmB;AACjC,cAAc,gBAAa;AAC3B,cAAc,wBAAqB;AACnC,cAAc,yBAAsB;AACpC,cAAc,mBAAgB;AAC9B,cAAc,kBAAe;AAC7B,cAAc,kBAAe;AAC7B,cAAc,uBAAoB;AAClC,cAAc,2BAAwB;AACtC,cAAc,0BAAuB;AACrC,cAAc,aAAU;AACxB,cAAc,kBAAe;AAC7B,cAAc,mBAAgB;AAC9B,cAAc,2BAAwB;AACtC,cAAc,gBAAgB;AAC9B,cAAc,yBAAsB;AACpC,cAAc,2BAA2B;AACzC,cAAc,iBAAc;AAC5B,cAAc,0BAAuB;AACrC,cAAc,UAAO;AACrB,cA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cAAc,kCAA+B;AAC7C,cAAc,WAAQ;AACtB,cAAc,eAAY;AAC1B,cAAc,WAAQ;AACtB,cAAc,kBAAe;AAC7B,cAAc,qBAAkB;AAChC,cAAc,oBAAW;AACzB,cAAc,sBAAa;AAC3B,cAAc,YAAS;AACvB,cAAc,gBAAO;AACrB,cAAc,6BAAoB;AAClC,cAAc,uCAA8B;AAC5C,cAAc,0BAAiB;AAC/B,cAAc,qBAAY;AAC1B,cAAc,sBAAa;AAC3B,cAAc,mBAAU;AACxB,cAAc,mBAAU;AACxB,cAAc,mBAAU;AACxB,cAAc,gBAAO;AACrB,cAAc,iBAAQ;AACtB,cAAc,mBAAU;AACxB,cAAc,wBAAqB;AACnC,cAAc,mBAAU;AACxB,cAAc,gBAAO;AACrB,cAAc,gBAAO;AACrB,cAAc,mBAAU;AACxB,cAAc,sBAAa;AAC3B,cAAc,yBAAgB","ignoreList":[]}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ import { Dimensions } from 'react-native';
4
+ import { is } from "./is.js";
5
+ const scaleFactor = () => Math.min(2, Dimensions.get('window').scale);
6
+ export function appendImageSizeQueryParams({
7
+ url,
8
+ desiredWidth,
9
+ crop
10
+ }) {
11
+ if (!is.notEmptyString(url) || !url.startsWith('http')) {
12
+ return url;
13
+ }
14
+ const w = Math.max(128, Math.floor((desiredWidth * scaleFactor() + 128 - 1) / 128) * 128);
15
+ const cropQueryStrings = Object.entries(crop || {}).map(([key, value]) => `${key}=${Math.round(value)}`);
16
+ const queryString = [`w=${w}`, ...cropQueryStrings].join('&');
17
+ if (url.includes('?')) {
18
+ return `${url}&${queryString}`;
19
+ } else {
20
+ return `${url}?${queryString}`;
21
+ }
22
+ }
23
+ //# sourceMappingURL=WebImageUrlEnricher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Dimensions","is","scaleFactor","Math","min","get","scale","appendImageSizeQueryParams","url","desiredWidth","crop","notEmptyString","startsWith","w","max","floor","cropQueryStrings","Object","entries","map","key","value","round","queryString","join","includes"],"sourceRoot":"../../../src","sources":["util/WebImageUrlEnricher.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,SAASC,EAAE,QAAQ,SAAM;AAEzB,MAAMC,WAAW,GAAGA,CAAA,KAAMC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAEJ,UAAU,CAACK,GAAG,CAAC,QAAQ,CAAC,CAACC,KAAK,CAAC;AAErE,OAAO,SAASC,0BAA0BA,CAAC;EACzCC,GAAG;EACHC,YAAY;EACZC;AAKF,CAAC,EAAU;EACT,IAAI,CAACT,EAAE,CAACU,cAAc,CAACH,GAAG,CAAC,IAAI,CAACA,GAAG,CAACI,UAAU,CAAC,MAAM,CAAC,EAAE;IACtD,OAAOJ,GAAG;EACZ;EAEA,MAAMK,CAAC,GAAGV,IAAI,CAACW,GAAG,CAAC,GAAG,EAAEX,IAAI,CAACY,KAAK,CAAC,CAACN,YAAY,GAAGP,WAAW,CAAC,CAAC,GAAG,GAAG,GAAG,CAAC,IAAI,GAAG,CAAC,GAAG,GAAG,CAAC;EAEzF,MAAMc,gBAAgB,GAAGC,MAAM,CAACC,OAAO,CAACR,IAAI,IAAI,CAAC,CAAC,CAAC,CAACS,GAAG,CAAC,CAAC,CAACC,GAAG,EAAEC,KAAK,CAAC,KAAK,GAAGD,GAAG,IAAIjB,IAAI,CAACmB,KAAK,CAACD,KAAK,CAAC,EAAE,CAAC;EAExG,MAAME,WAAW,GAAG,CAAC,KAAKV,CAAC,EAAE,EAAE,GAAGG,gBAAgB,CAAC,CAACQ,IAAI,CAAC,GAAG,CAAC;EAE7D,IAAIhB,GAAG,CAACiB,QAAQ,CAAC,GAAG,CAAC,EAAE;IACrB,OAAO,GAAGjB,GAAG,IAAIe,WAAW,EAAE;EAChC,CAAC,MAAM;IACL,OAAO,GAAGf,GAAG,IAAIe,WAAW,EAAE;EAChC;AACF","ignoreList":[]}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ import { appendImageSizeQueryParams } from "./WebImageUrlEnricher.js";
4
+ describe('appendImageSizeQueryParams', () => {
5
+ it('url이 올바른 경우', () => {
6
+ expect(appendImageSizeQueryParams({
7
+ url: 'http://test.jpg',
8
+ desiredWidth: 100
9
+ })).toBe('http://test.jpg?w=256');
10
+ expect(appendImageSizeQueryParams({
11
+ url: 'http://test.jpg?x=1&t=5',
12
+ desiredWidth: 100
13
+ })).toBe('http://test.jpg?x=1&t=5&w=256');
14
+ });
15
+ it('url이 올바르지 않은 경우', () => {
16
+ expect(appendImageSizeQueryParams({
17
+ url: 1,
18
+ desiredWidth: 100
19
+ })).toBe(1);
20
+ });
21
+ });
22
+ //# sourceMappingURL=WebImageUrlEnricher.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["appendImageSizeQueryParams","describe","it","expect","url","desiredWidth","toBe"],"sourceRoot":"../../../src","sources":["util/WebImageUrlEnricher.test.ts"],"mappings":";;AAAA,SAASA,0BAA0B,QAAQ,0BAAuB;AAElEC,QAAQ,CAAC,4BAA4B,EAAE,MAAM;EAC3CC,EAAE,CAAC,aAAa,EAAE,MAAM;IACtBC,MAAM,CAACH,0BAA0B,CAAC;MAAEI,GAAG,EAAE,iBAAiB;MAAEC,YAAY,EAAE;IAAI,CAAC,CAAC,CAAC,CAACC,IAAI,CAAC,uBAAuB,CAAC;IAC/GH,MAAM,CAACH,0BAA0B,CAAC;MAAEI,GAAG,EAAE,yBAAyB;MAAEC,YAAY,EAAE;IAAI,CAAC,CAAC,CAAC,CAACC,IAAI,CAC5F,+BACF,CAAC;EACH,CAAC,CAAC;EAEFJ,EAAE,CAAC,iBAAiB,EAAE,MAAM;IAC1BC,MAAM,CAACH,0BAA0B,CAAC;MAAEI,GAAG,EAAE,CAAQ;MAAEC,YAAY,EAAE;IAAI,CAAC,CAAC,CAAC,CAACC,IAAI,CAAC,CAAC,CAAC;EAClF,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -7,4 +7,5 @@ export * from "./Px.js";
7
7
  export * from "./EnvironmentUtil.js";
8
8
  export * from "./createCtx.js";
9
9
  export * from "./runAfterFlushMacroQueue.js";
10
+ export * from "./WebImageUrlEnricher.js";
10
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../src","sources":["util/index.ts"],"mappings":";;AAAA,cAAc,SAAM;AACpB,cAAc,gBAAa;AAC3B,cAAc,gBAAa;AAC3B,cAAc,SAAM;AACpB,cAAc,sBAAmB;AACjC,cAAc,gBAAa;AAC3B,cAAc,8BAA2B","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["util/index.ts"],"mappings":";;AAAA,cAAc,SAAM;AACpB,cAAc,gBAAa;AAC3B,cAAc,gBAAa;AAC3B,cAAc,SAAM;AACpB,cAAc,sBAAmB;AACjC,cAAc,gBAAa;AAC3B,cAAc,8BAA2B;AACzC,cAAc,0BAAuB","ignoreList":[]}
@@ -0,0 +1,11 @@
1
+ import type { StyleProp, ViewStyle } from 'react-native';
2
+ declare const LightProfilePhoto: ({ profileImageUrl, style, size: _size, borderColor, borderWidth, optimize, }: {
3
+ profileImageUrl: string;
4
+ style?: StyleProp<Omit<ViewStyle, 'borderWidth' | 'borderColor'>>;
5
+ size?: number | undefined;
6
+ borderWidth?: number | undefined;
7
+ borderColor?: string | undefined;
8
+ optimize?: boolean | undefined;
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
+ export { LightProfilePhoto };
11
+ //# sourceMappingURL=LightProfilePhoto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LightProfilePhoto.d.ts","sourceRoot":"","sources":["../../../../../../src/component/ProfilePhoto/LightProfilePhoto.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AASzD,QAAA,MAAM,iBAAiB;qBAQJ,MAAM;YACf,UAAU,KAAK,SAAS,EAAE,aAAa,GAAG,aAAa,CAAC,CAAC;;;;;6CAsClE,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { ImageSourcePropType, ColorValue } from 'react-native';
2
+ type Props = {
3
+ count?: number;
4
+ imageUrls: (ImageSourcePropType | string)[];
5
+ stackDirection?: 'left' | 'right';
6
+ size?: number;
7
+ backgroundColor?: string;
8
+ showBorder?: boolean;
9
+ maxCircleCount?: number;
10
+ showsMoreCount?: boolean;
11
+ borderWidth?: number;
12
+ borderPadding?: number;
13
+ borderColor?: ColorValue;
14
+ resizeNetworkImage?: boolean;
15
+ imageBorderWidth?: number;
16
+ imageBorderColor?: ColorValue;
17
+ };
18
+ declare const ProfileImageGroup: ({ count: countProp, imageUrls: _imageUrls, stackDirection, size, backgroundColor, showBorder, maxCircleCount, showsMoreCount, borderWidth, borderPadding, borderColor, resizeNetworkImage, imageBorderWidth, imageBorderColor, }: Props) => import("react/jsx-runtime").JSX.Element;
19
+ export { ProfileImageGroup };
20
+ //# sourceMappingURL=ProfileImageGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfileImageGroup.d.ts","sourceRoot":"","sources":["../../../../../../src/component/ProfilePhoto/ProfileImageGroup.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AASpE,KAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,CAAC,mBAAmB,GAAG,MAAM,CAAC,EAAE,CAAC;IAC5C,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,UAAU,CAAC;CAC/B,CAAC;AACF,QAAA,MAAM,iBAAiB,qOAgBpB,KAAK,4CAoDP,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { ReactElement } from 'react';
2
+ import { type StyleProp, type ViewStyle } from 'react-native';
3
+ type Props = {
4
+ style?: StyleProp<ViewStyle>;
5
+ onPress?: () => void;
6
+ showIcon?: boolean;
7
+ pressable?: boolean;
8
+ length?: number;
9
+ testID?: string;
10
+ profileImageUrl?: string;
11
+ };
12
+ declare const ProfilePhoto: ({ style, onPress, showIcon, pressable, length: _length, testID, profileImageUrl, }: Props) => ReactElement;
13
+ export { ProfilePhoto };
14
+ //# sourceMappingURL=ProfilePhoto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfilePhoto.d.ts","sourceRoot":"","sources":["../../../../../../src/component/ProfilePhoto/ProfilePhoto.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAQ,MAAM,cAAc,CAAC;AAWpE,KAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AACF,QAAA,MAAM,YAAY,uFAQf,KAAK,KAAG,YAiDV,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import type { ColorValue } from 'react-native';
3
+ declare const ProfilePhotoWithBorderGradient: import("react").MemoExoticComponent<({ profileImageUrl, size, borderGradientColor, optimize, }: {
4
+ profileImageUrl: string;
5
+ size: number;
6
+ borderGradientColor?: ColorValue | undefined;
7
+ optimize?: boolean | undefined;
8
+ }) => import("react/jsx-runtime").JSX.Element>;
9
+ export { ProfilePhotoWithBorderGradient };
10
+ //# sourceMappingURL=ProfilePhotoWithBorderGradient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfilePhotoWithBorderGradient.d.ts","sourceRoot":"","sources":["../../../../../../src/component/ProfilePhoto/ProfilePhotoWithBorderGradient.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAQ/C,QAAA,MAAM,8BAA8B;qBAOf,MAAM;UACjB,MAAM;;;8CAmBf,CAAC;AAEF,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './LightProfilePhoto';
2
+ export * from './ProfileImageGroup';
3
+ export * from './ProfilePhoto';
4
+ export * from './ProfilePhotoWithBorderGradient';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/component/ProfilePhoto/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kCAAkC,CAAC"}
@@ -55,4 +55,5 @@ export * from './Btn';
55
55
  export * from './Box';
56
56
  export * from './Banner';
57
57
  export * from './Animation';
58
+ export * from './ProfilePhoto';
58
59
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":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CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,12 @@
1
+ export type ImageCrop = {
2
+ l: number;
3
+ r: number;
4
+ t: number;
5
+ b: number;
6
+ };
7
+ export declare function appendImageSizeQueryParams({ url, desiredWidth, crop, }: {
8
+ url: string;
9
+ desiredWidth: number;
10
+ crop?: ImageCrop;
11
+ }): string;
12
+ //# sourceMappingURL=WebImageUrlEnricher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebImageUrlEnricher.d.ts","sourceRoot":"","sources":["../../../../../src/util/WebImageUrlEnricher.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,SAAS,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACvE,wBAAgB,0BAA0B,CAAC,EACzC,GAAG,EACH,YAAY,EACZ,IAAI,GACL,EAAE;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,GAAG,MAAM,CAgBT"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=WebImageUrlEnricher.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebImageUrlEnricher.test.d.ts","sourceRoot":"","sources":["../../../../../src/util/WebImageUrlEnricher.test.ts"],"names":[],"mappings":""}
@@ -5,4 +5,5 @@ export * from './Px';
5
5
  export * from './EnvironmentUtil';
6
6
  export * from './createCtx';
7
7
  export * from './runAfterFlushMacroQueue';
8
+ export * from './WebImageUrlEnricher';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/util/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,MAAM,CAAC;AACrB,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/util/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,MAAM,CAAC;AACrB,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { StyleProp, ViewStyle } from 'react-native';
2
+ declare const LightProfilePhoto: ({ profileImageUrl, style, size: _size, borderColor, borderWidth, optimize, }: {
3
+ profileImageUrl: string;
4
+ style?: StyleProp<Omit<ViewStyle, 'borderWidth' | 'borderColor'>>;
5
+ size?: number | undefined;
6
+ borderWidth?: number | undefined;
7
+ borderColor?: string | undefined;
8
+ optimize?: boolean | undefined;
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
+ export { LightProfilePhoto };
11
+ //# sourceMappingURL=LightProfilePhoto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LightProfilePhoto.d.ts","sourceRoot":"","sources":["../../../../../../src/component/ProfilePhoto/LightProfilePhoto.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AASzD,QAAA,MAAM,iBAAiB;qBAQJ,MAAM;YACf,UAAU,KAAK,SAAS,EAAE,aAAa,GAAG,aAAa,CAAC,CAAC;;;;;6CAsClE,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { ImageSourcePropType, ColorValue } from 'react-native';
2
+ type Props = {
3
+ count?: number;
4
+ imageUrls: (ImageSourcePropType | string)[];
5
+ stackDirection?: 'left' | 'right';
6
+ size?: number;
7
+ backgroundColor?: string;
8
+ showBorder?: boolean;
9
+ maxCircleCount?: number;
10
+ showsMoreCount?: boolean;
11
+ borderWidth?: number;
12
+ borderPadding?: number;
13
+ borderColor?: ColorValue;
14
+ resizeNetworkImage?: boolean;
15
+ imageBorderWidth?: number;
16
+ imageBorderColor?: ColorValue;
17
+ };
18
+ declare const ProfileImageGroup: ({ count: countProp, imageUrls: _imageUrls, stackDirection, size, backgroundColor, showBorder, maxCircleCount, showsMoreCount, borderWidth, borderPadding, borderColor, resizeNetworkImage, imageBorderWidth, imageBorderColor, }: Props) => import("react/jsx-runtime").JSX.Element;
19
+ export { ProfileImageGroup };
20
+ //# sourceMappingURL=ProfileImageGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfileImageGroup.d.ts","sourceRoot":"","sources":["../../../../../../src/component/ProfilePhoto/ProfileImageGroup.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AASpE,KAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,CAAC,mBAAmB,GAAG,MAAM,CAAC,EAAE,CAAC;IAC5C,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,UAAU,CAAC;CAC/B,CAAC;AACF,QAAA,MAAM,iBAAiB,qOAgBpB,KAAK,4CAoDP,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}