@tecsinapse/react-core 1.19.0 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (687) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/babel.config.esm.js +34 -0
  3. package/dist/components/atoms/Avatar/Avatar.js +12 -8
  4. package/dist/components/atoms/Avatar/Avatar.js.map +1 -1
  5. package/dist/components/atoms/Avatar/helpers.js +3 -1
  6. package/dist/components/atoms/Avatar/helpers.js.map +1 -1
  7. package/dist/components/atoms/Avatar/index.d.ts +2 -1
  8. package/dist/components/atoms/Avatar/index.js +11 -9
  9. package/dist/components/atoms/Avatar/index.js.map +1 -1
  10. package/dist/components/atoms/Avatar/styled.js +38 -39
  11. package/dist/components/atoms/Avatar/styled.js.map +1 -1
  12. package/dist/components/atoms/Badge/Badge.js +11 -8
  13. package/dist/components/atoms/Badge/Badge.js.map +1 -1
  14. package/dist/components/atoms/Badge/index.d.ts +2 -1
  15. package/dist/components/atoms/Badge/index.js +11 -9
  16. package/dist/components/atoms/Badge/index.js.map +1 -1
  17. package/dist/components/atoms/Badge/styled.js +15 -24
  18. package/dist/components/atoms/Badge/styled.js.map +1 -1
  19. package/dist/components/atoms/BoxContent/BoxContent.js +8 -5
  20. package/dist/components/atoms/BoxContent/BoxContent.js.map +1 -1
  21. package/dist/components/atoms/BoxContent/index.d.ts +2 -1
  22. package/dist/components/atoms/BoxContent/index.js +11 -9
  23. package/dist/components/atoms/BoxContent/index.js.map +1 -1
  24. package/dist/components/atoms/BoxContent/styled.js +62 -57
  25. package/dist/components/atoms/BoxContent/styled.js.map +1 -1
  26. package/dist/components/atoms/Button/Button.js +19 -16
  27. package/dist/components/atoms/Button/Button.js.map +1 -1
  28. package/dist/components/atoms/Button/States/BaseState.js +11 -8
  29. package/dist/components/atoms/Button/States/BaseState.js.map +1 -1
  30. package/dist/components/atoms/Button/States/Error.js +3 -1
  31. package/dist/components/atoms/Button/States/Error.js.map +1 -1
  32. package/dist/components/atoms/Button/States/Loading.js +10 -7
  33. package/dist/components/atoms/Button/States/Loading.js.map +1 -1
  34. package/dist/components/atoms/Button/States/Success.js +3 -1
  35. package/dist/components/atoms/Button/States/Success.js.map +1 -1
  36. package/dist/components/atoms/Button/States/index.js +21 -8
  37. package/dist/components/atoms/Button/States/index.js.map +1 -1
  38. package/dist/components/atoms/Button/States/styled.js +31 -19
  39. package/dist/components/atoms/Button/States/styled.js.map +1 -1
  40. package/dist/components/atoms/Button/index.d.ts +2 -1
  41. package/dist/components/atoms/Button/index.js +29 -16
  42. package/dist/components/atoms/Button/index.js.map +1 -1
  43. package/dist/components/atoms/Button/styled.js +33 -36
  44. package/dist/components/atoms/Button/styled.js.map +1 -1
  45. package/dist/components/atoms/Card/Card.js +11 -7
  46. package/dist/components/atoms/Card/Card.js.map +1 -1
  47. package/dist/components/atoms/Card/Footer/Footer.js +12 -7
  48. package/dist/components/atoms/Card/Footer/Footer.js.map +1 -1
  49. package/dist/components/atoms/Card/Footer/index.d.ts +2 -1
  50. package/dist/components/atoms/Card/Footer/index.js +11 -9
  51. package/dist/components/atoms/Card/Footer/index.js.map +1 -1
  52. package/dist/components/atoms/Card/Header/Header.js +12 -7
  53. package/dist/components/atoms/Card/Header/Header.js.map +1 -1
  54. package/dist/components/atoms/Card/Header/index.d.ts +2 -1
  55. package/dist/components/atoms/Card/Header/index.js +11 -9
  56. package/dist/components/atoms/Card/Header/index.js.map +1 -1
  57. package/dist/components/atoms/Card/index.d.ts +2 -1
  58. package/dist/components/atoms/Card/index.js +11 -9
  59. package/dist/components/atoms/Card/index.js.map +1 -1
  60. package/dist/components/atoms/Card/styled.js +8 -5
  61. package/dist/components/atoms/Card/styled.js.map +1 -1
  62. package/dist/components/atoms/Checkbox/Checkbox.js +15 -11
  63. package/dist/components/atoms/Checkbox/Checkbox.js.map +1 -1
  64. package/dist/components/atoms/Checkbox/index.d.ts +2 -1
  65. package/dist/components/atoms/Checkbox/index.js +11 -9
  66. package/dist/components/atoms/Checkbox/index.js.map +1 -1
  67. package/dist/components/atoms/Checkbox/styled.js +62 -44
  68. package/dist/components/atoms/Checkbox/styled.js.map +1 -1
  69. package/dist/components/atoms/Divider/Divider.js +8 -5
  70. package/dist/components/atoms/Divider/Divider.js.map +1 -1
  71. package/dist/components/atoms/Divider/index.d.ts +2 -1
  72. package/dist/components/atoms/Divider/index.js +11 -9
  73. package/dist/components/atoms/Divider/index.js.map +1 -1
  74. package/dist/components/atoms/Divider/styled.js +33 -26
  75. package/dist/components/atoms/Divider/styled.js.map +1 -1
  76. package/dist/components/atoms/GroupButton/GroupButton.js +24 -20
  77. package/dist/components/atoms/GroupButton/GroupButton.js.map +1 -1
  78. package/dist/components/atoms/GroupButton/GroupButtonOption.js +9 -6
  79. package/dist/components/atoms/GroupButton/GroupButtonOption.js.map +1 -1
  80. package/dist/components/atoms/GroupButton/index.d.ts +4 -2
  81. package/dist/components/atoms/GroupButton/index.js +18 -14
  82. package/dist/components/atoms/GroupButton/index.js.map +1 -1
  83. package/dist/components/atoms/GroupButton/styled.js +97 -100
  84. package/dist/components/atoms/GroupButton/styled.js.map +1 -1
  85. package/dist/components/atoms/Icon/Icon.js +14 -11
  86. package/dist/components/atoms/Icon/Icon.js.map +1 -1
  87. package/dist/components/atoms/Icon/helpers.js +13 -7
  88. package/dist/components/atoms/Icon/helpers.js.map +1 -1
  89. package/dist/components/atoms/Icon/index.d.ts +2 -1
  90. package/dist/components/atoms/Icon/index.js +11 -9
  91. package/dist/components/atoms/Icon/index.js.map +1 -1
  92. package/dist/components/atoms/Input/Hint.js +9 -6
  93. package/dist/components/atoms/Input/Hint.js.map +1 -1
  94. package/dist/components/atoms/Input/InputContainer/InputContainer.js +22 -19
  95. package/dist/components/atoms/Input/InputContainer/InputContainer.js.map +1 -1
  96. package/dist/components/atoms/Input/InputElement/InputElement.js +12 -9
  97. package/dist/components/atoms/Input/InputElement/InputElement.js.map +1 -1
  98. package/dist/components/atoms/Input/InputMaskElement/InputMaskElement.js +16 -13
  99. package/dist/components/atoms/Input/InputMaskElement/InputMaskElement.js.map +1 -1
  100. package/dist/components/atoms/Input/PressableInputContainer/PressableInputContainer.js +11 -8
  101. package/dist/components/atoms/Input/PressableInputContainer/PressableInputContainer.js.map +1 -1
  102. package/dist/components/atoms/Input/PressableInputContainer/index.d.ts +2 -1
  103. package/dist/components/atoms/Input/PressableInputContainer/index.js +11 -9
  104. package/dist/components/atoms/Input/PressableInputContainer/index.js.map +1 -1
  105. package/dist/components/atoms/Input/PressableInputContainer/styled.js +9 -4
  106. package/dist/components/atoms/Input/PressableInputContainer/styled.js.map +1 -1
  107. package/dist/components/atoms/Input/hooks/useInputFocus.js +5 -2
  108. package/dist/components/atoms/Input/hooks/useInputFocus.js.map +1 -1
  109. package/dist/components/atoms/Input/hooks/useNumberMask.js +7 -4
  110. package/dist/components/atoms/Input/hooks/useNumberMask.js.map +1 -1
  111. package/dist/components/atoms/Input/hooks/useStringMask.js +10 -5
  112. package/dist/components/atoms/Input/hooks/useStringMask.js.map +1 -1
  113. package/dist/components/atoms/Input/index.d.ts +8 -4
  114. package/dist/components/atoms/Input/index.js +66 -35
  115. package/dist/components/atoms/Input/index.js.map +1 -1
  116. package/dist/components/atoms/Input/styled.js +119 -106
  117. package/dist/components/atoms/Input/styled.js.map +1 -1
  118. package/dist/components/atoms/Paper/Paper.js +13 -8
  119. package/dist/components/atoms/Paper/Paper.js.map +1 -1
  120. package/dist/components/atoms/Paper/index.d.ts +2 -1
  121. package/dist/components/atoms/Paper/index.js +11 -9
  122. package/dist/components/atoms/Paper/index.js.map +1 -1
  123. package/dist/components/atoms/Paper/styled.js +8 -5
  124. package/dist/components/atoms/Paper/styled.js.map +1 -1
  125. package/dist/components/atoms/PressableSurface/PressableSurface.js +27 -18
  126. package/dist/components/atoms/PressableSurface/PressableSurface.js.map +1 -1
  127. package/dist/components/atoms/PressableSurface/index.d.ts +2 -1
  128. package/dist/components/atoms/PressableSurface/index.js +11 -9
  129. package/dist/components/atoms/PressableSurface/index.js.map +1 -1
  130. package/dist/components/atoms/ProgressBar/ProgressBar.js +20 -15
  131. package/dist/components/atoms/ProgressBar/ProgressBar.js.map +1 -1
  132. package/dist/components/atoms/ProgressBar/index.d.ts +2 -1
  133. package/dist/components/atoms/ProgressBar/index.js +11 -9
  134. package/dist/components/atoms/ProgressBar/index.js.map +1 -1
  135. package/dist/components/atoms/ProgressBar/styled.js +38 -29
  136. package/dist/components/atoms/ProgressBar/styled.js.map +1 -1
  137. package/dist/components/atoms/RadioButton/RadioButton.js +15 -11
  138. package/dist/components/atoms/RadioButton/RadioButton.js.map +1 -1
  139. package/dist/components/atoms/RadioButton/index.d.ts +2 -1
  140. package/dist/components/atoms/RadioButton/index.js +11 -9
  141. package/dist/components/atoms/RadioButton/index.js.map +1 -1
  142. package/dist/components/atoms/RadioButton/styled.js +38 -29
  143. package/dist/components/atoms/RadioButton/styled.js.map +1 -1
  144. package/dist/components/atoms/Switch/Switch.js +15 -12
  145. package/dist/components/atoms/Switch/Switch.js.map +1 -1
  146. package/dist/components/atoms/Switch/animation.js +3 -1
  147. package/dist/components/atoms/Switch/animation.js.map +1 -1
  148. package/dist/components/atoms/Switch/index.d.ts +2 -1
  149. package/dist/components/atoms/Switch/index.js +11 -9
  150. package/dist/components/atoms/Switch/index.js.map +1 -1
  151. package/dist/components/atoms/Switch/styled.js +29 -22
  152. package/dist/components/atoms/Switch/styled.js.map +1 -1
  153. package/dist/components/atoms/Tag/Tag.js +14 -11
  154. package/dist/components/atoms/Tag/Tag.js.map +1 -1
  155. package/dist/components/atoms/Tag/index.d.ts +2 -1
  156. package/dist/components/atoms/Tag/index.js +11 -9
  157. package/dist/components/atoms/Tag/index.js.map +1 -1
  158. package/dist/components/atoms/Tag/styled.js +47 -43
  159. package/dist/components/atoms/Tag/styled.js.map +1 -1
  160. package/dist/components/atoms/Text/Text.js +18 -15
  161. package/dist/components/atoms/Text/Text.js.map +1 -1
  162. package/dist/components/atoms/Text/functions.js +3 -1
  163. package/dist/components/atoms/Text/functions.js.map +1 -1
  164. package/dist/components/atoms/Text/index.d.ts +2 -1
  165. package/dist/components/atoms/Text/index.js +11 -9
  166. package/dist/components/atoms/Text/index.js.map +1 -1
  167. package/dist/components/atoms/Text/styled.js +51 -33
  168. package/dist/components/atoms/Text/styled.js.map +1 -1
  169. package/dist/components/atoms/shared/PaperAndCard.js +29 -20
  170. package/dist/components/atoms/shared/PaperAndCard.js.map +1 -1
  171. package/dist/components/molecules/Calendar/Calendar.js +20 -16
  172. package/dist/components/molecules/Calendar/Calendar.js.map +1 -1
  173. package/dist/components/molecules/Calendar/components/MonthWeek.js +16 -12
  174. package/dist/components/molecules/Calendar/components/MonthWeek.js.map +1 -1
  175. package/dist/components/molecules/Calendar/components/Weekdays.js +9 -6
  176. package/dist/components/molecules/Calendar/components/Weekdays.js.map +1 -1
  177. package/dist/components/molecules/Calendar/components/index.js +15 -6
  178. package/dist/components/molecules/Calendar/components/index.js.map +1 -1
  179. package/dist/components/molecules/Calendar/index.d.ts +2 -1
  180. package/dist/components/molecules/Calendar/index.js +11 -12
  181. package/dist/components/molecules/Calendar/index.js.map +1 -1
  182. package/dist/components/molecules/Calendar/styled.js +58 -70
  183. package/dist/components/molecules/Calendar/styled.js.map +1 -1
  184. package/dist/components/molecules/DatePicker/DatePicker.js +33 -30
  185. package/dist/components/molecules/DatePicker/DatePicker.js.map +1 -1
  186. package/dist/components/molecules/DatePicker/index.d.ts +2 -1
  187. package/dist/components/molecules/DatePicker/index.js +11 -9
  188. package/dist/components/molecules/DatePicker/index.js.map +1 -1
  189. package/dist/components/molecules/DatePicker/styled.js +19 -13
  190. package/dist/components/molecules/DatePicker/styled.js.map +1 -1
  191. package/dist/components/molecules/DateTimePicker/DateTimePicker.js +42 -39
  192. package/dist/components/molecules/DateTimePicker/DateTimePicker.js.map +1 -1
  193. package/dist/components/molecules/DateTimePicker/index.d.ts +2 -1
  194. package/dist/components/molecules/DateTimePicker/index.js +11 -9
  195. package/dist/components/molecules/DateTimePicker/index.js.map +1 -1
  196. package/dist/components/molecules/DateTimePicker/styled.js +13 -6
  197. package/dist/components/molecules/DateTimePicker/styled.js.map +1 -1
  198. package/dist/components/molecules/DateTimeSelector/DateTimeSelector.js +28 -26
  199. package/dist/components/molecules/DateTimeSelector/DateTimeSelector.js.map +1 -1
  200. package/dist/components/molecules/DateTimeSelector/Selector.js +18 -14
  201. package/dist/components/molecules/DateTimeSelector/Selector.js.map +1 -1
  202. package/dist/components/molecules/DateTimeSelector/index.d.ts +2 -1
  203. package/dist/components/molecules/DateTimeSelector/index.js +11 -10
  204. package/dist/components/molecules/DateTimeSelector/index.js.map +1 -1
  205. package/dist/components/molecules/DateTimeSelector/styled.js +88 -68
  206. package/dist/components/molecules/DateTimeSelector/styled.js.map +1 -1
  207. package/dist/components/molecules/Grid/functions.js +6 -2
  208. package/dist/components/molecules/Grid/functions.js.map +1 -1
  209. package/dist/components/molecules/Grid/index.js +15 -5
  210. package/dist/components/molecules/Grid/index.js.map +1 -1
  211. package/dist/components/molecules/HintInputContainer/HintInputContainer.js +18 -14
  212. package/dist/components/molecules/HintInputContainer/HintInputContainer.js.map +1 -1
  213. package/dist/components/molecules/HintInputContainer/index.js +9 -4
  214. package/dist/components/molecules/HintInputContainer/index.js.map +1 -1
  215. package/dist/components/molecules/IconTextButton/IconComponent.js +13 -8
  216. package/dist/components/molecules/IconTextButton/IconComponent.js.map +1 -1
  217. package/dist/components/molecules/IconTextButton/IconTextButton.js +3 -1
  218. package/dist/components/molecules/IconTextButton/index.d.ts +1 -1
  219. package/dist/components/molecules/IconTextButton/index.js +9 -9
  220. package/dist/components/molecules/IconTextButton/index.js.map +1 -1
  221. package/dist/components/molecules/IconTextButton/styled.js +15 -14
  222. package/dist/components/molecules/IconTextButton/styled.js.map +1 -1
  223. package/dist/components/molecules/InputPassword/InputPasswordIcon.js +9 -6
  224. package/dist/components/molecules/InputPassword/InputPasswordIcon.js.map +1 -1
  225. package/dist/components/molecules/InputPassword/index.js +9 -4
  226. package/dist/components/molecules/InputPassword/index.js.map +1 -1
  227. package/dist/components/molecules/InputPassword/styled.js +13 -6
  228. package/dist/components/molecules/InputPassword/styled.js.map +1 -1
  229. package/dist/components/molecules/LabeledSwitch/LabeledSwitch.js +3 -1
  230. package/dist/components/molecules/LabeledSwitch/index.d.ts +1 -1
  231. package/dist/components/molecules/LabeledSwitch/index.js +3 -7
  232. package/dist/components/molecules/LabeledSwitch/index.js.map +1 -1
  233. package/dist/components/molecules/Snackbar/Snackbar.js +24 -20
  234. package/dist/components/molecules/Snackbar/Snackbar.js.map +1 -1
  235. package/dist/components/molecules/Snackbar/index.d.ts +2 -1
  236. package/dist/components/molecules/Snackbar/index.js +11 -9
  237. package/dist/components/molecules/Snackbar/index.js.map +1 -1
  238. package/dist/components/molecules/Snackbar/styled.js +52 -76
  239. package/dist/components/molecules/Snackbar/styled.js.map +1 -1
  240. package/dist/components/molecules/TextArea/TextArea.js +29 -26
  241. package/dist/components/molecules/TextArea/TextArea.js.map +1 -1
  242. package/dist/components/molecules/TextArea/index.d.ts +2 -1
  243. package/dist/components/molecules/TextArea/index.js +17 -11
  244. package/dist/components/molecules/TextArea/index.js.map +1 -1
  245. package/dist/components/molecules/TextArea/styled.js +15 -13
  246. package/dist/components/molecules/TextArea/styled.js.map +1 -1
  247. package/dist/hooks/index.js +15 -6
  248. package/dist/hooks/index.js.map +1 -1
  249. package/dist/hooks/useDebouncedState.js +5 -2
  250. package/dist/hooks/useDebouncedState.js.map +1 -1
  251. package/dist/hooks/useTheme.js +3 -1
  252. package/dist/hooks/useTheme.js.map +1 -1
  253. package/dist/index.d.ts +57 -29
  254. package/dist/index.js +303 -187
  255. package/dist/index.js.map +1 -1
  256. package/dist/styles/ThemeProvider.js +8 -5
  257. package/dist/styles/ThemeProvider.js.map +1 -1
  258. package/dist/styles/definitions.js +6 -3
  259. package/dist/styles/definitions.js.map +1 -1
  260. package/dist/styles/light.js +3 -1
  261. package/dist/styles/light.js.map +1 -1
  262. package/dist/types/defaults.js +3 -1
  263. package/dist/utils/IPhoneXHelper.js +3 -1
  264. package/dist/utils/IPhoneXHelper.js.map +1 -1
  265. package/dist/utils/ResponsiveFontSize.js +6 -3
  266. package/dist/utils/ResponsiveFontSize.js.map +1 -1
  267. package/dist/utils/extractNumbersFromString.js +3 -1
  268. package/dist/utils/extractNumbersFromString.js.map +1 -1
  269. package/dist/utils/formatWithMask.js +3 -1
  270. package/dist/utils/formatWithMask.js.map +1 -1
  271. package/dist/utils/index.js +51 -12
  272. package/dist/utils/index.js.map +1 -1
  273. package/dist/utils/lightenDarkenColor.js +3 -1
  274. package/dist/utils/lightenDarkenColor.js.map +1 -1
  275. package/dist/utils/masks.js +5 -3
  276. package/dist/utils/masks.js.map +1 -1
  277. package/dist/utils/variantComplement.js +3 -1
  278. package/dist/utils/variantComplement.js.map +1 -1
  279. package/esm/components/atoms/Avatar/Avatar.d.ts +14 -0
  280. package/esm/components/atoms/Avatar/Avatar.js +50 -0
  281. package/esm/components/atoms/Avatar/Avatar.js.map +1 -0
  282. package/esm/components/atoms/Avatar/helpers.d.ts +1 -0
  283. package/esm/components/atoms/Avatar/helpers.js +12 -0
  284. package/esm/components/atoms/Avatar/helpers.js.map +1 -0
  285. package/esm/components/atoms/Avatar/index.d.ts +2 -0
  286. package/esm/components/atoms/Avatar/index.js +2 -0
  287. package/esm/components/atoms/Avatar/index.js.map +1 -0
  288. package/esm/components/atoms/Avatar/styled.d.ts +28 -0
  289. package/esm/components/atoms/Avatar/styled.js +33 -0
  290. package/esm/components/atoms/Avatar/styled.js.map +1 -0
  291. package/esm/components/atoms/Badge/Badge.d.ts +11 -0
  292. package/esm/components/atoms/Badge/Badge.js +20 -0
  293. package/esm/components/atoms/Badge/Badge.js.map +1 -0
  294. package/esm/components/atoms/Badge/index.d.ts +2 -0
  295. package/esm/components/atoms/Badge/index.js +2 -0
  296. package/esm/components/atoms/Badge/index.js.map +1 -0
  297. package/esm/components/atoms/Badge/styled.d.ts +15 -0
  298. package/esm/components/atoms/Badge/styled.js +20 -0
  299. package/esm/components/atoms/Badge/styled.js.map +1 -0
  300. package/esm/components/atoms/BoxContent/BoxContent.d.ts +7 -0
  301. package/esm/components/atoms/BoxContent/BoxContent.js +18 -0
  302. package/esm/components/atoms/BoxContent/BoxContent.js.map +1 -0
  303. package/esm/components/atoms/BoxContent/index.d.ts +2 -0
  304. package/esm/components/atoms/BoxContent/index.js +2 -0
  305. package/esm/components/atoms/BoxContent/index.js.map +1 -0
  306. package/esm/components/atoms/BoxContent/styled.d.ts +24 -0
  307. package/esm/components/atoms/BoxContent/styled.js +55 -0
  308. package/esm/components/atoms/BoxContent/styled.js.map +1 -0
  309. package/esm/components/atoms/Button/Button.d.ts +28 -0
  310. package/esm/components/atoms/Button/Button.js +76 -0
  311. package/esm/components/atoms/Button/Button.js.map +1 -0
  312. package/esm/components/atoms/Button/States/BaseState.d.ts +7 -0
  313. package/esm/components/atoms/Button/States/BaseState.js +29 -0
  314. package/esm/components/atoms/Button/States/BaseState.js.map +1 -0
  315. package/esm/components/atoms/Button/States/Error.d.ts +4 -0
  316. package/esm/components/atoms/Button/States/Error.js +11 -0
  317. package/esm/components/atoms/Button/States/Error.js.map +1 -0
  318. package/esm/components/atoms/Button/States/Loading.d.ts +4 -0
  319. package/esm/components/atoms/Button/States/Loading.js +26 -0
  320. package/esm/components/atoms/Button/States/Loading.js.map +1 -0
  321. package/esm/components/atoms/Button/States/Success.d.ts +4 -0
  322. package/esm/components/atoms/Button/States/Success.js +11 -0
  323. package/esm/components/atoms/Button/States/Success.js.map +1 -0
  324. package/esm/components/atoms/Button/States/index.d.ts +3 -0
  325. package/esm/components/atoms/Button/States/index.js +4 -0
  326. package/esm/components/atoms/Button/States/index.js.map +1 -0
  327. package/esm/components/atoms/Button/States/styled.d.ts +16 -0
  328. package/esm/components/atoms/Button/States/styled.js +25 -0
  329. package/esm/components/atoms/Button/States/styled.js.map +1 -0
  330. package/esm/components/atoms/Button/index.d.ts +3 -0
  331. package/esm/components/atoms/Button/index.js +3 -0
  332. package/esm/components/atoms/Button/index.js.map +1 -0
  333. package/esm/components/atoms/Button/styled.d.ts +8 -0
  334. package/esm/components/atoms/Button/styled.js +42 -0
  335. package/esm/components/atoms/Button/styled.js.map +1 -0
  336. package/esm/components/atoms/Card/Card.d.ts +9 -0
  337. package/esm/components/atoms/Card/Card.js +33 -0
  338. package/esm/components/atoms/Card/Card.js.map +1 -0
  339. package/esm/components/atoms/Card/Footer/Footer.d.ts +7 -0
  340. package/esm/components/atoms/Card/Footer/Footer.js +13 -0
  341. package/esm/components/atoms/Card/Footer/Footer.js.map +1 -0
  342. package/esm/components/atoms/Card/Footer/index.d.ts +2 -0
  343. package/esm/components/atoms/Card/Footer/index.js +2 -0
  344. package/esm/components/atoms/Card/Footer/index.js.map +1 -0
  345. package/esm/components/atoms/Card/Header/Header.d.ts +7 -0
  346. package/esm/components/atoms/Card/Header/Header.js +13 -0
  347. package/esm/components/atoms/Card/Header/Header.js.map +1 -0
  348. package/esm/components/atoms/Card/Header/index.d.ts +2 -0
  349. package/esm/components/atoms/Card/Header/index.js +2 -0
  350. package/esm/components/atoms/Card/Header/index.js.map +1 -0
  351. package/esm/components/atoms/Card/index.d.ts +2 -0
  352. package/esm/components/atoms/Card/index.js +2 -0
  353. package/esm/components/atoms/Card/index.js.map +1 -0
  354. package/esm/components/atoms/Card/styled.d.ts +8 -0
  355. package/esm/components/atoms/Card/styled.js +11 -0
  356. package/esm/components/atoms/Card/styled.js.map +1 -0
  357. package/esm/components/atoms/Checkbox/Checkbox.d.ts +14 -0
  358. package/esm/components/atoms/Checkbox/Checkbox.js +56 -0
  359. package/esm/components/atoms/Checkbox/Checkbox.js.map +1 -0
  360. package/esm/components/atoms/Checkbox/index.d.ts +2 -0
  361. package/esm/components/atoms/Checkbox/index.js +2 -0
  362. package/esm/components/atoms/Checkbox/index.js.map +1 -0
  363. package/esm/components/atoms/Checkbox/styled.d.ts +27 -0
  364. package/esm/components/atoms/Checkbox/styled.js +50 -0
  365. package/esm/components/atoms/Checkbox/styled.js.map +1 -0
  366. package/esm/components/atoms/Divider/Divider.d.ts +8 -0
  367. package/esm/components/atoms/Divider/Divider.js +18 -0
  368. package/esm/components/atoms/Divider/Divider.js.map +1 -0
  369. package/esm/components/atoms/Divider/index.d.ts +2 -0
  370. package/esm/components/atoms/Divider/index.js +2 -0
  371. package/esm/components/atoms/Divider/index.js.map +1 -0
  372. package/esm/components/atoms/Divider/styled.d.ts +13 -0
  373. package/esm/components/atoms/Divider/styled.js +28 -0
  374. package/esm/components/atoms/Divider/styled.js.map +1 -0
  375. package/esm/components/atoms/GroupButton/GroupButton.d.ts +32 -0
  376. package/esm/components/atoms/GroupButton/GroupButton.js +78 -0
  377. package/esm/components/atoms/GroupButton/GroupButton.js.map +1 -0
  378. package/esm/components/atoms/GroupButton/GroupButtonOption.d.ts +9 -0
  379. package/esm/components/atoms/GroupButton/GroupButtonOption.js +19 -0
  380. package/esm/components/atoms/GroupButton/GroupButtonOption.js.map +1 -0
  381. package/esm/components/atoms/GroupButton/index.d.ts +4 -0
  382. package/esm/components/atoms/GroupButton/index.js +3 -0
  383. package/esm/components/atoms/GroupButton/index.js.map +1 -0
  384. package/esm/components/atoms/GroupButton/styled.d.ts +42 -0
  385. package/esm/components/atoms/GroupButton/styled.js +97 -0
  386. package/esm/components/atoms/GroupButton/styled.js.map +1 -0
  387. package/esm/components/atoms/Icon/Icon.d.ts +14 -0
  388. package/esm/components/atoms/Icon/Icon.js +37 -0
  389. package/esm/components/atoms/Icon/Icon.js.map +1 -0
  390. package/esm/components/atoms/Icon/helpers.d.ts +4 -0
  391. package/esm/components/atoms/Icon/helpers.js +78 -0
  392. package/esm/components/atoms/Icon/helpers.js.map +1 -0
  393. package/esm/components/atoms/Icon/index.d.ts +2 -0
  394. package/esm/components/atoms/Icon/index.js +2 -0
  395. package/esm/components/atoms/Icon/index.js.map +1 -0
  396. package/esm/components/atoms/Input/Hint.d.ts +10 -0
  397. package/esm/components/atoms/Input/Hint.js +41 -0
  398. package/esm/components/atoms/Input/Hint.js.map +1 -0
  399. package/esm/components/atoms/Input/InputContainer/InputContainer.d.ts +29 -0
  400. package/esm/components/atoms/Input/InputContainer/InputContainer.js +66 -0
  401. package/esm/components/atoms/Input/InputContainer/InputContainer.js.map +1 -0
  402. package/esm/components/atoms/Input/InputElement/InputElement.d.ts +13 -0
  403. package/esm/components/atoms/Input/InputElement/InputElement.js +37 -0
  404. package/esm/components/atoms/Input/InputElement/InputElement.js.map +1 -0
  405. package/esm/components/atoms/Input/InputMaskElement/InputMaskElement.d.ts +16 -0
  406. package/esm/components/atoms/Input/InputMaskElement/InputMaskElement.js +92 -0
  407. package/esm/components/atoms/Input/InputMaskElement/InputMaskElement.js.map +1 -0
  408. package/esm/components/atoms/Input/PressableInputContainer/PressableInputContainer.d.ts +10 -0
  409. package/esm/components/atoms/Input/PressableInputContainer/PressableInputContainer.js +30 -0
  410. package/esm/components/atoms/Input/PressableInputContainer/PressableInputContainer.js.map +1 -0
  411. package/esm/components/atoms/Input/PressableInputContainer/index.d.ts +2 -0
  412. package/esm/components/atoms/Input/PressableInputContainer/index.js +2 -0
  413. package/esm/components/atoms/Input/PressableInputContainer/index.js.map +1 -0
  414. package/esm/components/atoms/Input/PressableInputContainer/styled.d.ts +5 -0
  415. package/esm/components/atoms/Input/PressableInputContainer/styled.js +7 -0
  416. package/esm/components/atoms/Input/PressableInputContainer/styled.js.map +1 -0
  417. package/esm/components/atoms/Input/hooks/useInputFocus.d.ts +5 -0
  418. package/esm/components/atoms/Input/hooks/useInputFocus.js +40 -0
  419. package/esm/components/atoms/Input/hooks/useInputFocus.js.map +1 -0
  420. package/esm/components/atoms/Input/hooks/useNumberMask.d.ts +8 -0
  421. package/esm/components/atoms/Input/hooks/useNumberMask.js +108 -0
  422. package/esm/components/atoms/Input/hooks/useNumberMask.js.map +1 -0
  423. package/esm/components/atoms/Input/hooks/useStringMask.d.ts +8 -0
  424. package/esm/components/atoms/Input/hooks/useStringMask.js +116 -0
  425. package/esm/components/atoms/Input/hooks/useStringMask.js.map +1 -0
  426. package/esm/components/atoms/Input/index.d.ts +13 -0
  427. package/esm/components/atoms/Input/index.js +10 -0
  428. package/esm/components/atoms/Input/index.js.map +1 -0
  429. package/esm/components/atoms/Input/styled.d.ts +64 -0
  430. package/esm/components/atoms/Input/styled.js +93 -0
  431. package/esm/components/atoms/Input/styled.js.map +1 -0
  432. package/esm/components/atoms/Paper/Paper.d.ts +8 -0
  433. package/esm/components/atoms/Paper/Paper.js +24 -0
  434. package/esm/components/atoms/Paper/Paper.js.map +1 -0
  435. package/esm/components/atoms/Paper/index.d.ts +2 -0
  436. package/esm/components/atoms/Paper/index.js +2 -0
  437. package/esm/components/atoms/Paper/index.js.map +1 -0
  438. package/esm/components/atoms/Paper/styled.d.ts +9 -0
  439. package/esm/components/atoms/Paper/styled.js +11 -0
  440. package/esm/components/atoms/Paper/styled.js.map +1 -0
  441. package/esm/components/atoms/PressableSurface/PressableSurface.d.ts +10 -0
  442. package/esm/components/atoms/PressableSurface/PressableSurface.js +86 -0
  443. package/esm/components/atoms/PressableSurface/PressableSurface.js.map +1 -0
  444. package/esm/components/atoms/PressableSurface/index.d.ts +2 -0
  445. package/esm/components/atoms/PressableSurface/index.js +2 -0
  446. package/esm/components/atoms/PressableSurface/index.js.map +1 -0
  447. package/esm/components/atoms/ProgressBar/ProgressBar.d.ts +18 -0
  448. package/esm/components/atoms/ProgressBar/ProgressBar.js +90 -0
  449. package/esm/components/atoms/ProgressBar/ProgressBar.js.map +1 -0
  450. package/esm/components/atoms/ProgressBar/index.d.ts +2 -0
  451. package/esm/components/atoms/ProgressBar/index.js +2 -0
  452. package/esm/components/atoms/ProgressBar/index.js.map +1 -0
  453. package/esm/components/atoms/ProgressBar/styled.d.ts +20 -0
  454. package/esm/components/atoms/ProgressBar/styled.js +26 -0
  455. package/esm/components/atoms/ProgressBar/styled.js.map +1 -0
  456. package/esm/components/atoms/RadioButton/RadioButton.d.ts +14 -0
  457. package/esm/components/atoms/RadioButton/RadioButton.js +51 -0
  458. package/esm/components/atoms/RadioButton/RadioButton.js.map +1 -0
  459. package/esm/components/atoms/RadioButton/index.d.ts +2 -0
  460. package/esm/components/atoms/RadioButton/index.js +2 -0
  461. package/esm/components/atoms/RadioButton/index.js.map +1 -0
  462. package/esm/components/atoms/RadioButton/styled.d.ts +27 -0
  463. package/esm/components/atoms/RadioButton/styled.js +30 -0
  464. package/esm/components/atoms/RadioButton/styled.js.map +1 -0
  465. package/esm/components/atoms/Switch/Switch.d.ts +16 -0
  466. package/esm/components/atoms/Switch/Switch.js +87 -0
  467. package/esm/components/atoms/Switch/Switch.js.map +1 -0
  468. package/esm/components/atoms/Switch/animation.d.ts +2 -0
  469. package/esm/components/atoms/Switch/animation.js +33 -0
  470. package/esm/components/atoms/Switch/animation.js.map +1 -0
  471. package/esm/components/atoms/Switch/index.d.ts +2 -0
  472. package/esm/components/atoms/Switch/index.js +2 -0
  473. package/esm/components/atoms/Switch/index.js.map +1 -0
  474. package/esm/components/atoms/Switch/styled.d.ts +16 -0
  475. package/esm/components/atoms/Switch/styled.js +24 -0
  476. package/esm/components/atoms/Switch/styled.js.map +1 -0
  477. package/esm/components/atoms/Tag/Tag.d.ts +12 -0
  478. package/esm/components/atoms/Tag/Tag.js +80 -0
  479. package/esm/components/atoms/Tag/Tag.js.map +1 -0
  480. package/esm/components/atoms/Tag/index.d.ts +2 -0
  481. package/esm/components/atoms/Tag/index.js +2 -0
  482. package/esm/components/atoms/Tag/index.js.map +1 -0
  483. package/esm/components/atoms/Tag/styled.d.ts +24 -0
  484. package/esm/components/atoms/Tag/styled.js +39 -0
  485. package/esm/components/atoms/Tag/styled.js.map +1 -0
  486. package/esm/components/atoms/Text/Text.d.ts +19 -0
  487. package/esm/components/atoms/Text/Text.js +47 -0
  488. package/esm/components/atoms/Text/Text.js.map +1 -0
  489. package/esm/components/atoms/Text/functions.d.ts +2 -0
  490. package/esm/components/atoms/Text/functions.js +7 -0
  491. package/esm/components/atoms/Text/functions.js.map +1 -0
  492. package/esm/components/atoms/Text/index.d.ts +2 -0
  493. package/esm/components/atoms/Text/index.js +2 -0
  494. package/esm/components/atoms/Text/index.js.map +1 -0
  495. package/esm/components/atoms/Text/styled.d.ts +20 -0
  496. package/esm/components/atoms/Text/styled.js +46 -0
  497. package/esm/components/atoms/Text/styled.js.map +1 -0
  498. package/esm/components/atoms/shared/PaperAndCard.d.ts +5 -0
  499. package/esm/components/atoms/shared/PaperAndCard.js +25 -0
  500. package/esm/components/atoms/shared/PaperAndCard.js.map +1 -0
  501. package/esm/components/molecules/Calendar/Calendar.d.ts +20 -0
  502. package/esm/components/molecules/Calendar/Calendar.js +144 -0
  503. package/esm/components/molecules/Calendar/Calendar.js.map +1 -0
  504. package/esm/components/molecules/Calendar/components/MonthWeek.d.ts +13 -0
  505. package/esm/components/molecules/Calendar/components/MonthWeek.js +128 -0
  506. package/esm/components/molecules/Calendar/components/MonthWeek.js.map +1 -0
  507. package/esm/components/molecules/Calendar/components/Weekdays.d.ts +8 -0
  508. package/esm/components/molecules/Calendar/components/Weekdays.js +29 -0
  509. package/esm/components/molecules/Calendar/components/Weekdays.js.map +1 -0
  510. package/esm/components/molecules/Calendar/components/index.d.ts +2 -0
  511. package/esm/components/molecules/Calendar/components/index.js +3 -0
  512. package/esm/components/molecules/Calendar/components/index.js.map +1 -0
  513. package/esm/components/molecules/Calendar/index.d.ts +2 -0
  514. package/esm/components/molecules/Calendar/index.js +2 -0
  515. package/esm/components/molecules/Calendar/index.js.map +1 -0
  516. package/esm/components/molecules/Calendar/styled.d.ts +61 -0
  517. package/esm/components/molecules/Calendar/styled.js +56 -0
  518. package/esm/components/molecules/Calendar/styled.js.map +1 -0
  519. package/esm/components/molecules/DatePicker/DatePicker.d.ts +19 -0
  520. package/esm/components/molecules/DatePicker/DatePicker.js +120 -0
  521. package/esm/components/molecules/DatePicker/DatePicker.js.map +1 -0
  522. package/esm/components/molecules/DatePicker/index.d.ts +2 -0
  523. package/esm/components/molecules/DatePicker/index.js +2 -0
  524. package/esm/components/molecules/DatePicker/index.js.map +1 -0
  525. package/esm/components/molecules/DatePicker/styled.d.ts +15 -0
  526. package/esm/components/molecules/DatePicker/styled.js +22 -0
  527. package/esm/components/molecules/DatePicker/styled.js.map +1 -0
  528. package/esm/components/molecules/DateTimePicker/DateTimePicker.d.ts +17 -0
  529. package/esm/components/molecules/DateTimePicker/DateTimePicker.js +122 -0
  530. package/esm/components/molecules/DateTimePicker/DateTimePicker.js.map +1 -0
  531. package/esm/components/molecules/DateTimePicker/index.d.ts +2 -0
  532. package/esm/components/molecules/DateTimePicker/index.js +2 -0
  533. package/esm/components/molecules/DateTimePicker/index.js.map +1 -0
  534. package/esm/components/molecules/DateTimePicker/styled.d.ts +8 -0
  535. package/esm/components/molecules/DateTimePicker/styled.js +12 -0
  536. package/esm/components/molecules/DateTimePicker/styled.js.map +1 -0
  537. package/esm/components/molecules/DateTimeSelector/DateTimeSelector.d.ts +28 -0
  538. package/esm/components/molecules/DateTimeSelector/DateTimeSelector.js +219 -0
  539. package/esm/components/molecules/DateTimeSelector/DateTimeSelector.js.map +1 -0
  540. package/esm/components/molecules/DateTimeSelector/Selector.d.ts +17 -0
  541. package/esm/components/molecules/DateTimeSelector/Selector.js +113 -0
  542. package/esm/components/molecules/DateTimeSelector/Selector.js.map +1 -0
  543. package/esm/components/molecules/DateTimeSelector/index.d.ts +2 -0
  544. package/esm/components/molecules/DateTimeSelector/index.js +2 -0
  545. package/esm/components/molecules/DateTimeSelector/index.js.map +1 -0
  546. package/esm/components/molecules/DateTimeSelector/styled.d.ts +52 -0
  547. package/esm/components/molecules/DateTimeSelector/styled.js +54 -0
  548. package/esm/components/molecules/DateTimeSelector/styled.js.map +1 -0
  549. package/esm/components/molecules/Grid/functions.d.ts +3 -0
  550. package/esm/components/molecules/Grid/functions.js +16 -0
  551. package/esm/components/molecules/Grid/functions.js.map +1 -0
  552. package/esm/components/molecules/Grid/index.d.ts +42 -0
  553. package/esm/components/molecules/Grid/index.js +2 -0
  554. package/esm/components/molecules/Grid/index.js.map +1 -0
  555. package/esm/components/molecules/HintInputContainer/HintInputContainer.d.ts +17 -0
  556. package/esm/components/molecules/HintInputContainer/HintInputContainer.js +46 -0
  557. package/esm/components/molecules/HintInputContainer/HintInputContainer.js.map +1 -0
  558. package/esm/components/molecules/HintInputContainer/index.d.ts +2 -0
  559. package/esm/components/molecules/HintInputContainer/index.js +2 -0
  560. package/esm/components/molecules/HintInputContainer/index.js.map +1 -0
  561. package/esm/components/molecules/HintInputContainer/styled.d.ts +0 -0
  562. package/esm/components/molecules/HintInputContainer/styled.js +2 -0
  563. package/esm/components/molecules/HintInputContainer/styled.js.map +1 -0
  564. package/esm/components/molecules/IconTextButton/IconComponent.d.ts +9 -0
  565. package/esm/components/molecules/IconTextButton/IconComponent.js +20 -0
  566. package/esm/components/molecules/IconTextButton/IconComponent.js.map +1 -0
  567. package/esm/components/molecules/IconTextButton/IconTextButton.d.ts +8 -0
  568. package/esm/components/molecules/IconTextButton/IconTextButton.js +2 -0
  569. package/esm/components/molecules/IconTextButton/IconTextButton.js.map +1 -0
  570. package/esm/components/molecules/IconTextButton/index.d.ts +2 -0
  571. package/esm/components/molecules/IconTextButton/index.js +2 -0
  572. package/esm/components/molecules/IconTextButton/index.js.map +1 -0
  573. package/esm/components/molecules/IconTextButton/styled.d.ts +11 -0
  574. package/esm/components/molecules/IconTextButton/styled.js +14 -0
  575. package/esm/components/molecules/IconTextButton/styled.js.map +1 -0
  576. package/esm/components/molecules/InputPassword/InputPasswordIcon.d.ts +8 -0
  577. package/esm/components/molecules/InputPassword/InputPasswordIcon.js +33 -0
  578. package/esm/components/molecules/InputPassword/InputPasswordIcon.js.map +1 -0
  579. package/esm/components/molecules/InputPassword/index.d.ts +1 -0
  580. package/esm/components/molecules/InputPassword/index.js +2 -0
  581. package/esm/components/molecules/InputPassword/index.js.map +1 -0
  582. package/esm/components/molecules/InputPassword/styled.d.ts +7 -0
  583. package/esm/components/molecules/InputPassword/styled.js +11 -0
  584. package/esm/components/molecules/InputPassword/styled.js.map +1 -0
  585. package/esm/components/molecules/LabeledSwitch/LabeledSwitch.d.ts +7 -0
  586. package/esm/components/molecules/LabeledSwitch/LabeledSwitch.js +2 -0
  587. package/esm/components/molecules/LabeledSwitch/LabeledSwitch.js.map +1 -0
  588. package/esm/components/molecules/LabeledSwitch/index.d.ts +1 -0
  589. package/esm/components/molecules/LabeledSwitch/index.js +2 -0
  590. package/esm/components/molecules/LabeledSwitch/index.js.map +1 -0
  591. package/esm/components/molecules/Snackbar/Snackbar.d.ts +19 -0
  592. package/esm/components/molecules/Snackbar/Snackbar.js +103 -0
  593. package/esm/components/molecules/Snackbar/Snackbar.js.map +1 -0
  594. package/esm/components/molecules/Snackbar/index.d.ts +2 -0
  595. package/esm/components/molecules/Snackbar/index.js +2 -0
  596. package/esm/components/molecules/Snackbar/index.js.map +1 -0
  597. package/esm/components/molecules/Snackbar/styled.d.ts +47 -0
  598. package/esm/components/molecules/Snackbar/styled.js +54 -0
  599. package/esm/components/molecules/Snackbar/styled.js.map +1 -0
  600. package/esm/components/molecules/TextArea/TextArea.d.ts +14 -0
  601. package/esm/components/molecules/TextArea/TextArea.js +77 -0
  602. package/esm/components/molecules/TextArea/TextArea.js.map +1 -0
  603. package/esm/components/molecules/TextArea/index.d.ts +3 -0
  604. package/esm/components/molecules/TextArea/index.js +3 -0
  605. package/esm/components/molecules/TextArea/index.js.map +1 -0
  606. package/esm/components/molecules/TextArea/styled.d.ts +12 -0
  607. package/esm/components/molecules/TextArea/styled.js +14 -0
  608. package/esm/components/molecules/TextArea/styled.js.map +1 -0
  609. package/esm/hooks/index.d.ts +2 -0
  610. package/esm/hooks/index.js +3 -0
  611. package/esm/hooks/index.js.map +1 -0
  612. package/esm/hooks/useDebouncedState.d.ts +2 -0
  613. package/esm/hooks/useDebouncedState.js +31 -0
  614. package/esm/hooks/useDebouncedState.js.map +1 -0
  615. package/esm/hooks/useTheme.d.ts +2 -0
  616. package/esm/hooks/useTheme.js +5 -0
  617. package/esm/hooks/useTheme.js.map +1 -0
  618. package/esm/index.d.ts +64 -0
  619. package/esm/index.js +36 -0
  620. package/esm/index.js.map +1 -0
  621. package/esm/styles/ThemeProvider.d.ts +4 -0
  622. package/esm/styles/ThemeProvider.js +13 -0
  623. package/esm/styles/ThemeProvider.js.map +1 -0
  624. package/esm/styles/definitions.d.ts +45 -0
  625. package/esm/styles/definitions.js +168 -0
  626. package/esm/styles/definitions.js.map +1 -0
  627. package/esm/styles/light.d.ts +2 -0
  628. package/esm/styles/light.js +42 -0
  629. package/esm/styles/light.js.map +1 -0
  630. package/esm/types/defaults.d.ts +134 -0
  631. package/esm/types/defaults.js +2 -0
  632. package/esm/types/defaults.js.map +1 -0
  633. package/esm/utils/IPhoneXHelper.d.ts +4 -0
  634. package/esm/utils/IPhoneXHelper.js +23 -0
  635. package/esm/utils/IPhoneXHelper.js.map +1 -0
  636. package/esm/utils/ResponsiveFontSize.d.ts +3 -0
  637. package/esm/utils/ResponsiveFontSize.js +37 -0
  638. package/esm/utils/ResponsiveFontSize.js.map +1 -0
  639. package/esm/utils/extractNumbersFromString.d.ts +2 -0
  640. package/esm/utils/extractNumbersFromString.js +7 -0
  641. package/esm/utils/extractNumbersFromString.js.map +1 -0
  642. package/esm/utils/formatWithMask.d.ts +3 -0
  643. package/esm/utils/formatWithMask.js +19 -0
  644. package/esm/utils/formatWithMask.js.map +1 -0
  645. package/esm/utils/index.d.ts +7 -0
  646. package/esm/utils/index.js +8 -0
  647. package/esm/utils/index.js.map +1 -0
  648. package/esm/utils/lightenDarkenColor.d.ts +1 -0
  649. package/esm/utils/lightenDarkenColor.js +18 -0
  650. package/esm/utils/lightenDarkenColor.js.map +1 -0
  651. package/esm/utils/masks.d.ts +11 -0
  652. package/esm/utils/masks.js +19 -0
  653. package/esm/utils/masks.js.map +1 -0
  654. package/esm/utils/variantComplement.d.ts +6 -0
  655. package/esm/utils/variantComplement.js +26 -0
  656. package/esm/utils/variantComplement.js.map +1 -0
  657. package/package.json +9 -4
  658. package/src/components/atoms/Avatar/index.ts +2 -1
  659. package/src/components/atoms/Badge/index.ts +2 -1
  660. package/src/components/atoms/BoxContent/index.ts +2 -1
  661. package/src/components/atoms/Button/index.ts +3 -3
  662. package/src/components/atoms/Card/Footer/index.ts +2 -1
  663. package/src/components/atoms/Card/Header/index.ts +2 -1
  664. package/src/components/atoms/Card/index.ts +2 -1
  665. package/src/components/atoms/Checkbox/index.ts +2 -1
  666. package/src/components/atoms/Divider/index.ts +2 -1
  667. package/src/components/atoms/GroupButton/index.ts +4 -9
  668. package/src/components/atoms/Icon/index.ts +2 -1
  669. package/src/components/atoms/Input/PressableInputContainer/index.ts +2 -4
  670. package/src/components/atoms/Input/index.ts +8 -14
  671. package/src/components/atoms/Paper/index.ts +2 -1
  672. package/src/components/atoms/PressableSurface/index.ts +2 -4
  673. package/src/components/atoms/ProgressBar/index.ts +2 -1
  674. package/src/components/atoms/RadioButton/index.ts +2 -1
  675. package/src/components/atoms/Switch/index.ts +2 -1
  676. package/src/components/atoms/Tag/index.ts +2 -1
  677. package/src/components/atoms/Text/index.ts +2 -1
  678. package/src/components/molecules/Calendar/index.ts +2 -2
  679. package/src/components/molecules/DatePicker/index.ts +2 -1
  680. package/src/components/molecules/DateTimePicker/index.ts +2 -4
  681. package/src/components/molecules/DateTimeSelector/index.ts +2 -2
  682. package/src/components/molecules/IconTextButton/index.ts +4 -1
  683. package/src/components/molecules/LabeledSwitch/index.ts +1 -1
  684. package/src/components/molecules/Snackbar/index.ts +2 -1
  685. package/src/components/molecules/TextArea/index.ts +2 -1
  686. package/src/index.ts +64 -56
  687. package/tsconfig.build.esm.json +10 -0
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","names":["StyledGroupButton","styled","View","disabledStyles","disabled","isActive","css","getStyledGroupItemText","component","active","theme","miscellaneous","surfaceColor","color","secondary","medium","activeStyles","activeBorderColor","activeBorderColorTone","inactiveStyles","inactiveBackgroundColor","inactiveBackgroundColorTone","inactiveBorderColor","inactiveBorderColorTone","leftStyles","isFirstOption","borderRadius","mili","borderWidth","pico","rightStyles","isLastOption","sizeStyles","buttonSize","spacing","deca","RFValueStr","kilo","StyledPressableBase","PressableSurface","StyledOption","StyledDivider","light","StyledPressable","props"],"sources":["../../../../src/components/atoms/GroupButton/styled.ts"],"sourcesContent":["import styled, { css } from '@emotion/native';\nimport { FC } from 'react';\nimport { StyleProps } from '../../../types/defaults';\nimport { RFValueStr } from '../../../utils';\nimport { ButtonSizeType } from '../Button';\nimport { PressableSurface } from '../PressableSurface';\nimport { TextProps } from '../Text';\nimport { GroupButtonOptions } from './GroupButton';\nimport { GroupButtonOptionProps } from './GroupButtonOption';\n\ninterface PressableOptions extends GroupButtonOptions {\n isActive: boolean;\n isFirstOption: boolean;\n isLastOption: boolean;\n buttonSize?: ButtonSizeType;\n}\n\nexport const StyledGroupButton = styled.View<Partial<StyleProps>>`\n flex-direction: row;\n`;\n\n// TO FIXED: hexa color to theme definitions\nconst disabledStyles = ({\n disabled,\n isActive,\n}: PressableOptions & Partial<StyleProps>) =>\n disabled &&\n !isActive &&\n css`\n background-color: #dcdcdc;\n `;\n\nexport const getStyledGroupItemText = (component: FC<TextProps>) => {\n return styled(component)<\n Partial<GroupButtonOptionProps> & Partial<StyleProps>\n >`\n color: ${({ active, theme }) =>\n active ? theme.miscellaneous.surfaceColor : theme.color.secondary.medium};\n `;\n};\n\nconst activeStyles = ({\n theme,\n isActive,\n activeBorderColor = 'secondary',\n activeBorderColorTone = 'medium',\n}: PressableOptions & Partial<StyleProps>) =>\n isActive &&\n css`\n border-color: ${theme?.color[activeBorderColor][activeBorderColorTone]};\n `;\n\nconst inactiveStyles = ({\n theme,\n isActive,\n inactiveBackgroundColor,\n inactiveBackgroundColorTone,\n inactiveBorderColor = 'secondary',\n inactiveBorderColorTone = 'light',\n}: PressableOptions & Partial<StyleProps>) => {\n if (!isActive && inactiveBackgroundColor && inactiveBackgroundColorTone) {\n return css`\n border-color: ${theme?.color[inactiveBorderColor][\n inactiveBorderColorTone\n ]};\n `;\n }\n\n if (!isActive) {\n return css`\n border-color: ${theme?.color[inactiveBorderColor][\n inactiveBorderColorTone\n ]};\n `;\n }\n};\n\nconst leftStyles = ({\n theme,\n isFirstOption,\n}: PressableOptions & Partial<StyleProps>) =>\n isFirstOption &&\n css`\n border-top-left-radius: ${theme?.borderRadius.mili};\n border-bottom-left-radius: ${theme?.borderRadius.mili};\n border-left-width: ${theme?.borderWidth.pico};\n `;\n\nconst rightStyles = ({\n theme,\n isLastOption,\n}: PressableOptions & Partial<StyleProps>) =>\n isLastOption &&\n css`\n border-top-right-radius: ${theme?.borderRadius.mili};\n border-bottom-right-radius: ${theme?.borderRadius.mili};\n border-right-width: ${theme?.borderWidth.pico};\n `;\n\nconst sizeStyles = ({\n theme,\n buttonSize = 'small',\n}: PressableOptions & Partial<StyleProps>) => {\n switch (buttonSize) {\n case 'small':\n return css`\n padding: ${theme?.spacing.mili} ${theme?.spacing.deca};\n min-height: ${RFValueStr('34px')};\n `;\n default:\n return css`\n padding: ${theme?.spacing.mili} ${theme?.spacing.kilo};\n min-height: ${RFValueStr('44px')};\n `;\n }\n};\n\nconst StyledPressableBase = styled(PressableSurface)<\n PressableOptions & Partial<StyleProps>\n>`\n border-top-width: ${({ theme }) => theme.borderWidth.pico};\n border-bottom-width: ${({ theme }) => theme.borderWidth.pico};\n justify-content: center;\n align-items: center;\n flex: 1;\n`;\n\nexport const StyledOption = styled.View`\n flex-direction: row;\n flex: 1;\n`;\n\nexport const StyledDivider = styled.View<Partial<StyleProps>>`\n width: ${({ theme }) => theme.borderWidth.pico};\n background-color: ${({ theme }) => theme.color.secondary.light}; ;\n`;\n\nexport const StyledPressable = styled(StyledPressableBase)(\n (props: PressableOptions & Partial<StyleProps>) => css`\n ${activeStyles(props)}\n ${inactiveStyles(props)}\n ${leftStyles(props)}\n ${rightStyles(props)}\n ${sizeStyles(props)}\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IAAK;AAC9D,sBAAsB,IAAAD,iBAAA,EAAW,MAAX,CAAmB;AACzC,OAHM;EAPJ;AAYD,CAhBD;;AAkBA,MAAME,mBAAmB,GAAG,IAAArC,eAAA,EAAOsC,kCAAP,CAE1B;AACF,sBAAsB,CAAC;EAAE7B;AAAF,CAAD,KAAeA,KAAK,CAACkB,WAAN,CAAkBC,IAAK;AAC5D,yBAAyB,CAAC;EAAEnB;AAAF,CAAD,KAAeA,KAAK,CAACkB,WAAN,CAAkBC,IAAK;AAC/D;AACA;AACA;AACA,CARA;AAUO,MAAMW,YAAY,GAAGvC,eAAA,CAAOC,IAAK;AACxC;AACA;AACA,CAHO;;AAKA,MAAMuC,aAAa,GAAGxC,eAAA,CAAOC,IAA0B;AAC9D,WAAW,CAAC;EAAEQ;AAAF,CAAD,KAAeA,KAAK,CAACkB,WAAN,CAAkBC,IAAK;AACjD,sBAAsB,CAAC;EAAEnB;AAAF,CAAD,KAAeA,KAAK,CAACG,KAAN,CAAYC,SAAZ,CAAsB4B,KAAM;AACjE,CAHO;;AAKA,MAAMC,eAAe,GAAG,IAAA1C,eAAA,EAAOqC,mBAAP,EAC5BM,KAAD,IAAmD,IAAAtC,WAAA,CAAI;AACzD,MAAMU,YAAY,CAAC4B,KAAD,CAAQ;AAC1B,MAAMzB,cAAc,CAACyB,KAAD,CAAQ;AAC5B,MAAMpB,UAAU,CAACoB,KAAD,CAAQ;AACxB,MAAMd,WAAW,CAACc,KAAD,CAAQ;AACzB,MAAMZ,UAAU,CAACY,KAAD,CAAQ;AACxB,MAAMzC,cAAc,CAACyC,KAAD,CAAQ;AAC5B,GAR+B,CAAxB"}
1
+ {"version":3,"file":"styled.js","names":["StyledGroupButton","styled","View","disabledStyles","disabled","isActive","css","getStyledGroupItemText","component","active","theme","miscellaneous","surfaceColor","color","secondary","medium","activeStyles","activeBorderColor","activeBorderColorTone","inactiveStyles","inactiveBackgroundColor","inactiveBackgroundColorTone","inactiveBorderColor","inactiveBorderColorTone","leftStyles","isFirstOption","borderRadius","mili","borderWidth","pico","rightStyles","isLastOption","sizeStyles","buttonSize","spacing","deca","RFValueStr","kilo","StyledPressableBase","PressableSurface","StyledOption","StyledDivider","light","StyledPressable","props"],"sources":["../../../../src/components/atoms/GroupButton/styled.ts"],"sourcesContent":["import styled, { css } from '@emotion/native';\nimport { FC } from 'react';\nimport { StyleProps } from '../../../types/defaults';\nimport { RFValueStr } from '../../../utils';\nimport { ButtonSizeType } from '../Button';\nimport { PressableSurface } from '../PressableSurface';\nimport { TextProps } from '../Text';\nimport { GroupButtonOptions } from './GroupButton';\nimport { GroupButtonOptionProps } from './GroupButtonOption';\n\ninterface PressableOptions extends GroupButtonOptions {\n isActive: boolean;\n isFirstOption: boolean;\n isLastOption: boolean;\n buttonSize?: ButtonSizeType;\n}\n\nexport const StyledGroupButton = styled.View<Partial<StyleProps>>`\n flex-direction: row;\n`;\n\n// TO FIXED: hexa color to theme definitions\nconst disabledStyles = ({\n disabled,\n isActive,\n}: PressableOptions & Partial<StyleProps>) =>\n disabled &&\n !isActive &&\n css`\n background-color: #dcdcdc;\n `;\n\nexport const getStyledGroupItemText = (component: FC<TextProps>) => {\n return styled(component)<\n Partial<GroupButtonOptionProps> & Partial<StyleProps>\n >`\n color: ${({ active, theme }) =>\n active ? theme.miscellaneous.surfaceColor : theme.color.secondary.medium};\n `;\n};\n\nconst activeStyles = ({\n theme,\n isActive,\n activeBorderColor = 'secondary',\n activeBorderColorTone = 'medium',\n}: PressableOptions & Partial<StyleProps>) =>\n isActive &&\n css`\n border-color: ${theme?.color[activeBorderColor][activeBorderColorTone]};\n `;\n\nconst inactiveStyles = ({\n theme,\n isActive,\n inactiveBackgroundColor,\n inactiveBackgroundColorTone,\n inactiveBorderColor = 'secondary',\n inactiveBorderColorTone = 'light',\n}: PressableOptions & Partial<StyleProps>) => {\n if (!isActive && inactiveBackgroundColor && inactiveBackgroundColorTone) {\n return css`\n border-color: ${theme?.color[inactiveBorderColor][\n inactiveBorderColorTone\n ]};\n `;\n }\n\n if (!isActive) {\n return css`\n border-color: ${theme?.color[inactiveBorderColor][\n inactiveBorderColorTone\n ]};\n `;\n }\n};\n\nconst leftStyles = ({\n theme,\n isFirstOption,\n}: PressableOptions & Partial<StyleProps>) =>\n isFirstOption &&\n css`\n border-top-left-radius: ${theme?.borderRadius.mili};\n border-bottom-left-radius: ${theme?.borderRadius.mili};\n border-left-width: ${theme?.borderWidth.pico};\n `;\n\nconst rightStyles = ({\n theme,\n isLastOption,\n}: PressableOptions & Partial<StyleProps>) =>\n isLastOption &&\n css`\n border-top-right-radius: ${theme?.borderRadius.mili};\n border-bottom-right-radius: ${theme?.borderRadius.mili};\n border-right-width: ${theme?.borderWidth.pico};\n `;\n\nconst sizeStyles = ({\n theme,\n buttonSize = 'small',\n}: PressableOptions & Partial<StyleProps>) => {\n switch (buttonSize) {\n case 'small':\n return css`\n padding: ${theme?.spacing.mili} ${theme?.spacing.deca};\n min-height: ${RFValueStr('34px')};\n `;\n default:\n return css`\n padding: ${theme?.spacing.mili} ${theme?.spacing.kilo};\n min-height: ${RFValueStr('44px')};\n `;\n }\n};\n\nconst StyledPressableBase = styled(PressableSurface)<\n PressableOptions & Partial<StyleProps>\n>`\n border-top-width: ${({ theme }) => theme.borderWidth.pico};\n border-bottom-width: ${({ theme }) => theme.borderWidth.pico};\n justify-content: center;\n align-items: center;\n flex: 1;\n`;\n\nexport const StyledOption = styled.View`\n flex-direction: row;\n flex: 1;\n`;\n\nexport const StyledDivider = styled.View<Partial<StyleProps>>`\n width: ${({ theme }) => theme.borderWidth.pico};\n background-color: ${({ theme }) => theme.color.secondary.light}; ;\n`;\n\nexport const StyledPressable = styled(StyledPressableBase)(\n (props: PressableOptions & Partial<StyleProps>) => css`\n ${activeStyles(props)}\n ${inactiveStyles(props)}\n ${leftStyles(props)}\n ${rightStyles(props)}\n ${sizeStyles(props)}\n ${disabledStyles(props)}\n `\n);\n"],"mappings":";;;;;;;AAAA;;AAGA;;AAEA;;;;;;;;;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EAEgB,IAAAD,iBAAA,EAAW,MAAX,CAFhB;EAPJ;AAYD,CAhBD;;AAkBA,MAAME,mBAAmB,GAAG,IAAArC,eAAA,EAAOsC,kCAAP,CAAH,qMAGH;EAAA,IAAC;IAAE7B;EAAF,CAAD;EAAA,OAAeA,KAAK,CAACkB,WAAN,CAAkBC,IAAjC;AAAA,CAHG,EAIA;EAAA,IAAC;IAAEnB;EAAF,CAAD;EAAA,OAAeA,KAAK,CAACkB,WAAN,CAAkBC,IAAjC;AAAA,CAJA,CAAzB;;AAUO,MAAMW,YAAY,GAAGvC,eAAA,CAAOC,IAAV,+GAAlB;;;;AAKA,MAAMuC,aAAa,GAAGxC,eAAA,CAAOC,IAAV,yHACf;EAAA,IAAC;IAAEQ;EAAF,CAAD;EAAA,OAAeA,KAAK,CAACkB,WAAN,CAAkBC,IAAjC;AAAA,CADe,EAEJ;EAAA,IAAC;IAAEnB;EAAF,CAAD;EAAA,OAAeA,KAAK,CAACG,KAAN,CAAYC,SAAZ,CAAsB4B,KAArC;AAAA,CAFI,CAAnB;;;AAKA,MAAMC,eAAe,GAAG,IAAA1C,eAAA,EAAOqC,mBAAP,EAC5BM,KAAD,QAAmDtC,WAAnD,2IACIU,YAAY,CAAC4B,KAAD,CADhB,EAEIzB,cAAc,CAACyB,KAAD,CAFlB,EAGIpB,UAAU,CAACoB,KAAD,CAHd,EAIId,WAAW,CAACc,KAAD,CAJf,EAKIZ,UAAU,CAACY,KAAD,CALd,EAMIzC,cAAc,CAACyC,KAAD,CANlB,CAD6B,CAAxB"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
  exports.default = void 0;
5
7
 
6
8
  var _react = _interopRequireDefault(require("react"));
@@ -13,16 +15,17 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
13
15
 
14
16
  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
17
 
16
- const Icon = ({
17
- name,
18
- size = 'centi',
19
- type,
20
- style,
21
- fontColor = 'dark',
22
- colorVariant,
23
- colorTone = 'medium',
24
- ...rest
25
- }) => {
18
+ const Icon = _ref => {
19
+ let {
20
+ name,
21
+ size = 'centi',
22
+ type,
23
+ style,
24
+ fontColor = 'dark',
25
+ colorVariant,
26
+ colorTone = 'medium',
27
+ ...rest
28
+ } = _ref;
26
29
  const theme = (0, _react2.useTheme)();
27
30
  const color = (0, _helpers.getIconColor)(colorVariant, colorTone, fontColor, theme);
28
31
  const RNVIcon = (0, _helpers.getIconComponent)(type, size);
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.js","names":["Icon","name","size","type","style","fontColor","colorVariant","colorTone","rest","theme","useTheme","color","getIconColor","RNVIcon","getIconComponent"],"sources":["../../../../src/components/atoms/Icon/Icon.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { StyleProp, TextStyle } from 'react-native';\nimport { useTheme } from '@emotion/react';\nimport {\n ColorGradationType,\n ColorType,\n FontColorType,\n IconSizeType,\n IconType,\n ThemeProp,\n} from '@tecsinapse/react-core';\nimport { getIconColor, getIconComponent } from './helpers';\n\nexport interface IconProps {\n /** Name of the icon. You must use the same icons from react-native-vector-icons */\n name: string;\n /** Default icon sizes from theme */\n size?: IconSizeType;\n /** Icon family. You must use the same icons from react-native-vector-icons */\n type: IconType;\n /** Font theme fill color */\n fontColor?: FontColorType;\n /** Palette theme fill color */\n colorVariant?: ColorType;\n /** Palette theme gradation fill color */\n colorTone?: ColorGradationType;\n style?: StyleProp<TextStyle>;\n}\n\n/** NOTE: When using colors, the order matters if you're trying to merge multiple types. */\nconst Icon: FC<IconProps> = ({\n name,\n size = 'centi',\n type,\n style,\n fontColor = 'dark',\n colorVariant,\n colorTone = 'medium',\n ...rest\n}) => {\n const theme = useTheme() as ThemeProp;\n const color = getIconColor(colorVariant, colorTone, fontColor, theme);\n const RNVIcon = getIconComponent(type, size);\n\n return <RNVIcon {...rest} style={style} name={name} color={color} />;\n};\n\nexport default Icon;\n"],"mappings":";;;;;AAAA;;AAEA;;AASA;;;;;;AAmBA,MAAMA,IAAmB,GAAG,CAAC;EAC3BC,IAD2B;EAE3BC,IAAI,GAAG,OAFoB;EAG3BC,IAH2B;EAI3BC,KAJ2B;EAK3BC,SAAS,GAAG,MALe;EAM3BC,YAN2B;EAO3BC,SAAS,GAAG,QAPe;EAQ3B,GAAGC;AARwB,CAAD,KAStB;EACJ,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EACA,MAAMC,KAAK,GAAG,IAAAC,qBAAA,EAAaN,YAAb,EAA2BC,SAA3B,EAAsCF,SAAtC,EAAiDI,KAAjD,CAAd;EACA,MAAMI,OAAO,GAAG,IAAAC,yBAAA,EAAiBX,IAAjB,EAAuBD,IAAvB,CAAhB;EAEA,OAAO,6BAAC,OAAD,eAAaM,IAAb;IAAmB,KAAK,EAAEJ,KAA1B;IAAiC,IAAI,EAAEH,IAAvC;IAA6C,KAAK,EAAEU;EAApD,GAAP;AACD,CAfD;;eAiBeX,I"}
1
+ {"version":3,"file":"Icon.js","names":["Icon","name","size","type","style","fontColor","colorVariant","colorTone","rest","theme","useTheme","color","getIconColor","RNVIcon","getIconComponent"],"sources":["../../../../src/components/atoms/Icon/Icon.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { StyleProp, TextStyle } from 'react-native';\nimport { useTheme } from '@emotion/react';\nimport {\n ColorGradationType,\n ColorType,\n FontColorType,\n IconSizeType,\n IconType,\n ThemeProp,\n} from '@tecsinapse/react-core';\nimport { getIconColor, getIconComponent } from './helpers';\n\nexport interface IconProps {\n /** Name of the icon. You must use the same icons from react-native-vector-icons */\n name: string;\n /** Default icon sizes from theme */\n size?: IconSizeType;\n /** Icon family. You must use the same icons from react-native-vector-icons */\n type: IconType;\n /** Font theme fill color */\n fontColor?: FontColorType;\n /** Palette theme fill color */\n colorVariant?: ColorType;\n /** Palette theme gradation fill color */\n colorTone?: ColorGradationType;\n style?: StyleProp<TextStyle>;\n}\n\n/** NOTE: When using colors, the order matters if you're trying to merge multiple types. */\nconst Icon: FC<IconProps> = ({\n name,\n size = 'centi',\n type,\n style,\n fontColor = 'dark',\n colorVariant,\n colorTone = 'medium',\n ...rest\n}) => {\n const theme = useTheme() as ThemeProp;\n const color = getIconColor(colorVariant, colorTone, fontColor, theme);\n const RNVIcon = getIconComponent(type, size);\n\n return <RNVIcon {...rest} style={style} name={name} color={color} />;\n};\n\nexport default Icon;\n"],"mappings":";;;;;;;AAAA;;AAEA;;AASA;;;;;;AAmBA,MAAMA,IAAmB,GAAG,QAStB;EAAA,IATuB;IAC3BC,IAD2B;IAE3BC,IAAI,GAAG,OAFoB;IAG3BC,IAH2B;IAI3BC,KAJ2B;IAK3BC,SAAS,GAAG,MALe;IAM3BC,YAN2B;IAO3BC,SAAS,GAAG,QAPe;IAQ3B,GAAGC;EARwB,CASvB;EACJ,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EACA,MAAMC,KAAK,GAAG,IAAAC,qBAAA,EAAaN,YAAb,EAA2BC,SAA3B,EAAsCF,SAAtC,EAAiDI,KAAjD,CAAd;EACA,MAAMI,OAAO,GAAG,IAAAC,yBAAA,EAAiBX,IAAjB,EAAuBD,IAAvB,CAAhB;EAEA,OAAO,6BAAC,OAAD,eAAaM,IAAb;IAAmB,KAAK,EAAEJ,KAA1B;IAAiC,IAAI,EAAEH,IAAvC;IAA6C,KAAK,EAAEU;EAApD,GAAP;AACD,CAfD;;eAiBeX,I"}
@@ -1,12 +1,18 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
  exports.registerCustomIconType = exports.getIconComponent = exports.getIconColor = void 0;
5
7
 
6
8
  var _native = _interopRequireDefault(require("@emotion/native"));
7
9
 
10
+ var _templateObject;
11
+
8
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
13
 
14
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
15
+
10
16
  const customIcons = {};
11
17
 
12
18
  const registerCustomIconType = (id, customIcon) => {
@@ -15,12 +21,12 @@ const registerCustomIconType = (id, customIcon) => {
15
21
 
16
22
  exports.registerCustomIconType = registerCustomIconType;
17
23
 
18
- const getStyledIcon = (Component, size) => (0, _native.default)(Component)`
19
- font-size: ${({
20
- theme
21
- }) => theme.iconSize[size]};
22
- text-align: center;
23
- `;
24
+ const getStyledIcon = (Component, size) => (0, _native.default)(Component)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size: ", ";\n text-align: center;\n"])), _ref => {
25
+ let {
26
+ theme
27
+ } = _ref;
28
+ return theme.iconSize[size];
29
+ });
24
30
 
25
31
  const getIconComponent = (type, size) => {
26
32
  switch (type) {
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","names":["customIcons","registerCustomIconType","id","customIcon","getStyledIcon","Component","size","styled","theme","iconSize","getIconComponent","type","require","default","Object","prototype","hasOwnProperty","call","getIconColor","colorVariant","colorGradation","fontColor","color","font"],"sources":["../../../../src/components/atoms/Icon/helpers.ts"],"sourcesContent":["import {\n ColorGradationType,\n ColorType,\n FontColorType,\n IconSizeType,\n IconType,\n ThemeProp,\n} from '@tecsinapse/react-core';\nimport styled from '@emotion/native';\n\n/* eslint-disable */\nconst customIcons: any = {};\n\nexport const registerCustomIconType = (id: string, customIcon: any) => {\n customIcons[id] = customIcon;\n};\n\nconst getStyledIcon = (Component, size) => styled(Component)`\n font-size: ${({ theme }) => theme.iconSize[size]};\n text-align: center;\n`;\n\nexport const getIconComponent = (type: IconType, size: IconSizeType): any => {\n switch (type) {\n case 'zocial':\n return getStyledIcon(\n require('react-native-vector-icons/dist/Zocial').default,\n size\n );\n case 'octicon':\n return getStyledIcon(\n require('react-native-vector-icons/dist/Octicons').default,\n size\n );\n case 'material':\n return getStyledIcon(\n require('react-native-vector-icons/dist/MaterialIcons').default,\n size\n );\n case 'material-community':\n return getStyledIcon(\n require('react-native-vector-icons/dist/MaterialCommunityIcons')\n .default,\n size\n );\n case 'ionicon':\n return getStyledIcon(\n require('react-native-vector-icons/dist/Ionicons').default,\n size\n );\n case 'foundation':\n return getStyledIcon(\n require('react-native-vector-icons/dist/Foundation').default,\n size\n );\n case 'evilicon':\n return getStyledIcon(\n require('react-native-vector-icons/dist/EvilIcons').default,\n size\n );\n case 'entypo':\n return getStyledIcon(\n require('react-native-vector-icons/dist/Entypo').default,\n size\n );\n case 'font-awesome':\n return getStyledIcon(\n require('react-native-vector-icons/dist/FontAwesome').default,\n size\n );\n case 'font-awesome-5':\n return getStyledIcon(\n require('react-native-vector-icons/dist/FontAwesome5').default,\n size\n );\n case 'simple-line-icon':\n return getStyledIcon(\n require('react-native-vector-icons/dist/SimpleLineIcons').default,\n size\n );\n case 'feather':\n return getStyledIcon(\n require('react-native-vector-icons/dist/Feather').default,\n size\n );\n case 'antdesign':\n case 'ant-design':\n return getStyledIcon(\n require('react-native-vector-icons/dist/AntDesign').default,\n size\n );\n case 'fontisto':\n return getStyledIcon(\n require('react-native-vector-icons/dist/Fontisto').default,\n size\n );\n default:\n if (Object.prototype.hasOwnProperty.call(customIcons, type)) {\n return getStyledIcon(customIcons[type], size);\n }\n return getStyledIcon(\n require('react-native-vector-icons/dist/MaterialIcons').default,\n size\n );\n }\n};\n/* eslint-enable */\nexport const getIconColor = (\n colorVariant: ColorType | undefined,\n colorGradation: ColorGradationType | undefined,\n fontColor: FontColorType,\n theme: ThemeProp\n): string => {\n if (colorVariant && colorGradation) {\n return theme.color[colorVariant][colorGradation];\n }\n return theme.font.color[fontColor];\n};\n"],"mappings":";;;;;AAQA;;;;AAGA,MAAMA,WAAgB,GAA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AWD,KAAX,CAAiBD,SAAjB,CAAP;AACD,CAVM"}
1
+ {"version":3,"file":"helpers.js","names":["customIcons","registerCustomIconType","id","customIcon","getStyledIcon","Component","size","styled","theme","iconSize","getIconComponent","type","require","default","Object","prototype","hasOwnProperty","call","getIconColor","colorVariant","colorGradation","fontColor","color","font"],"sources":["../../../../src/components/atoms/Icon/helpers.ts"],"sourcesContent":["import {\n ColorGradationType,\n ColorType,\n FontColorType,\n IconSizeType,\n IconType,\n ThemeProp,\n} from '@tecsinapse/react-core';\nimport styled from '@emotion/native';\n\n/* eslint-disable */\nconst customIcons: any = {};\n\nexport const registerCustomIconType = (id: string, customIcon: any) => {\n customIcons[id] = customIcon;\n};\n\nconst getStyledIcon = (Component, size) => styled(Component)`\n font-size: ${({ theme }) => theme.iconSize[size]};\n text-align: center;\n`;\n\nexport const getIconComponent = (type: IconType, size: IconSizeType): any => {\n switch (type) {\n case 'zocial':\n return getStyledIcon(\n require('react-native-vector-icons/dist/Zocial').default,\n size\n );\n case 'octicon':\n return getStyledIcon(\n require('react-native-vector-icons/dist/Octicons').default,\n size\n );\n case 'material':\n return getStyledIcon(\n require('react-native-vector-icons/dist/MaterialIcons').default,\n size\n );\n case 'material-community':\n return getStyledIcon(\n require('react-native-vector-icons/dist/MaterialCommunityIcons')\n .default,\n size\n );\n case 'ionicon':\n return getStyledIcon(\n require('react-native-vector-icons/dist/Ionicons').default,\n size\n );\n case 'foundation':\n return getStyledIcon(\n require('react-native-vector-icons/dist/Foundation').default,\n size\n );\n case 'evilicon':\n return getStyledIcon(\n require('react-native-vector-icons/dist/EvilIcons').default,\n size\n );\n case 'entypo':\n return getStyledIcon(\n require('react-native-vector-icons/dist/Entypo').default,\n size\n );\n case 'font-awesome':\n return getStyledIcon(\n require('react-native-vector-icons/dist/FontAwesome').default,\n size\n );\n case 'font-awesome-5':\n return getStyledIcon(\n require('react-native-vector-icons/dist/FontAwesome5').default,\n size\n );\n case 'simple-line-icon':\n return getStyledIcon(\n require('react-native-vector-icons/dist/SimpleLineIcons').default,\n size\n );\n case 'feather':\n return getStyledIcon(\n require('react-native-vector-icons/dist/Feather').default,\n size\n );\n case 'antdesign':\n case 'ant-design':\n return getStyledIcon(\n require('react-native-vector-icons/dist/AntDesign').default,\n size\n );\n case 'fontisto':\n return getStyledIcon(\n require('react-native-vector-icons/dist/Fontisto').default,\n size\n );\n default:\n if (Object.prototype.hasOwnProperty.call(customIcons, type)) {\n return getStyledIcon(customIcons[type], size);\n }\n return getStyledIcon(\n require('react-native-vector-icons/dist/MaterialIcons').default,\n size\n );\n }\n};\n/* eslint-enable */\nexport const getIconColor = (\n colorVariant: ColorType | undefined,\n colorGradation: ColorGradationType | undefined,\n fontColor: FontColorType,\n theme: ThemeProp\n): string => {\n if (colorVariant && colorGradation) {\n return theme.color[colorVariant][colorGradation];\n }\n return theme.font.color[fontColor];\n};\n"],"mappings":";;;;;;;AAQA;;;;;;;;AAGA,MAAMA,WAAgB,GAAG,EAAzB;;AAEO,MAAMC,sBAAsB,GAAG,CAACC,EAAD,EAAaC,UAAb,KAAiC;EACrEH,WAAW,CAACE,EAAD,CAAX,GAAkBC,UAAlB;AACD,CAFM;;;;AAIP,MAAMC,aAAa,GAAG,CAACC,SAAD,EAAYC,IAAZ,KAAqB,IAAAC,eAAA,EAAOF,SAAP,CAArB,mHACP;EAAA,IAAC;IAAEG;EAAF,CAAD;EAAA,OAAeA,KAAK,CAACC,QAAN,CAAeH,IAAf,CAAf;AAAA,CADO,CAAtB;;AAKO,MAAMI,gBAAgB,GAAG,CAACC,IAAD,EAAiBL,IAAjB,KAA6C;EAC3E,QAAQK,IAAR;IACE,KAAK,QAAL;MACE,OAAOP,aAAa,CAClBQ,OAAO,CAAC,uCAAD,CAAP,CAAiDC,OAD/B,EAElBP,IAFkB,CAApB;;IAIF,KAAK,SAAL;MACE,OAAOF,aAAa,CAClBQ,OAAO,CAAC,yCAAD,CAAP,CAAmDC,OADjC,EAElBP,IAFkB,CAApB;;IAIF,KAAK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CAAD,CAAP,CAAmDC,OADjC,EAElBP,IAFkB,CAApB;;IAIF;MACE,IAAIQ,MAAM,CAACC,SAAP,CAAiBC,cAAjB,CAAgCC,IAAhC,CAAqCjB,WAArC,EAAkDW,IAAlD,CAAJ,EAA6D;QAC3D,OAAOP,aAAa,CAACJ,WAAW,CAACW,IAAD,CAAZ,EAAoBL,IAApB,CAApB;MACD;;MACD,OAAOF,aAAa,CAClBQ,OAAO,CAAC,8CAAD,CAAP,CAAwDC,OADtC,EAElBP,IAFkB,CAApB;EA7EJ;AAkFD,CAnFM;;;;AAqFA,MAAMY,YAAY,GAAG,CAC1BC,YAD0B,EAE1BC,cAF0B,EAG1BC,SAH0B,EAI1Bb,KAJ0B,KAKf;EACX,IAAIW,YAAY,IAAIC,cAApB,EAAoC;IAClC,OAAOZ,KAAK,CAACc,KAAN,CAAYH,YAAZ,EAA0BC,cAA1B,CAAP;EACD;;EACD,OAAOZ,KAAK,CAACe,IAAN,CAAWD,KAAX,CAAiBD,SAAjB,CAAP;AACD,CAVM"}
@@ -1 +1,2 @@
1
- export { default as Icon, IconProps } from './Icon';
1
+ export { default as Icon } from './Icon';
2
+ export type { IconProps } from './Icon';
@@ -1,14 +1,16 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
4
- exports.IconProps = exports.Icon = void 0;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "Icon", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _Icon.default;
10
+ }
11
+ });
5
12
 
6
- var _Icon = _interopRequireWildcard(require("./Icon"));
13
+ var _Icon = _interopRequireDefault(require("./Icon"));
7
14
 
8
- exports.Icon = _Icon.default;
9
- exports.IconProps = _Icon.IconProps;
10
-
11
- 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); }
12
-
13
- 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; }
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/atoms/Icon/index.ts"],"sourcesContent":["export { default as Icon, IconProps } from './Icon';\n"],"mappings":";;;;;AAAA"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/atoms/Icon/index.ts"],"sourcesContent":["export { default as Icon } from './Icon';\nexport type { IconProps } from './Icon';\n"],"mappings":";;;;;;;;;;;;AAAA"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
  exports.default = void 0;
