@kukkim/react-native-ui 0.1.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 (321) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +33 -0
  3. package/lib/module/assets/icons/arrow-down-to-line.svg +1 -0
  4. package/lib/module/assets/icons/arrow-down-wide-narrow.svg +1 -0
  5. package/lib/module/assets/icons/arrow-left.svg +1 -0
  6. package/lib/module/assets/icons/check.svg +1 -0
  7. package/lib/module/assets/icons/chevron-down.svg +1 -0
  8. package/lib/module/assets/icons/copy.svg +1 -0
  9. package/lib/module/assets/icons/rotate-cw.svg +1 -0
  10. package/lib/module/assets/icons/square-arrow-out-up-right.svg +1 -0
  11. package/lib/module/assets/icons/star-empty.svg +1 -0
  12. package/lib/module/assets/icons/star-full.svg +1 -0
  13. package/lib/module/assets/icons/star-half.svg +25 -0
  14. package/lib/module/assets/icons/x.svg +1 -0
  15. package/lib/module/assets/images/defaultImage.png +0 -0
  16. package/lib/module/components/avatar/index.js +45 -0
  17. package/lib/module/components/avatar/index.js.map +1 -0
  18. package/lib/module/components/avatar/types.js +49 -0
  19. package/lib/module/components/avatar/types.js.map +1 -0
  20. package/lib/module/components/badge/commonBadge.js +44 -0
  21. package/lib/module/components/badge/commonBadge.js.map +1 -0
  22. package/lib/module/components/badge/index.js +5 -0
  23. package/lib/module/components/badge/index.js.map +1 -0
  24. package/lib/module/components/badge/types.js +48 -0
  25. package/lib/module/components/badge/types.js.map +1 -0
  26. package/lib/module/components/button/commonButton.js +43 -0
  27. package/lib/module/components/button/commonButton.js.map +1 -0
  28. package/lib/module/components/button/index.js +5 -0
  29. package/lib/module/components/button/index.js.map +1 -0
  30. package/lib/module/components/button/types.js +28 -0
  31. package/lib/module/components/button/types.js.map +1 -0
  32. package/lib/module/components/card/commonCard.js +57 -0
  33. package/lib/module/components/card/commonCard.js.map +1 -0
  34. package/lib/module/components/card/foldableCard.js +76 -0
  35. package/lib/module/components/card/foldableCard.js.map +1 -0
  36. package/lib/module/components/card/index.js +6 -0
  37. package/lib/module/components/card/index.js.map +1 -0
  38. package/lib/module/components/card/types.js +4 -0
  39. package/lib/module/components/card/types.js.map +1 -0
  40. package/lib/module/components/checkBox/index.js +38 -0
  41. package/lib/module/components/checkBox/index.js.map +1 -0
  42. package/lib/module/components/checkBox/types.js +17 -0
  43. package/lib/module/components/checkBox/types.js.map +1 -0
  44. package/lib/module/components/header/commonHeader.js +72 -0
  45. package/lib/module/components/header/commonHeader.js.map +1 -0
  46. package/lib/module/components/header/index.js +5 -0
  47. package/lib/module/components/header/index.js.map +1 -0
  48. package/lib/module/components/header/types.js +28 -0
  49. package/lib/module/components/header/types.js.map +1 -0
  50. package/lib/module/components/icon/ArrowDownToLine.js +25 -0
  51. package/lib/module/components/icon/ArrowDownToLine.js.map +1 -0
  52. package/lib/module/components/icon/ArrowDownWideNarrow.js +25 -0
  53. package/lib/module/components/icon/ArrowDownWideNarrow.js.map +1 -0
  54. package/lib/module/components/icon/ArrowLeft.js +25 -0
  55. package/lib/module/components/icon/ArrowLeft.js.map +1 -0
  56. package/lib/module/components/icon/Check.js +25 -0
  57. package/lib/module/components/icon/Check.js.map +1 -0
  58. package/lib/module/components/icon/ChevronDown.js +25 -0
  59. package/lib/module/components/icon/ChevronDown.js.map +1 -0
  60. package/lib/module/components/icon/Copy.js +32 -0
  61. package/lib/module/components/icon/Copy.js.map +1 -0
  62. package/lib/module/components/icon/RotateCw.js +27 -0
  63. package/lib/module/components/icon/RotateCw.js.map +1 -0
  64. package/lib/module/components/icon/SquareArrowOutUpRight.js +25 -0
  65. package/lib/module/components/icon/SquareArrowOutUpRight.js.map +1 -0
  66. package/lib/module/components/icon/StarEmpty.js +25 -0
  67. package/lib/module/components/icon/StarEmpty.js.map +1 -0
  68. package/lib/module/components/icon/StarFull.js +25 -0
  69. package/lib/module/components/icon/StarFull.js.map +1 -0
  70. package/lib/module/components/icon/StarHalf.js +34 -0
  71. package/lib/module/components/icon/StarHalf.js.map +1 -0
  72. package/lib/module/components/icon/X.js +25 -0
  73. package/lib/module/components/icon/X.js.map +1 -0
  74. package/lib/module/components/icon/index.js +54 -0
  75. package/lib/module/components/icon/index.js.map +1 -0
  76. package/lib/module/components/icon/types.js +8 -0
  77. package/lib/module/components/icon/types.js.map +1 -0
  78. package/lib/module/components/image/index.js +25 -0
  79. package/lib/module/components/image/index.js.map +1 -0
  80. package/lib/module/components/image/types.js +39 -0
  81. package/lib/module/components/image/types.js.map +1 -0
  82. package/lib/module/components/index.js +15 -0
  83. package/lib/module/components/index.js.map +1 -0
  84. package/lib/module/components/progressBar/circularProgressBar.js +59 -0
  85. package/lib/module/components/progressBar/circularProgressBar.js.map +1 -0
  86. package/lib/module/components/progressBar/index.js +7 -0
  87. package/lib/module/components/progressBar/index.js.map +1 -0
  88. package/lib/module/components/progressBar/linearProgressBar.js +42 -0
  89. package/lib/module/components/progressBar/linearProgressBar.js.map +1 -0
  90. package/lib/module/components/progressBar/types.js +13 -0
  91. package/lib/module/components/progressBar/types.js.map +1 -0
  92. package/lib/module/components/rating/index.js +84 -0
  93. package/lib/module/components/rating/index.js.map +1 -0
  94. package/lib/module/components/rating/types.js +8 -0
  95. package/lib/module/components/rating/types.js.map +1 -0
  96. package/lib/module/components/screenContainer/SafeAreaContainer.js +26 -0
  97. package/lib/module/components/screenContainer/SafeAreaContainer.js.map +1 -0
  98. package/lib/module/components/screenContainer/ScrollViewContainer.js +24 -0
  99. package/lib/module/components/screenContainer/ScrollViewContainer.js.map +1 -0
  100. package/lib/module/components/screenContainer/index.js +6 -0
  101. package/lib/module/components/screenContainer/index.js.map +1 -0
  102. package/lib/module/components/skeleton/index.js +3 -0
  103. package/lib/module/components/skeleton/index.js.map +1 -0
  104. package/lib/module/components/skeleton/types.js +2 -0
  105. package/lib/module/components/skeleton/types.js.map +1 -0
  106. package/lib/module/components/slider/index.js +3 -0
  107. package/lib/module/components/slider/index.js.map +1 -0
  108. package/lib/module/components/slider/types.js +2 -0
  109. package/lib/module/components/slider/types.js.map +1 -0
  110. package/lib/module/components/switch/index.js +3 -0
  111. package/lib/module/components/switch/index.js.map +1 -0
  112. package/lib/module/components/switch/types.js +2 -0
  113. package/lib/module/components/switch/types.js.map +1 -0
  114. package/lib/module/components/text/commonText.js +28 -0
  115. package/lib/module/components/text/commonText.js.map +1 -0
  116. package/lib/module/components/text/index.js +5 -0
  117. package/lib/module/components/text/index.js.map +1 -0
  118. package/lib/module/components/text/types.js +17 -0
  119. package/lib/module/components/text/types.js.map +1 -0
  120. package/lib/module/hooks/useTheme.js +12 -0
  121. package/lib/module/hooks/useTheme.js.map +1 -0
  122. package/lib/module/index.js +5 -0
  123. package/lib/module/index.js.map +1 -0
  124. package/lib/module/package.json +1 -0
  125. package/lib/module/theme/color.js +10 -0
  126. package/lib/module/theme/color.js.map +1 -0
  127. package/lib/module/theme/style.js +17 -0
  128. package/lib/module/theme/style.js.map +1 -0
  129. package/lib/module/theme/themeProvider.js +22 -0
  130. package/lib/module/theme/themeProvider.js.map +1 -0
  131. package/lib/module/theme/themes.js +41 -0
  132. package/lib/module/theme/themes.js.map +1 -0
  133. package/lib/typescript/package.json +1 -0
  134. package/lib/typescript/src/components/avatar/index.d.ts +3 -0
  135. package/lib/typescript/src/components/avatar/index.d.ts.map +1 -0
  136. package/lib/typescript/src/components/avatar/types.d.ts +16 -0
  137. package/lib/typescript/src/components/avatar/types.d.ts.map +1 -0
  138. package/lib/typescript/src/components/badge/commonBadge.d.ts +4 -0
  139. package/lib/typescript/src/components/badge/commonBadge.d.ts.map +1 -0
  140. package/lib/typescript/src/components/badge/index.d.ts +3 -0
  141. package/lib/typescript/src/components/badge/index.d.ts.map +1 -0
  142. package/lib/typescript/src/components/badge/types.d.ts +19 -0
  143. package/lib/typescript/src/components/badge/types.d.ts.map +1 -0
  144. package/lib/typescript/src/components/button/commonButton.d.ts +4 -0
  145. package/lib/typescript/src/components/button/commonButton.d.ts.map +1 -0
  146. package/lib/typescript/src/components/button/index.d.ts +3 -0
  147. package/lib/typescript/src/components/button/index.d.ts.map +1 -0
  148. package/lib/typescript/src/components/button/types.d.ts +14 -0
  149. package/lib/typescript/src/components/button/types.d.ts.map +1 -0
  150. package/lib/typescript/src/components/card/commonCard.d.ts +4 -0
  151. package/lib/typescript/src/components/card/commonCard.d.ts.map +1 -0
  152. package/lib/typescript/src/components/card/foldableCard.d.ts +4 -0
  153. package/lib/typescript/src/components/card/foldableCard.d.ts.map +1 -0
  154. package/lib/typescript/src/components/card/index.d.ts +4 -0
  155. package/lib/typescript/src/components/card/index.d.ts.map +1 -0
  156. package/lib/typescript/src/components/card/types.d.ts +16 -0
  157. package/lib/typescript/src/components/card/types.d.ts.map +1 -0
  158. package/lib/typescript/src/components/checkBox/index.d.ts +3 -0
  159. package/lib/typescript/src/components/checkBox/index.d.ts.map +1 -0
  160. package/lib/typescript/src/components/checkBox/types.d.ts +11 -0
  161. package/lib/typescript/src/components/checkBox/types.d.ts.map +1 -0
  162. package/lib/typescript/src/components/header/commonHeader.d.ts +4 -0
  163. package/lib/typescript/src/components/header/commonHeader.d.ts.map +1 -0
  164. package/lib/typescript/src/components/header/index.d.ts +3 -0
  165. package/lib/typescript/src/components/header/index.d.ts.map +1 -0
  166. package/lib/typescript/src/components/header/types.d.ts +19 -0
  167. package/lib/typescript/src/components/header/types.d.ts.map +1 -0
  168. package/lib/typescript/src/components/icon/ArrowDownToLine.d.ts +4 -0
  169. package/lib/typescript/src/components/icon/ArrowDownToLine.d.ts.map +1 -0
  170. package/lib/typescript/src/components/icon/ArrowDownWideNarrow.d.ts +4 -0
  171. package/lib/typescript/src/components/icon/ArrowDownWideNarrow.d.ts.map +1 -0
  172. package/lib/typescript/src/components/icon/ArrowLeft.d.ts +4 -0
  173. package/lib/typescript/src/components/icon/ArrowLeft.d.ts.map +1 -0
  174. package/lib/typescript/src/components/icon/Check.d.ts +4 -0
  175. package/lib/typescript/src/components/icon/Check.d.ts.map +1 -0
  176. package/lib/typescript/src/components/icon/ChevronDown.d.ts +4 -0
  177. package/lib/typescript/src/components/icon/ChevronDown.d.ts.map +1 -0
  178. package/lib/typescript/src/components/icon/Copy.d.ts +4 -0
  179. package/lib/typescript/src/components/icon/Copy.d.ts.map +1 -0
  180. package/lib/typescript/src/components/icon/RotateCw.d.ts +4 -0
  181. package/lib/typescript/src/components/icon/RotateCw.d.ts.map +1 -0
  182. package/lib/typescript/src/components/icon/SquareArrowOutUpRight.d.ts +4 -0
  183. package/lib/typescript/src/components/icon/SquareArrowOutUpRight.d.ts.map +1 -0
  184. package/lib/typescript/src/components/icon/StarEmpty.d.ts +4 -0
  185. package/lib/typescript/src/components/icon/StarEmpty.d.ts.map +1 -0
  186. package/lib/typescript/src/components/icon/StarFull.d.ts +4 -0
  187. package/lib/typescript/src/components/icon/StarFull.d.ts.map +1 -0
  188. package/lib/typescript/src/components/icon/StarHalf.d.ts +4 -0
  189. package/lib/typescript/src/components/icon/StarHalf.d.ts.map +1 -0
  190. package/lib/typescript/src/components/icon/X.d.ts +4 -0
  191. package/lib/typescript/src/components/icon/X.d.ts.map +1 -0
  192. package/lib/typescript/src/components/icon/index.d.ts +3 -0
  193. package/lib/typescript/src/components/icon/index.d.ts.map +1 -0
  194. package/lib/typescript/src/components/icon/types.d.ts +12 -0
  195. package/lib/typescript/src/components/icon/types.d.ts.map +1 -0
  196. package/lib/typescript/src/components/image/index.d.ts +3 -0
  197. package/lib/typescript/src/components/image/index.d.ts.map +1 -0
  198. package/lib/typescript/src/components/image/types.d.ts +9 -0
  199. package/lib/typescript/src/components/image/types.d.ts.map +1 -0
  200. package/lib/typescript/src/components/index.d.ts +13 -0
  201. package/lib/typescript/src/components/index.d.ts.map +1 -0
  202. package/lib/typescript/src/components/progressBar/circularProgressBar.d.ts +4 -0
  203. package/lib/typescript/src/components/progressBar/circularProgressBar.d.ts.map +1 -0
  204. package/lib/typescript/src/components/progressBar/index.d.ts +4 -0
  205. package/lib/typescript/src/components/progressBar/index.d.ts.map +1 -0
  206. package/lib/typescript/src/components/progressBar/linearProgressBar.d.ts +4 -0
  207. package/lib/typescript/src/components/progressBar/linearProgressBar.d.ts.map +1 -0
  208. package/lib/typescript/src/components/progressBar/types.d.ts +12 -0
  209. package/lib/typescript/src/components/progressBar/types.d.ts.map +1 -0
  210. package/lib/typescript/src/components/rating/index.d.ts +3 -0
  211. package/lib/typescript/src/components/rating/index.d.ts.map +1 -0
  212. package/lib/typescript/src/components/rating/types.d.ts +13 -0
  213. package/lib/typescript/src/components/rating/types.d.ts.map +1 -0
  214. package/lib/typescript/src/components/screenContainer/SafeAreaContainer.d.ts +4 -0
  215. package/lib/typescript/src/components/screenContainer/SafeAreaContainer.d.ts.map +1 -0
  216. package/lib/typescript/src/components/screenContainer/ScrollViewContainer.d.ts +4 -0
  217. package/lib/typescript/src/components/screenContainer/ScrollViewContainer.d.ts.map +1 -0
  218. package/lib/typescript/src/components/screenContainer/index.d.ts +4 -0
  219. package/lib/typescript/src/components/screenContainer/index.d.ts.map +1 -0
  220. package/lib/typescript/src/components/skeleton/index.d.ts +1 -0
  221. package/lib/typescript/src/components/skeleton/index.d.ts.map +1 -0
  222. package/lib/typescript/src/components/skeleton/types.d.ts +1 -0
  223. package/lib/typescript/src/components/skeleton/types.d.ts.map +1 -0
  224. package/lib/typescript/src/components/slider/index.d.ts +1 -0
  225. package/lib/typescript/src/components/slider/index.d.ts.map +1 -0
  226. package/lib/typescript/src/components/slider/types.d.ts +1 -0
  227. package/lib/typescript/src/components/slider/types.d.ts.map +1 -0
  228. package/lib/typescript/src/components/switch/index.d.ts +1 -0
  229. package/lib/typescript/src/components/switch/index.d.ts.map +1 -0
  230. package/lib/typescript/src/components/switch/types.d.ts +1 -0
  231. package/lib/typescript/src/components/switch/types.d.ts.map +1 -0
  232. package/lib/typescript/src/components/text/commonText.d.ts +4 -0
  233. package/lib/typescript/src/components/text/commonText.d.ts.map +1 -0
  234. package/lib/typescript/src/components/text/index.d.ts +3 -0
  235. package/lib/typescript/src/components/text/index.d.ts.map +1 -0
  236. package/lib/typescript/src/components/text/types.d.ts +11 -0
  237. package/lib/typescript/src/components/text/types.d.ts.map +1 -0
  238. package/lib/typescript/src/hooks/useTheme.d.ts +5 -0
  239. package/lib/typescript/src/hooks/useTheme.d.ts.map +1 -0
  240. package/lib/typescript/src/index.d.ts +3 -0
  241. package/lib/typescript/src/index.d.ts.map +1 -0
  242. package/lib/typescript/src/theme/color.d.ts +8 -0
  243. package/lib/typescript/src/theme/color.d.ts.map +1 -0
  244. package/lib/typescript/src/theme/style.d.ts +15 -0
  245. package/lib/typescript/src/theme/style.d.ts.map +1 -0
  246. package/lib/typescript/src/theme/themeProvider.d.ts +13 -0
  247. package/lib/typescript/src/theme/themeProvider.d.ts.map +1 -0
  248. package/lib/typescript/src/theme/themes.d.ts +25 -0
  249. package/lib/typescript/src/theme/themes.d.ts.map +1 -0
  250. package/package.json +170 -0
  251. package/src/assets/icons/arrow-down-to-line.svg +1 -0
  252. package/src/assets/icons/arrow-down-wide-narrow.svg +1 -0
  253. package/src/assets/icons/arrow-left.svg +1 -0
  254. package/src/assets/icons/check.svg +1 -0
  255. package/src/assets/icons/chevron-down.svg +1 -0
  256. package/src/assets/icons/copy.svg +1 -0
  257. package/src/assets/icons/rotate-cw.svg +1 -0
  258. package/src/assets/icons/square-arrow-out-up-right.svg +1 -0
  259. package/src/assets/icons/star-empty.svg +1 -0
  260. package/src/assets/icons/star-full.svg +1 -0
  261. package/src/assets/icons/star-half.svg +25 -0
  262. package/src/assets/icons/x.svg +1 -0
  263. package/src/assets/images/defaultImage.png +0 -0
  264. package/src/components/avatar/index.tsx +58 -0
  265. package/src/components/avatar/types.ts +38 -0
  266. package/src/components/badge/commonBadge.tsx +50 -0
  267. package/src/components/badge/index.ts +3 -0
  268. package/src/components/badge/types.ts +36 -0
  269. package/src/components/button/commonButton.tsx +43 -0
  270. package/src/components/button/index.ts +3 -0
  271. package/src/components/button/types.ts +29 -0
  272. package/src/components/card/commonCard.tsx +67 -0
  273. package/src/components/card/foldableCard.tsx +88 -0
  274. package/src/components/card/index.ts +4 -0
  275. package/src/components/card/types.ts +18 -0
  276. package/src/components/checkBox/index.tsx +41 -0
  277. package/src/components/checkBox/types.ts +16 -0
  278. package/src/components/header/commonHeader.tsx +55 -0
  279. package/src/components/header/index.ts +3 -0
  280. package/src/components/header/types.ts +30 -0
  281. package/src/components/icon/ArrowDownToLine.tsx +21 -0
  282. package/src/components/icon/ArrowDownWideNarrow.tsx +21 -0
  283. package/src/components/icon/ArrowLeft.tsx +21 -0
  284. package/src/components/icon/Check.tsx +21 -0
  285. package/src/components/icon/ChevronDown.tsx +21 -0
  286. package/src/components/icon/Copy.tsx +22 -0
  287. package/src/components/icon/RotateCw.tsx +22 -0
  288. package/src/components/icon/SquareArrowOutUpRight.tsx +21 -0
  289. package/src/components/icon/StarEmpty.tsx +21 -0
  290. package/src/components/icon/StarFull.tsx +21 -0
  291. package/src/components/icon/StarHalf.tsx +32 -0
  292. package/src/components/icon/X.tsx +21 -0
  293. package/src/components/icon/index.tsx +54 -0
  294. package/src/components/icon/types.ts +30 -0
  295. package/src/components/image/index.tsx +21 -0
  296. package/src/components/image/types.ts +20 -0
  297. package/src/components/index.ts +12 -0
  298. package/src/components/progressBar/circularProgressBar.tsx +64 -0
  299. package/src/components/progressBar/index.ts +5 -0
  300. package/src/components/progressBar/linearProgressBar.tsx +51 -0
  301. package/src/components/progressBar/types.ts +22 -0
  302. package/src/components/rating/index.tsx +106 -0
  303. package/src/components/rating/types.ts +17 -0
  304. package/src/components/screenContainer/SafeAreaContainer.tsx +22 -0
  305. package/src/components/screenContainer/ScrollViewContainer.tsx +19 -0
  306. package/src/components/screenContainer/index.ts +4 -0
  307. package/src/components/skeleton/index.tsx +1 -0
  308. package/src/components/skeleton/types.ts +0 -0
  309. package/src/components/slider/index.tsx +1 -0
  310. package/src/components/slider/types.ts +0 -0
  311. package/src/components/switch/index.tsx +1 -0
  312. package/src/components/switch/types.ts +0 -0
  313. package/src/components/text/commonText.tsx +27 -0
  314. package/src/components/text/index.ts +3 -0
  315. package/src/components/text/types.ts +16 -0
  316. package/src/hooks/useTheme.ts +12 -0
  317. package/src/index.tsx +18 -0
  318. package/src/theme/color.ts +7 -0
  319. package/src/theme/style.ts +15 -0
  320. package/src/theme/themeProvider.tsx +25 -0
  321. package/src/theme/themes.ts +71 -0
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Image","StyleSheet","sizeType","jsx","_jsx","CommonImage","size","props","style","styles","container","source","require","create"],"sourceRoot":"../../../../src","sources":["components/image/index.tsx"],"mappings":";;AAAA;AACA,SAASA,KAAK,EAAEC,UAAU,QAAQ,cAAc;AAChD,SAAgCC,QAAQ,QAAQ,YAAS;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE1D,OAAO,MAAMC,WAAW,GAAGA,CAAC;EAAEC,IAAI,GAAG,GAAG;EAAE,GAAGC;AAAwB,CAAC,KAAK;EACzE;EACA,oBACEH,IAAA,CAACJ,KAAK;IACJQ,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAER,QAAQ,CAACI,IAAI,CAAC,CAAE;IAC1CK,MAAM,EAAEC,OAAO,CAAC,sCAAsC;IACtD;IACA;IACA;IAAA;IAAA,GACIL;EAAK,CACV,CAAC;AAEN,CAAC;AAED,MAAME,MAAM,GAAGR,UAAU,CAACY,MAAM,CAAC;EAC/BH,SAAS,EAAE,CAAC;AACd,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ // type Variant = 'primary' | 'secondary';
4
+
5
+ export const sizeType = {
6
+ s: {
7
+ width: 24,
8
+ height: 24
9
+ },
10
+ m: {
11
+ width: 48,
12
+ height: 48
13
+ },
14
+ l: {
15
+ width: 72,
16
+ height: 72
17
+ }
18
+ };
19
+ export const avatarSizeType = {
20
+ s: {
21
+ width: 24,
22
+ height: 24,
23
+ borderRadius: 12,
24
+ borderWidth: 1
25
+ },
26
+ m: {
27
+ width: 48,
28
+ height: 48,
29
+ borderRadius: 24,
30
+ borderWidth: 1
31
+ },
32
+ l: {
33
+ width: 72,
34
+ height: 72,
35
+ borderRadius: 36,
36
+ borderWidth: 1
37
+ }
38
+ };
39
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["sizeType","s","width","height","m","l","avatarSizeType","borderRadius","borderWidth"],"sourceRoot":"../../../../src","sources":["components/image/types.ts"],"mappings":";;AAEA;;AAGA,OAAO,MAAMA,QAAyC,GAAG;EACvDC,CAAC,EAAE;IAAEC,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE;EAAG,CAAC;EAC5BC,CAAC,EAAE;IAAEF,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE;EAAG,CAAC;EAC5BE,CAAC,EAAE;IAAEH,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE;EAAG;AAC7B,CAAC;AAED,OAAO,MAAMG,cAA+C,GAAG;EAC7DL,CAAC,EAAE;IAAEC,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEI,YAAY,EAAE,EAAE;IAAEC,WAAW,EAAE;EAAE,CAAC;EAC9DJ,CAAC,EAAE;IAAEF,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEI,YAAY,EAAE,EAAE;IAAEC,WAAW,EAAE;EAAE,CAAC;EAC9DH,CAAC,EAAE;IAAEH,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEI,YAAY,EAAE,EAAE;IAAEC,WAAW,EAAE;EAAE;AAC/D,CAAC","ignoreList":[]}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ export { CommonText } from "./text/index.js";
4
+ export { CommonButton } from "./button/index.js";
5
+ export { CommonBadge } from "./badge/index.js";
6
+ export { SafeAreaContainer, ScrollViewContainer } from "./screenContainer/index.js";
7
+ export { CommonIcon } from "./icon/index.js";
8
+ export { CommonRating } from "./rating/index.js";
9
+ export { CommonAvatar } from "./avatar/index.js";
10
+ export { CommonImage } from "./image/index.js";
11
+ export { CheckBox } from "./checkBox/index.js";
12
+ export { CommonHeader } from "./header/index.js";
13
+ export { CommonCard, FoldableCard } from "./card/index.js";
14
+ export { LinearProgressBar, CircularProgressBar } from "./progressBar/index.js";
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["CommonText","CommonButton","CommonBadge","SafeAreaContainer","ScrollViewContainer","CommonIcon","CommonRating","CommonAvatar","CommonImage","CheckBox","CommonHeader","CommonCard","FoldableCard","LinearProgressBar","CircularProgressBar"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,iBAAQ;AACnC,SAASC,YAAY,QAAQ,mBAAU;AACvC,SAASC,WAAW,QAAQ,kBAAS;AACrC,SAASC,iBAAiB,EAAEC,mBAAmB,QAAQ,4BAAmB;AAC1E,SAASC,UAAU,QAAQ,iBAAQ;AACnC,SAASC,YAAY,QAAQ,mBAAU;AACvC,SAASC,YAAY,QAAQ,mBAAU;AACvC,SAASC,WAAW,QAAQ,kBAAS;AACrC,SAASC,QAAQ,QAAQ,qBAAY;AACrC,SAASC,YAAY,QAAQ,mBAAU;AACvC,SAASC,UAAU,EAAEC,YAAY,QAAQ,iBAAQ;AACjD,SAASC,iBAAiB,EAAEC,mBAAmB,QAAQ,wBAAe","ignoreList":[]}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet, View } from 'react-native';
4
+ import Svg, { Circle } from 'react-native-svg';
5
+ import { sizeType, strokeWidthType } from "./types.js";
6
+ import { useTheme } from "../../hooks/useTheme.js";
7
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
+ const CircularProgressBar = ({
9
+ type = 'primary',
10
+ size = 'm',
11
+ value,
12
+ style,
13
+ ...props
14
+ }) => {
15
+ const {
16
+ theme
17
+ } = useTheme();
18
+ const progress = Math.min(Math.max(value, 0), 1);
19
+ const svgSize = sizeType[size];
20
+ const strokeWidth = strokeWidthType[size];
21
+ const radius = (svgSize - strokeWidth) / 2;
22
+ const circumference = 2 * Math.PI * radius;
23
+ const strokeDashoffset = circumference * (1 - progress);
24
+ return /*#__PURE__*/_jsx(View, {
25
+ style: [styles.container, style],
26
+ ...props,
27
+ children: /*#__PURE__*/_jsxs(Svg, {
28
+ width: svgSize,
29
+ height: svgSize,
30
+ viewBox: `0 0 ${svgSize} ${svgSize}`,
31
+ children: [/*#__PURE__*/_jsx(Circle, {
32
+ cx: svgSize / 2,
33
+ cy: svgSize / 2,
34
+ r: radius,
35
+ stroke: theme.colors.disabled,
36
+ strokeWidth: strokeWidth,
37
+ fill: "none"
38
+ }), /*#__PURE__*/_jsx(Circle, {
39
+ cx: svgSize / 2,
40
+ cy: svgSize / 2,
41
+ r: radius,
42
+ stroke: theme.colors[type],
43
+ strokeWidth: strokeWidth,
44
+ fill: "none",
45
+ strokeLinecap: "round",
46
+ strokeDasharray: circumference,
47
+ strokeDashoffset: strokeDashoffset,
48
+ rotation: "-90",
49
+ originX: svgSize / 2,
50
+ originY: svgSize / 2
51
+ })]
52
+ })
53
+ });
54
+ };
55
+ const styles = StyleSheet.create({
56
+ container: {}
57
+ });
58
+ export default CircularProgressBar;
59
+ //# sourceMappingURL=circularProgressBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","View","Svg","Circle","sizeType","strokeWidthType","useTheme","jsx","_jsx","jsxs","_jsxs","CircularProgressBar","type","size","value","style","props","theme","progress","Math","min","max","svgSize","strokeWidth","radius","circumference","PI","strokeDashoffset","styles","container","children","width","height","viewBox","cx","cy","r","stroke","colors","disabled","fill","strokeLinecap","strokeDasharray","rotation","originX","originY","create"],"sourceRoot":"../../../../src","sources":["components/progressBar/circularProgressBar.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,OAAOC,GAAG,IAAIC,MAAM,QAAQ,kBAAkB;AAC9C,SAAgCC,QAAQ,EAAEC,eAAe,QAAQ,YAAS;AAC1E,SAASC,QAAQ,QAAQ,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEhD,MAAMC,mBAAmB,GAAGA,CAAC;EAC3BC,IAAI,GAAG,SAAS;EAChBC,IAAI,GAAG,GAAG;EACVC,KAAK;EACLC,KAAK;EACL,GAAGC;AACa,CAAC,KAAK;EACtB,MAAM;IAAEC;EAAM,CAAC,GAAGX,QAAQ,CAAC,CAAC;EAE5B,MAAMY,QAAQ,GAAGC,IAAI,CAACC,GAAG,CAACD,IAAI,CAACE,GAAG,CAACP,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;EAEhD,MAAMQ,OAAO,GAAGlB,QAAQ,CAACS,IAAI,CAAC;EAC9B,MAAMU,WAAW,GAAGlB,eAAe,CAACQ,IAAI,CAAC;EAEzC,MAAMW,MAAM,GAAG,CAACF,OAAO,GAAGC,WAAW,IAAI,CAAC;EAC1C,MAAME,aAAa,GAAG,CAAC,GAAGN,IAAI,CAACO,EAAE,GAAGF,MAAM;EAE1C,MAAMG,gBAAgB,GAAGF,aAAa,IAAI,CAAC,GAAGP,QAAQ,CAAC;EAEvD,oBACEV,IAAA,CAACP,IAAI;IAACc,KAAK,EAAE,CAACa,MAAM,CAACC,SAAS,EAAEd,KAAK,CAAE;IAAA,GAAKC,KAAK;IAAAc,QAAA,eAC/CpB,KAAA,CAACR,GAAG;MACF6B,KAAK,EAAET,OAAQ;MACfU,MAAM,EAAEV,OAAQ;MAChBW,OAAO,EAAE,OAAOX,OAAO,IAAIA,OAAO,EAAG;MAAAQ,QAAA,gBAErCtB,IAAA,CAACL,MAAM;QACL+B,EAAE,EAAEZ,OAAO,GAAG,CAAE;QAChBa,EAAE,EAAEb,OAAO,GAAG,CAAE;QAChBc,CAAC,EAAEZ,MAAO;QACVa,MAAM,EAAEpB,KAAK,CAACqB,MAAM,CAACC,QAAS;QAC9BhB,WAAW,EAAEA,WAAY;QACzBiB,IAAI,EAAC;MAAM,CACZ,CAAC,eAEFhC,IAAA,CAACL,MAAM;QACL+B,EAAE,EAAEZ,OAAO,GAAG,CAAE;QAChBa,EAAE,EAAEb,OAAO,GAAG,CAAE;QAChBc,CAAC,EAAEZ,MAAO;QACVa,MAAM,EAAEpB,KAAK,CAACqB,MAAM,CAAC1B,IAAI,CAAE;QAC3BW,WAAW,EAAEA,WAAY;QACzBiB,IAAI,EAAC,MAAM;QACXC,aAAa,EAAC,OAAO;QACrBC,eAAe,EAAEjB,aAAc;QAC/BE,gBAAgB,EAAEA,gBAAiB;QACnCgB,QAAQ,EAAC,KAAK;QACdC,OAAO,EAAEtB,OAAO,GAAG,CAAE;QACrBuB,OAAO,EAAEvB,OAAO,GAAG;MAAE,CACtB,CAAC;IAAA,CACC;EAAC,CACF,CAAC;AAEX,CAAC;AAED,MAAMM,MAAM,GAAG5B,UAAU,CAAC8C,MAAM,CAAC;EAC/BjB,SAAS,EAAE,CAAC;AACd,CAAC,CAAC;AAEF,eAAelB,mBAAmB","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ // TODO: progressbar에 react-native-reanimated를 이용한 animation적용 필요.
4
+ import LinearProgressBar from "./linearProgressBar.js";
5
+ import CircularProgressBar from "./circularProgressBar.js";
6
+ export { LinearProgressBar, CircularProgressBar };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["LinearProgressBar","CircularProgressBar"],"sourceRoot":"../../../../src","sources":["components/progressBar/index.ts"],"mappings":";;AAAA;AACA,OAAOA,iBAAiB,MAAM,wBAAqB;AACnD,OAAOC,mBAAmB,MAAM,0BAAuB;AAEvD,SAASD,iBAAiB,EAAEC,mBAAmB","ignoreList":[]}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet, View } from 'react-native';
4
+ import { useTheme } from "../../hooks/useTheme.js";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ const LinearProgressBar = ({
7
+ type = 'primary',
8
+ value,
9
+ style,
10
+ ...props
11
+ }) => {
12
+ const {
13
+ theme
14
+ } = useTheme();
15
+ const progress = Math.min(Math.max(value, 0), 1);
16
+ return /*#__PURE__*/_jsx(View, {
17
+ style: [styles.container, {
18
+ backgroundColor: theme.colors.disabled
19
+ }, style],
20
+ ...props,
21
+ children: /*#__PURE__*/_jsx(View, {
22
+ style: [styles.progress, {
23
+ width: `${progress * 100}%`,
24
+ backgroundColor: theme.colors[type]
25
+ }]
26
+ })
27
+ });
28
+ };
29
+ const styles = StyleSheet.create({
30
+ container: {
31
+ width: '100%',
32
+ height: 8,
33
+ borderRadius: 999,
34
+ overflow: 'hidden'
35
+ },
36
+ progress: {
37
+ height: '100%',
38
+ borderRadius: 999
39
+ }
40
+ });
41
+ export default LinearProgressBar;
42
+ //# sourceMappingURL=linearProgressBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","View","useTheme","jsx","_jsx","LinearProgressBar","type","value","style","props","theme","progress","Math","min","max","styles","container","backgroundColor","colors","disabled","children","width","create","height","borderRadius","overflow"],"sourceRoot":"../../../../src","sources":["components/progressBar/linearProgressBar.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAE/C,SAASC,QAAQ,QAAQ,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEhD,MAAMC,iBAAiB,GAAGA,CAAC;EACzBC,IAAI,GAAG,SAAS;EAChBC,KAAK;EACLC,KAAK;EACL,GAAGC;AACa,CAAC,KAAK;EACtB,MAAM;IAAEC;EAAM,CAAC,GAAGR,QAAQ,CAAC,CAAC;EAC5B,MAAMS,QAAQ,GAAGC,IAAI,CAACC,GAAG,CAACD,IAAI,CAACE,GAAG,CAACP,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;EAEhD,oBACEH,IAAA,CAACH,IAAI;IACHO,KAAK,EAAE,CACLO,MAAM,CAACC,SAAS,EAChB;MACEC,eAAe,EAAEP,KAAK,CAACQ,MAAM,CAACC;IAChC,CAAC,EACDX,KAAK,CACL;IAAA,GACEC,KAAK;IAAAW,QAAA,eAEThB,IAAA,CAACH,IAAI;MACHO,KAAK,EAAE,CACLO,MAAM,CAACJ,QAAQ,EACf;QACEU,KAAK,EAAE,GAAGV,QAAQ,GAAG,GAAG,GAAG;QAC3BM,eAAe,EAAEP,KAAK,CAACQ,MAAM,CAACZ,IAAI;MACpC,CAAC;IACD,CACH;EAAC,CACE,CAAC;AAEX,CAAC;AAED,MAAMS,MAAM,GAAGf,UAAU,CAACsB,MAAM,CAAC;EAC/BN,SAAS,EAAE;IACTK,KAAK,EAAE,MAAM;IACbE,MAAM,EAAE,CAAC;IACTC,YAAY,EAAE,GAAG;IACjBC,QAAQ,EAAE;EACZ,CAAC;EACDd,QAAQ,EAAE;IACRY,MAAM,EAAE,MAAM;IACdC,YAAY,EAAE;EAChB;AACF,CAAC,CAAC;AAEF,eAAenB,iBAAiB","ignoreList":[]}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ export const sizeType = {
4
+ s: 32,
5
+ m: 48,
6
+ l: 60
7
+ };
8
+ export const strokeWidthType = {
9
+ s: 4,
10
+ m: 6,
11
+ l: 12
12
+ };
13
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["sizeType","s","m","l","strokeWidthType"],"sourceRoot":"../../../../src","sources":["components/progressBar/types.ts"],"mappings":";;AAKA,OAAO,MAAMA,QAAqC,GAAG;EACnDC,CAAC,EAAE,EAAE;EACLC,CAAC,EAAE,EAAE;EACLC,CAAC,EAAE;AACL,CAAC;AAED,OAAO,MAAMC,eAA4C,GAAG;EAC1DH,CAAC,EAAE,CAAC;EACJC,CAAC,EAAE,CAAC;EACJC,CAAC,EAAE;AACL,CAAC","ignoreList":[]}
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+
3
+ import { Pressable, StyleSheet, View } from 'react-native';
4
+ import { CommonIcon } from "../icon/index.js";
5
+ import { useTheme } from "../../hooks/useTheme.js";
6
+ import { sizeType } from "./types.js";
7
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
+ export const CommonRating = ({
9
+ type = 'primary',
10
+ value,
11
+ onChange,
12
+ editable = false,
13
+ size = 'm',
14
+ maxRating = 5
15
+ }) => {
16
+ const {
17
+ theme
18
+ } = useTheme();
19
+ const renderStar = index => {
20
+ const starNumber = index + 1;
21
+ let iconType = 'star_empty';
22
+ if (value >= starNumber) {
23
+ iconType = 'star_full';
24
+ } else if (value >= starNumber - 0.5) {
25
+ iconType = 'star_half';
26
+ }
27
+ if (!editable) {
28
+ return /*#__PURE__*/_jsx(View, {
29
+ children: /*#__PURE__*/_jsx(CommonIcon, {
30
+ iconType: iconType,
31
+ size: size,
32
+ color: theme.colors[type]
33
+ })
34
+ }, index);
35
+ }
36
+ return /*#__PURE__*/_jsxs(View, {
37
+ style: [{
38
+ width: sizeType[size],
39
+ height: sizeType[size]
40
+ }, styles.starContainer],
41
+ children: [/*#__PURE__*/_jsx(CommonIcon, {
42
+ iconType: iconType,
43
+ size: size,
44
+ color: theme.colors[type]
45
+ }), /*#__PURE__*/_jsx(Pressable, {
46
+ style: [StyleSheet.absoluteFillObject, {
47
+ width: sizeType[size] / 2
48
+ }, styles.left],
49
+ onPress: () => {
50
+ onChange?.(index + 0.5);
51
+ }
52
+ }), /*#__PURE__*/_jsx(Pressable, {
53
+ style: [StyleSheet.absoluteFillObject, {
54
+ width: sizeType[size] / 2,
55
+ left: sizeType[size] / 2
56
+ }],
57
+ onPress: () => {
58
+ onChange?.(index + 1);
59
+ }
60
+ })]
61
+ }, index);
62
+ };
63
+ return /*#__PURE__*/_jsx(View, {
64
+ style: styles.container,
65
+ children: Array.from({
66
+ length: maxRating
67
+ }).map((_, index) => renderStar(index))
68
+ });
69
+ };
70
+ const styles = StyleSheet.create({
71
+ container: {
72
+ flexDirection: 'row',
73
+ alignItems: 'center'
74
+ },
75
+ starContainer: {
76
+ position: 'relative',
77
+ justifyContent: 'center',
78
+ alignItems: 'center'
79
+ },
80
+ left: {
81
+ left: 0
82
+ }
83
+ });
84
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Pressable","StyleSheet","View","CommonIcon","useTheme","sizeType","jsx","_jsx","jsxs","_jsxs","CommonRating","type","value","onChange","editable","size","maxRating","theme","renderStar","index","starNumber","iconType","children","color","colors","style","width","height","styles","starContainer","absoluteFillObject","left","onPress","container","Array","from","length","map","_","create","flexDirection","alignItems","position","justifyContent"],"sourceRoot":"../../../../src","sources":["components/rating/index.tsx"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ export const sizeType = {
4
+ s: 20,
5
+ m: 24,
6
+ l: 28
7
+ };
8
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["sizeType","s","m","l"],"sourceRoot":"../../../../src","sources":["components/rating/types.ts"],"mappings":";;AAGA,OAAO,MAAMA,QAAqC,GAAG;EACnDC,CAAC,EAAE,EAAE;EACLC,CAAC,EAAE,EAAE;EACLC,CAAC,EAAE;AACL,CAAC","ignoreList":[]}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ import { useTheme } from "../../hooks/useTheme.js";
4
+ import { StyleSheet } from 'react-native';
5
+ import { SafeAreaView } from 'react-native-safe-area-context';
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ const SafeAreaContainer = ({
8
+ children
9
+ }) => {
10
+ const {
11
+ theme
12
+ } = useTheme();
13
+ return /*#__PURE__*/_jsx(SafeAreaView, {
14
+ style: [styles.container, {
15
+ backgroundColor: theme.colors.background
16
+ }],
17
+ children: children
18
+ });
19
+ };
20
+ const styles = StyleSheet.create({
21
+ container: {
22
+ flex: 1
23
+ }
24
+ });
25
+ export default SafeAreaContainer;
26
+ //# sourceMappingURL=SafeAreaContainer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useTheme","StyleSheet","SafeAreaView","jsx","_jsx","SafeAreaContainer","children","theme","style","styles","container","backgroundColor","colors","background","create","flex"],"sourceRoot":"../../../../src","sources":["components/screenContainer/SafeAreaContainer.tsx"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,yBAAsB;AAC/C,SAASC,UAAU,QAAwB,cAAc;AACzD,SAASC,YAAY,QAAQ,gCAAgC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE9D,MAAMC,iBAAiB,GAAGA,CAAC;EAAEC;AAAoB,CAAC,KAAK;EACrD,MAAM;IAAEC;EAAM,CAAC,GAAGP,QAAQ,CAAC,CAAC;EAC5B,oBACEI,IAAA,CAACF,YAAY;IACXM,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAE;MAAEC,eAAe,EAAEJ,KAAK,CAACK,MAAM,CAACC;IAAW,CAAC,CAAE;IAAAP,QAAA,EAEvEA;EAAQ,CACG,CAAC;AAEnB,CAAC;AAED,MAAMG,MAAM,GAAGR,UAAU,CAACa,MAAM,CAAC;EAC/BJ,SAAS,EAAE;IACTK,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAEF,eAAeV,iBAAiB","ignoreList":[]}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ import { ScrollView, StyleSheet } from 'react-native';
4
+ import SafeAreaContainer from "./SafeAreaContainer.js";
5
+
6
+ //TODO : SafeAreaContainer가 적용되지 않음.
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ const ScrollViewContainer = ({
9
+ children
10
+ }) => {
11
+ return /*#__PURE__*/_jsx(SafeAreaContainer, {
12
+ children: /*#__PURE__*/_jsx(ScrollView, {
13
+ style: [styles.container],
14
+ children: children
15
+ })
16
+ });
17
+ };
18
+ const styles = StyleSheet.create({
19
+ container: {
20
+ flex: 1
21
+ }
22
+ });
23
+ export default ScrollViewContainer;
24
+ //# sourceMappingURL=ScrollViewContainer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ScrollView","StyleSheet","SafeAreaContainer","jsx","_jsx","ScrollViewContainer","children","style","styles","container","create","flex"],"sourceRoot":"../../../../src","sources":["components/screenContainer/ScrollViewContainer.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,UAAU,QAAwB,cAAc;AACrE,OAAOC,iBAAiB,MAAM,wBAAqB;;AAEnD;AAAA,SAAAC,GAAA,IAAAC,IAAA;AACA,MAAMC,mBAAmB,GAAGA,CAAC;EAAEC;AAAoB,CAAC,KAAK;EACvD,oBACEF,IAAA,CAACF,iBAAiB;IAAAI,QAAA,eAChBF,IAAA,CAACJ,UAAU;MAACO,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,CAAE;MAAAH,QAAA,EAAEA;IAAQ,CAAa;EAAC,CAC7C,CAAC;AAExB,CAAC;AAED,MAAME,MAAM,GAAGP,UAAU,CAACS,MAAM,CAAC;EAC/BD,SAAS,EAAE;IACTE,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAEF,eAAeN,mBAAmB","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ import SafeAreaContainer from "./SafeAreaContainer.js";
4
+ import ScrollViewContainer from "./ScrollViewContainer.js";
5
+ export { SafeAreaContainer, ScrollViewContainer };
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SafeAreaContainer","ScrollViewContainer"],"sourceRoot":"../../../../src","sources":["components/screenContainer/index.ts"],"mappings":";;AAAA,OAAOA,iBAAiB,MAAM,wBAAqB;AACnD,OAAOC,mBAAmB,MAAM,0BAAuB;AAEvD,SAASD,iBAAiB,EAAEC,mBAAmB","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ // TODO: skeleton 구현 필요
2
+ "use strict";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/skeleton/index.tsx"],"mappings":"AAAA;AAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/skeleton/types.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ // TODO: slider 구현 필요
2
+ "use strict";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/slider/index.tsx"],"mappings":"AAAA;AAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/slider/types.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ // TODO: switch 구현 필요
2
+ "use strict";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/switch/index.tsx"],"mappings":"AAAA;AAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/switch/types.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet, Text } from 'react-native';
4
+ import { fontSizeType } from "./types.js";
5
+ import { useTheme } from "../../hooks/useTheme.js";
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ const CommonText = ({
8
+ size = 'm',
9
+ children,
10
+ style
11
+ }) => {
12
+ const {
13
+ theme
14
+ } = useTheme();
15
+ return /*#__PURE__*/_jsx(Text, {
16
+ style: [{
17
+ color: theme.colors.text
18
+ }, styles.innerText, fontSizeType[size], style],
19
+ children: children
20
+ });
21
+ };
22
+ const styles = StyleSheet.create({
23
+ innerText: {
24
+ fontFamily: 'Roboto'
25
+ }
26
+ });
27
+ export default CommonText;
28
+ //# sourceMappingURL=commonText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","Text","fontSizeType","useTheme","jsx","_jsx","CommonText","size","children","style","theme","color","colors","text","styles","innerText","create","fontFamily"],"sourceRoot":"../../../../src","sources":["components/text/commonText.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAA+BC,YAAY,QAAQ,YAAS;AAC5D,SAASC,QAAQ,QAAQ,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEhD,MAAMC,UAAU,GAAGA,CAAC;EAAEC,IAAI,GAAG,GAAG;EAAEC,QAAQ;EAAEC;AAAuB,CAAC,KAAK;EACvE,MAAM;IAAEC;EAAM,CAAC,GAAGP,QAAQ,CAAC,CAAC;EAC5B,oBACEE,IAAA,CAACJ,IAAI;IACHQ,KAAK,EAAE,CACL;MAAEE,KAAK,EAAED,KAAK,CAACE,MAAM,CAACC;IAAK,CAAC,EAC5BC,MAAM,CAACC,SAAS,EAChBb,YAAY,CAACK,IAAI,CAAC,EAClBE,KAAK,CACL;IAAAD,QAAA,EAEDA;EAAQ,CACL,CAAC;AAEX,CAAC;AAED,MAAMM,MAAM,GAAGd,UAAU,CAACgB,MAAM,CAAC;EAC/BD,SAAS,EAAE;IACTE,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,eAAeX,UAAU","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ import CommonText from "./commonText.js";
4
+ export { CommonText };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["CommonText"],"sourceRoot":"../../../../src","sources":["components/text/index.ts"],"mappings":";;AAAA,OAAOA,UAAU,MAAM,iBAAc;AAErC,SAASA,UAAU","ignoreList":[]}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ export const fontSizeType = {
4
+ s: {
5
+ fontSize: 12,
6
+ fontWeight: '600'
7
+ },
8
+ m: {
9
+ fontSize: 24,
10
+ fontWeight: '700'
11
+ },
12
+ l: {
13
+ fontSize: 36,
14
+ fontWeight: '900'
15
+ }
16
+ };
17
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["fontSizeType","s","fontSize","fontWeight","m","l"],"sourceRoot":"../../../../src","sources":["components/text/types.ts"],"mappings":";;AAKA,OAAO,MAAMA,YAA4C,GAAG;EAC1DC,CAAC,EAAE;IAAEC,QAAQ,EAAE,EAAE;IAAEC,UAAU,EAAE;EAAM,CAAC;EACtCC,CAAC,EAAE;IAAEF,QAAQ,EAAE,EAAE;IAAEC,UAAU,EAAE;EAAM,CAAC;EACtCE,CAAC,EAAE;IAAEH,QAAQ,EAAE,EAAE;IAAEC,UAAU,EAAE;EAAM;AACvC,CAAC","ignoreList":[]}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ import { useContext } from 'react';
4
+ import { ThemeContext } from "../theme/themeProvider.js";
5
+ export function useTheme() {
6
+ const context = useContext(ThemeContext);
7
+ if (!context) {
8
+ throw new Error('useTheme must be used within ThemeProvider');
9
+ }
10
+ return context;
11
+ }
12
+ //# sourceMappingURL=useTheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useContext","ThemeContext","useTheme","context","Error"],"sourceRoot":"../../../src","sources":["hooks/useTheme.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,YAAY,QAAQ,2BAAwB;AAErD,OAAO,SAASC,QAAQA,CAAA,EAAG;EACzB,MAAMC,OAAO,GAAGH,UAAU,CAACC,YAAY,CAAC;EAExC,IAAI,CAACE,OAAO,EAAE;IACZ,MAAM,IAAIC,KAAK,CAAC,4CAA4C,CAAC;EAC/D;EAEA,OAAOD,OAAO;AAChB","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ export { CommonText, CommonButton, CommonBadge, SafeAreaContainer, ScrollViewContainer, CommonIcon, CommonRating, CommonAvatar, CommonImage, CheckBox, CommonHeader, CommonCard, FoldableCard, LinearProgressBar, CircularProgressBar } from "./components/index.js";
4
+ export { ThemeProvider } from "./theme/themeProvider.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["CommonText","CommonButton","CommonBadge","SafeAreaContainer","ScrollViewContainer","CommonIcon","CommonRating","CommonAvatar","CommonImage","CheckBox","CommonHeader","CommonCard","FoldableCard","LinearProgressBar","CircularProgressBar","ThemeProvider"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SACEA,UAAU,EACVC,YAAY,EACZC,WAAW,EACXC,iBAAiB,EACjBC,mBAAmB,EACnBC,UAAU,EACVC,YAAY,EACZC,YAAY,EACZC,WAAW,EACXC,QAAQ,EACRC,YAAY,EACZC,UAAU,EACVC,YAAY,EACZC,iBAAiB,EACjBC,mBAAmB,QACd,uBAAc;AACrB,SAASC,aAAa,QAAQ,0BAAuB","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ export const palette = {
4
+ blue500: '#3478F6',
5
+ gray100: '#F5F5F5',
6
+ gray900: '#111111',
7
+ red500: '#FF3B30',
8
+ yellow500: '#FFCC00'
9
+ };
10
+ //# sourceMappingURL=color.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["palette","blue500","gray100","gray900","red500","yellow500"],"sourceRoot":"../../../src","sources":["theme/color.ts"],"mappings":";;AAAA,OAAO,MAAMA,OAAO,GAAG;EACrBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,MAAM,EAAE,SAAS;EACjBC,SAAS,EAAE;AACb,CAAC","ignoreList":[]}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ export const spacing = {
4
+ none: 0,
5
+ xs: 4,
6
+ sm: 8,
7
+ md: 12,
8
+ lg: 16,
9
+ xl: 24
10
+ };
11
+ export const radius = {
12
+ sm: 4,
13
+ md: 8,
14
+ lg: 12,
15
+ full: 999
16
+ };
17
+ //# sourceMappingURL=style.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["spacing","none","xs","sm","md","lg","xl","radius","full"],"sourceRoot":"../../../src","sources":["theme/style.ts"],"mappings":";;AAAA,OAAO,MAAMA,OAAO,GAAG;EACrBC,IAAI,EAAE,CAAC;EACPC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE;AACN,CAAC;AAED,OAAO,MAAMC,MAAM,GAAG;EACpBJ,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,EAAE;EACNG,IAAI,EAAE;AACR,CAAC","ignoreList":[]}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ import { createContext, useMemo } from 'react';
4
+ import { lightTheme, darkTheme } from "./themes.js";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ export const ThemeContext = /*#__PURE__*/createContext(null);
7
+ export function ThemeProvider({
8
+ children,
9
+ mode = 'light'
10
+ }) {
11
+ const theme = useMemo(() => {
12
+ return mode === 'dark' ? darkTheme : lightTheme;
13
+ }, [mode]);
14
+ return /*#__PURE__*/_jsx(ThemeContext.Provider, {
15
+ value: {
16
+ theme,
17
+ mode
18
+ },
19
+ children: children
20
+ });
21
+ }
22
+ //# sourceMappingURL=themeProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createContext","useMemo","lightTheme","darkTheme","jsx","_jsx","ThemeContext","ThemeProvider","children","mode","theme","Provider","value"],"sourceRoot":"../../../src","sources":["theme/themeProvider.tsx"],"mappings":";;AAAA,SAASA,aAAa,EAA0BC,OAAO,QAAQ,OAAO;AACtE,SAASC,UAAU,EAAEC,SAAS,QAAuC,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOhF,OAAO,MAAMC,YAAY,gBAAGN,aAAa,CAA2B,IAAI,CAAC;AAMzE,OAAO,SAASO,aAAaA,CAAC;EAAEC,QAAQ;EAAEC,IAAI,GAAG;AAAe,CAAC,EAAE;EACjE,MAAMC,KAAK,GAAGT,OAAO,CAAC,MAAM;IAC1B,OAAOQ,IAAI,KAAK,MAAM,GAAGN,SAAS,GAAGD,UAAU;EACjD,CAAC,EAAE,CAACO,IAAI,CAAC,CAAC;EAEV,oBACEJ,IAAA,CAACC,YAAY,CAACK,QAAQ;IAACC,KAAK,EAAE;MAAEF,KAAK;MAAED;IAAK,CAAE;IAAAD,QAAA,EAC3CA;EAAQ,CACY,CAAC;AAE5B","ignoreList":[]}