@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
package/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 kukkim
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # @kukkim/react-native-ui
2
+
3
+ ui library for react native
4
+
5
+ ## Installation
6
+
7
+ ```sh
8
+ npm install @kukkim/react-native-ui
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```js
14
+ import { } from '@kukkim/react-native-ui';
15
+
16
+ // ...
17
+
18
+ const ...
19
+ ```
20
+
21
+ ## Contributing
22
+
23
+ - [Development workflow](CONTRIBUTING.md#development-workflow)
24
+ - [Sending a pull request](CONTRIBUTING.md#sending-a-pull-request)
25
+ - [Code of conduct](CODE_OF_CONDUCT.md)
26
+
27
+ ## License
28
+
29
+ MIT
30
+
31
+ ---
32
+
33
+ Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-down-to-line-icon lucide-arrow-down-to-line"><path d="M12 17V3"/><path d="m6 11 6 6 6-6"/><path d="M19 21H5"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-down-wide-narrow-icon lucide-arrow-down-wide-narrow"><path d="m3 16 4 4 4-4"/><path d="M7 20V4"/><path d="M11 4h10"/><path d="M11 8h7"/><path d="M11 12h4"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-left-icon lucide-arrow-left"><path d="m12 19-7-7 7-7"/><path d="M19 12H5"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check-icon lucide-check"><path d="M20 6 9 17l-5-5"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-copy-icon lucide-copy"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-rotate-cw-icon lucide-rotate-cw"><path d="M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-square-arrow-out-up-right-icon lucide-square-arrow-out-up-right"><path d="M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6"/><path d="m21 3-9 9"/><path d="M15 3h6v6"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-star-icon lucide-star"><path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-star-icon lucide-star"><path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"/></svg>
@@ -0,0 +1,25 @@
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="24"
4
+ height="24"
5
+ viewBox="0 0 24 24"
6
+ >
7
+ <defs>
8
+ <clipPath id="half">
9
+ <rect x="0" y="0" width="12" height="24" />
10
+ </clipPath>
11
+ </defs>
12
+ <path
13
+ clip-path="url(#half)"
14
+ fill="currentColor"
15
+ d="M12 2.5l2.93 5.94 6.56.96-4.75 4.63 1.12 6.53L12 17.5l-5.86 3.06 1.12-6.53L2.51 9.4l6.56-.96L12 2.5z"
16
+ />
17
+ <path
18
+ fill="none"
19
+ stroke="currentColor"
20
+ stroke-width="2"
21
+ stroke-linecap="round"
22
+ stroke-linejoin="round"
23
+ d="M12 2.5l2.93 5.94 6.56.96-4.75 4.63 1.12 6.53L12 17.5l-5.86 3.06 1.12-6.53L2.51 9.4l6.56-.96L12 2.5z"
24
+ />
25
+ </svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-x-icon lucide-x"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet, View } from 'react-native';
4
+ import { CommonText } from "../text/index.js";
5
+ import { CommonImage } from "../image/index.js";
6
+ import { fontSizeType, sizeType, imageSizeType } from "./types.js";
7
+ import { useTheme } from "../../hooks/useTheme.js";
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
+ export const CommonAvatar = ({
10
+ type = 'primary',
11
+ size = 'm',
12
+ title,
13
+ source,
14
+ ...props
15
+ }) => {
16
+ const {
17
+ theme
18
+ } = useTheme();
19
+ return /*#__PURE__*/_jsx(View, {
20
+ style: [styles.container, sizeType[size], {
21
+ backgroundColor: theme.colors[type]
22
+ }],
23
+ ...props,
24
+ children: source ? /*#__PURE__*/_jsx(CommonImage, {
25
+ style: [styles.container, imageSizeType[size]],
26
+ source: source
27
+ }) : /*#__PURE__*/_jsx(CommonText, {
28
+ style: [styles.innerText, fontSizeType[size], {
29
+ color: theme.colors.white
30
+ }],
31
+ children: title ?? 'None'
32
+ })
33
+ });
34
+ };
35
+ const styles = StyleSheet.create({
36
+ container: {
37
+ borderRadius: 12,
38
+ alignItems: 'center',
39
+ justifyContent: 'center'
40
+ },
41
+ innerText: {
42
+ fontSize: 20
43
+ }
44
+ });
45
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","View","CommonText","CommonImage","fontSizeType","sizeType","imageSizeType","useTheme","jsx","_jsx","CommonAvatar","type","size","title","source","props","theme","style","styles","container","backgroundColor","colors","children","innerText","color","white","create","borderRadius","alignItems","justifyContent","fontSize"],"sourceRoot":"../../../../src","sources":["components/avatar/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,UAAU,QAAQ,kBAAS;AACpC,SAASC,WAAW,QAAQ,mBAAU;AACtC,SAEEC,YAAY,EACZC,QAAQ,EACRC,aAAa,QACR,YAAS;AAChB,SAASC,QAAQ,QAAQ,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEhD,OAAO,MAAMC,YAAY,GAAGA,CAAC;EAC3BC,IAAI,GAAG,SAAS;EAChBC,IAAI,GAAG,GAAG;EACVC,KAAK;EACLC,MAAM;EACN,GAAGC;AACc,CAAC,KAAK;EACvB,MAAM;IAAEC;EAAM,CAAC,GAAGT,QAAQ,CAAC,CAAC;EAC5B,oBACEE,IAAA,CAACR,IAAI;IACHgB,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChBd,QAAQ,CAACO,IAAI,CAAC,EACd;MAAEQ,eAAe,EAAEJ,KAAK,CAACK,MAAM,CAACV,IAAI;IAAE,CAAC,CACvC;IAAA,GACEI,KAAK;IAAAO,QAAA,EAERR,MAAM,gBACLL,IAAA,CAACN,WAAW;MACVc,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAEb,aAAa,CAACM,IAAI,CAAC,CAAE;MAC/CE,MAAM,EAAEA;IAAO,CAChB,CAAC,gBAEFL,IAAA,CAACP,UAAU;MACTe,KAAK,EAAE,CACLC,MAAM,CAACK,SAAS,EAChBnB,YAAY,CAACQ,IAAI,CAAC,EAClB;QAAEY,KAAK,EAAER,KAAK,CAACK,MAAM,CAACI;MAAM,CAAC,CAC7B;MAAAH,QAAA,EAEDT,KAAK,IAAI;IAAM,CACN;EACb,CACG,CAAC;AAEX,CAAC;AAED,MAAMK,MAAM,GAAGlB,UAAU,CAAC0B,MAAM,CAAC;EAC/BP,SAAS,EAAE;IACTQ,YAAY,EAAE,EAAE;IAChBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDN,SAAS,EAAE;IACTO,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ export const sizeType = {
4
+ s: {
5
+ width: 16,
6
+ height: 16,
7
+ borderRadius: 8
8
+ },
9
+ m: {
10
+ width: 20,
11
+ height: 20,
12
+ borderRadius: 10
13
+ },
14
+ l: {
15
+ width: 24,
16
+ height: 24,
17
+ borderRadius: 12
18
+ }
19
+ };
20
+ // TODO: sizeType과 동일한 코드인데 type때문에 코드 중복이 발생함 수정필요.
21
+ export const imageSizeType = {
22
+ s: {
23
+ width: 16,
24
+ height: 16,
25
+ borderRadius: 8
26
+ },
27
+ m: {
28
+ width: 20,
29
+ height: 20,
30
+ borderRadius: 10
31
+ },
32
+ l: {
33
+ width: 24,
34
+ height: 24,
35
+ borderRadius: 12
36
+ }
37
+ };
38
+ export const fontSizeType = {
39
+ s: {
40
+ fontSize: 10
41
+ },
42
+ m: {
43
+ fontSize: 12
44
+ },
45
+ l: {
46
+ fontSize: 14
47
+ }
48
+ };
49
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["sizeType","s","width","height","borderRadius","m","l","imageSizeType","fontSizeType","fontSize"],"sourceRoot":"../../../../src","sources":["components/avatar/types.ts"],"mappings":";;AAWA,OAAO,MAAMA,QAAwC,GAAG;EACtDC,CAAC,EAAE;IAAEC,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEC,YAAY,EAAE;EAAE,CAAC;EAC7CC,CAAC,EAAE;IAAEH,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEC,YAAY,EAAE;EAAG,CAAC;EAC9CE,CAAC,EAAE;IAAEJ,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEC,YAAY,EAAE;EAAG;AAC/C,CAAC;AACD;AACA,OAAO,MAAMG,aAA8C,GAAG;EAC5DN,CAAC,EAAE;IAAEC,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEC,YAAY,EAAE;EAAE,CAAC;EAC7CC,CAAC,EAAE;IAAEH,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEC,YAAY,EAAE;EAAG,CAAC;EAC9CE,CAAC,EAAE;IAAEJ,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEC,YAAY,EAAE;EAAG;AAC/C,CAAC;AAED,OAAO,MAAMI,YAA4C,GAAG;EAC1DP,CAAC,EAAE;IAAEQ,QAAQ,EAAE;EAAG,CAAC;EACnBJ,CAAC,EAAE;IAAEI,QAAQ,EAAE;EAAG,CAAC;EACnBH,CAAC,EAAE;IAAEG,QAAQ,EAAE;EAAG;AACpB,CAAC","ignoreList":[]}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet, View } from 'react-native';
4
+ import { CommonText } from "../text/index.js";
5
+ import { fontSizeType, sizeType } from "./types.js";
6
+ import { useTheme } from "../../hooks/useTheme.js";
7
+
8
+ // TODO: 부모컴포넌트의 정렬기준에 따라 컴포넌트의 형태가 변함.
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ const CommonBadge = ({
11
+ type = 'primary',
12
+ size = 'm',
13
+ typeText,
14
+ ...props
15
+ }) => {
16
+ const {
17
+ theme
18
+ } = useTheme();
19
+ return /*#__PURE__*/_jsx(View, {
20
+ style: [styles.container, sizeType[size], {
21
+ backgroundColor: theme.colors[type]
22
+ }],
23
+ ...props,
24
+ children: typeText && /*#__PURE__*/_jsx(CommonText, {
25
+ style: [styles.innerText, fontSizeType[size], {
26
+ color: theme.colors.white
27
+ }],
28
+ children: typeText
29
+ })
30
+ });
31
+ };
32
+ const styles = StyleSheet.create({
33
+ container: {
34
+ borderRadius: 12,
35
+ alignSelf: 'auto',
36
+ alignItems: 'center',
37
+ justifyContent: 'center'
38
+ },
39
+ innerText: {
40
+ fontSize: 20
41
+ }
42
+ });
43
+ export default CommonBadge;
44
+ //# sourceMappingURL=commonBadge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","View","CommonText","fontSizeType","sizeType","useTheme","jsx","_jsx","CommonBadge","type","size","typeText","props","theme","style","styles","container","backgroundColor","colors","children","innerText","color","white","create","borderRadius","alignSelf","alignItems","justifyContent","fontSize"],"sourceRoot":"../../../../src","sources":["components/badge/commonBadge.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,UAAU,QAAQ,kBAAS;AACpC,SAAgCC,YAAY,EAAEC,QAAQ,QAAQ,YAAS;AACvE,SAASC,QAAQ,QAAQ,yBAAsB;;AAE/C;AAAA,SAAAC,GAAA,IAAAC,IAAA;AACA,MAAMC,WAAW,GAAGA,CAAC;EACnBC,IAAI,GAAG,SAAS;EAChBC,IAAI,GAAG,GAAG;EACVC,QAAQ;EACR,GAAGC;AACa,CAAC,KAAK;EACtB,MAAM;IAAEC;EAAM,CAAC,GAAGR,QAAQ,CAAC,CAAC;EAC5B,oBACEE,IAAA,CAACN,IAAI;IACHa,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChBZ,QAAQ,CAACM,IAAI,CAAC,EACd;MAAEO,eAAe,EAAEJ,KAAK,CAACK,MAAM,CAACT,IAAI;IAAE,CAAC,CACvC;IAAA,GACEG,KAAK;IAAAO,QAAA,EAERR,QAAQ,iBACPJ,IAAA,CAACL,UAAU;MACTY,KAAK,EAAE,CACLC,MAAM,CAACK,SAAS,EAChBjB,YAAY,CAACO,IAAI,CAAC,EAClB;QAAEW,KAAK,EAAER,KAAK,CAACK,MAAM,CAACI;MAAM,CAAC,CAC7B;MAAAH,QAAA,EAEDR;IAAQ,CACC;EACb,CACG,CAAC;AAEX,CAAC;AAED,MAAMI,MAAM,GAAGf,UAAU,CAACuB,MAAM,CAAC;EAC/BP,SAAS,EAAE;IACTQ,YAAY,EAAE,EAAE;IAChBC,SAAS,EAAE,MAAM;IACjBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDP,SAAS,EAAE;IACTQ,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC;AAEF,eAAepB,WAAW","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ import CommonBadge from "./commonBadge.js";
4
+ export { CommonBadge };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["CommonBadge"],"sourceRoot":"../../../../src","sources":["components/badge/index.ts"],"mappings":";;AAAA,OAAOA,WAAW,MAAM,kBAAe;AAEvC,SAASA,WAAW","ignoreList":[]}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ export const sizeType = {
4
+ s: {
5
+ minWidth: 18,
6
+ height: 18,
7
+ borderRadius: 8,
8
+ paddingHorizontal: 4
9
+ },
10
+ m: {
11
+ minWidth: 20,
12
+ height: 20,
13
+ borderRadius: 10,
14
+ paddingHorizontal: 4
15
+ },
16
+ l: {
17
+ minWidth: 22,
18
+ height: 22,
19
+ borderRadius: 12,
20
+ paddingHorizontal: 4
21
+ }
22
+ };
23
+ export const expandedSizeType = {
24
+ s: {
25
+ minWidth: 32,
26
+ height: 16
27
+ },
28
+ m: {
29
+ minWidth: 36,
30
+ height: 20
31
+ },
32
+ l: {
33
+ minWidth: 40,
34
+ height: 24
35
+ }
36
+ };
37
+ export const fontSizeType = {
38
+ s: {
39
+ fontSize: 10
40
+ },
41
+ m: {
42
+ fontSize: 12
43
+ },
44
+ l: {
45
+ fontSize: 14
46
+ }
47
+ };
48
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["sizeType","s","minWidth","height","borderRadius","paddingHorizontal","m","l","expandedSizeType","fontSizeType","fontSize"],"sourceRoot":"../../../../src","sources":["components/badge/types.ts"],"mappings":";;AAKA,OAAO,MAAMA,QAAwC,GAAG;EACtDC,CAAC,EAAE;IAAEC,QAAQ,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEC,YAAY,EAAE,CAAC;IAAEC,iBAAiB,EAAE;EAAE,CAAC;EACtEC,CAAC,EAAE;IAAEJ,QAAQ,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEC,YAAY,EAAE,EAAE;IAAEC,iBAAiB,EAAE;EAAE,CAAC;EACvEE,CAAC,EAAE;IAAEL,QAAQ,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEC,YAAY,EAAE,EAAE;IAAEC,iBAAiB,EAAE;EAAE;AACxE,CAAC;AAED,OAAO,MAAMG,gBAAgD,GAAG;EAC9DP,CAAC,EAAE;IAAEC,QAAQ,EAAE,EAAE;IAAEC,MAAM,EAAE;EAAG,CAAC;EAC/BG,CAAC,EAAE;IAAEJ,QAAQ,EAAE,EAAE;IAAEC,MAAM,EAAE;EAAG,CAAC;EAC/BI,CAAC,EAAE;IAAEL,QAAQ,EAAE,EAAE;IAAEC,MAAM,EAAE;EAAG;AAChC,CAAC;AAED,OAAO,MAAMM,YAA4C,GAAG;EAC1DR,CAAC,EAAE;IAAES,QAAQ,EAAE;EAAG,CAAC;EACnBJ,CAAC,EAAE;IAAEI,QAAQ,EAAE;EAAG,CAAC;EACnBH,CAAC,EAAE;IAAEG,QAAQ,EAAE;EAAG;AACpB,CAAC","ignoreList":[]}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ import { Pressable, StyleSheet } from 'react-native';
4
+ import { CommonText } from "../text/index.js";
5
+ import { fontSizeType } from "./types.js";
6
+ import { useTheme } from "../../hooks/useTheme.js";
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ const CommonButton = ({
9
+ title,
10
+ type = 'primary',
11
+ size = 'm',
12
+ disabled,
13
+ ...props
14
+ }) => {
15
+ const {
16
+ theme
17
+ } = useTheme();
18
+ return /*#__PURE__*/_jsx(Pressable, {
19
+ style: [styles.container, disabled ? {
20
+ backgroundColor: theme.colors[type]
21
+ } : {
22
+ backgroundColor: theme.colors[type]
23
+ }],
24
+ ...props,
25
+ children: /*#__PURE__*/_jsx(CommonText, {
26
+ style: [fontSizeType[size], {
27
+ color: theme.colors.white
28
+ }],
29
+ isInner: true,
30
+ children: title
31
+ })
32
+ });
33
+ };
34
+ const styles = StyleSheet.create({
35
+ container: {
36
+ margin: 5,
37
+ paddingVertical: 10,
38
+ paddingHorizontal: 20,
39
+ borderRadius: 3
40
+ }
41
+ });
42
+ export default CommonButton;
43
+ //# sourceMappingURL=commonButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Pressable","StyleSheet","CommonText","fontSizeType","useTheme","jsx","_jsx","CommonButton","title","type","size","disabled","props","theme","style","styles","container","backgroundColor","colors","children","color","white","isInner","create","margin","paddingVertical","paddingHorizontal","borderRadius"],"sourceRoot":"../../../../src","sources":["components/button/commonButton.tsx"],"mappings":";;AAAA,SAASA,SAAS,EAAEC,UAAU,QAAQ,cAAc;AACpD,SAASC,UAAU,QAAQ,kBAAS;AACpC,SAAiCC,YAAY,QAAQ,YAAS;AAC9D,SAASC,QAAQ,QAAQ,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEhD,MAAMC,YAAY,GAAGA,CAAC;EACpBC,KAAK;EACLC,IAAI,GAAG,SAAS;EAChBC,IAAI,GAAG,GAAG;EACVC,QAAQ;EACR,GAAGC;AACc,CAAC,KAAK;EACvB,MAAM;IAAEC;EAAM,CAAC,GAAGT,QAAQ,CAAC,CAAC;EAC5B,oBACEE,IAAA,CAACN,SAAS;IACRc,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChBL,QAAQ,GACJ;MAAEM,eAAe,EAAEJ,KAAK,CAACK,MAAM,CAACT,IAAI;IAAE,CAAC,GACvC;MAAEQ,eAAe,EAAEJ,KAAK,CAACK,MAAM,CAACT,IAAI;IAAE,CAAC,CAC3C;IAAA,GACEG,KAAK;IAAAO,QAAA,eAETb,IAAA,CAACJ,UAAU;MACTY,KAAK,EAAE,CAACX,YAAY,CAACO,IAAI,CAAC,EAAE;QAAEU,KAAK,EAAEP,KAAK,CAACK,MAAM,CAACG;MAAM,CAAC,CAAE;MAC3DC,OAAO,EAAE,IAAK;MAAAH,QAAA,EAEbX;IAAK,CACI;EAAC,CACJ,CAAC;AAEhB,CAAC;AAED,MAAMO,MAAM,GAAGd,UAAU,CAACsB,MAAM,CAAC;EAC/BP,SAAS,EAAE;IACTQ,MAAM,EAAE,CAAC;IACTC,eAAe,EAAE,EAAE;IACnBC,iBAAiB,EAAE,EAAE;IACrBC,YAAY,EAAE;EAChB;AACF,CAAC,CAAC;AAEF,eAAepB,YAAY","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ import CommonButton from "./commonButton.js";
4
+ export { CommonButton };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["CommonButton"],"sourceRoot":"../../../../src","sources":["components/button/index.ts"],"mappings":";;AAAA,OAAOA,YAAY,MAAM,mBAAgB;AAEzC,SAASA,YAAY","ignoreList":[]}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ export const sizeType = {
4
+ s: {
5
+ width: 16,
6
+ height: 16
7
+ },
8
+ m: {
9
+ width: 20,
10
+ height: 20
11
+ },
12
+ l: {
13
+ width: 24,
14
+ height: 24
15
+ }
16
+ };
17
+ export const fontSizeType = {
18
+ s: {
19
+ fontSize: 12
20
+ },
21
+ m: {
22
+ fontSize: 16
23
+ },
24
+ l: {
25
+ fontSize: 20
26
+ }
27
+ };
28
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["sizeType","s","width","height","m","l","fontSizeType","fontSize"],"sourceRoot":"../../../../src","sources":["components/button/types.ts"],"mappings":";;AASA,OAAO,MAAMA,QAAwC,GAAG;EACtDC,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,YAA4C,GAAG;EAC1DL,CAAC,EAAE;IAAEM,QAAQ,EAAE;EAAG,CAAC;EACnBH,CAAC,EAAE;IAAEG,QAAQ,EAAE;EAAG,CAAC;EACnBF,CAAC,EAAE;IAAEE,QAAQ,EAAE;EAAG;AACpB,CAAC","ignoreList":[]}
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet, View } from 'react-native';
4
+ import { CommonText } from "../text/index.js";
5
+ import { useTheme } from "../../hooks/useTheme.js";
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
+ const CommonCard = ({
8
+ children,
9
+ type = 'primary',
10
+ title
11
+ }) => {
12
+ const {
13
+ theme
14
+ } = useTheme();
15
+ return /*#__PURE__*/_jsxs(View, {
16
+ style: styles.container,
17
+ children: [title && /*#__PURE__*/_jsx(View, {
18
+ style: [styles.titleContainer, {
19
+ backgroundColor: theme.colors[type]
20
+ }],
21
+ children: /*#__PURE__*/_jsx(CommonText, {
22
+ style: [styles.titleText, {
23
+ color: theme.colors.white
24
+ }],
25
+ children: title
26
+ })
27
+ }), /*#__PURE__*/_jsx(View, {
28
+ style: [styles.contentContainer, {
29
+ borderColor: theme.colors[type]
30
+ }],
31
+ children: children
32
+ })]
33
+ });
34
+ };
35
+ const styles = StyleSheet.create({
36
+ container: {
37
+ width: '100%',
38
+ padding: 10
39
+ },
40
+ titleContainer: {
41
+ alignSelf: 'flex-start',
42
+ borderRadius: 5,
43
+ marginLeft: 5,
44
+ padding: 5,
45
+ zIndex: 1
46
+ },
47
+ titleText: {
48
+ fontSize: 20
49
+ },
50
+ contentContainer: {
51
+ borderWidth: 2,
52
+ borderRadius: 5,
53
+ padding: 10
54
+ }
55
+ });
56
+ export default CommonCard;
57
+ //# sourceMappingURL=commonCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","View","CommonText","useTheme","jsx","_jsx","jsxs","_jsxs","CommonCard","children","type","title","theme","style","styles","container","titleContainer","backgroundColor","colors","titleText","color","white","contentContainer","borderColor","create","width","padding","alignSelf","borderRadius","marginLeft","zIndex","fontSize","borderWidth"],"sourceRoot":"../../../../src","sources":["components/card/commonCard.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,UAAU,QAAQ,kBAAS;AAEpC,SAASC,QAAQ,QAAQ,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEhD,MAAMC,UAAU,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,IAAI,GAAG,SAAS;EAAEC;AAAuB,CAAC,KAAK;EAC7E,MAAM;IAAEC;EAAM,CAAC,GAAGT,QAAQ,CAAC,CAAC;EAC5B,oBACEI,KAAA,CAACN,IAAI;IAACY,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAN,QAAA,GAC3BE,KAAK,iBACJN,IAAA,CAACJ,IAAI;MACHY,KAAK,EAAE,CACLC,MAAM,CAACE,cAAc,EACrB;QACEC,eAAe,EAAEL,KAAK,CAACM,MAAM,CAACR,IAAI;MACpC,CAAC,CACD;MAAAD,QAAA,eAEFJ,IAAA,CAACH,UAAU;QACTW,KAAK,EAAE,CACLC,MAAM,CAACK,SAAS,EAChB;UACEC,KAAK,EAAER,KAAK,CAACM,MAAM,CAACG;QACtB,CAAC,CACD;QAAAZ,QAAA,EAEDE;MAAK,CACI;IAAC,CACT,CACP,eACDN,IAAA,CAACJ,IAAI;MACHY,KAAK,EAAE,CACLC,MAAM,CAACQ,gBAAgB,EACvB;QACEC,WAAW,EAAEX,KAAK,CAACM,MAAM,CAACR,IAAI;MAChC,CAAC,CACD;MAAAD,QAAA,EAEDA;IAAQ,CACL,CAAC;EAAA,CACH,CAAC;AAEX,CAAC;AAED,MAAMK,MAAM,GAAGd,UAAU,CAACwB,MAAM,CAAC;EAC/BT,SAAS,EAAE;IACTU,KAAK,EAAE,MAAM;IACbC,OAAO,EAAE;EACX,CAAC;EACDV,cAAc,EAAE;IACdW,SAAS,EAAE,YAAY;IACvBC,YAAY,EAAE,CAAC;IACfC,UAAU,EAAE,CAAC;IACbH,OAAO,EAAE,CAAC;IACVI,MAAM,EAAE;EACV,CAAC;EACDX,SAAS,EAAE;IACTY,QAAQ,EAAE;EACZ,CAAC;EACDT,gBAAgB,EAAE;IAChBU,WAAW,EAAE,CAAC;IACdJ,YAAY,EAAE,CAAC;IACfF,OAAO,EAAE;EACX;AACF,CAAC,CAAC;AAEF,eAAelB,UAAU","ignoreList":[]}
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet, View, Pressable } from 'react-native';
4
+ import { CommonText } from "../text/index.js";
5
+ import { useTheme } from "../../hooks/useTheme.js";
6
+ // import Animated, {
7
+ // FadeIn,
8
+ // FadeOut,
9
+ // LinearTransition,
10
+ // } from 'react-native-reanimated';
11
+
12
+ //TODO: React-native-reanimated 적용시키기
13
+ // const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
14
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
+ const FoldableCard = ({
16
+ children,
17
+ type = 'primary',
18
+ title,
19
+ value,
20
+ onPress
21
+ }) => {
22
+ const {
23
+ theme
24
+ } = useTheme();
25
+ return /*#__PURE__*/_jsxs(View, {
26
+ style: styles.container,
27
+ children: [/*#__PURE__*/_jsx(Pressable
28
+ // <AnimatedPressable
29
+ , {
30
+ style: [styles.titleContainer, {
31
+ backgroundColor: theme.colors[type]
32
+ }],
33
+ onPress: onPress
34
+ // layout={LinearTransition.duration(200)}
35
+ ,
36
+ children: /*#__PURE__*/_jsx(CommonText, {
37
+ style: [styles.titleText, {
38
+ color: theme.colors.white
39
+ }],
40
+ children: title
41
+ })
42
+ }), value && /*#__PURE__*/_jsx(View
43
+ // <Animated.View
44
+ // entering={FadeIn}
45
+ // exiting={FadeOut}
46
+ , {
47
+ style: [styles.contentContainer, {
48
+ borderColor: theme.colors[type]
49
+ }],
50
+ children: children
51
+ })]
52
+ });
53
+ };
54
+ const styles = StyleSheet.create({
55
+ container: {
56
+ width: '100%',
57
+ padding: 10
58
+ },
59
+ titleContainer: {
60
+ alignSelf: 'flex-start',
61
+ borderRadius: 5,
62
+ marginLeft: 5,
63
+ padding: 5,
64
+ zIndex: 1
65
+ },
66
+ titleText: {
67
+ fontSize: 20
68
+ },
69
+ contentContainer: {
70
+ borderWidth: 2,
71
+ borderRadius: 5,
72
+ padding: 10
73
+ }
74
+ });
75
+ export default FoldableCard;
76
+ //# sourceMappingURL=foldableCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","View","Pressable","CommonText","useTheme","jsx","_jsx","jsxs","_jsxs","FoldableCard","children","type","title","value","onPress","theme","style","styles","container","titleContainer","backgroundColor","colors","titleText","color","white","contentContainer","borderColor","create","width","padding","alignSelf","borderRadius","marginLeft","zIndex","fontSize","borderWidth"],"sourceRoot":"../../../../src","sources":["components/card/foldableCard.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,EAAEC,SAAS,QAAQ,cAAc;AAC1D,SAASC,UAAU,QAAQ,kBAAS;AAEpC,SAASC,QAAQ,QAAQ,yBAAsB;AAC/C;AACA;AACA;AACA;AACA;;AAEA;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AACA,MAAMC,YAAY,GAAGA,CAAC;EACpBC,QAAQ;EACRC,IAAI,GAAG,SAAS;EAChBC,KAAK;EACLC,KAAK;EACLC;AACiB,CAAC,KAAK;EACvB,MAAM;IAAEC;EAAM,CAAC,GAAGX,QAAQ,CAAC,CAAC;EAC5B,oBACEI,KAAA,CAACP,IAAI;IAACe,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAR,QAAA,gBAC5BJ,IAAA,CAACJ;IACC;IAAA;MACAc,KAAK,EAAE,CACLC,MAAM,CAACE,cAAc,EACrB;QACEC,eAAe,EAAEL,KAAK,CAACM,MAAM,CAACV,IAAI;MACpC,CAAC,CACD;MACFG,OAAO,EAAEA;MACT;MAAA;MAAAJ,QAAA,eAEAJ,IAAA,CAACH,UAAU;QACTa,KAAK,EAAE,CACLC,MAAM,CAACK,SAAS,EAChB;UACEC,KAAK,EAAER,KAAK,CAACM,MAAM,CAACG;QACtB,CAAC,CACD;QAAAd,QAAA,EAEDE;MAAK,CACI;IAAC,CAEJ,CAAC,EACXC,KAAK,iBACJP,IAAA,CAACL;IACC;IACA;IACA;IAAA;MACAe,KAAK,EAAE,CACLC,MAAM,CAACQ,gBAAgB,EACvB;QACEC,WAAW,EAAEX,KAAK,CAACM,MAAM,CAACV,IAAI;MAChC,CAAC,CACD;MAAAD,QAAA,EAEDA;IAAQ,CAEL,CACP;EAAA,CACG,CAAC;AAEX,CAAC;AAED,MAAMO,MAAM,GAAGjB,UAAU,CAAC2B,MAAM,CAAC;EAC/BT,SAAS,EAAE;IACTU,KAAK,EAAE,MAAM;IACbC,OAAO,EAAE;EACX,CAAC;EACDV,cAAc,EAAE;IACdW,SAAS,EAAE,YAAY;IACvBC,YAAY,EAAE,CAAC;IACfC,UAAU,EAAE,CAAC;IACbH,OAAO,EAAE,CAAC;IACVI,MAAM,EAAE;EACV,CAAC;EACDX,SAAS,EAAE;IACTY,QAAQ,EAAE;EACZ,CAAC;EACDT,gBAAgB,EAAE;IAChBU,WAAW,EAAE,CAAC;IACdJ,YAAY,EAAE,CAAC;IACfF,OAAO,EAAE;EACX;AACF,CAAC,CAAC;AAEF,eAAepB,YAAY","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ import CommonCard from "./commonCard.js";
4
+ import FoldableCard from "./foldableCard.js";
5
+ export { CommonCard, FoldableCard };
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["CommonCard","FoldableCard"],"sourceRoot":"../../../../src","sources":["components/card/index.ts"],"mappings":";;AAAA,OAAOA,UAAU,MAAM,iBAAc;AACrC,OAAOC,YAAY,MAAM,mBAAgB;AAEzC,SAASD,UAAU,EAAEC,YAAY","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/card/types.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+ import { Pressable, StyleSheet } from 'react-native';
4
+ import { sizeType } from "./types.js";
5
+ import { useTheme } from "../../hooks/useTheme.js";
6
+ import { CommonIcon } from "../icon/index.js";
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ export const CheckBox = ({
9
+ size = 'm',
10
+ disabled,
11
+ value,
12
+ onPress,
13
+ ...props
14
+ }) => {
15
+ const {
16
+ theme
17
+ } = useTheme();
18
+ return /*#__PURE__*/_jsx(Pressable, {
19
+ onPress: onPress,
20
+ style: [sizeType[size], styles.container, disabled ? {
21
+ borderColor: theme.colors.disabled
22
+ } : {
23
+ borderColor: theme.colors.primary
24
+ }],
25
+ disabled: disabled,
26
+ ...props,
27
+ children: value && /*#__PURE__*/_jsx(CommonIcon, {
28
+ color: disabled ? theme.colors.disabled : theme.colors.primary,
29
+ iconType: "check"
30
+ })
31
+ });
32
+ };
33
+ const styles = StyleSheet.create({
34
+ container: {
35
+ borderWidth: 1
36
+ }
37
+ });
38
+ //# sourceMappingURL=index.js.map