@tecsinapse/react-core 1.17.4 → 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 (755) hide show
  1. package/CHANGELOG.md +42 -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 +63 -58
  25. package/dist/components/atoms/BoxContent/styled.js.map +1 -1
  26. package/dist/components/atoms/Button/Button.js +21 -18
  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 +4 -2
  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 +4 -2
  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 +32 -20
  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 +12 -8
  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 +17 -13
  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 +63 -45
  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.d.ts +1 -1
  77. package/dist/components/atoms/GroupButton/GroupButton.js +25 -21
  78. package/dist/components/atoms/GroupButton/GroupButton.js.map +1 -1
  79. package/dist/components/atoms/GroupButton/GroupButtonOption.js +9 -6
  80. package/dist/components/atoms/GroupButton/GroupButtonOption.js.map +1 -1
  81. package/dist/components/atoms/GroupButton/index.d.ts +4 -2
  82. package/dist/components/atoms/GroupButton/index.js +18 -14
  83. package/dist/components/atoms/GroupButton/index.js.map +1 -1
  84. package/dist/components/atoms/GroupButton/styled.js +98 -101
  85. package/dist/components/atoms/GroupButton/styled.js.map +1 -1
  86. package/dist/components/atoms/Icon/Icon.js +16 -13
  87. package/dist/components/atoms/Icon/Icon.js.map +1 -1
  88. package/dist/components/atoms/Icon/helpers.js +14 -8
  89. package/dist/components/atoms/Icon/helpers.js.map +1 -1
  90. package/dist/components/atoms/Icon/index.d.ts +2 -1
  91. package/dist/components/atoms/Icon/index.js +11 -9
  92. package/dist/components/atoms/Icon/index.js.map +1 -1
  93. package/dist/components/atoms/Input/Hint.js +9 -6
  94. package/dist/components/atoms/Input/Hint.js.map +1 -1
  95. package/dist/components/atoms/Input/InputContainer/InputContainer.d.ts +1 -1
  96. package/dist/components/atoms/Input/InputContainer/InputContainer.js +23 -20
  97. package/dist/components/atoms/Input/InputContainer/InputContainer.js.map +1 -1
  98. package/dist/components/atoms/Input/InputElement/InputElement.d.ts +3 -4
  99. package/dist/components/atoms/Input/InputElement/InputElement.js +14 -11
  100. package/dist/components/atoms/Input/InputElement/InputElement.js.map +1 -1
  101. package/dist/components/atoms/Input/InputMaskElement/InputMaskElement.d.ts +3 -4
  102. package/dist/components/atoms/Input/InputMaskElement/InputMaskElement.js +18 -15
  103. package/dist/components/atoms/Input/InputMaskElement/InputMaskElement.js.map +1 -1
  104. package/dist/components/atoms/Input/PressableInputContainer/PressableInputContainer.js +12 -9
  105. package/dist/components/atoms/Input/PressableInputContainer/PressableInputContainer.js.map +1 -1
  106. package/dist/components/atoms/Input/PressableInputContainer/index.d.ts +2 -1
  107. package/dist/components/atoms/Input/PressableInputContainer/index.js +11 -9
  108. package/dist/components/atoms/Input/PressableInputContainer/index.js.map +1 -1
  109. package/dist/components/atoms/Input/PressableInputContainer/styled.js +9 -4
  110. package/dist/components/atoms/Input/PressableInputContainer/styled.js.map +1 -1
  111. package/dist/components/atoms/Input/hooks/useInputFocus.js +5 -2
  112. package/dist/components/atoms/Input/hooks/useInputFocus.js.map +1 -1
  113. package/dist/components/atoms/Input/hooks/useNumberMask.js +7 -4
  114. package/dist/components/atoms/Input/hooks/useNumberMask.js.map +1 -1
  115. package/dist/components/atoms/Input/hooks/useStringMask.js +11 -6
  116. package/dist/components/atoms/Input/hooks/useStringMask.js.map +1 -1
  117. package/dist/components/atoms/Input/index.d.ts +8 -4
  118. package/dist/components/atoms/Input/index.js +66 -35
  119. package/dist/components/atoms/Input/index.js.map +1 -1
  120. package/dist/components/atoms/Input/styled.js +120 -107
  121. package/dist/components/atoms/Input/styled.js.map +1 -1
  122. package/dist/components/atoms/Paper/Paper.js +14 -9
  123. package/dist/components/atoms/Paper/Paper.js.map +1 -1
  124. package/dist/components/atoms/Paper/index.d.ts +2 -1
  125. package/dist/components/atoms/Paper/index.js +11 -9
  126. package/dist/components/atoms/Paper/index.js.map +1 -1
  127. package/dist/components/atoms/Paper/styled.js +8 -5
  128. package/dist/components/atoms/Paper/styled.js.map +1 -1
  129. package/dist/components/atoms/PressableSurface/PressableSurface.js +28 -19
  130. package/dist/components/atoms/PressableSurface/PressableSurface.js.map +1 -1
  131. package/dist/components/atoms/PressableSurface/index.d.ts +2 -1
  132. package/dist/components/atoms/PressableSurface/index.js +11 -9
  133. package/dist/components/atoms/PressableSurface/index.js.map +1 -1
  134. package/dist/components/atoms/ProgressBar/ProgressBar.d.ts +1 -1
  135. package/dist/components/atoms/ProgressBar/ProgressBar.js +20 -15
  136. package/dist/components/atoms/ProgressBar/ProgressBar.js.map +1 -1
  137. package/dist/components/atoms/ProgressBar/index.d.ts +2 -1
  138. package/dist/components/atoms/ProgressBar/index.js +11 -9
  139. package/dist/components/atoms/ProgressBar/index.js.map +1 -1
  140. package/dist/components/atoms/ProgressBar/styled.js +39 -30
  141. package/dist/components/atoms/ProgressBar/styled.js.map +1 -1
  142. package/dist/components/atoms/RadioButton/RadioButton.js +17 -13
  143. package/dist/components/atoms/RadioButton/RadioButton.js.map +1 -1
  144. package/dist/components/atoms/RadioButton/index.d.ts +2 -1
  145. package/dist/components/atoms/RadioButton/index.js +11 -9
  146. package/dist/components/atoms/RadioButton/index.js.map +1 -1
  147. package/dist/components/atoms/RadioButton/styled.js +39 -30
  148. package/dist/components/atoms/RadioButton/styled.js.map +1 -1
  149. package/dist/components/atoms/Switch/Switch.d.ts +1 -1
  150. package/dist/components/atoms/Switch/Switch.js +17 -14
  151. package/dist/components/atoms/Switch/Switch.js.map +1 -1
  152. package/dist/components/atoms/Switch/animation.js +3 -1
  153. package/dist/components/atoms/Switch/animation.js.map +1 -1
  154. package/dist/components/atoms/Switch/index.d.ts +2 -1
  155. package/dist/components/atoms/Switch/index.js +11 -9
  156. package/dist/components/atoms/Switch/index.js.map +1 -1
  157. package/dist/components/atoms/Switch/styled.d.ts +2 -14
  158. package/dist/components/atoms/Switch/styled.js +30 -23
  159. package/dist/components/atoms/Switch/styled.js.map +1 -1
  160. package/dist/components/atoms/Tag/Tag.js +15 -12
  161. package/dist/components/atoms/Tag/Tag.js.map +1 -1
  162. package/dist/components/atoms/Tag/index.d.ts +2 -1
  163. package/dist/components/atoms/Tag/index.js +11 -9
  164. package/dist/components/atoms/Tag/index.js.map +1 -1
  165. package/dist/components/atoms/Tag/styled.js +48 -44
  166. package/dist/components/atoms/Tag/styled.js.map +1 -1
  167. package/dist/components/atoms/Text/Text.js +20 -17
  168. package/dist/components/atoms/Text/Text.js.map +1 -1
  169. package/dist/components/atoms/Text/functions.js +3 -1
  170. package/dist/components/atoms/Text/functions.js.map +1 -1
  171. package/dist/components/atoms/Text/index.d.ts +2 -1
  172. package/dist/components/atoms/Text/index.js +11 -9
  173. package/dist/components/atoms/Text/index.js.map +1 -1
  174. package/dist/components/atoms/Text/styled.js +52 -34
  175. package/dist/components/atoms/Text/styled.js.map +1 -1
  176. package/dist/components/atoms/shared/PaperAndCard.js +29 -20
  177. package/dist/components/atoms/shared/PaperAndCard.js.map +1 -1
  178. package/dist/components/molecules/Calendar/Calendar.js +20 -16
  179. package/dist/components/molecules/Calendar/Calendar.js.map +1 -1
  180. package/dist/components/molecules/Calendar/components/MonthWeek.js +16 -12
  181. package/dist/components/molecules/Calendar/components/MonthWeek.js.map +1 -1
  182. package/dist/components/molecules/Calendar/components/Weekdays.js +9 -6
  183. package/dist/components/molecules/Calendar/components/Weekdays.js.map +1 -1
  184. package/dist/components/molecules/Calendar/components/index.js +15 -6
  185. package/dist/components/molecules/Calendar/components/index.js.map +1 -1
  186. package/dist/components/molecules/Calendar/index.d.ts +2 -1
  187. package/dist/components/molecules/Calendar/index.js +11 -12
  188. package/dist/components/molecules/Calendar/index.js.map +1 -1
  189. package/dist/components/molecules/Calendar/styled.js +59 -71
  190. package/dist/components/molecules/Calendar/styled.js.map +1 -1
  191. package/dist/components/molecules/DatePicker/DatePicker.js +35 -32
  192. package/dist/components/molecules/DatePicker/DatePicker.js.map +1 -1
  193. package/dist/components/molecules/DatePicker/index.d.ts +2 -1
  194. package/dist/components/molecules/DatePicker/index.js +11 -9
  195. package/dist/components/molecules/DatePicker/index.js.map +1 -1
  196. package/dist/components/molecules/DatePicker/styled.js +20 -14
  197. package/dist/components/molecules/DatePicker/styled.js.map +1 -1
  198. package/dist/components/molecules/DateTimePicker/DateTimePicker.js +44 -41
  199. package/dist/components/molecules/DateTimePicker/DateTimePicker.js.map +1 -1
  200. package/dist/components/molecules/DateTimePicker/index.d.ts +2 -1
  201. package/dist/components/molecules/DateTimePicker/index.js +11 -9
  202. package/dist/components/molecules/DateTimePicker/index.js.map +1 -1
  203. package/dist/components/molecules/DateTimePicker/styled.js +13 -6
  204. package/dist/components/molecules/DateTimePicker/styled.js.map +1 -1
  205. package/dist/components/molecules/DateTimeSelector/DateTimeSelector.js +28 -25
  206. package/dist/components/molecules/DateTimeSelector/DateTimeSelector.js.map +1 -1
  207. package/dist/components/molecules/DateTimeSelector/Selector.js +18 -14
  208. package/dist/components/molecules/DateTimeSelector/Selector.js.map +1 -1
  209. package/dist/components/molecules/DateTimeSelector/index.d.ts +2 -1
  210. package/dist/components/molecules/DateTimeSelector/index.js +11 -10
  211. package/dist/components/molecules/DateTimeSelector/index.js.map +1 -1
  212. package/dist/components/molecules/DateTimeSelector/styled.js +89 -69
  213. package/dist/components/molecules/DateTimeSelector/styled.js.map +1 -1
  214. package/dist/components/molecules/Grid/functions.d.ts +3 -0
  215. package/dist/components/molecules/Grid/functions.js +25 -0
  216. package/dist/components/molecules/Grid/functions.js.map +1 -0
  217. package/dist/components/molecules/Grid/index.d.ts +42 -2
  218. package/dist/components/molecules/Grid/index.js +16 -15
  219. package/dist/components/molecules/Grid/index.js.map +1 -1
  220. package/dist/components/molecules/HintInputContainer/HintInputContainer.js +20 -16
  221. package/dist/components/molecules/HintInputContainer/HintInputContainer.js.map +1 -1
  222. package/dist/components/molecules/HintInputContainer/index.js +9 -4
  223. package/dist/components/molecules/HintInputContainer/index.js.map +1 -1
  224. package/dist/components/molecules/HintInputContainer/styled.js.map +1 -1
  225. package/dist/components/molecules/IconTextButton/IconComponent.d.ts +9 -0
  226. package/dist/components/molecules/IconTextButton/IconComponent.js +33 -0
  227. package/dist/components/molecules/IconTextButton/IconComponent.js.map +1 -0
  228. package/dist/components/molecules/IconTextButton/IconTextButton.d.ts +8 -0
  229. package/dist/components/molecules/IconTextButton/IconTextButton.js +6 -0
  230. package/dist/components/molecules/IconTextButton/IconTextButton.js.map +1 -0
  231. package/dist/components/molecules/IconTextButton/index.d.ts +2 -0
  232. package/dist/components/molecules/IconTextButton/index.js +16 -0
  233. package/dist/components/molecules/IconTextButton/index.js.map +1 -0
  234. package/dist/components/molecules/IconTextButton/styled.d.ts +4 -0
  235. package/dist/components/molecules/IconTextButton/styled.js +29 -0
  236. package/dist/components/molecules/IconTextButton/styled.js.map +1 -0
  237. package/dist/components/molecules/InputPassword/InputPasswordIcon.js +10 -7
  238. package/dist/components/molecules/InputPassword/InputPasswordIcon.js.map +1 -1
  239. package/dist/components/molecules/InputPassword/index.js +9 -4
  240. package/dist/components/molecules/InputPassword/index.js.map +1 -1
  241. package/dist/components/molecules/InputPassword/styled.js +13 -6
  242. package/dist/components/molecules/InputPassword/styled.js.map +1 -1
  243. package/dist/components/molecules/LabeledSwitch/LabeledSwitch.d.ts +7 -0
  244. package/dist/components/molecules/LabeledSwitch/LabeledSwitch.js +6 -0
  245. package/dist/components/molecules/LabeledSwitch/LabeledSwitch.js.map +1 -0
  246. package/dist/components/molecules/LabeledSwitch/index.d.ts +1 -0
  247. package/dist/components/molecules/LabeledSwitch/index.js +6 -0
  248. package/dist/components/molecules/LabeledSwitch/index.js.map +1 -0
  249. package/dist/components/molecules/Snackbar/Snackbar.js +26 -22
  250. package/dist/components/molecules/Snackbar/Snackbar.js.map +1 -1
  251. package/dist/components/molecules/Snackbar/index.d.ts +2 -1
  252. package/dist/components/molecules/Snackbar/index.js +11 -9
  253. package/dist/components/molecules/Snackbar/index.js.map +1 -1
  254. package/dist/components/molecules/Snackbar/styled.js +53 -77
  255. package/dist/components/molecules/Snackbar/styled.js.map +1 -1
  256. package/dist/components/molecules/TextArea/TextArea.d.ts +1 -1
  257. package/dist/components/molecules/TextArea/TextArea.js +29 -26
  258. package/dist/components/molecules/TextArea/TextArea.js.map +1 -1
  259. package/dist/components/molecules/TextArea/index.d.ts +2 -1
  260. package/dist/components/molecules/TextArea/index.js +17 -11
  261. package/dist/components/molecules/TextArea/index.js.map +1 -1
  262. package/dist/components/molecules/TextArea/styled.d.ts +2 -14
  263. package/dist/components/molecules/TextArea/styled.js +15 -13
  264. package/dist/components/molecules/TextArea/styled.js.map +1 -1
  265. package/dist/hooks/index.js +15 -6
  266. package/dist/hooks/index.js.map +1 -1
  267. package/dist/hooks/useDebouncedState.js +5 -2
  268. package/dist/hooks/useDebouncedState.js.map +1 -1
  269. package/dist/hooks/useTheme.js +3 -1
  270. package/dist/hooks/useTheme.js.map +1 -1
  271. package/dist/index.d.ts +58 -28
  272. package/dist/index.js +319 -175
  273. package/dist/index.js.map +1 -1
  274. package/dist/styles/ThemeProvider.js +8 -5
  275. package/dist/styles/ThemeProvider.js.map +1 -1
  276. package/dist/styles/definitions.d.ts +2 -1
  277. package/dist/styles/definitions.js +13 -4
  278. package/dist/styles/definitions.js.map +1 -1
  279. package/dist/styles/light.js +5 -2
  280. package/dist/styles/light.js.map +1 -1
  281. package/dist/types/defaults.d.ts +8 -2
  282. package/dist/types/defaults.js +3 -1
  283. package/dist/types/defaults.js.map +1 -1
  284. package/dist/utils/IPhoneXHelper.js +6 -4
  285. package/dist/utils/IPhoneXHelper.js.map +1 -1
  286. package/dist/utils/ResponsiveFontSize.js +12 -9
  287. package/dist/utils/ResponsiveFontSize.js.map +1 -1
  288. package/dist/utils/extractNumbersFromString.js +4 -2
  289. package/dist/utils/extractNumbersFromString.js.map +1 -1
  290. package/dist/utils/formatWithMask.js +3 -1
  291. package/dist/utils/formatWithMask.js.map +1 -1
  292. package/dist/utils/index.d.ts +5 -4
  293. package/dist/utils/index.js +71 -23
  294. package/dist/utils/index.js.map +1 -1
  295. package/dist/utils/lightenDarkenColor.js +3 -1
  296. package/dist/utils/lightenDarkenColor.js.map +1 -1
  297. package/dist/utils/masks.js +5 -3
  298. package/dist/utils/masks.js.map +1 -1
  299. package/dist/utils/variantComplement.d.ts +6 -0
  300. package/dist/utils/variantComplement.js +37 -0
  301. package/dist/utils/variantComplement.js.map +1 -0
  302. package/esm/components/atoms/Avatar/Avatar.d.ts +14 -0
  303. package/esm/components/atoms/Avatar/Avatar.js +50 -0
  304. package/esm/components/atoms/Avatar/Avatar.js.map +1 -0
  305. package/esm/components/atoms/Avatar/helpers.d.ts +1 -0
  306. package/esm/components/atoms/Avatar/helpers.js +12 -0
  307. package/esm/components/atoms/Avatar/helpers.js.map +1 -0
  308. package/esm/components/atoms/Avatar/index.d.ts +2 -0
  309. package/esm/components/atoms/Avatar/index.js +2 -0
  310. package/esm/components/atoms/Avatar/index.js.map +1 -0
  311. package/esm/components/atoms/Avatar/styled.d.ts +28 -0
  312. package/esm/components/atoms/Avatar/styled.js +33 -0
  313. package/esm/components/atoms/Avatar/styled.js.map +1 -0
  314. package/esm/components/atoms/Badge/Badge.d.ts +11 -0
  315. package/esm/components/atoms/Badge/Badge.js +20 -0
  316. package/esm/components/atoms/Badge/Badge.js.map +1 -0
  317. package/esm/components/atoms/Badge/index.d.ts +2 -0
  318. package/esm/components/atoms/Badge/index.js +2 -0
  319. package/esm/components/atoms/Badge/index.js.map +1 -0
  320. package/esm/components/atoms/Badge/styled.d.ts +15 -0
  321. package/esm/components/atoms/Badge/styled.js +20 -0
  322. package/esm/components/atoms/Badge/styled.js.map +1 -0
  323. package/esm/components/atoms/BoxContent/BoxContent.d.ts +7 -0
  324. package/esm/components/atoms/BoxContent/BoxContent.js +18 -0
  325. package/esm/components/atoms/BoxContent/BoxContent.js.map +1 -0
  326. package/esm/components/atoms/BoxContent/index.d.ts +2 -0
  327. package/esm/components/atoms/BoxContent/index.js +2 -0
  328. package/esm/components/atoms/BoxContent/index.js.map +1 -0
  329. package/esm/components/atoms/BoxContent/styled.d.ts +24 -0
  330. package/esm/components/atoms/BoxContent/styled.js +55 -0
  331. package/esm/components/atoms/BoxContent/styled.js.map +1 -0
  332. package/esm/components/atoms/Button/Button.d.ts +28 -0
  333. package/esm/components/atoms/Button/Button.js +76 -0
  334. package/esm/components/atoms/Button/Button.js.map +1 -0
  335. package/esm/components/atoms/Button/States/BaseState.d.ts +7 -0
  336. package/esm/components/atoms/Button/States/BaseState.js +29 -0
  337. package/esm/components/atoms/Button/States/BaseState.js.map +1 -0
  338. package/esm/components/atoms/Button/States/Error.d.ts +4 -0
  339. package/esm/components/atoms/Button/States/Error.js +11 -0
  340. package/esm/components/atoms/Button/States/Error.js.map +1 -0
  341. package/esm/components/atoms/Button/States/Loading.d.ts +4 -0
  342. package/esm/components/atoms/Button/States/Loading.js +26 -0
  343. package/esm/components/atoms/Button/States/Loading.js.map +1 -0
  344. package/esm/components/atoms/Button/States/Success.d.ts +4 -0
  345. package/esm/components/atoms/Button/States/Success.js +11 -0
  346. package/esm/components/atoms/Button/States/Success.js.map +1 -0
  347. package/esm/components/atoms/Button/States/index.d.ts +3 -0
  348. package/esm/components/atoms/Button/States/index.js +4 -0
  349. package/esm/components/atoms/Button/States/index.js.map +1 -0
  350. package/esm/components/atoms/Button/States/styled.d.ts +16 -0
  351. package/esm/components/atoms/Button/States/styled.js +25 -0
  352. package/esm/components/atoms/Button/States/styled.js.map +1 -0
  353. package/esm/components/atoms/Button/index.d.ts +3 -0
  354. package/esm/components/atoms/Button/index.js +3 -0
  355. package/esm/components/atoms/Button/index.js.map +1 -0
  356. package/esm/components/atoms/Button/styled.d.ts +8 -0
  357. package/esm/components/atoms/Button/styled.js +42 -0
  358. package/esm/components/atoms/Button/styled.js.map +1 -0
  359. package/esm/components/atoms/Card/Card.d.ts +9 -0
  360. package/esm/components/atoms/Card/Card.js +33 -0
  361. package/esm/components/atoms/Card/Card.js.map +1 -0
  362. package/esm/components/atoms/Card/Footer/Footer.d.ts +7 -0
  363. package/esm/components/atoms/Card/Footer/Footer.js +13 -0
  364. package/esm/components/atoms/Card/Footer/Footer.js.map +1 -0
  365. package/esm/components/atoms/Card/Footer/index.d.ts +2 -0
  366. package/esm/components/atoms/Card/Footer/index.js +2 -0
  367. package/esm/components/atoms/Card/Footer/index.js.map +1 -0
  368. package/esm/components/atoms/Card/Header/Header.d.ts +7 -0
  369. package/esm/components/atoms/Card/Header/Header.js +13 -0
  370. package/esm/components/atoms/Card/Header/Header.js.map +1 -0
  371. package/esm/components/atoms/Card/Header/index.d.ts +2 -0
  372. package/esm/components/atoms/Card/Header/index.js +2 -0
  373. package/esm/components/atoms/Card/Header/index.js.map +1 -0
  374. package/esm/components/atoms/Card/index.d.ts +2 -0
  375. package/esm/components/atoms/Card/index.js +2 -0
  376. package/esm/components/atoms/Card/index.js.map +1 -0
  377. package/esm/components/atoms/Card/styled.d.ts +8 -0
  378. package/esm/components/atoms/Card/styled.js +11 -0
  379. package/esm/components/atoms/Card/styled.js.map +1 -0
  380. package/esm/components/atoms/Checkbox/Checkbox.d.ts +14 -0
  381. package/esm/components/atoms/Checkbox/Checkbox.js +56 -0
  382. package/esm/components/atoms/Checkbox/Checkbox.js.map +1 -0
  383. package/esm/components/atoms/Checkbox/index.d.ts +2 -0
  384. package/esm/components/atoms/Checkbox/index.js +2 -0
  385. package/esm/components/atoms/Checkbox/index.js.map +1 -0
  386. package/esm/components/atoms/Checkbox/styled.d.ts +27 -0
  387. package/esm/components/atoms/Checkbox/styled.js +50 -0
  388. package/esm/components/atoms/Checkbox/styled.js.map +1 -0
  389. package/esm/components/atoms/Divider/Divider.d.ts +8 -0
  390. package/esm/components/atoms/Divider/Divider.js +18 -0
  391. package/esm/components/atoms/Divider/Divider.js.map +1 -0
  392. package/esm/components/atoms/Divider/index.d.ts +2 -0
  393. package/esm/components/atoms/Divider/index.js +2 -0
  394. package/esm/components/atoms/Divider/index.js.map +1 -0
  395. package/esm/components/atoms/Divider/styled.d.ts +13 -0
  396. package/esm/components/atoms/Divider/styled.js +28 -0
  397. package/esm/components/atoms/Divider/styled.js.map +1 -0
  398. package/esm/components/atoms/GroupButton/GroupButton.d.ts +32 -0
  399. package/esm/components/atoms/GroupButton/GroupButton.js +78 -0
  400. package/esm/components/atoms/GroupButton/GroupButton.js.map +1 -0
  401. package/esm/components/atoms/GroupButton/GroupButtonOption.d.ts +9 -0
  402. package/esm/components/atoms/GroupButton/GroupButtonOption.js +19 -0
  403. package/esm/components/atoms/GroupButton/GroupButtonOption.js.map +1 -0
  404. package/esm/components/atoms/GroupButton/index.d.ts +4 -0
  405. package/esm/components/atoms/GroupButton/index.js +3 -0
  406. package/esm/components/atoms/GroupButton/index.js.map +1 -0
  407. package/esm/components/atoms/GroupButton/styled.d.ts +42 -0
  408. package/esm/components/atoms/GroupButton/styled.js +97 -0
  409. package/esm/components/atoms/GroupButton/styled.js.map +1 -0
  410. package/esm/components/atoms/Icon/Icon.d.ts +14 -0
  411. package/esm/components/atoms/Icon/Icon.js +37 -0
  412. package/esm/components/atoms/Icon/Icon.js.map +1 -0
  413. package/esm/components/atoms/Icon/helpers.d.ts +4 -0
  414. package/esm/components/atoms/Icon/helpers.js +78 -0
  415. package/esm/components/atoms/Icon/helpers.js.map +1 -0
  416. package/esm/components/atoms/Icon/index.d.ts +2 -0
  417. package/esm/components/atoms/Icon/index.js +2 -0
  418. package/esm/components/atoms/Icon/index.js.map +1 -0
  419. package/esm/components/atoms/Input/Hint.d.ts +10 -0
  420. package/esm/components/atoms/Input/Hint.js +41 -0
  421. package/esm/components/atoms/Input/Hint.js.map +1 -0
  422. package/esm/components/atoms/Input/InputContainer/InputContainer.d.ts +29 -0
  423. package/esm/components/atoms/Input/InputContainer/InputContainer.js +66 -0
  424. package/esm/components/atoms/Input/InputContainer/InputContainer.js.map +1 -0
  425. package/esm/components/atoms/Input/InputElement/InputElement.d.ts +13 -0
  426. package/esm/components/atoms/Input/InputElement/InputElement.js +37 -0
  427. package/esm/components/atoms/Input/InputElement/InputElement.js.map +1 -0
  428. package/esm/components/atoms/Input/InputMaskElement/InputMaskElement.d.ts +16 -0
  429. package/esm/components/atoms/Input/InputMaskElement/InputMaskElement.js +92 -0
  430. package/esm/components/atoms/Input/InputMaskElement/InputMaskElement.js.map +1 -0
  431. package/esm/components/atoms/Input/PressableInputContainer/PressableInputContainer.d.ts +10 -0
  432. package/esm/components/atoms/Input/PressableInputContainer/PressableInputContainer.js +30 -0
  433. package/esm/components/atoms/Input/PressableInputContainer/PressableInputContainer.js.map +1 -0
  434. package/esm/components/atoms/Input/PressableInputContainer/index.d.ts +2 -0
  435. package/esm/components/atoms/Input/PressableInputContainer/index.js +2 -0
  436. package/esm/components/atoms/Input/PressableInputContainer/index.js.map +1 -0
  437. package/esm/components/atoms/Input/PressableInputContainer/styled.d.ts +5 -0
  438. package/esm/components/atoms/Input/PressableInputContainer/styled.js +7 -0
  439. package/esm/components/atoms/Input/PressableInputContainer/styled.js.map +1 -0
  440. package/esm/components/atoms/Input/hooks/useInputFocus.d.ts +5 -0
  441. package/esm/components/atoms/Input/hooks/useInputFocus.js +40 -0
  442. package/esm/components/atoms/Input/hooks/useInputFocus.js.map +1 -0
  443. package/esm/components/atoms/Input/hooks/useNumberMask.d.ts +8 -0
  444. package/esm/components/atoms/Input/hooks/useNumberMask.js +108 -0
  445. package/esm/components/atoms/Input/hooks/useNumberMask.js.map +1 -0
  446. package/esm/components/atoms/Input/hooks/useStringMask.d.ts +8 -0
  447. package/esm/components/atoms/Input/hooks/useStringMask.js +116 -0
  448. package/esm/components/atoms/Input/hooks/useStringMask.js.map +1 -0
  449. package/esm/components/atoms/Input/index.d.ts +13 -0
  450. package/esm/components/atoms/Input/index.js +10 -0
  451. package/esm/components/atoms/Input/index.js.map +1 -0
  452. package/esm/components/atoms/Input/styled.d.ts +64 -0
  453. package/esm/components/atoms/Input/styled.js +93 -0
  454. package/esm/components/atoms/Input/styled.js.map +1 -0
  455. package/esm/components/atoms/Paper/Paper.d.ts +8 -0
  456. package/esm/components/atoms/Paper/Paper.js +24 -0
  457. package/esm/components/atoms/Paper/Paper.js.map +1 -0
  458. package/esm/components/atoms/Paper/index.d.ts +2 -0
  459. package/esm/components/atoms/Paper/index.js +2 -0
  460. package/esm/components/atoms/Paper/index.js.map +1 -0
  461. package/esm/components/atoms/Paper/styled.d.ts +9 -0
  462. package/esm/components/atoms/Paper/styled.js +11 -0
  463. package/esm/components/atoms/Paper/styled.js.map +1 -0
  464. package/esm/components/atoms/PressableSurface/PressableSurface.d.ts +10 -0
  465. package/esm/components/atoms/PressableSurface/PressableSurface.js +86 -0
  466. package/esm/components/atoms/PressableSurface/PressableSurface.js.map +1 -0
  467. package/esm/components/atoms/PressableSurface/index.d.ts +2 -0
  468. package/esm/components/atoms/PressableSurface/index.js +2 -0
  469. package/esm/components/atoms/PressableSurface/index.js.map +1 -0
  470. package/esm/components/atoms/ProgressBar/ProgressBar.d.ts +18 -0
  471. package/esm/components/atoms/ProgressBar/ProgressBar.js +90 -0
  472. package/esm/components/atoms/ProgressBar/ProgressBar.js.map +1 -0
  473. package/esm/components/atoms/ProgressBar/index.d.ts +2 -0
  474. package/esm/components/atoms/ProgressBar/index.js +2 -0
  475. package/esm/components/atoms/ProgressBar/index.js.map +1 -0
  476. package/esm/components/atoms/ProgressBar/styled.d.ts +20 -0
  477. package/esm/components/atoms/ProgressBar/styled.js +26 -0
  478. package/esm/components/atoms/ProgressBar/styled.js.map +1 -0
  479. package/esm/components/atoms/RadioButton/RadioButton.d.ts +14 -0
  480. package/esm/components/atoms/RadioButton/RadioButton.js +51 -0
  481. package/esm/components/atoms/RadioButton/RadioButton.js.map +1 -0
  482. package/esm/components/atoms/RadioButton/index.d.ts +2 -0
  483. package/esm/components/atoms/RadioButton/index.js +2 -0
  484. package/esm/components/atoms/RadioButton/index.js.map +1 -0
  485. package/esm/components/atoms/RadioButton/styled.d.ts +27 -0
  486. package/esm/components/atoms/RadioButton/styled.js +30 -0
  487. package/esm/components/atoms/RadioButton/styled.js.map +1 -0
  488. package/esm/components/atoms/Switch/Switch.d.ts +16 -0
  489. package/esm/components/atoms/Switch/Switch.js +87 -0
  490. package/esm/components/atoms/Switch/Switch.js.map +1 -0
  491. package/esm/components/atoms/Switch/animation.d.ts +2 -0
  492. package/esm/components/atoms/Switch/animation.js +33 -0
  493. package/esm/components/atoms/Switch/animation.js.map +1 -0
  494. package/esm/components/atoms/Switch/index.d.ts +2 -0
  495. package/esm/components/atoms/Switch/index.js +2 -0
  496. package/esm/components/atoms/Switch/index.js.map +1 -0
  497. package/esm/components/atoms/Switch/styled.d.ts +16 -0
  498. package/esm/components/atoms/Switch/styled.js +24 -0
  499. package/esm/components/atoms/Switch/styled.js.map +1 -0
  500. package/esm/components/atoms/Tag/Tag.d.ts +12 -0
  501. package/esm/components/atoms/Tag/Tag.js +80 -0
  502. package/esm/components/atoms/Tag/Tag.js.map +1 -0
  503. package/esm/components/atoms/Tag/index.d.ts +2 -0
  504. package/esm/components/atoms/Tag/index.js +2 -0
  505. package/esm/components/atoms/Tag/index.js.map +1 -0
  506. package/esm/components/atoms/Tag/styled.d.ts +24 -0
  507. package/esm/components/atoms/Tag/styled.js +39 -0
  508. package/esm/components/atoms/Tag/styled.js.map +1 -0
  509. package/esm/components/atoms/Text/Text.d.ts +19 -0
  510. package/esm/components/atoms/Text/Text.js +47 -0
  511. package/esm/components/atoms/Text/Text.js.map +1 -0
  512. package/esm/components/atoms/Text/functions.d.ts +2 -0
  513. package/esm/components/atoms/Text/functions.js +7 -0
  514. package/esm/components/atoms/Text/functions.js.map +1 -0
  515. package/esm/components/atoms/Text/index.d.ts +2 -0
  516. package/esm/components/atoms/Text/index.js +2 -0
  517. package/esm/components/atoms/Text/index.js.map +1 -0
  518. package/esm/components/atoms/Text/styled.d.ts +20 -0
  519. package/esm/components/atoms/Text/styled.js +46 -0
  520. package/esm/components/atoms/Text/styled.js.map +1 -0
  521. package/esm/components/atoms/shared/PaperAndCard.d.ts +5 -0
  522. package/esm/components/atoms/shared/PaperAndCard.js +25 -0
  523. package/esm/components/atoms/shared/PaperAndCard.js.map +1 -0
  524. package/esm/components/molecules/Calendar/Calendar.d.ts +20 -0
  525. package/esm/components/molecules/Calendar/Calendar.js +144 -0
  526. package/esm/components/molecules/Calendar/Calendar.js.map +1 -0
  527. package/esm/components/molecules/Calendar/components/MonthWeek.d.ts +13 -0
  528. package/esm/components/molecules/Calendar/components/MonthWeek.js +128 -0
  529. package/esm/components/molecules/Calendar/components/MonthWeek.js.map +1 -0
  530. package/esm/components/molecules/Calendar/components/Weekdays.d.ts +8 -0
  531. package/esm/components/molecules/Calendar/components/Weekdays.js +29 -0
  532. package/esm/components/molecules/Calendar/components/Weekdays.js.map +1 -0
  533. package/esm/components/molecules/Calendar/components/index.d.ts +2 -0
  534. package/esm/components/molecules/Calendar/components/index.js +3 -0
  535. package/esm/components/molecules/Calendar/components/index.js.map +1 -0
  536. package/esm/components/molecules/Calendar/index.d.ts +2 -0
  537. package/esm/components/molecules/Calendar/index.js +2 -0
  538. package/esm/components/molecules/Calendar/index.js.map +1 -0
  539. package/esm/components/molecules/Calendar/styled.d.ts +61 -0
  540. package/esm/components/molecules/Calendar/styled.js +56 -0
  541. package/esm/components/molecules/Calendar/styled.js.map +1 -0
  542. package/esm/components/molecules/DatePicker/DatePicker.d.ts +19 -0
  543. package/esm/components/molecules/DatePicker/DatePicker.js +120 -0
  544. package/esm/components/molecules/DatePicker/DatePicker.js.map +1 -0
  545. package/esm/components/molecules/DatePicker/index.d.ts +2 -0
  546. package/esm/components/molecules/DatePicker/index.js +2 -0
  547. package/esm/components/molecules/DatePicker/index.js.map +1 -0
  548. package/esm/components/molecules/DatePicker/styled.d.ts +15 -0
  549. package/esm/components/molecules/DatePicker/styled.js +22 -0
  550. package/esm/components/molecules/DatePicker/styled.js.map +1 -0
  551. package/esm/components/molecules/DateTimePicker/DateTimePicker.d.ts +17 -0
  552. package/esm/components/molecules/DateTimePicker/DateTimePicker.js +122 -0
  553. package/esm/components/molecules/DateTimePicker/DateTimePicker.js.map +1 -0
  554. package/esm/components/molecules/DateTimePicker/index.d.ts +2 -0
  555. package/esm/components/molecules/DateTimePicker/index.js +2 -0
  556. package/esm/components/molecules/DateTimePicker/index.js.map +1 -0
  557. package/esm/components/molecules/DateTimePicker/styled.d.ts +8 -0
  558. package/esm/components/molecules/DateTimePicker/styled.js +12 -0
  559. package/esm/components/molecules/DateTimePicker/styled.js.map +1 -0
  560. package/esm/components/molecules/DateTimeSelector/DateTimeSelector.d.ts +28 -0
  561. package/esm/components/molecules/DateTimeSelector/DateTimeSelector.js +219 -0
  562. package/esm/components/molecules/DateTimeSelector/DateTimeSelector.js.map +1 -0
  563. package/esm/components/molecules/DateTimeSelector/Selector.d.ts +17 -0
  564. package/esm/components/molecules/DateTimeSelector/Selector.js +113 -0
  565. package/esm/components/molecules/DateTimeSelector/Selector.js.map +1 -0
  566. package/esm/components/molecules/DateTimeSelector/index.d.ts +2 -0
  567. package/esm/components/molecules/DateTimeSelector/index.js +2 -0
  568. package/esm/components/molecules/DateTimeSelector/index.js.map +1 -0
  569. package/esm/components/molecules/DateTimeSelector/styled.d.ts +52 -0
  570. package/esm/components/molecules/DateTimeSelector/styled.js +54 -0
  571. package/esm/components/molecules/DateTimeSelector/styled.js.map +1 -0
  572. package/esm/components/molecules/Grid/functions.d.ts +3 -0
  573. package/esm/components/molecules/Grid/functions.js +16 -0
  574. package/esm/components/molecules/Grid/functions.js.map +1 -0
  575. package/esm/components/molecules/Grid/index.d.ts +42 -0
  576. package/esm/components/molecules/Grid/index.js +2 -0
  577. package/esm/components/molecules/Grid/index.js.map +1 -0
  578. package/esm/components/molecules/HintInputContainer/HintInputContainer.d.ts +17 -0
  579. package/esm/components/molecules/HintInputContainer/HintInputContainer.js +46 -0
  580. package/esm/components/molecules/HintInputContainer/HintInputContainer.js.map +1 -0
  581. package/esm/components/molecules/HintInputContainer/index.d.ts +2 -0
  582. package/esm/components/molecules/HintInputContainer/index.js +2 -0
  583. package/esm/components/molecules/HintInputContainer/index.js.map +1 -0
  584. package/esm/components/molecules/HintInputContainer/styled.d.ts +0 -0
  585. package/esm/components/molecules/HintInputContainer/styled.js +2 -0
  586. package/esm/components/molecules/HintInputContainer/styled.js.map +1 -0
  587. package/esm/components/molecules/IconTextButton/IconComponent.d.ts +9 -0
  588. package/esm/components/molecules/IconTextButton/IconComponent.js +20 -0
  589. package/esm/components/molecules/IconTextButton/IconComponent.js.map +1 -0
  590. package/esm/components/molecules/IconTextButton/IconTextButton.d.ts +8 -0
  591. package/esm/components/molecules/IconTextButton/IconTextButton.js +2 -0
  592. package/esm/components/molecules/IconTextButton/IconTextButton.js.map +1 -0
  593. package/esm/components/molecules/IconTextButton/index.d.ts +2 -0
  594. package/esm/components/molecules/IconTextButton/index.js +2 -0
  595. package/esm/components/molecules/IconTextButton/index.js.map +1 -0
  596. package/esm/components/molecules/IconTextButton/styled.d.ts +11 -0
  597. package/esm/components/molecules/IconTextButton/styled.js +14 -0
  598. package/esm/components/molecules/IconTextButton/styled.js.map +1 -0
  599. package/esm/components/molecules/InputPassword/InputPasswordIcon.d.ts +8 -0
  600. package/esm/components/molecules/InputPassword/InputPasswordIcon.js +33 -0
  601. package/esm/components/molecules/InputPassword/InputPasswordIcon.js.map +1 -0
  602. package/esm/components/molecules/InputPassword/index.d.ts +1 -0
  603. package/esm/components/molecules/InputPassword/index.js +2 -0
  604. package/esm/components/molecules/InputPassword/index.js.map +1 -0
  605. package/esm/components/molecules/InputPassword/styled.d.ts +7 -0
  606. package/esm/components/molecules/InputPassword/styled.js +11 -0
  607. package/esm/components/molecules/InputPassword/styled.js.map +1 -0
  608. package/esm/components/molecules/LabeledSwitch/LabeledSwitch.d.ts +7 -0
  609. package/esm/components/molecules/LabeledSwitch/LabeledSwitch.js +2 -0
  610. package/esm/components/molecules/LabeledSwitch/LabeledSwitch.js.map +1 -0
  611. package/esm/components/molecules/LabeledSwitch/index.d.ts +1 -0
  612. package/esm/components/molecules/LabeledSwitch/index.js +2 -0
  613. package/esm/components/molecules/LabeledSwitch/index.js.map +1 -0
  614. package/esm/components/molecules/Snackbar/Snackbar.d.ts +19 -0
  615. package/esm/components/molecules/Snackbar/Snackbar.js +103 -0
  616. package/esm/components/molecules/Snackbar/Snackbar.js.map +1 -0
  617. package/esm/components/molecules/Snackbar/index.d.ts +2 -0
  618. package/esm/components/molecules/Snackbar/index.js +2 -0
  619. package/esm/components/molecules/Snackbar/index.js.map +1 -0
  620. package/esm/components/molecules/Snackbar/styled.d.ts +47 -0
  621. package/esm/components/molecules/Snackbar/styled.js +54 -0
  622. package/esm/components/molecules/Snackbar/styled.js.map +1 -0
  623. package/esm/components/molecules/TextArea/TextArea.d.ts +14 -0
  624. package/esm/components/molecules/TextArea/TextArea.js +77 -0
  625. package/esm/components/molecules/TextArea/TextArea.js.map +1 -0
  626. package/esm/components/molecules/TextArea/index.d.ts +3 -0
  627. package/esm/components/molecules/TextArea/index.js +3 -0
  628. package/esm/components/molecules/TextArea/index.js.map +1 -0
  629. package/esm/components/molecules/TextArea/styled.d.ts +12 -0
  630. package/esm/components/molecules/TextArea/styled.js +14 -0
  631. package/esm/components/molecules/TextArea/styled.js.map +1 -0
  632. package/esm/hooks/index.d.ts +2 -0
  633. package/esm/hooks/index.js +3 -0
  634. package/esm/hooks/index.js.map +1 -0
  635. package/esm/hooks/useDebouncedState.d.ts +2 -0
  636. package/esm/hooks/useDebouncedState.js +31 -0
  637. package/esm/hooks/useDebouncedState.js.map +1 -0
  638. package/esm/hooks/useTheme.d.ts +2 -0
  639. package/esm/hooks/useTheme.js +5 -0
  640. package/esm/hooks/useTheme.js.map +1 -0
  641. package/esm/index.d.ts +64 -0
  642. package/esm/index.js +36 -0
  643. package/esm/index.js.map +1 -0
  644. package/esm/styles/ThemeProvider.d.ts +4 -0
  645. package/esm/styles/ThemeProvider.js +13 -0
  646. package/esm/styles/ThemeProvider.js.map +1 -0
  647. package/esm/styles/definitions.d.ts +45 -0
  648. package/esm/styles/definitions.js +168 -0
  649. package/esm/styles/definitions.js.map +1 -0
  650. package/esm/styles/light.d.ts +2 -0
  651. package/esm/styles/light.js +42 -0
  652. package/esm/styles/light.js.map +1 -0
  653. package/esm/types/defaults.d.ts +134 -0
  654. package/esm/types/defaults.js +2 -0
  655. package/esm/types/defaults.js.map +1 -0
  656. package/esm/utils/IPhoneXHelper.d.ts +4 -0
  657. package/esm/utils/IPhoneXHelper.js +23 -0
  658. package/esm/utils/IPhoneXHelper.js.map +1 -0
  659. package/esm/utils/ResponsiveFontSize.d.ts +3 -0
  660. package/esm/utils/ResponsiveFontSize.js +37 -0
  661. package/esm/utils/ResponsiveFontSize.js.map +1 -0
  662. package/esm/utils/extractNumbersFromString.d.ts +2 -0
  663. package/esm/utils/extractNumbersFromString.js +7 -0
  664. package/esm/utils/extractNumbersFromString.js.map +1 -0
  665. package/esm/utils/formatWithMask.d.ts +3 -0
  666. package/esm/utils/formatWithMask.js +19 -0
  667. package/esm/utils/formatWithMask.js.map +1 -0
  668. package/esm/utils/index.d.ts +7 -0
  669. package/esm/utils/index.js +8 -0
  670. package/esm/utils/index.js.map +1 -0
  671. package/esm/utils/lightenDarkenColor.d.ts +1 -0
  672. package/esm/utils/lightenDarkenColor.js +18 -0
  673. package/esm/utils/lightenDarkenColor.js.map +1 -0
  674. package/esm/utils/masks.d.ts +11 -0
  675. package/esm/utils/masks.js +19 -0
  676. package/esm/utils/masks.js.map +1 -0
  677. package/esm/utils/variantComplement.d.ts +6 -0
  678. package/esm/utils/variantComplement.js +26 -0
  679. package/esm/utils/variantComplement.js.map +1 -0
  680. package/package.json +12 -7
  681. package/src/components/atoms/Avatar/index.ts +2 -1
  682. package/src/components/atoms/Badge/index.ts +2 -1
  683. package/src/components/atoms/Badge/styled.ts +2 -3
  684. package/src/components/atoms/BoxContent/index.ts +2 -1
  685. package/src/components/atoms/Button/index.ts +3 -3
  686. package/src/components/atoms/Card/Footer/index.ts +2 -1
  687. package/src/components/atoms/Card/Header/index.ts +2 -1
  688. package/src/components/atoms/Card/index.ts +2 -1
  689. package/src/components/atoms/Checkbox/index.ts +2 -1
  690. package/src/components/atoms/Divider/index.ts +2 -1
  691. package/src/components/atoms/GroupButton/GroupButton.tsx +2 -5
  692. package/src/components/atoms/GroupButton/index.ts +4 -9
  693. package/src/components/atoms/Icon/index.ts +2 -1
  694. package/src/components/atoms/Input/InputContainer/InputContainer.tsx +3 -3
  695. package/src/components/atoms/Input/InputElement/InputElement.tsx +4 -5
  696. package/src/components/atoms/Input/InputMaskElement/InputMaskElement.tsx +4 -5
  697. package/src/components/atoms/Input/PressableInputContainer/index.ts +2 -4
  698. package/src/components/atoms/Input/index.ts +8 -14
  699. package/src/components/atoms/Paper/index.ts +2 -1
  700. package/src/components/atoms/PressableSurface/index.ts +2 -4
  701. package/src/components/atoms/ProgressBar/ProgressBar.tsx +2 -4
  702. package/src/components/atoms/ProgressBar/index.ts +2 -1
  703. package/src/components/atoms/RadioButton/index.ts +2 -1
  704. package/src/components/atoms/Switch/Switch.tsx +39 -19
  705. package/src/components/atoms/Switch/animation.ts +4 -6
  706. package/src/components/atoms/Switch/index.ts +2 -1
  707. package/src/components/atoms/Switch/styled.ts +4 -6
  708. package/src/components/atoms/Tag/Tag.tsx +1 -1
  709. package/src/components/atoms/Tag/index.ts +2 -1
  710. package/src/components/atoms/Text/index.ts +2 -1
  711. package/src/components/atoms/shared/PaperAndCard.ts +1 -1
  712. package/src/components/molecules/Calendar/index.ts +3 -3
  713. package/src/components/molecules/DatePicker/DatePicker.tsx +12 -8
  714. package/src/components/molecules/DatePicker/index.ts +2 -1
  715. package/src/components/molecules/DateTimePicker/DateTimePicker.tsx +19 -11
  716. package/src/components/molecules/DateTimePicker/index.ts +2 -4
  717. package/src/components/molecules/DateTimeSelector/DateTimeSelector.tsx +0 -1
  718. package/src/components/molecules/DateTimeSelector/index.ts +2 -2
  719. package/src/components/molecules/Grid/functions.ts +29 -0
  720. package/src/components/molecules/Grid/index.ts +66 -2
  721. package/src/components/molecules/HintInputContainer/HintInputContainer.tsx +6 -1
  722. package/src/components/molecules/IconTextButton/IconComponent.tsx +31 -0
  723. package/src/components/molecules/IconTextButton/IconTextButton.tsx +10 -0
  724. package/src/components/molecules/IconTextButton/index.ts +5 -0
  725. package/src/components/molecules/IconTextButton/styled.ts +20 -0
  726. package/src/components/molecules/LabeledSwitch/LabeledSwitch.tsx +9 -0
  727. package/src/components/molecules/LabeledSwitch/index.ts +1 -0
  728. package/src/components/molecules/Snackbar/Snackbar.tsx +1 -1
  729. package/src/components/molecules/Snackbar/index.ts +2 -1
  730. package/src/components/molecules/Snackbar/styled.ts +6 -2
  731. package/src/components/molecules/TextArea/TextArea.tsx +6 -2
  732. package/src/components/molecules/TextArea/index.ts +2 -1
  733. package/src/components/molecules/TextArea/styled.ts +5 -2
  734. package/src/index.ts +82 -54
  735. package/src/styles/definitions.ts +8 -1
  736. package/src/styles/light.ts +2 -0
  737. package/src/types/defaults.ts +11 -1
  738. package/src/utils/IPhoneXHelper.ts +27 -22
  739. package/src/utils/ResponsiveFontSize.ts +55 -36
  740. package/src/utils/index.ts +5 -4
  741. package/src/utils/variantComplement.ts +36 -0
  742. package/tsconfig.build.esm.json +10 -0
  743. package/dist/components/molecules/Grid/Grid.d.ts +0 -15
  744. package/dist/components/molecules/Grid/Grid.js +0 -55
  745. package/dist/components/molecules/Grid/Grid.js.map +0 -1
  746. package/dist/components/molecules/Grid/Item/Item.d.ts +0 -30
  747. package/dist/components/molecules/Grid/Item/Item.js +0 -68
  748. package/dist/components/molecules/Grid/Item/Item.js.map +0 -1
  749. package/dist/components/molecules/Grid/Item/index.d.ts +0 -1
  750. package/dist/components/molecules/Grid/Item/index.js +0 -14
  751. package/dist/components/molecules/Grid/Item/index.js.map +0 -1
  752. package/src/components/molecules/Grid/Grid.stories.tsx +0 -132
  753. package/src/components/molecules/Grid/Grid.tsx +0 -87
  754. package/src/components/molecules/Grid/Item/Item.tsx +0 -93
  755. package/src/components/molecules/Grid/Item/index.ts +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["default","Divider"],"sources":["../../../../src/components/atoms/Divider/index.ts"],"sourcesContent":["export { default as Divider } from './Divider';\nexport type { DividerProps } from './Divider';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,OAApB,QAAmC,WAAnC"}
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { DividerProps } from './Divider';
3
+ export declare const StyledDivider: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps> & {
7
+ ref?: import("react").Ref<import("react-native").View> | undefined;
8
+ } & {
9
+ children?: import("react").ReactNode;
10
+ } & {
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ as?: import("react").ElementType<any> | undefined;
13
+ } & DividerProps, {}, {}>;
@@ -0,0 +1,28 @@
1
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
2
+
3
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
4
+
5
+ import styled, { css } from '@emotion/native';
6
+
7
+ var topLine = function topLine(_ref) {
8
+ var theme = _ref.theme,
9
+ linePosition = _ref.linePosition,
10
+ noLine = _ref.noLine;
11
+ return !noLine && linePosition === 'top' && css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-top-width: ", ";\n "])), theme.borderWidth.pico);
12
+ };
13
+
14
+ var bottomLine = function bottomLine(_ref2) {
15
+ var theme = _ref2.theme,
16
+ linePosition = _ref2.linePosition,
17
+ noLine = _ref2.noLine;
18
+ return !noLine && linePosition === 'bottom' && css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border-bottom-width: ", ";\n "])), theme.borderWidth.pico);
19
+ };
20
+
21
+ var StyledDividerBase = styled.View(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n border-color: ", ";\n"])), function (_ref3) {
22
+ var theme = _ref3.theme;
23
+ return theme.color.secondary.xlight;
24
+ });
25
+ export var StyledDivider = styled(StyledDividerBase)(function (props) {
26
+ return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", "\n ", "\n "])), topLine(props), bottomLine(props));
27
+ });
28
+ //# sourceMappingURL=styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styled.js","names":["styled","css","topLine","theme","linePosition","noLine","borderWidth","pico","bottomLine","StyledDividerBase","View","color","secondary","xlight","StyledDivider","props"],"sources":["../../../../src/components/atoms/Divider/styled.ts"],"sourcesContent":["import styled, { css } from '@emotion/native';\nimport { StyleProps } from '@tecsinapse/react-core';\nimport { DividerProps } from './Divider';\n\nconst topLine = ({ theme, linePosition, noLine }: DividerProps & StyleProps) =>\n !noLine &&\n linePosition === 'top' &&\n css`\n border-top-width: ${theme.borderWidth.pico};\n `;\n\nconst bottomLine = ({\n theme,\n linePosition,\n noLine,\n}: DividerProps & StyleProps) =>\n !noLine &&\n linePosition === 'bottom' &&\n css`\n border-bottom-width: ${theme.borderWidth.pico};\n `;\n\nconst StyledDividerBase = styled.View<Partial<StyleProps>>`\n border-color: ${({ theme }) => theme.color.secondary.xlight};\n`;\n\nexport const StyledDivider = styled(StyledDividerBase)<\n DividerProps & Partial<StyleProps>\n>(\n props => css`\n ${topLine(props)}\n ${bottomLine(props)}\n `\n);\n"],"mappings":";;;;AAAA,OAAOA,MAAP,IAAiBC,GAAjB,QAA4B,iBAA5B;;AAIA,IAAMC,OAAO,GAAG,SAAVA,OAAU;EAAA,IAAGC,KAAH,QAAGA,KAAH;EAAA,IAAUC,YAAV,QAAUA,YAAV;EAAA,IAAwBC,MAAxB,QAAwBA,MAAxB;EAAA,OACd,CAACA,MAAD,IACAD,YAAY,KAAK,KADjB,IAEAH,GAFA,uGAGsBE,KAAK,CAACG,WAAN,CAAkBC,IAHxC,CADc;AAAA,CAAhB;;AAOA,IAAMC,UAAU,GAAG,SAAbA,UAAa;EAAA,IACjBL,KADiB,SACjBA,KADiB;EAAA,IAEjBC,YAFiB,SAEjBA,YAFiB;EAAA,IAGjBC,MAHiB,SAGjBA,MAHiB;EAAA,OAKjB,CAACA,MAAD,IACAD,YAAY,KAAK,QADjB,IAEAH,GAFA,4GAGyBE,KAAK,CAACG,WAAN,CAAkBC,IAH3C,CALiB;AAAA,CAAnB;;AAWA,IAAME,iBAAiB,GAAGT,MAAM,CAACU,IAAV,iGACL;EAAA,IAAGP,KAAH,SAAGA,KAAH;EAAA,OAAeA,KAAK,CAACQ,KAAN,CAAYC,SAAZ,CAAsBC,MAArC;AAAA,CADK,CAAvB;AAIA,OAAO,IAAMC,aAAa,GAAGd,MAAM,CAACS,iBAAD,CAAN,CAG3B,UAAAM,KAAK;EAAA,OAAId,GAAJ,gGACDC,OAAO,CAACa,KAAD,CADN,EAEDP,UAAU,CAACO,KAAD,CAFT;AAAA,CAHsB,CAAtB"}
@@ -0,0 +1,32 @@
1
+ import { StyleProp, ViewStyle } from 'react-native';
2
+ import { ColorGradationType, ColorType } from '../../../types/defaults';
3
+ import { ButtonSizeType } from '../Button';
4
+ export interface GroupButtonOptions {
5
+ activeBackgroundColor?: ColorType;
6
+ activeBackgroundColorTone?: ColorGradationType;
7
+ activeBorderColor?: ColorType;
8
+ activeBorderColorTone?: ColorGradationType;
9
+ inactiveBackgroundColor?: ColorType;
10
+ inactiveBackgroundColorTone?: ColorGradationType;
11
+ inactiveBorderColor?: ColorType;
12
+ inactiveBorderColorTone?: ColorGradationType;
13
+ activeStyle?: StyleProp<ViewStyle>;
14
+ inactiveStyle?: StyleProp<ViewStyle>;
15
+ disabled?: boolean;
16
+ }
17
+ export interface GroupButtonValue<T> {
18
+ value: T;
19
+ options?: GroupButtonOptions;
20
+ }
21
+ export interface GroupButtonProps<T> {
22
+ value: T;
23
+ options: GroupButtonValue<T>[];
24
+ renderKey: (option?: T) => string | number | undefined;
25
+ renderOption: (option: T, active: boolean) => JSX.Element;
26
+ onChange: (option: T) => void;
27
+ buttonSize?: ButtonSizeType;
28
+ style?: StyleProp<ViewStyle>;
29
+ disableAllOptions?: boolean;
30
+ }
31
+ declare const GroupButton: <T>({ style, ...rest }: GroupButtonProps<T>) => JSX.Element;
32
+ export default GroupButton;
@@ -0,0 +1,78 @@
1
+ var _excluded = ["style"],
2
+ _excluded2 = ["options", "renderOption", "renderKey", "onChange", "value", "disableAllOptions"];
3
+
4
+ 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); }
5
+
6
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
7
+
8
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
9
+
10
+ import { useTheme } from '@emotion/react';
11
+ import React from 'react';
12
+ import { StyledDivider, StyledGroupButton, StyledOption, StyledPressable } from './styled';
13
+
14
+ var GroupButton = function GroupButton(_ref) {
15
+ var style = _ref.style,
16
+ rest = _objectWithoutProperties(_ref, _excluded);
17
+
18
+ return React.createElement(StyledGroupButton, {
19
+ style: style
20
+ }, groupOptions(rest));
21
+ };
22
+
23
+ var groupOptions = function groupOptions(_ref2) {
24
+ var options = _ref2.options,
25
+ renderOption = _ref2.renderOption,
26
+ renderKey = _ref2.renderKey,
27
+ onChange = _ref2.onChange,
28
+ value = _ref2.value,
29
+ disableAllOptions = _ref2.disableAllOptions,
30
+ rest = _objectWithoutProperties(_ref2, _excluded2);
31
+
32
+ var theme = useTheme();
33
+ return options === null || options === void 0 ? void 0 : options.map(function (option, idx) {
34
+ var _option$options2;
35
+
36
+ var optionValue = option.value,
37
+ _option$options = option.options;
38
+ _option$options = _option$options === void 0 ? {} : _option$options;
39
+ var activeStyle = _option$options.activeStyle,
40
+ inactiveStyle = _option$options.inactiveStyle,
41
+ activeBackgroundColor = _option$options.activeBackgroundColor,
42
+ activeBackgroundColorTone = _option$options.activeBackgroundColorTone,
43
+ inactiveBackgroundColor = _option$options.inactiveBackgroundColor,
44
+ inactiveBackgroundColorTone = _option$options.inactiveBackgroundColorTone,
45
+ _option$options$disab = _option$options.disabled,
46
+ disabled = _option$options$disab === void 0 ? disableAllOptions || ((_option$options2 = option.options) === null || _option$options2 === void 0 ? void 0 : _option$options2.disabled) : _option$options$disab;
47
+ var key = renderKey === null || renderKey === void 0 ? void 0 : renderKey(optionValue);
48
+ var active = key === (renderKey === null || renderKey === void 0 ? void 0 : renderKey(value));
49
+ var isFirst = idx === 0;
50
+ var isLast = idx === options.length - 1;
51
+ var colors = theme.miscellaneous.surfaceColor;
52
+
53
+ if (active) {
54
+ colors = theme.color[activeBackgroundColor || 'secondary'][activeBackgroundColorTone || 'medium'];
55
+ }
56
+
57
+ if (!active && (inactiveBackgroundColor || inactiveBackgroundColorTone)) {
58
+ colors = theme.color[inactiveBackgroundColor || 'secondary'][inactiveBackgroundColorTone || 'medium'];
59
+ }
60
+
61
+ return React.createElement(StyledOption, {
62
+ key: key
63
+ }, React.createElement(StyledPressable, _extends({}, rest, option.options, {
64
+ disabled: disabled,
65
+ isActive: active,
66
+ isFirstOption: isFirst,
67
+ isLastOption: isLast,
68
+ onPress: function onPress() {
69
+ return onChange === null || onChange === void 0 ? void 0 : onChange(optionValue);
70
+ },
71
+ surfaceColor: colors,
72
+ style: active ? activeStyle : inactiveStyle
73
+ }), renderOption === null || renderOption === void 0 ? void 0 : renderOption(option.value, active)), !isLast && React.createElement(StyledDivider, null));
74
+ });
75
+ };
76
+
77
+ export default GroupButton;
78
+ //# sourceMappingURL=GroupButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupButton.js","names":["useTheme","React","StyledDivider","StyledGroupButton","StyledOption","StyledPressable","GroupButton","style","rest","groupOptions","options","renderOption","renderKey","onChange","value","disableAllOptions","theme","map","option","idx","optionValue","activeStyle","inactiveStyle","activeBackgroundColor","activeBackgroundColorTone","inactiveBackgroundColor","inactiveBackgroundColorTone","disabled","key","active","isFirst","isLast","length","colors","miscellaneous","surfaceColor","color"],"sources":["../../../../src/components/atoms/GroupButton/GroupButton.tsx"],"sourcesContent":["import { useTheme } from '@emotion/react';\nimport React from 'react';\nimport { StyleProp, ViewStyle } from 'react-native';\nimport {\n ColorGradationType,\n ColorType,\n ThemeProp,\n} from '../../../types/defaults';\nimport { ButtonSizeType } from '../Button';\nimport {\n StyledDivider,\n StyledGroupButton,\n StyledOption,\n StyledPressable,\n} from './styled';\n\nexport interface GroupButtonOptions {\n activeBackgroundColor?: ColorType;\n activeBackgroundColorTone?: ColorGradationType;\n activeBorderColor?: ColorType;\n activeBorderColorTone?: ColorGradationType;\n inactiveBackgroundColor?: ColorType;\n inactiveBackgroundColorTone?: ColorGradationType;\n inactiveBorderColor?: ColorType;\n inactiveBorderColorTone?: ColorGradationType;\n activeStyle?: StyleProp<ViewStyle>;\n inactiveStyle?: StyleProp<ViewStyle>;\n disabled?: boolean;\n}\n\nexport interface GroupButtonValue<T> {\n value: T;\n options?: GroupButtonOptions;\n}\n\nexport interface GroupButtonProps<T> {\n value: T;\n options: GroupButtonValue<T>[];\n renderKey: (option?: T) => string | number | undefined;\n renderOption: (option: T, active: boolean) => JSX.Element;\n onChange: (option: T) => void;\n buttonSize?: ButtonSizeType;\n style?: StyleProp<ViewStyle>;\n disableAllOptions?: boolean;\n}\n\nconst GroupButton = <T,>({ style, ...rest }: GroupButtonProps<T>) => {\n return (\n <StyledGroupButton style={style}>{groupOptions(rest)}</StyledGroupButton>\n );\n};\n\nconst groupOptions = <T,>({\n options,\n renderOption,\n renderKey,\n onChange,\n value,\n disableAllOptions,\n ...rest\n}: Partial<GroupButtonProps<T>>) => {\n const theme = useTheme() as ThemeProp;\n return options?.map((option, idx) => {\n const {\n value: optionValue,\n options: {\n activeStyle,\n inactiveStyle,\n activeBackgroundColor,\n activeBackgroundColorTone,\n inactiveBackgroundColor,\n inactiveBackgroundColorTone,\n disabled = disableAllOptions || option.options?.disabled,\n } = {},\n } = option;\n\n const key = renderKey?.(optionValue);\n const active = key === renderKey?.(value);\n const isFirst = idx === 0;\n const isLast = idx === options.length - 1;\n\n let colors = theme.miscellaneous.surfaceColor;\n if (active) {\n colors =\n theme.color[activeBackgroundColor || 'secondary'][\n activeBackgroundColorTone || 'medium'\n ];\n }\n\n if (!active && (inactiveBackgroundColor || inactiveBackgroundColorTone)) {\n colors =\n theme.color[inactiveBackgroundColor || 'secondary'][\n inactiveBackgroundColorTone || 'medium'\n ];\n }\n\n return (\n <StyledOption key={key}>\n <StyledPressable\n {...rest}\n {...option.options}\n disabled={disabled}\n isActive={active}\n isFirstOption={isFirst}\n isLastOption={isLast}\n onPress={() => onChange?.(optionValue)}\n surfaceColor={colors}\n style={active ? activeStyle : inactiveStyle}\n >\n {renderOption?.(option.value, active)}\n </StyledPressable>\n {!isLast && <StyledDivider />}\n </StyledOption>\n );\n });\n};\n\nexport default GroupButton;\n"],"mappings":"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"}
@@ -0,0 +1,9 @@
1
+ import { FC } from 'react';
2
+ import { TextProps } from '../Text';
3
+ export interface GroupButtonOptionProps {
4
+ active: boolean;
5
+ description: string;
6
+ TextComponent?: FC<TextProps>;
7
+ }
8
+ declare const GroupButtonOption: ({ TextComponent, active, description, }: GroupButtonOptionProps) => JSX.Element;
9
+ export default GroupButtonOption;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { Text } from '../Text';
3
+ import { getStyledGroupItemText } from './styled';
4
+
5
+ var GroupButtonOption = function GroupButtonOption(_ref) {
6
+ var _ref$TextComponent = _ref.TextComponent,
7
+ TextComponent = _ref$TextComponent === void 0 ? Text : _ref$TextComponent,
8
+ active = _ref.active,
9
+ description = _ref.description;
10
+ var StyledText = getStyledGroupItemText(TextComponent);
11
+ return React.createElement(StyledText, {
12
+ fontWeight: "bold",
13
+ typography: "sub",
14
+ active: active
15
+ }, description);
16
+ };
17
+
18
+ export default GroupButtonOption;
19
+ //# sourceMappingURL=GroupButtonOption.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupButtonOption.js","names":["React","Text","getStyledGroupItemText","GroupButtonOption","TextComponent","active","description","StyledText"],"sources":["../../../../src/components/atoms/GroupButton/GroupButtonOption.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { Text, TextProps } from '../Text';\nimport { getStyledGroupItemText } from './styled';\n\nexport interface GroupButtonOptionProps {\n active: boolean;\n description: string;\n TextComponent?: FC<TextProps>;\n}\n\nconst GroupButtonOption = ({\n TextComponent = Text,\n active,\n description,\n}: GroupButtonOptionProps): JSX.Element => {\n const StyledText = getStyledGroupItemText(TextComponent);\n return (\n <StyledText fontWeight=\"bold\" typography=\"sub\" active={active}>\n {description}\n </StyledText>\n );\n};\n\nexport default GroupButtonOption;\n"],"mappings":"AAAA,OAAOA,KAAP,MAA0B,OAA1B;AACA,SAASC,IAAT,QAAgC,SAAhC;AACA,SAASC,sBAAT,QAAuC,UAAvC;;AAQA,IAAMC,iBAAiB,GAAG,SAApBA,iBAAoB,OAIiB;EAAA,8BAHzCC,aAGyC;EAAA,IAHzCA,aAGyC,mCAHzBH,IAGyB;EAAA,IAFzCI,MAEyC,QAFzCA,MAEyC;EAAA,IADzCC,WACyC,QADzCA,WACyC;EACzC,IAAMC,UAAU,GAAGL,sBAAsB,CAACE,aAAD,CAAzC;EACA,OACE,oBAAC,UAAD;IAAY,UAAU,EAAC,MAAvB;IAA8B,UAAU,EAAC,KAAzC;IAA+C,MAAM,EAAEC;EAAvD,GACGC,WADH,CADF;AAKD,CAXD;;AAaA,eAAeH,iBAAf"}
@@ -0,0 +1,4 @@
1
+ export { default as GroupButton } from './GroupButton';
2
+ export type { GroupButtonProps, GroupButtonValue } from './GroupButton';
3
+ export { default as GroupButtonOption } from './GroupButtonOption';
4
+ export type { GroupButtonOptionProps } from './GroupButtonOption';
@@ -0,0 +1,3 @@
1
+ export { default as GroupButton } from './GroupButton';
2
+ export { default as GroupButtonOption } from './GroupButtonOption';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["default","GroupButton","GroupButtonOption"],"sources":["../../../../src/components/atoms/GroupButton/index.ts"],"sourcesContent":["export { default as GroupButton } from './GroupButton';\nexport type { GroupButtonProps, GroupButtonValue } from './GroupButton';\nexport { default as GroupButtonOption } from './GroupButtonOption';\nexport type { GroupButtonOptionProps } from './GroupButtonOption';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,WAApB,QAAuC,eAAvC;AAEA,SAASD,OAAO,IAAIE,iBAApB,QAA6C,qBAA7C"}
@@ -0,0 +1,42 @@
1
+ import { FC } from 'react';
2
+ import { ButtonSizeType } from '../Button';
3
+ import { TextProps } from '../Text';
4
+ import { GroupButtonOptions } from './GroupButton';
5
+ import { GroupButtonOptionProps } from './GroupButtonOption';
6
+ interface PressableOptions extends GroupButtonOptions {
7
+ isActive: boolean;
8
+ isFirstOption: boolean;
9
+ isLastOption: boolean;
10
+ buttonSize?: ButtonSizeType;
11
+ }
12
+ export declare const StyledGroupButton: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
13
+ theme?: import("@emotion/react").Theme | undefined;
14
+ as?: import("react").ElementType<any> | undefined;
15
+ } & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {
16
+ ref?: import("react").Ref<import("react-native").View> | undefined;
17
+ }>;
18
+ export declare const getStyledGroupItemText: (component: FC<TextProps>) => import("@emotion/native").StyledComponent<TextProps & {
19
+ children?: import("react").ReactNode;
20
+ } & {
21
+ theme?: import("@emotion/react").Theme | undefined;
22
+ as?: import("react").ElementType<any> | undefined;
23
+ } & Partial<GroupButtonOptionProps> & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
24
+ export declare const StyledOption: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
25
+ theme?: import("@emotion/react").Theme | undefined;
26
+ as?: import("react").ElementType<any> | undefined;
27
+ }, {}, {
28
+ ref?: import("react").Ref<import("react-native").View> | undefined;
29
+ }>;
30
+ export declare const StyledDivider: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
31
+ theme?: import("@emotion/react").Theme | undefined;
32
+ as?: import("react").ElementType<any> | undefined;
33
+ } & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {
34
+ ref?: import("react").Ref<import("react-native").View> | undefined;
35
+ }>;
36
+ export declare const StyledPressable: import("@emotion/native").StyledComponent<import("../PressableSurface").PressableSurfaceProps & {
37
+ children?: import("react").ReactNode;
38
+ } & {
39
+ theme?: import("@emotion/react").Theme | undefined;
40
+ as?: import("react").ElementType<any> | undefined;
41
+ } & PressableOptions & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
42
+ export {};
@@ -0,0 +1,97 @@
1
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
2
+
3
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
4
+
5
+ import styled, { css } from '@emotion/native';
6
+ import { RFValueStr } from '../../../utils';
7
+ import { PressableSurface } from '../PressableSurface';
8
+ export var StyledGroupButton = styled.View(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex-direction: row;\n"])));
9
+
10
+ var disabledStyles = function disabledStyles(_ref) {
11
+ var disabled = _ref.disabled,
12
+ isActive = _ref.isActive;
13
+ return disabled && !isActive && css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-color: #dcdcdc;\n "])));
14
+ };
15
+
16
+ export var getStyledGroupItemText = function getStyledGroupItemText(component) {
17
+ return styled(component)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", ";\n "])), function (_ref2) {
18
+ var active = _ref2.active,
19
+ theme = _ref2.theme;
20
+ return active ? theme.miscellaneous.surfaceColor : theme.color.secondary.medium;
21
+ });
22
+ };
23
+
24
+ var activeStyles = function activeStyles(_ref3) {
25
+ var theme = _ref3.theme,
26
+ isActive = _ref3.isActive,
27
+ _ref3$activeBorderCol = _ref3.activeBorderColor,
28
+ activeBorderColor = _ref3$activeBorderCol === void 0 ? 'secondary' : _ref3$activeBorderCol,
29
+ _ref3$activeBorderCol2 = _ref3.activeBorderColorTone,
30
+ activeBorderColorTone = _ref3$activeBorderCol2 === void 0 ? 'medium' : _ref3$activeBorderCol2;
31
+ return isActive && css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n border-color: ", ";\n "])), theme === null || theme === void 0 ? void 0 : theme.color[activeBorderColor][activeBorderColorTone]);
32
+ };
33
+
34
+ var inactiveStyles = function inactiveStyles(_ref4) {
35
+ var theme = _ref4.theme,
36
+ isActive = _ref4.isActive,
37
+ inactiveBackgroundColor = _ref4.inactiveBackgroundColor,
38
+ inactiveBackgroundColorTone = _ref4.inactiveBackgroundColorTone,
39
+ _ref4$inactiveBorderC = _ref4.inactiveBorderColor,
40
+ inactiveBorderColor = _ref4$inactiveBorderC === void 0 ? 'secondary' : _ref4$inactiveBorderC,
41
+ _ref4$inactiveBorderC2 = _ref4.inactiveBorderColorTone,
42
+ inactiveBorderColorTone = _ref4$inactiveBorderC2 === void 0 ? 'light' : _ref4$inactiveBorderC2;
43
+
44
+ if (!isActive && inactiveBackgroundColor && inactiveBackgroundColorTone) {
45
+ return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n border-color: ", ";\n "])), theme === null || theme === void 0 ? void 0 : theme.color[inactiveBorderColor][inactiveBorderColorTone]);
46
+ }
47
+
48
+ if (!isActive) {
49
+ return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n border-color: ", ";\n "])), theme === null || theme === void 0 ? void 0 : theme.color[inactiveBorderColor][inactiveBorderColorTone]);
50
+ }
51
+ };
52
+
53
+ var leftStyles = function leftStyles(_ref5) {
54
+ var theme = _ref5.theme,
55
+ isFirstOption = _ref5.isFirstOption;
56
+ return isFirstOption && css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n border-top-left-radius: ", ";\n border-bottom-left-radius: ", ";\n border-left-width: ", ";\n "])), theme === null || theme === void 0 ? void 0 : theme.borderRadius.mili, theme === null || theme === void 0 ? void 0 : theme.borderRadius.mili, theme === null || theme === void 0 ? void 0 : theme.borderWidth.pico);
57
+ };
58
+
59
+ var rightStyles = function rightStyles(_ref6) {
60
+ var theme = _ref6.theme,
61
+ isLastOption = _ref6.isLastOption;
62
+ return isLastOption && css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n border-top-right-radius: ", ";\n border-bottom-right-radius: ", ";\n border-right-width: ", ";\n "])), theme === null || theme === void 0 ? void 0 : theme.borderRadius.mili, theme === null || theme === void 0 ? void 0 : theme.borderRadius.mili, theme === null || theme === void 0 ? void 0 : theme.borderWidth.pico);
63
+ };
64
+
65
+ var sizeStyles = function sizeStyles(_ref7) {
66
+ var theme = _ref7.theme,
67
+ _ref7$buttonSize = _ref7.buttonSize,
68
+ buttonSize = _ref7$buttonSize === void 0 ? 'small' : _ref7$buttonSize;
69
+
70
+ switch (buttonSize) {
71
+ case 'small':
72
+ return css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n min-height: ", ";\n "])), theme === null || theme === void 0 ? void 0 : theme.spacing.mili, theme === null || theme === void 0 ? void 0 : theme.spacing.deca, RFValueStr('34px'));
73
+
74
+ default:
75
+ return css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n min-height: ", ";\n "])), theme === null || theme === void 0 ? void 0 : theme.spacing.mili, theme === null || theme === void 0 ? void 0 : theme.spacing.kilo, RFValueStr('44px'));
76
+ }
77
+ };
78
+
79
+ var StyledPressableBase = styled(PressableSurface)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n border-top-width: ", ";\n border-bottom-width: ", ";\n justify-content: center;\n align-items: center;\n flex: 1;\n"])), function (_ref8) {
80
+ var theme = _ref8.theme;
81
+ return theme.borderWidth.pico;
82
+ }, function (_ref9) {
83
+ var theme = _ref9.theme;
84
+ return theme.borderWidth.pico;
85
+ });
86
+ export var StyledOption = styled.View(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n flex-direction: row;\n flex: 1;\n"])));
87
+ export var StyledDivider = styled.View(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n width: ", ";\n background-color: ", "; ;\n"])), function (_ref10) {
88
+ var theme = _ref10.theme;
89
+ return theme.borderWidth.pico;
90
+ }, function (_ref11) {
91
+ var theme = _ref11.theme;
92
+ return theme.color.secondary.light;
93
+ });
94
+ export var StyledPressable = styled(StyledPressableBase)(function (props) {
95
+ return css(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n "])), activeStyles(props), inactiveStyles(props), leftStyles(props), rightStyles(props), sizeStyles(props), disabledStyles(props));
96
+ });
97
+ //# sourceMappingURL=styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styled.js","names":["styled","css","RFValueStr","PressableSurface","StyledGroupButton","View","disabledStyles","disabled","isActive","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","kilo","StyledPressableBase","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":"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"}
@@ -0,0 +1,14 @@
1
+ import { FC } from 'react';
2
+ import { StyleProp, TextStyle } from 'react-native';
3
+ import { ColorGradationType, ColorType, FontColorType, IconSizeType, IconType } from '@tecsinapse/react-core';
4
+ export interface IconProps {
5
+ name: string;
6
+ size?: IconSizeType;
7
+ type: IconType;
8
+ fontColor?: FontColorType;
9
+ colorVariant?: ColorType;
10
+ colorTone?: ColorGradationType;
11
+ style?: StyleProp<TextStyle>;
12
+ }
13
+ declare const Icon: FC<IconProps>;
14
+ export default Icon;
@@ -0,0 +1,37 @@
1
+ var _excluded = ["name", "size", "type", "style", "fontColor", "colorVariant", "colorTone"];
2
+
3
+ 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); }
4
+
5
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
6
+
7
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
8
+
9
+ import React from 'react';
10
+ import { useTheme } from '@emotion/react';
11
+ import { getIconColor, getIconComponent } from './helpers';
12
+
13
+ var Icon = function Icon(_ref) {
14
+ var name = _ref.name,
15
+ _ref$size = _ref.size,
16
+ size = _ref$size === void 0 ? 'centi' : _ref$size,
17
+ type = _ref.type,
18
+ style = _ref.style,
19
+ _ref$fontColor = _ref.fontColor,
20
+ fontColor = _ref$fontColor === void 0 ? 'dark' : _ref$fontColor,
21
+ colorVariant = _ref.colorVariant,
22
+ _ref$colorTone = _ref.colorTone,
23
+ colorTone = _ref$colorTone === void 0 ? 'medium' : _ref$colorTone,
24
+ rest = _objectWithoutProperties(_ref, _excluded);
25
+
26
+ var theme = useTheme();
27
+ var color = getIconColor(colorVariant, colorTone, fontColor, theme);
28
+ var RNVIcon = getIconComponent(type, size);
29
+ return React.createElement(RNVIcon, _extends({}, rest, {
30
+ style: style,
31
+ name: name,
32
+ color: color
33
+ }));
34
+ };
35
+
36
+ export default Icon;
37
+ //# sourceMappingURL=Icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icon.js","names":["React","useTheme","getIconColor","getIconComponent","Icon","name","size","type","style","fontColor","colorVariant","colorTone","rest","theme","color","RNVIcon"],"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,OAAOA,KAAP,MAA0B,OAA1B;AAEA,SAASC,QAAT,QAAyB,gBAAzB;AASA,SAASC,YAAT,EAAuBC,gBAAvB,QAA+C,WAA/C;;AAmBA,IAAMC,IAAmB,GAAG,SAAtBA,IAAsB,OAStB;EAAA,IARJC,IAQI,QARJA,IAQI;EAAA,qBAPJC,IAOI;EAAA,IAPJA,IAOI,0BAPG,OAOH;EAAA,IANJC,IAMI,QANJA,IAMI;EAAA,IALJC,KAKI,QALJA,KAKI;EAAA,0BAJJC,SAII;EAAA,IAJJA,SAII,+BAJQ,MAIR;EAAA,IAHJC,YAGI,QAHJA,YAGI;EAAA,0BAFJC,SAEI;EAAA,IAFJA,SAEI,+BAFQ,QAER;EAAA,IADDC,IACC;;EACJ,IAAMC,KAAK,GAAGZ,QAAQ,EAAtB;EACA,IAAMa,KAAK,GAAGZ,YAAY,CAACQ,YAAD,EAAeC,SAAf,EAA0BF,SAA1B,EAAqCI,KAArC,CAA1B;EACA,IAAME,OAAO,GAAGZ,gBAAgB,CAACI,IAAD,EAAOD,IAAP,CAAhC;EAEA,OAAO,oBAAC,OAAD,eAAaM,IAAb;IAAmB,KAAK,EAAEJ,KAA1B;IAAiC,IAAI,EAAEH,IAAvC;IAA6C,KAAK,EAAES;EAApD,GAAP;AACD,CAfD;;AAiBA,eAAeV,IAAf"}
@@ -0,0 +1,4 @@
1
+ import { ColorGradationType, ColorType, FontColorType, IconSizeType, IconType, ThemeProp } from '@tecsinapse/react-core';
2
+ export declare const registerCustomIconType: (id: string, customIcon: any) => void;
3
+ export declare const getIconComponent: (type: IconType, size: IconSizeType) => any;
4
+ export declare const getIconColor: (colorVariant: ColorType | undefined, colorGradation: ColorGradationType | undefined, fontColor: FontColorType, theme: ThemeProp) => string;
@@ -0,0 +1,78 @@
1
+ var _templateObject;
2
+
3
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
4
+
5
+ import styled from '@emotion/native';
6
+ var customIcons = {};
7
+ export var registerCustomIconType = function registerCustomIconType(id, customIcon) {
8
+ customIcons[id] = customIcon;
9
+ };
10
+
11
+ var getStyledIcon = function getStyledIcon(Component, size) {
12
+ return styled(Component)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size: ", ";\n text-align: center;\n"])), function (_ref) {
13
+ var theme = _ref.theme;
14
+ return theme.iconSize[size];
15
+ });
16
+ };
17
+
18
+ export var getIconComponent = function getIconComponent(type, size) {
19
+ switch (type) {
20
+ case 'zocial':
21
+ return getStyledIcon(require('react-native-vector-icons/dist/Zocial')["default"], size);
22
+
23
+ case 'octicon':
24
+ return getStyledIcon(require('react-native-vector-icons/dist/Octicons')["default"], size);
25
+
26
+ case 'material':
27
+ return getStyledIcon(require('react-native-vector-icons/dist/MaterialIcons')["default"], size);
28
+
29
+ case 'material-community':
30
+ return getStyledIcon(require('react-native-vector-icons/dist/MaterialCommunityIcons')["default"], size);
31
+
32
+ case 'ionicon':
33
+ return getStyledIcon(require('react-native-vector-icons/dist/Ionicons')["default"], size);
34
+
35
+ case 'foundation':
36
+ return getStyledIcon(require('react-native-vector-icons/dist/Foundation')["default"], size);
37
+
38
+ case 'evilicon':
39
+ return getStyledIcon(require('react-native-vector-icons/dist/EvilIcons')["default"], size);
40
+
41
+ case 'entypo':
42
+ return getStyledIcon(require('react-native-vector-icons/dist/Entypo')["default"], size);
43
+
44
+ case 'font-awesome':
45
+ return getStyledIcon(require('react-native-vector-icons/dist/FontAwesome')["default"], size);
46
+
47
+ case 'font-awesome-5':
48
+ return getStyledIcon(require('react-native-vector-icons/dist/FontAwesome5')["default"], size);
49
+
50
+ case 'simple-line-icon':
51
+ return getStyledIcon(require('react-native-vector-icons/dist/SimpleLineIcons')["default"], size);
52
+
53
+ case 'feather':
54
+ return getStyledIcon(require('react-native-vector-icons/dist/Feather')["default"], size);
55
+
56
+ case 'antdesign':
57
+ case 'ant-design':
58
+ return getStyledIcon(require('react-native-vector-icons/dist/AntDesign')["default"], size);
59
+
60
+ case 'fontisto':
61
+ return getStyledIcon(require('react-native-vector-icons/dist/Fontisto')["default"], size);
62
+
63
+ default:
64
+ if (Object.prototype.hasOwnProperty.call(customIcons, type)) {
65
+ return getStyledIcon(customIcons[type], size);
66
+ }
67
+
68
+ return getStyledIcon(require('react-native-vector-icons/dist/MaterialIcons')["default"], size);
69
+ }
70
+ };
71
+ export var getIconColor = function getIconColor(colorVariant, colorGradation, fontColor, theme) {
72
+ if (colorVariant && colorGradation) {
73
+ return theme.color[colorVariant][colorGradation];
74
+ }
75
+
76
+ return theme.font.color[fontColor];
77
+ };
78
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","names":["styled","customIcons","registerCustomIconType","id","customIcon","getStyledIcon","Component","size","theme","iconSize","getIconComponent","type","require","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":"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"}
@@ -0,0 +1,2 @@
1
+ export { default as Icon } from './Icon';
2
+ export type { IconProps } from './Icon';
@@ -0,0 +1,2 @@
1
+ export { default as Icon } from './Icon';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["default","Icon"],"sources":["../../../../src/components/atoms/Icon/index.ts"],"sourcesContent":["export { default as Icon } from './Icon';\nexport type { IconProps } from './Icon';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,IAApB,QAAgC,QAAhC"}
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import { InputVariantType } from '../Input';
3
+ import { TextProps } from '../Text';
4
+ interface HintProps {
5
+ text?: string;
6
+ variant: InputVariantType;
7
+ TextComponent?: FC<TextProps>;
8
+ }
9
+ declare const Hint: FC<HintProps>;
10
+ export default Hint;