@tecsinapse/react-native-kit 1.20.0 → 1.22.0-beta.13

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 (415) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/components/atoms/Avatar/Avatar.d.ts +2 -1
  3. package/dist/components/atoms/Avatar/Avatar.js +34 -20
  4. package/dist/components/atoms/Avatar/Avatar.js.map +1 -1
  5. package/dist/components/atoms/Avatar/index.d.ts +1 -1
  6. package/dist/components/atoms/Badge/Badge.js +58 -29
  7. package/dist/components/atoms/Badge/Badge.js.map +1 -1
  8. package/dist/components/atoms/Badge/index.d.ts +2 -1
  9. package/dist/components/atoms/BottomNavigator/BottomNavigator.js +71 -39
  10. package/dist/components/atoms/BottomNavigator/BottomNavigator.js.map +1 -1
  11. package/dist/components/atoms/BottomNavigator/Item.js +68 -31
  12. package/dist/components/atoms/BottomNavigator/Item.js.map +1 -1
  13. package/dist/components/atoms/BottomNavigator/index.d.ts +3 -2
  14. package/dist/components/atoms/BottomNavigator/styled.js +25 -42
  15. package/dist/components/atoms/BottomNavigator/styled.js.map +1 -1
  16. package/dist/components/atoms/Button/Button.js +55 -23
  17. package/dist/components/atoms/Button/Button.js.map +1 -1
  18. package/dist/components/atoms/Button/States/Error.d.ts +1 -1
  19. package/dist/components/atoms/Button/States/Error.js +34 -22
  20. package/dist/components/atoms/Button/States/Error.js.map +1 -1
  21. package/dist/components/atoms/Button/States/Loading.d.ts +1 -1
  22. package/dist/components/atoms/Button/States/Loading.js +34 -22
  23. package/dist/components/atoms/Button/States/Loading.js.map +1 -1
  24. package/dist/components/atoms/Button/States/Success.d.ts +1 -1
  25. package/dist/components/atoms/Button/States/Success.js +34 -22
  26. package/dist/components/atoms/Button/States/Success.js.map +1 -1
  27. package/dist/components/atoms/Button/index.d.ts +2 -1
  28. package/dist/components/atoms/GroupButton/GroupButtonOption.js +34 -21
  29. package/dist/components/atoms/GroupButton/GroupButtonOption.js.map +1 -1
  30. package/dist/components/atoms/Header/Header.js +75 -32
  31. package/dist/components/atoms/Header/Header.js.map +1 -1
  32. package/dist/components/atoms/Header/index.d.ts +2 -1
  33. package/dist/components/atoms/Header/styled.js +14 -15
  34. package/dist/components/atoms/Header/styled.js.map +1 -1
  35. package/dist/components/atoms/Input/Input.js +133 -89
  36. package/dist/components/atoms/Input/Input.js.map +1 -1
  37. package/dist/components/atoms/Input/index.d.ts +2 -1
  38. package/dist/components/atoms/Input/styled.js +12 -14
  39. package/dist/components/atoms/Input/styled.js.map +1 -1
  40. package/dist/components/atoms/InputMask/InputMask.js +135 -87
  41. package/dist/components/atoms/InputMask/InputMask.js.map +1 -1
  42. package/dist/components/atoms/InputMask/index.d.ts +2 -1
  43. package/dist/components/atoms/InputMask/styled.js +15 -17
  44. package/dist/components/atoms/InputMask/styled.js.map +1 -1
  45. package/dist/components/atoms/Modal/ModalGroupManager.js +47 -29
  46. package/dist/components/atoms/Modal/ModalGroupManager.js.map +1 -1
  47. package/dist/components/atoms/Modal/ModalLifecycleHandler.js +94 -87
  48. package/dist/components/atoms/Modal/ModalLifecycleHandler.js.map +1 -1
  49. package/dist/components/atoms/Modal/ui/BaseModalView.js +106 -105
  50. package/dist/components/atoms/Modal/ui/BaseModalView.js.map +1 -1
  51. package/dist/components/atoms/Modal/ui/styled.js +19 -21
  52. package/dist/components/atoms/Modal/ui/styled.js.map +1 -1
  53. package/dist/components/atoms/Modal/useLazyModalManager.js +22 -23
  54. package/dist/components/atoms/Modal/useLazyModalManager.js.map +1 -1
  55. package/dist/components/atoms/Modal/useModalManager.js +14 -19
  56. package/dist/components/atoms/Modal/useModalManager.js.map +1 -1
  57. package/dist/components/atoms/Modal/useModalRemoteControl.js +10 -12
  58. package/dist/components/atoms/Modal/useModalRemoteControl.js.map +1 -1
  59. package/dist/components/atoms/Skeleton/Pulse.js +20 -22
  60. package/dist/components/atoms/Skeleton/Pulse.js.map +1 -1
  61. package/dist/components/atoms/Skeleton/Skeleton.js +77 -55
  62. package/dist/components/atoms/Skeleton/Skeleton.js.map +1 -1
  63. package/dist/components/atoms/Skeleton/Wave.js +36 -40
  64. package/dist/components/atoms/Skeleton/Wave.js.map +1 -1
  65. package/dist/components/atoms/Skeleton/animation.js +29 -29
  66. package/dist/components/atoms/Skeleton/animation.js.map +1 -1
  67. package/dist/components/atoms/Skeleton/index.d.ts +2 -1
  68. package/dist/components/atoms/Skeleton/styled.js +12 -18
  69. package/dist/components/atoms/Skeleton/styled.js.map +1 -1
  70. package/dist/components/atoms/SnappingSlider/SnappingSlider.js +76 -36
  71. package/dist/components/atoms/SnappingSlider/SnappingSlider.js.map +1 -1
  72. package/dist/components/atoms/SnappingSlider/index.d.ts +2 -1
  73. package/dist/components/atoms/Tag/Tag.js +45 -25
  74. package/dist/components/atoms/Tag/Tag.js.map +1 -1
  75. package/dist/components/atoms/Tag/index.d.ts +2 -1
  76. package/dist/components/atoms/Text/Text.js +38 -15
  77. package/dist/components/atoms/Text/Text.js.map +1 -1
  78. package/dist/components/atoms/Text/index.d.ts +2 -1
  79. package/dist/components/atoms/Text/styled.js +16 -19
  80. package/dist/components/atoms/Text/styled.js.map +1 -1
  81. package/dist/components/atoms/TextArea/TextArea.js +122 -74
  82. package/dist/components/atoms/TextArea/TextArea.js.map +1 -1
  83. package/dist/components/atoms/TextArea/index.d.ts +2 -1
  84. package/dist/components/atoms/TextArea/styled.js +9 -9
  85. package/dist/components/atoms/TextArea/styled.js.map +1 -1
  86. package/dist/components/molecules/Calendar/Calendar.js +54 -25
  87. package/dist/components/molecules/Calendar/Calendar.js.map +1 -1
  88. package/dist/components/molecules/DatePicker/DatePicker.js +67 -42
  89. package/dist/components/molecules/DatePicker/DatePicker.js.map +1 -1
  90. package/dist/components/molecules/DatePicker/index.d.ts +2 -1
  91. package/dist/components/molecules/DatePicker/styled.js +10 -11
  92. package/dist/components/molecules/DatePicker/styled.js.map +1 -1
  93. package/dist/components/molecules/DateTimePicker/DateTimePicker.js +61 -34
  94. package/dist/components/molecules/DateTimePicker/DateTimePicker.js.map +1 -1
  95. package/dist/components/molecules/DateTimePicker/index.d.ts +2 -1
  96. package/dist/components/molecules/DateTimeSelector/DateTimeSelector.js +54 -25
  97. package/dist/components/molecules/DateTimeSelector/DateTimeSelector.js.map +1 -1
  98. package/dist/components/molecules/Grid/Grid.js +79 -42
  99. package/dist/components/molecules/Grid/Grid.js.map +1 -1
  100. package/dist/components/molecules/Grid/Item/Item.js +90 -56
  101. package/dist/components/molecules/Grid/Item/Item.js.map +1 -1
  102. package/dist/components/molecules/IconTextButton/IconTextButton.js +70 -42
  103. package/dist/components/molecules/IconTextButton/IconTextButton.js.map +1 -1
  104. package/dist/components/molecules/IconTextButton/TextComponent.js +38 -26
  105. package/dist/components/molecules/IconTextButton/TextComponent.js.map +1 -1
  106. package/dist/components/molecules/IconTextButton/index.d.ts +2 -1
  107. package/dist/components/molecules/IconTextButton/styled.js +22 -31
  108. package/dist/components/molecules/IconTextButton/styled.js.map +1 -1
  109. package/dist/components/molecules/InputPassword/InputPassword.js +60 -37
  110. package/dist/components/molecules/InputPassword/InputPassword.js.map +1 -1
  111. package/dist/components/molecules/InputPassword/index.d.ts +2 -1
  112. package/dist/components/molecules/LabeledSwitch/LabelComponent.js +58 -29
  113. package/dist/components/molecules/LabeledSwitch/LabelComponent.js.map +1 -1
  114. package/dist/components/molecules/LabeledSwitch/LabeledSwitch.js +70 -41
  115. package/dist/components/molecules/LabeledSwitch/LabeledSwitch.js.map +1 -1
  116. package/dist/components/molecules/LabeledSwitch/index.d.ts +2 -1
  117. package/dist/components/molecules/LabeledSwitch/styled.js +18 -20
  118. package/dist/components/molecules/LabeledSwitch/styled.js.map +1 -1
  119. package/dist/components/molecules/Select/Modal.js +206 -133
  120. package/dist/components/molecules/Select/Modal.js.map +1 -1
  121. package/dist/components/molecules/Select/Select.js +217 -135
  122. package/dist/components/molecules/Select/Select.js.map +1 -1
  123. package/dist/components/molecules/Select/index.d.ts +2 -1
  124. package/dist/components/molecules/Select/styled.js +54 -83
  125. package/dist/components/molecules/Select/styled.js.map +1 -1
  126. package/dist/components/molecules/Snackbar/Snackbar.d.ts +1 -1
  127. package/dist/components/molecules/Snackbar/Snackbar.js +52 -28
  128. package/dist/components/molecules/Snackbar/Snackbar.js.map +1 -1
  129. package/dist/components/molecules/Snackbar/index.d.ts +2 -1
  130. package/dist/components/molecules/Snackbar/styled.js +11 -14
  131. package/dist/components/molecules/Snackbar/styled.js.map +1 -1
  132. package/dist/index.d.ts +38 -19
  133. package/dist/index.js +80 -191
  134. package/dist/index.js.map +1 -1
  135. package/dist/utils/date.js +31 -19
  136. package/dist/utils/date.js.map +1 -1
  137. package/esm/components/atoms/Avatar/Avatar.d.ts +4 -0
  138. package/esm/components/atoms/Avatar/Avatar.js +31 -0
  139. package/esm/components/atoms/Avatar/Avatar.js.map +1 -0
  140. package/esm/components/atoms/Avatar/index.d.ts +1 -0
  141. package/esm/components/atoms/Badge/Badge.d.ts +8 -0
  142. package/esm/components/atoms/Badge/Badge.js +56 -0
  143. package/esm/components/atoms/Badge/Badge.js.map +1 -0
  144. package/esm/components/atoms/Badge/index.d.ts +2 -0
  145. package/esm/components/atoms/BottomNavigator/BottomNavigator.d.ts +13 -0
  146. package/esm/components/atoms/BottomNavigator/BottomNavigator.js +61 -0
  147. package/esm/components/atoms/BottomNavigator/BottomNavigator.js.map +1 -0
  148. package/esm/components/atoms/BottomNavigator/Item.d.ts +19 -0
  149. package/esm/components/atoms/BottomNavigator/Item.js +58 -0
  150. package/esm/components/atoms/BottomNavigator/Item.js.map +1 -0
  151. package/esm/components/atoms/BottomNavigator/index.d.ts +3 -0
  152. package/esm/components/atoms/BottomNavigator/styled.d.ts +11 -0
  153. package/esm/components/atoms/BottomNavigator/styled.js +31 -0
  154. package/esm/components/atoms/BottomNavigator/styled.js.map +1 -0
  155. package/esm/components/atoms/Button/Button.d.ts +6 -0
  156. package/esm/components/atoms/Button/Button.js +57 -0
  157. package/esm/components/atoms/Button/Button.js.map +1 -0
  158. package/esm/components/atoms/Button/States/Error.d.ts +4 -0
  159. package/esm/components/atoms/Button/States/Error.js +31 -0
  160. package/esm/components/atoms/Button/States/Error.js.map +1 -0
  161. package/esm/components/atoms/Button/States/Loading.d.ts +4 -0
  162. package/esm/components/atoms/Button/States/Loading.js +31 -0
  163. package/esm/components/atoms/Button/States/Loading.js.map +1 -0
  164. package/esm/components/atoms/Button/States/Success.d.ts +4 -0
  165. package/esm/components/atoms/Button/States/Success.js +31 -0
  166. package/esm/components/atoms/Button/States/Success.js.map +1 -0
  167. package/esm/components/atoms/Button/States/index.d.ts +3 -0
  168. package/esm/components/atoms/Button/index.d.ts +3 -0
  169. package/esm/components/atoms/GroupButton/GroupButtonOption.d.ts +2 -0
  170. package/esm/components/atoms/GroupButton/GroupButtonOption.js +31 -0
  171. package/esm/components/atoms/GroupButton/GroupButtonOption.js.map +1 -0
  172. package/esm/components/atoms/GroupButton/index.d.ts +1 -0
  173. package/esm/components/atoms/Header/Header.d.ts +12 -0
  174. package/esm/components/atoms/Header/Header.js +62 -0
  175. package/esm/components/atoms/Header/Header.js.map +1 -0
  176. package/esm/components/atoms/Header/index.d.ts +2 -0
  177. package/esm/components/atoms/Header/styled.d.ts +8 -0
  178. package/esm/components/atoms/Header/styled.js +19 -0
  179. package/esm/components/atoms/Header/styled.js.map +1 -0
  180. package/esm/components/atoms/Input/Input.d.ts +9 -0
  181. package/esm/components/atoms/Input/Input.js +133 -0
  182. package/esm/components/atoms/Input/Input.js.map +1 -0
  183. package/esm/components/atoms/Input/index.d.ts +2 -0
  184. package/esm/components/atoms/Input/styled.d.ts +1 -0
  185. package/esm/components/atoms/Input/styled.js +13 -0
  186. package/esm/components/atoms/Input/styled.js.map +1 -0
  187. package/esm/components/atoms/InputMask/InputMask.d.ts +8 -0
  188. package/esm/components/atoms/InputMask/InputMask.js +134 -0
  189. package/esm/components/atoms/InputMask/InputMask.js.map +1 -0
  190. package/esm/components/atoms/InputMask/index.d.ts +2 -0
  191. package/esm/components/atoms/InputMask/styled.d.ts +5 -0
  192. package/esm/components/atoms/InputMask/styled.js +16 -0
  193. package/esm/components/atoms/InputMask/styled.js.map +1 -0
  194. package/esm/components/atoms/Modal/ModalGroupManager.d.ts +4 -0
  195. package/esm/components/atoms/Modal/ModalGroupManager.js +48 -0
  196. package/esm/components/atoms/Modal/ModalGroupManager.js.map +1 -0
  197. package/esm/components/atoms/Modal/ModalLifecycleHandler.d.ts +24 -0
  198. package/esm/components/atoms/Modal/ModalLifecycleHandler.js +101 -0
  199. package/esm/components/atoms/Modal/ModalLifecycleHandler.js.map +1 -0
  200. package/esm/components/atoms/Modal/index.d.ts +7 -0
  201. package/esm/components/atoms/Modal/ui/BaseModalView.d.ts +3 -0
  202. package/esm/components/atoms/Modal/ui/BaseModalView.js +143 -0
  203. package/esm/components/atoms/Modal/ui/BaseModalView.js.map +1 -0
  204. package/esm/components/atoms/Modal/ui/styled.d.ts +6 -0
  205. package/esm/components/atoms/Modal/ui/styled.js +24 -0
  206. package/esm/components/atoms/Modal/ui/styled.js.map +1 -0
  207. package/esm/components/atoms/Modal/ui/types.d.ts +10 -0
  208. package/esm/components/atoms/Modal/useLazyModalManager.d.ts +8 -0
  209. package/esm/components/atoms/Modal/useLazyModalManager.js +33 -0
  210. package/esm/components/atoms/Modal/useLazyModalManager.js.map +1 -0
  211. package/esm/components/atoms/Modal/useModalManager.d.ts +6 -0
  212. package/esm/components/atoms/Modal/useModalManager.js +24 -0
  213. package/esm/components/atoms/Modal/useModalManager.js.map +1 -0
  214. package/esm/components/atoms/Modal/useModalRemoteControl.d.ts +4 -0
  215. package/esm/components/atoms/Modal/useModalRemoteControl.js +18 -0
  216. package/esm/components/atoms/Modal/useModalRemoteControl.js.map +1 -0
  217. package/esm/components/atoms/Skeleton/Pulse.d.ts +2 -0
  218. package/esm/components/atoms/Skeleton/Pulse.js +32 -0
  219. package/esm/components/atoms/Skeleton/Pulse.js.map +1 -0
  220. package/esm/components/atoms/Skeleton/Skeleton.d.ts +12 -0
  221. package/esm/components/atoms/Skeleton/Skeleton.js +87 -0
  222. package/esm/components/atoms/Skeleton/Skeleton.js.map +1 -0
  223. package/esm/components/atoms/Skeleton/Wave.d.ts +2 -0
  224. package/esm/components/atoms/Skeleton/Wave.js +50 -0
  225. package/esm/components/atoms/Skeleton/Wave.js.map +1 -0
  226. package/esm/components/atoms/Skeleton/animation.d.ts +3 -0
  227. package/esm/components/atoms/Skeleton/animation.js +45 -0
  228. package/esm/components/atoms/Skeleton/animation.js.map +1 -0
  229. package/esm/components/atoms/Skeleton/index.d.ts +2 -0
  230. package/esm/components/atoms/Skeleton/styled.d.ts +7 -0
  231. package/esm/components/atoms/Skeleton/styled.js +13 -0
  232. package/esm/components/atoms/Skeleton/styled.js.map +1 -0
  233. package/esm/components/atoms/Skeleton/types.d.ts +12 -0
  234. package/esm/components/atoms/SnappingSlider/SnappingSlider.d.ts +10 -0
  235. package/esm/components/atoms/SnappingSlider/SnappingSlider.js +79 -0
  236. package/esm/components/atoms/SnappingSlider/SnappingSlider.js.map +1 -0
  237. package/esm/components/atoms/SnappingSlider/index.d.ts +2 -0
  238. package/esm/components/atoms/Tag/Tag.d.ts +7 -0
  239. package/esm/components/atoms/Tag/Tag.js +47 -0
  240. package/esm/components/atoms/Tag/Tag.js.map +1 -0
  241. package/esm/components/atoms/Tag/index.d.ts +2 -0
  242. package/esm/components/atoms/Text/Text.d.ts +5 -0
  243. package/esm/components/atoms/Text/Text.js +38 -0
  244. package/esm/components/atoms/Text/Text.js.map +1 -0
  245. package/esm/components/atoms/Text/index.d.ts +2 -0
  246. package/esm/components/atoms/Text/styled.d.ts +10 -0
  247. package/esm/components/atoms/Text/styled.js +20 -0
  248. package/esm/components/atoms/Text/styled.js.map +1 -0
  249. package/esm/components/atoms/TextArea/TextArea.d.ts +5 -0
  250. package/esm/components/atoms/TextArea/TextArea.js +129 -0
  251. package/esm/components/atoms/TextArea/TextArea.js.map +1 -0
  252. package/esm/components/atoms/TextArea/index.d.ts +2 -0
  253. package/esm/components/atoms/TextArea/styled.d.ts +4 -0
  254. package/esm/components/atoms/TextArea/styled.js +8 -0
  255. package/esm/components/atoms/TextArea/styled.js.map +1 -0
  256. package/esm/components/molecules/Calendar/Calendar.d.ts +1 -0
  257. package/esm/components/molecules/Calendar/Calendar.js +50 -0
  258. package/esm/components/molecules/Calendar/Calendar.js.map +1 -0
  259. package/esm/components/molecules/Calendar/index.d.ts +1 -0
  260. package/esm/components/molecules/DatePicker/DatePicker.d.ts +3 -0
  261. package/esm/components/molecules/DatePicker/DatePicker.js +76 -0
  262. package/esm/components/molecules/DatePicker/DatePicker.js.map +1 -0
  263. package/esm/components/molecules/DatePicker/index.d.ts +2 -0
  264. package/esm/components/molecules/DatePicker/styled.d.ts +4 -0
  265. package/esm/components/molecules/DatePicker/styled.js +9 -0
  266. package/esm/components/molecules/DatePicker/styled.js.map +1 -0
  267. package/esm/components/molecules/DateTimePicker/DateTimePicker.d.ts +4 -0
  268. package/esm/components/molecules/DateTimePicker/DateTimePicker.js +66 -0
  269. package/esm/components/molecules/DateTimePicker/DateTimePicker.js.map +1 -0
  270. package/esm/components/molecules/DateTimePicker/index.d.ts +2 -0
  271. package/esm/components/molecules/DateTimeSelector/DateTimeSelector.d.ts +3 -0
  272. package/esm/components/molecules/DateTimeSelector/DateTimeSelector.js +50 -0
  273. package/esm/components/molecules/DateTimeSelector/DateTimeSelector.js.map +1 -0
  274. package/esm/components/molecules/DateTimeSelector/index.d.ts +1 -0
  275. package/esm/components/molecules/Grid/Grid.d.ts +5 -0
  276. package/esm/components/molecules/Grid/Grid.js +88 -0
  277. package/esm/components/molecules/Grid/Grid.js.map +1 -0
  278. package/esm/components/molecules/Grid/Item/Item.d.ts +7 -0
  279. package/esm/components/molecules/Grid/Item/Item.js +106 -0
  280. package/esm/components/molecules/Grid/Item/Item.js.map +1 -0
  281. package/esm/components/molecules/Grid/Item/index.d.ts +1 -0
  282. package/esm/components/molecules/Grid/index.d.ts +2 -0
  283. package/esm/components/molecules/IconTextButton/IconTextButton.d.ts +6 -0
  284. package/esm/components/molecules/IconTextButton/IconTextButton.js +72 -0
  285. package/esm/components/molecules/IconTextButton/IconTextButton.js.map +1 -0
  286. package/esm/components/molecules/IconTextButton/TextComponent.d.ts +12 -0
  287. package/esm/components/molecules/IconTextButton/TextComponent.js +40 -0
  288. package/esm/components/molecules/IconTextButton/TextComponent.js.map +1 -0
  289. package/esm/components/molecules/IconTextButton/index.d.ts +2 -0
  290. package/esm/components/molecules/IconTextButton/styled.d.ts +2 -0
  291. package/esm/components/molecules/IconTextButton/styled.js +28 -0
  292. package/esm/components/molecules/IconTextButton/styled.js.map +1 -0
  293. package/esm/components/molecules/InputPassword/InputPassword.d.ts +6 -0
  294. package/esm/components/molecules/InputPassword/InputPassword.js +54 -0
  295. package/esm/components/molecules/InputPassword/InputPassword.js.map +1 -0
  296. package/esm/components/molecules/InputPassword/index.d.ts +2 -0
  297. package/esm/components/molecules/LabeledSwitch/LabelComponent.d.ts +13 -0
  298. package/esm/components/molecules/LabeledSwitch/LabelComponent.js +59 -0
  299. package/esm/components/molecules/LabeledSwitch/LabelComponent.js.map +1 -0
  300. package/esm/components/molecules/LabeledSwitch/LabeledSwitch.d.ts +8 -0
  301. package/esm/components/molecules/LabeledSwitch/LabeledSwitch.js +76 -0
  302. package/esm/components/molecules/LabeledSwitch/LabeledSwitch.js.map +1 -0
  303. package/esm/components/molecules/LabeledSwitch/index.d.ts +2 -0
  304. package/esm/components/molecules/LabeledSwitch/styled.d.ts +9 -0
  305. package/esm/components/molecules/LabeledSwitch/styled.js +24 -0
  306. package/esm/components/molecules/LabeledSwitch/styled.js.map +1 -0
  307. package/esm/components/molecules/Select/Modal.d.ts +7 -0
  308. package/esm/components/molecules/Select/Modal.js +230 -0
  309. package/esm/components/molecules/Select/Modal.js.map +1 -0
  310. package/esm/components/molecules/Select/Select.d.ts +24 -0
  311. package/esm/components/molecules/Select/Select.js +240 -0
  312. package/esm/components/molecules/Select/Select.js.map +1 -0
  313. package/esm/components/molecules/Select/index.d.ts +2 -0
  314. package/esm/components/molecules/Select/styled.d.ts +41 -0
  315. package/esm/components/molecules/Select/styled.js +78 -0
  316. package/esm/components/molecules/Select/styled.js.map +1 -0
  317. package/esm/components/molecules/Snackbar/Snackbar.d.ts +9 -0
  318. package/esm/components/molecules/Snackbar/Snackbar.js +51 -0
  319. package/esm/components/molecules/Snackbar/Snackbar.js.map +1 -0
  320. package/esm/components/molecules/Snackbar/index.d.ts +2 -0
  321. package/esm/components/molecules/Snackbar/styled.d.ts +4 -0
  322. package/esm/components/molecules/Snackbar/styled.js +10 -0
  323. package/esm/components/molecules/Snackbar/styled.js.map +1 -0
  324. package/esm/index.d.ts +44 -0
  325. package/esm/index.js +35 -0
  326. package/esm/index.js.map +1 -0
  327. package/esm/utils/date.d.ts +1 -0
  328. package/esm/utils/date.js +16 -0
  329. package/esm/utils/date.js.map +1 -0
  330. package/package.json +8 -5
  331. package/rollup.config.js +39 -0
  332. package/src/components/atoms/Avatar/Avatar.tsx +3 -1
  333. package/src/components/atoms/Avatar/index.ts +1 -1
  334. package/src/components/atoms/Badge/index.ts +2 -1
  335. package/src/components/atoms/BottomNavigator/index.ts +3 -5
  336. package/src/components/atoms/Button/States/Error.tsx +1 -1
  337. package/src/components/atoms/Button/States/Loading.tsx +1 -1
  338. package/src/components/atoms/Button/States/Success.tsx +1 -1
  339. package/src/components/atoms/Button/index.ts +2 -1
  340. package/src/components/atoms/Header/index.ts +2 -1
  341. package/src/components/atoms/Input/index.ts +2 -1
  342. package/src/components/atoms/InputMask/index.ts +2 -1
  343. package/src/components/atoms/Skeleton/index.ts +2 -1
  344. package/src/components/atoms/SnappingSlider/index.ts +2 -4
  345. package/src/components/atoms/Tag/index.ts +2 -1
  346. package/src/components/atoms/Text/index.ts +2 -1
  347. package/src/components/atoms/TextArea/index.ts +2 -1
  348. package/src/components/molecules/DatePicker/index.ts +2 -1
  349. package/src/components/molecules/DateTimePicker/index.ts +2 -1
  350. package/src/components/molecules/IconTextButton/index.ts +2 -4
  351. package/src/components/molecules/InputPassword/index.ts +2 -4
  352. package/src/components/molecules/LabeledSwitch/index.ts +2 -4
  353. package/src/components/molecules/Select/Modal.tsx +1 -1
  354. package/src/components/molecules/Select/Select.tsx +3 -2
  355. package/src/components/molecules/Select/index.ts +2 -1
  356. package/src/components/molecules/Snackbar/Snackbar.tsx +1 -1
  357. package/src/components/molecules/Snackbar/index.ts +2 -1
  358. package/src/index.ts +37 -46
  359. package/tsconfig.build.esm.json +10 -0
  360. package/dist/components/atoms/Avatar/index.js +0 -9
  361. package/dist/components/atoms/Avatar/index.js.map +0 -1
  362. package/dist/components/atoms/Badge/index.js +0 -14
  363. package/dist/components/atoms/Badge/index.js.map +0 -1
  364. package/dist/components/atoms/BottomNavigator/index.js +0 -18
  365. package/dist/components/atoms/BottomNavigator/index.js.map +0 -1
  366. package/dist/components/atoms/Button/States/index.js +0 -19
  367. package/dist/components/atoms/Button/States/index.js.map +0 -1
  368. package/dist/components/atoms/Button/index.js +0 -16
  369. package/dist/components/atoms/Button/index.js.map +0 -1
  370. package/dist/components/atoms/GroupButton/index.js +0 -11
  371. package/dist/components/atoms/GroupButton/index.js.map +0 -1
  372. package/dist/components/atoms/Header/index.js +0 -14
  373. package/dist/components/atoms/Header/index.js.map +0 -1
  374. package/dist/components/atoms/Input/index.js +0 -14
  375. package/dist/components/atoms/Input/index.js.map +0 -1
  376. package/dist/components/atoms/InputMask/index.js +0 -14
  377. package/dist/components/atoms/InputMask/index.js.map +0 -1
  378. package/dist/components/atoms/Modal/index.js +0 -60
  379. package/dist/components/atoms/Modal/index.js.map +0 -1
  380. package/dist/components/atoms/Modal/ui/types.js +0 -4
  381. package/dist/components/atoms/Modal/ui/types.js.map +0 -1
  382. package/dist/components/atoms/Skeleton/index.js +0 -14
  383. package/dist/components/atoms/Skeleton/index.js.map +0 -1
  384. package/dist/components/atoms/Skeleton/types.js +0 -4
  385. package/dist/components/atoms/Skeleton/types.js.map +0 -1
  386. package/dist/components/atoms/SnappingSlider/index.js +0 -14
  387. package/dist/components/atoms/SnappingSlider/index.js.map +0 -1
  388. package/dist/components/atoms/Tag/index.js +0 -14
  389. package/dist/components/atoms/Tag/index.js.map +0 -1
  390. package/dist/components/atoms/Text/index.js +0 -14
  391. package/dist/components/atoms/Text/index.js.map +0 -1
  392. package/dist/components/atoms/TextArea/index.js +0 -14
  393. package/dist/components/atoms/TextArea/index.js.map +0 -1
  394. package/dist/components/molecules/Calendar/index.js +0 -9
  395. package/dist/components/molecules/Calendar/index.js.map +0 -1
  396. package/dist/components/molecules/DatePicker/index.js +0 -10
  397. package/dist/components/molecules/DatePicker/index.js.map +0 -1
  398. package/dist/components/molecules/DateTimePicker/index.js +0 -10
  399. package/dist/components/molecules/DateTimePicker/index.js.map +0 -1
  400. package/dist/components/molecules/DateTimeSelector/index.js +0 -9
  401. package/dist/components/molecules/DateTimeSelector/index.js.map +0 -1
  402. package/dist/components/molecules/Grid/Item/index.js +0 -14
  403. package/dist/components/molecules/Grid/Item/index.js.map +0 -1
  404. package/dist/components/molecules/Grid/index.js +0 -15
  405. package/dist/components/molecules/Grid/index.js.map +0 -1
  406. package/dist/components/molecules/IconTextButton/index.js +0 -14
  407. package/dist/components/molecules/IconTextButton/index.js.map +0 -1
  408. package/dist/components/molecules/InputPassword/index.js +0 -14
  409. package/dist/components/molecules/InputPassword/index.js.map +0 -1
  410. package/dist/components/molecules/LabeledSwitch/index.js +0 -14
  411. package/dist/components/molecules/LabeledSwitch/index.js.map +0 -1
  412. package/dist/components/molecules/Select/index.js +0 -14
  413. package/dist/components/molecules/Select/index.js.map +0 -1
  414. package/dist/components/molecules/Snackbar/index.js +0 -14
  415. package/dist/components/molecules/Snackbar/index.js.map +0 -1
