@adiraku/react-native-ui 1.2.3-snapshot.5 → 1.2.3-snapshot.7

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 (791) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +55 -55
  3. package/lib/commonjs/components/Appbar/Appbar.component.js.map +1 -1
  4. package/lib/commonjs/components/Appbar/Appbar.style.js +2 -3
  5. package/lib/commonjs/components/Appbar/Appbar.style.js.map +1 -1
  6. package/lib/commonjs/components/Appbar/Appbar.type.js.map +1 -1
  7. package/lib/commonjs/components/BottomSheet/BottomSheet.component.js +6 -23
  8. package/lib/commonjs/components/BottomSheet/BottomSheet.component.js.map +1 -1
  9. package/lib/commonjs/components/BottomSheet/BottomSheet.style.js +11 -4
  10. package/lib/commonjs/components/BottomSheet/BottomSheet.style.js.map +1 -1
  11. package/lib/commonjs/components/BottomSheet/BottomSheet.type.js.map +1 -1
  12. package/lib/commonjs/components/CheckBoxInput/CheckBoxInput.component.js +3 -2
  13. package/lib/commonjs/components/CheckBoxInput/CheckBoxInput.component.js.map +1 -1
  14. package/lib/commonjs/components/CheckBoxInput/CheckBoxInput.style.js.map +1 -1
  15. package/lib/commonjs/components/CheckBoxInput/CheckBoxInput.type.js.map +1 -1
  16. package/lib/commonjs/components/Checkbox/Checkbox.component.js.map +1 -1
  17. package/lib/commonjs/components/Checkbox/Checkbox.style.js.map +1 -1
  18. package/lib/commonjs/components/Checkbox/Checkbox.type.js.map +1 -1
  19. package/lib/commonjs/components/Divider/Divider.component.js.map +1 -1
  20. package/lib/commonjs/components/Divider/Divider.style.js.map +1 -1
  21. package/lib/commonjs/components/Divider/Divider.type.js.map +1 -1
  22. package/lib/commonjs/components/RadioButton/RadioButton.component.js.map +1 -1
  23. package/lib/commonjs/components/RadioButton/RadioButton.style.js.map +1 -1
  24. package/lib/commonjs/components/RadioButton/RadioButton.type.js.map +1 -1
  25. package/lib/commonjs/components/RadioInput/RadioInput.component.js +3 -2
  26. package/lib/commonjs/components/RadioInput/RadioInput.component.js.map +1 -1
  27. package/lib/commonjs/components/RadioInput/RadioInput.style.js.map +1 -1
  28. package/lib/commonjs/components/RadioInput/RadioInput.type.js.map +1 -1
  29. package/lib/commonjs/components/Snackbar/Snackbar.component.js.map +1 -1
  30. package/lib/commonjs/components/Snackbar/Snackbar.type.js.map +1 -1
  31. package/lib/commonjs/components/Snackbar/Snakbar.style.js.map +1 -1
  32. package/lib/commonjs/components/StepperCounter/StepperCounter.component.js.map +1 -1
  33. package/lib/commonjs/components/StepperCounter/StepperCounter.style.js.map +1 -1
  34. package/lib/commonjs/components/StepperCounter/StepperCounter.type.js.map +1 -1
  35. package/lib/commonjs/components/Tabs/Tabs.component.js +1 -0
  36. package/lib/commonjs/components/Tabs/Tabs.component.js.map +1 -1
  37. package/lib/commonjs/components/Tabs/Tabs.style.js.map +1 -1
  38. package/lib/commonjs/components/Tabs/Tabs.type.js.map +1 -1
  39. package/lib/commonjs/components/TextArea/TextArea.component.js +3 -2
  40. package/lib/commonjs/components/TextArea/TextArea.component.js.map +1 -1
  41. package/lib/commonjs/components/TextArea/TextArea.style.js.map +1 -1
  42. package/lib/commonjs/components/TextArea/TextArea.type.js.map +1 -1
  43. package/lib/commonjs/components/TextInput/TextInput.component.js +3 -2
  44. package/lib/commonjs/components/TextInput/TextInput.component.js.map +1 -1
  45. package/lib/commonjs/components/TextInput/TextInput.style.js.map +1 -1
  46. package/lib/commonjs/components/TextInput/TextInput.type.js.map +1 -1
  47. package/lib/commonjs/components/base/base.component.js.map +1 -1
  48. package/lib/commonjs/components/base/base.style.js.map +1 -1
  49. package/lib/commonjs/components/base/base.type.js.map +1 -1
  50. package/lib/commonjs/components/button/button.component.js.map +1 -1
  51. package/lib/commonjs/components/button/button.styles.js.map +1 -1
  52. package/lib/commonjs/components/button/button.type.js.map +1 -1
  53. package/lib/commonjs/components/coachmark/coachmark.component.js.map +1 -1
  54. package/lib/commonjs/components/coachmark/coachmark.style.js.map +1 -1
  55. package/lib/commonjs/components/coachmark/coachmark.type.js.map +1 -1
  56. package/lib/commonjs/components/countdown/countdown.component.js.map +1 -1
  57. package/lib/commonjs/components/countdown/countdown.style.js.map +1 -1
  58. package/lib/commonjs/components/countdown/countdown.type.js.map +1 -1
  59. package/lib/commonjs/components/dot/dot.component.js.map +1 -1
  60. package/lib/commonjs/components/dot/dot.style.js.map +1 -1
  61. package/lib/commonjs/components/dot/dot.type.js.map +1 -1
  62. package/lib/commonjs/components/index.js.map +1 -1
  63. package/lib/commonjs/components/information-box/information-box.component.js.map +1 -1
  64. package/lib/commonjs/components/information-box/information-box.style.js.map +1 -1
  65. package/lib/commonjs/components/information-box/information-box.type.js.map +1 -1
  66. package/lib/commonjs/components/label/label.component.js.map +1 -1
  67. package/lib/commonjs/components/label/label.style.js.map +1 -1
  68. package/lib/commonjs/components/label/label.type.js.map +1 -1
  69. package/lib/commonjs/components/rounded-tab/rounded-tab.component.js +7 -2
  70. package/lib/commonjs/components/rounded-tab/rounded-tab.component.js.map +1 -1
  71. package/lib/commonjs/components/rounded-tab/rounded-tab.style.js.map +1 -1
  72. package/lib/commonjs/components/rounded-tab/rounded-tab.type.js.map +1 -1
  73. package/lib/commonjs/components/slider-indicator/slider-indicator.component.js.map +1 -1
  74. package/lib/commonjs/components/slider-indicator/slider-indicator.style.js.map +1 -1
  75. package/lib/commonjs/components/slider-indicator/slider-indicator.type.js.map +1 -1
  76. package/lib/commonjs/components/switch/switch.component.js.map +1 -1
  77. package/lib/commonjs/components/switch/switch.style.js.map +1 -1
  78. package/lib/commonjs/components/switch/switch.type.js.map +1 -1
  79. package/lib/commonjs/components/textlink/textlink.component.js +7 -2
  80. package/lib/commonjs/components/textlink/textlink.component.js.map +1 -1
  81. package/lib/commonjs/components/textlink/textlink.style.js.map +1 -1
  82. package/lib/commonjs/components/textlink/textlink.type.js.map +1 -1
  83. package/lib/commonjs/components/typography/typography.component.js.map +1 -1
  84. package/lib/commonjs/components/typography/typography.style.js.map +1 -1
  85. package/lib/commonjs/components/typography/typography.type.js.map +1 -1
  86. package/lib/commonjs/icons/actions/IconAddMinus.js.map +1 -1
  87. package/lib/commonjs/icons/actions/IconAddPlus.js.map +1 -1
  88. package/lib/commonjs/icons/actions/IconAddRemove.js.map +1 -1
  89. package/lib/commonjs/icons/actions/IconAttach.js.map +1 -1
  90. package/lib/commonjs/icons/actions/IconBeliMobil.js.map +1 -1
  91. package/lib/commonjs/icons/actions/IconCamera.js.map +1 -1
  92. package/lib/commonjs/icons/actions/IconChat.js.map +1 -1
  93. package/lib/commonjs/icons/actions/IconCopy.js.map +1 -1
  94. package/lib/commonjs/icons/actions/IconCustomerService.js.map +1 -1
  95. package/lib/commonjs/icons/actions/IconDot.js.map +1 -1
  96. package/lib/commonjs/icons/actions/IconDownload.js.map +1 -1
  97. package/lib/commonjs/icons/actions/IconEdit.js.map +1 -1
  98. package/lib/commonjs/icons/actions/IconEmail.js.map +1 -1
  99. package/lib/commonjs/icons/actions/IconFilter.js.map +1 -1
  100. package/lib/commonjs/icons/actions/IconGallery.js.map +1 -1
  101. package/lib/commonjs/icons/actions/IconHamburger.js.map +1 -1
  102. package/lib/commonjs/icons/actions/IconHeartEmpty.js.map +1 -1
  103. package/lib/commonjs/icons/actions/IconHeartFilled.js.map +1 -1
  104. package/lib/commonjs/icons/actions/IconHeartOutline.js.map +1 -1
  105. package/lib/commonjs/icons/actions/IconHelp.js.map +1 -1
  106. package/lib/commonjs/icons/actions/IconInfo.js.map +1 -1
  107. package/lib/commonjs/icons/actions/IconJualMobil.js.map +1 -1
  108. package/lib/commonjs/icons/actions/IconLike.js.map +1 -1
  109. package/lib/commonjs/icons/actions/IconMinus.js.map +1 -1
  110. package/lib/commonjs/icons/actions/IconNotification.js.map +1 -1
  111. package/lib/commonjs/icons/actions/IconOther.js.map +1 -1
  112. package/lib/commonjs/icons/actions/IconPerson.js.map +1 -1
  113. package/lib/commonjs/icons/actions/IconPicture.js.map +1 -1
  114. package/lib/commonjs/icons/actions/IconPictureAdd.js.map +1 -1
  115. package/lib/commonjs/icons/actions/IconReload.js.map +1 -1
  116. package/lib/commonjs/icons/actions/IconRoundAdd.js.map +1 -1
  117. package/lib/commonjs/icons/actions/IconRoundClose.js.map +1 -1
  118. package/lib/commonjs/icons/actions/IconSearch.js.map +1 -1
  119. package/lib/commonjs/icons/actions/IconSeeHide.js.map +1 -1
  120. package/lib/commonjs/icons/actions/IconSeeShow.js.map +1 -1
  121. package/lib/commonjs/icons/actions/IconSetting.js.map +1 -1
  122. package/lib/commonjs/icons/actions/IconShare.js.map +1 -1
  123. package/lib/commonjs/icons/actions/IconShoppingBag.js.map +1 -1
  124. package/lib/commonjs/icons/actions/IconShoppingCart.js.map +1 -1
  125. package/lib/commonjs/icons/actions/IconSmartphone.js.map +1 -1
  126. package/lib/commonjs/icons/actions/IconSort.js.map +1 -1
  127. package/lib/commonjs/icons/actions/IconSorting.js.map +1 -1
  128. package/lib/commonjs/icons/actions/IconStarFilled.js.map +1 -1
  129. package/lib/commonjs/icons/actions/IconStarOutline.js.map +1 -1
  130. package/lib/commonjs/icons/actions/IconTrash.js.map +1 -1
  131. package/lib/commonjs/icons/actions/IconUpload.js.map +1 -1
  132. package/lib/commonjs/icons/actions/IconUser.js.map +1 -1
  133. package/lib/commonjs/icons/actions/IconVideo.js.map +1 -1
  134. package/lib/commonjs/icons/index.js.map +1 -1
  135. package/lib/commonjs/icons/misc/IconCalendar.js.map +1 -1
  136. package/lib/commonjs/icons/misc/IconCash.js.map +1 -1
  137. package/lib/commonjs/icons/misc/IconCategory.js.map +1 -1
  138. package/lib/commonjs/icons/misc/IconContract.js.map +1 -1
  139. package/lib/commonjs/icons/misc/IconCreditCard.js.map +1 -1
  140. package/lib/commonjs/icons/misc/IconFlash.js.map +1 -1
  141. package/lib/commonjs/icons/misc/IconGroup.js.map +1 -1
  142. package/lib/commonjs/icons/misc/IconHistory.js.map +1 -1
  143. package/lib/commonjs/icons/misc/IconLocation.js.map +1 -1
  144. package/lib/commonjs/icons/misc/IconLock.js.map +1 -1
  145. package/lib/commonjs/icons/misc/IconMoney.js.map +1 -1
  146. package/lib/commonjs/icons/misc/IconMyLocation.js.map +1 -1
  147. package/lib/commonjs/icons/misc/IconOfficial.js.map +1 -1
  148. package/lib/commonjs/icons/misc/IconPromo.js.map +1 -1
  149. package/lib/commonjs/icons/misc/IconProtection.js.map +1 -1
  150. package/lib/commonjs/icons/misc/IconStore.js.map +1 -1
  151. package/lib/commonjs/icons/misc/IconTick.js.map +1 -1
  152. package/lib/commonjs/icons/misc/IconTicket.js.map +1 -1
  153. package/lib/commonjs/icons/misc/IconTime.js.map +1 -1
  154. package/lib/commonjs/icons/misc/IconVoucher.js.map +1 -1
  155. package/lib/commonjs/icons/navigations/IconArrowDiagonal.js.map +1 -1
  156. package/lib/commonjs/icons/navigations/IconArrowDown.js.map +1 -1
  157. package/lib/commonjs/icons/navigations/IconArrowLeft.js.map +1 -1
  158. package/lib/commonjs/icons/navigations/IconArrowRight.js.map +1 -1
  159. package/lib/commonjs/icons/navigations/IconArrowUp.js.map +1 -1
  160. package/lib/commonjs/icons/navigations/IconChevronDown.js.map +1 -1
  161. package/lib/commonjs/icons/navigations/IconChevronLeft.js.map +1 -1
  162. package/lib/commonjs/icons/navigations/IconChevronRight.js.map +1 -1
  163. package/lib/commonjs/icons/navigations/IconChevronUp.js.map +1 -1
  164. package/lib/commonjs/icons/navigations/IconClose.js.map +1 -1
  165. package/lib/commonjs/icons/navs/IconNavAdiraku.js.map +1 -1
  166. package/lib/commonjs/icons/navs/IconNavDocument.js.map +1 -1
  167. package/lib/commonjs/icons/navs/IconNavHome.js.map +1 -1
  168. package/lib/commonjs/icons/navs/IconNavPhone.js.map +1 -1
  169. package/lib/commonjs/icons/navs/IconNavProfile.js.map +1 -1
  170. package/lib/commonjs/icons/vehicles/IconBikeCaferacer.js.map +1 -1
  171. package/lib/commonjs/icons/vehicles/IconBikeCooper.js.map +1 -1
  172. package/lib/commonjs/icons/vehicles/IconBikeCruiser.js.map +1 -1
  173. package/lib/commonjs/icons/vehicles/IconBikeDualsport.js.map +1 -1
  174. package/lib/commonjs/icons/vehicles/IconBikeMopad.js.map +1 -1
  175. package/lib/commonjs/icons/vehicles/IconBikeRoadster.js.map +1 -1
  176. package/lib/commonjs/icons/vehicles/IconBikeScooter.js.map +1 -1
  177. package/lib/commonjs/icons/vehicles/IconBikeScrambler.js.map +1 -1
  178. package/lib/commonjs/icons/vehicles/IconBikeSportbike.js.map +1 -1
  179. package/lib/commonjs/icons/vehicles/IconBikeSportstouring.js.map +1 -1
  180. package/lib/commonjs/icons/vehicles/IconBikeTouring.js.map +1 -1
  181. package/lib/commonjs/icons/vehicles/IconBikeTrialbike.js.map +1 -1
  182. package/lib/commonjs/icons/vehicles/IconCarHatchback.js.map +1 -1
  183. package/lib/commonjs/icons/vehicles/IconCarJeep.js.map +1 -1
  184. package/lib/commonjs/icons/vehicles/IconCarMiniTruck.js.map +1 -1
  185. package/lib/commonjs/icons/vehicles/IconCarMinivan.js.map +1 -1
  186. package/lib/commonjs/icons/vehicles/IconCarMuv.js.map +1 -1
  187. package/lib/commonjs/icons/vehicles/IconCarPickup.js.map +1 -1
  188. package/lib/commonjs/icons/vehicles/IconCarSportCar.js.map +1 -1
  189. package/lib/commonjs/icons/vehicles/IconCarSuperCar.js.map +1 -1
  190. package/lib/commonjs/icons/vehicles/IconCarSuv.js.map +1 -1
  191. package/lib/commonjs/icons/vehicles/IconCarVan.js.map +1 -1
  192. package/lib/commonjs/icons/vehicles/IconCarWagon.js.map +1 -1
  193. package/lib/commonjs/icons/vehicles/IconMinus.js.map +1 -1
  194. package/lib/commonjs/index.js.map +1 -1
  195. package/lib/commonjs/themes/colors.js.map +1 -1
  196. package/lib/commonjs/themes/index.js.map +1 -1
  197. package/lib/commonjs/themes/radius.js.map +1 -1
  198. package/lib/commonjs/themes/shadow.js.map +1 -1
  199. package/lib/commonjs/themes/spacing.js.map +1 -1
  200. package/lib/commonjs/types.js.map +1 -1
  201. package/lib/module/components/Appbar/Appbar.component.js.map +1 -1
  202. package/lib/module/components/Appbar/Appbar.style.js +2 -3
  203. package/lib/module/components/Appbar/Appbar.style.js.map +1 -1
  204. package/lib/module/components/Appbar/Appbar.type.js.map +1 -1
  205. package/lib/module/components/BottomSheet/BottomSheet.component.js +7 -25
  206. package/lib/module/components/BottomSheet/BottomSheet.component.js.map +1 -1
  207. package/lib/module/components/BottomSheet/BottomSheet.style.js +11 -4
  208. package/lib/module/components/BottomSheet/BottomSheet.style.js.map +1 -1
  209. package/lib/module/components/BottomSheet/BottomSheet.type.js.map +1 -1
  210. package/lib/module/components/CheckBoxInput/CheckBoxInput.component.js +3 -2
  211. package/lib/module/components/CheckBoxInput/CheckBoxInput.component.js.map +1 -1
  212. package/lib/module/components/CheckBoxInput/CheckBoxInput.style.js.map +1 -1
  213. package/lib/module/components/CheckBoxInput/CheckBoxInput.type.js.map +1 -1
  214. package/lib/module/components/Checkbox/Checkbox.component.js.map +1 -1
  215. package/lib/module/components/Checkbox/Checkbox.style.js.map +1 -1
  216. package/lib/module/components/Checkbox/Checkbox.type.js.map +1 -1
  217. package/lib/module/components/Divider/Divider.component.js.map +1 -1
  218. package/lib/module/components/Divider/Divider.style.js.map +1 -1
  219. package/lib/module/components/Divider/Divider.type.js.map +1 -1
  220. package/lib/module/components/RadioButton/RadioButton.component.js.map +1 -1
  221. package/lib/module/components/RadioButton/RadioButton.style.js.map +1 -1
  222. package/lib/module/components/RadioButton/RadioButton.type.js.map +1 -1
  223. package/lib/module/components/RadioInput/RadioInput.component.js +3 -2
  224. package/lib/module/components/RadioInput/RadioInput.component.js.map +1 -1
  225. package/lib/module/components/RadioInput/RadioInput.style.js.map +1 -1
  226. package/lib/module/components/RadioInput/RadioInput.type.js.map +1 -1
  227. package/lib/module/components/Snackbar/Snackbar.component.js.map +1 -1
  228. package/lib/module/components/Snackbar/Snackbar.type.js.map +1 -1
  229. package/lib/module/components/Snackbar/Snakbar.style.js.map +1 -1
  230. package/lib/module/components/StepperCounter/StepperCounter.component.js.map +1 -1
  231. package/lib/module/components/StepperCounter/StepperCounter.style.js.map +1 -1
  232. package/lib/module/components/StepperCounter/StepperCounter.type.js.map +1 -1
  233. package/lib/module/components/Tabs/Tabs.component.js +1 -0
  234. package/lib/module/components/Tabs/Tabs.component.js.map +1 -1
  235. package/lib/module/components/Tabs/Tabs.style.js.map +1 -1
  236. package/lib/module/components/Tabs/Tabs.type.js.map +1 -1
  237. package/lib/module/components/TextArea/TextArea.component.js +3 -2
  238. package/lib/module/components/TextArea/TextArea.component.js.map +1 -1
  239. package/lib/module/components/TextArea/TextArea.style.js.map +1 -1
  240. package/lib/module/components/TextArea/TextArea.type.js.map +1 -1
  241. package/lib/module/components/TextInput/TextInput.component.js +3 -2
  242. package/lib/module/components/TextInput/TextInput.component.js.map +1 -1
  243. package/lib/module/components/TextInput/TextInput.style.js.map +1 -1
  244. package/lib/module/components/TextInput/TextInput.type.js.map +1 -1
  245. package/lib/module/components/base/base.component.js.map +1 -1
  246. package/lib/module/components/base/base.style.js.map +1 -1
  247. package/lib/module/components/base/base.type.js.map +1 -1
  248. package/lib/module/components/button/button.component.js.map +1 -1
  249. package/lib/module/components/button/button.styles.js.map +1 -1
  250. package/lib/module/components/button/button.type.js.map +1 -1
  251. package/lib/module/components/coachmark/coachmark.component.js.map +1 -1
  252. package/lib/module/components/coachmark/coachmark.style.js.map +1 -1
  253. package/lib/module/components/coachmark/coachmark.type.js.map +1 -1
  254. package/lib/module/components/countdown/countdown.component.js.map +1 -1
  255. package/lib/module/components/countdown/countdown.style.js.map +1 -1
  256. package/lib/module/components/countdown/countdown.type.js.map +1 -1
  257. package/lib/module/components/dot/dot.component.js.map +1 -1
  258. package/lib/module/components/dot/dot.style.js.map +1 -1
  259. package/lib/module/components/dot/dot.type.js.map +1 -1
  260. package/lib/module/components/index.js.map +1 -1
  261. package/lib/module/components/information-box/information-box.component.js.map +1 -1
  262. package/lib/module/components/information-box/information-box.style.js.map +1 -1
  263. package/lib/module/components/information-box/information-box.type.js.map +1 -1
  264. package/lib/module/components/label/label.component.js.map +1 -1
  265. package/lib/module/components/label/label.style.js.map +1 -1
  266. package/lib/module/components/label/label.type.js.map +1 -1
  267. package/lib/module/components/rounded-tab/rounded-tab.component.js +7 -2
  268. package/lib/module/components/rounded-tab/rounded-tab.component.js.map +1 -1
  269. package/lib/module/components/rounded-tab/rounded-tab.style.js.map +1 -1
  270. package/lib/module/components/rounded-tab/rounded-tab.type.js.map +1 -1
  271. package/lib/module/components/slider-indicator/slider-indicator.component.js.map +1 -1
  272. package/lib/module/components/slider-indicator/slider-indicator.style.js.map +1 -1
  273. package/lib/module/components/slider-indicator/slider-indicator.type.js.map +1 -1
  274. package/lib/module/components/switch/switch.component.js.map +1 -1
  275. package/lib/module/components/switch/switch.style.js.map +1 -1
  276. package/lib/module/components/switch/switch.type.js.map +1 -1
  277. package/lib/module/components/textlink/textlink.component.js +7 -2
  278. package/lib/module/components/textlink/textlink.component.js.map +1 -1
  279. package/lib/module/components/textlink/textlink.style.js.map +1 -1
  280. package/lib/module/components/textlink/textlink.type.js.map +1 -1
  281. package/lib/module/components/typography/typography.component.js.map +1 -1
  282. package/lib/module/components/typography/typography.style.js.map +1 -1
  283. package/lib/module/components/typography/typography.type.js.map +1 -1
  284. package/lib/module/icons/actions/IconAddMinus.js.map +1 -1
  285. package/lib/module/icons/actions/IconAddPlus.js.map +1 -1
  286. package/lib/module/icons/actions/IconAddRemove.js.map +1 -1
  287. package/lib/module/icons/actions/IconAttach.js.map +1 -1
  288. package/lib/module/icons/actions/IconBeliMobil.js.map +1 -1
  289. package/lib/module/icons/actions/IconCamera.js.map +1 -1
  290. package/lib/module/icons/actions/IconChat.js.map +1 -1
  291. package/lib/module/icons/actions/IconCopy.js.map +1 -1
  292. package/lib/module/icons/actions/IconCustomerService.js.map +1 -1
  293. package/lib/module/icons/actions/IconDot.js.map +1 -1
  294. package/lib/module/icons/actions/IconDownload.js.map +1 -1
  295. package/lib/module/icons/actions/IconEdit.js.map +1 -1
  296. package/lib/module/icons/actions/IconEmail.js.map +1 -1
  297. package/lib/module/icons/actions/IconFilter.js.map +1 -1
  298. package/lib/module/icons/actions/IconGallery.js.map +1 -1
  299. package/lib/module/icons/actions/IconHamburger.js.map +1 -1
  300. package/lib/module/icons/actions/IconHeartEmpty.js.map +1 -1
  301. package/lib/module/icons/actions/IconHeartFilled.js.map +1 -1
  302. package/lib/module/icons/actions/IconHeartOutline.js.map +1 -1
  303. package/lib/module/icons/actions/IconHelp.js.map +1 -1
  304. package/lib/module/icons/actions/IconInfo.js.map +1 -1
  305. package/lib/module/icons/actions/IconJualMobil.js.map +1 -1
  306. package/lib/module/icons/actions/IconLike.js.map +1 -1
  307. package/lib/module/icons/actions/IconMinus.js.map +1 -1
  308. package/lib/module/icons/actions/IconNotification.js.map +1 -1
  309. package/lib/module/icons/actions/IconOther.js.map +1 -1
  310. package/lib/module/icons/actions/IconPerson.js.map +1 -1
  311. package/lib/module/icons/actions/IconPicture.js.map +1 -1
  312. package/lib/module/icons/actions/IconPictureAdd.js.map +1 -1
  313. package/lib/module/icons/actions/IconReload.js.map +1 -1
  314. package/lib/module/icons/actions/IconRoundAdd.js.map +1 -1
  315. package/lib/module/icons/actions/IconRoundClose.js.map +1 -1
  316. package/lib/module/icons/actions/IconSearch.js.map +1 -1
  317. package/lib/module/icons/actions/IconSeeHide.js.map +1 -1
  318. package/lib/module/icons/actions/IconSeeShow.js.map +1 -1
  319. package/lib/module/icons/actions/IconSetting.js.map +1 -1
  320. package/lib/module/icons/actions/IconShare.js.map +1 -1
  321. package/lib/module/icons/actions/IconShoppingBag.js.map +1 -1
  322. package/lib/module/icons/actions/IconShoppingCart.js.map +1 -1
  323. package/lib/module/icons/actions/IconSmartphone.js.map +1 -1
  324. package/lib/module/icons/actions/IconSort.js.map +1 -1
  325. package/lib/module/icons/actions/IconSorting.js.map +1 -1
  326. package/lib/module/icons/actions/IconStarFilled.js.map +1 -1
  327. package/lib/module/icons/actions/IconStarOutline.js.map +1 -1
  328. package/lib/module/icons/actions/IconTrash.js.map +1 -1
  329. package/lib/module/icons/actions/IconUpload.js.map +1 -1
  330. package/lib/module/icons/actions/IconUser.js.map +1 -1
  331. package/lib/module/icons/actions/IconVideo.js.map +1 -1
  332. package/lib/module/icons/index.js.map +1 -1
  333. package/lib/module/icons/misc/IconCalendar.js.map +1 -1
  334. package/lib/module/icons/misc/IconCash.js.map +1 -1
  335. package/lib/module/icons/misc/IconCategory.js.map +1 -1
  336. package/lib/module/icons/misc/IconContract.js.map +1 -1
  337. package/lib/module/icons/misc/IconCreditCard.js.map +1 -1
  338. package/lib/module/icons/misc/IconFlash.js.map +1 -1
  339. package/lib/module/icons/misc/IconGroup.js.map +1 -1
  340. package/lib/module/icons/misc/IconHistory.js.map +1 -1
  341. package/lib/module/icons/misc/IconLocation.js.map +1 -1
  342. package/lib/module/icons/misc/IconLock.js.map +1 -1
  343. package/lib/module/icons/misc/IconMoney.js.map +1 -1
  344. package/lib/module/icons/misc/IconMyLocation.js.map +1 -1
  345. package/lib/module/icons/misc/IconOfficial.js.map +1 -1
  346. package/lib/module/icons/misc/IconPromo.js.map +1 -1
  347. package/lib/module/icons/misc/IconProtection.js.map +1 -1
  348. package/lib/module/icons/misc/IconStore.js.map +1 -1
  349. package/lib/module/icons/misc/IconTick.js.map +1 -1
  350. package/lib/module/icons/misc/IconTicket.js.map +1 -1
  351. package/lib/module/icons/misc/IconTime.js.map +1 -1
  352. package/lib/module/icons/misc/IconVoucher.js.map +1 -1
  353. package/lib/module/icons/navigations/IconArrowDiagonal.js.map +1 -1
  354. package/lib/module/icons/navigations/IconArrowDown.js.map +1 -1
  355. package/lib/module/icons/navigations/IconArrowLeft.js.map +1 -1
  356. package/lib/module/icons/navigations/IconArrowRight.js.map +1 -1
  357. package/lib/module/icons/navigations/IconArrowUp.js.map +1 -1
  358. package/lib/module/icons/navigations/IconChevronDown.js.map +1 -1
  359. package/lib/module/icons/navigations/IconChevronLeft.js.map +1 -1
  360. package/lib/module/icons/navigations/IconChevronRight.js.map +1 -1
  361. package/lib/module/icons/navigations/IconChevronUp.js.map +1 -1
  362. package/lib/module/icons/navigations/IconClose.js.map +1 -1
  363. package/lib/module/icons/navs/IconNavAdiraku.js.map +1 -1
  364. package/lib/module/icons/navs/IconNavDocument.js.map +1 -1
  365. package/lib/module/icons/navs/IconNavHome.js.map +1 -1
  366. package/lib/module/icons/navs/IconNavPhone.js.map +1 -1
  367. package/lib/module/icons/navs/IconNavProfile.js.map +1 -1
  368. package/lib/module/icons/vehicles/IconBikeCaferacer.js.map +1 -1
  369. package/lib/module/icons/vehicles/IconBikeCooper.js.map +1 -1
  370. package/lib/module/icons/vehicles/IconBikeCruiser.js.map +1 -1
  371. package/lib/module/icons/vehicles/IconBikeDualsport.js.map +1 -1
  372. package/lib/module/icons/vehicles/IconBikeMopad.js.map +1 -1
  373. package/lib/module/icons/vehicles/IconBikeRoadster.js.map +1 -1
  374. package/lib/module/icons/vehicles/IconBikeScooter.js.map +1 -1
  375. package/lib/module/icons/vehicles/IconBikeScrambler.js.map +1 -1
  376. package/lib/module/icons/vehicles/IconBikeSportbike.js.map +1 -1
  377. package/lib/module/icons/vehicles/IconBikeSportstouring.js.map +1 -1
  378. package/lib/module/icons/vehicles/IconBikeTouring.js.map +1 -1
  379. package/lib/module/icons/vehicles/IconBikeTrialbike.js.map +1 -1
  380. package/lib/module/icons/vehicles/IconCarHatchback.js.map +1 -1
  381. package/lib/module/icons/vehicles/IconCarJeep.js.map +1 -1
  382. package/lib/module/icons/vehicles/IconCarMiniTruck.js.map +1 -1
  383. package/lib/module/icons/vehicles/IconCarMinivan.js.map +1 -1
  384. package/lib/module/icons/vehicles/IconCarMuv.js.map +1 -1
  385. package/lib/module/icons/vehicles/IconCarPickup.js.map +1 -1
  386. package/lib/module/icons/vehicles/IconCarSportCar.js.map +1 -1
  387. package/lib/module/icons/vehicles/IconCarSuperCar.js.map +1 -1
  388. package/lib/module/icons/vehicles/IconCarSuv.js.map +1 -1
  389. package/lib/module/icons/vehicles/IconCarVan.js.map +1 -1
  390. package/lib/module/icons/vehicles/IconCarWagon.js.map +1 -1
  391. package/lib/module/icons/vehicles/IconMinus.js.map +1 -1
  392. package/lib/module/index.js.map +1 -1
  393. package/lib/module/themes/colors.js.map +1 -1
  394. package/lib/module/themes/index.js.map +1 -1
  395. package/lib/module/themes/radius.js.map +1 -1
  396. package/lib/module/themes/shadow.js.map +1 -1
  397. package/lib/module/themes/spacing.js.map +1 -1
  398. package/lib/module/types.js.map +1 -1
  399. package/lib/typescript/components/Appbar/Appbar.component.d.ts +4 -4
  400. package/lib/typescript/components/Appbar/Appbar.style.d.ts +12 -12
  401. package/lib/typescript/components/Appbar/Appbar.type.d.ts +19 -21
  402. package/lib/typescript/components/Appbar/Appbar.type.d.ts.map +1 -1
  403. package/lib/typescript/components/BottomSheet/BottomSheet.component.d.ts +9 -9
  404. package/lib/typescript/components/BottomSheet/BottomSheet.component.d.ts.map +1 -1
  405. package/lib/typescript/components/BottomSheet/BottomSheet.style.d.ts +20 -19
  406. package/lib/typescript/components/BottomSheet/BottomSheet.style.d.ts.map +1 -1
  407. package/lib/typescript/components/BottomSheet/BottomSheet.type.d.ts +25 -25
  408. package/lib/typescript/components/CheckBoxInput/CheckBoxInput.component.d.ts +4 -4
  409. package/lib/typescript/components/CheckBoxInput/CheckBoxInput.component.d.ts.map +1 -1
  410. package/lib/typescript/components/CheckBoxInput/CheckBoxInput.style.d.ts +17 -17
  411. package/lib/typescript/components/CheckBoxInput/CheckBoxInput.type.d.ts +57 -55
  412. package/lib/typescript/components/CheckBoxInput/CheckBoxInput.type.d.ts.map +1 -1
  413. package/lib/typescript/components/Checkbox/Checkbox.component.d.ts +4 -4
  414. package/lib/typescript/components/Checkbox/Checkbox.style.d.ts +11 -11
  415. package/lib/typescript/components/Checkbox/Checkbox.type.d.ts +5 -5
  416. package/lib/typescript/components/Divider/Divider.component.d.ts +4 -4
  417. package/lib/typescript/components/Divider/Divider.style.d.ts +9 -9
  418. package/lib/typescript/components/Divider/Divider.type.d.ts +15 -15
  419. package/lib/typescript/components/RadioButton/RadioButton.component.d.ts +4 -4
  420. package/lib/typescript/components/RadioButton/RadioButton.style.d.ts +10 -10
  421. package/lib/typescript/components/RadioButton/RadioButton.type.d.ts +5 -5
  422. package/lib/typescript/components/RadioInput/RadioInput.component.d.ts +4 -4
  423. package/lib/typescript/components/RadioInput/RadioInput.component.d.ts.map +1 -1
  424. package/lib/typescript/components/RadioInput/RadioInput.style.d.ts +17 -17
  425. package/lib/typescript/components/RadioInput/RadioInput.type.d.ts +56 -54
  426. package/lib/typescript/components/RadioInput/RadioInput.type.d.ts.map +1 -1
  427. package/lib/typescript/components/Snackbar/Snackbar.component.d.ts +11 -11
  428. package/lib/typescript/components/Snackbar/Snackbar.type.d.ts +7 -7
  429. package/lib/typescript/components/Snackbar/Snakbar.style.d.ts +9 -9
  430. package/lib/typescript/components/StepperCounter/StepperCounter.component.d.ts +4 -4
  431. package/lib/typescript/components/StepperCounter/StepperCounter.style.d.ts +18 -18
  432. package/lib/typescript/components/StepperCounter/StepperCounter.type.d.ts +15 -15
  433. package/lib/typescript/components/Tabs/Tabs.component.d.ts +4 -4
  434. package/lib/typescript/components/Tabs/Tabs.component.d.ts.map +1 -1
  435. package/lib/typescript/components/Tabs/Tabs.style.d.ts +8 -8
  436. package/lib/typescript/components/Tabs/Tabs.type.d.ts +15 -15
  437. package/lib/typescript/components/TextArea/TextArea.component.d.ts +4 -4
  438. package/lib/typescript/components/TextArea/TextArea.component.d.ts.map +1 -1
  439. package/lib/typescript/components/TextArea/TextArea.style.d.ts +15 -15
  440. package/lib/typescript/components/TextArea/TextArea.type.d.ts +30 -28
  441. package/lib/typescript/components/TextArea/TextArea.type.d.ts.map +1 -1
  442. package/lib/typescript/components/TextInput/TextInput.component.d.ts +4 -4
  443. package/lib/typescript/components/TextInput/TextInput.component.d.ts.map +1 -1
  444. package/lib/typescript/components/TextInput/TextInput.style.d.ts +16 -16
  445. package/lib/typescript/components/TextInput/TextInput.type.d.ts +34 -32
  446. package/lib/typescript/components/TextInput/TextInput.type.d.ts.map +1 -1
  447. package/lib/typescript/components/base/base.component.d.ts +4 -4
  448. package/lib/typescript/components/base/base.style.d.ts +9 -9
  449. package/lib/typescript/components/base/base.type.d.ts +14 -14
  450. package/lib/typescript/components/button/button.component.d.ts +4 -4
  451. package/lib/typescript/components/button/button.styles.d.ts +9 -9
  452. package/lib/typescript/components/button/button.type.d.ts +33 -33
  453. package/lib/typescript/components/coachmark/coachmark.component.d.ts +3 -3
  454. package/lib/typescript/components/coachmark/coachmark.style.d.ts +12 -12
  455. package/lib/typescript/components/coachmark/coachmark.type.d.ts +31 -31
  456. package/lib/typescript/components/countdown/countdown.component.d.ts +4 -4
  457. package/lib/typescript/components/countdown/countdown.style.d.ts +9 -9
  458. package/lib/typescript/components/countdown/countdown.type.d.ts +11 -11
  459. package/lib/typescript/components/dot/dot.component.d.ts +4 -4
  460. package/lib/typescript/components/dot/dot.style.d.ts +8 -8
  461. package/lib/typescript/components/dot/dot.type.d.ts +5 -5
  462. package/lib/typescript/components/index.d.ts +35 -35
  463. package/lib/typescript/components/information-box/information-box.component.d.ts +4 -4
  464. package/lib/typescript/components/information-box/information-box.style.d.ts +11 -11
  465. package/lib/typescript/components/information-box/information-box.type.d.ts +13 -13
  466. package/lib/typescript/components/label/label.component.d.ts +4 -4
  467. package/lib/typescript/components/label/label.style.d.ts +6 -6
  468. package/lib/typescript/components/label/label.type.d.ts +13 -13
  469. package/lib/typescript/components/rounded-tab/rounded-tab.component.d.ts +4 -4
  470. package/lib/typescript/components/rounded-tab/rounded-tab.component.d.ts.map +1 -1
  471. package/lib/typescript/components/rounded-tab/rounded-tab.style.d.ts +16 -16
  472. package/lib/typescript/components/rounded-tab/rounded-tab.type.d.ts +16 -14
  473. package/lib/typescript/components/rounded-tab/rounded-tab.type.d.ts.map +1 -1
  474. package/lib/typescript/components/slider-indicator/slider-indicator.component.d.ts +4 -4
  475. package/lib/typescript/components/slider-indicator/slider-indicator.style.d.ts +8 -8
  476. package/lib/typescript/components/slider-indicator/slider-indicator.type.d.ts +20 -20
  477. package/lib/typescript/components/switch/switch.component.d.ts +4 -4
  478. package/lib/typescript/components/switch/switch.style.d.ts +9 -9
  479. package/lib/typescript/components/switch/switch.type.d.ts +5 -5
  480. package/lib/typescript/components/textlink/textlink.component.d.ts +3 -3
  481. package/lib/typescript/components/textlink/textlink.component.d.ts.map +1 -1
  482. package/lib/typescript/components/textlink/textlink.style.d.ts +10 -10
  483. package/lib/typescript/components/textlink/textlink.type.d.ts +25 -25
  484. package/lib/typescript/components/typography/typography.component.d.ts +4 -4
  485. package/lib/typescript/components/typography/typography.style.d.ts +33 -33
  486. package/lib/typescript/components/typography/typography.type.d.ts +24 -24
  487. package/lib/typescript/icons/actions/IconAddMinus.d.ts +3 -3
  488. package/lib/typescript/icons/actions/IconAddPlus.d.ts +3 -3
  489. package/lib/typescript/icons/actions/IconAddRemove.d.ts +3 -3
  490. package/lib/typescript/icons/actions/IconAttach.d.ts +3 -3
  491. package/lib/typescript/icons/actions/IconBeliMobil.d.ts +4 -4
  492. package/lib/typescript/icons/actions/IconCamera.d.ts +4 -4
  493. package/lib/typescript/icons/actions/IconChat.d.ts +4 -4
  494. package/lib/typescript/icons/actions/IconCopy.d.ts +4 -4
  495. package/lib/typescript/icons/actions/IconCustomerService.d.ts +3 -3
  496. package/lib/typescript/icons/actions/IconDot.d.ts +4 -4
  497. package/lib/typescript/icons/actions/IconDownload.d.ts +3 -3
  498. package/lib/typescript/icons/actions/IconEdit.d.ts +4 -4
  499. package/lib/typescript/icons/actions/IconEmail.d.ts +4 -4
  500. package/lib/typescript/icons/actions/IconFilter.d.ts +4 -4
  501. package/lib/typescript/icons/actions/IconGallery.d.ts +4 -4
  502. package/lib/typescript/icons/actions/IconHamburger.d.ts +3 -3
  503. package/lib/typescript/icons/actions/IconHeartEmpty.d.ts +5 -5
  504. package/lib/typescript/icons/actions/IconHeartFilled.d.ts +3 -3
  505. package/lib/typescript/icons/actions/IconHeartOutline.d.ts +3 -3
  506. package/lib/typescript/icons/actions/IconHelp.d.ts +4 -4
  507. package/lib/typescript/icons/actions/IconInfo.d.ts +4 -4
  508. package/lib/typescript/icons/actions/IconJualMobil.d.ts +4 -4
  509. package/lib/typescript/icons/actions/IconLike.d.ts +4 -4
  510. package/lib/typescript/icons/actions/IconMinus.d.ts +4 -4
  511. package/lib/typescript/icons/actions/IconNotification.d.ts +4 -4
  512. package/lib/typescript/icons/actions/IconOther.d.ts +4 -4
  513. package/lib/typescript/icons/actions/IconPerson.d.ts +3 -3
  514. package/lib/typescript/icons/actions/IconPicture.d.ts +3 -3
  515. package/lib/typescript/icons/actions/IconPictureAdd.d.ts +3 -3
  516. package/lib/typescript/icons/actions/IconReload.d.ts +3 -3
  517. package/lib/typescript/icons/actions/IconRoundAdd.d.ts +4 -4
  518. package/lib/typescript/icons/actions/IconRoundClose.d.ts +4 -4
  519. package/lib/typescript/icons/actions/IconSearch.d.ts +3 -3
  520. package/lib/typescript/icons/actions/IconSeeHide.d.ts +3 -3
  521. package/lib/typescript/icons/actions/IconSeeShow.d.ts +3 -3
  522. package/lib/typescript/icons/actions/IconSetting.d.ts +4 -4
  523. package/lib/typescript/icons/actions/IconShare.d.ts +4 -4
  524. package/lib/typescript/icons/actions/IconShoppingBag.d.ts +4 -4
  525. package/lib/typescript/icons/actions/IconShoppingCart.d.ts +4 -4
  526. package/lib/typescript/icons/actions/IconSmartphone.d.ts +4 -4
  527. package/lib/typescript/icons/actions/IconSort.d.ts +3 -3
  528. package/lib/typescript/icons/actions/IconSorting.d.ts +3 -3
  529. package/lib/typescript/icons/actions/IconStarFilled.d.ts +3 -3
  530. package/lib/typescript/icons/actions/IconStarOutline.d.ts +3 -3
  531. package/lib/typescript/icons/actions/IconTrash.d.ts +4 -4
  532. package/lib/typescript/icons/actions/IconUpload.d.ts +3 -3
  533. package/lib/typescript/icons/actions/IconUser.d.ts +4 -4
  534. package/lib/typescript/icons/actions/IconVideo.d.ts +4 -4
  535. package/lib/typescript/icons/index.d.ts +106 -106
  536. package/lib/typescript/icons/misc/IconCalendar.d.ts +3 -3
  537. package/lib/typescript/icons/misc/IconCash.d.ts +3 -3
  538. package/lib/typescript/icons/misc/IconCategory.d.ts +3 -3
  539. package/lib/typescript/icons/misc/IconContract.d.ts +3 -3
  540. package/lib/typescript/icons/misc/IconCreditCard.d.ts +3 -3
  541. package/lib/typescript/icons/misc/IconFlash.d.ts +3 -3
  542. package/lib/typescript/icons/misc/IconGroup.d.ts +3 -3
  543. package/lib/typescript/icons/misc/IconHistory.d.ts +3 -3
  544. package/lib/typescript/icons/misc/IconLocation.d.ts +3 -3
  545. package/lib/typescript/icons/misc/IconLock.d.ts +3 -3
  546. package/lib/typescript/icons/misc/IconMoney.d.ts +3 -3
  547. package/lib/typescript/icons/misc/IconMyLocation.d.ts +3 -3
  548. package/lib/typescript/icons/misc/IconOfficial.d.ts +3 -3
  549. package/lib/typescript/icons/misc/IconPromo.d.ts +3 -3
  550. package/lib/typescript/icons/misc/IconProtection.d.ts +3 -3
  551. package/lib/typescript/icons/misc/IconStore.d.ts +3 -3
  552. package/lib/typescript/icons/misc/IconTick.d.ts +3 -3
  553. package/lib/typescript/icons/misc/IconTicket.d.ts +3 -3
  554. package/lib/typescript/icons/misc/IconTime.d.ts +3 -3
  555. package/lib/typescript/icons/misc/IconVoucher.d.ts +3 -3
  556. package/lib/typescript/icons/navigations/IconArrowDiagonal.d.ts +3 -3
  557. package/lib/typescript/icons/navigations/IconArrowDown.d.ts +3 -3
  558. package/lib/typescript/icons/navigations/IconArrowLeft.d.ts +3 -3
  559. package/lib/typescript/icons/navigations/IconArrowRight.d.ts +3 -3
  560. package/lib/typescript/icons/navigations/IconArrowUp.d.ts +3 -3
  561. package/lib/typescript/icons/navigations/IconChevronDown.d.ts +3 -3
  562. package/lib/typescript/icons/navigations/IconChevronLeft.d.ts +3 -3
  563. package/lib/typescript/icons/navigations/IconChevronRight.d.ts +3 -3
  564. package/lib/typescript/icons/navigations/IconChevronUp.d.ts +3 -3
  565. package/lib/typescript/icons/navigations/IconClose.d.ts +3 -3
  566. package/lib/typescript/icons/navs/IconNavAdiraku.d.ts +5 -5
  567. package/lib/typescript/icons/navs/IconNavDocument.d.ts +5 -5
  568. package/lib/typescript/icons/navs/IconNavHome.d.ts +3 -3
  569. package/lib/typescript/icons/navs/IconNavPhone.d.ts +3 -3
  570. package/lib/typescript/icons/navs/IconNavProfile.d.ts +3 -3
  571. package/lib/typescript/icons/vehicles/IconBikeCaferacer.d.ts +3 -3
  572. package/lib/typescript/icons/vehicles/IconBikeCooper.d.ts +3 -3
  573. package/lib/typescript/icons/vehicles/IconBikeCruiser.d.ts +3 -3
  574. package/lib/typescript/icons/vehicles/IconBikeDualsport.d.ts +3 -3
  575. package/lib/typescript/icons/vehicles/IconBikeMopad.d.ts +3 -3
  576. package/lib/typescript/icons/vehicles/IconBikeRoadster.d.ts +3 -3
  577. package/lib/typescript/icons/vehicles/IconBikeScooter.d.ts +3 -3
  578. package/lib/typescript/icons/vehicles/IconBikeScrambler.d.ts +3 -3
  579. package/lib/typescript/icons/vehicles/IconBikeSportbike.d.ts +3 -3
  580. package/lib/typescript/icons/vehicles/IconBikeSportstouring.d.ts +3 -3
  581. package/lib/typescript/icons/vehicles/IconBikeTouring.d.ts +3 -3
  582. package/lib/typescript/icons/vehicles/IconBikeTrialbike.d.ts +3 -3
  583. package/lib/typescript/icons/vehicles/IconCarHatchback.d.ts +3 -3
  584. package/lib/typescript/icons/vehicles/IconCarJeep.d.ts +3 -3
  585. package/lib/typescript/icons/vehicles/IconCarMiniTruck.d.ts +3 -3
  586. package/lib/typescript/icons/vehicles/IconCarMinivan.d.ts +3 -3
  587. package/lib/typescript/icons/vehicles/IconCarMuv.d.ts +3 -3
  588. package/lib/typescript/icons/vehicles/IconCarPickup.d.ts +3 -3
  589. package/lib/typescript/icons/vehicles/IconCarSportCar.d.ts +3 -3
  590. package/lib/typescript/icons/vehicles/IconCarSuperCar.d.ts +3 -3
  591. package/lib/typescript/icons/vehicles/IconCarSuv.d.ts +3 -3
  592. package/lib/typescript/icons/vehicles/IconCarVan.d.ts +3 -3
  593. package/lib/typescript/icons/vehicles/IconCarWagon.d.ts +3 -3
  594. package/lib/typescript/icons/vehicles/IconMinus.d.ts +4 -4
  595. package/lib/typescript/index.d.ts +2 -2
  596. package/lib/typescript/themes/colors.d.ts +29 -29
  597. package/lib/typescript/themes/index.d.ts +4 -4
  598. package/lib/typescript/themes/radius.d.ts +11 -11
  599. package/lib/typescript/themes/shadow.d.ts +5 -5
  600. package/lib/typescript/themes/spacing.d.ts +15 -15
  601. package/lib/typescript/types.d.ts +27 -27
  602. package/package.json +133 -133
  603. package/react-native-ui.podspec +36 -36
  604. package/src/components/Appbar/Appbar.component.tsx +74 -74
  605. package/src/components/Appbar/Appbar.style.tsx +53 -53
  606. package/src/components/Appbar/Appbar.type.ts +30 -33
  607. package/src/components/BottomSheet/BottomSheet.component.tsx +217 -238
  608. package/src/components/BottomSheet/BottomSheet.style.tsx +98 -89
  609. package/src/components/BottomSheet/BottomSheet.type.ts +41 -41
  610. package/src/components/CheckBoxInput/CheckBoxInput.component.tsx +278 -273
  611. package/src/components/CheckBoxInput/CheckBoxInput.style.tsx +106 -106
  612. package/src/components/CheckBoxInput/CheckBoxInput.type.ts +76 -75
  613. package/src/components/Checkbox/Checkbox.component.tsx +37 -37
  614. package/src/components/Checkbox/Checkbox.style.tsx +39 -39
  615. package/src/components/Checkbox/Checkbox.type.ts +7 -7
  616. package/src/components/Divider/Divider.component.tsx +23 -23
  617. package/src/components/Divider/Divider.style.tsx +34 -34
  618. package/src/components/Divider/Divider.type.ts +18 -18
  619. package/src/components/RadioButton/RadioButton.component.tsx +31 -31
  620. package/src/components/RadioButton/RadioButton.style.tsx +45 -45
  621. package/src/components/RadioButton/RadioButton.type.ts +7 -7
  622. package/src/components/RadioInput/RadioInput.component.tsx +248 -243
  623. package/src/components/RadioInput/RadioInput.style.tsx +106 -106
  624. package/src/components/RadioInput/RadioInput.type.ts +74 -73
  625. package/src/components/Snackbar/Snackbar.component.tsx +79 -79
  626. package/src/components/Snackbar/Snackbar.type.ts +10 -10
  627. package/src/components/Snackbar/Snakbar.style.tsx +41 -41
  628. package/src/components/StepperCounter/StepperCounter.component.tsx +111 -111
  629. package/src/components/StepperCounter/StepperCounter.style.tsx +96 -96
  630. package/src/components/StepperCounter/StepperCounter.type.ts +18 -18
  631. package/src/components/Tabs/Tabs.component.tsx +95 -94
  632. package/src/components/Tabs/Tabs.style.tsx +34 -34
  633. package/src/components/Tabs/Tabs.type.ts +16 -16
  634. package/src/components/TextArea/TextArea.component.tsx +83 -78
  635. package/src/components/TextArea/TextArea.style.tsx +68 -68
  636. package/src/components/TextArea/TextArea.type.ts +34 -32
  637. package/src/components/TextInput/TextInput.component.tsx +129 -124
  638. package/src/components/TextInput/TextInput.style.tsx +95 -95
  639. package/src/components/TextInput/TextInput.type.ts +40 -38
  640. package/src/components/base/base.component.tsx +19 -19
  641. package/src/components/base/base.style.tsx +27 -27
  642. package/src/components/base/base.type.ts +15 -15
  643. package/src/components/button/button.component.tsx +50 -50
  644. package/src/components/button/button.styles.ts +76 -76
  645. package/src/components/button/button.type.ts +35 -35
  646. package/src/components/coachmark/coachmark.component.tsx +37 -37
  647. package/src/components/coachmark/coachmark.style.tsx +80 -80
  648. package/src/components/coachmark/coachmark.type.ts +32 -32
  649. package/src/components/countdown/countdown.component.tsx +99 -99
  650. package/src/components/countdown/countdown.style.tsx +43 -43
  651. package/src/components/countdown/countdown.type.ts +12 -12
  652. package/src/components/dot/dot.component.tsx +23 -23
  653. package/src/components/dot/dot.style.tsx +33 -33
  654. package/src/components/dot/dot.type.ts +6 -6
  655. package/src/components/index.ts +49 -49
  656. package/src/components/information-box/information-box.component.tsx +55 -55
  657. package/src/components/information-box/information-box.style.tsx +49 -49
  658. package/src/components/information-box/information-box.type.ts +20 -20
  659. package/src/components/label/label.component.tsx +19 -19
  660. package/src/components/label/label.style.tsx +16 -16
  661. package/src/components/label/label.type.ts +14 -14
  662. package/src/components/rounded-tab/rounded-tab.component.tsx +124 -115
  663. package/src/components/rounded-tab/rounded-tab.style.tsx +66 -66
  664. package/src/components/rounded-tab/rounded-tab.type.ts +18 -16
  665. package/src/components/slider-indicator/slider-indicator.component.tsx +81 -81
  666. package/src/components/slider-indicator/slider-indicator.style.tsx +31 -31
  667. package/src/components/slider-indicator/slider-indicator.type.ts +23 -23
  668. package/src/components/switch/switch.component.tsx +53 -53
  669. package/src/components/switch/switch.style.tsx +52 -52
  670. package/src/components/switch/switch.type.ts +7 -7
  671. package/src/components/textlink/textlink.component.tsx +50 -44
  672. package/src/components/textlink/textlink.style.tsx +36 -36
  673. package/src/components/textlink/textlink.type.ts +26 -26
  674. package/src/components/typography/typography.component.tsx +27 -27
  675. package/src/components/typography/typography.style.tsx +237 -237
  676. package/src/components/typography/typography.type.ts +56 -56
  677. package/src/icons/actions/IconAddMinus.tsx +32 -32
  678. package/src/icons/actions/IconAddPlus.tsx +32 -32
  679. package/src/icons/actions/IconAddRemove.tsx +27 -27
  680. package/src/icons/actions/IconAttach.tsx +32 -32
  681. package/src/icons/actions/IconBeliMobil.tsx +63 -63
  682. package/src/icons/actions/IconCamera.tsx +57 -57
  683. package/src/icons/actions/IconChat.tsx +57 -57
  684. package/src/icons/actions/IconCopy.tsx +71 -71
  685. package/src/icons/actions/IconCustomerService.tsx +37 -37
  686. package/src/icons/actions/IconDot.tsx +63 -63
  687. package/src/icons/actions/IconDownload.tsx +32 -32
  688. package/src/icons/actions/IconEdit.tsx +57 -57
  689. package/src/icons/actions/IconEmail.tsx +55 -55
  690. package/src/icons/actions/IconFilter.tsx +81 -81
  691. package/src/icons/actions/IconGallery.tsx +67 -67
  692. package/src/icons/actions/IconHamburger.tsx +32 -32
  693. package/src/icons/actions/IconHeartEmpty.tsx +59 -59
  694. package/src/icons/actions/IconHeartFilled.tsx +25 -25
  695. package/src/icons/actions/IconHeartOutline.tsx +32 -32
  696. package/src/icons/actions/IconHelp.tsx +59 -59
  697. package/src/icons/actions/IconInfo.tsx +65 -65
  698. package/src/icons/actions/IconJualMobil.tsx +63 -63
  699. package/src/icons/actions/IconLike.tsx +55 -55
  700. package/src/icons/actions/IconMinus.tsx +59 -59
  701. package/src/icons/actions/IconNotification.tsx +71 -71
  702. package/src/icons/actions/IconOther.tsx +55 -55
  703. package/src/icons/actions/IconPerson.tsx +32 -32
  704. package/src/icons/actions/IconPicture.tsx +36 -36
  705. package/src/icons/actions/IconPictureAdd.tsx +44 -44
  706. package/src/icons/actions/IconReload.tsx +30 -30
  707. package/src/icons/actions/IconRoundAdd.tsx +63 -63
  708. package/src/icons/actions/IconRoundClose.tsx +63 -63
  709. package/src/icons/actions/IconSearch.tsx +32 -32
  710. package/src/icons/actions/IconSeeHide.tsx +31 -31
  711. package/src/icons/actions/IconSeeShow.tsx +30 -30
  712. package/src/icons/actions/IconSetting.tsx +59 -59
  713. package/src/icons/actions/IconShare.tsx +57 -57
  714. package/src/icons/actions/IconShoppingBag.tsx +63 -63
  715. package/src/icons/actions/IconShoppingCart.tsx +59 -59
  716. package/src/icons/actions/IconSmartphone.tsx +55 -55
  717. package/src/icons/actions/IconSort.tsx +32 -32
  718. package/src/icons/actions/IconSorting.tsx +38 -38
  719. package/src/icons/actions/IconStarFilled.tsx +32 -32
  720. package/src/icons/actions/IconStarOutline.tsx +32 -32
  721. package/src/icons/actions/IconTrash.tsx +69 -69
  722. package/src/icons/actions/IconUpload.tsx +32 -32
  723. package/src/icons/actions/IconUser.tsx +55 -55
  724. package/src/icons/actions/IconVideo.tsx +59 -59
  725. package/src/icons/index.ts +120 -120
  726. package/src/icons/misc/IconCalendar.tsx +32 -32
  727. package/src/icons/misc/IconCash.tsx +32 -32
  728. package/src/icons/misc/IconCategory.tsx +32 -32
  729. package/src/icons/misc/IconContract.tsx +36 -36
  730. package/src/icons/misc/IconCreditCard.tsx +32 -32
  731. package/src/icons/misc/IconFlash.tsx +30 -30
  732. package/src/icons/misc/IconGroup.tsx +32 -32
  733. package/src/icons/misc/IconHistory.tsx +42 -42
  734. package/src/icons/misc/IconLocation.tsx +32 -32
  735. package/src/icons/misc/IconLock.tsx +33 -33
  736. package/src/icons/misc/IconMoney.tsx +37 -37
  737. package/src/icons/misc/IconMyLocation.tsx +32 -32
  738. package/src/icons/misc/IconOfficial.tsx +34 -34
  739. package/src/icons/misc/IconPromo.tsx +32 -32
  740. package/src/icons/misc/IconProtection.tsx +39 -39
  741. package/src/icons/misc/IconStore.tsx +40 -40
  742. package/src/icons/misc/IconTick.tsx +32 -32
  743. package/src/icons/misc/IconTicket.tsx +32 -32
  744. package/src/icons/misc/IconTime.tsx +38 -38
  745. package/src/icons/misc/IconVoucher.tsx +38 -38
  746. package/src/icons/navigations/IconArrowDiagonal.tsx +39 -39
  747. package/src/icons/navigations/IconArrowDown.tsx +32 -32
  748. package/src/icons/navigations/IconArrowLeft.tsx +32 -32
  749. package/src/icons/navigations/IconArrowRight.tsx +32 -32
  750. package/src/icons/navigations/IconArrowUp.tsx +32 -32
  751. package/src/icons/navigations/IconChevronDown.tsx +27 -27
  752. package/src/icons/navigations/IconChevronLeft.tsx +27 -27
  753. package/src/icons/navigations/IconChevronRight.tsx +27 -27
  754. package/src/icons/navigations/IconChevronUp.tsx +27 -27
  755. package/src/icons/navigations/IconClose.tsx +38 -38
  756. package/src/icons/navs/IconNavAdiraku.tsx +44 -44
  757. package/src/icons/navs/IconNavDocument.tsx +41 -41
  758. package/src/icons/navs/IconNavHome.tsx +31 -31
  759. package/src/icons/navs/IconNavPhone.tsx +32 -32
  760. package/src/icons/navs/IconNavProfile.tsx +32 -32
  761. package/src/icons/vehicles/IconBikeCaferacer.tsx +34 -34
  762. package/src/icons/vehicles/IconBikeCooper.tsx +38 -38
  763. package/src/icons/vehicles/IconBikeCruiser.tsx +34 -34
  764. package/src/icons/vehicles/IconBikeDualsport.tsx +34 -34
  765. package/src/icons/vehicles/IconBikeMopad.tsx +42 -42
  766. package/src/icons/vehicles/IconBikeRoadster.tsx +38 -38
  767. package/src/icons/vehicles/IconBikeScooter.tsx +34 -34
  768. package/src/icons/vehicles/IconBikeScrambler.tsx +34 -34
  769. package/src/icons/vehicles/IconBikeSportbike.tsx +34 -34
  770. package/src/icons/vehicles/IconBikeSportstouring.tsx +34 -34
  771. package/src/icons/vehicles/IconBikeTouring.tsx +30 -30
  772. package/src/icons/vehicles/IconBikeTrialbike.tsx +34 -34
  773. package/src/icons/vehicles/IconCarHatchback.tsx +32 -32
  774. package/src/icons/vehicles/IconCarJeep.tsx +32 -32
  775. package/src/icons/vehicles/IconCarMiniTruck.tsx +32 -32
  776. package/src/icons/vehicles/IconCarMinivan.tsx +32 -32
  777. package/src/icons/vehicles/IconCarMuv.tsx +32 -32
  778. package/src/icons/vehicles/IconCarPickup.tsx +32 -32
  779. package/src/icons/vehicles/IconCarSportCar.tsx +32 -32
  780. package/src/icons/vehicles/IconCarSuperCar.tsx +32 -32
  781. package/src/icons/vehicles/IconCarSuv.tsx +32 -32
  782. package/src/icons/vehicles/IconCarVan.tsx +32 -32
  783. package/src/icons/vehicles/IconCarWagon.tsx +32 -32
  784. package/src/icons/vehicles/IconMinus.tsx +59 -59
  785. package/src/index.tsx +2 -2
  786. package/src/themes/colors.ts +152 -152
  787. package/src/themes/index.ts +4 -4
  788. package/src/themes/radius.ts +12 -12
  789. package/src/themes/shadow.tsx +48 -48
  790. package/src/themes/spacing.ts +16 -16
  791. package/src/types.ts +39 -39