5
7
 
6
8
  var _react = _interopRequireDefault(require("react"));
@@ -11,11 +13,12 @@ var _styled = require("./styled");
11
13
 
12
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
15
 
14
- const Hint = ({
15
- variant,
16
- text,
17
- TextComponent = _Text.Text
18
- }) => {
16
+ const Hint = _ref => {
17
+ let {
18
+ variant,
19
+ text,
20
+ TextComponent = _Text.Text
21
+ } = _ref;
19
22
  let color;
20
23
  let icon;
21
24
 
@@ -1 +1 @@
1
- {"version":3,"file":"Hint.js","names":["Hint","variant","text","TextComponent","Text","color","icon"],"sources":["../../../../src/components/atoms/Input/Hint.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { ColorType } from '../../../types/defaults';\nimport { InputVariantType } from '../Input';\nimport { Text, TextProps } from '../Text';\nimport { StyledHintContainer, StyledHintIcon } from './styled';\n\ninterface HintProps {\n text?: string;\n variant: InputVariantType;\n TextComponent?: FC<TextProps>;\n}\n\nconst Hint: FC<HintProps> = ({ variant, text, TextComponent = Text }) => {\n let color: ColorType;\n let icon;\n\n switch (variant) {\n case 'default':\n color = 'secondary';\n break;\n case 'error':\n color = 'error';\n icon = 'close-circle-outline';\n break;\n case 'success':\n color = 'success';\n icon = 'checkmark-circle-outline';\n break;\n }\n\n return (\n <StyledHintContainer>\n {icon && (\n <StyledHintIcon\n name={icon}\n type=\"ionicon\"\n size=\"centi\"\n colorVariant={color}\n />\n )}\n <TextComponent typography=\"label\" colorVariant={color}>\n {text}\n </TextComponent>\n </StyledHintContainer>\n );\n};\n\nexport default Hint;\n"],"mappings":";;;;;AAAA;;AAGA;;AACA;;;;AAQA,MAAMA,IAAmB,GAAG,CAAC;EAAEC,OAAF;EAAWC,IAAX;EAAiBC,aAAa,GAAGC;AAAjC,CAAD,KAA6C;EACvE,IAAIC,KAAJ;EACA,IAAIC,IAAJ;;EAEA,QAAQL,OAAR;IACE,KAAK,SAAL;MACEI,KAAK,GAAG,WAAR;MACA;;IACF,KAAK,OAAL;MACEA,KAAK,GAAG,OAAR;MACAC,IAAI,GAAG,sBAAP;MACA;;IACF,KAAK,SAAL;MACED,KAAK,GAAG,SAAR;MACAC,IAAI,GAAG,0BAAP;MACA;EAXJ;;EAcA,OACE,6BAAC,2BAAD,QACGA,IAAI,IACH,6BAAC,sBAAD;IACE,IAAI,EAAEA,IADR;IAEE,IAAI,EAAC,SAFP;IAGE,IAAI,EAAC,OAHP;IAIE,YAAY,EAAED;EAJhB,EAFJ,EASE,6BAAC,aAAD;IAAe,UAAU,EAAC,OAA1B;IAAkC,YAAY,EAAEA;EAAhD,GACGH,IADH,CATF,CADF;AAeD,CAjCD;;eAmCeF,I"}
1
+ {"version":3,"file":"Hint.js","names":["Hint","variant","text","TextComponent","Text","color","icon"],"sources":["../../../../src/components/atoms/Input/Hint.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { ColorType } from '../../../types/defaults';\nimport { InputVariantType } from '../Input';\nimport { Text, TextProps } from '../Text';\nimport { StyledHintContainer, StyledHintIcon } from './styled';\n\ninterface HintProps {\n text?: string;\n variant: InputVariantType;\n TextComponent?: FC<TextProps>;\n}\n\nconst Hint: FC<HintProps> = ({ variant, text, TextComponent = Text }) => {\n let color: ColorType;\n let icon;\n\n switch (variant) {\n case 'default':\n color = 'secondary';\n break;\n case 'error':\n color = 'error';\n icon = 'close-circle-outline';\n break;\n case 'success':\n color = 'success';\n icon = 'checkmark-circle-outline';\n break;\n }\n\n return (\n <StyledHintContainer>\n {icon && (\n <StyledHintIcon\n name={icon}\n type=\"ionicon\"\n size=\"centi\"\n colorVariant={color}\n />\n )}\n <TextComponent typography=\"label\" colorVariant={color}>\n {text}\n </TextComponent>\n </StyledHintContainer>\n );\n};\n\nexport default Hint;\n"],"mappings":";;;;;;;AAAA;;AAGA;;AACA;;;;AAQA,MAAMA,IAAmB,GAAG,QAA6C;EAAA,IAA5C;IAAEC,OAAF;IAAWC,IAAX;IAAiBC,aAAa,GAAGC;EAAjC,CAA4C;EACvE,IAAIC,KAAJ;EACA,IAAIC,IAAJ;;EAEA,QAAQL,OAAR;IACE,KAAK,SAAL;MACEI,KAAK,GAAG,WAAR;MACA;;IACF,KAAK,OAAL;MACEA,KAAK,GAAG,OAAR;MACAC,IAAI,GAAG,sBAAP;MACA;;IACF,KAAK,SAAL;MACED,KAAK,GAAG,SAAR;MACAC,IAAI,GAAG,0BAAP;MACA;EAXJ;;EAcA,OACE,6BAAC,2BAAD,QACGA,IAAI,IACH,6BAAC,sBAAD;IACE,IAAI,EAAEA,IADR;IAEE,IAAI,EAAC,SAFP;IAGE,IAAI,EAAC,OAHP;IAIE,YAAY,EAAED;EAJhB,EAFJ,EASE,6BAAC,aAAD;IAAe,UAAU,EAAC,OAA1B;IAAkC,YAAY,EAAEA;EAAhD,GACGH,IADH,CATF,CADF;AAeD,CAjCD;;eAmCeF,I"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
  exports.default = void 0;
5
7
 
6
8
  var _react = _interopRequireDefault(require("react"));
@@ -13,24 +15,25 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
13
15
 
14
16
  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
17
 
16
- const InputContainer = ({
17
- label,
18
- labelColor = 'medium',
19
- labelColorTone,
20
- labelColorVariant,
21
- labelTypography = 'label',
22
- labelStack = 'default',
23
- labelWeight = 'bold',
24
- LabelComponent = _Text.Text,
25
- leftComponent,
26
- rightComponent,
27
- inputContainerStyle,
28
- disabled,
29
- focused,
30
- variant,
31
- children,
32
- ...rest
33
- }) => {
18
+ const InputContainer = _ref => {
19
+ let {
20
+ label,
21
+ labelColor = 'medium',
22
+ labelColorTone,
23
+ labelColorVariant,
24
+ labelTypography = 'label',
25
+ labelStack = 'default',
26
+ labelWeight = 'bold',
27
+ LabelComponent = _Text.Text,
28
+ leftComponent,
29
+ rightComponent,
30
+ inputContainerStyle,
31
+ disabled,
32
+ focused,
33
+ variant,
34
+ children,
35
+ ...rest
36
+ } = _ref;
34
37
  let _defaultLabelColor = labelColorVariant;
35
38
  if (variant === 'error') _defaultLabelColor = 'error';
36
39
  if (variant === 'success') _defaultLabelColor = 'success';
@@ -1 +1 @@
1
- {"version":3,"file":"InputContainer.js","names":["InputContainer","label","labelColor","labelColorTone","labelColorVariant","labelTypography","labelStack","labelWeight","LabelComponent","Text","leftComponent","rightComponent","inputContainerStyle","disabled","focused","variant","children","rest","_defaultLabelColor","_labelColorVariant","_labelColorTone"],"sources":["../../../../../src/components/atoms/Input/InputContainer/InputContainer.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { StyleProp, ViewStyle } from 'react-native';\nimport { InputElementProps } from '..';\nimport {\n ColorGradationType,\n ColorType,\n FontColorType,\n FontStackType,\n FontWeightType,\n TypographyVariationType,\n} from '@tecsinapse/react-core';\nimport { Text, TextProps } from '../../Text';\nimport {\n StyledBorderKeeper,\n StyledIconContent,\n StyledInputContainer,\n StyledLabelContainer,\n} from '../styled';\n\nexport type InputVariantType = 'default' | 'error' | 'success';\n\nexport interface InputContainerProps {\n label?: string;\n labelColor?: FontColorType;\n labelColorVariant?: ColorType;\n labelColorTone?: ColorGradationType;\n labelTypography?: TypographyVariationType;\n labelStack?: FontStackType;\n LabelComponent?: FC<TextProps>;\n labelWeight?: FontWeightType;\n leftComponent?: JSX.Element;\n rightComponent?: JSX.Element;\n borderColor?: ColorType;\n borderColorGradation?: ColorGradationType;\n style?: StyleProp<ViewStyle>;\n inputContainerStyle?: StyleProp<ViewStyle>;\n focused?: boolean;\n disabled?: boolean;\n variant?: InputVariantType;\n hint?: string;\n hintComponent?: JSX.Element;\n}\n\nconst InputContainer: FC<InputContainerProps & Partial<InputElementProps>> = ({\n label,\n labelColor = 'medium',\n labelColorTone,\n labelColorVariant,\n labelTypography = 'label',\n labelStack = 'default',\n labelWeight = 'bold',\n LabelComponent = Text,\n leftComponent,\n rightComponent,\n inputContainerStyle,\n disabled,\n focused,\n variant,\n children,\n ...rest\n}): JSX.Element => {\n let _defaultLabelColor = labelColorVariant;\n if (variant === 'error') _defaultLabelColor = 'error';\n if (variant === 'success') _defaultLabelColor = 'success';\n const _labelColorVariant = disabled ? 'secondary' : _defaultLabelColor;\n const _labelColorTone = disabled ? 'light' : labelColorTone;\n\n return (\n <StyledInputContainer\n {...rest}\n style={inputContainerStyle}\n focused={focused}\n disabled={disabled}\n >\n <StyledBorderKeeper\n focused={focused}\n disabled={disabled}\n borderColor={_defaultLabelColor}\n />\n\n {leftComponent && <StyledIconContent>{leftComponent}</StyledIconContent>}\n\n <StyledLabelContainer\n leftComponent={leftComponent}\n rightComponent={rightComponent}\n >\n {label && (\n <LabelComponent\n fontColor={labelColor}\n colorTone={_labelColorTone}\n colorVariant={_labelColorVariant}\n typography={labelTypography}\n fontWeight={labelWeight}\n fontStack={labelStack}\n >\n {label}\n </LabelComponent>\n )}\n {children}\n </StyledLabelContainer>\n\n {rightComponent && (\n <StyledIconContent>{rightComponent}</StyledIconContent>\n )}\n </StyledInputContainer>\n );\n};\n\nexport default InputContainer;\n"],"mappings":";;;;;AAAA;;AAWA;;AACA;;;;;;AA+BA,MAAMA,cAAoE,GAAG,CAAC;EAC5EC,KAD4E;EAE5EC,UAAU,GAAG,QAF+D;EAG5EC,cAH4E;EAI5EC,iBAJ4E;EAK5EC,eAAe,GAAG,OAL0D;EAM5EC,UAAU,GAAG,SAN+D;EAO5EC,WAAW,GAAG,MAP8D;EAQ5EC,cAAc,GAAGC,UAR2D;EAS5EC,aAT4E;EAU5EC,cAV4E;EAW5EC,mBAX4E;EAY5EC,QAZ4E;EAa5EC,OAb4E;EAc5EC,OAd4E;EAe5EC,QAf4E;EAgB5E,GAAGC;AAhByE,CAAD,KAiB1D;EACjB,IAAIC,kBAAkB,GAAGd,iBAAzB;EACA,IAAIW,OAAO,KAAK,OAAhB,EAAyBG,kBAAkB,GAAG,OAArB;EACzB,IAAIH,OAAO,KAAK,SAAhB,EAA2BG,kBAAkB,GAAG,SAArB;;EAC3B,MAAMC,kBAAkB,GAAGN,QAAQ,GAAG,WAAH,GAAiBK,kBAApD;;EACA,MAAME,eAAe,GAAGP,QAAQ,GAAG,OAAH,GAAaV,cAA7C;;EAEA,OACE,6BAAC,4BAAD,eACMc,IADN;IAEE,KAAK,EAAEL,mBAFT;IAGE,OAAO,EAAEE,OAHX;IAIE,QAAQ,EAAED;EAJZ,IAME,6BAAC,0BAAD;IACE,OAAO,EAAEC,OADX;IAEE,QAAQ,EAAED,QAFZ;IAGE,WAAW,EAAEK;EAHf,EANF,EAYGR,aAAa,IAAI,6BAAC,yBAAD,QAAoBA,aAApB,CAZpB,EAcE,6BAAC,4BAAD;IACE,aAAa,EAAEA,aADjB;IAEE,cAAc,EAAEC;EAFlB,GAIGV,KAAK,IACJ,6BAAC,cAAD;IACE,SAAS,EAAEC,UADb;IAEE,SAAS,EAAEkB,eAFb;IAGE,YAAY,EAAED,kBAHhB;IAIE,UAAU,EAAEd,eAJd;IAKE,UAAU,EAAEE,WALd;IAME,SAAS,EAAED;EANb,GAQGL,KARH,CALJ,EAgBGe,QAhBH,CAdF,EAiCGL,cAAc,IACb,6BAAC,yBAAD,QAAoBA,cAApB,CAlCJ,CADF;AAuCD,CA/DD;;eAiEeX,c"}
1
+ {"version":3,"file":"InputContainer.js","names":["InputContainer","label","labelColor","labelColorTone","labelColorVariant","labelTypography","labelStack","labelWeight","LabelComponent","Text","leftComponent","rightComponent","inputContainerStyle","disabled","focused","variant","children","rest","_defaultLabelColor","_labelColorVariant","_labelColorTone"],"sources":["../../../../../src/components/atoms/Input/InputContainer/InputContainer.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { StyleProp, ViewStyle } from 'react-native';\nimport { InputElementProps } from '..';\nimport {\n ColorGradationType,\n ColorType,\n FontColorType,\n FontStackType,\n FontWeightType,\n TypographyVariationType,\n} from '@tecsinapse/react-core';\nimport { Text, TextProps } from '../../Text';\nimport {\n StyledBorderKeeper,\n StyledIconContent,\n StyledInputContainer,\n StyledLabelContainer,\n} from '../styled';\n\nexport type InputVariantType = 'default' | 'error' | 'success';\n\nexport interface InputContainerProps {\n label?: string;\n labelColor?: FontColorType;\n labelColorVariant?: ColorType;\n labelColorTone?: ColorGradationType;\n labelTypography?: TypographyVariationType;\n labelStack?: FontStackType;\n LabelComponent?: FC<TextProps>;\n labelWeight?: FontWeightType;\n leftComponent?: JSX.Element;\n rightComponent?: JSX.Element;\n borderColor?: ColorType;\n borderColorGradation?: ColorGradationType;\n style?: StyleProp<ViewStyle>;\n inputContainerStyle?: StyleProp<ViewStyle>;\n focused?: boolean;\n disabled?: boolean;\n variant?: InputVariantType;\n hint?: string;\n hintComponent?: JSX.Element;\n}\n\nconst InputContainer: FC<InputContainerProps & Partial<InputElementProps>> = ({\n label,\n labelColor = 'medium',\n labelColorTone,\n labelColorVariant,\n labelTypography = 'label',\n labelStack = 'default',\n labelWeight = 'bold',\n LabelComponent = Text,\n leftComponent,\n rightComponent,\n inputContainerStyle,\n disabled,\n focused,\n variant,\n children,\n ...rest\n}): JSX.Element => {\n let _defaultLabelColor = labelColorVariant;\n if (variant === 'error') _defaultLabelColor = 'error';\n if (variant === 'success') _defaultLabelColor = 'success';\n const _labelColorVariant = disabled ? 'secondary' : _defaultLabelColor;\n const _labelColorTone = disabled ? 'light' : labelColorTone;\n\n return (\n <StyledInputContainer\n {...rest}\n style={inputContainerStyle}\n focused={focused}\n disabled={disabled}\n >\n <StyledBorderKeeper\n focused={focused}\n disabled={disabled}\n borderColor={_defaultLabelColor}\n />\n\n {leftComponent && <StyledIconContent>{leftComponent}</StyledIconContent>}\n\n <StyledLabelContainer\n leftComponent={leftComponent}\n rightComponent={rightComponent}\n >\n {label && (\n <LabelComponent\n fontColor={labelColor}\n colorTone={_labelColorTone}\n colorVariant={_labelColorVariant}\n typography={labelTypography}\n fontWeight={labelWeight}\n fontStack={labelStack}\n >\n {label}\n </LabelComponent>\n )}\n {children}\n </StyledLabelContainer>\n\n {rightComponent && (\n <StyledIconContent>{rightComponent}</StyledIconContent>\n )}\n </StyledInputContainer>\n );\n};\n\nexport default InputContainer;\n"],"mappings":";;;;;;;AAAA;;AAWA;;AACA;;;;;;AA+BA,MAAMA,cA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AAC,yBAAD,QAAoBA,cAApB,CAlCJ,CADF;AAuCD,CA/DD;;eAiEeX,c"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
  exports.default = void 0;
5
7
 
6
8
  var _react = require("@emotion/react");
@@ -13,14 +15,15 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
13
15
 
14
16
  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
17
 
16
- const InputElement = _react2.default.forwardRef(({
17
- onChange,
18
- placeholder,
19
- value,
20
- disabled = false,
21
- placeholderTextColor,
22
- ...rest
23
- }, ref) => {
18
+ const InputElement = _react2.default.forwardRef((_ref, ref) => {
19
+ let {
20
+ onChange,
21
+ placeholder,
22
+ value,
23
+ disabled = false,
24
+ placeholderTextColor,
25
+ ...rest
26
+ } = _ref;
24
27
  const theme = (0, _react.useTheme)();
25
28
 
26
29
  const _placeholderColor = placeholderTextColor || theme.font.color.dark;
@@ -1 +1 @@
1
- {"version":3,"file":"InputElement.js","names":["InputElement","React","forwardRef","onChange","placeholder","value","disabled","placeholderTextColor","rest","ref","theme","useTheme","_placeholderColor","font","color","dark","displayName"],"sources":["../../../../../src/components/atoms/Input/InputElement/InputElement.tsx"],"sourcesContent":["import { useTheme } from '@emotion/react';\nimport { ThemeProp } from '@tecsinapse/react-core';\nimport React from 'react';\nimport { StyleProp, TextInput, TextInputProps, TextStyle } from 'react-native';\nimport { StyledInputElement } from '../styled';\n\nexport interface InputElementProps\n extends Omit<TextInputProps, 'onChange' | 'value' | 'ref'> {\n style?: StyleProp<TextStyle>;\n value?: string;\n placeholder?: string;\n disabled?: boolean;\n onChange?: (value: string) => void;\n onFocus?: () => void;\n onBlur?: () => void;\n}\n\nconst InputElement = React.forwardRef<TextInput, InputElementProps>(\n (\n {\n onChange,\n placeholder,\n value,\n disabled = false,\n placeholderTextColor,\n ...rest\n },\n ref\n ): JSX.Element => {\n const theme = useTheme() as ThemeProp;\n const _placeholderColor = placeholderTextColor || theme.font.color.dark;\n\n return (\n <StyledInputElement\n {...rest}\n ref={ref}\n onChangeText={onChange}\n value={value}\n placeholder={placeholder}\n placeholderTextColor={_placeholderColor}\n disabled={disabled}\n editable={!disabled}\n />\n );\n }\n);\n\nInputElement.displayName = 'InputElement';\n\nexport default InputElement;\n"],"mappings":";;;;;AAAA;;AAEA;;AAEA;;;;;;AAaA,MAAMA,YAAY,GAAGC,eAAA,CAAMC,UAAN,CACnB,CACE;EACEC,QADF;EAEEC,WAFF;EAGEC,KAHF;EAIEC,QAAQ,GAAG,KAJb;EAKEC,oBALF;EAME,GAAGC;AANL,CADF,EASEC,GATF,KAUkB;EAChB,MAAMC,KAAK,GAAG,IAAAC,eAAA,GAAd;;EACA,MAAMC,iBAAiB,GAAGL,oBAAoB,IAAIG,KAAK,CAACG,IAAN,CAAWC,KAAX,CAAiBC,IAAnE;;EAEA,OACE,8BAAC,0BAAD,eACMP,IADN;IAEE,GAAG,EAAEC,GAFP;IAGE,YAAY,EAAEN,QAHhB;IAIE,KAAK,EAAEE,KAJT;IAKE,WAAW,EAAED,WALf;IAME,oBAAoB,EAAEQ,iBANxB;IAOE,QAAQ,EAAEN,QAPZ;IAQE,QAAQ,EAAE,CAACA;EARb,GADF;AAYD,CA3BkB,CAArB;;AA8BAN,YAAY,CAACgB,WAAb,GAA2B,cAA3B;eAEehB,Y"}
1
+ {"version":3,"file":"InputElement.js","names":["InputElement","React","forwardRef","ref","onChange","placeholder","value","disabled","placeholderTextColor","rest","theme","useTheme","_placeholderColor","font","color","dark","displayName"],"sources":["../../../../../src/components/atoms/Input/InputElement/InputElement.tsx"],"sourcesContent":["import { useTheme } from '@emotion/react';\nimport { ThemeProp } from '@tecsinapse/react-core';\nimport React from 'react';\nimport { StyleProp, TextInput, TextInputProps, TextStyle } from 'react-native';\nimport { StyledInputElement } from '../styled';\n\nexport interface InputElementProps\n extends Omit<TextInputProps, 'onChange' | 'value' | 'ref'> {\n style?: StyleProp<TextStyle>;\n value?: string;\n placeholder?: string;\n disabled?: boolean;\n onChange?: (value: string) => void;\n onFocus?: () => void;\n onBlur?: () => void;\n}\n\nconst InputElement = React.forwardRef<TextInput, InputElementProps>(\n (\n {\n onChange,\n placeholder,\n value,\n disabled = false,\n placeholderTextColor,\n ...rest\n },\n ref\n ): JSX.Element => {\n const theme = useTheme() as ThemeProp;\n const _placeholderColor = placeholderTextColor || theme.font.color.dark;\n\n return (\n <StyledInputElement\n {...rest}\n ref={ref}\n onChangeText={onChange}\n value={value}\n placeholder={placeholder}\n placeholderTextColor={_placeholderColor}\n disabled={disabled}\n editable={!disabled}\n />\n );\n }\n);\n\nInputElement.displayName = 'InputElement';\n\nexport default InputElement;\n"],"mappings":";;;;;;;AAAA;;AAEA;;AAEA;;;;;;AAaA,MAAMA,YAAY,GAAGC,eAAA,CAAMC,UAAN,CACnB,OASEC,GATF,KAUkB;EAAA,IAThB;IACEC,QADF;IAEEC,WAFF;IAGEC,KAHF;IAIEC,QAAQ,GAAG,KAJb;IAKEC,oBALF;IAME,GAAGC;EANL,CASgB;EAChB,MAAMC,KAAK,GAAG,IAAAC,eAAA,GAAd;;EACA,MAAMC,iBAAiB,GAAGJ,oBAAoB,IAAIE,KAAK,CAACG,IAAN,CAAWC,KAAX,CAAiBC,IAAnE;;EAEA,OACE,8BAAC,0BAAD,eACMN,IADN;IAEE,GAAG,EAAEN,GAFP;IAGE,YAAY,EAAEC,QAHhB;IAIE,KAAK,EAAEE,KAJT;IAKE,WAAW,EAAED,WALf;IAME,oBAAoB,EAAEO,iBANxB;IAOE,QAAQ,EAAEL,QAPZ;IAQE,QAAQ,EAAE,CAACA;EARb,GADF;AAYD,CA3BkB,CAArB;;AA8BAP,YAAY,CAACgB,WAAb,GAA2B,cAA3B;eAEehB,Y"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
  exports.default = void 0;
5
7
 
6
8
  var _react = require("@emotion/react");
@@ -19,15 +21,16 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
19
21
 
20
22
  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); }
21
23
 
22
- const InputMaskElement = _react2.default.forwardRef(({
23
- onChange,
24
- placeholder,
25
- value,
26
- disabled = false,
27
- placeholderTextColor,
28
- mask,
29
- ...rest
30
- }, ref) => {
24
+ const InputMaskElement = _react2.default.forwardRef((_ref, ref) => {
25
+ let {
26
+ onChange,
27
+ placeholder,
28
+ value,
29
+ disabled = false,
30
+ placeholderTextColor,
31
+ mask,
32
+ ...rest
33
+ } = _ref;
31
34
  const theme = (0, _react.useTheme)();
32
35
 
33
36
  const _placeholderColor = placeholderTextColor || theme.font.color.dark;
@@ -44,13 +47,13 @@ const InputMaskElement = _react2.default.forwardRef(({
44
47
  }
45
48
  };
46
49
 
47
- const [maskValue, setMaskValue] = getInputHook(value ?? '');
50
+ const [maskValue, setMaskValue] = getInputHook(value !== null && value !== void 0 ? value : '');
48
51
 
49
- const _value = maskValue === undefined ? value == null ? void 0 : value.toString() : maskValue.formatted ? maskValue.formatted : '';
52
+ const _value = maskValue === undefined ? value === null || value === void 0 ? void 0 : value.toString() : maskValue.formatted ? maskValue.formatted : '';
50
53
 
51
54
  (0, _react2.useEffect)(() => {
52
55
  if (onChange) {
53
- onChange(maskValue == null ? void 0 : maskValue.raw);
56
+ onChange(maskValue === null || maskValue === void 0 ? void 0 : maskValue.raw);
54
57
  }
55
58
  }, [maskValue]);
56
59
  const onChangeValue = (0, _react2.useCallback)(value => {
@@ -1 +1 @@
1
- {"version":3,"file":"InputMaskElement.js","names":["InputMaskElement","React","forwardRef","onChange","placeholder","value","disabled","placeholderTextColor","mask","rest","ref","theme","useTheme","_placeholderColor","font","color","dark","getInputHook","undefined","Array","isArray","useStringMask","useNumberMask","maskValue","setMaskValue","_value","toString","formatted","useEffect","raw","onChangeValue","useCallback","displayName"],"sources":["../../../../../src/components/atoms/Input/InputMaskElement/InputMaskElement.tsx"],"sourcesContent":["import { useTheme } from '@emotion/react';\nimport { ThemeProp } from '@tecsinapse/react-core';\nimport React, { useCallback, useEffect } from 'react';\nimport { StyleProp, TextInput, TextInputProps, TextStyle } from 'react-native';\nimport { StyledInputElement } from '../styled';\nimport { MaskType, useStringMask } from '../hooks/useStringMask';\nimport { CurrencyOptions, useNumberMask } from '../hooks/useNumberMask';\n\nexport interface InputMaskElementProps\n extends Omit<TextInputProps, 'onChange' | 'value' | 'ref'> {\n style?: StyleProp<TextStyle>;\n value?: string | number;\n placeholder?: string;\n disabled?: boolean;\n onChange?: (value: any) => void;\n /**\n To use mask for strings you have to pass a MaskType[] or ((value: string) => MaskType[])\n A MaskType can be a string, RegExp, or Array<RegExp>.\n In case we have a string, '9' represents digits, 'a' represents alphabet characters, and any other character represents fixed characters in the mask.\n For example a phone mask can be represented as ['(99) \\\\99999-9999'], or ['(99) ', '/[9]/', '9999-9999'], or ['(', /[0-9]/, /[0-9]/, ') ', '/[9]/', '9999-9999'] and many others.\n To use mask for numbers you have to pass a CurrencyOptions object\n A CurrencyOptions object contains symbol, separator, decimal, precision. For example {symbol: 'R$ ', separator: '.', decimal: ',', precision: 2,}.\n **/\n mask?: (MaskType[] | ((value: string) => MaskType[])) | CurrencyOptions;\n onFocus?: () => void;\n onBlur?: () => void;\n}\n\nconst InputMaskElement = React.forwardRef<TextInput, InputMaskElementProps>(\n (\n {\n onChange,\n placeholder,\n value,\n disabled = false,\n placeholderTextColor,\n mask,\n ...rest\n },\n ref\n ): JSX.Element => {\n const theme = useTheme() as ThemeProp;\n\n const _placeholderColor = placeholderTextColor || theme.font.color.dark;\n\n const getInputHook = (value: string | number) => {\n if (mask !== undefined) {\n if (Array.isArray(mask) || typeof mask === 'function') {\n return useStringMask(mask, value);\n } else {\n return useNumberMask(mask, value);\n }\n } else {\n return [undefined, undefined];\n }\n };\n\n const [maskValue, setMaskValue] = getInputHook(value ?? '');\n\n const _value =\n maskValue === undefined\n ? value?.toString()\n : maskValue.formatted\n ? maskValue.formatted\n : '';\n\n useEffect(() => {\n if (onChange) {\n onChange(maskValue?.raw);\n }\n }, [maskValue]);\n\n const onChangeValue = useCallback(\n (value: string | number) => {\n if (maskValue !== undefined && setMaskValue !== undefined) {\n setMaskValue(value);\n } else onChange && onChange(value);\n },\n [value]\n );\n\n useEffect(() => {\n /** Used to reinitialize maskValue when the value is updated in the parent component **/\n if (\n maskValue !== undefined &&\n setMaskValue !== undefined &&\n value !== undefined &&\n typeof maskValue === 'object'\n ) {\n /** Case there is a mask **/\n if (\n maskValue.raw !== undefined &&\n maskValue.raw.toString() !== value.toString()\n ) {\n onChangeValue(value);\n }\n } else if (maskValue === undefined && value !== undefined) {\n onChangeValue(value);\n }\n }, [value]);\n\n return (\n <StyledInputElement\n {...rest}\n ref={ref}\n onChangeText={onChangeValue}\n value={_value}\n placeholder={placeholder}\n placeholderTextColor={_placeholderColor}\n disabled={disabled}\n editable={!disabled}\n />\n );\n }\n);\n\nInputMaskElement.displayName = 'InputMaskElement';\n\nexport default InputMaskElement;\n"],"mappings":";;;;;AAAA;;AAEA;;AAEA;;AACA;;AACA;;;;;;;;AAsBA,MAAMA,gBAAgB,GAAGC,eAAA,CAAMC,UAAN,CACvB,CACE;EACEC,QADF;EAEEC,WAFF;EAGEC,KAHF;EAIEC,QAAQ,GAAG,KAJb;EAKEC,oBALF;EAMEC,IANF;EAOE,GAAGC;AAPL,CADF,EAUEC,GAVF,KAWkB;EAChB,MAAMC,KAAK,GAAG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AM,YAAY,KAAKN,SADjB,IAEAb,KAAK,KAAKa,SAFV,IAGA,OAAOK,SAAP,KAAqB,QAJvB,EAKE;MAEA,IACEA,SAAS,CAACM,GAAV,KAAkBX,SAAlB,IACAK,SAAS,CAACM,GAAV,CAAcH,QAAd,OAA6BrB,KAAK,CAACqB,QAAN,EAF/B,EAGE;QACAI,aAAa,CAACzB,KAAD,CAAb;MACD;IACF,CAbD,MAaO,IAAIkB,SAAS,KAAKL,SAAd,IAA2Bb,KAAK,KAAKa,SAAzC,EAAoD;MACzDY,aAAa,CAACzB,KAAD,CAAb;IACD;EACF,CAlBD,EAkBG,CAACA,KAAD,CAlBH;EAoBA,OACE,8BAAC,0BAAD,eACMI,IADN;IAEE,GAAG,EAAEC,GAFP;IAGE,YAAY,EAAEoB,aAHhB;IAIE,KAAK,EAAEL,MAJT;IAKE,WAAW,EAAErB,WALf;IAME,oBAAoB,EAAES,iBANxB;IAOE,QAAQ,EAAEP,QAPZ;IAQE,QAAQ,EAAE,CAACA;EARb,GADF;AAYD,CArFsB,CAAzB;;AAwFAN,gBAAgB,CAACgC,WAAjB,GAA+B,kBAA/B;eAEehC,gB"}
1
+ {"version":3,"file":"InputMaskElement.js","names":["InputMaskElement","React","forwardRef","ref","onChange","placeholder","value","disabled","placeholderTextColor","mask","rest","theme","useTheme","_placeholderColor","font","color","dark","getInputHook","undefined","Array","isArray","useStringMask","useNumberMask","maskValue","setMaskValue","_value","toString","formatted","useEffect","raw","onChangeValue","useCallback","displayName"],"sources":["../../../../../src/components/atoms/Input/InputMaskElement/InputMaskElement.tsx"],"sourcesContent":["import { useTheme } from '@emotion/react';\nimport { ThemeProp } from '@tecsinapse/react-core';\nimport React, { useCallback, useEffect } from 'react';\nimport { StyleProp, TextInput, TextInputProps, TextStyle } from 'react-native';\nimport { StyledInputElement } from '../styled';\nimport { MaskType, useStringMask } from '../hooks/useStringMask';\nimport { CurrencyOptions, useNumberMask } from '../hooks/useNumberMask';\n\nexport interface InputMaskElementProps\n extends Omit<TextInputProps, 'onChange' | 'value' | 'ref'> {\n style?: StyleProp<TextStyle>;\n value?: string | number;\n placeholder?: string;\n disabled?: boolean;\n onChange?: (value: any) => void;\n /**\n To use mask for strings you have to pass a MaskType[] or ((value: string) => MaskType[])\n A MaskType can be a string, RegExp, or Array<RegExp>.\n In case we have a string, '9' represents digits, 'a' represents alphabet characters, and any other character represents fixed characters in the mask.\n For example a phone mask can be represented as ['(99) \\\\99999-9999'], or ['(99) ', '/[9]/', '9999-9999'], or ['(', /[0-9]/, /[0-9]/, ') ', '/[9]/', '9999-9999'] and many others.\n To use mask for numbers you have to pass a CurrencyOptions object\n A CurrencyOptions object contains symbol, separator, decimal, precision. For example {symbol: 'R$ ', separator: '.', decimal: ',', precision: 2,}.\n **/\n mask?: (MaskType[] | ((value: string) => MaskType[])) | CurrencyOptions;\n onFocus?: () => void;\n onBlur?: () => void;\n}\n\nconst InputMaskElement = React.forwardRef<TextInput, InputMaskElementProps>(\n (\n {\n onChange,\n placeholder,\n value,\n disabled = false,\n placeholderTextColor,\n mask,\n ...rest\n },\n ref\n ): JSX.Element => {\n const theme = useTheme() as ThemeProp;\n\n const _placeholderColor = placeholderTextColor || theme.font.color.dark;\n\n const getInputHook = (value: string | number) => {\n if (mask !== undefined) {\n if (Array.isArray(mask) || typeof mask === 'function') {\n return useStringMask(mask, value);\n } else {\n return useNumberMask(mask, value);\n }\n } else {\n return [undefined, undefined];\n }\n };\n\n const [maskValue, setMaskValue] = getInputHook(value ?? '');\n\n const _value =\n maskValue === undefined\n ? value?.toString()\n : maskValue.formatted\n ? maskValue.formatted\n : '';\n\n useEffect(() => {\n if (onChange) {\n onChange(maskValue?.raw);\n }\n }, [maskValue]);\n\n const onChangeValue = useCallback(\n (value: string | number) => {\n if (maskValue !== undefined && setMaskValue !== undefined) {\n setMaskValue(value);\n } else onChange && onChange(value);\n },\n [value]\n );\n\n useEffect(() => {\n /** Used to reinitialize maskValue when the value is updated in the parent component **/\n if (\n maskValue !== undefined &&\n setMaskValue !== undefined &&\n value !== undefined &&\n typeof maskValue === 'object'\n ) {\n /** Case there is a mask **/\n if (\n maskValue.raw !== undefined &&\n maskValue.raw.toString() !== value.toString()\n ) {\n onChangeValue(value);\n }\n } else if (maskValue === undefined && value !== undefined) {\n onChangeValue(value);\n }\n }, [value]);\n\n return (\n <StyledInputElement\n {...rest}\n ref={ref}\n onChangeText={onChangeValue}\n value={_value}\n placeholder={placeholder}\n placeholderTextColor={_placeholderColor}\n disabled={disabled}\n editable={!disabled}\n />\n );\n }\n);\n\nInputMaskElement.displayName = 'InputMaskElement';\n\nexport default InputMaskElement;\n"],"mappings":";;;;;;;AAAA;;AAEA;;AAEA;;AACA;;AACA;;;;;;;;AAsBA,MAAMA,gBAAgB,GAAGC,eAAA,CAAMC,UAAN,CACvB,OAUEC,GAVF,KAWkB;EAAA,IAVhB;IACEC,QADF;IAEEC,WAFF;IAGEC,KAHF;IAIEC,QAAQ,GAAG,KAJb;IAKEC,oBALF;IAMEC,IANF;IAOE,GAAGC;EAPL,CAUgB;EAChB,MAAMC,KAAK,GAAG,IAAAC,eAAA,GAAd;;EAEA,MAAMC,iBAAiB,GAAGL,oBAAoB,IAAIG,KAAK,CAACG,IAAN,CAAWC,KAAX,CAAiBC,IAAnE;;EAEA,MAAMC,YAAY,GAAIX,KAAD,IAA4B;IAC/C,IAAIG,IAAI,KAAKS,SAAb,EAAwB;MACtB,IAAIC,KAAK,CAACC,OAAN,CAAcX,IAAd,KAAuB,OAAOA,IAAP,KAAgB,UAA3C,EAAuD;QACrD,OAAO,IAAAY,4BAAA,EAAcZ,IAAd,EAAoBH,KAApB,CAAP;MACD,CAFD,MAEO;QACL,OAAO,IAAAgB,4BAAA,EAAcb,IAAd,EAAoBH,KAApB,CAAP;MACD;IACF,CAND,MAMO;MACL,OAAO,CAACY,SAAD,EAAYA,SAAZ,CAAP;IACD;EACF,CAVD;;EAYA,MAAM,CAACK,SAAD,EAAYC,YAAZ,IAA4BP,YAAY,C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AAK,EAAEL,MAJT;IAKE,WAAW,EAAEpB,WALf;IAME,oBAAoB,EAAEQ,iBANxB;IAOE,QAAQ,EAAEN,QAPZ;IAQE,QAAQ,EAAE,CAACA;EARb,GADF;AAYD,CArFsB,CAAzB;;AAwFAP,gBAAgB,CAACgC,WAAjB,GAA+B,kBAA/B;eAEehC,gB"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
  exports.default = void 0;
5
7
 
6
8
  var React = _interopRequireWildcard(require("react"));
@@ -17,13 +19,14 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
17
19
 
18
20
  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
21
 
20
- const PressableInputContainer = ({
21
- onPress,
22
- disabled,
23
- style,
24
- children,
25
- ...rest
26
- }) => {
22
+ const PressableInputContainer = _ref => {
23
+ let {
24
+ onPress,
25
+ disabled,
26
+ style,
27
+ children,
28
+ ...rest
29
+ } = _ref;
27
30
  return React.createElement(_styled.StyledPressableSurface, {
28
31
  onPress: onPress,
29
32
  disabled: disabled,
@@ -1 +1 @@
1
- {"version":3,"file":"PressableInputContainer.js","names":["PressableInputContainer","onPress","disabled","style","children","rest"],"sources":["../../../../../src/components/atoms/Input/PressableInputContainer/PressableInputContainer.tsx"],"sourcesContent":["import * as React from 'react';\nimport { PressableStateCallbackType, StyleProp, ViewStyle } from 'react-native';\nimport InputContainer, {\n InputContainerProps,\n} from '../InputContainer/InputContainer';\nimport { StyledPressableSurface } from './styled';\n\nexport interface PressableInputContainerProps\n extends Omit<\n InputContainerProps,\n 'value' | 'onChange' | 'onChangeText' | 'disabled' | 'style'\n > {\n onPress?: () => void | never;\n disabled?: boolean;\n style?:\n | StyleProp<ViewStyle>\n | ((state: PressableStateCallbackType) => StyleProp<ViewStyle>);\n}\n\nconst PressableInputContainer: React.FC<PressableInputContainerProps> = ({\n onPress,\n disabled,\n style,\n children,\n ...rest\n}) => {\n return (\n <StyledPressableSurface onPress={onPress} disabled={disabled} style={style}>\n <InputContainer disabled={disabled} {...rest}>\n {children}\n </InputContainer>\n </StyledPressableSurface>\n );\n};\n\nexport default PressableInputContainer;\n"],"mappings":";;;;;AAAA;;AAEA;;AAGA;;;;;;;;;;AAcA,MAAMA,uBAA+D,GAAG,CAAC;EACvEC,OADuE;EAEvEC,QAFuE;EAGvEC,KAHuE;EAIvEC,QAJuE;EAKvE,GAAGC;AALoE,CAAD,KAMlE;EACJ,OACE,oBAAC,8BAAD;IAAwB,OAAO,EAAEJ,OAAjC;IAA0C,QAAQ,EAAEC,QAApD;IAA8D,KAAK,EAAEC;EAArE,GACE,oBAAC,uBAAD;IAAgB,QAAQ,EAAED;EAA1B,GAAwCG,IAAxC,GACGD,QADH,CADF,CADF;AAOD,CAdD;;eAgBeJ,uB"}
1
+ {"version":3,"file":"PressableInputContainer.js","names":["PressableInputContainer","onPress","disabled","style","children","rest"],"sources":["../../../../../src/components/atoms/Input/PressableInputContainer/PressableInputContainer.tsx"],"sourcesContent":["import * as React from 'react';\nimport { PressableStateCallbackType, StyleProp, ViewStyle } from 'react-native';\nimport InputContainer, {\n InputContainerProps,\n} from '../InputContainer/InputContainer';\nimport { StyledPressableSurface } from './styled';\n\nexport interface PressableInputContainerProps\n extends Omit<\n InputContainerProps,\n 'value' | 'onChange' | 'onChangeText' | 'disabled' | 'style'\n > {\n onPress?: () => void | never;\n disabled?: boolean;\n style?:\n | StyleProp<ViewStyle>\n | ((state: PressableStateCallbackType) => StyleProp<ViewStyle>);\n}\n\nconst PressableInputContainer: React.FC<PressableInputContainerProps> = ({\n onPress,\n disabled,\n style,\n children,\n ...rest\n}) => {\n return (\n <StyledPressableSurface onPress={onPress} disabled={disabled} style={style}>\n <InputContainer disabled={disabled} {...rest}>\n {children}\n </InputContainer>\n </StyledPressableSurface>\n );\n};\n\nexport default PressableInputContainer;\n"],"mappings":";;;;;;;AAAA;;AAEA;;AAGA;;;;;;;;;;AAcA,MAAMA,uBAA+D,GAAG,QAMlE;EAAA,IANmE;IACvEC,OADuE;IAEvEC,QAFuE;IAGvEC,KAHuE;IAIvEC,QAJuE;IAKvE,GAAGC;EALoE,CAMnE;EACJ,OACE,oBAAC,8BAAD;IAAwB,OAAO,EAAEJ,OAAjC;IAA0C,QAAQ,EAAEC,QAApD;IAA8D,KAAK,EAAEC;EAArE,GACE,oBAAC,uBAAD;IAAgB,QAAQ,EAAED;EAA1B,GAAwCG,IAAxC,GACGD,QADH,CADF,CADF;AAOD,CAdD;;eAgBeJ,uB"}
@@ -1 +1,2 @@
1
- export { default as PressableInputContainer, PressableInputContainerProps, } from './PressableInputContainer';
1
+ export { default as PressableInputContainer } from './PressableInputContainer';
2
+ export type { PressableInputContainerProps } from './PressableInputContainer';
@@ -1,14 +1,16 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
4
- exports.PressableInputContainerProps = exports.PressableInputContainer = void 0;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "PressableInputContainer", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _PressableInputContainer.default;
10
+ }
11
+ });
5
12
 
6
- var _PressableInputContainer = _interopRequireWildcard(require("./PressableInputContainer"));
13
+ var _PressableInputContainer = _interopRequireDefault(require("./PressableInputContainer"));
7
14
 
8
- exports.PressableInputContainer = _PressableInputContainer.default;
9
- exports.PressableInputContainerProps = _PressableInputContainer.PressableInputContainerProps;
10
-
11
- 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); }
12
-
13
- 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; }
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/atoms/Input/PressableInputContainer/index.ts"],"sourcesContent":["export {\n default as PressableInputContainer,\n PressableInputContainerProps,\n} from './PressableInputContainer';\n"],"mappings":";;;;;AAAA"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/atoms/Input/PressableInputContainer/index.ts"],"sourcesContent":["export { default as PressableInputContainer } from './PressableInputContainer';\nexport type { PressableInputContainerProps } from './PressableInputContainer';\n"],"mappings":";;;;;;;;;;;;AAAA"}
@@ -1,14 +1,19 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
  exports.StyledPressableSurface = void 0;
5
7
 
6
8
  var _native = _interopRequireDefault(require("@emotion/native"));
7
9
 
10
+ var _templateObject;
11
+
8
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
13
 
10
- const StyledPressableSurface = _native.default.Pressable`
11
- width: 100%;
12
- `;
14
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
15
+
16
+ const StyledPressableSurface = _native.default.Pressable(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n"])));
17
+
13
18
  exports.StyledPressableSurface = StyledPressableSurface;
14
19
  //# sourceMappingURL=styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","names":["StyledPressableSurface","styled","Pressable"],"sources":["../../../../../src/components/atoms/Input/PressableInputContainer/styled.ts"],"sourcesContent":["import styled from '@emotion/native';\n\nexport const StyledPressableSurface = styled.Pressable`\n width: 100%;\n`;\n"],"mappings":";;;;;AAAA;;;;AAEO,MAAMA,sBAAsB,GAAGC,eAAA,CAAOC,SAAU;AACvD;AACA,CAFO"}
1
+ {"version":3,"file":"styled.js","names":["StyledPressableSurface","styled","Pressable"],"sources":["../../../../../src/components/atoms/Input/PressableInputContainer/styled.ts"],"sourcesContent":["import styled from '@emotion/native';\n\nexport const StyledPressableSurface = styled.Pressable`\n width: 100%;\n`;\n"],"mappings":";;;;;;;AAAA;;;;;;;;AAEO,MAAMA,sBAAsB,GAAGC,eAAA,CAAOC,SAAV,uFAA5B"}