@@ -1,63 +1,59 @@
1
- "use strict";
1
+ 'use strict';
2
2
 
3
- exports.__esModule = true;
4
- exports.Wave = void 0;
3
+ Object.defineProperty(exports, '__esModule', { value: true });
5
4
 
6
- var _react = _interopRequireWildcard(require("react"));
5
+ var React = require('react');
6
+ var reactNative = require('react-native');
7
+ var LinearGradient = require('react-native-linear-gradient');
8
+ var animation = require('./animation.js');
7
9
 
8
- var _reactNative = require("react-native");
10
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
11
 
10
- var _reactNativeLinearGradient = _interopRequireDefault(require("react-native-linear-gradient"));
11
-
12
- var _animation = require("./animation");
13
-
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
-
16
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
-
18
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
-
20
- const AnimatedLinearGradient = _reactNative.Animated.createAnimatedComponent(_reactNativeLinearGradient.default);
12
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
13
+ var LinearGradient__default = /*#__PURE__*/_interopDefaultLegacy(LinearGradient);
21
14
 
15
+ const AnimatedLinearGradient = reactNative.Animated.createAnimatedComponent(LinearGradient__default["default"]);
22
16
  const Wave = ({
23
17
  active = true,
24
18
  width,
25
19
  height,
26
20
  childrenLayout
27
21
  }) => {
28
- const range = width ?? childrenLayout.width;
29
- const animatedValue = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
22
+ var _a, _b;
23
+ const range = width != null ? width : childrenLayout.width;
24
+ const animatedValue = React.useRef(new reactNative.Animated.Value(0)).current;
30
25
  const translateX = animatedValue.interpolate({
31
26
  inputRange: [0, 1],
32
27
  outputRange: [-range, range]
33
28
  });
34
- (0, _react.useEffect)(() => {
35
- (0, _animation.waveAnimation)(active, animatedValue);
29
+ React.useEffect(() => {
30
+ animation.waveAnimation(active, animatedValue);
36
31
  }, [active]);
37
- return _react.default.createElement(AnimatedLinearGradient, {
38
- colors: ['transparent', 'rgba(0,0,0,0.05)', 'rgba(0,0,0,0.1)', 'transparent'],
39
- start: {
40
- x: 0,
41
- y: 0
42
- },
43
- end: {
44
- x: 1,
45
- y: 0
46
- },
32
+ return /* @__PURE__ */ React__default["default"].createElement(AnimatedLinearGradient, {
33
+ colors: [
34
+ "transparent",
35
+ "rgba(0,0,0,0.05)",
36
+ "rgba(0,0,0,0.1)",
37
+ "transparent"
38
+ ],
39
+ start: { x: 0, y: 0 },
40
+ end: { x: 1, y: 0 },
47
41
  style: {
48
- width: width ?? childrenLayout.width,
49
- height: height ?? childrenLayout.height,
50
- position: 'absolute',
51
- top: childrenLayout.y ?? 0,
52
- left: childrenLayout.x ?? 0,
42
+ width: width != null ? width : childrenLayout.width,
43
+ height: height != null ? height : childrenLayout.height,
44
+ position: "absolute",
45
+ top: (_a = childrenLayout.y) != null ? _a : 0,
46
+ left: (_b = childrenLayout.x) != null ? _b : 0,
53
47
  zIndex: 2,
54
- overflow: 'hidden',
55
- transform: [{
56
- translateX: translateX
57
- }]
48
+ overflow: "hidden",
49
+ transform: [
50
+ {
51
+ translateX
52
+ }
53
+ ]
58
54
  }
59
55
  });
60
56
  };
61
57
 
62
58
  exports.Wave = Wave;
63
- //# sourceMappingURL=Wave.js.map
59
+ //# sourceMappingURL=Wave.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Wave.js","names":["AnimatedLinearGradient","Animated","createAnimatedComponent","LinearGradient","Wave","active","width","height","childrenLayout","range","animatedValue","useRef","Value","current","translateX","interpolate","inputRange","outputRange","useEffect","waveAnimation","x","y","position","top","left","zIndex","overflow","transform"],"sources":["../../../../src/components/atoms/Skeleton/Wave.tsx"],"sourcesContent":["import React, { useEffect, useRef } from 'react';\nimport { Animated } from 'react-native';\nimport LinearGradient from 'react-native-linear-gradient';\nimport { waveAnimation } from './animation';\nimport { IAnimationComponent } from './types';\n\nconst AnimatedLinearGradient = Animated.createAnimatedComponent(LinearGradient);\n\nexport const Wave = ({\n active = true,\n width,\n height,\n childrenLayout,\n}: IAnimationComponent) => {\n const range = width ?? childrenLayout.width;\n const animatedValue = useRef(new Animated.Value(0)).current;\n\n const translateX = animatedValue.interpolate({\n inputRange: [0, 1],\n outputRange: [-range, range],\n });\n\n useEffect(() => {\n waveAnimation(active, animatedValue);\n }, [active]);\n\n return (\n <AnimatedLinearGradient\n colors={[\n 'transparent',\n 'rgba(0,0,0,0.05)',\n 'rgba(0,0,0,0.1)',\n 'transparent',\n ]}\n start={{ x: 0, y: 0 }}\n end={{ x: 1, y: 0 }}\n style={{\n width: width ?? childrenLayout.width,\n height: height ?? childrenLayout.height,\n position: 'absolute',\n top: childrenLayout.y ?? 0,\n left: childrenLayout.x ?? 0,\n zIndex: 2,\n overflow: 'hidden',\n transform: [\n {\n translateX: translateX,\n },\n ],\n }}\n />\n );\n};\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;AAGA,MAAMA,sBAAsB,GAAGC,qBAAA,CAASC,uBAAT,CAAiCC,kCAAjC,CAA/B;;AAEO,MAAMC,IAAI,GAAG,CAAC;EACnBC,MAAM,GAAG,IADU;EAEnBC,KAFmB;EAGnBC,MAHmB;EAInBC;AAJmB,CAAD,KAKO;EACzB,MAAMC,KAAK,GAAGH,KAAK,IAAIE,cAAc,CAACF,KAAtC;EACA,MAAMI,aAAa,GAAG,IAAAC,aAAA,EAAO,IAAIV,qBAAA,CAASW,KAAb,CAAmB,CAAnB,CAAP,EAA8BC,OAApD;EAEA,MAAMC,UAAU,GAAGJ,aAAa,CAACK,WAAd,CAA0B;IAC3CC,UAAU,EAAE,CAAC,CAAD,EAAI,CAAJ,CAD+B;IAE3CC,WAAW,EAAE,CAAC,CAACR,KAAF,EAASA,KAAT;EAF8B,CAA1B,CAAnB;EAKA,IAAAS,gBAAA,EAAU,MAAM;IACd,IAAAC,wBAAA,EAAcd,MAAd,EAAsBK,aAAtB;EACD,CAFD,EAEG,CAACL,MAAD,CAFH;EAIA,OACE,6BAAC,sBAAD;IACE,MAAM,EAAE,CACN,aADM,EAEN,kBAFM,EAGN,iBAHM,EAIN,aAJM,CADV;IAOE,KAAK,EAAE;MAAEe,CAAC,EAAE,CAAL;MAAQC,CAAC,EAAE;IAAX,CAPT;IAQE,GAAG,EAAE;MAAED,CAAC,EAAE,CAAL;MAAQC,CAAC,EAAE;IAAX,CARP;IASE,KAAK,EAAE;MACLf,KAAK,EAAEA,KAAK,IAAIE,cAAc,CAACF,KAD1B;MAELC,MAAM,EAAEA,MAAM,IAAIC,cAAc,CAACD,MAF5B;MAGLe,QAAQ,EAAE,UAHL;MAILC,GAAG,EAAEf,cAAc,CAACa,CAAf,IAAoB,CAJpB;MAKLG,IAAI,EAAEhB,cAAc,CAACY,CAAf,IAAoB,CALrB;MAMLK,MAAM,EAAE,CANH;MAOLC,QAAQ,EAAE,QAPL;MAQLC,SAAS,EAAE,CACT;QACEb,UAAU,EAAEA;MADd,CADS;IARN;EATT,EADF;AA0BD,CA5CM"}
1
+ {"version":3,"file":"Wave.js","sources":["../../../../src/components/atoms/Skeleton/Wave.tsx"],"sourcesContent":["import React, { useEffect, useRef } from 'react';\nimport { Animated } from 'react-native';\nimport LinearGradient from 'react-native-linear-gradient';\nimport { waveAnimation } from './animation';\nimport { IAnimationComponent } from './types';\n\nconst AnimatedLinearGradient = Animated.createAnimatedComponent(LinearGradient);\n\nexport const Wave = ({\n active = true,\n width,\n height,\n childrenLayout,\n}: IAnimationComponent) => {\n const range = width ?? childrenLayout.width;\n const animatedValue = useRef(new Animated.Value(0)).current;\n\n const translateX = animatedValue.interpolate({\n inputRange: [0, 1],\n outputRange: [-range, range],\n });\n\n useEffect(() => {\n waveAnimation(active, animatedValue);\n }, [active]);\n\n return (\n <AnimatedLinearGradient\n colors={[\n 'transparent',\n 'rgba(0,0,0,0.05)',\n 'rgba(0,0,0,0.1)',\n 'transparent',\n ]}\n start={{ x: 0, y: 0 }}\n end={{ x: 1, y: 0 }}\n style={{\n width: width ?? childrenLayout.width,\n height: height ?? childrenLayout.height,\n position: 'absolute',\n top: childrenLayout.y ?? 0,\n left: childrenLayout.x ?? 0,\n zIndex: 2,\n overflow: 'hidden',\n transform: [\n {\n translateX: translateX,\n },\n ],\n }}\n />\n );\n};\n"],"names":["Animated","LinearGradient","useRef","useEffect","waveAnimation","React"],"mappings":";;;;;;;;;;;;;;AAMA,MAAM,sBAAA,GAAyBA,oBAAS,CAAA,uBAAA,CAAwBC,kCAAc,CAAA,CAAA;AAEvE,MAAM,OAAO,CAAC;AAAA,EACnB,MAAS,GAAA,IAAA;AAAA,EACT,KAAA;AAAA,EACA,MAAA;AAAA,EACA,cAAA;AACF,CAA2B,KAAA;AAb3B,EAAA,IAAA,EAAA,EAAA,EAAA,CAAA;AAcE,EAAM,MAAA,KAAA,GAAQ,wBAAS,cAAe,CAAA,KAAA,CAAA;AACtC,EAAA,MAAM,gBAAgBC,YAAO,CAAA,IAAIF,qBAAS,KAAM,CAAA,CAAC,CAAC,CAAE,CAAA,OAAA,CAAA;AAEpD,EAAM,MAAA,UAAA,GAAa,cAAc,WAAY,CAAA;AAAA,IAC3C,UAAA,EAAY,CAAC,CAAA,EAAG,CAAC,CAAA;AAAA,IACjB,WAAa,EAAA,CAAC,CAAC,KAAA,EAAO,KAAK,CAAA;AAAA,GAC5B,CAAA,CAAA;AAED,EAAAG,eAAA,CAAU,MAAM;AACd,IAAAC,uBAAA,CAAc,QAAQ,aAAa,CAAA,CAAA;AAAA,GACrC,EAAG,CAAC,MAAM,CAAC,CAAA,CAAA;AAEX,EAAA,uBACGC,yBAAA,CAAA,aAAA,CAAA,sBAAA,EAAA;AAAA,IACC,MAAQ,EAAA;AAAA,MACN,aAAA;AAAA,MACA,kBAAA;AAAA,MACA,iBAAA;AAAA,MACA,aAAA;AAAA,KACF;AAAA,IACA,KAAO,EAAA,EAAE,CAAG,EAAA,CAAA,EAAG,GAAG,CAAE,EAAA;AAAA,IACpB,GAAK,EAAA,EAAE,CAAG,EAAA,CAAA,EAAG,GAAG,CAAE,EAAA;AAAA,IAClB,KAAO,EAAA;AAAA,MACL,KAAA,EAAO,wBAAS,cAAe,CAAA,KAAA;AAAA,MAC/B,MAAA,EAAQ,0BAAU,cAAe,CAAA,MAAA;AAAA,MACjC,QAAU,EAAA,UAAA;AAAA,MACV,GAAA,EAAA,CAAK,EAAe,GAAA,cAAA,CAAA,CAAA,KAAf,IAAoB,GAAA,EAAA,GAAA,CAAA;AAAA,MACzB,IAAA,EAAA,CAAM,EAAe,GAAA,cAAA,CAAA,CAAA,KAAf,IAAoB,GAAA,EAAA,GAAA,CAAA;AAAA,MAC1B,MAAQ,EAAA,CAAA;AAAA,MACR,QAAU,EAAA,QAAA;AAAA,MACV,SAAW,EAAA;AAAA,QACT;AAAA,UACE,UAAA;AAAA,SACF;AAAA,OACF;AAAA,KACF;AAAA,GACF,CAAA,CAAA;AAEJ;;;;"}
@@ -1,50 +1,50 @@
1
- "use strict";
1
+ 'use strict';
2
2
 
3
- exports.__esModule = true;
4
- exports.waveAnimation = exports.pulseAnimation = void 0;
3
+ Object.defineProperty(exports, '__esModule', { value: true });
5
4
 
6
- var _reactNative = require("react-native");
5
+ var reactNative = require('react-native');
7
6
 
8
7
  const waveAnimation = (active, animatedValue) => {
9
8
  if (active) {
10
- _reactNative.Animated.loop(_reactNative.Animated.timing(animatedValue, {
11
- toValue: 1,
12
- duration: 1600,
13
- easing: _reactNative.Easing.inOut(_reactNative.Easing.linear),
14
- useNativeDriver: true
15
- })).start();
16
-
9
+ reactNative.Animated.loop(
10
+ reactNative.Animated.timing(animatedValue, {
11
+ toValue: 1,
12
+ duration: 1600,
13
+ easing: reactNative.Easing.inOut(reactNative.Easing.linear),
14
+ useNativeDriver: true
15
+ })
16
+ ).start();
17
17
  return;
18
18
  }
19
-
20
- _reactNative.Animated.timing(animatedValue, {
19
+ reactNative.Animated.timing(animatedValue, {
21
20
  toValue: 0,
22
21
  useNativeDriver: true
23
22
  }).start();
24
23
  };
25
-
26
- exports.waveAnimation = waveAnimation;
27
-
28
24
  const pulseAnimation = (active, animatedValue) => {
29
25
  if (active) {
30
- _reactNative.Animated.loop(_reactNative.Animated.sequence([_reactNative.Animated.timing(animatedValue, {
31
- toValue: 1,
32
- duration: 800,
33
- useNativeDriver: true
34
- }), _reactNative.Animated.timing(animatedValue, {
35
- toValue: 0,
36
- duration: 800,
37
- useNativeDriver: true
38
- })])).start();
39
-
26
+ reactNative.Animated.loop(
27
+ reactNative.Animated.sequence([
28
+ reactNative.Animated.timing(animatedValue, {
29
+ toValue: 1,
30
+ duration: 800,
31
+ useNativeDriver: true
32
+ }),
33
+ reactNative.Animated.timing(animatedValue, {
34
+ toValue: 0,
35
+ duration: 800,
36
+ useNativeDriver: true
37
+ })
38
+ ])
39
+ ).start();
40
40
  return;
41
41
  }
42
-
43
- _reactNative.Animated.timing(animatedValue, {
42
+ reactNative.Animated.timing(animatedValue, {
44
43
  toValue: 0,
45
44
  useNativeDriver: true
46
45
  }).start();
47
46
  };
48
47
 
49
48
  exports.pulseAnimation = pulseAnimation;
50
- //# sourceMappingURL=animation.js.map
49
+ exports.waveAnimation = waveAnimation;
50
+ //# sourceMappingURL=animation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"animation.js","names":["waveAnimation","active","animatedValue","Animated","loop","timing","toValue","duration","easing","Easing","inOut","linear","useNativeDriver","start","pulseAnimation","sequence"],"sources":["../../../../src/components/atoms/Skeleton/animation.ts"],"sourcesContent":["import { Animated, Easing } from 'react-native';\n\nexport const waveAnimation = (\n active: boolean,\n animatedValue: Animated.Value\n): void => {\n if (active) {\n Animated.loop(\n Animated.timing(animatedValue, {\n toValue: 1,\n duration: 1600,\n easing: Easing.inOut(Easing.linear),\n useNativeDriver: true,\n })\n ).start();\n return;\n }\n Animated.timing(animatedValue, {\n toValue: 0,\n useNativeDriver: true,\n }).start();\n};\n\nexport const pulseAnimation = (\n active: boolean,\n animatedValue: Animated.Value\n): void => {\n if (active) {\n Animated.loop(\n Animated.sequence([\n Animated.timing(animatedValue, {\n toValue: 1,\n duration: 800,\n useNativeDriver: true,\n }),\n Animated.timing(animatedValue, {\n toValue: 0,\n duration: 800,\n useNativeDriver: true,\n }),\n ])\n ).start();\n return;\n }\n Animated.timing(animatedValue, {\n toValue: 0,\n useNativeDriver: true,\n }).start();\n};\n"],"mappings":";;;;;AAAA;;AAEO,MAAMA,aAAa,GAAG,CAC3BC,MAD2B,EAE3BC,aAF2B,KAGlB;EACT,IAAID,MAAJ,EAAY;IACVE,qBAAA,CAASC,IAAT,CACED,qBAAA,CAASE,MAAT,CAAgBH,aAAhB,EAA+B;MAC7BI,OAAO,EAAE,CADoB;MAE7BC,QAAQ,EAAE,IAFmB;MAG7BC,MAAM,EAAEC,mBAAA,CAAOC,KAAP,CAAaD,mBAAA,CAAOE,MAApB,CAHqB;MAI7BC,eAAe,EAAE;IAJY,CAA/B,CADF,EAOEC,KAPF;;IAQA;EACD;;EACDV,qBAAA,CAASE,MAAT,CAAgBH,aAAhB,EAA+B;IAC7BI,OAAO,EAAE,CADoB;IAE7BM,eAAe,EAAE;EAFY,CAA/B,EAGGC,KAHH;AAID,CAnBM;;;;AAqBA,MAAMC,cAAc,GAAG,CAC5Bb,MAD4B,EAE5BC,aAF4B,KAGnB;EACT,IAAID,MAAJ,EAAY;IACVE,qBAAA,CAASC,IAAT,CACED,qBAAA,CAASY,QAAT,CAAkB,CAChBZ,qBAAA,CAASE,MAAT,CAAgBH,aAAhB,EAA+B;MAC7BI,OAAO,EAAE,CADoB;MAE7BC,QAAQ,EAAE,GAFmB;MAG7BK,eAAe,EAAE;IAHY,CAA/B,CADgB,EAMhBT,qBAAA,CAASE,MAAT,CAAgBH,aAAhB,EAA+B;MAC7BI,OAAO,EAAE,CADoB;MAE7BC,QAAQ,EAAE,GAFmB;MAG7BK,eAAe,EAAE;IAHY,CAA/B,CANgB,CAAlB,CADF,EAaEC,KAbF;;IAcA;EACD;;EACDV,qBAAA,CAASE,MAAT,CAAgBH,aAAhB,EAA+B;IAC7BI,OAAO,EAAE,CADoB;IAE7BM,eAAe,EAAE;EAFY,CAA/B,EAGGC,KAHH;AAID,CAzBM"}
1
+ {"version":3,"file":"animation.js","sources":["../../../../src/components/atoms/Skeleton/animation.ts"],"sourcesContent":["import { Animated, Easing } from 'react-native';\n\nexport const waveAnimation = (\n active: boolean,\n animatedValue: Animated.Value\n): void => {\n if (active) {\n Animated.loop(\n Animated.timing(animatedValue, {\n toValue: 1,\n duration: 1600,\n easing: Easing.inOut(Easing.linear),\n useNativeDriver: true,\n })\n ).start();\n return;\n }\n Animated.timing(animatedValue, {\n toValue: 0,\n useNativeDriver: true,\n }).start();\n};\n\nexport const pulseAnimation = (\n active: boolean,\n animatedValue: Animated.Value\n): void => {\n if (active) {\n Animated.loop(\n Animated.sequence([\n Animated.timing(animatedValue, {\n toValue: 1,\n duration: 800,\n useNativeDriver: true,\n }),\n Animated.timing(animatedValue, {\n toValue: 0,\n duration: 800,\n useNativeDriver: true,\n }),\n ])\n ).start();\n return;\n }\n Animated.timing(animatedValue, {\n toValue: 0,\n useNativeDriver: true,\n }).start();\n};\n"],"names":["Animated","Easing"],"mappings":";;;;;;AAEa,MAAA,aAAA,GAAgB,CAC3B,MAAA,EACA,aACS,KAAA;AACT,EAAA,IAAI,MAAQ,EAAA;AACV,IAASA,oBAAA,CAAA,IAAA;AAAA,MACPA,oBAAA,CAAS,OAAO,aAAe,EAAA;AAAA,QAC7B,OAAS,EAAA,CAAA;AAAA,QACT,QAAU,EAAA,IAAA;AAAA,QACV,MAAQ,EAAAC,kBAAA,CAAO,KAAM,CAAAA,kBAAA,CAAO,MAAM,CAAA;AAAA,QAClC,eAAiB,EAAA,IAAA;AAAA,OAClB,CAAA;AAAA,MACD,KAAM,EAAA,CAAA;AACR,IAAA,OAAA;AAAA,GACF;AACA,EAAAD,oBAAA,CAAS,OAAO,aAAe,EAAA;AAAA,IAC7B,OAAS,EAAA,CAAA;AAAA,IACT,eAAiB,EAAA,IAAA;AAAA,GAClB,EAAE,KAAM,EAAA,CAAA;AACX,EAAA;AAEa,MAAA,cAAA,GAAiB,CAC5B,MAAA,EACA,aACS,KAAA;AACT,EAAA,IAAI,MAAQ,EAAA;AACV,IAASA,oBAAA,CAAA,IAAA;AAAA,MACPA,qBAAS,QAAS,CAAA;AAAA,QAChBA,oBAAA,CAAS,OAAO,aAAe,EAAA;AAAA,UAC7B,OAAS,EAAA,CAAA;AAAA,UACT,QAAU,EAAA,GAAA;AAAA,UACV,eAAiB,EAAA,IAAA;AAAA,SAClB,CAAA;AAAA,QACDA,oBAAA,CAAS,OAAO,aAAe,EAAA;AAAA,UAC7B,OAAS,EAAA,CAAA;AAAA,UACT,QAAU,EAAA,GAAA;AAAA,UACV,eAAiB,EAAA,IAAA;AAAA,SAClB,CAAA;AAAA,OACF,CAAA;AAAA,MACD,KAAM,EAAA,CAAA;AACR,IAAA,OAAA;AAAA,GACF;AACA,EAAAA,oBAAA,CAAS,OAAO,aAAe,EAAA;AAAA,IAC7B,OAAS,EAAA,CAAA;AAAA,IACT,eAAiB,EAAA,IAAA;AAAA,GAClB,EAAE,KAAM,EAAA,CAAA;AACX;;;;;"}
@@ -1 +1,2 @@
1
- export { default as Skeleton, SkeletonProps } from './Skeleton';
1
+ export { default as Skeleton } from './Skeleton';
2
+ export type { SkeletonProps } from './Skeleton';
@@ -1,27 +1,21 @@
1
- "use strict";
1
+ 'use strict';
2
2
 
3
- exports.__esModule = true;
4
- exports.Wrapper = void 0;
3
+ Object.defineProperty(exports, '__esModule', { value: true });
5
4
 
6
- var _native = _interopRequireDefault(require("@emotion/native"));
5
+ var styled = require('@emotion/native');
6
+ var reactCore = require('@tecsinapse/react-core');
7
7
 
8
- var _reactCore = require("@tecsinapse/react-core");
8
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
9
 
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
11
11
 
12
- const Wrapper = _native.default.View`
13
- width: ${({
14
- width
15
- }) => width ? `${(0, _reactCore.RFValueStr)(`${width}px`)}` : '100%'};
16
- height: ${({
17
- height
18
- }) => height ? `${(0, _reactCore.RFValueStr)(`${height}px`)}` : 'auto'};
19
- border-radius: ${({
20
- theme,
21
- radius
22
- }) => radius ? theme.borderRadius[radius] : 0};
12
+ const Wrapper = styled__default["default"].View`
13
+ width: ${({ width }) => width ? `${reactCore.RFValueStr(`${width}px`)}` : "100%"};
14
+ height: ${({ height }) => height ? `${reactCore.RFValueStr(`${height}px`)}` : "auto"};
15
+ border-radius: ${({ theme, radius }) => radius ? theme.borderRadius[radius] : 0};
23
16
  overflow: hidden;
24
17
  position: relative;
25
18
  `;
19
+
26
20
  exports.Wrapper = Wrapper;
27
- //# sourceMappingURL=styled.js.map
21
+ //# sourceMappingURL=styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","names":["Wrapper","styled","View","width","RFValueStr","height","theme","radius","borderRadius"],"sources":["../../../../src/components/atoms/Skeleton/styled.ts"],"sourcesContent":["import styled from '@emotion/native';\nimport { RFValueStr, StyleProps } from '@tecsinapse/react-core';\nimport { SkeletonProps } from './Skeleton';\n\nexport const Wrapper = styled.View<Partial<StyleProps & SkeletonProps>>`\n width: ${({ width }) => (width ? `${RFValueStr(`${width}px`)}` : '100%')};\n height: ${({ height }) => (height ? `${RFValueStr(`${height}px`)}` : 'auto')};\n border-radius: ${({ theme, radius }: StyleProps & Partial<SkeletonProps>) =>\n radius ? theme.borderRadius[radius] : 0};\n overflow: hidden;\n position: relative;\n`;\n"],"mappings":";;;;;AAAA;;AACA;;;;AAGO,MAAMA,OAAO,GAAGC,eAAA,CAAOC,IAA0C;AACxE,WAAW,CAAC;EAAEC;AAAF,CAAD,KAAgBA,KAAK,GAAI,GAAE,IAAAC,qBAAA,EAAY,GAAED,KAAM,IAApB,CAAyB,EAA/B,GAAmC,MAAQ;AAC3E,YAAY,CAAC;EAAEE;AAAF,CAAD,KAAiBA,MAAM,GAAI,GAAE,IAAAD,qBAAA,EAAY,GAAEC,MAAO,IAArB,CAA0B,EAAhC,GAAoC,MAAQ;AAC/E,mBAAmB,CAAC;EAAEC,KAAF;EAASC;AAAT,CAAD,KACfA,MAAM,GAAGD,KAAK,CAACE,YAAN,CAAmBD,MAAnB,CAAH,GAAgC,CAAE;AAC5C;AACA;AACA,CAPO"}
1
+ {"version":3,"file":"styled.js","sources":["../../../../src/components/atoms/Skeleton/styled.ts"],"sourcesContent":["import styled from '@emotion/native';\nimport { RFValueStr, StyleProps } from '@tecsinapse/react-core';\nimport { SkeletonProps } from './Skeleton';\n\nexport const Wrapper = styled.View<Partial<StyleProps & SkeletonProps>>`\n width: ${({ width }) => (width ? `${RFValueStr(`${width}px`)}` : '100%')};\n height: ${({ height }) => (height ? `${RFValueStr(`${height}px`)}` : 'auto')};\n border-radius: ${({ theme, radius }: StyleProps & Partial<SkeletonProps>) =>\n radius ? theme.borderRadius[radius] : 0};\n overflow: hidden;\n position: relative;\n`;\n"],"names":["styled","RFValueStr"],"mappings":";;;;;;;;;;;AAIO,MAAM,UAAUA,0BAAO,CAAA,IAAA,CAAA;AAAA,SACnB,EAAA,CAAC,EAAE,KAAM,EAAA,KAAO,QAAQ,CAAG,EAAAC,oBAAA,CAAW,CAAG,EAAA,KAAA,CAAA,EAAA,CAAS,CAAM,CAAA,CAAA,GAAA,MAAA,CAAA;AAAA,UACvD,EAAA,CAAC,EAAE,MAAO,EAAA,KAAO,SAAS,CAAG,EAAAA,oBAAA,CAAW,CAAG,EAAA,MAAA,CAAA,EAAA,CAAU,CAAM,CAAA,CAAA,GAAA,MAAA,CAAA;AAAA,iBACpD,EAAA,CAAC,EAAE,KAAO,EAAA,MAAA,OACzB,MAAS,GAAA,KAAA,CAAM,aAAa,MAAU,CAAA,GAAA,CAAA,CAAA;AAAA;AAAA;AAAA;;;;"}
@@ -1,51 +1,92 @@
1
- "use strict";
1
+ 'use strict';
2
2
 
3
- exports.__esModule = true;
4
- exports.default = void 0;
3
+ var React = require('react');
4
+ var reactNative = require('react-native');
5
+ var reactCore = require('@tecsinapse/react-core');
6
+ var react = require('@emotion/react');
5
7
 
6
- var React = _interopRequireWildcard(require("react"));
7
-
8
- var _reactNative = require("react-native");
9
-
10
- var _reactCore = require("@tecsinapse/react-core");
11
-
12
- var _react2 = require("@emotion/react");
13
-
14
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
-
16
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
-
18
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
-
20
- const SnappingSlider = ({
21
- children,
22
- showAmount,
23
- scrollAmount,
24
- spacing,
25
- ...rest
26
- }) => {
27
- const theme = (0, _react2.useTheme)();
28
- const childCount = React.Children.count(children);
8
+ function _interopNamespace(e) {
9
+ if (e && e.__esModule) return e;
10
+ var n = Object.create(null);
11
+ if (e) {
12
+ Object.keys(e).forEach(function (k) {
13
+ if (k !== 'default') {
14
+ var d = Object.getOwnPropertyDescriptor(e, k);
15
+ Object.defineProperty(n, k, d.get ? d : {
16
+ enumerable: true,
17
+ get: function () { return e[k]; }
18
+ });
19
+ }
20
+ });
21
+ }
22
+ n["default"] = e;
23
+ return Object.freeze(n);
24
+ }
29
25
 
30
- const screenWidth = _reactNative.Dimensions.get('window').width;
26
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
31
27
 
28
+ var __defProp = Object.defineProperty;
29
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
30
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
31
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
32
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
33
+ var __spreadValues = (a, b) => {
34
+ for (var prop in b || (b = {}))
35
+ if (__hasOwnProp.call(b, prop))
36
+ __defNormalProp(a, prop, b[prop]);
37
+ if (__getOwnPropSymbols)
38
+ for (var prop of __getOwnPropSymbols(b)) {
39
+ if (__propIsEnum.call(b, prop))
40
+ __defNormalProp(a, prop, b[prop]);
41
+ }
42
+ return a;
43
+ };
44
+ var __objRest = (source, exclude) => {
45
+ var target = {};
46
+ for (var prop in source)
47
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
48
+ target[prop] = source[prop];
49
+ if (source != null && __getOwnPropSymbols)
50
+ for (var prop of __getOwnPropSymbols(source)) {
51
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
52
+ target[prop] = source[prop];
53
+ }
54
+ return target;
55
+ };
56
+ const SnappingSlider = (_a) => {
57
+ var _b = _a, {
58
+ children,
59
+ showAmount,
60
+ scrollAmount,
61
+ spacing
62
+ } = _b, rest = __objRest(_b, [
63
+ "children",
64
+ "showAmount",
65
+ "scrollAmount",
66
+ "spacing"
67
+ ]);
68
+ const theme = react.useTheme();
69
+ const childCount = React__namespace.Children.count(children);
70
+ const screenWidth = reactNative.Dimensions.get("window").width;
32
71
  const totalSlideWidth = Math.round(screenWidth / showAmount);
33
- const horizontalPadding = spacing ? (0, _reactCore.extractNumbersFromString)(theme.spacing[spacing]) / 2 : 0;
34
- const snapToOffsets = [...Array(Math.ceil(childCount / scrollAmount)).keys()].map(index => {
72
+ const horizontalPadding = spacing ? reactCore.extractNumbersFromString(theme.spacing[spacing]) / 2 : 0;
73
+ const snapToOffsets = [
74
+ ...Array(Math.ceil(childCount / scrollAmount)).keys()
75
+ ].map((index) => {
35
76
  const offset = totalSlideWidth * scrollAmount * index;
36
77
  const padCompensation = horizontalPadding * Math.sign(index);
37
78
  return offset + padCompensation;
38
79
  });
39
- return React.createElement(_reactNative.ScrollView, _extends({
80
+ return /* @__PURE__ */ React__namespace.createElement(reactNative.ScrollView, __spreadValues({
40
81
  horizontal: true,
41
- snapToOffsets: snapToOffsets,
82
+ snapToOffsets,
42
83
  snapToStart: true,
43
84
  snapToEnd: true,
44
85
  showsHorizontalScrollIndicator: false
45
- }, rest), React.Children.map(children, (child, index) => {
86
+ }, rest), React__namespace.Children.map(children, (child, index) => {
46
87
  const isFirst = index === 0;
47
88
  const isLast = index === childCount - 1;
48
- return React.createElement(_reactNative.View, {
89
+ return /* @__PURE__ */ React__namespace.createElement(reactNative.View, {
49
90
  style: {
50
91
  width: totalSlideWidth,
51
92
  paddingHorizontal: horizontalPadding,
@@ -56,6 +97,5 @@ const SnappingSlider = ({
56
97
  }));
57
98
  };
58
99
 
59
- var _default = SnappingSlider;
60
- exports.default = _default;
61
- //# sourceMappingURL=SnappingSlider.js.map
100
+ module.exports = SnappingSlider;
101
+ //# sourceMappingURL=SnappingSlider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SnappingSlider.js","names":["SnappingSlider","children","showAmount","scrollAmount","spacing","rest","theme","useTheme","childCount","React","Children","count","screenWidth","Dimensions","get","width","totalSlideWidth","Math","round","horizontalPadding","extractNumbersFromString","snapToOffsets","Array","ceil","keys","map","index","offset","padCompensation","sign","child","isFirst","isLast","paddingHorizontal","paddingLeft","paddingRight"],"sources":["../../../../src/components/atoms/SnappingSlider/SnappingSlider.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Dimensions, ScrollView, ScrollViewProps, View } from 'react-native';\nimport {\n extractNumbersFromString,\n SpacingType,\n ThemeProp,\n} from '@tecsinapse/react-core';\nimport { useTheme } from '@emotion/react';\n\nexport interface SnappingSliderProps\n extends Omit<ScrollViewProps, 'horizontal' | 'snapToOffsets'> {\n /**\n * Amount in screen elements.\n * Should never be lower than scrollAmount, otherwise some elements will be skipped.\n */\n showAmount: number;\n\n /**\n * Amount of items to scroll within a single swipe.\n * Should never be greater than showAmount, otherwise some elements will be skipped.\n */\n scrollAmount: number;\n\n /**\n * Spacing between elements.\n * Must be one of [nano, micro, mili, centi, deca, kilo, mega, giga, tera, peta, hexa]\n */\n spacing?: SpacingType;\n}\n\nconst SnappingSlider: React.FC<SnappingSliderProps> = ({\n children,\n showAmount,\n scrollAmount,\n spacing,\n ...rest\n}) => {\n const theme = useTheme() as ThemeProp;\n\n const childCount = React.Children.count(children);\n const screenWidth = Dimensions.get('window').width;\n const totalSlideWidth = Math.round(screenWidth / showAmount);\n const horizontalPadding = spacing\n ? extractNumbersFromString(theme.spacing[spacing]) / 2\n : 0;\n\n const snapToOffsets = [\n ...Array(Math.ceil(childCount / scrollAmount)).keys(),\n ].map(index => {\n const offset = totalSlideWidth * scrollAmount * index;\n const padCompensation = horizontalPadding * Math.sign(index);\n return offset + padCompensation;\n });\n\n return (\n <ScrollView\n horizontal\n snapToOffsets={snapToOffsets}\n snapToStart\n snapToEnd\n showsHorizontalScrollIndicator={false}\n {...rest}\n >\n {React.Children.map(children, (child, index) => {\n const isFirst = index === 0;\n const isLast = index === childCount - 1;\n\n return (\n <View\n style={{\n width: totalSlideWidth,\n paddingHorizontal: horizontalPadding,\n paddingLeft: isFirst ? 0 : horizontalPadding,\n paddingRight: isLast ? 0 : horizontalPadding,\n }}\n >\n {child}\n </View>\n );\n })}\n </ScrollView>\n );\n};\n\nexport default SnappingSlider;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AAKA;;;;;;;;AAuBA,MAAMA,cAA6C,GAAG,CAAC;EACrDC,QADqD;EAErDC,UAFqD;EAGrDC,YAHqD;EAIrDC,OAJqD;EAKrD,GAAGC;AALkD,CAAD,KAMhD;EACJ,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,MAAMC,UAAU,GAAGC,KAAK,CAACC,QAAN,CAAeC,KAAf,CAAqBV,QAArB,CAAnB;;EACA,MAAMW,WAAW,GAAGC,uBAAA,CAAWC,GAAX,CAAe,QAAf,EAAyBC,KAA7C;;EACA,MAAMC,eAAe,GAAGC,IAAI,CAACC,KAAL,CAAWN,WAAW,GAAGV,UAAzB,CAAxB;EACA,MAAMiB,iBAAiB,GAAGf,OAAO,GAC7B,IAAAgB,mCAAA,EAAyBd,KAAK,CAACF,OAAN,CAAcA,OAAd,CAAzB,IAAmD,CADtB,GAE7B,CAFJ;EAIA,MAAMiB,aAAa,GAAG,CACpB,GAAGC,KAAK,CAACL,IAAI,CAACM,IAAL,CAAUf,UAAU,GAAGL,YAAvB,CAAD,CAAL,CAA4CqB,IAA5C,EADiB,EAEpBC,GAFoB,CAEhBC,KAAK,IAAI;IACb,MAAMC,MAAM,GAAGX,eAAe,GAAGb,YAAlB,GAAiCuB,KAAhD;IACA,MAAME,eAAe,GAAGT,iBAAiB,GAAGF,IAAI,CAACY,IAAL,CAAUH,KAAV,CAA5C;IACA,OAAOC,MAAM,GAAGC,eAAhB;EACD,CANqB,CAAtB;EAQA,OACE,oBAAC,uBAAD;IACE,UAAU,MADZ;IAEE,aAAa,EAAEP,aAFjB;IAGE,WAAW,MAHb;IAIE,SAAS,MAJX;IAKE,8BAA8B,EAAE;EALlC,GAMMhB,IANN,GAQGI,KAAK,CAACC,QAAN,CAAee,GAAf,CAAmBxB,QAAnB,EAA6B,CAAC6B,KAAD,EAAQJ,KAAR,KAAkB;IAC9C,MAAMK,OAAO,GAAGL,KAAK,KAAK,CAA1B;IACA,MAAMM,MAAM,GAAGN,KAAK,KAAKlB,UAAU,GAAG,CAAtC;IAEA,OACE,oBAAC,iBAAD;MACE,KAAK,EAAE;QACLO,KAAK,EAAEC,eADF;QAELiB,iBAAiB,EAAEd,iBAFd;QAGLe,WAAW,EAAEH,OAAO,GAAG,CAAH,GAAOZ,iBAHtB;QAILgB,YAAY,EAAEH,MAAM,GAAG,CAAH,GAAOb;MAJtB;IADT,GAQGW,KARH,CADF;EAYD,CAhBA,CARH,CADF;AA4BD,CApDD;;eAsDe9B,c"}
1
+ {"version":3,"file":"SnappingSlider.js","sources":["../../../../src/components/atoms/SnappingSlider/SnappingSlider.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Dimensions, ScrollView, ScrollViewProps, View } from 'react-native';\nimport {\n extractNumbersFromString,\n SpacingType,\n ThemeProp,\n} from '@tecsinapse/react-core';\nimport { useTheme } from '@emotion/react';\n\nexport interface SnappingSliderProps\n extends Omit<ScrollViewProps, 'horizontal' | 'snapToOffsets'> {\n /**\n * Amount in screen elements.\n * Should never be lower than scrollAmount, otherwise some elements will be skipped.\n */\n showAmount: number;\n\n /**\n * Amount of items to scroll within a single swipe.\n * Should never be greater than showAmount, otherwise some elements will be skipped.\n */\n scrollAmount: number;\n\n /**\n * Spacing between elements.\n * Must be one of [nano, micro, mili, centi, deca, kilo, mega, giga, tera, peta, hexa]\n */\n spacing?: SpacingType;\n}\n\nconst SnappingSlider: React.FC<SnappingSliderProps> = ({\n children,\n showAmount,\n scrollAmount,\n spacing,\n ...rest\n}) => {\n const theme = useTheme() as ThemeProp;\n\n const childCount = React.Children.count(children);\n const screenWidth = Dimensions.get('window').width;\n const totalSlideWidth = Math.round(screenWidth / showAmount);\n const horizontalPadding = spacing\n ? extractNumbersFromString(theme.spacing[spacing]) / 2\n : 0;\n\n const snapToOffsets = [\n ...Array(Math.ceil(childCount / scrollAmount)).keys(),\n ].map(index => {\n const offset = totalSlideWidth * scrollAmount * index;\n const padCompensation = horizontalPadding * Math.sign(index);\n return offset + padCompensation;\n });\n\n return (\n <ScrollView\n horizontal\n snapToOffsets={snapToOffsets}\n snapToStart\n snapToEnd\n showsHorizontalScrollIndicator={false}\n {...rest}\n >\n {React.Children.map(children, (child, index) => {\n const isFirst = index === 0;\n const isLast = index === childCount - 1;\n\n return (\n <View\n style={{\n width: totalSlideWidth,\n paddingHorizontal: horizontalPadding,\n paddingLeft: isFirst ? 0 : horizontalPadding,\n paddingRight: isLast ? 0 : horizontalPadding,\n }}\n >\n {child}\n </View>\n );\n })}\n </ScrollView>\n );\n};\n\nexport default SnappingSlider;\n"],"names":["useTheme","React","Dimensions","extractNumbersFromString","ScrollView","View"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BM,MAAA,cAAA,GAAgD,CAAC,EAMjD,KAAA;AANiD,EACrD,IAAA,EAAA,GAAA,EAAA,EAAA;AAAA,IAAA,QAAA;AAAA,IACA,UAAA;AAAA,IACA,YAAA;AAAA,IACA,OAAA;AAAA,GAlCF,GA8BuD,EAKlD,EAAA,IAAA,GAAA,SAAA,CALkD,EAKlD,EAAA;AAAA,IAJH,UAAA;AAAA,IACA,YAAA;AAAA,IACA,cAAA;AAAA,IACA,SAAA;AAAA,GAAA,CAAA,CAAA;AAGA,EAAA,MAAM,QAAQA,cAAS,EAAA,CAAA;AAEvB,EAAA,MAAM,UAAa,GAAAC,gBAAA,CAAM,QAAS,CAAA,KAAA,CAAM,QAAQ,CAAA,CAAA;AAChD,EAAA,MAAM,WAAc,GAAAC,sBAAA,CAAW,GAAI,CAAA,QAAQ,CAAE,CAAA,KAAA,CAAA;AAC7C,EAAA,MAAM,eAAkB,GAAA,IAAA,CAAK,KAAM,CAAA,WAAA,GAAc,UAAU,CAAA,CAAA;AAC3D,EAAA,MAAM,oBAAoB,OACtB,GAAAC,kCAAA,CAAyB,MAAM,OAAQ,CAAA,OAAA,CAAQ,IAAI,CACnD,GAAA,CAAA,CAAA;AAEJ,EAAA,MAAM,aAAgB,GAAA;AAAA,IACpB,GAAG,MAAM,IAAK,CAAA,IAAA,CAAK,aAAa,YAAY,CAAC,EAAE,IAAK,EAAA;AAAA,GACtD,CAAE,IAAI,CAAS,KAAA,KAAA;AACb,IAAM,MAAA,MAAA,GAAS,kBAAkB,YAAe,GAAA,KAAA,CAAA;AAChD,IAAA,MAAM,eAAkB,GAAA,iBAAA,GAAoB,IAAK,CAAA,IAAA,CAAK,KAAK,CAAA,CAAA;AAC3D,IAAA,OAAO,MAAS,GAAA,eAAA,CAAA;AAAA,GACjB,CAAA,CAAA;AAED,EAAA,uBACGF,gBAAA,CAAA,aAAA,CAAAG,sBAAA,EAAA,cAAA,CAAA;AAAA,IACC,UAAU,EAAA,IAAA;AAAA,IACV,aAAA;AAAA,IACA,WAAW,EAAA,IAAA;AAAA,IACX,SAAS,EAAA,IAAA;AAAA,IACT,8BAAgC,EAAA,KAAA;AAAA,GAAA,EAC5B,OAEHH,gBAAM,CAAA,QAAA,CAAS,IAAI,QAAU,EAAA,CAAC,OAAO,KAAU,KAAA;AAC9C,IAAA,MAAM,UAAU,KAAU,KAAA,CAAA,CAAA;AAC1B,IAAM,MAAA,MAAA,GAAS,UAAU,UAAa,GAAA,CAAA,CAAA;AAEtC,IAAA,uBACGA,gBAAA,CAAA,aAAA,CAAAI,gBAAA,EAAA;AAAA,MACC,KAAO,EAAA;AAAA,QACL,KAAO,EAAA,eAAA;AAAA,QACP,iBAAmB,EAAA,iBAAA;AAAA,QACnB,WAAA,EAAa,UAAU,CAAI,GAAA,iBAAA;AAAA,QAC3B,YAAA,EAAc,SAAS,CAAI,GAAA,iBAAA;AAAA,OAC7B;AAAA,KAAA,EAEC,KACH,CAAA,CAAA;AAAA,GAEH,CACH,CAAA,CAAA;AAEJ;;;;"}
@@ -1 +1,2 @@
1
- export { default as SnappingSlider, SnappingSliderProps, } from './SnappingSlider';
1
+ export { default as SnappingSlider } from './SnappingSlider';
2
+ export type { SnappingSliderProps } from './SnappingSlider';
@@ -1,33 +1,53 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.default = void 0;
5
-
6
- var _react = _interopRequireDefault(require("react"));
7
-
8
- var _reactCore = require("@tecsinapse/react-core");
9
-
10
- var _Text = require("../Text");
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15
-
16
- const Tag = ({
17
- value,
18
- ...rest
19
- }) => {
20
- return _react.default.createElement(_reactCore.Tag, _extends({
21
- value: _react.default.createElement(_Text.Text, {
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var reactCore = require('@tecsinapse/react-core');
5
+ var Text = require('../Text/Text.js');
6
+
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
10
+
11
+ var __defProp = Object.defineProperty;
12
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
15
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16
+ var __spreadValues = (a, b) => {
17
+ for (var prop in b || (b = {}))
18
+ if (__hasOwnProp.call(b, prop))
19
+ __defNormalProp(a, prop, b[prop]);
20
+ if (__getOwnPropSymbols)
21
+ for (var prop of __getOwnPropSymbols(b)) {
22
+ if (__propIsEnum.call(b, prop))
23
+ __defNormalProp(a, prop, b[prop]);
24
+ }
25
+ return a;
26
+ };
27
+ var __objRest = (source, exclude) => {
28
+ var target = {};
29
+ for (var prop in source)
30
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
31
+ target[prop] = source[prop];
32
+ if (source != null && __getOwnPropSymbols)
33
+ for (var prop of __getOwnPropSymbols(source)) {
34
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
35
+ target[prop] = source[prop];
36
+ }
37
+ return target;
38
+ };
39
+ const Tag = (_a) => {
40
+ var _b = _a, { value } = _b, rest = __objRest(_b, ["value"]);
41
+ return /* @__PURE__ */ React__default["default"].createElement(reactCore.Tag, __spreadValues({
42
+ value: /* @__PURE__ */ React__default["default"].createElement(Text, {
22
43
  colorVariant: "secondary",
23
44
  colorTone: "dark",
24
45
  fontStack: "default",
25
46
  fontWeight: "bold",
26
- typography: rest.variant === 'small' ? 'sub' : 'base'
47
+ typography: rest.variant === "small" ? "sub" : "base"
27
48
  }, value)
28
49
  }, rest));
29
50
  };
30
51
 
31
- var _default = Tag;
32
- exports.default = _default;
33
- //# sourceMappingURL=Tag.js.map
52
+ module.exports = Tag;
53
+ //# sourceMappingURL=Tag.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.js","names":["Tag","value","rest","variant"],"sources":["../../../../src/components/atoms/Tag/Tag.tsx"],"sourcesContent":["import React from 'react';\nimport {\n Tag as TagCore,\n TagProps as TagCoreProps,\n} from '@tecsinapse/react-core';\nimport { Text } from '../Text';\n\nexport interface TagProps extends Omit<TagCoreProps, 'value'> {\n value: string;\n}\n\nconst Tag: React.FC<TagProps> = ({ value, ...rest }): JSX.Element => {\n return (\n <TagCore\n value={\n <Text\n colorVariant=\"secondary\"\n colorTone=\"dark\"\n fontStack=\"default\"\n fontWeight=\"bold\"\n typography={rest.variant === 'small' ? 'sub' : 'base'}\n >\n {value}\n </Text>\n }\n {...rest}\n />\n );\n};\n\nexport default Tag;\n"],"mappings":";;;;;AAAA;;AACA;;AAIA;;;;;;AAMA,MAAMA,GAAuB,GAAG,CAAC;EAAEC,KAAF;EAAS,GAAGC;AAAZ,CAAD,KAAqC;EACnE,OACE,6BAAC,cAAD;IACE,KAAK,EACH,6BAAC,UAAD;MACE,YAAY,EAAC,WADf;MAEE,SAAS,EAAC,MAFZ;MAGE,SAAS,EAAC,SAHZ;MAIE,UAAU,EAAC,MAJb;MAKE,UAAU,EAAEA,IAAI,CAACC,OAAL,KAAiB,OAAjB,GAA2B,KAA3B,GAAmC;IALjD,GAOGF,KAPH;EAFJ,GAYMC,IAZN,EADF;AAgBD,CAjBD;;eAmBeF,G"}
1
+ {"version":3,"file":"Tag.js","sources":["../../../../src/components/atoms/Tag/Tag.tsx"],"sourcesContent":["import React from 'react';\nimport {\n Tag as TagCore,\n TagProps as TagCoreProps,\n} from '@tecsinapse/react-core';\nimport { Text } from '../Text';\n\nexport interface TagProps extends Omit<TagCoreProps, 'value'> {\n value: string;\n}\n\nconst Tag: React.FC<TagProps> = ({ value, ...rest }): JSX.Element => {\n return (\n <TagCore\n value={\n <Text\n colorVariant=\"secondary\"\n colorTone=\"dark\"\n fontStack=\"default\"\n fontWeight=\"bold\"\n typography={rest.variant === 'small' ? 'sub' : 'base'}\n >\n {value}\n </Text>\n }\n {...rest}\n />\n );\n};\n\nexport default Tag;\n"],"names":["React","TagCore"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWM,MAAA,GAAA,GAA0B,CAAC,EAAoC,KAAA;AAApC,EAAA,IAAA,EAAA,GAAA,EAAA,EAAE,EAXnC,KAAA,EAAA,GAWiC,EAAY,EAAA,IAAA,GAAA,SAAA,CAAZ,IAAY,CAAV,OAAA,CAAA,CAAA,CAAA;AACjC,EAAA,uBACGA,yBAAA,CAAA,aAAA,CAAAC,aAAA,EAAA,cAAA,CAAA;AAAA,IACC,uBACGD,yBAAA,CAAA,aAAA,CAAA,IAAA,EAAA;AAAA,MACC,YAAa,EAAA,WAAA;AAAA,MACb,SAAU,EAAA,MAAA;AAAA,MACV,SAAU,EAAA,SAAA;AAAA,MACV,UAAW,EAAA,MAAA;AAAA,MACX,UAAY,EAAA,IAAA,CAAK,OAAY,KAAA,OAAA,GAAU,KAAQ,GAAA,MAAA;AAAA,KAAA,EAE9C,KACH,CAAA;AAAA,GAAA,EAEE,IACN,CAAA,CAAA,CAAA;AAEJ;;;;"}
@@ -1 +1,2 @@
1
- export { default as Tag, TagProps } from './Tag';
1
+ export { default as Tag } from './Tag';
2
+ export type { TagProps } from './Tag';
@@ -1,21 +1,44 @@
1
- "use strict";
1
+ 'use strict';
2
2
 
3
- exports.__esModule = true;
4
- exports.default = void 0;
3
+ var React = require('react');
4
+ var styled = require('./styled.js');
5
5
 
6
- var _react = _interopRequireDefault(require("react"));
6
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
7
7
 
8
- var _styled = require("./styled");
8
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
9
9
 
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
-
12
- const Text = ({
13
- children,
14
- ...rest
15
- }) => {
16
- return _react.default.createElement(_styled.StyledNativeText, rest, children);
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
12
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
13
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
14
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15
+ var __spreadValues = (a, b) => {
16
+ for (var prop in b || (b = {}))
17
+ if (__hasOwnProp.call(b, prop))
18
+ __defNormalProp(a, prop, b[prop]);
19
+ if (__getOwnPropSymbols)
20
+ for (var prop of __getOwnPropSymbols(b)) {
21
+ if (__propIsEnum.call(b, prop))
22
+ __defNormalProp(a, prop, b[prop]);
23
+ }
24
+ return a;
25
+ };
26
+ var __objRest = (source, exclude) => {
27
+ var target = {};
28
+ for (var prop in source)
29
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
30
+ target[prop] = source[prop];
31
+ if (source != null && __getOwnPropSymbols)
32
+ for (var prop of __getOwnPropSymbols(source)) {
33
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
34
+ target[prop] = source[prop];
35
+ }
36
+ return target;
37
+ };
38
+ const Text = (_a) => {
39
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
40
+ return /* @__PURE__ */ React__default["default"].createElement(styled.StyledNativeText, __spreadValues({}, rest), children);
17
41
  };
18
42
 
19
- var _default = Text;
20
- exports.default = _default;
21
- //# sourceMappingURL=Text.js.map
43
+ module.exports = Text;
44
+ //# sourceMappingURL=Text.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.js","names":["Text","children","rest"],"sources":["../../../../src/components/atoms/Text/Text.tsx"],"sourcesContent":["import { TextProps } from '@tecsinapse/react-core';\nimport React, { FC } from 'react';\nimport { StyledNativeText } from './styled';\n\nexport type TextNativeProps = TextProps;\n\nconst Text: FC<TextNativeProps> = ({ children, ...rest }): JSX.Element => {\n return <StyledNativeText {...rest}>{children}</StyledNativeText>;\n};\n\nexport default Text;\n"],"mappings":";;;;;AACA;;AACA;;;;AAIA,MAAMA,IAAyB,GAAG,CAAC;EAAEC,QAAF;EAAY,GAAGC;AAAf,CAAD,KAAwC;EACxE,OAAO,6BAAC,wBAAD,EAAsBA,IAAtB,EAA6BD,QAA7B,CAAP;AACD,CAFD;;eAIeD,I"}
1
+ {"version":3,"file":"Text.js","sources":["../../../../src/components/atoms/Text/Text.tsx"],"sourcesContent":["import { TextProps } from '@tecsinapse/react-core';\nimport React, { FC } from 'react';\nimport { StyledNativeText } from './styled';\n\nexport type TextNativeProps = TextProps;\n\nconst Text: FC<TextNativeProps> = ({ children, ...rest }): JSX.Element => {\n return <StyledNativeText {...rest}>{children}</StyledNativeText>;\n};\n\nexport default Text;\n"],"names":["React","StyledNativeText"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMM,MAAA,IAAA,GAA4B,CAAC,EAAuC,KAAA;AAAvC,EAAA,IAAA,EAAA,GAAA,EAAA,EAAE,EANrC,QAAA,EAAA,GAMmC,EAAe,EAAA,IAAA,GAAA,SAAA,CAAf,IAAe,CAAb,UAAA,CAAA,CAAA,CAAA;AACnC,EAAO,uBAAAA,yBAAA,CAAA,aAAA,CAACC,uBAAqB,EAAA,cAAA,CAAA,EAAA,EAAA,IAAA,CAAA,EAAO,QAAS,CAAA,CAAA;AAC/C;;;;"}