@@ -1,41 +1,41 @@
1
- import { ReactNode } from 'react';
2
-
3
- import type { TextProps, TouchableHighlightProps } from 'react-native';
4
- import type { ModalProps } from 'react-native-modal';
5
-
6
- export interface BottomSheetProps
7
- extends Omit<Partial<ModalProps>, 'isVisible'> {
8
- onDismiss?: () => void;
9
-
10
- sheetHeader?: ReactNode;
11
-
12
- title?: string;
13
-
14
- titleProps?: TextProps;
15
-
16
- subtitle?: string;
17
-
18
- subtitleProps?: TextProps;
19
-
20
- isOverlayDismissDisabled?: boolean;
21
-
22
- dismissIcon?: ReactNode;
23
-
24
- dismissIconProps?: TouchableHighlightProps;
25
-
26
- action?: ReactNode;
27
-
28
- largeIcon?: ReactNode;
29
-
30
- largeIconContainerHeight?: number;
31
-
32
- /**
33
- * Decimal number between 0 - 1
34
- */
35
- maxSheetHeight?: number;
36
- }
37
-
38
- export type BottomSheetRefHandle = {
39
- open: () => void;
40
- close: () => void;
41
- };
1
+ import { ReactNode } from 'react';
2
+
3
+ import type { TextProps, TouchableHighlightProps } from 'react-native';
4
+ import type { ModalProps } from 'react-native-modal';
5
+
6
+ export interface BottomSheetProps
7
+ extends Omit<Partial<ModalProps>, 'isVisible'> {
8
+ onDismiss?: () => void;
9
+
10
+ sheetHeader?: ReactNode;
11
+
12
+ title?: string;
13
+
14
+ titleProps?: TextProps;
15
+
16
+ subtitle?: string;
17
+
18
+ subtitleProps?: TextProps;
19
+
20
+ isOverlayDismissDisabled?: boolean;
21
+
22
+ dismissIcon?: ReactNode;
23
+
24
+ dismissIconProps?: TouchableHighlightProps;
25
+
26
+ action?: ReactNode;
27
+
28
+ largeIcon?: ReactNode;
29
+
30
+ largeIconContainerHeight?: number;
31
+
32
+ /**
33
+ * Decimal number between 0 - 1
34
+ */
35
+ maxSheetHeight?: number;
36
+ }
37
+
38
+ export type BottomSheetRefHandle = {
39
+ open: () => void;
40
+ close: () => void;
41
+ };
@@ -1,273 +1,278 @@
1
- import * as React from 'react';
2
- import {
3
- Animated,
4
- FlatList,
5
- View,
6
- TouchableHighlight,
7
- TouchableWithoutFeedback,
8
- } from 'react-native';
9
-
10
- import { getStyle } from './CheckBoxInput.style';
11
- import { Typography } from '../typography/typography.component';
12
- import { BottomSheet } from '../BottomSheet/BottomSheet.component';
13
- import { Button } from '../button/button.component';
14
- import { Palettes } from '../../themes';
15
- import { IconChevronDown } from '../../icons';
16
- import { Divider } from '../Divider/Divider.component';
17
-
18
- import type {
19
- CheckboxInputProps,
20
- CheckboxItemProps,
21
- CheckboxItemPropsComponent,
22
- } from './CheckBoxInput.type';
23
- import { Checkbox } from '../Checkbox/Checkbox.component';
24
-
25
- import type { BottomSheetHandler } from '../BottomSheet/BottomSheet.component';
26
- import type { LayoutChangeEvent } from 'react-native';
27
-
28
- const CheckBoxInput: React.FunctionComponent<CheckboxInputProps> = (props) => {
29
- const {
30
- value,
31
- label,
32
- errorMessage,
33
- helperMessage,
34
- isError,
35
- disabled,
36
- editable = true,
37
- inputIcon = (
38
- <IconChevronDown width={14} height={14} fill={Palettes.black[900]} />
39
- ),
40
- data,
41
- onSaveInput = () => {},
42
- saveInputLabel,
43
- saveInputProps = {},
44
- bottomSheetOpt,
45
- selectionLimit,
46
- onInputDismiss = () => {},
47
- customCheckboxInput,
48
- customItemSeparator = <Divider />,
49
- testID = '',
50
- ...rest
51
- } = props;
52
-
53
- const [labelWidth, setLabelWidth] = React.useState(0);
54
- const [selectedValue, setSelectedValue] = React.useState<
55
- CheckboxItemProps[] | undefined
56
- >(value);
57
-
58
- const computedStyle = getStyle(props);
59
-
60
- const bottomSheetref = React.useRef<BottomSheetHandler>(null);
61
-
62
- const animation = React.useRef(new Animated.Value(0));
63
- const scale = animation.current.interpolate({
64
- inputRange: [0, 1],
65
- outputRange: [1, 0.8],
66
- });
67
- const translateY = animation.current.interpolate({
68
- inputRange: [0, 1],
69
- outputRange: [0, -30],
70
- });
71
- const translateX = animation.current.interpolate({
72
- inputRange: [0, 1],
73
- outputRange: [0, labelWidth * -0.1],
74
- });
75
-
76
- const animate = (toValue: 0 | 1) =>
77
- Animated.spring(animation.current, {
78
- useNativeDriver: true,
79
- toValue,
80
- }).start();
81
-
82
- const selectedObject = React.useCallback(() => {
83
- const labels = value?.map((check) => {
84
- const checkbox = data?.find((obj) => {
85
- return obj.value === check.value;
86
- });
87
-
88
- return checkbox ? checkbox.label : null;
89
- });
90
-
91
- return labels?.join(', ');
92
- }, [data, value]);
93
-
94
- React.useEffect(() => {
95
- if (selectedObject()) {
96
- animate(1);
97
- } else {
98
- animate(0);
99
- }
100
- }, [selectedObject]);
101
-
102
- React.useEffect(() => {
103
- setSelectedValue(value);
104
- }, [value]);
105
-
106
- const getLabelWidth = (event: LayoutChangeEvent) => {
107
- const { width } = event.nativeEvent.layout;
108
- setLabelWidth(width + 24);
109
- };
110
-
111
- const onCheckboxItemPress = (checkboxValue: CheckboxItemProps) => {
112
- const index = selectedValue?.some(
113
- (selected) => selected.value === checkboxValue.value
114
- );
115
- if (index) {
116
- const arr = selectedValue?.filter(
117
- (item) => item.value !== checkboxValue.value
118
- );
119
- setSelectedValue(arr);
120
- } else {
121
- if (
122
- selectionLimit &&
123
- selectionLimit > 0 &&
124
- selectedValue?.length === selectionLimit
125
- ) {
126
- let temp = selectedValue;
127
- temp.splice(0, 1);
128
- setSelectedValue([...(temp || []), checkboxValue]);
129
- } else {
130
- setSelectedValue([...(selectedValue || []), checkboxValue]);
131
- }
132
- }
133
- };
134
-
135
- const handleOnSaveInput = () => {
136
- onSaveInput(selectedValue);
137
- onInputDismiss();
138
- bottomSheetref.current?.close();
139
- };
140
-
141
- const handleOnBottomSheetDismiss = () => {
142
- setSelectedValue(value);
143
- onInputDismiss();
144
- };
145
-
146
- const openBottomSheet = () => {
147
- if (!disabled && editable) {
148
- bottomSheetref.current?.open();
149
- }
150
- };
151
-
152
- return (
153
- <>
154
- <TouchableWithoutFeedback
155
- onPress={openBottomSheet}
156
- testID={testID}
157
- {...rest}
158
- >
159
- <View style={computedStyle.fieldWrapper}>
160
- <View style={computedStyle.fieldContainer}>
161
- {!!label && (
162
- <Animated.View
163
- style={[
164
- computedStyle.labelContainer,
165
- {
166
- transform: [{ scale }, { translateY }, { translateX }],
167
- },
168
- ]}
169
- onLayout={getLabelWidth}
170
- pointerEvents="none"
171
- >
172
- <Typography variant="body2" style={computedStyle.label}>
173
- {label}
174
- </Typography>
175
- </Animated.View>
176
- )}
177
- <View style={computedStyle.inputWrapper}>
178
- <Typography
179
- variant="body2"
180
- style={[computedStyle.textField]}
181
- numberOfLines={1}
182
- >
183
- {selectedObject()}
184
- </Typography>
185
- {inputIcon}
186
- </View>
187
- </View>
188
- {errorMessage || helperMessage ? (
189
- <Typography variant="caption" style={computedStyle.messageHelper}>
190
- {errorMessage || ((!isError && helperMessage) as string)}
191
- </Typography>
192
- ) : null}
193
- </View>
194
- </TouchableWithoutFeedback>
195
- <BottomSheet
196
- ref={bottomSheetref}
197
- onDismiss={handleOnBottomSheetDismiss}
198
- {...bottomSheetOpt}
199
- >
200
- <FlatList
201
- data={data}
202
- renderItem={(item) => {
203
- if (customCheckboxInput) {
204
- return customCheckboxInput({
205
- data: item,
206
- selectedValue: selectedValue,
207
- onItemPress: onCheckboxItemPress,
208
- });
209
- }
210
-
211
- return (
212
- <CheckboxItem
213
- data={item}
214
- selectedValue={selectedValue}
215
- onItemPress={onCheckboxItemPress}
216
- testID={`${testID}_checkbox_item_${item.index}`}
217
- />
218
- );
219
- }}
220
- // eslint-disable-next-line react-native/no-inline-styles
221
- contentContainerStyle={{ padding: 16 }}
222
- ItemSeparatorComponent={() => customItemSeparator}
223
- />
224
- {/* eslint-disable-next-line react-native/no-inline-styles */}
225
- <View style={{ padding: 16, backgroundColor: 'transparent' }}>
226
- <Button
227
- variant="primary"
228
- label={saveInputLabel}
229
- onPress={handleOnSaveInput}
230
- {...saveInputProps}
231
- />
232
- </View>
233
- </BottomSheet>
234
- </>
235
- );
236
- };
237
-
238
- function CheckboxItem({
239
- data,
240
- selectedValue,
241
- onItemPress = () => {},
242
- testID,
243
- ...rest
244
- }: CheckboxItemPropsComponent) {
245
- const { item } = data;
246
- const { label, value, disabled } = item;
247
- const computedStyle = getStyle({} as CheckboxInputProps);
248
-
249
- return (
250
- <TouchableHighlight
251
- onPress={() => onItemPress(item)}
252
- underlayColor={Palettes.whiteDark[100]}
253
- disabled={disabled}
254
- {...rest}
255
- {...item}
256
- >
257
- <View style={[computedStyle.checkboxItemWrapper]}>
258
- <Typography variant="body2" numberOfLines={2}>
259
- {label}
260
- </Typography>
261
- <Checkbox
262
- selected={
263
- !!selectedValue?.some((selected) => selected.value === value)
264
- }
265
- disabled={disabled}
266
- testID={testID}
267
- />
268
- </View>
269
- </TouchableHighlight>
270
- );
271
- }
272
-
273
- export { CheckBoxInput };
1
+ import * as React from 'react';
2
+ import {
3
+ Animated,
4
+ FlatList,
5
+ View,
6
+ TouchableHighlight,
7
+ TouchableWithoutFeedback,
8
+ } from 'react-native';
9
+
10
+ import { getStyle } from './CheckBoxInput.style';
11
+ import { Typography } from '../typography/typography.component';
12
+ import { BottomSheet } from '../BottomSheet/BottomSheet.component';
13
+ import { Button } from '../button/button.component';
14
+ import { Palettes } from '../../themes';
15
+ import { IconChevronDown } from '../../icons';
16
+ import { Divider } from '../Divider/Divider.component';
17
+
18
+ import type {
19
+ CheckboxInputProps,
20
+ CheckboxItemProps,
21
+ CheckboxItemPropsComponent,
22
+ } from './CheckBoxInput.type';
23
+ import { Checkbox } from '../Checkbox/Checkbox.component';
24
+
25
+ import type { BottomSheetHandler } from '../BottomSheet/BottomSheet.component';
26
+ import type { LayoutChangeEvent } from 'react-native';
27
+
28
+ const CheckBoxInput: React.FunctionComponent<CheckboxInputProps> = (props) => {
29
+ const {
30
+ value,
31
+ label,
32
+ errorMessage,
33
+ helperMessage,
34
+ helperMessageProps,
35
+ isError,
36
+ disabled,
37
+ editable = true,
38
+ inputIcon = (
39
+ <IconChevronDown width={14} height={14} fill={Palettes.black[900]} />
40
+ ),
41
+ data,
42
+ onSaveInput = () => {},
43
+ saveInputLabel,
44
+ saveInputProps = {},
45
+ bottomSheetOpt,
46
+ selectionLimit,
47
+ onInputDismiss = () => {},
48
+ customCheckboxInput,
49
+ customItemSeparator = <Divider />,
50
+ testID = '',
51
+ ...rest
52
+ } = props;
53
+
54
+ const [labelWidth, setLabelWidth] = React.useState(0);
55
+ const [selectedValue, setSelectedValue] = React.useState<
56
+ CheckboxItemProps[] | undefined
57
+ >(value);
58
+
59
+ const computedStyle = getStyle(props);
60
+
61
+ const bottomSheetref = React.useRef<BottomSheetHandler>(null);
62
+
63
+ const animation = React.useRef(new Animated.Value(0));
64
+ const scale = animation.current.interpolate({
65
+ inputRange: [0, 1],
66
+ outputRange: [1, 0.8],
67
+ });
68
+ const translateY = animation.current.interpolate({
69
+ inputRange: [0, 1],
70
+ outputRange: [0, -30],
71
+ });
72
+ const translateX = animation.current.interpolate({
73
+ inputRange: [0, 1],
74
+ outputRange: [0, labelWidth * -0.1],
75
+ });
76
+
77
+ const animate = (toValue: 0 | 1) =>
78
+ Animated.spring(animation.current, {
79
+ useNativeDriver: true,
80
+ toValue,
81
+ }).start();
82
+
83
+ const selectedObject = React.useCallback(() => {
84
+ const labels = value?.map((check) => {
85
+ const checkbox = data?.find((obj) => {
86
+ return obj.value === check.value;
87
+ });
88
+
89
+ return checkbox ? checkbox.label : null;
90
+ });
91
+
92
+ return labels?.join(', ');
93
+ }, [data, value]);
94
+
95
+ React.useEffect(() => {
96
+ if (selectedObject()) {
97
+ animate(1);
98
+ } else {
99
+ animate(0);
100
+ }
101
+ }, [selectedObject]);
102
+
103
+ React.useEffect(() => {
104
+ setSelectedValue(value);
105
+ }, [value]);
106
+
107
+ const getLabelWidth = (event: LayoutChangeEvent) => {
108
+ const { width } = event.nativeEvent.layout;
109
+ setLabelWidth(width + 24);
110
+ };
111
+
112
+ const onCheckboxItemPress = (checkboxValue: CheckboxItemProps) => {
113
+ const index = selectedValue?.some(
114
+ (selected) => selected.value === checkboxValue.value
115
+ );
116
+ if (index) {
117
+ const arr = selectedValue?.filter(
118
+ (item) => item.value !== checkboxValue.value
119
+ );
120
+ setSelectedValue(arr);
121
+ } else {
122
+ if (
123
+ selectionLimit &&
124
+ selectionLimit > 0 &&
125
+ selectedValue?.length === selectionLimit
126
+ ) {
127
+ let temp = selectedValue;
128
+ temp.splice(0, 1);
129
+ setSelectedValue([...(temp || []), checkboxValue]);
130
+ } else {
131
+ setSelectedValue([...(selectedValue || []), checkboxValue]);
132
+ }
133
+ }
134
+ };
135
+
136
+ const handleOnSaveInput = () => {
137
+ onSaveInput(selectedValue);
138
+ onInputDismiss();
139
+ bottomSheetref.current?.close();
140
+ };
141
+
142
+ const handleOnBottomSheetDismiss = () => {
143
+ setSelectedValue(value);
144
+ onInputDismiss();
145
+ };
146
+
147
+ const openBottomSheet = () => {
148
+ if (!disabled && editable) {
149
+ bottomSheetref.current?.open();
150
+ }
151
+ };
152
+
153
+ return (
154
+ <>
155
+ <TouchableWithoutFeedback
156
+ onPress={openBottomSheet}
157
+ testID={testID}
158
+ {...rest}
159
+ >
160
+ <View style={computedStyle.fieldWrapper}>
161
+ <View style={computedStyle.fieldContainer}>
162
+ {!!label && (
163
+ <Animated.View
164
+ style={[
165
+ computedStyle.labelContainer,
166
+ {
167
+ transform: [{ scale }, { translateY }, { translateX }],
168
+ },
169
+ ]}
170
+ onLayout={getLabelWidth}
171
+ pointerEvents="none"
172
+ >
173
+ <Typography variant="body2" style={computedStyle.label}>
174
+ {label}
175
+ </Typography>
176
+ </Animated.View>
177
+ )}
178
+ <View style={computedStyle.inputWrapper}>
179
+ <Typography
180
+ variant="body2"
181
+ style={[computedStyle.textField]}
182
+ numberOfLines={1}
183
+ >
184
+ {selectedObject()}
185
+ </Typography>
186
+ {inputIcon}
187
+ </View>
188
+ </View>
189
+ {errorMessage || helperMessage ? (
190
+ <Typography
191
+ variant="caption"
192
+ style={computedStyle.messageHelper}
193
+ {...helperMessageProps}
194
+ >
195
+ {errorMessage || ((!isError && helperMessage) as string)}
196
+ </Typography>
197
+ ) : null}
198
+ </View>
199
+ </TouchableWithoutFeedback>
200
+ <BottomSheet
201
+ ref={bottomSheetref}
202
+ onDismiss={handleOnBottomSheetDismiss}
203
+ {...bottomSheetOpt}
204
+ >
205
+ <FlatList
206
+ data={data}
207
+ renderItem={(item) => {
208
+ if (customCheckboxInput) {
209
+ return customCheckboxInput({
210
+ data: item,
211
+ selectedValue: selectedValue,
212
+ onItemPress: onCheckboxItemPress,
213
+ });
214
+ }
215
+
216
+ return (
217
+ <CheckboxItem
218
+ data={item}
219
+ selectedValue={selectedValue}
220
+ onItemPress={onCheckboxItemPress}
221
+ testID={`${testID}_checkbox_item_${item.index}`}
222
+ />
223
+ );
224
+ }}
225
+ // eslint-disable-next-line react-native/no-inline-styles
226
+ contentContainerStyle={{ padding: 16 }}
227
+ ItemSeparatorComponent={() => customItemSeparator}
228
+ />
229
+ {/* eslint-disable-next-line react-native/no-inline-styles */}
230
+ <View style={{ padding: 16, backgroundColor: 'transparent' }}>
231
+ <Button
232
+ variant="primary"
233
+ label={saveInputLabel}
234
+ onPress={handleOnSaveInput}
235
+ {...saveInputProps}
236
+ />
237
+ </View>
238
+ </BottomSheet>
239
+ </>
240
+ );
241
+ };
242
+
243
+ function CheckboxItem({
244
+ data,
245
+ selectedValue,
246
+ onItemPress = () => {},
247
+ testID,
248
+ ...rest
249
+ }: CheckboxItemPropsComponent) {
250
+ const { item } = data;
251
+ const { label, value, disabled } = item;
252
+ const computedStyle = getStyle({} as CheckboxInputProps);
253
+
254
+ return (
255
+ <TouchableHighlight
256
+ onPress={() => onItemPress(item)}
257
+ underlayColor={Palettes.whiteDark[100]}
258
+ disabled={disabled}
259
+ {...rest}
260
+ {...item}
261
+ >
262
+ <View style={[computedStyle.checkboxItemWrapper]}>
263
+ <Typography variant="body2" numberOfLines={2}>
264
+ {label}
265
+ </Typography>
266
+ <Checkbox
267
+ selected={
268
+ !!selectedValue?.some((selected) => selected.value === value)
269
+ }
270
+ disabled={disabled}
271
+ testID={testID}
272
+ />
273
+ </View>
274
+ </TouchableHighlight>
275
+ );
276
+ }
277
+
278
+ export { CheckBoxInput };